@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,728 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtn/broadcasts/send/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { BroadcastRecord, Credential, DeliveryStatus, Did_VtnV0_1 as Did, Ext, Receipt, RoleName_VtnV0_1 as RoleName } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* An administrator's message for every group registered for a role. The outer document members are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTNBroadcastsSendPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The role to address: delivered to every current member's group registered for it.
|
|
12
|
+
*/
|
|
13
|
+
role: RoleName;
|
|
14
|
+
/**
|
|
15
|
+
* What kind of message it is, for the receiving group to sort on: `notice` (the default), `request-for-action`, `room-invite`, or another the network's framework names.
|
|
16
|
+
*/
|
|
17
|
+
class?: string;
|
|
18
|
+
/**
|
|
19
|
+
* A one-line subject.
|
|
20
|
+
*/
|
|
21
|
+
subject: string;
|
|
22
|
+
/**
|
|
23
|
+
* The message text.
|
|
24
|
+
*/
|
|
25
|
+
body: string;
|
|
26
|
+
/**
|
|
27
|
+
* Where replies go, such as a URL or DID for a network data room, so that a broadcast never becomes reply-all.
|
|
28
|
+
*/
|
|
29
|
+
replyTo?: string;
|
|
30
|
+
ext?: Ext;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The broadcast as recorded, with each group's receipt as it stands when the network answers. Queued deliveries are retried from the outbox and update the record later.
|
|
34
|
+
*/
|
|
35
|
+
export interface VTNBroadcastsSendResponsePayload {
|
|
36
|
+
broadcast: BroadcastRecord;
|
|
37
|
+
ext?: Ext;
|
|
38
|
+
}
|
|
39
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
40
|
+
export type { BroadcastRecord, Credential, DeliveryStatus, Did, Ext, Receipt, RoleName };
|
|
41
|
+
/** Trust Task type URI. */
|
|
42
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtn/broadcasts/send/0.1";
|
|
43
|
+
/**
|
|
44
|
+
* The earlier version of this specification that this one declares it
|
|
45
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
46
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
47
|
+
* `extendsChain` / `readForSpec`.
|
|
48
|
+
*/
|
|
49
|
+
export declare const EXTENDS: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
52
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
53
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
54
|
+
* Versions").
|
|
55
|
+
*/
|
|
56
|
+
export declare const DEPRECATION: string | null;
|
|
57
|
+
/** Stable alias for this specification's request payload shape. */
|
|
58
|
+
export type Payload = VTNBroadcastsSendPayload;
|
|
59
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
60
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtn/broadcasts/send/0.1#response";
|
|
61
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
62
|
+
export type Response = VTNBroadcastsSendResponsePayload;
|
|
63
|
+
/**
|
|
64
|
+
* This specification's payload schema, as a value.
|
|
65
|
+
*
|
|
66
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
67
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
68
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
69
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
70
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
71
|
+
*/
|
|
72
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
73
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
74
|
+
readonly $id: "https://trusttasks.org/spec/vtn/broadcasts/send/0.1";
|
|
75
|
+
readonly title: "VTN Broadcasts — Send — payload";
|
|
76
|
+
readonly description: "An administrator's message for every group registered for a role. The outer document members are owned by the framework — SPEC §6.3.";
|
|
77
|
+
readonly type: "object";
|
|
78
|
+
readonly additionalProperties: false;
|
|
79
|
+
readonly required: readonly ["role", "subject", "body"];
|
|
80
|
+
readonly properties: {
|
|
81
|
+
readonly role: {
|
|
82
|
+
readonly $ref: "#/$defs/RoleName";
|
|
83
|
+
readonly description: "The role to address: delivered to every current member's group registered for it.";
|
|
84
|
+
};
|
|
85
|
+
readonly class: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly pattern: "^[a-z][a-z0-9-]{0,62}$";
|
|
88
|
+
readonly description: "What kind of message it is, for the receiving group to sort on: `notice` (the default), `request-for-action`, `room-invite`, or another the network's framework names.";
|
|
89
|
+
};
|
|
90
|
+
readonly subject: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly minLength: 1;
|
|
93
|
+
readonly maxLength: 200;
|
|
94
|
+
readonly description: "A one-line subject.";
|
|
95
|
+
};
|
|
96
|
+
readonly body: {
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
readonly minLength: 1;
|
|
99
|
+
readonly maxLength: 20000;
|
|
100
|
+
readonly description: "The message text.";
|
|
101
|
+
};
|
|
102
|
+
readonly replyTo: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
readonly minLength: 1;
|
|
105
|
+
readonly maxLength: 2048;
|
|
106
|
+
readonly description: "Where replies go, such as a URL or DID for a network data room, so that a broadcast never becomes reply-all.";
|
|
107
|
+
};
|
|
108
|
+
readonly ext: {
|
|
109
|
+
readonly $ref: "#/$defs/Ext";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readonly $defs: {
|
|
113
|
+
readonly Response: {
|
|
114
|
+
readonly $anchor: "response";
|
|
115
|
+
readonly title: "VTN Broadcasts — Send — response payload";
|
|
116
|
+
readonly description: "The broadcast as recorded, with each group's receipt as it stands when the network answers. Queued deliveries are retried from the outbox and update the record later.";
|
|
117
|
+
readonly type: "object";
|
|
118
|
+
readonly additionalProperties: false;
|
|
119
|
+
readonly required: readonly ["broadcast"];
|
|
120
|
+
readonly properties: {
|
|
121
|
+
readonly broadcast: {
|
|
122
|
+
readonly $ref: "#/$defs/BroadcastRecord";
|
|
123
|
+
};
|
|
124
|
+
readonly ext: {
|
|
125
|
+
readonly $ref: "#/$defs/Ext";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
readonly Ext: {
|
|
130
|
+
readonly title: "Ext";
|
|
131
|
+
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.";
|
|
132
|
+
readonly type: "object";
|
|
133
|
+
readonly minProperties: 1;
|
|
134
|
+
readonly additionalProperties: true;
|
|
135
|
+
readonly propertyNames: {
|
|
136
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly BroadcastRecord: {
|
|
140
|
+
readonly description: "A broadcast as this network sent or relayed it.";
|
|
141
|
+
readonly type: "object";
|
|
142
|
+
readonly additionalProperties: false;
|
|
143
|
+
readonly required: readonly ["id", "direction", "role", "message", "recordedAt", "receipts", "reached"];
|
|
144
|
+
readonly properties: {
|
|
145
|
+
readonly id: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly maxLength: 2048;
|
|
148
|
+
readonly description: "The message id.";
|
|
149
|
+
};
|
|
150
|
+
readonly direction: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
readonly enum: readonly ["sent", "received"];
|
|
153
|
+
readonly description: "Whether this network sent it or received it to relay.";
|
|
154
|
+
};
|
|
155
|
+
readonly role: {
|
|
156
|
+
readonly $ref: "#/$defs/RoleName";
|
|
157
|
+
readonly description: "The role it was addressed to.";
|
|
158
|
+
};
|
|
159
|
+
readonly message: {
|
|
160
|
+
readonly $ref: "#/$defs/Credential";
|
|
161
|
+
readonly description: "The signed message.";
|
|
162
|
+
};
|
|
163
|
+
readonly from: {
|
|
164
|
+
readonly $ref: "#/$defs/Did";
|
|
165
|
+
readonly description: "For a received message, the network that delivered it.";
|
|
166
|
+
};
|
|
167
|
+
readonly actor: {
|
|
168
|
+
readonly $ref: "#/$defs/Did";
|
|
169
|
+
readonly description: "For a sent message, the administrator that sent it.";
|
|
170
|
+
};
|
|
171
|
+
readonly recordedAt: {
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
readonly format: "date-time";
|
|
174
|
+
readonly description: "When.";
|
|
175
|
+
};
|
|
176
|
+
readonly receipts: {
|
|
177
|
+
readonly type: "array";
|
|
178
|
+
readonly items: {
|
|
179
|
+
readonly $ref: "#/$defs/Receipt";
|
|
180
|
+
};
|
|
181
|
+
readonly description: "Per group.";
|
|
182
|
+
};
|
|
183
|
+
readonly reached: {
|
|
184
|
+
readonly type: "integer";
|
|
185
|
+
readonly minimum: 0;
|
|
186
|
+
readonly description: "Groups delivered to, counting relays.";
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
readonly Receipt: {
|
|
191
|
+
readonly description: "The outcome of one delivery.";
|
|
192
|
+
readonly type: "object";
|
|
193
|
+
readonly additionalProperties: false;
|
|
194
|
+
readonly required: readonly ["group", "member", "status"];
|
|
195
|
+
readonly properties: {
|
|
196
|
+
readonly group: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly maxLength: 2048;
|
|
199
|
+
readonly description: "The group delivered to.";
|
|
200
|
+
};
|
|
201
|
+
readonly member: {
|
|
202
|
+
readonly $ref: "#/$defs/Did";
|
|
203
|
+
readonly description: "The member that owns it.";
|
|
204
|
+
};
|
|
205
|
+
readonly status: {
|
|
206
|
+
readonly $ref: "#/$defs/DeliveryStatus";
|
|
207
|
+
};
|
|
208
|
+
readonly detail: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
readonly maxLength: 1000;
|
|
211
|
+
readonly description: "Why, for anything but `delivered`.";
|
|
212
|
+
};
|
|
213
|
+
readonly network: {
|
|
214
|
+
readonly type: "boolean";
|
|
215
|
+
readonly description: "Whether the group is a network group, which relays further.";
|
|
216
|
+
};
|
|
217
|
+
readonly relayed: {
|
|
218
|
+
readonly type: "array";
|
|
219
|
+
readonly items: {
|
|
220
|
+
readonly $ref: "#/$defs/Receipt";
|
|
221
|
+
};
|
|
222
|
+
readonly description: "The receipts the network group's own relay returned.";
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly DeliveryStatus: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
readonly enum: readonly ["delivered", "duplicate", "refused", "queued", "failed"];
|
|
229
|
+
readonly description: "What happened to one delivery. `queued` will be retried.";
|
|
230
|
+
};
|
|
231
|
+
readonly Did: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
readonly pattern: "^did:[a-z0-9]+:.+$";
|
|
234
|
+
readonly maxLength: 2048;
|
|
235
|
+
readonly description: "A DID.";
|
|
236
|
+
};
|
|
237
|
+
readonly Credential: {
|
|
238
|
+
readonly type: "object";
|
|
239
|
+
readonly description: "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers.";
|
|
240
|
+
};
|
|
241
|
+
readonly RoleName: {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly pattern: "^[a-z0-9_-]{1,64}$";
|
|
244
|
+
readonly description: "A role's name: 1–64 lowercase letters, digits, `-` or `_`.";
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
249
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
250
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
251
|
+
readonly $ref: "#/$defs/Response";
|
|
252
|
+
readonly $defs: {
|
|
253
|
+
readonly Response: {
|
|
254
|
+
readonly $anchor: "response";
|
|
255
|
+
readonly title: "VTN Broadcasts — Send — response payload";
|
|
256
|
+
readonly description: "The broadcast as recorded, with each group's receipt as it stands when the network answers. Queued deliveries are retried from the outbox and update the record later.";
|
|
257
|
+
readonly type: "object";
|
|
258
|
+
readonly additionalProperties: false;
|
|
259
|
+
readonly required: readonly ["broadcast"];
|
|
260
|
+
readonly properties: {
|
|
261
|
+
readonly broadcast: {
|
|
262
|
+
readonly $ref: "#/$defs/BroadcastRecord";
|
|
263
|
+
};
|
|
264
|
+
readonly ext: {
|
|
265
|
+
readonly $ref: "#/$defs/Ext";
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
readonly Ext: {
|
|
270
|
+
readonly title: "Ext";
|
|
271
|
+
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.";
|
|
272
|
+
readonly type: "object";
|
|
273
|
+
readonly minProperties: 1;
|
|
274
|
+
readonly additionalProperties: true;
|
|
275
|
+
readonly propertyNames: {
|
|
276
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
readonly BroadcastRecord: {
|
|
280
|
+
readonly description: "A broadcast as this network sent or relayed it.";
|
|
281
|
+
readonly type: "object";
|
|
282
|
+
readonly additionalProperties: false;
|
|
283
|
+
readonly required: readonly ["id", "direction", "role", "message", "recordedAt", "receipts", "reached"];
|
|
284
|
+
readonly properties: {
|
|
285
|
+
readonly id: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
readonly maxLength: 2048;
|
|
288
|
+
readonly description: "The message id.";
|
|
289
|
+
};
|
|
290
|
+
readonly direction: {
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
readonly enum: readonly ["sent", "received"];
|
|
293
|
+
readonly description: "Whether this network sent it or received it to relay.";
|
|
294
|
+
};
|
|
295
|
+
readonly role: {
|
|
296
|
+
readonly $ref: "#/$defs/RoleName";
|
|
297
|
+
readonly description: "The role it was addressed to.";
|
|
298
|
+
};
|
|
299
|
+
readonly message: {
|
|
300
|
+
readonly $ref: "#/$defs/Credential";
|
|
301
|
+
readonly description: "The signed message.";
|
|
302
|
+
};
|
|
303
|
+
readonly from: {
|
|
304
|
+
readonly $ref: "#/$defs/Did";
|
|
305
|
+
readonly description: "For a received message, the network that delivered it.";
|
|
306
|
+
};
|
|
307
|
+
readonly actor: {
|
|
308
|
+
readonly $ref: "#/$defs/Did";
|
|
309
|
+
readonly description: "For a sent message, the administrator that sent it.";
|
|
310
|
+
};
|
|
311
|
+
readonly recordedAt: {
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
readonly format: "date-time";
|
|
314
|
+
readonly description: "When.";
|
|
315
|
+
};
|
|
316
|
+
readonly receipts: {
|
|
317
|
+
readonly type: "array";
|
|
318
|
+
readonly items: {
|
|
319
|
+
readonly $ref: "#/$defs/Receipt";
|
|
320
|
+
};
|
|
321
|
+
readonly description: "Per group.";
|
|
322
|
+
};
|
|
323
|
+
readonly reached: {
|
|
324
|
+
readonly type: "integer";
|
|
325
|
+
readonly minimum: 0;
|
|
326
|
+
readonly description: "Groups delivered to, counting relays.";
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
readonly Receipt: {
|
|
331
|
+
readonly description: "The outcome of one delivery.";
|
|
332
|
+
readonly type: "object";
|
|
333
|
+
readonly additionalProperties: false;
|
|
334
|
+
readonly required: readonly ["group", "member", "status"];
|
|
335
|
+
readonly properties: {
|
|
336
|
+
readonly group: {
|
|
337
|
+
readonly type: "string";
|
|
338
|
+
readonly maxLength: 2048;
|
|
339
|
+
readonly description: "The group delivered to.";
|
|
340
|
+
};
|
|
341
|
+
readonly member: {
|
|
342
|
+
readonly $ref: "#/$defs/Did";
|
|
343
|
+
readonly description: "The member that owns it.";
|
|
344
|
+
};
|
|
345
|
+
readonly status: {
|
|
346
|
+
readonly $ref: "#/$defs/DeliveryStatus";
|
|
347
|
+
};
|
|
348
|
+
readonly detail: {
|
|
349
|
+
readonly type: "string";
|
|
350
|
+
readonly maxLength: 1000;
|
|
351
|
+
readonly description: "Why, for anything but `delivered`.";
|
|
352
|
+
};
|
|
353
|
+
readonly network: {
|
|
354
|
+
readonly type: "boolean";
|
|
355
|
+
readonly description: "Whether the group is a network group, which relays further.";
|
|
356
|
+
};
|
|
357
|
+
readonly relayed: {
|
|
358
|
+
readonly type: "array";
|
|
359
|
+
readonly items: {
|
|
360
|
+
readonly $ref: "#/$defs/Receipt";
|
|
361
|
+
};
|
|
362
|
+
readonly description: "The receipts the network group's own relay returned.";
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
readonly DeliveryStatus: {
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
readonly enum: readonly ["delivered", "duplicate", "refused", "queued", "failed"];
|
|
369
|
+
readonly description: "What happened to one delivery. `queued` will be retried.";
|
|
370
|
+
};
|
|
371
|
+
readonly Did: {
|
|
372
|
+
readonly type: "string";
|
|
373
|
+
readonly pattern: "^did:[a-z0-9]+:.+$";
|
|
374
|
+
readonly maxLength: 2048;
|
|
375
|
+
readonly description: "A DID.";
|
|
376
|
+
};
|
|
377
|
+
readonly Credential: {
|
|
378
|
+
readonly type: "object";
|
|
379
|
+
readonly description: "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers.";
|
|
380
|
+
};
|
|
381
|
+
readonly RoleName: {
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
readonly pattern: "^[a-z0-9_-]{1,64}$";
|
|
384
|
+
readonly description: "A role's name: 1–64 lowercase letters, digits, `-` or `_`.";
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
390
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
391
|
+
* per-specification and cannot be derived from the document alone, and
|
|
392
|
+
* item 2 needs the schema this carries.
|
|
393
|
+
*/
|
|
394
|
+
export declare const SPEC: {
|
|
395
|
+
readonly typeUri: "https://trusttasks.org/spec/vtn/broadcasts/send/0.1";
|
|
396
|
+
readonly isBearer: false;
|
|
397
|
+
readonly isProofRequired: true;
|
|
398
|
+
readonly isRecipientRequired: true;
|
|
399
|
+
readonly isIssuedAtRequired: true;
|
|
400
|
+
readonly payloadSchema: {
|
|
401
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
402
|
+
readonly $id: "https://trusttasks.org/spec/vtn/broadcasts/send/0.1";
|
|
403
|
+
readonly title: "VTN Broadcasts — Send — payload";
|
|
404
|
+
readonly description: "An administrator's message for every group registered for a role. The outer document members are owned by the framework — SPEC §6.3.";
|
|
405
|
+
readonly type: "object";
|
|
406
|
+
readonly additionalProperties: false;
|
|
407
|
+
readonly required: readonly ["role", "subject", "body"];
|
|
408
|
+
readonly properties: {
|
|
409
|
+
readonly role: {
|
|
410
|
+
readonly $ref: "#/$defs/RoleName";
|
|
411
|
+
readonly description: "The role to address: delivered to every current member's group registered for it.";
|
|
412
|
+
};
|
|
413
|
+
readonly class: {
|
|
414
|
+
readonly type: "string";
|
|
415
|
+
readonly pattern: "^[a-z][a-z0-9-]{0,62}$";
|
|
416
|
+
readonly description: "What kind of message it is, for the receiving group to sort on: `notice` (the default), `request-for-action`, `room-invite`, or another the network's framework names.";
|
|
417
|
+
};
|
|
418
|
+
readonly subject: {
|
|
419
|
+
readonly type: "string";
|
|
420
|
+
readonly minLength: 1;
|
|
421
|
+
readonly maxLength: 200;
|
|
422
|
+
readonly description: "A one-line subject.";
|
|
423
|
+
};
|
|
424
|
+
readonly body: {
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
readonly minLength: 1;
|
|
427
|
+
readonly maxLength: 20000;
|
|
428
|
+
readonly description: "The message text.";
|
|
429
|
+
};
|
|
430
|
+
readonly replyTo: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly minLength: 1;
|
|
433
|
+
readonly maxLength: 2048;
|
|
434
|
+
readonly description: "Where replies go, such as a URL or DID for a network data room, so that a broadcast never becomes reply-all.";
|
|
435
|
+
};
|
|
436
|
+
readonly ext: {
|
|
437
|
+
readonly $ref: "#/$defs/Ext";
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly $defs: {
|
|
441
|
+
readonly Response: {
|
|
442
|
+
readonly $anchor: "response";
|
|
443
|
+
readonly title: "VTN Broadcasts — Send — response payload";
|
|
444
|
+
readonly description: "The broadcast as recorded, with each group's receipt as it stands when the network answers. Queued deliveries are retried from the outbox and update the record later.";
|
|
445
|
+
readonly type: "object";
|
|
446
|
+
readonly additionalProperties: false;
|
|
447
|
+
readonly required: readonly ["broadcast"];
|
|
448
|
+
readonly properties: {
|
|
449
|
+
readonly broadcast: {
|
|
450
|
+
readonly $ref: "#/$defs/BroadcastRecord";
|
|
451
|
+
};
|
|
452
|
+
readonly ext: {
|
|
453
|
+
readonly $ref: "#/$defs/Ext";
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
readonly Ext: {
|
|
458
|
+
readonly title: "Ext";
|
|
459
|
+
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.";
|
|
460
|
+
readonly type: "object";
|
|
461
|
+
readonly minProperties: 1;
|
|
462
|
+
readonly additionalProperties: true;
|
|
463
|
+
readonly propertyNames: {
|
|
464
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
readonly BroadcastRecord: {
|
|
468
|
+
readonly description: "A broadcast as this network sent or relayed it.";
|
|
469
|
+
readonly type: "object";
|
|
470
|
+
readonly additionalProperties: false;
|
|
471
|
+
readonly required: readonly ["id", "direction", "role", "message", "recordedAt", "receipts", "reached"];
|
|
472
|
+
readonly properties: {
|
|
473
|
+
readonly id: {
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
readonly maxLength: 2048;
|
|
476
|
+
readonly description: "The message id.";
|
|
477
|
+
};
|
|
478
|
+
readonly direction: {
|
|
479
|
+
readonly type: "string";
|
|
480
|
+
readonly enum: readonly ["sent", "received"];
|
|
481
|
+
readonly description: "Whether this network sent it or received it to relay.";
|
|
482
|
+
};
|
|
483
|
+
readonly role: {
|
|
484
|
+
readonly $ref: "#/$defs/RoleName";
|
|
485
|
+
readonly description: "The role it was addressed to.";
|
|
486
|
+
};
|
|
487
|
+
readonly message: {
|
|
488
|
+
readonly $ref: "#/$defs/Credential";
|
|
489
|
+
readonly description: "The signed message.";
|
|
490
|
+
};
|
|
491
|
+
readonly from: {
|
|
492
|
+
readonly $ref: "#/$defs/Did";
|
|
493
|
+
readonly description: "For a received message, the network that delivered it.";
|
|
494
|
+
};
|
|
495
|
+
readonly actor: {
|
|
496
|
+
readonly $ref: "#/$defs/Did";
|
|
497
|
+
readonly description: "For a sent message, the administrator that sent it.";
|
|
498
|
+
};
|
|
499
|
+
readonly recordedAt: {
|
|
500
|
+
readonly type: "string";
|
|
501
|
+
readonly format: "date-time";
|
|
502
|
+
readonly description: "When.";
|
|
503
|
+
};
|
|
504
|
+
readonly receipts: {
|
|
505
|
+
readonly type: "array";
|
|
506
|
+
readonly items: {
|
|
507
|
+
readonly $ref: "#/$defs/Receipt";
|
|
508
|
+
};
|
|
509
|
+
readonly description: "Per group.";
|
|
510
|
+
};
|
|
511
|
+
readonly reached: {
|
|
512
|
+
readonly type: "integer";
|
|
513
|
+
readonly minimum: 0;
|
|
514
|
+
readonly description: "Groups delivered to, counting relays.";
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
readonly Receipt: {
|
|
519
|
+
readonly description: "The outcome of one delivery.";
|
|
520
|
+
readonly type: "object";
|
|
521
|
+
readonly additionalProperties: false;
|
|
522
|
+
readonly required: readonly ["group", "member", "status"];
|
|
523
|
+
readonly properties: {
|
|
524
|
+
readonly group: {
|
|
525
|
+
readonly type: "string";
|
|
526
|
+
readonly maxLength: 2048;
|
|
527
|
+
readonly description: "The group delivered to.";
|
|
528
|
+
};
|
|
529
|
+
readonly member: {
|
|
530
|
+
readonly $ref: "#/$defs/Did";
|
|
531
|
+
readonly description: "The member that owns it.";
|
|
532
|
+
};
|
|
533
|
+
readonly status: {
|
|
534
|
+
readonly $ref: "#/$defs/DeliveryStatus";
|
|
535
|
+
};
|
|
536
|
+
readonly detail: {
|
|
537
|
+
readonly type: "string";
|
|
538
|
+
readonly maxLength: 1000;
|
|
539
|
+
readonly description: "Why, for anything but `delivered`.";
|
|
540
|
+
};
|
|
541
|
+
readonly network: {
|
|
542
|
+
readonly type: "boolean";
|
|
543
|
+
readonly description: "Whether the group is a network group, which relays further.";
|
|
544
|
+
};
|
|
545
|
+
readonly relayed: {
|
|
546
|
+
readonly type: "array";
|
|
547
|
+
readonly items: {
|
|
548
|
+
readonly $ref: "#/$defs/Receipt";
|
|
549
|
+
};
|
|
550
|
+
readonly description: "The receipts the network group's own relay returned.";
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
readonly DeliveryStatus: {
|
|
555
|
+
readonly type: "string";
|
|
556
|
+
readonly enum: readonly ["delivered", "duplicate", "refused", "queued", "failed"];
|
|
557
|
+
readonly description: "What happened to one delivery. `queued` will be retried.";
|
|
558
|
+
};
|
|
559
|
+
readonly Did: {
|
|
560
|
+
readonly type: "string";
|
|
561
|
+
readonly pattern: "^did:[a-z0-9]+:.+$";
|
|
562
|
+
readonly maxLength: 2048;
|
|
563
|
+
readonly description: "A DID.";
|
|
564
|
+
};
|
|
565
|
+
readonly Credential: {
|
|
566
|
+
readonly type: "object";
|
|
567
|
+
readonly description: "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers.";
|
|
568
|
+
};
|
|
569
|
+
readonly RoleName: {
|
|
570
|
+
readonly type: "string";
|
|
571
|
+
readonly pattern: "^[a-z0-9_-]{1,64}$";
|
|
572
|
+
readonly description: "A role's name: 1–64 lowercase letters, digits, `-` or `_`.";
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
/**
|
|
578
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
579
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
580
|
+
* parties (§7.3 item 5).
|
|
581
|
+
*/
|
|
582
|
+
export declare const RESPONSE_SPEC: {
|
|
583
|
+
readonly typeUri: "https://trusttasks.org/spec/vtn/broadcasts/send/0.1#response";
|
|
584
|
+
readonly isBearer: false;
|
|
585
|
+
readonly isProofRequired: true;
|
|
586
|
+
readonly isRecipientRequired: true;
|
|
587
|
+
readonly isIssuedAtRequired: true;
|
|
588
|
+
readonly payloadSchema: {
|
|
589
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
590
|
+
readonly $ref: "#/$defs/Response";
|
|
591
|
+
readonly $defs: {
|
|
592
|
+
readonly Response: {
|
|
593
|
+
readonly $anchor: "response";
|
|
594
|
+
readonly title: "VTN Broadcasts — Send — response payload";
|
|
595
|
+
readonly description: "The broadcast as recorded, with each group's receipt as it stands when the network answers. Queued deliveries are retried from the outbox and update the record later.";
|
|
596
|
+
readonly type: "object";
|
|
597
|
+
readonly additionalProperties: false;
|
|
598
|
+
readonly required: readonly ["broadcast"];
|
|
599
|
+
readonly properties: {
|
|
600
|
+
readonly broadcast: {
|
|
601
|
+
readonly $ref: "#/$defs/BroadcastRecord";
|
|
602
|
+
};
|
|
603
|
+
readonly ext: {
|
|
604
|
+
readonly $ref: "#/$defs/Ext";
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
readonly Ext: {
|
|
609
|
+
readonly title: "Ext";
|
|
610
|
+
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.";
|
|
611
|
+
readonly type: "object";
|
|
612
|
+
readonly minProperties: 1;
|
|
613
|
+
readonly additionalProperties: true;
|
|
614
|
+
readonly propertyNames: {
|
|
615
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
readonly BroadcastRecord: {
|
|
619
|
+
readonly description: "A broadcast as this network sent or relayed it.";
|
|
620
|
+
readonly type: "object";
|
|
621
|
+
readonly additionalProperties: false;
|
|
622
|
+
readonly required: readonly ["id", "direction", "role", "message", "recordedAt", "receipts", "reached"];
|
|
623
|
+
readonly properties: {
|
|
624
|
+
readonly id: {
|
|
625
|
+
readonly type: "string";
|
|
626
|
+
readonly maxLength: 2048;
|
|
627
|
+
readonly description: "The message id.";
|
|
628
|
+
};
|
|
629
|
+
readonly direction: {
|
|
630
|
+
readonly type: "string";
|
|
631
|
+
readonly enum: readonly ["sent", "received"];
|
|
632
|
+
readonly description: "Whether this network sent it or received it to relay.";
|
|
633
|
+
};
|
|
634
|
+
readonly role: {
|
|
635
|
+
readonly $ref: "#/$defs/RoleName";
|
|
636
|
+
readonly description: "The role it was addressed to.";
|
|
637
|
+
};
|
|
638
|
+
readonly message: {
|
|
639
|
+
readonly $ref: "#/$defs/Credential";
|
|
640
|
+
readonly description: "The signed message.";
|
|
641
|
+
};
|
|
642
|
+
readonly from: {
|
|
643
|
+
readonly $ref: "#/$defs/Did";
|
|
644
|
+
readonly description: "For a received message, the network that delivered it.";
|
|
645
|
+
};
|
|
646
|
+
readonly actor: {
|
|
647
|
+
readonly $ref: "#/$defs/Did";
|
|
648
|
+
readonly description: "For a sent message, the administrator that sent it.";
|
|
649
|
+
};
|
|
650
|
+
readonly recordedAt: {
|
|
651
|
+
readonly type: "string";
|
|
652
|
+
readonly format: "date-time";
|
|
653
|
+
readonly description: "When.";
|
|
654
|
+
};
|
|
655
|
+
readonly receipts: {
|
|
656
|
+
readonly type: "array";
|
|
657
|
+
readonly items: {
|
|
658
|
+
readonly $ref: "#/$defs/Receipt";
|
|
659
|
+
};
|
|
660
|
+
readonly description: "Per group.";
|
|
661
|
+
};
|
|
662
|
+
readonly reached: {
|
|
663
|
+
readonly type: "integer";
|
|
664
|
+
readonly minimum: 0;
|
|
665
|
+
readonly description: "Groups delivered to, counting relays.";
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
readonly Receipt: {
|
|
670
|
+
readonly description: "The outcome of one delivery.";
|
|
671
|
+
readonly type: "object";
|
|
672
|
+
readonly additionalProperties: false;
|
|
673
|
+
readonly required: readonly ["group", "member", "status"];
|
|
674
|
+
readonly properties: {
|
|
675
|
+
readonly group: {
|
|
676
|
+
readonly type: "string";
|
|
677
|
+
readonly maxLength: 2048;
|
|
678
|
+
readonly description: "The group delivered to.";
|
|
679
|
+
};
|
|
680
|
+
readonly member: {
|
|
681
|
+
readonly $ref: "#/$defs/Did";
|
|
682
|
+
readonly description: "The member that owns it.";
|
|
683
|
+
};
|
|
684
|
+
readonly status: {
|
|
685
|
+
readonly $ref: "#/$defs/DeliveryStatus";
|
|
686
|
+
};
|
|
687
|
+
readonly detail: {
|
|
688
|
+
readonly type: "string";
|
|
689
|
+
readonly maxLength: 1000;
|
|
690
|
+
readonly description: "Why, for anything but `delivered`.";
|
|
691
|
+
};
|
|
692
|
+
readonly network: {
|
|
693
|
+
readonly type: "boolean";
|
|
694
|
+
readonly description: "Whether the group is a network group, which relays further.";
|
|
695
|
+
};
|
|
696
|
+
readonly relayed: {
|
|
697
|
+
readonly type: "array";
|
|
698
|
+
readonly items: {
|
|
699
|
+
readonly $ref: "#/$defs/Receipt";
|
|
700
|
+
};
|
|
701
|
+
readonly description: "The receipts the network group's own relay returned.";
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
readonly DeliveryStatus: {
|
|
706
|
+
readonly type: "string";
|
|
707
|
+
readonly enum: readonly ["delivered", "duplicate", "refused", "queued", "failed"];
|
|
708
|
+
readonly description: "What happened to one delivery. `queued` will be retried.";
|
|
709
|
+
};
|
|
710
|
+
readonly Did: {
|
|
711
|
+
readonly type: "string";
|
|
712
|
+
readonly pattern: "^did:[a-z0-9]+:.+$";
|
|
713
|
+
readonly maxLength: 2048;
|
|
714
|
+
readonly description: "A DID.";
|
|
715
|
+
};
|
|
716
|
+
readonly Credential: {
|
|
717
|
+
readonly type: "object";
|
|
718
|
+
readonly description: "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers.";
|
|
719
|
+
};
|
|
720
|
+
readonly RoleName: {
|
|
721
|
+
readonly type: "string";
|
|
722
|
+
readonly pattern: "^[a-z0-9_-]{1,64}$";
|
|
723
|
+
readonly description: "A role's name: 1–64 lowercase letters, digits, `-` or `_`.";
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
//# sourceMappingURL=payload.d.ts.map
|