@openvtc/trust-tasks 0.19.16 → 0.19.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/_runtime/consume.d.ts +1 -1
- package/dist/_runtime/consume.js +2 -2
- package/dist/_shared/components.d.ts +8 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/persona/attribute/promote/1.0/payload.d.ts +506 -0
- package/dist/persona/attribute/promote/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/promote/1.0/payload.js +263 -0
- package/dist/persona/attribute/promote/1.0/payload.js.map +1 -0
- package/dist/persona/binding/get/1.0/payload.d.ts +24 -0
- package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -1
- package/dist/persona/binding/get/1.0/payload.js +10 -0
- package/dist/persona/binding/get/1.0/payload.js.map +1 -1
- package/dist/persona/binding/list/1.0/payload.d.ts +24 -0
- package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -1
- package/dist/persona/binding/list/1.0/payload.js +10 -0
- package/dist/persona/binding/list/1.0/payload.js.map +1 -1
- package/dist/persona/binding/set/1.0/payload.d.ts +38 -0
- package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -1
- package/dist/persona/binding/set/1.0/payload.js +15 -0
- package/dist/persona/binding/set/1.0/payload.js.map +1 -1
- package/dist/persona/local/binding/set/1.0/payload.d.ts +14 -0
- package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -1
- package/dist/persona/local/binding/set/1.0/payload.js +5 -0
- package/dist/persona/local/binding/set/1.0/payload.js.map +1 -1
- package/dist/persona/profile/compose/1.0/payload.d.ts +951 -0
- package/dist/persona/profile/compose/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/compose/1.0/payload.js +526 -0
- package/dist/persona/profile/compose/1.0/payload.js.map +1 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts +71 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/delete/1.0/payload.js +38 -0
- package/dist/persona/profile/delete/1.0/payload.js.map +1 -1
- package/dist/persona/profile/get/1.0/payload.d.ts +115 -0
- package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/get/1.0/payload.js +66 -0
- package/dist/persona/profile/get/1.0/payload.js.map +1 -1
- package/dist/persona/profile/list/1.0/payload.d.ts +58 -0
- package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/list/1.0/payload.js +33 -0
- package/dist/persona/profile/list/1.0/payload.js.map +1 -1
- package/dist/persona/profile/reinstate/1.0/payload.d.ts +325 -0
- package/dist/persona/profile/reinstate/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/reinstate/1.0/payload.js +181 -0
- package/dist/persona/profile/reinstate/1.0/payload.js.map +1 -0
- package/dist/persona/profile/retire/1.0/payload.d.ts +436 -0
- package/dist/persona/profile/retire/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/retire/1.0/payload.js +238 -0
- package/dist/persona/profile/retire/1.0/payload.js.map +1 -0
- package/dist/trust-task-control/0.1/payload.d.ts +19 -19
- package/dist/trust-task-control/0.1/payload.js +7 -7
- package/dist/trust-task-discovery/0.1/payload.d.ts +3 -3
- package/dist/trust-task-discovery/0.1/payload.js +1 -1
- package/dist/trust-task-discovery/0.2/payload.d.ts +368 -0
- package/dist/trust-task-discovery/0.2/payload.d.ts.map +1 -0
- package/dist/trust-task-discovery/0.2/payload.js +186 -0
- package/dist/trust-task-discovery/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_runtime/consume.ts +2 -2
- package/src/_shared/components.ts +8 -0
- package/src/index.ts +5 -0
- package/src/persona/attribute/promote/1.0/payload.ts +344 -0
- package/src/persona/binding/get/1.0/payload.ts +14 -0
- package/src/persona/binding/list/1.0/payload.ts +14 -0
- package/src/persona/binding/set/1.0/payload.ts +23 -0
- package/src/persona/local/binding/set/1.0/payload.ts +9 -0
- package/src/persona/profile/compose/1.0/payload.ts +641 -0
- package/src/persona/profile/delete/1.0/payload.ts +45 -0
- package/src/persona/profile/get/1.0/payload.ts +73 -0
- package/src/persona/profile/list/1.0/payload.ts +37 -0
- package/src/persona/profile/reinstate/1.0/payload.ts +219 -0
- package/src/persona/profile/retire/1.0/payload.ts +289 -0
- package/src/trust-task-control/0.1/payload.ts +12 -12
- package/src/trust-task-discovery/0.1/payload.ts +2 -2
- package/src/trust-task-discovery/0.2/payload.ts +286 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/trust-task-discovery/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Request payload for the framework-defined trust-task-discovery exchange. Carries zero or more slug-glob patterns the discoverer wants the responder to filter against. The response payload schema is reachable via $anchor: 'response'.
|
|
7
|
+
*/
|
|
8
|
+
export interface TrustTaskDiscoveryPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Patterns are ORed: a slug matches the query if at least one pattern matches it. If the array is omitted or empty, the responder MUST treat the query as ['*'] — return every supported task. Bounded at 16 entries as parser hardening (SPEC.md §12.2), not as a capability limit: matching an unbounded pattern list against every published slug is work a responder does on an unauthenticated request, and a discoverer wanting more asks for '*' and filters locally.
|
|
11
|
+
*
|
|
12
|
+
* @maxItems 16
|
|
13
|
+
*/
|
|
14
|
+
patterns?: [] | [string] | [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [
|
|
15
|
+
string,
|
|
16
|
+
string,
|
|
17
|
+
string,
|
|
18
|
+
string,
|
|
19
|
+
string,
|
|
20
|
+
string,
|
|
21
|
+
string,
|
|
22
|
+
string,
|
|
23
|
+
string,
|
|
24
|
+
string,
|
|
25
|
+
string,
|
|
26
|
+
string,
|
|
27
|
+
string,
|
|
28
|
+
string,
|
|
29
|
+
string
|
|
30
|
+
] | [
|
|
31
|
+
string,
|
|
32
|
+
string,
|
|
33
|
+
string,
|
|
34
|
+
string,
|
|
35
|
+
string,
|
|
36
|
+
string,
|
|
37
|
+
string,
|
|
38
|
+
string,
|
|
39
|
+
string,
|
|
40
|
+
string,
|
|
41
|
+
string,
|
|
42
|
+
string,
|
|
43
|
+
string,
|
|
44
|
+
string,
|
|
45
|
+
string,
|
|
46
|
+
string
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.2#response.
|
|
51
|
+
*/
|
|
52
|
+
export interface TrustTaskDiscoveryResponsePayload {
|
|
53
|
+
/**
|
|
54
|
+
* Each entry's Type URI MUST match at least one of the request's patterns (if any were supplied). Order is not significant. Duplicates by Type URI are not permitted, regardless of whether the entry is in shorthand or expanded form.
|
|
55
|
+
*/
|
|
56
|
+
supportedTypes: (string | {
|
|
57
|
+
/**
|
|
58
|
+
* A bare Type URI (no #request or #response fragment). The responder supports both request and response variants of every entry it lists.
|
|
59
|
+
*/
|
|
60
|
+
type: string;
|
|
61
|
+
/**
|
|
62
|
+
* Reverse-DNS `ext` namespaces this responder requires on inbound documents of this Type URI as a matter of local policy (SPEC.md §4.5.1, §7.2). A producer that does not populate every listed namespace will receive a `malformedRequest` rejection. Optional; reserved-but-recognized in 0.1, RECOMMENDED in future revisions for responders that enforce such policies.
|
|
63
|
+
*
|
|
64
|
+
* @minItems 1
|
|
65
|
+
*/
|
|
66
|
+
requiredExt?: [string, ...string[]];
|
|
67
|
+
})[];
|
|
68
|
+
/**
|
|
69
|
+
* MAJOR.MINOR.PATCH version of the Trust Tasks framework specification (SPEC.md) the responder targets — three-part, as the framework has been versioned since 0.4.0 (SPEC.md §5.1.1), and exactly the value a Trust Task specification declares as its target framework version. Lets a discoverer reason about compatibility (SPEC.md §5.2) and select the envelope schema a responder's documents are validated against, which is keyed by the full release: a PATCH is never substituted for another. RECOMMENDED. Two-part in trust-task-discovery/0.1, which could not express a PATCH.
|
|
70
|
+
*/
|
|
71
|
+
frameworkVersion?: string;
|
|
72
|
+
}
|
|
73
|
+
/** Trust Task type URI. */
|
|
74
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/trust-task-discovery/0.2";
|
|
75
|
+
/** Stable alias for this specification's request payload shape. */
|
|
76
|
+
export type Payload = TrustTaskDiscoveryPayload;
|
|
77
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
78
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/trust-task-discovery/0.2#response";
|
|
79
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
80
|
+
export type Response = TrustTaskDiscoveryResponsePayload;
|
|
81
|
+
/**
|
|
82
|
+
* This specification's payload schema, as a value.
|
|
83
|
+
*
|
|
84
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
85
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
86
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
87
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
88
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
89
|
+
*/
|
|
90
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
91
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
92
|
+
readonly $id: "https://trusttasks.org/spec/trust-task-discovery/0.2";
|
|
93
|
+
readonly title: "Trust Task Discovery — payload";
|
|
94
|
+
readonly description: "Request payload for the framework-defined trust-task-discovery exchange. Carries zero or more slug-glob patterns the discoverer wants the responder to filter against. The response payload schema is reachable via $anchor: 'response'.";
|
|
95
|
+
readonly type: "object";
|
|
96
|
+
readonly additionalProperties: false;
|
|
97
|
+
readonly properties: {
|
|
98
|
+
readonly patterns: {
|
|
99
|
+
readonly type: "array";
|
|
100
|
+
readonly maxItems: 16;
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
readonly minLength: 1;
|
|
104
|
+
readonly description: "Slug-glob pattern. Matches: '*' (every slug); '<prefix>/*' (any slug starting with '<prefix>/' — e.g. 'acl/*' matches 'acl/grant', 'acl/revoke', 'acl/grant/sub'); otherwise an exact slug match. Wildcards anywhere other than as a trailing segment are not interpreted — the only sigils are the trailing '/*' and the bare '*'.";
|
|
105
|
+
};
|
|
106
|
+
readonly description: "Patterns are ORed: a slug matches the query if at least one pattern matches it. If the array is omitted or empty, the responder MUST treat the query as ['*'] — return every supported task. Bounded at 16 entries as parser hardening (SPEC.md §12.2), not as a capability limit: matching an unbounded pattern list against every published slug is work a responder does on an unauthenticated request, and a discoverer wanting more asks for '*' and filters locally.";
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
readonly $defs: {
|
|
110
|
+
readonly Response: {
|
|
111
|
+
readonly $anchor: "response";
|
|
112
|
+
readonly title: "Trust Task Discovery — response payload";
|
|
113
|
+
readonly description: "List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.2#response.";
|
|
114
|
+
readonly type: "object";
|
|
115
|
+
readonly additionalProperties: false;
|
|
116
|
+
readonly required: readonly ["supportedTypes"];
|
|
117
|
+
readonly properties: {
|
|
118
|
+
readonly supportedTypes: {
|
|
119
|
+
readonly type: "array";
|
|
120
|
+
readonly items: {
|
|
121
|
+
readonly oneOf: readonly [{
|
|
122
|
+
readonly type: "string";
|
|
123
|
+
readonly format: "uri";
|
|
124
|
+
readonly description: "Shorthand form: a bare Type URI string. Equivalent to an object with only the `type` member set.";
|
|
125
|
+
}, {
|
|
126
|
+
readonly type: "object";
|
|
127
|
+
readonly additionalProperties: false;
|
|
128
|
+
readonly required: readonly ["type"];
|
|
129
|
+
readonly properties: {
|
|
130
|
+
readonly type: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
readonly format: "uri";
|
|
133
|
+
readonly description: "A bare Type URI (no #request or #response fragment). The responder supports both request and response variants of every entry it lists.";
|
|
134
|
+
};
|
|
135
|
+
readonly requiredExt: {
|
|
136
|
+
readonly type: "array";
|
|
137
|
+
readonly items: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
140
|
+
};
|
|
141
|
+
readonly minItems: 1;
|
|
142
|
+
readonly uniqueItems: true;
|
|
143
|
+
readonly description: "Reverse-DNS `ext` namespaces this responder requires on inbound documents of this Type URI as a matter of local policy (SPEC.md §4.5.1, §7.2). A producer that does not populate every listed namespace will receive a `malformedRequest` rejection. Optional; reserved-but-recognized in 0.1, RECOMMENDED in future revisions for responders that enforce such policies.";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly description: "Object form: lists a Type URI together with optional capability annotations.";
|
|
147
|
+
}];
|
|
148
|
+
readonly description: "An entry in the supportedTypes list. SHORTHAND: a bare Type URI string. EXPANDED: an object with `type` and optional capability annotations (`requiredExt`).";
|
|
149
|
+
};
|
|
150
|
+
readonly description: "Each entry's Type URI MUST match at least one of the request's patterns (if any were supplied). Order is not significant. Duplicates by Type URI are not permitted, regardless of whether the entry is in shorthand or expanded form.";
|
|
151
|
+
};
|
|
152
|
+
readonly frameworkVersion: {
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
|
|
155
|
+
readonly description: "MAJOR.MINOR.PATCH version of the Trust Tasks framework specification (SPEC.md) the responder targets — three-part, as the framework has been versioned since 0.4.0 (SPEC.md §5.1.1), and exactly the value a Trust Task specification declares as its target framework version. Lets a discoverer reason about compatibility (SPEC.md §5.2) and select the envelope schema a responder's documents are validated against, which is keyed by the full release: a PATCH is never substituted for another. RECOMMENDED. Two-part in trust-task-discovery/0.1, which could not express a PATCH.";
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
162
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
163
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
164
|
+
readonly $ref: "#/$defs/Response";
|
|
165
|
+
readonly $defs: {
|
|
166
|
+
readonly Response: {
|
|
167
|
+
readonly $anchor: "response";
|
|
168
|
+
readonly title: "Trust Task Discovery — response payload";
|
|
169
|
+
readonly description: "List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.2#response.";
|
|
170
|
+
readonly type: "object";
|
|
171
|
+
readonly additionalProperties: false;
|
|
172
|
+
readonly required: readonly ["supportedTypes"];
|
|
173
|
+
readonly properties: {
|
|
174
|
+
readonly supportedTypes: {
|
|
175
|
+
readonly type: "array";
|
|
176
|
+
readonly items: {
|
|
177
|
+
readonly oneOf: readonly [{
|
|
178
|
+
readonly type: "string";
|
|
179
|
+
readonly format: "uri";
|
|
180
|
+
readonly description: "Shorthand form: a bare Type URI string. Equivalent to an object with only the `type` member set.";
|
|
181
|
+
}, {
|
|
182
|
+
readonly type: "object";
|
|
183
|
+
readonly additionalProperties: false;
|
|
184
|
+
readonly required: readonly ["type"];
|
|
185
|
+
readonly properties: {
|
|
186
|
+
readonly type: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly format: "uri";
|
|
189
|
+
readonly description: "A bare Type URI (no #request or #response fragment). The responder supports both request and response variants of every entry it lists.";
|
|
190
|
+
};
|
|
191
|
+
readonly requiredExt: {
|
|
192
|
+
readonly type: "array";
|
|
193
|
+
readonly items: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
196
|
+
};
|
|
197
|
+
readonly minItems: 1;
|
|
198
|
+
readonly uniqueItems: true;
|
|
199
|
+
readonly description: "Reverse-DNS `ext` namespaces this responder requires on inbound documents of this Type URI as a matter of local policy (SPEC.md §4.5.1, §7.2). A producer that does not populate every listed namespace will receive a `malformedRequest` rejection. Optional; reserved-but-recognized in 0.1, RECOMMENDED in future revisions for responders that enforce such policies.";
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
readonly description: "Object form: lists a Type URI together with optional capability annotations.";
|
|
203
|
+
}];
|
|
204
|
+
readonly description: "An entry in the supportedTypes list. SHORTHAND: a bare Type URI string. EXPANDED: an object with `type` and optional capability annotations (`requiredExt`).";
|
|
205
|
+
};
|
|
206
|
+
readonly description: "Each entry's Type URI MUST match at least one of the request's patterns (if any were supplied). Order is not significant. Duplicates by Type URI are not permitted, regardless of whether the entry is in shorthand or expanded form.";
|
|
207
|
+
};
|
|
208
|
+
readonly frameworkVersion: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
|
|
211
|
+
readonly description: "MAJOR.MINOR.PATCH version of the Trust Tasks framework specification (SPEC.md) the responder targets — three-part, as the framework has been versioned since 0.4.0 (SPEC.md §5.1.1), and exactly the value a Trust Task specification declares as its target framework version. Lets a discoverer reason about compatibility (SPEC.md §5.2) and select the envelope schema a responder's documents are validated against, which is keyed by the full release: a PATCH is never substituted for another. RECOMMENDED. Two-part in trust-task-discovery/0.1, which could not express a PATCH.";
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
219
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
220
|
+
* per-specification and cannot be derived from the document alone, and
|
|
221
|
+
* item 2 needs the schema this carries.
|
|
222
|
+
*/
|
|
223
|
+
export declare const SPEC: {
|
|
224
|
+
readonly typeUri: "https://trusttasks.org/spec/trust-task-discovery/0.2";
|
|
225
|
+
readonly isBearer: false;
|
|
226
|
+
readonly isProofRequired: false;
|
|
227
|
+
readonly isRecipientRequired: true;
|
|
228
|
+
readonly isIssuedAtRequired: false;
|
|
229
|
+
readonly payloadSchema: {
|
|
230
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
231
|
+
readonly $id: "https://trusttasks.org/spec/trust-task-discovery/0.2";
|
|
232
|
+
readonly title: "Trust Task Discovery — payload";
|
|
233
|
+
readonly description: "Request payload for the framework-defined trust-task-discovery exchange. Carries zero or more slug-glob patterns the discoverer wants the responder to filter against. The response payload schema is reachable via $anchor: 'response'.";
|
|
234
|
+
readonly type: "object";
|
|
235
|
+
readonly additionalProperties: false;
|
|
236
|
+
readonly properties: {
|
|
237
|
+
readonly patterns: {
|
|
238
|
+
readonly type: "array";
|
|
239
|
+
readonly maxItems: 16;
|
|
240
|
+
readonly items: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
readonly minLength: 1;
|
|
243
|
+
readonly description: "Slug-glob pattern. Matches: '*' (every slug); '<prefix>/*' (any slug starting with '<prefix>/' — e.g. 'acl/*' matches 'acl/grant', 'acl/revoke', 'acl/grant/sub'); otherwise an exact slug match. Wildcards anywhere other than as a trailing segment are not interpreted — the only sigils are the trailing '/*' and the bare '*'.";
|
|
244
|
+
};
|
|
245
|
+
readonly description: "Patterns are ORed: a slug matches the query if at least one pattern matches it. If the array is omitted or empty, the responder MUST treat the query as ['*'] — return every supported task. Bounded at 16 entries as parser hardening (SPEC.md §12.2), not as a capability limit: matching an unbounded pattern list against every published slug is work a responder does on an unauthenticated request, and a discoverer wanting more asks for '*' and filters locally.";
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
readonly $defs: {
|
|
249
|
+
readonly Response: {
|
|
250
|
+
readonly $anchor: "response";
|
|
251
|
+
readonly title: "Trust Task Discovery — response payload";
|
|
252
|
+
readonly description: "List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.2#response.";
|
|
253
|
+
readonly type: "object";
|
|
254
|
+
readonly additionalProperties: false;
|
|
255
|
+
readonly required: readonly ["supportedTypes"];
|
|
256
|
+
readonly properties: {
|
|
257
|
+
readonly supportedTypes: {
|
|
258
|
+
readonly type: "array";
|
|
259
|
+
readonly items: {
|
|
260
|
+
readonly oneOf: readonly [{
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
readonly format: "uri";
|
|
263
|
+
readonly description: "Shorthand form: a bare Type URI string. Equivalent to an object with only the `type` member set.";
|
|
264
|
+
}, {
|
|
265
|
+
readonly type: "object";
|
|
266
|
+
readonly additionalProperties: false;
|
|
267
|
+
readonly required: readonly ["type"];
|
|
268
|
+
readonly properties: {
|
|
269
|
+
readonly type: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly format: "uri";
|
|
272
|
+
readonly description: "A bare Type URI (no #request or #response fragment). The responder supports both request and response variants of every entry it lists.";
|
|
273
|
+
};
|
|
274
|
+
readonly requiredExt: {
|
|
275
|
+
readonly type: "array";
|
|
276
|
+
readonly items: {
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
279
|
+
};
|
|
280
|
+
readonly minItems: 1;
|
|
281
|
+
readonly uniqueItems: true;
|
|
282
|
+
readonly description: "Reverse-DNS `ext` namespaces this responder requires on inbound documents of this Type URI as a matter of local policy (SPEC.md §4.5.1, §7.2). A producer that does not populate every listed namespace will receive a `malformedRequest` rejection. Optional; reserved-but-recognized in 0.1, RECOMMENDED in future revisions for responders that enforce such policies.";
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
readonly description: "Object form: lists a Type URI together with optional capability annotations.";
|
|
286
|
+
}];
|
|
287
|
+
readonly description: "An entry in the supportedTypes list. SHORTHAND: a bare Type URI string. EXPANDED: an object with `type` and optional capability annotations (`requiredExt`).";
|
|
288
|
+
};
|
|
289
|
+
readonly description: "Each entry's Type URI MUST match at least one of the request's patterns (if any were supplied). Order is not significant. Duplicates by Type URI are not permitted, regardless of whether the entry is in shorthand or expanded form.";
|
|
290
|
+
};
|
|
291
|
+
readonly frameworkVersion: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
|
|
294
|
+
readonly description: "MAJOR.MINOR.PATCH version of the Trust Tasks framework specification (SPEC.md) the responder targets — three-part, as the framework has been versioned since 0.4.0 (SPEC.md §5.1.1), and exactly the value a Trust Task specification declares as its target framework version. Lets a discoverer reason about compatibility (SPEC.md §5.2) and select the envelope schema a responder's documents are validated against, which is keyed by the full release: a PATCH is never substituted for another. RECOMMENDED. Two-part in trust-task-discovery/0.1, which could not express a PATCH.";
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
303
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
304
|
+
* parties (§7.3 item 5).
|
|
305
|
+
*/
|
|
306
|
+
export declare const RESPONSE_SPEC: {
|
|
307
|
+
readonly typeUri: "https://trusttasks.org/spec/trust-task-discovery/0.2#response";
|
|
308
|
+
readonly isBearer: false;
|
|
309
|
+
readonly isProofRequired: false;
|
|
310
|
+
readonly isRecipientRequired: true;
|
|
311
|
+
readonly isIssuedAtRequired: false;
|
|
312
|
+
readonly payloadSchema: {
|
|
313
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
314
|
+
readonly $ref: "#/$defs/Response";
|
|
315
|
+
readonly $defs: {
|
|
316
|
+
readonly Response: {
|
|
317
|
+
readonly $anchor: "response";
|
|
318
|
+
readonly title: "Trust Task Discovery — response payload";
|
|
319
|
+
readonly description: "List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.2#response.";
|
|
320
|
+
readonly type: "object";
|
|
321
|
+
readonly additionalProperties: false;
|
|
322
|
+
readonly required: readonly ["supportedTypes"];
|
|
323
|
+
readonly properties: {
|
|
324
|
+
readonly supportedTypes: {
|
|
325
|
+
readonly type: "array";
|
|
326
|
+
readonly items: {
|
|
327
|
+
readonly oneOf: readonly [{
|
|
328
|
+
readonly type: "string";
|
|
329
|
+
readonly format: "uri";
|
|
330
|
+
readonly description: "Shorthand form: a bare Type URI string. Equivalent to an object with only the `type` member set.";
|
|
331
|
+
}, {
|
|
332
|
+
readonly type: "object";
|
|
333
|
+
readonly additionalProperties: false;
|
|
334
|
+
readonly required: readonly ["type"];
|
|
335
|
+
readonly properties: {
|
|
336
|
+
readonly type: {
|
|
337
|
+
readonly type: "string";
|
|
338
|
+
readonly format: "uri";
|
|
339
|
+
readonly description: "A bare Type URI (no #request or #response fragment). The responder supports both request and response variants of every entry it lists.";
|
|
340
|
+
};
|
|
341
|
+
readonly requiredExt: {
|
|
342
|
+
readonly type: "array";
|
|
343
|
+
readonly items: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
346
|
+
};
|
|
347
|
+
readonly minItems: 1;
|
|
348
|
+
readonly uniqueItems: true;
|
|
349
|
+
readonly description: "Reverse-DNS `ext` namespaces this responder requires on inbound documents of this Type URI as a matter of local policy (SPEC.md §4.5.1, §7.2). A producer that does not populate every listed namespace will receive a `malformedRequest` rejection. Optional; reserved-but-recognized in 0.1, RECOMMENDED in future revisions for responders that enforce such policies.";
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly description: "Object form: lists a Type URI together with optional capability annotations.";
|
|
353
|
+
}];
|
|
354
|
+
readonly description: "An entry in the supportedTypes list. SHORTHAND: a bare Type URI string. EXPANDED: an object with `type` and optional capability annotations (`requiredExt`).";
|
|
355
|
+
};
|
|
356
|
+
readonly description: "Each entry's Type URI MUST match at least one of the request's patterns (if any were supplied). Order is not significant. Duplicates by Type URI are not permitted, regardless of whether the entry is in shorthand or expanded form.";
|
|
357
|
+
};
|
|
358
|
+
readonly frameworkVersion: {
|
|
359
|
+
readonly type: "string";
|
|
360
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
|
|
361
|
+
readonly description: "MAJOR.MINOR.PATCH version of the Trust Tasks framework specification (SPEC.md) the responder targets — three-part, as the framework has been versioned since 0.4.0 (SPEC.md §5.1.1), and exactly the value a Trust Task specification declares as its target framework version. Lets a discoverer reason about compatibility (SPEC.md §5.2) and select the envelope schema a responder's documents are validated against, which is keyed by the full release: a PATCH is never substituted for another. RECOMMENDED. Two-part in trust-task-discovery/0.1, which could not express a PATCH.";
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/trust-task-discovery/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EACL,EAAE,GACF,CAAC,MAAM,CAAC,GACR,CAAC,MAAM,EAAE,MAAM,CAAC,GAChB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GACxB,CAAC,MAAM,EAAE,MAA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X;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/trust-task-discovery/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/trust-task-discovery/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/trust-task-discovery/0.2#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/trust-task-discovery/0.2",
|
|
21
|
+
"title": "Trust Task Discovery — payload",
|
|
22
|
+
"description": "Request payload for the framework-defined trust-task-discovery exchange. Carries zero or more slug-glob patterns the discoverer wants the responder to filter against. The response payload schema is reachable via $anchor: 'response'.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"patterns": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"maxItems": 16,
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"description": "Slug-glob pattern. Matches: '*' (every slug); '<prefix>/*' (any slug starting with '<prefix>/' — e.g. 'acl/*' matches 'acl/grant', 'acl/revoke', 'acl/grant/sub'); otherwise an exact slug match. Wildcards anywhere other than as a trailing segment are not interpreted — the only sigils are the trailing '/*' and the bare '*'."
|
|
33
|
+
},
|
|
34
|
+
"description": "Patterns are ORed: a slug matches the query if at least one pattern matches it. If the array is omitted or empty, the responder MUST treat the query as ['*'] — return every supported task. Bounded at 16 entries as parser hardening (SPEC.md §12.2), not as a capability limit: matching an unbounded pattern list against every published slug is work a responder does on an unauthenticated request, and a discoverer wanting more asks for '*' and filters locally."
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"$defs": {
|
|
38
|
+
"Response": {
|
|
39
|
+
"$anchor": "response",
|
|
40
|
+
"title": "Trust Task Discovery — response payload",
|
|
41
|
+
"description": "List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.2#response.",
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": [
|
|
45
|
+
"supportedTypes"
|
|
46
|
+
],
|
|
47
|
+
"properties": {
|
|
48
|
+
"supportedTypes": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"oneOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "uri",
|
|
55
|
+
"description": "Shorthand form: a bare Type URI string. Equivalent to an object with only the `type` member set."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": [
|
|
61
|
+
"type"
|
|
62
|
+
],
|
|
63
|
+
"properties": {
|
|
64
|
+
"type": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": "uri",
|
|
67
|
+
"description": "A bare Type URI (no #request or #response fragment). The responder supports both request and response variants of every entry it lists."
|
|
68
|
+
},
|
|
69
|
+
"requiredExt": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
74
|
+
},
|
|
75
|
+
"minItems": 1,
|
|
76
|
+
"uniqueItems": true,
|
|
77
|
+
"description": "Reverse-DNS `ext` namespaces this responder requires on inbound documents of this Type URI as a matter of local policy (SPEC.md §4.5.1, §7.2). A producer that does not populate every listed namespace will receive a `malformedRequest` rejection. Optional; reserved-but-recognized in 0.1, RECOMMENDED in future revisions for responders that enforce such policies."
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"description": "Object form: lists a Type URI together with optional capability annotations."
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"description": "An entry in the supportedTypes list. SHORTHAND: a bare Type URI string. EXPANDED: an object with `type` and optional capability annotations (`requiredExt`)."
|
|
84
|
+
},
|
|
85
|
+
"description": "Each entry's Type URI MUST match at least one of the request's patterns (if any were supplied). Order is not significant. Duplicates by Type URI are not permitted, regardless of whether the entry is in shorthand or expanded form."
|
|
86
|
+
},
|
|
87
|
+
"frameworkVersion": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$",
|
|
90
|
+
"description": "MAJOR.MINOR.PATCH version of the Trust Tasks framework specification (SPEC.md) the responder targets — three-part, as the framework has been versioned since 0.4.0 (SPEC.md §5.1.1), and exactly the value a Trust Task specification declares as its target framework version. Lets a discoverer reason about compatibility (SPEC.md §5.2) and select the envelope schema a responder's documents are validated against, which is keyed by the full release: a PATCH is never substituted for another. RECOMMENDED. Two-part in trust-task-discovery/0.1, which could not express a PATCH."
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
97
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
98
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
99
|
+
"$ref": "#/$defs/Response",
|
|
100
|
+
"$defs": {
|
|
101
|
+
"Response": {
|
|
102
|
+
"$anchor": "response",
|
|
103
|
+
"title": "Trust Task Discovery — response payload",
|
|
104
|
+
"description": "List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.2#response.",
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"required": [
|
|
108
|
+
"supportedTypes"
|
|
109
|
+
],
|
|
110
|
+
"properties": {
|
|
111
|
+
"supportedTypes": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"items": {
|
|
114
|
+
"oneOf": [
|
|
115
|
+
{
|
|
116
|
+
"type": "string",
|
|
117
|
+
"format": "uri",
|
|
118
|
+
"description": "Shorthand form: a bare Type URI string. Equivalent to an object with only the `type` member set."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "object",
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"required": [
|
|
124
|
+
"type"
|
|
125
|
+
],
|
|
126
|
+
"properties": {
|
|
127
|
+
"type": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"format": "uri",
|
|
130
|
+
"description": "A bare Type URI (no #request or #response fragment). The responder supports both request and response variants of every entry it lists."
|
|
131
|
+
},
|
|
132
|
+
"requiredExt": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
137
|
+
},
|
|
138
|
+
"minItems": 1,
|
|
139
|
+
"uniqueItems": true,
|
|
140
|
+
"description": "Reverse-DNS `ext` namespaces this responder requires on inbound documents of this Type URI as a matter of local policy (SPEC.md §4.5.1, §7.2). A producer that does not populate every listed namespace will receive a `malformedRequest` rejection. Optional; reserved-but-recognized in 0.1, RECOMMENDED in future revisions for responders that enforce such policies."
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"description": "Object form: lists a Type URI together with optional capability annotations."
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"description": "An entry in the supportedTypes list. SHORTHAND: a bare Type URI string. EXPANDED: an object with `type` and optional capability annotations (`requiredExt`)."
|
|
147
|
+
},
|
|
148
|
+
"description": "Each entry's Type URI MUST match at least one of the request's patterns (if any were supplied). Order is not significant. Duplicates by Type URI are not permitted, regardless of whether the entry is in shorthand or expanded form."
|
|
149
|
+
},
|
|
150
|
+
"frameworkVersion": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$",
|
|
153
|
+
"description": "MAJOR.MINOR.PATCH version of the Trust Tasks framework specification (SPEC.md) the responder targets — three-part, as the framework has been versioned since 0.4.0 (SPEC.md §5.1.1), and exactly the value a Trust Task specification declares as its target framework version. Lets a discoverer reason about compatibility (SPEC.md §5.2) and select the envelope schema a responder's documents are validated against, which is keyed by the full release: a PATCH is never substituted for another. RECOMMENDED. Two-part in trust-task-discovery/0.1, which could not express a PATCH."
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
161
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
162
|
+
* per-specification and cannot be derived from the document alone, and
|
|
163
|
+
* item 2 needs the schema this carries.
|
|
164
|
+
*/
|
|
165
|
+
export const SPEC = {
|
|
166
|
+
typeUri: TYPE_URI,
|
|
167
|
+
isBearer: false,
|
|
168
|
+
isProofRequired: false,
|
|
169
|
+
isRecipientRequired: true,
|
|
170
|
+
isIssuedAtRequired: false,
|
|
171
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
175
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
176
|
+
* parties (§7.3 item 5).
|
|
177
|
+
*/
|
|
178
|
+
export const RESPONSE_SPEC = {
|
|
179
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
180
|
+
isBearer: false,
|
|
181
|
+
isProofRequired: false,
|
|
182
|
+
isRecipientRequired: true,
|
|
183
|
+
isIssuedAtRequired: false,
|
|
184
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
185
|
+
};
|
|
186
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../src/trust-task-discovery/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2FH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAKxF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,gCAAgC;IACzC,aAAa,EAAE,0OAA0O;IACzP,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,EAAE;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,QAAQ;gBAChB,WAAW,EAAE,CAAC;gBACd,aAAa,EAAE,qUAAqU;aACrV;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E,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
package/package.json
CHANGED
package/src/_runtime/consume.ts
CHANGED
|
@@ -432,7 +432,7 @@ export async function consumeInbound<P, R>(
|
|
|
432
432
|
ok = false;
|
|
433
433
|
}
|
|
434
434
|
if (!ok) {
|
|
435
|
-
// A constant, never the verifier's own error text. SPEC §
|
|
435
|
+
// A constant, never the verifier's own error text. SPEC §12.4
|
|
436
436
|
// extends the §8.1 identity rule to every code, and a verifier's
|
|
437
437
|
// vocabulary names DIDs it tried to resolve, whether a resolver
|
|
438
438
|
// answered, and what a fetched DID document contained — a
|
|
@@ -577,7 +577,7 @@ export const ID_CONFLICT_WIRE_MESSAGE =
|
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
579
|
* Wire message for a replay-record outage. A constant, so a store's hostname
|
|
580
|
-
* or connection string never reaches the wire (SPEC §
|
|
580
|
+
* or connection string never reaches the wire (SPEC §12.4).
|
|
581
581
|
*/
|
|
582
582
|
export const REPLAY_RECORD_UNAVAILABLE = "temporarily unavailable";
|
|
583
583
|
|
|
@@ -3348,6 +3348,14 @@ export interface Profile {
|
|
|
3348
3348
|
* @maxItems 256
|
|
3349
3349
|
*/
|
|
3350
3350
|
entries: ProfileEntry[];
|
|
3351
|
+
/**
|
|
3352
|
+
* `retired`: the face is worn nowhere, is left out of pickers and default listings, and cannot be worn until reinstated (persona/profile/retire, persona/profile/reinstate). Its disclosure history and every value it carries are kept — retiring is 'stop being this', not 'forget this'. Absent reads as `active`.
|
|
3353
|
+
*/
|
|
3354
|
+
status?: "active" | "retired";
|
|
3355
|
+
/**
|
|
3356
|
+
* When the face was retired. Present exactly when `status` is `retired`.
|
|
3357
|
+
*/
|
|
3358
|
+
retiredAt?: string;
|
|
3351
3359
|
/**
|
|
3352
3360
|
* Vault identifiers of credentials associated with this profile as INVENTORY, distinct from the evidence relationship a `credentialBacked` attribute expresses. The two answer different questions — what can this persona prove, versus what backs this specific claim — and a consumer MUST NOT read one as the other.
|
|
3353
3361
|
*
|