@openvtc/trust-tasks 0.19.15 → 0.19.16

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 (65) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/_shared/components.d.ts +314 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +11 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +11 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/messaging/_shared/0.1/mediator-ops.d.ts +16 -0
  9. package/dist/messaging/_shared/0.1/mediator-ops.d.ts.map +1 -0
  10. package/dist/messaging/_shared/0.1/mediator-ops.js +6 -0
  11. package/dist/messaging/_shared/0.1/mediator-ops.js.map +1 -0
  12. package/dist/messaging/message/delete/0.1/payload.d.ts +370 -0
  13. package/dist/messaging/message/delete/0.1/payload.d.ts.map +1 -0
  14. package/dist/messaging/message/delete/0.1/payload.js +206 -0
  15. package/dist/messaging/message/delete/0.1/payload.js.map +1 -0
  16. package/dist/messaging/message/get/0.1/payload.d.ts +568 -0
  17. package/dist/messaging/message/get/0.1/payload.d.ts.map +1 -0
  18. package/dist/messaging/message/get/0.1/payload.js +332 -0
  19. package/dist/messaging/message/get/0.1/payload.js.map +1 -0
  20. package/dist/messaging/message/list/0.1/payload.d.ts +627 -0
  21. package/dist/messaging/message/list/0.1/payload.d.ts.map +1 -0
  22. package/dist/messaging/message/list/0.1/payload.js +352 -0
  23. package/dist/messaging/message/list/0.1/payload.js.map +1 -0
  24. package/dist/messaging/monitor/event/0.1/payload.d.ts +385 -0
  25. package/dist/messaging/monitor/event/0.1/payload.d.ts.map +1 -0
  26. package/dist/messaging/monitor/event/0.1/payload.js +230 -0
  27. package/dist/messaging/monitor/event/0.1/payload.js.map +1 -0
  28. package/dist/messaging/monitor/subscribe/0.1/payload.d.ts +719 -0
  29. package/dist/messaging/monitor/subscribe/0.1/payload.d.ts.map +1 -0
  30. package/dist/messaging/monitor/subscribe/0.1/payload.js +417 -0
  31. package/dist/messaging/monitor/subscribe/0.1/payload.js.map +1 -0
  32. package/dist/messaging/monitor/unsubscribe/0.1/payload.d.ts +245 -0
  33. package/dist/messaging/monitor/unsubscribe/0.1/payload.d.ts.map +1 -0
  34. package/dist/messaging/monitor/unsubscribe/0.1/payload.js +136 -0
  35. package/dist/messaging/monitor/unsubscribe/0.1/payload.js.map +1 -0
  36. package/dist/messaging/queue/list/0.1/payload.d.ts +679 -0
  37. package/dist/messaging/queue/list/0.1/payload.d.ts.map +1 -0
  38. package/dist/messaging/queue/list/0.1/payload.js +377 -0
  39. package/dist/messaging/queue/list/0.1/payload.js.map +1 -0
  40. package/dist/messaging/queue/purge/0.1/payload.d.ts +389 -0
  41. package/dist/messaging/queue/purge/0.1/payload.d.ts.map +1 -0
  42. package/dist/messaging/queue/purge/0.1/payload.js +210 -0
  43. package/dist/messaging/queue/purge/0.1/payload.js.map +1 -0
  44. package/dist/messaging/queue/status/0.1/payload.d.ts +697 -0
  45. package/dist/messaging/queue/status/0.1/payload.d.ts.map +1 -0
  46. package/dist/messaging/queue/status/0.1/payload.js +389 -0
  47. package/dist/messaging/queue/status/0.1/payload.js.map +1 -0
  48. package/dist/messaging/stats/show/0.1/payload.d.ts +963 -0
  49. package/dist/messaging/stats/show/0.1/payload.d.ts.map +1 -0
  50. package/dist/messaging/stats/show/0.1/payload.js +515 -0
  51. package/dist/messaging/stats/show/0.1/payload.js.map +1 -0
  52. package/package.json +1 -1
  53. package/src/_shared/components.ts +342 -0
  54. package/src/index.ts +11 -0
  55. package/src/messaging/_shared/0.1/mediator-ops.ts +17 -0
  56. package/src/messaging/message/delete/0.1/payload.ts +259 -0
  57. package/src/messaging/message/get/0.1/payload.ts +375 -0
  58. package/src/messaging/message/list/0.1/payload.ts +410 -0
  59. package/src/messaging/monitor/event/0.1/payload.ts +267 -0
  60. package/src/messaging/monitor/subscribe/0.1/payload.ts +473 -0
  61. package/src/messaging/monitor/unsubscribe/0.1/payload.ts +172 -0
  62. package/src/messaging/queue/list/0.1/payload.ts +443 -0
  63. package/src/messaging/queue/purge/0.1/payload.ts +270 -0
  64. package/src/messaging/queue/status/0.1/payload.ts +439 -0
  65. package/src/messaging/stats/show/0.1/payload.ts +611 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/messaging/stats/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAGzE,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,8CAA8C;IAC7D;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE;QACX,eAAe,EAAE,MAAM,CAAC;QACxB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF;;OAEG;IACH,MAAM,EAAE;QACN,aAAa,EAAE,MAAM,CAAC;QACtB,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF,UAAU,EAAE;QACV;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqO1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,515 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/messaging/stats/show/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/messaging/stats/show/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/messaging/stats/show/0.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/messaging/stats/show/0.1",
21
+ "title": "Messaging — Show Mediator Statistics — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "ext": {
26
+ "$ref": "#/$defs/Ext",
27
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
28
+ }
29
+ },
30
+ "$defs": {
31
+ "Response": {
32
+ "$anchor": "response",
33
+ "title": "Messaging — Show Mediator Statistics — response payload",
34
+ "description": "The success response to a messaging/stats/show request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/stats/show/0.1#response.",
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "properties": {
38
+ "version": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "description": "The mediator software's version string."
42
+ },
43
+ "startedAt": {
44
+ "type": "string",
45
+ "format": "date-time"
46
+ },
47
+ "uptimeSeconds": {
48
+ "type": "integer",
49
+ "minimum": 0
50
+ },
51
+ "connections": {
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "required": [
55
+ "websocketActive"
56
+ ],
57
+ "properties": {
58
+ "websocketActive": {
59
+ "type": "integer",
60
+ "minimum": 0
61
+ },
62
+ "websocketMax": {
63
+ "type": "integer",
64
+ "minimum": 0,
65
+ "description": "Configured ceiling; absent when unlimited."
66
+ }
67
+ }
68
+ },
69
+ "totals": {
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "description": "Lifetime counters since the mediator's store was created. Monotonic; a client derives rates from successive readings.",
73
+ "required": [
74
+ "receivedCount",
75
+ "receivedBytes",
76
+ "sentCount",
77
+ "sentBytes",
78
+ "deletedCount"
79
+ ],
80
+ "properties": {
81
+ "receivedCount": {
82
+ "type": "integer",
83
+ "minimum": 0
84
+ },
85
+ "receivedBytes": {
86
+ "type": "integer",
87
+ "minimum": 0
88
+ },
89
+ "sentCount": {
90
+ "type": "integer",
91
+ "minimum": 0
92
+ },
93
+ "sentBytes": {
94
+ "type": "integer",
95
+ "minimum": 0
96
+ },
97
+ "deletedCount": {
98
+ "type": "integer",
99
+ "minimum": 0
100
+ },
101
+ "deletedBytes": {
102
+ "type": "integer",
103
+ "minimum": 0
104
+ },
105
+ "websocketOpened": {
106
+ "type": "integer",
107
+ "minimum": 0
108
+ },
109
+ "websocketClosed": {
110
+ "type": "integer",
111
+ "minimum": 0
112
+ },
113
+ "sessionsCreated": {
114
+ "type": "integer",
115
+ "minimum": 0
116
+ },
117
+ "sessionsAuthenticated": {
118
+ "type": "integer",
119
+ "minimum": 0
120
+ },
121
+ "invitationsCreated": {
122
+ "type": "integer",
123
+ "minimum": 0
124
+ },
125
+ "invitationsClaimed": {
126
+ "type": "integer",
127
+ "minimum": 0
128
+ }
129
+ }
130
+ },
131
+ "forwarding": {
132
+ "type": "object",
133
+ "additionalProperties": false,
134
+ "required": [
135
+ "queueLength"
136
+ ],
137
+ "properties": {
138
+ "queueLength": {
139
+ "type": "integer",
140
+ "minimum": 0,
141
+ "description": "Messages waiting to be forwarded to other mediators."
142
+ },
143
+ "queueLimit": {
144
+ "type": "integer",
145
+ "minimum": 0
146
+ },
147
+ "circuitBreaker": {
148
+ "type": "string",
149
+ "enum": [
150
+ "closed",
151
+ "open",
152
+ "halfOpen"
153
+ ],
154
+ "description": "State of the store circuit breaker. `open` means the mediator is shedding store operations."
155
+ }
156
+ }
157
+ },
158
+ "queues": {
159
+ "type": "object",
160
+ "additionalProperties": false,
161
+ "description": "Aggregate of the mediator's most recent queue survey. Absent when no survey has completed.",
162
+ "required": [
163
+ "surveyedAt",
164
+ "accounts"
165
+ ],
166
+ "properties": {
167
+ "surveyedAt": {
168
+ "type": "string",
169
+ "format": "date-time"
170
+ },
171
+ "accounts": {
172
+ "type": "integer",
173
+ "minimum": 0,
174
+ "description": "Accounts the survey covered."
175
+ },
176
+ "truncated": {
177
+ "type": "boolean",
178
+ "description": "The survey stopped before covering every account."
179
+ },
180
+ "receive": {
181
+ "$ref": "#/$defs/QueueDepth",
182
+ "description": "Totals across every surveyed receive queue; `saturation` is the maximum of any single queue."
183
+ },
184
+ "send": {
185
+ "$ref": "#/$defs/QueueDepth",
186
+ "description": "Totals across every surveyed send queue; `saturation` is the maximum of any single queue."
187
+ }
188
+ }
189
+ },
190
+ "ext": {
191
+ "$ref": "#/$defs/Ext",
192
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
193
+ }
194
+ },
195
+ "required": [
196
+ "version",
197
+ "uptimeSeconds",
198
+ "connections",
199
+ "totals",
200
+ "forwarding"
201
+ ]
202
+ },
203
+ "Ext": {
204
+ "title": "Ext",
205
+ "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.",
206
+ "type": "object",
207
+ "minProperties": 1,
208
+ "additionalProperties": true,
209
+ "propertyNames": {
210
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
211
+ }
212
+ },
213
+ "QueueDepth": {
214
+ "title": "QueueDepth",
215
+ "type": "object",
216
+ "additionalProperties": false,
217
+ "required": [
218
+ "count",
219
+ "bytes"
220
+ ],
221
+ "description": "The depth of one queue and its effective limit.",
222
+ "properties": {
223
+ "count": {
224
+ "type": "integer",
225
+ "minimum": 0,
226
+ "description": "Messages currently in the queue."
227
+ },
228
+ "bytes": {
229
+ "type": "integer",
230
+ "minimum": 0,
231
+ "description": "Total stored size of those messages, in bytes."
232
+ },
233
+ "limit": {
234
+ "type": "integer",
235
+ "minimum": -1,
236
+ "description": "The effective message-count limit for this queue after account overrides and mediator defaults are applied; -1 = unlimited."
237
+ },
238
+ "saturation": {
239
+ "type": "number",
240
+ "minimum": 0,
241
+ "description": "count ÷ limit. Absent when the limit is unlimited. May exceed 1 when a limit was lowered below the current depth."
242
+ },
243
+ "oldestAgeSeconds": {
244
+ "type": "integer",
245
+ "minimum": 0,
246
+ "description": "Age of the oldest message in the queue, in seconds. Absent when the queue is empty or the mediator did not measure it."
247
+ },
248
+ "deliveredUnacked": {
249
+ "type": "integer",
250
+ "minimum": 0,
251
+ "description": "Messages in the queue whose state is `delivered` — handed out but not yet deleted by the recipient. Absent when the mediator did not measure it."
252
+ }
253
+ }
254
+ }
255
+ }
256
+ };
257
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
258
+ export const RESPONSE_PAYLOAD_SCHEMA = {
259
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
260
+ "$ref": "#/$defs/Response",
261
+ "$defs": {
262
+ "Response": {
263
+ "$anchor": "response",
264
+ "title": "Messaging — Show Mediator Statistics — response payload",
265
+ "description": "The success response to a messaging/stats/show request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/stats/show/0.1#response.",
266
+ "type": "object",
267
+ "additionalProperties": false,
268
+ "properties": {
269
+ "version": {
270
+ "type": "string",
271
+ "minLength": 1,
272
+ "description": "The mediator software's version string."
273
+ },
274
+ "startedAt": {
275
+ "type": "string",
276
+ "format": "date-time"
277
+ },
278
+ "uptimeSeconds": {
279
+ "type": "integer",
280
+ "minimum": 0
281
+ },
282
+ "connections": {
283
+ "type": "object",
284
+ "additionalProperties": false,
285
+ "required": [
286
+ "websocketActive"
287
+ ],
288
+ "properties": {
289
+ "websocketActive": {
290
+ "type": "integer",
291
+ "minimum": 0
292
+ },
293
+ "websocketMax": {
294
+ "type": "integer",
295
+ "minimum": 0,
296
+ "description": "Configured ceiling; absent when unlimited."
297
+ }
298
+ }
299
+ },
300
+ "totals": {
301
+ "type": "object",
302
+ "additionalProperties": false,
303
+ "description": "Lifetime counters since the mediator's store was created. Monotonic; a client derives rates from successive readings.",
304
+ "required": [
305
+ "receivedCount",
306
+ "receivedBytes",
307
+ "sentCount",
308
+ "sentBytes",
309
+ "deletedCount"
310
+ ],
311
+ "properties": {
312
+ "receivedCount": {
313
+ "type": "integer",
314
+ "minimum": 0
315
+ },
316
+ "receivedBytes": {
317
+ "type": "integer",
318
+ "minimum": 0
319
+ },
320
+ "sentCount": {
321
+ "type": "integer",
322
+ "minimum": 0
323
+ },
324
+ "sentBytes": {
325
+ "type": "integer",
326
+ "minimum": 0
327
+ },
328
+ "deletedCount": {
329
+ "type": "integer",
330
+ "minimum": 0
331
+ },
332
+ "deletedBytes": {
333
+ "type": "integer",
334
+ "minimum": 0
335
+ },
336
+ "websocketOpened": {
337
+ "type": "integer",
338
+ "minimum": 0
339
+ },
340
+ "websocketClosed": {
341
+ "type": "integer",
342
+ "minimum": 0
343
+ },
344
+ "sessionsCreated": {
345
+ "type": "integer",
346
+ "minimum": 0
347
+ },
348
+ "sessionsAuthenticated": {
349
+ "type": "integer",
350
+ "minimum": 0
351
+ },
352
+ "invitationsCreated": {
353
+ "type": "integer",
354
+ "minimum": 0
355
+ },
356
+ "invitationsClaimed": {
357
+ "type": "integer",
358
+ "minimum": 0
359
+ }
360
+ }
361
+ },
362
+ "forwarding": {
363
+ "type": "object",
364
+ "additionalProperties": false,
365
+ "required": [
366
+ "queueLength"
367
+ ],
368
+ "properties": {
369
+ "queueLength": {
370
+ "type": "integer",
371
+ "minimum": 0,
372
+ "description": "Messages waiting to be forwarded to other mediators."
373
+ },
374
+ "queueLimit": {
375
+ "type": "integer",
376
+ "minimum": 0
377
+ },
378
+ "circuitBreaker": {
379
+ "type": "string",
380
+ "enum": [
381
+ "closed",
382
+ "open",
383
+ "halfOpen"
384
+ ],
385
+ "description": "State of the store circuit breaker. `open` means the mediator is shedding store operations."
386
+ }
387
+ }
388
+ },
389
+ "queues": {
390
+ "type": "object",
391
+ "additionalProperties": false,
392
+ "description": "Aggregate of the mediator's most recent queue survey. Absent when no survey has completed.",
393
+ "required": [
394
+ "surveyedAt",
395
+ "accounts"
396
+ ],
397
+ "properties": {
398
+ "surveyedAt": {
399
+ "type": "string",
400
+ "format": "date-time"
401
+ },
402
+ "accounts": {
403
+ "type": "integer",
404
+ "minimum": 0,
405
+ "description": "Accounts the survey covered."
406
+ },
407
+ "truncated": {
408
+ "type": "boolean",
409
+ "description": "The survey stopped before covering every account."
410
+ },
411
+ "receive": {
412
+ "$ref": "#/$defs/QueueDepth",
413
+ "description": "Totals across every surveyed receive queue; `saturation` is the maximum of any single queue."
414
+ },
415
+ "send": {
416
+ "$ref": "#/$defs/QueueDepth",
417
+ "description": "Totals across every surveyed send queue; `saturation` is the maximum of any single queue."
418
+ }
419
+ }
420
+ },
421
+ "ext": {
422
+ "$ref": "#/$defs/Ext",
423
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
424
+ }
425
+ },
426
+ "required": [
427
+ "version",
428
+ "uptimeSeconds",
429
+ "connections",
430
+ "totals",
431
+ "forwarding"
432
+ ]
433
+ },
434
+ "Ext": {
435
+ "title": "Ext",
436
+ "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.",
437
+ "type": "object",
438
+ "minProperties": 1,
439
+ "additionalProperties": true,
440
+ "propertyNames": {
441
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
442
+ }
443
+ },
444
+ "QueueDepth": {
445
+ "title": "QueueDepth",
446
+ "type": "object",
447
+ "additionalProperties": false,
448
+ "required": [
449
+ "count",
450
+ "bytes"
451
+ ],
452
+ "description": "The depth of one queue and its effective limit.",
453
+ "properties": {
454
+ "count": {
455
+ "type": "integer",
456
+ "minimum": 0,
457
+ "description": "Messages currently in the queue."
458
+ },
459
+ "bytes": {
460
+ "type": "integer",
461
+ "minimum": 0,
462
+ "description": "Total stored size of those messages, in bytes."
463
+ },
464
+ "limit": {
465
+ "type": "integer",
466
+ "minimum": -1,
467
+ "description": "The effective message-count limit for this queue after account overrides and mediator defaults are applied; -1 = unlimited."
468
+ },
469
+ "saturation": {
470
+ "type": "number",
471
+ "minimum": 0,
472
+ "description": "count ÷ limit. Absent when the limit is unlimited. May exceed 1 when a limit was lowered below the current depth."
473
+ },
474
+ "oldestAgeSeconds": {
475
+ "type": "integer",
476
+ "minimum": 0,
477
+ "description": "Age of the oldest message in the queue, in seconds. Absent when the queue is empty or the mediator did not measure it."
478
+ },
479
+ "deliveredUnacked": {
480
+ "type": "integer",
481
+ "minimum": 0,
482
+ "description": "Messages in the queue whose state is `delivered` — handed out but not yet deleted by the recipient. Absent when the mediator did not measure it."
483
+ }
484
+ }
485
+ }
486
+ }
487
+ };
488
+ /**
489
+ * SPEC.md §7.2 policy for the request variant, from this specification's
490
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
491
+ * per-specification and cannot be derived from the document alone, and
492
+ * item 2 needs the schema this carries.
493
+ */
494
+ export const SPEC = {
495
+ typeUri: TYPE_URI,
496
+ isBearer: false,
497
+ isProofRequired: true,
498
+ isRecipientRequired: true,
499
+ isIssuedAtRequired: true,
500
+ payloadSchema: PAYLOAD_SCHEMA,
501
+ };
502
+ /**
503
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
504
+ * tracks the *issuer* party's requirement because a response swaps the
505
+ * parties (§7.3 item 5).
506
+ */
507
+ export const RESPONSE_SPEC = {
508
+ typeUri: RESPONSE_TYPE_URI,
509
+ isBearer: false,
510
+ isProofRequired: false,
511
+ isRecipientRequired: true,
512
+ isIssuedAtRequired: true,
513
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
514
+ };
515
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/messaging/stats/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuFH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAKxF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,gDAAgD;IACzD,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,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.19.15",
3
+ "version": "0.19.16",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",