@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,391 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/owner/transfer/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { AuthorityPresentation, Ext } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A room's owner hands ownership to another member, deliberately and while still present. Distinct from `rooms/owner/claim`, which is what happens when they are not.
|
|
8
|
+
*/
|
|
9
|
+
export interface RoomsOwnerTransferPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The room changing hands.
|
|
12
|
+
*/
|
|
13
|
+
roomId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The member taking ownership. MUST already be a member of the room's group: an owner who cannot commit cannot renew the room, and renewal is the one thing ownership exists to do.
|
|
16
|
+
*/
|
|
17
|
+
newOwnerDid: string;
|
|
18
|
+
/**
|
|
19
|
+
* Must confer `admin` at this room's scope. Transferring is the most consequential thing an owner does, and it is the same grant that mints epochs.
|
|
20
|
+
*/
|
|
21
|
+
presentation: AuthorityPresentation;
|
|
22
|
+
/**
|
|
23
|
+
* Why, for the room's audit trail. An ownership change with no stated reason is the one a member cannot interpret later.
|
|
24
|
+
*/
|
|
25
|
+
reason?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
28
|
+
*/
|
|
29
|
+
ext?: Ext;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Success response to rooms/owner/transfer. Type https://trusttasks.org/spec/rooms/owner/transfer/0.1#response.
|
|
33
|
+
*/
|
|
34
|
+
export interface RoomsOwnerTransferResponsePayload {
|
|
35
|
+
roomId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The owner after the transfer.
|
|
38
|
+
*/
|
|
39
|
+
ownerDid: string;
|
|
40
|
+
ext?: Ext;
|
|
41
|
+
}
|
|
42
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
43
|
+
export type { AuthorityPresentation, Ext };
|
|
44
|
+
/** Trust Task type URI. */
|
|
45
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/owner/transfer/0.1";
|
|
46
|
+
/** Stable alias for this specification's request payload shape. */
|
|
47
|
+
export type Payload = RoomsOwnerTransferPayload;
|
|
48
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
49
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/owner/transfer/0.1#response";
|
|
50
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
51
|
+
export type Response = RoomsOwnerTransferResponsePayload;
|
|
52
|
+
/**
|
|
53
|
+
* This specification's payload schema, as a value.
|
|
54
|
+
*
|
|
55
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
56
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
57
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
58
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
59
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
60
|
+
*/
|
|
61
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
62
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
63
|
+
readonly $id: "https://trusttasks.org/spec/rooms/owner/transfer/0.1";
|
|
64
|
+
readonly title: "Rooms Owner Transfer — payload";
|
|
65
|
+
readonly description: "A room's owner hands ownership to another member, deliberately and while still present. Distinct from `rooms/owner/claim`, which is what happens when they are not.";
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
readonly additionalProperties: false;
|
|
68
|
+
readonly required: readonly ["roomId", "newOwnerDid", "presentation"];
|
|
69
|
+
readonly properties: {
|
|
70
|
+
readonly roomId: {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly description: "The room changing hands.";
|
|
73
|
+
};
|
|
74
|
+
readonly newOwnerDid: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly description: "The member taking ownership. MUST already be a member of the room's group: an owner who cannot commit cannot renew the room, and renewal is the one thing ownership exists to do.";
|
|
77
|
+
};
|
|
78
|
+
readonly presentation: {
|
|
79
|
+
readonly $ref: "#/$defs/AuthorityPresentation";
|
|
80
|
+
readonly description: "Must confer `admin` at this room's scope. Transferring is the most consequential thing an owner does, and it is the same grant that mints epochs.";
|
|
81
|
+
};
|
|
82
|
+
readonly reason: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
readonly maxLength: 512;
|
|
85
|
+
readonly description: "Why, for the room's audit trail. An ownership change with no stated reason is the one a member cannot interpret later.";
|
|
86
|
+
};
|
|
87
|
+
readonly ext: {
|
|
88
|
+
readonly $ref: "#/$defs/Ext";
|
|
89
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly $defs: {
|
|
93
|
+
readonly Response: {
|
|
94
|
+
readonly $anchor: "response";
|
|
95
|
+
readonly title: "Rooms Owner Transfer — response payload";
|
|
96
|
+
readonly description: "Success response to rooms/owner/transfer. Type https://trusttasks.org/spec/rooms/owner/transfer/0.1#response.";
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly additionalProperties: false;
|
|
99
|
+
readonly required: readonly ["roomId", "ownerDid"];
|
|
100
|
+
readonly properties: {
|
|
101
|
+
readonly roomId: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
};
|
|
104
|
+
readonly ownerDid: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly description: "The owner after the transfer.";
|
|
107
|
+
};
|
|
108
|
+
readonly ext: {
|
|
109
|
+
readonly $ref: "#/$defs/Ext";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly Ext: {
|
|
114
|
+
readonly title: "Ext";
|
|
115
|
+
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.";
|
|
116
|
+
readonly type: "object";
|
|
117
|
+
readonly minProperties: 1;
|
|
118
|
+
readonly additionalProperties: true;
|
|
119
|
+
readonly propertyNames: {
|
|
120
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
readonly AuthorityPresentation: {
|
|
124
|
+
readonly title: "AuthorityPresentation";
|
|
125
|
+
readonly type: "object";
|
|
126
|
+
readonly additionalProperties: false;
|
|
127
|
+
readonly required: readonly ["membership", "authority"];
|
|
128
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
|
|
129
|
+
readonly properties: {
|
|
130
|
+
readonly membership: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
|
|
133
|
+
};
|
|
134
|
+
readonly authority: {
|
|
135
|
+
readonly type: "array";
|
|
136
|
+
readonly minItems: 1;
|
|
137
|
+
readonly maxItems: 8;
|
|
138
|
+
readonly items: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
};
|
|
141
|
+
readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
|
|
142
|
+
};
|
|
143
|
+
readonly subjectBinding: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
152
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
153
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
154
|
+
readonly $ref: "#/$defs/Response";
|
|
155
|
+
readonly $defs: {
|
|
156
|
+
readonly Response: {
|
|
157
|
+
readonly $anchor: "response";
|
|
158
|
+
readonly title: "Rooms Owner Transfer — response payload";
|
|
159
|
+
readonly description: "Success response to rooms/owner/transfer. Type https://trusttasks.org/spec/rooms/owner/transfer/0.1#response.";
|
|
160
|
+
readonly type: "object";
|
|
161
|
+
readonly additionalProperties: false;
|
|
162
|
+
readonly required: readonly ["roomId", "ownerDid"];
|
|
163
|
+
readonly properties: {
|
|
164
|
+
readonly roomId: {
|
|
165
|
+
readonly type: "string";
|
|
166
|
+
};
|
|
167
|
+
readonly ownerDid: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly description: "The owner after the transfer.";
|
|
170
|
+
};
|
|
171
|
+
readonly ext: {
|
|
172
|
+
readonly $ref: "#/$defs/Ext";
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly Ext: {
|
|
177
|
+
readonly title: "Ext";
|
|
178
|
+
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.";
|
|
179
|
+
readonly type: "object";
|
|
180
|
+
readonly minProperties: 1;
|
|
181
|
+
readonly additionalProperties: true;
|
|
182
|
+
readonly propertyNames: {
|
|
183
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly AuthorityPresentation: {
|
|
187
|
+
readonly title: "AuthorityPresentation";
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
readonly additionalProperties: false;
|
|
190
|
+
readonly required: readonly ["membership", "authority"];
|
|
191
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
|
|
192
|
+
readonly properties: {
|
|
193
|
+
readonly membership: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
|
|
196
|
+
};
|
|
197
|
+
readonly authority: {
|
|
198
|
+
readonly type: "array";
|
|
199
|
+
readonly minItems: 1;
|
|
200
|
+
readonly maxItems: 8;
|
|
201
|
+
readonly items: {
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
};
|
|
204
|
+
readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
|
|
205
|
+
};
|
|
206
|
+
readonly subjectBinding: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
216
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
217
|
+
* per-specification and cannot be derived from the document alone, and
|
|
218
|
+
* item 2 needs the schema this carries.
|
|
219
|
+
*/
|
|
220
|
+
export declare const SPEC: {
|
|
221
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/owner/transfer/0.1";
|
|
222
|
+
readonly isBearer: false;
|
|
223
|
+
readonly isProofRequired: true;
|
|
224
|
+
readonly isRecipientRequired: true;
|
|
225
|
+
readonly isIssuedAtRequired: true;
|
|
226
|
+
readonly payloadSchema: {
|
|
227
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
228
|
+
readonly $id: "https://trusttasks.org/spec/rooms/owner/transfer/0.1";
|
|
229
|
+
readonly title: "Rooms Owner Transfer — payload";
|
|
230
|
+
readonly description: "A room's owner hands ownership to another member, deliberately and while still present. Distinct from `rooms/owner/claim`, which is what happens when they are not.";
|
|
231
|
+
readonly type: "object";
|
|
232
|
+
readonly additionalProperties: false;
|
|
233
|
+
readonly required: readonly ["roomId", "newOwnerDid", "presentation"];
|
|
234
|
+
readonly properties: {
|
|
235
|
+
readonly roomId: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly description: "The room changing hands.";
|
|
238
|
+
};
|
|
239
|
+
readonly newOwnerDid: {
|
|
240
|
+
readonly type: "string";
|
|
241
|
+
readonly description: "The member taking ownership. MUST already be a member of the room's group: an owner who cannot commit cannot renew the room, and renewal is the one thing ownership exists to do.";
|
|
242
|
+
};
|
|
243
|
+
readonly presentation: {
|
|
244
|
+
readonly $ref: "#/$defs/AuthorityPresentation";
|
|
245
|
+
readonly description: "Must confer `admin` at this room's scope. Transferring is the most consequential thing an owner does, and it is the same grant that mints epochs.";
|
|
246
|
+
};
|
|
247
|
+
readonly reason: {
|
|
248
|
+
readonly type: "string";
|
|
249
|
+
readonly maxLength: 512;
|
|
250
|
+
readonly description: "Why, for the room's audit trail. An ownership change with no stated reason is the one a member cannot interpret later.";
|
|
251
|
+
};
|
|
252
|
+
readonly ext: {
|
|
253
|
+
readonly $ref: "#/$defs/Ext";
|
|
254
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
readonly $defs: {
|
|
258
|
+
readonly Response: {
|
|
259
|
+
readonly $anchor: "response";
|
|
260
|
+
readonly title: "Rooms Owner Transfer — response payload";
|
|
261
|
+
readonly description: "Success response to rooms/owner/transfer. Type https://trusttasks.org/spec/rooms/owner/transfer/0.1#response.";
|
|
262
|
+
readonly type: "object";
|
|
263
|
+
readonly additionalProperties: false;
|
|
264
|
+
readonly required: readonly ["roomId", "ownerDid"];
|
|
265
|
+
readonly properties: {
|
|
266
|
+
readonly roomId: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
};
|
|
269
|
+
readonly ownerDid: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly description: "The owner after the transfer.";
|
|
272
|
+
};
|
|
273
|
+
readonly ext: {
|
|
274
|
+
readonly $ref: "#/$defs/Ext";
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
readonly Ext: {
|
|
279
|
+
readonly title: "Ext";
|
|
280
|
+
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.";
|
|
281
|
+
readonly type: "object";
|
|
282
|
+
readonly minProperties: 1;
|
|
283
|
+
readonly additionalProperties: true;
|
|
284
|
+
readonly propertyNames: {
|
|
285
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly AuthorityPresentation: {
|
|
289
|
+
readonly title: "AuthorityPresentation";
|
|
290
|
+
readonly type: "object";
|
|
291
|
+
readonly additionalProperties: false;
|
|
292
|
+
readonly required: readonly ["membership", "authority"];
|
|
293
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
|
|
294
|
+
readonly properties: {
|
|
295
|
+
readonly membership: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
|
|
298
|
+
};
|
|
299
|
+
readonly authority: {
|
|
300
|
+
readonly type: "array";
|
|
301
|
+
readonly minItems: 1;
|
|
302
|
+
readonly maxItems: 8;
|
|
303
|
+
readonly items: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
};
|
|
306
|
+
readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
|
|
307
|
+
};
|
|
308
|
+
readonly subjectBinding: {
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
319
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
320
|
+
* parties (§7.3 item 5).
|
|
321
|
+
*/
|
|
322
|
+
export declare const RESPONSE_SPEC: {
|
|
323
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/owner/transfer/0.1#response";
|
|
324
|
+
readonly isBearer: false;
|
|
325
|
+
readonly isProofRequired: true;
|
|
326
|
+
readonly isRecipientRequired: true;
|
|
327
|
+
readonly isIssuedAtRequired: true;
|
|
328
|
+
readonly payloadSchema: {
|
|
329
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
330
|
+
readonly $ref: "#/$defs/Response";
|
|
331
|
+
readonly $defs: {
|
|
332
|
+
readonly Response: {
|
|
333
|
+
readonly $anchor: "response";
|
|
334
|
+
readonly title: "Rooms Owner Transfer — response payload";
|
|
335
|
+
readonly description: "Success response to rooms/owner/transfer. Type https://trusttasks.org/spec/rooms/owner/transfer/0.1#response.";
|
|
336
|
+
readonly type: "object";
|
|
337
|
+
readonly additionalProperties: false;
|
|
338
|
+
readonly required: readonly ["roomId", "ownerDid"];
|
|
339
|
+
readonly properties: {
|
|
340
|
+
readonly roomId: {
|
|
341
|
+
readonly type: "string";
|
|
342
|
+
};
|
|
343
|
+
readonly ownerDid: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
readonly description: "The owner after the transfer.";
|
|
346
|
+
};
|
|
347
|
+
readonly ext: {
|
|
348
|
+
readonly $ref: "#/$defs/Ext";
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly Ext: {
|
|
353
|
+
readonly title: "Ext";
|
|
354
|
+
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.";
|
|
355
|
+
readonly type: "object";
|
|
356
|
+
readonly minProperties: 1;
|
|
357
|
+
readonly additionalProperties: true;
|
|
358
|
+
readonly propertyNames: {
|
|
359
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
readonly AuthorityPresentation: {
|
|
363
|
+
readonly title: "AuthorityPresentation";
|
|
364
|
+
readonly type: "object";
|
|
365
|
+
readonly additionalProperties: false;
|
|
366
|
+
readonly required: readonly ["membership", "authority"];
|
|
367
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
|
|
368
|
+
readonly properties: {
|
|
369
|
+
readonly membership: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
|
|
372
|
+
};
|
|
373
|
+
readonly authority: {
|
|
374
|
+
readonly type: "array";
|
|
375
|
+
readonly minItems: 1;
|
|
376
|
+
readonly maxItems: 8;
|
|
377
|
+
readonly items: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
};
|
|
380
|
+
readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
|
|
381
|
+
};
|
|
382
|
+
readonly subjectBinding: {
|
|
383
|
+
readonly type: "string";
|
|
384
|
+
readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/rooms/owner/transfer/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAGpF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;I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AAC"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/owner/transfer/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/owner/transfer/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/owner/transfer/0.1#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/rooms/owner/transfer/0.1",
|
|
21
|
+
"title": "Rooms Owner Transfer — payload",
|
|
22
|
+
"description": "A room's owner hands ownership to another member, deliberately and while still present. Distinct from `rooms/owner/claim`, which is what happens when they are not.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"roomId",
|
|
27
|
+
"newOwnerDid",
|
|
28
|
+
"presentation"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"roomId": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The room changing hands."
|
|
34
|
+
},
|
|
35
|
+
"newOwnerDid": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "The member taking ownership. MUST already be a member of the room's group: an owner who cannot commit cannot renew the room, and renewal is the one thing ownership exists to do."
|
|
38
|
+
},
|
|
39
|
+
"presentation": {
|
|
40
|
+
"$ref": "#/$defs/AuthorityPresentation",
|
|
41
|
+
"description": "Must confer `admin` at this room's scope. Transferring is the most consequential thing an owner does, and it is the same grant that mints epochs."
|
|
42
|
+
},
|
|
43
|
+
"reason": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"maxLength": 512,
|
|
46
|
+
"description": "Why, for the room's audit trail. An ownership change with no stated reason is the one a member cannot interpret later."
|
|
47
|
+
},
|
|
48
|
+
"ext": {
|
|
49
|
+
"$ref": "#/$defs/Ext",
|
|
50
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"$defs": {
|
|
54
|
+
"Response": {
|
|
55
|
+
"$anchor": "response",
|
|
56
|
+
"title": "Rooms Owner Transfer — response payload",
|
|
57
|
+
"description": "Success response to rooms/owner/transfer. Type https://trusttasks.org/spec/rooms/owner/transfer/0.1#response.",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": [
|
|
61
|
+
"roomId",
|
|
62
|
+
"ownerDid"
|
|
63
|
+
],
|
|
64
|
+
"properties": {
|
|
65
|
+
"roomId": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"ownerDid": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "The owner after the transfer."
|
|
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
|
+
"AuthorityPresentation": {
|
|
88
|
+
"title": "AuthorityPresentation",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": [
|
|
92
|
+
"membership",
|
|
93
|
+
"authority"
|
|
94
|
+
],
|
|
95
|
+
"description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.",
|
|
96
|
+
"properties": {
|
|
97
|
+
"membership": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile."
|
|
100
|
+
},
|
|
101
|
+
"authority": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"minItems": 1,
|
|
104
|
+
"maxItems": 8,
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"description": "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent."
|
|
109
|
+
},
|
|
110
|
+
"subjectBinding": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"description": "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this."
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
119
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
120
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
121
|
+
"$ref": "#/$defs/Response",
|
|
122
|
+
"$defs": {
|
|
123
|
+
"Response": {
|
|
124
|
+
"$anchor": "response",
|
|
125
|
+
"title": "Rooms Owner Transfer — response payload",
|
|
126
|
+
"description": "Success response to rooms/owner/transfer. Type https://trusttasks.org/spec/rooms/owner/transfer/0.1#response.",
|
|
127
|
+
"type": "object",
|
|
128
|
+
"additionalProperties": false,
|
|
129
|
+
"required": [
|
|
130
|
+
"roomId",
|
|
131
|
+
"ownerDid"
|
|
132
|
+
],
|
|
133
|
+
"properties": {
|
|
134
|
+
"roomId": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"ownerDid": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "The owner after the transfer."
|
|
140
|
+
},
|
|
141
|
+
"ext": {
|
|
142
|
+
"$ref": "#/$defs/Ext"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"Ext": {
|
|
147
|
+
"title": "Ext",
|
|
148
|
+
"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.",
|
|
149
|
+
"type": "object",
|
|
150
|
+
"minProperties": 1,
|
|
151
|
+
"additionalProperties": true,
|
|
152
|
+
"propertyNames": {
|
|
153
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"AuthorityPresentation": {
|
|
157
|
+
"title": "AuthorityPresentation",
|
|
158
|
+
"type": "object",
|
|
159
|
+
"additionalProperties": false,
|
|
160
|
+
"required": [
|
|
161
|
+
"membership",
|
|
162
|
+
"authority"
|
|
163
|
+
],
|
|
164
|
+
"description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.",
|
|
165
|
+
"properties": {
|
|
166
|
+
"membership": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"description": "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile."
|
|
169
|
+
},
|
|
170
|
+
"authority": {
|
|
171
|
+
"type": "array",
|
|
172
|
+
"minItems": 1,
|
|
173
|
+
"maxItems": 8,
|
|
174
|
+
"items": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"description": "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent."
|
|
178
|
+
},
|
|
179
|
+
"subjectBinding": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this."
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
189
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
190
|
+
* per-specification and cannot be derived from the document alone, and
|
|
191
|
+
* item 2 needs the schema this carries.
|
|
192
|
+
*/
|
|
193
|
+
export const SPEC = {
|
|
194
|
+
typeUri: TYPE_URI,
|
|
195
|
+
isBearer: false,
|
|
196
|
+
isProofRequired: true,
|
|
197
|
+
isRecipientRequired: true,
|
|
198
|
+
isIssuedAtRequired: true,
|
|
199
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
203
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
204
|
+
* parties (§7.3 item 5).
|
|
205
|
+
*/
|
|
206
|
+
export const RESPONSE_SPEC = {
|
|
207
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
208
|
+
isBearer: false,
|
|
209
|
+
isProofRequired: true,
|
|
210
|
+
isRecipientRequired: true,
|
|
211
|
+
isIssuedAtRequired: true,
|
|
212
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
213
|
+
};
|
|
214
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/owner/transfer/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAKxF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,gCAAgC;IACzC,aAAa,EAAE,qKAAqK;IACpL,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;QACR,aAAa;QACb,cAAc;KACf;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,0BAA0B;SAC1C;QACD,aAAa,EAAE;YACb,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,mLAAmL;SACnM;QACD,cAAc,EAAE;YACd,MAAM,EAAE,+BAA+B;YACvC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AE,CAAC;oBACb,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;qBACjB;oBACD,aAAa,EAAE,odAAod;iBACpe;gBACD,gBAAgB,EAAE;oBAChB,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,mYAAmY;iBACnZ;aACF;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -18,5 +18,5 @@ export interface AppStateRecordSharedDefinitionForTheVtaAppStateSpecFamily {
|
|
|
18
18
|
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
19
19
|
* See "../../../_shared/components.js".
|
|
20
20
|
*/
|
|
21
|
-
export type { AppStateRecord, ExpectedVersion, Key, Namespace, Version, WriteResult } from "../../../_shared/components.js";
|
|
21
|
+
export type { AppStateRecord, ExpectedVersion_VtaV0_1 as ExpectedVersion, Key, Namespace, Version_VtaV0_1 as Version, WriteResult } from "../../../_shared/components.js";
|
|
22
22
|
//# sourceMappingURL=app-state-record.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-state-record.d.ts","sourceRoot":"","sources":["../../../../src/vta/_shared/0.1/app-state-record.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,yDAAyD;IACxE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"app-state-record.d.ts","sourceRoot":"","sources":["../../../../src/vta/_shared/0.1/app-state-record.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,yDAAyD;IACxE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,cAAc,EAAE,uBAAuB,IAAI,eAAe,EAAE,GAAG,EAAE,SAAS,EAAE,eAAe,IAAI,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
3
|
* Source: specs/vta/app-state/delete/1.0/payload.schema.json
|
|
4
4
|
*/
|
|
5
|
-
import type { ExpectedVersion, Ext, Key, Namespace, Version } from "../../../../_shared/components.js";
|
|
5
|
+
import type { ExpectedVersion_VtaV0_1 as ExpectedVersion, Ext, Key, Namespace, Version_VtaV0_1 as Version } from "../../../../_shared/components.js";
|
|
6
6
|
/**
|
|
7
7
|
* Delete one application-state record, leaving a versioned tombstone so that consumers syncing incrementally learn of the deletion rather than resurrecting the record on their next rebuild. The tombstone is reaped after the maintainer's retention window.
|
|
8
8
|
*/
|