@openvtc/trust-tasks 0.28.23 → 0.28.24
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.
- package/CHANGELOG.md +62 -0
- package/dist/_shared/components.d.ts +520 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +45 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/mux/_shared/0.1/mux.d.ts +16 -0
- package/dist/messaging/mux/_shared/0.1/mux.d.ts.map +1 -0
- package/dist/messaging/mux/_shared/0.1/mux.js +6 -0
- package/dist/messaging/mux/_shared/0.1/mux.js.map +1 -0
- package/dist/messaging/mux/attach/0.1/payload.d.ts +996 -0
- package/dist/messaging/mux/attach/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/attach/0.1/payload.js +594 -0
- package/dist/messaging/mux/attach/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/detach/0.1/payload.d.ts +398 -0
- package/dist/messaging/mux/detach/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/detach/0.1/payload.js +215 -0
- package/dist/messaging/mux/detach/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/event/0.1/payload.d.ts +513 -0
- package/dist/messaging/mux/event/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/event/0.1/payload.js +260 -0
- package/dist/messaging/mux/event/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/grant/0.1/payload.d.ts +1008 -0
- package/dist/messaging/mux/grant/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/grant/0.1/payload.js +606 -0
- package/dist/messaging/mux/grant/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/list/0.1/payload.d.ts +1241 -0
- package/dist/messaging/mux/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/list/0.1/payload.js +715 -0
- package/dist/messaging/mux/list/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/notice/0.1/payload.d.ts +489 -0
- package/dist/messaging/mux/notice/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/notice/0.1/payload.js +249 -0
- package/dist/messaging/mux/notice/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/revoke/0.1/payload.d.ts +585 -0
- package/dist/messaging/mux/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/revoke/0.1/payload.js +311 -0
- package/dist/messaging/mux/revoke/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/revoke-all/0.1/payload.d.ts +682 -0
- package/dist/messaging/mux/revoke-all/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/revoke-all/0.1/payload.js +397 -0
- package/dist/messaging/mux/revoke-all/0.1/payload.js.map +1 -0
- package/dist/messaging/mux/update/0.1/payload.d.ts +995 -0
- package/dist/messaging/mux/update/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/mux/update/0.1/payload.js +586 -0
- package/dist/messaging/mux/update/0.1/payload.js.map +1 -0
- package/dist/vta/_shared/0.1/memory-record.d.ts +22 -0
- package/dist/vta/_shared/0.1/memory-record.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/memory-record.js +6 -0
- package/dist/vta/_shared/0.1/memory-record.js.map +1 -0
- package/dist/vta/memory/delete/0.1/payload.d.ts +13 -2
- package/dist/vta/memory/delete/0.1/payload.d.ts.map +1 -1
- package/dist/vta/memory/delete/0.1/payload.js +1 -1
- package/dist/vta/memory/delete/0.1/payload.js.map +1 -1
- package/dist/vta/memory/delete/0.2/payload.d.ts +415 -0
- package/dist/vta/memory/delete/0.2/payload.d.ts.map +1 -0
- package/dist/vta/memory/delete/0.2/payload.js +224 -0
- package/dist/vta/memory/delete/0.2/payload.js.map +1 -0
- package/dist/vta/memory/get/0.1/payload.d.ts +646 -0
- package/dist/vta/memory/get/0.1/payload.d.ts.map +1 -0
- package/dist/vta/memory/get/0.1/payload.js +349 -0
- package/dist/vta/memory/get/0.1/payload.js.map +1 -0
- package/dist/vta/memory/list/0.1/payload.d.ts +13 -2
- package/dist/vta/memory/list/0.1/payload.d.ts.map +1 -1
- package/dist/vta/memory/list/0.1/payload.js +1 -1
- package/dist/vta/memory/list/0.1/payload.js.map +1 -1
- package/dist/vta/memory/list/0.2/payload.d.ts +693 -0
- package/dist/vta/memory/list/0.2/payload.d.ts.map +1 -0
- package/dist/vta/memory/list/0.2/payload.js +363 -0
- package/dist/vta/memory/list/0.2/payload.js.map +1 -0
- package/dist/vta/memory/put/0.1/payload.d.ts +13 -2
- package/dist/vta/memory/put/0.1/payload.d.ts.map +1 -1
- package/dist/vta/memory/put/0.1/payload.js +1 -1
- package/dist/vta/memory/put/0.1/payload.js.map +1 -1
- package/dist/vta/memory/put/0.2/payload.d.ts +490 -0
- package/dist/vta/memory/put/0.2/payload.d.ts.map +1 -0
- package/dist/vta/memory/put/0.2/payload.js +264 -0
- package/dist/vta/memory/put/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +581 -0
- package/src/index.ts +45 -0
- package/src/messaging/mux/_shared/0.1/mux.ts +17 -0
- package/src/messaging/mux/attach/0.1/payload.ts +682 -0
- package/src/messaging/mux/detach/0.1/payload.ts +278 -0
- package/src/messaging/mux/event/0.1/payload.ts +371 -0
- package/src/messaging/mux/grant/0.1/payload.ts +710 -0
- package/src/messaging/mux/list/0.1/payload.ts +793 -0
- package/src/messaging/mux/notice/0.1/payload.ts +362 -0
- package/src/messaging/mux/revoke/0.1/payload.ts +389 -0
- package/src/messaging/mux/revoke-all/0.1/payload.ts +452 -0
- package/src/messaging/mux/update/0.1/payload.ts +644 -0
- package/src/vta/_shared/0.1/memory-record.ts +23 -0
- package/src/vta/memory/delete/0.1/payload.ts +14 -3
- package/src/vta/memory/delete/0.2/payload.ts +288 -0
- package/src/vta/memory/get/0.1/payload.ts +414 -0
- package/src/vta/memory/list/0.1/payload.ts +14 -3
- package/src/vta/memory/list/0.2/payload.ts +445 -0
- package/src/vta/memory/put/0.1/payload.ts +14 -3
- package/src/vta/memory/put/0.2/payload.ts +333 -0
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/memory/get/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext, MemoryKey, MemoryRecord, MemoryValue, MemoryVersion } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Recall up to 256 named memory items from one context in a single round trip. The read an agent makes when it knows what it needs, and the one whose audit record says exactly which items it saw.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTAMemoryGetPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The VTA context the items are scoped to; the isolation boundary.
|
|
12
|
+
*/
|
|
13
|
+
contextId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The keys to recall. Duplicates are refused rather than deduplicated, because a caller that sent one did not mean to and would otherwise never find out.
|
|
16
|
+
*
|
|
17
|
+
* @minItems 1
|
|
18
|
+
* @maxItems 256
|
|
19
|
+
*/
|
|
20
|
+
keys: [MemoryKey, ...MemoryKey[]];
|
|
21
|
+
/**
|
|
22
|
+
* Defaults to false. When true, a key holding a tombstone yields an item with `deleted: true` rather than appearing in `missing`.
|
|
23
|
+
*/
|
|
24
|
+
includeDeleted?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
27
|
+
*/
|
|
28
|
+
ext?: Ext;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Success response to vta/memory/get. Type https://trusttasks.org/spec/vta/memory/get/0.1#response. Every requested key appears in exactly one of `items`, `missing` or `deferred`, so a caller can account for all of them without comparing sets itself.
|
|
32
|
+
*/
|
|
33
|
+
export interface VTAMemoryGetResponsePayload {
|
|
34
|
+
/**
|
|
35
|
+
* The items found, each with its `value` (a tombstone has none), in the order the keys were requested. May be empty.
|
|
36
|
+
*/
|
|
37
|
+
items: MemoryRecord[];
|
|
38
|
+
/**
|
|
39
|
+
* Requested keys holding no item — and, unless `includeDeleted` was set, keys holding only a tombstone. Reported rather than silently omitted.
|
|
40
|
+
*/
|
|
41
|
+
missing: MemoryKey[];
|
|
42
|
+
/**
|
|
43
|
+
* Requested keys the maintainer did not evaluate because the response had reached its size budget. The caller re-requests exactly these. A deferred key was not read, and a maintainer MUST NOT record it as read.
|
|
44
|
+
*/
|
|
45
|
+
deferred?: MemoryKey[];
|
|
46
|
+
/**
|
|
47
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
48
|
+
*/
|
|
49
|
+
ext?: Ext;
|
|
50
|
+
}
|
|
51
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
52
|
+
export type { Ext, MemoryKey, MemoryRecord, MemoryValue, MemoryVersion };
|
|
53
|
+
/** Trust Task type URI. */
|
|
54
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/memory/get/0.1";
|
|
55
|
+
/**
|
|
56
|
+
* The earlier version of this specification that this one declares it
|
|
57
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
58
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
59
|
+
* `extendsChain` / `readForSpec`.
|
|
60
|
+
*/
|
|
61
|
+
export declare const EXTENDS: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
64
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
65
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
66
|
+
* Versions").
|
|
67
|
+
*/
|
|
68
|
+
export declare const DEPRECATION: string | null;
|
|
69
|
+
/** Stable alias for this specification's request payload shape. */
|
|
70
|
+
export type Payload = VTAMemoryGetPayload;
|
|
71
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
72
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/memory/get/0.1#response";
|
|
73
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
74
|
+
export type Response = VTAMemoryGetResponsePayload;
|
|
75
|
+
/**
|
|
76
|
+
* This specification's payload schema, as a value.
|
|
77
|
+
*
|
|
78
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
79
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
80
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
81
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
82
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
83
|
+
*/
|
|
84
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
85
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
86
|
+
readonly $id: "https://trusttasks.org/spec/vta/memory/get/0.1";
|
|
87
|
+
readonly title: "VTA Memory Get — payload";
|
|
88
|
+
readonly description: "Recall up to 256 named memory items from one context in a single round trip. The read an agent makes when it knows what it needs, and the one whose audit record says exactly which items it saw.";
|
|
89
|
+
readonly type: "object";
|
|
90
|
+
readonly additionalProperties: false;
|
|
91
|
+
readonly required: readonly ["contextId", "keys"];
|
|
92
|
+
readonly properties: {
|
|
93
|
+
readonly contextId: {
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
readonly minLength: 1;
|
|
96
|
+
readonly description: "The VTA context the items are scoped to; the isolation boundary.";
|
|
97
|
+
};
|
|
98
|
+
readonly keys: {
|
|
99
|
+
readonly type: "array";
|
|
100
|
+
readonly minItems: 1;
|
|
101
|
+
readonly maxItems: 256;
|
|
102
|
+
readonly uniqueItems: true;
|
|
103
|
+
readonly items: {
|
|
104
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
105
|
+
};
|
|
106
|
+
readonly description: "The keys to recall. Duplicates are refused rather than deduplicated, because a caller that sent one did not mean to and would otherwise never find out.";
|
|
107
|
+
};
|
|
108
|
+
readonly includeDeleted: {
|
|
109
|
+
readonly type: "boolean";
|
|
110
|
+
readonly description: "Defaults to false. When true, a key holding a tombstone yields an item with `deleted: true` rather than appearing in `missing`.";
|
|
111
|
+
};
|
|
112
|
+
readonly ext: {
|
|
113
|
+
readonly $ref: "#/$defs/Ext";
|
|
114
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly $defs: {
|
|
118
|
+
readonly Response: {
|
|
119
|
+
readonly $anchor: "response";
|
|
120
|
+
readonly title: "VTA Memory Get — response payload";
|
|
121
|
+
readonly description: "Success response to vta/memory/get. Type https://trusttasks.org/spec/vta/memory/get/0.1#response. Every requested key appears in exactly one of `items`, `missing` or `deferred`, so a caller can account for all of them without comparing sets itself.";
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly additionalProperties: false;
|
|
124
|
+
readonly required: readonly ["items", "missing"];
|
|
125
|
+
readonly properties: {
|
|
126
|
+
readonly items: {
|
|
127
|
+
readonly type: "array";
|
|
128
|
+
readonly items: {
|
|
129
|
+
readonly $ref: "#/$defs/MemoryRecord";
|
|
130
|
+
};
|
|
131
|
+
readonly description: "The items found, each with its `value` (a tombstone has none), in the order the keys were requested. May be empty.";
|
|
132
|
+
};
|
|
133
|
+
readonly missing: {
|
|
134
|
+
readonly type: "array";
|
|
135
|
+
readonly items: {
|
|
136
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
137
|
+
};
|
|
138
|
+
readonly description: "Requested keys holding no item — and, unless `includeDeleted` was set, keys holding only a tombstone. Reported rather than silently omitted.";
|
|
139
|
+
};
|
|
140
|
+
readonly deferred: {
|
|
141
|
+
readonly type: "array";
|
|
142
|
+
readonly items: {
|
|
143
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
144
|
+
};
|
|
145
|
+
readonly description: "Requested keys the maintainer did not evaluate because the response had reached its size budget. The caller re-requests exactly these. A deferred key was not read, and a maintainer MUST NOT record it as read.";
|
|
146
|
+
};
|
|
147
|
+
readonly ext: {
|
|
148
|
+
readonly $ref: "#/$defs/Ext";
|
|
149
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
readonly Ext: {
|
|
154
|
+
readonly title: "Ext";
|
|
155
|
+
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.";
|
|
156
|
+
readonly type: "object";
|
|
157
|
+
readonly minProperties: 1;
|
|
158
|
+
readonly additionalProperties: true;
|
|
159
|
+
readonly propertyNames: {
|
|
160
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
readonly MemoryKey: {
|
|
164
|
+
readonly title: "MemoryKey";
|
|
165
|
+
readonly description: "Agent-chosen identifier for an item within a context. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `vta/memory/list` is a byte-prefix comparison over the UTF-8 encoding. Agents SHOULD use `/`-delimited hierarchical keys (`contact/billing`, `preference/timezone`) so that `prefix` can address a family of items, but the delimiter is a convention between an agent and itself. A key is content as well as an address: a key naming a person, a condition or a dispute discloses something to anyone who can list the context, even without its value.";
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly minLength: 1;
|
|
168
|
+
readonly maxLength: 512;
|
|
169
|
+
readonly pattern: "^[^\\u0000]+$";
|
|
170
|
+
};
|
|
171
|
+
readonly MemoryRecord: {
|
|
172
|
+
readonly title: "MemoryRecord";
|
|
173
|
+
readonly description: "A memory item as the maintainer holds it. `value` is absent in two distinct situations and a consumer MUST NOT conflate them: the item is a tombstone (`deleted` is true), or the caller asked for a metadata-only view (`vta/memory/list` without `includeValues`). This is why `deleted` is required rather than defaulted — a consumer that infers deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.";
|
|
174
|
+
readonly type: "object";
|
|
175
|
+
readonly additionalProperties: false;
|
|
176
|
+
readonly required: readonly ["contextId", "key", "version", "deleted", "updatedAt"];
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly contextId: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly minLength: 1;
|
|
181
|
+
readonly description: "The VTA context the item is scoped to; the isolation boundary.";
|
|
182
|
+
};
|
|
183
|
+
readonly key: {
|
|
184
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
185
|
+
};
|
|
186
|
+
readonly version: {
|
|
187
|
+
readonly $ref: "#/$defs/MemoryVersion";
|
|
188
|
+
readonly description: "The context counter value this item's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between.";
|
|
189
|
+
};
|
|
190
|
+
readonly value: {
|
|
191
|
+
readonly $ref: "#/$defs/MemoryValue";
|
|
192
|
+
readonly description: "The remembered text. Absent when this is a tombstone or a metadata-only view.";
|
|
193
|
+
};
|
|
194
|
+
readonly valueBytes: {
|
|
195
|
+
readonly type: "integer";
|
|
196
|
+
readonly minimum: 0;
|
|
197
|
+
readonly description: "Size of the stored value in bytes over its UTF-8 encoding, as the maintainer measures it for the per-item cap. Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone.";
|
|
198
|
+
};
|
|
199
|
+
readonly deleted: {
|
|
200
|
+
readonly type: "boolean";
|
|
201
|
+
readonly description: "True when this is a tombstone: the item 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/memory/list`.";
|
|
202
|
+
};
|
|
203
|
+
readonly createdAt: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly format: "date-time";
|
|
206
|
+
readonly description: "When the item was first created at this key. MAY be absent on a tombstone whose body has been discarded, and on an item written before the maintainer kept versions.";
|
|
207
|
+
};
|
|
208
|
+
readonly updatedAt: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
readonly format: "date-time";
|
|
211
|
+
readonly description: "When the write that produced this `version` was applied. For a tombstone, when the delete was applied.";
|
|
212
|
+
};
|
|
213
|
+
readonly deletedAt: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly format: "date-time";
|
|
216
|
+
readonly description: "When the item was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten.";
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
readonly MemoryValue: {
|
|
221
|
+
readonly title: "MemoryValue";
|
|
222
|
+
readonly description: "The remembered text: a fact, a summary, a preference. Opaque to the maintainer, which stores it as given and never interprets, rewrites or summarises it. The maintainer enforces a documented per-item cap on its size (see `vta/memory/put`).";
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
};
|
|
225
|
+
readonly MemoryVersion: {
|
|
226
|
+
readonly title: "MemoryVersion";
|
|
227
|
+
readonly description: "A value of the context's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.";
|
|
228
|
+
readonly type: "integer";
|
|
229
|
+
readonly minimum: 1;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
234
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
235
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
236
|
+
readonly $ref: "#/$defs/Response";
|
|
237
|
+
readonly $defs: {
|
|
238
|
+
readonly Response: {
|
|
239
|
+
readonly $anchor: "response";
|
|
240
|
+
readonly title: "VTA Memory Get — response payload";
|
|
241
|
+
readonly description: "Success response to vta/memory/get. Type https://trusttasks.org/spec/vta/memory/get/0.1#response. Every requested key appears in exactly one of `items`, `missing` or `deferred`, so a caller can account for all of them without comparing sets itself.";
|
|
242
|
+
readonly type: "object";
|
|
243
|
+
readonly additionalProperties: false;
|
|
244
|
+
readonly required: readonly ["items", "missing"];
|
|
245
|
+
readonly properties: {
|
|
246
|
+
readonly items: {
|
|
247
|
+
readonly type: "array";
|
|
248
|
+
readonly items: {
|
|
249
|
+
readonly $ref: "#/$defs/MemoryRecord";
|
|
250
|
+
};
|
|
251
|
+
readonly description: "The items found, each with its `value` (a tombstone has none), in the order the keys were requested. May be empty.";
|
|
252
|
+
};
|
|
253
|
+
readonly missing: {
|
|
254
|
+
readonly type: "array";
|
|
255
|
+
readonly items: {
|
|
256
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
257
|
+
};
|
|
258
|
+
readonly description: "Requested keys holding no item — and, unless `includeDeleted` was set, keys holding only a tombstone. Reported rather than silently omitted.";
|
|
259
|
+
};
|
|
260
|
+
readonly deferred: {
|
|
261
|
+
readonly type: "array";
|
|
262
|
+
readonly items: {
|
|
263
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
264
|
+
};
|
|
265
|
+
readonly description: "Requested keys the maintainer did not evaluate because the response had reached its size budget. The caller re-requests exactly these. A deferred key was not read, and a maintainer MUST NOT record it as read.";
|
|
266
|
+
};
|
|
267
|
+
readonly ext: {
|
|
268
|
+
readonly $ref: "#/$defs/Ext";
|
|
269
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly Ext: {
|
|
274
|
+
readonly title: "Ext";
|
|
275
|
+
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.";
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly minProperties: 1;
|
|
278
|
+
readonly additionalProperties: true;
|
|
279
|
+
readonly propertyNames: {
|
|
280
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly MemoryKey: {
|
|
284
|
+
readonly title: "MemoryKey";
|
|
285
|
+
readonly description: "Agent-chosen identifier for an item within a context. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `vta/memory/list` is a byte-prefix comparison over the UTF-8 encoding. Agents SHOULD use `/`-delimited hierarchical keys (`contact/billing`, `preference/timezone`) so that `prefix` can address a family of items, but the delimiter is a convention between an agent and itself. A key is content as well as an address: a key naming a person, a condition or a dispute discloses something to anyone who can list the context, even without its value.";
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
readonly minLength: 1;
|
|
288
|
+
readonly maxLength: 512;
|
|
289
|
+
readonly pattern: "^[^\\u0000]+$";
|
|
290
|
+
};
|
|
291
|
+
readonly MemoryRecord: {
|
|
292
|
+
readonly title: "MemoryRecord";
|
|
293
|
+
readonly description: "A memory item as the maintainer holds it. `value` is absent in two distinct situations and a consumer MUST NOT conflate them: the item is a tombstone (`deleted` is true), or the caller asked for a metadata-only view (`vta/memory/list` without `includeValues`). This is why `deleted` is required rather than defaulted — a consumer that infers deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.";
|
|
294
|
+
readonly type: "object";
|
|
295
|
+
readonly additionalProperties: false;
|
|
296
|
+
readonly required: readonly ["contextId", "key", "version", "deleted", "updatedAt"];
|
|
297
|
+
readonly properties: {
|
|
298
|
+
readonly contextId: {
|
|
299
|
+
readonly type: "string";
|
|
300
|
+
readonly minLength: 1;
|
|
301
|
+
readonly description: "The VTA context the item is scoped to; the isolation boundary.";
|
|
302
|
+
};
|
|
303
|
+
readonly key: {
|
|
304
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
305
|
+
};
|
|
306
|
+
readonly version: {
|
|
307
|
+
readonly $ref: "#/$defs/MemoryVersion";
|
|
308
|
+
readonly description: "The context counter value this item's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between.";
|
|
309
|
+
};
|
|
310
|
+
readonly value: {
|
|
311
|
+
readonly $ref: "#/$defs/MemoryValue";
|
|
312
|
+
readonly description: "The remembered text. Absent when this is a tombstone or a metadata-only view.";
|
|
313
|
+
};
|
|
314
|
+
readonly valueBytes: {
|
|
315
|
+
readonly type: "integer";
|
|
316
|
+
readonly minimum: 0;
|
|
317
|
+
readonly description: "Size of the stored value in bytes over its UTF-8 encoding, as the maintainer measures it for the per-item cap. Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone.";
|
|
318
|
+
};
|
|
319
|
+
readonly deleted: {
|
|
320
|
+
readonly type: "boolean";
|
|
321
|
+
readonly description: "True when this is a tombstone: the item 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/memory/list`.";
|
|
322
|
+
};
|
|
323
|
+
readonly createdAt: {
|
|
324
|
+
readonly type: "string";
|
|
325
|
+
readonly format: "date-time";
|
|
326
|
+
readonly description: "When the item was first created at this key. MAY be absent on a tombstone whose body has been discarded, and on an item written before the maintainer kept versions.";
|
|
327
|
+
};
|
|
328
|
+
readonly updatedAt: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly format: "date-time";
|
|
331
|
+
readonly description: "When the write that produced this `version` was applied. For a tombstone, when the delete was applied.";
|
|
332
|
+
};
|
|
333
|
+
readonly deletedAt: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly format: "date-time";
|
|
336
|
+
readonly description: "When the item was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten.";
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
readonly MemoryValue: {
|
|
341
|
+
readonly title: "MemoryValue";
|
|
342
|
+
readonly description: "The remembered text: a fact, a summary, a preference. Opaque to the maintainer, which stores it as given and never interprets, rewrites or summarises it. The maintainer enforces a documented per-item cap on its size (see `vta/memory/put`).";
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
};
|
|
345
|
+
readonly MemoryVersion: {
|
|
346
|
+
readonly title: "MemoryVersion";
|
|
347
|
+
readonly description: "A value of the context's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.";
|
|
348
|
+
readonly type: "integer";
|
|
349
|
+
readonly minimum: 1;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
355
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
356
|
+
* per-specification and cannot be derived from the document alone, and
|
|
357
|
+
* item 2 needs the schema this carries.
|
|
358
|
+
*/
|
|
359
|
+
export declare const SPEC: {
|
|
360
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/memory/get/0.1";
|
|
361
|
+
readonly isBearer: false;
|
|
362
|
+
readonly isProofRequired: false;
|
|
363
|
+
readonly isRecipientRequired: true;
|
|
364
|
+
readonly isIssuedAtRequired: true;
|
|
365
|
+
readonly payloadSchema: {
|
|
366
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
367
|
+
readonly $id: "https://trusttasks.org/spec/vta/memory/get/0.1";
|
|
368
|
+
readonly title: "VTA Memory Get — payload";
|
|
369
|
+
readonly description: "Recall up to 256 named memory items from one context in a single round trip. The read an agent makes when it knows what it needs, and the one whose audit record says exactly which items it saw.";
|
|
370
|
+
readonly type: "object";
|
|
371
|
+
readonly additionalProperties: false;
|
|
372
|
+
readonly required: readonly ["contextId", "keys"];
|
|
373
|
+
readonly properties: {
|
|
374
|
+
readonly contextId: {
|
|
375
|
+
readonly type: "string";
|
|
376
|
+
readonly minLength: 1;
|
|
377
|
+
readonly description: "The VTA context the items are scoped to; the isolation boundary.";
|
|
378
|
+
};
|
|
379
|
+
readonly keys: {
|
|
380
|
+
readonly type: "array";
|
|
381
|
+
readonly minItems: 1;
|
|
382
|
+
readonly maxItems: 256;
|
|
383
|
+
readonly uniqueItems: true;
|
|
384
|
+
readonly items: {
|
|
385
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
386
|
+
};
|
|
387
|
+
readonly description: "The keys to recall. Duplicates are refused rather than deduplicated, because a caller that sent one did not mean to and would otherwise never find out.";
|
|
388
|
+
};
|
|
389
|
+
readonly includeDeleted: {
|
|
390
|
+
readonly type: "boolean";
|
|
391
|
+
readonly description: "Defaults to false. When true, a key holding a tombstone yields an item with `deleted: true` rather than appearing in `missing`.";
|
|
392
|
+
};
|
|
393
|
+
readonly ext: {
|
|
394
|
+
readonly $ref: "#/$defs/Ext";
|
|
395
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
readonly $defs: {
|
|
399
|
+
readonly Response: {
|
|
400
|
+
readonly $anchor: "response";
|
|
401
|
+
readonly title: "VTA Memory Get — response payload";
|
|
402
|
+
readonly description: "Success response to vta/memory/get. Type https://trusttasks.org/spec/vta/memory/get/0.1#response. Every requested key appears in exactly one of `items`, `missing` or `deferred`, so a caller can account for all of them without comparing sets itself.";
|
|
403
|
+
readonly type: "object";
|
|
404
|
+
readonly additionalProperties: false;
|
|
405
|
+
readonly required: readonly ["items", "missing"];
|
|
406
|
+
readonly properties: {
|
|
407
|
+
readonly items: {
|
|
408
|
+
readonly type: "array";
|
|
409
|
+
readonly items: {
|
|
410
|
+
readonly $ref: "#/$defs/MemoryRecord";
|
|
411
|
+
};
|
|
412
|
+
readonly description: "The items found, each with its `value` (a tombstone has none), in the order the keys were requested. May be empty.";
|
|
413
|
+
};
|
|
414
|
+
readonly missing: {
|
|
415
|
+
readonly type: "array";
|
|
416
|
+
readonly items: {
|
|
417
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
418
|
+
};
|
|
419
|
+
readonly description: "Requested keys holding no item — and, unless `includeDeleted` was set, keys holding only a tombstone. Reported rather than silently omitted.";
|
|
420
|
+
};
|
|
421
|
+
readonly deferred: {
|
|
422
|
+
readonly type: "array";
|
|
423
|
+
readonly items: {
|
|
424
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
425
|
+
};
|
|
426
|
+
readonly description: "Requested keys the maintainer did not evaluate because the response had reached its size budget. The caller re-requests exactly these. A deferred key was not read, and a maintainer MUST NOT record it as read.";
|
|
427
|
+
};
|
|
428
|
+
readonly ext: {
|
|
429
|
+
readonly $ref: "#/$defs/Ext";
|
|
430
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
readonly Ext: {
|
|
435
|
+
readonly title: "Ext";
|
|
436
|
+
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.";
|
|
437
|
+
readonly type: "object";
|
|
438
|
+
readonly minProperties: 1;
|
|
439
|
+
readonly additionalProperties: true;
|
|
440
|
+
readonly propertyNames: {
|
|
441
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
readonly MemoryKey: {
|
|
445
|
+
readonly title: "MemoryKey";
|
|
446
|
+
readonly description: "Agent-chosen identifier for an item within a context. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `vta/memory/list` is a byte-prefix comparison over the UTF-8 encoding. Agents SHOULD use `/`-delimited hierarchical keys (`contact/billing`, `preference/timezone`) so that `prefix` can address a family of items, but the delimiter is a convention between an agent and itself. A key is content as well as an address: a key naming a person, a condition or a dispute discloses something to anyone who can list the context, even without its value.";
|
|
447
|
+
readonly type: "string";
|
|
448
|
+
readonly minLength: 1;
|
|
449
|
+
readonly maxLength: 512;
|
|
450
|
+
readonly pattern: "^[^\\u0000]+$";
|
|
451
|
+
};
|
|
452
|
+
readonly MemoryRecord: {
|
|
453
|
+
readonly title: "MemoryRecord";
|
|
454
|
+
readonly description: "A memory item as the maintainer holds it. `value` is absent in two distinct situations and a consumer MUST NOT conflate them: the item is a tombstone (`deleted` is true), or the caller asked for a metadata-only view (`vta/memory/list` without `includeValues`). This is why `deleted` is required rather than defaulted — a consumer that infers deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.";
|
|
455
|
+
readonly type: "object";
|
|
456
|
+
readonly additionalProperties: false;
|
|
457
|
+
readonly required: readonly ["contextId", "key", "version", "deleted", "updatedAt"];
|
|
458
|
+
readonly properties: {
|
|
459
|
+
readonly contextId: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
readonly minLength: 1;
|
|
462
|
+
readonly description: "The VTA context the item is scoped to; the isolation boundary.";
|
|
463
|
+
};
|
|
464
|
+
readonly key: {
|
|
465
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
466
|
+
};
|
|
467
|
+
readonly version: {
|
|
468
|
+
readonly $ref: "#/$defs/MemoryVersion";
|
|
469
|
+
readonly description: "The context counter value this item's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between.";
|
|
470
|
+
};
|
|
471
|
+
readonly value: {
|
|
472
|
+
readonly $ref: "#/$defs/MemoryValue";
|
|
473
|
+
readonly description: "The remembered text. Absent when this is a tombstone or a metadata-only view.";
|
|
474
|
+
};
|
|
475
|
+
readonly valueBytes: {
|
|
476
|
+
readonly type: "integer";
|
|
477
|
+
readonly minimum: 0;
|
|
478
|
+
readonly description: "Size of the stored value in bytes over its UTF-8 encoding, as the maintainer measures it for the per-item cap. Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone.";
|
|
479
|
+
};
|
|
480
|
+
readonly deleted: {
|
|
481
|
+
readonly type: "boolean";
|
|
482
|
+
readonly description: "True when this is a tombstone: the item 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/memory/list`.";
|
|
483
|
+
};
|
|
484
|
+
readonly createdAt: {
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
readonly format: "date-time";
|
|
487
|
+
readonly description: "When the item was first created at this key. MAY be absent on a tombstone whose body has been discarded, and on an item written before the maintainer kept versions.";
|
|
488
|
+
};
|
|
489
|
+
readonly updatedAt: {
|
|
490
|
+
readonly type: "string";
|
|
491
|
+
readonly format: "date-time";
|
|
492
|
+
readonly description: "When the write that produced this `version` was applied. For a tombstone, when the delete was applied.";
|
|
493
|
+
};
|
|
494
|
+
readonly deletedAt: {
|
|
495
|
+
readonly type: "string";
|
|
496
|
+
readonly format: "date-time";
|
|
497
|
+
readonly description: "When the item was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten.";
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
readonly MemoryValue: {
|
|
502
|
+
readonly title: "MemoryValue";
|
|
503
|
+
readonly description: "The remembered text: a fact, a summary, a preference. Opaque to the maintainer, which stores it as given and never interprets, rewrites or summarises it. The maintainer enforces a documented per-item cap on its size (see `vta/memory/put`).";
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
};
|
|
506
|
+
readonly MemoryVersion: {
|
|
507
|
+
readonly title: "MemoryVersion";
|
|
508
|
+
readonly description: "A value of the context's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.";
|
|
509
|
+
readonly type: "integer";
|
|
510
|
+
readonly minimum: 1;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
517
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
518
|
+
* parties (§7.3 item 5).
|
|
519
|
+
*/
|
|
520
|
+
export declare const RESPONSE_SPEC: {
|
|
521
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/memory/get/0.1#response";
|
|
522
|
+
readonly isBearer: false;
|
|
523
|
+
readonly isProofRequired: true;
|
|
524
|
+
readonly isRecipientRequired: true;
|
|
525
|
+
readonly isIssuedAtRequired: true;
|
|
526
|
+
readonly payloadSchema: {
|
|
527
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
528
|
+
readonly $ref: "#/$defs/Response";
|
|
529
|
+
readonly $defs: {
|
|
530
|
+
readonly Response: {
|
|
531
|
+
readonly $anchor: "response";
|
|
532
|
+
readonly title: "VTA Memory Get — response payload";
|
|
533
|
+
readonly description: "Success response to vta/memory/get. Type https://trusttasks.org/spec/vta/memory/get/0.1#response. Every requested key appears in exactly one of `items`, `missing` or `deferred`, so a caller can account for all of them without comparing sets itself.";
|
|
534
|
+
readonly type: "object";
|
|
535
|
+
readonly additionalProperties: false;
|
|
536
|
+
readonly required: readonly ["items", "missing"];
|
|
537
|
+
readonly properties: {
|
|
538
|
+
readonly items: {
|
|
539
|
+
readonly type: "array";
|
|
540
|
+
readonly items: {
|
|
541
|
+
readonly $ref: "#/$defs/MemoryRecord";
|
|
542
|
+
};
|
|
543
|
+
readonly description: "The items found, each with its `value` (a tombstone has none), in the order the keys were requested. May be empty.";
|
|
544
|
+
};
|
|
545
|
+
readonly missing: {
|
|
546
|
+
readonly type: "array";
|
|
547
|
+
readonly items: {
|
|
548
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
549
|
+
};
|
|
550
|
+
readonly description: "Requested keys holding no item — and, unless `includeDeleted` was set, keys holding only a tombstone. Reported rather than silently omitted.";
|
|
551
|
+
};
|
|
552
|
+
readonly deferred: {
|
|
553
|
+
readonly type: "array";
|
|
554
|
+
readonly items: {
|
|
555
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
556
|
+
};
|
|
557
|
+
readonly description: "Requested keys the maintainer did not evaluate because the response had reached its size budget. The caller re-requests exactly these. A deferred key was not read, and a maintainer MUST NOT record it as read.";
|
|
558
|
+
};
|
|
559
|
+
readonly ext: {
|
|
560
|
+
readonly $ref: "#/$defs/Ext";
|
|
561
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
readonly Ext: {
|
|
566
|
+
readonly title: "Ext";
|
|
567
|
+
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.";
|
|
568
|
+
readonly type: "object";
|
|
569
|
+
readonly minProperties: 1;
|
|
570
|
+
readonly additionalProperties: true;
|
|
571
|
+
readonly propertyNames: {
|
|
572
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
readonly MemoryKey: {
|
|
576
|
+
readonly title: "MemoryKey";
|
|
577
|
+
readonly description: "Agent-chosen identifier for an item within a context. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `vta/memory/list` is a byte-prefix comparison over the UTF-8 encoding. Agents SHOULD use `/`-delimited hierarchical keys (`contact/billing`, `preference/timezone`) so that `prefix` can address a family of items, but the delimiter is a convention between an agent and itself. A key is content as well as an address: a key naming a person, a condition or a dispute discloses something to anyone who can list the context, even without its value.";
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
readonly minLength: 1;
|
|
580
|
+
readonly maxLength: 512;
|
|
581
|
+
readonly pattern: "^[^\\u0000]+$";
|
|
582
|
+
};
|
|
583
|
+
readonly MemoryRecord: {
|
|
584
|
+
readonly title: "MemoryRecord";
|
|
585
|
+
readonly description: "A memory item as the maintainer holds it. `value` is absent in two distinct situations and a consumer MUST NOT conflate them: the item is a tombstone (`deleted` is true), or the caller asked for a metadata-only view (`vta/memory/list` without `includeValues`). This is why `deleted` is required rather than defaulted — a consumer that infers deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.";
|
|
586
|
+
readonly type: "object";
|
|
587
|
+
readonly additionalProperties: false;
|
|
588
|
+
readonly required: readonly ["contextId", "key", "version", "deleted", "updatedAt"];
|
|
589
|
+
readonly properties: {
|
|
590
|
+
readonly contextId: {
|
|
591
|
+
readonly type: "string";
|
|
592
|
+
readonly minLength: 1;
|
|
593
|
+
readonly description: "The VTA context the item is scoped to; the isolation boundary.";
|
|
594
|
+
};
|
|
595
|
+
readonly key: {
|
|
596
|
+
readonly $ref: "#/$defs/MemoryKey";
|
|
597
|
+
};
|
|
598
|
+
readonly version: {
|
|
599
|
+
readonly $ref: "#/$defs/MemoryVersion";
|
|
600
|
+
readonly description: "The context counter value this item's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between.";
|
|
601
|
+
};
|
|
602
|
+
readonly value: {
|
|
603
|
+
readonly $ref: "#/$defs/MemoryValue";
|
|
604
|
+
readonly description: "The remembered text. Absent when this is a tombstone or a metadata-only view.";
|
|
605
|
+
};
|
|
606
|
+
readonly valueBytes: {
|
|
607
|
+
readonly type: "integer";
|
|
608
|
+
readonly minimum: 0;
|
|
609
|
+
readonly description: "Size of the stored value in bytes over its UTF-8 encoding, as the maintainer measures it for the per-item cap. Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone.";
|
|
610
|
+
};
|
|
611
|
+
readonly deleted: {
|
|
612
|
+
readonly type: "boolean";
|
|
613
|
+
readonly description: "True when this is a tombstone: the item 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/memory/list`.";
|
|
614
|
+
};
|
|
615
|
+
readonly createdAt: {
|
|
616
|
+
readonly type: "string";
|
|
617
|
+
readonly format: "date-time";
|
|
618
|
+
readonly description: "When the item was first created at this key. MAY be absent on a tombstone whose body has been discarded, and on an item written before the maintainer kept versions.";
|
|
619
|
+
};
|
|
620
|
+
readonly updatedAt: {
|
|
621
|
+
readonly type: "string";
|
|
622
|
+
readonly format: "date-time";
|
|
623
|
+
readonly description: "When the write that produced this `version` was applied. For a tombstone, when the delete was applied.";
|
|
624
|
+
};
|
|
625
|
+
readonly deletedAt: {
|
|
626
|
+
readonly type: "string";
|
|
627
|
+
readonly format: "date-time";
|
|
628
|
+
readonly description: "When the item was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten.";
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
readonly MemoryValue: {
|
|
633
|
+
readonly title: "MemoryValue";
|
|
634
|
+
readonly description: "The remembered text: a fact, a summary, a preference. Opaque to the maintainer, which stores it as given and never interprets, rewrites or summarises it. The maintainer enforces a documented per-item cap on its size (see `vta/memory/put`).";
|
|
635
|
+
readonly type: "string";
|
|
636
|
+
};
|
|
637
|
+
readonly MemoryVersion: {
|
|
638
|
+
readonly title: "MemoryVersion";
|
|
639
|
+
readonly description: "A value of the context's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.";
|
|
640
|
+
readonly type: "integer";
|
|
641
|
+
readonly minimum: 1;
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/memory/get/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,IAAI,EAAE,CAAC,SAAS,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC;IACvB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;AAEzE,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,gDAAyD,CAAC;AAElF;;;;;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,mBAAmB,CAAC;AAE1C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,yDAAkE,CAAC;AAEpG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,2BAA2B,CAAC;AAEnD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgKjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+H1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|