@openvtc/trust-tasks 0.16.3 → 0.16.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 (47) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/index.d.ts +8 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +8 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/vault/credentials/archive/0.1/payload.d.ts +297 -0
  7. package/dist/vault/credentials/archive/0.1/payload.d.ts.map +1 -0
  8. package/dist/vault/credentials/archive/0.1/payload.js +171 -0
  9. package/dist/vault/credentials/archive/0.1/payload.js.map +1 -0
  10. package/dist/vault/credentials/delete/0.1/payload.d.ts +333 -0
  11. package/dist/vault/credentials/delete/0.1/payload.d.ts.map +1 -0
  12. package/dist/vault/credentials/delete/0.1/payload.js +185 -0
  13. package/dist/vault/credentials/delete/0.1/payload.js.map +1 -0
  14. package/dist/vault/credentials/get/0.1/payload.d.ts +244 -0
  15. package/dist/vault/credentials/get/0.1/payload.d.ts.map +1 -0
  16. package/dist/vault/credentials/get/0.1/payload.js +137 -0
  17. package/dist/vault/credentials/get/0.1/payload.js.map +1 -0
  18. package/dist/vault/credentials/purge/0.1/payload.d.ts +297 -0
  19. package/dist/vault/credentials/purge/0.1/payload.d.ts.map +1 -0
  20. package/dist/vault/credentials/purge/0.1/payload.js +171 -0
  21. package/dist/vault/credentials/purge/0.1/payload.js.map +1 -0
  22. package/dist/vault/credentials/query/0.1/payload.d.ts +689 -0
  23. package/dist/vault/credentials/query/0.1/payload.d.ts.map +1 -0
  24. package/dist/vault/credentials/query/0.1/payload.js +350 -0
  25. package/dist/vault/credentials/query/0.1/payload.js.map +1 -0
  26. package/dist/vault/credentials/receive/0.1/payload.d.ts +414 -0
  27. package/dist/vault/credentials/receive/0.1/payload.d.ts.map +1 -0
  28. package/dist/vault/credentials/receive/0.1/payload.js +226 -0
  29. package/dist/vault/credentials/receive/0.1/payload.js.map +1 -0
  30. package/dist/vault/credentials/restore/0.1/payload.d.ts +297 -0
  31. package/dist/vault/credentials/restore/0.1/payload.d.ts.map +1 -0
  32. package/dist/vault/credentials/restore/0.1/payload.js +171 -0
  33. package/dist/vault/credentials/restore/0.1/payload.js.map +1 -0
  34. package/dist/vault/credentials/unarchive/0.1/payload.d.ts +297 -0
  35. package/dist/vault/credentials/unarchive/0.1/payload.d.ts.map +1 -0
  36. package/dist/vault/credentials/unarchive/0.1/payload.js +171 -0
  37. package/dist/vault/credentials/unarchive/0.1/payload.js.map +1 -0
  38. package/package.json +1 -1
  39. package/src/index.ts +8 -0
  40. package/src/vault/credentials/archive/0.1/payload.ts +217 -0
  41. package/src/vault/credentials/delete/0.1/payload.ts +239 -0
  42. package/src/vault/credentials/get/0.1/payload.ts +178 -0
  43. package/src/vault/credentials/purge/0.1/payload.ts +217 -0
  44. package/src/vault/credentials/query/0.1/payload.ts +459 -0
  45. package/src/vault/credentials/receive/0.1/payload.ts +298 -0
  46. package/src/vault/credentials/restore/0.1/payload.ts +217 -0
  47. package/src/vault/credentials/unarchive/0.1/payload.ts +217 -0
@@ -0,0 +1,185 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vault/credentials/delete/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vault/credentials/delete/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vault/credentials/delete/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/vault/credentials/delete/0.1",
21
+ "title": "Vault Credentials — Delete",
22
+ "description": "Move a stored credential to a recoverable tombstone, or erase it outright.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "id"
27
+ ],
28
+ "properties": {
29
+ "id": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 256,
33
+ "description": "Local handle from a query descriptor. Opaque; consumers must not derive or guess one."
34
+ },
35
+ "reason": {
36
+ "type": "string",
37
+ "minLength": 1,
38
+ "maxLength": 512,
39
+ "description": "Free text recorded with the transition. Must not carry credential contents."
40
+ },
41
+ "force": {
42
+ "type": "boolean",
43
+ "description": "Erase immediately rather than tombstoning. Irrecoverable. Absent means false."
44
+ },
45
+ "ext": {
46
+ "$ref": "#/$defs/Ext",
47
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
48
+ }
49
+ },
50
+ "$defs": {
51
+ "Response": {
52
+ "$anchor": "response",
53
+ "title": "Vault Credentials Delete — response payload",
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": [
57
+ "id",
58
+ "lifecycle"
59
+ ],
60
+ "properties": {
61
+ "id": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 256
65
+ },
66
+ "lifecycle": {
67
+ "$ref": "#/$defs/VaultLifecycle",
68
+ "description": "State after the transition, echoed rather than left to be inferred from the verb."
69
+ },
70
+ "graceUntil": {
71
+ "type": "string",
72
+ "format": "date-time",
73
+ "description": "Restore deadline. Present on the default path; absent when `force` was set, and its absence is how a consumer knows nothing can be restored."
74
+ },
75
+ "ext": {
76
+ "$ref": "#/$defs/Ext",
77
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
78
+ }
79
+ }
80
+ },
81
+ "VaultLifecycle": {
82
+ "type": "string",
83
+ "enum": [
84
+ "active",
85
+ "archived",
86
+ "deleted"
87
+ ],
88
+ "description": "Archival state. Orthogonal to validity."
89
+ },
90
+ "Ext": {
91
+ "title": "Ext",
92
+ "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.",
93
+ "type": "object",
94
+ "minProperties": 1,
95
+ "additionalProperties": true,
96
+ "propertyNames": {
97
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
98
+ }
99
+ }
100
+ }
101
+ };
102
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
103
+ export const RESPONSE_PAYLOAD_SCHEMA = {
104
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
105
+ "$ref": "#/$defs/Response",
106
+ "$defs": {
107
+ "Response": {
108
+ "$anchor": "response",
109
+ "title": "Vault Credentials Delete — response payload",
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "required": [
113
+ "id",
114
+ "lifecycle"
115
+ ],
116
+ "properties": {
117
+ "id": {
118
+ "type": "string",
119
+ "minLength": 1,
120
+ "maxLength": 256
121
+ },
122
+ "lifecycle": {
123
+ "$ref": "#/$defs/VaultLifecycle",
124
+ "description": "State after the transition, echoed rather than left to be inferred from the verb."
125
+ },
126
+ "graceUntil": {
127
+ "type": "string",
128
+ "format": "date-time",
129
+ "description": "Restore deadline. Present on the default path; absent when `force` was set, and its absence is how a consumer knows nothing can be restored."
130
+ },
131
+ "ext": {
132
+ "$ref": "#/$defs/Ext",
133
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
134
+ }
135
+ }
136
+ },
137
+ "VaultLifecycle": {
138
+ "type": "string",
139
+ "enum": [
140
+ "active",
141
+ "archived",
142
+ "deleted"
143
+ ],
144
+ "description": "Archival state. Orthogonal to validity."
145
+ },
146
+ "Ext": {
147
+ "title": "Ext",
148
+ "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.",
149
+ "type": "object",
150
+ "minProperties": 1,
151
+ "additionalProperties": true,
152
+ "propertyNames": {
153
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
154
+ }
155
+ }
156
+ }
157
+ };
158
+ /**
159
+ * SPEC.md §7.2 policy for the request variant, from this specification's
160
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
161
+ * per-specification and cannot be derived from the document alone, and
162
+ * item 2 needs the schema this carries.
163
+ */
164
+ export const SPEC = {
165
+ typeUri: TYPE_URI,
166
+ isBearer: false,
167
+ isProofRequired: true,
168
+ isRecipientRequired: true,
169
+ isIssuedAtRequired: true,
170
+ payloadSchema: PAYLOAD_SCHEMA,
171
+ };
172
+ /**
173
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
174
+ * tracks the *issuer* party's requirement because a response swaps the
175
+ * parties (§7.3 item 5).
176
+ */
177
+ export const RESPONSE_SPEC = {
178
+ typeUri: RESPONSE_TYPE_URI,
179
+ isBearer: false,
180
+ isProofRequired: true,
181
+ isRecipientRequired: true,
182
+ isIssuedAtRequired: true,
183
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
184
+ };
185
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vault/credentials/delete/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAK5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mEAA4E,CAAC;AAK9G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,0DAA0D;IACjE,OAAO,EAAE,4BAA4B;IACrC,aAAa,EAAE,4EAA4E;IAC3F,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,IAAI;KACL;IACD,YAAY,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AK;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,244 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vault/credentials/get/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * Fetch one stored credential's full body by id.
8
+ */
9
+ export interface VaultCredentialsGet {
10
+ /**
11
+ * Local handle from a query descriptor. Opaque; consumers must not derive or guess one.
12
+ */
13
+ id: string;
14
+ /**
15
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
16
+ */
17
+ ext?: Ext;
18
+ }
19
+ export interface VaultCredentialsGetResponsePayload {
20
+ /**
21
+ * The verifiable credential as stored, carried verbatim. Maintainers must not re-serialise it — the bytes carry a proof over themselves.
22
+ */
23
+ credential: {};
24
+ /**
25
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
26
+ */
27
+ ext?: Ext;
28
+ }
29
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
30
+ export type { Ext };
31
+ /** Trust Task type URI. */
32
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vault/credentials/get/0.1";
33
+ /** Stable alias for this specification's request payload shape. */
34
+ export type Payload = VaultCredentialsGet;
35
+ /** Trust Task response type URI (request type URI + "#response"). */
36
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vault/credentials/get/0.1#response";
37
+ /** Stable alias for this specification's success-response payload shape. */
38
+ export type Response = VaultCredentialsGetResponsePayload;
39
+ /**
40
+ * This specification's payload schema, as a value.
41
+ *
42
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
43
+ * rather than only as a `.json` file because TypeScript types are erased
44
+ * at runtime: without a schema a consumer has nothing to validate, and
45
+ * every REQUIRED payload member is optional in practice. Cross-file
46
+ * `$ref`s are already inlined, so it needs no resolver.
47
+ */
48
+ export declare const PAYLOAD_SCHEMA: {
49
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
50
+ readonly $id: "https://trusttasks.org/spec/vault/credentials/get/0.1";
51
+ readonly title: "Vault Credentials — Get";
52
+ readonly description: "Fetch one stored credential's full body by id.";
53
+ readonly type: "object";
54
+ readonly additionalProperties: false;
55
+ readonly required: readonly ["id"];
56
+ readonly properties: {
57
+ readonly id: {
58
+ readonly type: "string";
59
+ readonly minLength: 1;
60
+ readonly maxLength: 256;
61
+ readonly description: "Local handle from a query descriptor. Opaque; consumers must not derive or guess one.";
62
+ };
63
+ readonly ext: {
64
+ readonly $ref: "#/$defs/Ext";
65
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
66
+ };
67
+ };
68
+ readonly $defs: {
69
+ readonly Response: {
70
+ readonly $anchor: "response";
71
+ readonly title: "Vault Credentials Get — response payload";
72
+ readonly type: "object";
73
+ readonly additionalProperties: false;
74
+ readonly required: readonly ["credential"];
75
+ readonly properties: {
76
+ readonly credential: {
77
+ readonly type: "object";
78
+ readonly minProperties: 1;
79
+ readonly description: "The verifiable credential as stored, carried verbatim. Maintainers must not re-serialise it — the bytes carry a proof over themselves.";
80
+ };
81
+ readonly ext: {
82
+ readonly $ref: "#/$defs/Ext";
83
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
84
+ };
85
+ };
86
+ };
87
+ readonly Ext: {
88
+ readonly title: "Ext";
89
+ 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.";
90
+ readonly type: "object";
91
+ readonly minProperties: 1;
92
+ readonly additionalProperties: true;
93
+ readonly propertyNames: {
94
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
95
+ };
96
+ };
97
+ };
98
+ };
99
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
100
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
101
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
102
+ readonly $ref: "#/$defs/Response";
103
+ readonly $defs: {
104
+ readonly Response: {
105
+ readonly $anchor: "response";
106
+ readonly title: "Vault Credentials Get — response payload";
107
+ readonly type: "object";
108
+ readonly additionalProperties: false;
109
+ readonly required: readonly ["credential"];
110
+ readonly properties: {
111
+ readonly credential: {
112
+ readonly type: "object";
113
+ readonly minProperties: 1;
114
+ readonly description: "The verifiable credential as stored, carried verbatim. Maintainers must not re-serialise it — the bytes carry a proof over themselves.";
115
+ };
116
+ readonly ext: {
117
+ readonly $ref: "#/$defs/Ext";
118
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
119
+ };
120
+ };
121
+ };
122
+ readonly Ext: {
123
+ readonly title: "Ext";
124
+ 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.";
125
+ readonly type: "object";
126
+ readonly minProperties: 1;
127
+ readonly additionalProperties: true;
128
+ readonly propertyNames: {
129
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
130
+ };
131
+ };
132
+ };
133
+ };
134
+ /**
135
+ * SPEC.md §7.2 policy for the request variant, from this specification's
136
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
137
+ * per-specification and cannot be derived from the document alone, and
138
+ * item 2 needs the schema this carries.
139
+ */
140
+ export declare const SPEC: {
141
+ readonly typeUri: "https://trusttasks.org/spec/vault/credentials/get/0.1";
142
+ readonly isBearer: false;
143
+ readonly isProofRequired: true;
144
+ readonly isRecipientRequired: true;
145
+ readonly isIssuedAtRequired: true;
146
+ readonly payloadSchema: {
147
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
148
+ readonly $id: "https://trusttasks.org/spec/vault/credentials/get/0.1";
149
+ readonly title: "Vault Credentials — Get";
150
+ readonly description: "Fetch one stored credential's full body by id.";
151
+ readonly type: "object";
152
+ readonly additionalProperties: false;
153
+ readonly required: readonly ["id"];
154
+ readonly properties: {
155
+ readonly id: {
156
+ readonly type: "string";
157
+ readonly minLength: 1;
158
+ readonly maxLength: 256;
159
+ readonly description: "Local handle from a query descriptor. Opaque; consumers must not derive or guess one.";
160
+ };
161
+ readonly ext: {
162
+ readonly $ref: "#/$defs/Ext";
163
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
164
+ };
165
+ };
166
+ readonly $defs: {
167
+ readonly Response: {
168
+ readonly $anchor: "response";
169
+ readonly title: "Vault Credentials Get — response payload";
170
+ readonly type: "object";
171
+ readonly additionalProperties: false;
172
+ readonly required: readonly ["credential"];
173
+ readonly properties: {
174
+ readonly credential: {
175
+ readonly type: "object";
176
+ readonly minProperties: 1;
177
+ readonly description: "The verifiable credential as stored, carried verbatim. Maintainers must not re-serialise it — the bytes carry a proof over themselves.";
178
+ };
179
+ readonly ext: {
180
+ readonly $ref: "#/$defs/Ext";
181
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
182
+ };
183
+ };
184
+ };
185
+ readonly Ext: {
186
+ readonly title: "Ext";
187
+ 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.";
188
+ readonly type: "object";
189
+ readonly minProperties: 1;
190
+ readonly additionalProperties: true;
191
+ readonly propertyNames: {
192
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
193
+ };
194
+ };
195
+ };
196
+ };
197
+ };
198
+ /**
199
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
200
+ * tracks the *issuer* party's requirement because a response swaps the
201
+ * parties (§7.3 item 5).
202
+ */
203
+ export declare const RESPONSE_SPEC: {
204
+ readonly typeUri: "https://trusttasks.org/spec/vault/credentials/get/0.1#response";
205
+ readonly isBearer: false;
206
+ readonly isProofRequired: true;
207
+ readonly isRecipientRequired: true;
208
+ readonly isIssuedAtRequired: true;
209
+ readonly payloadSchema: {
210
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
211
+ readonly $ref: "#/$defs/Response";
212
+ readonly $defs: {
213
+ readonly Response: {
214
+ readonly $anchor: "response";
215
+ readonly title: "Vault Credentials Get — response payload";
216
+ readonly type: "object";
217
+ readonly additionalProperties: false;
218
+ readonly required: readonly ["credential"];
219
+ readonly properties: {
220
+ readonly credential: {
221
+ readonly type: "object";
222
+ readonly minProperties: 1;
223
+ readonly description: "The verifiable credential as stored, carried verbatim. Maintainers must not re-serialise it — the bytes carry a proof over themselves.";
224
+ };
225
+ readonly ext: {
226
+ readonly $ref: "#/$defs/Ext";
227
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
228
+ };
229
+ };
230
+ };
231
+ readonly Ext: {
232
+ readonly title: "Ext";
233
+ 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.";
234
+ readonly type: "object";
235
+ readonly minProperties: 1;
236
+ readonly additionalProperties: true;
237
+ readonly propertyNames: {
238
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
239
+ };
240
+ };
241
+ };
242
+ };
243
+ };
244
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vault/credentials/get/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,UAAU,EAAE,EAAE,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,uDAAgE,CAAC;AAEzF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,mBAAmB,CAAC;AAE1C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,gEAAyE,CAAC;AAE3G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAE1D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,137 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vault/credentials/get/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vault/credentials/get/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vault/credentials/get/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/vault/credentials/get/0.1",
21
+ "title": "Vault Credentials — Get",
22
+ "description": "Fetch one stored credential's full body by id.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "id"
27
+ ],
28
+ "properties": {
29
+ "id": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 256,
33
+ "description": "Local handle from a query descriptor. Opaque; consumers must not derive or guess one."
34
+ },
35
+ "ext": {
36
+ "$ref": "#/$defs/Ext",
37
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
38
+ }
39
+ },
40
+ "$defs": {
41
+ "Response": {
42
+ "$anchor": "response",
43
+ "title": "Vault Credentials Get — response payload",
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "required": [
47
+ "credential"
48
+ ],
49
+ "properties": {
50
+ "credential": {
51
+ "type": "object",
52
+ "minProperties": 1,
53
+ "description": "The verifiable credential as stored, carried verbatim. Maintainers must not re-serialise it — the bytes carry a proof over themselves."
54
+ },
55
+ "ext": {
56
+ "$ref": "#/$defs/Ext",
57
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
58
+ }
59
+ }
60
+ },
61
+ "Ext": {
62
+ "title": "Ext",
63
+ "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.",
64
+ "type": "object",
65
+ "minProperties": 1,
66
+ "additionalProperties": true,
67
+ "propertyNames": {
68
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
69
+ }
70
+ }
71
+ }
72
+ };
73
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
74
+ export const RESPONSE_PAYLOAD_SCHEMA = {
75
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
76
+ "$ref": "#/$defs/Response",
77
+ "$defs": {
78
+ "Response": {
79
+ "$anchor": "response",
80
+ "title": "Vault Credentials Get — response payload",
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "required": [
84
+ "credential"
85
+ ],
86
+ "properties": {
87
+ "credential": {
88
+ "type": "object",
89
+ "minProperties": 1,
90
+ "description": "The verifiable credential as stored, carried verbatim. Maintainers must not re-serialise it — the bytes carry a proof over themselves."
91
+ },
92
+ "ext": {
93
+ "$ref": "#/$defs/Ext",
94
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
95
+ }
96
+ }
97
+ },
98
+ "Ext": {
99
+ "title": "Ext",
100
+ "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
+ "type": "object",
102
+ "minProperties": 1,
103
+ "additionalProperties": true,
104
+ "propertyNames": {
105
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
106
+ }
107
+ }
108
+ }
109
+ };
110
+ /**
111
+ * SPEC.md §7.2 policy for the request variant, from this specification's
112
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
113
+ * per-specification and cannot be derived from the document alone, and
114
+ * item 2 needs the schema this carries.
115
+ */
116
+ export const SPEC = {
117
+ typeUri: TYPE_URI,
118
+ isBearer: false,
119
+ isProofRequired: true,
120
+ isRecipientRequired: true,
121
+ isIssuedAtRequired: true,
122
+ payloadSchema: PAYLOAD_SCHEMA,
123
+ };
124
+ /**
125
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
126
+ * tracks the *issuer* party's requirement because a response swaps the
127
+ * parties (§7.3 item 5).
128
+ */
129
+ export const RESPONSE_SPEC = {
130
+ typeUri: RESPONSE_TYPE_URI,
131
+ isBearer: false,
132
+ isProofRequired: true,
133
+ isRecipientRequired: true,
134
+ isIssuedAtRequired: true,
135
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
136
+ };
137
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vault/credentials/get/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgCH,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,yBAAyB;IAClC,aAAa,EAAE,gDAAgD;IAC/D,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,IAAI;KACL;IACD,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,uFAAuF;SACvG;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;YACrB,aAAa,EAAE,yDAAyD;SACzE;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,0CAA0C;YACnD,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,YAAY;aACb;YACD,YAAY,EAAE;gBACZ,YAAY,EAAE;oBACZ,MAAM,EAAE,QAAQ;oBAChB,eAAe,EAAE,CAAC;oBAClB,aAAa,EAAE,wIAAwI;iBACxJ;gBACD,KAAK,EAAE;oBACL,MAAM,E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