@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.
Files changed (133) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/dist/_shared/components.d.ts +207 -4
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/device/list/0.1/payload.d.ts +4 -4
  5. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  6. package/dist/device/list/0.1/payload.js +4 -2
  7. package/dist/device/list/0.1/payload.js.map +1 -1
  8. package/dist/device/list/0.2/payload.d.ts +4 -4
  9. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  10. package/dist/device/list/0.2/payload.js +4 -2
  11. package/dist/device/list/0.2/payload.js.map +1 -1
  12. package/dist/device/register/0.1/payload.d.ts +4 -4
  13. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  14. package/dist/device/register/0.1/payload.js +4 -2
  15. package/dist/device/register/0.1/payload.js.map +1 -1
  16. package/dist/device/register/0.2/payload.d.ts +4 -4
  17. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  18. package/dist/device/register/0.2/payload.js +4 -2
  19. package/dist/device/register/0.2/payload.js.map +1 -1
  20. package/dist/index.d.ts +14 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +14 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/voting/_shared/0.1/voting.d.ts +1 -1
  25. package/dist/voting/_shared/0.1/voting.d.ts.map +1 -1
  26. package/dist/voting/ballot/cast-encrypted/0.1/payload.d.ts +1166 -0
  27. package/dist/voting/ballot/cast-encrypted/0.1/payload.d.ts.map +1 -0
  28. package/dist/voting/ballot/cast-encrypted/0.1/payload.js +690 -0
  29. package/dist/voting/ballot/cast-encrypted/0.1/payload.js.map +1 -0
  30. package/dist/voting/board/read/0.1/payload.d.ts +2555 -719
  31. package/dist/voting/board/read/0.1/payload.d.ts.map +1 -1
  32. package/dist/voting/board/read/0.1/payload.js +1517 -391
  33. package/dist/voting/board/read/0.1/payload.js.map +1 -1
  34. package/dist/voting/election/register/0.1/payload.d.ts +4 -4
  35. package/dist/voting/election/register/0.1/payload.js +2 -2
  36. package/dist/voting/election/register/0.1/payload.js.map +1 -1
  37. package/dist/voting/election/show/0.1/payload.d.ts +4 -4
  38. package/dist/voting/election/show/0.1/payload.js +2 -2
  39. package/dist/voting/election/show/0.1/payload.js.map +1 -1
  40. package/dist/voting/trustees/confirm/0.1/payload.d.ts +620 -0
  41. package/dist/voting/trustees/confirm/0.1/payload.d.ts.map +1 -0
  42. package/dist/voting/trustees/confirm/0.1/payload.js +388 -0
  43. package/dist/voting/trustees/confirm/0.1/payload.js.map +1 -0
  44. package/dist/voting/trustees/deal/0.1/payload.d.ts +1032 -0
  45. package/dist/voting/trustees/deal/0.1/payload.d.ts.map +1 -0
  46. package/dist/voting/trustees/deal/0.1/payload.js +630 -0
  47. package/dist/voting/trustees/deal/0.1/payload.js.map +1 -0
  48. package/dist/voting/trustees/decrypt/0.1/payload.d.ts +1009 -0
  49. package/dist/voting/trustees/decrypt/0.1/payload.d.ts.map +1 -0
  50. package/dist/voting/trustees/decrypt/0.1/payload.js +623 -0
  51. package/dist/voting/trustees/decrypt/0.1/payload.js.map +1 -0
  52. package/dist/voting/trustees/enrol/0.1/payload.d.ts +792 -0
  53. package/dist/voting/trustees/enrol/0.1/payload.d.ts.map +1 -0
  54. package/dist/voting/trustees/enrol/0.1/payload.js +490 -0
  55. package/dist/voting/trustees/enrol/0.1/payload.js.map +1 -0
  56. package/dist/voting/trustees/justify/0.1/payload.d.ts +642 -0
  57. package/dist/voting/trustees/justify/0.1/payload.d.ts.map +1 -0
  58. package/dist/voting/trustees/justify/0.1/payload.js +402 -0
  59. package/dist/voting/trustees/justify/0.1/payload.js.map +1 -0
  60. package/dist/voting/trustees/status/0.1/payload.d.ts +1411 -0
  61. package/dist/voting/trustees/status/0.1/payload.d.ts.map +1 -0
  62. package/dist/voting/trustees/status/0.1/payload.js +822 -0
  63. package/dist/voting/trustees/status/0.1/payload.js.map +1 -0
  64. package/dist/vta/pcs/trustee/deal/0.1/payload.d.ts +2005 -0
  65. package/dist/vta/pcs/trustee/deal/0.1/payload.d.ts.map +1 -0
  66. package/dist/vta/pcs/trustee/deal/0.1/payload.js +1176 -0
  67. package/dist/vta/pcs/trustee/deal/0.1/payload.js.map +1 -0
  68. package/dist/vta/pcs/trustee/decrypt/0.1/payload.d.ts +736 -0
  69. package/dist/vta/pcs/trustee/decrypt/0.1/payload.d.ts.map +1 -0
  70. package/dist/vta/pcs/trustee/decrypt/0.1/payload.js +412 -0
  71. package/dist/vta/pcs/trustee/decrypt/0.1/payload.js.map +1 -0
  72. package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts +1756 -0
  73. package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts.map +1 -0
  74. package/dist/vta/pcs/trustee/enrol/0.1/payload.js +1040 -0
  75. package/dist/vta/pcs/trustee/enrol/0.1/payload.js.map +1 -0
  76. package/dist/vta/pcs/trustee/justify/0.1/payload.d.ts +504 -0
  77. package/dist/vta/pcs/trustee/justify/0.1/payload.d.ts.map +1 -0
  78. package/dist/vta/pcs/trustee/justify/0.1/payload.js +274 -0
  79. package/dist/vta/pcs/trustee/justify/0.1/payload.js.map +1 -0
  80. package/dist/vta/pcs/trustee/keys/0.1/payload.d.ts +2501 -0
  81. package/dist/vta/pcs/trustee/keys/0.1/payload.d.ts.map +1 -0
  82. package/dist/vta/pcs/trustee/keys/0.1/payload.js +1455 -0
  83. package/dist/vta/pcs/trustee/keys/0.1/payload.js.map +1 -0
  84. package/dist/vta/pcs/vote/0.1/payload.d.ts +4 -4
  85. package/dist/vta/pcs/vote/0.1/payload.js +2 -2
  86. package/dist/vta/pcs/vote/0.1/payload.js.map +1 -1
  87. package/dist/vta/pcs/vote-encrypted/0.1/payload.d.ts +2375 -0
  88. package/dist/vta/pcs/vote-encrypted/0.1/payload.d.ts.map +1 -0
  89. package/dist/vta/pcs/vote-encrypted/0.1/payload.js +1389 -0
  90. package/dist/vta/pcs/vote-encrypted/0.1/payload.js.map +1 -0
  91. package/dist/vta/pcs/voter/register/0.1/payload.d.ts +4 -4
  92. package/dist/vta/pcs/voter/register/0.1/payload.js +2 -2
  93. package/dist/vta/pcs/voter/register/0.1/payload.js.map +1 -1
  94. package/dist/vtc/config/did-hosting/list/0.1/payload.d.ts +339 -0
  95. package/dist/vtc/config/did-hosting/list/0.1/payload.d.ts.map +1 -0
  96. package/dist/vtc/config/did-hosting/list/0.1/payload.js +185 -0
  97. package/dist/vtc/config/did-hosting/list/0.1/payload.js.map +1 -0
  98. package/dist/vtc/elections/create/0.1/payload.d.ts +4 -4
  99. package/dist/vtc/elections/create/0.1/payload.js +2 -2
  100. package/dist/vtc/elections/create/0.1/payload.js.map +1 -1
  101. package/dist/vtc/elections/show/0.1/payload.d.ts +242 -6
  102. package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -1
  103. package/dist/vtc/elections/show/0.1/payload.js +132 -2
  104. package/dist/vtc/elections/show/0.1/payload.js.map +1 -1
  105. package/package.json +1 -1
  106. package/src/_shared/components.ts +222 -4
  107. package/src/device/list/0.1/payload.ts +4 -2
  108. package/src/device/list/0.2/payload.ts +4 -2
  109. package/src/device/register/0.1/payload.ts +4 -2
  110. package/src/device/register/0.2/payload.ts +4 -2
  111. package/src/index.ts +14 -0
  112. package/src/voting/_shared/0.1/voting.ts +1 -1
  113. package/src/voting/ballot/cast-encrypted/0.1/payload.ts +735 -0
  114. package/src/voting/board/read/0.1/payload.ts +1519 -393
  115. package/src/voting/election/register/0.1/payload.ts +2 -2
  116. package/src/voting/election/show/0.1/payload.ts +2 -2
  117. package/src/voting/trustees/confirm/0.1/payload.ts +429 -0
  118. package/src/voting/trustees/deal/0.1/payload.ts +665 -0
  119. package/src/voting/trustees/decrypt/0.1/payload.ts +663 -0
  120. package/src/voting/trustees/enrol/0.1/payload.ts +525 -0
  121. package/src/voting/trustees/justify/0.1/payload.ts +439 -0
  122. package/src/voting/trustees/status/0.1/payload.ts +890 -0
  123. package/src/vta/pcs/trustee/deal/0.1/payload.ts +1250 -0
  124. package/src/vta/pcs/trustee/decrypt/0.1/payload.ts +489 -0
  125. package/src/vta/pcs/trustee/enrol/0.1/payload.ts +1107 -0
  126. package/src/vta/pcs/trustee/justify/0.1/payload.ts +341 -0
  127. package/src/vta/pcs/trustee/keys/0.1/payload.ts +1545 -0
  128. package/src/vta/pcs/vote/0.1/payload.ts +2 -2
  129. package/src/vta/pcs/vote-encrypted/0.1/payload.ts +1455 -0
  130. package/src/vta/pcs/voter/register/0.1/payload.ts +2 -2
  131. package/src/vtc/config/did-hosting/list/0.1/payload.ts +233 -0
  132. package/src/vtc/elections/create/0.1/payload.ts +2 -2
  133. package/src/vtc/elections/show/0.1/payload.ts +138 -4
@@ -0,0 +1,1176 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/pcs/trustee/deal/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/pcs/trustee/deal/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/pcs/trustee/deal/0.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vta/pcs/trustee/deal/0.1",
21
+ "title": "VTA PCS — Trustee Deal — payload",
22
+ "description": "The trustee's VTA deals its contribution to the election key and returns the voting/trustees/deal request signed as the trustee.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "contextId",
27
+ "community",
28
+ "electionId",
29
+ "trustee",
30
+ "manifest",
31
+ "transportKeys"
32
+ ],
33
+ "properties": {
34
+ "contextId": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 256,
38
+ "description": "The VTA context the trustee's keys live in."
39
+ },
40
+ "community": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "maxLength": 2048,
44
+ "description": "The community's DID."
45
+ },
46
+ "electionId": {
47
+ "$ref": "#/$defs/ElectionId"
48
+ },
49
+ "trustee": {
50
+ "type": "string",
51
+ "minLength": 1,
52
+ "maxLength": 2048,
53
+ "description": "The trustee's DID: a persona this VTA holds, named in the manifest's `trustees.dids`."
54
+ },
55
+ "manifest": {
56
+ "$ref": "#/$defs/Manifest"
57
+ },
58
+ "transportKeys": {
59
+ "type": "array",
60
+ "minItems": 2,
61
+ "maxItems": 64,
62
+ "items": {
63
+ "$ref": "#/$defs/TransportKey"
64
+ },
65
+ "description": "Every trustee's transport key, from voting/trustees/status."
66
+ },
67
+ "ext": {
68
+ "$ref": "#/$defs/Ext"
69
+ }
70
+ },
71
+ "$defs": {
72
+ "Response": {
73
+ "$anchor": "response",
74
+ "title": "VTA PCS — Trustee Deal — response payload",
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "required": [
78
+ "document"
79
+ ],
80
+ "properties": {
81
+ "document": {
82
+ "title": "DealDocument",
83
+ "description": "The voting/trustees/deal request, signed as the trustee.",
84
+ "type": "object",
85
+ "required": [
86
+ "id",
87
+ "type",
88
+ "issuer",
89
+ "recipient",
90
+ "issuedAt",
91
+ "payload",
92
+ "proof"
93
+ ],
94
+ "properties": {
95
+ "id": {
96
+ "type": "string",
97
+ "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}$"
98
+ },
99
+ "type": {
100
+ "const": "https://trusttasks.org/spec/voting/trustees/deal/0.1"
101
+ },
102
+ "issuer": {
103
+ "type": "string",
104
+ "minLength": 1,
105
+ "maxLength": 2048,
106
+ "description": "The signer."
107
+ },
108
+ "recipient": {
109
+ "type": "string",
110
+ "minLength": 1,
111
+ "maxLength": 2048,
112
+ "description": "The ballot box."
113
+ },
114
+ "issuedAt": {
115
+ "type": "string",
116
+ "format": "date-time"
117
+ },
118
+ "expiresAt": {
119
+ "type": "string",
120
+ "format": "date-time"
121
+ },
122
+ "payload": {
123
+ "type": "object",
124
+ "description": "That task's request payload."
125
+ },
126
+ "proof": {
127
+ "type": "object",
128
+ "description": "A Data Integrity proof by an `authentication` key of `issuer`."
129
+ }
130
+ }
131
+ },
132
+ "ext": {
133
+ "$ref": "#/$defs/Ext"
134
+ }
135
+ }
136
+ },
137
+ "Ext": {
138
+ "title": "Ext",
139
+ "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.",
140
+ "type": "object",
141
+ "minProperties": 1,
142
+ "additionalProperties": true,
143
+ "propertyNames": {
144
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
145
+ }
146
+ },
147
+ "TransportKey": {
148
+ "title": "TransportKey",
149
+ "description": "The group element a trustee's shares are sealed to, with a Schnorr proof of knowledge of its discrete log (CONVENTIONS §9.6).",
150
+ "type": "object",
151
+ "additionalProperties": false,
152
+ "required": [
153
+ "trustee",
154
+ "key",
155
+ "pok"
156
+ ],
157
+ "properties": {
158
+ "trustee": {
159
+ "$ref": "#/$defs/TrusteeIndex"
160
+ },
161
+ "key": {
162
+ "$ref": "#/$defs/GroupElement"
163
+ },
164
+ "pok": {
165
+ "$ref": "#/$defs/SigmaProof"
166
+ }
167
+ }
168
+ },
169
+ "SigmaProof": {
170
+ "title": "SigmaProof",
171
+ "description": "A non-interactive sigma proof as its challenge and response `(c, z)` (Schnorr or Chaum–Pedersen; CONVENTIONS §9.3).",
172
+ "type": "object",
173
+ "additionalProperties": false,
174
+ "required": [
175
+ "c",
176
+ "z"
177
+ ],
178
+ "properties": {
179
+ "c": {
180
+ "$ref": "#/$defs/GroupScalar"
181
+ },
182
+ "z": {
183
+ "$ref": "#/$defs/GroupScalar"
184
+ }
185
+ }
186
+ },
187
+ "GroupScalar": {
188
+ "title": "GroupScalar",
189
+ "description": "A scalar mod the Ristretto group order: 32 canonical little-endian bytes, multibase base58btc (CONVENTIONS §9.1).",
190
+ "type": "string",
191
+ "minLength": 2,
192
+ "maxLength": 64,
193
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$"
194
+ },
195
+ "GroupElement": {
196
+ "title": "GroupElement",
197
+ "description": "A Ristretto group element: its 32-byte compression, multibase base58btc. Never the identity (CONVENTIONS §9.1).",
198
+ "type": "string",
199
+ "minLength": 2,
200
+ "maxLength": 64,
201
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$"
202
+ },
203
+ "TrusteeIndex": {
204
+ "title": "TrusteeIndex",
205
+ "description": "A trustee's index: its position in the manifest's `trustees.dids`, counting from 1.",
206
+ "type": "integer",
207
+ "minimum": 1,
208
+ "maximum": 64
209
+ },
210
+ "Manifest": {
211
+ "title": "Manifest",
212
+ "description": "What an election asks and how it is decided (VTI-VOT-010). Its digest (`manifestDigest`) is the SHA-256 multihash of its RFC 8785 (JCS) canonicalization, and every cast is bound to it (VTI-VOT-011).",
213
+ "type": "object",
214
+ "additionalProperties": false,
215
+ "required": [
216
+ "electionId",
217
+ "community",
218
+ "questions",
219
+ "secrecy",
220
+ "roll",
221
+ "registrationOpens",
222
+ "votingOpens",
223
+ "votingCloses",
224
+ "revote",
225
+ "board",
226
+ "ballotBox",
227
+ "binding",
228
+ "allowEarlyClose",
229
+ "resultsBeforeClose",
230
+ "textReleaseThreshold"
231
+ ],
232
+ "properties": {
233
+ "electionId": {
234
+ "$ref": "#/$defs/ElectionId"
235
+ },
236
+ "community": {
237
+ "type": "string",
238
+ "minLength": 1,
239
+ "maxLength": 2048,
240
+ "description": "The community's DID."
241
+ },
242
+ "title": {
243
+ "type": "string",
244
+ "maxLength": 512
245
+ },
246
+ "description": {
247
+ "type": "string",
248
+ "maxLength": 8192
249
+ },
250
+ "questions": {
251
+ "type": "array",
252
+ "minItems": 1,
253
+ "maxItems": 128,
254
+ "items": {
255
+ "$ref": "#/$defs/Question"
256
+ }
257
+ },
258
+ "secrecy": {
259
+ "$ref": "#/$defs/SecrecyLevel"
260
+ },
261
+ "roll": {
262
+ "$ref": "#/$defs/RollRule"
263
+ },
264
+ "registrationOpens": {
265
+ "type": "string",
266
+ "format": "date-time"
267
+ },
268
+ "votingOpens": {
269
+ "type": "string",
270
+ "format": "date-time"
271
+ },
272
+ "votingCloses": {
273
+ "type": "string",
274
+ "format": "date-time"
275
+ },
276
+ "revote": {
277
+ "$ref": "#/$defs/Revote"
278
+ },
279
+ "board": {
280
+ "type": "object",
281
+ "additionalProperties": false,
282
+ "required": [
283
+ "visibility",
284
+ "auditors"
285
+ ],
286
+ "properties": {
287
+ "visibility": {
288
+ "$ref": "#/$defs/BoardVisibility"
289
+ },
290
+ "auditors": {
291
+ "type": "array",
292
+ "items": {
293
+ "type": "string",
294
+ "minLength": 1,
295
+ "maxLength": 2048
296
+ },
297
+ "uniqueItems": true
298
+ }
299
+ }
300
+ },
301
+ "ballotBox": {
302
+ "type": "string",
303
+ "minLength": 1,
304
+ "maxLength": 2048,
305
+ "description": "The DID of the voting service that holds the board."
306
+ },
307
+ "trustees": {
308
+ "$ref": "#/$defs/Trustees"
309
+ },
310
+ "binding": {
311
+ "type": "boolean",
312
+ "description": "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081)."
313
+ },
314
+ "allowEarlyClose": {
315
+ "type": "boolean"
316
+ },
317
+ "resultsBeforeClose": {
318
+ "type": "boolean",
319
+ "description": "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061)."
320
+ },
321
+ "textReleaseThreshold": {
322
+ "type": "integer",
323
+ "minimum": 10,
324
+ "description": "Counted ballots required before any text answer is disclosed (VTI-VOT-065)."
325
+ }
326
+ }
327
+ },
328
+ "Trustees": {
329
+ "title": "Trustees",
330
+ "description": "The trustees of a sealed or tallied-encrypted election and the number of them decryption needs (VTI-VOT-062). Neither the community nor the ballot box may be one.",
331
+ "type": "object",
332
+ "additionalProperties": false,
333
+ "required": [
334
+ "dids",
335
+ "threshold"
336
+ ],
337
+ "properties": {
338
+ "dids": {
339
+ "type": "array",
340
+ "minItems": 2,
341
+ "items": {
342
+ "type": "string",
343
+ "minLength": 1,
344
+ "maxLength": 2048
345
+ },
346
+ "uniqueItems": true
347
+ },
348
+ "threshold": {
349
+ "type": "integer",
350
+ "minimum": 2
351
+ }
352
+ }
353
+ },
354
+ "BoardVisibility": {
355
+ "title": "BoardVisibility",
356
+ "description": "`public`: anyone reads the board. `private`: the community, the auditors the manifest names and, for one cast's inclusion, the holder of its receipt (VTI-VOT-052).",
357
+ "type": "string",
358
+ "enum": [
359
+ "public",
360
+ "private"
361
+ ]
362
+ },
363
+ "Revote": {
364
+ "title": "Revote",
365
+ "description": "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).",
366
+ "type": "string",
367
+ "enum": [
368
+ "replace",
369
+ "refuse"
370
+ ]
371
+ },
372
+ "RollRule": {
373
+ "title": "RollRule",
374
+ "description": "Who may be issued a ticket (VTI-VOT-021): the community's active members, its active members and the parties `listed` names, or only the parties `listed` names.",
375
+ "type": "object",
376
+ "additionalProperties": false,
377
+ "required": [
378
+ "rule"
379
+ ],
380
+ "properties": {
381
+ "rule": {
382
+ "type": "string",
383
+ "enum": [
384
+ "members",
385
+ "membersAndListed",
386
+ "listed"
387
+ ]
388
+ },
389
+ "listed": {
390
+ "type": "array",
391
+ "items": {
392
+ "type": "string",
393
+ "minLength": 1,
394
+ "maxLength": 2048,
395
+ "description": "A DID enfranchised by name."
396
+ },
397
+ "uniqueItems": true
398
+ }
399
+ }
400
+ },
401
+ "SecrecyLevel": {
402
+ "title": "SecrecyLevel",
403
+ "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).",
404
+ "type": "string",
405
+ "enum": [
406
+ "open",
407
+ "sealed",
408
+ "talliedEncrypted"
409
+ ]
410
+ },
411
+ "Question": {
412
+ "title": "Question",
413
+ "description": "One question. Tagged union over `type`.",
414
+ "oneOf": [
415
+ {
416
+ "title": "ChoiceQuestion",
417
+ "description": "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.",
418
+ "type": "object",
419
+ "additionalProperties": false,
420
+ "required": [
421
+ "key",
422
+ "type",
423
+ "options",
424
+ "minSelections",
425
+ "maxSelections",
426
+ "optional"
427
+ ],
428
+ "properties": {
429
+ "key": {
430
+ "$ref": "#/$defs/Key"
431
+ },
432
+ "type": {
433
+ "const": "choice"
434
+ },
435
+ "text": {
436
+ "type": "string",
437
+ "maxLength": 2048
438
+ },
439
+ "options": {
440
+ "type": "array",
441
+ "minItems": 2,
442
+ "maxItems": 256,
443
+ "items": {
444
+ "$ref": "#/$defs/QuestionOption"
445
+ }
446
+ },
447
+ "minSelections": {
448
+ "type": "integer",
449
+ "minimum": 0
450
+ },
451
+ "maxSelections": {
452
+ "type": "integer",
453
+ "minimum": 1
454
+ },
455
+ "optional": {
456
+ "type": "boolean"
457
+ }
458
+ }
459
+ },
460
+ {
461
+ "title": "RankingQuestion",
462
+ "description": "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.",
463
+ "type": "object",
464
+ "additionalProperties": false,
465
+ "required": [
466
+ "key",
467
+ "type",
468
+ "options",
469
+ "partial",
470
+ "optional"
471
+ ],
472
+ "properties": {
473
+ "key": {
474
+ "$ref": "#/$defs/Key"
475
+ },
476
+ "type": {
477
+ "const": "ranking"
478
+ },
479
+ "text": {
480
+ "type": "string",
481
+ "maxLength": 2048
482
+ },
483
+ "options": {
484
+ "type": "array",
485
+ "minItems": 2,
486
+ "maxItems": 64,
487
+ "items": {
488
+ "$ref": "#/$defs/QuestionOption"
489
+ }
490
+ },
491
+ "partial": {
492
+ "type": "boolean"
493
+ },
494
+ "optional": {
495
+ "type": "boolean"
496
+ }
497
+ }
498
+ },
499
+ {
500
+ "title": "ScoreQuestion",
501
+ "description": "Give each option an integer score within [min, max].",
502
+ "type": "object",
503
+ "additionalProperties": false,
504
+ "required": [
505
+ "key",
506
+ "type",
507
+ "options",
508
+ "min",
509
+ "max",
510
+ "optional"
511
+ ],
512
+ "properties": {
513
+ "key": {
514
+ "$ref": "#/$defs/Key"
515
+ },
516
+ "type": {
517
+ "const": "score"
518
+ },
519
+ "text": {
520
+ "type": "string",
521
+ "maxLength": 2048
522
+ },
523
+ "options": {
524
+ "type": "array",
525
+ "minItems": 1,
526
+ "maxItems": 256,
527
+ "items": {
528
+ "$ref": "#/$defs/QuestionOption"
529
+ }
530
+ },
531
+ "min": {
532
+ "type": "integer"
533
+ },
534
+ "max": {
535
+ "type": "integer"
536
+ },
537
+ "optional": {
538
+ "type": "boolean"
539
+ }
540
+ }
541
+ },
542
+ {
543
+ "title": "TextQuestion",
544
+ "description": "Free text of at most `maxLength` characters.",
545
+ "type": "object",
546
+ "additionalProperties": false,
547
+ "required": [
548
+ "key",
549
+ "type",
550
+ "maxLength",
551
+ "optional"
552
+ ],
553
+ "properties": {
554
+ "key": {
555
+ "$ref": "#/$defs/Key"
556
+ },
557
+ "type": {
558
+ "const": "text"
559
+ },
560
+ "text": {
561
+ "type": "string",
562
+ "maxLength": 2048
563
+ },
564
+ "maxLength": {
565
+ "type": "integer",
566
+ "minimum": 1,
567
+ "maximum": 4096
568
+ },
569
+ "optional": {
570
+ "type": "boolean"
571
+ }
572
+ }
573
+ }
574
+ ]
575
+ },
576
+ "Key": {
577
+ "title": "Key",
578
+ "description": "A question or option key, unique within its manifest or question.",
579
+ "type": "string",
580
+ "pattern": "^[A-Za-z0-9._-]{1,64}$"
581
+ },
582
+ "QuestionOption": {
583
+ "title": "QuestionOption",
584
+ "type": "object",
585
+ "additionalProperties": false,
586
+ "required": [
587
+ "key"
588
+ ],
589
+ "properties": {
590
+ "key": {
591
+ "$ref": "#/$defs/Key"
592
+ },
593
+ "label": {
594
+ "type": "string",
595
+ "maxLength": 512,
596
+ "description": "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014)."
597
+ }
598
+ }
599
+ },
600
+ "ElectionId": {
601
+ "title": "ElectionId",
602
+ "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.",
603
+ "type": "string",
604
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
605
+ }
606
+ }
607
+ };
608
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
609
+ export const RESPONSE_PAYLOAD_SCHEMA = {
610
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
611
+ "$ref": "#/$defs/Response",
612
+ "$defs": {
613
+ "Response": {
614
+ "$anchor": "response",
615
+ "title": "VTA PCS — Trustee Deal — response payload",
616
+ "type": "object",
617
+ "additionalProperties": false,
618
+ "required": [
619
+ "document"
620
+ ],
621
+ "properties": {
622
+ "document": {
623
+ "title": "DealDocument",
624
+ "description": "The voting/trustees/deal request, signed as the trustee.",
625
+ "type": "object",
626
+ "required": [
627
+ "id",
628
+ "type",
629
+ "issuer",
630
+ "recipient",
631
+ "issuedAt",
632
+ "payload",
633
+ "proof"
634
+ ],
635
+ "properties": {
636
+ "id": {
637
+ "type": "string",
638
+ "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}$"
639
+ },
640
+ "type": {
641
+ "const": "https://trusttasks.org/spec/voting/trustees/deal/0.1"
642
+ },
643
+ "issuer": {
644
+ "type": "string",
645
+ "minLength": 1,
646
+ "maxLength": 2048,
647
+ "description": "The signer."
648
+ },
649
+ "recipient": {
650
+ "type": "string",
651
+ "minLength": 1,
652
+ "maxLength": 2048,
653
+ "description": "The ballot box."
654
+ },
655
+ "issuedAt": {
656
+ "type": "string",
657
+ "format": "date-time"
658
+ },
659
+ "expiresAt": {
660
+ "type": "string",
661
+ "format": "date-time"
662
+ },
663
+ "payload": {
664
+ "type": "object",
665
+ "description": "That task's request payload."
666
+ },
667
+ "proof": {
668
+ "type": "object",
669
+ "description": "A Data Integrity proof by an `authentication` key of `issuer`."
670
+ }
671
+ }
672
+ },
673
+ "ext": {
674
+ "$ref": "#/$defs/Ext"
675
+ }
676
+ }
677
+ },
678
+ "Ext": {
679
+ "title": "Ext",
680
+ "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.",
681
+ "type": "object",
682
+ "minProperties": 1,
683
+ "additionalProperties": true,
684
+ "propertyNames": {
685
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
686
+ }
687
+ },
688
+ "TransportKey": {
689
+ "title": "TransportKey",
690
+ "description": "The group element a trustee's shares are sealed to, with a Schnorr proof of knowledge of its discrete log (CONVENTIONS §9.6).",
691
+ "type": "object",
692
+ "additionalProperties": false,
693
+ "required": [
694
+ "trustee",
695
+ "key",
696
+ "pok"
697
+ ],
698
+ "properties": {
699
+ "trustee": {
700
+ "$ref": "#/$defs/TrusteeIndex"
701
+ },
702
+ "key": {
703
+ "$ref": "#/$defs/GroupElement"
704
+ },
705
+ "pok": {
706
+ "$ref": "#/$defs/SigmaProof"
707
+ }
708
+ }
709
+ },
710
+ "SigmaProof": {
711
+ "title": "SigmaProof",
712
+ "description": "A non-interactive sigma proof as its challenge and response `(c, z)` (Schnorr or Chaum–Pedersen; CONVENTIONS §9.3).",
713
+ "type": "object",
714
+ "additionalProperties": false,
715
+ "required": [
716
+ "c",
717
+ "z"
718
+ ],
719
+ "properties": {
720
+ "c": {
721
+ "$ref": "#/$defs/GroupScalar"
722
+ },
723
+ "z": {
724
+ "$ref": "#/$defs/GroupScalar"
725
+ }
726
+ }
727
+ },
728
+ "GroupScalar": {
729
+ "title": "GroupScalar",
730
+ "description": "A scalar mod the Ristretto group order: 32 canonical little-endian bytes, multibase base58btc (CONVENTIONS §9.1).",
731
+ "type": "string",
732
+ "minLength": 2,
733
+ "maxLength": 64,
734
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$"
735
+ },
736
+ "GroupElement": {
737
+ "title": "GroupElement",
738
+ "description": "A Ristretto group element: its 32-byte compression, multibase base58btc. Never the identity (CONVENTIONS §9.1).",
739
+ "type": "string",
740
+ "minLength": 2,
741
+ "maxLength": 64,
742
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$"
743
+ },
744
+ "TrusteeIndex": {
745
+ "title": "TrusteeIndex",
746
+ "description": "A trustee's index: its position in the manifest's `trustees.dids`, counting from 1.",
747
+ "type": "integer",
748
+ "minimum": 1,
749
+ "maximum": 64
750
+ },
751
+ "Manifest": {
752
+ "title": "Manifest",
753
+ "description": "What an election asks and how it is decided (VTI-VOT-010). Its digest (`manifestDigest`) is the SHA-256 multihash of its RFC 8785 (JCS) canonicalization, and every cast is bound to it (VTI-VOT-011).",
754
+ "type": "object",
755
+ "additionalProperties": false,
756
+ "required": [
757
+ "electionId",
758
+ "community",
759
+ "questions",
760
+ "secrecy",
761
+ "roll",
762
+ "registrationOpens",
763
+ "votingOpens",
764
+ "votingCloses",
765
+ "revote",
766
+ "board",
767
+ "ballotBox",
768
+ "binding",
769
+ "allowEarlyClose",
770
+ "resultsBeforeClose",
771
+ "textReleaseThreshold"
772
+ ],
773
+ "properties": {
774
+ "electionId": {
775
+ "$ref": "#/$defs/ElectionId"
776
+ },
777
+ "community": {
778
+ "type": "string",
779
+ "minLength": 1,
780
+ "maxLength": 2048,
781
+ "description": "The community's DID."
782
+ },
783
+ "title": {
784
+ "type": "string",
785
+ "maxLength": 512
786
+ },
787
+ "description": {
788
+ "type": "string",
789
+ "maxLength": 8192
790
+ },
791
+ "questions": {
792
+ "type": "array",
793
+ "minItems": 1,
794
+ "maxItems": 128,
795
+ "items": {
796
+ "$ref": "#/$defs/Question"
797
+ }
798
+ },
799
+ "secrecy": {
800
+ "$ref": "#/$defs/SecrecyLevel"
801
+ },
802
+ "roll": {
803
+ "$ref": "#/$defs/RollRule"
804
+ },
805
+ "registrationOpens": {
806
+ "type": "string",
807
+ "format": "date-time"
808
+ },
809
+ "votingOpens": {
810
+ "type": "string",
811
+ "format": "date-time"
812
+ },
813
+ "votingCloses": {
814
+ "type": "string",
815
+ "format": "date-time"
816
+ },
817
+ "revote": {
818
+ "$ref": "#/$defs/Revote"
819
+ },
820
+ "board": {
821
+ "type": "object",
822
+ "additionalProperties": false,
823
+ "required": [
824
+ "visibility",
825
+ "auditors"
826
+ ],
827
+ "properties": {
828
+ "visibility": {
829
+ "$ref": "#/$defs/BoardVisibility"
830
+ },
831
+ "auditors": {
832
+ "type": "array",
833
+ "items": {
834
+ "type": "string",
835
+ "minLength": 1,
836
+ "maxLength": 2048
837
+ },
838
+ "uniqueItems": true
839
+ }
840
+ }
841
+ },
842
+ "ballotBox": {
843
+ "type": "string",
844
+ "minLength": 1,
845
+ "maxLength": 2048,
846
+ "description": "The DID of the voting service that holds the board."
847
+ },
848
+ "trustees": {
849
+ "$ref": "#/$defs/Trustees"
850
+ },
851
+ "binding": {
852
+ "type": "boolean",
853
+ "description": "Whether the community treats the result as deciding something; creating a binding election takes another administrator's consent (VTI-VOT-081)."
854
+ },
855
+ "allowEarlyClose": {
856
+ "type": "boolean"
857
+ },
858
+ "resultsBeforeClose": {
859
+ "type": "boolean",
860
+ "description": "Open elections only: whether running totals may be read while voting is open (VTI-VOT-061)."
861
+ },
862
+ "textReleaseThreshold": {
863
+ "type": "integer",
864
+ "minimum": 10,
865
+ "description": "Counted ballots required before any text answer is disclosed (VTI-VOT-065)."
866
+ }
867
+ }
868
+ },
869
+ "Trustees": {
870
+ "title": "Trustees",
871
+ "description": "The trustees of a sealed or tallied-encrypted election and the number of them decryption needs (VTI-VOT-062). Neither the community nor the ballot box may be one.",
872
+ "type": "object",
873
+ "additionalProperties": false,
874
+ "required": [
875
+ "dids",
876
+ "threshold"
877
+ ],
878
+ "properties": {
879
+ "dids": {
880
+ "type": "array",
881
+ "minItems": 2,
882
+ "items": {
883
+ "type": "string",
884
+ "minLength": 1,
885
+ "maxLength": 2048
886
+ },
887
+ "uniqueItems": true
888
+ },
889
+ "threshold": {
890
+ "type": "integer",
891
+ "minimum": 2
892
+ }
893
+ }
894
+ },
895
+ "BoardVisibility": {
896
+ "title": "BoardVisibility",
897
+ "description": "`public`: anyone reads the board. `private`: the community, the auditors the manifest names and, for one cast's inclusion, the holder of its receipt (VTI-VOT-052).",
898
+ "type": "string",
899
+ "enum": [
900
+ "public",
901
+ "private"
902
+ ]
903
+ },
904
+ "Revote": {
905
+ "title": "Revote",
906
+ "description": "What a later, different ballot under one ticket does: `replace` the earlier one, or be refused (`refuse`) (VTI-VOT-041).",
907
+ "type": "string",
908
+ "enum": [
909
+ "replace",
910
+ "refuse"
911
+ ]
912
+ },
913
+ "RollRule": {
914
+ "title": "RollRule",
915
+ "description": "Who may be issued a ticket (VTI-VOT-021): the community's active members, its active members and the parties `listed` names, or only the parties `listed` names.",
916
+ "type": "object",
917
+ "additionalProperties": false,
918
+ "required": [
919
+ "rule"
920
+ ],
921
+ "properties": {
922
+ "rule": {
923
+ "type": "string",
924
+ "enum": [
925
+ "members",
926
+ "membersAndListed",
927
+ "listed"
928
+ ]
929
+ },
930
+ "listed": {
931
+ "type": "array",
932
+ "items": {
933
+ "type": "string",
934
+ "minLength": 1,
935
+ "maxLength": 2048,
936
+ "description": "A DID enfranchised by name."
937
+ },
938
+ "uniqueItems": true
939
+ }
940
+ }
941
+ },
942
+ "SecrecyLevel": {
943
+ "title": "SecrecyLevel",
944
+ "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).",
945
+ "type": "string",
946
+ "enum": [
947
+ "open",
948
+ "sealed",
949
+ "talliedEncrypted"
950
+ ]
951
+ },
952
+ "Question": {
953
+ "title": "Question",
954
+ "description": "One question. Tagged union over `type`.",
955
+ "oneOf": [
956
+ {
957
+ "title": "ChoiceQuestion",
958
+ "description": "Select between `minSelections` and `maxSelections` of `options`. A yes/no/abstain motion is a choice of exactly one of three.",
959
+ "type": "object",
960
+ "additionalProperties": false,
961
+ "required": [
962
+ "key",
963
+ "type",
964
+ "options",
965
+ "minSelections",
966
+ "maxSelections",
967
+ "optional"
968
+ ],
969
+ "properties": {
970
+ "key": {
971
+ "$ref": "#/$defs/Key"
972
+ },
973
+ "type": {
974
+ "const": "choice"
975
+ },
976
+ "text": {
977
+ "type": "string",
978
+ "maxLength": 2048
979
+ },
980
+ "options": {
981
+ "type": "array",
982
+ "minItems": 2,
983
+ "maxItems": 256,
984
+ "items": {
985
+ "$ref": "#/$defs/QuestionOption"
986
+ }
987
+ },
988
+ "minSelections": {
989
+ "type": "integer",
990
+ "minimum": 0
991
+ },
992
+ "maxSelections": {
993
+ "type": "integer",
994
+ "minimum": 1
995
+ },
996
+ "optional": {
997
+ "type": "boolean"
998
+ }
999
+ }
1000
+ },
1001
+ {
1002
+ "title": "RankingQuestion",
1003
+ "description": "Order `options`; a ballot ranks every option or, when `partial` is true, a prefix of them.",
1004
+ "type": "object",
1005
+ "additionalProperties": false,
1006
+ "required": [
1007
+ "key",
1008
+ "type",
1009
+ "options",
1010
+ "partial",
1011
+ "optional"
1012
+ ],
1013
+ "properties": {
1014
+ "key": {
1015
+ "$ref": "#/$defs/Key"
1016
+ },
1017
+ "type": {
1018
+ "const": "ranking"
1019
+ },
1020
+ "text": {
1021
+ "type": "string",
1022
+ "maxLength": 2048
1023
+ },
1024
+ "options": {
1025
+ "type": "array",
1026
+ "minItems": 2,
1027
+ "maxItems": 64,
1028
+ "items": {
1029
+ "$ref": "#/$defs/QuestionOption"
1030
+ }
1031
+ },
1032
+ "partial": {
1033
+ "type": "boolean"
1034
+ },
1035
+ "optional": {
1036
+ "type": "boolean"
1037
+ }
1038
+ }
1039
+ },
1040
+ {
1041
+ "title": "ScoreQuestion",
1042
+ "description": "Give each option an integer score within [min, max].",
1043
+ "type": "object",
1044
+ "additionalProperties": false,
1045
+ "required": [
1046
+ "key",
1047
+ "type",
1048
+ "options",
1049
+ "min",
1050
+ "max",
1051
+ "optional"
1052
+ ],
1053
+ "properties": {
1054
+ "key": {
1055
+ "$ref": "#/$defs/Key"
1056
+ },
1057
+ "type": {
1058
+ "const": "score"
1059
+ },
1060
+ "text": {
1061
+ "type": "string",
1062
+ "maxLength": 2048
1063
+ },
1064
+ "options": {
1065
+ "type": "array",
1066
+ "minItems": 1,
1067
+ "maxItems": 256,
1068
+ "items": {
1069
+ "$ref": "#/$defs/QuestionOption"
1070
+ }
1071
+ },
1072
+ "min": {
1073
+ "type": "integer"
1074
+ },
1075
+ "max": {
1076
+ "type": "integer"
1077
+ },
1078
+ "optional": {
1079
+ "type": "boolean"
1080
+ }
1081
+ }
1082
+ },
1083
+ {
1084
+ "title": "TextQuestion",
1085
+ "description": "Free text of at most `maxLength` characters.",
1086
+ "type": "object",
1087
+ "additionalProperties": false,
1088
+ "required": [
1089
+ "key",
1090
+ "type",
1091
+ "maxLength",
1092
+ "optional"
1093
+ ],
1094
+ "properties": {
1095
+ "key": {
1096
+ "$ref": "#/$defs/Key"
1097
+ },
1098
+ "type": {
1099
+ "const": "text"
1100
+ },
1101
+ "text": {
1102
+ "type": "string",
1103
+ "maxLength": 2048
1104
+ },
1105
+ "maxLength": {
1106
+ "type": "integer",
1107
+ "minimum": 1,
1108
+ "maximum": 4096
1109
+ },
1110
+ "optional": {
1111
+ "type": "boolean"
1112
+ }
1113
+ }
1114
+ }
1115
+ ]
1116
+ },
1117
+ "Key": {
1118
+ "title": "Key",
1119
+ "description": "A question or option key, unique within its manifest or question.",
1120
+ "type": "string",
1121
+ "pattern": "^[A-Za-z0-9._-]{1,64}$"
1122
+ },
1123
+ "QuestionOption": {
1124
+ "title": "QuestionOption",
1125
+ "type": "object",
1126
+ "additionalProperties": false,
1127
+ "required": [
1128
+ "key"
1129
+ ],
1130
+ "properties": {
1131
+ "key": {
1132
+ "$ref": "#/$defs/Key"
1133
+ },
1134
+ "label": {
1135
+ "type": "string",
1136
+ "maxLength": 512,
1137
+ "description": "Display text. Absent from a manifest registered with a ballot box that holds no question text (VTI-VOT-014)."
1138
+ }
1139
+ }
1140
+ },
1141
+ "ElectionId": {
1142
+ "title": "ElectionId",
1143
+ "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.",
1144
+ "type": "string",
1145
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
1146
+ }
1147
+ }
1148
+ };
1149
+ /**
1150
+ * SPEC.md §7.2 policy for the request variant, from this specification's
1151
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
1152
+ * per-specification and cannot be derived from the document alone, and
1153
+ * item 2 needs the schema this carries.
1154
+ */
1155
+ export const SPEC = {
1156
+ typeUri: TYPE_URI,
1157
+ isBearer: false,
1158
+ isProofRequired: true,
1159
+ isRecipientRequired: true,
1160
+ isIssuedAtRequired: true,
1161
+ payloadSchema: PAYLOAD_SCHEMA,
1162
+ };
1163
+ /**
1164
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
1165
+ * tracks the *issuer* party's requirement because a response swaps the
1166
+ * parties (§7.3 item 5).
1167
+ */
1168
+ export const RESPONSE_SPEC = {
1169
+ typeUri: RESPONSE_TYPE_URI,
1170
+ isBearer: false,
1171
+ isProofRequired: false,
1172
+ isRecipientRequired: true,
1173
+ isIssuedAtRequired: true,
1174
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
1175
+ };
1176
+ //# sourceMappingURL=payload.js.map