@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 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/git-ns/projection/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,IAAI,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAGpG;;GAEG;AACH,MAAM,WAAW,+CAA+C;IAC9D;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;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,uDAAuD;IACtE;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,MAAM,EAAE,KAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,377 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/git-ns/projection/show/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/git-ns/projection/show/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/git-ns/projection/show/0.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/git-ns/projection/show/0.1",
21
+ "title": "Git Namespaces — Show Trust Registry Projection — payload",
22
+ "description": "A community administrator reads what the VTC has published (and what it still owes) to the Trust Registry for its git namespaces. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "resource": {
27
+ "$ref": "#/$defs/Resource",
28
+ "description": "Only published records on this resource or inside it. Absent: every resource."
29
+ },
30
+ "cursor": {
31
+ "type": "string",
32
+ "description": "Opaque continuation token from a previous response's `nextCursor`. A consumer supplying a `cursor` MUST NOT also change `resource` from the request that produced it — start a fresh query instead."
33
+ },
34
+ "limit": {
35
+ "type": "integer",
36
+ "minimum": 1,
37
+ "maximum": 500,
38
+ "description": "Maximum published records to return in this page. A VTC clamps to 1..=500 (default 100)."
39
+ },
40
+ "ext": {
41
+ "$ref": "#/$defs/Ext"
42
+ }
43
+ },
44
+ "$defs": {
45
+ "Context": {
46
+ "title": "Context",
47
+ "description": "The record's context as published: what the TRQP record has no member of its own for. Not itself governed by this specification — it is the projector's internal shape, carried through unchanged, and a consumer MUST treat unrecognised members as opaque rather than failing on them.",
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": [
51
+ "framework"
52
+ ],
53
+ "properties": {
54
+ "framework": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "maxLength": 2048,
58
+ "description": "The Trust Task type URI the record was published under — this specification's framework constant for a recorded or implied right, or the fixed `git-trust/grant/0.1` URI for a role-derived one."
59
+ },
60
+ "origin": {
61
+ "type": "string",
62
+ "enum": [
63
+ "roleDerived"
64
+ ],
65
+ "description": "Present, and always `roleDerived`, exactly for a v0.1 `[hooks.git-trust] grant_on_role` tuple. Absent for a tuple sourced from a recorded or implied right."
66
+ },
67
+ "activeFrom": {
68
+ "type": "string",
69
+ "format": "date-time",
70
+ "description": "When the underlying right took effect. Absent for a role-derived tuple, which has no grant time of its own."
71
+ },
72
+ "activeTo": {
73
+ "type": "string",
74
+ "format": "date-time",
75
+ "description": "When the underlying right expires. Absent: no expiry, or the longest of two merged sources' expiries once neither is absent."
76
+ },
77
+ "impliedBy": {
78
+ "$ref": "#/$defs/Right",
79
+ "description": "Present when this tuple publishes a right implied by another recorded right (a repository's `git.commit.sign` implied by its `git.repo.own`, or a namespace's implied rights). Names the right that implies it."
80
+ }
81
+ }
82
+ },
83
+ "PublishedRow": {
84
+ "title": "PublishedRow",
85
+ "description": "One record the VTC has published to the Trust Registry.",
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "required": [
89
+ "entity",
90
+ "action",
91
+ "resource",
92
+ "context",
93
+ "publishedAt"
94
+ ],
95
+ "properties": {
96
+ "entity": {
97
+ "$ref": "#/$defs/Did",
98
+ "description": "The DID the record is about — the right's subject."
99
+ },
100
+ "action": {
101
+ "$ref": "#/$defs/Right",
102
+ "description": "The TRQP action the record is published under."
103
+ },
104
+ "resource": {
105
+ "$ref": "#/$defs/Resource"
106
+ },
107
+ "context": {
108
+ "$ref": "#/$defs/Context"
109
+ },
110
+ "publishedAt": {
111
+ "type": "string",
112
+ "format": "date-time",
113
+ "description": "When the VTC last wrote this record to the registry."
114
+ }
115
+ }
116
+ },
117
+ "Response": {
118
+ "$anchor": "response",
119
+ "title": "Git Namespaces — Show Trust Registry Projection — response payload",
120
+ "description": "What is published, and how far it is from what the VTC's records currently call for.",
121
+ "type": "object",
122
+ "additionalProperties": false,
123
+ "required": [
124
+ "registryConfigured",
125
+ "published",
126
+ "pendingChanges"
127
+ ],
128
+ "properties": {
129
+ "registryConfigured": {
130
+ "type": "boolean",
131
+ "description": "Whether this VTC can publish at all — a Trust Registry and its own publishing DID are configured. `false`: `published` is only what was last published before publishing was unconfigured, and `pendingChanges` still counts against the VTC's current records."
132
+ },
133
+ "published": {
134
+ "type": "array",
135
+ "items": {
136
+ "$ref": "#/$defs/PublishedRow"
137
+ },
138
+ "description": "Records matching `resource`, as the VTC's own mirror of what it last published, ordered by `resource` then `action` then `entity`."
139
+ },
140
+ "nextCursor": {
141
+ "type": [
142
+ "string",
143
+ "null"
144
+ ],
145
+ "description": "Continuation token for the next page of `published`, or `null` when this is the last."
146
+ },
147
+ "pendingChanges": {
148
+ "type": "integer",
149
+ "minimum": 0,
150
+ "description": "How many records the next reconciliation pass will add, remove or replace to bring the registry into line with the VTC's current rights — across the whole VTC, regardless of `resource` or paging. Zero means the registry already matches."
151
+ },
152
+ "ext": {
153
+ "$ref": "#/$defs/Ext"
154
+ }
155
+ }
156
+ },
157
+ "Ext": {
158
+ "title": "Ext",
159
+ "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.",
160
+ "type": "object",
161
+ "minProperties": 1,
162
+ "additionalProperties": true,
163
+ "propertyNames": {
164
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
165
+ }
166
+ },
167
+ "Resource": {
168
+ "title": "Resource",
169
+ "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`.",
170
+ "type": "string",
171
+ "maxLength": 455,
172
+ "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}$"
173
+ },
174
+ "Right": {
175
+ "title": "Right",
176
+ "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.",
177
+ "type": "string",
178
+ "enum": [
179
+ "git.ns.admin",
180
+ "git.repo.create",
181
+ "git.repo.own",
182
+ "git.repo.maintain",
183
+ "git.commit.sign"
184
+ ]
185
+ },
186
+ "Did": {
187
+ "title": "Did",
188
+ "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.",
189
+ "type": "string",
190
+ "maxLength": 2048,
191
+ "pattern": "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$"
192
+ }
193
+ }
194
+ };
195
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
196
+ export const RESPONSE_PAYLOAD_SCHEMA = {
197
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
198
+ "$ref": "#/$defs/Response",
199
+ "$defs": {
200
+ "Context": {
201
+ "title": "Context",
202
+ "description": "The record's context as published: what the TRQP record has no member of its own for. Not itself governed by this specification — it is the projector's internal shape, carried through unchanged, and a consumer MUST treat unrecognised members as opaque rather than failing on them.",
203
+ "type": "object",
204
+ "additionalProperties": false,
205
+ "required": [
206
+ "framework"
207
+ ],
208
+ "properties": {
209
+ "framework": {
210
+ "type": "string",
211
+ "minLength": 1,
212
+ "maxLength": 2048,
213
+ "description": "The Trust Task type URI the record was published under — this specification's framework constant for a recorded or implied right, or the fixed `git-trust/grant/0.1` URI for a role-derived one."
214
+ },
215
+ "origin": {
216
+ "type": "string",
217
+ "enum": [
218
+ "roleDerived"
219
+ ],
220
+ "description": "Present, and always `roleDerived`, exactly for a v0.1 `[hooks.git-trust] grant_on_role` tuple. Absent for a tuple sourced from a recorded or implied right."
221
+ },
222
+ "activeFrom": {
223
+ "type": "string",
224
+ "format": "date-time",
225
+ "description": "When the underlying right took effect. Absent for a role-derived tuple, which has no grant time of its own."
226
+ },
227
+ "activeTo": {
228
+ "type": "string",
229
+ "format": "date-time",
230
+ "description": "When the underlying right expires. Absent: no expiry, or the longest of two merged sources' expiries once neither is absent."
231
+ },
232
+ "impliedBy": {
233
+ "$ref": "#/$defs/Right",
234
+ "description": "Present when this tuple publishes a right implied by another recorded right (a repository's `git.commit.sign` implied by its `git.repo.own`, or a namespace's implied rights). Names the right that implies it."
235
+ }
236
+ }
237
+ },
238
+ "PublishedRow": {
239
+ "title": "PublishedRow",
240
+ "description": "One record the VTC has published to the Trust Registry.",
241
+ "type": "object",
242
+ "additionalProperties": false,
243
+ "required": [
244
+ "entity",
245
+ "action",
246
+ "resource",
247
+ "context",
248
+ "publishedAt"
249
+ ],
250
+ "properties": {
251
+ "entity": {
252
+ "$ref": "#/$defs/Did",
253
+ "description": "The DID the record is about — the right's subject."
254
+ },
255
+ "action": {
256
+ "$ref": "#/$defs/Right",
257
+ "description": "The TRQP action the record is published under."
258
+ },
259
+ "resource": {
260
+ "$ref": "#/$defs/Resource"
261
+ },
262
+ "context": {
263
+ "$ref": "#/$defs/Context"
264
+ },
265
+ "publishedAt": {
266
+ "type": "string",
267
+ "format": "date-time",
268
+ "description": "When the VTC last wrote this record to the registry."
269
+ }
270
+ }
271
+ },
272
+ "Response": {
273
+ "$anchor": "response",
274
+ "title": "Git Namespaces — Show Trust Registry Projection — response payload",
275
+ "description": "What is published, and how far it is from what the VTC's records currently call for.",
276
+ "type": "object",
277
+ "additionalProperties": false,
278
+ "required": [
279
+ "registryConfigured",
280
+ "published",
281
+ "pendingChanges"
282
+ ],
283
+ "properties": {
284
+ "registryConfigured": {
285
+ "type": "boolean",
286
+ "description": "Whether this VTC can publish at all — a Trust Registry and its own publishing DID are configured. `false`: `published` is only what was last published before publishing was unconfigured, and `pendingChanges` still counts against the VTC's current records."
287
+ },
288
+ "published": {
289
+ "type": "array",
290
+ "items": {
291
+ "$ref": "#/$defs/PublishedRow"
292
+ },
293
+ "description": "Records matching `resource`, as the VTC's own mirror of what it last published, ordered by `resource` then `action` then `entity`."
294
+ },
295
+ "nextCursor": {
296
+ "type": [
297
+ "string",
298
+ "null"
299
+ ],
300
+ "description": "Continuation token for the next page of `published`, or `null` when this is the last."
301
+ },
302
+ "pendingChanges": {
303
+ "type": "integer",
304
+ "minimum": 0,
305
+ "description": "How many records the next reconciliation pass will add, remove or replace to bring the registry into line with the VTC's current rights — across the whole VTC, regardless of `resource` or paging. Zero means the registry already matches."
306
+ },
307
+ "ext": {
308
+ "$ref": "#/$defs/Ext"
309
+ }
310
+ }
311
+ },
312
+ "Ext": {
313
+ "title": "Ext",
314
+ "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.",
315
+ "type": "object",
316
+ "minProperties": 1,
317
+ "additionalProperties": true,
318
+ "propertyNames": {
319
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
320
+ }
321
+ },
322
+ "Resource": {
323
+ "title": "Resource",
324
+ "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`.",
325
+ "type": "string",
326
+ "maxLength": 455,
327
+ "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}$"
328
+ },
329
+ "Right": {
330
+ "title": "Right",
331
+ "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.",
332
+ "type": "string",
333
+ "enum": [
334
+ "git.ns.admin",
335
+ "git.repo.create",
336
+ "git.repo.own",
337
+ "git.repo.maintain",
338
+ "git.commit.sign"
339
+ ]
340
+ },
341
+ "Did": {
342
+ "title": "Did",
343
+ "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.",
344
+ "type": "string",
345
+ "maxLength": 2048,
346
+ "pattern": "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$"
347
+ }
348
+ }
349
+ };
350
+ /**
351
+ * SPEC.md §7.2 policy for the request variant, from this specification's
352
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
353
+ * per-specification and cannot be derived from the document alone, and
354
+ * item 2 needs the schema this carries.
355
+ */
356
+ export const SPEC = {
357
+ typeUri: TYPE_URI,
358
+ isBearer: false,
359
+ isProofRequired: true,
360
+ isRecipientRequired: true,
361
+ isIssuedAtRequired: false,
362
+ payloadSchema: PAYLOAD_SCHEMA,
363
+ };
364
+ /**
365
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
366
+ * tracks the *issuer* party's requirement because a response swaps the
367
+ * parties (§7.3 item 5).
368
+ */
369
+ export const RESPONSE_SPEC = {
370
+ typeUri: RESPONSE_TYPE_URI,
371
+ isBearer: false,
372
+ isProofRequired: true,
373
+ isRecipientRequired: true,
374
+ isIssuedAtRequired: false,
375
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
376
+ };
377
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/git-ns/projection/show/0.1/payload.ts"],"names":[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