@openvtc/trust-tasks 0.17.5 → 0.17.7
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 +141 -0
- package/dist/_shared/components.d.ts +4 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/step-up/approve-response/0.3/payload.d.ts +887 -0
- package/dist/auth/step-up/approve-response/0.3/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-response/0.3/payload.js +505 -0
- package/dist/auth/step-up/approve-response/0.3/payload.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/persona/claim-types/list/1.0/payload.d.ts +772 -0
- package/dist/persona/claim-types/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/claim-types/list/1.0/payload.js +389 -0
- package/dist/persona/claim-types/list/1.0/payload.js.map +1 -0
- package/dist/rooms/_shared/0.1/room.d.ts +1 -1
- package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
- package/dist/rooms/create/0.1/payload.d.ts +42 -2
- package/dist/rooms/create/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/create/0.1/payload.js +24 -0
- package/dist/rooms/create/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/chain/0.1/payload.d.ts +382 -0
- package/dist/rooms/keys/chain/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/chain/0.1/payload.js +213 -0
- package/dist/rooms/keys/chain/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/list/0.1/payload.d.ts +314 -0
- package/dist/rooms/keys/list/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/list/0.1/payload.js +175 -0
- package/dist/rooms/keys/list/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/seal/0.1/payload.d.ts +352 -0
- package/dist/rooms/keys/seal/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/seal/0.1/payload.js +199 -0
- package/dist/rooms/keys/seal/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/invite/0.1/payload.d.ts +291 -0
- package/dist/rooms/owner/invite/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/invite/0.1/payload.js +158 -0
- package/dist/rooms/owner/invite/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/issue-authority/0.1/payload.d.ts +315 -0
- package/dist/rooms/owner/issue-authority/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/issue-authority/0.1/payload.js +173 -0
- package/dist/rooms/owner/issue-authority/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/issue-membership/0.1/payload.d.ts +291 -0
- package/dist/rooms/owner/issue-membership/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/issue-membership/0.1/payload.js +158 -0
- package/dist/rooms/owner/issue-membership/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +4 -0
- package/src/auth/step-up/approve-response/0.3/payload.ts +594 -0
- package/src/index.ts +8 -0
- package/src/persona/claim-types/list/1.0/payload.ts +590 -0
- package/src/rooms/_shared/0.1/room.ts +1 -1
- package/src/rooms/create/0.1/payload.ts +30 -2
- package/src/rooms/keys/chain/0.1/payload.ts +262 -0
- package/src/rooms/keys/list/0.1/payload.ts +222 -0
- package/src/rooms/keys/seal/0.1/payload.ts +246 -0
- package/src/rooms/owner/invite/0.1/payload.ts +212 -0
- package/src/rooms/owner/issue-authority/0.1/payload.ts +233 -0
- package/src/rooms/owner/issue-membership/0.1/payload.ts +212 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/keys/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
6
|
+
export interface RoomsKeysListPayload {
|
|
7
|
+
/**
|
|
8
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
9
|
+
*/
|
|
10
|
+
ext?: Ext;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Success response to rooms/keys/list. Type https://trusttasks.org/spec/rooms/keys/list/0.1#response. The rooms this key holder can open, which is a different set from the rooms its principal is a member of: membership is a credential the room issued, and this is key custody. A room whose group state was never delivered is absent here and the principal may still hold a perfectly good VMC for it.
|
|
14
|
+
*/
|
|
15
|
+
export interface RoomsKeysListResponsePayload {
|
|
16
|
+
/**
|
|
17
|
+
* One entry per room, in no guaranteed order.
|
|
18
|
+
*/
|
|
19
|
+
rooms: {
|
|
20
|
+
/**
|
|
21
|
+
* The room's identifier.
|
|
22
|
+
*/
|
|
23
|
+
roomId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The epoch this key holder is at. Behind the room's own epoch means a commit has not been delivered, and records sealed since will not open.
|
|
26
|
+
*/
|
|
27
|
+
epoch: number;
|
|
28
|
+
/**
|
|
29
|
+
* The earliest epoch this key holder can derive a key for, walking the epoch key chain it holds. Equal to `epoch` means it reads only from where it joined; `1` means the room's whole retained history. Anything between is a chain that has been delivered in part, or one deliberately severed below that point.
|
|
30
|
+
*/
|
|
31
|
+
earliestReadableEpoch: number;
|
|
32
|
+
}[];
|
|
33
|
+
ext?: Ext;
|
|
34
|
+
}
|
|
35
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
36
|
+
export type { Ext };
|
|
37
|
+
/** Trust Task type URI. */
|
|
38
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/keys/list/0.1";
|
|
39
|
+
/** Stable alias for this specification's request payload shape. */
|
|
40
|
+
export type Payload = RoomsKeysListPayload;
|
|
41
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
42
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/keys/list/0.1#response";
|
|
43
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
44
|
+
export type Response = RoomsKeysListResponsePayload;
|
|
45
|
+
/**
|
|
46
|
+
* This specification's payload schema, as a value.
|
|
47
|
+
*
|
|
48
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
49
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
50
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
51
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
52
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
53
|
+
*/
|
|
54
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
55
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
56
|
+
readonly $id: "https://trusttasks.org/spec/rooms/keys/list/0.1";
|
|
57
|
+
readonly title: "Rooms Keys List — payload";
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly ext: {
|
|
62
|
+
readonly $ref: "#/$defs/Ext";
|
|
63
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly $defs: {
|
|
67
|
+
readonly Response: {
|
|
68
|
+
readonly $anchor: "response";
|
|
69
|
+
readonly title: "Rooms Keys List — response payload";
|
|
70
|
+
readonly description: "Success response to rooms/keys/list. Type https://trusttasks.org/spec/rooms/keys/list/0.1#response. The rooms this key holder can open, which is a different set from the rooms its principal is a member of: membership is a credential the room issued, and this is key custody. A room whose group state was never delivered is absent here and the principal may still hold a perfectly good VMC for it.";
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly additionalProperties: false;
|
|
73
|
+
readonly required: readonly ["rooms"];
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly rooms: {
|
|
76
|
+
readonly type: "array";
|
|
77
|
+
readonly description: "One entry per room, in no guaranteed order.";
|
|
78
|
+
readonly items: {
|
|
79
|
+
readonly type: "object";
|
|
80
|
+
readonly additionalProperties: false;
|
|
81
|
+
readonly required: readonly ["roomId", "epoch", "earliestReadableEpoch"];
|
|
82
|
+
readonly properties: {
|
|
83
|
+
readonly roomId: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
readonly description: "The room's identifier.";
|
|
86
|
+
};
|
|
87
|
+
readonly epoch: {
|
|
88
|
+
readonly type: "integer";
|
|
89
|
+
readonly minimum: 1;
|
|
90
|
+
readonly description: "The epoch this key holder is at. Behind the room's own epoch means a commit has not been delivered, and records sealed since will not open.";
|
|
91
|
+
};
|
|
92
|
+
readonly earliestReadableEpoch: {
|
|
93
|
+
readonly type: "integer";
|
|
94
|
+
readonly minimum: 1;
|
|
95
|
+
readonly description: "The earliest epoch this key holder can derive a key for, walking the epoch key chain it holds. Equal to `epoch` means it reads only from where it joined; `1` means the room's whole retained history. Anything between is a chain that has been delivered in part, or one deliberately severed below that point.";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly ext: {
|
|
101
|
+
readonly $ref: "#/$defs/Ext";
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
readonly Ext: {
|
|
106
|
+
readonly title: "Ext";
|
|
107
|
+
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.";
|
|
108
|
+
readonly type: "object";
|
|
109
|
+
readonly minProperties: 1;
|
|
110
|
+
readonly additionalProperties: true;
|
|
111
|
+
readonly propertyNames: {
|
|
112
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
113
|
+
};
|
|
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: "Rooms Keys List — response payload";
|
|
125
|
+
readonly description: "Success response to rooms/keys/list. Type https://trusttasks.org/spec/rooms/keys/list/0.1#response. The rooms this key holder can open, which is a different set from the rooms its principal is a member of: membership is a credential the room issued, and this is key custody. A room whose group state was never delivered is absent here and the principal may still hold a perfectly good VMC for it.";
|
|
126
|
+
readonly type: "object";
|
|
127
|
+
readonly additionalProperties: false;
|
|
128
|
+
readonly required: readonly ["rooms"];
|
|
129
|
+
readonly properties: {
|
|
130
|
+
readonly rooms: {
|
|
131
|
+
readonly type: "array";
|
|
132
|
+
readonly description: "One entry per room, in no guaranteed order.";
|
|
133
|
+
readonly items: {
|
|
134
|
+
readonly type: "object";
|
|
135
|
+
readonly additionalProperties: false;
|
|
136
|
+
readonly required: readonly ["roomId", "epoch", "earliestReadableEpoch"];
|
|
137
|
+
readonly properties: {
|
|
138
|
+
readonly roomId: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
readonly description: "The room's identifier.";
|
|
141
|
+
};
|
|
142
|
+
readonly epoch: {
|
|
143
|
+
readonly type: "integer";
|
|
144
|
+
readonly minimum: 1;
|
|
145
|
+
readonly description: "The epoch this key holder is at. Behind the room's own epoch means a commit has not been delivered, and records sealed since will not open.";
|
|
146
|
+
};
|
|
147
|
+
readonly earliestReadableEpoch: {
|
|
148
|
+
readonly type: "integer";
|
|
149
|
+
readonly minimum: 1;
|
|
150
|
+
readonly description: "The earliest epoch this key holder can derive a key for, walking the epoch key chain it holds. Equal to `epoch` means it reads only from where it joined; `1` means the room's whole retained history. Anything between is a chain that has been delivered in part, or one deliberately severed below that point.";
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
readonly ext: {
|
|
156
|
+
readonly $ref: "#/$defs/Ext";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly Ext: {
|
|
161
|
+
readonly title: "Ext";
|
|
162
|
+
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.";
|
|
163
|
+
readonly type: "object";
|
|
164
|
+
readonly minProperties: 1;
|
|
165
|
+
readonly additionalProperties: true;
|
|
166
|
+
readonly propertyNames: {
|
|
167
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
174
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
175
|
+
* per-specification and cannot be derived from the document alone, and
|
|
176
|
+
* item 2 needs the schema this carries.
|
|
177
|
+
*/
|
|
178
|
+
export declare const SPEC: {
|
|
179
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/keys/list/0.1";
|
|
180
|
+
readonly isBearer: false;
|
|
181
|
+
readonly isProofRequired: true;
|
|
182
|
+
readonly isRecipientRequired: true;
|
|
183
|
+
readonly isIssuedAtRequired: true;
|
|
184
|
+
readonly payloadSchema: {
|
|
185
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
186
|
+
readonly $id: "https://trusttasks.org/spec/rooms/keys/list/0.1";
|
|
187
|
+
readonly title: "Rooms Keys List — payload";
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
readonly additionalProperties: false;
|
|
190
|
+
readonly properties: {
|
|
191
|
+
readonly ext: {
|
|
192
|
+
readonly $ref: "#/$defs/Ext";
|
|
193
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
readonly $defs: {
|
|
197
|
+
readonly Response: {
|
|
198
|
+
readonly $anchor: "response";
|
|
199
|
+
readonly title: "Rooms Keys List — response payload";
|
|
200
|
+
readonly description: "Success response to rooms/keys/list. Type https://trusttasks.org/spec/rooms/keys/list/0.1#response. The rooms this key holder can open, which is a different set from the rooms its principal is a member of: membership is a credential the room issued, and this is key custody. A room whose group state was never delivered is absent here and the principal may still hold a perfectly good VMC for it.";
|
|
201
|
+
readonly type: "object";
|
|
202
|
+
readonly additionalProperties: false;
|
|
203
|
+
readonly required: readonly ["rooms"];
|
|
204
|
+
readonly properties: {
|
|
205
|
+
readonly rooms: {
|
|
206
|
+
readonly type: "array";
|
|
207
|
+
readonly description: "One entry per room, in no guaranteed order.";
|
|
208
|
+
readonly items: {
|
|
209
|
+
readonly type: "object";
|
|
210
|
+
readonly additionalProperties: false;
|
|
211
|
+
readonly required: readonly ["roomId", "epoch", "earliestReadableEpoch"];
|
|
212
|
+
readonly properties: {
|
|
213
|
+
readonly roomId: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly description: "The room's identifier.";
|
|
216
|
+
};
|
|
217
|
+
readonly epoch: {
|
|
218
|
+
readonly type: "integer";
|
|
219
|
+
readonly minimum: 1;
|
|
220
|
+
readonly description: "The epoch this key holder is at. Behind the room's own epoch means a commit has not been delivered, and records sealed since will not open.";
|
|
221
|
+
};
|
|
222
|
+
readonly earliestReadableEpoch: {
|
|
223
|
+
readonly type: "integer";
|
|
224
|
+
readonly minimum: 1;
|
|
225
|
+
readonly description: "The earliest epoch this key holder can derive a key for, walking the epoch key chain it holds. Equal to `epoch` means it reads only from where it joined; `1` means the room's whole retained history. Anything between is a chain that has been delivered in part, or one deliberately severed below that point.";
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
readonly ext: {
|
|
231
|
+
readonly $ref: "#/$defs/Ext";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly Ext: {
|
|
236
|
+
readonly title: "Ext";
|
|
237
|
+
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.";
|
|
238
|
+
readonly type: "object";
|
|
239
|
+
readonly minProperties: 1;
|
|
240
|
+
readonly additionalProperties: true;
|
|
241
|
+
readonly propertyNames: {
|
|
242
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
243
|
+
};
|
|
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/rooms/keys/list/0.1#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: "Rooms Keys List — response payload";
|
|
266
|
+
readonly description: "Success response to rooms/keys/list. Type https://trusttasks.org/spec/rooms/keys/list/0.1#response. The rooms this key holder can open, which is a different set from the rooms its principal is a member of: membership is a credential the room issued, and this is key custody. A room whose group state was never delivered is absent here and the principal may still hold a perfectly good VMC for it.";
|
|
267
|
+
readonly type: "object";
|
|
268
|
+
readonly additionalProperties: false;
|
|
269
|
+
readonly required: readonly ["rooms"];
|
|
270
|
+
readonly properties: {
|
|
271
|
+
readonly rooms: {
|
|
272
|
+
readonly type: "array";
|
|
273
|
+
readonly description: "One entry per room, in no guaranteed order.";
|
|
274
|
+
readonly items: {
|
|
275
|
+
readonly type: "object";
|
|
276
|
+
readonly additionalProperties: false;
|
|
277
|
+
readonly required: readonly ["roomId", "epoch", "earliestReadableEpoch"];
|
|
278
|
+
readonly properties: {
|
|
279
|
+
readonly roomId: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly description: "The room's identifier.";
|
|
282
|
+
};
|
|
283
|
+
readonly epoch: {
|
|
284
|
+
readonly type: "integer";
|
|
285
|
+
readonly minimum: 1;
|
|
286
|
+
readonly description: "The epoch this key holder is at. Behind the room's own epoch means a commit has not been delivered, and records sealed since will not open.";
|
|
287
|
+
};
|
|
288
|
+
readonly earliestReadableEpoch: {
|
|
289
|
+
readonly type: "integer";
|
|
290
|
+
readonly minimum: 1;
|
|
291
|
+
readonly description: "The earliest epoch this key holder can derive a key for, walking the epoch key chain it holds. Equal to `epoch` means it reads only from where it joined; `1` means the room's whole retained history. Anything between is a chain that has been delivered in part, or one deliberately severed below that point.";
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
readonly ext: {
|
|
297
|
+
readonly $ref: "#/$defs/Ext";
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
readonly Ext: {
|
|
302
|
+
readonly title: "Ext";
|
|
303
|
+
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.";
|
|
304
|
+
readonly type: "object";
|
|
305
|
+
readonly minProperties: 1;
|
|
306
|
+
readonly additionalProperties: true;
|
|
307
|
+
readonly propertyNames: {
|
|
308
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../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;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/keys/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/keys/list/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/list/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/keys/list/0.1",
|
|
21
|
+
"title": "Rooms Keys List — payload",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"properties": {
|
|
25
|
+
"ext": {
|
|
26
|
+
"$ref": "#/$defs/Ext",
|
|
27
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"$defs": {
|
|
31
|
+
"Response": {
|
|
32
|
+
"$anchor": "response",
|
|
33
|
+
"title": "Rooms Keys List — response payload",
|
|
34
|
+
"description": "Success response to rooms/keys/list. Type https://trusttasks.org/spec/rooms/keys/list/0.1#response. The rooms this key holder can open, which is a different set from the rooms its principal is a member of: membership is a credential the room issued, and this is key custody. A room whose group state was never delivered is absent here and the principal may still hold a perfectly good VMC for it.",
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": [
|
|
38
|
+
"rooms"
|
|
39
|
+
],
|
|
40
|
+
"properties": {
|
|
41
|
+
"rooms": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"description": "One entry per room, in no guaranteed order.",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": [
|
|
48
|
+
"roomId",
|
|
49
|
+
"epoch",
|
|
50
|
+
"earliestReadableEpoch"
|
|
51
|
+
],
|
|
52
|
+
"properties": {
|
|
53
|
+
"roomId": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "The room's identifier."
|
|
56
|
+
},
|
|
57
|
+
"epoch": {
|
|
58
|
+
"type": "integer",
|
|
59
|
+
"minimum": 1,
|
|
60
|
+
"description": "The epoch this key holder is at. Behind the room's own epoch means a commit has not been delivered, and records sealed since will not open."
|
|
61
|
+
},
|
|
62
|
+
"earliestReadableEpoch": {
|
|
63
|
+
"type": "integer",
|
|
64
|
+
"minimum": 1,
|
|
65
|
+
"description": "The earliest epoch this key holder can derive a key for, walking the epoch key chain it holds. Equal to `epoch` means it reads only from where it joined; `1` means the room's whole retained history. Anything between is a chain that has been delivered in part, or one deliberately severed below that point."
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"ext": {
|
|
71
|
+
"$ref": "#/$defs/Ext"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"Ext": {
|
|
76
|
+
"title": "Ext",
|
|
77
|
+
"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.",
|
|
78
|
+
"type": "object",
|
|
79
|
+
"minProperties": 1,
|
|
80
|
+
"additionalProperties": true,
|
|
81
|
+
"propertyNames": {
|
|
82
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
88
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
89
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
90
|
+
"$ref": "#/$defs/Response",
|
|
91
|
+
"$defs": {
|
|
92
|
+
"Response": {
|
|
93
|
+
"$anchor": "response",
|
|
94
|
+
"title": "Rooms Keys List — response payload",
|
|
95
|
+
"description": "Success response to rooms/keys/list. Type https://trusttasks.org/spec/rooms/keys/list/0.1#response. The rooms this key holder can open, which is a different set from the rooms its principal is a member of: membership is a credential the room issued, and this is key custody. A room whose group state was never delivered is absent here and the principal may still hold a perfectly good VMC for it.",
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": [
|
|
99
|
+
"rooms"
|
|
100
|
+
],
|
|
101
|
+
"properties": {
|
|
102
|
+
"rooms": {
|
|
103
|
+
"type": "array",
|
|
104
|
+
"description": "One entry per room, in no guaranteed order.",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"required": [
|
|
109
|
+
"roomId",
|
|
110
|
+
"epoch",
|
|
111
|
+
"earliestReadableEpoch"
|
|
112
|
+
],
|
|
113
|
+
"properties": {
|
|
114
|
+
"roomId": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"description": "The room's identifier."
|
|
117
|
+
},
|
|
118
|
+
"epoch": {
|
|
119
|
+
"type": "integer",
|
|
120
|
+
"minimum": 1,
|
|
121
|
+
"description": "The epoch this key holder is at. Behind the room's own epoch means a commit has not been delivered, and records sealed since will not open."
|
|
122
|
+
},
|
|
123
|
+
"earliestReadableEpoch": {
|
|
124
|
+
"type": "integer",
|
|
125
|
+
"minimum": 1,
|
|
126
|
+
"description": "The earliest epoch this key holder can derive a key for, walking the epoch key chain it holds. Equal to `epoch` means it reads only from where it joined; `1` means the room's whole retained history. Anything between is a chain that has been delivered in part, or one deliberately severed below that point."
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"ext": {
|
|
132
|
+
"$ref": "#/$defs/Ext"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"Ext": {
|
|
137
|
+
"title": "Ext",
|
|
138
|
+
"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.",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"minProperties": 1,
|
|
141
|
+
"additionalProperties": true,
|
|
142
|
+
"propertyNames": {
|
|
143
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
150
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
151
|
+
* per-specification and cannot be derived from the document alone, and
|
|
152
|
+
* item 2 needs the schema this carries.
|
|
153
|
+
*/
|
|
154
|
+
export const SPEC = {
|
|
155
|
+
typeUri: TYPE_URI,
|
|
156
|
+
isBearer: false,
|
|
157
|
+
isProofRequired: true,
|
|
158
|
+
isRecipientRequired: true,
|
|
159
|
+
isIssuedAtRequired: true,
|
|
160
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
164
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
165
|
+
* parties (§7.3 item 5).
|
|
166
|
+
*/
|
|
167
|
+
export const RESPONSE_SPEC = {
|
|
168
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
169
|
+
isBearer: false,
|
|
170
|
+
isProofRequired: true,
|
|
171
|
+
isRecipientRequired: true,
|
|
172
|
+
isIssuedAtRequired: true,
|
|
173
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
174
|
+
};
|
|
175
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/keys/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,iDAA0D,CAAC;AAKnF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,0DAAmE,CAAC;AAKrG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;YACrB,aAAa,EAAE,yDAAyD;SACzE;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,oCAAoC;YAC7C,aAAa,EAAE,8YAA8Y;YAC7Z,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,OAAO;aACR;YACD,YAAY,EAAE;gBACZ,OAAO,EAAE;oBACP,MAAM,EAAE,OAAO;oBACf,aAAa,EAAE,6CAA6C;oBAC5D,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;wBAChB,sBAAsB,EAAE,KAAK;wBAC7B,UAAU,EAAE;4BACV,QAAQ;4BACR,OAAO;4BACP,uBAAuB;yBACxB;wBACD,YAAY,EAA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