@fuzdev/fuz_app 0.178.0 → 0.179.0
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/dist/actions/CLAUDE.md +106 -0
- package/dist/actions/connection_registry.d.ts +18 -0
- package/dist/actions/connection_registry.d.ts.map +1 -1
- package/dist/actions/connection_registry.js +23 -0
- package/dist/actions/room_action_specs.d.ts +733 -0
- package/dist/actions/room_action_specs.d.ts.map +1 -0
- package/dist/actions/room_action_specs.js +506 -0
- package/dist/actions/room_actions.d.ts +276 -0
- package/dist/actions/room_actions.d.ts.map +1 -0
- package/dist/actions/room_actions.js +394 -0
- package/dist/actions/room_client.svelte.d.ts +399 -0
- package/dist/actions/room_client.svelte.d.ts.map +1 -0
- package/dist/actions/room_client.svelte.js +942 -0
- package/dist/actions/room_registry.d.ts +454 -0
- package/dist/actions/room_registry.d.ts.map +1 -0
- package/dist/actions/room_registry.js +927 -0
- package/dist/auth/role_grant_offer_action_specs.d.ts +1 -1
- package/dist/auth/role_grant_queries.d.ts +17 -0
- package/dist/auth/role_grant_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_queries.js +30 -0
- package/dist/rtc/rtc_mesh.svelte.d.ts +102 -0
- package/dist/rtc/rtc_mesh.svelte.d.ts.map +1 -0
- package/dist/rtc/rtc_mesh.svelte.js +232 -0
- package/dist/rtc/rtc_peer.svelte.d.ts +180 -0
- package/dist/rtc/rtc_peer.svelte.d.ts.map +1 -0
- package/dist/rtc/rtc_peer.svelte.js +397 -0
- package/dist/rtc/rtc_signal.d.ts +74 -0
- package/dist/rtc/rtc_signal.d.ts.map +1 -0
- package/dist/rtc/rtc_signal.js +87 -0
- package/dist/testing/CLAUDE.md +67 -13
- package/dist/testing/cross_backend/action_manifest.d.ts +34 -2
- package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
- package/dist/testing/cross_backend/action_manifest.js +33 -6
- package/dist/testing/cross_backend/capabilities.d.ts +22 -4
- package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
- package/dist/testing/cross_backend/capabilities.js +4 -1
- package/dist/testing/cross_backend/full_spine_mount.d.ts +31 -6
- package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
- package/dist/testing/cross_backend/full_spine_mount.js +45 -13
- package/dist/testing/cross_backend/rooms_ws.d.ts +20 -0
- package/dist/testing/cross_backend/rooms_ws.d.ts.map +1 -0
- package/dist/testing/cross_backend/rooms_ws.js +534 -0
- package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_stub_backend_config.js +4 -1
- package/dist/testing/cross_backend/spine_suites.d.ts +5 -2
- package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_suites.js +24 -5
- package/dist/testing/cross_backend/spine_surface_constants.d.ts +1 -1
- package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_surface_constants.js +2 -1
- package/dist/testing/cross_backend/test_room_authorize.d.ts +47 -0
- package/dist/testing/cross_backend/test_room_authorize.d.ts.map +1 -0
- package/dist/testing/cross_backend/test_room_authorize.js +58 -0
- package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_backdoor.js +10 -4
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +85 -1
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.js +57 -3
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/ts_spine_backend_config.js +5 -2
- package/dist/ui/AccountSessions.svelte.d.ts.map +1 -1
- package/dist/ui/AdminAccounts.svelte.d.ts.map +1 -1
- package/dist/ui/AdminAuditLog.svelte.d.ts.map +1 -1
- package/dist/ui/AdminInvites.svelte.d.ts.map +1 -1
- package/dist/ui/AdminOverview.svelte.d.ts.map +1 -1
- package/dist/ui/AdminRoleGrantHistory.svelte.d.ts.map +1 -1
- package/dist/ui/AdminSessions.svelte.d.ts.map +1 -1
- package/dist/ui/AdminSettings.svelte.d.ts.map +1 -1
- package/dist/ui/AdminSurface.svelte.d.ts.map +1 -1
- package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
- package/dist/ui/ConfirmButton.svelte.d.ts.map +1 -1
- package/dist/ui/Datatable.svelte.d.ts.map +1 -1
- package/dist/ui/LoginForm.svelte.d.ts.map +1 -1
- package/dist/ui/LogoutButton.svelte.d.ts.map +1 -1
- package/dist/ui/OpenSignupToggle.svelte.d.ts.map +1 -1
- package/dist/ui/PopoverButton.svelte.d.ts.map +1 -1
- package/dist/ui/RoleGrantOfferForm.svelte.d.ts.map +1 -1
- package/dist/ui/RoleGrantOfferHistory.svelte.d.ts.map +1 -1
- package/dist/ui/RoleGrantOfferInbox.svelte.d.ts.map +1 -1
- package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
- package/dist/ui/SurfaceExplorer.svelte.d.ts.map +1 -1
- package/package.json +18 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"room_action_specs.d.ts","sourceRoot":"","sources":["../../src/lib/actions/room_action_specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAkBN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,EACX,eAAe,EACf,4BAA4B,EAE5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAIhD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,8BAA8B,QAAY,CAAC;AAExD,2EAA2E;AAC3E,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAEjD,gEAAgE;AAChE,eAAO,MAA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8EAA8E;AAC9E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;CAUH,CAAC;AAEzC,8DAA8D;AAC9D,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;CAUL,CAAC;AAEzC,iDAAiD;AACjD,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;CAUP,CAAC;AAEzC,8BAA8B;AAC9B,eAAO,MAAM,8BAA8B,EAAE,aAAa,CAAC,4BAA4B,CAOtF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,MAAM,CAE3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,eAAe,CAGzD,CAAC"}
|
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The room verbs' wire: the `room_*` request specs, the `room_*`
|
|
3
|
+
* notifications the registry fans out, their schemas, refusal reasons, and
|
|
4
|
+
* bounds — the TS twin of the Rust spine's `fuz_actions::room` specs and
|
|
5
|
+
* `fuz_realtime::room_registry` notification shapes.
|
|
6
|
+
*
|
|
7
|
+
* A room is a key (`RoomId`) the consumer chooses and parses, holding seats
|
|
8
|
+
* (members, each with a random `MemberId` and a small client-encoded state)
|
|
9
|
+
* and watches (occupancy without a seat). `actions/room_registry.ts` holds
|
|
10
|
+
* the state and the fan-out; `actions/room_actions.ts` builds the handlers
|
|
11
|
+
* over it. Every verb is WebSocket-only — a room belongs to a socket — so a
|
|
12
|
+
* consumer mounts them on a WS endpoint and never on an RPC one, actor-required
|
|
13
|
+
* (`acting` selects the actor on a multi-actor account), and without side
|
|
14
|
+
* effects (the registry is memory, so no transaction opens).
|
|
15
|
+
*
|
|
16
|
+
* `payload` and `state` are strings the client encodes, so both twins measure
|
|
17
|
+
* their bounds alike, in UTF-8 bytes, and charge the per-connection limiter
|
|
18
|
+
* their JSON-escaped length (`json_escaped_len`). Refusals carry `data.reason`,
|
|
19
|
+
* the `ERROR_ROOM_*` constants, plus `rate_limited` with `data.retry_after`.
|
|
20
|
+
* Every member event carries the room's `seq` (`actions/room_registry.ts`
|
|
21
|
+
* says what it promises).
|
|
22
|
+
*
|
|
23
|
+
* @module
|
|
24
|
+
*/
|
|
25
|
+
import { meta } from '@fuzdev/fuz_schema/meta.ts';
|
|
26
|
+
import { array, boolean, literal, max_length, min_length, min_value, nullable, number, object, one_of, optional, pipe, regex, safe_integer, string, unknown, void as fuz_void } from '@fuzdev/fuz_schema/schema.ts';
|
|
27
|
+
import { ActingActor, Uuid } from '../primitive_schemas.js';
|
|
28
|
+
// -- Bounds -------------------------------------------------------------------
|
|
29
|
+
/**
|
|
30
|
+
* The longest `RoomId`, in characters — and bytes, since a room id is ASCII.
|
|
31
|
+
* Twin of the Rust `ROOM_ID_MAX_LENGTH`.
|
|
32
|
+
*/
|
|
33
|
+
export const ROOM_ID_MAX_LENGTH = 128;
|
|
34
|
+
/**
|
|
35
|
+
* Default `RoomRegistryOptions.max_members_per_room`: generous for a
|
|
36
|
+
* full-mesh call, where every member holds a peer connection to every other.
|
|
37
|
+
*/
|
|
38
|
+
export const DEFAULT_ROOM_MAX_MEMBERS = 32;
|
|
39
|
+
/**
|
|
40
|
+
* Default `RoomRegistryOptions.max_payload_bytes`: room for a session
|
|
41
|
+
* description with many candidates, small beside the outbound budget.
|
|
42
|
+
*/
|
|
43
|
+
export const DEFAULT_ROOM_MAX_PAYLOAD_BYTES = 64 * 1024;
|
|
44
|
+
/** Default `RoomRegistryOptions.max_state_bytes`: a few flags, encoded. */
|
|
45
|
+
export const DEFAULT_ROOM_MAX_STATE_BYTES = 1024;
|
|
46
|
+
/** Default `RoomRegistryOptions.max_watches_per_connection`. */
|
|
47
|
+
export const DEFAULT_ROOM_MAX_WATCHES_PER_CONNECTION = 256;
|
|
48
|
+
// -- Refusal reasons ------------------------------------------------------------
|
|
49
|
+
/**
|
|
50
|
+
* No such room, or one the caller may not join or watch (the IDOR mask), or
|
|
51
|
+
* one an eviction closed to the request while it was in flight. A
|
|
52
|
+
* `not_found`.
|
|
53
|
+
*/
|
|
54
|
+
export const ERROR_ROOM_NOT_FOUND = 'room_not_found';
|
|
55
|
+
/** The room seats its maximum. A `conflict`. */
|
|
56
|
+
export const ERROR_ROOM_FULL = 'room_full';
|
|
57
|
+
/** The caller's own leave of the room overtook the join. A `conflict`. */
|
|
58
|
+
export const ERROR_ROOM_JOIN_SUPERSEDED = 'room_join_superseded';
|
|
59
|
+
/**
|
|
60
|
+
* A rejoin names a seat that has moved since — its actor sits elsewhere now
|
|
61
|
+
* (exclusive registries). A `conflict`.
|
|
62
|
+
*/
|
|
63
|
+
export const ERROR_ROOM_SEAT_MOVED = 'room_seat_moved';
|
|
64
|
+
/** The caller's connection holds no seat in the room. A `conflict`. */
|
|
65
|
+
export const ERROR_ROOM_NOT_JOINED = 'room_not_joined';
|
|
66
|
+
/** The addressee is not a member of the room, or is the sender's own seat. A `not_found`. */
|
|
67
|
+
export const ERROR_ROOM_MEMBER_NOT_FOUND = 'room_member_not_found';
|
|
68
|
+
/** The payload is over the registry's bound. An `invalid_params`. */
|
|
69
|
+
export const ERROR_ROOM_PAYLOAD_TOO_LARGE = 'room_payload_too_large';
|
|
70
|
+
/** The state is over the registry's bound. An `invalid_params`. */
|
|
71
|
+
export const ERROR_ROOM_STATE_TOO_LARGE = 'room_state_too_large';
|
|
72
|
+
/** The connection watches its maximum of rooms. A `conflict`. */
|
|
73
|
+
export const ERROR_ROOM_WATCH_LIMIT = 'room_watch_limit';
|
|
74
|
+
// -- Escaped length ---------------------------------------------------------------
|
|
75
|
+
/**
|
|
76
|
+
* The most bytes one byte of a string can take escaped in a JSON frame:
|
|
77
|
+
* `\u00XX`, for a control character without a two-byte escape. A lone
|
|
78
|
+
* surrogate takes six too (`\udXXX`), from a single UTF-16 code unit.
|
|
79
|
+
*/
|
|
80
|
+
export const JSON_ESCAPE_MAX_EXPANSION = 6;
|
|
81
|
+
/**
|
|
82
|
+
* The bytes `text` takes inside a JSON string in a frame — what the room
|
|
83
|
+
* limiter charges a payload or state, and what the frame grows by. Twin of the
|
|
84
|
+
* Rust `json_escaped_len`, byte for byte over well-formed text.
|
|
85
|
+
*
|
|
86
|
+
* `"` and `\` take 2; backspace, form feed, newline, carriage return, and tab
|
|
87
|
+
* take 2 (`\b \f \n \r \t`); every other control character below U+0020 takes
|
|
88
|
+
* 6 (`\u00XX`); everything else is its UTF-8 length — U+007F and non-ASCII
|
|
89
|
+
* text are not escaped, U+2028 and U+2029 included. A surrogate pair is 4.
|
|
90
|
+
*
|
|
91
|
+
* A lone surrogate counts 6, which is what `JSON.stringify` writes for one
|
|
92
|
+
* (`\udXXX`), so the count stays exactly the frame's growth for any string a
|
|
93
|
+
* TS handler holds. A Rust string can't hold one, and no frame delivers one to
|
|
94
|
+
* either spine: both refuse an escaped lone surrogate as a `parse_error`
|
|
95
|
+
* (`http/json_text.ts`), and a raw one is invalid UTF-8 a WebSocket refuses.
|
|
96
|
+
* So the twins never charge one differently over the wire.
|
|
97
|
+
*
|
|
98
|
+
* @param text - the payload or state
|
|
99
|
+
* @returns its escaped length in bytes, without the surrounding quotes
|
|
100
|
+
*/
|
|
101
|
+
export const json_escaped_len = (text) => {
|
|
102
|
+
let bytes = 0;
|
|
103
|
+
const length = text.length;
|
|
104
|
+
for (let i = 0; i < length; i++) {
|
|
105
|
+
const c = text.charCodeAt(i);
|
|
106
|
+
if (c < 0x80) {
|
|
107
|
+
if (c === 0x22 || c === 0x5c)
|
|
108
|
+
bytes += 2;
|
|
109
|
+
else if (c === 0x08 || c === 0x0c || c === 0x0a || c === 0x0d || c === 0x09)
|
|
110
|
+
bytes += 2;
|
|
111
|
+
else if (c < 0x20)
|
|
112
|
+
bytes += 6;
|
|
113
|
+
else
|
|
114
|
+
bytes += 1;
|
|
115
|
+
}
|
|
116
|
+
else if (c < 0x800) {
|
|
117
|
+
bytes += 2;
|
|
118
|
+
}
|
|
119
|
+
else if (c >= 0xd800 && c <= 0xdbff) {
|
|
120
|
+
const next = i + 1 < length ? text.charCodeAt(i + 1) : 0;
|
|
121
|
+
if (next >= 0xdc00 && next <= 0xdfff) {
|
|
122
|
+
bytes += 4;
|
|
123
|
+
i++;
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
bytes += 6;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else if (c >= 0xdc00 && c <= 0xdfff) {
|
|
130
|
+
bytes += 6;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
bytes += 3;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return bytes;
|
|
137
|
+
};
|
|
138
|
+
// -- Schemas --------------------------------------------------------------------
|
|
139
|
+
/**
|
|
140
|
+
* A room's key — an opaque string the consumer chooses and parses (a voice
|
|
141
|
+
* room keyed by a space id, say): 1 to `ROOM_ID_MAX_LENGTH` printable ASCII
|
|
142
|
+
* characters (`!` through `~`, so no whitespace or control characters). ASCII
|
|
143
|
+
* keeps the bound one number on both twins, where a UTF-16 length and a UTF-8
|
|
144
|
+
* one would differ. Twin of the Rust `RoomId::parse`.
|
|
145
|
+
*/
|
|
146
|
+
export const RoomId = meta(pipe(string, min_length(1), max_length(ROOM_ID_MAX_LENGTH), regex(/^[!-~]+$/)), { description: 'A room key: 1 to 128 printable ASCII characters, no spaces.' });
|
|
147
|
+
/**
|
|
148
|
+
* One seat's id — random per join, so a client addresses members without
|
|
149
|
+
* ever seeing a connection id, and a rejoin gets a new one. A UUID on the wire.
|
|
150
|
+
*/
|
|
151
|
+
export const MemberId = meta(Uuid, { description: "A seat's id, random per join." });
|
|
152
|
+
/** A room's `seq`: the count of its events, starting again at zero when the room is deleted. */
|
|
153
|
+
export const RoomSeq = pipe(number, safe_integer, min_value(0));
|
|
154
|
+
/**
|
|
155
|
+
* How a room's members reach each other's media — what the join answers, so
|
|
156
|
+
* a client knows whom to connect to. `mesh`: every member connects to every
|
|
157
|
+
* other; the server relays only the members' messages.
|
|
158
|
+
*/
|
|
159
|
+
export const RoomTopology = one_of(['mesh']);
|
|
160
|
+
/**
|
|
161
|
+
* Why a member left, as `room_member_left` says: `left` (it left),
|
|
162
|
+
* `disconnected` (its socket closed), `moved` (its actor was seated elsewhere
|
|
163
|
+
* on an exclusive registry, or its connection rejoined the room), `evicted`
|
|
164
|
+
* (the consumer evicted it), `room_closed` (the consumer closed the room).
|
|
165
|
+
*/
|
|
166
|
+
export const RoomLeftReason = one_of(['left', 'disconnected', 'moved', 'evicted', 'room_closed']);
|
|
167
|
+
/**
|
|
168
|
+
* Why the server ended a seat, as `room_seat_lost` tells the seat's own
|
|
169
|
+
* connection: `moved` (a newer seat took over; `moved_to` names its room),
|
|
170
|
+
* `evicted`, `room_closed`.
|
|
171
|
+
*/
|
|
172
|
+
export const RoomSeatLostReason = one_of(['moved', 'evicted', 'room_closed']);
|
|
173
|
+
/**
|
|
174
|
+
* Why the consumer evicts — what members, seats, and watches are told:
|
|
175
|
+
* `evicted` (the actor lost its access), `room_closed` (the room itself is
|
|
176
|
+
* gone).
|
|
177
|
+
*/
|
|
178
|
+
export const RoomEvictReason = one_of(['evicted', 'room_closed']);
|
|
179
|
+
/** One seated member, as members and watchers see it. */
|
|
180
|
+
export const RoomMember = object({
|
|
181
|
+
member_id: MemberId,
|
|
182
|
+
actor_id: Uuid,
|
|
183
|
+
/** The member's client-encoded state, `null` until it sets one. */
|
|
184
|
+
state: nullable(string)
|
|
185
|
+
});
|
|
186
|
+
/**
|
|
187
|
+
* A room's members as of `seq` — what a watch answers, and what
|
|
188
|
+
* `RoomRegistry.occupancy` reads.
|
|
189
|
+
*/
|
|
190
|
+
export const RoomOccupancy = object({
|
|
191
|
+
room_id: RoomId,
|
|
192
|
+
seq: RoomSeq,
|
|
193
|
+
members: array(RoomMember)
|
|
194
|
+
});
|
|
195
|
+
// -- room_join ----------------------------------------------------------------------
|
|
196
|
+
/** Input for `room_join`. */
|
|
197
|
+
export const RoomJoinInput = object({
|
|
198
|
+
room_id: RoomId,
|
|
199
|
+
/** The member's initial state; omitted, `null` to the room until it sets one. */
|
|
200
|
+
state: optional(string),
|
|
201
|
+
/**
|
|
202
|
+
* The seat this join takes up again after a reconnect — refused as
|
|
203
|
+
* `room_seat_moved` on an exclusive registry when that seat has moved since.
|
|
204
|
+
*/
|
|
205
|
+
rejoin_of: optional(MemberId),
|
|
206
|
+
acting: ActingActor
|
|
207
|
+
});
|
|
208
|
+
/**
|
|
209
|
+
* Output of `room_join`: the seat, and the room as of `seq` — the seq of the
|
|
210
|
+
* joiner's own `room_member_joined`, so a client drops every buffered event at
|
|
211
|
+
* or below it. `members` holds every member, the joiner included, in seating
|
|
212
|
+
* order; `extra` is the consumer's `join_extra` value, `null` without one.
|
|
213
|
+
*/
|
|
214
|
+
export const RoomJoinOutput = object({
|
|
215
|
+
room_id: RoomId,
|
|
216
|
+
member_id: MemberId,
|
|
217
|
+
seq: RoomSeq,
|
|
218
|
+
members: array(RoomMember),
|
|
219
|
+
topology: RoomTopology,
|
|
220
|
+
extra: unknown
|
|
221
|
+
});
|
|
222
|
+
/**
|
|
223
|
+
* `room_join` — seat the caller in a room. Two phases on the server (a
|
|
224
|
+
* reserve before the consumer's authorizer reads, an admit after), so an
|
|
225
|
+
* eviction committing while the authorizer reads still reaches the join.
|
|
226
|
+
* Charges the per-account rate-limit class (the authorizer reads the
|
|
227
|
+
* database, and one account may hold many sockets) and the connection's room
|
|
228
|
+
* limiter (one request, plus the state's escaped bytes).
|
|
229
|
+
*/
|
|
230
|
+
export const room_join_action_spec = {
|
|
231
|
+
method: 'room_join',
|
|
232
|
+
kind: 'request_response',
|
|
233
|
+
initiator: 'frontend',
|
|
234
|
+
auth: { account: 'required', actor: 'required' },
|
|
235
|
+
side_effects: false,
|
|
236
|
+
input: RoomJoinInput,
|
|
237
|
+
output: RoomJoinOutput,
|
|
238
|
+
async: true,
|
|
239
|
+
rate_limit: 'account',
|
|
240
|
+
error_reasons: [
|
|
241
|
+
ERROR_ROOM_NOT_FOUND,
|
|
242
|
+
ERROR_ROOM_FULL,
|
|
243
|
+
ERROR_ROOM_JOIN_SUPERSEDED,
|
|
244
|
+
ERROR_ROOM_SEAT_MOVED,
|
|
245
|
+
ERROR_ROOM_STATE_TOO_LARGE
|
|
246
|
+
],
|
|
247
|
+
description: "Seat the caller in a room; answers the room's members as of the join."
|
|
248
|
+
};
|
|
249
|
+
// -- room_leave ---------------------------------------------------------------------
|
|
250
|
+
/** Input for `room_leave`, `room_watch`, and `room_unwatch`. */
|
|
251
|
+
export const RoomIdInput = object({
|
|
252
|
+
room_id: RoomId,
|
|
253
|
+
acting: ActingActor
|
|
254
|
+
});
|
|
255
|
+
/** Output of `room_leave`: whether it ended a seat or refused a join in flight. */
|
|
256
|
+
export const RoomLeaveOutput = object({ left: boolean });
|
|
257
|
+
/**
|
|
258
|
+
* `room_leave` — end the acting actor's seat in the room on this connection,
|
|
259
|
+
* and refuse that actor's joins of the room still in flight on it. Idempotent.
|
|
260
|
+
*/
|
|
261
|
+
export const room_leave_action_spec = {
|
|
262
|
+
method: 'room_leave',
|
|
263
|
+
kind: 'request_response',
|
|
264
|
+
initiator: 'frontend',
|
|
265
|
+
auth: { account: 'required', actor: 'required' },
|
|
266
|
+
side_effects: false,
|
|
267
|
+
input: RoomIdInput,
|
|
268
|
+
output: RoomLeaveOutput,
|
|
269
|
+
async: true,
|
|
270
|
+
description: "End the caller's seat in a room."
|
|
271
|
+
};
|
|
272
|
+
// -- room_send ----------------------------------------------------------------------
|
|
273
|
+
/** Input for `room_send`. */
|
|
274
|
+
export const RoomSendInput = object({
|
|
275
|
+
room_id: RoomId,
|
|
276
|
+
/** The addressee's member id, or `null` for every other member of the room. Required. */
|
|
277
|
+
to: nullable(MemberId),
|
|
278
|
+
/** The client-encoded payload, at most the registry's `max_payload_bytes` in UTF-8. */
|
|
279
|
+
payload: string,
|
|
280
|
+
acting: ActingActor
|
|
281
|
+
});
|
|
282
|
+
/**
|
|
283
|
+
* `room_send` — relay a payload from the caller's seat to one member, or to
|
|
284
|
+
* the room minus the sender (`room_message`). Watchers get no messages; a seat
|
|
285
|
+
* never addresses itself (`room_member_not_found`). Charges the connection's
|
|
286
|
+
* room limiter one request plus the payload's escaped bytes.
|
|
287
|
+
*/
|
|
288
|
+
export const room_send_action_spec = {
|
|
289
|
+
method: 'room_send',
|
|
290
|
+
kind: 'request_response',
|
|
291
|
+
initiator: 'frontend',
|
|
292
|
+
auth: { account: 'required', actor: 'required' },
|
|
293
|
+
side_effects: false,
|
|
294
|
+
input: RoomSendInput,
|
|
295
|
+
output: literal(null),
|
|
296
|
+
async: true,
|
|
297
|
+
error_reasons: [ERROR_ROOM_NOT_JOINED, ERROR_ROOM_MEMBER_NOT_FOUND, ERROR_ROOM_PAYLOAD_TOO_LARGE],
|
|
298
|
+
description: 'Relay a payload to one member of a room, or to every other member.'
|
|
299
|
+
};
|
|
300
|
+
// -- room_state_set -----------------------------------------------------------------
|
|
301
|
+
/** Input for `room_state_set`. */
|
|
302
|
+
export const RoomStateSetInput = object({
|
|
303
|
+
room_id: RoomId,
|
|
304
|
+
/** The client-encoded state, at most the registry's `max_state_bytes` in UTF-8. */
|
|
305
|
+
state: string,
|
|
306
|
+
acting: ActingActor
|
|
307
|
+
});
|
|
308
|
+
/** Output of `room_state_set`: the seq of the `room_member_state` it caused. */
|
|
309
|
+
export const RoomStateSetOutput = object({ seq: RoomSeq });
|
|
310
|
+
/**
|
|
311
|
+
* `room_state_set` — set the caller's member state, telling the other members
|
|
312
|
+
* and the watchers (`room_member_state`). Charges the connection's room limiter
|
|
313
|
+
* one request plus the state's escaped bytes.
|
|
314
|
+
*/
|
|
315
|
+
export const room_state_set_action_spec = {
|
|
316
|
+
method: 'room_state_set',
|
|
317
|
+
kind: 'request_response',
|
|
318
|
+
initiator: 'frontend',
|
|
319
|
+
auth: { account: 'required', actor: 'required' },
|
|
320
|
+
side_effects: false,
|
|
321
|
+
input: RoomStateSetInput,
|
|
322
|
+
output: RoomStateSetOutput,
|
|
323
|
+
async: true,
|
|
324
|
+
error_reasons: [ERROR_ROOM_NOT_JOINED, ERROR_ROOM_STATE_TOO_LARGE],
|
|
325
|
+
description: "Set the caller's member state in a room."
|
|
326
|
+
};
|
|
327
|
+
// -- room_watch / room_unwatch ----------------------------------------------------
|
|
328
|
+
/**
|
|
329
|
+
* `room_watch` — see a room's members without joining: answers its occupancy,
|
|
330
|
+
* then the member events. Two phases like a join, and on the per-account
|
|
331
|
+
* rate-limit class; a watch fans out nothing, so the room limiter doesn't
|
|
332
|
+
* charge it. Watching a room already watched answers its occupancy again.
|
|
333
|
+
*/
|
|
334
|
+
export const room_watch_action_spec = {
|
|
335
|
+
method: 'room_watch',
|
|
336
|
+
kind: 'request_response',
|
|
337
|
+
initiator: 'frontend',
|
|
338
|
+
auth: { account: 'required', actor: 'required' },
|
|
339
|
+
side_effects: false,
|
|
340
|
+
input: RoomIdInput,
|
|
341
|
+
output: RoomOccupancy,
|
|
342
|
+
async: true,
|
|
343
|
+
rate_limit: 'account',
|
|
344
|
+
error_reasons: [ERROR_ROOM_NOT_FOUND, ERROR_ROOM_WATCH_LIMIT],
|
|
345
|
+
description: "Watch a room's members without joining."
|
|
346
|
+
};
|
|
347
|
+
/** Output of `room_unwatch`: whether the connection was watching. */
|
|
348
|
+
export const RoomUnwatchOutput = object({ unwatched: boolean });
|
|
349
|
+
/** `room_unwatch` — stop watching a room. Idempotent. */
|
|
350
|
+
export const room_unwatch_action_spec = {
|
|
351
|
+
method: 'room_unwatch',
|
|
352
|
+
kind: 'request_response',
|
|
353
|
+
initiator: 'frontend',
|
|
354
|
+
auth: { account: 'required', actor: 'required' },
|
|
355
|
+
side_effects: false,
|
|
356
|
+
input: RoomIdInput,
|
|
357
|
+
output: RoomUnwatchOutput,
|
|
358
|
+
async: true,
|
|
359
|
+
description: 'Stop watching a room.'
|
|
360
|
+
};
|
|
361
|
+
/** The room verbs, in the order `create_room_actions` builds them. */
|
|
362
|
+
export const all_room_action_specs = [
|
|
363
|
+
room_join_action_spec,
|
|
364
|
+
room_leave_action_spec,
|
|
365
|
+
room_send_action_spec,
|
|
366
|
+
room_state_set_action_spec,
|
|
367
|
+
room_watch_action_spec,
|
|
368
|
+
room_unwatch_action_spec
|
|
369
|
+
];
|
|
370
|
+
// -- Notifications ----------------------------------------------------------------
|
|
371
|
+
/** Params of `room_member_joined`. */
|
|
372
|
+
export const RoomMemberJoinedParams = object({
|
|
373
|
+
room_id: RoomId,
|
|
374
|
+
seq: RoomSeq,
|
|
375
|
+
member: RoomMember
|
|
376
|
+
});
|
|
377
|
+
/** Params of `room_member_left`. */
|
|
378
|
+
export const RoomMemberLeftParams = object({
|
|
379
|
+
room_id: RoomId,
|
|
380
|
+
seq: RoomSeq,
|
|
381
|
+
member_id: MemberId,
|
|
382
|
+
reason: RoomLeftReason
|
|
383
|
+
});
|
|
384
|
+
/** Params of `room_member_state`. */
|
|
385
|
+
export const RoomMemberStateParams = object({
|
|
386
|
+
room_id: RoomId,
|
|
387
|
+
seq: RoomSeq,
|
|
388
|
+
member_id: MemberId,
|
|
389
|
+
state: nullable(string)
|
|
390
|
+
});
|
|
391
|
+
/** Params of `room_message`: `to` is `null` for a room-wide send. */
|
|
392
|
+
export const RoomMessageParams = object({
|
|
393
|
+
room_id: RoomId,
|
|
394
|
+
seq: RoomSeq,
|
|
395
|
+
from: MemberId,
|
|
396
|
+
to: nullable(MemberId),
|
|
397
|
+
payload: string
|
|
398
|
+
});
|
|
399
|
+
/** Params of `room_seat_lost`: `moved_to` names the new seat's room for `moved`, else `null`. */
|
|
400
|
+
export const RoomSeatLostParams = object({
|
|
401
|
+
room_id: RoomId,
|
|
402
|
+
member_id: MemberId,
|
|
403
|
+
reason: RoomSeatLostReason,
|
|
404
|
+
moved_to: nullable(RoomId)
|
|
405
|
+
});
|
|
406
|
+
/** Params of `room_watch_ended`. */
|
|
407
|
+
export const RoomWatchEndedParams = object({
|
|
408
|
+
room_id: RoomId,
|
|
409
|
+
reason: RoomEvictReason
|
|
410
|
+
});
|
|
411
|
+
/** A member was seated — to the room's other members and its watchers. */
|
|
412
|
+
export const room_member_joined_notification_spec = {
|
|
413
|
+
method: 'room_member_joined',
|
|
414
|
+
kind: 'remote_notification',
|
|
415
|
+
initiator: 'backend',
|
|
416
|
+
auth: null,
|
|
417
|
+
side_effects: true,
|
|
418
|
+
input: RoomMemberJoinedParams,
|
|
419
|
+
output: fuz_void,
|
|
420
|
+
async: true,
|
|
421
|
+
description: 'A member was seated in the room — to its other members and its watchers.'
|
|
422
|
+
};
|
|
423
|
+
/** A member's seat ended — to the room's remaining members and its watchers. */
|
|
424
|
+
export const room_member_left_notification_spec = {
|
|
425
|
+
method: 'room_member_left',
|
|
426
|
+
kind: 'remote_notification',
|
|
427
|
+
initiator: 'backend',
|
|
428
|
+
auth: null,
|
|
429
|
+
side_effects: true,
|
|
430
|
+
input: RoomMemberLeftParams,
|
|
431
|
+
output: fuz_void,
|
|
432
|
+
async: true,
|
|
433
|
+
description: "A member's seat ended — to the room's remaining members and its watchers."
|
|
434
|
+
};
|
|
435
|
+
/** A member set its state — to the room's other members and its watchers. */
|
|
436
|
+
export const room_member_state_notification_spec = {
|
|
437
|
+
method: 'room_member_state',
|
|
438
|
+
kind: 'remote_notification',
|
|
439
|
+
initiator: 'backend',
|
|
440
|
+
auth: null,
|
|
441
|
+
side_effects: true,
|
|
442
|
+
input: RoomMemberStateParams,
|
|
443
|
+
output: fuz_void,
|
|
444
|
+
async: true,
|
|
445
|
+
description: "A member set its state — to the room's other members and its watchers."
|
|
446
|
+
};
|
|
447
|
+
/** A member's payload — to its addressee, or to the room minus its sender. */
|
|
448
|
+
export const room_message_notification_spec = {
|
|
449
|
+
method: 'room_message',
|
|
450
|
+
kind: 'remote_notification',
|
|
451
|
+
initiator: 'backend',
|
|
452
|
+
auth: null,
|
|
453
|
+
side_effects: true,
|
|
454
|
+
input: RoomMessageParams,
|
|
455
|
+
output: fuz_void,
|
|
456
|
+
async: true,
|
|
457
|
+
description: "A member's payload — to its addressee, or to the room minus its sender."
|
|
458
|
+
};
|
|
459
|
+
/** The server ended a seat — to the seat's own connection. */
|
|
460
|
+
export const room_seat_lost_notification_spec = {
|
|
461
|
+
method: 'room_seat_lost',
|
|
462
|
+
kind: 'remote_notification',
|
|
463
|
+
initiator: 'backend',
|
|
464
|
+
auth: null,
|
|
465
|
+
side_effects: true,
|
|
466
|
+
input: RoomSeatLostParams,
|
|
467
|
+
output: fuz_void,
|
|
468
|
+
async: true,
|
|
469
|
+
description: "The server ended a seat — to the seat's own connection."
|
|
470
|
+
};
|
|
471
|
+
/** The server ended a watch — to the watcher. */
|
|
472
|
+
export const room_watch_ended_notification_spec = {
|
|
473
|
+
method: 'room_watch_ended',
|
|
474
|
+
kind: 'remote_notification',
|
|
475
|
+
initiator: 'backend',
|
|
476
|
+
auth: null,
|
|
477
|
+
side_effects: true,
|
|
478
|
+
input: RoomWatchEndedParams,
|
|
479
|
+
output: fuz_void,
|
|
480
|
+
async: true,
|
|
481
|
+
description: 'The server ended a watch — to the watcher.'
|
|
482
|
+
};
|
|
483
|
+
/** The room notifications. */
|
|
484
|
+
export const room_notification_action_specs = [
|
|
485
|
+
room_member_joined_notification_spec,
|
|
486
|
+
room_member_left_notification_spec,
|
|
487
|
+
room_member_state_notification_spec,
|
|
488
|
+
room_message_notification_spec,
|
|
489
|
+
room_seat_lost_notification_spec,
|
|
490
|
+
room_watch_ended_notification_spec
|
|
491
|
+
];
|
|
492
|
+
/**
|
|
493
|
+
* The room notifications as handler-less actions, for a WS endpoint's action
|
|
494
|
+
* list beside `create_room_actions`' verbs, so its surface lists what the
|
|
495
|
+
* registry pushes as `remote_notification` methods. With no handler they never
|
|
496
|
+
* reach dispatch: an inbound frame for one is answered `method_not_found`.
|
|
497
|
+
*/
|
|
498
|
+
export const room_notification_actions = room_notification_action_specs.map((spec) => ({ spec }));
|
|
499
|
+
/**
|
|
500
|
+
* Every room spec, verbs then notifications — for a frontend `ActionRegistry`,
|
|
501
|
+
* so a client both calls the verbs and receives the notifications.
|
|
502
|
+
*/
|
|
503
|
+
export const all_room_specs = [
|
|
504
|
+
...all_room_action_specs,
|
|
505
|
+
...room_notification_action_specs
|
|
506
|
+
];
|