@openvtc/trust-tasks 0.21.11 → 0.21.13
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 +76 -0
- package/dist/_framework/0.4/framework.d.ts +1 -1
- package/dist/_framework/0.4/framework.d.ts.map +1 -1
- package/dist/_shared/components.d.ts +371 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/_shared/0.1/signing-key.d.ts +16 -0
- package/dist/auth/_shared/0.1/signing-key.d.ts.map +1 -0
- package/dist/auth/_shared/0.1/signing-key.js +6 -0
- package/dist/auth/_shared/0.1/signing-key.js.map +1 -0
- package/dist/auth/signing-key/enroll/0.1/payload.d.ts +545 -0
- package/dist/auth/signing-key/enroll/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/enroll/0.1/payload.js +307 -0
- package/dist/auth/signing-key/enroll/0.1/payload.js.map +1 -0
- package/dist/auth/signing-key/list/0.1/payload.d.ts +509 -0
- package/dist/auth/signing-key/list/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/list/0.1/payload.js +289 -0
- package/dist/auth/signing-key/list/0.1/payload.js.map +1 -0
- package/dist/auth/signing-key/revoke/0.1/payload.d.ts +292 -0
- package/dist/auth/signing-key/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/revoke/0.1/payload.js +167 -0
- package/dist/auth/signing-key/revoke/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/contexts/update-did/1.1/payload.d.ts +388 -0
- package/dist/vta/contexts/update-did/1.1/payload.d.ts.map +1 -0
- package/dist/vta/contexts/update-did/1.1/payload.js +227 -0
- package/dist/vta/contexts/update-did/1.1/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/community-presentation.d.ts +16 -0
- package/dist/vtc/_shared/0.1/community-presentation.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/community-presentation.js +6 -0
- package/dist/vtc/_shared/0.1/community-presentation.js.map +1 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts +16 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.js +6 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.js.map +1 -0
- package/dist/vtc/_shared/0.1/schema-registry.d.ts +16 -0
- package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/schema-registry.js +6 -0
- package/dist/vtc/_shared/0.1/schema-registry.js.map +1 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts +16 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.js +6 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.js.map +1 -0
- package/dist/vtc/_shared/0.1/website-transfer.d.ts +16 -0
- package/dist/vtc/_shared/0.1/website-transfer.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/website-transfer.js +6 -0
- package/dist/vtc/_shared/0.1/website-transfer.js.map +1 -0
- package/dist/vtc/community/branding/show/0.1/payload.d.ts +319 -0
- package/dist/vtc/community/branding/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/branding/show/0.1/payload.js +179 -0
- package/dist/vtc/community/branding/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/branding/update/0.1/payload.d.ts +328 -0
- package/dist/vtc/community/branding/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/branding/update/0.1/payload.js +185 -0
- package/dist/vtc/community/branding/update/0.1/payload.js.map +1 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts +267 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.js +157 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts +276 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.js +163 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.js.map +1 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts +339 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.js +193 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts +348 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.js +199 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.js.map +1 -0
- package/dist/vtc/join-requests/query/0.1/payload.d.ts +412 -0
- package/dist/vtc/join-requests/query/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/query/0.1/payload.js +228 -0
- package/dist/vtc/join-requests/query/0.1/payload.js.map +1 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts +1016 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.js +509 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.js.map +1 -0
- package/dist/vtc/relationships/restore/0.1/payload.d.ts +462 -0
- package/dist/vtc/relationships/restore/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/relationships/restore/0.1/payload.js +270 -0
- package/dist/vtc/relationships/restore/0.1/payload.js.map +1 -0
- package/dist/vtc/relationships/suspend/0.1/payload.d.ts +462 -0
- package/dist/vtc/relationships/suspend/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/relationships/suspend/0.1/payload.js +270 -0
- package/dist/vtc/relationships/suspend/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/list/0.1/payload.d.ts +653 -0
- package/dist/vtc/rooms/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/list/0.1/payload.js +360 -0
- package/dist/vtc/rooms/list/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts +240 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.js +141 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1214 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.js +681 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1165 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.js +665 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1144 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.js +655 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/delete/0.1/payload.d.ts +240 -0
- package/dist/vtc/schemas/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/delete/0.1/payload.js +141 -0
- package/dist/vtc/schemas/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/list/0.1/payload.d.ts +541 -0
- package/dist/vtc/schemas/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/list/0.1/payload.js +300 -0
- package/dist/vtc/schemas/list/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/register/0.1/payload.d.ts +512 -0
- package/dist/vtc/schemas/register/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/register/0.1/payload.js +292 -0
- package/dist/vtc/schemas/register/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/show/0.1/payload.d.ts +484 -0
- package/dist/vtc/schemas/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/show/0.1/payload.js +279 -0
- package/dist/vtc/schemas/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts +463 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.js +269 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts +491 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.js +282 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts +608 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.js +332 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts +992 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js +461 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js.map +1 -0
- package/dist/vtc/website/deploy/0.1/payload.d.ts +369 -0
- package/dist/vtc/website/deploy/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/deploy/0.1/payload.js +213 -0
- package/dist/vtc/website/deploy/0.1/payload.js.map +1 -0
- package/dist/vtc/website/files/show/0.1/payload.d.ts +455 -0
- package/dist/vtc/website/files/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/files/show/0.1/payload.js +247 -0
- package/dist/vtc/website/files/show/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/abort/0.1/payload.d.ts +256 -0
- package/dist/vtc/website/upload/abort/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/abort/0.1/payload.js +149 -0
- package/dist/vtc/website/upload/abort/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/begin/0.1/payload.d.ts +658 -0
- package/dist/vtc/website/upload/begin/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/begin/0.1/payload.js +375 -0
- package/dist/vtc/website/upload/begin/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.d.ts +447 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.js +253 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/commit/0.1/payload.d.ts +603 -0
- package/dist/vtc/website/upload/commit/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/commit/0.1/payload.js +337 -0
- package/dist/vtc/website/upload/commit/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_framework/0.4/framework.ts +1 -1
- package/src/_shared/components.ts +371 -0
- package/src/auth/_shared/0.1/signing-key.ts +17 -0
- package/src/auth/signing-key/enroll/0.1/payload.ts +349 -0
- package/src/auth/signing-key/list/0.1/payload.ts +323 -0
- package/src/auth/signing-key/revoke/0.1/payload.ts +204 -0
- package/src/index.ts +39 -0
- package/src/vta/contexts/update-did/1.1/payload.ts +256 -0
- package/src/vtc/_shared/0.1/community-presentation.ts +17 -0
- package/src/vtc/_shared/0.1/relationship-lifecycle.ts +17 -0
- package/src/vtc/_shared/0.1/schema-registry.ts +17 -0
- package/src/vtc/_shared/0.1/vetting-auto-grant.ts +17 -0
- package/src/vtc/_shared/0.1/website-transfer.ts +17 -0
- package/src/vtc/community/branding/show/0.1/payload.ts +207 -0
- package/src/vtc/community/branding/update/0.1/payload.ts +214 -0
- package/src/vtc/community/join-discovery/show/0.1/payload.ts +185 -0
- package/src/vtc/community/join-discovery/update/0.1/payload.ts +192 -0
- package/src/vtc/community/requested-attributes/show/0.1/payload.ts +221 -0
- package/src/vtc/community/requested-attributes/update/0.1/payload.ts +228 -0
- package/src/vtc/join-requests/query/0.1/payload.ts +285 -0
- package/src/vtc/join-requests/vetting/show/0.1/payload.ts +740 -0
- package/src/vtc/relationships/restore/0.1/payload.ts +307 -0
- package/src/vtc/relationships/suspend/0.1/payload.ts +307 -0
- package/src/vtc/rooms/list/0.1/payload.ts +449 -0
- package/src/vtc/schemas/accepts/delete/0.1/payload.ts +170 -0
- package/src/vtc/schemas/accepts/list/0.1/payload.ts +724 -0
- package/src/vtc/schemas/accepts/register/0.1/payload.ts +697 -0
- package/src/vtc/schemas/accepts/show/0.1/payload.ts +684 -0
- package/src/vtc/schemas/delete/0.1/payload.ts +170 -0
- package/src/vtc/schemas/list/0.1/payload.ts +344 -0
- package/src/vtc/schemas/register/0.1/payload.ts +325 -0
- package/src/vtc/schemas/show/0.1/payload.ts +308 -0
- package/src/vtc/vetting/auto-grant/show/0.1/payload.ts +297 -0
- package/src/vtc/vetting/auto-grant/update/0.1/payload.ts +316 -0
- package/src/vtc/vetting/revocations/list/0.1/payload.ts +416 -0
- package/src/vtc/vetting/vetters/grants/list/0.1/payload.ts +700 -0
- package/src/vtc/website/deploy/0.1/payload.ts +255 -0
- package/src/vtc/website/files/show/0.1/payload.ts +303 -0
- package/src/vtc/website/upload/abort/0.1/payload.ts +182 -0
- package/src/vtc/website/upload/begin/0.1/payload.ts +408 -0
- package/src/vtc/website/upload/chunk/0.1/payload.ts +295 -0
- package/src/vtc/website/upload/commit/0.1/payload.ts +385 -0
|
@@ -0,0 +1,992 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/vetting/vetters/grants/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { CountryCode, Ext, LanguageTag, VetterDisplayName, VettingMethod } from "../../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Who issued the grant. `auto`: the automatic-grant sweep (vtc/vetting/auto-grant), on the vetter-eligibility policy's allow — and the only grants that sweep ever revokes. `manual`: an administrator, through vtc/vetting/vetters/grant.
|
|
8
|
+
*/
|
|
9
|
+
export type GrantOrigin = "auto" | "manual";
|
|
10
|
+
/**
|
|
11
|
+
* An administrator pages through every vetter grant the community has made. The outer document members are owned by the framework — SPEC §6.3.
|
|
12
|
+
*/
|
|
13
|
+
export interface VTCVettingVetterGrantsListPayload {
|
|
14
|
+
/**
|
|
15
|
+
* Opaque continuation token from a previous page's `nextCursor`.
|
|
16
|
+
*/
|
|
17
|
+
cursor?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Page size. The community chooses when absent (50 in the reference implementation).
|
|
20
|
+
*/
|
|
21
|
+
limit?: number;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
export interface VTCVettingVetterGrantsListResponsePayload {
|
|
25
|
+
/**
|
|
26
|
+
* @maxItems 100
|
|
27
|
+
*/
|
|
28
|
+
items: VetterGrant[];
|
|
29
|
+
/**
|
|
30
|
+
* Present when more remain; pass it as `cursor`.
|
|
31
|
+
*/
|
|
32
|
+
nextCursor?: string;
|
|
33
|
+
ext?: Ext;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* One vetter grant.
|
|
37
|
+
*/
|
|
38
|
+
export interface VetterGrant {
|
|
39
|
+
/**
|
|
40
|
+
* The grant's record — what vtc/endorsements/revoke withdraws.
|
|
41
|
+
*/
|
|
42
|
+
endorsementId: string;
|
|
43
|
+
/**
|
|
44
|
+
* The member named a vetter.
|
|
45
|
+
*/
|
|
46
|
+
memberDid: string;
|
|
47
|
+
/**
|
|
48
|
+
* The vetter role credential's `id`.
|
|
49
|
+
*/
|
|
50
|
+
credentialId: string;
|
|
51
|
+
/**
|
|
52
|
+
* The credential's `validFrom`.
|
|
53
|
+
*/
|
|
54
|
+
validFrom: string;
|
|
55
|
+
/**
|
|
56
|
+
* The credential's `validUntil`. Absent on a grant recorded before the community kept it.
|
|
57
|
+
*/
|
|
58
|
+
validUntil?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the grant has been revoked.
|
|
61
|
+
*/
|
|
62
|
+
revoked: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* When it was revoked. Present only when `revoked`.
|
|
65
|
+
*/
|
|
66
|
+
revokedAt?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Unrevoked, unexpired, and held by a current member — the predicate vtc/vetting/vetters/show reports as `live`.
|
|
69
|
+
*/
|
|
70
|
+
live: boolean;
|
|
71
|
+
origin: GrantOrigin;
|
|
72
|
+
profile?: VetterProfileSummary;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* What an administrator sees of a vetter's self-published profile (vtc/vetting/vetters/profile). Self-asserted by the vetter; a surface rendering it attributes it to them.
|
|
76
|
+
*/
|
|
77
|
+
export interface VetterProfileSummary {
|
|
78
|
+
/**
|
|
79
|
+
* Whether the profile appears in vtc/vetting/vetters/list.
|
|
80
|
+
*/
|
|
81
|
+
listed: boolean;
|
|
82
|
+
displayName?: VetterDisplayName;
|
|
83
|
+
country?: CountryCode;
|
|
84
|
+
/**
|
|
85
|
+
* @maxItems 16
|
|
86
|
+
*/
|
|
87
|
+
languages: [] | [LanguageTag] | [LanguageTag, LanguageTag] | [LanguageTag, LanguageTag, LanguageTag] | [LanguageTag, LanguageTag, LanguageTag, LanguageTag] | [LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag] | [LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag] | [LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag] | [LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag, LanguageTag] | [
|
|
88
|
+
LanguageTag,
|
|
89
|
+
LanguageTag,
|
|
90
|
+
LanguageTag,
|
|
91
|
+
LanguageTag,
|
|
92
|
+
LanguageTag,
|
|
93
|
+
LanguageTag,
|
|
94
|
+
LanguageTag,
|
|
95
|
+
LanguageTag,
|
|
96
|
+
LanguageTag
|
|
97
|
+
] | [
|
|
98
|
+
LanguageTag,
|
|
99
|
+
LanguageTag,
|
|
100
|
+
LanguageTag,
|
|
101
|
+
LanguageTag,
|
|
102
|
+
LanguageTag,
|
|
103
|
+
LanguageTag,
|
|
104
|
+
LanguageTag,
|
|
105
|
+
LanguageTag,
|
|
106
|
+
LanguageTag,
|
|
107
|
+
LanguageTag
|
|
108
|
+
] | [
|
|
109
|
+
LanguageTag,
|
|
110
|
+
LanguageTag,
|
|
111
|
+
LanguageTag,
|
|
112
|
+
LanguageTag,
|
|
113
|
+
LanguageTag,
|
|
114
|
+
LanguageTag,
|
|
115
|
+
LanguageTag,
|
|
116
|
+
LanguageTag,
|
|
117
|
+
LanguageTag,
|
|
118
|
+
LanguageTag,
|
|
119
|
+
LanguageTag
|
|
120
|
+
] | [
|
|
121
|
+
LanguageTag,
|
|
122
|
+
LanguageTag,
|
|
123
|
+
LanguageTag,
|
|
124
|
+
LanguageTag,
|
|
125
|
+
LanguageTag,
|
|
126
|
+
LanguageTag,
|
|
127
|
+
LanguageTag,
|
|
128
|
+
LanguageTag,
|
|
129
|
+
LanguageTag,
|
|
130
|
+
LanguageTag,
|
|
131
|
+
LanguageTag,
|
|
132
|
+
LanguageTag
|
|
133
|
+
] | [
|
|
134
|
+
LanguageTag,
|
|
135
|
+
LanguageTag,
|
|
136
|
+
LanguageTag,
|
|
137
|
+
LanguageTag,
|
|
138
|
+
LanguageTag,
|
|
139
|
+
LanguageTag,
|
|
140
|
+
LanguageTag,
|
|
141
|
+
LanguageTag,
|
|
142
|
+
LanguageTag,
|
|
143
|
+
LanguageTag,
|
|
144
|
+
LanguageTag,
|
|
145
|
+
LanguageTag,
|
|
146
|
+
LanguageTag
|
|
147
|
+
] | [
|
|
148
|
+
LanguageTag,
|
|
149
|
+
LanguageTag,
|
|
150
|
+
LanguageTag,
|
|
151
|
+
LanguageTag,
|
|
152
|
+
LanguageTag,
|
|
153
|
+
LanguageTag,
|
|
154
|
+
LanguageTag,
|
|
155
|
+
LanguageTag,
|
|
156
|
+
LanguageTag,
|
|
157
|
+
LanguageTag,
|
|
158
|
+
LanguageTag,
|
|
159
|
+
LanguageTag,
|
|
160
|
+
LanguageTag,
|
|
161
|
+
LanguageTag
|
|
162
|
+
] | [
|
|
163
|
+
LanguageTag,
|
|
164
|
+
LanguageTag,
|
|
165
|
+
LanguageTag,
|
|
166
|
+
LanguageTag,
|
|
167
|
+
LanguageTag,
|
|
168
|
+
LanguageTag,
|
|
169
|
+
LanguageTag,
|
|
170
|
+
LanguageTag,
|
|
171
|
+
LanguageTag,
|
|
172
|
+
LanguageTag,
|
|
173
|
+
LanguageTag,
|
|
174
|
+
LanguageTag,
|
|
175
|
+
LanguageTag,
|
|
176
|
+
LanguageTag,
|
|
177
|
+
LanguageTag
|
|
178
|
+
] | [
|
|
179
|
+
LanguageTag,
|
|
180
|
+
LanguageTag,
|
|
181
|
+
LanguageTag,
|
|
182
|
+
LanguageTag,
|
|
183
|
+
LanguageTag,
|
|
184
|
+
LanguageTag,
|
|
185
|
+
LanguageTag,
|
|
186
|
+
LanguageTag,
|
|
187
|
+
LanguageTag,
|
|
188
|
+
LanguageTag,
|
|
189
|
+
LanguageTag,
|
|
190
|
+
LanguageTag,
|
|
191
|
+
LanguageTag,
|
|
192
|
+
LanguageTag,
|
|
193
|
+
LanguageTag,
|
|
194
|
+
LanguageTag
|
|
195
|
+
];
|
|
196
|
+
/**
|
|
197
|
+
* @maxItems 3
|
|
198
|
+
*/
|
|
199
|
+
methods: [] | [VettingMethod] | [VettingMethod, VettingMethod] | [VettingMethod, VettingMethod, VettingMethod];
|
|
200
|
+
/**
|
|
201
|
+
* How many events the profile lists, ended or not.
|
|
202
|
+
*/
|
|
203
|
+
eventCount: number;
|
|
204
|
+
/**
|
|
205
|
+
* When the profile was last published.
|
|
206
|
+
*/
|
|
207
|
+
updatedAt: string;
|
|
208
|
+
}
|
|
209
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
210
|
+
export type { CountryCode, Ext, LanguageTag, VetterDisplayName, VettingMethod };
|
|
211
|
+
/** Trust Task type URI. */
|
|
212
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/grants/list/0.1";
|
|
213
|
+
/** Stable alias for this specification's request payload shape. */
|
|
214
|
+
export type Payload = VTCVettingVetterGrantsListPayload;
|
|
215
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
216
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/grants/list/0.1#response";
|
|
217
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
218
|
+
export type Response = VTCVettingVetterGrantsListResponsePayload;
|
|
219
|
+
/**
|
|
220
|
+
* This specification's payload schema, as a value.
|
|
221
|
+
*
|
|
222
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
223
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
224
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
225
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
226
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
227
|
+
*/
|
|
228
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
229
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
230
|
+
readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/grants/list/0.1";
|
|
231
|
+
readonly title: "VTC Vetting — Vetter Grants — List — payload";
|
|
232
|
+
readonly description: "An administrator pages through every vetter grant the community has made. The outer document members are owned by the framework — SPEC §6.3.";
|
|
233
|
+
readonly type: "object";
|
|
234
|
+
readonly additionalProperties: false;
|
|
235
|
+
readonly properties: {
|
|
236
|
+
readonly cursor: {
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
readonly minLength: 1;
|
|
239
|
+
readonly maxLength: 1024;
|
|
240
|
+
readonly description: "Opaque continuation token from a previous page's `nextCursor`.";
|
|
241
|
+
};
|
|
242
|
+
readonly limit: {
|
|
243
|
+
readonly type: "integer";
|
|
244
|
+
readonly minimum: 1;
|
|
245
|
+
readonly maximum: 100;
|
|
246
|
+
readonly description: "Page size. The community chooses when absent (50 in the reference implementation).";
|
|
247
|
+
};
|
|
248
|
+
readonly ext: {
|
|
249
|
+
readonly $ref: "#/$defs/Ext";
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
readonly $defs: {
|
|
253
|
+
readonly GrantOrigin: {
|
|
254
|
+
readonly title: "GrantOrigin";
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
readonly enum: readonly ["auto", "manual"];
|
|
257
|
+
readonly description: "Who issued the grant. `auto`: the automatic-grant sweep (vtc/vetting/auto-grant), on the vetter-eligibility policy's allow — and the only grants that sweep ever revokes. `manual`: an administrator, through vtc/vetting/vetters/grant.";
|
|
258
|
+
};
|
|
259
|
+
readonly VetterProfileSummary: {
|
|
260
|
+
readonly title: "VetterProfileSummary";
|
|
261
|
+
readonly type: "object";
|
|
262
|
+
readonly additionalProperties: false;
|
|
263
|
+
readonly required: readonly ["listed", "languages", "methods", "eventCount", "updatedAt"];
|
|
264
|
+
readonly description: "What an administrator sees of a vetter's self-published profile (vtc/vetting/vetters/profile). Self-asserted by the vetter; a surface rendering it attributes it to them.";
|
|
265
|
+
readonly properties: {
|
|
266
|
+
readonly listed: {
|
|
267
|
+
readonly type: "boolean";
|
|
268
|
+
readonly description: "Whether the profile appears in vtc/vetting/vetters/list.";
|
|
269
|
+
};
|
|
270
|
+
readonly displayName: {
|
|
271
|
+
readonly $ref: "#/$defs/VetterDisplayName";
|
|
272
|
+
};
|
|
273
|
+
readonly country: {
|
|
274
|
+
readonly $ref: "#/$defs/CountryCode";
|
|
275
|
+
};
|
|
276
|
+
readonly languages: {
|
|
277
|
+
readonly type: "array";
|
|
278
|
+
readonly maxItems: 16;
|
|
279
|
+
readonly items: {
|
|
280
|
+
readonly $ref: "#/$defs/LanguageTag";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly methods: {
|
|
284
|
+
readonly type: "array";
|
|
285
|
+
readonly maxItems: 3;
|
|
286
|
+
readonly uniqueItems: true;
|
|
287
|
+
readonly items: {
|
|
288
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
readonly eventCount: {
|
|
292
|
+
readonly type: "integer";
|
|
293
|
+
readonly minimum: 0;
|
|
294
|
+
readonly description: "How many events the profile lists, ended or not.";
|
|
295
|
+
};
|
|
296
|
+
readonly updatedAt: {
|
|
297
|
+
readonly type: "string";
|
|
298
|
+
readonly format: "date-time";
|
|
299
|
+
readonly description: "When the profile was last published.";
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
readonly VetterGrant: {
|
|
304
|
+
readonly title: "VetterGrant";
|
|
305
|
+
readonly type: "object";
|
|
306
|
+
readonly additionalProperties: false;
|
|
307
|
+
readonly required: readonly ["endorsementId", "memberDid", "credentialId", "validFrom", "revoked", "live", "origin"];
|
|
308
|
+
readonly description: "One vetter grant.";
|
|
309
|
+
readonly properties: {
|
|
310
|
+
readonly endorsementId: {
|
|
311
|
+
readonly type: "string";
|
|
312
|
+
readonly minLength: 1;
|
|
313
|
+
readonly maxLength: 512;
|
|
314
|
+
readonly description: "The grant's record — what vtc/endorsements/revoke withdraws.";
|
|
315
|
+
};
|
|
316
|
+
readonly memberDid: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly pattern: "^did:";
|
|
319
|
+
readonly maxLength: 2048;
|
|
320
|
+
readonly description: "The member named a vetter.";
|
|
321
|
+
};
|
|
322
|
+
readonly credentialId: {
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
readonly minLength: 1;
|
|
325
|
+
readonly maxLength: 512;
|
|
326
|
+
readonly description: "The vetter role credential's `id`.";
|
|
327
|
+
};
|
|
328
|
+
readonly validFrom: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly format: "date-time";
|
|
331
|
+
readonly description: "The credential's `validFrom`.";
|
|
332
|
+
};
|
|
333
|
+
readonly validUntil: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly format: "date-time";
|
|
336
|
+
readonly description: "The credential's `validUntil`. Absent on a grant recorded before the community kept it.";
|
|
337
|
+
};
|
|
338
|
+
readonly revoked: {
|
|
339
|
+
readonly type: "boolean";
|
|
340
|
+
readonly description: "Whether the grant has been revoked.";
|
|
341
|
+
};
|
|
342
|
+
readonly revokedAt: {
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
readonly format: "date-time";
|
|
345
|
+
readonly description: "When it was revoked. Present only when `revoked`.";
|
|
346
|
+
};
|
|
347
|
+
readonly live: {
|
|
348
|
+
readonly type: "boolean";
|
|
349
|
+
readonly description: "Unrevoked, unexpired, and held by a current member — the predicate vtc/vetting/vetters/show reports as `live`.";
|
|
350
|
+
};
|
|
351
|
+
readonly origin: {
|
|
352
|
+
readonly $ref: "#/$defs/GrantOrigin";
|
|
353
|
+
};
|
|
354
|
+
readonly profile: {
|
|
355
|
+
readonly $ref: "#/$defs/VetterProfileSummary";
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
readonly Response: {
|
|
360
|
+
readonly $anchor: "response";
|
|
361
|
+
readonly title: "VTC Vetting — Vetter Grants — List — response payload";
|
|
362
|
+
readonly type: "object";
|
|
363
|
+
readonly additionalProperties: false;
|
|
364
|
+
readonly required: readonly ["items"];
|
|
365
|
+
readonly properties: {
|
|
366
|
+
readonly items: {
|
|
367
|
+
readonly type: "array";
|
|
368
|
+
readonly maxItems: 100;
|
|
369
|
+
readonly items: {
|
|
370
|
+
readonly $ref: "#/$defs/VetterGrant";
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
readonly nextCursor: {
|
|
374
|
+
readonly type: "string";
|
|
375
|
+
readonly minLength: 1;
|
|
376
|
+
readonly maxLength: 1024;
|
|
377
|
+
readonly description: "Present when more remain; pass it as `cursor`.";
|
|
378
|
+
};
|
|
379
|
+
readonly ext: {
|
|
380
|
+
readonly $ref: "#/$defs/Ext";
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
readonly Ext: {
|
|
385
|
+
readonly title: "Ext";
|
|
386
|
+
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.";
|
|
387
|
+
readonly type: "object";
|
|
388
|
+
readonly minProperties: 1;
|
|
389
|
+
readonly additionalProperties: true;
|
|
390
|
+
readonly propertyNames: {
|
|
391
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
readonly VettingMethod: {
|
|
395
|
+
readonly title: "VettingMethod";
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
398
|
+
readonly description: "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy.";
|
|
399
|
+
};
|
|
400
|
+
readonly LanguageTag: {
|
|
401
|
+
readonly title: "LanguageTag";
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly minLength: 2;
|
|
404
|
+
readonly maxLength: 35;
|
|
405
|
+
readonly pattern: "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$";
|
|
406
|
+
readonly description: "A BCP 47 language tag, e.g. `en`, `de-AT`. Compared case-insensitively.";
|
|
407
|
+
};
|
|
408
|
+
readonly CountryCode: {
|
|
409
|
+
readonly title: "CountryCode";
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
readonly pattern: "^[A-Z]{2}$";
|
|
412
|
+
readonly description: "An ISO 3166-1 alpha-2 country code, upper case, e.g. `DE`.";
|
|
413
|
+
};
|
|
414
|
+
readonly VetterDisplayName: {
|
|
415
|
+
readonly title: "VetterDisplayName";
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
readonly minLength: 1;
|
|
418
|
+
readonly maxLength: 128;
|
|
419
|
+
readonly description: "The name the vetter chooses to be listed under. Self-asserted and unverified: it is not the name on any document, and a client MUST attribute it to the vetter.";
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
424
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
425
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
426
|
+
readonly $ref: "#/$defs/Response";
|
|
427
|
+
readonly $defs: {
|
|
428
|
+
readonly GrantOrigin: {
|
|
429
|
+
readonly title: "GrantOrigin";
|
|
430
|
+
readonly type: "string";
|
|
431
|
+
readonly enum: readonly ["auto", "manual"];
|
|
432
|
+
readonly description: "Who issued the grant. `auto`: the automatic-grant sweep (vtc/vetting/auto-grant), on the vetter-eligibility policy's allow — and the only grants that sweep ever revokes. `manual`: an administrator, through vtc/vetting/vetters/grant.";
|
|
433
|
+
};
|
|
434
|
+
readonly VetterProfileSummary: {
|
|
435
|
+
readonly title: "VetterProfileSummary";
|
|
436
|
+
readonly type: "object";
|
|
437
|
+
readonly additionalProperties: false;
|
|
438
|
+
readonly required: readonly ["listed", "languages", "methods", "eventCount", "updatedAt"];
|
|
439
|
+
readonly description: "What an administrator sees of a vetter's self-published profile (vtc/vetting/vetters/profile). Self-asserted by the vetter; a surface rendering it attributes it to them.";
|
|
440
|
+
readonly properties: {
|
|
441
|
+
readonly listed: {
|
|
442
|
+
readonly type: "boolean";
|
|
443
|
+
readonly description: "Whether the profile appears in vtc/vetting/vetters/list.";
|
|
444
|
+
};
|
|
445
|
+
readonly displayName: {
|
|
446
|
+
readonly $ref: "#/$defs/VetterDisplayName";
|
|
447
|
+
};
|
|
448
|
+
readonly country: {
|
|
449
|
+
readonly $ref: "#/$defs/CountryCode";
|
|
450
|
+
};
|
|
451
|
+
readonly languages: {
|
|
452
|
+
readonly type: "array";
|
|
453
|
+
readonly maxItems: 16;
|
|
454
|
+
readonly items: {
|
|
455
|
+
readonly $ref: "#/$defs/LanguageTag";
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
readonly methods: {
|
|
459
|
+
readonly type: "array";
|
|
460
|
+
readonly maxItems: 3;
|
|
461
|
+
readonly uniqueItems: true;
|
|
462
|
+
readonly items: {
|
|
463
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
readonly eventCount: {
|
|
467
|
+
readonly type: "integer";
|
|
468
|
+
readonly minimum: 0;
|
|
469
|
+
readonly description: "How many events the profile lists, ended or not.";
|
|
470
|
+
};
|
|
471
|
+
readonly updatedAt: {
|
|
472
|
+
readonly type: "string";
|
|
473
|
+
readonly format: "date-time";
|
|
474
|
+
readonly description: "When the profile was last published.";
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
readonly VetterGrant: {
|
|
479
|
+
readonly title: "VetterGrant";
|
|
480
|
+
readonly type: "object";
|
|
481
|
+
readonly additionalProperties: false;
|
|
482
|
+
readonly required: readonly ["endorsementId", "memberDid", "credentialId", "validFrom", "revoked", "live", "origin"];
|
|
483
|
+
readonly description: "One vetter grant.";
|
|
484
|
+
readonly properties: {
|
|
485
|
+
readonly endorsementId: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly minLength: 1;
|
|
488
|
+
readonly maxLength: 512;
|
|
489
|
+
readonly description: "The grant's record — what vtc/endorsements/revoke withdraws.";
|
|
490
|
+
};
|
|
491
|
+
readonly memberDid: {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
readonly pattern: "^did:";
|
|
494
|
+
readonly maxLength: 2048;
|
|
495
|
+
readonly description: "The member named a vetter.";
|
|
496
|
+
};
|
|
497
|
+
readonly credentialId: {
|
|
498
|
+
readonly type: "string";
|
|
499
|
+
readonly minLength: 1;
|
|
500
|
+
readonly maxLength: 512;
|
|
501
|
+
readonly description: "The vetter role credential's `id`.";
|
|
502
|
+
};
|
|
503
|
+
readonly validFrom: {
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
readonly format: "date-time";
|
|
506
|
+
readonly description: "The credential's `validFrom`.";
|
|
507
|
+
};
|
|
508
|
+
readonly validUntil: {
|
|
509
|
+
readonly type: "string";
|
|
510
|
+
readonly format: "date-time";
|
|
511
|
+
readonly description: "The credential's `validUntil`. Absent on a grant recorded before the community kept it.";
|
|
512
|
+
};
|
|
513
|
+
readonly revoked: {
|
|
514
|
+
readonly type: "boolean";
|
|
515
|
+
readonly description: "Whether the grant has been revoked.";
|
|
516
|
+
};
|
|
517
|
+
readonly revokedAt: {
|
|
518
|
+
readonly type: "string";
|
|
519
|
+
readonly format: "date-time";
|
|
520
|
+
readonly description: "When it was revoked. Present only when `revoked`.";
|
|
521
|
+
};
|
|
522
|
+
readonly live: {
|
|
523
|
+
readonly type: "boolean";
|
|
524
|
+
readonly description: "Unrevoked, unexpired, and held by a current member — the predicate vtc/vetting/vetters/show reports as `live`.";
|
|
525
|
+
};
|
|
526
|
+
readonly origin: {
|
|
527
|
+
readonly $ref: "#/$defs/GrantOrigin";
|
|
528
|
+
};
|
|
529
|
+
readonly profile: {
|
|
530
|
+
readonly $ref: "#/$defs/VetterProfileSummary";
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
readonly Response: {
|
|
535
|
+
readonly $anchor: "response";
|
|
536
|
+
readonly title: "VTC Vetting — Vetter Grants — List — response payload";
|
|
537
|
+
readonly type: "object";
|
|
538
|
+
readonly additionalProperties: false;
|
|
539
|
+
readonly required: readonly ["items"];
|
|
540
|
+
readonly properties: {
|
|
541
|
+
readonly items: {
|
|
542
|
+
readonly type: "array";
|
|
543
|
+
readonly maxItems: 100;
|
|
544
|
+
readonly items: {
|
|
545
|
+
readonly $ref: "#/$defs/VetterGrant";
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
readonly nextCursor: {
|
|
549
|
+
readonly type: "string";
|
|
550
|
+
readonly minLength: 1;
|
|
551
|
+
readonly maxLength: 1024;
|
|
552
|
+
readonly description: "Present when more remain; pass it as `cursor`.";
|
|
553
|
+
};
|
|
554
|
+
readonly ext: {
|
|
555
|
+
readonly $ref: "#/$defs/Ext";
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
readonly Ext: {
|
|
560
|
+
readonly title: "Ext";
|
|
561
|
+
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.";
|
|
562
|
+
readonly type: "object";
|
|
563
|
+
readonly minProperties: 1;
|
|
564
|
+
readonly additionalProperties: true;
|
|
565
|
+
readonly propertyNames: {
|
|
566
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
readonly VettingMethod: {
|
|
570
|
+
readonly title: "VettingMethod";
|
|
571
|
+
readonly type: "string";
|
|
572
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
573
|
+
readonly description: "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy.";
|
|
574
|
+
};
|
|
575
|
+
readonly LanguageTag: {
|
|
576
|
+
readonly title: "LanguageTag";
|
|
577
|
+
readonly type: "string";
|
|
578
|
+
readonly minLength: 2;
|
|
579
|
+
readonly maxLength: 35;
|
|
580
|
+
readonly pattern: "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$";
|
|
581
|
+
readonly description: "A BCP 47 language tag, e.g. `en`, `de-AT`. Compared case-insensitively.";
|
|
582
|
+
};
|
|
583
|
+
readonly CountryCode: {
|
|
584
|
+
readonly title: "CountryCode";
|
|
585
|
+
readonly type: "string";
|
|
586
|
+
readonly pattern: "^[A-Z]{2}$";
|
|
587
|
+
readonly description: "An ISO 3166-1 alpha-2 country code, upper case, e.g. `DE`.";
|
|
588
|
+
};
|
|
589
|
+
readonly VetterDisplayName: {
|
|
590
|
+
readonly title: "VetterDisplayName";
|
|
591
|
+
readonly type: "string";
|
|
592
|
+
readonly minLength: 1;
|
|
593
|
+
readonly maxLength: 128;
|
|
594
|
+
readonly description: "The name the vetter chooses to be listed under. Self-asserted and unverified: it is not the name on any document, and a client MUST attribute it to the vetter.";
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
/**
|
|
599
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
600
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
601
|
+
* per-specification and cannot be derived from the document alone, and
|
|
602
|
+
* item 2 needs the schema this carries.
|
|
603
|
+
*/
|
|
604
|
+
export declare const SPEC: {
|
|
605
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/grants/list/0.1";
|
|
606
|
+
readonly isBearer: false;
|
|
607
|
+
readonly isProofRequired: false;
|
|
608
|
+
readonly isRecipientRequired: true;
|
|
609
|
+
readonly isIssuedAtRequired: false;
|
|
610
|
+
readonly payloadSchema: {
|
|
611
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
612
|
+
readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/grants/list/0.1";
|
|
613
|
+
readonly title: "VTC Vetting — Vetter Grants — List — payload";
|
|
614
|
+
readonly description: "An administrator pages through every vetter grant the community has made. The outer document members are owned by the framework — SPEC §6.3.";
|
|
615
|
+
readonly type: "object";
|
|
616
|
+
readonly additionalProperties: false;
|
|
617
|
+
readonly properties: {
|
|
618
|
+
readonly cursor: {
|
|
619
|
+
readonly type: "string";
|
|
620
|
+
readonly minLength: 1;
|
|
621
|
+
readonly maxLength: 1024;
|
|
622
|
+
readonly description: "Opaque continuation token from a previous page's `nextCursor`.";
|
|
623
|
+
};
|
|
624
|
+
readonly limit: {
|
|
625
|
+
readonly type: "integer";
|
|
626
|
+
readonly minimum: 1;
|
|
627
|
+
readonly maximum: 100;
|
|
628
|
+
readonly description: "Page size. The community chooses when absent (50 in the reference implementation).";
|
|
629
|
+
};
|
|
630
|
+
readonly ext: {
|
|
631
|
+
readonly $ref: "#/$defs/Ext";
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
readonly $defs: {
|
|
635
|
+
readonly GrantOrigin: {
|
|
636
|
+
readonly title: "GrantOrigin";
|
|
637
|
+
readonly type: "string";
|
|
638
|
+
readonly enum: readonly ["auto", "manual"];
|
|
639
|
+
readonly description: "Who issued the grant. `auto`: the automatic-grant sweep (vtc/vetting/auto-grant), on the vetter-eligibility policy's allow — and the only grants that sweep ever revokes. `manual`: an administrator, through vtc/vetting/vetters/grant.";
|
|
640
|
+
};
|
|
641
|
+
readonly VetterProfileSummary: {
|
|
642
|
+
readonly title: "VetterProfileSummary";
|
|
643
|
+
readonly type: "object";
|
|
644
|
+
readonly additionalProperties: false;
|
|
645
|
+
readonly required: readonly ["listed", "languages", "methods", "eventCount", "updatedAt"];
|
|
646
|
+
readonly description: "What an administrator sees of a vetter's self-published profile (vtc/vetting/vetters/profile). Self-asserted by the vetter; a surface rendering it attributes it to them.";
|
|
647
|
+
readonly properties: {
|
|
648
|
+
readonly listed: {
|
|
649
|
+
readonly type: "boolean";
|
|
650
|
+
readonly description: "Whether the profile appears in vtc/vetting/vetters/list.";
|
|
651
|
+
};
|
|
652
|
+
readonly displayName: {
|
|
653
|
+
readonly $ref: "#/$defs/VetterDisplayName";
|
|
654
|
+
};
|
|
655
|
+
readonly country: {
|
|
656
|
+
readonly $ref: "#/$defs/CountryCode";
|
|
657
|
+
};
|
|
658
|
+
readonly languages: {
|
|
659
|
+
readonly type: "array";
|
|
660
|
+
readonly maxItems: 16;
|
|
661
|
+
readonly items: {
|
|
662
|
+
readonly $ref: "#/$defs/LanguageTag";
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
readonly methods: {
|
|
666
|
+
readonly type: "array";
|
|
667
|
+
readonly maxItems: 3;
|
|
668
|
+
readonly uniqueItems: true;
|
|
669
|
+
readonly items: {
|
|
670
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
readonly eventCount: {
|
|
674
|
+
readonly type: "integer";
|
|
675
|
+
readonly minimum: 0;
|
|
676
|
+
readonly description: "How many events the profile lists, ended or not.";
|
|
677
|
+
};
|
|
678
|
+
readonly updatedAt: {
|
|
679
|
+
readonly type: "string";
|
|
680
|
+
readonly format: "date-time";
|
|
681
|
+
readonly description: "When the profile was last published.";
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
readonly VetterGrant: {
|
|
686
|
+
readonly title: "VetterGrant";
|
|
687
|
+
readonly type: "object";
|
|
688
|
+
readonly additionalProperties: false;
|
|
689
|
+
readonly required: readonly ["endorsementId", "memberDid", "credentialId", "validFrom", "revoked", "live", "origin"];
|
|
690
|
+
readonly description: "One vetter grant.";
|
|
691
|
+
readonly properties: {
|
|
692
|
+
readonly endorsementId: {
|
|
693
|
+
readonly type: "string";
|
|
694
|
+
readonly minLength: 1;
|
|
695
|
+
readonly maxLength: 512;
|
|
696
|
+
readonly description: "The grant's record — what vtc/endorsements/revoke withdraws.";
|
|
697
|
+
};
|
|
698
|
+
readonly memberDid: {
|
|
699
|
+
readonly type: "string";
|
|
700
|
+
readonly pattern: "^did:";
|
|
701
|
+
readonly maxLength: 2048;
|
|
702
|
+
readonly description: "The member named a vetter.";
|
|
703
|
+
};
|
|
704
|
+
readonly credentialId: {
|
|
705
|
+
readonly type: "string";
|
|
706
|
+
readonly minLength: 1;
|
|
707
|
+
readonly maxLength: 512;
|
|
708
|
+
readonly description: "The vetter role credential's `id`.";
|
|
709
|
+
};
|
|
710
|
+
readonly validFrom: {
|
|
711
|
+
readonly type: "string";
|
|
712
|
+
readonly format: "date-time";
|
|
713
|
+
readonly description: "The credential's `validFrom`.";
|
|
714
|
+
};
|
|
715
|
+
readonly validUntil: {
|
|
716
|
+
readonly type: "string";
|
|
717
|
+
readonly format: "date-time";
|
|
718
|
+
readonly description: "The credential's `validUntil`. Absent on a grant recorded before the community kept it.";
|
|
719
|
+
};
|
|
720
|
+
readonly revoked: {
|
|
721
|
+
readonly type: "boolean";
|
|
722
|
+
readonly description: "Whether the grant has been revoked.";
|
|
723
|
+
};
|
|
724
|
+
readonly revokedAt: {
|
|
725
|
+
readonly type: "string";
|
|
726
|
+
readonly format: "date-time";
|
|
727
|
+
readonly description: "When it was revoked. Present only when `revoked`.";
|
|
728
|
+
};
|
|
729
|
+
readonly live: {
|
|
730
|
+
readonly type: "boolean";
|
|
731
|
+
readonly description: "Unrevoked, unexpired, and held by a current member — the predicate vtc/vetting/vetters/show reports as `live`.";
|
|
732
|
+
};
|
|
733
|
+
readonly origin: {
|
|
734
|
+
readonly $ref: "#/$defs/GrantOrigin";
|
|
735
|
+
};
|
|
736
|
+
readonly profile: {
|
|
737
|
+
readonly $ref: "#/$defs/VetterProfileSummary";
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
readonly Response: {
|
|
742
|
+
readonly $anchor: "response";
|
|
743
|
+
readonly title: "VTC Vetting — Vetter Grants — List — response payload";
|
|
744
|
+
readonly type: "object";
|
|
745
|
+
readonly additionalProperties: false;
|
|
746
|
+
readonly required: readonly ["items"];
|
|
747
|
+
readonly properties: {
|
|
748
|
+
readonly items: {
|
|
749
|
+
readonly type: "array";
|
|
750
|
+
readonly maxItems: 100;
|
|
751
|
+
readonly items: {
|
|
752
|
+
readonly $ref: "#/$defs/VetterGrant";
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
readonly nextCursor: {
|
|
756
|
+
readonly type: "string";
|
|
757
|
+
readonly minLength: 1;
|
|
758
|
+
readonly maxLength: 1024;
|
|
759
|
+
readonly description: "Present when more remain; pass it as `cursor`.";
|
|
760
|
+
};
|
|
761
|
+
readonly ext: {
|
|
762
|
+
readonly $ref: "#/$defs/Ext";
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
readonly Ext: {
|
|
767
|
+
readonly title: "Ext";
|
|
768
|
+
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.";
|
|
769
|
+
readonly type: "object";
|
|
770
|
+
readonly minProperties: 1;
|
|
771
|
+
readonly additionalProperties: true;
|
|
772
|
+
readonly propertyNames: {
|
|
773
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
readonly VettingMethod: {
|
|
777
|
+
readonly title: "VettingMethod";
|
|
778
|
+
readonly type: "string";
|
|
779
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
780
|
+
readonly description: "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy.";
|
|
781
|
+
};
|
|
782
|
+
readonly LanguageTag: {
|
|
783
|
+
readonly title: "LanguageTag";
|
|
784
|
+
readonly type: "string";
|
|
785
|
+
readonly minLength: 2;
|
|
786
|
+
readonly maxLength: 35;
|
|
787
|
+
readonly pattern: "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$";
|
|
788
|
+
readonly description: "A BCP 47 language tag, e.g. `en`, `de-AT`. Compared case-insensitively.";
|
|
789
|
+
};
|
|
790
|
+
readonly CountryCode: {
|
|
791
|
+
readonly title: "CountryCode";
|
|
792
|
+
readonly type: "string";
|
|
793
|
+
readonly pattern: "^[A-Z]{2}$";
|
|
794
|
+
readonly description: "An ISO 3166-1 alpha-2 country code, upper case, e.g. `DE`.";
|
|
795
|
+
};
|
|
796
|
+
readonly VetterDisplayName: {
|
|
797
|
+
readonly title: "VetterDisplayName";
|
|
798
|
+
readonly type: "string";
|
|
799
|
+
readonly minLength: 1;
|
|
800
|
+
readonly maxLength: 128;
|
|
801
|
+
readonly description: "The name the vetter chooses to be listed under. Self-asserted and unverified: it is not the name on any document, and a client MUST attribute it to the vetter.";
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
/**
|
|
807
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
808
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
809
|
+
* parties (§7.3 item 5).
|
|
810
|
+
*/
|
|
811
|
+
export declare const RESPONSE_SPEC: {
|
|
812
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/grants/list/0.1#response";
|
|
813
|
+
readonly isBearer: false;
|
|
814
|
+
readonly isProofRequired: false;
|
|
815
|
+
readonly isRecipientRequired: true;
|
|
816
|
+
readonly isIssuedAtRequired: false;
|
|
817
|
+
readonly payloadSchema: {
|
|
818
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
819
|
+
readonly $ref: "#/$defs/Response";
|
|
820
|
+
readonly $defs: {
|
|
821
|
+
readonly GrantOrigin: {
|
|
822
|
+
readonly title: "GrantOrigin";
|
|
823
|
+
readonly type: "string";
|
|
824
|
+
readonly enum: readonly ["auto", "manual"];
|
|
825
|
+
readonly description: "Who issued the grant. `auto`: the automatic-grant sweep (vtc/vetting/auto-grant), on the vetter-eligibility policy's allow — and the only grants that sweep ever revokes. `manual`: an administrator, through vtc/vetting/vetters/grant.";
|
|
826
|
+
};
|
|
827
|
+
readonly VetterProfileSummary: {
|
|
828
|
+
readonly title: "VetterProfileSummary";
|
|
829
|
+
readonly type: "object";
|
|
830
|
+
readonly additionalProperties: false;
|
|
831
|
+
readonly required: readonly ["listed", "languages", "methods", "eventCount", "updatedAt"];
|
|
832
|
+
readonly description: "What an administrator sees of a vetter's self-published profile (vtc/vetting/vetters/profile). Self-asserted by the vetter; a surface rendering it attributes it to them.";
|
|
833
|
+
readonly properties: {
|
|
834
|
+
readonly listed: {
|
|
835
|
+
readonly type: "boolean";
|
|
836
|
+
readonly description: "Whether the profile appears in vtc/vetting/vetters/list.";
|
|
837
|
+
};
|
|
838
|
+
readonly displayName: {
|
|
839
|
+
readonly $ref: "#/$defs/VetterDisplayName";
|
|
840
|
+
};
|
|
841
|
+
readonly country: {
|
|
842
|
+
readonly $ref: "#/$defs/CountryCode";
|
|
843
|
+
};
|
|
844
|
+
readonly languages: {
|
|
845
|
+
readonly type: "array";
|
|
846
|
+
readonly maxItems: 16;
|
|
847
|
+
readonly items: {
|
|
848
|
+
readonly $ref: "#/$defs/LanguageTag";
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
readonly methods: {
|
|
852
|
+
readonly type: "array";
|
|
853
|
+
readonly maxItems: 3;
|
|
854
|
+
readonly uniqueItems: true;
|
|
855
|
+
readonly items: {
|
|
856
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
readonly eventCount: {
|
|
860
|
+
readonly type: "integer";
|
|
861
|
+
readonly minimum: 0;
|
|
862
|
+
readonly description: "How many events the profile lists, ended or not.";
|
|
863
|
+
};
|
|
864
|
+
readonly updatedAt: {
|
|
865
|
+
readonly type: "string";
|
|
866
|
+
readonly format: "date-time";
|
|
867
|
+
readonly description: "When the profile was last published.";
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
readonly VetterGrant: {
|
|
872
|
+
readonly title: "VetterGrant";
|
|
873
|
+
readonly type: "object";
|
|
874
|
+
readonly additionalProperties: false;
|
|
875
|
+
readonly required: readonly ["endorsementId", "memberDid", "credentialId", "validFrom", "revoked", "live", "origin"];
|
|
876
|
+
readonly description: "One vetter grant.";
|
|
877
|
+
readonly properties: {
|
|
878
|
+
readonly endorsementId: {
|
|
879
|
+
readonly type: "string";
|
|
880
|
+
readonly minLength: 1;
|
|
881
|
+
readonly maxLength: 512;
|
|
882
|
+
readonly description: "The grant's record — what vtc/endorsements/revoke withdraws.";
|
|
883
|
+
};
|
|
884
|
+
readonly memberDid: {
|
|
885
|
+
readonly type: "string";
|
|
886
|
+
readonly pattern: "^did:";
|
|
887
|
+
readonly maxLength: 2048;
|
|
888
|
+
readonly description: "The member named a vetter.";
|
|
889
|
+
};
|
|
890
|
+
readonly credentialId: {
|
|
891
|
+
readonly type: "string";
|
|
892
|
+
readonly minLength: 1;
|
|
893
|
+
readonly maxLength: 512;
|
|
894
|
+
readonly description: "The vetter role credential's `id`.";
|
|
895
|
+
};
|
|
896
|
+
readonly validFrom: {
|
|
897
|
+
readonly type: "string";
|
|
898
|
+
readonly format: "date-time";
|
|
899
|
+
readonly description: "The credential's `validFrom`.";
|
|
900
|
+
};
|
|
901
|
+
readonly validUntil: {
|
|
902
|
+
readonly type: "string";
|
|
903
|
+
readonly format: "date-time";
|
|
904
|
+
readonly description: "The credential's `validUntil`. Absent on a grant recorded before the community kept it.";
|
|
905
|
+
};
|
|
906
|
+
readonly revoked: {
|
|
907
|
+
readonly type: "boolean";
|
|
908
|
+
readonly description: "Whether the grant has been revoked.";
|
|
909
|
+
};
|
|
910
|
+
readonly revokedAt: {
|
|
911
|
+
readonly type: "string";
|
|
912
|
+
readonly format: "date-time";
|
|
913
|
+
readonly description: "When it was revoked. Present only when `revoked`.";
|
|
914
|
+
};
|
|
915
|
+
readonly live: {
|
|
916
|
+
readonly type: "boolean";
|
|
917
|
+
readonly description: "Unrevoked, unexpired, and held by a current member — the predicate vtc/vetting/vetters/show reports as `live`.";
|
|
918
|
+
};
|
|
919
|
+
readonly origin: {
|
|
920
|
+
readonly $ref: "#/$defs/GrantOrigin";
|
|
921
|
+
};
|
|
922
|
+
readonly profile: {
|
|
923
|
+
readonly $ref: "#/$defs/VetterProfileSummary";
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
readonly Response: {
|
|
928
|
+
readonly $anchor: "response";
|
|
929
|
+
readonly title: "VTC Vetting — Vetter Grants — List — response payload";
|
|
930
|
+
readonly type: "object";
|
|
931
|
+
readonly additionalProperties: false;
|
|
932
|
+
readonly required: readonly ["items"];
|
|
933
|
+
readonly properties: {
|
|
934
|
+
readonly items: {
|
|
935
|
+
readonly type: "array";
|
|
936
|
+
readonly maxItems: 100;
|
|
937
|
+
readonly items: {
|
|
938
|
+
readonly $ref: "#/$defs/VetterGrant";
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
readonly nextCursor: {
|
|
942
|
+
readonly type: "string";
|
|
943
|
+
readonly minLength: 1;
|
|
944
|
+
readonly maxLength: 1024;
|
|
945
|
+
readonly description: "Present when more remain; pass it as `cursor`.";
|
|
946
|
+
};
|
|
947
|
+
readonly ext: {
|
|
948
|
+
readonly $ref: "#/$defs/Ext";
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
readonly Ext: {
|
|
953
|
+
readonly title: "Ext";
|
|
954
|
+
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.";
|
|
955
|
+
readonly type: "object";
|
|
956
|
+
readonly minProperties: 1;
|
|
957
|
+
readonly additionalProperties: true;
|
|
958
|
+
readonly propertyNames: {
|
|
959
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
readonly VettingMethod: {
|
|
963
|
+
readonly title: "VettingMethod";
|
|
964
|
+
readonly type: "string";
|
|
965
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
966
|
+
readonly description: "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy.";
|
|
967
|
+
};
|
|
968
|
+
readonly LanguageTag: {
|
|
969
|
+
readonly title: "LanguageTag";
|
|
970
|
+
readonly type: "string";
|
|
971
|
+
readonly minLength: 2;
|
|
972
|
+
readonly maxLength: 35;
|
|
973
|
+
readonly pattern: "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$";
|
|
974
|
+
readonly description: "A BCP 47 language tag, e.g. `en`, `de-AT`. Compared case-insensitively.";
|
|
975
|
+
};
|
|
976
|
+
readonly CountryCode: {
|
|
977
|
+
readonly title: "CountryCode";
|
|
978
|
+
readonly type: "string";
|
|
979
|
+
readonly pattern: "^[A-Z]{2}$";
|
|
980
|
+
readonly description: "An ISO 3166-1 alpha-2 country code, upper case, e.g. `DE`.";
|
|
981
|
+
};
|
|
982
|
+
readonly VetterDisplayName: {
|
|
983
|
+
readonly title: "VetterDisplayName";
|
|
984
|
+
readonly type: "string";
|
|
985
|
+
readonly minLength: 1;
|
|
986
|
+
readonly maxLength: 128;
|
|
987
|
+
readonly description: "The name the vetter chooses to be listed under. Self-asserted and unverified: it is not the name on any document, and a client MUST attribute it to the vetter.";
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
//# sourceMappingURL=payload.d.ts.map
|