@openvtc/trust-tasks 0.28.10 → 0.28.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +136 -0
- package/dist/_shared/components.d.ts +941 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +156 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +156 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/collection/_shared/0.1/collection.d.ts +16 -0
- package/dist/vta/collection/_shared/0.1/collection.d.ts.map +1 -0
- package/dist/vta/collection/_shared/0.1/collection.js +6 -0
- package/dist/vta/collection/_shared/0.1/collection.js.map +1 -0
- package/dist/vta/collection/claim/0.1/payload.d.ts +352 -0
- package/dist/vta/collection/claim/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/claim/0.1/payload.js +198 -0
- package/dist/vta/collection/claim/0.1/payload.js.map +1 -0
- package/dist/vta/collection/list/0.1/payload.d.ts +740 -0
- package/dist/vta/collection/list/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/list/0.1/payload.js +447 -0
- package/dist/vta/collection/list/0.1/payload.js.map +1 -0
- package/dist/vta/collection/release/0.1/payload.d.ts +316 -0
- package/dist/vta/collection/release/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/release/0.1/payload.js +182 -0
- package/dist/vta/collection/release/0.1/payload.js.map +1 -0
- package/dist/vta/notifications/deposit/0.1/payload.d.ts +349 -0
- package/dist/vta/notifications/deposit/0.1/payload.d.ts.map +1 -0
- package/dist/vta/notifications/deposit/0.1/payload.js +198 -0
- package/dist/vta/notifications/deposit/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/vetter/recover/0.1/payload.d.ts +667 -0
- package/dist/vta/pcs/vetter/recover/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vetter/recover/0.1/payload.js +387 -0
- package/dist/vta/pcs/vetter/recover/0.1/payload.js.map +1 -0
- package/dist/vtc/notifications/_shared/0.1/received-notification.d.ts +16 -0
- package/dist/vtc/notifications/_shared/0.1/received-notification.d.ts.map +1 -0
- package/dist/vtc/notifications/_shared/0.1/received-notification.js +6 -0
- package/dist/vtc/notifications/_shared/0.1/received-notification.js.map +1 -0
- package/dist/vtc/notifications/list/0.1/payload.d.ts +1311 -0
- package/dist/vtc/notifications/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/notifications/list/0.1/payload.js +753 -0
- package/dist/vtc/notifications/list/0.1/payload.js.map +1 -0
- package/dist/vtc/notifications/relay/0.1/payload.d.ts +568 -0
- package/dist/vtc/notifications/relay/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/notifications/relay/0.1/payload.js +339 -0
- package/dist/vtc/notifications/relay/0.1/payload.js.map +1 -0
- package/dist/vtc/notifications/show/0.1/payload.d.ts +1229 -0
- package/dist/vtc/notifications/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/notifications/show/0.1/payload.js +727 -0
- package/dist/vtc/notifications/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.d.ts +340 -0
- package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.js +194 -0
- package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.d.ts +425 -0
- package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.js +233 -0
- package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.js.map +1 -0
- package/dist/vtn/_shared/0.1/directory.d.ts +16 -0
- package/dist/vtn/_shared/0.1/directory.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/directory.js +6 -0
- package/dist/vtn/_shared/0.1/directory.js.map +1 -0
- package/dist/vtn/_shared/0.1/entry.d.ts +16 -0
- package/dist/vtn/_shared/0.1/entry.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/entry.js +6 -0
- package/dist/vtn/_shared/0.1/entry.js.map +1 -0
- package/dist/vtn/_shared/0.1/graph.d.ts +16 -0
- package/dist/vtn/_shared/0.1/graph.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/graph.js +6 -0
- package/dist/vtn/_shared/0.1/graph.js.map +1 -0
- package/dist/vtn/_shared/0.1/groups.d.ts +16 -0
- package/dist/vtn/_shared/0.1/groups.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/groups.js +6 -0
- package/dist/vtn/_shared/0.1/groups.js.map +1 -0
- package/dist/vtn/_shared/0.1/membership.d.ts +16 -0
- package/dist/vtn/_shared/0.1/membership.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/membership.js +6 -0
- package/dist/vtn/_shared/0.1/membership.js.map +1 -0
- package/dist/vtn/_shared/0.1/relay.d.ts +16 -0
- package/dist/vtn/_shared/0.1/relay.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/relay.js +6 -0
- package/dist/vtn/_shared/0.1/relay.js.map +1 -0
- package/dist/vtn/_shared/0.1/rooms.d.ts +16 -0
- package/dist/vtn/_shared/0.1/rooms.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/rooms.js +6 -0
- package/dist/vtn/_shared/0.1/rooms.js.map +1 -0
- package/dist/vtn/audit/list/0.1/payload.d.ts +457 -0
- package/dist/vtn/audit/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/audit/list/0.1/payload.js +292 -0
- package/dist/vtn/audit/list/0.1/payload.js.map +1 -0
- package/dist/vtn/broadcasts/list/0.1/payload.d.ts +687 -0
- package/dist/vtn/broadcasts/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/broadcasts/list/0.1/payload.js +407 -0
- package/dist/vtn/broadcasts/list/0.1/payload.js.map +1 -0
- package/dist/vtn/broadcasts/send/0.1/payload.d.ts +728 -0
- package/dist/vtn/broadcasts/send/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/broadcasts/send/0.1/payload.js +425 -0
- package/dist/vtn/broadcasts/send/0.1/payload.js.map +1 -0
- package/dist/vtn/broadcasts/show/0.1/payload.d.ts +670 -0
- package/dist/vtn/broadcasts/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/broadcasts/show/0.1/payload.js +402 -0
- package/dist/vtn/broadcasts/show/0.1/payload.js.map +1 -0
- package/dist/vtn/directory/federated/0.1/payload.d.ts +939 -0
- package/dist/vtn/directory/federated/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/directory/federated/0.1/payload.js +536 -0
- package/dist/vtn/directory/federated/0.1/payload.js.map +1 -0
- package/dist/vtn/directory/search/0.1/payload.d.ts +643 -0
- package/dist/vtn/directory/search/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/directory/search/0.1/payload.js +368 -0
- package/dist/vtn/directory/search/0.1/payload.js.map +1 -0
- package/dist/vtn/directory/summary/0.1/payload.d.ts +366 -0
- package/dist/vtn/directory/summary/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/directory/summary/0.1/payload.js +216 -0
- package/dist/vtn/directory/summary/0.1/payload.js.map +1 -0
- package/dist/vtn/entries/show/0.1/payload.d.ts +682 -0
- package/dist/vtn/entries/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/entries/show/0.1/payload.js +398 -0
- package/dist/vtn/entries/show/0.1/payload.js.map +1 -0
- package/dist/vtn/graph/member/0.1/payload.d.ts +754 -0
- package/dist/vtn/graph/member/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/graph/member/0.1/payload.js +470 -0
- package/dist/vtn/graph/member/0.1/payload.js.map +1 -0
- package/dist/vtn/graph/show/0.1/payload.d.ts +754 -0
- package/dist/vtn/graph/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/graph/show/0.1/payload.js +468 -0
- package/dist/vtn/graph/show/0.1/payload.js.map +1 -0
- package/dist/vtn/groups/list/0.1/payload.d.ts +489 -0
- package/dist/vtn/groups/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/groups/list/0.1/payload.js +282 -0
- package/dist/vtn/groups/list/0.1/payload.js.map +1 -0
- package/dist/vtn/groups/register/0.1/payload.d.ts +504 -0
- package/dist/vtn/groups/register/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/groups/register/0.1/payload.js +291 -0
- package/dist/vtn/groups/register/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/create/0.1/payload.d.ts +954 -0
- package/dist/vtn/listings/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/create/0.1/payload.js +549 -0
- package/dist/vtn/listings/create/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/list/0.1/payload.d.ts +933 -0
- package/dist/vtn/listings/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/list/0.1/payload.js +538 -0
- package/dist/vtn/listings/list/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/reinstate/0.1/payload.d.ts +926 -0
- package/dist/vtn/listings/reinstate/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/reinstate/0.1/payload.js +536 -0
- package/dist/vtn/listings/reinstate/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/remove/0.1/payload.d.ts +926 -0
- package/dist/vtn/listings/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/remove/0.1/payload.js +536 -0
- package/dist/vtn/listings/remove/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/show/0.1/payload.d.ts +914 -0
- package/dist/vtn/listings/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/show/0.1/payload.js +532 -0
- package/dist/vtn/listings/show/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/suspend/0.1/payload.d.ts +926 -0
- package/dist/vtn/listings/suspend/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/suspend/0.1/payload.js +536 -0
- package/dist/vtn/listings/suspend/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/update/0.1/payload.d.ts +966 -0
- package/dist/vtn/listings/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/update/0.1/payload.js +550 -0
- package/dist/vtn/listings/update/0.1/payload.js.map +1 -0
- package/dist/vtn/membership/acknowledge/0.1/payload.d.ts +654 -0
- package/dist/vtn/membership/acknowledge/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/membership/acknowledge/0.1/payload.js +386 -0
- package/dist/vtn/membership/acknowledge/0.1/payload.js.map +1 -0
- package/dist/vtn/membership/offer/0.1/payload.d.ts +247 -0
- package/dist/vtn/membership/offer/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/membership/offer/0.1/payload.js +147 -0
- package/dist/vtn/membership/offer/0.1/payload.js.map +1 -0
- package/dist/vtn/membership/repudiate/0.1/payload.d.ts +654 -0
- package/dist/vtn/membership/repudiate/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/membership/repudiate/0.1/payload.js +386 -0
- package/dist/vtn/membership/repudiate/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/groups/add/0.1/payload.d.ts +677 -0
- package/dist/vtn/memberships/groups/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/groups/add/0.1/payload.js +394 -0
- package/dist/vtn/memberships/groups/add/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/join/0.1/payload.d.ts +755 -0
- package/dist/vtn/memberships/join/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/join/0.1/payload.js +438 -0
- package/dist/vtn/memberships/join/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/leave/0.1/payload.d.ts +653 -0
- package/dist/vtn/memberships/leave/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/leave/0.1/payload.js +384 -0
- package/dist/vtn/memberships/leave/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/list/0.1/payload.d.ts +651 -0
- package/dist/vtn/memberships/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/list/0.1/payload.js +383 -0
- package/dist/vtn/memberships/list/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/repudiate/0.1/payload.d.ts +669 -0
- package/dist/vtn/memberships/repudiate/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/repudiate/0.1/payload.js +391 -0
- package/dist/vtn/memberships/repudiate/0.1/payload.js.map +1 -0
- package/dist/vtn/outbox/list/0.1/payload.d.ts +567 -0
- package/dist/vtn/outbox/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/outbox/list/0.1/payload.js +333 -0
- package/dist/vtn/outbox/list/0.1/payload.js.map +1 -0
- package/dist/vtn/outbox/retry/0.1/payload.d.ts +235 -0
- package/dist/vtn/outbox/retry/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/outbox/retry/0.1/payload.js +141 -0
- package/dist/vtn/outbox/retry/0.1/payload.js.map +1 -0
- package/dist/vtn/relay/deliver/0.1/payload.d.ts +592 -0
- package/dist/vtn/relay/deliver/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/relay/deliver/0.1/payload.js +352 -0
- package/dist/vtn/relay/deliver/0.1/payload.js.map +1 -0
- package/dist/vtn/roles/list/0.1/payload.d.ts +371 -0
- package/dist/vtn/roles/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/roles/list/0.1/payload.js +213 -0
- package/dist/vtn/roles/list/0.1/payload.js.map +1 -0
- package/dist/vtn/rooms/list/0.1/payload.d.ts +447 -0
- package/dist/vtn/rooms/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/rooms/list/0.1/payload.js +255 -0
- package/dist/vtn/rooms/list/0.1/payload.js.map +1 -0
- package/dist/vtn/rooms/pass/0.1/payload.d.ts +674 -0
- package/dist/vtn/rooms/pass/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/rooms/pass/0.1/payload.js +383 -0
- package/dist/vtn/rooms/pass/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +960 -0
- package/src/index.ts +156 -0
- package/src/vta/collection/_shared/0.1/collection.ts +17 -0
- package/src/vta/collection/claim/0.1/payload.ts +247 -0
- package/src/vta/collection/list/0.1/payload.ts +500 -0
- package/src/vta/collection/release/0.1/payload.ts +223 -0
- package/src/vta/notifications/deposit/0.1/payload.ts +243 -0
- package/src/vta/pcs/vetter/recover/0.1/payload.ts +437 -0
- package/src/vtc/notifications/_shared/0.1/received-notification.ts +17 -0
- package/src/vtc/notifications/list/0.1/payload.ts +809 -0
- package/src/vtc/notifications/relay/0.1/payload.ts +382 -0
- package/src/vtc/notifications/show/0.1/payload.ts +761 -0
- package/src/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.ts +247 -0
- package/src/vtc/vetting/vetters/pcs-binding/show/0.1/payload.ts +295 -0
- package/src/vtn/_shared/0.1/directory.ts +17 -0
- package/src/vtn/_shared/0.1/entry.ts +17 -0
- package/src/vtn/_shared/0.1/graph.ts +17 -0
- package/src/vtn/_shared/0.1/groups.ts +17 -0
- package/src/vtn/_shared/0.1/membership.ts +17 -0
- package/src/vtn/_shared/0.1/relay.ts +17 -0
- package/src/vtn/_shared/0.1/rooms.ts +17 -0
- package/src/vtn/audit/list/0.1/payload.ts +336 -0
- package/src/vtn/broadcasts/list/0.1/payload.ts +447 -0
- package/src/vtn/broadcasts/send/0.1/payload.ts +478 -0
- package/src/vtn/broadcasts/show/0.1/payload.ts +439 -0
- package/src/vtn/directory/federated/0.1/payload.ts +594 -0
- package/src/vtn/directory/search/0.1/payload.ts +418 -0
- package/src/vtn/directory/summary/0.1/payload.ts +253 -0
- package/src/vtn/entries/show/0.1/payload.ts +439 -0
- package/src/vtn/graph/member/0.1/payload.ts +511 -0
- package/src/vtn/graph/show/0.1/payload.ts +509 -0
- package/src/vtn/groups/list/0.1/payload.ts +322 -0
- package/src/vtn/groups/register/0.1/payload.ts +336 -0
- package/src/vtn/listings/create/0.1/payload.ts +594 -0
- package/src/vtn/listings/list/0.1/payload.ts +578 -0
- package/src/vtn/listings/reinstate/0.1/payload.ts +577 -0
- package/src/vtn/listings/remove/0.1/payload.ts +577 -0
- package/src/vtn/listings/show/0.1/payload.ts +569 -0
- package/src/vtn/listings/suspend/0.1/payload.ts +577 -0
- package/src/vtn/listings/update/0.1/payload.ts +603 -0
- package/src/vtn/membership/acknowledge/0.1/payload.ts +423 -0
- package/src/vtn/membership/offer/0.1/payload.ts +183 -0
- package/src/vtn/membership/repudiate/0.1/payload.ts +423 -0
- package/src/vtn/memberships/groups/add/0.1/payload.ts +442 -0
- package/src/vtn/memberships/join/0.1/payload.ts +488 -0
- package/src/vtn/memberships/leave/0.1/payload.ts +424 -0
- package/src/vtn/memberships/list/0.1/payload.ts +419 -0
- package/src/vtn/memberships/repudiate/0.1/payload.ts +435 -0
- package/src/vtn/outbox/list/0.1/payload.ts +369 -0
- package/src/vtn/outbox/retry/0.1/payload.ts +177 -0
- package/src/vtn/relay/deliver/0.1/payload.ts +397 -0
- package/src/vtn/roles/list/0.1/payload.ts +253 -0
- package/src/vtn/rooms/list/0.1/payload.ts +295 -0
- package/src/vtn/rooms/pass/0.1/payload.ts +439 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/collection/release/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A client with standing in a trust context releases the collection claim for an identifier there. Released by its claimant, which has already stopped collecting, the claim ends at once and the VTA collects for the identifier again. Released by any other party, the claim becomes unrenewable and still ends at its end, because its claimant is still connected until then (VTI-NTF-083, VTI-NTF-084). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTACollectionReleasePayload {
|
|
13
|
+
contextId: ContextId;
|
|
14
|
+
/**
|
|
15
|
+
* The identifier whose claim to release.
|
|
16
|
+
*/
|
|
17
|
+
identifier: Did;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.
|
|
22
|
+
*/
|
|
23
|
+
export interface VTACollectionReleaseResponsePayload {
|
|
24
|
+
identifier: Did;
|
|
25
|
+
/**
|
|
26
|
+
* When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's.
|
|
27
|
+
*/
|
|
28
|
+
endsAt?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
32
|
+
export type { ContextId, Did, Ext };
|
|
33
|
+
|
|
34
|
+
/** Trust Task type URI. */
|
|
35
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/collection/release/0.1" as const;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The earlier version of this specification that this one declares it
|
|
39
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
40
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
41
|
+
* `extendsChain` / `readForSpec`.
|
|
42
|
+
*/
|
|
43
|
+
export const EXTENDS: string | null = null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
47
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
48
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
49
|
+
* Versions").
|
|
50
|
+
*/
|
|
51
|
+
export const DEPRECATION: string | null = null;
|
|
52
|
+
|
|
53
|
+
/** Stable alias for this specification's request payload shape. */
|
|
54
|
+
export type Payload = VTACollectionReleasePayload;
|
|
55
|
+
|
|
56
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
57
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/collection/release/0.1#response" as const;
|
|
58
|
+
|
|
59
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
60
|
+
export type Response = VTACollectionReleaseResponsePayload;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* This specification's payload schema, as a value.
|
|
64
|
+
*
|
|
65
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
66
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
67
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
68
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
69
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
70
|
+
*/
|
|
71
|
+
export const PAYLOAD_SCHEMA = {
|
|
72
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
73
|
+
"$id": "https://trusttasks.org/spec/vta/collection/release/0.1",
|
|
74
|
+
"title": "VTA Collection — Release — payload",
|
|
75
|
+
"description": "A client with standing in a trust context releases the collection claim for an identifier there. Released by its claimant, which has already stopped collecting, the claim ends at once and the VTA collects for the identifier again. Released by any other party, the claim becomes unrenewable and still ends at its end, because its claimant is still connected until then (VTI-NTF-083, VTI-NTF-084). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": [
|
|
79
|
+
"contextId",
|
|
80
|
+
"identifier"
|
|
81
|
+
],
|
|
82
|
+
"properties": {
|
|
83
|
+
"contextId": {
|
|
84
|
+
"$ref": "#/$defs/ContextId"
|
|
85
|
+
},
|
|
86
|
+
"identifier": {
|
|
87
|
+
"$ref": "#/$defs/Did",
|
|
88
|
+
"description": "The identifier whose claim to release."
|
|
89
|
+
},
|
|
90
|
+
"ext": {
|
|
91
|
+
"$ref": "#/$defs/Ext"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"$defs": {
|
|
95
|
+
"Response": {
|
|
96
|
+
"$anchor": "response",
|
|
97
|
+
"title": "VTA Collection — Release — response payload",
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": [
|
|
101
|
+
"identifier"
|
|
102
|
+
],
|
|
103
|
+
"description": "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.",
|
|
104
|
+
"properties": {
|
|
105
|
+
"identifier": {
|
|
106
|
+
"$ref": "#/$defs/Did"
|
|
107
|
+
},
|
|
108
|
+
"endsAt": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"format": "date-time",
|
|
111
|
+
"description": "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's."
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"Did": {
|
|
116
|
+
"title": "Did",
|
|
117
|
+
"description": "A DID.",
|
|
118
|
+
"type": "string",
|
|
119
|
+
"minLength": 8,
|
|
120
|
+
"maxLength": 2048,
|
|
121
|
+
"pattern": "^did:[a-z0-9]+:\\S+$"
|
|
122
|
+
},
|
|
123
|
+
"Ext": {
|
|
124
|
+
"title": "Ext",
|
|
125
|
+
"description": "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.",
|
|
126
|
+
"type": "object",
|
|
127
|
+
"minProperties": 1,
|
|
128
|
+
"additionalProperties": true,
|
|
129
|
+
"propertyNames": {
|
|
130
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"ContextId": {
|
|
134
|
+
"title": "ContextId",
|
|
135
|
+
"description": "The trust context the identifier belongs to.",
|
|
136
|
+
"type": "string",
|
|
137
|
+
"minLength": 1,
|
|
138
|
+
"maxLength": 256
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
} as const;
|
|
142
|
+
|
|
143
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
144
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
145
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
146
|
+
"$ref": "#/$defs/Response",
|
|
147
|
+
"$defs": {
|
|
148
|
+
"Response": {
|
|
149
|
+
"$anchor": "response",
|
|
150
|
+
"title": "VTA Collection — Release — response payload",
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"required": [
|
|
154
|
+
"identifier"
|
|
155
|
+
],
|
|
156
|
+
"description": "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.",
|
|
157
|
+
"properties": {
|
|
158
|
+
"identifier": {
|
|
159
|
+
"$ref": "#/$defs/Did"
|
|
160
|
+
},
|
|
161
|
+
"endsAt": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"format": "date-time",
|
|
164
|
+
"description": "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's."
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"Did": {
|
|
169
|
+
"title": "Did",
|
|
170
|
+
"description": "A DID.",
|
|
171
|
+
"type": "string",
|
|
172
|
+
"minLength": 8,
|
|
173
|
+
"maxLength": 2048,
|
|
174
|
+
"pattern": "^did:[a-z0-9]+:\\S+$"
|
|
175
|
+
},
|
|
176
|
+
"Ext": {
|
|
177
|
+
"title": "Ext",
|
|
178
|
+
"description": "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.",
|
|
179
|
+
"type": "object",
|
|
180
|
+
"minProperties": 1,
|
|
181
|
+
"additionalProperties": true,
|
|
182
|
+
"propertyNames": {
|
|
183
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"ContextId": {
|
|
187
|
+
"title": "ContextId",
|
|
188
|
+
"description": "The trust context the identifier belongs to.",
|
|
189
|
+
"type": "string",
|
|
190
|
+
"minLength": 1,
|
|
191
|
+
"maxLength": 256
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
} as const;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
198
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
199
|
+
* per-specification and cannot be derived from the document alone, and
|
|
200
|
+
* item 2 needs the schema this carries.
|
|
201
|
+
*/
|
|
202
|
+
export const SPEC = {
|
|
203
|
+
typeUri: TYPE_URI,
|
|
204
|
+
isBearer: false,
|
|
205
|
+
isProofRequired: false,
|
|
206
|
+
isRecipientRequired: true,
|
|
207
|
+
isIssuedAtRequired: true,
|
|
208
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
209
|
+
} as const;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
213
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
214
|
+
* parties (§7.3 item 5).
|
|
215
|
+
*/
|
|
216
|
+
export const RESPONSE_SPEC = {
|
|
217
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
218
|
+
isBearer: false,
|
|
219
|
+
isProofRequired: false,
|
|
220
|
+
isRecipientRequired: true,
|
|
221
|
+
isIssuedAtRequired: true,
|
|
222
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
223
|
+
} as const;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/notifications/deposit/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ContextId, Ext, NotificationId } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A client with standing in a trust context hands its VTA a notifications/notify or notifications/relay document it received for a DID the VTA holds keys of in that context — a persona DID whose mediator socket the client holds — exactly as received, proof included. The VTA verifies and holds it exactly as if the document had been delivered to it directly: the same layer-by-layer verification, the same acceptance policy counting the party that delivered the document and never the depositing client, the same one record per originator and notificationId, and the same receipt whatever it did (VTI-NTF-054 – VTI-NTF-056). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTANotificationsDepositPayload {
|
|
13
|
+
/**
|
|
14
|
+
* The trust context the addressed DID belongs to, in which the VTA holds the notification if it accepts it.
|
|
15
|
+
*/
|
|
16
|
+
contextId: ContextId;
|
|
17
|
+
document: DepositedDocument;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The notifications/notify/0.1 or notifications/relay/0.1 document the client received, kept whole and exactly as received — proof included — never restated, re-serialised from a typed form, or re-signed. Deliberately an opaque object, so that every member its issuer signed survives byte for byte for the VTA, and later the principal's client through vta/notifications/show, to verify. Its `recipient` MUST be a DID the VTA holds keys of in `contextId`.
|
|
22
|
+
*/
|
|
23
|
+
export interface DepositedDocument {}
|
|
24
|
+
/**
|
|
25
|
+
* Receipt of a deposited document the VTA verified, naming the innermost notification. The same whether the VTA held it, declined it under its acceptance policy, or already held the revision, and never saying which (VTI-NTF-023, VTI-NTF-055).
|
|
26
|
+
*/
|
|
27
|
+
export interface VTANotificationsDepositResponsePayload {
|
|
28
|
+
notificationId: NotificationId;
|
|
29
|
+
/**
|
|
30
|
+
* The revision of the innermost notification, echoed.
|
|
31
|
+
*/
|
|
32
|
+
revision: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
36
|
+
export type { ContextId, Ext, NotificationId };
|
|
37
|
+
|
|
38
|
+
/** Trust Task type URI. */
|
|
39
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/notifications/deposit/0.1" as const;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The earlier version of this specification that this one declares it
|
|
43
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
44
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
45
|
+
* `extendsChain` / `readForSpec`.
|
|
46
|
+
*/
|
|
47
|
+
export const EXTENDS: string | null = null;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
51
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
52
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
53
|
+
* Versions").
|
|
54
|
+
*/
|
|
55
|
+
export const DEPRECATION: string | null = null;
|
|
56
|
+
|
|
57
|
+
/** Stable alias for this specification's request payload shape. */
|
|
58
|
+
export type Payload = VTANotificationsDepositPayload;
|
|
59
|
+
|
|
60
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
61
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/notifications/deposit/0.1#response" as const;
|
|
62
|
+
|
|
63
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
64
|
+
export type Response = VTANotificationsDepositResponsePayload;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* This specification's payload schema, as a value.
|
|
68
|
+
*
|
|
69
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
70
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
71
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
72
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
73
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
74
|
+
*/
|
|
75
|
+
export const PAYLOAD_SCHEMA = {
|
|
76
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
77
|
+
"$id": "https://trusttasks.org/spec/vta/notifications/deposit/0.1",
|
|
78
|
+
"title": "VTA Notifications — Deposit — payload",
|
|
79
|
+
"description": "A client with standing in a trust context hands its VTA a notifications/notify or notifications/relay document it received for a DID the VTA holds keys of in that context — a persona DID whose mediator socket the client holds — exactly as received, proof included. The VTA verifies and holds it exactly as if the document had been delivered to it directly: the same layer-by-layer verification, the same acceptance policy counting the party that delivered the document and never the depositing client, the same one record per originator and notificationId, and the same receipt whatever it did (VTI-NTF-054 – VTI-NTF-056). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": [
|
|
83
|
+
"contextId",
|
|
84
|
+
"document"
|
|
85
|
+
],
|
|
86
|
+
"properties": {
|
|
87
|
+
"contextId": {
|
|
88
|
+
"$ref": "#/$defs/ContextId",
|
|
89
|
+
"description": "The trust context the addressed DID belongs to, in which the VTA holds the notification if it accepts it."
|
|
90
|
+
},
|
|
91
|
+
"document": {
|
|
92
|
+
"$ref": "#/$defs/DepositedDocument"
|
|
93
|
+
},
|
|
94
|
+
"ext": {
|
|
95
|
+
"$ref": "#/$defs/Ext"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"$defs": {
|
|
99
|
+
"DepositedDocument": {
|
|
100
|
+
"title": "DepositedDocument",
|
|
101
|
+
"description": "The notifications/notify/0.1 or notifications/relay/0.1 document the client received, kept whole and exactly as received — proof included — never restated, re-serialised from a typed form, or re-signed. Deliberately an opaque object, so that every member its issuer signed survives byte for byte for the VTA, and later the principal's client through vta/notifications/show, to verify. Its `recipient` MUST be a DID the VTA holds keys of in `contextId`.",
|
|
102
|
+
"type": "object",
|
|
103
|
+
"minProperties": 1
|
|
104
|
+
},
|
|
105
|
+
"Response": {
|
|
106
|
+
"$anchor": "response",
|
|
107
|
+
"title": "VTA Notifications — Deposit — response payload",
|
|
108
|
+
"type": "object",
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"required": [
|
|
111
|
+
"notificationId",
|
|
112
|
+
"revision"
|
|
113
|
+
],
|
|
114
|
+
"description": "Receipt of a deposited document the VTA verified, naming the innermost notification. The same whether the VTA held it, declined it under its acceptance policy, or already held the revision, and never saying which (VTI-NTF-023, VTI-NTF-055).",
|
|
115
|
+
"properties": {
|
|
116
|
+
"notificationId": {
|
|
117
|
+
"$ref": "#/$defs/NotificationId"
|
|
118
|
+
},
|
|
119
|
+
"revision": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"minimum": 1,
|
|
122
|
+
"maximum": 1000000,
|
|
123
|
+
"description": "The revision of the innermost notification, echoed."
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"NotificationId": {
|
|
128
|
+
"title": "NotificationId",
|
|
129
|
+
"description": "The originator's identifier for one notification, unique among the notifications that originator issues and the same in every document that carries it — retries, re-issued documents and relayed copies alike. It is the notification's idempotency key (VTI-NTF-021). Compared for equality only. An originator SHOULD make it unguessable and SHOULD NOT make it descriptive: it travels as far as the notification does.",
|
|
130
|
+
"type": "string",
|
|
131
|
+
"minLength": 1,
|
|
132
|
+
"maxLength": 256,
|
|
133
|
+
"pattern": "^[A-Za-z0-9._~:-]+$"
|
|
134
|
+
},
|
|
135
|
+
"Ext": {
|
|
136
|
+
"title": "Ext",
|
|
137
|
+
"description": "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.",
|
|
138
|
+
"type": "object",
|
|
139
|
+
"minProperties": 1,
|
|
140
|
+
"additionalProperties": true,
|
|
141
|
+
"propertyNames": {
|
|
142
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"ContextId": {
|
|
146
|
+
"title": "ContextId",
|
|
147
|
+
"description": "The trust context the notification is held in: the one the addressed DID belongs to.",
|
|
148
|
+
"type": "string",
|
|
149
|
+
"minLength": 1,
|
|
150
|
+
"maxLength": 256
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
} as const;
|
|
154
|
+
|
|
155
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
156
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
157
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
158
|
+
"$ref": "#/$defs/Response",
|
|
159
|
+
"$defs": {
|
|
160
|
+
"DepositedDocument": {
|
|
161
|
+
"title": "DepositedDocument",
|
|
162
|
+
"description": "The notifications/notify/0.1 or notifications/relay/0.1 document the client received, kept whole and exactly as received — proof included — never restated, re-serialised from a typed form, or re-signed. Deliberately an opaque object, so that every member its issuer signed survives byte for byte for the VTA, and later the principal's client through vta/notifications/show, to verify. Its `recipient` MUST be a DID the VTA holds keys of in `contextId`.",
|
|
163
|
+
"type": "object",
|
|
164
|
+
"minProperties": 1
|
|
165
|
+
},
|
|
166
|
+
"Response": {
|
|
167
|
+
"$anchor": "response",
|
|
168
|
+
"title": "VTA Notifications — Deposit — response payload",
|
|
169
|
+
"type": "object",
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"required": [
|
|
172
|
+
"notificationId",
|
|
173
|
+
"revision"
|
|
174
|
+
],
|
|
175
|
+
"description": "Receipt of a deposited document the VTA verified, naming the innermost notification. The same whether the VTA held it, declined it under its acceptance policy, or already held the revision, and never saying which (VTI-NTF-023, VTI-NTF-055).",
|
|
176
|
+
"properties": {
|
|
177
|
+
"notificationId": {
|
|
178
|
+
"$ref": "#/$defs/NotificationId"
|
|
179
|
+
},
|
|
180
|
+
"revision": {
|
|
181
|
+
"type": "integer",
|
|
182
|
+
"minimum": 1,
|
|
183
|
+
"maximum": 1000000,
|
|
184
|
+
"description": "The revision of the innermost notification, echoed."
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"NotificationId": {
|
|
189
|
+
"title": "NotificationId",
|
|
190
|
+
"description": "The originator's identifier for one notification, unique among the notifications that originator issues and the same in every document that carries it — retries, re-issued documents and relayed copies alike. It is the notification's idempotency key (VTI-NTF-021). Compared for equality only. An originator SHOULD make it unguessable and SHOULD NOT make it descriptive: it travels as far as the notification does.",
|
|
191
|
+
"type": "string",
|
|
192
|
+
"minLength": 1,
|
|
193
|
+
"maxLength": 256,
|
|
194
|
+
"pattern": "^[A-Za-z0-9._~:-]+$"
|
|
195
|
+
},
|
|
196
|
+
"Ext": {
|
|
197
|
+
"title": "Ext",
|
|
198
|
+
"description": "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.",
|
|
199
|
+
"type": "object",
|
|
200
|
+
"minProperties": 1,
|
|
201
|
+
"additionalProperties": true,
|
|
202
|
+
"propertyNames": {
|
|
203
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"ContextId": {
|
|
207
|
+
"title": "ContextId",
|
|
208
|
+
"description": "The trust context the notification is held in: the one the addressed DID belongs to.",
|
|
209
|
+
"type": "string",
|
|
210
|
+
"minLength": 1,
|
|
211
|
+
"maxLength": 256
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
} as const;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
218
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
219
|
+
* per-specification and cannot be derived from the document alone, and
|
|
220
|
+
* item 2 needs the schema this carries.
|
|
221
|
+
*/
|
|
222
|
+
export const SPEC = {
|
|
223
|
+
typeUri: TYPE_URI,
|
|
224
|
+
isBearer: false,
|
|
225
|
+
isProofRequired: false,
|
|
226
|
+
isRecipientRequired: true,
|
|
227
|
+
isIssuedAtRequired: true,
|
|
228
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
229
|
+
} as const;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
233
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
234
|
+
* parties (§7.3 item 5).
|
|
235
|
+
*/
|
|
236
|
+
export const RESPONSE_SPEC = {
|
|
237
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
238
|
+
isBearer: false,
|
|
239
|
+
isProofRequired: false,
|
|
240
|
+
isRecipientRequired: true,
|
|
241
|
+
isIssuedAtRequired: true,
|
|
242
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
243
|
+
} as const;
|