@openvtc/trust-tasks 0.21.13 → 0.21.15

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 (70) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/dist/_shared/components.d.ts +91 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/_shared/0.3/session.d.ts +16 -0
  5. package/dist/auth/_shared/0.3/session.d.ts.map +1 -0
  6. package/dist/auth/_shared/0.3/session.js +6 -0
  7. package/dist/auth/_shared/0.3/session.js.map +1 -0
  8. package/dist/auth/authenticate/0.3/payload.d.ts +852 -0
  9. package/dist/auth/authenticate/0.3/payload.d.ts.map +1 -0
  10. package/dist/auth/authenticate/0.3/payload.js +442 -0
  11. package/dist/auth/authenticate/0.3/payload.js.map +1 -0
  12. package/dist/auth/refresh/0.2/payload.d.ts +729 -0
  13. package/dist/auth/refresh/0.2/payload.d.ts.map +1 -0
  14. package/dist/auth/refresh/0.2/payload.js +392 -0
  15. package/dist/auth/refresh/0.2/payload.js.map +1 -0
  16. package/dist/git-ns/_shared/0.5/git-ns.d.ts +16 -0
  17. package/dist/git-ns/_shared/0.5/git-ns.d.ts.map +1 -0
  18. package/dist/git-ns/_shared/0.5/git-ns.js +6 -0
  19. package/dist/git-ns/_shared/0.5/git-ns.js.map +1 -0
  20. package/dist/git-ns/account/list/0.1/payload.d.ts +598 -0
  21. package/dist/git-ns/account/list/0.1/payload.d.ts.map +1 -0
  22. package/dist/git-ns/account/list/0.1/payload.js +317 -0
  23. package/dist/git-ns/account/list/0.1/payload.js.map +1 -0
  24. package/dist/git-ns/activity/list/0.1/payload.d.ts +642 -0
  25. package/dist/git-ns/activity/list/0.1/payload.d.ts.map +1 -0
  26. package/dist/git-ns/activity/list/0.1/payload.js +343 -0
  27. package/dist/git-ns/activity/list/0.1/payload.js.map +1 -0
  28. package/dist/git-ns/bridge/job/list/0.1/payload.d.ts +697 -0
  29. package/dist/git-ns/bridge/job/list/0.1/payload.d.ts.map +1 -0
  30. package/dist/git-ns/bridge/job/list/0.1/payload.js +386 -0
  31. package/dist/git-ns/bridge/job/list/0.1/payload.js.map +1 -0
  32. package/dist/git-ns/projection/show/0.1/payload.d.ts +705 -0
  33. package/dist/git-ns/projection/show/0.1/payload.d.ts.map +1 -0
  34. package/dist/git-ns/projection/show/0.1/payload.js +377 -0
  35. package/dist/git-ns/projection/show/0.1/payload.js.map +1 -0
  36. package/dist/git-ns/right/issued-by-departed/0.1/payload.d.ts +862 -0
  37. package/dist/git-ns/right/issued-by-departed/0.1/payload.d.ts.map +1 -0
  38. package/dist/git-ns/right/issued-by-departed/0.1/payload.js +487 -0
  39. package/dist/git-ns/right/issued-by-departed/0.1/payload.js.map +1 -0
  40. package/dist/git-ns/right/list/0.1/payload.d.ts +773 -0
  41. package/dist/git-ns/right/list/0.1/payload.d.ts.map +1 -0
  42. package/dist/git-ns/right/list/0.1/payload.js +439 -0
  43. package/dist/git-ns/right/list/0.1/payload.js.map +1 -0
  44. package/dist/index.d.ts +12 -0
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +12 -0
  47. package/dist/index.js.map +1 -1
  48. package/dist/vtc/relationships/revoke/0.2/payload.d.ts +287 -0
  49. package/dist/vtc/relationships/revoke/0.2/payload.d.ts.map +1 -0
  50. package/dist/vtc/relationships/revoke/0.2/payload.js +159 -0
  51. package/dist/vtc/relationships/revoke/0.2/payload.js.map +1 -0
  52. package/dist/vtc/vetting/vetters/resend/0.2/payload.d.ts +254 -0
  53. package/dist/vtc/vetting/vetters/resend/0.2/payload.d.ts.map +1 -0
  54. package/dist/vtc/vetting/vetters/resend/0.2/payload.js +142 -0
  55. package/dist/vtc/vetting/vetters/resend/0.2/payload.js.map +1 -0
  56. package/package.json +1 -1
  57. package/src/_shared/components.ts +91 -0
  58. package/src/auth/_shared/0.3/session.ts +17 -0
  59. package/src/auth/authenticate/0.3/payload.ts +527 -0
  60. package/src/auth/refresh/0.2/payload.ts +444 -0
  61. package/src/git-ns/_shared/0.5/git-ns.ts +17 -0
  62. package/src/git-ns/account/list/0.1/payload.ts +392 -0
  63. package/src/git-ns/activity/list/0.1/payload.ts +430 -0
  64. package/src/git-ns/bridge/job/list/0.1/payload.ts +490 -0
  65. package/src/git-ns/projection/show/0.1/payload.ts +479 -0
  66. package/src/git-ns/right/issued-by-departed/0.1/payload.ts +550 -0
  67. package/src/git-ns/right/list/0.1/payload.ts +493 -0
  68. package/src/index.ts +12 -0
  69. package/src/vtc/relationships/revoke/0.2/payload.ts +209 -0
  70. package/src/vtc/vetting/vetters/resend/0.2/payload.ts +183 -0
@@ -0,0 +1,642 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/activity/list/0.1/payload.schema.json
4
+ */
5
+ import type { Did_GitNsV0_3 as Did, Ext, NamespaceId, Resource, Right } from "../../../../_shared/components.js";
6
+ /**
7
+ * A namespace's administrators list recent rights changes, drift reports and bridge jobs in the namespaces they administer — every namespace, for a community administrator. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface GitNamespacesListActivityPayload {
10
+ /**
11
+ * Only activity in this namespace. Absent: every administered namespace.
12
+ */
13
+ namespace?: NamespaceId;
14
+ /**
15
+ * Opaque continuation token from a previous response's `nextCursor`. A consumer supplying a `cursor` MUST NOT also change `namespace` from the request that produced it — start a fresh query instead.
16
+ */
17
+ cursor?: string;
18
+ /**
19
+ * Maximum items to return in this page. A VTC clamps to 1..=500 (default 100).
20
+ */
21
+ limit?: number;
22
+ ext?: Ext;
23
+ }
24
+ /**
25
+ * The matching items, newest first.
26
+ */
27
+ export interface GitNamespacesListActivityResponsePayload {
28
+ /**
29
+ * Items in administered namespaces, newest (`at`) first.
30
+ */
31
+ items: ActivityItem[];
32
+ /**
33
+ * Continuation token for the next page, or `null` when this is the last.
34
+ */
35
+ nextCursor?: string | null;
36
+ ext?: Ext;
37
+ }
38
+ /**
39
+ * One thing that happened in a namespace.
40
+ */
41
+ export interface ActivityItem {
42
+ /**
43
+ * When it happened: the audit row's timestamp, or the job's acceptance time (its creation time if never accepted).
44
+ */
45
+ at: string;
46
+ /**
47
+ * What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.
48
+ */
49
+ action: string;
50
+ /**
51
+ * The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).
52
+ */
53
+ namespace?: NamespaceId;
54
+ /**
55
+ * The resource the item concerns, where it names one.
56
+ */
57
+ resource?: Resource;
58
+ /**
59
+ * The right a rights-change item concerns. Absent for a drift report or a job item.
60
+ */
61
+ right?: Right;
62
+ /**
63
+ * Who acted, for an audit item. Absent when a right-to-be-forgotten erasure has removed it from the audit row, and always absent for a job item, which has no actor of its own.
64
+ */
65
+ actor?: Did;
66
+ /**
67
+ * Whose right it was, for a rights-change audit item. Absent likewise on erasure, and always absent for a job item.
68
+ */
69
+ subject?: Did;
70
+ /**
71
+ * A machine-readable qualifier: `departed` on a departure-triggered change, the old name on a rename, a job's queue state, a drift count. A producer MUST NOT put free-form or personal prose here beyond what the qualifier itself names.
72
+ */
73
+ detail?: string;
74
+ }
75
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
76
+ export type { Did, Ext, NamespaceId, Resource, Right };
77
+ /** Trust Task type URI. */
78
+ export declare const TYPE_URI: "https://trusttasks.org/spec/git-ns/activity/list/0.1";
79
+ /** Stable alias for this specification's request payload shape. */
80
+ export type Payload = GitNamespacesListActivityPayload;
81
+ /** Trust Task response type URI (request type URI + "#response"). */
82
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/git-ns/activity/list/0.1#response";
83
+ /** Stable alias for this specification's success-response payload shape. */
84
+ export type Response = GitNamespacesListActivityResponsePayload;
85
+ /**
86
+ * This specification's payload schema, as a value.
87
+ *
88
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
89
+ * rather than only as a `.json` file because TypeScript types are erased
90
+ * at runtime: without a schema a consumer has nothing to validate, and
91
+ * every REQUIRED payload member is optional in practice. Cross-file
92
+ * `$ref`s are already inlined, so it needs no resolver.
93
+ */
94
+ export declare const PAYLOAD_SCHEMA: {
95
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
96
+ readonly $id: "https://trusttasks.org/spec/git-ns/activity/list/0.1";
97
+ readonly title: "Git Namespaces — List Activity — payload";
98
+ readonly description: "A namespace's administrators list recent rights changes, drift reports and bridge jobs in the namespaces they administer — every namespace, for a community administrator. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
99
+ readonly type: "object";
100
+ readonly additionalProperties: false;
101
+ readonly properties: {
102
+ readonly namespace: {
103
+ readonly $ref: "#/$defs/NamespaceId";
104
+ readonly description: "Only activity in this namespace. Absent: every administered namespace.";
105
+ };
106
+ readonly cursor: {
107
+ readonly type: "string";
108
+ readonly description: "Opaque continuation token from a previous response's `nextCursor`. A consumer supplying a `cursor` MUST NOT also change `namespace` from the request that produced it — start a fresh query instead.";
109
+ };
110
+ readonly limit: {
111
+ readonly type: "integer";
112
+ readonly minimum: 1;
113
+ readonly maximum: 500;
114
+ readonly description: "Maximum items to return in this page. A VTC clamps to 1..=500 (default 100).";
115
+ };
116
+ readonly ext: {
117
+ readonly $ref: "#/$defs/Ext";
118
+ };
119
+ };
120
+ readonly $defs: {
121
+ readonly Source: {
122
+ readonly title: "Source";
123
+ readonly type: "string";
124
+ readonly enum: readonly ["audit", "job"];
125
+ readonly description: "`audit` — a git-ns audit row: a rights change or a drift report. `job` — a bridge job's queue state, as git-ns/bridge/job/list also reports it.";
126
+ };
127
+ readonly ActivityItem: {
128
+ readonly title: "ActivityItem";
129
+ readonly description: "One thing that happened in a namespace.";
130
+ readonly type: "object";
131
+ readonly additionalProperties: false;
132
+ readonly required: readonly ["at", "action", "source"];
133
+ readonly properties: {
134
+ readonly at: {
135
+ readonly type: "string";
136
+ readonly format: "date-time";
137
+ readonly description: "When it happened: the audit row's timestamp, or the job's acceptance time (its creation time if never accepted).";
138
+ };
139
+ readonly action: {
140
+ readonly type: "string";
141
+ readonly minLength: 1;
142
+ readonly maxLength: 128;
143
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$";
144
+ readonly description: "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.";
145
+ };
146
+ readonly namespace: {
147
+ readonly $ref: "#/$defs/NamespaceId";
148
+ readonly description: "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).";
149
+ };
150
+ readonly resource: {
151
+ readonly $ref: "#/$defs/Resource";
152
+ readonly description: "The resource the item concerns, where it names one.";
153
+ };
154
+ readonly right: {
155
+ readonly $ref: "#/$defs/Right";
156
+ readonly description: "The right a rights-change item concerns. Absent for a drift report or a job item.";
157
+ };
158
+ readonly actor: {
159
+ readonly $ref: "#/$defs/Did";
160
+ readonly description: "Who acted, for an audit item. Absent when a right-to-be-forgotten erasure has removed it from the audit row, and always absent for a job item, which has no actor of its own.";
161
+ };
162
+ readonly subject: {
163
+ readonly $ref: "#/$defs/Did";
164
+ readonly description: "Whose right it was, for a rights-change audit item. Absent likewise on erasure, and always absent for a job item.";
165
+ };
166
+ readonly detail: {
167
+ readonly type: "string";
168
+ readonly maxLength: 1024;
169
+ readonly description: "A machine-readable qualifier: `departed` on a departure-triggered change, the old name on a rename, a job's queue state, a drift count. A producer MUST NOT put free-form or personal prose here beyond what the qualifier itself names.";
170
+ };
171
+ };
172
+ };
173
+ readonly Response: {
174
+ readonly $anchor: "response";
175
+ readonly title: "Git Namespaces — List Activity — response payload";
176
+ readonly description: "The matching items, newest first.";
177
+ readonly type: "object";
178
+ readonly additionalProperties: false;
179
+ readonly required: readonly ["items"];
180
+ readonly properties: {
181
+ readonly items: {
182
+ readonly type: "array";
183
+ readonly items: {
184
+ readonly $ref: "#/$defs/ActivityItem";
185
+ };
186
+ readonly description: "Items in administered namespaces, newest (`at`) first.";
187
+ };
188
+ readonly nextCursor: {
189
+ readonly type: readonly ["string", "null"];
190
+ readonly description: "Continuation token for the next page, or `null` when this is the last.";
191
+ };
192
+ readonly ext: {
193
+ readonly $ref: "#/$defs/Ext";
194
+ };
195
+ };
196
+ };
197
+ readonly Ext: {
198
+ readonly title: "Ext";
199
+ 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.";
200
+ readonly type: "object";
201
+ readonly minProperties: 1;
202
+ readonly additionalProperties: true;
203
+ readonly propertyNames: {
204
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
205
+ };
206
+ };
207
+ readonly Did: {
208
+ readonly title: "Did";
209
+ 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.";
210
+ readonly type: "string";
211
+ readonly maxLength: 2048;
212
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
213
+ };
214
+ readonly Right: {
215
+ readonly title: "Right";
216
+ readonly description: "One of the five git rights. Each string is also the TRQP `action` the VTC publishes the right under in its Trust Registry, so it is carried verbatim. `git.ns.admin` and `git.repo.create` apply to a namespace resource; `git.repo.own` and `git.repo.maintain` to a repository resource; `git.commit.sign` to either.";
217
+ readonly type: "string";
218
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
219
+ };
220
+ readonly Resource: {
221
+ readonly title: "Resource";
222
+ readonly description: "A forge-qualified resource: `<forge-host>/<owner>` for a namespace, or `<forge-host>/<owner>/<repo>` for one repository, all lowercase — `github.com/acme`, `github.com/acme/widgets`, `codeberg.org/acme`. The forge is never implied: `acme/widgets` alone is not a resource. Containment is by whole segment: `github.com/acme` contains `github.com/acme/widgets` and does not contain `github.com/acme-labs/x` or `codeberg.org/acme/widgets`.";
223
+ readonly type: "string";
224
+ readonly maxLength: 455;
225
+ readonly pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+(?:/[a-z0-9_-][a-z0-9._-]{0,99}){1,2}$";
226
+ };
227
+ readonly NamespaceId: {
228
+ readonly title: "NamespaceId";
229
+ 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.";
230
+ readonly type: "string";
231
+ readonly minLength: 1;
232
+ readonly maxLength: 128;
233
+ };
234
+ };
235
+ };
236
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
237
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
238
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
239
+ readonly $ref: "#/$defs/Response";
240
+ readonly $defs: {
241
+ readonly Source: {
242
+ readonly title: "Source";
243
+ readonly type: "string";
244
+ readonly enum: readonly ["audit", "job"];
245
+ readonly description: "`audit` — a git-ns audit row: a rights change or a drift report. `job` — a bridge job's queue state, as git-ns/bridge/job/list also reports it.";
246
+ };
247
+ readonly ActivityItem: {
248
+ readonly title: "ActivityItem";
249
+ readonly description: "One thing that happened in a namespace.";
250
+ readonly type: "object";
251
+ readonly additionalProperties: false;
252
+ readonly required: readonly ["at", "action", "source"];
253
+ readonly properties: {
254
+ readonly at: {
255
+ readonly type: "string";
256
+ readonly format: "date-time";
257
+ readonly description: "When it happened: the audit row's timestamp, or the job's acceptance time (its creation time if never accepted).";
258
+ };
259
+ readonly action: {
260
+ readonly type: "string";
261
+ readonly minLength: 1;
262
+ readonly maxLength: 128;
263
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$";
264
+ readonly description: "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.";
265
+ };
266
+ readonly namespace: {
267
+ readonly $ref: "#/$defs/NamespaceId";
268
+ readonly description: "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).";
269
+ };
270
+ readonly resource: {
271
+ readonly $ref: "#/$defs/Resource";
272
+ readonly description: "The resource the item concerns, where it names one.";
273
+ };
274
+ readonly right: {
275
+ readonly $ref: "#/$defs/Right";
276
+ readonly description: "The right a rights-change item concerns. Absent for a drift report or a job item.";
277
+ };
278
+ readonly actor: {
279
+ readonly $ref: "#/$defs/Did";
280
+ readonly description: "Who acted, for an audit item. Absent when a right-to-be-forgotten erasure has removed it from the audit row, and always absent for a job item, which has no actor of its own.";
281
+ };
282
+ readonly subject: {
283
+ readonly $ref: "#/$defs/Did";
284
+ readonly description: "Whose right it was, for a rights-change audit item. Absent likewise on erasure, and always absent for a job item.";
285
+ };
286
+ readonly detail: {
287
+ readonly type: "string";
288
+ readonly maxLength: 1024;
289
+ readonly description: "A machine-readable qualifier: `departed` on a departure-triggered change, the old name on a rename, a job's queue state, a drift count. A producer MUST NOT put free-form or personal prose here beyond what the qualifier itself names.";
290
+ };
291
+ };
292
+ };
293
+ readonly Response: {
294
+ readonly $anchor: "response";
295
+ readonly title: "Git Namespaces — List Activity — response payload";
296
+ readonly description: "The matching items, newest first.";
297
+ readonly type: "object";
298
+ readonly additionalProperties: false;
299
+ readonly required: readonly ["items"];
300
+ readonly properties: {
301
+ readonly items: {
302
+ readonly type: "array";
303
+ readonly items: {
304
+ readonly $ref: "#/$defs/ActivityItem";
305
+ };
306
+ readonly description: "Items in administered namespaces, newest (`at`) first.";
307
+ };
308
+ readonly nextCursor: {
309
+ readonly type: readonly ["string", "null"];
310
+ readonly description: "Continuation token for the next page, or `null` when this is the last.";
311
+ };
312
+ readonly ext: {
313
+ readonly $ref: "#/$defs/Ext";
314
+ };
315
+ };
316
+ };
317
+ readonly Ext: {
318
+ readonly title: "Ext";
319
+ 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.";
320
+ readonly type: "object";
321
+ readonly minProperties: 1;
322
+ readonly additionalProperties: true;
323
+ readonly propertyNames: {
324
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
325
+ };
326
+ };
327
+ readonly Did: {
328
+ readonly title: "Did";
329
+ 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.";
330
+ readonly type: "string";
331
+ readonly maxLength: 2048;
332
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
333
+ };
334
+ readonly Right: {
335
+ readonly title: "Right";
336
+ readonly description: "One of the five git rights. Each string is also the TRQP `action` the VTC publishes the right under in its Trust Registry, so it is carried verbatim. `git.ns.admin` and `git.repo.create` apply to a namespace resource; `git.repo.own` and `git.repo.maintain` to a repository resource; `git.commit.sign` to either.";
337
+ readonly type: "string";
338
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
339
+ };
340
+ readonly Resource: {
341
+ readonly title: "Resource";
342
+ readonly description: "A forge-qualified resource: `<forge-host>/<owner>` for a namespace, or `<forge-host>/<owner>/<repo>` for one repository, all lowercase — `github.com/acme`, `github.com/acme/widgets`, `codeberg.org/acme`. The forge is never implied: `acme/widgets` alone is not a resource. Containment is by whole segment: `github.com/acme` contains `github.com/acme/widgets` and does not contain `github.com/acme-labs/x` or `codeberg.org/acme/widgets`.";
343
+ readonly type: "string";
344
+ readonly maxLength: 455;
345
+ readonly pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+(?:/[a-z0-9_-][a-z0-9._-]{0,99}){1,2}$";
346
+ };
347
+ readonly NamespaceId: {
348
+ readonly title: "NamespaceId";
349
+ 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.";
350
+ readonly type: "string";
351
+ readonly minLength: 1;
352
+ readonly maxLength: 128;
353
+ };
354
+ };
355
+ };
356
+ /**
357
+ * SPEC.md §7.2 policy for the request variant, from this specification's
358
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
359
+ * per-specification and cannot be derived from the document alone, and
360
+ * item 2 needs the schema this carries.
361
+ */
362
+ export declare const SPEC: {
363
+ readonly typeUri: "https://trusttasks.org/spec/git-ns/activity/list/0.1";
364
+ readonly isBearer: false;
365
+ readonly isProofRequired: true;
366
+ readonly isRecipientRequired: true;
367
+ readonly isIssuedAtRequired: false;
368
+ readonly payloadSchema: {
369
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
370
+ readonly $id: "https://trusttasks.org/spec/git-ns/activity/list/0.1";
371
+ readonly title: "Git Namespaces — List Activity — payload";
372
+ readonly description: "A namespace's administrators list recent rights changes, drift reports and bridge jobs in the namespaces they administer — every namespace, for a community administrator. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
373
+ readonly type: "object";
374
+ readonly additionalProperties: false;
375
+ readonly properties: {
376
+ readonly namespace: {
377
+ readonly $ref: "#/$defs/NamespaceId";
378
+ readonly description: "Only activity in this namespace. Absent: every administered namespace.";
379
+ };
380
+ readonly cursor: {
381
+ readonly type: "string";
382
+ readonly description: "Opaque continuation token from a previous response's `nextCursor`. A consumer supplying a `cursor` MUST NOT also change `namespace` from the request that produced it — start a fresh query instead.";
383
+ };
384
+ readonly limit: {
385
+ readonly type: "integer";
386
+ readonly minimum: 1;
387
+ readonly maximum: 500;
388
+ readonly description: "Maximum items to return in this page. A VTC clamps to 1..=500 (default 100).";
389
+ };
390
+ readonly ext: {
391
+ readonly $ref: "#/$defs/Ext";
392
+ };
393
+ };
394
+ readonly $defs: {
395
+ readonly Source: {
396
+ readonly title: "Source";
397
+ readonly type: "string";
398
+ readonly enum: readonly ["audit", "job"];
399
+ readonly description: "`audit` — a git-ns audit row: a rights change or a drift report. `job` — a bridge job's queue state, as git-ns/bridge/job/list also reports it.";
400
+ };
401
+ readonly ActivityItem: {
402
+ readonly title: "ActivityItem";
403
+ readonly description: "One thing that happened in a namespace.";
404
+ readonly type: "object";
405
+ readonly additionalProperties: false;
406
+ readonly required: readonly ["at", "action", "source"];
407
+ readonly properties: {
408
+ readonly at: {
409
+ readonly type: "string";
410
+ readonly format: "date-time";
411
+ readonly description: "When it happened: the audit row's timestamp, or the job's acceptance time (its creation time if never accepted).";
412
+ };
413
+ readonly action: {
414
+ readonly type: "string";
415
+ readonly minLength: 1;
416
+ readonly maxLength: 128;
417
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$";
418
+ readonly description: "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.";
419
+ };
420
+ readonly namespace: {
421
+ readonly $ref: "#/$defs/NamespaceId";
422
+ readonly description: "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).";
423
+ };
424
+ readonly resource: {
425
+ readonly $ref: "#/$defs/Resource";
426
+ readonly description: "The resource the item concerns, where it names one.";
427
+ };
428
+ readonly right: {
429
+ readonly $ref: "#/$defs/Right";
430
+ readonly description: "The right a rights-change item concerns. Absent for a drift report or a job item.";
431
+ };
432
+ readonly actor: {
433
+ readonly $ref: "#/$defs/Did";
434
+ readonly description: "Who acted, for an audit item. Absent when a right-to-be-forgotten erasure has removed it from the audit row, and always absent for a job item, which has no actor of its own.";
435
+ };
436
+ readonly subject: {
437
+ readonly $ref: "#/$defs/Did";
438
+ readonly description: "Whose right it was, for a rights-change audit item. Absent likewise on erasure, and always absent for a job item.";
439
+ };
440
+ readonly detail: {
441
+ readonly type: "string";
442
+ readonly maxLength: 1024;
443
+ readonly description: "A machine-readable qualifier: `departed` on a departure-triggered change, the old name on a rename, a job's queue state, a drift count. A producer MUST NOT put free-form or personal prose here beyond what the qualifier itself names.";
444
+ };
445
+ };
446
+ };
447
+ readonly Response: {
448
+ readonly $anchor: "response";
449
+ readonly title: "Git Namespaces — List Activity — response payload";
450
+ readonly description: "The matching items, newest first.";
451
+ readonly type: "object";
452
+ readonly additionalProperties: false;
453
+ readonly required: readonly ["items"];
454
+ readonly properties: {
455
+ readonly items: {
456
+ readonly type: "array";
457
+ readonly items: {
458
+ readonly $ref: "#/$defs/ActivityItem";
459
+ };
460
+ readonly description: "Items in administered namespaces, newest (`at`) first.";
461
+ };
462
+ readonly nextCursor: {
463
+ readonly type: readonly ["string", "null"];
464
+ readonly description: "Continuation token for the next page, or `null` when this is the last.";
465
+ };
466
+ readonly ext: {
467
+ readonly $ref: "#/$defs/Ext";
468
+ };
469
+ };
470
+ };
471
+ readonly Ext: {
472
+ readonly title: "Ext";
473
+ 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.";
474
+ readonly type: "object";
475
+ readonly minProperties: 1;
476
+ readonly additionalProperties: true;
477
+ readonly propertyNames: {
478
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
479
+ };
480
+ };
481
+ readonly Did: {
482
+ readonly title: "Did";
483
+ 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.";
484
+ readonly type: "string";
485
+ readonly maxLength: 2048;
486
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
487
+ };
488
+ readonly Right: {
489
+ readonly title: "Right";
490
+ readonly description: "One of the five git rights. Each string is also the TRQP `action` the VTC publishes the right under in its Trust Registry, so it is carried verbatim. `git.ns.admin` and `git.repo.create` apply to a namespace resource; `git.repo.own` and `git.repo.maintain` to a repository resource; `git.commit.sign` to either.";
491
+ readonly type: "string";
492
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
493
+ };
494
+ readonly Resource: {
495
+ readonly title: "Resource";
496
+ readonly description: "A forge-qualified resource: `<forge-host>/<owner>` for a namespace, or `<forge-host>/<owner>/<repo>` for one repository, all lowercase — `github.com/acme`, `github.com/acme/widgets`, `codeberg.org/acme`. The forge is never implied: `acme/widgets` alone is not a resource. Containment is by whole segment: `github.com/acme` contains `github.com/acme/widgets` and does not contain `github.com/acme-labs/x` or `codeberg.org/acme/widgets`.";
497
+ readonly type: "string";
498
+ readonly maxLength: 455;
499
+ readonly pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+(?:/[a-z0-9_-][a-z0-9._-]{0,99}){1,2}$";
500
+ };
501
+ readonly NamespaceId: {
502
+ readonly title: "NamespaceId";
503
+ 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.";
504
+ readonly type: "string";
505
+ readonly minLength: 1;
506
+ readonly maxLength: 128;
507
+ };
508
+ };
509
+ };
510
+ };
511
+ /**
512
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
513
+ * tracks the *issuer* party's requirement because a response swaps the
514
+ * parties (§7.3 item 5).
515
+ */
516
+ export declare const RESPONSE_SPEC: {
517
+ readonly typeUri: "https://trusttasks.org/spec/git-ns/activity/list/0.1#response";
518
+ readonly isBearer: false;
519
+ readonly isProofRequired: true;
520
+ readonly isRecipientRequired: true;
521
+ readonly isIssuedAtRequired: false;
522
+ readonly payloadSchema: {
523
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
524
+ readonly $ref: "#/$defs/Response";
525
+ readonly $defs: {
526
+ readonly Source: {
527
+ readonly title: "Source";
528
+ readonly type: "string";
529
+ readonly enum: readonly ["audit", "job"];
530
+ readonly description: "`audit` — a git-ns audit row: a rights change or a drift report. `job` — a bridge job's queue state, as git-ns/bridge/job/list also reports it.";
531
+ };
532
+ readonly ActivityItem: {
533
+ readonly title: "ActivityItem";
534
+ readonly description: "One thing that happened in a namespace.";
535
+ readonly type: "object";
536
+ readonly additionalProperties: false;
537
+ readonly required: readonly ["at", "action", "source"];
538
+ readonly properties: {
539
+ readonly at: {
540
+ readonly type: "string";
541
+ readonly format: "date-time";
542
+ readonly description: "When it happened: the audit row's timestamp, or the job's acceptance time (its creation time if never accepted).";
543
+ };
544
+ readonly action: {
545
+ readonly type: "string";
546
+ readonly minLength: 1;
547
+ readonly maxLength: 128;
548
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$";
549
+ readonly description: "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.";
550
+ };
551
+ readonly namespace: {
552
+ readonly $ref: "#/$defs/NamespaceId";
553
+ readonly description: "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).";
554
+ };
555
+ readonly resource: {
556
+ readonly $ref: "#/$defs/Resource";
557
+ readonly description: "The resource the item concerns, where it names one.";
558
+ };
559
+ readonly right: {
560
+ readonly $ref: "#/$defs/Right";
561
+ readonly description: "The right a rights-change item concerns. Absent for a drift report or a job item.";
562
+ };
563
+ readonly actor: {
564
+ readonly $ref: "#/$defs/Did";
565
+ readonly description: "Who acted, for an audit item. Absent when a right-to-be-forgotten erasure has removed it from the audit row, and always absent for a job item, which has no actor of its own.";
566
+ };
567
+ readonly subject: {
568
+ readonly $ref: "#/$defs/Did";
569
+ readonly description: "Whose right it was, for a rights-change audit item. Absent likewise on erasure, and always absent for a job item.";
570
+ };
571
+ readonly detail: {
572
+ readonly type: "string";
573
+ readonly maxLength: 1024;
574
+ readonly description: "A machine-readable qualifier: `departed` on a departure-triggered change, the old name on a rename, a job's queue state, a drift count. A producer MUST NOT put free-form or personal prose here beyond what the qualifier itself names.";
575
+ };
576
+ };
577
+ };
578
+ readonly Response: {
579
+ readonly $anchor: "response";
580
+ readonly title: "Git Namespaces — List Activity — response payload";
581
+ readonly description: "The matching items, newest first.";
582
+ readonly type: "object";
583
+ readonly additionalProperties: false;
584
+ readonly required: readonly ["items"];
585
+ readonly properties: {
586
+ readonly items: {
587
+ readonly type: "array";
588
+ readonly items: {
589
+ readonly $ref: "#/$defs/ActivityItem";
590
+ };
591
+ readonly description: "Items in administered namespaces, newest (`at`) first.";
592
+ };
593
+ readonly nextCursor: {
594
+ readonly type: readonly ["string", "null"];
595
+ readonly description: "Continuation token for the next page, or `null` when this is the last.";
596
+ };
597
+ readonly ext: {
598
+ readonly $ref: "#/$defs/Ext";
599
+ };
600
+ };
601
+ };
602
+ readonly Ext: {
603
+ readonly title: "Ext";
604
+ 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.";
605
+ readonly type: "object";
606
+ readonly minProperties: 1;
607
+ readonly additionalProperties: true;
608
+ readonly propertyNames: {
609
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
610
+ };
611
+ };
612
+ readonly Did: {
613
+ readonly title: "Did";
614
+ 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.";
615
+ readonly type: "string";
616
+ readonly maxLength: 2048;
617
+ readonly pattern: "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$";
618
+ };
619
+ readonly Right: {
620
+ readonly title: "Right";
621
+ readonly description: "One of the five git rights. Each string is also the TRQP `action` the VTC publishes the right under in its Trust Registry, so it is carried verbatim. `git.ns.admin` and `git.repo.create` apply to a namespace resource; `git.repo.own` and `git.repo.maintain` to a repository resource; `git.commit.sign` to either.";
622
+ readonly type: "string";
623
+ readonly enum: readonly ["git.ns.admin", "git.repo.create", "git.repo.own", "git.repo.maintain", "git.commit.sign"];
624
+ };
625
+ readonly Resource: {
626
+ readonly title: "Resource";
627
+ readonly description: "A forge-qualified resource: `<forge-host>/<owner>` for a namespace, or `<forge-host>/<owner>/<repo>` for one repository, all lowercase — `github.com/acme`, `github.com/acme/widgets`, `codeberg.org/acme`. The forge is never implied: `acme/widgets` alone is not a resource. Containment is by whole segment: `github.com/acme` contains `github.com/acme/widgets` and does not contain `github.com/acme-labs/x` or `codeberg.org/acme/widgets`.";
628
+ readonly type: "string";
629
+ readonly maxLength: 455;
630
+ readonly pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+(?:/[a-z0-9_-][a-z0-9._-]{0,99}){1,2}$";
631
+ };
632
+ readonly NamespaceId: {
633
+ readonly title: "NamespaceId";
634
+ 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.";
635
+ readonly type: "string";
636
+ readonly minLength: 1;
637
+ readonly maxLength: 128;
638
+ };
639
+ };
640
+ };
641
+ };
642
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/git-ns/activity/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,IAAI,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAGjH;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD;;OAEG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAEvD,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,gCAAgC,CAAC;AAEvD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC;AAE1G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,wCAAwC,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+JjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwI1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}