@openvtc/trust-tasks 0.19.17 → 0.19.19
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 +46 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/persona/_shared/0.1/persona-record.d.ts +1 -1
- package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -1
- package/dist/persona/attribute/list/1.0/payload.d.ts +124 -4
- package/dist/persona/attribute/list/1.0/payload.d.ts.map +1 -1
- package/dist/persona/attribute/list/1.0/payload.js +72 -2
- package/dist/persona/attribute/list/1.0/payload.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/attribute/put/1.0/payload.d.ts +110 -4
- package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -1
- package/dist/persona/attribute/put/1.0/payload.js +62 -2
- package/dist/persona/attribute/put/1.0/payload.js.map +1 -1
- 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/contact/get/1.0/payload.d.ts +84 -4
- package/dist/persona/contact/get/1.0/payload.d.ts.map +1 -1
- package/dist/persona/contact/get/1.0/payload.js +52 -2
- package/dist/persona/contact/get/1.0/payload.js.map +1 -1
- package/dist/persona/contact/put/1.0/payload.d.ts +84 -4
- package/dist/persona/contact/put/1.0/payload.d.ts.map +1 -1
- package/dist/persona/contact/put/1.0/payload.js +52 -2
- package/dist/persona/contact/put/1.0/payload.js.map +1 -1
- package/dist/persona/disclosure/preview/1.0/payload.d.ts +5 -5
- package/dist/persona/disclosure/preview/1.0/payload.d.ts.map +1 -1
- package/dist/persona/disclosure/preview/1.0/payload.js +4 -2
- package/dist/persona/disclosure/preview/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 +965 -0
- package/dist/persona/profile/compose/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/compose/1.0/payload.js +531 -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 +345 -6
- package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/get/1.0/payload.js +206 -2
- package/dist/persona/profile/get/1.0/payload.js.map +1 -1
- package/dist/persona/profile/list/1.0/payload.d.ts +288 -6
- package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/list/1.0/payload.js +173 -2
- package/dist/persona/profile/list/1.0/payload.js.map +1 -1
- package/dist/persona/profile/put/1.0/payload.d.ts +230 -6
- package/dist/persona/profile/put/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/put/1.0/payload.js +138 -2
- package/dist/persona/profile/put/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/persona/profile/timeline/1.0/payload.d.ts +588 -0
- package/dist/persona/profile/timeline/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/timeline/1.0/payload.js +322 -0
- package/dist/persona/profile/timeline/1.0/payload.js.map +1 -0
- package/dist/persona/profile/usage/1.0/payload.d.ts +533 -0
- package/dist/persona/profile/usage/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/usage/1.0/payload.js +302 -0
- package/dist/persona/profile/usage/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/dist/vtc/invitations/deliver/0.1/payload.d.ts +318 -0
- package/dist/vtc/invitations/deliver/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/invitations/deliver/0.1/payload.js +183 -0
- package/dist/vtc/invitations/deliver/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_runtime/consume.ts +2 -2
- package/src/_shared/components.ts +49 -0
- package/src/index.ts +8 -0
- package/src/persona/_shared/0.1/persona-record.ts +1 -1
- package/src/persona/attribute/list/1.0/payload.ts +72 -2
- package/src/persona/attribute/promote/1.0/payload.ts +344 -0
- package/src/persona/attribute/put/1.0/payload.ts +68 -2
- 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/contact/get/1.0/payload.ts +52 -2
- package/src/persona/contact/put/1.0/payload.ts +52 -2
- package/src/persona/disclosure/preview/1.0/payload.ts +5 -3
- package/src/persona/local/binding/set/1.0/payload.ts +9 -0
- package/src/persona/profile/compose/1.0/payload.ts +650 -0
- package/src/persona/profile/delete/1.0/payload.ts +45 -0
- package/src/persona/profile/get/1.0/payload.ts +215 -4
- package/src/persona/profile/list/1.0/payload.ts +179 -4
- package/src/persona/profile/put/1.0/payload.ts +144 -4
- package/src/persona/profile/reinstate/1.0/payload.ts +219 -0
- package/src/persona/profile/retire/1.0/payload.ts +289 -0
- package/src/persona/profile/timeline/1.0/payload.ts +402 -0
- package/src/persona/profile/usage/1.0/payload.ts +354 -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
- package/src/vtc/invitations/deliver/0.1/payload.ts +234 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/invitations/deliver/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Deliver an issued invitation to the DID it admits: push an offer to that DID, or return the offer for a QR code. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCInvitationsDeliverPayload {
|
|
10
|
+
/**
|
|
11
|
+
* Identifier of the invitation to deliver, as `vtc/invitations/list` reports it.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* `message`: the community sends a `credential-exchange/offer` to the invited DID over a transport that DID advertises. `offer`: the community returns the offer, for the inviter to hand over out of band — typically as a QR code.
|
|
16
|
+
*/
|
|
17
|
+
channel: "message" | "offer";
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
export interface VTCInvitationsDeliverResponsePayload {
|
|
21
|
+
/**
|
|
22
|
+
* The invitation's identifier, echoed.
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The channel used, echoed.
|
|
27
|
+
*/
|
|
28
|
+
channel: "message" | "offer";
|
|
29
|
+
/**
|
|
30
|
+
* Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.
|
|
31
|
+
*/
|
|
32
|
+
offer?: {};
|
|
33
|
+
/**
|
|
34
|
+
* When this delivery's offer lapses. Never later than the invitation's own expiry.
|
|
35
|
+
*/
|
|
36
|
+
expiresAt: string;
|
|
37
|
+
ext?: Ext;
|
|
38
|
+
}
|
|
39
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
40
|
+
export type { Ext };
|
|
41
|
+
/** Trust Task type URI. */
|
|
42
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1";
|
|
43
|
+
/** Stable alias for this specification's request payload shape. */
|
|
44
|
+
export type Payload = VTCInvitationsDeliverPayload;
|
|
45
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
46
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1#response";
|
|
47
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
48
|
+
export type Response = VTCInvitationsDeliverResponsePayload;
|
|
49
|
+
/**
|
|
50
|
+
* This specification's payload schema, as a value.
|
|
51
|
+
*
|
|
52
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
53
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
54
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
55
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
56
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
57
|
+
*/
|
|
58
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
59
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
60
|
+
readonly $id: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1";
|
|
61
|
+
readonly title: "VTC Invitations Deliver — payload";
|
|
62
|
+
readonly description: "Deliver an issued invitation to the DID it admits: push an offer to that DID, or return the offer for a QR code. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly additionalProperties: false;
|
|
65
|
+
readonly required: readonly ["id", "channel"];
|
|
66
|
+
readonly properties: {
|
|
67
|
+
readonly id: {
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
readonly minLength: 1;
|
|
70
|
+
readonly maxLength: 256;
|
|
71
|
+
readonly description: "Identifier of the invitation to deliver, as `vtc/invitations/list` reports it.";
|
|
72
|
+
};
|
|
73
|
+
readonly channel: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
readonly enum: readonly ["message", "offer"];
|
|
76
|
+
readonly description: "`message`: the community sends a `credential-exchange/offer` to the invited DID over a transport that DID advertises. `offer`: the community returns the offer, for the inviter to hand over out of band — typically as a QR code.";
|
|
77
|
+
};
|
|
78
|
+
readonly ext: {
|
|
79
|
+
readonly $ref: "#/$defs/Ext";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
readonly $defs: {
|
|
83
|
+
readonly Response: {
|
|
84
|
+
readonly $anchor: "response";
|
|
85
|
+
readonly title: "VTC Invitations Deliver — response payload";
|
|
86
|
+
readonly type: "object";
|
|
87
|
+
readonly additionalProperties: false;
|
|
88
|
+
readonly required: readonly ["id", "channel", "expiresAt"];
|
|
89
|
+
readonly properties: {
|
|
90
|
+
readonly id: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly minLength: 1;
|
|
93
|
+
readonly maxLength: 256;
|
|
94
|
+
readonly description: "The invitation's identifier, echoed.";
|
|
95
|
+
};
|
|
96
|
+
readonly channel: {
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
readonly enum: readonly ["message", "offer"];
|
|
99
|
+
readonly description: "The channel used, echoed.";
|
|
100
|
+
};
|
|
101
|
+
readonly offer: {
|
|
102
|
+
readonly type: "object";
|
|
103
|
+
readonly description: "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.";
|
|
104
|
+
};
|
|
105
|
+
readonly expiresAt: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly format: "date-time";
|
|
108
|
+
readonly description: "When this delivery's offer lapses. Never later than the invitation's own expiry.";
|
|
109
|
+
};
|
|
110
|
+
readonly ext: {
|
|
111
|
+
readonly $ref: "#/$defs/Ext";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly Ext: {
|
|
116
|
+
readonly title: "Ext";
|
|
117
|
+
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.";
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
readonly minProperties: 1;
|
|
120
|
+
readonly additionalProperties: true;
|
|
121
|
+
readonly propertyNames: {
|
|
122
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
128
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
129
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
130
|
+
readonly $ref: "#/$defs/Response";
|
|
131
|
+
readonly $defs: {
|
|
132
|
+
readonly Response: {
|
|
133
|
+
readonly $anchor: "response";
|
|
134
|
+
readonly title: "VTC Invitations Deliver — response payload";
|
|
135
|
+
readonly type: "object";
|
|
136
|
+
readonly additionalProperties: false;
|
|
137
|
+
readonly required: readonly ["id", "channel", "expiresAt"];
|
|
138
|
+
readonly properties: {
|
|
139
|
+
readonly id: {
|
|
140
|
+
readonly type: "string";
|
|
141
|
+
readonly minLength: 1;
|
|
142
|
+
readonly maxLength: 256;
|
|
143
|
+
readonly description: "The invitation's identifier, echoed.";
|
|
144
|
+
};
|
|
145
|
+
readonly channel: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly enum: readonly ["message", "offer"];
|
|
148
|
+
readonly description: "The channel used, echoed.";
|
|
149
|
+
};
|
|
150
|
+
readonly offer: {
|
|
151
|
+
readonly type: "object";
|
|
152
|
+
readonly description: "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.";
|
|
153
|
+
};
|
|
154
|
+
readonly expiresAt: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
readonly format: "date-time";
|
|
157
|
+
readonly description: "When this delivery's offer lapses. Never later than the invitation's own expiry.";
|
|
158
|
+
};
|
|
159
|
+
readonly ext: {
|
|
160
|
+
readonly $ref: "#/$defs/Ext";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly Ext: {
|
|
165
|
+
readonly title: "Ext";
|
|
166
|
+
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.";
|
|
167
|
+
readonly type: "object";
|
|
168
|
+
readonly minProperties: 1;
|
|
169
|
+
readonly additionalProperties: true;
|
|
170
|
+
readonly propertyNames: {
|
|
171
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
178
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
179
|
+
* per-specification and cannot be derived from the document alone, and
|
|
180
|
+
* item 2 needs the schema this carries.
|
|
181
|
+
*/
|
|
182
|
+
export declare const SPEC: {
|
|
183
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1";
|
|
184
|
+
readonly isBearer: false;
|
|
185
|
+
readonly isProofRequired: true;
|
|
186
|
+
readonly isRecipientRequired: true;
|
|
187
|
+
readonly isIssuedAtRequired: true;
|
|
188
|
+
readonly payloadSchema: {
|
|
189
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
190
|
+
readonly $id: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1";
|
|
191
|
+
readonly title: "VTC Invitations Deliver — payload";
|
|
192
|
+
readonly description: "Deliver an issued invitation to the DID it admits: push an offer to that DID, or return the offer for a QR code. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
193
|
+
readonly type: "object";
|
|
194
|
+
readonly additionalProperties: false;
|
|
195
|
+
readonly required: readonly ["id", "channel"];
|
|
196
|
+
readonly properties: {
|
|
197
|
+
readonly id: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
readonly minLength: 1;
|
|
200
|
+
readonly maxLength: 256;
|
|
201
|
+
readonly description: "Identifier of the invitation to deliver, as `vtc/invitations/list` reports it.";
|
|
202
|
+
};
|
|
203
|
+
readonly channel: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly enum: readonly ["message", "offer"];
|
|
206
|
+
readonly description: "`message`: the community sends a `credential-exchange/offer` to the invited DID over a transport that DID advertises. `offer`: the community returns the offer, for the inviter to hand over out of band — typically as a QR code.";
|
|
207
|
+
};
|
|
208
|
+
readonly ext: {
|
|
209
|
+
readonly $ref: "#/$defs/Ext";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
readonly $defs: {
|
|
213
|
+
readonly Response: {
|
|
214
|
+
readonly $anchor: "response";
|
|
215
|
+
readonly title: "VTC Invitations Deliver — response payload";
|
|
216
|
+
readonly type: "object";
|
|
217
|
+
readonly additionalProperties: false;
|
|
218
|
+
readonly required: readonly ["id", "channel", "expiresAt"];
|
|
219
|
+
readonly properties: {
|
|
220
|
+
readonly id: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
readonly minLength: 1;
|
|
223
|
+
readonly maxLength: 256;
|
|
224
|
+
readonly description: "The invitation's identifier, echoed.";
|
|
225
|
+
};
|
|
226
|
+
readonly channel: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
readonly enum: readonly ["message", "offer"];
|
|
229
|
+
readonly description: "The channel used, echoed.";
|
|
230
|
+
};
|
|
231
|
+
readonly offer: {
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly description: "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.";
|
|
234
|
+
};
|
|
235
|
+
readonly expiresAt: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly format: "date-time";
|
|
238
|
+
readonly description: "When this delivery's offer lapses. Never later than the invitation's own expiry.";
|
|
239
|
+
};
|
|
240
|
+
readonly ext: {
|
|
241
|
+
readonly $ref: "#/$defs/Ext";
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
readonly Ext: {
|
|
246
|
+
readonly title: "Ext";
|
|
247
|
+
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.";
|
|
248
|
+
readonly type: "object";
|
|
249
|
+
readonly minProperties: 1;
|
|
250
|
+
readonly additionalProperties: true;
|
|
251
|
+
readonly propertyNames: {
|
|
252
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
260
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
261
|
+
* parties (§7.3 item 5).
|
|
262
|
+
*/
|
|
263
|
+
export declare const RESPONSE_SPEC: {
|
|
264
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/invitations/deliver/0.1#response";
|
|
265
|
+
readonly isBearer: false;
|
|
266
|
+
readonly isProofRequired: true;
|
|
267
|
+
readonly isRecipientRequired: true;
|
|
268
|
+
readonly isIssuedAtRequired: true;
|
|
269
|
+
readonly payloadSchema: {
|
|
270
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
271
|
+
readonly $ref: "#/$defs/Response";
|
|
272
|
+
readonly $defs: {
|
|
273
|
+
readonly Response: {
|
|
274
|
+
readonly $anchor: "response";
|
|
275
|
+
readonly title: "VTC Invitations Deliver — response payload";
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly additionalProperties: false;
|
|
278
|
+
readonly required: readonly ["id", "channel", "expiresAt"];
|
|
279
|
+
readonly properties: {
|
|
280
|
+
readonly id: {
|
|
281
|
+
readonly type: "string";
|
|
282
|
+
readonly minLength: 1;
|
|
283
|
+
readonly maxLength: 256;
|
|
284
|
+
readonly description: "The invitation's identifier, echoed.";
|
|
285
|
+
};
|
|
286
|
+
readonly channel: {
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
readonly enum: readonly ["message", "offer"];
|
|
289
|
+
readonly description: "The channel used, echoed.";
|
|
290
|
+
};
|
|
291
|
+
readonly offer: {
|
|
292
|
+
readonly type: "object";
|
|
293
|
+
readonly description: "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here.";
|
|
294
|
+
};
|
|
295
|
+
readonly expiresAt: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly format: "date-time";
|
|
298
|
+
readonly description: "When this delivery's offer lapses. Never later than the invitation's own expiry.";
|
|
299
|
+
};
|
|
300
|
+
readonly ext: {
|
|
301
|
+
readonly $ref: "#/$defs/Ext";
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
readonly Ext: {
|
|
306
|
+
readonly title: "Ext";
|
|
307
|
+
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.";
|
|
308
|
+
readonly type: "object";
|
|
309
|
+
readonly minProperties: 1;
|
|
310
|
+
readonly additionalProperties: true;
|
|
311
|
+
readonly propertyNames: {
|
|
312
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/invitations/deliver/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,EAAE,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,yDAAkE,CAAC;AAE3F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,4BAA4B,CAAC;AAEnD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,kEAA2E,CAAC;AAE7G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,oCAAoC,CAAC;AAE5D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsD1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/invitations/deliver/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/invitations/deliver/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/invitations/deliver/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vtc/invitations/deliver/0.1",
|
|
21
|
+
"title": "VTC Invitations Deliver — payload",
|
|
22
|
+
"description": "Deliver an issued invitation to the DID it admits: push an offer to that DID, or return the offer for a QR code. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"id",
|
|
27
|
+
"channel"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"id": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"maxLength": 256,
|
|
34
|
+
"description": "Identifier of the invitation to deliver, as `vtc/invitations/list` reports it."
|
|
35
|
+
},
|
|
36
|
+
"channel": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"message",
|
|
40
|
+
"offer"
|
|
41
|
+
],
|
|
42
|
+
"description": "`message`: the community sends a `credential-exchange/offer` to the invited DID over a transport that DID advertises. `offer`: the community returns the offer, for the inviter to hand over out of band — typically as a QR code."
|
|
43
|
+
},
|
|
44
|
+
"ext": {
|
|
45
|
+
"$ref": "#/$defs/Ext"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"$defs": {
|
|
49
|
+
"Response": {
|
|
50
|
+
"$anchor": "response",
|
|
51
|
+
"title": "VTC Invitations Deliver — response payload",
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": [
|
|
55
|
+
"id",
|
|
56
|
+
"channel",
|
|
57
|
+
"expiresAt"
|
|
58
|
+
],
|
|
59
|
+
"properties": {
|
|
60
|
+
"id": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"maxLength": 256,
|
|
64
|
+
"description": "The invitation's identifier, echoed."
|
|
65
|
+
},
|
|
66
|
+
"channel": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": [
|
|
69
|
+
"message",
|
|
70
|
+
"offer"
|
|
71
|
+
],
|
|
72
|
+
"description": "The channel used, echoed."
|
|
73
|
+
},
|
|
74
|
+
"offer": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"description": "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here."
|
|
77
|
+
},
|
|
78
|
+
"expiresAt": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"format": "date-time",
|
|
81
|
+
"description": "When this delivery's offer lapses. Never later than the invitation's own expiry."
|
|
82
|
+
},
|
|
83
|
+
"ext": {
|
|
84
|
+
"$ref": "#/$defs/Ext"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"Ext": {
|
|
89
|
+
"title": "Ext",
|
|
90
|
+
"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.",
|
|
91
|
+
"type": "object",
|
|
92
|
+
"minProperties": 1,
|
|
93
|
+
"additionalProperties": true,
|
|
94
|
+
"propertyNames": {
|
|
95
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
101
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
102
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
103
|
+
"$ref": "#/$defs/Response",
|
|
104
|
+
"$defs": {
|
|
105
|
+
"Response": {
|
|
106
|
+
"$anchor": "response",
|
|
107
|
+
"title": "VTC Invitations Deliver — response payload",
|
|
108
|
+
"type": "object",
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"required": [
|
|
111
|
+
"id",
|
|
112
|
+
"channel",
|
|
113
|
+
"expiresAt"
|
|
114
|
+
],
|
|
115
|
+
"properties": {
|
|
116
|
+
"id": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"minLength": 1,
|
|
119
|
+
"maxLength": 256,
|
|
120
|
+
"description": "The invitation's identifier, echoed."
|
|
121
|
+
},
|
|
122
|
+
"channel": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"enum": [
|
|
125
|
+
"message",
|
|
126
|
+
"offer"
|
|
127
|
+
],
|
|
128
|
+
"description": "The channel used, echoed."
|
|
129
|
+
},
|
|
130
|
+
"offer": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"description": "Present exactly when `channel` is `offer`: an OID4VCI Credential Offer object, carried verbatim, whose pre-authorized code redeems only for the invited DID. Its members are OID4VCI's and are deliberately not re-specified here."
|
|
133
|
+
},
|
|
134
|
+
"expiresAt": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"format": "date-time",
|
|
137
|
+
"description": "When this delivery's offer lapses. Never later than the invitation's own expiry."
|
|
138
|
+
},
|
|
139
|
+
"ext": {
|
|
140
|
+
"$ref": "#/$defs/Ext"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"Ext": {
|
|
145
|
+
"title": "Ext",
|
|
146
|
+
"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.",
|
|
147
|
+
"type": "object",
|
|
148
|
+
"minProperties": 1,
|
|
149
|
+
"additionalProperties": true,
|
|
150
|
+
"propertyNames": {
|
|
151
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
158
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
159
|
+
* per-specification and cannot be derived from the document alone, and
|
|
160
|
+
* item 2 needs the schema this carries.
|
|
161
|
+
*/
|
|
162
|
+
export const SPEC = {
|
|
163
|
+
typeUri: TYPE_URI,
|
|
164
|
+
isBearer: false,
|
|
165
|
+
isProofRequired: true,
|
|
166
|
+
isRecipientRequired: true,
|
|
167
|
+
isIssuedAtRequired: true,
|
|
168
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
172
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
173
|
+
* parties (§7.3 item 5).
|
|
174
|
+
*/
|
|
175
|
+
export const RESPONSE_SPEC = {
|
|
176
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
177
|
+
isBearer: false,
|
|
178
|
+
isProofRequired: true,
|
|
179
|
+
isRecipientRequired: true,
|
|
180
|
+
isIssuedAtRequired: true,
|
|
181
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
182
|
+
};
|
|
183
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/invitations/deliver/0.1/payload.ts"],"names":[],"mappings":"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"}
|
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
|
|
|
@@ -213,6 +213,25 @@ export type ExpectedVersion_VtaV0_1 = number;
|
|
|
213
213
|
* After which the bundle is collected: staged bytes discarded, tokens and chunk requests refused. Short by design. For a chunked transfer a recipient may move it later as chunks are exchanged, never past its own ceiling — each chunk response reports the current value.
|
|
214
214
|
*/
|
|
215
215
|
export type ExpiresAt = string;
|
|
216
|
+
/**
|
|
217
|
+
* Where a pool face may be worn. `anywhere` is the default and what an absent member means. `only` names the contexts it may be worn in, and a maintainer MUST refuse to wear it in any other (persona/binding/set `outsideReach`).
|
|
218
|
+
*
|
|
219
|
+
* A tagged object rather than a bare list of contexts, deliberately: an empty list has been read as both 'unrestricted' and 'nowhere' in this family's neighbours, and a shape where the two cannot be confused is worth more than one where they must be remembered. So `only` requires at least one context, and 'nowhere' is not a reach — it is a retired face.
|
|
220
|
+
*
|
|
221
|
+
* A context-local face has no reach: it lives in its context and is worn there by construction.
|
|
222
|
+
*/
|
|
223
|
+
export type FaceReach =
|
|
224
|
+
| {
|
|
225
|
+
kind: "anywhere";
|
|
226
|
+
}
|
|
227
|
+
| {
|
|
228
|
+
kind: "only";
|
|
229
|
+
/**
|
|
230
|
+
* @minItems 1
|
|
231
|
+
* @maxItems 256
|
|
232
|
+
*/
|
|
233
|
+
contextIds: [string, ...string[]];
|
|
234
|
+
};
|
|
216
235
|
/**
|
|
217
236
|
* A colour **name**, resolved by each consumer against its own palette — never a hex value or any other literal. Two reasons, and both are about the consumer rather than the holder. A literal cannot be legible in a terminal, in a light theme and in a dark one at once, so a stored `#8B0000` is a colour that is wrong somewhere and the holder has no way to know where. And a consumer that reserves colours to mean something — an error, a warning, an irreversible act — must be able to keep a holder's decorative choice out of that channel; it cannot do that with an arbitrary value, and it can do it trivially with a closed set it maps itself. The eight members are chosen to be distinguishable from one another and deliberately carry no status connotation: none is named for success, warning or danger.
|
|
218
237
|
*/
|
|
@@ -329,6 +348,10 @@ export type ProofRung = "predicate" | "derived" | "selectiveDisclosure" | "whole
|
|
|
329
348
|
* `credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.
|
|
330
349
|
*
|
|
331
350
|
* `generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.
|
|
351
|
+
*
|
|
352
|
+
* `derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.
|
|
353
|
+
*
|
|
354
|
+
* For how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.
|
|
332
355
|
*/
|
|
333
356
|
export type Provenance =
|
|
334
357
|
| {
|
|
@@ -363,6 +386,17 @@ export type Provenance =
|
|
|
363
386
|
* When true (the default and the only useful setting), a distinct value is minted for each verifier.
|
|
364
387
|
*/
|
|
365
388
|
perVerifier?: boolean;
|
|
389
|
+
}
|
|
390
|
+
| {
|
|
391
|
+
kind: "derived";
|
|
392
|
+
/**
|
|
393
|
+
* The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share.
|
|
394
|
+
*/
|
|
395
|
+
source: string;
|
|
396
|
+
/**
|
|
397
|
+
* When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it.
|
|
398
|
+
*/
|
|
399
|
+
derivedAt: string;
|
|
366
400
|
};
|
|
367
401
|
/**
|
|
368
402
|
* A device's platform push channel — the body the device registers with its push GATEWAY (push wake-up binding, https://trusttasks.org/binding/push/0.1; modeled on Aries RFC 0699/0734). The gateway holds this token and returns an opaque WakeHandle in exchange; the token is held by the gateway ONLY, never by the mediator or the maintainer/VTA. The gateway uses it to send a contentless wake-up when an authorized trigger asks — the push payload never carries Trust Task content. Tagged union over the discriminator `platform`.
|
|
@@ -1087,6 +1121,12 @@ export interface Attribute {
|
|
|
1087
1121
|
* Set only where the holder decided it explicitly. Absent resolves from the claim-type registry.
|
|
1088
1122
|
*/
|
|
1089
1123
|
release?: ReleaseRequirement;
|
|
1124
|
+
/**
|
|
1125
|
+
* Vault identifiers of credentials in which a third party endorses this value — a colleague vouching for a skill, an employer confirming a title. INVENTORY, not evidence: the value remains whatever its `provenance` says, and a vouched self-assertion is still self-asserted. Folding a vouch into `provenance` would make it render as attested, which is the one thing provenance exists to prevent. Not disclosed with the value; a holder who wants a counterparty to see an endorsement presents the credential itself. Absent when there are none.
|
|
1126
|
+
*
|
|
1127
|
+
* @maxItems 64
|
|
1128
|
+
*/
|
|
1129
|
+
endorsements?: string[];
|
|
1090
1130
|
version: Version_PersonaV0_1;
|
|
1091
1131
|
/**
|
|
1092
1132
|
* Earlier versions of this attribute the maintainer still holds, and why. A maintainer that keeps a replaced value to serve `pinVersion` MUST list it here: a holder who overwrote a value may reasonably believe it gone, and this is how they learn otherwise. Values are not included — the holder reads one through the profile that pins it, or removes it with persona/attribute/purge-version. Absent when none are held.
|
|
@@ -3348,6 +3388,15 @@ export interface Profile {
|
|
|
3348
3388
|
* @maxItems 256
|
|
3349
3389
|
*/
|
|
3350
3390
|
entries: ProfileEntry[];
|
|
3391
|
+
reach?: FaceReach;
|
|
3392
|
+
/**
|
|
3393
|
+
* `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`.
|
|
3394
|
+
*/
|
|
3395
|
+
status?: "active" | "retired";
|
|
3396
|
+
/**
|
|
3397
|
+
* When the face was retired. Present exactly when `status` is `retired`.
|
|
3398
|
+
*/
|
|
3399
|
+
retiredAt?: string;
|
|
3351
3400
|
/**
|
|
3352
3401
|
* 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
3402
|
*
|