lumiverse-spindle-types 0.4.45 → 0.4.46

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.4.45",
3
+ "version": "0.4.46",
4
4
  "types": "./src/index.ts",
5
5
  "keywords": [
6
6
  "lumiverse",
package/src/api.ts CHANGED
@@ -475,6 +475,12 @@ export interface ChatUpdateDTO {
475
475
  metadata?: Record<string, unknown>;
476
476
  }
477
477
 
478
+ /** Payload for `CHAT_SWITCHED` events. */
479
+ export interface ChatSwitchedPayloadDTO {
480
+ /** The chat the user switched to, or `null` when returning to the home screen. */
481
+ chatId: string | null;
482
+ }
483
+
478
484
  // ─── World Book DTOs ─────────────────────────────────────────────────────
479
485
 
480
486
  /**
package/src/events.ts CHANGED
@@ -13,6 +13,7 @@ export enum SpindleEvent {
13
13
  export enum CoreEventType {
14
14
  CONNECTED = "CONNECTED",
15
15
  CHAT_CHANGED = "CHAT_CHANGED",
16
+ CHAT_SWITCHED = "CHAT_SWITCHED",
16
17
  MESSAGE_SENT = "MESSAGE_SENT",
17
18
  MESSAGE_EDITED = "MESSAGE_EDITED",
18
19
  MESSAGE_DELETED = "MESSAGE_DELETED",
package/src/index.ts CHANGED
@@ -33,9 +33,10 @@ export type {
33
33
  CharacterCreateDTO,
34
34
  CharacterAvatarUploadDTO,
35
35
  CharacterUpdateDTO,
36
- ChatDTO,
37
- ChatUpdateDTO,
38
- WorldBookDTO,
36
+ ChatDTO,
37
+ ChatUpdateDTO,
38
+ ChatSwitchedPayloadDTO,
39
+ WorldBookDTO,
39
40
  WorldBookCreateDTO,
40
41
  WorldBookUpdateDTO,
41
42
  WorldBookEntryDTO,