@agent-marshal/marshal-pi 0.60.1 → 0.60.3
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 +1 -1
- package/src/generated/JoinRoom.ts +6 -2
- package/src/generated/JoinRoomArgs.ts +6 -2
- package/src/generated/LeaveRoom.ts +1 -2
- package/src/generated/LeaveRoomArgs.ts +1 -2
- package/src/generated/ReadMessages.ts +1 -3
- package/src/generated/ReadMessagesArgs.ts +1 -3
- package/src/generated/Room.ts +2 -2
- package/src/generated/index.ts +245 -245
package/package.json
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
/**
|
package/src/generated/Room.ts
CHANGED
|
@@ -4,8 +4,8 @@ import type { RoomKind } from "./RoomKind";
|
|
|
4
4
|
|
|
5
5
|
export type Room = {
|
|
6
6
|
/**
|
|
7
|
-
* Display
|
|
8
|
-
* the
|
|
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
|
/**
|
package/src/generated/index.ts
CHANGED
|
@@ -360,6 +360,84 @@ export class GetAllMessageReads {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
+
export class GetRoomsByQuery {
|
|
364
|
+
static readonly queryId = "GetRoomsByQuery" as const;
|
|
365
|
+
static readonly queryItemType = "Room" as const;
|
|
366
|
+
readonly queryId = "GetRoomsByQuery" as const;
|
|
367
|
+
readonly queryItemType = "Room" as const;
|
|
368
|
+
readonly query: Omit<_GetRoomsByQuery, "tx" | "createdAt">;
|
|
369
|
+
declare readonly $res: () => Room[];
|
|
370
|
+
|
|
371
|
+
constructor(args: Omit<_GetRoomsByQuery, "tx" | "createdAt">) {
|
|
372
|
+
this.query = args;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export class GetRoomsByIds {
|
|
377
|
+
static readonly queryId = "GetRoomsByIds" as const;
|
|
378
|
+
static readonly queryItemType = "Room" as const;
|
|
379
|
+
readonly queryId = "GetRoomsByIds" as const;
|
|
380
|
+
readonly queryItemType = "Room" as const;
|
|
381
|
+
readonly query: Omit<_GetRoomsByIds, "tx" | "createdAt">;
|
|
382
|
+
declare readonly $res: () => Room[];
|
|
383
|
+
|
|
384
|
+
constructor(args: Omit<_GetRoomsByIds, "tx" | "createdAt">) {
|
|
385
|
+
this.query = args;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export class GetAllRooms {
|
|
390
|
+
static readonly queryId = "GetAllRooms" as const;
|
|
391
|
+
static readonly queryItemType = "Room" as const;
|
|
392
|
+
readonly queryId = "GetAllRooms" as const;
|
|
393
|
+
readonly queryItemType = "Room" as const;
|
|
394
|
+
readonly query: Omit<_GetAllRooms, "tx" | "createdAt">;
|
|
395
|
+
declare readonly $res: () => Room[];
|
|
396
|
+
|
|
397
|
+
constructor(args: Omit<_GetAllRooms, "tx" | "createdAt">) {
|
|
398
|
+
this.query = args;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export class GetWakeWatchersByQuery {
|
|
403
|
+
static readonly queryId = "GetWakeWatchersByQuery" as const;
|
|
404
|
+
static readonly queryItemType = "WakeWatcher" as const;
|
|
405
|
+
readonly queryId = "GetWakeWatchersByQuery" as const;
|
|
406
|
+
readonly queryItemType = "WakeWatcher" as const;
|
|
407
|
+
readonly query: Omit<_GetWakeWatchersByQuery, "tx" | "createdAt">;
|
|
408
|
+
declare readonly $res: () => WakeWatcher[];
|
|
409
|
+
|
|
410
|
+
constructor(args: Omit<_GetWakeWatchersByQuery, "tx" | "createdAt">) {
|
|
411
|
+
this.query = args;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export class GetWakeWatchersByIds {
|
|
416
|
+
static readonly queryId = "GetWakeWatchersByIds" as const;
|
|
417
|
+
static readonly queryItemType = "WakeWatcher" as const;
|
|
418
|
+
readonly queryId = "GetWakeWatchersByIds" as const;
|
|
419
|
+
readonly queryItemType = "WakeWatcher" as const;
|
|
420
|
+
readonly query: Omit<_GetWakeWatchersByIds, "tx" | "createdAt">;
|
|
421
|
+
declare readonly $res: () => WakeWatcher[];
|
|
422
|
+
|
|
423
|
+
constructor(args: Omit<_GetWakeWatchersByIds, "tx" | "createdAt">) {
|
|
424
|
+
this.query = args;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export class GetAllWakeWatchers {
|
|
429
|
+
static readonly queryId = "GetAllWakeWatchers" as const;
|
|
430
|
+
static readonly queryItemType = "WakeWatcher" as const;
|
|
431
|
+
readonly queryId = "GetAllWakeWatchers" as const;
|
|
432
|
+
readonly queryItemType = "WakeWatcher" as const;
|
|
433
|
+
readonly query: Omit<_GetAllWakeWatchers, "tx" | "createdAt">;
|
|
434
|
+
declare readonly $res: () => WakeWatcher[];
|
|
435
|
+
|
|
436
|
+
constructor(args: Omit<_GetAllWakeWatchers, "tx" | "createdAt">) {
|
|
437
|
+
this.query = args;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
363
441
|
export class GetSessionsByQuery {
|
|
364
442
|
static readonly queryId = "GetSessionsByQuery" as const;
|
|
365
443
|
static readonly queryItemType = "Session" as const;
|
|
@@ -477,84 +555,6 @@ export class GetAllRoomMembers {
|
|
|
477
555
|
}
|
|
478
556
|
}
|
|
479
557
|
|
|
480
|
-
export class GetRoomsByQuery {
|
|
481
|
-
static readonly queryId = "GetRoomsByQuery" as const;
|
|
482
|
-
static readonly queryItemType = "Room" as const;
|
|
483
|
-
readonly queryId = "GetRoomsByQuery" as const;
|
|
484
|
-
readonly queryItemType = "Room" as const;
|
|
485
|
-
readonly query: Omit<_GetRoomsByQuery, "tx" | "createdAt">;
|
|
486
|
-
declare readonly $res: () => Room[];
|
|
487
|
-
|
|
488
|
-
constructor(args: Omit<_GetRoomsByQuery, "tx" | "createdAt">) {
|
|
489
|
-
this.query = args;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
export class GetRoomsByIds {
|
|
494
|
-
static readonly queryId = "GetRoomsByIds" as const;
|
|
495
|
-
static readonly queryItemType = "Room" as const;
|
|
496
|
-
readonly queryId = "GetRoomsByIds" as const;
|
|
497
|
-
readonly queryItemType = "Room" as const;
|
|
498
|
-
readonly query: Omit<_GetRoomsByIds, "tx" | "createdAt">;
|
|
499
|
-
declare readonly $res: () => Room[];
|
|
500
|
-
|
|
501
|
-
constructor(args: Omit<_GetRoomsByIds, "tx" | "createdAt">) {
|
|
502
|
-
this.query = args;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
export class GetAllRooms {
|
|
507
|
-
static readonly queryId = "GetAllRooms" as const;
|
|
508
|
-
static readonly queryItemType = "Room" as const;
|
|
509
|
-
readonly queryId = "GetAllRooms" as const;
|
|
510
|
-
readonly queryItemType = "Room" as const;
|
|
511
|
-
readonly query: Omit<_GetAllRooms, "tx" | "createdAt">;
|
|
512
|
-
declare readonly $res: () => Room[];
|
|
513
|
-
|
|
514
|
-
constructor(args: Omit<_GetAllRooms, "tx" | "createdAt">) {
|
|
515
|
-
this.query = args;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
export class GetWakeWatchersByQuery {
|
|
520
|
-
static readonly queryId = "GetWakeWatchersByQuery" as const;
|
|
521
|
-
static readonly queryItemType = "WakeWatcher" as const;
|
|
522
|
-
readonly queryId = "GetWakeWatchersByQuery" as const;
|
|
523
|
-
readonly queryItemType = "WakeWatcher" as const;
|
|
524
|
-
readonly query: Omit<_GetWakeWatchersByQuery, "tx" | "createdAt">;
|
|
525
|
-
declare readonly $res: () => WakeWatcher[];
|
|
526
|
-
|
|
527
|
-
constructor(args: Omit<_GetWakeWatchersByQuery, "tx" | "createdAt">) {
|
|
528
|
-
this.query = args;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export class GetWakeWatchersByIds {
|
|
533
|
-
static readonly queryId = "GetWakeWatchersByIds" as const;
|
|
534
|
-
static readonly queryItemType = "WakeWatcher" as const;
|
|
535
|
-
readonly queryId = "GetWakeWatchersByIds" as const;
|
|
536
|
-
readonly queryItemType = "WakeWatcher" as const;
|
|
537
|
-
readonly query: Omit<_GetWakeWatchersByIds, "tx" | "createdAt">;
|
|
538
|
-
declare readonly $res: () => WakeWatcher[];
|
|
539
|
-
|
|
540
|
-
constructor(args: Omit<_GetWakeWatchersByIds, "tx" | "createdAt">) {
|
|
541
|
-
this.query = args;
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
export class GetAllWakeWatchers {
|
|
546
|
-
static readonly queryId = "GetAllWakeWatchers" as const;
|
|
547
|
-
static readonly queryItemType = "WakeWatcher" as const;
|
|
548
|
-
readonly queryId = "GetAllWakeWatchers" as const;
|
|
549
|
-
readonly queryItemType = "WakeWatcher" as const;
|
|
550
|
-
readonly query: Omit<_GetAllWakeWatchers, "tx" | "createdAt">;
|
|
551
|
-
declare readonly $res: () => WakeWatcher[];
|
|
552
|
-
|
|
553
|
-
constructor(args: Omit<_GetAllWakeWatchers, "tx" | "createdAt">) {
|
|
554
|
-
this.query = args;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
|
|
558
558
|
// View classes
|
|
559
559
|
|
|
560
560
|
// Report classes
|
|
@@ -657,6 +657,72 @@ export class CountAllMessageReads {
|
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
+
export class GetRoomById {
|
|
661
|
+
static readonly reportId = "GetRoomById" as const;
|
|
662
|
+
readonly reportId = "GetRoomById" as const;
|
|
663
|
+
readonly report: Omit<_GetRoomById, "tx">;
|
|
664
|
+
declare readonly $res: () => Room | null;
|
|
665
|
+
|
|
666
|
+
constructor(args: Omit<_GetRoomById, "tx">) {
|
|
667
|
+
this.report = args;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
export class CountRooms {
|
|
672
|
+
static readonly reportId = "CountRooms" as const;
|
|
673
|
+
readonly reportId = "CountRooms" as const;
|
|
674
|
+
readonly report: Omit<_CountRooms, "tx">;
|
|
675
|
+
declare readonly $res: () => RoomCount;
|
|
676
|
+
|
|
677
|
+
constructor(args: Omit<_CountRooms, "tx">) {
|
|
678
|
+
this.report = args;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
export class CountAllRooms {
|
|
683
|
+
static readonly reportId = "CountAllRooms" as const;
|
|
684
|
+
readonly reportId = "CountAllRooms" as const;
|
|
685
|
+
readonly report: Omit<_CountAllRooms, "tx">;
|
|
686
|
+
declare readonly $res: () => RoomCount;
|
|
687
|
+
|
|
688
|
+
constructor(args: Omit<_CountAllRooms, "tx">) {
|
|
689
|
+
this.report = args;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export class GetWakeWatcherById {
|
|
694
|
+
static readonly reportId = "GetWakeWatcherById" as const;
|
|
695
|
+
readonly reportId = "GetWakeWatcherById" as const;
|
|
696
|
+
readonly report: Omit<_GetWakeWatcherById, "tx">;
|
|
697
|
+
declare readonly $res: () => WakeWatcher | null;
|
|
698
|
+
|
|
699
|
+
constructor(args: Omit<_GetWakeWatcherById, "tx">) {
|
|
700
|
+
this.report = args;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export class CountWakeWatchers {
|
|
705
|
+
static readonly reportId = "CountWakeWatchers" as const;
|
|
706
|
+
readonly reportId = "CountWakeWatchers" as const;
|
|
707
|
+
readonly report: Omit<_CountWakeWatchers, "tx">;
|
|
708
|
+
declare readonly $res: () => WakeWatcherCount;
|
|
709
|
+
|
|
710
|
+
constructor(args: Omit<_CountWakeWatchers, "tx">) {
|
|
711
|
+
this.report = args;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export class CountAllWakeWatchers {
|
|
716
|
+
static readonly reportId = "CountAllWakeWatchers" as const;
|
|
717
|
+
readonly reportId = "CountAllWakeWatchers" as const;
|
|
718
|
+
readonly report: Omit<_CountAllWakeWatchers, "tx">;
|
|
719
|
+
declare readonly $res: () => WakeWatcherCount;
|
|
720
|
+
|
|
721
|
+
constructor(args: Omit<_CountAllWakeWatchers, "tx">) {
|
|
722
|
+
this.report = args;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
660
726
|
export class GetSessionById {
|
|
661
727
|
static readonly reportId = "GetSessionById" as const;
|
|
662
728
|
readonly reportId = "GetSessionById" as const;
|
|
@@ -756,72 +822,6 @@ export class CountAllRoomMembers {
|
|
|
756
822
|
}
|
|
757
823
|
}
|
|
758
824
|
|
|
759
|
-
export class GetRoomById {
|
|
760
|
-
static readonly reportId = "GetRoomById" as const;
|
|
761
|
-
readonly reportId = "GetRoomById" as const;
|
|
762
|
-
readonly report: Omit<_GetRoomById, "tx">;
|
|
763
|
-
declare readonly $res: () => Room | null;
|
|
764
|
-
|
|
765
|
-
constructor(args: Omit<_GetRoomById, "tx">) {
|
|
766
|
-
this.report = args;
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
export class CountRooms {
|
|
771
|
-
static readonly reportId = "CountRooms" as const;
|
|
772
|
-
readonly reportId = "CountRooms" as const;
|
|
773
|
-
readonly report: Omit<_CountRooms, "tx">;
|
|
774
|
-
declare readonly $res: () => RoomCount;
|
|
775
|
-
|
|
776
|
-
constructor(args: Omit<_CountRooms, "tx">) {
|
|
777
|
-
this.report = args;
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
export class CountAllRooms {
|
|
782
|
-
static readonly reportId = "CountAllRooms" as const;
|
|
783
|
-
readonly reportId = "CountAllRooms" as const;
|
|
784
|
-
readonly report: Omit<_CountAllRooms, "tx">;
|
|
785
|
-
declare readonly $res: () => RoomCount;
|
|
786
|
-
|
|
787
|
-
constructor(args: Omit<_CountAllRooms, "tx">) {
|
|
788
|
-
this.report = args;
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
export class GetWakeWatcherById {
|
|
793
|
-
static readonly reportId = "GetWakeWatcherById" as const;
|
|
794
|
-
readonly reportId = "GetWakeWatcherById" as const;
|
|
795
|
-
readonly report: Omit<_GetWakeWatcherById, "tx">;
|
|
796
|
-
declare readonly $res: () => WakeWatcher | null;
|
|
797
|
-
|
|
798
|
-
constructor(args: Omit<_GetWakeWatcherById, "tx">) {
|
|
799
|
-
this.report = args;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
export class CountWakeWatchers {
|
|
804
|
-
static readonly reportId = "CountWakeWatchers" as const;
|
|
805
|
-
readonly reportId = "CountWakeWatchers" as const;
|
|
806
|
-
readonly report: Omit<_CountWakeWatchers, "tx">;
|
|
807
|
-
declare readonly $res: () => WakeWatcherCount;
|
|
808
|
-
|
|
809
|
-
constructor(args: Omit<_CountWakeWatchers, "tx">) {
|
|
810
|
-
this.report = args;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
export class CountAllWakeWatchers {
|
|
815
|
-
static readonly reportId = "CountAllWakeWatchers" as const;
|
|
816
|
-
readonly reportId = "CountAllWakeWatchers" as const;
|
|
817
|
-
readonly report: Omit<_CountAllWakeWatchers, "tx">;
|
|
818
|
-
declare readonly $res: () => WakeWatcherCount;
|
|
819
|
-
|
|
820
|
-
constructor(args: Omit<_CountAllWakeWatchers, "tx">) {
|
|
821
|
-
this.report = args;
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
|
|
825
825
|
// Command classes
|
|
826
826
|
export class ImportSandboxRun {
|
|
827
827
|
static readonly commandId = "ImportSandboxRun" as const;
|
|
@@ -889,28 +889,6 @@ export class SendMessage {
|
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
891
|
|
|
892
|
-
export class LeaveRoom {
|
|
893
|
-
static readonly commandId = "LeaveRoom" as const;
|
|
894
|
-
readonly commandId = "LeaveRoom" as const;
|
|
895
|
-
readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
|
|
896
|
-
declare readonly $res: () => LeaveRoomResult;
|
|
897
|
-
|
|
898
|
-
constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
|
|
899
|
-
this.command = args;
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
export class JoinRoom {
|
|
904
|
-
static readonly commandId = "JoinRoom" as const;
|
|
905
|
-
readonly commandId = "JoinRoom" as const;
|
|
906
|
-
readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
|
|
907
|
-
declare readonly $res: () => JoinRoomResult;
|
|
908
|
-
|
|
909
|
-
constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
|
|
910
|
-
this.command = args;
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
|
|
914
892
|
export class DeleteMessages {
|
|
915
893
|
static readonly commandId = "DeleteMessages" as const;
|
|
916
894
|
readonly commandId = "DeleteMessages" as const;
|
|
@@ -933,6 +911,17 @@ export class DeleteMessage {
|
|
|
933
911
|
}
|
|
934
912
|
}
|
|
935
913
|
|
|
914
|
+
export class NotifyChannel {
|
|
915
|
+
static readonly commandId = "NotifyChannel" as const;
|
|
916
|
+
readonly commandId = "NotifyChannel" as const;
|
|
917
|
+
readonly command: Omit<_NotifyChannel, "tx" | "createdAt">;
|
|
918
|
+
declare readonly $res: () => void;
|
|
919
|
+
|
|
920
|
+
constructor(args: Omit<_NotifyChannel, "tx" | "createdAt">) {
|
|
921
|
+
this.command = args;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
|
|
936
925
|
export class DeleteMessageReads {
|
|
937
926
|
static readonly commandId = "DeleteMessageReads" as const;
|
|
938
927
|
readonly commandId = "DeleteMessageReads" as const;
|
|
@@ -955,6 +944,94 @@ export class DeleteMessageRead {
|
|
|
955
944
|
}
|
|
956
945
|
}
|
|
957
946
|
|
|
947
|
+
export class LeaveRoom {
|
|
948
|
+
static readonly commandId = "LeaveRoom" as const;
|
|
949
|
+
readonly commandId = "LeaveRoom" as const;
|
|
950
|
+
readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
|
|
951
|
+
declare readonly $res: () => LeaveRoomResult;
|
|
952
|
+
|
|
953
|
+
constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
|
|
954
|
+
this.command = args;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export class JoinRoom {
|
|
959
|
+
static readonly commandId = "JoinRoom" as const;
|
|
960
|
+
readonly commandId = "JoinRoom" as const;
|
|
961
|
+
readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
|
|
962
|
+
declare readonly $res: () => JoinRoomResult;
|
|
963
|
+
|
|
964
|
+
constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
|
|
965
|
+
this.command = args;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
export class DeleteRoom {
|
|
970
|
+
static readonly commandId = "DeleteRoom" as const;
|
|
971
|
+
readonly commandId = "DeleteRoom" as const;
|
|
972
|
+
readonly command: Omit<_DeleteRoom, "tx" | "createdAt">;
|
|
973
|
+
declare readonly $res: () => DeleteRoomResult;
|
|
974
|
+
|
|
975
|
+
constructor(args: Omit<_DeleteRoom, "tx" | "createdAt">) {
|
|
976
|
+
this.command = args;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
export class SetRoomName {
|
|
981
|
+
static readonly commandId = "SetRoomName" as const;
|
|
982
|
+
readonly commandId = "SetRoomName" as const;
|
|
983
|
+
readonly command: Omit<_SetRoomName, "tx" | "createdAt">;
|
|
984
|
+
declare readonly $res: () => void;
|
|
985
|
+
|
|
986
|
+
constructor(args: Omit<_SetRoomName, "tx" | "createdAt">) {
|
|
987
|
+
this.command = args;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export class DeleteRooms {
|
|
992
|
+
static readonly commandId = "DeleteRooms" as const;
|
|
993
|
+
readonly commandId = "DeleteRooms" as const;
|
|
994
|
+
readonly command: Omit<_DeleteRooms, "tx" | "createdAt">;
|
|
995
|
+
declare readonly $res: () => DeleteRoomsResult;
|
|
996
|
+
|
|
997
|
+
constructor(args: Omit<_DeleteRooms, "tx" | "createdAt">) {
|
|
998
|
+
this.command = args;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
export class SetRoomDescription {
|
|
1003
|
+
static readonly commandId = "SetRoomDescription" as const;
|
|
1004
|
+
readonly commandId = "SetRoomDescription" as const;
|
|
1005
|
+
readonly command: Omit<_SetRoomDescription, "tx" | "createdAt">;
|
|
1006
|
+
declare readonly $res: () => void;
|
|
1007
|
+
|
|
1008
|
+
constructor(args: Omit<_SetRoomDescription, "tx" | "createdAt">) {
|
|
1009
|
+
this.command = args;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export class DeleteWakeWatcher {
|
|
1014
|
+
static readonly commandId = "DeleteWakeWatcher" as const;
|
|
1015
|
+
readonly commandId = "DeleteWakeWatcher" as const;
|
|
1016
|
+
readonly command: Omit<_DeleteWakeWatcher, "tx" | "createdAt">;
|
|
1017
|
+
declare readonly $res: () => DeleteWakeWatcherResult;
|
|
1018
|
+
|
|
1019
|
+
constructor(args: Omit<_DeleteWakeWatcher, "tx" | "createdAt">) {
|
|
1020
|
+
this.command = args;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
export class DeleteWakeWatchers {
|
|
1025
|
+
static readonly commandId = "DeleteWakeWatchers" as const;
|
|
1026
|
+
readonly commandId = "DeleteWakeWatchers" as const;
|
|
1027
|
+
readonly command: Omit<_DeleteWakeWatchers, "tx" | "createdAt">;
|
|
1028
|
+
declare readonly $res: () => DeleteWakeWatchersResult;
|
|
1029
|
+
|
|
1030
|
+
constructor(args: Omit<_DeleteWakeWatchers, "tx" | "createdAt">) {
|
|
1031
|
+
this.command = args;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
|
|
958
1035
|
export class AckMessages {
|
|
959
1036
|
static readonly commandId = "AckMessages" as const;
|
|
960
1037
|
readonly commandId = "AckMessages" as const;
|
|
@@ -1142,93 +1219,16 @@ export class DeleteRoomMember {
|
|
|
1142
1219
|
}
|
|
1143
1220
|
}
|
|
1144
1221
|
|
|
1145
|
-
export class NotifyChannel {
|
|
1146
|
-
static readonly commandId = "NotifyChannel" as const;
|
|
1147
|
-
readonly commandId = "NotifyChannel" as const;
|
|
1148
|
-
readonly command: Omit<_NotifyChannel, "tx" | "createdAt">;
|
|
1149
|
-
declare readonly $res: () => void;
|
|
1150
|
-
|
|
1151
|
-
constructor(args: Omit<_NotifyChannel, "tx" | "createdAt">) {
|
|
1152
|
-
this.command = args;
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
export class DeleteRoom {
|
|
1157
|
-
static readonly commandId = "DeleteRoom" as const;
|
|
1158
|
-
readonly commandId = "DeleteRoom" as const;
|
|
1159
|
-
readonly command: Omit<_DeleteRoom, "tx" | "createdAt">;
|
|
1160
|
-
declare readonly $res: () => DeleteRoomResult;
|
|
1161
|
-
|
|
1162
|
-
constructor(args: Omit<_DeleteRoom, "tx" | "createdAt">) {
|
|
1163
|
-
this.command = args;
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
export class SetRoomName {
|
|
1168
|
-
static readonly commandId = "SetRoomName" as const;
|
|
1169
|
-
readonly commandId = "SetRoomName" as const;
|
|
1170
|
-
readonly command: Omit<_SetRoomName, "tx" | "createdAt">;
|
|
1171
|
-
declare readonly $res: () => void;
|
|
1172
|
-
|
|
1173
|
-
constructor(args: Omit<_SetRoomName, "tx" | "createdAt">) {
|
|
1174
|
-
this.command = args;
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
export class DeleteRooms {
|
|
1179
|
-
static readonly commandId = "DeleteRooms" as const;
|
|
1180
|
-
readonly commandId = "DeleteRooms" as const;
|
|
1181
|
-
readonly command: Omit<_DeleteRooms, "tx" | "createdAt">;
|
|
1182
|
-
declare readonly $res: () => DeleteRoomsResult;
|
|
1183
|
-
|
|
1184
|
-
constructor(args: Omit<_DeleteRooms, "tx" | "createdAt">) {
|
|
1185
|
-
this.command = args;
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
export class SetRoomDescription {
|
|
1190
|
-
static readonly commandId = "SetRoomDescription" as const;
|
|
1191
|
-
readonly commandId = "SetRoomDescription" as const;
|
|
1192
|
-
readonly command: Omit<_SetRoomDescription, "tx" | "createdAt">;
|
|
1193
|
-
declare readonly $res: () => void;
|
|
1194
|
-
|
|
1195
|
-
constructor(args: Omit<_SetRoomDescription, "tx" | "createdAt">) {
|
|
1196
|
-
this.command = args;
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
export class DeleteWakeWatcher {
|
|
1201
|
-
static readonly commandId = "DeleteWakeWatcher" as const;
|
|
1202
|
-
readonly commandId = "DeleteWakeWatcher" as const;
|
|
1203
|
-
readonly command: Omit<_DeleteWakeWatcher, "tx" | "createdAt">;
|
|
1204
|
-
declare readonly $res: () => DeleteWakeWatcherResult;
|
|
1205
|
-
|
|
1206
|
-
constructor(args: Omit<_DeleteWakeWatcher, "tx" | "createdAt">) {
|
|
1207
|
-
this.command = args;
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
export class DeleteWakeWatchers {
|
|
1212
|
-
static readonly commandId = "DeleteWakeWatchers" as const;
|
|
1213
|
-
readonly commandId = "DeleteWakeWatchers" as const;
|
|
1214
|
-
readonly command: Omit<_DeleteWakeWatchers, "tx" | "createdAt">;
|
|
1215
|
-
declare readonly $res: () => DeleteWakeWatchersResult;
|
|
1216
|
-
|
|
1217
|
-
constructor(args: Omit<_DeleteWakeWatchers, "tx" | "createdAt">) {
|
|
1218
|
-
this.command = args;
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
1222
|
// Item constructors
|
|
1223
1223
|
export const items = {
|
|
1224
1224
|
SandboxRun: (args: SandboxRun) => ({ item: args, itemType: "SandboxRun" }),
|
|
1225
1225
|
Message: (args: Message) => ({ item: args, itemType: "Message" }),
|
|
1226
1226
|
MessageRead: (args: MessageRead) => ({ item: args, itemType: "MessageRead" }),
|
|
1227
|
+
Room: (args: Room) => ({ item: args, itemType: "Room" }),
|
|
1228
|
+
WakeWatcher: (args: WakeWatcher) => ({ item: args, itemType: "WakeWatcher" }),
|
|
1227
1229
|
Session: (args: Session) => ({ item: args, itemType: "Session" }),
|
|
1228
1230
|
SessionNickname: (args: SessionNickname) => ({ item: args, itemType: "SessionNickname" }),
|
|
1229
1231
|
RoomMember: (args: RoomMember) => ({ item: args, itemType: "RoomMember" }),
|
|
1230
|
-
Room: (args: Room) => ({ item: args, itemType: "Room" }),
|
|
1231
|
-
WakeWatcher: (args: WakeWatcher) => ({ item: args, itemType: "WakeWatcher" }),
|
|
1232
1232
|
};
|
|
1233
1233
|
|
|
1234
1234
|
// Message events
|