@openvtc/trust-tasks 0.26.0 → 0.26.2
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 +170 -0
- package/dist/_shared/components.d.ts +107 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/owner/group/add/0.1/payload.d.ts +417 -0
- package/dist/rooms/owner/group/add/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/add/0.1/payload.js +218 -0
- package/dist/rooms/owner/group/add/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/group/create/0.1/payload.d.ts +299 -0
- package/dist/rooms/owner/group/create/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/create/0.1/payload.js +163 -0
- package/dist/rooms/owner/group/create/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/group/remove/0.1/payload.d.ts +343 -0
- package/dist/rooms/owner/group/remove/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/remove/0.1/payload.js +184 -0
- package/dist/rooms/owner/group/remove/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/register/0.1/payload.d.ts +3 -3
- package/dist/rooms/owner/register/0.1/payload.js +1 -1
- package/dist/rooms/owner/register/0.1/payload.js.map +1 -1
- package/dist/vtc/_shared/0.1/community-room.d.ts +16 -0
- package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/community-room.js +6 -0
- package/dist/vtc/_shared/0.1/community-room.js.map +1 -0
- package/dist/vtc/admin/events/_shared/0.1/topic.d.ts +1 -1
- package/dist/vtc/admin/events/_shared/0.1/topic.d.ts.map +1 -1
- package/dist/vtc/admin/events/_shared/0.2/topic.d.ts +28 -0
- package/dist/vtc/admin/events/_shared/0.2/topic.d.ts.map +1 -0
- package/dist/vtc/admin/events/_shared/0.2/topic.js +6 -0
- package/dist/vtc/admin/events/_shared/0.2/topic.js.map +1 -0
- package/dist/vtc/admin/events/event/0.1/payload.d.ts +1 -1
- package/dist/vtc/admin/events/event/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/admin/events/event/0.2/payload.d.ts +172 -0
- package/dist/vtc/admin/events/event/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/event/0.2/payload.js +100 -0
- package/dist/vtc/admin/events/event/0.2/payload.js.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.1/payload.d.ts +1 -1
- package/dist/vtc/admin/events/subscribe/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/admin/events/subscribe/0.2/payload.d.ts +409 -0
- package/dist/vtc/admin/events/subscribe/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.2/payload.js +232 -0
- package/dist/vtc/admin/events/subscribe/0.2/payload.js.map +1 -0
- package/dist/vtc/oid4vp/identities/list/0.1/payload.d.ts +938 -0
- package/dist/vtc/oid4vp/identities/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/oid4vp/identities/list/0.1/payload.js +559 -0
- package/dist/vtc/oid4vp/identities/list/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/create/0.1/payload.d.ts +789 -0
- package/dist/vtc/rooms/community/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/create/0.1/payload.js +463 -0
- package/dist/vtc/rooms/community/create/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/get/0.1/payload.d.ts +711 -0
- package/dist/vtc/rooms/community/get/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/get/0.1/payload.js +429 -0
- package/dist/vtc/rooms/community/get/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/list/0.1/payload.d.ts +772 -0
- package/dist/vtc/rooms/community/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/list/0.1/payload.js +452 -0
- package/dist/vtc/rooms/community/list/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts +535 -0
- package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/members/add/0.1/payload.js +314 -0
- package/dist/vtc/rooms/community/members/add/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts +554 -0
- package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/members/list/0.1/payload.js +315 -0
- package/dist/vtc/rooms/community/members/list/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/members/remove/0.1/payload.d.ts +533 -0
- package/dist/vtc/rooms/community/members/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/members/remove/0.1/payload.js +313 -0
- package/dist/vtc/rooms/community/members/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/offers/accept/0.1/payload.d.ts +349 -0
- package/dist/vtc/rooms/offers/accept/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/offers/accept/0.1/payload.js +188 -0
- package/dist/vtc/rooms/offers/accept/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/offers/list/0.1/payload.d.ts +692 -0
- package/dist/vtc/rooms/offers/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/offers/list/0.1/payload.js +408 -0
- package/dist/vtc/rooms/offers/list/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +120 -1
- package/src/index.ts +16 -0
- package/src/rooms/owner/group/add/0.1/payload.ts +288 -0
- package/src/rooms/owner/group/create/0.1/payload.ts +213 -0
- package/src/rooms/owner/group/remove/0.1/payload.ts +242 -0
- package/src/rooms/owner/register/0.1/payload.ts +2 -2
- package/src/vtc/_shared/0.1/community-room.ts +17 -0
- package/src/vtc/admin/events/_shared/0.1/topic.ts +1 -1
- package/src/vtc/admin/events/_shared/0.2/topic.ts +29 -0
- package/src/vtc/admin/events/event/0.1/payload.ts +1 -1
- package/src/vtc/admin/events/event/0.2/payload.ts +134 -0
- package/src/vtc/admin/events/subscribe/0.1/payload.ts +1 -1
- package/src/vtc/admin/events/subscribe/0.2/payload.ts +306 -0
- package/src/vtc/oid4vp/identities/list/0.1/payload.ts +706 -0
- package/src/vtc/rooms/community/create/0.1/payload.ts +509 -0
- package/src/vtc/rooms/community/get/0.1/payload.ts +461 -0
- package/src/vtc/rooms/community/list/0.1/payload.ts +495 -0
- package/src/vtc/rooms/community/members/add/0.1/payload.ts +356 -0
- package/src/vtc/rooms/community/members/list/0.1/payload.ts +366 -0
- package/src/vtc/rooms/community/members/remove/0.1/payload.ts +351 -0
- package/src/vtc/rooms/offers/accept/0.1/payload.ts +240 -0
- package/src/vtc/rooms/offers/list/0.1/payload.ts +451 -0
package/src/index.ts
CHANGED
|
@@ -452,6 +452,9 @@ export * as RoomsKeysSeal_v0_1 from "./rooms/keys/seal/0.1/payload.js";
|
|
|
452
452
|
export * as RoomsKeysWelcome_v0_1 from "./rooms/keys/welcome/0.1/payload.js";
|
|
453
453
|
export * as RoomsOwnerAnchor_v0_1 from "./rooms/owner/anchor/0.1/payload.js";
|
|
454
454
|
export * as RoomsOwnerClaim_v0_1 from "./rooms/owner/claim/0.1/payload.js";
|
|
455
|
+
export * as RoomsOwnerGroupAdd_v0_1 from "./rooms/owner/group/add/0.1/payload.js";
|
|
456
|
+
export * as RoomsOwnerGroupCreate_v0_1 from "./rooms/owner/group/create/0.1/payload.js";
|
|
457
|
+
export * as RoomsOwnerGroupRemove_v0_1 from "./rooms/owner/group/remove/0.1/payload.js";
|
|
455
458
|
export * as RoomsOwnerInvite_v0_1 from "./rooms/owner/invite/0.1/payload.js";
|
|
456
459
|
export * as RoomsOwnerIssueAuthority_v0_1 from "./rooms/owner/issue-authority/0.1/payload.js";
|
|
457
460
|
export * as RoomsOwnerIssueAuthority_v0_2 from "./rooms/owner/issue-authority/0.2/payload.js";
|
|
@@ -670,6 +673,7 @@ export * as VtaWebvhServersRetireOrphan_v0_1 from "./vta/webvh/servers/retire-or
|
|
|
670
673
|
export * as BackupShared_v0_1 from "./vtc/_shared/0.1/backup.js";
|
|
671
674
|
export * as CeremonyShared_v0_1 from "./vtc/_shared/0.1/ceremony.js";
|
|
672
675
|
export * as CommunityPresentationShared_v0_1 from "./vtc/_shared/0.1/community-presentation.js";
|
|
676
|
+
export * as CommunityRoomShared_v0_1 from "./vtc/_shared/0.1/community-room.js";
|
|
673
677
|
export * as CommunityShared_v0_1 from "./vtc/_shared/0.1/community.js";
|
|
674
678
|
export * as ConfigPortabilityShared_v0_1 from "./vtc/_shared/0.1/config-portability.js";
|
|
675
679
|
export * as EndorsementTypeShared_v0_1 from "./vtc/_shared/0.1/endorsement-type.js";
|
|
@@ -697,8 +701,11 @@ export * as VtcAdminActionsShow_v0_1 from "./vtc/admin/actions/show/0.1/payload.
|
|
|
697
701
|
export * as VtcAdminActionsShow_v0_2 from "./vtc/admin/actions/show/0.2/payload.js";
|
|
698
702
|
export * as VtcAdminBootstrap_v0_1 from "./vtc/admin/bootstrap/0.1/payload.js";
|
|
699
703
|
export * as TopicShared_v0_1 from "./vtc/admin/events/_shared/0.1/topic.js";
|
|
704
|
+
export * as TopicShared_v0_2 from "./vtc/admin/events/_shared/0.2/topic.js";
|
|
700
705
|
export * as VtcAdminEventsEvent_v0_1 from "./vtc/admin/events/event/0.1/payload.js";
|
|
706
|
+
export * as VtcAdminEventsEvent_v0_2 from "./vtc/admin/events/event/0.2/payload.js";
|
|
701
707
|
export * as VtcAdminEventsSubscribe_v0_1 from "./vtc/admin/events/subscribe/0.1/payload.js";
|
|
708
|
+
export * as VtcAdminEventsSubscribe_v0_2 from "./vtc/admin/events/subscribe/0.2/payload.js";
|
|
702
709
|
export * as VtcAdminInvitesCreate_v0_1 from "./vtc/admin/invites/create/0.1/payload.js";
|
|
703
710
|
export * as VtcAdminInvitesList_v0_1 from "./vtc/admin/invites/list/0.1/payload.js";
|
|
704
711
|
export * as VtcAdminInvitesRevoke_v0_1 from "./vtc/admin/invites/revoke/0.1/payload.js";
|
|
@@ -780,6 +787,7 @@ export * as VtcMembersSolicitVmc_v0_1 from "./vtc/members/solicit-vmc/0.1/payloa
|
|
|
780
787
|
export * as VtcMembersStepUpPasskeyNotice_v0_1 from "./vtc/members/step-up-passkey-notice/0.1/payload.js";
|
|
781
788
|
export * as VtcMembersUpdate_v0_1 from "./vtc/members/update/0.1/payload.js";
|
|
782
789
|
export * as VtcMembersVmc_v0_1 from "./vtc/members/vmc/0.1/payload.js";
|
|
790
|
+
export * as VtcOid4vpIdentitiesList_v0_1 from "./vtc/oid4vp/identities/list/0.1/payload.js";
|
|
783
791
|
export * as VtcOperatorOfflineWrite_v0_1 from "./vtc/operator/offline-write/0.1/payload.js";
|
|
784
792
|
export * as VtcPoliciesTest_v0_1 from "./vtc/policies/test/0.1/payload.js";
|
|
785
793
|
export * as VtcRecognitionCheck_v0_1 from "./vtc/recognition/check/0.1/payload.js";
|
|
@@ -805,9 +813,17 @@ export * as VtcRolesDefine_v0_1 from "./vtc/roles/define/0.1/payload.js";
|
|
|
805
813
|
export * as VtcRolesDelete_v0_1 from "./vtc/roles/delete/0.1/payload.js";
|
|
806
814
|
export * as VtcRolesList_v0_1 from "./vtc/roles/list/0.1/payload.js";
|
|
807
815
|
export * as VtcRolesShow_v0_1 from "./vtc/roles/show/0.1/payload.js";
|
|
816
|
+
export * as VtcRoomsCommunityCreate_v0_1 from "./vtc/rooms/community/create/0.1/payload.js";
|
|
817
|
+
export * as VtcRoomsCommunityGet_v0_1 from "./vtc/rooms/community/get/0.1/payload.js";
|
|
818
|
+
export * as VtcRoomsCommunityList_v0_1 from "./vtc/rooms/community/list/0.1/payload.js";
|
|
819
|
+
export * as VtcRoomsCommunityMembersAdd_v0_1 from "./vtc/rooms/community/members/add/0.1/payload.js";
|
|
820
|
+
export * as VtcRoomsCommunityMembersList_v0_1 from "./vtc/rooms/community/members/list/0.1/payload.js";
|
|
821
|
+
export * as VtcRoomsCommunityMembersRemove_v0_1 from "./vtc/rooms/community/members/remove/0.1/payload.js";
|
|
808
822
|
export * as VtcRoomsGet_v0_1 from "./vtc/rooms/get/0.1/payload.js";
|
|
809
823
|
export * as VtcRoomsLimitsSet_v0_1 from "./vtc/rooms/limits/set/0.1/payload.js";
|
|
810
824
|
export * as VtcRoomsList_v0_1 from "./vtc/rooms/list/0.1/payload.js";
|
|
825
|
+
export * as VtcRoomsOffersAccept_v0_1 from "./vtc/rooms/offers/accept/0.1/payload.js";
|
|
826
|
+
export * as VtcRoomsOffersList_v0_1 from "./vtc/rooms/offers/list/0.1/payload.js";
|
|
811
827
|
export * as VtcRoomsStorageAssign_v0_1 from "./vtc/rooms/storage/assign/0.1/payload.js";
|
|
812
828
|
export * as VtcRoomsStorageMigrate_v0_1 from "./vtc/rooms/storage/migrate/0.1/payload.js";
|
|
813
829
|
export * as VtcRoomsUsage_v0_1 from "./vtc/rooms/usage/0.1/payload.js";
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/owner/group/add/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface RoomsOwnerGroupAddPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The room whose group admits a member. The recipient MUST hold its group.
|
|
12
|
+
*/
|
|
13
|
+
roomId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The room's host, as a DID: where the room's epoch advances. Named by the caller because the recipient holds key custody, not a hosting register.
|
|
16
|
+
*/
|
|
17
|
+
host: string;
|
|
18
|
+
/**
|
|
19
|
+
* The DID being admitted. The KeyPackage's leaf credential MUST identify it; one that names anyone else is refused, so an owner never admits a party other than the one they meant.
|
|
20
|
+
*/
|
|
21
|
+
member: string;
|
|
22
|
+
/**
|
|
23
|
+
* The newcomer's MLS KeyPackage, base64url without padding, as rooms/keys/key-package returned it.
|
|
24
|
+
*/
|
|
25
|
+
keyPackage: string;
|
|
26
|
+
/**
|
|
27
|
+
* Why, carried to the host's epoch advance. Untrusted and attributed to its author: it MUST NOT carry personal data or a credential.
|
|
28
|
+
*/
|
|
29
|
+
reason?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
32
|
+
*/
|
|
33
|
+
ext?: Ext;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Success response to rooms/owner/group/add. Type https://trusttasks.org/spec/rooms/owner/group/add/0.1#response. The room's new epoch, and the Welcome for the caller to deliver to the newcomer's key holder with rooms/keys/welcome.
|
|
37
|
+
*/
|
|
38
|
+
export interface RoomsOwnerGroupAddResponsePayload {
|
|
39
|
+
/**
|
|
40
|
+
* The room.
|
|
41
|
+
*/
|
|
42
|
+
roomId: string;
|
|
43
|
+
/**
|
|
44
|
+
* Who was admitted.
|
|
45
|
+
*/
|
|
46
|
+
member: string;
|
|
47
|
+
/**
|
|
48
|
+
* The room epoch after the admission, as the host recorded it.
|
|
49
|
+
*/
|
|
50
|
+
epoch: number;
|
|
51
|
+
/**
|
|
52
|
+
* The MLS Welcome, base64url, sealed to the newcomer's KeyPackage. For rooms/keys/welcome; never through the host.
|
|
53
|
+
*/
|
|
54
|
+
welcome: string;
|
|
55
|
+
/**
|
|
56
|
+
* The group's ratchet tree, base64url, where the Welcome does not carry it as an extension. Passed to rooms/keys/welcome unchanged.
|
|
57
|
+
*/
|
|
58
|
+
ratchetTree?: string;
|
|
59
|
+
ext?: Ext;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
63
|
+
export type { Ext };
|
|
64
|
+
|
|
65
|
+
/** Trust Task type URI. */
|
|
66
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/owner/group/add/0.1" as const;
|
|
67
|
+
|
|
68
|
+
/** Stable alias for this specification's request payload shape. */
|
|
69
|
+
export type Payload = RoomsOwnerGroupAddPayload;
|
|
70
|
+
|
|
71
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
72
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/owner/group/add/0.1#response" as const;
|
|
73
|
+
|
|
74
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
75
|
+
export type Response = RoomsOwnerGroupAddResponsePayload;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* This specification's payload schema, as a value.
|
|
79
|
+
*
|
|
80
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
81
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
82
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
83
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
84
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
85
|
+
*/
|
|
86
|
+
export const PAYLOAD_SCHEMA = {
|
|
87
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
88
|
+
"$id": "https://trusttasks.org/spec/rooms/owner/group/add/0.1",
|
|
89
|
+
"title": "Rooms Owner Group Add — payload",
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": [
|
|
93
|
+
"roomId",
|
|
94
|
+
"host",
|
|
95
|
+
"member",
|
|
96
|
+
"keyPackage"
|
|
97
|
+
],
|
|
98
|
+
"properties": {
|
|
99
|
+
"roomId": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"minLength": 1,
|
|
102
|
+
"maxLength": 512,
|
|
103
|
+
"description": "The room whose group admits a member. The recipient MUST hold its group."
|
|
104
|
+
},
|
|
105
|
+
"host": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"pattern": "^did:",
|
|
108
|
+
"maxLength": 2048,
|
|
109
|
+
"description": "The room's host, as a DID: where the room's epoch advances. Named by the caller because the recipient holds key custody, not a hosting register."
|
|
110
|
+
},
|
|
111
|
+
"member": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"pattern": "^did:",
|
|
114
|
+
"maxLength": 2048,
|
|
115
|
+
"description": "The DID being admitted. The KeyPackage's leaf credential MUST identify it; one that names anyone else is refused, so an owner never admits a party other than the one they meant."
|
|
116
|
+
},
|
|
117
|
+
"keyPackage": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"minLength": 1,
|
|
120
|
+
"maxLength": 65536,
|
|
121
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
122
|
+
"description": "The newcomer's MLS KeyPackage, base64url without padding, as rooms/keys/key-package returned it."
|
|
123
|
+
},
|
|
124
|
+
"reason": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1,
|
|
127
|
+
"maxLength": 500,
|
|
128
|
+
"description": "Why, carried to the host's epoch advance. Untrusted and attributed to its author: it MUST NOT carry personal data or a credential."
|
|
129
|
+
},
|
|
130
|
+
"ext": {
|
|
131
|
+
"$ref": "#/$defs/Ext",
|
|
132
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"$defs": {
|
|
136
|
+
"Response": {
|
|
137
|
+
"$anchor": "response",
|
|
138
|
+
"title": "Rooms Owner Group Add — response payload",
|
|
139
|
+
"description": "Success response to rooms/owner/group/add. Type https://trusttasks.org/spec/rooms/owner/group/add/0.1#response. The room's new epoch, and the Welcome for the caller to deliver to the newcomer's key holder with rooms/keys/welcome.",
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"required": [
|
|
143
|
+
"roomId",
|
|
144
|
+
"member",
|
|
145
|
+
"epoch",
|
|
146
|
+
"welcome"
|
|
147
|
+
],
|
|
148
|
+
"properties": {
|
|
149
|
+
"roomId": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"minLength": 1,
|
|
152
|
+
"maxLength": 512,
|
|
153
|
+
"description": "The room."
|
|
154
|
+
},
|
|
155
|
+
"member": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"pattern": "^did:",
|
|
158
|
+
"maxLength": 2048,
|
|
159
|
+
"description": "Who was admitted."
|
|
160
|
+
},
|
|
161
|
+
"epoch": {
|
|
162
|
+
"type": "integer",
|
|
163
|
+
"minimum": 2,
|
|
164
|
+
"description": "The room epoch after the admission, as the host recorded it."
|
|
165
|
+
},
|
|
166
|
+
"welcome": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"minLength": 1,
|
|
169
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
170
|
+
"description": "The MLS Welcome, base64url, sealed to the newcomer's KeyPackage. For rooms/keys/welcome; never through the host."
|
|
171
|
+
},
|
|
172
|
+
"ratchetTree": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"minLength": 1,
|
|
175
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
176
|
+
"description": "The group's ratchet tree, base64url, where the Welcome does not carry it as an extension. Passed to rooms/keys/welcome unchanged."
|
|
177
|
+
},
|
|
178
|
+
"ext": {
|
|
179
|
+
"$ref": "#/$defs/Ext"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"Ext": {
|
|
184
|
+
"title": "Ext",
|
|
185
|
+
"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.",
|
|
186
|
+
"type": "object",
|
|
187
|
+
"minProperties": 1,
|
|
188
|
+
"additionalProperties": true,
|
|
189
|
+
"propertyNames": {
|
|
190
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
} as const;
|
|
195
|
+
|
|
196
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
197
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
198
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
199
|
+
"$ref": "#/$defs/Response",
|
|
200
|
+
"$defs": {
|
|
201
|
+
"Response": {
|
|
202
|
+
"$anchor": "response",
|
|
203
|
+
"title": "Rooms Owner Group Add — response payload",
|
|
204
|
+
"description": "Success response to rooms/owner/group/add. Type https://trusttasks.org/spec/rooms/owner/group/add/0.1#response. The room's new epoch, and the Welcome for the caller to deliver to the newcomer's key holder with rooms/keys/welcome.",
|
|
205
|
+
"type": "object",
|
|
206
|
+
"additionalProperties": false,
|
|
207
|
+
"required": [
|
|
208
|
+
"roomId",
|
|
209
|
+
"member",
|
|
210
|
+
"epoch",
|
|
211
|
+
"welcome"
|
|
212
|
+
],
|
|
213
|
+
"properties": {
|
|
214
|
+
"roomId": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"minLength": 1,
|
|
217
|
+
"maxLength": 512,
|
|
218
|
+
"description": "The room."
|
|
219
|
+
},
|
|
220
|
+
"member": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"pattern": "^did:",
|
|
223
|
+
"maxLength": 2048,
|
|
224
|
+
"description": "Who was admitted."
|
|
225
|
+
},
|
|
226
|
+
"epoch": {
|
|
227
|
+
"type": "integer",
|
|
228
|
+
"minimum": 2,
|
|
229
|
+
"description": "The room epoch after the admission, as the host recorded it."
|
|
230
|
+
},
|
|
231
|
+
"welcome": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"minLength": 1,
|
|
234
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
235
|
+
"description": "The MLS Welcome, base64url, sealed to the newcomer's KeyPackage. For rooms/keys/welcome; never through the host."
|
|
236
|
+
},
|
|
237
|
+
"ratchetTree": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"minLength": 1,
|
|
240
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
241
|
+
"description": "The group's ratchet tree, base64url, where the Welcome does not carry it as an extension. Passed to rooms/keys/welcome unchanged."
|
|
242
|
+
},
|
|
243
|
+
"ext": {
|
|
244
|
+
"$ref": "#/$defs/Ext"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"Ext": {
|
|
249
|
+
"title": "Ext",
|
|
250
|
+
"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.",
|
|
251
|
+
"type": "object",
|
|
252
|
+
"minProperties": 1,
|
|
253
|
+
"additionalProperties": true,
|
|
254
|
+
"propertyNames": {
|
|
255
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
} as const;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
263
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
264
|
+
* per-specification and cannot be derived from the document alone, and
|
|
265
|
+
* item 2 needs the schema this carries.
|
|
266
|
+
*/
|
|
267
|
+
export const SPEC = {
|
|
268
|
+
typeUri: TYPE_URI,
|
|
269
|
+
isBearer: false,
|
|
270
|
+
isProofRequired: true,
|
|
271
|
+
isRecipientRequired: true,
|
|
272
|
+
isIssuedAtRequired: true,
|
|
273
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
274
|
+
} as const;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
278
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
279
|
+
* parties (§7.3 item 5).
|
|
280
|
+
*/
|
|
281
|
+
export const RESPONSE_SPEC = {
|
|
282
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
283
|
+
isBearer: false,
|
|
284
|
+
isProofRequired: true,
|
|
285
|
+
isRecipientRequired: true,
|
|
286
|
+
isIssuedAtRequired: true,
|
|
287
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
288
|
+
} as const;
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/owner/group/create/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface RoomsOwnerGroupCreatePayload {
|
|
10
|
+
/**
|
|
11
|
+
* The room whose group is formed. Its identity exists already; the recipient MUST hold a signing key for it.
|
|
12
|
+
*/
|
|
13
|
+
roomId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The room's signing key, named as to rooms/owner/issue-membership. Control of it is the entitlement: forming the room's group is the founding act of its membership.
|
|
16
|
+
*/
|
|
17
|
+
signingKeyId: string;
|
|
18
|
+
/**
|
|
19
|
+
* The DID the owner's leaf identifies — the subject of the owner's membership and authority credentials. Absent means the caller.
|
|
20
|
+
*/
|
|
21
|
+
member?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
24
|
+
*/
|
|
25
|
+
ext?: Ext;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Success response to rooms/owner/group/create. Type https://trusttasks.org/spec/rooms/owner/group/create/0.1#response. The room and the epoch its group was formed at; never a secret.
|
|
29
|
+
*/
|
|
30
|
+
export interface RoomsOwnerGroupCreateResponsePayload {
|
|
31
|
+
/**
|
|
32
|
+
* The room whose group was formed.
|
|
33
|
+
*/
|
|
34
|
+
roomId: string;
|
|
35
|
+
/**
|
|
36
|
+
* The room epoch the group is at: 1, the epoch a host records when a room is registered.
|
|
37
|
+
*/
|
|
38
|
+
epoch: number;
|
|
39
|
+
ext?: Ext;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
43
|
+
export type { Ext };
|
|
44
|
+
|
|
45
|
+
/** Trust Task type URI. */
|
|
46
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/owner/group/create/0.1" as const;
|
|
47
|
+
|
|
48
|
+
/** Stable alias for this specification's request payload shape. */
|
|
49
|
+
export type Payload = RoomsOwnerGroupCreatePayload;
|
|
50
|
+
|
|
51
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
52
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/owner/group/create/0.1#response" as const;
|
|
53
|
+
|
|
54
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
55
|
+
export type Response = RoomsOwnerGroupCreateResponsePayload;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* This specification's payload schema, as a value.
|
|
59
|
+
*
|
|
60
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
61
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
62
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
63
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
64
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
65
|
+
*/
|
|
66
|
+
export const PAYLOAD_SCHEMA = {
|
|
67
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
68
|
+
"$id": "https://trusttasks.org/spec/rooms/owner/group/create/0.1",
|
|
69
|
+
"title": "Rooms Owner Group Create — payload",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": [
|
|
73
|
+
"roomId",
|
|
74
|
+
"signingKeyId"
|
|
75
|
+
],
|
|
76
|
+
"properties": {
|
|
77
|
+
"roomId": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"minLength": 1,
|
|
80
|
+
"maxLength": 512,
|
|
81
|
+
"description": "The room whose group is formed. Its identity exists already; the recipient MUST hold a signing key for it."
|
|
82
|
+
},
|
|
83
|
+
"signingKeyId": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"minLength": 1,
|
|
86
|
+
"maxLength": 256,
|
|
87
|
+
"description": "The room's signing key, named as to rooms/owner/issue-membership. Control of it is the entitlement: forming the room's group is the founding act of its membership."
|
|
88
|
+
},
|
|
89
|
+
"member": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^did:",
|
|
92
|
+
"maxLength": 2048,
|
|
93
|
+
"description": "The DID the owner's leaf identifies — the subject of the owner's membership and authority credentials. Absent means the caller."
|
|
94
|
+
},
|
|
95
|
+
"ext": {
|
|
96
|
+
"$ref": "#/$defs/Ext",
|
|
97
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"$defs": {
|
|
101
|
+
"Response": {
|
|
102
|
+
"$anchor": "response",
|
|
103
|
+
"title": "Rooms Owner Group Create — response payload",
|
|
104
|
+
"description": "Success response to rooms/owner/group/create. Type https://trusttasks.org/spec/rooms/owner/group/create/0.1#response. The room and the epoch its group was formed at; never a secret.",
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"required": [
|
|
108
|
+
"roomId",
|
|
109
|
+
"epoch"
|
|
110
|
+
],
|
|
111
|
+
"properties": {
|
|
112
|
+
"roomId": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"maxLength": 512,
|
|
116
|
+
"description": "The room whose group was formed."
|
|
117
|
+
},
|
|
118
|
+
"epoch": {
|
|
119
|
+
"type": "integer",
|
|
120
|
+
"minimum": 1,
|
|
121
|
+
"description": "The room epoch the group is at: 1, the epoch a host records when a room is registered."
|
|
122
|
+
},
|
|
123
|
+
"ext": {
|
|
124
|
+
"$ref": "#/$defs/Ext"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"Ext": {
|
|
129
|
+
"title": "Ext",
|
|
130
|
+
"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.",
|
|
131
|
+
"type": "object",
|
|
132
|
+
"minProperties": 1,
|
|
133
|
+
"additionalProperties": true,
|
|
134
|
+
"propertyNames": {
|
|
135
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
} as const;
|
|
140
|
+
|
|
141
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
142
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
143
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
144
|
+
"$ref": "#/$defs/Response",
|
|
145
|
+
"$defs": {
|
|
146
|
+
"Response": {
|
|
147
|
+
"$anchor": "response",
|
|
148
|
+
"title": "Rooms Owner Group Create — response payload",
|
|
149
|
+
"description": "Success response to rooms/owner/group/create. Type https://trusttasks.org/spec/rooms/owner/group/create/0.1#response. The room and the epoch its group was formed at; never a secret.",
|
|
150
|
+
"type": "object",
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"required": [
|
|
153
|
+
"roomId",
|
|
154
|
+
"epoch"
|
|
155
|
+
],
|
|
156
|
+
"properties": {
|
|
157
|
+
"roomId": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"minLength": 1,
|
|
160
|
+
"maxLength": 512,
|
|
161
|
+
"description": "The room whose group was formed."
|
|
162
|
+
},
|
|
163
|
+
"epoch": {
|
|
164
|
+
"type": "integer",
|
|
165
|
+
"minimum": 1,
|
|
166
|
+
"description": "The room epoch the group is at: 1, the epoch a host records when a room is registered."
|
|
167
|
+
},
|
|
168
|
+
"ext": {
|
|
169
|
+
"$ref": "#/$defs/Ext"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"Ext": {
|
|
174
|
+
"title": "Ext",
|
|
175
|
+
"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.",
|
|
176
|
+
"type": "object",
|
|
177
|
+
"minProperties": 1,
|
|
178
|
+
"additionalProperties": true,
|
|
179
|
+
"propertyNames": {
|
|
180
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
} as const;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
188
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
189
|
+
* per-specification and cannot be derived from the document alone, and
|
|
190
|
+
* item 2 needs the schema this carries.
|
|
191
|
+
*/
|
|
192
|
+
export const SPEC = {
|
|
193
|
+
typeUri: TYPE_URI,
|
|
194
|
+
isBearer: false,
|
|
195
|
+
isProofRequired: true,
|
|
196
|
+
isRecipientRequired: true,
|
|
197
|
+
isIssuedAtRequired: true,
|
|
198
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
199
|
+
} as const;
|
|
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
|
+
} as const;
|