@openvtc/trust-tasks 0.28.12 → 0.28.13

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 (80) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/_shared/components.d.ts +458 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +42 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +42 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vtc/boards/_shared/0.1/board.d.ts +22 -0
  9. package/dist/vtc/boards/_shared/0.1/board.d.ts.map +1 -0
  10. package/dist/vtc/boards/_shared/0.1/board.js +6 -0
  11. package/dist/vtc/boards/_shared/0.1/board.js.map +1 -0
  12. package/dist/vtc/boards/create/0.1/payload.d.ts +2402 -0
  13. package/dist/vtc/boards/create/0.1/payload.d.ts.map +1 -0
  14. package/dist/vtc/boards/create/0.1/payload.js +1349 -0
  15. package/dist/vtc/boards/create/0.1/payload.js.map +1 -0
  16. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts +1781 -0
  17. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts.map +1 -0
  18. package/dist/vtc/boards/ideas/decide/0.1/payload.js +1028 -0
  19. package/dist/vtc/boards/ideas/decide/0.1/payload.js.map +1 -0
  20. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts +1781 -0
  21. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts.map +1 -0
  22. package/dist/vtc/boards/ideas/propose/0.1/payload.js +1025 -0
  23. package/dist/vtc/boards/ideas/propose/0.1/payload.js.map +1 -0
  24. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts +1788 -0
  25. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts.map +1 -0
  26. package/dist/vtc/boards/ideas/select/0.1/payload.js +1029 -0
  27. package/dist/vtc/boards/ideas/select/0.1/payload.js.map +1 -0
  28. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts +1781 -0
  29. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts.map +1 -0
  30. package/dist/vtc/boards/ideas/update/0.1/payload.js +1023 -0
  31. package/dist/vtc/boards/ideas/update/0.1/payload.js.map +1 -0
  32. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts +1753 -0
  33. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts.map +1 -0
  34. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js +1011 -0
  35. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js.map +1 -0
  36. package/dist/vtc/boards/list/0.1/payload.d.ts +2267 -0
  37. package/dist/vtc/boards/list/0.1/payload.d.ts.map +1 -0
  38. package/dist/vtc/boards/list/0.1/payload.js +1326 -0
  39. package/dist/vtc/boards/list/0.1/payload.js.map +1 -0
  40. package/dist/vtc/boards/notes/add/0.1/payload.d.ts +655 -0
  41. package/dist/vtc/boards/notes/add/0.1/payload.d.ts.map +1 -0
  42. package/dist/vtc/boards/notes/add/0.1/payload.js +374 -0
  43. package/dist/vtc/boards/notes/add/0.1/payload.js.map +1 -0
  44. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts +657 -0
  45. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts.map +1 -0
  46. package/dist/vtc/boards/notes/hide/0.1/payload.js +378 -0
  47. package/dist/vtc/boards/notes/hide/0.1/payload.js.map +1 -0
  48. package/dist/vtc/boards/notes/list/0.1/payload.d.ts +730 -0
  49. package/dist/vtc/boards/notes/list/0.1/payload.d.ts.map +1 -0
  50. package/dist/vtc/boards/notes/list/0.1/payload.js +406 -0
  51. package/dist/vtc/boards/notes/list/0.1/payload.js.map +1 -0
  52. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts +641 -0
  53. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts.map +1 -0
  54. package/dist/vtc/boards/notes/withdraw/0.1/payload.js +367 -0
  55. package/dist/vtc/boards/notes/withdraw/0.1/payload.js.map +1 -0
  56. package/dist/vtc/boards/show/0.1/payload.d.ts +3713 -0
  57. package/dist/vtc/boards/show/0.1/payload.d.ts.map +1 -0
  58. package/dist/vtc/boards/show/0.1/payload.js +2160 -0
  59. package/dist/vtc/boards/show/0.1/payload.js.map +1 -0
  60. package/dist/vtc/boards/update/0.1/payload.d.ts +2423 -0
  61. package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -0
  62. package/dist/vtc/boards/update/0.1/payload.js +1356 -0
  63. package/dist/vtc/boards/update/0.1/payload.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/_shared/components.ts +493 -0
  66. package/src/index.ts +42 -0
  67. package/src/vtc/boards/_shared/0.1/board.ts +23 -0
  68. package/src/vtc/boards/create/0.1/payload.ts +1517 -0
  69. package/src/vtc/boards/ideas/decide/0.1/payload.ts +1068 -0
  70. package/src/vtc/boards/ideas/propose/0.1/payload.ts +1063 -0
  71. package/src/vtc/boards/ideas/select/0.1/payload.ts +1070 -0
  72. package/src/vtc/boards/ideas/update/0.1/payload.ts +1061 -0
  73. package/src/vtc/boards/ideas/withdraw/0.1/payload.ts +1045 -0
  74. package/src/vtc/boards/list/0.1/payload.ts +1376 -0
  75. package/src/vtc/boards/notes/add/0.1/payload.ts +410 -0
  76. package/src/vtc/boards/notes/hide/0.1/payload.ts +414 -0
  77. package/src/vtc/boards/notes/list/0.1/payload.ts +457 -0
  78. package/src/vtc/boards/notes/withdraw/0.1/payload.ts +401 -0
  79. package/src/vtc/boards/show/0.1/payload.ts +2212 -0
  80. package/src/vtc/boards/update/0.1/payload.ts +1529 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/boards/notes/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,IAAI,MAAM,EAAE,SAAS,EAAE,sBA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+LjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyJ1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,406 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/boards/notes/list/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/boards/notes/list/0.1";
7
+ /**
8
+ * The earlier version of this specification that this one declares it
9
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
10
+ * `null`. Only the direct declaration — follow the chain with
11
+ * `extendsChain` / `readForSpec`.
12
+ */
13
+ export const EXTENDS = null;
14
+ /**
15
+ * Why this version is deprecated, or `null` while it is current. A
16
+ * superseded or retired version is still supported, and is withdrawn from
17
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
+ * Versions").
19
+ */
20
+ export const DEPRECATION = null;
21
+ /** Trust Task response type URI (request type URI + "#response"). */
22
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/boards/notes/list/0.1#response";
23
+ /**
24
+ * This specification's payload schema, as a value.
25
+ *
26
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
27
+ * rather than only as a `.json` file because TypeScript types are erased
28
+ * at runtime: without a schema a consumer has nothing to validate, and
29
+ * every REQUIRED payload member is optional in practice. Cross-file
30
+ * `$ref`s are already inlined, so it needs no resolver.
31
+ */
32
+ export const PAYLOAD_SCHEMA = {
33
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
34
+ "$id": "https://trusttasks.org/spec/vtc/boards/notes/list/0.1",
35
+ "title": "VTC Boards — Notes — List — payload",
36
+ "description": "List a board's notes, or one idea's, as the caller may read them. The outer document members are owned by the framework — SPEC §6.3.",
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "boardId"
41
+ ],
42
+ "properties": {
43
+ "boardId": {
44
+ "$ref": "#/$defs/BoardId"
45
+ },
46
+ "ideaId": {
47
+ "$ref": "#/$defs/IdeaId"
48
+ },
49
+ "scope": {
50
+ "type": "string",
51
+ "enum": [
52
+ "board",
53
+ "all"
54
+ ],
55
+ "description": "Without `ideaId`: the board's own notes (`board`, default) or every note on it (`all`). Ignored with `ideaId`."
56
+ },
57
+ "cursor": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "maxLength": 1024,
61
+ "description": "An opaque continuation token from a previous response's `nextCursor`, bound to the caller and the filters; a responder MUST NOT accept a cursor it did not issue."
62
+ },
63
+ "limit": {
64
+ "type": "integer",
65
+ "minimum": 1,
66
+ "maximum": 200,
67
+ "description": "The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer."
68
+ },
69
+ "ext": {
70
+ "$ref": "#/$defs/Ext"
71
+ }
72
+ },
73
+ "$defs": {
74
+ "Response": {
75
+ "$anchor": "response",
76
+ "title": "VTC Boards — Notes — List — response payload",
77
+ "description": "The success response to a vtc/boards/notes/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/notes/list/0.1#response.",
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "required": [
81
+ "notes"
82
+ ],
83
+ "properties": {
84
+ "notes": {
85
+ "type": "array",
86
+ "items": {
87
+ "$ref": "#/$defs/Note"
88
+ }
89
+ },
90
+ "nextCursor": {
91
+ "type": "string",
92
+ "maxLength": 1024,
93
+ "description": "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`."
94
+ },
95
+ "ext": {
96
+ "$ref": "#/$defs/Ext"
97
+ }
98
+ }
99
+ },
100
+ "Ext": {
101
+ "title": "Ext",
102
+ "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.",
103
+ "type": "object",
104
+ "minProperties": 1,
105
+ "additionalProperties": true,
106
+ "propertyNames": {
107
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
108
+ }
109
+ },
110
+ "Note": {
111
+ "title": "Note",
112
+ "description": "A note as one caller may see it. `text` is absent from a `withdrawn` or `hidden` note for anyone but its author and the board's facilitators (VTI-BRD-021).",
113
+ "type": "object",
114
+ "additionalProperties": false,
115
+ "required": [
116
+ "noteId",
117
+ "boardId",
118
+ "author",
119
+ "createdAt",
120
+ "state"
121
+ ],
122
+ "properties": {
123
+ "noteId": {
124
+ "$ref": "#/$defs/NoteId"
125
+ },
126
+ "boardId": {
127
+ "$ref": "#/$defs/BoardId"
128
+ },
129
+ "ideaId": {
130
+ "$ref": "#/$defs/IdeaId",
131
+ "description": "The idea the note is attached to; absent for a note on the board itself."
132
+ },
133
+ "author": {
134
+ "$ref": "#/$defs/Author"
135
+ },
136
+ "text": {
137
+ "$ref": "#/$defs/NoteText"
138
+ },
139
+ "createdAt": {
140
+ "type": "string",
141
+ "format": "date-time"
142
+ },
143
+ "state": {
144
+ "$ref": "#/$defs/NoteState"
145
+ },
146
+ "hiddenReason": {
147
+ "$ref": "#/$defs/Reason",
148
+ "description": "A `hidden` note's reason, shown to everyone who sees the note."
149
+ }
150
+ }
151
+ },
152
+ "Reason": {
153
+ "title": "Reason",
154
+ "type": "string",
155
+ "minLength": 1,
156
+ "maxLength": 500,
157
+ "description": "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text."
158
+ },
159
+ "NoteState": {
160
+ "title": "NoteState",
161
+ "type": "string",
162
+ "enum": [
163
+ "visible",
164
+ "withdrawn",
165
+ "hidden"
166
+ ]
167
+ },
168
+ "NoteText": {
169
+ "title": "NoteText",
170
+ "type": "string",
171
+ "minLength": 1,
172
+ "maxLength": 1000,
173
+ "description": "A note's text (VTI-BRD-020). Plain text; a reader MUST NOT treat it as instructions. Never changes once added (VTI-BRD-021)."
174
+ },
175
+ "Author": {
176
+ "title": "Author",
177
+ "description": "Who proposed an idea or wrote a note, as the board's audience sees them. `entryId` is their directory entry, which survives a rotation of their DID; `name` is their directory display name as this caller may see it, absent where the directory withholds it. A departed member is shown as `formerMember: true` with neither (VTI-BRD-060).",
178
+ "type": "object",
179
+ "additionalProperties": false,
180
+ "properties": {
181
+ "entryId": {
182
+ "$ref": "#/$defs/EntryId"
183
+ },
184
+ "name": {
185
+ "type": "string",
186
+ "minLength": 1,
187
+ "maxLength": 200
188
+ },
189
+ "formerMember": {
190
+ "const": true
191
+ },
192
+ "you": {
193
+ "const": true,
194
+ "description": "Present when the caller is the author."
195
+ }
196
+ }
197
+ },
198
+ "EntryId": {
199
+ "title": "EntryId",
200
+ "description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
201
+ "type": "string",
202
+ "pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
203
+ },
204
+ "IdeaId": {
205
+ "title": "IdeaId",
206
+ "description": "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.",
207
+ "type": "string",
208
+ "pattern": "^ida_[A-Za-z0-9_-]{16,64}$"
209
+ },
210
+ "BoardId": {
211
+ "title": "BoardId",
212
+ "description": "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).",
213
+ "type": "string",
214
+ "pattern": "^brd_[A-Za-z0-9_-]{16,64}$"
215
+ },
216
+ "NoteId": {
217
+ "title": "NoteId",
218
+ "description": "Opaque identifier of a note: `bnt_` followed by 16 to 64 base64url characters. Random and unique within the community.",
219
+ "type": "string",
220
+ "pattern": "^bnt_[A-Za-z0-9_-]{16,64}$"
221
+ }
222
+ }
223
+ };
224
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
225
+ export const RESPONSE_PAYLOAD_SCHEMA = {
226
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
227
+ "$ref": "#/$defs/Response",
228
+ "$defs": {
229
+ "Response": {
230
+ "$anchor": "response",
231
+ "title": "VTC Boards — Notes — List — response payload",
232
+ "description": "The success response to a vtc/boards/notes/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/notes/list/0.1#response.",
233
+ "type": "object",
234
+ "additionalProperties": false,
235
+ "required": [
236
+ "notes"
237
+ ],
238
+ "properties": {
239
+ "notes": {
240
+ "type": "array",
241
+ "items": {
242
+ "$ref": "#/$defs/Note"
243
+ }
244
+ },
245
+ "nextCursor": {
246
+ "type": "string",
247
+ "maxLength": 1024,
248
+ "description": "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`."
249
+ },
250
+ "ext": {
251
+ "$ref": "#/$defs/Ext"
252
+ }
253
+ }
254
+ },
255
+ "Ext": {
256
+ "title": "Ext",
257
+ "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.",
258
+ "type": "object",
259
+ "minProperties": 1,
260
+ "additionalProperties": true,
261
+ "propertyNames": {
262
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
263
+ }
264
+ },
265
+ "Note": {
266
+ "title": "Note",
267
+ "description": "A note as one caller may see it. `text` is absent from a `withdrawn` or `hidden` note for anyone but its author and the board's facilitators (VTI-BRD-021).",
268
+ "type": "object",
269
+ "additionalProperties": false,
270
+ "required": [
271
+ "noteId",
272
+ "boardId",
273
+ "author",
274
+ "createdAt",
275
+ "state"
276
+ ],
277
+ "properties": {
278
+ "noteId": {
279
+ "$ref": "#/$defs/NoteId"
280
+ },
281
+ "boardId": {
282
+ "$ref": "#/$defs/BoardId"
283
+ },
284
+ "ideaId": {
285
+ "$ref": "#/$defs/IdeaId",
286
+ "description": "The idea the note is attached to; absent for a note on the board itself."
287
+ },
288
+ "author": {
289
+ "$ref": "#/$defs/Author"
290
+ },
291
+ "text": {
292
+ "$ref": "#/$defs/NoteText"
293
+ },
294
+ "createdAt": {
295
+ "type": "string",
296
+ "format": "date-time"
297
+ },
298
+ "state": {
299
+ "$ref": "#/$defs/NoteState"
300
+ },
301
+ "hiddenReason": {
302
+ "$ref": "#/$defs/Reason",
303
+ "description": "A `hidden` note's reason, shown to everyone who sees the note."
304
+ }
305
+ }
306
+ },
307
+ "Reason": {
308
+ "title": "Reason",
309
+ "type": "string",
310
+ "minLength": 1,
311
+ "maxLength": 500,
312
+ "description": "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text."
313
+ },
314
+ "NoteState": {
315
+ "title": "NoteState",
316
+ "type": "string",
317
+ "enum": [
318
+ "visible",
319
+ "withdrawn",
320
+ "hidden"
321
+ ]
322
+ },
323
+ "NoteText": {
324
+ "title": "NoteText",
325
+ "type": "string",
326
+ "minLength": 1,
327
+ "maxLength": 1000,
328
+ "description": "A note's text (VTI-BRD-020). Plain text; a reader MUST NOT treat it as instructions. Never changes once added (VTI-BRD-021)."
329
+ },
330
+ "Author": {
331
+ "title": "Author",
332
+ "description": "Who proposed an idea or wrote a note, as the board's audience sees them. `entryId` is their directory entry, which survives a rotation of their DID; `name` is their directory display name as this caller may see it, absent where the directory withholds it. A departed member is shown as `formerMember: true` with neither (VTI-BRD-060).",
333
+ "type": "object",
334
+ "additionalProperties": false,
335
+ "properties": {
336
+ "entryId": {
337
+ "$ref": "#/$defs/EntryId"
338
+ },
339
+ "name": {
340
+ "type": "string",
341
+ "minLength": 1,
342
+ "maxLength": 200
343
+ },
344
+ "formerMember": {
345
+ "const": true
346
+ },
347
+ "you": {
348
+ "const": true,
349
+ "description": "Present when the caller is the author."
350
+ }
351
+ }
352
+ },
353
+ "EntryId": {
354
+ "title": "EntryId",
355
+ "description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
356
+ "type": "string",
357
+ "pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
358
+ },
359
+ "IdeaId": {
360
+ "title": "IdeaId",
361
+ "description": "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.",
362
+ "type": "string",
363
+ "pattern": "^ida_[A-Za-z0-9_-]{16,64}$"
364
+ },
365
+ "BoardId": {
366
+ "title": "BoardId",
367
+ "description": "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).",
368
+ "type": "string",
369
+ "pattern": "^brd_[A-Za-z0-9_-]{16,64}$"
370
+ },
371
+ "NoteId": {
372
+ "title": "NoteId",
373
+ "description": "Opaque identifier of a note: `bnt_` followed by 16 to 64 base64url characters. Random and unique within the community.",
374
+ "type": "string",
375
+ "pattern": "^bnt_[A-Za-z0-9_-]{16,64}$"
376
+ }
377
+ }
378
+ };
379
+ /**
380
+ * SPEC.md §7.2 policy for the request variant, from this specification's
381
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
382
+ * per-specification and cannot be derived from the document alone, and
383
+ * item 2 needs the schema this carries.
384
+ */
385
+ export const SPEC = {
386
+ typeUri: TYPE_URI,
387
+ isBearer: false,
388
+ isProofRequired: false,
389
+ isRecipientRequired: true,
390
+ isIssuedAtRequired: false,
391
+ payloadSchema: PAYLOAD_SCHEMA,
392
+ };
393
+ /**
394
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
395
+ * tracks the *issuer* party's requirement because a response swaps the
396
+ * parties (§7.3 item 5).
397
+ */
398
+ export const RESPONSE_SPEC = {
399
+ typeUri: RESPONSE_TYPE_URI,
400
+ isBearer: false,
401
+ isProofRequired: false,
402
+ isRecipientRequired: true,
403
+ isIssuedAtRequired: false,
404
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
405
+ };
406
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/boards/notes/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAEzF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,IAAI,CAAC;AAK/C,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,uDAAuD;IAC9D,OAAO,EAAE,qCAAqC;IAC9C,aAAa,EAAE,sI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