@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,351 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/attribute/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 attribute from the holder's pool. Refused by default while any profile still references it, because a silent removal would change what those profiles present without the holder having said so.
|
|
8
|
+
*/
|
|
9
|
+
export interface PersonaAttributeDeletePayload {
|
|
10
|
+
attributeId: Ulid;
|
|
11
|
+
/**
|
|
12
|
+
* When false (the default) a referenced attribute is refused, and the error names the referring profiles so the holder can decide. When true the attribute is removed and every referring profile entry is removed with it. Cascade is the destructive option and is therefore never the default: deleting one fact and silently changing what three profiles disclose is exactly the surprise this family exists to prevent.
|
|
13
|
+
*/
|
|
14
|
+
cascade?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Optional precondition, so a delete cannot race a concurrent edit the holder has not seen.
|
|
17
|
+
*/
|
|
18
|
+
expectedVersion?: ExpectedVersion;
|
|
19
|
+
ext?: Ext;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Success response to persona/attribute/delete. Type https://trusttasks.org/spec/persona/attribute/delete/1.0#response. Deleting an attribute that is already absent is a success carrying `existed: false`, which is what makes a repeated delete converge.
|
|
23
|
+
*/
|
|
24
|
+
export interface PersonaAttributeDeleteResponsePayload {
|
|
25
|
+
attributeId: Ulid;
|
|
26
|
+
/**
|
|
27
|
+
* False when no live attribute was present. A repeat delete returns false and deliberately does NOT take a new counter value — had it done so, every consumer watching the store would see a change that did not happen, and delete could not be safely retried.
|
|
28
|
+
*/
|
|
29
|
+
existed: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Profiles whose entries were removed by a cascading delete. Present only when `cascade` was true and something was removed; a holder is owed the list of what their one action changed.
|
|
32
|
+
*
|
|
33
|
+
* @maxItems 256
|
|
34
|
+
*/
|
|
35
|
+
removedFromProfiles?: Ulid[];
|
|
36
|
+
ext?: Ext;
|
|
37
|
+
}
|
|
38
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
39
|
+
export type { ExpectedVersion, Ext, Ulid };
|
|
40
|
+
/** Trust Task type URI. */
|
|
41
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/persona/attribute/delete/1.0";
|
|
42
|
+
/** Stable alias for this specification's request payload shape. */
|
|
43
|
+
export type Payload = PersonaAttributeDeletePayload;
|
|
44
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
45
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/persona/attribute/delete/1.0#response";
|
|
46
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
47
|
+
export type Response = PersonaAttributeDeleteResponsePayload;
|
|
48
|
+
/**
|
|
49
|
+
* This specification's payload schema, as a value.
|
|
50
|
+
*
|
|
51
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
52
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
53
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
54
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
55
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
56
|
+
*/
|
|
57
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
58
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
59
|
+
readonly $id: "https://trusttasks.org/spec/persona/attribute/delete/1.0";
|
|
60
|
+
readonly title: "Persona Attribute Delete — payload";
|
|
61
|
+
readonly description: "Remove one attribute from the holder's pool. Refused by default while any profile still references it, because a silent removal would change what those profiles present without the holder having said so.";
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly additionalProperties: false;
|
|
64
|
+
readonly required: readonly ["attributeId"];
|
|
65
|
+
readonly properties: {
|
|
66
|
+
readonly attributeId: {
|
|
67
|
+
readonly $ref: "#/$defs/Ulid";
|
|
68
|
+
};
|
|
69
|
+
readonly cascade: {
|
|
70
|
+
readonly type: "boolean";
|
|
71
|
+
readonly default: false;
|
|
72
|
+
readonly description: "When false (the default) a referenced attribute is refused, and the error names the referring profiles so the holder can decide. When true the attribute is removed and every referring profile entry is removed with it. Cascade is the destructive option and is therefore never the default: deleting one fact and silently changing what three profiles disclose is exactly the surprise this family exists to prevent.";
|
|
73
|
+
};
|
|
74
|
+
readonly expectedVersion: {
|
|
75
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
76
|
+
readonly description: "Optional precondition, so a delete cannot race a concurrent edit the holder has not seen.";
|
|
77
|
+
};
|
|
78
|
+
readonly ext: {
|
|
79
|
+
readonly $ref: "#/$defs/Ext";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
readonly $defs: {
|
|
83
|
+
readonly Response: {
|
|
84
|
+
readonly $anchor: "response";
|
|
85
|
+
readonly title: "Persona Attribute Delete — response payload";
|
|
86
|
+
readonly description: "Success response to persona/attribute/delete. Type https://trusttasks.org/spec/persona/attribute/delete/1.0#response. Deleting an attribute that is already absent is a success carrying `existed: false`, which is what makes a repeated delete converge.";
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly additionalProperties: false;
|
|
89
|
+
readonly required: readonly ["attributeId", "existed"];
|
|
90
|
+
readonly properties: {
|
|
91
|
+
readonly attributeId: {
|
|
92
|
+
readonly $ref: "#/$defs/Ulid";
|
|
93
|
+
};
|
|
94
|
+
readonly existed: {
|
|
95
|
+
readonly type: "boolean";
|
|
96
|
+
readonly description: "False when no live attribute was present. A repeat delete returns false and deliberately does NOT take a new counter value — had it done so, every consumer watching the store would see a change that did not happen, and delete could not be safely retried.";
|
|
97
|
+
};
|
|
98
|
+
readonly removedFromProfiles: {
|
|
99
|
+
readonly type: "array";
|
|
100
|
+
readonly maxItems: 256;
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly $ref: "#/$defs/Ulid";
|
|
103
|
+
};
|
|
104
|
+
readonly description: "Profiles whose entries were removed by a cascading delete. Present only when `cascade` was true and something was removed; a holder is owed the list of what their one action changed.";
|
|
105
|
+
};
|
|
106
|
+
readonly ext: {
|
|
107
|
+
readonly $ref: "#/$defs/Ext";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
readonly Ext: {
|
|
112
|
+
readonly title: "Ext";
|
|
113
|
+
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.";
|
|
114
|
+
readonly type: "object";
|
|
115
|
+
readonly minProperties: 1;
|
|
116
|
+
readonly additionalProperties: true;
|
|
117
|
+
readonly propertyNames: {
|
|
118
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
readonly Ulid: {
|
|
122
|
+
readonly title: "Ulid";
|
|
123
|
+
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.";
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
126
|
+
};
|
|
127
|
+
readonly ExpectedVersion: {
|
|
128
|
+
readonly title: "ExpectedVersion";
|
|
129
|
+
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.";
|
|
130
|
+
readonly type: "integer";
|
|
131
|
+
readonly minimum: 0;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
136
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
137
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
138
|
+
readonly $ref: "#/$defs/Response";
|
|
139
|
+
readonly $defs: {
|
|
140
|
+
readonly Response: {
|
|
141
|
+
readonly $anchor: "response";
|
|
142
|
+
readonly title: "Persona Attribute Delete — response payload";
|
|
143
|
+
readonly description: "Success response to persona/attribute/delete. Type https://trusttasks.org/spec/persona/attribute/delete/1.0#response. Deleting an attribute that is already absent is a success carrying `existed: false`, which is what makes a repeated delete converge.";
|
|
144
|
+
readonly type: "object";
|
|
145
|
+
readonly additionalProperties: false;
|
|
146
|
+
readonly required: readonly ["attributeId", "existed"];
|
|
147
|
+
readonly properties: {
|
|
148
|
+
readonly attributeId: {
|
|
149
|
+
readonly $ref: "#/$defs/Ulid";
|
|
150
|
+
};
|
|
151
|
+
readonly existed: {
|
|
152
|
+
readonly type: "boolean";
|
|
153
|
+
readonly description: "False when no live attribute was present. A repeat delete returns false and deliberately does NOT take a new counter value — had it done so, every consumer watching the store would see a change that did not happen, and delete could not be safely retried.";
|
|
154
|
+
};
|
|
155
|
+
readonly removedFromProfiles: {
|
|
156
|
+
readonly type: "array";
|
|
157
|
+
readonly maxItems: 256;
|
|
158
|
+
readonly items: {
|
|
159
|
+
readonly $ref: "#/$defs/Ulid";
|
|
160
|
+
};
|
|
161
|
+
readonly description: "Profiles whose entries were removed by a cascading delete. Present only when `cascade` was true and something was removed; a holder is owed the list of what their one action changed.";
|
|
162
|
+
};
|
|
163
|
+
readonly ext: {
|
|
164
|
+
readonly $ref: "#/$defs/Ext";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
readonly Ext: {
|
|
169
|
+
readonly title: "Ext";
|
|
170
|
+
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.";
|
|
171
|
+
readonly type: "object";
|
|
172
|
+
readonly minProperties: 1;
|
|
173
|
+
readonly additionalProperties: true;
|
|
174
|
+
readonly propertyNames: {
|
|
175
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
readonly Ulid: {
|
|
179
|
+
readonly title: "Ulid";
|
|
180
|
+
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.";
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
183
|
+
};
|
|
184
|
+
readonly ExpectedVersion: {
|
|
185
|
+
readonly title: "ExpectedVersion";
|
|
186
|
+
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.";
|
|
187
|
+
readonly type: "integer";
|
|
188
|
+
readonly minimum: 0;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
194
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
195
|
+
* per-specification and cannot be derived from the document alone, and
|
|
196
|
+
* item 2 needs the schema this carries.
|
|
197
|
+
*/
|
|
198
|
+
export declare const SPEC: {
|
|
199
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/attribute/delete/1.0";
|
|
200
|
+
readonly isBearer: false;
|
|
201
|
+
readonly isProofRequired: true;
|
|
202
|
+
readonly isRecipientRequired: true;
|
|
203
|
+
readonly isIssuedAtRequired: true;
|
|
204
|
+
readonly payloadSchema: {
|
|
205
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
206
|
+
readonly $id: "https://trusttasks.org/spec/persona/attribute/delete/1.0";
|
|
207
|
+
readonly title: "Persona Attribute Delete — payload";
|
|
208
|
+
readonly description: "Remove one attribute from the holder's pool. Refused by default while any profile still references it, because a silent removal would change what those profiles present without the holder having said so.";
|
|
209
|
+
readonly type: "object";
|
|
210
|
+
readonly additionalProperties: false;
|
|
211
|
+
readonly required: readonly ["attributeId"];
|
|
212
|
+
readonly properties: {
|
|
213
|
+
readonly attributeId: {
|
|
214
|
+
readonly $ref: "#/$defs/Ulid";
|
|
215
|
+
};
|
|
216
|
+
readonly cascade: {
|
|
217
|
+
readonly type: "boolean";
|
|
218
|
+
readonly default: false;
|
|
219
|
+
readonly description: "When false (the default) a referenced attribute is refused, and the error names the referring profiles so the holder can decide. When true the attribute is removed and every referring profile entry is removed with it. Cascade is the destructive option and is therefore never the default: deleting one fact and silently changing what three profiles disclose is exactly the surprise this family exists to prevent.";
|
|
220
|
+
};
|
|
221
|
+
readonly expectedVersion: {
|
|
222
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
223
|
+
readonly description: "Optional precondition, so a delete cannot race a concurrent edit the holder has not seen.";
|
|
224
|
+
};
|
|
225
|
+
readonly ext: {
|
|
226
|
+
readonly $ref: "#/$defs/Ext";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly $defs: {
|
|
230
|
+
readonly Response: {
|
|
231
|
+
readonly $anchor: "response";
|
|
232
|
+
readonly title: "Persona Attribute Delete — response payload";
|
|
233
|
+
readonly description: "Success response to persona/attribute/delete. Type https://trusttasks.org/spec/persona/attribute/delete/1.0#response. Deleting an attribute that is already absent is a success carrying `existed: false`, which is what makes a repeated delete converge.";
|
|
234
|
+
readonly type: "object";
|
|
235
|
+
readonly additionalProperties: false;
|
|
236
|
+
readonly required: readonly ["attributeId", "existed"];
|
|
237
|
+
readonly properties: {
|
|
238
|
+
readonly attributeId: {
|
|
239
|
+
readonly $ref: "#/$defs/Ulid";
|
|
240
|
+
};
|
|
241
|
+
readonly existed: {
|
|
242
|
+
readonly type: "boolean";
|
|
243
|
+
readonly description: "False when no live attribute was present. A repeat delete returns false and deliberately does NOT take a new counter value — had it done so, every consumer watching the store would see a change that did not happen, and delete could not be safely retried.";
|
|
244
|
+
};
|
|
245
|
+
readonly removedFromProfiles: {
|
|
246
|
+
readonly type: "array";
|
|
247
|
+
readonly maxItems: 256;
|
|
248
|
+
readonly items: {
|
|
249
|
+
readonly $ref: "#/$defs/Ulid";
|
|
250
|
+
};
|
|
251
|
+
readonly description: "Profiles whose entries were removed by a cascading delete. Present only when `cascade` was true and something was removed; a holder is owed the list of what their one action changed.";
|
|
252
|
+
};
|
|
253
|
+
readonly ext: {
|
|
254
|
+
readonly $ref: "#/$defs/Ext";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
readonly Ext: {
|
|
259
|
+
readonly title: "Ext";
|
|
260
|
+
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.";
|
|
261
|
+
readonly type: "object";
|
|
262
|
+
readonly minProperties: 1;
|
|
263
|
+
readonly additionalProperties: true;
|
|
264
|
+
readonly propertyNames: {
|
|
265
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
readonly Ulid: {
|
|
269
|
+
readonly title: "Ulid";
|
|
270
|
+
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.";
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
273
|
+
};
|
|
274
|
+
readonly ExpectedVersion: {
|
|
275
|
+
readonly title: "ExpectedVersion";
|
|
276
|
+
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.";
|
|
277
|
+
readonly type: "integer";
|
|
278
|
+
readonly minimum: 0;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
285
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
286
|
+
* parties (§7.3 item 5).
|
|
287
|
+
*/
|
|
288
|
+
export declare const RESPONSE_SPEC: {
|
|
289
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/attribute/delete/1.0#response";
|
|
290
|
+
readonly isBearer: false;
|
|
291
|
+
readonly isProofRequired: true;
|
|
292
|
+
readonly isRecipientRequired: true;
|
|
293
|
+
readonly isIssuedAtRequired: true;
|
|
294
|
+
readonly payloadSchema: {
|
|
295
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
296
|
+
readonly $ref: "#/$defs/Response";
|
|
297
|
+
readonly $defs: {
|
|
298
|
+
readonly Response: {
|
|
299
|
+
readonly $anchor: "response";
|
|
300
|
+
readonly title: "Persona Attribute Delete — response payload";
|
|
301
|
+
readonly description: "Success response to persona/attribute/delete. Type https://trusttasks.org/spec/persona/attribute/delete/1.0#response. Deleting an attribute that is already absent is a success carrying `existed: false`, which is what makes a repeated delete converge.";
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
readonly additionalProperties: false;
|
|
304
|
+
readonly required: readonly ["attributeId", "existed"];
|
|
305
|
+
readonly properties: {
|
|
306
|
+
readonly attributeId: {
|
|
307
|
+
readonly $ref: "#/$defs/Ulid";
|
|
308
|
+
};
|
|
309
|
+
readonly existed: {
|
|
310
|
+
readonly type: "boolean";
|
|
311
|
+
readonly description: "False when no live attribute was present. A repeat delete returns false and deliberately does NOT take a new counter value — had it done so, every consumer watching the store would see a change that did not happen, and delete could not be safely retried.";
|
|
312
|
+
};
|
|
313
|
+
readonly removedFromProfiles: {
|
|
314
|
+
readonly type: "array";
|
|
315
|
+
readonly maxItems: 256;
|
|
316
|
+
readonly items: {
|
|
317
|
+
readonly $ref: "#/$defs/Ulid";
|
|
318
|
+
};
|
|
319
|
+
readonly description: "Profiles whose entries were removed by a cascading delete. Present only when `cascade` was true and something was removed; a holder is owed the list of what their one action changed.";
|
|
320
|
+
};
|
|
321
|
+
readonly ext: {
|
|
322
|
+
readonly $ref: "#/$defs/Ext";
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly Ext: {
|
|
327
|
+
readonly title: "Ext";
|
|
328
|
+
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.";
|
|
329
|
+
readonly type: "object";
|
|
330
|
+
readonly minProperties: 1;
|
|
331
|
+
readonly additionalProperties: true;
|
|
332
|
+
readonly propertyNames: {
|
|
333
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
readonly Ulid: {
|
|
337
|
+
readonly title: "Ulid";
|
|
338
|
+
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.";
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
341
|
+
};
|
|
342
|
+
readonly ExpectedVersion: {
|
|
343
|
+
readonly title: "ExpectedVersion";
|
|
344
|
+
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.";
|
|
345
|
+
readonly type: "integer";
|
|
346
|
+
readonly minimum: 0;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/persona/attribute/delete/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,2BAA2B,IAAI,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AAGnH;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,IAAI,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,WAAW,EAAE,IAAI,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,IAAI,EAAE,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AAE3C,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,0DAAmE,CAAC;AAE5F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,6BAA6B,CAAC;AAEpD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,mEAA4E,CAAC;AAE9G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,qCAAqC,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/attribute/delete/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/persona/attribute/delete/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/attribute/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/attribute/delete/1.0",
|
|
21
|
+
"title": "Persona Attribute Delete — payload",
|
|
22
|
+
"description": "Remove one attribute from the holder's pool. Refused by default while any profile still references it, because a silent removal would change what those profiles present without the holder having said so.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"attributeId"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"attributeId": {
|
|
30
|
+
"$ref": "#/$defs/Ulid"
|
|
31
|
+
},
|
|
32
|
+
"cascade": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"description": "When false (the default) a referenced attribute is refused, and the error names the referring profiles so the holder can decide. When true the attribute is removed and every referring profile entry is removed with it. Cascade is the destructive option and is therefore never the default: deleting one fact and silently changing what three profiles disclose is exactly the surprise this family exists to prevent."
|
|
36
|
+
},
|
|
37
|
+
"expectedVersion": {
|
|
38
|
+
"$ref": "#/$defs/ExpectedVersion",
|
|
39
|
+
"description": "Optional precondition, so a delete cannot race a concurrent edit the holder has not seen."
|
|
40
|
+
},
|
|
41
|
+
"ext": {
|
|
42
|
+
"$ref": "#/$defs/Ext"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"$defs": {
|
|
46
|
+
"Response": {
|
|
47
|
+
"$anchor": "response",
|
|
48
|
+
"title": "Persona Attribute Delete — response payload",
|
|
49
|
+
"description": "Success response to persona/attribute/delete. Type https://trusttasks.org/spec/persona/attribute/delete/1.0#response. Deleting an attribute that is already absent is a success carrying `existed: false`, which is what makes a repeated delete converge.",
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": [
|
|
53
|
+
"attributeId",
|
|
54
|
+
"existed"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"attributeId": {
|
|
58
|
+
"$ref": "#/$defs/Ulid"
|
|
59
|
+
},
|
|
60
|
+
"existed": {
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"description": "False when no live attribute was present. A repeat delete returns false and deliberately does NOT take a new counter value — had it done so, every consumer watching the store would see a change that did not happen, and delete could not be safely retried."
|
|
63
|
+
},
|
|
64
|
+
"removedFromProfiles": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"maxItems": 256,
|
|
67
|
+
"items": {
|
|
68
|
+
"$ref": "#/$defs/Ulid"
|
|
69
|
+
},
|
|
70
|
+
"description": "Profiles whose entries were removed by a cascading delete. Present only when `cascade` was true and something was removed; a holder is owed the list of what their one action changed."
|
|
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 Attribute Delete — response payload",
|
|
109
|
+
"description": "Success response to persona/attribute/delete. Type https://trusttasks.org/spec/persona/attribute/delete/1.0#response. Deleting an attribute that is already absent is a success carrying `existed: false`, which is what makes a repeated delete converge.",
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"required": [
|
|
113
|
+
"attributeId",
|
|
114
|
+
"existed"
|
|
115
|
+
],
|
|
116
|
+
"properties": {
|
|
117
|
+
"attributeId": {
|
|
118
|
+
"$ref": "#/$defs/Ulid"
|
|
119
|
+
},
|
|
120
|
+
"existed": {
|
|
121
|
+
"type": "boolean",
|
|
122
|
+
"description": "False when no live attribute was present. A repeat delete returns false and deliberately does NOT take a new counter value — had it done so, every consumer watching the store would see a change that did not happen, and delete could not be safely retried."
|
|
123
|
+
},
|
|
124
|
+
"removedFromProfiles": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"maxItems": 256,
|
|
127
|
+
"items": {
|
|
128
|
+
"$ref": "#/$defs/Ulid"
|
|
129
|
+
},
|
|
130
|
+
"description": "Profiles whose entries were removed by a cascading delete. Present only when `cascade` was true and something was removed; a holder is owed the list of what their one action changed."
|
|
131
|
+
},
|
|
132
|
+
"ext": {
|
|
133
|
+
"$ref": "#/$defs/Ext"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"Ext": {
|
|
138
|
+
"title": "Ext",
|
|
139
|
+
"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.",
|
|
140
|
+
"type": "object",
|
|
141
|
+
"minProperties": 1,
|
|
142
|
+
"additionalProperties": true,
|
|
143
|
+
"propertyNames": {
|
|
144
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"Ulid": {
|
|
148
|
+
"title": "Ulid",
|
|
149
|
+
"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.",
|
|
150
|
+
"type": "string",
|
|
151
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
152
|
+
},
|
|
153
|
+
"ExpectedVersion": {
|
|
154
|
+
"title": "ExpectedVersion",
|
|
155
|
+
"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.",
|
|
156
|
+
"type": "integer",
|
|
157
|
+
"minimum": 0
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
163
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
164
|
+
* per-specification and cannot be derived from the document alone, and
|
|
165
|
+
* item 2 needs the schema this carries.
|
|
166
|
+
*/
|
|
167
|
+
export const SPEC = {
|
|
168
|
+
typeUri: TYPE_URI,
|
|
169
|
+
isBearer: false,
|
|
170
|
+
isProofRequired: true,
|
|
171
|
+
isRecipientRequired: true,
|
|
172
|
+
isIssuedAtRequired: true,
|
|
173
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
177
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
178
|
+
* parties (§7.3 item 5).
|
|
179
|
+
*/
|
|
180
|
+
export const RESPONSE_SPEC = {
|
|
181
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
182
|
+
isBearer: false,
|
|
183
|
+
isProofRequired: true,
|
|
184
|
+
isRecipientRequired: true,
|
|
185
|
+
isIssuedAtRequired: true,
|
|
186
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
187
|
+
};
|
|
188
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/persona/attribute/delete/1.0/payload.ts"],"names":[],"mappings":"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"}
|