Skip to content

ReviseOp

Builder revise operation.

readonly operation: "revise"

Operation discriminator. Always revise.


readonly optional wref?: string

Target wref to revise.


readonly optional name?: string

Target name to revise. Equivalent to wref for local paths.


readonly optional kind?: string

Optional kind safety hint: shape, thing, assertion, or collection.


readonly optional data?: unknown

New shape-validated data payload.


readonly optional expectedVersion?: number

Optional optimistic-concurrency precondition. When supplied, the revise is applied only if the target is still at this version number. A stale value produces a CONFLICT error with details.reason = 'expected_version_mismatch'. Absent field preserves today’s behavior exactly (opt-in).


readonly optional leaseId?: string

Optional read-lease token (#3625) returned by thing.getWithLease. When it matches the target’s active lease the lease auto-releases on commit; a mismatch (or absence against a live lease) is rejected with LEASE_UNAVAILABLE.