@openvtc/trust-tasks 0.28.2 → 0.28.3

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 (225) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/_extends.d.ts.map +1 -1
  3. package/dist/_extends.js +7 -1
  4. package/dist/_extends.js.map +1 -1
  5. package/dist/_shared/components.d.ts +530 -3
  6. package/dist/_shared/components.d.ts.map +1 -1
  7. package/dist/index.d.ts +57 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +57 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  12. package/dist/rooms/records/put/0.1/payload.js +1 -1
  13. package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
  14. package/dist/rooms/records/put/0.2/payload.js +1 -1
  15. package/dist/rooms/records/put/0.3/payload.d.ts +14 -2
  16. package/dist/rooms/records/put/0.3/payload.d.ts.map +1 -1
  17. package/dist/rooms/records/put/0.3/payload.js +1 -1
  18. package/dist/rooms/records/put/0.3/payload.js.map +1 -1
  19. package/dist/rooms/records/put/0.4/payload.d.ts +1474 -0
  20. package/dist/rooms/records/put/0.4/payload.d.ts.map +1 -0
  21. package/dist/rooms/records/put/0.4/payload.js +804 -0
  22. package/dist/rooms/records/put/0.4/payload.js.map +1 -0
  23. package/dist/vta/_shared/0.3/did-key-roles.d.ts +1 -1
  24. package/dist/vta/_shared/0.9/did-template.d.ts +16 -0
  25. package/dist/vta/_shared/0.9/did-template.d.ts.map +1 -0
  26. package/dist/vta/_shared/0.9/did-template.js +6 -0
  27. package/dist/vta/_shared/0.9/did-template.js.map +1 -0
  28. package/dist/vta/did-templates/create/2.0/payload.d.ts +3 -3
  29. package/dist/vta/did-templates/create/2.0/payload.js +1 -1
  30. package/dist/vta/did-templates/create/3.0/payload.d.ts +3 -3
  31. package/dist/vta/did-templates/create/3.0/payload.js +1 -1
  32. package/dist/vta/did-templates/create/3.1/payload.d.ts +12 -2
  33. package/dist/vta/did-templates/create/3.1/payload.d.ts.map +1 -1
  34. package/dist/vta/did-templates/create/3.1/payload.js +1 -1
  35. package/dist/vta/did-templates/create/3.1/payload.js.map +1 -1
  36. package/dist/vta/did-templates/create/3.2/payload.d.ts +1310 -0
  37. package/dist/vta/did-templates/create/3.2/payload.d.ts.map +1 -0
  38. package/dist/vta/did-templates/create/3.2/payload.js +832 -0
  39. package/dist/vta/did-templates/create/3.2/payload.js.map +1 -0
  40. package/dist/vta/did-templates/get/2.0/payload.d.ts +3 -3
  41. package/dist/vta/did-templates/get/2.0/payload.js +1 -1
  42. package/dist/vta/did-templates/get/3.0/payload.d.ts +3 -3
  43. package/dist/vta/did-templates/get/3.0/payload.js +1 -1
  44. package/dist/vta/did-templates/get/3.1/payload.d.ts +12 -2
  45. package/dist/vta/did-templates/get/3.1/payload.d.ts.map +1 -1
  46. package/dist/vta/did-templates/get/3.1/payload.js +1 -1
  47. package/dist/vta/did-templates/get/3.1/payload.js.map +1 -1
  48. package/dist/vta/did-templates/get/3.2/payload.d.ts +928 -0
  49. package/dist/vta/did-templates/get/3.2/payload.d.ts.map +1 -0
  50. package/dist/vta/did-templates/get/3.2/payload.js +593 -0
  51. package/dist/vta/did-templates/get/3.2/payload.js.map +1 -0
  52. package/dist/vta/did-templates/list/2.0/payload.d.ts +4 -4
  53. package/dist/vta/did-templates/list/2.0/payload.js +1 -1
  54. package/dist/vta/did-templates/list/3.0/payload.d.ts +4 -4
  55. package/dist/vta/did-templates/list/3.0/payload.js +1 -1
  56. package/dist/vta/did-templates/list/3.1/payload.d.ts +14 -2
  57. package/dist/vta/did-templates/list/3.1/payload.d.ts.map +1 -1
  58. package/dist/vta/did-templates/list/3.1/payload.js +1 -1
  59. package/dist/vta/did-templates/list/3.1/payload.js.map +1 -1
  60. package/dist/vta/did-templates/list/3.2/payload.d.ts +985 -0
  61. package/dist/vta/did-templates/list/3.2/payload.d.ts.map +1 -0
  62. package/dist/vta/did-templates/list/3.2/payload.js +619 -0
  63. package/dist/vta/did-templates/list/3.2/payload.js.map +1 -0
  64. package/dist/vta/did-templates/update/2.0/payload.d.ts +3 -3
  65. package/dist/vta/did-templates/update/2.0/payload.js +1 -1
  66. package/dist/vta/did-templates/update/3.0/payload.d.ts +3 -3
  67. package/dist/vta/did-templates/update/3.0/payload.js +1 -1
  68. package/dist/vta/did-templates/update/3.1/payload.d.ts +12 -2
  69. package/dist/vta/did-templates/update/3.1/payload.d.ts.map +1 -1
  70. package/dist/vta/did-templates/update/3.1/payload.js +1 -1
  71. package/dist/vta/did-templates/update/3.1/payload.js.map +1 -1
  72. package/dist/vta/did-templates/update/3.2/payload.d.ts +1324 -0
  73. package/dist/vta/did-templates/update/3.2/payload.d.ts.map +1 -0
  74. package/dist/vta/did-templates/update/3.2/payload.js +838 -0
  75. package/dist/vta/did-templates/update/3.2/payload.js.map +1 -0
  76. package/dist/vta/dids/_shared/0.1/key-roles.d.ts +16 -0
  77. package/dist/vta/dids/_shared/0.1/key-roles.d.ts.map +1 -0
  78. package/dist/vta/dids/_shared/0.1/key-roles.js +6 -0
  79. package/dist/vta/dids/_shared/0.1/key-roles.js.map +1 -0
  80. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.d.ts +11 -0
  81. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.d.ts.map +1 -0
  82. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.js +6 -0
  83. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.js.map +1 -0
  84. package/dist/vta/dids/create/1.0/payload.d.ts +2613 -0
  85. package/dist/vta/dids/create/1.0/payload.d.ts.map +1 -0
  86. package/dist/vta/dids/create/1.0/payload.js +1554 -0
  87. package/dist/vta/dids/create/1.0/payload.js.map +1 -0
  88. package/dist/vta/dids/keys/add/1.0/payload.d.ts +2447 -0
  89. package/dist/vta/dids/keys/add/1.0/payload.d.ts.map +1 -0
  90. package/dist/vta/dids/keys/add/1.0/payload.js +1469 -0
  91. package/dist/vta/dids/keys/add/1.0/payload.js.map +1 -0
  92. package/dist/vta/dids/keys/list/1.0/payload.d.ts +1855 -0
  93. package/dist/vta/dids/keys/list/1.0/payload.d.ts.map +1 -0
  94. package/dist/vta/dids/keys/list/1.0/payload.js +1116 -0
  95. package/dist/vta/dids/keys/list/1.0/payload.js.map +1 -0
  96. package/dist/vta/dids/keys/retire/1.0/payload.d.ts +2449 -0
  97. package/dist/vta/dids/keys/retire/1.0/payload.d.ts.map +1 -0
  98. package/dist/vta/dids/keys/retire/1.0/payload.js +1469 -0
  99. package/dist/vta/dids/keys/retire/1.0/payload.js.map +1 -0
  100. package/dist/vta/dids/keys/revoke/1.0/payload.d.ts +2701 -0
  101. package/dist/vta/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
  102. package/dist/vta/dids/keys/revoke/1.0/payload.js +1597 -0
  103. package/dist/vta/dids/keys/revoke/1.0/payload.js.map +1 -0
  104. package/dist/vta/dids/keys/rotate/1.0/payload.d.ts +2628 -0
  105. package/dist/vta/dids/keys/rotate/1.0/payload.d.ts.map +1 -0
  106. package/dist/vta/dids/keys/rotate/1.0/payload.js +1555 -0
  107. package/dist/vta/dids/keys/rotate/1.0/payload.js.map +1 -0
  108. package/dist/vta/dids/recover/1.0/payload.d.ts +2702 -0
  109. package/dist/vta/dids/recover/1.0/payload.d.ts.map +1 -0
  110. package/dist/vta/dids/recover/1.0/payload.js +1597 -0
  111. package/dist/vta/dids/recover/1.0/payload.js.map +1 -0
  112. package/dist/vta/dids/update/1.0/payload.d.ts +1422 -0
  113. package/dist/vta/dids/update/1.0/payload.d.ts.map +1 -0
  114. package/dist/vta/dids/update/1.0/payload.js +861 -0
  115. package/dist/vta/dids/update/1.0/payload.js.map +1 -0
  116. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +14 -2
  117. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -1
  118. package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1 -1
  119. package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -1
  120. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +14 -2
  121. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -1
  122. package/dist/vta/webvh/dids/keys/list/1.0/payload.js +1 -1
  123. package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -1
  124. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +14 -2
  125. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -1
  126. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1 -1
  127. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -1
  128. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +14 -2
  129. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -1
  130. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1 -1
  131. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -1
  132. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts +2 -14
  133. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts.map +1 -1
  134. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js +1 -1
  135. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js.map +1 -1
  136. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +14 -2
  137. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -1
  138. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1 -1
  139. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -1
  140. package/dist/vta/webvh/dids/update/1.0/payload.d.ts +2 -14
  141. package/dist/vta/webvh/dids/update/1.0/payload.d.ts.map +1 -1
  142. package/dist/vta/webvh/dids/update/1.0/payload.js +1 -1
  143. package/dist/vta/webvh/dids/update/1.0/payload.js.map +1 -1
  144. package/dist/vta/webvh/dids/update/2.0/payload.d.ts +4 -4
  145. package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -1
  146. package/dist/vta/webvh/dids/update/2.0/payload.js +1 -1
  147. package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -1
  148. package/dist/vta/webvh/dids/update/2.1/payload.d.ts +14 -2
  149. package/dist/vta/webvh/dids/update/2.1/payload.d.ts.map +1 -1
  150. package/dist/vta/webvh/dids/update/2.1/payload.js +1 -1
  151. package/dist/vta/webvh/dids/update/2.1/payload.js.map +1 -1
  152. package/dist/vtc/_shared/0.2/invite.d.ts +16 -0
  153. package/dist/vtc/_shared/0.2/invite.d.ts.map +1 -0
  154. package/dist/vtc/_shared/0.2/invite.js +6 -0
  155. package/dist/vtc/_shared/0.2/invite.js.map +1 -0
  156. package/dist/vtc/admin/invites/create/0.1/payload.d.ts +12 -2
  157. package/dist/vtc/admin/invites/create/0.1/payload.d.ts.map +1 -1
  158. package/dist/vtc/admin/invites/create/0.1/payload.js +1 -1
  159. package/dist/vtc/admin/invites/create/0.1/payload.js.map +1 -1
  160. package/dist/vtc/admin/invites/create/0.2/payload.d.ts +404 -0
  161. package/dist/vtc/admin/invites/create/0.2/payload.d.ts.map +1 -0
  162. package/dist/vtc/admin/invites/create/0.2/payload.js +230 -0
  163. package/dist/vtc/admin/invites/create/0.2/payload.js.map +1 -0
  164. package/dist/vtc/admin/invites/list/0.1/payload.d.ts +12 -2
  165. package/dist/vtc/admin/invites/list/0.1/payload.d.ts.map +1 -1
  166. package/dist/vtc/admin/invites/list/0.1/payload.js +1 -1
  167. package/dist/vtc/admin/invites/list/0.1/payload.js.map +1 -1
  168. package/dist/vtc/admin/invites/list/0.2/payload.d.ts +431 -0
  169. package/dist/vtc/admin/invites/list/0.2/payload.d.ts.map +1 -0
  170. package/dist/vtc/admin/invites/list/0.2/payload.js +264 -0
  171. package/dist/vtc/admin/invites/list/0.2/payload.js.map +1 -0
  172. package/dist/vtc/credentials/reissue/0.1/payload.d.ts +3 -3
  173. package/dist/vtc/credentials/reissue/0.1/payload.js +1 -1
  174. package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -1
  175. package/package.json +1 -1
  176. package/src/_extends.ts +5 -0
  177. package/src/_shared/components.ts +556 -3
  178. package/src/index.ts +57 -0
  179. package/src/rooms/records/put/0.1/payload.ts +5 -5
  180. package/src/rooms/records/put/0.2/payload.ts +5 -5
  181. package/src/rooms/records/put/0.3/payload.ts +15 -3
  182. package/src/rooms/records/put/0.4/payload.ts +905 -0
  183. package/src/vta/_shared/0.3/did-key-roles.ts +1 -1
  184. package/src/vta/_shared/0.9/did-template.ts +17 -0
  185. package/src/vta/did-templates/create/2.0/payload.ts +4 -4
  186. package/src/vta/did-templates/create/3.0/payload.ts +4 -4
  187. package/src/vta/did-templates/create/3.1/payload.ts +13 -3
  188. package/src/vta/did-templates/create/3.2/payload.ts +869 -0
  189. package/src/vta/did-templates/get/2.0/payload.ts +4 -4
  190. package/src/vta/did-templates/get/3.0/payload.ts +4 -4
  191. package/src/vta/did-templates/get/3.1/payload.ts +13 -3
  192. package/src/vta/did-templates/get/3.2/payload.ts +630 -0
  193. package/src/vta/did-templates/list/2.0/payload.ts +5 -5
  194. package/src/vta/did-templates/list/3.0/payload.ts +5 -5
  195. package/src/vta/did-templates/list/3.1/payload.ts +15 -3
  196. package/src/vta/did-templates/list/3.2/payload.ts +665 -0
  197. package/src/vta/did-templates/update/2.0/payload.ts +4 -4
  198. package/src/vta/did-templates/update/3.0/payload.ts +4 -4
  199. package/src/vta/did-templates/update/3.1/payload.ts +13 -3
  200. package/src/vta/did-templates/update/3.2/payload.ts +879 -0
  201. package/src/vta/dids/_shared/0.1/key-roles.ts +17 -0
  202. package/src/vta/dids/_shared/0.1/method-profiles/webvh-parameters.ts +11 -0
  203. package/src/vta/dids/create/1.0/payload.ts +1648 -0
  204. package/src/vta/dids/keys/add/1.0/payload.ts +1553 -0
  205. package/src/vta/dids/keys/list/1.0/payload.ts +1178 -0
  206. package/src/vta/dids/keys/retire/1.0/payload.ts +1553 -0
  207. package/src/vta/dids/keys/revoke/1.0/payload.ts +1697 -0
  208. package/src/vta/dids/keys/rotate/1.0/payload.ts +1658 -0
  209. package/src/vta/dids/recover/1.0/payload.ts +1700 -0
  210. package/src/vta/dids/update/1.0/payload.ts +940 -0
  211. package/src/vta/webvh/dids/keys/add/1.0/payload.ts +15 -3
  212. package/src/vta/webvh/dids/keys/list/1.0/payload.ts +15 -3
  213. package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +15 -3
  214. package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +15 -3
  215. package/src/vta/webvh/dids/rotate-keys/1.0/payload.ts +3 -15
  216. package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +15 -3
  217. package/src/vta/webvh/dids/update/1.0/payload.ts +3 -15
  218. package/src/vta/webvh/dids/update/2.0/payload.ts +5 -5
  219. package/src/vta/webvh/dids/update/2.1/payload.ts +15 -3
  220. package/src/vtc/_shared/0.2/invite.ts +17 -0
  221. package/src/vtc/admin/invites/create/0.1/payload.ts +13 -3
  222. package/src/vtc/admin/invites/create/0.2/payload.ts +289 -0
  223. package/src/vtc/admin/invites/list/0.1/payload.ts +13 -3
  224. package/src/vtc/admin/invites/list/0.2/payload.ts +294 -0
  225. package/src/vtc/credentials/reissue/0.1/payload.ts +2 -2
@@ -0,0 +1,1178 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/dids/keys/list/1.0/payload.schema.json
4
+ */
5
+
6
+ import type { ApprovalEvidenceKind, DidMethodName, DidVerificationRelationship, Ext, IdentityKeyCustody, IdentityKeyRole, IdentityRoleKey, KeyChangeApprovalState, KeyChangeKind, KeyChangeRecord, KeyChangeState, KeyLifecycleState, KeyListProjection, KeyOrigin, KeyRoleSummary, KeyType, ProtectionClass, RecordedApproval, UpdateKeyClass } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * List the key roles of a key-role identity a VTA holds keys for: each role's keys and their states, the update authority and recovery commitment, and optionally the rotation history, in the public or custody projection (CONVENTIONS.md §11).
11
+ */
12
+ export interface VTADIDsKeysListPayload {
13
+ /**
14
+ * The key-role identity, by DID (for a `did:scid` identity, the DID without `src`).
15
+ */
16
+ did: string;
17
+ /**
18
+ * Return only these roles. Absent returns every role. Present-but-empty is refused by the schema rather than read as 'every role'.
19
+ *
20
+ * @minItems 1
21
+ */
22
+ roles?: [IdentityKeyRole, ...IdentityKeyRole[]];
23
+ /**
24
+ * Include `retired` and `revoked` keys. Absent reads as false. A `revoked` key the document still lists is always included.
25
+ */
26
+ includeEnded?: boolean;
27
+ /**
28
+ * Include the rotation history. Absent reads as false.
29
+ */
30
+ includeHistory?: boolean;
31
+ ext?: Ext;
32
+ }
33
+ export interface VTADIDsKeysListResponsePayload {
34
+ did: string;
35
+ method: DidMethodName;
36
+ /**
37
+ * The version the answer describes. Pass it as `expectedVersionId` to a change made on its strength.
38
+ */
39
+ versionId: string;
40
+ projection: KeyListProjection;
41
+ /**
42
+ * One entry per role asked for, including roles with no keys.
43
+ */
44
+ roles: KeyRoleSummary[];
45
+ /**
46
+ * Present exactly when `includeHistory` was true. Newest first.
47
+ */
48
+ rotations?: KeyChangeRecord[];
49
+ ext?: Ext;
50
+ }
51
+
52
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
53
+ export type { ApprovalEvidenceKind, DidMethodName, DidVerificationRelationship, Ext, IdentityKeyCustody, IdentityKeyRole, IdentityRoleKey, KeyChangeApprovalState, KeyChangeKind, KeyChangeRecord, KeyChangeState, KeyLifecycleState, KeyListProjection, KeyOrigin, KeyRoleSummary, KeyType, ProtectionClass, RecordedApproval, UpdateKeyClass };
54
+
55
+ /** Trust Task type URI. */
56
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/dids/keys/list/1.0" as const;
57
+
58
+ /**
59
+ * The earlier version of this specification that this one declares it
60
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
61
+ * `null`. Only the direct declaration — follow the chain with
62
+ * `extendsChain` / `readForSpec`.
63
+ */
64
+ export const EXTENDS: string | null = null;
65
+
66
+ /**
67
+ * Why this version is deprecated, or `null` while it is current. A
68
+ * superseded or retired version is still supported, and is withdrawn from
69
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
70
+ * Versions").
71
+ */
72
+ export const DEPRECATION: string | null = null;
73
+
74
+ /** Stable alias for this specification's request payload shape. */
75
+ export type Payload = VTADIDsKeysListPayload;
76
+
77
+ /** Trust Task response type URI (request type URI + "#response"). */
78
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/dids/keys/list/1.0#response" as const;
79
+
80
+ /** Stable alias for this specification's success-response payload shape. */
81
+ export type Response = VTADIDsKeysListResponsePayload;
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/vta/dids/keys/list/1.0",
95
+ "title": "VTA DIDs — Keys List — payload",
96
+ "description": "List the key roles of a key-role identity a VTA holds keys for: each role's keys and their states, the update authority and recovery commitment, and optionally the rotation history, in the public or custody projection (CONVENTIONS.md §11).",
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "required": [
100
+ "did"
101
+ ],
102
+ "properties": {
103
+ "did": {
104
+ "type": "string",
105
+ "minLength": 1,
106
+ "description": "The key-role identity, by DID (for a `did:scid` identity, the DID without `src`)."
107
+ },
108
+ "roles": {
109
+ "type": "array",
110
+ "minItems": 1,
111
+ "uniqueItems": true,
112
+ "items": {
113
+ "$ref": "#/$defs/IdentityKeyRole"
114
+ },
115
+ "description": "Return only these roles. Absent returns every role. Present-but-empty is refused by the schema rather than read as 'every role'."
116
+ },
117
+ "includeEnded": {
118
+ "type": "boolean",
119
+ "description": "Include `retired` and `revoked` keys. Absent reads as false. A `revoked` key the document still lists is always included."
120
+ },
121
+ "includeHistory": {
122
+ "type": "boolean",
123
+ "description": "Include the rotation history. Absent reads as false."
124
+ },
125
+ "ext": {
126
+ "$ref": "#/$defs/Ext"
127
+ }
128
+ },
129
+ "$defs": {
130
+ "Response": {
131
+ "$anchor": "response",
132
+ "title": "VTA DIDs — Keys List — response payload",
133
+ "type": "object",
134
+ "additionalProperties": false,
135
+ "required": [
136
+ "did",
137
+ "method",
138
+ "versionId",
139
+ "projection",
140
+ "roles"
141
+ ],
142
+ "properties": {
143
+ "did": {
144
+ "type": "string"
145
+ },
146
+ "method": {
147
+ "$ref": "#/$defs/DidMethodName"
148
+ },
149
+ "versionId": {
150
+ "type": "string",
151
+ "description": "The version the answer describes. Pass it as `expectedVersionId` to a change made on its strength."
152
+ },
153
+ "projection": {
154
+ "$ref": "#/$defs/KeyListProjection"
155
+ },
156
+ "roles": {
157
+ "type": "array",
158
+ "items": {
159
+ "$ref": "#/$defs/KeyRoleSummary"
160
+ },
161
+ "description": "One entry per role asked for, including roles with no keys."
162
+ },
163
+ "rotations": {
164
+ "type": "array",
165
+ "items": {
166
+ "$ref": "#/$defs/KeyChangeRecord"
167
+ },
168
+ "description": "Present exactly when `includeHistory` was true. Newest first."
169
+ },
170
+ "ext": {
171
+ "$ref": "#/$defs/Ext"
172
+ }
173
+ }
174
+ },
175
+ "Ext": {
176
+ "title": "Ext",
177
+ "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.",
178
+ "type": "object",
179
+ "minProperties": 1,
180
+ "additionalProperties": true,
181
+ "propertyNames": {
182
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
183
+ }
184
+ },
185
+ "KeyChangeRecord": {
186
+ "title": "KeyChangeRecord",
187
+ "type": "object",
188
+ "additionalProperties": false,
189
+ "required": [
190
+ "rotationId",
191
+ "role",
192
+ "kind",
193
+ "state"
194
+ ],
195
+ "description": "One change to a role's key set, from preview to completion. The identifier's history is the authority for what was published; this record adds which change was which and, in the custody projection, who asked, who approved, and why.",
196
+ "properties": {
197
+ "rotationId": {
198
+ "type": "string",
199
+ "minLength": 1
200
+ },
201
+ "role": {
202
+ "$ref": "#/$defs/IdentityKeyRole"
203
+ },
204
+ "kind": {
205
+ "$ref": "#/$defs/KeyChangeKind"
206
+ },
207
+ "state": {
208
+ "$ref": "#/$defs/KeyChangeState"
209
+ },
210
+ "predecessors": {
211
+ "type": "array",
212
+ "items": {
213
+ "type": "string"
214
+ },
215
+ "description": "Verification-method identifiers (for `update`, public keys or commitments) leaving the role."
216
+ },
217
+ "successors": {
218
+ "type": "array",
219
+ "items": {
220
+ "type": "string"
221
+ },
222
+ "description": "Verification-method identifiers (for `update`, public keys or commitments) entering the role."
223
+ },
224
+ "startedInVersionId": {
225
+ "type": "string"
226
+ },
227
+ "endedInVersionId": {
228
+ "type": "string"
229
+ },
230
+ "startedAt": {
231
+ "type": "string",
232
+ "format": "date-time"
233
+ },
234
+ "cacheHorizonAt": {
235
+ "type": "string",
236
+ "format": "date-time",
237
+ "description": "Planned rotations: the publishing change's cache horizon (CONVENTIONS.md §10.1). The switch and any retirement happen no earlier."
238
+ },
239
+ "activatesAt": {
240
+ "type": "string",
241
+ "format": "date-time",
242
+ "description": "When the successor becomes `active` and the predecessor `retiring`; never before `cacheHorizonAt`."
243
+ },
244
+ "overlapUntil": {
245
+ "type": "string",
246
+ "format": "date-time",
247
+ "description": "Custody projection only. End of the overlap."
248
+ },
249
+ "autoRetire": {
250
+ "type": "boolean",
251
+ "description": "Custody projection only. Whether the VTA retires the predecessor itself at `overlapUntil`."
252
+ },
253
+ "endedAt": {
254
+ "type": "string",
255
+ "format": "date-time"
256
+ },
257
+ "initiatedBy": {
258
+ "type": "string",
259
+ "description": "Custody projection only. VID of the administrator whose signed request started the change."
260
+ },
261
+ "approvals": {
262
+ "$ref": "#/$defs/KeyChangeApprovalState"
263
+ },
264
+ "reason": {
265
+ "type": "string",
266
+ "maxLength": 1024,
267
+ "description": "Custody projection only. The operator's stated reason. Never published."
268
+ },
269
+ "ext": {
270
+ "$ref": "#/$defs/Ext"
271
+ }
272
+ }
273
+ },
274
+ "KeyChangeApprovalState": {
275
+ "title": "KeyChangeApprovalState",
276
+ "type": "object",
277
+ "additionalProperties": false,
278
+ "required": [
279
+ "required",
280
+ "received",
281
+ "expiresAt"
282
+ ],
283
+ "description": "Approval progress of a change the VTA's policy gates on approvals (CONVENTIONS.md §6).",
284
+ "properties": {
285
+ "required": {
286
+ "type": "integer",
287
+ "minimum": 1,
288
+ "description": "Distinct approvals the VTA's policy requires."
289
+ },
290
+ "received": {
291
+ "type": "integer",
292
+ "minimum": 0,
293
+ "description": "Distinct approvals recorded so far, the initiator's own included."
294
+ },
295
+ "approvals": {
296
+ "type": "array",
297
+ "items": {
298
+ "$ref": "#/$defs/RecordedApproval"
299
+ },
300
+ "description": "The approvals recorded. Custody projection only; omitted from a response to anyone who is not themselves an eligible approver of this change."
301
+ },
302
+ "expiresAt": {
303
+ "type": "string",
304
+ "format": "date-time",
305
+ "description": "When the preview, and every approval bound to it, stops being usable."
306
+ }
307
+ }
308
+ },
309
+ "RecordedApproval": {
310
+ "title": "RecordedApproval",
311
+ "type": "object",
312
+ "additionalProperties": false,
313
+ "required": [
314
+ "approver",
315
+ "evidence"
316
+ ],
317
+ "properties": {
318
+ "approver": {
319
+ "type": "string",
320
+ "minLength": 1,
321
+ "description": "VID of the approver."
322
+ },
323
+ "evidence": {
324
+ "$ref": "#/$defs/ApprovalEvidenceKind"
325
+ },
326
+ "recordedAt": {
327
+ "type": "string",
328
+ "format": "date-time"
329
+ }
330
+ }
331
+ },
332
+ "ApprovalEvidenceKind": {
333
+ "title": "ApprovalEvidenceKind",
334
+ "type": "string",
335
+ "enum": [
336
+ "didSigned",
337
+ "webauthn",
338
+ "approverSigned"
339
+ ],
340
+ "description": "The evidence an approval was recorded on, as `auth/step-up/approve-response` names it. Only the approver's own evidence is ever recorded: a proof by a key the VTA records as acting for an approver — a console signing key or any other delegation — is never an approval (CONVENTIONS.md §6.3)."
341
+ },
342
+ "KeyChangeState": {
343
+ "title": "KeyChangeState",
344
+ "type": "string",
345
+ "enum": [
346
+ "pendingApproval",
347
+ "awaitingRecoveryProof",
348
+ "staged",
349
+ "overlapping",
350
+ "completed",
351
+ "aborted",
352
+ "expired"
353
+ ],
354
+ "description": "`pendingApproval` — awaiting the approvals the VTA's policy requires; nothing is published. `awaitingRecoveryProof` — approved, and waiting for the recovery custodian's proof over the change; nothing is published. `staged` — successor published, not yet used. `overlapping` — successor active, predecessor `retiring`. `completed` — every predecessor retired, or the change is published and any overlap it began has ended. `aborted` — the successor was retired instead of the predecessor, or a revocation superseded the change. `expired` — the approvals or the recovery proof did not arrive before the preview expired; nothing was published."
355
+ },
356
+ "KeyChangeKind": {
357
+ "title": "KeyChangeKind",
358
+ "type": "string",
359
+ "enum": [
360
+ "planned",
361
+ "compromise",
362
+ "addition",
363
+ "recovery"
364
+ ],
365
+ "description": "`planned` — a successor was staged, activated, and the predecessor retired on the operator's schedule. `compromise` — a key was revoked and, where the role would otherwise be empty, replaced in the same change. `addition` — a key joined a role without anything leaving it. `recovery` — the identifier's update authority moved to the committed recovery key, because the VTA's own update keys were lost or may be in someone else's hands."
366
+ },
367
+ "IdentityKeyRole": {
368
+ "title": "IdentityKeyRole",
369
+ "type": "string",
370
+ "enum": [
371
+ "attestation",
372
+ "operational",
373
+ "messaging",
374
+ "update",
375
+ "authenticator"
376
+ ],
377
+ "description": "The named key role a key occupies in an identity (CONVENTIONS.md §2; VTI-KEY-070 onward). `attestation` — the only keys in `assertionMethod`; sign the identity's attestation artefacts (credentials, endorsements, status lists) through the VTA's signing service and nowhere else. Generated inside the VTA, never derived, never exportable, never in a backup. `operational` — the only keys the identity's own process uses in `authentication`; sign the node's own traffic (Trust Task requests and responses, DIDComm and TSP signatures, invitations, notices, audit checkpoints). Derived. `messaging` — the only keys in `keyAgreement`; sign nothing. X25519, derived or generated in its own right and never converted from a signing key. `update` — the identifier's change authority as its DID method states it (a did:webvh log's `updateKeys` and `nextKeyHashes`, a KERI key event log's current and next keys); never a role-bound verification method, never in `keyRoles`. Generated inside the VTA, never derived, never exportable, never in a backup, and always accompanied by a committed recovery key held outside the VTA's protection boundary. `authenticator` — a key held on a person's own authenticator (a WebAuthn passkey), listed in `authentication` of that person's identity only; used only to verify the person's WebAuthn assertions (sign-in and step-up evidence) and never to accept a Data Integrity proof. The VTA never holds its private half, so it is enrolled by the passkey ceremony and never generated, added or rotated by these tasks. Never permitted on the durable identity of a VTA, a VTC or a VTN. No role permits `capabilityInvocation` or `capabilityDelegation` (VTI-KEY-075). The set is an extensible registry: a consumer that meets a role it does not implement MUST rely on the key for nothing, and MUST NOT map it onto a role it does know (VTI-KEY-074)."
378
+ },
379
+ "KeyRoleSummary": {
380
+ "title": "KeyRoleSummary",
381
+ "type": "object",
382
+ "additionalProperties": false,
383
+ "required": [
384
+ "role",
385
+ "relationships",
386
+ "keys"
387
+ ],
388
+ "properties": {
389
+ "role": {
390
+ "$ref": "#/$defs/IdentityKeyRole"
391
+ },
392
+ "relationships": {
393
+ "type": "array",
394
+ "items": {
395
+ "$ref": "#/$defs/DidVerificationRelationship"
396
+ },
397
+ "uniqueItems": true,
398
+ "description": "The relationship this role owns. Empty for `update`."
399
+ },
400
+ "keys": {
401
+ "type": "array",
402
+ "items": {
403
+ "$ref": "#/$defs/IdentityRoleKey"
404
+ },
405
+ "description": "The role's keys, in the order the document publishes them. Terminal-state keys are included only when the request asked for them, except a `revoked` key the document still lists, which is always included."
406
+ },
407
+ "recoveryCommitted": {
408
+ "type": "boolean",
409
+ "description": "`update` only: whether the identifier's latest version commits to a recovery key in a boundary other than the VTA's (CONVENTIONS.md §5.3). `false` is a defect the VTA reports rather than hides."
410
+ },
411
+ "threshold": {
412
+ "type": "string",
413
+ "description": "`update` only, where the method has one: the signing threshold over the current update keys, in the method's own notation (a KERI `kt`)."
414
+ }
415
+ }
416
+ },
417
+ "IdentityRoleKey": {
418
+ "title": "IdentityRoleKey",
419
+ "type": "object",
420
+ "additionalProperties": false,
421
+ "required": [
422
+ "role",
423
+ "keyType",
424
+ "state"
425
+ ],
426
+ "description": "One key in one role. A key is in exactly one role for its whole life; a change of role is a retirement from one and an addition to another, with fresh material under a fresh identifier.",
427
+ "properties": {
428
+ "verificationMethod": {
429
+ "type": "string",
430
+ "minLength": 1,
431
+ "description": "The full verification-method identifier (`did#fragment`) the document publishes the key under and lists in `keyRoles`. Absent for `update` keys, which are never role-bound verification methods (VTI-KEY-093). A VTA minting a method SHOULD derive its fragment from the key (VTI-KEY-150)."
432
+ },
433
+ "role": {
434
+ "$ref": "#/$defs/IdentityKeyRole"
435
+ },
436
+ "updateKeyClass": {
437
+ "$ref": "#/$defs/UpdateKeyClass"
438
+ },
439
+ "relationships": {
440
+ "type": "array",
441
+ "items": {
442
+ "$ref": "#/$defs/DidVerificationRelationship"
443
+ },
444
+ "uniqueItems": true,
445
+ "description": "The relationships the key is (or, while `pending`, will be) listed in: always exactly its role's one relationship. Empty for `update`, `retired` and `revoked` keys."
446
+ },
447
+ "keyType": {
448
+ "$ref": "#/$defs/KeyType"
449
+ },
450
+ "publicKeyMultibase": {
451
+ "type": "string",
452
+ "minLength": 1,
453
+ "description": "The public half, multibase-encoded, exactly as published. Absent for a `committed` update key, whose public half the identifier has not yet revealed."
454
+ },
455
+ "commitment": {
456
+ "type": "string",
457
+ "minLength": 1,
458
+ "description": "For a `committed` update key: the commitment the identifier publishes (a did:webvh `nextKeyHashes` entry, a KERI next-key digest), in the method's own encoding."
459
+ },
460
+ "state": {
461
+ "$ref": "#/$defs/KeyLifecycleState"
462
+ },
463
+ "publishedInVersionId": {
464
+ "type": "string",
465
+ "description": "The method's version identifier of the change that first published the key or its commitment (method-profiles/: a did:webvh `versionId`, a KERI event's sequence number and digest). Absent while `pending`."
466
+ },
467
+ "removedInVersionId": {
468
+ "type": "string",
469
+ "description": "Version identifier of the change that retired or revoked the key."
470
+ },
471
+ "activatesAt": {
472
+ "type": "string",
473
+ "format": "date-time",
474
+ "description": "For a `staged` key: when the VTA will begin using it — no earlier than the publishing change's cache horizon."
475
+ },
476
+ "retireAfter": {
477
+ "type": "string",
478
+ "format": "date-time",
479
+ "description": "For a `retiring` key: the end of its overlap. Custody projection only."
480
+ },
481
+ "compromisedSince": {
482
+ "type": "string",
483
+ "format": "date-time",
484
+ "description": "For a `revoked` key: the compromise time (VTI-KEY-121), published as the verification method's `revoked` value. Where it cannot be established, the time the key was first published."
485
+ },
486
+ "rotationId": {
487
+ "type": "string",
488
+ "description": "The rotation this key was introduced or retired by."
489
+ },
490
+ "label": {
491
+ "type": "string",
492
+ "maxLength": 256,
493
+ "description": "Operator-facing label. Custody projection only."
494
+ },
495
+ "custody": {
496
+ "$ref": "#/$defs/IdentityKeyCustody"
497
+ },
498
+ "ext": {
499
+ "$ref": "#/$defs/Ext"
500
+ }
501
+ }
502
+ },
503
+ "IdentityKeyCustody": {
504
+ "title": "IdentityKeyCustody",
505
+ "type": "object",
506
+ "additionalProperties": false,
507
+ "required": [
508
+ "exportable",
509
+ "neverExportable",
510
+ "inBackups",
511
+ "protection"
512
+ ],
513
+ "description": "How a key is held. Present only in the custody projection. Carries no key material, and a conforming VTA MUST NOT place any in `ext`.",
514
+ "properties": {
515
+ "keyId": {
516
+ "type": "string",
517
+ "minLength": 1,
518
+ "description": "The custodian record identifier (`keys/*`'s `keyId`) behind this key. Absent for a key this VTA does not hold (`protection: externalCustodian`)."
519
+ },
520
+ "origin": {
521
+ "$ref": "#/$defs/KeyOrigin"
522
+ },
523
+ "exportable": {
524
+ "type": "boolean",
525
+ "description": "Whether the custodian would release the private half. Always `false` for `attestation` and `update` keys. Stated explicitly, never absent."
526
+ },
527
+ "neverExportable": {
528
+ "type": "boolean",
529
+ "description": "True when no authority can make the key exportable. `true` implies `exportable: false`."
530
+ },
531
+ "inBackups": {
532
+ "type": "boolean",
533
+ "description": "Whether the key, or material it can be re-derived or decrypted from, is in the VTA's backups or any state transfer. Always `false` for `attestation` and `update` keys (VTI-KEY-112)."
534
+ },
535
+ "protection": {
536
+ "$ref": "#/$defs/ProtectionClass"
537
+ },
538
+ "boundary": {
539
+ "type": "string",
540
+ "minLength": 1,
541
+ "maxLength": 128,
542
+ "description": "Opaque, VTA-assigned label of the protection boundary holding the key (CONVENTIONS.md §5.2). Two keys with the same label are lost or compromised together. A recovery update key MUST carry a label different from every routine update key's. Custody projection only; never published."
543
+ },
544
+ "destroyed": {
545
+ "type": "boolean",
546
+ "description": "True once the private half has been destroyed — a retired `attestation` or `messaging` key. The record survives so the key's past signatures stay attributable."
547
+ }
548
+ }
549
+ },
550
+ "ProtectionClass": {
551
+ "title": "ProtectionClass",
552
+ "type": "string",
553
+ "enum": [
554
+ "software",
555
+ "encryptedAtRest",
556
+ "enclave",
557
+ "hardwareModule",
558
+ "externalCustodian"
559
+ ],
560
+ "description": "How a private half is protected (CONVENTIONS.md §5.2). `software` — stored by the VTA without encryption independent of the host (a plain VTA). `encryptedAtRest` — wrapped under a key the VTA holds outside its store (a hardened VTA). `enclave` — held only inside an attested trusted execution environment, wrapped under a key released only to its measurement (a TEE VTA). `hardwareModule` — held by a hardware security module or cloud key service that performs the operation without releasing the key. `externalCustodian` — not held by this VTA at all: a recovery update key, or an `authenticator` key on a person's device."
561
+ },
562
+ "KeyOrigin": {
563
+ "title": "KeyOrigin",
564
+ "type": "string",
565
+ "enum": [
566
+ "derived",
567
+ "imported",
568
+ "internal"
569
+ ],
570
+ "description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
571
+ "default": "derived"
572
+ },
573
+ "KeyLifecycleState": {
574
+ "title": "KeyLifecycleState",
575
+ "type": "string",
576
+ "enum": [
577
+ "pending",
578
+ "staged",
579
+ "active",
580
+ "retiring",
581
+ "retired",
582
+ "revoked",
583
+ "committed"
584
+ ],
585
+ "description": "Where a key is in its role's lifecycle (CONVENTIONS.md §8, §10). `pending` — planned by a preview or a change awaiting approval; not published; custody projection only. `staged` — published and bound to its role but not yet used, until the publishing change's cache horizon. `active` — the key the VTA uses for new signatures (for `messaging`, advertises for new sessions; for `update`, the current authority). `retiring` — still published but never used to sign again; a retiring `messaging` key still decrypts until retirement. `retired` — removed by planned rotation; what it signed while published stays valid, judged against the identifier version current at issuance. `revoked` — withdrawn for compromise, recorded with `compromisedSince`; what it signed from then on establishes nothing. `committed` — an `update` key the identifier commits to as a successor but has not revealed (a did:webvh `nextKeyHashes` entry, a KERI next-key digest). `retired` and `revoked` are terminal."
586
+ },
587
+ "DidVerificationRelationship": {
588
+ "title": "DidVerificationRelationship",
589
+ "type": "string",
590
+ "enum": [
591
+ "authentication",
592
+ "assertionMethod",
593
+ "keyAgreement",
594
+ "capabilityInvocation",
595
+ "capabilityDelegation"
596
+ ],
597
+ "description": "A DID Core verification relationship."
598
+ },
599
+ "UpdateKeyClass": {
600
+ "title": "UpdateKeyClass",
601
+ "type": "string",
602
+ "enum": [
603
+ "routine",
604
+ "recovery"
605
+ ],
606
+ "description": "For an `update` key only (CONVENTIONS.md §5.3). `routine` — generated and held by the VTA, which authorizes the identity's ordinary changes with it. `recovery` — held by a recovery custodian in a protection boundary other than the VTA's; the VTA holds only its commitment, carries that commitment forward in every change it makes, and can use the key only by asking the custodian for a proof (`RecoverySigningRequest`)."
607
+ },
608
+ "KeyType": {
609
+ "title": "KeyType",
610
+ "type": "string",
611
+ "enum": [
612
+ "ed25519",
613
+ "x25519",
614
+ "p256",
615
+ "mldsa44",
616
+ "mldsa65"
617
+ ],
618
+ "description": "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support."
619
+ },
620
+ "KeyListProjection": {
621
+ "title": "KeyListProjection",
622
+ "type": "string",
623
+ "enum": [
624
+ "public",
625
+ "custody"
626
+ ],
627
+ "description": "Which view of the identity's key roles the caller was given (CONVENTIONS.md §11). `public` — only what the published identifier document and history already reveal. `custody` — additionally the VTA's custody state: pending keys, the custodian record and protection boundary behind each key, overlap deadlines, who initiated and approved each change, and why."
628
+ },
629
+ "DidMethodName": {
630
+ "title": "DidMethodName",
631
+ "type": "string",
632
+ "pattern": "^[a-z0-9]+(:[a-z0-9]+)*$",
633
+ "description": "The DID method an identity uses, as the method profile that governs it is named: `webvh` for a did:webvh identity, `scid:vh` for the did:scid:vh:1 form of one, `webs` for did:webs. Deliberately a pattern and not an enumeration: a method is added by publishing its profile under method-profiles/, never by changing this schema. A VTA MUST refuse a method it holds no profile for, or whose profile declares it ineligible, with `vta/dids:methodNotEligible`."
634
+ }
635
+ }
636
+ } as const;
637
+
638
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
639
+ export const RESPONSE_PAYLOAD_SCHEMA = {
640
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
641
+ "$ref": "#/$defs/Response",
642
+ "$defs": {
643
+ "Response": {
644
+ "$anchor": "response",
645
+ "title": "VTA DIDs — Keys List — response payload",
646
+ "type": "object",
647
+ "additionalProperties": false,
648
+ "required": [
649
+ "did",
650
+ "method",
651
+ "versionId",
652
+ "projection",
653
+ "roles"
654
+ ],
655
+ "properties": {
656
+ "did": {
657
+ "type": "string"
658
+ },
659
+ "method": {
660
+ "$ref": "#/$defs/DidMethodName"
661
+ },
662
+ "versionId": {
663
+ "type": "string",
664
+ "description": "The version the answer describes. Pass it as `expectedVersionId` to a change made on its strength."
665
+ },
666
+ "projection": {
667
+ "$ref": "#/$defs/KeyListProjection"
668
+ },
669
+ "roles": {
670
+ "type": "array",
671
+ "items": {
672
+ "$ref": "#/$defs/KeyRoleSummary"
673
+ },
674
+ "description": "One entry per role asked for, including roles with no keys."
675
+ },
676
+ "rotations": {
677
+ "type": "array",
678
+ "items": {
679
+ "$ref": "#/$defs/KeyChangeRecord"
680
+ },
681
+ "description": "Present exactly when `includeHistory` was true. Newest first."
682
+ },
683
+ "ext": {
684
+ "$ref": "#/$defs/Ext"
685
+ }
686
+ }
687
+ },
688
+ "Ext": {
689
+ "title": "Ext",
690
+ "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.",
691
+ "type": "object",
692
+ "minProperties": 1,
693
+ "additionalProperties": true,
694
+ "propertyNames": {
695
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
696
+ }
697
+ },
698
+ "KeyChangeRecord": {
699
+ "title": "KeyChangeRecord",
700
+ "type": "object",
701
+ "additionalProperties": false,
702
+ "required": [
703
+ "rotationId",
704
+ "role",
705
+ "kind",
706
+ "state"
707
+ ],
708
+ "description": "One change to a role's key set, from preview to completion. The identifier's history is the authority for what was published; this record adds which change was which and, in the custody projection, who asked, who approved, and why.",
709
+ "properties": {
710
+ "rotationId": {
711
+ "type": "string",
712
+ "minLength": 1
713
+ },
714
+ "role": {
715
+ "$ref": "#/$defs/IdentityKeyRole"
716
+ },
717
+ "kind": {
718
+ "$ref": "#/$defs/KeyChangeKind"
719
+ },
720
+ "state": {
721
+ "$ref": "#/$defs/KeyChangeState"
722
+ },
723
+ "predecessors": {
724
+ "type": "array",
725
+ "items": {
726
+ "type": "string"
727
+ },
728
+ "description": "Verification-method identifiers (for `update`, public keys or commitments) leaving the role."
729
+ },
730
+ "successors": {
731
+ "type": "array",
732
+ "items": {
733
+ "type": "string"
734
+ },
735
+ "description": "Verification-method identifiers (for `update`, public keys or commitments) entering the role."
736
+ },
737
+ "startedInVersionId": {
738
+ "type": "string"
739
+ },
740
+ "endedInVersionId": {
741
+ "type": "string"
742
+ },
743
+ "startedAt": {
744
+ "type": "string",
745
+ "format": "date-time"
746
+ },
747
+ "cacheHorizonAt": {
748
+ "type": "string",
749
+ "format": "date-time",
750
+ "description": "Planned rotations: the publishing change's cache horizon (CONVENTIONS.md §10.1). The switch and any retirement happen no earlier."
751
+ },
752
+ "activatesAt": {
753
+ "type": "string",
754
+ "format": "date-time",
755
+ "description": "When the successor becomes `active` and the predecessor `retiring`; never before `cacheHorizonAt`."
756
+ },
757
+ "overlapUntil": {
758
+ "type": "string",
759
+ "format": "date-time",
760
+ "description": "Custody projection only. End of the overlap."
761
+ },
762
+ "autoRetire": {
763
+ "type": "boolean",
764
+ "description": "Custody projection only. Whether the VTA retires the predecessor itself at `overlapUntil`."
765
+ },
766
+ "endedAt": {
767
+ "type": "string",
768
+ "format": "date-time"
769
+ },
770
+ "initiatedBy": {
771
+ "type": "string",
772
+ "description": "Custody projection only. VID of the administrator whose signed request started the change."
773
+ },
774
+ "approvals": {
775
+ "$ref": "#/$defs/KeyChangeApprovalState"
776
+ },
777
+ "reason": {
778
+ "type": "string",
779
+ "maxLength": 1024,
780
+ "description": "Custody projection only. The operator's stated reason. Never published."
781
+ },
782
+ "ext": {
783
+ "$ref": "#/$defs/Ext"
784
+ }
785
+ }
786
+ },
787
+ "KeyChangeApprovalState": {
788
+ "title": "KeyChangeApprovalState",
789
+ "type": "object",
790
+ "additionalProperties": false,
791
+ "required": [
792
+ "required",
793
+ "received",
794
+ "expiresAt"
795
+ ],
796
+ "description": "Approval progress of a change the VTA's policy gates on approvals (CONVENTIONS.md §6).",
797
+ "properties": {
798
+ "required": {
799
+ "type": "integer",
800
+ "minimum": 1,
801
+ "description": "Distinct approvals the VTA's policy requires."
802
+ },
803
+ "received": {
804
+ "type": "integer",
805
+ "minimum": 0,
806
+ "description": "Distinct approvals recorded so far, the initiator's own included."
807
+ },
808
+ "approvals": {
809
+ "type": "array",
810
+ "items": {
811
+ "$ref": "#/$defs/RecordedApproval"
812
+ },
813
+ "description": "The approvals recorded. Custody projection only; omitted from a response to anyone who is not themselves an eligible approver of this change."
814
+ },
815
+ "expiresAt": {
816
+ "type": "string",
817
+ "format": "date-time",
818
+ "description": "When the preview, and every approval bound to it, stops being usable."
819
+ }
820
+ }
821
+ },
822
+ "RecordedApproval": {
823
+ "title": "RecordedApproval",
824
+ "type": "object",
825
+ "additionalProperties": false,
826
+ "required": [
827
+ "approver",
828
+ "evidence"
829
+ ],
830
+ "properties": {
831
+ "approver": {
832
+ "type": "string",
833
+ "minLength": 1,
834
+ "description": "VID of the approver."
835
+ },
836
+ "evidence": {
837
+ "$ref": "#/$defs/ApprovalEvidenceKind"
838
+ },
839
+ "recordedAt": {
840
+ "type": "string",
841
+ "format": "date-time"
842
+ }
843
+ }
844
+ },
845
+ "ApprovalEvidenceKind": {
846
+ "title": "ApprovalEvidenceKind",
847
+ "type": "string",
848
+ "enum": [
849
+ "didSigned",
850
+ "webauthn",
851
+ "approverSigned"
852
+ ],
853
+ "description": "The evidence an approval was recorded on, as `auth/step-up/approve-response` names it. Only the approver's own evidence is ever recorded: a proof by a key the VTA records as acting for an approver — a console signing key or any other delegation — is never an approval (CONVENTIONS.md §6.3)."
854
+ },
855
+ "KeyChangeState": {
856
+ "title": "KeyChangeState",
857
+ "type": "string",
858
+ "enum": [
859
+ "pendingApproval",
860
+ "awaitingRecoveryProof",
861
+ "staged",
862
+ "overlapping",
863
+ "completed",
864
+ "aborted",
865
+ "expired"
866
+ ],
867
+ "description": "`pendingApproval` — awaiting the approvals the VTA's policy requires; nothing is published. `awaitingRecoveryProof` — approved, and waiting for the recovery custodian's proof over the change; nothing is published. `staged` — successor published, not yet used. `overlapping` — successor active, predecessor `retiring`. `completed` — every predecessor retired, or the change is published and any overlap it began has ended. `aborted` — the successor was retired instead of the predecessor, or a revocation superseded the change. `expired` — the approvals or the recovery proof did not arrive before the preview expired; nothing was published."
868
+ },
869
+ "KeyChangeKind": {
870
+ "title": "KeyChangeKind",
871
+ "type": "string",
872
+ "enum": [
873
+ "planned",
874
+ "compromise",
875
+ "addition",
876
+ "recovery"
877
+ ],
878
+ "description": "`planned` — a successor was staged, activated, and the predecessor retired on the operator's schedule. `compromise` — a key was revoked and, where the role would otherwise be empty, replaced in the same change. `addition` — a key joined a role without anything leaving it. `recovery` — the identifier's update authority moved to the committed recovery key, because the VTA's own update keys were lost or may be in someone else's hands."
879
+ },
880
+ "IdentityKeyRole": {
881
+ "title": "IdentityKeyRole",
882
+ "type": "string",
883
+ "enum": [
884
+ "attestation",
885
+ "operational",
886
+ "messaging",
887
+ "update",
888
+ "authenticator"
889
+ ],
890
+ "description": "The named key role a key occupies in an identity (CONVENTIONS.md §2; VTI-KEY-070 onward). `attestation` — the only keys in `assertionMethod`; sign the identity's attestation artefacts (credentials, endorsements, status lists) through the VTA's signing service and nowhere else. Generated inside the VTA, never derived, never exportable, never in a backup. `operational` — the only keys the identity's own process uses in `authentication`; sign the node's own traffic (Trust Task requests and responses, DIDComm and TSP signatures, invitations, notices, audit checkpoints). Derived. `messaging` — the only keys in `keyAgreement`; sign nothing. X25519, derived or generated in its own right and never converted from a signing key. `update` — the identifier's change authority as its DID method states it (a did:webvh log's `updateKeys` and `nextKeyHashes`, a KERI key event log's current and next keys); never a role-bound verification method, never in `keyRoles`. Generated inside the VTA, never derived, never exportable, never in a backup, and always accompanied by a committed recovery key held outside the VTA's protection boundary. `authenticator` — a key held on a person's own authenticator (a WebAuthn passkey), listed in `authentication` of that person's identity only; used only to verify the person's WebAuthn assertions (sign-in and step-up evidence) and never to accept a Data Integrity proof. The VTA never holds its private half, so it is enrolled by the passkey ceremony and never generated, added or rotated by these tasks. Never permitted on the durable identity of a VTA, a VTC or a VTN. No role permits `capabilityInvocation` or `capabilityDelegation` (VTI-KEY-075). The set is an extensible registry: a consumer that meets a role it does not implement MUST rely on the key for nothing, and MUST NOT map it onto a role it does know (VTI-KEY-074)."
891
+ },
892
+ "KeyRoleSummary": {
893
+ "title": "KeyRoleSummary",
894
+ "type": "object",
895
+ "additionalProperties": false,
896
+ "required": [
897
+ "role",
898
+ "relationships",
899
+ "keys"
900
+ ],
901
+ "properties": {
902
+ "role": {
903
+ "$ref": "#/$defs/IdentityKeyRole"
904
+ },
905
+ "relationships": {
906
+ "type": "array",
907
+ "items": {
908
+ "$ref": "#/$defs/DidVerificationRelationship"
909
+ },
910
+ "uniqueItems": true,
911
+ "description": "The relationship this role owns. Empty for `update`."
912
+ },
913
+ "keys": {
914
+ "type": "array",
915
+ "items": {
916
+ "$ref": "#/$defs/IdentityRoleKey"
917
+ },
918
+ "description": "The role's keys, in the order the document publishes them. Terminal-state keys are included only when the request asked for them, except a `revoked` key the document still lists, which is always included."
919
+ },
920
+ "recoveryCommitted": {
921
+ "type": "boolean",
922
+ "description": "`update` only: whether the identifier's latest version commits to a recovery key in a boundary other than the VTA's (CONVENTIONS.md §5.3). `false` is a defect the VTA reports rather than hides."
923
+ },
924
+ "threshold": {
925
+ "type": "string",
926
+ "description": "`update` only, where the method has one: the signing threshold over the current update keys, in the method's own notation (a KERI `kt`)."
927
+ }
928
+ }
929
+ },
930
+ "IdentityRoleKey": {
931
+ "title": "IdentityRoleKey",
932
+ "type": "object",
933
+ "additionalProperties": false,
934
+ "required": [
935
+ "role",
936
+ "keyType",
937
+ "state"
938
+ ],
939
+ "description": "One key in one role. A key is in exactly one role for its whole life; a change of role is a retirement from one and an addition to another, with fresh material under a fresh identifier.",
940
+ "properties": {
941
+ "verificationMethod": {
942
+ "type": "string",
943
+ "minLength": 1,
944
+ "description": "The full verification-method identifier (`did#fragment`) the document publishes the key under and lists in `keyRoles`. Absent for `update` keys, which are never role-bound verification methods (VTI-KEY-093). A VTA minting a method SHOULD derive its fragment from the key (VTI-KEY-150)."
945
+ },
946
+ "role": {
947
+ "$ref": "#/$defs/IdentityKeyRole"
948
+ },
949
+ "updateKeyClass": {
950
+ "$ref": "#/$defs/UpdateKeyClass"
951
+ },
952
+ "relationships": {
953
+ "type": "array",
954
+ "items": {
955
+ "$ref": "#/$defs/DidVerificationRelationship"
956
+ },
957
+ "uniqueItems": true,
958
+ "description": "The relationships the key is (or, while `pending`, will be) listed in: always exactly its role's one relationship. Empty for `update`, `retired` and `revoked` keys."
959
+ },
960
+ "keyType": {
961
+ "$ref": "#/$defs/KeyType"
962
+ },
963
+ "publicKeyMultibase": {
964
+ "type": "string",
965
+ "minLength": 1,
966
+ "description": "The public half, multibase-encoded, exactly as published. Absent for a `committed` update key, whose public half the identifier has not yet revealed."
967
+ },
968
+ "commitment": {
969
+ "type": "string",
970
+ "minLength": 1,
971
+ "description": "For a `committed` update key: the commitment the identifier publishes (a did:webvh `nextKeyHashes` entry, a KERI next-key digest), in the method's own encoding."
972
+ },
973
+ "state": {
974
+ "$ref": "#/$defs/KeyLifecycleState"
975
+ },
976
+ "publishedInVersionId": {
977
+ "type": "string",
978
+ "description": "The method's version identifier of the change that first published the key or its commitment (method-profiles/: a did:webvh `versionId`, a KERI event's sequence number and digest). Absent while `pending`."
979
+ },
980
+ "removedInVersionId": {
981
+ "type": "string",
982
+ "description": "Version identifier of the change that retired or revoked the key."
983
+ },
984
+ "activatesAt": {
985
+ "type": "string",
986
+ "format": "date-time",
987
+ "description": "For a `staged` key: when the VTA will begin using it — no earlier than the publishing change's cache horizon."
988
+ },
989
+ "retireAfter": {
990
+ "type": "string",
991
+ "format": "date-time",
992
+ "description": "For a `retiring` key: the end of its overlap. Custody projection only."
993
+ },
994
+ "compromisedSince": {
995
+ "type": "string",
996
+ "format": "date-time",
997
+ "description": "For a `revoked` key: the compromise time (VTI-KEY-121), published as the verification method's `revoked` value. Where it cannot be established, the time the key was first published."
998
+ },
999
+ "rotationId": {
1000
+ "type": "string",
1001
+ "description": "The rotation this key was introduced or retired by."
1002
+ },
1003
+ "label": {
1004
+ "type": "string",
1005
+ "maxLength": 256,
1006
+ "description": "Operator-facing label. Custody projection only."
1007
+ },
1008
+ "custody": {
1009
+ "$ref": "#/$defs/IdentityKeyCustody"
1010
+ },
1011
+ "ext": {
1012
+ "$ref": "#/$defs/Ext"
1013
+ }
1014
+ }
1015
+ },
1016
+ "IdentityKeyCustody": {
1017
+ "title": "IdentityKeyCustody",
1018
+ "type": "object",
1019
+ "additionalProperties": false,
1020
+ "required": [
1021
+ "exportable",
1022
+ "neverExportable",
1023
+ "inBackups",
1024
+ "protection"
1025
+ ],
1026
+ "description": "How a key is held. Present only in the custody projection. Carries no key material, and a conforming VTA MUST NOT place any in `ext`.",
1027
+ "properties": {
1028
+ "keyId": {
1029
+ "type": "string",
1030
+ "minLength": 1,
1031
+ "description": "The custodian record identifier (`keys/*`'s `keyId`) behind this key. Absent for a key this VTA does not hold (`protection: externalCustodian`)."
1032
+ },
1033
+ "origin": {
1034
+ "$ref": "#/$defs/KeyOrigin"
1035
+ },
1036
+ "exportable": {
1037
+ "type": "boolean",
1038
+ "description": "Whether the custodian would release the private half. Always `false` for `attestation` and `update` keys. Stated explicitly, never absent."
1039
+ },
1040
+ "neverExportable": {
1041
+ "type": "boolean",
1042
+ "description": "True when no authority can make the key exportable. `true` implies `exportable: false`."
1043
+ },
1044
+ "inBackups": {
1045
+ "type": "boolean",
1046
+ "description": "Whether the key, or material it can be re-derived or decrypted from, is in the VTA's backups or any state transfer. Always `false` for `attestation` and `update` keys (VTI-KEY-112)."
1047
+ },
1048
+ "protection": {
1049
+ "$ref": "#/$defs/ProtectionClass"
1050
+ },
1051
+ "boundary": {
1052
+ "type": "string",
1053
+ "minLength": 1,
1054
+ "maxLength": 128,
1055
+ "description": "Opaque, VTA-assigned label of the protection boundary holding the key (CONVENTIONS.md §5.2). Two keys with the same label are lost or compromised together. A recovery update key MUST carry a label different from every routine update key's. Custody projection only; never published."
1056
+ },
1057
+ "destroyed": {
1058
+ "type": "boolean",
1059
+ "description": "True once the private half has been destroyed — a retired `attestation` or `messaging` key. The record survives so the key's past signatures stay attributable."
1060
+ }
1061
+ }
1062
+ },
1063
+ "ProtectionClass": {
1064
+ "title": "ProtectionClass",
1065
+ "type": "string",
1066
+ "enum": [
1067
+ "software",
1068
+ "encryptedAtRest",
1069
+ "enclave",
1070
+ "hardwareModule",
1071
+ "externalCustodian"
1072
+ ],
1073
+ "description": "How a private half is protected (CONVENTIONS.md §5.2). `software` — stored by the VTA without encryption independent of the host (a plain VTA). `encryptedAtRest` — wrapped under a key the VTA holds outside its store (a hardened VTA). `enclave` — held only inside an attested trusted execution environment, wrapped under a key released only to its measurement (a TEE VTA). `hardwareModule` — held by a hardware security module or cloud key service that performs the operation without releasing the key. `externalCustodian` — not held by this VTA at all: a recovery update key, or an `authenticator` key on a person's device."
1074
+ },
1075
+ "KeyOrigin": {
1076
+ "title": "KeyOrigin",
1077
+ "type": "string",
1078
+ "enum": [
1079
+ "derived",
1080
+ "imported",
1081
+ "internal"
1082
+ ],
1083
+ "description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
1084
+ "default": "derived"
1085
+ },
1086
+ "KeyLifecycleState": {
1087
+ "title": "KeyLifecycleState",
1088
+ "type": "string",
1089
+ "enum": [
1090
+ "pending",
1091
+ "staged",
1092
+ "active",
1093
+ "retiring",
1094
+ "retired",
1095
+ "revoked",
1096
+ "committed"
1097
+ ],
1098
+ "description": "Where a key is in its role's lifecycle (CONVENTIONS.md §8, §10). `pending` — planned by a preview or a change awaiting approval; not published; custody projection only. `staged` — published and bound to its role but not yet used, until the publishing change's cache horizon. `active` — the key the VTA uses for new signatures (for `messaging`, advertises for new sessions; for `update`, the current authority). `retiring` — still published but never used to sign again; a retiring `messaging` key still decrypts until retirement. `retired` — removed by planned rotation; what it signed while published stays valid, judged against the identifier version current at issuance. `revoked` — withdrawn for compromise, recorded with `compromisedSince`; what it signed from then on establishes nothing. `committed` — an `update` key the identifier commits to as a successor but has not revealed (a did:webvh `nextKeyHashes` entry, a KERI next-key digest). `retired` and `revoked` are terminal."
1099
+ },
1100
+ "DidVerificationRelationship": {
1101
+ "title": "DidVerificationRelationship",
1102
+ "type": "string",
1103
+ "enum": [
1104
+ "authentication",
1105
+ "assertionMethod",
1106
+ "keyAgreement",
1107
+ "capabilityInvocation",
1108
+ "capabilityDelegation"
1109
+ ],
1110
+ "description": "A DID Core verification relationship."
1111
+ },
1112
+ "UpdateKeyClass": {
1113
+ "title": "UpdateKeyClass",
1114
+ "type": "string",
1115
+ "enum": [
1116
+ "routine",
1117
+ "recovery"
1118
+ ],
1119
+ "description": "For an `update` key only (CONVENTIONS.md §5.3). `routine` — generated and held by the VTA, which authorizes the identity's ordinary changes with it. `recovery` — held by a recovery custodian in a protection boundary other than the VTA's; the VTA holds only its commitment, carries that commitment forward in every change it makes, and can use the key only by asking the custodian for a proof (`RecoverySigningRequest`)."
1120
+ },
1121
+ "KeyType": {
1122
+ "title": "KeyType",
1123
+ "type": "string",
1124
+ "enum": [
1125
+ "ed25519",
1126
+ "x25519",
1127
+ "p256",
1128
+ "mldsa44",
1129
+ "mldsa65"
1130
+ ],
1131
+ "description": "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support."
1132
+ },
1133
+ "KeyListProjection": {
1134
+ "title": "KeyListProjection",
1135
+ "type": "string",
1136
+ "enum": [
1137
+ "public",
1138
+ "custody"
1139
+ ],
1140
+ "description": "Which view of the identity's key roles the caller was given (CONVENTIONS.md §11). `public` — only what the published identifier document and history already reveal. `custody` — additionally the VTA's custody state: pending keys, the custodian record and protection boundary behind each key, overlap deadlines, who initiated and approved each change, and why."
1141
+ },
1142
+ "DidMethodName": {
1143
+ "title": "DidMethodName",
1144
+ "type": "string",
1145
+ "pattern": "^[a-z0-9]+(:[a-z0-9]+)*$",
1146
+ "description": "The DID method an identity uses, as the method profile that governs it is named: `webvh` for a did:webvh identity, `scid:vh` for the did:scid:vh:1 form of one, `webs` for did:webs. Deliberately a pattern and not an enumeration: a method is added by publishing its profile under method-profiles/, never by changing this schema. A VTA MUST refuse a method it holds no profile for, or whose profile declares it ineligible, with `vta/dids:methodNotEligible`."
1147
+ }
1148
+ }
1149
+ } as const;
1150
+
1151
+ /**
1152
+ * SPEC.md §7.2 policy for the request variant, from this specification's
1153
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
1154
+ * per-specification and cannot be derived from the document alone, and
1155
+ * item 2 needs the schema this carries.
1156
+ */
1157
+ export const SPEC = {
1158
+ typeUri: TYPE_URI,
1159
+ isBearer: false,
1160
+ isProofRequired: false,
1161
+ isRecipientRequired: true,
1162
+ isIssuedAtRequired: false,
1163
+ payloadSchema: PAYLOAD_SCHEMA,
1164
+ } as const;
1165
+
1166
+ /**
1167
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
1168
+ * tracks the *issuer* party's requirement because a response swaps the
1169
+ * parties (§7.3 item 5).
1170
+ */
1171
+ export const RESPONSE_SPEC = {
1172
+ typeUri: RESPONSE_TYPE_URI,
1173
+ isBearer: false,
1174
+ isProofRequired: false,
1175
+ isRecipientRequired: true,
1176
+ isIssuedAtRequired: false,
1177
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
1178
+ } as const;