@openvtc/trust-tasks 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/_shared/0.1/service.d.ts +11 -0
- package/dist/vta/_shared/0.1/service.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/service.js +6 -0
- package/dist/vta/_shared/0.1/service.js.map +1 -0
- package/dist/vta/services/disable/1.0/payload.d.ts +452 -0
- package/dist/vta/services/disable/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/disable/1.0/payload.js +240 -0
- package/dist/vta/services/disable/1.0/payload.js.map +1 -0
- package/dist/vta/services/drain/cancel/1.0/payload.d.ts +234 -0
- package/dist/vta/services/drain/cancel/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/drain/cancel/1.0/payload.js +131 -0
- package/dist/vta/services/drain/cancel/1.0/payload.js.map +1 -0
- package/dist/vta/services/drain/list/1.0/payload.d.ts +352 -0
- package/dist/vta/services/drain/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/drain/list/1.0/payload.js +189 -0
- package/dist/vta/services/drain/list/1.0/payload.js.map +1 -0
- package/dist/vta/services/enable/1.0/payload.d.ts +511 -0
- package/dist/vta/services/enable/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/enable/1.0/payload.js +262 -0
- package/dist/vta/services/enable/1.0/payload.js.map +1 -0
- package/dist/vta/services/get/1.0/payload.d.ts +399 -0
- package/dist/vta/services/get/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/get/1.0/payload.js +219 -0
- package/dist/vta/services/get/1.0/payload.js.map +1 -0
- package/dist/vta/services/list/1.0/payload.d.ts +409 -0
- package/dist/vta/services/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/list/1.0/payload.js +221 -0
- package/dist/vta/services/list/1.0/payload.js.map +1 -0
- package/dist/vta/services/rollback/1.0/payload.d.ts +458 -0
- package/dist/vta/services/rollback/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/rollback/1.0/payload.js +251 -0
- package/dist/vta/services/rollback/1.0/payload.js.map +1 -0
- package/dist/vta/services/update/1.0/payload.d.ts +511 -0
- package/dist/vta/services/update/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/update/1.0/payload.js +262 -0
- package/dist/vta/services/update/1.0/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +9 -0
- package/src/vta/_shared/0.1/service.ts +11 -0
- package/src/vta/services/disable/1.0/payload.ts +311 -0
- package/src/vta/services/drain/cancel/1.0/payload.ts +169 -0
- package/src/vta/services/drain/list/1.0/payload.ts +241 -0
- package/src/vta/services/enable/1.0/payload.ts +350 -0
- package/src/vta/services/get/1.0/payload.ts +279 -0
- package/src/vta/services/list/1.0/payload.ts +283 -0
- package/src/vta/services/rollback/1.0/payload.ts +322 -0
- package/src/vta/services/update/1.0/payload.ts +350 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/services/disable/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/services/disable/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/services/disable/1.0#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vta/services/disable/1.0",
|
|
21
|
+
"title": "VTA Services — Disable — payload",
|
|
22
|
+
"description": "Request payload for vta/services/disable. Stops advertising a transport and republishes the log. For `didcomm` this schedules a drain rather than cutting delivery immediately — see `drainUntil` in the result.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"service"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"service": {
|
|
30
|
+
"$ref": "#/$defs/ServiceKind"
|
|
31
|
+
},
|
|
32
|
+
"ext": {
|
|
33
|
+
"$ref": "#/$defs/Ext"
|
|
34
|
+
},
|
|
35
|
+
"drainTtlSecs": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"description": "`didcomm` only: how long the unadvertised mediator keeps accepting delivery. Absent takes the agent's default. **0 means immediate teardown, and is only honoured when the request did not arrive through the mediator being torn down** — over a DIDComm-carried request the agent enforces a floor (1 hour), because cutting the mediator mid-request would discard the reply to the very task asking for it. A caller cannot rely on 0 being obeyed; read `drainUntil` in the result to learn what actually happened."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"$defs": {
|
|
42
|
+
"Response": {
|
|
43
|
+
"$anchor": "response",
|
|
44
|
+
"title": "VTA Services — Disable — response payload",
|
|
45
|
+
"description": "Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.",
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": [
|
|
49
|
+
"result"
|
|
50
|
+
],
|
|
51
|
+
"properties": {
|
|
52
|
+
"result": {
|
|
53
|
+
"$ref": "#/$defs/ServiceMutationResult"
|
|
54
|
+
},
|
|
55
|
+
"ext": {
|
|
56
|
+
"$ref": "#/$defs/Ext"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"Ext": {
|
|
61
|
+
"title": "Ext",
|
|
62
|
+
"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.",
|
|
63
|
+
"type": "object",
|
|
64
|
+
"minProperties": 1,
|
|
65
|
+
"additionalProperties": true,
|
|
66
|
+
"propertyNames": {
|
|
67
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"ServiceMutationResult": {
|
|
71
|
+
"title": "ServiceMutationResult",
|
|
72
|
+
"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.",
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"required": [
|
|
76
|
+
"logEntryVersionId",
|
|
77
|
+
"effectiveAt"
|
|
78
|
+
],
|
|
79
|
+
"properties": {
|
|
80
|
+
"logEntryVersionId": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"minLength": 1,
|
|
83
|
+
"description": "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history."
|
|
84
|
+
},
|
|
85
|
+
"effectiveAt": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"format": "date-time",
|
|
88
|
+
"description": "RFC 3339 instant the change took effect — the same instant stamped on the new log entry."
|
|
89
|
+
},
|
|
90
|
+
"drainUntil": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"format": "date-time",
|
|
93
|
+
"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."
|
|
94
|
+
},
|
|
95
|
+
"drainingMediator": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "The mediator being drained, when `drainUntil` is present."
|
|
98
|
+
},
|
|
99
|
+
"vtaDid": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"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."
|
|
102
|
+
},
|
|
103
|
+
"serverless": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"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.",
|
|
106
|
+
"default": false
|
|
107
|
+
},
|
|
108
|
+
"ext": {
|
|
109
|
+
"$ref": "#/$defs/Ext"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"ServiceKind": {
|
|
114
|
+
"title": "ServiceKind",
|
|
115
|
+
"description": "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.",
|
|
116
|
+
"type": "string",
|
|
117
|
+
"enum": [
|
|
118
|
+
"didcomm",
|
|
119
|
+
"rest",
|
|
120
|
+
"tsp",
|
|
121
|
+
"webauthn"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
127
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
128
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
129
|
+
"$ref": "#/$defs/Response",
|
|
130
|
+
"$defs": {
|
|
131
|
+
"Response": {
|
|
132
|
+
"$anchor": "response",
|
|
133
|
+
"title": "VTA Services — Disable — response payload",
|
|
134
|
+
"description": "Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.",
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": [
|
|
138
|
+
"result"
|
|
139
|
+
],
|
|
140
|
+
"properties": {
|
|
141
|
+
"result": {
|
|
142
|
+
"$ref": "#/$defs/ServiceMutationResult"
|
|
143
|
+
},
|
|
144
|
+
"ext": {
|
|
145
|
+
"$ref": "#/$defs/Ext"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"Ext": {
|
|
150
|
+
"title": "Ext",
|
|
151
|
+
"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.",
|
|
152
|
+
"type": "object",
|
|
153
|
+
"minProperties": 1,
|
|
154
|
+
"additionalProperties": true,
|
|
155
|
+
"propertyNames": {
|
|
156
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"ServiceMutationResult": {
|
|
160
|
+
"title": "ServiceMutationResult",
|
|
161
|
+
"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
|
+
"type": "object",
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"required": [
|
|
165
|
+
"logEntryVersionId",
|
|
166
|
+
"effectiveAt"
|
|
167
|
+
],
|
|
168
|
+
"properties": {
|
|
169
|
+
"logEntryVersionId": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"minLength": 1,
|
|
172
|
+
"description": "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history."
|
|
173
|
+
},
|
|
174
|
+
"effectiveAt": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"format": "date-time",
|
|
177
|
+
"description": "RFC 3339 instant the change took effect — the same instant stamped on the new log entry."
|
|
178
|
+
},
|
|
179
|
+
"drainUntil": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"format": "date-time",
|
|
182
|
+
"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."
|
|
183
|
+
},
|
|
184
|
+
"drainingMediator": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"description": "The mediator being drained, when `drainUntil` is present."
|
|
187
|
+
},
|
|
188
|
+
"vtaDid": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"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."
|
|
191
|
+
},
|
|
192
|
+
"serverless": {
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"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.",
|
|
195
|
+
"default": false
|
|
196
|
+
},
|
|
197
|
+
"ext": {
|
|
198
|
+
"$ref": "#/$defs/Ext"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"ServiceKind": {
|
|
203
|
+
"title": "ServiceKind",
|
|
204
|
+
"description": "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.",
|
|
205
|
+
"type": "string",
|
|
206
|
+
"enum": [
|
|
207
|
+
"didcomm",
|
|
208
|
+
"rest",
|
|
209
|
+
"tsp",
|
|
210
|
+
"webauthn"
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
217
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
218
|
+
* per-specification and cannot be derived from the document alone, and
|
|
219
|
+
* item 2 needs the schema this carries.
|
|
220
|
+
*/
|
|
221
|
+
export const SPEC = {
|
|
222
|
+
typeUri: TYPE_URI,
|
|
223
|
+
isBearer: false,
|
|
224
|
+
isProofRequired: true,
|
|
225
|
+
isRecipientRequired: true,
|
|
226
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
230
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
231
|
+
* parties (§7.3 item 5).
|
|
232
|
+
*/
|
|
233
|
+
export const RESPONSE_SPEC = {
|
|
234
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
235
|
+
isBearer: false,
|
|
236
|
+
isProofRequired: true,
|
|
237
|
+
isRecipientRequired: true,
|
|
238
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
239
|
+
};
|
|
240
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/services/disable/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA8DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAKxF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,kNAAkN;IACjO,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;QACD,cAAc,EAAE;YACd,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;YACZ,aAAa,EAAE,0fAA0f;SAC1gB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACr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
*/
|
|
5
|
+
/**
|
|
6
|
+
* Request payload for vta/services/drain/cancel. Ends a drain early, dropping the mediator now instead of at `drainsUntil`. Messages still in flight through it are lost, which is the whole reason the drain window existed.
|
|
7
|
+
*/
|
|
8
|
+
export interface VTAServicesDrainCancelPayload {
|
|
9
|
+
/**
|
|
10
|
+
* The draining mediator to drop. Refused if it is not draining, and refused if it is the currently advertised mediator — cancelling a drain on the active mediator would strand every route the agent depends on.
|
|
11
|
+
*/
|
|
12
|
+
mediatorDid: string;
|
|
13
|
+
ext?: Ext;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
export interface Ext {
|
|
19
|
+
[k: string]: unknown | undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Success response to vta/services/drain/cancel. Type https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response.
|
|
23
|
+
*/
|
|
24
|
+
export interface VTAServicesDrainCancelResponsePayload {
|
|
25
|
+
/**
|
|
26
|
+
* The mediator that was dropped.
|
|
27
|
+
*/
|
|
28
|
+
mediatorDid: string;
|
|
29
|
+
ext?: Ext;
|
|
30
|
+
}
|
|
31
|
+
/** Trust Task type URI. */
|
|
32
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/services/drain/cancel/1.0";
|
|
33
|
+
/** Stable alias for this specification's request payload shape. */
|
|
34
|
+
export type Payload = VTAServicesDrainCancelPayload;
|
|
35
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
36
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response";
|
|
37
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
38
|
+
export type Response = VTAServicesDrainCancelResponsePayload;
|
|
39
|
+
/**
|
|
40
|
+
* This specification's payload schema, as a value.
|
|
41
|
+
*
|
|
42
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
43
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
44
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
45
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
46
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
47
|
+
*/
|
|
48
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
49
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
50
|
+
readonly $id: "https://trusttasks.org/spec/vta/services/drain/cancel/1.0";
|
|
51
|
+
readonly title: "VTA Services Drain — Cancel — payload";
|
|
52
|
+
readonly description: "Request payload for vta/services/drain/cancel. Ends a drain early, dropping the mediator now instead of at `drainsUntil`. Messages still in flight through it are lost, which is the whole reason the drain window existed.";
|
|
53
|
+
readonly type: "object";
|
|
54
|
+
readonly additionalProperties: false;
|
|
55
|
+
readonly required: readonly ["mediatorDid"];
|
|
56
|
+
readonly properties: {
|
|
57
|
+
readonly mediatorDid: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
readonly minLength: 1;
|
|
60
|
+
readonly description: "The draining mediator to drop. Refused if it is not draining, and refused if it is the currently advertised mediator — cancelling a drain on the active mediator would strand every route the agent depends on.";
|
|
61
|
+
};
|
|
62
|
+
readonly ext: {
|
|
63
|
+
readonly $ref: "#/$defs/Ext";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly $defs: {
|
|
67
|
+
readonly Response: {
|
|
68
|
+
readonly $anchor: "response";
|
|
69
|
+
readonly title: "VTA Services Drain — Cancel — response payload";
|
|
70
|
+
readonly description: "Success response to vta/services/drain/cancel. Type https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response.";
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly additionalProperties: false;
|
|
73
|
+
readonly required: readonly ["mediatorDid"];
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly mediatorDid: {
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
readonly description: "The mediator that was dropped.";
|
|
78
|
+
};
|
|
79
|
+
readonly ext: {
|
|
80
|
+
readonly $ref: "#/$defs/Ext";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly Ext: {
|
|
85
|
+
readonly title: "Ext";
|
|
86
|
+
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.";
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly minProperties: 1;
|
|
89
|
+
readonly additionalProperties: true;
|
|
90
|
+
readonly propertyNames: {
|
|
91
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
97
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
98
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
99
|
+
readonly $ref: "#/$defs/Response";
|
|
100
|
+
readonly $defs: {
|
|
101
|
+
readonly Response: {
|
|
102
|
+
readonly $anchor: "response";
|
|
103
|
+
readonly title: "VTA Services Drain — Cancel — response payload";
|
|
104
|
+
readonly description: "Success response to vta/services/drain/cancel. Type https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response.";
|
|
105
|
+
readonly type: "object";
|
|
106
|
+
readonly additionalProperties: false;
|
|
107
|
+
readonly required: readonly ["mediatorDid"];
|
|
108
|
+
readonly properties: {
|
|
109
|
+
readonly mediatorDid: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly description: "The mediator that was dropped.";
|
|
112
|
+
};
|
|
113
|
+
readonly ext: {
|
|
114
|
+
readonly $ref: "#/$defs/Ext";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly Ext: {
|
|
119
|
+
readonly title: "Ext";
|
|
120
|
+
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.";
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly minProperties: 1;
|
|
123
|
+
readonly additionalProperties: true;
|
|
124
|
+
readonly propertyNames: {
|
|
125
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
132
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
133
|
+
* per-specification and cannot be derived from the document alone, and
|
|
134
|
+
* item 2 needs the schema this carries.
|
|
135
|
+
*/
|
|
136
|
+
export declare const SPEC: {
|
|
137
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/services/drain/cancel/1.0";
|
|
138
|
+
readonly isBearer: false;
|
|
139
|
+
readonly isProofRequired: true;
|
|
140
|
+
readonly isRecipientRequired: true;
|
|
141
|
+
readonly payloadSchema: {
|
|
142
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
143
|
+
readonly $id: "https://trusttasks.org/spec/vta/services/drain/cancel/1.0";
|
|
144
|
+
readonly title: "VTA Services Drain — Cancel — payload";
|
|
145
|
+
readonly description: "Request payload for vta/services/drain/cancel. Ends a drain early, dropping the mediator now instead of at `drainsUntil`. Messages still in flight through it are lost, which is the whole reason the drain window existed.";
|
|
146
|
+
readonly type: "object";
|
|
147
|
+
readonly additionalProperties: false;
|
|
148
|
+
readonly required: readonly ["mediatorDid"];
|
|
149
|
+
readonly properties: {
|
|
150
|
+
readonly mediatorDid: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
readonly minLength: 1;
|
|
153
|
+
readonly description: "The draining mediator to drop. Refused if it is not draining, and refused if it is the currently advertised mediator — cancelling a drain on the active mediator would strand every route the agent depends on.";
|
|
154
|
+
};
|
|
155
|
+
readonly ext: {
|
|
156
|
+
readonly $ref: "#/$defs/Ext";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly $defs: {
|
|
160
|
+
readonly Response: {
|
|
161
|
+
readonly $anchor: "response";
|
|
162
|
+
readonly title: "VTA Services Drain — Cancel — response payload";
|
|
163
|
+
readonly description: "Success response to vta/services/drain/cancel. Type https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response.";
|
|
164
|
+
readonly type: "object";
|
|
165
|
+
readonly additionalProperties: false;
|
|
166
|
+
readonly required: readonly ["mediatorDid"];
|
|
167
|
+
readonly properties: {
|
|
168
|
+
readonly mediatorDid: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly description: "The mediator that was dropped.";
|
|
171
|
+
};
|
|
172
|
+
readonly ext: {
|
|
173
|
+
readonly $ref: "#/$defs/Ext";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
readonly Ext: {
|
|
178
|
+
readonly title: "Ext";
|
|
179
|
+
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.";
|
|
180
|
+
readonly type: "object";
|
|
181
|
+
readonly minProperties: 1;
|
|
182
|
+
readonly additionalProperties: true;
|
|
183
|
+
readonly propertyNames: {
|
|
184
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
192
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
193
|
+
* parties (§7.3 item 5).
|
|
194
|
+
*/
|
|
195
|
+
export declare const RESPONSE_SPEC: {
|
|
196
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response";
|
|
197
|
+
readonly isBearer: false;
|
|
198
|
+
readonly isProofRequired: true;
|
|
199
|
+
readonly isRecipientRequired: true;
|
|
200
|
+
readonly payloadSchema: {
|
|
201
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
202
|
+
readonly $ref: "#/$defs/Response";
|
|
203
|
+
readonly $defs: {
|
|
204
|
+
readonly Response: {
|
|
205
|
+
readonly $anchor: "response";
|
|
206
|
+
readonly title: "VTA Services Drain — Cancel — response payload";
|
|
207
|
+
readonly description: "Success response to vta/services/drain/cancel. Type https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response.";
|
|
208
|
+
readonly type: "object";
|
|
209
|
+
readonly additionalProperties: false;
|
|
210
|
+
readonly required: readonly ["mediatorDid"];
|
|
211
|
+
readonly properties: {
|
|
212
|
+
readonly mediatorDid: {
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
readonly description: "The mediator that was dropped.";
|
|
215
|
+
};
|
|
216
|
+
readonly ext: {
|
|
217
|
+
readonly $ref: "#/$defs/Ext";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly Ext: {
|
|
222
|
+
readonly title: "Ext";
|
|
223
|
+
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.";
|
|
224
|
+
readonly type: "object";
|
|
225
|
+
readonly minProperties: 1;
|
|
226
|
+
readonly additionalProperties: true;
|
|
227
|
+
readonly propertyNames: {
|
|
228
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vta/services/drain/cancel/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,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,qCAAqC;IACpD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2DAAoE,CAAC;AAE7F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,6BAA6B,CAAC;AAEpD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oEAA6E,CAAC;AAE/G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,qCAAqC,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/services/drain/cancel/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/services/drain/cancel/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vta/services/drain/cancel/1.0",
|
|
21
|
+
"title": "VTA Services Drain — Cancel — payload",
|
|
22
|
+
"description": "Request payload for vta/services/drain/cancel. Ends a drain early, dropping the mediator now instead of at `drainsUntil`. Messages still in flight through it are lost, which is the whole reason the drain window existed.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"mediatorDid"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"mediatorDid": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"description": "The draining mediator to drop. Refused if it is not draining, and refused if it is the currently advertised mediator — cancelling a drain on the active mediator would strand every route the agent depends on."
|
|
33
|
+
},
|
|
34
|
+
"ext": {
|
|
35
|
+
"$ref": "#/$defs/Ext"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"$defs": {
|
|
39
|
+
"Response": {
|
|
40
|
+
"$anchor": "response",
|
|
41
|
+
"title": "VTA Services Drain — Cancel — response payload",
|
|
42
|
+
"description": "Success response to vta/services/drain/cancel. Type https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response.",
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"required": [
|
|
46
|
+
"mediatorDid"
|
|
47
|
+
],
|
|
48
|
+
"properties": {
|
|
49
|
+
"mediatorDid": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "The mediator that was dropped."
|
|
52
|
+
},
|
|
53
|
+
"ext": {
|
|
54
|
+
"$ref": "#/$defs/Ext"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"Ext": {
|
|
59
|
+
"title": "Ext",
|
|
60
|
+
"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.",
|
|
61
|
+
"type": "object",
|
|
62
|
+
"minProperties": 1,
|
|
63
|
+
"additionalProperties": true,
|
|
64
|
+
"propertyNames": {
|
|
65
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
71
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
72
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
73
|
+
"$ref": "#/$defs/Response",
|
|
74
|
+
"$defs": {
|
|
75
|
+
"Response": {
|
|
76
|
+
"$anchor": "response",
|
|
77
|
+
"title": "VTA Services Drain — Cancel — response payload",
|
|
78
|
+
"description": "Success response to vta/services/drain/cancel. Type https://trusttasks.org/spec/vta/services/drain/cancel/1.0#response.",
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"required": [
|
|
82
|
+
"mediatorDid"
|
|
83
|
+
],
|
|
84
|
+
"properties": {
|
|
85
|
+
"mediatorDid": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "The mediator that was dropped."
|
|
88
|
+
},
|
|
89
|
+
"ext": {
|
|
90
|
+
"$ref": "#/$defs/Ext"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"Ext": {
|
|
95
|
+
"title": "Ext",
|
|
96
|
+
"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.",
|
|
97
|
+
"type": "object",
|
|
98
|
+
"minProperties": 1,
|
|
99
|
+
"additionalProperties": true,
|
|
100
|
+
"propertyNames": {
|
|
101
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
108
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
109
|
+
* per-specification and cannot be derived from the document alone, and
|
|
110
|
+
* item 2 needs the schema this carries.
|
|
111
|
+
*/
|
|
112
|
+
export const SPEC = {
|
|
113
|
+
typeUri: TYPE_URI,
|
|
114
|
+
isBearer: false,
|
|
115
|
+
isProofRequired: true,
|
|
116
|
+
isRecipientRequired: true,
|
|
117
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
121
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
122
|
+
* parties (§7.3 item 5).
|
|
123
|
+
*/
|
|
124
|
+
export const RESPONSE_SPEC = {
|
|
125
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
126
|
+
isBearer: false,
|
|
127
|
+
isProofRequired: true,
|
|
128
|
+
isRecipientRequired: true,
|
|
129
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vta/services/drain/cancel/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6BH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2DAAoE,CAAC;AAK7F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oEAA6E,CAAC;AAK/G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,2DAA2D;IAClE,OAAO,EAAE,uCAAuC;IAChD,aAAa,EAAE,6NAA6N;IAC5O,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,aAAa;KACd;IACD,YAAY,EAAE;QACZ,aAAa,EAAE;YACb,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,iNAAiN;SACjO;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,gDAAgD;YACzD,aAAa,EAAE,yHAAyH;YACxI,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,aAAa;aACd;YACD,YAAY,EAAE;gBACZ,aAAa,EAAE;oBACb,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,gCAAgC;iBAChD;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAA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