@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,436 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/profile/retire/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ExpectedVersion_PersonaV0_1 as ExpectedVersion, Ext, Ulid, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Stop being a face everywhere, and keep it. The face is taken off every persona wearing it, left out of pickers and default listings, and cannot be worn until reinstated; its values and its disclosure history are kept. The reversible middle between 'not here' (a null persona/binding/set) and 'gone' (persona/profile/delete).
|
|
8
|
+
*/
|
|
9
|
+
export interface PersonaProfileRetirePayload {
|
|
10
|
+
/**
|
|
11
|
+
* A pool face, or a context-local one.
|
|
12
|
+
*/
|
|
13
|
+
profileId: Ulid;
|
|
14
|
+
/**
|
|
15
|
+
* The context a context-local face lives in. Omit for a pool face.
|
|
16
|
+
*/
|
|
17
|
+
contextId?: string;
|
|
18
|
+
expectedVersion?: ExpectedVersion;
|
|
19
|
+
ext?: Ext;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Success response to persona/profile/retire. Type https://trusttasks.org/spec/persona/profile/retire/1.0#response. Retiring a face already retired is a success that changes nothing and takes no new version, so a repeated retire converges.
|
|
23
|
+
*/
|
|
24
|
+
export interface PersonaProfileRetireResponsePayload {
|
|
25
|
+
profileId: Ulid;
|
|
26
|
+
version: Version;
|
|
27
|
+
retiredAt: string;
|
|
28
|
+
/**
|
|
29
|
+
* Where the face was worn and no longer is. Absent when it was worn nowhere.
|
|
30
|
+
*
|
|
31
|
+
* @maxItems 256
|
|
32
|
+
*/
|
|
33
|
+
unbound?: {
|
|
34
|
+
contextId: string;
|
|
35
|
+
personaDid: string;
|
|
36
|
+
}[];
|
|
37
|
+
ext?: Ext;
|
|
38
|
+
}
|
|
39
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
40
|
+
export type { ExpectedVersion, Ext, Ulid, Version };
|
|
41
|
+
/** Trust Task type URI. */
|
|
42
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/persona/profile/retire/1.0";
|
|
43
|
+
/** Stable alias for this specification's request payload shape. */
|
|
44
|
+
export type Payload = PersonaProfileRetirePayload;
|
|
45
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
46
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/persona/profile/retire/1.0#response";
|
|
47
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
48
|
+
export type Response = PersonaProfileRetireResponsePayload;
|
|
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/persona/profile/retire/1.0";
|
|
61
|
+
readonly title: "Persona Profile Retire — payload";
|
|
62
|
+
readonly description: "Stop being a face everywhere, and keep it. The face is taken off every persona wearing it, left out of pickers and default listings, and cannot be worn until reinstated; its values and its disclosure history are kept. The reversible middle between 'not here' (a null persona/binding/set) and 'gone' (persona/profile/delete).";
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly additionalProperties: false;
|
|
65
|
+
readonly required: readonly ["profileId"];
|
|
66
|
+
readonly properties: {
|
|
67
|
+
readonly profileId: {
|
|
68
|
+
readonly $ref: "#/$defs/Ulid";
|
|
69
|
+
readonly description: "A pool face, or a context-local one.";
|
|
70
|
+
};
|
|
71
|
+
readonly contextId: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly minLength: 1;
|
|
74
|
+
readonly description: "The context a context-local face lives in. Omit for a pool face.";
|
|
75
|
+
};
|
|
76
|
+
readonly expectedVersion: {
|
|
77
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
78
|
+
};
|
|
79
|
+
readonly ext: {
|
|
80
|
+
readonly $ref: "#/$defs/Ext";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly $defs: {
|
|
84
|
+
readonly Response: {
|
|
85
|
+
readonly $anchor: "response";
|
|
86
|
+
readonly title: "Persona Profile Retire — response payload";
|
|
87
|
+
readonly description: "Success response to persona/profile/retire. Type https://trusttasks.org/spec/persona/profile/retire/1.0#response. Retiring a face already retired is a success that changes nothing and takes no new version, so a repeated retire converges.";
|
|
88
|
+
readonly type: "object";
|
|
89
|
+
readonly additionalProperties: false;
|
|
90
|
+
readonly required: readonly ["profileId", "version", "retiredAt"];
|
|
91
|
+
readonly properties: {
|
|
92
|
+
readonly profileId: {
|
|
93
|
+
readonly $ref: "#/$defs/Ulid";
|
|
94
|
+
};
|
|
95
|
+
readonly version: {
|
|
96
|
+
readonly $ref: "#/$defs/Version";
|
|
97
|
+
};
|
|
98
|
+
readonly retiredAt: {
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
readonly format: "date-time";
|
|
101
|
+
};
|
|
102
|
+
readonly unbound: {
|
|
103
|
+
readonly type: "array";
|
|
104
|
+
readonly maxItems: 256;
|
|
105
|
+
readonly description: "Where the face was worn and no longer is. Absent when it was worn nowhere.";
|
|
106
|
+
readonly items: {
|
|
107
|
+
readonly type: "object";
|
|
108
|
+
readonly additionalProperties: false;
|
|
109
|
+
readonly required: readonly ["contextId", "personaDid"];
|
|
110
|
+
readonly properties: {
|
|
111
|
+
readonly contextId: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
readonly minLength: 1;
|
|
114
|
+
};
|
|
115
|
+
readonly personaDid: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
readonly minLength: 1;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
readonly ext: {
|
|
123
|
+
readonly $ref: "#/$defs/Ext";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly Ext: {
|
|
128
|
+
readonly title: "Ext";
|
|
129
|
+
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.";
|
|
130
|
+
readonly type: "object";
|
|
131
|
+
readonly minProperties: 1;
|
|
132
|
+
readonly additionalProperties: true;
|
|
133
|
+
readonly propertyNames: {
|
|
134
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
readonly Version: {
|
|
138
|
+
readonly title: "Version";
|
|
139
|
+
readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
|
|
140
|
+
readonly type: "integer";
|
|
141
|
+
readonly minimum: 1;
|
|
142
|
+
};
|
|
143
|
+
readonly Ulid: {
|
|
144
|
+
readonly title: "Ulid";
|
|
145
|
+
readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
148
|
+
};
|
|
149
|
+
readonly ExpectedVersion: {
|
|
150
|
+
readonly title: "ExpectedVersion";
|
|
151
|
+
readonly description: "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.";
|
|
152
|
+
readonly type: "integer";
|
|
153
|
+
readonly minimum: 0;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
158
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
159
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
160
|
+
readonly $ref: "#/$defs/Response";
|
|
161
|
+
readonly $defs: {
|
|
162
|
+
readonly Response: {
|
|
163
|
+
readonly $anchor: "response";
|
|
164
|
+
readonly title: "Persona Profile Retire — response payload";
|
|
165
|
+
readonly description: "Success response to persona/profile/retire. Type https://trusttasks.org/spec/persona/profile/retire/1.0#response. Retiring a face already retired is a success that changes nothing and takes no new version, so a repeated retire converges.";
|
|
166
|
+
readonly type: "object";
|
|
167
|
+
readonly additionalProperties: false;
|
|
168
|
+
readonly required: readonly ["profileId", "version", "retiredAt"];
|
|
169
|
+
readonly properties: {
|
|
170
|
+
readonly profileId: {
|
|
171
|
+
readonly $ref: "#/$defs/Ulid";
|
|
172
|
+
};
|
|
173
|
+
readonly version: {
|
|
174
|
+
readonly $ref: "#/$defs/Version";
|
|
175
|
+
};
|
|
176
|
+
readonly retiredAt: {
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
readonly format: "date-time";
|
|
179
|
+
};
|
|
180
|
+
readonly unbound: {
|
|
181
|
+
readonly type: "array";
|
|
182
|
+
readonly maxItems: 256;
|
|
183
|
+
readonly description: "Where the face was worn and no longer is. Absent when it was worn nowhere.";
|
|
184
|
+
readonly items: {
|
|
185
|
+
readonly type: "object";
|
|
186
|
+
readonly additionalProperties: false;
|
|
187
|
+
readonly required: readonly ["contextId", "personaDid"];
|
|
188
|
+
readonly properties: {
|
|
189
|
+
readonly contextId: {
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
readonly minLength: 1;
|
|
192
|
+
};
|
|
193
|
+
readonly personaDid: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
readonly minLength: 1;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
readonly ext: {
|
|
201
|
+
readonly $ref: "#/$defs/Ext";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
readonly Ext: {
|
|
206
|
+
readonly title: "Ext";
|
|
207
|
+
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.";
|
|
208
|
+
readonly type: "object";
|
|
209
|
+
readonly minProperties: 1;
|
|
210
|
+
readonly additionalProperties: true;
|
|
211
|
+
readonly propertyNames: {
|
|
212
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
readonly Version: {
|
|
216
|
+
readonly title: "Version";
|
|
217
|
+
readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
|
|
218
|
+
readonly type: "integer";
|
|
219
|
+
readonly minimum: 1;
|
|
220
|
+
};
|
|
221
|
+
readonly Ulid: {
|
|
222
|
+
readonly title: "Ulid";
|
|
223
|
+
readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
226
|
+
};
|
|
227
|
+
readonly ExpectedVersion: {
|
|
228
|
+
readonly title: "ExpectedVersion";
|
|
229
|
+
readonly description: "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.";
|
|
230
|
+
readonly type: "integer";
|
|
231
|
+
readonly minimum: 0;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
237
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
238
|
+
* per-specification and cannot be derived from the document alone, and
|
|
239
|
+
* item 2 needs the schema this carries.
|
|
240
|
+
*/
|
|
241
|
+
export declare const SPEC: {
|
|
242
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/profile/retire/1.0";
|
|
243
|
+
readonly isBearer: false;
|
|
244
|
+
readonly isProofRequired: true;
|
|
245
|
+
readonly isRecipientRequired: true;
|
|
246
|
+
readonly isIssuedAtRequired: true;
|
|
247
|
+
readonly payloadSchema: {
|
|
248
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
249
|
+
readonly $id: "https://trusttasks.org/spec/persona/profile/retire/1.0";
|
|
250
|
+
readonly title: "Persona Profile Retire — payload";
|
|
251
|
+
readonly description: "Stop being a face everywhere, and keep it. The face is taken off every persona wearing it, left out of pickers and default listings, and cannot be worn until reinstated; its values and its disclosure history are kept. The reversible middle between 'not here' (a null persona/binding/set) and 'gone' (persona/profile/delete).";
|
|
252
|
+
readonly type: "object";
|
|
253
|
+
readonly additionalProperties: false;
|
|
254
|
+
readonly required: readonly ["profileId"];
|
|
255
|
+
readonly properties: {
|
|
256
|
+
readonly profileId: {
|
|
257
|
+
readonly $ref: "#/$defs/Ulid";
|
|
258
|
+
readonly description: "A pool face, or a context-local one.";
|
|
259
|
+
};
|
|
260
|
+
readonly contextId: {
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
readonly minLength: 1;
|
|
263
|
+
readonly description: "The context a context-local face lives in. Omit for a pool face.";
|
|
264
|
+
};
|
|
265
|
+
readonly expectedVersion: {
|
|
266
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
267
|
+
};
|
|
268
|
+
readonly ext: {
|
|
269
|
+
readonly $ref: "#/$defs/Ext";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
readonly $defs: {
|
|
273
|
+
readonly Response: {
|
|
274
|
+
readonly $anchor: "response";
|
|
275
|
+
readonly title: "Persona Profile Retire — response payload";
|
|
276
|
+
readonly description: "Success response to persona/profile/retire. Type https://trusttasks.org/spec/persona/profile/retire/1.0#response. Retiring a face already retired is a success that changes nothing and takes no new version, so a repeated retire converges.";
|
|
277
|
+
readonly type: "object";
|
|
278
|
+
readonly additionalProperties: false;
|
|
279
|
+
readonly required: readonly ["profileId", "version", "retiredAt"];
|
|
280
|
+
readonly properties: {
|
|
281
|
+
readonly profileId: {
|
|
282
|
+
readonly $ref: "#/$defs/Ulid";
|
|
283
|
+
};
|
|
284
|
+
readonly version: {
|
|
285
|
+
readonly $ref: "#/$defs/Version";
|
|
286
|
+
};
|
|
287
|
+
readonly retiredAt: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
readonly format: "date-time";
|
|
290
|
+
};
|
|
291
|
+
readonly unbound: {
|
|
292
|
+
readonly type: "array";
|
|
293
|
+
readonly maxItems: 256;
|
|
294
|
+
readonly description: "Where the face was worn and no longer is. Absent when it was worn nowhere.";
|
|
295
|
+
readonly items: {
|
|
296
|
+
readonly type: "object";
|
|
297
|
+
readonly additionalProperties: false;
|
|
298
|
+
readonly required: readonly ["contextId", "personaDid"];
|
|
299
|
+
readonly properties: {
|
|
300
|
+
readonly contextId: {
|
|
301
|
+
readonly type: "string";
|
|
302
|
+
readonly minLength: 1;
|
|
303
|
+
};
|
|
304
|
+
readonly personaDid: {
|
|
305
|
+
readonly type: "string";
|
|
306
|
+
readonly minLength: 1;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly ext: {
|
|
312
|
+
readonly $ref: "#/$defs/Ext";
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
readonly Ext: {
|
|
317
|
+
readonly title: "Ext";
|
|
318
|
+
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.";
|
|
319
|
+
readonly type: "object";
|
|
320
|
+
readonly minProperties: 1;
|
|
321
|
+
readonly additionalProperties: true;
|
|
322
|
+
readonly propertyNames: {
|
|
323
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly Version: {
|
|
327
|
+
readonly title: "Version";
|
|
328
|
+
readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
|
|
329
|
+
readonly type: "integer";
|
|
330
|
+
readonly minimum: 1;
|
|
331
|
+
};
|
|
332
|
+
readonly Ulid: {
|
|
333
|
+
readonly title: "Ulid";
|
|
334
|
+
readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
337
|
+
};
|
|
338
|
+
readonly ExpectedVersion: {
|
|
339
|
+
readonly title: "ExpectedVersion";
|
|
340
|
+
readonly description: "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.";
|
|
341
|
+
readonly type: "integer";
|
|
342
|
+
readonly minimum: 0;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
349
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
350
|
+
* parties (§7.3 item 5).
|
|
351
|
+
*/
|
|
352
|
+
export declare const RESPONSE_SPEC: {
|
|
353
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/profile/retire/1.0#response";
|
|
354
|
+
readonly isBearer: false;
|
|
355
|
+
readonly isProofRequired: true;
|
|
356
|
+
readonly isRecipientRequired: true;
|
|
357
|
+
readonly isIssuedAtRequired: true;
|
|
358
|
+
readonly payloadSchema: {
|
|
359
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
360
|
+
readonly $ref: "#/$defs/Response";
|
|
361
|
+
readonly $defs: {
|
|
362
|
+
readonly Response: {
|
|
363
|
+
readonly $anchor: "response";
|
|
364
|
+
readonly title: "Persona Profile Retire — response payload";
|
|
365
|
+
readonly description: "Success response to persona/profile/retire. Type https://trusttasks.org/spec/persona/profile/retire/1.0#response. Retiring a face already retired is a success that changes nothing and takes no new version, so a repeated retire converges.";
|
|
366
|
+
readonly type: "object";
|
|
367
|
+
readonly additionalProperties: false;
|
|
368
|
+
readonly required: readonly ["profileId", "version", "retiredAt"];
|
|
369
|
+
readonly properties: {
|
|
370
|
+
readonly profileId: {
|
|
371
|
+
readonly $ref: "#/$defs/Ulid";
|
|
372
|
+
};
|
|
373
|
+
readonly version: {
|
|
374
|
+
readonly $ref: "#/$defs/Version";
|
|
375
|
+
};
|
|
376
|
+
readonly retiredAt: {
|
|
377
|
+
readonly type: "string";
|
|
378
|
+
readonly format: "date-time";
|
|
379
|
+
};
|
|
380
|
+
readonly unbound: {
|
|
381
|
+
readonly type: "array";
|
|
382
|
+
readonly maxItems: 256;
|
|
383
|
+
readonly description: "Where the face was worn and no longer is. Absent when it was worn nowhere.";
|
|
384
|
+
readonly items: {
|
|
385
|
+
readonly type: "object";
|
|
386
|
+
readonly additionalProperties: false;
|
|
387
|
+
readonly required: readonly ["contextId", "personaDid"];
|
|
388
|
+
readonly properties: {
|
|
389
|
+
readonly contextId: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
readonly minLength: 1;
|
|
392
|
+
};
|
|
393
|
+
readonly personaDid: {
|
|
394
|
+
readonly type: "string";
|
|
395
|
+
readonly minLength: 1;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
readonly ext: {
|
|
401
|
+
readonly $ref: "#/$defs/Ext";
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
readonly Ext: {
|
|
406
|
+
readonly title: "Ext";
|
|
407
|
+
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.";
|
|
408
|
+
readonly type: "object";
|
|
409
|
+
readonly minProperties: 1;
|
|
410
|
+
readonly additionalProperties: true;
|
|
411
|
+
readonly propertyNames: {
|
|
412
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
readonly Version: {
|
|
416
|
+
readonly title: "Version";
|
|
417
|
+
readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
|
|
418
|
+
readonly type: "integer";
|
|
419
|
+
readonly minimum: 1;
|
|
420
|
+
};
|
|
421
|
+
readonly Ulid: {
|
|
422
|
+
readonly title: "Ulid";
|
|
423
|
+
readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
|
|
424
|
+
readonly type: "string";
|
|
425
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
426
|
+
};
|
|
427
|
+
readonly ExpectedVersion: {
|
|
428
|
+
readonly title: "ExpectedVersion";
|
|
429
|
+
readonly description: "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.";
|
|
430
|
+
readonly type: "integer";
|
|
431
|
+
readonly minimum: 0;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/persona/profile/retire/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,2BAA2B,IAAI,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAGnJ;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACpB,EAAE,CAAC;IACJ,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAEpD,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAElD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC;AAE5G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,mCAAmC,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmF1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|