@openvtc/trust-tasks 0.11.0 → 0.12.1

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.
@@ -45,7 +45,7 @@ export const PAYLOAD_SCHEMA = {
45
45
  ],
46
46
  "properties": {
47
47
  "result": {
48
- "$ref": "#/$defs/ServiceMutationResult"
48
+ "$ref": "#/$defs/RollbackResult"
49
49
  },
50
50
  "ext": {
51
51
  "$ref": "#/$defs/Ext"
@@ -62,43 +62,51 @@ export const PAYLOAD_SCHEMA = {
62
62
  "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
63
63
  }
64
64
  },
65
- "ServiceMutationResult": {
66
- "title": "ServiceMutationResult",
67
- "description": "The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.",
65
+ "RollbackResult": {
66
+ "title": "RollbackResult",
67
+ "description": "The outcome of a rollback. Distinct from ServiceMutationResult because a rollback can legitimately publish nothing: if the previous state already equals the current one there is no change to write, and `kind: \"noOp\"` says so with `logEntryVersionId` absent. Treating that as a failure would be wrong — the requested state holds — and treating it as an ordinary success would report a log entry that does not exist.",
68
68
  "type": "object",
69
69
  "additionalProperties": false,
70
70
  "required": [
71
- "logEntryVersionId",
72
- "effectiveAt"
71
+ "kind"
73
72
  ],
74
73
  "properties": {
74
+ "kind": {
75
+ "type": "string",
76
+ "enum": [
77
+ "disabled",
78
+ "enabled",
79
+ "updated",
80
+ "noOp"
81
+ ],
82
+ "description": "What the rollback did. `disabled` re-disabled the transport, `enabled` re-advertised it at its prior settings, `updated` restored prior settings on an entry that stayed advertised, and `noOp` means the previous state already matched — nothing was written."
83
+ },
75
84
  "logEntryVersionId": {
76
85
  "type": "string",
77
- "minLength": 1,
78
- "description": "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history."
86
+ "description": "Version id of the log entry the rollback wrote. **Absent when `kind` is `noOp`**, and present otherwise."
79
87
  },
80
88
  "effectiveAt": {
81
89
  "type": "string",
82
90
  "format": "date-time",
83
- "description": "RFC 3339 instant the change took effect the same instant stamped on the new log entry."
91
+ "description": "RFC 3339 instant the rollback took effect. Absent for `noOp`."
84
92
  },
85
- "drainUntil": {
93
+ "drainingMediator": {
86
94
  "type": "string",
87
- "format": "date-time",
88
- "description": "Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong."
95
+ "description": "Present when rolling back DIDComm left a mediator draining."
89
96
  },
90
- "drainingMediator": {
97
+ "drainUntil": {
91
98
  "type": "string",
92
- "description": "The mediator being drained, when `drainUntil` is present."
99
+ "format": "date-time",
100
+ "description": "When that drain completes."
93
101
  },
94
102
  "vtaDid": {
95
103
  "type": "string",
96
- "description": "The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip."
104
+ "description": "The agent's own DID."
97
105
  },
98
106
  "serverless": {
99
107
  "type": "boolean",
100
- "description": "True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.",
101
- "default": false
108
+ "default": false,
109
+ "description": "True when the entry was written locally but not published — the operator must redeploy before any verifier sees it."
102
110
  },
103
111
  "ext": {
104
112
  "$ref": "#/$defs/Ext"
@@ -134,7 +142,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
134
142
  ],
135
143
  "properties": {
136
144
  "result": {
137
- "$ref": "#/$defs/ServiceMutationResult"
145
+ "$ref": "#/$defs/RollbackResult"
138
146
  },
139
147
  "ext": {
140
148
  "$ref": "#/$defs/Ext"
@@ -151,43 +159,51 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
151
159
  "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
152
160
  }
153
161
  },
154
- "ServiceMutationResult": {
155
- "title": "ServiceMutationResult",
156
- "description": "The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.",
162
+ "RollbackResult": {
163
+ "title": "RollbackResult",
164
+ "description": "The outcome of a rollback. Distinct from ServiceMutationResult because a rollback can legitimately publish nothing: if the previous state already equals the current one there is no change to write, and `kind: \"noOp\"` says so with `logEntryVersionId` absent. Treating that as a failure would be wrong — the requested state holds — and treating it as an ordinary success would report a log entry that does not exist.",
157
165
  "type": "object",
158
166
  "additionalProperties": false,
159
167
  "required": [
160
- "logEntryVersionId",
161
- "effectiveAt"
168
+ "kind"
162
169
  ],
163
170
  "properties": {
171
+ "kind": {
172
+ "type": "string",
173
+ "enum": [
174
+ "disabled",
175
+ "enabled",
176
+ "updated",
177
+ "noOp"
178
+ ],
179
+ "description": "What the rollback did. `disabled` re-disabled the transport, `enabled` re-advertised it at its prior settings, `updated` restored prior settings on an entry that stayed advertised, and `noOp` means the previous state already matched — nothing was written."
180
+ },
164
181
  "logEntryVersionId": {
165
182
  "type": "string",
166
- "minLength": 1,
167
- "description": "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history."
183
+ "description": "Version id of the log entry the rollback wrote. **Absent when `kind` is `noOp`**, and present otherwise."
168
184
  },
169
185
  "effectiveAt": {
170
186
  "type": "string",
171
187
  "format": "date-time",
172
- "description": "RFC 3339 instant the change took effect the same instant stamped on the new log entry."
188
+ "description": "RFC 3339 instant the rollback took effect. Absent for `noOp`."
173
189
  },
174
- "drainUntil": {
190
+ "drainingMediator": {
175
191
  "type": "string",
176
- "format": "date-time",
177
- "description": "Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong."
192
+ "description": "Present when rolling back DIDComm left a mediator draining."
178
193
  },
179
- "drainingMediator": {
194
+ "drainUntil": {
180
195
  "type": "string",
181
- "description": "The mediator being drained, when `drainUntil` is present."
196
+ "format": "date-time",
197
+ "description": "When that drain completes."
182
198
  },
183
199
  "vtaDid": {
184
200
  "type": "string",
185
- "description": "The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip."
201
+ "description": "The agent's own DID."
186
202
  },
187
203
  "serverless": {
188
204
  "type": "boolean",
189
- "description": "True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.",
190
- "default": false
205
+ "default": false,
206
+ "description": "True when the entry was written locally but not published — the operator must redeploy before any verifier sees it."
191
207
  },
192
208
  "ext": {
193
209
  "$ref": "#/$defs/Ext"
@@ -1 +1 @@
1
- {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/services/rollback/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,uDAAuD;IAC9D,OAAO,EAAE,mCAAmC;IAC5C,aAAa,EAAE,gQAAgQ;IAC/Q,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;KACV;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,MAAM,EAAE,qBAAqB;SAC9B;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,4CAA4C;YACrD,aAAa,EAAE,iHAAiH;YAChI,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAA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B,QAAQ,EAAE,WAAW;oBACrB,aAAa,EAAE,0PAA0P;iBAC1Q;gBACD,kBAAkB,EAAE;oBAClB,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,2DAA2D;iBAC3E;gBACD,QAAQ,EAAE;oBACR,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,kIAAkI;iBAClJ;gBACD,YAAY,EAAE;oBACZ,MAAM,EAAE,SAAS;oBACjB,aAAa,EAAE,mRAAmR;oBAClS,SAAS,EAAE,KAAK;iBACjB;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;aACF;SACF;QACD,aAAa,EAAE;YACb,OAAO,EAAE,aAAa;YACtB,aAAa,EAAE,iNAAiN;YAChO,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,SAAS;gBACT,MAAM;gBACN,KAAK;gBACL,UAAU;aACX;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,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"}
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/services/rollback/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA8DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,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BACT,MAAM;gBACN,KAAK;gBACL,UAAU;aACX;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,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"}
@@ -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,WA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