specs/sync/event/v0_1/payload library

Classes

AclChangedEvent
AclChangedEvent
AttachmentRef
AttachmentRef
Payload
One-way push notification from the maintainer to a subscribing consumer. Carries a single SyncEvent (vault.upserted, vault.deleted, acl.changed, policy.changed). The consumer updates its cache and does NOT respond — there is no #response form. For offline catch-up the consumer uses vault/sync/0.1 to pull missed events.
PolicyChangedEvent
PolicyChangedEvent
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.
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.