@openvtc/trust-tasks 0.16.4 → 0.16.5

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,379 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/members/credentials/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * Fetch the membership-pair credential bodies a community holds for one member.
8
+ */
9
+ export interface VTCMembersCredentials {
10
+ /**
11
+ * The member to read.
12
+ */
13
+ did: string;
14
+ /**
15
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
16
+ */
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * The documents the community holds for this member. Every credential member is optional; absent means the community holds no such document, which is a real answer rather than a failure.
21
+ */
22
+ export interface VTCMembersCredentialsResponsePayload {
23
+ /**
24
+ * The member these documents belong to.
25
+ */
26
+ did: string;
27
+ /**
28
+ * The community-issued Verifiable Membership Credential — the grant. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.
29
+ */
30
+ membershipCredential?: {};
31
+ /**
32
+ * The role Verifiable Endorsement Credential. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.
33
+ */
34
+ roleCredential?: {};
35
+ /**
36
+ * The member-issued reciprocal VMC — the acknowledgement that completes the edge. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.
37
+ */
38
+ memberVmc?: {};
39
+ /**
40
+ * When the acknowledgement arrived. Paired with `memberVmc`; a maintainer must not send one without the other.
41
+ */
42
+ memberVmcReceivedAt?: string;
43
+ /**
44
+ * Whether the acknowledgement's digest was verified against the grant. REQUIRED so that 'not verified' is stated rather than inferred from silence. Declares no `default` on purpose — a declared default is materialised by the generated bindings and breaks round-trip idempotence for every existing document.
45
+ */
46
+ memberVmcBound: boolean;
47
+ /**
48
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
49
+ */
50
+ ext?: Ext;
51
+ }
52
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
53
+ export type { Ext };
54
+ /** Trust Task type URI. */
55
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/members/credentials/0.1";
56
+ /** Stable alias for this specification's request payload shape. */
57
+ export type Payload = VTCMembersCredentials;
58
+ /** Trust Task response type URI (request type URI + "#response"). */
59
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/members/credentials/0.1#response";
60
+ /** Stable alias for this specification's success-response payload shape. */
61
+ export type Response = VTCMembersCredentialsResponsePayload;
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 declare const PAYLOAD_SCHEMA: {
72
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
73
+ readonly $id: "https://trusttasks.org/spec/vtc/members/credentials/0.1";
74
+ readonly title: "VTC Members — Credentials";
75
+ readonly description: "Fetch the membership-pair credential bodies a community holds for one member.";
76
+ readonly type: "object";
77
+ readonly additionalProperties: false;
78
+ readonly required: readonly ["did"];
79
+ readonly properties: {
80
+ readonly did: {
81
+ readonly $ref: "#/$defs/Did";
82
+ readonly description: "The member to read.";
83
+ };
84
+ readonly ext: {
85
+ readonly $ref: "#/$defs/Ext";
86
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
87
+ };
88
+ };
89
+ readonly $defs: {
90
+ readonly Response: {
91
+ readonly $anchor: "response";
92
+ readonly title: "VTC Members Credentials — response payload";
93
+ readonly description: "The documents the community holds for this member. Every credential member is optional; absent means the community holds no such document, which is a real answer rather than a failure.";
94
+ readonly type: "object";
95
+ readonly additionalProperties: false;
96
+ readonly required: readonly ["did", "memberVmcBound"];
97
+ readonly properties: {
98
+ readonly did: {
99
+ readonly $ref: "#/$defs/Did";
100
+ readonly description: "The member these documents belong to.";
101
+ };
102
+ readonly membershipCredential: {
103
+ readonly type: "object";
104
+ readonly minProperties: 1;
105
+ readonly description: "The community-issued Verifiable Membership Credential — the grant. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
106
+ };
107
+ readonly roleCredential: {
108
+ readonly type: "object";
109
+ readonly minProperties: 1;
110
+ readonly description: "The role Verifiable Endorsement Credential. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
111
+ };
112
+ readonly memberVmc: {
113
+ readonly type: "object";
114
+ readonly minProperties: 1;
115
+ readonly description: "The member-issued reciprocal VMC — the acknowledgement that completes the edge. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
116
+ };
117
+ readonly memberVmcReceivedAt: {
118
+ readonly type: "string";
119
+ readonly format: "date-time";
120
+ readonly description: "When the acknowledgement arrived. Paired with `memberVmc`; a maintainer must not send one without the other.";
121
+ };
122
+ readonly memberVmcBound: {
123
+ readonly type: "boolean";
124
+ readonly description: "Whether the acknowledgement's digest was verified against the grant. REQUIRED so that 'not verified' is stated rather than inferred from silence. Declares no `default` on purpose — a declared default is materialised by the generated bindings and breaks round-trip idempotence for every existing document.";
125
+ };
126
+ readonly ext: {
127
+ readonly $ref: "#/$defs/Ext";
128
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
129
+ };
130
+ };
131
+ };
132
+ readonly Did: {
133
+ readonly type: "string";
134
+ readonly pattern: "^did:[a-z0-9]+:.+$";
135
+ readonly maxLength: 2048;
136
+ };
137
+ readonly Ext: {
138
+ readonly title: "Ext";
139
+ 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.";
140
+ readonly type: "object";
141
+ readonly minProperties: 1;
142
+ readonly additionalProperties: true;
143
+ readonly propertyNames: {
144
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
145
+ };
146
+ };
147
+ };
148
+ };
149
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
150
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
151
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
152
+ readonly $ref: "#/$defs/Response";
153
+ readonly $defs: {
154
+ readonly Response: {
155
+ readonly $anchor: "response";
156
+ readonly title: "VTC Members Credentials — response payload";
157
+ readonly description: "The documents the community holds for this member. Every credential member is optional; absent means the community holds no such document, which is a real answer rather than a failure.";
158
+ readonly type: "object";
159
+ readonly additionalProperties: false;
160
+ readonly required: readonly ["did", "memberVmcBound"];
161
+ readonly properties: {
162
+ readonly did: {
163
+ readonly $ref: "#/$defs/Did";
164
+ readonly description: "The member these documents belong to.";
165
+ };
166
+ readonly membershipCredential: {
167
+ readonly type: "object";
168
+ readonly minProperties: 1;
169
+ readonly description: "The community-issued Verifiable Membership Credential — the grant. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
170
+ };
171
+ readonly roleCredential: {
172
+ readonly type: "object";
173
+ readonly minProperties: 1;
174
+ readonly description: "The role Verifiable Endorsement Credential. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
175
+ };
176
+ readonly memberVmc: {
177
+ readonly type: "object";
178
+ readonly minProperties: 1;
179
+ readonly description: "The member-issued reciprocal VMC — the acknowledgement that completes the edge. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
180
+ };
181
+ readonly memberVmcReceivedAt: {
182
+ readonly type: "string";
183
+ readonly format: "date-time";
184
+ readonly description: "When the acknowledgement arrived. Paired with `memberVmc`; a maintainer must not send one without the other.";
185
+ };
186
+ readonly memberVmcBound: {
187
+ readonly type: "boolean";
188
+ readonly description: "Whether the acknowledgement's digest was verified against the grant. REQUIRED so that 'not verified' is stated rather than inferred from silence. Declares no `default` on purpose — a declared default is materialised by the generated bindings and breaks round-trip idempotence for every existing document.";
189
+ };
190
+ readonly ext: {
191
+ readonly $ref: "#/$defs/Ext";
192
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
193
+ };
194
+ };
195
+ };
196
+ readonly Did: {
197
+ readonly type: "string";
198
+ readonly pattern: "^did:[a-z0-9]+:.+$";
199
+ readonly maxLength: 2048;
200
+ };
201
+ readonly Ext: {
202
+ readonly title: "Ext";
203
+ 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.";
204
+ readonly type: "object";
205
+ readonly minProperties: 1;
206
+ readonly additionalProperties: true;
207
+ readonly propertyNames: {
208
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
209
+ };
210
+ };
211
+ };
212
+ };
213
+ /**
214
+ * SPEC.md §7.2 policy for the request variant, from this specification's
215
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
216
+ * per-specification and cannot be derived from the document alone, and
217
+ * item 2 needs the schema this carries.
218
+ */
219
+ export declare const SPEC: {
220
+ readonly typeUri: "https://trusttasks.org/spec/vtc/members/credentials/0.1";
221
+ readonly isBearer: false;
222
+ readonly isProofRequired: true;
223
+ readonly isRecipientRequired: true;
224
+ readonly isIssuedAtRequired: true;
225
+ readonly payloadSchema: {
226
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
227
+ readonly $id: "https://trusttasks.org/spec/vtc/members/credentials/0.1";
228
+ readonly title: "VTC Members — Credentials";
229
+ readonly description: "Fetch the membership-pair credential bodies a community holds for one member.";
230
+ readonly type: "object";
231
+ readonly additionalProperties: false;
232
+ readonly required: readonly ["did"];
233
+ readonly properties: {
234
+ readonly did: {
235
+ readonly $ref: "#/$defs/Did";
236
+ readonly description: "The member to read.";
237
+ };
238
+ readonly ext: {
239
+ readonly $ref: "#/$defs/Ext";
240
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
241
+ };
242
+ };
243
+ readonly $defs: {
244
+ readonly Response: {
245
+ readonly $anchor: "response";
246
+ readonly title: "VTC Members Credentials — response payload";
247
+ readonly description: "The documents the community holds for this member. Every credential member is optional; absent means the community holds no such document, which is a real answer rather than a failure.";
248
+ readonly type: "object";
249
+ readonly additionalProperties: false;
250
+ readonly required: readonly ["did", "memberVmcBound"];
251
+ readonly properties: {
252
+ readonly did: {
253
+ readonly $ref: "#/$defs/Did";
254
+ readonly description: "The member these documents belong to.";
255
+ };
256
+ readonly membershipCredential: {
257
+ readonly type: "object";
258
+ readonly minProperties: 1;
259
+ readonly description: "The community-issued Verifiable Membership Credential — the grant. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
260
+ };
261
+ readonly roleCredential: {
262
+ readonly type: "object";
263
+ readonly minProperties: 1;
264
+ readonly description: "The role Verifiable Endorsement Credential. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
265
+ };
266
+ readonly memberVmc: {
267
+ readonly type: "object";
268
+ readonly minProperties: 1;
269
+ readonly description: "The member-issued reciprocal VMC — the acknowledgement that completes the edge. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
270
+ };
271
+ readonly memberVmcReceivedAt: {
272
+ readonly type: "string";
273
+ readonly format: "date-time";
274
+ readonly description: "When the acknowledgement arrived. Paired with `memberVmc`; a maintainer must not send one without the other.";
275
+ };
276
+ readonly memberVmcBound: {
277
+ readonly type: "boolean";
278
+ readonly description: "Whether the acknowledgement's digest was verified against the grant. REQUIRED so that 'not verified' is stated rather than inferred from silence. Declares no `default` on purpose — a declared default is materialised by the generated bindings and breaks round-trip idempotence for every existing document.";
279
+ };
280
+ readonly ext: {
281
+ readonly $ref: "#/$defs/Ext";
282
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
283
+ };
284
+ };
285
+ };
286
+ readonly Did: {
287
+ readonly type: "string";
288
+ readonly pattern: "^did:[a-z0-9]+:.+$";
289
+ readonly maxLength: 2048;
290
+ };
291
+ readonly Ext: {
292
+ readonly title: "Ext";
293
+ 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.";
294
+ readonly type: "object";
295
+ readonly minProperties: 1;
296
+ readonly additionalProperties: true;
297
+ readonly propertyNames: {
298
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
299
+ };
300
+ };
301
+ };
302
+ };
303
+ };
304
+ /**
305
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
306
+ * tracks the *issuer* party's requirement because a response swaps the
307
+ * parties (§7.3 item 5).
308
+ */
309
+ export declare const RESPONSE_SPEC: {
310
+ readonly typeUri: "https://trusttasks.org/spec/vtc/members/credentials/0.1#response";
311
+ readonly isBearer: false;
312
+ readonly isProofRequired: true;
313
+ readonly isRecipientRequired: true;
314
+ readonly isIssuedAtRequired: true;
315
+ readonly payloadSchema: {
316
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
317
+ readonly $ref: "#/$defs/Response";
318
+ readonly $defs: {
319
+ readonly Response: {
320
+ readonly $anchor: "response";
321
+ readonly title: "VTC Members Credentials — response payload";
322
+ readonly description: "The documents the community holds for this member. Every credential member is optional; absent means the community holds no such document, which is a real answer rather than a failure.";
323
+ readonly type: "object";
324
+ readonly additionalProperties: false;
325
+ readonly required: readonly ["did", "memberVmcBound"];
326
+ readonly properties: {
327
+ readonly did: {
328
+ readonly $ref: "#/$defs/Did";
329
+ readonly description: "The member these documents belong to.";
330
+ };
331
+ readonly membershipCredential: {
332
+ readonly type: "object";
333
+ readonly minProperties: 1;
334
+ readonly description: "The community-issued Verifiable Membership Credential — the grant. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
335
+ };
336
+ readonly roleCredential: {
337
+ readonly type: "object";
338
+ readonly minProperties: 1;
339
+ readonly description: "The role Verifiable Endorsement Credential. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
340
+ };
341
+ readonly memberVmc: {
342
+ readonly type: "object";
343
+ readonly minProperties: 1;
344
+ readonly description: "The member-issued reciprocal VMC — the acknowledgement that completes the edge. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2.";
345
+ };
346
+ readonly memberVmcReceivedAt: {
347
+ readonly type: "string";
348
+ readonly format: "date-time";
349
+ readonly description: "When the acknowledgement arrived. Paired with `memberVmc`; a maintainer must not send one without the other.";
350
+ };
351
+ readonly memberVmcBound: {
352
+ readonly type: "boolean";
353
+ readonly description: "Whether the acknowledgement's digest was verified against the grant. REQUIRED so that 'not verified' is stated rather than inferred from silence. Declares no `default` on purpose — a declared default is materialised by the generated bindings and breaks round-trip idempotence for every existing document.";
354
+ };
355
+ readonly ext: {
356
+ readonly $ref: "#/$defs/Ext";
357
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
358
+ };
359
+ };
360
+ };
361
+ readonly Did: {
362
+ readonly type: "string";
363
+ readonly pattern: "^did:[a-z0-9]+:.+$";
364
+ readonly maxLength: 2048;
365
+ };
366
+ readonly Ext: {
367
+ readonly title: "Ext";
368
+ 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.";
369
+ readonly type: "object";
370
+ readonly minProperties: 1;
371
+ readonly additionalProperties: true;
372
+ readonly propertyNames: {
373
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
374
+ };
375
+ };
376
+ };
377
+ };
378
+ };
379
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/members/credentials/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,CAAC;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,EAAE,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,EAAE,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,yDAAkE,CAAC;AAE3F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,qBAAqB,CAAC;AAE5C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,kEAA2E,CAAC;AAE7G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,oCAAoC,CAAC;AAE5D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,195 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/members/credentials/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/members/credentials/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/members/credentials/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/members/credentials/0.1",
21
+ "title": "VTC Members — Credentials",
22
+ "description": "Fetch the membership-pair credential bodies a community holds for one member.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "did"
27
+ ],
28
+ "properties": {
29
+ "did": {
30
+ "$ref": "#/$defs/Did",
31
+ "description": "The member to read."
32
+ },
33
+ "ext": {
34
+ "$ref": "#/$defs/Ext",
35
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
36
+ }
37
+ },
38
+ "$defs": {
39
+ "Response": {
40
+ "$anchor": "response",
41
+ "title": "VTC Members Credentials — response payload",
42
+ "description": "The documents the community holds for this member. Every credential member is optional; absent means the community holds no such document, which is a real answer rather than a failure.",
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "required": [
46
+ "did",
47
+ "memberVmcBound"
48
+ ],
49
+ "properties": {
50
+ "did": {
51
+ "$ref": "#/$defs/Did",
52
+ "description": "The member these documents belong to."
53
+ },
54
+ "membershipCredential": {
55
+ "type": "object",
56
+ "minProperties": 1,
57
+ "description": "The community-issued Verifiable Membership Credential — the grant. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2."
58
+ },
59
+ "roleCredential": {
60
+ "type": "object",
61
+ "minProperties": 1,
62
+ "description": "The role Verifiable Endorsement Credential. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2."
63
+ },
64
+ "memberVmc": {
65
+ "type": "object",
66
+ "minProperties": 1,
67
+ "description": "The member-issued reciprocal VMC — the acknowledgement that completes the edge. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2."
68
+ },
69
+ "memberVmcReceivedAt": {
70
+ "type": "string",
71
+ "format": "date-time",
72
+ "description": "When the acknowledgement arrived. Paired with `memberVmc`; a maintainer must not send one without the other."
73
+ },
74
+ "memberVmcBound": {
75
+ "type": "boolean",
76
+ "description": "Whether the acknowledgement's digest was verified against the grant. REQUIRED so that 'not verified' is stated rather than inferred from silence. Declares no `default` on purpose — a declared default is materialised by the generated bindings and breaks round-trip idempotence for every existing document."
77
+ },
78
+ "ext": {
79
+ "$ref": "#/$defs/Ext",
80
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
81
+ }
82
+ }
83
+ },
84
+ "Did": {
85
+ "type": "string",
86
+ "pattern": "^did:[a-z0-9]+:.+$",
87
+ "maxLength": 2048
88
+ },
89
+ "Ext": {
90
+ "title": "Ext",
91
+ "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.",
92
+ "type": "object",
93
+ "minProperties": 1,
94
+ "additionalProperties": true,
95
+ "propertyNames": {
96
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
97
+ }
98
+ }
99
+ }
100
+ };
101
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
102
+ export const RESPONSE_PAYLOAD_SCHEMA = {
103
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
104
+ "$ref": "#/$defs/Response",
105
+ "$defs": {
106
+ "Response": {
107
+ "$anchor": "response",
108
+ "title": "VTC Members Credentials — response payload",
109
+ "description": "The documents the community holds for this member. Every credential member is optional; absent means the community holds no such document, which is a real answer rather than a failure.",
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "required": [
113
+ "did",
114
+ "memberVmcBound"
115
+ ],
116
+ "properties": {
117
+ "did": {
118
+ "$ref": "#/$defs/Did",
119
+ "description": "The member these documents belong to."
120
+ },
121
+ "membershipCredential": {
122
+ "type": "object",
123
+ "minProperties": 1,
124
+ "description": "The community-issued Verifiable Membership Credential — the grant. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2."
125
+ },
126
+ "roleCredential": {
127
+ "type": "object",
128
+ "minProperties": 1,
129
+ "description": "The role Verifiable Endorsement Credential. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2."
130
+ },
131
+ "memberVmc": {
132
+ "type": "object",
133
+ "minProperties": 1,
134
+ "description": "The member-issued reciprocal VMC — the acknowledgement that completes the edge. A verifiable credential, carried verbatim and opaque to this schema. Maintainers must not re-serialise it — the bytes carry a proof over themselves. Matches the `vrcJsonld` idiom in vtc/relationships/list/0.2."
135
+ },
136
+ "memberVmcReceivedAt": {
137
+ "type": "string",
138
+ "format": "date-time",
139
+ "description": "When the acknowledgement arrived. Paired with `memberVmc`; a maintainer must not send one without the other."
140
+ },
141
+ "memberVmcBound": {
142
+ "type": "boolean",
143
+ "description": "Whether the acknowledgement's digest was verified against the grant. REQUIRED so that 'not verified' is stated rather than inferred from silence. Declares no `default` on purpose — a declared default is materialised by the generated bindings and breaks round-trip idempotence for every existing document."
144
+ },
145
+ "ext": {
146
+ "$ref": "#/$defs/Ext",
147
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
148
+ }
149
+ }
150
+ },
151
+ "Did": {
152
+ "type": "string",
153
+ "pattern": "^did:[a-z0-9]+:.+$",
154
+ "maxLength": 2048
155
+ },
156
+ "Ext": {
157
+ "title": "Ext",
158
+ "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.",
159
+ "type": "object",
160
+ "minProperties": 1,
161
+ "additionalProperties": true,
162
+ "propertyNames": {
163
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
164
+ }
165
+ }
166
+ }
167
+ };
168
+ /**
169
+ * SPEC.md §7.2 policy for the request variant, from this specification's
170
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
171
+ * per-specification and cannot be derived from the document alone, and
172
+ * item 2 needs the schema this carries.
173
+ */
174
+ export const SPEC = {
175
+ typeUri: TYPE_URI,
176
+ isBearer: false,
177
+ isProofRequired: true,
178
+ isRecipientRequired: true,
179
+ isIssuedAtRequired: true,
180
+ payloadSchema: PAYLOAD_SCHEMA,
181
+ };
182
+ /**
183
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
184
+ * tracks the *issuer* party's requirement because a response swaps the
185
+ * parties (§7.3 item 5).
186
+ */
187
+ export const RESPONSE_SPEC = {
188
+ typeUri: RESPONSE_TYPE_URI,
189
+ isBearer: false,
190
+ isProofRequired: true,
191
+ isRecipientRequired: true,
192
+ isIssuedAtRequired: true,
193
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
194
+ };
195
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/members/credentials/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuDH,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,2BAA2B;IACpC,aAAa,EAAE,+EAA+E;IAC9F,MAAM,EAAE,QA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QACD,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,oBAAoB;YAC/B,WAAW,EAAE,IAAI;SAClB;QACD,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.16.4",
3
+ "version": "0.16.5",
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
@@ -292,6 +292,7 @@ export * as VtaContextsUpdateDid_v1_0 from "./vta/contexts/update-did/1.0/payloa
292
292
  export * as VtaContextsUpdate_v1_0 from "./vta/contexts/update/1.0/payload.js";
293
293
  export * as VtaCredentialsIssue_v0_1 from "./vta/credentials/issue/0.1/payload.js";
294
294
  export * as VtaCredentialsIssue_v0_2 from "./vta/credentials/issue/0.2/payload.js";
295
+ export * as VtaCredentialsList_v0_1 from "./vta/credentials/list/0.1/payload.js";
295
296
  export * as VtaCredentialsRevoke_v0_1 from "./vta/credentials/revoke/0.1/payload.js";
296
297
  export * as VtaDidTemplatesCreate_v1_0 from "./vta/did-templates/create/1.0/payload.js";
297
298
  export * as VtaDidTemplatesCreate_v2_0 from "./vta/did-templates/create/2.0/payload.js";
@@ -391,6 +392,7 @@ export * as VtcJoinRequestsSubmitReceipt_v0_1 from "./vtc/join-requests/submit-r
391
392
  export * as VtcJoinRequestsSubmit_v0_1 from "./vtc/join-requests/submit/0.1/payload.js";
392
393
  export * as VtcJoinRequestsSubmit_v0_2 from "./vtc/join-requests/submit/0.2/payload.js";
393
394
  export * as VtcMembersAdminRemove_v0_1 from "./vtc/members/admin-remove/0.1/payload.js";
395
+ export * as VtcMembersCredentials_v0_1 from "./vtc/members/credentials/0.1/payload.js";
394
396
  export * as VtcMembersList_v0_1 from "./vtc/members/list/0.1/payload.js";
395
397
  export * as VtcMembersPersonhoodAssert_v0_1 from "./vtc/members/personhood/assert/0.1/payload.js";
396
398
  export * as VtcMembersPersonhoodChallenge_v0_1 from "./vtc/members/personhood/challenge/0.1/payload.js";