@openvtc/trust-tasks 0.20.8 → 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 (208) hide show
  1. package/CHANGELOG.md +233 -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,702 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/right/ratify/0.1/payload.schema.json
4
+ */
5
+ import type { BreakGlass, Did_GitNsV0_3 as Did, ElevatedRight, Ext, Resource, Right, RightRecord_GitNsV0_4 as RightRecord } from "../../../../_shared/components.js";
6
+ /**
7
+ * An administrator other than its subject ratifies one unratified break-glass record, turning it into an ordinary grant: it stops being flagged, and starts counting toward the last-owner and last-admin invariants.
8
+ */
9
+ export interface GitNamespacesRatifyBreakGlassPayload {
10
+ /**
11
+ * Who broke the glass: the record's subject.
12
+ */
13
+ subject: Did;
14
+ right: ElevatedRight;
15
+ /**
16
+ * The resource exactly as recorded.
17
+ */
18
+ resource: Resource;
19
+ /**
20
+ * The record's `breakGlass.at`, as the ratifier read it. Binds the ratification to the one break-glass the ratifier read and judged, so that it cannot ratify a later one — made after that one was revoked, with a different justification — by the same subject for the same right.
21
+ */
22
+ breakGlassAt: string;
23
+ /**
24
+ * Why, in the ratifier's words. Kept in the audit record and carried in the notice; shown to the same people as the justification.
25
+ */
26
+ statement?: string;
27
+ ext?: Ext;
28
+ }
29
+ /**
30
+ * The ratified record.
31
+ */
32
+ export interface GitNamespacesRatifyBreakGlassResponsePayload {
33
+ /**
34
+ * The record, now carrying `breakGlass.ratifiedBy` and `breakGlass.ratifiedAt`.
35
+ */
36
+ right: RightRecord;
37
+ ext?: Ext;
38
+ }
39
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
40
+ export type { BreakGlass, Did, ElevatedRight, Ext, Resource, Right, RightRecord };
41
+ /** Trust Task type URI. */
42
+ export declare const TYPE_URI: "https://trusttasks.org/spec/git-ns/right/ratify/0.1";
43
+ /** Stable alias for this specification's request payload shape. */
44
+ export type Payload = GitNamespacesRatifyBreakGlassPayload;
45
+ /** Trust Task response type URI (request type URI + "#response"). */
46
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/git-ns/right/ratify/0.1#response";
47
+ /** Stable alias for this specification's success-response payload shape. */
48
+ export type Response = GitNamespacesRatifyBreakGlassResponsePayload;
49
+ /**
50
+ * This specification's payload schema, as a value.
51
+ *
52
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
53
+ * rather than only as a `.json` file because TypeScript types are erased
54
+ * at runtime: without a schema a consumer has nothing to validate, and
55
+ * every REQUIRED payload member is optional in practice. Cross-file
56
+ * `$ref`s are already inlined, so it needs no resolver.
57
+ */
58
+ export declare const PAYLOAD_SCHEMA: {
59
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
60
+ readonly $id: "https://trusttasks.org/spec/git-ns/right/ratify/0.1";
61
+ readonly title: "Git Namespaces — Ratify Break-Glass — payload";
62
+ readonly description: "An administrator other than its subject ratifies one unratified break-glass record, turning it into an ordinary grant: it stops being flagged, and starts counting toward the last-owner and last-admin invariants.";
63
+ readonly type: "object";
64
+ readonly additionalProperties: false;
65
+ readonly required: readonly ["subject", "right", "resource", "breakGlassAt"];
66
+ readonly properties: {
67
+ readonly subject: {
68
+ readonly $ref: "#/$defs/Did";
69
+ readonly description: "Who broke the glass: the record's subject.";
70
+ };
71
+ readonly right: {
72
+ readonly $ref: "#/$defs/ElevatedRight";
73
+ };
74
+ readonly resource: {
75
+ readonly $ref: "#/$defs/Resource";
76
+ readonly description: "The resource exactly as recorded.";
77
+ };
78
+ readonly breakGlassAt: {
79
+ readonly type: "string";
80
+ readonly format: "date-time";
81
+ readonly description: "The record's `breakGlass.at`, as the ratifier read it. Binds the ratification to the one break-glass the ratifier read and judged, so that it cannot ratify a later one — made after that one was revoked, with a different justification — by the same subject for the same right.";
82
+ };
83
+ readonly statement: {
84
+ readonly type: "string";
85
+ readonly maxLength: 1024;
86
+ readonly description: "Why, in the ratifier's words. Kept in the audit record and carried in the notice; shown to the same people as the justification.";
87
+ };
88
+ readonly ext: {
89
+ readonly $ref: "#/$defs/Ext";
90
+ };
91
+ };
92
+ readonly $defs: {
93
+ readonly Response: {
94
+ readonly $anchor: "response";
95
+ readonly title: "Git Namespaces — Ratify Break-Glass — response payload";
96
+ readonly description: "The ratified record.";
97
+ readonly type: "object";
98
+ readonly additionalProperties: false;
99
+ readonly required: readonly ["right"];
100
+ readonly properties: {
101
+ readonly right: {
102
+ readonly $ref: "#/$defs/RightRecord";
103
+ readonly description: "The record, now carrying `breakGlass.ratifiedBy` and `breakGlass.ratifiedAt`.";
104
+ };
105
+ readonly ext: {
106
+ readonly $ref: "#/$defs/Ext";
107
+ };
108
+ };
109
+ };
110
+ readonly Ext: {
111
+ readonly title: "Ext";
112
+ 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.";
113
+ readonly type: "object";
114
+ readonly minProperties: 1;
115
+ readonly additionalProperties: true;
116
+ readonly propertyNames: {
117
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
118
+ };
119
+ };
120
+ readonly RightRecord: {
121
+ readonly title: "RightRecord";
122
+ 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.";
123
+ readonly type: "object";
124
+ readonly additionalProperties: false;
125
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
126
+ readonly properties: {
127
+ readonly subject: {
128
+ readonly $ref: "#/$defs/Did";
129
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
130
+ };
131
+ readonly right: {
132
+ readonly $ref: "#/$defs/Right";
133
+ };
134
+ readonly resource: {
135
+ readonly $ref: "#/$defs/Resource";
136
+ };
137
+ readonly grantedBy: {
138
+ readonly $ref: "#/$defs/Did";
139
+ 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.";
140
+ };
141
+ readonly grantedAt: {
142
+ readonly type: "string";
143
+ readonly format: "date-time";
144
+ };
145
+ readonly expiresAt: {
146
+ readonly type: "string";
147
+ readonly format: "date-time";
148
+ readonly description: "When the right lapses. Absent: no expiry.";
149
+ };
150
+ readonly reason: {
151
+ readonly type: "string";
152
+ readonly maxLength: 1024;
153
+ 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.";
154
+ };
155
+ readonly breakGlass: {
156
+ readonly $ref: "#/$defs/BreakGlass";
157
+ readonly description: "Present exactly when the subject gave themselves this right through git-ns/right/break-glass. Absent for every other record.";
158
+ };
159
+ };
160
+ };
161
+ readonly BreakGlass: {
162
+ readonly title: "BreakGlass";
163
+ 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.";
164
+ readonly type: "object";
165
+ readonly additionalProperties: false;
166
+ readonly required: readonly ["by", "at", "justification"];
167
+ readonly properties: {
168
+ readonly by: {
169
+ readonly $ref: "#/$defs/Did";
170
+ readonly description: "Who broke the glass: always the record's `subject`, restated so the flag reads on its own.";
171
+ };
172
+ readonly at: {
173
+ readonly type: "string";
174
+ readonly format: "date-time";
175
+ readonly description: "When the VTC recorded the break-glass.";
176
+ };
177
+ readonly justification: {
178
+ readonly type: "string";
179
+ readonly minLength: 1;
180
+ readonly maxLength: 2048;
181
+ readonly pattern: "\\S";
182
+ 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.";
183
+ };
184
+ readonly effectiveAt: {
185
+ readonly type: "string";
186
+ readonly format: "date-time";
187
+ 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.";
188
+ };
189
+ readonly ratifiedBy: {
190
+ readonly $ref: "#/$defs/Did";
191
+ readonly description: "The administrator who ratified the record — never its subject. Absent while unratified.";
192
+ };
193
+ readonly ratifiedAt: {
194
+ readonly type: "string";
195
+ readonly format: "date-time";
196
+ readonly description: "When it was ratified. Present exactly when `ratifiedBy` is.";
197
+ };
198
+ };
199
+ };
200
+ readonly Did: {
201
+ readonly title: "Did";
202
+ 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.";
203
+ readonly type: "string";
204
+ readonly maxLength: 2048;
205
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
206
+ };
207
+ readonly Resource: {
208
+ readonly title: "Resource";
209
+ 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`.";
210
+ readonly type: "string";
211
+ readonly maxLength: 455;
212
+ 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}$";
213
+ };
214
+ readonly Right: {
215
+ readonly title: "Right";
216
+ 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.";
217
+ readonly type: "string";
218
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
219
+ };
220
+ readonly ElevatedRight: {
221
+ readonly title: "ElevatedRight";
222
+ readonly description: "The three rights that carry authority over other people's rights: `git.ns.admin`, `git.repo.create` (which makes its holder the owner of every repository they create) and `git.repo.own`. Separation of duties applies to these: nobody grants one to themselves through git-ns/right/grant, or records one for themselves through any other task that grants on the actor's own authority. The explicit self-grant is git-ns/right/break-glass. `git.repo.maintain` and `git.commit.sign` are not elevated.";
223
+ readonly type: "string";
224
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own"];
225
+ };
226
+ };
227
+ };
228
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
229
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
230
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
231
+ readonly $ref: "#/$defs/Response";
232
+ readonly $defs: {
233
+ readonly Response: {
234
+ readonly $anchor: "response";
235
+ readonly title: "Git Namespaces — Ratify Break-Glass — response payload";
236
+ readonly description: "The ratified record.";
237
+ readonly type: "object";
238
+ readonly additionalProperties: false;
239
+ readonly required: readonly ["right"];
240
+ readonly properties: {
241
+ readonly right: {
242
+ readonly $ref: "#/$defs/RightRecord";
243
+ readonly description: "The record, now carrying `breakGlass.ratifiedBy` and `breakGlass.ratifiedAt`.";
244
+ };
245
+ readonly ext: {
246
+ readonly $ref: "#/$defs/Ext";
247
+ };
248
+ };
249
+ };
250
+ readonly Ext: {
251
+ readonly title: "Ext";
252
+ 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.";
253
+ readonly type: "object";
254
+ readonly minProperties: 1;
255
+ readonly additionalProperties: true;
256
+ readonly propertyNames: {
257
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
258
+ };
259
+ };
260
+ readonly RightRecord: {
261
+ readonly title: "RightRecord";
262
+ 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.";
263
+ readonly type: "object";
264
+ readonly additionalProperties: false;
265
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
266
+ readonly properties: {
267
+ readonly subject: {
268
+ readonly $ref: "#/$defs/Did";
269
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
270
+ };
271
+ readonly right: {
272
+ readonly $ref: "#/$defs/Right";
273
+ };
274
+ readonly resource: {
275
+ readonly $ref: "#/$defs/Resource";
276
+ };
277
+ readonly grantedBy: {
278
+ readonly $ref: "#/$defs/Did";
279
+ 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.";
280
+ };
281
+ readonly grantedAt: {
282
+ readonly type: "string";
283
+ readonly format: "date-time";
284
+ };
285
+ readonly expiresAt: {
286
+ readonly type: "string";
287
+ readonly format: "date-time";
288
+ readonly description: "When the right lapses. Absent: no expiry.";
289
+ };
290
+ readonly reason: {
291
+ readonly type: "string";
292
+ readonly maxLength: 1024;
293
+ 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.";
294
+ };
295
+ readonly breakGlass: {
296
+ readonly $ref: "#/$defs/BreakGlass";
297
+ readonly description: "Present exactly when the subject gave themselves this right through git-ns/right/break-glass. Absent for every other record.";
298
+ };
299
+ };
300
+ };
301
+ readonly BreakGlass: {
302
+ readonly title: "BreakGlass";
303
+ 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.";
304
+ readonly type: "object";
305
+ readonly additionalProperties: false;
306
+ readonly required: readonly ["by", "at", "justification"];
307
+ readonly properties: {
308
+ readonly by: {
309
+ readonly $ref: "#/$defs/Did";
310
+ readonly description: "Who broke the glass: always the record's `subject`, restated so the flag reads on its own.";
311
+ };
312
+ readonly at: {
313
+ readonly type: "string";
314
+ readonly format: "date-time";
315
+ readonly description: "When the VTC recorded the break-glass.";
316
+ };
317
+ readonly justification: {
318
+ readonly type: "string";
319
+ readonly minLength: 1;
320
+ readonly maxLength: 2048;
321
+ readonly pattern: "\\S";
322
+ 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.";
323
+ };
324
+ readonly effectiveAt: {
325
+ readonly type: "string";
326
+ readonly format: "date-time";
327
+ 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.";
328
+ };
329
+ readonly ratifiedBy: {
330
+ readonly $ref: "#/$defs/Did";
331
+ readonly description: "The administrator who ratified the record — never its subject. Absent while unratified.";
332
+ };
333
+ readonly ratifiedAt: {
334
+ readonly type: "string";
335
+ readonly format: "date-time";
336
+ readonly description: "When it was ratified. Present exactly when `ratifiedBy` is.";
337
+ };
338
+ };
339
+ };
340
+ readonly Did: {
341
+ readonly title: "Did";
342
+ 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.";
343
+ readonly type: "string";
344
+ readonly maxLength: 2048;
345
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
346
+ };
347
+ readonly Resource: {
348
+ readonly title: "Resource";
349
+ 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`.";
350
+ readonly type: "string";
351
+ readonly maxLength: 455;
352
+ 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}$";
353
+ };
354
+ readonly Right: {
355
+ readonly title: "Right";
356
+ 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.";
357
+ readonly type: "string";
358
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
359
+ };
360
+ readonly ElevatedRight: {
361
+ readonly title: "ElevatedRight";
362
+ readonly description: "The three rights that carry authority over other people's rights: `git.ns.admin`, `git.repo.create` (which makes its holder the owner of every repository they create) and `git.repo.own`. Separation of duties applies to these: nobody grants one to themselves through git-ns/right/grant, or records one for themselves through any other task that grants on the actor's own authority. The explicit self-grant is git-ns/right/break-glass. `git.repo.maintain` and `git.commit.sign` are not elevated.";
363
+ readonly type: "string";
364
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own"];
365
+ };
366
+ };
367
+ };
368
+ /**
369
+ * SPEC.md §7.2 policy for the request variant, from this specification's
370
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
371
+ * per-specification and cannot be derived from the document alone, and
372
+ * item 2 needs the schema this carries.
373
+ */
374
+ export declare const SPEC: {
375
+ readonly typeUri: "https://trusttasks.org/spec/git-ns/right/ratify/0.1";
376
+ readonly isBearer: false;
377
+ readonly isProofRequired: true;
378
+ readonly isRecipientRequired: true;
379
+ readonly isIssuedAtRequired: true;
380
+ readonly payloadSchema: {
381
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
382
+ readonly $id: "https://trusttasks.org/spec/git-ns/right/ratify/0.1";
383
+ readonly title: "Git Namespaces — Ratify Break-Glass — payload";
384
+ readonly description: "An administrator other than its subject ratifies one unratified break-glass record, turning it into an ordinary grant: it stops being flagged, and starts counting toward the last-owner and last-admin invariants.";
385
+ readonly type: "object";
386
+ readonly additionalProperties: false;
387
+ readonly required: readonly ["subject", "right", "resource", "breakGlassAt"];
388
+ readonly properties: {
389
+ readonly subject: {
390
+ readonly $ref: "#/$defs/Did";
391
+ readonly description: "Who broke the glass: the record's subject.";
392
+ };
393
+ readonly right: {
394
+ readonly $ref: "#/$defs/ElevatedRight";
395
+ };
396
+ readonly resource: {
397
+ readonly $ref: "#/$defs/Resource";
398
+ readonly description: "The resource exactly as recorded.";
399
+ };
400
+ readonly breakGlassAt: {
401
+ readonly type: "string";
402
+ readonly format: "date-time";
403
+ readonly description: "The record's `breakGlass.at`, as the ratifier read it. Binds the ratification to the one break-glass the ratifier read and judged, so that it cannot ratify a later one — made after that one was revoked, with a different justification — by the same subject for the same right.";
404
+ };
405
+ readonly statement: {
406
+ readonly type: "string";
407
+ readonly maxLength: 1024;
408
+ readonly description: "Why, in the ratifier's words. Kept in the audit record and carried in the notice; shown to the same people as the justification.";
409
+ };
410
+ readonly ext: {
411
+ readonly $ref: "#/$defs/Ext";
412
+ };
413
+ };
414
+ readonly $defs: {
415
+ readonly Response: {
416
+ readonly $anchor: "response";
417
+ readonly title: "Git Namespaces — Ratify Break-Glass — response payload";
418
+ readonly description: "The ratified record.";
419
+ readonly type: "object";
420
+ readonly additionalProperties: false;
421
+ readonly required: readonly ["right"];
422
+ readonly properties: {
423
+ readonly right: {
424
+ readonly $ref: "#/$defs/RightRecord";
425
+ readonly description: "The record, now carrying `breakGlass.ratifiedBy` and `breakGlass.ratifiedAt`.";
426
+ };
427
+ readonly ext: {
428
+ readonly $ref: "#/$defs/Ext";
429
+ };
430
+ };
431
+ };
432
+ readonly Ext: {
433
+ readonly title: "Ext";
434
+ 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.";
435
+ readonly type: "object";
436
+ readonly minProperties: 1;
437
+ readonly additionalProperties: true;
438
+ readonly propertyNames: {
439
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
440
+ };
441
+ };
442
+ readonly RightRecord: {
443
+ readonly title: "RightRecord";
444
+ 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.";
445
+ readonly type: "object";
446
+ readonly additionalProperties: false;
447
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
448
+ readonly properties: {
449
+ readonly subject: {
450
+ readonly $ref: "#/$defs/Did";
451
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
452
+ };
453
+ readonly right: {
454
+ readonly $ref: "#/$defs/Right";
455
+ };
456
+ readonly resource: {
457
+ readonly $ref: "#/$defs/Resource";
458
+ };
459
+ readonly grantedBy: {
460
+ readonly $ref: "#/$defs/Did";
461
+ 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.";
462
+ };
463
+ readonly grantedAt: {
464
+ readonly type: "string";
465
+ readonly format: "date-time";
466
+ };
467
+ readonly expiresAt: {
468
+ readonly type: "string";
469
+ readonly format: "date-time";
470
+ readonly description: "When the right lapses. Absent: no expiry.";
471
+ };
472
+ readonly reason: {
473
+ readonly type: "string";
474
+ readonly maxLength: 1024;
475
+ 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.";
476
+ };
477
+ readonly breakGlass: {
478
+ readonly $ref: "#/$defs/BreakGlass";
479
+ readonly description: "Present exactly when the subject gave themselves this right through git-ns/right/break-glass. Absent for every other record.";
480
+ };
481
+ };
482
+ };
483
+ readonly BreakGlass: {
484
+ readonly title: "BreakGlass";
485
+ 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.";
486
+ readonly type: "object";
487
+ readonly additionalProperties: false;
488
+ readonly required: readonly ["by", "at", "justification"];
489
+ readonly properties: {
490
+ readonly by: {
491
+ readonly $ref: "#/$defs/Did";
492
+ readonly description: "Who broke the glass: always the record's `subject`, restated so the flag reads on its own.";
493
+ };
494
+ readonly at: {
495
+ readonly type: "string";
496
+ readonly format: "date-time";
497
+ readonly description: "When the VTC recorded the break-glass.";
498
+ };
499
+ readonly justification: {
500
+ readonly type: "string";
501
+ readonly minLength: 1;
502
+ readonly maxLength: 2048;
503
+ readonly pattern: "\\S";
504
+ 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.";
505
+ };
506
+ readonly effectiveAt: {
507
+ readonly type: "string";
508
+ readonly format: "date-time";
509
+ 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.";
510
+ };
511
+ readonly ratifiedBy: {
512
+ readonly $ref: "#/$defs/Did";
513
+ readonly description: "The administrator who ratified the record — never its subject. Absent while unratified.";
514
+ };
515
+ readonly ratifiedAt: {
516
+ readonly type: "string";
517
+ readonly format: "date-time";
518
+ readonly description: "When it was ratified. Present exactly when `ratifiedBy` is.";
519
+ };
520
+ };
521
+ };
522
+ readonly Did: {
523
+ readonly title: "Did";
524
+ 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.";
525
+ readonly type: "string";
526
+ readonly maxLength: 2048;
527
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
528
+ };
529
+ readonly Resource: {
530
+ readonly title: "Resource";
531
+ 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`.";
532
+ readonly type: "string";
533
+ readonly maxLength: 455;
534
+ 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}$";
535
+ };
536
+ readonly Right: {
537
+ readonly title: "Right";
538
+ 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.";
539
+ readonly type: "string";
540
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
541
+ };
542
+ readonly ElevatedRight: {
543
+ readonly title: "ElevatedRight";
544
+ readonly description: "The three rights that carry authority over other people's rights: `git.ns.admin`, `git.repo.create` (which makes its holder the owner of every repository they create) and `git.repo.own`. Separation of duties applies to these: nobody grants one to themselves through git-ns/right/grant, or records one for themselves through any other task that grants on the actor's own authority. The explicit self-grant is git-ns/right/break-glass. `git.repo.maintain` and `git.commit.sign` are not elevated.";
545
+ readonly type: "string";
546
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own"];
547
+ };
548
+ };
549
+ };
550
+ };
551
+ /**
552
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
553
+ * tracks the *issuer* party's requirement because a response swaps the
554
+ * parties (§7.3 item 5).
555
+ */
556
+ export declare const RESPONSE_SPEC: {
557
+ readonly typeUri: "https://trusttasks.org/spec/git-ns/right/ratify/0.1#response";
558
+ readonly isBearer: false;
559
+ readonly isProofRequired: true;
560
+ readonly isRecipientRequired: true;
561
+ readonly isIssuedAtRequired: true;
562
+ readonly payloadSchema: {
563
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
564
+ readonly $ref: "#/$defs/Response";
565
+ readonly $defs: {
566
+ readonly Response: {
567
+ readonly $anchor: "response";
568
+ readonly title: "Git Namespaces — Ratify Break-Glass — response payload";
569
+ readonly description: "The ratified record.";
570
+ readonly type: "object";
571
+ readonly additionalProperties: false;
572
+ readonly required: readonly ["right"];
573
+ readonly properties: {
574
+ readonly right: {
575
+ readonly $ref: "#/$defs/RightRecord";
576
+ readonly description: "The record, now carrying `breakGlass.ratifiedBy` and `breakGlass.ratifiedAt`.";
577
+ };
578
+ readonly ext: {
579
+ readonly $ref: "#/$defs/Ext";
580
+ };
581
+ };
582
+ };
583
+ readonly Ext: {
584
+ readonly title: "Ext";
585
+ 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.";
586
+ readonly type: "object";
587
+ readonly minProperties: 1;
588
+ readonly additionalProperties: true;
589
+ readonly propertyNames: {
590
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
591
+ };
592
+ };
593
+ readonly RightRecord: {
594
+ readonly title: "RightRecord";
595
+ 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.";
596
+ readonly type: "object";
597
+ readonly additionalProperties: false;
598
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
599
+ readonly properties: {
600
+ readonly subject: {
601
+ readonly $ref: "#/$defs/Did";
602
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
603
+ };
604
+ readonly right: {
605
+ readonly $ref: "#/$defs/Right";
606
+ };
607
+ readonly resource: {
608
+ readonly $ref: "#/$defs/Resource";
609
+ };
610
+ readonly grantedBy: {
611
+ readonly $ref: "#/$defs/Did";
612
+ 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.";
613
+ };
614
+ readonly grantedAt: {
615
+ readonly type: "string";
616
+ readonly format: "date-time";
617
+ };
618
+ readonly expiresAt: {
619
+ readonly type: "string";
620
+ readonly format: "date-time";
621
+ readonly description: "When the right lapses. Absent: no expiry.";
622
+ };
623
+ readonly reason: {
624
+ readonly type: "string";
625
+ readonly maxLength: 1024;
626
+ 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.";
627
+ };
628
+ readonly breakGlass: {
629
+ readonly $ref: "#/$defs/BreakGlass";
630
+ readonly description: "Present exactly when the subject gave themselves this right through git-ns/right/break-glass. Absent for every other record.";
631
+ };
632
+ };
633
+ };
634
+ readonly BreakGlass: {
635
+ readonly title: "BreakGlass";
636
+ 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.";
637
+ readonly type: "object";
638
+ readonly additionalProperties: false;
639
+ readonly required: readonly ["by", "at", "justification"];
640
+ readonly properties: {
641
+ readonly by: {
642
+ readonly $ref: "#/$defs/Did";
643
+ readonly description: "Who broke the glass: always the record's `subject`, restated so the flag reads on its own.";
644
+ };
645
+ readonly at: {
646
+ readonly type: "string";
647
+ readonly format: "date-time";
648
+ readonly description: "When the VTC recorded the break-glass.";
649
+ };
650
+ readonly justification: {
651
+ readonly type: "string";
652
+ readonly minLength: 1;
653
+ readonly maxLength: 2048;
654
+ readonly pattern: "\\S";
655
+ 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.";
656
+ };
657
+ readonly effectiveAt: {
658
+ readonly type: "string";
659
+ readonly format: "date-time";
660
+ 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.";
661
+ };
662
+ readonly ratifiedBy: {
663
+ readonly $ref: "#/$defs/Did";
664
+ readonly description: "The administrator who ratified the record — never its subject. Absent while unratified.";
665
+ };
666
+ readonly ratifiedAt: {
667
+ readonly type: "string";
668
+ readonly format: "date-time";
669
+ readonly description: "When it was ratified. Present exactly when `ratifiedBy` is.";
670
+ };
671
+ };
672
+ };
673
+ readonly Did: {
674
+ readonly title: "Did";
675
+ 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.";
676
+ readonly type: "string";
677
+ readonly maxLength: 2048;
678
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
679
+ };
680
+ readonly Resource: {
681
+ readonly title: "Resource";
682
+ 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`.";
683
+ readonly type: "string";
684
+ readonly maxLength: 455;
685
+ 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}$";
686
+ };
687
+ readonly Right: {
688
+ readonly title: "Right";
689
+ 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.";
690
+ readonly type: "string";
691
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
692
+ };
693
+ readonly ElevatedRight: {
694
+ readonly title: "ElevatedRight";
695
+ readonly description: "The three rights that carry authority over other people's rights: `git.ns.admin`, `git.repo.create` (which makes its holder the owner of every repository they create) and `git.repo.own`. Separation of duties applies to these: nobody grants one to themselves through git-ns/right/grant, or records one for themselves through any other task that grants on the actor's own authority. The explicit self-grant is git-ns/right/break-glass. `git.repo.maintain` and `git.commit.sign` are not elevated.";
696
+ readonly type: "string";
697
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own"];
698
+ };
699
+ };
700
+ };
701
+ };
702
+ //# sourceMappingURL=payload.d.ts.map