@openvtc/trust-tasks 0.21.14 → 0.21.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.
@@ -0,0 +1,254 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/vetters/resend/0.2/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue, and an administrator may do the same on a named member's behalf. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.
8
+ */
9
+ export interface VTCVettingVettersResendPayload {
10
+ /**
11
+ * The vetter to resend the live grant for, on an administrator's behalf. Requires the community-administrator capability. Absent: the request concerns the sender's own live grant, exactly as 0.1.
12
+ */
13
+ memberDid?: string;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * The credential the community delivered again.
18
+ */
19
+ export interface VTCVettingVettersResendResponsePayload {
20
+ /**
21
+ * The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.
22
+ */
23
+ credentialId: string;
24
+ /**
25
+ * That credential's `validUntil`.
26
+ */
27
+ validUntil: string;
28
+ }
29
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
30
+ export type { Ext };
31
+ /** Trust Task type URI. */
32
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
33
+ /** Stable alias for this specification's request payload shape. */
34
+ export type Payload = VTCVettingVettersResendPayload;
35
+ /** Trust Task response type URI (request type URI + "#response"). */
36
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2#response";
37
+ /** Stable alias for this specification's success-response payload shape. */
38
+ export type Response = VTCVettingVettersResendResponsePayload;
39
+ /**
40
+ * This specification's payload schema, as a value.
41
+ *
42
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
43
+ * rather than only as a `.json` file because TypeScript types are erased
44
+ * at runtime: without a schema a consumer has nothing to validate, and
45
+ * every REQUIRED payload member is optional in practice. Cross-file
46
+ * `$ref`s are already inlined, so it needs no resolver.
47
+ */
48
+ export declare const PAYLOAD_SCHEMA: {
49
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
50
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
51
+ readonly title: "VTC Vetting — Vetters Resend — payload";
52
+ readonly description: "A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue, and an administrator may do the same on a named member's behalf. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.";
53
+ readonly type: "object";
54
+ readonly additionalProperties: false;
55
+ readonly properties: {
56
+ readonly memberDid: {
57
+ readonly type: "string";
58
+ readonly minLength: 1;
59
+ readonly description: "The vetter to resend the live grant for, on an administrator's behalf. Requires the community-administrator capability. Absent: the request concerns the sender's own live grant, exactly as 0.1.";
60
+ };
61
+ readonly ext: {
62
+ readonly $ref: "#/$defs/Ext";
63
+ };
64
+ };
65
+ readonly $defs: {
66
+ readonly Response: {
67
+ readonly $anchor: "response";
68
+ readonly title: "VTC Vetting — Vetters Resend — response payload";
69
+ readonly description: "The credential the community delivered again.";
70
+ readonly type: "object";
71
+ readonly additionalProperties: false;
72
+ readonly required: readonly ["credentialId", "validUntil"];
73
+ readonly properties: {
74
+ readonly credentialId: {
75
+ readonly type: "string";
76
+ readonly minLength: 1;
77
+ readonly maxLength: 512;
78
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
79
+ readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
80
+ };
81
+ readonly validUntil: {
82
+ readonly type: "string";
83
+ readonly format: "date-time";
84
+ readonly description: "That credential's `validUntil`.";
85
+ };
86
+ };
87
+ };
88
+ readonly Ext: {
89
+ readonly title: "Ext";
90
+ 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.";
91
+ readonly type: "object";
92
+ readonly minProperties: 1;
93
+ readonly additionalProperties: true;
94
+ readonly propertyNames: {
95
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
96
+ };
97
+ };
98
+ };
99
+ };
100
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
101
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
102
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
103
+ readonly $ref: "#/$defs/Response";
104
+ readonly $defs: {
105
+ readonly Response: {
106
+ readonly $anchor: "response";
107
+ readonly title: "VTC Vetting — Vetters Resend — response payload";
108
+ readonly description: "The credential the community delivered again.";
109
+ readonly type: "object";
110
+ readonly additionalProperties: false;
111
+ readonly required: readonly ["credentialId", "validUntil"];
112
+ readonly properties: {
113
+ readonly credentialId: {
114
+ readonly type: "string";
115
+ readonly minLength: 1;
116
+ readonly maxLength: 512;
117
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
118
+ readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
119
+ };
120
+ readonly validUntil: {
121
+ readonly type: "string";
122
+ readonly format: "date-time";
123
+ readonly description: "That credential's `validUntil`.";
124
+ };
125
+ };
126
+ };
127
+ readonly Ext: {
128
+ readonly title: "Ext";
129
+ 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.";
130
+ readonly type: "object";
131
+ readonly minProperties: 1;
132
+ readonly additionalProperties: true;
133
+ readonly propertyNames: {
134
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
135
+ };
136
+ };
137
+ };
138
+ };
139
+ /**
140
+ * SPEC.md §7.2 policy for the request variant, from this specification's
141
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
142
+ * per-specification and cannot be derived from the document alone, and
143
+ * item 2 needs the schema this carries.
144
+ */
145
+ export declare const SPEC: {
146
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
147
+ readonly isBearer: false;
148
+ readonly isProofRequired: true;
149
+ readonly isRecipientRequired: true;
150
+ readonly isIssuedAtRequired: false;
151
+ readonly payloadSchema: {
152
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
153
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
154
+ readonly title: "VTC Vetting — Vetters Resend — payload";
155
+ readonly description: "A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue, and an administrator may do the same on a named member's behalf. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.";
156
+ readonly type: "object";
157
+ readonly additionalProperties: false;
158
+ readonly properties: {
159
+ readonly memberDid: {
160
+ readonly type: "string";
161
+ readonly minLength: 1;
162
+ readonly description: "The vetter to resend the live grant for, on an administrator's behalf. Requires the community-administrator capability. Absent: the request concerns the sender's own live grant, exactly as 0.1.";
163
+ };
164
+ readonly ext: {
165
+ readonly $ref: "#/$defs/Ext";
166
+ };
167
+ };
168
+ readonly $defs: {
169
+ readonly Response: {
170
+ readonly $anchor: "response";
171
+ readonly title: "VTC Vetting — Vetters Resend — response payload";
172
+ readonly description: "The credential the community delivered again.";
173
+ readonly type: "object";
174
+ readonly additionalProperties: false;
175
+ readonly required: readonly ["credentialId", "validUntil"];
176
+ readonly properties: {
177
+ readonly credentialId: {
178
+ readonly type: "string";
179
+ readonly minLength: 1;
180
+ readonly maxLength: 512;
181
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
182
+ readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
183
+ };
184
+ readonly validUntil: {
185
+ readonly type: "string";
186
+ readonly format: "date-time";
187
+ readonly description: "That credential's `validUntil`.";
188
+ };
189
+ };
190
+ };
191
+ readonly Ext: {
192
+ readonly title: "Ext";
193
+ 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.";
194
+ readonly type: "object";
195
+ readonly minProperties: 1;
196
+ readonly additionalProperties: true;
197
+ readonly propertyNames: {
198
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
199
+ };
200
+ };
201
+ };
202
+ };
203
+ };
204
+ /**
205
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
206
+ * tracks the *issuer* party's requirement because a response swaps the
207
+ * parties (§7.3 item 5).
208
+ */
209
+ export declare const RESPONSE_SPEC: {
210
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2#response";
211
+ readonly isBearer: false;
212
+ readonly isProofRequired: true;
213
+ readonly isRecipientRequired: true;
214
+ readonly isIssuedAtRequired: false;
215
+ readonly payloadSchema: {
216
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
217
+ readonly $ref: "#/$defs/Response";
218
+ readonly $defs: {
219
+ readonly Response: {
220
+ readonly $anchor: "response";
221
+ readonly title: "VTC Vetting — Vetters Resend — response payload";
222
+ readonly description: "The credential the community delivered again.";
223
+ readonly type: "object";
224
+ readonly additionalProperties: false;
225
+ readonly required: readonly ["credentialId", "validUntil"];
226
+ readonly properties: {
227
+ readonly credentialId: {
228
+ readonly type: "string";
229
+ readonly minLength: 1;
230
+ readonly maxLength: 512;
231
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
232
+ readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
233
+ };
234
+ readonly validUntil: {
235
+ readonly type: "string";
236
+ readonly format: "date-time";
237
+ readonly description: "That credential's `validUntil`.";
238
+ };
239
+ };
240
+ };
241
+ readonly Ext: {
242
+ readonly title: "Ext";
243
+ 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.";
244
+ readonly type: "object";
245
+ readonly minProperties: 1;
246
+ readonly additionalProperties: true;
247
+ readonly propertyNames: {
248
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
249
+ };
250
+ };
251
+ };
252
+ };
253
+ };
254
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/vetting/vetters/resend/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,4DAAqE,CAAC;AAE9F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,qEAA8E,CAAC;AAEhH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,142 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/vetters/resend/0.2/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2#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/vetting/vetters/resend/0.2",
21
+ "title": "VTC Vetting — Vetters Resend — payload",
22
+ "description": "A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue, and an administrator may do the same on a named member's behalf. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "memberDid": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "description": "The vetter to resend the live grant for, on an administrator's behalf. Requires the community-administrator capability. Absent: the request concerns the sender's own live grant, exactly as 0.1."
30
+ },
31
+ "ext": {
32
+ "$ref": "#/$defs/Ext"
33
+ }
34
+ },
35
+ "$defs": {
36
+ "Response": {
37
+ "$anchor": "response",
38
+ "title": "VTC Vetting — Vetters Resend — response payload",
39
+ "description": "The credential the community delivered again.",
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "required": [
43
+ "credentialId",
44
+ "validUntil"
45
+ ],
46
+ "properties": {
47
+ "credentialId": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "maxLength": 512,
51
+ "pattern": "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$",
52
+ "description": "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned."
53
+ },
54
+ "validUntil": {
55
+ "type": "string",
56
+ "format": "date-time",
57
+ "description": "That credential's `validUntil`."
58
+ }
59
+ }
60
+ },
61
+ "Ext": {
62
+ "title": "Ext",
63
+ "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.",
64
+ "type": "object",
65
+ "minProperties": 1,
66
+ "additionalProperties": true,
67
+ "propertyNames": {
68
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
69
+ }
70
+ }
71
+ }
72
+ };
73
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
74
+ export const RESPONSE_PAYLOAD_SCHEMA = {
75
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
76
+ "$ref": "#/$defs/Response",
77
+ "$defs": {
78
+ "Response": {
79
+ "$anchor": "response",
80
+ "title": "VTC Vetting — Vetters Resend — response payload",
81
+ "description": "The credential the community delivered again.",
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": [
85
+ "credentialId",
86
+ "validUntil"
87
+ ],
88
+ "properties": {
89
+ "credentialId": {
90
+ "type": "string",
91
+ "minLength": 1,
92
+ "maxLength": 512,
93
+ "pattern": "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$",
94
+ "description": "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned."
95
+ },
96
+ "validUntil": {
97
+ "type": "string",
98
+ "format": "date-time",
99
+ "description": "That credential's `validUntil`."
100
+ }
101
+ }
102
+ },
103
+ "Ext": {
104
+ "title": "Ext",
105
+ "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.",
106
+ "type": "object",
107
+ "minProperties": 1,
108
+ "additionalProperties": true,
109
+ "propertyNames": {
110
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
111
+ }
112
+ }
113
+ }
114
+ };
115
+ /**
116
+ * SPEC.md §7.2 policy for the request variant, from this specification's
117
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
118
+ * per-specification and cannot be derived from the document alone, and
119
+ * item 2 needs the schema this carries.
120
+ */
121
+ export const SPEC = {
122
+ typeUri: TYPE_URI,
123
+ isBearer: false,
124
+ isProofRequired: true,
125
+ isRecipientRequired: true,
126
+ isIssuedAtRequired: false,
127
+ payloadSchema: PAYLOAD_SCHEMA,
128
+ };
129
+ /**
130
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
131
+ * tracks the *issuer* party's requirement because a response swaps the
132
+ * parties (§7.3 item 5).
133
+ */
134
+ export const RESPONSE_SPEC = {
135
+ typeUri: RESPONSE_TYPE_URI,
136
+ isBearer: false,
137
+ isProofRequired: true,
138
+ isRecipientRequired: true,
139
+ isIssuedAtRequired: false,
140
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
141
+ };
142
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/vetting/vetters/resend/0.2/payload.ts"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.21.14",
3
+ "version": "0.21.15",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -687,6 +687,7 @@ export * as VtcRelationshipsRequest_v0_1 from "./vtc/relationships/request/0.1/p
687
687
  export * as VtcRelationshipsRequest_v0_2 from "./vtc/relationships/request/0.2/payload.js";
688
688
  export * as VtcRelationshipsRestore_v0_1 from "./vtc/relationships/restore/0.1/payload.js";
689
689
  export * as VtcRelationshipsRevoke_v0_1 from "./vtc/relationships/revoke/0.1/payload.js";
690
+ export * as VtcRelationshipsRevoke_v0_2 from "./vtc/relationships/revoke/0.2/payload.js";
690
691
  export * as VtcRelationshipsSuspend_v0_1 from "./vtc/relationships/suspend/0.1/payload.js";
691
692
  export * as VtcRoomsList_v0_1 from "./vtc/rooms/list/0.1/payload.js";
692
693
  export * as VtcSchemasAcceptsDelete_v0_1 from "./vtc/schemas/accepts/delete/0.1/payload.js";
@@ -710,6 +711,7 @@ export * as VtcVettingVettersPcsRoot_v0_1 from "./vtc/vetting/vetters/pcs-root/0
710
711
  export * as VtcVettingVettersPcsTokens_v0_1 from "./vtc/vetting/vetters/pcs-tokens/0.1/payload.js";
711
712
  export * as VtcVettingVettersProfile_v0_1 from "./vtc/vetting/vetters/profile/0.1/payload.js";
712
713
  export * as VtcVettingVettersResend_v0_1 from "./vtc/vetting/vetters/resend/0.1/payload.js";
714
+ export * as VtcVettingVettersResend_v0_2 from "./vtc/vetting/vetters/resend/0.2/payload.js";
713
715
  export * as VtcVettingVettersShow_v0_1 from "./vtc/vetting/vetters/show/0.1/payload.js";
714
716
  export * as VtcWebsiteDeploy_v0_1 from "./vtc/website/deploy/0.1/payload.js";
715
717
  export * as VtcWebsiteFilesDelete_v0_1 from "./vtc/website/files/delete/0.1/payload.js";
@@ -0,0 +1,209 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/relationships/revoke/0.2/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ export interface VTCRelationshipsRevokePayload {
10
+ /**
11
+ * The relationship to revoke.
12
+ */
13
+ id: string;
14
+ /**
15
+ * Proof that the caller controls the key behind the relationship's issuerDid, when the document's own proof signer is neither that issuer nor an administrator — i.e. for an edge published under a pairwise relationship DID. A member publishes an edge under a relationship DID, an identifier scoped to one counterparty, which names nobody; this document's own proof says only that a member sent the request, not that they control the edge's issuing key. Omit `pop` when the document's proof signer equals the relationship's issuerDid, or is an administrator: the document's own proof, or the administrator's standing, already establishes authority.
16
+ */
17
+ pop?: {
18
+ /**
19
+ * Distinct from vtc/relationships/publish's VrcPublishAuthorization, so a signature made to authorize a publish cannot be replayed here to authorize a revoke.
20
+ */
21
+ type: "VrcRevokeAuthorization";
22
+ /**
23
+ * The `id` of the Trust Task document carrying this authorization. Binds the authorization to one document, so a captured one cannot be replayed in another — including by a different member.
24
+ */
25
+ documentId: string;
26
+ /**
27
+ * The relationship id this authorization applies to. MUST equal the top-level `id`, so an authorization signed for one edge cannot be presented against another.
28
+ */
29
+ relationship: string;
30
+ /**
31
+ * Data-integrity proof over this object, by a verification method the relationship's issuerDid controls. This is the proof of possession; the members above only bound what it authorizes.
32
+ */
33
+ proof: {};
34
+ };
35
+ ext?: Ext;
36
+ }
37
+ export interface VTCRelationshipsRevokeResponsePayload {
38
+ id: string;
39
+ ext?: Ext;
40
+ }
41
+
42
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
43
+ export type { Ext };
44
+
45
+ /** Trust Task type URI. */
46
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/relationships/revoke/0.2" as const;
47
+
48
+ /** Stable alias for this specification's request payload shape. */
49
+ export type Payload = VTCRelationshipsRevokePayload;
50
+
51
+ /** Trust Task response type URI (request type URI + "#response"). */
52
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/relationships/revoke/0.2#response" as const;
53
+
54
+ /** Stable alias for this specification's success-response payload shape. */
55
+ export type Response = VTCRelationshipsRevokeResponsePayload;
56
+
57
+ /**
58
+ * This specification's payload schema, as a value.
59
+ *
60
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
61
+ * rather than only as a `.json` file because TypeScript types are erased
62
+ * at runtime: without a schema a consumer has nothing to validate, and
63
+ * every REQUIRED payload member is optional in practice. Cross-file
64
+ * `$ref`s are already inlined, so it needs no resolver.
65
+ */
66
+ export const PAYLOAD_SCHEMA = {
67
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
68
+ "$id": "https://trusttasks.org/spec/vtc/relationships/revoke/0.2",
69
+ "title": "VTC Relationships Revoke — payload",
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "required": [
73
+ "id"
74
+ ],
75
+ "properties": {
76
+ "id": {
77
+ "type": "string",
78
+ "minLength": 1,
79
+ "description": "The relationship to revoke."
80
+ },
81
+ "pop": {
82
+ "type": "object",
83
+ "description": "Proof that the caller controls the key behind the relationship's issuerDid, when the document's own proof signer is neither that issuer nor an administrator — i.e. for an edge published under a pairwise relationship DID. A member publishes an edge under a relationship DID, an identifier scoped to one counterparty, which names nobody; this document's own proof says only that a member sent the request, not that they control the edge's issuing key. Omit `pop` when the document's proof signer equals the relationship's issuerDid, or is an administrator: the document's own proof, or the administrator's standing, already establishes authority.",
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "type",
87
+ "documentId",
88
+ "relationship",
89
+ "proof"
90
+ ],
91
+ "properties": {
92
+ "type": {
93
+ "const": "VrcRevokeAuthorization",
94
+ "description": "Distinct from vtc/relationships/publish's VrcPublishAuthorization, so a signature made to authorize a publish cannot be replayed here to authorize a revoke."
95
+ },
96
+ "documentId": {
97
+ "type": "string",
98
+ "description": "The `id` of the Trust Task document carrying this authorization. Binds the authorization to one document, so a captured one cannot be replayed in another — including by a different member."
99
+ },
100
+ "relationship": {
101
+ "type": "string",
102
+ "description": "The relationship id this authorization applies to. MUST equal the top-level `id`, so an authorization signed for one edge cannot be presented against another."
103
+ },
104
+ "proof": {
105
+ "type": "object",
106
+ "description": "Data-integrity proof over this object, by a verification method the relationship's issuerDid controls. This is the proof of possession; the members above only bound what it authorizes."
107
+ }
108
+ }
109
+ },
110
+ "ext": {
111
+ "$ref": "#/$defs/Ext"
112
+ }
113
+ },
114
+ "$defs": {
115
+ "Response": {
116
+ "$anchor": "response",
117
+ "title": "VTC Relationships Revoke — response payload",
118
+ "type": "object",
119
+ "additionalProperties": false,
120
+ "required": [
121
+ "id"
122
+ ],
123
+ "properties": {
124
+ "id": {
125
+ "type": "string",
126
+ "minLength": 1
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
+ }
144
+ } as const;
145
+
146
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
147
+ export const RESPONSE_PAYLOAD_SCHEMA = {
148
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
149
+ "$ref": "#/$defs/Response",
150
+ "$defs": {
151
+ "Response": {
152
+ "$anchor": "response",
153
+ "title": "VTC Relationships Revoke — response payload",
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "required": [
157
+ "id"
158
+ ],
159
+ "properties": {
160
+ "id": {
161
+ "type": "string",
162
+ "minLength": 1
163
+ },
164
+ "ext": {
165
+ "$ref": "#/$defs/Ext"
166
+ }
167
+ }
168
+ },
169
+ "Ext": {
170
+ "title": "Ext",
171
+ "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.",
172
+ "type": "object",
173
+ "minProperties": 1,
174
+ "additionalProperties": true,
175
+ "propertyNames": {
176
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
177
+ }
178
+ }
179
+ }
180
+ } as const;
181
+
182
+ /**
183
+ * SPEC.md §7.2 policy for the request variant, from this specification's
184
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
185
+ * per-specification and cannot be derived from the document alone, and
186
+ * item 2 needs the schema this carries.
187
+ */
188
+ export const SPEC = {
189
+ typeUri: TYPE_URI,
190
+ isBearer: false,
191
+ isProofRequired: true,
192
+ isRecipientRequired: true,
193
+ isIssuedAtRequired: true,
194
+ payloadSchema: PAYLOAD_SCHEMA,
195
+ } as const;
196
+
197
+ /**
198
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
199
+ * tracks the *issuer* party's requirement because a response swaps the
200
+ * parties (§7.3 item 5).
201
+ */
202
+ export const RESPONSE_SPEC = {
203
+ typeUri: RESPONSE_TYPE_URI,
204
+ isBearer: false,
205
+ isProofRequired: true,
206
+ isRecipientRequired: true,
207
+ isIssuedAtRequired: true,
208
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
209
+ } as const;