@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,254 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/vetters/resend/0.2/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue, and an administrator may do the same on a named member's behalf. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.
8
+ */
9
+ export interface VTCVettingVettersResendPayload {
10
+ /**
11
+ * The vetter to resend the live grant for, on an administrator's behalf. Requires the community-administrator capability. Absent: the request concerns the sender's own live grant, exactly as 0.1.
12
+ */
13
+ memberDid?: string;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * The credential the community delivered again.
18
+ */
19
+ export interface VTCVettingVettersResendResponsePayload {
20
+ /**
21
+ * The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.
22
+ */
23
+ credentialId: string;
24
+ /**
25
+ * That credential's `validUntil`.
26
+ */
27
+ validUntil: string;
28
+ }
29
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
30
+ export type { Ext };
31
+ /** Trust Task type URI. */
32
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
33
+ /** Stable alias for this specification's request payload shape. */
34
+ export type Payload = VTCVettingVettersResendPayload;
35
+ /** Trust Task response type URI (request type URI + "#response"). */
36
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2#response";
37
+ /** Stable alias for this specification's success-response payload shape. */
38
+ export type Response = VTCVettingVettersResendResponsePayload;
39
+ /**
40
+ * This specification's payload schema, as a value.
41
+ *
42
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
43
+ * rather than only as a `.json` file because TypeScript types are erased
44
+ * at runtime: without a schema a consumer has nothing to validate, and
45
+ * every REQUIRED payload member is optional in practice. Cross-file
46
+ * `$ref`s are already inlined, so it needs no resolver.
47
+ */
48
+ export declare const PAYLOAD_SCHEMA: {
49
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
50
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
51
+ readonly title: "VTC Vetting — Vetters Resend — payload";
52
+ readonly description: "A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue, and an administrator may do the same on a named member's behalf. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.";
53
+ readonly type: "object";
54
+ readonly additionalProperties: false;
55
+ readonly properties: {
56
+ readonly memberDid: {
57
+ readonly type: "string";
58
+ readonly minLength: 1;
59
+ readonly description: "The vetter to resend the live grant for, on an administrator's behalf. Requires the community-administrator capability. Absent: the request concerns the sender's own live grant, exactly as 0.1.";
60
+ };
61
+ readonly ext: {
62
+ readonly $ref: "#/$defs/Ext";
63
+ };
64
+ };
65
+ readonly $defs: {
66
+ readonly Response: {
67
+ readonly $anchor: "response";
68
+ readonly title: "VTC Vetting — Vetters Resend — response payload";
69
+ readonly description: "The credential the community delivered again.";
70
+ readonly type: "object";
71
+ readonly additionalProperties: false;
72
+ readonly required: readonly ["credentialId", "validUntil"];
73
+ readonly properties: {
74
+ readonly credentialId: {
75
+ readonly type: "string";
76
+ readonly minLength: 1;
77
+ readonly maxLength: 512;
78
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
79
+ readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
80
+ };
81
+ readonly validUntil: {
82
+ readonly type: "string";
83
+ readonly format: "date-time";
84
+ readonly description: "That credential's `validUntil`.";
85
+ };
86
+ };
87
+ };
88
+ readonly Ext: {
89
+ readonly title: "Ext";
90
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
91
+ readonly type: "object";
92
+ readonly minProperties: 1;
93
+ readonly additionalProperties: true;
94
+ readonly propertyNames: {
95
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
96
+ };
97
+ };
98
+ };
99
+ };
100
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
101
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
102
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
103
+ readonly $ref: "#/$defs/Response";
104
+ readonly $defs: {
105
+ readonly Response: {
106
+ readonly $anchor: "response";
107
+ readonly title: "VTC Vetting — Vetters Resend — response payload";
108
+ readonly description: "The credential the community delivered again.";
109
+ readonly type: "object";
110
+ readonly additionalProperties: false;
111
+ readonly required: readonly ["credentialId", "validUntil"];
112
+ readonly properties: {
113
+ readonly credentialId: {
114
+ readonly type: "string";
115
+ readonly minLength: 1;
116
+ readonly maxLength: 512;
117
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
118
+ readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
119
+ };
120
+ readonly validUntil: {
121
+ readonly type: "string";
122
+ readonly format: "date-time";
123
+ readonly description: "That credential's `validUntil`.";
124
+ };
125
+ };
126
+ };
127
+ readonly Ext: {
128
+ readonly title: "Ext";
129
+ 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.";
130
+ readonly type: "object";
131
+ readonly minProperties: 1;
132
+ readonly additionalProperties: true;
133
+ readonly propertyNames: {
134
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
135
+ };
136
+ };
137
+ };
138
+ };
139
+ /**
140
+ * SPEC.md §7.2 policy for the request variant, from this specification's
141
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
142
+ * per-specification and cannot be derived from the document alone, and
143
+ * item 2 needs the schema this carries.
144
+ */
145
+ export declare const SPEC: {
146
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
147
+ readonly isBearer: false;
148
+ readonly isProofRequired: true;
149
+ readonly isRecipientRequired: true;
150
+ readonly isIssuedAtRequired: false;
151
+ readonly payloadSchema: {
152
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
153
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
154
+ readonly title: "VTC Vetting — Vetters Resend — payload";
155
+ readonly description: "A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue, and an administrator may do the same on a named member's behalf. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.";
156
+ readonly type: "object";
157
+ readonly additionalProperties: false;
158
+ readonly properties: {
159
+ readonly memberDid: {
160
+ readonly type: "string";
161
+ readonly minLength: 1;
162
+ readonly description: "The vetter to resend the live grant for, on an administrator's behalf. Requires the community-administrator capability. Absent: the request concerns the sender's own live grant, exactly as 0.1.";
163
+ };
164
+ readonly ext: {
165
+ readonly $ref: "#/$defs/Ext";
166
+ };
167
+ };
168
+ readonly $defs: {
169
+ readonly Response: {
170
+ readonly $anchor: "response";
171
+ readonly title: "VTC Vetting — Vetters Resend — response payload";
172
+ readonly description: "The credential the community delivered again.";
173
+ readonly type: "object";
174
+ readonly additionalProperties: false;
175
+ readonly required: readonly ["credentialId", "validUntil"];
176
+ readonly properties: {
177
+ readonly credentialId: {
178
+ readonly type: "string";
179
+ readonly minLength: 1;
180
+ readonly maxLength: 512;
181
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
182
+ readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
183
+ };
184
+ readonly validUntil: {
185
+ readonly type: "string";
186
+ readonly format: "date-time";
187
+ readonly description: "That credential's `validUntil`.";
188
+ };
189
+ };
190
+ };
191
+ readonly Ext: {
192
+ readonly title: "Ext";
193
+ 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.";
194
+ readonly type: "object";
195
+ readonly minProperties: 1;
196
+ readonly additionalProperties: true;
197
+ readonly propertyNames: {
198
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
199
+ };
200
+ };
201
+ };
202
+ };
203
+ };
204
+ /**
205
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
206
+ * tracks the *issuer* party's requirement because a response swaps the
207
+ * parties (§7.3 item 5).
208
+ */
209
+ export declare const RESPONSE_SPEC: {
210
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2#response";
211
+ readonly isBearer: false;
212
+ readonly isProofRequired: true;
213
+ readonly isRecipientRequired: true;
214
+ readonly isIssuedAtRequired: false;
215
+ readonly payloadSchema: {
216
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
217
+ readonly $ref: "#/$defs/Response";
218
+ readonly $defs: {
219
+ readonly Response: {
220
+ readonly $anchor: "response";
221
+ readonly title: "VTC Vetting — Vetters Resend — response payload";
222
+ readonly description: "The credential the community delivered again.";
223
+ readonly type: "object";
224
+ readonly additionalProperties: false;
225
+ readonly required: readonly ["credentialId", "validUntil"];
226
+ readonly properties: {
227
+ readonly credentialId: {
228
+ readonly type: "string";
229
+ readonly minLength: 1;
230
+ readonly maxLength: 512;
231
+ readonly pattern: "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$";
232
+ readonly description: "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned.";
233
+ };
234
+ readonly validUntil: {
235
+ readonly type: "string";
236
+ readonly format: "date-time";
237
+ readonly description: "That credential's `validUntil`.";
238
+ };
239
+ };
240
+ };
241
+ readonly Ext: {
242
+ readonly title: "Ext";
243
+ 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.";
244
+ readonly type: "object";
245
+ readonly minProperties: 1;
246
+ readonly additionalProperties: true;
247
+ readonly propertyNames: {
248
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
249
+ };
250
+ };
251
+ };
252
+ };
253
+ };
254
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/vetting/vetters/resend/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,4DAAqE,CAAC;AAE9F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,qEAA8E,CAAC;AAEhH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,142 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/vetters/resend/0.2/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/resend/0.2#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/vtc/vetting/vetters/resend/0.2",
21
+ "title": "VTC Vetting — Vetters Resend — payload",
22
+ "description": "A vetter asks the community to deliver their live vetter role credential again, over credential-exchange/issue, and an administrator may do the same on a named member's behalf. The community issues nothing new and returns the delivered credential's `id` and `validUntil`.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "memberDid": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "description": "The vetter to resend the live grant for, on an administrator's behalf. Requires the community-administrator capability. Absent: the request concerns the sender's own live grant, exactly as 0.1."
30
+ },
31
+ "ext": {
32
+ "$ref": "#/$defs/Ext"
33
+ }
34
+ },
35
+ "$defs": {
36
+ "Response": {
37
+ "$anchor": "response",
38
+ "title": "VTC Vetting — Vetters Resend — response payload",
39
+ "description": "The credential the community delivered again.",
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "required": [
43
+ "credentialId",
44
+ "validUntil"
45
+ ],
46
+ "properties": {
47
+ "credentialId": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "maxLength": 512,
51
+ "pattern": "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$",
52
+ "description": "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned."
53
+ },
54
+ "validUntil": {
55
+ "type": "string",
56
+ "format": "date-time",
57
+ "description": "That credential's `validUntil`."
58
+ }
59
+ }
60
+ },
61
+ "Ext": {
62
+ "title": "Ext",
63
+ "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.",
64
+ "type": "object",
65
+ "minProperties": 1,
66
+ "additionalProperties": true,
67
+ "propertyNames": {
68
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
69
+ }
70
+ }
71
+ }
72
+ };
73
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
74
+ export const RESPONSE_PAYLOAD_SCHEMA = {
75
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
76
+ "$ref": "#/$defs/Response",
77
+ "$defs": {
78
+ "Response": {
79
+ "$anchor": "response",
80
+ "title": "VTC Vetting — Vetters Resend — response payload",
81
+ "description": "The credential the community delivered again.",
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": [
85
+ "credentialId",
86
+ "validUntil"
87
+ ],
88
+ "properties": {
89
+ "credentialId": {
90
+ "type": "string",
91
+ "minLength": 1,
92
+ "maxLength": 512,
93
+ "pattern": "^[a-zA-Z][a-zA-Z0-9+.-]*:\\S+$",
94
+ "description": "The `id` of the vetter role credential delivered — the same `credentialId` vtc/vetting/vetters/grant returned."
95
+ },
96
+ "validUntil": {
97
+ "type": "string",
98
+ "format": "date-time",
99
+ "description": "That credential's `validUntil`."
100
+ }
101
+ }
102
+ },
103
+ "Ext": {
104
+ "title": "Ext",
105
+ "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.",
106
+ "type": "object",
107
+ "minProperties": 1,
108
+ "additionalProperties": true,
109
+ "propertyNames": {
110
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
111
+ }
112
+ }
113
+ }
114
+ };
115
+ /**
116
+ * SPEC.md §7.2 policy for the request variant, from this specification's
117
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
118
+ * per-specification and cannot be derived from the document alone, and
119
+ * item 2 needs the schema this carries.
120
+ */
121
+ export const SPEC = {
122
+ typeUri: TYPE_URI,
123
+ isBearer: false,
124
+ isProofRequired: true,
125
+ isRecipientRequired: true,
126
+ isIssuedAtRequired: false,
127
+ payloadSchema: PAYLOAD_SCHEMA,
128
+ };
129
+ /**
130
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
131
+ * tracks the *issuer* party's requirement because a response swaps the
132
+ * parties (§7.3 item 5).
133
+ */
134
+ export const RESPONSE_SPEC = {
135
+ typeUri: RESPONSE_TYPE_URI,
136
+ isBearer: false,
137
+ isProofRequired: true,
138
+ isRecipientRequired: true,
139
+ isIssuedAtRequired: false,
140
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
141
+ };
142
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../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;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.21.13",
3
+ "version": "0.21.15",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -589,6 +589,10 @@ export type RetentionPolicy = "chained" | "fromJoin";
589
589
  * 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.
590
590
  */
591
591
  export type Right = "git.ns.admin" | "git.repo.create" | "git.repo.own" | "git.repo.maintain" | "git.commit.sign";
592
+ /**
593
+ * Where a right an administrator sees came from. `recorded` — a `git-ns/*` record, governed by the rights model and returned nowhere the subject cannot eventually see it through `git-ns/view`. `roleDerived` — a v0.1 `[hooks.git-trust] grant_on_role` grant: published by the hook relay from the community's own role configuration, never written by any `git-ns/*` task, and not itself a `RightRecord` — it has no `grantedAt`, no `expiresAt` and no `reason`, only a subject, a right and a resource.
594
+ */
595
+ export type RightOrigin = "recorded" | "roleDerived";
592
596
  /**
593
597
  * Where a key is in its role's lifecycle. `pending` — planned by a preview or a change awaiting approval; not published; custody projection only. `staged` — published and bound to its role, but not yet used: a planned rotation publishes the successor and waits until the entry's cache horizon — publication plus the longer of the document's TTL and the verifier cache cap (CONVENTIONS.md §11.1) — before the VTA first uses it, so that no verifier holding a cached document sees a signature by a key it has never seen (VTI-KEY-122). Becomes `active` at the rotation's `activatesAt`. `active` — the key the VTA uses for new signatures (or, for `messaging`, advertises for new sessions). `retiring` — still published so that what it signed and sessions keyed to it keep working, but never used again: from the successor's first use the VTA MUST NOT sign with it, while a retiring `messaging` key stays usable for decryption, and senders may still encrypt to it, until it is retired (CONVENTIONS.md §11.3). `retired` — removed by planned rotation; what it signed while published remains valid, judged against the DID version current at issuance (CONVENTIONS.md §7). A retired `attestation` or `messaging` key is destroyed at retirement. `revoked` — removed from every relationship and from `keyRoles` in one entry, without overlap, because it is or may be compromised; what it signed from `compromisedSince` onward establishes nothing. `retired` and `revoked` are terminal.
594
598
  */
@@ -1192,6 +1196,46 @@ export interface AdminAccount {
1192
1196
  */
1193
1197
  accountType: AccountType;
1194
1198
  }
1199
+ /**
1200
+ * One right as the administrator's rights console shows it: a recorded `RightRecord` restated with the membership facts an administrator needs (`subjectMember`, `granterDeparted`), or a role-derived grant that carries no record. `git-ns/right/list` and `git-ns/right/issued-by-departed` are its only producers.
1201
+ */
1202
+ export interface AdminRightRow {
1203
+ /**
1204
+ * Who holds the right.
1205
+ */
1206
+ subject: Did_GitNsV0_3;
1207
+ right: Right;
1208
+ resource: Resource;
1209
+ origin: RightOrigin;
1210
+ /**
1211
+ * Who caused the right (see `RightRecord.grantedBy`). Present exactly when `origin` is `recorded`; a role-derived grant is published by the hook relay from configuration, not by an actor.
1212
+ */
1213
+ grantedBy?: Did_GitNsV0_3;
1214
+ /**
1215
+ * Present exactly when `origin` is `recorded`.
1216
+ */
1217
+ grantedAt?: string;
1218
+ /**
1219
+ * When the right lapses. Absent: no expiry, or `origin` is `roleDerived` (a role-derived grant never expires on its own — it is withdrawn by editing `[hooks.git-trust] grant_on_role`).
1220
+ */
1221
+ expiresAt?: string;
1222
+ /**
1223
+ * The granter's free-text reason, restated from the `RightRecord`. Absent when `origin` is `roleDerived`, or the record carries none.
1224
+ */
1225
+ reason?: string;
1226
+ /**
1227
+ * Whether `subject` is a current member of the community. `false` marks a right held by someone who has since left, or by an external signer the community never enrolled.
1228
+ */
1229
+ subjectMember: boolean;
1230
+ /**
1231
+ * Whether `grantedBy` was a member at the time of the grant and has since left. Always `false` when `origin` is `roleDerived`, or when the record's granter was never itself a member (the VTC's own DID, for a right it derives from configuration).
1232
+ */
1233
+ granterDeparted: boolean;
1234
+ /**
1235
+ * Present exactly when `origin` is `recorded` and the record carries `breakGlass` — see `RightRecord.breakGlass`. Absent for a role-derived grant, which cannot be self-granted through break-glass.
1236
+ */
1237
+ breakGlass?: BreakGlass;
1238
+ }
1195
1239
  /**
1196
1240
  * An agent name bound to a DID. A name is only ever authoritative in the DID→name direction: the DID document's `alsoKnownAs` is what proves the binding, because anyone controlling a domain can point a name at somebody else's DID.
1197
1241
  */
@@ -5024,6 +5068,53 @@ export interface Session_AuthV0_2 {
5024
5068
  */
5025
5069
  ext?: Ext;
5026
5070
  }
5071
+ /**
5072
+ * A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).
5073
+ */
5074
+ export interface Session_AuthV0_3 {
5075
+ /**
5076
+ * Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied.
5077
+ */
5078
+ id: string;
5079
+ /**
5080
+ * The authenticated party's VID (typically a DID URL). For a session established by a proxied login (auth/authenticate/0.3), this is the *principal* being authenticated as — never the delegate that signed the authenticate document; see `actor`.
5081
+ */
5082
+ subject: string;
5083
+ /**
5084
+ * ISO-8601 timestamp when the session was created.
5085
+ */
5086
+ issuedAt: string;
5087
+ /**
5088
+ * ISO-8601 timestamp when the session ceases to be valid. Producers SHOULD refresh before this time; consumers MUST reject after. A consumer honouring `absoluteExpiresAt` MUST NOT advance this value past it, by refresh or any other means.
5089
+ */
5090
+ expiresAt: string;
5091
+ /**
5092
+ * Authentication Methods References per [RFC 8176]. Typical values: "did" (challenge-response), "passkey" (WebAuthn), "vta" (verifiable-trust agent approval). Multi-factor sessions list every method used.
5093
+ *
5094
+ * @minItems 1
5095
+ */
5096
+ amr?: [string, ...string[]];
5097
+ /**
5098
+ * Authentication Context Class Reference per [OIDC Core §2]. Profiles define their own values; the recommended set is "aal1" (single-factor DID auth), "aal2" (a second possession-or-biometric factor confirmed), and "aal3" (hardware-bound second factor).
5099
+ */
5100
+ acr?: string;
5101
+ /**
5102
+ * The did:key VID bound to this session by auth/authenticate/0.2 or 0.3, when the producer registered one. Present here so introspection (auth/whoami, auth/sessions/list) can show the binding a client already holds; it is descriptive, not an additional grant — the binding, its scope and its lifetime are governed entirely by the auth/authenticate specification version that established it. Absent when the session was established without a session key, or by a specification version that does not carry one.
5103
+ */
5104
+ sessionKey?: string;
5105
+ /**
5106
+ * The delegate's VID — the party whose `proof` actually authenticated this session — when this session was established by a *proxied* login (auth/authenticate/0.3, `payload.principal` present and distinct from `issuer`). Absent whenever `subject` authenticated with its own key, including every auth/authenticate/0.1 and /0.2 session and an auth/authenticate/0.3 request where `principal` is absent or equals `issuer`. Carrying `actor` separately from `subject` is what lets an audit trail, a revocation, or a response to a compromised delegate name the true acting party without conflating it with the principal it acted for — see auth/authenticate/0.3 Security & Privacy (Correlation).
5107
+ */
5108
+ actor?: string;
5109
+ /**
5110
+ * The instant beyond which this session's `expiresAt` MUST NOT be advanced, by auth/refresh/0.2 or by any other means — an absolute session lifetime set once at authentication and never moved forward. Consumers that impose no such ceiling beyond the session's own rolling `expiresAt` omit this member; its absence is not itself a claim that the session is unbounded, only that this response does not state a bound. See auth/refresh/0.2 Conformance and Security & Privacy for the enforcement rule.
5111
+ */
5112
+ absoluteExpiresAt?: string;
5113
+ /**
5114
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
5115
+ */
5116
+ ext?: Ext;
5117
+ }
5027
5118
  /**
5028
5119
  * One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.
5029
5120
  */
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/_shared/0.3/session.schema.json
4
+ */
5
+
6
+ /**
7
+ * Reusable JSON Schema fragments that describe an authenticated session, referenced by the auth/* Trust Task specifications. 0.3 adds `actor` (auth/authenticate/0.3 — the delegate that authenticated on the subject's behalf, when the session was established by a proxied login) and `absoluteExpiresAt` (auth/refresh/0.2 — the ceiling a refresh MUST NOT advance `expiresAt` past). 0.1 and 0.2 remain in place for specifications still pinned to them (SPEC.md §6.6 item 3 — a component version bump never changes an already-published specification version underfoot).
8
+ */
9
+ export interface AuthSharedSessionDefinitions {
10
+ [k: string]: unknown | undefined;
11
+ }
12
+
13
+ /**
14
+ * The definitions this shared schema publishes, hoisted to one declaration each.
15
+ * See "../../../_shared/components.js".
16
+ */
17
+ export type { Session_AuthV0_3 as Session } from "../../../_shared/components.js";