@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,494 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/registry/recognition/0.2/payload.schema.json
4
+ */
5
+ import type { Ext, QueryContext } from "../../../_shared/components.js";
6
+ /**
7
+ * TRQP v2.0 recognition query: ask a trust registry whether an entity is recognised by an authority for a given action+resource, evaluated as of `context.time` (or the registry's current time) against the matching record's validity window. Members are lowerCamelCase per the registry naming convention; a registry serving the plain HTTP TRQP binding maps them to TRQP's snake_case field names (`entityId` ↔ `entity_id`, `evaluatedAt` ↔ `time_evaluated`, and so on) at that binding.
8
+ */
9
+ export interface RegistryRecognitionPayload {
10
+ /**
11
+ * Identifier of the entity being tested for recognition.
12
+ */
13
+ entityId: string;
14
+ /**
15
+ * Identifier of the authority being queried to recognise the entity.
16
+ */
17
+ authorityId: string;
18
+ /**
19
+ * The action the query is checking recognition for.
20
+ */
21
+ action: string;
22
+ /**
23
+ * The resource the query is checking recognition for.
24
+ */
25
+ resource: string;
26
+ context?: QueryContext;
27
+ ext?: Ext;
28
+ }
29
+ export interface RegistryRecognitionResponsePayload {
30
+ entityId: string;
31
+ authorityId: string;
32
+ action: string;
33
+ resource: string;
34
+ /**
35
+ * True if the action+resource has been recognised, false otherwise.
36
+ */
37
+ recognized: boolean;
38
+ /**
39
+ * Server time the query was evaluated at, per the endpoint clock.
40
+ */
41
+ evaluatedAt: string;
42
+ /**
43
+ * The requested server time, echoed from the request `context.time` when supplied.
44
+ */
45
+ asOf?: string;
46
+ /**
47
+ * Additional human-readable detail about the recognition response.
48
+ */
49
+ message?: string;
50
+ context?: QueryContext;
51
+ ext?: Ext;
52
+ }
53
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
54
+ export type { Ext, QueryContext };
55
+ /** Trust Task type URI. */
56
+ export declare const TYPE_URI: "https://trusttasks.org/spec/registry/recognition/0.2";
57
+ /**
58
+ * The earlier version of this specification that this one declares it
59
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
60
+ * `null`. Only the direct declaration — follow the chain with
61
+ * `extendsChain` / `readForSpec`.
62
+ */
63
+ export declare const EXTENDS: string | null;
64
+ /**
65
+ * Why this version is deprecated, or `null` while it is current. A
66
+ * superseded or retired version is still supported, and is withdrawn from
67
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
68
+ * Versions").
69
+ */
70
+ export declare const DEPRECATION: string | null;
71
+ /** Stable alias for this specification's request payload shape. */
72
+ export type Payload = RegistryRecognitionPayload;
73
+ /** Trust Task response type URI (request type URI + "#response"). */
74
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/recognition/0.2#response";
75
+ /** Stable alias for this specification's success-response payload shape. */
76
+ export type Response = RegistryRecognitionResponsePayload;
77
+ /**
78
+ * This specification's payload schema, as a value.
79
+ *
80
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
81
+ * rather than only as a `.json` file because TypeScript types are erased
82
+ * at runtime: without a schema a consumer has nothing to validate, and
83
+ * every REQUIRED payload member is optional in practice. Cross-file
84
+ * `$ref`s are already inlined, so it needs no resolver.
85
+ */
86
+ export declare const PAYLOAD_SCHEMA: {
87
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
88
+ readonly $id: "https://trusttasks.org/spec/registry/recognition/0.2";
89
+ readonly title: "Registry Recognition — payload";
90
+ readonly description: "TRQP v2.0 recognition query: ask a trust registry whether an entity is recognised by an authority for a given action+resource, evaluated as of `context.time` (or the registry's current time) against the matching record's validity window. Members are lowerCamelCase per the registry naming convention; a registry serving the plain HTTP TRQP binding maps them to TRQP's snake_case field names (`entityId` ↔ `entity_id`, `evaluatedAt` ↔ `time_evaluated`, and so on) at that binding.";
91
+ readonly type: "object";
92
+ readonly additionalProperties: false;
93
+ readonly required: readonly ["entityId", "authorityId", "action", "resource"];
94
+ readonly properties: {
95
+ readonly entityId: {
96
+ readonly type: "string";
97
+ readonly description: "Identifier of the entity being tested for recognition.";
98
+ };
99
+ readonly authorityId: {
100
+ readonly type: "string";
101
+ readonly description: "Identifier of the authority being queried to recognise the entity.";
102
+ };
103
+ readonly action: {
104
+ readonly type: "string";
105
+ readonly description: "The action the query is checking recognition for.";
106
+ };
107
+ readonly resource: {
108
+ readonly type: "string";
109
+ readonly description: "The resource the query is checking recognition for.";
110
+ };
111
+ readonly context: {
112
+ readonly $ref: "#/$defs/QueryContext";
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 Recognition — response payload";
122
+ readonly type: "object";
123
+ readonly additionalProperties: false;
124
+ readonly required: readonly ["entityId", "authorityId", "action", "resource", "recognized", "evaluatedAt"];
125
+ readonly properties: {
126
+ readonly entityId: {
127
+ readonly type: "string";
128
+ };
129
+ readonly authorityId: {
130
+ readonly type: "string";
131
+ };
132
+ readonly action: {
133
+ readonly type: "string";
134
+ };
135
+ readonly resource: {
136
+ readonly type: "string";
137
+ };
138
+ readonly recognized: {
139
+ readonly type: "boolean";
140
+ readonly description: "True if the action+resource has been recognised, false otherwise.";
141
+ };
142
+ readonly evaluatedAt: {
143
+ readonly type: "string";
144
+ readonly format: "date-time";
145
+ readonly description: "Server time the query was evaluated at, per the endpoint clock.";
146
+ };
147
+ readonly asOf: {
148
+ readonly type: "string";
149
+ readonly format: "date-time";
150
+ readonly description: "The requested server time, echoed from the request `context.time` when supplied.";
151
+ };
152
+ readonly message: {
153
+ readonly type: "string";
154
+ readonly maxLength: 1024;
155
+ readonly description: "Additional human-readable detail about the recognition response.";
156
+ };
157
+ readonly context: {
158
+ readonly $ref: "#/$defs/QueryContext";
159
+ };
160
+ readonly ext: {
161
+ readonly $ref: "#/$defs/Ext";
162
+ };
163
+ };
164
+ };
165
+ readonly Ext: {
166
+ readonly title: "Ext";
167
+ 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.";
168
+ readonly type: "object";
169
+ readonly minProperties: 1;
170
+ readonly additionalProperties: true;
171
+ readonly propertyNames: {
172
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
173
+ };
174
+ };
175
+ readonly QueryContext: {
176
+ readonly title: "QueryContext";
177
+ readonly type: "object";
178
+ readonly description: "Optional TRQP query context. `time` requests evaluation as of a given instant; `locator` is an authority-defined hint for locating records.";
179
+ readonly properties: {
180
+ readonly time: {
181
+ readonly type: "string";
182
+ readonly format: "date-time";
183
+ readonly description: "Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time.";
184
+ };
185
+ readonly locator: {
186
+ readonly type: "string";
187
+ readonly description: "Optional hint for systems that need extra information to locate the records in question (authorization queries).";
188
+ };
189
+ };
190
+ readonly additionalProperties: {
191
+ readonly type: "string";
192
+ };
193
+ };
194
+ };
195
+ };
196
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
197
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
198
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
199
+ readonly $ref: "#/$defs/Response";
200
+ readonly $defs: {
201
+ readonly Response: {
202
+ readonly $anchor: "response";
203
+ readonly title: "Registry Recognition — response payload";
204
+ readonly type: "object";
205
+ readonly additionalProperties: false;
206
+ readonly required: readonly ["entityId", "authorityId", "action", "resource", "recognized", "evaluatedAt"];
207
+ readonly properties: {
208
+ readonly entityId: {
209
+ readonly type: "string";
210
+ };
211
+ readonly authorityId: {
212
+ readonly type: "string";
213
+ };
214
+ readonly action: {
215
+ readonly type: "string";
216
+ };
217
+ readonly resource: {
218
+ readonly type: "string";
219
+ };
220
+ readonly recognized: {
221
+ readonly type: "boolean";
222
+ readonly description: "True if the action+resource has been recognised, false otherwise.";
223
+ };
224
+ readonly evaluatedAt: {
225
+ readonly type: "string";
226
+ readonly format: "date-time";
227
+ readonly description: "Server time the query was evaluated at, per the endpoint clock.";
228
+ };
229
+ readonly asOf: {
230
+ readonly type: "string";
231
+ readonly format: "date-time";
232
+ readonly description: "The requested server time, echoed from the request `context.time` when supplied.";
233
+ };
234
+ readonly message: {
235
+ readonly type: "string";
236
+ readonly maxLength: 1024;
237
+ readonly description: "Additional human-readable detail about the recognition response.";
238
+ };
239
+ readonly context: {
240
+ readonly $ref: "#/$defs/QueryContext";
241
+ };
242
+ readonly ext: {
243
+ readonly $ref: "#/$defs/Ext";
244
+ };
245
+ };
246
+ };
247
+ readonly Ext: {
248
+ readonly title: "Ext";
249
+ 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.";
250
+ readonly type: "object";
251
+ readonly minProperties: 1;
252
+ readonly additionalProperties: true;
253
+ readonly propertyNames: {
254
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
255
+ };
256
+ };
257
+ readonly QueryContext: {
258
+ readonly title: "QueryContext";
259
+ readonly type: "object";
260
+ readonly description: "Optional TRQP query context. `time` requests evaluation as of a given instant; `locator` is an authority-defined hint for locating records.";
261
+ readonly properties: {
262
+ readonly time: {
263
+ readonly type: "string";
264
+ readonly format: "date-time";
265
+ readonly description: "Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time.";
266
+ };
267
+ readonly locator: {
268
+ readonly type: "string";
269
+ readonly description: "Optional hint for systems that need extra information to locate the records in question (authorization queries).";
270
+ };
271
+ };
272
+ readonly additionalProperties: {
273
+ readonly type: "string";
274
+ };
275
+ };
276
+ };
277
+ };
278
+ /**
279
+ * SPEC.md §7.2 policy for the request variant, from this specification's
280
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
281
+ * per-specification and cannot be derived from the document alone, and
282
+ * item 2 needs the schema this carries.
283
+ */
284
+ export declare const SPEC: {
285
+ readonly typeUri: "https://trusttasks.org/spec/registry/recognition/0.2";
286
+ readonly isBearer: false;
287
+ readonly isProofRequired: false;
288
+ readonly isRecipientRequired: true;
289
+ readonly isIssuedAtRequired: false;
290
+ readonly payloadSchema: {
291
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
292
+ readonly $id: "https://trusttasks.org/spec/registry/recognition/0.2";
293
+ readonly title: "Registry Recognition — payload";
294
+ readonly description: "TRQP v2.0 recognition query: ask a trust registry whether an entity is recognised by an authority for a given action+resource, evaluated as of `context.time` (or the registry's current time) against the matching record's validity window. Members are lowerCamelCase per the registry naming convention; a registry serving the plain HTTP TRQP binding maps them to TRQP's snake_case field names (`entityId` ↔ `entity_id`, `evaluatedAt` ↔ `time_evaluated`, and so on) at that binding.";
295
+ readonly type: "object";
296
+ readonly additionalProperties: false;
297
+ readonly required: readonly ["entityId", "authorityId", "action", "resource"];
298
+ readonly properties: {
299
+ readonly entityId: {
300
+ readonly type: "string";
301
+ readonly description: "Identifier of the entity being tested for recognition.";
302
+ };
303
+ readonly authorityId: {
304
+ readonly type: "string";
305
+ readonly description: "Identifier of the authority being queried to recognise the entity.";
306
+ };
307
+ readonly action: {
308
+ readonly type: "string";
309
+ readonly description: "The action the query is checking recognition for.";
310
+ };
311
+ readonly resource: {
312
+ readonly type: "string";
313
+ readonly description: "The resource the query is checking recognition for.";
314
+ };
315
+ readonly context: {
316
+ readonly $ref: "#/$defs/QueryContext";
317
+ };
318
+ readonly ext: {
319
+ readonly $ref: "#/$defs/Ext";
320
+ };
321
+ };
322
+ readonly $defs: {
323
+ readonly Response: {
324
+ readonly $anchor: "response";
325
+ readonly title: "Registry Recognition — response payload";
326
+ readonly type: "object";
327
+ readonly additionalProperties: false;
328
+ readonly required: readonly ["entityId", "authorityId", "action", "resource", "recognized", "evaluatedAt"];
329
+ readonly properties: {
330
+ readonly entityId: {
331
+ readonly type: "string";
332
+ };
333
+ readonly authorityId: {
334
+ readonly type: "string";
335
+ };
336
+ readonly action: {
337
+ readonly type: "string";
338
+ };
339
+ readonly resource: {
340
+ readonly type: "string";
341
+ };
342
+ readonly recognized: {
343
+ readonly type: "boolean";
344
+ readonly description: "True if the action+resource has been recognised, false otherwise.";
345
+ };
346
+ readonly evaluatedAt: {
347
+ readonly type: "string";
348
+ readonly format: "date-time";
349
+ readonly description: "Server time the query was evaluated at, per the endpoint clock.";
350
+ };
351
+ readonly asOf: {
352
+ readonly type: "string";
353
+ readonly format: "date-time";
354
+ readonly description: "The requested server time, echoed from the request `context.time` when supplied.";
355
+ };
356
+ readonly message: {
357
+ readonly type: "string";
358
+ readonly maxLength: 1024;
359
+ readonly description: "Additional human-readable detail about the recognition response.";
360
+ };
361
+ readonly context: {
362
+ readonly $ref: "#/$defs/QueryContext";
363
+ };
364
+ readonly ext: {
365
+ readonly $ref: "#/$defs/Ext";
366
+ };
367
+ };
368
+ };
369
+ readonly Ext: {
370
+ readonly title: "Ext";
371
+ 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.";
372
+ readonly type: "object";
373
+ readonly minProperties: 1;
374
+ readonly additionalProperties: true;
375
+ readonly propertyNames: {
376
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
377
+ };
378
+ };
379
+ readonly QueryContext: {
380
+ readonly title: "QueryContext";
381
+ readonly type: "object";
382
+ readonly description: "Optional TRQP query context. `time` requests evaluation as of a given instant; `locator` is an authority-defined hint for locating records.";
383
+ readonly properties: {
384
+ readonly time: {
385
+ readonly type: "string";
386
+ readonly format: "date-time";
387
+ readonly description: "Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time.";
388
+ };
389
+ readonly locator: {
390
+ readonly type: "string";
391
+ readonly description: "Optional hint for systems that need extra information to locate the records in question (authorization queries).";
392
+ };
393
+ };
394
+ readonly additionalProperties: {
395
+ readonly type: "string";
396
+ };
397
+ };
398
+ };
399
+ };
400
+ };
401
+ /**
402
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
403
+ * tracks the *issuer* party's requirement because a response swaps the
404
+ * parties (§7.3 item 5).
405
+ */
406
+ export declare const RESPONSE_SPEC: {
407
+ readonly typeUri: "https://trusttasks.org/spec/registry/recognition/0.2#response";
408
+ readonly isBearer: false;
409
+ readonly isProofRequired: false;
410
+ readonly isRecipientRequired: true;
411
+ readonly isIssuedAtRequired: false;
412
+ readonly payloadSchema: {
413
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
414
+ readonly $ref: "#/$defs/Response";
415
+ readonly $defs: {
416
+ readonly Response: {
417
+ readonly $anchor: "response";
418
+ readonly title: "Registry Recognition — response payload";
419
+ readonly type: "object";
420
+ readonly additionalProperties: false;
421
+ readonly required: readonly ["entityId", "authorityId", "action", "resource", "recognized", "evaluatedAt"];
422
+ readonly properties: {
423
+ readonly entityId: {
424
+ readonly type: "string";
425
+ };
426
+ readonly authorityId: {
427
+ readonly type: "string";
428
+ };
429
+ readonly action: {
430
+ readonly type: "string";
431
+ };
432
+ readonly resource: {
433
+ readonly type: "string";
434
+ };
435
+ readonly recognized: {
436
+ readonly type: "boolean";
437
+ readonly description: "True if the action+resource has been recognised, false otherwise.";
438
+ };
439
+ readonly evaluatedAt: {
440
+ readonly type: "string";
441
+ readonly format: "date-time";
442
+ readonly description: "Server time the query was evaluated at, per the endpoint clock.";
443
+ };
444
+ readonly asOf: {
445
+ readonly type: "string";
446
+ readonly format: "date-time";
447
+ readonly description: "The requested server time, echoed from the request `context.time` when supplied.";
448
+ };
449
+ readonly message: {
450
+ readonly type: "string";
451
+ readonly maxLength: 1024;
452
+ readonly description: "Additional human-readable detail about the recognition response.";
453
+ };
454
+ readonly context: {
455
+ readonly $ref: "#/$defs/QueryContext";
456
+ };
457
+ readonly ext: {
458
+ readonly $ref: "#/$defs/Ext";
459
+ };
460
+ };
461
+ };
462
+ readonly Ext: {
463
+ readonly title: "Ext";
464
+ 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.";
465
+ readonly type: "object";
466
+ readonly minProperties: 1;
467
+ readonly additionalProperties: true;
468
+ readonly propertyNames: {
469
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
470
+ };
471
+ };
472
+ readonly QueryContext: {
473
+ readonly title: "QueryContext";
474
+ readonly type: "object";
475
+ readonly description: "Optional TRQP query context. `time` requests evaluation as of a given instant; `locator` is an authority-defined hint for locating records.";
476
+ readonly properties: {
477
+ readonly time: {
478
+ readonly type: "string";
479
+ readonly format: "date-time";
480
+ readonly description: "Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time.";
481
+ };
482
+ readonly locator: {
483
+ readonly type: "string";
484
+ readonly description: "Optional hint for systems that need extra information to locate the records in question (authorization queries).";
485
+ };
486
+ };
487
+ readonly additionalProperties: {
488
+ readonly type: "string";
489
+ };
490
+ };
491
+ };
492
+ };
493
+ };
494
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/registry/recognition/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAGxE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,kCAAkC;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC;AAElC,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF;;;;;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,+DAAwE,CAAC;AAE1G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAE1D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyHjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuF1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}