@openvtc/trust-tasks 0.16.8 → 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 +285 -0
- package/dist/_shared/components.d.ts +206 -7
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +6 -2
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +6 -2
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +6 -2
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +6 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -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/keys/commit/0.1/payload.d.ts +266 -0
- package/dist/rooms/keys/commit/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/commit/0.1/payload.js +146 -0
- package/dist/rooms/keys/commit/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/key-package/0.1/payload.d.ts +272 -0
- package/dist/rooms/keys/key-package/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/key-package/0.1/payload.js +147 -0
- package/dist/rooms/keys/key-package/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/welcome/0.1/payload.d.ts +276 -0
- package/dist/rooms/keys/welcome/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/welcome/0.1/payload.js +148 -0
- package/dist/rooms/keys/welcome/0.1/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/rooms/records/curate/0.1/payload.d.ts +500 -0
- package/dist/rooms/records/curate/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/records/curate/0.1/payload.js +277 -0
- package/dist/rooms/records/curate/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 +217 -7
- package/src/device/list/0.1/payload.ts +6 -2
- package/src/device/list/0.2/payload.ts +6 -2
- package/src/device/register/0.1/payload.ts +6 -2
- package/src/device/register/0.2/payload.ts +6 -2
- package/src/index.ts +31 -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/keys/commit/0.1/payload.ts +195 -0
- package/src/rooms/keys/key-package/0.1/payload.ts +196 -0
- package/src/rooms/keys/welcome/0.1/payload.ts +201 -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/rooms/records/curate/0.1/payload.ts +357 -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,545 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/local/profile/put/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ClaimType, ExpectedVersion_PersonaV0_1 as ExpectedVersion, Ext, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Compose a throwaway profile inside a context, from values supplied here rather than drawn from the holder's pool. Inline entries only: a reference is refused, and that refusal is what keeps the local surface pool-free.
|
|
8
|
+
*/
|
|
9
|
+
export interface PersonaLocalProfilePutPayload {
|
|
10
|
+
contextId: string;
|
|
11
|
+
profileId?: Ulid;
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* @maxItems 64
|
|
15
|
+
*/
|
|
16
|
+
entries: {
|
|
17
|
+
inline: {
|
|
18
|
+
type: ClaimType;
|
|
19
|
+
valueType: ValueType;
|
|
20
|
+
value: unknown;
|
|
21
|
+
label?: string;
|
|
22
|
+
};
|
|
23
|
+
}[];
|
|
24
|
+
expectedVersion?: ExpectedVersion;
|
|
25
|
+
ext?: Ext;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Success response to persona/local/profile/put. Type https://trusttasks.org/spec/persona/local/profile/put/1.0#response.
|
|
29
|
+
*/
|
|
30
|
+
export interface PersonaLocalProfilePutResponsePayload {
|
|
31
|
+
profileId: Ulid;
|
|
32
|
+
version: Version;
|
|
33
|
+
created: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Local profiles ARE correlation-indexed, and the naive implementation that skips them loses the guard exactly where a human most needs it: a throwaway identity is precisely where somebody reuses a real value. Indexing them is not a leak — the index is above the boundary, is keyed by a hash, and only the holder can query it.
|
|
36
|
+
*/
|
|
37
|
+
correlation?: {
|
|
38
|
+
severity: "none" | "low" | "high";
|
|
39
|
+
/**
|
|
40
|
+
* True when a value here also appears in the holder's pool. The signal that a throwaway is not throwaway.
|
|
41
|
+
*/
|
|
42
|
+
matchesPoolValue?: boolean;
|
|
43
|
+
};
|
|
44
|
+
ext?: Ext;
|
|
45
|
+
}
|
|
46
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
47
|
+
export type { ClaimType, ExpectedVersion, Ext, Ulid, ValueType, Version };
|
|
48
|
+
/** Trust Task type URI. */
|
|
49
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/persona/local/profile/put/1.0";
|
|
50
|
+
/** Stable alias for this specification's request payload shape. */
|
|
51
|
+
export type Payload = PersonaLocalProfilePutPayload;
|
|
52
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
53
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/persona/local/profile/put/1.0#response";
|
|
54
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
55
|
+
export type Response = PersonaLocalProfilePutResponsePayload;
|
|
56
|
+
/**
|
|
57
|
+
* This specification's payload schema, as a value.
|
|
58
|
+
*
|
|
59
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
60
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
61
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
62
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
63
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
64
|
+
*/
|
|
65
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
66
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
67
|
+
readonly $id: "https://trusttasks.org/spec/persona/local/profile/put/1.0";
|
|
68
|
+
readonly title: "Persona Local Profile Put — payload";
|
|
69
|
+
readonly description: "Compose a throwaway profile inside a context, from values supplied here rather than drawn from the holder's pool. Inline entries only: a reference is refused, and that refusal is what keeps the local surface pool-free.";
|
|
70
|
+
readonly type: "object";
|
|
71
|
+
readonly additionalProperties: false;
|
|
72
|
+
readonly required: readonly ["contextId", "name", "entries"];
|
|
73
|
+
readonly properties: {
|
|
74
|
+
readonly contextId: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly minLength: 1;
|
|
77
|
+
};
|
|
78
|
+
readonly profileId: {
|
|
79
|
+
readonly $ref: "#/$defs/Ulid";
|
|
80
|
+
};
|
|
81
|
+
readonly name: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly minLength: 1;
|
|
84
|
+
readonly maxLength: 128;
|
|
85
|
+
};
|
|
86
|
+
readonly entries: {
|
|
87
|
+
readonly type: "array";
|
|
88
|
+
readonly maxItems: 64;
|
|
89
|
+
readonly items: {
|
|
90
|
+
readonly type: "object";
|
|
91
|
+
readonly additionalProperties: false;
|
|
92
|
+
readonly required: readonly ["inline"];
|
|
93
|
+
readonly description: "Inline entries only. The `ref`, pinned and override forms of a pool profile are absent from this schema deliberately — a context-local profile that could reference the pool would be a context-authored object acquiring pool reach, which is exactly what the boundary exists to prevent.";
|
|
94
|
+
readonly properties: {
|
|
95
|
+
readonly inline: {
|
|
96
|
+
readonly type: "object";
|
|
97
|
+
readonly additionalProperties: false;
|
|
98
|
+
readonly required: readonly ["type", "valueType", "value"];
|
|
99
|
+
readonly properties: {
|
|
100
|
+
readonly type: {
|
|
101
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
102
|
+
};
|
|
103
|
+
readonly valueType: {
|
|
104
|
+
readonly $ref: "#/$defs/ValueType";
|
|
105
|
+
};
|
|
106
|
+
readonly value: {};
|
|
107
|
+
readonly label: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly maxLength: 128;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
readonly expectedVersion: {
|
|
117
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
118
|
+
};
|
|
119
|
+
readonly ext: {
|
|
120
|
+
readonly $ref: "#/$defs/Ext";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
readonly $defs: {
|
|
124
|
+
readonly Response: {
|
|
125
|
+
readonly $anchor: "response";
|
|
126
|
+
readonly title: "Persona Local Profile Put — response payload";
|
|
127
|
+
readonly description: "Success response to persona/local/profile/put. Type https://trusttasks.org/spec/persona/local/profile/put/1.0#response.";
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly additionalProperties: false;
|
|
130
|
+
readonly required: readonly ["profileId", "version", "created"];
|
|
131
|
+
readonly properties: {
|
|
132
|
+
readonly profileId: {
|
|
133
|
+
readonly $ref: "#/$defs/Ulid";
|
|
134
|
+
};
|
|
135
|
+
readonly version: {
|
|
136
|
+
readonly $ref: "#/$defs/Version";
|
|
137
|
+
};
|
|
138
|
+
readonly created: {
|
|
139
|
+
readonly type: "boolean";
|
|
140
|
+
};
|
|
141
|
+
readonly correlation: {
|
|
142
|
+
readonly type: "object";
|
|
143
|
+
readonly additionalProperties: false;
|
|
144
|
+
readonly required: readonly ["severity"];
|
|
145
|
+
readonly description: "Local profiles ARE correlation-indexed, and the naive implementation that skips them loses the guard exactly where a human most needs it: a throwaway identity is precisely where somebody reuses a real value. Indexing them is not a leak — the index is above the boundary, is keyed by a hash, and only the holder can query it.";
|
|
146
|
+
readonly properties: {
|
|
147
|
+
readonly severity: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly enum: readonly ["none", "low", "high"];
|
|
150
|
+
};
|
|
151
|
+
readonly matchesPoolValue: {
|
|
152
|
+
readonly type: "boolean";
|
|
153
|
+
readonly description: "True when a value here also appears in the holder's pool. The signal that a throwaway is not throwaway.";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly ext: {
|
|
158
|
+
readonly $ref: "#/$defs/Ext";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
readonly Ext: {
|
|
163
|
+
readonly title: "Ext";
|
|
164
|
+
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.";
|
|
165
|
+
readonly type: "object";
|
|
166
|
+
readonly minProperties: 1;
|
|
167
|
+
readonly additionalProperties: true;
|
|
168
|
+
readonly propertyNames: {
|
|
169
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly Version: {
|
|
173
|
+
readonly title: "Version";
|
|
174
|
+
readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
|
|
175
|
+
readonly type: "integer";
|
|
176
|
+
readonly minimum: 1;
|
|
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
|
+
readonly ValueType: {
|
|
191
|
+
readonly title: "ValueType";
|
|
192
|
+
readonly description: "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.";
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
readonly enum: readonly ["string", "number", "boolean", "date", "object"];
|
|
195
|
+
};
|
|
196
|
+
readonly ClaimType: {
|
|
197
|
+
readonly title: "ClaimType";
|
|
198
|
+
readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
readonly minLength: 1;
|
|
201
|
+
readonly maxLength: 128;
|
|
202
|
+
readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
207
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
208
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
209
|
+
readonly $ref: "#/$defs/Response";
|
|
210
|
+
readonly $defs: {
|
|
211
|
+
readonly Response: {
|
|
212
|
+
readonly $anchor: "response";
|
|
213
|
+
readonly title: "Persona Local Profile Put — response payload";
|
|
214
|
+
readonly description: "Success response to persona/local/profile/put. Type https://trusttasks.org/spec/persona/local/profile/put/1.0#response.";
|
|
215
|
+
readonly type: "object";
|
|
216
|
+
readonly additionalProperties: false;
|
|
217
|
+
readonly required: readonly ["profileId", "version", "created"];
|
|
218
|
+
readonly properties: {
|
|
219
|
+
readonly profileId: {
|
|
220
|
+
readonly $ref: "#/$defs/Ulid";
|
|
221
|
+
};
|
|
222
|
+
readonly version: {
|
|
223
|
+
readonly $ref: "#/$defs/Version";
|
|
224
|
+
};
|
|
225
|
+
readonly created: {
|
|
226
|
+
readonly type: "boolean";
|
|
227
|
+
};
|
|
228
|
+
readonly correlation: {
|
|
229
|
+
readonly type: "object";
|
|
230
|
+
readonly additionalProperties: false;
|
|
231
|
+
readonly required: readonly ["severity"];
|
|
232
|
+
readonly description: "Local profiles ARE correlation-indexed, and the naive implementation that skips them loses the guard exactly where a human most needs it: a throwaway identity is precisely where somebody reuses a real value. Indexing them is not a leak — the index is above the boundary, is keyed by a hash, and only the holder can query it.";
|
|
233
|
+
readonly properties: {
|
|
234
|
+
readonly severity: {
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
readonly enum: readonly ["none", "low", "high"];
|
|
237
|
+
};
|
|
238
|
+
readonly matchesPoolValue: {
|
|
239
|
+
readonly type: "boolean";
|
|
240
|
+
readonly description: "True when a value here also appears in the holder's pool. The signal that a throwaway is not throwaway.";
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
readonly ext: {
|
|
245
|
+
readonly $ref: "#/$defs/Ext";
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly Ext: {
|
|
250
|
+
readonly title: "Ext";
|
|
251
|
+
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.";
|
|
252
|
+
readonly type: "object";
|
|
253
|
+
readonly minProperties: 1;
|
|
254
|
+
readonly additionalProperties: true;
|
|
255
|
+
readonly propertyNames: {
|
|
256
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
readonly Version: {
|
|
260
|
+
readonly title: "Version";
|
|
261
|
+
readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
|
|
262
|
+
readonly type: "integer";
|
|
263
|
+
readonly minimum: 1;
|
|
264
|
+
};
|
|
265
|
+
readonly Ulid: {
|
|
266
|
+
readonly title: "Ulid";
|
|
267
|
+
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.";
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
270
|
+
};
|
|
271
|
+
readonly ExpectedVersion: {
|
|
272
|
+
readonly title: "ExpectedVersion";
|
|
273
|
+
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.";
|
|
274
|
+
readonly type: "integer";
|
|
275
|
+
readonly minimum: 0;
|
|
276
|
+
};
|
|
277
|
+
readonly ValueType: {
|
|
278
|
+
readonly title: "ValueType";
|
|
279
|
+
readonly description: "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.";
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly enum: readonly ["string", "number", "boolean", "date", "object"];
|
|
282
|
+
};
|
|
283
|
+
readonly ClaimType: {
|
|
284
|
+
readonly title: "ClaimType";
|
|
285
|
+
readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
readonly minLength: 1;
|
|
288
|
+
readonly maxLength: 128;
|
|
289
|
+
readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
295
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
296
|
+
* per-specification and cannot be derived from the document alone, and
|
|
297
|
+
* item 2 needs the schema this carries.
|
|
298
|
+
*/
|
|
299
|
+
export declare const SPEC: {
|
|
300
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/local/profile/put/1.0";
|
|
301
|
+
readonly isBearer: false;
|
|
302
|
+
readonly isProofRequired: true;
|
|
303
|
+
readonly isRecipientRequired: true;
|
|
304
|
+
readonly isIssuedAtRequired: true;
|
|
305
|
+
readonly payloadSchema: {
|
|
306
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
307
|
+
readonly $id: "https://trusttasks.org/spec/persona/local/profile/put/1.0";
|
|
308
|
+
readonly title: "Persona Local Profile Put — payload";
|
|
309
|
+
readonly description: "Compose a throwaway profile inside a context, from values supplied here rather than drawn from the holder's pool. Inline entries only: a reference is refused, and that refusal is what keeps the local surface pool-free.";
|
|
310
|
+
readonly type: "object";
|
|
311
|
+
readonly additionalProperties: false;
|
|
312
|
+
readonly required: readonly ["contextId", "name", "entries"];
|
|
313
|
+
readonly properties: {
|
|
314
|
+
readonly contextId: {
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
readonly minLength: 1;
|
|
317
|
+
};
|
|
318
|
+
readonly profileId: {
|
|
319
|
+
readonly $ref: "#/$defs/Ulid";
|
|
320
|
+
};
|
|
321
|
+
readonly name: {
|
|
322
|
+
readonly type: "string";
|
|
323
|
+
readonly minLength: 1;
|
|
324
|
+
readonly maxLength: 128;
|
|
325
|
+
};
|
|
326
|
+
readonly entries: {
|
|
327
|
+
readonly type: "array";
|
|
328
|
+
readonly maxItems: 64;
|
|
329
|
+
readonly items: {
|
|
330
|
+
readonly type: "object";
|
|
331
|
+
readonly additionalProperties: false;
|
|
332
|
+
readonly required: readonly ["inline"];
|
|
333
|
+
readonly description: "Inline entries only. The `ref`, pinned and override forms of a pool profile are absent from this schema deliberately — a context-local profile that could reference the pool would be a context-authored object acquiring pool reach, which is exactly what the boundary exists to prevent.";
|
|
334
|
+
readonly properties: {
|
|
335
|
+
readonly inline: {
|
|
336
|
+
readonly type: "object";
|
|
337
|
+
readonly additionalProperties: false;
|
|
338
|
+
readonly required: readonly ["type", "valueType", "value"];
|
|
339
|
+
readonly properties: {
|
|
340
|
+
readonly type: {
|
|
341
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
342
|
+
};
|
|
343
|
+
readonly valueType: {
|
|
344
|
+
readonly $ref: "#/$defs/ValueType";
|
|
345
|
+
};
|
|
346
|
+
readonly value: {};
|
|
347
|
+
readonly label: {
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly maxLength: 128;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
readonly expectedVersion: {
|
|
357
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
358
|
+
};
|
|
359
|
+
readonly ext: {
|
|
360
|
+
readonly $ref: "#/$defs/Ext";
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
readonly $defs: {
|
|
364
|
+
readonly Response: {
|
|
365
|
+
readonly $anchor: "response";
|
|
366
|
+
readonly title: "Persona Local Profile Put — response payload";
|
|
367
|
+
readonly description: "Success response to persona/local/profile/put. Type https://trusttasks.org/spec/persona/local/profile/put/1.0#response.";
|
|
368
|
+
readonly type: "object";
|
|
369
|
+
readonly additionalProperties: false;
|
|
370
|
+
readonly required: readonly ["profileId", "version", "created"];
|
|
371
|
+
readonly properties: {
|
|
372
|
+
readonly profileId: {
|
|
373
|
+
readonly $ref: "#/$defs/Ulid";
|
|
374
|
+
};
|
|
375
|
+
readonly version: {
|
|
376
|
+
readonly $ref: "#/$defs/Version";
|
|
377
|
+
};
|
|
378
|
+
readonly created: {
|
|
379
|
+
readonly type: "boolean";
|
|
380
|
+
};
|
|
381
|
+
readonly correlation: {
|
|
382
|
+
readonly type: "object";
|
|
383
|
+
readonly additionalProperties: false;
|
|
384
|
+
readonly required: readonly ["severity"];
|
|
385
|
+
readonly description: "Local profiles ARE correlation-indexed, and the naive implementation that skips them loses the guard exactly where a human most needs it: a throwaway identity is precisely where somebody reuses a real value. Indexing them is not a leak — the index is above the boundary, is keyed by a hash, and only the holder can query it.";
|
|
386
|
+
readonly properties: {
|
|
387
|
+
readonly severity: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly enum: readonly ["none", "low", "high"];
|
|
390
|
+
};
|
|
391
|
+
readonly matchesPoolValue: {
|
|
392
|
+
readonly type: "boolean";
|
|
393
|
+
readonly description: "True when a value here also appears in the holder's pool. The signal that a throwaway is not throwaway.";
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
readonly ext: {
|
|
398
|
+
readonly $ref: "#/$defs/Ext";
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
readonly Ext: {
|
|
403
|
+
readonly title: "Ext";
|
|
404
|
+
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.";
|
|
405
|
+
readonly type: "object";
|
|
406
|
+
readonly minProperties: 1;
|
|
407
|
+
readonly additionalProperties: true;
|
|
408
|
+
readonly propertyNames: {
|
|
409
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
readonly Version: {
|
|
413
|
+
readonly title: "Version";
|
|
414
|
+
readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
|
|
415
|
+
readonly type: "integer";
|
|
416
|
+
readonly minimum: 1;
|
|
417
|
+
};
|
|
418
|
+
readonly Ulid: {
|
|
419
|
+
readonly title: "Ulid";
|
|
420
|
+
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.";
|
|
421
|
+
readonly type: "string";
|
|
422
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
423
|
+
};
|
|
424
|
+
readonly ExpectedVersion: {
|
|
425
|
+
readonly title: "ExpectedVersion";
|
|
426
|
+
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.";
|
|
427
|
+
readonly type: "integer";
|
|
428
|
+
readonly minimum: 0;
|
|
429
|
+
};
|
|
430
|
+
readonly ValueType: {
|
|
431
|
+
readonly title: "ValueType";
|
|
432
|
+
readonly description: "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.";
|
|
433
|
+
readonly type: "string";
|
|
434
|
+
readonly enum: readonly ["string", "number", "boolean", "date", "object"];
|
|
435
|
+
};
|
|
436
|
+
readonly ClaimType: {
|
|
437
|
+
readonly title: "ClaimType";
|
|
438
|
+
readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly minLength: 1;
|
|
441
|
+
readonly maxLength: 128;
|
|
442
|
+
readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
/**
|
|
448
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
449
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
450
|
+
* parties (§7.3 item 5).
|
|
451
|
+
*/
|
|
452
|
+
export declare const RESPONSE_SPEC: {
|
|
453
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/local/profile/put/1.0#response";
|
|
454
|
+
readonly isBearer: false;
|
|
455
|
+
readonly isProofRequired: true;
|
|
456
|
+
readonly isRecipientRequired: true;
|
|
457
|
+
readonly isIssuedAtRequired: true;
|
|
458
|
+
readonly payloadSchema: {
|
|
459
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
460
|
+
readonly $ref: "#/$defs/Response";
|
|
461
|
+
readonly $defs: {
|
|
462
|
+
readonly Response: {
|
|
463
|
+
readonly $anchor: "response";
|
|
464
|
+
readonly title: "Persona Local Profile Put — response payload";
|
|
465
|
+
readonly description: "Success response to persona/local/profile/put. Type https://trusttasks.org/spec/persona/local/profile/put/1.0#response.";
|
|
466
|
+
readonly type: "object";
|
|
467
|
+
readonly additionalProperties: false;
|
|
468
|
+
readonly required: readonly ["profileId", "version", "created"];
|
|
469
|
+
readonly properties: {
|
|
470
|
+
readonly profileId: {
|
|
471
|
+
readonly $ref: "#/$defs/Ulid";
|
|
472
|
+
};
|
|
473
|
+
readonly version: {
|
|
474
|
+
readonly $ref: "#/$defs/Version";
|
|
475
|
+
};
|
|
476
|
+
readonly created: {
|
|
477
|
+
readonly type: "boolean";
|
|
478
|
+
};
|
|
479
|
+
readonly correlation: {
|
|
480
|
+
readonly type: "object";
|
|
481
|
+
readonly additionalProperties: false;
|
|
482
|
+
readonly required: readonly ["severity"];
|
|
483
|
+
readonly description: "Local profiles ARE correlation-indexed, and the naive implementation that skips them loses the guard exactly where a human most needs it: a throwaway identity is precisely where somebody reuses a real value. Indexing them is not a leak — the index is above the boundary, is keyed by a hash, and only the holder can query it.";
|
|
484
|
+
readonly properties: {
|
|
485
|
+
readonly severity: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly enum: readonly ["none", "low", "high"];
|
|
488
|
+
};
|
|
489
|
+
readonly matchesPoolValue: {
|
|
490
|
+
readonly type: "boolean";
|
|
491
|
+
readonly description: "True when a value here also appears in the holder's pool. The signal that a throwaway is not throwaway.";
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
readonly ext: {
|
|
496
|
+
readonly $ref: "#/$defs/Ext";
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
readonly Ext: {
|
|
501
|
+
readonly title: "Ext";
|
|
502
|
+
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.";
|
|
503
|
+
readonly type: "object";
|
|
504
|
+
readonly minProperties: 1;
|
|
505
|
+
readonly additionalProperties: true;
|
|
506
|
+
readonly propertyNames: {
|
|
507
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
readonly Version: {
|
|
511
|
+
readonly title: "Version";
|
|
512
|
+
readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
|
|
513
|
+
readonly type: "integer";
|
|
514
|
+
readonly minimum: 1;
|
|
515
|
+
};
|
|
516
|
+
readonly Ulid: {
|
|
517
|
+
readonly title: "Ulid";
|
|
518
|
+
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.";
|
|
519
|
+
readonly type: "string";
|
|
520
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
521
|
+
};
|
|
522
|
+
readonly ExpectedVersion: {
|
|
523
|
+
readonly title: "ExpectedVersion";
|
|
524
|
+
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.";
|
|
525
|
+
readonly type: "integer";
|
|
526
|
+
readonly minimum: 0;
|
|
527
|
+
};
|
|
528
|
+
readonly ValueType: {
|
|
529
|
+
readonly title: "ValueType";
|
|
530
|
+
readonly description: "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.";
|
|
531
|
+
readonly type: "string";
|
|
532
|
+
readonly enum: readonly ["string", "number", "boolean", "date", "object"];
|
|
533
|
+
};
|
|
534
|
+
readonly ClaimType: {
|
|
535
|
+
readonly title: "ClaimType";
|
|
536
|
+
readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
|
|
537
|
+
readonly type: "string";
|
|
538
|
+
readonly minLength: 1;
|
|
539
|
+
readonly maxLength: 128;
|
|
540
|
+
readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/persona/local/profile/put/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,2BAA2B,IAAI,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAG5K;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE;QACP,MAAM,EAAE;YACN,IAAI,EAAE,SAAS,CAAC;YAChB,SAAS,EAAE,SAAS,CAAC;YACrB,KAAK,EAAE,OAAO,CAAC;YACf,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;KACH,EAAE,CAAC;IACJ,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,QAAQ,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;QAClC;;WAEG;QACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAE1E,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2DAAoE,CAAC;AAE7F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,6BAA6B,CAAC;AAEpD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oEAA6E,CAAC;AAE/G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,qCAAqC,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqG1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|