@openvtc/trust-tasks 0.24.2 → 0.25.1
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 +29 -0
- package/dist/_shared/components.d.ts +4 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/provision/vta/_shared/0.1/vta.d.ts +16 -0
- package/dist/provision/vta/_shared/0.1/vta.d.ts.map +1 -0
- package/dist/provision/vta/_shared/0.1/vta.js +6 -0
- package/dist/provision/vta/_shared/0.1/vta.js.map +1 -0
- package/dist/provision/vta/claim/0.1/payload.d.ts +115 -0
- package/dist/provision/vta/claim/0.1/payload.d.ts.map +1 -0
- package/dist/provision/vta/claim/0.1/payload.js +69 -0
- package/dist/provision/vta/claim/0.1/payload.js.map +1 -0
- package/dist/provision/vta/redeem/0.1/payload.d.ts +371 -0
- package/dist/provision/vta/redeem/0.1/payload.d.ts.map +1 -0
- package/dist/provision/vta/redeem/0.1/payload.js +207 -0
- package/dist/provision/vta/redeem/0.1/payload.js.map +1 -0
- package/dist/rooms/info/0.1/payload.d.ts +2 -2
- package/dist/rooms/info/0.1/payload.js +2 -2
- package/dist/rooms/info/0.1/payload.js.map +1 -1
- package/dist/rooms/usage/0.1/payload.d.ts +2 -2
- package/dist/rooms/usage/0.1/payload.js +2 -2
- package/dist/rooms/usage/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +4 -0
- package/src/index.ts +3 -0
- package/src/provision/vta/_shared/0.1/vta.ts +17 -0
- package/src/provision/vta/claim/0.1/payload.ts +88 -0
- package/src/provision/vta/redeem/0.1/payload.ts +255 -0
- package/src/rooms/info/0.1/payload.ts +2 -2
- package/src/rooms/usage/0.1/payload.ts +2 -2
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/provision/vta/redeem/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext, Handle } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* The claimant polls the Farm, with the key that made the claim, for the outcome of its claim on a reservation. Each poll is a freshly signed document carrying the handle. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface ProvisionVTARedeemPayload {
|
|
10
|
+
handle: Handle;
|
|
11
|
+
ext?: Ext;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The hand-over, signed by the Farm's assertionMethod key and sent only once the claimant's key is written into the VTA as its administrator and the VTA answers: which VTA, what the claim did, and where the VTA is reachable. Every earlier state is a `trust-task-error` (`pending`, `rejected`, or a family code), never this document.
|
|
15
|
+
*/
|
|
16
|
+
export interface ProvisionVTARedeemResponsePayload {
|
|
17
|
+
handle: Handle;
|
|
18
|
+
/**
|
|
19
|
+
* The DID of the VTA the claimant now administers. The Farm chooses the DID method; the VTA Farm issues `did:webvh`.
|
|
20
|
+
*/
|
|
21
|
+
vtaDid: string;
|
|
22
|
+
/**
|
|
23
|
+
* What the claim did. `provisionVta`: the claimant is the first administrator of a VTA provisioned for this reservation. `grantAcl`: the claimant was added as an administrator of a VTA that already had one. The Farm derives it from the reservation; the wallet never chooses it.
|
|
24
|
+
*/
|
|
25
|
+
operation: "provisionVta" | "grantAcl";
|
|
26
|
+
/**
|
|
27
|
+
* The DID of the DIDComm mediator the VTA is reachable through. A convenience: the wallet can also read it from the VTA's own DID document.
|
|
28
|
+
*/
|
|
29
|
+
mediatorDid?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Where the VTA's DID log is served. For `did:webvh` it is the `did.jsonl` URL the DID itself encodes. An `https` URL with no userinfo.
|
|
32
|
+
*/
|
|
33
|
+
didLogUrl?: string;
|
|
34
|
+
ext?: Ext;
|
|
35
|
+
}
|
|
36
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
37
|
+
export type { Ext, Handle };
|
|
38
|
+
/** Trust Task type URI. */
|
|
39
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/provision/vta/redeem/0.1";
|
|
40
|
+
/** Stable alias for this specification's request payload shape. */
|
|
41
|
+
export type Payload = ProvisionVTARedeemPayload;
|
|
42
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
43
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/provision/vta/redeem/0.1#response";
|
|
44
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
45
|
+
export type Response = ProvisionVTARedeemResponsePayload;
|
|
46
|
+
/**
|
|
47
|
+
* This specification's payload schema, as a value.
|
|
48
|
+
*
|
|
49
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
50
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
51
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
52
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
53
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
54
|
+
*/
|
|
55
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
56
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
57
|
+
readonly $id: "https://trusttasks.org/spec/provision/vta/redeem/0.1";
|
|
58
|
+
readonly title: "Provision — VTA Redeem — payload";
|
|
59
|
+
readonly description: "The claimant polls the Farm, with the key that made the claim, for the outcome of its claim on a reservation. Each poll is a freshly signed document carrying the handle. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
60
|
+
readonly type: "object";
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
readonly required: readonly ["handle"];
|
|
63
|
+
readonly properties: {
|
|
64
|
+
readonly handle: {
|
|
65
|
+
readonly $ref: "#/$defs/Handle";
|
|
66
|
+
};
|
|
67
|
+
readonly ext: {
|
|
68
|
+
readonly $ref: "#/$defs/Ext";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly $defs: {
|
|
72
|
+
readonly Response: {
|
|
73
|
+
readonly $anchor: "response";
|
|
74
|
+
readonly title: "Provision — VTA Redeem — response payload";
|
|
75
|
+
readonly description: "The hand-over, signed by the Farm's assertionMethod key and sent only once the claimant's key is written into the VTA as its administrator and the VTA answers: which VTA, what the claim did, and where the VTA is reachable. Every earlier state is a `trust-task-error` (`pending`, `rejected`, or a family code), never this document.";
|
|
76
|
+
readonly type: "object";
|
|
77
|
+
readonly additionalProperties: false;
|
|
78
|
+
readonly required: readonly ["handle", "vtaDid", "operation"];
|
|
79
|
+
readonly properties: {
|
|
80
|
+
readonly handle: {
|
|
81
|
+
readonly $ref: "#/$defs/Handle";
|
|
82
|
+
};
|
|
83
|
+
readonly vtaDid: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
readonly minLength: 8;
|
|
86
|
+
readonly maxLength: 2048;
|
|
87
|
+
readonly pattern: "^did:[a-z0-9]+:[^\\s]+$";
|
|
88
|
+
readonly description: "The DID of the VTA the claimant now administers. The Farm chooses the DID method; the VTA Farm issues `did:webvh`.";
|
|
89
|
+
};
|
|
90
|
+
readonly operation: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly enum: readonly ["provisionVta", "grantAcl"];
|
|
93
|
+
readonly description: "What the claim did. `provisionVta`: the claimant is the first administrator of a VTA provisioned for this reservation. `grantAcl`: the claimant was added as an administrator of a VTA that already had one. The Farm derives it from the reservation; the wallet never chooses it.";
|
|
94
|
+
};
|
|
95
|
+
readonly mediatorDid: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
readonly minLength: 8;
|
|
98
|
+
readonly maxLength: 2048;
|
|
99
|
+
readonly pattern: "^did:[a-z0-9]+:[^\\s]+$";
|
|
100
|
+
readonly description: "The DID of the DIDComm mediator the VTA is reachable through. A convenience: the wallet can also read it from the VTA's own DID document.";
|
|
101
|
+
};
|
|
102
|
+
readonly didLogUrl: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
readonly minLength: 9;
|
|
105
|
+
readonly maxLength: 2048;
|
|
106
|
+
readonly pattern: "^https://[^@/?#\\s]+(/[^\\s]*)?$";
|
|
107
|
+
readonly description: "Where the VTA's DID log is served. For `did:webvh` it is the `did.jsonl` URL the DID itself encodes. An `https` URL with no userinfo.";
|
|
108
|
+
};
|
|
109
|
+
readonly ext: {
|
|
110
|
+
readonly $ref: "#/$defs/Ext";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
readonly Ext: {
|
|
115
|
+
readonly title: "Ext";
|
|
116
|
+
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.";
|
|
117
|
+
readonly type: "object";
|
|
118
|
+
readonly minProperties: 1;
|
|
119
|
+
readonly additionalProperties: true;
|
|
120
|
+
readonly propertyNames: {
|
|
121
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly Handle: {
|
|
125
|
+
readonly title: "Handle";
|
|
126
|
+
readonly type: "string";
|
|
127
|
+
readonly minLength: 22;
|
|
128
|
+
readonly maxLength: 43;
|
|
129
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
130
|
+
readonly description: "The Farm-generated handle of one reservation: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is what VTI-LNK-116 recommends). It is the `_id` of the trigger link (VTI-LNK-033) and is compared as a string. In a claim it MUST equal the document's `parentThreadId`. It confers no authority on its holder beyond the right to make one claim.";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
135
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
136
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
137
|
+
readonly $ref: "#/$defs/Response";
|
|
138
|
+
readonly $defs: {
|
|
139
|
+
readonly Response: {
|
|
140
|
+
readonly $anchor: "response";
|
|
141
|
+
readonly title: "Provision — VTA Redeem — response payload";
|
|
142
|
+
readonly description: "The hand-over, signed by the Farm's assertionMethod key and sent only once the claimant's key is written into the VTA as its administrator and the VTA answers: which VTA, what the claim did, and where the VTA is reachable. Every earlier state is a `trust-task-error` (`pending`, `rejected`, or a family code), never this document.";
|
|
143
|
+
readonly type: "object";
|
|
144
|
+
readonly additionalProperties: false;
|
|
145
|
+
readonly required: readonly ["handle", "vtaDid", "operation"];
|
|
146
|
+
readonly properties: {
|
|
147
|
+
readonly handle: {
|
|
148
|
+
readonly $ref: "#/$defs/Handle";
|
|
149
|
+
};
|
|
150
|
+
readonly vtaDid: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
readonly minLength: 8;
|
|
153
|
+
readonly maxLength: 2048;
|
|
154
|
+
readonly pattern: "^did:[a-z0-9]+:[^\\s]+$";
|
|
155
|
+
readonly description: "The DID of the VTA the claimant now administers. The Farm chooses the DID method; the VTA Farm issues `did:webvh`.";
|
|
156
|
+
};
|
|
157
|
+
readonly operation: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
readonly enum: readonly ["provisionVta", "grantAcl"];
|
|
160
|
+
readonly description: "What the claim did. `provisionVta`: the claimant is the first administrator of a VTA provisioned for this reservation. `grantAcl`: the claimant was added as an administrator of a VTA that already had one. The Farm derives it from the reservation; the wallet never chooses it.";
|
|
161
|
+
};
|
|
162
|
+
readonly mediatorDid: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
readonly minLength: 8;
|
|
165
|
+
readonly maxLength: 2048;
|
|
166
|
+
readonly pattern: "^did:[a-z0-9]+:[^\\s]+$";
|
|
167
|
+
readonly description: "The DID of the DIDComm mediator the VTA is reachable through. A convenience: the wallet can also read it from the VTA's own DID document.";
|
|
168
|
+
};
|
|
169
|
+
readonly didLogUrl: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly minLength: 9;
|
|
172
|
+
readonly maxLength: 2048;
|
|
173
|
+
readonly pattern: "^https://[^@/?#\\s]+(/[^\\s]*)?$";
|
|
174
|
+
readonly description: "Where the VTA's DID log is served. For `did:webvh` it is the `did.jsonl` URL the DID itself encodes. An `https` URL with no userinfo.";
|
|
175
|
+
};
|
|
176
|
+
readonly ext: {
|
|
177
|
+
readonly $ref: "#/$defs/Ext";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
readonly Ext: {
|
|
182
|
+
readonly title: "Ext";
|
|
183
|
+
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.";
|
|
184
|
+
readonly type: "object";
|
|
185
|
+
readonly minProperties: 1;
|
|
186
|
+
readonly additionalProperties: true;
|
|
187
|
+
readonly propertyNames: {
|
|
188
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly Handle: {
|
|
192
|
+
readonly title: "Handle";
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
readonly minLength: 22;
|
|
195
|
+
readonly maxLength: 43;
|
|
196
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
197
|
+
readonly description: "The Farm-generated handle of one reservation: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is what VTI-LNK-116 recommends). It is the `_id` of the trigger link (VTI-LNK-033) and is compared as a string. In a claim it MUST equal the document's `parentThreadId`. It confers no authority on its holder beyond the right to make one claim.";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
203
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
204
|
+
* per-specification and cannot be derived from the document alone, and
|
|
205
|
+
* item 2 needs the schema this carries.
|
|
206
|
+
*/
|
|
207
|
+
export declare const SPEC: {
|
|
208
|
+
readonly typeUri: "https://trusttasks.org/spec/provision/vta/redeem/0.1";
|
|
209
|
+
readonly isBearer: false;
|
|
210
|
+
readonly isProofRequired: true;
|
|
211
|
+
readonly isRecipientRequired: true;
|
|
212
|
+
readonly isIssuedAtRequired: true;
|
|
213
|
+
readonly payloadSchema: {
|
|
214
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
215
|
+
readonly $id: "https://trusttasks.org/spec/provision/vta/redeem/0.1";
|
|
216
|
+
readonly title: "Provision — VTA Redeem — payload";
|
|
217
|
+
readonly description: "The claimant polls the Farm, with the key that made the claim, for the outcome of its claim on a reservation. Each poll is a freshly signed document carrying the handle. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
218
|
+
readonly type: "object";
|
|
219
|
+
readonly additionalProperties: false;
|
|
220
|
+
readonly required: readonly ["handle"];
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly handle: {
|
|
223
|
+
readonly $ref: "#/$defs/Handle";
|
|
224
|
+
};
|
|
225
|
+
readonly ext: {
|
|
226
|
+
readonly $ref: "#/$defs/Ext";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly $defs: {
|
|
230
|
+
readonly Response: {
|
|
231
|
+
readonly $anchor: "response";
|
|
232
|
+
readonly title: "Provision — VTA Redeem — response payload";
|
|
233
|
+
readonly description: "The hand-over, signed by the Farm's assertionMethod key and sent only once the claimant's key is written into the VTA as its administrator and the VTA answers: which VTA, what the claim did, and where the VTA is reachable. Every earlier state is a `trust-task-error` (`pending`, `rejected`, or a family code), never this document.";
|
|
234
|
+
readonly type: "object";
|
|
235
|
+
readonly additionalProperties: false;
|
|
236
|
+
readonly required: readonly ["handle", "vtaDid", "operation"];
|
|
237
|
+
readonly properties: {
|
|
238
|
+
readonly handle: {
|
|
239
|
+
readonly $ref: "#/$defs/Handle";
|
|
240
|
+
};
|
|
241
|
+
readonly vtaDid: {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly minLength: 8;
|
|
244
|
+
readonly maxLength: 2048;
|
|
245
|
+
readonly pattern: "^did:[a-z0-9]+:[^\\s]+$";
|
|
246
|
+
readonly description: "The DID of the VTA the claimant now administers. The Farm chooses the DID method; the VTA Farm issues `did:webvh`.";
|
|
247
|
+
};
|
|
248
|
+
readonly operation: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly enum: readonly ["provisionVta", "grantAcl"];
|
|
251
|
+
readonly description: "What the claim did. `provisionVta`: the claimant is the first administrator of a VTA provisioned for this reservation. `grantAcl`: the claimant was added as an administrator of a VTA that already had one. The Farm derives it from the reservation; the wallet never chooses it.";
|
|
252
|
+
};
|
|
253
|
+
readonly mediatorDid: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
readonly minLength: 8;
|
|
256
|
+
readonly maxLength: 2048;
|
|
257
|
+
readonly pattern: "^did:[a-z0-9]+:[^\\s]+$";
|
|
258
|
+
readonly description: "The DID of the DIDComm mediator the VTA is reachable through. A convenience: the wallet can also read it from the VTA's own DID document.";
|
|
259
|
+
};
|
|
260
|
+
readonly didLogUrl: {
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
readonly minLength: 9;
|
|
263
|
+
readonly maxLength: 2048;
|
|
264
|
+
readonly pattern: "^https://[^@/?#\\s]+(/[^\\s]*)?$";
|
|
265
|
+
readonly description: "Where the VTA's DID log is served. For `did:webvh` it is the `did.jsonl` URL the DID itself encodes. An `https` URL with no userinfo.";
|
|
266
|
+
};
|
|
267
|
+
readonly ext: {
|
|
268
|
+
readonly $ref: "#/$defs/Ext";
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
readonly Ext: {
|
|
273
|
+
readonly title: "Ext";
|
|
274
|
+
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.";
|
|
275
|
+
readonly type: "object";
|
|
276
|
+
readonly minProperties: 1;
|
|
277
|
+
readonly additionalProperties: true;
|
|
278
|
+
readonly propertyNames: {
|
|
279
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
readonly Handle: {
|
|
283
|
+
readonly title: "Handle";
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
readonly minLength: 22;
|
|
286
|
+
readonly maxLength: 43;
|
|
287
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
288
|
+
readonly description: "The Farm-generated handle of one reservation: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is what VTI-LNK-116 recommends). It is the `_id` of the trigger link (VTI-LNK-033) and is compared as a string. In a claim it MUST equal the document's `parentThreadId`. It confers no authority on its holder beyond the right to make one claim.";
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
295
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
296
|
+
* parties (§7.3 item 5).
|
|
297
|
+
*/
|
|
298
|
+
export declare const RESPONSE_SPEC: {
|
|
299
|
+
readonly typeUri: "https://trusttasks.org/spec/provision/vta/redeem/0.1#response";
|
|
300
|
+
readonly isBearer: false;
|
|
301
|
+
readonly isProofRequired: true;
|
|
302
|
+
readonly isRecipientRequired: true;
|
|
303
|
+
readonly isIssuedAtRequired: true;
|
|
304
|
+
readonly payloadSchema: {
|
|
305
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
306
|
+
readonly $ref: "#/$defs/Response";
|
|
307
|
+
readonly $defs: {
|
|
308
|
+
readonly Response: {
|
|
309
|
+
readonly $anchor: "response";
|
|
310
|
+
readonly title: "Provision — VTA Redeem — response payload";
|
|
311
|
+
readonly description: "The hand-over, signed by the Farm's assertionMethod key and sent only once the claimant's key is written into the VTA as its administrator and the VTA answers: which VTA, what the claim did, and where the VTA is reachable. Every earlier state is a `trust-task-error` (`pending`, `rejected`, or a family code), never this document.";
|
|
312
|
+
readonly type: "object";
|
|
313
|
+
readonly additionalProperties: false;
|
|
314
|
+
readonly required: readonly ["handle", "vtaDid", "operation"];
|
|
315
|
+
readonly properties: {
|
|
316
|
+
readonly handle: {
|
|
317
|
+
readonly $ref: "#/$defs/Handle";
|
|
318
|
+
};
|
|
319
|
+
readonly vtaDid: {
|
|
320
|
+
readonly type: "string";
|
|
321
|
+
readonly minLength: 8;
|
|
322
|
+
readonly maxLength: 2048;
|
|
323
|
+
readonly pattern: "^did:[a-z0-9]+:[^\\s]+$";
|
|
324
|
+
readonly description: "The DID of the VTA the claimant now administers. The Farm chooses the DID method; the VTA Farm issues `did:webvh`.";
|
|
325
|
+
};
|
|
326
|
+
readonly operation: {
|
|
327
|
+
readonly type: "string";
|
|
328
|
+
readonly enum: readonly ["provisionVta", "grantAcl"];
|
|
329
|
+
readonly description: "What the claim did. `provisionVta`: the claimant is the first administrator of a VTA provisioned for this reservation. `grantAcl`: the claimant was added as an administrator of a VTA that already had one. The Farm derives it from the reservation; the wallet never chooses it.";
|
|
330
|
+
};
|
|
331
|
+
readonly mediatorDid: {
|
|
332
|
+
readonly type: "string";
|
|
333
|
+
readonly minLength: 8;
|
|
334
|
+
readonly maxLength: 2048;
|
|
335
|
+
readonly pattern: "^did:[a-z0-9]+:[^\\s]+$";
|
|
336
|
+
readonly description: "The DID of the DIDComm mediator the VTA is reachable through. A convenience: the wallet can also read it from the VTA's own DID document.";
|
|
337
|
+
};
|
|
338
|
+
readonly didLogUrl: {
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
readonly minLength: 9;
|
|
341
|
+
readonly maxLength: 2048;
|
|
342
|
+
readonly pattern: "^https://[^@/?#\\s]+(/[^\\s]*)?$";
|
|
343
|
+
readonly description: "Where the VTA's DID log is served. For `did:webvh` it is the `did.jsonl` URL the DID itself encodes. An `https` URL with no userinfo.";
|
|
344
|
+
};
|
|
345
|
+
readonly ext: {
|
|
346
|
+
readonly $ref: "#/$defs/Ext";
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
readonly Ext: {
|
|
351
|
+
readonly title: "Ext";
|
|
352
|
+
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.";
|
|
353
|
+
readonly type: "object";
|
|
354
|
+
readonly minProperties: 1;
|
|
355
|
+
readonly additionalProperties: true;
|
|
356
|
+
readonly propertyNames: {
|
|
357
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
readonly Handle: {
|
|
361
|
+
readonly title: "Handle";
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
readonly minLength: 22;
|
|
364
|
+
readonly maxLength: 43;
|
|
365
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
366
|
+
readonly description: "The Farm-generated handle of one reservation: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is what VTI-LNK-116 recommends). It is the `_id` of the trigger link (VTI-LNK-033) and is compared as a string. In a claim it MUST equal the document's `parentThreadId`. It confers no authority on its holder beyond the right to make one claim.";
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/provision/vta/redeem/0.1/payload.ts"],"names":[],"mappings":"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AC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/provision/vta/redeem/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/provision/vta/redeem/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/provision/vta/redeem/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/provision/vta/redeem/0.1",
|
|
21
|
+
"title": "Provision — VTA Redeem — payload",
|
|
22
|
+
"description": "The claimant polls the Farm, with the key that made the claim, for the outcome of its claim on a reservation. Each poll is a freshly signed document carrying the handle. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"handle"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"handle": {
|
|
30
|
+
"$ref": "#/$defs/Handle"
|
|
31
|
+
},
|
|
32
|
+
"ext": {
|
|
33
|
+
"$ref": "#/$defs/Ext"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"$defs": {
|
|
37
|
+
"Response": {
|
|
38
|
+
"$anchor": "response",
|
|
39
|
+
"title": "Provision — VTA Redeem — response payload",
|
|
40
|
+
"description": "The hand-over, signed by the Farm's assertionMethod key and sent only once the claimant's key is written into the VTA as its administrator and the VTA answers: which VTA, what the claim did, and where the VTA is reachable. Every earlier state is a `trust-task-error` (`pending`, `rejected`, or a family code), never this document.",
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": [
|
|
44
|
+
"handle",
|
|
45
|
+
"vtaDid",
|
|
46
|
+
"operation"
|
|
47
|
+
],
|
|
48
|
+
"properties": {
|
|
49
|
+
"handle": {
|
|
50
|
+
"$ref": "#/$defs/Handle"
|
|
51
|
+
},
|
|
52
|
+
"vtaDid": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 8,
|
|
55
|
+
"maxLength": 2048,
|
|
56
|
+
"pattern": "^did:[a-z0-9]+:[^\\s]+$",
|
|
57
|
+
"description": "The DID of the VTA the claimant now administers. The Farm chooses the DID method; the VTA Farm issues `did:webvh`."
|
|
58
|
+
},
|
|
59
|
+
"operation": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": [
|
|
62
|
+
"provisionVta",
|
|
63
|
+
"grantAcl"
|
|
64
|
+
],
|
|
65
|
+
"description": "What the claim did. `provisionVta`: the claimant is the first administrator of a VTA provisioned for this reservation. `grantAcl`: the claimant was added as an administrator of a VTA that already had one. The Farm derives it from the reservation; the wallet never chooses it."
|
|
66
|
+
},
|
|
67
|
+
"mediatorDid": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"minLength": 8,
|
|
70
|
+
"maxLength": 2048,
|
|
71
|
+
"pattern": "^did:[a-z0-9]+:[^\\s]+$",
|
|
72
|
+
"description": "The DID of the DIDComm mediator the VTA is reachable through. A convenience: the wallet can also read it from the VTA's own DID document."
|
|
73
|
+
},
|
|
74
|
+
"didLogUrl": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 9,
|
|
77
|
+
"maxLength": 2048,
|
|
78
|
+
"pattern": "^https://[^@/?#\\s]+(/[^\\s]*)?$",
|
|
79
|
+
"description": "Where the VTA's DID log is served. For `did:webvh` it is the `did.jsonl` URL the DID itself encodes. An `https` URL with no userinfo."
|
|
80
|
+
},
|
|
81
|
+
"ext": {
|
|
82
|
+
"$ref": "#/$defs/Ext"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"Ext": {
|
|
87
|
+
"title": "Ext",
|
|
88
|
+
"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.",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"minProperties": 1,
|
|
91
|
+
"additionalProperties": true,
|
|
92
|
+
"propertyNames": {
|
|
93
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"Handle": {
|
|
97
|
+
"title": "Handle",
|
|
98
|
+
"type": "string",
|
|
99
|
+
"minLength": 22,
|
|
100
|
+
"maxLength": 43,
|
|
101
|
+
"pattern": "^[A-Za-z0-9_-]{22,43}$",
|
|
102
|
+
"description": "The Farm-generated handle of one reservation: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is what VTI-LNK-116 recommends). It is the `_id` of the trigger link (VTI-LNK-033) and is compared as a string. In a claim it MUST equal the document's `parentThreadId`. It confers no authority on its holder beyond the right to make one claim."
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
107
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
108
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
109
|
+
"$ref": "#/$defs/Response",
|
|
110
|
+
"$defs": {
|
|
111
|
+
"Response": {
|
|
112
|
+
"$anchor": "response",
|
|
113
|
+
"title": "Provision — VTA Redeem — response payload",
|
|
114
|
+
"description": "The hand-over, signed by the Farm's assertionMethod key and sent only once the claimant's key is written into the VTA as its administrator and the VTA answers: which VTA, what the claim did, and where the VTA is reachable. Every earlier state is a `trust-task-error` (`pending`, `rejected`, or a family code), never this document.",
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"required": [
|
|
118
|
+
"handle",
|
|
119
|
+
"vtaDid",
|
|
120
|
+
"operation"
|
|
121
|
+
],
|
|
122
|
+
"properties": {
|
|
123
|
+
"handle": {
|
|
124
|
+
"$ref": "#/$defs/Handle"
|
|
125
|
+
},
|
|
126
|
+
"vtaDid": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"minLength": 8,
|
|
129
|
+
"maxLength": 2048,
|
|
130
|
+
"pattern": "^did:[a-z0-9]+:[^\\s]+$",
|
|
131
|
+
"description": "The DID of the VTA the claimant now administers. The Farm chooses the DID method; the VTA Farm issues `did:webvh`."
|
|
132
|
+
},
|
|
133
|
+
"operation": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"enum": [
|
|
136
|
+
"provisionVta",
|
|
137
|
+
"grantAcl"
|
|
138
|
+
],
|
|
139
|
+
"description": "What the claim did. `provisionVta`: the claimant is the first administrator of a VTA provisioned for this reservation. `grantAcl`: the claimant was added as an administrator of a VTA that already had one. The Farm derives it from the reservation; the wallet never chooses it."
|
|
140
|
+
},
|
|
141
|
+
"mediatorDid": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"minLength": 8,
|
|
144
|
+
"maxLength": 2048,
|
|
145
|
+
"pattern": "^did:[a-z0-9]+:[^\\s]+$",
|
|
146
|
+
"description": "The DID of the DIDComm mediator the VTA is reachable through. A convenience: the wallet can also read it from the VTA's own DID document."
|
|
147
|
+
},
|
|
148
|
+
"didLogUrl": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"minLength": 9,
|
|
151
|
+
"maxLength": 2048,
|
|
152
|
+
"pattern": "^https://[^@/?#\\s]+(/[^\\s]*)?$",
|
|
153
|
+
"description": "Where the VTA's DID log is served. For `did:webvh` it is the `did.jsonl` URL the DID itself encodes. An `https` URL with no userinfo."
|
|
154
|
+
},
|
|
155
|
+
"ext": {
|
|
156
|
+
"$ref": "#/$defs/Ext"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"Ext": {
|
|
161
|
+
"title": "Ext",
|
|
162
|
+
"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.",
|
|
163
|
+
"type": "object",
|
|
164
|
+
"minProperties": 1,
|
|
165
|
+
"additionalProperties": true,
|
|
166
|
+
"propertyNames": {
|
|
167
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"Handle": {
|
|
171
|
+
"title": "Handle",
|
|
172
|
+
"type": "string",
|
|
173
|
+
"minLength": 22,
|
|
174
|
+
"maxLength": 43,
|
|
175
|
+
"pattern": "^[A-Za-z0-9_-]{22,43}$",
|
|
176
|
+
"description": "The Farm-generated handle of one reservation: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is what VTI-LNK-116 recommends). It is the `_id` of the trigger link (VTI-LNK-033) and is compared as a string. In a claim it MUST equal the document's `parentThreadId`. It confers no authority on its holder beyond the right to make one claim."
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
182
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
183
|
+
* per-specification and cannot be derived from the document alone, and
|
|
184
|
+
* item 2 needs the schema this carries.
|
|
185
|
+
*/
|
|
186
|
+
export const SPEC = {
|
|
187
|
+
typeUri: TYPE_URI,
|
|
188
|
+
isBearer: false,
|
|
189
|
+
isProofRequired: true,
|
|
190
|
+
isRecipientRequired: true,
|
|
191
|
+
isIssuedAtRequired: true,
|
|
192
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
196
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
197
|
+
* parties (§7.3 item 5).
|
|
198
|
+
*/
|
|
199
|
+
export const RESPONSE_SPEC = {
|
|
200
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
201
|
+
isBearer: false,
|
|
202
|
+
isProofRequired: true,
|
|
203
|
+
isRecipientRequired: true,
|
|
204
|
+
isIssuedAtRequired: true,
|
|
205
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
206
|
+
};
|
|
207
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/provision/vta/redeem/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAKxF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,wSAAwS;IACvT,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;KACT;IACD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AAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;aACF;SACF;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;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,EAAE;YACf,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,wBAAwB;YACnC,aAAa,EAAE,8aAA8a;SAC9b;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"}
|
|
@@ -483,7 +483,7 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
483
483
|
export declare const SPEC: {
|
|
484
484
|
readonly typeUri: "https://trusttasks.org/spec/rooms/info/0.1";
|
|
485
485
|
readonly isBearer: false;
|
|
486
|
-
readonly isProofRequired:
|
|
486
|
+
readonly isProofRequired: true;
|
|
487
487
|
readonly isRecipientRequired: true;
|
|
488
488
|
readonly isIssuedAtRequired: false;
|
|
489
489
|
readonly payloadSchema: {
|
|
@@ -702,7 +702,7 @@ export declare const SPEC: {
|
|
|
702
702
|
export declare const RESPONSE_SPEC: {
|
|
703
703
|
readonly typeUri: "https://trusttasks.org/spec/rooms/info/0.1#response";
|
|
704
704
|
readonly isBearer: false;
|
|
705
|
-
readonly isProofRequired:
|
|
705
|
+
readonly isProofRequired: true;
|
|
706
706
|
readonly isRecipientRequired: true;
|
|
707
707
|
readonly isIssuedAtRequired: false;
|
|
708
708
|
readonly payloadSchema: {
|
|
@@ -477,7 +477,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
477
477
|
export const SPEC = {
|
|
478
478
|
typeUri: TYPE_URI,
|
|
479
479
|
isBearer: false,
|
|
480
|
-
isProofRequired:
|
|
480
|
+
isProofRequired: true,
|
|
481
481
|
isRecipientRequired: true,
|
|
482
482
|
isIssuedAtRequired: false,
|
|
483
483
|
payloadSchema: PAYLOAD_SCHEMA,
|
|
@@ -490,7 +490,7 @@ export const SPEC = {
|
|
|
490
490
|
export const RESPONSE_SPEC = {
|
|
491
491
|
typeUri: RESPONSE_TYPE_URI,
|
|
492
492
|
isBearer: false,
|
|
493
|
-
isProofRequired:
|
|
493
|
+
isProofRequired: true,
|
|
494
494
|
isRecipientRequired: true,
|
|
495
495
|
isIssuedAtRequired: false,
|
|
496
496
|
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|