@openvtc/trust-tasks 0.20.5 → 0.20.7

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 (112) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/_shared/components.d.ts +55 -6
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/git-ns/_shared/0.1/git-ns.d.ts +1 -1
  5. package/dist/git-ns/_shared/0.1/git-ns.d.ts.map +1 -1
  6. package/dist/git-ns/_shared/0.2/git-ns.d.ts +1 -1
  7. package/dist/git-ns/_shared/0.2/git-ns.d.ts.map +1 -1
  8. package/dist/git-ns/_shared/0.3/git-ns.d.ts +16 -0
  9. package/dist/git-ns/_shared/0.3/git-ns.d.ts.map +1 -0
  10. package/dist/git-ns/_shared/0.3/git-ns.js +6 -0
  11. package/dist/git-ns/_shared/0.3/git-ns.js.map +1 -0
  12. package/dist/git-ns/bridge/event/0.2/payload.d.ts +1348 -0
  13. package/dist/git-ns/bridge/event/0.2/payload.d.ts.map +1 -0
  14. package/dist/git-ns/bridge/event/0.2/payload.js +785 -0
  15. package/dist/git-ns/bridge/event/0.2/payload.js.map +1 -0
  16. package/dist/git-ns/bridge/job/0.1/payload.d.ts +1 -1
  17. package/dist/git-ns/bridge/job/0.1/payload.d.ts.map +1 -1
  18. package/dist/git-ns/bridge/job/0.2/payload.d.ts +1 -1
  19. package/dist/git-ns/bridge/job/0.2/payload.d.ts.map +1 -1
  20. package/dist/git-ns/bridge/job/0.3/payload.d.ts +1068 -0
  21. package/dist/git-ns/bridge/job/0.3/payload.d.ts.map +1 -0
  22. package/dist/git-ns/bridge/job/0.3/payload.js +573 -0
  23. package/dist/git-ns/bridge/job/0.3/payload.js.map +1 -0
  24. package/dist/git-ns/drift/resolve/0.1/payload.d.ts +1 -1
  25. package/dist/git-ns/drift/resolve/0.1/payload.d.ts.map +1 -1
  26. package/dist/git-ns/drift/resolve/0.2/payload.d.ts +1060 -0
  27. package/dist/git-ns/drift/resolve/0.2/payload.d.ts.map +1 -0
  28. package/dist/git-ns/drift/resolve/0.2/payload.js +630 -0
  29. package/dist/git-ns/drift/resolve/0.2/payload.js.map +1 -0
  30. package/dist/git-ns/namespace/reseat/0.1/payload.d.ts +1 -1
  31. package/dist/git-ns/namespace/reseat/0.1/payload.d.ts.map +1 -1
  32. package/dist/git-ns/namespace/reseat/0.2/payload.d.ts +515 -0
  33. package/dist/git-ns/namespace/reseat/0.2/payload.d.ts.map +1 -0
  34. package/dist/git-ns/namespace/reseat/0.2/payload.js +296 -0
  35. package/dist/git-ns/namespace/reseat/0.2/payload.js.map +1 -0
  36. package/dist/git-ns/repo/adopt/0.1/payload.d.ts +1 -1
  37. package/dist/git-ns/repo/adopt/0.1/payload.d.ts.map +1 -1
  38. package/dist/git-ns/repo/adopt/0.2/payload.d.ts +962 -0
  39. package/dist/git-ns/repo/adopt/0.2/payload.d.ts.map +1 -0
  40. package/dist/git-ns/repo/adopt/0.2/payload.js +583 -0
  41. package/dist/git-ns/repo/adopt/0.2/payload.js.map +1 -0
  42. package/dist/git-ns/repo/archive/0.1/payload.d.ts +1 -1
  43. package/dist/git-ns/repo/archive/0.1/payload.d.ts.map +1 -1
  44. package/dist/git-ns/repo/archive/0.2/payload.d.ts +959 -0
  45. package/dist/git-ns/repo/archive/0.2/payload.d.ts.map +1 -0
  46. package/dist/git-ns/repo/archive/0.2/payload.js +584 -0
  47. package/dist/git-ns/repo/archive/0.2/payload.js.map +1 -0
  48. package/dist/git-ns/repo/create/0.1/payload.d.ts +1 -1
  49. package/dist/git-ns/repo/create/0.1/payload.d.ts.map +1 -1
  50. package/dist/git-ns/repo/create/0.2/payload.d.ts +1074 -0
  51. package/dist/git-ns/repo/create/0.2/payload.d.ts.map +1 -0
  52. package/dist/git-ns/repo/create/0.2/payload.js +636 -0
  53. package/dist/git-ns/repo/create/0.2/payload.js.map +1 -0
  54. package/dist/git-ns/repo/transfer/0.1/payload.d.ts +1 -1
  55. package/dist/git-ns/repo/transfer/0.1/payload.d.ts.map +1 -1
  56. package/dist/git-ns/repo/transfer/0.2/payload.d.ts +947 -0
  57. package/dist/git-ns/repo/transfer/0.2/payload.d.ts.map +1 -0
  58. package/dist/git-ns/repo/transfer/0.2/payload.js +577 -0
  59. package/dist/git-ns/repo/transfer/0.2/payload.js.map +1 -0
  60. package/dist/git-ns/right/grant/0.1/payload.d.ts +1 -1
  61. package/dist/git-ns/right/grant/0.1/payload.d.ts.map +1 -1
  62. package/dist/git-ns/right/grant/0.2/payload.d.ts +506 -0
  63. package/dist/git-ns/right/grant/0.2/payload.d.ts.map +1 -0
  64. package/dist/git-ns/right/grant/0.2/payload.js +289 -0
  65. package/dist/git-ns/right/grant/0.2/payload.js.map +1 -0
  66. package/dist/git-ns/right/revoke/0.1/payload.d.ts +1 -1
  67. package/dist/git-ns/right/revoke/0.1/payload.d.ts.map +1 -1
  68. package/dist/git-ns/right/revoke/0.2/payload.d.ts +492 -0
  69. package/dist/git-ns/right/revoke/0.2/payload.d.ts.map +1 -0
  70. package/dist/git-ns/right/revoke/0.2/payload.js +284 -0
  71. package/dist/git-ns/right/revoke/0.2/payload.js.map +1 -0
  72. package/dist/git-ns/view/0.1/payload.d.ts +1 -1
  73. package/dist/git-ns/view/0.1/payload.d.ts.map +1 -1
  74. package/dist/git-ns/view/0.2/payload.d.ts +1 -1
  75. package/dist/git-ns/view/0.2/payload.d.ts.map +1 -1
  76. package/dist/git-ns/view/0.3/payload.d.ts +1524 -0
  77. package/dist/git-ns/view/0.3/payload.d.ts.map +1 -0
  78. package/dist/git-ns/view/0.3/payload.js +918 -0
  79. package/dist/git-ns/view/0.3/payload.js.map +1 -0
  80. package/dist/index.d.ts +12 -0
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +12 -0
  83. package/dist/index.js.map +1 -1
  84. package/package.json +1 -1
  85. package/src/_shared/components.ts +55 -6
  86. package/src/git-ns/_shared/0.1/git-ns.ts +1 -1
  87. package/src/git-ns/_shared/0.2/git-ns.ts +1 -1
  88. package/src/git-ns/_shared/0.3/git-ns.ts +17 -0
  89. package/src/git-ns/bridge/event/0.2/payload.ts +902 -0
  90. package/src/git-ns/bridge/job/0.1/payload.ts +1 -1
  91. package/src/git-ns/bridge/job/0.2/payload.ts +1 -1
  92. package/src/git-ns/bridge/job/0.3/payload.ts +691 -0
  93. package/src/git-ns/drift/resolve/0.1/payload.ts +1 -1
  94. package/src/git-ns/drift/resolve/0.2/payload.ts +699 -0
  95. package/src/git-ns/namespace/reseat/0.1/payload.ts +1 -1
  96. package/src/git-ns/namespace/reseat/0.2/payload.ts +342 -0
  97. package/src/git-ns/repo/adopt/0.1/payload.ts +1 -1
  98. package/src/git-ns/repo/adopt/0.2/payload.ts +628 -0
  99. package/src/git-ns/repo/archive/0.1/payload.ts +1 -1
  100. package/src/git-ns/repo/archive/0.2/payload.ts +626 -0
  101. package/src/git-ns/repo/create/0.1/payload.ts +1 -1
  102. package/src/git-ns/repo/create/0.2/payload.ts +689 -0
  103. package/src/git-ns/repo/transfer/0.1/payload.ts +1 -1
  104. package/src/git-ns/repo/transfer/0.2/payload.ts +619 -0
  105. package/src/git-ns/right/grant/0.1/payload.ts +1 -1
  106. package/src/git-ns/right/grant/0.2/payload.ts +340 -0
  107. package/src/git-ns/right/revoke/0.1/payload.ts +1 -1
  108. package/src/git-ns/right/revoke/0.2/payload.ts +331 -0
  109. package/src/git-ns/view/0.1/payload.ts +1 -1
  110. package/src/git-ns/view/0.2/payload.ts +1 -1
  111. package/src/git-ns/view/0.3/payload.ts +981 -0
  112. package/src/index.ts +12 -0
@@ -0,0 +1,947 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/repo/transfer/0.2/payload.schema.json
4
+ */
5
+ import type { Bootstrap, Did_GitNsV0_3 as Did, DriftItem, Ext, ForgeAccount, ForgeHost, ForgeId, RepoResource, RepoSummary_GitNsV0_3 as RepoSummary, RepoVisibility, Sync } from "../../../../_shared/components.js";
6
+ /**
7
+ * An owner hands their ownership of a repository to someone else: `to` is recorded as an owner and the caller's own `git.repo.own` record is revoked. Ownership moves between people; the repository stays where it is on the forge.
8
+ */
9
+ export interface GitNamespacesTransferRepositoryOwnershipPayload {
10
+ /**
11
+ * The repository.
12
+ */
13
+ resource: RepoResource;
14
+ /**
15
+ * Who receives ownership.
16
+ */
17
+ to: Did;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * The repository after the transfer.
22
+ */
23
+ export interface GitNamespacesTransferRepositoryOwnershipResponsePayload {
24
+ /**
25
+ * The repository after the transfer.
26
+ */
27
+ repo: RepoSummary;
28
+ ext?: Ext;
29
+ }
30
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
31
+ export type { Bootstrap, Did, DriftItem, Ext, ForgeAccount, ForgeHost, ForgeId, RepoResource, RepoSummary, RepoVisibility, Sync };
32
+ /** Trust Task type URI. */
33
+ export declare const TYPE_URI: "https://trusttasks.org/spec/git-ns/repo/transfer/0.2";
34
+ /** Stable alias for this specification's request payload shape. */
35
+ export type Payload = GitNamespacesTransferRepositoryOwnershipPayload;
36
+ /** Trust Task response type URI (request type URI + "#response"). */
37
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/git-ns/repo/transfer/0.2#response";
38
+ /** Stable alias for this specification's success-response payload shape. */
39
+ export type Response = GitNamespacesTransferRepositoryOwnershipResponsePayload;
40
+ /**
41
+ * This specification's payload schema, as a value.
42
+ *
43
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
44
+ * rather than only as a `.json` file because TypeScript types are erased
45
+ * at runtime: without a schema a consumer has nothing to validate, and
46
+ * every REQUIRED payload member is optional in practice. Cross-file
47
+ * `$ref`s are already inlined, so it needs no resolver.
48
+ */
49
+ export declare const PAYLOAD_SCHEMA: {
50
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
51
+ readonly $id: "https://trusttasks.org/spec/git-ns/repo/transfer/0.2";
52
+ readonly title: "Git Namespaces — Transfer Repository Ownership — payload";
53
+ readonly description: "An owner hands their ownership of a repository to someone else: `to` is recorded as an owner and the caller's own `git.repo.own` record is revoked. Ownership moves between people; the repository stays where it is on the forge.";
54
+ readonly type: "object";
55
+ readonly additionalProperties: false;
56
+ readonly required: readonly ["resource", "to"];
57
+ readonly properties: {
58
+ readonly resource: {
59
+ readonly $ref: "#/$defs/RepoResource";
60
+ readonly description: "The repository.";
61
+ };
62
+ readonly to: {
63
+ readonly $ref: "#/$defs/Did";
64
+ readonly description: "Who receives ownership.";
65
+ };
66
+ readonly ext: {
67
+ readonly $ref: "#/$defs/Ext";
68
+ };
69
+ };
70
+ readonly $defs: {
71
+ readonly Response: {
72
+ readonly $anchor: "response";
73
+ readonly title: "Git Namespaces — Transfer Repository Ownership — response payload";
74
+ readonly description: "The repository after the transfer.";
75
+ readonly type: "object";
76
+ readonly additionalProperties: false;
77
+ readonly required: readonly ["repo"];
78
+ readonly properties: {
79
+ readonly repo: {
80
+ readonly $ref: "#/$defs/RepoSummary";
81
+ readonly description: "The repository after the transfer.";
82
+ };
83
+ readonly ext: {
84
+ readonly $ref: "#/$defs/Ext";
85
+ };
86
+ };
87
+ };
88
+ readonly Ext: {
89
+ readonly title: "Ext";
90
+ 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.";
91
+ readonly type: "object";
92
+ readonly minProperties: 1;
93
+ readonly additionalProperties: true;
94
+ readonly propertyNames: {
95
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
96
+ };
97
+ };
98
+ readonly RepoSummary: {
99
+ readonly title: "RepoSummary";
100
+ readonly description: "One repository as the VTC records it.";
101
+ readonly type: "object";
102
+ readonly additionalProperties: false;
103
+ readonly required: readonly ["resource", "visibility", "state", "owners", "bootstrap", "sync"];
104
+ readonly properties: {
105
+ readonly resource: {
106
+ readonly $ref: "#/$defs/RepoResource";
107
+ };
108
+ readonly forgeId: {
109
+ readonly $ref: "#/$defs/ForgeId";
110
+ readonly description: "The forge's repository id. Absent until the forge has confirmed the repository exists (a `pendingCreate` repository, or one adopted in bridge mode before the first inspection).";
111
+ };
112
+ readonly visibility: {
113
+ readonly $ref: "#/$defs/RepoVisibility";
114
+ };
115
+ readonly state: {
116
+ readonly type: "string";
117
+ readonly enum: readonly ["pendingCreate", "active", "archived", "detached", "orphaned", "unmanaged"];
118
+ readonly description: "`pendingCreate` — the name is reserved and the repository is not yet confirmed on the forge. `active` — managed. `archived` — archived through git-ns/repo/archive; commit rights on it are revoked. `detached` — no longer governed: its namespace was unbound, or it moved outside the namespace. `orphaned` — its last owner left the community and ownership passed to the namespace admins, who have not yet named a new owner. `unmanaged` — it exists on the forge inside a bound namespace but was never created or adopted through the VTC.";
119
+ };
120
+ readonly owners: {
121
+ readonly type: "array";
122
+ readonly uniqueItems: true;
123
+ readonly items: {
124
+ readonly $ref: "#/$defs/Did";
125
+ };
126
+ readonly description: "The DIDs holding `git.repo.own` on this repository by an explicit grant. Empty only for an `unmanaged` repository, and for an `orphaned` one whose ownership rests with the namespace admins by implication.";
127
+ };
128
+ readonly bootstrap: {
129
+ readonly $ref: "#/$defs/Bootstrap";
130
+ };
131
+ readonly sync: {
132
+ readonly $ref: "#/$defs/Sync";
133
+ };
134
+ };
135
+ };
136
+ readonly Sync: {
137
+ readonly title: "Sync";
138
+ readonly description: "How the forge compares with the VTC's projection for one repository.";
139
+ readonly type: "object";
140
+ readonly additionalProperties: false;
141
+ readonly required: readonly ["state", "drift"];
142
+ readonly properties: {
143
+ readonly state: {
144
+ readonly type: "string";
145
+ readonly enum: readonly ["inSync", "drift", "pending", "unchecked"];
146
+ readonly description: "`inSync` — the last comparison found no drift. `drift` — it found some, listed in `drift`. `pending` — a change has been sent to the forge and not yet confirmed. `unchecked` — nothing compares this repository (a manual-mode namespace).";
147
+ };
148
+ readonly checkedAt: {
149
+ readonly type: "string";
150
+ readonly format: "date-time";
151
+ readonly description: "When the forge was last compared. Absent if never.";
152
+ };
153
+ readonly drift: {
154
+ readonly type: "array";
155
+ readonly items: {
156
+ readonly $ref: "#/$defs/DriftItem";
157
+ };
158
+ readonly description: "Outstanding drift. Empty unless `state` is `drift`.";
159
+ };
160
+ };
161
+ };
162
+ readonly DriftItem: {
163
+ readonly title: "DriftItem";
164
+ readonly description: "One difference between the forge's observed state and the VTC's projection of a repository.";
165
+ readonly type: "object";
166
+ readonly additionalProperties: false;
167
+ readonly required: readonly ["type", "resource"];
168
+ readonly properties: {
169
+ readonly type: {
170
+ readonly type: "string";
171
+ readonly enum: readonly ["roleAdded", "roleRemoved", "roleChanged", "requiredCheckMissing", "protectionWeakened", "bootstrapMissing"];
172
+ readonly description: "`roleAdded` — someone holds a forge role the projection does not give them. `roleRemoved` — a projected role is missing. `roleChanged` — a projected role is present at another level. `requiredCheckMissing` — the verify-trust check is no longer required. `protectionWeakened` — branch protection or a ruleset is weaker than the projection in another way (force-push allowed, bypass actors added). `bootstrapMissing` — a bootstrap file or variable is gone.";
173
+ };
174
+ readonly resource: {
175
+ readonly $ref: "#/$defs/RepoResource";
176
+ };
177
+ readonly account: {
178
+ readonly $ref: "#/$defs/ForgeAccount";
179
+ readonly description: "Whose role differs, for the three role types.";
180
+ };
181
+ readonly observed: {
182
+ readonly type: "string";
183
+ readonly maxLength: 256;
184
+ readonly description: "What the forge shows, in the forge's own vocabulary (a role name such as `maintain`, a setting name). Absent when nothing is there.";
185
+ };
186
+ readonly expected: {
187
+ readonly type: "string";
188
+ readonly maxLength: 256;
189
+ readonly description: "What the projection calls for, in the forge's own vocabulary. Absent when the projection calls for nothing.";
190
+ };
191
+ };
192
+ };
193
+ readonly ForgeAccount: {
194
+ readonly title: "ForgeAccount";
195
+ readonly description: "A person's account on one forge. `id` is authoritative; `login` is for display only, because logins can be renamed and re-registered.";
196
+ readonly type: "object";
197
+ readonly additionalProperties: false;
198
+ readonly required: readonly ["forge", "id", "login"];
199
+ readonly properties: {
200
+ readonly forge: {
201
+ readonly $ref: "#/$defs/ForgeHost";
202
+ };
203
+ readonly id: {
204
+ readonly $ref: "#/$defs/ForgeId";
205
+ };
206
+ readonly login: {
207
+ readonly type: "string";
208
+ readonly minLength: 1;
209
+ readonly maxLength: 100;
210
+ readonly description: "The account's current login, as the forge reported it when last seen. Display only.";
211
+ };
212
+ };
213
+ };
214
+ readonly ForgeId: {
215
+ readonly title: "ForgeId";
216
+ readonly description: "An identifier the forge itself assigns — a repository id, a user or organisation id — carried as a string so a forge whose ids are not numbers needs no new version. GitHub and Forgejo ids are decimal integers written as strings (`\"812736451\"`). Unlike a name, it survives renames and transfers, which is why rights and bindings are keyed by it.";
217
+ readonly type: "string";
218
+ readonly minLength: 1;
219
+ readonly maxLength: 64;
220
+ };
221
+ readonly ForgeHost: {
222
+ readonly title: "ForgeHost";
223
+ readonly description: "The lowercased DNS host of a forge: `github.com`, a GitHub Enterprise Server host, `codeberg.org`, or a self-hosted Forgejo instance such as `git.example.org`. No scheme, no port, no path. The host is a segment of every resource, so a right never crosses forges.";
224
+ readonly type: "string";
225
+ readonly minLength: 3;
226
+ readonly maxLength: 253;
227
+ readonly pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$";
228
+ };
229
+ readonly RepoResource: {
230
+ readonly title: "RepoResource";
231
+ readonly description: "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.";
232
+ readonly type: "string";
233
+ readonly maxLength: 455;
234
+ 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}/[a-z0-9_-][a-z0-9._-]{0,99}$";
235
+ };
236
+ readonly Bootstrap: {
237
+ readonly title: "Bootstrap";
238
+ readonly description: "Whether each step that turns commit trust on for a repository is in place, as last reported. A step that this forge's plan does not need reads `true`.";
239
+ readonly type: "object";
240
+ readonly additionalProperties: false;
241
+ readonly required: readonly ["workflow", "keyring", "variables", "requiredCheck"];
242
+ readonly properties: {
243
+ readonly workflow: {
244
+ readonly type: "boolean";
245
+ readonly description: "The verify-trust check runs on the repository's pull requests — from a workflow committed to it, or, where the forge supports it, required on it from the namespace's own bridge-managed workflow repository at a pinned commit.";
246
+ };
247
+ readonly keyring: {
248
+ readonly type: "boolean";
249
+ readonly description: "The exempt platform keyring for forge-signed merge commits is committed, or the forge's plan does not need one.";
250
+ };
251
+ readonly variables: {
252
+ readonly type: "boolean";
253
+ readonly description: "The repository names the Trust Registry and this VTC as its trust anchors.";
254
+ };
255
+ readonly requiredCheck: {
256
+ readonly type: "boolean";
257
+ readonly description: "The forge refuses to merge into the default branch unless the verify-trust check passes, with no bypass, and a pull request cannot change what that check runs: an organisation-required workflow, code-owner review of workflow files, or protected workflow paths, as the forge allows.";
258
+ };
259
+ };
260
+ };
261
+ readonly Did: {
262
+ readonly title: "Did";
263
+ 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.";
264
+ readonly type: "string";
265
+ readonly maxLength: 2048;
266
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
267
+ };
268
+ readonly RepoVisibility: {
269
+ readonly title: "RepoVisibility";
270
+ readonly type: "string";
271
+ readonly enum: readonly ["public", "private"];
272
+ readonly description: "Repository visibility on the forge.";
273
+ };
274
+ };
275
+ };
276
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
277
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
278
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
279
+ readonly $ref: "#/$defs/Response";
280
+ readonly $defs: {
281
+ readonly Response: {
282
+ readonly $anchor: "response";
283
+ readonly title: "Git Namespaces — Transfer Repository Ownership — response payload";
284
+ readonly description: "The repository after the transfer.";
285
+ readonly type: "object";
286
+ readonly additionalProperties: false;
287
+ readonly required: readonly ["repo"];
288
+ readonly properties: {
289
+ readonly repo: {
290
+ readonly $ref: "#/$defs/RepoSummary";
291
+ readonly description: "The repository after the transfer.";
292
+ };
293
+ readonly ext: {
294
+ readonly $ref: "#/$defs/Ext";
295
+ };
296
+ };
297
+ };
298
+ readonly Ext: {
299
+ readonly title: "Ext";
300
+ 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.";
301
+ readonly type: "object";
302
+ readonly minProperties: 1;
303
+ readonly additionalProperties: true;
304
+ readonly propertyNames: {
305
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
306
+ };
307
+ };
308
+ readonly RepoSummary: {
309
+ readonly title: "RepoSummary";
310
+ readonly description: "One repository as the VTC records it.";
311
+ readonly type: "object";
312
+ readonly additionalProperties: false;
313
+ readonly required: readonly ["resource", "visibility", "state", "owners", "bootstrap", "sync"];
314
+ readonly properties: {
315
+ readonly resource: {
316
+ readonly $ref: "#/$defs/RepoResource";
317
+ };
318
+ readonly forgeId: {
319
+ readonly $ref: "#/$defs/ForgeId";
320
+ readonly description: "The forge's repository id. Absent until the forge has confirmed the repository exists (a `pendingCreate` repository, or one adopted in bridge mode before the first inspection).";
321
+ };
322
+ readonly visibility: {
323
+ readonly $ref: "#/$defs/RepoVisibility";
324
+ };
325
+ readonly state: {
326
+ readonly type: "string";
327
+ readonly enum: readonly ["pendingCreate", "active", "archived", "detached", "orphaned", "unmanaged"];
328
+ readonly description: "`pendingCreate` — the name is reserved and the repository is not yet confirmed on the forge. `active` — managed. `archived` — archived through git-ns/repo/archive; commit rights on it are revoked. `detached` — no longer governed: its namespace was unbound, or it moved outside the namespace. `orphaned` — its last owner left the community and ownership passed to the namespace admins, who have not yet named a new owner. `unmanaged` — it exists on the forge inside a bound namespace but was never created or adopted through the VTC.";
329
+ };
330
+ readonly owners: {
331
+ readonly type: "array";
332
+ readonly uniqueItems: true;
333
+ readonly items: {
334
+ readonly $ref: "#/$defs/Did";
335
+ };
336
+ readonly description: "The DIDs holding `git.repo.own` on this repository by an explicit grant. Empty only for an `unmanaged` repository, and for an `orphaned` one whose ownership rests with the namespace admins by implication.";
337
+ };
338
+ readonly bootstrap: {
339
+ readonly $ref: "#/$defs/Bootstrap";
340
+ };
341
+ readonly sync: {
342
+ readonly $ref: "#/$defs/Sync";
343
+ };
344
+ };
345
+ };
346
+ readonly Sync: {
347
+ readonly title: "Sync";
348
+ readonly description: "How the forge compares with the VTC's projection for one repository.";
349
+ readonly type: "object";
350
+ readonly additionalProperties: false;
351
+ readonly required: readonly ["state", "drift"];
352
+ readonly properties: {
353
+ readonly state: {
354
+ readonly type: "string";
355
+ readonly enum: readonly ["inSync", "drift", "pending", "unchecked"];
356
+ readonly description: "`inSync` — the last comparison found no drift. `drift` — it found some, listed in `drift`. `pending` — a change has been sent to the forge and not yet confirmed. `unchecked` — nothing compares this repository (a manual-mode namespace).";
357
+ };
358
+ readonly checkedAt: {
359
+ readonly type: "string";
360
+ readonly format: "date-time";
361
+ readonly description: "When the forge was last compared. Absent if never.";
362
+ };
363
+ readonly drift: {
364
+ readonly type: "array";
365
+ readonly items: {
366
+ readonly $ref: "#/$defs/DriftItem";
367
+ };
368
+ readonly description: "Outstanding drift. Empty unless `state` is `drift`.";
369
+ };
370
+ };
371
+ };
372
+ readonly DriftItem: {
373
+ readonly title: "DriftItem";
374
+ readonly description: "One difference between the forge's observed state and the VTC's projection of a repository.";
375
+ readonly type: "object";
376
+ readonly additionalProperties: false;
377
+ readonly required: readonly ["type", "resource"];
378
+ readonly properties: {
379
+ readonly type: {
380
+ readonly type: "string";
381
+ readonly enum: readonly ["roleAdded", "roleRemoved", "roleChanged", "requiredCheckMissing", "protectionWeakened", "bootstrapMissing"];
382
+ readonly description: "`roleAdded` — someone holds a forge role the projection does not give them. `roleRemoved` — a projected role is missing. `roleChanged` — a projected role is present at another level. `requiredCheckMissing` — the verify-trust check is no longer required. `protectionWeakened` — branch protection or a ruleset is weaker than the projection in another way (force-push allowed, bypass actors added). `bootstrapMissing` — a bootstrap file or variable is gone.";
383
+ };
384
+ readonly resource: {
385
+ readonly $ref: "#/$defs/RepoResource";
386
+ };
387
+ readonly account: {
388
+ readonly $ref: "#/$defs/ForgeAccount";
389
+ readonly description: "Whose role differs, for the three role types.";
390
+ };
391
+ readonly observed: {
392
+ readonly type: "string";
393
+ readonly maxLength: 256;
394
+ readonly description: "What the forge shows, in the forge's own vocabulary (a role name such as `maintain`, a setting name). Absent when nothing is there.";
395
+ };
396
+ readonly expected: {
397
+ readonly type: "string";
398
+ readonly maxLength: 256;
399
+ readonly description: "What the projection calls for, in the forge's own vocabulary. Absent when the projection calls for nothing.";
400
+ };
401
+ };
402
+ };
403
+ readonly ForgeAccount: {
404
+ readonly title: "ForgeAccount";
405
+ readonly description: "A person's account on one forge. `id` is authoritative; `login` is for display only, because logins can be renamed and re-registered.";
406
+ readonly type: "object";
407
+ readonly additionalProperties: false;
408
+ readonly required: readonly ["forge", "id", "login"];
409
+ readonly properties: {
410
+ readonly forge: {
411
+ readonly $ref: "#/$defs/ForgeHost";
412
+ };
413
+ readonly id: {
414
+ readonly $ref: "#/$defs/ForgeId";
415
+ };
416
+ readonly login: {
417
+ readonly type: "string";
418
+ readonly minLength: 1;
419
+ readonly maxLength: 100;
420
+ readonly description: "The account's current login, as the forge reported it when last seen. Display only.";
421
+ };
422
+ };
423
+ };
424
+ readonly ForgeId: {
425
+ readonly title: "ForgeId";
426
+ readonly description: "An identifier the forge itself assigns — a repository id, a user or organisation id — carried as a string so a forge whose ids are not numbers needs no new version. GitHub and Forgejo ids are decimal integers written as strings (`\"812736451\"`). Unlike a name, it survives renames and transfers, which is why rights and bindings are keyed by it.";
427
+ readonly type: "string";
428
+ readonly minLength: 1;
429
+ readonly maxLength: 64;
430
+ };
431
+ readonly ForgeHost: {
432
+ readonly title: "ForgeHost";
433
+ readonly description: "The lowercased DNS host of a forge: `github.com`, a GitHub Enterprise Server host, `codeberg.org`, or a self-hosted Forgejo instance such as `git.example.org`. No scheme, no port, no path. The host is a segment of every resource, so a right never crosses forges.";
434
+ readonly type: "string";
435
+ readonly minLength: 3;
436
+ readonly maxLength: 253;
437
+ readonly pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$";
438
+ };
439
+ readonly RepoResource: {
440
+ readonly title: "RepoResource";
441
+ readonly description: "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.";
442
+ readonly type: "string";
443
+ readonly maxLength: 455;
444
+ 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}/[a-z0-9_-][a-z0-9._-]{0,99}$";
445
+ };
446
+ readonly Bootstrap: {
447
+ readonly title: "Bootstrap";
448
+ readonly description: "Whether each step that turns commit trust on for a repository is in place, as last reported. A step that this forge's plan does not need reads `true`.";
449
+ readonly type: "object";
450
+ readonly additionalProperties: false;
451
+ readonly required: readonly ["workflow", "keyring", "variables", "requiredCheck"];
452
+ readonly properties: {
453
+ readonly workflow: {
454
+ readonly type: "boolean";
455
+ readonly description: "The verify-trust check runs on the repository's pull requests — from a workflow committed to it, or, where the forge supports it, required on it from the namespace's own bridge-managed workflow repository at a pinned commit.";
456
+ };
457
+ readonly keyring: {
458
+ readonly type: "boolean";
459
+ readonly description: "The exempt platform keyring for forge-signed merge commits is committed, or the forge's plan does not need one.";
460
+ };
461
+ readonly variables: {
462
+ readonly type: "boolean";
463
+ readonly description: "The repository names the Trust Registry and this VTC as its trust anchors.";
464
+ };
465
+ readonly requiredCheck: {
466
+ readonly type: "boolean";
467
+ readonly description: "The forge refuses to merge into the default branch unless the verify-trust check passes, with no bypass, and a pull request cannot change what that check runs: an organisation-required workflow, code-owner review of workflow files, or protected workflow paths, as the forge allows.";
468
+ };
469
+ };
470
+ };
471
+ readonly Did: {
472
+ readonly title: "Did";
473
+ 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.";
474
+ readonly type: "string";
475
+ readonly maxLength: 2048;
476
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
477
+ };
478
+ readonly RepoVisibility: {
479
+ readonly title: "RepoVisibility";
480
+ readonly type: "string";
481
+ readonly enum: readonly ["public", "private"];
482
+ readonly description: "Repository visibility on the forge.";
483
+ };
484
+ };
485
+ };
486
+ /**
487
+ * SPEC.md §7.2 policy for the request variant, from this specification's
488
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
489
+ * per-specification and cannot be derived from the document alone, and
490
+ * item 2 needs the schema this carries.
491
+ */
492
+ export declare const SPEC: {
493
+ readonly typeUri: "https://trusttasks.org/spec/git-ns/repo/transfer/0.2";
494
+ readonly isBearer: false;
495
+ readonly isProofRequired: true;
496
+ readonly isRecipientRequired: true;
497
+ readonly isIssuedAtRequired: true;
498
+ readonly payloadSchema: {
499
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
500
+ readonly $id: "https://trusttasks.org/spec/git-ns/repo/transfer/0.2";
501
+ readonly title: "Git Namespaces — Transfer Repository Ownership — payload";
502
+ readonly description: "An owner hands their ownership of a repository to someone else: `to` is recorded as an owner and the caller's own `git.repo.own` record is revoked. Ownership moves between people; the repository stays where it is on the forge.";
503
+ readonly type: "object";
504
+ readonly additionalProperties: false;
505
+ readonly required: readonly ["resource", "to"];
506
+ readonly properties: {
507
+ readonly resource: {
508
+ readonly $ref: "#/$defs/RepoResource";
509
+ readonly description: "The repository.";
510
+ };
511
+ readonly to: {
512
+ readonly $ref: "#/$defs/Did";
513
+ readonly description: "Who receives ownership.";
514
+ };
515
+ readonly ext: {
516
+ readonly $ref: "#/$defs/Ext";
517
+ };
518
+ };
519
+ readonly $defs: {
520
+ readonly Response: {
521
+ readonly $anchor: "response";
522
+ readonly title: "Git Namespaces — Transfer Repository Ownership — response payload";
523
+ readonly description: "The repository after the transfer.";
524
+ readonly type: "object";
525
+ readonly additionalProperties: false;
526
+ readonly required: readonly ["repo"];
527
+ readonly properties: {
528
+ readonly repo: {
529
+ readonly $ref: "#/$defs/RepoSummary";
530
+ readonly description: "The repository after the transfer.";
531
+ };
532
+ readonly ext: {
533
+ readonly $ref: "#/$defs/Ext";
534
+ };
535
+ };
536
+ };
537
+ readonly Ext: {
538
+ readonly title: "Ext";
539
+ 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.";
540
+ readonly type: "object";
541
+ readonly minProperties: 1;
542
+ readonly additionalProperties: true;
543
+ readonly propertyNames: {
544
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
545
+ };
546
+ };
547
+ readonly RepoSummary: {
548
+ readonly title: "RepoSummary";
549
+ readonly description: "One repository as the VTC records it.";
550
+ readonly type: "object";
551
+ readonly additionalProperties: false;
552
+ readonly required: readonly ["resource", "visibility", "state", "owners", "bootstrap", "sync"];
553
+ readonly properties: {
554
+ readonly resource: {
555
+ readonly $ref: "#/$defs/RepoResource";
556
+ };
557
+ readonly forgeId: {
558
+ readonly $ref: "#/$defs/ForgeId";
559
+ readonly description: "The forge's repository id. Absent until the forge has confirmed the repository exists (a `pendingCreate` repository, or one adopted in bridge mode before the first inspection).";
560
+ };
561
+ readonly visibility: {
562
+ readonly $ref: "#/$defs/RepoVisibility";
563
+ };
564
+ readonly state: {
565
+ readonly type: "string";
566
+ readonly enum: readonly ["pendingCreate", "active", "archived", "detached", "orphaned", "unmanaged"];
567
+ readonly description: "`pendingCreate` — the name is reserved and the repository is not yet confirmed on the forge. `active` — managed. `archived` — archived through git-ns/repo/archive; commit rights on it are revoked. `detached` — no longer governed: its namespace was unbound, or it moved outside the namespace. `orphaned` — its last owner left the community and ownership passed to the namespace admins, who have not yet named a new owner. `unmanaged` — it exists on the forge inside a bound namespace but was never created or adopted through the VTC.";
568
+ };
569
+ readonly owners: {
570
+ readonly type: "array";
571
+ readonly uniqueItems: true;
572
+ readonly items: {
573
+ readonly $ref: "#/$defs/Did";
574
+ };
575
+ readonly description: "The DIDs holding `git.repo.own` on this repository by an explicit grant. Empty only for an `unmanaged` repository, and for an `orphaned` one whose ownership rests with the namespace admins by implication.";
576
+ };
577
+ readonly bootstrap: {
578
+ readonly $ref: "#/$defs/Bootstrap";
579
+ };
580
+ readonly sync: {
581
+ readonly $ref: "#/$defs/Sync";
582
+ };
583
+ };
584
+ };
585
+ readonly Sync: {
586
+ readonly title: "Sync";
587
+ readonly description: "How the forge compares with the VTC's projection for one repository.";
588
+ readonly type: "object";
589
+ readonly additionalProperties: false;
590
+ readonly required: readonly ["state", "drift"];
591
+ readonly properties: {
592
+ readonly state: {
593
+ readonly type: "string";
594
+ readonly enum: readonly ["inSync", "drift", "pending", "unchecked"];
595
+ readonly description: "`inSync` — the last comparison found no drift. `drift` — it found some, listed in `drift`. `pending` — a change has been sent to the forge and not yet confirmed. `unchecked` — nothing compares this repository (a manual-mode namespace).";
596
+ };
597
+ readonly checkedAt: {
598
+ readonly type: "string";
599
+ readonly format: "date-time";
600
+ readonly description: "When the forge was last compared. Absent if never.";
601
+ };
602
+ readonly drift: {
603
+ readonly type: "array";
604
+ readonly items: {
605
+ readonly $ref: "#/$defs/DriftItem";
606
+ };
607
+ readonly description: "Outstanding drift. Empty unless `state` is `drift`.";
608
+ };
609
+ };
610
+ };
611
+ readonly DriftItem: {
612
+ readonly title: "DriftItem";
613
+ readonly description: "One difference between the forge's observed state and the VTC's projection of a repository.";
614
+ readonly type: "object";
615
+ readonly additionalProperties: false;
616
+ readonly required: readonly ["type", "resource"];
617
+ readonly properties: {
618
+ readonly type: {
619
+ readonly type: "string";
620
+ readonly enum: readonly ["roleAdded", "roleRemoved", "roleChanged", "requiredCheckMissing", "protectionWeakened", "bootstrapMissing"];
621
+ readonly description: "`roleAdded` — someone holds a forge role the projection does not give them. `roleRemoved` — a projected role is missing. `roleChanged` — a projected role is present at another level. `requiredCheckMissing` — the verify-trust check is no longer required. `protectionWeakened` — branch protection or a ruleset is weaker than the projection in another way (force-push allowed, bypass actors added). `bootstrapMissing` — a bootstrap file or variable is gone.";
622
+ };
623
+ readonly resource: {
624
+ readonly $ref: "#/$defs/RepoResource";
625
+ };
626
+ readonly account: {
627
+ readonly $ref: "#/$defs/ForgeAccount";
628
+ readonly description: "Whose role differs, for the three role types.";
629
+ };
630
+ readonly observed: {
631
+ readonly type: "string";
632
+ readonly maxLength: 256;
633
+ readonly description: "What the forge shows, in the forge's own vocabulary (a role name such as `maintain`, a setting name). Absent when nothing is there.";
634
+ };
635
+ readonly expected: {
636
+ readonly type: "string";
637
+ readonly maxLength: 256;
638
+ readonly description: "What the projection calls for, in the forge's own vocabulary. Absent when the projection calls for nothing.";
639
+ };
640
+ };
641
+ };
642
+ readonly ForgeAccount: {
643
+ readonly title: "ForgeAccount";
644
+ readonly description: "A person's account on one forge. `id` is authoritative; `login` is for display only, because logins can be renamed and re-registered.";
645
+ readonly type: "object";
646
+ readonly additionalProperties: false;
647
+ readonly required: readonly ["forge", "id", "login"];
648
+ readonly properties: {
649
+ readonly forge: {
650
+ readonly $ref: "#/$defs/ForgeHost";
651
+ };
652
+ readonly id: {
653
+ readonly $ref: "#/$defs/ForgeId";
654
+ };
655
+ readonly login: {
656
+ readonly type: "string";
657
+ readonly minLength: 1;
658
+ readonly maxLength: 100;
659
+ readonly description: "The account's current login, as the forge reported it when last seen. Display only.";
660
+ };
661
+ };
662
+ };
663
+ readonly ForgeId: {
664
+ readonly title: "ForgeId";
665
+ readonly description: "An identifier the forge itself assigns — a repository id, a user or organisation id — carried as a string so a forge whose ids are not numbers needs no new version. GitHub and Forgejo ids are decimal integers written as strings (`\"812736451\"`). Unlike a name, it survives renames and transfers, which is why rights and bindings are keyed by it.";
666
+ readonly type: "string";
667
+ readonly minLength: 1;
668
+ readonly maxLength: 64;
669
+ };
670
+ readonly ForgeHost: {
671
+ readonly title: "ForgeHost";
672
+ readonly description: "The lowercased DNS host of a forge: `github.com`, a GitHub Enterprise Server host, `codeberg.org`, or a self-hosted Forgejo instance such as `git.example.org`. No scheme, no port, no path. The host is a segment of every resource, so a right never crosses forges.";
673
+ readonly type: "string";
674
+ readonly minLength: 3;
675
+ readonly maxLength: 253;
676
+ readonly pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$";
677
+ };
678
+ readonly RepoResource: {
679
+ readonly title: "RepoResource";
680
+ readonly description: "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.";
681
+ readonly type: "string";
682
+ readonly maxLength: 455;
683
+ 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}/[a-z0-9_-][a-z0-9._-]{0,99}$";
684
+ };
685
+ readonly Bootstrap: {
686
+ readonly title: "Bootstrap";
687
+ readonly description: "Whether each step that turns commit trust on for a repository is in place, as last reported. A step that this forge's plan does not need reads `true`.";
688
+ readonly type: "object";
689
+ readonly additionalProperties: false;
690
+ readonly required: readonly ["workflow", "keyring", "variables", "requiredCheck"];
691
+ readonly properties: {
692
+ readonly workflow: {
693
+ readonly type: "boolean";
694
+ readonly description: "The verify-trust check runs on the repository's pull requests — from a workflow committed to it, or, where the forge supports it, required on it from the namespace's own bridge-managed workflow repository at a pinned commit.";
695
+ };
696
+ readonly keyring: {
697
+ readonly type: "boolean";
698
+ readonly description: "The exempt platform keyring for forge-signed merge commits is committed, or the forge's plan does not need one.";
699
+ };
700
+ readonly variables: {
701
+ readonly type: "boolean";
702
+ readonly description: "The repository names the Trust Registry and this VTC as its trust anchors.";
703
+ };
704
+ readonly requiredCheck: {
705
+ readonly type: "boolean";
706
+ readonly description: "The forge refuses to merge into the default branch unless the verify-trust check passes, with no bypass, and a pull request cannot change what that check runs: an organisation-required workflow, code-owner review of workflow files, or protected workflow paths, as the forge allows.";
707
+ };
708
+ };
709
+ };
710
+ readonly Did: {
711
+ readonly title: "Did";
712
+ 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.";
713
+ readonly type: "string";
714
+ readonly maxLength: 2048;
715
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
716
+ };
717
+ readonly RepoVisibility: {
718
+ readonly title: "RepoVisibility";
719
+ readonly type: "string";
720
+ readonly enum: readonly ["public", "private"];
721
+ readonly description: "Repository visibility on the forge.";
722
+ };
723
+ };
724
+ };
725
+ };
726
+ /**
727
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
728
+ * tracks the *issuer* party's requirement because a response swaps the
729
+ * parties (§7.3 item 5).
730
+ */
731
+ export declare const RESPONSE_SPEC: {
732
+ readonly typeUri: "https://trusttasks.org/spec/git-ns/repo/transfer/0.2#response";
733
+ readonly isBearer: false;
734
+ readonly isProofRequired: true;
735
+ readonly isRecipientRequired: true;
736
+ readonly isIssuedAtRequired: true;
737
+ readonly payloadSchema: {
738
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
739
+ readonly $ref: "#/$defs/Response";
740
+ readonly $defs: {
741
+ readonly Response: {
742
+ readonly $anchor: "response";
743
+ readonly title: "Git Namespaces — Transfer Repository Ownership — response payload";
744
+ readonly description: "The repository after the transfer.";
745
+ readonly type: "object";
746
+ readonly additionalProperties: false;
747
+ readonly required: readonly ["repo"];
748
+ readonly properties: {
749
+ readonly repo: {
750
+ readonly $ref: "#/$defs/RepoSummary";
751
+ readonly description: "The repository after the transfer.";
752
+ };
753
+ readonly ext: {
754
+ readonly $ref: "#/$defs/Ext";
755
+ };
756
+ };
757
+ };
758
+ readonly Ext: {
759
+ readonly title: "Ext";
760
+ 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.";
761
+ readonly type: "object";
762
+ readonly minProperties: 1;
763
+ readonly additionalProperties: true;
764
+ readonly propertyNames: {
765
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
766
+ };
767
+ };
768
+ readonly RepoSummary: {
769
+ readonly title: "RepoSummary";
770
+ readonly description: "One repository as the VTC records it.";
771
+ readonly type: "object";
772
+ readonly additionalProperties: false;
773
+ readonly required: readonly ["resource", "visibility", "state", "owners", "bootstrap", "sync"];
774
+ readonly properties: {
775
+ readonly resource: {
776
+ readonly $ref: "#/$defs/RepoResource";
777
+ };
778
+ readonly forgeId: {
779
+ readonly $ref: "#/$defs/ForgeId";
780
+ readonly description: "The forge's repository id. Absent until the forge has confirmed the repository exists (a `pendingCreate` repository, or one adopted in bridge mode before the first inspection).";
781
+ };
782
+ readonly visibility: {
783
+ readonly $ref: "#/$defs/RepoVisibility";
784
+ };
785
+ readonly state: {
786
+ readonly type: "string";
787
+ readonly enum: readonly ["pendingCreate", "active", "archived", "detached", "orphaned", "unmanaged"];
788
+ readonly description: "`pendingCreate` — the name is reserved and the repository is not yet confirmed on the forge. `active` — managed. `archived` — archived through git-ns/repo/archive; commit rights on it are revoked. `detached` — no longer governed: its namespace was unbound, or it moved outside the namespace. `orphaned` — its last owner left the community and ownership passed to the namespace admins, who have not yet named a new owner. `unmanaged` — it exists on the forge inside a bound namespace but was never created or adopted through the VTC.";
789
+ };
790
+ readonly owners: {
791
+ readonly type: "array";
792
+ readonly uniqueItems: true;
793
+ readonly items: {
794
+ readonly $ref: "#/$defs/Did";
795
+ };
796
+ readonly description: "The DIDs holding `git.repo.own` on this repository by an explicit grant. Empty only for an `unmanaged` repository, and for an `orphaned` one whose ownership rests with the namespace admins by implication.";
797
+ };
798
+ readonly bootstrap: {
799
+ readonly $ref: "#/$defs/Bootstrap";
800
+ };
801
+ readonly sync: {
802
+ readonly $ref: "#/$defs/Sync";
803
+ };
804
+ };
805
+ };
806
+ readonly Sync: {
807
+ readonly title: "Sync";
808
+ readonly description: "How the forge compares with the VTC's projection for one repository.";
809
+ readonly type: "object";
810
+ readonly additionalProperties: false;
811
+ readonly required: readonly ["state", "drift"];
812
+ readonly properties: {
813
+ readonly state: {
814
+ readonly type: "string";
815
+ readonly enum: readonly ["inSync", "drift", "pending", "unchecked"];
816
+ readonly description: "`inSync` — the last comparison found no drift. `drift` — it found some, listed in `drift`. `pending` — a change has been sent to the forge and not yet confirmed. `unchecked` — nothing compares this repository (a manual-mode namespace).";
817
+ };
818
+ readonly checkedAt: {
819
+ readonly type: "string";
820
+ readonly format: "date-time";
821
+ readonly description: "When the forge was last compared. Absent if never.";
822
+ };
823
+ readonly drift: {
824
+ readonly type: "array";
825
+ readonly items: {
826
+ readonly $ref: "#/$defs/DriftItem";
827
+ };
828
+ readonly description: "Outstanding drift. Empty unless `state` is `drift`.";
829
+ };
830
+ };
831
+ };
832
+ readonly DriftItem: {
833
+ readonly title: "DriftItem";
834
+ readonly description: "One difference between the forge's observed state and the VTC's projection of a repository.";
835
+ readonly type: "object";
836
+ readonly additionalProperties: false;
837
+ readonly required: readonly ["type", "resource"];
838
+ readonly properties: {
839
+ readonly type: {
840
+ readonly type: "string";
841
+ readonly enum: readonly ["roleAdded", "roleRemoved", "roleChanged", "requiredCheckMissing", "protectionWeakened", "bootstrapMissing"];
842
+ readonly description: "`roleAdded` — someone holds a forge role the projection does not give them. `roleRemoved` — a projected role is missing. `roleChanged` — a projected role is present at another level. `requiredCheckMissing` — the verify-trust check is no longer required. `protectionWeakened` — branch protection or a ruleset is weaker than the projection in another way (force-push allowed, bypass actors added). `bootstrapMissing` — a bootstrap file or variable is gone.";
843
+ };
844
+ readonly resource: {
845
+ readonly $ref: "#/$defs/RepoResource";
846
+ };
847
+ readonly account: {
848
+ readonly $ref: "#/$defs/ForgeAccount";
849
+ readonly description: "Whose role differs, for the three role types.";
850
+ };
851
+ readonly observed: {
852
+ readonly type: "string";
853
+ readonly maxLength: 256;
854
+ readonly description: "What the forge shows, in the forge's own vocabulary (a role name such as `maintain`, a setting name). Absent when nothing is there.";
855
+ };
856
+ readonly expected: {
857
+ readonly type: "string";
858
+ readonly maxLength: 256;
859
+ readonly description: "What the projection calls for, in the forge's own vocabulary. Absent when the projection calls for nothing.";
860
+ };
861
+ };
862
+ };
863
+ readonly ForgeAccount: {
864
+ readonly title: "ForgeAccount";
865
+ readonly description: "A person's account on one forge. `id` is authoritative; `login` is for display only, because logins can be renamed and re-registered.";
866
+ readonly type: "object";
867
+ readonly additionalProperties: false;
868
+ readonly required: readonly ["forge", "id", "login"];
869
+ readonly properties: {
870
+ readonly forge: {
871
+ readonly $ref: "#/$defs/ForgeHost";
872
+ };
873
+ readonly id: {
874
+ readonly $ref: "#/$defs/ForgeId";
875
+ };
876
+ readonly login: {
877
+ readonly type: "string";
878
+ readonly minLength: 1;
879
+ readonly maxLength: 100;
880
+ readonly description: "The account's current login, as the forge reported it when last seen. Display only.";
881
+ };
882
+ };
883
+ };
884
+ readonly ForgeId: {
885
+ readonly title: "ForgeId";
886
+ readonly description: "An identifier the forge itself assigns — a repository id, a user or organisation id — carried as a string so a forge whose ids are not numbers needs no new version. GitHub and Forgejo ids are decimal integers written as strings (`\"812736451\"`). Unlike a name, it survives renames and transfers, which is why rights and bindings are keyed by it.";
887
+ readonly type: "string";
888
+ readonly minLength: 1;
889
+ readonly maxLength: 64;
890
+ };
891
+ readonly ForgeHost: {
892
+ readonly title: "ForgeHost";
893
+ readonly description: "The lowercased DNS host of a forge: `github.com`, a GitHub Enterprise Server host, `codeberg.org`, or a self-hosted Forgejo instance such as `git.example.org`. No scheme, no port, no path. The host is a segment of every resource, so a right never crosses forges.";
894
+ readonly type: "string";
895
+ readonly minLength: 3;
896
+ readonly maxLength: 253;
897
+ readonly pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$";
898
+ };
899
+ readonly RepoResource: {
900
+ readonly title: "RepoResource";
901
+ readonly description: "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.";
902
+ readonly type: "string";
903
+ readonly maxLength: 455;
904
+ 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}/[a-z0-9_-][a-z0-9._-]{0,99}$";
905
+ };
906
+ readonly Bootstrap: {
907
+ readonly title: "Bootstrap";
908
+ readonly description: "Whether each step that turns commit trust on for a repository is in place, as last reported. A step that this forge's plan does not need reads `true`.";
909
+ readonly type: "object";
910
+ readonly additionalProperties: false;
911
+ readonly required: readonly ["workflow", "keyring", "variables", "requiredCheck"];
912
+ readonly properties: {
913
+ readonly workflow: {
914
+ readonly type: "boolean";
915
+ readonly description: "The verify-trust check runs on the repository's pull requests — from a workflow committed to it, or, where the forge supports it, required on it from the namespace's own bridge-managed workflow repository at a pinned commit.";
916
+ };
917
+ readonly keyring: {
918
+ readonly type: "boolean";
919
+ readonly description: "The exempt platform keyring for forge-signed merge commits is committed, or the forge's plan does not need one.";
920
+ };
921
+ readonly variables: {
922
+ readonly type: "boolean";
923
+ readonly description: "The repository names the Trust Registry and this VTC as its trust anchors.";
924
+ };
925
+ readonly requiredCheck: {
926
+ readonly type: "boolean";
927
+ readonly description: "The forge refuses to merge into the default branch unless the verify-trust check passes, with no bypass, and a pull request cannot change what that check runs: an organisation-required workflow, code-owner review of workflow files, or protected workflow paths, as the forge allows.";
928
+ };
929
+ };
930
+ };
931
+ readonly Did: {
932
+ readonly title: "Did";
933
+ 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.";
934
+ readonly type: "string";
935
+ readonly maxLength: 2048;
936
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
937
+ };
938
+ readonly RepoVisibility: {
939
+ readonly title: "RepoVisibility";
940
+ readonly type: "string";
941
+ readonly enum: readonly ["public", "private"];
942
+ readonly description: "Repository visibility on the forge.";
943
+ };
944
+ };
945
+ };
946
+ };
947
+ //# sourceMappingURL=payload.d.ts.map