@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.
Files changed (65) hide show
  1. package/CHANGELOG.md +4 -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,370 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/messaging/message/delete/0.1/payload.schema.json
4
+ */
5
+ import type { Ext, Vid } from "../../../../_shared/components.js";
6
+ export interface MessagingDeleteMessagesPayload {
7
+ /**
8
+ * The account whose queue holds the messages. Omitted = the requester's own account. A requester without administrative standing may name only itself.
9
+ */
10
+ did?: Vid;
11
+ /**
12
+ * @minItems 1
13
+ * @maxItems 100
14
+ */
15
+ msgIds: [string, ...string[]];
16
+ /**
17
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
18
+ */
19
+ ext?: Ext;
20
+ }
21
+ /**
22
+ * The success response to a messaging/message/delete request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/message/delete/0.1#response.
23
+ */
24
+ export interface MessagingDeleteMessagesResponsePayload {
25
+ /**
26
+ * One entry per requested msgId, in request order.
27
+ */
28
+ results: {
29
+ msgId: string;
30
+ deleted: boolean;
31
+ /**
32
+ * Why it was not deleted. `notFound`: no such message. `notInAccount`: the message exists but is not in the named account's queues.
33
+ */
34
+ reason?: "notFound" | "notInAccount";
35
+ }[];
36
+ /**
37
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
38
+ */
39
+ ext?: Ext;
40
+ }
41
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
42
+ export type { Ext, Vid };
43
+ /** Trust Task type URI. */
44
+ export declare const TYPE_URI: "https://trusttasks.org/spec/messaging/message/delete/0.1";
45
+ /** Stable alias for this specification's request payload shape. */
46
+ export type Payload = MessagingDeleteMessagesPayload;
47
+ /** Trust Task response type URI (request type URI + "#response"). */
48
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/messaging/message/delete/0.1#response";
49
+ /** Stable alias for this specification's success-response payload shape. */
50
+ export type Response = MessagingDeleteMessagesResponsePayload;
51
+ /**
52
+ * This specification's payload schema, as a value.
53
+ *
54
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
55
+ * rather than only as a `.json` file because TypeScript types are erased
56
+ * at runtime: without a schema a consumer has nothing to validate, and
57
+ * every REQUIRED payload member is optional in practice. Cross-file
58
+ * `$ref`s are already inlined, so it needs no resolver.
59
+ */
60
+ export declare const PAYLOAD_SCHEMA: {
61
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
62
+ readonly $id: "https://trusttasks.org/spec/messaging/message/delete/0.1";
63
+ readonly title: "Messaging — Delete Messages — payload";
64
+ readonly type: "object";
65
+ readonly additionalProperties: false;
66
+ readonly required: readonly ["msgIds"];
67
+ readonly properties: {
68
+ readonly did: {
69
+ readonly $ref: "#/$defs/Vid";
70
+ readonly description: "The account whose queue holds the messages. Omitted = the requester's own account. A requester without administrative standing may name only itself.";
71
+ };
72
+ readonly msgIds: {
73
+ readonly type: "array";
74
+ readonly minItems: 1;
75
+ readonly maxItems: 100;
76
+ readonly uniqueItems: true;
77
+ readonly items: {
78
+ readonly type: "string";
79
+ readonly minLength: 1;
80
+ };
81
+ };
82
+ readonly ext: {
83
+ readonly $ref: "#/$defs/Ext";
84
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
85
+ };
86
+ };
87
+ readonly $defs: {
88
+ readonly Response: {
89
+ readonly $anchor: "response";
90
+ readonly title: "Messaging — Delete Messages — response payload";
91
+ readonly description: "The success response to a messaging/message/delete request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/message/delete/0.1#response.";
92
+ readonly type: "object";
93
+ readonly additionalProperties: false;
94
+ readonly properties: {
95
+ readonly results: {
96
+ readonly type: "array";
97
+ readonly description: "One entry per requested msgId, in request order.";
98
+ readonly items: {
99
+ readonly type: "object";
100
+ readonly additionalProperties: false;
101
+ readonly required: readonly ["msgId", "deleted"];
102
+ readonly properties: {
103
+ readonly msgId: {
104
+ readonly type: "string";
105
+ readonly minLength: 1;
106
+ };
107
+ readonly deleted: {
108
+ readonly type: "boolean";
109
+ };
110
+ readonly reason: {
111
+ readonly type: "string";
112
+ readonly enum: readonly ["notFound", "notInAccount"];
113
+ readonly description: "Why it was not deleted. `notFound`: no such message. `notInAccount`: the message exists but is not in the named account's queues.";
114
+ };
115
+ };
116
+ };
117
+ };
118
+ readonly ext: {
119
+ readonly $ref: "#/$defs/Ext";
120
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
121
+ };
122
+ };
123
+ readonly required: readonly ["results"];
124
+ };
125
+ readonly Ext: {
126
+ readonly title: "Ext";
127
+ 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.";
128
+ readonly type: "object";
129
+ readonly minProperties: 1;
130
+ readonly additionalProperties: true;
131
+ readonly propertyNames: {
132
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
133
+ };
134
+ };
135
+ readonly Vid: {
136
+ readonly title: "Vid";
137
+ readonly type: "string";
138
+ readonly minLength: 1;
139
+ 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.";
140
+ };
141
+ };
142
+ };
143
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
144
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
145
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
146
+ readonly $ref: "#/$defs/Response";
147
+ readonly $defs: {
148
+ readonly Response: {
149
+ readonly $anchor: "response";
150
+ readonly title: "Messaging — Delete Messages — response payload";
151
+ readonly description: "The success response to a messaging/message/delete request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/message/delete/0.1#response.";
152
+ readonly type: "object";
153
+ readonly additionalProperties: false;
154
+ readonly properties: {
155
+ readonly results: {
156
+ readonly type: "array";
157
+ readonly description: "One entry per requested msgId, in request order.";
158
+ readonly items: {
159
+ readonly type: "object";
160
+ readonly additionalProperties: false;
161
+ readonly required: readonly ["msgId", "deleted"];
162
+ readonly properties: {
163
+ readonly msgId: {
164
+ readonly type: "string";
165
+ readonly minLength: 1;
166
+ };
167
+ readonly deleted: {
168
+ readonly type: "boolean";
169
+ };
170
+ readonly reason: {
171
+ readonly type: "string";
172
+ readonly enum: readonly ["notFound", "notInAccount"];
173
+ readonly description: "Why it was not deleted. `notFound`: no such message. `notInAccount`: the message exists but is not in the named account's queues.";
174
+ };
175
+ };
176
+ };
177
+ };
178
+ readonly ext: {
179
+ readonly $ref: "#/$defs/Ext";
180
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
181
+ };
182
+ };
183
+ readonly required: readonly ["results"];
184
+ };
185
+ readonly Ext: {
186
+ readonly title: "Ext";
187
+ 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.";
188
+ readonly type: "object";
189
+ readonly minProperties: 1;
190
+ readonly additionalProperties: true;
191
+ readonly propertyNames: {
192
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
193
+ };
194
+ };
195
+ readonly Vid: {
196
+ readonly title: "Vid";
197
+ readonly type: "string";
198
+ readonly minLength: 1;
199
+ 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.";
200
+ };
201
+ };
202
+ };
203
+ /**
204
+ * SPEC.md §7.2 policy for the request variant, from this specification's
205
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
206
+ * per-specification and cannot be derived from the document alone, and
207
+ * item 2 needs the schema this carries.
208
+ */
209
+ export declare const SPEC: {
210
+ readonly typeUri: "https://trusttasks.org/spec/messaging/message/delete/0.1";
211
+ readonly isBearer: false;
212
+ readonly isProofRequired: true;
213
+ readonly isRecipientRequired: true;
214
+ readonly isIssuedAtRequired: true;
215
+ readonly payloadSchema: {
216
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
217
+ readonly $id: "https://trusttasks.org/spec/messaging/message/delete/0.1";
218
+ readonly title: "Messaging — Delete Messages — payload";
219
+ readonly type: "object";
220
+ readonly additionalProperties: false;
221
+ readonly required: readonly ["msgIds"];
222
+ readonly properties: {
223
+ readonly did: {
224
+ readonly $ref: "#/$defs/Vid";
225
+ readonly description: "The account whose queue holds the messages. Omitted = the requester's own account. A requester without administrative standing may name only itself.";
226
+ };
227
+ readonly msgIds: {
228
+ readonly type: "array";
229
+ readonly minItems: 1;
230
+ readonly maxItems: 100;
231
+ readonly uniqueItems: true;
232
+ readonly items: {
233
+ readonly type: "string";
234
+ readonly minLength: 1;
235
+ };
236
+ };
237
+ readonly ext: {
238
+ readonly $ref: "#/$defs/Ext";
239
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
240
+ };
241
+ };
242
+ readonly $defs: {
243
+ readonly Response: {
244
+ readonly $anchor: "response";
245
+ readonly title: "Messaging — Delete Messages — response payload";
246
+ readonly description: "The success response to a messaging/message/delete request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/message/delete/0.1#response.";
247
+ readonly type: "object";
248
+ readonly additionalProperties: false;
249
+ readonly properties: {
250
+ readonly results: {
251
+ readonly type: "array";
252
+ readonly description: "One entry per requested msgId, in request order.";
253
+ readonly items: {
254
+ readonly type: "object";
255
+ readonly additionalProperties: false;
256
+ readonly required: readonly ["msgId", "deleted"];
257
+ readonly properties: {
258
+ readonly msgId: {
259
+ readonly type: "string";
260
+ readonly minLength: 1;
261
+ };
262
+ readonly deleted: {
263
+ readonly type: "boolean";
264
+ };
265
+ readonly reason: {
266
+ readonly type: "string";
267
+ readonly enum: readonly ["notFound", "notInAccount"];
268
+ readonly description: "Why it was not deleted. `notFound`: no such message. `notInAccount`: the message exists but is not in the named account's queues.";
269
+ };
270
+ };
271
+ };
272
+ };
273
+ readonly ext: {
274
+ readonly $ref: "#/$defs/Ext";
275
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
276
+ };
277
+ };
278
+ readonly required: readonly ["results"];
279
+ };
280
+ readonly Ext: {
281
+ readonly title: "Ext";
282
+ 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.";
283
+ readonly type: "object";
284
+ readonly minProperties: 1;
285
+ readonly additionalProperties: true;
286
+ readonly propertyNames: {
287
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
288
+ };
289
+ };
290
+ readonly Vid: {
291
+ readonly title: "Vid";
292
+ readonly type: "string";
293
+ readonly minLength: 1;
294
+ 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.";
295
+ };
296
+ };
297
+ };
298
+ };
299
+ /**
300
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
301
+ * tracks the *issuer* party's requirement because a response swaps the
302
+ * parties (§7.3 item 5).
303
+ */
304
+ export declare const RESPONSE_SPEC: {
305
+ readonly typeUri: "https://trusttasks.org/spec/messaging/message/delete/0.1#response";
306
+ readonly isBearer: false;
307
+ readonly isProofRequired: false;
308
+ readonly isRecipientRequired: true;
309
+ readonly isIssuedAtRequired: true;
310
+ readonly payloadSchema: {
311
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
312
+ readonly $ref: "#/$defs/Response";
313
+ readonly $defs: {
314
+ readonly Response: {
315
+ readonly $anchor: "response";
316
+ readonly title: "Messaging — Delete Messages — response payload";
317
+ readonly description: "The success response to a messaging/message/delete request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/message/delete/0.1#response.";
318
+ readonly type: "object";
319
+ readonly additionalProperties: false;
320
+ readonly properties: {
321
+ readonly results: {
322
+ readonly type: "array";
323
+ readonly description: "One entry per requested msgId, in request order.";
324
+ readonly items: {
325
+ readonly type: "object";
326
+ readonly additionalProperties: false;
327
+ readonly required: readonly ["msgId", "deleted"];
328
+ readonly properties: {
329
+ readonly msgId: {
330
+ readonly type: "string";
331
+ readonly minLength: 1;
332
+ };
333
+ readonly deleted: {
334
+ readonly type: "boolean";
335
+ };
336
+ readonly reason: {
337
+ readonly type: "string";
338
+ readonly enum: readonly ["notFound", "notInAccount"];
339
+ readonly description: "Why it was not deleted. `notFound`: no such message. `notInAccount`: the message exists but is not in the named account's queues.";
340
+ };
341
+ };
342
+ };
343
+ };
344
+ readonly ext: {
345
+ readonly $ref: "#/$defs/Ext";
346
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
347
+ };
348
+ };
349
+ readonly required: readonly ["results"];
350
+ };
351
+ readonly Ext: {
352
+ readonly title: "Ext";
353
+ 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.";
354
+ readonly type: "object";
355
+ readonly minProperties: 1;
356
+ readonly additionalProperties: true;
357
+ readonly propertyNames: {
358
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
359
+ };
360
+ };
361
+ readonly Vid: {
362
+ readonly title: "Vid";
363
+ readonly type: "string";
364
+ readonly minLength: 1;
365
+ 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.";
366
+ };
367
+ };
368
+ };
369
+ };
370
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/messaging/message/delete/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAGlE,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;;OAGG;IACH,MAAM,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,OAAO,CAAC;QACjB;;WAEG;QACH,MAAM,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC;KACtC,EAAE,CAAC;IACJ;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEzB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,0DAAmE,CAAC;AAE5F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,mEAA4E,CAAC;AAE9G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,206 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/messaging/message/delete/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/messaging/message/delete/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/messaging/message/delete/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/message/delete/0.1",
21
+ "title": "Messaging — Delete Messages — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": [
25
+ "msgIds"
26
+ ],
27
+ "properties": {
28
+ "did": {
29
+ "$ref": "#/$defs/Vid",
30
+ "description": "The account whose queue holds the messages. Omitted = the requester's own account. A requester without administrative standing may name only itself."
31
+ },
32
+ "msgIds": {
33
+ "type": "array",
34
+ "minItems": 1,
35
+ "maxItems": 100,
36
+ "uniqueItems": true,
37
+ "items": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ }
41
+ },
42
+ "ext": {
43
+ "$ref": "#/$defs/Ext",
44
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
45
+ }
46
+ },
47
+ "$defs": {
48
+ "Response": {
49
+ "$anchor": "response",
50
+ "title": "Messaging — Delete Messages — response payload",
51
+ "description": "The success response to a messaging/message/delete request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/message/delete/0.1#response.",
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "properties": {
55
+ "results": {
56
+ "type": "array",
57
+ "description": "One entry per requested msgId, in request order.",
58
+ "items": {
59
+ "type": "object",
60
+ "additionalProperties": false,
61
+ "required": [
62
+ "msgId",
63
+ "deleted"
64
+ ],
65
+ "properties": {
66
+ "msgId": {
67
+ "type": "string",
68
+ "minLength": 1
69
+ },
70
+ "deleted": {
71
+ "type": "boolean"
72
+ },
73
+ "reason": {
74
+ "type": "string",
75
+ "enum": [
76
+ "notFound",
77
+ "notInAccount"
78
+ ],
79
+ "description": "Why it was not deleted. `notFound`: no such message. `notInAccount`: the message exists but is not in the named account's queues."
80
+ }
81
+ }
82
+ }
83
+ },
84
+ "ext": {
85
+ "$ref": "#/$defs/Ext",
86
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
87
+ }
88
+ },
89
+ "required": [
90
+ "results"
91
+ ]
92
+ },
93
+ "Ext": {
94
+ "title": "Ext",
95
+ "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.",
96
+ "type": "object",
97
+ "minProperties": 1,
98
+ "additionalProperties": true,
99
+ "propertyNames": {
100
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
101
+ }
102
+ },
103
+ "Vid": {
104
+ "title": "Vid",
105
+ "type": "string",
106
+ "minLength": 1,
107
+ "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."
108
+ }
109
+ }
110
+ };
111
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
112
+ export const RESPONSE_PAYLOAD_SCHEMA = {
113
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
114
+ "$ref": "#/$defs/Response",
115
+ "$defs": {
116
+ "Response": {
117
+ "$anchor": "response",
118
+ "title": "Messaging — Delete Messages — response payload",
119
+ "description": "The success response to a messaging/message/delete request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/message/delete/0.1#response.",
120
+ "type": "object",
121
+ "additionalProperties": false,
122
+ "properties": {
123
+ "results": {
124
+ "type": "array",
125
+ "description": "One entry per requested msgId, in request order.",
126
+ "items": {
127
+ "type": "object",
128
+ "additionalProperties": false,
129
+ "required": [
130
+ "msgId",
131
+ "deleted"
132
+ ],
133
+ "properties": {
134
+ "msgId": {
135
+ "type": "string",
136
+ "minLength": 1
137
+ },
138
+ "deleted": {
139
+ "type": "boolean"
140
+ },
141
+ "reason": {
142
+ "type": "string",
143
+ "enum": [
144
+ "notFound",
145
+ "notInAccount"
146
+ ],
147
+ "description": "Why it was not deleted. `notFound`: no such message. `notInAccount`: the message exists but is not in the named account's queues."
148
+ }
149
+ }
150
+ }
151
+ },
152
+ "ext": {
153
+ "$ref": "#/$defs/Ext",
154
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
155
+ }
156
+ },
157
+ "required": [
158
+ "results"
159
+ ]
160
+ },
161
+ "Ext": {
162
+ "title": "Ext",
163
+ "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.",
164
+ "type": "object",
165
+ "minProperties": 1,
166
+ "additionalProperties": true,
167
+ "propertyNames": {
168
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
169
+ }
170
+ },
171
+ "Vid": {
172
+ "title": "Vid",
173
+ "type": "string",
174
+ "minLength": 1,
175
+ "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."
176
+ }
177
+ }
178
+ };
179
+ /**
180
+ * SPEC.md §7.2 policy for the request variant, from this specification's
181
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
182
+ * per-specification and cannot be derived from the document alone, and
183
+ * item 2 needs the schema this carries.
184
+ */
185
+ export const SPEC = {
186
+ typeUri: TYPE_URI,
187
+ isBearer: false,
188
+ isProofRequired: true,
189
+ isRecipientRequired: true,
190
+ isIssuedAtRequired: true,
191
+ payloadSchema: PAYLOAD_SCHEMA,
192
+ };
193
+ /**
194
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
195
+ * tracks the *issuer* party's requirement because a response swaps the
196
+ * parties (§7.3 item 5).
197
+ */
198
+ export const RESPONSE_SPEC = {
199
+ typeUri: RESPONSE_TYPE_URI,
200
+ isBearer: false,
201
+ isProofRequired: false,
202
+ isRecipientRequired: true,
203
+ isIssuedAtRequired: true,
204
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
205
+ };
206
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceR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