@openvtc/trust-tasks 0.28.11 → 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.
- package/CHANGELOG.md +57 -0
- package/dist/_shared/components.d.ts +496 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +54 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/collection/_shared/0.1/collection.d.ts +16 -0
- package/dist/vta/collection/_shared/0.1/collection.d.ts.map +1 -0
- package/dist/vta/collection/_shared/0.1/collection.js +6 -0
- package/dist/vta/collection/_shared/0.1/collection.js.map +1 -0
- package/dist/vta/collection/claim/0.1/payload.d.ts +352 -0
- package/dist/vta/collection/claim/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/claim/0.1/payload.js +198 -0
- package/dist/vta/collection/claim/0.1/payload.js.map +1 -0
- package/dist/vta/collection/list/0.1/payload.d.ts +740 -0
- package/dist/vta/collection/list/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/list/0.1/payload.js +447 -0
- package/dist/vta/collection/list/0.1/payload.js.map +1 -0
- package/dist/vta/collection/release/0.1/payload.d.ts +316 -0
- package/dist/vta/collection/release/0.1/payload.d.ts.map +1 -0
- package/dist/vta/collection/release/0.1/payload.js +182 -0
- package/dist/vta/collection/release/0.1/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 +531 -0
- package/src/index.ts +54 -0
- package/src/vta/collection/_shared/0.1/collection.ts +17 -0
- package/src/vta/collection/claim/0.1/payload.ts +247 -0
- package/src/vta/collection/list/0.1/payload.ts +500 -0
- package/src/vta/collection/release/0.1/payload.ts +223 -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,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/collection/release/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A client with standing in a trust context releases the collection claim for an identifier there. Released by its claimant, which has already stopped collecting, the claim ends at once and the VTA collects for the identifier again. Released by any other party, the claim becomes unrenewable and still ends at its end, because its claimant is still connected until then (VTI-NTF-083, VTI-NTF-084). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTACollectionReleasePayload {
|
|
13
|
+
contextId: ContextId;
|
|
14
|
+
/**
|
|
15
|
+
* The identifier whose claim to release.
|
|
16
|
+
*/
|
|
17
|
+
identifier: Did;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.
|
|
22
|
+
*/
|
|
23
|
+
export interface VTACollectionReleaseResponsePayload {
|
|
24
|
+
identifier: Did;
|
|
25
|
+
/**
|
|
26
|
+
* When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's.
|
|
27
|
+
*/
|
|
28
|
+
endsAt?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
32
|
+
export type { ContextId, Did, Ext };
|
|
33
|
+
|
|
34
|
+
/** Trust Task type URI. */
|
|
35
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/collection/release/0.1" as const;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The earlier version of this specification that this one declares it
|
|
39
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
40
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
41
|
+
* `extendsChain` / `readForSpec`.
|
|
42
|
+
*/
|
|
43
|
+
export const EXTENDS: string | null = null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
47
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
48
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
49
|
+
* Versions").
|
|
50
|
+
*/
|
|
51
|
+
export const DEPRECATION: string | null = null;
|
|
52
|
+
|
|
53
|
+
/** Stable alias for this specification's request payload shape. */
|
|
54
|
+
export type Payload = VTACollectionReleasePayload;
|
|
55
|
+
|
|
56
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
57
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/collection/release/0.1#response" as const;
|
|
58
|
+
|
|
59
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
60
|
+
export type Response = VTACollectionReleaseResponsePayload;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* This specification's payload schema, as a value.
|
|
64
|
+
*
|
|
65
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
66
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
67
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
68
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
69
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
70
|
+
*/
|
|
71
|
+
export const PAYLOAD_SCHEMA = {
|
|
72
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
73
|
+
"$id": "https://trusttasks.org/spec/vta/collection/release/0.1",
|
|
74
|
+
"title": "VTA Collection — Release — payload",
|
|
75
|
+
"description": "A client with standing in a trust context releases the collection claim for an identifier there. Released by its claimant, which has already stopped collecting, the claim ends at once and the VTA collects for the identifier again. Released by any other party, the claim becomes unrenewable and still ends at its end, because its claimant is still connected until then (VTI-NTF-083, VTI-NTF-084). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": [
|
|
79
|
+
"contextId",
|
|
80
|
+
"identifier"
|
|
81
|
+
],
|
|
82
|
+
"properties": {
|
|
83
|
+
"contextId": {
|
|
84
|
+
"$ref": "#/$defs/ContextId"
|
|
85
|
+
},
|
|
86
|
+
"identifier": {
|
|
87
|
+
"$ref": "#/$defs/Did",
|
|
88
|
+
"description": "The identifier whose claim to release."
|
|
89
|
+
},
|
|
90
|
+
"ext": {
|
|
91
|
+
"$ref": "#/$defs/Ext"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"$defs": {
|
|
95
|
+
"Response": {
|
|
96
|
+
"$anchor": "response",
|
|
97
|
+
"title": "VTA Collection — Release — response payload",
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": [
|
|
101
|
+
"identifier"
|
|
102
|
+
],
|
|
103
|
+
"description": "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.",
|
|
104
|
+
"properties": {
|
|
105
|
+
"identifier": {
|
|
106
|
+
"$ref": "#/$defs/Did"
|
|
107
|
+
},
|
|
108
|
+
"endsAt": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"format": "date-time",
|
|
111
|
+
"description": "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's."
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"Did": {
|
|
116
|
+
"title": "Did",
|
|
117
|
+
"description": "A DID.",
|
|
118
|
+
"type": "string",
|
|
119
|
+
"minLength": 8,
|
|
120
|
+
"maxLength": 2048,
|
|
121
|
+
"pattern": "^did:[a-z0-9]+:\\S+$"
|
|
122
|
+
},
|
|
123
|
+
"Ext": {
|
|
124
|
+
"title": "Ext",
|
|
125
|
+
"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.",
|
|
126
|
+
"type": "object",
|
|
127
|
+
"minProperties": 1,
|
|
128
|
+
"additionalProperties": true,
|
|
129
|
+
"propertyNames": {
|
|
130
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"ContextId": {
|
|
134
|
+
"title": "ContextId",
|
|
135
|
+
"description": "The trust context the identifier belongs to.",
|
|
136
|
+
"type": "string",
|
|
137
|
+
"minLength": 1,
|
|
138
|
+
"maxLength": 256
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
} as const;
|
|
142
|
+
|
|
143
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
144
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
145
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
146
|
+
"$ref": "#/$defs/Response",
|
|
147
|
+
"$defs": {
|
|
148
|
+
"Response": {
|
|
149
|
+
"$anchor": "response",
|
|
150
|
+
"title": "VTA Collection — Release — response payload",
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"required": [
|
|
154
|
+
"identifier"
|
|
155
|
+
],
|
|
156
|
+
"description": "The outcome. `endsAt` is present when a claim was in force: the instant the claim ends — the release itself, for the claimant's own release, and the claim's stated end otherwise. Absent, no claim was in force, and nothing changed.",
|
|
157
|
+
"properties": {
|
|
158
|
+
"identifier": {
|
|
159
|
+
"$ref": "#/$defs/Did"
|
|
160
|
+
},
|
|
161
|
+
"endsAt": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"format": "date-time",
|
|
164
|
+
"description": "When the released claim ends. The VTA resumes collecting for the identifier then, plus its clock-skew tolerance where the release was not the claimant's."
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"Did": {
|
|
169
|
+
"title": "Did",
|
|
170
|
+
"description": "A DID.",
|
|
171
|
+
"type": "string",
|
|
172
|
+
"minLength": 8,
|
|
173
|
+
"maxLength": 2048,
|
|
174
|
+
"pattern": "^did:[a-z0-9]+:\\S+$"
|
|
175
|
+
},
|
|
176
|
+
"Ext": {
|
|
177
|
+
"title": "Ext",
|
|
178
|
+
"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.",
|
|
179
|
+
"type": "object",
|
|
180
|
+
"minProperties": 1,
|
|
181
|
+
"additionalProperties": true,
|
|
182
|
+
"propertyNames": {
|
|
183
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"ContextId": {
|
|
187
|
+
"title": "ContextId",
|
|
188
|
+
"description": "The trust context the identifier belongs to.",
|
|
189
|
+
"type": "string",
|
|
190
|
+
"minLength": 1,
|
|
191
|
+
"maxLength": 256
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
} as const;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
198
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
199
|
+
* per-specification and cannot be derived from the document alone, and
|
|
200
|
+
* item 2 needs the schema this carries.
|
|
201
|
+
*/
|
|
202
|
+
export const SPEC = {
|
|
203
|
+
typeUri: TYPE_URI,
|
|
204
|
+
isBearer: false,
|
|
205
|
+
isProofRequired: false,
|
|
206
|
+
isRecipientRequired: true,
|
|
207
|
+
isIssuedAtRequired: true,
|
|
208
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
209
|
+
} as const;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
213
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
214
|
+
* parties (§7.3 item 5).
|
|
215
|
+
*/
|
|
216
|
+
export const RESPONSE_SPEC = {
|
|
217
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
218
|
+
isBearer: false,
|
|
219
|
+
isProofRequired: false,
|
|
220
|
+
isRecipientRequired: true,
|
|
221
|
+
isIssuedAtRequired: true,
|
|
222
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
223
|
+
} as const;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/boards/_shared/0.1/board.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A Verifiable Trust Community's boards (VTI Community Boards chapter, VTI-BRD-*): shared spaces where members propose ideas and leave notes, each accepted idea is put to an election of its own, and the board's facilitators select among them. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*
|
|
9
|
+
* WHAT A MEMBER WRITES IS ATTRIBUTED. Ideas and notes are shown under their author's name to the board's audience (VTI-BRD-070).
|
|
10
|
+
*
|
|
11
|
+
* VOTING IS NOT THE BOARD'S. Each accepted idea's election is an ordinary election of the community (vtc/elections/*); a board carries its identifier, stage, ballot count where the ballot box's board is public, and its result once tallied — never whether anyone took a ticket or cast a ballot (VTI-BRD-033).
|
|
12
|
+
*
|
|
13
|
+
* WHO FACILITATES. A facilitator of a board holds `vtc.boards.manage` unqualified, or qualified `board:<boardId>`.
|
|
14
|
+
*/
|
|
15
|
+
export interface BoardSharedDefinitionsForTheVtcBoardsSpecFamily {
|
|
16
|
+
[k: string]: unknown | undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
21
|
+
* See "../../../../_shared/components.js".
|
|
22
|
+
*/
|
|
23
|
+
export type { Author, Board, BoardAudience, BoardDescription, BoardId, BoardStatus, BoardTitle, ElectionTemplate, Idea, IdeaDecision, IdeaDescription, IdeaElection, IdeaFormat, IdeaId, IdeaOpening, IdeaState, IdeaTitle, Note, NoteId_VtcBoardsV0_1 as NoteId, NoteState, NoteText_VtcBoardsV0_1 as NoteText, Reason_VtcBoardsV0_1 as Reason, Slot_VtcBoardsV0_1 as Slot, Topic_VtcBoardsV0_1 as Topic, Window } from "../../../../_shared/components.js";
|