@openvtc/trust-tasks 0.27.6 → 0.27.7

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 (97) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +16 -13
  3. package/dist/_runtime/consume.d.ts +2 -2
  4. package/dist/_runtime/consume.js +2 -2
  5. package/dist/_shared/components.d.ts +29 -0
  6. package/dist/_shared/components.d.ts.map +1 -1
  7. package/dist/index.d.ts +7 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +7 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/registry/_shared/0.2/registry.d.ts +16 -0
  12. package/dist/registry/_shared/0.2/registry.d.ts.map +1 -0
  13. package/dist/registry/_shared/0.2/registry.js +6 -0
  14. package/dist/registry/_shared/0.2/registry.js.map +1 -0
  15. package/dist/registry/authorization/0.1/payload.d.ts +13 -2
  16. package/dist/registry/authorization/0.1/payload.d.ts.map +1 -1
  17. package/dist/registry/authorization/0.1/payload.js +1 -1
  18. package/dist/registry/authorization/0.1/payload.js.map +1 -1
  19. package/dist/registry/authorization/0.2/payload.d.ts +494 -0
  20. package/dist/registry/authorization/0.2/payload.d.ts.map +1 -0
  21. package/dist/registry/authorization/0.2/payload.js +270 -0
  22. package/dist/registry/authorization/0.2/payload.js.map +1 -0
  23. package/dist/registry/did/rotate/0.1/payload.d.ts +13 -2
  24. package/dist/registry/did/rotate/0.1/payload.d.ts.map +1 -1
  25. package/dist/registry/did/rotate/0.1/payload.js +1 -1
  26. package/dist/registry/did/rotate/0.1/payload.js.map +1 -1
  27. package/dist/registry/did/rotate/0.2/payload.d.ts +292 -0
  28. package/dist/registry/did/rotate/0.2/payload.d.ts.map +1 -0
  29. package/dist/registry/did/rotate/0.2/payload.js +167 -0
  30. package/dist/registry/did/rotate/0.2/payload.js.map +1 -0
  31. package/dist/registry/recognition/0.1/payload.d.ts +13 -2
  32. package/dist/registry/recognition/0.1/payload.d.ts.map +1 -1
  33. package/dist/registry/recognition/0.1/payload.js +1 -1
  34. package/dist/registry/recognition/0.1/payload.js.map +1 -1
  35. package/dist/registry/recognition/0.2/payload.d.ts +494 -0
  36. package/dist/registry/recognition/0.2/payload.d.ts.map +1 -0
  37. package/dist/registry/recognition/0.2/payload.js +270 -0
  38. package/dist/registry/recognition/0.2/payload.js.map +1 -0
  39. package/dist/registry/record/create/0.1/payload.d.ts +4 -4
  40. package/dist/registry/record/create/0.1/payload.js +1 -1
  41. package/dist/registry/record/delete/0.1/payload.d.ts +13 -2
  42. package/dist/registry/record/delete/0.1/payload.d.ts.map +1 -1
  43. package/dist/registry/record/delete/0.1/payload.js +1 -1
  44. package/dist/registry/record/delete/0.1/payload.js.map +1 -1
  45. package/dist/registry/record/delete/0.2/payload.d.ts +278 -0
  46. package/dist/registry/record/delete/0.2/payload.d.ts.map +1 -0
  47. package/dist/registry/record/delete/0.2/payload.js +165 -0
  48. package/dist/registry/record/delete/0.2/payload.js.map +1 -0
  49. package/dist/registry/record/list/0.1/payload.d.ts +4 -4
  50. package/dist/registry/record/list/0.1/payload.js +1 -1
  51. package/dist/registry/record/put/0.1/payload.d.ts +4 -4
  52. package/dist/registry/record/put/0.1/payload.js +1 -1
  53. package/dist/registry/record/put/0.2/payload.d.ts +13 -2
  54. package/dist/registry/record/put/0.2/payload.d.ts.map +1 -1
  55. package/dist/registry/record/put/0.2/payload.js +1 -1
  56. package/dist/registry/record/put/0.2/payload.js.map +1 -1
  57. package/dist/registry/record/put/0.3/payload.d.ts +497 -0
  58. package/dist/registry/record/put/0.3/payload.d.ts.map +1 -0
  59. package/dist/registry/record/put/0.3/payload.js +289 -0
  60. package/dist/registry/record/put/0.3/payload.js.map +1 -0
  61. package/dist/registry/record/query/0.1/payload.d.ts +4 -4
  62. package/dist/registry/record/query/0.1/payload.js +1 -1
  63. package/dist/registry/record/query/0.2/payload.d.ts +13 -2
  64. package/dist/registry/record/query/0.2/payload.d.ts.map +1 -1
  65. package/dist/registry/record/query/0.2/payload.js +1 -1
  66. package/dist/registry/record/query/0.2/payload.js.map +1 -1
  67. package/dist/registry/record/query/0.3/payload.d.ts +540 -0
  68. package/dist/registry/record/query/0.3/payload.d.ts.map +1 -0
  69. package/dist/registry/record/query/0.3/payload.js +299 -0
  70. package/dist/registry/record/query/0.3/payload.js.map +1 -0
  71. package/dist/registry/record/read/0.1/payload.d.ts +4 -4
  72. package/dist/registry/record/read/0.1/payload.js +1 -1
  73. package/dist/registry/record/update/0.1/payload.d.ts +4 -4
  74. package/dist/registry/record/update/0.1/payload.js +1 -1
  75. package/package.json +1 -1
  76. package/src/_runtime/consume.ts +2 -2
  77. package/src/_shared/components.ts +29 -0
  78. package/src/index.ts +7 -0
  79. package/src/registry/_shared/0.2/registry.ts +17 -0
  80. package/src/registry/authorization/0.1/payload.ts +14 -3
  81. package/src/registry/authorization/0.2/payload.ts +337 -0
  82. package/src/registry/did/rotate/0.1/payload.ts +14 -3
  83. package/src/registry/did/rotate/0.2/payload.ts +216 -0
  84. package/src/registry/recognition/0.1/payload.ts +14 -3
  85. package/src/registry/recognition/0.2/payload.ts +337 -0
  86. package/src/registry/record/create/0.1/payload.ts +5 -5
  87. package/src/registry/record/delete/0.1/payload.ts +14 -3
  88. package/src/registry/record/delete/0.2/payload.ts +206 -0
  89. package/src/registry/record/list/0.1/payload.ts +5 -5
  90. package/src/registry/record/put/0.1/payload.ts +5 -5
  91. package/src/registry/record/put/0.2/payload.ts +14 -3
  92. package/src/registry/record/put/0.3/payload.ts +335 -0
  93. package/src/registry/record/query/0.1/payload.ts +5 -5
  94. package/src/registry/record/query/0.2/payload.ts +14 -3
  95. package/src/registry/record/query/0.3/payload.ts +360 -0
  96. package/src/registry/record/read/0.1/payload.ts +5 -5
  97. package/src/registry/record/update/0.1/payload.ts +5 -5
@@ -0,0 +1,540 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/registry/record/query/0.3/payload.schema.json
4
+ */
5
+ import type { Ext, RecordType, TrustRecord_RegistryV0_2 as TrustRecord } from "../../../../_shared/components.js";
6
+ /**
7
+ * An administrator queries a trust registry's stored records by an optional four-part key. All four parts supplied: an exact fetch of one record (notFound on a miss). Fewer parts: a filtered, cursor-paginated enumeration — fixing the pagination gap the superseded registry/record/list conceded. Members are lowerCamelCase, as throughout the registry/* family.
8
+ */
9
+ export interface RegistryRecordQueryPayload {
10
+ /**
11
+ * Filter to records for this entity.
12
+ */
13
+ entityId?: string;
14
+ /**
15
+ * Filter to records asserted by this authority.
16
+ */
17
+ authorityId?: string;
18
+ /**
19
+ * Filter to records for this action.
20
+ */
21
+ action?: string;
22
+ /**
23
+ * Filter to records for this resource.
24
+ */
25
+ resource?: string;
26
+ /**
27
+ * Opaque continuation token from a previous page's `nextCursor`.
28
+ */
29
+ cursor?: string;
30
+ /**
31
+ * Page size; the registry clamps to 1..=200 (default 50). Ignored on a fully keyed exact fetch.
32
+ */
33
+ limit?: number;
34
+ ext?: Ext;
35
+ }
36
+ export interface RegistryRecordQueryResponsePayload {
37
+ /**
38
+ * The matching trust records. Exactly one entry on a fully keyed fetch; zero or more per page on an enumeration.
39
+ */
40
+ records: TrustRecord[];
41
+ /**
42
+ * Continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page and on a fully keyed fetch — never null.
43
+ */
44
+ nextCursor?: string;
45
+ ext?: Ext;
46
+ }
47
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
48
+ export type { Ext, RecordType, TrustRecord };
49
+ /** Trust Task type URI. */
50
+ export declare const TYPE_URI: "https://trusttasks.org/spec/registry/record/query/0.3";
51
+ /**
52
+ * The earlier version of this specification that this one declares it
53
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
54
+ * `null`. Only the direct declaration — follow the chain with
55
+ * `extendsChain` / `readForSpec`.
56
+ */
57
+ export declare const EXTENDS: string | null;
58
+ /**
59
+ * Why this version is deprecated, or `null` while it is current. A
60
+ * superseded or retired version is still supported, and is withdrawn from
61
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
62
+ * Versions").
63
+ */
64
+ export declare const DEPRECATION: string | null;
65
+ /** Stable alias for this specification's request payload shape. */
66
+ export type Payload = RegistryRecordQueryPayload;
67
+ /** Trust Task response type URI (request type URI + "#response"). */
68
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/record/query/0.3#response";
69
+ /** Stable alias for this specification's success-response payload shape. */
70
+ export type Response = RegistryRecordQueryResponsePayload;
71
+ /**
72
+ * This specification's payload schema, as a value.
73
+ *
74
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
75
+ * rather than only as a `.json` file because TypeScript types are erased
76
+ * at runtime: without a schema a consumer has nothing to validate, and
77
+ * every REQUIRED payload member is optional in practice. Cross-file
78
+ * `$ref`s are already inlined, so it needs no resolver.
79
+ */
80
+ export declare const PAYLOAD_SCHEMA: {
81
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
82
+ readonly $id: "https://trusttasks.org/spec/registry/record/query/0.3";
83
+ readonly title: "Registry Record Query — payload";
84
+ readonly description: "An administrator queries a trust registry's stored records by an optional four-part key. All four parts supplied: an exact fetch of one record (notFound on a miss). Fewer parts: a filtered, cursor-paginated enumeration — fixing the pagination gap the superseded registry/record/list conceded. Members are lowerCamelCase, as throughout the registry/* family.";
85
+ readonly type: "object";
86
+ readonly additionalProperties: false;
87
+ readonly properties: {
88
+ readonly entityId: {
89
+ readonly type: "string";
90
+ readonly description: "Filter to records for this entity.";
91
+ };
92
+ readonly authorityId: {
93
+ readonly type: "string";
94
+ readonly description: "Filter to records asserted by this authority.";
95
+ };
96
+ readonly action: {
97
+ readonly type: "string";
98
+ readonly description: "Filter to records for this action.";
99
+ };
100
+ readonly resource: {
101
+ readonly type: "string";
102
+ readonly description: "Filter to records for this resource.";
103
+ };
104
+ readonly cursor: {
105
+ readonly type: "string";
106
+ readonly description: "Opaque continuation token from a previous page's `nextCursor`.";
107
+ };
108
+ readonly limit: {
109
+ readonly type: "integer";
110
+ readonly minimum: 1;
111
+ readonly maximum: 200;
112
+ readonly description: "Page size; the registry clamps to 1..=200 (default 50). Ignored on a fully keyed exact fetch.";
113
+ };
114
+ readonly ext: {
115
+ readonly $ref: "#/$defs/Ext";
116
+ };
117
+ };
118
+ readonly $defs: {
119
+ readonly Response: {
120
+ readonly $anchor: "response";
121
+ readonly title: "Registry Record Query — response payload";
122
+ readonly type: "object";
123
+ readonly additionalProperties: false;
124
+ readonly required: readonly ["records"];
125
+ readonly properties: {
126
+ readonly records: {
127
+ readonly type: "array";
128
+ readonly description: "The matching trust records. Exactly one entry on a fully keyed fetch; zero or more per page on an enumeration.";
129
+ readonly items: {
130
+ readonly $ref: "#/$defs/TrustRecord";
131
+ };
132
+ };
133
+ readonly nextCursor: {
134
+ readonly type: "string";
135
+ readonly description: "Continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page and on a fully keyed fetch — never null.";
136
+ };
137
+ readonly ext: {
138
+ readonly $ref: "#/$defs/Ext";
139
+ };
140
+ };
141
+ };
142
+ readonly Ext: {
143
+ readonly title: "Ext";
144
+ 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.";
145
+ readonly type: "object";
146
+ readonly minProperties: 1;
147
+ readonly additionalProperties: true;
148
+ readonly propertyNames: {
149
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
150
+ };
151
+ };
152
+ readonly TrustRecord: {
153
+ readonly title: "TrustRecord";
154
+ readonly type: "object";
155
+ readonly additionalProperties: false;
156
+ readonly required: readonly ["entityId", "authorityId", "action", "resource", "recordType"];
157
+ readonly properties: {
158
+ readonly entityId: {
159
+ readonly type: "string";
160
+ };
161
+ readonly authorityId: {
162
+ readonly type: "string";
163
+ };
164
+ readonly action: {
165
+ readonly type: "string";
166
+ };
167
+ readonly resource: {
168
+ readonly type: "string";
169
+ };
170
+ readonly recognized: {
171
+ readonly type: "boolean";
172
+ readonly description: "Present on recognition records: whether the action+resource is recognised.";
173
+ };
174
+ readonly authorized: {
175
+ readonly type: "boolean";
176
+ readonly description: "Present on authorization records: whether the action+resource authorization is confirmed.";
177
+ };
178
+ readonly context: {
179
+ readonly type: "object";
180
+ readonly description: "Opaque governance context attached to the record.";
181
+ readonly additionalProperties: true;
182
+ };
183
+ readonly recordType: {
184
+ readonly $ref: "#/$defs/RecordType";
185
+ };
186
+ readonly validFrom: {
187
+ readonly type: "string";
188
+ readonly format: "date-time";
189
+ readonly description: "The first instant at which the authority statement holds (inclusive). Absent: no lower bound.";
190
+ };
191
+ readonly validUntil: {
192
+ readonly type: "string";
193
+ readonly format: "date-time";
194
+ readonly description: "The instant at which the authority statement stops holding (exclusive). Absent: no upper bound. When both bounds are present, `validFrom` MUST be earlier than `validUntil`.";
195
+ };
196
+ };
197
+ };
198
+ readonly RecordType: {
199
+ readonly title: "RecordType";
200
+ readonly type: "string";
201
+ readonly enum: readonly ["authorization", "recognition"];
202
+ readonly description: "Whether the record asserts an authorization or a recognition relationship.";
203
+ };
204
+ };
205
+ };
206
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
207
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
208
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
209
+ readonly $ref: "#/$defs/Response";
210
+ readonly $defs: {
211
+ readonly Response: {
212
+ readonly $anchor: "response";
213
+ readonly title: "Registry Record Query — response payload";
214
+ readonly type: "object";
215
+ readonly additionalProperties: false;
216
+ readonly required: readonly ["records"];
217
+ readonly properties: {
218
+ readonly records: {
219
+ readonly type: "array";
220
+ readonly description: "The matching trust records. Exactly one entry on a fully keyed fetch; zero or more per page on an enumeration.";
221
+ readonly items: {
222
+ readonly $ref: "#/$defs/TrustRecord";
223
+ };
224
+ };
225
+ readonly nextCursor: {
226
+ readonly type: "string";
227
+ readonly description: "Continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page and on a fully keyed fetch — never null.";
228
+ };
229
+ readonly ext: {
230
+ readonly $ref: "#/$defs/Ext";
231
+ };
232
+ };
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
+ readonly TrustRecord: {
245
+ readonly title: "TrustRecord";
246
+ readonly type: "object";
247
+ readonly additionalProperties: false;
248
+ readonly required: readonly ["entityId", "authorityId", "action", "resource", "recordType"];
249
+ readonly properties: {
250
+ readonly entityId: {
251
+ readonly type: "string";
252
+ };
253
+ readonly authorityId: {
254
+ readonly type: "string";
255
+ };
256
+ readonly action: {
257
+ readonly type: "string";
258
+ };
259
+ readonly resource: {
260
+ readonly type: "string";
261
+ };
262
+ readonly recognized: {
263
+ readonly type: "boolean";
264
+ readonly description: "Present on recognition records: whether the action+resource is recognised.";
265
+ };
266
+ readonly authorized: {
267
+ readonly type: "boolean";
268
+ readonly description: "Present on authorization records: whether the action+resource authorization is confirmed.";
269
+ };
270
+ readonly context: {
271
+ readonly type: "object";
272
+ readonly description: "Opaque governance context attached to the record.";
273
+ readonly additionalProperties: true;
274
+ };
275
+ readonly recordType: {
276
+ readonly $ref: "#/$defs/RecordType";
277
+ };
278
+ readonly validFrom: {
279
+ readonly type: "string";
280
+ readonly format: "date-time";
281
+ readonly description: "The first instant at which the authority statement holds (inclusive). Absent: no lower bound.";
282
+ };
283
+ readonly validUntil: {
284
+ readonly type: "string";
285
+ readonly format: "date-time";
286
+ readonly description: "The instant at which the authority statement stops holding (exclusive). Absent: no upper bound. When both bounds are present, `validFrom` MUST be earlier than `validUntil`.";
287
+ };
288
+ };
289
+ };
290
+ readonly RecordType: {
291
+ readonly title: "RecordType";
292
+ readonly type: "string";
293
+ readonly enum: readonly ["authorization", "recognition"];
294
+ readonly description: "Whether the record asserts an authorization or a recognition relationship.";
295
+ };
296
+ };
297
+ };
298
+ /**
299
+ * SPEC.md §7.2 policy for the request variant, from this specification's
300
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
301
+ * per-specification and cannot be derived from the document alone, and
302
+ * item 2 needs the schema this carries.
303
+ */
304
+ export declare const SPEC: {
305
+ readonly typeUri: "https://trusttasks.org/spec/registry/record/query/0.3";
306
+ readonly isBearer: false;
307
+ readonly isProofRequired: false;
308
+ readonly isRecipientRequired: true;
309
+ readonly isIssuedAtRequired: false;
310
+ readonly payloadSchema: {
311
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
312
+ readonly $id: "https://trusttasks.org/spec/registry/record/query/0.3";
313
+ readonly title: "Registry Record Query — payload";
314
+ readonly description: "An administrator queries a trust registry's stored records by an optional four-part key. All four parts supplied: an exact fetch of one record (notFound on a miss). Fewer parts: a filtered, cursor-paginated enumeration — fixing the pagination gap the superseded registry/record/list conceded. Members are lowerCamelCase, as throughout the registry/* family.";
315
+ readonly type: "object";
316
+ readonly additionalProperties: false;
317
+ readonly properties: {
318
+ readonly entityId: {
319
+ readonly type: "string";
320
+ readonly description: "Filter to records for this entity.";
321
+ };
322
+ readonly authorityId: {
323
+ readonly type: "string";
324
+ readonly description: "Filter to records asserted by this authority.";
325
+ };
326
+ readonly action: {
327
+ readonly type: "string";
328
+ readonly description: "Filter to records for this action.";
329
+ };
330
+ readonly resource: {
331
+ readonly type: "string";
332
+ readonly description: "Filter to records for this resource.";
333
+ };
334
+ readonly cursor: {
335
+ readonly type: "string";
336
+ readonly description: "Opaque continuation token from a previous page's `nextCursor`.";
337
+ };
338
+ readonly limit: {
339
+ readonly type: "integer";
340
+ readonly minimum: 1;
341
+ readonly maximum: 200;
342
+ readonly description: "Page size; the registry clamps to 1..=200 (default 50). Ignored on a fully keyed exact fetch.";
343
+ };
344
+ readonly ext: {
345
+ readonly $ref: "#/$defs/Ext";
346
+ };
347
+ };
348
+ readonly $defs: {
349
+ readonly Response: {
350
+ readonly $anchor: "response";
351
+ readonly title: "Registry Record Query — response payload";
352
+ readonly type: "object";
353
+ readonly additionalProperties: false;
354
+ readonly required: readonly ["records"];
355
+ readonly properties: {
356
+ readonly records: {
357
+ readonly type: "array";
358
+ readonly description: "The matching trust records. Exactly one entry on a fully keyed fetch; zero or more per page on an enumeration.";
359
+ readonly items: {
360
+ readonly $ref: "#/$defs/TrustRecord";
361
+ };
362
+ };
363
+ readonly nextCursor: {
364
+ readonly type: "string";
365
+ readonly description: "Continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page and on a fully keyed fetch — never null.";
366
+ };
367
+ readonly ext: {
368
+ readonly $ref: "#/$defs/Ext";
369
+ };
370
+ };
371
+ };
372
+ readonly Ext: {
373
+ readonly title: "Ext";
374
+ 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.";
375
+ readonly type: "object";
376
+ readonly minProperties: 1;
377
+ readonly additionalProperties: true;
378
+ readonly propertyNames: {
379
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
380
+ };
381
+ };
382
+ readonly TrustRecord: {
383
+ readonly title: "TrustRecord";
384
+ readonly type: "object";
385
+ readonly additionalProperties: false;
386
+ readonly required: readonly ["entityId", "authorityId", "action", "resource", "recordType"];
387
+ readonly properties: {
388
+ readonly entityId: {
389
+ readonly type: "string";
390
+ };
391
+ readonly authorityId: {
392
+ readonly type: "string";
393
+ };
394
+ readonly action: {
395
+ readonly type: "string";
396
+ };
397
+ readonly resource: {
398
+ readonly type: "string";
399
+ };
400
+ readonly recognized: {
401
+ readonly type: "boolean";
402
+ readonly description: "Present on recognition records: whether the action+resource is recognised.";
403
+ };
404
+ readonly authorized: {
405
+ readonly type: "boolean";
406
+ readonly description: "Present on authorization records: whether the action+resource authorization is confirmed.";
407
+ };
408
+ readonly context: {
409
+ readonly type: "object";
410
+ readonly description: "Opaque governance context attached to the record.";
411
+ readonly additionalProperties: true;
412
+ };
413
+ readonly recordType: {
414
+ readonly $ref: "#/$defs/RecordType";
415
+ };
416
+ readonly validFrom: {
417
+ readonly type: "string";
418
+ readonly format: "date-time";
419
+ readonly description: "The first instant at which the authority statement holds (inclusive). Absent: no lower bound.";
420
+ };
421
+ readonly validUntil: {
422
+ readonly type: "string";
423
+ readonly format: "date-time";
424
+ readonly description: "The instant at which the authority statement stops holding (exclusive). Absent: no upper bound. When both bounds are present, `validFrom` MUST be earlier than `validUntil`.";
425
+ };
426
+ };
427
+ };
428
+ readonly RecordType: {
429
+ readonly title: "RecordType";
430
+ readonly type: "string";
431
+ readonly enum: readonly ["authorization", "recognition"];
432
+ readonly description: "Whether the record asserts an authorization or a recognition relationship.";
433
+ };
434
+ };
435
+ };
436
+ };
437
+ /**
438
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
439
+ * tracks the *issuer* party's requirement because a response swaps the
440
+ * parties (§7.3 item 5).
441
+ */
442
+ export declare const RESPONSE_SPEC: {
443
+ readonly typeUri: "https://trusttasks.org/spec/registry/record/query/0.3#response";
444
+ readonly isBearer: false;
445
+ readonly isProofRequired: false;
446
+ readonly isRecipientRequired: true;
447
+ readonly isIssuedAtRequired: false;
448
+ readonly payloadSchema: {
449
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
450
+ readonly $ref: "#/$defs/Response";
451
+ readonly $defs: {
452
+ readonly Response: {
453
+ readonly $anchor: "response";
454
+ readonly title: "Registry Record Query — response payload";
455
+ readonly type: "object";
456
+ readonly additionalProperties: false;
457
+ readonly required: readonly ["records"];
458
+ readonly properties: {
459
+ readonly records: {
460
+ readonly type: "array";
461
+ readonly description: "The matching trust records. Exactly one entry on a fully keyed fetch; zero or more per page on an enumeration.";
462
+ readonly items: {
463
+ readonly $ref: "#/$defs/TrustRecord";
464
+ };
465
+ };
466
+ readonly nextCursor: {
467
+ readonly type: "string";
468
+ readonly description: "Continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page and on a fully keyed fetch — never null.";
469
+ };
470
+ readonly ext: {
471
+ readonly $ref: "#/$defs/Ext";
472
+ };
473
+ };
474
+ };
475
+ readonly Ext: {
476
+ readonly title: "Ext";
477
+ 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.";
478
+ readonly type: "object";
479
+ readonly minProperties: 1;
480
+ readonly additionalProperties: true;
481
+ readonly propertyNames: {
482
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
483
+ };
484
+ };
485
+ readonly TrustRecord: {
486
+ readonly title: "TrustRecord";
487
+ readonly type: "object";
488
+ readonly additionalProperties: false;
489
+ readonly required: readonly ["entityId", "authorityId", "action", "resource", "recordType"];
490
+ readonly properties: {
491
+ readonly entityId: {
492
+ readonly type: "string";
493
+ };
494
+ readonly authorityId: {
495
+ readonly type: "string";
496
+ };
497
+ readonly action: {
498
+ readonly type: "string";
499
+ };
500
+ readonly resource: {
501
+ readonly type: "string";
502
+ };
503
+ readonly recognized: {
504
+ readonly type: "boolean";
505
+ readonly description: "Present on recognition records: whether the action+resource is recognised.";
506
+ };
507
+ readonly authorized: {
508
+ readonly type: "boolean";
509
+ readonly description: "Present on authorization records: whether the action+resource authorization is confirmed.";
510
+ };
511
+ readonly context: {
512
+ readonly type: "object";
513
+ readonly description: "Opaque governance context attached to the record.";
514
+ readonly additionalProperties: true;
515
+ };
516
+ readonly recordType: {
517
+ readonly $ref: "#/$defs/RecordType";
518
+ };
519
+ readonly validFrom: {
520
+ readonly type: "string";
521
+ readonly format: "date-time";
522
+ readonly description: "The first instant at which the authority statement holds (inclusive). Absent: no lower bound.";
523
+ };
524
+ readonly validUntil: {
525
+ readonly type: "string";
526
+ readonly format: "date-time";
527
+ readonly description: "The instant at which the authority statement stops holding (exclusive). Absent: no upper bound. When both bounds are present, `validFrom` MUST be earlier than `validUntil`.";
528
+ };
529
+ };
530
+ };
531
+ readonly RecordType: {
532
+ readonly title: "RecordType";
533
+ readonly type: "string";
534
+ readonly enum: readonly ["authorization", "recognition"];
535
+ readonly description: "Whether the record asserts an authorization or a recognition relationship.";
536
+ };
537
+ };
538
+ };
539
+ };
540
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/registry/record/query/0.3/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,wBAAwB,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGlH;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;AAE7C,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,uDAAgE,CAAC;AAEzF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,GAAG,IAAW,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,GAAG,IAAW,CAAC;AAE/C,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAEjD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,gEAAyE,CAAC;AAE3G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAE1D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwIjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqG1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}