@openvtc/trust-tasks 0.26.20 → 0.26.22

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 (221) hide show
  1. package/CHANGELOG.md +84 -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.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 +24 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +24 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/voting/_shared/0.1/voting.d.ts +16 -0
  25. package/dist/voting/_shared/0.1/voting.d.ts.map +1 -0
  26. package/dist/voting/_shared/0.1/voting.js +6 -0
  27. package/dist/voting/_shared/0.1/voting.js.map +1 -0
  28. package/dist/voting/ballot/cast/0.1/payload.d.ts +887 -0
  29. package/dist/voting/ballot/cast/0.1/payload.d.ts.map +1 -0
  30. package/dist/voting/ballot/cast/0.1/payload.js +506 -0
  31. package/dist/voting/ballot/cast/0.1/payload.js.map +1 -0
  32. package/dist/voting/board/consistency/0.1/payload.d.ts +389 -0
  33. package/dist/voting/board/consistency/0.1/payload.d.ts.map +1 -0
  34. package/dist/voting/board/consistency/0.1/payload.js +218 -0
  35. package/dist/voting/board/consistency/0.1/payload.js.map +1 -0
  36. package/dist/voting/board/head/0.1/payload.d.ts +380 -0
  37. package/dist/voting/board/head/0.1/payload.d.ts.map +1 -0
  38. package/dist/voting/board/head/0.1/payload.js +224 -0
  39. package/dist/voting/board/head/0.1/payload.js.map +1 -0
  40. package/dist/voting/board/inclusion/0.1/payload.d.ts +449 -0
  41. package/dist/voting/board/inclusion/0.1/payload.d.ts.map +1 -0
  42. package/dist/voting/board/inclusion/0.1/payload.js +246 -0
  43. package/dist/voting/board/inclusion/0.1/payload.js.map +1 -0
  44. package/dist/voting/board/read/0.1/payload.d.ts +1596 -0
  45. package/dist/voting/board/read/0.1/payload.d.ts.map +1 -0
  46. package/dist/voting/board/read/0.1/payload.js +920 -0
  47. package/dist/voting/board/read/0.1/payload.js.map +1 -0
  48. package/dist/voting/election/cancel/0.1/payload.d.ts +540 -0
  49. package/dist/voting/election/cancel/0.1/payload.d.ts.map +1 -0
  50. package/dist/voting/election/cancel/0.1/payload.js +331 -0
  51. package/dist/voting/election/cancel/0.1/payload.js.map +1 -0
  52. package/dist/voting/election/close/0.1/payload.d.ts +540 -0
  53. package/dist/voting/election/close/0.1/payload.d.ts.map +1 -0
  54. package/dist/voting/election/close/0.1/payload.js +330 -0
  55. package/dist/voting/election/close/0.1/payload.js.map +1 -0
  56. package/dist/voting/election/register/0.1/payload.d.ts +1920 -0
  57. package/dist/voting/election/register/0.1/payload.d.ts.map +1 -0
  58. package/dist/voting/election/register/0.1/payload.js +1166 -0
  59. package/dist/voting/election/register/0.1/payload.js.map +1 -0
  60. package/dist/voting/election/show/0.1/payload.d.ts +1824 -0
  61. package/dist/voting/election/show/0.1/payload.d.ts.map +1 -0
  62. package/dist/voting/election/show/0.1/payload.js +1112 -0
  63. package/dist/voting/election/show/0.1/payload.js.map +1 -0
  64. package/dist/voting/result/show/0.1/payload.d.ts +849 -0
  65. package/dist/voting/result/show/0.1/payload.d.ts.map +1 -0
  66. package/dist/voting/result/show/0.1/payload.js +498 -0
  67. package/dist/voting/result/show/0.1/payload.js.map +1 -0
  68. package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
  69. package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
  70. package/dist/vta/_shared/0.4/pcs-engine.d.ts +1 -1
  71. package/dist/vta/_shared/0.4/pcs-engine.d.ts.map +1 -1
  72. package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
  73. package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
  74. package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
  75. package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
  76. package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
  77. package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
  78. package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
  79. package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
  80. package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
  81. package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
  82. package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
  83. package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
  84. package/dist/vta/pcs/applications/create/0.1/payload.d.ts +1 -1
  85. package/dist/vta/pcs/applications/create/0.1/payload.d.ts.map +1 -1
  86. package/dist/vta/pcs/applications/show/0.1/payload.d.ts +1 -1
  87. package/dist/vta/pcs/applications/show/0.1/payload.d.ts.map +1 -1
  88. package/dist/vta/pcs/attest/0.1/payload.d.ts +1 -1
  89. package/dist/vta/pcs/attest/0.1/payload.d.ts.map +1 -1
  90. package/dist/vta/pcs/prove/0.1/payload.d.ts +1 -1
  91. package/dist/vta/pcs/prove/0.1/payload.d.ts.map +1 -1
  92. package/dist/vta/pcs/root-accept/0.1/payload.d.ts +1 -1
  93. package/dist/vta/pcs/root-accept/0.1/payload.d.ts.map +1 -1
  94. package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts +1 -1
  95. package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts.map +1 -1
  96. package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts +1 -1
  97. package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts.map +1 -1
  98. package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts +1 -1
  99. package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts.map +1 -1
  100. package/dist/vta/pcs/vetter/show/0.1/payload.d.ts +1 -1
  101. package/dist/vta/pcs/vetter/show/0.1/payload.d.ts.map +1 -1
  102. package/dist/vta/pcs/vote/0.1/payload.d.ts +2208 -0
  103. package/dist/vta/pcs/vote/0.1/payload.d.ts.map +1 -0
  104. package/dist/vta/pcs/vote/0.1/payload.js +1282 -0
  105. package/dist/vta/pcs/vote/0.1/payload.js.map +1 -0
  106. package/dist/vta/pcs/voter/accept/0.1/payload.d.ts +450 -0
  107. package/dist/vta/pcs/voter/accept/0.1/payload.d.ts.map +1 -0
  108. package/dist/vta/pcs/voter/accept/0.1/payload.js +247 -0
  109. package/dist/vta/pcs/voter/accept/0.1/payload.js.map +1 -0
  110. package/dist/vta/pcs/voter/receipt/0.1/payload.d.ts +531 -0
  111. package/dist/vta/pcs/voter/receipt/0.1/payload.d.ts.map +1 -0
  112. package/dist/vta/pcs/voter/receipt/0.1/payload.js +301 -0
  113. package/dist/vta/pcs/voter/receipt/0.1/payload.js.map +1 -0
  114. package/dist/vta/pcs/voter/register/0.1/payload.d.ts +1934 -0
  115. package/dist/vta/pcs/voter/register/0.1/payload.d.ts.map +1 -0
  116. package/dist/vta/pcs/voter/register/0.1/payload.js +1133 -0
  117. package/dist/vta/pcs/voter/register/0.1/payload.js.map +1 -0
  118. package/dist/vtc/directory/card/present/0.1/payload.d.ts +2 -2
  119. package/dist/vtc/directory/card/present/0.1/payload.js +1 -1
  120. package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -1
  121. package/dist/vtc/elections/cancel/0.1/payload.d.ts +301 -0
  122. package/dist/vtc/elections/cancel/0.1/payload.d.ts.map +1 -0
  123. package/dist/vtc/elections/cancel/0.1/payload.js +183 -0
  124. package/dist/vtc/elections/cancel/0.1/payload.js.map +1 -0
  125. package/dist/vtc/elections/certify/0.1/payload.d.ts +914 -0
  126. package/dist/vtc/elections/certify/0.1/payload.d.ts.map +1 -0
  127. package/dist/vtc/elections/certify/0.1/payload.js +512 -0
  128. package/dist/vtc/elections/certify/0.1/payload.js.map +1 -0
  129. package/dist/vtc/elections/close/0.1/payload.d.ts +301 -0
  130. package/dist/vtc/elections/close/0.1/payload.d.ts.map +1 -0
  131. package/dist/vtc/elections/close/0.1/payload.js +182 -0
  132. package/dist/vtc/elections/close/0.1/payload.js.map +1 -0
  133. package/dist/vtc/elections/create/0.1/payload.d.ts +1656 -0
  134. package/dist/vtc/elections/create/0.1/payload.d.ts.map +1 -0
  135. package/dist/vtc/elections/create/0.1/payload.js +994 -0
  136. package/dist/vtc/elections/create/0.1/payload.js.map +1 -0
  137. package/dist/vtc/elections/list/0.1/payload.d.ts +521 -0
  138. package/dist/vtc/elections/list/0.1/payload.d.ts.map +1 -0
  139. package/dist/vtc/elections/list/0.1/payload.js +290 -0
  140. package/dist/vtc/elections/list/0.1/payload.js.map +1 -0
  141. package/dist/vtc/elections/show/0.1/payload.d.ts +2688 -0
  142. package/dist/vtc/elections/show/0.1/payload.d.ts.map +1 -0
  143. package/dist/vtc/elections/show/0.1/payload.js +1581 -0
  144. package/dist/vtc/elections/show/0.1/payload.js.map +1 -0
  145. package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts +597 -0
  146. package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts.map +1 -0
  147. package/dist/vtc/elections/tickets/issue/0.1/payload.js +318 -0
  148. package/dist/vtc/elections/tickets/issue/0.1/payload.js.map +1 -0
  149. package/dist/vtc/groups/create/0.1/payload.d.ts +4 -4
  150. package/dist/vtc/groups/create/0.1/payload.js +2 -2
  151. package/dist/vtc/groups/create/0.1/payload.js.map +1 -1
  152. package/dist/vtc/groups/list/0.1/payload.d.ts +4 -4
  153. package/dist/vtc/groups/list/0.1/payload.js +2 -2
  154. package/dist/vtc/groups/list/0.1/payload.js.map +1 -1
  155. package/dist/vtc/groups/managers/add/0.1/payload.d.ts +337 -0
  156. package/dist/vtc/groups/managers/add/0.1/payload.d.ts.map +1 -0
  157. package/dist/vtc/groups/managers/add/0.1/payload.js +184 -0
  158. package/dist/vtc/groups/managers/add/0.1/payload.js.map +1 -0
  159. package/dist/vtc/groups/managers/remove/0.1/payload.d.ts +337 -0
  160. package/dist/vtc/groups/managers/remove/0.1/payload.d.ts.map +1 -0
  161. package/dist/vtc/groups/managers/remove/0.1/payload.js +184 -0
  162. package/dist/vtc/groups/managers/remove/0.1/payload.js.map +1 -0
  163. package/dist/vtc/groups/show/0.1/payload.d.ts +4 -4
  164. package/dist/vtc/groups/show/0.1/payload.js +2 -2
  165. package/dist/vtc/groups/show/0.1/payload.js.map +1 -1
  166. package/dist/vtc/groups/update/0.1/payload.d.ts +4 -4
  167. package/dist/vtc/groups/update/0.1/payload.js +2 -2
  168. package/dist/vtc/groups/update/0.1/payload.js.map +1 -1
  169. package/package.json +1 -1
  170. package/src/_shared/components.ts +332 -17
  171. package/src/device/list/0.1/payload.ts +4 -2
  172. package/src/device/list/0.2/payload.ts +4 -2
  173. package/src/device/register/0.1/payload.ts +4 -2
  174. package/src/device/register/0.2/payload.ts +4 -2
  175. package/src/index.ts +24 -0
  176. package/src/voting/_shared/0.1/voting.ts +17 -0
  177. package/src/voting/ballot/cast/0.1/payload.ts +560 -0
  178. package/src/voting/board/consistency/0.1/payload.ts +264 -0
  179. package/src/voting/board/head/0.1/payload.ts +257 -0
  180. package/src/voting/board/inclusion/0.1/payload.ts +300 -0
  181. package/src/voting/board/read/0.1/payload.ts +981 -0
  182. package/src/voting/election/cancel/0.1/payload.ts +368 -0
  183. package/src/voting/election/close/0.1/payload.ts +367 -0
  184. package/src/voting/election/register/0.1/payload.ts +1207 -0
  185. package/src/voting/election/show/0.1/payload.ts +1149 -0
  186. package/src/voting/result/show/0.1/payload.ts +536 -0
  187. package/src/vta/_shared/0.1/app-state-record.ts +1 -1
  188. package/src/vta/_shared/0.4/pcs-engine.ts +1 -1
  189. package/src/vta/app-state/delete/1.0/payload.ts +1 -1
  190. package/src/vta/app-state/get/1.0/payload.ts +1 -1
  191. package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
  192. package/src/vta/app-state/list/1.0/payload.ts +1 -1
  193. package/src/vta/app-state/put/1.0/payload.ts +1 -1
  194. package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
  195. package/src/vta/pcs/applications/create/0.1/payload.ts +1 -1
  196. package/src/vta/pcs/applications/show/0.1/payload.ts +1 -1
  197. package/src/vta/pcs/attest/0.1/payload.ts +1 -1
  198. package/src/vta/pcs/prove/0.1/payload.ts +1 -1
  199. package/src/vta/pcs/root-accept/0.1/payload.ts +1 -1
  200. package/src/vta/pcs/tokens/abandon/0.1/payload.ts +1 -1
  201. package/src/vta/pcs/tokens/accept/0.1/payload.ts +1 -1
  202. package/src/vta/pcs/verify-attestation/0.1/payload.ts +1 -1
  203. package/src/vta/pcs/vetter/show/0.1/payload.ts +1 -1
  204. package/src/vta/pcs/vote/0.1/payload.ts +1365 -0
  205. package/src/vta/pcs/voter/accept/0.1/payload.ts +306 -0
  206. package/src/vta/pcs/voter/receipt/0.1/payload.ts +367 -0
  207. package/src/vta/pcs/voter/register/0.1/payload.ts +1211 -0
  208. package/src/vtc/directory/card/present/0.1/payload.ts +1 -1
  209. package/src/vtc/elections/cancel/0.1/payload.ts +223 -0
  210. package/src/vtc/elections/certify/0.1/payload.ts +565 -0
  211. package/src/vtc/elections/close/0.1/payload.ts +222 -0
  212. package/src/vtc/elections/create/0.1/payload.ts +1041 -0
  213. package/src/vtc/elections/list/0.1/payload.ts +371 -0
  214. package/src/vtc/elections/show/0.1/payload.ts +1671 -0
  215. package/src/vtc/elections/tickets/issue/0.1/payload.ts +394 -0
  216. package/src/vtc/groups/create/0.1/payload.ts +2 -2
  217. package/src/vtc/groups/list/0.1/payload.ts +2 -2
  218. package/src/vtc/groups/managers/add/0.1/payload.ts +230 -0
  219. package/src/vtc/groups/managers/remove/0.1/payload.ts +230 -0
  220. package/src/vtc/groups/show/0.1/payload.ts +2 -2
  221. package/src/vtc/groups/update/0.1/payload.ts +2 -2
@@ -0,0 +1,394 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/elections/tickets/issue/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { DigestMultibase, ElectionId, Ext, Multibase_VotingV0_1 as Multibase } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * An eligible party asks the community to blind-issue its ticket for one election: the community checks eligibility against its own records and signs a commitment it cannot open, so the ticket its voter's agent unblinds is one the community has never seen. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCElectionsTicketsIssuePayload {
13
+ electionId: ElectionId;
14
+ /**
15
+ * The digest of the manifest the requester read (vtc/elections/show) and its agent bound the request to. A ticket is only ever asked for under the manifest the voter saw.
16
+ */
17
+ manifestDigest: DigestMultibase;
18
+ request: TicketRequest;
19
+ ext?: Ext;
20
+ }
21
+ /**
22
+ * The blinded root request for the election's ticket class, as the voter's VTA built it (vta/pcs/voter/register). The community verifies it under its voting parameters and learns nothing else from it.
23
+ */
24
+ export interface TicketRequest {
25
+ /**
26
+ * The ticket class label, `voter/<electionId>` (CONVENTIONS §3.2). It MUST name the election `electionId` names.
27
+ */
28
+ label: string;
29
+ /**
30
+ * The voter's PCS identifier for this election, derived from the election's voter key, which is allocated for this election alone (VTI-VOT-023).
31
+ */
32
+ id: Multibase;
33
+ request: RootRequest;
34
+ }
35
+ /**
36
+ * The suite's blinded root request, serialised as vtc/vetting/vetters/pcs-root carries one. Opaque to the community beyond verifying it under its voting parameters.
37
+ */
38
+ export interface RootRequest {
39
+ /**
40
+ * The issuance encoding the suite carries.
41
+ */
42
+ encoding?: string;
43
+ /**
44
+ * The request's tag under the root context.
45
+ */
46
+ t0?: string;
47
+ /**
48
+ * The proof that the commitment is well formed and the requester holds its secret.
49
+ */
50
+ proof: string;
51
+ }
52
+ /**
53
+ * Success response to vtc/elections/tickets/issue/0.1: the blind pre-credential. The voter's VTA unblinds it into a ticket the community has never seen (vta/pcs/voter/accept).
54
+ */
55
+ export interface VTCElectionsTicketsIssueResponsePayload {
56
+ electionId: ElectionId;
57
+ /**
58
+ * The label signed under — the one asked for.
59
+ */
60
+ label: string;
61
+ /**
62
+ * The pre-credential, under the community's voting key. Useless to anyone but the holder of the request's blinding state.
63
+ */
64
+ preCredential: Multibase;
65
+ ext?: Ext;
66
+ }
67
+
68
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
69
+ export type { DigestMultibase, ElectionId, Ext, Multibase };
70
+
71
+ /** Trust Task type URI. */
72
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/elections/tickets/issue/0.1" as const;
73
+
74
+ /** Stable alias for this specification's request payload shape. */
75
+ export type Payload = VTCElectionsTicketsIssuePayload;
76
+
77
+ /** Trust Task response type URI (request type URI + "#response"). */
78
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/elections/tickets/issue/0.1#response" as const;
79
+
80
+ /** Stable alias for this specification's success-response payload shape. */
81
+ export type Response = VTCElectionsTicketsIssueResponsePayload;
82
+
83
+ /**
84
+ * This specification's payload schema, as a value.
85
+ *
86
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
87
+ * rather than only as a `.json` file because TypeScript types are erased
88
+ * at runtime: without a schema a consumer has nothing to validate, and
89
+ * every REQUIRED payload member is optional in practice. Cross-file
90
+ * `$ref`s are already inlined, so it needs no resolver.
91
+ */
92
+ export const PAYLOAD_SCHEMA = {
93
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
94
+ "$id": "https://trusttasks.org/spec/vtc/elections/tickets/issue/0.1",
95
+ "title": "VTC Elections — Tickets — Issue — payload",
96
+ "description": "An eligible party asks the community to blind-issue its ticket for one election: the community checks eligibility against its own records and signs a commitment it cannot open, so the ticket its voter's agent unblinds is one the community has never seen. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "required": [
100
+ "electionId",
101
+ "manifestDigest",
102
+ "request"
103
+ ],
104
+ "properties": {
105
+ "electionId": {
106
+ "$ref": "#/$defs/ElectionId"
107
+ },
108
+ "manifestDigest": {
109
+ "$ref": "#/$defs/DigestMultibase",
110
+ "description": "The digest of the manifest the requester read (vtc/elections/show) and its agent bound the request to. A ticket is only ever asked for under the manifest the voter saw."
111
+ },
112
+ "request": {
113
+ "$ref": "#/$defs/TicketRequest"
114
+ },
115
+ "ext": {
116
+ "$ref": "#/$defs/Ext"
117
+ }
118
+ },
119
+ "$defs": {
120
+ "TicketRequest": {
121
+ "title": "TicketRequest",
122
+ "description": "The blinded root request for the election's ticket class, as the voter's VTA built it (vta/pcs/voter/register). The community verifies it under its voting parameters and learns nothing else from it.",
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": [
126
+ "label",
127
+ "id",
128
+ "request"
129
+ ],
130
+ "properties": {
131
+ "label": {
132
+ "type": "string",
133
+ "pattern": "^voter/[A-Za-z0-9._-]{1,128}$",
134
+ "maxLength": 134,
135
+ "description": "The ticket class label, `voter/<electionId>` (CONVENTIONS §3.2). It MUST name the election `electionId` names."
136
+ },
137
+ "id": {
138
+ "$ref": "#/$defs/Multibase",
139
+ "description": "The voter's PCS identifier for this election, derived from the election's voter key, which is allocated for this election alone (VTI-VOT-023)."
140
+ },
141
+ "request": {
142
+ "$ref": "#/$defs/RootRequest"
143
+ }
144
+ }
145
+ },
146
+ "RootRequest": {
147
+ "title": "RootRequest",
148
+ "description": "The suite's blinded root request, serialised as vtc/vetting/vetters/pcs-root carries one. Opaque to the community beyond verifying it under its voting parameters.",
149
+ "type": "object",
150
+ "additionalProperties": false,
151
+ "required": [
152
+ "proof"
153
+ ],
154
+ "properties": {
155
+ "encoding": {
156
+ "type": "string",
157
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
158
+ "maxLength": 4096,
159
+ "description": "The issuance encoding the suite carries."
160
+ },
161
+ "t0": {
162
+ "type": "string",
163
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
164
+ "maxLength": 4096,
165
+ "description": "The request's tag under the root context."
166
+ },
167
+ "proof": {
168
+ "type": "string",
169
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
170
+ "maxLength": 8192,
171
+ "description": "The proof that the commitment is well formed and the requester holds its secret."
172
+ }
173
+ }
174
+ },
175
+ "Response": {
176
+ "$anchor": "response",
177
+ "title": "VTC Elections — Tickets — Issue — response payload",
178
+ "description": "Success response to vtc/elections/tickets/issue/0.1: the blind pre-credential. The voter's VTA unblinds it into a ticket the community has never seen (vta/pcs/voter/accept).",
179
+ "type": "object",
180
+ "additionalProperties": false,
181
+ "required": [
182
+ "electionId",
183
+ "label",
184
+ "preCredential"
185
+ ],
186
+ "properties": {
187
+ "electionId": {
188
+ "$ref": "#/$defs/ElectionId"
189
+ },
190
+ "label": {
191
+ "type": "string",
192
+ "pattern": "^voter/[A-Za-z0-9._-]{1,128}$",
193
+ "maxLength": 134,
194
+ "description": "The label signed under — the one asked for."
195
+ },
196
+ "preCredential": {
197
+ "$ref": "#/$defs/Multibase",
198
+ "description": "The pre-credential, under the community's voting key. Useless to anyone but the holder of the request's blinding state."
199
+ },
200
+ "ext": {
201
+ "$ref": "#/$defs/Ext"
202
+ }
203
+ }
204
+ },
205
+ "Ext": {
206
+ "title": "Ext",
207
+ "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.",
208
+ "type": "object",
209
+ "minProperties": 1,
210
+ "additionalProperties": true,
211
+ "propertyNames": {
212
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
213
+ }
214
+ },
215
+ "Multibase": {
216
+ "title": "Multibase",
217
+ "description": "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.",
218
+ "type": "string",
219
+ "maxLength": 16384,
220
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$"
221
+ },
222
+ "ElectionId": {
223
+ "title": "ElectionId",
224
+ "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.",
225
+ "type": "string",
226
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
227
+ },
228
+ "DigestMultibase": {
229
+ "title": "DigestMultibase",
230
+ "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`.",
231
+ "type": "string",
232
+ "minLength": 16,
233
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
234
+ "examples": [
235
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
236
+ ]
237
+ }
238
+ }
239
+ } as const;
240
+
241
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
242
+ export const RESPONSE_PAYLOAD_SCHEMA = {
243
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
244
+ "$ref": "#/$defs/Response",
245
+ "$defs": {
246
+ "TicketRequest": {
247
+ "title": "TicketRequest",
248
+ "description": "The blinded root request for the election's ticket class, as the voter's VTA built it (vta/pcs/voter/register). The community verifies it under its voting parameters and learns nothing else from it.",
249
+ "type": "object",
250
+ "additionalProperties": false,
251
+ "required": [
252
+ "label",
253
+ "id",
254
+ "request"
255
+ ],
256
+ "properties": {
257
+ "label": {
258
+ "type": "string",
259
+ "pattern": "^voter/[A-Za-z0-9._-]{1,128}$",
260
+ "maxLength": 134,
261
+ "description": "The ticket class label, `voter/<electionId>` (CONVENTIONS §3.2). It MUST name the election `electionId` names."
262
+ },
263
+ "id": {
264
+ "$ref": "#/$defs/Multibase",
265
+ "description": "The voter's PCS identifier for this election, derived from the election's voter key, which is allocated for this election alone (VTI-VOT-023)."
266
+ },
267
+ "request": {
268
+ "$ref": "#/$defs/RootRequest"
269
+ }
270
+ }
271
+ },
272
+ "RootRequest": {
273
+ "title": "RootRequest",
274
+ "description": "The suite's blinded root request, serialised as vtc/vetting/vetters/pcs-root carries one. Opaque to the community beyond verifying it under its voting parameters.",
275
+ "type": "object",
276
+ "additionalProperties": false,
277
+ "required": [
278
+ "proof"
279
+ ],
280
+ "properties": {
281
+ "encoding": {
282
+ "type": "string",
283
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
284
+ "maxLength": 4096,
285
+ "description": "The issuance encoding the suite carries."
286
+ },
287
+ "t0": {
288
+ "type": "string",
289
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
290
+ "maxLength": 4096,
291
+ "description": "The request's tag under the root context."
292
+ },
293
+ "proof": {
294
+ "type": "string",
295
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
296
+ "maxLength": 8192,
297
+ "description": "The proof that the commitment is well formed and the requester holds its secret."
298
+ }
299
+ }
300
+ },
301
+ "Response": {
302
+ "$anchor": "response",
303
+ "title": "VTC Elections — Tickets — Issue — response payload",
304
+ "description": "Success response to vtc/elections/tickets/issue/0.1: the blind pre-credential. The voter's VTA unblinds it into a ticket the community has never seen (vta/pcs/voter/accept).",
305
+ "type": "object",
306
+ "additionalProperties": false,
307
+ "required": [
308
+ "electionId",
309
+ "label",
310
+ "preCredential"
311
+ ],
312
+ "properties": {
313
+ "electionId": {
314
+ "$ref": "#/$defs/ElectionId"
315
+ },
316
+ "label": {
317
+ "type": "string",
318
+ "pattern": "^voter/[A-Za-z0-9._-]{1,128}$",
319
+ "maxLength": 134,
320
+ "description": "The label signed under — the one asked for."
321
+ },
322
+ "preCredential": {
323
+ "$ref": "#/$defs/Multibase",
324
+ "description": "The pre-credential, under the community's voting key. Useless to anyone but the holder of the request's blinding state."
325
+ },
326
+ "ext": {
327
+ "$ref": "#/$defs/Ext"
328
+ }
329
+ }
330
+ },
331
+ "Ext": {
332
+ "title": "Ext",
333
+ "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.",
334
+ "type": "object",
335
+ "minProperties": 1,
336
+ "additionalProperties": true,
337
+ "propertyNames": {
338
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
339
+ }
340
+ },
341
+ "Multibase": {
342
+ "title": "Multibase",
343
+ "description": "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.",
344
+ "type": "string",
345
+ "maxLength": 16384,
346
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$"
347
+ },
348
+ "ElectionId": {
349
+ "title": "ElectionId",
350
+ "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.",
351
+ "type": "string",
352
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
353
+ },
354
+ "DigestMultibase": {
355
+ "title": "DigestMultibase",
356
+ "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`.",
357
+ "type": "string",
358
+ "minLength": 16,
359
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
360
+ "examples": [
361
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
362
+ ]
363
+ }
364
+ }
365
+ } as const;
366
+
367
+ /**
368
+ * SPEC.md §7.2 policy for the request variant, from this specification's
369
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
370
+ * per-specification and cannot be derived from the document alone, and
371
+ * item 2 needs the schema this carries.
372
+ */
373
+ export const SPEC = {
374
+ typeUri: TYPE_URI,
375
+ isBearer: false,
376
+ isProofRequired: true,
377
+ isRecipientRequired: true,
378
+ isIssuedAtRequired: true,
379
+ payloadSchema: PAYLOAD_SCHEMA,
380
+ } as const;
381
+
382
+ /**
383
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
384
+ * tracks the *issuer* party's requirement because a response swaps the
385
+ * parties (§7.3 item 5).
386
+ */
387
+ export const RESPONSE_SPEC = {
388
+ typeUri: RESPONSE_TYPE_URI,
389
+ isBearer: false,
390
+ isProofRequired: true,
391
+ isRecipientRequired: true,
392
+ isIssuedAtRequired: true,
393
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
394
+ } as const;
@@ -217,7 +217,7 @@ export const PAYLOAD_SCHEMA = {
217
217
  "items": {
218
218
  "$ref": "#/$defs/EntryId"
219
219
  },
220
- "description": "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant, never by this record."
220
+ "description": "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant (vtc/groups/managers/add), never by this record."
221
221
  },
222
222
  "credentialAuthorityValidUntil": {
223
223
  "type": "string",
@@ -487,7 +487,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
487
487
  "items": {
488
488
  "$ref": "#/$defs/EntryId"
489
489
  },
490
- "description": "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant, never by this record."
490
+ "description": "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant (vtc/groups/managers/add), never by this record."
491
491
  },
492
492
  "credentialAuthorityValidUntil": {
493
493
  "type": "string",
@@ -230,7 +230,7 @@ export const PAYLOAD_SCHEMA = {
230
230
  "items": {
231
231
  "$ref": "#/$defs/EntryId"
232
232
  },
233
- "description": "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant, never by this record."
233
+ "description": "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant (vtc/groups/managers/add), never by this record."
234
234
  },
235
235
  "credentialAuthorityValidUntil": {
236
236
  "type": "string",
@@ -532,7 +532,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
532
532
  "items": {
533
533
  "$ref": "#/$defs/EntryId"
534
534
  },
535
- "description": "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant, never by this record."
535
+ "description": "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant (vtc/groups/managers/add), never by this record."
536
536
  },
537
537
  "credentialAuthorityValidUntil": {
538
538
  "type": "string",
@@ -0,0 +1,230 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/groups/managers/add/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { EntryId, Ext, GroupId } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A group manager, or an administrator who manages every group, appoints a community member a manager of one group: an access-control resource grant of `vtc.groups.manage` qualified to that group. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCGroupsManagersAddPayload {
13
+ groupId: GroupId;
14
+ /**
15
+ * The member appointed.
16
+ */
17
+ entryId: EntryId;
18
+ /**
19
+ * Why, recorded with the change.
20
+ */
21
+ reason?: string;
22
+ ext?: Ext;
23
+ }
24
+ /**
25
+ * The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.
26
+ */
27
+ export interface VTCGroupsManagersAddResponsePayload {
28
+ groupId: GroupId;
29
+ /**
30
+ * The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed.
31
+ *
32
+ * @maxItems 256
33
+ */
34
+ managers: EntryId[];
35
+ ext?: Ext;
36
+ }
37
+
38
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
39
+ export type { EntryId, Ext, GroupId };
40
+
41
+ /** Trust Task type URI. */
42
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/groups/managers/add/0.1" as const;
43
+
44
+ /** Stable alias for this specification's request payload shape. */
45
+ export type Payload = VTCGroupsManagersAddPayload;
46
+
47
+ /** Trust Task response type URI (request type URI + "#response"). */
48
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response" as const;
49
+
50
+ /** Stable alias for this specification's success-response payload shape. */
51
+ export type Response = VTCGroupsManagersAddResponsePayload;
52
+
53
+ /**
54
+ * This specification's payload schema, as a value.
55
+ *
56
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
57
+ * rather than only as a `.json` file because TypeScript types are erased
58
+ * at runtime: without a schema a consumer has nothing to validate, and
59
+ * every REQUIRED payload member is optional in practice. Cross-file
60
+ * `$ref`s are already inlined, so it needs no resolver.
61
+ */
62
+ export const PAYLOAD_SCHEMA = {
63
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
64
+ "$id": "https://trusttasks.org/spec/vtc/groups/managers/add/0.1",
65
+ "title": "VTC Groups — Managers — Add — payload",
66
+ "description": "A group manager, or an administrator who manages every group, appoints a community member a manager of one group: an access-control resource grant of `vtc.groups.manage` qualified to that group. The outer document members are owned by the framework — SPEC §6.3.",
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": [
70
+ "groupId",
71
+ "entryId"
72
+ ],
73
+ "properties": {
74
+ "groupId": {
75
+ "$ref": "#/$defs/GroupId"
76
+ },
77
+ "entryId": {
78
+ "$ref": "#/$defs/EntryId",
79
+ "description": "The member appointed."
80
+ },
81
+ "reason": {
82
+ "type": "string",
83
+ "minLength": 1,
84
+ "maxLength": 1024,
85
+ "description": "Why, recorded with the change."
86
+ },
87
+ "ext": {
88
+ "$ref": "#/$defs/Ext"
89
+ }
90
+ },
91
+ "$defs": {
92
+ "Response": {
93
+ "$anchor": "response",
94
+ "title": "VTC Groups — Managers — Add — response payload",
95
+ "description": "The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.",
96
+ "type": "object",
97
+ "additionalProperties": false,
98
+ "required": [
99
+ "groupId",
100
+ "managers"
101
+ ],
102
+ "properties": {
103
+ "groupId": {
104
+ "$ref": "#/$defs/GroupId"
105
+ },
106
+ "managers": {
107
+ "type": "array",
108
+ "maxItems": 256,
109
+ "uniqueItems": true,
110
+ "items": {
111
+ "$ref": "#/$defs/EntryId"
112
+ },
113
+ "description": "The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed."
114
+ },
115
+ "ext": {
116
+ "$ref": "#/$defs/Ext"
117
+ }
118
+ }
119
+ },
120
+ "Ext": {
121
+ "title": "Ext",
122
+ "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.",
123
+ "type": "object",
124
+ "minProperties": 1,
125
+ "additionalProperties": true,
126
+ "propertyNames": {
127
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
128
+ }
129
+ },
130
+ "EntryId": {
131
+ "title": "EntryId",
132
+ "description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
133
+ "type": "string",
134
+ "pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
135
+ },
136
+ "GroupId": {
137
+ "title": "GroupId",
138
+ "description": "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.",
139
+ "type": "string",
140
+ "pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
141
+ }
142
+ }
143
+ } as const;
144
+
145
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
146
+ export const RESPONSE_PAYLOAD_SCHEMA = {
147
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
148
+ "$ref": "#/$defs/Response",
149
+ "$defs": {
150
+ "Response": {
151
+ "$anchor": "response",
152
+ "title": "VTC Groups — Managers — Add — response payload",
153
+ "description": "The success response to a vtc/groups/managers/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/managers/add/0.1#response.",
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "required": [
157
+ "groupId",
158
+ "managers"
159
+ ],
160
+ "properties": {
161
+ "groupId": {
162
+ "$ref": "#/$defs/GroupId"
163
+ },
164
+ "managers": {
165
+ "type": "array",
166
+ "maxItems": 256,
167
+ "uniqueItems": true,
168
+ "items": {
169
+ "$ref": "#/$defs/EntryId"
170
+ },
171
+ "description": "The group's managers after the appointment. Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list; administrators who manage every group are not listed."
172
+ },
173
+ "ext": {
174
+ "$ref": "#/$defs/Ext"
175
+ }
176
+ }
177
+ },
178
+ "Ext": {
179
+ "title": "Ext",
180
+ "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.",
181
+ "type": "object",
182
+ "minProperties": 1,
183
+ "additionalProperties": true,
184
+ "propertyNames": {
185
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
186
+ }
187
+ },
188
+ "EntryId": {
189
+ "title": "EntryId",
190
+ "description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
191
+ "type": "string",
192
+ "pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
193
+ },
194
+ "GroupId": {
195
+ "title": "GroupId",
196
+ "description": "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.",
197
+ "type": "string",
198
+ "pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
199
+ }
200
+ }
201
+ } as const;
202
+
203
+ /**
204
+ * SPEC.md §7.2 policy for the request variant, from this specification's
205
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
206
+ * per-specification and cannot be derived from the document alone, and
207
+ * item 2 needs the schema this carries.
208
+ */
209
+ export const SPEC = {
210
+ typeUri: TYPE_URI,
211
+ isBearer: false,
212
+ isProofRequired: true,
213
+ isRecipientRequired: true,
214
+ isIssuedAtRequired: true,
215
+ payloadSchema: PAYLOAD_SCHEMA,
216
+ } as const;
217
+
218
+ /**
219
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
220
+ * tracks the *issuer* party's requirement because a response swaps the
221
+ * parties (§7.3 item 5).
222
+ */
223
+ export const RESPONSE_SPEC = {
224
+ typeUri: RESPONSE_TYPE_URI,
225
+ isBearer: false,
226
+ isProofRequired: true,
227
+ isRecipientRequired: true,
228
+ isIssuedAtRequired: true,
229
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
230
+ } as const;