@openvtc/trust-tasks 0.27.0 → 0.27.2
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 +267 -0
- package/dist/_runtime/freshness.d.ts +3 -1
- package/dist/_runtime/freshness.d.ts.map +1 -1
- package/dist/_runtime/freshness.js +4 -2
- package/dist/_runtime/freshness.js.map +1 -1
- package/dist/_shared/components.d.ts +361 -24
- 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 +31 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/_shared/0.1/room.d.ts +1 -1
- package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
- package/dist/rooms/create/0.2/payload.d.ts +534 -0
- package/dist/rooms/create/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/create/0.2/payload.js +293 -0
- package/dist/rooms/create/0.2/payload.js.map +1 -0
- package/dist/rooms/epoch/chain/0.2/payload.d.ts +534 -0
- package/dist/rooms/epoch/chain/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/epoch/chain/0.2/payload.js +292 -0
- package/dist/rooms/epoch/chain/0.2/payload.js.map +1 -0
- package/dist/rooms/epoch/prune/0.2/payload.d.ts +467 -0
- package/dist/rooms/epoch/prune/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/epoch/prune/0.2/payload.js +251 -0
- package/dist/rooms/epoch/prune/0.2/payload.js.map +1 -0
- package/dist/rooms/info/0.2/payload.d.ts +1129 -0
- package/dist/rooms/info/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/info/0.2/payload.js +618 -0
- package/dist/rooms/info/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/backfill/0.2/payload.d.ts +380 -0
- package/dist/rooms/keys/backfill/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/backfill/0.2/payload.js +197 -0
- package/dist/rooms/keys/backfill/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/browse/0.1/payload.d.ts +4 -4
- package/dist/rooms/keys/browse/0.1/payload.js +2 -2
- package/dist/rooms/keys/browse/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/browse/0.2/payload.d.ts +941 -0
- package/dist/rooms/keys/browse/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/browse/0.2/payload.js +558 -0
- package/dist/rooms/keys/browse/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/chain/0.2/payload.d.ts +450 -0
- package/dist/rooms/keys/chain/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/chain/0.2/payload.js +248 -0
- package/dist/rooms/keys/chain/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/profile/read/0.1/payload.d.ts +4 -4
- package/dist/rooms/keys/profile/read/0.1/payload.js +2 -2
- package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/read/0.1/payload.d.ts +4 -4
- package/dist/rooms/keys/read/0.1/payload.js +2 -2
- package/dist/rooms/keys/read/0.1/payload.js.map +1 -1
- package/dist/rooms/owner/anchor/0.1/payload.d.ts +4 -4
- package/dist/rooms/owner/anchor/0.1/payload.js +2 -2
- package/dist/rooms/owner/anchor/0.1/payload.js.map +1 -1
- package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/get/0.1/payload.js +2 -2
- package/dist/rooms/records/get/0.1/payload.js.map +1 -1
- package/dist/rooms/records/get/0.2/payload.d.ts +4 -4
- package/dist/rooms/records/get/0.2/payload.js +2 -2
- package/dist/rooms/records/get/0.2/payload.js.map +1 -1
- package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.1/payload.js +2 -2
- package/dist/rooms/records/list/0.1/payload.js.map +1 -1
- package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.2/payload.js +2 -2
- package/dist/rooms/records/list/0.2/payload.js.map +1 -1
- package/dist/rooms/records/list/0.3/payload.d.ts +970 -0
- package/dist/rooms/records/list/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/records/list/0.3/payload.js +526 -0
- package/dist/rooms/records/list/0.3/payload.js.map +1 -0
- package/dist/rooms/records/prune/0.1/payload.d.ts +706 -0
- package/dist/rooms/records/prune/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/records/prune/0.1/payload.js +374 -0
- package/dist/rooms/records/prune/0.1/payload.js.map +1 -0
- package/dist/rooms/records/put/0.3/payload.d.ts +1212 -0
- package/dist/rooms/records/put/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/records/put/0.3/payload.js +646 -0
- package/dist/rooms/records/put/0.3/payload.js.map +1 -0
- package/dist/rooms/records/retention/set/0.1/payload.d.ts +521 -0
- package/dist/rooms/records/retention/set/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/records/retention/set/0.1/payload.js +276 -0
- package/dist/rooms/records/retention/set/0.1/payload.js.map +1 -0
- package/dist/vault/credentials/present/0.1/payload.d.ts +407 -0
- package/dist/vault/credentials/present/0.1/payload.d.ts.map +1 -0
- package/dist/vault/credentials/present/0.1/payload.js +217 -0
- package/dist/vault/credentials/present/0.1/payload.js.map +1 -0
- 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/board/read/0.1/payload.d.ts +58 -2
- package/dist/voting/board/read/0.1/payload.d.ts.map +1 -1
- package/dist/voting/board/read/0.1/payload.js +36 -0
- package/dist/voting/board/read/0.1/payload.js.map +1 -1
- package/dist/voting/trustees/authorize/0.1/payload.d.ts +617 -0
- package/dist/voting/trustees/authorize/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/authorize/0.1/payload.js +386 -0
- package/dist/voting/trustees/authorize/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/status/0.1/payload.d.ts +106 -2
- package/dist/voting/trustees/status/0.1/payload.d.ts.map +1 -1
- package/dist/voting/trustees/status/0.1/payload.js +48 -0
- package/dist/voting/trustees/status/0.1/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts +1832 -0
- package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/deal/0.2/payload.js +1077 -0
- package/dist/vta/pcs/trustee/deal/0.2/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/decrypt/0.2/payload.d.ts +758 -0
- package/dist/vta/pcs/trustee/decrypt/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/decrypt/0.2/payload.js +423 -0
- package/dist/vta/pcs/trustee/decrypt/0.2/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts +1867 -0
- package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.2/payload.js +1095 -0
- package/dist/vta/pcs/trustee/justify/0.2/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts +1912 -0
- package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.2/payload.js +1115 -0
- package/dist/vta/pcs/trustee/keys/0.2/payload.js.map +1 -0
- package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts +2228 -0
- package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote-encrypted/0.2/payload.js +1300 -0
- package/dist/vta/pcs/vote-encrypted/0.2/payload.js.map +1 -0
- package/dist/vta/webvh/dids/create/1.2/payload.d.ts +961 -0
- package/dist/vta/webvh/dids/create/1.2/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/create/1.2/payload.js +480 -0
- package/dist/vta/webvh/dids/create/1.2/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/room-migration.d.ts +16 -0
- package/dist/vtc/_shared/0.1/room-migration.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/room-migration.js +6 -0
- package/dist/vtc/_shared/0.1/room-migration.js.map +1 -0
- package/dist/vtc/_shared/0.1/room-storage.d.ts +1 -1
- package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -1
- package/dist/vtc/_shared/0.2/room-storage.d.ts +16 -0
- package/dist/vtc/_shared/0.2/room-storage.d.ts.map +1 -0
- package/dist/vtc/_shared/0.2/room-storage.js +6 -0
- package/dist/vtc/_shared/0.2/room-storage.js.map +1 -0
- package/dist/vtc/admin/events/_shared/0.4/topic.d.ts +31 -0
- package/dist/vtc/admin/events/_shared/0.4/topic.d.ts.map +1 -0
- package/dist/vtc/admin/events/_shared/0.4/topic.js +6 -0
- package/dist/vtc/admin/events/_shared/0.4/topic.js.map +1 -0
- package/dist/vtc/admin/events/event/0.4/payload.d.ts +172 -0
- package/dist/vtc/admin/events/event/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/event/0.4/payload.js +103 -0
- package/dist/vtc/admin/events/event/0.4/payload.js.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.4/payload.d.ts +409 -0
- package/dist/vtc/admin/events/subscribe/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.4/payload.js +238 -0
- package/dist/vtc/admin/events/subscribe/0.4/payload.js.map +1 -0
- package/dist/vtc/elections/show/0.1/payload.d.ts +86 -2
- package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/elections/show/0.1/payload.js +40 -0
- package/dist/vtc/elections/show/0.1/payload.js.map +1 -1
- package/dist/vtc/rooms/get/0.2/payload.d.ts +1966 -0
- package/dist/vtc/rooms/get/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/get/0.2/payload.js +976 -0
- package/dist/vtc/rooms/get/0.2/payload.js.map +1 -0
- package/dist/vtc/rooms/storage/migrate/0.2/payload.d.ts +595 -0
- package/dist/vtc/rooms/storage/migrate/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/storage/migrate/0.2/payload.js +336 -0
- package/dist/vtc/rooms/storage/migrate/0.2/payload.js.map +1 -0
- package/dist/vtc/storage/configs/create/0.1/payload.d.ts +1 -1
- package/dist/vtc/storage/configs/create/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/storage/configs/create/0.2/payload.d.ts +1360 -0
- package/dist/vtc/storage/configs/create/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/create/0.2/payload.js +783 -0
- package/dist/vtc/storage/configs/create/0.2/payload.js.map +1 -0
- package/dist/vtc/storage/configs/get/0.1/payload.d.ts +1 -1
- package/dist/vtc/storage/configs/get/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/storage/configs/get/0.2/payload.d.ts +1854 -0
- package/dist/vtc/storage/configs/get/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/get/0.2/payload.js +1075 -0
- package/dist/vtc/storage/configs/get/0.2/payload.js.map +1 -0
- package/dist/vtc/storage/configs/list/0.1/payload.d.ts +1 -1
- package/dist/vtc/storage/configs/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/storage/configs/list/0.2/payload.d.ts +1955 -0
- package/dist/vtc/storage/configs/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/list/0.2/payload.js +1125 -0
- package/dist/vtc/storage/configs/list/0.2/payload.js.map +1 -0
- package/dist/vtc/storage/configs/update/0.1/payload.d.ts +1 -1
- package/dist/vtc/storage/configs/update/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/storage/configs/update/0.2/payload.d.ts +1362 -0
- package/dist/vtc/storage/configs/update/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/update/0.2/payload.js +782 -0
- package/dist/vtc/storage/configs/update/0.2/payload.js.map +1 -0
- package/dist/vtc/storage/credentials/set/0.1/payload.d.ts +1 -1
- package/dist/vtc/storage/credentials/set/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/storage/credentials/set/0.2/payload.d.ts +979 -0
- package/dist/vtc/storage/credentials/set/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/storage/credentials/set/0.2/payload.js +573 -0
- package/dist/vtc/storage/credentials/set/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_runtime/freshness.ts +4 -2
- package/src/_shared/components.ts +388 -24
- 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 +31 -0
- package/src/rooms/_shared/0.1/room.ts +1 -1
- package/src/rooms/create/0.2/payload.ts +364 -0
- package/src/rooms/epoch/chain/0.2/payload.ts +347 -0
- package/src/rooms/epoch/prune/0.2/payload.ts +315 -0
- package/src/rooms/info/0.2/payload.ts +700 -0
- package/src/rooms/keys/backfill/0.2/payload.ts +260 -0
- package/src/rooms/keys/browse/0.1/payload.ts +2 -2
- package/src/rooms/keys/browse/0.2/payload.ts +628 -0
- package/src/rooms/keys/chain/0.2/payload.ts +308 -0
- package/src/rooms/keys/profile/read/0.1/payload.ts +2 -2
- package/src/rooms/keys/read/0.1/payload.ts +2 -2
- package/src/rooms/owner/anchor/0.1/payload.ts +2 -2
- package/src/rooms/records/get/0.1/payload.ts +2 -2
- package/src/rooms/records/get/0.2/payload.ts +2 -2
- package/src/rooms/records/list/0.1/payload.ts +2 -2
- package/src/rooms/records/list/0.2/payload.ts +2 -2
- package/src/rooms/records/list/0.3/payload.ts +601 -0
- package/src/rooms/records/prune/0.1/payload.ts +451 -0
- package/src/rooms/records/put/0.3/payload.ts +741 -0
- package/src/rooms/records/retention/set/0.1/payload.ts +338 -0
- package/src/vault/credentials/present/0.1/payload.ts +283 -0
- package/src/voting/_shared/0.1/voting.ts +1 -1
- package/src/voting/board/read/0.1/payload.ts +38 -2
- package/src/voting/trustees/authorize/0.1/payload.ts +434 -0
- package/src/voting/trustees/status/0.1/payload.ts +58 -2
- package/src/vta/pcs/trustee/deal/0.2/payload.ts +1148 -0
- package/src/vta/pcs/trustee/decrypt/0.2/payload.ts +500 -0
- package/src/vta/pcs/trustee/justify/0.2/payload.ts +1167 -0
- package/src/vta/pcs/trustee/keys/0.2/payload.ts +1194 -0
- package/src/vta/pcs/vote-encrypted/0.2/payload.ts +1369 -0
- package/src/vta/webvh/dids/create/1.2/payload.ts +660 -0
- package/src/vtc/_shared/0.1/room-migration.ts +17 -0
- package/src/vtc/_shared/0.1/room-storage.ts +1 -1
- package/src/vtc/_shared/0.2/room-storage.ts +17 -0
- package/src/vtc/admin/events/_shared/0.4/topic.ts +32 -0
- package/src/vtc/admin/events/event/0.4/payload.ts +137 -0
- package/src/vtc/admin/events/subscribe/0.4/payload.ts +318 -0
- package/src/vtc/elections/show/0.1/payload.ts +46 -2
- package/src/vtc/rooms/get/0.2/payload.ts +1372 -0
- package/src/vtc/rooms/storage/migrate/0.2/payload.ts +408 -0
- package/src/vtc/storage/configs/create/0.1/payload.ts +1 -1
- package/src/vtc/storage/configs/create/0.2/payload.ts +830 -0
- package/src/vtc/storage/configs/get/0.1/payload.ts +1 -1
- package/src/vtc/storage/configs/get/0.2/payload.ts +1110 -0
- package/src/vtc/storage/configs/list/0.1/payload.ts +1 -1
- package/src/vtc/storage/configs/list/0.2/payload.ts +1177 -0
- package/src/vtc/storage/configs/update/0.1/payload.ts +1 -1
- package/src/vtc/storage/configs/update/0.2/payload.ts +829 -0
- package/src/vtc/storage/credentials/set/0.1/payload.ts +1 -1
- package/src/vtc/storage/credentials/set/0.2/payload.ts +619 -0
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/voting/trustees/authorize/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/voting/trustees/authorize/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/voting/trustees/authorize/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/voting/trustees/authorize/0.1",
|
|
21
|
+
"title": "Voting — Trustees — Authorize — payload",
|
|
22
|
+
"description": "After voting closes, the community authorizes the decryption of exactly the targets it computed from the board: a digest of them, and the head they were computed under.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"community",
|
|
27
|
+
"electionId",
|
|
28
|
+
"manifestDigest",
|
|
29
|
+
"head",
|
|
30
|
+
"closedAt",
|
|
31
|
+
"targetCount",
|
|
32
|
+
"targetsDigest"
|
|
33
|
+
],
|
|
34
|
+
"properties": {
|
|
35
|
+
"community": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"minLength": 1,
|
|
38
|
+
"maxLength": 2048,
|
|
39
|
+
"description": "The community's DID: the registrar that registered the election."
|
|
40
|
+
},
|
|
41
|
+
"electionId": {
|
|
42
|
+
"$ref": "#/$defs/ElectionId"
|
|
43
|
+
},
|
|
44
|
+
"manifestDigest": {
|
|
45
|
+
"$ref": "#/$defs/DigestMultibase"
|
|
46
|
+
},
|
|
47
|
+
"head": {
|
|
48
|
+
"$ref": "#/$defs/BoardHead",
|
|
49
|
+
"description": "The head the targets were computed under: the board through its `closed` or `closedEarly` entry."
|
|
50
|
+
},
|
|
51
|
+
"closedAt": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": "date-time",
|
|
54
|
+
"description": "The `at` of the board's `closed` or `closedEarly` entry."
|
|
55
|
+
},
|
|
56
|
+
"targetCount": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"minimum": 0,
|
|
59
|
+
"maximum": 100000
|
|
60
|
+
},
|
|
61
|
+
"targetsDigest": {
|
|
62
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
63
|
+
"description": "SHA-256 over the JCS of the array of DecryptionTarget the community computed, in the order of CONVENTIONS §9.7, as a multihash."
|
|
64
|
+
},
|
|
65
|
+
"ext": {
|
|
66
|
+
"$ref": "#/$defs/Ext"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"$defs": {
|
|
70
|
+
"Response": {
|
|
71
|
+
"$anchor": "response",
|
|
72
|
+
"title": "Voting — Trustees — Authorize — response payload",
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"required": [
|
|
76
|
+
"election",
|
|
77
|
+
"phase"
|
|
78
|
+
],
|
|
79
|
+
"properties": {
|
|
80
|
+
"election": {
|
|
81
|
+
"$ref": "#/$defs/ElectionSummary"
|
|
82
|
+
},
|
|
83
|
+
"phase": {
|
|
84
|
+
"$ref": "#/$defs/TrusteePhase"
|
|
85
|
+
},
|
|
86
|
+
"ext": {
|
|
87
|
+
"$ref": "#/$defs/Ext"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"Ext": {
|
|
92
|
+
"title": "Ext",
|
|
93
|
+
"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.",
|
|
94
|
+
"type": "object",
|
|
95
|
+
"minProperties": 1,
|
|
96
|
+
"additionalProperties": true,
|
|
97
|
+
"propertyNames": {
|
|
98
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"TrusteePhase": {
|
|
102
|
+
"title": "TrusteePhase",
|
|
103
|
+
"description": "`enrolling`: transport keys are being published. `dealing`: dealings are. `confirming`: each trustee confirms or complains. `keyed`: the election key is formed. `decrypting`: voting has closed and partial decryptions are being published. `done`: every target is decrypted. `failed`: the key could not be formed in time.",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": [
|
|
106
|
+
"enrolling",
|
|
107
|
+
"dealing",
|
|
108
|
+
"confirming",
|
|
109
|
+
"keyed",
|
|
110
|
+
"decrypting",
|
|
111
|
+
"done",
|
|
112
|
+
"failed"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"ElectionSummary": {
|
|
116
|
+
"title": "ElectionSummary",
|
|
117
|
+
"description": "A ballot box's view of one election.",
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": [
|
|
121
|
+
"electionId",
|
|
122
|
+
"community",
|
|
123
|
+
"manifestDigest",
|
|
124
|
+
"state",
|
|
125
|
+
"ballotsAdmitted",
|
|
126
|
+
"head"
|
|
127
|
+
],
|
|
128
|
+
"properties": {
|
|
129
|
+
"electionId": {
|
|
130
|
+
"$ref": "#/$defs/ElectionId"
|
|
131
|
+
},
|
|
132
|
+
"community": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 1,
|
|
135
|
+
"maxLength": 2048
|
|
136
|
+
},
|
|
137
|
+
"manifestDigest": {
|
|
138
|
+
"$ref": "#/$defs/DigestMultibase"
|
|
139
|
+
},
|
|
140
|
+
"state": {
|
|
141
|
+
"$ref": "#/$defs/ElectionState"
|
|
142
|
+
},
|
|
143
|
+
"ballotsAdmitted": {
|
|
144
|
+
"type": "integer",
|
|
145
|
+
"minimum": 0,
|
|
146
|
+
"description": "Distinct tags with a counted ballot."
|
|
147
|
+
},
|
|
148
|
+
"head": {
|
|
149
|
+
"$ref": "#/$defs/BoardHead"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"BoardHead": {
|
|
154
|
+
"title": "BoardHead",
|
|
155
|
+
"description": "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.",
|
|
156
|
+
"type": "object",
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"required": [
|
|
159
|
+
"electionId",
|
|
160
|
+
"treeSize",
|
|
161
|
+
"rootHash",
|
|
162
|
+
"issuedAt"
|
|
163
|
+
],
|
|
164
|
+
"properties": {
|
|
165
|
+
"electionId": {
|
|
166
|
+
"$ref": "#/$defs/ElectionId"
|
|
167
|
+
},
|
|
168
|
+
"treeSize": {
|
|
169
|
+
"type": "integer",
|
|
170
|
+
"minimum": 0
|
|
171
|
+
},
|
|
172
|
+
"rootHash": {
|
|
173
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
174
|
+
"description": "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash."
|
|
175
|
+
},
|
|
176
|
+
"issuedAt": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"format": "date-time"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"ElectionId": {
|
|
183
|
+
"title": "ElectionId",
|
|
184
|
+
"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.",
|
|
185
|
+
"type": "string",
|
|
186
|
+
"pattern": "^[A-Za-z0-9._-]{1,128}$"
|
|
187
|
+
},
|
|
188
|
+
"DigestMultibase": {
|
|
189
|
+
"title": "DigestMultibase",
|
|
190
|
+
"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`.",
|
|
191
|
+
"type": "string",
|
|
192
|
+
"minLength": 16,
|
|
193
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
194
|
+
"examples": [
|
|
195
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"ElectionState": {
|
|
199
|
+
"title": "ElectionState",
|
|
200
|
+
"type": "string",
|
|
201
|
+
"enum": [
|
|
202
|
+
"registered",
|
|
203
|
+
"registration",
|
|
204
|
+
"voting",
|
|
205
|
+
"closed",
|
|
206
|
+
"tallied",
|
|
207
|
+
"cancelled"
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
213
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
214
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
215
|
+
"$ref": "#/$defs/Response",
|
|
216
|
+
"$defs": {
|
|
217
|
+
"Response": {
|
|
218
|
+
"$anchor": "response",
|
|
219
|
+
"title": "Voting — Trustees — Authorize — response payload",
|
|
220
|
+
"type": "object",
|
|
221
|
+
"additionalProperties": false,
|
|
222
|
+
"required": [
|
|
223
|
+
"election",
|
|
224
|
+
"phase"
|
|
225
|
+
],
|
|
226
|
+
"properties": {
|
|
227
|
+
"election": {
|
|
228
|
+
"$ref": "#/$defs/ElectionSummary"
|
|
229
|
+
},
|
|
230
|
+
"phase": {
|
|
231
|
+
"$ref": "#/$defs/TrusteePhase"
|
|
232
|
+
},
|
|
233
|
+
"ext": {
|
|
234
|
+
"$ref": "#/$defs/Ext"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"Ext": {
|
|
239
|
+
"title": "Ext",
|
|
240
|
+
"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.",
|
|
241
|
+
"type": "object",
|
|
242
|
+
"minProperties": 1,
|
|
243
|
+
"additionalProperties": true,
|
|
244
|
+
"propertyNames": {
|
|
245
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"TrusteePhase": {
|
|
249
|
+
"title": "TrusteePhase",
|
|
250
|
+
"description": "`enrolling`: transport keys are being published. `dealing`: dealings are. `confirming`: each trustee confirms or complains. `keyed`: the election key is formed. `decrypting`: voting has closed and partial decryptions are being published. `done`: every target is decrypted. `failed`: the key could not be formed in time.",
|
|
251
|
+
"type": "string",
|
|
252
|
+
"enum": [
|
|
253
|
+
"enrolling",
|
|
254
|
+
"dealing",
|
|
255
|
+
"confirming",
|
|
256
|
+
"keyed",
|
|
257
|
+
"decrypting",
|
|
258
|
+
"done",
|
|
259
|
+
"failed"
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
"ElectionSummary": {
|
|
263
|
+
"title": "ElectionSummary",
|
|
264
|
+
"description": "A ballot box's view of one election.",
|
|
265
|
+
"type": "object",
|
|
266
|
+
"additionalProperties": false,
|
|
267
|
+
"required": [
|
|
268
|
+
"electionId",
|
|
269
|
+
"community",
|
|
270
|
+
"manifestDigest",
|
|
271
|
+
"state",
|
|
272
|
+
"ballotsAdmitted",
|
|
273
|
+
"head"
|
|
274
|
+
],
|
|
275
|
+
"properties": {
|
|
276
|
+
"electionId": {
|
|
277
|
+
"$ref": "#/$defs/ElectionId"
|
|
278
|
+
},
|
|
279
|
+
"community": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"minLength": 1,
|
|
282
|
+
"maxLength": 2048
|
|
283
|
+
},
|
|
284
|
+
"manifestDigest": {
|
|
285
|
+
"$ref": "#/$defs/DigestMultibase"
|
|
286
|
+
},
|
|
287
|
+
"state": {
|
|
288
|
+
"$ref": "#/$defs/ElectionState"
|
|
289
|
+
},
|
|
290
|
+
"ballotsAdmitted": {
|
|
291
|
+
"type": "integer",
|
|
292
|
+
"minimum": 0,
|
|
293
|
+
"description": "Distinct tags with a counted ballot."
|
|
294
|
+
},
|
|
295
|
+
"head": {
|
|
296
|
+
"$ref": "#/$defs/BoardHead"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"BoardHead": {
|
|
301
|
+
"title": "BoardHead",
|
|
302
|
+
"description": "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.",
|
|
303
|
+
"type": "object",
|
|
304
|
+
"additionalProperties": false,
|
|
305
|
+
"required": [
|
|
306
|
+
"electionId",
|
|
307
|
+
"treeSize",
|
|
308
|
+
"rootHash",
|
|
309
|
+
"issuedAt"
|
|
310
|
+
],
|
|
311
|
+
"properties": {
|
|
312
|
+
"electionId": {
|
|
313
|
+
"$ref": "#/$defs/ElectionId"
|
|
314
|
+
},
|
|
315
|
+
"treeSize": {
|
|
316
|
+
"type": "integer",
|
|
317
|
+
"minimum": 0
|
|
318
|
+
},
|
|
319
|
+
"rootHash": {
|
|
320
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
321
|
+
"description": "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash."
|
|
322
|
+
},
|
|
323
|
+
"issuedAt": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"format": "date-time"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"ElectionId": {
|
|
330
|
+
"title": "ElectionId",
|
|
331
|
+
"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.",
|
|
332
|
+
"type": "string",
|
|
333
|
+
"pattern": "^[A-Za-z0-9._-]{1,128}$"
|
|
334
|
+
},
|
|
335
|
+
"DigestMultibase": {
|
|
336
|
+
"title": "DigestMultibase",
|
|
337
|
+
"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`.",
|
|
338
|
+
"type": "string",
|
|
339
|
+
"minLength": 16,
|
|
340
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
341
|
+
"examples": [
|
|
342
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
"ElectionState": {
|
|
346
|
+
"title": "ElectionState",
|
|
347
|
+
"type": "string",
|
|
348
|
+
"enum": [
|
|
349
|
+
"registered",
|
|
350
|
+
"registration",
|
|
351
|
+
"voting",
|
|
352
|
+
"closed",
|
|
353
|
+
"tallied",
|
|
354
|
+
"cancelled"
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
361
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
362
|
+
* per-specification and cannot be derived from the document alone, and
|
|
363
|
+
* item 2 needs the schema this carries.
|
|
364
|
+
*/
|
|
365
|
+
export const SPEC = {
|
|
366
|
+
typeUri: TYPE_URI,
|
|
367
|
+
isBearer: false,
|
|
368
|
+
isProofRequired: true,
|
|
369
|
+
isRecipientRequired: true,
|
|
370
|
+
isIssuedAtRequired: true,
|
|
371
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
375
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
376
|
+
* parties (§7.3 item 5).
|
|
377
|
+
*/
|
|
378
|
+
export const RESPONSE_SPEC = {
|
|
379
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
380
|
+
isBearer: false,
|
|
381
|
+
isProofRequired: true,
|
|
382
|
+
isRecipientRequired: true,
|
|
383
|
+
isIssuedAtRequired: true,
|
|
384
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
385
|
+
};
|
|
386
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/voting/trustees/authorize/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2DAAoE,CAAC;AAK7F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oEAA6E,CAAC;AAK/G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,2DAA2D;IAClE,OAAO,EAAE,yCAAyC;IAClD,aAAa,EAAE,0KAA0K;IACzL,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;QACX,YAAY;QACZ,gBAAgB;QAChB,MAAM;QACN,UAAU;QACV,aAAa;QACb,eAAe;KAChB;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,IAAI;YACjB,aAAa,EAAE,kEAAkE;SAClF;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,oBAAoB;SAC7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;oBAChB,QAAQ,EAAE,WAAW;iBACtB;aACF;SACF;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,YAAY;YACrB,aAAa,EAAE,uLAAuL;YACtM,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,yBAAyB;SACrC;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,iBAAiB;YAC1B,aAAa,EAAE,gnDAAgnD;YAC/nD,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,4CAA4C;YACvD,UAAU,EAAE;gBACV,iDAAiD;aAClD;SACF;QACD,eAAe,EAAE;YACf,OAAO,EAAE,eAAe;YACxB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,YAAY;gBACZ,cAAc;gBACd,QAAQ;gBACR,QAAQ;gBACR,SAAS;gBACT,WAAW;aACZ;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
3
|
* Source: specs/voting/trustees/status/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
|
-
import type { Dealing, DecryptionTarget, ElectionId, ElectionKey, ElGamalCiphertext, Ext, GroupElement, GroupScalar, SealedPayload, SealedShare, SigmaProof, TransportKey, TrusteeIndex, TrusteePhase } from "../../../../_shared/components.js";
|
|
5
|
+
import type { Dealing, DecryptionTarget, ElectionId, ElectionKey, ElGamalCiphertext, Ext, GroupElement, GroupScalar, SealedPayload, SealedShare, SigmaProof, SignedRequest, TransportKey, TrusteeCeremony, TrusteeIndex, TrusteePhase } from "../../../../_shared/components.js";
|
|
6
6
|
/**
|
|
7
7
|
* Where an election's trustee ceremony stands: transport keys, dealings, complaints, the election key, and what remains to decrypt.
|
|
8
8
|
*/
|
|
@@ -52,9 +52,17 @@ export interface VotingTrusteesStatusResponsePayload {
|
|
|
52
52
|
*/
|
|
53
53
|
decrypted: TrusteeIndex[];
|
|
54
54
|
ext?: Ext;
|
|
55
|
+
/**
|
|
56
|
+
* Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof.
|
|
57
|
+
*/
|
|
58
|
+
steps?: TrusteeCeremony;
|
|
59
|
+
/**
|
|
60
|
+
* Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins.
|
|
61
|
+
*/
|
|
62
|
+
authorization?: SignedRequest;
|
|
55
63
|
}
|
|
56
64
|
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
57
|
-
export type { Dealing, DecryptionTarget, ElectionId, ElectionKey, ElGamalCiphertext, Ext, GroupElement, GroupScalar, SealedPayload, SealedShare, SigmaProof, TransportKey, TrusteeIndex, TrusteePhase };
|
|
65
|
+
export type { Dealing, DecryptionTarget, ElectionId, ElectionKey, ElGamalCiphertext, Ext, GroupElement, GroupScalar, SealedPayload, SealedShare, SigmaProof, SignedRequest, TransportKey, TrusteeCeremony, TrusteeIndex, TrusteePhase };
|
|
58
66
|
/** Trust Task type URI. */
|
|
59
67
|
export declare const TYPE_URI: "https://trusttasks.org/spec/voting/trustees/status/0.1";
|
|
60
68
|
/** Stable alias for this specification's request payload shape. */
|
|
@@ -176,6 +184,30 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
176
184
|
readonly ext: {
|
|
177
185
|
readonly $ref: "#/$defs/Ext";
|
|
178
186
|
};
|
|
187
|
+
readonly steps: {
|
|
188
|
+
readonly $ref: "#/$defs/TrusteeCeremony";
|
|
189
|
+
readonly description: "Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof.";
|
|
190
|
+
};
|
|
191
|
+
readonly authorization: {
|
|
192
|
+
readonly $ref: "#/$defs/SignedRequest";
|
|
193
|
+
readonly description: "Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins.";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
readonly SignedRequest: {
|
|
198
|
+
readonly title: "SignedRequest";
|
|
199
|
+
readonly description: "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.";
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
readonly minProperties: 1;
|
|
202
|
+
};
|
|
203
|
+
readonly TrusteeCeremony: {
|
|
204
|
+
readonly title: "TrusteeCeremony";
|
|
205
|
+
readonly description: "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.";
|
|
206
|
+
readonly type: "array";
|
|
207
|
+
readonly minItems: 1;
|
|
208
|
+
readonly maxItems: 4224;
|
|
209
|
+
readonly items: {
|
|
210
|
+
readonly $ref: "#/$defs/SignedRequest";
|
|
179
211
|
};
|
|
180
212
|
};
|
|
181
213
|
readonly Ext: {
|
|
@@ -495,6 +527,30 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
495
527
|
readonly ext: {
|
|
496
528
|
readonly $ref: "#/$defs/Ext";
|
|
497
529
|
};
|
|
530
|
+
readonly steps: {
|
|
531
|
+
readonly $ref: "#/$defs/TrusteeCeremony";
|
|
532
|
+
readonly description: "Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof.";
|
|
533
|
+
};
|
|
534
|
+
readonly authorization: {
|
|
535
|
+
readonly $ref: "#/$defs/SignedRequest";
|
|
536
|
+
readonly description: "Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins.";
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
readonly SignedRequest: {
|
|
541
|
+
readonly title: "SignedRequest";
|
|
542
|
+
readonly description: "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.";
|
|
543
|
+
readonly type: "object";
|
|
544
|
+
readonly minProperties: 1;
|
|
545
|
+
};
|
|
546
|
+
readonly TrusteeCeremony: {
|
|
547
|
+
readonly title: "TrusteeCeremony";
|
|
548
|
+
readonly description: "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.";
|
|
549
|
+
readonly type: "array";
|
|
550
|
+
readonly minItems: 1;
|
|
551
|
+
readonly maxItems: 4224;
|
|
552
|
+
readonly items: {
|
|
553
|
+
readonly $ref: "#/$defs/SignedRequest";
|
|
498
554
|
};
|
|
499
555
|
};
|
|
500
556
|
readonly Ext: {
|
|
@@ -844,6 +900,30 @@ export declare const SPEC: {
|
|
|
844
900
|
readonly ext: {
|
|
845
901
|
readonly $ref: "#/$defs/Ext";
|
|
846
902
|
};
|
|
903
|
+
readonly steps: {
|
|
904
|
+
readonly $ref: "#/$defs/TrusteeCeremony";
|
|
905
|
+
readonly description: "Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof.";
|
|
906
|
+
};
|
|
907
|
+
readonly authorization: {
|
|
908
|
+
readonly $ref: "#/$defs/SignedRequest";
|
|
909
|
+
readonly description: "Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins.";
|
|
910
|
+
};
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
readonly SignedRequest: {
|
|
914
|
+
readonly title: "SignedRequest";
|
|
915
|
+
readonly description: "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.";
|
|
916
|
+
readonly type: "object";
|
|
917
|
+
readonly minProperties: 1;
|
|
918
|
+
};
|
|
919
|
+
readonly TrusteeCeremony: {
|
|
920
|
+
readonly title: "TrusteeCeremony";
|
|
921
|
+
readonly description: "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.";
|
|
922
|
+
readonly type: "array";
|
|
923
|
+
readonly minItems: 1;
|
|
924
|
+
readonly maxItems: 4224;
|
|
925
|
+
readonly items: {
|
|
926
|
+
readonly $ref: "#/$defs/SignedRequest";
|
|
847
927
|
};
|
|
848
928
|
};
|
|
849
929
|
readonly Ext: {
|
|
@@ -1174,6 +1254,30 @@ export declare const RESPONSE_SPEC: {
|
|
|
1174
1254
|
readonly ext: {
|
|
1175
1255
|
readonly $ref: "#/$defs/Ext";
|
|
1176
1256
|
};
|
|
1257
|
+
readonly steps: {
|
|
1258
|
+
readonly $ref: "#/$defs/TrusteeCeremony";
|
|
1259
|
+
readonly description: "Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof.";
|
|
1260
|
+
};
|
|
1261
|
+
readonly authorization: {
|
|
1262
|
+
readonly $ref: "#/$defs/SignedRequest";
|
|
1263
|
+
readonly description: "Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins.";
|
|
1264
|
+
};
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
readonly SignedRequest: {
|
|
1268
|
+
readonly title: "SignedRequest";
|
|
1269
|
+
readonly description: "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.";
|
|
1270
|
+
readonly type: "object";
|
|
1271
|
+
readonly minProperties: 1;
|
|
1272
|
+
};
|
|
1273
|
+
readonly TrusteeCeremony: {
|
|
1274
|
+
readonly title: "TrusteeCeremony";
|
|
1275
|
+
readonly description: "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.";
|
|
1276
|
+
readonly type: "array";
|
|
1277
|
+
readonly minItems: 1;
|
|
1278
|
+
readonly maxItems: 4224;
|
|
1279
|
+
readonly items: {
|
|
1280
|
+
readonly $ref: "#/$defs/SignedRequest";
|
|
1177
1281
|
};
|
|
1178
1282
|
};
|
|
1179
1283
|
readonly Ext: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/voting/trustees/status/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,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
|
},
|
|
135
135
|
"ext": {
|
|
136
136
|
"$ref": "#/$defs/Ext"
|
|
137
|
+
},
|
|
138
|
+
"steps": {
|
|
139
|
+
"$ref": "#/$defs/TrusteeCeremony",
|
|
140
|
+
"description": "Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof."
|
|
141
|
+
},
|
|
142
|
+
"authorization": {
|
|
143
|
+
"$ref": "#/$defs/SignedRequest",
|
|
144
|
+
"description": "Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins."
|
|
137
145
|
}
|
|
138
146
|
}
|
|
139
147
|
},
|
|
148
|
+
"SignedRequest": {
|
|
149
|
+
"title": "SignedRequest",
|
|
150
|
+
"description": "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.",
|
|
151
|
+
"type": "object",
|
|
152
|
+
"minProperties": 1
|
|
153
|
+
},
|
|
154
|
+
"TrusteeCeremony": {
|
|
155
|
+
"title": "TrusteeCeremony",
|
|
156
|
+
"description": "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.",
|
|
157
|
+
"type": "array",
|
|
158
|
+
"minItems": 1,
|
|
159
|
+
"maxItems": 4224,
|
|
160
|
+
"items": {
|
|
161
|
+
"$ref": "#/$defs/SignedRequest"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
140
164
|
"Ext": {
|
|
141
165
|
"title": "Ext",
|
|
142
166
|
"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.",
|
|
@@ -512,9 +536,33 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
512
536
|
},
|
|
513
537
|
"ext": {
|
|
514
538
|
"$ref": "#/$defs/Ext"
|
|
539
|
+
},
|
|
540
|
+
"steps": {
|
|
541
|
+
"$ref": "#/$defs/TrusteeCeremony",
|
|
542
|
+
"description": "Every trusteeStep request on the board, in board order, as received. What a trustee's VTA acts on: the other members of this answer carry no trustee's proof."
|
|
543
|
+
},
|
|
544
|
+
"authorization": {
|
|
545
|
+
"$ref": "#/$defs/SignedRequest",
|
|
546
|
+
"description": "Once the community has authorized decryption: its voting/trustees/authorize request, as received. A trustee's VTA decrypts only the targets it pins."
|
|
515
547
|
}
|
|
516
548
|
}
|
|
517
549
|
},
|
|
550
|
+
"SignedRequest": {
|
|
551
|
+
"title": "SignedRequest",
|
|
552
|
+
"description": "A whole Trust Task request document — `id`, `type`, `issuer`, `payload` and every other member, `proof` included — exactly as the ballot box received it, never re-serialised: its proof is taken over its members, and a re-serialised copy does not reliably reproduce them. Typed as an open object so every member survives; CONVENTIONS §9.6 gives the checks that make it a trustee's step.",
|
|
553
|
+
"type": "object",
|
|
554
|
+
"minProperties": 1
|
|
555
|
+
},
|
|
556
|
+
"TrusteeCeremony": {
|
|
557
|
+
"title": "TrusteeCeremony",
|
|
558
|
+
"description": "The trustees' ceremony as the board holds it: the `request` of every `trusteeStep` entry, in board order, each exactly as the ballot box received it (CONVENTIONS §9.6). Whoever acts on it verifies each step as its trustee's before taking it; nothing in it is believed for having been passed along.",
|
|
559
|
+
"type": "array",
|
|
560
|
+
"minItems": 1,
|
|
561
|
+
"maxItems": 4224,
|
|
562
|
+
"items": {
|
|
563
|
+
"$ref": "#/$defs/SignedRequest"
|
|
564
|
+
}
|
|
565
|
+
},
|
|
518
566
|
"Ext": {
|
|
519
567
|
"title": "Ext",
|
|
520
568
|
"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.",
|