@openvtc/trust-tasks 0.16.9 → 0.16.10
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 +149 -0
- package/dist/_shared/components.d.ts +204 -5
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -1
- package/dist/persona/_shared/0.1/persona-record.d.ts +22 -0
- package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -0
- package/dist/persona/_shared/0.1/persona-record.js +6 -0
- package/dist/persona/_shared/0.1/persona-record.js.map +1 -0
- package/dist/persona/attribute/delete/1.0/payload.d.ts +351 -0
- package/dist/persona/attribute/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/delete/1.0/payload.js +188 -0
- package/dist/persona/attribute/delete/1.0/payload.js.map +1 -0
- package/dist/persona/attribute/list/1.0/payload.d.ts +895 -0
- package/dist/persona/attribute/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/list/1.0/payload.js +532 -0
- package/dist/persona/attribute/list/1.0/payload.js.map +1 -0
- package/dist/persona/attribute/put/1.0/payload.d.ts +829 -0
- package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/put/1.0/payload.js +487 -0
- package/dist/persona/attribute/put/1.0/payload.js.map +1 -0
- package/dist/persona/binding/get/1.0/payload.d.ts +382 -0
- package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/binding/get/1.0/payload.js +206 -0
- package/dist/persona/binding/get/1.0/payload.js.map +1 -0
- package/dist/persona/binding/list/1.0/payload.d.ts +387 -0
- package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/binding/list/1.0/payload.js +210 -0
- package/dist/persona/binding/list/1.0/payload.js.map +1 -0
- package/dist/persona/binding/set/1.0/payload.d.ts +545 -0
- package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -0
- package/dist/persona/binding/set/1.0/payload.js +302 -0
- package/dist/persona/binding/set/1.0/payload.js.map +1 -0
- package/dist/persona/contact/delete/1.0/payload.d.ts +313 -0
- package/dist/persona/contact/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/delete/1.0/payload.js +174 -0
- package/dist/persona/contact/delete/1.0/payload.js.map +1 -0
- package/dist/persona/contact/get/1.0/payload.d.ts +1027 -0
- package/dist/persona/contact/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/get/1.0/payload.js +606 -0
- package/dist/persona/contact/get/1.0/payload.js.map +1 -0
- package/dist/persona/contact/list/1.0/payload.d.ts +490 -0
- package/dist/persona/contact/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/list/1.0/payload.js +262 -0
- package/dist/persona/contact/list/1.0/payload.js.map +1 -0
- package/dist/persona/contact/put/1.0/payload.d.ts +885 -0
- package/dist/persona/contact/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/put/1.0/payload.js +518 -0
- package/dist/persona/contact/put/1.0/payload.js.map +1 -0
- package/dist/persona/correlation/analyze/1.0/payload.d.ts +648 -0
- package/dist/persona/correlation/analyze/1.0/payload.d.ts.map +1 -0
- package/dist/persona/correlation/analyze/1.0/payload.js +338 -0
- package/dist/persona/correlation/analyze/1.0/payload.js.map +1 -0
- package/dist/persona/disclosure/history/1.0/payload.d.ts +639 -0
- package/dist/persona/disclosure/history/1.0/payload.d.ts.map +1 -0
- package/dist/persona/disclosure/history/1.0/payload.js +339 -0
- package/dist/persona/disclosure/history/1.0/payload.js.map +1 -0
- package/dist/persona/disclosure/present/1.0/payload.d.ts +400 -0
- package/dist/persona/disclosure/present/1.0/payload.d.ts.map +1 -0
- package/dist/persona/disclosure/present/1.0/payload.js +211 -0
- package/dist/persona/disclosure/present/1.0/payload.js.map +1 -0
- package/dist/persona/disclosure/preview/1.0/payload.d.ts +858 -0
- package/dist/persona/disclosure/preview/1.0/payload.d.ts.map +1 -0
- package/dist/persona/disclosure/preview/1.0/payload.js +480 -0
- package/dist/persona/disclosure/preview/1.0/payload.js.map +1 -0
- package/dist/persona/local/binding/set/1.0/payload.d.ts +394 -0
- package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/binding/set/1.0/payload.js +226 -0
- package/dist/persona/local/binding/set/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/delete/1.0/payload.d.ts +311 -0
- package/dist/persona/local/profile/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/delete/1.0/payload.js +173 -0
- package/dist/persona/local/profile/delete/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/get/1.0/payload.d.ts +368 -0
- package/dist/persona/local/profile/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/get/1.0/payload.js +210 -0
- package/dist/persona/local/profile/get/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/list/1.0/payload.d.ts +387 -0
- package/dist/persona/local/profile/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/list/1.0/payload.js +214 -0
- package/dist/persona/local/profile/list/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/put/1.0/payload.d.ts +545 -0
- package/dist/persona/local/profile/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/put/1.0/payload.js +315 -0
- package/dist/persona/local/profile/put/1.0/payload.js.map +1 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts +350 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/delete/1.0/payload.js +189 -0
- package/dist/persona/profile/delete/1.0/payload.js.map +1 -0
- package/dist/persona/profile/get/1.0/payload.d.ts +1307 -0
- package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/get/1.0/payload.js +804 -0
- package/dist/persona/profile/get/1.0/payload.js.map +1 -0
- package/dist/persona/profile/list/1.0/payload.d.ts +1120 -0
- package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/list/1.0/payload.js +680 -0
- package/dist/persona/profile/list/1.0/payload.js.map +1 -0
- package/dist/persona/profile/put/1.0/payload.d.ts +1115 -0
- package/dist/persona/profile/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/put/1.0/payload.js +675 -0
- package/dist/persona/profile/put/1.0/payload.js.map +1 -0
- package/dist/persona/renderers/list/1.0/payload.d.ts +362 -0
- package/dist/persona/renderers/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/renderers/list/1.0/payload.js +197 -0
- package/dist/persona/renderers/list/1.0/payload.js.map +1 -0
- package/dist/rooms/owner/claim/0.1/payload.d.ts +391 -0
- package/dist/rooms/owner/claim/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/claim/0.1/payload.js +214 -0
- package/dist/rooms/owner/claim/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/transfer/0.1/payload.d.ts +391 -0
- package/dist/rooms/owner/transfer/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/transfer/0.1/payload.js +214 -0
- package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -0
- package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
- package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +211 -5
- package/src/index.ts +27 -0
- package/src/persona/_shared/0.1/persona-record.ts +23 -0
- package/src/persona/attribute/delete/1.0/payload.ts +238 -0
- package/src/persona/attribute/list/1.0/payload.ts +590 -0
- package/src/persona/attribute/put/1.0/payload.ts +559 -0
- package/src/persona/binding/get/1.0/payload.ts +257 -0
- package/src/persona/binding/list/1.0/payload.ts +260 -0
- package/src/persona/binding/set/1.0/payload.ts +370 -0
- package/src/persona/contact/delete/1.0/payload.ts +216 -0
- package/src/persona/contact/get/1.0/payload.ts +662 -0
- package/src/persona/contact/list/1.0/payload.ts +323 -0
- package/src/persona/contact/put/1.0/payload.ts +580 -0
- package/src/persona/correlation/analyze/1.0/payload.ts +466 -0
- package/src/persona/disclosure/history/1.0/payload.ts +415 -0
- package/src/persona/disclosure/present/1.0/payload.ts +274 -0
- package/src/persona/disclosure/preview/1.0/payload.ts +597 -0
- package/src/persona/local/binding/set/1.0/payload.ts +267 -0
- package/src/persona/local/profile/delete/1.0/payload.ts +215 -0
- package/src/persona/local/profile/get/1.0/payload.ts +251 -0
- package/src/persona/local/profile/list/1.0/payload.ts +260 -0
- package/src/persona/local/profile/put/1.0/payload.ts +373 -0
- package/src/persona/profile/delete/1.0/payload.ts +236 -0
- package/src/persona/profile/get/1.0/payload.ts +846 -0
- package/src/persona/profile/list/1.0/payload.ts +723 -0
- package/src/persona/profile/put/1.0/payload.ts +741 -0
- package/src/persona/renderers/list/1.0/payload.ts +248 -0
- package/src/rooms/owner/claim/0.1/payload.ts +268 -0
- package/src/rooms/owner/transfer/0.1/payload.ts +268 -0
- package/src/vta/_shared/0.1/app-state-record.ts +1 -1
- package/src/vta/app-state/delete/1.0/payload.ts +1 -1
- package/src/vta/app-state/get/1.0/payload.ts +1 -1
- package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
- package/src/vta/app-state/list/1.0/payload.ts +1 -1
- package/src/vta/app-state/put/1.0/payload.ts +1 -1
- package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/profile/delete/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ExpectedVersion_PersonaV0_1 as ExpectedVersion, Ext, Ulid } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Remove one profile. Refused by default while a persona is still bound to it, because a bound persona whose profile vanished would present nothing without the holder having said so.
|
|
8
|
+
*/
|
|
9
|
+
export interface PersonaProfileDeletePayload {
|
|
10
|
+
profileId: Ulid;
|
|
11
|
+
/**
|
|
12
|
+
* When false (the default) a bound profile is refused and the error names the bound personas. When true the profile is removed and every binding to it is cleared, leaving those personas with no profile — which is a legal state, and one the holder is told about rather than discovering. Never the default: a persona that silently stopped presenting anything is a failure a holder finds out about from the other side.
|
|
13
|
+
*/
|
|
14
|
+
unbind?: boolean;
|
|
15
|
+
expectedVersion?: ExpectedVersion;
|
|
16
|
+
ext?: Ext;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Success response to persona/profile/delete. Type https://trusttasks.org/spec/persona/profile/delete/1.0#response. Deleting an absent profile is a success carrying existed: false, which is what makes a repeated delete converge.
|
|
20
|
+
*/
|
|
21
|
+
export interface PersonaProfileDeleteResponsePayload {
|
|
22
|
+
profileId: Ulid;
|
|
23
|
+
/**
|
|
24
|
+
* False when no live profile was present. A repeat delete returns false and deliberately takes no new version, so watchers never observe a change that did not happen.
|
|
25
|
+
*/
|
|
26
|
+
existed: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Persona DIDs whose bindings were cleared. Present only when `unbind` was true and something was cleared — a holder is owed the list of which personas their one action left presenting nothing.
|
|
29
|
+
*
|
|
30
|
+
* @maxItems 256
|
|
31
|
+
*/
|
|
32
|
+
unboundPersonas?: string[];
|
|
33
|
+
ext?: Ext;
|
|
34
|
+
}
|
|
35
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
36
|
+
export type { ExpectedVersion, Ext, Ulid };
|
|
37
|
+
/** Trust Task type URI. */
|
|
38
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/persona/profile/delete/1.0";
|
|
39
|
+
/** Stable alias for this specification's request payload shape. */
|
|
40
|
+
export type Payload = PersonaProfileDeletePayload;
|
|
41
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
42
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/persona/profile/delete/1.0#response";
|
|
43
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
44
|
+
export type Response = PersonaProfileDeleteResponsePayload;
|
|
45
|
+
/**
|
|
46
|
+
* This specification's payload schema, as a value.
|
|
47
|
+
*
|
|
48
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
49
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
50
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
51
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
52
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
53
|
+
*/
|
|
54
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
55
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
56
|
+
readonly $id: "https://trusttasks.org/spec/persona/profile/delete/1.0";
|
|
57
|
+
readonly title: "Persona Profile Delete — payload";
|
|
58
|
+
readonly description: "Remove one profile. Refused by default while a persona is still bound to it, because a bound persona whose profile vanished would present nothing without the holder having said so.";
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly additionalProperties: false;
|
|
61
|
+
readonly required: readonly ["profileId"];
|
|
62
|
+
readonly properties: {
|
|
63
|
+
readonly profileId: {
|
|
64
|
+
readonly $ref: "#/$defs/Ulid";
|
|
65
|
+
};
|
|
66
|
+
readonly unbind: {
|
|
67
|
+
readonly type: "boolean";
|
|
68
|
+
readonly default: false;
|
|
69
|
+
readonly description: "When false (the default) a bound profile is refused and the error names the bound personas. When true the profile is removed and every binding to it is cleared, leaving those personas with no profile — which is a legal state, and one the holder is told about rather than discovering. Never the default: a persona that silently stopped presenting anything is a failure a holder finds out about from the other side.";
|
|
70
|
+
};
|
|
71
|
+
readonly expectedVersion: {
|
|
72
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
73
|
+
};
|
|
74
|
+
readonly ext: {
|
|
75
|
+
readonly $ref: "#/$defs/Ext";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly $defs: {
|
|
79
|
+
readonly Response: {
|
|
80
|
+
readonly $anchor: "response";
|
|
81
|
+
readonly title: "Persona Profile Delete — response payload";
|
|
82
|
+
readonly description: "Success response to persona/profile/delete. Type https://trusttasks.org/spec/persona/profile/delete/1.0#response. Deleting an absent profile is a success carrying existed: false, which is what makes a repeated delete converge.";
|
|
83
|
+
readonly type: "object";
|
|
84
|
+
readonly additionalProperties: false;
|
|
85
|
+
readonly required: readonly ["profileId", "existed"];
|
|
86
|
+
readonly properties: {
|
|
87
|
+
readonly profileId: {
|
|
88
|
+
readonly $ref: "#/$defs/Ulid";
|
|
89
|
+
};
|
|
90
|
+
readonly existed: {
|
|
91
|
+
readonly type: "boolean";
|
|
92
|
+
readonly description: "False when no live profile was present. A repeat delete returns false and deliberately takes no new version, so watchers never observe a change that did not happen.";
|
|
93
|
+
};
|
|
94
|
+
readonly unboundPersonas: {
|
|
95
|
+
readonly type: "array";
|
|
96
|
+
readonly maxItems: 256;
|
|
97
|
+
readonly items: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
readonly minLength: 1;
|
|
100
|
+
};
|
|
101
|
+
readonly description: "Persona DIDs whose bindings were cleared. Present only when `unbind` was true and something was cleared — a holder is owed the list of which personas their one action left presenting nothing.";
|
|
102
|
+
};
|
|
103
|
+
readonly ext: {
|
|
104
|
+
readonly $ref: "#/$defs/Ext";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly Ext: {
|
|
109
|
+
readonly title: "Ext";
|
|
110
|
+
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.";
|
|
111
|
+
readonly type: "object";
|
|
112
|
+
readonly minProperties: 1;
|
|
113
|
+
readonly additionalProperties: true;
|
|
114
|
+
readonly propertyNames: {
|
|
115
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly Ulid: {
|
|
119
|
+
readonly title: "Ulid";
|
|
120
|
+
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.";
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
123
|
+
};
|
|
124
|
+
readonly ExpectedVersion: {
|
|
125
|
+
readonly title: "ExpectedVersion";
|
|
126
|
+
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.";
|
|
127
|
+
readonly type: "integer";
|
|
128
|
+
readonly minimum: 0;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
133
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
134
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
135
|
+
readonly $ref: "#/$defs/Response";
|
|
136
|
+
readonly $defs: {
|
|
137
|
+
readonly Response: {
|
|
138
|
+
readonly $anchor: "response";
|
|
139
|
+
readonly title: "Persona Profile Delete — response payload";
|
|
140
|
+
readonly description: "Success response to persona/profile/delete. Type https://trusttasks.org/spec/persona/profile/delete/1.0#response. Deleting an absent profile is a success carrying existed: false, which is what makes a repeated delete converge.";
|
|
141
|
+
readonly type: "object";
|
|
142
|
+
readonly additionalProperties: false;
|
|
143
|
+
readonly required: readonly ["profileId", "existed"];
|
|
144
|
+
readonly properties: {
|
|
145
|
+
readonly profileId: {
|
|
146
|
+
readonly $ref: "#/$defs/Ulid";
|
|
147
|
+
};
|
|
148
|
+
readonly existed: {
|
|
149
|
+
readonly type: "boolean";
|
|
150
|
+
readonly description: "False when no live profile was present. A repeat delete returns false and deliberately takes no new version, so watchers never observe a change that did not happen.";
|
|
151
|
+
};
|
|
152
|
+
readonly unboundPersonas: {
|
|
153
|
+
readonly type: "array";
|
|
154
|
+
readonly maxItems: 256;
|
|
155
|
+
readonly items: {
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly minLength: 1;
|
|
158
|
+
};
|
|
159
|
+
readonly description: "Persona DIDs whose bindings were cleared. Present only when `unbind` was true and something was cleared — a holder is owed the list of which personas their one action left presenting nothing.";
|
|
160
|
+
};
|
|
161
|
+
readonly ext: {
|
|
162
|
+
readonly $ref: "#/$defs/Ext";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly Ext: {
|
|
167
|
+
readonly title: "Ext";
|
|
168
|
+
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.";
|
|
169
|
+
readonly type: "object";
|
|
170
|
+
readonly minProperties: 1;
|
|
171
|
+
readonly additionalProperties: true;
|
|
172
|
+
readonly propertyNames: {
|
|
173
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly Ulid: {
|
|
177
|
+
readonly title: "Ulid";
|
|
178
|
+
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.";
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
181
|
+
};
|
|
182
|
+
readonly ExpectedVersion: {
|
|
183
|
+
readonly title: "ExpectedVersion";
|
|
184
|
+
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.";
|
|
185
|
+
readonly type: "integer";
|
|
186
|
+
readonly minimum: 0;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
192
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
193
|
+
* per-specification and cannot be derived from the document alone, and
|
|
194
|
+
* item 2 needs the schema this carries.
|
|
195
|
+
*/
|
|
196
|
+
export declare const SPEC: {
|
|
197
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/profile/delete/1.0";
|
|
198
|
+
readonly isBearer: false;
|
|
199
|
+
readonly isProofRequired: true;
|
|
200
|
+
readonly isRecipientRequired: true;
|
|
201
|
+
readonly isIssuedAtRequired: true;
|
|
202
|
+
readonly payloadSchema: {
|
|
203
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
204
|
+
readonly $id: "https://trusttasks.org/spec/persona/profile/delete/1.0";
|
|
205
|
+
readonly title: "Persona Profile Delete — payload";
|
|
206
|
+
readonly description: "Remove one profile. Refused by default while a persona is still bound to it, because a bound persona whose profile vanished would present nothing without the holder having said so.";
|
|
207
|
+
readonly type: "object";
|
|
208
|
+
readonly additionalProperties: false;
|
|
209
|
+
readonly required: readonly ["profileId"];
|
|
210
|
+
readonly properties: {
|
|
211
|
+
readonly profileId: {
|
|
212
|
+
readonly $ref: "#/$defs/Ulid";
|
|
213
|
+
};
|
|
214
|
+
readonly unbind: {
|
|
215
|
+
readonly type: "boolean";
|
|
216
|
+
readonly default: false;
|
|
217
|
+
readonly description: "When false (the default) a bound profile is refused and the error names the bound personas. When true the profile is removed and every binding to it is cleared, leaving those personas with no profile — which is a legal state, and one the holder is told about rather than discovering. Never the default: a persona that silently stopped presenting anything is a failure a holder finds out about from the other side.";
|
|
218
|
+
};
|
|
219
|
+
readonly expectedVersion: {
|
|
220
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
221
|
+
};
|
|
222
|
+
readonly ext: {
|
|
223
|
+
readonly $ref: "#/$defs/Ext";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly $defs: {
|
|
227
|
+
readonly Response: {
|
|
228
|
+
readonly $anchor: "response";
|
|
229
|
+
readonly title: "Persona Profile Delete — response payload";
|
|
230
|
+
readonly description: "Success response to persona/profile/delete. Type https://trusttasks.org/spec/persona/profile/delete/1.0#response. Deleting an absent profile is a success carrying existed: false, which is what makes a repeated delete converge.";
|
|
231
|
+
readonly type: "object";
|
|
232
|
+
readonly additionalProperties: false;
|
|
233
|
+
readonly required: readonly ["profileId", "existed"];
|
|
234
|
+
readonly properties: {
|
|
235
|
+
readonly profileId: {
|
|
236
|
+
readonly $ref: "#/$defs/Ulid";
|
|
237
|
+
};
|
|
238
|
+
readonly existed: {
|
|
239
|
+
readonly type: "boolean";
|
|
240
|
+
readonly description: "False when no live profile was present. A repeat delete returns false and deliberately takes no new version, so watchers never observe a change that did not happen.";
|
|
241
|
+
};
|
|
242
|
+
readonly unboundPersonas: {
|
|
243
|
+
readonly type: "array";
|
|
244
|
+
readonly maxItems: 256;
|
|
245
|
+
readonly items: {
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
readonly minLength: 1;
|
|
248
|
+
};
|
|
249
|
+
readonly description: "Persona DIDs whose bindings were cleared. Present only when `unbind` was true and something was cleared — a holder is owed the list of which personas their one action left presenting nothing.";
|
|
250
|
+
};
|
|
251
|
+
readonly ext: {
|
|
252
|
+
readonly $ref: "#/$defs/Ext";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
readonly Ext: {
|
|
257
|
+
readonly title: "Ext";
|
|
258
|
+
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.";
|
|
259
|
+
readonly type: "object";
|
|
260
|
+
readonly minProperties: 1;
|
|
261
|
+
readonly additionalProperties: true;
|
|
262
|
+
readonly propertyNames: {
|
|
263
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
readonly Ulid: {
|
|
267
|
+
readonly title: "Ulid";
|
|
268
|
+
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.";
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
271
|
+
};
|
|
272
|
+
readonly ExpectedVersion: {
|
|
273
|
+
readonly title: "ExpectedVersion";
|
|
274
|
+
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.";
|
|
275
|
+
readonly type: "integer";
|
|
276
|
+
readonly minimum: 0;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
283
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
284
|
+
* parties (§7.3 item 5).
|
|
285
|
+
*/
|
|
286
|
+
export declare const RESPONSE_SPEC: {
|
|
287
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/profile/delete/1.0#response";
|
|
288
|
+
readonly isBearer: false;
|
|
289
|
+
readonly isProofRequired: true;
|
|
290
|
+
readonly isRecipientRequired: true;
|
|
291
|
+
readonly isIssuedAtRequired: true;
|
|
292
|
+
readonly payloadSchema: {
|
|
293
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
294
|
+
readonly $ref: "#/$defs/Response";
|
|
295
|
+
readonly $defs: {
|
|
296
|
+
readonly Response: {
|
|
297
|
+
readonly $anchor: "response";
|
|
298
|
+
readonly title: "Persona Profile Delete — response payload";
|
|
299
|
+
readonly description: "Success response to persona/profile/delete. Type https://trusttasks.org/spec/persona/profile/delete/1.0#response. Deleting an absent profile is a success carrying existed: false, which is what makes a repeated delete converge.";
|
|
300
|
+
readonly type: "object";
|
|
301
|
+
readonly additionalProperties: false;
|
|
302
|
+
readonly required: readonly ["profileId", "existed"];
|
|
303
|
+
readonly properties: {
|
|
304
|
+
readonly profileId: {
|
|
305
|
+
readonly $ref: "#/$defs/Ulid";
|
|
306
|
+
};
|
|
307
|
+
readonly existed: {
|
|
308
|
+
readonly type: "boolean";
|
|
309
|
+
readonly description: "False when no live profile was present. A repeat delete returns false and deliberately takes no new version, so watchers never observe a change that did not happen.";
|
|
310
|
+
};
|
|
311
|
+
readonly unboundPersonas: {
|
|
312
|
+
readonly type: "array";
|
|
313
|
+
readonly maxItems: 256;
|
|
314
|
+
readonly items: {
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
readonly minLength: 1;
|
|
317
|
+
};
|
|
318
|
+
readonly description: "Persona DIDs whose bindings were cleared. Present only when `unbind` was true and something was cleared — a holder is owed the list of which personas their one action left presenting nothing.";
|
|
319
|
+
};
|
|
320
|
+
readonly ext: {
|
|
321
|
+
readonly $ref: "#/$defs/Ext";
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
readonly Ext: {
|
|
326
|
+
readonly title: "Ext";
|
|
327
|
+
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.";
|
|
328
|
+
readonly type: "object";
|
|
329
|
+
readonly minProperties: 1;
|
|
330
|
+
readonly additionalProperties: true;
|
|
331
|
+
readonly propertyNames: {
|
|
332
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
readonly Ulid: {
|
|
336
|
+
readonly title: "Ulid";
|
|
337
|
+
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.";
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
340
|
+
};
|
|
341
|
+
readonly ExpectedVersion: {
|
|
342
|
+
readonly title: "ExpectedVersion";
|
|
343
|
+
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.";
|
|
344
|
+
readonly type: "integer";
|
|
345
|
+
readonly minimum: 0;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/persona/profile/delete/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,2BAA2B,IAAI,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AAG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;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/profile/delete/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/persona/profile/delete/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/profile/delete/1.0#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/persona/profile/delete/1.0",
|
|
21
|
+
"title": "Persona Profile Delete — payload",
|
|
22
|
+
"description": "Remove one profile. Refused by default while a persona is still bound to it, because a bound persona whose profile vanished would present nothing without the holder having said so.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"profileId"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"profileId": {
|
|
30
|
+
"$ref": "#/$defs/Ulid"
|
|
31
|
+
},
|
|
32
|
+
"unbind": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"description": "When false (the default) a bound profile is refused and the error names the bound personas. When true the profile is removed and every binding to it is cleared, leaving those personas with no profile — which is a legal state, and one the holder is told about rather than discovering. Never the default: a persona that silently stopped presenting anything is a failure a holder finds out about from the other side."
|
|
36
|
+
},
|
|
37
|
+
"expectedVersion": {
|
|
38
|
+
"$ref": "#/$defs/ExpectedVersion"
|
|
39
|
+
},
|
|
40
|
+
"ext": {
|
|
41
|
+
"$ref": "#/$defs/Ext"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"$defs": {
|
|
45
|
+
"Response": {
|
|
46
|
+
"$anchor": "response",
|
|
47
|
+
"title": "Persona Profile Delete — response payload",
|
|
48
|
+
"description": "Success response to persona/profile/delete. Type https://trusttasks.org/spec/persona/profile/delete/1.0#response. Deleting an absent profile is a success carrying existed: false, which is what makes a repeated delete converge.",
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"required": [
|
|
52
|
+
"profileId",
|
|
53
|
+
"existed"
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"profileId": {
|
|
57
|
+
"$ref": "#/$defs/Ulid"
|
|
58
|
+
},
|
|
59
|
+
"existed": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "False when no live profile was present. A repeat delete returns false and deliberately takes no new version, so watchers never observe a change that did not happen."
|
|
62
|
+
},
|
|
63
|
+
"unboundPersonas": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"maxItems": 256,
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"minLength": 1
|
|
69
|
+
},
|
|
70
|
+
"description": "Persona DIDs whose bindings were cleared. Present only when `unbind` was true and something was cleared — a holder is owed the list of which personas their one action left presenting nothing."
|
|
71
|
+
},
|
|
72
|
+
"ext": {
|
|
73
|
+
"$ref": "#/$defs/Ext"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"Ext": {
|
|
78
|
+
"title": "Ext",
|
|
79
|
+
"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.",
|
|
80
|
+
"type": "object",
|
|
81
|
+
"minProperties": 1,
|
|
82
|
+
"additionalProperties": true,
|
|
83
|
+
"propertyNames": {
|
|
84
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"Ulid": {
|
|
88
|
+
"title": "Ulid",
|
|
89
|
+
"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.",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
92
|
+
},
|
|
93
|
+
"ExpectedVersion": {
|
|
94
|
+
"title": "ExpectedVersion",
|
|
95
|
+
"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.",
|
|
96
|
+
"type": "integer",
|
|
97
|
+
"minimum": 0
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
102
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
103
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
104
|
+
"$ref": "#/$defs/Response",
|
|
105
|
+
"$defs": {
|
|
106
|
+
"Response": {
|
|
107
|
+
"$anchor": "response",
|
|
108
|
+
"title": "Persona Profile Delete — response payload",
|
|
109
|
+
"description": "Success response to persona/profile/delete. Type https://trusttasks.org/spec/persona/profile/delete/1.0#response. Deleting an absent profile is a success carrying existed: false, which is what makes a repeated delete converge.",
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"required": [
|
|
113
|
+
"profileId",
|
|
114
|
+
"existed"
|
|
115
|
+
],
|
|
116
|
+
"properties": {
|
|
117
|
+
"profileId": {
|
|
118
|
+
"$ref": "#/$defs/Ulid"
|
|
119
|
+
},
|
|
120
|
+
"existed": {
|
|
121
|
+
"type": "boolean",
|
|
122
|
+
"description": "False when no live profile was present. A repeat delete returns false and deliberately takes no new version, so watchers never observe a change that did not happen."
|
|
123
|
+
},
|
|
124
|
+
"unboundPersonas": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"maxItems": 256,
|
|
127
|
+
"items": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1
|
|
130
|
+
},
|
|
131
|
+
"description": "Persona DIDs whose bindings were cleared. Present only when `unbind` was true and something was cleared — a holder is owed the list of which personas their one action left presenting nothing."
|
|
132
|
+
},
|
|
133
|
+
"ext": {
|
|
134
|
+
"$ref": "#/$defs/Ext"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"Ext": {
|
|
139
|
+
"title": "Ext",
|
|
140
|
+
"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.",
|
|
141
|
+
"type": "object",
|
|
142
|
+
"minProperties": 1,
|
|
143
|
+
"additionalProperties": true,
|
|
144
|
+
"propertyNames": {
|
|
145
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"Ulid": {
|
|
149
|
+
"title": "Ulid",
|
|
150
|
+
"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.",
|
|
151
|
+
"type": "string",
|
|
152
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
153
|
+
},
|
|
154
|
+
"ExpectedVersion": {
|
|
155
|
+
"title": "ExpectedVersion",
|
|
156
|
+
"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.",
|
|
157
|
+
"type": "integer",
|
|
158
|
+
"minimum": 0
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
164
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
165
|
+
* per-specification and cannot be derived from the document alone, and
|
|
166
|
+
* item 2 needs the schema this carries.
|
|
167
|
+
*/
|
|
168
|
+
export const SPEC = {
|
|
169
|
+
typeUri: TYPE_URI,
|
|
170
|
+
isBearer: false,
|
|
171
|
+
isProofRequired: true,
|
|
172
|
+
isRecipientRequired: true,
|
|
173
|
+
isIssuedAtRequired: true,
|
|
174
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
178
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
179
|
+
* parties (§7.3 item 5).
|
|
180
|
+
*/
|
|
181
|
+
export const RESPONSE_SPEC = {
|
|
182
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
183
|
+
isBearer: false,
|
|
184
|
+
isProofRequired: true,
|
|
185
|
+
isRecipientRequired: true,
|
|
186
|
+
isIssuedAtRequired: true,
|
|
187
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
188
|
+
};
|
|
189
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/persona/profile/delete/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsCH,2BAA2B;AAC3B,MAA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