@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.
- package/CHANGELOG.md +88 -0
- package/dist/_shared/components.d.ts +458 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +43 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -1
- package/dist/process-attestation/0.1/payload.d.ts +73 -7
- package/dist/process-attestation/0.1/payload.d.ts.map +1 -1
- package/dist/process-attestation/0.1/payload.js +40 -6
- package/dist/process-attestation/0.1/payload.js.map +1 -1
- package/dist/trust-task-discovery/0.1/payload.d.ts +4 -4
- package/dist/trust-task-discovery/0.1/payload.js +1 -1
- package/dist/trust-task-discovery/0.2/payload.d.ts +4 -4
- package/dist/trust-task-discovery/0.2/payload.js +1 -1
- package/dist/trust-task-discovery/0.3/payload.d.ts +14 -2
- package/dist/trust-task-discovery/0.3/payload.d.ts.map +1 -1
- package/dist/trust-task-discovery/0.3/payload.js +1 -1
- package/dist/trust-task-discovery/0.3/payload.js.map +1 -1
- package/dist/trust-task-discovery/0.4/payload.d.ts +521 -0
- package/dist/trust-task-discovery/0.4/payload.d.ts.map +1 -0
- package/dist/trust-task-discovery/0.4/payload.js +266 -0
- package/dist/trust-task-discovery/0.4/payload.js.map +1 -0
- package/dist/vtc/boards/_shared/0.1/board.d.ts +22 -0
- package/dist/vtc/boards/_shared/0.1/board.d.ts.map +1 -0
- package/dist/vtc/boards/_shared/0.1/board.js +6 -0
- package/dist/vtc/boards/_shared/0.1/board.js.map +1 -0
- package/dist/vtc/boards/create/0.1/payload.d.ts +2402 -0
- package/dist/vtc/boards/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/create/0.1/payload.js +1349 -0
- package/dist/vtc/boards/create/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts +1781 -0
- package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/ideas/decide/0.1/payload.js +1028 -0
- package/dist/vtc/boards/ideas/decide/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts +1781 -0
- package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/ideas/propose/0.1/payload.js +1025 -0
- package/dist/vtc/boards/ideas/propose/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/ideas/select/0.1/payload.d.ts +1788 -0
- package/dist/vtc/boards/ideas/select/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/ideas/select/0.1/payload.js +1029 -0
- package/dist/vtc/boards/ideas/select/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/ideas/update/0.1/payload.d.ts +1781 -0
- package/dist/vtc/boards/ideas/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/ideas/update/0.1/payload.js +1023 -0
- package/dist/vtc/boards/ideas/update/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts +1753 -0
- package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/ideas/withdraw/0.1/payload.js +1011 -0
- package/dist/vtc/boards/ideas/withdraw/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/list/0.1/payload.d.ts +2267 -0
- package/dist/vtc/boards/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/list/0.1/payload.js +1326 -0
- package/dist/vtc/boards/list/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/notes/add/0.1/payload.d.ts +655 -0
- package/dist/vtc/boards/notes/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/notes/add/0.1/payload.js +374 -0
- package/dist/vtc/boards/notes/add/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/notes/hide/0.1/payload.d.ts +657 -0
- package/dist/vtc/boards/notes/hide/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/notes/hide/0.1/payload.js +378 -0
- package/dist/vtc/boards/notes/hide/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/notes/list/0.1/payload.d.ts +730 -0
- package/dist/vtc/boards/notes/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/notes/list/0.1/payload.js +406 -0
- package/dist/vtc/boards/notes/list/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts +641 -0
- package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/notes/withdraw/0.1/payload.js +367 -0
- package/dist/vtc/boards/notes/withdraw/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/show/0.1/payload.d.ts +3713 -0
- package/dist/vtc/boards/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/show/0.1/payload.js +2160 -0
- package/dist/vtc/boards/show/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/update/0.1/payload.d.ts +2423 -0
- package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/update/0.1/payload.js +1356 -0
- package/dist/vtc/boards/update/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +493 -0
- package/src/index.ts +43 -0
- package/src/process-attestation/0.1/payload.ts +53 -9
- package/src/trust-task-discovery/0.1/payload.ts +5 -5
- package/src/trust-task-discovery/0.2/payload.ts +5 -5
- package/src/trust-task-discovery/0.3/payload.ts +15 -3
- package/src/trust-task-discovery/0.4/payload.ts +387 -0
- package/src/vtc/boards/_shared/0.1/board.ts +23 -0
- package/src/vtc/boards/create/0.1/payload.ts +1517 -0
- package/src/vtc/boards/ideas/decide/0.1/payload.ts +1068 -0
- package/src/vtc/boards/ideas/propose/0.1/payload.ts +1063 -0
- package/src/vtc/boards/ideas/select/0.1/payload.ts +1070 -0
- package/src/vtc/boards/ideas/update/0.1/payload.ts +1061 -0
- package/src/vtc/boards/ideas/withdraw/0.1/payload.ts +1045 -0
- package/src/vtc/boards/list/0.1/payload.ts +1376 -0
- package/src/vtc/boards/notes/add/0.1/payload.ts +410 -0
- package/src/vtc/boards/notes/hide/0.1/payload.ts +414 -0
- package/src/vtc/boards/notes/list/0.1/payload.ts +457 -0
- package/src/vtc/boards/notes/withdraw/0.1/payload.ts +401 -0
- package/src/vtc/boards/show/0.1/payload.ts +2212 -0
- package/src/vtc/boards/update/0.1/payload.ts +1529 -0
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/boards/notes/hide/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/boards/notes/hide/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/hide/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/hide/0.1",
|
|
35
|
+
"title": "VTC Boards — Notes — Hide — payload",
|
|
36
|
+
"description": "A facilitator hides a note on their board, with a reason the board's audience sees in its place. The outer document members are owned by the framework — SPEC §6.3.",
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": [
|
|
40
|
+
"noteId",
|
|
41
|
+
"action"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"noteId": {
|
|
45
|
+
"$ref": "#/$defs/NoteId"
|
|
46
|
+
},
|
|
47
|
+
"action": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": [
|
|
50
|
+
"hide",
|
|
51
|
+
"unhide"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"reason": {
|
|
55
|
+
"$ref": "#/$defs/Reason"
|
|
56
|
+
},
|
|
57
|
+
"ext": {
|
|
58
|
+
"$ref": "#/$defs/Ext"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"$defs": {
|
|
62
|
+
"Response": {
|
|
63
|
+
"$anchor": "response",
|
|
64
|
+
"title": "VTC Boards — Notes — Hide — response payload",
|
|
65
|
+
"description": "The success response to a vtc/boards/notes/hide/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/notes/hide/0.1#response.",
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"note"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"note": {
|
|
73
|
+
"$ref": "#/$defs/Note"
|
|
74
|
+
},
|
|
75
|
+
"ext": {
|
|
76
|
+
"$ref": "#/$defs/Ext"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"Ext": {
|
|
81
|
+
"title": "Ext",
|
|
82
|
+
"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.",
|
|
83
|
+
"type": "object",
|
|
84
|
+
"minProperties": 1,
|
|
85
|
+
"additionalProperties": true,
|
|
86
|
+
"propertyNames": {
|
|
87
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"Note": {
|
|
91
|
+
"title": "Note",
|
|
92
|
+
"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).",
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"required": [
|
|
96
|
+
"noteId",
|
|
97
|
+
"boardId",
|
|
98
|
+
"author",
|
|
99
|
+
"createdAt",
|
|
100
|
+
"state"
|
|
101
|
+
],
|
|
102
|
+
"properties": {
|
|
103
|
+
"noteId": {
|
|
104
|
+
"$ref": "#/$defs/NoteId"
|
|
105
|
+
},
|
|
106
|
+
"boardId": {
|
|
107
|
+
"$ref": "#/$defs/BoardId"
|
|
108
|
+
},
|
|
109
|
+
"ideaId": {
|
|
110
|
+
"$ref": "#/$defs/IdeaId",
|
|
111
|
+
"description": "The idea the note is attached to; absent for a note on the board itself."
|
|
112
|
+
},
|
|
113
|
+
"author": {
|
|
114
|
+
"$ref": "#/$defs/Author"
|
|
115
|
+
},
|
|
116
|
+
"text": {
|
|
117
|
+
"$ref": "#/$defs/NoteText"
|
|
118
|
+
},
|
|
119
|
+
"createdAt": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"format": "date-time"
|
|
122
|
+
},
|
|
123
|
+
"state": {
|
|
124
|
+
"$ref": "#/$defs/NoteState"
|
|
125
|
+
},
|
|
126
|
+
"hiddenReason": {
|
|
127
|
+
"$ref": "#/$defs/Reason",
|
|
128
|
+
"description": "A `hidden` note's reason, shown to everyone who sees the note."
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"Reason": {
|
|
133
|
+
"title": "Reason",
|
|
134
|
+
"type": "string",
|
|
135
|
+
"minLength": 1,
|
|
136
|
+
"maxLength": 500,
|
|
137
|
+
"description": "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text."
|
|
138
|
+
},
|
|
139
|
+
"NoteState": {
|
|
140
|
+
"title": "NoteState",
|
|
141
|
+
"type": "string",
|
|
142
|
+
"enum": [
|
|
143
|
+
"visible",
|
|
144
|
+
"withdrawn",
|
|
145
|
+
"hidden"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"NoteText": {
|
|
149
|
+
"title": "NoteText",
|
|
150
|
+
"type": "string",
|
|
151
|
+
"minLength": 1,
|
|
152
|
+
"maxLength": 1000,
|
|
153
|
+
"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)."
|
|
154
|
+
},
|
|
155
|
+
"Author": {
|
|
156
|
+
"title": "Author",
|
|
157
|
+
"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).",
|
|
158
|
+
"type": "object",
|
|
159
|
+
"additionalProperties": false,
|
|
160
|
+
"properties": {
|
|
161
|
+
"entryId": {
|
|
162
|
+
"$ref": "#/$defs/EntryId"
|
|
163
|
+
},
|
|
164
|
+
"name": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"minLength": 1,
|
|
167
|
+
"maxLength": 200
|
|
168
|
+
},
|
|
169
|
+
"formerMember": {
|
|
170
|
+
"const": true
|
|
171
|
+
},
|
|
172
|
+
"you": {
|
|
173
|
+
"const": true,
|
|
174
|
+
"description": "Present when the caller is the author."
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"EntryId": {
|
|
179
|
+
"title": "EntryId",
|
|
180
|
+
"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.",
|
|
181
|
+
"type": "string",
|
|
182
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
183
|
+
},
|
|
184
|
+
"IdeaId": {
|
|
185
|
+
"title": "IdeaId",
|
|
186
|
+
"description": "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.",
|
|
187
|
+
"type": "string",
|
|
188
|
+
"pattern": "^ida_[A-Za-z0-9_-]{16,64}$"
|
|
189
|
+
},
|
|
190
|
+
"BoardId": {
|
|
191
|
+
"title": "BoardId",
|
|
192
|
+
"description": "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).",
|
|
193
|
+
"type": "string",
|
|
194
|
+
"pattern": "^brd_[A-Za-z0-9_-]{16,64}$"
|
|
195
|
+
},
|
|
196
|
+
"NoteId": {
|
|
197
|
+
"title": "NoteId",
|
|
198
|
+
"description": "Opaque identifier of a note: `bnt_` followed by 16 to 64 base64url characters. Random and unique within the community.",
|
|
199
|
+
"type": "string",
|
|
200
|
+
"pattern": "^bnt_[A-Za-z0-9_-]{16,64}$"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
205
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
206
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
207
|
+
"$ref": "#/$defs/Response",
|
|
208
|
+
"$defs": {
|
|
209
|
+
"Response": {
|
|
210
|
+
"$anchor": "response",
|
|
211
|
+
"title": "VTC Boards — Notes — Hide — response payload",
|
|
212
|
+
"description": "The success response to a vtc/boards/notes/hide/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/notes/hide/0.1#response.",
|
|
213
|
+
"type": "object",
|
|
214
|
+
"additionalProperties": false,
|
|
215
|
+
"required": [
|
|
216
|
+
"note"
|
|
217
|
+
],
|
|
218
|
+
"properties": {
|
|
219
|
+
"note": {
|
|
220
|
+
"$ref": "#/$defs/Note"
|
|
221
|
+
},
|
|
222
|
+
"ext": {
|
|
223
|
+
"$ref": "#/$defs/Ext"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"Ext": {
|
|
228
|
+
"title": "Ext",
|
|
229
|
+
"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.",
|
|
230
|
+
"type": "object",
|
|
231
|
+
"minProperties": 1,
|
|
232
|
+
"additionalProperties": true,
|
|
233
|
+
"propertyNames": {
|
|
234
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"Note": {
|
|
238
|
+
"title": "Note",
|
|
239
|
+
"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).",
|
|
240
|
+
"type": "object",
|
|
241
|
+
"additionalProperties": false,
|
|
242
|
+
"required": [
|
|
243
|
+
"noteId",
|
|
244
|
+
"boardId",
|
|
245
|
+
"author",
|
|
246
|
+
"createdAt",
|
|
247
|
+
"state"
|
|
248
|
+
],
|
|
249
|
+
"properties": {
|
|
250
|
+
"noteId": {
|
|
251
|
+
"$ref": "#/$defs/NoteId"
|
|
252
|
+
},
|
|
253
|
+
"boardId": {
|
|
254
|
+
"$ref": "#/$defs/BoardId"
|
|
255
|
+
},
|
|
256
|
+
"ideaId": {
|
|
257
|
+
"$ref": "#/$defs/IdeaId",
|
|
258
|
+
"description": "The idea the note is attached to; absent for a note on the board itself."
|
|
259
|
+
},
|
|
260
|
+
"author": {
|
|
261
|
+
"$ref": "#/$defs/Author"
|
|
262
|
+
},
|
|
263
|
+
"text": {
|
|
264
|
+
"$ref": "#/$defs/NoteText"
|
|
265
|
+
},
|
|
266
|
+
"createdAt": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"format": "date-time"
|
|
269
|
+
},
|
|
270
|
+
"state": {
|
|
271
|
+
"$ref": "#/$defs/NoteState"
|
|
272
|
+
},
|
|
273
|
+
"hiddenReason": {
|
|
274
|
+
"$ref": "#/$defs/Reason",
|
|
275
|
+
"description": "A `hidden` note's reason, shown to everyone who sees the note."
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"Reason": {
|
|
280
|
+
"title": "Reason",
|
|
281
|
+
"type": "string",
|
|
282
|
+
"minLength": 1,
|
|
283
|
+
"maxLength": 500,
|
|
284
|
+
"description": "A facilitator's stated reason, shown to the board's audience with the decision it explains. Plain text."
|
|
285
|
+
},
|
|
286
|
+
"NoteState": {
|
|
287
|
+
"title": "NoteState",
|
|
288
|
+
"type": "string",
|
|
289
|
+
"enum": [
|
|
290
|
+
"visible",
|
|
291
|
+
"withdrawn",
|
|
292
|
+
"hidden"
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
"NoteText": {
|
|
296
|
+
"title": "NoteText",
|
|
297
|
+
"type": "string",
|
|
298
|
+
"minLength": 1,
|
|
299
|
+
"maxLength": 1000,
|
|
300
|
+
"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)."
|
|
301
|
+
},
|
|
302
|
+
"Author": {
|
|
303
|
+
"title": "Author",
|
|
304
|
+
"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).",
|
|
305
|
+
"type": "object",
|
|
306
|
+
"additionalProperties": false,
|
|
307
|
+
"properties": {
|
|
308
|
+
"entryId": {
|
|
309
|
+
"$ref": "#/$defs/EntryId"
|
|
310
|
+
},
|
|
311
|
+
"name": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"minLength": 1,
|
|
314
|
+
"maxLength": 200
|
|
315
|
+
},
|
|
316
|
+
"formerMember": {
|
|
317
|
+
"const": true
|
|
318
|
+
},
|
|
319
|
+
"you": {
|
|
320
|
+
"const": true,
|
|
321
|
+
"description": "Present when the caller is the author."
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"EntryId": {
|
|
326
|
+
"title": "EntryId",
|
|
327
|
+
"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.",
|
|
328
|
+
"type": "string",
|
|
329
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
330
|
+
},
|
|
331
|
+
"IdeaId": {
|
|
332
|
+
"title": "IdeaId",
|
|
333
|
+
"description": "Opaque identifier of an idea: `ida_` followed by 16 to 64 base64url characters. Random and unique within the community.",
|
|
334
|
+
"type": "string",
|
|
335
|
+
"pattern": "^ida_[A-Za-z0-9_-]{16,64}$"
|
|
336
|
+
},
|
|
337
|
+
"BoardId": {
|
|
338
|
+
"title": "BoardId",
|
|
339
|
+
"description": "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).",
|
|
340
|
+
"type": "string",
|
|
341
|
+
"pattern": "^brd_[A-Za-z0-9_-]{16,64}$"
|
|
342
|
+
},
|
|
343
|
+
"NoteId": {
|
|
344
|
+
"title": "NoteId",
|
|
345
|
+
"description": "Opaque identifier of a note: `bnt_` followed by 16 to 64 base64url characters. Random and unique within the community.",
|
|
346
|
+
"type": "string",
|
|
347
|
+
"pattern": "^bnt_[A-Za-z0-9_-]{16,64}$"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
353
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
354
|
+
* per-specification and cannot be derived from the document alone, and
|
|
355
|
+
* item 2 needs the schema this carries.
|
|
356
|
+
*/
|
|
357
|
+
export const SPEC = {
|
|
358
|
+
typeUri: TYPE_URI,
|
|
359
|
+
isBearer: false,
|
|
360
|
+
isProofRequired: true,
|
|
361
|
+
isRecipientRequired: true,
|
|
362
|
+
isIssuedAtRequired: true,
|
|
363
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
367
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
368
|
+
* parties (§7.3 item 5).
|
|
369
|
+
*/
|
|
370
|
+
export const RESPONSE_SPEC = {
|
|
371
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
372
|
+
isBearer: false,
|
|
373
|
+
isProofRequired: true,
|
|
374
|
+
isRecipientRequired: true,
|
|
375
|
+
isIssuedAtRequired: true,
|
|
376
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
377
|
+
};
|
|
378
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/boards/notes/hide/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyBH,2BAA2B;AAC3B,MAAM,CAAC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