@openvtc/trust-tasks 0.12.9 → 0.12.11

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.
Files changed (68) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/vtc/_shared/0.1/endorsement.d.ts +1 -1
  6. package/dist/vtc/ceremonies/list/0.1/payload.d.ts +22 -0
  7. package/dist/vtc/ceremonies/list/0.1/payload.d.ts.map +1 -1
  8. package/dist/vtc/ceremonies/list/0.1/payload.js +8 -0
  9. package/dist/vtc/ceremonies/list/0.1/payload.js.map +1 -1
  10. package/dist/vtc/community/profile/show/0.1/payload.d.ts +81 -22
  11. package/dist/vtc/community/profile/show/0.1/payload.d.ts.map +1 -1
  12. package/dist/vtc/community/profile/show/0.1/payload.js +34 -8
  13. package/dist/vtc/community/profile/show/0.1/payload.js.map +1 -1
  14. package/dist/vtc/community/profile/update/0.1/payload.d.ts +81 -22
  15. package/dist/vtc/community/profile/update/0.1/payload.d.ts.map +1 -1
  16. package/dist/vtc/community/profile/update/0.1/payload.js +34 -8
  17. package/dist/vtc/community/profile/update/0.1/payload.js.map +1 -1
  18. package/dist/vtc/endorsements/issue/0.1/payload.d.ts +65 -65
  19. package/dist/vtc/endorsements/issue/0.1/payload.d.ts.map +1 -1
  20. package/dist/vtc/endorsements/issue/0.1/payload.js +36 -32
  21. package/dist/vtc/endorsements/issue/0.1/payload.js.map +1 -1
  22. package/dist/vtc/endorsements/list/0.1/payload.d.ts +41 -61
  23. package/dist/vtc/endorsements/list/0.1/payload.d.ts.map +1 -1
  24. package/dist/vtc/endorsements/list/0.1/payload.js +24 -30
  25. package/dist/vtc/endorsements/list/0.1/payload.js.map +1 -1
  26. package/dist/vtc/endorsements/show/0.1/payload.d.ts +41 -61
  27. package/dist/vtc/endorsements/show/0.1/payload.d.ts.map +1 -1
  28. package/dist/vtc/endorsements/show/0.1/payload.js +24 -30
  29. package/dist/vtc/endorsements/show/0.1/payload.js.map +1 -1
  30. package/dist/vtc/install/claim/finish/0.2/payload.d.ts +271 -0
  31. package/dist/vtc/install/claim/finish/0.2/payload.d.ts.map +1 -0
  32. package/dist/vtc/install/claim/finish/0.2/payload.js +152 -0
  33. package/dist/vtc/install/claim/finish/0.2/payload.js.map +1 -0
  34. package/dist/vtc/install/claim/start/0.1/payload.d.ts +18 -0
  35. package/dist/vtc/install/claim/start/0.1/payload.d.ts.map +1 -1
  36. package/dist/vtc/install/claim/start/0.1/payload.js +5 -0
  37. package/dist/vtc/install/claim/start/0.1/payload.js.map +1 -1
  38. package/dist/vtc/install/claim/start/0.2/payload.d.ts +264 -0
  39. package/dist/vtc/install/claim/start/0.2/payload.d.ts.map +1 -0
  40. package/dist/vtc/install/claim/start/0.2/payload.js +145 -0
  41. package/dist/vtc/install/claim/start/0.2/payload.js.map +1 -0
  42. package/dist/vtc/registry/diagnostics/0.1/payload.d.ts +491 -0
  43. package/dist/vtc/registry/diagnostics/0.1/payload.d.ts.map +1 -1
  44. package/dist/vtc/registry/diagnostics/0.1/payload.js +260 -0
  45. package/dist/vtc/registry/diagnostics/0.1/payload.js.map +1 -1
  46. package/dist/vtc/website/files/list/0.1/payload.d.ts +24 -0
  47. package/dist/vtc/website/files/list/0.1/payload.d.ts.map +1 -1
  48. package/dist/vtc/website/files/list/0.1/payload.js +10 -0
  49. package/dist/vtc/website/files/list/0.1/payload.js.map +1 -1
  50. package/dist/vtc/website/generations/list/0.1/payload.d.ts +48 -0
  51. package/dist/vtc/website/generations/list/0.1/payload.d.ts.map +1 -1
  52. package/dist/vtc/website/generations/list/0.1/payload.js +20 -0
  53. package/dist/vtc/website/generations/list/0.1/payload.js.map +1 -1
  54. package/package.json +1 -1
  55. package/src/index.ts +2 -0
  56. package/src/vtc/_shared/0.1/endorsement.ts +1 -1
  57. package/src/vtc/ceremonies/list/0.1/payload.ts +14 -0
  58. package/src/vtc/community/profile/show/0.1/payload.ts +47 -10
  59. package/src/vtc/community/profile/update/0.1/payload.ts +47 -10
  60. package/src/vtc/endorsements/issue/0.1/payload.ts +45 -41
  61. package/src/vtc/endorsements/list/0.1/payload.ts +29 -39
  62. package/src/vtc/endorsements/show/0.1/payload.ts +29 -39
  63. package/src/vtc/install/claim/finish/0.2/payload.ts +193 -0
  64. package/src/vtc/install/claim/start/0.1/payload.ts +13 -0
  65. package/src/vtc/install/claim/start/0.2/payload.ts +189 -0
  66. package/src/vtc/registry/diagnostics/0.1/payload.ts +343 -0
  67. package/src/vtc/website/files/list/0.1/payload.ts +14 -0
  68. package/src/vtc/website/generations/list/0.1/payload.ts +28 -0
@@ -0,0 +1,264 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/install/claim/start/0.2/payload.schema.json
4
+ */
5
+ export interface VTCInstallClaimStartPayload {
6
+ /**
7
+ * The EdDSA-signed install JWT (aud=vtc-install) printed by vtc setup.
8
+ */
9
+ installToken: string;
10
+ /**
11
+ * A short code the operator receives **out of band**, alongside the install URL but through a separate channel.
12
+ *
13
+ * The second factor on a claim: the URL alone is deliberately insufficient, so a stolen or forwarded install link cannot claim the passkey by itself. A maintainer that mints one shows the plaintext once and stores only a hash; a claim that omits or fails it is refused before any registration challenge is issued.
14
+ *
15
+ * Optional in the schema because a maintainer may issue tokens without one — but a maintainer that does issue one MUST require it, and SHOULD issue one for any invite that travels over a channel it does not control.
16
+ */
17
+ claimSecret?: string;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * 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.
22
+ */
23
+ export interface Ext {
24
+ [k: string]: unknown | undefined;
25
+ }
26
+ export interface VTCInstallClaimStartResponsePayload {
27
+ /**
28
+ * Echoes the install token's jti (a UUID); pass it back to claim/finish.
29
+ */
30
+ registrationId: string;
31
+ /**
32
+ * WebAuthn PublicKeyCredentialCreationOptions (opaque here); pubKeyCredParams = [{public-key, -8}].
33
+ */
34
+ options: {};
35
+ ext?: Ext;
36
+ }
37
+ /** Trust Task type URI. */
38
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/install/claim/start/0.2";
39
+ /** Stable alias for this specification's request payload shape. */
40
+ export type Payload = VTCInstallClaimStartPayload;
41
+ /** Trust Task response type URI (request type URI + "#response"). */
42
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/install/claim/start/0.2#response";
43
+ /** Stable alias for this specification's success-response payload shape. */
44
+ export type Response = VTCInstallClaimStartResponsePayload;
45
+ /**
46
+ * This specification's payload schema, as a value.
47
+ *
48
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
49
+ * rather than only as a `.json` file because TypeScript types are erased
50
+ * at runtime: without a schema a consumer has nothing to validate, and
51
+ * every REQUIRED payload member is optional in practice. Cross-file
52
+ * `$ref`s are already inlined, so it needs no resolver.
53
+ */
54
+ export declare const PAYLOAD_SCHEMA: {
55
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
56
+ readonly $id: "https://trusttasks.org/spec/vtc/install/claim/start/0.2";
57
+ readonly title: "VTC Install Claim Start — payload";
58
+ readonly type: "object";
59
+ readonly additionalProperties: false;
60
+ readonly required: readonly ["installToken"];
61
+ readonly properties: {
62
+ readonly installToken: {
63
+ readonly type: "string";
64
+ readonly minLength: 1;
65
+ readonly description: "The EdDSA-signed install JWT (aud=vtc-install) printed by vtc setup.";
66
+ };
67
+ readonly claimSecret: {
68
+ readonly type: "string";
69
+ readonly minLength: 1;
70
+ readonly description: "A short code the operator receives **out of band**, alongside the install URL but through a separate channel.\n\nThe second factor on a claim: the URL alone is deliberately insufficient, so a stolen or forwarded install link cannot claim the passkey by itself. A maintainer that mints one shows the plaintext once and stores only a hash; a claim that omits or fails it is refused before any registration challenge is issued.\n\nOptional in the schema because a maintainer may issue tokens without one — but a maintainer that does issue one MUST require it, and SHOULD issue one for any invite that travels over a channel it does not control.";
71
+ };
72
+ readonly ext: {
73
+ readonly $ref: "#/$defs/Ext";
74
+ };
75
+ };
76
+ readonly $defs: {
77
+ readonly Response: {
78
+ readonly $anchor: "response";
79
+ readonly title: "VTC Install Claim Start — response payload";
80
+ readonly type: "object";
81
+ readonly additionalProperties: false;
82
+ readonly required: readonly ["registrationId", "options"];
83
+ readonly properties: {
84
+ readonly registrationId: {
85
+ readonly type: "string";
86
+ readonly minLength: 1;
87
+ readonly description: "Echoes the install token's jti (a UUID); pass it back to claim/finish.";
88
+ };
89
+ readonly options: {
90
+ readonly type: "object";
91
+ readonly description: "WebAuthn PublicKeyCredentialCreationOptions (opaque here); pubKeyCredParams = [{public-key, -8}].";
92
+ };
93
+ readonly ext: {
94
+ readonly $ref: "#/$defs/Ext";
95
+ };
96
+ };
97
+ };
98
+ readonly Ext: {
99
+ readonly title: "Ext";
100
+ 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.";
101
+ readonly type: "object";
102
+ readonly minProperties: 1;
103
+ readonly additionalProperties: true;
104
+ readonly propertyNames: {
105
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
106
+ };
107
+ };
108
+ };
109
+ };
110
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
111
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
112
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
113
+ readonly $ref: "#/$defs/Response";
114
+ readonly $defs: {
115
+ readonly Response: {
116
+ readonly $anchor: "response";
117
+ readonly title: "VTC Install Claim Start — response payload";
118
+ readonly type: "object";
119
+ readonly additionalProperties: false;
120
+ readonly required: readonly ["registrationId", "options"];
121
+ readonly properties: {
122
+ readonly registrationId: {
123
+ readonly type: "string";
124
+ readonly minLength: 1;
125
+ readonly description: "Echoes the install token's jti (a UUID); pass it back to claim/finish.";
126
+ };
127
+ readonly options: {
128
+ readonly type: "object";
129
+ readonly description: "WebAuthn PublicKeyCredentialCreationOptions (opaque here); pubKeyCredParams = [{public-key, -8}].";
130
+ };
131
+ readonly ext: {
132
+ readonly $ref: "#/$defs/Ext";
133
+ };
134
+ };
135
+ };
136
+ readonly Ext: {
137
+ readonly title: "Ext";
138
+ 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.";
139
+ readonly type: "object";
140
+ readonly minProperties: 1;
141
+ readonly additionalProperties: true;
142
+ readonly propertyNames: {
143
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
144
+ };
145
+ };
146
+ };
147
+ };
148
+ /**
149
+ * SPEC.md §7.2 policy for the request variant, from this specification's
150
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
151
+ * per-specification and cannot be derived from the document alone, and
152
+ * item 2 needs the schema this carries.
153
+ */
154
+ export declare const SPEC: {
155
+ readonly typeUri: "https://trusttasks.org/spec/vtc/install/claim/start/0.2";
156
+ readonly isBearer: false;
157
+ readonly isProofRequired: false;
158
+ readonly isRecipientRequired: true;
159
+ readonly payloadSchema: {
160
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
161
+ readonly $id: "https://trusttasks.org/spec/vtc/install/claim/start/0.2";
162
+ readonly title: "VTC Install Claim Start — payload";
163
+ readonly type: "object";
164
+ readonly additionalProperties: false;
165
+ readonly required: readonly ["installToken"];
166
+ readonly properties: {
167
+ readonly installToken: {
168
+ readonly type: "string";
169
+ readonly minLength: 1;
170
+ readonly description: "The EdDSA-signed install JWT (aud=vtc-install) printed by vtc setup.";
171
+ };
172
+ readonly claimSecret: {
173
+ readonly type: "string";
174
+ readonly minLength: 1;
175
+ readonly description: "A short code the operator receives **out of band**, alongside the install URL but through a separate channel.\n\nThe second factor on a claim: the URL alone is deliberately insufficient, so a stolen or forwarded install link cannot claim the passkey by itself. A maintainer that mints one shows the plaintext once and stores only a hash; a claim that omits or fails it is refused before any registration challenge is issued.\n\nOptional in the schema because a maintainer may issue tokens without one — but a maintainer that does issue one MUST require it, and SHOULD issue one for any invite that travels over a channel it does not control.";
176
+ };
177
+ readonly ext: {
178
+ readonly $ref: "#/$defs/Ext";
179
+ };
180
+ };
181
+ readonly $defs: {
182
+ readonly Response: {
183
+ readonly $anchor: "response";
184
+ readonly title: "VTC Install Claim Start — response payload";
185
+ readonly type: "object";
186
+ readonly additionalProperties: false;
187
+ readonly required: readonly ["registrationId", "options"];
188
+ readonly properties: {
189
+ readonly registrationId: {
190
+ readonly type: "string";
191
+ readonly minLength: 1;
192
+ readonly description: "Echoes the install token's jti (a UUID); pass it back to claim/finish.";
193
+ };
194
+ readonly options: {
195
+ readonly type: "object";
196
+ readonly description: "WebAuthn PublicKeyCredentialCreationOptions (opaque here); pubKeyCredParams = [{public-key, -8}].";
197
+ };
198
+ readonly ext: {
199
+ readonly $ref: "#/$defs/Ext";
200
+ };
201
+ };
202
+ };
203
+ readonly Ext: {
204
+ readonly title: "Ext";
205
+ 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.";
206
+ readonly type: "object";
207
+ readonly minProperties: 1;
208
+ readonly additionalProperties: true;
209
+ readonly propertyNames: {
210
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
211
+ };
212
+ };
213
+ };
214
+ };
215
+ };
216
+ /**
217
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
218
+ * tracks the *issuer* party's requirement because a response swaps the
219
+ * parties (§7.3 item 5).
220
+ */
221
+ export declare const RESPONSE_SPEC: {
222
+ readonly typeUri: "https://trusttasks.org/spec/vtc/install/claim/start/0.2#response";
223
+ readonly isBearer: false;
224
+ readonly isProofRequired: false;
225
+ readonly isRecipientRequired: true;
226
+ readonly payloadSchema: {
227
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
228
+ readonly $ref: "#/$defs/Response";
229
+ readonly $defs: {
230
+ readonly Response: {
231
+ readonly $anchor: "response";
232
+ readonly title: "VTC Install Claim Start — response payload";
233
+ readonly type: "object";
234
+ readonly additionalProperties: false;
235
+ readonly required: readonly ["registrationId", "options"];
236
+ readonly properties: {
237
+ readonly registrationId: {
238
+ readonly type: "string";
239
+ readonly minLength: 1;
240
+ readonly description: "Echoes the install token's jti (a UUID); pass it back to claim/finish.";
241
+ };
242
+ readonly options: {
243
+ readonly type: "object";
244
+ readonly description: "WebAuthn PublicKeyCredentialCreationOptions (opaque here); pubKeyCredParams = [{public-key, -8}].";
245
+ };
246
+ readonly ext: {
247
+ readonly $ref: "#/$defs/Ext";
248
+ };
249
+ };
250
+ };
251
+ readonly Ext: {
252
+ readonly title: "Ext";
253
+ 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.";
254
+ readonly type: "object";
255
+ readonly minProperties: 1;
256
+ readonly additionalProperties: true;
257
+ readonly propertyNames: {
258
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
259
+ };
260
+ };
261
+ };
262
+ };
263
+ };
264
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/install/claim/start/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,EAAE,CAAC;IACZ,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,yDAAkE,CAAC;AAE3F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAElD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,kEAA2E,CAAC;AAE7G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,mCAAmC,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
@@ -0,0 +1,145 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/install/claim/start/0.2/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/install/claim/start/0.2";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/install/claim/start/0.2#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vtc/install/claim/start/0.2",
21
+ "title": "VTC Install Claim Start — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": [
25
+ "installToken"
26
+ ],
27
+ "properties": {
28
+ "installToken": {
29
+ "type": "string",
30
+ "minLength": 1,
31
+ "description": "The EdDSA-signed install JWT (aud=vtc-install) printed by vtc setup."
32
+ },
33
+ "claimSecret": {
34
+ "type": "string",
35
+ "minLength": 1,
36
+ "description": "A short code the operator receives **out of band**, alongside the install URL but through a separate channel.\n\nThe second factor on a claim: the URL alone is deliberately insufficient, so a stolen or forwarded install link cannot claim the passkey by itself. A maintainer that mints one shows the plaintext once and stores only a hash; a claim that omits or fails it is refused before any registration challenge is issued.\n\nOptional in the schema because a maintainer may issue tokens without one — but a maintainer that does issue one MUST require it, and SHOULD issue one for any invite that travels over a channel it does not control."
37
+ },
38
+ "ext": {
39
+ "$ref": "#/$defs/Ext"
40
+ }
41
+ },
42
+ "$defs": {
43
+ "Response": {
44
+ "$anchor": "response",
45
+ "title": "VTC Install Claim Start — response payload",
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "registrationId",
50
+ "options"
51
+ ],
52
+ "properties": {
53
+ "registrationId": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "description": "Echoes the install token's jti (a UUID); pass it back to claim/finish."
57
+ },
58
+ "options": {
59
+ "type": "object",
60
+ "description": "WebAuthn PublicKeyCredentialCreationOptions (opaque here); pubKeyCredParams = [{public-key, -8}]."
61
+ },
62
+ "ext": {
63
+ "$ref": "#/$defs/Ext"
64
+ }
65
+ }
66
+ },
67
+ "Ext": {
68
+ "title": "Ext",
69
+ "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.",
70
+ "type": "object",
71
+ "minProperties": 1,
72
+ "additionalProperties": true,
73
+ "propertyNames": {
74
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
75
+ }
76
+ }
77
+ }
78
+ };
79
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
80
+ export const RESPONSE_PAYLOAD_SCHEMA = {
81
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
82
+ "$ref": "#/$defs/Response",
83
+ "$defs": {
84
+ "Response": {
85
+ "$anchor": "response",
86
+ "title": "VTC Install Claim Start — response payload",
87
+ "type": "object",
88
+ "additionalProperties": false,
89
+ "required": [
90
+ "registrationId",
91
+ "options"
92
+ ],
93
+ "properties": {
94
+ "registrationId": {
95
+ "type": "string",
96
+ "minLength": 1,
97
+ "description": "Echoes the install token's jti (a UUID); pass it back to claim/finish."
98
+ },
99
+ "options": {
100
+ "type": "object",
101
+ "description": "WebAuthn PublicKeyCredentialCreationOptions (opaque here); pubKeyCredParams = [{public-key, -8}]."
102
+ },
103
+ "ext": {
104
+ "$ref": "#/$defs/Ext"
105
+ }
106
+ }
107
+ },
108
+ "Ext": {
109
+ "title": "Ext",
110
+ "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.",
111
+ "type": "object",
112
+ "minProperties": 1,
113
+ "additionalProperties": true,
114
+ "propertyNames": {
115
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
116
+ }
117
+ }
118
+ }
119
+ };
120
+ /**
121
+ * SPEC.md §7.2 policy for the request variant, from this specification's
122
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
123
+ * per-specification and cannot be derived from the document alone, and
124
+ * item 2 needs the schema this carries.
125
+ */
126
+ export const SPEC = {
127
+ typeUri: TYPE_URI,
128
+ isBearer: false,
129
+ isProofRequired: false,
130
+ isRecipientRequired: true,
131
+ payloadSchema: PAYLOAD_SCHEMA,
132
+ };
133
+ /**
134
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
135
+ * tracks the *issuer* party's requirement because a response swaps the
136
+ * parties (§7.3 item 5).
137
+ */
138
+ export const RESPONSE_SPEC = {
139
+ typeUri: RESPONSE_TYPE_URI,
140
+ isBearer: false,
141
+ isProofRequired: false,
142
+ isRecipientRequired: true,
143
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
144
+ };
145
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/install/claim/start/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,yDAAkE,CAAC;AAK3F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,kEAA2E,CAAC;AAK7G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,yDAAyD;IAChE,OAAO,EAAE,mCAAmC;IAC5C,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,cAAc;KACf;IACD,YAAY,EAAE;QACZ,cAAc,EAAE;YACd,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,sEAAsE;SACtF;QACD,aAAa,EAAE;YACb,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,moBAAmoB;SACnpB;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,4CAA4C;YACrD,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,gBAAgB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