@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,291 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/owner/invite/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
6
|
+
export interface RoomsOwnerInvitePayload {
|
|
7
|
+
/**
|
|
8
|
+
* The room whose identity issues this credential. The recipient MUST hold a signing key for it — it is signing AS the room, not as itself.
|
|
9
|
+
*/
|
|
10
|
+
roomId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Which held key signs. Named explicitly rather than looked up from `roomId`, because nothing maps a DID to a key it was minted with and inventing that mapping would add a lifecycle to get wrong. A key that is not the room's produces a credential that fails to verify against the room's DID document — loud, and at the first use rather than later.
|
|
13
|
+
*/
|
|
14
|
+
signingKeyId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
17
|
+
*/
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
/**
|
|
20
|
+
* The party being invited. Named in the credential, which is why a VIC is single-use and why it is not presented on every access: presenting one would disclose the member.
|
|
21
|
+
*/
|
|
22
|
+
subject: string;
|
|
23
|
+
/**
|
|
24
|
+
* When the invitation expires. An invitation that never expires is a standing right to enter, held by whoever ends up with the bytes.
|
|
25
|
+
*/
|
|
26
|
+
validUntil?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Success response to rooms/owner/invite. Type https://trusttasks.org/spec/rooms/owner/invite/0.1#response. The signed VIC, for delivery to the invitee.
|
|
30
|
+
*/
|
|
31
|
+
export interface RoomsOwnerInviteResponsePayload {
|
|
32
|
+
/**
|
|
33
|
+
* The signed Verifiable Invitation Credential, serialised.
|
|
34
|
+
*/
|
|
35
|
+
credential: string;
|
|
36
|
+
/**
|
|
37
|
+
* Its `id`. The owner tracks consumption by this on a `private` room, where a host-side invitation store would hand the host the membership at invite time.
|
|
38
|
+
*/
|
|
39
|
+
credentialId: 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 { Ext };
|
|
44
|
+
/** Trust Task type URI. */
|
|
45
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/owner/invite/0.1";
|
|
46
|
+
/** Stable alias for this specification's request payload shape. */
|
|
47
|
+
export type Payload = RoomsOwnerInvitePayload;
|
|
48
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
49
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/owner/invite/0.1#response";
|
|
50
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
51
|
+
export type Response = RoomsOwnerInviteResponsePayload;
|
|
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/invite/0.1";
|
|
64
|
+
readonly title: "Rooms Owner Invite — payload";
|
|
65
|
+
readonly type: "object";
|
|
66
|
+
readonly additionalProperties: false;
|
|
67
|
+
readonly required: readonly ["roomId", "signingKeyId", "subject"];
|
|
68
|
+
readonly properties: {
|
|
69
|
+
readonly roomId: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly description: "The room whose identity issues this credential. The recipient MUST hold a signing key for it — it is signing AS the room, not as itself.";
|
|
72
|
+
};
|
|
73
|
+
readonly signingKeyId: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
readonly maxLength: 256;
|
|
76
|
+
readonly description: "Which held key signs. Named explicitly rather than looked up from `roomId`, because nothing maps a DID to a key it was minted with and inventing that mapping would add a lifecycle to get wrong. A key that is not the room's produces a credential that fails to verify against the room's DID document — loud, and at the first use rather than later.";
|
|
77
|
+
};
|
|
78
|
+
readonly ext: {
|
|
79
|
+
readonly $ref: "#/$defs/Ext";
|
|
80
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
81
|
+
};
|
|
82
|
+
readonly subject: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
readonly description: "The party being invited. Named in the credential, which is why a VIC is single-use and why it is not presented on every access: presenting one would disclose the member.";
|
|
85
|
+
};
|
|
86
|
+
readonly validUntil: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
readonly format: "date-time";
|
|
89
|
+
readonly description: "When the invitation expires. An invitation that never expires is a standing right to enter, held by whoever ends up with the bytes.";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly $defs: {
|
|
93
|
+
readonly Response: {
|
|
94
|
+
readonly $anchor: "response";
|
|
95
|
+
readonly title: "Rooms Owner Invite — response payload";
|
|
96
|
+
readonly description: "Success response to rooms/owner/invite. Type https://trusttasks.org/spec/rooms/owner/invite/0.1#response. The signed VIC, for delivery to the invitee.";
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly additionalProperties: false;
|
|
99
|
+
readonly required: readonly ["credential", "credentialId"];
|
|
100
|
+
readonly properties: {
|
|
101
|
+
readonly credential: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
readonly description: "The signed Verifiable Invitation Credential, serialised.";
|
|
104
|
+
};
|
|
105
|
+
readonly credentialId: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly description: "Its `id`. The owner tracks consumption by this on a `private` room, where a host-side invitation store would hand the host the membership at invite time.";
|
|
108
|
+
};
|
|
109
|
+
readonly ext: {
|
|
110
|
+
readonly $ref: "#/$defs/Ext";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
readonly Ext: {
|
|
115
|
+
readonly title: "Ext";
|
|
116
|
+
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.";
|
|
117
|
+
readonly type: "object";
|
|
118
|
+
readonly minProperties: 1;
|
|
119
|
+
readonly additionalProperties: true;
|
|
120
|
+
readonly propertyNames: {
|
|
121
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
127
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
128
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
129
|
+
readonly $ref: "#/$defs/Response";
|
|
130
|
+
readonly $defs: {
|
|
131
|
+
readonly Response: {
|
|
132
|
+
readonly $anchor: "response";
|
|
133
|
+
readonly title: "Rooms Owner Invite — response payload";
|
|
134
|
+
readonly description: "Success response to rooms/owner/invite. Type https://trusttasks.org/spec/rooms/owner/invite/0.1#response. The signed VIC, for delivery to the invitee.";
|
|
135
|
+
readonly type: "object";
|
|
136
|
+
readonly additionalProperties: false;
|
|
137
|
+
readonly required: readonly ["credential", "credentialId"];
|
|
138
|
+
readonly properties: {
|
|
139
|
+
readonly credential: {
|
|
140
|
+
readonly type: "string";
|
|
141
|
+
readonly description: "The signed Verifiable Invitation Credential, serialised.";
|
|
142
|
+
};
|
|
143
|
+
readonly credentialId: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly description: "Its `id`. The owner tracks consumption by this on a `private` room, where a host-side invitation store would hand the host the membership at invite time.";
|
|
146
|
+
};
|
|
147
|
+
readonly ext: {
|
|
148
|
+
readonly $ref: "#/$defs/Ext";
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
readonly Ext: {
|
|
153
|
+
readonly title: "Ext";
|
|
154
|
+
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.";
|
|
155
|
+
readonly type: "object";
|
|
156
|
+
readonly minProperties: 1;
|
|
157
|
+
readonly additionalProperties: true;
|
|
158
|
+
readonly propertyNames: {
|
|
159
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
166
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
167
|
+
* per-specification and cannot be derived from the document alone, and
|
|
168
|
+
* item 2 needs the schema this carries.
|
|
169
|
+
*/
|
|
170
|
+
export declare const SPEC: {
|
|
171
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/owner/invite/0.1";
|
|
172
|
+
readonly isBearer: false;
|
|
173
|
+
readonly isProofRequired: true;
|
|
174
|
+
readonly isRecipientRequired: true;
|
|
175
|
+
readonly isIssuedAtRequired: true;
|
|
176
|
+
readonly payloadSchema: {
|
|
177
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
178
|
+
readonly $id: "https://trusttasks.org/spec/rooms/owner/invite/0.1";
|
|
179
|
+
readonly title: "Rooms Owner Invite — payload";
|
|
180
|
+
readonly type: "object";
|
|
181
|
+
readonly additionalProperties: false;
|
|
182
|
+
readonly required: readonly ["roomId", "signingKeyId", "subject"];
|
|
183
|
+
readonly properties: {
|
|
184
|
+
readonly roomId: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly description: "The room whose identity issues this credential. The recipient MUST hold a signing key for it — it is signing AS the room, not as itself.";
|
|
187
|
+
};
|
|
188
|
+
readonly signingKeyId: {
|
|
189
|
+
readonly type: "string";
|
|
190
|
+
readonly maxLength: 256;
|
|
191
|
+
readonly description: "Which held key signs. Named explicitly rather than looked up from `roomId`, because nothing maps a DID to a key it was minted with and inventing that mapping would add a lifecycle to get wrong. A key that is not the room's produces a credential that fails to verify against the room's DID document — loud, and at the first use rather than later.";
|
|
192
|
+
};
|
|
193
|
+
readonly ext: {
|
|
194
|
+
readonly $ref: "#/$defs/Ext";
|
|
195
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
196
|
+
};
|
|
197
|
+
readonly subject: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
readonly description: "The party being invited. Named in the credential, which is why a VIC is single-use and why it is not presented on every access: presenting one would disclose the member.";
|
|
200
|
+
};
|
|
201
|
+
readonly validUntil: {
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
readonly format: "date-time";
|
|
204
|
+
readonly description: "When the invitation expires. An invitation that never expires is a standing right to enter, held by whoever ends up with the bytes.";
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
readonly $defs: {
|
|
208
|
+
readonly Response: {
|
|
209
|
+
readonly $anchor: "response";
|
|
210
|
+
readonly title: "Rooms Owner Invite — response payload";
|
|
211
|
+
readonly description: "Success response to rooms/owner/invite. Type https://trusttasks.org/spec/rooms/owner/invite/0.1#response. The signed VIC, for delivery to the invitee.";
|
|
212
|
+
readonly type: "object";
|
|
213
|
+
readonly additionalProperties: false;
|
|
214
|
+
readonly required: readonly ["credential", "credentialId"];
|
|
215
|
+
readonly properties: {
|
|
216
|
+
readonly credential: {
|
|
217
|
+
readonly type: "string";
|
|
218
|
+
readonly description: "The signed Verifiable Invitation Credential, serialised.";
|
|
219
|
+
};
|
|
220
|
+
readonly credentialId: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
readonly description: "Its `id`. The owner tracks consumption by this on a `private` room, where a host-side invitation store would hand the host the membership at invite time.";
|
|
223
|
+
};
|
|
224
|
+
readonly ext: {
|
|
225
|
+
readonly $ref: "#/$defs/Ext";
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly Ext: {
|
|
230
|
+
readonly title: "Ext";
|
|
231
|
+
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.";
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly minProperties: 1;
|
|
234
|
+
readonly additionalProperties: true;
|
|
235
|
+
readonly propertyNames: {
|
|
236
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
244
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
245
|
+
* parties (§7.3 item 5).
|
|
246
|
+
*/
|
|
247
|
+
export declare const RESPONSE_SPEC: {
|
|
248
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/owner/invite/0.1#response";
|
|
249
|
+
readonly isBearer: false;
|
|
250
|
+
readonly isProofRequired: true;
|
|
251
|
+
readonly isRecipientRequired: true;
|
|
252
|
+
readonly isIssuedAtRequired: true;
|
|
253
|
+
readonly payloadSchema: {
|
|
254
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
255
|
+
readonly $ref: "#/$defs/Response";
|
|
256
|
+
readonly $defs: {
|
|
257
|
+
readonly Response: {
|
|
258
|
+
readonly $anchor: "response";
|
|
259
|
+
readonly title: "Rooms Owner Invite — response payload";
|
|
260
|
+
readonly description: "Success response to rooms/owner/invite. Type https://trusttasks.org/spec/rooms/owner/invite/0.1#response. The signed VIC, for delivery to the invitee.";
|
|
261
|
+
readonly type: "object";
|
|
262
|
+
readonly additionalProperties: false;
|
|
263
|
+
readonly required: readonly ["credential", "credentialId"];
|
|
264
|
+
readonly properties: {
|
|
265
|
+
readonly credential: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly description: "The signed Verifiable Invitation Credential, serialised.";
|
|
268
|
+
};
|
|
269
|
+
readonly credentialId: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly description: "Its `id`. The owner tracks consumption by this on a `private` room, where a host-side invitation store would hand the host the membership at invite time.";
|
|
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
|
+
};
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/rooms/owner/invite/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,oDAA6D,CAAC;AAEtF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,uBAAuB,CAAC;AAE9C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,6DAAsE,CAAC;AAExG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,+BAA+B,CAAC;AAEvD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/owner/invite/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/owner/invite/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/owner/invite/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/invite/0.1",
|
|
21
|
+
"title": "Rooms Owner Invite — payload",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"roomId",
|
|
26
|
+
"signingKeyId",
|
|
27
|
+
"subject"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"roomId": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The room whose identity issues this credential. The recipient MUST hold a signing key for it — it is signing AS the room, not as itself."
|
|
33
|
+
},
|
|
34
|
+
"signingKeyId": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"maxLength": 256,
|
|
37
|
+
"description": "Which held key signs. Named explicitly rather than looked up from `roomId`, because nothing maps a DID to a key it was minted with and inventing that mapping would add a lifecycle to get wrong. A key that is not the room's produces a credential that fails to verify against the room's DID document — loud, and at the first use rather than later."
|
|
38
|
+
},
|
|
39
|
+
"ext": {
|
|
40
|
+
"$ref": "#/$defs/Ext",
|
|
41
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
42
|
+
},
|
|
43
|
+
"subject": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "The party being invited. Named in the credential, which is why a VIC is single-use and why it is not presented on every access: presenting one would disclose the member."
|
|
46
|
+
},
|
|
47
|
+
"validUntil": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"format": "date-time",
|
|
50
|
+
"description": "When the invitation expires. An invitation that never expires is a standing right to enter, held by whoever ends up with the bytes."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"$defs": {
|
|
54
|
+
"Response": {
|
|
55
|
+
"$anchor": "response",
|
|
56
|
+
"title": "Rooms Owner Invite — response payload",
|
|
57
|
+
"description": "Success response to rooms/owner/invite. Type https://trusttasks.org/spec/rooms/owner/invite/0.1#response. The signed VIC, for delivery to the invitee.",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": [
|
|
61
|
+
"credential",
|
|
62
|
+
"credentialId"
|
|
63
|
+
],
|
|
64
|
+
"properties": {
|
|
65
|
+
"credential": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "The signed Verifiable Invitation Credential, serialised."
|
|
68
|
+
},
|
|
69
|
+
"credentialId": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Its `id`. The owner tracks consumption by this on a `private` room, where a host-side invitation store would hand the host the membership at invite time."
|
|
72
|
+
},
|
|
73
|
+
"ext": {
|
|
74
|
+
"$ref": "#/$defs/Ext"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"Ext": {
|
|
79
|
+
"title": "Ext",
|
|
80
|
+
"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.",
|
|
81
|
+
"type": "object",
|
|
82
|
+
"minProperties": 1,
|
|
83
|
+
"additionalProperties": true,
|
|
84
|
+
"propertyNames": {
|
|
85
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
91
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
92
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
93
|
+
"$ref": "#/$defs/Response",
|
|
94
|
+
"$defs": {
|
|
95
|
+
"Response": {
|
|
96
|
+
"$anchor": "response",
|
|
97
|
+
"title": "Rooms Owner Invite — response payload",
|
|
98
|
+
"description": "Success response to rooms/owner/invite. Type https://trusttasks.org/spec/rooms/owner/invite/0.1#response. The signed VIC, for delivery to the invitee.",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": [
|
|
102
|
+
"credential",
|
|
103
|
+
"credentialId"
|
|
104
|
+
],
|
|
105
|
+
"properties": {
|
|
106
|
+
"credential": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"description": "The signed Verifiable Invitation Credential, serialised."
|
|
109
|
+
},
|
|
110
|
+
"credentialId": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"description": "Its `id`. The owner tracks consumption by this on a `private` room, where a host-side invitation store would hand the host the membership at invite time."
|
|
113
|
+
},
|
|
114
|
+
"ext": {
|
|
115
|
+
"$ref": "#/$defs/Ext"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"Ext": {
|
|
120
|
+
"title": "Ext",
|
|
121
|
+
"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.",
|
|
122
|
+
"type": "object",
|
|
123
|
+
"minProperties": 1,
|
|
124
|
+
"additionalProperties": true,
|
|
125
|
+
"propertyNames": {
|
|
126
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
133
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
134
|
+
* per-specification and cannot be derived from the document alone, and
|
|
135
|
+
* item 2 needs the schema this carries.
|
|
136
|
+
*/
|
|
137
|
+
export const SPEC = {
|
|
138
|
+
typeUri: TYPE_URI,
|
|
139
|
+
isBearer: false,
|
|
140
|
+
isProofRequired: true,
|
|
141
|
+
isRecipientRequired: true,
|
|
142
|
+
isIssuedAtRequired: true,
|
|
143
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
147
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
148
|
+
* parties (§7.3 item 5).
|
|
149
|
+
*/
|
|
150
|
+
export const RESPONSE_SPEC = {
|
|
151
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
152
|
+
isBearer: false,
|
|
153
|
+
isProofRequired: true,
|
|
154
|
+
isRecipientRequired: true,
|
|
155
|
+
isIssuedAtRequired: true,
|
|
156
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/owner/invite/0.1/payload.ts"],"names":[],"mappings":"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"}
|