lumiverse-spindle-types 0.6.12 → 0.6.14
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/api.ts +10 -0
- package/src/dom.ts +23 -0
- package/src/index.ts +1 -0
- package/src/spindle-api.ts +3 -1
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -779,6 +779,16 @@ export interface ImageGenRequestDTO {
|
|
|
779
779
|
owner_character_id?: string;
|
|
780
780
|
/** Optional chat ownership tag for the persisted result image. */
|
|
781
781
|
owner_chat_id?: string;
|
|
782
|
+
/**
|
|
783
|
+
* Ask the host to omit the base64 `imageDataUrl` from the result.
|
|
784
|
+
*
|
|
785
|
+
* The host still needs the data URL to persist the image into the images
|
|
786
|
+
* table, so `imageId` / `imageUrl` remain populated. Only the
|
|
787
|
+
* extension-facing response drops the base64 field, which is the largest
|
|
788
|
+
* per-image RPC payload. The default (`includeDataUrl` omitted or `true`)
|
|
789
|
+
* keeps the data URL for backward compatibility.
|
|
790
|
+
*/
|
|
791
|
+
includeDataUrl?: boolean;
|
|
782
792
|
/** For operator-scoped extensions. */
|
|
783
793
|
userId?: string;
|
|
784
794
|
}
|
package/src/dom.ts
CHANGED
|
@@ -120,6 +120,23 @@ export type SpindleMountPoint =
|
|
|
120
120
|
|
|
121
121
|
// ── Drawer Tab ──
|
|
122
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Contextual documentation displayed by Lumiverse using its native
|
|
125
|
+
* guide viewer.
|
|
126
|
+
*
|
|
127
|
+
* Guide Markdown is rendered and sanitized by the host application.
|
|
128
|
+
*/
|
|
129
|
+
export interface SpindleGuideDefinition {
|
|
130
|
+
/** Markdown content for the guide. */
|
|
131
|
+
markdown: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Optional title shown by the guide viewer.
|
|
135
|
+
* Falls back to the title of the owning tab.
|
|
136
|
+
*/
|
|
137
|
+
title?: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
123
140
|
export interface SpindleDrawerTabOptions {
|
|
124
141
|
/** Unique tab identifier. Used internally for routing and state. */
|
|
125
142
|
id: string;
|
|
@@ -133,6 +150,8 @@ export interface SpindleDrawerTabOptions {
|
|
|
133
150
|
keywords?: string[];
|
|
134
151
|
/** Title shown in the panel header navbar. Falls back to `title` if omitted. Useful when the header needs a shorter label than the command palette entry. */
|
|
135
152
|
headerTitle?: string;
|
|
153
|
+
/** Optional contextual documentation for this tab. */
|
|
154
|
+
guide?: SpindleGuideDefinition;
|
|
136
155
|
/** URL to a 16x16 or 24x24 icon image. Mutually exclusive with `iconSvg`. */
|
|
137
156
|
iconUrl?: string;
|
|
138
157
|
/** Inline SVG string for the tab icon. Mutually exclusive with `iconUrl`. */
|
|
@@ -159,6 +178,8 @@ export interface SpindleCharacterEditorTabOptions {
|
|
|
159
178
|
id: string;
|
|
160
179
|
/** Label shown in the character editor tab bar. */
|
|
161
180
|
title: string;
|
|
181
|
+
/** Optional contextual documentation for this tab. */
|
|
182
|
+
guide?: SpindleGuideDefinition;
|
|
162
183
|
}
|
|
163
184
|
|
|
164
185
|
export interface SpindleCharacterEditorTabHandle {
|
|
@@ -210,6 +231,8 @@ export interface SpindlePresetEditorTabOptions {
|
|
|
210
231
|
id: string;
|
|
211
232
|
/** Label shown in the Loom preset editor tab bar. */
|
|
212
233
|
title: string;
|
|
234
|
+
/** Optional contextual documentation for this tab. */
|
|
235
|
+
guide?: SpindleGuideDefinition;
|
|
213
236
|
}
|
|
214
237
|
|
|
215
238
|
export interface SpindlePresetEditorTabHandle {
|
package/src/index.ts
CHANGED
package/src/spindle-api.ts
CHANGED
|
@@ -800,7 +800,9 @@ export interface SpindleAPI {
|
|
|
800
800
|
/**
|
|
801
801
|
* Generate an image using a connection profile.
|
|
802
802
|
* If `connection_id` is omitted, uses the user's default image gen connection.
|
|
803
|
-
* Returns the image as a base64 data URL
|
|
803
|
+
* Returns the image as a base64 data URL, unless `includeDataUrl: false` is
|
|
804
|
+
* passed and the host supports omitting it (the image is still persisted
|
|
805
|
+
* and `imageId` / `imageUrl` remain populated).
|
|
804
806
|
*/
|
|
805
807
|
generate(input: ImageGenRequestDTO): Promise<ImageGenResultDTO>;
|
|
806
808
|
/**
|