@agent-marshal/marshal-prime-agent 0.55.1 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -50,5 +50,5 @@
50
50
  "test": "bun test"
51
51
  },
52
52
  "type": "module",
53
- "version": "0.55.1"
53
+ "version": "0.56.0"
54
54
  }
@@ -127,4 +127,16 @@ project?: string | null,
127
127
  * channels OFF still can't render a push, so the message is queued to
128
128
  * the inbox (delivered_live = false) rather than claimed as live.
129
129
  */
130
- channelsEnabled?: boolean | null, id: SessionId, };
130
+ channelsEnabled?: boolean | null,
131
+ /**
132
+ * Whether this session's client acks each live push itself, once it has
133
+ * passed it on (the Claude shim: once it has flushed it to Claude's
134
+ * stdin). When set, `SendMessage` leaves a pushed message unread until
135
+ * that ack instead of marking it read as soon as the push is handed to
136
+ * the connection, so a push lost before the client gets it (a connection
137
+ * that stops being read and then dies) comes back in the next inbox
138
+ * pull. What happens after the client's ack is past the daemon's view.
139
+ * `None` = a client that doesn't ack pushes; the daemon marks them read
140
+ * for it.
141
+ */
142
+ acksPushes?: boolean | null, id: SessionId, };
@@ -6,4 +6,4 @@ import type { SessionId } from "./SessionId";
6
6
  import type { StringFilter } from "./StringFilter";
7
7
  import type { Unfilterable } from "./Unfilterable";
8
8
 
9
- export type SessionQuery = { clientId?: IdFilter<ClientId> | null, pid?: NumericFilter<number> | null, cwd?: StringFilter | null, gitBranch?: StringFilter | null, currentTask?: StringFilter | null, sessionName?: StringFilter | null, activity?: StringFilter | null, kind?: StringFilter | null, connectedAt?: NumericFilter<bigint> | null, lastActivityAt?: NumericFilter<bigint> | null, lastTool?: StringFilter | null, lastToolAt?: NumericFilter<bigint> | null, operator?: StringFilter | null, host?: Unfilterable | null, project?: StringFilter | null, channelsEnabled?: boolean | null, id?: IdFilter<SessionId> | null, };
9
+ export type SessionQuery = { clientId?: IdFilter<ClientId> | null, pid?: NumericFilter<number> | null, cwd?: StringFilter | null, gitBranch?: StringFilter | null, currentTask?: StringFilter | null, sessionName?: StringFilter | null, activity?: StringFilter | null, kind?: StringFilter | null, connectedAt?: NumericFilter<bigint> | null, lastActivityAt?: NumericFilter<bigint> | null, lastTool?: StringFilter | null, lastToolAt?: NumericFilter<bigint> | null, operator?: StringFilter | null, host?: Unfilterable | null, project?: StringFilter | null, channelsEnabled?: boolean | null, acksPushes?: boolean | null, id?: IdFilter<SessionId> | null, };
@@ -217,119 +217,80 @@ import type { SetSessionLastToolAt as _SetSessionLastToolAt } from "./SetSession
217
217
  import type { SetSessionSessionName as _SetSessionSessionName } from "./SetSessionSessionName";
218
218
 
219
219
  // Query classes
220
- export class GetSessionNicknamesByQuery {
221
- static readonly queryId = "GetSessionNicknamesByQuery" as const;
222
- static readonly queryItemType = "SessionNickname" as const;
223
- readonly queryId = "GetSessionNicknamesByQuery" as const;
224
- readonly queryItemType = "SessionNickname" as const;
225
- readonly query: Omit<_GetSessionNicknamesByQuery, "tx" | "createdAt">;
226
- declare readonly $res: () => SessionNickname[];
227
-
228
- constructor(args: Omit<_GetSessionNicknamesByQuery, "tx" | "createdAt">) {
229
- this.query = args;
230
- }
231
- }
232
-
233
- export class GetSessionNicknamesByIds {
234
- static readonly queryId = "GetSessionNicknamesByIds" as const;
235
- static readonly queryItemType = "SessionNickname" as const;
236
- readonly queryId = "GetSessionNicknamesByIds" as const;
237
- readonly queryItemType = "SessionNickname" as const;
238
- readonly query: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">;
239
- declare readonly $res: () => SessionNickname[];
240
-
241
- constructor(args: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">) {
242
- this.query = args;
243
- }
244
- }
245
-
246
- export class GetAllSessionNicknames {
247
- static readonly queryId = "GetAllSessionNicknames" as const;
248
- static readonly queryItemType = "SessionNickname" as const;
249
- readonly queryId = "GetAllSessionNicknames" as const;
250
- readonly queryItemType = "SessionNickname" as const;
251
- readonly query: Omit<_GetAllSessionNicknames, "tx" | "createdAt">;
252
- declare readonly $res: () => SessionNickname[];
253
-
254
- constructor(args: Omit<_GetAllSessionNicknames, "tx" | "createdAt">) {
255
- this.query = args;
256
- }
257
- }
258
-
259
- export class GetRoomMembersByQuery {
260
- static readonly queryId = "GetRoomMembersByQuery" as const;
261
- static readonly queryItemType = "RoomMember" as const;
262
- readonly queryId = "GetRoomMembersByQuery" as const;
263
- readonly queryItemType = "RoomMember" as const;
264
- readonly query: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">;
265
- declare readonly $res: () => RoomMember[];
220
+ export class GetSessionsByQuery {
221
+ static readonly queryId = "GetSessionsByQuery" as const;
222
+ static readonly queryItemType = "Session" as const;
223
+ readonly queryId = "GetSessionsByQuery" as const;
224
+ readonly queryItemType = "Session" as const;
225
+ readonly query: Omit<_GetSessionsByQuery, "tx" | "createdAt">;
226
+ declare readonly $res: () => Session[];
266
227
 
267
- constructor(args: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">) {
228
+ constructor(args: Omit<_GetSessionsByQuery, "tx" | "createdAt">) {
268
229
  this.query = args;
269
230
  }
270
231
  }
271
232
 
272
- export class GetRoomMembersByIds {
273
- static readonly queryId = "GetRoomMembersByIds" as const;
274
- static readonly queryItemType = "RoomMember" as const;
275
- readonly queryId = "GetRoomMembersByIds" as const;
276
- readonly queryItemType = "RoomMember" as const;
277
- readonly query: Omit<_GetRoomMembersByIds, "tx" | "createdAt">;
278
- declare readonly $res: () => RoomMember[];
233
+ export class GetSessionsByIds {
234
+ static readonly queryId = "GetSessionsByIds" as const;
235
+ static readonly queryItemType = "Session" as const;
236
+ readonly queryId = "GetSessionsByIds" as const;
237
+ readonly queryItemType = "Session" as const;
238
+ readonly query: Omit<_GetSessionsByIds, "tx" | "createdAt">;
239
+ declare readonly $res: () => Session[];
279
240
 
280
- constructor(args: Omit<_GetRoomMembersByIds, "tx" | "createdAt">) {
241
+ constructor(args: Omit<_GetSessionsByIds, "tx" | "createdAt">) {
281
242
  this.query = args;
282
243
  }
283
244
  }
284
245
 
285
- export class GetAllRoomMembers {
286
- static readonly queryId = "GetAllRoomMembers" as const;
287
- static readonly queryItemType = "RoomMember" as const;
288
- readonly queryId = "GetAllRoomMembers" as const;
289
- readonly queryItemType = "RoomMember" as const;
290
- readonly query: Omit<_GetAllRoomMembers, "tx" | "createdAt">;
291
- declare readonly $res: () => RoomMember[];
246
+ export class GetAllSessions {
247
+ static readonly queryId = "GetAllSessions" as const;
248
+ static readonly queryItemType = "Session" as const;
249
+ readonly queryId = "GetAllSessions" as const;
250
+ readonly queryItemType = "Session" as const;
251
+ readonly query: Omit<_GetAllSessions, "tx" | "createdAt">;
252
+ declare readonly $res: () => Session[];
292
253
 
293
- constructor(args: Omit<_GetAllRoomMembers, "tx" | "createdAt">) {
254
+ constructor(args: Omit<_GetAllSessions, "tx" | "createdAt">) {
294
255
  this.query = args;
295
256
  }
296
257
  }
297
258
 
298
- export class GetRoomsByQuery {
299
- static readonly queryId = "GetRoomsByQuery" as const;
300
- static readonly queryItemType = "Room" as const;
301
- readonly queryId = "GetRoomsByQuery" as const;
302
- readonly queryItemType = "Room" as const;
303
- readonly query: Omit<_GetRoomsByQuery, "tx" | "createdAt">;
304
- declare readonly $res: () => Room[];
259
+ export class GetMessageReadsByQuery {
260
+ static readonly queryId = "GetMessageReadsByQuery" as const;
261
+ static readonly queryItemType = "MessageRead" as const;
262
+ readonly queryId = "GetMessageReadsByQuery" as const;
263
+ readonly queryItemType = "MessageRead" as const;
264
+ readonly query: Omit<_GetMessageReadsByQuery, "tx" | "createdAt">;
265
+ declare readonly $res: () => MessageRead[];
305
266
 
306
- constructor(args: Omit<_GetRoomsByQuery, "tx" | "createdAt">) {
267
+ constructor(args: Omit<_GetMessageReadsByQuery, "tx" | "createdAt">) {
307
268
  this.query = args;
308
269
  }
309
270
  }
310
271
 
311
- export class GetRoomsByIds {
312
- static readonly queryId = "GetRoomsByIds" as const;
313
- static readonly queryItemType = "Room" as const;
314
- readonly queryId = "GetRoomsByIds" as const;
315
- readonly queryItemType = "Room" as const;
316
- readonly query: Omit<_GetRoomsByIds, "tx" | "createdAt">;
317
- declare readonly $res: () => Room[];
272
+ export class GetMessageReadsByIds {
273
+ static readonly queryId = "GetMessageReadsByIds" as const;
274
+ static readonly queryItemType = "MessageRead" as const;
275
+ readonly queryId = "GetMessageReadsByIds" as const;
276
+ readonly queryItemType = "MessageRead" as const;
277
+ readonly query: Omit<_GetMessageReadsByIds, "tx" | "createdAt">;
278
+ declare readonly $res: () => MessageRead[];
318
279
 
319
- constructor(args: Omit<_GetRoomsByIds, "tx" | "createdAt">) {
280
+ constructor(args: Omit<_GetMessageReadsByIds, "tx" | "createdAt">) {
320
281
  this.query = args;
321
282
  }
322
283
  }
323
284
 
324
- export class GetAllRooms {
325
- static readonly queryId = "GetAllRooms" as const;
326
- static readonly queryItemType = "Room" as const;
327
- readonly queryId = "GetAllRooms" as const;
328
- readonly queryItemType = "Room" as const;
329
- readonly query: Omit<_GetAllRooms, "tx" | "createdAt">;
330
- declare readonly $res: () => Room[];
285
+ export class GetAllMessageReads {
286
+ static readonly queryId = "GetAllMessageReads" as const;
287
+ static readonly queryItemType = "MessageRead" as const;
288
+ readonly queryId = "GetAllMessageReads" as const;
289
+ readonly queryItemType = "MessageRead" as const;
290
+ readonly query: Omit<_GetAllMessageReads, "tx" | "createdAt">;
291
+ declare readonly $res: () => MessageRead[];
331
292
 
332
- constructor(args: Omit<_GetAllRooms, "tx" | "createdAt">) {
293
+ constructor(args: Omit<_GetAllMessageReads, "tx" | "createdAt">) {
333
294
  this.query = args;
334
295
  }
335
296
  }
@@ -412,182 +373,188 @@ export class GetAllMessages {
412
373
  }
413
374
  }
414
375
 
415
- export class GetSessionsByQuery {
416
- static readonly queryId = "GetSessionsByQuery" as const;
417
- static readonly queryItemType = "Session" as const;
418
- readonly queryId = "GetSessionsByQuery" as const;
419
- readonly queryItemType = "Session" as const;
420
- readonly query: Omit<_GetSessionsByQuery, "tx" | "createdAt">;
421
- declare readonly $res: () => Session[];
376
+ export class GetSessionNicknamesByQuery {
377
+ static readonly queryId = "GetSessionNicknamesByQuery" as const;
378
+ static readonly queryItemType = "SessionNickname" as const;
379
+ readonly queryId = "GetSessionNicknamesByQuery" as const;
380
+ readonly queryItemType = "SessionNickname" as const;
381
+ readonly query: Omit<_GetSessionNicknamesByQuery, "tx" | "createdAt">;
382
+ declare readonly $res: () => SessionNickname[];
422
383
 
423
- constructor(args: Omit<_GetSessionsByQuery, "tx" | "createdAt">) {
384
+ constructor(args: Omit<_GetSessionNicknamesByQuery, "tx" | "createdAt">) {
424
385
  this.query = args;
425
386
  }
426
387
  }
427
388
 
428
- export class GetSessionsByIds {
429
- static readonly queryId = "GetSessionsByIds" as const;
430
- static readonly queryItemType = "Session" as const;
431
- readonly queryId = "GetSessionsByIds" as const;
432
- readonly queryItemType = "Session" as const;
433
- readonly query: Omit<_GetSessionsByIds, "tx" | "createdAt">;
434
- declare readonly $res: () => Session[];
389
+ export class GetSessionNicknamesByIds {
390
+ static readonly queryId = "GetSessionNicknamesByIds" as const;
391
+ static readonly queryItemType = "SessionNickname" as const;
392
+ readonly queryId = "GetSessionNicknamesByIds" as const;
393
+ readonly queryItemType = "SessionNickname" as const;
394
+ readonly query: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">;
395
+ declare readonly $res: () => SessionNickname[];
435
396
 
436
- constructor(args: Omit<_GetSessionsByIds, "tx" | "createdAt">) {
397
+ constructor(args: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">) {
437
398
  this.query = args;
438
399
  }
439
400
  }
440
401
 
441
- export class GetAllSessions {
442
- static readonly queryId = "GetAllSessions" as const;
443
- static readonly queryItemType = "Session" as const;
444
- readonly queryId = "GetAllSessions" as const;
445
- readonly queryItemType = "Session" as const;
446
- readonly query: Omit<_GetAllSessions, "tx" | "createdAt">;
447
- declare readonly $res: () => Session[];
402
+ export class GetAllSessionNicknames {
403
+ static readonly queryId = "GetAllSessionNicknames" as const;
404
+ static readonly queryItemType = "SessionNickname" as const;
405
+ readonly queryId = "GetAllSessionNicknames" as const;
406
+ readonly queryItemType = "SessionNickname" as const;
407
+ readonly query: Omit<_GetAllSessionNicknames, "tx" | "createdAt">;
408
+ declare readonly $res: () => SessionNickname[];
448
409
 
449
- constructor(args: Omit<_GetAllSessions, "tx" | "createdAt">) {
410
+ constructor(args: Omit<_GetAllSessionNicknames, "tx" | "createdAt">) {
450
411
  this.query = args;
451
412
  }
452
413
  }
453
414
 
454
- export class GetMessageReadsByQuery {
455
- static readonly queryId = "GetMessageReadsByQuery" as const;
456
- static readonly queryItemType = "MessageRead" as const;
457
- readonly queryId = "GetMessageReadsByQuery" as const;
458
- readonly queryItemType = "MessageRead" as const;
459
- readonly query: Omit<_GetMessageReadsByQuery, "tx" | "createdAt">;
460
- declare readonly $res: () => MessageRead[];
415
+ export class GetRoomMembersByQuery {
416
+ static readonly queryId = "GetRoomMembersByQuery" as const;
417
+ static readonly queryItemType = "RoomMember" as const;
418
+ readonly queryId = "GetRoomMembersByQuery" as const;
419
+ readonly queryItemType = "RoomMember" as const;
420
+ readonly query: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">;
421
+ declare readonly $res: () => RoomMember[];
461
422
 
462
- constructor(args: Omit<_GetMessageReadsByQuery, "tx" | "createdAt">) {
423
+ constructor(args: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">) {
463
424
  this.query = args;
464
425
  }
465
426
  }
466
427
 
467
- export class GetMessageReadsByIds {
468
- static readonly queryId = "GetMessageReadsByIds" as const;
469
- static readonly queryItemType = "MessageRead" as const;
470
- readonly queryId = "GetMessageReadsByIds" as const;
471
- readonly queryItemType = "MessageRead" as const;
472
- readonly query: Omit<_GetMessageReadsByIds, "tx" | "createdAt">;
473
- declare readonly $res: () => MessageRead[];
428
+ export class GetRoomMembersByIds {
429
+ static readonly queryId = "GetRoomMembersByIds" as const;
430
+ static readonly queryItemType = "RoomMember" as const;
431
+ readonly queryId = "GetRoomMembersByIds" as const;
432
+ readonly queryItemType = "RoomMember" as const;
433
+ readonly query: Omit<_GetRoomMembersByIds, "tx" | "createdAt">;
434
+ declare readonly $res: () => RoomMember[];
474
435
 
475
- constructor(args: Omit<_GetMessageReadsByIds, "tx" | "createdAt">) {
436
+ constructor(args: Omit<_GetRoomMembersByIds, "tx" | "createdAt">) {
476
437
  this.query = args;
477
438
  }
478
439
  }
479
440
 
480
- export class GetAllMessageReads {
481
- static readonly queryId = "GetAllMessageReads" as const;
482
- static readonly queryItemType = "MessageRead" as const;
483
- readonly queryId = "GetAllMessageReads" as const;
484
- readonly queryItemType = "MessageRead" as const;
485
- readonly query: Omit<_GetAllMessageReads, "tx" | "createdAt">;
486
- declare readonly $res: () => MessageRead[];
441
+ export class GetAllRoomMembers {
442
+ static readonly queryId = "GetAllRoomMembers" as const;
443
+ static readonly queryItemType = "RoomMember" as const;
444
+ readonly queryId = "GetAllRoomMembers" as const;
445
+ readonly queryItemType = "RoomMember" as const;
446
+ readonly query: Omit<_GetAllRoomMembers, "tx" | "createdAt">;
447
+ declare readonly $res: () => RoomMember[];
487
448
 
488
- constructor(args: Omit<_GetAllMessageReads, "tx" | "createdAt">) {
449
+ constructor(args: Omit<_GetAllRoomMembers, "tx" | "createdAt">) {
489
450
  this.query = args;
490
451
  }
491
452
  }
492
453
 
493
- // View classes
494
-
495
- // Report classes
496
- export class GetSessionNicknameById {
497
- static readonly reportId = "GetSessionNicknameById" as const;
498
- readonly reportId = "GetSessionNicknameById" as const;
499
- readonly report: Omit<_GetSessionNicknameById, "tx">;
500
- declare readonly $res: () => SessionNickname | null;
454
+ export class GetRoomsByQuery {
455
+ static readonly queryId = "GetRoomsByQuery" as const;
456
+ static readonly queryItemType = "Room" as const;
457
+ readonly queryId = "GetRoomsByQuery" as const;
458
+ readonly queryItemType = "Room" as const;
459
+ readonly query: Omit<_GetRoomsByQuery, "tx" | "createdAt">;
460
+ declare readonly $res: () => Room[];
501
461
 
502
- constructor(args: Omit<_GetSessionNicknameById, "tx">) {
503
- this.report = args;
462
+ constructor(args: Omit<_GetRoomsByQuery, "tx" | "createdAt">) {
463
+ this.query = args;
504
464
  }
505
465
  }
506
466
 
507
- export class CountSessionNicknames {
508
- static readonly reportId = "CountSessionNicknames" as const;
509
- readonly reportId = "CountSessionNicknames" as const;
510
- readonly report: Omit<_CountSessionNicknames, "tx">;
511
- declare readonly $res: () => SessionNicknameCount;
467
+ export class GetRoomsByIds {
468
+ static readonly queryId = "GetRoomsByIds" as const;
469
+ static readonly queryItemType = "Room" as const;
470
+ readonly queryId = "GetRoomsByIds" as const;
471
+ readonly queryItemType = "Room" as const;
472
+ readonly query: Omit<_GetRoomsByIds, "tx" | "createdAt">;
473
+ declare readonly $res: () => Room[];
512
474
 
513
- constructor(args: Omit<_CountSessionNicknames, "tx">) {
514
- this.report = args;
475
+ constructor(args: Omit<_GetRoomsByIds, "tx" | "createdAt">) {
476
+ this.query = args;
515
477
  }
516
478
  }
517
479
 
518
- export class CountAllSessionNicknames {
519
- static readonly reportId = "CountAllSessionNicknames" as const;
520
- readonly reportId = "CountAllSessionNicknames" as const;
521
- readonly report: Omit<_CountAllSessionNicknames, "tx">;
522
- declare readonly $res: () => SessionNicknameCount;
480
+ export class GetAllRooms {
481
+ static readonly queryId = "GetAllRooms" as const;
482
+ static readonly queryItemType = "Room" as const;
483
+ readonly queryId = "GetAllRooms" as const;
484
+ readonly queryItemType = "Room" as const;
485
+ readonly query: Omit<_GetAllRooms, "tx" | "createdAt">;
486
+ declare readonly $res: () => Room[];
523
487
 
524
- constructor(args: Omit<_CountAllSessionNicknames, "tx">) {
525
- this.report = args;
488
+ constructor(args: Omit<_GetAllRooms, "tx" | "createdAt">) {
489
+ this.query = args;
526
490
  }
527
491
  }
528
492
 
529
- export class GetRoomMemberById {
530
- static readonly reportId = "GetRoomMemberById" as const;
531
- readonly reportId = "GetRoomMemberById" as const;
532
- readonly report: Omit<_GetRoomMemberById, "tx">;
533
- declare readonly $res: () => RoomMember | null;
493
+ // View classes
534
494
 
535
- constructor(args: Omit<_GetRoomMemberById, "tx">) {
495
+ // Report classes
496
+ export class GetSessionById {
497
+ static readonly reportId = "GetSessionById" as const;
498
+ readonly reportId = "GetSessionById" as const;
499
+ readonly report: Omit<_GetSessionById, "tx">;
500
+ declare readonly $res: () => Session | null;
501
+
502
+ constructor(args: Omit<_GetSessionById, "tx">) {
536
503
  this.report = args;
537
504
  }
538
505
  }
539
506
 
540
- export class CountRoomMembers {
541
- static readonly reportId = "CountRoomMembers" as const;
542
- readonly reportId = "CountRoomMembers" as const;
543
- readonly report: Omit<_CountRoomMembers, "tx">;
544
- declare readonly $res: () => RoomMemberCount;
507
+ export class CountSessions {
508
+ static readonly reportId = "CountSessions" as const;
509
+ readonly reportId = "CountSessions" as const;
510
+ readonly report: Omit<_CountSessions, "tx">;
511
+ declare readonly $res: () => SessionCount;
545
512
 
546
- constructor(args: Omit<_CountRoomMembers, "tx">) {
513
+ constructor(args: Omit<_CountSessions, "tx">) {
547
514
  this.report = args;
548
515
  }
549
516
  }
550
517
 
551
- export class CountAllRoomMembers {
552
- static readonly reportId = "CountAllRoomMembers" as const;
553
- readonly reportId = "CountAllRoomMembers" as const;
554
- readonly report: Omit<_CountAllRoomMembers, "tx">;
555
- declare readonly $res: () => RoomMemberCount;
518
+ export class CountAllSessions {
519
+ static readonly reportId = "CountAllSessions" as const;
520
+ readonly reportId = "CountAllSessions" as const;
521
+ readonly report: Omit<_CountAllSessions, "tx">;
522
+ declare readonly $res: () => SessionCount;
556
523
 
557
- constructor(args: Omit<_CountAllRoomMembers, "tx">) {
524
+ constructor(args: Omit<_CountAllSessions, "tx">) {
558
525
  this.report = args;
559
526
  }
560
527
  }
561
528
 
562
- export class GetRoomById {
563
- static readonly reportId = "GetRoomById" as const;
564
- readonly reportId = "GetRoomById" as const;
565
- readonly report: Omit<_GetRoomById, "tx">;
566
- declare readonly $res: () => Room | null;
529
+ export class GetMessageReadById {
530
+ static readonly reportId = "GetMessageReadById" as const;
531
+ readonly reportId = "GetMessageReadById" as const;
532
+ readonly report: Omit<_GetMessageReadById, "tx">;
533
+ declare readonly $res: () => MessageRead | null;
567
534
 
568
- constructor(args: Omit<_GetRoomById, "tx">) {
535
+ constructor(args: Omit<_GetMessageReadById, "tx">) {
569
536
  this.report = args;
570
537
  }
571
538
  }
572
539
 
573
- export class CountRooms {
574
- static readonly reportId = "CountRooms" as const;
575
- readonly reportId = "CountRooms" as const;
576
- readonly report: Omit<_CountRooms, "tx">;
577
- declare readonly $res: () => RoomCount;
540
+ export class CountMessageReads {
541
+ static readonly reportId = "CountMessageReads" as const;
542
+ readonly reportId = "CountMessageReads" as const;
543
+ readonly report: Omit<_CountMessageReads, "tx">;
544
+ declare readonly $res: () => MessageReadCount;
578
545
 
579
- constructor(args: Omit<_CountRooms, "tx">) {
546
+ constructor(args: Omit<_CountMessageReads, "tx">) {
580
547
  this.report = args;
581
548
  }
582
549
  }
583
550
 
584
- export class CountAllRooms {
585
- static readonly reportId = "CountAllRooms" as const;
586
- readonly reportId = "CountAllRooms" as const;
587
- readonly report: Omit<_CountAllRooms, "tx">;
588
- declare readonly $res: () => RoomCount;
551
+ export class CountAllMessageReads {
552
+ static readonly reportId = "CountAllMessageReads" as const;
553
+ readonly reportId = "CountAllMessageReads" as const;
554
+ readonly report: Omit<_CountAllMessageReads, "tx">;
555
+ declare readonly $res: () => MessageReadCount;
589
556
 
590
- constructor(args: Omit<_CountAllRooms, "tx">) {
557
+ constructor(args: Omit<_CountAllMessageReads, "tx">) {
591
558
  this.report = args;
592
559
  }
593
560
  }
@@ -658,212 +625,223 @@ export class CountAllMessages {
658
625
  }
659
626
  }
660
627
 
661
- export class GetSessionById {
662
- static readonly reportId = "GetSessionById" as const;
663
- readonly reportId = "GetSessionById" as const;
664
- readonly report: Omit<_GetSessionById, "tx">;
665
- declare readonly $res: () => Session | null;
628
+ export class GetSessionNicknameById {
629
+ static readonly reportId = "GetSessionNicknameById" as const;
630
+ readonly reportId = "GetSessionNicknameById" as const;
631
+ readonly report: Omit<_GetSessionNicknameById, "tx">;
632
+ declare readonly $res: () => SessionNickname | null;
666
633
 
667
- constructor(args: Omit<_GetSessionById, "tx">) {
634
+ constructor(args: Omit<_GetSessionNicknameById, "tx">) {
668
635
  this.report = args;
669
636
  }
670
637
  }
671
638
 
672
- export class CountSessions {
673
- static readonly reportId = "CountSessions" as const;
674
- readonly reportId = "CountSessions" as const;
675
- readonly report: Omit<_CountSessions, "tx">;
676
- declare readonly $res: () => SessionCount;
639
+ export class CountSessionNicknames {
640
+ static readonly reportId = "CountSessionNicknames" as const;
641
+ readonly reportId = "CountSessionNicknames" as const;
642
+ readonly report: Omit<_CountSessionNicknames, "tx">;
643
+ declare readonly $res: () => SessionNicknameCount;
677
644
 
678
- constructor(args: Omit<_CountSessions, "tx">) {
645
+ constructor(args: Omit<_CountSessionNicknames, "tx">) {
679
646
  this.report = args;
680
647
  }
681
648
  }
682
649
 
683
- export class CountAllSessions {
684
- static readonly reportId = "CountAllSessions" as const;
685
- readonly reportId = "CountAllSessions" as const;
686
- readonly report: Omit<_CountAllSessions, "tx">;
687
- declare readonly $res: () => SessionCount;
650
+ export class CountAllSessionNicknames {
651
+ static readonly reportId = "CountAllSessionNicknames" as const;
652
+ readonly reportId = "CountAllSessionNicknames" as const;
653
+ readonly report: Omit<_CountAllSessionNicknames, "tx">;
654
+ declare readonly $res: () => SessionNicknameCount;
688
655
 
689
- constructor(args: Omit<_CountAllSessions, "tx">) {
656
+ constructor(args: Omit<_CountAllSessionNicknames, "tx">) {
690
657
  this.report = args;
691
658
  }
692
659
  }
693
660
 
694
- export class GetMessageReadById {
695
- static readonly reportId = "GetMessageReadById" as const;
696
- readonly reportId = "GetMessageReadById" as const;
697
- readonly report: Omit<_GetMessageReadById, "tx">;
698
- declare readonly $res: () => MessageRead | null;
661
+ export class GetRoomMemberById {
662
+ static readonly reportId = "GetRoomMemberById" as const;
663
+ readonly reportId = "GetRoomMemberById" as const;
664
+ readonly report: Omit<_GetRoomMemberById, "tx">;
665
+ declare readonly $res: () => RoomMember | null;
699
666
 
700
- constructor(args: Omit<_GetMessageReadById, "tx">) {
667
+ constructor(args: Omit<_GetRoomMemberById, "tx">) {
701
668
  this.report = args;
702
669
  }
703
670
  }
704
671
 
705
- export class CountMessageReads {
706
- static readonly reportId = "CountMessageReads" as const;
707
- readonly reportId = "CountMessageReads" as const;
708
- readonly report: Omit<_CountMessageReads, "tx">;
709
- declare readonly $res: () => MessageReadCount;
672
+ export class CountRoomMembers {
673
+ static readonly reportId = "CountRoomMembers" as const;
674
+ readonly reportId = "CountRoomMembers" as const;
675
+ readonly report: Omit<_CountRoomMembers, "tx">;
676
+ declare readonly $res: () => RoomMemberCount;
710
677
 
711
- constructor(args: Omit<_CountMessageReads, "tx">) {
678
+ constructor(args: Omit<_CountRoomMembers, "tx">) {
712
679
  this.report = args;
713
680
  }
714
681
  }
715
682
 
716
- export class CountAllMessageReads {
717
- static readonly reportId = "CountAllMessageReads" as const;
718
- readonly reportId = "CountAllMessageReads" as const;
719
- readonly report: Omit<_CountAllMessageReads, "tx">;
720
- declare readonly $res: () => MessageReadCount;
683
+ export class CountAllRoomMembers {
684
+ static readonly reportId = "CountAllRoomMembers" as const;
685
+ readonly reportId = "CountAllRoomMembers" as const;
686
+ readonly report: Omit<_CountAllRoomMembers, "tx">;
687
+ declare readonly $res: () => RoomMemberCount;
721
688
 
722
- constructor(args: Omit<_CountAllMessageReads, "tx">) {
689
+ constructor(args: Omit<_CountAllRoomMembers, "tx">) {
723
690
  this.report = args;
724
691
  }
725
692
  }
726
693
 
727
- // Command classes
728
- export class DeleteSessionNickname {
729
- static readonly commandId = "DeleteSessionNickname" as const;
730
- readonly commandId = "DeleteSessionNickname" as const;
731
- readonly command: Omit<_DeleteSessionNickname, "tx" | "createdAt">;
732
- declare readonly $res: () => DeleteSessionNicknameResult;
694
+ export class GetRoomById {
695
+ static readonly reportId = "GetRoomById" as const;
696
+ readonly reportId = "GetRoomById" as const;
697
+ readonly report: Omit<_GetRoomById, "tx">;
698
+ declare readonly $res: () => Room | null;
733
699
 
734
- constructor(args: Omit<_DeleteSessionNickname, "tx" | "createdAt">) {
735
- this.command = args;
700
+ constructor(args: Omit<_GetRoomById, "tx">) {
701
+ this.report = args;
736
702
  }
737
703
  }
738
704
 
739
- export class DeleteSessionNicknames {
740
- static readonly commandId = "DeleteSessionNicknames" as const;
741
- readonly commandId = "DeleteSessionNicknames" as const;
742
- readonly command: Omit<_DeleteSessionNicknames, "tx" | "createdAt">;
743
- declare readonly $res: () => DeleteSessionNicknamesResult;
705
+ export class CountRooms {
706
+ static readonly reportId = "CountRooms" as const;
707
+ readonly reportId = "CountRooms" as const;
708
+ readonly report: Omit<_CountRooms, "tx">;
709
+ declare readonly $res: () => RoomCount;
744
710
 
745
- constructor(args: Omit<_DeleteSessionNicknames, "tx" | "createdAt">) {
746
- this.command = args;
711
+ constructor(args: Omit<_CountRooms, "tx">) {
712
+ this.report = args;
747
713
  }
748
714
  }
749
715
 
750
- export class AckMessages {
751
- static readonly commandId = "AckMessages" as const;
752
- readonly commandId = "AckMessages" as const;
753
- readonly command: Omit<_AckMessages, "tx" | "createdAt">;
754
- declare readonly $res: () => AckMessagesResult;
716
+ export class CountAllRooms {
717
+ static readonly reportId = "CountAllRooms" as const;
718
+ readonly reportId = "CountAllRooms" as const;
719
+ readonly report: Omit<_CountAllRooms, "tx">;
720
+ declare readonly $res: () => RoomCount;
755
721
 
756
- constructor(args: Omit<_AckMessages, "tx" | "createdAt">) {
722
+ constructor(args: Omit<_CountAllRooms, "tx">) {
723
+ this.report = args;
724
+ }
725
+ }
726
+
727
+ // Command classes
728
+ export class BroadcastMessage {
729
+ static readonly commandId = "BroadcastMessage" as const;
730
+ readonly commandId = "BroadcastMessage" as const;
731
+ readonly command: Omit<_BroadcastMessage, "tx" | "createdAt">;
732
+ declare readonly $res: () => BroadcastMessageResult;
733
+
734
+ constructor(args: Omit<_BroadcastMessage, "tx" | "createdAt">) {
757
735
  this.command = args;
758
736
  }
759
737
  }
760
738
 
761
- export class DeleteRoomMember {
762
- static readonly commandId = "DeleteRoomMember" as const;
763
- readonly commandId = "DeleteRoomMember" as const;
764
- readonly command: Omit<_DeleteRoomMember, "tx" | "createdAt">;
765
- declare readonly $res: () => DeleteRoomMemberResult;
739
+ export class SendMessage {
740
+ static readonly commandId = "SendMessage" as const;
741
+ readonly commandId = "SendMessage" as const;
742
+ readonly command: Omit<_SendMessage, "tx" | "createdAt">;
743
+ declare readonly $res: () => SendMessageResult;
766
744
 
767
- constructor(args: Omit<_DeleteRoomMember, "tx" | "createdAt">) {
745
+ constructor(args: Omit<_SendMessage, "tx" | "createdAt">) {
768
746
  this.command = args;
769
747
  }
770
748
  }
771
749
 
772
- export class DeleteRoomMembers {
773
- static readonly commandId = "DeleteRoomMembers" as const;
774
- readonly commandId = "DeleteRoomMembers" as const;
775
- readonly command: Omit<_DeleteRoomMembers, "tx" | "createdAt">;
776
- declare readonly $res: () => DeleteRoomMembersResult;
750
+ export class SetSessionLastToolAt {
751
+ static readonly commandId = "SetSessionLastToolAt" as const;
752
+ readonly commandId = "SetSessionLastToolAt" as const;
753
+ readonly command: Omit<_SetSessionLastToolAt, "tx" | "createdAt">;
754
+ declare readonly $res: () => void;
777
755
 
778
- constructor(args: Omit<_DeleteRoomMembers, "tx" | "createdAt">) {
756
+ constructor(args: Omit<_SetSessionLastToolAt, "tx" | "createdAt">) {
779
757
  this.command = args;
780
758
  }
781
759
  }
782
760
 
783
- export class LeaveRoom {
784
- static readonly commandId = "LeaveRoom" as const;
785
- readonly commandId = "LeaveRoom" as const;
786
- readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
787
- declare readonly $res: () => LeaveRoomResult;
761
+ export class SetSessionLastTool {
762
+ static readonly commandId = "SetSessionLastTool" as const;
763
+ readonly commandId = "SetSessionLastTool" as const;
764
+ readonly command: Omit<_SetSessionLastTool, "tx" | "createdAt">;
765
+ declare readonly $res: () => void;
788
766
 
789
- constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
767
+ constructor(args: Omit<_SetSessionLastTool, "tx" | "createdAt">) {
790
768
  this.command = args;
791
769
  }
792
770
  }
793
771
 
794
- export class JoinRoom {
795
- static readonly commandId = "JoinRoom" as const;
796
- readonly commandId = "JoinRoom" as const;
797
- readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
798
- declare readonly $res: () => JoinRoomResult;
772
+ export class SetSessionLastActivityAt {
773
+ static readonly commandId = "SetSessionLastActivityAt" as const;
774
+ readonly commandId = "SetSessionLastActivityAt" as const;
775
+ readonly command: Omit<_SetSessionLastActivityAt, "tx" | "createdAt">;
776
+ declare readonly $res: () => void;
799
777
 
800
- constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
778
+ constructor(args: Omit<_SetSessionLastActivityAt, "tx" | "createdAt">) {
801
779
  this.command = args;
802
780
  }
803
781
  }
804
782
 
805
- export class BroadcastMessage {
806
- static readonly commandId = "BroadcastMessage" as const;
807
- readonly commandId = "BroadcastMessage" as const;
808
- readonly command: Omit<_BroadcastMessage, "tx" | "createdAt">;
809
- declare readonly $res: () => BroadcastMessageResult;
783
+ export class SetSessionGitBranch {
784
+ static readonly commandId = "SetSessionGitBranch" as const;
785
+ readonly commandId = "SetSessionGitBranch" as const;
786
+ readonly command: Omit<_SetSessionGitBranch, "tx" | "createdAt">;
787
+ declare readonly $res: () => void;
810
788
 
811
- constructor(args: Omit<_BroadcastMessage, "tx" | "createdAt">) {
789
+ constructor(args: Omit<_SetSessionGitBranch, "tx" | "createdAt">) {
812
790
  this.command = args;
813
791
  }
814
792
  }
815
793
 
816
- export class SendMessage {
817
- static readonly commandId = "SendMessage" as const;
818
- readonly commandId = "SendMessage" as const;
819
- readonly command: Omit<_SendMessage, "tx" | "createdAt">;
820
- declare readonly $res: () => SendMessageResult;
794
+ export class DeleteSessions {
795
+ static readonly commandId = "DeleteSessions" as const;
796
+ readonly commandId = "DeleteSessions" as const;
797
+ readonly command: Omit<_DeleteSessions, "tx" | "createdAt">;
798
+ declare readonly $res: () => DeleteSessionsResult;
821
799
 
822
- constructor(args: Omit<_SendMessage, "tx" | "createdAt">) {
800
+ constructor(args: Omit<_DeleteSessions, "tx" | "createdAt">) {
823
801
  this.command = args;
824
802
  }
825
803
  }
826
804
 
827
- export class DeleteRoom {
828
- static readonly commandId = "DeleteRoom" as const;
829
- readonly commandId = "DeleteRoom" as const;
830
- readonly command: Omit<_DeleteRoom, "tx" | "createdAt">;
831
- declare readonly $res: () => DeleteRoomResult;
805
+ export class SetSessionActivity {
806
+ static readonly commandId = "SetSessionActivity" as const;
807
+ readonly commandId = "SetSessionActivity" as const;
808
+ readonly command: Omit<_SetSessionActivity, "tx" | "createdAt">;
809
+ declare readonly $res: () => void;
832
810
 
833
- constructor(args: Omit<_DeleteRoom, "tx" | "createdAt">) {
811
+ constructor(args: Omit<_SetSessionActivity, "tx" | "createdAt">) {
834
812
  this.command = args;
835
813
  }
836
814
  }
837
815
 
838
- export class SetRoomDescription {
839
- static readonly commandId = "SetRoomDescription" as const;
840
- readonly commandId = "SetRoomDescription" as const;
841
- readonly command: Omit<_SetRoomDescription, "tx" | "createdAt">;
816
+ export class SetSessionSessionName {
817
+ static readonly commandId = "SetSessionSessionName" as const;
818
+ readonly commandId = "SetSessionSessionName" as const;
819
+ readonly command: Omit<_SetSessionSessionName, "tx" | "createdAt">;
842
820
  declare readonly $res: () => void;
843
821
 
844
- constructor(args: Omit<_SetRoomDescription, "tx" | "createdAt">) {
822
+ constructor(args: Omit<_SetSessionSessionName, "tx" | "createdAt">) {
845
823
  this.command = args;
846
824
  }
847
825
  }
848
826
 
849
- export class SetRoomName {
850
- static readonly commandId = "SetRoomName" as const;
851
- readonly commandId = "SetRoomName" as const;
852
- readonly command: Omit<_SetRoomName, "tx" | "createdAt">;
827
+ export class SetSessionCurrentTask {
828
+ static readonly commandId = "SetSessionCurrentTask" as const;
829
+ readonly commandId = "SetSessionCurrentTask" as const;
830
+ readonly command: Omit<_SetSessionCurrentTask, "tx" | "createdAt">;
853
831
  declare readonly $res: () => void;
854
832
 
855
- constructor(args: Omit<_SetRoomName, "tx" | "createdAt">) {
833
+ constructor(args: Omit<_SetSessionCurrentTask, "tx" | "createdAt">) {
856
834
  this.command = args;
857
835
  }
858
836
  }
859
837
 
860
- export class DeleteRooms {
861
- static readonly commandId = "DeleteRooms" as const;
862
- readonly commandId = "DeleteRooms" as const;
863
- readonly command: Omit<_DeleteRooms, "tx" | "createdAt">;
864
- declare readonly $res: () => DeleteRoomsResult;
838
+ export class DeleteSession {
839
+ static readonly commandId = "DeleteSession" as const;
840
+ readonly commandId = "DeleteSession" as const;
841
+ readonly command: Omit<_DeleteSession, "tx" | "createdAt">;
842
+ declare readonly $res: () => DeleteSessionResult;
865
843
 
866
- constructor(args: Omit<_DeleteRooms, "tx" | "createdAt">) {
844
+ constructor(args: Omit<_DeleteSession, "tx" | "createdAt">) {
867
845
  this.command = args;
868
846
  }
869
847
  }
@@ -879,6 +857,28 @@ export class ReadMessages {
879
857
  }
880
858
  }
881
859
 
860
+ export class DeleteMessageRead {
861
+ static readonly commandId = "DeleteMessageRead" as const;
862
+ readonly commandId = "DeleteMessageRead" as const;
863
+ readonly command: Omit<_DeleteMessageRead, "tx" | "createdAt">;
864
+ declare readonly $res: () => DeleteMessageReadResult;
865
+
866
+ constructor(args: Omit<_DeleteMessageRead, "tx" | "createdAt">) {
867
+ this.command = args;
868
+ }
869
+ }
870
+
871
+ export class DeleteMessageReads {
872
+ static readonly commandId = "DeleteMessageReads" as const;
873
+ readonly commandId = "DeleteMessageReads" as const;
874
+ readonly command: Omit<_DeleteMessageReads, "tx" | "createdAt">;
875
+ declare readonly $res: () => DeleteMessageReadsResult;
876
+
877
+ constructor(args: Omit<_DeleteMessageReads, "tx" | "createdAt">) {
878
+ this.command = args;
879
+ }
880
+ }
881
+
882
882
  export class ImportSandboxRun {
883
883
  static readonly commandId = "ImportSandboxRun" as const;
884
884
  readonly commandId = "ImportSandboxRun" as const;
@@ -945,136 +945,136 @@ export class NotifyChannel {
945
945
  }
946
946
  }
947
947
 
948
- export class SetSessionLastToolAt {
949
- static readonly commandId = "SetSessionLastToolAt" as const;
950
- readonly commandId = "SetSessionLastToolAt" as const;
951
- readonly command: Omit<_SetSessionLastToolAt, "tx" | "createdAt">;
952
- declare readonly $res: () => void;
948
+ export class DeleteSessionNickname {
949
+ static readonly commandId = "DeleteSessionNickname" as const;
950
+ readonly commandId = "DeleteSessionNickname" as const;
951
+ readonly command: Omit<_DeleteSessionNickname, "tx" | "createdAt">;
952
+ declare readonly $res: () => DeleteSessionNicknameResult;
953
953
 
954
- constructor(args: Omit<_SetSessionLastToolAt, "tx" | "createdAt">) {
954
+ constructor(args: Omit<_DeleteSessionNickname, "tx" | "createdAt">) {
955
955
  this.command = args;
956
956
  }
957
957
  }
958
958
 
959
- export class SetSessionLastTool {
960
- static readonly commandId = "SetSessionLastTool" as const;
961
- readonly commandId = "SetSessionLastTool" as const;
962
- readonly command: Omit<_SetSessionLastTool, "tx" | "createdAt">;
963
- declare readonly $res: () => void;
959
+ export class DeleteSessionNicknames {
960
+ static readonly commandId = "DeleteSessionNicknames" as const;
961
+ readonly commandId = "DeleteSessionNicknames" as const;
962
+ readonly command: Omit<_DeleteSessionNicknames, "tx" | "createdAt">;
963
+ declare readonly $res: () => DeleteSessionNicknamesResult;
964
964
 
965
- constructor(args: Omit<_SetSessionLastTool, "tx" | "createdAt">) {
965
+ constructor(args: Omit<_DeleteSessionNicknames, "tx" | "createdAt">) {
966
966
  this.command = args;
967
967
  }
968
968
  }
969
969
 
970
- export class SetSessionLastActivityAt {
971
- static readonly commandId = "SetSessionLastActivityAt" as const;
972
- readonly commandId = "SetSessionLastActivityAt" as const;
973
- readonly command: Omit<_SetSessionLastActivityAt, "tx" | "createdAt">;
974
- declare readonly $res: () => void;
970
+ export class AckMessages {
971
+ static readonly commandId = "AckMessages" as const;
972
+ readonly commandId = "AckMessages" as const;
973
+ readonly command: Omit<_AckMessages, "tx" | "createdAt">;
974
+ declare readonly $res: () => AckMessagesResult;
975
975
 
976
- constructor(args: Omit<_SetSessionLastActivityAt, "tx" | "createdAt">) {
976
+ constructor(args: Omit<_AckMessages, "tx" | "createdAt">) {
977
977
  this.command = args;
978
978
  }
979
979
  }
980
980
 
981
- export class SetSessionGitBranch {
982
- static readonly commandId = "SetSessionGitBranch" as const;
983
- readonly commandId = "SetSessionGitBranch" as const;
984
- readonly command: Omit<_SetSessionGitBranch, "tx" | "createdAt">;
985
- declare readonly $res: () => void;
981
+ export class DeleteRoomMember {
982
+ static readonly commandId = "DeleteRoomMember" as const;
983
+ readonly commandId = "DeleteRoomMember" as const;
984
+ readonly command: Omit<_DeleteRoomMember, "tx" | "createdAt">;
985
+ declare readonly $res: () => DeleteRoomMemberResult;
986
986
 
987
- constructor(args: Omit<_SetSessionGitBranch, "tx" | "createdAt">) {
987
+ constructor(args: Omit<_DeleteRoomMember, "tx" | "createdAt">) {
988
988
  this.command = args;
989
989
  }
990
990
  }
991
991
 
992
- export class DeleteSessions {
993
- static readonly commandId = "DeleteSessions" as const;
994
- readonly commandId = "DeleteSessions" as const;
995
- readonly command: Omit<_DeleteSessions, "tx" | "createdAt">;
996
- declare readonly $res: () => DeleteSessionsResult;
992
+ export class DeleteRoomMembers {
993
+ static readonly commandId = "DeleteRoomMembers" as const;
994
+ readonly commandId = "DeleteRoomMembers" as const;
995
+ readonly command: Omit<_DeleteRoomMembers, "tx" | "createdAt">;
996
+ declare readonly $res: () => DeleteRoomMembersResult;
997
997
 
998
- constructor(args: Omit<_DeleteSessions, "tx" | "createdAt">) {
998
+ constructor(args: Omit<_DeleteRoomMembers, "tx" | "createdAt">) {
999
999
  this.command = args;
1000
1000
  }
1001
1001
  }
1002
1002
 
1003
- export class SetSessionActivity {
1004
- static readonly commandId = "SetSessionActivity" as const;
1005
- readonly commandId = "SetSessionActivity" as const;
1006
- readonly command: Omit<_SetSessionActivity, "tx" | "createdAt">;
1007
- declare readonly $res: () => void;
1003
+ export class LeaveRoom {
1004
+ static readonly commandId = "LeaveRoom" as const;
1005
+ readonly commandId = "LeaveRoom" as const;
1006
+ readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
1007
+ declare readonly $res: () => LeaveRoomResult;
1008
1008
 
1009
- constructor(args: Omit<_SetSessionActivity, "tx" | "createdAt">) {
1009
+ constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
1010
1010
  this.command = args;
1011
1011
  }
1012
1012
  }
1013
1013
 
1014
- export class SetSessionSessionName {
1015
- static readonly commandId = "SetSessionSessionName" as const;
1016
- readonly commandId = "SetSessionSessionName" as const;
1017
- readonly command: Omit<_SetSessionSessionName, "tx" | "createdAt">;
1018
- declare readonly $res: () => void;
1014
+ export class JoinRoom {
1015
+ static readonly commandId = "JoinRoom" as const;
1016
+ readonly commandId = "JoinRoom" as const;
1017
+ readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
1018
+ declare readonly $res: () => JoinRoomResult;
1019
1019
 
1020
- constructor(args: Omit<_SetSessionSessionName, "tx" | "createdAt">) {
1020
+ constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
1021
1021
  this.command = args;
1022
1022
  }
1023
1023
  }
1024
1024
 
1025
- export class SetSessionCurrentTask {
1026
- static readonly commandId = "SetSessionCurrentTask" as const;
1027
- readonly commandId = "SetSessionCurrentTask" as const;
1028
- readonly command: Omit<_SetSessionCurrentTask, "tx" | "createdAt">;
1029
- declare readonly $res: () => void;
1025
+ export class DeleteRoom {
1026
+ static readonly commandId = "DeleteRoom" as const;
1027
+ readonly commandId = "DeleteRoom" as const;
1028
+ readonly command: Omit<_DeleteRoom, "tx" | "createdAt">;
1029
+ declare readonly $res: () => DeleteRoomResult;
1030
1030
 
1031
- constructor(args: Omit<_SetSessionCurrentTask, "tx" | "createdAt">) {
1031
+ constructor(args: Omit<_DeleteRoom, "tx" | "createdAt">) {
1032
1032
  this.command = args;
1033
1033
  }
1034
1034
  }
1035
1035
 
1036
- export class DeleteSession {
1037
- static readonly commandId = "DeleteSession" as const;
1038
- readonly commandId = "DeleteSession" as const;
1039
- readonly command: Omit<_DeleteSession, "tx" | "createdAt">;
1040
- declare readonly $res: () => DeleteSessionResult;
1036
+ export class SetRoomDescription {
1037
+ static readonly commandId = "SetRoomDescription" as const;
1038
+ readonly commandId = "SetRoomDescription" as const;
1039
+ readonly command: Omit<_SetRoomDescription, "tx" | "createdAt">;
1040
+ declare readonly $res: () => void;
1041
1041
 
1042
- constructor(args: Omit<_DeleteSession, "tx" | "createdAt">) {
1042
+ constructor(args: Omit<_SetRoomDescription, "tx" | "createdAt">) {
1043
1043
  this.command = args;
1044
1044
  }
1045
1045
  }
1046
1046
 
1047
- export class DeleteMessageRead {
1048
- static readonly commandId = "DeleteMessageRead" as const;
1049
- readonly commandId = "DeleteMessageRead" as const;
1050
- readonly command: Omit<_DeleteMessageRead, "tx" | "createdAt">;
1051
- declare readonly $res: () => DeleteMessageReadResult;
1047
+ export class SetRoomName {
1048
+ static readonly commandId = "SetRoomName" as const;
1049
+ readonly commandId = "SetRoomName" as const;
1050
+ readonly command: Omit<_SetRoomName, "tx" | "createdAt">;
1051
+ declare readonly $res: () => void;
1052
1052
 
1053
- constructor(args: Omit<_DeleteMessageRead, "tx" | "createdAt">) {
1053
+ constructor(args: Omit<_SetRoomName, "tx" | "createdAt">) {
1054
1054
  this.command = args;
1055
1055
  }
1056
1056
  }
1057
1057
 
1058
- export class DeleteMessageReads {
1059
- static readonly commandId = "DeleteMessageReads" as const;
1060
- readonly commandId = "DeleteMessageReads" as const;
1061
- readonly command: Omit<_DeleteMessageReads, "tx" | "createdAt">;
1062
- declare readonly $res: () => DeleteMessageReadsResult;
1058
+ export class DeleteRooms {
1059
+ static readonly commandId = "DeleteRooms" as const;
1060
+ readonly commandId = "DeleteRooms" as const;
1061
+ readonly command: Omit<_DeleteRooms, "tx" | "createdAt">;
1062
+ declare readonly $res: () => DeleteRoomsResult;
1063
1063
 
1064
- constructor(args: Omit<_DeleteMessageReads, "tx" | "createdAt">) {
1064
+ constructor(args: Omit<_DeleteRooms, "tx" | "createdAt">) {
1065
1065
  this.command = args;
1066
1066
  }
1067
1067
  }
1068
1068
 
1069
1069
  // Item constructors
1070
1070
  export const items = {
1071
+ Session: (args: Session) => ({ item: args, itemType: "Session" }),
1072
+ MessageRead: (args: MessageRead) => ({ item: args, itemType: "MessageRead" }),
1073
+ SandboxRun: (args: SandboxRun) => ({ item: args, itemType: "SandboxRun" }),
1074
+ Message: (args: Message) => ({ item: args, itemType: "Message" }),
1071
1075
  SessionNickname: (args: SessionNickname) => ({ item: args, itemType: "SessionNickname" }),
1072
1076
  RoomMember: (args: RoomMember) => ({ item: args, itemType: "RoomMember" }),
1073
1077
  Room: (args: Room) => ({ item: args, itemType: "Room" }),
1074
- SandboxRun: (args: SandboxRun) => ({ item: args, itemType: "SandboxRun" }),
1075
- Message: (args: Message) => ({ item: args, itemType: "Message" }),
1076
- Session: (args: Session) => ({ item: args, itemType: "Session" }),
1077
- MessageRead: (args: MessageRead) => ({ item: args, itemType: "MessageRead" }),
1078
1078
  };
1079
1079
 
1080
1080
  // Message events