@openvtc/trust-tasks 0.26.25 → 0.26.27
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 +92 -0
- package/dist/_shared/components.d.ts +207 -4
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +4 -2
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +4 -2
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +4 -2
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +4 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/voting/_shared/0.1/voting.d.ts +1 -1
- package/dist/voting/_shared/0.1/voting.d.ts.map +1 -1
- package/dist/voting/ballot/cast-encrypted/0.1/payload.d.ts +1166 -0
- package/dist/voting/ballot/cast-encrypted/0.1/payload.d.ts.map +1 -0
- package/dist/voting/ballot/cast-encrypted/0.1/payload.js +690 -0
- package/dist/voting/ballot/cast-encrypted/0.1/payload.js.map +1 -0
- package/dist/voting/board/read/0.1/payload.d.ts +2555 -719
- package/dist/voting/board/read/0.1/payload.d.ts.map +1 -1
- package/dist/voting/board/read/0.1/payload.js +1517 -391
- package/dist/voting/board/read/0.1/payload.js.map +1 -1
- package/dist/voting/election/register/0.1/payload.d.ts +4 -4
- package/dist/voting/election/register/0.1/payload.js +2 -2
- package/dist/voting/election/register/0.1/payload.js.map +1 -1
- package/dist/voting/election/show/0.1/payload.d.ts +4 -4
- package/dist/voting/election/show/0.1/payload.js +2 -2
- package/dist/voting/election/show/0.1/payload.js.map +1 -1
- package/dist/voting/trustees/confirm/0.1/payload.d.ts +620 -0
- package/dist/voting/trustees/confirm/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/confirm/0.1/payload.js +388 -0
- package/dist/voting/trustees/confirm/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/deal/0.1/payload.d.ts +1032 -0
- package/dist/voting/trustees/deal/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/deal/0.1/payload.js +630 -0
- package/dist/voting/trustees/deal/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/decrypt/0.1/payload.d.ts +1009 -0
- package/dist/voting/trustees/decrypt/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/decrypt/0.1/payload.js +623 -0
- package/dist/voting/trustees/decrypt/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/enrol/0.1/payload.d.ts +792 -0
- package/dist/voting/trustees/enrol/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/enrol/0.1/payload.js +490 -0
- package/dist/voting/trustees/enrol/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/justify/0.1/payload.d.ts +642 -0
- package/dist/voting/trustees/justify/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/justify/0.1/payload.js +402 -0
- package/dist/voting/trustees/justify/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/status/0.1/payload.d.ts +1411 -0
- package/dist/voting/trustees/status/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/status/0.1/payload.js +822 -0
- package/dist/voting/trustees/status/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/deal/0.1/payload.d.ts +2005 -0
- package/dist/vta/pcs/trustee/deal/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/deal/0.1/payload.js +1176 -0
- package/dist/vta/pcs/trustee/deal/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/decrypt/0.1/payload.d.ts +736 -0
- package/dist/vta/pcs/trustee/decrypt/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/decrypt/0.1/payload.js +412 -0
- package/dist/vta/pcs/trustee/decrypt/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts +1756 -0
- package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/enrol/0.1/payload.js +1040 -0
- package/dist/vta/pcs/trustee/enrol/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.1/payload.d.ts +504 -0
- package/dist/vta/pcs/trustee/justify/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.1/payload.js +274 -0
- package/dist/vta/pcs/trustee/justify/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.1/payload.d.ts +2501 -0
- package/dist/vta/pcs/trustee/keys/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.1/payload.js +1455 -0
- package/dist/vta/pcs/trustee/keys/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/vote/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/vote/0.1/payload.js +2 -2
- package/dist/vta/pcs/vote/0.1/payload.js.map +1 -1
- package/dist/vta/pcs/vote-encrypted/0.1/payload.d.ts +2375 -0
- package/dist/vta/pcs/vote-encrypted/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote-encrypted/0.1/payload.js +1389 -0
- package/dist/vta/pcs/vote-encrypted/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/voter/register/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/register/0.1/payload.js +2 -2
- package/dist/vta/pcs/voter/register/0.1/payload.js.map +1 -1
- package/dist/vtc/config/did-hosting/list/0.1/payload.d.ts +339 -0
- package/dist/vtc/config/did-hosting/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/config/did-hosting/list/0.1/payload.js +185 -0
- package/dist/vtc/config/did-hosting/list/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/create/0.1/payload.d.ts +4 -4
- package/dist/vtc/elections/create/0.1/payload.js +2 -2
- package/dist/vtc/elections/create/0.1/payload.js.map +1 -1
- package/dist/vtc/elections/show/0.1/payload.d.ts +242 -6
- package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/elections/show/0.1/payload.js +132 -2
- package/dist/vtc/elections/show/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +222 -4
- package/src/device/list/0.1/payload.ts +4 -2
- package/src/device/list/0.2/payload.ts +4 -2
- package/src/device/register/0.1/payload.ts +4 -2
- package/src/device/register/0.2/payload.ts +4 -2
- package/src/index.ts +14 -0
- package/src/voting/_shared/0.1/voting.ts +1 -1
- package/src/voting/ballot/cast-encrypted/0.1/payload.ts +735 -0
- package/src/voting/board/read/0.1/payload.ts +1519 -393
- package/src/voting/election/register/0.1/payload.ts +2 -2
- package/src/voting/election/show/0.1/payload.ts +2 -2
- package/src/voting/trustees/confirm/0.1/payload.ts +429 -0
- package/src/voting/trustees/deal/0.1/payload.ts +665 -0
- package/src/voting/trustees/decrypt/0.1/payload.ts +663 -0
- package/src/voting/trustees/enrol/0.1/payload.ts +525 -0
- package/src/voting/trustees/justify/0.1/payload.ts +439 -0
- package/src/voting/trustees/status/0.1/payload.ts +890 -0
- package/src/vta/pcs/trustee/deal/0.1/payload.ts +1250 -0
- package/src/vta/pcs/trustee/decrypt/0.1/payload.ts +489 -0
- package/src/vta/pcs/trustee/enrol/0.1/payload.ts +1107 -0
- package/src/vta/pcs/trustee/justify/0.1/payload.ts +341 -0
- package/src/vta/pcs/trustee/keys/0.1/payload.ts +1545 -0
- package/src/vta/pcs/vote/0.1/payload.ts +2 -2
- package/src/vta/pcs/vote-encrypted/0.1/payload.ts +1455 -0
- package/src/vta/pcs/voter/register/0.1/payload.ts +2 -2
- package/src/vtc/config/did-hosting/list/0.1/payload.ts +233 -0
- package/src/vtc/elections/create/0.1/payload.ts +2 -2
- package/src/vtc/elections/show/0.1/payload.ts +138 -4
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/pcs/trustee/justify/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ElectionId, Ext, TrusteeIndex } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The dealer's VTA reveals the share it dealt to a trustee that complained, and returns the voting/trustees/justify request signed as the dealer.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTAPCSTrusteeJustifyPayload {
|
|
13
|
+
/**
|
|
14
|
+
* The VTA context the trustee's keys live in.
|
|
15
|
+
*/
|
|
16
|
+
contextId: string;
|
|
17
|
+
/**
|
|
18
|
+
* The community's DID.
|
|
19
|
+
*/
|
|
20
|
+
community: string;
|
|
21
|
+
electionId: ElectionId;
|
|
22
|
+
/**
|
|
23
|
+
* The trustee's DID: a persona this VTA holds, named in the manifest's `trustees.dids`.
|
|
24
|
+
*/
|
|
25
|
+
trustee: string;
|
|
26
|
+
recipient: TrusteeIndex;
|
|
27
|
+
ext?: Ext;
|
|
28
|
+
}
|
|
29
|
+
export interface VTAPCSTrusteeJustifyResponsePayload {
|
|
30
|
+
document: JustifyDocument;
|
|
31
|
+
ext?: Ext;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The voting/trustees/justify request, signed as the trustee.
|
|
35
|
+
*/
|
|
36
|
+
export interface JustifyDocument {
|
|
37
|
+
id: string;
|
|
38
|
+
type: "https://trusttasks.org/spec/voting/trustees/justify/0.1";
|
|
39
|
+
/**
|
|
40
|
+
* The signer.
|
|
41
|
+
*/
|
|
42
|
+
issuer: string;
|
|
43
|
+
/**
|
|
44
|
+
* The ballot box.
|
|
45
|
+
*/
|
|
46
|
+
recipient: string;
|
|
47
|
+
issuedAt: string;
|
|
48
|
+
expiresAt?: string;
|
|
49
|
+
/**
|
|
50
|
+
* That task's request payload.
|
|
51
|
+
*/
|
|
52
|
+
payload: {};
|
|
53
|
+
/**
|
|
54
|
+
* A Data Integrity proof by an `authentication` key of `issuer`.
|
|
55
|
+
*/
|
|
56
|
+
proof: {};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
60
|
+
export type { ElectionId, Ext, TrusteeIndex };
|
|
61
|
+
|
|
62
|
+
/** Trust Task type URI. */
|
|
63
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/pcs/trustee/justify/0.1" as const;
|
|
64
|
+
|
|
65
|
+
/** Stable alias for this specification's request payload shape. */
|
|
66
|
+
export type Payload = VTAPCSTrusteeJustifyPayload;
|
|
67
|
+
|
|
68
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
69
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/pcs/trustee/justify/0.1#response" as const;
|
|
70
|
+
|
|
71
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
72
|
+
export type Response = VTAPCSTrusteeJustifyResponsePayload;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* This specification's payload schema, as a value.
|
|
76
|
+
*
|
|
77
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
78
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
79
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
80
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
81
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
82
|
+
*/
|
|
83
|
+
export const PAYLOAD_SCHEMA = {
|
|
84
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
85
|
+
"$id": "https://trusttasks.org/spec/vta/pcs/trustee/justify/0.1",
|
|
86
|
+
"title": "VTA PCS — Trustee Justify — payload",
|
|
87
|
+
"description": "The dealer's VTA reveals the share it dealt to a trustee that complained, and returns the voting/trustees/justify request signed as the dealer.",
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"required": [
|
|
91
|
+
"contextId",
|
|
92
|
+
"community",
|
|
93
|
+
"electionId",
|
|
94
|
+
"trustee",
|
|
95
|
+
"recipient"
|
|
96
|
+
],
|
|
97
|
+
"properties": {
|
|
98
|
+
"contextId": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1,
|
|
101
|
+
"maxLength": 256,
|
|
102
|
+
"description": "The VTA context the trustee's keys live in."
|
|
103
|
+
},
|
|
104
|
+
"community": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"minLength": 1,
|
|
107
|
+
"maxLength": 2048,
|
|
108
|
+
"description": "The community's DID."
|
|
109
|
+
},
|
|
110
|
+
"electionId": {
|
|
111
|
+
"$ref": "#/$defs/ElectionId"
|
|
112
|
+
},
|
|
113
|
+
"trustee": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1,
|
|
116
|
+
"maxLength": 2048,
|
|
117
|
+
"description": "The trustee's DID: a persona this VTA holds, named in the manifest's `trustees.dids`."
|
|
118
|
+
},
|
|
119
|
+
"recipient": {
|
|
120
|
+
"$ref": "#/$defs/TrusteeIndex"
|
|
121
|
+
},
|
|
122
|
+
"ext": {
|
|
123
|
+
"$ref": "#/$defs/Ext"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"$defs": {
|
|
127
|
+
"Response": {
|
|
128
|
+
"$anchor": "response",
|
|
129
|
+
"title": "VTA PCS — Trustee Justify — response payload",
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": [
|
|
133
|
+
"document"
|
|
134
|
+
],
|
|
135
|
+
"properties": {
|
|
136
|
+
"document": {
|
|
137
|
+
"title": "JustifyDocument",
|
|
138
|
+
"description": "The voting/trustees/justify request, signed as the trustee.",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"required": [
|
|
141
|
+
"id",
|
|
142
|
+
"type",
|
|
143
|
+
"issuer",
|
|
144
|
+
"recipient",
|
|
145
|
+
"issuedAt",
|
|
146
|
+
"payload",
|
|
147
|
+
"proof"
|
|
148
|
+
],
|
|
149
|
+
"properties": {
|
|
150
|
+
"id": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"pattern": "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
153
|
+
},
|
|
154
|
+
"type": {
|
|
155
|
+
"const": "https://trusttasks.org/spec/voting/trustees/justify/0.1"
|
|
156
|
+
},
|
|
157
|
+
"issuer": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"minLength": 1,
|
|
160
|
+
"maxLength": 2048,
|
|
161
|
+
"description": "The signer."
|
|
162
|
+
},
|
|
163
|
+
"recipient": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"minLength": 1,
|
|
166
|
+
"maxLength": 2048,
|
|
167
|
+
"description": "The ballot box."
|
|
168
|
+
},
|
|
169
|
+
"issuedAt": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"format": "date-time"
|
|
172
|
+
},
|
|
173
|
+
"expiresAt": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"format": "date-time"
|
|
176
|
+
},
|
|
177
|
+
"payload": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"description": "That task's request payload."
|
|
180
|
+
},
|
|
181
|
+
"proof": {
|
|
182
|
+
"type": "object",
|
|
183
|
+
"description": "A Data Integrity proof by an `authentication` key of `issuer`."
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"ext": {
|
|
188
|
+
"$ref": "#/$defs/Ext"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"Ext": {
|
|
193
|
+
"title": "Ext",
|
|
194
|
+
"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.",
|
|
195
|
+
"type": "object",
|
|
196
|
+
"minProperties": 1,
|
|
197
|
+
"additionalProperties": true,
|
|
198
|
+
"propertyNames": {
|
|
199
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"TrusteeIndex": {
|
|
203
|
+
"title": "TrusteeIndex",
|
|
204
|
+
"description": "A trustee's index: its position in the manifest's `trustees.dids`, counting from 1.",
|
|
205
|
+
"type": "integer",
|
|
206
|
+
"minimum": 1,
|
|
207
|
+
"maximum": 64
|
|
208
|
+
},
|
|
209
|
+
"ElectionId": {
|
|
210
|
+
"title": "ElectionId",
|
|
211
|
+
"description": "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.",
|
|
212
|
+
"type": "string",
|
|
213
|
+
"pattern": "^[A-Za-z0-9._-]{1,128}$"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
} as const;
|
|
217
|
+
|
|
218
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
219
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
220
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
221
|
+
"$ref": "#/$defs/Response",
|
|
222
|
+
"$defs": {
|
|
223
|
+
"Response": {
|
|
224
|
+
"$anchor": "response",
|
|
225
|
+
"title": "VTA PCS — Trustee Justify — response payload",
|
|
226
|
+
"type": "object",
|
|
227
|
+
"additionalProperties": false,
|
|
228
|
+
"required": [
|
|
229
|
+
"document"
|
|
230
|
+
],
|
|
231
|
+
"properties": {
|
|
232
|
+
"document": {
|
|
233
|
+
"title": "JustifyDocument",
|
|
234
|
+
"description": "The voting/trustees/justify request, signed as the trustee.",
|
|
235
|
+
"type": "object",
|
|
236
|
+
"required": [
|
|
237
|
+
"id",
|
|
238
|
+
"type",
|
|
239
|
+
"issuer",
|
|
240
|
+
"recipient",
|
|
241
|
+
"issuedAt",
|
|
242
|
+
"payload",
|
|
243
|
+
"proof"
|
|
244
|
+
],
|
|
245
|
+
"properties": {
|
|
246
|
+
"id": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"pattern": "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
249
|
+
},
|
|
250
|
+
"type": {
|
|
251
|
+
"const": "https://trusttasks.org/spec/voting/trustees/justify/0.1"
|
|
252
|
+
},
|
|
253
|
+
"issuer": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"minLength": 1,
|
|
256
|
+
"maxLength": 2048,
|
|
257
|
+
"description": "The signer."
|
|
258
|
+
},
|
|
259
|
+
"recipient": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"minLength": 1,
|
|
262
|
+
"maxLength": 2048,
|
|
263
|
+
"description": "The ballot box."
|
|
264
|
+
},
|
|
265
|
+
"issuedAt": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"format": "date-time"
|
|
268
|
+
},
|
|
269
|
+
"expiresAt": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"format": "date-time"
|
|
272
|
+
},
|
|
273
|
+
"payload": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"description": "That task's request payload."
|
|
276
|
+
},
|
|
277
|
+
"proof": {
|
|
278
|
+
"type": "object",
|
|
279
|
+
"description": "A Data Integrity proof by an `authentication` key of `issuer`."
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"ext": {
|
|
284
|
+
"$ref": "#/$defs/Ext"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"Ext": {
|
|
289
|
+
"title": "Ext",
|
|
290
|
+
"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.",
|
|
291
|
+
"type": "object",
|
|
292
|
+
"minProperties": 1,
|
|
293
|
+
"additionalProperties": true,
|
|
294
|
+
"propertyNames": {
|
|
295
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"TrusteeIndex": {
|
|
299
|
+
"title": "TrusteeIndex",
|
|
300
|
+
"description": "A trustee's index: its position in the manifest's `trustees.dids`, counting from 1.",
|
|
301
|
+
"type": "integer",
|
|
302
|
+
"minimum": 1,
|
|
303
|
+
"maximum": 64
|
|
304
|
+
},
|
|
305
|
+
"ElectionId": {
|
|
306
|
+
"title": "ElectionId",
|
|
307
|
+
"description": "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.",
|
|
308
|
+
"type": "string",
|
|
309
|
+
"pattern": "^[A-Za-z0-9._-]{1,128}$"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
} as const;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
316
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
317
|
+
* per-specification and cannot be derived from the document alone, and
|
|
318
|
+
* item 2 needs the schema this carries.
|
|
319
|
+
*/
|
|
320
|
+
export const SPEC = {
|
|
321
|
+
typeUri: TYPE_URI,
|
|
322
|
+
isBearer: false,
|
|
323
|
+
isProofRequired: true,
|
|
324
|
+
isRecipientRequired: true,
|
|
325
|
+
isIssuedAtRequired: true,
|
|
326
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
327
|
+
} as const;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
331
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
332
|
+
* parties (§7.3 item 5).
|
|
333
|
+
*/
|
|
334
|
+
export const RESPONSE_SPEC = {
|
|
335
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
336
|
+
isBearer: false,
|
|
337
|
+
isProofRequired: false,
|
|
338
|
+
isRecipientRequired: true,
|
|
339
|
+
isIssuedAtRequired: true,
|
|
340
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
341
|
+
} as const;
|