@openvtc/trust-tasks 0.28.14 → 0.28.15
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 +43 -0
- package/dist/_extends.d.ts.map +1 -1
- package/dist/_extends.js +5 -0
- package/dist/_extends.js.map +1 -1
- package/dist/_shared/components.d.ts +344 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/did-management/stats/set-resolution/0.1/payload.d.ts +398 -0
- package/dist/did-management/stats/set-resolution/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/stats/set-resolution/0.1/payload.js +247 -0
- package/dist/did-management/stats/set-resolution/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +75 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/_shared/0.1/room.d.ts +1 -1
- package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
- package/dist/rooms/_shared/0.2/room.d.ts +1 -1
- package/dist/rooms/_shared/0.2/room.d.ts.map +1 -1
- package/dist/rooms/_shared/0.3/member-profile.d.ts +11 -0
- package/dist/rooms/_shared/0.3/member-profile.d.ts.map +1 -0
- package/dist/rooms/_shared/0.3/member-profile.js +6 -0
- package/dist/rooms/_shared/0.3/member-profile.js.map +1 -0
- package/dist/rooms/changed/0.1/payload.d.ts +139 -0
- package/dist/rooms/changed/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/changed/0.1/payload.js +84 -0
- package/dist/rooms/changed/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/act/0.1/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.1/payload.js +1 -1
- package/dist/rooms/keys/act/0.10/payload.d.ts +14 -2
- package/dist/rooms/keys/act/0.10/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.10/payload.js +1 -1
- package/dist/rooms/keys/act/0.10/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.11/payload.d.ts +572 -0
- package/dist/rooms/keys/act/0.11/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.11/payload.js +319 -0
- package/dist/rooms/keys/act/0.11/payload.js.map +1 -0
- package/dist/rooms/keys/act/0.12/payload.d.ts +560 -0
- package/dist/rooms/keys/act/0.12/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.12/payload.js +319 -0
- package/dist/rooms/keys/act/0.12/payload.js.map +1 -0
- package/dist/rooms/keys/act/0.2/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.2/payload.js +1 -1
- package/dist/rooms/keys/act/0.3/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.3/payload.js +1 -1
- package/dist/rooms/keys/act/0.4/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.4/payload.js +1 -1
- package/dist/rooms/keys/act/0.5/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.5/payload.js +1 -1
- package/dist/rooms/keys/act/0.6/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.6/payload.js +1 -1
- package/dist/rooms/keys/act/0.7/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.7/payload.js +1 -1
- package/dist/rooms/keys/act/0.8/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.8/payload.js +1 -1
- package/dist/rooms/keys/act/0.9/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.9/payload.js +1 -1
- package/dist/rooms/keys/browse/0.1/payload.d.ts +4 -4
- package/dist/rooms/keys/browse/0.1/payload.js +1 -1
- package/dist/rooms/keys/browse/0.2/payload.d.ts +4 -4
- package/dist/rooms/keys/browse/0.2/payload.js +1 -1
- package/dist/rooms/keys/browse/0.3/payload.d.ts +14 -2
- package/dist/rooms/keys/browse/0.3/payload.d.ts.map +1 -1
- package/dist/rooms/keys/browse/0.3/payload.js +1 -1
- package/dist/rooms/keys/browse/0.3/payload.js.map +1 -1
- package/dist/rooms/keys/browse/0.4/payload.d.ts +1127 -0
- package/dist/rooms/keys/browse/0.4/payload.d.ts.map +1 -0
- package/dist/rooms/keys/browse/0.4/payload.js +658 -0
- package/dist/rooms/keys/browse/0.4/payload.js.map +1 -0
- package/dist/rooms/keys/changed/0.1/payload.d.ts +173 -0
- package/dist/rooms/keys/changed/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/changed/0.1/payload.js +99 -0
- package/dist/rooms/keys/changed/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/profile/read/0.1/payload.d.ts +56 -4
- package/dist/rooms/keys/profile/read/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/profile/read/0.1/payload.js +28 -2
- package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/profile/write/0.1/payload.d.ts +56 -4
- package/dist/rooms/keys/profile/write/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/profile/write/0.1/payload.js +28 -2
- package/dist/rooms/keys/profile/write/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/read/0.1/payload.d.ts +14 -2
- package/dist/rooms/keys/read/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/read/0.1/payload.js +1 -1
- package/dist/rooms/keys/read/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/read/0.2/payload.d.ts +1287 -0
- package/dist/rooms/keys/read/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/read/0.2/payload.js +689 -0
- package/dist/rooms/keys/read/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/seal/0.1/payload.d.ts +4 -4
- package/dist/rooms/keys/seal/0.1/payload.js +1 -1
- package/dist/rooms/keys/seal/0.2/payload.d.ts +13 -2
- package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.js +1 -1
- package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
- package/dist/rooms/keys/seal/0.3/payload.d.ts +402 -0
- package/dist/rooms/keys/seal/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/keys/seal/0.3/payload.js +229 -0
- package/dist/rooms/keys/seal/0.3/payload.js.map +1 -0
- package/dist/rooms/keys/watch/0.1/payload.d.ts +652 -0
- package/dist/rooms/keys/watch/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/watch/0.1/payload.js +343 -0
- package/dist/rooms/keys/watch/0.1/payload.js.map +1 -0
- package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/get/0.1/payload.js +1 -1
- package/dist/rooms/records/get/0.2/payload.d.ts +13 -2
- package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.2/payload.js +1 -1
- package/dist/rooms/records/get/0.2/payload.js.map +1 -1
- package/dist/rooms/records/get/0.3/payload.d.ts +1064 -0
- package/dist/rooms/records/get/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/records/get/0.3/payload.js +571 -0
- package/dist/rooms/records/get/0.3/payload.js.map +1 -0
- package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.1/payload.js +1 -1
- package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.2/payload.js +1 -1
- package/dist/rooms/records/list/0.3/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.3/payload.js +1 -1
- package/dist/rooms/records/list/0.4/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.4/payload.js +1 -1
- package/dist/rooms/records/list/0.5/payload.d.ts +13 -2
- package/dist/rooms/records/list/0.5/payload.d.ts.map +1 -1
- package/dist/rooms/records/list/0.5/payload.js +1 -1
- package/dist/rooms/records/list/0.5/payload.js.map +1 -1
- package/dist/rooms/records/list/0.6/payload.d.ts +1096 -0
- package/dist/rooms/records/list/0.6/payload.d.ts.map +1 -0
- package/dist/rooms/records/list/0.6/payload.js +596 -0
- package/dist/rooms/records/list/0.6/payload.js.map +1 -0
- package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/put/0.1/payload.js +1 -1
- package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
- package/dist/rooms/records/put/0.2/payload.js +1 -1
- package/dist/rooms/records/put/0.3/payload.d.ts +4 -4
- package/dist/rooms/records/put/0.3/payload.js +1 -1
- package/dist/rooms/records/put/0.4/payload.d.ts +146 -6
- package/dist/rooms/records/put/0.4/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.4/payload.js +81 -3
- package/dist/rooms/records/put/0.4/payload.js.map +1 -1
- package/dist/rooms/records/put/0.5/payload.d.ts +1808 -0
- package/dist/rooms/records/put/0.5/payload.d.ts.map +1 -0
- package/dist/rooms/records/put/0.5/payload.js +984 -0
- package/dist/rooms/records/put/0.5/payload.js.map +1 -0
- package/dist/rooms/watch/0.1/payload.d.ts +497 -0
- package/dist/rooms/watch/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/watch/0.1/payload.js +268 -0
- package/dist/rooms/watch/0.1/payload.js.map +1 -0
- package/dist/vtc/_shared/0.7/network-membership.d.ts +16 -0
- package/dist/vtc/_shared/0.7/network-membership.d.ts.map +1 -0
- package/dist/vtc/_shared/0.7/network-membership.js +6 -0
- package/dist/vtc/_shared/0.7/network-membership.js.map +1 -0
- package/dist/vtc/boards/delete/0.1/payload.d.ts +416 -0
- package/dist/vtc/boards/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/delete/0.1/payload.js +236 -0
- package/dist/vtc/boards/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/update/0.1/payload.d.ts +147 -2
- package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/boards/update/0.1/payload.js +72 -0
- package/dist/vtc/boards/update/0.1/payload.js.map +1 -1
- package/dist/vtc/elections/list/0.5/payload.d.ts +3 -3
- package/dist/vtc/elections/list/0.5/payload.js +1 -1
- package/dist/vtc/elections/list/0.5/payload.js.map +1 -1
- package/dist/vtc/elections/show/0.6/payload.d.ts +3 -3
- package/dist/vtc/elections/show/0.6/payload.js +1 -1
- package/dist/vtc/elections/show/0.6/payload.js.map +1 -1
- package/dist/vtc/elections/tombstones/show/0.1/payload.d.ts +593 -0
- package/dist/vtc/elections/tombstones/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/tombstones/show/0.1/payload.js +335 -0
- package/dist/vtc/elections/tombstones/show/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/deliver/0.1/payload.d.ts +354 -0
- package/dist/vtc/networks/deliver/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/deliver/0.1/payload.js +213 -0
- package/dist/vtc/networks/deliver/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/evidence/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/evidence/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/evidence/0.1/payload.js +1 -1
- package/dist/vtc/networks/evidence/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/evidence/0.2/payload.d.ts +412 -0
- package/dist/vtc/networks/evidence/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/evidence/0.2/payload.js +233 -0
- package/dist/vtc/networks/evidence/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/groups/register/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/groups/register/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/groups/register/0.1/payload.js +1 -1
- package/dist/vtc/networks/groups/register/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/groups/register/0.2/payload.d.ts +680 -0
- package/dist/vtc/networks/groups/register/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/groups/register/0.2/payload.js +401 -0
- package/dist/vtc/networks/groups/register/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/join/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/join/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/join/0.1/payload.js +1 -1
- package/dist/vtc/networks/join/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/join/0.2/payload.d.ts +760 -0
- package/dist/vtc/networks/join/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/join/0.2/payload.js +445 -0
- package/dist/vtc/networks/join/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/leave/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/leave/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/leave/0.1/payload.js +1 -1
- package/dist/vtc/networks/leave/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/leave/0.2/payload.d.ts +664 -0
- package/dist/vtc/networks/leave/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/leave/0.2/payload.js +393 -0
- package/dist/vtc/networks/leave/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/list/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/list/0.1/payload.js +1 -1
- package/dist/vtc/networks/list/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/list/0.2/payload.d.ts +713 -0
- package/dist/vtc/networks/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/list/0.2/payload.js +417 -0
- package/dist/vtc/networks/list/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/repudiate/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/repudiate/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/repudiate/0.1/payload.js +1 -1
- package/dist/vtc/networks/repudiate/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/repudiate/0.2/payload.d.ts +680 -0
- package/dist/vtc/networks/repudiate/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/repudiate/0.2/payload.js +400 -0
- package/dist/vtc/networks/repudiate/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/show/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/show/0.1/payload.js +1 -1
- package/dist/vtc/networks/show/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/show/0.2/payload.d.ts +650 -0
- package/dist/vtc/networks/show/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/show/0.2/payload.js +388 -0
- package/dist/vtc/networks/show/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_extends.ts +5 -0
- package/src/_shared/components.ts +352 -1
- package/src/did-management/stats/set-resolution/0.1/payload.ts +312 -0
- package/src/index.ts +75 -0
- package/src/rooms/_shared/0.1/room.ts +1 -1
- package/src/rooms/_shared/0.2/room.ts +1 -1
- package/src/rooms/_shared/0.3/member-profile.ts +11 -0
- package/src/rooms/changed/0.1/payload.ts +115 -0
- package/src/rooms/keys/act/0.1/payload.ts +5 -5
- package/src/rooms/keys/act/0.10/payload.ts +15 -3
- package/src/rooms/keys/act/0.11/payload.ts +408 -0
- package/src/rooms/keys/act/0.12/payload.ts +396 -0
- package/src/rooms/keys/act/0.2/payload.ts +5 -5
- package/src/rooms/keys/act/0.3/payload.ts +5 -5
- package/src/rooms/keys/act/0.4/payload.ts +5 -5
- package/src/rooms/keys/act/0.5/payload.ts +5 -5
- package/src/rooms/keys/act/0.6/payload.ts +5 -5
- package/src/rooms/keys/act/0.7/payload.ts +5 -5
- package/src/rooms/keys/act/0.8/payload.ts +5 -5
- package/src/rooms/keys/act/0.9/payload.ts +5 -5
- package/src/rooms/keys/browse/0.1/payload.ts +5 -5
- package/src/rooms/keys/browse/0.2/payload.ts +5 -5
- package/src/rooms/keys/browse/0.3/payload.ts +15 -3
- package/src/rooms/keys/browse/0.4/payload.ts +730 -0
- package/src/rooms/keys/changed/0.1/payload.ts +138 -0
- package/src/rooms/keys/profile/read/0.1/payload.ts +28 -2
- package/src/rooms/keys/profile/write/0.1/payload.ts +28 -2
- package/src/rooms/keys/read/0.1/payload.ts +15 -3
- package/src/rooms/keys/read/0.2/payload.ts +855 -0
- package/src/rooms/keys/seal/0.1/payload.ts +5 -5
- package/src/rooms/keys/seal/0.2/payload.ts +14 -3
- package/src/rooms/keys/seal/0.3/payload.ts +282 -0
- package/src/rooms/keys/watch/0.1/payload.ts +452 -0
- package/src/rooms/records/get/0.1/payload.ts +5 -5
- package/src/rooms/records/get/0.2/payload.ts +14 -3
- package/src/rooms/records/get/0.3/payload.ts +684 -0
- package/src/rooms/records/list/0.1/payload.ts +5 -5
- package/src/rooms/records/list/0.2/payload.ts +5 -5
- package/src/rooms/records/list/0.3/payload.ts +5 -5
- package/src/rooms/records/list/0.4/payload.ts +5 -5
- package/src/rooms/records/list/0.5/payload.ts +14 -3
- package/src/rooms/records/list/0.6/payload.ts +673 -0
- package/src/rooms/records/put/0.1/payload.ts +5 -5
- package/src/rooms/records/put/0.2/payload.ts +5 -5
- package/src/rooms/records/put/0.3/payload.ts +5 -5
- package/src/rooms/records/put/0.4/payload.ts +95 -5
- package/src/rooms/records/put/0.5/payload.ts +1095 -0
- package/src/rooms/watch/0.1/payload.ts +340 -0
- package/src/vtc/_shared/0.7/network-membership.ts +17 -0
- package/src/vtc/boards/delete/0.1/payload.ts +293 -0
- package/src/vtc/boards/update/0.1/payload.ts +91 -2
- package/src/vtc/elections/list/0.5/payload.ts +2 -2
- package/src/vtc/elections/show/0.6/payload.ts +2 -2
- package/src/vtc/elections/tombstones/show/0.1/payload.ts +401 -0
- package/src/vtc/networks/deliver/0.1/payload.ts +254 -0
- package/src/vtc/networks/evidence/0.1/payload.ts +15 -3
- package/src/vtc/networks/evidence/0.2/payload.ts +290 -0
- package/src/vtc/networks/groups/register/0.1/payload.ts +15 -3
- package/src/vtc/networks/groups/register/0.2/payload.ts +446 -0
- package/src/vtc/networks/join/0.1/payload.ts +15 -3
- package/src/vtc/networks/join/0.2/payload.ts +492 -0
- package/src/vtc/networks/leave/0.1/payload.ts +15 -3
- package/src/vtc/networks/leave/0.2/payload.ts +434 -0
- package/src/vtc/networks/list/0.1/payload.ts +15 -3
- package/src/vtc/networks/list/0.2/payload.ts +463 -0
- package/src/vtc/networks/repudiate/0.1/payload.ts +15 -3
- package/src/vtc/networks/repudiate/0.2/payload.ts +445 -0
- package/src/vtc/networks/show/0.1/payload.ts +15 -3
- package/src/vtc/networks/show/0.2/payload.ts +425 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/networks/deliver/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Credential, Envelope, Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A network's delivery of a broadcast envelope to the community's group registered for one of the network's roles. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCNetworksDeliverPayload {
|
|
13
|
+
/**
|
|
14
|
+
* The network's role whose registered community group the delivery addresses.
|
|
15
|
+
*/
|
|
16
|
+
role: string;
|
|
17
|
+
envelope: Envelope;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Whether the community passed the message on. Deliberately carries no count of the group's members, so the network does not learn the group's size.
|
|
22
|
+
*/
|
|
23
|
+
export interface VTCNetworksDeliverResponsePayload {
|
|
24
|
+
/**
|
|
25
|
+
* `delivered`: accepted and passed on to the group's members. `duplicate`: the community had delivered this message before; nothing was sent.
|
|
26
|
+
*/
|
|
27
|
+
status: "delivered" | "duplicate";
|
|
28
|
+
ext?: Ext;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
32
|
+
export type { Credential, Envelope, Ext };
|
|
33
|
+
|
|
34
|
+
/** Trust Task type URI. */
|
|
35
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/networks/deliver/0.1" as const;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The earlier version of this specification that this one declares it
|
|
39
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
40
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
41
|
+
* `extendsChain` / `readForSpec`.
|
|
42
|
+
*/
|
|
43
|
+
export const EXTENDS: string | null = null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
47
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
48
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
49
|
+
* Versions").
|
|
50
|
+
*/
|
|
51
|
+
export const DEPRECATION: string | null = null;
|
|
52
|
+
|
|
53
|
+
/** Stable alias for this specification's request payload shape. */
|
|
54
|
+
export type Payload = VTCNetworksDeliverPayload;
|
|
55
|
+
|
|
56
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
57
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/networks/deliver/0.1#response" as const;
|
|
58
|
+
|
|
59
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
60
|
+
export type Response = VTCNetworksDeliverResponsePayload;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* This specification's payload schema, as a value.
|
|
64
|
+
*
|
|
65
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
66
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
67
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
68
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
69
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
70
|
+
*/
|
|
71
|
+
export const PAYLOAD_SCHEMA = {
|
|
72
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
73
|
+
"$id": "https://trusttasks.org/spec/vtc/networks/deliver/0.1",
|
|
74
|
+
"title": "VTC Networks — Deliver — payload",
|
|
75
|
+
"description": "A network's delivery of a broadcast envelope to the community's group registered for one of the network's roles. The outer document members are owned by the framework — SPEC §6.3.",
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": [
|
|
79
|
+
"role",
|
|
80
|
+
"envelope"
|
|
81
|
+
],
|
|
82
|
+
"properties": {
|
|
83
|
+
"role": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^[a-z0-9_-]{1,64}$",
|
|
86
|
+
"description": "The network's role whose registered community group the delivery addresses."
|
|
87
|
+
},
|
|
88
|
+
"envelope": {
|
|
89
|
+
"$ref": "#/$defs/Envelope"
|
|
90
|
+
},
|
|
91
|
+
"ext": {
|
|
92
|
+
"$ref": "#/$defs/Ext"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"$defs": {
|
|
96
|
+
"Response": {
|
|
97
|
+
"$anchor": "response",
|
|
98
|
+
"title": "VTC Networks — Deliver — response payload",
|
|
99
|
+
"description": "Whether the community passed the message on. Deliberately carries no count of the group's members, so the network does not learn the group's size.",
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": [
|
|
103
|
+
"status"
|
|
104
|
+
],
|
|
105
|
+
"properties": {
|
|
106
|
+
"status": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": [
|
|
109
|
+
"delivered",
|
|
110
|
+
"duplicate"
|
|
111
|
+
],
|
|
112
|
+
"description": "`delivered`: accepted and passed on to the group's members. `duplicate`: the community had delivered this message before; nothing was sent."
|
|
113
|
+
},
|
|
114
|
+
"ext": {
|
|
115
|
+
"$ref": "#/$defs/Ext"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"Ext": {
|
|
120
|
+
"title": "Ext",
|
|
121
|
+
"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.",
|
|
122
|
+
"type": "object",
|
|
123
|
+
"minProperties": 1,
|
|
124
|
+
"additionalProperties": true,
|
|
125
|
+
"propertyNames": {
|
|
126
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"Envelope": {
|
|
130
|
+
"description": "A broadcast in transit.",
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": false,
|
|
133
|
+
"required": [
|
|
134
|
+
"message",
|
|
135
|
+
"hops"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"message": {
|
|
139
|
+
"$ref": "#/$defs/Credential",
|
|
140
|
+
"description": "The message, signed by the origin network."
|
|
141
|
+
},
|
|
142
|
+
"hops": {
|
|
143
|
+
"type": "array",
|
|
144
|
+
"items": {
|
|
145
|
+
"$ref": "#/$defs/Credential"
|
|
146
|
+
},
|
|
147
|
+
"description": "One signed hop per relay step, each by the network that owns the previous hop's group.",
|
|
148
|
+
"maxItems": 16
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"Credential": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"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."
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
} as const;
|
|
158
|
+
|
|
159
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
160
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
161
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
162
|
+
"$ref": "#/$defs/Response",
|
|
163
|
+
"$defs": {
|
|
164
|
+
"Response": {
|
|
165
|
+
"$anchor": "response",
|
|
166
|
+
"title": "VTC Networks — Deliver — response payload",
|
|
167
|
+
"description": "Whether the community passed the message on. Deliberately carries no count of the group's members, so the network does not learn the group's size.",
|
|
168
|
+
"type": "object",
|
|
169
|
+
"additionalProperties": false,
|
|
170
|
+
"required": [
|
|
171
|
+
"status"
|
|
172
|
+
],
|
|
173
|
+
"properties": {
|
|
174
|
+
"status": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"enum": [
|
|
177
|
+
"delivered",
|
|
178
|
+
"duplicate"
|
|
179
|
+
],
|
|
180
|
+
"description": "`delivered`: accepted and passed on to the group's members. `duplicate`: the community had delivered this message before; nothing was sent."
|
|
181
|
+
},
|
|
182
|
+
"ext": {
|
|
183
|
+
"$ref": "#/$defs/Ext"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"Ext": {
|
|
188
|
+
"title": "Ext",
|
|
189
|
+
"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.",
|
|
190
|
+
"type": "object",
|
|
191
|
+
"minProperties": 1,
|
|
192
|
+
"additionalProperties": true,
|
|
193
|
+
"propertyNames": {
|
|
194
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"Envelope": {
|
|
198
|
+
"description": "A broadcast in transit.",
|
|
199
|
+
"type": "object",
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"required": [
|
|
202
|
+
"message",
|
|
203
|
+
"hops"
|
|
204
|
+
],
|
|
205
|
+
"properties": {
|
|
206
|
+
"message": {
|
|
207
|
+
"$ref": "#/$defs/Credential",
|
|
208
|
+
"description": "The message, signed by the origin network."
|
|
209
|
+
},
|
|
210
|
+
"hops": {
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"$ref": "#/$defs/Credential"
|
|
214
|
+
},
|
|
215
|
+
"description": "One signed hop per relay step, each by the network that owns the previous hop's group.",
|
|
216
|
+
"maxItems": 16
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"Credential": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"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."
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
} as const;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
229
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
230
|
+
* per-specification and cannot be derived from the document alone, and
|
|
231
|
+
* item 2 needs the schema this carries.
|
|
232
|
+
*/
|
|
233
|
+
export const SPEC = {
|
|
234
|
+
typeUri: TYPE_URI,
|
|
235
|
+
isBearer: false,
|
|
236
|
+
isProofRequired: true,
|
|
237
|
+
isRecipientRequired: true,
|
|
238
|
+
isIssuedAtRequired: true,
|
|
239
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
240
|
+
} as const;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
244
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
245
|
+
* parties (§7.3 item 5).
|
|
246
|
+
*/
|
|
247
|
+
export const RESPONSE_SPEC = {
|
|
248
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
249
|
+
isBearer: false,
|
|
250
|
+
isProofRequired: true,
|
|
251
|
+
isRecipientRequired: true,
|
|
252
|
+
isIssuedAtRequired: true,
|
|
253
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
254
|
+
} as const;
|
|
@@ -8,6 +8,8 @@ import type { Ext } from "../../../../_shared/components.js";
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Ask for the credentials linking a group the caller belongs to up to a network. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated superseded by vtc/networks/evidence/0.2
|
|
11
13
|
*/
|
|
12
14
|
export interface VTCNetworksEvidencePayload {
|
|
13
15
|
/**
|
|
@@ -22,6 +24,8 @@ export interface VTCNetworksEvidencePayload {
|
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* The chain links the caller may present, one per group and network.
|
|
27
|
+
*
|
|
28
|
+
* @deprecated superseded by vtc/networks/evidence/0.2
|
|
25
29
|
*/
|
|
26
30
|
export interface VTCNetworksEvidenceResponsePayload {
|
|
27
31
|
/**
|
|
@@ -64,15 +68,23 @@ export const EXTENDS: string | null = null;
|
|
|
64
68
|
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
65
69
|
* Versions").
|
|
66
70
|
*/
|
|
67
|
-
export const DEPRECATION: string | null =
|
|
71
|
+
export const DEPRECATION: string | null = "superseded by vtc/networks/evidence/0.2";
|
|
68
72
|
|
|
69
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Stable alias for this specification's request payload shape.
|
|
75
|
+
*
|
|
76
|
+
* @deprecated superseded by vtc/networks/evidence/0.2
|
|
77
|
+
*/
|
|
70
78
|
export type Payload = VTCNetworksEvidencePayload;
|
|
71
79
|
|
|
72
80
|
/** Trust Task response type URI (request type URI + "#response"). */
|
|
73
81
|
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/networks/evidence/0.1#response" as const;
|
|
74
82
|
|
|
75
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* Stable alias for this specification's success-response payload shape.
|
|
85
|
+
*
|
|
86
|
+
* @deprecated superseded by vtc/networks/evidence/0.2
|
|
87
|
+
*/
|
|
76
88
|
export type Response = VTCNetworksEvidenceResponsePayload;
|
|
77
89
|
|
|
78
90
|
/**
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/networks/evidence/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Ask for the credentials linking a group the caller belongs to up to a network. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCNetworksEvidencePayload {
|
|
13
|
+
/**
|
|
14
|
+
* Only links for this group. Absent: every group the caller is an active member of.
|
|
15
|
+
*/
|
|
16
|
+
groupId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Only links to this network.
|
|
19
|
+
*/
|
|
20
|
+
network?: string;
|
|
21
|
+
ext?: Ext;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The chain links the caller may present, one per group and network.
|
|
25
|
+
*/
|
|
26
|
+
export interface VTCNetworksEvidenceResponsePayload {
|
|
27
|
+
/**
|
|
28
|
+
* @maxItems 64
|
|
29
|
+
*/
|
|
30
|
+
links: {
|
|
31
|
+
groupId: string;
|
|
32
|
+
groupDid: string;
|
|
33
|
+
network: string;
|
|
34
|
+
role: string;
|
|
35
|
+
/**
|
|
36
|
+
* The community's signed `vtn/groups/register` request for the group, with its proof, exactly as the network accepted it.
|
|
37
|
+
*/
|
|
38
|
+
registration: {};
|
|
39
|
+
/**
|
|
40
|
+
* The network's `groupRegistered/1` statement (VSC) accepting it, carrying the registration's digest: SHA-256 over the RFC 8785 (JCS) form of the signed request including its proof.
|
|
41
|
+
*/
|
|
42
|
+
acceptance: {};
|
|
43
|
+
}[];
|
|
44
|
+
ext?: Ext;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
48
|
+
export type { Ext };
|
|
49
|
+
|
|
50
|
+
/** Trust Task type URI. */
|
|
51
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/networks/evidence/0.2" as const;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The earlier version of this specification that this one declares it
|
|
55
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
56
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
57
|
+
* `extendsChain` / `readForSpec`.
|
|
58
|
+
*/
|
|
59
|
+
export const EXTENDS: string | null = null;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
63
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
64
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
65
|
+
* Versions").
|
|
66
|
+
*/
|
|
67
|
+
export const DEPRECATION: string | null = null;
|
|
68
|
+
|
|
69
|
+
/** Stable alias for this specification's request payload shape. */
|
|
70
|
+
export type Payload = VTCNetworksEvidencePayload;
|
|
71
|
+
|
|
72
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
73
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/networks/evidence/0.2#response" as const;
|
|
74
|
+
|
|
75
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
76
|
+
export type Response = VTCNetworksEvidenceResponsePayload;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* This specification's payload schema, as a value.
|
|
80
|
+
*
|
|
81
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
82
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
83
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
84
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
85
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
86
|
+
*/
|
|
87
|
+
export const PAYLOAD_SCHEMA = {
|
|
88
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
89
|
+
"$id": "https://trusttasks.org/spec/vtc/networks/evidence/0.2",
|
|
90
|
+
"title": "VTC Networks — Evidence — payload",
|
|
91
|
+
"description": "Ask for the credentials linking a group the caller belongs to up to a network. The outer document members are owned by the framework — SPEC §6.3.",
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"properties": {
|
|
95
|
+
"groupId": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"minLength": 1,
|
|
98
|
+
"maxLength": 128,
|
|
99
|
+
"description": "Only links for this group. Absent: every group the caller is an active member of."
|
|
100
|
+
},
|
|
101
|
+
"network": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"pattern": "^did:[a-z0-9]+:.+$",
|
|
104
|
+
"maxLength": 2048,
|
|
105
|
+
"description": "Only links to this network."
|
|
106
|
+
},
|
|
107
|
+
"ext": {
|
|
108
|
+
"$ref": "#/$defs/Ext"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"$defs": {
|
|
112
|
+
"Response": {
|
|
113
|
+
"$anchor": "response",
|
|
114
|
+
"title": "VTC Networks — Evidence — response payload",
|
|
115
|
+
"description": "The chain links the caller may present, one per group and network.",
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": [
|
|
119
|
+
"links"
|
|
120
|
+
],
|
|
121
|
+
"properties": {
|
|
122
|
+
"links": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"maxItems": 64,
|
|
125
|
+
"items": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"additionalProperties": false,
|
|
128
|
+
"required": [
|
|
129
|
+
"groupId",
|
|
130
|
+
"groupDid",
|
|
131
|
+
"network",
|
|
132
|
+
"role",
|
|
133
|
+
"registration",
|
|
134
|
+
"acceptance"
|
|
135
|
+
],
|
|
136
|
+
"properties": {
|
|
137
|
+
"groupId": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"minLength": 1,
|
|
140
|
+
"maxLength": 128
|
|
141
|
+
},
|
|
142
|
+
"groupDid": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"pattern": "^did:[a-z0-9]+:.+$",
|
|
145
|
+
"maxLength": 2048
|
|
146
|
+
},
|
|
147
|
+
"network": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"pattern": "^did:[a-z0-9]+:.+$",
|
|
150
|
+
"maxLength": 2048
|
|
151
|
+
},
|
|
152
|
+
"role": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"pattern": "^[a-z0-9_-]{1,64}$"
|
|
155
|
+
},
|
|
156
|
+
"registration": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"description": "The community's signed `vtn/groups/register` request for the group, with its proof, exactly as the network accepted it."
|
|
159
|
+
},
|
|
160
|
+
"acceptance": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"description": "The network's `groupRegistered/1` statement (VSC) accepting it, carrying the registration's digest: SHA-256 over the RFC 8785 (JCS) form of the signed request including its proof."
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"ext": {
|
|
168
|
+
"$ref": "#/$defs/Ext"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"Ext": {
|
|
173
|
+
"title": "Ext",
|
|
174
|
+
"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.",
|
|
175
|
+
"type": "object",
|
|
176
|
+
"minProperties": 1,
|
|
177
|
+
"additionalProperties": true,
|
|
178
|
+
"propertyNames": {
|
|
179
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
} as const;
|
|
184
|
+
|
|
185
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
186
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
187
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
188
|
+
"$ref": "#/$defs/Response",
|
|
189
|
+
"$defs": {
|
|
190
|
+
"Response": {
|
|
191
|
+
"$anchor": "response",
|
|
192
|
+
"title": "VTC Networks — Evidence — response payload",
|
|
193
|
+
"description": "The chain links the caller may present, one per group and network.",
|
|
194
|
+
"type": "object",
|
|
195
|
+
"additionalProperties": false,
|
|
196
|
+
"required": [
|
|
197
|
+
"links"
|
|
198
|
+
],
|
|
199
|
+
"properties": {
|
|
200
|
+
"links": {
|
|
201
|
+
"type": "array",
|
|
202
|
+
"maxItems": 64,
|
|
203
|
+
"items": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"required": [
|
|
207
|
+
"groupId",
|
|
208
|
+
"groupDid",
|
|
209
|
+
"network",
|
|
210
|
+
"role",
|
|
211
|
+
"registration",
|
|
212
|
+
"acceptance"
|
|
213
|
+
],
|
|
214
|
+
"properties": {
|
|
215
|
+
"groupId": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"minLength": 1,
|
|
218
|
+
"maxLength": 128
|
|
219
|
+
},
|
|
220
|
+
"groupDid": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"pattern": "^did:[a-z0-9]+:.+$",
|
|
223
|
+
"maxLength": 2048
|
|
224
|
+
},
|
|
225
|
+
"network": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"pattern": "^did:[a-z0-9]+:.+$",
|
|
228
|
+
"maxLength": 2048
|
|
229
|
+
},
|
|
230
|
+
"role": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"pattern": "^[a-z0-9_-]{1,64}$"
|
|
233
|
+
},
|
|
234
|
+
"registration": {
|
|
235
|
+
"type": "object",
|
|
236
|
+
"description": "The community's signed `vtn/groups/register` request for the group, with its proof, exactly as the network accepted it."
|
|
237
|
+
},
|
|
238
|
+
"acceptance": {
|
|
239
|
+
"type": "object",
|
|
240
|
+
"description": "The network's `groupRegistered/1` statement (VSC) accepting it, carrying the registration's digest: SHA-256 over the RFC 8785 (JCS) form of the signed request including its proof."
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"ext": {
|
|
246
|
+
"$ref": "#/$defs/Ext"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"Ext": {
|
|
251
|
+
"title": "Ext",
|
|
252
|
+
"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.",
|
|
253
|
+
"type": "object",
|
|
254
|
+
"minProperties": 1,
|
|
255
|
+
"additionalProperties": true,
|
|
256
|
+
"propertyNames": {
|
|
257
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
} as const;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
265
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
266
|
+
* per-specification and cannot be derived from the document alone, and
|
|
267
|
+
* item 2 needs the schema this carries.
|
|
268
|
+
*/
|
|
269
|
+
export const SPEC = {
|
|
270
|
+
typeUri: TYPE_URI,
|
|
271
|
+
isBearer: false,
|
|
272
|
+
isProofRequired: true,
|
|
273
|
+
isRecipientRequired: true,
|
|
274
|
+
isIssuedAtRequired: false,
|
|
275
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
276
|
+
} as const;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
280
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
281
|
+
* parties (§7.3 item 5).
|
|
282
|
+
*/
|
|
283
|
+
export const RESPONSE_SPEC = {
|
|
284
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
285
|
+
isBearer: false,
|
|
286
|
+
isProofRequired: true,
|
|
287
|
+
isRecipientRequired: true,
|
|
288
|
+
isIssuedAtRequired: false,
|
|
289
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
290
|
+
} as const;
|
|
@@ -8,6 +8,8 @@ import type { Ext, NetworkMembership, RegisteredGroup } from "../../../../../_sh
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Register a community group to serve a role in a network the community belongs to, replacing the group registered for that role if there is one. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated superseded by vtc/networks/groups/register/0.2
|
|
11
13
|
*/
|
|
12
14
|
export interface VTCNetworksGroupsRegisterPayload {
|
|
13
15
|
/**
|
|
@@ -26,6 +28,8 @@ export interface VTCNetworksGroupsRegisterPayload {
|
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* The membership with the group registered.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated superseded by vtc/networks/groups/register/0.2
|
|
29
33
|
*/
|
|
30
34
|
export interface VTCNetworksGroupsRegisterResponsePayload {
|
|
31
35
|
membership: NetworkMembership;
|
|
@@ -52,15 +56,23 @@ export const EXTENDS: string | null = null;
|
|
|
52
56
|
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
53
57
|
* Versions").
|
|
54
58
|
*/
|
|
55
|
-
export const DEPRECATION: string | null =
|
|
59
|
+
export const DEPRECATION: string | null = "superseded by vtc/networks/groups/register/0.2";
|
|
56
60
|
|
|
57
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Stable alias for this specification's request payload shape.
|
|
63
|
+
*
|
|
64
|
+
* @deprecated superseded by vtc/networks/groups/register/0.2
|
|
65
|
+
*/
|
|
58
66
|
export type Payload = VTCNetworksGroupsRegisterPayload;
|
|
59
67
|
|
|
60
68
|
/** Trust Task response type URI (request type URI + "#response"). */
|
|
61
69
|
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/networks/groups/register/0.1#response" as const;
|
|
62
70
|
|
|
63
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Stable alias for this specification's success-response payload shape.
|
|
73
|
+
*
|
|
74
|
+
* @deprecated superseded by vtc/networks/groups/register/0.2
|
|
75
|
+
*/
|
|
64
76
|
export type Response = VTCNetworksGroupsRegisterResponsePayload;
|
|
65
77
|
|
|
66
78
|
/**
|