@openvtc/trust-tasks 0.16.8 → 0.16.9
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 +136 -0
- package/dist/_shared/components.d.ts +2 -2
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +6 -2
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +6 -2
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +6 -2
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +6 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/keys/commit/0.1/payload.d.ts +266 -0
- package/dist/rooms/keys/commit/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/commit/0.1/payload.js +146 -0
- package/dist/rooms/keys/commit/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/key-package/0.1/payload.d.ts +272 -0
- package/dist/rooms/keys/key-package/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/key-package/0.1/payload.js +147 -0
- package/dist/rooms/keys/key-package/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/welcome/0.1/payload.d.ts +276 -0
- package/dist/rooms/keys/welcome/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/welcome/0.1/payload.js +148 -0
- package/dist/rooms/keys/welcome/0.1/payload.js.map +1 -0
- package/dist/rooms/records/curate/0.1/payload.d.ts +500 -0
- package/dist/rooms/records/curate/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/records/curate/0.1/payload.js +277 -0
- package/dist/rooms/records/curate/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +6 -2
- package/src/device/list/0.1/payload.ts +6 -2
- package/src/device/list/0.2/payload.ts +6 -2
- package/src/device/register/0.1/payload.ts +6 -2
- package/src/device/register/0.2/payload.ts +6 -2
- package/src/index.ts +4 -0
- package/src/rooms/keys/commit/0.1/payload.ts +195 -0
- package/src/rooms/keys/key-package/0.1/payload.ts +196 -0
- package/src/rooms/keys/welcome/0.1/payload.ts +201 -0
- package/src/rooms/records/curate/0.1/payload.ts +357 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/records/curate/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/records/curate/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/records/curate/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/records/curate/0.1",
|
|
21
|
+
"title": "Rooms Records Curate — payload",
|
|
22
|
+
"description": "A member curates a record: demotes it, retracts it, restores it from demotion, or pins it. Distinct from `rooms/records/put`, which replaces content — curation changes a record's standing in the room without a member having to rewrite it, and `curate` is a separate authority action so a community can grant one without the other.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"roomId",
|
|
27
|
+
"key",
|
|
28
|
+
"presentation"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"roomId": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The room's identifier. A host verifies the presentation against credentials issued by this identifier, never against a member list of its own."
|
|
34
|
+
},
|
|
35
|
+
"key": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"maxLength": 512,
|
|
38
|
+
"description": "The record to curate."
|
|
39
|
+
},
|
|
40
|
+
"presentation": {
|
|
41
|
+
"$ref": "#/$defs/AuthorityPresentation",
|
|
42
|
+
"description": "Must confer the `curate` action at this room's scope. Deliberately not implied by `write`: curation is judgement over what a room's shared knowledge is worth, which is a different grant from the ability to add to it."
|
|
43
|
+
},
|
|
44
|
+
"status": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": [
|
|
47
|
+
"active",
|
|
48
|
+
"deprecated",
|
|
49
|
+
"retracted"
|
|
50
|
+
],
|
|
51
|
+
"description": "The standing to move the record to. `deprecated` demotes it — the body is retained and a recalling agent MUST treat it as demoted rather than hidden. `retracted` is a tombstone: the body is dropped and the key, version and epoch remain so incremental sync converges. `active` restores a `deprecated` record; it MUST NOT be accepted for a `retracted` one, whose body is already gone and cannot be restored by a status change."
|
|
52
|
+
},
|
|
53
|
+
"pinned": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Whether the record is pinned. Orthogonal to `status` — a pinned record is still active, deprecated or retracted — because pinning answers 'what matters here' and status answers 'is this still current'. Omit to leave unchanged."
|
|
56
|
+
},
|
|
57
|
+
"reason": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"maxLength": 512,
|
|
60
|
+
"description": "Why, for the room's audit trail. A retraction without a reason is the one a member cannot interpret later."
|
|
61
|
+
},
|
|
62
|
+
"expectedVersion": {
|
|
63
|
+
"type": "integer",
|
|
64
|
+
"minimum": 1,
|
|
65
|
+
"description": "Optional precondition: the record's current version. Curation assigns a new version — a demotion other members must converge on is a change like any other — so a caller that read a record before deciding to curate it can require that nothing has replaced it since."
|
|
66
|
+
},
|
|
67
|
+
"ext": {
|
|
68
|
+
"$ref": "#/$defs/Ext",
|
|
69
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"anyOf": [
|
|
73
|
+
{
|
|
74
|
+
"required": [
|
|
75
|
+
"status"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"required": [
|
|
80
|
+
"pinned"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"$defs": {
|
|
85
|
+
"Response": {
|
|
86
|
+
"$anchor": "response",
|
|
87
|
+
"title": "Rooms Records Curate — response payload",
|
|
88
|
+
"description": "Success response to rooms/records/curate. Type https://trusttasks.org/spec/rooms/records/curate/0.1#response.",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": [
|
|
92
|
+
"key",
|
|
93
|
+
"version",
|
|
94
|
+
"status"
|
|
95
|
+
],
|
|
96
|
+
"properties": {
|
|
97
|
+
"key": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "The record curated."
|
|
100
|
+
},
|
|
101
|
+
"version": {
|
|
102
|
+
"type": "integer",
|
|
103
|
+
"minimum": 1,
|
|
104
|
+
"description": "The version the curation assigned. A caller syncing on `sinceVersion` sees the change at this version."
|
|
105
|
+
},
|
|
106
|
+
"status": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": [
|
|
109
|
+
"active",
|
|
110
|
+
"deprecated",
|
|
111
|
+
"retracted"
|
|
112
|
+
],
|
|
113
|
+
"description": "The record's standing after the operation."
|
|
114
|
+
},
|
|
115
|
+
"pinned": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"description": "Whether the record is pinned after the operation."
|
|
118
|
+
},
|
|
119
|
+
"ext": {
|
|
120
|
+
"$ref": "#/$defs/Ext"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"Ext": {
|
|
125
|
+
"title": "Ext",
|
|
126
|
+
"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.",
|
|
127
|
+
"type": "object",
|
|
128
|
+
"minProperties": 1,
|
|
129
|
+
"additionalProperties": true,
|
|
130
|
+
"propertyNames": {
|
|
131
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"AuthorityPresentation": {
|
|
135
|
+
"title": "AuthorityPresentation",
|
|
136
|
+
"type": "object",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": [
|
|
139
|
+
"membership",
|
|
140
|
+
"authority"
|
|
141
|
+
],
|
|
142
|
+
"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.",
|
|
143
|
+
"properties": {
|
|
144
|
+
"membership": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"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."
|
|
147
|
+
},
|
|
148
|
+
"authority": {
|
|
149
|
+
"type": "array",
|
|
150
|
+
"minItems": 1,
|
|
151
|
+
"maxItems": 8,
|
|
152
|
+
"items": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"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."
|
|
156
|
+
},
|
|
157
|
+
"subjectBinding": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"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."
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
166
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
167
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
168
|
+
"$ref": "#/$defs/Response",
|
|
169
|
+
"$defs": {
|
|
170
|
+
"Response": {
|
|
171
|
+
"$anchor": "response",
|
|
172
|
+
"title": "Rooms Records Curate — response payload",
|
|
173
|
+
"description": "Success response to rooms/records/curate. Type https://trusttasks.org/spec/rooms/records/curate/0.1#response.",
|
|
174
|
+
"type": "object",
|
|
175
|
+
"additionalProperties": false,
|
|
176
|
+
"required": [
|
|
177
|
+
"key",
|
|
178
|
+
"version",
|
|
179
|
+
"status"
|
|
180
|
+
],
|
|
181
|
+
"properties": {
|
|
182
|
+
"key": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"description": "The record curated."
|
|
185
|
+
},
|
|
186
|
+
"version": {
|
|
187
|
+
"type": "integer",
|
|
188
|
+
"minimum": 1,
|
|
189
|
+
"description": "The version the curation assigned. A caller syncing on `sinceVersion` sees the change at this version."
|
|
190
|
+
},
|
|
191
|
+
"status": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"enum": [
|
|
194
|
+
"active",
|
|
195
|
+
"deprecated",
|
|
196
|
+
"retracted"
|
|
197
|
+
],
|
|
198
|
+
"description": "The record's standing after the operation."
|
|
199
|
+
},
|
|
200
|
+
"pinned": {
|
|
201
|
+
"type": "boolean",
|
|
202
|
+
"description": "Whether the record is pinned after the operation."
|
|
203
|
+
},
|
|
204
|
+
"ext": {
|
|
205
|
+
"$ref": "#/$defs/Ext"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"Ext": {
|
|
210
|
+
"title": "Ext",
|
|
211
|
+
"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.",
|
|
212
|
+
"type": "object",
|
|
213
|
+
"minProperties": 1,
|
|
214
|
+
"additionalProperties": true,
|
|
215
|
+
"propertyNames": {
|
|
216
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"AuthorityPresentation": {
|
|
220
|
+
"title": "AuthorityPresentation",
|
|
221
|
+
"type": "object",
|
|
222
|
+
"additionalProperties": false,
|
|
223
|
+
"required": [
|
|
224
|
+
"membership",
|
|
225
|
+
"authority"
|
|
226
|
+
],
|
|
227
|
+
"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.",
|
|
228
|
+
"properties": {
|
|
229
|
+
"membership": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"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."
|
|
232
|
+
},
|
|
233
|
+
"authority": {
|
|
234
|
+
"type": "array",
|
|
235
|
+
"minItems": 1,
|
|
236
|
+
"maxItems": 8,
|
|
237
|
+
"items": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"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."
|
|
241
|
+
},
|
|
242
|
+
"subjectBinding": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"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."
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
252
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
253
|
+
* per-specification and cannot be derived from the document alone, and
|
|
254
|
+
* item 2 needs the schema this carries.
|
|
255
|
+
*/
|
|
256
|
+
export const SPEC = {
|
|
257
|
+
typeUri: TYPE_URI,
|
|
258
|
+
isBearer: false,
|
|
259
|
+
isProofRequired: true,
|
|
260
|
+
isRecipientRequired: true,
|
|
261
|
+
isIssuedAtRequired: true,
|
|
262
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
266
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
267
|
+
* parties (§7.3 item 5).
|
|
268
|
+
*/
|
|
269
|
+
export const RESPONSE_SPEC = {
|
|
270
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
271
|
+
isBearer: false,
|
|
272
|
+
isProofRequired: true,
|
|
273
|
+
isRecipientRequired: true,
|
|
274
|
+
isIssuedAtRequired: true,
|
|
275
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
276
|
+
};
|
|
277
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/records/curate/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuEH,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,4UAA4U;IAC3V,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;QACR,KAAK;QACL,cAAc;KACf;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,gJAAgJ;SAChK;QACD,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,uBAAuB;SACvC;QACD,cAAc,EAAE;YACd,MAAM,EAAE,+BAA+B;YACvC,aAAa,EAAE,0NAA0N;SAC1O;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,QAAQ;gBACR,YAAY;gBACZ,WAAW;aACZ;YACD,aAAa,EAAE,0aAA0a;SAC1b;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,SAAS;YACjB,aAAa,EAAE,oOAAoO;SACpP;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,4GAA4G;SAC5H;QACD,iBAA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IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -45,7 +45,9 @@ export type Capability_DeviceV0_1 =
|
|
|
45
45
|
| "sign-trust-task"
|
|
46
46
|
| "credential-write"
|
|
47
47
|
| "memory-read"
|
|
48
|
-
| "memory-write"
|
|
48
|
+
| "memory-write"
|
|
49
|
+
| "room-present"
|
|
50
|
+
| "room-open";
|
|
49
51
|
/**
|
|
50
52
|
* Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything.
|
|
51
53
|
*/
|
|
@@ -61,7 +63,9 @@ export type Capability_DeviceV0_2 =
|
|
|
61
63
|
| "signTrustTask"
|
|
62
64
|
| "credentialWrite"
|
|
63
65
|
| "memoryRead"
|
|
64
|
-
| "memoryWrite"
|
|
66
|
+
| "memoryWrite"
|
|
67
|
+
| "roomPresent"
|
|
68
|
+
| "roomOpen";
|
|
65
69
|
/**
|
|
66
70
|
* Discriminator: is this consumer a user-driven Companion or a headless Service?
|
|
67
71
|
*/
|
|
@@ -245,7 +245,9 @@ export const PAYLOAD_SCHEMA = {
|
|
|
245
245
|
"sign-trust-task",
|
|
246
246
|
"credential-write",
|
|
247
247
|
"memory-read",
|
|
248
|
-
"memory-write"
|
|
248
|
+
"memory-write",
|
|
249
|
+
"room-present",
|
|
250
|
+
"room-open"
|
|
249
251
|
],
|
|
250
252
|
"description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
|
|
251
253
|
},
|
|
@@ -581,7 +583,9 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
581
583
|
"sign-trust-task",
|
|
582
584
|
"credential-write",
|
|
583
585
|
"memory-read",
|
|
584
|
-
"memory-write"
|
|
586
|
+
"memory-write",
|
|
587
|
+
"room-present",
|
|
588
|
+
"room-open"
|
|
585
589
|
],
|
|
586
590
|
"description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
|
|
587
591
|
},
|
|
@@ -245,7 +245,9 @@ export const PAYLOAD_SCHEMA = {
|
|
|
245
245
|
"signTrustTask",
|
|
246
246
|
"credentialWrite",
|
|
247
247
|
"memoryRead",
|
|
248
|
-
"memoryWrite"
|
|
248
|
+
"memoryWrite",
|
|
249
|
+
"roomPresent",
|
|
250
|
+
"roomOpen"
|
|
249
251
|
],
|
|
250
252
|
"description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
|
|
251
253
|
},
|
|
@@ -581,7 +583,9 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
581
583
|
"signTrustTask",
|
|
582
584
|
"credentialWrite",
|
|
583
585
|
"memoryRead",
|
|
584
|
-
"memoryWrite"
|
|
586
|
+
"memoryWrite",
|
|
587
|
+
"roomPresent",
|
|
588
|
+
"roomOpen"
|
|
585
589
|
],
|
|
586
590
|
"description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
|
|
587
591
|
},
|
|
@@ -213,7 +213,9 @@ export const PAYLOAD_SCHEMA = {
|
|
|
213
213
|
"sign-trust-task",
|
|
214
214
|
"credential-write",
|
|
215
215
|
"memory-read",
|
|
216
|
-
"memory-write"
|
|
216
|
+
"memory-write",
|
|
217
|
+
"room-present",
|
|
218
|
+
"room-open"
|
|
217
219
|
],
|
|
218
220
|
"description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
|
|
219
221
|
},
|
|
@@ -539,7 +541,9 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
539
541
|
"sign-trust-task",
|
|
540
542
|
"credential-write",
|
|
541
543
|
"memory-read",
|
|
542
|
-
"memory-write"
|
|
544
|
+
"memory-write",
|
|
545
|
+
"room-present",
|
|
546
|
+
"room-open"
|
|
543
547
|
],
|
|
544
548
|
"description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
|
|
545
549
|
},
|
|
@@ -213,7 +213,9 @@ export const PAYLOAD_SCHEMA = {
|
|
|
213
213
|
"signTrustTask",
|
|
214
214
|
"credentialWrite",
|
|
215
215
|
"memoryRead",
|
|
216
|
-
"memoryWrite"
|
|
216
|
+
"memoryWrite",
|
|
217
|
+
"roomPresent",
|
|
218
|
+
"roomOpen"
|
|
217
219
|
],
|
|
218
220
|
"description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
|
|
219
221
|
},
|
|
@@ -539,7 +541,9 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
539
541
|
"signTrustTask",
|
|
540
542
|
"credentialWrite",
|
|
541
543
|
"memoryRead",
|
|
542
|
-
"memoryWrite"
|
|
544
|
+
"memoryWrite",
|
|
545
|
+
"roomPresent",
|
|
546
|
+
"roomOpen"
|
|
543
547
|
],
|
|
544
548
|
"description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
|
|
545
549
|
},
|
package/src/index.ts
CHANGED
|
@@ -205,8 +205,12 @@ export * as RegistryRecordUpdate_v0_1 from "./registry/record/update/0.1/payload
|
|
|
205
205
|
export * as RoomShared_v0_1 from "./rooms/_shared/0.1/room.js";
|
|
206
206
|
export * as RoomsCreate_v0_1 from "./rooms/create/0.1/payload.js";
|
|
207
207
|
export * as RoomsEpochMint_v0_1 from "./rooms/epoch/mint/0.1/payload.js";
|
|
208
|
+
export * as RoomsKeysCommit_v0_1 from "./rooms/keys/commit/0.1/payload.js";
|
|
209
|
+
export * as RoomsKeysKeyPackage_v0_1 from "./rooms/keys/key-package/0.1/payload.js";
|
|
208
210
|
export * as RoomsKeysOpen_v0_1 from "./rooms/keys/open/0.1/payload.js";
|
|
209
211
|
export * as RoomsKeysPresent_v0_1 from "./rooms/keys/present/0.1/payload.js";
|
|
212
|
+
export * as RoomsKeysWelcome_v0_1 from "./rooms/keys/welcome/0.1/payload.js";
|
|
213
|
+
export * as RoomsRecordsCurate_v0_1 from "./rooms/records/curate/0.1/payload.js";
|
|
210
214
|
export * as RoomsRecordsGet_v0_1 from "./rooms/records/get/0.1/payload.js";
|
|
211
215
|
export * as RoomsRecordsList_v0_1 from "./rooms/records/list/0.1/payload.js";
|
|
212
216
|
export * as RoomsRecordsPut_v0_1 from "./rooms/records/put/0.1/payload.js";
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/keys/commit/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A room's owner delivers an MLS Commit to a member's key-holding agent, advancing it one epoch. Every member must apply every commit, in order: an agent that misses one is stuck at its last epoch and can open nothing sealed after it.
|
|
11
|
+
*/
|
|
12
|
+
export interface RoomsKeysCommitPayload {
|
|
13
|
+
/**
|
|
14
|
+
* The room whose group is advancing.
|
|
15
|
+
*/
|
|
16
|
+
roomId: string;
|
|
17
|
+
/**
|
|
18
|
+
* The MLS Commit message, base64url.
|
|
19
|
+
*/
|
|
20
|
+
commit: string;
|
|
21
|
+
/**
|
|
22
|
+
* The MLS epoch this commit produces — the recipient's epoch after applying it. Stated so a recipient can tell a replay from a gap without parsing the commit: equal to its current epoch is a replay, more than one ahead is a gap.
|
|
23
|
+
*/
|
|
24
|
+
epoch: number;
|
|
25
|
+
/**
|
|
26
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
27
|
+
*/
|
|
28
|
+
ext?: Ext;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Success response to rooms/keys/commit. Type https://trusttasks.org/spec/rooms/keys/commit/0.1#response.
|
|
32
|
+
*/
|
|
33
|
+
export interface RoomsKeysCommitResponsePayload {
|
|
34
|
+
/**
|
|
35
|
+
* The recipient's epoch after the operation. On a replay this is unchanged, which is how a sender distinguishes 'applied' from 'already had it' without either being an error.
|
|
36
|
+
*/
|
|
37
|
+
epoch: number;
|
|
38
|
+
ext?: Ext;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
42
|
+
export type { Ext };
|
|
43
|
+
|
|
44
|
+
/** Trust Task type URI. */
|
|
45
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/keys/commit/0.1" as const;
|
|
46
|
+
|
|
47
|
+
/** Stable alias for this specification's request payload shape. */
|
|
48
|
+
export type Payload = RoomsKeysCommitPayload;
|
|
49
|
+
|
|
50
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
51
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/commit/0.1#response" as const;
|
|
52
|
+
|
|
53
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
54
|
+
export type Response = RoomsKeysCommitResponsePayload;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* This specification's payload schema, as a value.
|
|
58
|
+
*
|
|
59
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
60
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
61
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
62
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
63
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
64
|
+
*/
|
|
65
|
+
export const PAYLOAD_SCHEMA = {
|
|
66
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
67
|
+
"$id": "https://trusttasks.org/spec/rooms/keys/commit/0.1",
|
|
68
|
+
"title": "Rooms Keys Commit — payload",
|
|
69
|
+
"description": "A room's owner delivers an MLS Commit to a member's key-holding agent, advancing it one epoch. Every member must apply every commit, in order: an agent that misses one is stuck at its last epoch and can open nothing sealed after it.",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": [
|
|
73
|
+
"roomId",
|
|
74
|
+
"commit",
|
|
75
|
+
"epoch"
|
|
76
|
+
],
|
|
77
|
+
"properties": {
|
|
78
|
+
"roomId": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "The room whose group is advancing."
|
|
81
|
+
},
|
|
82
|
+
"commit": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "The MLS Commit message, base64url."
|
|
85
|
+
},
|
|
86
|
+
"epoch": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"minimum": 1,
|
|
89
|
+
"description": "The MLS epoch this commit produces — the recipient's epoch after applying it. Stated so a recipient can tell a replay from a gap without parsing the commit: equal to its current epoch is a replay, more than one ahead is a gap."
|
|
90
|
+
},
|
|
91
|
+
"ext": {
|
|
92
|
+
"$ref": "#/$defs/Ext",
|
|
93
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"$defs": {
|
|
97
|
+
"Response": {
|
|
98
|
+
"$anchor": "response",
|
|
99
|
+
"title": "Rooms Keys Commit — response payload",
|
|
100
|
+
"description": "Success response to rooms/keys/commit. Type https://trusttasks.org/spec/rooms/keys/commit/0.1#response.",
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"required": [
|
|
104
|
+
"epoch"
|
|
105
|
+
],
|
|
106
|
+
"properties": {
|
|
107
|
+
"epoch": {
|
|
108
|
+
"type": "integer",
|
|
109
|
+
"minimum": 0,
|
|
110
|
+
"description": "The recipient's epoch after the operation. On a replay this is unchanged, which is how a sender distinguishes 'applied' from 'already had it' without either being an error."
|
|
111
|
+
},
|
|
112
|
+
"ext": {
|
|
113
|
+
"$ref": "#/$defs/Ext"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"Ext": {
|
|
118
|
+
"title": "Ext",
|
|
119
|
+
"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.",
|
|
120
|
+
"type": "object",
|
|
121
|
+
"minProperties": 1,
|
|
122
|
+
"additionalProperties": true,
|
|
123
|
+
"propertyNames": {
|
|
124
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
} as const;
|
|
129
|
+
|
|
130
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
131
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
132
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
133
|
+
"$ref": "#/$defs/Response",
|
|
134
|
+
"$defs": {
|
|
135
|
+
"Response": {
|
|
136
|
+
"$anchor": "response",
|
|
137
|
+
"title": "Rooms Keys Commit — response payload",
|
|
138
|
+
"description": "Success response to rooms/keys/commit. Type https://trusttasks.org/spec/rooms/keys/commit/0.1#response.",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"required": [
|
|
142
|
+
"epoch"
|
|
143
|
+
],
|
|
144
|
+
"properties": {
|
|
145
|
+
"epoch": {
|
|
146
|
+
"type": "integer",
|
|
147
|
+
"minimum": 0,
|
|
148
|
+
"description": "The recipient's epoch after the operation. On a replay this is unchanged, which is how a sender distinguishes 'applied' from 'already had it' without either being an error."
|
|
149
|
+
},
|
|
150
|
+
"ext": {
|
|
151
|
+
"$ref": "#/$defs/Ext"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"Ext": {
|
|
156
|
+
"title": "Ext",
|
|
157
|
+
"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.",
|
|
158
|
+
"type": "object",
|
|
159
|
+
"minProperties": 1,
|
|
160
|
+
"additionalProperties": true,
|
|
161
|
+
"propertyNames": {
|
|
162
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
} as const;
|
|
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 const SPEC = {
|
|
175
|
+
typeUri: TYPE_URI,
|
|
176
|
+
isBearer: false,
|
|
177
|
+
isProofRequired: true,
|
|
178
|
+
isRecipientRequired: true,
|
|
179
|
+
isIssuedAtRequired: true,
|
|
180
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
181
|
+
} as const;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
185
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
186
|
+
* parties (§7.3 item 5).
|
|
187
|
+
*/
|
|
188
|
+
export const RESPONSE_SPEC = {
|
|
189
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
190
|
+
isBearer: false,
|
|
191
|
+
isProofRequired: true,
|
|
192
|
+
isRecipientRequired: true,
|
|
193
|
+
isIssuedAtRequired: true,
|
|
194
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
195
|
+
} as const;
|