lumiverse-spindle-types 0.6.80 → 0.6.82

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/dist/api.d.ts CHANGED
@@ -4169,6 +4169,7 @@ export type WorkerToHost = import("./live-activities.js").LiveActivityWorkerMess
4169
4169
  offset?: number;
4170
4170
  search?: string;
4171
4171
  userId?: string;
4172
+ includeSystem?: boolean;
4172
4173
  } | {
4173
4174
  type: "characters_get";
4174
4175
  requestId: string;
package/dist/dom.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { SpindleSTTAPI } from "./speech-to-text.js";
2
+ import type { UserLoggedOutPayloadDTO } from "./events.js";
2
3
  import type { SpindleTTSAPI } from "./text-to-speech.js";
3
4
  import type { SpindleSystemAudioAPI } from "./system-audio.js";
4
5
  import type { SpindleClientAPI } from "./client.js";
@@ -1141,6 +1142,8 @@ export interface SpindleFrontendContext {
1141
1142
  readonly theme: SpindleThemeAuthoringAPI;
1142
1143
  dom: SpindleDOMHelper;
1143
1144
  events: {
1145
+ /** Local account cleanup notification, before state reset; async handlers are not awaited. */
1146
+ on(event: "USER_LOGGED_OUT", handler: (payload: UserLoggedOutPayloadDTO) => void): () => void;
1144
1147
  on(event: string, handler: (payload: unknown, metadata?: import("./runtime-state.js").RuntimeEventMetadataDTO) => void): () => void;
1145
1148
  emit(event: string, payload: unknown): void;
1146
1149
  };
package/dist/events.d.ts CHANGED
@@ -12,6 +12,7 @@ export declare enum SpindleEvent {
12
12
  export declare enum CoreEventType {
13
13
  CONNECTED = "CONNECTED",
14
14
  FRONTEND_SESSION_CLOSED = "FRONTEND_SESSION_CLOSED",
15
+ USER_LOGGED_OUT = "USER_LOGGED_OUT",
15
16
  CHAT_CHANGED = "CHAT_CHANGED",
16
17
  CHAT_SWITCHED = "CHAT_SWITCHED",
17
18
  CHAT_FORKED = "CHAT_FORKED",
@@ -47,3 +48,15 @@ export declare enum CoreEventType {
47
48
  TOOL_INVOCATION = "TOOL_INVOCATION",
48
49
  PROVIDER_CHANGED = "PROVIDER_CHANGED"
49
50
  }
51
+ /**
52
+ * Frontend: delivered synchronously before this document clears its account state.
53
+ * Backend: delivered after an explicit sign-out deletes a session; sessionId is
54
+ * included there. Other sessions for this user may still be authenticated.
55
+ * Async handlers are not awaited by logout.
56
+ */
57
+ export interface UserLoggedOutPayloadDTO {
58
+ userId: string;
59
+ reason: "logout" | "session_lost" | "account_changed";
60
+ /** Backend session row ID (never the authentication token). */
61
+ sessionId?: string;
62
+ }
package/dist/events.js CHANGED
@@ -14,6 +14,7 @@ export var CoreEventType;
14
14
  (function (CoreEventType) {
15
15
  CoreEventType["CONNECTED"] = "CONNECTED";
16
16
  CoreEventType["FRONTEND_SESSION_CLOSED"] = "FRONTEND_SESSION_CLOSED";
17
+ CoreEventType["USER_LOGGED_OUT"] = "USER_LOGGED_OUT";
17
18
  CoreEventType["CHAT_CHANGED"] = "CHAT_CHANGED";
18
19
  CoreEventType["CHAT_SWITCHED"] = "CHAT_SWITCHED";
19
20
  CoreEventType["CHAT_FORKED"] = "CHAT_FORKED";
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export { ALL_PERMISSIONS, isValidPermission } from "./permissions.js";
21
21
  export type { SpindleCapability as SpindleCapabilityType } from "./capabilities.js";
22
22
  export { ALL_CAPABILITIES, isValidCapability } from "./capabilities.js";
23
23
  export { SpindleEvent, CoreEventType } from "./events.js";
24
+ export type { UserLoggedOutPayloadDTO } from "./events.js";
24
25
  export type { RuntimeStateRevisionDTO, RuntimeEventMetadataDTO, RuntimeCharacterDTO, RuntimeChatDTO, RuntimeMessageDTO, RuntimeStateSnapshotDTO, RuntimeStateCommandDTO, RuntimeStateAcknowledgementDTO, SpindleRuntimeStateAPI, } from "./runtime-state.js";
25
26
  export type { SpindleFrontendRuntimeCapability } from "./frontend-capabilities.js";
26
27
  export { ALL_FRONTEND_RUNTIME_CAPABILITIES, isValidFrontendRuntimeCapability, } from "./frontend-capabilities.js";
@@ -1,4 +1,5 @@
1
1
  import type { SpindleManifest } from "./manifest.js";
2
+ import type { UserLoggedOutPayloadDTO } from "./events.js";
2
3
  import type { LumiverseVersionInfo, SpindleHostDescriptorV1 } from "./host.js";
3
4
  import type { SpindleDesktopAPI } from "./desktop-capture.js";
4
5
  import type { SpindleFilesAPI, SpindleArchivesAPI } from "./file-transfers.js";
@@ -162,6 +163,8 @@ export interface SpindleAPI {
162
163
  * the global backend event bus.
163
164
  */
164
165
  on(event: "PERMISSION_CHANGED", handler: (payload: PermissionChangedDetail) => void): () => void;
166
+ /** An explicit sign-out deleted a session. Other sessions may remain active. */
167
+ on(event: "USER_LOGGED_OUT", handler: (payload: UserLoggedOutPayloadDTO, userId?: string) => void): () => void;
165
168
  /** Subscribe to generation-started events (requires `generation` permission). The optional `userId` identifies which user triggered the event. */
166
169
  on(event: "GENERATION_STARTED", handler: (payload: GenerationStartedPayloadDTO, userId?: string) => void): () => void;
167
170
  /** Subscribe to streamed token events (requires `generation` permission). The optional `userId` identifies which user triggered the event. */
@@ -874,6 +877,8 @@ export interface SpindleAPI {
874
877
  /** Search the character library (maximum 200 characters). Requires character-search-v1. */
875
878
  search?: string;
876
879
  userId?: string;
880
+ /** Include host-internal container cards, omitted by default. Requires character-system-filter-v1. */
881
+ includeSystem?: boolean;
877
882
  }): Promise<{
878
883
  data: CharacterDTO[];
879
884
  total: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.6.80",
3
+ "version": "0.6.82",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "keywords": [