@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.
Files changed (219) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/dist/_shared/components.d.ts +328 -17
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/device/list/0.2/payload.d.ts +4 -4
  5. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  6. package/dist/device/list/0.2/payload.js +4 -2
  7. package/dist/device/list/0.2/payload.js.map +1 -1
  8. package/dist/device/register/0.2/payload.d.ts +4 -4
  9. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  10. package/dist/device/register/0.2/payload.js +4 -2
  11. package/dist/device/register/0.2/payload.js.map +1 -1
  12. package/dist/index.d.ts +24 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +24 -0
  15. package/dist/index.js.map +1 -1
  16. package/dist/voting/_shared/0.1/voting.d.ts +16 -0
  17. package/dist/voting/_shared/0.1/voting.d.ts.map +1 -0
  18. package/dist/voting/_shared/0.1/voting.js +6 -0
  19. package/dist/voting/_shared/0.1/voting.js.map +1 -0
  20. package/dist/voting/ballot/cast/0.1/payload.d.ts +887 -0
  21. package/dist/voting/ballot/cast/0.1/payload.d.ts.map +1 -0
  22. package/dist/voting/ballot/cast/0.1/payload.js +506 -0
  23. package/dist/voting/ballot/cast/0.1/payload.js.map +1 -0
  24. package/dist/voting/board/consistency/0.1/payload.d.ts +389 -0
  25. package/dist/voting/board/consistency/0.1/payload.d.ts.map +1 -0
  26. package/dist/voting/board/consistency/0.1/payload.js +218 -0
  27. package/dist/voting/board/consistency/0.1/payload.js.map +1 -0
  28. package/dist/voting/board/head/0.1/payload.d.ts +380 -0
  29. package/dist/voting/board/head/0.1/payload.d.ts.map +1 -0
  30. package/dist/voting/board/head/0.1/payload.js +224 -0
  31. package/dist/voting/board/head/0.1/payload.js.map +1 -0
  32. package/dist/voting/board/inclusion/0.1/payload.d.ts +449 -0
  33. package/dist/voting/board/inclusion/0.1/payload.d.ts.map +1 -0
  34. package/dist/voting/board/inclusion/0.1/payload.js +246 -0
  35. package/dist/voting/board/inclusion/0.1/payload.js.map +1 -0
  36. package/dist/voting/board/read/0.1/payload.d.ts +1596 -0
  37. package/dist/voting/board/read/0.1/payload.d.ts.map +1 -0
  38. package/dist/voting/board/read/0.1/payload.js +920 -0
  39. package/dist/voting/board/read/0.1/payload.js.map +1 -0
  40. package/dist/voting/election/cancel/0.1/payload.d.ts +540 -0
  41. package/dist/voting/election/cancel/0.1/payload.d.ts.map +1 -0
  42. package/dist/voting/election/cancel/0.1/payload.js +331 -0
  43. package/dist/voting/election/cancel/0.1/payload.js.map +1 -0
  44. package/dist/voting/election/close/0.1/payload.d.ts +540 -0
  45. package/dist/voting/election/close/0.1/payload.d.ts.map +1 -0
  46. package/dist/voting/election/close/0.1/payload.js +330 -0
  47. package/dist/voting/election/close/0.1/payload.js.map +1 -0
  48. package/dist/voting/election/register/0.1/payload.d.ts +1920 -0
  49. package/dist/voting/election/register/0.1/payload.d.ts.map +1 -0
  50. package/dist/voting/election/register/0.1/payload.js +1166 -0
  51. package/dist/voting/election/register/0.1/payload.js.map +1 -0
  52. package/dist/voting/election/show/0.1/payload.d.ts +1824 -0
  53. package/dist/voting/election/show/0.1/payload.d.ts.map +1 -0
  54. package/dist/voting/election/show/0.1/payload.js +1112 -0
  55. package/dist/voting/election/show/0.1/payload.js.map +1 -0
  56. package/dist/voting/result/show/0.1/payload.d.ts +849 -0
  57. package/dist/voting/result/show/0.1/payload.d.ts.map +1 -0
  58. package/dist/voting/result/show/0.1/payload.js +498 -0
  59. package/dist/voting/result/show/0.1/payload.js.map +1 -0
  60. package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
  61. package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
  62. package/dist/vta/_shared/0.4/pcs-engine.d.ts +1 -1
  63. package/dist/vta/_shared/0.4/pcs-engine.d.ts.map +1 -1
  64. package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
  65. package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
  66. package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
  67. package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
  68. package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
  69. package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
  70. package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
  71. package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
  72. package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
  73. package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
  74. package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
  75. package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
  76. package/dist/vta/pcs/applications/create/0.1/payload.d.ts +1 -1
  77. package/dist/vta/pcs/applications/create/0.1/payload.d.ts.map +1 -1
  78. package/dist/vta/pcs/applications/show/0.1/payload.d.ts +1 -1
  79. package/dist/vta/pcs/applications/show/0.1/payload.d.ts.map +1 -1
  80. package/dist/vta/pcs/attest/0.1/payload.d.ts +1 -1
  81. package/dist/vta/pcs/attest/0.1/payload.d.ts.map +1 -1
  82. package/dist/vta/pcs/prove/0.1/payload.d.ts +1 -1
  83. package/dist/vta/pcs/prove/0.1/payload.d.ts.map +1 -1
  84. package/dist/vta/pcs/root-accept/0.1/payload.d.ts +1 -1
  85. package/dist/vta/pcs/root-accept/0.1/payload.d.ts.map +1 -1
  86. package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts +1 -1
  87. package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts.map +1 -1
  88. package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts +1 -1
  89. package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts.map +1 -1
  90. package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts +1 -1
  91. package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts.map +1 -1
  92. package/dist/vta/pcs/vetter/show/0.1/payload.d.ts +1 -1
  93. package/dist/vta/pcs/vetter/show/0.1/payload.d.ts.map +1 -1
  94. package/dist/vta/pcs/vote/0.1/payload.d.ts +2208 -0
  95. package/dist/vta/pcs/vote/0.1/payload.d.ts.map +1 -0
  96. package/dist/vta/pcs/vote/0.1/payload.js +1282 -0
  97. package/dist/vta/pcs/vote/0.1/payload.js.map +1 -0
  98. package/dist/vta/pcs/voter/accept/0.1/payload.d.ts +450 -0
  99. package/dist/vta/pcs/voter/accept/0.1/payload.d.ts.map +1 -0
  100. package/dist/vta/pcs/voter/accept/0.1/payload.js +247 -0
  101. package/dist/vta/pcs/voter/accept/0.1/payload.js.map +1 -0
  102. package/dist/vta/pcs/voter/receipt/0.1/payload.d.ts +531 -0
  103. package/dist/vta/pcs/voter/receipt/0.1/payload.d.ts.map +1 -0
  104. package/dist/vta/pcs/voter/receipt/0.1/payload.js +301 -0
  105. package/dist/vta/pcs/voter/receipt/0.1/payload.js.map +1 -0
  106. package/dist/vta/pcs/voter/register/0.1/payload.d.ts +1934 -0
  107. package/dist/vta/pcs/voter/register/0.1/payload.d.ts.map +1 -0
  108. package/dist/vta/pcs/voter/register/0.1/payload.js +1133 -0
  109. package/dist/vta/pcs/voter/register/0.1/payload.js.map +1 -0
  110. package/dist/vtc/directory/card/present/0.1/payload.d.ts +2 -2
  111. package/dist/vtc/directory/card/present/0.1/payload.js +1 -1
  112. package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -1
  113. package/dist/vtc/directory/card/public/0.1/payload.d.ts +4 -4
  114. package/dist/vtc/directory/card/public/0.1/payload.js +2 -2
  115. package/dist/vtc/directory/card/public/0.1/payload.js.map +1 -1
  116. package/dist/vtc/directory/card/publish/0.1/payload.d.ts +4 -4
  117. package/dist/vtc/directory/card/publish/0.1/payload.js +2 -2
  118. package/dist/vtc/directory/card/publish/0.1/payload.js.map +1 -1
  119. package/dist/vtc/elections/cancel/0.1/payload.d.ts +301 -0
  120. package/dist/vtc/elections/cancel/0.1/payload.d.ts.map +1 -0
  121. package/dist/vtc/elections/cancel/0.1/payload.js +183 -0
  122. package/dist/vtc/elections/cancel/0.1/payload.js.map +1 -0
  123. package/dist/vtc/elections/certify/0.1/payload.d.ts +914 -0
  124. package/dist/vtc/elections/certify/0.1/payload.d.ts.map +1 -0
  125. package/dist/vtc/elections/certify/0.1/payload.js +512 -0
  126. package/dist/vtc/elections/certify/0.1/payload.js.map +1 -0
  127. package/dist/vtc/elections/close/0.1/payload.d.ts +301 -0
  128. package/dist/vtc/elections/close/0.1/payload.d.ts.map +1 -0
  129. package/dist/vtc/elections/close/0.1/payload.js +182 -0
  130. package/dist/vtc/elections/close/0.1/payload.js.map +1 -0
  131. package/dist/vtc/elections/create/0.1/payload.d.ts +1656 -0
  132. package/dist/vtc/elections/create/0.1/payload.d.ts.map +1 -0
  133. package/dist/vtc/elections/create/0.1/payload.js +994 -0
  134. package/dist/vtc/elections/create/0.1/payload.js.map +1 -0
  135. package/dist/vtc/elections/list/0.1/payload.d.ts +521 -0
  136. package/dist/vtc/elections/list/0.1/payload.d.ts.map +1 -0
  137. package/dist/vtc/elections/list/0.1/payload.js +290 -0
  138. package/dist/vtc/elections/list/0.1/payload.js.map +1 -0
  139. package/dist/vtc/elections/show/0.1/payload.d.ts +2688 -0
  140. package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -0
  141. package/dist/vtc/elections/show/0.1/payload.js +1581 -0
  142. package/dist/vtc/elections/show/0.1/payload.js.map +1 -0
  143. package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts +597 -0
  144. package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts.map +1 -0
  145. package/dist/vtc/elections/tickets/issue/0.1/payload.js +318 -0
  146. package/dist/vtc/elections/tickets/issue/0.1/payload.js.map +1 -0
  147. package/dist/vtc/groups/create/0.1/payload.d.ts +4 -4
  148. package/dist/vtc/groups/create/0.1/payload.js +2 -2
  149. package/dist/vtc/groups/create/0.1/payload.js.map +1 -1
  150. package/dist/vtc/groups/list/0.1/payload.d.ts +4 -4
  151. package/dist/vtc/groups/list/0.1/payload.js +2 -2
  152. package/dist/vtc/groups/list/0.1/payload.js.map +1 -1
  153. package/dist/vtc/groups/managers/add/0.1/payload.d.ts +337 -0
  154. package/dist/vtc/groups/managers/add/0.1/payload.d.ts.map +1 -0
  155. package/dist/vtc/groups/managers/add/0.1/payload.js +184 -0
  156. package/dist/vtc/groups/managers/add/0.1/payload.js.map +1 -0
  157. package/dist/vtc/groups/managers/remove/0.1/payload.d.ts +337 -0
  158. package/dist/vtc/groups/managers/remove/0.1/payload.d.ts.map +1 -0
  159. package/dist/vtc/groups/managers/remove/0.1/payload.js +184 -0
  160. package/dist/vtc/groups/managers/remove/0.1/payload.js.map +1 -0
  161. package/dist/vtc/groups/show/0.1/payload.d.ts +4 -4
  162. package/dist/vtc/groups/show/0.1/payload.js +2 -2
  163. package/dist/vtc/groups/show/0.1/payload.js.map +1 -1
  164. package/dist/vtc/groups/update/0.1/payload.d.ts +4 -4
  165. package/dist/vtc/groups/update/0.1/payload.js +2 -2
  166. package/dist/vtc/groups/update/0.1/payload.js.map +1 -1
  167. package/package.json +1 -1
  168. package/src/_shared/components.ts +331 -17
  169. package/src/device/list/0.2/payload.ts +4 -2
  170. package/src/device/register/0.2/payload.ts +4 -2
  171. package/src/index.ts +24 -0
  172. package/src/voting/_shared/0.1/voting.ts +17 -0
  173. package/src/voting/ballot/cast/0.1/payload.ts +560 -0
  174. package/src/voting/board/consistency/0.1/payload.ts +264 -0
  175. package/src/voting/board/head/0.1/payload.ts +257 -0
  176. package/src/voting/board/inclusion/0.1/payload.ts +300 -0
  177. package/src/voting/board/read/0.1/payload.ts +981 -0
  178. package/src/voting/election/cancel/0.1/payload.ts +368 -0
  179. package/src/voting/election/close/0.1/payload.ts +367 -0
  180. package/src/voting/election/register/0.1/payload.ts +1207 -0
  181. package/src/voting/election/show/0.1/payload.ts +1149 -0
  182. package/src/voting/result/show/0.1/payload.ts +536 -0
  183. package/src/vta/_shared/0.1/app-state-record.ts +1 -1
  184. package/src/vta/_shared/0.4/pcs-engine.ts +1 -1
  185. package/src/vta/app-state/delete/1.0/payload.ts +1 -1
  186. package/src/vta/app-state/get/1.0/payload.ts +1 -1
  187. package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
  188. package/src/vta/app-state/list/1.0/payload.ts +1 -1
  189. package/src/vta/app-state/put/1.0/payload.ts +1 -1
  190. package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
  191. package/src/vta/pcs/applications/create/0.1/payload.ts +1 -1
  192. package/src/vta/pcs/applications/show/0.1/payload.ts +1 -1
  193. package/src/vta/pcs/attest/0.1/payload.ts +1 -1
  194. package/src/vta/pcs/prove/0.1/payload.ts +1 -1
  195. package/src/vta/pcs/root-accept/0.1/payload.ts +1 -1
  196. package/src/vta/pcs/tokens/abandon/0.1/payload.ts +1 -1
  197. package/src/vta/pcs/tokens/accept/0.1/payload.ts +1 -1
  198. package/src/vta/pcs/verify-attestation/0.1/payload.ts +1 -1
  199. package/src/vta/pcs/vetter/show/0.1/payload.ts +1 -1
  200. package/src/vta/pcs/vote/0.1/payload.ts +1365 -0
  201. package/src/vta/pcs/voter/accept/0.1/payload.ts +306 -0
  202. package/src/vta/pcs/voter/receipt/0.1/payload.ts +367 -0
  203. package/src/vta/pcs/voter/register/0.1/payload.ts +1211 -0
  204. package/src/vtc/directory/card/present/0.1/payload.ts +1 -1
  205. package/src/vtc/directory/card/public/0.1/payload.ts +2 -2
  206. package/src/vtc/directory/card/publish/0.1/payload.ts +2 -2
  207. package/src/vtc/elections/cancel/0.1/payload.ts +223 -0
  208. package/src/vtc/elections/certify/0.1/payload.ts +565 -0
  209. package/src/vtc/elections/close/0.1/payload.ts +222 -0
  210. package/src/vtc/elections/create/0.1/payload.ts +1041 -0
  211. package/src/vtc/elections/list/0.1/payload.ts +371 -0
  212. package/src/vtc/elections/show/0.1/payload.ts +1671 -0
  213. package/src/vtc/elections/tickets/issue/0.1/payload.ts +394 -0
  214. package/src/vtc/groups/create/0.1/payload.ts +2 -2
  215. package/src/vtc/groups/list/0.1/payload.ts +2 -2
  216. package/src/vtc/groups/managers/add/0.1/payload.ts +230 -0
  217. package/src/vtc/groups/managers/remove/0.1/payload.ts +230 -0
  218. package/src/vtc/groups/show/0.1/payload.ts +2 -2
  219. package/src/vtc/groups/update/0.1/payload.ts +2 -2
@@ -179,7 +179,7 @@ export const PAYLOAD_SCHEMA = {
179
179
  "anyOf": [
180
180
  {
181
181
  "type": "object",
182
- "description": "A W3C Verifiable Presentation with a Data Integrity proof whose `challenge` is this document's `id` and whose `domain` is the community's DID."
182
+ "description": "A W3C Verifiable Presentation whose `nonce` is this document's `id` and whose `domain` is the community's DID, both signed by its holder's Data Integrity proof."
183
183
  },
184
184
  {
185
185
  "type": "string",
@@ -127,7 +127,7 @@ export const PAYLOAD_SCHEMA = {
127
127
  },
128
128
  "PublishedCard": {
129
129
  "title": "PublishedCard",
130
- "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
130
+ "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid`, `issuer` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `issuer` is the member's membership DID; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
131
131
  "type": "object",
132
132
  "additionalProperties": true
133
133
  },
@@ -195,7 +195,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
195
195
  },
196
196
  "PublishedCard": {
197
197
  "title": "PublishedCard",
198
- "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
198
+ "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid`, `issuer` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `issuer` is the member's membership DID; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
199
199
  "type": "object",
200
200
  "additionalProperties": true
201
201
  },
@@ -144,7 +144,7 @@ export const PAYLOAD_SCHEMA = {
144
144
  },
145
145
  "PublishedCard": {
146
146
  "title": "PublishedCard",
147
- "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
147
+ "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid`, `issuer` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `issuer` is the member's membership DID; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
148
148
  "type": "object",
149
149
  "additionalProperties": true
150
150
  }
@@ -224,7 +224,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
224
224
  },
225
225
  "PublishedCard": {
226
226
  "title": "PublishedCard",
227
- "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
227
+ "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid`, `issuer` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `issuer` is the member's membership DID; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
228
228
  "type": "object",
229
229
  "additionalProperties": true
230
230
  }
@@ -0,0 +1,223 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/elections/cancel/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { ElectionId, ElectionState, Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * An administrator cancels an election before voting closes: the community stops issuing its tickets and has the ballot box cancel it. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCElectionsCancelPayload {
13
+ electionId: ElectionId;
14
+ /**
15
+ * Why the election is cancelled, for the community's audit trail and its members. Required: a cancellation discards every ballot cast, and the members who cast them are owed a reason.
16
+ */
17
+ reason: string;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * Success response to vtc/elections/cancel/0.1: the election's state once cancelled.
22
+ */
23
+ export interface VTCElectionsCancelResponsePayload {
24
+ electionId: ElectionId;
25
+ /**
26
+ * `cancelled`.
27
+ */
28
+ state: ElectionState;
29
+ ext?: Ext;
30
+ }
31
+
32
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
33
+ export type { ElectionId, ElectionState, Ext };
34
+
35
+ /** Trust Task type URI. */
36
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/elections/cancel/0.1" as const;
37
+
38
+ /** Stable alias for this specification's request payload shape. */
39
+ export type Payload = VTCElectionsCancelPayload;
40
+
41
+ /** Trust Task response type URI (request type URI + "#response"). */
42
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/elections/cancel/0.1#response" as const;
43
+
44
+ /** Stable alias for this specification's success-response payload shape. */
45
+ export type Response = VTCElectionsCancelResponsePayload;
46
+
47
+ /**
48
+ * This specification's payload schema, as a value.
49
+ *
50
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
51
+ * rather than only as a `.json` file because TypeScript types are erased
52
+ * at runtime: without a schema a consumer has nothing to validate, and
53
+ * every REQUIRED payload member is optional in practice. Cross-file
54
+ * `$ref`s are already inlined, so it needs no resolver.
55
+ */
56
+ export const PAYLOAD_SCHEMA = {
57
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
58
+ "$id": "https://trusttasks.org/spec/vtc/elections/cancel/0.1",
59
+ "title": "VTC Elections — Cancel — payload",
60
+ "description": "An administrator cancels an election before voting closes: the community stops issuing its tickets and has the ballot box cancel it. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": [
64
+ "electionId",
65
+ "reason"
66
+ ],
67
+ "properties": {
68
+ "electionId": {
69
+ "$ref": "#/$defs/ElectionId"
70
+ },
71
+ "reason": {
72
+ "type": "string",
73
+ "minLength": 1,
74
+ "maxLength": 1024,
75
+ "pattern": "\\S",
76
+ "description": "Why the election is cancelled, for the community's audit trail and its members. Required: a cancellation discards every ballot cast, and the members who cast them are owed a reason."
77
+ },
78
+ "ext": {
79
+ "$ref": "#/$defs/Ext"
80
+ }
81
+ },
82
+ "$defs": {
83
+ "Response": {
84
+ "$anchor": "response",
85
+ "title": "VTC Elections — Cancel — response payload",
86
+ "description": "Success response to vtc/elections/cancel/0.1: the election's state once cancelled.",
87
+ "type": "object",
88
+ "additionalProperties": false,
89
+ "required": [
90
+ "electionId",
91
+ "state"
92
+ ],
93
+ "properties": {
94
+ "electionId": {
95
+ "$ref": "#/$defs/ElectionId"
96
+ },
97
+ "state": {
98
+ "$ref": "#/$defs/ElectionState",
99
+ "description": "`cancelled`."
100
+ },
101
+ "ext": {
102
+ "$ref": "#/$defs/Ext"
103
+ }
104
+ }
105
+ },
106
+ "Ext": {
107
+ "title": "Ext",
108
+ "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.",
109
+ "type": "object",
110
+ "minProperties": 1,
111
+ "additionalProperties": true,
112
+ "propertyNames": {
113
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
114
+ }
115
+ },
116
+ "ElectionState": {
117
+ "title": "ElectionState",
118
+ "type": "string",
119
+ "enum": [
120
+ "registered",
121
+ "registration",
122
+ "voting",
123
+ "closed",
124
+ "tallied",
125
+ "cancelled"
126
+ ]
127
+ },
128
+ "ElectionId": {
129
+ "title": "ElectionId",
130
+ "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.",
131
+ "type": "string",
132
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
133
+ }
134
+ }
135
+ } as const;
136
+
137
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
138
+ export const RESPONSE_PAYLOAD_SCHEMA = {
139
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
140
+ "$ref": "#/$defs/Response",
141
+ "$defs": {
142
+ "Response": {
143
+ "$anchor": "response",
144
+ "title": "VTC Elections — Cancel — response payload",
145
+ "description": "Success response to vtc/elections/cancel/0.1: the election's state once cancelled.",
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": [
149
+ "electionId",
150
+ "state"
151
+ ],
152
+ "properties": {
153
+ "electionId": {
154
+ "$ref": "#/$defs/ElectionId"
155
+ },
156
+ "state": {
157
+ "$ref": "#/$defs/ElectionState",
158
+ "description": "`cancelled`."
159
+ },
160
+ "ext": {
161
+ "$ref": "#/$defs/Ext"
162
+ }
163
+ }
164
+ },
165
+ "Ext": {
166
+ "title": "Ext",
167
+ "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.",
168
+ "type": "object",
169
+ "minProperties": 1,
170
+ "additionalProperties": true,
171
+ "propertyNames": {
172
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
173
+ }
174
+ },
175
+ "ElectionState": {
176
+ "title": "ElectionState",
177
+ "type": "string",
178
+ "enum": [
179
+ "registered",
180
+ "registration",
181
+ "voting",
182
+ "closed",
183
+ "tallied",
184
+ "cancelled"
185
+ ]
186
+ },
187
+ "ElectionId": {
188
+ "title": "ElectionId",
189
+ "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.",
190
+ "type": "string",
191
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
192
+ }
193
+ }
194
+ } as const;
195
+
196
+ /**
197
+ * SPEC.md §7.2 policy for the request variant, from this specification's
198
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
199
+ * per-specification and cannot be derived from the document alone, and
200
+ * item 2 needs the schema this carries.
201
+ */
202
+ export const SPEC = {
203
+ typeUri: TYPE_URI,
204
+ isBearer: false,
205
+ isProofRequired: true,
206
+ isRecipientRequired: true,
207
+ isIssuedAtRequired: true,
208
+ payloadSchema: PAYLOAD_SCHEMA,
209
+ } as const;
210
+
211
+ /**
212
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
213
+ * tracks the *issuer* party's requirement because a response swaps the
214
+ * parties (§7.3 item 5).
215
+ */
216
+ export const RESPONSE_SPEC = {
217
+ typeUri: RESPONSE_TYPE_URI,
218
+ isBearer: false,
219
+ isProofRequired: true,
220
+ isRecipientRequired: true,
221
+ isIssuedAtRequired: true,
222
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
223
+ } as const;