specs/vault/sync/v0_1/payload library

Classes

AclChangedEvent
AclChangedEvent
AttachmentRef
AttachmentRef
Payload
Consumer requests an incremental delta of vault changes since a given seq baseline. The maintainer returns an ordered list of upsert/delete/acl/policy events, followed by a new seq baseline the consumer SHOULD persist for the next sync. Pairs with sync/event/0.1 server-push notifications: a live consumer subscribes to push events; on reconnect after offline, it calls vault/sync to catch up.
PolicyChangedEvent
PolicyChangedEvent
Response
Vault Sync — response payload
VaultDeletedEvent
VaultDeletedEvent
VaultEntry
VaultEntry
VaultUpsertedEvent
VaultUpsertedEvent

Extension Types

AclChangedEventChange
AclChangedEventChange is a closed set of string values defined by this specification's schema.
PolicyChangedEventChange
PolicyChangedEventChange is a closed set of string values defined by this specification's schema.
SecretKind
Discriminator for the secret type stored in the entry. Definitions: - password — username + password (+ optional TOTP seed). - passkey — WebAuthn discoverable credential (private key + rpId + userHandle). - oauth-tokens — OAuth 2.0 refresh
VaultEntryStatus
Archival-lifecycle state of this entry. Absent means active, so a maintainer that models no lifecycle omits it and every existing document stays valid. Deliberately carries no JSON Schema default: a declared default is materialised by generated bindings, which would make an absent status reappear as an explicit "active" on re-serialisation and break round-trip idempotence for every existing document. This member is what makes vault/list's status: "all" selector usable: that view returns entries in every state by design, and without a state on the entry itself a consumer cannot tell which is which. An archived entry is hidden from ordinary listings but intact; a deleted entry is a tombstone inside its grace window, still restorable until graceUntil passes.

Constants

payloadSchemaJson → const String
This specification's payload schema, as JSON text.
responsePayloadSchemaJson → const String
As payloadSchemaJson, for the success-response variant.
responseSpec → const SpecPolicy
The SPEC §7.2 policy for the success-response variant.
responseTypeUri → const String
The success-response form of typeUri (SPEC §4.4.1).
spec → const SpecPolicy
The SPEC §7.2 policy for the request variant, taken from this specification's front matter.
typeUri → const String
The Trust Task type URI this library's Payload is carried under.

Typedefs

Ext = Map<String, dynamic>
Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.
SiteTarget = Object?
A single binding target for a vault entry. Tagged union over the discriminator kind. A VaultEntry's targets array MAY mix any number of these.
SyncEvent = Object?
SyncEvent, defined by this specification's schema.