@openvtc/trust-tasks 0.25.1 → 0.25.2
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 +18 -0
- package/dist/_shared/components.d.ts +304 -2
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +6 -2
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +6 -2
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +6 -2
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +6 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/vetting/_shared/0.1/hidden-vetting.d.ts +16 -0
- package/dist/vetting/_shared/0.1/hidden-vetting.d.ts.map +1 -0
- package/dist/vetting/_shared/0.1/hidden-vetting.js +6 -0
- package/dist/vetting/_shared/0.1/hidden-vetting.js.map +1 -0
- package/dist/vetting/attestation/0.1/payload.d.ts +94 -146
- package/dist/vetting/attestation/0.1/payload.d.ts.map +1 -1
- package/dist/vetting/attestation/0.1/payload.js +43 -43
- package/dist/vetting/attestation/0.1/payload.js.map +1 -1
- package/dist/vta/_shared/0.4/pcs-engine.d.ts +16 -0
- package/dist/vta/_shared/0.4/pcs-engine.d.ts.map +1 -0
- package/dist/vta/_shared/0.4/pcs-engine.js +6 -0
- package/dist/vta/_shared/0.4/pcs-engine.js.map +1 -0
- package/dist/vta/pcs/applications/create/0.1/payload.d.ts +1215 -0
- package/dist/vta/pcs/applications/create/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/applications/create/0.1/payload.js +724 -0
- package/dist/vta/pcs/applications/create/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/applications/delete/0.1/payload.d.ts +253 -0
- package/dist/vta/pcs/applications/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/applications/delete/0.1/payload.js +146 -0
- package/dist/vta/pcs/applications/delete/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/applications/show/0.1/payload.d.ts +733 -0
- package/dist/vta/pcs/applications/show/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/applications/show/0.1/payload.js +450 -0
- package/dist/vta/pcs/applications/show/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/attest/0.1/payload.d.ts +1456 -0
- package/dist/vta/pcs/attest/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/attest/0.1/payload.js +876 -0
- package/dist/vta/pcs/attest/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/prove/0.1/payload.d.ts +1348 -0
- package/dist/vta/pcs/prove/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/prove/0.1/payload.js +804 -0
- package/dist/vta/pcs/prove/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/root-accept/0.1/payload.d.ts +1100 -0
- package/dist/vta/pcs/root-accept/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/root-accept/0.1/payload.js +634 -0
- package/dist/vta/pcs/root-accept/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/root-request/0.1/payload.d.ts +880 -0
- package/dist/vta/pcs/root-request/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/root-request/0.1/payload.js +496 -0
- package/dist/vta/pcs/root-request/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts +612 -0
- package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/tokens/abandon/0.1/payload.js +355 -0
- package/dist/vta/pcs/tokens/abandon/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts +1149 -0
- package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/tokens/accept/0.1/payload.js +657 -0
- package/dist/vta/pcs/tokens/accept/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/tokens/request/0.1/payload.d.ts +908 -0
- package/dist/vta/pcs/tokens/request/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/tokens/request/0.1/payload.js +508 -0
- package/dist/vta/pcs/tokens/request/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts +1423 -0
- package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/verify-attestation/0.1/payload.js +850 -0
- package/dist/vta/pcs/verify-attestation/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/vetter/show/0.1/payload.d.ts +605 -0
- package/dist/vta/pcs/vetter/show/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vetter/show/0.1/payload.js +351 -0
- package/dist/vta/pcs/vetter/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts +403 -486
- package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/vetting/hidden/publish/0.1/payload.js +240 -240
- package/dist/vtc/vetting/hidden/publish/0.1/payload.js.map +1 -1
- package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts +482 -565
- package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/vetting/hidden/show/0.1/payload.js +294 -294
- package/dist/vtc/vetting/hidden/show/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +308 -2
- package/src/device/list/0.1/payload.ts +6 -2
- package/src/device/list/0.2/payload.ts +6 -2
- package/src/device/register/0.1/payload.ts +6 -2
- package/src/device/register/0.2/payload.ts +6 -2
- package/src/index.ts +14 -0
- package/src/vetting/_shared/0.1/hidden-vetting.ts +17 -0
- package/src/vetting/attestation/0.1/payload.ts +49 -101
- package/src/vta/_shared/0.4/pcs-engine.ts +17 -0
- package/src/vta/pcs/applications/create/0.1/payload.ts +768 -0
- package/src/vta/pcs/applications/delete/0.1/payload.ts +182 -0
- package/src/vta/pcs/applications/show/0.1/payload.ts +482 -0
- package/src/vta/pcs/attest/0.1/payload.ts +943 -0
- package/src/vta/pcs/prove/0.1/payload.ts +845 -0
- package/src/vta/pcs/root-accept/0.1/payload.ts +681 -0
- package/src/vta/pcs/root-request/0.1/payload.ts +559 -0
- package/src/vta/pcs/tokens/abandon/0.1/payload.ts +392 -0
- package/src/vta/pcs/tokens/accept/0.1/payload.ts +713 -0
- package/src/vta/pcs/tokens/request/0.1/payload.ts +581 -0
- package/src/vta/pcs/verify-attestation/0.1/payload.ts +888 -0
- package/src/vta/pcs/vetter/show/0.1/payload.ts +387 -0
- package/src/vtc/vetting/hidden/publish/0.1/payload.ts +247 -331
- package/src/vtc/vetting/hidden/show/0.1/payload.ts +295 -379
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/pcs/applications/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ApplicationSummary, Ext, Multibase, StatementMeta } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A client reads one of its hidden-vetting applications back from its VTA: its PCS identifier and the metadata of the attestations it holds, never its key.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTAPCSApplicationsShowPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The handle vta/pcs/applications/create returned.
|
|
12
|
+
*/
|
|
13
|
+
applicationId: string;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface VTAPCSApplicationsShowResponsePayload {
|
|
17
|
+
application: ApplicationSummary;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
21
|
+
export type { ApplicationSummary, Ext, Multibase, StatementMeta };
|
|
22
|
+
/** Trust Task type URI. */
|
|
23
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/pcs/applications/show/0.1";
|
|
24
|
+
/** Stable alias for this specification's request payload shape. */
|
|
25
|
+
export type Payload = VTAPCSApplicationsShowPayload;
|
|
26
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
27
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/pcs/applications/show/0.1#response";
|
|
28
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
29
|
+
export type Response = VTAPCSApplicationsShowResponsePayload;
|
|
30
|
+
/**
|
|
31
|
+
* This specification's payload schema, as a value.
|
|
32
|
+
*
|
|
33
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
34
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
35
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
36
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
37
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
38
|
+
*/
|
|
39
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
40
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
41
|
+
readonly $id: "https://trusttasks.org/spec/vta/pcs/applications/show/0.1";
|
|
42
|
+
readonly title: "VTA PCS — Applications — Show — payload";
|
|
43
|
+
readonly description: "A client reads one of its hidden-vetting applications back from its VTA: its PCS identifier and the metadata of the attestations it holds, never its key.";
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly additionalProperties: false;
|
|
46
|
+
readonly required: readonly ["applicationId"];
|
|
47
|
+
readonly properties: {
|
|
48
|
+
readonly applicationId: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
readonly minLength: 1;
|
|
51
|
+
readonly maxLength: 128;
|
|
52
|
+
readonly description: "The handle vta/pcs/applications/create returned.";
|
|
53
|
+
};
|
|
54
|
+
readonly ext: {
|
|
55
|
+
readonly $ref: "#/$defs/Ext";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly $defs: {
|
|
59
|
+
readonly Response: {
|
|
60
|
+
readonly $anchor: "response";
|
|
61
|
+
readonly title: "VTA PCS — Applications — Show — response payload";
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly additionalProperties: false;
|
|
64
|
+
readonly required: readonly ["application"];
|
|
65
|
+
readonly properties: {
|
|
66
|
+
readonly application: {
|
|
67
|
+
readonly $ref: "#/$defs/ApplicationSummary";
|
|
68
|
+
};
|
|
69
|
+
readonly ext: {
|
|
70
|
+
readonly $ref: "#/$defs/Ext";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly Ext: {
|
|
75
|
+
readonly title: "Ext";
|
|
76
|
+
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.";
|
|
77
|
+
readonly type: "object";
|
|
78
|
+
readonly minProperties: 1;
|
|
79
|
+
readonly additionalProperties: true;
|
|
80
|
+
readonly propertyNames: {
|
|
81
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly ApplicationSummary: {
|
|
85
|
+
readonly title: "ApplicationSummary";
|
|
86
|
+
readonly description: "An applicant engine as the VTA holds it, without its key.";
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly additionalProperties: false;
|
|
89
|
+
readonly required: readonly ["applicationId", "contextId", "community", "joinDid", "suite", "id", "attestations", "createdAt"];
|
|
90
|
+
readonly properties: {
|
|
91
|
+
readonly applicationId: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
readonly minLength: 1;
|
|
94
|
+
readonly maxLength: 128;
|
|
95
|
+
readonly description: "The VTA's handle for this application. Opaque; never sent to the community.";
|
|
96
|
+
};
|
|
97
|
+
readonly contextId: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
readonly minLength: 1;
|
|
100
|
+
readonly description: "The context the application's key is derived in.";
|
|
101
|
+
};
|
|
102
|
+
readonly community: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
readonly minLength: 1;
|
|
105
|
+
readonly description: "The community's DID.";
|
|
106
|
+
};
|
|
107
|
+
readonly joinDid: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly minLength: 1;
|
|
110
|
+
readonly description: "The DID the application joins as.";
|
|
111
|
+
};
|
|
112
|
+
readonly suite: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly minLength: 1;
|
|
115
|
+
readonly maxLength: 64;
|
|
116
|
+
};
|
|
117
|
+
readonly id: {
|
|
118
|
+
readonly $ref: "#/$defs/Multibase";
|
|
119
|
+
readonly description: "The applicant's PCS identifier: what a vetter attests to, carried in a vetting/request's `ext`.";
|
|
120
|
+
};
|
|
121
|
+
readonly attestations: {
|
|
122
|
+
readonly type: "array";
|
|
123
|
+
readonly description: "The metadata of each attestation held, in the order received. Metadata names no vetter.";
|
|
124
|
+
readonly items: {
|
|
125
|
+
readonly $ref: "#/$defs/StatementMeta";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly createdAt: {
|
|
129
|
+
readonly type: "string";
|
|
130
|
+
readonly format: "date-time";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly Multibase: {
|
|
135
|
+
readonly title: "Multibase";
|
|
136
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical encoding.";
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
139
|
+
};
|
|
140
|
+
readonly StatementMeta: {
|
|
141
|
+
readonly type: "object";
|
|
142
|
+
readonly additionalProperties: false;
|
|
143
|
+
readonly required: readonly ["community", "requirementsDigest", "method", "claimsVerified", "livenessConfirmed", "declaredRelationship", "identityCommitment", "cardDigestMultibase", "validFrom", "validUntil", "tokenLabel", "tokenSerial"];
|
|
144
|
+
readonly description: "What a Vetting Statement would have said, minus its issuer.";
|
|
145
|
+
readonly properties: {
|
|
146
|
+
readonly community: {
|
|
147
|
+
readonly type: "string";
|
|
148
|
+
readonly minLength: 1;
|
|
149
|
+
readonly description: "The community this attestation is for. An attestation is not portable between communities.";
|
|
150
|
+
};
|
|
151
|
+
readonly requirementsDigest: {
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
readonly minLength: 1;
|
|
154
|
+
readonly description: "The digest of the criterion's requirements as the vetter read them.";
|
|
155
|
+
};
|
|
156
|
+
readonly method: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
159
|
+
readonly description: "How the vetter met the applicant.";
|
|
160
|
+
};
|
|
161
|
+
readonly claimsVerified: {
|
|
162
|
+
readonly type: "array";
|
|
163
|
+
readonly minItems: 1;
|
|
164
|
+
readonly items: {
|
|
165
|
+
readonly type: "string";
|
|
166
|
+
readonly minLength: 1;
|
|
167
|
+
};
|
|
168
|
+
readonly description: "The claim types the vetter checked.";
|
|
169
|
+
};
|
|
170
|
+
readonly livenessConfirmed: {
|
|
171
|
+
readonly type: "boolean";
|
|
172
|
+
readonly description: "Whether the vetter confirmed a live person.";
|
|
173
|
+
};
|
|
174
|
+
readonly declaredRelationship: {
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
readonly enum: readonly ["none", "family", "sameEmployer", "closeFriend", "other"];
|
|
177
|
+
readonly description: "The relationship the vetter declared, which the community's independence rules count.";
|
|
178
|
+
};
|
|
179
|
+
readonly identityCommitment: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
182
|
+
readonly description: "The commitment on the Vetting Card the applicant showed. Consistency across attestations is what stops two applicants pooling them.";
|
|
183
|
+
};
|
|
184
|
+
readonly cardDigestMultibase: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
187
|
+
readonly description: "Digest of that card, as the vetter verified it.";
|
|
188
|
+
};
|
|
189
|
+
readonly validFrom: {
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
readonly format: "date";
|
|
192
|
+
readonly description: "A DATE, never a timestamp: an exact time would let a community line an attestation up with a vetter's activity, which undoes the proof without touching it.";
|
|
193
|
+
};
|
|
194
|
+
readonly validUntil: {
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
readonly format: "date";
|
|
197
|
+
readonly description: "A date, for the same reason.";
|
|
198
|
+
};
|
|
199
|
+
readonly tokenLabel: {
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
readonly minLength: 1;
|
|
202
|
+
readonly maxLength: 128;
|
|
203
|
+
readonly description: "The token label spent, repeated inside the bound facts so it cannot be swapped in transit.";
|
|
204
|
+
};
|
|
205
|
+
readonly tokenSerial: {
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
208
|
+
readonly description: "The token serial spent, likewise bound.";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
215
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
216
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
217
|
+
readonly $ref: "#/$defs/Response";
|
|
218
|
+
readonly $defs: {
|
|
219
|
+
readonly Response: {
|
|
220
|
+
readonly $anchor: "response";
|
|
221
|
+
readonly title: "VTA PCS — Applications — Show — response payload";
|
|
222
|
+
readonly type: "object";
|
|
223
|
+
readonly additionalProperties: false;
|
|
224
|
+
readonly required: readonly ["application"];
|
|
225
|
+
readonly properties: {
|
|
226
|
+
readonly application: {
|
|
227
|
+
readonly $ref: "#/$defs/ApplicationSummary";
|
|
228
|
+
};
|
|
229
|
+
readonly ext: {
|
|
230
|
+
readonly $ref: "#/$defs/Ext";
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
readonly Ext: {
|
|
235
|
+
readonly title: "Ext";
|
|
236
|
+
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.";
|
|
237
|
+
readonly type: "object";
|
|
238
|
+
readonly minProperties: 1;
|
|
239
|
+
readonly additionalProperties: true;
|
|
240
|
+
readonly propertyNames: {
|
|
241
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
readonly ApplicationSummary: {
|
|
245
|
+
readonly title: "ApplicationSummary";
|
|
246
|
+
readonly description: "An applicant engine as the VTA holds it, without its key.";
|
|
247
|
+
readonly type: "object";
|
|
248
|
+
readonly additionalProperties: false;
|
|
249
|
+
readonly required: readonly ["applicationId", "contextId", "community", "joinDid", "suite", "id", "attestations", "createdAt"];
|
|
250
|
+
readonly properties: {
|
|
251
|
+
readonly applicationId: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly minLength: 1;
|
|
254
|
+
readonly maxLength: 128;
|
|
255
|
+
readonly description: "The VTA's handle for this application. Opaque; never sent to the community.";
|
|
256
|
+
};
|
|
257
|
+
readonly contextId: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly minLength: 1;
|
|
260
|
+
readonly description: "The context the application's key is derived in.";
|
|
261
|
+
};
|
|
262
|
+
readonly community: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly minLength: 1;
|
|
265
|
+
readonly description: "The community's DID.";
|
|
266
|
+
};
|
|
267
|
+
readonly joinDid: {
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
readonly minLength: 1;
|
|
270
|
+
readonly description: "The DID the application joins as.";
|
|
271
|
+
};
|
|
272
|
+
readonly suite: {
|
|
273
|
+
readonly type: "string";
|
|
274
|
+
readonly minLength: 1;
|
|
275
|
+
readonly maxLength: 64;
|
|
276
|
+
};
|
|
277
|
+
readonly id: {
|
|
278
|
+
readonly $ref: "#/$defs/Multibase";
|
|
279
|
+
readonly description: "The applicant's PCS identifier: what a vetter attests to, carried in a vetting/request's `ext`.";
|
|
280
|
+
};
|
|
281
|
+
readonly attestations: {
|
|
282
|
+
readonly type: "array";
|
|
283
|
+
readonly description: "The metadata of each attestation held, in the order received. Metadata names no vetter.";
|
|
284
|
+
readonly items: {
|
|
285
|
+
readonly $ref: "#/$defs/StatementMeta";
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly createdAt: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
readonly format: "date-time";
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
readonly Multibase: {
|
|
295
|
+
readonly title: "Multibase";
|
|
296
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical encoding.";
|
|
297
|
+
readonly type: "string";
|
|
298
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
299
|
+
};
|
|
300
|
+
readonly StatementMeta: {
|
|
301
|
+
readonly type: "object";
|
|
302
|
+
readonly additionalProperties: false;
|
|
303
|
+
readonly required: readonly ["community", "requirementsDigest", "method", "claimsVerified", "livenessConfirmed", "declaredRelationship", "identityCommitment", "cardDigestMultibase", "validFrom", "validUntil", "tokenLabel", "tokenSerial"];
|
|
304
|
+
readonly description: "What a Vetting Statement would have said, minus its issuer.";
|
|
305
|
+
readonly properties: {
|
|
306
|
+
readonly community: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly minLength: 1;
|
|
309
|
+
readonly description: "The community this attestation is for. An attestation is not portable between communities.";
|
|
310
|
+
};
|
|
311
|
+
readonly requirementsDigest: {
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
readonly minLength: 1;
|
|
314
|
+
readonly description: "The digest of the criterion's requirements as the vetter read them.";
|
|
315
|
+
};
|
|
316
|
+
readonly method: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
319
|
+
readonly description: "How the vetter met the applicant.";
|
|
320
|
+
};
|
|
321
|
+
readonly claimsVerified: {
|
|
322
|
+
readonly type: "array";
|
|
323
|
+
readonly minItems: 1;
|
|
324
|
+
readonly items: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly minLength: 1;
|
|
327
|
+
};
|
|
328
|
+
readonly description: "The claim types the vetter checked.";
|
|
329
|
+
};
|
|
330
|
+
readonly livenessConfirmed: {
|
|
331
|
+
readonly type: "boolean";
|
|
332
|
+
readonly description: "Whether the vetter confirmed a live person.";
|
|
333
|
+
};
|
|
334
|
+
readonly declaredRelationship: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly enum: readonly ["none", "family", "sameEmployer", "closeFriend", "other"];
|
|
337
|
+
readonly description: "The relationship the vetter declared, which the community's independence rules count.";
|
|
338
|
+
};
|
|
339
|
+
readonly identityCommitment: {
|
|
340
|
+
readonly type: "string";
|
|
341
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
342
|
+
readonly description: "The commitment on the Vetting Card the applicant showed. Consistency across attestations is what stops two applicants pooling them.";
|
|
343
|
+
};
|
|
344
|
+
readonly cardDigestMultibase: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
347
|
+
readonly description: "Digest of that card, as the vetter verified it.";
|
|
348
|
+
};
|
|
349
|
+
readonly validFrom: {
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly format: "date";
|
|
352
|
+
readonly description: "A DATE, never a timestamp: an exact time would let a community line an attestation up with a vetter's activity, which undoes the proof without touching it.";
|
|
353
|
+
};
|
|
354
|
+
readonly validUntil: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
readonly format: "date";
|
|
357
|
+
readonly description: "A date, for the same reason.";
|
|
358
|
+
};
|
|
359
|
+
readonly tokenLabel: {
|
|
360
|
+
readonly type: "string";
|
|
361
|
+
readonly minLength: 1;
|
|
362
|
+
readonly maxLength: 128;
|
|
363
|
+
readonly description: "The token label spent, repeated inside the bound facts so it cannot be swapped in transit.";
|
|
364
|
+
};
|
|
365
|
+
readonly tokenSerial: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
368
|
+
readonly description: "The token serial spent, likewise bound.";
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
376
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
377
|
+
* per-specification and cannot be derived from the document alone, and
|
|
378
|
+
* item 2 needs the schema this carries.
|
|
379
|
+
*/
|
|
380
|
+
export declare const SPEC: {
|
|
381
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/pcs/applications/show/0.1";
|
|
382
|
+
readonly isBearer: false;
|
|
383
|
+
readonly isProofRequired: false;
|
|
384
|
+
readonly isRecipientRequired: true;
|
|
385
|
+
readonly isIssuedAtRequired: false;
|
|
386
|
+
readonly payloadSchema: {
|
|
387
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
388
|
+
readonly $id: "https://trusttasks.org/spec/vta/pcs/applications/show/0.1";
|
|
389
|
+
readonly title: "VTA PCS — Applications — Show — payload";
|
|
390
|
+
readonly description: "A client reads one of its hidden-vetting applications back from its VTA: its PCS identifier and the metadata of the attestations it holds, never its key.";
|
|
391
|
+
readonly type: "object";
|
|
392
|
+
readonly additionalProperties: false;
|
|
393
|
+
readonly required: readonly ["applicationId"];
|
|
394
|
+
readonly properties: {
|
|
395
|
+
readonly applicationId: {
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
readonly minLength: 1;
|
|
398
|
+
readonly maxLength: 128;
|
|
399
|
+
readonly description: "The handle vta/pcs/applications/create returned.";
|
|
400
|
+
};
|
|
401
|
+
readonly ext: {
|
|
402
|
+
readonly $ref: "#/$defs/Ext";
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
readonly $defs: {
|
|
406
|
+
readonly Response: {
|
|
407
|
+
readonly $anchor: "response";
|
|
408
|
+
readonly title: "VTA PCS — Applications — Show — response payload";
|
|
409
|
+
readonly type: "object";
|
|
410
|
+
readonly additionalProperties: false;
|
|
411
|
+
readonly required: readonly ["application"];
|
|
412
|
+
readonly properties: {
|
|
413
|
+
readonly application: {
|
|
414
|
+
readonly $ref: "#/$defs/ApplicationSummary";
|
|
415
|
+
};
|
|
416
|
+
readonly ext: {
|
|
417
|
+
readonly $ref: "#/$defs/Ext";
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
readonly Ext: {
|
|
422
|
+
readonly title: "Ext";
|
|
423
|
+
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.";
|
|
424
|
+
readonly type: "object";
|
|
425
|
+
readonly minProperties: 1;
|
|
426
|
+
readonly additionalProperties: true;
|
|
427
|
+
readonly propertyNames: {
|
|
428
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
readonly ApplicationSummary: {
|
|
432
|
+
readonly title: "ApplicationSummary";
|
|
433
|
+
readonly description: "An applicant engine as the VTA holds it, without its key.";
|
|
434
|
+
readonly type: "object";
|
|
435
|
+
readonly additionalProperties: false;
|
|
436
|
+
readonly required: readonly ["applicationId", "contextId", "community", "joinDid", "suite", "id", "attestations", "createdAt"];
|
|
437
|
+
readonly properties: {
|
|
438
|
+
readonly applicationId: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly minLength: 1;
|
|
441
|
+
readonly maxLength: 128;
|
|
442
|
+
readonly description: "The VTA's handle for this application. Opaque; never sent to the community.";
|
|
443
|
+
};
|
|
444
|
+
readonly contextId: {
|
|
445
|
+
readonly type: "string";
|
|
446
|
+
readonly minLength: 1;
|
|
447
|
+
readonly description: "The context the application's key is derived in.";
|
|
448
|
+
};
|
|
449
|
+
readonly community: {
|
|
450
|
+
readonly type: "string";
|
|
451
|
+
readonly minLength: 1;
|
|
452
|
+
readonly description: "The community's DID.";
|
|
453
|
+
};
|
|
454
|
+
readonly joinDid: {
|
|
455
|
+
readonly type: "string";
|
|
456
|
+
readonly minLength: 1;
|
|
457
|
+
readonly description: "The DID the application joins as.";
|
|
458
|
+
};
|
|
459
|
+
readonly suite: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
readonly minLength: 1;
|
|
462
|
+
readonly maxLength: 64;
|
|
463
|
+
};
|
|
464
|
+
readonly id: {
|
|
465
|
+
readonly $ref: "#/$defs/Multibase";
|
|
466
|
+
readonly description: "The applicant's PCS identifier: what a vetter attests to, carried in a vetting/request's `ext`.";
|
|
467
|
+
};
|
|
468
|
+
readonly attestations: {
|
|
469
|
+
readonly type: "array";
|
|
470
|
+
readonly description: "The metadata of each attestation held, in the order received. Metadata names no vetter.";
|
|
471
|
+
readonly items: {
|
|
472
|
+
readonly $ref: "#/$defs/StatementMeta";
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
readonly createdAt: {
|
|
476
|
+
readonly type: "string";
|
|
477
|
+
readonly format: "date-time";
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
readonly Multibase: {
|
|
482
|
+
readonly title: "Multibase";
|
|
483
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical encoding.";
|
|
484
|
+
readonly type: "string";
|
|
485
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
486
|
+
};
|
|
487
|
+
readonly StatementMeta: {
|
|
488
|
+
readonly type: "object";
|
|
489
|
+
readonly additionalProperties: false;
|
|
490
|
+
readonly required: readonly ["community", "requirementsDigest", "method", "claimsVerified", "livenessConfirmed", "declaredRelationship", "identityCommitment", "cardDigestMultibase", "validFrom", "validUntil", "tokenLabel", "tokenSerial"];
|
|
491
|
+
readonly description: "What a Vetting Statement would have said, minus its issuer.";
|
|
492
|
+
readonly properties: {
|
|
493
|
+
readonly community: {
|
|
494
|
+
readonly type: "string";
|
|
495
|
+
readonly minLength: 1;
|
|
496
|
+
readonly description: "The community this attestation is for. An attestation is not portable between communities.";
|
|
497
|
+
};
|
|
498
|
+
readonly requirementsDigest: {
|
|
499
|
+
readonly type: "string";
|
|
500
|
+
readonly minLength: 1;
|
|
501
|
+
readonly description: "The digest of the criterion's requirements as the vetter read them.";
|
|
502
|
+
};
|
|
503
|
+
readonly method: {
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
506
|
+
readonly description: "How the vetter met the applicant.";
|
|
507
|
+
};
|
|
508
|
+
readonly claimsVerified: {
|
|
509
|
+
readonly type: "array";
|
|
510
|
+
readonly minItems: 1;
|
|
511
|
+
readonly items: {
|
|
512
|
+
readonly type: "string";
|
|
513
|
+
readonly minLength: 1;
|
|
514
|
+
};
|
|
515
|
+
readonly description: "The claim types the vetter checked.";
|
|
516
|
+
};
|
|
517
|
+
readonly livenessConfirmed: {
|
|
518
|
+
readonly type: "boolean";
|
|
519
|
+
readonly description: "Whether the vetter confirmed a live person.";
|
|
520
|
+
};
|
|
521
|
+
readonly declaredRelationship: {
|
|
522
|
+
readonly type: "string";
|
|
523
|
+
readonly enum: readonly ["none", "family", "sameEmployer", "closeFriend", "other"];
|
|
524
|
+
readonly description: "The relationship the vetter declared, which the community's independence rules count.";
|
|
525
|
+
};
|
|
526
|
+
readonly identityCommitment: {
|
|
527
|
+
readonly type: "string";
|
|
528
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
529
|
+
readonly description: "The commitment on the Vetting Card the applicant showed. Consistency across attestations is what stops two applicants pooling them.";
|
|
530
|
+
};
|
|
531
|
+
readonly cardDigestMultibase: {
|
|
532
|
+
readonly type: "string";
|
|
533
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
534
|
+
readonly description: "Digest of that card, as the vetter verified it.";
|
|
535
|
+
};
|
|
536
|
+
readonly validFrom: {
|
|
537
|
+
readonly type: "string";
|
|
538
|
+
readonly format: "date";
|
|
539
|
+
readonly description: "A DATE, never a timestamp: an exact time would let a community line an attestation up with a vetter's activity, which undoes the proof without touching it.";
|
|
540
|
+
};
|
|
541
|
+
readonly validUntil: {
|
|
542
|
+
readonly type: "string";
|
|
543
|
+
readonly format: "date";
|
|
544
|
+
readonly description: "A date, for the same reason.";
|
|
545
|
+
};
|
|
546
|
+
readonly tokenLabel: {
|
|
547
|
+
readonly type: "string";
|
|
548
|
+
readonly minLength: 1;
|
|
549
|
+
readonly maxLength: 128;
|
|
550
|
+
readonly description: "The token label spent, repeated inside the bound facts so it cannot be swapped in transit.";
|
|
551
|
+
};
|
|
552
|
+
readonly tokenSerial: {
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
555
|
+
readonly description: "The token serial spent, likewise bound.";
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
564
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
565
|
+
* parties (§7.3 item 5).
|
|
566
|
+
*/
|
|
567
|
+
export declare const RESPONSE_SPEC: {
|
|
568
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/pcs/applications/show/0.1#response";
|
|
569
|
+
readonly isBearer: false;
|
|
570
|
+
readonly isProofRequired: false;
|
|
571
|
+
readonly isRecipientRequired: true;
|
|
572
|
+
readonly isIssuedAtRequired: false;
|
|
573
|
+
readonly payloadSchema: {
|
|
574
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
575
|
+
readonly $ref: "#/$defs/Response";
|
|
576
|
+
readonly $defs: {
|
|
577
|
+
readonly Response: {
|
|
578
|
+
readonly $anchor: "response";
|
|
579
|
+
readonly title: "VTA PCS — Applications — Show — response payload";
|
|
580
|
+
readonly type: "object";
|
|
581
|
+
readonly additionalProperties: false;
|
|
582
|
+
readonly required: readonly ["application"];
|
|
583
|
+
readonly properties: {
|
|
584
|
+
readonly application: {
|
|
585
|
+
readonly $ref: "#/$defs/ApplicationSummary";
|
|
586
|
+
};
|
|
587
|
+
readonly ext: {
|
|
588
|
+
readonly $ref: "#/$defs/Ext";
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
readonly Ext: {
|
|
593
|
+
readonly title: "Ext";
|
|
594
|
+
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.";
|
|
595
|
+
readonly type: "object";
|
|
596
|
+
readonly minProperties: 1;
|
|
597
|
+
readonly additionalProperties: true;
|
|
598
|
+
readonly propertyNames: {
|
|
599
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
readonly ApplicationSummary: {
|
|
603
|
+
readonly title: "ApplicationSummary";
|
|
604
|
+
readonly description: "An applicant engine as the VTA holds it, without its key.";
|
|
605
|
+
readonly type: "object";
|
|
606
|
+
readonly additionalProperties: false;
|
|
607
|
+
readonly required: readonly ["applicationId", "contextId", "community", "joinDid", "suite", "id", "attestations", "createdAt"];
|
|
608
|
+
readonly properties: {
|
|
609
|
+
readonly applicationId: {
|
|
610
|
+
readonly type: "string";
|
|
611
|
+
readonly minLength: 1;
|
|
612
|
+
readonly maxLength: 128;
|
|
613
|
+
readonly description: "The VTA's handle for this application. Opaque; never sent to the community.";
|
|
614
|
+
};
|
|
615
|
+
readonly contextId: {
|
|
616
|
+
readonly type: "string";
|
|
617
|
+
readonly minLength: 1;
|
|
618
|
+
readonly description: "The context the application's key is derived in.";
|
|
619
|
+
};
|
|
620
|
+
readonly community: {
|
|
621
|
+
readonly type: "string";
|
|
622
|
+
readonly minLength: 1;
|
|
623
|
+
readonly description: "The community's DID.";
|
|
624
|
+
};
|
|
625
|
+
readonly joinDid: {
|
|
626
|
+
readonly type: "string";
|
|
627
|
+
readonly minLength: 1;
|
|
628
|
+
readonly description: "The DID the application joins as.";
|
|
629
|
+
};
|
|
630
|
+
readonly suite: {
|
|
631
|
+
readonly type: "string";
|
|
632
|
+
readonly minLength: 1;
|
|
633
|
+
readonly maxLength: 64;
|
|
634
|
+
};
|
|
635
|
+
readonly id: {
|
|
636
|
+
readonly $ref: "#/$defs/Multibase";
|
|
637
|
+
readonly description: "The applicant's PCS identifier: what a vetter attests to, carried in a vetting/request's `ext`.";
|
|
638
|
+
};
|
|
639
|
+
readonly attestations: {
|
|
640
|
+
readonly type: "array";
|
|
641
|
+
readonly description: "The metadata of each attestation held, in the order received. Metadata names no vetter.";
|
|
642
|
+
readonly items: {
|
|
643
|
+
readonly $ref: "#/$defs/StatementMeta";
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
readonly createdAt: {
|
|
647
|
+
readonly type: "string";
|
|
648
|
+
readonly format: "date-time";
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
readonly Multibase: {
|
|
653
|
+
readonly title: "Multibase";
|
|
654
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical encoding.";
|
|
655
|
+
readonly type: "string";
|
|
656
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
657
|
+
};
|
|
658
|
+
readonly StatementMeta: {
|
|
659
|
+
readonly type: "object";
|
|
660
|
+
readonly additionalProperties: false;
|
|
661
|
+
readonly required: readonly ["community", "requirementsDigest", "method", "claimsVerified", "livenessConfirmed", "declaredRelationship", "identityCommitment", "cardDigestMultibase", "validFrom", "validUntil", "tokenLabel", "tokenSerial"];
|
|
662
|
+
readonly description: "What a Vetting Statement would have said, minus its issuer.";
|
|
663
|
+
readonly properties: {
|
|
664
|
+
readonly community: {
|
|
665
|
+
readonly type: "string";
|
|
666
|
+
readonly minLength: 1;
|
|
667
|
+
readonly description: "The community this attestation is for. An attestation is not portable between communities.";
|
|
668
|
+
};
|
|
669
|
+
readonly requirementsDigest: {
|
|
670
|
+
readonly type: "string";
|
|
671
|
+
readonly minLength: 1;
|
|
672
|
+
readonly description: "The digest of the criterion's requirements as the vetter read them.";
|
|
673
|
+
};
|
|
674
|
+
readonly method: {
|
|
675
|
+
readonly type: "string";
|
|
676
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
677
|
+
readonly description: "How the vetter met the applicant.";
|
|
678
|
+
};
|
|
679
|
+
readonly claimsVerified: {
|
|
680
|
+
readonly type: "array";
|
|
681
|
+
readonly minItems: 1;
|
|
682
|
+
readonly items: {
|
|
683
|
+
readonly type: "string";
|
|
684
|
+
readonly minLength: 1;
|
|
685
|
+
};
|
|
686
|
+
readonly description: "The claim types the vetter checked.";
|
|
687
|
+
};
|
|
688
|
+
readonly livenessConfirmed: {
|
|
689
|
+
readonly type: "boolean";
|
|
690
|
+
readonly description: "Whether the vetter confirmed a live person.";
|
|
691
|
+
};
|
|
692
|
+
readonly declaredRelationship: {
|
|
693
|
+
readonly type: "string";
|
|
694
|
+
readonly enum: readonly ["none", "family", "sameEmployer", "closeFriend", "other"];
|
|
695
|
+
readonly description: "The relationship the vetter declared, which the community's independence rules count.";
|
|
696
|
+
};
|
|
697
|
+
readonly identityCommitment: {
|
|
698
|
+
readonly type: "string";
|
|
699
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
700
|
+
readonly description: "The commitment on the Vetting Card the applicant showed. Consistency across attestations is what stops two applicants pooling them.";
|
|
701
|
+
};
|
|
702
|
+
readonly cardDigestMultibase: {
|
|
703
|
+
readonly type: "string";
|
|
704
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
705
|
+
readonly description: "Digest of that card, as the vetter verified it.";
|
|
706
|
+
};
|
|
707
|
+
readonly validFrom: {
|
|
708
|
+
readonly type: "string";
|
|
709
|
+
readonly format: "date";
|
|
710
|
+
readonly description: "A DATE, never a timestamp: an exact time would let a community line an attestation up with a vetter's activity, which undoes the proof without touching it.";
|
|
711
|
+
};
|
|
712
|
+
readonly validUntil: {
|
|
713
|
+
readonly type: "string";
|
|
714
|
+
readonly format: "date";
|
|
715
|
+
readonly description: "A date, for the same reason.";
|
|
716
|
+
};
|
|
717
|
+
readonly tokenLabel: {
|
|
718
|
+
readonly type: "string";
|
|
719
|
+
readonly minLength: 1;
|
|
720
|
+
readonly maxLength: 128;
|
|
721
|
+
readonly description: "The token label spent, repeated inside the bound facts so it cannot be swapped in transit.";
|
|
722
|
+
};
|
|
723
|
+
readonly tokenSerial: {
|
|
724
|
+
readonly type: "string";
|
|
725
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
726
|
+
readonly description: "The token serial spent, likewise bound.";
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
//# sourceMappingURL=payload.d.ts.map
|