@openvtc/trust-tasks 0.20.7 → 0.21.0

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 (253) hide show
  1. package/CHANGELOG.md +320 -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-request/0.3/payload.d.ts +613 -0
  25. package/dist/auth/step-up/approve-request/0.3/payload.d.ts.map +1 -0
  26. package/dist/auth/step-up/approve-request/0.3/payload.js +345 -0
  27. package/dist/auth/step-up/approve-request/0.3/payload.js.map +1 -0
  28. package/dist/auth/step-up/approve-response/0.4/payload.d.ts +887 -0
  29. package/dist/auth/step-up/approve-response/0.4/payload.d.ts.map +1 -0
  30. package/dist/auth/step-up/approve-response/0.4/payload.js +504 -0
  31. package/dist/auth/step-up/approve-response/0.4/payload.js.map +1 -0
  32. package/dist/auth/step-up/approve-response/0.5/payload.d.ts +887 -0
  33. package/dist/auth/step-up/approve-response/0.5/payload.d.ts.map +1 -0
  34. package/dist/auth/step-up/approve-response/0.5/payload.js +504 -0
  35. package/dist/auth/step-up/approve-response/0.5/payload.js.map +1 -0
  36. package/dist/backup/abort/0.1/payload.d.ts +262 -0
  37. package/dist/backup/abort/0.1/payload.d.ts.map +1 -0
  38. package/dist/backup/abort/0.1/payload.js +146 -0
  39. package/dist/backup/abort/0.1/payload.js.map +1 -0
  40. package/dist/backup/complete-export/0.1/payload.d.ts +262 -0
  41. package/dist/backup/complete-export/0.1/payload.d.ts.map +1 -0
  42. package/dist/backup/complete-export/0.1/payload.js +146 -0
  43. package/dist/backup/complete-export/0.1/payload.js.map +1 -0
  44. package/dist/backup/finalize-import/0.1/payload.d.ts +395 -0
  45. package/dist/backup/finalize-import/0.1/payload.d.ts.map +1 -0
  46. package/dist/backup/finalize-import/0.1/payload.js +209 -0
  47. package/dist/backup/finalize-import/0.1/payload.js.map +1 -0
  48. package/dist/backup/get-chunk/0.1/payload.d.ts +461 -0
  49. package/dist/backup/get-chunk/0.1/payload.d.ts.map +1 -0
  50. package/dist/backup/get-chunk/0.1/payload.js +250 -0
  51. package/dist/backup/get-chunk/0.1/payload.js.map +1 -0
  52. package/dist/backup/initiate-export/0.1/payload.d.ts +896 -0
  53. package/dist/backup/initiate-export/0.1/payload.d.ts.map +1 -0
  54. package/dist/backup/initiate-export/0.1/payload.js +507 -0
  55. package/dist/backup/initiate-export/0.1/payload.js.map +1 -0
  56. package/dist/backup/initiate-import/0.1/payload.d.ts +888 -0
  57. package/dist/backup/initiate-import/0.1/payload.d.ts.map +1 -0
  58. package/dist/backup/initiate-import/0.1/payload.js +504 -0
  59. package/dist/backup/initiate-import/0.1/payload.js.map +1 -0
  60. package/dist/backup/put-chunk/0.1/payload.d.ts +495 -0
  61. package/dist/backup/put-chunk/0.1/payload.d.ts.map +1 -0
  62. package/dist/backup/put-chunk/0.1/payload.js +265 -0
  63. package/dist/backup/put-chunk/0.1/payload.js.map +1 -0
  64. package/dist/device/list/0.1/payload.d.ts +4 -4
  65. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  66. package/dist/device/list/0.1/payload.js +4 -2
  67. package/dist/device/list/0.1/payload.js.map +1 -1
  68. package/dist/device/list/0.2/payload.d.ts +4 -4
  69. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  70. package/dist/device/list/0.2/payload.js +4 -2
  71. package/dist/device/list/0.2/payload.js.map +1 -1
  72. package/dist/device/register/0.1/payload.d.ts +4 -4
  73. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  74. package/dist/device/register/0.1/payload.js +4 -2
  75. package/dist/device/register/0.1/payload.js.map +1 -1
  76. package/dist/device/register/0.2/payload.d.ts +4 -4
  77. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  78. package/dist/device/register/0.2/payload.js +4 -2
  79. package/dist/device/register/0.2/payload.js.map +1 -1
  80. package/dist/git-ns/_shared/0.4/git-ns.d.ts +16 -0
  81. package/dist/git-ns/_shared/0.4/git-ns.d.ts.map +1 -0
  82. package/dist/git-ns/_shared/0.4/git-ns.js +6 -0
  83. package/dist/git-ns/_shared/0.4/git-ns.js.map +1 -0
  84. package/dist/git-ns/account/link-status/0.1/payload.d.ts +2 -2
  85. package/dist/git-ns/account/link-status/0.1/payload.js +2 -2
  86. package/dist/git-ns/account/link-status/0.1/payload.js.map +1 -1
  87. package/dist/git-ns/account/unlink/0.1/payload.d.ts +411 -0
  88. package/dist/git-ns/account/unlink/0.1/payload.d.ts.map +1 -0
  89. package/dist/git-ns/account/unlink/0.1/payload.js +228 -0
  90. package/dist/git-ns/account/unlink/0.1/payload.js.map +1 -0
  91. package/dist/git-ns/bridge/event/0.3/payload.d.ts +1682 -0
  92. package/dist/git-ns/bridge/event/0.3/payload.d.ts.map +1 -0
  93. package/dist/git-ns/bridge/event/0.3/payload.js +971 -0
  94. package/dist/git-ns/bridge/event/0.3/payload.js.map +1 -0
  95. package/dist/git-ns/bridge/job/0.4/payload.d.ts +1068 -0
  96. package/dist/git-ns/bridge/job/0.4/payload.d.ts.map +1 -0
  97. package/dist/git-ns/bridge/job/0.4/payload.js +573 -0
  98. package/dist/git-ns/bridge/job/0.4/payload.js.map +1 -0
  99. package/dist/git-ns/drift/resolve/0.3/payload.d.ts +1072 -0
  100. package/dist/git-ns/drift/resolve/0.3/payload.d.ts.map +1 -0
  101. package/dist/git-ns/drift/resolve/0.3/payload.js +634 -0
  102. package/dist/git-ns/drift/resolve/0.3/payload.js.map +1 -0
  103. package/dist/git-ns/namespace/reseat/0.3/payload.d.ts +515 -0
  104. package/dist/git-ns/namespace/reseat/0.3/payload.d.ts.map +1 -0
  105. package/dist/git-ns/namespace/reseat/0.3/payload.js +296 -0
  106. package/dist/git-ns/namespace/reseat/0.3/payload.js.map +1 -0
  107. package/dist/git-ns/repo/create/0.3/payload.d.ts +1101 -0
  108. package/dist/git-ns/repo/create/0.3/payload.d.ts.map +1 -0
  109. package/dist/git-ns/repo/create/0.3/payload.js +646 -0
  110. package/dist/git-ns/repo/create/0.3/payload.js.map +1 -0
  111. package/dist/git-ns/right/break-glass/0.1/payload.d.ts +685 -0
  112. package/dist/git-ns/right/break-glass/0.1/payload.d.ts.map +1 -0
  113. package/dist/git-ns/right/break-glass/0.1/payload.js +397 -0
  114. package/dist/git-ns/right/break-glass/0.1/payload.js.map +1 -0
  115. package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts +384 -0
  116. package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts.map +1 -0
  117. package/dist/git-ns/right/break-glass-notice/0.1/payload.js +216 -0
  118. package/dist/git-ns/right/break-glass-notice/0.1/payload.js.map +1 -0
  119. package/dist/git-ns/right/grant/0.3/payload.d.ts +678 -0
  120. package/dist/git-ns/right/grant/0.3/payload.d.ts.map +1 -0
  121. package/dist/git-ns/right/grant/0.3/payload.js +383 -0
  122. package/dist/git-ns/right/grant/0.3/payload.js.map +1 -0
  123. package/dist/git-ns/right/ratify/0.1/payload.d.ts +702 -0
  124. package/dist/git-ns/right/ratify/0.1/payload.d.ts.map +1 -0
  125. package/dist/git-ns/right/ratify/0.1/payload.js +404 -0
  126. package/dist/git-ns/right/ratify/0.1/payload.js.map +1 -0
  127. package/dist/git-ns/right/revoke/0.3/payload.d.ts +664 -0
  128. package/dist/git-ns/right/revoke/0.3/payload.d.ts.map +1 -0
  129. package/dist/git-ns/right/revoke/0.3/payload.js +378 -0
  130. package/dist/git-ns/right/revoke/0.3/payload.js.map +1 -0
  131. package/dist/git-ns/roles/reproject/0.1/payload.d.ts +325 -0
  132. package/dist/git-ns/roles/reproject/0.1/payload.d.ts.map +1 -0
  133. package/dist/git-ns/roles/reproject/0.1/payload.js +176 -0
  134. package/dist/git-ns/roles/reproject/0.1/payload.js.map +1 -0
  135. package/dist/git-ns/view/0.1/payload.d.ts +2 -2
  136. package/dist/git-ns/view/0.1/payload.js +2 -2
  137. package/dist/git-ns/view/0.1/payload.js.map +1 -1
  138. package/dist/git-ns/view/0.2/payload.d.ts +2 -2
  139. package/dist/git-ns/view/0.2/payload.js +2 -2
  140. package/dist/git-ns/view/0.2/payload.js.map +1 -1
  141. package/dist/git-ns/view/0.3/payload.d.ts +2 -2
  142. package/dist/git-ns/view/0.3/payload.js +2 -2
  143. package/dist/git-ns/view/0.3/payload.js.map +1 -1
  144. package/dist/git-ns/view/0.4/payload.d.ts +1696 -0
  145. package/dist/git-ns/view/0.4/payload.d.ts.map +1 -0
  146. package/dist/git-ns/view/0.4/payload.js +1012 -0
  147. package/dist/git-ns/view/0.4/payload.js.map +1 -0
  148. package/dist/index.d.ts +39 -0
  149. package/dist/index.d.ts.map +1 -1
  150. package/dist/index.js +39 -0
  151. package/dist/index.js.map +1 -1
  152. package/dist/messaging/message/status/0.1/payload.d.ts +372 -0
  153. package/dist/messaging/message/status/0.1/payload.d.ts.map +1 -0
  154. package/dist/messaging/message/status/0.1/payload.js +214 -0
  155. package/dist/messaging/message/status/0.1/payload.js.map +1 -0
  156. package/dist/vta/_shared/0.3/did-key-roles.d.ts +16 -0
  157. package/dist/vta/_shared/0.3/did-key-roles.d.ts.map +1 -0
  158. package/dist/vta/_shared/0.3/did-key-roles.js +6 -0
  159. package/dist/vta/_shared/0.3/did-key-roles.js.map +1 -0
  160. package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts +326 -0
  161. package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts.map +1 -0
  162. package/dist/vta/attestation/mnemonic-export/1.0/payload.js +175 -0
  163. package/dist/vta/attestation/mnemonic-export/1.0/payload.js.map +1 -0
  164. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +1914 -0
  165. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -0
  166. package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1128 -0
  167. package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -0
  168. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +1603 -0
  169. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -0
  170. package/dist/vta/webvh/dids/keys/list/1.0/payload.js +942 -0
  171. package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -0
  172. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +1914 -0
  173. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -0
  174. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1123 -0
  175. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -0
  176. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +2021 -0
  177. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
  178. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1168 -0
  179. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -0
  180. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +1992 -0
  181. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -0
  182. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1151 -0
  183. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -0
  184. package/dist/vta/webvh/dids/update/2.0/payload.d.ts +1062 -0
  185. package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -0
  186. package/dist/vta/webvh/dids/update/2.0/payload.js +616 -0
  187. package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -0
  188. package/dist/vtc/credentials/reissue/0.1/payload.d.ts +502 -0
  189. package/dist/vtc/credentials/reissue/0.1/payload.d.ts.map +1 -0
  190. package/dist/vtc/credentials/reissue/0.1/payload.js +282 -0
  191. package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -0
  192. package/dist/vtc/members/personhood/challenge/0.1/payload.d.ts +2 -2
  193. package/dist/vtc/members/personhood/challenge/0.1/payload.js +2 -2
  194. package/dist/vtc/members/personhood/challenge/0.1/payload.js.map +1 -1
  195. package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +2 -2
  196. package/dist/vtc/vetting/vetters/profile/0.1/payload.js +2 -2
  197. package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -1
  198. package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +2 -2
  199. package/dist/vtc/vetting/vetters/resend/0.1/payload.js +2 -2
  200. package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -1
  201. package/package.json +1 -1
  202. package/src/_shared/components.ts +313 -2
  203. package/src/auth/passkey/enroll/invite/0.2/payload.ts +325 -0
  204. package/src/auth/passkey/enroll/redeem/finish/0.1/payload.ts +499 -0
  205. package/src/auth/passkey/enroll/redeem/start/0.1/payload.ts +700 -0
  206. package/src/auth/passkey/revoke/finish/0.2/payload.ts +379 -0
  207. package/src/auth/passkey/revoke/start/0.2/payload.ts +349 -0
  208. package/src/auth/step-up/approve-request/0.3/payload.ts +421 -0
  209. package/src/auth/step-up/approve-response/0.4/payload.ts +593 -0
  210. package/src/auth/step-up/approve-response/0.5/payload.ts +593 -0
  211. package/src/backup/abort/0.1/payload.ts +191 -0
  212. package/src/backup/complete-export/0.1/payload.ts +191 -0
  213. package/src/backup/finalize-import/0.1/payload.ts +279 -0
  214. package/src/backup/get-chunk/0.1/payload.ts +308 -0
  215. package/src/backup/initiate-export/0.1/payload.ts +564 -0
  216. package/src/backup/initiate-import/0.1/payload.ts +561 -0
  217. package/src/backup/put-chunk/0.1/payload.ts +331 -0
  218. package/src/device/list/0.1/payload.ts +4 -2
  219. package/src/device/list/0.2/payload.ts +4 -2
  220. package/src/device/register/0.1/payload.ts +4 -2
  221. package/src/device/register/0.2/payload.ts +4 -2
  222. package/src/git-ns/_shared/0.4/git-ns.ts +17 -0
  223. package/src/git-ns/account/link-status/0.1/payload.ts +2 -2
  224. package/src/git-ns/account/unlink/0.1/payload.ts +274 -0
  225. package/src/git-ns/bridge/event/0.3/payload.ts +1132 -0
  226. package/src/git-ns/bridge/job/0.4/payload.ts +691 -0
  227. package/src/git-ns/drift/resolve/0.3/payload.ts +707 -0
  228. package/src/git-ns/namespace/reseat/0.3/payload.ts +342 -0
  229. package/src/git-ns/repo/create/0.3/payload.ts +706 -0
  230. package/src/git-ns/right/break-glass/0.1/payload.ts +443 -0
  231. package/src/git-ns/right/break-glass-notice/0.1/payload.ts +258 -0
  232. package/src/git-ns/right/grant/0.3/payload.ts +434 -0
  233. package/src/git-ns/right/ratify/0.1/payload.ts +455 -0
  234. package/src/git-ns/right/revoke/0.3/payload.ts +425 -0
  235. package/src/git-ns/roles/reproject/0.1/payload.ts +220 -0
  236. package/src/git-ns/view/0.1/payload.ts +2 -2
  237. package/src/git-ns/view/0.2/payload.ts +2 -2
  238. package/src/git-ns/view/0.3/payload.ts +2 -2
  239. package/src/git-ns/view/0.4/payload.ts +1075 -0
  240. package/src/index.ts +39 -0
  241. package/src/messaging/message/status/0.1/payload.ts +270 -0
  242. package/src/vta/_shared/0.3/did-key-roles.ts +17 -0
  243. package/src/vta/attestation/mnemonic-export/1.0/payload.ts +232 -0
  244. package/src/vta/webvh/dids/keys/add/1.0/payload.ts +1217 -0
  245. package/src/vta/webvh/dids/keys/list/1.0/payload.ts +1004 -0
  246. package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +1212 -0
  247. package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +1276 -0
  248. package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +1262 -0
  249. package/src/vta/webvh/dids/update/2.0/payload.ts +713 -0
  250. package/src/vtc/credentials/reissue/0.1/payload.ts +357 -0
  251. package/src/vtc/members/personhood/challenge/0.1/payload.ts +2 -2
  252. package/src/vtc/vetting/vetters/profile/0.1/payload.ts +2 -2
  253. package/src/vtc/vetting/vetters/resend/0.1/payload.ts +2 -2
@@ -0,0 +1,384 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/right/break-glass-notice/0.1/payload.schema.json
4
+ */
5
+ import type { BreakGlass, Did_GitNsV0_3 as Did, Ext, NamespaceId, Resource, Right, RightRecord_GitNsV0_4 as RightRecord } from "../../../../_shared/components.js";
6
+ /**
7
+ * The VTC tells an administrator that a member broke the glass on an elevated git right, or that a break-glass record was ratified or revoked. Unsolicited: it answers no request from the recipient.
8
+ */
9
+ export interface GitNamespacesBreakGlassNoticePayload {
10
+ /**
11
+ * `breakGlass` — `record.subject` recorded the right for themselves with git-ns/right/break-glass. `ratified` — another administrator ratified it with git-ns/right/ratify. `revoked` — it was revoked with git-ns/right/revoke, before or after ratification.
12
+ */
13
+ event: "breakGlass" | "ratified" | "revoked";
14
+ /**
15
+ * The namespace the record's resource lies in.
16
+ */
17
+ namespace: NamespaceId;
18
+ /**
19
+ * The record as it stands after the event — for `revoked`, as it stood when it was revoked. Always carries `breakGlass`, justification included.
20
+ */
21
+ record: RightRecord;
22
+ /**
23
+ * Who acted: the subject for `breakGlass`, the ratifier for `ratified`, the revoker for `revoked`.
24
+ */
25
+ by: Did;
26
+ /**
27
+ * When the event took effect at the VTC — not when the notice was sent, which differs whenever the recipient was offline.
28
+ */
29
+ at: string;
30
+ /**
31
+ * For `ratified`, the ratifier's statement; for `revoked`, the revoker's reason. Absent when none was given, and always for `breakGlass`, whose justification is in `record.breakGlass`.
32
+ */
33
+ statement?: string;
34
+ ext?: Ext;
35
+ }
36
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
37
+ export type { BreakGlass, Did, Ext, NamespaceId, Resource, Right, RightRecord };
38
+ /** Trust Task type URI. */
39
+ export declare const TYPE_URI: "https://trusttasks.org/spec/git-ns/right/break-glass-notice/0.1";
40
+ /** Stable alias for this specification's request payload shape. */
41
+ export type Payload = GitNamespacesBreakGlassNoticePayload;
42
+ /**
43
+ * This specification's payload schema, as a value.
44
+ *
45
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
46
+ * rather than only as a `.json` file because TypeScript types are erased
47
+ * at runtime: without a schema a consumer has nothing to validate, and
48
+ * every REQUIRED payload member is optional in practice. Cross-file
49
+ * `$ref`s are already inlined, so it needs no resolver.
50
+ */
51
+ export declare const PAYLOAD_SCHEMA: {
52
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
53
+ readonly $id: "https://trusttasks.org/spec/git-ns/right/break-glass-notice/0.1";
54
+ readonly title: "Git Namespaces — Break-Glass Notice — payload";
55
+ readonly description: "The VTC tells an administrator that a member broke the glass on an elevated git right, or that a break-glass record was ratified or revoked. Unsolicited: it answers no request from the recipient.";
56
+ readonly type: "object";
57
+ readonly additionalProperties: false;
58
+ readonly required: readonly ["event", "namespace", "record", "by", "at"];
59
+ readonly properties: {
60
+ readonly event: {
61
+ readonly type: "string";
62
+ readonly enum: readonly ["breakGlass", "ratified", "revoked"];
63
+ readonly description: "`breakGlass` — `record.subject` recorded the right for themselves with git-ns/right/break-glass. `ratified` — another administrator ratified it with git-ns/right/ratify. `revoked` — it was revoked with git-ns/right/revoke, before or after ratification.";
64
+ };
65
+ readonly namespace: {
66
+ readonly $ref: "#/$defs/NamespaceId";
67
+ readonly description: "The namespace the record's resource lies in.";
68
+ };
69
+ readonly record: {
70
+ readonly $ref: "#/$defs/RightRecord";
71
+ readonly description: "The record as it stands after the event — for `revoked`, as it stood when it was revoked. Always carries `breakGlass`, justification included.";
72
+ };
73
+ readonly by: {
74
+ readonly $ref: "#/$defs/Did";
75
+ readonly description: "Who acted: the subject for `breakGlass`, the ratifier for `ratified`, the revoker for `revoked`.";
76
+ };
77
+ readonly at: {
78
+ readonly type: "string";
79
+ readonly format: "date-time";
80
+ readonly description: "When the event took effect at the VTC — not when the notice was sent, which differs whenever the recipient was offline.";
81
+ };
82
+ readonly statement: {
83
+ readonly type: "string";
84
+ readonly maxLength: 1024;
85
+ readonly description: "For `ratified`, the ratifier's statement; for `revoked`, the revoker's reason. Absent when none was given, and always for `breakGlass`, whose justification is in `record.breakGlass`.";
86
+ };
87
+ readonly ext: {
88
+ readonly $ref: "#/$defs/Ext";
89
+ };
90
+ };
91
+ readonly $defs: {
92
+ readonly Ext: {
93
+ readonly title: "Ext";
94
+ readonly 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.";
95
+ readonly type: "object";
96
+ readonly minProperties: 1;
97
+ readonly additionalProperties: true;
98
+ readonly propertyNames: {
99
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
100
+ };
101
+ };
102
+ readonly Did: {
103
+ readonly title: "Did";
104
+ readonly 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.";
105
+ readonly type: "string";
106
+ readonly maxLength: 2048;
107
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
108
+ };
109
+ readonly RightRecord: {
110
+ readonly title: "RightRecord";
111
+ readonly 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.";
112
+ readonly type: "object";
113
+ readonly additionalProperties: false;
114
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
115
+ readonly properties: {
116
+ readonly subject: {
117
+ readonly $ref: "#/$defs/Did";
118
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
119
+ };
120
+ readonly right: {
121
+ readonly $ref: "#/$defs/Right";
122
+ };
123
+ readonly resource: {
124
+ readonly $ref: "#/$defs/Resource";
125
+ };
126
+ readonly grantedBy: {
127
+ readonly $ref: "#/$defs/Did";
128
+ readonly 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.";
129
+ };
130
+ readonly grantedAt: {
131
+ readonly type: "string";
132
+ readonly format: "date-time";
133
+ };
134
+ readonly expiresAt: {
135
+ readonly type: "string";
136
+ readonly format: "date-time";
137
+ readonly description: "When the right lapses. Absent: no expiry.";
138
+ };
139
+ readonly reason: {
140
+ readonly type: "string";
141
+ readonly maxLength: 1024;
142
+ readonly 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.";
143
+ };
144
+ readonly breakGlass: {
145
+ readonly $ref: "#/$defs/BreakGlass";
146
+ readonly description: "Present exactly when the subject gave themselves this right through git-ns/right/break-glass. Absent for every other record.";
147
+ };
148
+ };
149
+ };
150
+ readonly BreakGlass: {
151
+ readonly title: "BreakGlass";
152
+ readonly 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.";
153
+ readonly type: "object";
154
+ readonly additionalProperties: false;
155
+ readonly required: readonly ["by", "at", "justification"];
156
+ readonly properties: {
157
+ readonly by: {
158
+ readonly $ref: "#/$defs/Did";
159
+ readonly description: "Who broke the glass: always the record's `subject`, restated so the flag reads on its own.";
160
+ };
161
+ readonly at: {
162
+ readonly type: "string";
163
+ readonly format: "date-time";
164
+ readonly description: "When the VTC recorded the break-glass.";
165
+ };
166
+ readonly justification: {
167
+ readonly type: "string";
168
+ readonly minLength: 1;
169
+ readonly maxLength: 2048;
170
+ readonly pattern: "\\S";
171
+ readonly 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.";
172
+ };
173
+ readonly effectiveAt: {
174
+ readonly type: "string";
175
+ readonly format: "date-time";
176
+ readonly 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.";
177
+ };
178
+ readonly ratifiedBy: {
179
+ readonly $ref: "#/$defs/Did";
180
+ readonly description: "The administrator who ratified the record — never its subject. Absent while unratified.";
181
+ };
182
+ readonly ratifiedAt: {
183
+ readonly type: "string";
184
+ readonly format: "date-time";
185
+ readonly description: "When it was ratified. Present exactly when `ratifiedBy` is.";
186
+ };
187
+ };
188
+ };
189
+ readonly Resource: {
190
+ readonly title: "Resource";
191
+ readonly 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`.";
192
+ readonly type: "string";
193
+ readonly maxLength: 455;
194
+ readonly 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}$";
195
+ };
196
+ readonly Right: {
197
+ readonly title: "Right";
198
+ readonly 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.";
199
+ readonly type: "string";
200
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
201
+ };
202
+ readonly NamespaceId: {
203
+ readonly title: "NamespaceId";
204
+ readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
205
+ readonly type: "string";
206
+ readonly minLength: 1;
207
+ readonly maxLength: 128;
208
+ };
209
+ };
210
+ };
211
+ /**
212
+ * SPEC.md §7.2 policy for the request variant, from this specification's
213
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
214
+ * per-specification and cannot be derived from the document alone, and
215
+ * item 2 needs the schema this carries.
216
+ */
217
+ export declare const SPEC: {
218
+ readonly typeUri: "https://trusttasks.org/spec/git-ns/right/break-glass-notice/0.1";
219
+ readonly isBearer: false;
220
+ readonly isProofRequired: true;
221
+ readonly isRecipientRequired: true;
222
+ readonly isIssuedAtRequired: true;
223
+ readonly payloadSchema: {
224
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
225
+ readonly $id: "https://trusttasks.org/spec/git-ns/right/break-glass-notice/0.1";
226
+ readonly title: "Git Namespaces — Break-Glass Notice — payload";
227
+ readonly description: "The VTC tells an administrator that a member broke the glass on an elevated git right, or that a break-glass record was ratified or revoked. Unsolicited: it answers no request from the recipient.";
228
+ readonly type: "object";
229
+ readonly additionalProperties: false;
230
+ readonly required: readonly ["event", "namespace", "record", "by", "at"];
231
+ readonly properties: {
232
+ readonly event: {
233
+ readonly type: "string";
234
+ readonly enum: readonly ["breakGlass", "ratified", "revoked"];
235
+ readonly description: "`breakGlass` — `record.subject` recorded the right for themselves with git-ns/right/break-glass. `ratified` — another administrator ratified it with git-ns/right/ratify. `revoked` — it was revoked with git-ns/right/revoke, before or after ratification.";
236
+ };
237
+ readonly namespace: {
238
+ readonly $ref: "#/$defs/NamespaceId";
239
+ readonly description: "The namespace the record's resource lies in.";
240
+ };
241
+ readonly record: {
242
+ readonly $ref: "#/$defs/RightRecord";
243
+ readonly description: "The record as it stands after the event — for `revoked`, as it stood when it was revoked. Always carries `breakGlass`, justification included.";
244
+ };
245
+ readonly by: {
246
+ readonly $ref: "#/$defs/Did";
247
+ readonly description: "Who acted: the subject for `breakGlass`, the ratifier for `ratified`, the revoker for `revoked`.";
248
+ };
249
+ readonly at: {
250
+ readonly type: "string";
251
+ readonly format: "date-time";
252
+ readonly description: "When the event took effect at the VTC — not when the notice was sent, which differs whenever the recipient was offline.";
253
+ };
254
+ readonly statement: {
255
+ readonly type: "string";
256
+ readonly maxLength: 1024;
257
+ readonly description: "For `ratified`, the ratifier's statement; for `revoked`, the revoker's reason. Absent when none was given, and always for `breakGlass`, whose justification is in `record.breakGlass`.";
258
+ };
259
+ readonly ext: {
260
+ readonly $ref: "#/$defs/Ext";
261
+ };
262
+ };
263
+ readonly $defs: {
264
+ readonly Ext: {
265
+ readonly title: "Ext";
266
+ readonly 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.";
267
+ readonly type: "object";
268
+ readonly minProperties: 1;
269
+ readonly additionalProperties: true;
270
+ readonly propertyNames: {
271
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
272
+ };
273
+ };
274
+ readonly Did: {
275
+ readonly title: "Did";
276
+ readonly 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.";
277
+ readonly type: "string";
278
+ readonly maxLength: 2048;
279
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
280
+ };
281
+ readonly RightRecord: {
282
+ readonly title: "RightRecord";
283
+ readonly 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.";
284
+ readonly type: "object";
285
+ readonly additionalProperties: false;
286
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
287
+ readonly properties: {
288
+ readonly subject: {
289
+ readonly $ref: "#/$defs/Did";
290
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
291
+ };
292
+ readonly right: {
293
+ readonly $ref: "#/$defs/Right";
294
+ };
295
+ readonly resource: {
296
+ readonly $ref: "#/$defs/Resource";
297
+ };
298
+ readonly grantedBy: {
299
+ readonly $ref: "#/$defs/Did";
300
+ readonly 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.";
301
+ };
302
+ readonly grantedAt: {
303
+ readonly type: "string";
304
+ readonly format: "date-time";
305
+ };
306
+ readonly expiresAt: {
307
+ readonly type: "string";
308
+ readonly format: "date-time";
309
+ readonly description: "When the right lapses. Absent: no expiry.";
310
+ };
311
+ readonly reason: {
312
+ readonly type: "string";
313
+ readonly maxLength: 1024;
314
+ readonly 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.";
315
+ };
316
+ readonly breakGlass: {
317
+ readonly $ref: "#/$defs/BreakGlass";
318
+ readonly description: "Present exactly when the subject gave themselves this right through git-ns/right/break-glass. Absent for every other record.";
319
+ };
320
+ };
321
+ };
322
+ readonly BreakGlass: {
323
+ readonly title: "BreakGlass";
324
+ readonly 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.";
325
+ readonly type: "object";
326
+ readonly additionalProperties: false;
327
+ readonly required: readonly ["by", "at", "justification"];
328
+ readonly properties: {
329
+ readonly by: {
330
+ readonly $ref: "#/$defs/Did";
331
+ readonly description: "Who broke the glass: always the record's `subject`, restated so the flag reads on its own.";
332
+ };
333
+ readonly at: {
334
+ readonly type: "string";
335
+ readonly format: "date-time";
336
+ readonly description: "When the VTC recorded the break-glass.";
337
+ };
338
+ readonly justification: {
339
+ readonly type: "string";
340
+ readonly minLength: 1;
341
+ readonly maxLength: 2048;
342
+ readonly pattern: "\\S";
343
+ readonly 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.";
344
+ };
345
+ readonly effectiveAt: {
346
+ readonly type: "string";
347
+ readonly format: "date-time";
348
+ readonly 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.";
349
+ };
350
+ readonly ratifiedBy: {
351
+ readonly $ref: "#/$defs/Did";
352
+ readonly description: "The administrator who ratified the record — never its subject. Absent while unratified.";
353
+ };
354
+ readonly ratifiedAt: {
355
+ readonly type: "string";
356
+ readonly format: "date-time";
357
+ readonly description: "When it was ratified. Present exactly when `ratifiedBy` is.";
358
+ };
359
+ };
360
+ };
361
+ readonly Resource: {
362
+ readonly title: "Resource";
363
+ readonly 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`.";
364
+ readonly type: "string";
365
+ readonly maxLength: 455;
366
+ readonly 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}$";
367
+ };
368
+ readonly Right: {
369
+ readonly title: "Right";
370
+ readonly 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.";
371
+ readonly type: "string";
372
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
373
+ };
374
+ readonly NamespaceId: {
375
+ readonly title: "NamespaceId";
376
+ readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
377
+ readonly type: "string";
378
+ readonly minLength: 1;
379
+ readonly maxLength: 128;
380
+ };
381
+ };
382
+ };
383
+ };
384
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/git-ns/right/break-glass-notice/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,IAAI,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,qBAAqB,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGnK;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC;IACvB;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;OAEG;IACH,EAAE,EAAE,GAAG,CAAC;IACR;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAEhF,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,iEAA0E,CAAC;AAEnG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyLjB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC"}
@@ -0,0 +1,216 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/right/break-glass-notice/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/git-ns/right/break-glass-notice/0.1";
7
+ /**
8
+ * This specification's payload schema, as a value.
9
+ *
10
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
11
+ * rather than only as a `.json` file because TypeScript types are erased
12
+ * at runtime: without a schema a consumer has nothing to validate, and
13
+ * every REQUIRED payload member is optional in practice. Cross-file
14
+ * `$ref`s are already inlined, so it needs no resolver.
15
+ */
16
+ export const PAYLOAD_SCHEMA = {
17
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
18
+ "$id": "https://trusttasks.org/spec/git-ns/right/break-glass-notice/0.1",
19
+ "title": "Git Namespaces — Break-Glass Notice — payload",
20
+ "description": "The VTC tells an administrator that a member broke the glass on an elevated git right, or that a break-glass record was ratified or revoked. Unsolicited: it answers no request from the recipient.",
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "required": [
24
+ "event",
25
+ "namespace",
26
+ "record",
27
+ "by",
28
+ "at"
29
+ ],
30
+ "properties": {
31
+ "event": {
32
+ "type": "string",
33
+ "enum": [
34
+ "breakGlass",
35
+ "ratified",
36
+ "revoked"
37
+ ],
38
+ "description": "`breakGlass` — `record.subject` recorded the right for themselves with git-ns/right/break-glass. `ratified` — another administrator ratified it with git-ns/right/ratify. `revoked` — it was revoked with git-ns/right/revoke, before or after ratification."
39
+ },
40
+ "namespace": {
41
+ "$ref": "#/$defs/NamespaceId",
42
+ "description": "The namespace the record's resource lies in."
43
+ },
44
+ "record": {
45
+ "$ref": "#/$defs/RightRecord",
46
+ "description": "The record as it stands after the event — for `revoked`, as it stood when it was revoked. Always carries `breakGlass`, justification included."
47
+ },
48
+ "by": {
49
+ "$ref": "#/$defs/Did",
50
+ "description": "Who acted: the subject for `breakGlass`, the ratifier for `ratified`, the revoker for `revoked`."
51
+ },
52
+ "at": {
53
+ "type": "string",
54
+ "format": "date-time",
55
+ "description": "When the event took effect at the VTC — not when the notice was sent, which differs whenever the recipient was offline."
56
+ },
57
+ "statement": {
58
+ "type": "string",
59
+ "maxLength": 1024,
60
+ "description": "For `ratified`, the ratifier's statement; for `revoked`, the revoker's reason. Absent when none was given, and always for `breakGlass`, whose justification is in `record.breakGlass`."
61
+ },
62
+ "ext": {
63
+ "$ref": "#/$defs/Ext"
64
+ }
65
+ },
66
+ "$defs": {
67
+ "Ext": {
68
+ "title": "Ext",
69
+ "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.",
70
+ "type": "object",
71
+ "minProperties": 1,
72
+ "additionalProperties": true,
73
+ "propertyNames": {
74
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
75
+ }
76
+ },
77
+ "Did": {
78
+ "title": "Did",
79
+ "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.",
80
+ "type": "string",
81
+ "maxLength": 2048,
82
+ "pattern": "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$"
83
+ },
84
+ "RightRecord": {
85
+ "title": "RightRecord",
86
+ "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.",
87
+ "type": "object",
88
+ "additionalProperties": false,
89
+ "required": [
90
+ "subject",
91
+ "right",
92
+ "resource",
93
+ "grantedBy",
94
+ "grantedAt"
95
+ ],
96
+ "properties": {
97
+ "subject": {
98
+ "$ref": "#/$defs/Did",
99
+ "description": "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts."
100
+ },
101
+ "right": {
102
+ "$ref": "#/$defs/Right"
103
+ },
104
+ "resource": {
105
+ "$ref": "#/$defs/Resource"
106
+ },
107
+ "grantedBy": {
108
+ "$ref": "#/$defs/Did",
109
+ "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."
110
+ },
111
+ "grantedAt": {
112
+ "type": "string",
113
+ "format": "date-time"
114
+ },
115
+ "expiresAt": {
116
+ "type": "string",
117
+ "format": "date-time",
118
+ "description": "When the right lapses. Absent: no expiry."
119
+ },
120
+ "reason": {
121
+ "type": "string",
122
+ "maxLength": 1024,
123
+ "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."
124
+ },
125
+ "breakGlass": {
126
+ "$ref": "#/$defs/BreakGlass",
127
+ "description": "Present exactly when the subject gave themselves this right through git-ns/right/break-glass. Absent for every other record."
128
+ }
129
+ }
130
+ },
131
+ "BreakGlass": {
132
+ "title": "BreakGlass",
133
+ "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.",
134
+ "type": "object",
135
+ "additionalProperties": false,
136
+ "required": [
137
+ "by",
138
+ "at",
139
+ "justification"
140
+ ],
141
+ "properties": {
142
+ "by": {
143
+ "$ref": "#/$defs/Did",
144
+ "description": "Who broke the glass: always the record's `subject`, restated so the flag reads on its own."
145
+ },
146
+ "at": {
147
+ "type": "string",
148
+ "format": "date-time",
149
+ "description": "When the VTC recorded the break-glass."
150
+ },
151
+ "justification": {
152
+ "type": "string",
153
+ "minLength": 1,
154
+ "maxLength": 2048,
155
+ "pattern": "\\S",
156
+ "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."
157
+ },
158
+ "effectiveAt": {
159
+ "type": "string",
160
+ "format": "date-time",
161
+ "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."
162
+ },
163
+ "ratifiedBy": {
164
+ "$ref": "#/$defs/Did",
165
+ "description": "The administrator who ratified the record — never its subject. Absent while unratified."
166
+ },
167
+ "ratifiedAt": {
168
+ "type": "string",
169
+ "format": "date-time",
170
+ "description": "When it was ratified. Present exactly when `ratifiedBy` is."
171
+ }
172
+ }
173
+ },
174
+ "Resource": {
175
+ "title": "Resource",
176
+ "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`.",
177
+ "type": "string",
178
+ "maxLength": 455,
179
+ "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}$"
180
+ },
181
+ "Right": {
182
+ "title": "Right",
183
+ "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.",
184
+ "type": "string",
185
+ "enum": [
186
+ "git.ns.admin",
187
+ "git.repo.create",
188
+ "git.repo.own",
189
+ "git.repo.maintain",
190
+ "git.commit.sign"
191
+ ]
192
+ },
193
+ "NamespaceId": {
194
+ "title": "NamespaceId",
195
+ "description": "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.",
196
+ "type": "string",
197
+ "minLength": 1,
198
+ "maxLength": 128
199
+ }
200
+ }
201
+ };
202
+ /**
203
+ * SPEC.md §7.2 policy for the request variant, from this specification's
204
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
205
+ * per-specification and cannot be derived from the document alone, and
206
+ * item 2 needs the schema this carries.
207
+ */
208
+ export const SPEC = {
209
+ typeUri: TYPE_URI,
210
+ isBearer: false,
211
+ isProofRequired: true,
212
+ isRecipientRequired: true,
213
+ isIssuedAtRequired: true,
214
+ payloadSchema: PAYLOAD_SCHEMA,
215
+ };
216
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/git-ns/right/break-glass-notice/0.1/payload.ts"],"names":[],"mappings":"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"}