@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,299 @@
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
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/registry/record/query/0.3";
7
+ /**
8
+ * The earlier version of this specification that this one declares it
9
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
10
+ * `null`. Only the direct declaration — follow the chain with
11
+ * `extendsChain` / `readForSpec`.
12
+ */
13
+ export const EXTENDS = null;
14
+ /**
15
+ * Why this version is deprecated, or `null` while it is current. A
16
+ * superseded or retired version is still supported, and is withdrawn from
17
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
+ * Versions").
19
+ */
20
+ export const DEPRECATION = null;
21
+ /** Trust Task response type URI (request type URI + "#response"). */
22
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/record/query/0.3#response";
23
+ /**
24
+ * This specification's payload schema, as a value.
25
+ *
26
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
27
+ * rather than only as a `.json` file because TypeScript types are erased
28
+ * at runtime: without a schema a consumer has nothing to validate, and
29
+ * every REQUIRED payload member is optional in practice. Cross-file
30
+ * `$ref`s are already inlined, so it needs no resolver.
31
+ */
32
+ export const PAYLOAD_SCHEMA = {
33
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
34
+ "$id": "https://trusttasks.org/spec/registry/record/query/0.3",
35
+ "title": "Registry Record Query — payload",
36
+ "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.",
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "properties": {
40
+ "entityId": {
41
+ "type": "string",
42
+ "description": "Filter to records for this entity."
43
+ },
44
+ "authorityId": {
45
+ "type": "string",
46
+ "description": "Filter to records asserted by this authority."
47
+ },
48
+ "action": {
49
+ "type": "string",
50
+ "description": "Filter to records for this action."
51
+ },
52
+ "resource": {
53
+ "type": "string",
54
+ "description": "Filter to records for this resource."
55
+ },
56
+ "cursor": {
57
+ "type": "string",
58
+ "description": "Opaque continuation token from a previous page's `nextCursor`."
59
+ },
60
+ "limit": {
61
+ "type": "integer",
62
+ "minimum": 1,
63
+ "maximum": 200,
64
+ "description": "Page size; the registry clamps to 1..=200 (default 50). Ignored on a fully keyed exact fetch."
65
+ },
66
+ "ext": {
67
+ "$ref": "#/$defs/Ext"
68
+ }
69
+ },
70
+ "$defs": {
71
+ "Response": {
72
+ "$anchor": "response",
73
+ "title": "Registry Record Query — response payload",
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "required": [
77
+ "records"
78
+ ],
79
+ "properties": {
80
+ "records": {
81
+ "type": "array",
82
+ "description": "The matching trust records. Exactly one entry on a fully keyed fetch; zero or more per page on an enumeration.",
83
+ "items": {
84
+ "$ref": "#/$defs/TrustRecord"
85
+ }
86
+ },
87
+ "nextCursor": {
88
+ "type": "string",
89
+ "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."
90
+ },
91
+ "ext": {
92
+ "$ref": "#/$defs/Ext"
93
+ }
94
+ }
95
+ },
96
+ "Ext": {
97
+ "title": "Ext",
98
+ "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.",
99
+ "type": "object",
100
+ "minProperties": 1,
101
+ "additionalProperties": true,
102
+ "propertyNames": {
103
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
104
+ }
105
+ },
106
+ "TrustRecord": {
107
+ "title": "TrustRecord",
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "required": [
111
+ "entityId",
112
+ "authorityId",
113
+ "action",
114
+ "resource",
115
+ "recordType"
116
+ ],
117
+ "properties": {
118
+ "entityId": {
119
+ "type": "string"
120
+ },
121
+ "authorityId": {
122
+ "type": "string"
123
+ },
124
+ "action": {
125
+ "type": "string"
126
+ },
127
+ "resource": {
128
+ "type": "string"
129
+ },
130
+ "recognized": {
131
+ "type": "boolean",
132
+ "description": "Present on recognition records: whether the action+resource is recognised."
133
+ },
134
+ "authorized": {
135
+ "type": "boolean",
136
+ "description": "Present on authorization records: whether the action+resource authorization is confirmed."
137
+ },
138
+ "context": {
139
+ "type": "object",
140
+ "description": "Opaque governance context attached to the record.",
141
+ "additionalProperties": true
142
+ },
143
+ "recordType": {
144
+ "$ref": "#/$defs/RecordType"
145
+ },
146
+ "validFrom": {
147
+ "type": "string",
148
+ "format": "date-time",
149
+ "description": "The first instant at which the authority statement holds (inclusive). Absent: no lower bound."
150
+ },
151
+ "validUntil": {
152
+ "type": "string",
153
+ "format": "date-time",
154
+ "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`."
155
+ }
156
+ }
157
+ },
158
+ "RecordType": {
159
+ "title": "RecordType",
160
+ "type": "string",
161
+ "enum": [
162
+ "authorization",
163
+ "recognition"
164
+ ],
165
+ "description": "Whether the record asserts an authorization or a recognition relationship."
166
+ }
167
+ }
168
+ };
169
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
170
+ export const RESPONSE_PAYLOAD_SCHEMA = {
171
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
172
+ "$ref": "#/$defs/Response",
173
+ "$defs": {
174
+ "Response": {
175
+ "$anchor": "response",
176
+ "title": "Registry Record Query — response payload",
177
+ "type": "object",
178
+ "additionalProperties": false,
179
+ "required": [
180
+ "records"
181
+ ],
182
+ "properties": {
183
+ "records": {
184
+ "type": "array",
185
+ "description": "The matching trust records. Exactly one entry on a fully keyed fetch; zero or more per page on an enumeration.",
186
+ "items": {
187
+ "$ref": "#/$defs/TrustRecord"
188
+ }
189
+ },
190
+ "nextCursor": {
191
+ "type": "string",
192
+ "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."
193
+ },
194
+ "ext": {
195
+ "$ref": "#/$defs/Ext"
196
+ }
197
+ }
198
+ },
199
+ "Ext": {
200
+ "title": "Ext",
201
+ "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.",
202
+ "type": "object",
203
+ "minProperties": 1,
204
+ "additionalProperties": true,
205
+ "propertyNames": {
206
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
207
+ }
208
+ },
209
+ "TrustRecord": {
210
+ "title": "TrustRecord",
211
+ "type": "object",
212
+ "additionalProperties": false,
213
+ "required": [
214
+ "entityId",
215
+ "authorityId",
216
+ "action",
217
+ "resource",
218
+ "recordType"
219
+ ],
220
+ "properties": {
221
+ "entityId": {
222
+ "type": "string"
223
+ },
224
+ "authorityId": {
225
+ "type": "string"
226
+ },
227
+ "action": {
228
+ "type": "string"
229
+ },
230
+ "resource": {
231
+ "type": "string"
232
+ },
233
+ "recognized": {
234
+ "type": "boolean",
235
+ "description": "Present on recognition records: whether the action+resource is recognised."
236
+ },
237
+ "authorized": {
238
+ "type": "boolean",
239
+ "description": "Present on authorization records: whether the action+resource authorization is confirmed."
240
+ },
241
+ "context": {
242
+ "type": "object",
243
+ "description": "Opaque governance context attached to the record.",
244
+ "additionalProperties": true
245
+ },
246
+ "recordType": {
247
+ "$ref": "#/$defs/RecordType"
248
+ },
249
+ "validFrom": {
250
+ "type": "string",
251
+ "format": "date-time",
252
+ "description": "The first instant at which the authority statement holds (inclusive). Absent: no lower bound."
253
+ },
254
+ "validUntil": {
255
+ "type": "string",
256
+ "format": "date-time",
257
+ "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`."
258
+ }
259
+ }
260
+ },
261
+ "RecordType": {
262
+ "title": "RecordType",
263
+ "type": "string",
264
+ "enum": [
265
+ "authorization",
266
+ "recognition"
267
+ ],
268
+ "description": "Whether the record asserts an authorization or a recognition relationship."
269
+ }
270
+ }
271
+ };
272
+ /**
273
+ * SPEC.md §7.2 policy for the request variant, from this specification's
274
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
275
+ * per-specification and cannot be derived from the document alone, and
276
+ * item 2 needs the schema this carries.
277
+ */
278
+ export const SPEC = {
279
+ typeUri: TYPE_URI,
280
+ isBearer: false,
281
+ isProofRequired: false,
282
+ isRecipientRequired: true,
283
+ isIssuedAtRequired: false,
284
+ payloadSchema: PAYLOAD_SCHEMA,
285
+ };
286
+ /**
287
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
288
+ * tracks the *issuer* party's requirement because a response swaps the
289
+ * parties (§7.3 item 5).
290
+ */
291
+ export const RESPONSE_SPEC = {
292
+ typeUri: RESPONSE_TYPE_URI,
293
+ isBearer: false,
294
+ isProofRequired: false,
295
+ isRecipientRequired: true,
296
+ isIssuedAtRequired: false,
297
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
298
+ };
299
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/registry/record/query/0.3/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAEzF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,IAAI,CAAC;AAK/C,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,iCAAiC;IAC1C,aAAa,EAAE,uWAAuW;IACtX,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,UAAU,EAAE;YAC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IAAI;iBAC7B;gBACD,YAAY,EAAE;oBACZ,MAAM,EAAE,oBAAoB;iBAC7B;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,QAAQ;oBAChB,QAAQ,EAAE,WAAW;oBACrB,aAAa,EAAE,+FAA+F;iBAC/G;gBACD,YAAY,EAAE;oBACZ,MAAM,EAAE,QAAQ;oBAChB,QAAQ,EAAE,WAAW;oBACrB,aAAa,EAAE,8KAA8K;iBAC9L;aACF;SACF;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,YAAY;YACrB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,eAAe;gBACf,aAAa;aACd;YACD,aAAa,EAAE,4EAA4E;SAC5F;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -6,7 +6,7 @@ import type { Ext, RecordType } from "../../../../_shared/components.js";
6
6
  /**
7
7
  * An administrator reads the full trust record identified by the four TRQP identifiers (both the recognized and authorized facets, unlike the filtered TRQP query responses).
8
8
  *
9
- * @deprecated retired; use registry/record/query/0.2
9
+ * @deprecated retired; use registry/record/query/0.3
10
10
  */
11
11
  export interface RegistryRecordReadPayload {
12
12
  entity_id: string;
@@ -15,7 +15,7 @@ export interface RegistryRecordReadPayload {
15
15
  resource: string;
16
16
  ext?: Ext;
17
17
  }
18
- /** @deprecated retired; use registry/record/query/0.2 */
18
+ /** @deprecated retired; use registry/record/query/0.3 */
19
19
  export interface RegistryRecordReadResponsePayloadATrustRecord {
20
20
  entity_id: string;
21
21
  authority_id: string;
@@ -49,7 +49,7 @@ export declare const DEPRECATION: string | null;
49
49
  /**
50
50
  * Stable alias for this specification's request payload shape.
51
51
  *
52
- * @deprecated retired; use registry/record/query/0.2
52
+ * @deprecated retired; use registry/record/query/0.3
53
53
  */
54
54
  export type Payload = RegistryRecordReadPayload;
55
55
  /** Trust Task response type URI (request type URI + "#response"). */
@@ -57,7 +57,7 @@ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/re
57
57
  /**
58
58
  * Stable alias for this specification's success-response payload shape.
59
59
  *
60
- * @deprecated retired; use registry/record/query/0.2
60
+ * @deprecated retired; use registry/record/query/0.3
61
61
  */
62
62
  export type Response = RegistryRecordReadResponsePayloadATrustRecord;
63
63
  /**
@@ -17,7 +17,7 @@ export const EXTENDS = null;
17
17
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
18
  * Versions").
19
19
  */
20
- export const DEPRECATION = "retired; use registry/record/query/0.2";
20
+ export const DEPRECATION = "retired; use registry/record/query/0.3";
21
21
  /** Trust Task response type URI (request type URI + "#response"). */
22
22
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/record/read/0.1#response";
23
23
  /**
@@ -6,13 +6,13 @@ import type { Ext, RecordType, TrustRecord } from "../../../../_shared/component
6
6
  /**
7
7
  * An administrator asks a trust registry to update an existing trust record. The record key (entity+authority+action+resource) must already exist.
8
8
  *
9
- * @deprecated retired; use registry/record/put/0.2
9
+ * @deprecated retired; use registry/record/put/0.3
10
10
  */
11
11
  export interface RegistryRecordUpdatePayload {
12
12
  record: TrustRecord;
13
13
  ext?: Ext;
14
14
  }
15
- /** @deprecated retired; use registry/record/put/0.2 */
15
+ /** @deprecated retired; use registry/record/put/0.3 */
16
16
  export interface RegistryRecordUpdateResponsePayload {
17
17
  /**
18
18
  * Whether the record was updated.
@@ -45,7 +45,7 @@ export declare const DEPRECATION: string | null;
45
45
  /**
46
46
  * Stable alias for this specification's request payload shape.
47
47
  *
48
- * @deprecated retired; use registry/record/put/0.2
48
+ * @deprecated retired; use registry/record/put/0.3
49
49
  */
50
50
  export type Payload = RegistryRecordUpdatePayload;
51
51
  /** Trust Task response type URI (request type URI + "#response"). */
@@ -53,7 +53,7 @@ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/re
53
53
  /**
54
54
  * Stable alias for this specification's success-response payload shape.
55
55
  *
56
- * @deprecated retired; use registry/record/put/0.2
56
+ * @deprecated retired; use registry/record/put/0.3
57
57
  */
58
58
  export type Response = RegistryRecordUpdateResponsePayload;
59
59
  /**
@@ -17,7 +17,7 @@ export const EXTENDS = null;
17
17
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
18
  * Versions").
19
19
  */
20
- export const DEPRECATION = "retired; use registry/record/put/0.2";
20
+ export const DEPRECATION = "retired; use registry/record/put/0.3";
21
21
  /** Trust Task response type URI (request type URI + "#response"). */
22
22
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/record/update/0.1#response";
23
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.27.6",
3
+ "version": "0.27.7",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -10,7 +10,7 @@
10
10
  * ```ts
11
11
  * import {
12
12
  * consequentialChecks, consumeInbound, InMemoryReplayGuard,
13
- * StaticTransport, AclGrant_v0_1,
13
+ * StaticTransport, AclGrant_v0_2,
14
14
  * } from "@openvtc/trust-tasks";
15
15
  *
16
16
  * // One guard per consumer, not one per document: it *is* the record.
@@ -18,7 +18,7 @@
18
18
  *
19
19
  * const outcome = await consumeInbound({
20
20
  * transport,
21
- * spec: AclGrant_v0_1.SPEC,
21
+ * spec: AclGrant_v0_2.SPEC,
22
22
  * proofPolicy: { kind: "verify", verify: myVerifier },
23
23
  * // ajv, or whatever validator you already run — see PayloadPolicy.
24
24
  * payloadPolicy: { kind: "validate", validate: myValidator },
@@ -12761,6 +12761,35 @@ export interface TrustRecord {
12761
12761
  };
12762
12762
  record_type: RecordType;
12763
12763
  }
12764
+ export interface TrustRecord_RegistryV0_2 {
12765
+ entityId: string;
12766
+ authorityId: string;
12767
+ action: string;
12768
+ resource: string;
12769
+ /**
12770
+ * Present on recognition records: whether the action+resource is recognised.
12771
+ */
12772
+ recognized?: boolean;
12773
+ /**
12774
+ * Present on authorization records: whether the action+resource authorization is confirmed.
12775
+ */
12776
+ authorized?: boolean;
12777
+ /**
12778
+ * Opaque governance context attached to the record.
12779
+ */
12780
+ context?: {
12781
+ [k: string]: unknown | undefined;
12782
+ };
12783
+ recordType: RecordType;
12784
+ /**
12785
+ * The first instant at which the authority statement holds (inclusive). Absent: no lower bound.
12786
+ */
12787
+ validFrom?: string;
12788
+ /**
12789
+ * 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`.
12790
+ */
12791
+ validUntil?: string;
12792
+ }
12764
12793
  /**
12765
12794
  * The trustees of a sealed or tallied-encrypted election and the number of them decryption needs (VTI-VOT-062). Neither the community nor the ballot box may be one.
12766
12795
  */
package/src/index.ts CHANGED
@@ -517,16 +517,23 @@ export * as PushRegister_v0_2 from "./push/register/0.2/payload.js";
517
517
  export * as PushWake_v0_1 from "./push/wake/0.1/payload.js";
518
518
  export * as PushWake_v0_2 from "./push/wake/0.2/payload.js";
519
519
  export * as RegistryShared_v0_1 from "./registry/_shared/0.1/registry.js";
520
+ export * as RegistryShared_v0_2 from "./registry/_shared/0.2/registry.js";
520
521
  export * as RegistryAuthorization_v0_1 from "./registry/authorization/0.1/payload.js";
522
+ export * as RegistryAuthorization_v0_2 from "./registry/authorization/0.2/payload.js";
521
523
  export * as RegistryDidRotate_v0_1 from "./registry/did/rotate/0.1/payload.js";
524
+ export * as RegistryDidRotate_v0_2 from "./registry/did/rotate/0.2/payload.js";
522
525
  export * as RegistryRecognition_v0_1 from "./registry/recognition/0.1/payload.js";
526
+ export * as RegistryRecognition_v0_2 from "./registry/recognition/0.2/payload.js";
523
527
  export * as RegistryRecordCreate_v0_1 from "./registry/record/create/0.1/payload.js";
524
528
  export * as RegistryRecordDelete_v0_1 from "./registry/record/delete/0.1/payload.js";
529
+ export * as RegistryRecordDelete_v0_2 from "./registry/record/delete/0.2/payload.js";
525
530
  export * as RegistryRecordList_v0_1 from "./registry/record/list/0.1/payload.js";
526
531
  export * as RegistryRecordPut_v0_1 from "./registry/record/put/0.1/payload.js";
527
532
  export * as RegistryRecordPut_v0_2 from "./registry/record/put/0.2/payload.js";
533
+ export * as RegistryRecordPut_v0_3 from "./registry/record/put/0.3/payload.js";
528
534
  export * as RegistryRecordQuery_v0_1 from "./registry/record/query/0.1/payload.js";
529
535
  export * as RegistryRecordQuery_v0_2 from "./registry/record/query/0.2/payload.js";
536
+ export * as RegistryRecordQuery_v0_3 from "./registry/record/query/0.3/payload.js";
530
537
  export * as RegistryRecordRead_v0_1 from "./registry/record/read/0.1/payload.js";
531
538
  export * as RegistryRecordUpdate_v0_1 from "./registry/record/update/0.1/payload.js";
532
539
  export * as BlobsShared_v0_1 from "./rooms/_shared/0.1/blobs.js";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/registry/_shared/0.2/registry.schema.json
4
+ */
5
+
6
+ /**
7
+ * Canonical $defs referenced by every registry/* specification: the query context, the trust record, and the mutation acknowledgement. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen). Members are lowerCamelCase per the registry naming convention. The query tuple and responses carry the same information as the ToIP Trust Registry Query Protocol (TRQP) v2.0 JSON schemas; a registry that also serves the plain HTTP TRQP binding maps the member names to TRQP's snake_case at that binding. 0.2 renames the 0.1 snake_case members and adds the optional `validFrom`/`validUntil` validity window to `TrustRecord`.
8
+ */
9
+ export interface SharedDefinitionsForTheRegistrySpecFamily {
10
+ [k: string]: unknown | undefined;
11
+ }
12
+
13
+ /**
14
+ * The definitions this shared schema publishes, hoisted to one declaration each.
15
+ * See "../../../_shared/components.js".
16
+ */
17
+ export type { QueryContext, RecordType, TrustRecord_RegistryV0_2 as TrustRecord } from "../../../_shared/components.js";
@@ -8,6 +8,8 @@ import type { Ext, QueryContext } from "../../../_shared/components.js";
8
8
 
9
9
  /**
10
10
  * TRQP v2.0 authorization query: ask a trust registry whether an entity is authorized by an authority for a given action+resource. Field names are verbatim from the TRQP authorization request/response schemas so the same payload serves the plain HTTP TRQP binding and the Trust Task binding.
11
+ *
12
+ * @deprecated superseded by registry/authorization/0.2
11
13
  */
12
14
  export interface RegistryAuthorizationPayload {
13
15
  /**
@@ -29,6 +31,7 @@ export interface RegistryAuthorizationPayload {
29
31
  context?: QueryContext;
30
32
  ext?: Ext;
31
33
  }
34
+ /** @deprecated superseded by registry/authorization/0.2 */
32
35
  export interface RegistryAuthorizationResponsePayload {
33
36
  entity_id: string;
34
37
  authority_id: string;
@@ -74,15 +77,23 @@ export const EXTENDS: string | null = null;
74
77
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
75
78
  * Versions").
76
79
  */
77
- export const DEPRECATION: string | null = null;
80
+ export const DEPRECATION: string | null = "superseded by registry/authorization/0.2";
78
81
 
79
- /** Stable alias for this specification's request payload shape. */
82
+ /**
83
+ * Stable alias for this specification's request payload shape.
84
+ *
85
+ * @deprecated superseded by registry/authorization/0.2
86
+ */
80
87
  export type Payload = RegistryAuthorizationPayload;
81
88
 
82
89
  /** Trust Task response type URI (request type URI + "#response"). */
83
90
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/authorization/0.1#response" as const;
84
91
 
85
- /** Stable alias for this specification's success-response payload shape. */
92
+ /**
93
+ * Stable alias for this specification's success-response payload shape.
94
+ *
95
+ * @deprecated superseded by registry/authorization/0.2
96
+ */
86
97
  export type Response = RegistryAuthorizationResponsePayload;
87
98
 
88
99
  /**