@openvtc/trust-tasks 0.12.0 → 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.
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/_shared/0.1/app-state-record.d.ts +17 -0
- package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/app-state-record.js +6 -0
- package/dist/vta/_shared/0.1/app-state-record.js.map +1 -0
- package/dist/vta/app-state/delete/1.0/payload.d.ts +488 -0
- package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -0
- package/dist/vta/app-state/delete/1.0/payload.js +248 -0
- package/dist/vta/app-state/delete/1.0/payload.js.map +1 -0
- package/dist/vta/app-state/get/1.0/payload.d.ts +611 -0
- package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -0
- package/dist/vta/app-state/get/1.0/payload.js +306 -0
- package/dist/vta/app-state/get/1.0/payload.js.map +1 -0
- package/dist/vta/app-state/get-many/1.0/payload.d.ts +716 -0
- package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -0
- package/dist/vta/app-state/get-many/1.0/payload.js +350 -0
- package/dist/vta/app-state/get-many/1.0/payload.js.map +1 -0
- package/dist/vta/app-state/list/1.0/payload.d.ts +778 -0
- package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/app-state/list/1.0/payload.js +368 -0
- package/dist/vta/app-state/list/1.0/payload.js.map +1 -0
- package/dist/vta/app-state/put/1.0/payload.d.ts +560 -0
- package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -0
- package/dist/vta/app-state/put/1.0/payload.js +291 -0
- package/dist/vta/app-state/put/1.0/payload.js.map +1 -0
- package/dist/vta/app-state/put-many/1.0/payload.d.ts +856 -0
- package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -0
- package/dist/vta/app-state/put-many/1.0/payload.js +455 -0
- package/dist/vta/app-state/put-many/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/servers/retire-orphan/0.1/payload.d.ts +317 -0
- package/dist/vta/webvh/servers/retire-orphan/0.1/payload.d.ts.map +1 -0
- package/dist/vta/webvh/servers/retire-orphan/0.1/payload.js +170 -0
- package/dist/vta/webvh/servers/retire-orphan/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +8 -0
- package/src/vta/_shared/0.1/app-state-record.ts +17 -0
- package/src/vta/app-state/delete/1.0/payload.ts +323 -0
- package/src/vta/app-state/get/1.0/payload.ts +404 -0
- package/src/vta/app-state/get-many/1.0/payload.ts +469 -0
- package/src/vta/app-state/list/1.0/payload.ts +509 -0
- package/src/vta/app-state/put/1.0/payload.ts +382 -0
- package/src/vta/app-state/put-many/1.0/payload.ts +584 -0
- package/src/vta/webvh/servers/retire-orphan/0.1/payload.ts +223 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/webvh/servers/retire-orphan/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
export interface VTAWebVHServersRetireOrphanPayload {
|
|
6
|
+
/**
|
|
7
|
+
* The hosting server holding the orphaned slot, as the agent has it registered.
|
|
8
|
+
*/
|
|
9
|
+
serverId: string;
|
|
10
|
+
/**
|
|
11
|
+
* The slot to retire, as reported in a reconcile response's hostOnly. The slot identifier rather than the DID, because a slot reserved but never published to has no DID and is exactly as orphaned.
|
|
12
|
+
*/
|
|
13
|
+
slotId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The DID the producer believes the slot serves. When present the agent MUST refuse unless it matches, so a slotId that has been reused since the report was taken cannot retire something else. Absent for a slot that was never published to.
|
|
16
|
+
*/
|
|
17
|
+
expectedDid?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Operator rationale, recorded in the agent's audit trail. The act has no undo, so why it was done outlives the record of what was done.
|
|
20
|
+
*/
|
|
21
|
+
reason?: string;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.
|
|
26
|
+
*/
|
|
27
|
+
export interface Ext {
|
|
28
|
+
[k: string]: unknown | undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Success response to vta/webvh/servers/retire-orphan. Type https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response.
|
|
32
|
+
*/
|
|
33
|
+
export interface VTAWebVHServersRetireOrphanResponsePayload {
|
|
34
|
+
serverId: string;
|
|
35
|
+
slotId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the slot is no longer served. False is reported, not inferred: an agent that could not confirm removal with the host MUST NOT claim it.
|
|
38
|
+
*/
|
|
39
|
+
retired: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The DID the slot was serving, echoed so the record of what was retired survives the slot's disappearance. Absent where the slot was never published to.
|
|
42
|
+
*/
|
|
43
|
+
did?: string;
|
|
44
|
+
ext?: Ext;
|
|
45
|
+
}
|
|
46
|
+
/** Trust Task type URI. */
|
|
47
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1";
|
|
48
|
+
/** Stable alias for this specification's request payload shape. */
|
|
49
|
+
export type Payload = VTAWebVHServersRetireOrphanPayload;
|
|
50
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
51
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response";
|
|
52
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
53
|
+
export type Response = VTAWebVHServersRetireOrphanResponsePayload;
|
|
54
|
+
/**
|
|
55
|
+
* This specification's payload schema, as a value.
|
|
56
|
+
*
|
|
57
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
58
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
59
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
60
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
61
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
62
|
+
*/
|
|
63
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
64
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
65
|
+
readonly $id: "https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1";
|
|
66
|
+
readonly title: "VTA WebVH Servers Retire Orphan — payload";
|
|
67
|
+
readonly type: "object";
|
|
68
|
+
readonly additionalProperties: false;
|
|
69
|
+
readonly required: readonly ["serverId", "slotId"];
|
|
70
|
+
readonly properties: {
|
|
71
|
+
readonly serverId: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly minLength: 1;
|
|
74
|
+
readonly description: "The hosting server holding the orphaned slot, as the agent has it registered.";
|
|
75
|
+
};
|
|
76
|
+
readonly slotId: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly minLength: 1;
|
|
79
|
+
readonly description: "The slot to retire, as reported in a reconcile response's hostOnly. The slot identifier rather than the DID, because a slot reserved but never published to has no DID and is exactly as orphaned.";
|
|
80
|
+
};
|
|
81
|
+
readonly expectedDid: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly minLength: 1;
|
|
84
|
+
readonly description: "The DID the producer believes the slot serves. When present the agent MUST refuse unless it matches, so a slotId that has been reused since the report was taken cannot retire something else. Absent for a slot that was never published to.";
|
|
85
|
+
};
|
|
86
|
+
readonly reason: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
readonly maxLength: 1024;
|
|
89
|
+
readonly description: "Operator rationale, recorded in the agent's audit trail. The act has no undo, so why it was done outlives the record of what was done.";
|
|
90
|
+
};
|
|
91
|
+
readonly ext: {
|
|
92
|
+
readonly $ref: "#/$defs/Ext";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly $defs: {
|
|
96
|
+
readonly Response: {
|
|
97
|
+
readonly $anchor: "response";
|
|
98
|
+
readonly title: "VTA WebVH Servers Retire Orphan — response payload";
|
|
99
|
+
readonly description: "Success response to vta/webvh/servers/retire-orphan. Type https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response.";
|
|
100
|
+
readonly type: "object";
|
|
101
|
+
readonly additionalProperties: false;
|
|
102
|
+
readonly required: readonly ["serverId", "slotId", "retired"];
|
|
103
|
+
readonly properties: {
|
|
104
|
+
readonly serverId: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
};
|
|
107
|
+
readonly slotId: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
};
|
|
110
|
+
readonly retired: {
|
|
111
|
+
readonly type: "boolean";
|
|
112
|
+
readonly description: "Whether the slot is no longer served. False is reported, not inferred: an agent that could not confirm removal with the host MUST NOT claim it.";
|
|
113
|
+
};
|
|
114
|
+
readonly did: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly description: "The DID the slot was serving, echoed so the record of what was retired survives the slot's disappearance. Absent where the slot was never published to.";
|
|
117
|
+
};
|
|
118
|
+
readonly ext: {
|
|
119
|
+
readonly $ref: "#/$defs/Ext";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
readonly Ext: {
|
|
124
|
+
readonly title: "Ext";
|
|
125
|
+
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.";
|
|
126
|
+
readonly type: "object";
|
|
127
|
+
readonly minProperties: 1;
|
|
128
|
+
readonly additionalProperties: true;
|
|
129
|
+
readonly propertyNames: {
|
|
130
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
136
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
137
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
138
|
+
readonly $ref: "#/$defs/Response";
|
|
139
|
+
readonly $defs: {
|
|
140
|
+
readonly Response: {
|
|
141
|
+
readonly $anchor: "response";
|
|
142
|
+
readonly title: "VTA WebVH Servers Retire Orphan — response payload";
|
|
143
|
+
readonly description: "Success response to vta/webvh/servers/retire-orphan. Type https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response.";
|
|
144
|
+
readonly type: "object";
|
|
145
|
+
readonly additionalProperties: false;
|
|
146
|
+
readonly required: readonly ["serverId", "slotId", "retired"];
|
|
147
|
+
readonly properties: {
|
|
148
|
+
readonly serverId: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
};
|
|
151
|
+
readonly slotId: {
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
};
|
|
154
|
+
readonly retired: {
|
|
155
|
+
readonly type: "boolean";
|
|
156
|
+
readonly description: "Whether the slot is no longer served. False is reported, not inferred: an agent that could not confirm removal with the host MUST NOT claim it.";
|
|
157
|
+
};
|
|
158
|
+
readonly did: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
readonly description: "The DID the slot was serving, echoed so the record of what was retired survives the slot's disappearance. Absent where the slot was never published to.";
|
|
161
|
+
};
|
|
162
|
+
readonly ext: {
|
|
163
|
+
readonly $ref: "#/$defs/Ext";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly Ext: {
|
|
168
|
+
readonly title: "Ext";
|
|
169
|
+
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.";
|
|
170
|
+
readonly type: "object";
|
|
171
|
+
readonly minProperties: 1;
|
|
172
|
+
readonly additionalProperties: true;
|
|
173
|
+
readonly propertyNames: {
|
|
174
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
181
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
182
|
+
* per-specification and cannot be derived from the document alone, and
|
|
183
|
+
* item 2 needs the schema this carries.
|
|
184
|
+
*/
|
|
185
|
+
export declare const SPEC: {
|
|
186
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1";
|
|
187
|
+
readonly isBearer: false;
|
|
188
|
+
readonly isProofRequired: true;
|
|
189
|
+
readonly isRecipientRequired: true;
|
|
190
|
+
readonly payloadSchema: {
|
|
191
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
192
|
+
readonly $id: "https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1";
|
|
193
|
+
readonly title: "VTA WebVH Servers Retire Orphan — payload";
|
|
194
|
+
readonly type: "object";
|
|
195
|
+
readonly additionalProperties: false;
|
|
196
|
+
readonly required: readonly ["serverId", "slotId"];
|
|
197
|
+
readonly properties: {
|
|
198
|
+
readonly serverId: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
readonly minLength: 1;
|
|
201
|
+
readonly description: "The hosting server holding the orphaned slot, as the agent has it registered.";
|
|
202
|
+
};
|
|
203
|
+
readonly slotId: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly minLength: 1;
|
|
206
|
+
readonly description: "The slot to retire, as reported in a reconcile response's hostOnly. The slot identifier rather than the DID, because a slot reserved but never published to has no DID and is exactly as orphaned.";
|
|
207
|
+
};
|
|
208
|
+
readonly expectedDid: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
readonly minLength: 1;
|
|
211
|
+
readonly description: "The DID the producer believes the slot serves. When present the agent MUST refuse unless it matches, so a slotId that has been reused since the report was taken cannot retire something else. Absent for a slot that was never published to.";
|
|
212
|
+
};
|
|
213
|
+
readonly reason: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly maxLength: 1024;
|
|
216
|
+
readonly description: "Operator rationale, recorded in the agent's audit trail. The act has no undo, so why it was done outlives the record of what was done.";
|
|
217
|
+
};
|
|
218
|
+
readonly ext: {
|
|
219
|
+
readonly $ref: "#/$defs/Ext";
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
readonly $defs: {
|
|
223
|
+
readonly Response: {
|
|
224
|
+
readonly $anchor: "response";
|
|
225
|
+
readonly title: "VTA WebVH Servers Retire Orphan — response payload";
|
|
226
|
+
readonly description: "Success response to vta/webvh/servers/retire-orphan. Type https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response.";
|
|
227
|
+
readonly type: "object";
|
|
228
|
+
readonly additionalProperties: false;
|
|
229
|
+
readonly required: readonly ["serverId", "slotId", "retired"];
|
|
230
|
+
readonly properties: {
|
|
231
|
+
readonly serverId: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
};
|
|
234
|
+
readonly slotId: {
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
};
|
|
237
|
+
readonly retired: {
|
|
238
|
+
readonly type: "boolean";
|
|
239
|
+
readonly description: "Whether the slot is no longer served. False is reported, not inferred: an agent that could not confirm removal with the host MUST NOT claim it.";
|
|
240
|
+
};
|
|
241
|
+
readonly did: {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly description: "The DID the slot was serving, echoed so the record of what was retired survives the slot's disappearance. Absent where the slot was never published to.";
|
|
244
|
+
};
|
|
245
|
+
readonly ext: {
|
|
246
|
+
readonly $ref: "#/$defs/Ext";
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly Ext: {
|
|
251
|
+
readonly title: "Ext";
|
|
252
|
+
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.";
|
|
253
|
+
readonly type: "object";
|
|
254
|
+
readonly minProperties: 1;
|
|
255
|
+
readonly additionalProperties: true;
|
|
256
|
+
readonly propertyNames: {
|
|
257
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
265
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
266
|
+
* parties (§7.3 item 5).
|
|
267
|
+
*/
|
|
268
|
+
export declare const RESPONSE_SPEC: {
|
|
269
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response";
|
|
270
|
+
readonly isBearer: false;
|
|
271
|
+
readonly isProofRequired: true;
|
|
272
|
+
readonly isRecipientRequired: true;
|
|
273
|
+
readonly payloadSchema: {
|
|
274
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
275
|
+
readonly $ref: "#/$defs/Response";
|
|
276
|
+
readonly $defs: {
|
|
277
|
+
readonly Response: {
|
|
278
|
+
readonly $anchor: "response";
|
|
279
|
+
readonly title: "VTA WebVH Servers Retire Orphan — response payload";
|
|
280
|
+
readonly description: "Success response to vta/webvh/servers/retire-orphan. Type https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response.";
|
|
281
|
+
readonly type: "object";
|
|
282
|
+
readonly additionalProperties: false;
|
|
283
|
+
readonly required: readonly ["serverId", "slotId", "retired"];
|
|
284
|
+
readonly properties: {
|
|
285
|
+
readonly serverId: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
};
|
|
288
|
+
readonly slotId: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
};
|
|
291
|
+
readonly retired: {
|
|
292
|
+
readonly type: "boolean";
|
|
293
|
+
readonly description: "Whether the slot is no longer served. False is reported, not inferred: an agent that could not confirm removal with the host MUST NOT claim it.";
|
|
294
|
+
};
|
|
295
|
+
readonly did: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly description: "The DID the slot was serving, echoed so the record of what was retired survives the slot's disappearance. Absent where the slot was never published to.";
|
|
298
|
+
};
|
|
299
|
+
readonly ext: {
|
|
300
|
+
readonly $ref: "#/$defs/Ext";
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly Ext: {
|
|
305
|
+
readonly title: "Ext";
|
|
306
|
+
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.";
|
|
307
|
+
readonly type: "object";
|
|
308
|
+
readonly minProperties: 1;
|
|
309
|
+
readonly additionalProperties: true;
|
|
310
|
+
readonly propertyNames: {
|
|
311
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vta/webvh/servers/retire-orphan/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,iEAA0E,CAAC;AAEnG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAEzD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,0EAAmF,CAAC;AAErH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,0CAA0C,CAAC;AAElE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8EjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/webvh/servers/retire-orphan/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1",
|
|
21
|
+
"title": "VTA WebVH Servers Retire Orphan — payload",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"serverId",
|
|
26
|
+
"slotId"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"serverId": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"description": "The hosting server holding the orphaned slot, as the agent has it registered."
|
|
33
|
+
},
|
|
34
|
+
"slotId": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"description": "The slot to retire, as reported in a reconcile response's hostOnly. The slot identifier rather than the DID, because a slot reserved but never published to has no DID and is exactly as orphaned."
|
|
38
|
+
},
|
|
39
|
+
"expectedDid": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1,
|
|
42
|
+
"description": "The DID the producer believes the slot serves. When present the agent MUST refuse unless it matches, so a slotId that has been reused since the report was taken cannot retire something else. Absent for a slot that was never published to."
|
|
43
|
+
},
|
|
44
|
+
"reason": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"maxLength": 1024,
|
|
47
|
+
"description": "Operator rationale, recorded in the agent's audit trail. The act has no undo, so why it was done outlives the record of what was done."
|
|
48
|
+
},
|
|
49
|
+
"ext": {
|
|
50
|
+
"$ref": "#/$defs/Ext"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"$defs": {
|
|
54
|
+
"Response": {
|
|
55
|
+
"$anchor": "response",
|
|
56
|
+
"title": "VTA WebVH Servers Retire Orphan — response payload",
|
|
57
|
+
"description": "Success response to vta/webvh/servers/retire-orphan. Type https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response.",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": [
|
|
61
|
+
"serverId",
|
|
62
|
+
"slotId",
|
|
63
|
+
"retired"
|
|
64
|
+
],
|
|
65
|
+
"properties": {
|
|
66
|
+
"serverId": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"slotId": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"retired": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"description": "Whether the slot is no longer served. False is reported, not inferred: an agent that could not confirm removal with the host MUST NOT claim it."
|
|
75
|
+
},
|
|
76
|
+
"did": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "The DID the slot was serving, echoed so the record of what was retired survives the slot's disappearance. Absent where the slot was never published to."
|
|
79
|
+
},
|
|
80
|
+
"ext": {
|
|
81
|
+
"$ref": "#/$defs/Ext"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"Ext": {
|
|
86
|
+
"title": "Ext",
|
|
87
|
+
"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.",
|
|
88
|
+
"type": "object",
|
|
89
|
+
"minProperties": 1,
|
|
90
|
+
"additionalProperties": true,
|
|
91
|
+
"propertyNames": {
|
|
92
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
98
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
99
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
100
|
+
"$ref": "#/$defs/Response",
|
|
101
|
+
"$defs": {
|
|
102
|
+
"Response": {
|
|
103
|
+
"$anchor": "response",
|
|
104
|
+
"title": "VTA WebVH Servers Retire Orphan — response payload",
|
|
105
|
+
"description": "Success response to vta/webvh/servers/retire-orphan. Type https://trusttasks.org/spec/vta/webvh/servers/retire-orphan/0.1#response.",
|
|
106
|
+
"type": "object",
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"required": [
|
|
109
|
+
"serverId",
|
|
110
|
+
"slotId",
|
|
111
|
+
"retired"
|
|
112
|
+
],
|
|
113
|
+
"properties": {
|
|
114
|
+
"serverId": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"slotId": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"retired": {
|
|
121
|
+
"type": "boolean",
|
|
122
|
+
"description": "Whether the slot is no longer served. False is reported, not inferred: an agent that could not confirm removal with the host MUST NOT claim it."
|
|
123
|
+
},
|
|
124
|
+
"did": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "The DID the slot was serving, echoed so the record of what was retired survives the slot's disappearance. Absent where the slot was never published to."
|
|
127
|
+
},
|
|
128
|
+
"ext": {
|
|
129
|
+
"$ref": "#/$defs/Ext"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"Ext": {
|
|
134
|
+
"title": "Ext",
|
|
135
|
+
"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.",
|
|
136
|
+
"type": "object",
|
|
137
|
+
"minProperties": 1,
|
|
138
|
+
"additionalProperties": true,
|
|
139
|
+
"propertyNames": {
|
|
140
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
147
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
148
|
+
* per-specification and cannot be derived from the document alone, and
|
|
149
|
+
* item 2 needs the schema this carries.
|
|
150
|
+
*/
|
|
151
|
+
export const SPEC = {
|
|
152
|
+
typeUri: TYPE_URI,
|
|
153
|
+
isBearer: false,
|
|
154
|
+
isProofRequired: true,
|
|
155
|
+
isRecipientRequired: true,
|
|
156
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
160
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
161
|
+
* parties (§7.3 item 5).
|
|
162
|
+
*/
|
|
163
|
+
export const RESPONSE_SPEC = {
|
|
164
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
165
|
+
isBearer: false,
|
|
166
|
+
isProofRequired: true,
|
|
167
|
+
isRecipientRequired: true,
|
|
168
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
169
|
+
};
|
|
170
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vta/webvh/servers/retire-orphan/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,iEAA0E,CAAC;AAKnG,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,0EAAmF,CAA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f,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -251,11 +251,18 @@ export * as VaultUsage_v0_1 from "./vault/usage/0.1/payload.js";
|
|
|
251
251
|
export * as VaultUsage_v0_2 from "./vault/usage/0.2/payload.js";
|
|
252
252
|
export * as VrcRelationshipsIssue_v0_1 from "./vrc/relationships/issue/0.1/payload.js";
|
|
253
253
|
export * as VrcRelationshipsPropose_v0_1 from "./vrc/relationships/propose/0.1/payload.js";
|
|
254
|
+
export * as AppStateRecordShared_v0_1 from "./vta/_shared/0.1/app-state-record.js";
|
|
254
255
|
export * as ContextShared_v0_1 from "./vta/_shared/0.1/context.js";
|
|
255
256
|
export * as DidTemplateShared_v0_1 from "./vta/_shared/0.1/did-template.js";
|
|
256
257
|
export * as PasskeyVmShared_v0_1 from "./vta/_shared/0.1/passkey-vm.js";
|
|
257
258
|
export * as ServiceShared_v0_1 from "./vta/_shared/0.1/service.js";
|
|
258
259
|
export * as WebvhRecordsShared_v0_1 from "./vta/_shared/0.1/webvh-records.js";
|
|
260
|
+
export * as VtaAppStateDelete_v1_0 from "./vta/app-state/delete/1.0/payload.js";
|
|
261
|
+
export * as VtaAppStateGetMany_v1_0 from "./vta/app-state/get-many/1.0/payload.js";
|
|
262
|
+
export * as VtaAppStateGet_v1_0 from "./vta/app-state/get/1.0/payload.js";
|
|
263
|
+
export * as VtaAppStateList_v1_0 from "./vta/app-state/list/1.0/payload.js";
|
|
264
|
+
export * as VtaAppStatePutMany_v1_0 from "./vta/app-state/put-many/1.0/payload.js";
|
|
265
|
+
export * as VtaAppStatePut_v1_0 from "./vta/app-state/put/1.0/payload.js";
|
|
259
266
|
export * as VtaContextsCreate_v1_0 from "./vta/contexts/create/1.0/payload.js";
|
|
260
267
|
export * as VtaContextsDelete_v1_0 from "./vta/contexts/delete/1.0/payload.js";
|
|
261
268
|
export * as VtaContextsDidTemplatesCreate_v1_0 from "./vta/contexts/did-templates/create/1.0/payload.js";
|
|
@@ -317,6 +324,7 @@ export * as VtaWebvhServersList_v1_0 from "./vta/webvh/servers/list/1.0/payload.
|
|
|
317
324
|
export * as VtaWebvhServersReconcile_v0_1 from "./vta/webvh/servers/reconcile/0.1/payload.js";
|
|
318
325
|
export * as VtaWebvhServersRegister_v1_0 from "./vta/webvh/servers/register/1.0/payload.js";
|
|
319
326
|
export * as VtaWebvhServersRemove_v1_0 from "./vta/webvh/servers/remove/1.0/payload.js";
|
|
327
|
+
export * as VtaWebvhServersRetireOrphan_v0_1 from "./vta/webvh/servers/retire-orphan/0.1/payload.js";
|
|
320
328
|
export * as BackupShared_v0_1 from "./vtc/_shared/0.1/backup.js";
|
|
321
329
|
export * as CommunityShared_v0_1 from "./vtc/_shared/0.1/community.js";
|
|
322
330
|
export * as ConfigPortabilityShared_v0_1 from "./vtc/_shared/0.1/config-portability.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/_shared/0.1/app-state-record.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Application state is versioned, namespaced JSON that an application owns and the VTA stores without interpreting. A record is addressed by the triple `(contextId, namespace, key)`; `AppStateRecord` is the shape every task in the family hands back, defined once here because `get`, `list`, `get-many` and the conflict details of `put` and `put-many` all return the same record and an inline copy per task would fork the moment one of them gained a member.
|
|
8
|
+
*
|
|
9
|
+
* The store is deliberately schema-agnostic: `value` is any JSON, and the maintainer never validates, migrates, or interprets it. It is also deliberately NOT a secret store — the vault (`vault/*`) is where secret material belongs, and a maintainer SHOULD surface application state in operator tooling on that understanding.
|
|
10
|
+
*
|
|
11
|
+
* The version counter is the family's load-bearing invariant and is described once, here. `version` is a monotonically increasing integer maintained per `(contextId, namespace)` pair, NOT per record: every write in a namespace takes the next value of that namespace's counter, and a record's `version` is the counter value its most recent write took. One number therefore serves two purposes that would otherwise need two — it is the optimistic-concurrency token `expectedVersion` is compared against, and it is the watermark `sinceVersion` is compared against. A per-record counter could do the first but not the second, because two records' counters are not comparable to each other and so no single number can mean "everything changed after this point". Consumers MUST treat version numbers as opaque and monotonic: a record's version can jump by any amount between two writes, because writes to its neighbours consumed the intervening values.
|
|
12
|
+
*
|
|
13
|
+
* Timestamp invariants (SHOULD-level, prose — not expressible in JSON Schema): when `createdAt` is present, `updatedAt >= createdAt`; when `deletedAt` is present, `deleted` is true and `deletedAt >= createdAt`. Consumers SHOULD reject documents that violate either.
|
|
14
|
+
*/
|
|
15
|
+
export interface AppStateRecordSharedDefinitionForTheVtaAppStateSpecFamily {
|
|
16
|
+
[k: string]: unknown | undefined;
|
|
17
|
+
}
|