@openvtc/trust-tasks 0.26.29 → 0.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/_shared/components.d.ts +15 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +6 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +6 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/persona/contact/get/1.1/payload.d.ts +12 -5
  9. package/dist/persona/contact/get/1.1/payload.d.ts.map +1 -1
  10. package/dist/persona/contact/get/1.1/payload.js +4 -4
  11. package/dist/persona/contact/get/1.1/payload.js.map +1 -1
  12. package/dist/persona/contact/list/1.1/payload.d.ts +12 -5
  13. package/dist/persona/contact/list/1.1/payload.d.ts.map +1 -1
  14. package/dist/persona/contact/list/1.1/payload.js +4 -4
  15. package/dist/persona/contact/list/1.1/payload.js.map +1 -1
  16. package/dist/persona/contact/put/1.1/payload.d.ts +32 -6
  17. package/dist/persona/contact/put/1.1/payload.d.ts.map +1 -1
  18. package/dist/persona/contact/put/1.1/payload.js +32 -2
  19. package/dist/persona/contact/put/1.1/payload.js.map +1 -1
  20. package/dist/voting/_shared/0.1/voting.d.ts +1 -1
  21. package/dist/voting/_shared/0.1/voting.d.ts.map +1 -1
  22. package/dist/voting/board/read/0.1/payload.d.ts +58 -2
  23. package/dist/voting/board/read/0.1/payload.d.ts.map +1 -1
  24. package/dist/voting/board/read/0.1/payload.js +36 -0
  25. package/dist/voting/board/read/0.1/payload.js.map +1 -1
  26. package/dist/voting/trustees/authorize/0.1/payload.d.ts +617 -0
  27. package/dist/voting/trustees/authorize/0.1/payload.d.ts.map +1 -0
  28. package/dist/voting/trustees/authorize/0.1/payload.js +386 -0
  29. package/dist/voting/trustees/authorize/0.1/payload.js.map +1 -0
  30. package/dist/voting/trustees/status/0.1/payload.d.ts +106 -2
  31. package/dist/voting/trustees/status/0.1/payload.d.ts.map +1 -1
  32. package/dist/voting/trustees/status/0.1/payload.js +48 -0
  33. package/dist/voting/trustees/status/0.1/payload.js.map +1 -1
  34. package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts +1832 -0
  35. package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts.map +1 -0
  36. package/dist/vta/pcs/trustee/deal/0.2/payload.js +1077 -0
  37. package/dist/vta/pcs/trustee/deal/0.2/payload.js.map +1 -0
  38. package/dist/vta/pcs/trustee/decrypt/0.2/payload.d.ts +758 -0
  39. package/dist/vta/pcs/trustee/decrypt/0.2/payload.d.ts.map +1 -0
  40. package/dist/vta/pcs/trustee/decrypt/0.2/payload.js +423 -0
  41. package/dist/vta/pcs/trustee/decrypt/0.2/payload.js.map +1 -0
  42. package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts +1867 -0
  43. package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts.map +1 -0
  44. package/dist/vta/pcs/trustee/justify/0.2/payload.js +1095 -0
  45. package/dist/vta/pcs/trustee/justify/0.2/payload.js.map +1 -0
  46. package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts +1912 -0
  47. package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts.map +1 -0
  48. package/dist/vta/pcs/trustee/keys/0.2/payload.js +1115 -0
  49. package/dist/vta/pcs/trustee/keys/0.2/payload.js.map +1 -0
  50. package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts +2228 -0
  51. package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts.map +1 -0
  52. package/dist/vta/pcs/vote-encrypted/0.2/payload.js +1300 -0
  53. package/dist/vta/pcs/vote-encrypted/0.2/payload.js.map +1 -0
  54. package/dist/vtc/elections/show/0.1/payload.d.ts +86 -2
  55. package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -1
  56. package/dist/vtc/elections/show/0.1/payload.js +40 -0
  57. package/dist/vtc/elections/show/0.1/payload.js.map +1 -1
  58. package/package.json +1 -1
  59. package/src/_shared/components.ts +16 -1
  60. package/src/index.ts +6 -0
  61. package/src/persona/contact/get/1.1/payload.ts +8 -5
  62. package/src/persona/contact/list/1.1/payload.ts +8 -5
  63. package/src/persona/contact/put/1.1/payload.ts +34 -4
  64. package/src/voting/_shared/0.1/voting.ts +1 -1
  65. package/src/voting/board/read/0.1/payload.ts +38 -2
  66. package/src/voting/trustees/authorize/0.1/payload.ts +434 -0
  67. package/src/voting/trustees/status/0.1/payload.ts +58 -2
  68. package/src/vta/pcs/trustee/deal/0.2/payload.ts +1148 -0
  69. package/src/vta/pcs/trustee/decrypt/0.2/payload.ts +500 -0
  70. package/src/vta/pcs/trustee/justify/0.2/payload.ts +1167 -0
  71. package/src/vta/pcs/trustee/keys/0.2/payload.ts +1194 -0
  72. package/src/vta/pcs/vote-encrypted/0.2/payload.ts +1369 -0
  73. package/src/vtc/elections/show/0.1/payload.ts +46 -2
@@ -3,7 +3,7 @@
3
3
  * Source: specs/vtc/elections/show/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { BoardHead, BoardVisibility, ChoiceQuestion, DigestMultibase, Disclosure, ElectionId, ElectionKey, ElectionResult, Ext, GroupElement, Key_VotingV0_1 as Key, Manifest, Multibase_VotingV0_1 as Multibase, Question, QuestionOption, QuestionResult, RankingQuestion, Revote, RollRule, ScoreQuestion, SecrecyLevel, TextQuestion, TrusteeIndex, Trustees, VotingParameters } from "../../../../_shared/components.js";
6
+ import type { BoardHead, BoardVisibility, ChoiceQuestion, DigestMultibase, Disclosure, ElectionId, ElectionKey, ElectionResult, Ext, GroupElement, Key_VotingV0_1 as Key, Manifest, Multibase_VotingV0_1 as Multibase, Question, QuestionOption, QuestionResult, RankingQuestion, Revote, RollRule, ScoreQuestion, SecrecyLevel, SignedRequest, TextQuestion, TrusteeCeremony, TrusteeIndex, Trustees, VotingParameters } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -60,6 +60,10 @@ export interface VTCElectionsShowResponsePayload {
60
60
  electionKey?: ElectionKey;
61
61
  certified?: Certification;
62
62
  ext?: Ext;
63
+ /**
64
+ * With electionKey: the trustees' signed steps it forms from, through the board's electionKey entry, each exactly as received. A voter's VTA forms the key itself from these (vta/pcs/vote-encrypted/0.2).
65
+ */
66
+ ceremony?: TrusteeCeremony;
63
67
  }
64
68
  /**
65
69
  * A board head the community read from the ballot box and kept, with the ballot box's signed document that carried it. Certification proves the board's final head consistent with every checkpoint, so a ballot box that rewrote its board after a checkpoint is caught.
@@ -84,7 +88,7 @@ export interface Certification {
84
88
  }
85
89
 
86
90
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
87
- export type { BoardHead, BoardVisibility, ChoiceQuestion, DigestMultibase, Disclosure, ElectionId, ElectionKey, ElectionResult, Ext, GroupElement, Key, Manifest, Multibase, Question, QuestionOption, QuestionResult, RankingQuestion, Revote, RollRule, ScoreQuestion, SecrecyLevel, TextQuestion, TrusteeIndex, Trustees, VotingParameters };
91
+ export type { BoardHead, BoardVisibility, ChoiceQuestion, DigestMultibase, Disclosure, ElectionId, ElectionKey, ElectionResult, Ext, GroupElement, Key, Manifest, Multibase, Question, QuestionOption, QuestionResult, RankingQuestion, Revote, RollRule, ScoreQuestion, SecrecyLevel, SignedRequest, TextQuestion, TrusteeCeremony, TrusteeIndex, Trustees, VotingParameters };
88
92
 
89
93
  /** Trust Task type URI. */
90
94
  export const TYPE_URI = "https://trusttasks.org/spec/vtc/elections/show/0.1" as const;
@@ -245,9 +249,29 @@ export const PAYLOAD_SCHEMA = {
245
249
  },
246
250
  "ext": {
247
251
  "$ref": "#/$defs/Ext"
252
+ },
253
+ "ceremony": {
254
+ "$ref": "#/$defs/TrusteeCeremony",
255
+ "description": "With electionKey: the trustees' signed steps it forms from, through the board's electionKey entry, each exactly as received. A voter's VTA forms the key itself from these (vta/pcs/vote-encrypted/0.2)."
248
256
  }
249
257
  }
250
258
  },
259
+ "TrusteeCeremony": {
260
+ "title": "TrusteeCeremony",
261
+ "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.",
262
+ "type": "array",
263
+ "minItems": 1,
264
+ "maxItems": 4224,
265
+ "items": {
266
+ "$ref": "#/$defs/SignedRequest"
267
+ }
268
+ },
269
+ "SignedRequest": {
270
+ "title": "SignedRequest",
271
+ "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.",
272
+ "type": "object",
273
+ "minProperties": 1
274
+ },
251
275
  "Ext": {
252
276
  "title": "Ext",
253
277
  "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.",
@@ -1072,9 +1096,29 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
1072
1096
  },
1073
1097
  "ext": {
1074
1098
  "$ref": "#/$defs/Ext"
1099
+ },
1100
+ "ceremony": {
1101
+ "$ref": "#/$defs/TrusteeCeremony",
1102
+ "description": "With electionKey: the trustees' signed steps it forms from, through the board's electionKey entry, each exactly as received. A voter's VTA forms the key itself from these (vta/pcs/vote-encrypted/0.2)."
1075
1103
  }
1076
1104
  }
1077
1105
  },
1106
+ "TrusteeCeremony": {
1107
+ "title": "TrusteeCeremony",
1108
+ "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.",
1109
+ "type": "array",
1110
+ "minItems": 1,
1111
+ "maxItems": 4224,
1112
+ "items": {
1113
+ "$ref": "#/$defs/SignedRequest"
1114
+ }
1115
+ },
1116
+ "SignedRequest": {
1117
+ "title": "SignedRequest",
1118
+ "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.",
1119
+ "type": "object",
1120
+ "minProperties": 1
1121
+ },
1078
1122
  "Ext": {
1079
1123
  "title": "Ext",
1080
1124
  "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.",