@openvtc/trust-tasks 0.27.6 → 0.27.8

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 (107) hide show
  1. package/CHANGELOG.md +41 -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/_runtime/extends.d.ts +20 -1
  6. package/dist/_runtime/extends.d.ts.map +1 -1
  7. package/dist/_runtime/extends.js +39 -3
  8. package/dist/_runtime/extends.js.map +1 -1
  9. package/dist/_runtime/index.d.ts +1 -1
  10. package/dist/_runtime/index.d.ts.map +1 -1
  11. package/dist/_runtime/index.js +1 -1
  12. package/dist/_runtime/index.js.map +1 -1
  13. package/dist/_shared/components.d.ts +29 -0
  14. package/dist/_shared/components.d.ts.map +1 -1
  15. package/dist/index.d.ts +7 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +7 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/registry/_shared/0.2/registry.d.ts +16 -0
  20. package/dist/registry/_shared/0.2/registry.d.ts.map +1 -0
  21. package/dist/registry/_shared/0.2/registry.js +6 -0
  22. package/dist/registry/_shared/0.2/registry.js.map +1 -0
  23. package/dist/registry/authorization/0.1/payload.d.ts +13 -2
  24. package/dist/registry/authorization/0.1/payload.d.ts.map +1 -1
  25. package/dist/registry/authorization/0.1/payload.js +1 -1
  26. package/dist/registry/authorization/0.1/payload.js.map +1 -1
  27. package/dist/registry/authorization/0.2/payload.d.ts +494 -0
  28. package/dist/registry/authorization/0.2/payload.d.ts.map +1 -0
  29. package/dist/registry/authorization/0.2/payload.js +270 -0
  30. package/dist/registry/authorization/0.2/payload.js.map +1 -0
  31. package/dist/registry/did/rotate/0.1/payload.d.ts +13 -2
  32. package/dist/registry/did/rotate/0.1/payload.d.ts.map +1 -1
  33. package/dist/registry/did/rotate/0.1/payload.js +1 -1
  34. package/dist/registry/did/rotate/0.1/payload.js.map +1 -1
  35. package/dist/registry/did/rotate/0.2/payload.d.ts +292 -0
  36. package/dist/registry/did/rotate/0.2/payload.d.ts.map +1 -0
  37. package/dist/registry/did/rotate/0.2/payload.js +167 -0
  38. package/dist/registry/did/rotate/0.2/payload.js.map +1 -0
  39. package/dist/registry/recognition/0.1/payload.d.ts +13 -2
  40. package/dist/registry/recognition/0.1/payload.d.ts.map +1 -1
  41. package/dist/registry/recognition/0.1/payload.js +1 -1
  42. package/dist/registry/recognition/0.1/payload.js.map +1 -1
  43. package/dist/registry/recognition/0.2/payload.d.ts +494 -0
  44. package/dist/registry/recognition/0.2/payload.d.ts.map +1 -0
  45. package/dist/registry/recognition/0.2/payload.js +270 -0
  46. package/dist/registry/recognition/0.2/payload.js.map +1 -0
  47. package/dist/registry/record/create/0.1/payload.d.ts +4 -4
  48. package/dist/registry/record/create/0.1/payload.js +1 -1
  49. package/dist/registry/record/delete/0.1/payload.d.ts +13 -2
  50. package/dist/registry/record/delete/0.1/payload.d.ts.map +1 -1
  51. package/dist/registry/record/delete/0.1/payload.js +1 -1
  52. package/dist/registry/record/delete/0.1/payload.js.map +1 -1
  53. package/dist/registry/record/delete/0.2/payload.d.ts +278 -0
  54. package/dist/registry/record/delete/0.2/payload.d.ts.map +1 -0
  55. package/dist/registry/record/delete/0.2/payload.js +165 -0
  56. package/dist/registry/record/delete/0.2/payload.js.map +1 -0
  57. package/dist/registry/record/list/0.1/payload.d.ts +4 -4
  58. package/dist/registry/record/list/0.1/payload.js +1 -1
  59. package/dist/registry/record/put/0.1/payload.d.ts +4 -4
  60. package/dist/registry/record/put/0.1/payload.js +1 -1
  61. package/dist/registry/record/put/0.2/payload.d.ts +13 -2
  62. package/dist/registry/record/put/0.2/payload.d.ts.map +1 -1
  63. package/dist/registry/record/put/0.2/payload.js +1 -1
  64. package/dist/registry/record/put/0.2/payload.js.map +1 -1
  65. package/dist/registry/record/put/0.3/payload.d.ts +497 -0
  66. package/dist/registry/record/put/0.3/payload.d.ts.map +1 -0
  67. package/dist/registry/record/put/0.3/payload.js +289 -0
  68. package/dist/registry/record/put/0.3/payload.js.map +1 -0
  69. package/dist/registry/record/query/0.1/payload.d.ts +4 -4
  70. package/dist/registry/record/query/0.1/payload.js +1 -1
  71. package/dist/registry/record/query/0.2/payload.d.ts +13 -2
  72. package/dist/registry/record/query/0.2/payload.d.ts.map +1 -1
  73. package/dist/registry/record/query/0.2/payload.js +1 -1
  74. package/dist/registry/record/query/0.2/payload.js.map +1 -1
  75. package/dist/registry/record/query/0.3/payload.d.ts +540 -0
  76. package/dist/registry/record/query/0.3/payload.d.ts.map +1 -0
  77. package/dist/registry/record/query/0.3/payload.js +299 -0
  78. package/dist/registry/record/query/0.3/payload.js.map +1 -0
  79. package/dist/registry/record/read/0.1/payload.d.ts +4 -4
  80. package/dist/registry/record/read/0.1/payload.js +1 -1
  81. package/dist/registry/record/update/0.1/payload.d.ts +4 -4
  82. package/dist/registry/record/update/0.1/payload.js +1 -1
  83. package/package.json +5 -1
  84. package/src/_runtime/consume.ts +2 -2
  85. package/src/_runtime/extends.ts +41 -4
  86. package/src/_runtime/index.ts +1 -0
  87. package/src/_shared/components.ts +29 -0
  88. package/src/index.ts +7 -0
  89. package/src/registry/_shared/0.2/registry.ts +17 -0
  90. package/src/registry/authorization/0.1/payload.ts +14 -3
  91. package/src/registry/authorization/0.2/payload.ts +337 -0
  92. package/src/registry/did/rotate/0.1/payload.ts +14 -3
  93. package/src/registry/did/rotate/0.2/payload.ts +216 -0
  94. package/src/registry/recognition/0.1/payload.ts +14 -3
  95. package/src/registry/recognition/0.2/payload.ts +337 -0
  96. package/src/registry/record/create/0.1/payload.ts +5 -5
  97. package/src/registry/record/delete/0.1/payload.ts +14 -3
  98. package/src/registry/record/delete/0.2/payload.ts +206 -0
  99. package/src/registry/record/list/0.1/payload.ts +5 -5
  100. package/src/registry/record/put/0.1/payload.ts +5 -5
  101. package/src/registry/record/put/0.2/payload.ts +14 -3
  102. package/src/registry/record/put/0.3/payload.ts +335 -0
  103. package/src/registry/record/query/0.1/payload.ts +5 -5
  104. package/src/registry/record/query/0.2/payload.ts +14 -3
  105. package/src/registry/record/query/0.3/payload.ts +360 -0
  106. package/src/registry/record/read/0.1/payload.ts +5 -5
  107. package/src/registry/record/update/0.1/payload.ts +5 -5
@@ -0,0 +1,270 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/registry/authorization/0.2/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/registry/authorization/0.2";
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/authorization/0.2#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/authorization/0.2",
35
+ "title": "Registry Authorization — payload",
36
+ "description": "TRQP v2.0 authorization query: ask a trust registry whether an entity is authorized 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.",
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "entityId",
41
+ "authorityId",
42
+ "action",
43
+ "resource"
44
+ ],
45
+ "properties": {
46
+ "entityId": {
47
+ "type": "string",
48
+ "description": "Identifier of the entity being tested for authorization."
49
+ },
50
+ "authorityId": {
51
+ "type": "string",
52
+ "description": "Identifier of the authority being queried."
53
+ },
54
+ "action": {
55
+ "type": "string",
56
+ "description": "The action the query is checking authorization for."
57
+ },
58
+ "resource": {
59
+ "type": "string",
60
+ "description": "The resource the query is checking authorization for."
61
+ },
62
+ "context": {
63
+ "$ref": "#/$defs/QueryContext"
64
+ },
65
+ "ext": {
66
+ "$ref": "#/$defs/Ext"
67
+ }
68
+ },
69
+ "$defs": {
70
+ "Response": {
71
+ "$anchor": "response",
72
+ "title": "Registry Authorization — response payload",
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": [
76
+ "entityId",
77
+ "authorityId",
78
+ "action",
79
+ "resource",
80
+ "authorized",
81
+ "evaluatedAt"
82
+ ],
83
+ "properties": {
84
+ "entityId": {
85
+ "type": "string"
86
+ },
87
+ "authorityId": {
88
+ "type": "string"
89
+ },
90
+ "action": {
91
+ "type": "string"
92
+ },
93
+ "resource": {
94
+ "type": "string"
95
+ },
96
+ "authorized": {
97
+ "type": "boolean",
98
+ "description": "True if the action+resource authorization has been confirmed, false otherwise."
99
+ },
100
+ "evaluatedAt": {
101
+ "type": "string",
102
+ "format": "date-time",
103
+ "description": "Server time the query was evaluated at, per the endpoint clock."
104
+ },
105
+ "asOf": {
106
+ "type": "string",
107
+ "format": "date-time",
108
+ "description": "The requested server time, echoed from the request `context.time` when supplied."
109
+ },
110
+ "message": {
111
+ "type": "string",
112
+ "maxLength": 1024,
113
+ "description": "Additional human-readable detail about the authorization response."
114
+ },
115
+ "context": {
116
+ "$ref": "#/$defs/QueryContext"
117
+ },
118
+ "ext": {
119
+ "$ref": "#/$defs/Ext"
120
+ }
121
+ }
122
+ },
123
+ "Ext": {
124
+ "title": "Ext",
125
+ "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.",
126
+ "type": "object",
127
+ "minProperties": 1,
128
+ "additionalProperties": true,
129
+ "propertyNames": {
130
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
131
+ }
132
+ },
133
+ "QueryContext": {
134
+ "title": "QueryContext",
135
+ "type": "object",
136
+ "description": "Optional TRQP query context. `time` requests evaluation as of a given instant; `locator` is an authority-defined hint for locating records.",
137
+ "properties": {
138
+ "time": {
139
+ "type": "string",
140
+ "format": "date-time",
141
+ "description": "Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time."
142
+ },
143
+ "locator": {
144
+ "type": "string",
145
+ "description": "Optional hint for systems that need extra information to locate the records in question (authorization queries)."
146
+ }
147
+ },
148
+ "additionalProperties": {
149
+ "type": "string"
150
+ }
151
+ }
152
+ }
153
+ };
154
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
155
+ export const RESPONSE_PAYLOAD_SCHEMA = {
156
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
157
+ "$ref": "#/$defs/Response",
158
+ "$defs": {
159
+ "Response": {
160
+ "$anchor": "response",
161
+ "title": "Registry Authorization — response payload",
162
+ "type": "object",
163
+ "additionalProperties": false,
164
+ "required": [
165
+ "entityId",
166
+ "authorityId",
167
+ "action",
168
+ "resource",
169
+ "authorized",
170
+ "evaluatedAt"
171
+ ],
172
+ "properties": {
173
+ "entityId": {
174
+ "type": "string"
175
+ },
176
+ "authorityId": {
177
+ "type": "string"
178
+ },
179
+ "action": {
180
+ "type": "string"
181
+ },
182
+ "resource": {
183
+ "type": "string"
184
+ },
185
+ "authorized": {
186
+ "type": "boolean",
187
+ "description": "True if the action+resource authorization has been confirmed, false otherwise."
188
+ },
189
+ "evaluatedAt": {
190
+ "type": "string",
191
+ "format": "date-time",
192
+ "description": "Server time the query was evaluated at, per the endpoint clock."
193
+ },
194
+ "asOf": {
195
+ "type": "string",
196
+ "format": "date-time",
197
+ "description": "The requested server time, echoed from the request `context.time` when supplied."
198
+ },
199
+ "message": {
200
+ "type": "string",
201
+ "maxLength": 1024,
202
+ "description": "Additional human-readable detail about the authorization response."
203
+ },
204
+ "context": {
205
+ "$ref": "#/$defs/QueryContext"
206
+ },
207
+ "ext": {
208
+ "$ref": "#/$defs/Ext"
209
+ }
210
+ }
211
+ },
212
+ "Ext": {
213
+ "title": "Ext",
214
+ "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.",
215
+ "type": "object",
216
+ "minProperties": 1,
217
+ "additionalProperties": true,
218
+ "propertyNames": {
219
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
220
+ }
221
+ },
222
+ "QueryContext": {
223
+ "title": "QueryContext",
224
+ "type": "object",
225
+ "description": "Optional TRQP query context. `time` requests evaluation as of a given instant; `locator` is an authority-defined hint for locating records.",
226
+ "properties": {
227
+ "time": {
228
+ "type": "string",
229
+ "format": "date-time",
230
+ "description": "Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time."
231
+ },
232
+ "locator": {
233
+ "type": "string",
234
+ "description": "Optional hint for systems that need extra information to locate the records in question (authorization queries)."
235
+ }
236
+ },
237
+ "additionalProperties": {
238
+ "type": "string"
239
+ }
240
+ }
241
+ }
242
+ };
243
+ /**
244
+ * SPEC.md §7.2 policy for the request variant, from this specification's
245
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
246
+ * per-specification and cannot be derived from the document alone, and
247
+ * item 2 needs the schema this carries.
248
+ */
249
+ export const SPEC = {
250
+ typeUri: TYPE_URI,
251
+ isBearer: false,
252
+ isProofRequired: false,
253
+ isRecipientRequired: true,
254
+ isIssuedAtRequired: false,
255
+ payloadSchema: PAYLOAD_SCHEMA,
256
+ };
257
+ /**
258
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
259
+ * tracks the *issuer* party's requirement because a response swaps the
260
+ * parties (§7.3 item 5).
261
+ */
262
+ export const RESPONSE_SPEC = {
263
+ typeUri: RESPONSE_TYPE_URI,
264
+ isBearer: false,
265
+ isProofRequired: false,
266
+ isRecipientRequired: true,
267
+ isIssuedAtRequired: false,
268
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
269
+ };
270
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/registry/authorization/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAE1F;;;;;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,iEAA0E,CAAC;AAK5G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,wDAAwD;IAC/D,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,meAAme;IAClf,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,UAAU;QACV,aAAa;QACb,QAAQ;QACR,UAAU;KACX;IACD,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,0DAA0D;SAC1E;QACD,aAAa,EAAE;YACb,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,4CAA4C;SAC5D;QACD,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iB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -5,6 +5,8 @@
5
5
  import type { Ext } from "../../../../_shared/components.js";
6
6
  /**
7
7
  * An administrator asks a trust registry to rotate the keys of the registry's own agent-managed did:webvh in place, preserving the DID while refreshing its key material. Field names are snake_case, frozen from the pre-existing deployed wire form this specification documents (matching the registry/* family convention).
8
+ *
9
+ * @deprecated superseded by registry/did/rotate/0.2
8
10
  */
9
11
  export interface RegistryDIDRotatePayload {
10
12
  /**
@@ -17,6 +19,7 @@ export interface RegistryDIDRotatePayload {
17
19
  label?: string;
18
20
  ext?: Ext;
19
21
  }
22
+ /** @deprecated superseded by registry/did/rotate/0.2 */
20
23
  export interface RegistryDIDRotateResponsePayload {
21
24
  /**
22
25
  * The DID whose keys were rotated.
@@ -50,11 +53,19 @@ export declare const EXTENDS: string | null;
50
53
  * Versions").
51
54
  */
52
55
  export declare const DEPRECATION: string | null;
53
- /** Stable alias for this specification's request payload shape. */
56
+ /**
57
+ * Stable alias for this specification's request payload shape.
58
+ *
59
+ * @deprecated superseded by registry/did/rotate/0.2
60
+ */
54
61
  export type Payload = RegistryDIDRotatePayload;
55
62
  /** Trust Task response type URI (request type URI + "#response"). */
56
63
  export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/did/rotate/0.1#response";
57
- /** Stable alias for this specification's success-response payload shape. */
64
+ /**
65
+ * Stable alias for this specification's success-response payload shape.
66
+ *
67
+ * @deprecated superseded by registry/did/rotate/0.2
68
+ */
58
69
  export type Response = RegistryDIDRotateResponsePayload;
59
70
  /**
60
71
  * This specification's payload schema, as a value.
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/registry/did/rotate/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,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AAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -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 = null;
20
+ export const DEPRECATION = "superseded by registry/did/rotate/0.2";
21
21
  /** Trust Task response type URI (request type URI + "#response"). */
22
22
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/did/rotate/0.1#response";
23
23
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/registry/did/rotate/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,qDAA8D,CAAC;AAEvF;;;;;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,8DAAuE,CAAC;AAKzG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,qDAAqD;IAC5D,OAAO,EAAE,+BAA+B;IACxC,aAAa,EAAE,+TAA+T;IAC9U,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,oBAAoB,EAAE;YACpB,MAAM,EAAE,S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gBAAgB;aACjB;YACD,YAAY,EAAE;gBACZ,KAAK,EAAE;oBACL,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,kCAAkC;iBAClD;gBACD,UAAU,EAAE;oBACV,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,gCAAgC;iBAChD;gBACD,gBAAgB,EAAE;oBAChB,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,mDAAmD;iBACnE;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/registry/did/rotate/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,qDAA8D,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;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C1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -0,0 +1,292 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/registry/did/rotate/0.2/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * An administrator asks a trust registry to rotate the keys of the registry's own agent-managed did:webvh in place, preserving the DID while refreshing its key material. Members are lowerCamelCase, as throughout the registry/* family.
8
+ */
9
+ export interface RegistryDIDRotatePayload {
10
+ /**
11
+ * Override the number of pre-rotation key commitments published for the new key set. Absent: the managing agent's default.
12
+ */
13
+ preRotationCount?: number;
14
+ /**
15
+ * Operator-facing audit label for the rotation.
16
+ */
17
+ label?: string;
18
+ ext?: Ext;
19
+ }
20
+ export interface RegistryDIDRotateResponsePayload {
21
+ /**
22
+ * The DID whose keys were rotated.
23
+ */
24
+ did: string;
25
+ /**
26
+ * The DID's SCID after rotation.
27
+ */
28
+ newScid: string;
29
+ /**
30
+ * The did:webvh log's new versionId after rotation.
31
+ */
32
+ newVersionId: string;
33
+ ext?: Ext;
34
+ }
35
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
36
+ export type { Ext };
37
+ /** Trust Task type URI. */
38
+ export declare const TYPE_URI: "https://trusttasks.org/spec/registry/did/rotate/0.2";
39
+ /**
40
+ * The earlier version of this specification that this one declares it
41
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
42
+ * `null`. Only the direct declaration — follow the chain with
43
+ * `extendsChain` / `readForSpec`.
44
+ */
45
+ export declare const EXTENDS: string | null;
46
+ /**
47
+ * Why this version is deprecated, or `null` while it is current. A
48
+ * superseded or retired version is still supported, and is withdrawn from
49
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
50
+ * Versions").
51
+ */
52
+ export declare const DEPRECATION: string | null;
53
+ /** Stable alias for this specification's request payload shape. */
54
+ export type Payload = RegistryDIDRotatePayload;
55
+ /** Trust Task response type URI (request type URI + "#response"). */
56
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/did/rotate/0.2#response";
57
+ /** Stable alias for this specification's success-response payload shape. */
58
+ export type Response = RegistryDIDRotateResponsePayload;
59
+ /**
60
+ * This specification's payload schema, as a value.
61
+ *
62
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
63
+ * rather than only as a `.json` file because TypeScript types are erased
64
+ * at runtime: without a schema a consumer has nothing to validate, and
65
+ * every REQUIRED payload member is optional in practice. Cross-file
66
+ * `$ref`s are already inlined, so it needs no resolver.
67
+ */
68
+ export declare const PAYLOAD_SCHEMA: {
69
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
70
+ readonly $id: "https://trusttasks.org/spec/registry/did/rotate/0.2";
71
+ readonly title: "Registry DID Rotate — payload";
72
+ readonly description: "An administrator asks a trust registry to rotate the keys of the registry's own agent-managed did:webvh in place, preserving the DID while refreshing its key material. Members are lowerCamelCase, as throughout the registry/* family.";
73
+ readonly type: "object";
74
+ readonly additionalProperties: false;
75
+ readonly properties: {
76
+ readonly preRotationCount: {
77
+ readonly type: "integer";
78
+ readonly minimum: 0;
79
+ readonly description: "Override the number of pre-rotation key commitments published for the new key set. Absent: the managing agent's default.";
80
+ };
81
+ readonly label: {
82
+ readonly type: "string";
83
+ readonly maxLength: 256;
84
+ readonly description: "Operator-facing audit label for the rotation.";
85
+ };
86
+ readonly ext: {
87
+ readonly $ref: "#/$defs/Ext";
88
+ };
89
+ };
90
+ readonly $defs: {
91
+ readonly Response: {
92
+ readonly $anchor: "response";
93
+ readonly title: "Registry DID Rotate — response payload";
94
+ readonly type: "object";
95
+ readonly additionalProperties: false;
96
+ readonly required: readonly ["did", "newScid", "newVersionId"];
97
+ readonly properties: {
98
+ readonly did: {
99
+ readonly type: "string";
100
+ readonly description: "The DID whose keys were rotated.";
101
+ };
102
+ readonly newScid: {
103
+ readonly type: "string";
104
+ readonly description: "The DID's SCID after rotation.";
105
+ };
106
+ readonly newVersionId: {
107
+ readonly type: "string";
108
+ readonly description: "The did:webvh log's new versionId after rotation.";
109
+ };
110
+ readonly ext: {
111
+ readonly $ref: "#/$defs/Ext";
112
+ };
113
+ };
114
+ };
115
+ readonly Ext: {
116
+ readonly title: "Ext";
117
+ 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.";
118
+ readonly type: "object";
119
+ readonly minProperties: 1;
120
+ readonly additionalProperties: true;
121
+ readonly propertyNames: {
122
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
123
+ };
124
+ };
125
+ };
126
+ };
127
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
128
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
129
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
130
+ readonly $ref: "#/$defs/Response";
131
+ readonly $defs: {
132
+ readonly Response: {
133
+ readonly $anchor: "response";
134
+ readonly title: "Registry DID Rotate — response payload";
135
+ readonly type: "object";
136
+ readonly additionalProperties: false;
137
+ readonly required: readonly ["did", "newScid", "newVersionId"];
138
+ readonly properties: {
139
+ readonly did: {
140
+ readonly type: "string";
141
+ readonly description: "The DID whose keys were rotated.";
142
+ };
143
+ readonly newScid: {
144
+ readonly type: "string";
145
+ readonly description: "The DID's SCID after rotation.";
146
+ };
147
+ readonly newVersionId: {
148
+ readonly type: "string";
149
+ readonly description: "The did:webvh log's new versionId after rotation.";
150
+ };
151
+ readonly ext: {
152
+ readonly $ref: "#/$defs/Ext";
153
+ };
154
+ };
155
+ };
156
+ readonly Ext: {
157
+ readonly title: "Ext";
158
+ 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.";
159
+ readonly type: "object";
160
+ readonly minProperties: 1;
161
+ readonly additionalProperties: true;
162
+ readonly propertyNames: {
163
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
164
+ };
165
+ };
166
+ };
167
+ };
168
+ /**
169
+ * SPEC.md §7.2 policy for the request variant, from this specification's
170
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
171
+ * per-specification and cannot be derived from the document alone, and
172
+ * item 2 needs the schema this carries.
173
+ */
174
+ export declare const SPEC: {
175
+ readonly typeUri: "https://trusttasks.org/spec/registry/did/rotate/0.2";
176
+ readonly isBearer: false;
177
+ readonly isProofRequired: true;
178
+ readonly isRecipientRequired: true;
179
+ readonly isIssuedAtRequired: true;
180
+ readonly payloadSchema: {
181
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
182
+ readonly $id: "https://trusttasks.org/spec/registry/did/rotate/0.2";
183
+ readonly title: "Registry DID Rotate — payload";
184
+ readonly description: "An administrator asks a trust registry to rotate the keys of the registry's own agent-managed did:webvh in place, preserving the DID while refreshing its key material. Members are lowerCamelCase, as throughout the registry/* family.";
185
+ readonly type: "object";
186
+ readonly additionalProperties: false;
187
+ readonly properties: {
188
+ readonly preRotationCount: {
189
+ readonly type: "integer";
190
+ readonly minimum: 0;
191
+ readonly description: "Override the number of pre-rotation key commitments published for the new key set. Absent: the managing agent's default.";
192
+ };
193
+ readonly label: {
194
+ readonly type: "string";
195
+ readonly maxLength: 256;
196
+ readonly description: "Operator-facing audit label for the rotation.";
197
+ };
198
+ readonly ext: {
199
+ readonly $ref: "#/$defs/Ext";
200
+ };
201
+ };
202
+ readonly $defs: {
203
+ readonly Response: {
204
+ readonly $anchor: "response";
205
+ readonly title: "Registry DID Rotate — response payload";
206
+ readonly type: "object";
207
+ readonly additionalProperties: false;
208
+ readonly required: readonly ["did", "newScid", "newVersionId"];
209
+ readonly properties: {
210
+ readonly did: {
211
+ readonly type: "string";
212
+ readonly description: "The DID whose keys were rotated.";
213
+ };
214
+ readonly newScid: {
215
+ readonly type: "string";
216
+ readonly description: "The DID's SCID after rotation.";
217
+ };
218
+ readonly newVersionId: {
219
+ readonly type: "string";
220
+ readonly description: "The did:webvh log's new versionId after rotation.";
221
+ };
222
+ readonly ext: {
223
+ readonly $ref: "#/$defs/Ext";
224
+ };
225
+ };
226
+ };
227
+ readonly Ext: {
228
+ readonly title: "Ext";
229
+ 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.";
230
+ readonly type: "object";
231
+ readonly minProperties: 1;
232
+ readonly additionalProperties: true;
233
+ readonly propertyNames: {
234
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
235
+ };
236
+ };
237
+ };
238
+ };
239
+ };
240
+ /**
241
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
242
+ * tracks the *issuer* party's requirement because a response swaps the
243
+ * parties (§7.3 item 5).
244
+ */
245
+ export declare const RESPONSE_SPEC: {
246
+ readonly typeUri: "https://trusttasks.org/spec/registry/did/rotate/0.2#response";
247
+ readonly isBearer: false;
248
+ readonly isProofRequired: true;
249
+ readonly isRecipientRequired: true;
250
+ readonly isIssuedAtRequired: true;
251
+ readonly payloadSchema: {
252
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
253
+ readonly $ref: "#/$defs/Response";
254
+ readonly $defs: {
255
+ readonly Response: {
256
+ readonly $anchor: "response";
257
+ readonly title: "Registry DID Rotate — response payload";
258
+ readonly type: "object";
259
+ readonly additionalProperties: false;
260
+ readonly required: readonly ["did", "newScid", "newVersionId"];
261
+ readonly properties: {
262
+ readonly did: {
263
+ readonly type: "string";
264
+ readonly description: "The DID whose keys were rotated.";
265
+ };
266
+ readonly newScid: {
267
+ readonly type: "string";
268
+ readonly description: "The DID's SCID after rotation.";
269
+ };
270
+ readonly newVersionId: {
271
+ readonly type: "string";
272
+ readonly description: "The did:webvh log's new versionId after rotation.";
273
+ };
274
+ readonly ext: {
275
+ readonly $ref: "#/$defs/Ext";
276
+ };
277
+ };
278
+ };
279
+ readonly Ext: {
280
+ readonly title: "Ext";
281
+ 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.";
282
+ readonly type: "object";
283
+ readonly minProperties: 1;
284
+ readonly additionalProperties: true;
285
+ readonly propertyNames: {
286
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
287
+ };
288
+ };
289
+ };
290
+ };
291
+ };
292
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/registry/did/rotate/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,qDAA8D,CAAC;AAEvF;;;;;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,wB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