@openvtc/trust-tasks 0.19.20 → 0.19.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/_framework/0.4/framework.d.ts +18 -0
- package/dist/_framework/0.4/framework.d.ts.map +1 -0
- package/dist/_framework/0.4/framework.js +6 -0
- package/dist/_framework/0.4/framework.js.map +1 -0
- package/dist/_shared/components.d.ts +72 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/_shared/0.1/messaging.d.ts +1 -1
- package/dist/messaging/_shared/0.1/messaging.d.ts.map +1 -1
- package/dist/messaging/account/add/0.1/payload.d.ts +314 -2
- package/dist/messaging/account/add/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/add/0.1/payload.js +156 -0
- package/dist/messaging/account/add/0.1/payload.js.map +1 -1
- package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts +314 -2
- package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/change-queue-limits/0.1/payload.js +156 -0
- package/dist/messaging/account/change-queue-limits/0.1/payload.js.map +1 -1
- package/dist/messaging/account/change-type/0.1/payload.d.ts +314 -2
- package/dist/messaging/account/change-type/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/change-type/0.1/payload.js +156 -0
- package/dist/messaging/account/change-type/0.1/payload.js.map +1 -1
- package/dist/messaging/account/get/0.1/payload.d.ts +338 -2
- package/dist/messaging/account/get/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/get/0.1/payload.js +164 -0
- package/dist/messaging/account/get/0.1/payload.js.map +1 -1
- package/dist/messaging/account/list/0.1/payload.d.ts +338 -2
- package/dist/messaging/account/list/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/list/0.1/payload.js +164 -0
- package/dist/messaging/account/list/0.1/payload.js.map +1 -1
- package/dist/messaging/account/update/0.1/payload.d.ts +314 -2
- package/dist/messaging/account/update/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/update/0.1/payload.js +156 -0
- package/dist/messaging/account/update/0.1/payload.js.map +1 -1
- package/dist/vtc/join-requests/manifest/0.2/payload.d.ts +96 -2
- package/dist/vtc/join-requests/manifest/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/manifest/0.2/payload.js +48 -0
- package/dist/vtc/join-requests/manifest/0.2/payload.js.map +1 -1
- package/dist/vtc/vetting/vetters/show/0.1/payload.d.ts +378 -0
- package/dist/vtc/vetting/vetters/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/show/0.1/payload.js +207 -0
- package/dist/vtc/vetting/vetters/show/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_framework/0.4/framework.ts +19 -0
- package/src/_shared/components.ts +72 -0
- package/src/index.ts +2 -0
- package/src/messaging/_shared/0.1/messaging.ts +1 -1
- package/src/messaging/account/add/0.1/payload.ts +158 -2
- package/src/messaging/account/change-queue-limits/0.1/payload.ts +158 -2
- package/src/messaging/account/change-type/0.1/payload.ts +158 -2
- package/src/messaging/account/get/0.1/payload.ts +174 -2
- package/src/messaging/account/list/0.1/payload.ts +174 -2
- package/src/messaging/account/update/0.1/payload.ts +158 -2
- package/src/vtc/join-requests/manifest/0.2/payload.ts +64 -2
- package/src/vtc/vetting/vetters/show/0.1/payload.ts +267 -0
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/vetting/vetters/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* The state of a vetter's grant in this community. The three refusing values are deliberately distinct: `revoked` says the community withdrew a grant it had made, `expired` says one ran out, and `none` says there is nothing to withdraw. An applicant reads those differently, and so does a vetter checking their own standing.
|
|
8
|
+
*/
|
|
9
|
+
export type GrantStatus = "live" | "revoked" | "expired" | "none";
|
|
10
|
+
/**
|
|
11
|
+
* An authenticated applicant or member asks a community about one vetter, by DID. The answer is the state of that vetter's grant — `live`, `revoked`, `expired` or `none` — which a list of vetters cannot express, because an absent vetter and a revoked one look identical in it. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
12
|
+
*/
|
|
13
|
+
export interface VTCVettingShowVetterPayload {
|
|
14
|
+
/**
|
|
15
|
+
* The DID of the vetter being asked about — the subject of the vetter role credential. The caller usually holds it from an earlier listing, or from a vetting exchange that has since gone quiet.
|
|
16
|
+
*/
|
|
17
|
+
vetterDid: string;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* One vetter's grant status. Carries no profile: what a vetter published for a directory is answered by vtc/vetting/vetters/list, and this task answers a caller who already knows which vetter they mean.
|
|
22
|
+
*/
|
|
23
|
+
export interface VTCVettingShowVetterResponsePayload {
|
|
24
|
+
/**
|
|
25
|
+
* The DID asked about, echoed so a response is self-contained.
|
|
26
|
+
*/
|
|
27
|
+
vetterDid: string;
|
|
28
|
+
status: GrantStatus;
|
|
29
|
+
/**
|
|
30
|
+
* The identifier of the grant this status is about. Present for `live`, `revoked` and `expired`; absent for `none`, which is the absence of a grant and so has nothing to identify.
|
|
31
|
+
*/
|
|
32
|
+
grantId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The grant's `validUntil`. Present for `live` and `expired` — for `expired` it is when it ran out, which tells a caller whether it lapsed long ago or yesterday. Absent for `none`, and for `revoked`, where the revocation and not the expiry is what ended it.
|
|
35
|
+
*/
|
|
36
|
+
validUntil?: string;
|
|
37
|
+
/**
|
|
38
|
+
* When the grant was revoked. Present only for `revoked`. The reason is deliberately not carried: it is the community's internal record, and an applicant needs to know the grant does not hold, not why.
|
|
39
|
+
*/
|
|
40
|
+
revokedAt?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether this vetter has a profile stored with `listed: true`, and so would appear in vtc/vetting/vetters/list. Present only for `live`. It is what separates the two reasons a live vetter is missing from a listing: unlisted by choice, rather than not a vetter.
|
|
43
|
+
*/
|
|
44
|
+
listed?: boolean;
|
|
45
|
+
ext?: Ext;
|
|
46
|
+
}
|
|
47
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
48
|
+
export type { Ext };
|
|
49
|
+
/** Trust Task type URI. */
|
|
50
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/show/0.1";
|
|
51
|
+
/** Stable alias for this specification's request payload shape. */
|
|
52
|
+
export type Payload = VTCVettingShowVetterPayload;
|
|
53
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
54
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/show/0.1#response";
|
|
55
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
56
|
+
export type Response = VTCVettingShowVetterResponsePayload;
|
|
57
|
+
/**
|
|
58
|
+
* This specification's payload schema, as a value.
|
|
59
|
+
*
|
|
60
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
61
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
62
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
63
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
64
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
65
|
+
*/
|
|
66
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
67
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
68
|
+
readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/show/0.1";
|
|
69
|
+
readonly title: "VTC Vetting — Show Vetter — payload";
|
|
70
|
+
readonly description: "An authenticated applicant or member asks a community about one vetter, by DID. The answer is the state of that vetter's grant — `live`, `revoked`, `expired` or `none` — which a list of vetters cannot express, because an absent vetter and a revoked one look identical in it. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly additionalProperties: false;
|
|
73
|
+
readonly required: readonly ["vetterDid"];
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly vetterDid: {
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
readonly pattern: "^did:";
|
|
78
|
+
readonly minLength: 1;
|
|
79
|
+
readonly maxLength: 2048;
|
|
80
|
+
readonly description: "The DID of the vetter being asked about — the subject of the vetter role credential. The caller usually holds it from an earlier listing, or from a vetting exchange that has since gone quiet.";
|
|
81
|
+
};
|
|
82
|
+
readonly ext: {
|
|
83
|
+
readonly $ref: "#/$defs/Ext";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
readonly $defs: {
|
|
87
|
+
readonly GrantStatus: {
|
|
88
|
+
readonly title: "GrantStatus";
|
|
89
|
+
readonly description: "The state of a vetter's grant in this community. The three refusing values are deliberately distinct: `revoked` says the community withdrew a grant it had made, `expired` says one ran out, and `none` says there is nothing to withdraw. An applicant reads those differently, and so does a vetter checking their own standing.";
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly enum: readonly ["live", "revoked", "expired", "none"];
|
|
92
|
+
};
|
|
93
|
+
readonly Response: {
|
|
94
|
+
readonly $anchor: "response";
|
|
95
|
+
readonly title: "VTC Vetting — Show Vetter — response payload";
|
|
96
|
+
readonly description: "One vetter's grant status. Carries no profile: what a vetter published for a directory is answered by vtc/vetting/vetters/list, and this task answers a caller who already knows which vetter they mean.";
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly additionalProperties: false;
|
|
99
|
+
readonly required: readonly ["vetterDid", "status"];
|
|
100
|
+
readonly properties: {
|
|
101
|
+
readonly vetterDid: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
readonly pattern: "^did:";
|
|
104
|
+
readonly description: "The DID asked about, echoed so a response is self-contained.";
|
|
105
|
+
};
|
|
106
|
+
readonly status: {
|
|
107
|
+
readonly $ref: "#/$defs/GrantStatus";
|
|
108
|
+
};
|
|
109
|
+
readonly grantId: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly minLength: 1;
|
|
112
|
+
readonly maxLength: 512;
|
|
113
|
+
readonly description: "The identifier of the grant this status is about. Present for `live`, `revoked` and `expired`; absent for `none`, which is the absence of a grant and so has nothing to identify.";
|
|
114
|
+
};
|
|
115
|
+
readonly validUntil: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
readonly format: "date-time";
|
|
118
|
+
readonly description: "The grant's `validUntil`. Present for `live` and `expired` — for `expired` it is when it ran out, which tells a caller whether it lapsed long ago or yesterday. Absent for `none`, and for `revoked`, where the revocation and not the expiry is what ended it.";
|
|
119
|
+
};
|
|
120
|
+
readonly revokedAt: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
readonly format: "date-time";
|
|
123
|
+
readonly description: "When the grant was revoked. Present only for `revoked`. The reason is deliberately not carried: it is the community's internal record, and an applicant needs to know the grant does not hold, not why.";
|
|
124
|
+
};
|
|
125
|
+
readonly listed: {
|
|
126
|
+
readonly type: "boolean";
|
|
127
|
+
readonly description: "Whether this vetter has a profile stored with `listed: true`, and so would appear in vtc/vetting/vetters/list. Present only for `live`. It is what separates the two reasons a live vetter is missing from a listing: unlisted by choice, rather than not a vetter.";
|
|
128
|
+
};
|
|
129
|
+
readonly ext: {
|
|
130
|
+
readonly $ref: "#/$defs/Ext";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly Ext: {
|
|
135
|
+
readonly title: "Ext";
|
|
136
|
+
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.";
|
|
137
|
+
readonly type: "object";
|
|
138
|
+
readonly minProperties: 1;
|
|
139
|
+
readonly additionalProperties: true;
|
|
140
|
+
readonly propertyNames: {
|
|
141
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
147
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
148
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
149
|
+
readonly $ref: "#/$defs/Response";
|
|
150
|
+
readonly $defs: {
|
|
151
|
+
readonly GrantStatus: {
|
|
152
|
+
readonly title: "GrantStatus";
|
|
153
|
+
readonly description: "The state of a vetter's grant in this community. The three refusing values are deliberately distinct: `revoked` says the community withdrew a grant it had made, `expired` says one ran out, and `none` says there is nothing to withdraw. An applicant reads those differently, and so does a vetter checking their own standing.";
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly enum: readonly ["live", "revoked", "expired", "none"];
|
|
156
|
+
};
|
|
157
|
+
readonly Response: {
|
|
158
|
+
readonly $anchor: "response";
|
|
159
|
+
readonly title: "VTC Vetting — Show Vetter — response payload";
|
|
160
|
+
readonly description: "One vetter's grant status. Carries no profile: what a vetter published for a directory is answered by vtc/vetting/vetters/list, and this task answers a caller who already knows which vetter they mean.";
|
|
161
|
+
readonly type: "object";
|
|
162
|
+
readonly additionalProperties: false;
|
|
163
|
+
readonly required: readonly ["vetterDid", "status"];
|
|
164
|
+
readonly properties: {
|
|
165
|
+
readonly vetterDid: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly pattern: "^did:";
|
|
168
|
+
readonly description: "The DID asked about, echoed so a response is self-contained.";
|
|
169
|
+
};
|
|
170
|
+
readonly status: {
|
|
171
|
+
readonly $ref: "#/$defs/GrantStatus";
|
|
172
|
+
};
|
|
173
|
+
readonly grantId: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly minLength: 1;
|
|
176
|
+
readonly maxLength: 512;
|
|
177
|
+
readonly description: "The identifier of the grant this status is about. Present for `live`, `revoked` and `expired`; absent for `none`, which is the absence of a grant and so has nothing to identify.";
|
|
178
|
+
};
|
|
179
|
+
readonly validUntil: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly format: "date-time";
|
|
182
|
+
readonly description: "The grant's `validUntil`. Present for `live` and `expired` — for `expired` it is when it ran out, which tells a caller whether it lapsed long ago or yesterday. Absent for `none`, and for `revoked`, where the revocation and not the expiry is what ended it.";
|
|
183
|
+
};
|
|
184
|
+
readonly revokedAt: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly format: "date-time";
|
|
187
|
+
readonly description: "When the grant was revoked. Present only for `revoked`. The reason is deliberately not carried: it is the community's internal record, and an applicant needs to know the grant does not hold, not why.";
|
|
188
|
+
};
|
|
189
|
+
readonly listed: {
|
|
190
|
+
readonly type: "boolean";
|
|
191
|
+
readonly description: "Whether this vetter has a profile stored with `listed: true`, and so would appear in vtc/vetting/vetters/list. Present only for `live`. It is what separates the two reasons a live vetter is missing from a listing: unlisted by choice, rather than not a vetter.";
|
|
192
|
+
};
|
|
193
|
+
readonly ext: {
|
|
194
|
+
readonly $ref: "#/$defs/Ext";
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
readonly Ext: {
|
|
199
|
+
readonly title: "Ext";
|
|
200
|
+
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.";
|
|
201
|
+
readonly type: "object";
|
|
202
|
+
readonly minProperties: 1;
|
|
203
|
+
readonly additionalProperties: true;
|
|
204
|
+
readonly propertyNames: {
|
|
205
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
212
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
213
|
+
* per-specification and cannot be derived from the document alone, and
|
|
214
|
+
* item 2 needs the schema this carries.
|
|
215
|
+
*/
|
|
216
|
+
export declare const SPEC: {
|
|
217
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/show/0.1";
|
|
218
|
+
readonly isBearer: false;
|
|
219
|
+
readonly isProofRequired: false;
|
|
220
|
+
readonly isRecipientRequired: true;
|
|
221
|
+
readonly isIssuedAtRequired: false;
|
|
222
|
+
readonly payloadSchema: {
|
|
223
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
224
|
+
readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/show/0.1";
|
|
225
|
+
readonly title: "VTC Vetting — Show Vetter — payload";
|
|
226
|
+
readonly description: "An authenticated applicant or member asks a community about one vetter, by DID. The answer is the state of that vetter's grant — `live`, `revoked`, `expired` or `none` — which a list of vetters cannot express, because an absent vetter and a revoked one look identical in it. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
227
|
+
readonly type: "object";
|
|
228
|
+
readonly additionalProperties: false;
|
|
229
|
+
readonly required: readonly ["vetterDid"];
|
|
230
|
+
readonly properties: {
|
|
231
|
+
readonly vetterDid: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
readonly pattern: "^did:";
|
|
234
|
+
readonly minLength: 1;
|
|
235
|
+
readonly maxLength: 2048;
|
|
236
|
+
readonly description: "The DID of the vetter being asked about — the subject of the vetter role credential. The caller usually holds it from an earlier listing, or from a vetting exchange that has since gone quiet.";
|
|
237
|
+
};
|
|
238
|
+
readonly ext: {
|
|
239
|
+
readonly $ref: "#/$defs/Ext";
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
readonly $defs: {
|
|
243
|
+
readonly GrantStatus: {
|
|
244
|
+
readonly title: "GrantStatus";
|
|
245
|
+
readonly description: "The state of a vetter's grant in this community. The three refusing values are deliberately distinct: `revoked` says the community withdrew a grant it had made, `expired` says one ran out, and `none` says there is nothing to withdraw. An applicant reads those differently, and so does a vetter checking their own standing.";
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
readonly enum: readonly ["live", "revoked", "expired", "none"];
|
|
248
|
+
};
|
|
249
|
+
readonly Response: {
|
|
250
|
+
readonly $anchor: "response";
|
|
251
|
+
readonly title: "VTC Vetting — Show Vetter — response payload";
|
|
252
|
+
readonly description: "One vetter's grant status. Carries no profile: what a vetter published for a directory is answered by vtc/vetting/vetters/list, and this task answers a caller who already knows which vetter they mean.";
|
|
253
|
+
readonly type: "object";
|
|
254
|
+
readonly additionalProperties: false;
|
|
255
|
+
readonly required: readonly ["vetterDid", "status"];
|
|
256
|
+
readonly properties: {
|
|
257
|
+
readonly vetterDid: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly pattern: "^did:";
|
|
260
|
+
readonly description: "The DID asked about, echoed so a response is self-contained.";
|
|
261
|
+
};
|
|
262
|
+
readonly status: {
|
|
263
|
+
readonly $ref: "#/$defs/GrantStatus";
|
|
264
|
+
};
|
|
265
|
+
readonly grantId: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly minLength: 1;
|
|
268
|
+
readonly maxLength: 512;
|
|
269
|
+
readonly description: "The identifier of the grant this status is about. Present for `live`, `revoked` and `expired`; absent for `none`, which is the absence of a grant and so has nothing to identify.";
|
|
270
|
+
};
|
|
271
|
+
readonly validUntil: {
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
readonly format: "date-time";
|
|
274
|
+
readonly description: "The grant's `validUntil`. Present for `live` and `expired` — for `expired` it is when it ran out, which tells a caller whether it lapsed long ago or yesterday. Absent for `none`, and for `revoked`, where the revocation and not the expiry is what ended it.";
|
|
275
|
+
};
|
|
276
|
+
readonly revokedAt: {
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
readonly format: "date-time";
|
|
279
|
+
readonly description: "When the grant was revoked. Present only for `revoked`. The reason is deliberately not carried: it is the community's internal record, and an applicant needs to know the grant does not hold, not why.";
|
|
280
|
+
};
|
|
281
|
+
readonly listed: {
|
|
282
|
+
readonly type: "boolean";
|
|
283
|
+
readonly description: "Whether this vetter has a profile stored with `listed: true`, and so would appear in vtc/vetting/vetters/list. Present only for `live`. It is what separates the two reasons a live vetter is missing from a listing: unlisted by choice, rather than not a vetter.";
|
|
284
|
+
};
|
|
285
|
+
readonly ext: {
|
|
286
|
+
readonly $ref: "#/$defs/Ext";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
readonly Ext: {
|
|
291
|
+
readonly title: "Ext";
|
|
292
|
+
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.";
|
|
293
|
+
readonly type: "object";
|
|
294
|
+
readonly minProperties: 1;
|
|
295
|
+
readonly additionalProperties: true;
|
|
296
|
+
readonly propertyNames: {
|
|
297
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
305
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
306
|
+
* parties (§7.3 item 5).
|
|
307
|
+
*/
|
|
308
|
+
export declare const RESPONSE_SPEC: {
|
|
309
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/show/0.1#response";
|
|
310
|
+
readonly isBearer: false;
|
|
311
|
+
readonly isProofRequired: false;
|
|
312
|
+
readonly isRecipientRequired: true;
|
|
313
|
+
readonly isIssuedAtRequired: false;
|
|
314
|
+
readonly payloadSchema: {
|
|
315
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
316
|
+
readonly $ref: "#/$defs/Response";
|
|
317
|
+
readonly $defs: {
|
|
318
|
+
readonly GrantStatus: {
|
|
319
|
+
readonly title: "GrantStatus";
|
|
320
|
+
readonly description: "The state of a vetter's grant in this community. The three refusing values are deliberately distinct: `revoked` says the community withdrew a grant it had made, `expired` says one ran out, and `none` says there is nothing to withdraw. An applicant reads those differently, and so does a vetter checking their own standing.";
|
|
321
|
+
readonly type: "string";
|
|
322
|
+
readonly enum: readonly ["live", "revoked", "expired", "none"];
|
|
323
|
+
};
|
|
324
|
+
readonly Response: {
|
|
325
|
+
readonly $anchor: "response";
|
|
326
|
+
readonly title: "VTC Vetting — Show Vetter — response payload";
|
|
327
|
+
readonly description: "One vetter's grant status. Carries no profile: what a vetter published for a directory is answered by vtc/vetting/vetters/list, and this task answers a caller who already knows which vetter they mean.";
|
|
328
|
+
readonly type: "object";
|
|
329
|
+
readonly additionalProperties: false;
|
|
330
|
+
readonly required: readonly ["vetterDid", "status"];
|
|
331
|
+
readonly properties: {
|
|
332
|
+
readonly vetterDid: {
|
|
333
|
+
readonly type: "string";
|
|
334
|
+
readonly pattern: "^did:";
|
|
335
|
+
readonly description: "The DID asked about, echoed so a response is self-contained.";
|
|
336
|
+
};
|
|
337
|
+
readonly status: {
|
|
338
|
+
readonly $ref: "#/$defs/GrantStatus";
|
|
339
|
+
};
|
|
340
|
+
readonly grantId: {
|
|
341
|
+
readonly type: "string";
|
|
342
|
+
readonly minLength: 1;
|
|
343
|
+
readonly maxLength: 512;
|
|
344
|
+
readonly description: "The identifier of the grant this status is about. Present for `live`, `revoked` and `expired`; absent for `none`, which is the absence of a grant and so has nothing to identify.";
|
|
345
|
+
};
|
|
346
|
+
readonly validUntil: {
|
|
347
|
+
readonly type: "string";
|
|
348
|
+
readonly format: "date-time";
|
|
349
|
+
readonly description: "The grant's `validUntil`. Present for `live` and `expired` — for `expired` it is when it ran out, which tells a caller whether it lapsed long ago or yesterday. Absent for `none`, and for `revoked`, where the revocation and not the expiry is what ended it.";
|
|
350
|
+
};
|
|
351
|
+
readonly revokedAt: {
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
readonly format: "date-time";
|
|
354
|
+
readonly description: "When the grant was revoked. Present only for `revoked`. The reason is deliberately not carried: it is the community's internal record, and an applicant needs to know the grant does not hold, not why.";
|
|
355
|
+
};
|
|
356
|
+
readonly listed: {
|
|
357
|
+
readonly type: "boolean";
|
|
358
|
+
readonly description: "Whether this vetter has a profile stored with `listed: true`, and so would appear in vtc/vetting/vetters/list. Present only for `live`. It is what separates the two reasons a live vetter is missing from a listing: unlisted by choice, rather than not a vetter.";
|
|
359
|
+
};
|
|
360
|
+
readonly ext: {
|
|
361
|
+
readonly $ref: "#/$defs/Ext";
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
readonly Ext: {
|
|
366
|
+
readonly title: "Ext";
|
|
367
|
+
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.";
|
|
368
|
+
readonly type: "object";
|
|
369
|
+
readonly minProperties: 1;
|
|
370
|
+
readonly additionalProperties: true;
|
|
371
|
+
readonly propertyNames: {
|
|
372
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/vetting/vetters/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,G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hB,CAAC"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/vetting/vetters/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/show/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/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/vtc/vetting/vetters/show/0.1",
|
|
21
|
+
"title": "VTC Vetting — Show Vetter — payload",
|
|
22
|
+
"description": "An authenticated applicant or member asks a community about one vetter, by DID. The answer is the state of that vetter's grant — `live`, `revoked`, `expired` or `none` — which a list of vetters cannot express, because an absent vetter and a revoked one look identical in it. 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
|
+
"required": [
|
|
26
|
+
"vetterDid"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"vetterDid": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^did:",
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"maxLength": 2048,
|
|
34
|
+
"description": "The DID of the vetter being asked about — the subject of the vetter role credential. The caller usually holds it from an earlier listing, or from a vetting exchange that has since gone quiet."
|
|
35
|
+
},
|
|
36
|
+
"ext": {
|
|
37
|
+
"$ref": "#/$defs/Ext"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"$defs": {
|
|
41
|
+
"GrantStatus": {
|
|
42
|
+
"title": "GrantStatus",
|
|
43
|
+
"description": "The state of a vetter's grant in this community. The three refusing values are deliberately distinct: `revoked` says the community withdrew a grant it had made, `expired` says one ran out, and `none` says there is nothing to withdraw. An applicant reads those differently, and so does a vetter checking their own standing.",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": [
|
|
46
|
+
"live",
|
|
47
|
+
"revoked",
|
|
48
|
+
"expired",
|
|
49
|
+
"none"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"Response": {
|
|
53
|
+
"$anchor": "response",
|
|
54
|
+
"title": "VTC Vetting — Show Vetter — response payload",
|
|
55
|
+
"description": "One vetter's grant status. Carries no profile: what a vetter published for a directory is answered by vtc/vetting/vetters/list, and this task answers a caller who already knows which vetter they mean.",
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": [
|
|
59
|
+
"vetterDid",
|
|
60
|
+
"status"
|
|
61
|
+
],
|
|
62
|
+
"properties": {
|
|
63
|
+
"vetterDid": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"pattern": "^did:",
|
|
66
|
+
"description": "The DID asked about, echoed so a response is self-contained."
|
|
67
|
+
},
|
|
68
|
+
"status": {
|
|
69
|
+
"$ref": "#/$defs/GrantStatus"
|
|
70
|
+
},
|
|
71
|
+
"grantId": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1,
|
|
74
|
+
"maxLength": 512,
|
|
75
|
+
"description": "The identifier of the grant this status is about. Present for `live`, `revoked` and `expired`; absent for `none`, which is the absence of a grant and so has nothing to identify."
|
|
76
|
+
},
|
|
77
|
+
"validUntil": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"format": "date-time",
|
|
80
|
+
"description": "The grant's `validUntil`. Present for `live` and `expired` — for `expired` it is when it ran out, which tells a caller whether it lapsed long ago or yesterday. Absent for `none`, and for `revoked`, where the revocation and not the expiry is what ended it."
|
|
81
|
+
},
|
|
82
|
+
"revokedAt": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"format": "date-time",
|
|
85
|
+
"description": "When the grant was revoked. Present only for `revoked`. The reason is deliberately not carried: it is the community's internal record, and an applicant needs to know the grant does not hold, not why."
|
|
86
|
+
},
|
|
87
|
+
"listed": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"description": "Whether this vetter has a profile stored with `listed: true`, and so would appear in vtc/vetting/vetters/list. Present only for `live`. It is what separates the two reasons a live vetter is missing from a listing: unlisted by choice, rather than not a vetter."
|
|
90
|
+
},
|
|
91
|
+
"ext": {
|
|
92
|
+
"$ref": "#/$defs/Ext"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"Ext": {
|
|
97
|
+
"title": "Ext",
|
|
98
|
+
"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.",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"minProperties": 1,
|
|
101
|
+
"additionalProperties": true,
|
|
102
|
+
"propertyNames": {
|
|
103
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
109
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
110
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
111
|
+
"$ref": "#/$defs/Response",
|
|
112
|
+
"$defs": {
|
|
113
|
+
"GrantStatus": {
|
|
114
|
+
"title": "GrantStatus",
|
|
115
|
+
"description": "The state of a vetter's grant in this community. The three refusing values are deliberately distinct: `revoked` says the community withdrew a grant it had made, `expired` says one ran out, and `none` says there is nothing to withdraw. An applicant reads those differently, and so does a vetter checking their own standing.",
|
|
116
|
+
"type": "string",
|
|
117
|
+
"enum": [
|
|
118
|
+
"live",
|
|
119
|
+
"revoked",
|
|
120
|
+
"expired",
|
|
121
|
+
"none"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"Response": {
|
|
125
|
+
"$anchor": "response",
|
|
126
|
+
"title": "VTC Vetting — Show Vetter — response payload",
|
|
127
|
+
"description": "One vetter's grant status. Carries no profile: what a vetter published for a directory is answered by vtc/vetting/vetters/list, and this task answers a caller who already knows which vetter they mean.",
|
|
128
|
+
"type": "object",
|
|
129
|
+
"additionalProperties": false,
|
|
130
|
+
"required": [
|
|
131
|
+
"vetterDid",
|
|
132
|
+
"status"
|
|
133
|
+
],
|
|
134
|
+
"properties": {
|
|
135
|
+
"vetterDid": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"pattern": "^did:",
|
|
138
|
+
"description": "The DID asked about, echoed so a response is self-contained."
|
|
139
|
+
},
|
|
140
|
+
"status": {
|
|
141
|
+
"$ref": "#/$defs/GrantStatus"
|
|
142
|
+
},
|
|
143
|
+
"grantId": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"minLength": 1,
|
|
146
|
+
"maxLength": 512,
|
|
147
|
+
"description": "The identifier of the grant this status is about. Present for `live`, `revoked` and `expired`; absent for `none`, which is the absence of a grant and so has nothing to identify."
|
|
148
|
+
},
|
|
149
|
+
"validUntil": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"format": "date-time",
|
|
152
|
+
"description": "The grant's `validUntil`. Present for `live` and `expired` — for `expired` it is when it ran out, which tells a caller whether it lapsed long ago or yesterday. Absent for `none`, and for `revoked`, where the revocation and not the expiry is what ended it."
|
|
153
|
+
},
|
|
154
|
+
"revokedAt": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"format": "date-time",
|
|
157
|
+
"description": "When the grant was revoked. Present only for `revoked`. The reason is deliberately not carried: it is the community's internal record, and an applicant needs to know the grant does not hold, not why."
|
|
158
|
+
},
|
|
159
|
+
"listed": {
|
|
160
|
+
"type": "boolean",
|
|
161
|
+
"description": "Whether this vetter has a profile stored with `listed: true`, and so would appear in vtc/vetting/vetters/list. Present only for `live`. It is what separates the two reasons a live vetter is missing from a listing: unlisted by choice, rather than not a vetter."
|
|
162
|
+
},
|
|
163
|
+
"ext": {
|
|
164
|
+
"$ref": "#/$defs/Ext"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"Ext": {
|
|
169
|
+
"title": "Ext",
|
|
170
|
+
"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.",
|
|
171
|
+
"type": "object",
|
|
172
|
+
"minProperties": 1,
|
|
173
|
+
"additionalProperties": true,
|
|
174
|
+
"propertyNames": {
|
|
175
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
182
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
183
|
+
* per-specification and cannot be derived from the document alone, and
|
|
184
|
+
* item 2 needs the schema this carries.
|
|
185
|
+
*/
|
|
186
|
+
export const SPEC = {
|
|
187
|
+
typeUri: TYPE_URI,
|
|
188
|
+
isBearer: false,
|
|
189
|
+
isProofRequired: false,
|
|
190
|
+
isRecipientRequired: true,
|
|
191
|
+
isIssuedAtRequired: false,
|
|
192
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
196
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
197
|
+
* parties (§7.3 item 5).
|
|
198
|
+
*/
|
|
199
|
+
export const RESPONSE_SPEC = {
|
|
200
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
201
|
+
isBearer: false,
|
|
202
|
+
isProofRequired: false,
|
|
203
|
+
isRecipientRequired: true,
|
|
204
|
+
isIssuedAtRequired: false,
|
|
205
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
206
|
+
};
|
|
207
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/vetting/vetters/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAK5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mEAA4E,CAAC;AAK9G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,0DAA0D;IACjE,OAAO,EAAE,qCAAqC;IAC9C,aAAa,EAAE,iZAAiZ;IACha,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;KACZ;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,OAAO;YAClB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,IAAI;YACjB,aAAa,EAAE,iMAAiM;SACjN;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,aAAa,EAAE;YACb,OAAO,EAAE,aAAa;YACtB,aAAa,EAAE,oUAAoU;YACnV,MAAM,EAAE,QAAQ;YAChB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/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/_framework/0.4/framework.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Reusable $defs cross-referenced by individual Trust Task specifications. Not itself a Trust Task specification — the `_framework` directory is skipped by the registry build (folders starting with `_` are not discovered) and by the codegen (which only triggers on payload.schema.json). See SPEC.md §4.5.1 for the normative description of `ext` and its criticality marking.
|
|
8
|
+
*
|
|
9
|
+
* Additive over 0.3: `Ext` and `DigestMultibase` are carried forward unchanged, and `ExtCritical` is new. Specifications pinned to 0.3 or 0.2 remain valid; a draft specification re-pinning to 0.4 does so in place, errata-style, per SPEC.md §5.2 — the re-pin does not change any payload's effective wire shape.
|
|
10
|
+
*/
|
|
11
|
+
export interface TrustTasksFrameworkReusableJSONSchemaDefinitions {
|
|
12
|
+
[k: string]: unknown | undefined;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
17
|
+
* See "../../_shared/components.js".
|
|
18
|
+
*/
|
|
19
|
+
export type { Ext, ExtCritical } from "../../_shared/components.js";
|