@openvtc/trust-tasks 0.19.2 → 0.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +215 -0
  2. package/dist/_shared/components.d.ts +298 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +14 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +14 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/keys/export-secret/0.1/payload.d.ts +309 -0
  9. package/dist/keys/export-secret/0.1/payload.d.ts.map +1 -0
  10. package/dist/keys/export-secret/0.1/payload.js +181 -0
  11. package/dist/keys/export-secret/0.1/payload.js.map +1 -0
  12. package/dist/vetting/_shared/0.1/identity-vetting.d.ts +11 -0
  13. package/dist/vetting/_shared/0.1/identity-vetting.d.ts.map +1 -0
  14. package/dist/vetting/_shared/0.1/identity-vetting.js +6 -0
  15. package/dist/vetting/_shared/0.1/identity-vetting.js.map +1 -0
  16. package/dist/vetting/_shared/0.1/vetting-card.d.ts +16 -0
  17. package/dist/vetting/_shared/0.1/vetting-card.d.ts.map +1 -0
  18. package/dist/vetting/_shared/0.1/vetting-card.js +6 -0
  19. package/dist/vetting/_shared/0.1/vetting-card.js.map +1 -0
  20. package/dist/vetting/_shared/0.1/vetting.d.ts +16 -0
  21. package/dist/vetting/_shared/0.1/vetting.d.ts.map +1 -0
  22. package/dist/vetting/_shared/0.1/vetting.js +6 -0
  23. package/dist/vetting/_shared/0.1/vetting.js.map +1 -0
  24. package/dist/vetting/decline/0.1/payload.d.ts +138 -0
  25. package/dist/vetting/decline/0.1/payload.d.ts.map +1 -0
  26. package/dist/vetting/decline/0.1/payload.js +81 -0
  27. package/dist/vetting/decline/0.1/payload.js.map +1 -0
  28. package/dist/vetting/request/0.1/payload.d.ts +1188 -0
  29. package/dist/vetting/request/0.1/payload.d.ts.map +1 -0
  30. package/dist/vetting/request/0.1/payload.js +596 -0
  31. package/dist/vetting/request/0.1/payload.js.map +1 -0
  32. package/dist/vetting/session/0.1/payload.d.ts +978 -0
  33. package/dist/vetting/session/0.1/payload.d.ts.map +1 -0
  34. package/dist/vetting/session/0.1/payload.js +570 -0
  35. package/dist/vetting/session/0.1/payload.js.map +1 -0
  36. package/dist/vtc/_shared/0.1/vetter-profile.d.ts +16 -0
  37. package/dist/vtc/_shared/0.1/vetter-profile.d.ts.map +1 -0
  38. package/dist/vtc/_shared/0.1/vetter-profile.js +6 -0
  39. package/dist/vtc/_shared/0.1/vetter-profile.js.map +1 -0
  40. package/dist/vtc/join-requests/manifest/0.2/payload.d.ts +1294 -0
  41. package/dist/vtc/join-requests/manifest/0.2/payload.d.ts.map +1 -0
  42. package/dist/vtc/join-requests/manifest/0.2/payload.js +667 -0
  43. package/dist/vtc/join-requests/manifest/0.2/payload.js.map +1 -0
  44. package/dist/vtc/vetting/revoke-statement/0.1/payload.d.ts +299 -0
  45. package/dist/vtc/vetting/revoke-statement/0.1/payload.d.ts.map +1 -0
  46. package/dist/vtc/vetting/revoke-statement/0.1/payload.js +172 -0
  47. package/dist/vtc/vetting/revoke-statement/0.1/payload.js.map +1 -0
  48. package/dist/vtc/vetting/vetters/grant/0.1/payload.d.ts +337 -0
  49. package/dist/vtc/vetting/vetters/grant/0.1/payload.d.ts.map +1 -0
  50. package/dist/vtc/vetting/vetters/grant/0.1/payload.js +183 -0
  51. package/dist/vtc/vetting/vetters/grant/0.1/payload.js.map +1 -0
  52. package/dist/vtc/vetting/vetters/list/0.1/payload.d.ts +1257 -0
  53. package/dist/vtc/vetting/vetters/list/0.1/payload.d.ts.map +1 -0
  54. package/dist/vtc/vetting/vetters/list/0.1/payload.js +597 -0
  55. package/dist/vtc/vetting/vetters/list/0.1/payload.js.map +1 -0
  56. package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +970 -0
  57. package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts.map +1 -0
  58. package/dist/vtc/vetting/vetters/profile/0.1/payload.js +463 -0
  59. package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -0
  60. package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +240 -0
  61. package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts.map +1 -0
  62. package/dist/vtc/vetting/vetters/resend/0.1/payload.js +137 -0
  63. package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/_shared/components.ts +318 -0
  66. package/src/index.ts +14 -0
  67. package/src/keys/export-secret/0.1/payload.ts +227 -0
  68. package/src/vetting/_shared/0.1/identity-vetting.ts +11 -0
  69. package/src/vetting/_shared/0.1/vetting-card.ts +17 -0
  70. package/src/vetting/_shared/0.1/vetting.ts +17 -0
  71. package/src/vetting/decline/0.1/payload.ts +111 -0
  72. package/src/vetting/request/0.1/payload.ts +799 -0
  73. package/src/vetting/session/0.1/payload.ts +629 -0
  74. package/src/vtc/_shared/0.1/vetter-profile.ts +17 -0
  75. package/src/vtc/join-requests/manifest/0.2/payload.ts +815 -0
  76. package/src/vtc/vetting/revoke-statement/0.1/payload.ts +218 -0
  77. package/src/vtc/vetting/vetters/grant/0.1/payload.ts +237 -0
  78. package/src/vtc/vetting/vetters/list/0.1/payload.ts +816 -0
  79. package/src/vtc/vetting/vetters/profile/0.1/payload.ts +647 -0
  80. package/src/vtc/vetting/vetters/resend/0.1/payload.ts +174 -0
@@ -0,0 +1,309 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/export-secret/0.1/payload.schema.json
4
+ */
5
+ import type { Ext, KeyType } from "../../../_shared/components.js";
6
+ /**
7
+ * Names one key whose private half is being asked for. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface KeysExportSecretPayload {
10
+ /**
11
+ * The key to release. Custodian-scoped, as everywhere in `keys/*`. One key per request: there is deliberately no list form, so that each release is one decision the custodian can refuse, record and rate-limit on its own terms.
12
+ */
13
+ keyId: string;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * The key material. Failures use trust-task-error, not this shape. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/export-secret/0.1#response.
18
+ */
19
+ export interface KeysExportSecretResponsePayload {
20
+ /**
21
+ * The key released, echoed so a consumer can confirm it received the one it named rather than matching on request order.
22
+ */
23
+ keyId: string;
24
+ keyType: KeyType;
25
+ /**
26
+ * The public half, multibase-encoded. Returned alongside the private half so a consumer can check the pair agrees before installing it, rather than deriving the public half and hoping.
27
+ */
28
+ publicKeyMultibase: string;
29
+ /**
30
+ * The private half, multibase-encoded (Base58BTC) over its multicodec-prefixed bytes. The prefix identifies the key material; a consumer decodes by prefix rather than trusting `keyType` alone.
31
+ */
32
+ privateKeyMultibase: string;
33
+ }
34
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
35
+ export type { Ext, KeyType };
36
+ /** Trust Task type URI. */
37
+ export declare const TYPE_URI: "https://trusttasks.org/spec/keys/export-secret/0.1";
38
+ /** Stable alias for this specification's request payload shape. */
39
+ export type Payload = KeysExportSecretPayload;
40
+ /** Trust Task response type URI (request type URI + "#response"). */
41
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/keys/export-secret/0.1#response";
42
+ /** Stable alias for this specification's success-response payload shape. */
43
+ export type Response = KeysExportSecretResponsePayload;
44
+ /**
45
+ * This specification's payload schema, as a value.
46
+ *
47
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
48
+ * rather than only as a `.json` file because TypeScript types are erased
49
+ * at runtime: without a schema a consumer has nothing to validate, and
50
+ * every REQUIRED payload member is optional in practice. Cross-file
51
+ * `$ref`s are already inlined, so it needs no resolver.
52
+ */
53
+ export declare const PAYLOAD_SCHEMA: {
54
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
55
+ readonly $id: "https://trusttasks.org/spec/keys/export-secret/0.1";
56
+ readonly title: "Keys Export Secret — payload";
57
+ readonly description: "Names one key whose private half is being asked for. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
58
+ readonly type: "object";
59
+ readonly additionalProperties: false;
60
+ readonly required: readonly ["keyId"];
61
+ readonly properties: {
62
+ readonly keyId: {
63
+ readonly type: "string";
64
+ readonly minLength: 1;
65
+ readonly description: "The key to release. Custodian-scoped, as everywhere in `keys/*`. One key per request: there is deliberately no list form, so that each release is one decision the custodian can refuse, record and rate-limit on its own terms.";
66
+ };
67
+ readonly ext: {
68
+ readonly $ref: "#/$defs/Ext";
69
+ };
70
+ };
71
+ readonly $defs: {
72
+ readonly Response: {
73
+ readonly $anchor: "response";
74
+ readonly title: "Keys Export Secret — response payload";
75
+ readonly type: "object";
76
+ readonly additionalProperties: false;
77
+ readonly required: readonly ["keyId", "keyType", "publicKeyMultibase", "privateKeyMultibase"];
78
+ readonly description: "The key material. Failures use trust-task-error, not this shape. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/export-secret/0.1#response.";
79
+ readonly properties: {
80
+ readonly keyId: {
81
+ readonly type: "string";
82
+ readonly minLength: 1;
83
+ readonly description: "The key released, echoed so a consumer can confirm it received the one it named rather than matching on request order.";
84
+ };
85
+ readonly keyType: {
86
+ readonly $ref: "#/$defs/KeyType";
87
+ };
88
+ readonly publicKeyMultibase: {
89
+ readonly type: "string";
90
+ readonly minLength: 1;
91
+ readonly description: "The public half, multibase-encoded. Returned alongside the private half so a consumer can check the pair agrees before installing it, rather than deriving the public half and hoping.";
92
+ };
93
+ readonly privateKeyMultibase: {
94
+ readonly type: "string";
95
+ readonly minLength: 1;
96
+ readonly description: "The private half, multibase-encoded (Base58BTC) over its multicodec-prefixed bytes. The prefix identifies the key material; a consumer decodes by prefix rather than trusting `keyType` alone.";
97
+ };
98
+ };
99
+ };
100
+ readonly KeyType: {
101
+ readonly title: "KeyType";
102
+ readonly type: "string";
103
+ readonly enum: readonly ["ed25519", "x25519", "p256"];
104
+ readonly description: "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256).";
105
+ };
106
+ readonly Ext: {
107
+ readonly title: "Ext";
108
+ 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.";
109
+ readonly type: "object";
110
+ readonly minProperties: 1;
111
+ readonly additionalProperties: true;
112
+ readonly propertyNames: {
113
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
114
+ };
115
+ };
116
+ };
117
+ };
118
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
119
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
120
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
121
+ readonly $ref: "#/$defs/Response";
122
+ readonly $defs: {
123
+ readonly Response: {
124
+ readonly $anchor: "response";
125
+ readonly title: "Keys Export Secret — response payload";
126
+ readonly type: "object";
127
+ readonly additionalProperties: false;
128
+ readonly required: readonly ["keyId", "keyType", "publicKeyMultibase", "privateKeyMultibase"];
129
+ readonly description: "The key material. Failures use trust-task-error, not this shape. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/export-secret/0.1#response.";
130
+ readonly properties: {
131
+ readonly keyId: {
132
+ readonly type: "string";
133
+ readonly minLength: 1;
134
+ readonly description: "The key released, echoed so a consumer can confirm it received the one it named rather than matching on request order.";
135
+ };
136
+ readonly keyType: {
137
+ readonly $ref: "#/$defs/KeyType";
138
+ };
139
+ readonly publicKeyMultibase: {
140
+ readonly type: "string";
141
+ readonly minLength: 1;
142
+ readonly description: "The public half, multibase-encoded. Returned alongside the private half so a consumer can check the pair agrees before installing it, rather than deriving the public half and hoping.";
143
+ };
144
+ readonly privateKeyMultibase: {
145
+ readonly type: "string";
146
+ readonly minLength: 1;
147
+ readonly description: "The private half, multibase-encoded (Base58BTC) over its multicodec-prefixed bytes. The prefix identifies the key material; a consumer decodes by prefix rather than trusting `keyType` alone.";
148
+ };
149
+ };
150
+ };
151
+ readonly KeyType: {
152
+ readonly title: "KeyType";
153
+ readonly type: "string";
154
+ readonly enum: readonly ["ed25519", "x25519", "p256"];
155
+ readonly description: "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256).";
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
+ };
168
+ };
169
+ /**
170
+ * SPEC.md §7.2 policy for the request variant, from this specification's
171
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
172
+ * per-specification and cannot be derived from the document alone, and
173
+ * item 2 needs the schema this carries.
174
+ */
175
+ export declare const SPEC: {
176
+ readonly typeUri: "https://trusttasks.org/spec/keys/export-secret/0.1";
177
+ readonly isBearer: false;
178
+ readonly isProofRequired: true;
179
+ readonly isRecipientRequired: true;
180
+ readonly isIssuedAtRequired: true;
181
+ readonly payloadSchema: {
182
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
183
+ readonly $id: "https://trusttasks.org/spec/keys/export-secret/0.1";
184
+ readonly title: "Keys Export Secret — payload";
185
+ readonly description: "Names one key whose private half is being asked for. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
186
+ readonly type: "object";
187
+ readonly additionalProperties: false;
188
+ readonly required: readonly ["keyId"];
189
+ readonly properties: {
190
+ readonly keyId: {
191
+ readonly type: "string";
192
+ readonly minLength: 1;
193
+ readonly description: "The key to release. Custodian-scoped, as everywhere in `keys/*`. One key per request: there is deliberately no list form, so that each release is one decision the custodian can refuse, record and rate-limit on its own terms.";
194
+ };
195
+ readonly ext: {
196
+ readonly $ref: "#/$defs/Ext";
197
+ };
198
+ };
199
+ readonly $defs: {
200
+ readonly Response: {
201
+ readonly $anchor: "response";
202
+ readonly title: "Keys Export Secret — response payload";
203
+ readonly type: "object";
204
+ readonly additionalProperties: false;
205
+ readonly required: readonly ["keyId", "keyType", "publicKeyMultibase", "privateKeyMultibase"];
206
+ readonly description: "The key material. Failures use trust-task-error, not this shape. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/export-secret/0.1#response.";
207
+ readonly properties: {
208
+ readonly keyId: {
209
+ readonly type: "string";
210
+ readonly minLength: 1;
211
+ readonly description: "The key released, echoed so a consumer can confirm it received the one it named rather than matching on request order.";
212
+ };
213
+ readonly keyType: {
214
+ readonly $ref: "#/$defs/KeyType";
215
+ };
216
+ readonly publicKeyMultibase: {
217
+ readonly type: "string";
218
+ readonly minLength: 1;
219
+ readonly description: "The public half, multibase-encoded. Returned alongside the private half so a consumer can check the pair agrees before installing it, rather than deriving the public half and hoping.";
220
+ };
221
+ readonly privateKeyMultibase: {
222
+ readonly type: "string";
223
+ readonly minLength: 1;
224
+ readonly description: "The private half, multibase-encoded (Base58BTC) over its multicodec-prefixed bytes. The prefix identifies the key material; a consumer decodes by prefix rather than trusting `keyType` alone.";
225
+ };
226
+ };
227
+ };
228
+ readonly KeyType: {
229
+ readonly title: "KeyType";
230
+ readonly type: "string";
231
+ readonly enum: readonly ["ed25519", "x25519", "p256"];
232
+ readonly description: "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256).";
233
+ };
234
+ readonly Ext: {
235
+ readonly title: "Ext";
236
+ 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.";
237
+ readonly type: "object";
238
+ readonly minProperties: 1;
239
+ readonly additionalProperties: true;
240
+ readonly propertyNames: {
241
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
242
+ };
243
+ };
244
+ };
245
+ };
246
+ };
247
+ /**
248
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
249
+ * tracks the *issuer* party's requirement because a response swaps the
250
+ * parties (§7.3 item 5).
251
+ */
252
+ export declare const RESPONSE_SPEC: {
253
+ readonly typeUri: "https://trusttasks.org/spec/keys/export-secret/0.1#response";
254
+ readonly isBearer: false;
255
+ readonly isProofRequired: true;
256
+ readonly isRecipientRequired: true;
257
+ readonly isIssuedAtRequired: true;
258
+ readonly payloadSchema: {
259
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
260
+ readonly $ref: "#/$defs/Response";
261
+ readonly $defs: {
262
+ readonly Response: {
263
+ readonly $anchor: "response";
264
+ readonly title: "Keys Export Secret — response payload";
265
+ readonly type: "object";
266
+ readonly additionalProperties: false;
267
+ readonly required: readonly ["keyId", "keyType", "publicKeyMultibase", "privateKeyMultibase"];
268
+ readonly description: "The key material. Failures use trust-task-error, not this shape. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/export-secret/0.1#response.";
269
+ readonly properties: {
270
+ readonly keyId: {
271
+ readonly type: "string";
272
+ readonly minLength: 1;
273
+ readonly description: "The key released, echoed so a consumer can confirm it received the one it named rather than matching on request order.";
274
+ };
275
+ readonly keyType: {
276
+ readonly $ref: "#/$defs/KeyType";
277
+ };
278
+ readonly publicKeyMultibase: {
279
+ readonly type: "string";
280
+ readonly minLength: 1;
281
+ readonly description: "The public half, multibase-encoded. Returned alongside the private half so a consumer can check the pair agrees before installing it, rather than deriving the public half and hoping.";
282
+ };
283
+ readonly privateKeyMultibase: {
284
+ readonly type: "string";
285
+ readonly minLength: 1;
286
+ readonly description: "The private half, multibase-encoded (Base58BTC) over its multicodec-prefixed bytes. The prefix identifies the key material; a consumer decodes by prefix rather than trusting `keyType` alone.";
287
+ };
288
+ };
289
+ };
290
+ readonly KeyType: {
291
+ readonly title: "KeyType";
292
+ readonly type: "string";
293
+ readonly enum: readonly ["ed25519", "x25519", "p256"];
294
+ readonly description: "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256).";
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
+ };
307
+ };
308
+ };
309
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/export-secret/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAGnE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AAE7B,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,oDAA6D,CAAC;AAEtF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,uBAAuB,CAAC;AAE9C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,6DAAsE,CAAC;AAExG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,+BAA+B,CAAC;AAEvD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2EjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,181 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/export-secret/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/keys/export-secret/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/keys/export-secret/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/keys/export-secret/0.1",
21
+ "title": "Keys Export Secret — payload",
22
+ "description": "Names one key whose private half is being asked for. 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
+ "keyId"
27
+ ],
28
+ "properties": {
29
+ "keyId": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "description": "The key to release. Custodian-scoped, as everywhere in `keys/*`. One key per request: there is deliberately no list form, so that each release is one decision the custodian can refuse, record and rate-limit on its own terms."
33
+ },
34
+ "ext": {
35
+ "$ref": "#/$defs/Ext"
36
+ }
37
+ },
38
+ "$defs": {
39
+ "Response": {
40
+ "$anchor": "response",
41
+ "title": "Keys Export Secret — response payload",
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "required": [
45
+ "keyId",
46
+ "keyType",
47
+ "publicKeyMultibase",
48
+ "privateKeyMultibase"
49
+ ],
50
+ "description": "The key material. Failures use trust-task-error, not this shape. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/export-secret/0.1#response.",
51
+ "properties": {
52
+ "keyId": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "description": "The key released, echoed so a consumer can confirm it received the one it named rather than matching on request order."
56
+ },
57
+ "keyType": {
58
+ "$ref": "#/$defs/KeyType"
59
+ },
60
+ "publicKeyMultibase": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "description": "The public half, multibase-encoded. Returned alongside the private half so a consumer can check the pair agrees before installing it, rather than deriving the public half and hoping."
64
+ },
65
+ "privateKeyMultibase": {
66
+ "type": "string",
67
+ "minLength": 1,
68
+ "description": "The private half, multibase-encoded (Base58BTC) over its multicodec-prefixed bytes. The prefix identifies the key material; a consumer decodes by prefix rather than trusting `keyType` alone."
69
+ }
70
+ }
71
+ },
72
+ "KeyType": {
73
+ "title": "KeyType",
74
+ "type": "string",
75
+ "enum": [
76
+ "ed25519",
77
+ "x25519",
78
+ "p256"
79
+ ],
80
+ "description": "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256)."
81
+ },
82
+ "Ext": {
83
+ "title": "Ext",
84
+ "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.",
85
+ "type": "object",
86
+ "minProperties": 1,
87
+ "additionalProperties": true,
88
+ "propertyNames": {
89
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
90
+ }
91
+ }
92
+ }
93
+ };
94
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
95
+ export const RESPONSE_PAYLOAD_SCHEMA = {
96
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
97
+ "$ref": "#/$defs/Response",
98
+ "$defs": {
99
+ "Response": {
100
+ "$anchor": "response",
101
+ "title": "Keys Export Secret — response payload",
102
+ "type": "object",
103
+ "additionalProperties": false,
104
+ "required": [
105
+ "keyId",
106
+ "keyType",
107
+ "publicKeyMultibase",
108
+ "privateKeyMultibase"
109
+ ],
110
+ "description": "The key material. Failures use trust-task-error, not this shape. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/export-secret/0.1#response.",
111
+ "properties": {
112
+ "keyId": {
113
+ "type": "string",
114
+ "minLength": 1,
115
+ "description": "The key released, echoed so a consumer can confirm it received the one it named rather than matching on request order."
116
+ },
117
+ "keyType": {
118
+ "$ref": "#/$defs/KeyType"
119
+ },
120
+ "publicKeyMultibase": {
121
+ "type": "string",
122
+ "minLength": 1,
123
+ "description": "The public half, multibase-encoded. Returned alongside the private half so a consumer can check the pair agrees before installing it, rather than deriving the public half and hoping."
124
+ },
125
+ "privateKeyMultibase": {
126
+ "type": "string",
127
+ "minLength": 1,
128
+ "description": "The private half, multibase-encoded (Base58BTC) over its multicodec-prefixed bytes. The prefix identifies the key material; a consumer decodes by prefix rather than trusting `keyType` alone."
129
+ }
130
+ }
131
+ },
132
+ "KeyType": {
133
+ "title": "KeyType",
134
+ "type": "string",
135
+ "enum": [
136
+ "ed25519",
137
+ "x25519",
138
+ "p256"
139
+ ],
140
+ "description": "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256)."
141
+ },
142
+ "Ext": {
143
+ "title": "Ext",
144
+ "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.",
145
+ "type": "object",
146
+ "minProperties": 1,
147
+ "additionalProperties": true,
148
+ "propertyNames": {
149
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
150
+ }
151
+ }
152
+ }
153
+ };
154
+ /**
155
+ * SPEC.md §7.2 policy for the request variant, from this specification's
156
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
157
+ * per-specification and cannot be derived from the document alone, and
158
+ * item 2 needs the schema this carries.
159
+ */
160
+ export const SPEC = {
161
+ typeUri: TYPE_URI,
162
+ isBearer: false,
163
+ isProofRequired: true,
164
+ isRecipientRequired: true,
165
+ isIssuedAtRequired: true,
166
+ payloadSchema: PAYLOAD_SCHEMA,
167
+ };
168
+ /**
169
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
170
+ * tracks the *issuer* party's requirement because a response swaps the
171
+ * parties (§7.3 item 5).
172
+ */
173
+ export const RESPONSE_SPEC = {
174
+ typeUri: RESPONSE_TYPE_URI,
175
+ isBearer: false,
176
+ isProofRequired: true,
177
+ isRecipientRequired: true,
178
+ isIssuedAtRequired: true,
179
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
180
+ };
181
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/keys/export-secret/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,oDAA6D,CAAC;AAKtF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,6DAAsE,CAAC;AAKxG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C5B,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,11 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vetting/_shared/0.1/identity-vetting.schema.json
4
+ */
5
+ /**
6
+ * The `credentialSubject.endorsement` body of a Vetting Statement: a Verifiable Endorsement Credential issued by a vetter's member DID about an applicant's DID, attesting that the vetter checked the applicant's claimed identity in a vetting session. A community registers this shape as the `claimSchema` of its identity-vetting endorsement type (vtc/endorsement-types/register), and names that type in its manifest as `vetting.statementType`. The credential envelope — issuer, validity, `taskContext`, proof — belongs to DTG credentials; only the body is defined here. It records what the vetter did and relied on, never what they saw: no document number, no image, no claimed name. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
7
+ */
8
+ export interface IdentityVettingEndorsementSharedDefinition {
9
+ [k: string]: unknown | undefined;
10
+ }
11
+ //# sourceMappingURL=identity-vetting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-vetting.d.ts","sourceRoot":"","sources":["../../../../src/vetting/_shared/0.1/identity-vetting.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vetting/_shared/0.1/identity-vetting.schema.json
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=identity-vetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-vetting.js","sourceRoot":"","sources":["../../../../src/vetting/_shared/0.1/identity-vetting.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vetting/_shared/0.1/vetting-card.schema.json
4
+ */
5
+ /**
6
+ * The Vetting Card: a signed, audience-bound profile of the relationship card (r-card) an applicant presents to one vetter in one vetting session. A Verifiable Data Structure — its publisher signs it so the recipient can verify it — bound by `audience`, `challenge` and `domain` to exactly one vetter and one session, and valid for minutes. It carries the identity claims the vetter checks against the person and their documentation, and a salted `identityCommitment` over the required claims so a community can later confirm every vetter checked the same claimed identity without ever seeing it. It never carries a document number, a document image, or a portrait. Returned by vetting/session#response; its digest is carried in the identity-vetting endorsement. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
7
+ */
8
+ export interface VettingCardSharedDefinition {
9
+ [k: string]: unknown | undefined;
10
+ }
11
+ /**
12
+ * The definitions this shared schema publishes, hoisted to one declaration each.
13
+ * See "../../../_shared/components.js".
14
+ */
15
+ export type { DataIntegrityProof, VettingCard, VettingCardClaim } from "../../../_shared/components.js";
16
+ //# sourceMappingURL=vetting-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vetting-card.d.ts","sourceRoot":"","sources":["../../../../src/vetting/_shared/0.1/vetting-card.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vetting/_shared/0.1/vetting-card.schema.json
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=vetting-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vetting-card.js","sourceRoot":"","sources":["../../../../src/vetting/_shared/0.1/vetting-card.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vetting/_shared/0.1/vetting.schema.json
4
+ */
5
+ /**
6
+ * The vocabularies every identity-vetting artifact is written in: how a vetter established who an applicant is (VettingMethod), what documentation is accepted or was relied on (VettingDocumentation), and how the vetter knows the applicant (VettingRelationship). Used by vtc/join-requests/manifest (what a community requires), the vetting/* peer tasks (what a vetter offers and does), and the identity-vetting endorsement body (what a vetter attested). One definition, so a community's requirement and a vetter's statement are compared value-for-value rather than by translation. Claim types are not redefined here: they are the persona family's ClaimType (persona/_shared/0.1/persona-record), because a Vetting Card is rendered from a persona. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
7
+ */
8
+ export interface VettingSharedVocabulary {
9
+ [k: string]: unknown | undefined;
10
+ }
11
+ /**
12
+ * The definitions this shared schema publishes, hoisted to one declaration each.
13
+ * See "../../../_shared/components.js".
14
+ */
15
+ export type { VettingDocumentation, VettingMethod, VettingRelationship } from "../../../_shared/components.js";
16
+ //# sourceMappingURL=vetting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vetting.d.ts","sourceRoot":"","sources":["../../../../src/vetting/_shared/0.1/vetting.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vetting/_shared/0.1/vetting.schema.json
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=vetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vetting.js","sourceRoot":"","sources":["../../../../src/vetting/_shared/0.1/vetting.ts"],"names":[],"mappings":"AAAA;;;GAGG"}