@openvtc/trust-tasks 0.28.11 → 0.28.12
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 +48 -0
- package/dist/_shared/components.d.ts +38 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/collection/_shared/0.1/collection.d.ts +16 -0
- package/dist/vta/collection/_shared/0.1/collection.d.ts.map +1 -0
- package/dist/vta/collection/_shared/0.1/collection.js +6 -0
- package/dist/vta/collection/_shared/0.1/collection.js.map +1 -0
- package/dist/vta/collection/claim/0.1/payload.d.ts +352 -0
- package/dist/vta/collection/claim/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/claim/0.1/payload.js +198 -0
- package/dist/vta/collection/claim/0.1/payload.js.map +1 -0
- package/dist/vta/collection/list/0.1/payload.d.ts +740 -0
- package/dist/vta/collection/list/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/list/0.1/payload.js +447 -0
- package/dist/vta/collection/list/0.1/payload.js.map +1 -0
- package/dist/vta/collection/release/0.1/payload.d.ts +316 -0
- package/dist/vta/collection/release/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/release/0.1/payload.js +182 -0
- package/dist/vta/collection/release/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +38 -0
- package/src/index.ts +12 -0
- package/src/vta/collection/_shared/0.1/collection.ts +17 -0
- package/src/vta/collection/claim/0.1/payload.ts +247 -0
- package/src/vta/collection/list/0.1/payload.ts +500 -0
- package/src/vta/collection/release/0.1/payload.ts +223 -0
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/collection/release/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, Ext } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A client with standing in a trust context releases the collection claim for an identifier there. Released by its claimant, which has already stopped collecting, the claim ends at once and the VTA collects for the identifier again. Released by any other party, the claim becomes unrenewable and still ends at its end, because its claimant is still connected until then (VTI-NTF-083, VTI-NTF-084). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTACollectionReleasePayload {
|
|
10
|
+
contextId: ContextId;
|
|
11
|
+
/**
|
|
12
|
+
* The identifier whose claim to release.
|
|
13
|
+
*/
|
|
14
|
+
identifier: Did;
|
|
15
|
+
ext?: Ext;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.
|
|
19
|
+
*/
|
|
20
|
+
export interface VTACollectionReleaseResponsePayload {
|
|
21
|
+
identifier: Did;
|
|
22
|
+
/**
|
|
23
|
+
* When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's.
|
|
24
|
+
*/
|
|
25
|
+
endsAt?: string;
|
|
26
|
+
}
|
|
27
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
28
|
+
export type { ContextId, Did, Ext };
|
|
29
|
+
/** Trust Task type URI. */
|
|
30
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/collection/release/0.1";
|
|
31
|
+
/**
|
|
32
|
+
* The earlier version of this specification that this one declares it
|
|
33
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
34
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
35
|
+
* `extendsChain` / `readForSpec`.
|
|
36
|
+
*/
|
|
37
|
+
export declare const EXTENDS: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
40
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
41
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
42
|
+
* Versions").
|
|
43
|
+
*/
|
|
44
|
+
export declare const DEPRECATION: string | null;
|
|
45
|
+
/** Stable alias for this specification's request payload shape. */
|
|
46
|
+
export type Payload = VTACollectionReleasePayload;
|
|
47
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
48
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/collection/release/0.1#response";
|
|
49
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
50
|
+
export type Response = VTACollectionReleaseResponsePayload;
|
|
51
|
+
/**
|
|
52
|
+
* This specification's payload schema, as a value.
|
|
53
|
+
*
|
|
54
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
55
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
56
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
57
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
58
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
59
|
+
*/
|
|
60
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
61
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
62
|
+
readonly $id: "https://trusttasks.org/spec/vta/collection/release/0.1";
|
|
63
|
+
readonly title: "VTA Collection — Release — payload";
|
|
64
|
+
readonly description: "A client with standing in a trust context releases the collection claim for an identifier there. Released by its claimant, which has already stopped collecting, the claim ends at once and the VTA collects for the identifier again. Released by any other party, the claim becomes unrenewable and still ends at its end, because its claimant is still connected until then (VTI-NTF-083, VTI-NTF-084). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
65
|
+
readonly type: "object";
|
|
66
|
+
readonly additionalProperties: false;
|
|
67
|
+
readonly required: readonly ["contextId", "identifier"];
|
|
68
|
+
readonly properties: {
|
|
69
|
+
readonly contextId: {
|
|
70
|
+
readonly $ref: "#/$defs/ContextId";
|
|
71
|
+
};
|
|
72
|
+
readonly identifier: {
|
|
73
|
+
readonly $ref: "#/$defs/Did";
|
|
74
|
+
readonly description: "The identifier whose claim to release.";
|
|
75
|
+
};
|
|
76
|
+
readonly ext: {
|
|
77
|
+
readonly $ref: "#/$defs/Ext";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly $defs: {
|
|
81
|
+
readonly Response: {
|
|
82
|
+
readonly $anchor: "response";
|
|
83
|
+
readonly title: "VTA Collection — Release — response payload";
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly additionalProperties: false;
|
|
86
|
+
readonly required: readonly ["identifier"];
|
|
87
|
+
readonly description: "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.";
|
|
88
|
+
readonly properties: {
|
|
89
|
+
readonly identifier: {
|
|
90
|
+
readonly $ref: "#/$defs/Did";
|
|
91
|
+
};
|
|
92
|
+
readonly endsAt: {
|
|
93
|
+
readonly type: "string";
|
|
94
|
+
readonly format: "date-time";
|
|
95
|
+
readonly description: "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's.";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly Did: {
|
|
100
|
+
readonly title: "Did";
|
|
101
|
+
readonly description: "A DID.";
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
readonly minLength: 8;
|
|
104
|
+
readonly maxLength: 2048;
|
|
105
|
+
readonly pattern: "^did:[a-z0-9]+:\\S+$";
|
|
106
|
+
};
|
|
107
|
+
readonly Ext: {
|
|
108
|
+
readonly title: "Ext";
|
|
109
|
+
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.";
|
|
110
|
+
readonly type: "object";
|
|
111
|
+
readonly minProperties: 1;
|
|
112
|
+
readonly additionalProperties: true;
|
|
113
|
+
readonly propertyNames: {
|
|
114
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly ContextId: {
|
|
118
|
+
readonly title: "ContextId";
|
|
119
|
+
readonly description: "The trust context the identifier belongs to.";
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
readonly minLength: 1;
|
|
122
|
+
readonly maxLength: 256;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
127
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
128
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
129
|
+
readonly $ref: "#/$defs/Response";
|
|
130
|
+
readonly $defs: {
|
|
131
|
+
readonly Response: {
|
|
132
|
+
readonly $anchor: "response";
|
|
133
|
+
readonly title: "VTA Collection — Release — response payload";
|
|
134
|
+
readonly type: "object";
|
|
135
|
+
readonly additionalProperties: false;
|
|
136
|
+
readonly required: readonly ["identifier"];
|
|
137
|
+
readonly description: "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.";
|
|
138
|
+
readonly properties: {
|
|
139
|
+
readonly identifier: {
|
|
140
|
+
readonly $ref: "#/$defs/Did";
|
|
141
|
+
};
|
|
142
|
+
readonly endsAt: {
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly format: "date-time";
|
|
145
|
+
readonly description: "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's.";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly Did: {
|
|
150
|
+
readonly title: "Did";
|
|
151
|
+
readonly description: "A DID.";
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
readonly minLength: 8;
|
|
154
|
+
readonly maxLength: 2048;
|
|
155
|
+
readonly pattern: "^did:[a-z0-9]+:\\S+$";
|
|
156
|
+
};
|
|
157
|
+
readonly Ext: {
|
|
158
|
+
readonly title: "Ext";
|
|
159
|
+
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.";
|
|
160
|
+
readonly type: "object";
|
|
161
|
+
readonly minProperties: 1;
|
|
162
|
+
readonly additionalProperties: true;
|
|
163
|
+
readonly propertyNames: {
|
|
164
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly ContextId: {
|
|
168
|
+
readonly title: "ContextId";
|
|
169
|
+
readonly description: "The trust context the identifier belongs to.";
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly minLength: 1;
|
|
172
|
+
readonly maxLength: 256;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
178
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
179
|
+
* per-specification and cannot be derived from the document alone, and
|
|
180
|
+
* item 2 needs the schema this carries.
|
|
181
|
+
*/
|
|
182
|
+
export declare const SPEC: {
|
|
183
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/collection/release/0.1";
|
|
184
|
+
readonly isBearer: false;
|
|
185
|
+
readonly isProofRequired: false;
|
|
186
|
+
readonly isRecipientRequired: true;
|
|
187
|
+
readonly isIssuedAtRequired: true;
|
|
188
|
+
readonly payloadSchema: {
|
|
189
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
190
|
+
readonly $id: "https://trusttasks.org/spec/vta/collection/release/0.1";
|
|
191
|
+
readonly title: "VTA Collection — Release — payload";
|
|
192
|
+
readonly description: "A client with standing in a trust context releases the collection claim for an identifier there. Released by its claimant, which has already stopped collecting, the claim ends at once and the VTA collects for the identifier again. Released by any other party, the claim becomes unrenewable and still ends at its end, because its claimant is still connected until then (VTI-NTF-083, VTI-NTF-084). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
193
|
+
readonly type: "object";
|
|
194
|
+
readonly additionalProperties: false;
|
|
195
|
+
readonly required: readonly ["contextId", "identifier"];
|
|
196
|
+
readonly properties: {
|
|
197
|
+
readonly contextId: {
|
|
198
|
+
readonly $ref: "#/$defs/ContextId";
|
|
199
|
+
};
|
|
200
|
+
readonly identifier: {
|
|
201
|
+
readonly $ref: "#/$defs/Did";
|
|
202
|
+
readonly description: "The identifier whose claim to release.";
|
|
203
|
+
};
|
|
204
|
+
readonly ext: {
|
|
205
|
+
readonly $ref: "#/$defs/Ext";
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
readonly $defs: {
|
|
209
|
+
readonly Response: {
|
|
210
|
+
readonly $anchor: "response";
|
|
211
|
+
readonly title: "VTA Collection — Release — response payload";
|
|
212
|
+
readonly type: "object";
|
|
213
|
+
readonly additionalProperties: false;
|
|
214
|
+
readonly required: readonly ["identifier"];
|
|
215
|
+
readonly description: "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.";
|
|
216
|
+
readonly properties: {
|
|
217
|
+
readonly identifier: {
|
|
218
|
+
readonly $ref: "#/$defs/Did";
|
|
219
|
+
};
|
|
220
|
+
readonly endsAt: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
readonly format: "date-time";
|
|
223
|
+
readonly description: "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's.";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
readonly Did: {
|
|
228
|
+
readonly title: "Did";
|
|
229
|
+
readonly description: "A DID.";
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly minLength: 8;
|
|
232
|
+
readonly maxLength: 2048;
|
|
233
|
+
readonly pattern: "^did:[a-z0-9]+:\\S+$";
|
|
234
|
+
};
|
|
235
|
+
readonly Ext: {
|
|
236
|
+
readonly title: "Ext";
|
|
237
|
+
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.";
|
|
238
|
+
readonly type: "object";
|
|
239
|
+
readonly minProperties: 1;
|
|
240
|
+
readonly additionalProperties: true;
|
|
241
|
+
readonly propertyNames: {
|
|
242
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
readonly ContextId: {
|
|
246
|
+
readonly title: "ContextId";
|
|
247
|
+
readonly description: "The trust context the identifier belongs to.";
|
|
248
|
+
readonly type: "string";
|
|
249
|
+
readonly minLength: 1;
|
|
250
|
+
readonly maxLength: 256;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
257
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
258
|
+
* parties (§7.3 item 5).
|
|
259
|
+
*/
|
|
260
|
+
export declare const RESPONSE_SPEC: {
|
|
261
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/collection/release/0.1#response";
|
|
262
|
+
readonly isBearer: false;
|
|
263
|
+
readonly isProofRequired: false;
|
|
264
|
+
readonly isRecipientRequired: true;
|
|
265
|
+
readonly isIssuedAtRequired: true;
|
|
266
|
+
readonly payloadSchema: {
|
|
267
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
268
|
+
readonly $ref: "#/$defs/Response";
|
|
269
|
+
readonly $defs: {
|
|
270
|
+
readonly Response: {
|
|
271
|
+
readonly $anchor: "response";
|
|
272
|
+
readonly title: "VTA Collection — Release — response payload";
|
|
273
|
+
readonly type: "object";
|
|
274
|
+
readonly additionalProperties: false;
|
|
275
|
+
readonly required: readonly ["identifier"];
|
|
276
|
+
readonly description: "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.";
|
|
277
|
+
readonly properties: {
|
|
278
|
+
readonly identifier: {
|
|
279
|
+
readonly $ref: "#/$defs/Did";
|
|
280
|
+
};
|
|
281
|
+
readonly endsAt: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
readonly format: "date-time";
|
|
284
|
+
readonly description: "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's.";
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly Did: {
|
|
289
|
+
readonly title: "Did";
|
|
290
|
+
readonly description: "A DID.";
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
readonly minLength: 8;
|
|
293
|
+
readonly maxLength: 2048;
|
|
294
|
+
readonly pattern: "^did:[a-z0-9]+:\\S+$";
|
|
295
|
+
};
|
|
296
|
+
readonly Ext: {
|
|
297
|
+
readonly title: "Ext";
|
|
298
|
+
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.";
|
|
299
|
+
readonly type: "object";
|
|
300
|
+
readonly minProperties: 1;
|
|
301
|
+
readonly additionalProperties: true;
|
|
302
|
+
readonly propertyNames: {
|
|
303
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
readonly ContextId: {
|
|
307
|
+
readonly title: "ContextId";
|
|
308
|
+
readonly description: "The trust context the identifier belongs to.";
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
readonly minLength: 1;
|
|
311
|
+
readonly maxLength: 256;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/collection/release/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,2BAA2B,IAAI,SAAS,EAAE,qBAAqB,IAAI,GAAG,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAGrI;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,GAAG,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,UAAU,EAAE,GAAG,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,kHAAkH;AAClH,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEpC,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,GAAG,IAAW,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,GAAG,IAAW,CAAC;AAE/C,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAElD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC;AAE5G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,mCAAmC,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/collection/release/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/collection/release/0.1";
|
|
7
|
+
/**
|
|
8
|
+
* The earlier version of this specification that this one declares it
|
|
9
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
10
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
11
|
+
* `extendsChain` / `readForSpec`.
|
|
12
|
+
*/
|
|
13
|
+
export const EXTENDS = null;
|
|
14
|
+
/**
|
|
15
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
16
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
17
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
|
+
* Versions").
|
|
19
|
+
*/
|
|
20
|
+
export const DEPRECATION = null;
|
|
21
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
22
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/collection/release/0.1#response";
|
|
23
|
+
/**
|
|
24
|
+
* This specification's payload schema, as a value.
|
|
25
|
+
*
|
|
26
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
27
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
28
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
29
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
30
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
31
|
+
*/
|
|
32
|
+
export const PAYLOAD_SCHEMA = {
|
|
33
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
34
|
+
"$id": "https://trusttasks.org/spec/vta/collection/release/0.1",
|
|
35
|
+
"title": "VTA Collection — Release — payload",
|
|
36
|
+
"description": "A client with standing in a trust context releases the collection claim for an identifier there. Released by its claimant, which has already stopped collecting, the claim ends at once and the VTA collects for the identifier again. Released by any other party, the claim becomes unrenewable and still ends at its end, because its claimant is still connected until then (VTI-NTF-083, VTI-NTF-084). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": [
|
|
40
|
+
"contextId",
|
|
41
|
+
"identifier"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"contextId": {
|
|
45
|
+
"$ref": "#/$defs/ContextId"
|
|
46
|
+
},
|
|
47
|
+
"identifier": {
|
|
48
|
+
"$ref": "#/$defs/Did",
|
|
49
|
+
"description": "The identifier whose claim to release."
|
|
50
|
+
},
|
|
51
|
+
"ext": {
|
|
52
|
+
"$ref": "#/$defs/Ext"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"$defs": {
|
|
56
|
+
"Response": {
|
|
57
|
+
"$anchor": "response",
|
|
58
|
+
"title": "VTA Collection — Release — response payload",
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"required": [
|
|
62
|
+
"identifier"
|
|
63
|
+
],
|
|
64
|
+
"description": "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.",
|
|
65
|
+
"properties": {
|
|
66
|
+
"identifier": {
|
|
67
|
+
"$ref": "#/$defs/Did"
|
|
68
|
+
},
|
|
69
|
+
"endsAt": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"format": "date-time",
|
|
72
|
+
"description": "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's."
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"Did": {
|
|
77
|
+
"title": "Did",
|
|
78
|
+
"description": "A DID.",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 8,
|
|
81
|
+
"maxLength": 2048,
|
|
82
|
+
"pattern": "^did:[a-z0-9]+:\\S+$"
|
|
83
|
+
},
|
|
84
|
+
"Ext": {
|
|
85
|
+
"title": "Ext",
|
|
86
|
+
"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.",
|
|
87
|
+
"type": "object",
|
|
88
|
+
"minProperties": 1,
|
|
89
|
+
"additionalProperties": true,
|
|
90
|
+
"propertyNames": {
|
|
91
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"ContextId": {
|
|
95
|
+
"title": "ContextId",
|
|
96
|
+
"description": "The trust context the identifier belongs to.",
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"maxLength": 256
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
104
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
105
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
106
|
+
"$ref": "#/$defs/Response",
|
|
107
|
+
"$defs": {
|
|
108
|
+
"Response": {
|
|
109
|
+
"$anchor": "response",
|
|
110
|
+
"title": "VTA Collection — Release — response payload",
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"required": [
|
|
114
|
+
"identifier"
|
|
115
|
+
],
|
|
116
|
+
"description": "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.",
|
|
117
|
+
"properties": {
|
|
118
|
+
"identifier": {
|
|
119
|
+
"$ref": "#/$defs/Did"
|
|
120
|
+
},
|
|
121
|
+
"endsAt": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"format": "date-time",
|
|
124
|
+
"description": "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's."
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"Did": {
|
|
129
|
+
"title": "Did",
|
|
130
|
+
"description": "A DID.",
|
|
131
|
+
"type": "string",
|
|
132
|
+
"minLength": 8,
|
|
133
|
+
"maxLength": 2048,
|
|
134
|
+
"pattern": "^did:[a-z0-9]+:\\S+$"
|
|
135
|
+
},
|
|
136
|
+
"Ext": {
|
|
137
|
+
"title": "Ext",
|
|
138
|
+
"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.",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"minProperties": 1,
|
|
141
|
+
"additionalProperties": true,
|
|
142
|
+
"propertyNames": {
|
|
143
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"ContextId": {
|
|
147
|
+
"title": "ContextId",
|
|
148
|
+
"description": "The trust context the identifier belongs to.",
|
|
149
|
+
"type": "string",
|
|
150
|
+
"minLength": 1,
|
|
151
|
+
"maxLength": 256
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
157
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
158
|
+
* per-specification and cannot be derived from the document alone, and
|
|
159
|
+
* item 2 needs the schema this carries.
|
|
160
|
+
*/
|
|
161
|
+
export const SPEC = {
|
|
162
|
+
typeUri: TYPE_URI,
|
|
163
|
+
isBearer: false,
|
|
164
|
+
isProofRequired: false,
|
|
165
|
+
isRecipientRequired: true,
|
|
166
|
+
isIssuedAtRequired: true,
|
|
167
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
171
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
172
|
+
* parties (§7.3 item 5).
|
|
173
|
+
*/
|
|
174
|
+
export const RESPONSE_SPEC = {
|
|
175
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
176
|
+
isBearer: false,
|
|
177
|
+
isProofRequired: false,
|
|
178
|
+
isRecipientRequired: true,
|
|
179
|
+
isIssuedAtRequired: true,
|
|
180
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
181
|
+
};
|
|
182
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/collection/release/0.1/payload.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -579,6 +579,10 @@ export type ChunkSize = number;
|
|
|
579
579
|
* The `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.
|
|
580
580
|
*/
|
|
581
581
|
export type ClaimType = string;
|
|
582
|
+
/**
|
|
583
|
+
* Who collects for an identifier: `vta`, the VTA itself; `client`, the claimant of a collection claim in force; or `none`, nobody, for the reason given in `notCollectedReason`.
|
|
584
|
+
*/
|
|
585
|
+
export type Collector = "vta" | "client" | "none";
|
|
582
586
|
/**
|
|
583
587
|
* The community's hidden-vetting parameters exactly as its join manifest publishes them, under the criterion's `vetting.ext`. The caller copies them in verbatim on every call that needs them, because the community rotates labels and the engine keeps no copy of its own: a stale copy costs the caller a refused proof, never a mistaken one.
|
|
584
588
|
*/
|
|
@@ -599,6 +603,10 @@ export type ConsumerKind_DeviceV0_2 = Companion_DeviceV0_2 | Service_DeviceV0_2;
|
|
|
599
603
|
* The trust context the notification is held in: the one the addressed DID belongs to.
|
|
600
604
|
*/
|
|
601
605
|
export type ContextId = string;
|
|
606
|
+
/**
|
|
607
|
+
* The trust context the identifier belongs to.
|
|
608
|
+
*/
|
|
609
|
+
export type ContextId_VtaCollectionV0_1 = string;
|
|
602
610
|
/**
|
|
603
611
|
* Opaque identifier of one of the maintainer's contexts, compared by the maintainer's own ancestry predicate. Its grammar is the maintainer's.
|
|
604
612
|
*/
|
|
@@ -1218,6 +1226,10 @@ export type NamespaceId = string;
|
|
|
1218
1226
|
* What a node is.
|
|
1219
1227
|
*/
|
|
1220
1228
|
export type NodeKind = "network" | "community";
|
|
1229
|
+
/**
|
|
1230
|
+
* Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, the VTA's operator has not enabled collection by default (VTI-NTF-093), so the VTA collects for no identifier a client has not claimed.
|
|
1231
|
+
*/
|
|
1232
|
+
export type NotCollectedReason = "limit" | "conflict" | "disabled";
|
|
1221
1233
|
/**
|
|
1222
1234
|
* Opaque identifier of one note: `note_` followed by 16 to 64 base64url characters.
|
|
1223
1235
|
*/
|
|
@@ -6419,6 +6431,23 @@ export interface ChunkedDescriptor {
|
|
|
6419
6431
|
expectedSizeBytes: ExpectedSizeBytes;
|
|
6420
6432
|
expiresAt: ExpiresAt;
|
|
6421
6433
|
}
|
|
6434
|
+
/**
|
|
6435
|
+
* A collection claim in force for one identifier: the client that is its collector, when the claim ends, and whether the claimant may still renew it. A claim released by a party other than its claimant, or whose claimant's access control entry no longer gives it standing in the context, is not renewable and still ends at `endsAt`, because the claimant is still connected until its own clock tells it to stop (VTI-NTF-084).
|
|
6436
|
+
*/
|
|
6437
|
+
export interface Claim {
|
|
6438
|
+
/**
|
|
6439
|
+
* The client holding the claim: the subject of the access control entry it was granted to.
|
|
6440
|
+
*/
|
|
6441
|
+
claimant: Did_NotificationsV0_1;
|
|
6442
|
+
/**
|
|
6443
|
+
* When the claim ends unless renewed. The claimant stops collecting before this instant less its clock-skew tolerance; the VTA resumes no earlier than this instant plus its own (VTI-NTF-083, VTI-NTF-084).
|
|
6444
|
+
*/
|
|
6445
|
+
endsAt: string;
|
|
6446
|
+
/**
|
|
6447
|
+
* Whether the claimant may renew the claim with vta/collection/claim before it ends.
|
|
6448
|
+
*/
|
|
6449
|
+
renewable: boolean;
|
|
6450
|
+
}
|
|
6422
6451
|
/**
|
|
6423
6452
|
* Which claim a `claim` field accepts, from which credentials and issuers.
|
|
6424
6453
|
*/
|
|
@@ -6438,6 +6467,15 @@ export interface ClaimSelector {
|
|
|
6438
6467
|
*/
|
|
6439
6468
|
issuers?: string[];
|
|
6440
6469
|
}
|
|
6470
|
+
/**
|
|
6471
|
+
* The collection state of one identifier. `claim` is present exactly when `collector` is `client`, and `notCollectedReason` exactly when it is `none`.
|
|
6472
|
+
*/
|
|
6473
|
+
export interface CollectionEntry {
|
|
6474
|
+
identifier: Did_NotificationsV0_1;
|
|
6475
|
+
collector: Collector;
|
|
6476
|
+
claim?: Claim;
|
|
6477
|
+
notCollectedReason?: NotCollectedReason;
|
|
6478
|
+
}
|
|
6441
6479
|
/**
|
|
6442
6480
|
* OPTIONAL. How the community asks to be shown to a prospective applicant: a name, an accent colour and a logo. Presentation only, self-asserted and unverified — `communityDid` identifies the community, never `branding`. Not part of any criterion, so not covered by a `requirementsDigest`. Every member is optional.
|
|
6443
6481
|
*/
|
package/src/index.ts
CHANGED
|
@@ -2339,6 +2339,18 @@ export import VtaBackupInitiateImport_v1_1 = _VtaBackupInitiateImport_v1_1;
|
|
|
2339
2339
|
import * as _VtaBackupPutChunk_v1_0 from "./vta/backup/put-chunk/1.0/payload.js";
|
|
2340
2340
|
/** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
|
|
2341
2341
|
export import VtaBackupPutChunk_v1_0 = _VtaBackupPutChunk_v1_0;
|
|
2342
|
+
import * as _CollectionShared_v0_1 from "./vta/collection/_shared/0.1/collection.js";
|
|
2343
|
+
/** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
|
|
2344
|
+
export import CollectionShared_v0_1 = _CollectionShared_v0_1;
|
|
2345
|
+
import * as _VtaCollectionClaim_v0_1 from "./vta/collection/claim/0.1/payload.js";
|
|
2346
|
+
/** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
|
|
2347
|
+
export import VtaCollectionClaim_v0_1 = _VtaCollectionClaim_v0_1;
|
|
2348
|
+
import * as _VtaCollectionList_v0_1 from "./vta/collection/list/0.1/payload.js";
|
|
2349
|
+
/** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
|
|
2350
|
+
export import VtaCollectionList_v0_1 = _VtaCollectionList_v0_1;
|
|
2351
|
+
import * as _VtaCollectionRelease_v0_1 from "./vta/collection/release/0.1/payload.js";
|
|
2352
|
+
/** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
|
|
2353
|
+
export import VtaCollectionRelease_v0_1 = _VtaCollectionRelease_v0_1;
|
|
2342
2354
|
import * as _VtaContextsCreate_v1_0 from "./vta/contexts/create/1.0/payload.js";
|
|
2343
2355
|
/** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
|
|
2344
2356
|
export import VtaContextsCreate_v1_0 = _VtaContextsCreate_v1_0;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/collection/_shared/0.1/collection.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared shapes for the collection of messages for a principal's identifiers. A VTA collects, from the mediator each identifier's DID document advertises, the messages queued for every identifier whose messaging keys it holds in one of the principal's trust contexts — its personas — unless a client of the principal holds a collection claim for it: a lease, granted by vta/collection/claim and ended by vta/collection/release or at its end, under which that client is the identifier's one collector. The mediator permits one connection per identifier, so at most one party collects for an identifier at a time (VTI-NTF-080 – VTI-NTF-092).
|
|
8
|
+
*/
|
|
9
|
+
export interface VTACollectionSharedDefinitions {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { Claim, CollectionEntry, Collector, ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, NotCollectedReason } from "../../../../_shared/components.js";
|