@openvtc/trust-tasks 0.20.8 → 0.21.1

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 +254 -0
  2. package/dist/_shared/components.d.ts +299 -2
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts +456 -0
  5. package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts.map +1 -0
  6. package/dist/auth/passkey/enroll/invite/0.2/payload.js +248 -0
  7. package/dist/auth/passkey/enroll/invite/0.2/payload.js.map +1 -0
  8. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts +728 -0
  9. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts.map +1 -0
  10. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js +430 -0
  11. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js.map +1 -0
  12. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts +1043 -0
  13. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts.map +1 -0
  14. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js +628 -0
  15. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js.map +1 -0
  16. package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts +533 -0
  17. package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts.map +1 -0
  18. package/dist/auth/passkey/revoke/finish/0.2/payload.js +315 -0
  19. package/dist/auth/passkey/revoke/finish/0.2/payload.js.map +1 -0
  20. package/dist/auth/passkey/revoke/start/0.2/payload.d.ts +511 -0
  21. package/dist/auth/passkey/revoke/start/0.2/payload.d.ts.map +1 -0
  22. package/dist/auth/passkey/revoke/start/0.2/payload.js +297 -0
  23. package/dist/auth/passkey/revoke/start/0.2/payload.js.map +1 -0
  24. package/dist/auth/step-up/approve-response/0.5/payload.d.ts +887 -0
  25. package/dist/auth/step-up/approve-response/0.5/payload.d.ts.map +1 -0
  26. package/dist/auth/step-up/approve-response/0.5/payload.js +504 -0
  27. package/dist/auth/step-up/approve-response/0.5/payload.js.map +1 -0
  28. package/dist/device/list/0.1/payload.d.ts +4 -4
  29. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  30. package/dist/device/list/0.1/payload.js +4 -2
  31. package/dist/device/list/0.1/payload.js.map +1 -1
  32. package/dist/device/list/0.2/payload.d.ts +4 -4
  33. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  34. package/dist/device/list/0.2/payload.js +4 -2
  35. package/dist/device/list/0.2/payload.js.map +1 -1
  36. package/dist/device/register/0.1/payload.d.ts +4 -4
  37. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  38. package/dist/device/register/0.1/payload.js +4 -2
  39. package/dist/device/register/0.1/payload.js.map +1 -1
  40. package/dist/device/register/0.2/payload.d.ts +4 -4
  41. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  42. package/dist/device/register/0.2/payload.js +4 -2
  43. package/dist/device/register/0.2/payload.js.map +1 -1
  44. package/dist/git-ns/_shared/0.4/git-ns.d.ts +16 -0
  45. package/dist/git-ns/_shared/0.4/git-ns.d.ts.map +1 -0
  46. package/dist/git-ns/_shared/0.4/git-ns.js +6 -0
  47. package/dist/git-ns/_shared/0.4/git-ns.js.map +1 -0
  48. package/dist/git-ns/account/link-status/0.1/payload.d.ts +2 -2
  49. package/dist/git-ns/account/link-status/0.1/payload.js +2 -2
  50. package/dist/git-ns/account/link-status/0.1/payload.js.map +1 -1
  51. package/dist/git-ns/account/unlink/0.1/payload.d.ts +411 -0
  52. package/dist/git-ns/account/unlink/0.1/payload.d.ts.map +1 -0
  53. package/dist/git-ns/account/unlink/0.1/payload.js +228 -0
  54. package/dist/git-ns/account/unlink/0.1/payload.js.map +1 -0
  55. package/dist/git-ns/bridge/event/0.3/payload.d.ts +1682 -0
  56. package/dist/git-ns/bridge/event/0.3/payload.d.ts.map +1 -0
  57. package/dist/git-ns/bridge/event/0.3/payload.js +971 -0
  58. package/dist/git-ns/bridge/event/0.3/payload.js.map +1 -0
  59. package/dist/git-ns/bridge/job/0.4/payload.d.ts +1068 -0
  60. package/dist/git-ns/bridge/job/0.4/payload.d.ts.map +1 -0
  61. package/dist/git-ns/bridge/job/0.4/payload.js +573 -0
  62. package/dist/git-ns/bridge/job/0.4/payload.js.map +1 -0
  63. package/dist/git-ns/drift/resolve/0.3/payload.d.ts +1072 -0
  64. package/dist/git-ns/drift/resolve/0.3/payload.d.ts.map +1 -0
  65. package/dist/git-ns/drift/resolve/0.3/payload.js +634 -0
  66. package/dist/git-ns/drift/resolve/0.3/payload.js.map +1 -0
  67. package/dist/git-ns/namespace/reseat/0.3/payload.d.ts +515 -0
  68. package/dist/git-ns/namespace/reseat/0.3/payload.d.ts.map +1 -0
  69. package/dist/git-ns/namespace/reseat/0.3/payload.js +296 -0
  70. package/dist/git-ns/namespace/reseat/0.3/payload.js.map +1 -0
  71. package/dist/git-ns/repo/create/0.3/payload.d.ts +1101 -0
  72. package/dist/git-ns/repo/create/0.3/payload.d.ts.map +1 -0
  73. package/dist/git-ns/repo/create/0.3/payload.js +646 -0
  74. package/dist/git-ns/repo/create/0.3/payload.js.map +1 -0
  75. package/dist/git-ns/right/break-glass/0.1/payload.d.ts +685 -0
  76. package/dist/git-ns/right/break-glass/0.1/payload.d.ts.map +1 -0
  77. package/dist/git-ns/right/break-glass/0.1/payload.js +397 -0
  78. package/dist/git-ns/right/break-glass/0.1/payload.js.map +1 -0
  79. package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts +384 -0
  80. package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts.map +1 -0
  81. package/dist/git-ns/right/break-glass-notice/0.1/payload.js +216 -0
  82. package/dist/git-ns/right/break-glass-notice/0.1/payload.js.map +1 -0
  83. package/dist/git-ns/right/grant/0.3/payload.d.ts +678 -0
  84. package/dist/git-ns/right/grant/0.3/payload.d.ts.map +1 -0
  85. package/dist/git-ns/right/grant/0.3/payload.js +383 -0
  86. package/dist/git-ns/right/grant/0.3/payload.js.map +1 -0
  87. package/dist/git-ns/right/ratify/0.1/payload.d.ts +702 -0
  88. package/dist/git-ns/right/ratify/0.1/payload.d.ts.map +1 -0
  89. package/dist/git-ns/right/ratify/0.1/payload.js +404 -0
  90. package/dist/git-ns/right/ratify/0.1/payload.js.map +1 -0
  91. package/dist/git-ns/right/revoke/0.3/payload.d.ts +664 -0
  92. package/dist/git-ns/right/revoke/0.3/payload.d.ts.map +1 -0
  93. package/dist/git-ns/right/revoke/0.3/payload.js +378 -0
  94. package/dist/git-ns/right/revoke/0.3/payload.js.map +1 -0
  95. package/dist/git-ns/roles/reproject/0.1/payload.d.ts +325 -0
  96. package/dist/git-ns/roles/reproject/0.1/payload.d.ts.map +1 -0
  97. package/dist/git-ns/roles/reproject/0.1/payload.js +176 -0
  98. package/dist/git-ns/roles/reproject/0.1/payload.js.map +1 -0
  99. package/dist/git-ns/view/0.1/payload.d.ts +2 -2
  100. package/dist/git-ns/view/0.1/payload.js +2 -2
  101. package/dist/git-ns/view/0.1/payload.js.map +1 -1
  102. package/dist/git-ns/view/0.2/payload.d.ts +2 -2
  103. package/dist/git-ns/view/0.2/payload.js +2 -2
  104. package/dist/git-ns/view/0.2/payload.js.map +1 -1
  105. package/dist/git-ns/view/0.3/payload.d.ts +2 -2
  106. package/dist/git-ns/view/0.3/payload.js +2 -2
  107. package/dist/git-ns/view/0.3/payload.js.map +1 -1
  108. package/dist/git-ns/view/0.4/payload.d.ts +1696 -0
  109. package/dist/git-ns/view/0.4/payload.d.ts.map +1 -0
  110. package/dist/git-ns/view/0.4/payload.js +1012 -0
  111. package/dist/git-ns/view/0.4/payload.js.map +1 -0
  112. package/dist/index.d.ts +30 -0
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +30 -0
  115. package/dist/index.js.map +1 -1
  116. package/dist/messaging/message/status/0.1/payload.d.ts +372 -0
  117. package/dist/messaging/message/status/0.1/payload.d.ts.map +1 -0
  118. package/dist/messaging/message/status/0.1/payload.js +214 -0
  119. package/dist/messaging/message/status/0.1/payload.js.map +1 -0
  120. package/dist/vta/_shared/0.3/did-key-roles.d.ts +16 -0
  121. package/dist/vta/_shared/0.3/did-key-roles.d.ts.map +1 -0
  122. package/dist/vta/_shared/0.3/did-key-roles.js +6 -0
  123. package/dist/vta/_shared/0.3/did-key-roles.js.map +1 -0
  124. package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts +326 -0
  125. package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts.map +1 -0
  126. package/dist/vta/attestation/mnemonic-export/1.0/payload.js +175 -0
  127. package/dist/vta/attestation/mnemonic-export/1.0/payload.js.map +1 -0
  128. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +1914 -0
  129. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -0
  130. package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1128 -0
  131. package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -0
  132. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +1603 -0
  133. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -0
  134. package/dist/vta/webvh/dids/keys/list/1.0/payload.js +942 -0
  135. package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -0
  136. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +1914 -0
  137. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -0
  138. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1123 -0
  139. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -0
  140. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +2021 -0
  141. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
  142. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1168 -0
  143. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -0
  144. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +1992 -0
  145. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -0
  146. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1151 -0
  147. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -0
  148. package/dist/vta/webvh/dids/update/2.0/payload.d.ts +1062 -0
  149. package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -0
  150. package/dist/vta/webvh/dids/update/2.0/payload.js +616 -0
  151. package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -0
  152. package/dist/vtc/credentials/reissue/0.1/payload.d.ts +502 -0
  153. package/dist/vtc/credentials/reissue/0.1/payload.d.ts.map +1 -0
  154. package/dist/vtc/credentials/reissue/0.1/payload.js +282 -0
  155. package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -0
  156. package/dist/vtc/members/personhood/challenge/0.1/payload.d.ts +2 -2
  157. package/dist/vtc/members/personhood/challenge/0.1/payload.js +2 -2
  158. package/dist/vtc/members/personhood/challenge/0.1/payload.js.map +1 -1
  159. package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +2 -2
  160. package/dist/vtc/vetting/vetters/profile/0.1/payload.js +2 -2
  161. package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -1
  162. package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +2 -2
  163. package/dist/vtc/vetting/vetters/resend/0.1/payload.js +2 -2
  164. package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -1
  165. package/package.json +1 -1
  166. package/src/_shared/components.ts +313 -2
  167. package/src/auth/passkey/enroll/invite/0.2/payload.ts +325 -0
  168. package/src/auth/passkey/enroll/redeem/finish/0.1/payload.ts +499 -0
  169. package/src/auth/passkey/enroll/redeem/start/0.1/payload.ts +700 -0
  170. package/src/auth/passkey/revoke/finish/0.2/payload.ts +379 -0
  171. package/src/auth/passkey/revoke/start/0.2/payload.ts +349 -0
  172. package/src/auth/step-up/approve-response/0.5/payload.ts +593 -0
  173. package/src/device/list/0.1/payload.ts +4 -2
  174. package/src/device/list/0.2/payload.ts +4 -2
  175. package/src/device/register/0.1/payload.ts +4 -2
  176. package/src/device/register/0.2/payload.ts +4 -2
  177. package/src/git-ns/_shared/0.4/git-ns.ts +17 -0
  178. package/src/git-ns/account/link-status/0.1/payload.ts +2 -2
  179. package/src/git-ns/account/unlink/0.1/payload.ts +274 -0
  180. package/src/git-ns/bridge/event/0.3/payload.ts +1132 -0
  181. package/src/git-ns/bridge/job/0.4/payload.ts +691 -0
  182. package/src/git-ns/drift/resolve/0.3/payload.ts +707 -0
  183. package/src/git-ns/namespace/reseat/0.3/payload.ts +342 -0
  184. package/src/git-ns/repo/create/0.3/payload.ts +706 -0
  185. package/src/git-ns/right/break-glass/0.1/payload.ts +443 -0
  186. package/src/git-ns/right/break-glass-notice/0.1/payload.ts +258 -0
  187. package/src/git-ns/right/grant/0.3/payload.ts +434 -0
  188. package/src/git-ns/right/ratify/0.1/payload.ts +455 -0
  189. package/src/git-ns/right/revoke/0.3/payload.ts +425 -0
  190. package/src/git-ns/roles/reproject/0.1/payload.ts +220 -0
  191. package/src/git-ns/view/0.1/payload.ts +2 -2
  192. package/src/git-ns/view/0.2/payload.ts +2 -2
  193. package/src/git-ns/view/0.3/payload.ts +2 -2
  194. package/src/git-ns/view/0.4/payload.ts +1075 -0
  195. package/src/index.ts +30 -0
  196. package/src/messaging/message/status/0.1/payload.ts +270 -0
  197. package/src/vta/_shared/0.3/did-key-roles.ts +17 -0
  198. package/src/vta/attestation/mnemonic-export/1.0/payload.ts +232 -0
  199. package/src/vta/webvh/dids/keys/add/1.0/payload.ts +1217 -0
  200. package/src/vta/webvh/dids/keys/list/1.0/payload.ts +1004 -0
  201. package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +1212 -0
  202. package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +1276 -0
  203. package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +1262 -0
  204. package/src/vta/webvh/dids/update/2.0/payload.ts +713 -0
  205. package/src/vtc/credentials/reissue/0.1/payload.ts +357 -0
  206. package/src/vtc/members/personhood/challenge/0.1/payload.ts +2 -2
  207. package/src/vtc/vetting/vetters/profile/0.1/payload.ts +2 -2
  208. package/src/vtc/vetting/vetters/resend/0.1/payload.ts +2 -2
@@ -0,0 +1,425 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/right/revoke/0.3/payload.schema.json
4
+ */
5
+
6
+ import type { BreakGlass, Did_GitNsV0_3 as Did, Ext, Resource, Right, RightRecord_GitNsV0_4 as RightRecord } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * Revokes one recorded git right and withdraws it from the Trust Registry.
11
+ */
12
+ export interface GitNamespacesRevokeRightPayload {
13
+ /**
14
+ * Who holds the right.
15
+ */
16
+ subject: Did;
17
+ right: Right;
18
+ /**
19
+ * The resource exactly as recorded. Revocation matches the record; it does not revoke a narrower right the subject holds inside this resource.
20
+ */
21
+ resource: Resource;
22
+ /**
23
+ * Why, in the revoker's words. Kept in the VTC's audit record.
24
+ */
25
+ reason?: string;
26
+ ext?: Ext;
27
+ }
28
+ /**
29
+ * The revoked record.
30
+ */
31
+ export interface GitNamespacesRevokeRightResponsePayload {
32
+ /**
33
+ * The record as it stood when it was revoked.
34
+ */
35
+ revoked: RightRecord;
36
+ ext?: Ext;
37
+ }
38
+
39
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
40
+ export type { BreakGlass, Did, Ext, Resource, Right, RightRecord };
41
+
42
+ /** Trust Task type URI. */
43
+ export const TYPE_URI = "https://trusttasks.org/spec/git-ns/right/revoke/0.3" as const;
44
+
45
+ /** Stable alias for this specification's request payload shape. */
46
+ export type Payload = GitNamespacesRevokeRightPayload;
47
+
48
+ /** Trust Task response type URI (request type URI + "#response"). */
49
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/git-ns/right/revoke/0.3#response" as const;
50
+
51
+ /** Stable alias for this specification's success-response payload shape. */
52
+ export type Response = GitNamespacesRevokeRightResponsePayload;
53
+
54
+ /**
55
+ * This specification's payload schema, as a value.
56
+ *
57
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
58
+ * rather than only as a `.json` file because TypeScript types are erased
59
+ * at runtime: without a schema a consumer has nothing to validate, and
60
+ * every REQUIRED payload member is optional in practice. Cross-file
61
+ * `$ref`s are already inlined, so it needs no resolver.
62
+ */
63
+ export const PAYLOAD_SCHEMA = {
64
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
65
+ "$id": "https://trusttasks.org/spec/git-ns/right/revoke/0.3",
66
+ "title": "Git Namespaces — Revoke Right — payload",
67
+ "description": "Revokes one recorded git right and withdraws it from the Trust Registry.",
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "required": [
71
+ "subject",
72
+ "right",
73
+ "resource"
74
+ ],
75
+ "properties": {
76
+ "subject": {
77
+ "$ref": "#/$defs/Did",
78
+ "description": "Who holds the right."
79
+ },
80
+ "right": {
81
+ "$ref": "#/$defs/Right"
82
+ },
83
+ "resource": {
84
+ "$ref": "#/$defs/Resource",
85
+ "description": "The resource exactly as recorded. Revocation matches the record; it does not revoke a narrower right the subject holds inside this resource."
86
+ },
87
+ "reason": {
88
+ "type": "string",
89
+ "maxLength": 1024,
90
+ "description": "Why, in the revoker's words. Kept in the VTC's audit record."
91
+ },
92
+ "ext": {
93
+ "$ref": "#/$defs/Ext"
94
+ }
95
+ },
96
+ "$defs": {
97
+ "Response": {
98
+ "$anchor": "response",
99
+ "title": "Git Namespaces — Revoke Right — response payload",
100
+ "description": "The revoked record.",
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "revoked"
105
+ ],
106
+ "properties": {
107
+ "revoked": {
108
+ "$ref": "#/$defs/RightRecord",
109
+ "description": "The record as it stood when it was revoked."
110
+ },
111
+ "ext": {
112
+ "$ref": "#/$defs/Ext"
113
+ }
114
+ }
115
+ },
116
+ "Ext": {
117
+ "title": "Ext",
118
+ "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.",
119
+ "type": "object",
120
+ "minProperties": 1,
121
+ "additionalProperties": true,
122
+ "propertyNames": {
123
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
124
+ }
125
+ },
126
+ "RightRecord": {
127
+ "title": "RightRecord",
128
+ "description": "One recorded right. Implied rights (§4.2 of the rights model: `own` implies `maintain` implies `commit.sign` on the same resource; `ns.admin` implies `repo.create` and `own` across its namespace) are not records and never appear as RightRecords. A record carrying `breakGlass` was given by its subject to themselves through git-ns/right/break-glass; it is a real right, published like any other, and is shown with that flag on every surface that shows the record.",
129
+ "type": "object",
130
+ "additionalProperties": false,
131
+ "required": [
132
+ "subject",
133
+ "right",
134
+ "resource",
135
+ "grantedBy",
136
+ "grantedAt"
137
+ ],
138
+ "properties": {
139
+ "subject": {
140
+ "$ref": "#/$defs/Did",
141
+ "description": "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts."
142
+ },
143
+ "right": {
144
+ "$ref": "#/$defs/Right"
145
+ },
146
+ "resource": {
147
+ "$ref": "#/$defs/Resource"
148
+ },
149
+ "grantedBy": {
150
+ "$ref": "#/$defs/Did",
151
+ "description": "The actor whose task caused the right: the granter, the creator of a repository (for its first `own`), the adopting admin, the transferring owner, or the binding admin (for the first `git.ns.admin`). The VTC's own DID for a right it derives from its configuration."
152
+ },
153
+ "grantedAt": {
154
+ "type": "string",
155
+ "format": "date-time"
156
+ },
157
+ "expiresAt": {
158
+ "type": "string",
159
+ "format": "date-time",
160
+ "description": "When the right lapses. Absent: no expiry."
161
+ },
162
+ "reason": {
163
+ "type": "string",
164
+ "maxLength": 1024,
165
+ "description": "The granter's free-text reason. Disclosed only to holders of `git.repo.own` on the resource and of `git.ns.admin` over it."
166
+ },
167
+ "breakGlass": {
168
+ "$ref": "#/$defs/BreakGlass",
169
+ "description": "Present exactly when the subject gave themselves this right through git-ns/right/break-glass. Absent for every other record."
170
+ }
171
+ }
172
+ },
173
+ "BreakGlass": {
174
+ "title": "BreakGlass",
175
+ "description": "How a self-granted right came to be, and whether another administrator has since ratified it. A record whose `breakGlass` has no `ratifiedBy` is **unratified**: it is live and published like any other right, it does not count toward the last-owner or last-admin invariants, and any community administrator or namespace admin of its namespace may revoke it. Ratification (git-ns/right/ratify) sets `ratifiedBy` and `ratifiedAt`; from then on the record is an ordinary grant, and `breakGlass` stays as its history. Never published to the Trust Registry.",
176
+ "type": "object",
177
+ "additionalProperties": false,
178
+ "required": [
179
+ "by",
180
+ "at",
181
+ "justification"
182
+ ],
183
+ "properties": {
184
+ "by": {
185
+ "$ref": "#/$defs/Did",
186
+ "description": "Who broke the glass: always the record's `subject`, restated so the flag reads on its own."
187
+ },
188
+ "at": {
189
+ "type": "string",
190
+ "format": "date-time",
191
+ "description": "When the VTC recorded the break-glass."
192
+ },
193
+ "justification": {
194
+ "type": "string",
195
+ "minLength": 1,
196
+ "maxLength": 2048,
197
+ "pattern": "\\S",
198
+ "description": "The actor's statement of why nobody else could grant this right. Shown to every community administrator, every namespace admin of the namespace and every owner of the resource; kept in the audit record; never published."
199
+ },
200
+ "effectiveAt": {
201
+ "type": "string",
202
+ "format": "date-time",
203
+ "description": "When the right takes effect, where the community's policy imposed a delay. Absent: it took effect at `at`. Until this instant the record confers nothing and is not published, and any administrator who may revoke it may do so."
204
+ },
205
+ "ratifiedBy": {
206
+ "$ref": "#/$defs/Did",
207
+ "description": "The administrator who ratified the record — never its subject. Absent while unratified."
208
+ },
209
+ "ratifiedAt": {
210
+ "type": "string",
211
+ "format": "date-time",
212
+ "description": "When it was ratified. Present exactly when `ratifiedBy` is."
213
+ }
214
+ }
215
+ },
216
+ "Did": {
217
+ "title": "Did",
218
+ "description": "A bare DID in the W3C DID Core syntax (§3.1): `did:`, a method name of lowercase letters and digits, `:`, and a method-specific id of colon-separated segments drawn from `A-Z a-z 0-9 . - _` and percent-encoded octets, the last segment non-empty. A DID URL is not a DID: no path, query or fragment (`/`, `?`, `#`), so a verification-method id such as `did:key:z6Mk…#z6Mk…` is refused. Compared by exact string equality — no case folding or percent-decoding. A consumer MUST still treat the value as data: the pattern keeps shell metacharacters, whitespace and quotes out of the wire form, but it does not make a DID safe to splice into a command or markup.",
219
+ "type": "string",
220
+ "maxLength": 2048,
221
+ "pattern": "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$"
222
+ },
223
+ "Resource": {
224
+ "title": "Resource",
225
+ "description": "A forge-qualified resource: `<forge-host>/<owner>` for a namespace, or `<forge-host>/<owner>/<repo>` for one repository, all lowercase — `github.com/acme`, `github.com/acme/widgets`, `codeberg.org/acme`. The forge is never implied: `acme/widgets` alone is not a resource. Containment is by whole segment: `github.com/acme` contains `github.com/acme/widgets` and does not contain `github.com/acme-labs/x` or `codeberg.org/acme/widgets`.",
226
+ "type": "string",
227
+ "maxLength": 455,
228
+ "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+(?:/[a-z0-9_-][a-z0-9._-]{0,99}){1,2}$"
229
+ },
230
+ "Right": {
231
+ "title": "Right",
232
+ "description": "One of the five git rights. Each string is also the TRQP `action` the VTC publishes the right under in its Trust Registry, so it is carried verbatim. `git.ns.admin` and `git.repo.create` apply to a namespace resource; `git.repo.own` and `git.repo.maintain` to a repository resource; `git.commit.sign` to either.",
233
+ "type": "string",
234
+ "enum": [
235
+ "git.ns.admin",
236
+ "git.repo.create",
237
+ "git.repo.own",
238
+ "git.repo.maintain",
239
+ "git.commit.sign"
240
+ ]
241
+ }
242
+ }
243
+ } as const;
244
+
245
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
246
+ export const RESPONSE_PAYLOAD_SCHEMA = {
247
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
248
+ "$ref": "#/$defs/Response",
249
+ "$defs": {
250
+ "Response": {
251
+ "$anchor": "response",
252
+ "title": "Git Namespaces — Revoke Right — response payload",
253
+ "description": "The revoked record.",
254
+ "type": "object",
255
+ "additionalProperties": false,
256
+ "required": [
257
+ "revoked"
258
+ ],
259
+ "properties": {
260
+ "revoked": {
261
+ "$ref": "#/$defs/RightRecord",
262
+ "description": "The record as it stood when it was revoked."
263
+ },
264
+ "ext": {
265
+ "$ref": "#/$defs/Ext"
266
+ }
267
+ }
268
+ },
269
+ "Ext": {
270
+ "title": "Ext",
271
+ "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.",
272
+ "type": "object",
273
+ "minProperties": 1,
274
+ "additionalProperties": true,
275
+ "propertyNames": {
276
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
277
+ }
278
+ },
279
+ "RightRecord": {
280
+ "title": "RightRecord",
281
+ "description": "One recorded right. Implied rights (§4.2 of the rights model: `own` implies `maintain` implies `commit.sign` on the same resource; `ns.admin` implies `repo.create` and `own` across its namespace) are not records and never appear as RightRecords. A record carrying `breakGlass` was given by its subject to themselves through git-ns/right/break-glass; it is a real right, published like any other, and is shown with that flag on every surface that shows the record.",
282
+ "type": "object",
283
+ "additionalProperties": false,
284
+ "required": [
285
+ "subject",
286
+ "right",
287
+ "resource",
288
+ "grantedBy",
289
+ "grantedAt"
290
+ ],
291
+ "properties": {
292
+ "subject": {
293
+ "$ref": "#/$defs/Did",
294
+ "description": "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts."
295
+ },
296
+ "right": {
297
+ "$ref": "#/$defs/Right"
298
+ },
299
+ "resource": {
300
+ "$ref": "#/$defs/Resource"
301
+ },
302
+ "grantedBy": {
303
+ "$ref": "#/$defs/Did",
304
+ "description": "The actor whose task caused the right: the granter, the creator of a repository (for its first `own`), the adopting admin, the transferring owner, or the binding admin (for the first `git.ns.admin`). The VTC's own DID for a right it derives from its configuration."
305
+ },
306
+ "grantedAt": {
307
+ "type": "string",
308
+ "format": "date-time"
309
+ },
310
+ "expiresAt": {
311
+ "type": "string",
312
+ "format": "date-time",
313
+ "description": "When the right lapses. Absent: no expiry."
314
+ },
315
+ "reason": {
316
+ "type": "string",
317
+ "maxLength": 1024,
318
+ "description": "The granter's free-text reason. Disclosed only to holders of `git.repo.own` on the resource and of `git.ns.admin` over it."
319
+ },
320
+ "breakGlass": {
321
+ "$ref": "#/$defs/BreakGlass",
322
+ "description": "Present exactly when the subject gave themselves this right through git-ns/right/break-glass. Absent for every other record."
323
+ }
324
+ }
325
+ },
326
+ "BreakGlass": {
327
+ "title": "BreakGlass",
328
+ "description": "How a self-granted right came to be, and whether another administrator has since ratified it. A record whose `breakGlass` has no `ratifiedBy` is **unratified**: it is live and published like any other right, it does not count toward the last-owner or last-admin invariants, and any community administrator or namespace admin of its namespace may revoke it. Ratification (git-ns/right/ratify) sets `ratifiedBy` and `ratifiedAt`; from then on the record is an ordinary grant, and `breakGlass` stays as its history. Never published to the Trust Registry.",
329
+ "type": "object",
330
+ "additionalProperties": false,
331
+ "required": [
332
+ "by",
333
+ "at",
334
+ "justification"
335
+ ],
336
+ "properties": {
337
+ "by": {
338
+ "$ref": "#/$defs/Did",
339
+ "description": "Who broke the glass: always the record's `subject`, restated so the flag reads on its own."
340
+ },
341
+ "at": {
342
+ "type": "string",
343
+ "format": "date-time",
344
+ "description": "When the VTC recorded the break-glass."
345
+ },
346
+ "justification": {
347
+ "type": "string",
348
+ "minLength": 1,
349
+ "maxLength": 2048,
350
+ "pattern": "\\S",
351
+ "description": "The actor's statement of why nobody else could grant this right. Shown to every community administrator, every namespace admin of the namespace and every owner of the resource; kept in the audit record; never published."
352
+ },
353
+ "effectiveAt": {
354
+ "type": "string",
355
+ "format": "date-time",
356
+ "description": "When the right takes effect, where the community's policy imposed a delay. Absent: it took effect at `at`. Until this instant the record confers nothing and is not published, and any administrator who may revoke it may do so."
357
+ },
358
+ "ratifiedBy": {
359
+ "$ref": "#/$defs/Did",
360
+ "description": "The administrator who ratified the record — never its subject. Absent while unratified."
361
+ },
362
+ "ratifiedAt": {
363
+ "type": "string",
364
+ "format": "date-time",
365
+ "description": "When it was ratified. Present exactly when `ratifiedBy` is."
366
+ }
367
+ }
368
+ },
369
+ "Did": {
370
+ "title": "Did",
371
+ "description": "A bare DID in the W3C DID Core syntax (§3.1): `did:`, a method name of lowercase letters and digits, `:`, and a method-specific id of colon-separated segments drawn from `A-Z a-z 0-9 . - _` and percent-encoded octets, the last segment non-empty. A DID URL is not a DID: no path, query or fragment (`/`, `?`, `#`), so a verification-method id such as `did:key:z6Mk…#z6Mk…` is refused. Compared by exact string equality — no case folding or percent-decoding. A consumer MUST still treat the value as data: the pattern keeps shell metacharacters, whitespace and quotes out of the wire form, but it does not make a DID safe to splice into a command or markup.",
372
+ "type": "string",
373
+ "maxLength": 2048,
374
+ "pattern": "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$"
375
+ },
376
+ "Resource": {
377
+ "title": "Resource",
378
+ "description": "A forge-qualified resource: `<forge-host>/<owner>` for a namespace, or `<forge-host>/<owner>/<repo>` for one repository, all lowercase — `github.com/acme`, `github.com/acme/widgets`, `codeberg.org/acme`. The forge is never implied: `acme/widgets` alone is not a resource. Containment is by whole segment: `github.com/acme` contains `github.com/acme/widgets` and does not contain `github.com/acme-labs/x` or `codeberg.org/acme/widgets`.",
379
+ "type": "string",
380
+ "maxLength": 455,
381
+ "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+(?:/[a-z0-9_-][a-z0-9._-]{0,99}){1,2}$"
382
+ },
383
+ "Right": {
384
+ "title": "Right",
385
+ "description": "One of the five git rights. Each string is also the TRQP `action` the VTC publishes the right under in its Trust Registry, so it is carried verbatim. `git.ns.admin` and `git.repo.create` apply to a namespace resource; `git.repo.own` and `git.repo.maintain` to a repository resource; `git.commit.sign` to either.",
386
+ "type": "string",
387
+ "enum": [
388
+ "git.ns.admin",
389
+ "git.repo.create",
390
+ "git.repo.own",
391
+ "git.repo.maintain",
392
+ "git.commit.sign"
393
+ ]
394
+ }
395
+ }
396
+ } as const;
397
+
398
+ /**
399
+ * SPEC.md §7.2 policy for the request variant, from this specification's
400
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
401
+ * per-specification and cannot be derived from the document alone, and
402
+ * item 2 needs the schema this carries.
403
+ */
404
+ export const SPEC = {
405
+ typeUri: TYPE_URI,
406
+ isBearer: false,
407
+ isProofRequired: true,
408
+ isRecipientRequired: true,
409
+ isIssuedAtRequired: true,
410
+ payloadSchema: PAYLOAD_SCHEMA,
411
+ } as const;
412
+
413
+ /**
414
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
415
+ * tracks the *issuer* party's requirement because a response swaps the
416
+ * parties (§7.3 item 5).
417
+ */
418
+ export const RESPONSE_SPEC = {
419
+ typeUri: RESPONSE_TYPE_URI,
420
+ isBearer: false,
421
+ isProofRequired: true,
422
+ isRecipientRequired: true,
423
+ isIssuedAtRequired: true,
424
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
425
+ } as const;
@@ -0,0 +1,220 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/roles/reproject/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, RepoResource, Resource } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A community administrator, a namespace admin, or (for one repository) its owner has the VTC send its bridge the complete forge roles of one repository, or of every repository in a namespace, again — so the forge comes to match the VTC's rights under the role map the bridge now applies. No right changes.
11
+ */
12
+ export interface GitNamespacesReProjectRolesPayload {
13
+ /**
14
+ * A namespace (`<forge>/<owner>`): every active or orphaned repository in it. A repository (`<forge>/<owner>/<repo>`): that repository only.
15
+ */
16
+ resource: Resource;
17
+ /**
18
+ * Why, in the caller's words. Kept with the audit record.
19
+ */
20
+ reason?: string;
21
+ ext?: Ext;
22
+ }
23
+ /**
24
+ * The repositories the VTC queued a projectRoles job for.
25
+ */
26
+ export interface GitNamespacesReProjectRolesResponsePayload {
27
+ /**
28
+ * Each repository a projectRoles job was queued for, with its complete desiredRoles. Empty: the namespace has no active or orphaned repository.
29
+ *
30
+ * @maxItems 10000
31
+ */
32
+ repos: RepoResource[];
33
+ ext?: Ext;
34
+ }
35
+
36
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
37
+ export type { Ext, RepoResource, Resource };
38
+
39
+ /** Trust Task type URI. */
40
+ export const TYPE_URI = "https://trusttasks.org/spec/git-ns/roles/reproject/0.1" as const;
41
+
42
+ /** Stable alias for this specification's request payload shape. */
43
+ export type Payload = GitNamespacesReProjectRolesPayload;
44
+
45
+ /** Trust Task response type URI (request type URI + "#response"). */
46
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/git-ns/roles/reproject/0.1#response" as const;
47
+
48
+ /** Stable alias for this specification's success-response payload shape. */
49
+ export type Response = GitNamespacesReProjectRolesResponsePayload;
50
+
51
+ /**
52
+ * This specification's payload schema, as a value.
53
+ *
54
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
55
+ * rather than only as a `.json` file because TypeScript types are erased
56
+ * at runtime: without a schema a consumer has nothing to validate, and
57
+ * every REQUIRED payload member is optional in practice. Cross-file
58
+ * `$ref`s are already inlined, so it needs no resolver.
59
+ */
60
+ export const PAYLOAD_SCHEMA = {
61
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
62
+ "$id": "https://trusttasks.org/spec/git-ns/roles/reproject/0.1",
63
+ "title": "Git Namespaces — Re-project Roles — payload",
64
+ "description": "A community administrator, a namespace admin, or (for one repository) its owner has the VTC send its bridge the complete forge roles of one repository, or of every repository in a namespace, again — so the forge comes to match the VTC's rights under the role map the bridge now applies. No right changes.",
65
+ "type": "object",
66
+ "additionalProperties": false,
67
+ "required": [
68
+ "resource"
69
+ ],
70
+ "properties": {
71
+ "resource": {
72
+ "$ref": "#/$defs/Resource",
73
+ "description": "A namespace (`<forge>/<owner>`): every active or orphaned repository in it. A repository (`<forge>/<owner>/<repo>`): that repository only."
74
+ },
75
+ "reason": {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "maxLength": 1024,
79
+ "description": "Why, in the caller's words. Kept with the audit record."
80
+ },
81
+ "ext": {
82
+ "$ref": "#/$defs/Ext"
83
+ }
84
+ },
85
+ "$defs": {
86
+ "Response": {
87
+ "$anchor": "response",
88
+ "title": "Git Namespaces — Re-project Roles — response payload",
89
+ "description": "The repositories the VTC queued a projectRoles job for.",
90
+ "type": "object",
91
+ "additionalProperties": false,
92
+ "required": [
93
+ "repos"
94
+ ],
95
+ "properties": {
96
+ "repos": {
97
+ "type": "array",
98
+ "maxItems": 10000,
99
+ "uniqueItems": true,
100
+ "items": {
101
+ "$ref": "#/$defs/RepoResource"
102
+ },
103
+ "description": "Each repository a projectRoles job was queued for, with its complete desiredRoles. Empty: the namespace has no active or orphaned repository."
104
+ },
105
+ "ext": {
106
+ "$ref": "#/$defs/Ext"
107
+ }
108
+ }
109
+ },
110
+ "Ext": {
111
+ "title": "Ext",
112
+ "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.",
113
+ "type": "object",
114
+ "minProperties": 1,
115
+ "additionalProperties": true,
116
+ "propertyNames": {
117
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
118
+ }
119
+ },
120
+ "RepoResource": {
121
+ "title": "RepoResource",
122
+ "description": "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.",
123
+ "type": "string",
124
+ "maxLength": 455,
125
+ "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+/[a-z0-9_-][a-z0-9._-]{0,99}/[a-z0-9_-][a-z0-9._-]{0,99}$"
126
+ },
127
+ "Resource": {
128
+ "title": "Resource",
129
+ "description": "A forge-qualified resource: `<forge-host>/<owner>` for a namespace, or `<forge-host>/<owner>/<repo>` for one repository, all lowercase — `github.com/acme`, `github.com/acme/widgets`, `codeberg.org/acme`. The forge is never implied: `acme/widgets` alone is not a resource. Containment is by whole segment: `github.com/acme` contains `github.com/acme/widgets` and does not contain `github.com/acme-labs/x` or `codeberg.org/acme/widgets`.",
130
+ "type": "string",
131
+ "maxLength": 455,
132
+ "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+(?:/[a-z0-9_-][a-z0-9._-]{0,99}){1,2}$"
133
+ }
134
+ }
135
+ } as const;
136
+
137
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
138
+ export const RESPONSE_PAYLOAD_SCHEMA = {
139
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
140
+ "$ref": "#/$defs/Response",
141
+ "$defs": {
142
+ "Response": {
143
+ "$anchor": "response",
144
+ "title": "Git Namespaces — Re-project Roles — response payload",
145
+ "description": "The repositories the VTC queued a projectRoles job for.",
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": [
149
+ "repos"
150
+ ],
151
+ "properties": {
152
+ "repos": {
153
+ "type": "array",
154
+ "maxItems": 10000,
155
+ "uniqueItems": true,
156
+ "items": {
157
+ "$ref": "#/$defs/RepoResource"
158
+ },
159
+ "description": "Each repository a projectRoles job was queued for, with its complete desiredRoles. Empty: the namespace has no active or orphaned repository."
160
+ },
161
+ "ext": {
162
+ "$ref": "#/$defs/Ext"
163
+ }
164
+ }
165
+ },
166
+ "Ext": {
167
+ "title": "Ext",
168
+ "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.",
169
+ "type": "object",
170
+ "minProperties": 1,
171
+ "additionalProperties": true,
172
+ "propertyNames": {
173
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
174
+ }
175
+ },
176
+ "RepoResource": {
177
+ "title": "RepoResource",
178
+ "description": "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.",
179
+ "type": "string",
180
+ "maxLength": 455,
181
+ "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+/[a-z0-9_-][a-z0-9._-]{0,99}/[a-z0-9_-][a-z0-9._-]{0,99}$"
182
+ },
183
+ "Resource": {
184
+ "title": "Resource",
185
+ "description": "A forge-qualified resource: `<forge-host>/<owner>` for a namespace, or `<forge-host>/<owner>/<repo>` for one repository, all lowercase — `github.com/acme`, `github.com/acme/widgets`, `codeberg.org/acme`. The forge is never implied: `acme/widgets` alone is not a resource. Containment is by whole segment: `github.com/acme` contains `github.com/acme/widgets` and does not contain `github.com/acme-labs/x` or `codeberg.org/acme/widgets`.",
186
+ "type": "string",
187
+ "maxLength": 455,
188
+ "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+(?:/[a-z0-9_-][a-z0-9._-]{0,99}){1,2}$"
189
+ }
190
+ }
191
+ } as const;
192
+
193
+ /**
194
+ * SPEC.md §7.2 policy for the request variant, from this specification's
195
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
196
+ * per-specification and cannot be derived from the document alone, and
197
+ * item 2 needs the schema this carries.
198
+ */
199
+ export const SPEC = {
200
+ typeUri: TYPE_URI,
201
+ isBearer: false,
202
+ isProofRequired: true,
203
+ isRecipientRequired: true,
204
+ isIssuedAtRequired: true,
205
+ payloadSchema: PAYLOAD_SCHEMA,
206
+ } as const;
207
+
208
+ /**
209
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
210
+ * tracks the *issuer* party's requirement because a response swaps the
211
+ * parties (§7.3 item 5).
212
+ */
213
+ export const RESPONSE_SPEC = {
214
+ typeUri: RESPONSE_TYPE_URI,
215
+ isBearer: false,
216
+ isProofRequired: true,
217
+ isRecipientRequired: true,
218
+ isIssuedAtRequired: true,
219
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
220
+ } as const;
@@ -885,7 +885,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
885
885
  export const SPEC = {
886
886
  typeUri: TYPE_URI,
887
887
  isBearer: false,
888
- isProofRequired: false,
888
+ isProofRequired: true,
889
889
  isRecipientRequired: true,
890
890
  isIssuedAtRequired: false,
891
891
  payloadSchema: PAYLOAD_SCHEMA,
@@ -899,7 +899,7 @@ export const SPEC = {
899
899
  export const RESPONSE_SPEC = {
900
900
  typeUri: RESPONSE_TYPE_URI,
901
901
  isBearer: false,
902
- isProofRequired: false,
902
+ isProofRequired: true,
903
903
  isRecipientRequired: true,
904
904
  isIssuedAtRequired: false,
905
905
  payloadSchema: RESPONSE_PAYLOAD_SCHEMA,