@openvtc/trust-tasks 0.12.1 → 0.12.2

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 (41) hide show
  1. package/dist/index.d.ts +7 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +7 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/vta/_shared/0.1/app-state-record.d.ts +17 -0
  6. package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -0
  7. package/dist/vta/_shared/0.1/app-state-record.js +6 -0
  8. package/dist/vta/_shared/0.1/app-state-record.js.map +1 -0
  9. package/dist/vta/app-state/delete/1.0/payload.d.ts +488 -0
  10. package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -0
  11. package/dist/vta/app-state/delete/1.0/payload.js +248 -0
  12. package/dist/vta/app-state/delete/1.0/payload.js.map +1 -0
  13. package/dist/vta/app-state/get/1.0/payload.d.ts +611 -0
  14. package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -0
  15. package/dist/vta/app-state/get/1.0/payload.js +306 -0
  16. package/dist/vta/app-state/get/1.0/payload.js.map +1 -0
  17. package/dist/vta/app-state/get-many/1.0/payload.d.ts +716 -0
  18. package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -0
  19. package/dist/vta/app-state/get-many/1.0/payload.js +350 -0
  20. package/dist/vta/app-state/get-many/1.0/payload.js.map +1 -0
  21. package/dist/vta/app-state/list/1.0/payload.d.ts +778 -0
  22. package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -0
  23. package/dist/vta/app-state/list/1.0/payload.js +368 -0
  24. package/dist/vta/app-state/list/1.0/payload.js.map +1 -0
  25. package/dist/vta/app-state/put/1.0/payload.d.ts +560 -0
  26. package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -0
  27. package/dist/vta/app-state/put/1.0/payload.js +291 -0
  28. package/dist/vta/app-state/put/1.0/payload.js.map +1 -0
  29. package/dist/vta/app-state/put-many/1.0/payload.d.ts +856 -0
  30. package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -0
  31. package/dist/vta/app-state/put-many/1.0/payload.js +455 -0
  32. package/dist/vta/app-state/put-many/1.0/payload.js.map +1 -0
  33. package/package.json +1 -1
  34. package/src/index.ts +7 -0
  35. package/src/vta/_shared/0.1/app-state-record.ts +17 -0
  36. package/src/vta/app-state/delete/1.0/payload.ts +323 -0
  37. package/src/vta/app-state/get/1.0/payload.ts +404 -0
  38. package/src/vta/app-state/get-many/1.0/payload.ts +469 -0
  39. package/src/vta/app-state/list/1.0/payload.ts +509 -0
  40. package/src/vta/app-state/put/1.0/payload.ts +382 -0
  41. package/src/vta/app-state/put-many/1.0/payload.ts +584 -0
@@ -0,0 +1,778 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/app-state/list/1.0/payload.schema.json
4
+ */
5
+ /**
6
+ * Restrict to one namespace. Optional in snapshot mode, where omitting it enumerates every namespace the caller can read in the context. REQUIRED in change-feed mode, because the version counter `sinceVersion` is compared against is maintained per (contextId, namespace) and a watermark spanning namespaces would name no single point in time.
7
+ */
8
+ export type Namespace = string;
9
+ /**
10
+ * Scopes one application's records within a context, so several tools can share a context without colliding — `openvtc`, `cnm`, an agent runtime. The maintainer MUST NOT interpret the value; it is an opaque partition name. Namespaces are first-come and unreserved, so an application SHOULD pick a stable, specific one: a future per-namespace ACL would grant on this exact string, which makes renaming a namespace a migration rather than an edit.
11
+ */
12
+ export type Namespace1 = string;
13
+ /**
14
+ * Application-chosen identifier for a record within a namespace. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `list` is a byte-prefix comparison over the UTF-8 encoding. Applications SHOULD use `/`-delimited hierarchical keys (`community/acme`, `contact/z6Mk…`) so that `prefix` can address a record family, but the delimiter is a convention between an application and itself — the maintainer attaches no meaning to it.
15
+ */
16
+ export type Key = string;
17
+ /**
18
+ * The namespace counter value this record's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between.
19
+ */
20
+ export type Version = number;
21
+ /**
22
+ * The namespace's current counter value. Present whenever `namespace` was supplied. This is what a consumer stores as its next `sinceVersion` — NOT the maximum version among `records`, which is wrong whenever a `prefix` filtered a later change out, and undefined when the page is empty. A paginating consumer MUST NOT advance its stored watermark until it has drained the final page, because the pages of one feed share this value and adopting it early would skip the records still to come.
23
+ */
24
+ export type Version1 = number;
25
+ /**
26
+ * Enumerate application-state records in a context. Two modes, distinguished by whether `sinceVersion` is supplied. Without it this is a SNAPSHOT of live records, optionally narrowed by `prefix`. With it this is a CHANGE FEED: every record in the namespace whose version exceeds the watermark, tombstones included, which is what lets an incremental consumer converge. Pagination is opaque-cursor based.
27
+ */
28
+ export interface VTAApplicationStateListPayload {
29
+ /**
30
+ * The VTA context to enumerate; the isolation boundary.
31
+ */
32
+ contextId: string;
33
+ namespace?: Namespace;
34
+ /**
35
+ * Restrict to records whose `key` begins with this byte prefix, compared over the UTF-8 encoding. Lets a consumer read one record family — `community/`, `contact/` — without dragging every record in the namespace through the response.
36
+ */
37
+ prefix?: string;
38
+ /**
39
+ * Watermark. Selects change-feed mode: only records whose `version` is strictly greater are returned, tombstones included. Supply the `highWatermark` from the previous sync, or 0 for a first full pull in change-feed form. Requires `namespace`.
40
+ */
41
+ sinceVersion?: number;
42
+ /**
43
+ * When true, each returned record carries its `value`. Defaults to false, which returns the metadata view — address, version, timestamps, `valueBytes` — so a prefix scan is cheap. Setting it makes a scan one round trip rather than a scan plus N gets, at the cost of the response carrying every value.
44
+ */
45
+ includeValues?: boolean;
46
+ /**
47
+ * Snapshot mode only: when true, tombstones still inside the retention window are returned alongside live records. Defaults to false. In change-feed mode tombstones are always returned and this member MUST NOT be set to false — a change feed that omits deletions cannot converge, so asking for one is a contradiction rather than a preference.
48
+ */
49
+ includeDeleted?: boolean;
50
+ /**
51
+ * Caller's upper bound on records per page. The maintainer applies its own ceiling and MAY return fewer — notably when `includeValues` is set and the values are large.
52
+ */
53
+ pageSize?: number;
54
+ /**
55
+ * Opaque continuation token from a previous response. Consumers MUST treat it as opaque: never construct, decode, mutate, or infer meaning from one.
56
+ */
57
+ cursor?: string;
58
+ ext?: Ext;
59
+ }
60
+ /**
61
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
62
+ */
63
+ export interface Ext {
64
+ [k: string]: unknown | undefined;
65
+ }
66
+ /**
67
+ * Success response to vta/app-state/list. Type https://trusttasks.org/spec/vta/app-state/list/1.0#response.
68
+ */
69
+ export interface VTAApplicationStateListResponsePayload {
70
+ /**
71
+ * Matching records in ascending key order in snapshot mode, and ascending version order in change-feed mode — the latter so that a consumer applying them in order reaches the same state as the maintainer. May be empty.
72
+ */
73
+ records: AppStateRecord[];
74
+ /**
75
+ * True when more matching records exist beyond this page.
76
+ */
77
+ truncated: boolean;
78
+ /**
79
+ * Opaque continuation token for the next page. Present only when `truncated` is true.
80
+ */
81
+ cursor?: string;
82
+ highWatermark?: Version1;
83
+ /**
84
+ * How long this maintainer retains tombstones before reaping them. Advisory, and present at the maintainer's discretion, so a consumer can schedule its syncs to stay inside the window rather than discovering it has fallen out of it via vta/app-state/list:watermarkTooOld.
85
+ */
86
+ tombstoneRetentionSeconds?: number;
87
+ ext?: Ext1;
88
+ }
89
+ /**
90
+ * A record as the maintainer holds it. `value` is absent in three distinct situations and a consumer MUST NOT conflate them: the record is a tombstone (`deleted` is true); the caller asked for a metadata-only view (`list` without `includeValues`); or the value genuinely is the JSON literal `null`, in which case `value` is PRESENT and null. This is why `deleted` is required rather than defaulted — a consumer that has to infer deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.
91
+ */
92
+ export interface AppStateRecord {
93
+ /**
94
+ * The VTA context the record is scoped to; the isolation boundary.
95
+ */
96
+ contextId: string;
97
+ namespace: Namespace1;
98
+ key: Key;
99
+ version: Version;
100
+ /**
101
+ * The stored JSON, in whatever shape the owning application chose. Any JSON value, including `null`. The maintainer neither validates nor interprets it. Absent when this is a tombstone or a metadata-only view — see this definition's description for why that is not the same as a null value.
102
+ */
103
+ value?: {
104
+ [k: string]: unknown | undefined;
105
+ };
106
+ /**
107
+ * Size of the stored value in bytes, measured as the maintainer measures it for the per-record cap (see `vta/app-state/put`). Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone.
108
+ */
109
+ valueBytes?: number;
110
+ /**
111
+ * True when this is a tombstone: the record was deleted, and this entry exists so that a consumer syncing incrementally learns of the deletion. Tombstones are reaped after the maintainer's retention window; see `vta/app-state/list`.
112
+ */
113
+ deleted: boolean;
114
+ /**
115
+ * When the record was first created at this address. MAY be absent on a tombstone whose body has been discarded.
116
+ */
117
+ createdAt?: string;
118
+ /**
119
+ * When the write that produced this `version` was applied. For a tombstone, when the delete was applied.
120
+ */
121
+ updatedAt: string;
122
+ /**
123
+ * When the record was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten.
124
+ */
125
+ deletedAt?: string;
126
+ }
127
+ /**
128
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
129
+ */
130
+ export interface Ext1 {
131
+ [k: string]: unknown | undefined;
132
+ }
133
+ /** Trust Task type URI. */
134
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/app-state/list/1.0";
135
+ /** Stable alias for this specification's request payload shape. */
136
+ export type Payload = VTAApplicationStateListPayload;
137
+ /** Trust Task response type URI (request type URI + "#response"). */
138
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/app-state/list/1.0#response";
139
+ /** Stable alias for this specification's success-response payload shape. */
140
+ export type Response = VTAApplicationStateListResponsePayload;
141
+ /**
142
+ * This specification's payload schema, as a value.
143
+ *
144
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
145
+ * rather than only as a `.json` file because TypeScript types are erased
146
+ * at runtime: without a schema a consumer has nothing to validate, and
147
+ * every REQUIRED payload member is optional in practice. Cross-file
148
+ * `$ref`s are already inlined, so it needs no resolver.
149
+ */
150
+ export declare const PAYLOAD_SCHEMA: {
151
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
152
+ readonly $id: "https://trusttasks.org/spec/vta/app-state/list/1.0";
153
+ readonly title: "VTA Application State List — payload";
154
+ readonly description: "Enumerate application-state records in a context. Two modes, distinguished by whether `sinceVersion` is supplied. Without it this is a SNAPSHOT of live records, optionally narrowed by `prefix`. With it this is a CHANGE FEED: every record in the namespace whose version exceeds the watermark, tombstones included, which is what lets an incremental consumer converge. Pagination is opaque-cursor based.";
155
+ readonly type: "object";
156
+ readonly additionalProperties: false;
157
+ readonly required: readonly ["contextId"];
158
+ readonly properties: {
159
+ readonly contextId: {
160
+ readonly type: "string";
161
+ readonly minLength: 1;
162
+ readonly description: "The VTA context to enumerate; the isolation boundary.";
163
+ };
164
+ readonly namespace: {
165
+ readonly $ref: "#/$defs/Namespace";
166
+ readonly description: "Restrict to one namespace. Optional in snapshot mode, where omitting it enumerates every namespace the caller can read in the context. REQUIRED in change-feed mode, because the version counter `sinceVersion` is compared against is maintained per (contextId, namespace) and a watermark spanning namespaces would name no single point in time.";
167
+ };
168
+ readonly prefix: {
169
+ readonly type: "string";
170
+ readonly maxLength: 512;
171
+ readonly description: "Restrict to records whose `key` begins with this byte prefix, compared over the UTF-8 encoding. Lets a consumer read one record family — `community/`, `contact/` — without dragging every record in the namespace through the response.";
172
+ };
173
+ readonly sinceVersion: {
174
+ readonly type: "integer";
175
+ readonly minimum: 0;
176
+ readonly description: "Watermark. Selects change-feed mode: only records whose `version` is strictly greater are returned, tombstones included. Supply the `highWatermark` from the previous sync, or 0 for a first full pull in change-feed form. Requires `namespace`.";
177
+ };
178
+ readonly includeValues: {
179
+ readonly type: "boolean";
180
+ readonly description: "When true, each returned record carries its `value`. Defaults to false, which returns the metadata view — address, version, timestamps, `valueBytes` — so a prefix scan is cheap. Setting it makes a scan one round trip rather than a scan plus N gets, at the cost of the response carrying every value.";
181
+ };
182
+ readonly includeDeleted: {
183
+ readonly type: "boolean";
184
+ readonly description: "Snapshot mode only: when true, tombstones still inside the retention window are returned alongside live records. Defaults to false. In change-feed mode tombstones are always returned and this member MUST NOT be set to false — a change feed that omits deletions cannot converge, so asking for one is a contradiction rather than a preference.";
185
+ };
186
+ readonly pageSize: {
187
+ readonly type: "integer";
188
+ readonly minimum: 1;
189
+ readonly maximum: 1000;
190
+ readonly description: "Caller's upper bound on records per page. The maintainer applies its own ceiling and MAY return fewer — notably when `includeValues` is set and the values are large.";
191
+ };
192
+ readonly cursor: {
193
+ readonly type: "string";
194
+ readonly description: "Opaque continuation token from a previous response. Consumers MUST treat it as opaque: never construct, decode, mutate, or infer meaning from one.";
195
+ };
196
+ readonly ext: {
197
+ readonly $ref: "#/$defs/Ext";
198
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
199
+ };
200
+ };
201
+ readonly $defs: {
202
+ readonly Response: {
203
+ readonly $anchor: "response";
204
+ readonly title: "VTA Application State List — response payload";
205
+ readonly description: "Success response to vta/app-state/list. Type https://trusttasks.org/spec/vta/app-state/list/1.0#response.";
206
+ readonly type: "object";
207
+ readonly additionalProperties: false;
208
+ readonly required: readonly ["records", "truncated"];
209
+ readonly properties: {
210
+ readonly records: {
211
+ readonly type: "array";
212
+ readonly items: {
213
+ readonly $ref: "#/$defs/AppStateRecord";
214
+ };
215
+ readonly description: "Matching records in ascending key order in snapshot mode, and ascending version order in change-feed mode — the latter so that a consumer applying them in order reaches the same state as the maintainer. May be empty.";
216
+ };
217
+ readonly truncated: {
218
+ readonly type: "boolean";
219
+ readonly description: "True when more matching records exist beyond this page.";
220
+ };
221
+ readonly cursor: {
222
+ readonly type: "string";
223
+ readonly description: "Opaque continuation token for the next page. Present only when `truncated` is true.";
224
+ };
225
+ readonly highWatermark: {
226
+ readonly $ref: "#/$defs/Version";
227
+ readonly description: "The namespace's current counter value. Present whenever `namespace` was supplied. This is what a consumer stores as its next `sinceVersion` — NOT the maximum version among `records`, which is wrong whenever a `prefix` filtered a later change out, and undefined when the page is empty. A paginating consumer MUST NOT advance its stored watermark until it has drained the final page, because the pages of one feed share this value and adopting it early would skip the records still to come.";
228
+ };
229
+ readonly tombstoneRetentionSeconds: {
230
+ readonly type: "integer";
231
+ readonly minimum: 0;
232
+ readonly description: "How long this maintainer retains tombstones before reaping them. Advisory, and present at the maintainer's discretion, so a consumer can schedule its syncs to stay inside the window rather than discovering it has fallen out of it via vta/app-state/list:watermarkTooOld.";
233
+ };
234
+ readonly ext: {
235
+ readonly $ref: "#/$defs/Ext";
236
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
237
+ };
238
+ };
239
+ };
240
+ readonly Ext: {
241
+ readonly title: "Ext";
242
+ 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.";
243
+ readonly type: "object";
244
+ readonly minProperties: 1;
245
+ readonly additionalProperties: true;
246
+ readonly propertyNames: {
247
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
248
+ };
249
+ };
250
+ readonly Version: {
251
+ readonly title: "Version";
252
+ readonly description: "A value of the namespace's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.";
253
+ readonly type: "integer";
254
+ readonly minimum: 1;
255
+ };
256
+ readonly AppStateRecord: {
257
+ readonly title: "AppStateRecord";
258
+ readonly description: "A record as the maintainer holds it. `value` is absent in three distinct situations and a consumer MUST NOT conflate them: the record is a tombstone (`deleted` is true); the caller asked for a metadata-only view (`list` without `includeValues`); or the value genuinely is the JSON literal `null`, in which case `value` is PRESENT and null. This is why `deleted` is required rather than defaulted — a consumer that has to infer deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.";
259
+ readonly type: "object";
260
+ readonly additionalProperties: false;
261
+ readonly required: readonly ["contextId", "namespace", "key", "version", "deleted", "updatedAt"];
262
+ readonly properties: {
263
+ readonly contextId: {
264
+ readonly type: "string";
265
+ readonly minLength: 1;
266
+ readonly description: "The VTA context the record is scoped to; the isolation boundary.";
267
+ };
268
+ readonly namespace: {
269
+ readonly $ref: "#/$defs/Namespace";
270
+ };
271
+ readonly key: {
272
+ readonly $ref: "#/$defs/Key";
273
+ };
274
+ readonly version: {
275
+ readonly $ref: "#/$defs/Version";
276
+ readonly description: "The namespace counter value this record's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between.";
277
+ };
278
+ readonly value: {
279
+ readonly description: "The stored JSON, in whatever shape the owning application chose. Any JSON value, including `null`. The maintainer neither validates nor interprets it. Absent when this is a tombstone or a metadata-only view — see this definition's description for why that is not the same as a null value.";
280
+ };
281
+ readonly valueBytes: {
282
+ readonly type: "integer";
283
+ readonly minimum: 0;
284
+ readonly description: "Size of the stored value in bytes, measured as the maintainer measures it for the per-record cap (see `vta/app-state/put`). Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone.";
285
+ };
286
+ readonly deleted: {
287
+ readonly type: "boolean";
288
+ readonly description: "True when this is a tombstone: the record was deleted, and this entry exists so that a consumer syncing incrementally learns of the deletion. Tombstones are reaped after the maintainer's retention window; see `vta/app-state/list`.";
289
+ };
290
+ readonly createdAt: {
291
+ readonly type: "string";
292
+ readonly format: "date-time";
293
+ readonly description: "When the record was first created at this address. MAY be absent on a tombstone whose body has been discarded.";
294
+ };
295
+ readonly updatedAt: {
296
+ readonly type: "string";
297
+ readonly format: "date-time";
298
+ readonly description: "When the write that produced this `version` was applied. For a tombstone, when the delete was applied.";
299
+ };
300
+ readonly deletedAt: {
301
+ readonly type: "string";
302
+ readonly format: "date-time";
303
+ readonly description: "When the record was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten.";
304
+ };
305
+ };
306
+ };
307
+ readonly Key: {
308
+ readonly title: "Key";
309
+ readonly description: "Application-chosen identifier for a record within a namespace. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `list` is a byte-prefix comparison over the UTF-8 encoding. Applications SHOULD use `/`-delimited hierarchical keys (`community/acme`, `contact/z6Mk…`) so that `prefix` can address a record family, but the delimiter is a convention between an application and itself — the maintainer attaches no meaning to it.";
310
+ readonly type: "string";
311
+ readonly minLength: 1;
312
+ readonly maxLength: 512;
313
+ readonly pattern: "^[^\\u0000]+$";
314
+ };
315
+ readonly Namespace: {
316
+ readonly title: "Namespace";
317
+ readonly description: "Scopes one application's records within a context, so several tools can share a context without colliding — `openvtc`, `cnm`, an agent runtime. The maintainer MUST NOT interpret the value; it is an opaque partition name. Namespaces are first-come and unreserved, so an application SHOULD pick a stable, specific one: a future per-namespace ACL would grant on this exact string, which makes renaming a namespace a migration rather than an edit.";
318
+ readonly type: "string";
319
+ readonly minLength: 1;
320
+ readonly maxLength: 64;
321
+ readonly pattern: "^[a-z][a-z0-9]*(-[a-z0-9]+)*$";
322
+ };
323
+ };
324
+ };
325
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
326
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
327
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
328
+ readonly $ref: "#/$defs/Response";
329
+ readonly $defs: {
330
+ readonly Response: {
331
+ readonly $anchor: "response";
332
+ readonly title: "VTA Application State List — response payload";
333
+ readonly description: "Success response to vta/app-state/list. Type https://trusttasks.org/spec/vta/app-state/list/1.0#response.";
334
+ readonly type: "object";
335
+ readonly additionalProperties: false;
336
+ readonly required: readonly ["records", "truncated"];
337
+ readonly properties: {
338
+ readonly records: {
339
+ readonly type: "array";
340
+ readonly items: {
341
+ readonly $ref: "#/$defs/AppStateRecord";
342
+ };
343
+ readonly description: "Matching records in ascending key order in snapshot mode, and ascending version order in change-feed mode — the latter so that a consumer applying them in order reaches the same state as the maintainer. May be empty.";
344
+ };
345
+ readonly truncated: {
346
+ readonly type: "boolean";
347
+ readonly description: "True when more matching records exist beyond this page.";
348
+ };
349
+ readonly cursor: {
350
+ readonly type: "string";
351
+ readonly description: "Opaque continuation token for the next page. Present only when `truncated` is true.";
352
+ };
353
+ readonly highWatermark: {
354
+ readonly $ref: "#/$defs/Version";
355
+ readonly description: "The namespace's current counter value. Present whenever `namespace` was supplied. This is what a consumer stores as its next `sinceVersion` — NOT the maximum version among `records`, which is wrong whenever a `prefix` filtered a later change out, and undefined when the page is empty. A paginating consumer MUST NOT advance its stored watermark until it has drained the final page, because the pages of one feed share this value and adopting it early would skip the records still to come.";
356
+ };
357
+ readonly tombstoneRetentionSeconds: {
358
+ readonly type: "integer";
359
+ readonly minimum: 0;
360
+ readonly description: "How long this maintainer retains tombstones before reaping them. Advisory, and present at the maintainer's discretion, so a consumer can schedule its syncs to stay inside the window rather than discovering it has fallen out of it via vta/app-state/list:watermarkTooOld.";
361
+ };
362
+ readonly ext: {
363
+ readonly $ref: "#/$defs/Ext";
364
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
365
+ };
366
+ };
367
+ };
368
+ readonly Ext: {
369
+ readonly title: "Ext";
370
+ 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.";
371
+ readonly type: "object";
372
+ readonly minProperties: 1;
373
+ readonly additionalProperties: true;
374
+ readonly propertyNames: {
375
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
376
+ };
377
+ };
378
+ readonly Version: {
379
+ readonly title: "Version";
380
+ readonly description: "A value of the namespace's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.";
381
+ readonly type: "integer";
382
+ readonly minimum: 1;
383
+ };
384
+ readonly AppStateRecord: {
385
+ readonly title: "AppStateRecord";
386
+ readonly description: "A record as the maintainer holds it. `value` is absent in three distinct situations and a consumer MUST NOT conflate them: the record is a tombstone (`deleted` is true); the caller asked for a metadata-only view (`list` without `includeValues`); or the value genuinely is the JSON literal `null`, in which case `value` is PRESENT and null. This is why `deleted` is required rather than defaulted — a consumer that has to infer deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.";
387
+ readonly type: "object";
388
+ readonly additionalProperties: false;
389
+ readonly required: readonly ["contextId", "namespace", "key", "version", "deleted", "updatedAt"];
390
+ readonly properties: {
391
+ readonly contextId: {
392
+ readonly type: "string";
393
+ readonly minLength: 1;
394
+ readonly description: "The VTA context the record is scoped to; the isolation boundary.";
395
+ };
396
+ readonly namespace: {
397
+ readonly $ref: "#/$defs/Namespace";
398
+ };
399
+ readonly key: {
400
+ readonly $ref: "#/$defs/Key";
401
+ };
402
+ readonly version: {
403
+ readonly $ref: "#/$defs/Version";
404
+ readonly description: "The namespace counter value this record's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between.";
405
+ };
406
+ readonly value: {
407
+ readonly description: "The stored JSON, in whatever shape the owning application chose. Any JSON value, including `null`. The maintainer neither validates nor interprets it. Absent when this is a tombstone or a metadata-only view — see this definition's description for why that is not the same as a null value.";
408
+ };
409
+ readonly valueBytes: {
410
+ readonly type: "integer";
411
+ readonly minimum: 0;
412
+ readonly description: "Size of the stored value in bytes, measured as the maintainer measures it for the per-record cap (see `vta/app-state/put`). Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone.";
413
+ };
414
+ readonly deleted: {
415
+ readonly type: "boolean";
416
+ readonly description: "True when this is a tombstone: the record was deleted, and this entry exists so that a consumer syncing incrementally learns of the deletion. Tombstones are reaped after the maintainer's retention window; see `vta/app-state/list`.";
417
+ };
418
+ readonly createdAt: {
419
+ readonly type: "string";
420
+ readonly format: "date-time";
421
+ readonly description: "When the record was first created at this address. MAY be absent on a tombstone whose body has been discarded.";
422
+ };
423
+ readonly updatedAt: {
424
+ readonly type: "string";
425
+ readonly format: "date-time";
426
+ readonly description: "When the write that produced this `version` was applied. For a tombstone, when the delete was applied.";
427
+ };
428
+ readonly deletedAt: {
429
+ readonly type: "string";
430
+ readonly format: "date-time";
431
+ readonly description: "When the record was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten.";
432
+ };
433
+ };
434
+ };
435
+ readonly Key: {
436
+ readonly title: "Key";
437
+ readonly description: "Application-chosen identifier for a record within a namespace. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `list` is a byte-prefix comparison over the UTF-8 encoding. Applications SHOULD use `/`-delimited hierarchical keys (`community/acme`, `contact/z6Mk…`) so that `prefix` can address a record family, but the delimiter is a convention between an application and itself — the maintainer attaches no meaning to it.";
438
+ readonly type: "string";
439
+ readonly minLength: 1;
440
+ readonly maxLength: 512;
441
+ readonly pattern: "^[^\\u0000]+$";
442
+ };
443
+ readonly Namespace: {
444
+ readonly title: "Namespace";
445
+ readonly description: "Scopes one application's records within a context, so several tools can share a context without colliding — `openvtc`, `cnm`, an agent runtime. The maintainer MUST NOT interpret the value; it is an opaque partition name. Namespaces are first-come and unreserved, so an application SHOULD pick a stable, specific one: a future per-namespace ACL would grant on this exact string, which makes renaming a namespace a migration rather than an edit.";
446
+ readonly type: "string";
447
+ readonly minLength: 1;
448
+ readonly maxLength: 64;
449
+ readonly pattern: "^[a-z][a-z0-9]*(-[a-z0-9]+)*$";
450
+ };
451
+ };
452
+ };
453
+ /**
454
+ * SPEC.md §7.2 policy for the request variant, from this specification's
455
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
456
+ * per-specification and cannot be derived from the document alone, and
457
+ * item 2 needs the schema this carries.
458
+ */
459
+ export declare const SPEC: {
460
+ readonly typeUri: "https://trusttasks.org/spec/vta/app-state/list/1.0";
461
+ readonly isBearer: false;
462
+ readonly isProofRequired: false;
463
+ readonly isRecipientRequired: true;
464
+ readonly payloadSchema: {
465
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
466
+ readonly $id: "https://trusttasks.org/spec/vta/app-state/list/1.0";
467
+ readonly title: "VTA Application State List — payload";
468
+ readonly description: "Enumerate application-state records in a context. Two modes, distinguished by whether `sinceVersion` is supplied. Without it this is a SNAPSHOT of live records, optionally narrowed by `prefix`. With it this is a CHANGE FEED: every record in the namespace whose version exceeds the watermark, tombstones included, which is what lets an incremental consumer converge. Pagination is opaque-cursor based.";
469
+ readonly type: "object";
470
+ readonly additionalProperties: false;
471
+ readonly required: readonly ["contextId"];
472
+ readonly properties: {
473
+ readonly contextId: {
474
+ readonly type: "string";
475
+ readonly minLength: 1;
476
+ readonly description: "The VTA context to enumerate; the isolation boundary.";
477
+ };
478
+ readonly namespace: {
479
+ readonly $ref: "#/$defs/Namespace";
480
+ readonly description: "Restrict to one namespace. Optional in snapshot mode, where omitting it enumerates every namespace the caller can read in the context. REQUIRED in change-feed mode, because the version counter `sinceVersion` is compared against is maintained per (contextId, namespace) and a watermark spanning namespaces would name no single point in time.";
481
+ };
482
+ readonly prefix: {
483
+ readonly type: "string";
484
+ readonly maxLength: 512;
485
+ readonly description: "Restrict to records whose `key` begins with this byte prefix, compared over the UTF-8 encoding. Lets a consumer read one record family — `community/`, `contact/` — without dragging every record in the namespace through the response.";
486
+ };
487
+ readonly sinceVersion: {
488
+ readonly type: "integer";
489
+ readonly minimum: 0;
490
+ readonly description: "Watermark. Selects change-feed mode: only records whose `version` is strictly greater are returned, tombstones included. Supply the `highWatermark` from the previous sync, or 0 for a first full pull in change-feed form. Requires `namespace`.";
491
+ };
492
+ readonly includeValues: {
493
+ readonly type: "boolean";
494
+ readonly description: "When true, each returned record carries its `value`. Defaults to false, which returns the metadata view — address, version, timestamps, `valueBytes` — so a prefix scan is cheap. Setting it makes a scan one round trip rather than a scan plus N gets, at the cost of the response carrying every value.";
495
+ };
496
+ readonly includeDeleted: {
497
+ readonly type: "boolean";
498
+ readonly description: "Snapshot mode only: when true, tombstones still inside the retention window are returned alongside live records. Defaults to false. In change-feed mode tombstones are always returned and this member MUST NOT be set to false — a change feed that omits deletions cannot converge, so asking for one is a contradiction rather than a preference.";
499
+ };
500
+ readonly pageSize: {
501
+ readonly type: "integer";
502
+ readonly minimum: 1;
503
+ readonly maximum: 1000;
504
+ readonly description: "Caller's upper bound on records per page. The maintainer applies its own ceiling and MAY return fewer — notably when `includeValues` is set and the values are large.";
505
+ };
506
+ readonly cursor: {
507
+ readonly type: "string";
508
+ readonly description: "Opaque continuation token from a previous response. Consumers MUST treat it as opaque: never construct, decode, mutate, or infer meaning from one.";
509
+ };
510
+ readonly ext: {
511
+ readonly $ref: "#/$defs/Ext";
512
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
513
+ };
514
+ };
515
+ readonly $defs: {
516
+ readonly Response: {
517
+ readonly $anchor: "response";
518
+ readonly title: "VTA Application State List — response payload";
519
+ readonly description: "Success response to vta/app-state/list. Type https://trusttasks.org/spec/vta/app-state/list/1.0#response.";
520
+ readonly type: "object";
521
+ readonly additionalProperties: false;
522
+ readonly required: readonly ["records", "truncated"];
523
+ readonly properties: {
524
+ readonly records: {
525
+ readonly type: "array";
526
+ readonly items: {
527
+ readonly $ref: "#/$defs/AppStateRecord";
528
+ };
529
+ readonly description: "Matching records in ascending key order in snapshot mode, and ascending version order in change-feed mode — the latter so that a consumer applying them in order reaches the same state as the maintainer. May be empty.";
530
+ };
531
+ readonly truncated: {
532
+ readonly type: "boolean";
533
+ readonly description: "True when more matching records exist beyond this page.";
534
+ };
535
+ readonly cursor: {
536
+ readonly type: "string";
537
+ readonly description: "Opaque continuation token for the next page. Present only when `truncated` is true.";
538
+ };
539
+ readonly highWatermark: {
540
+ readonly $ref: "#/$defs/Version";
541
+ readonly description: "The namespace's current counter value. Present whenever `namespace` was supplied. This is what a consumer stores as its next `sinceVersion` — NOT the maximum version among `records`, which is wrong whenever a `prefix` filtered a later change out, and undefined when the page is empty. A paginating consumer MUST NOT advance its stored watermark until it has drained the final page, because the pages of one feed share this value and adopting it early would skip the records still to come.";
542
+ };
543
+ readonly tombstoneRetentionSeconds: {
544
+ readonly type: "integer";
545
+ readonly minimum: 0;
546
+ readonly description: "How long this maintainer retains tombstones before reaping them. Advisory, and present at the maintainer's discretion, so a consumer can schedule its syncs to stay inside the window rather than discovering it has fallen out of it via vta/app-state/list:watermarkTooOld.";
547
+ };
548
+ readonly ext: {
549
+ readonly $ref: "#/$defs/Ext";
550
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
551
+ };
552
+ };
553
+ };
554
+ readonly Ext: {
555
+ readonly title: "Ext";
556
+ 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.";
557
+ readonly type: "object";
558
+ readonly minProperties: 1;
559
+ readonly additionalProperties: true;
560
+ readonly propertyNames: {
561
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
562
+ };
563
+ };
564
+ readonly Version: {
565
+ readonly title: "Version";
566
+ readonly description: "A value of the namespace's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.";
567
+ readonly type: "integer";
568
+ readonly minimum: 1;
569
+ };
570
+ readonly AppStateRecord: {
571
+ readonly title: "AppStateRecord";
572
+ readonly description: "A record as the maintainer holds it. `value` is absent in three distinct situations and a consumer MUST NOT conflate them: the record is a tombstone (`deleted` is true); the caller asked for a metadata-only view (`list` without `includeValues`); or the value genuinely is the JSON literal `null`, in which case `value` is PRESENT and null. This is why `deleted` is required rather than defaulted — a consumer that has to infer deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.";
573
+ readonly type: "object";
574
+ readonly additionalProperties: false;
575
+ readonly required: readonly ["contextId", "namespace", "key", "version", "deleted", "updatedAt"];
576
+ readonly properties: {
577
+ readonly contextId: {
578
+ readonly type: "string";
579
+ readonly minLength: 1;
580
+ readonly description: "The VTA context the record is scoped to; the isolation boundary.";
581
+ };
582
+ readonly namespace: {
583
+ readonly $ref: "#/$defs/Namespace";
584
+ };
585
+ readonly key: {
586
+ readonly $ref: "#/$defs/Key";
587
+ };
588
+ readonly version: {
589
+ readonly $ref: "#/$defs/Version";
590
+ readonly description: "The namespace counter value this record's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between.";
591
+ };
592
+ readonly value: {
593
+ readonly description: "The stored JSON, in whatever shape the owning application chose. Any JSON value, including `null`. The maintainer neither validates nor interprets it. Absent when this is a tombstone or a metadata-only view — see this definition's description for why that is not the same as a null value.";
594
+ };
595
+ readonly valueBytes: {
596
+ readonly type: "integer";
597
+ readonly minimum: 0;
598
+ readonly description: "Size of the stored value in bytes, measured as the maintainer measures it for the per-record cap (see `vta/app-state/put`). Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone.";
599
+ };
600
+ readonly deleted: {
601
+ readonly type: "boolean";
602
+ readonly description: "True when this is a tombstone: the record was deleted, and this entry exists so that a consumer syncing incrementally learns of the deletion. Tombstones are reaped after the maintainer's retention window; see `vta/app-state/list`.";
603
+ };
604
+ readonly createdAt: {
605
+ readonly type: "string";
606
+ readonly format: "date-time";
607
+ readonly description: "When the record was first created at this address. MAY be absent on a tombstone whose body has been discarded.";
608
+ };
609
+ readonly updatedAt: {
610
+ readonly type: "string";
611
+ readonly format: "date-time";
612
+ readonly description: "When the write that produced this `version` was applied. For a tombstone, when the delete was applied.";
613
+ };
614
+ readonly deletedAt: {
615
+ readonly type: "string";
616
+ readonly format: "date-time";
617
+ readonly description: "When the record was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten.";
618
+ };
619
+ };
620
+ };
621
+ readonly Key: {
622
+ readonly title: "Key";
623
+ readonly description: "Application-chosen identifier for a record within a namespace. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `list` is a byte-prefix comparison over the UTF-8 encoding. Applications SHOULD use `/`-delimited hierarchical keys (`community/acme`, `contact/z6Mk…`) so that `prefix` can address a record family, but the delimiter is a convention between an application and itself — the maintainer attaches no meaning to it.";
624
+ readonly type: "string";
625
+ readonly minLength: 1;
626
+ readonly maxLength: 512;
627
+ readonly pattern: "^[^\\u0000]+$";
628
+ };
629
+ readonly Namespace: {
630
+ readonly title: "Namespace";
631
+ readonly description: "Scopes one application's records within a context, so several tools can share a context without colliding — `openvtc`, `cnm`, an agent runtime. The maintainer MUST NOT interpret the value; it is an opaque partition name. Namespaces are first-come and unreserved, so an application SHOULD pick a stable, specific one: a future per-namespace ACL would grant on this exact string, which makes renaming a namespace a migration rather than an edit.";
632
+ readonly type: "string";
633
+ readonly minLength: 1;
634
+ readonly maxLength: 64;
635
+ readonly pattern: "^[a-z][a-z0-9]*(-[a-z0-9]+)*$";
636
+ };
637
+ };
638
+ };
639
+ };
640
+ /**
641
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
642
+ * tracks the *issuer* party's requirement because a response swaps the
643
+ * parties (§7.3 item 5).
644
+ */
645
+ export declare const RESPONSE_SPEC: {
646
+ readonly typeUri: "https://trusttasks.org/spec/vta/app-state/list/1.0#response";
647
+ readonly isBearer: false;
648
+ readonly isProofRequired: false;
649
+ readonly isRecipientRequired: true;
650
+ readonly payloadSchema: {
651
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
652
+ readonly $ref: "#/$defs/Response";
653
+ readonly $defs: {
654
+ readonly Response: {
655
+ readonly $anchor: "response";
656
+ readonly title: "VTA Application State List — response payload";
657
+ readonly description: "Success response to vta/app-state/list. Type https://trusttasks.org/spec/vta/app-state/list/1.0#response.";
658
+ readonly type: "object";
659
+ readonly additionalProperties: false;
660
+ readonly required: readonly ["records", "truncated"];
661
+ readonly properties: {
662
+ readonly records: {
663
+ readonly type: "array";
664
+ readonly items: {
665
+ readonly $ref: "#/$defs/AppStateRecord";
666
+ };
667
+ readonly description: "Matching records in ascending key order in snapshot mode, and ascending version order in change-feed mode — the latter so that a consumer applying them in order reaches the same state as the maintainer. May be empty.";
668
+ };
669
+ readonly truncated: {
670
+ readonly type: "boolean";
671
+ readonly description: "True when more matching records exist beyond this page.";
672
+ };
673
+ readonly cursor: {
674
+ readonly type: "string";
675
+ readonly description: "Opaque continuation token for the next page. Present only when `truncated` is true.";
676
+ };
677
+ readonly highWatermark: {
678
+ readonly $ref: "#/$defs/Version";
679
+ readonly description: "The namespace's current counter value. Present whenever `namespace` was supplied. This is what a consumer stores as its next `sinceVersion` — NOT the maximum version among `records`, which is wrong whenever a `prefix` filtered a later change out, and undefined when the page is empty. A paginating consumer MUST NOT advance its stored watermark until it has drained the final page, because the pages of one feed share this value and adopting it early would skip the records still to come.";
680
+ };
681
+ readonly tombstoneRetentionSeconds: {
682
+ readonly type: "integer";
683
+ readonly minimum: 0;
684
+ readonly description: "How long this maintainer retains tombstones before reaping them. Advisory, and present at the maintainer's discretion, so a consumer can schedule its syncs to stay inside the window rather than discovering it has fallen out of it via vta/app-state/list:watermarkTooOld.";
685
+ };
686
+ readonly ext: {
687
+ readonly $ref: "#/$defs/Ext";
688
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
689
+ };
690
+ };
691
+ };
692
+ readonly Ext: {
693
+ readonly title: "Ext";
694
+ 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.";
695
+ readonly type: "object";
696
+ readonly minProperties: 1;
697
+ readonly additionalProperties: true;
698
+ readonly propertyNames: {
699
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
700
+ };
701
+ };
702
+ readonly Version: {
703
+ readonly title: "Version";
704
+ readonly description: "A value of the namespace's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.";
705
+ readonly type: "integer";
706
+ readonly minimum: 1;
707
+ };
708
+ readonly AppStateRecord: {
709
+ readonly title: "AppStateRecord";
710
+ readonly description: "A record as the maintainer holds it. `value` is absent in three distinct situations and a consumer MUST NOT conflate them: the record is a tombstone (`deleted` is true); the caller asked for a metadata-only view (`list` without `includeValues`); or the value genuinely is the JSON literal `null`, in which case `value` is PRESENT and null. This is why `deleted` is required rather than defaulted — a consumer that has to infer deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.";
711
+ readonly type: "object";
712
+ readonly additionalProperties: false;
713
+ readonly required: readonly ["contextId", "namespace", "key", "version", "deleted", "updatedAt"];
714
+ readonly properties: {
715
+ readonly contextId: {
716
+ readonly type: "string";
717
+ readonly minLength: 1;
718
+ readonly description: "The VTA context the record is scoped to; the isolation boundary.";
719
+ };
720
+ readonly namespace: {
721
+ readonly $ref: "#/$defs/Namespace";
722
+ };
723
+ readonly key: {
724
+ readonly $ref: "#/$defs/Key";
725
+ };
726
+ readonly version: {
727
+ readonly $ref: "#/$defs/Version";
728
+ readonly description: "The namespace counter value this record's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between.";
729
+ };
730
+ readonly value: {
731
+ readonly description: "The stored JSON, in whatever shape the owning application chose. Any JSON value, including `null`. The maintainer neither validates nor interprets it. Absent when this is a tombstone or a metadata-only view — see this definition's description for why that is not the same as a null value.";
732
+ };
733
+ readonly valueBytes: {
734
+ readonly type: "integer";
735
+ readonly minimum: 0;
736
+ readonly description: "Size of the stored value in bytes, measured as the maintainer measures it for the per-record cap (see `vta/app-state/put`). Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone.";
737
+ };
738
+ readonly deleted: {
739
+ readonly type: "boolean";
740
+ readonly description: "True when this is a tombstone: the record was deleted, and this entry exists so that a consumer syncing incrementally learns of the deletion. Tombstones are reaped after the maintainer's retention window; see `vta/app-state/list`.";
741
+ };
742
+ readonly createdAt: {
743
+ readonly type: "string";
744
+ readonly format: "date-time";
745
+ readonly description: "When the record was first created at this address. MAY be absent on a tombstone whose body has been discarded.";
746
+ };
747
+ readonly updatedAt: {
748
+ readonly type: "string";
749
+ readonly format: "date-time";
750
+ readonly description: "When the write that produced this `version` was applied. For a tombstone, when the delete was applied.";
751
+ };
752
+ readonly deletedAt: {
753
+ readonly type: "string";
754
+ readonly format: "date-time";
755
+ readonly description: "When the record was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten.";
756
+ };
757
+ };
758
+ };
759
+ readonly Key: {
760
+ readonly title: "Key";
761
+ readonly description: "Application-chosen identifier for a record within a namespace. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `list` is a byte-prefix comparison over the UTF-8 encoding. Applications SHOULD use `/`-delimited hierarchical keys (`community/acme`, `contact/z6Mk…`) so that `prefix` can address a record family, but the delimiter is a convention between an application and itself — the maintainer attaches no meaning to it.";
762
+ readonly type: "string";
763
+ readonly minLength: 1;
764
+ readonly maxLength: 512;
765
+ readonly pattern: "^[^\\u0000]+$";
766
+ };
767
+ readonly Namespace: {
768
+ readonly title: "Namespace";
769
+ readonly description: "Scopes one application's records within a context, so several tools can share a context without colliding — `openvtc`, `cnm`, an agent runtime. The maintainer MUST NOT interpret the value; it is an opaque partition name. Namespaces are first-come and unreserved, so an application SHOULD pick a stable, specific one: a future per-namespace ACL would grant on this exact string, which makes renaming a namespace a migration rather than an edit.";
770
+ readonly type: "string";
771
+ readonly minLength: 1;
772
+ readonly maxLength: 64;
773
+ readonly pattern: "^[a-z][a-z0-9]*(-[a-z0-9]+)*$";
774
+ };
775
+ };
776
+ };
777
+ };
778
+ //# sourceMappingURL=payload.d.ts.map