@openvtc/trust-tasks 0.22.3 → 0.22.5
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 +101 -0
- package/dist/_shared/components.d.ts +44 -3
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/webvh/dids/create/1.1/payload.d.ts +834 -0
- package/dist/vta/webvh/dids/create/1.1/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/create/1.1/payload.js +415 -0
- package/dist/vta/webvh/dids/create/1.1/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/schema-registry.d.ts +1 -1
- package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -1
- package/dist/vtc/_shared/0.2/schema-registry.d.ts +16 -0
- package/dist/vtc/_shared/0.2/schema-registry.d.ts.map +1 -0
- package/dist/vtc/_shared/0.2/schema-registry.js +6 -0
- package/dist/vtc/_shared/0.2/schema-registry.js.map +1 -0
- package/dist/vtc/join-requests/manifest/0.3/payload.d.ts +1595 -0
- package/dist/vtc/join-requests/manifest/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/manifest/0.3/payload.js +827 -0
- package/dist/vtc/join-requests/manifest/0.3/payload.js.map +1 -0
- package/dist/vtc/join-requests/status/0.1/payload.d.ts +82 -2
- package/dist/vtc/join-requests/status/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/status/0.1/payload.js +42 -2
- package/dist/vtc/join-requests/status/0.1/payload.js.map +1 -1
- package/dist/vtc/join-requests/submit/0.3/payload.d.ts +662 -0
- package/dist/vtc/join-requests/submit/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/submit/0.3/payload.js +364 -0
- package/dist/vtc/join-requests/submit/0.3/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1 -1
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/schemas/accepts/list/0.2/payload.d.ts +1326 -0
- package/dist/vtc/schemas/accepts/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.2/payload.js +759 -0
- package/dist/vtc/schemas/accepts/list/0.2/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1 -1
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/schemas/accepts/register/0.2/payload.d.ts +1316 -0
- package/dist/vtc/schemas/accepts/register/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.2/payload.js +762 -0
- package/dist/vtc/schemas/accepts/register/0.2/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1 -1
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/schemas/accepts/show/0.2/payload.d.ts +1256 -0
- package/dist/vtc/schemas/accepts/show/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.2/payload.js +733 -0
- package/dist/vtc/schemas/accepts/show/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +44 -3
- package/src/index.ts +7 -0
- package/src/vta/webvh/dids/create/1.1/payload.ts +570 -0
- package/src/vtc/_shared/0.1/schema-registry.ts +1 -1
- package/src/vtc/_shared/0.2/schema-registry.ts +17 -0
- package/src/vtc/join-requests/manifest/0.3/payload.ts +1020 -0
- package/src/vtc/join-requests/status/0.1/payload.ts +58 -2
- package/src/vtc/join-requests/submit/0.3/payload.ts +431 -0
- package/src/vtc/schemas/accepts/list/0.1/payload.ts +1 -1
- package/src/vtc/schemas/accepts/list/0.2/payload.ts +802 -0
- package/src/vtc/schemas/accepts/register/0.1/payload.ts +1 -1
- package/src/vtc/schemas/accepts/register/0.2/payload.ts +803 -0
- package/src/vtc/schemas/accepts/show/0.1/payload.ts +1 -1
- package/src/vtc/schemas/accepts/show/0.2/payload.ts +762 -0
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/join-requests/submit/0.3/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { DigestMultibase, Ext, Verdict, VerdictEffect, VerdictWith } from "../../../../_shared/components.js";
|
|
6
|
+
export interface VTCJoinRequestsSubmitPayload {
|
|
7
|
+
/**
|
|
8
|
+
* The applicant's W3C Verifiable Presentation (opaque here), satisfying the community's join policy. The applicant DID is the document proof's signer — not a payload field.
|
|
9
|
+
*/
|
|
10
|
+
vp: {};
|
|
11
|
+
/**
|
|
12
|
+
* The `requirementsDigest` of the criterion this submission is made under, as vtc/join-requests/manifest/0.3 published it. Absent: the community decides the submission under the first criterion, in the order it publishes them, that the submission meets.
|
|
13
|
+
*/
|
|
14
|
+
criterion?: DigestMultibase;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the applicant consents to trust-registry publication.
|
|
17
|
+
*/
|
|
18
|
+
registryConsent?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Opaque applicant-supplied extension bag.
|
|
21
|
+
*/
|
|
22
|
+
extensions?: {};
|
|
23
|
+
/**
|
|
24
|
+
* The applicant's answers to the manifest's `requestedAttributes`: one entry per attribute given. Self-asserted and bound to the applicant by the document proof. A maintainer MUST refuse the submission with `attributesMissing` when a required attribute is absent and with `attributesUnrequested` when an entry names a type the manifest does not request.
|
|
25
|
+
*
|
|
26
|
+
* @maxItems 32
|
|
27
|
+
*/
|
|
28
|
+
attributes?: {
|
|
29
|
+
/**
|
|
30
|
+
* A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.
|
|
31
|
+
*/
|
|
32
|
+
type: string;
|
|
33
|
+
/**
|
|
34
|
+
* The value the applicant gives. Self-asserted: the applicant's own statement, bound to them by the document proof, and attested by nobody.
|
|
35
|
+
*/
|
|
36
|
+
value: {
|
|
37
|
+
[k: string]: unknown | undefined;
|
|
38
|
+
};
|
|
39
|
+
}[];
|
|
40
|
+
ext?: Ext;
|
|
41
|
+
}
|
|
42
|
+
export interface VTCJoinRequestsSubmitResponsePayload {
|
|
43
|
+
/**
|
|
44
|
+
* Id of the created join request (a UUID).
|
|
45
|
+
*/
|
|
46
|
+
requestId: string;
|
|
47
|
+
/**
|
|
48
|
+
* What the community decided about this submission.
|
|
49
|
+
*
|
|
50
|
+
* `0.1` returned `status: "pending"` — a constant, which could express only one of the four outcomes a submission actually has. A policy that admits outright, refuses outright, or asks for more evidence had to be reported as 'pending' or not at all.
|
|
51
|
+
*/
|
|
52
|
+
verdict: Verdict;
|
|
53
|
+
ext?: Ext;
|
|
54
|
+
}
|
|
55
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
56
|
+
export type { DigestMultibase, Ext, Verdict, VerdictEffect, VerdictWith };
|
|
57
|
+
/** Trust Task type URI. */
|
|
58
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/join-requests/submit/0.3";
|
|
59
|
+
/** Stable alias for this specification's request payload shape. */
|
|
60
|
+
export type Payload = VTCJoinRequestsSubmitPayload;
|
|
61
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
62
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/join-requests/submit/0.3#response";
|
|
63
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
64
|
+
export type Response = VTCJoinRequestsSubmitResponsePayload;
|
|
65
|
+
/**
|
|
66
|
+
* This specification's payload schema, as a value.
|
|
67
|
+
*
|
|
68
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
69
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
70
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
71
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
72
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
73
|
+
*/
|
|
74
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
75
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
76
|
+
readonly $id: "https://trusttasks.org/spec/vtc/join-requests/submit/0.3";
|
|
77
|
+
readonly title: "VTC Join-Requests Submit — payload";
|
|
78
|
+
readonly type: "object";
|
|
79
|
+
readonly additionalProperties: false;
|
|
80
|
+
readonly required: readonly ["vp"];
|
|
81
|
+
readonly properties: {
|
|
82
|
+
readonly vp: {
|
|
83
|
+
readonly type: "object";
|
|
84
|
+
readonly description: "The applicant's W3C Verifiable Presentation (opaque here), satisfying the community's join policy. The applicant DID is the document proof's signer — not a payload field.";
|
|
85
|
+
};
|
|
86
|
+
readonly criterion: {
|
|
87
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
88
|
+
readonly description: "The `requirementsDigest` of the criterion this submission is made under, as vtc/join-requests/manifest/0.3 published it. Absent: the community decides the submission under the first criterion, in the order it publishes them, that the submission meets.";
|
|
89
|
+
};
|
|
90
|
+
readonly registryConsent: {
|
|
91
|
+
readonly type: "boolean";
|
|
92
|
+
readonly description: "Whether the applicant consents to trust-registry publication.";
|
|
93
|
+
};
|
|
94
|
+
readonly extensions: {
|
|
95
|
+
readonly type: "object";
|
|
96
|
+
readonly description: "Opaque applicant-supplied extension bag.";
|
|
97
|
+
};
|
|
98
|
+
readonly attributes: {
|
|
99
|
+
readonly type: "array";
|
|
100
|
+
readonly maxItems: 32;
|
|
101
|
+
readonly description: "The applicant's answers to the manifest's `requestedAttributes`: one entry per attribute given. Self-asserted and bound to the applicant by the document proof. A maintainer MUST refuse the submission with `attributesMissing` when a required attribute is absent and with `attributesUnrequested` when an entry names a type the manifest does not request.";
|
|
102
|
+
readonly items: {
|
|
103
|
+
readonly type: "object";
|
|
104
|
+
readonly additionalProperties: false;
|
|
105
|
+
readonly required: readonly ["type", "value"];
|
|
106
|
+
readonly properties: {
|
|
107
|
+
readonly type: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly minLength: 1;
|
|
110
|
+
readonly maxLength: 128;
|
|
111
|
+
readonly pattern: "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$";
|
|
112
|
+
readonly description: "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.";
|
|
113
|
+
};
|
|
114
|
+
readonly value: {
|
|
115
|
+
readonly description: "The value the applicant gives. Self-asserted: the applicant's own statement, bound to them by the document proof, and attested by nobody.";
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
readonly ext: {
|
|
121
|
+
readonly $ref: "#/$defs/Ext";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly $defs: {
|
|
125
|
+
readonly Response: {
|
|
126
|
+
readonly $anchor: "response";
|
|
127
|
+
readonly title: "VTC Join-Requests Submit — response payload";
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly additionalProperties: false;
|
|
130
|
+
readonly required: readonly ["requestId", "verdict"];
|
|
131
|
+
readonly properties: {
|
|
132
|
+
readonly requestId: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly minLength: 1;
|
|
135
|
+
readonly description: "Id of the created join request (a UUID).";
|
|
136
|
+
};
|
|
137
|
+
readonly verdict: {
|
|
138
|
+
readonly $ref: "#/$defs/Verdict";
|
|
139
|
+
readonly description: "What the community decided about this submission.\n\n`0.1` returned `status: \"pending\"` — a constant, which could express only one of the four outcomes a submission actually has. A policy that admits outright, refuses outright, or asks for more evidence had to be reported as 'pending' or not at all.";
|
|
140
|
+
};
|
|
141
|
+
readonly ext: {
|
|
142
|
+
readonly $ref: "#/$defs/Ext";
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly Ext: {
|
|
147
|
+
readonly title: "Ext";
|
|
148
|
+
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.";
|
|
149
|
+
readonly type: "object";
|
|
150
|
+
readonly minProperties: 1;
|
|
151
|
+
readonly additionalProperties: true;
|
|
152
|
+
readonly propertyNames: {
|
|
153
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
readonly Verdict: {
|
|
157
|
+
readonly $anchor: "verdict";
|
|
158
|
+
readonly title: "Verdict";
|
|
159
|
+
readonly type: "object";
|
|
160
|
+
readonly additionalProperties: false;
|
|
161
|
+
readonly required: readonly ["effect", "with"];
|
|
162
|
+
readonly description: "A ceremony decision: the effect, plus its effect-dependent detail.";
|
|
163
|
+
readonly properties: {
|
|
164
|
+
readonly effect: {
|
|
165
|
+
readonly $ref: "#/$defs/VerdictEffect";
|
|
166
|
+
};
|
|
167
|
+
readonly with: {
|
|
168
|
+
readonly $ref: "#/$defs/VerdictWith";
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly VerdictWith: {
|
|
173
|
+
readonly $anchor: "verdictWith";
|
|
174
|
+
readonly title: "VerdictWith";
|
|
175
|
+
readonly type: "object";
|
|
176
|
+
readonly additionalProperties: false;
|
|
177
|
+
readonly description: "The effect-dependent detail of a verdict.\n\nEvery member is optional at the schema level and which ones are meaningful depends on `effect`: `role` / `obligations` / `bundleRef` on `allow`, `code` / `reason` on `deny`, `queue` / `reason` on `refer`, `needs` / `presentationDefinition` on `requestMore`. The dependency is stated here rather than enforced by `if`/`then` per effect, so that the shape stays a single flat object a generated type can carry without a discriminated union per family — a deliberate trade of schema strictness for implementability, and the reason a consumer MUST branch on `effect` rather than on which members happen to be present.";
|
|
178
|
+
readonly properties: {
|
|
179
|
+
readonly role: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly minLength: 1;
|
|
182
|
+
readonly description: "The granted local role. `allow` only.";
|
|
183
|
+
};
|
|
184
|
+
readonly obligations: {
|
|
185
|
+
readonly type: "object";
|
|
186
|
+
readonly description: "Conditions attached to the grant. `allow` only.";
|
|
187
|
+
};
|
|
188
|
+
readonly bundleRef: {
|
|
189
|
+
readonly type: "object";
|
|
190
|
+
readonly description: "Pointer to a sealed credential bundle, added by the community where issuance occurred rather than emitted by the policy. `allow` only.";
|
|
191
|
+
};
|
|
192
|
+
readonly code: {
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
readonly minLength: 1;
|
|
195
|
+
readonly description: "Stable refusal code, safe to branch on. `deny` only.";
|
|
196
|
+
};
|
|
197
|
+
readonly reason: {
|
|
198
|
+
readonly type: readonly ["string", "null"];
|
|
199
|
+
readonly maxLength: 1024;
|
|
200
|
+
readonly description: "Elaboration in prose, when the decider gave one. `deny` and `refer`.";
|
|
201
|
+
};
|
|
202
|
+
readonly queue: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
readonly minLength: 1;
|
|
205
|
+
readonly description: "Which review queue the decision was parked in, so an applicant can be told who now holds it. `refer` only.";
|
|
206
|
+
};
|
|
207
|
+
readonly needs: {
|
|
208
|
+
readonly type: "array";
|
|
209
|
+
readonly items: {
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
readonly minLength: 1;
|
|
212
|
+
};
|
|
213
|
+
readonly description: "What further evidence is required, named so the applicant can act without a support conversation. `requestMore` only.";
|
|
214
|
+
};
|
|
215
|
+
readonly presentationDefinition: {
|
|
216
|
+
readonly type: "object";
|
|
217
|
+
readonly description: "A machine-readable statement of the same request, so a wallet can satisfy it without a human reading `needs`. `requestMore` only.";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly VerdictEffect: {
|
|
222
|
+
readonly $anchor: "verdictEffect";
|
|
223
|
+
readonly title: "VerdictEffect";
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
readonly enum: readonly ["allow", "deny", "refer", "requestMore"];
|
|
226
|
+
readonly description: "What the policy decided.\n\n`allow` — admitted. `deny` — refused, terminally for this submission. `refer` — parked for a human or quorum decision; the applicant is neither in nor out. `requestMore` — the policy cannot decide yet and names what further evidence it needs.\n\nThe four are not reducible to a pending/decided pair. `refer` and `requestMore` are both 'not decided', but they place the next action with different parties: `refer` waits on the community, `requestMore` waits on the applicant. A consumer that cannot tell them apart cannot tell a user whether to wait or to act.";
|
|
227
|
+
};
|
|
228
|
+
readonly DigestMultibase: {
|
|
229
|
+
readonly title: "DigestMultibase";
|
|
230
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly minLength: 16;
|
|
233
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
234
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
239
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
240
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
241
|
+
readonly $ref: "#/$defs/Response";
|
|
242
|
+
readonly $defs: {
|
|
243
|
+
readonly Response: {
|
|
244
|
+
readonly $anchor: "response";
|
|
245
|
+
readonly title: "VTC Join-Requests Submit — response payload";
|
|
246
|
+
readonly type: "object";
|
|
247
|
+
readonly additionalProperties: false;
|
|
248
|
+
readonly required: readonly ["requestId", "verdict"];
|
|
249
|
+
readonly properties: {
|
|
250
|
+
readonly requestId: {
|
|
251
|
+
readonly type: "string";
|
|
252
|
+
readonly minLength: 1;
|
|
253
|
+
readonly description: "Id of the created join request (a UUID).";
|
|
254
|
+
};
|
|
255
|
+
readonly verdict: {
|
|
256
|
+
readonly $ref: "#/$defs/Verdict";
|
|
257
|
+
readonly description: "What the community decided about this submission.\n\n`0.1` returned `status: \"pending\"` — a constant, which could express only one of the four outcomes a submission actually has. A policy that admits outright, refuses outright, or asks for more evidence had to be reported as 'pending' or not at all.";
|
|
258
|
+
};
|
|
259
|
+
readonly ext: {
|
|
260
|
+
readonly $ref: "#/$defs/Ext";
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
readonly Ext: {
|
|
265
|
+
readonly title: "Ext";
|
|
266
|
+
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.";
|
|
267
|
+
readonly type: "object";
|
|
268
|
+
readonly minProperties: 1;
|
|
269
|
+
readonly additionalProperties: true;
|
|
270
|
+
readonly propertyNames: {
|
|
271
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
readonly Verdict: {
|
|
275
|
+
readonly $anchor: "verdict";
|
|
276
|
+
readonly title: "Verdict";
|
|
277
|
+
readonly type: "object";
|
|
278
|
+
readonly additionalProperties: false;
|
|
279
|
+
readonly required: readonly ["effect", "with"];
|
|
280
|
+
readonly description: "A ceremony decision: the effect, plus its effect-dependent detail.";
|
|
281
|
+
readonly properties: {
|
|
282
|
+
readonly effect: {
|
|
283
|
+
readonly $ref: "#/$defs/VerdictEffect";
|
|
284
|
+
};
|
|
285
|
+
readonly with: {
|
|
286
|
+
readonly $ref: "#/$defs/VerdictWith";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
readonly VerdictWith: {
|
|
291
|
+
readonly $anchor: "verdictWith";
|
|
292
|
+
readonly title: "VerdictWith";
|
|
293
|
+
readonly type: "object";
|
|
294
|
+
readonly additionalProperties: false;
|
|
295
|
+
readonly description: "The effect-dependent detail of a verdict.\n\nEvery member is optional at the schema level and which ones are meaningful depends on `effect`: `role` / `obligations` / `bundleRef` on `allow`, `code` / `reason` on `deny`, `queue` / `reason` on `refer`, `needs` / `presentationDefinition` on `requestMore`. The dependency is stated here rather than enforced by `if`/`then` per effect, so that the shape stays a single flat object a generated type can carry without a discriminated union per family — a deliberate trade of schema strictness for implementability, and the reason a consumer MUST branch on `effect` rather than on which members happen to be present.";
|
|
296
|
+
readonly properties: {
|
|
297
|
+
readonly role: {
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
readonly minLength: 1;
|
|
300
|
+
readonly description: "The granted local role. `allow` only.";
|
|
301
|
+
};
|
|
302
|
+
readonly obligations: {
|
|
303
|
+
readonly type: "object";
|
|
304
|
+
readonly description: "Conditions attached to the grant. `allow` only.";
|
|
305
|
+
};
|
|
306
|
+
readonly bundleRef: {
|
|
307
|
+
readonly type: "object";
|
|
308
|
+
readonly description: "Pointer to a sealed credential bundle, added by the community where issuance occurred rather than emitted by the policy. `allow` only.";
|
|
309
|
+
};
|
|
310
|
+
readonly code: {
|
|
311
|
+
readonly type: "string";
|
|
312
|
+
readonly minLength: 1;
|
|
313
|
+
readonly description: "Stable refusal code, safe to branch on. `deny` only.";
|
|
314
|
+
};
|
|
315
|
+
readonly reason: {
|
|
316
|
+
readonly type: readonly ["string", "null"];
|
|
317
|
+
readonly maxLength: 1024;
|
|
318
|
+
readonly description: "Elaboration in prose, when the decider gave one. `deny` and `refer`.";
|
|
319
|
+
};
|
|
320
|
+
readonly queue: {
|
|
321
|
+
readonly type: "string";
|
|
322
|
+
readonly minLength: 1;
|
|
323
|
+
readonly description: "Which review queue the decision was parked in, so an applicant can be told who now holds it. `refer` only.";
|
|
324
|
+
};
|
|
325
|
+
readonly needs: {
|
|
326
|
+
readonly type: "array";
|
|
327
|
+
readonly items: {
|
|
328
|
+
readonly type: "string";
|
|
329
|
+
readonly minLength: 1;
|
|
330
|
+
};
|
|
331
|
+
readonly description: "What further evidence is required, named so the applicant can act without a support conversation. `requestMore` only.";
|
|
332
|
+
};
|
|
333
|
+
readonly presentationDefinition: {
|
|
334
|
+
readonly type: "object";
|
|
335
|
+
readonly description: "A machine-readable statement of the same request, so a wallet can satisfy it without a human reading `needs`. `requestMore` only.";
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
readonly VerdictEffect: {
|
|
340
|
+
readonly $anchor: "verdictEffect";
|
|
341
|
+
readonly title: "VerdictEffect";
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly enum: readonly ["allow", "deny", "refer", "requestMore"];
|
|
344
|
+
readonly description: "What the policy decided.\n\n`allow` — admitted. `deny` — refused, terminally for this submission. `refer` — parked for a human or quorum decision; the applicant is neither in nor out. `requestMore` — the policy cannot decide yet and names what further evidence it needs.\n\nThe four are not reducible to a pending/decided pair. `refer` and `requestMore` are both 'not decided', but they place the next action with different parties: `refer` waits on the community, `requestMore` waits on the applicant. A consumer that cannot tell them apart cannot tell a user whether to wait or to act.";
|
|
345
|
+
};
|
|
346
|
+
readonly DigestMultibase: {
|
|
347
|
+
readonly title: "DigestMultibase";
|
|
348
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
349
|
+
readonly type: "string";
|
|
350
|
+
readonly minLength: 16;
|
|
351
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
352
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
358
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
359
|
+
* per-specification and cannot be derived from the document alone, and
|
|
360
|
+
* item 2 needs the schema this carries.
|
|
361
|
+
*/
|
|
362
|
+
export declare const SPEC: {
|
|
363
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/join-requests/submit/0.3";
|
|
364
|
+
readonly isBearer: false;
|
|
365
|
+
readonly isProofRequired: true;
|
|
366
|
+
readonly isRecipientRequired: true;
|
|
367
|
+
readonly isIssuedAtRequired: true;
|
|
368
|
+
readonly payloadSchema: {
|
|
369
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
370
|
+
readonly $id: "https://trusttasks.org/spec/vtc/join-requests/submit/0.3";
|
|
371
|
+
readonly title: "VTC Join-Requests Submit — payload";
|
|
372
|
+
readonly type: "object";
|
|
373
|
+
readonly additionalProperties: false;
|
|
374
|
+
readonly required: readonly ["vp"];
|
|
375
|
+
readonly properties: {
|
|
376
|
+
readonly vp: {
|
|
377
|
+
readonly type: "object";
|
|
378
|
+
readonly description: "The applicant's W3C Verifiable Presentation (opaque here), satisfying the community's join policy. The applicant DID is the document proof's signer — not a payload field.";
|
|
379
|
+
};
|
|
380
|
+
readonly criterion: {
|
|
381
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
382
|
+
readonly description: "The `requirementsDigest` of the criterion this submission is made under, as vtc/join-requests/manifest/0.3 published it. Absent: the community decides the submission under the first criterion, in the order it publishes them, that the submission meets.";
|
|
383
|
+
};
|
|
384
|
+
readonly registryConsent: {
|
|
385
|
+
readonly type: "boolean";
|
|
386
|
+
readonly description: "Whether the applicant consents to trust-registry publication.";
|
|
387
|
+
};
|
|
388
|
+
readonly extensions: {
|
|
389
|
+
readonly type: "object";
|
|
390
|
+
readonly description: "Opaque applicant-supplied extension bag.";
|
|
391
|
+
};
|
|
392
|
+
readonly attributes: {
|
|
393
|
+
readonly type: "array";
|
|
394
|
+
readonly maxItems: 32;
|
|
395
|
+
readonly description: "The applicant's answers to the manifest's `requestedAttributes`: one entry per attribute given. Self-asserted and bound to the applicant by the document proof. A maintainer MUST refuse the submission with `attributesMissing` when a required attribute is absent and with `attributesUnrequested` when an entry names a type the manifest does not request.";
|
|
396
|
+
readonly items: {
|
|
397
|
+
readonly type: "object";
|
|
398
|
+
readonly additionalProperties: false;
|
|
399
|
+
readonly required: readonly ["type", "value"];
|
|
400
|
+
readonly properties: {
|
|
401
|
+
readonly type: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly minLength: 1;
|
|
404
|
+
readonly maxLength: 128;
|
|
405
|
+
readonly pattern: "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$";
|
|
406
|
+
readonly description: "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.";
|
|
407
|
+
};
|
|
408
|
+
readonly value: {
|
|
409
|
+
readonly description: "The value the applicant gives. Self-asserted: the applicant's own statement, bound to them by the document proof, and attested by nobody.";
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly ext: {
|
|
415
|
+
readonly $ref: "#/$defs/Ext";
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
readonly $defs: {
|
|
419
|
+
readonly Response: {
|
|
420
|
+
readonly $anchor: "response";
|
|
421
|
+
readonly title: "VTC Join-Requests Submit — response payload";
|
|
422
|
+
readonly type: "object";
|
|
423
|
+
readonly additionalProperties: false;
|
|
424
|
+
readonly required: readonly ["requestId", "verdict"];
|
|
425
|
+
readonly properties: {
|
|
426
|
+
readonly requestId: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly minLength: 1;
|
|
429
|
+
readonly description: "Id of the created join request (a UUID).";
|
|
430
|
+
};
|
|
431
|
+
readonly verdict: {
|
|
432
|
+
readonly $ref: "#/$defs/Verdict";
|
|
433
|
+
readonly description: "What the community decided about this submission.\n\n`0.1` returned `status: \"pending\"` — a constant, which could express only one of the four outcomes a submission actually has. A policy that admits outright, refuses outright, or asks for more evidence had to be reported as 'pending' or not at all.";
|
|
434
|
+
};
|
|
435
|
+
readonly ext: {
|
|
436
|
+
readonly $ref: "#/$defs/Ext";
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly Ext: {
|
|
441
|
+
readonly title: "Ext";
|
|
442
|
+
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.";
|
|
443
|
+
readonly type: "object";
|
|
444
|
+
readonly minProperties: 1;
|
|
445
|
+
readonly additionalProperties: true;
|
|
446
|
+
readonly propertyNames: {
|
|
447
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
readonly Verdict: {
|
|
451
|
+
readonly $anchor: "verdict";
|
|
452
|
+
readonly title: "Verdict";
|
|
453
|
+
readonly type: "object";
|
|
454
|
+
readonly additionalProperties: false;
|
|
455
|
+
readonly required: readonly ["effect", "with"];
|
|
456
|
+
readonly description: "A ceremony decision: the effect, plus its effect-dependent detail.";
|
|
457
|
+
readonly properties: {
|
|
458
|
+
readonly effect: {
|
|
459
|
+
readonly $ref: "#/$defs/VerdictEffect";
|
|
460
|
+
};
|
|
461
|
+
readonly with: {
|
|
462
|
+
readonly $ref: "#/$defs/VerdictWith";
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
readonly VerdictWith: {
|
|
467
|
+
readonly $anchor: "verdictWith";
|
|
468
|
+
readonly title: "VerdictWith";
|
|
469
|
+
readonly type: "object";
|
|
470
|
+
readonly additionalProperties: false;
|
|
471
|
+
readonly description: "The effect-dependent detail of a verdict.\n\nEvery member is optional at the schema level and which ones are meaningful depends on `effect`: `role` / `obligations` / `bundleRef` on `allow`, `code` / `reason` on `deny`, `queue` / `reason` on `refer`, `needs` / `presentationDefinition` on `requestMore`. The dependency is stated here rather than enforced by `if`/`then` per effect, so that the shape stays a single flat object a generated type can carry without a discriminated union per family — a deliberate trade of schema strictness for implementability, and the reason a consumer MUST branch on `effect` rather than on which members happen to be present.";
|
|
472
|
+
readonly properties: {
|
|
473
|
+
readonly role: {
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
readonly minLength: 1;
|
|
476
|
+
readonly description: "The granted local role. `allow` only.";
|
|
477
|
+
};
|
|
478
|
+
readonly obligations: {
|
|
479
|
+
readonly type: "object";
|
|
480
|
+
readonly description: "Conditions attached to the grant. `allow` only.";
|
|
481
|
+
};
|
|
482
|
+
readonly bundleRef: {
|
|
483
|
+
readonly type: "object";
|
|
484
|
+
readonly description: "Pointer to a sealed credential bundle, added by the community where issuance occurred rather than emitted by the policy. `allow` only.";
|
|
485
|
+
};
|
|
486
|
+
readonly code: {
|
|
487
|
+
readonly type: "string";
|
|
488
|
+
readonly minLength: 1;
|
|
489
|
+
readonly description: "Stable refusal code, safe to branch on. `deny` only.";
|
|
490
|
+
};
|
|
491
|
+
readonly reason: {
|
|
492
|
+
readonly type: readonly ["string", "null"];
|
|
493
|
+
readonly maxLength: 1024;
|
|
494
|
+
readonly description: "Elaboration in prose, when the decider gave one. `deny` and `refer`.";
|
|
495
|
+
};
|
|
496
|
+
readonly queue: {
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
readonly minLength: 1;
|
|
499
|
+
readonly description: "Which review queue the decision was parked in, so an applicant can be told who now holds it. `refer` only.";
|
|
500
|
+
};
|
|
501
|
+
readonly needs: {
|
|
502
|
+
readonly type: "array";
|
|
503
|
+
readonly items: {
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
readonly minLength: 1;
|
|
506
|
+
};
|
|
507
|
+
readonly description: "What further evidence is required, named so the applicant can act without a support conversation. `requestMore` only.";
|
|
508
|
+
};
|
|
509
|
+
readonly presentationDefinition: {
|
|
510
|
+
readonly type: "object";
|
|
511
|
+
readonly description: "A machine-readable statement of the same request, so a wallet can satisfy it without a human reading `needs`. `requestMore` only.";
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
readonly VerdictEffect: {
|
|
516
|
+
readonly $anchor: "verdictEffect";
|
|
517
|
+
readonly title: "VerdictEffect";
|
|
518
|
+
readonly type: "string";
|
|
519
|
+
readonly enum: readonly ["allow", "deny", "refer", "requestMore"];
|
|
520
|
+
readonly description: "What the policy decided.\n\n`allow` — admitted. `deny` — refused, terminally for this submission. `refer` — parked for a human or quorum decision; the applicant is neither in nor out. `requestMore` — the policy cannot decide yet and names what further evidence it needs.\n\nThe four are not reducible to a pending/decided pair. `refer` and `requestMore` are both 'not decided', but they place the next action with different parties: `refer` waits on the community, `requestMore` waits on the applicant. A consumer that cannot tell them apart cannot tell a user whether to wait or to act.";
|
|
521
|
+
};
|
|
522
|
+
readonly DigestMultibase: {
|
|
523
|
+
readonly title: "DigestMultibase";
|
|
524
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
525
|
+
readonly type: "string";
|
|
526
|
+
readonly minLength: 16;
|
|
527
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
528
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
/**
|
|
534
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
535
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
536
|
+
* parties (§7.3 item 5).
|
|
537
|
+
*/
|
|
538
|
+
export declare const RESPONSE_SPEC: {
|
|
539
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/join-requests/submit/0.3#response";
|
|
540
|
+
readonly isBearer: false;
|
|
541
|
+
readonly isProofRequired: true;
|
|
542
|
+
readonly isRecipientRequired: true;
|
|
543
|
+
readonly isIssuedAtRequired: true;
|
|
544
|
+
readonly payloadSchema: {
|
|
545
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
546
|
+
readonly $ref: "#/$defs/Response";
|
|
547
|
+
readonly $defs: {
|
|
548
|
+
readonly Response: {
|
|
549
|
+
readonly $anchor: "response";
|
|
550
|
+
readonly title: "VTC Join-Requests Submit — response payload";
|
|
551
|
+
readonly type: "object";
|
|
552
|
+
readonly additionalProperties: false;
|
|
553
|
+
readonly required: readonly ["requestId", "verdict"];
|
|
554
|
+
readonly properties: {
|
|
555
|
+
readonly requestId: {
|
|
556
|
+
readonly type: "string";
|
|
557
|
+
readonly minLength: 1;
|
|
558
|
+
readonly description: "Id of the created join request (a UUID).";
|
|
559
|
+
};
|
|
560
|
+
readonly verdict: {
|
|
561
|
+
readonly $ref: "#/$defs/Verdict";
|
|
562
|
+
readonly description: "What the community decided about this submission.\n\n`0.1` returned `status: \"pending\"` — a constant, which could express only one of the four outcomes a submission actually has. A policy that admits outright, refuses outright, or asks for more evidence had to be reported as 'pending' or not at all.";
|
|
563
|
+
};
|
|
564
|
+
readonly ext: {
|
|
565
|
+
readonly $ref: "#/$defs/Ext";
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
readonly Ext: {
|
|
570
|
+
readonly title: "Ext";
|
|
571
|
+
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.";
|
|
572
|
+
readonly type: "object";
|
|
573
|
+
readonly minProperties: 1;
|
|
574
|
+
readonly additionalProperties: true;
|
|
575
|
+
readonly propertyNames: {
|
|
576
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
readonly Verdict: {
|
|
580
|
+
readonly $anchor: "verdict";
|
|
581
|
+
readonly title: "Verdict";
|
|
582
|
+
readonly type: "object";
|
|
583
|
+
readonly additionalProperties: false;
|
|
584
|
+
readonly required: readonly ["effect", "with"];
|
|
585
|
+
readonly description: "A ceremony decision: the effect, plus its effect-dependent detail.";
|
|
586
|
+
readonly properties: {
|
|
587
|
+
readonly effect: {
|
|
588
|
+
readonly $ref: "#/$defs/VerdictEffect";
|
|
589
|
+
};
|
|
590
|
+
readonly with: {
|
|
591
|
+
readonly $ref: "#/$defs/VerdictWith";
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
readonly VerdictWith: {
|
|
596
|
+
readonly $anchor: "verdictWith";
|
|
597
|
+
readonly title: "VerdictWith";
|
|
598
|
+
readonly type: "object";
|
|
599
|
+
readonly additionalProperties: false;
|
|
600
|
+
readonly description: "The effect-dependent detail of a verdict.\n\nEvery member is optional at the schema level and which ones are meaningful depends on `effect`: `role` / `obligations` / `bundleRef` on `allow`, `code` / `reason` on `deny`, `queue` / `reason` on `refer`, `needs` / `presentationDefinition` on `requestMore`. The dependency is stated here rather than enforced by `if`/`then` per effect, so that the shape stays a single flat object a generated type can carry without a discriminated union per family — a deliberate trade of schema strictness for implementability, and the reason a consumer MUST branch on `effect` rather than on which members happen to be present.";
|
|
601
|
+
readonly properties: {
|
|
602
|
+
readonly role: {
|
|
603
|
+
readonly type: "string";
|
|
604
|
+
readonly minLength: 1;
|
|
605
|
+
readonly description: "The granted local role. `allow` only.";
|
|
606
|
+
};
|
|
607
|
+
readonly obligations: {
|
|
608
|
+
readonly type: "object";
|
|
609
|
+
readonly description: "Conditions attached to the grant. `allow` only.";
|
|
610
|
+
};
|
|
611
|
+
readonly bundleRef: {
|
|
612
|
+
readonly type: "object";
|
|
613
|
+
readonly description: "Pointer to a sealed credential bundle, added by the community where issuance occurred rather than emitted by the policy. `allow` only.";
|
|
614
|
+
};
|
|
615
|
+
readonly code: {
|
|
616
|
+
readonly type: "string";
|
|
617
|
+
readonly minLength: 1;
|
|
618
|
+
readonly description: "Stable refusal code, safe to branch on. `deny` only.";
|
|
619
|
+
};
|
|
620
|
+
readonly reason: {
|
|
621
|
+
readonly type: readonly ["string", "null"];
|
|
622
|
+
readonly maxLength: 1024;
|
|
623
|
+
readonly description: "Elaboration in prose, when the decider gave one. `deny` and `refer`.";
|
|
624
|
+
};
|
|
625
|
+
readonly queue: {
|
|
626
|
+
readonly type: "string";
|
|
627
|
+
readonly minLength: 1;
|
|
628
|
+
readonly description: "Which review queue the decision was parked in, so an applicant can be told who now holds it. `refer` only.";
|
|
629
|
+
};
|
|
630
|
+
readonly needs: {
|
|
631
|
+
readonly type: "array";
|
|
632
|
+
readonly items: {
|
|
633
|
+
readonly type: "string";
|
|
634
|
+
readonly minLength: 1;
|
|
635
|
+
};
|
|
636
|
+
readonly description: "What further evidence is required, named so the applicant can act without a support conversation. `requestMore` only.";
|
|
637
|
+
};
|
|
638
|
+
readonly presentationDefinition: {
|
|
639
|
+
readonly type: "object";
|
|
640
|
+
readonly description: "A machine-readable statement of the same request, so a wallet can satisfy it without a human reading `needs`. `requestMore` only.";
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
readonly VerdictEffect: {
|
|
645
|
+
readonly $anchor: "verdictEffect";
|
|
646
|
+
readonly title: "VerdictEffect";
|
|
647
|
+
readonly type: "string";
|
|
648
|
+
readonly enum: readonly ["allow", "deny", "refer", "requestMore"];
|
|
649
|
+
readonly description: "What the policy decided.\n\n`allow` — admitted. `deny` — refused, terminally for this submission. `refer` — parked for a human or quorum decision; the applicant is neither in nor out. `requestMore` — the policy cannot decide yet and names what further evidence it needs.\n\nThe four are not reducible to a pending/decided pair. `refer` and `requestMore` are both 'not decided', but they place the next action with different parties: `refer` waits on the community, `requestMore` waits on the applicant. A consumer that cannot tell them apart cannot tell a user whether to wait or to act.";
|
|
650
|
+
};
|
|
651
|
+
readonly DigestMultibase: {
|
|
652
|
+
readonly title: "DigestMultibase";
|
|
653
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
654
|
+
readonly type: "string";
|
|
655
|
+
readonly minLength: 16;
|
|
656
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
657
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
//# sourceMappingURL=payload.d.ts.map
|