@openvtc/trust-tasks 0.28.15 → 0.28.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.
- package/CHANGELOG.md +31 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/pcs/voter/read/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/read/0.1/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/read/0.2/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.3/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/read/0.3/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.4/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/read/0.4/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.5/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/read/0.5/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.6/payload.d.ts +14 -2
- package/dist/vta/pcs/voter/read/0.6/payload.d.ts.map +1 -1
- package/dist/vta/pcs/voter/read/0.6/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.6/payload.js.map +1 -1
- package/dist/vta/pcs/voter/read/0.7/payload.d.ts +561 -0
- package/dist/vta/pcs/voter/read/0.7/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/read/0.7/payload.js +315 -0
- package/dist/vta/pcs/voter/read/0.7/payload.js.map +1 -0
- package/dist/vta/pcs/voter/receipts/list/0.1/payload.d.ts +359 -0
- package/dist/vta/pcs/voter/receipts/list/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/receipts/list/0.1/payload.js +203 -0
- package/dist/vta/pcs/voter/receipts/list/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/facilitators/add/0.1/payload.d.ts +351 -0
- package/dist/vtc/boards/facilitators/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/facilitators/add/0.1/payload.js +198 -0
- package/dist/vtc/boards/facilitators/add/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/facilitators/list/0.1/payload.d.ts +448 -0
- package/dist/vtc/boards/facilitators/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/facilitators/list/0.1/payload.js +245 -0
- package/dist/vtc/boards/facilitators/list/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/facilitators/remove/0.1/payload.d.ts +351 -0
- package/dist/vtc/boards/facilitators/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/facilitators/remove/0.1/payload.js +198 -0
- package/dist/vtc/boards/facilitators/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/preview/0.1/payload.d.ts +696 -0
- package/dist/vtc/networks/preview/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/preview/0.1/payload.js +376 -0
- package/dist/vtc/networks/preview/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +18 -0
- package/src/vta/pcs/voter/read/0.1/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.2/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.3/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.4/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.5/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.6/payload.ts +15 -3
- package/src/vta/pcs/voter/read/0.7/payload.ts +404 -0
- package/src/vta/pcs/voter/receipts/list/0.1/payload.ts +255 -0
- package/src/vtc/boards/facilitators/add/0.1/payload.ts +246 -0
- package/src/vtc/boards/facilitators/list/0.1/payload.ts +306 -0
- package/src/vtc/boards/facilitators/remove/0.1/payload.ts +246 -0
- package/src/vtc/networks/preview/0.1/payload.ts +483 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/boards/facilitators/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { BoardId, EntryId, Ext } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A facilitator of a board reads who is appointed to facilitate it (VTI-BRD-093). The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCBoardsFacilitatorsListPayload {
|
|
13
|
+
boardId: BoardId;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The success response to a vtc/boards/facilitators/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/facilitators/list/0.1#response. The board's appointed facilitators.
|
|
18
|
+
*/
|
|
19
|
+
export interface VTCBoardsFacilitatorsListResponsePayload {
|
|
20
|
+
boardId: BoardId;
|
|
21
|
+
/**
|
|
22
|
+
* The board's appointments, by entry, oldest first. Holders of `vtc.boards.manage` unqualified or through a role are not listed: they facilitate every board.
|
|
23
|
+
*
|
|
24
|
+
* @maxItems 256
|
|
25
|
+
*/
|
|
26
|
+
facilitators: Appointment[];
|
|
27
|
+
ext?: Ext;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* One member's appointment to facilitate the board: a resource grant of `vtc.boards.manage` qualified to it.
|
|
31
|
+
*/
|
|
32
|
+
export interface Appointment {
|
|
33
|
+
/**
|
|
34
|
+
* The appointed facilitator.
|
|
35
|
+
*/
|
|
36
|
+
entryId: EntryId;
|
|
37
|
+
/**
|
|
38
|
+
* When the grant was written, or last re-affirmed under a new granter.
|
|
39
|
+
*/
|
|
40
|
+
appointedAt: string;
|
|
41
|
+
/**
|
|
42
|
+
* The granter, by entry. Absent when the granter holds no directory entry — an administrator who is not a member, or one who has departed.
|
|
43
|
+
*/
|
|
44
|
+
appointedBy?: EntryId;
|
|
45
|
+
/**
|
|
46
|
+
* Present while the appointment is under review because its granter departed or no longer facilitates the board: it is withdrawn at this time unless an administrator who facilitates the board re-affirms it (VTI-BRD-092).
|
|
47
|
+
*/
|
|
48
|
+
reviewEndsAt?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
52
|
+
export type { BoardId, EntryId, Ext };
|
|
53
|
+
|
|
54
|
+
/** Trust Task type URI. */
|
|
55
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/boards/facilitators/list/0.1" as const;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The earlier version of this specification that this one declares it
|
|
59
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
60
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
61
|
+
* `extendsChain` / `readForSpec`.
|
|
62
|
+
*/
|
|
63
|
+
export const EXTENDS: string | null = null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
67
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
68
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
69
|
+
* Versions").
|
|
70
|
+
*/
|
|
71
|
+
export const DEPRECATION: string | null = null;
|
|
72
|
+
|
|
73
|
+
/** Stable alias for this specification's request payload shape. */
|
|
74
|
+
export type Payload = VTCBoardsFacilitatorsListPayload;
|
|
75
|
+
|
|
76
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
77
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/boards/facilitators/list/0.1#response" as const;
|
|
78
|
+
|
|
79
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
80
|
+
export type Response = VTCBoardsFacilitatorsListResponsePayload;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* This specification's payload schema, as a value.
|
|
84
|
+
*
|
|
85
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
86
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
87
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
88
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
89
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
90
|
+
*/
|
|
91
|
+
export const PAYLOAD_SCHEMA = {
|
|
92
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
93
|
+
"$id": "https://trusttasks.org/spec/vtc/boards/facilitators/list/0.1",
|
|
94
|
+
"title": "VTC Boards — Facilitators — List — payload",
|
|
95
|
+
"description": "A facilitator of a board reads who is appointed to facilitate it (VTI-BRD-093). The outer document members are owned by the framework — SPEC §6.3.",
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": [
|
|
99
|
+
"boardId"
|
|
100
|
+
],
|
|
101
|
+
"properties": {
|
|
102
|
+
"boardId": {
|
|
103
|
+
"$ref": "#/$defs/BoardId"
|
|
104
|
+
},
|
|
105
|
+
"ext": {
|
|
106
|
+
"$ref": "#/$defs/Ext"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"$defs": {
|
|
110
|
+
"Response": {
|
|
111
|
+
"$anchor": "response",
|
|
112
|
+
"title": "VTC Boards — Facilitators — List — response payload",
|
|
113
|
+
"description": "The success response to a vtc/boards/facilitators/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/facilitators/list/0.1#response. The board's appointed facilitators.",
|
|
114
|
+
"type": "object",
|
|
115
|
+
"additionalProperties": false,
|
|
116
|
+
"required": [
|
|
117
|
+
"boardId",
|
|
118
|
+
"facilitators"
|
|
119
|
+
],
|
|
120
|
+
"properties": {
|
|
121
|
+
"boardId": {
|
|
122
|
+
"$ref": "#/$defs/BoardId"
|
|
123
|
+
},
|
|
124
|
+
"facilitators": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"maxItems": 256,
|
|
127
|
+
"items": {
|
|
128
|
+
"$ref": "#/$defs/Appointment"
|
|
129
|
+
},
|
|
130
|
+
"description": "The board's appointments, by entry, oldest first. Holders of `vtc.boards.manage` unqualified or through a role are not listed: they facilitate every board."
|
|
131
|
+
},
|
|
132
|
+
"ext": {
|
|
133
|
+
"$ref": "#/$defs/Ext"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"Appointment": {
|
|
138
|
+
"title": "Appointment",
|
|
139
|
+
"description": "One member's appointment to facilitate the board: a resource grant of `vtc.boards.manage` qualified to it.",
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"required": [
|
|
143
|
+
"entryId",
|
|
144
|
+
"appointedAt"
|
|
145
|
+
],
|
|
146
|
+
"properties": {
|
|
147
|
+
"entryId": {
|
|
148
|
+
"$ref": "#/$defs/EntryId",
|
|
149
|
+
"description": "The appointed facilitator."
|
|
150
|
+
},
|
|
151
|
+
"appointedAt": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"format": "date-time",
|
|
154
|
+
"description": "When the grant was written, or last re-affirmed under a new granter."
|
|
155
|
+
},
|
|
156
|
+
"appointedBy": {
|
|
157
|
+
"$ref": "#/$defs/EntryId",
|
|
158
|
+
"description": "The granter, by entry. Absent when the granter holds no directory entry — an administrator who is not a member, or one who has departed."
|
|
159
|
+
},
|
|
160
|
+
"reviewEndsAt": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"format": "date-time",
|
|
163
|
+
"description": "Present while the appointment is under review because its granter departed or no longer facilitates the board: it is withdrawn at this time unless an administrator who facilitates the board re-affirms it (VTI-BRD-092)."
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"EntryId": {
|
|
168
|
+
"title": "EntryId",
|
|
169
|
+
"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.",
|
|
170
|
+
"type": "string",
|
|
171
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
172
|
+
},
|
|
173
|
+
"Ext": {
|
|
174
|
+
"title": "Ext",
|
|
175
|
+
"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.",
|
|
176
|
+
"type": "object",
|
|
177
|
+
"minProperties": 1,
|
|
178
|
+
"additionalProperties": true,
|
|
179
|
+
"propertyNames": {
|
|
180
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"BoardId": {
|
|
184
|
+
"title": "BoardId",
|
|
185
|
+
"description": "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).",
|
|
186
|
+
"type": "string",
|
|
187
|
+
"pattern": "^brd_[A-Za-z0-9_-]{16,64}$"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
} as const;
|
|
191
|
+
|
|
192
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
193
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
194
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
195
|
+
"$ref": "#/$defs/Response",
|
|
196
|
+
"$defs": {
|
|
197
|
+
"Response": {
|
|
198
|
+
"$anchor": "response",
|
|
199
|
+
"title": "VTC Boards — Facilitators — List — response payload",
|
|
200
|
+
"description": "The success response to a vtc/boards/facilitators/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/facilitators/list/0.1#response. The board's appointed facilitators.",
|
|
201
|
+
"type": "object",
|
|
202
|
+
"additionalProperties": false,
|
|
203
|
+
"required": [
|
|
204
|
+
"boardId",
|
|
205
|
+
"facilitators"
|
|
206
|
+
],
|
|
207
|
+
"properties": {
|
|
208
|
+
"boardId": {
|
|
209
|
+
"$ref": "#/$defs/BoardId"
|
|
210
|
+
},
|
|
211
|
+
"facilitators": {
|
|
212
|
+
"type": "array",
|
|
213
|
+
"maxItems": 256,
|
|
214
|
+
"items": {
|
|
215
|
+
"$ref": "#/$defs/Appointment"
|
|
216
|
+
},
|
|
217
|
+
"description": "The board's appointments, by entry, oldest first. Holders of `vtc.boards.manage` unqualified or through a role are not listed: they facilitate every board."
|
|
218
|
+
},
|
|
219
|
+
"ext": {
|
|
220
|
+
"$ref": "#/$defs/Ext"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"Appointment": {
|
|
225
|
+
"title": "Appointment",
|
|
226
|
+
"description": "One member's appointment to facilitate the board: a resource grant of `vtc.boards.manage` qualified to it.",
|
|
227
|
+
"type": "object",
|
|
228
|
+
"additionalProperties": false,
|
|
229
|
+
"required": [
|
|
230
|
+
"entryId",
|
|
231
|
+
"appointedAt"
|
|
232
|
+
],
|
|
233
|
+
"properties": {
|
|
234
|
+
"entryId": {
|
|
235
|
+
"$ref": "#/$defs/EntryId",
|
|
236
|
+
"description": "The appointed facilitator."
|
|
237
|
+
},
|
|
238
|
+
"appointedAt": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"format": "date-time",
|
|
241
|
+
"description": "When the grant was written, or last re-affirmed under a new granter."
|
|
242
|
+
},
|
|
243
|
+
"appointedBy": {
|
|
244
|
+
"$ref": "#/$defs/EntryId",
|
|
245
|
+
"description": "The granter, by entry. Absent when the granter holds no directory entry — an administrator who is not a member, or one who has departed."
|
|
246
|
+
},
|
|
247
|
+
"reviewEndsAt": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"format": "date-time",
|
|
250
|
+
"description": "Present while the appointment is under review because its granter departed or no longer facilitates the board: it is withdrawn at this time unless an administrator who facilitates the board re-affirms it (VTI-BRD-092)."
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"EntryId": {
|
|
255
|
+
"title": "EntryId",
|
|
256
|
+
"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.",
|
|
257
|
+
"type": "string",
|
|
258
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
259
|
+
},
|
|
260
|
+
"Ext": {
|
|
261
|
+
"title": "Ext",
|
|
262
|
+
"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.",
|
|
263
|
+
"type": "object",
|
|
264
|
+
"minProperties": 1,
|
|
265
|
+
"additionalProperties": true,
|
|
266
|
+
"propertyNames": {
|
|
267
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"BoardId": {
|
|
271
|
+
"title": "BoardId",
|
|
272
|
+
"description": "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).",
|
|
273
|
+
"type": "string",
|
|
274
|
+
"pattern": "^brd_[A-Za-z0-9_-]{16,64}$"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
} as const;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
281
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
282
|
+
* per-specification and cannot be derived from the document alone, and
|
|
283
|
+
* item 2 needs the schema this carries.
|
|
284
|
+
*/
|
|
285
|
+
export const SPEC = {
|
|
286
|
+
typeUri: TYPE_URI,
|
|
287
|
+
isBearer: false,
|
|
288
|
+
isProofRequired: false,
|
|
289
|
+
isRecipientRequired: true,
|
|
290
|
+
isIssuedAtRequired: false,
|
|
291
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
292
|
+
} as const;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
296
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
297
|
+
* parties (§7.3 item 5).
|
|
298
|
+
*/
|
|
299
|
+
export const RESPONSE_SPEC = {
|
|
300
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
301
|
+
isBearer: false,
|
|
302
|
+
isProofRequired: false,
|
|
303
|
+
isRecipientRequired: true,
|
|
304
|
+
isIssuedAtRequired: false,
|
|
305
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
306
|
+
} as const;
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/boards/facilitators/remove/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { BoardId, EntryId, Ext } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A facilitator steps down, or a holder of `vtc.boards.manage` unqualified ends another member's appointment as a board's facilitator (VTI-BRD-091). The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCBoardsFacilitatorsRemovePayload {
|
|
13
|
+
boardId: BoardId;
|
|
14
|
+
/**
|
|
15
|
+
* The facilitator whose appointment ends.
|
|
16
|
+
*/
|
|
17
|
+
entryId: EntryId;
|
|
18
|
+
/**
|
|
19
|
+
* Why, recorded with the change. Plain text.
|
|
20
|
+
*/
|
|
21
|
+
reason?: string;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The success response to a vtc/boards/facilitators/remove/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/facilitators/remove/0.1#response. The board's appointed facilitators after the removal.
|
|
26
|
+
*/
|
|
27
|
+
export interface VTCBoardsFacilitatorsRemoveResponsePayload {
|
|
28
|
+
boardId: BoardId;
|
|
29
|
+
/**
|
|
30
|
+
* The board's appointed facilitators after the removal, by entry: entries holding `vtc.boards.manage` qualified to this board, read from the access-control list. Holders of the capability unqualified or through a role are not listed (VTI-BRD-093).
|
|
31
|
+
*
|
|
32
|
+
* @maxItems 256
|
|
33
|
+
*/
|
|
34
|
+
facilitators: EntryId[];
|
|
35
|
+
ext?: Ext;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
39
|
+
export type { BoardId, EntryId, Ext };
|
|
40
|
+
|
|
41
|
+
/** Trust Task type URI. */
|
|
42
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/boards/facilitators/remove/0.1" as const;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The earlier version of this specification that this one declares it
|
|
46
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
47
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
48
|
+
* `extendsChain` / `readForSpec`.
|
|
49
|
+
*/
|
|
50
|
+
export const EXTENDS: string | null = null;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
54
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
55
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
56
|
+
* Versions").
|
|
57
|
+
*/
|
|
58
|
+
export const DEPRECATION: string | null = null;
|
|
59
|
+
|
|
60
|
+
/** Stable alias for this specification's request payload shape. */
|
|
61
|
+
export type Payload = VTCBoardsFacilitatorsRemovePayload;
|
|
62
|
+
|
|
63
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
64
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/boards/facilitators/remove/0.1#response" as const;
|
|
65
|
+
|
|
66
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
67
|
+
export type Response = VTCBoardsFacilitatorsRemoveResponsePayload;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* This specification's payload schema, as a value.
|
|
71
|
+
*
|
|
72
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
73
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
74
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
75
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
76
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
77
|
+
*/
|
|
78
|
+
export const PAYLOAD_SCHEMA = {
|
|
79
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
80
|
+
"$id": "https://trusttasks.org/spec/vtc/boards/facilitators/remove/0.1",
|
|
81
|
+
"title": "VTC Boards — Facilitators — Remove — payload",
|
|
82
|
+
"description": "A facilitator steps down, or a holder of `vtc.boards.manage` unqualified ends another member's appointment as a board's facilitator (VTI-BRD-091). The outer document members are owned by the framework — SPEC §6.3.",
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"required": [
|
|
86
|
+
"boardId",
|
|
87
|
+
"entryId"
|
|
88
|
+
],
|
|
89
|
+
"properties": {
|
|
90
|
+
"boardId": {
|
|
91
|
+
"$ref": "#/$defs/BoardId"
|
|
92
|
+
},
|
|
93
|
+
"entryId": {
|
|
94
|
+
"$ref": "#/$defs/EntryId",
|
|
95
|
+
"description": "The facilitator whose appointment ends."
|
|
96
|
+
},
|
|
97
|
+
"reason": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"minLength": 1,
|
|
100
|
+
"maxLength": 1024,
|
|
101
|
+
"description": "Why, recorded with the change. Plain text."
|
|
102
|
+
},
|
|
103
|
+
"ext": {
|
|
104
|
+
"$ref": "#/$defs/Ext"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"$defs": {
|
|
108
|
+
"Response": {
|
|
109
|
+
"$anchor": "response",
|
|
110
|
+
"title": "VTC Boards — Facilitators — Remove — response payload",
|
|
111
|
+
"description": "The success response to a vtc/boards/facilitators/remove/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/facilitators/remove/0.1#response. The board's appointed facilitators after the removal.",
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": [
|
|
115
|
+
"boardId",
|
|
116
|
+
"facilitators"
|
|
117
|
+
],
|
|
118
|
+
"properties": {
|
|
119
|
+
"boardId": {
|
|
120
|
+
"$ref": "#/$defs/BoardId"
|
|
121
|
+
},
|
|
122
|
+
"facilitators": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"maxItems": 256,
|
|
125
|
+
"uniqueItems": true,
|
|
126
|
+
"items": {
|
|
127
|
+
"$ref": "#/$defs/EntryId"
|
|
128
|
+
},
|
|
129
|
+
"description": "The board's appointed facilitators after the removal, by entry: entries holding `vtc.boards.manage` qualified to this board, read from the access-control list. Holders of the capability unqualified or through a role are not listed (VTI-BRD-093)."
|
|
130
|
+
},
|
|
131
|
+
"ext": {
|
|
132
|
+
"$ref": "#/$defs/Ext"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"Ext": {
|
|
137
|
+
"title": "Ext",
|
|
138
|
+
"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.",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"minProperties": 1,
|
|
141
|
+
"additionalProperties": true,
|
|
142
|
+
"propertyNames": {
|
|
143
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"EntryId": {
|
|
147
|
+
"title": "EntryId",
|
|
148
|
+
"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.",
|
|
149
|
+
"type": "string",
|
|
150
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
151
|
+
},
|
|
152
|
+
"BoardId": {
|
|
153
|
+
"title": "BoardId",
|
|
154
|
+
"description": "Opaque identifier of a board: `brd_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BRD-001).",
|
|
155
|
+
"type": "string",
|
|
156
|
+
"pattern": "^brd_[A-Za-z0-9_-]{16,64}$"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
} as const;
|
|
160
|
+
|
|
161
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
162
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
163
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
164
|
+
"$ref": "#/$defs/Response",
|
|
165
|
+
"$defs": {
|
|
166
|
+
"Response": {
|
|
167
|
+
"$anchor": "response",
|
|
168
|
+
"title": "VTC Boards — Facilitators — Remove — response payload",
|
|
169
|
+
"description": "The success response to a vtc/boards/facilitators/remove/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/boards/facilitators/remove/0.1#response. The board's appointed facilitators after the removal.",
|
|
170
|
+
"type": "object",
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"required": [
|
|
173
|
+
"boardId",
|
|
174
|
+
"facilitators"
|
|
175
|
+
],
|
|
176
|
+
"properties": {
|
|
177
|
+
"boardId": {
|
|
178
|
+
"$ref": "#/$defs/BoardId"
|
|
179
|
+
},
|
|
180
|
+
"facilitators": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"maxItems": 256,
|
|
183
|
+
"uniqueItems": true,
|
|
184
|
+
"items": {
|
|
185
|
+
"$ref": "#/$defs/EntryId"
|
|
186
|
+
},
|
|
187
|
+
"description": "The board's appointed facilitators after the removal, by entry: entries holding `vtc.boards.manage` qualified to this board, read from the access-control list. Holders of the capability unqualified or through a role are not listed (VTI-BRD-093)."
|
|
188
|
+
},
|
|
189
|
+
"ext": {
|
|
190
|
+
"$ref": "#/$defs/Ext"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"Ext": {
|
|
195
|
+
"title": "Ext",
|
|
196
|
+
"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.",
|
|
197
|
+
"type": "object",
|
|
198
|
+
"minProperties": 1,
|
|
199
|
+
"additionalProperties": true,
|
|
200
|
+
"propertyNames": {
|
|
201
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"EntryId": {
|
|
205
|
+
"title": "EntryId",
|
|
206
|
+
"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.",
|
|
207
|
+
"type": "string",
|
|
208
|
+
"pattern": "^dir_[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
|
+
}
|
|
217
|
+
} as const;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
221
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
222
|
+
* per-specification and cannot be derived from the document alone, and
|
|
223
|
+
* item 2 needs the schema this carries.
|
|
224
|
+
*/
|
|
225
|
+
export const SPEC = {
|
|
226
|
+
typeUri: TYPE_URI,
|
|
227
|
+
isBearer: false,
|
|
228
|
+
isProofRequired: true,
|
|
229
|
+
isRecipientRequired: true,
|
|
230
|
+
isIssuedAtRequired: true,
|
|
231
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
232
|
+
} as const;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
236
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
237
|
+
* parties (§7.3 item 5).
|
|
238
|
+
*/
|
|
239
|
+
export const RESPONSE_SPEC = {
|
|
240
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
241
|
+
isBearer: false,
|
|
242
|
+
isProofRequired: true,
|
|
243
|
+
isRecipientRequired: true,
|
|
244
|
+
isIssuedAtRequired: true,
|
|
245
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
246
|
+
} as const;
|