@agent-marshal/marshal-pi 0.60.2 → 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 +329 -329
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
|
@@ -243,6 +243,45 @@ import type { WakeWatcher } from "./WakeWatcher";
|
|
|
243
243
|
import type { WakeWatcherCount } from "./WakeWatcherCount";
|
|
244
244
|
|
|
245
245
|
// Query classes
|
|
246
|
+
export class GetSandboxRunsByIds {
|
|
247
|
+
static readonly queryId = "GetSandboxRunsByIds" as const;
|
|
248
|
+
static readonly queryItemType = "SandboxRun" as const;
|
|
249
|
+
readonly queryId = "GetSandboxRunsByIds" as const;
|
|
250
|
+
readonly queryItemType = "SandboxRun" as const;
|
|
251
|
+
readonly query: Omit<_GetSandboxRunsByIds, "tx" | "createdAt">;
|
|
252
|
+
declare readonly $res: () => SandboxRun[];
|
|
253
|
+
|
|
254
|
+
constructor(args: Omit<_GetSandboxRunsByIds, "tx" | "createdAt">) {
|
|
255
|
+
this.query = args;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export class GetAllSandboxRuns {
|
|
260
|
+
static readonly queryId = "GetAllSandboxRuns" as const;
|
|
261
|
+
static readonly queryItemType = "SandboxRun" as const;
|
|
262
|
+
readonly queryId = "GetAllSandboxRuns" as const;
|
|
263
|
+
readonly queryItemType = "SandboxRun" as const;
|
|
264
|
+
readonly query: Omit<_GetAllSandboxRuns, "tx" | "createdAt">;
|
|
265
|
+
declare readonly $res: () => SandboxRun[];
|
|
266
|
+
|
|
267
|
+
constructor(args: Omit<_GetAllSandboxRuns, "tx" | "createdAt">) {
|
|
268
|
+
this.query = args;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export class GetSandboxRunsByQuery {
|
|
273
|
+
static readonly queryId = "GetSandboxRunsByQuery" as const;
|
|
274
|
+
static readonly queryItemType = "SandboxRun" as const;
|
|
275
|
+
readonly queryId = "GetSandboxRunsByQuery" as const;
|
|
276
|
+
readonly queryItemType = "SandboxRun" as const;
|
|
277
|
+
readonly query: Omit<_GetSandboxRunsByQuery, "tx" | "createdAt">;
|
|
278
|
+
declare readonly $res: () => SandboxRun[];
|
|
279
|
+
|
|
280
|
+
constructor(args: Omit<_GetSandboxRunsByQuery, "tx" | "createdAt">) {
|
|
281
|
+
this.query = args;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
246
285
|
export class GetMessagesByQuery {
|
|
247
286
|
static readonly queryId = "GetMessagesByQuery" as const;
|
|
248
287
|
static readonly queryItemType = "Message" as const;
|
|
@@ -321,6 +360,84 @@ export class GetAllMessageReads {
|
|
|
321
360
|
}
|
|
322
361
|
}
|
|
323
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
|
+
|
|
324
441
|
export class GetSessionsByQuery {
|
|
325
442
|
static readonly queryId = "GetSessionsByQuery" as const;
|
|
326
443
|
static readonly queryItemType = "Session" as const;
|
|
@@ -438,126 +555,42 @@ export class GetAllRoomMembers {
|
|
|
438
555
|
}
|
|
439
556
|
}
|
|
440
557
|
|
|
441
|
-
|
|
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
|
-
}
|
|
558
|
+
// View classes
|
|
518
559
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
static readonly
|
|
522
|
-
readonly
|
|
523
|
-
readonly
|
|
524
|
-
readonly
|
|
525
|
-
declare readonly $res: () => SandboxRun[];
|
|
560
|
+
// Report classes
|
|
561
|
+
export class GetSandboxRunById {
|
|
562
|
+
static readonly reportId = "GetSandboxRunById" as const;
|
|
563
|
+
readonly reportId = "GetSandboxRunById" as const;
|
|
564
|
+
readonly report: Omit<_GetSandboxRunById, "tx">;
|
|
565
|
+
declare readonly $res: () => SandboxRun | null;
|
|
526
566
|
|
|
527
|
-
constructor(args: Omit<
|
|
528
|
-
this.
|
|
567
|
+
constructor(args: Omit<_GetSandboxRunById, "tx">) {
|
|
568
|
+
this.report = args;
|
|
529
569
|
}
|
|
530
570
|
}
|
|
531
571
|
|
|
532
|
-
export class
|
|
533
|
-
static readonly
|
|
534
|
-
|
|
535
|
-
readonly
|
|
536
|
-
readonly
|
|
537
|
-
readonly query: Omit<_GetAllSandboxRuns, "tx" | "createdAt">;
|
|
538
|
-
declare readonly $res: () => SandboxRun[];
|
|
572
|
+
export class CountSandboxRuns {
|
|
573
|
+
static readonly reportId = "CountSandboxRuns" as const;
|
|
574
|
+
readonly reportId = "CountSandboxRuns" as const;
|
|
575
|
+
readonly report: Omit<_CountSandboxRuns, "tx">;
|
|
576
|
+
declare readonly $res: () => SandboxRunCount;
|
|
539
577
|
|
|
540
|
-
constructor(args: Omit<
|
|
541
|
-
this.
|
|
578
|
+
constructor(args: Omit<_CountSandboxRuns, "tx">) {
|
|
579
|
+
this.report = args;
|
|
542
580
|
}
|
|
543
581
|
}
|
|
544
582
|
|
|
545
|
-
export class
|
|
546
|
-
static readonly
|
|
547
|
-
|
|
548
|
-
readonly
|
|
549
|
-
readonly
|
|
550
|
-
readonly query: Omit<_GetSandboxRunsByQuery, "tx" | "createdAt">;
|
|
551
|
-
declare readonly $res: () => SandboxRun[];
|
|
583
|
+
export class CountAllSandboxRuns {
|
|
584
|
+
static readonly reportId = "CountAllSandboxRuns" as const;
|
|
585
|
+
readonly reportId = "CountAllSandboxRuns" as const;
|
|
586
|
+
readonly report: Omit<_CountAllSandboxRuns, "tx">;
|
|
587
|
+
declare readonly $res: () => SandboxRunCount;
|
|
552
588
|
|
|
553
|
-
constructor(args: Omit<
|
|
554
|
-
this.
|
|
589
|
+
constructor(args: Omit<_CountAllSandboxRuns, "tx">) {
|
|
590
|
+
this.report = args;
|
|
555
591
|
}
|
|
556
592
|
}
|
|
557
593
|
|
|
558
|
-
// View classes
|
|
559
|
-
|
|
560
|
-
// Report classes
|
|
561
594
|
export class GetMessageById {
|
|
562
595
|
static readonly reportId = "GetMessageById" as const;
|
|
563
596
|
readonly reportId = "GetMessageById" as const;
|
|
@@ -624,6 +657,72 @@ export class CountAllMessageReads {
|
|
|
624
657
|
}
|
|
625
658
|
}
|
|
626
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
|
+
|
|
627
726
|
export class GetSessionById {
|
|
628
727
|
static readonly reportId = "GetSessionById" as const;
|
|
629
728
|
readonly reportId = "GetSessionById" as const;
|
|
@@ -718,129 +817,41 @@ export class CountAllRoomMembers {
|
|
|
718
817
|
readonly report: Omit<_CountAllRoomMembers, "tx">;
|
|
719
818
|
declare readonly $res: () => RoomMemberCount;
|
|
720
819
|
|
|
721
|
-
constructor(args: Omit<_CountAllRoomMembers, "tx">) {
|
|
722
|
-
this.report = args;
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
|
|
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
|
-
export class GetSandboxRunById {
|
|
793
|
-
static readonly reportId = "GetSandboxRunById" as const;
|
|
794
|
-
readonly reportId = "GetSandboxRunById" as const;
|
|
795
|
-
readonly report: Omit<_GetSandboxRunById, "tx">;
|
|
796
|
-
declare readonly $res: () => SandboxRun | null;
|
|
797
|
-
|
|
798
|
-
constructor(args: Omit<_GetSandboxRunById, "tx">) {
|
|
799
|
-
this.report = args;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
export class CountSandboxRuns {
|
|
804
|
-
static readonly reportId = "CountSandboxRuns" as const;
|
|
805
|
-
readonly reportId = "CountSandboxRuns" as const;
|
|
806
|
-
readonly report: Omit<_CountSandboxRuns, "tx">;
|
|
807
|
-
declare readonly $res: () => SandboxRunCount;
|
|
808
|
-
|
|
809
|
-
constructor(args: Omit<_CountSandboxRuns, "tx">) {
|
|
820
|
+
constructor(args: Omit<_CountAllRoomMembers, "tx">) {
|
|
810
821
|
this.report = args;
|
|
811
822
|
}
|
|
812
823
|
}
|
|
813
824
|
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
readonly
|
|
817
|
-
readonly
|
|
818
|
-
|
|
825
|
+
// Command classes
|
|
826
|
+
export class ImportSandboxRun {
|
|
827
|
+
static readonly commandId = "ImportSandboxRun" as const;
|
|
828
|
+
readonly commandId = "ImportSandboxRun" as const;
|
|
829
|
+
readonly command: Omit<_ImportSandboxRun, "tx" | "createdAt">;
|
|
830
|
+
declare readonly $res: () => SandboxRunId;
|
|
819
831
|
|
|
820
|
-
constructor(args: Omit<
|
|
821
|
-
this.
|
|
832
|
+
constructor(args: Omit<_ImportSandboxRun, "tx" | "createdAt">) {
|
|
833
|
+
this.command = args;
|
|
822
834
|
}
|
|
823
835
|
}
|
|
824
836
|
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
readonly
|
|
829
|
-
readonly
|
|
830
|
-
declare readonly $res: () => LeaveRoomResult;
|
|
837
|
+
export class DeleteSandboxRuns {
|
|
838
|
+
static readonly commandId = "DeleteSandboxRuns" as const;
|
|
839
|
+
readonly commandId = "DeleteSandboxRuns" as const;
|
|
840
|
+
readonly command: Omit<_DeleteSandboxRuns, "tx" | "createdAt">;
|
|
841
|
+
declare readonly $res: () => DeleteSandboxRunsResult;
|
|
831
842
|
|
|
832
|
-
constructor(args: Omit<
|
|
843
|
+
constructor(args: Omit<_DeleteSandboxRuns, "tx" | "createdAt">) {
|
|
833
844
|
this.command = args;
|
|
834
845
|
}
|
|
835
846
|
}
|
|
836
847
|
|
|
837
|
-
export class
|
|
838
|
-
static readonly commandId = "
|
|
839
|
-
readonly commandId = "
|
|
840
|
-
readonly command: Omit<
|
|
841
|
-
declare readonly $res: () =>
|
|
848
|
+
export class DeleteSandboxRun {
|
|
849
|
+
static readonly commandId = "DeleteSandboxRun" as const;
|
|
850
|
+
readonly commandId = "DeleteSandboxRun" as const;
|
|
851
|
+
readonly command: Omit<_DeleteSandboxRun, "tx" | "createdAt">;
|
|
852
|
+
declare readonly $res: () => DeleteSandboxRunResult;
|
|
842
853
|
|
|
843
|
-
constructor(args: Omit<
|
|
854
|
+
constructor(args: Omit<_DeleteSandboxRun, "tx" | "createdAt">) {
|
|
844
855
|
this.command = args;
|
|
845
856
|
}
|
|
846
857
|
}
|
|
@@ -900,6 +911,17 @@ export class DeleteMessage {
|
|
|
900
911
|
}
|
|
901
912
|
}
|
|
902
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
|
+
|
|
903
925
|
export class DeleteMessageReads {
|
|
904
926
|
static readonly commandId = "DeleteMessageReads" as const;
|
|
905
927
|
readonly commandId = "DeleteMessageReads" as const;
|
|
@@ -922,6 +944,94 @@ export class DeleteMessageRead {
|
|
|
922
944
|
}
|
|
923
945
|
}
|
|
924
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
|
+
|
|
925
1035
|
export class AckMessages {
|
|
926
1036
|
static readonly commandId = "AckMessages" as const;
|
|
927
1037
|
readonly commandId = "AckMessages" as const;
|
|
@@ -1109,126 +1219,16 @@ export class DeleteRoomMember {
|
|
|
1109
1219
|
}
|
|
1110
1220
|
}
|
|
1111
1221
|
|
|
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;
|
|
1172
|
-
|
|
1173
|
-
constructor(args: Omit<_DeleteWakeWatcher, "tx" | "createdAt">) {
|
|
1174
|
-
this.command = args;
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
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;
|
|
1183
|
-
|
|
1184
|
-
constructor(args: Omit<_DeleteWakeWatchers, "tx" | "createdAt">) {
|
|
1185
|
-
this.command = args;
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
export class ImportSandboxRun {
|
|
1190
|
-
static readonly commandId = "ImportSandboxRun" as const;
|
|
1191
|
-
readonly commandId = "ImportSandboxRun" as const;
|
|
1192
|
-
readonly command: Omit<_ImportSandboxRun, "tx" | "createdAt">;
|
|
1193
|
-
declare readonly $res: () => SandboxRunId;
|
|
1194
|
-
|
|
1195
|
-
constructor(args: Omit<_ImportSandboxRun, "tx" | "createdAt">) {
|
|
1196
|
-
this.command = args;
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
export class DeleteSandboxRuns {
|
|
1201
|
-
static readonly commandId = "DeleteSandboxRuns" as const;
|
|
1202
|
-
readonly commandId = "DeleteSandboxRuns" as const;
|
|
1203
|
-
readonly command: Omit<_DeleteSandboxRuns, "tx" | "createdAt">;
|
|
1204
|
-
declare readonly $res: () => DeleteSandboxRunsResult;
|
|
1205
|
-
|
|
1206
|
-
constructor(args: Omit<_DeleteSandboxRuns, "tx" | "createdAt">) {
|
|
1207
|
-
this.command = args;
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
export class DeleteSandboxRun {
|
|
1212
|
-
static readonly commandId = "DeleteSandboxRun" as const;
|
|
1213
|
-
readonly commandId = "DeleteSandboxRun" as const;
|
|
1214
|
-
readonly command: Omit<_DeleteSandboxRun, "tx" | "createdAt">;
|
|
1215
|
-
declare readonly $res: () => DeleteSandboxRunResult;
|
|
1216
|
-
|
|
1217
|
-
constructor(args: Omit<_DeleteSandboxRun, "tx" | "createdAt">) {
|
|
1218
|
-
this.command = args;
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
1222
|
// Item constructors
|
|
1223
1223
|
export const items = {
|
|
1224
|
+
SandboxRun: (args: SandboxRun) => ({ item: args, itemType: "SandboxRun" }),
|
|
1224
1225
|
Message: (args: Message) => ({ item: args, itemType: "Message" }),
|
|
1225
1226
|
MessageRead: (args: MessageRead) => ({ item: args, itemType: "MessageRead" }),
|
|
1227
|
+
Room: (args: Room) => ({ item: args, itemType: "Room" }),
|
|
1228
|
+
WakeWatcher: (args: WakeWatcher) => ({ item: args, itemType: "WakeWatcher" }),
|
|
1226
1229
|
Session: (args: Session) => ({ item: args, itemType: "Session" }),
|
|
1227
1230
|
SessionNickname: (args: SessionNickname) => ({ item: args, itemType: "SessionNickname" }),
|
|
1228
1231
|
RoomMember: (args: RoomMember) => ({ item: args, itemType: "RoomMember" }),
|
|
1229
|
-
Room: (args: Room) => ({ item: args, itemType: "Room" }),
|
|
1230
|
-
WakeWatcher: (args: WakeWatcher) => ({ item: args, itemType: "WakeWatcher" }),
|
|
1231
|
-
SandboxRun: (args: SandboxRun) => ({ item: args, itemType: "SandboxRun" }),
|
|
1232
1232
|
};
|
|
1233
1233
|
|
|
1234
1234
|
// Message events
|