@openvtc/trust-tasks 0.19.2 → 0.19.4
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 +215 -0
- package/dist/_shared/components.d.ts +298 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/keys/export-secret/0.1/payload.d.ts +309 -0
- package/dist/keys/export-secret/0.1/payload.d.ts.map +1 -0
- package/dist/keys/export-secret/0.1/payload.js +181 -0
- package/dist/keys/export-secret/0.1/payload.js.map +1 -0
- package/dist/vetting/_shared/0.1/identity-vetting.d.ts +11 -0
- package/dist/vetting/_shared/0.1/identity-vetting.d.ts.map +1 -0
- package/dist/vetting/_shared/0.1/identity-vetting.js +6 -0
- package/dist/vetting/_shared/0.1/identity-vetting.js.map +1 -0
- package/dist/vetting/_shared/0.1/vetting-card.d.ts +16 -0
- package/dist/vetting/_shared/0.1/vetting-card.d.ts.map +1 -0
- package/dist/vetting/_shared/0.1/vetting-card.js +6 -0
- package/dist/vetting/_shared/0.1/vetting-card.js.map +1 -0
- package/dist/vetting/_shared/0.1/vetting.d.ts +16 -0
- package/dist/vetting/_shared/0.1/vetting.d.ts.map +1 -0
- package/dist/vetting/_shared/0.1/vetting.js +6 -0
- package/dist/vetting/_shared/0.1/vetting.js.map +1 -0
- package/dist/vetting/decline/0.1/payload.d.ts +138 -0
- package/dist/vetting/decline/0.1/payload.d.ts.map +1 -0
- package/dist/vetting/decline/0.1/payload.js +81 -0
- package/dist/vetting/decline/0.1/payload.js.map +1 -0
- package/dist/vetting/request/0.1/payload.d.ts +1188 -0
- package/dist/vetting/request/0.1/payload.d.ts.map +1 -0
- package/dist/vetting/request/0.1/payload.js +596 -0
- package/dist/vetting/request/0.1/payload.js.map +1 -0
- package/dist/vetting/session/0.1/payload.d.ts +978 -0
- package/dist/vetting/session/0.1/payload.d.ts.map +1 -0
- package/dist/vetting/session/0.1/payload.js +570 -0
- package/dist/vetting/session/0.1/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/vetter-profile.d.ts +16 -0
- package/dist/vtc/_shared/0.1/vetter-profile.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/vetter-profile.js +6 -0
- package/dist/vtc/_shared/0.1/vetter-profile.js.map +1 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.d.ts +1294 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.js +667 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.js.map +1 -0
- package/dist/vtc/vetting/revoke-statement/0.1/payload.d.ts +299 -0
- package/dist/vtc/vetting/revoke-statement/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/revoke-statement/0.1/payload.js +172 -0
- package/dist/vtc/vetting/revoke-statement/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/grant/0.1/payload.d.ts +337 -0
- package/dist/vtc/vetting/vetters/grant/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/grant/0.1/payload.js +183 -0
- package/dist/vtc/vetting/vetters/grant/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/list/0.1/payload.d.ts +1257 -0
- package/dist/vtc/vetting/vetters/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/list/0.1/payload.js +597 -0
- package/dist/vtc/vetting/vetters/list/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +970 -0
- package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/profile/0.1/payload.js +463 -0
- package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +240 -0
- package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/resend/0.1/payload.js +137 -0
- package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +318 -0
- package/src/index.ts +14 -0
- package/src/keys/export-secret/0.1/payload.ts +227 -0
- package/src/vetting/_shared/0.1/identity-vetting.ts +11 -0
- package/src/vetting/_shared/0.1/vetting-card.ts +17 -0
- package/src/vetting/_shared/0.1/vetting.ts +17 -0
- package/src/vetting/decline/0.1/payload.ts +111 -0
- package/src/vetting/request/0.1/payload.ts +799 -0
- package/src/vetting/session/0.1/payload.ts +629 -0
- package/src/vtc/_shared/0.1/vetter-profile.ts +17 -0
- package/src/vtc/join-requests/manifest/0.2/payload.ts +815 -0
- package/src/vtc/vetting/revoke-statement/0.1/payload.ts +218 -0
- package/src/vtc/vetting/vetters/grant/0.1/payload.ts +237 -0
- package/src/vtc/vetting/vetters/list/0.1/payload.ts +816 -0
- package/src/vtc/vetting/vetters/profile/0.1/payload.ts +647 -0
- package/src/vtc/vetting/vetters/resend/0.1/payload.ts +174 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/vetting/vetters/resend/0.1/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. The request names nothing: it always concerns the sender's own grant. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCVettingVettersResendPayload {
|
|
10
|
+
ext?: Ext;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The credential the community delivered again.
|
|
14
|
+
*/
|
|
15
|
+
export interface VTCVettingVettersResendResponsePayload {
|
|
16
|
+
/**
|
|
17
|
+
* The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.
|
|
18
|
+
*/
|
|
19
|
+
credentialId: string;
|
|
20
|
+
/**
|
|
21
|
+
* That credential's `validUntil`.
|
|
22
|
+
*/
|
|
23
|
+
validUntil: string;
|
|
24
|
+
}
|
|
25
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
26
|
+
export type { Ext };
|
|
27
|
+
/** Trust Task type URI. */
|
|
28
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.1";
|
|
29
|
+
/** Stable alias for this specification's request payload shape. */
|
|
30
|
+
export type Payload = VTCVettingVettersResendPayload;
|
|
31
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
32
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.1#response";
|
|
33
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
34
|
+
export type Response = VTCVettingVettersResendResponsePayload;
|
|
35
|
+
/**
|
|
36
|
+
* This specification's payload schema, as a value.
|
|
37
|
+
*
|
|
38
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
39
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
40
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
41
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
42
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
43
|
+
*/
|
|
44
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
45
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
46
|
+
readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.1";
|
|
47
|
+
readonly title: "VTC Vetting — Vetters Resend — payload";
|
|
48
|
+
readonly description: "A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue. The request names nothing: it always concerns the sender's own grant. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.";
|
|
49
|
+
readonly type: "object";
|
|
50
|
+
readonly additionalProperties: false;
|
|
51
|
+
readonly properties: {
|
|
52
|
+
readonly ext: {
|
|
53
|
+
readonly $ref: "#/$defs/Ext";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly $defs: {
|
|
57
|
+
readonly Response: {
|
|
58
|
+
readonly $anchor: "response";
|
|
59
|
+
readonly title: "VTC Vetting — Vetters Resend — response payload";
|
|
60
|
+
readonly description: "The credential the community delivered again.";
|
|
61
|
+
readonly type: "object";
|
|
62
|
+
readonly additionalProperties: false;
|
|
63
|
+
readonly required: readonly ["credentialId", "validUntil"];
|
|
64
|
+
readonly properties: {
|
|
65
|
+
readonly credentialId: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly minLength: 1;
|
|
68
|
+
readonly maxLength: 512;
|
|
69
|
+
readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
|
|
70
|
+
readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
|
|
71
|
+
};
|
|
72
|
+
readonly validUntil: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
readonly format: "date-time";
|
|
75
|
+
readonly description: "That credential's `validUntil`.";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly Ext: {
|
|
80
|
+
readonly title: "Ext";
|
|
81
|
+
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.";
|
|
82
|
+
readonly type: "object";
|
|
83
|
+
readonly minProperties: 1;
|
|
84
|
+
readonly additionalProperties: true;
|
|
85
|
+
readonly propertyNames: {
|
|
86
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
92
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
93
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
94
|
+
readonly $ref: "#/$defs/Response";
|
|
95
|
+
readonly $defs: {
|
|
96
|
+
readonly Response: {
|
|
97
|
+
readonly $anchor: "response";
|
|
98
|
+
readonly title: "VTC Vetting — Vetters Resend — response payload";
|
|
99
|
+
readonly description: "The credential the community delivered again.";
|
|
100
|
+
readonly type: "object";
|
|
101
|
+
readonly additionalProperties: false;
|
|
102
|
+
readonly required: readonly ["credentialId", "validUntil"];
|
|
103
|
+
readonly properties: {
|
|
104
|
+
readonly credentialId: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly minLength: 1;
|
|
107
|
+
readonly maxLength: 512;
|
|
108
|
+
readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
|
|
109
|
+
readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
|
|
110
|
+
};
|
|
111
|
+
readonly validUntil: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
readonly format: "date-time";
|
|
114
|
+
readonly description: "That credential's `validUntil`.";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly Ext: {
|
|
119
|
+
readonly title: "Ext";
|
|
120
|
+
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.";
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly minProperties: 1;
|
|
123
|
+
readonly additionalProperties: true;
|
|
124
|
+
readonly propertyNames: {
|
|
125
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
132
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
133
|
+
* per-specification and cannot be derived from the document alone, and
|
|
134
|
+
* item 2 needs the schema this carries.
|
|
135
|
+
*/
|
|
136
|
+
export declare const SPEC: {
|
|
137
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.1";
|
|
138
|
+
readonly isBearer: false;
|
|
139
|
+
readonly isProofRequired: false;
|
|
140
|
+
readonly isRecipientRequired: true;
|
|
141
|
+
readonly isIssuedAtRequired: false;
|
|
142
|
+
readonly payloadSchema: {
|
|
143
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
144
|
+
readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.1";
|
|
145
|
+
readonly title: "VTC Vetting — Vetters Resend — payload";
|
|
146
|
+
readonly description: "A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue. The request names nothing: it always concerns the sender's own grant. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.";
|
|
147
|
+
readonly type: "object";
|
|
148
|
+
readonly additionalProperties: false;
|
|
149
|
+
readonly properties: {
|
|
150
|
+
readonly ext: {
|
|
151
|
+
readonly $ref: "#/$defs/Ext";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
readonly $defs: {
|
|
155
|
+
readonly Response: {
|
|
156
|
+
readonly $anchor: "response";
|
|
157
|
+
readonly title: "VTC Vetting — Vetters Resend — response payload";
|
|
158
|
+
readonly description: "The credential the community delivered again.";
|
|
159
|
+
readonly type: "object";
|
|
160
|
+
readonly additionalProperties: false;
|
|
161
|
+
readonly required: readonly ["credentialId", "validUntil"];
|
|
162
|
+
readonly properties: {
|
|
163
|
+
readonly credentialId: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly minLength: 1;
|
|
166
|
+
readonly maxLength: 512;
|
|
167
|
+
readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
|
|
168
|
+
readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
|
|
169
|
+
};
|
|
170
|
+
readonly validUntil: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
readonly format: "date-time";
|
|
173
|
+
readonly description: "That credential's `validUntil`.";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
readonly Ext: {
|
|
178
|
+
readonly title: "Ext";
|
|
179
|
+
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.";
|
|
180
|
+
readonly type: "object";
|
|
181
|
+
readonly minProperties: 1;
|
|
182
|
+
readonly additionalProperties: true;
|
|
183
|
+
readonly propertyNames: {
|
|
184
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
192
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
193
|
+
* parties (§7.3 item 5).
|
|
194
|
+
*/
|
|
195
|
+
export declare const RESPONSE_SPEC: {
|
|
196
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.1#response";
|
|
197
|
+
readonly isBearer: false;
|
|
198
|
+
readonly isProofRequired: false;
|
|
199
|
+
readonly isRecipientRequired: true;
|
|
200
|
+
readonly isIssuedAtRequired: false;
|
|
201
|
+
readonly payloadSchema: {
|
|
202
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
203
|
+
readonly $ref: "#/$defs/Response";
|
|
204
|
+
readonly $defs: {
|
|
205
|
+
readonly Response: {
|
|
206
|
+
readonly $anchor: "response";
|
|
207
|
+
readonly title: "VTC Vetting — Vetters Resend — response payload";
|
|
208
|
+
readonly description: "The credential the community delivered again.";
|
|
209
|
+
readonly type: "object";
|
|
210
|
+
readonly additionalProperties: false;
|
|
211
|
+
readonly required: readonly ["credentialId", "validUntil"];
|
|
212
|
+
readonly properties: {
|
|
213
|
+
readonly credentialId: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly minLength: 1;
|
|
216
|
+
readonly maxLength: 512;
|
|
217
|
+
readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
|
|
218
|
+
readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
|
|
219
|
+
};
|
|
220
|
+
readonly validUntil: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
readonly format: "date-time";
|
|
223
|
+
readonly description: "That credential's `validUntil`.";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
readonly Ext: {
|
|
228
|
+
readonly title: "Ext";
|
|
229
|
+
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.";
|
|
230
|
+
readonly type: "object";
|
|
231
|
+
readonly minProperties: 1;
|
|
232
|
+
readonly additionalProperties: true;
|
|
233
|
+
readonly propertyNames: {
|
|
234
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/vetting/vetters/resend/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDjB,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,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/vetting/vetters/resend/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.1";
|
|
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.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/vetting/vetters/resend/0.1",
|
|
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. The request names nothing: it always concerns the sender's own grant. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"ext": {
|
|
27
|
+
"$ref": "#/$defs/Ext"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"$defs": {
|
|
31
|
+
"Response": {
|
|
32
|
+
"$anchor": "response",
|
|
33
|
+
"title": "VTC Vetting — Vetters Resend — response payload",
|
|
34
|
+
"description": "The credential the community delivered again.",
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": [
|
|
38
|
+
"credentialId",
|
|
39
|
+
"validUntil"
|
|
40
|
+
],
|
|
41
|
+
"properties": {
|
|
42
|
+
"credentialId": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1,
|
|
45
|
+
"maxLength": 512,
|
|
46
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$",
|
|
47
|
+
"description": "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned."
|
|
48
|
+
},
|
|
49
|
+
"validUntil": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": "date-time",
|
|
52
|
+
"description": "That credential's `validUntil`."
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"Ext": {
|
|
57
|
+
"title": "Ext",
|
|
58
|
+
"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.",
|
|
59
|
+
"type": "object",
|
|
60
|
+
"minProperties": 1,
|
|
61
|
+
"additionalProperties": true,
|
|
62
|
+
"propertyNames": {
|
|
63
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
69
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
70
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
71
|
+
"$ref": "#/$defs/Response",
|
|
72
|
+
"$defs": {
|
|
73
|
+
"Response": {
|
|
74
|
+
"$anchor": "response",
|
|
75
|
+
"title": "VTC Vetting — Vetters Resend — response payload",
|
|
76
|
+
"description": "The credential the community delivered again.",
|
|
77
|
+
"type": "object",
|
|
78
|
+
"additionalProperties": false,
|
|
79
|
+
"required": [
|
|
80
|
+
"credentialId",
|
|
81
|
+
"validUntil"
|
|
82
|
+
],
|
|
83
|
+
"properties": {
|
|
84
|
+
"credentialId": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"maxLength": 512,
|
|
88
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$",
|
|
89
|
+
"description": "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned."
|
|
90
|
+
},
|
|
91
|
+
"validUntil": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"format": "date-time",
|
|
94
|
+
"description": "That credential's `validUntil`."
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"Ext": {
|
|
99
|
+
"title": "Ext",
|
|
100
|
+
"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.",
|
|
101
|
+
"type": "object",
|
|
102
|
+
"minProperties": 1,
|
|
103
|
+
"additionalProperties": true,
|
|
104
|
+
"propertyNames": {
|
|
105
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
112
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
113
|
+
* per-specification and cannot be derived from the document alone, and
|
|
114
|
+
* item 2 needs the schema this carries.
|
|
115
|
+
*/
|
|
116
|
+
export const SPEC = {
|
|
117
|
+
typeUri: TYPE_URI,
|
|
118
|
+
isBearer: false,
|
|
119
|
+
isProofRequired: false,
|
|
120
|
+
isRecipientRequired: true,
|
|
121
|
+
isIssuedAtRequired: false,
|
|
122
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
126
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
127
|
+
* parties (§7.3 item 5).
|
|
128
|
+
*/
|
|
129
|
+
export const RESPONSE_SPEC = {
|
|
130
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
131
|
+
isBearer: false,
|
|
132
|
+
isProofRequired: false,
|
|
133
|
+
isRecipientRequired: true,
|
|
134
|
+
isIssuedAtRequired: false,
|
|
135
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../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