@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,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/collection/_shared/0.1/collection.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Shared shapes for the collection of messages for a principal's identifiers. A VTA collects, from the mediator each identifier's DID document advertises, the messages queued for every identifier whose messaging keys it holds in one of the principal's trust contexts — its personas — unless a client of the principal holds a collection claim for it: a lease, granted by vta/collection/claim and ended by vta/collection/release or at its end, under which that client is the identifier's one collector. The mediator permits one connection per identifier, so at most one party collects for an identifier at a time (VTI-NTF-080 – VTI-NTF-092).
|
|
7
|
+
*/
|
|
8
|
+
export interface VTACollectionSharedDefinitions {
|
|
9
|
+
[k: string]: unknown | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
13
|
+
* See "../../../../_shared/components.js".
|
|
14
|
+
*/
|
|
15
|
+
export type { Claim, CollectionEntry, Collector, ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, NotCollectedReason } from "../../../../_shared/components.js";
|
|
16
|
+
//# sourceMappingURL=collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../src/vta/collection/_shared/0.1/collection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,2BAA2B,IAAI,SAAS,EAAE,qBAAqB,IAAI,GAAG,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../src/vta/collection/_shared/0.1/collection.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/collection/claim/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, Ext } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A client with standing in a trust context asks its VTA to make it, until a stated end, the one collector of the messages queued at the mediator for an identifier whose keys the VTA holds there — a persona DID — or renews a claim it already holds. Before it grants, the VTA stops collecting for the identifier and closes every connection it holds for it; the client opens its own only once it holds the grant, and closes it before the claim ends unless it has renewed (VTI-NTF-081 – VTI-NTF-083). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTACollectionClaimPayload {
|
|
10
|
+
contextId: ContextId;
|
|
11
|
+
/**
|
|
12
|
+
* The identifier to collect for: one whose messaging keys the VTA holds in `contextId` and whose DID document advertises a transport through a mediator.
|
|
13
|
+
*/
|
|
14
|
+
identifier: Did;
|
|
15
|
+
/**
|
|
16
|
+
* How long the client asks the claim to last from the grant. The VTA grants no longer than the maximum it states, and may grant less; absent, it grants its own default. The granted end is `endsAt` in the response.
|
|
17
|
+
*/
|
|
18
|
+
durationSeconds?: number;
|
|
19
|
+
ext?: Ext;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The grant: the VTA has stopped collecting for `identifier` and closed every connection it held for it, and the caller is its collector until `endsAt`.
|
|
23
|
+
*/
|
|
24
|
+
export interface VTACollectionClaimResponsePayload {
|
|
25
|
+
identifier: Did;
|
|
26
|
+
/**
|
|
27
|
+
* When the claim ends unless renewed. The client stops collecting before this instant less its clock-skew tolerance (VTI-NTF-083).
|
|
28
|
+
*/
|
|
29
|
+
endsAt: string;
|
|
30
|
+
/**
|
|
31
|
+
* True when the caller already held a claim for the identifier and this grant moved its end; absent or false for a new claim.
|
|
32
|
+
*/
|
|
33
|
+
renewed?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
36
|
+
export type { ContextId, Did, Ext };
|
|
37
|
+
/** Trust Task type URI. */
|
|
38
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/collection/claim/0.1";
|
|
39
|
+
/**
|
|
40
|
+
* The earlier version of this specification that this one declares it
|
|
41
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
42
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
43
|
+
* `extendsChain` / `readForSpec`.
|
|
44
|
+
*/
|
|
45
|
+
export declare const EXTENDS: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
48
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
49
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
50
|
+
* Versions").
|
|
51
|
+
*/
|
|
52
|
+
export declare const DEPRECATION: string | null;
|
|
53
|
+
/** Stable alias for this specification's request payload shape. */
|
|
54
|
+
export type Payload = VTACollectionClaimPayload;
|
|
55
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
56
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/collection/claim/0.1#response";
|
|
57
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
58
|
+
export type Response = VTACollectionClaimResponsePayload;
|
|
59
|
+
/**
|
|
60
|
+
* This specification's payload schema, as a value.
|
|
61
|
+
*
|
|
62
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
63
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
64
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
65
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
66
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
67
|
+
*/
|
|
68
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
69
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
70
|
+
readonly $id: "https://trusttasks.org/spec/vta/collection/claim/0.1";
|
|
71
|
+
readonly title: "VTA Collection — Claim — payload";
|
|
72
|
+
readonly description: "A client with standing in a trust context asks its VTA to make it, until a stated end, the one collector of the messages queued at the mediator for an identifier whose keys the VTA holds there — a persona DID — or renews a claim it already holds. Before it grants, the VTA stops collecting for the identifier and closes every connection it holds for it; the client opens its own only once it holds the grant, and closes it before the claim ends unless it has renewed (VTI-NTF-081 – VTI-NTF-083). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
73
|
+
readonly type: "object";
|
|
74
|
+
readonly additionalProperties: false;
|
|
75
|
+
readonly required: readonly ["contextId", "identifier"];
|
|
76
|
+
readonly properties: {
|
|
77
|
+
readonly contextId: {
|
|
78
|
+
readonly $ref: "#/$defs/ContextId";
|
|
79
|
+
};
|
|
80
|
+
readonly identifier: {
|
|
81
|
+
readonly $ref: "#/$defs/Did";
|
|
82
|
+
readonly description: "The identifier to collect for: one whose messaging keys the VTA holds in `contextId` and whose DID document advertises a transport through a mediator.";
|
|
83
|
+
};
|
|
84
|
+
readonly durationSeconds: {
|
|
85
|
+
readonly type: "integer";
|
|
86
|
+
readonly minimum: 60;
|
|
87
|
+
readonly maximum: 2592000;
|
|
88
|
+
readonly description: "How long the client asks the claim to last from the grant. The VTA grants no longer than the maximum it states, and may grant less; absent, it grants its own default. The granted end is `endsAt` in the response.";
|
|
89
|
+
};
|
|
90
|
+
readonly ext: {
|
|
91
|
+
readonly $ref: "#/$defs/Ext";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly $defs: {
|
|
95
|
+
readonly Response: {
|
|
96
|
+
readonly $anchor: "response";
|
|
97
|
+
readonly title: "VTA Collection — Claim — response payload";
|
|
98
|
+
readonly type: "object";
|
|
99
|
+
readonly additionalProperties: false;
|
|
100
|
+
readonly required: readonly ["identifier", "endsAt"];
|
|
101
|
+
readonly description: "The grant: the VTA has stopped collecting for `identifier` and closed every connection it held for it, and the caller is its collector until `endsAt`.";
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly identifier: {
|
|
104
|
+
readonly $ref: "#/$defs/Did";
|
|
105
|
+
};
|
|
106
|
+
readonly endsAt: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly format: "date-time";
|
|
109
|
+
readonly description: "When the claim ends unless renewed. The client stops collecting before this instant less its clock-skew tolerance (VTI-NTF-083).";
|
|
110
|
+
};
|
|
111
|
+
readonly renewed: {
|
|
112
|
+
readonly type: "boolean";
|
|
113
|
+
readonly description: "True when the caller already held a claim for the identifier and this grant moved its end; absent or false for a new claim.";
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly Did: {
|
|
118
|
+
readonly title: "Did";
|
|
119
|
+
readonly description: "A DID.";
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
readonly minLength: 8;
|
|
122
|
+
readonly maxLength: 2048;
|
|
123
|
+
readonly pattern: "^did:[a-z0-9]+:\\S+$";
|
|
124
|
+
};
|
|
125
|
+
readonly Ext: {
|
|
126
|
+
readonly title: "Ext";
|
|
127
|
+
readonly 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.";
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly minProperties: 1;
|
|
130
|
+
readonly additionalProperties: true;
|
|
131
|
+
readonly propertyNames: {
|
|
132
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly ContextId: {
|
|
136
|
+
readonly title: "ContextId";
|
|
137
|
+
readonly description: "The trust context the identifier belongs to.";
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly minLength: 1;
|
|
140
|
+
readonly maxLength: 256;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
145
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
146
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
147
|
+
readonly $ref: "#/$defs/Response";
|
|
148
|
+
readonly $defs: {
|
|
149
|
+
readonly Response: {
|
|
150
|
+
readonly $anchor: "response";
|
|
151
|
+
readonly title: "VTA Collection — Claim — response payload";
|
|
152
|
+
readonly type: "object";
|
|
153
|
+
readonly additionalProperties: false;
|
|
154
|
+
readonly required: readonly ["identifier", "endsAt"];
|
|
155
|
+
readonly description: "The grant: the VTA has stopped collecting for `identifier` and closed every connection it held for it, and the caller is its collector until `endsAt`.";
|
|
156
|
+
readonly properties: {
|
|
157
|
+
readonly identifier: {
|
|
158
|
+
readonly $ref: "#/$defs/Did";
|
|
159
|
+
};
|
|
160
|
+
readonly endsAt: {
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly format: "date-time";
|
|
163
|
+
readonly description: "When the claim ends unless renewed. The client stops collecting before this instant less its clock-skew tolerance (VTI-NTF-083).";
|
|
164
|
+
};
|
|
165
|
+
readonly renewed: {
|
|
166
|
+
readonly type: "boolean";
|
|
167
|
+
readonly description: "True when the caller already held a claim for the identifier and this grant moved its end; absent or false for a new claim.";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
readonly Did: {
|
|
172
|
+
readonly title: "Did";
|
|
173
|
+
readonly description: "A DID.";
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly minLength: 8;
|
|
176
|
+
readonly maxLength: 2048;
|
|
177
|
+
readonly pattern: "^did:[a-z0-9]+:\\S+$";
|
|
178
|
+
};
|
|
179
|
+
readonly Ext: {
|
|
180
|
+
readonly title: "Ext";
|
|
181
|
+
readonly 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.";
|
|
182
|
+
readonly type: "object";
|
|
183
|
+
readonly minProperties: 1;
|
|
184
|
+
readonly additionalProperties: true;
|
|
185
|
+
readonly propertyNames: {
|
|
186
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
readonly ContextId: {
|
|
190
|
+
readonly title: "ContextId";
|
|
191
|
+
readonly description: "The trust context the identifier belongs to.";
|
|
192
|
+
readonly type: "string";
|
|
193
|
+
readonly minLength: 1;
|
|
194
|
+
readonly maxLength: 256;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
200
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
201
|
+
* per-specification and cannot be derived from the document alone, and
|
|
202
|
+
* item 2 needs the schema this carries.
|
|
203
|
+
*/
|
|
204
|
+
export declare const SPEC: {
|
|
205
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/collection/claim/0.1";
|
|
206
|
+
readonly isBearer: false;
|
|
207
|
+
readonly isProofRequired: false;
|
|
208
|
+
readonly isRecipientRequired: true;
|
|
209
|
+
readonly isIssuedAtRequired: true;
|
|
210
|
+
readonly payloadSchema: {
|
|
211
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
212
|
+
readonly $id: "https://trusttasks.org/spec/vta/collection/claim/0.1";
|
|
213
|
+
readonly title: "VTA Collection — Claim — payload";
|
|
214
|
+
readonly description: "A client with standing in a trust context asks its VTA to make it, until a stated end, the one collector of the messages queued at the mediator for an identifier whose keys the VTA holds there — a persona DID — or renews a claim it already holds. Before it grants, the VTA stops collecting for the identifier and closes every connection it holds for it; the client opens its own only once it holds the grant, and closes it before the claim ends unless it has renewed (VTI-NTF-081 – VTI-NTF-083). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
215
|
+
readonly type: "object";
|
|
216
|
+
readonly additionalProperties: false;
|
|
217
|
+
readonly required: readonly ["contextId", "identifier"];
|
|
218
|
+
readonly properties: {
|
|
219
|
+
readonly contextId: {
|
|
220
|
+
readonly $ref: "#/$defs/ContextId";
|
|
221
|
+
};
|
|
222
|
+
readonly identifier: {
|
|
223
|
+
readonly $ref: "#/$defs/Did";
|
|
224
|
+
readonly description: "The identifier to collect for: one whose messaging keys the VTA holds in `contextId` and whose DID document advertises a transport through a mediator.";
|
|
225
|
+
};
|
|
226
|
+
readonly durationSeconds: {
|
|
227
|
+
readonly type: "integer";
|
|
228
|
+
readonly minimum: 60;
|
|
229
|
+
readonly maximum: 2592000;
|
|
230
|
+
readonly description: "How long the client asks the claim to last from the grant. The VTA grants no longer than the maximum it states, and may grant less; absent, it grants its own default. The granted end is `endsAt` in the response.";
|
|
231
|
+
};
|
|
232
|
+
readonly ext: {
|
|
233
|
+
readonly $ref: "#/$defs/Ext";
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
readonly $defs: {
|
|
237
|
+
readonly Response: {
|
|
238
|
+
readonly $anchor: "response";
|
|
239
|
+
readonly title: "VTA Collection — Claim — response payload";
|
|
240
|
+
readonly type: "object";
|
|
241
|
+
readonly additionalProperties: false;
|
|
242
|
+
readonly required: readonly ["identifier", "endsAt"];
|
|
243
|
+
readonly description: "The grant: the VTA has stopped collecting for `identifier` and closed every connection it held for it, and the caller is its collector until `endsAt`.";
|
|
244
|
+
readonly properties: {
|
|
245
|
+
readonly identifier: {
|
|
246
|
+
readonly $ref: "#/$defs/Did";
|
|
247
|
+
};
|
|
248
|
+
readonly endsAt: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly format: "date-time";
|
|
251
|
+
readonly description: "When the claim ends unless renewed. The client stops collecting before this instant less its clock-skew tolerance (VTI-NTF-083).";
|
|
252
|
+
};
|
|
253
|
+
readonly renewed: {
|
|
254
|
+
readonly type: "boolean";
|
|
255
|
+
readonly description: "True when the caller already held a claim for the identifier and this grant moved its end; absent or false for a new claim.";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
readonly Did: {
|
|
260
|
+
readonly title: "Did";
|
|
261
|
+
readonly description: "A DID.";
|
|
262
|
+
readonly type: "string";
|
|
263
|
+
readonly minLength: 8;
|
|
264
|
+
readonly maxLength: 2048;
|
|
265
|
+
readonly pattern: "^did:[a-z0-9]+:\\S+$";
|
|
266
|
+
};
|
|
267
|
+
readonly Ext: {
|
|
268
|
+
readonly title: "Ext";
|
|
269
|
+
readonly 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.";
|
|
270
|
+
readonly type: "object";
|
|
271
|
+
readonly minProperties: 1;
|
|
272
|
+
readonly additionalProperties: true;
|
|
273
|
+
readonly propertyNames: {
|
|
274
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly ContextId: {
|
|
278
|
+
readonly title: "ContextId";
|
|
279
|
+
readonly description: "The trust context the identifier belongs to.";
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly minLength: 1;
|
|
282
|
+
readonly maxLength: 256;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
289
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
290
|
+
* parties (§7.3 item 5).
|
|
291
|
+
*/
|
|
292
|
+
export declare const RESPONSE_SPEC: {
|
|
293
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/collection/claim/0.1#response";
|
|
294
|
+
readonly isBearer: false;
|
|
295
|
+
readonly isProofRequired: false;
|
|
296
|
+
readonly isRecipientRequired: true;
|
|
297
|
+
readonly isIssuedAtRequired: true;
|
|
298
|
+
readonly payloadSchema: {
|
|
299
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
300
|
+
readonly $ref: "#/$defs/Response";
|
|
301
|
+
readonly $defs: {
|
|
302
|
+
readonly Response: {
|
|
303
|
+
readonly $anchor: "response";
|
|
304
|
+
readonly title: "VTA Collection — Claim — response payload";
|
|
305
|
+
readonly type: "object";
|
|
306
|
+
readonly additionalProperties: false;
|
|
307
|
+
readonly required: readonly ["identifier", "endsAt"];
|
|
308
|
+
readonly description: "The grant: the VTA has stopped collecting for `identifier` and closed every connection it held for it, and the caller is its collector until `endsAt`.";
|
|
309
|
+
readonly properties: {
|
|
310
|
+
readonly identifier: {
|
|
311
|
+
readonly $ref: "#/$defs/Did";
|
|
312
|
+
};
|
|
313
|
+
readonly endsAt: {
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
readonly format: "date-time";
|
|
316
|
+
readonly description: "When the claim ends unless renewed. The client stops collecting before this instant less its clock-skew tolerance (VTI-NTF-083).";
|
|
317
|
+
};
|
|
318
|
+
readonly renewed: {
|
|
319
|
+
readonly type: "boolean";
|
|
320
|
+
readonly description: "True when the caller already held a claim for the identifier and this grant moved its end; absent or false for a new claim.";
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
readonly Did: {
|
|
325
|
+
readonly title: "Did";
|
|
326
|
+
readonly description: "A DID.";
|
|
327
|
+
readonly type: "string";
|
|
328
|
+
readonly minLength: 8;
|
|
329
|
+
readonly maxLength: 2048;
|
|
330
|
+
readonly pattern: "^did:[a-z0-9]+:\\S+$";
|
|
331
|
+
};
|
|
332
|
+
readonly Ext: {
|
|
333
|
+
readonly title: "Ext";
|
|
334
|
+
readonly 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.";
|
|
335
|
+
readonly type: "object";
|
|
336
|
+
readonly minProperties: 1;
|
|
337
|
+
readonly additionalProperties: true;
|
|
338
|
+
readonly propertyNames: {
|
|
339
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
readonly ContextId: {
|
|
343
|
+
readonly title: "ContextId";
|
|
344
|
+
readonly description: "The trust context the identifier belongs to.";
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
readonly minLength: 1;
|
|
347
|
+
readonly maxLength: 256;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/collection/claim/0.1/payload.ts"],"names":[],"mapp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G;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/collection/claim/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/collection/claim/0.1";
|
|
7
|
+
/**
|
|
8
|
+
* The earlier version of this specification that this one declares it
|
|
9
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
10
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
11
|
+
* `extendsChain` / `readForSpec`.
|
|
12
|
+
*/
|
|
13
|
+
export const EXTENDS = null;
|
|
14
|
+
/**
|
|
15
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
16
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
17
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
|
+
* Versions").
|
|
19
|
+
*/
|
|
20
|
+
export const DEPRECATION = null;
|
|
21
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
22
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/collection/claim/0.1#response";
|
|
23
|
+
/**
|
|
24
|
+
* This specification's payload schema, as a value.
|
|
25
|
+
*
|
|
26
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
27
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
28
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
29
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
30
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
31
|
+
*/
|
|
32
|
+
export const PAYLOAD_SCHEMA = {
|
|
33
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
34
|
+
"$id": "https://trusttasks.org/spec/vta/collection/claim/0.1",
|
|
35
|
+
"title": "VTA Collection — Claim — payload",
|
|
36
|
+
"description": "A client with standing in a trust context asks its VTA to make it, until a stated end, the one collector of the messages queued at the mediator for an identifier whose keys the VTA holds there — a persona DID — or renews a claim it already holds. Before it grants, the VTA stops collecting for the identifier and closes every connection it holds for it; the client opens its own only once it holds the grant, and closes it before the claim ends unless it has renewed (VTI-NTF-081 – VTI-NTF-083). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": [
|
|
40
|
+
"contextId",
|
|
41
|
+
"identifier"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"contextId": {
|
|
45
|
+
"$ref": "#/$defs/ContextId"
|
|
46
|
+
},
|
|
47
|
+
"identifier": {
|
|
48
|
+
"$ref": "#/$defs/Did",
|
|
49
|
+
"description": "The identifier to collect for: one whose messaging keys the VTA holds in `contextId` and whose DID document advertises a transport through a mediator."
|
|
50
|
+
},
|
|
51
|
+
"durationSeconds": {
|
|
52
|
+
"type": "integer",
|
|
53
|
+
"minimum": 60,
|
|
54
|
+
"maximum": 2592000,
|
|
55
|
+
"description": "How long the client asks the claim to last from the grant. The VTA grants no longer than the maximum it states, and may grant less; absent, it grants its own default. The granted end is `endsAt` in the response."
|
|
56
|
+
},
|
|
57
|
+
"ext": {
|
|
58
|
+
"$ref": "#/$defs/Ext"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"$defs": {
|
|
62
|
+
"Response": {
|
|
63
|
+
"$anchor": "response",
|
|
64
|
+
"title": "VTA Collection — Claim — response payload",
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": [
|
|
68
|
+
"identifier",
|
|
69
|
+
"endsAt"
|
|
70
|
+
],
|
|
71
|
+
"description": "The grant: the VTA has stopped collecting for `identifier` and closed every connection it held for it, and the caller is its collector until `endsAt`.",
|
|
72
|
+
"properties": {
|
|
73
|
+
"identifier": {
|
|
74
|
+
"$ref": "#/$defs/Did"
|
|
75
|
+
},
|
|
76
|
+
"endsAt": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"format": "date-time",
|
|
79
|
+
"description": "When the claim ends unless renewed. The client stops collecting before this instant less its clock-skew tolerance (VTI-NTF-083)."
|
|
80
|
+
},
|
|
81
|
+
"renewed": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"description": "True when the caller already held a claim for the identifier and this grant moved its end; absent or false for a new claim."
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"Did": {
|
|
88
|
+
"title": "Did",
|
|
89
|
+
"description": "A DID.",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"minLength": 8,
|
|
92
|
+
"maxLength": 2048,
|
|
93
|
+
"pattern": "^did:[a-z0-9]+:\\S+$"
|
|
94
|
+
},
|
|
95
|
+
"Ext": {
|
|
96
|
+
"title": "Ext",
|
|
97
|
+
"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.",
|
|
98
|
+
"type": "object",
|
|
99
|
+
"minProperties": 1,
|
|
100
|
+
"additionalProperties": true,
|
|
101
|
+
"propertyNames": {
|
|
102
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"ContextId": {
|
|
106
|
+
"title": "ContextId",
|
|
107
|
+
"description": "The trust context the identifier belongs to.",
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1,
|
|
110
|
+
"maxLength": 256
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
115
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
116
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
117
|
+
"$ref": "#/$defs/Response",
|
|
118
|
+
"$defs": {
|
|
119
|
+
"Response": {
|
|
120
|
+
"$anchor": "response",
|
|
121
|
+
"title": "VTA Collection — Claim — response payload",
|
|
122
|
+
"type": "object",
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"required": [
|
|
125
|
+
"identifier",
|
|
126
|
+
"endsAt"
|
|
127
|
+
],
|
|
128
|
+
"description": "The grant: the VTA has stopped collecting for `identifier` and closed every connection it held for it, and the caller is its collector until `endsAt`.",
|
|
129
|
+
"properties": {
|
|
130
|
+
"identifier": {
|
|
131
|
+
"$ref": "#/$defs/Did"
|
|
132
|
+
},
|
|
133
|
+
"endsAt": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"format": "date-time",
|
|
136
|
+
"description": "When the claim ends unless renewed. The client stops collecting before this instant less its clock-skew tolerance (VTI-NTF-083)."
|
|
137
|
+
},
|
|
138
|
+
"renewed": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"description": "True when the caller already held a claim for the identifier and this grant moved its end; absent or false for a new claim."
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"Did": {
|
|
145
|
+
"title": "Did",
|
|
146
|
+
"description": "A DID.",
|
|
147
|
+
"type": "string",
|
|
148
|
+
"minLength": 8,
|
|
149
|
+
"maxLength": 2048,
|
|
150
|
+
"pattern": "^did:[a-z0-9]+:\\S+$"
|
|
151
|
+
},
|
|
152
|
+
"Ext": {
|
|
153
|
+
"title": "Ext",
|
|
154
|
+
"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.",
|
|
155
|
+
"type": "object",
|
|
156
|
+
"minProperties": 1,
|
|
157
|
+
"additionalProperties": true,
|
|
158
|
+
"propertyNames": {
|
|
159
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"ContextId": {
|
|
163
|
+
"title": "ContextId",
|
|
164
|
+
"description": "The trust context the identifier belongs to.",
|
|
165
|
+
"type": "string",
|
|
166
|
+
"minLength": 1,
|
|
167
|
+
"maxLength": 256
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
173
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
174
|
+
* per-specification and cannot be derived from the document alone, and
|
|
175
|
+
* item 2 needs the schema this carries.
|
|
176
|
+
*/
|
|
177
|
+
export const SPEC = {
|
|
178
|
+
typeUri: TYPE_URI,
|
|
179
|
+
isBearer: false,
|
|
180
|
+
isProofRequired: false,
|
|
181
|
+
isRecipientRequired: true,
|
|
182
|
+
isIssuedAtRequired: true,
|
|
183
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
187
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
188
|
+
* parties (§7.3 item 5).
|
|
189
|
+
*/
|
|
190
|
+
export const RESPONSE_SPEC = {
|
|
191
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
192
|
+
isBearer: false,
|
|
193
|
+
isProofRequired: false,
|
|
194
|
+
isRecipientRequired: true,
|
|
195
|
+
isIssuedAtRequired: true,
|
|
196
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
197
|
+
};
|
|
198
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/collection/claim/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAExF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,IAAI,CAAC;AAK/C,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,8mBAA8mB;IAC7nB,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;QACX,YAAY;KACb;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,mBAAmB;SAC5B;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,aAAa;YACrB,aAAa,EAAE,wJAAwJ;SACxK;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,OAAO;YAClB,aAAa,EAAE,qNAAqN;SACrO;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,2CAA2C;YACpD,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,YAAY;gBACZ,QAAQ;aACT;YACD,aAAa,EAAE,wJAAwJ;YACvK,YAAY,EAAE;gBACZ,YAAY,EAAE;oBACZ,MAAM,EAAE,aAAa;iBACtB;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