@openvtc/trust-tasks 0.19.15 → 0.19.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/_shared/components.d.ts +314 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/_shared/0.1/mediator-ops.d.ts +16 -0
- package/dist/messaging/_shared/0.1/mediator-ops.d.ts.map +1 -0
- package/dist/messaging/_shared/0.1/mediator-ops.js +6 -0
- package/dist/messaging/_shared/0.1/mediator-ops.js.map +1 -0
- package/dist/messaging/message/delete/0.1/payload.d.ts +370 -0
- package/dist/messaging/message/delete/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/delete/0.1/payload.js +206 -0
- package/dist/messaging/message/delete/0.1/payload.js.map +1 -0
- package/dist/messaging/message/get/0.1/payload.d.ts +568 -0
- package/dist/messaging/message/get/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/get/0.1/payload.js +332 -0
- package/dist/messaging/message/get/0.1/payload.js.map +1 -0
- package/dist/messaging/message/list/0.1/payload.d.ts +627 -0
- package/dist/messaging/message/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/list/0.1/payload.js +352 -0
- package/dist/messaging/message/list/0.1/payload.js.map +1 -0
- package/dist/messaging/monitor/event/0.1/payload.d.ts +385 -0
- package/dist/messaging/monitor/event/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/monitor/event/0.1/payload.js +230 -0
- package/dist/messaging/monitor/event/0.1/payload.js.map +1 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.d.ts +719 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.js +417 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.js.map +1 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.d.ts +245 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.js +136 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.js.map +1 -0
- package/dist/messaging/queue/list/0.1/payload.d.ts +679 -0
- package/dist/messaging/queue/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/queue/list/0.1/payload.js +377 -0
- package/dist/messaging/queue/list/0.1/payload.js.map +1 -0
- package/dist/messaging/queue/purge/0.1/payload.d.ts +389 -0
- package/dist/messaging/queue/purge/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/queue/purge/0.1/payload.js +210 -0
- package/dist/messaging/queue/purge/0.1/payload.js.map +1 -0
- package/dist/messaging/queue/status/0.1/payload.d.ts +697 -0
- package/dist/messaging/queue/status/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/queue/status/0.1/payload.js +389 -0
- package/dist/messaging/queue/status/0.1/payload.js.map +1 -0
- package/dist/messaging/stats/show/0.1/payload.d.ts +963 -0
- package/dist/messaging/stats/show/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/stats/show/0.1/payload.js +515 -0
- package/dist/messaging/stats/show/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +342 -0
- package/src/index.ts +11 -0
- package/src/messaging/_shared/0.1/mediator-ops.ts +17 -0
- package/src/messaging/message/delete/0.1/payload.ts +259 -0
- package/src/messaging/message/get/0.1/payload.ts +375 -0
- package/src/messaging/message/list/0.1/payload.ts +410 -0
- package/src/messaging/monitor/event/0.1/payload.ts +267 -0
- package/src/messaging/monitor/subscribe/0.1/payload.ts +473 -0
- package/src/messaging/monitor/unsubscribe/0.1/payload.ts +172 -0
- package/src/messaging/queue/list/0.1/payload.ts +443 -0
- package/src/messaging/queue/purge/0.1/payload.ts +270 -0
- package/src/messaging/queue/status/0.1/payload.ts +439 -0
- package/src/messaging/stats/show/0.1/payload.ts +611 -0
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/messaging/monitor/subscribe/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext, MonitorFilter, TrafficChannel, TrafficDirection, TrafficStage, Vid, WireProtocol } from "../../../../_shared/components.js";
|
|
6
|
+
export interface MessagingSubscribeToTrafficMonitorPayload {
|
|
7
|
+
filter?: MonitorFilter;
|
|
8
|
+
/**
|
|
9
|
+
* How long the subscription lives unless renewed. Default 300.
|
|
10
|
+
*/
|
|
11
|
+
leaseSeconds?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Rate ceiling the subscriber can absorb; the mediator MAY apply a lower one. Events over the ceiling are counted as dropped, never queued.
|
|
14
|
+
*/
|
|
15
|
+
maxEventsPerSecond?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Renew or re-filter an existing subscription held by the same requester. Omitted = create a new one.
|
|
18
|
+
*/
|
|
19
|
+
subscriptionId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
22
|
+
*/
|
|
23
|
+
ext?: Ext;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The success response to a messaging/monitor/subscribe request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/monitor/subscribe/0.1#response.
|
|
27
|
+
*/
|
|
28
|
+
export interface MessagingSubscribeToTrafficMonitorResponsePayload {
|
|
29
|
+
subscriptionId: string;
|
|
30
|
+
expiresAt: string;
|
|
31
|
+
/**
|
|
32
|
+
* The filter in force, after the mediator narrowed it to what the requester is entitled to see.
|
|
33
|
+
*/
|
|
34
|
+
filter: MonitorFilter;
|
|
35
|
+
/**
|
|
36
|
+
* The rate ceiling in force.
|
|
37
|
+
*/
|
|
38
|
+
maxEventsPerSecond: number;
|
|
39
|
+
/**
|
|
40
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
41
|
+
*/
|
|
42
|
+
ext?: Ext;
|
|
43
|
+
}
|
|
44
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
45
|
+
export type { Ext, MonitorFilter, TrafficChannel, TrafficDirection, TrafficStage, Vid, WireProtocol };
|
|
46
|
+
/** Trust Task type URI. */
|
|
47
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/messaging/monitor/subscribe/0.1";
|
|
48
|
+
/** Stable alias for this specification's request payload shape. */
|
|
49
|
+
export type Payload = MessagingSubscribeToTrafficMonitorPayload;
|
|
50
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
51
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/messaging/monitor/subscribe/0.1#response";
|
|
52
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
53
|
+
export type Response = MessagingSubscribeToTrafficMonitorResponsePayload;
|
|
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/messaging/monitor/subscribe/0.1";
|
|
66
|
+
readonly title: "Messaging — Subscribe to Traffic Monitor — payload";
|
|
67
|
+
readonly type: "object";
|
|
68
|
+
readonly additionalProperties: false;
|
|
69
|
+
readonly properties: {
|
|
70
|
+
readonly filter: {
|
|
71
|
+
readonly $ref: "#/$defs/MonitorFilter";
|
|
72
|
+
};
|
|
73
|
+
readonly leaseSeconds: {
|
|
74
|
+
readonly type: "integer";
|
|
75
|
+
readonly minimum: 10;
|
|
76
|
+
readonly maximum: 3600;
|
|
77
|
+
readonly description: "How long the subscription lives unless renewed. Default 300.";
|
|
78
|
+
};
|
|
79
|
+
readonly maxEventsPerSecond: {
|
|
80
|
+
readonly type: "integer";
|
|
81
|
+
readonly minimum: 1;
|
|
82
|
+
readonly maximum: 1000;
|
|
83
|
+
readonly description: "Rate ceiling the subscriber can absorb; the mediator MAY apply a lower one. Events over the ceiling are counted as dropped, never queued.";
|
|
84
|
+
};
|
|
85
|
+
readonly subscriptionId: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly minLength: 1;
|
|
88
|
+
readonly description: "Renew or re-filter an existing subscription held by the same requester. Omitted = create a new one.";
|
|
89
|
+
};
|
|
90
|
+
readonly ext: {
|
|
91
|
+
readonly $ref: "#/$defs/Ext";
|
|
92
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly $defs: {
|
|
96
|
+
readonly Response: {
|
|
97
|
+
readonly $anchor: "response";
|
|
98
|
+
readonly title: "Messaging — Subscribe to Traffic Monitor — response payload";
|
|
99
|
+
readonly description: "The success response to a messaging/monitor/subscribe request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/monitor/subscribe/0.1#response.";
|
|
100
|
+
readonly type: "object";
|
|
101
|
+
readonly additionalProperties: false;
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly subscriptionId: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly minLength: 1;
|
|
106
|
+
};
|
|
107
|
+
readonly expiresAt: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly format: "date-time";
|
|
110
|
+
};
|
|
111
|
+
readonly filter: {
|
|
112
|
+
readonly $ref: "#/$defs/MonitorFilter";
|
|
113
|
+
readonly description: "The filter in force, after the mediator narrowed it to what the requester is entitled to see.";
|
|
114
|
+
};
|
|
115
|
+
readonly maxEventsPerSecond: {
|
|
116
|
+
readonly type: "integer";
|
|
117
|
+
readonly minimum: 1;
|
|
118
|
+
readonly description: "The rate ceiling in force.";
|
|
119
|
+
};
|
|
120
|
+
readonly ext: {
|
|
121
|
+
readonly $ref: "#/$defs/Ext";
|
|
122
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly required: readonly ["subscriptionId", "expiresAt", "filter", "maxEventsPerSecond"];
|
|
126
|
+
};
|
|
127
|
+
readonly Ext: {
|
|
128
|
+
readonly title: "Ext";
|
|
129
|
+
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.";
|
|
130
|
+
readonly type: "object";
|
|
131
|
+
readonly minProperties: 1;
|
|
132
|
+
readonly additionalProperties: true;
|
|
133
|
+
readonly propertyNames: {
|
|
134
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
readonly MonitorFilter: {
|
|
138
|
+
readonly title: "MonitorFilter";
|
|
139
|
+
readonly type: "object";
|
|
140
|
+
readonly additionalProperties: false;
|
|
141
|
+
readonly description: "Selects which events a monitor subscription receives. Every member present narrows the selection (members are ANDed; values within one member are ORed). An empty filter selects everything the requester is entitled to see.";
|
|
142
|
+
readonly properties: {
|
|
143
|
+
readonly dids: {
|
|
144
|
+
readonly type: "array";
|
|
145
|
+
readonly minItems: 1;
|
|
146
|
+
readonly maxItems: 100;
|
|
147
|
+
readonly uniqueItems: true;
|
|
148
|
+
readonly items: {
|
|
149
|
+
readonly $ref: "#/$defs/Vid";
|
|
150
|
+
};
|
|
151
|
+
readonly description: "Only events whose `from` or `to` is one of these accounts.";
|
|
152
|
+
};
|
|
153
|
+
readonly directions: {
|
|
154
|
+
readonly type: "array";
|
|
155
|
+
readonly minItems: 1;
|
|
156
|
+
readonly uniqueItems: true;
|
|
157
|
+
readonly items: {
|
|
158
|
+
readonly $ref: "#/$defs/TrafficDirection";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
readonly stages: {
|
|
162
|
+
readonly type: "array";
|
|
163
|
+
readonly minItems: 1;
|
|
164
|
+
readonly uniqueItems: true;
|
|
165
|
+
readonly items: {
|
|
166
|
+
readonly $ref: "#/$defs/TrafficStage";
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
readonly protocols: {
|
|
170
|
+
readonly type: "array";
|
|
171
|
+
readonly minItems: 1;
|
|
172
|
+
readonly uniqueItems: true;
|
|
173
|
+
readonly items: {
|
|
174
|
+
readonly $ref: "#/$defs/WireProtocol";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
readonly channels: {
|
|
178
|
+
readonly type: "array";
|
|
179
|
+
readonly minItems: 1;
|
|
180
|
+
readonly uniqueItems: true;
|
|
181
|
+
readonly items: {
|
|
182
|
+
readonly $ref: "#/$defs/TrafficChannel";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
readonly messageTypePrefixes: {
|
|
186
|
+
readonly type: "array";
|
|
187
|
+
readonly minItems: 1;
|
|
188
|
+
readonly maxItems: 20;
|
|
189
|
+
readonly uniqueItems: true;
|
|
190
|
+
readonly items: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
readonly minLength: 1;
|
|
193
|
+
readonly maxLength: 512;
|
|
194
|
+
};
|
|
195
|
+
readonly description: "Only events whose `messageType` starts with one of these strings. Events with no `messageType` never match when this member is present.";
|
|
196
|
+
};
|
|
197
|
+
readonly failuresOnly: {
|
|
198
|
+
readonly type: "boolean";
|
|
199
|
+
readonly description: "Only events that carry an `outcome`.";
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
readonly TrafficChannel: {
|
|
204
|
+
readonly title: "TrafficChannel";
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
readonly enum: readonly ["websocket", "rest", "peerMediator", "internal"];
|
|
207
|
+
readonly description: "How the traffic reached or left the mediator. `peerMediator` is mediator-to-mediator forwarding.";
|
|
208
|
+
};
|
|
209
|
+
readonly WireProtocol: {
|
|
210
|
+
readonly title: "WireProtocol";
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly enum: readonly ["didcomm", "didcommV1", "tsp", "other"];
|
|
213
|
+
readonly description: "The protocol a message travelled in, as the mediator detected it from the wire form. `didcomm` is DIDComm v2 (JWE/JWS); `didcommV1` is a DIDComm v1 envelope; `tsp` is a Trust Spanning Protocol message; `other` is anything the mediator could not classify.";
|
|
214
|
+
};
|
|
215
|
+
readonly TrafficStage: {
|
|
216
|
+
readonly title: "TrafficStage";
|
|
217
|
+
readonly type: "string";
|
|
218
|
+
readonly enum: readonly ["received", "stored", "delivered", "forwarded", "refused", "deleted", "expired", "purged"];
|
|
219
|
+
readonly description: "What happened. `received`: a frame arrived. `stored`: it was queued for a local account. `delivered`: handed to its recipient. `forwarded`: relayed to another mediator. `refused`: rejected (see the event's `outcome`). `deleted`: removed by its recipient or an administrator. `expired`: removed by expiry. `purged`: removed by a queue purge.";
|
|
220
|
+
};
|
|
221
|
+
readonly TrafficDirection: {
|
|
222
|
+
readonly title: "TrafficDirection";
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly enum: readonly ["inbound", "outbound", "internal"];
|
|
225
|
+
readonly description: "`inbound`: arriving at the mediator. `outbound`: leaving it (delivery to a recipient, or a forward to another mediator). `internal`: a state change with no wire traffic (expiry, deletion, purge).";
|
|
226
|
+
};
|
|
227
|
+
readonly Vid: {
|
|
228
|
+
readonly title: "Vid";
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
readonly minLength: 1;
|
|
231
|
+
readonly description: "A Verifiable Identifier (SPEC §4.8). For a mediator-served account this is the account's controlling DID, carried verbatim and compared by exact string equality. For privacy — and because some mediators key accounts by a one-way hash and never hold the full DID — a stable hash of the DID (e.g. its SHA-256 digest) is an equally valid value here: producer and consumer simply agree on the same opaque identifier and compare by exact string equality. The field carries whichever form the issuing mediator uses.";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
236
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
237
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
238
|
+
readonly $ref: "#/$defs/Response";
|
|
239
|
+
readonly $defs: {
|
|
240
|
+
readonly Response: {
|
|
241
|
+
readonly $anchor: "response";
|
|
242
|
+
readonly title: "Messaging — Subscribe to Traffic Monitor — response payload";
|
|
243
|
+
readonly description: "The success response to a messaging/monitor/subscribe request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/monitor/subscribe/0.1#response.";
|
|
244
|
+
readonly type: "object";
|
|
245
|
+
readonly additionalProperties: false;
|
|
246
|
+
readonly properties: {
|
|
247
|
+
readonly subscriptionId: {
|
|
248
|
+
readonly type: "string";
|
|
249
|
+
readonly minLength: 1;
|
|
250
|
+
};
|
|
251
|
+
readonly expiresAt: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly format: "date-time";
|
|
254
|
+
};
|
|
255
|
+
readonly filter: {
|
|
256
|
+
readonly $ref: "#/$defs/MonitorFilter";
|
|
257
|
+
readonly description: "The filter in force, after the mediator narrowed it to what the requester is entitled to see.";
|
|
258
|
+
};
|
|
259
|
+
readonly maxEventsPerSecond: {
|
|
260
|
+
readonly type: "integer";
|
|
261
|
+
readonly minimum: 1;
|
|
262
|
+
readonly description: "The rate ceiling in force.";
|
|
263
|
+
};
|
|
264
|
+
readonly ext: {
|
|
265
|
+
readonly $ref: "#/$defs/Ext";
|
|
266
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
readonly required: readonly ["subscriptionId", "expiresAt", "filter", "maxEventsPerSecond"];
|
|
270
|
+
};
|
|
271
|
+
readonly Ext: {
|
|
272
|
+
readonly title: "Ext";
|
|
273
|
+
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.";
|
|
274
|
+
readonly type: "object";
|
|
275
|
+
readonly minProperties: 1;
|
|
276
|
+
readonly additionalProperties: true;
|
|
277
|
+
readonly propertyNames: {
|
|
278
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
readonly MonitorFilter: {
|
|
282
|
+
readonly title: "MonitorFilter";
|
|
283
|
+
readonly type: "object";
|
|
284
|
+
readonly additionalProperties: false;
|
|
285
|
+
readonly description: "Selects which events a monitor subscription receives. Every member present narrows the selection (members are ANDed; values within one member are ORed). An empty filter selects everything the requester is entitled to see.";
|
|
286
|
+
readonly properties: {
|
|
287
|
+
readonly dids: {
|
|
288
|
+
readonly type: "array";
|
|
289
|
+
readonly minItems: 1;
|
|
290
|
+
readonly maxItems: 100;
|
|
291
|
+
readonly uniqueItems: true;
|
|
292
|
+
readonly items: {
|
|
293
|
+
readonly $ref: "#/$defs/Vid";
|
|
294
|
+
};
|
|
295
|
+
readonly description: "Only events whose `from` or `to` is one of these accounts.";
|
|
296
|
+
};
|
|
297
|
+
readonly directions: {
|
|
298
|
+
readonly type: "array";
|
|
299
|
+
readonly minItems: 1;
|
|
300
|
+
readonly uniqueItems: true;
|
|
301
|
+
readonly items: {
|
|
302
|
+
readonly $ref: "#/$defs/TrafficDirection";
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
readonly stages: {
|
|
306
|
+
readonly type: "array";
|
|
307
|
+
readonly minItems: 1;
|
|
308
|
+
readonly uniqueItems: true;
|
|
309
|
+
readonly items: {
|
|
310
|
+
readonly $ref: "#/$defs/TrafficStage";
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly protocols: {
|
|
314
|
+
readonly type: "array";
|
|
315
|
+
readonly minItems: 1;
|
|
316
|
+
readonly uniqueItems: true;
|
|
317
|
+
readonly items: {
|
|
318
|
+
readonly $ref: "#/$defs/WireProtocol";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
readonly channels: {
|
|
322
|
+
readonly type: "array";
|
|
323
|
+
readonly minItems: 1;
|
|
324
|
+
readonly uniqueItems: true;
|
|
325
|
+
readonly items: {
|
|
326
|
+
readonly $ref: "#/$defs/TrafficChannel";
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
readonly messageTypePrefixes: {
|
|
330
|
+
readonly type: "array";
|
|
331
|
+
readonly minItems: 1;
|
|
332
|
+
readonly maxItems: 20;
|
|
333
|
+
readonly uniqueItems: true;
|
|
334
|
+
readonly items: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly minLength: 1;
|
|
337
|
+
readonly maxLength: 512;
|
|
338
|
+
};
|
|
339
|
+
readonly description: "Only events whose `messageType` starts with one of these strings. Events with no `messageType` never match when this member is present.";
|
|
340
|
+
};
|
|
341
|
+
readonly failuresOnly: {
|
|
342
|
+
readonly type: "boolean";
|
|
343
|
+
readonly description: "Only events that carry an `outcome`.";
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
readonly TrafficChannel: {
|
|
348
|
+
readonly title: "TrafficChannel";
|
|
349
|
+
readonly type: "string";
|
|
350
|
+
readonly enum: readonly ["websocket", "rest", "peerMediator", "internal"];
|
|
351
|
+
readonly description: "How the traffic reached or left the mediator. `peerMediator` is mediator-to-mediator forwarding.";
|
|
352
|
+
};
|
|
353
|
+
readonly WireProtocol: {
|
|
354
|
+
readonly title: "WireProtocol";
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
readonly enum: readonly ["didcomm", "didcommV1", "tsp", "other"];
|
|
357
|
+
readonly description: "The protocol a message travelled in, as the mediator detected it from the wire form. `didcomm` is DIDComm v2 (JWE/JWS); `didcommV1` is a DIDComm v1 envelope; `tsp` is a Trust Spanning Protocol message; `other` is anything the mediator could not classify.";
|
|
358
|
+
};
|
|
359
|
+
readonly TrafficStage: {
|
|
360
|
+
readonly title: "TrafficStage";
|
|
361
|
+
readonly type: "string";
|
|
362
|
+
readonly enum: readonly ["received", "stored", "delivered", "forwarded", "refused", "deleted", "expired", "purged"];
|
|
363
|
+
readonly description: "What happened. `received`: a frame arrived. `stored`: it was queued for a local account. `delivered`: handed to its recipient. `forwarded`: relayed to another mediator. `refused`: rejected (see the event's `outcome`). `deleted`: removed by its recipient or an administrator. `expired`: removed by expiry. `purged`: removed by a queue purge.";
|
|
364
|
+
};
|
|
365
|
+
readonly TrafficDirection: {
|
|
366
|
+
readonly title: "TrafficDirection";
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
readonly enum: readonly ["inbound", "outbound", "internal"];
|
|
369
|
+
readonly description: "`inbound`: arriving at the mediator. `outbound`: leaving it (delivery to a recipient, or a forward to another mediator). `internal`: a state change with no wire traffic (expiry, deletion, purge).";
|
|
370
|
+
};
|
|
371
|
+
readonly Vid: {
|
|
372
|
+
readonly title: "Vid";
|
|
373
|
+
readonly type: "string";
|
|
374
|
+
readonly minLength: 1;
|
|
375
|
+
readonly description: "A Verifiable Identifier (SPEC §4.8). For a mediator-served account this is the account's controlling DID, carried verbatim and compared by exact string equality. For privacy — and because some mediators key accounts by a one-way hash and never hold the full DID — a stable hash of the DID (e.g. its SHA-256 digest) is an equally valid value here: producer and consumer simply agree on the same opaque identifier and compare by exact string equality. The field carries whichever form the issuing mediator uses.";
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
381
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
382
|
+
* per-specification and cannot be derived from the document alone, and
|
|
383
|
+
* item 2 needs the schema this carries.
|
|
384
|
+
*/
|
|
385
|
+
export declare const SPEC: {
|
|
386
|
+
readonly typeUri: "https://trusttasks.org/spec/messaging/monitor/subscribe/0.1";
|
|
387
|
+
readonly isBearer: false;
|
|
388
|
+
readonly isProofRequired: true;
|
|
389
|
+
readonly isRecipientRequired: true;
|
|
390
|
+
readonly isIssuedAtRequired: true;
|
|
391
|
+
readonly payloadSchema: {
|
|
392
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
393
|
+
readonly $id: "https://trusttasks.org/spec/messaging/monitor/subscribe/0.1";
|
|
394
|
+
readonly title: "Messaging — Subscribe to Traffic Monitor — payload";
|
|
395
|
+
readonly type: "object";
|
|
396
|
+
readonly additionalProperties: false;
|
|
397
|
+
readonly properties: {
|
|
398
|
+
readonly filter: {
|
|
399
|
+
readonly $ref: "#/$defs/MonitorFilter";
|
|
400
|
+
};
|
|
401
|
+
readonly leaseSeconds: {
|
|
402
|
+
readonly type: "integer";
|
|
403
|
+
readonly minimum: 10;
|
|
404
|
+
readonly maximum: 3600;
|
|
405
|
+
readonly description: "How long the subscription lives unless renewed. Default 300.";
|
|
406
|
+
};
|
|
407
|
+
readonly maxEventsPerSecond: {
|
|
408
|
+
readonly type: "integer";
|
|
409
|
+
readonly minimum: 1;
|
|
410
|
+
readonly maximum: 1000;
|
|
411
|
+
readonly description: "Rate ceiling the subscriber can absorb; the mediator MAY apply a lower one. Events over the ceiling are counted as dropped, never queued.";
|
|
412
|
+
};
|
|
413
|
+
readonly subscriptionId: {
|
|
414
|
+
readonly type: "string";
|
|
415
|
+
readonly minLength: 1;
|
|
416
|
+
readonly description: "Renew or re-filter an existing subscription held by the same requester. Omitted = create a new one.";
|
|
417
|
+
};
|
|
418
|
+
readonly ext: {
|
|
419
|
+
readonly $ref: "#/$defs/Ext";
|
|
420
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
readonly $defs: {
|
|
424
|
+
readonly Response: {
|
|
425
|
+
readonly $anchor: "response";
|
|
426
|
+
readonly title: "Messaging — Subscribe to Traffic Monitor — response payload";
|
|
427
|
+
readonly description: "The success response to a messaging/monitor/subscribe request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/monitor/subscribe/0.1#response.";
|
|
428
|
+
readonly type: "object";
|
|
429
|
+
readonly additionalProperties: false;
|
|
430
|
+
readonly properties: {
|
|
431
|
+
readonly subscriptionId: {
|
|
432
|
+
readonly type: "string";
|
|
433
|
+
readonly minLength: 1;
|
|
434
|
+
};
|
|
435
|
+
readonly expiresAt: {
|
|
436
|
+
readonly type: "string";
|
|
437
|
+
readonly format: "date-time";
|
|
438
|
+
};
|
|
439
|
+
readonly filter: {
|
|
440
|
+
readonly $ref: "#/$defs/MonitorFilter";
|
|
441
|
+
readonly description: "The filter in force, after the mediator narrowed it to what the requester is entitled to see.";
|
|
442
|
+
};
|
|
443
|
+
readonly maxEventsPerSecond: {
|
|
444
|
+
readonly type: "integer";
|
|
445
|
+
readonly minimum: 1;
|
|
446
|
+
readonly description: "The rate ceiling in force.";
|
|
447
|
+
};
|
|
448
|
+
readonly ext: {
|
|
449
|
+
readonly $ref: "#/$defs/Ext";
|
|
450
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly required: readonly ["subscriptionId", "expiresAt", "filter", "maxEventsPerSecond"];
|
|
454
|
+
};
|
|
455
|
+
readonly Ext: {
|
|
456
|
+
readonly title: "Ext";
|
|
457
|
+
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.";
|
|
458
|
+
readonly type: "object";
|
|
459
|
+
readonly minProperties: 1;
|
|
460
|
+
readonly additionalProperties: true;
|
|
461
|
+
readonly propertyNames: {
|
|
462
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
readonly MonitorFilter: {
|
|
466
|
+
readonly title: "MonitorFilter";
|
|
467
|
+
readonly type: "object";
|
|
468
|
+
readonly additionalProperties: false;
|
|
469
|
+
readonly description: "Selects which events a monitor subscription receives. Every member present narrows the selection (members are ANDed; values within one member are ORed). An empty filter selects everything the requester is entitled to see.";
|
|
470
|
+
readonly properties: {
|
|
471
|
+
readonly dids: {
|
|
472
|
+
readonly type: "array";
|
|
473
|
+
readonly minItems: 1;
|
|
474
|
+
readonly maxItems: 100;
|
|
475
|
+
readonly uniqueItems: true;
|
|
476
|
+
readonly items: {
|
|
477
|
+
readonly $ref: "#/$defs/Vid";
|
|
478
|
+
};
|
|
479
|
+
readonly description: "Only events whose `from` or `to` is one of these accounts.";
|
|
480
|
+
};
|
|
481
|
+
readonly directions: {
|
|
482
|
+
readonly type: "array";
|
|
483
|
+
readonly minItems: 1;
|
|
484
|
+
readonly uniqueItems: true;
|
|
485
|
+
readonly items: {
|
|
486
|
+
readonly $ref: "#/$defs/TrafficDirection";
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
readonly stages: {
|
|
490
|
+
readonly type: "array";
|
|
491
|
+
readonly minItems: 1;
|
|
492
|
+
readonly uniqueItems: true;
|
|
493
|
+
readonly items: {
|
|
494
|
+
readonly $ref: "#/$defs/TrafficStage";
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
readonly protocols: {
|
|
498
|
+
readonly type: "array";
|
|
499
|
+
readonly minItems: 1;
|
|
500
|
+
readonly uniqueItems: true;
|
|
501
|
+
readonly items: {
|
|
502
|
+
readonly $ref: "#/$defs/WireProtocol";
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
readonly channels: {
|
|
506
|
+
readonly type: "array";
|
|
507
|
+
readonly minItems: 1;
|
|
508
|
+
readonly uniqueItems: true;
|
|
509
|
+
readonly items: {
|
|
510
|
+
readonly $ref: "#/$defs/TrafficChannel";
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
readonly messageTypePrefixes: {
|
|
514
|
+
readonly type: "array";
|
|
515
|
+
readonly minItems: 1;
|
|
516
|
+
readonly maxItems: 20;
|
|
517
|
+
readonly uniqueItems: true;
|
|
518
|
+
readonly items: {
|
|
519
|
+
readonly type: "string";
|
|
520
|
+
readonly minLength: 1;
|
|
521
|
+
readonly maxLength: 512;
|
|
522
|
+
};
|
|
523
|
+
readonly description: "Only events whose `messageType` starts with one of these strings. Events with no `messageType` never match when this member is present.";
|
|
524
|
+
};
|
|
525
|
+
readonly failuresOnly: {
|
|
526
|
+
readonly type: "boolean";
|
|
527
|
+
readonly description: "Only events that carry an `outcome`.";
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
readonly TrafficChannel: {
|
|
532
|
+
readonly title: "TrafficChannel";
|
|
533
|
+
readonly type: "string";
|
|
534
|
+
readonly enum: readonly ["websocket", "rest", "peerMediator", "internal"];
|
|
535
|
+
readonly description: "How the traffic reached or left the mediator. `peerMediator` is mediator-to-mediator forwarding.";
|
|
536
|
+
};
|
|
537
|
+
readonly WireProtocol: {
|
|
538
|
+
readonly title: "WireProtocol";
|
|
539
|
+
readonly type: "string";
|
|
540
|
+
readonly enum: readonly ["didcomm", "didcommV1", "tsp", "other"];
|
|
541
|
+
readonly description: "The protocol a message travelled in, as the mediator detected it from the wire form. `didcomm` is DIDComm v2 (JWE/JWS); `didcommV1` is a DIDComm v1 envelope; `tsp` is a Trust Spanning Protocol message; `other` is anything the mediator could not classify.";
|
|
542
|
+
};
|
|
543
|
+
readonly TrafficStage: {
|
|
544
|
+
readonly title: "TrafficStage";
|
|
545
|
+
readonly type: "string";
|
|
546
|
+
readonly enum: readonly ["received", "stored", "delivered", "forwarded", "refused", "deleted", "expired", "purged"];
|
|
547
|
+
readonly description: "What happened. `received`: a frame arrived. `stored`: it was queued for a local account. `delivered`: handed to its recipient. `forwarded`: relayed to another mediator. `refused`: rejected (see the event's `outcome`). `deleted`: removed by its recipient or an administrator. `expired`: removed by expiry. `purged`: removed by a queue purge.";
|
|
548
|
+
};
|
|
549
|
+
readonly TrafficDirection: {
|
|
550
|
+
readonly title: "TrafficDirection";
|
|
551
|
+
readonly type: "string";
|
|
552
|
+
readonly enum: readonly ["inbound", "outbound", "internal"];
|
|
553
|
+
readonly description: "`inbound`: arriving at the mediator. `outbound`: leaving it (delivery to a recipient, or a forward to another mediator). `internal`: a state change with no wire traffic (expiry, deletion, purge).";
|
|
554
|
+
};
|
|
555
|
+
readonly Vid: {
|
|
556
|
+
readonly title: "Vid";
|
|
557
|
+
readonly type: "string";
|
|
558
|
+
readonly minLength: 1;
|
|
559
|
+
readonly description: "A Verifiable Identifier (SPEC §4.8). For a mediator-served account this is the account's controlling DID, carried verbatim and compared by exact string equality. For privacy — and because some mediators key accounts by a one-way hash and never hold the full DID — a stable hash of the DID (e.g. its SHA-256 digest) is an equally valid value here: producer and consumer simply agree on the same opaque identifier and compare by exact string equality. The field carries whichever form the issuing mediator uses.";
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
/**
|
|
565
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
566
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
567
|
+
* parties (§7.3 item 5).
|
|
568
|
+
*/
|
|
569
|
+
export declare const RESPONSE_SPEC: {
|
|
570
|
+
readonly typeUri: "https://trusttasks.org/spec/messaging/monitor/subscribe/0.1#response";
|
|
571
|
+
readonly isBearer: false;
|
|
572
|
+
readonly isProofRequired: false;
|
|
573
|
+
readonly isRecipientRequired: true;
|
|
574
|
+
readonly isIssuedAtRequired: true;
|
|
575
|
+
readonly payloadSchema: {
|
|
576
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
577
|
+
readonly $ref: "#/$defs/Response";
|
|
578
|
+
readonly $defs: {
|
|
579
|
+
readonly Response: {
|
|
580
|
+
readonly $anchor: "response";
|
|
581
|
+
readonly title: "Messaging — Subscribe to Traffic Monitor — response payload";
|
|
582
|
+
readonly description: "The success response to a messaging/monitor/subscribe request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/monitor/subscribe/0.1#response.";
|
|
583
|
+
readonly type: "object";
|
|
584
|
+
readonly additionalProperties: false;
|
|
585
|
+
readonly properties: {
|
|
586
|
+
readonly subscriptionId: {
|
|
587
|
+
readonly type: "string";
|
|
588
|
+
readonly minLength: 1;
|
|
589
|
+
};
|
|
590
|
+
readonly expiresAt: {
|
|
591
|
+
readonly type: "string";
|
|
592
|
+
readonly format: "date-time";
|
|
593
|
+
};
|
|
594
|
+
readonly filter: {
|
|
595
|
+
readonly $ref: "#/$defs/MonitorFilter";
|
|
596
|
+
readonly description: "The filter in force, after the mediator narrowed it to what the requester is entitled to see.";
|
|
597
|
+
};
|
|
598
|
+
readonly maxEventsPerSecond: {
|
|
599
|
+
readonly type: "integer";
|
|
600
|
+
readonly minimum: 1;
|
|
601
|
+
readonly description: "The rate ceiling in force.";
|
|
602
|
+
};
|
|
603
|
+
readonly ext: {
|
|
604
|
+
readonly $ref: "#/$defs/Ext";
|
|
605
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
readonly required: readonly ["subscriptionId", "expiresAt", "filter", "maxEventsPerSecond"];
|
|
609
|
+
};
|
|
610
|
+
readonly Ext: {
|
|
611
|
+
readonly title: "Ext";
|
|
612
|
+
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.";
|
|
613
|
+
readonly type: "object";
|
|
614
|
+
readonly minProperties: 1;
|
|
615
|
+
readonly additionalProperties: true;
|
|
616
|
+
readonly propertyNames: {
|
|
617
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
readonly MonitorFilter: {
|
|
621
|
+
readonly title: "MonitorFilter";
|
|
622
|
+
readonly type: "object";
|
|
623
|
+
readonly additionalProperties: false;
|
|
624
|
+
readonly description: "Selects which events a monitor subscription receives. Every member present narrows the selection (members are ANDed; values within one member are ORed). An empty filter selects everything the requester is entitled to see.";
|
|
625
|
+
readonly properties: {
|
|
626
|
+
readonly dids: {
|
|
627
|
+
readonly type: "array";
|
|
628
|
+
readonly minItems: 1;
|
|
629
|
+
readonly maxItems: 100;
|
|
630
|
+
readonly uniqueItems: true;
|
|
631
|
+
readonly items: {
|
|
632
|
+
readonly $ref: "#/$defs/Vid";
|
|
633
|
+
};
|
|
634
|
+
readonly description: "Only events whose `from` or `to` is one of these accounts.";
|
|
635
|
+
};
|
|
636
|
+
readonly directions: {
|
|
637
|
+
readonly type: "array";
|
|
638
|
+
readonly minItems: 1;
|
|
639
|
+
readonly uniqueItems: true;
|
|
640
|
+
readonly items: {
|
|
641
|
+
readonly $ref: "#/$defs/TrafficDirection";
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
readonly stages: {
|
|
645
|
+
readonly type: "array";
|
|
646
|
+
readonly minItems: 1;
|
|
647
|
+
readonly uniqueItems: true;
|
|
648
|
+
readonly items: {
|
|
649
|
+
readonly $ref: "#/$defs/TrafficStage";
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
readonly protocols: {
|
|
653
|
+
readonly type: "array";
|
|
654
|
+
readonly minItems: 1;
|
|
655
|
+
readonly uniqueItems: true;
|
|
656
|
+
readonly items: {
|
|
657
|
+
readonly $ref: "#/$defs/WireProtocol";
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
readonly channels: {
|
|
661
|
+
readonly type: "array";
|
|
662
|
+
readonly minItems: 1;
|
|
663
|
+
readonly uniqueItems: true;
|
|
664
|
+
readonly items: {
|
|
665
|
+
readonly $ref: "#/$defs/TrafficChannel";
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
readonly messageTypePrefixes: {
|
|
669
|
+
readonly type: "array";
|
|
670
|
+
readonly minItems: 1;
|
|
671
|
+
readonly maxItems: 20;
|
|
672
|
+
readonly uniqueItems: true;
|
|
673
|
+
readonly items: {
|
|
674
|
+
readonly type: "string";
|
|
675
|
+
readonly minLength: 1;
|
|
676
|
+
readonly maxLength: 512;
|
|
677
|
+
};
|
|
678
|
+
readonly description: "Only events whose `messageType` starts with one of these strings. Events with no `messageType` never match when this member is present.";
|
|
679
|
+
};
|
|
680
|
+
readonly failuresOnly: {
|
|
681
|
+
readonly type: "boolean";
|
|
682
|
+
readonly description: "Only events that carry an `outcome`.";
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
readonly TrafficChannel: {
|
|
687
|
+
readonly title: "TrafficChannel";
|
|
688
|
+
readonly type: "string";
|
|
689
|
+
readonly enum: readonly ["websocket", "rest", "peerMediator", "internal"];
|
|
690
|
+
readonly description: "How the traffic reached or left the mediator. `peerMediator` is mediator-to-mediator forwarding.";
|
|
691
|
+
};
|
|
692
|
+
readonly WireProtocol: {
|
|
693
|
+
readonly title: "WireProtocol";
|
|
694
|
+
readonly type: "string";
|
|
695
|
+
readonly enum: readonly ["didcomm", "didcommV1", "tsp", "other"];
|
|
696
|
+
readonly description: "The protocol a message travelled in, as the mediator detected it from the wire form. `didcomm` is DIDComm v2 (JWE/JWS); `didcommV1` is a DIDComm v1 envelope; `tsp` is a Trust Spanning Protocol message; `other` is anything the mediator could not classify.";
|
|
697
|
+
};
|
|
698
|
+
readonly TrafficStage: {
|
|
699
|
+
readonly title: "TrafficStage";
|
|
700
|
+
readonly type: "string";
|
|
701
|
+
readonly enum: readonly ["received", "stored", "delivered", "forwarded", "refused", "deleted", "expired", "purged"];
|
|
702
|
+
readonly description: "What happened. `received`: a frame arrived. `stored`: it was queued for a local account. `delivered`: handed to its recipient. `forwarded`: relayed to another mediator. `refused`: rejected (see the event's `outcome`). `deleted`: removed by its recipient or an administrator. `expired`: removed by expiry. `purged`: removed by a queue purge.";
|
|
703
|
+
};
|
|
704
|
+
readonly TrafficDirection: {
|
|
705
|
+
readonly title: "TrafficDirection";
|
|
706
|
+
readonly type: "string";
|
|
707
|
+
readonly enum: readonly ["inbound", "outbound", "internal"];
|
|
708
|
+
readonly description: "`inbound`: arriving at the mediator. `outbound`: leaving it (delivery to a recipient, or a forward to another mediator). `internal`: a state change with no wire traffic (expiry, deletion, purge).";
|
|
709
|
+
};
|
|
710
|
+
readonly Vid: {
|
|
711
|
+
readonly title: "Vid";
|
|
712
|
+
readonly type: "string";
|
|
713
|
+
readonly minLength: 1;
|
|
714
|
+
readonly description: "A Verifiable Identifier (SPEC §4.8). For a mediator-served account this is the account's controlling DID, carried verbatim and compared by exact string equality. For privacy — and because some mediators key accounts by a one-way hash and never hold the full DID — a stable hash of the DID (e.g. its SHA-256 digest) is an equally valid value here: producer and consumer simply agree on the same opaque identifier and compare by exact string equality. The field carries whichever form the issuing mediator uses.";
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
//# sourceMappingURL=payload.d.ts.map
|