@openvtc/trust-tasks 0.19.22 → 0.20.1
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 +33 -0
- package/dist/_shared/components.d.ts +5 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/persona/_shared/0.1/persona-record.d.ts +1 -1
- package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -1
- package/dist/persona/attribute/get/1.0/payload.d.ts +1221 -0
- package/dist/persona/attribute/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/get/1.0/payload.js +719 -0
- package/dist/persona/attribute/get/1.0/payload.js.map +1 -0
- package/dist/persona/correlation/analyze/1.1/payload.d.ts +730 -0
- package/dist/persona/correlation/analyze/1.1/payload.d.ts.map +1 -0
- package/dist/persona/correlation/analyze/1.1/payload.js +372 -0
- package/dist/persona/correlation/analyze/1.1/payload.js.map +1 -0
- package/dist/persona/facet/list/1.0/payload.d.ts +4 -4
- package/dist/persona/facet/list/1.0/payload.js +2 -2
- package/dist/persona/facet/list/1.0/payload.js.map +1 -1
- package/dist/persona/facet/put/1.0/payload.d.ts +4 -4
- package/dist/persona/facet/put/1.0/payload.js +2 -2
- package/dist/persona/facet/put/1.0/payload.js.map +1 -1
- package/dist/persona/local/profile/put/1.0/payload.d.ts +10 -10
- package/dist/persona/local/profile/put/1.0/payload.js +4 -4
- package/dist/persona/local/profile/put/1.0/payload.js.map +1 -1
- package/dist/persona/world/delete/1.0/payload.d.ts +310 -0
- package/dist/persona/world/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/world/delete/1.0/payload.js +169 -0
- package/dist/persona/world/delete/1.0/payload.js.map +1 -0
- package/dist/persona/world/list/1.0/payload.d.ts +599 -0
- package/dist/persona/world/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/world/list/1.0/payload.js +332 -0
- package/dist/persona/world/list/1.0/payload.js.map +1 -0
- package/dist/persona/world/put/1.0/payload.d.ts +490 -0
- package/dist/persona/world/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/world/put/1.0/payload.js +272 -0
- package/dist/persona/world/put/1.0/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +5 -1
- package/src/index.ts +5 -0
- package/src/persona/_shared/0.1/persona-record.ts +1 -1
- package/src/persona/attribute/get/1.0/payload.ts +785 -0
- package/src/persona/correlation/analyze/1.1/payload.ts +514 -0
- package/src/persona/facet/list/1.0/payload.ts +2 -2
- package/src/persona/facet/put/1.0/payload.ts +2 -2
- package/src/persona/local/profile/put/1.0/payload.ts +6 -6
- package/src/persona/world/delete/1.0/payload.ts +212 -0
- package/src/persona/world/list/1.0/payload.ts +402 -0
- package/src/persona/world/put/1.0/payload.ts +339 -0
|
@@ -42,12 +42,12 @@ export interface PersonaLocalProfilePutResponsePayload {
|
|
|
42
42
|
version: Version;
|
|
43
43
|
created: boolean;
|
|
44
44
|
/**
|
|
45
|
-
* 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.
|
|
45
|
+
* A correlation assessment of what was just written, and it is **conditional**: a maintainer MUST include it only for a caller authorized to read across the holder's contexts, and MUST omit it entirely otherwise. 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. But the index is answerable only to the holder, and returning its answer to a context-scoped caller hands that caller a yes/no oracle on any value it cares to guess — one guess per write, against the whole pool. No value leaves either way; a confirmed guess at a low-entropy value (a name, an address, a date of birth) is disclosure all the same.
|
|
46
46
|
*/
|
|
47
47
|
correlation?: {
|
|
48
48
|
severity: "none" | "low" | "high";
|
|
49
49
|
/**
|
|
50
|
-
* True when a value here also appears in the holder's pool
|
|
50
|
+
* True when a value here also appears in the holder's pool — the signal that a throwaway is not throwaway. Present only under the condition on `correlation` itself: this member is the oracle, and a maintainer that omits `correlation` for a context-scoped caller has omitted this.
|
|
51
51
|
*/
|
|
52
52
|
matchesPoolValue?: boolean;
|
|
53
53
|
};
|
|
@@ -156,7 +156,7 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
156
156
|
readonly type: "object";
|
|
157
157
|
readonly additionalProperties: false;
|
|
158
158
|
readonly required: readonly ["severity"];
|
|
159
|
-
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.
|
|
159
|
+
readonly description: "A correlation assessment of what was just written, and it is **conditional**: a maintainer MUST include it only for a caller authorized to read across the holder's contexts, and MUST omit it entirely otherwise. 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. But the index is answerable only to the holder, and returning its answer to a context-scoped caller hands that caller a yes/no oracle on any value it cares to guess — one guess per write, against the whole pool. No value leaves either way; a confirmed guess at a low-entropy value (a name, an address, a date of birth) is disclosure all the same.";
|
|
160
160
|
readonly properties: {
|
|
161
161
|
readonly severity: {
|
|
162
162
|
readonly type: "string";
|
|
@@ -164,7 +164,7 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
164
164
|
};
|
|
165
165
|
readonly matchesPoolValue: {
|
|
166
166
|
readonly type: "boolean";
|
|
167
|
-
readonly description: "True when a value here also appears in the holder's pool
|
|
167
|
+
readonly description: "True when a value here also appears in the holder's pool — the signal that a throwaway is not throwaway. Present only under the condition on `correlation` itself: this member is the oracle, and a maintainer that omits `correlation` for a context-scoped caller has omitted this.";
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
170
|
};
|
|
@@ -249,7 +249,7 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
249
249
|
readonly type: "object";
|
|
250
250
|
readonly additionalProperties: false;
|
|
251
251
|
readonly required: readonly ["severity"];
|
|
252
|
-
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.
|
|
252
|
+
readonly description: "A correlation assessment of what was just written, and it is **conditional**: a maintainer MUST include it only for a caller authorized to read across the holder's contexts, and MUST omit it entirely otherwise. 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. But the index is answerable only to the holder, and returning its answer to a context-scoped caller hands that caller a yes/no oracle on any value it cares to guess — one guess per write, against the whole pool. No value leaves either way; a confirmed guess at a low-entropy value (a name, an address, a date of birth) is disclosure all the same.";
|
|
253
253
|
readonly properties: {
|
|
254
254
|
readonly severity: {
|
|
255
255
|
readonly type: "string";
|
|
@@ -257,7 +257,7 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
257
257
|
};
|
|
258
258
|
readonly matchesPoolValue: {
|
|
259
259
|
readonly type: "boolean";
|
|
260
|
-
readonly description: "True when a value here also appears in the holder's pool
|
|
260
|
+
readonly description: "True when a value here also appears in the holder's pool — the signal that a throwaway is not throwaway. Present only under the condition on `correlation` itself: this member is the oracle, and a maintainer that omits `correlation` for a context-scoped caller has omitted this.";
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
263
|
};
|
|
@@ -412,7 +412,7 @@ export declare const SPEC: {
|
|
|
412
412
|
readonly type: "object";
|
|
413
413
|
readonly additionalProperties: false;
|
|
414
414
|
readonly required: readonly ["severity"];
|
|
415
|
-
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.
|
|
415
|
+
readonly description: "A correlation assessment of what was just written, and it is **conditional**: a maintainer MUST include it only for a caller authorized to read across the holder's contexts, and MUST omit it entirely otherwise. 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. But the index is answerable only to the holder, and returning its answer to a context-scoped caller hands that caller a yes/no oracle on any value it cares to guess — one guess per write, against the whole pool. No value leaves either way; a confirmed guess at a low-entropy value (a name, an address, a date of birth) is disclosure all the same.";
|
|
416
416
|
readonly properties: {
|
|
417
417
|
readonly severity: {
|
|
418
418
|
readonly type: "string";
|
|
@@ -420,7 +420,7 @@ export declare const SPEC: {
|
|
|
420
420
|
};
|
|
421
421
|
readonly matchesPoolValue: {
|
|
422
422
|
readonly type: "boolean";
|
|
423
|
-
readonly description: "True when a value here also appears in the holder's pool
|
|
423
|
+
readonly description: "True when a value here also appears in the holder's pool — the signal that a throwaway is not throwaway. Present only under the condition on `correlation` itself: this member is the oracle, and a maintainer that omits `correlation` for a context-scoped caller has omitted this.";
|
|
424
424
|
};
|
|
425
425
|
};
|
|
426
426
|
};
|
|
@@ -516,7 +516,7 @@ export declare const RESPONSE_SPEC: {
|
|
|
516
516
|
readonly type: "object";
|
|
517
517
|
readonly additionalProperties: false;
|
|
518
518
|
readonly required: readonly ["severity"];
|
|
519
|
-
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.
|
|
519
|
+
readonly description: "A correlation assessment of what was just written, and it is **conditional**: a maintainer MUST include it only for a caller authorized to read across the holder's contexts, and MUST omit it entirely otherwise. 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. But the index is answerable only to the holder, and returning its answer to a context-scoped caller hands that caller a yes/no oracle on any value it cares to guess — one guess per write, against the whole pool. No value leaves either way; a confirmed guess at a low-entropy value (a name, an address, a date of birth) is disclosure all the same.";
|
|
520
520
|
readonly properties: {
|
|
521
521
|
readonly severity: {
|
|
522
522
|
readonly type: "string";
|
|
@@ -524,7 +524,7 @@ export declare const RESPONSE_SPEC: {
|
|
|
524
524
|
};
|
|
525
525
|
readonly matchesPoolValue: {
|
|
526
526
|
readonly type: "boolean";
|
|
527
|
-
readonly description: "True when a value here also appears in the holder's pool
|
|
527
|
+
readonly description: "True when a value here also appears in the holder's pool — the signal that a throwaway is not throwaway. Present only under the condition on `correlation` itself: this member is the oracle, and a maintainer that omits `correlation` for a context-scoped caller has omitted this.";
|
|
528
528
|
};
|
|
529
529
|
};
|
|
530
530
|
};
|
|
@@ -115,7 +115,7 @@ export const PAYLOAD_SCHEMA = {
|
|
|
115
115
|
"required": [
|
|
116
116
|
"severity"
|
|
117
117
|
],
|
|
118
|
-
"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.
|
|
118
|
+
"description": "A correlation assessment of what was just written, and it is **conditional**: a maintainer MUST include it only for a caller authorized to read across the holder's contexts, and MUST omit it entirely otherwise. 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. But the index is answerable only to the holder, and returning its answer to a context-scoped caller hands that caller a yes/no oracle on any value it cares to guess — one guess per write, against the whole pool. No value leaves either way; a confirmed guess at a low-entropy value (a name, an address, a date of birth) is disclosure all the same.",
|
|
119
119
|
"properties": {
|
|
120
120
|
"severity": {
|
|
121
121
|
"type": "string",
|
|
@@ -127,7 +127,7 @@ export const PAYLOAD_SCHEMA = {
|
|
|
127
127
|
},
|
|
128
128
|
"matchesPoolValue": {
|
|
129
129
|
"type": "boolean",
|
|
130
|
-
"description": "True when a value here also appears in the holder's pool
|
|
130
|
+
"description": "True when a value here also appears in the holder's pool — the signal that a throwaway is not throwaway. Present only under the condition on `correlation` itself: this member is the oracle, and a maintainer that omits `correlation` for a context-scoped caller has omitted this."
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
},
|
|
@@ -224,7 +224,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
224
224
|
"required": [
|
|
225
225
|
"severity"
|
|
226
226
|
],
|
|
227
|
-
"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.
|
|
227
|
+
"description": "A correlation assessment of what was just written, and it is **conditional**: a maintainer MUST include it only for a caller authorized to read across the holder's contexts, and MUST omit it entirely otherwise. 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. But the index is answerable only to the holder, and returning its answer to a context-scoped caller hands that caller a yes/no oracle on any value it cares to guess — one guess per write, against the whole pool. No value leaves either way; a confirmed guess at a low-entropy value (a name, an address, a date of birth) is disclosure all the same.",
|
|
228
228
|
"properties": {
|
|
229
229
|
"severity": {
|
|
230
230
|
"type": "string",
|
|
@@ -236,7 +236,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
236
236
|
},
|
|
237
237
|
"matchesPoolValue": {
|
|
238
238
|
"type": "boolean",
|
|
239
|
-
"description": "True when a value here also appears in the holder's pool
|
|
239
|
+
"description": "True when a value here also appears in the holder's pool — the signal that a throwaway is not throwaway. Present only under the condition on `correlation` itself: this member is the oracle, and a maintainer that omits `correlation` for a context-scoped caller has omitted this."
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/persona/local/profile/put/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2DAAoE,CAAC;AAK7F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oEAA6E,CAAC;AAK/G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,2DAA2D;IAClE,OAAO,EAAE,qCAAqC;IAC9C,aAAa,EAAE,4NAA4N;IAC3O,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;QACX,MAAM;QACN,SAAS;KACV;IACD,Y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V;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE;oBACX,MAAM,EAAE,cAAc;iBACvB;gBACD,SAAS,EAAE;oBACT,MAAM,EAAE,iBAAiB;iBAC1B;gBACD,SAAS,EAAE;oBACT,MAAM,EAAE,SAAS;iBAClB;gBACD,aAAa,EAAE;oBACb,MAAM,EAAE,QAAQ;oBAChB,sBAAsB,EAAE,KAAK;oBAC7B,UAAU,EAAE;wBACV,UAAU;qBACX;oBACD,aAAa,EAAE
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/persona/local/profile/put/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2DAAoE,CAAC;AAK7F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oEAA6E,CAAC;AAK/G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,2DAA2D;IAClE,OAAO,EAAE,qCAAqC;IAC9C,aAAa,EAAE,4NAA4N;IAC3O,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;QACX,MAAM;QACN,SAAS;KACV;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;SACf;QACD,WAAW,EAAE;YACX,MAAM,EAAE,cAAc;SACvB;QACD,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;SACjB;QACD,SAAS,EAAE;YACT,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,EAAE;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,QAAQ;gBAChB,sBAAsB,EAAE,KAAK;gBAC7B,UAAU,EAAE;oBACV,QAAQ;iBACT;gBACD,aAAa,E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,0 +1,310 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/world/delete/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ExpectedVersion_PersonaV0_1 as ExpectedVersion, Ext, Ulid } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Delete one world. The faces and attributes that belonged to it are untouched — a world is a way of arranging what the holder keeps, never a container for it.
|
|
8
|
+
*/
|
|
9
|
+
export interface PersonaWorldDeletePayload {
|
|
10
|
+
worldId: Ulid;
|
|
11
|
+
/**
|
|
12
|
+
* Optional precondition. Supply the version a prior read returned to refuse a delete against a world that has changed since it was looked at.
|
|
13
|
+
*/
|
|
14
|
+
expectedVersion?: ExpectedVersion;
|
|
15
|
+
ext?: Ext;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Success response to persona/world/delete. Type https://trusttasks.org/spec/persona/world/delete/1.0#response.
|
|
19
|
+
*/
|
|
20
|
+
export interface PersonaWorldDeleteResponsePayload {
|
|
21
|
+
/**
|
|
22
|
+
* False when there was nothing to delete. A successful no-op rather than an error: a producer retrying after a lost response must be able to reach the state it wanted without having to tell a second delete apart from a first.
|
|
23
|
+
*/
|
|
24
|
+
existed: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* How many profiles no longer belong to any world as a result. Nothing was deleted and nothing changed about them — this is the count a consumer needs to say what the screen will look like afterwards, which is the honest end of a sentence that would otherwise read only 'deleted'.
|
|
27
|
+
*/
|
|
28
|
+
releasedFaces?: number;
|
|
29
|
+
ext?: Ext;
|
|
30
|
+
}
|
|
31
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
32
|
+
export type { ExpectedVersion, Ext, Ulid };
|
|
33
|
+
/** Trust Task type URI. */
|
|
34
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/persona/world/delete/1.0";
|
|
35
|
+
/** Stable alias for this specification's request payload shape. */
|
|
36
|
+
export type Payload = PersonaWorldDeletePayload;
|
|
37
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
38
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/persona/world/delete/1.0#response";
|
|
39
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
40
|
+
export type Response = PersonaWorldDeleteResponsePayload;
|
|
41
|
+
/**
|
|
42
|
+
* This specification's payload schema, as a value.
|
|
43
|
+
*
|
|
44
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
45
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
46
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
47
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
48
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
49
|
+
*/
|
|
50
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
51
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
52
|
+
readonly $id: "https://trusttasks.org/spec/persona/world/delete/1.0";
|
|
53
|
+
readonly title: "Persona — World Delete — payload";
|
|
54
|
+
readonly description: "Delete one world. The faces and attributes that belonged to it are untouched — a world is a way of arranging what the holder keeps, never a container for it.";
|
|
55
|
+
readonly type: "object";
|
|
56
|
+
readonly additionalProperties: false;
|
|
57
|
+
readonly required: readonly ["worldId"];
|
|
58
|
+
readonly properties: {
|
|
59
|
+
readonly worldId: {
|
|
60
|
+
readonly $ref: "#/$defs/Ulid";
|
|
61
|
+
};
|
|
62
|
+
readonly expectedVersion: {
|
|
63
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
64
|
+
readonly description: "Optional precondition. Supply the version a prior read returned to refuse a delete against a world that has changed since it was looked at.";
|
|
65
|
+
};
|
|
66
|
+
readonly ext: {
|
|
67
|
+
readonly $ref: "#/$defs/Ext";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly $defs: {
|
|
71
|
+
readonly Response: {
|
|
72
|
+
readonly $anchor: "response";
|
|
73
|
+
readonly title: "Persona World Delete — response payload";
|
|
74
|
+
readonly description: "Success response to persona/world/delete. Type https://trusttasks.org/spec/persona/world/delete/1.0#response.";
|
|
75
|
+
readonly type: "object";
|
|
76
|
+
readonly additionalProperties: false;
|
|
77
|
+
readonly required: readonly ["existed"];
|
|
78
|
+
readonly properties: {
|
|
79
|
+
readonly existed: {
|
|
80
|
+
readonly type: "boolean";
|
|
81
|
+
readonly description: "False when there was nothing to delete. A successful no-op rather than an error: a producer retrying after a lost response must be able to reach the state it wanted without having to tell a second delete apart from a first.";
|
|
82
|
+
};
|
|
83
|
+
readonly releasedFaces: {
|
|
84
|
+
readonly type: "integer";
|
|
85
|
+
readonly minimum: 0;
|
|
86
|
+
readonly description: "How many profiles no longer belong to any world as a result. Nothing was deleted and nothing changed about them — this is the count a consumer needs to say what the screen will look like afterwards, which is the honest end of a sentence that would otherwise read only 'deleted'.";
|
|
87
|
+
};
|
|
88
|
+
readonly ext: {
|
|
89
|
+
readonly $ref: "#/$defs/Ext";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly Ext: {
|
|
94
|
+
readonly title: "Ext";
|
|
95
|
+
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.";
|
|
96
|
+
readonly type: "object";
|
|
97
|
+
readonly minProperties: 1;
|
|
98
|
+
readonly additionalProperties: true;
|
|
99
|
+
readonly propertyNames: {
|
|
100
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly ExpectedVersion: {
|
|
104
|
+
readonly title: "ExpectedVersion";
|
|
105
|
+
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.";
|
|
106
|
+
readonly type: "integer";
|
|
107
|
+
readonly minimum: 0;
|
|
108
|
+
};
|
|
109
|
+
readonly Ulid: {
|
|
110
|
+
readonly title: "Ulid";
|
|
111
|
+
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.";
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
118
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
119
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
120
|
+
readonly $ref: "#/$defs/Response";
|
|
121
|
+
readonly $defs: {
|
|
122
|
+
readonly Response: {
|
|
123
|
+
readonly $anchor: "response";
|
|
124
|
+
readonly title: "Persona World Delete — response payload";
|
|
125
|
+
readonly description: "Success response to persona/world/delete. Type https://trusttasks.org/spec/persona/world/delete/1.0#response.";
|
|
126
|
+
readonly type: "object";
|
|
127
|
+
readonly additionalProperties: false;
|
|
128
|
+
readonly required: readonly ["existed"];
|
|
129
|
+
readonly properties: {
|
|
130
|
+
readonly existed: {
|
|
131
|
+
readonly type: "boolean";
|
|
132
|
+
readonly description: "False when there was nothing to delete. A successful no-op rather than an error: a producer retrying after a lost response must be able to reach the state it wanted without having to tell a second delete apart from a first.";
|
|
133
|
+
};
|
|
134
|
+
readonly releasedFaces: {
|
|
135
|
+
readonly type: "integer";
|
|
136
|
+
readonly minimum: 0;
|
|
137
|
+
readonly description: "How many profiles no longer belong to any world as a result. Nothing was deleted and nothing changed about them — this is the count a consumer needs to say what the screen will look like afterwards, which is the honest end of a sentence that would otherwise read only 'deleted'.";
|
|
138
|
+
};
|
|
139
|
+
readonly ext: {
|
|
140
|
+
readonly $ref: "#/$defs/Ext";
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
readonly Ext: {
|
|
145
|
+
readonly title: "Ext";
|
|
146
|
+
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.";
|
|
147
|
+
readonly type: "object";
|
|
148
|
+
readonly minProperties: 1;
|
|
149
|
+
readonly additionalProperties: true;
|
|
150
|
+
readonly propertyNames: {
|
|
151
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
readonly ExpectedVersion: {
|
|
155
|
+
readonly title: "ExpectedVersion";
|
|
156
|
+
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.";
|
|
157
|
+
readonly type: "integer";
|
|
158
|
+
readonly minimum: 0;
|
|
159
|
+
};
|
|
160
|
+
readonly Ulid: {
|
|
161
|
+
readonly title: "Ulid";
|
|
162
|
+
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.";
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
170
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
171
|
+
* per-specification and cannot be derived from the document alone, and
|
|
172
|
+
* item 2 needs the schema this carries.
|
|
173
|
+
*/
|
|
174
|
+
export declare const SPEC: {
|
|
175
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/world/delete/1.0";
|
|
176
|
+
readonly isBearer: false;
|
|
177
|
+
readonly isProofRequired: true;
|
|
178
|
+
readonly isRecipientRequired: true;
|
|
179
|
+
readonly isIssuedAtRequired: true;
|
|
180
|
+
readonly payloadSchema: {
|
|
181
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
182
|
+
readonly $id: "https://trusttasks.org/spec/persona/world/delete/1.0";
|
|
183
|
+
readonly title: "Persona — World Delete — payload";
|
|
184
|
+
readonly description: "Delete one world. The faces and attributes that belonged to it are untouched — a world is a way of arranging what the holder keeps, never a container for it.";
|
|
185
|
+
readonly type: "object";
|
|
186
|
+
readonly additionalProperties: false;
|
|
187
|
+
readonly required: readonly ["worldId"];
|
|
188
|
+
readonly properties: {
|
|
189
|
+
readonly worldId: {
|
|
190
|
+
readonly $ref: "#/$defs/Ulid";
|
|
191
|
+
};
|
|
192
|
+
readonly expectedVersion: {
|
|
193
|
+
readonly $ref: "#/$defs/ExpectedVersion";
|
|
194
|
+
readonly description: "Optional precondition. Supply the version a prior read returned to refuse a delete against a world that has changed since it was looked at.";
|
|
195
|
+
};
|
|
196
|
+
readonly ext: {
|
|
197
|
+
readonly $ref: "#/$defs/Ext";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
readonly $defs: {
|
|
201
|
+
readonly Response: {
|
|
202
|
+
readonly $anchor: "response";
|
|
203
|
+
readonly title: "Persona World Delete — response payload";
|
|
204
|
+
readonly description: "Success response to persona/world/delete. Type https://trusttasks.org/spec/persona/world/delete/1.0#response.";
|
|
205
|
+
readonly type: "object";
|
|
206
|
+
readonly additionalProperties: false;
|
|
207
|
+
readonly required: readonly ["existed"];
|
|
208
|
+
readonly properties: {
|
|
209
|
+
readonly existed: {
|
|
210
|
+
readonly type: "boolean";
|
|
211
|
+
readonly description: "False when there was nothing to delete. A successful no-op rather than an error: a producer retrying after a lost response must be able to reach the state it wanted without having to tell a second delete apart from a first.";
|
|
212
|
+
};
|
|
213
|
+
readonly releasedFaces: {
|
|
214
|
+
readonly type: "integer";
|
|
215
|
+
readonly minimum: 0;
|
|
216
|
+
readonly description: "How many profiles no longer belong to any world as a result. Nothing was deleted and nothing changed about them — this is the count a consumer needs to say what the screen will look like afterwards, which is the honest end of a sentence that would otherwise read only 'deleted'.";
|
|
217
|
+
};
|
|
218
|
+
readonly ext: {
|
|
219
|
+
readonly $ref: "#/$defs/Ext";
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
readonly Ext: {
|
|
224
|
+
readonly title: "Ext";
|
|
225
|
+
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.";
|
|
226
|
+
readonly type: "object";
|
|
227
|
+
readonly minProperties: 1;
|
|
228
|
+
readonly additionalProperties: true;
|
|
229
|
+
readonly propertyNames: {
|
|
230
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
readonly ExpectedVersion: {
|
|
234
|
+
readonly title: "ExpectedVersion";
|
|
235
|
+
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.";
|
|
236
|
+
readonly type: "integer";
|
|
237
|
+
readonly minimum: 0;
|
|
238
|
+
};
|
|
239
|
+
readonly Ulid: {
|
|
240
|
+
readonly title: "Ulid";
|
|
241
|
+
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.";
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
250
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
251
|
+
* parties (§7.3 item 5).
|
|
252
|
+
*/
|
|
253
|
+
export declare const RESPONSE_SPEC: {
|
|
254
|
+
readonly typeUri: "https://trusttasks.org/spec/persona/world/delete/1.0#response";
|
|
255
|
+
readonly isBearer: false;
|
|
256
|
+
readonly isProofRequired: true;
|
|
257
|
+
readonly isRecipientRequired: true;
|
|
258
|
+
readonly isIssuedAtRequired: true;
|
|
259
|
+
readonly payloadSchema: {
|
|
260
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
261
|
+
readonly $ref: "#/$defs/Response";
|
|
262
|
+
readonly $defs: {
|
|
263
|
+
readonly Response: {
|
|
264
|
+
readonly $anchor: "response";
|
|
265
|
+
readonly title: "Persona World Delete — response payload";
|
|
266
|
+
readonly description: "Success response to persona/world/delete. Type https://trusttasks.org/spec/persona/world/delete/1.0#response.";
|
|
267
|
+
readonly type: "object";
|
|
268
|
+
readonly additionalProperties: false;
|
|
269
|
+
readonly required: readonly ["existed"];
|
|
270
|
+
readonly properties: {
|
|
271
|
+
readonly existed: {
|
|
272
|
+
readonly type: "boolean";
|
|
273
|
+
readonly description: "False when there was nothing to delete. A successful no-op rather than an error: a producer retrying after a lost response must be able to reach the state it wanted without having to tell a second delete apart from a first.";
|
|
274
|
+
};
|
|
275
|
+
readonly releasedFaces: {
|
|
276
|
+
readonly type: "integer";
|
|
277
|
+
readonly minimum: 0;
|
|
278
|
+
readonly description: "How many profiles no longer belong to any world as a result. Nothing was deleted and nothing changed about them — this is the count a consumer needs to say what the screen will look like afterwards, which is the honest end of a sentence that would otherwise read only 'deleted'.";
|
|
279
|
+
};
|
|
280
|
+
readonly ext: {
|
|
281
|
+
readonly $ref: "#/$defs/Ext";
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
readonly Ext: {
|
|
286
|
+
readonly title: "Ext";
|
|
287
|
+
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.";
|
|
288
|
+
readonly type: "object";
|
|
289
|
+
readonly minProperties: 1;
|
|
290
|
+
readonly additionalProperties: true;
|
|
291
|
+
readonly propertyNames: {
|
|
292
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
readonly ExpectedVersion: {
|
|
296
|
+
readonly title: "ExpectedVersion";
|
|
297
|
+
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.";
|
|
298
|
+
readonly type: "integer";
|
|
299
|
+
readonly minimum: 0;
|
|
300
|
+
};
|
|
301
|
+
readonly Ulid: {
|
|
302
|
+
readonly title: "Ulid";
|
|
303
|
+
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.";
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/persona/world/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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