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