@openvtc/trust-tasks 0.22.2 → 0.22.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vta/webvh/dids/create/1.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB;IACE,IAAI,EAAE,WAAW,CAAC;CACnB,GACD;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,EAAE,EAAE,CAAC;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,EAAE,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CA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;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0OjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqI1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,415 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/webvh/dids/create/1.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/create/1.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/create/1.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/vta/webvh/dids/create/1.1",
21
+ "title": "VTA WebVH DIDs Create — payload",
22
+ "description": "Mint a did:webvh: the VTA generates the keys, writes the log's first entry, and either hands it to a hosting server or returns it for the caller to serve.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "contextId"
27
+ ],
28
+ "properties": {
29
+ "contextId": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "description": "Context the DID belongs to. Its keys are minted here, and deleting the context destroys the DID."
33
+ },
34
+ "serverId": {
35
+ "type": "string",
36
+ "description": "Hosting server to publish through. Absent means **serverless**: the caller serves the log itself at `url`, and the VTA holds no hosting registration for it."
37
+ },
38
+ "url": {
39
+ "type": "string",
40
+ "description": "Where the log will be served, for the serverless case. The DID's identity derives from this location, so changing it later is only possible for a `portable` DID."
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "description": "Explicit path label under the host. Shorthand for pathMode `explicit`; supplying both is an error."
45
+ },
46
+ "pathMode": {
47
+ "$ref": "#/$defs/WebvhPathMode",
48
+ "description": "How the path under the host is chosen. Absent means `autoAssign`."
49
+ },
50
+ "domain": {
51
+ "type": "string",
52
+ "description": "Hosting domain to publish under, when the server serves more than one."
53
+ },
54
+ "label": {
55
+ "type": "string",
56
+ "maxLength": 256
57
+ },
58
+ "portable": {
59
+ "type": "boolean",
60
+ "default": false,
61
+ "description": "Whether this DID may later move to another domain and keep its identity. **Fixed at creation** — portability is committed in the first log entry and cannot be added afterwards. A DID created non-portable is tied to where it was published for its whole life."
62
+ },
63
+ "addMediatorService": {
64
+ "type": "boolean",
65
+ "description": "Add a DIDComm mediator service entry to the document."
66
+ },
67
+ "addTspService": {
68
+ "type": "boolean",
69
+ "description": "Add a TSP transport service entry to the document."
70
+ },
71
+ "additionalServices": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object"
75
+ },
76
+ "description": "Further service entries, verbatim."
77
+ },
78
+ "preRotationCount": {
79
+ "type": "integer",
80
+ "minimum": 0,
81
+ "description": "How many successor keys to commit in advance. **`0` disables pre-rotation**, which means a compromise of the current key cannot be recovered from by rotating: the successor was never committed, so a thief can rotate to their own key as convincingly as the owner can."
82
+ },
83
+ "didDocument": {
84
+ "type": "object",
85
+ "description": "A DID document to publish rather than one the VTA composes."
86
+ },
87
+ "didLog": {
88
+ "type": "string",
89
+ "description": "An existing log to adopt, for importing a DID minted elsewhere."
90
+ },
91
+ "setPrimary": {
92
+ "type": "boolean",
93
+ "description": "Make this the context's primary DID."
94
+ },
95
+ "signingKeyId": {
96
+ "type": "string",
97
+ "description": "Existing key to sign log entries with. Absent mints a new one."
98
+ },
99
+ "kaKeyId": {
100
+ "type": "string",
101
+ "description": "Existing key-agreement key to publish. Absent mints a new one."
102
+ },
103
+ "template": {
104
+ "type": "string",
105
+ "description": "DID template to render the document from (see vta/did-templates/*)."
106
+ },
107
+ "templateContext": {
108
+ "type": "string",
109
+ "description": "Context whose templates to resolve `template` against. Absent uses the global scope, which is a different namespace and may hold a different template of the same name."
110
+ },
111
+ "templateVars": {
112
+ "type": "object",
113
+ "additionalProperties": {
114
+ "type": "string"
115
+ },
116
+ "description": "Variables for the template's placeholders."
117
+ },
118
+ "ext": {
119
+ "$ref": "#/$defs/Ext"
120
+ }
121
+ },
122
+ "$defs": {
123
+ "WebvhPathMode": {
124
+ "title": "WebvhPathMode",
125
+ "description": "Where under the host the DID is served. `wellKnown` puts it at the host root (`/.well-known/did.jsonl`) — at most one DID per host can hold that. `explicit` names the path. `autoAssign` lets the server allocate one.",
126
+ "oneOf": [
127
+ {
128
+ "type": "object",
129
+ "additionalProperties": false,
130
+ "required": [
131
+ "mode"
132
+ ],
133
+ "properties": {
134
+ "mode": {
135
+ "const": "wellKnown"
136
+ }
137
+ }
138
+ },
139
+ {
140
+ "type": "object",
141
+ "additionalProperties": false,
142
+ "required": [
143
+ "mode",
144
+ "path"
145
+ ],
146
+ "properties": {
147
+ "mode": {
148
+ "const": "explicit"
149
+ },
150
+ "path": {
151
+ "type": "string",
152
+ "minLength": 1
153
+ }
154
+ }
155
+ },
156
+ {
157
+ "type": "object",
158
+ "additionalProperties": false,
159
+ "required": [
160
+ "mode"
161
+ ],
162
+ "properties": {
163
+ "mode": {
164
+ "const": "autoAssign"
165
+ }
166
+ }
167
+ }
168
+ ]
169
+ },
170
+ "Response": {
171
+ "$anchor": "response",
172
+ "title": "VTA WebVH DIDs Create — response payload",
173
+ "description": "Success response to vta/webvh/dids/create. Type https://trusttasks.org/spec/vta/webvh/dids/create/1.1#response.",
174
+ "type": "object",
175
+ "additionalProperties": false,
176
+ "required": [
177
+ "did",
178
+ "contextId",
179
+ "serverless",
180
+ "scid",
181
+ "portable",
182
+ "signingKeyId",
183
+ "kaKeyId",
184
+ "preRotationKeyCount",
185
+ "createdAt"
186
+ ],
187
+ "properties": {
188
+ "did": {
189
+ "type": "string"
190
+ },
191
+ "contextId": {
192
+ "type": "string"
193
+ },
194
+ "serverId": {
195
+ "type": "string",
196
+ "description": "The hosting server the DID was published through. Absent exactly when `serverless` is true."
197
+ },
198
+ "serverless": {
199
+ "type": "boolean",
200
+ "description": "True when no hosting server was published to: the VTA holds the log, and the DID does not resolve until the caller serves `logEntry` at the DID's URL. Stated, rather than left to be inferred from an absent `serverId`, so a client can refuse to rely on a DID nobody serves."
201
+ },
202
+ "mnemonic": {
203
+ "type": "string",
204
+ "description": "The hosting server's handle for the record. Absent for a serverless DID."
205
+ },
206
+ "scid": {
207
+ "type": "string",
208
+ "description": "Self-certifying identifier committing to the log's first entry."
209
+ },
210
+ "portable": {
211
+ "type": "boolean"
212
+ },
213
+ "signingKeyId": {
214
+ "type": "string"
215
+ },
216
+ "kaKeyId": {
217
+ "type": "string"
218
+ },
219
+ "preRotationKeyCount": {
220
+ "type": "integer",
221
+ "minimum": 0,
222
+ "description": "Successor keys committed. `0` means pre-rotation is off for this DID."
223
+ },
224
+ "createdAt": {
225
+ "type": "string",
226
+ "format": "date-time"
227
+ },
228
+ "didDocument": {
229
+ "type": "object",
230
+ "description": "The published document, when the VTA composed one."
231
+ },
232
+ "logEntry": {
233
+ "type": "string",
234
+ "description": "The log's first entry. For a serverless DID this is what the caller must serve — the DID does not resolve until they do."
235
+ },
236
+ "ext": {
237
+ "$ref": "#/$defs/Ext"
238
+ }
239
+ }
240
+ },
241
+ "Ext": {
242
+ "title": "Ext",
243
+ "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.",
244
+ "type": "object",
245
+ "minProperties": 1,
246
+ "additionalProperties": true,
247
+ "propertyNames": {
248
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
249
+ }
250
+ }
251
+ }
252
+ };
253
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
254
+ export const RESPONSE_PAYLOAD_SCHEMA = {
255
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
256
+ "$ref": "#/$defs/Response",
257
+ "$defs": {
258
+ "WebvhPathMode": {
259
+ "title": "WebvhPathMode",
260
+ "description": "Where under the host the DID is served. `wellKnown` puts it at the host root (`/.well-known/did.jsonl`) — at most one DID per host can hold that. `explicit` names the path. `autoAssign` lets the server allocate one.",
261
+ "oneOf": [
262
+ {
263
+ "type": "object",
264
+ "additionalProperties": false,
265
+ "required": [
266
+ "mode"
267
+ ],
268
+ "properties": {
269
+ "mode": {
270
+ "const": "wellKnown"
271
+ }
272
+ }
273
+ },
274
+ {
275
+ "type": "object",
276
+ "additionalProperties": false,
277
+ "required": [
278
+ "mode",
279
+ "path"
280
+ ],
281
+ "properties": {
282
+ "mode": {
283
+ "const": "explicit"
284
+ },
285
+ "path": {
286
+ "type": "string",
287
+ "minLength": 1
288
+ }
289
+ }
290
+ },
291
+ {
292
+ "type": "object",
293
+ "additionalProperties": false,
294
+ "required": [
295
+ "mode"
296
+ ],
297
+ "properties": {
298
+ "mode": {
299
+ "const": "autoAssign"
300
+ }
301
+ }
302
+ }
303
+ ]
304
+ },
305
+ "Response": {
306
+ "$anchor": "response",
307
+ "title": "VTA WebVH DIDs Create — response payload",
308
+ "description": "Success response to vta/webvh/dids/create. Type https://trusttasks.org/spec/vta/webvh/dids/create/1.1#response.",
309
+ "type": "object",
310
+ "additionalProperties": false,
311
+ "required": [
312
+ "did",
313
+ "contextId",
314
+ "serverless",
315
+ "scid",
316
+ "portable",
317
+ "signingKeyId",
318
+ "kaKeyId",
319
+ "preRotationKeyCount",
320
+ "createdAt"
321
+ ],
322
+ "properties": {
323
+ "did": {
324
+ "type": "string"
325
+ },
326
+ "contextId": {
327
+ "type": "string"
328
+ },
329
+ "serverId": {
330
+ "type": "string",
331
+ "description": "The hosting server the DID was published through. Absent exactly when `serverless` is true."
332
+ },
333
+ "serverless": {
334
+ "type": "boolean",
335
+ "description": "True when no hosting server was published to: the VTA holds the log, and the DID does not resolve until the caller serves `logEntry` at the DID's URL. Stated, rather than left to be inferred from an absent `serverId`, so a client can refuse to rely on a DID nobody serves."
336
+ },
337
+ "mnemonic": {
338
+ "type": "string",
339
+ "description": "The hosting server's handle for the record. Absent for a serverless DID."
340
+ },
341
+ "scid": {
342
+ "type": "string",
343
+ "description": "Self-certifying identifier committing to the log's first entry."
344
+ },
345
+ "portable": {
346
+ "type": "boolean"
347
+ },
348
+ "signingKeyId": {
349
+ "type": "string"
350
+ },
351
+ "kaKeyId": {
352
+ "type": "string"
353
+ },
354
+ "preRotationKeyCount": {
355
+ "type": "integer",
356
+ "minimum": 0,
357
+ "description": "Successor keys committed. `0` means pre-rotation is off for this DID."
358
+ },
359
+ "createdAt": {
360
+ "type": "string",
361
+ "format": "date-time"
362
+ },
363
+ "didDocument": {
364
+ "type": "object",
365
+ "description": "The published document, when the VTA composed one."
366
+ },
367
+ "logEntry": {
368
+ "type": "string",
369
+ "description": "The log's first entry. For a serverless DID this is what the caller must serve — the DID does not resolve until they do."
370
+ },
371
+ "ext": {
372
+ "$ref": "#/$defs/Ext"
373
+ }
374
+ }
375
+ },
376
+ "Ext": {
377
+ "title": "Ext",
378
+ "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.",
379
+ "type": "object",
380
+ "minProperties": 1,
381
+ "additionalProperties": true,
382
+ "propertyNames": {
383
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
384
+ }
385
+ }
386
+ }
387
+ };
388
+ /**
389
+ * SPEC.md §7.2 policy for the request variant, from this specification's
390
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
391
+ * per-specification and cannot be derived from the document alone, and
392
+ * item 2 needs the schema this carries.
393
+ */
394
+ export const SPEC = {
395
+ typeUri: TYPE_URI,
396
+ isBearer: false,
397
+ isProofRequired: true,
398
+ isRecipientRequired: true,
399
+ isIssuedAtRequired: true,
400
+ payloadSchema: PAYLOAD_SCHEMA,
401
+ };
402
+ /**
403
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
404
+ * tracks the *issuer* party's requirement because a response swaps the
405
+ * parties (§7.3 item 5).
406
+ */
407
+ export const RESPONSE_SPEC = {
408
+ typeUri: RESPONSE_TYPE_URI,
409
+ isBearer: false,
410
+ isProofRequired: true,
411
+ isRecipientRequired: true,
412
+ isIssuedAtRequired: true,
413
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
414
+ };
415
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vta/webvh/dids/create/1.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkJH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,uDAAuD;IAC9D,OAAO,EAAE,iCAAiC;IAC1C,aAAa,EAAE,4JAA4J;IAC3K,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;KACZ;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,kGAAkG;SAClH;QACD,UAAU,EAAE;YACV,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,8JAA8J;SAC9K;QACD,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,mKAAmK;SACnL;QACD,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,oGAAoG;SACpH;QACD,UAAU,EAAE;YACV,MAAM,EAAE,uBAAuB;YAC/B,aAAa,EAAE,mEAAmE;SACnF;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,wEAAwE;SACxF;QACD,OAAO,EAAE;YACP,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,GAAG;SACjB;QACD,UAAU,EAAE;YACV,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,KAAK;YAChB,aAAa,EAAE,mQAAmQ;SACnR;QACD,oBAAoB,EAAE;YACpB,MAAM,EAAE,SAAS;YACjB,aAAa,EAAE,uDAAuD;SACvE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,EAAE;oBACrB,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,CAAC;oBACZ,aAAa,EAAE,uEAAuE;iBACvF;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,QAAQ;oBAChB,QAAQ,EAAE,WAAW;iBACtB;gBACD,aAAa,EAAE;oBACb,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,oDAAoD;iBACpE;gBACD,UAAU,EAAE;oBACV,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,0HAA0H;iBAC1I;gBACD,KAAK,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;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"}
@@ -0,0 +1,176 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/members/step-up-passkey-notice/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * The VTC tells a member that a step-up passkey was enrolled for them or revoked from them, naming who acted and when. Unsolicited: the member did not ask, and may be offline.
8
+ */
9
+ export interface VTCMembersStepUpPasskeyNoticePayload {
10
+ /**
11
+ * `enrolled` — a step-up passkey (auth/passkey/enroll/invite or auth/passkey/enroll/finish, purpose stepUp) is now bound to the member. `revoked` — one was unbound (auth/passkey/revoke/finish).
12
+ */
13
+ event: "enrolled" | "revoked";
14
+ /**
15
+ * The member's own DID — the notice's recipient. Carried in the payload as well as the envelope so that a forwarded notice, detached from its transport, still names its subject.
16
+ */
17
+ did: string;
18
+ /**
19
+ * Durable identifier of the step-up credential, as auth/passkey/revoke/start and auth/passkey/admin-list carry it: opaque, non-secret metadata, never key material. Lets the member recognise or distinguish a credential without disclosing anything that would help an attacker.
20
+ */
21
+ credentialId: string;
22
+ /**
23
+ * Who acted: the member themselves (equal to `did`) when they enrolled or revoked it on their own session, or an administrator's DID when they invited the enrollment or revoked for the member. A `by` other than `did` is the signal this task exists to carry — act on someone else's behalf is exactly the account-takeover shape a silent change would hide.
24
+ */
25
+ by: string;
26
+ /**
27
+ * When the event took effect at the VTC — not when the notice was sent, which differs whenever the member was offline.
28
+ */
29
+ at: string;
30
+ /**
31
+ * The acting administrator's stated reason, verbatim, when one was given. Absent rather than empty when none was: a community that chose not to explain is itself information. Never populated for a member acting on their own credential — they already know why.
32
+ */
33
+ reason?: 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 };
38
+ /** Trust Task type URI. */
39
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/members/step-up-passkey-notice/0.1";
40
+ /** Stable alias for this specification's request payload shape. */
41
+ export type Payload = VTCMembersStepUpPasskeyNoticePayload;
42
+ /**
43
+ * This specification's payload schema, as a value.
44
+ *
45
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
46
+ * rather than only as a `.json` file because TypeScript types are erased
47
+ * at runtime: without a schema a consumer has nothing to validate, and
48
+ * every REQUIRED payload member is optional in practice. Cross-file
49
+ * `$ref`s are already inlined, so it needs no resolver.
50
+ */
51
+ export declare const PAYLOAD_SCHEMA: {
52
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
53
+ readonly $id: "https://trusttasks.org/spec/vtc/members/step-up-passkey-notice/0.1";
54
+ readonly title: "VTC Members — Step-up Passkey Notice — payload";
55
+ readonly description: "The VTC tells a member that a step-up passkey was enrolled for them or revoked from them, naming who acted and when. Unsolicited: the member did not ask, and may be offline.";
56
+ readonly type: "object";
57
+ readonly additionalProperties: false;
58
+ readonly required: readonly ["event", "did", "credentialId", "by", "at"];
59
+ readonly properties: {
60
+ readonly event: {
61
+ readonly type: "string";
62
+ readonly enum: readonly ["enrolled", "revoked"];
63
+ readonly description: "`enrolled` — a step-up passkey (auth/passkey/enroll/invite or auth/passkey/enroll/finish, purpose stepUp) is now bound to the member. `revoked` — one was unbound (auth/passkey/revoke/finish).";
64
+ };
65
+ readonly did: {
66
+ readonly type: "string";
67
+ readonly minLength: 1;
68
+ readonly description: "The member's own DID — the notice's recipient. Carried in the payload as well as the envelope so that a forwarded notice, detached from its transport, still names its subject.";
69
+ };
70
+ readonly credentialId: {
71
+ readonly type: "string";
72
+ readonly minLength: 1;
73
+ readonly description: "Durable identifier of the step-up credential, as auth/passkey/revoke/start and auth/passkey/admin-list carry it: opaque, non-secret metadata, never key material. Lets the member recognise or distinguish a credential without disclosing anything that would help an attacker.";
74
+ };
75
+ readonly by: {
76
+ readonly type: "string";
77
+ readonly minLength: 1;
78
+ readonly description: "Who acted: the member themselves (equal to `did`) when they enrolled or revoked it on their own session, or an administrator's DID when they invited the enrollment or revoked for the member. A `by` other than `did` is the signal this task exists to carry — act on someone else's behalf is exactly the account-takeover shape a silent change would hide.";
79
+ };
80
+ readonly at: {
81
+ readonly type: "string";
82
+ readonly format: "date-time";
83
+ readonly description: "When the event took effect at the VTC — not when the notice was sent, which differs whenever the member was offline.";
84
+ };
85
+ readonly reason: {
86
+ readonly type: "string";
87
+ readonly maxLength: 1024;
88
+ readonly description: "The acting administrator's stated reason, verbatim, when one was given. Absent rather than empty when none was: a community that chose not to explain is itself information. Never populated for a member acting on their own credential — they already know why.";
89
+ };
90
+ readonly ext: {
91
+ readonly $ref: "#/$defs/Ext";
92
+ };
93
+ };
94
+ readonly $defs: {
95
+ readonly Ext: {
96
+ readonly title: "Ext";
97
+ 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.";
98
+ readonly type: "object";
99
+ readonly minProperties: 1;
100
+ readonly additionalProperties: true;
101
+ readonly propertyNames: {
102
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
103
+ };
104
+ };
105
+ };
106
+ };
107
+ /**
108
+ * SPEC.md §7.2 policy for the request variant, from this specification's
109
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
110
+ * per-specification and cannot be derived from the document alone, and
111
+ * item 2 needs the schema this carries.
112
+ */
113
+ export declare const SPEC: {
114
+ readonly typeUri: "https://trusttasks.org/spec/vtc/members/step-up-passkey-notice/0.1";
115
+ readonly isBearer: false;
116
+ readonly isProofRequired: true;
117
+ readonly isRecipientRequired: true;
118
+ readonly isIssuedAtRequired: true;
119
+ readonly payloadSchema: {
120
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
121
+ readonly $id: "https://trusttasks.org/spec/vtc/members/step-up-passkey-notice/0.1";
122
+ readonly title: "VTC Members — Step-up Passkey Notice — payload";
123
+ readonly description: "The VTC tells a member that a step-up passkey was enrolled for them or revoked from them, naming who acted and when. Unsolicited: the member did not ask, and may be offline.";
124
+ readonly type: "object";
125
+ readonly additionalProperties: false;
126
+ readonly required: readonly ["event", "did", "credentialId", "by", "at"];
127
+ readonly properties: {
128
+ readonly event: {
129
+ readonly type: "string";
130
+ readonly enum: readonly ["enrolled", "revoked"];
131
+ readonly description: "`enrolled` — a step-up passkey (auth/passkey/enroll/invite or auth/passkey/enroll/finish, purpose stepUp) is now bound to the member. `revoked` — one was unbound (auth/passkey/revoke/finish).";
132
+ };
133
+ readonly did: {
134
+ readonly type: "string";
135
+ readonly minLength: 1;
136
+ readonly description: "The member's own DID — the notice's recipient. Carried in the payload as well as the envelope so that a forwarded notice, detached from its transport, still names its subject.";
137
+ };
138
+ readonly credentialId: {
139
+ readonly type: "string";
140
+ readonly minLength: 1;
141
+ readonly description: "Durable identifier of the step-up credential, as auth/passkey/revoke/start and auth/passkey/admin-list carry it: opaque, non-secret metadata, never key material. Lets the member recognise or distinguish a credential without disclosing anything that would help an attacker.";
142
+ };
143
+ readonly by: {
144
+ readonly type: "string";
145
+ readonly minLength: 1;
146
+ readonly description: "Who acted: the member themselves (equal to `did`) when they enrolled or revoked it on their own session, or an administrator's DID when they invited the enrollment or revoked for the member. A `by` other than `did` is the signal this task exists to carry — act on someone else's behalf is exactly the account-takeover shape a silent change would hide.";
147
+ };
148
+ readonly at: {
149
+ readonly type: "string";
150
+ readonly format: "date-time";
151
+ readonly description: "When the event took effect at the VTC — not when the notice was sent, which differs whenever the member was offline.";
152
+ };
153
+ readonly reason: {
154
+ readonly type: "string";
155
+ readonly maxLength: 1024;
156
+ readonly description: "The acting administrator's stated reason, verbatim, when one was given. Absent rather than empty when none was: a community that chose not to explain is itself information. Never populated for a member acting on their own credential — they already know why.";
157
+ };
158
+ readonly ext: {
159
+ readonly $ref: "#/$defs/Ext";
160
+ };
161
+ };
162
+ readonly $defs: {
163
+ readonly Ext: {
164
+ readonly title: "Ext";
165
+ 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.";
166
+ readonly type: "object";
167
+ readonly minProperties: 1;
168
+ readonly additionalProperties: true;
169
+ readonly propertyNames: {
170
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
171
+ };
172
+ };
173
+ };
174
+ };
175
+ };
176
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/members/step-up-passkey-notice/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,oEAA6E,CAAC;AAEtG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEjB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC"}