@openvtc/trust-tasks 0.9.0 → 0.10.0

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 (126) hide show
  1. package/dist/index.d.ts +24 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +24 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/vta/_shared/0.1/context.d.ts +11 -0
  6. package/dist/vta/_shared/0.1/context.d.ts.map +1 -0
  7. package/dist/vta/_shared/0.1/context.js +6 -0
  8. package/dist/vta/_shared/0.1/context.js.map +1 -0
  9. package/dist/vta/_shared/0.1/webvh-records.d.ts +11 -0
  10. package/dist/vta/_shared/0.1/webvh-records.d.ts.map +1 -0
  11. package/dist/vta/_shared/0.1/webvh-records.js +6 -0
  12. package/dist/vta/_shared/0.1/webvh-records.js.map +1 -0
  13. package/dist/vta/contexts/create/1.0/payload.d.ts +443 -0
  14. package/dist/vta/contexts/create/1.0/payload.d.ts.map +1 -0
  15. package/dist/vta/contexts/create/1.0/payload.js +226 -0
  16. package/dist/vta/contexts/create/1.0/payload.js.map +1 -0
  17. package/dist/vta/contexts/delete/1.0/payload.d.ts +256 -0
  18. package/dist/vta/contexts/delete/1.0/payload.d.ts.map +1 -0
  19. package/dist/vta/contexts/delete/1.0/payload.js +143 -0
  20. package/dist/vta/contexts/delete/1.0/payload.js.map +1 -0
  21. package/dist/vta/contexts/get/1.0/payload.d.ts +405 -0
  22. package/dist/vta/contexts/get/1.0/payload.d.ts.map +1 -0
  23. package/dist/vta/contexts/get/1.0/payload.js +212 -0
  24. package/dist/vta/contexts/get/1.0/payload.js.map +1 -0
  25. package/dist/vta/contexts/list/1.0/payload.d.ts +460 -0
  26. package/dist/vta/contexts/list/1.0/payload.d.ts.map +1 -0
  27. package/dist/vta/contexts/list/1.0/payload.js +237 -0
  28. package/dist/vta/contexts/list/1.0/payload.js.map +1 -0
  29. package/dist/vta/contexts/preview-delete/1.0/payload.d.ts +394 -0
  30. package/dist/vta/contexts/preview-delete/1.0/payload.d.ts.map +1 -0
  31. package/dist/vta/contexts/preview-delete/1.0/payload.js +209 -0
  32. package/dist/vta/contexts/preview-delete/1.0/payload.js.map +1 -0
  33. package/dist/vta/contexts/update/1.0/payload.d.ts +653 -0
  34. package/dist/vta/contexts/update/1.0/payload.d.ts.map +1 -0
  35. package/dist/vta/contexts/update/1.0/payload.js +314 -0
  36. package/dist/vta/contexts/update/1.0/payload.js.map +1 -0
  37. package/dist/vta/contexts/update-did/1.0/payload.d.ts +419 -0
  38. package/dist/vta/contexts/update-did/1.0/payload.d.ts.map +1 -0
  39. package/dist/vta/contexts/update-did/1.0/payload.js +218 -0
  40. package/dist/vta/contexts/update-did/1.0/payload.js.map +1 -0
  41. package/dist/vta/webvh/agent-name/check/1.0/payload.d.ts +301 -0
  42. package/dist/vta/webvh/agent-name/check/1.0/payload.d.ts.map +1 -0
  43. package/dist/vta/webvh/agent-name/check/1.0/payload.js +165 -0
  44. package/dist/vta/webvh/agent-name/check/1.0/payload.js.map +1 -0
  45. package/dist/vta/webvh/agent-name/disable/1.0/payload.d.ts +274 -0
  46. package/dist/vta/webvh/agent-name/disable/1.0/payload.d.ts.map +1 -0
  47. package/dist/vta/webvh/agent-name/disable/1.0/payload.js +153 -0
  48. package/dist/vta/webvh/agent-name/disable/1.0/payload.js.map +1 -0
  49. package/dist/vta/webvh/agent-name/enable/1.0/payload.d.ts +274 -0
  50. package/dist/vta/webvh/agent-name/enable/1.0/payload.d.ts.map +1 -0
  51. package/dist/vta/webvh/agent-name/enable/1.0/payload.js +153 -0
  52. package/dist/vta/webvh/agent-name/enable/1.0/payload.js.map +1 -0
  53. package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts +377 -0
  54. package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts.map +1 -0
  55. package/dist/vta/webvh/agent-name/list/1.0/payload.js +201 -0
  56. package/dist/vta/webvh/agent-name/list/1.0/payload.js.map +1 -0
  57. package/dist/vta/webvh/agent-name/remove/1.0/payload.d.ts +274 -0
  58. package/dist/vta/webvh/agent-name/remove/1.0/payload.d.ts.map +1 -0
  59. package/dist/vta/webvh/agent-name/remove/1.0/payload.js +153 -0
  60. package/dist/vta/webvh/agent-name/remove/1.0/payload.js.map +1 -0
  61. package/dist/vta/webvh/agent-name/set/1.0/payload.d.ts +274 -0
  62. package/dist/vta/webvh/agent-name/set/1.0/payload.d.ts.map +1 -0
  63. package/dist/vta/webvh/agent-name/set/1.0/payload.js +153 -0
  64. package/dist/vta/webvh/agent-name/set/1.0/payload.js.map +1 -0
  65. package/dist/vta/webvh/dids/create/1.0/payload.d.ts +806 -0
  66. package/dist/vta/webvh/dids/create/1.0/payload.d.ts.map +1 -0
  67. package/dist/vta/webvh/dids/create/1.0/payload.js +400 -0
  68. package/dist/vta/webvh/dids/create/1.0/payload.js.map +1 -0
  69. package/dist/vta/webvh/dids/delete/1.0/payload.d.ts +257 -0
  70. package/dist/vta/webvh/dids/delete/1.0/payload.d.ts.map +1 -0
  71. package/dist/vta/webvh/dids/delete/1.0/payload.js +145 -0
  72. package/dist/vta/webvh/dids/delete/1.0/payload.js.map +1 -0
  73. package/dist/vta/webvh/dids/get/1.0/payload.d.ts +539 -0
  74. package/dist/vta/webvh/dids/get/1.0/payload.d.ts.map +1 -0
  75. package/dist/vta/webvh/dids/get/1.0/payload.js +282 -0
  76. package/dist/vta/webvh/dids/get/1.0/payload.js.map +1 -0
  77. package/dist/vta/webvh/dids/list/1.0/payload.d.ts +537 -0
  78. package/dist/vta/webvh/dids/list/1.0/payload.d.ts.map +1 -0
  79. package/dist/vta/webvh/dids/list/1.0/payload.js +278 -0
  80. package/dist/vta/webvh/dids/list/1.0/payload.js.map +1 -0
  81. package/dist/vta/webvh/dids/register-with-server/1.0/payload.d.ts +299 -0
  82. package/dist/vta/webvh/dids/register-with-server/1.0/payload.d.ts.map +1 -0
  83. package/dist/vta/webvh/dids/register-with-server/1.0/payload.js +163 -0
  84. package/dist/vta/webvh/dids/register-with-server/1.0/payload.js.map +1 -0
  85. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts +357 -0
  86. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts.map +1 -0
  87. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js +196 -0
  88. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js.map +1 -0
  89. package/dist/vta/webvh/servers/list/1.0/payload.d.ts +366 -0
  90. package/dist/vta/webvh/servers/list/1.0/payload.d.ts.map +1 -0
  91. package/dist/vta/webvh/servers/list/1.0/payload.js +200 -0
  92. package/dist/vta/webvh/servers/list/1.0/payload.js.map +1 -0
  93. package/dist/vta/webvh/servers/register/1.0/payload.d.ts +335 -0
  94. package/dist/vta/webvh/servers/register/1.0/payload.d.ts.map +1 -0
  95. package/dist/vta/webvh/servers/register/1.0/payload.js +183 -0
  96. package/dist/vta/webvh/servers/register/1.0/payload.js.map +1 -0
  97. package/dist/vta/webvh/servers/remove/1.0/payload.d.ts +237 -0
  98. package/dist/vta/webvh/servers/remove/1.0/payload.d.ts.map +1 -0
  99. package/dist/vta/webvh/servers/remove/1.0/payload.js +137 -0
  100. package/dist/vta/webvh/servers/remove/1.0/payload.js.map +1 -0
  101. package/package.json +2 -1
  102. package/src/index.ts +24 -0
  103. package/src/vta/_shared/0.1/context.ts +11 -0
  104. package/src/vta/_shared/0.1/webvh-records.ts +11 -0
  105. package/src/vta/contexts/create/1.0/payload.ts +301 -0
  106. package/src/vta/contexts/delete/1.0/payload.ts +183 -0
  107. package/src/vta/contexts/get/1.0/payload.ts +275 -0
  108. package/src/vta/contexts/list/1.0/payload.ts +309 -0
  109. package/src/vta/contexts/preview-delete/1.0/payload.ts +267 -0
  110. package/src/vta/contexts/update/1.0/payload.ts +421 -0
  111. package/src/vta/contexts/update-did/1.0/payload.ts +285 -0
  112. package/src/vta/webvh/agent-name/check/1.0/payload.ts +216 -0
  113. package/src/vta/webvh/agent-name/disable/1.0/payload.ts +197 -0
  114. package/src/vta/webvh/agent-name/enable/1.0/payload.ts +197 -0
  115. package/src/vta/webvh/agent-name/list/1.0/payload.ts +258 -0
  116. package/src/vta/webvh/agent-name/remove/1.0/payload.ts +197 -0
  117. package/src/vta/webvh/agent-name/set/1.0/payload.ts +197 -0
  118. package/src/vta/webvh/dids/create/1.0/payload.ts +548 -0
  119. package/src/vta/webvh/dids/delete/1.0/payload.ts +182 -0
  120. package/src/vta/webvh/dids/get/1.0/payload.ts +363 -0
  121. package/src/vta/webvh/dids/list/1.0/payload.ts +361 -0
  122. package/src/vta/webvh/dids/register-with-server/1.0/payload.ts +212 -0
  123. package/src/vta/webvh/dids/rotate-keys/1.0/payload.ts +251 -0
  124. package/src/vta/webvh/servers/list/1.0/payload.ts +248 -0
  125. package/src/vta/webvh/servers/register/1.0/payload.ts +230 -0
  126. package/src/vta/webvh/servers/remove/1.0/payload.ts +170 -0
@@ -0,0 +1,443 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/contexts/create/1.0/payload.schema.json
4
+ */
5
+ export interface VTAContextsCreatePayload {
6
+ /**
7
+ * Id for the new context. When `parent` is present this is the leaf segment and the full id becomes `<parent>/<id>`; otherwise it is a top-level id. Must be unique within its parent — a collision is refused, never merged.
8
+ */
9
+ id: string;
10
+ /**
11
+ * Human-readable name. Operator-facing only; carries no authorization meaning.
12
+ */
13
+ name: string;
14
+ /**
15
+ * Free-form description.
16
+ */
17
+ description?: string;
18
+ /**
19
+ * Id of the context to nest under. Absent creates a top-level context. Nesting is not cosmetic: authority granted at the parent reaches this context.
20
+ */
21
+ parent?: string;
22
+ ext?: Ext;
23
+ }
24
+ /**
25
+ * 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.
26
+ */
27
+ export interface Ext {
28
+ [k: string]: unknown | undefined;
29
+ }
30
+ /**
31
+ * A context as the VTA holds it.
32
+ */
33
+ export interface ContextRecord {
34
+ /**
35
+ * Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.
36
+ */
37
+ id: string;
38
+ /**
39
+ * Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.
40
+ */
41
+ name: string;
42
+ /**
43
+ * DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.
44
+ */
45
+ did?: string;
46
+ /**
47
+ * Free-form description.
48
+ */
49
+ description?: string;
50
+ /**
51
+ * Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.
52
+ */
53
+ parent?: string;
54
+ /**
55
+ * Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.
56
+ */
57
+ basePath: string;
58
+ /**
59
+ * RFC 3339.
60
+ */
61
+ createdAt: string;
62
+ /**
63
+ * RFC 3339.
64
+ */
65
+ updatedAt: string;
66
+ ext?: Ext;
67
+ }
68
+ /** Trust Task type URI. */
69
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/contexts/create/1.0";
70
+ /** Stable alias for this specification's request payload shape. */
71
+ export type Payload = VTAContextsCreatePayload;
72
+ /** Trust Task response type URI (request type URI + "#response"). */
73
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/contexts/create/1.0#response";
74
+ /** Stable alias for this specification's success-response payload shape. */
75
+ export type Response = ContextRecord;
76
+ /**
77
+ * This specification's payload schema, as a value.
78
+ *
79
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
80
+ * rather than only as a `.json` file because TypeScript types are erased
81
+ * at runtime: without a schema a consumer has nothing to validate, and
82
+ * every REQUIRED payload member is optional in practice. Cross-file
83
+ * `$ref`s are already inlined, so it needs no resolver.
84
+ */
85
+ export declare const PAYLOAD_SCHEMA: {
86
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
87
+ readonly $id: "https://trusttasks.org/spec/vta/contexts/create/1.0";
88
+ readonly title: "VTA Contexts Create — payload";
89
+ readonly type: "object";
90
+ readonly additionalProperties: false;
91
+ readonly required: readonly ["id", "name"];
92
+ readonly properties: {
93
+ readonly id: {
94
+ readonly type: "string";
95
+ readonly minLength: 1;
96
+ readonly description: "Id for the new context. When `parent` is present this is the leaf segment and the full id becomes `<parent>/<id>`; otherwise it is a top-level id. Must be unique within its parent — a collision is refused, never merged.";
97
+ };
98
+ readonly name: {
99
+ readonly type: "string";
100
+ readonly minLength: 1;
101
+ readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning.";
102
+ };
103
+ readonly description: {
104
+ readonly type: "string";
105
+ readonly description: "Free-form description.";
106
+ };
107
+ readonly parent: {
108
+ readonly type: "string";
109
+ readonly description: "Id of the context to nest under. Absent creates a top-level context. Nesting is not cosmetic: authority granted at the parent reaches this context.";
110
+ };
111
+ readonly ext: {
112
+ readonly $ref: "#/$defs/Ext";
113
+ };
114
+ };
115
+ readonly $defs: {
116
+ readonly Response: {
117
+ readonly $anchor: "response";
118
+ readonly title: "VTA Contexts Create — response payload";
119
+ readonly description: "Success response to vta/contexts/create: the realized context record, at the top level. Type https://trusttasks.org/spec/vta/contexts/create/1.0#response.";
120
+ readonly $ref: "#/$defs/ContextRecord";
121
+ };
122
+ readonly ContextRecord: {
123
+ readonly title: "ContextRecord";
124
+ readonly description: "A context as the VTA holds it.";
125
+ readonly type: "object";
126
+ readonly additionalProperties: false;
127
+ readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
128
+ readonly properties: {
129
+ readonly id: {
130
+ readonly type: "string";
131
+ readonly minLength: 1;
132
+ readonly description: "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.";
133
+ };
134
+ readonly name: {
135
+ readonly type: "string";
136
+ readonly minLength: 1;
137
+ readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
138
+ };
139
+ readonly did: {
140
+ readonly type: "string";
141
+ readonly description: "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.";
142
+ };
143
+ readonly description: {
144
+ readonly type: "string";
145
+ readonly description: "Free-form description.";
146
+ };
147
+ readonly parent: {
148
+ readonly type: "string";
149
+ readonly description: "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.";
150
+ };
151
+ readonly basePath: {
152
+ readonly type: "string";
153
+ readonly description: "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.";
154
+ };
155
+ readonly createdAt: {
156
+ readonly type: "string";
157
+ readonly format: "date-time";
158
+ readonly description: "RFC 3339.";
159
+ };
160
+ readonly updatedAt: {
161
+ readonly type: "string";
162
+ readonly format: "date-time";
163
+ readonly description: "RFC 3339.";
164
+ };
165
+ readonly ext: {
166
+ readonly $ref: "#/$defs/Ext";
167
+ };
168
+ };
169
+ };
170
+ readonly Ext: {
171
+ readonly title: "Ext";
172
+ 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.";
173
+ readonly type: "object";
174
+ readonly minProperties: 1;
175
+ readonly additionalProperties: true;
176
+ readonly propertyNames: {
177
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
178
+ };
179
+ };
180
+ };
181
+ };
182
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
183
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
184
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
185
+ readonly $ref: "#/$defs/Response";
186
+ readonly $defs: {
187
+ readonly Response: {
188
+ readonly $anchor: "response";
189
+ readonly title: "VTA Contexts Create — response payload";
190
+ readonly description: "Success response to vta/contexts/create: the realized context record, at the top level. Type https://trusttasks.org/spec/vta/contexts/create/1.0#response.";
191
+ readonly $ref: "#/$defs/ContextRecord";
192
+ };
193
+ readonly ContextRecord: {
194
+ readonly title: "ContextRecord";
195
+ readonly description: "A context as the VTA holds it.";
196
+ readonly type: "object";
197
+ readonly additionalProperties: false;
198
+ readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
199
+ readonly properties: {
200
+ readonly id: {
201
+ readonly type: "string";
202
+ readonly minLength: 1;
203
+ readonly description: "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.";
204
+ };
205
+ readonly name: {
206
+ readonly type: "string";
207
+ readonly minLength: 1;
208
+ readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
209
+ };
210
+ readonly did: {
211
+ readonly type: "string";
212
+ readonly description: "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.";
213
+ };
214
+ readonly description: {
215
+ readonly type: "string";
216
+ readonly description: "Free-form description.";
217
+ };
218
+ readonly parent: {
219
+ readonly type: "string";
220
+ readonly description: "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.";
221
+ };
222
+ readonly basePath: {
223
+ readonly type: "string";
224
+ readonly description: "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.";
225
+ };
226
+ readonly createdAt: {
227
+ readonly type: "string";
228
+ readonly format: "date-time";
229
+ readonly description: "RFC 3339.";
230
+ };
231
+ readonly updatedAt: {
232
+ readonly type: "string";
233
+ readonly format: "date-time";
234
+ readonly description: "RFC 3339.";
235
+ };
236
+ readonly ext: {
237
+ readonly $ref: "#/$defs/Ext";
238
+ };
239
+ };
240
+ };
241
+ readonly Ext: {
242
+ readonly title: "Ext";
243
+ 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.";
244
+ readonly type: "object";
245
+ readonly minProperties: 1;
246
+ readonly additionalProperties: true;
247
+ readonly propertyNames: {
248
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
249
+ };
250
+ };
251
+ };
252
+ };
253
+ /**
254
+ * SPEC.md §7.2 policy for the request variant, from this specification's
255
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
256
+ * per-specification and cannot be derived from the document alone, and
257
+ * item 2 needs the schema this carries.
258
+ */
259
+ export declare const SPEC: {
260
+ readonly typeUri: "https://trusttasks.org/spec/vta/contexts/create/1.0";
261
+ readonly isBearer: false;
262
+ readonly isProofRequired: true;
263
+ readonly isRecipientRequired: true;
264
+ readonly payloadSchema: {
265
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
266
+ readonly $id: "https://trusttasks.org/spec/vta/contexts/create/1.0";
267
+ readonly title: "VTA Contexts Create — payload";
268
+ readonly type: "object";
269
+ readonly additionalProperties: false;
270
+ readonly required: readonly ["id", "name"];
271
+ readonly properties: {
272
+ readonly id: {
273
+ readonly type: "string";
274
+ readonly minLength: 1;
275
+ readonly description: "Id for the new context. When `parent` is present this is the leaf segment and the full id becomes `<parent>/<id>`; otherwise it is a top-level id. Must be unique within its parent — a collision is refused, never merged.";
276
+ };
277
+ readonly name: {
278
+ readonly type: "string";
279
+ readonly minLength: 1;
280
+ readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning.";
281
+ };
282
+ readonly description: {
283
+ readonly type: "string";
284
+ readonly description: "Free-form description.";
285
+ };
286
+ readonly parent: {
287
+ readonly type: "string";
288
+ readonly description: "Id of the context to nest under. Absent creates a top-level context. Nesting is not cosmetic: authority granted at the parent reaches this context.";
289
+ };
290
+ readonly ext: {
291
+ readonly $ref: "#/$defs/Ext";
292
+ };
293
+ };
294
+ readonly $defs: {
295
+ readonly Response: {
296
+ readonly $anchor: "response";
297
+ readonly title: "VTA Contexts Create — response payload";
298
+ readonly description: "Success response to vta/contexts/create: the realized context record, at the top level. Type https://trusttasks.org/spec/vta/contexts/create/1.0#response.";
299
+ readonly $ref: "#/$defs/ContextRecord";
300
+ };
301
+ readonly ContextRecord: {
302
+ readonly title: "ContextRecord";
303
+ readonly description: "A context as the VTA holds it.";
304
+ readonly type: "object";
305
+ readonly additionalProperties: false;
306
+ readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
307
+ readonly properties: {
308
+ readonly id: {
309
+ readonly type: "string";
310
+ readonly minLength: 1;
311
+ readonly description: "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.";
312
+ };
313
+ readonly name: {
314
+ readonly type: "string";
315
+ readonly minLength: 1;
316
+ readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
317
+ };
318
+ readonly did: {
319
+ readonly type: "string";
320
+ readonly description: "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.";
321
+ };
322
+ readonly description: {
323
+ readonly type: "string";
324
+ readonly description: "Free-form description.";
325
+ };
326
+ readonly parent: {
327
+ readonly type: "string";
328
+ readonly description: "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.";
329
+ };
330
+ readonly basePath: {
331
+ readonly type: "string";
332
+ readonly description: "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.";
333
+ };
334
+ readonly createdAt: {
335
+ readonly type: "string";
336
+ readonly format: "date-time";
337
+ readonly description: "RFC 3339.";
338
+ };
339
+ readonly updatedAt: {
340
+ readonly type: "string";
341
+ readonly format: "date-time";
342
+ readonly description: "RFC 3339.";
343
+ };
344
+ readonly ext: {
345
+ readonly $ref: "#/$defs/Ext";
346
+ };
347
+ };
348
+ };
349
+ readonly Ext: {
350
+ readonly title: "Ext";
351
+ 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.";
352
+ readonly type: "object";
353
+ readonly minProperties: 1;
354
+ readonly additionalProperties: true;
355
+ readonly propertyNames: {
356
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
357
+ };
358
+ };
359
+ };
360
+ };
361
+ };
362
+ /**
363
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
364
+ * tracks the *issuer* party's requirement because a response swaps the
365
+ * parties (§7.3 item 5).
366
+ */
367
+ export declare const RESPONSE_SPEC: {
368
+ readonly typeUri: "https://trusttasks.org/spec/vta/contexts/create/1.0#response";
369
+ readonly isBearer: false;
370
+ readonly isProofRequired: true;
371
+ readonly isRecipientRequired: true;
372
+ readonly payloadSchema: {
373
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
374
+ readonly $ref: "#/$defs/Response";
375
+ readonly $defs: {
376
+ readonly Response: {
377
+ readonly $anchor: "response";
378
+ readonly title: "VTA Contexts Create — response payload";
379
+ readonly description: "Success response to vta/contexts/create: the realized context record, at the top level. Type https://trusttasks.org/spec/vta/contexts/create/1.0#response.";
380
+ readonly $ref: "#/$defs/ContextRecord";
381
+ };
382
+ readonly ContextRecord: {
383
+ readonly title: "ContextRecord";
384
+ readonly description: "A context as the VTA holds it.";
385
+ readonly type: "object";
386
+ readonly additionalProperties: false;
387
+ readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
388
+ readonly properties: {
389
+ readonly id: {
390
+ readonly type: "string";
391
+ readonly minLength: 1;
392
+ readonly description: "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.";
393
+ };
394
+ readonly name: {
395
+ readonly type: "string";
396
+ readonly minLength: 1;
397
+ readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
398
+ };
399
+ readonly did: {
400
+ readonly type: "string";
401
+ readonly description: "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.";
402
+ };
403
+ readonly description: {
404
+ readonly type: "string";
405
+ readonly description: "Free-form description.";
406
+ };
407
+ readonly parent: {
408
+ readonly type: "string";
409
+ readonly description: "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.";
410
+ };
411
+ readonly basePath: {
412
+ readonly type: "string";
413
+ readonly description: "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.";
414
+ };
415
+ readonly createdAt: {
416
+ readonly type: "string";
417
+ readonly format: "date-time";
418
+ readonly description: "RFC 3339.";
419
+ };
420
+ readonly updatedAt: {
421
+ readonly type: "string";
422
+ readonly format: "date-time";
423
+ readonly description: "RFC 3339.";
424
+ };
425
+ readonly ext: {
426
+ readonly $ref: "#/$defs/Ext";
427
+ };
428
+ };
429
+ };
430
+ readonly Ext: {
431
+ readonly title: "Ext";
432
+ 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.";
433
+ readonly type: "object";
434
+ readonly minProperties: 1;
435
+ readonly additionalProperties: true;
436
+ readonly propertyNames: {
437
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
438
+ };
439
+ };
440
+ };
441
+ };
442
+ };
443
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/contexts/create/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,qDAA8D,CAAC;AAEvF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,wBAAwB,CAAC;AAE/C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,8DAAuE,CAAC;AAEzG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,aAAa,CAAC;AAErC;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2E1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
@@ -0,0 +1,226 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/contexts/create/1.0/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/contexts/create/1.0";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/contexts/create/1.0#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vta/contexts/create/1.0",
21
+ "title": "VTA Contexts Create — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": [
25
+ "id",
26
+ "name"
27
+ ],
28
+ "properties": {
29
+ "id": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "description": "Id for the new context. When `parent` is present this is the leaf segment and the full id becomes `<parent>/<id>`; otherwise it is a top-level id. Must be unique within its parent — a collision is refused, never merged."
33
+ },
34
+ "name": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "description": "Human-readable name. Operator-facing only; carries no authorization meaning."
38
+ },
39
+ "description": {
40
+ "type": "string",
41
+ "description": "Free-form description."
42
+ },
43
+ "parent": {
44
+ "type": "string",
45
+ "description": "Id of the context to nest under. Absent creates a top-level context. Nesting is not cosmetic: authority granted at the parent reaches this context."
46
+ },
47
+ "ext": {
48
+ "$ref": "#/$defs/Ext"
49
+ }
50
+ },
51
+ "$defs": {
52
+ "Response": {
53
+ "$anchor": "response",
54
+ "title": "VTA Contexts Create — response payload",
55
+ "description": "Success response to vta/contexts/create: the realized context record, at the top level. Type https://trusttasks.org/spec/vta/contexts/create/1.0#response.",
56
+ "$ref": "#/$defs/ContextRecord"
57
+ },
58
+ "ContextRecord": {
59
+ "title": "ContextRecord",
60
+ "description": "A context as the VTA holds it.",
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": [
64
+ "id",
65
+ "name",
66
+ "basePath",
67
+ "createdAt",
68
+ "updatedAt"
69
+ ],
70
+ "properties": {
71
+ "id": {
72
+ "type": "string",
73
+ "minLength": 1,
74
+ "description": "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim."
75
+ },
76
+ "name": {
77
+ "type": "string",
78
+ "minLength": 1,
79
+ "description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
80
+ },
81
+ "did": {
82
+ "type": "string",
83
+ "description": "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one."
84
+ },
85
+ "description": {
86
+ "type": "string",
87
+ "description": "Free-form description."
88
+ },
89
+ "parent": {
90
+ "type": "string",
91
+ "description": "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope."
92
+ },
93
+ "basePath": {
94
+ "type": "string",
95
+ "description": "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable."
96
+ },
97
+ "createdAt": {
98
+ "type": "string",
99
+ "format": "date-time",
100
+ "description": "RFC 3339."
101
+ },
102
+ "updatedAt": {
103
+ "type": "string",
104
+ "format": "date-time",
105
+ "description": "RFC 3339."
106
+ },
107
+ "ext": {
108
+ "$ref": "#/$defs/Ext"
109
+ }
110
+ }
111
+ },
112
+ "Ext": {
113
+ "title": "Ext",
114
+ "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.",
115
+ "type": "object",
116
+ "minProperties": 1,
117
+ "additionalProperties": true,
118
+ "propertyNames": {
119
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
120
+ }
121
+ }
122
+ }
123
+ };
124
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
125
+ export const RESPONSE_PAYLOAD_SCHEMA = {
126
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
127
+ "$ref": "#/$defs/Response",
128
+ "$defs": {
129
+ "Response": {
130
+ "$anchor": "response",
131
+ "title": "VTA Contexts Create — response payload",
132
+ "description": "Success response to vta/contexts/create: the realized context record, at the top level. Type https://trusttasks.org/spec/vta/contexts/create/1.0#response.",
133
+ "$ref": "#/$defs/ContextRecord"
134
+ },
135
+ "ContextRecord": {
136
+ "title": "ContextRecord",
137
+ "description": "A context as the VTA holds it.",
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": [
141
+ "id",
142
+ "name",
143
+ "basePath",
144
+ "createdAt",
145
+ "updatedAt"
146
+ ],
147
+ "properties": {
148
+ "id": {
149
+ "type": "string",
150
+ "minLength": 1,
151
+ "description": "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim."
152
+ },
153
+ "name": {
154
+ "type": "string",
155
+ "minLength": 1,
156
+ "description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
157
+ },
158
+ "did": {
159
+ "type": "string",
160
+ "description": "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one."
161
+ },
162
+ "description": {
163
+ "type": "string",
164
+ "description": "Free-form description."
165
+ },
166
+ "parent": {
167
+ "type": "string",
168
+ "description": "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope."
169
+ },
170
+ "basePath": {
171
+ "type": "string",
172
+ "description": "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable."
173
+ },
174
+ "createdAt": {
175
+ "type": "string",
176
+ "format": "date-time",
177
+ "description": "RFC 3339."
178
+ },
179
+ "updatedAt": {
180
+ "type": "string",
181
+ "format": "date-time",
182
+ "description": "RFC 3339."
183
+ },
184
+ "ext": {
185
+ "$ref": "#/$defs/Ext"
186
+ }
187
+ }
188
+ },
189
+ "Ext": {
190
+ "title": "Ext",
191
+ "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.",
192
+ "type": "object",
193
+ "minProperties": 1,
194
+ "additionalProperties": true,
195
+ "propertyNames": {
196
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
197
+ }
198
+ }
199
+ }
200
+ };
201
+ /**
202
+ * SPEC.md §7.2 policy for the request variant, from this specification's
203
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
204
+ * per-specification and cannot be derived from the document alone, and
205
+ * item 2 needs the schema this carries.
206
+ */
207
+ export const SPEC = {
208
+ typeUri: TYPE_URI,
209
+ isBearer: false,
210
+ isProofRequired: true,
211
+ isRecipientRequired: true,
212
+ payloadSchema: PAYLOAD_SCHEMA,
213
+ };
214
+ /**
215
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
216
+ * tracks the *issuer* party's requirement because a response swaps the
217
+ * parties (§7.3 item 5).
218
+ */
219
+ export const RESPONSE_SPEC = {
220
+ typeUri: RESPONSE_TYPE_URI,
221
+ isBearer: false,
222
+ isProofRequired: true,
223
+ isRecipientRequired: true,
224
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
225
+ };
226
+ //# sourceMappingURL=payload.js.map