@openvtc/trust-tasks 0.19.21 → 0.19.22

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/_shared/components.d.ts +54 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/messaging/_shared/0.1/messaging.d.ts +1 -1
  9. package/dist/messaging/_shared/0.1/messaging.d.ts.map +1 -1
  10. package/dist/messaging/account/add/0.1/payload.d.ts +274 -2
  11. package/dist/messaging/account/add/0.1/payload.d.ts.map +1 -1
  12. package/dist/messaging/account/add/0.1/payload.js +136 -0
  13. package/dist/messaging/account/add/0.1/payload.js.map +1 -1
  14. package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts +274 -2
  15. package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts.map +1 -1
  16. package/dist/messaging/account/change-queue-limits/0.1/payload.js +136 -0
  17. package/dist/messaging/account/change-queue-limits/0.1/payload.js.map +1 -1
  18. package/dist/messaging/account/change-type/0.1/payload.d.ts +274 -2
  19. package/dist/messaging/account/change-type/0.1/payload.d.ts.map +1 -1
  20. package/dist/messaging/account/change-type/0.1/payload.js +136 -0
  21. package/dist/messaging/account/change-type/0.1/payload.js.map +1 -1
  22. package/dist/messaging/account/get/0.1/payload.d.ts +286 -2
  23. package/dist/messaging/account/get/0.1/payload.d.ts.map +1 -1
  24. package/dist/messaging/account/get/0.1/payload.js +140 -0
  25. package/dist/messaging/account/get/0.1/payload.js.map +1 -1
  26. package/dist/messaging/account/list/0.1/payload.d.ts +286 -2
  27. package/dist/messaging/account/list/0.1/payload.d.ts.map +1 -1
  28. package/dist/messaging/account/list/0.1/payload.js +140 -0
  29. package/dist/messaging/account/list/0.1/payload.js.map +1 -1
  30. package/dist/messaging/account/update/0.1/payload.d.ts +274 -2
  31. package/dist/messaging/account/update/0.1/payload.d.ts.map +1 -1
  32. package/dist/messaging/account/update/0.1/payload.js +136 -0
  33. package/dist/messaging/account/update/0.1/payload.js.map +1 -1
  34. package/dist/vtc/vetting/vetters/show/0.1/payload.d.ts +378 -0
  35. package/dist/vtc/vetting/vetters/show/0.1/payload.d.ts.map +1 -0
  36. package/dist/vtc/vetting/vetters/show/0.1/payload.js +207 -0
  37. package/dist/vtc/vetting/vetters/show/0.1/payload.js.map +1 -0
  38. package/package.json +1 -1
  39. package/src/_shared/components.ts +54 -0
  40. package/src/index.ts +1 -0
  41. package/src/messaging/_shared/0.1/messaging.ts +1 -1
  42. package/src/messaging/account/add/0.1/payload.ts +138 -2
  43. package/src/messaging/account/change-queue-limits/0.1/payload.ts +138 -2
  44. package/src/messaging/account/change-type/0.1/payload.ts +138 -2
  45. package/src/messaging/account/get/0.1/payload.ts +146 -2
  46. package/src/messaging/account/list/0.1/payload.ts +146 -2
  47. package/src/messaging/account/update/0.1/payload.ts +138 -2
  48. package/src/vtc/vetting/vetters/show/0.1/payload.ts +267 -0
@@ -3,7 +3,7 @@
3
3
  * Source: specs/messaging/account/get/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Account, AccountType, Ext, MediatorAcl, QueueLimits, Vid } from "../../../../_shared/components.js";
6
+ import type { Account, AccountStats, AccountType, Ext, MediatorAcl, ProtocolCounts, QueueLimits, Vid } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  export interface MessagingGetAccountPayload {
@@ -15,6 +15,10 @@ export interface MessagingGetAccountPayload {
15
15
  * When true, the mediator includes each returned account's `lastReceivedAt` and `lastAuthenticatedAt`, where recorded. Omitted or false = neither is returned.
16
16
  */
17
17
  includeActivity?: boolean;
18
+ /**
19
+ * When true, the mediator includes each returned account's `stats` — its lifetime counters — where it keeps them. Omitted or false = no stats are returned.
20
+ */
21
+ includeStats?: boolean;
18
22
  /**
19
23
  * Ecosystem-defined extension members per SPEC.md §4.5.1.
20
24
  */
@@ -35,7 +39,7 @@ export interface MessagingGetAccountResponsePayload {
35
39
  }
36
40
 
37
41
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
38
- export type { Account, AccountType, Ext, MediatorAcl, QueueLimits, Vid };
42
+ export type { Account, AccountStats, AccountType, Ext, MediatorAcl, ProtocolCounts, QueueLimits, Vid };
39
43
 
40
44
  /** Trust Task type URI. */
41
45
  export const TYPE_URI = "https://trusttasks.org/spec/messaging/account/get/0.1" as const;
@@ -76,6 +80,10 @@ export const PAYLOAD_SCHEMA = {
76
80
  "type": "boolean",
77
81
  "description": "When true, the mediator includes each returned account's `lastReceivedAt` and `lastAuthenticatedAt`, where recorded. Omitted or false = neither is returned."
78
82
  },
83
+ "includeStats": {
84
+ "type": "boolean",
85
+ "description": "When true, the mediator includes each returned account's `stats` — its lifetime counters — where it keeps them. Omitted or false = no stats are returned."
86
+ },
79
87
  "ext": {
80
88
  "$ref": "#/$defs/Ext",
81
89
  "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
@@ -170,6 +178,74 @@ export const PAYLOAD_SCHEMA = {
170
178
  "type": "integer",
171
179
  "minimum": 0,
172
180
  "description": "Unix epoch seconds at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication."
181
+ },
182
+ "stats": {
183
+ "$ref": "#/$defs/AccountStats",
184
+ "description": "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`."
185
+ }
186
+ }
187
+ },
188
+ "AccountStats": {
189
+ "title": "AccountStats",
190
+ "type": "object",
191
+ "additionalProperties": false,
192
+ "description": "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.",
193
+ "properties": {
194
+ "messagesReceived": {
195
+ "type": "integer",
196
+ "minimum": 0,
197
+ "description": "Messages the mediator accepted addressed to this account."
198
+ },
199
+ "messagesSent": {
200
+ "type": "integer",
201
+ "minimum": 0,
202
+ "description": "Messages the mediator accepted from this account."
203
+ },
204
+ "bytesReceived": {
205
+ "type": "integer",
206
+ "minimum": 0,
207
+ "description": "Total size of the messages counted by messagesReceived."
208
+ },
209
+ "bytesSent": {
210
+ "type": "integer",
211
+ "minimum": 0,
212
+ "description": "Total size of the messages counted by messagesSent."
213
+ },
214
+ "receivedByProtocol": {
215
+ "$ref": "#/$defs/ProtocolCounts",
216
+ "description": "messagesReceived split by the wire protocol the message arrived in."
217
+ },
218
+ "sentByProtocol": {
219
+ "$ref": "#/$defs/ProtocolCounts",
220
+ "description": "messagesSent split by the wire protocol the message was sent in."
221
+ }
222
+ }
223
+ },
224
+ "ProtocolCounts": {
225
+ "title": "ProtocolCounts",
226
+ "type": "object",
227
+ "additionalProperties": false,
228
+ "description": "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.",
229
+ "properties": {
230
+ "didcomm": {
231
+ "type": "integer",
232
+ "minimum": 0,
233
+ "description": "DIDComm v2 (JWE/JWS)."
234
+ },
235
+ "didcommV1": {
236
+ "type": "integer",
237
+ "minimum": 0,
238
+ "description": "A DIDComm v1 envelope."
239
+ },
240
+ "tsp": {
241
+ "type": "integer",
242
+ "minimum": 0,
243
+ "description": "A Trust Spanning Protocol message."
244
+ },
245
+ "other": {
246
+ "type": "integer",
247
+ "minimum": 0,
248
+ "description": "Anything the mediator could not classify."
173
249
  }
174
250
  }
175
251
  },
@@ -372,6 +448,74 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
372
448
  "type": "integer",
373
449
  "minimum": 0,
374
450
  "description": "Unix epoch seconds at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication."
451
+ },
452
+ "stats": {
453
+ "$ref": "#/$defs/AccountStats",
454
+ "description": "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`."
455
+ }
456
+ }
457
+ },
458
+ "AccountStats": {
459
+ "title": "AccountStats",
460
+ "type": "object",
461
+ "additionalProperties": false,
462
+ "description": "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.",
463
+ "properties": {
464
+ "messagesReceived": {
465
+ "type": "integer",
466
+ "minimum": 0,
467
+ "description": "Messages the mediator accepted addressed to this account."
468
+ },
469
+ "messagesSent": {
470
+ "type": "integer",
471
+ "minimum": 0,
472
+ "description": "Messages the mediator accepted from this account."
473
+ },
474
+ "bytesReceived": {
475
+ "type": "integer",
476
+ "minimum": 0,
477
+ "description": "Total size of the messages counted by messagesReceived."
478
+ },
479
+ "bytesSent": {
480
+ "type": "integer",
481
+ "minimum": 0,
482
+ "description": "Total size of the messages counted by messagesSent."
483
+ },
484
+ "receivedByProtocol": {
485
+ "$ref": "#/$defs/ProtocolCounts",
486
+ "description": "messagesReceived split by the wire protocol the message arrived in."
487
+ },
488
+ "sentByProtocol": {
489
+ "$ref": "#/$defs/ProtocolCounts",
490
+ "description": "messagesSent split by the wire protocol the message was sent in."
491
+ }
492
+ }
493
+ },
494
+ "ProtocolCounts": {
495
+ "title": "ProtocolCounts",
496
+ "type": "object",
497
+ "additionalProperties": false,
498
+ "description": "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.",
499
+ "properties": {
500
+ "didcomm": {
501
+ "type": "integer",
502
+ "minimum": 0,
503
+ "description": "DIDComm v2 (JWE/JWS)."
504
+ },
505
+ "didcommV1": {
506
+ "type": "integer",
507
+ "minimum": 0,
508
+ "description": "A DIDComm v1 envelope."
509
+ },
510
+ "tsp": {
511
+ "type": "integer",
512
+ "minimum": 0,
513
+ "description": "A Trust Spanning Protocol message."
514
+ },
515
+ "other": {
516
+ "type": "integer",
517
+ "minimum": 0,
518
+ "description": "Anything the mediator could not classify."
375
519
  }
376
520
  }
377
521
  },
@@ -3,7 +3,7 @@
3
3
  * Source: specs/messaging/account/list/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Account, AccountType, Ext, MediatorAcl, QueueLimits, Vid } from "../../../../_shared/components.js";
6
+ import type { Account, AccountStats, AccountType, Ext, MediatorAcl, ProtocolCounts, QueueLimits, Vid } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  export interface MessagingListAccountsPayload {
@@ -23,6 +23,10 @@ export interface MessagingListAccountsPayload {
23
23
  * When true, the mediator includes each returned account's `lastReceivedAt` and `lastAuthenticatedAt`, where recorded. Omitted or false = neither is returned.
24
24
  */
25
25
  includeActivity?: boolean;
26
+ /**
27
+ * When true, the mediator includes each returned account's `stats` — its lifetime counters — where it keeps them. Omitted or false = no stats are returned.
28
+ */
29
+ includeStats?: boolean;
26
30
  /**
27
31
  * Ecosystem-defined extension members per SPEC.md §4.5.1.
28
32
  */
@@ -47,7 +51,7 @@ export interface MessagingListAccountsResponsePayload {
47
51
  }
48
52
 
49
53
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
50
- export type { Account, AccountType, Ext, MediatorAcl, QueueLimits, Vid };
54
+ export type { Account, AccountStats, AccountType, Ext, MediatorAcl, ProtocolCounts, QueueLimits, Vid };
51
55
 
52
56
  /** Trust Task type URI. */
53
57
  export const TYPE_URI = "https://trusttasks.org/spec/messaging/account/list/0.1" as const;
@@ -96,6 +100,10 @@ export const PAYLOAD_SCHEMA = {
96
100
  "type": "boolean",
97
101
  "description": "When true, the mediator includes each returned account's `lastReceivedAt` and `lastAuthenticatedAt`, where recorded. Omitted or false = neither is returned."
98
102
  },
103
+ "includeStats": {
104
+ "type": "boolean",
105
+ "description": "When true, the mediator includes each returned account's `stats` — its lifetime counters — where it keeps them. Omitted or false = no stats are returned."
106
+ },
99
107
  "ext": {
100
108
  "$ref": "#/$defs/Ext",
101
109
  "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
@@ -198,6 +206,74 @@ export const PAYLOAD_SCHEMA = {
198
206
  "type": "integer",
199
207
  "minimum": 0,
200
208
  "description": "Unix epoch seconds at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication."
209
+ },
210
+ "stats": {
211
+ "$ref": "#/$defs/AccountStats",
212
+ "description": "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`."
213
+ }
214
+ }
215
+ },
216
+ "AccountStats": {
217
+ "title": "AccountStats",
218
+ "type": "object",
219
+ "additionalProperties": false,
220
+ "description": "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.",
221
+ "properties": {
222
+ "messagesReceived": {
223
+ "type": "integer",
224
+ "minimum": 0,
225
+ "description": "Messages the mediator accepted addressed to this account."
226
+ },
227
+ "messagesSent": {
228
+ "type": "integer",
229
+ "minimum": 0,
230
+ "description": "Messages the mediator accepted from this account."
231
+ },
232
+ "bytesReceived": {
233
+ "type": "integer",
234
+ "minimum": 0,
235
+ "description": "Total size of the messages counted by messagesReceived."
236
+ },
237
+ "bytesSent": {
238
+ "type": "integer",
239
+ "minimum": 0,
240
+ "description": "Total size of the messages counted by messagesSent."
241
+ },
242
+ "receivedByProtocol": {
243
+ "$ref": "#/$defs/ProtocolCounts",
244
+ "description": "messagesReceived split by the wire protocol the message arrived in."
245
+ },
246
+ "sentByProtocol": {
247
+ "$ref": "#/$defs/ProtocolCounts",
248
+ "description": "messagesSent split by the wire protocol the message was sent in."
249
+ }
250
+ }
251
+ },
252
+ "ProtocolCounts": {
253
+ "title": "ProtocolCounts",
254
+ "type": "object",
255
+ "additionalProperties": false,
256
+ "description": "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.",
257
+ "properties": {
258
+ "didcomm": {
259
+ "type": "integer",
260
+ "minimum": 0,
261
+ "description": "DIDComm v2 (JWE/JWS)."
262
+ },
263
+ "didcommV1": {
264
+ "type": "integer",
265
+ "minimum": 0,
266
+ "description": "A DIDComm v1 envelope."
267
+ },
268
+ "tsp": {
269
+ "type": "integer",
270
+ "minimum": 0,
271
+ "description": "A Trust Spanning Protocol message."
272
+ },
273
+ "other": {
274
+ "type": "integer",
275
+ "minimum": 0,
276
+ "description": "Anything the mediator could not classify."
201
277
  }
202
278
  }
203
279
  },
@@ -408,6 +484,74 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
408
484
  "type": "integer",
409
485
  "minimum": 0,
410
486
  "description": "Unix epoch seconds at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication."
487
+ },
488
+ "stats": {
489
+ "$ref": "#/$defs/AccountStats",
490
+ "description": "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`."
491
+ }
492
+ }
493
+ },
494
+ "AccountStats": {
495
+ "title": "AccountStats",
496
+ "type": "object",
497
+ "additionalProperties": false,
498
+ "description": "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.",
499
+ "properties": {
500
+ "messagesReceived": {
501
+ "type": "integer",
502
+ "minimum": 0,
503
+ "description": "Messages the mediator accepted addressed to this account."
504
+ },
505
+ "messagesSent": {
506
+ "type": "integer",
507
+ "minimum": 0,
508
+ "description": "Messages the mediator accepted from this account."
509
+ },
510
+ "bytesReceived": {
511
+ "type": "integer",
512
+ "minimum": 0,
513
+ "description": "Total size of the messages counted by messagesReceived."
514
+ },
515
+ "bytesSent": {
516
+ "type": "integer",
517
+ "minimum": 0,
518
+ "description": "Total size of the messages counted by messagesSent."
519
+ },
520
+ "receivedByProtocol": {
521
+ "$ref": "#/$defs/ProtocolCounts",
522
+ "description": "messagesReceived split by the wire protocol the message arrived in."
523
+ },
524
+ "sentByProtocol": {
525
+ "$ref": "#/$defs/ProtocolCounts",
526
+ "description": "messagesSent split by the wire protocol the message was sent in."
527
+ }
528
+ }
529
+ },
530
+ "ProtocolCounts": {
531
+ "title": "ProtocolCounts",
532
+ "type": "object",
533
+ "additionalProperties": false,
534
+ "description": "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.",
535
+ "properties": {
536
+ "didcomm": {
537
+ "type": "integer",
538
+ "minimum": 0,
539
+ "description": "DIDComm v2 (JWE/JWS)."
540
+ },
541
+ "didcommV1": {
542
+ "type": "integer",
543
+ "minimum": 0,
544
+ "description": "A DIDComm v1 envelope."
545
+ },
546
+ "tsp": {
547
+ "type": "integer",
548
+ "minimum": 0,
549
+ "description": "A Trust Spanning Protocol message."
550
+ },
551
+ "other": {
552
+ "type": "integer",
553
+ "minimum": 0,
554
+ "description": "Anything the mediator could not classify."
411
555
  }
412
556
  }
413
557
  },
@@ -3,7 +3,7 @@
3
3
  * Source: specs/messaging/account/update/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Account, AccountType, Ext, MediatorAcl, QueueLimits, Vid } from "../../../../_shared/components.js";
6
+ import type { Account, AccountStats, AccountType, Ext, MediatorAcl, ProtocolCounts, QueueLimits, Vid } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  export interface MessagingUpdateAccountPayload {
@@ -43,7 +43,7 @@ export interface MessagingUpdateAccountResponsePayload {
43
43
  }
44
44
 
45
45
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
46
- export type { Account, AccountType, Ext, MediatorAcl, QueueLimits, Vid };
46
+ export type { Account, AccountStats, AccountType, Ext, MediatorAcl, ProtocolCounts, QueueLimits, Vid };
47
47
 
48
48
  /** Trust Task type URI. */
49
49
  export const TYPE_URI = "https://trusttasks.org/spec/messaging/account/update/0.1" as const;
@@ -186,6 +186,74 @@ export const PAYLOAD_SCHEMA = {
186
186
  "type": "integer",
187
187
  "minimum": 0,
188
188
  "description": "Unix epoch seconds at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication."
189
+ },
190
+ "stats": {
191
+ "$ref": "#/$defs/AccountStats",
192
+ "description": "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`."
193
+ }
194
+ }
195
+ },
196
+ "AccountStats": {
197
+ "title": "AccountStats",
198
+ "type": "object",
199
+ "additionalProperties": false,
200
+ "description": "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.",
201
+ "properties": {
202
+ "messagesReceived": {
203
+ "type": "integer",
204
+ "minimum": 0,
205
+ "description": "Messages the mediator accepted addressed to this account."
206
+ },
207
+ "messagesSent": {
208
+ "type": "integer",
209
+ "minimum": 0,
210
+ "description": "Messages the mediator accepted from this account."
211
+ },
212
+ "bytesReceived": {
213
+ "type": "integer",
214
+ "minimum": 0,
215
+ "description": "Total size of the messages counted by messagesReceived."
216
+ },
217
+ "bytesSent": {
218
+ "type": "integer",
219
+ "minimum": 0,
220
+ "description": "Total size of the messages counted by messagesSent."
221
+ },
222
+ "receivedByProtocol": {
223
+ "$ref": "#/$defs/ProtocolCounts",
224
+ "description": "messagesReceived split by the wire protocol the message arrived in."
225
+ },
226
+ "sentByProtocol": {
227
+ "$ref": "#/$defs/ProtocolCounts",
228
+ "description": "messagesSent split by the wire protocol the message was sent in."
229
+ }
230
+ }
231
+ },
232
+ "ProtocolCounts": {
233
+ "title": "ProtocolCounts",
234
+ "type": "object",
235
+ "additionalProperties": false,
236
+ "description": "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.",
237
+ "properties": {
238
+ "didcomm": {
239
+ "type": "integer",
240
+ "minimum": 0,
241
+ "description": "DIDComm v2 (JWE/JWS)."
242
+ },
243
+ "didcommV1": {
244
+ "type": "integer",
245
+ "minimum": 0,
246
+ "description": "A DIDComm v1 envelope."
247
+ },
248
+ "tsp": {
249
+ "type": "integer",
250
+ "minimum": 0,
251
+ "description": "A Trust Spanning Protocol message."
252
+ },
253
+ "other": {
254
+ "type": "integer",
255
+ "minimum": 0,
256
+ "description": "Anything the mediator could not classify."
189
257
  }
190
258
  }
191
259
  },
@@ -388,6 +456,74 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
388
456
  "type": "integer",
389
457
  "minimum": 0,
390
458
  "description": "Unix epoch seconds at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication."
459
+ },
460
+ "stats": {
461
+ "$ref": "#/$defs/AccountStats",
462
+ "description": "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`."
463
+ }
464
+ }
465
+ },
466
+ "AccountStats": {
467
+ "title": "AccountStats",
468
+ "type": "object",
469
+ "additionalProperties": false,
470
+ "description": "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.",
471
+ "properties": {
472
+ "messagesReceived": {
473
+ "type": "integer",
474
+ "minimum": 0,
475
+ "description": "Messages the mediator accepted addressed to this account."
476
+ },
477
+ "messagesSent": {
478
+ "type": "integer",
479
+ "minimum": 0,
480
+ "description": "Messages the mediator accepted from this account."
481
+ },
482
+ "bytesReceived": {
483
+ "type": "integer",
484
+ "minimum": 0,
485
+ "description": "Total size of the messages counted by messagesReceived."
486
+ },
487
+ "bytesSent": {
488
+ "type": "integer",
489
+ "minimum": 0,
490
+ "description": "Total size of the messages counted by messagesSent."
491
+ },
492
+ "receivedByProtocol": {
493
+ "$ref": "#/$defs/ProtocolCounts",
494
+ "description": "messagesReceived split by the wire protocol the message arrived in."
495
+ },
496
+ "sentByProtocol": {
497
+ "$ref": "#/$defs/ProtocolCounts",
498
+ "description": "messagesSent split by the wire protocol the message was sent in."
499
+ }
500
+ }
501
+ },
502
+ "ProtocolCounts": {
503
+ "title": "ProtocolCounts",
504
+ "type": "object",
505
+ "additionalProperties": false,
506
+ "description": "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.",
507
+ "properties": {
508
+ "didcomm": {
509
+ "type": "integer",
510
+ "minimum": 0,
511
+ "description": "DIDComm v2 (JWE/JWS)."
512
+ },
513
+ "didcommV1": {
514
+ "type": "integer",
515
+ "minimum": 0,
516
+ "description": "A DIDComm v1 envelope."
517
+ },
518
+ "tsp": {
519
+ "type": "integer",
520
+ "minimum": 0,
521
+ "description": "A Trust Spanning Protocol message."
522
+ },
523
+ "other": {
524
+ "type": "integer",
525
+ "minimum": 0,
526
+ "description": "Anything the mediator could not classify."
391
527
  }
392
528
  }
393
529
  },