@openvtc/trust-tasks 0.28.12 → 0.28.14

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 (101) hide show
  1. package/CHANGELOG.md +88 -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 +43 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +43 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/process-attestation/0.1/payload.d.ts +73 -7
  9. package/dist/process-attestation/0.1/payload.d.ts.map +1 -1
  10. package/dist/process-attestation/0.1/payload.js +40 -6
  11. package/dist/process-attestation/0.1/payload.js.map +1 -1
  12. package/dist/trust-task-discovery/0.1/payload.d.ts +4 -4
  13. package/dist/trust-task-discovery/0.1/payload.js +1 -1
  14. package/dist/trust-task-discovery/0.2/payload.d.ts +4 -4
  15. package/dist/trust-task-discovery/0.2/payload.js +1 -1
  16. package/dist/trust-task-discovery/0.3/payload.d.ts +14 -2
  17. package/dist/trust-task-discovery/0.3/payload.d.ts.map +1 -1
  18. package/dist/trust-task-discovery/0.3/payload.js +1 -1
  19. package/dist/trust-task-discovery/0.3/payload.js.map +1 -1
  20. package/dist/trust-task-discovery/0.4/payload.d.ts +521 -0
  21. package/dist/trust-task-discovery/0.4/payload.d.ts.map +1 -0
  22. package/dist/trust-task-discovery/0.4/payload.js +266 -0
  23. package/dist/trust-task-discovery/0.4/payload.js.map +1 -0
  24. package/dist/vtc/boards/_shared/0.1/board.d.ts +22 -0
  25. package/dist/vtc/boards/_shared/0.1/board.d.ts.map +1 -0
  26. package/dist/vtc/boards/_shared/0.1/board.js +6 -0
  27. package/dist/vtc/boards/_shared/0.1/board.js.map +1 -0
  28. package/dist/vtc/boards/create/0.1/payload.d.ts +2402 -0
  29. package/dist/vtc/boards/create/0.1/payload.d.ts.map +1 -0
  30. package/dist/vtc/boards/create/0.1/payload.js +1349 -0
  31. package/dist/vtc/boards/create/0.1/payload.js.map +1 -0
  32. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts +1781 -0
  33. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts.map +1 -0
  34. package/dist/vtc/boards/ideas/decide/0.1/payload.js +1028 -0
  35. package/dist/vtc/boards/ideas/decide/0.1/payload.js.map +1 -0
  36. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts +1781 -0
  37. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts.map +1 -0
  38. package/dist/vtc/boards/ideas/propose/0.1/payload.js +1025 -0
  39. package/dist/vtc/boards/ideas/propose/0.1/payload.js.map +1 -0
  40. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts +1788 -0
  41. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts.map +1 -0
  42. package/dist/vtc/boards/ideas/select/0.1/payload.js +1029 -0
  43. package/dist/vtc/boards/ideas/select/0.1/payload.js.map +1 -0
  44. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts +1781 -0
  45. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts.map +1 -0
  46. package/dist/vtc/boards/ideas/update/0.1/payload.js +1023 -0
  47. package/dist/vtc/boards/ideas/update/0.1/payload.js.map +1 -0
  48. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts +1753 -0
  49. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts.map +1 -0
  50. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js +1011 -0
  51. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js.map +1 -0
  52. package/dist/vtc/boards/list/0.1/payload.d.ts +2267 -0
  53. package/dist/vtc/boards/list/0.1/payload.d.ts.map +1 -0
  54. package/dist/vtc/boards/list/0.1/payload.js +1326 -0
  55. package/dist/vtc/boards/list/0.1/payload.js.map +1 -0
  56. package/dist/vtc/boards/notes/add/0.1/payload.d.ts +655 -0
  57. package/dist/vtc/boards/notes/add/0.1/payload.d.ts.map +1 -0
  58. package/dist/vtc/boards/notes/add/0.1/payload.js +374 -0
  59. package/dist/vtc/boards/notes/add/0.1/payload.js.map +1 -0
  60. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts +657 -0
  61. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts.map +1 -0
  62. package/dist/vtc/boards/notes/hide/0.1/payload.js +378 -0
  63. package/dist/vtc/boards/notes/hide/0.1/payload.js.map +1 -0
  64. package/dist/vtc/boards/notes/list/0.1/payload.d.ts +730 -0
  65. package/dist/vtc/boards/notes/list/0.1/payload.d.ts.map +1 -0
  66. package/dist/vtc/boards/notes/list/0.1/payload.js +406 -0
  67. package/dist/vtc/boards/notes/list/0.1/payload.js.map +1 -0
  68. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts +641 -0
  69. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts.map +1 -0
  70. package/dist/vtc/boards/notes/withdraw/0.1/payload.js +367 -0
  71. package/dist/vtc/boards/notes/withdraw/0.1/payload.js.map +1 -0
  72. package/dist/vtc/boards/show/0.1/payload.d.ts +3713 -0
  73. package/dist/vtc/boards/show/0.1/payload.d.ts.map +1 -0
  74. package/dist/vtc/boards/show/0.1/payload.js +2160 -0
  75. package/dist/vtc/boards/show/0.1/payload.js.map +1 -0
  76. package/dist/vtc/boards/update/0.1/payload.d.ts +2423 -0
  77. package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -0
  78. package/dist/vtc/boards/update/0.1/payload.js +1356 -0
  79. package/dist/vtc/boards/update/0.1/payload.js.map +1 -0
  80. package/package.json +1 -1
  81. package/src/_shared/components.ts +493 -0
  82. package/src/index.ts +43 -0
  83. package/src/process-attestation/0.1/payload.ts +53 -9
  84. package/src/trust-task-discovery/0.1/payload.ts +5 -5
  85. package/src/trust-task-discovery/0.2/payload.ts +5 -5
  86. package/src/trust-task-discovery/0.3/payload.ts +15 -3
  87. package/src/trust-task-discovery/0.4/payload.ts +387 -0
  88. package/src/vtc/boards/_shared/0.1/board.ts +23 -0
  89. package/src/vtc/boards/create/0.1/payload.ts +1517 -0
  90. package/src/vtc/boards/ideas/decide/0.1/payload.ts +1068 -0
  91. package/src/vtc/boards/ideas/propose/0.1/payload.ts +1063 -0
  92. package/src/vtc/boards/ideas/select/0.1/payload.ts +1070 -0
  93. package/src/vtc/boards/ideas/update/0.1/payload.ts +1061 -0
  94. package/src/vtc/boards/ideas/withdraw/0.1/payload.ts +1045 -0
  95. package/src/vtc/boards/list/0.1/payload.ts +1376 -0
  96. package/src/vtc/boards/notes/add/0.1/payload.ts +410 -0
  97. package/src/vtc/boards/notes/hide/0.1/payload.ts +414 -0
  98. package/src/vtc/boards/notes/list/0.1/payload.ts +457 -0
  99. package/src/vtc/boards/notes/withdraw/0.1/payload.ts +401 -0
  100. package/src/vtc/boards/show/0.1/payload.ts +2212 -0
  101. package/src/vtc/boards/update/0.1/payload.ts +1529 -0
@@ -0,0 +1,730 @@
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
+ import type { Author, BoardId, EntryId, Ext, IdeaId, Note, NoteId_VtcBoardsV0_1 as NoteId, NoteState, NoteText_VtcBoardsV0_1 as NoteText, Reason_VtcBoardsV0_1 as Reason } from "../../../../../_shared/components.js";
6
+ /**
7
+ * 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.
8
+ */
9
+ export interface VTCBoardsNotesListPayload {
10
+ boardId: BoardId;
11
+ ideaId?: IdeaId;
12
+ /**
13
+ * Without `ideaId`: the board's own notes (`board`, default) or every note on it (`all`). Ignored with `ideaId`.
14
+ */
15
+ scope?: "board" | "all";
16
+ /**
17
+ * 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.
18
+ */
19
+ cursor?: string;
20
+ /**
21
+ * The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer.
22
+ */
23
+ limit?: number;
24
+ ext?: Ext;
25
+ }
26
+ /**
27
+ * 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.
28
+ */
29
+ export interface VTCBoardsNotesListResponsePayload {
30
+ notes: Note[];
31
+ /**
32
+ * Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.
33
+ */
34
+ nextCursor?: string;
35
+ ext?: Ext;
36
+ }
37
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
38
+ export type { Author, BoardId, EntryId, Ext, IdeaId, Note, NoteId, NoteState, NoteText, Reason };
39
+ /** Trust Task type URI. */
40
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/boards/notes/list/0.1";
41
+ /**
42
+ * The earlier version of this specification that this one declares it
43
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
44
+ * `null`. Only the direct declaration — follow the chain with
45
+ * `extendsChain` / `readForSpec`.
46
+ */
47
+ export declare const EXTENDS: string | null;
48
+ /**
49
+ * Why this version is deprecated, or `null` while it is current. A
50
+ * superseded or retired version is still supported, and is withdrawn from
51
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
52
+ * Versions").
53
+ */
54
+ export declare const DEPRECATION: string | null;
55
+ /** Stable alias for this specification's request payload shape. */
56
+ export type Payload = VTCBoardsNotesListPayload;
57
+ /** Trust Task response type URI (request type URI + "#response"). */
58
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/boards/notes/list/0.1#response";
59
+ /** Stable alias for this specification's success-response payload shape. */
60
+ export type Response = VTCBoardsNotesListResponsePayload;
61
+ /**
62
+ * This specification's payload schema, as a value.
63
+ *
64
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
65
+ * rather than only as a `.json` file because TypeScript types are erased
66
+ * at runtime: without a schema a consumer has nothing to validate, and
67
+ * every REQUIRED payload member is optional in practice. Cross-file
68
+ * `$ref`s are already inlined, so it needs no resolver.
69
+ */
70
+ export declare const PAYLOAD_SCHEMA: {
71
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
72
+ readonly $id: "https://trusttasks.org/spec/vtc/boards/notes/list/0.1";
73
+ readonly title: "VTC Boards — Notes — List — payload";
74
+ readonly 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.";
75
+ readonly type: "object";
76
+ readonly additionalProperties: false;
77
+ readonly required: readonly ["boardId"];
78
+ readonly properties: {
79
+ readonly boardId: {
80
+ readonly $ref: "#/$defs/BoardId";
81
+ };
82
+ readonly ideaId: {
83
+ readonly $ref: "#/$defs/IdeaId";
84
+ };
85
+ readonly scope: {
86
+ readonly type: "string";
87
+ readonly enum: readonly ["board", "all"];
88
+ readonly description: "Without `ideaId`: the board's own notes (`board`, default) or every note on it (`all`). Ignored with `ideaId`.";
89
+ };
90
+ readonly cursor: {
91
+ readonly type: "string";
92
+ readonly minLength: 1;
93
+ readonly maxLength: 1024;
94
+ readonly 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.";
95
+ };
96
+ readonly limit: {
97
+ readonly type: "integer";
98
+ readonly minimum: 1;
99
+ readonly maximum: 200;
100
+ readonly description: "The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer.";
101
+ };
102
+ readonly ext: {
103
+ readonly $ref: "#/$defs/Ext";
104
+ };
105
+ };
106
+ readonly $defs: {
107
+ readonly Response: {
108
+ readonly $anchor: "response";
109
+ readonly title: "VTC Boards — Notes — List — response payload";
110
+ readonly 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.";
111
+ readonly type: "object";
112
+ readonly additionalProperties: false;
113
+ readonly required: readonly ["notes"];
114
+ readonly properties: {
115
+ readonly notes: {
116
+ readonly type: "array";
117
+ readonly items: {
118
+ readonly $ref: "#/$defs/Note";
119
+ };
120
+ };
121
+ readonly nextCursor: {
122
+ readonly type: "string";
123
+ readonly maxLength: 1024;
124
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
125
+ };
126
+ readonly ext: {
127
+ readonly $ref: "#/$defs/Ext";
128
+ };
129
+ };
130
+ };
131
+ readonly Ext: {
132
+ readonly title: "Ext";
133
+ 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.";
134
+ readonly type: "object";
135
+ readonly minProperties: 1;
136
+ readonly additionalProperties: true;
137
+ readonly propertyNames: {
138
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
139
+ };
140
+ };
141
+ readonly Note: {
142
+ readonly title: "Note";
143
+ readonly 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).";
144
+ readonly type: "object";
145
+ readonly additionalProperties: false;
146
+ readonly required: readonly ["noteId", "boardId", "author", "createdAt", "state"];
147
+ readonly properties: {
148
+ readonly noteId: {
149
+ readonly $ref: "#/$defs/NoteId";
150
+ };
151
+ readonly boardId: {
152
+ readonly $ref: "#/$defs/BoardId";
153
+ };
154
+ readonly ideaId: {
155
+ readonly $ref: "#/$defs/IdeaId";
156
+ readonly description: "The idea the note is attached to; absent for a note on the board itself.";
157
+ };
158
+ readonly author: {
159
+ readonly $ref: "#/$defs/Author";
160
+ };
161
+ readonly text: {
162
+ readonly $ref: "#/$defs/NoteText";
163
+ };
164
+ readonly createdAt: {
165
+ readonly type: "string";
166
+ readonly format: "date-time";
167
+ };
168
+ readonly state: {
169
+ readonly $ref: "#/$defs/NoteState";
170
+ };
171
+ readonly hiddenReason: {
172
+ readonly $ref: "#/$defs/Reason";
173
+ readonly description: "A `hidden` note's reason, shown to everyone who sees the note.";
174
+ };
175
+ };
176
+ };
177
+ readonly Reason: {
178
+ readonly title: "Reason";
179
+ readonly type: "string";
180
+ readonly minLength: 1;
181
+ readonly maxLength: 500;
182
+ readonly description: "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text.";
183
+ };
184
+ readonly NoteState: {
185
+ readonly title: "NoteState";
186
+ readonly type: "string";
187
+ readonly enum: readonly ["visible", "withdrawn", "hidden"];
188
+ };
189
+ readonly NoteText: {
190
+ readonly title: "NoteText";
191
+ readonly type: "string";
192
+ readonly minLength: 1;
193
+ readonly maxLength: 1000;
194
+ readonly 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).";
195
+ };
196
+ readonly Author: {
197
+ readonly title: "Author";
198
+ readonly 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).";
199
+ readonly type: "object";
200
+ readonly additionalProperties: false;
201
+ readonly properties: {
202
+ readonly entryId: {
203
+ readonly $ref: "#/$defs/EntryId";
204
+ };
205
+ readonly name: {
206
+ readonly type: "string";
207
+ readonly minLength: 1;
208
+ readonly maxLength: 200;
209
+ };
210
+ readonly formerMember: {
211
+ readonly const: true;
212
+ };
213
+ readonly you: {
214
+ readonly const: true;
215
+ readonly description: "Present when the caller is the author.";
216
+ };
217
+ };
218
+ };
219
+ readonly EntryId: {
220
+ readonly title: "EntryId";
221
+ readonly 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.";
222
+ readonly type: "string";
223
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
224
+ };
225
+ readonly IdeaId: {
226
+ readonly title: "IdeaId";
227
+ readonly description: "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.";
228
+ readonly type: "string";
229
+ readonly pattern: "^ida_[A-Za-z0-9_-]{16,64}$";
230
+ };
231
+ readonly BoardId: {
232
+ readonly title: "BoardId";
233
+ readonly description: "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).";
234
+ readonly type: "string";
235
+ readonly pattern: "^brd_[A-Za-z0-9_-]{16,64}$";
236
+ };
237
+ readonly NoteId: {
238
+ readonly title: "NoteId";
239
+ readonly description: "Opaque identifier of a note: `bnt_` followed by 16 to 64 base64url characters. Random and unique within the community.";
240
+ readonly type: "string";
241
+ readonly pattern: "^bnt_[A-Za-z0-9_-]{16,64}$";
242
+ };
243
+ };
244
+ };
245
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
246
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
247
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
248
+ readonly $ref: "#/$defs/Response";
249
+ readonly $defs: {
250
+ readonly Response: {
251
+ readonly $anchor: "response";
252
+ readonly title: "VTC Boards — Notes — List — response payload";
253
+ readonly 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.";
254
+ readonly type: "object";
255
+ readonly additionalProperties: false;
256
+ readonly required: readonly ["notes"];
257
+ readonly properties: {
258
+ readonly notes: {
259
+ readonly type: "array";
260
+ readonly items: {
261
+ readonly $ref: "#/$defs/Note";
262
+ };
263
+ };
264
+ readonly nextCursor: {
265
+ readonly type: "string";
266
+ readonly maxLength: 1024;
267
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
268
+ };
269
+ readonly ext: {
270
+ readonly $ref: "#/$defs/Ext";
271
+ };
272
+ };
273
+ };
274
+ readonly Ext: {
275
+ readonly title: "Ext";
276
+ 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.";
277
+ readonly type: "object";
278
+ readonly minProperties: 1;
279
+ readonly additionalProperties: true;
280
+ readonly propertyNames: {
281
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
282
+ };
283
+ };
284
+ readonly Note: {
285
+ readonly title: "Note";
286
+ readonly 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).";
287
+ readonly type: "object";
288
+ readonly additionalProperties: false;
289
+ readonly required: readonly ["noteId", "boardId", "author", "createdAt", "state"];
290
+ readonly properties: {
291
+ readonly noteId: {
292
+ readonly $ref: "#/$defs/NoteId";
293
+ };
294
+ readonly boardId: {
295
+ readonly $ref: "#/$defs/BoardId";
296
+ };
297
+ readonly ideaId: {
298
+ readonly $ref: "#/$defs/IdeaId";
299
+ readonly description: "The idea the note is attached to; absent for a note on the board itself.";
300
+ };
301
+ readonly author: {
302
+ readonly $ref: "#/$defs/Author";
303
+ };
304
+ readonly text: {
305
+ readonly $ref: "#/$defs/NoteText";
306
+ };
307
+ readonly createdAt: {
308
+ readonly type: "string";
309
+ readonly format: "date-time";
310
+ };
311
+ readonly state: {
312
+ readonly $ref: "#/$defs/NoteState";
313
+ };
314
+ readonly hiddenReason: {
315
+ readonly $ref: "#/$defs/Reason";
316
+ readonly description: "A `hidden` note's reason, shown to everyone who sees the note.";
317
+ };
318
+ };
319
+ };
320
+ readonly Reason: {
321
+ readonly title: "Reason";
322
+ readonly type: "string";
323
+ readonly minLength: 1;
324
+ readonly maxLength: 500;
325
+ readonly description: "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text.";
326
+ };
327
+ readonly NoteState: {
328
+ readonly title: "NoteState";
329
+ readonly type: "string";
330
+ readonly enum: readonly ["visible", "withdrawn", "hidden"];
331
+ };
332
+ readonly NoteText: {
333
+ readonly title: "NoteText";
334
+ readonly type: "string";
335
+ readonly minLength: 1;
336
+ readonly maxLength: 1000;
337
+ readonly 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).";
338
+ };
339
+ readonly Author: {
340
+ readonly title: "Author";
341
+ readonly 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).";
342
+ readonly type: "object";
343
+ readonly additionalProperties: false;
344
+ readonly properties: {
345
+ readonly entryId: {
346
+ readonly $ref: "#/$defs/EntryId";
347
+ };
348
+ readonly name: {
349
+ readonly type: "string";
350
+ readonly minLength: 1;
351
+ readonly maxLength: 200;
352
+ };
353
+ readonly formerMember: {
354
+ readonly const: true;
355
+ };
356
+ readonly you: {
357
+ readonly const: true;
358
+ readonly description: "Present when the caller is the author.";
359
+ };
360
+ };
361
+ };
362
+ readonly EntryId: {
363
+ readonly title: "EntryId";
364
+ readonly 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.";
365
+ readonly type: "string";
366
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
367
+ };
368
+ readonly IdeaId: {
369
+ readonly title: "IdeaId";
370
+ readonly description: "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.";
371
+ readonly type: "string";
372
+ readonly pattern: "^ida_[A-Za-z0-9_-]{16,64}$";
373
+ };
374
+ readonly BoardId: {
375
+ readonly title: "BoardId";
376
+ readonly description: "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).";
377
+ readonly type: "string";
378
+ readonly pattern: "^brd_[A-Za-z0-9_-]{16,64}$";
379
+ };
380
+ readonly NoteId: {
381
+ readonly title: "NoteId";
382
+ readonly description: "Opaque identifier of a note: `bnt_` followed by 16 to 64 base64url characters. Random and unique within the community.";
383
+ readonly type: "string";
384
+ readonly pattern: "^bnt_[A-Za-z0-9_-]{16,64}$";
385
+ };
386
+ };
387
+ };
388
+ /**
389
+ * SPEC.md §7.2 policy for the request variant, from this specification's
390
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
391
+ * per-specification and cannot be derived from the document alone, and
392
+ * item 2 needs the schema this carries.
393
+ */
394
+ export declare const SPEC: {
395
+ readonly typeUri: "https://trusttasks.org/spec/vtc/boards/notes/list/0.1";
396
+ readonly isBearer: false;
397
+ readonly isProofRequired: false;
398
+ readonly isRecipientRequired: true;
399
+ readonly isIssuedAtRequired: false;
400
+ readonly payloadSchema: {
401
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
402
+ readonly $id: "https://trusttasks.org/spec/vtc/boards/notes/list/0.1";
403
+ readonly title: "VTC Boards — Notes — List — payload";
404
+ readonly 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.";
405
+ readonly type: "object";
406
+ readonly additionalProperties: false;
407
+ readonly required: readonly ["boardId"];
408
+ readonly properties: {
409
+ readonly boardId: {
410
+ readonly $ref: "#/$defs/BoardId";
411
+ };
412
+ readonly ideaId: {
413
+ readonly $ref: "#/$defs/IdeaId";
414
+ };
415
+ readonly scope: {
416
+ readonly type: "string";
417
+ readonly enum: readonly ["board", "all"];
418
+ readonly description: "Without `ideaId`: the board's own notes (`board`, default) or every note on it (`all`). Ignored with `ideaId`.";
419
+ };
420
+ readonly cursor: {
421
+ readonly type: "string";
422
+ readonly minLength: 1;
423
+ readonly maxLength: 1024;
424
+ readonly 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.";
425
+ };
426
+ readonly limit: {
427
+ readonly type: "integer";
428
+ readonly minimum: 1;
429
+ readonly maximum: 200;
430
+ readonly description: "The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer.";
431
+ };
432
+ readonly ext: {
433
+ readonly $ref: "#/$defs/Ext";
434
+ };
435
+ };
436
+ readonly $defs: {
437
+ readonly Response: {
438
+ readonly $anchor: "response";
439
+ readonly title: "VTC Boards — Notes — List — response payload";
440
+ readonly 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.";
441
+ readonly type: "object";
442
+ readonly additionalProperties: false;
443
+ readonly required: readonly ["notes"];
444
+ readonly properties: {
445
+ readonly notes: {
446
+ readonly type: "array";
447
+ readonly items: {
448
+ readonly $ref: "#/$defs/Note";
449
+ };
450
+ };
451
+ readonly nextCursor: {
452
+ readonly type: "string";
453
+ readonly maxLength: 1024;
454
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
455
+ };
456
+ readonly ext: {
457
+ readonly $ref: "#/$defs/Ext";
458
+ };
459
+ };
460
+ };
461
+ readonly Ext: {
462
+ readonly title: "Ext";
463
+ 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.";
464
+ readonly type: "object";
465
+ readonly minProperties: 1;
466
+ readonly additionalProperties: true;
467
+ readonly propertyNames: {
468
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
469
+ };
470
+ };
471
+ readonly Note: {
472
+ readonly title: "Note";
473
+ readonly 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).";
474
+ readonly type: "object";
475
+ readonly additionalProperties: false;
476
+ readonly required: readonly ["noteId", "boardId", "author", "createdAt", "state"];
477
+ readonly properties: {
478
+ readonly noteId: {
479
+ readonly $ref: "#/$defs/NoteId";
480
+ };
481
+ readonly boardId: {
482
+ readonly $ref: "#/$defs/BoardId";
483
+ };
484
+ readonly ideaId: {
485
+ readonly $ref: "#/$defs/IdeaId";
486
+ readonly description: "The idea the note is attached to; absent for a note on the board itself.";
487
+ };
488
+ readonly author: {
489
+ readonly $ref: "#/$defs/Author";
490
+ };
491
+ readonly text: {
492
+ readonly $ref: "#/$defs/NoteText";
493
+ };
494
+ readonly createdAt: {
495
+ readonly type: "string";
496
+ readonly format: "date-time";
497
+ };
498
+ readonly state: {
499
+ readonly $ref: "#/$defs/NoteState";
500
+ };
501
+ readonly hiddenReason: {
502
+ readonly $ref: "#/$defs/Reason";
503
+ readonly description: "A `hidden` note's reason, shown to everyone who sees the note.";
504
+ };
505
+ };
506
+ };
507
+ readonly Reason: {
508
+ readonly title: "Reason";
509
+ readonly type: "string";
510
+ readonly minLength: 1;
511
+ readonly maxLength: 500;
512
+ readonly description: "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text.";
513
+ };
514
+ readonly NoteState: {
515
+ readonly title: "NoteState";
516
+ readonly type: "string";
517
+ readonly enum: readonly ["visible", "withdrawn", "hidden"];
518
+ };
519
+ readonly NoteText: {
520
+ readonly title: "NoteText";
521
+ readonly type: "string";
522
+ readonly minLength: 1;
523
+ readonly maxLength: 1000;
524
+ readonly 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).";
525
+ };
526
+ readonly Author: {
527
+ readonly title: "Author";
528
+ readonly 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).";
529
+ readonly type: "object";
530
+ readonly additionalProperties: false;
531
+ readonly properties: {
532
+ readonly entryId: {
533
+ readonly $ref: "#/$defs/EntryId";
534
+ };
535
+ readonly name: {
536
+ readonly type: "string";
537
+ readonly minLength: 1;
538
+ readonly maxLength: 200;
539
+ };
540
+ readonly formerMember: {
541
+ readonly const: true;
542
+ };
543
+ readonly you: {
544
+ readonly const: true;
545
+ readonly description: "Present when the caller is the author.";
546
+ };
547
+ };
548
+ };
549
+ readonly EntryId: {
550
+ readonly title: "EntryId";
551
+ readonly 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.";
552
+ readonly type: "string";
553
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
554
+ };
555
+ readonly IdeaId: {
556
+ readonly title: "IdeaId";
557
+ readonly description: "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.";
558
+ readonly type: "string";
559
+ readonly pattern: "^ida_[A-Za-z0-9_-]{16,64}$";
560
+ };
561
+ readonly BoardId: {
562
+ readonly title: "BoardId";
563
+ readonly description: "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).";
564
+ readonly type: "string";
565
+ readonly pattern: "^brd_[A-Za-z0-9_-]{16,64}$";
566
+ };
567
+ readonly NoteId: {
568
+ readonly title: "NoteId";
569
+ readonly description: "Opaque identifier of a note: `bnt_` followed by 16 to 64 base64url characters. Random and unique within the community.";
570
+ readonly type: "string";
571
+ readonly pattern: "^bnt_[A-Za-z0-9_-]{16,64}$";
572
+ };
573
+ };
574
+ };
575
+ };
576
+ /**
577
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
578
+ * tracks the *issuer* party's requirement because a response swaps the
579
+ * parties (§7.3 item 5).
580
+ */
581
+ export declare const RESPONSE_SPEC: {
582
+ readonly typeUri: "https://trusttasks.org/spec/vtc/boards/notes/list/0.1#response";
583
+ readonly isBearer: false;
584
+ readonly isProofRequired: false;
585
+ readonly isRecipientRequired: true;
586
+ readonly isIssuedAtRequired: false;
587
+ readonly payloadSchema: {
588
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
589
+ readonly $ref: "#/$defs/Response";
590
+ readonly $defs: {
591
+ readonly Response: {
592
+ readonly $anchor: "response";
593
+ readonly title: "VTC Boards — Notes — List — response payload";
594
+ readonly 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.";
595
+ readonly type: "object";
596
+ readonly additionalProperties: false;
597
+ readonly required: readonly ["notes"];
598
+ readonly properties: {
599
+ readonly notes: {
600
+ readonly type: "array";
601
+ readonly items: {
602
+ readonly $ref: "#/$defs/Note";
603
+ };
604
+ };
605
+ readonly nextCursor: {
606
+ readonly type: "string";
607
+ readonly maxLength: 1024;
608
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
609
+ };
610
+ readonly ext: {
611
+ readonly $ref: "#/$defs/Ext";
612
+ };
613
+ };
614
+ };
615
+ readonly Ext: {
616
+ readonly title: "Ext";
617
+ 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.";
618
+ readonly type: "object";
619
+ readonly minProperties: 1;
620
+ readonly additionalProperties: true;
621
+ readonly propertyNames: {
622
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
623
+ };
624
+ };
625
+ readonly Note: {
626
+ readonly title: "Note";
627
+ readonly 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).";
628
+ readonly type: "object";
629
+ readonly additionalProperties: false;
630
+ readonly required: readonly ["noteId", "boardId", "author", "createdAt", "state"];
631
+ readonly properties: {
632
+ readonly noteId: {
633
+ readonly $ref: "#/$defs/NoteId";
634
+ };
635
+ readonly boardId: {
636
+ readonly $ref: "#/$defs/BoardId";
637
+ };
638
+ readonly ideaId: {
639
+ readonly $ref: "#/$defs/IdeaId";
640
+ readonly description: "The idea the note is attached to; absent for a note on the board itself.";
641
+ };
642
+ readonly author: {
643
+ readonly $ref: "#/$defs/Author";
644
+ };
645
+ readonly text: {
646
+ readonly $ref: "#/$defs/NoteText";
647
+ };
648
+ readonly createdAt: {
649
+ readonly type: "string";
650
+ readonly format: "date-time";
651
+ };
652
+ readonly state: {
653
+ readonly $ref: "#/$defs/NoteState";
654
+ };
655
+ readonly hiddenReason: {
656
+ readonly $ref: "#/$defs/Reason";
657
+ readonly description: "A `hidden` note's reason, shown to everyone who sees the note.";
658
+ };
659
+ };
660
+ };
661
+ readonly Reason: {
662
+ readonly title: "Reason";
663
+ readonly type: "string";
664
+ readonly minLength: 1;
665
+ readonly maxLength: 500;
666
+ readonly description: "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text.";
667
+ };
668
+ readonly NoteState: {
669
+ readonly title: "NoteState";
670
+ readonly type: "string";
671
+ readonly enum: readonly ["visible", "withdrawn", "hidden"];
672
+ };
673
+ readonly NoteText: {
674
+ readonly title: "NoteText";
675
+ readonly type: "string";
676
+ readonly minLength: 1;
677
+ readonly maxLength: 1000;
678
+ readonly 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).";
679
+ };
680
+ readonly Author: {
681
+ readonly title: "Author";
682
+ readonly 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).";
683
+ readonly type: "object";
684
+ readonly additionalProperties: false;
685
+ readonly properties: {
686
+ readonly entryId: {
687
+ readonly $ref: "#/$defs/EntryId";
688
+ };
689
+ readonly name: {
690
+ readonly type: "string";
691
+ readonly minLength: 1;
692
+ readonly maxLength: 200;
693
+ };
694
+ readonly formerMember: {
695
+ readonly const: true;
696
+ };
697
+ readonly you: {
698
+ readonly const: true;
699
+ readonly description: "Present when the caller is the author.";
700
+ };
701
+ };
702
+ };
703
+ readonly EntryId: {
704
+ readonly title: "EntryId";
705
+ readonly 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.";
706
+ readonly type: "string";
707
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
708
+ };
709
+ readonly IdeaId: {
710
+ readonly title: "IdeaId";
711
+ readonly description: "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.";
712
+ readonly type: "string";
713
+ readonly pattern: "^ida_[A-Za-z0-9_-]{16,64}$";
714
+ };
715
+ readonly BoardId: {
716
+ readonly title: "BoardId";
717
+ readonly description: "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).";
718
+ readonly type: "string";
719
+ readonly pattern: "^brd_[A-Za-z0-9_-]{16,64}$";
720
+ };
721
+ readonly NoteId: {
722
+ readonly title: "NoteId";
723
+ readonly description: "Opaque identifier of a note: `bnt_` followed by 16 to 64 base64url characters. Random and unique within the community.";
724
+ readonly type: "string";
725
+ readonly pattern: "^bnt_[A-Za-z0-9_-]{16,64}$";
726
+ };
727
+ };
728
+ };
729
+ };
730
+ //# sourceMappingURL=payload.d.ts.map