@openvtc/trust-tasks 0.26.20 → 0.26.21
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 +75 -0
- package/dist/_shared/components.d.ts +327 -16
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +4 -2
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +4 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/voting/_shared/0.1/voting.d.ts +16 -0
- package/dist/voting/_shared/0.1/voting.d.ts.map +1 -0
- package/dist/voting/_shared/0.1/voting.js +6 -0
- package/dist/voting/_shared/0.1/voting.js.map +1 -0
- package/dist/voting/ballot/cast/0.1/payload.d.ts +887 -0
- package/dist/voting/ballot/cast/0.1/payload.d.ts.map +1 -0
- package/dist/voting/ballot/cast/0.1/payload.js +506 -0
- package/dist/voting/ballot/cast/0.1/payload.js.map +1 -0
- package/dist/voting/board/consistency/0.1/payload.d.ts +389 -0
- package/dist/voting/board/consistency/0.1/payload.d.ts.map +1 -0
- package/dist/voting/board/consistency/0.1/payload.js +218 -0
- package/dist/voting/board/consistency/0.1/payload.js.map +1 -0
- package/dist/voting/board/head/0.1/payload.d.ts +380 -0
- package/dist/voting/board/head/0.1/payload.d.ts.map +1 -0
- package/dist/voting/board/head/0.1/payload.js +224 -0
- package/dist/voting/board/head/0.1/payload.js.map +1 -0
- package/dist/voting/board/inclusion/0.1/payload.d.ts +449 -0
- package/dist/voting/board/inclusion/0.1/payload.d.ts.map +1 -0
- package/dist/voting/board/inclusion/0.1/payload.js +246 -0
- package/dist/voting/board/inclusion/0.1/payload.js.map +1 -0
- package/dist/voting/board/read/0.1/payload.d.ts +1596 -0
- package/dist/voting/board/read/0.1/payload.d.ts.map +1 -0
- package/dist/voting/board/read/0.1/payload.js +920 -0
- package/dist/voting/board/read/0.1/payload.js.map +1 -0
- package/dist/voting/election/cancel/0.1/payload.d.ts +540 -0
- package/dist/voting/election/cancel/0.1/payload.d.ts.map +1 -0
- package/dist/voting/election/cancel/0.1/payload.js +331 -0
- package/dist/voting/election/cancel/0.1/payload.js.map +1 -0
- package/dist/voting/election/close/0.1/payload.d.ts +540 -0
- package/dist/voting/election/close/0.1/payload.d.ts.map +1 -0
- package/dist/voting/election/close/0.1/payload.js +330 -0
- package/dist/voting/election/close/0.1/payload.js.map +1 -0
- package/dist/voting/election/register/0.1/payload.d.ts +1920 -0
- package/dist/voting/election/register/0.1/payload.d.ts.map +1 -0
- package/dist/voting/election/register/0.1/payload.js +1166 -0
- package/dist/voting/election/register/0.1/payload.js.map +1 -0
- package/dist/voting/election/show/0.1/payload.d.ts +1824 -0
- package/dist/voting/election/show/0.1/payload.d.ts.map +1 -0
- package/dist/voting/election/show/0.1/payload.js +1112 -0
- package/dist/voting/election/show/0.1/payload.js.map +1 -0
- package/dist/voting/result/show/0.1/payload.d.ts +849 -0
- package/dist/voting/result/show/0.1/payload.d.ts.map +1 -0
- package/dist/voting/result/show/0.1/payload.js +498 -0
- package/dist/voting/result/show/0.1/payload.js.map +1 -0
- package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
- package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
- package/dist/vta/_shared/0.4/pcs-engine.d.ts +1 -1
- package/dist/vta/_shared/0.4/pcs-engine.d.ts.map +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
- package/dist/vta/pcs/applications/create/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/applications/create/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/applications/show/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/applications/show/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/attest/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/attest/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/prove/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/prove/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/root-accept/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/root-accept/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/vetter/show/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/vetter/show/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/vote/0.1/payload.d.ts +2208 -0
- package/dist/vta/pcs/vote/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote/0.1/payload.js +1282 -0
- package/dist/vta/pcs/vote/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/voter/accept/0.1/payload.d.ts +450 -0
- package/dist/vta/pcs/voter/accept/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/accept/0.1/payload.js +247 -0
- package/dist/vta/pcs/voter/accept/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/voter/receipt/0.1/payload.d.ts +531 -0
- package/dist/vta/pcs/voter/receipt/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/receipt/0.1/payload.js +301 -0
- package/dist/vta/pcs/voter/receipt/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/voter/register/0.1/payload.d.ts +1934 -0
- package/dist/vta/pcs/voter/register/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/register/0.1/payload.js +1133 -0
- package/dist/vta/pcs/voter/register/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts +2 -2
- package/dist/vtc/directory/card/present/0.1/payload.js +1 -1
- package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -1
- package/dist/vtc/elections/cancel/0.1/payload.d.ts +301 -0
- package/dist/vtc/elections/cancel/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/cancel/0.1/payload.js +183 -0
- package/dist/vtc/elections/cancel/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/certify/0.1/payload.d.ts +914 -0
- package/dist/vtc/elections/certify/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/certify/0.1/payload.js +512 -0
- package/dist/vtc/elections/certify/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/close/0.1/payload.d.ts +301 -0
- package/dist/vtc/elections/close/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/close/0.1/payload.js +182 -0
- package/dist/vtc/elections/close/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/create/0.1/payload.d.ts +1656 -0
- package/dist/vtc/elections/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/create/0.1/payload.js +994 -0
- package/dist/vtc/elections/create/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/list/0.1/payload.d.ts +521 -0
- package/dist/vtc/elections/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/list/0.1/payload.js +290 -0
- package/dist/vtc/elections/list/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/show/0.1/payload.d.ts +2688 -0
- package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/show/0.1/payload.js +1581 -0
- package/dist/vtc/elections/show/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts +597 -0
- package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/tickets/issue/0.1/payload.js +318 -0
- package/dist/vtc/elections/tickets/issue/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/create/0.1/payload.js +2 -2
- package/dist/vtc/groups/create/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/list/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/list/0.1/payload.js +2 -2
- package/dist/vtc/groups/list/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/managers/add/0.1/payload.d.ts +337 -0
- package/dist/vtc/groups/managers/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/managers/add/0.1/payload.js +184 -0
- package/dist/vtc/groups/managers/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/managers/remove/0.1/payload.d.ts +337 -0
- package/dist/vtc/groups/managers/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/managers/remove/0.1/payload.js +184 -0
- package/dist/vtc/groups/managers/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/show/0.1/payload.js +2 -2
- package/dist/vtc/groups/show/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/update/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/update/0.1/payload.js +2 -2
- package/dist/vtc/groups/update/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +330 -16
- package/src/device/list/0.2/payload.ts +4 -2
- package/src/device/register/0.2/payload.ts +4 -2
- package/src/index.ts +24 -0
- package/src/voting/_shared/0.1/voting.ts +17 -0
- package/src/voting/ballot/cast/0.1/payload.ts +560 -0
- package/src/voting/board/consistency/0.1/payload.ts +264 -0
- package/src/voting/board/head/0.1/payload.ts +257 -0
- package/src/voting/board/inclusion/0.1/payload.ts +300 -0
- package/src/voting/board/read/0.1/payload.ts +981 -0
- package/src/voting/election/cancel/0.1/payload.ts +368 -0
- package/src/voting/election/close/0.1/payload.ts +367 -0
- package/src/voting/election/register/0.1/payload.ts +1207 -0
- package/src/voting/election/show/0.1/payload.ts +1149 -0
- package/src/voting/result/show/0.1/payload.ts +536 -0
- package/src/vta/_shared/0.1/app-state-record.ts +1 -1
- package/src/vta/_shared/0.4/pcs-engine.ts +1 -1
- package/src/vta/app-state/delete/1.0/payload.ts +1 -1
- package/src/vta/app-state/get/1.0/payload.ts +1 -1
- package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
- package/src/vta/app-state/list/1.0/payload.ts +1 -1
- package/src/vta/app-state/put/1.0/payload.ts +1 -1
- package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
- package/src/vta/pcs/applications/create/0.1/payload.ts +1 -1
- package/src/vta/pcs/applications/show/0.1/payload.ts +1 -1
- package/src/vta/pcs/attest/0.1/payload.ts +1 -1
- package/src/vta/pcs/prove/0.1/payload.ts +1 -1
- package/src/vta/pcs/root-accept/0.1/payload.ts +1 -1
- package/src/vta/pcs/tokens/abandon/0.1/payload.ts +1 -1
- package/src/vta/pcs/tokens/accept/0.1/payload.ts +1 -1
- package/src/vta/pcs/verify-attestation/0.1/payload.ts +1 -1
- package/src/vta/pcs/vetter/show/0.1/payload.ts +1 -1
- package/src/vta/pcs/vote/0.1/payload.ts +1365 -0
- package/src/vta/pcs/voter/accept/0.1/payload.ts +306 -0
- package/src/vta/pcs/voter/receipt/0.1/payload.ts +367 -0
- package/src/vta/pcs/voter/register/0.1/payload.ts +1211 -0
- package/src/vtc/directory/card/present/0.1/payload.ts +1 -1
- package/src/vtc/elections/cancel/0.1/payload.ts +223 -0
- package/src/vtc/elections/certify/0.1/payload.ts +565 -0
- package/src/vtc/elections/close/0.1/payload.ts +222 -0
- package/src/vtc/elections/create/0.1/payload.ts +1041 -0
- package/src/vtc/elections/list/0.1/payload.ts +371 -0
- package/src/vtc/elections/show/0.1/payload.ts +1671 -0
- package/src/vtc/elections/tickets/issue/0.1/payload.ts +394 -0
- package/src/vtc/groups/create/0.1/payload.ts +2 -2
- package/src/vtc/groups/list/0.1/payload.ts +2 -2
- package/src/vtc/groups/managers/add/0.1/payload.ts +230 -0
- package/src/vtc/groups/managers/remove/0.1/payload.ts +230 -0
- package/src/vtc/groups/show/0.1/payload.ts +2 -2
- package/src/vtc/groups/update/0.1/payload.ts +2 -2
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/groups/managers/add/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { EntryId, Ext, GroupId } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A group manager, or an administrator who manages every group, appoints a community member a manager of one group: an access-control resource grant of `vtc.groups.manage` qualified to that group. The outer document members are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCGroupsManagersAddPayload {
|
|
10
|
+
groupId: GroupId;
|
|
11
|
+
/**
|
|
12
|
+
* The member appointed.
|
|
13
|
+
*/
|
|
14
|
+
entryId: EntryId;
|
|
15
|
+
/**
|
|
16
|
+
* Why, recorded with the change.
|
|
17
|
+
*/
|
|
18
|
+
reason?: string;
|
|
19
|
+
ext?: Ext;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.
|
|
23
|
+
*/
|
|
24
|
+
export interface VTCGroupsManagersAddResponsePayload {
|
|
25
|
+
groupId: GroupId;
|
|
26
|
+
/**
|
|
27
|
+
* The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed.
|
|
28
|
+
*
|
|
29
|
+
* @maxItems 256
|
|
30
|
+
*/
|
|
31
|
+
managers: EntryId[];
|
|
32
|
+
ext?: Ext;
|
|
33
|
+
}
|
|
34
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
35
|
+
export type { EntryId, Ext, GroupId };
|
|
36
|
+
/** Trust Task type URI. */
|
|
37
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/groups/managers/add/0.1";
|
|
38
|
+
/** Stable alias for this specification's request payload shape. */
|
|
39
|
+
export type Payload = VTCGroupsManagersAddPayload;
|
|
40
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
41
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response";
|
|
42
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
43
|
+
export type Response = VTCGroupsManagersAddResponsePayload;
|
|
44
|
+
/**
|
|
45
|
+
* This specification's payload schema, as a value.
|
|
46
|
+
*
|
|
47
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
48
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
49
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
50
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
51
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
52
|
+
*/
|
|
53
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
54
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
55
|
+
readonly $id: "https://trusttasks.org/spec/vtc/groups/managers/add/0.1";
|
|
56
|
+
readonly title: "VTC Groups — Managers — Add — payload";
|
|
57
|
+
readonly description: "A group manager, or an administrator who manages every group, appoints a community member a manager of one group: an access-control resource grant of `vtc.groups.manage` qualified to that group. The outer document members are owned by the framework — SPEC §6.3.";
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
readonly required: readonly ["groupId", "entryId"];
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly groupId: {
|
|
63
|
+
readonly $ref: "#/$defs/GroupId";
|
|
64
|
+
};
|
|
65
|
+
readonly entryId: {
|
|
66
|
+
readonly $ref: "#/$defs/EntryId";
|
|
67
|
+
readonly description: "The member appointed.";
|
|
68
|
+
};
|
|
69
|
+
readonly reason: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly minLength: 1;
|
|
72
|
+
readonly maxLength: 1024;
|
|
73
|
+
readonly description: "Why, recorded with the change.";
|
|
74
|
+
};
|
|
75
|
+
readonly ext: {
|
|
76
|
+
readonly $ref: "#/$defs/Ext";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly $defs: {
|
|
80
|
+
readonly Response: {
|
|
81
|
+
readonly $anchor: "response";
|
|
82
|
+
readonly title: "VTC Groups — Managers — Add — response payload";
|
|
83
|
+
readonly description: "The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.";
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly additionalProperties: false;
|
|
86
|
+
readonly required: readonly ["groupId", "managers"];
|
|
87
|
+
readonly properties: {
|
|
88
|
+
readonly groupId: {
|
|
89
|
+
readonly $ref: "#/$defs/GroupId";
|
|
90
|
+
};
|
|
91
|
+
readonly managers: {
|
|
92
|
+
readonly type: "array";
|
|
93
|
+
readonly maxItems: 256;
|
|
94
|
+
readonly uniqueItems: true;
|
|
95
|
+
readonly items: {
|
|
96
|
+
readonly $ref: "#/$defs/EntryId";
|
|
97
|
+
};
|
|
98
|
+
readonly description: "The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed.";
|
|
99
|
+
};
|
|
100
|
+
readonly ext: {
|
|
101
|
+
readonly $ref: "#/$defs/Ext";
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
readonly Ext: {
|
|
106
|
+
readonly title: "Ext";
|
|
107
|
+
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.";
|
|
108
|
+
readonly type: "object";
|
|
109
|
+
readonly minProperties: 1;
|
|
110
|
+
readonly additionalProperties: true;
|
|
111
|
+
readonly propertyNames: {
|
|
112
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly EntryId: {
|
|
116
|
+
readonly title: "EntryId";
|
|
117
|
+
readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
|
|
120
|
+
};
|
|
121
|
+
readonly GroupId: {
|
|
122
|
+
readonly title: "GroupId";
|
|
123
|
+
readonly description: "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.";
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
130
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
131
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
132
|
+
readonly $ref: "#/$defs/Response";
|
|
133
|
+
readonly $defs: {
|
|
134
|
+
readonly Response: {
|
|
135
|
+
readonly $anchor: "response";
|
|
136
|
+
readonly title: "VTC Groups — Managers — Add — response payload";
|
|
137
|
+
readonly description: "The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.";
|
|
138
|
+
readonly type: "object";
|
|
139
|
+
readonly additionalProperties: false;
|
|
140
|
+
readonly required: readonly ["groupId", "managers"];
|
|
141
|
+
readonly properties: {
|
|
142
|
+
readonly groupId: {
|
|
143
|
+
readonly $ref: "#/$defs/GroupId";
|
|
144
|
+
};
|
|
145
|
+
readonly managers: {
|
|
146
|
+
readonly type: "array";
|
|
147
|
+
readonly maxItems: 256;
|
|
148
|
+
readonly uniqueItems: true;
|
|
149
|
+
readonly items: {
|
|
150
|
+
readonly $ref: "#/$defs/EntryId";
|
|
151
|
+
};
|
|
152
|
+
readonly description: "The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed.";
|
|
153
|
+
};
|
|
154
|
+
readonly ext: {
|
|
155
|
+
readonly $ref: "#/$defs/Ext";
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly Ext: {
|
|
160
|
+
readonly title: "Ext";
|
|
161
|
+
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.";
|
|
162
|
+
readonly type: "object";
|
|
163
|
+
readonly minProperties: 1;
|
|
164
|
+
readonly additionalProperties: true;
|
|
165
|
+
readonly propertyNames: {
|
|
166
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
readonly EntryId: {
|
|
170
|
+
readonly title: "EntryId";
|
|
171
|
+
readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
|
|
174
|
+
};
|
|
175
|
+
readonly GroupId: {
|
|
176
|
+
readonly title: "GroupId";
|
|
177
|
+
readonly description: "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.";
|
|
178
|
+
readonly type: "string";
|
|
179
|
+
readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
185
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
186
|
+
* per-specification and cannot be derived from the document alone, and
|
|
187
|
+
* item 2 needs the schema this carries.
|
|
188
|
+
*/
|
|
189
|
+
export declare const SPEC: {
|
|
190
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/groups/managers/add/0.1";
|
|
191
|
+
readonly isBearer: false;
|
|
192
|
+
readonly isProofRequired: true;
|
|
193
|
+
readonly isRecipientRequired: true;
|
|
194
|
+
readonly isIssuedAtRequired: true;
|
|
195
|
+
readonly payloadSchema: {
|
|
196
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
197
|
+
readonly $id: "https://trusttasks.org/spec/vtc/groups/managers/add/0.1";
|
|
198
|
+
readonly title: "VTC Groups — Managers — Add — payload";
|
|
199
|
+
readonly description: "A group manager, or an administrator who manages every group, appoints a community member a manager of one group: an access-control resource grant of `vtc.groups.manage` qualified to that group. The outer document members are owned by the framework — SPEC §6.3.";
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
readonly additionalProperties: false;
|
|
202
|
+
readonly required: readonly ["groupId", "entryId"];
|
|
203
|
+
readonly properties: {
|
|
204
|
+
readonly groupId: {
|
|
205
|
+
readonly $ref: "#/$defs/GroupId";
|
|
206
|
+
};
|
|
207
|
+
readonly entryId: {
|
|
208
|
+
readonly $ref: "#/$defs/EntryId";
|
|
209
|
+
readonly description: "The member appointed.";
|
|
210
|
+
};
|
|
211
|
+
readonly reason: {
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
readonly minLength: 1;
|
|
214
|
+
readonly maxLength: 1024;
|
|
215
|
+
readonly description: "Why, recorded with the change.";
|
|
216
|
+
};
|
|
217
|
+
readonly ext: {
|
|
218
|
+
readonly $ref: "#/$defs/Ext";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly $defs: {
|
|
222
|
+
readonly Response: {
|
|
223
|
+
readonly $anchor: "response";
|
|
224
|
+
readonly title: "VTC Groups — Managers — Add — response payload";
|
|
225
|
+
readonly description: "The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.";
|
|
226
|
+
readonly type: "object";
|
|
227
|
+
readonly additionalProperties: false;
|
|
228
|
+
readonly required: readonly ["groupId", "managers"];
|
|
229
|
+
readonly properties: {
|
|
230
|
+
readonly groupId: {
|
|
231
|
+
readonly $ref: "#/$defs/GroupId";
|
|
232
|
+
};
|
|
233
|
+
readonly managers: {
|
|
234
|
+
readonly type: "array";
|
|
235
|
+
readonly maxItems: 256;
|
|
236
|
+
readonly uniqueItems: true;
|
|
237
|
+
readonly items: {
|
|
238
|
+
readonly $ref: "#/$defs/EntryId";
|
|
239
|
+
};
|
|
240
|
+
readonly description: "The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed.";
|
|
241
|
+
};
|
|
242
|
+
readonly ext: {
|
|
243
|
+
readonly $ref: "#/$defs/Ext";
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
readonly Ext: {
|
|
248
|
+
readonly title: "Ext";
|
|
249
|
+
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.";
|
|
250
|
+
readonly type: "object";
|
|
251
|
+
readonly minProperties: 1;
|
|
252
|
+
readonly additionalProperties: true;
|
|
253
|
+
readonly propertyNames: {
|
|
254
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
readonly EntryId: {
|
|
258
|
+
readonly title: "EntryId";
|
|
259
|
+
readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
|
|
260
|
+
readonly type: "string";
|
|
261
|
+
readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
|
|
262
|
+
};
|
|
263
|
+
readonly GroupId: {
|
|
264
|
+
readonly title: "GroupId";
|
|
265
|
+
readonly description: "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.";
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
274
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
275
|
+
* parties (§7.3 item 5).
|
|
276
|
+
*/
|
|
277
|
+
export declare const RESPONSE_SPEC: {
|
|
278
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response";
|
|
279
|
+
readonly isBearer: false;
|
|
280
|
+
readonly isProofRequired: true;
|
|
281
|
+
readonly isRecipientRequired: true;
|
|
282
|
+
readonly isIssuedAtRequired: true;
|
|
283
|
+
readonly payloadSchema: {
|
|
284
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
285
|
+
readonly $ref: "#/$defs/Response";
|
|
286
|
+
readonly $defs: {
|
|
287
|
+
readonly Response: {
|
|
288
|
+
readonly $anchor: "response";
|
|
289
|
+
readonly title: "VTC Groups — Managers — Add — response payload";
|
|
290
|
+
readonly description: "The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.";
|
|
291
|
+
readonly type: "object";
|
|
292
|
+
readonly additionalProperties: false;
|
|
293
|
+
readonly required: readonly ["groupId", "managers"];
|
|
294
|
+
readonly properties: {
|
|
295
|
+
readonly groupId: {
|
|
296
|
+
readonly $ref: "#/$defs/GroupId";
|
|
297
|
+
};
|
|
298
|
+
readonly managers: {
|
|
299
|
+
readonly type: "array";
|
|
300
|
+
readonly maxItems: 256;
|
|
301
|
+
readonly uniqueItems: true;
|
|
302
|
+
readonly items: {
|
|
303
|
+
readonly $ref: "#/$defs/EntryId";
|
|
304
|
+
};
|
|
305
|
+
readonly description: "The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed.";
|
|
306
|
+
};
|
|
307
|
+
readonly ext: {
|
|
308
|
+
readonly $ref: "#/$defs/Ext";
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly Ext: {
|
|
313
|
+
readonly title: "Ext";
|
|
314
|
+
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.";
|
|
315
|
+
readonly type: "object";
|
|
316
|
+
readonly minProperties: 1;
|
|
317
|
+
readonly additionalProperties: true;
|
|
318
|
+
readonly propertyNames: {
|
|
319
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
readonly EntryId: {
|
|
323
|
+
readonly title: "EntryId";
|
|
324
|
+
readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
|
|
327
|
+
};
|
|
328
|
+
readonly GroupId: {
|
|
329
|
+
readonly title: "GroupId";
|
|
330
|
+
readonly description: "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.";
|
|
331
|
+
readonly type: "string";
|
|
332
|
+
readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/groups/managers/add/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAGlF;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,C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URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/groups/managers/add/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vtc/groups/managers/add/0.1",
|
|
21
|
+
"title": "VTC Groups — Managers — Add — payload",
|
|
22
|
+
"description": "A group manager, or an administrator who manages every group, appoints a community member a manager of one group: an access-control resource grant of `vtc.groups.manage` qualified to that group. The outer document members are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"groupId",
|
|
27
|
+
"entryId"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"groupId": {
|
|
31
|
+
"$ref": "#/$defs/GroupId"
|
|
32
|
+
},
|
|
33
|
+
"entryId": {
|
|
34
|
+
"$ref": "#/$defs/EntryId",
|
|
35
|
+
"description": "The member appointed."
|
|
36
|
+
},
|
|
37
|
+
"reason": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1,
|
|
40
|
+
"maxLength": 1024,
|
|
41
|
+
"description": "Why, recorded with the change."
|
|
42
|
+
},
|
|
43
|
+
"ext": {
|
|
44
|
+
"$ref": "#/$defs/Ext"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"$defs": {
|
|
48
|
+
"Response": {
|
|
49
|
+
"$anchor": "response",
|
|
50
|
+
"title": "VTC Groups — Managers — Add — response payload",
|
|
51
|
+
"description": "The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.",
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": [
|
|
55
|
+
"groupId",
|
|
56
|
+
"managers"
|
|
57
|
+
],
|
|
58
|
+
"properties": {
|
|
59
|
+
"groupId": {
|
|
60
|
+
"$ref": "#/$defs/GroupId"
|
|
61
|
+
},
|
|
62
|
+
"managers": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"maxItems": 256,
|
|
65
|
+
"uniqueItems": true,
|
|
66
|
+
"items": {
|
|
67
|
+
"$ref": "#/$defs/EntryId"
|
|
68
|
+
},
|
|
69
|
+
"description": "The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed."
|
|
70
|
+
},
|
|
71
|
+
"ext": {
|
|
72
|
+
"$ref": "#/$defs/Ext"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"Ext": {
|
|
77
|
+
"title": "Ext",
|
|
78
|
+
"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.",
|
|
79
|
+
"type": "object",
|
|
80
|
+
"minProperties": 1,
|
|
81
|
+
"additionalProperties": true,
|
|
82
|
+
"propertyNames": {
|
|
83
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"EntryId": {
|
|
87
|
+
"title": "EntryId",
|
|
88
|
+
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
91
|
+
},
|
|
92
|
+
"GroupId": {
|
|
93
|
+
"title": "GroupId",
|
|
94
|
+
"description": "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.",
|
|
95
|
+
"type": "string",
|
|
96
|
+
"pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
101
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
102
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
103
|
+
"$ref": "#/$defs/Response",
|
|
104
|
+
"$defs": {
|
|
105
|
+
"Response": {
|
|
106
|
+
"$anchor": "response",
|
|
107
|
+
"title": "VTC Groups — Managers — Add — response payload",
|
|
108
|
+
"description": "The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.",
|
|
109
|
+
"type": "object",
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"required": [
|
|
112
|
+
"groupId",
|
|
113
|
+
"managers"
|
|
114
|
+
],
|
|
115
|
+
"properties": {
|
|
116
|
+
"groupId": {
|
|
117
|
+
"$ref": "#/$defs/GroupId"
|
|
118
|
+
},
|
|
119
|
+
"managers": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"maxItems": 256,
|
|
122
|
+
"uniqueItems": true,
|
|
123
|
+
"items": {
|
|
124
|
+
"$ref": "#/$defs/EntryId"
|
|
125
|
+
},
|
|
126
|
+
"description": "The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed."
|
|
127
|
+
},
|
|
128
|
+
"ext": {
|
|
129
|
+
"$ref": "#/$defs/Ext"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"Ext": {
|
|
134
|
+
"title": "Ext",
|
|
135
|
+
"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.",
|
|
136
|
+
"type": "object",
|
|
137
|
+
"minProperties": 1,
|
|
138
|
+
"additionalProperties": true,
|
|
139
|
+
"propertyNames": {
|
|
140
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"EntryId": {
|
|
144
|
+
"title": "EntryId",
|
|
145
|
+
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
146
|
+
"type": "string",
|
|
147
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
148
|
+
},
|
|
149
|
+
"GroupId": {
|
|
150
|
+
"title": "GroupId",
|
|
151
|
+
"description": "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.",
|
|
152
|
+
"type": "string",
|
|
153
|
+
"pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
159
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
160
|
+
* per-specification and cannot be derived from the document alone, and
|
|
161
|
+
* item 2 needs the schema this carries.
|
|
162
|
+
*/
|
|
163
|
+
export const SPEC = {
|
|
164
|
+
typeUri: TYPE_URI,
|
|
165
|
+
isBearer: false,
|
|
166
|
+
isProofRequired: true,
|
|
167
|
+
isRecipientRequired: true,
|
|
168
|
+
isIssuedAtRequired: true,
|
|
169
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
173
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
174
|
+
* parties (§7.3 item 5).
|
|
175
|
+
*/
|
|
176
|
+
export const RESPONSE_SPEC = {
|
|
177
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
178
|
+
isBearer: false,
|
|
179
|
+
isProofRequired: true,
|
|
180
|
+
isRecipientRequired: true,
|
|
181
|
+
isIssuedAtRequired: true,
|
|
182
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
183
|
+
};
|
|
184
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/groups/managers/add/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,yDAAkE,CAAC;AAK3F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,kEAA2E,CAAC;AAK7G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,yDAAyD;IAChE,OAAO,EAAE,uCAAuC;IAChD,aAAa,EAAE,uQAAuQ;IACtR,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;QACT,SAAS;KACV;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,MAAM,EAAE,iBAAiB;SAC1B;QACD,SAAS,EAAE;YACT,MA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