@openvtc/trust-tasks 0.20.6 → 0.20.8

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 (152) hide show
  1. package/CHANGELOG.md +138 -0
  2. package/dist/_shared/components.d.ts +55 -6
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/step-up/approve-request/0.3/payload.d.ts +613 -0
  5. package/dist/auth/step-up/approve-request/0.3/payload.d.ts.map +1 -0
  6. package/dist/auth/step-up/approve-request/0.3/payload.js +345 -0
  7. package/dist/auth/step-up/approve-request/0.3/payload.js.map +1 -0
  8. package/dist/auth/step-up/approve-response/0.4/payload.d.ts +887 -0
  9. package/dist/auth/step-up/approve-response/0.4/payload.d.ts.map +1 -0
  10. package/dist/auth/step-up/approve-response/0.4/payload.js +504 -0
  11. package/dist/auth/step-up/approve-response/0.4/payload.js.map +1 -0
  12. package/dist/backup/abort/0.1/payload.d.ts +262 -0
  13. package/dist/backup/abort/0.1/payload.d.ts.map +1 -0
  14. package/dist/backup/abort/0.1/payload.js +146 -0
  15. package/dist/backup/abort/0.1/payload.js.map +1 -0
  16. package/dist/backup/complete-export/0.1/payload.d.ts +262 -0
  17. package/dist/backup/complete-export/0.1/payload.d.ts.map +1 -0
  18. package/dist/backup/complete-export/0.1/payload.js +146 -0
  19. package/dist/backup/complete-export/0.1/payload.js.map +1 -0
  20. package/dist/backup/finalize-import/0.1/payload.d.ts +395 -0
  21. package/dist/backup/finalize-import/0.1/payload.d.ts.map +1 -0
  22. package/dist/backup/finalize-import/0.1/payload.js +209 -0
  23. package/dist/backup/finalize-import/0.1/payload.js.map +1 -0
  24. package/dist/backup/get-chunk/0.1/payload.d.ts +461 -0
  25. package/dist/backup/get-chunk/0.1/payload.d.ts.map +1 -0
  26. package/dist/backup/get-chunk/0.1/payload.js +250 -0
  27. package/dist/backup/get-chunk/0.1/payload.js.map +1 -0
  28. package/dist/backup/initiate-export/0.1/payload.d.ts +896 -0
  29. package/dist/backup/initiate-export/0.1/payload.d.ts.map +1 -0
  30. package/dist/backup/initiate-export/0.1/payload.js +507 -0
  31. package/dist/backup/initiate-export/0.1/payload.js.map +1 -0
  32. package/dist/backup/initiate-import/0.1/payload.d.ts +888 -0
  33. package/dist/backup/initiate-import/0.1/payload.d.ts.map +1 -0
  34. package/dist/backup/initiate-import/0.1/payload.js +504 -0
  35. package/dist/backup/initiate-import/0.1/payload.js.map +1 -0
  36. package/dist/backup/put-chunk/0.1/payload.d.ts +495 -0
  37. package/dist/backup/put-chunk/0.1/payload.d.ts.map +1 -0
  38. package/dist/backup/put-chunk/0.1/payload.js +265 -0
  39. package/dist/backup/put-chunk/0.1/payload.js.map +1 -0
  40. package/dist/git-ns/_shared/0.1/git-ns.d.ts +1 -1
  41. package/dist/git-ns/_shared/0.1/git-ns.d.ts.map +1 -1
  42. package/dist/git-ns/_shared/0.2/git-ns.d.ts +1 -1
  43. package/dist/git-ns/_shared/0.2/git-ns.d.ts.map +1 -1
  44. package/dist/git-ns/_shared/0.3/git-ns.d.ts +16 -0
  45. package/dist/git-ns/_shared/0.3/git-ns.d.ts.map +1 -0
  46. package/dist/git-ns/_shared/0.3/git-ns.js +6 -0
  47. package/dist/git-ns/_shared/0.3/git-ns.js.map +1 -0
  48. package/dist/git-ns/bridge/job/0.1/payload.d.ts +1 -1
  49. package/dist/git-ns/bridge/job/0.1/payload.d.ts.map +1 -1
  50. package/dist/git-ns/bridge/job/0.2/payload.d.ts +1 -1
  51. package/dist/git-ns/bridge/job/0.2/payload.d.ts.map +1 -1
  52. package/dist/git-ns/bridge/job/0.3/payload.d.ts +1068 -0
  53. package/dist/git-ns/bridge/job/0.3/payload.d.ts.map +1 -0
  54. package/dist/git-ns/bridge/job/0.3/payload.js +573 -0
  55. package/dist/git-ns/bridge/job/0.3/payload.js.map +1 -0
  56. package/dist/git-ns/drift/resolve/0.1/payload.d.ts +1 -1
  57. package/dist/git-ns/drift/resolve/0.1/payload.d.ts.map +1 -1
  58. package/dist/git-ns/drift/resolve/0.2/payload.d.ts +1060 -0
  59. package/dist/git-ns/drift/resolve/0.2/payload.d.ts.map +1 -0
  60. package/dist/git-ns/drift/resolve/0.2/payload.js +630 -0
  61. package/dist/git-ns/drift/resolve/0.2/payload.js.map +1 -0
  62. package/dist/git-ns/namespace/reseat/0.1/payload.d.ts +1 -1
  63. package/dist/git-ns/namespace/reseat/0.1/payload.d.ts.map +1 -1
  64. package/dist/git-ns/namespace/reseat/0.2/payload.d.ts +515 -0
  65. package/dist/git-ns/namespace/reseat/0.2/payload.d.ts.map +1 -0
  66. package/dist/git-ns/namespace/reseat/0.2/payload.js +296 -0
  67. package/dist/git-ns/namespace/reseat/0.2/payload.js.map +1 -0
  68. package/dist/git-ns/repo/adopt/0.1/payload.d.ts +1 -1
  69. package/dist/git-ns/repo/adopt/0.1/payload.d.ts.map +1 -1
  70. package/dist/git-ns/repo/adopt/0.2/payload.d.ts +962 -0
  71. package/dist/git-ns/repo/adopt/0.2/payload.d.ts.map +1 -0
  72. package/dist/git-ns/repo/adopt/0.2/payload.js +583 -0
  73. package/dist/git-ns/repo/adopt/0.2/payload.js.map +1 -0
  74. package/dist/git-ns/repo/archive/0.1/payload.d.ts +1 -1
  75. package/dist/git-ns/repo/archive/0.1/payload.d.ts.map +1 -1
  76. package/dist/git-ns/repo/archive/0.2/payload.d.ts +959 -0
  77. package/dist/git-ns/repo/archive/0.2/payload.d.ts.map +1 -0
  78. package/dist/git-ns/repo/archive/0.2/payload.js +584 -0
  79. package/dist/git-ns/repo/archive/0.2/payload.js.map +1 -0
  80. package/dist/git-ns/repo/create/0.1/payload.d.ts +1 -1
  81. package/dist/git-ns/repo/create/0.1/payload.d.ts.map +1 -1
  82. package/dist/git-ns/repo/create/0.2/payload.d.ts +1074 -0
  83. package/dist/git-ns/repo/create/0.2/payload.d.ts.map +1 -0
  84. package/dist/git-ns/repo/create/0.2/payload.js +636 -0
  85. package/dist/git-ns/repo/create/0.2/payload.js.map +1 -0
  86. package/dist/git-ns/repo/transfer/0.1/payload.d.ts +1 -1
  87. package/dist/git-ns/repo/transfer/0.1/payload.d.ts.map +1 -1
  88. package/dist/git-ns/repo/transfer/0.2/payload.d.ts +947 -0
  89. package/dist/git-ns/repo/transfer/0.2/payload.d.ts.map +1 -0
  90. package/dist/git-ns/repo/transfer/0.2/payload.js +577 -0
  91. package/dist/git-ns/repo/transfer/0.2/payload.js.map +1 -0
  92. package/dist/git-ns/right/grant/0.1/payload.d.ts +1 -1
  93. package/dist/git-ns/right/grant/0.1/payload.d.ts.map +1 -1
  94. package/dist/git-ns/right/grant/0.2/payload.d.ts +506 -0
  95. package/dist/git-ns/right/grant/0.2/payload.d.ts.map +1 -0
  96. package/dist/git-ns/right/grant/0.2/payload.js +289 -0
  97. package/dist/git-ns/right/grant/0.2/payload.js.map +1 -0
  98. package/dist/git-ns/right/revoke/0.1/payload.d.ts +1 -1
  99. package/dist/git-ns/right/revoke/0.1/payload.d.ts.map +1 -1
  100. package/dist/git-ns/right/revoke/0.2/payload.d.ts +492 -0
  101. package/dist/git-ns/right/revoke/0.2/payload.d.ts.map +1 -0
  102. package/dist/git-ns/right/revoke/0.2/payload.js +284 -0
  103. package/dist/git-ns/right/revoke/0.2/payload.js.map +1 -0
  104. package/dist/git-ns/view/0.1/payload.d.ts +1 -1
  105. package/dist/git-ns/view/0.1/payload.d.ts.map +1 -1
  106. package/dist/git-ns/view/0.2/payload.d.ts +1 -1
  107. package/dist/git-ns/view/0.2/payload.d.ts.map +1 -1
  108. package/dist/git-ns/view/0.3/payload.d.ts +1524 -0
  109. package/dist/git-ns/view/0.3/payload.d.ts.map +1 -0
  110. package/dist/git-ns/view/0.3/payload.js +918 -0
  111. package/dist/git-ns/view/0.3/payload.js.map +1 -0
  112. package/dist/index.d.ts +20 -0
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +20 -0
  115. package/dist/index.js.map +1 -1
  116. package/package.json +1 -1
  117. package/src/_shared/components.ts +55 -6
  118. package/src/auth/step-up/approve-request/0.3/payload.ts +421 -0
  119. package/src/auth/step-up/approve-response/0.4/payload.ts +593 -0
  120. package/src/backup/abort/0.1/payload.ts +191 -0
  121. package/src/backup/complete-export/0.1/payload.ts +191 -0
  122. package/src/backup/finalize-import/0.1/payload.ts +279 -0
  123. package/src/backup/get-chunk/0.1/payload.ts +308 -0
  124. package/src/backup/initiate-export/0.1/payload.ts +564 -0
  125. package/src/backup/initiate-import/0.1/payload.ts +561 -0
  126. package/src/backup/put-chunk/0.1/payload.ts +331 -0
  127. package/src/git-ns/_shared/0.1/git-ns.ts +1 -1
  128. package/src/git-ns/_shared/0.2/git-ns.ts +1 -1
  129. package/src/git-ns/_shared/0.3/git-ns.ts +17 -0
  130. package/src/git-ns/bridge/job/0.1/payload.ts +1 -1
  131. package/src/git-ns/bridge/job/0.2/payload.ts +1 -1
  132. package/src/git-ns/bridge/job/0.3/payload.ts +691 -0
  133. package/src/git-ns/drift/resolve/0.1/payload.ts +1 -1
  134. package/src/git-ns/drift/resolve/0.2/payload.ts +699 -0
  135. package/src/git-ns/namespace/reseat/0.1/payload.ts +1 -1
  136. package/src/git-ns/namespace/reseat/0.2/payload.ts +342 -0
  137. package/src/git-ns/repo/adopt/0.1/payload.ts +1 -1
  138. package/src/git-ns/repo/adopt/0.2/payload.ts +628 -0
  139. package/src/git-ns/repo/archive/0.1/payload.ts +1 -1
  140. package/src/git-ns/repo/archive/0.2/payload.ts +626 -0
  141. package/src/git-ns/repo/create/0.1/payload.ts +1 -1
  142. package/src/git-ns/repo/create/0.2/payload.ts +689 -0
  143. package/src/git-ns/repo/transfer/0.1/payload.ts +1 -1
  144. package/src/git-ns/repo/transfer/0.2/payload.ts +619 -0
  145. package/src/git-ns/right/grant/0.1/payload.ts +1 -1
  146. package/src/git-ns/right/grant/0.2/payload.ts +340 -0
  147. package/src/git-ns/right/revoke/0.1/payload.ts +1 -1
  148. package/src/git-ns/right/revoke/0.2/payload.ts +331 -0
  149. package/src/git-ns/view/0.1/payload.ts +1 -1
  150. package/src/git-ns/view/0.2/payload.ts +1 -1
  151. package/src/git-ns/view/0.3/payload.ts +981 -0
  152. package/src/index.ts +20 -0
@@ -0,0 +1,492 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/right/revoke/0.2/payload.schema.json
4
+ */
5
+ import type { Did_GitNsV0_3 as Did, Ext, Resource, Right, RightRecord_GitNsV0_3 as RightRecord } from "../../../../_shared/components.js";
6
+ /**
7
+ * Revokes one recorded git right and withdraws it from the Trust Registry.
8
+ */
9
+ export interface GitNamespacesRevokeRightPayload {
10
+ /**
11
+ * Who holds the right.
12
+ */
13
+ subject: Did;
14
+ right: Right;
15
+ /**
16
+ * The resource exactly as recorded. Revocation matches the record; it does not revoke a narrower right the subject holds inside this resource.
17
+ */
18
+ resource: Resource;
19
+ /**
20
+ * Why, in the revoker's words. Kept in the VTC's audit record.
21
+ */
22
+ reason?: string;
23
+ ext?: Ext;
24
+ }
25
+ /**
26
+ * The revoked record.
27
+ */
28
+ export interface GitNamespacesRevokeRightResponsePayload {
29
+ /**
30
+ * The record as it stood when it was revoked.
31
+ */
32
+ revoked: RightRecord;
33
+ ext?: Ext;
34
+ }
35
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
36
+ export type { Did, Ext, Resource, Right, RightRecord };
37
+ /** Trust Task type URI. */
38
+ export declare const TYPE_URI: "https://trusttasks.org/spec/git-ns/right/revoke/0.2";
39
+ /** Stable alias for this specification's request payload shape. */
40
+ export type Payload = GitNamespacesRevokeRightPayload;
41
+ /** Trust Task response type URI (request type URI + "#response"). */
42
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/git-ns/right/revoke/0.2#response";
43
+ /** Stable alias for this specification's success-response payload shape. */
44
+ export type Response = GitNamespacesRevokeRightResponsePayload;
45
+ /**
46
+ * This specification's payload schema, as a value.
47
+ *
48
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
49
+ * rather than only as a `.json` file because TypeScript types are erased
50
+ * at runtime: without a schema a consumer has nothing to validate, and
51
+ * every REQUIRED payload member is optional in practice. Cross-file
52
+ * `$ref`s are already inlined, so it needs no resolver.
53
+ */
54
+ export declare const PAYLOAD_SCHEMA: {
55
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
56
+ readonly $id: "https://trusttasks.org/spec/git-ns/right/revoke/0.2";
57
+ readonly title: "Git Namespaces — Revoke Right — payload";
58
+ readonly description: "Revokes one recorded git right and withdraws it from the Trust Registry.";
59
+ readonly type: "object";
60
+ readonly additionalProperties: false;
61
+ readonly required: readonly ["subject", "right", "resource"];
62
+ readonly properties: {
63
+ readonly subject: {
64
+ readonly $ref: "#/$defs/Did";
65
+ readonly description: "Who holds the right.";
66
+ };
67
+ readonly right: {
68
+ readonly $ref: "#/$defs/Right";
69
+ };
70
+ readonly resource: {
71
+ readonly $ref: "#/$defs/Resource";
72
+ readonly description: "The resource exactly as recorded. Revocation matches the record; it does not revoke a narrower right the subject holds inside this resource.";
73
+ };
74
+ readonly reason: {
75
+ readonly type: "string";
76
+ readonly maxLength: 1024;
77
+ readonly description: "Why, in the revoker's words. Kept in the VTC's audit record.";
78
+ };
79
+ readonly ext: {
80
+ readonly $ref: "#/$defs/Ext";
81
+ };
82
+ };
83
+ readonly $defs: {
84
+ readonly Response: {
85
+ readonly $anchor: "response";
86
+ readonly title: "Git Namespaces — Revoke Right — response payload";
87
+ readonly description: "The revoked record.";
88
+ readonly type: "object";
89
+ readonly additionalProperties: false;
90
+ readonly required: readonly ["revoked"];
91
+ readonly properties: {
92
+ readonly revoked: {
93
+ readonly $ref: "#/$defs/RightRecord";
94
+ readonly description: "The record as it stood when it was revoked.";
95
+ };
96
+ readonly ext: {
97
+ readonly $ref: "#/$defs/Ext";
98
+ };
99
+ };
100
+ };
101
+ readonly Ext: {
102
+ readonly title: "Ext";
103
+ 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.";
104
+ readonly type: "object";
105
+ readonly minProperties: 1;
106
+ readonly additionalProperties: true;
107
+ readonly propertyNames: {
108
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
109
+ };
110
+ };
111
+ readonly RightRecord: {
112
+ readonly title: "RightRecord";
113
+ 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.";
114
+ readonly type: "object";
115
+ readonly additionalProperties: false;
116
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
117
+ readonly properties: {
118
+ readonly subject: {
119
+ readonly $ref: "#/$defs/Did";
120
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
121
+ };
122
+ readonly right: {
123
+ readonly $ref: "#/$defs/Right";
124
+ };
125
+ readonly resource: {
126
+ readonly $ref: "#/$defs/Resource";
127
+ };
128
+ readonly grantedBy: {
129
+ readonly $ref: "#/$defs/Did";
130
+ 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.";
131
+ };
132
+ readonly grantedAt: {
133
+ readonly type: "string";
134
+ readonly format: "date-time";
135
+ };
136
+ readonly expiresAt: {
137
+ readonly type: "string";
138
+ readonly format: "date-time";
139
+ readonly description: "When the right lapses. Absent: no expiry.";
140
+ };
141
+ readonly reason: {
142
+ readonly type: "string";
143
+ readonly maxLength: 1024;
144
+ 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.";
145
+ };
146
+ };
147
+ };
148
+ readonly Did: {
149
+ readonly title: "Did";
150
+ 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.";
151
+ readonly type: "string";
152
+ readonly maxLength: 2048;
153
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
154
+ };
155
+ readonly Resource: {
156
+ readonly title: "Resource";
157
+ 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`.";
158
+ readonly type: "string";
159
+ readonly maxLength: 455;
160
+ 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}$";
161
+ };
162
+ readonly Right: {
163
+ readonly title: "Right";
164
+ 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.";
165
+ readonly type: "string";
166
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
167
+ };
168
+ };
169
+ };
170
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
171
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
172
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
173
+ readonly $ref: "#/$defs/Response";
174
+ readonly $defs: {
175
+ readonly Response: {
176
+ readonly $anchor: "response";
177
+ readonly title: "Git Namespaces — Revoke Right — response payload";
178
+ readonly description: "The revoked record.";
179
+ readonly type: "object";
180
+ readonly additionalProperties: false;
181
+ readonly required: readonly ["revoked"];
182
+ readonly properties: {
183
+ readonly revoked: {
184
+ readonly $ref: "#/$defs/RightRecord";
185
+ readonly description: "The record as it stood when it was revoked.";
186
+ };
187
+ readonly ext: {
188
+ readonly $ref: "#/$defs/Ext";
189
+ };
190
+ };
191
+ };
192
+ readonly Ext: {
193
+ readonly title: "Ext";
194
+ 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.";
195
+ readonly type: "object";
196
+ readonly minProperties: 1;
197
+ readonly additionalProperties: true;
198
+ readonly propertyNames: {
199
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
200
+ };
201
+ };
202
+ readonly RightRecord: {
203
+ readonly title: "RightRecord";
204
+ 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.";
205
+ readonly type: "object";
206
+ readonly additionalProperties: false;
207
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
208
+ readonly properties: {
209
+ readonly subject: {
210
+ readonly $ref: "#/$defs/Did";
211
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
212
+ };
213
+ readonly right: {
214
+ readonly $ref: "#/$defs/Right";
215
+ };
216
+ readonly resource: {
217
+ readonly $ref: "#/$defs/Resource";
218
+ };
219
+ readonly grantedBy: {
220
+ readonly $ref: "#/$defs/Did";
221
+ 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.";
222
+ };
223
+ readonly grantedAt: {
224
+ readonly type: "string";
225
+ readonly format: "date-time";
226
+ };
227
+ readonly expiresAt: {
228
+ readonly type: "string";
229
+ readonly format: "date-time";
230
+ readonly description: "When the right lapses. Absent: no expiry.";
231
+ };
232
+ readonly reason: {
233
+ readonly type: "string";
234
+ readonly maxLength: 1024;
235
+ 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.";
236
+ };
237
+ };
238
+ };
239
+ readonly Did: {
240
+ readonly title: "Did";
241
+ 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.";
242
+ readonly type: "string";
243
+ readonly maxLength: 2048;
244
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
245
+ };
246
+ readonly Resource: {
247
+ readonly title: "Resource";
248
+ 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`.";
249
+ readonly type: "string";
250
+ readonly maxLength: 455;
251
+ 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}$";
252
+ };
253
+ readonly Right: {
254
+ readonly title: "Right";
255
+ 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.";
256
+ readonly type: "string";
257
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
258
+ };
259
+ };
260
+ };
261
+ /**
262
+ * SPEC.md §7.2 policy for the request variant, from this specification's
263
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
264
+ * per-specification and cannot be derived from the document alone, and
265
+ * item 2 needs the schema this carries.
266
+ */
267
+ export declare const SPEC: {
268
+ readonly typeUri: "https://trusttasks.org/spec/git-ns/right/revoke/0.2";
269
+ readonly isBearer: false;
270
+ readonly isProofRequired: true;
271
+ readonly isRecipientRequired: true;
272
+ readonly isIssuedAtRequired: true;
273
+ readonly payloadSchema: {
274
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
275
+ readonly $id: "https://trusttasks.org/spec/git-ns/right/revoke/0.2";
276
+ readonly title: "Git Namespaces — Revoke Right — payload";
277
+ readonly description: "Revokes one recorded git right and withdraws it from the Trust Registry.";
278
+ readonly type: "object";
279
+ readonly additionalProperties: false;
280
+ readonly required: readonly ["subject", "right", "resource"];
281
+ readonly properties: {
282
+ readonly subject: {
283
+ readonly $ref: "#/$defs/Did";
284
+ readonly description: "Who holds the right.";
285
+ };
286
+ readonly right: {
287
+ readonly $ref: "#/$defs/Right";
288
+ };
289
+ readonly resource: {
290
+ readonly $ref: "#/$defs/Resource";
291
+ readonly description: "The resource exactly as recorded. Revocation matches the record; it does not revoke a narrower right the subject holds inside this resource.";
292
+ };
293
+ readonly reason: {
294
+ readonly type: "string";
295
+ readonly maxLength: 1024;
296
+ readonly description: "Why, in the revoker's words. Kept in the VTC's audit record.";
297
+ };
298
+ readonly ext: {
299
+ readonly $ref: "#/$defs/Ext";
300
+ };
301
+ };
302
+ readonly $defs: {
303
+ readonly Response: {
304
+ readonly $anchor: "response";
305
+ readonly title: "Git Namespaces — Revoke Right — response payload";
306
+ readonly description: "The revoked record.";
307
+ readonly type: "object";
308
+ readonly additionalProperties: false;
309
+ readonly required: readonly ["revoked"];
310
+ readonly properties: {
311
+ readonly revoked: {
312
+ readonly $ref: "#/$defs/RightRecord";
313
+ readonly description: "The record as it stood when it was revoked.";
314
+ };
315
+ readonly ext: {
316
+ readonly $ref: "#/$defs/Ext";
317
+ };
318
+ };
319
+ };
320
+ readonly Ext: {
321
+ readonly title: "Ext";
322
+ 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.";
323
+ readonly type: "object";
324
+ readonly minProperties: 1;
325
+ readonly additionalProperties: true;
326
+ readonly propertyNames: {
327
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
328
+ };
329
+ };
330
+ readonly RightRecord: {
331
+ readonly title: "RightRecord";
332
+ 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.";
333
+ readonly type: "object";
334
+ readonly additionalProperties: false;
335
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
336
+ readonly properties: {
337
+ readonly subject: {
338
+ readonly $ref: "#/$defs/Did";
339
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
340
+ };
341
+ readonly right: {
342
+ readonly $ref: "#/$defs/Right";
343
+ };
344
+ readonly resource: {
345
+ readonly $ref: "#/$defs/Resource";
346
+ };
347
+ readonly grantedBy: {
348
+ readonly $ref: "#/$defs/Did";
349
+ 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.";
350
+ };
351
+ readonly grantedAt: {
352
+ readonly type: "string";
353
+ readonly format: "date-time";
354
+ };
355
+ readonly expiresAt: {
356
+ readonly type: "string";
357
+ readonly format: "date-time";
358
+ readonly description: "When the right lapses. Absent: no expiry.";
359
+ };
360
+ readonly reason: {
361
+ readonly type: "string";
362
+ readonly maxLength: 1024;
363
+ 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.";
364
+ };
365
+ };
366
+ };
367
+ readonly Did: {
368
+ readonly title: "Did";
369
+ 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.";
370
+ readonly type: "string";
371
+ readonly maxLength: 2048;
372
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
373
+ };
374
+ readonly Resource: {
375
+ readonly title: "Resource";
376
+ 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`.";
377
+ readonly type: "string";
378
+ readonly maxLength: 455;
379
+ 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}$";
380
+ };
381
+ readonly Right: {
382
+ readonly title: "Right";
383
+ 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.";
384
+ readonly type: "string";
385
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
386
+ };
387
+ };
388
+ };
389
+ };
390
+ /**
391
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
392
+ * tracks the *issuer* party's requirement because a response swaps the
393
+ * parties (§7.3 item 5).
394
+ */
395
+ export declare const RESPONSE_SPEC: {
396
+ readonly typeUri: "https://trusttasks.org/spec/git-ns/right/revoke/0.2#response";
397
+ readonly isBearer: false;
398
+ readonly isProofRequired: true;
399
+ readonly isRecipientRequired: true;
400
+ readonly isIssuedAtRequired: true;
401
+ readonly payloadSchema: {
402
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
403
+ readonly $ref: "#/$defs/Response";
404
+ readonly $defs: {
405
+ readonly Response: {
406
+ readonly $anchor: "response";
407
+ readonly title: "Git Namespaces — Revoke Right — response payload";
408
+ readonly description: "The revoked record.";
409
+ readonly type: "object";
410
+ readonly additionalProperties: false;
411
+ readonly required: readonly ["revoked"];
412
+ readonly properties: {
413
+ readonly revoked: {
414
+ readonly $ref: "#/$defs/RightRecord";
415
+ readonly description: "The record as it stood when it was revoked.";
416
+ };
417
+ readonly ext: {
418
+ readonly $ref: "#/$defs/Ext";
419
+ };
420
+ };
421
+ };
422
+ readonly Ext: {
423
+ readonly title: "Ext";
424
+ 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.";
425
+ readonly type: "object";
426
+ readonly minProperties: 1;
427
+ readonly additionalProperties: true;
428
+ readonly propertyNames: {
429
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
430
+ };
431
+ };
432
+ readonly RightRecord: {
433
+ readonly title: "RightRecord";
434
+ 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.";
435
+ readonly type: "object";
436
+ readonly additionalProperties: false;
437
+ readonly required: readonly ["subject", "right", "resource", "grantedBy", "grantedAt"];
438
+ readonly properties: {
439
+ readonly subject: {
440
+ readonly $ref: "#/$defs/Did";
441
+ readonly description: "Who holds the right. For `git.commit.sign` this is the DID whose commit signatures the CI check accepts.";
442
+ };
443
+ readonly right: {
444
+ readonly $ref: "#/$defs/Right";
445
+ };
446
+ readonly resource: {
447
+ readonly $ref: "#/$defs/Resource";
448
+ };
449
+ readonly grantedBy: {
450
+ readonly $ref: "#/$defs/Did";
451
+ 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.";
452
+ };
453
+ readonly grantedAt: {
454
+ readonly type: "string";
455
+ readonly format: "date-time";
456
+ };
457
+ readonly expiresAt: {
458
+ readonly type: "string";
459
+ readonly format: "date-time";
460
+ readonly description: "When the right lapses. Absent: no expiry.";
461
+ };
462
+ readonly reason: {
463
+ readonly type: "string";
464
+ readonly maxLength: 1024;
465
+ 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.";
466
+ };
467
+ };
468
+ };
469
+ readonly Did: {
470
+ readonly title: "Did";
471
+ 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.";
472
+ readonly type: "string";
473
+ readonly maxLength: 2048;
474
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
475
+ };
476
+ readonly Resource: {
477
+ readonly title: "Resource";
478
+ 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`.";
479
+ readonly type: "string";
480
+ readonly maxLength: 455;
481
+ 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}$";
482
+ };
483
+ readonly Right: {
484
+ readonly title: "Right";
485
+ 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.";
486
+ readonly type: "string";
487
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
488
+ };
489
+ };
490
+ };
491
+ };
492
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/git-ns/right/revoke/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,IAAI,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,qBAAqB,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAG1I;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAEvD,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,qDAA8D,CAAC;AAEvF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,+BAA+B,CAAC;AAEtD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,8DAAuE,CAAC;AAEzG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,uCAAuC,CAAC;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqIjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuG1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}