@openvtc/trust-tasks 0.21.11 → 0.21.13

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 (208) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/_framework/0.4/framework.d.ts +1 -1
  3. package/dist/_framework/0.4/framework.d.ts.map +1 -1
  4. package/dist/_shared/components.d.ts +371 -0
  5. package/dist/_shared/components.d.ts.map +1 -1
  6. package/dist/auth/_shared/0.1/signing-key.d.ts +16 -0
  7. package/dist/auth/_shared/0.1/signing-key.d.ts.map +1 -0
  8. package/dist/auth/_shared/0.1/signing-key.js +6 -0
  9. package/dist/auth/_shared/0.1/signing-key.js.map +1 -0
  10. package/dist/auth/signing-key/enroll/0.1/payload.d.ts +545 -0
  11. package/dist/auth/signing-key/enroll/0.1/payload.d.ts.map +1 -0
  12. package/dist/auth/signing-key/enroll/0.1/payload.js +307 -0
  13. package/dist/auth/signing-key/enroll/0.1/payload.js.map +1 -0
  14. package/dist/auth/signing-key/list/0.1/payload.d.ts +509 -0
  15. package/dist/auth/signing-key/list/0.1/payload.d.ts.map +1 -0
  16. package/dist/auth/signing-key/list/0.1/payload.js +289 -0
  17. package/dist/auth/signing-key/list/0.1/payload.js.map +1 -0
  18. package/dist/auth/signing-key/revoke/0.1/payload.d.ts +292 -0
  19. package/dist/auth/signing-key/revoke/0.1/payload.d.ts.map +1 -0
  20. package/dist/auth/signing-key/revoke/0.1/payload.js +167 -0
  21. package/dist/auth/signing-key/revoke/0.1/payload.js.map +1 -0
  22. package/dist/index.d.ts +39 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +39 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/vta/contexts/update-did/1.1/payload.d.ts +388 -0
  27. package/dist/vta/contexts/update-did/1.1/payload.d.ts.map +1 -0
  28. package/dist/vta/contexts/update-did/1.1/payload.js +227 -0
  29. package/dist/vta/contexts/update-did/1.1/payload.js.map +1 -0
  30. package/dist/vtc/_shared/0.1/community-presentation.d.ts +16 -0
  31. package/dist/vtc/_shared/0.1/community-presentation.d.ts.map +1 -0
  32. package/dist/vtc/_shared/0.1/community-presentation.js +6 -0
  33. package/dist/vtc/_shared/0.1/community-presentation.js.map +1 -0
  34. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts +16 -0
  35. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts.map +1 -0
  36. package/dist/vtc/_shared/0.1/relationship-lifecycle.js +6 -0
  37. package/dist/vtc/_shared/0.1/relationship-lifecycle.js.map +1 -0
  38. package/dist/vtc/_shared/0.1/schema-registry.d.ts +16 -0
  39. package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -0
  40. package/dist/vtc/_shared/0.1/schema-registry.js +6 -0
  41. package/dist/vtc/_shared/0.1/schema-registry.js.map +1 -0
  42. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts +16 -0
  43. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts.map +1 -0
  44. package/dist/vtc/_shared/0.1/vetting-auto-grant.js +6 -0
  45. package/dist/vtc/_shared/0.1/vetting-auto-grant.js.map +1 -0
  46. package/dist/vtc/_shared/0.1/website-transfer.d.ts +16 -0
  47. package/dist/vtc/_shared/0.1/website-transfer.d.ts.map +1 -0
  48. package/dist/vtc/_shared/0.1/website-transfer.js +6 -0
  49. package/dist/vtc/_shared/0.1/website-transfer.js.map +1 -0
  50. package/dist/vtc/community/branding/show/0.1/payload.d.ts +319 -0
  51. package/dist/vtc/community/branding/show/0.1/payload.d.ts.map +1 -0
  52. package/dist/vtc/community/branding/show/0.1/payload.js +179 -0
  53. package/dist/vtc/community/branding/show/0.1/payload.js.map +1 -0
  54. package/dist/vtc/community/branding/update/0.1/payload.d.ts +328 -0
  55. package/dist/vtc/community/branding/update/0.1/payload.d.ts.map +1 -0
  56. package/dist/vtc/community/branding/update/0.1/payload.js +185 -0
  57. package/dist/vtc/community/branding/update/0.1/payload.js.map +1 -0
  58. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts +267 -0
  59. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts.map +1 -0
  60. package/dist/vtc/community/join-discovery/show/0.1/payload.js +157 -0
  61. package/dist/vtc/community/join-discovery/show/0.1/payload.js.map +1 -0
  62. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts +276 -0
  63. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts.map +1 -0
  64. package/dist/vtc/community/join-discovery/update/0.1/payload.js +163 -0
  65. package/dist/vtc/community/join-discovery/update/0.1/payload.js.map +1 -0
  66. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts +339 -0
  67. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts.map +1 -0
  68. package/dist/vtc/community/requested-attributes/show/0.1/payload.js +193 -0
  69. package/dist/vtc/community/requested-attributes/show/0.1/payload.js.map +1 -0
  70. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts +348 -0
  71. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts.map +1 -0
  72. package/dist/vtc/community/requested-attributes/update/0.1/payload.js +199 -0
  73. package/dist/vtc/community/requested-attributes/update/0.1/payload.js.map +1 -0
  74. package/dist/vtc/join-requests/query/0.1/payload.d.ts +412 -0
  75. package/dist/vtc/join-requests/query/0.1/payload.d.ts.map +1 -0
  76. package/dist/vtc/join-requests/query/0.1/payload.js +228 -0
  77. package/dist/vtc/join-requests/query/0.1/payload.js.map +1 -0
  78. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts +1016 -0
  79. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts.map +1 -0
  80. package/dist/vtc/join-requests/vetting/show/0.1/payload.js +509 -0
  81. package/dist/vtc/join-requests/vetting/show/0.1/payload.js.map +1 -0
  82. package/dist/vtc/relationships/restore/0.1/payload.d.ts +462 -0
  83. package/dist/vtc/relationships/restore/0.1/payload.d.ts.map +1 -0
  84. package/dist/vtc/relationships/restore/0.1/payload.js +270 -0
  85. package/dist/vtc/relationships/restore/0.1/payload.js.map +1 -0
  86. package/dist/vtc/relationships/suspend/0.1/payload.d.ts +462 -0
  87. package/dist/vtc/relationships/suspend/0.1/payload.d.ts.map +1 -0
  88. package/dist/vtc/relationships/suspend/0.1/payload.js +270 -0
  89. package/dist/vtc/relationships/suspend/0.1/payload.js.map +1 -0
  90. package/dist/vtc/rooms/list/0.1/payload.d.ts +653 -0
  91. package/dist/vtc/rooms/list/0.1/payload.d.ts.map +1 -0
  92. package/dist/vtc/rooms/list/0.1/payload.js +360 -0
  93. package/dist/vtc/rooms/list/0.1/payload.js.map +1 -0
  94. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts +240 -0
  95. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts.map +1 -0
  96. package/dist/vtc/schemas/accepts/delete/0.1/payload.js +141 -0
  97. package/dist/vtc/schemas/accepts/delete/0.1/payload.js.map +1 -0
  98. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1214 -0
  99. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -0
  100. package/dist/vtc/schemas/accepts/list/0.1/payload.js +681 -0
  101. package/dist/vtc/schemas/accepts/list/0.1/payload.js.map +1 -0
  102. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1165 -0
  103. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -0
  104. package/dist/vtc/schemas/accepts/register/0.1/payload.js +665 -0
  105. package/dist/vtc/schemas/accepts/register/0.1/payload.js.map +1 -0
  106. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1144 -0
  107. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -0
  108. package/dist/vtc/schemas/accepts/show/0.1/payload.js +655 -0
  109. package/dist/vtc/schemas/accepts/show/0.1/payload.js.map +1 -0
  110. package/dist/vtc/schemas/delete/0.1/payload.d.ts +240 -0
  111. package/dist/vtc/schemas/delete/0.1/payload.d.ts.map +1 -0
  112. package/dist/vtc/schemas/delete/0.1/payload.js +141 -0
  113. package/dist/vtc/schemas/delete/0.1/payload.js.map +1 -0
  114. package/dist/vtc/schemas/list/0.1/payload.d.ts +541 -0
  115. package/dist/vtc/schemas/list/0.1/payload.d.ts.map +1 -0
  116. package/dist/vtc/schemas/list/0.1/payload.js +300 -0
  117. package/dist/vtc/schemas/list/0.1/payload.js.map +1 -0
  118. package/dist/vtc/schemas/register/0.1/payload.d.ts +512 -0
  119. package/dist/vtc/schemas/register/0.1/payload.d.ts.map +1 -0
  120. package/dist/vtc/schemas/register/0.1/payload.js +292 -0
  121. package/dist/vtc/schemas/register/0.1/payload.js.map +1 -0
  122. package/dist/vtc/schemas/show/0.1/payload.d.ts +484 -0
  123. package/dist/vtc/schemas/show/0.1/payload.d.ts.map +1 -0
  124. package/dist/vtc/schemas/show/0.1/payload.js +279 -0
  125. package/dist/vtc/schemas/show/0.1/payload.js.map +1 -0
  126. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts +463 -0
  127. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts.map +1 -0
  128. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js +269 -0
  129. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js.map +1 -0
  130. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts +491 -0
  131. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts.map +1 -0
  132. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js +282 -0
  133. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js.map +1 -0
  134. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts +608 -0
  135. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts.map +1 -0
  136. package/dist/vtc/vetting/revocations/list/0.1/payload.js +332 -0
  137. package/dist/vtc/vetting/revocations/list/0.1/payload.js.map +1 -0
  138. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts +992 -0
  139. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts.map +1 -0
  140. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js +461 -0
  141. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js.map +1 -0
  142. package/dist/vtc/website/deploy/0.1/payload.d.ts +369 -0
  143. package/dist/vtc/website/deploy/0.1/payload.d.ts.map +1 -0
  144. package/dist/vtc/website/deploy/0.1/payload.js +213 -0
  145. package/dist/vtc/website/deploy/0.1/payload.js.map +1 -0
  146. package/dist/vtc/website/files/show/0.1/payload.d.ts +455 -0
  147. package/dist/vtc/website/files/show/0.1/payload.d.ts.map +1 -0
  148. package/dist/vtc/website/files/show/0.1/payload.js +247 -0
  149. package/dist/vtc/website/files/show/0.1/payload.js.map +1 -0
  150. package/dist/vtc/website/upload/abort/0.1/payload.d.ts +256 -0
  151. package/dist/vtc/website/upload/abort/0.1/payload.d.ts.map +1 -0
  152. package/dist/vtc/website/upload/abort/0.1/payload.js +149 -0
  153. package/dist/vtc/website/upload/abort/0.1/payload.js.map +1 -0
  154. package/dist/vtc/website/upload/begin/0.1/payload.d.ts +658 -0
  155. package/dist/vtc/website/upload/begin/0.1/payload.d.ts.map +1 -0
  156. package/dist/vtc/website/upload/begin/0.1/payload.js +375 -0
  157. package/dist/vtc/website/upload/begin/0.1/payload.js.map +1 -0
  158. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts +447 -0
  159. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts.map +1 -0
  160. package/dist/vtc/website/upload/chunk/0.1/payload.js +253 -0
  161. package/dist/vtc/website/upload/chunk/0.1/payload.js.map +1 -0
  162. package/dist/vtc/website/upload/commit/0.1/payload.d.ts +603 -0
  163. package/dist/vtc/website/upload/commit/0.1/payload.d.ts.map +1 -0
  164. package/dist/vtc/website/upload/commit/0.1/payload.js +337 -0
  165. package/dist/vtc/website/upload/commit/0.1/payload.js.map +1 -0
  166. package/package.json +1 -1
  167. package/src/_framework/0.4/framework.ts +1 -1
  168. package/src/_shared/components.ts +371 -0
  169. package/src/auth/_shared/0.1/signing-key.ts +17 -0
  170. package/src/auth/signing-key/enroll/0.1/payload.ts +349 -0
  171. package/src/auth/signing-key/list/0.1/payload.ts +323 -0
  172. package/src/auth/signing-key/revoke/0.1/payload.ts +204 -0
  173. package/src/index.ts +39 -0
  174. package/src/vta/contexts/update-did/1.1/payload.ts +256 -0
  175. package/src/vtc/_shared/0.1/community-presentation.ts +17 -0
  176. package/src/vtc/_shared/0.1/relationship-lifecycle.ts +17 -0
  177. package/src/vtc/_shared/0.1/schema-registry.ts +17 -0
  178. package/src/vtc/_shared/0.1/vetting-auto-grant.ts +17 -0
  179. package/src/vtc/_shared/0.1/website-transfer.ts +17 -0
  180. package/src/vtc/community/branding/show/0.1/payload.ts +207 -0
  181. package/src/vtc/community/branding/update/0.1/payload.ts +214 -0
  182. package/src/vtc/community/join-discovery/show/0.1/payload.ts +185 -0
  183. package/src/vtc/community/join-discovery/update/0.1/payload.ts +192 -0
  184. package/src/vtc/community/requested-attributes/show/0.1/payload.ts +221 -0
  185. package/src/vtc/community/requested-attributes/update/0.1/payload.ts +228 -0
  186. package/src/vtc/join-requests/query/0.1/payload.ts +285 -0
  187. package/src/vtc/join-requests/vetting/show/0.1/payload.ts +740 -0
  188. package/src/vtc/relationships/restore/0.1/payload.ts +307 -0
  189. package/src/vtc/relationships/suspend/0.1/payload.ts +307 -0
  190. package/src/vtc/rooms/list/0.1/payload.ts +449 -0
  191. package/src/vtc/schemas/accepts/delete/0.1/payload.ts +170 -0
  192. package/src/vtc/schemas/accepts/list/0.1/payload.ts +724 -0
  193. package/src/vtc/schemas/accepts/register/0.1/payload.ts +697 -0
  194. package/src/vtc/schemas/accepts/show/0.1/payload.ts +684 -0
  195. package/src/vtc/schemas/delete/0.1/payload.ts +170 -0
  196. package/src/vtc/schemas/list/0.1/payload.ts +344 -0
  197. package/src/vtc/schemas/register/0.1/payload.ts +325 -0
  198. package/src/vtc/schemas/show/0.1/payload.ts +308 -0
  199. package/src/vtc/vetting/auto-grant/show/0.1/payload.ts +297 -0
  200. package/src/vtc/vetting/auto-grant/update/0.1/payload.ts +316 -0
  201. package/src/vtc/vetting/revocations/list/0.1/payload.ts +416 -0
  202. package/src/vtc/vetting/vetters/grants/list/0.1/payload.ts +700 -0
  203. package/src/vtc/website/deploy/0.1/payload.ts +255 -0
  204. package/src/vtc/website/files/show/0.1/payload.ts +303 -0
  205. package/src/vtc/website/upload/abort/0.1/payload.ts +182 -0
  206. package/src/vtc/website/upload/begin/0.1/payload.ts +408 -0
  207. package/src/vtc/website/upload/chunk/0.1/payload.ts +295 -0
  208. package/src/vtc/website/upload/commit/0.1/payload.ts +385 -0
@@ -0,0 +1,349 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/signing-key/enroll/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { DeviceLabel, Ext, SigningKey, SigningKeyDid, SigningKeyScope } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A freshly generated key asks to be enrolled as a signing-key delegation of an identity: documents it signs will be authorized by that identity's standing. The document is issued and proved by the key being enrolled, which is the proof that the enrolling party holds it; the identity it will act for is named in the payload and is established by the authority evidence the consumer requires, never by the key's own signature. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface AuthSigningKeyEnrollPayload {
13
+ signingKeyDid: SigningKeyDid;
14
+ /**
15
+ * The identity the key will act for — the DID whose standing a document signed by the key is authorized by. Naming it is not claiming it: the consumer establishes that the enrolling party controls this identity from separate authority evidence (Authorization).
16
+ */
17
+ identityDid: string;
18
+ scope: SigningKeyScope;
19
+ deviceLabel?: DeviceLabel;
20
+ /**
21
+ * A requested lifetime for the delegation. The consumer sets the delegation's actual expiry — no later than this, and no later than its own cap — and returns it; absent means the consumer's default lifetime. MUST be in the future when the consumer executes the task.
22
+ */
23
+ expiresAt?: string;
24
+ ext?: Ext;
25
+ }
26
+ /**
27
+ * The delegation as stored. From this point a document the key signs is authorized by the identity's standing, read at execution time.
28
+ */
29
+ export interface AuthSigningKeyEnrollResponsePayload {
30
+ signingKey: SigningKey;
31
+ ext?: Ext;
32
+ }
33
+
34
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
35
+ export type { DeviceLabel, Ext, SigningKey, SigningKeyDid, SigningKeyScope };
36
+
37
+ /** Trust Task type URI. */
38
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/signing-key/enroll/0.1" as const;
39
+
40
+ /** Stable alias for this specification's request payload shape. */
41
+ export type Payload = AuthSigningKeyEnrollPayload;
42
+
43
+ /** Trust Task response type URI (request type URI + "#response"). */
44
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/signing-key/enroll/0.1#response" as const;
45
+
46
+ /** Stable alias for this specification's success-response payload shape. */
47
+ export type Response = AuthSigningKeyEnrollResponsePayload;
48
+
49
+ /**
50
+ * This specification's payload schema, as a value.
51
+ *
52
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
53
+ * rather than only as a `.json` file because TypeScript types are erased
54
+ * at runtime: without a schema a consumer has nothing to validate, and
55
+ * every REQUIRED payload member is optional in practice. Cross-file
56
+ * `$ref`s are already inlined, so it needs no resolver.
57
+ */
58
+ export const PAYLOAD_SCHEMA = {
59
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
60
+ "$id": "https://trusttasks.org/spec/auth/signing-key/enroll/0.1",
61
+ "title": "Auth — Signing Key Enroll — payload",
62
+ "description": "A freshly generated key asks to be enrolled as a signing-key delegation of an identity: documents it signs will be authorized by that identity's standing. The document is issued and proved by the key being enrolled, which is the proof that the enrolling party holds it; the identity it will act for is named in the payload and is established by the authority evidence the consumer requires, never by the key's own signature. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
63
+ "type": "object",
64
+ "additionalProperties": false,
65
+ "required": [
66
+ "signingKeyDid",
67
+ "identityDid",
68
+ "scope"
69
+ ],
70
+ "properties": {
71
+ "signingKeyDid": {
72
+ "$ref": "#/$defs/SigningKeyDid"
73
+ },
74
+ "identityDid": {
75
+ "type": "string",
76
+ "pattern": "^did:",
77
+ "minLength": 5,
78
+ "maxLength": 2048,
79
+ "description": "The identity the key will act for — the DID whose standing a document signed by the key is authorized by. Naming it is not claiming it: the consumer establishes that the enrolling party controls this identity from separate authority evidence (Authorization)."
80
+ },
81
+ "scope": {
82
+ "$ref": "#/$defs/SigningKeyScope"
83
+ },
84
+ "deviceLabel": {
85
+ "$ref": "#/$defs/DeviceLabel"
86
+ },
87
+ "expiresAt": {
88
+ "type": "string",
89
+ "format": "date-time",
90
+ "description": "A requested lifetime for the delegation. The consumer sets the delegation's actual expiry — no later than this, and no later than its own cap — and returns it; absent means the consumer's default lifetime. MUST be in the future when the consumer executes the task."
91
+ },
92
+ "ext": {
93
+ "$ref": "#/$defs/Ext"
94
+ }
95
+ },
96
+ "$defs": {
97
+ "Response": {
98
+ "$anchor": "response",
99
+ "title": "Auth — Signing Key Enroll — response payload",
100
+ "description": "The delegation as stored. From this point a document the key signs is authorized by the identity's standing, read at execution time.",
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "signingKey"
105
+ ],
106
+ "properties": {
107
+ "signingKey": {
108
+ "$ref": "#/$defs/SigningKey"
109
+ },
110
+ "ext": {
111
+ "$ref": "#/$defs/Ext"
112
+ }
113
+ }
114
+ },
115
+ "Ext": {
116
+ "title": "Ext",
117
+ "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.",
118
+ "type": "object",
119
+ "minProperties": 1,
120
+ "additionalProperties": true,
121
+ "propertyNames": {
122
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
123
+ }
124
+ },
125
+ "SigningKey": {
126
+ "title": "SigningKey",
127
+ "type": "object",
128
+ "additionalProperties": false,
129
+ "required": [
130
+ "signingKeyDid",
131
+ "identityDid",
132
+ "scope",
133
+ "createdAt",
134
+ "expiresAt",
135
+ "active"
136
+ ],
137
+ "description": "One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.",
138
+ "properties": {
139
+ "signingKeyDid": {
140
+ "$ref": "#/$defs/SigningKeyDid"
141
+ },
142
+ "identityDid": {
143
+ "type": "string",
144
+ "pattern": "^did:",
145
+ "minLength": 5,
146
+ "maxLength": 2048,
147
+ "description": "The identity the key acts for. Included so a holder need not infer it."
148
+ },
149
+ "scope": {
150
+ "$ref": "#/$defs/SigningKeyScope"
151
+ },
152
+ "deviceLabel": {
153
+ "$ref": "#/$defs/DeviceLabel"
154
+ },
155
+ "createdAt": {
156
+ "type": "string",
157
+ "format": "date-time",
158
+ "description": "When the delegation was enrolled."
159
+ },
160
+ "expiresAt": {
161
+ "type": "string",
162
+ "format": "date-time",
163
+ "description": "When the delegation stops authorizing documents. Always present: the consumer sets it at enrolment and caps it at its own maximum lifetime, whatever the producer asked for, so no delegation outlives the consumer's policy."
164
+ },
165
+ "lastUsedAt": {
166
+ "type": "string",
167
+ "format": "date-time",
168
+ "description": "When the delegation last authorized a document, as far as the consumer recorded. A usability signal for choosing which key to revoke, recorded best-effort; its absence does not mean the key was never used."
169
+ },
170
+ "revokedAt": {
171
+ "type": "string",
172
+ "format": "date-time",
173
+ "description": "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again."
174
+ },
175
+ "active": {
176
+ "type": "boolean",
177
+ "description": "Whether the delegation authorizes documents right now: not revoked and not past `expiresAt`. Computed by the consumer with the predicate its verifier applies, so a holder does not re-implement it and disagree."
178
+ }
179
+ }
180
+ },
181
+ "DeviceLabel": {
182
+ "title": "DeviceLabel",
183
+ "type": "string",
184
+ "minLength": 1,
185
+ "maxLength": 128,
186
+ "description": "A human-readable name for where the key lives, chosen by the enrolling identity — e.g. `Work laptop — Chrome`. Read by that identity and by administrators deciding which key to revoke; retained with the delegation. Free text authored by the enrolling identity, untrusted, and attributed to it wherever it is rendered. Absent rather than invented when none was chosen: an invented label is indistinguishable from a chosen one to somebody deciding which key to revoke."
187
+ },
188
+ "SigningKeyScope": {
189
+ "title": "SigningKeyScope",
190
+ "type": "string",
191
+ "enum": [
192
+ "console"
193
+ ],
194
+ "description": "What a delegated key may be accepted for. `console`: the operations an administration console performs on the identity's behalf, authorized by the identity's own standing. Never an approver's signature on a consent or approval decision, whatever the scope: those require an `assertionMethod` key of the approver's own DID document, which a delegated key never is. A closed enumeration so a consumer cannot be asked for a scope it does not define; a later version adds values."
195
+ },
196
+ "SigningKeyDid": {
197
+ "title": "SigningKeyDid",
198
+ "type": "string",
199
+ "minLength": 9,
200
+ "maxLength": 256,
201
+ "pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
202
+ "description": "The delegated key, as a `did:key` — an Ed25519 multikey (`z6Mk…`) derived from the public half of a keypair the holder generated for itself, typically a non-extractable browser key. `did:key` only, because its document is a function of the key and resolves with no network: a key whose DID document could be rewritten after enrolment is not the key that was enrolled."
203
+ }
204
+ }
205
+ } as const;
206
+
207
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
208
+ export const RESPONSE_PAYLOAD_SCHEMA = {
209
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
210
+ "$ref": "#/$defs/Response",
211
+ "$defs": {
212
+ "Response": {
213
+ "$anchor": "response",
214
+ "title": "Auth — Signing Key Enroll — response payload",
215
+ "description": "The delegation as stored. From this point a document the key signs is authorized by the identity's standing, read at execution time.",
216
+ "type": "object",
217
+ "additionalProperties": false,
218
+ "required": [
219
+ "signingKey"
220
+ ],
221
+ "properties": {
222
+ "signingKey": {
223
+ "$ref": "#/$defs/SigningKey"
224
+ },
225
+ "ext": {
226
+ "$ref": "#/$defs/Ext"
227
+ }
228
+ }
229
+ },
230
+ "Ext": {
231
+ "title": "Ext",
232
+ "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.",
233
+ "type": "object",
234
+ "minProperties": 1,
235
+ "additionalProperties": true,
236
+ "propertyNames": {
237
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
238
+ }
239
+ },
240
+ "SigningKey": {
241
+ "title": "SigningKey",
242
+ "type": "object",
243
+ "additionalProperties": false,
244
+ "required": [
245
+ "signingKeyDid",
246
+ "identityDid",
247
+ "scope",
248
+ "createdAt",
249
+ "expiresAt",
250
+ "active"
251
+ ],
252
+ "description": "One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.",
253
+ "properties": {
254
+ "signingKeyDid": {
255
+ "$ref": "#/$defs/SigningKeyDid"
256
+ },
257
+ "identityDid": {
258
+ "type": "string",
259
+ "pattern": "^did:",
260
+ "minLength": 5,
261
+ "maxLength": 2048,
262
+ "description": "The identity the key acts for. Included so a holder need not infer it."
263
+ },
264
+ "scope": {
265
+ "$ref": "#/$defs/SigningKeyScope"
266
+ },
267
+ "deviceLabel": {
268
+ "$ref": "#/$defs/DeviceLabel"
269
+ },
270
+ "createdAt": {
271
+ "type": "string",
272
+ "format": "date-time",
273
+ "description": "When the delegation was enrolled."
274
+ },
275
+ "expiresAt": {
276
+ "type": "string",
277
+ "format": "date-time",
278
+ "description": "When the delegation stops authorizing documents. Always present: the consumer sets it at enrolment and caps it at its own maximum lifetime, whatever the producer asked for, so no delegation outlives the consumer's policy."
279
+ },
280
+ "lastUsedAt": {
281
+ "type": "string",
282
+ "format": "date-time",
283
+ "description": "When the delegation last authorized a document, as far as the consumer recorded. A usability signal for choosing which key to revoke, recorded best-effort; its absence does not mean the key was never used."
284
+ },
285
+ "revokedAt": {
286
+ "type": "string",
287
+ "format": "date-time",
288
+ "description": "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again."
289
+ },
290
+ "active": {
291
+ "type": "boolean",
292
+ "description": "Whether the delegation authorizes documents right now: not revoked and not past `expiresAt`. Computed by the consumer with the predicate its verifier applies, so a holder does not re-implement it and disagree."
293
+ }
294
+ }
295
+ },
296
+ "DeviceLabel": {
297
+ "title": "DeviceLabel",
298
+ "type": "string",
299
+ "minLength": 1,
300
+ "maxLength": 128,
301
+ "description": "A human-readable name for where the key lives, chosen by the enrolling identity — e.g. `Work laptop — Chrome`. Read by that identity and by administrators deciding which key to revoke; retained with the delegation. Free text authored by the enrolling identity, untrusted, and attributed to it wherever it is rendered. Absent rather than invented when none was chosen: an invented label is indistinguishable from a chosen one to somebody deciding which key to revoke."
302
+ },
303
+ "SigningKeyScope": {
304
+ "title": "SigningKeyScope",
305
+ "type": "string",
306
+ "enum": [
307
+ "console"
308
+ ],
309
+ "description": "What a delegated key may be accepted for. `console`: the operations an administration console performs on the identity's behalf, authorized by the identity's own standing. Never an approver's signature on a consent or approval decision, whatever the scope: those require an `assertionMethod` key of the approver's own DID document, which a delegated key never is. A closed enumeration so a consumer cannot be asked for a scope it does not define; a later version adds values."
310
+ },
311
+ "SigningKeyDid": {
312
+ "title": "SigningKeyDid",
313
+ "type": "string",
314
+ "minLength": 9,
315
+ "maxLength": 256,
316
+ "pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
317
+ "description": "The delegated key, as a `did:key` — an Ed25519 multikey (`z6Mk…`) derived from the public half of a keypair the holder generated for itself, typically a non-extractable browser key. `did:key` only, because its document is a function of the key and resolves with no network: a key whose DID document could be rewritten after enrolment is not the key that was enrolled."
318
+ }
319
+ }
320
+ } as const;
321
+
322
+ /**
323
+ * SPEC.md §7.2 policy for the request variant, from this specification's
324
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
325
+ * per-specification and cannot be derived from the document alone, and
326
+ * item 2 needs the schema this carries.
327
+ */
328
+ export const SPEC = {
329
+ typeUri: TYPE_URI,
330
+ isBearer: false,
331
+ isProofRequired: true,
332
+ isRecipientRequired: true,
333
+ isIssuedAtRequired: true,
334
+ payloadSchema: PAYLOAD_SCHEMA,
335
+ } as const;
336
+
337
+ /**
338
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
339
+ * tracks the *issuer* party's requirement because a response swaps the
340
+ * parties (§7.3 item 5).
341
+ */
342
+ export const RESPONSE_SPEC = {
343
+ typeUri: RESPONSE_TYPE_URI,
344
+ isBearer: false,
345
+ isProofRequired: false,
346
+ isRecipientRequired: true,
347
+ isIssuedAtRequired: true,
348
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
349
+ } as const;
@@ -0,0 +1,323 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/signing-key/list/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { DeviceLabel, Ext, SigningKey, SigningKeyDid, SigningKeyScope } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * An identity lists its own signing-key delegations. The payload names no subject: the identity listed is the one the document's proof resolves to, so a caller cannot ask for somebody else's. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface AuthSigningKeyListPayload {
13
+ ext?: Ext;
14
+ }
15
+ /**
16
+ * Every delegation enrolled for the caller's identity, newest first, revoked ones included.
17
+ */
18
+ export interface AuthSigningKeyListResponsePayload {
19
+ /**
20
+ * @maxItems 256
21
+ */
22
+ signingKeys: SigningKey[];
23
+ ext?: Ext;
24
+ }
25
+
26
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
27
+ export type { DeviceLabel, Ext, SigningKey, SigningKeyDid, SigningKeyScope };
28
+
29
+ /** Trust Task type URI. */
30
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/signing-key/list/0.1" as const;
31
+
32
+ /** Stable alias for this specification's request payload shape. */
33
+ export type Payload = AuthSigningKeyListPayload;
34
+
35
+ /** Trust Task response type URI (request type URI + "#response"). */
36
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/signing-key/list/0.1#response" as const;
37
+
38
+ /** Stable alias for this specification's success-response payload shape. */
39
+ export type Response = AuthSigningKeyListResponsePayload;
40
+
41
+ /**
42
+ * This specification's payload schema, as a value.
43
+ *
44
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
45
+ * rather than only as a `.json` file because TypeScript types are erased
46
+ * at runtime: without a schema a consumer has nothing to validate, and
47
+ * every REQUIRED payload member is optional in practice. Cross-file
48
+ * `$ref`s are already inlined, so it needs no resolver.
49
+ */
50
+ export const PAYLOAD_SCHEMA = {
51
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
52
+ "$id": "https://trusttasks.org/spec/auth/signing-key/list/0.1",
53
+ "title": "Auth — Signing Key List — payload",
54
+ "description": "An identity lists its own signing-key delegations. The payload names no subject: the identity listed is the one the document's proof resolves to, so a caller cannot ask for somebody else's. The outer document members are owned by the framework — SPEC §6.3.",
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "properties": {
58
+ "ext": {
59
+ "$ref": "#/$defs/Ext"
60
+ }
61
+ },
62
+ "$defs": {
63
+ "Response": {
64
+ "$anchor": "response",
65
+ "title": "Auth — Signing Key List — response payload",
66
+ "description": "Every delegation enrolled for the caller's identity, newest first, revoked ones included.",
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": [
70
+ "signingKeys"
71
+ ],
72
+ "properties": {
73
+ "signingKeys": {
74
+ "type": "array",
75
+ "maxItems": 256,
76
+ "items": {
77
+ "$ref": "#/$defs/SigningKey"
78
+ }
79
+ },
80
+ "ext": {
81
+ "$ref": "#/$defs/Ext"
82
+ }
83
+ }
84
+ },
85
+ "Ext": {
86
+ "title": "Ext",
87
+ "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.",
88
+ "type": "object",
89
+ "minProperties": 1,
90
+ "additionalProperties": true,
91
+ "propertyNames": {
92
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
93
+ }
94
+ },
95
+ "SigningKey": {
96
+ "title": "SigningKey",
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "required": [
100
+ "signingKeyDid",
101
+ "identityDid",
102
+ "scope",
103
+ "createdAt",
104
+ "expiresAt",
105
+ "active"
106
+ ],
107
+ "description": "One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.",
108
+ "properties": {
109
+ "signingKeyDid": {
110
+ "$ref": "#/$defs/SigningKeyDid"
111
+ },
112
+ "identityDid": {
113
+ "type": "string",
114
+ "pattern": "^did:",
115
+ "minLength": 5,
116
+ "maxLength": 2048,
117
+ "description": "The identity the key acts for. Included so a holder need not infer it."
118
+ },
119
+ "scope": {
120
+ "$ref": "#/$defs/SigningKeyScope"
121
+ },
122
+ "deviceLabel": {
123
+ "$ref": "#/$defs/DeviceLabel"
124
+ },
125
+ "createdAt": {
126
+ "type": "string",
127
+ "format": "date-time",
128
+ "description": "When the delegation was enrolled."
129
+ },
130
+ "expiresAt": {
131
+ "type": "string",
132
+ "format": "date-time",
133
+ "description": "When the delegation stops authorizing documents. Always present: the consumer sets it at enrolment and caps it at its own maximum lifetime, whatever the producer asked for, so no delegation outlives the consumer's policy."
134
+ },
135
+ "lastUsedAt": {
136
+ "type": "string",
137
+ "format": "date-time",
138
+ "description": "When the delegation last authorized a document, as far as the consumer recorded. A usability signal for choosing which key to revoke, recorded best-effort; its absence does not mean the key was never used."
139
+ },
140
+ "revokedAt": {
141
+ "type": "string",
142
+ "format": "date-time",
143
+ "description": "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again."
144
+ },
145
+ "active": {
146
+ "type": "boolean",
147
+ "description": "Whether the delegation authorizes documents right now: not revoked and not past `expiresAt`. Computed by the consumer with the predicate its verifier applies, so a holder does not re-implement it and disagree."
148
+ }
149
+ }
150
+ },
151
+ "DeviceLabel": {
152
+ "title": "DeviceLabel",
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 128,
156
+ "description": "A human-readable name for where the key lives, chosen by the enrolling identity — e.g. `Work laptop — Chrome`. Read by that identity and by administrators deciding which key to revoke; retained with the delegation. Free text authored by the enrolling identity, untrusted, and attributed to it wherever it is rendered. Absent rather than invented when none was chosen: an invented label is indistinguishable from a chosen one to somebody deciding which key to revoke."
157
+ },
158
+ "SigningKeyScope": {
159
+ "title": "SigningKeyScope",
160
+ "type": "string",
161
+ "enum": [
162
+ "console"
163
+ ],
164
+ "description": "What a delegated key may be accepted for. `console`: the operations an administration console performs on the identity's behalf, authorized by the identity's own standing. Never an approver's signature on a consent or approval decision, whatever the scope: those require an `assertionMethod` key of the approver's own DID document, which a delegated key never is. A closed enumeration so a consumer cannot be asked for a scope it does not define; a later version adds values."
165
+ },
166
+ "SigningKeyDid": {
167
+ "title": "SigningKeyDid",
168
+ "type": "string",
169
+ "minLength": 9,
170
+ "maxLength": 256,
171
+ "pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
172
+ "description": "The delegated key, as a `did:key` — an Ed25519 multikey (`z6Mk…`) derived from the public half of a keypair the holder generated for itself, typically a non-extractable browser key. `did:key` only, because its document is a function of the key and resolves with no network: a key whose DID document could be rewritten after enrolment is not the key that was enrolled."
173
+ }
174
+ }
175
+ } as const;
176
+
177
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
178
+ export const RESPONSE_PAYLOAD_SCHEMA = {
179
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
180
+ "$ref": "#/$defs/Response",
181
+ "$defs": {
182
+ "Response": {
183
+ "$anchor": "response",
184
+ "title": "Auth — Signing Key List — response payload",
185
+ "description": "Every delegation enrolled for the caller's identity, newest first, revoked ones included.",
186
+ "type": "object",
187
+ "additionalProperties": false,
188
+ "required": [
189
+ "signingKeys"
190
+ ],
191
+ "properties": {
192
+ "signingKeys": {
193
+ "type": "array",
194
+ "maxItems": 256,
195
+ "items": {
196
+ "$ref": "#/$defs/SigningKey"
197
+ }
198
+ },
199
+ "ext": {
200
+ "$ref": "#/$defs/Ext"
201
+ }
202
+ }
203
+ },
204
+ "Ext": {
205
+ "title": "Ext",
206
+ "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.",
207
+ "type": "object",
208
+ "minProperties": 1,
209
+ "additionalProperties": true,
210
+ "propertyNames": {
211
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
212
+ }
213
+ },
214
+ "SigningKey": {
215
+ "title": "SigningKey",
216
+ "type": "object",
217
+ "additionalProperties": false,
218
+ "required": [
219
+ "signingKeyDid",
220
+ "identityDid",
221
+ "scope",
222
+ "createdAt",
223
+ "expiresAt",
224
+ "active"
225
+ ],
226
+ "description": "One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.",
227
+ "properties": {
228
+ "signingKeyDid": {
229
+ "$ref": "#/$defs/SigningKeyDid"
230
+ },
231
+ "identityDid": {
232
+ "type": "string",
233
+ "pattern": "^did:",
234
+ "minLength": 5,
235
+ "maxLength": 2048,
236
+ "description": "The identity the key acts for. Included so a holder need not infer it."
237
+ },
238
+ "scope": {
239
+ "$ref": "#/$defs/SigningKeyScope"
240
+ },
241
+ "deviceLabel": {
242
+ "$ref": "#/$defs/DeviceLabel"
243
+ },
244
+ "createdAt": {
245
+ "type": "string",
246
+ "format": "date-time",
247
+ "description": "When the delegation was enrolled."
248
+ },
249
+ "expiresAt": {
250
+ "type": "string",
251
+ "format": "date-time",
252
+ "description": "When the delegation stops authorizing documents. Always present: the consumer sets it at enrolment and caps it at its own maximum lifetime, whatever the producer asked for, so no delegation outlives the consumer's policy."
253
+ },
254
+ "lastUsedAt": {
255
+ "type": "string",
256
+ "format": "date-time",
257
+ "description": "When the delegation last authorized a document, as far as the consumer recorded. A usability signal for choosing which key to revoke, recorded best-effort; its absence does not mean the key was never used."
258
+ },
259
+ "revokedAt": {
260
+ "type": "string",
261
+ "format": "date-time",
262
+ "description": "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again."
263
+ },
264
+ "active": {
265
+ "type": "boolean",
266
+ "description": "Whether the delegation authorizes documents right now: not revoked and not past `expiresAt`. Computed by the consumer with the predicate its verifier applies, so a holder does not re-implement it and disagree."
267
+ }
268
+ }
269
+ },
270
+ "DeviceLabel": {
271
+ "title": "DeviceLabel",
272
+ "type": "string",
273
+ "minLength": 1,
274
+ "maxLength": 128,
275
+ "description": "A human-readable name for where the key lives, chosen by the enrolling identity — e.g. `Work laptop — Chrome`. Read by that identity and by administrators deciding which key to revoke; retained with the delegation. Free text authored by the enrolling identity, untrusted, and attributed to it wherever it is rendered. Absent rather than invented when none was chosen: an invented label is indistinguishable from a chosen one to somebody deciding which key to revoke."
276
+ },
277
+ "SigningKeyScope": {
278
+ "title": "SigningKeyScope",
279
+ "type": "string",
280
+ "enum": [
281
+ "console"
282
+ ],
283
+ "description": "What a delegated key may be accepted for. `console`: the operations an administration console performs on the identity's behalf, authorized by the identity's own standing. Never an approver's signature on a consent or approval decision, whatever the scope: those require an `assertionMethod` key of the approver's own DID document, which a delegated key never is. A closed enumeration so a consumer cannot be asked for a scope it does not define; a later version adds values."
284
+ },
285
+ "SigningKeyDid": {
286
+ "title": "SigningKeyDid",
287
+ "type": "string",
288
+ "minLength": 9,
289
+ "maxLength": 256,
290
+ "pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
291
+ "description": "The delegated key, as a `did:key` — an Ed25519 multikey (`z6Mk…`) derived from the public half of a keypair the holder generated for itself, typically a non-extractable browser key. `did:key` only, because its document is a function of the key and resolves with no network: a key whose DID document could be rewritten after enrolment is not the key that was enrolled."
292
+ }
293
+ }
294
+ } as const;
295
+
296
+ /**
297
+ * SPEC.md §7.2 policy for the request variant, from this specification's
298
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
299
+ * per-specification and cannot be derived from the document alone, and
300
+ * item 2 needs the schema this carries.
301
+ */
302
+ export const SPEC = {
303
+ typeUri: TYPE_URI,
304
+ isBearer: false,
305
+ isProofRequired: true,
306
+ isRecipientRequired: true,
307
+ isIssuedAtRequired: false,
308
+ payloadSchema: PAYLOAD_SCHEMA,
309
+ } as const;
310
+
311
+ /**
312
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
313
+ * tracks the *issuer* party's requirement because a response swaps the
314
+ * parties (§7.3 item 5).
315
+ */
316
+ export const RESPONSE_SPEC = {
317
+ typeUri: RESPONSE_TYPE_URI,
318
+ isBearer: false,
319
+ isProofRequired: true,
320
+ isRecipientRequired: true,
321
+ isIssuedAtRequired: false,
322
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
323
+ } as const;