@openvtc/trust-tasks 0.26.19 → 0.26.21
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 +106 -0
- package/dist/_shared/components.d.ts +328 -17
- package/dist/_shared/components.d.ts.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.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 +24 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/voting/_shared/0.1/voting.d.ts +16 -0
- package/dist/voting/_shared/0.1/voting.d.ts.map +1 -0
- package/dist/voting/_shared/0.1/voting.js +6 -0
- package/dist/voting/_shared/0.1/voting.js.map +1 -0
- package/dist/voting/ballot/cast/0.1/payload.d.ts +887 -0
- package/dist/voting/ballot/cast/0.1/payload.d.ts.map +1 -0
- package/dist/voting/ballot/cast/0.1/payload.js +506 -0
- package/dist/voting/ballot/cast/0.1/payload.js.map +1 -0
- package/dist/voting/board/consistency/0.1/payload.d.ts +389 -0
- package/dist/voting/board/consistency/0.1/payload.d.ts.map +1 -0
- package/dist/voting/board/consistency/0.1/payload.js +218 -0
- package/dist/voting/board/consistency/0.1/payload.js.map +1 -0
- package/dist/voting/board/head/0.1/payload.d.ts +380 -0
- package/dist/voting/board/head/0.1/payload.d.ts.map +1 -0
- package/dist/voting/board/head/0.1/payload.js +224 -0
- package/dist/voting/board/head/0.1/payload.js.map +1 -0
- package/dist/voting/board/inclusion/0.1/payload.d.ts +449 -0
- package/dist/voting/board/inclusion/0.1/payload.d.ts.map +1 -0
- package/dist/voting/board/inclusion/0.1/payload.js +246 -0
- package/dist/voting/board/inclusion/0.1/payload.js.map +1 -0
- package/dist/voting/board/read/0.1/payload.d.ts +1596 -0
- package/dist/voting/board/read/0.1/payload.d.ts.map +1 -0
- package/dist/voting/board/read/0.1/payload.js +920 -0
- package/dist/voting/board/read/0.1/payload.js.map +1 -0
- package/dist/voting/election/cancel/0.1/payload.d.ts +540 -0
- package/dist/voting/election/cancel/0.1/payload.d.ts.map +1 -0
- package/dist/voting/election/cancel/0.1/payload.js +331 -0
- package/dist/voting/election/cancel/0.1/payload.js.map +1 -0
- package/dist/voting/election/close/0.1/payload.d.ts +540 -0
- package/dist/voting/election/close/0.1/payload.d.ts.map +1 -0
- package/dist/voting/election/close/0.1/payload.js +330 -0
- package/dist/voting/election/close/0.1/payload.js.map +1 -0
- package/dist/voting/election/register/0.1/payload.d.ts +1920 -0
- package/dist/voting/election/register/0.1/payload.d.ts.map +1 -0
- package/dist/voting/election/register/0.1/payload.js +1166 -0
- package/dist/voting/election/register/0.1/payload.js.map +1 -0
- package/dist/voting/election/show/0.1/payload.d.ts +1824 -0
- package/dist/voting/election/show/0.1/payload.d.ts.map +1 -0
- package/dist/voting/election/show/0.1/payload.js +1112 -0
- package/dist/voting/election/show/0.1/payload.js.map +1 -0
- package/dist/voting/result/show/0.1/payload.d.ts +849 -0
- package/dist/voting/result/show/0.1/payload.d.ts.map +1 -0
- package/dist/voting/result/show/0.1/payload.js +498 -0
- package/dist/voting/result/show/0.1/payload.js.map +1 -0
- package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
- package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
- package/dist/vta/_shared/0.4/pcs-engine.d.ts +1 -1
- package/dist/vta/_shared/0.4/pcs-engine.d.ts.map +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
- package/dist/vta/pcs/applications/create/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/applications/create/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/applications/show/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/applications/show/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/attest/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/attest/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/prove/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/prove/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/root-accept/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/root-accept/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/vetter/show/0.1/payload.d.ts +1 -1
- package/dist/vta/pcs/vetter/show/0.1/payload.d.ts.map +1 -1
- package/dist/vta/pcs/vote/0.1/payload.d.ts +2208 -0
- package/dist/vta/pcs/vote/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote/0.1/payload.js +1282 -0
- package/dist/vta/pcs/vote/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/voter/accept/0.1/payload.d.ts +450 -0
- package/dist/vta/pcs/voter/accept/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/accept/0.1/payload.js +247 -0
- package/dist/vta/pcs/voter/accept/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/voter/receipt/0.1/payload.d.ts +531 -0
- package/dist/vta/pcs/voter/receipt/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/receipt/0.1/payload.js +301 -0
- package/dist/vta/pcs/voter/receipt/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/voter/register/0.1/payload.d.ts +1934 -0
- package/dist/vta/pcs/voter/register/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/register/0.1/payload.js +1133 -0
- package/dist/vta/pcs/voter/register/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts +2 -2
- package/dist/vtc/directory/card/present/0.1/payload.js +1 -1
- package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -1
- package/dist/vtc/directory/card/public/0.1/payload.d.ts +4 -4
- package/dist/vtc/directory/card/public/0.1/payload.js +2 -2
- package/dist/vtc/directory/card/public/0.1/payload.js.map +1 -1
- package/dist/vtc/directory/card/publish/0.1/payload.d.ts +4 -4
- package/dist/vtc/directory/card/publish/0.1/payload.js +2 -2
- package/dist/vtc/directory/card/publish/0.1/payload.js.map +1 -1
- package/dist/vtc/elections/cancel/0.1/payload.d.ts +301 -0
- package/dist/vtc/elections/cancel/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/cancel/0.1/payload.js +183 -0
- package/dist/vtc/elections/cancel/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/certify/0.1/payload.d.ts +914 -0
- package/dist/vtc/elections/certify/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/certify/0.1/payload.js +512 -0
- package/dist/vtc/elections/certify/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/close/0.1/payload.d.ts +301 -0
- package/dist/vtc/elections/close/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/close/0.1/payload.js +182 -0
- package/dist/vtc/elections/close/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/create/0.1/payload.d.ts +1656 -0
- package/dist/vtc/elections/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/create/0.1/payload.js +994 -0
- package/dist/vtc/elections/create/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/list/0.1/payload.d.ts +521 -0
- package/dist/vtc/elections/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/list/0.1/payload.js +290 -0
- package/dist/vtc/elections/list/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/show/0.1/payload.d.ts +2688 -0
- package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/show/0.1/payload.js +1581 -0
- package/dist/vtc/elections/show/0.1/payload.js.map +1 -0
- package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts +597 -0
- package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/tickets/issue/0.1/payload.js +318 -0
- package/dist/vtc/elections/tickets/issue/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/create/0.1/payload.js +2 -2
- package/dist/vtc/groups/create/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/list/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/list/0.1/payload.js +2 -2
- package/dist/vtc/groups/list/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/managers/add/0.1/payload.d.ts +337 -0
- package/dist/vtc/groups/managers/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/managers/add/0.1/payload.js +184 -0
- package/dist/vtc/groups/managers/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/managers/remove/0.1/payload.d.ts +337 -0
- package/dist/vtc/groups/managers/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/managers/remove/0.1/payload.js +184 -0
- package/dist/vtc/groups/managers/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/show/0.1/payload.js +2 -2
- package/dist/vtc/groups/show/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/update/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/update/0.1/payload.js +2 -2
- package/dist/vtc/groups/update/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +331 -17
- package/src/device/list/0.2/payload.ts +4 -2
- package/src/device/register/0.2/payload.ts +4 -2
- package/src/index.ts +24 -0
- package/src/voting/_shared/0.1/voting.ts +17 -0
- package/src/voting/ballot/cast/0.1/payload.ts +560 -0
- package/src/voting/board/consistency/0.1/payload.ts +264 -0
- package/src/voting/board/head/0.1/payload.ts +257 -0
- package/src/voting/board/inclusion/0.1/payload.ts +300 -0
- package/src/voting/board/read/0.1/payload.ts +981 -0
- package/src/voting/election/cancel/0.1/payload.ts +368 -0
- package/src/voting/election/close/0.1/payload.ts +367 -0
- package/src/voting/election/register/0.1/payload.ts +1207 -0
- package/src/voting/election/show/0.1/payload.ts +1149 -0
- package/src/voting/result/show/0.1/payload.ts +536 -0
- package/src/vta/_shared/0.1/app-state-record.ts +1 -1
- package/src/vta/_shared/0.4/pcs-engine.ts +1 -1
- package/src/vta/app-state/delete/1.0/payload.ts +1 -1
- package/src/vta/app-state/get/1.0/payload.ts +1 -1
- package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
- package/src/vta/app-state/list/1.0/payload.ts +1 -1
- package/src/vta/app-state/put/1.0/payload.ts +1 -1
- package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
- package/src/vta/pcs/applications/create/0.1/payload.ts +1 -1
- package/src/vta/pcs/applications/show/0.1/payload.ts +1 -1
- package/src/vta/pcs/attest/0.1/payload.ts +1 -1
- package/src/vta/pcs/prove/0.1/payload.ts +1 -1
- package/src/vta/pcs/root-accept/0.1/payload.ts +1 -1
- package/src/vta/pcs/tokens/abandon/0.1/payload.ts +1 -1
- package/src/vta/pcs/tokens/accept/0.1/payload.ts +1 -1
- package/src/vta/pcs/verify-attestation/0.1/payload.ts +1 -1
- package/src/vta/pcs/vetter/show/0.1/payload.ts +1 -1
- package/src/vta/pcs/vote/0.1/payload.ts +1365 -0
- package/src/vta/pcs/voter/accept/0.1/payload.ts +306 -0
- package/src/vta/pcs/voter/receipt/0.1/payload.ts +367 -0
- package/src/vta/pcs/voter/register/0.1/payload.ts +1211 -0
- package/src/vtc/directory/card/present/0.1/payload.ts +1 -1
- package/src/vtc/directory/card/public/0.1/payload.ts +2 -2
- package/src/vtc/directory/card/publish/0.1/payload.ts +2 -2
- package/src/vtc/elections/cancel/0.1/payload.ts +223 -0
- package/src/vtc/elections/certify/0.1/payload.ts +565 -0
- package/src/vtc/elections/close/0.1/payload.ts +222 -0
- package/src/vtc/elections/create/0.1/payload.ts +1041 -0
- package/src/vtc/elections/list/0.1/payload.ts +371 -0
- package/src/vtc/elections/show/0.1/payload.ts +1671 -0
- package/src/vtc/elections/tickets/issue/0.1/payload.ts +394 -0
- package/src/vtc/groups/create/0.1/payload.ts +2 -2
- package/src/vtc/groups/list/0.1/payload.ts +2 -2
- package/src/vtc/groups/managers/add/0.1/payload.ts +230 -0
- package/src/vtc/groups/managers/remove/0.1/payload.ts +230 -0
- package/src/vtc/groups/show/0.1/payload.ts +2 -2
- package/src/vtc/groups/update/0.1/payload.ts +2 -2
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/voting/board/inclusion/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { DigestMultibase, ElectionId, Ext, MerklePath, Multibase_VotingV0_1 as Multibase } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Asks for an RFC 9162 inclusion proof that one board entry is in the tree of a given size.
|
|
8
|
+
*/
|
|
9
|
+
export interface VotingBoardInclusionPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The community's DID.
|
|
12
|
+
*/
|
|
13
|
+
community: string;
|
|
14
|
+
electionId: ElectionId;
|
|
15
|
+
/**
|
|
16
|
+
* The index of the entry to prove.
|
|
17
|
+
*/
|
|
18
|
+
leafIndex: number;
|
|
19
|
+
/**
|
|
20
|
+
* The size of the tree to prove it in — the size of a head the reader holds. Greater than `leafIndex`, at most the current size.
|
|
21
|
+
*/
|
|
22
|
+
treeSize: number;
|
|
23
|
+
/**
|
|
24
|
+
* The `receiptToken` of the voting/ballot/cast receipt for the cast at `leafIndex`. Authorizes this read on a private board; ignored on a public one.
|
|
25
|
+
*/
|
|
26
|
+
receiptToken?: Multibase;
|
|
27
|
+
ext?: Ext;
|
|
28
|
+
}
|
|
29
|
+
export interface VotingBoardInclusionResponsePayload {
|
|
30
|
+
leafIndex: number;
|
|
31
|
+
treeSize: number;
|
|
32
|
+
/**
|
|
33
|
+
* The RFC 9162 leaf hash of the entry at `leafIndex`.
|
|
34
|
+
*/
|
|
35
|
+
entryHash: DigestMultibase;
|
|
36
|
+
/**
|
|
37
|
+
* The RFC 9162 §2.1.3 inclusion proof of `leafIndex` in the tree of `treeSize` entries.
|
|
38
|
+
*/
|
|
39
|
+
path: MerklePath;
|
|
40
|
+
ext?: Ext;
|
|
41
|
+
}
|
|
42
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
43
|
+
export type { DigestMultibase, ElectionId, Ext, MerklePath, Multibase };
|
|
44
|
+
/** Trust Task type URI. */
|
|
45
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/voting/board/inclusion/0.1";
|
|
46
|
+
/** Stable alias for this specification's request payload shape. */
|
|
47
|
+
export type Payload = VotingBoardInclusionPayload;
|
|
48
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
49
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/voting/board/inclusion/0.1#response";
|
|
50
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
51
|
+
export type Response = VotingBoardInclusionResponsePayload;
|
|
52
|
+
/**
|
|
53
|
+
* This specification's payload schema, as a value.
|
|
54
|
+
*
|
|
55
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
56
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
57
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
58
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
59
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
60
|
+
*/
|
|
61
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
62
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
63
|
+
readonly $id: "https://trusttasks.org/spec/voting/board/inclusion/0.1";
|
|
64
|
+
readonly title: "Voting — Board Inclusion — payload";
|
|
65
|
+
readonly description: "Asks for an RFC 9162 inclusion proof that one board entry is in the tree of a given size.";
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
readonly additionalProperties: false;
|
|
68
|
+
readonly required: readonly ["community", "electionId", "leafIndex", "treeSize"];
|
|
69
|
+
readonly properties: {
|
|
70
|
+
readonly community: {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly minLength: 1;
|
|
73
|
+
readonly maxLength: 2048;
|
|
74
|
+
readonly description: "The community's DID.";
|
|
75
|
+
};
|
|
76
|
+
readonly electionId: {
|
|
77
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
78
|
+
};
|
|
79
|
+
readonly leafIndex: {
|
|
80
|
+
readonly type: "integer";
|
|
81
|
+
readonly minimum: 0;
|
|
82
|
+
readonly description: "The index of the entry to prove.";
|
|
83
|
+
};
|
|
84
|
+
readonly treeSize: {
|
|
85
|
+
readonly type: "integer";
|
|
86
|
+
readonly minimum: 1;
|
|
87
|
+
readonly description: "The size of the tree to prove it in — the size of a head the reader holds. Greater than `leafIndex`, at most the current size.";
|
|
88
|
+
};
|
|
89
|
+
readonly receiptToken: {
|
|
90
|
+
readonly $ref: "#/$defs/Multibase";
|
|
91
|
+
readonly description: "The `receiptToken` of the voting/ballot/cast receipt for the cast at `leafIndex`. Authorizes this read on a private board; ignored on a public one.";
|
|
92
|
+
};
|
|
93
|
+
readonly ext: {
|
|
94
|
+
readonly $ref: "#/$defs/Ext";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
readonly $defs: {
|
|
98
|
+
readonly Response: {
|
|
99
|
+
readonly $anchor: "response";
|
|
100
|
+
readonly title: "Voting — Board Inclusion — response payload";
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly additionalProperties: false;
|
|
103
|
+
readonly required: readonly ["leafIndex", "treeSize", "entryHash", "path"];
|
|
104
|
+
readonly properties: {
|
|
105
|
+
readonly leafIndex: {
|
|
106
|
+
readonly type: "integer";
|
|
107
|
+
readonly minimum: 0;
|
|
108
|
+
};
|
|
109
|
+
readonly treeSize: {
|
|
110
|
+
readonly type: "integer";
|
|
111
|
+
readonly minimum: 1;
|
|
112
|
+
};
|
|
113
|
+
readonly entryHash: {
|
|
114
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
115
|
+
readonly description: "The RFC 9162 leaf hash of the entry at `leafIndex`.";
|
|
116
|
+
};
|
|
117
|
+
readonly path: {
|
|
118
|
+
readonly $ref: "#/$defs/MerklePath";
|
|
119
|
+
readonly description: "The RFC 9162 §2.1.3 inclusion proof of `leafIndex` in the tree of `treeSize` entries.";
|
|
120
|
+
};
|
|
121
|
+
readonly ext: {
|
|
122
|
+
readonly $ref: "#/$defs/Ext";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
readonly Ext: {
|
|
127
|
+
readonly title: "Ext";
|
|
128
|
+
readonly 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.";
|
|
129
|
+
readonly type: "object";
|
|
130
|
+
readonly minProperties: 1;
|
|
131
|
+
readonly additionalProperties: true;
|
|
132
|
+
readonly propertyNames: {
|
|
133
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
readonly MerklePath: {
|
|
137
|
+
readonly title: "MerklePath";
|
|
138
|
+
readonly description: "An RFC 9162 audit or consistency path: the node hashes, in the order §2.1.3 / §2.1.4 define.";
|
|
139
|
+
readonly type: "array";
|
|
140
|
+
readonly maxItems: 64;
|
|
141
|
+
readonly items: {
|
|
142
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly DigestMultibase: {
|
|
146
|
+
readonly title: "DigestMultibase";
|
|
147
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly minLength: 16;
|
|
150
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
151
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
152
|
+
};
|
|
153
|
+
readonly Multibase: {
|
|
154
|
+
readonly title: "Multibase";
|
|
155
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly maxLength: 16384;
|
|
158
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
159
|
+
};
|
|
160
|
+
readonly ElectionId: {
|
|
161
|
+
readonly title: "ElectionId";
|
|
162
|
+
readonly 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.";
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
169
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
170
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
171
|
+
readonly $ref: "#/$defs/Response";
|
|
172
|
+
readonly $defs: {
|
|
173
|
+
readonly Response: {
|
|
174
|
+
readonly $anchor: "response";
|
|
175
|
+
readonly title: "Voting — Board Inclusion — response payload";
|
|
176
|
+
readonly type: "object";
|
|
177
|
+
readonly additionalProperties: false;
|
|
178
|
+
readonly required: readonly ["leafIndex", "treeSize", "entryHash", "path"];
|
|
179
|
+
readonly properties: {
|
|
180
|
+
readonly leafIndex: {
|
|
181
|
+
readonly type: "integer";
|
|
182
|
+
readonly minimum: 0;
|
|
183
|
+
};
|
|
184
|
+
readonly treeSize: {
|
|
185
|
+
readonly type: "integer";
|
|
186
|
+
readonly minimum: 1;
|
|
187
|
+
};
|
|
188
|
+
readonly entryHash: {
|
|
189
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
190
|
+
readonly description: "The RFC 9162 leaf hash of the entry at `leafIndex`.";
|
|
191
|
+
};
|
|
192
|
+
readonly path: {
|
|
193
|
+
readonly $ref: "#/$defs/MerklePath";
|
|
194
|
+
readonly description: "The RFC 9162 §2.1.3 inclusion proof of `leafIndex` in the tree of `treeSize` entries.";
|
|
195
|
+
};
|
|
196
|
+
readonly ext: {
|
|
197
|
+
readonly $ref: "#/$defs/Ext";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly Ext: {
|
|
202
|
+
readonly title: "Ext";
|
|
203
|
+
readonly 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.";
|
|
204
|
+
readonly type: "object";
|
|
205
|
+
readonly minProperties: 1;
|
|
206
|
+
readonly additionalProperties: true;
|
|
207
|
+
readonly propertyNames: {
|
|
208
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly MerklePath: {
|
|
212
|
+
readonly title: "MerklePath";
|
|
213
|
+
readonly description: "An RFC 9162 audit or consistency path: the node hashes, in the order §2.1.3 / §2.1.4 define.";
|
|
214
|
+
readonly type: "array";
|
|
215
|
+
readonly maxItems: 64;
|
|
216
|
+
readonly items: {
|
|
217
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
readonly DigestMultibase: {
|
|
221
|
+
readonly title: "DigestMultibase";
|
|
222
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly minLength: 16;
|
|
225
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
226
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
227
|
+
};
|
|
228
|
+
readonly Multibase: {
|
|
229
|
+
readonly title: "Multibase";
|
|
230
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly maxLength: 16384;
|
|
233
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
234
|
+
};
|
|
235
|
+
readonly ElectionId: {
|
|
236
|
+
readonly title: "ElectionId";
|
|
237
|
+
readonly 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.";
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
245
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
246
|
+
* per-specification and cannot be derived from the document alone, and
|
|
247
|
+
* item 2 needs the schema this carries.
|
|
248
|
+
*/
|
|
249
|
+
export declare const SPEC: {
|
|
250
|
+
readonly typeUri: "https://trusttasks.org/spec/voting/board/inclusion/0.1";
|
|
251
|
+
readonly isBearer: false;
|
|
252
|
+
readonly isProofRequired: false;
|
|
253
|
+
readonly isRecipientRequired: true;
|
|
254
|
+
readonly isIssuedAtRequired: false;
|
|
255
|
+
readonly payloadSchema: {
|
|
256
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
257
|
+
readonly $id: "https://trusttasks.org/spec/voting/board/inclusion/0.1";
|
|
258
|
+
readonly title: "Voting — Board Inclusion — payload";
|
|
259
|
+
readonly description: "Asks for an RFC 9162 inclusion proof that one board entry is in the tree of a given size.";
|
|
260
|
+
readonly type: "object";
|
|
261
|
+
readonly additionalProperties: false;
|
|
262
|
+
readonly required: readonly ["community", "electionId", "leafIndex", "treeSize"];
|
|
263
|
+
readonly properties: {
|
|
264
|
+
readonly community: {
|
|
265
|
+
readonly type: "string";
|
|
266
|
+
readonly minLength: 1;
|
|
267
|
+
readonly maxLength: 2048;
|
|
268
|
+
readonly description: "The community's DID.";
|
|
269
|
+
};
|
|
270
|
+
readonly electionId: {
|
|
271
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
272
|
+
};
|
|
273
|
+
readonly leafIndex: {
|
|
274
|
+
readonly type: "integer";
|
|
275
|
+
readonly minimum: 0;
|
|
276
|
+
readonly description: "The index of the entry to prove.";
|
|
277
|
+
};
|
|
278
|
+
readonly treeSize: {
|
|
279
|
+
readonly type: "integer";
|
|
280
|
+
readonly minimum: 1;
|
|
281
|
+
readonly description: "The size of the tree to prove it in — the size of a head the reader holds. Greater than `leafIndex`, at most the current size.";
|
|
282
|
+
};
|
|
283
|
+
readonly receiptToken: {
|
|
284
|
+
readonly $ref: "#/$defs/Multibase";
|
|
285
|
+
readonly description: "The `receiptToken` of the voting/ballot/cast receipt for the cast at `leafIndex`. Authorizes this read on a private board; ignored on a public one.";
|
|
286
|
+
};
|
|
287
|
+
readonly ext: {
|
|
288
|
+
readonly $ref: "#/$defs/Ext";
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
readonly $defs: {
|
|
292
|
+
readonly Response: {
|
|
293
|
+
readonly $anchor: "response";
|
|
294
|
+
readonly title: "Voting — Board Inclusion — response payload";
|
|
295
|
+
readonly type: "object";
|
|
296
|
+
readonly additionalProperties: false;
|
|
297
|
+
readonly required: readonly ["leafIndex", "treeSize", "entryHash", "path"];
|
|
298
|
+
readonly properties: {
|
|
299
|
+
readonly leafIndex: {
|
|
300
|
+
readonly type: "integer";
|
|
301
|
+
readonly minimum: 0;
|
|
302
|
+
};
|
|
303
|
+
readonly treeSize: {
|
|
304
|
+
readonly type: "integer";
|
|
305
|
+
readonly minimum: 1;
|
|
306
|
+
};
|
|
307
|
+
readonly entryHash: {
|
|
308
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
309
|
+
readonly description: "The RFC 9162 leaf hash of the entry at `leafIndex`.";
|
|
310
|
+
};
|
|
311
|
+
readonly path: {
|
|
312
|
+
readonly $ref: "#/$defs/MerklePath";
|
|
313
|
+
readonly description: "The RFC 9162 §2.1.3 inclusion proof of `leafIndex` in the tree of `treeSize` entries.";
|
|
314
|
+
};
|
|
315
|
+
readonly ext: {
|
|
316
|
+
readonly $ref: "#/$defs/Ext";
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
readonly Ext: {
|
|
321
|
+
readonly title: "Ext";
|
|
322
|
+
readonly 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.";
|
|
323
|
+
readonly type: "object";
|
|
324
|
+
readonly minProperties: 1;
|
|
325
|
+
readonly additionalProperties: true;
|
|
326
|
+
readonly propertyNames: {
|
|
327
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
readonly MerklePath: {
|
|
331
|
+
readonly title: "MerklePath";
|
|
332
|
+
readonly description: "An RFC 9162 audit or consistency path: the node hashes, in the order §2.1.3 / §2.1.4 define.";
|
|
333
|
+
readonly type: "array";
|
|
334
|
+
readonly maxItems: 64;
|
|
335
|
+
readonly items: {
|
|
336
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
readonly DigestMultibase: {
|
|
340
|
+
readonly title: "DigestMultibase";
|
|
341
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly minLength: 16;
|
|
344
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
345
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
346
|
+
};
|
|
347
|
+
readonly Multibase: {
|
|
348
|
+
readonly title: "Multibase";
|
|
349
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly maxLength: 16384;
|
|
352
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
353
|
+
};
|
|
354
|
+
readonly ElectionId: {
|
|
355
|
+
readonly title: "ElectionId";
|
|
356
|
+
readonly 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.";
|
|
357
|
+
readonly type: "string";
|
|
358
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
365
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
366
|
+
* parties (§7.3 item 5).
|
|
367
|
+
*/
|
|
368
|
+
export declare const RESPONSE_SPEC: {
|
|
369
|
+
readonly typeUri: "https://trusttasks.org/spec/voting/board/inclusion/0.1#response";
|
|
370
|
+
readonly isBearer: false;
|
|
371
|
+
readonly isProofRequired: false;
|
|
372
|
+
readonly isRecipientRequired: false;
|
|
373
|
+
readonly isIssuedAtRequired: false;
|
|
374
|
+
readonly payloadSchema: {
|
|
375
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
376
|
+
readonly $ref: "#/$defs/Response";
|
|
377
|
+
readonly $defs: {
|
|
378
|
+
readonly Response: {
|
|
379
|
+
readonly $anchor: "response";
|
|
380
|
+
readonly title: "Voting — Board Inclusion — response payload";
|
|
381
|
+
readonly type: "object";
|
|
382
|
+
readonly additionalProperties: false;
|
|
383
|
+
readonly required: readonly ["leafIndex", "treeSize", "entryHash", "path"];
|
|
384
|
+
readonly properties: {
|
|
385
|
+
readonly leafIndex: {
|
|
386
|
+
readonly type: "integer";
|
|
387
|
+
readonly minimum: 0;
|
|
388
|
+
};
|
|
389
|
+
readonly treeSize: {
|
|
390
|
+
readonly type: "integer";
|
|
391
|
+
readonly minimum: 1;
|
|
392
|
+
};
|
|
393
|
+
readonly entryHash: {
|
|
394
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
395
|
+
readonly description: "The RFC 9162 leaf hash of the entry at `leafIndex`.";
|
|
396
|
+
};
|
|
397
|
+
readonly path: {
|
|
398
|
+
readonly $ref: "#/$defs/MerklePath";
|
|
399
|
+
readonly description: "The RFC 9162 §2.1.3 inclusion proof of `leafIndex` in the tree of `treeSize` entries.";
|
|
400
|
+
};
|
|
401
|
+
readonly ext: {
|
|
402
|
+
readonly $ref: "#/$defs/Ext";
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
readonly Ext: {
|
|
407
|
+
readonly title: "Ext";
|
|
408
|
+
readonly 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.";
|
|
409
|
+
readonly type: "object";
|
|
410
|
+
readonly minProperties: 1;
|
|
411
|
+
readonly additionalProperties: true;
|
|
412
|
+
readonly propertyNames: {
|
|
413
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
readonly MerklePath: {
|
|
417
|
+
readonly title: "MerklePath";
|
|
418
|
+
readonly description: "An RFC 9162 audit or consistency path: the node hashes, in the order §2.1.3 / §2.1.4 define.";
|
|
419
|
+
readonly type: "array";
|
|
420
|
+
readonly maxItems: 64;
|
|
421
|
+
readonly items: {
|
|
422
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
readonly DigestMultibase: {
|
|
426
|
+
readonly title: "DigestMultibase";
|
|
427
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
428
|
+
readonly type: "string";
|
|
429
|
+
readonly minLength: 16;
|
|
430
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
431
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
432
|
+
};
|
|
433
|
+
readonly Multibase: {
|
|
434
|
+
readonly title: "Multibase";
|
|
435
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
|
|
436
|
+
readonly type: "string";
|
|
437
|
+
readonly maxLength: 16384;
|
|
438
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
439
|
+
};
|
|
440
|
+
readonly ElectionId: {
|
|
441
|
+
readonly title: "ElectionId";
|
|
442
|
+
readonly 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.";
|
|
443
|
+
readonly type: "string";
|
|
444
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/voting/board/inclusion/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,oBAAoB,IAAI,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAGzI;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,mCAAmC;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,eAAe,CAAC;IAC3B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;AAExE,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAElD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC;AAE5G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,mCAAmC,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsHjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgF1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|