@fuzdev/fuz_app 0.178.0 → 0.180.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.
Files changed (82) hide show
  1. package/dist/actions/CLAUDE.md +106 -0
  2. package/dist/actions/connection_registry.d.ts +18 -0
  3. package/dist/actions/connection_registry.d.ts.map +1 -1
  4. package/dist/actions/connection_registry.js +23 -0
  5. package/dist/actions/room_action_specs.d.ts +733 -0
  6. package/dist/actions/room_action_specs.d.ts.map +1 -0
  7. package/dist/actions/room_action_specs.js +506 -0
  8. package/dist/actions/room_actions.d.ts +276 -0
  9. package/dist/actions/room_actions.d.ts.map +1 -0
  10. package/dist/actions/room_actions.js +394 -0
  11. package/dist/actions/room_client.svelte.d.ts +399 -0
  12. package/dist/actions/room_client.svelte.d.ts.map +1 -0
  13. package/dist/actions/room_client.svelte.js +942 -0
  14. package/dist/actions/room_registry.d.ts +454 -0
  15. package/dist/actions/room_registry.d.ts.map +1 -0
  16. package/dist/actions/room_registry.js +927 -0
  17. package/dist/auth/role_grant_offer_action_specs.d.ts +1 -1
  18. package/dist/auth/role_grant_queries.d.ts +17 -0
  19. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  20. package/dist/auth/role_grant_queries.js +30 -0
  21. package/dist/rtc/rtc_mesh.svelte.d.ts +102 -0
  22. package/dist/rtc/rtc_mesh.svelte.d.ts.map +1 -0
  23. package/dist/rtc/rtc_mesh.svelte.js +232 -0
  24. package/dist/rtc/rtc_peer.svelte.d.ts +180 -0
  25. package/dist/rtc/rtc_peer.svelte.d.ts.map +1 -0
  26. package/dist/rtc/rtc_peer.svelte.js +397 -0
  27. package/dist/rtc/rtc_signal.d.ts +74 -0
  28. package/dist/rtc/rtc_signal.d.ts.map +1 -0
  29. package/dist/rtc/rtc_signal.js +87 -0
  30. package/dist/testing/CLAUDE.md +67 -13
  31. package/dist/testing/cross_backend/action_manifest.d.ts +34 -2
  32. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  33. package/dist/testing/cross_backend/action_manifest.js +33 -6
  34. package/dist/testing/cross_backend/capabilities.d.ts +22 -4
  35. package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
  36. package/dist/testing/cross_backend/capabilities.js +4 -1
  37. package/dist/testing/cross_backend/full_spine_mount.d.ts +31 -6
  38. package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
  39. package/dist/testing/cross_backend/full_spine_mount.js +45 -13
  40. package/dist/testing/cross_backend/rooms_ws.d.ts +20 -0
  41. package/dist/testing/cross_backend/rooms_ws.d.ts.map +1 -0
  42. package/dist/testing/cross_backend/rooms_ws.js +534 -0
  43. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
  44. package/dist/testing/cross_backend/rust_spine_stub_backend_config.js +4 -1
  45. package/dist/testing/cross_backend/spine_suites.d.ts +5 -2
  46. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  47. package/dist/testing/cross_backend/spine_suites.js +24 -5
  48. package/dist/testing/cross_backend/spine_surface_constants.d.ts +1 -1
  49. package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
  50. package/dist/testing/cross_backend/spine_surface_constants.js +2 -1
  51. package/dist/testing/cross_backend/test_room_authorize.d.ts +47 -0
  52. package/dist/testing/cross_backend/test_room_authorize.d.ts.map +1 -0
  53. package/dist/testing/cross_backend/test_room_authorize.js +58 -0
  54. package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
  55. package/dist/testing/cross_backend/testing_backdoor.js +10 -4
  56. package/dist/testing/cross_backend/testing_reset_actions.d.ts +85 -1
  57. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  58. package/dist/testing/cross_backend/testing_reset_actions.js +57 -3
  59. package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
  60. package/dist/testing/cross_backend/ts_spine_backend_config.js +5 -2
  61. package/dist/ui/AccountSessions.svelte.d.ts.map +1 -1
  62. package/dist/ui/AdminAccounts.svelte.d.ts.map +1 -1
  63. package/dist/ui/AdminAuditLog.svelte.d.ts.map +1 -1
  64. package/dist/ui/AdminInvites.svelte.d.ts.map +1 -1
  65. package/dist/ui/AdminOverview.svelte.d.ts.map +1 -1
  66. package/dist/ui/AdminRoleGrantHistory.svelte.d.ts.map +1 -1
  67. package/dist/ui/AdminSessions.svelte.d.ts.map +1 -1
  68. package/dist/ui/AdminSettings.svelte.d.ts.map +1 -1
  69. package/dist/ui/AdminSurface.svelte.d.ts.map +1 -1
  70. package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
  71. package/dist/ui/ConfirmButton.svelte.d.ts.map +1 -1
  72. package/dist/ui/Datatable.svelte.d.ts.map +1 -1
  73. package/dist/ui/LoginForm.svelte.d.ts.map +1 -1
  74. package/dist/ui/LogoutButton.svelte.d.ts.map +1 -1
  75. package/dist/ui/OpenSignupToggle.svelte.d.ts.map +1 -1
  76. package/dist/ui/PopoverButton.svelte.d.ts.map +1 -1
  77. package/dist/ui/RoleGrantOfferForm.svelte.d.ts.map +1 -1
  78. package/dist/ui/RoleGrantOfferHistory.svelte.d.ts.map +1 -1
  79. package/dist/ui/RoleGrantOfferInbox.svelte.d.ts.map +1 -1
  80. package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
  81. package/dist/ui/SurfaceExplorer.svelte.d.ts.map +1 -1
  82. package/package.json +19 -19
@@ -0,0 +1,733 @@
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 { type Infer } from '@fuzdev/fuz_schema/schema.ts';
26
+ import type { ActionSpecUnion, RemoteNotificationActionSpec } from './action_spec.js';
27
+ import type { Action } from './action_types.js';
28
+ /**
29
+ * The longest `RoomId`, in characters — and bytes, since a room id is ASCII.
30
+ * Twin of the Rust `ROOM_ID_MAX_LENGTH`.
31
+ */
32
+ export declare const ROOM_ID_MAX_LENGTH = 128;
33
+ /**
34
+ * Default `RoomRegistryOptions.max_members_per_room`: generous for a
35
+ * full-mesh call, where every member holds a peer connection to every other.
36
+ */
37
+ export declare const DEFAULT_ROOM_MAX_MEMBERS = 32;
38
+ /**
39
+ * Default `RoomRegistryOptions.max_payload_bytes`: room for a session
40
+ * description with many candidates, small beside the outbound budget.
41
+ */
42
+ export declare const DEFAULT_ROOM_MAX_PAYLOAD_BYTES: number;
43
+ /** Default `RoomRegistryOptions.max_state_bytes`: a few flags, encoded. */
44
+ export declare const DEFAULT_ROOM_MAX_STATE_BYTES = 1024;
45
+ /** Default `RoomRegistryOptions.max_watches_per_connection`. */
46
+ export declare const DEFAULT_ROOM_MAX_WATCHES_PER_CONNECTION = 256;
47
+ /**
48
+ * No such room, or one the caller may not join or watch (the IDOR mask), or
49
+ * one an eviction closed to the request while it was in flight. A
50
+ * `not_found`.
51
+ */
52
+ export declare const ERROR_ROOM_NOT_FOUND: "room_not_found";
53
+ /** The room seats its maximum. A `conflict`. */
54
+ export declare const ERROR_ROOM_FULL: "room_full";
55
+ /** The caller's own leave of the room overtook the join. A `conflict`. */
56
+ export declare const ERROR_ROOM_JOIN_SUPERSEDED: "room_join_superseded";
57
+ /**
58
+ * A rejoin names a seat that has moved since — its actor sits elsewhere now
59
+ * (exclusive registries). A `conflict`.
60
+ */
61
+ export declare const ERROR_ROOM_SEAT_MOVED: "room_seat_moved";
62
+ /** The caller's connection holds no seat in the room. A `conflict`. */
63
+ export declare const ERROR_ROOM_NOT_JOINED: "room_not_joined";
64
+ /** The addressee is not a member of the room, or is the sender's own seat. A `not_found`. */
65
+ export declare const ERROR_ROOM_MEMBER_NOT_FOUND: "room_member_not_found";
66
+ /** The payload is over the registry's bound. An `invalid_params`. */
67
+ export declare const ERROR_ROOM_PAYLOAD_TOO_LARGE: "room_payload_too_large";
68
+ /** The state is over the registry's bound. An `invalid_params`. */
69
+ export declare const ERROR_ROOM_STATE_TOO_LARGE: "room_state_too_large";
70
+ /** The connection watches its maximum of rooms. A `conflict`. */
71
+ export declare const ERROR_ROOM_WATCH_LIMIT: "room_watch_limit";
72
+ /**
73
+ * The most bytes one byte of a string can take escaped in a JSON frame:
74
+ * `\u00XX`, for a control character without a two-byte escape. A lone
75
+ * surrogate takes six too (`\udXXX`), from a single UTF-16 code unit.
76
+ */
77
+ export declare const JSON_ESCAPE_MAX_EXPANSION = 6;
78
+ /**
79
+ * The bytes `text` takes inside a JSON string in a frame — what the room
80
+ * limiter charges a payload or state, and what the frame grows by. Twin of the
81
+ * Rust `json_escaped_len`, byte for byte over well-formed text.
82
+ *
83
+ * `"` and `\` take 2; backspace, form feed, newline, carriage return, and tab
84
+ * take 2 (`\b \f \n \r \t`); every other control character below U+0020 takes
85
+ * 6 (`\u00XX`); everything else is its UTF-8 length — U+007F and non-ASCII
86
+ * text are not escaped, U+2028 and U+2029 included. A surrogate pair is 4.
87
+ *
88
+ * A lone surrogate counts 6, which is what `JSON.stringify` writes for one
89
+ * (`\udXXX`), so the count stays exactly the frame's growth for any string a
90
+ * TS handler holds. A Rust string can't hold one, and no frame delivers one to
91
+ * either spine: both refuse an escaped lone surrogate as a `parse_error`
92
+ * (`http/json_text.ts`), and a raw one is invalid UTF-8 a WebSocket refuses.
93
+ * So the twins never charge one differently over the wire.
94
+ *
95
+ * @param text - the payload or state
96
+ * @returns its escaped length in bytes, without the surrounding quotes
97
+ */
98
+ export declare const json_escaped_len: (text: string) => number;
99
+ /**
100
+ * A room's key — an opaque string the consumer chooses and parses (a voice
101
+ * room keyed by a space id, say): 1 to `ROOM_ID_MAX_LENGTH` printable ASCII
102
+ * characters (`!` through `~`, so no whitespace or control characters). ASCII
103
+ * keeps the bound one number on both twins, where a UTF-16 length and a UTF-8
104
+ * one would differ. Twin of the Rust `RoomId::parse`.
105
+ */
106
+ export declare const RoomId: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
107
+ export type RoomId = Infer<typeof RoomId>;
108
+ /**
109
+ * One seat's id — random per join, so a client addresses members without
110
+ * ever seeing a connection id, and a rejoin gets a new one. A UUID on the wire.
111
+ */
112
+ export declare const MemberId: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
113
+ export type MemberId = Infer<typeof MemberId>;
114
+ /** A room's `seq`: the count of its events, starting again at zero when the room is deleted. */
115
+ export declare const RoomSeq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
116
+ export type RoomSeq = Infer<typeof RoomSeq>;
117
+ /**
118
+ * How a room's members reach each other's media — what the join answers, so
119
+ * a client knows whom to connect to. `mesh`: every member connects to every
120
+ * other; the server relays only the members' messages.
121
+ */
122
+ export declare const RoomTopology: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["mesh"]>;
123
+ export type RoomTopology = Infer<typeof RoomTopology>;
124
+ /**
125
+ * Why a member left, as `room_member_left` says: `left` (it left),
126
+ * `disconnected` (its socket closed), `moved` (its actor was seated elsewhere
127
+ * on an exclusive registry, or its connection rejoined the room), `evicted`
128
+ * (the consumer evicted it), `room_closed` (the consumer closed the room).
129
+ */
130
+ export declare const RoomLeftReason: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["left", "disconnected", "moved", "evicted", "room_closed"]>;
131
+ export type RoomLeftReason = Infer<typeof RoomLeftReason>;
132
+ /**
133
+ * Why the server ended a seat, as `room_seat_lost` tells the seat's own
134
+ * connection: `moved` (a newer seat took over; `moved_to` names its room),
135
+ * `evicted`, `room_closed`.
136
+ */
137
+ export declare const RoomSeatLostReason: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["moved", "evicted", "room_closed"]>;
138
+ export type RoomSeatLostReason = Infer<typeof RoomSeatLostReason>;
139
+ /**
140
+ * Why the consumer evicts — what members, seats, and watches are told:
141
+ * `evicted` (the actor lost its access), `room_closed` (the room itself is
142
+ * gone).
143
+ */
144
+ export declare const RoomEvictReason: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["evicted", "room_closed"]>;
145
+ export type RoomEvictReason = Infer<typeof RoomEvictReason>;
146
+ /** One seated member, as members and watchers see it. */
147
+ export declare const RoomMember: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
148
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
149
+ actor_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
150
+ /** The member's client-encoded state, `null` until it sets one. */
151
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
152
+ }>;
153
+ export type RoomMember = Infer<typeof RoomMember>;
154
+ /**
155
+ * A room's members as of `seq` — what a watch answers, and what
156
+ * `RoomRegistry.occupancy` reads.
157
+ */
158
+ export declare const RoomOccupancy: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
159
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
160
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
161
+ members: import("@fuzdev/fuz_schema/schema.ts").ArraySchema<import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
162
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
163
+ actor_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
164
+ /** The member's client-encoded state, `null` until it sets one. */
165
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
166
+ }>>;
167
+ }>;
168
+ export type RoomOccupancy = Infer<typeof RoomOccupancy>;
169
+ /** Input for `room_join`. */
170
+ export declare const RoomJoinInput: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
171
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
172
+ /** The member's initial state; omitted, `null` to the room until it sets one. */
173
+ state: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
174
+ /**
175
+ * The seat this join takes up again after a reconnect — refused as
176
+ * `room_seat_moved` on an exclusive registry when that seat has moved since.
177
+ */
178
+ rejoin_of: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
179
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
180
+ }>;
181
+ export type RoomJoinInput = Infer<typeof RoomJoinInput>;
182
+ /**
183
+ * Output of `room_join`: the seat, and the room as of `seq` — the seq of the
184
+ * joiner's own `room_member_joined`, so a client drops every buffered event at
185
+ * or below it. `members` holds every member, the joiner included, in seating
186
+ * order; `extra` is the consumer's `join_extra` value, `null` without one.
187
+ */
188
+ export declare const RoomJoinOutput: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
189
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
190
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
191
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
192
+ members: import("@fuzdev/fuz_schema/schema.ts").ArraySchema<import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
193
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
194
+ actor_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
195
+ /** The member's client-encoded state, `null` until it sets one. */
196
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
197
+ }>>;
198
+ topology: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["mesh"]>;
199
+ extra: import("@fuzdev/fuz_schema/schema.ts").UnknownSchema;
200
+ }>;
201
+ export type RoomJoinOutput = Infer<typeof RoomJoinOutput>;
202
+ /**
203
+ * `room_join` — seat the caller in a room. Two phases on the server (a
204
+ * reserve before the consumer's authorizer reads, an admit after), so an
205
+ * eviction committing while the authorizer reads still reaches the join.
206
+ * Charges the per-account rate-limit class (the authorizer reads the
207
+ * database, and one account may hold many sockets) and the connection's room
208
+ * limiter (one request, plus the state's escaped bytes).
209
+ */
210
+ export declare const room_join_action_spec: {
211
+ readonly method: "room_join";
212
+ readonly kind: "request_response";
213
+ readonly initiator: "frontend";
214
+ readonly auth: {
215
+ readonly account: "required";
216
+ readonly actor: "required";
217
+ };
218
+ readonly side_effects: false;
219
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
220
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
221
+ /** The member's initial state; omitted, `null` to the room until it sets one. */
222
+ state: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
223
+ /**
224
+ * The seat this join takes up again after a reconnect — refused as
225
+ * `room_seat_moved` on an exclusive registry when that seat has moved since.
226
+ */
227
+ rejoin_of: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
228
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
229
+ }>;
230
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
231
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
232
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
233
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
234
+ members: import("@fuzdev/fuz_schema/schema.ts").ArraySchema<import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
235
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
236
+ actor_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
237
+ /** The member's client-encoded state, `null` until it sets one. */
238
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
239
+ }>>;
240
+ topology: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["mesh"]>;
241
+ extra: import("@fuzdev/fuz_schema/schema.ts").UnknownSchema;
242
+ }>;
243
+ readonly async: true;
244
+ readonly rate_limit: "account";
245
+ readonly error_reasons: readonly ["room_not_found", "room_full", "room_join_superseded", "room_seat_moved", "room_state_too_large"];
246
+ readonly description: "Seat the caller in a room; answers the room's members as of the join.";
247
+ };
248
+ /** Input for `room_leave`, `room_watch`, and `room_unwatch`. */
249
+ export declare const RoomIdInput: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
250
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
251
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
252
+ }>;
253
+ export type RoomIdInput = Infer<typeof RoomIdInput>;
254
+ /** Output of `room_leave`: whether it ended a seat or refused a join in flight. */
255
+ export declare const RoomLeaveOutput: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
256
+ left: import("@fuzdev/fuz_schema/schema.ts").BooleanSchema;
257
+ }>;
258
+ export type RoomLeaveOutput = Infer<typeof RoomLeaveOutput>;
259
+ /**
260
+ * `room_leave` — end the acting actor's seat in the room on this connection,
261
+ * and refuse that actor's joins of the room still in flight on it. Idempotent.
262
+ */
263
+ export declare const room_leave_action_spec: {
264
+ readonly method: "room_leave";
265
+ readonly kind: "request_response";
266
+ readonly initiator: "frontend";
267
+ readonly auth: {
268
+ readonly account: "required";
269
+ readonly actor: "required";
270
+ };
271
+ readonly side_effects: false;
272
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
273
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
274
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
275
+ }>;
276
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
277
+ left: import("@fuzdev/fuz_schema/schema.ts").BooleanSchema;
278
+ }>;
279
+ readonly async: true;
280
+ readonly description: "End the caller's seat in a room.";
281
+ };
282
+ /** Input for `room_send`. */
283
+ export declare const RoomSendInput: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
284
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
285
+ /** The addressee's member id, or `null` for every other member of the room. Required. */
286
+ to: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
287
+ /** The client-encoded payload, at most the registry's `max_payload_bytes` in UTF-8. */
288
+ payload: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
289
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
290
+ }>;
291
+ export type RoomSendInput = Infer<typeof RoomSendInput>;
292
+ /**
293
+ * `room_send` — relay a payload from the caller's seat to one member, or to
294
+ * the room minus the sender (`room_message`). Watchers get no messages; a seat
295
+ * never addresses itself (`room_member_not_found`). Charges the connection's
296
+ * room limiter one request plus the payload's escaped bytes.
297
+ */
298
+ export declare const room_send_action_spec: {
299
+ readonly method: "room_send";
300
+ readonly kind: "request_response";
301
+ readonly initiator: "frontend";
302
+ readonly auth: {
303
+ readonly account: "required";
304
+ readonly actor: "required";
305
+ };
306
+ readonly side_effects: false;
307
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
308
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
309
+ /** The addressee's member id, or `null` for every other member of the room. Required. */
310
+ to: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
311
+ /** The client-encoded payload, at most the registry's `max_payload_bytes` in UTF-8. */
312
+ payload: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
313
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
314
+ }>;
315
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").LiteralSchema<null>;
316
+ readonly async: true;
317
+ readonly error_reasons: readonly ["room_not_joined", "room_member_not_found", "room_payload_too_large"];
318
+ readonly description: "Relay a payload to one member of a room, or to every other member.";
319
+ };
320
+ /** Input for `room_state_set`. */
321
+ export declare const RoomStateSetInput: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
322
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
323
+ /** The client-encoded state, at most the registry's `max_state_bytes` in UTF-8. */
324
+ state: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
325
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
326
+ }>;
327
+ export type RoomStateSetInput = Infer<typeof RoomStateSetInput>;
328
+ /** Output of `room_state_set`: the seq of the `room_member_state` it caused. */
329
+ export declare const RoomStateSetOutput: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
330
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
331
+ }>;
332
+ export type RoomStateSetOutput = Infer<typeof RoomStateSetOutput>;
333
+ /**
334
+ * `room_state_set` — set the caller's member state, telling the other members
335
+ * and the watchers (`room_member_state`). Charges the connection's room limiter
336
+ * one request plus the state's escaped bytes.
337
+ */
338
+ export declare const room_state_set_action_spec: {
339
+ readonly method: "room_state_set";
340
+ readonly kind: "request_response";
341
+ readonly initiator: "frontend";
342
+ readonly auth: {
343
+ readonly account: "required";
344
+ readonly actor: "required";
345
+ };
346
+ readonly side_effects: false;
347
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
348
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
349
+ /** The client-encoded state, at most the registry's `max_state_bytes` in UTF-8. */
350
+ state: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
351
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
352
+ }>;
353
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
354
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
355
+ }>;
356
+ readonly async: true;
357
+ readonly error_reasons: readonly ["room_not_joined", "room_state_too_large"];
358
+ readonly description: "Set the caller's member state in a room.";
359
+ };
360
+ /**
361
+ * `room_watch` — see a room's members without joining: answers its occupancy,
362
+ * then the member events. Two phases like a join, and on the per-account
363
+ * rate-limit class; a watch fans out nothing, so the room limiter doesn't
364
+ * charge it. Watching a room already watched answers its occupancy again.
365
+ */
366
+ export declare const room_watch_action_spec: {
367
+ readonly method: "room_watch";
368
+ readonly kind: "request_response";
369
+ readonly initiator: "frontend";
370
+ readonly auth: {
371
+ readonly account: "required";
372
+ readonly actor: "required";
373
+ };
374
+ readonly side_effects: false;
375
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
376
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
377
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
378
+ }>;
379
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
380
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
381
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
382
+ members: import("@fuzdev/fuz_schema/schema.ts").ArraySchema<import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
383
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
384
+ actor_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
385
+ /** The member's client-encoded state, `null` until it sets one. */
386
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
387
+ }>>;
388
+ }>;
389
+ readonly async: true;
390
+ readonly rate_limit: "account";
391
+ readonly error_reasons: readonly ["room_not_found", "room_watch_limit"];
392
+ readonly description: "Watch a room's members without joining.";
393
+ };
394
+ /** Output of `room_unwatch`: whether the connection was watching. */
395
+ export declare const RoomUnwatchOutput: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
396
+ unwatched: import("@fuzdev/fuz_schema/schema.ts").BooleanSchema;
397
+ }>;
398
+ export type RoomUnwatchOutput = Infer<typeof RoomUnwatchOutput>;
399
+ /** `room_unwatch` — stop watching a room. Idempotent. */
400
+ export declare const room_unwatch_action_spec: {
401
+ readonly method: "room_unwatch";
402
+ readonly kind: "request_response";
403
+ readonly initiator: "frontend";
404
+ readonly auth: {
405
+ readonly account: "required";
406
+ readonly actor: "required";
407
+ };
408
+ readonly side_effects: false;
409
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
410
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
411
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
412
+ }>;
413
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
414
+ unwatched: import("@fuzdev/fuz_schema/schema.ts").BooleanSchema;
415
+ }>;
416
+ readonly async: true;
417
+ readonly description: "Stop watching a room.";
418
+ };
419
+ /** The room verbs, in the order `create_room_actions` builds them. */
420
+ export declare const all_room_action_specs: readonly [{
421
+ readonly method: "room_join";
422
+ readonly kind: "request_response";
423
+ readonly initiator: "frontend";
424
+ readonly auth: {
425
+ readonly account: "required";
426
+ readonly actor: "required";
427
+ };
428
+ readonly side_effects: false;
429
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
430
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
431
+ /** The member's initial state; omitted, `null` to the room until it sets one. */
432
+ state: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
433
+ /**
434
+ * The seat this join takes up again after a reconnect — refused as
435
+ * `room_seat_moved` on an exclusive registry when that seat has moved since.
436
+ */
437
+ rejoin_of: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
438
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
439
+ }>;
440
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
441
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
442
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
443
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
444
+ members: import("@fuzdev/fuz_schema/schema.ts").ArraySchema<import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
445
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
446
+ actor_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
447
+ /** The member's client-encoded state, `null` until it sets one. */
448
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
449
+ }>>;
450
+ topology: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["mesh"]>;
451
+ extra: import("@fuzdev/fuz_schema/schema.ts").UnknownSchema;
452
+ }>;
453
+ readonly async: true;
454
+ readonly rate_limit: "account";
455
+ readonly error_reasons: readonly ["room_not_found", "room_full", "room_join_superseded", "room_seat_moved", "room_state_too_large"];
456
+ readonly description: "Seat the caller in a room; answers the room's members as of the join.";
457
+ }, {
458
+ readonly method: "room_leave";
459
+ readonly kind: "request_response";
460
+ readonly initiator: "frontend";
461
+ readonly auth: {
462
+ readonly account: "required";
463
+ readonly actor: "required";
464
+ };
465
+ readonly side_effects: false;
466
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
467
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
468
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
469
+ }>;
470
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
471
+ left: import("@fuzdev/fuz_schema/schema.ts").BooleanSchema;
472
+ }>;
473
+ readonly async: true;
474
+ readonly description: "End the caller's seat in a room.";
475
+ }, {
476
+ readonly method: "room_send";
477
+ readonly kind: "request_response";
478
+ readonly initiator: "frontend";
479
+ readonly auth: {
480
+ readonly account: "required";
481
+ readonly actor: "required";
482
+ };
483
+ readonly side_effects: false;
484
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
485
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
486
+ /** The addressee's member id, or `null` for every other member of the room. Required. */
487
+ to: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
488
+ /** The client-encoded payload, at most the registry's `max_payload_bytes` in UTF-8. */
489
+ payload: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
490
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
491
+ }>;
492
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").LiteralSchema<null>;
493
+ readonly async: true;
494
+ readonly error_reasons: readonly ["room_not_joined", "room_member_not_found", "room_payload_too_large"];
495
+ readonly description: "Relay a payload to one member of a room, or to every other member.";
496
+ }, {
497
+ readonly method: "room_state_set";
498
+ readonly kind: "request_response";
499
+ readonly initiator: "frontend";
500
+ readonly auth: {
501
+ readonly account: "required";
502
+ readonly actor: "required";
503
+ };
504
+ readonly side_effects: false;
505
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
506
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
507
+ /** The client-encoded state, at most the registry's `max_state_bytes` in UTF-8. */
508
+ state: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
509
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
510
+ }>;
511
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
512
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
513
+ }>;
514
+ readonly async: true;
515
+ readonly error_reasons: readonly ["room_not_joined", "room_state_too_large"];
516
+ readonly description: "Set the caller's member state in a room.";
517
+ }, {
518
+ readonly method: "room_watch";
519
+ readonly kind: "request_response";
520
+ readonly initiator: "frontend";
521
+ readonly auth: {
522
+ readonly account: "required";
523
+ readonly actor: "required";
524
+ };
525
+ readonly side_effects: false;
526
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
527
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
528
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
529
+ }>;
530
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
531
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
532
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
533
+ members: import("@fuzdev/fuz_schema/schema.ts").ArraySchema<import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
534
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
535
+ actor_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
536
+ /** The member's client-encoded state, `null` until it sets one. */
537
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
538
+ }>>;
539
+ }>;
540
+ readonly async: true;
541
+ readonly rate_limit: "account";
542
+ readonly error_reasons: readonly ["room_not_found", "room_watch_limit"];
543
+ readonly description: "Watch a room's members without joining.";
544
+ }, {
545
+ readonly method: "room_unwatch";
546
+ readonly kind: "request_response";
547
+ readonly initiator: "frontend";
548
+ readonly auth: {
549
+ readonly account: "required";
550
+ readonly actor: "required";
551
+ };
552
+ readonly side_effects: false;
553
+ readonly input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
554
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
555
+ acting: import("@fuzdev/fuz_schema/schema.ts").OptionalSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
556
+ }>;
557
+ readonly output: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
558
+ unwatched: import("@fuzdev/fuz_schema/schema.ts").BooleanSchema;
559
+ }>;
560
+ readonly async: true;
561
+ readonly description: "Stop watching a room.";
562
+ }];
563
+ /** Params of `room_member_joined`. */
564
+ export declare const RoomMemberJoinedParams: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
565
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
566
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
567
+ member: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
568
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
569
+ actor_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
570
+ /** The member's client-encoded state, `null` until it sets one. */
571
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
572
+ }>;
573
+ }>;
574
+ export type RoomMemberJoinedParams = Infer<typeof RoomMemberJoinedParams>;
575
+ /** Params of `room_member_left`. */
576
+ export declare const RoomMemberLeftParams: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
577
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
578
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
579
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
580
+ reason: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["left", "disconnected", "moved", "evicted", "room_closed"]>;
581
+ }>;
582
+ export type RoomMemberLeftParams = Infer<typeof RoomMemberLeftParams>;
583
+ /** Params of `room_member_state`. */
584
+ export declare const RoomMemberStateParams: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
585
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
586
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
587
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
588
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
589
+ }>;
590
+ export type RoomMemberStateParams = Infer<typeof RoomMemberStateParams>;
591
+ /** Params of `room_message`: `to` is `null` for a room-wide send. */
592
+ export declare const RoomMessageParams: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
593
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
594
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
595
+ from: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
596
+ to: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
597
+ payload: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
598
+ }>;
599
+ export type RoomMessageParams = Infer<typeof RoomMessageParams>;
600
+ /** Params of `room_seat_lost`: `moved_to` names the new seat's room for `moved`, else `null`. */
601
+ export declare const RoomSeatLostParams: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
602
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
603
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
604
+ reason: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["moved", "evicted", "room_closed"]>;
605
+ moved_to: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>>;
606
+ }>;
607
+ export type RoomSeatLostParams = Infer<typeof RoomSeatLostParams>;
608
+ /** Params of `room_watch_ended`. */
609
+ export declare const RoomWatchEndedParams: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
610
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
611
+ reason: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["evicted", "room_closed"]>;
612
+ }>;
613
+ export type RoomWatchEndedParams = Infer<typeof RoomWatchEndedParams>;
614
+ /** A member was seated — to the room's other members and its watchers. */
615
+ export declare const room_member_joined_notification_spec: {
616
+ method: string;
617
+ kind: "remote_notification";
618
+ initiator: "backend";
619
+ auth: null;
620
+ side_effects: true;
621
+ input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
622
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
623
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
624
+ member: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
625
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
626
+ actor_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
627
+ /** The member's client-encoded state, `null` until it sets one. */
628
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
629
+ }>;
630
+ }>;
631
+ output: import("@fuzdev/fuz_schema/schema.ts").VoidSchema;
632
+ async: true;
633
+ description: string;
634
+ };
635
+ /** A member's seat ended — to the room's remaining members and its watchers. */
636
+ export declare const room_member_left_notification_spec: {
637
+ method: string;
638
+ kind: "remote_notification";
639
+ initiator: "backend";
640
+ auth: null;
641
+ side_effects: true;
642
+ input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
643
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
644
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
645
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
646
+ reason: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["left", "disconnected", "moved", "evicted", "room_closed"]>;
647
+ }>;
648
+ output: import("@fuzdev/fuz_schema/schema.ts").VoidSchema;
649
+ async: true;
650
+ description: string;
651
+ };
652
+ /** A member set its state — to the room's other members and its watchers. */
653
+ export declare const room_member_state_notification_spec: {
654
+ method: string;
655
+ kind: "remote_notification";
656
+ initiator: "backend";
657
+ auth: null;
658
+ side_effects: true;
659
+ input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
660
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
661
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
662
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
663
+ state: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
664
+ }>;
665
+ output: import("@fuzdev/fuz_schema/schema.ts").VoidSchema;
666
+ async: true;
667
+ description: string;
668
+ };
669
+ /** A member's payload — to its addressee, or to the room minus its sender. */
670
+ export declare const room_message_notification_spec: {
671
+ method: string;
672
+ kind: "remote_notification";
673
+ initiator: "backend";
674
+ auth: null;
675
+ side_effects: true;
676
+ input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
677
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
678
+ seq: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").NumberSchema>;
679
+ from: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
680
+ to: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">>;
681
+ payload: import("@fuzdev/fuz_schema/schema.ts").StringSchema;
682
+ }>;
683
+ output: import("@fuzdev/fuz_schema/schema.ts").VoidSchema;
684
+ async: true;
685
+ description: string;
686
+ };
687
+ /** The server ended a seat — to the seat's own connection. */
688
+ export declare const room_seat_lost_notification_spec: {
689
+ method: string;
690
+ kind: "remote_notification";
691
+ initiator: "backend";
692
+ auth: null;
693
+ side_effects: true;
694
+ input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
695
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
696
+ member_id: import("@fuzdev/fuz_schema/schema.ts").BrandSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>, "Uuid">;
697
+ reason: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["moved", "evicted", "room_closed"]>;
698
+ moved_to: import("@fuzdev/fuz_schema/schema.ts").NullableSchema<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>>;
699
+ }>;
700
+ output: import("@fuzdev/fuz_schema/schema.ts").VoidSchema;
701
+ async: true;
702
+ description: string;
703
+ };
704
+ /** The server ended a watch — to the watcher. */
705
+ export declare const room_watch_ended_notification_spec: {
706
+ method: string;
707
+ kind: "remote_notification";
708
+ initiator: "backend";
709
+ auth: null;
710
+ side_effects: true;
711
+ input: import("@fuzdev/fuz_schema/schema.ts").ObjectSchema<{
712
+ room_id: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<string, import("@fuzdev/fuz_schema/schema.ts").StringSchema>;
713
+ reason: import("@fuzdev/fuz_schema/schema.ts").OneOfSchema<readonly ["evicted", "room_closed"]>;
714
+ }>;
715
+ output: import("@fuzdev/fuz_schema/schema.ts").VoidSchema;
716
+ async: true;
717
+ description: string;
718
+ };
719
+ /** The room notifications. */
720
+ export declare const room_notification_action_specs: ReadonlyArray<RemoteNotificationActionSpec>;
721
+ /**
722
+ * The room notifications as handler-less actions, for a WS endpoint's action
723
+ * list beside `create_room_actions`' verbs, so its surface lists what the
724
+ * registry pushes as `remote_notification` methods. With no handler they never
725
+ * reach dispatch: an inbound frame for one is answered `method_not_found`.
726
+ */
727
+ export declare const room_notification_actions: ReadonlyArray<Action>;
728
+ /**
729
+ * Every room spec, verbs then notifications — for a frontend `ActionRegistry`,
730
+ * so a client both calls the verbs and receives the notifications.
731
+ */
732
+ export declare const all_room_specs: ReadonlyArray<ActionSpecUnion>;
733
+ //# sourceMappingURL=room_action_specs.d.ts.map