@openvtc/trust-tasks 0.21.1 → 0.21.3
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 +66 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/attestation/config-report/0.1/payload.d.ts +378 -0
- package/dist/vta/attestation/config-report/0.1/payload.d.ts.map +1 -0
- package/dist/vta/attestation/config-report/0.1/payload.js +212 -0
- package/dist/vta/attestation/config-report/0.1/payload.js.map +1 -0
- package/dist/vta/attestation/report/0.1/payload.d.ts +350 -0
- package/dist/vta/attestation/report/0.1/payload.d.ts.map +1 -0
- package/dist/vta/attestation/report/0.1/payload.js +196 -0
- package/dist/vta/attestation/report/0.1/payload.js.map +1 -0
- package/dist/vta/attestation/status/0.1/payload.d.ts +274 -0
- package/dist/vta/attestation/status/0.1/payload.d.ts.map +1 -0
- package/dist/vta/attestation/status/0.1/payload.js +158 -0
- package/dist/vta/attestation/status/0.1/payload.js.map +1 -0
- package/dist/vta/services/report/0.1/payload.d.ts +618 -0
- package/dist/vta/services/report/0.1/payload.d.ts.map +1 -0
- package/dist/vta/services/report/0.1/payload.js +322 -0
- package/dist/vta/services/report/0.1/payload.js.map +1 -0
- package/dist/vta/services/update/1.1/payload.d.ts +490 -0
- package/dist/vta/services/update/1.1/payload.d.ts.map +1 -0
- package/dist/vta/services/update/1.1/payload.js +269 -0
- package/dist/vta/services/update/1.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +5 -0
- package/src/vta/attestation/config-report/0.1/payload.ts +273 -0
- package/src/vta/attestation/report/0.1/payload.ts +253 -0
- package/src/vta/attestation/status/0.1/payload.ts +203 -0
- package/src/vta/services/report/0.1/payload.ts +419 -0
- package/src/vta/services/update/1.1/payload.ts +326 -0
|
@@ -0,0 +1,618 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/services/report/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Asks an agent for its per-mediator inbound counts and each sender's last-seen mediator over a time window. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTAServicesReportPayload {
|
|
10
|
+
/**
|
|
11
|
+
* Lower bound, RFC 3339. Absent means as far back as the agent's telemetry goes.
|
|
12
|
+
*/
|
|
13
|
+
since?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Upper bound, RFC 3339. Absent means now.
|
|
16
|
+
*/
|
|
17
|
+
until?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
20
|
+
*/
|
|
21
|
+
ext?: Ext;
|
|
22
|
+
}
|
|
23
|
+
export interface VTAServicesReportResponsePayload {
|
|
24
|
+
/**
|
|
25
|
+
* The lower bound applied, when the request gave one.
|
|
26
|
+
*/
|
|
27
|
+
since?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The upper bound applied — now, when the request gave none.
|
|
30
|
+
*/
|
|
31
|
+
until: string;
|
|
32
|
+
/**
|
|
33
|
+
* One entry per mediator that carried inbound traffic in the window.
|
|
34
|
+
*
|
|
35
|
+
* @maxItems 1000
|
|
36
|
+
*/
|
|
37
|
+
mediators: MediatorStats[];
|
|
38
|
+
/**
|
|
39
|
+
* One entry per sender that reached the agent in the window.
|
|
40
|
+
*
|
|
41
|
+
* @maxItems 100000
|
|
42
|
+
*/
|
|
43
|
+
senders: SenderLastSeen[];
|
|
44
|
+
/**
|
|
45
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
46
|
+
*/
|
|
47
|
+
ext?: Ext;
|
|
48
|
+
}
|
|
49
|
+
export interface MediatorStats {
|
|
50
|
+
/**
|
|
51
|
+
* The mediator the traffic arrived through.
|
|
52
|
+
*/
|
|
53
|
+
mediatorDid: string;
|
|
54
|
+
/**
|
|
55
|
+
* Messages that arrived through it in the window, over every mediated transport.
|
|
56
|
+
*/
|
|
57
|
+
inboundCount: number;
|
|
58
|
+
/**
|
|
59
|
+
* The first arrival through it in the window.
|
|
60
|
+
*/
|
|
61
|
+
firstSeen: string;
|
|
62
|
+
/**
|
|
63
|
+
* The last arrival through it in the window.
|
|
64
|
+
*/
|
|
65
|
+
lastSeen: string;
|
|
66
|
+
}
|
|
67
|
+
export interface SenderLastSeen {
|
|
68
|
+
/**
|
|
69
|
+
* A sender that reached the agent in the window.
|
|
70
|
+
*/
|
|
71
|
+
senderDid: string;
|
|
72
|
+
/**
|
|
73
|
+
* The mediator its most recent message arrived through.
|
|
74
|
+
*/
|
|
75
|
+
lastSeenMediator: string;
|
|
76
|
+
/**
|
|
77
|
+
* The mediated transport the sender's most recent message arrived by. Absent when the agent's telemetry did not record it.
|
|
78
|
+
*/
|
|
79
|
+
lastSeenTransport?: "didcomm" | "tsp";
|
|
80
|
+
/**
|
|
81
|
+
* When that message arrived.
|
|
82
|
+
*/
|
|
83
|
+
lastSeenAt: string;
|
|
84
|
+
}
|
|
85
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
86
|
+
export type { Ext };
|
|
87
|
+
/** Trust Task type URI. */
|
|
88
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/services/report/0.1";
|
|
89
|
+
/** Stable alias for this specification's request payload shape. */
|
|
90
|
+
export type Payload = VTAServicesReportPayload;
|
|
91
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
92
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/services/report/0.1#response";
|
|
93
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
94
|
+
export type Response = VTAServicesReportResponsePayload;
|
|
95
|
+
/**
|
|
96
|
+
* This specification's payload schema, as a value.
|
|
97
|
+
*
|
|
98
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
99
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
100
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
101
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
102
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
103
|
+
*/
|
|
104
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
105
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
106
|
+
readonly $id: "https://trusttasks.org/spec/vta/services/report/0.1";
|
|
107
|
+
readonly title: "VTA Services — Report — payload";
|
|
108
|
+
readonly description: "Asks an agent for its per-mediator inbound counts and each sender's last-seen mediator over a time window. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
109
|
+
readonly type: "object";
|
|
110
|
+
readonly additionalProperties: false;
|
|
111
|
+
readonly properties: {
|
|
112
|
+
readonly since: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly format: "date-time";
|
|
115
|
+
readonly description: "Lower bound, RFC 3339. Absent means as far back as the agent's telemetry goes.";
|
|
116
|
+
};
|
|
117
|
+
readonly until: {
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly format: "date-time";
|
|
120
|
+
readonly description: "Upper bound, RFC 3339. Absent means now.";
|
|
121
|
+
};
|
|
122
|
+
readonly ext: {
|
|
123
|
+
readonly $ref: "#/$defs/Ext";
|
|
124
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly $defs: {
|
|
128
|
+
readonly MediatorStats: {
|
|
129
|
+
readonly type: "object";
|
|
130
|
+
readonly additionalProperties: false;
|
|
131
|
+
readonly required: readonly ["mediatorDid", "inboundCount", "firstSeen", "lastSeen"];
|
|
132
|
+
readonly properties: {
|
|
133
|
+
readonly mediatorDid: {
|
|
134
|
+
readonly type: "string";
|
|
135
|
+
readonly minLength: 1;
|
|
136
|
+
readonly maxLength: 1000;
|
|
137
|
+
readonly description: "The mediator the traffic arrived through.";
|
|
138
|
+
};
|
|
139
|
+
readonly inboundCount: {
|
|
140
|
+
readonly type: "integer";
|
|
141
|
+
readonly minimum: 0;
|
|
142
|
+
readonly description: "Messages that arrived through it in the window, over every mediated transport.";
|
|
143
|
+
};
|
|
144
|
+
readonly firstSeen: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
readonly format: "date-time";
|
|
147
|
+
readonly description: "The first arrival through it in the window.";
|
|
148
|
+
};
|
|
149
|
+
readonly lastSeen: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
readonly format: "date-time";
|
|
152
|
+
readonly description: "The last arrival through it in the window.";
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
readonly SenderLastSeen: {
|
|
157
|
+
readonly type: "object";
|
|
158
|
+
readonly additionalProperties: false;
|
|
159
|
+
readonly required: readonly ["senderDid", "lastSeenMediator", "lastSeenAt"];
|
|
160
|
+
readonly properties: {
|
|
161
|
+
readonly senderDid: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly minLength: 1;
|
|
164
|
+
readonly maxLength: 1000;
|
|
165
|
+
readonly description: "A sender that reached the agent in the window.";
|
|
166
|
+
};
|
|
167
|
+
readonly lastSeenMediator: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly minLength: 1;
|
|
170
|
+
readonly maxLength: 1000;
|
|
171
|
+
readonly description: "The mediator its most recent message arrived through.";
|
|
172
|
+
};
|
|
173
|
+
readonly lastSeenTransport: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly enum: readonly ["didcomm", "tsp"];
|
|
176
|
+
readonly description: "The mediated transport the sender's most recent message arrived by. Absent when the agent's telemetry did not record it.";
|
|
177
|
+
};
|
|
178
|
+
readonly lastSeenAt: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly format: "date-time";
|
|
181
|
+
readonly description: "When that message arrived.";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
readonly Response: {
|
|
186
|
+
readonly $anchor: "response";
|
|
187
|
+
readonly title: "VTA Services Report — response payload";
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
readonly additionalProperties: false;
|
|
190
|
+
readonly required: readonly ["until", "mediators", "senders"];
|
|
191
|
+
readonly properties: {
|
|
192
|
+
readonly since: {
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
readonly format: "date-time";
|
|
195
|
+
readonly description: "The lower bound applied, when the request gave one.";
|
|
196
|
+
};
|
|
197
|
+
readonly until: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
readonly format: "date-time";
|
|
200
|
+
readonly description: "The upper bound applied — now, when the request gave none.";
|
|
201
|
+
};
|
|
202
|
+
readonly mediators: {
|
|
203
|
+
readonly type: "array";
|
|
204
|
+
readonly maxItems: 1000;
|
|
205
|
+
readonly items: {
|
|
206
|
+
readonly $ref: "#/$defs/MediatorStats";
|
|
207
|
+
};
|
|
208
|
+
readonly description: "One entry per mediator that carried inbound traffic in the window.";
|
|
209
|
+
};
|
|
210
|
+
readonly senders: {
|
|
211
|
+
readonly type: "array";
|
|
212
|
+
readonly maxItems: 100000;
|
|
213
|
+
readonly items: {
|
|
214
|
+
readonly $ref: "#/$defs/SenderLastSeen";
|
|
215
|
+
};
|
|
216
|
+
readonly description: "One entry per sender that reached the agent in the window.";
|
|
217
|
+
};
|
|
218
|
+
readonly ext: {
|
|
219
|
+
readonly $ref: "#/$defs/Ext";
|
|
220
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
readonly Ext: {
|
|
225
|
+
readonly title: "Ext";
|
|
226
|
+
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.";
|
|
227
|
+
readonly type: "object";
|
|
228
|
+
readonly minProperties: 1;
|
|
229
|
+
readonly additionalProperties: true;
|
|
230
|
+
readonly propertyNames: {
|
|
231
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
237
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
238
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
239
|
+
readonly $ref: "#/$defs/Response";
|
|
240
|
+
readonly $defs: {
|
|
241
|
+
readonly MediatorStats: {
|
|
242
|
+
readonly type: "object";
|
|
243
|
+
readonly additionalProperties: false;
|
|
244
|
+
readonly required: readonly ["mediatorDid", "inboundCount", "firstSeen", "lastSeen"];
|
|
245
|
+
readonly properties: {
|
|
246
|
+
readonly mediatorDid: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly minLength: 1;
|
|
249
|
+
readonly maxLength: 1000;
|
|
250
|
+
readonly description: "The mediator the traffic arrived through.";
|
|
251
|
+
};
|
|
252
|
+
readonly inboundCount: {
|
|
253
|
+
readonly type: "integer";
|
|
254
|
+
readonly minimum: 0;
|
|
255
|
+
readonly description: "Messages that arrived through it in the window, over every mediated transport.";
|
|
256
|
+
};
|
|
257
|
+
readonly firstSeen: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly format: "date-time";
|
|
260
|
+
readonly description: "The first arrival through it in the window.";
|
|
261
|
+
};
|
|
262
|
+
readonly lastSeen: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly format: "date-time";
|
|
265
|
+
readonly description: "The last arrival through it in the window.";
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
readonly SenderLastSeen: {
|
|
270
|
+
readonly type: "object";
|
|
271
|
+
readonly additionalProperties: false;
|
|
272
|
+
readonly required: readonly ["senderDid", "lastSeenMediator", "lastSeenAt"];
|
|
273
|
+
readonly properties: {
|
|
274
|
+
readonly senderDid: {
|
|
275
|
+
readonly type: "string";
|
|
276
|
+
readonly minLength: 1;
|
|
277
|
+
readonly maxLength: 1000;
|
|
278
|
+
readonly description: "A sender that reached the agent in the window.";
|
|
279
|
+
};
|
|
280
|
+
readonly lastSeenMediator: {
|
|
281
|
+
readonly type: "string";
|
|
282
|
+
readonly minLength: 1;
|
|
283
|
+
readonly maxLength: 1000;
|
|
284
|
+
readonly description: "The mediator its most recent message arrived through.";
|
|
285
|
+
};
|
|
286
|
+
readonly lastSeenTransport: {
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
readonly enum: readonly ["didcomm", "tsp"];
|
|
289
|
+
readonly description: "The mediated transport the sender's most recent message arrived by. Absent when the agent's telemetry did not record it.";
|
|
290
|
+
};
|
|
291
|
+
readonly lastSeenAt: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly format: "date-time";
|
|
294
|
+
readonly description: "When that message arrived.";
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
readonly Response: {
|
|
299
|
+
readonly $anchor: "response";
|
|
300
|
+
readonly title: "VTA Services Report — response payload";
|
|
301
|
+
readonly type: "object";
|
|
302
|
+
readonly additionalProperties: false;
|
|
303
|
+
readonly required: readonly ["until", "mediators", "senders"];
|
|
304
|
+
readonly properties: {
|
|
305
|
+
readonly since: {
|
|
306
|
+
readonly type: "string";
|
|
307
|
+
readonly format: "date-time";
|
|
308
|
+
readonly description: "The lower bound applied, when the request gave one.";
|
|
309
|
+
};
|
|
310
|
+
readonly until: {
|
|
311
|
+
readonly type: "string";
|
|
312
|
+
readonly format: "date-time";
|
|
313
|
+
readonly description: "The upper bound applied — now, when the request gave none.";
|
|
314
|
+
};
|
|
315
|
+
readonly mediators: {
|
|
316
|
+
readonly type: "array";
|
|
317
|
+
readonly maxItems: 1000;
|
|
318
|
+
readonly items: {
|
|
319
|
+
readonly $ref: "#/$defs/MediatorStats";
|
|
320
|
+
};
|
|
321
|
+
readonly description: "One entry per mediator that carried inbound traffic in the window.";
|
|
322
|
+
};
|
|
323
|
+
readonly senders: {
|
|
324
|
+
readonly type: "array";
|
|
325
|
+
readonly maxItems: 100000;
|
|
326
|
+
readonly items: {
|
|
327
|
+
readonly $ref: "#/$defs/SenderLastSeen";
|
|
328
|
+
};
|
|
329
|
+
readonly description: "One entry per sender that reached the agent in the window.";
|
|
330
|
+
};
|
|
331
|
+
readonly ext: {
|
|
332
|
+
readonly $ref: "#/$defs/Ext";
|
|
333
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly Ext: {
|
|
338
|
+
readonly title: "Ext";
|
|
339
|
+
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.";
|
|
340
|
+
readonly type: "object";
|
|
341
|
+
readonly minProperties: 1;
|
|
342
|
+
readonly additionalProperties: true;
|
|
343
|
+
readonly propertyNames: {
|
|
344
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
351
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
352
|
+
* per-specification and cannot be derived from the document alone, and
|
|
353
|
+
* item 2 needs the schema this carries.
|
|
354
|
+
*/
|
|
355
|
+
export declare const SPEC: {
|
|
356
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/services/report/0.1";
|
|
357
|
+
readonly isBearer: false;
|
|
358
|
+
readonly isProofRequired: true;
|
|
359
|
+
readonly isRecipientRequired: true;
|
|
360
|
+
readonly isIssuedAtRequired: false;
|
|
361
|
+
readonly payloadSchema: {
|
|
362
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
363
|
+
readonly $id: "https://trusttasks.org/spec/vta/services/report/0.1";
|
|
364
|
+
readonly title: "VTA Services — Report — payload";
|
|
365
|
+
readonly description: "Asks an agent for its per-mediator inbound counts and each sender's last-seen mediator over a time window. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
366
|
+
readonly type: "object";
|
|
367
|
+
readonly additionalProperties: false;
|
|
368
|
+
readonly properties: {
|
|
369
|
+
readonly since: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
readonly format: "date-time";
|
|
372
|
+
readonly description: "Lower bound, RFC 3339. Absent means as far back as the agent's telemetry goes.";
|
|
373
|
+
};
|
|
374
|
+
readonly until: {
|
|
375
|
+
readonly type: "string";
|
|
376
|
+
readonly format: "date-time";
|
|
377
|
+
readonly description: "Upper bound, RFC 3339. Absent means now.";
|
|
378
|
+
};
|
|
379
|
+
readonly ext: {
|
|
380
|
+
readonly $ref: "#/$defs/Ext";
|
|
381
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
readonly $defs: {
|
|
385
|
+
readonly MediatorStats: {
|
|
386
|
+
readonly type: "object";
|
|
387
|
+
readonly additionalProperties: false;
|
|
388
|
+
readonly required: readonly ["mediatorDid", "inboundCount", "firstSeen", "lastSeen"];
|
|
389
|
+
readonly properties: {
|
|
390
|
+
readonly mediatorDid: {
|
|
391
|
+
readonly type: "string";
|
|
392
|
+
readonly minLength: 1;
|
|
393
|
+
readonly maxLength: 1000;
|
|
394
|
+
readonly description: "The mediator the traffic arrived through.";
|
|
395
|
+
};
|
|
396
|
+
readonly inboundCount: {
|
|
397
|
+
readonly type: "integer";
|
|
398
|
+
readonly minimum: 0;
|
|
399
|
+
readonly description: "Messages that arrived through it in the window, over every mediated transport.";
|
|
400
|
+
};
|
|
401
|
+
readonly firstSeen: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly format: "date-time";
|
|
404
|
+
readonly description: "The first arrival through it in the window.";
|
|
405
|
+
};
|
|
406
|
+
readonly lastSeen: {
|
|
407
|
+
readonly type: "string";
|
|
408
|
+
readonly format: "date-time";
|
|
409
|
+
readonly description: "The last arrival through it in the window.";
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
readonly SenderLastSeen: {
|
|
414
|
+
readonly type: "object";
|
|
415
|
+
readonly additionalProperties: false;
|
|
416
|
+
readonly required: readonly ["senderDid", "lastSeenMediator", "lastSeenAt"];
|
|
417
|
+
readonly properties: {
|
|
418
|
+
readonly senderDid: {
|
|
419
|
+
readonly type: "string";
|
|
420
|
+
readonly minLength: 1;
|
|
421
|
+
readonly maxLength: 1000;
|
|
422
|
+
readonly description: "A sender that reached the agent in the window.";
|
|
423
|
+
};
|
|
424
|
+
readonly lastSeenMediator: {
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
readonly minLength: 1;
|
|
427
|
+
readonly maxLength: 1000;
|
|
428
|
+
readonly description: "The mediator its most recent message arrived through.";
|
|
429
|
+
};
|
|
430
|
+
readonly lastSeenTransport: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly enum: readonly ["didcomm", "tsp"];
|
|
433
|
+
readonly description: "The mediated transport the sender's most recent message arrived by. Absent when the agent's telemetry did not record it.";
|
|
434
|
+
};
|
|
435
|
+
readonly lastSeenAt: {
|
|
436
|
+
readonly type: "string";
|
|
437
|
+
readonly format: "date-time";
|
|
438
|
+
readonly description: "When that message arrived.";
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
readonly Response: {
|
|
443
|
+
readonly $anchor: "response";
|
|
444
|
+
readonly title: "VTA Services Report — response payload";
|
|
445
|
+
readonly type: "object";
|
|
446
|
+
readonly additionalProperties: false;
|
|
447
|
+
readonly required: readonly ["until", "mediators", "senders"];
|
|
448
|
+
readonly properties: {
|
|
449
|
+
readonly since: {
|
|
450
|
+
readonly type: "string";
|
|
451
|
+
readonly format: "date-time";
|
|
452
|
+
readonly description: "The lower bound applied, when the request gave one.";
|
|
453
|
+
};
|
|
454
|
+
readonly until: {
|
|
455
|
+
readonly type: "string";
|
|
456
|
+
readonly format: "date-time";
|
|
457
|
+
readonly description: "The upper bound applied — now, when the request gave none.";
|
|
458
|
+
};
|
|
459
|
+
readonly mediators: {
|
|
460
|
+
readonly type: "array";
|
|
461
|
+
readonly maxItems: 1000;
|
|
462
|
+
readonly items: {
|
|
463
|
+
readonly $ref: "#/$defs/MediatorStats";
|
|
464
|
+
};
|
|
465
|
+
readonly description: "One entry per mediator that carried inbound traffic in the window.";
|
|
466
|
+
};
|
|
467
|
+
readonly senders: {
|
|
468
|
+
readonly type: "array";
|
|
469
|
+
readonly maxItems: 100000;
|
|
470
|
+
readonly items: {
|
|
471
|
+
readonly $ref: "#/$defs/SenderLastSeen";
|
|
472
|
+
};
|
|
473
|
+
readonly description: "One entry per sender that reached the agent in the window.";
|
|
474
|
+
};
|
|
475
|
+
readonly ext: {
|
|
476
|
+
readonly $ref: "#/$defs/Ext";
|
|
477
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
readonly Ext: {
|
|
482
|
+
readonly title: "Ext";
|
|
483
|
+
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.";
|
|
484
|
+
readonly type: "object";
|
|
485
|
+
readonly minProperties: 1;
|
|
486
|
+
readonly additionalProperties: true;
|
|
487
|
+
readonly propertyNames: {
|
|
488
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
/**
|
|
495
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
496
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
497
|
+
* parties (§7.3 item 5).
|
|
498
|
+
*/
|
|
499
|
+
export declare const RESPONSE_SPEC: {
|
|
500
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/services/report/0.1#response";
|
|
501
|
+
readonly isBearer: false;
|
|
502
|
+
readonly isProofRequired: false;
|
|
503
|
+
readonly isRecipientRequired: true;
|
|
504
|
+
readonly isIssuedAtRequired: false;
|
|
505
|
+
readonly payloadSchema: {
|
|
506
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
507
|
+
readonly $ref: "#/$defs/Response";
|
|
508
|
+
readonly $defs: {
|
|
509
|
+
readonly MediatorStats: {
|
|
510
|
+
readonly type: "object";
|
|
511
|
+
readonly additionalProperties: false;
|
|
512
|
+
readonly required: readonly ["mediatorDid", "inboundCount", "firstSeen", "lastSeen"];
|
|
513
|
+
readonly properties: {
|
|
514
|
+
readonly mediatorDid: {
|
|
515
|
+
readonly type: "string";
|
|
516
|
+
readonly minLength: 1;
|
|
517
|
+
readonly maxLength: 1000;
|
|
518
|
+
readonly description: "The mediator the traffic arrived through.";
|
|
519
|
+
};
|
|
520
|
+
readonly inboundCount: {
|
|
521
|
+
readonly type: "integer";
|
|
522
|
+
readonly minimum: 0;
|
|
523
|
+
readonly description: "Messages that arrived through it in the window, over every mediated transport.";
|
|
524
|
+
};
|
|
525
|
+
readonly firstSeen: {
|
|
526
|
+
readonly type: "string";
|
|
527
|
+
readonly format: "date-time";
|
|
528
|
+
readonly description: "The first arrival through it in the window.";
|
|
529
|
+
};
|
|
530
|
+
readonly lastSeen: {
|
|
531
|
+
readonly type: "string";
|
|
532
|
+
readonly format: "date-time";
|
|
533
|
+
readonly description: "The last arrival through it in the window.";
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
readonly SenderLastSeen: {
|
|
538
|
+
readonly type: "object";
|
|
539
|
+
readonly additionalProperties: false;
|
|
540
|
+
readonly required: readonly ["senderDid", "lastSeenMediator", "lastSeenAt"];
|
|
541
|
+
readonly properties: {
|
|
542
|
+
readonly senderDid: {
|
|
543
|
+
readonly type: "string";
|
|
544
|
+
readonly minLength: 1;
|
|
545
|
+
readonly maxLength: 1000;
|
|
546
|
+
readonly description: "A sender that reached the agent in the window.";
|
|
547
|
+
};
|
|
548
|
+
readonly lastSeenMediator: {
|
|
549
|
+
readonly type: "string";
|
|
550
|
+
readonly minLength: 1;
|
|
551
|
+
readonly maxLength: 1000;
|
|
552
|
+
readonly description: "The mediator its most recent message arrived through.";
|
|
553
|
+
};
|
|
554
|
+
readonly lastSeenTransport: {
|
|
555
|
+
readonly type: "string";
|
|
556
|
+
readonly enum: readonly ["didcomm", "tsp"];
|
|
557
|
+
readonly description: "The mediated transport the sender's most recent message arrived by. Absent when the agent's telemetry did not record it.";
|
|
558
|
+
};
|
|
559
|
+
readonly lastSeenAt: {
|
|
560
|
+
readonly type: "string";
|
|
561
|
+
readonly format: "date-time";
|
|
562
|
+
readonly description: "When that message arrived.";
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
readonly Response: {
|
|
567
|
+
readonly $anchor: "response";
|
|
568
|
+
readonly title: "VTA Services Report — response payload";
|
|
569
|
+
readonly type: "object";
|
|
570
|
+
readonly additionalProperties: false;
|
|
571
|
+
readonly required: readonly ["until", "mediators", "senders"];
|
|
572
|
+
readonly properties: {
|
|
573
|
+
readonly since: {
|
|
574
|
+
readonly type: "string";
|
|
575
|
+
readonly format: "date-time";
|
|
576
|
+
readonly description: "The lower bound applied, when the request gave one.";
|
|
577
|
+
};
|
|
578
|
+
readonly until: {
|
|
579
|
+
readonly type: "string";
|
|
580
|
+
readonly format: "date-time";
|
|
581
|
+
readonly description: "The upper bound applied — now, when the request gave none.";
|
|
582
|
+
};
|
|
583
|
+
readonly mediators: {
|
|
584
|
+
readonly type: "array";
|
|
585
|
+
readonly maxItems: 1000;
|
|
586
|
+
readonly items: {
|
|
587
|
+
readonly $ref: "#/$defs/MediatorStats";
|
|
588
|
+
};
|
|
589
|
+
readonly description: "One entry per mediator that carried inbound traffic in the window.";
|
|
590
|
+
};
|
|
591
|
+
readonly senders: {
|
|
592
|
+
readonly type: "array";
|
|
593
|
+
readonly maxItems: 100000;
|
|
594
|
+
readonly items: {
|
|
595
|
+
readonly $ref: "#/$defs/SenderLastSeen";
|
|
596
|
+
};
|
|
597
|
+
readonly description: "One entry per sender that reached the agent in the window.";
|
|
598
|
+
};
|
|
599
|
+
readonly ext: {
|
|
600
|
+
readonly $ref: "#/$defs/Ext";
|
|
601
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly Ext: {
|
|
606
|
+
readonly title: "Ext";
|
|
607
|
+
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.";
|
|
608
|
+
readonly type: "object";
|
|
609
|
+
readonly minProperties: 1;
|
|
610
|
+
readonly additionalProperties: true;
|
|
611
|
+
readonly propertyNames: {
|
|
612
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/services/report/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B;;;;OAIG;IACH,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,qDAA8D,CAAC;AAEvF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,wBAAwB,CAAC;AAE/C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,8DAAuE,CAAC;AAEzG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AAExD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmJjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+H1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|