lumiverse-spindle-types 0.4.15 → 0.4.16
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/spindle-api.ts +7 -0
package/package.json
CHANGED
package/src/spindle-api.ts
CHANGED
|
@@ -220,6 +220,13 @@ export interface SpindleAPI {
|
|
|
220
220
|
role: "system" | "user" | "assistant";
|
|
221
221
|
content: string;
|
|
222
222
|
metadata?: Record<string, unknown>;
|
|
223
|
+
/** Index of the active swipe in `swipes`. `0` when the message has no alternates. */
|
|
224
|
+
swipe_id: number;
|
|
225
|
+
/**
|
|
226
|
+
* All swipe variants for this message, including the currently active one.
|
|
227
|
+
* `swipes[swipe_id]` always equals `content`.
|
|
228
|
+
*/
|
|
229
|
+
swipes: string[];
|
|
223
230
|
}>>;
|
|
224
231
|
appendMessage(
|
|
225
232
|
chatId: string,
|