@agent-marshal/marshal-pi 0.60.2 → 0.60.4

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/package.json CHANGED
@@ -51,5 +51,5 @@
51
51
  "gen": "cargo run -p marshal-entities --no-default-features --features codegen --bin typegen -- src/generated"
52
52
  },
53
53
  "type": "module",
54
- "version": "0.60.2"
54
+ "version": "0.60.4"
55
55
  }
@@ -5,11 +5,15 @@ export type JoinRoom = {
5
5
  /**
6
6
  * User-supplied display name. Slugified into the room id; rooms
7
7
  * with reserved prefixes (`everyone`, `host:`, `op:`, `project:`)
8
- * are blocked so users can't shadow auto-rooms.
8
+ * are blocked so users can't shadow auto-rooms. Rejected when it is
9
+ * longer than `ROOM_NAME_MAX_CHARS` characters or contains a character
10
+ * `is_forbidden_room_text_char` blocks; `FORBIDDEN_RANGES` in
11
+ * `room.rs` is the exact list (see `validate_room_name`).
9
12
  */
10
13
  name: string,
11
14
  /**
12
- * Optional human-readable purpose, surfaced in `list_rooms`.
15
+ * Optional human-readable purpose, surfaced in `list_rooms`. Same
16
+ * character rule as `name`, capped at `ROOM_DESCRIPTION_MAX_CHARS`.
13
17
  */
14
18
  description?: string | null,
15
19
  /**
@@ -5,11 +5,15 @@ export type JoinRoomArgs = {
5
5
  /**
6
6
  * User-supplied display name. Slugified into the room id; rooms
7
7
  * with reserved prefixes (`everyone`, `host:`, `op:`, `project:`)
8
- * are blocked so users can't shadow auto-rooms.
8
+ * are blocked so users can't shadow auto-rooms. Rejected when it is
9
+ * longer than `ROOM_NAME_MAX_CHARS` characters or contains a character
10
+ * `is_forbidden_room_text_char` blocks; `FORBIDDEN_RANGES` in
11
+ * `room.rs` is the exact list (see `validate_room_name`).
9
12
  */
10
13
  name: string,
11
14
  /**
12
- * Optional human-readable purpose, surfaced in `list_rooms`.
15
+ * Optional human-readable purpose, surfaced in `list_rooms`. Same
16
+ * character rule as `name`, capped at `ROOM_DESCRIPTION_MAX_CHARS`.
13
17
  */
14
18
  description?: string | null,
15
19
  /**
@@ -3,8 +3,7 @@ import type { SessionId } from "./SessionId";
3
3
 
4
4
  export type LeaveRoom = {
5
5
  /**
6
- * Either a `room_id` (preferred) or the original room name —
7
- * the server tries id-match first, then name-match.
6
+ * A room ID or an unambiguous display label.
8
7
  */
9
8
  room: string,
10
9
  /**
@@ -3,8 +3,7 @@ import type { SessionId } from "./SessionId";
3
3
 
4
4
  export type LeaveRoomArgs = {
5
5
  /**
6
- * Either a `room_id` (preferred) or the original room name —
7
- * the server tries id-match first, then name-match.
6
+ * A room ID or an unambiguous display label.
8
7
  */
9
8
  room: string,
10
9
  /**
@@ -4,9 +4,7 @@ import type { SessionId } from "./SessionId";
4
4
 
5
5
  export type ReadMessages = {
6
6
  /**
7
- * Filter to messages addressed to this room. Polymorphic id —
8
- * `everyone`, `host:*`, `op:*`, `project:*`, or any ad-hoc room
9
- * id.
7
+ * Filter to messages addressed to a room ID or unambiguous display label.
10
8
  */
11
9
  room?: RoomId | null,
12
10
  /**
@@ -4,9 +4,7 @@ import type { SessionId } from "./SessionId";
4
4
 
5
5
  export type ReadMessagesArgs = {
6
6
  /**
7
- * Filter to messages addressed to this room. Polymorphic id —
8
- * `everyone`, `host:*`, `op:*`, `project:*`, or any ad-hoc room
9
- * id.
7
+ * Filter to messages addressed to a room ID or unambiguous display label.
10
8
  */
11
9
  room?: RoomId | null,
12
10
  /**
@@ -4,8 +4,8 @@ import type { RoomKind } from "./RoomKind";
4
4
 
5
5
  export type Room = {
6
6
  /**
7
- * Display name. For auto-rooms, equal to `id`. For ad-hoc rooms,
8
- * the user-supplied label (which `id` is slugified from).
7
+ * Display label. The room ID identifies the room even if another room has
8
+ * the same label.
9
9
  */
10
10
  name: string,
11
11
  /**
@@ -243,6 +243,84 @@ import type { WakeWatcher } from "./WakeWatcher";
243
243
  import type { WakeWatcherCount } from "./WakeWatcherCount";
244
244
 
245
245
  // Query classes
246
+ export class GetRoomsByQuery {
247
+ static readonly queryId = "GetRoomsByQuery" as const;
248
+ static readonly queryItemType = "Room" as const;
249
+ readonly queryId = "GetRoomsByQuery" as const;
250
+ readonly queryItemType = "Room" as const;
251
+ readonly query: Omit<_GetRoomsByQuery, "tx" | "createdAt">;
252
+ declare readonly $res: () => Room[];
253
+
254
+ constructor(args: Omit<_GetRoomsByQuery, "tx" | "createdAt">) {
255
+ this.query = args;
256
+ }
257
+ }
258
+
259
+ export class GetRoomsByIds {
260
+ static readonly queryId = "GetRoomsByIds" as const;
261
+ static readonly queryItemType = "Room" as const;
262
+ readonly queryId = "GetRoomsByIds" as const;
263
+ readonly queryItemType = "Room" as const;
264
+ readonly query: Omit<_GetRoomsByIds, "tx" | "createdAt">;
265
+ declare readonly $res: () => Room[];
266
+
267
+ constructor(args: Omit<_GetRoomsByIds, "tx" | "createdAt">) {
268
+ this.query = args;
269
+ }
270
+ }
271
+
272
+ export class GetAllRooms {
273
+ static readonly queryId = "GetAllRooms" as const;
274
+ static readonly queryItemType = "Room" as const;
275
+ readonly queryId = "GetAllRooms" as const;
276
+ readonly queryItemType = "Room" as const;
277
+ readonly query: Omit<_GetAllRooms, "tx" | "createdAt">;
278
+ declare readonly $res: () => Room[];
279
+
280
+ constructor(args: Omit<_GetAllRooms, "tx" | "createdAt">) {
281
+ this.query = args;
282
+ }
283
+ }
284
+
285
+ export class GetWakeWatchersByQuery {
286
+ static readonly queryId = "GetWakeWatchersByQuery" as const;
287
+ static readonly queryItemType = "WakeWatcher" as const;
288
+ readonly queryId = "GetWakeWatchersByQuery" as const;
289
+ readonly queryItemType = "WakeWatcher" as const;
290
+ readonly query: Omit<_GetWakeWatchersByQuery, "tx" | "createdAt">;
291
+ declare readonly $res: () => WakeWatcher[];
292
+
293
+ constructor(args: Omit<_GetWakeWatchersByQuery, "tx" | "createdAt">) {
294
+ this.query = args;
295
+ }
296
+ }
297
+
298
+ export class GetWakeWatchersByIds {
299
+ static readonly queryId = "GetWakeWatchersByIds" as const;
300
+ static readonly queryItemType = "WakeWatcher" as const;
301
+ readonly queryId = "GetWakeWatchersByIds" as const;
302
+ readonly queryItemType = "WakeWatcher" as const;
303
+ readonly query: Omit<_GetWakeWatchersByIds, "tx" | "createdAt">;
304
+ declare readonly $res: () => WakeWatcher[];
305
+
306
+ constructor(args: Omit<_GetWakeWatchersByIds, "tx" | "createdAt">) {
307
+ this.query = args;
308
+ }
309
+ }
310
+
311
+ export class GetAllWakeWatchers {
312
+ static readonly queryId = "GetAllWakeWatchers" as const;
313
+ static readonly queryItemType = "WakeWatcher" as const;
314
+ readonly queryId = "GetAllWakeWatchers" as const;
315
+ readonly queryItemType = "WakeWatcher" as const;
316
+ readonly query: Omit<_GetAllWakeWatchers, "tx" | "createdAt">;
317
+ declare readonly $res: () => WakeWatcher[];
318
+
319
+ constructor(args: Omit<_GetAllWakeWatchers, "tx" | "createdAt">) {
320
+ this.query = args;
321
+ }
322
+ }
323
+
246
324
  export class GetMessagesByQuery {
247
325
  static readonly queryId = "GetMessagesByQuery" as const;
248
326
  static readonly queryItemType = "Message" as const;
@@ -438,84 +516,6 @@ export class GetAllRoomMembers {
438
516
  }
439
517
  }
440
518
 
441
- export class GetRoomsByQuery {
442
- static readonly queryId = "GetRoomsByQuery" as const;
443
- static readonly queryItemType = "Room" as const;
444
- readonly queryId = "GetRoomsByQuery" as const;
445
- readonly queryItemType = "Room" as const;
446
- readonly query: Omit<_GetRoomsByQuery, "tx" | "createdAt">;
447
- declare readonly $res: () => Room[];
448
-
449
- constructor(args: Omit<_GetRoomsByQuery, "tx" | "createdAt">) {
450
- this.query = args;
451
- }
452
- }
453
-
454
- export class GetRoomsByIds {
455
- static readonly queryId = "GetRoomsByIds" as const;
456
- static readonly queryItemType = "Room" as const;
457
- readonly queryId = "GetRoomsByIds" as const;
458
- readonly queryItemType = "Room" as const;
459
- readonly query: Omit<_GetRoomsByIds, "tx" | "createdAt">;
460
- declare readonly $res: () => Room[];
461
-
462
- constructor(args: Omit<_GetRoomsByIds, "tx" | "createdAt">) {
463
- this.query = args;
464
- }
465
- }
466
-
467
- export class GetAllRooms {
468
- static readonly queryId = "GetAllRooms" as const;
469
- static readonly queryItemType = "Room" as const;
470
- readonly queryId = "GetAllRooms" as const;
471
- readonly queryItemType = "Room" as const;
472
- readonly query: Omit<_GetAllRooms, "tx" | "createdAt">;
473
- declare readonly $res: () => Room[];
474
-
475
- constructor(args: Omit<_GetAllRooms, "tx" | "createdAt">) {
476
- this.query = args;
477
- }
478
- }
479
-
480
- export class GetWakeWatchersByQuery {
481
- static readonly queryId = "GetWakeWatchersByQuery" as const;
482
- static readonly queryItemType = "WakeWatcher" as const;
483
- readonly queryId = "GetWakeWatchersByQuery" as const;
484
- readonly queryItemType = "WakeWatcher" as const;
485
- readonly query: Omit<_GetWakeWatchersByQuery, "tx" | "createdAt">;
486
- declare readonly $res: () => WakeWatcher[];
487
-
488
- constructor(args: Omit<_GetWakeWatchersByQuery, "tx" | "createdAt">) {
489
- this.query = args;
490
- }
491
- }
492
-
493
- export class GetWakeWatchersByIds {
494
- static readonly queryId = "GetWakeWatchersByIds" as const;
495
- static readonly queryItemType = "WakeWatcher" as const;
496
- readonly queryId = "GetWakeWatchersByIds" as const;
497
- readonly queryItemType = "WakeWatcher" as const;
498
- readonly query: Omit<_GetWakeWatchersByIds, "tx" | "createdAt">;
499
- declare readonly $res: () => WakeWatcher[];
500
-
501
- constructor(args: Omit<_GetWakeWatchersByIds, "tx" | "createdAt">) {
502
- this.query = args;
503
- }
504
- }
505
-
506
- export class GetAllWakeWatchers {
507
- static readonly queryId = "GetAllWakeWatchers" as const;
508
- static readonly queryItemType = "WakeWatcher" as const;
509
- readonly queryId = "GetAllWakeWatchers" as const;
510
- readonly queryItemType = "WakeWatcher" as const;
511
- readonly query: Omit<_GetAllWakeWatchers, "tx" | "createdAt">;
512
- declare readonly $res: () => WakeWatcher[];
513
-
514
- constructor(args: Omit<_GetAllWakeWatchers, "tx" | "createdAt">) {
515
- this.query = args;
516
- }
517
- }
518
-
519
519
  export class GetSandboxRunsByIds {
520
520
  static readonly queryId = "GetSandboxRunsByIds" as const;
521
521
  static readonly queryItemType = "SandboxRun" as const;
@@ -558,6 +558,72 @@ export class GetSandboxRunsByQuery {
558
558
  // View classes
559
559
 
560
560
  // Report classes
561
+ export class GetRoomById {
562
+ static readonly reportId = "GetRoomById" as const;
563
+ readonly reportId = "GetRoomById" as const;
564
+ readonly report: Omit<_GetRoomById, "tx">;
565
+ declare readonly $res: () => Room | null;
566
+
567
+ constructor(args: Omit<_GetRoomById, "tx">) {
568
+ this.report = args;
569
+ }
570
+ }
571
+
572
+ export class CountRooms {
573
+ static readonly reportId = "CountRooms" as const;
574
+ readonly reportId = "CountRooms" as const;
575
+ readonly report: Omit<_CountRooms, "tx">;
576
+ declare readonly $res: () => RoomCount;
577
+
578
+ constructor(args: Omit<_CountRooms, "tx">) {
579
+ this.report = args;
580
+ }
581
+ }
582
+
583
+ export class CountAllRooms {
584
+ static readonly reportId = "CountAllRooms" as const;
585
+ readonly reportId = "CountAllRooms" as const;
586
+ readonly report: Omit<_CountAllRooms, "tx">;
587
+ declare readonly $res: () => RoomCount;
588
+
589
+ constructor(args: Omit<_CountAllRooms, "tx">) {
590
+ this.report = args;
591
+ }
592
+ }
593
+
594
+ export class GetWakeWatcherById {
595
+ static readonly reportId = "GetWakeWatcherById" as const;
596
+ readonly reportId = "GetWakeWatcherById" as const;
597
+ readonly report: Omit<_GetWakeWatcherById, "tx">;
598
+ declare readonly $res: () => WakeWatcher | null;
599
+
600
+ constructor(args: Omit<_GetWakeWatcherById, "tx">) {
601
+ this.report = args;
602
+ }
603
+ }
604
+
605
+ export class CountWakeWatchers {
606
+ static readonly reportId = "CountWakeWatchers" as const;
607
+ readonly reportId = "CountWakeWatchers" as const;
608
+ readonly report: Omit<_CountWakeWatchers, "tx">;
609
+ declare readonly $res: () => WakeWatcherCount;
610
+
611
+ constructor(args: Omit<_CountWakeWatchers, "tx">) {
612
+ this.report = args;
613
+ }
614
+ }
615
+
616
+ export class CountAllWakeWatchers {
617
+ static readonly reportId = "CountAllWakeWatchers" as const;
618
+ readonly reportId = "CountAllWakeWatchers" as const;
619
+ readonly report: Omit<_CountAllWakeWatchers, "tx">;
620
+ declare readonly $res: () => WakeWatcherCount;
621
+
622
+ constructor(args: Omit<_CountAllWakeWatchers, "tx">) {
623
+ this.report = args;
624
+ }
625
+ }
626
+
561
627
  export class GetMessageById {
562
628
  static readonly reportId = "GetMessageById" as const;
563
629
  readonly reportId = "GetMessageById" as const;
@@ -723,72 +789,6 @@ export class CountAllRoomMembers {
723
789
  }
724
790
  }
725
791
 
726
- export class GetRoomById {
727
- static readonly reportId = "GetRoomById" as const;
728
- readonly reportId = "GetRoomById" as const;
729
- readonly report: Omit<_GetRoomById, "tx">;
730
- declare readonly $res: () => Room | null;
731
-
732
- constructor(args: Omit<_GetRoomById, "tx">) {
733
- this.report = args;
734
- }
735
- }
736
-
737
- export class CountRooms {
738
- static readonly reportId = "CountRooms" as const;
739
- readonly reportId = "CountRooms" as const;
740
- readonly report: Omit<_CountRooms, "tx">;
741
- declare readonly $res: () => RoomCount;
742
-
743
- constructor(args: Omit<_CountRooms, "tx">) {
744
- this.report = args;
745
- }
746
- }
747
-
748
- export class CountAllRooms {
749
- static readonly reportId = "CountAllRooms" as const;
750
- readonly reportId = "CountAllRooms" as const;
751
- readonly report: Omit<_CountAllRooms, "tx">;
752
- declare readonly $res: () => RoomCount;
753
-
754
- constructor(args: Omit<_CountAllRooms, "tx">) {
755
- this.report = args;
756
- }
757
- }
758
-
759
- export class GetWakeWatcherById {
760
- static readonly reportId = "GetWakeWatcherById" as const;
761
- readonly reportId = "GetWakeWatcherById" as const;
762
- readonly report: Omit<_GetWakeWatcherById, "tx">;
763
- declare readonly $res: () => WakeWatcher | null;
764
-
765
- constructor(args: Omit<_GetWakeWatcherById, "tx">) {
766
- this.report = args;
767
- }
768
- }
769
-
770
- export class CountWakeWatchers {
771
- static readonly reportId = "CountWakeWatchers" as const;
772
- readonly reportId = "CountWakeWatchers" as const;
773
- readonly report: Omit<_CountWakeWatchers, "tx">;
774
- declare readonly $res: () => WakeWatcherCount;
775
-
776
- constructor(args: Omit<_CountWakeWatchers, "tx">) {
777
- this.report = args;
778
- }
779
- }
780
-
781
- export class CountAllWakeWatchers {
782
- static readonly reportId = "CountAllWakeWatchers" as const;
783
- readonly reportId = "CountAllWakeWatchers" as const;
784
- readonly report: Omit<_CountAllWakeWatchers, "tx">;
785
- declare readonly $res: () => WakeWatcherCount;
786
-
787
- constructor(args: Omit<_CountAllWakeWatchers, "tx">) {
788
- this.report = args;
789
- }
790
- }
791
-
792
792
  export class GetSandboxRunById {
793
793
  static readonly reportId = "GetSandboxRunById" as const;
794
794
  readonly reportId = "GetSandboxRunById" as const;
@@ -823,28 +823,6 @@ export class CountAllSandboxRuns {
823
823
  }
824
824
 
825
825
  // Command classes
826
- export class LeaveRoom {
827
- static readonly commandId = "LeaveRoom" as const;
828
- readonly commandId = "LeaveRoom" as const;
829
- readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
830
- declare readonly $res: () => LeaveRoomResult;
831
-
832
- constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
833
- this.command = args;
834
- }
835
- }
836
-
837
- export class JoinRoom {
838
- static readonly commandId = "JoinRoom" as const;
839
- readonly commandId = "JoinRoom" as const;
840
- readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
841
- declare readonly $res: () => JoinRoomResult;
842
-
843
- constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
844
- this.command = args;
845
- }
846
- }
847
-
848
826
  export class BroadcastMessage {
849
827
  static readonly commandId = "BroadcastMessage" as const;
850
828
  readonly commandId = "BroadcastMessage" as const;
@@ -878,6 +856,83 @@ export class SendMessage {
878
856
  }
879
857
  }
880
858
 
859
+ export class NotifyChannel {
860
+ static readonly commandId = "NotifyChannel" as const;
861
+ readonly commandId = "NotifyChannel" as const;
862
+ readonly command: Omit<_NotifyChannel, "tx" | "createdAt">;
863
+ declare readonly $res: () => void;
864
+
865
+ constructor(args: Omit<_NotifyChannel, "tx" | "createdAt">) {
866
+ this.command = args;
867
+ }
868
+ }
869
+
870
+ export class DeleteRoom {
871
+ static readonly commandId = "DeleteRoom" as const;
872
+ readonly commandId = "DeleteRoom" as const;
873
+ readonly command: Omit<_DeleteRoom, "tx" | "createdAt">;
874
+ declare readonly $res: () => DeleteRoomResult;
875
+
876
+ constructor(args: Omit<_DeleteRoom, "tx" | "createdAt">) {
877
+ this.command = args;
878
+ }
879
+ }
880
+
881
+ export class SetRoomName {
882
+ static readonly commandId = "SetRoomName" as const;
883
+ readonly commandId = "SetRoomName" as const;
884
+ readonly command: Omit<_SetRoomName, "tx" | "createdAt">;
885
+ declare readonly $res: () => void;
886
+
887
+ constructor(args: Omit<_SetRoomName, "tx" | "createdAt">) {
888
+ this.command = args;
889
+ }
890
+ }
891
+
892
+ export class DeleteRooms {
893
+ static readonly commandId = "DeleteRooms" as const;
894
+ readonly commandId = "DeleteRooms" as const;
895
+ readonly command: Omit<_DeleteRooms, "tx" | "createdAt">;
896
+ declare readonly $res: () => DeleteRoomsResult;
897
+
898
+ constructor(args: Omit<_DeleteRooms, "tx" | "createdAt">) {
899
+ this.command = args;
900
+ }
901
+ }
902
+
903
+ export class SetRoomDescription {
904
+ static readonly commandId = "SetRoomDescription" as const;
905
+ readonly commandId = "SetRoomDescription" as const;
906
+ readonly command: Omit<_SetRoomDescription, "tx" | "createdAt">;
907
+ declare readonly $res: () => void;
908
+
909
+ constructor(args: Omit<_SetRoomDescription, "tx" | "createdAt">) {
910
+ this.command = args;
911
+ }
912
+ }
913
+
914
+ export class DeleteWakeWatcher {
915
+ static readonly commandId = "DeleteWakeWatcher" as const;
916
+ readonly commandId = "DeleteWakeWatcher" as const;
917
+ readonly command: Omit<_DeleteWakeWatcher, "tx" | "createdAt">;
918
+ declare readonly $res: () => DeleteWakeWatcherResult;
919
+
920
+ constructor(args: Omit<_DeleteWakeWatcher, "tx" | "createdAt">) {
921
+ this.command = args;
922
+ }
923
+ }
924
+
925
+ export class DeleteWakeWatchers {
926
+ static readonly commandId = "DeleteWakeWatchers" as const;
927
+ readonly commandId = "DeleteWakeWatchers" as const;
928
+ readonly command: Omit<_DeleteWakeWatchers, "tx" | "createdAt">;
929
+ declare readonly $res: () => DeleteWakeWatchersResult;
930
+
931
+ constructor(args: Omit<_DeleteWakeWatchers, "tx" | "createdAt">) {
932
+ this.command = args;
933
+ }
934
+ }
935
+
881
936
  export class DeleteMessages {
882
937
  static readonly commandId = "DeleteMessages" as const;
883
938
  readonly commandId = "DeleteMessages" as const;
@@ -1109,79 +1164,24 @@ export class DeleteRoomMember {
1109
1164
  }
1110
1165
  }
1111
1166
 
1112
- export class NotifyChannel {
1113
- static readonly commandId = "NotifyChannel" as const;
1114
- readonly commandId = "NotifyChannel" as const;
1115
- readonly command: Omit<_NotifyChannel, "tx" | "createdAt">;
1116
- declare readonly $res: () => void;
1117
-
1118
- constructor(args: Omit<_NotifyChannel, "tx" | "createdAt">) {
1119
- this.command = args;
1120
- }
1121
- }
1122
-
1123
- export class DeleteRoom {
1124
- static readonly commandId = "DeleteRoom" as const;
1125
- readonly commandId = "DeleteRoom" as const;
1126
- readonly command: Omit<_DeleteRoom, "tx" | "createdAt">;
1127
- declare readonly $res: () => DeleteRoomResult;
1128
-
1129
- constructor(args: Omit<_DeleteRoom, "tx" | "createdAt">) {
1130
- this.command = args;
1131
- }
1132
- }
1133
-
1134
- export class SetRoomName {
1135
- static readonly commandId = "SetRoomName" as const;
1136
- readonly commandId = "SetRoomName" as const;
1137
- readonly command: Omit<_SetRoomName, "tx" | "createdAt">;
1138
- declare readonly $res: () => void;
1139
-
1140
- constructor(args: Omit<_SetRoomName, "tx" | "createdAt">) {
1141
- this.command = args;
1142
- }
1143
- }
1144
-
1145
- export class DeleteRooms {
1146
- static readonly commandId = "DeleteRooms" as const;
1147
- readonly commandId = "DeleteRooms" as const;
1148
- readonly command: Omit<_DeleteRooms, "tx" | "createdAt">;
1149
- declare readonly $res: () => DeleteRoomsResult;
1150
-
1151
- constructor(args: Omit<_DeleteRooms, "tx" | "createdAt">) {
1152
- this.command = args;
1153
- }
1154
- }
1155
-
1156
- export class SetRoomDescription {
1157
- static readonly commandId = "SetRoomDescription" as const;
1158
- readonly commandId = "SetRoomDescription" as const;
1159
- readonly command: Omit<_SetRoomDescription, "tx" | "createdAt">;
1160
- declare readonly $res: () => void;
1161
-
1162
- constructor(args: Omit<_SetRoomDescription, "tx" | "createdAt">) {
1163
- this.command = args;
1164
- }
1165
- }
1166
-
1167
- export class DeleteWakeWatcher {
1168
- static readonly commandId = "DeleteWakeWatcher" as const;
1169
- readonly commandId = "DeleteWakeWatcher" as const;
1170
- readonly command: Omit<_DeleteWakeWatcher, "tx" | "createdAt">;
1171
- declare readonly $res: () => DeleteWakeWatcherResult;
1167
+ export class LeaveRoom {
1168
+ static readonly commandId = "LeaveRoom" as const;
1169
+ readonly commandId = "LeaveRoom" as const;
1170
+ readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
1171
+ declare readonly $res: () => LeaveRoomResult;
1172
1172
 
1173
- constructor(args: Omit<_DeleteWakeWatcher, "tx" | "createdAt">) {
1173
+ constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
1174
1174
  this.command = args;
1175
1175
  }
1176
1176
  }
1177
1177
 
1178
- export class DeleteWakeWatchers {
1179
- static readonly commandId = "DeleteWakeWatchers" as const;
1180
- readonly commandId = "DeleteWakeWatchers" as const;
1181
- readonly command: Omit<_DeleteWakeWatchers, "tx" | "createdAt">;
1182
- declare readonly $res: () => DeleteWakeWatchersResult;
1178
+ export class JoinRoom {
1179
+ static readonly commandId = "JoinRoom" as const;
1180
+ readonly commandId = "JoinRoom" as const;
1181
+ readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
1182
+ declare readonly $res: () => JoinRoomResult;
1183
1183
 
1184
- constructor(args: Omit<_DeleteWakeWatchers, "tx" | "createdAt">) {
1184
+ constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
1185
1185
  this.command = args;
1186
1186
  }
1187
1187
  }
@@ -1221,13 +1221,13 @@ export class DeleteSandboxRun {
1221
1221
 
1222
1222
  // Item constructors
1223
1223
  export const items = {
1224
+ Room: (args: Room) => ({ item: args, itemType: "Room" }),
1225
+ WakeWatcher: (args: WakeWatcher) => ({ item: args, itemType: "WakeWatcher" }),
1224
1226
  Message: (args: Message) => ({ item: args, itemType: "Message" }),
1225
1227
  MessageRead: (args: MessageRead) => ({ item: args, itemType: "MessageRead" }),
1226
1228
  Session: (args: Session) => ({ item: args, itemType: "Session" }),
1227
1229
  SessionNickname: (args: SessionNickname) => ({ item: args, itemType: "SessionNickname" }),
1228
1230
  RoomMember: (args: RoomMember) => ({ item: args, itemType: "RoomMember" }),
1229
- Room: (args: Room) => ({ item: args, itemType: "Room" }),
1230
- WakeWatcher: (args: WakeWatcher) => ({ item: args, itemType: "WakeWatcher" }),
1231
1231
  SandboxRun: (args: SandboxRun) => ({ item: args, itemType: "SandboxRun" }),
1232
1232
  };
1233
1233