@openvtc/trust-tasks 0.23.3 → 0.23.5
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.
- package/CHANGELOG.md +42 -0
- package/dist/git-ns/bridge/job/list/0.2/payload.d.ts +733 -0
- package/dist/git-ns/bridge/job/list/0.2/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/job/list/0.2/payload.js +408 -0
- package/dist/git-ns/bridge/job/list/0.2/payload.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/git-ns/bridge/job/list/0.2/payload.ts +517 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/git-ns/bridge/job/list/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Did_GitNsV0_3 as Did, Ext, NamespaceId, RepoResource } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* The VTC's own queue state for the job, driven by git-ns/bridge/result/0.1 reports. `pending` — queued, not yet accepted. `accepted` — the bridge has taken it and not yet reported an outcome. `succeeded` — every step completed. `partial` — some steps completed and at least one did not. `failed` — no step completed. `cancelled` — withdrawn before the bridge accepted it.
|
|
8
|
+
*/
|
|
9
|
+
export type JobState = "pending" | "accepted" | "succeeded" | "partial" | "failed" | "cancelled";
|
|
10
|
+
/**
|
|
11
|
+
* The VTC's identifier for the job, unique across the VTC's jobs. The same identifier git-ns/bridge/job (0.4 and 0.5) assigns and git-ns/bridge/result/0.1 reports against.
|
|
12
|
+
*/
|
|
13
|
+
export type JobId = string;
|
|
14
|
+
/**
|
|
15
|
+
* What the job asks the bridge to do — the same eight kinds git-ns/bridge/job/0.5 defines. Kept as its own enum here, rather than a cross-file $ref, because job/0.5 declares its `kind` inline rather than as a named $def; the two lists change together.
|
|
16
|
+
*/
|
|
17
|
+
export type JobKind = "projectRoles" | "createRepo" | "bootstrap" | "archive" | "inspect" | "beginBind" | "beginAccountLink" | "closePullRequest";
|
|
18
|
+
/**
|
|
19
|
+
* A namespace's administrators list the bridge jobs queued or run for it — every namespace, for a community administrator — with each job's kind, state and last error. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
20
|
+
*/
|
|
21
|
+
export interface GitNamespacesListBridgeJobsPayload {
|
|
22
|
+
/**
|
|
23
|
+
* Only jobs in this namespace. Absent: every administered namespace.
|
|
24
|
+
*/
|
|
25
|
+
namespace?: NamespaceId;
|
|
26
|
+
state?: JobState;
|
|
27
|
+
/**
|
|
28
|
+
* Opaque continuation token from a previous response's `nextCursor`. A consumer supplying a `cursor` MUST NOT also change `namespace` or `state` from the request that produced it — start a fresh query instead.
|
|
29
|
+
*/
|
|
30
|
+
cursor?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Maximum jobs to return in this page. A VTC clamps to 1..=500 (default 100).
|
|
33
|
+
*/
|
|
34
|
+
limit?: number;
|
|
35
|
+
ext?: Ext;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The matching jobs, newest first.
|
|
39
|
+
*/
|
|
40
|
+
export interface GitNamespacesListBridgeJobsResponsePayload {
|
|
41
|
+
/**
|
|
42
|
+
* Jobs matching `namespace` and `state`, newest (`createdAt`) first.
|
|
43
|
+
*/
|
|
44
|
+
jobs: JobRow[];
|
|
45
|
+
/**
|
|
46
|
+
* Continuation token for the next page, or `null` when this is the last.
|
|
47
|
+
*/
|
|
48
|
+
nextCursor?: string | null;
|
|
49
|
+
ext?: Ext;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* One bridge job as the administrator's console shows it.
|
|
53
|
+
*/
|
|
54
|
+
export interface JobRow {
|
|
55
|
+
jobId: JobId;
|
|
56
|
+
namespace: NamespaceId;
|
|
57
|
+
/**
|
|
58
|
+
* The bridge the job was dispatched to.
|
|
59
|
+
*/
|
|
60
|
+
bridgeDid: Did;
|
|
61
|
+
kind: JobKind;
|
|
62
|
+
state: JobState;
|
|
63
|
+
/**
|
|
64
|
+
* The repository the job acts on. Absent for a namespace-wide `inspect` sweep or a job with no repository (`beginBind`, `beginAccountLink`).
|
|
65
|
+
*/
|
|
66
|
+
repo?: RepoResource;
|
|
67
|
+
/**
|
|
68
|
+
* The pull request a `closePullRequest` job closes, in `repo` — the job's own `number`. Present for a `closePullRequest` job and absent for every other kind.
|
|
69
|
+
*/
|
|
70
|
+
number?: number;
|
|
71
|
+
/**
|
|
72
|
+
* How many times the VTC has dispatched this job to a bridge.
|
|
73
|
+
*/
|
|
74
|
+
attempts: number;
|
|
75
|
+
/**
|
|
76
|
+
* When the VTC queued the job.
|
|
77
|
+
*/
|
|
78
|
+
createdAt: string;
|
|
79
|
+
/**
|
|
80
|
+
* When a bridge last accepted it. Absent while `state` is `pending` or `cancelled`.
|
|
81
|
+
*/
|
|
82
|
+
acceptedAt?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The bridge's last reported error, verbatim. Diagnostic prose for an administrator; a consumer MUST NOT parse it. Absent unless `state` is `partial` or `failed`.
|
|
85
|
+
*/
|
|
86
|
+
lastError?: string;
|
|
87
|
+
}
|
|
88
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
89
|
+
export type { Did, Ext, NamespaceId, RepoResource };
|
|
90
|
+
/** Trust Task type URI. */
|
|
91
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/git-ns/bridge/job/list/0.2";
|
|
92
|
+
/** Stable alias for this specification's request payload shape. */
|
|
93
|
+
export type Payload = GitNamespacesListBridgeJobsPayload;
|
|
94
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
95
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/git-ns/bridge/job/list/0.2#response";
|
|
96
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
97
|
+
export type Response = GitNamespacesListBridgeJobsResponsePayload;
|
|
98
|
+
/**
|
|
99
|
+
* This specification's payload schema, as a value.
|
|
100
|
+
*
|
|
101
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
102
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
103
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
104
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
105
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
106
|
+
*/
|
|
107
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
108
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
109
|
+
readonly $id: "https://trusttasks.org/spec/git-ns/bridge/job/list/0.2";
|
|
110
|
+
readonly title: "Git Namespaces — List Bridge Jobs — payload";
|
|
111
|
+
readonly description: "A namespace's administrators list the bridge jobs queued or run for it — every namespace, for a community administrator — with each job's kind, state and last error. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
112
|
+
readonly type: "object";
|
|
113
|
+
readonly additionalProperties: false;
|
|
114
|
+
readonly properties: {
|
|
115
|
+
readonly namespace: {
|
|
116
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
117
|
+
readonly description: "Only jobs in this namespace. Absent: every administered namespace.";
|
|
118
|
+
};
|
|
119
|
+
readonly state: {
|
|
120
|
+
readonly $ref: "#/$defs/JobState";
|
|
121
|
+
};
|
|
122
|
+
readonly cursor: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
readonly description: "Opaque continuation token from a previous response's `nextCursor`. A consumer supplying a `cursor` MUST NOT also change `namespace` or `state` from the request that produced it — start a fresh query instead.";
|
|
125
|
+
};
|
|
126
|
+
readonly limit: {
|
|
127
|
+
readonly type: "integer";
|
|
128
|
+
readonly minimum: 1;
|
|
129
|
+
readonly maximum: 500;
|
|
130
|
+
readonly description: "Maximum jobs to return in this page. A VTC clamps to 1..=500 (default 100).";
|
|
131
|
+
};
|
|
132
|
+
readonly ext: {
|
|
133
|
+
readonly $ref: "#/$defs/Ext";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
readonly $defs: {
|
|
137
|
+
readonly JobId: {
|
|
138
|
+
readonly title: "JobId";
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
readonly minLength: 1;
|
|
141
|
+
readonly maxLength: 128;
|
|
142
|
+
readonly description: "The VTC's identifier for the job, unique across the VTC's jobs. The same identifier git-ns/bridge/job (0.4 and 0.5) assigns and git-ns/bridge/result/0.1 reports against.";
|
|
143
|
+
};
|
|
144
|
+
readonly JobKind: {
|
|
145
|
+
readonly title: "JobKind";
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly enum: readonly ["projectRoles", "createRepo", "bootstrap", "archive", "inspect", "beginBind", "beginAccountLink", "closePullRequest"];
|
|
148
|
+
readonly description: "What the job asks the bridge to do — the same eight kinds git-ns/bridge/job/0.5 defines. Kept as its own enum here, rather than a cross-file $ref, because job/0.5 declares its `kind` inline rather than as a named $def; the two lists change together.";
|
|
149
|
+
};
|
|
150
|
+
readonly JobState: {
|
|
151
|
+
readonly title: "JobState";
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
readonly enum: readonly ["pending", "accepted", "succeeded", "partial", "failed", "cancelled"];
|
|
154
|
+
readonly description: "The VTC's own queue state for the job, driven by git-ns/bridge/result/0.1 reports. `pending` — queued, not yet accepted. `accepted` — the bridge has taken it and not yet reported an outcome. `succeeded` — every step completed. `partial` — some steps completed and at least one did not. `failed` — no step completed. `cancelled` — withdrawn before the bridge accepted it.";
|
|
155
|
+
};
|
|
156
|
+
readonly JobRow: {
|
|
157
|
+
readonly title: "JobRow";
|
|
158
|
+
readonly description: "One bridge job as the administrator's console shows it.";
|
|
159
|
+
readonly type: "object";
|
|
160
|
+
readonly additionalProperties: false;
|
|
161
|
+
readonly dependentRequired: {
|
|
162
|
+
readonly number: readonly ["repo"];
|
|
163
|
+
};
|
|
164
|
+
readonly required: readonly ["jobId", "namespace", "bridgeDid", "kind", "state", "attempts", "createdAt"];
|
|
165
|
+
readonly properties: {
|
|
166
|
+
readonly jobId: {
|
|
167
|
+
readonly $ref: "#/$defs/JobId";
|
|
168
|
+
};
|
|
169
|
+
readonly namespace: {
|
|
170
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
171
|
+
};
|
|
172
|
+
readonly bridgeDid: {
|
|
173
|
+
readonly $ref: "#/$defs/Did";
|
|
174
|
+
readonly description: "The bridge the job was dispatched to.";
|
|
175
|
+
};
|
|
176
|
+
readonly kind: {
|
|
177
|
+
readonly $ref: "#/$defs/JobKind";
|
|
178
|
+
};
|
|
179
|
+
readonly state: {
|
|
180
|
+
readonly $ref: "#/$defs/JobState";
|
|
181
|
+
};
|
|
182
|
+
readonly repo: {
|
|
183
|
+
readonly $ref: "#/$defs/RepoResource";
|
|
184
|
+
readonly description: "The repository the job acts on. Absent for a namespace-wide `inspect` sweep or a job with no repository (`beginBind`, `beginAccountLink`).";
|
|
185
|
+
};
|
|
186
|
+
readonly number: {
|
|
187
|
+
readonly type: "integer";
|
|
188
|
+
readonly minimum: 1;
|
|
189
|
+
readonly description: "The pull request a `closePullRequest` job closes, in `repo` — the job's own `number`. Present for a `closePullRequest` job and absent for every other kind.";
|
|
190
|
+
};
|
|
191
|
+
readonly attempts: {
|
|
192
|
+
readonly type: "integer";
|
|
193
|
+
readonly minimum: 0;
|
|
194
|
+
readonly description: "How many times the VTC has dispatched this job to a bridge.";
|
|
195
|
+
};
|
|
196
|
+
readonly createdAt: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly format: "date-time";
|
|
199
|
+
readonly description: "When the VTC queued the job.";
|
|
200
|
+
};
|
|
201
|
+
readonly acceptedAt: {
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
readonly format: "date-time";
|
|
204
|
+
readonly description: "When a bridge last accepted it. Absent while `state` is `pending` or `cancelled`.";
|
|
205
|
+
};
|
|
206
|
+
readonly lastError: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly maxLength: 1024;
|
|
209
|
+
readonly description: "The bridge's last reported error, verbatim. Diagnostic prose for an administrator; a consumer MUST NOT parse it. Absent unless `state` is `partial` or `failed`.";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
readonly Response: {
|
|
214
|
+
readonly $anchor: "response";
|
|
215
|
+
readonly title: "Git Namespaces — List Bridge Jobs — response payload";
|
|
216
|
+
readonly description: "The matching jobs, newest first.";
|
|
217
|
+
readonly type: "object";
|
|
218
|
+
readonly additionalProperties: false;
|
|
219
|
+
readonly required: readonly ["jobs"];
|
|
220
|
+
readonly properties: {
|
|
221
|
+
readonly jobs: {
|
|
222
|
+
readonly type: "array";
|
|
223
|
+
readonly items: {
|
|
224
|
+
readonly $ref: "#/$defs/JobRow";
|
|
225
|
+
};
|
|
226
|
+
readonly description: "Jobs matching `namespace` and `state`, newest (`createdAt`) first.";
|
|
227
|
+
};
|
|
228
|
+
readonly nextCursor: {
|
|
229
|
+
readonly type: readonly ["string", "null"];
|
|
230
|
+
readonly description: "Continuation token for the next page, or `null` when this is the last.";
|
|
231
|
+
};
|
|
232
|
+
readonly ext: {
|
|
233
|
+
readonly $ref: "#/$defs/Ext";
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
readonly Ext: {
|
|
238
|
+
readonly title: "Ext";
|
|
239
|
+
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.";
|
|
240
|
+
readonly type: "object";
|
|
241
|
+
readonly minProperties: 1;
|
|
242
|
+
readonly additionalProperties: true;
|
|
243
|
+
readonly propertyNames: {
|
|
244
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
readonly RepoResource: {
|
|
248
|
+
readonly title: "RepoResource";
|
|
249
|
+
readonly description: "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.";
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
readonly maxLength: 455;
|
|
252
|
+
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}$";
|
|
253
|
+
};
|
|
254
|
+
readonly Did: {
|
|
255
|
+
readonly title: "Did";
|
|
256
|
+
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.";
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
readonly maxLength: 2048;
|
|
259
|
+
readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
|
|
260
|
+
};
|
|
261
|
+
readonly NamespaceId: {
|
|
262
|
+
readonly title: "NamespaceId";
|
|
263
|
+
readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
readonly minLength: 1;
|
|
266
|
+
readonly maxLength: 128;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
271
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
272
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
273
|
+
readonly $ref: "#/$defs/Response";
|
|
274
|
+
readonly $defs: {
|
|
275
|
+
readonly JobId: {
|
|
276
|
+
readonly title: "JobId";
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
readonly minLength: 1;
|
|
279
|
+
readonly maxLength: 128;
|
|
280
|
+
readonly description: "The VTC's identifier for the job, unique across the VTC's jobs. The same identifier git-ns/bridge/job (0.4 and 0.5) assigns and git-ns/bridge/result/0.1 reports against.";
|
|
281
|
+
};
|
|
282
|
+
readonly JobKind: {
|
|
283
|
+
readonly title: "JobKind";
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
readonly enum: readonly ["projectRoles", "createRepo", "bootstrap", "archive", "inspect", "beginBind", "beginAccountLink", "closePullRequest"];
|
|
286
|
+
readonly description: "What the job asks the bridge to do — the same eight kinds git-ns/bridge/job/0.5 defines. Kept as its own enum here, rather than a cross-file $ref, because job/0.5 declares its `kind` inline rather than as a named $def; the two lists change together.";
|
|
287
|
+
};
|
|
288
|
+
readonly JobState: {
|
|
289
|
+
readonly title: "JobState";
|
|
290
|
+
readonly type: "string";
|
|
291
|
+
readonly enum: readonly ["pending", "accepted", "succeeded", "partial", "failed", "cancelled"];
|
|
292
|
+
readonly description: "The VTC's own queue state for the job, driven by git-ns/bridge/result/0.1 reports. `pending` — queued, not yet accepted. `accepted` — the bridge has taken it and not yet reported an outcome. `succeeded` — every step completed. `partial` — some steps completed and at least one did not. `failed` — no step completed. `cancelled` — withdrawn before the bridge accepted it.";
|
|
293
|
+
};
|
|
294
|
+
readonly JobRow: {
|
|
295
|
+
readonly title: "JobRow";
|
|
296
|
+
readonly description: "One bridge job as the administrator's console shows it.";
|
|
297
|
+
readonly type: "object";
|
|
298
|
+
readonly additionalProperties: false;
|
|
299
|
+
readonly dependentRequired: {
|
|
300
|
+
readonly number: readonly ["repo"];
|
|
301
|
+
};
|
|
302
|
+
readonly required: readonly ["jobId", "namespace", "bridgeDid", "kind", "state", "attempts", "createdAt"];
|
|
303
|
+
readonly properties: {
|
|
304
|
+
readonly jobId: {
|
|
305
|
+
readonly $ref: "#/$defs/JobId";
|
|
306
|
+
};
|
|
307
|
+
readonly namespace: {
|
|
308
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
309
|
+
};
|
|
310
|
+
readonly bridgeDid: {
|
|
311
|
+
readonly $ref: "#/$defs/Did";
|
|
312
|
+
readonly description: "The bridge the job was dispatched to.";
|
|
313
|
+
};
|
|
314
|
+
readonly kind: {
|
|
315
|
+
readonly $ref: "#/$defs/JobKind";
|
|
316
|
+
};
|
|
317
|
+
readonly state: {
|
|
318
|
+
readonly $ref: "#/$defs/JobState";
|
|
319
|
+
};
|
|
320
|
+
readonly repo: {
|
|
321
|
+
readonly $ref: "#/$defs/RepoResource";
|
|
322
|
+
readonly description: "The repository the job acts on. Absent for a namespace-wide `inspect` sweep or a job with no repository (`beginBind`, `beginAccountLink`).";
|
|
323
|
+
};
|
|
324
|
+
readonly number: {
|
|
325
|
+
readonly type: "integer";
|
|
326
|
+
readonly minimum: 1;
|
|
327
|
+
readonly description: "The pull request a `closePullRequest` job closes, in `repo` — the job's own `number`. Present for a `closePullRequest` job and absent for every other kind.";
|
|
328
|
+
};
|
|
329
|
+
readonly attempts: {
|
|
330
|
+
readonly type: "integer";
|
|
331
|
+
readonly minimum: 0;
|
|
332
|
+
readonly description: "How many times the VTC has dispatched this job to a bridge.";
|
|
333
|
+
};
|
|
334
|
+
readonly createdAt: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly format: "date-time";
|
|
337
|
+
readonly description: "When the VTC queued the job.";
|
|
338
|
+
};
|
|
339
|
+
readonly acceptedAt: {
|
|
340
|
+
readonly type: "string";
|
|
341
|
+
readonly format: "date-time";
|
|
342
|
+
readonly description: "When a bridge last accepted it. Absent while `state` is `pending` or `cancelled`.";
|
|
343
|
+
};
|
|
344
|
+
readonly lastError: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
readonly maxLength: 1024;
|
|
347
|
+
readonly description: "The bridge's last reported error, verbatim. Diagnostic prose for an administrator; a consumer MUST NOT parse it. Absent unless `state` is `partial` or `failed`.";
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
readonly Response: {
|
|
352
|
+
readonly $anchor: "response";
|
|
353
|
+
readonly title: "Git Namespaces — List Bridge Jobs — response payload";
|
|
354
|
+
readonly description: "The matching jobs, newest first.";
|
|
355
|
+
readonly type: "object";
|
|
356
|
+
readonly additionalProperties: false;
|
|
357
|
+
readonly required: readonly ["jobs"];
|
|
358
|
+
readonly properties: {
|
|
359
|
+
readonly jobs: {
|
|
360
|
+
readonly type: "array";
|
|
361
|
+
readonly items: {
|
|
362
|
+
readonly $ref: "#/$defs/JobRow";
|
|
363
|
+
};
|
|
364
|
+
readonly description: "Jobs matching `namespace` and `state`, newest (`createdAt`) first.";
|
|
365
|
+
};
|
|
366
|
+
readonly nextCursor: {
|
|
367
|
+
readonly type: readonly ["string", "null"];
|
|
368
|
+
readonly description: "Continuation token for the next page, or `null` when this is the last.";
|
|
369
|
+
};
|
|
370
|
+
readonly ext: {
|
|
371
|
+
readonly $ref: "#/$defs/Ext";
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
readonly Ext: {
|
|
376
|
+
readonly title: "Ext";
|
|
377
|
+
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.";
|
|
378
|
+
readonly type: "object";
|
|
379
|
+
readonly minProperties: 1;
|
|
380
|
+
readonly additionalProperties: true;
|
|
381
|
+
readonly propertyNames: {
|
|
382
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
readonly RepoResource: {
|
|
386
|
+
readonly title: "RepoResource";
|
|
387
|
+
readonly description: "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.";
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly maxLength: 455;
|
|
390
|
+
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}$";
|
|
391
|
+
};
|
|
392
|
+
readonly Did: {
|
|
393
|
+
readonly title: "Did";
|
|
394
|
+
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.";
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
readonly maxLength: 2048;
|
|
397
|
+
readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
|
|
398
|
+
};
|
|
399
|
+
readonly NamespaceId: {
|
|
400
|
+
readonly title: "NamespaceId";
|
|
401
|
+
readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly minLength: 1;
|
|
404
|
+
readonly maxLength: 128;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
410
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
411
|
+
* per-specification and cannot be derived from the document alone, and
|
|
412
|
+
* item 2 needs the schema this carries.
|
|
413
|
+
*/
|
|
414
|
+
export declare const SPEC: {
|
|
415
|
+
readonly typeUri: "https://trusttasks.org/spec/git-ns/bridge/job/list/0.2";
|
|
416
|
+
readonly isBearer: false;
|
|
417
|
+
readonly isProofRequired: true;
|
|
418
|
+
readonly isRecipientRequired: true;
|
|
419
|
+
readonly isIssuedAtRequired: false;
|
|
420
|
+
readonly payloadSchema: {
|
|
421
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
422
|
+
readonly $id: "https://trusttasks.org/spec/git-ns/bridge/job/list/0.2";
|
|
423
|
+
readonly title: "Git Namespaces — List Bridge Jobs — payload";
|
|
424
|
+
readonly description: "A namespace's administrators list the bridge jobs queued or run for it — every namespace, for a community administrator — with each job's kind, state and last error. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
425
|
+
readonly type: "object";
|
|
426
|
+
readonly additionalProperties: false;
|
|
427
|
+
readonly properties: {
|
|
428
|
+
readonly namespace: {
|
|
429
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
430
|
+
readonly description: "Only jobs in this namespace. Absent: every administered namespace.";
|
|
431
|
+
};
|
|
432
|
+
readonly state: {
|
|
433
|
+
readonly $ref: "#/$defs/JobState";
|
|
434
|
+
};
|
|
435
|
+
readonly cursor: {
|
|
436
|
+
readonly type: "string";
|
|
437
|
+
readonly description: "Opaque continuation token from a previous response's `nextCursor`. A consumer supplying a `cursor` MUST NOT also change `namespace` or `state` from the request that produced it — start a fresh query instead.";
|
|
438
|
+
};
|
|
439
|
+
readonly limit: {
|
|
440
|
+
readonly type: "integer";
|
|
441
|
+
readonly minimum: 1;
|
|
442
|
+
readonly maximum: 500;
|
|
443
|
+
readonly description: "Maximum jobs to return in this page. A VTC clamps to 1..=500 (default 100).";
|
|
444
|
+
};
|
|
445
|
+
readonly ext: {
|
|
446
|
+
readonly $ref: "#/$defs/Ext";
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
readonly $defs: {
|
|
450
|
+
readonly JobId: {
|
|
451
|
+
readonly title: "JobId";
|
|
452
|
+
readonly type: "string";
|
|
453
|
+
readonly minLength: 1;
|
|
454
|
+
readonly maxLength: 128;
|
|
455
|
+
readonly description: "The VTC's identifier for the job, unique across the VTC's jobs. The same identifier git-ns/bridge/job (0.4 and 0.5) assigns and git-ns/bridge/result/0.1 reports against.";
|
|
456
|
+
};
|
|
457
|
+
readonly JobKind: {
|
|
458
|
+
readonly title: "JobKind";
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly enum: readonly ["projectRoles", "createRepo", "bootstrap", "archive", "inspect", "beginBind", "beginAccountLink", "closePullRequest"];
|
|
461
|
+
readonly description: "What the job asks the bridge to do — the same eight kinds git-ns/bridge/job/0.5 defines. Kept as its own enum here, rather than a cross-file $ref, because job/0.5 declares its `kind` inline rather than as a named $def; the two lists change together.";
|
|
462
|
+
};
|
|
463
|
+
readonly JobState: {
|
|
464
|
+
readonly title: "JobState";
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
readonly enum: readonly ["pending", "accepted", "succeeded", "partial", "failed", "cancelled"];
|
|
467
|
+
readonly description: "The VTC's own queue state for the job, driven by git-ns/bridge/result/0.1 reports. `pending` — queued, not yet accepted. `accepted` — the bridge has taken it and not yet reported an outcome. `succeeded` — every step completed. `partial` — some steps completed and at least one did not. `failed` — no step completed. `cancelled` — withdrawn before the bridge accepted it.";
|
|
468
|
+
};
|
|
469
|
+
readonly JobRow: {
|
|
470
|
+
readonly title: "JobRow";
|
|
471
|
+
readonly description: "One bridge job as the administrator's console shows it.";
|
|
472
|
+
readonly type: "object";
|
|
473
|
+
readonly additionalProperties: false;
|
|
474
|
+
readonly dependentRequired: {
|
|
475
|
+
readonly number: readonly ["repo"];
|
|
476
|
+
};
|
|
477
|
+
readonly required: readonly ["jobId", "namespace", "bridgeDid", "kind", "state", "attempts", "createdAt"];
|
|
478
|
+
readonly properties: {
|
|
479
|
+
readonly jobId: {
|
|
480
|
+
readonly $ref: "#/$defs/JobId";
|
|
481
|
+
};
|
|
482
|
+
readonly namespace: {
|
|
483
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
484
|
+
};
|
|
485
|
+
readonly bridgeDid: {
|
|
486
|
+
readonly $ref: "#/$defs/Did";
|
|
487
|
+
readonly description: "The bridge the job was dispatched to.";
|
|
488
|
+
};
|
|
489
|
+
readonly kind: {
|
|
490
|
+
readonly $ref: "#/$defs/JobKind";
|
|
491
|
+
};
|
|
492
|
+
readonly state: {
|
|
493
|
+
readonly $ref: "#/$defs/JobState";
|
|
494
|
+
};
|
|
495
|
+
readonly repo: {
|
|
496
|
+
readonly $ref: "#/$defs/RepoResource";
|
|
497
|
+
readonly description: "The repository the job acts on. Absent for a namespace-wide `inspect` sweep or a job with no repository (`beginBind`, `beginAccountLink`).";
|
|
498
|
+
};
|
|
499
|
+
readonly number: {
|
|
500
|
+
readonly type: "integer";
|
|
501
|
+
readonly minimum: 1;
|
|
502
|
+
readonly description: "The pull request a `closePullRequest` job closes, in `repo` — the job's own `number`. Present for a `closePullRequest` job and absent for every other kind.";
|
|
503
|
+
};
|
|
504
|
+
readonly attempts: {
|
|
505
|
+
readonly type: "integer";
|
|
506
|
+
readonly minimum: 0;
|
|
507
|
+
readonly description: "How many times the VTC has dispatched this job to a bridge.";
|
|
508
|
+
};
|
|
509
|
+
readonly createdAt: {
|
|
510
|
+
readonly type: "string";
|
|
511
|
+
readonly format: "date-time";
|
|
512
|
+
readonly description: "When the VTC queued the job.";
|
|
513
|
+
};
|
|
514
|
+
readonly acceptedAt: {
|
|
515
|
+
readonly type: "string";
|
|
516
|
+
readonly format: "date-time";
|
|
517
|
+
readonly description: "When a bridge last accepted it. Absent while `state` is `pending` or `cancelled`.";
|
|
518
|
+
};
|
|
519
|
+
readonly lastError: {
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
readonly maxLength: 1024;
|
|
522
|
+
readonly description: "The bridge's last reported error, verbatim. Diagnostic prose for an administrator; a consumer MUST NOT parse it. Absent unless `state` is `partial` or `failed`.";
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
readonly Response: {
|
|
527
|
+
readonly $anchor: "response";
|
|
528
|
+
readonly title: "Git Namespaces — List Bridge Jobs — response payload";
|
|
529
|
+
readonly description: "The matching jobs, newest first.";
|
|
530
|
+
readonly type: "object";
|
|
531
|
+
readonly additionalProperties: false;
|
|
532
|
+
readonly required: readonly ["jobs"];
|
|
533
|
+
readonly properties: {
|
|
534
|
+
readonly jobs: {
|
|
535
|
+
readonly type: "array";
|
|
536
|
+
readonly items: {
|
|
537
|
+
readonly $ref: "#/$defs/JobRow";
|
|
538
|
+
};
|
|
539
|
+
readonly description: "Jobs matching `namespace` and `state`, newest (`createdAt`) first.";
|
|
540
|
+
};
|
|
541
|
+
readonly nextCursor: {
|
|
542
|
+
readonly type: readonly ["string", "null"];
|
|
543
|
+
readonly description: "Continuation token for the next page, or `null` when this is the last.";
|
|
544
|
+
};
|
|
545
|
+
readonly ext: {
|
|
546
|
+
readonly $ref: "#/$defs/Ext";
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
readonly Ext: {
|
|
551
|
+
readonly title: "Ext";
|
|
552
|
+
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.";
|
|
553
|
+
readonly type: "object";
|
|
554
|
+
readonly minProperties: 1;
|
|
555
|
+
readonly additionalProperties: true;
|
|
556
|
+
readonly propertyNames: {
|
|
557
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
readonly RepoResource: {
|
|
561
|
+
readonly title: "RepoResource";
|
|
562
|
+
readonly description: "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.";
|
|
563
|
+
readonly type: "string";
|
|
564
|
+
readonly maxLength: 455;
|
|
565
|
+
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}$";
|
|
566
|
+
};
|
|
567
|
+
readonly Did: {
|
|
568
|
+
readonly title: "Did";
|
|
569
|
+
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.";
|
|
570
|
+
readonly type: "string";
|
|
571
|
+
readonly maxLength: 2048;
|
|
572
|
+
readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
|
|
573
|
+
};
|
|
574
|
+
readonly NamespaceId: {
|
|
575
|
+
readonly title: "NamespaceId";
|
|
576
|
+
readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
|
|
577
|
+
readonly type: "string";
|
|
578
|
+
readonly minLength: 1;
|
|
579
|
+
readonly maxLength: 128;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
586
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
587
|
+
* parties (§7.3 item 5).
|
|
588
|
+
*/
|
|
589
|
+
export declare const RESPONSE_SPEC: {
|
|
590
|
+
readonly typeUri: "https://trusttasks.org/spec/git-ns/bridge/job/list/0.2#response";
|
|
591
|
+
readonly isBearer: false;
|
|
592
|
+
readonly isProofRequired: true;
|
|
593
|
+
readonly isRecipientRequired: true;
|
|
594
|
+
readonly isIssuedAtRequired: false;
|
|
595
|
+
readonly payloadSchema: {
|
|
596
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
597
|
+
readonly $ref: "#/$defs/Response";
|
|
598
|
+
readonly $defs: {
|
|
599
|
+
readonly JobId: {
|
|
600
|
+
readonly title: "JobId";
|
|
601
|
+
readonly type: "string";
|
|
602
|
+
readonly minLength: 1;
|
|
603
|
+
readonly maxLength: 128;
|
|
604
|
+
readonly description: "The VTC's identifier for the job, unique across the VTC's jobs. The same identifier git-ns/bridge/job (0.4 and 0.5) assigns and git-ns/bridge/result/0.1 reports against.";
|
|
605
|
+
};
|
|
606
|
+
readonly JobKind: {
|
|
607
|
+
readonly title: "JobKind";
|
|
608
|
+
readonly type: "string";
|
|
609
|
+
readonly enum: readonly ["projectRoles", "createRepo", "bootstrap", "archive", "inspect", "beginBind", "beginAccountLink", "closePullRequest"];
|
|
610
|
+
readonly description: "What the job asks the bridge to do — the same eight kinds git-ns/bridge/job/0.5 defines. Kept as its own enum here, rather than a cross-file $ref, because job/0.5 declares its `kind` inline rather than as a named $def; the two lists change together.";
|
|
611
|
+
};
|
|
612
|
+
readonly JobState: {
|
|
613
|
+
readonly title: "JobState";
|
|
614
|
+
readonly type: "string";
|
|
615
|
+
readonly enum: readonly ["pending", "accepted", "succeeded", "partial", "failed", "cancelled"];
|
|
616
|
+
readonly description: "The VTC's own queue state for the job, driven by git-ns/bridge/result/0.1 reports. `pending` — queued, not yet accepted. `accepted` — the bridge has taken it and not yet reported an outcome. `succeeded` — every step completed. `partial` — some steps completed and at least one did not. `failed` — no step completed. `cancelled` — withdrawn before the bridge accepted it.";
|
|
617
|
+
};
|
|
618
|
+
readonly JobRow: {
|
|
619
|
+
readonly title: "JobRow";
|
|
620
|
+
readonly description: "One bridge job as the administrator's console shows it.";
|
|
621
|
+
readonly type: "object";
|
|
622
|
+
readonly additionalProperties: false;
|
|
623
|
+
readonly dependentRequired: {
|
|
624
|
+
readonly number: readonly ["repo"];
|
|
625
|
+
};
|
|
626
|
+
readonly required: readonly ["jobId", "namespace", "bridgeDid", "kind", "state", "attempts", "createdAt"];
|
|
627
|
+
readonly properties: {
|
|
628
|
+
readonly jobId: {
|
|
629
|
+
readonly $ref: "#/$defs/JobId";
|
|
630
|
+
};
|
|
631
|
+
readonly namespace: {
|
|
632
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
633
|
+
};
|
|
634
|
+
readonly bridgeDid: {
|
|
635
|
+
readonly $ref: "#/$defs/Did";
|
|
636
|
+
readonly description: "The bridge the job was dispatched to.";
|
|
637
|
+
};
|
|
638
|
+
readonly kind: {
|
|
639
|
+
readonly $ref: "#/$defs/JobKind";
|
|
640
|
+
};
|
|
641
|
+
readonly state: {
|
|
642
|
+
readonly $ref: "#/$defs/JobState";
|
|
643
|
+
};
|
|
644
|
+
readonly repo: {
|
|
645
|
+
readonly $ref: "#/$defs/RepoResource";
|
|
646
|
+
readonly description: "The repository the job acts on. Absent for a namespace-wide `inspect` sweep or a job with no repository (`beginBind`, `beginAccountLink`).";
|
|
647
|
+
};
|
|
648
|
+
readonly number: {
|
|
649
|
+
readonly type: "integer";
|
|
650
|
+
readonly minimum: 1;
|
|
651
|
+
readonly description: "The pull request a `closePullRequest` job closes, in `repo` — the job's own `number`. Present for a `closePullRequest` job and absent for every other kind.";
|
|
652
|
+
};
|
|
653
|
+
readonly attempts: {
|
|
654
|
+
readonly type: "integer";
|
|
655
|
+
readonly minimum: 0;
|
|
656
|
+
readonly description: "How many times the VTC has dispatched this job to a bridge.";
|
|
657
|
+
};
|
|
658
|
+
readonly createdAt: {
|
|
659
|
+
readonly type: "string";
|
|
660
|
+
readonly format: "date-time";
|
|
661
|
+
readonly description: "When the VTC queued the job.";
|
|
662
|
+
};
|
|
663
|
+
readonly acceptedAt: {
|
|
664
|
+
readonly type: "string";
|
|
665
|
+
readonly format: "date-time";
|
|
666
|
+
readonly description: "When a bridge last accepted it. Absent while `state` is `pending` or `cancelled`.";
|
|
667
|
+
};
|
|
668
|
+
readonly lastError: {
|
|
669
|
+
readonly type: "string";
|
|
670
|
+
readonly maxLength: 1024;
|
|
671
|
+
readonly description: "The bridge's last reported error, verbatim. Diagnostic prose for an administrator; a consumer MUST NOT parse it. Absent unless `state` is `partial` or `failed`.";
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
readonly Response: {
|
|
676
|
+
readonly $anchor: "response";
|
|
677
|
+
readonly title: "Git Namespaces — List Bridge Jobs — response payload";
|
|
678
|
+
readonly description: "The matching jobs, newest first.";
|
|
679
|
+
readonly type: "object";
|
|
680
|
+
readonly additionalProperties: false;
|
|
681
|
+
readonly required: readonly ["jobs"];
|
|
682
|
+
readonly properties: {
|
|
683
|
+
readonly jobs: {
|
|
684
|
+
readonly type: "array";
|
|
685
|
+
readonly items: {
|
|
686
|
+
readonly $ref: "#/$defs/JobRow";
|
|
687
|
+
};
|
|
688
|
+
readonly description: "Jobs matching `namespace` and `state`, newest (`createdAt`) first.";
|
|
689
|
+
};
|
|
690
|
+
readonly nextCursor: {
|
|
691
|
+
readonly type: readonly ["string", "null"];
|
|
692
|
+
readonly description: "Continuation token for the next page, or `null` when this is the last.";
|
|
693
|
+
};
|
|
694
|
+
readonly ext: {
|
|
695
|
+
readonly $ref: "#/$defs/Ext";
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
readonly Ext: {
|
|
700
|
+
readonly title: "Ext";
|
|
701
|
+
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.";
|
|
702
|
+
readonly type: "object";
|
|
703
|
+
readonly minProperties: 1;
|
|
704
|
+
readonly additionalProperties: true;
|
|
705
|
+
readonly propertyNames: {
|
|
706
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
readonly RepoResource: {
|
|
710
|
+
readonly title: "RepoResource";
|
|
711
|
+
readonly description: "A forge-qualified resource naming exactly one repository: `<forge-host>/<owner>/<repo>`, lowercase.";
|
|
712
|
+
readonly type: "string";
|
|
713
|
+
readonly maxLength: 455;
|
|
714
|
+
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}$";
|
|
715
|
+
};
|
|
716
|
+
readonly Did: {
|
|
717
|
+
readonly title: "Did";
|
|
718
|
+
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.";
|
|
719
|
+
readonly type: "string";
|
|
720
|
+
readonly maxLength: 2048;
|
|
721
|
+
readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
|
|
722
|
+
};
|
|
723
|
+
readonly NamespaceId: {
|
|
724
|
+
readonly title: "NamespaceId";
|
|
725
|
+
readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
|
|
726
|
+
readonly type: "string";
|
|
727
|
+
readonly minLength: 1;
|
|
728
|
+
readonly maxLength: 128;
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
//# sourceMappingURL=payload.d.ts.map
|