@openvtc/trust-tasks 0.26.24 → 0.26.26

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 (148) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/dist/_shared/components.d.ts +248 -5
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/device/list/0.1/payload.d.ts +4 -4
  5. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  6. package/dist/device/list/0.1/payload.js +4 -2
  7. package/dist/device/list/0.1/payload.js.map +1 -1
  8. package/dist/device/list/0.2/payload.d.ts +4 -4
  9. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  10. package/dist/device/list/0.2/payload.js +4 -2
  11. package/dist/device/list/0.2/payload.js.map +1 -1
  12. package/dist/device/register/0.1/payload.d.ts +4 -4
  13. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  14. package/dist/device/register/0.1/payload.js +4 -2
  15. package/dist/device/register/0.1/payload.js.map +1 -1
  16. package/dist/device/register/0.2/payload.d.ts +4 -4
  17. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  18. package/dist/device/register/0.2/payload.js +4 -2
  19. package/dist/device/register/0.2/payload.js.map +1 -1
  20. package/dist/index.d.ts +15 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +15 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/rooms/keys/act/0.6/payload.d.ts +546 -0
  25. package/dist/rooms/keys/act/0.6/payload.d.ts.map +1 -0
  26. package/dist/rooms/keys/act/0.6/payload.js +305 -0
  27. package/dist/rooms/keys/act/0.6/payload.js.map +1 -0
  28. package/dist/voting/_shared/0.1/voting.d.ts +1 -1
  29. package/dist/voting/_shared/0.1/voting.d.ts.map +1 -1
  30. package/dist/voting/ballot/cast-encrypted/0.1/payload.d.ts +1166 -0
  31. package/dist/voting/ballot/cast-encrypted/0.1/payload.d.ts.map +1 -0
  32. package/dist/voting/ballot/cast-encrypted/0.1/payload.js +690 -0
  33. package/dist/voting/ballot/cast-encrypted/0.1/payload.js.map +1 -0
  34. package/dist/voting/board/read/0.1/payload.d.ts +2555 -719
  35. package/dist/voting/board/read/0.1/payload.d.ts.map +1 -1
  36. package/dist/voting/board/read/0.1/payload.js +1517 -391
  37. package/dist/voting/board/read/0.1/payload.js.map +1 -1
  38. package/dist/voting/election/register/0.1/payload.d.ts +4 -4
  39. package/dist/voting/election/register/0.1/payload.js +2 -2
  40. package/dist/voting/election/register/0.1/payload.js.map +1 -1
  41. package/dist/voting/election/show/0.1/payload.d.ts +4 -4
  42. package/dist/voting/election/show/0.1/payload.js +2 -2
  43. package/dist/voting/election/show/0.1/payload.js.map +1 -1
  44. package/dist/voting/trustees/confirm/0.1/payload.d.ts +620 -0
  45. package/dist/voting/trustees/confirm/0.1/payload.d.ts.map +1 -0
  46. package/dist/voting/trustees/confirm/0.1/payload.js +388 -0
  47. package/dist/voting/trustees/confirm/0.1/payload.js.map +1 -0
  48. package/dist/voting/trustees/deal/0.1/payload.d.ts +1032 -0
  49. package/dist/voting/trustees/deal/0.1/payload.d.ts.map +1 -0
  50. package/dist/voting/trustees/deal/0.1/payload.js +630 -0
  51. package/dist/voting/trustees/deal/0.1/payload.js.map +1 -0
  52. package/dist/voting/trustees/decrypt/0.1/payload.d.ts +1009 -0
  53. package/dist/voting/trustees/decrypt/0.1/payload.d.ts.map +1 -0
  54. package/dist/voting/trustees/decrypt/0.1/payload.js +623 -0
  55. package/dist/voting/trustees/decrypt/0.1/payload.js.map +1 -0
  56. package/dist/voting/trustees/enrol/0.1/payload.d.ts +792 -0
  57. package/dist/voting/trustees/enrol/0.1/payload.d.ts.map +1 -0
  58. package/dist/voting/trustees/enrol/0.1/payload.js +490 -0
  59. package/dist/voting/trustees/enrol/0.1/payload.js.map +1 -0
  60. package/dist/voting/trustees/justify/0.1/payload.d.ts +642 -0
  61. package/dist/voting/trustees/justify/0.1/payload.d.ts.map +1 -0
  62. package/dist/voting/trustees/justify/0.1/payload.js +402 -0
  63. package/dist/voting/trustees/justify/0.1/payload.js.map +1 -0
  64. package/dist/voting/trustees/status/0.1/payload.d.ts +1411 -0
  65. package/dist/voting/trustees/status/0.1/payload.d.ts.map +1 -0
  66. package/dist/voting/trustees/status/0.1/payload.js +822 -0
  67. package/dist/voting/trustees/status/0.1/payload.js.map +1 -0
  68. package/dist/vta/pcs/trustee/deal/0.1/payload.d.ts +2005 -0
  69. package/dist/vta/pcs/trustee/deal/0.1/payload.d.ts.map +1 -0
  70. package/dist/vta/pcs/trustee/deal/0.1/payload.js +1176 -0
  71. package/dist/vta/pcs/trustee/deal/0.1/payload.js.map +1 -0
  72. package/dist/vta/pcs/trustee/decrypt/0.1/payload.d.ts +736 -0
  73. package/dist/vta/pcs/trustee/decrypt/0.1/payload.d.ts.map +1 -0
  74. package/dist/vta/pcs/trustee/decrypt/0.1/payload.js +412 -0
  75. package/dist/vta/pcs/trustee/decrypt/0.1/payload.js.map +1 -0
  76. package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts +1756 -0
  77. package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts.map +1 -0
  78. package/dist/vta/pcs/trustee/enrol/0.1/payload.js +1040 -0
  79. package/dist/vta/pcs/trustee/enrol/0.1/payload.js.map +1 -0
  80. package/dist/vta/pcs/trustee/justify/0.1/payload.d.ts +504 -0
  81. package/dist/vta/pcs/trustee/justify/0.1/payload.d.ts.map +1 -0
  82. package/dist/vta/pcs/trustee/justify/0.1/payload.js +274 -0
  83. package/dist/vta/pcs/trustee/justify/0.1/payload.js.map +1 -0
  84. package/dist/vta/pcs/trustee/keys/0.1/payload.d.ts +2501 -0
  85. package/dist/vta/pcs/trustee/keys/0.1/payload.d.ts.map +1 -0
  86. package/dist/vta/pcs/trustee/keys/0.1/payload.js +1455 -0
  87. package/dist/vta/pcs/trustee/keys/0.1/payload.js.map +1 -0
  88. package/dist/vta/pcs/vote/0.1/payload.d.ts +4 -4
  89. package/dist/vta/pcs/vote/0.1/payload.js +2 -2
  90. package/dist/vta/pcs/vote/0.1/payload.js.map +1 -1
  91. package/dist/vta/pcs/vote-encrypted/0.1/payload.d.ts +2375 -0
  92. package/dist/vta/pcs/vote-encrypted/0.1/payload.d.ts.map +1 -0
  93. package/dist/vta/pcs/vote-encrypted/0.1/payload.js +1389 -0
  94. package/dist/vta/pcs/vote-encrypted/0.1/payload.js.map +1 -0
  95. package/dist/vta/pcs/voter/register/0.1/payload.d.ts +4 -4
  96. package/dist/vta/pcs/voter/register/0.1/payload.js +2 -2
  97. package/dist/vta/pcs/voter/register/0.1/payload.js.map +1 -1
  98. package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
  99. package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
  100. package/dist/vtc/elections/create/0.1/payload.d.ts +4 -4
  101. package/dist/vtc/elections/create/0.1/payload.js +2 -2
  102. package/dist/vtc/elections/create/0.1/payload.js.map +1 -1
  103. package/dist/vtc/elections/show/0.1/payload.d.ts +4 -4
  104. package/dist/vtc/elections/show/0.1/payload.js +2 -2
  105. package/dist/vtc/elections/show/0.1/payload.js.map +1 -1
  106. package/dist/vtc/groups/bindings/add/0.1/payload.d.ts +4 -4
  107. package/dist/vtc/groups/bindings/add/0.1/payload.js +2 -2
  108. package/dist/vtc/groups/bindings/add/0.1/payload.js.map +1 -1
  109. package/dist/vtc/groups/bindings/list/0.1/payload.d.ts +4 -4
  110. package/dist/vtc/groups/bindings/list/0.1/payload.js +2 -2
  111. package/dist/vtc/groups/bindings/list/0.1/payload.js.map +1 -1
  112. package/dist/vtc/rooms/offers/list/0.3/payload.d.ts +1058 -0
  113. package/dist/vtc/rooms/offers/list/0.3/payload.d.ts.map +1 -0
  114. package/dist/vtc/rooms/offers/list/0.3/payload.js +614 -0
  115. package/dist/vtc/rooms/offers/list/0.3/payload.js.map +1 -0
  116. package/package.json +1 -1
  117. package/src/_shared/components.ts +263 -5
  118. package/src/device/list/0.1/payload.ts +4 -2
  119. package/src/device/list/0.2/payload.ts +4 -2
  120. package/src/device/register/0.1/payload.ts +4 -2
  121. package/src/device/register/0.2/payload.ts +4 -2
  122. package/src/index.ts +15 -0
  123. package/src/rooms/keys/act/0.6/payload.ts +380 -0
  124. package/src/voting/_shared/0.1/voting.ts +1 -1
  125. package/src/voting/ballot/cast-encrypted/0.1/payload.ts +735 -0
  126. package/src/voting/board/read/0.1/payload.ts +1519 -393
  127. package/src/voting/election/register/0.1/payload.ts +2 -2
  128. package/src/voting/election/show/0.1/payload.ts +2 -2
  129. package/src/voting/trustees/confirm/0.1/payload.ts +429 -0
  130. package/src/voting/trustees/deal/0.1/payload.ts +665 -0
  131. package/src/voting/trustees/decrypt/0.1/payload.ts +663 -0
  132. package/src/voting/trustees/enrol/0.1/payload.ts +525 -0
  133. package/src/voting/trustees/justify/0.1/payload.ts +439 -0
  134. package/src/voting/trustees/status/0.1/payload.ts +890 -0
  135. package/src/vta/pcs/trustee/deal/0.1/payload.ts +1250 -0
  136. package/src/vta/pcs/trustee/decrypt/0.1/payload.ts +489 -0
  137. package/src/vta/pcs/trustee/enrol/0.1/payload.ts +1107 -0
  138. package/src/vta/pcs/trustee/justify/0.1/payload.ts +341 -0
  139. package/src/vta/pcs/trustee/keys/0.1/payload.ts +1545 -0
  140. package/src/vta/pcs/vote/0.1/payload.ts +2 -2
  141. package/src/vta/pcs/vote-encrypted/0.1/payload.ts +1455 -0
  142. package/src/vta/pcs/voter/register/0.1/payload.ts +2 -2
  143. package/src/vtc/_shared/0.1/community-room.ts +1 -1
  144. package/src/vtc/elections/create/0.1/payload.ts +2 -2
  145. package/src/vtc/elections/show/0.1/payload.ts +2 -2
  146. package/src/vtc/groups/bindings/add/0.1/payload.ts +2 -2
  147. package/src/vtc/groups/bindings/list/0.1/payload.ts +2 -2
  148. package/src/vtc/rooms/offers/list/0.3/payload.ts +663 -0
@@ -518,7 +518,7 @@ export const PAYLOAD_SCHEMA = {
518
518
  },
519
519
  "SecrecyLevel": {
520
520
  "title": "SecrecyLevel",
521
- "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). Version 0.1 of the voting tasks carries open ballots only; a ballot box refuses to register any other level with `voting/election/register:unsupportedSecrecy` until the trustee tasks are specified.",
521
+ "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).",
522
522
  "type": "string",
523
523
  "enum": [
524
524
  "open",
@@ -1100,7 +1100,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
1100
1100
  },
1101
1101
  "SecrecyLevel": {
1102
1102
  "title": "SecrecyLevel",
1103
- "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). Version 0.1 of the voting tasks carries open ballots only; a ballot box refuses to register any other level with `voting/election/register:unsupportedSecrecy` until the trustee tasks are specified.",
1103
+ "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).",
1104
1104
  "type": "string",
1105
1105
  "enum": [
1106
1106
  "open",
@@ -14,4 +14,4 @@ export interface VTCSharedCommunityOwnedRoomDefinitions {
14
14
  * The definitions this shared schema publishes, hoisted to one declaration each.
15
15
  * See "../../../_shared/components.js".
16
16
  */
17
- export type { CommunityRoom, CommunityRoomV2, MemberAction, MemberActions, MemberState, Offer, OfferCredentials, OfferV2, Reason, RoomDescription, RoomLabel, RoomMember, RoomMembership, RoomTag, RoomTags } from "../../../_shared/components.js";
17
+ export type { CommunityRoom, CommunityRoomV2, MemberAction, MemberActions, MemberState, Offer, OfferCredentials, OfferV2, Reason, Renewal, RenewalCredentials, RoomDescription, RoomLabel, RoomMember, RoomMembership, RoomTag, RoomTags } from "../../../_shared/components.js";
@@ -343,7 +343,7 @@ export const PAYLOAD_SCHEMA = {
343
343
  },
344
344
  "SecrecyLevel": {
345
345
  "title": "SecrecyLevel",
346
- "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). Version 0.1 of the voting tasks carries open ballots only; a ballot box refuses to register any other level with `voting/election/register:unsupportedSecrecy` until the trustee tasks are specified.",
346
+ "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).",
347
347
  "type": "string",
348
348
  "enum": [
349
349
  "open",
@@ -811,7 +811,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
811
811
  },
812
812
  "SecrecyLevel": {
813
813
  "title": "SecrecyLevel",
814
- "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). Version 0.1 of the voting tasks carries open ballots only; a ballot box refuses to register any other level with `voting/election/register:unsupportedSecrecy` until the trustee tasks are specified.",
814
+ "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).",
815
815
  "type": "string",
816
816
  "enum": [
817
817
  "open",
@@ -534,7 +534,7 @@ export const PAYLOAD_SCHEMA = {
534
534
  },
535
535
  "SecrecyLevel": {
536
536
  "title": "SecrecyLevel",
537
- "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). Version 0.1 of the voting tasks carries open ballots only; a ballot box refuses to register any other level with `voting/election/register:unsupportedSecrecy` until the trustee tasks are specified.",
537
+ "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).",
538
538
  "type": "string",
539
539
  "enum": [
540
540
  "open",
@@ -1296,7 +1296,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
1296
1296
  },
1297
1297
  "SecrecyLevel": {
1298
1298
  "title": "SecrecyLevel",
1299
- "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). Version 0.1 of the voting tasks carries open ballots only; a ballot box refuses to register any other level with `voting/election/register:unsupportedSecrecy` until the trustee tasks are specified.",
1299
+ "description": "`open`: ballots are recorded on the board as cast. `sealed`: ballots are encrypted to a jointly generated election key and decrypted after voting closes. `talliedEncrypted`: ballots are encrypted and only the totals are ever decrypted (VTI-VOT-060). The encrypted levels are cast with `voting/ballot/cast-encrypted/0.1`, under an election key the trustees generate with `voting/trustees/*` (CONVENTIONS §9).",
1300
1300
  "type": "string",
1301
1301
  "enum": [
1302
1302
  "open",
@@ -244,7 +244,7 @@ export const PAYLOAD_SCHEMA = {
244
244
  },
245
245
  "RoomBindingSpec": {
246
246
  "title": "RoomBindingSpec",
247
- "description": "Links a room the community owns to the group: joining the group offers the member admission to the room with `actions`, valid for `validFor`; leaving removes them unless another source still covers them.",
247
+ "description": "Links a room the community owns to the group: joining the group offers the member admission to the room with `actions`, valid for `validFor`, renewed while they stay in the group (collected with vtc/rooms/offers/list at 0.3 or later); leaving removes them unless another source still covers them.",
248
248
  "type": "object",
249
249
  "additionalProperties": false,
250
250
  "required": [
@@ -478,7 +478,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
478
478
  },
479
479
  "RoomBindingSpec": {
480
480
  "title": "RoomBindingSpec",
481
- "description": "Links a room the community owns to the group: joining the group offers the member admission to the room with `actions`, valid for `validFor`; leaving removes them unless another source still covers them.",
481
+ "description": "Links a room the community owns to the group: joining the group offers the member admission to the room with `actions`, valid for `validFor`, renewed while they stay in the group (collected with vtc/rooms/offers/list at 0.3 or later); leaving removes them unless another source still covers them.",
482
482
  "type": "object",
483
483
  "additionalProperties": false,
484
484
  "required": [
@@ -235,7 +235,7 @@ export const PAYLOAD_SCHEMA = {
235
235
  },
236
236
  "RoomBindingSpec": {
237
237
  "title": "RoomBindingSpec",
238
- "description": "Links a room the community owns to the group: joining the group offers the member admission to the room with `actions`, valid for `validFor`; leaving removes them unless another source still covers them.",
238
+ "description": "Links a room the community owns to the group: joining the group offers the member admission to the room with `actions`, valid for `validFor`, renewed while they stay in the group (collected with vtc/rooms/offers/list at 0.3 or later); leaving removes them unless another source still covers them.",
239
239
  "type": "object",
240
240
  "additionalProperties": false,
241
241
  "required": [
@@ -473,7 +473,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
473
473
  },
474
474
  "RoomBindingSpec": {
475
475
  "title": "RoomBindingSpec",
476
- "description": "Links a room the community owns to the group: joining the group offers the member admission to the room with `actions`, valid for `validFor`; leaving removes them unless another source still covers them.",
476
+ "description": "Links a room the community owns to the group: joining the group offers the member admission to the room with `actions`, valid for `validFor`, renewed while they stay in the group (collected with vtc/rooms/offers/list at 0.3 or later); leaving removes them unless another source still covers them.",
477
477
  "type": "object",
478
478
  "additionalProperties": false,
479
479
  "required": [