@openvtc/trust-tasks 0.19.14 → 0.19.16
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 +4 -0
- package/dist/_shared/components.d.ts +331 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/_shared/0.1/mediator-ops.d.ts +16 -0
- package/dist/messaging/_shared/0.1/mediator-ops.d.ts.map +1 -0
- package/dist/messaging/_shared/0.1/mediator-ops.js +6 -0
- package/dist/messaging/_shared/0.1/mediator-ops.js.map +1 -0
- package/dist/messaging/message/delete/0.1/payload.d.ts +370 -0
- package/dist/messaging/message/delete/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/delete/0.1/payload.js +206 -0
- package/dist/messaging/message/delete/0.1/payload.js.map +1 -0
- package/dist/messaging/message/get/0.1/payload.d.ts +568 -0
- package/dist/messaging/message/get/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/get/0.1/payload.js +332 -0
- package/dist/messaging/message/get/0.1/payload.js.map +1 -0
- package/dist/messaging/message/list/0.1/payload.d.ts +627 -0
- package/dist/messaging/message/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/list/0.1/payload.js +352 -0
- package/dist/messaging/message/list/0.1/payload.js.map +1 -0
- package/dist/messaging/monitor/event/0.1/payload.d.ts +385 -0
- package/dist/messaging/monitor/event/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/monitor/event/0.1/payload.js +230 -0
- package/dist/messaging/monitor/event/0.1/payload.js.map +1 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.d.ts +719 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.js +417 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.js.map +1 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.d.ts +245 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.js +136 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.js.map +1 -0
- package/dist/messaging/queue/list/0.1/payload.d.ts +679 -0
- package/dist/messaging/queue/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/queue/list/0.1/payload.js +377 -0
- package/dist/messaging/queue/list/0.1/payload.js.map +1 -0
- package/dist/messaging/queue/purge/0.1/payload.d.ts +389 -0
- package/dist/messaging/queue/purge/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/queue/purge/0.1/payload.js +210 -0
- package/dist/messaging/queue/purge/0.1/payload.js.map +1 -0
- package/dist/messaging/queue/status/0.1/payload.d.ts +697 -0
- package/dist/messaging/queue/status/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/queue/status/0.1/payload.js +389 -0
- package/dist/messaging/queue/status/0.1/payload.js.map +1 -0
- package/dist/messaging/stats/show/0.1/payload.d.ts +963 -0
- package/dist/messaging/stats/show/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/stats/show/0.1/payload.js +515 -0
- package/dist/messaging/stats/show/0.1/payload.js.map +1 -0
- package/dist/vtc/join-requests/list/0.1/payload.d.ts +88 -0
- package/dist/vtc/join-requests/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/list/0.1/payload.js +50 -0
- package/dist/vtc/join-requests/list/0.1/payload.js.map +1 -1
- package/dist/vtc/join-requests/manifest/0.2/payload.d.ts +135 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/manifest/0.2/payload.js +62 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.js.map +1 -1
- package/dist/vtc/join-requests/show/0.1/payload.d.ts +88 -0
- package/dist/vtc/join-requests/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/show/0.1/payload.js +50 -0
- package/dist/vtc/join-requests/show/0.1/payload.js.map +1 -1
- package/dist/vtc/join-requests/submit/0.2/payload.d.ts +61 -0
- package/dist/vtc/join-requests/submit/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/submit/0.2/payload.js +25 -0
- package/dist/vtc/join-requests/submit/0.2/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +359 -0
- package/src/index.ts +11 -0
- package/src/messaging/_shared/0.1/mediator-ops.ts +17 -0
- package/src/messaging/message/delete/0.1/payload.ts +259 -0
- package/src/messaging/message/get/0.1/payload.ts +375 -0
- package/src/messaging/message/list/0.1/payload.ts +410 -0
- package/src/messaging/monitor/event/0.1/payload.ts +267 -0
- package/src/messaging/monitor/subscribe/0.1/payload.ts +473 -0
- package/src/messaging/monitor/unsubscribe/0.1/payload.ts +172 -0
- package/src/messaging/queue/list/0.1/payload.ts +443 -0
- package/src/messaging/queue/purge/0.1/payload.ts +270 -0
- package/src/messaging/queue/status/0.1/payload.ts +439 -0
- package/src/messaging/stats/show/0.1/payload.ts +611 -0
- package/src/vtc/join-requests/list/0.1/payload.ts +50 -0
- package/src/vtc/join-requests/manifest/0.2/payload.ts +81 -0
- package/src/vtc/join-requests/show/0.1/payload.ts +50 -0
- package/src/vtc/join-requests/submit/0.2/payload.ts +42 -0
|
@@ -20,6 +20,25 @@ export interface VTCJoinRequestsManifestPayload {
|
|
|
20
20
|
export interface VTCJoinRequestsManifestResponsePayload {
|
|
21
21
|
communityDid: string;
|
|
22
22
|
criteria: Criterion[];
|
|
23
|
+
/**
|
|
24
|
+
* What the community asks an applicant to tell it about themselves, as claim types — never values. Answered in persona terms: the applicant's agent discloses those attributes from the face the applicant chooses, and they arrive on vtc/join-requests/submit as `attributes`. SELF-ASSERTED: a community MUST NOT describe an answer as verified, and MUST NOT make a decision that assumes it is. Outside every criterion, so no `requirementsDigest` covers it. Absent when the community asks nothing.
|
|
25
|
+
*
|
|
26
|
+
* @maxItems 32
|
|
27
|
+
*/
|
|
28
|
+
requestedAttributes?: {
|
|
29
|
+
/**
|
|
30
|
+
* A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.
|
|
31
|
+
*/
|
|
32
|
+
type: string;
|
|
33
|
+
/**
|
|
34
|
+
* False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing.
|
|
35
|
+
*/
|
|
36
|
+
required?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Why the community asks, in words shown to the applicant before they disclose.
|
|
39
|
+
*/
|
|
40
|
+
purpose?: string;
|
|
41
|
+
}[];
|
|
23
42
|
branding?: CommunityBranding;
|
|
24
43
|
ext?: Ext;
|
|
25
44
|
}
|
|
@@ -408,6 +427,37 @@ export const PAYLOAD_SCHEMA = {
|
|
|
408
427
|
"$ref": "#/$defs/Criterion"
|
|
409
428
|
}
|
|
410
429
|
},
|
|
430
|
+
"requestedAttributes": {
|
|
431
|
+
"type": "array",
|
|
432
|
+
"maxItems": 32,
|
|
433
|
+
"description": "What the community asks an applicant to tell it about themselves, as claim types — never values. Answered in persona terms: the applicant's agent discloses those attributes from the face the applicant chooses, and they arrive on vtc/join-requests/submit as `attributes`. SELF-ASSERTED: a community MUST NOT describe an answer as verified, and MUST NOT make a decision that assumes it is. Outside every criterion, so no `requirementsDigest` covers it. Absent when the community asks nothing.",
|
|
434
|
+
"items": {
|
|
435
|
+
"type": "object",
|
|
436
|
+
"additionalProperties": false,
|
|
437
|
+
"required": [
|
|
438
|
+
"type"
|
|
439
|
+
],
|
|
440
|
+
"properties": {
|
|
441
|
+
"type": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"minLength": 1,
|
|
444
|
+
"maxLength": 128,
|
|
445
|
+
"pattern": "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$",
|
|
446
|
+
"description": "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token."
|
|
447
|
+
},
|
|
448
|
+
"required": {
|
|
449
|
+
"type": "boolean",
|
|
450
|
+
"default": true,
|
|
451
|
+
"description": "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing."
|
|
452
|
+
},
|
|
453
|
+
"purpose": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"maxLength": 256,
|
|
456
|
+
"description": "Why the community asks, in words shown to the applicant before they disclose."
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
},
|
|
411
461
|
"branding": {
|
|
412
462
|
"$ref": "#/$defs/CommunityBranding"
|
|
413
463
|
},
|
|
@@ -716,6 +766,37 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
716
766
|
"$ref": "#/$defs/Criterion"
|
|
717
767
|
}
|
|
718
768
|
},
|
|
769
|
+
"requestedAttributes": {
|
|
770
|
+
"type": "array",
|
|
771
|
+
"maxItems": 32,
|
|
772
|
+
"description": "What the community asks an applicant to tell it about themselves, as claim types — never values. Answered in persona terms: the applicant's agent discloses those attributes from the face the applicant chooses, and they arrive on vtc/join-requests/submit as `attributes`. SELF-ASSERTED: a community MUST NOT describe an answer as verified, and MUST NOT make a decision that assumes it is. Outside every criterion, so no `requirementsDigest` covers it. Absent when the community asks nothing.",
|
|
773
|
+
"items": {
|
|
774
|
+
"type": "object",
|
|
775
|
+
"additionalProperties": false,
|
|
776
|
+
"required": [
|
|
777
|
+
"type"
|
|
778
|
+
],
|
|
779
|
+
"properties": {
|
|
780
|
+
"type": {
|
|
781
|
+
"type": "string",
|
|
782
|
+
"minLength": 1,
|
|
783
|
+
"maxLength": 128,
|
|
784
|
+
"pattern": "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$",
|
|
785
|
+
"description": "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token."
|
|
786
|
+
},
|
|
787
|
+
"required": {
|
|
788
|
+
"type": "boolean",
|
|
789
|
+
"default": true,
|
|
790
|
+
"description": "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing."
|
|
791
|
+
},
|
|
792
|
+
"purpose": {
|
|
793
|
+
"type": "string",
|
|
794
|
+
"maxLength": 256,
|
|
795
|
+
"description": "Why the community asks, in words shown to the applicant before they disclose."
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
},
|
|
719
800
|
"branding": {
|
|
720
801
|
"$ref": "#/$defs/CommunityBranding"
|
|
721
802
|
},
|
|
@@ -180,6 +180,31 @@ export const PAYLOAD_SCHEMA = {
|
|
|
180
180
|
"extensions": {
|
|
181
181
|
"type": "object",
|
|
182
182
|
"description": "Opaque community-defined extension bag."
|
|
183
|
+
},
|
|
184
|
+
"attributes": {
|
|
185
|
+
"type": "array",
|
|
186
|
+
"maxItems": 32,
|
|
187
|
+
"description": "What the applicant told the community about themselves in answer to the manifest's `requestedAttributes` — self-asserted, and to be shown as such to whoever reviews the request. Absent when none were asked for or given.",
|
|
188
|
+
"items": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"additionalProperties": false,
|
|
191
|
+
"required": [
|
|
192
|
+
"type",
|
|
193
|
+
"value"
|
|
194
|
+
],
|
|
195
|
+
"properties": {
|
|
196
|
+
"type": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"minLength": 1,
|
|
199
|
+
"maxLength": 128,
|
|
200
|
+
"pattern": "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$",
|
|
201
|
+
"description": "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token."
|
|
202
|
+
},
|
|
203
|
+
"value": {
|
|
204
|
+
"description": "The value the applicant gives. Self-asserted: the applicant's own statement, bound to them by the document proof, and attested by nobody."
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
183
208
|
}
|
|
184
209
|
}
|
|
185
210
|
}
|
|
@@ -309,6 +334,31 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
309
334
|
"extensions": {
|
|
310
335
|
"type": "object",
|
|
311
336
|
"description": "Opaque community-defined extension bag."
|
|
337
|
+
},
|
|
338
|
+
"attributes": {
|
|
339
|
+
"type": "array",
|
|
340
|
+
"maxItems": 32,
|
|
341
|
+
"description": "What the applicant told the community about themselves in answer to the manifest's `requestedAttributes` — self-asserted, and to be shown as such to whoever reviews the request. Absent when none were asked for or given.",
|
|
342
|
+
"items": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"additionalProperties": false,
|
|
345
|
+
"required": [
|
|
346
|
+
"type",
|
|
347
|
+
"value"
|
|
348
|
+
],
|
|
349
|
+
"properties": {
|
|
350
|
+
"type": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"minLength": 1,
|
|
353
|
+
"maxLength": 128,
|
|
354
|
+
"pattern": "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$",
|
|
355
|
+
"description": "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token."
|
|
356
|
+
},
|
|
357
|
+
"value": {
|
|
358
|
+
"description": "The value the applicant gives. Self-asserted: the applicant's own statement, bound to them by the document proof, and attested by nobody."
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
312
362
|
}
|
|
313
363
|
}
|
|
314
364
|
}
|
|
@@ -19,6 +19,23 @@ export interface VTCJoinRequestsSubmitPayload {
|
|
|
19
19
|
* Opaque applicant-supplied extension bag.
|
|
20
20
|
*/
|
|
21
21
|
extensions?: {};
|
|
22
|
+
/**
|
|
23
|
+
* The applicant's answers to the manifest's `requestedAttributes`: one entry per attribute given. Self-asserted and bound to the applicant by the document proof. A maintainer MUST refuse the submission with `attributesMissing` when a required attribute is absent and with `attributesUnrequested` when an entry names a type the manifest does not request.
|
|
24
|
+
*
|
|
25
|
+
* @maxItems 32
|
|
26
|
+
*/
|
|
27
|
+
attributes?: {
|
|
28
|
+
/**
|
|
29
|
+
* A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.
|
|
30
|
+
*/
|
|
31
|
+
type: string;
|
|
32
|
+
/**
|
|
33
|
+
* The value the applicant gives. Self-asserted: the applicant's own statement, bound to them by the document proof, and attested by nobody.
|
|
34
|
+
*/
|
|
35
|
+
value: {
|
|
36
|
+
[k: string]: unknown | undefined;
|
|
37
|
+
};
|
|
38
|
+
}[];
|
|
22
39
|
ext?: Ext;
|
|
23
40
|
}
|
|
24
41
|
export interface VTCJoinRequestsSubmitResponsePayload {
|
|
@@ -81,6 +98,31 @@ export const PAYLOAD_SCHEMA = {
|
|
|
81
98
|
"type": "object",
|
|
82
99
|
"description": "Opaque applicant-supplied extension bag."
|
|
83
100
|
},
|
|
101
|
+
"attributes": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"maxItems": 32,
|
|
104
|
+
"description": "The applicant's answers to the manifest's `requestedAttributes`: one entry per attribute given. Self-asserted and bound to the applicant by the document proof. A maintainer MUST refuse the submission with `attributesMissing` when a required attribute is absent and with `attributesUnrequested` when an entry names a type the manifest does not request.",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"required": [
|
|
109
|
+
"type",
|
|
110
|
+
"value"
|
|
111
|
+
],
|
|
112
|
+
"properties": {
|
|
113
|
+
"type": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1,
|
|
116
|
+
"maxLength": 128,
|
|
117
|
+
"pattern": "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$",
|
|
118
|
+
"description": "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token."
|
|
119
|
+
},
|
|
120
|
+
"value": {
|
|
121
|
+
"description": "The value the applicant gives. Self-asserted: the applicant's own statement, bound to them by the document proof, and attested by nobody."
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
84
126
|
"ext": {
|
|
85
127
|
"$ref": "#/$defs/Ext"
|
|
86
128
|
}
|