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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
4
4
  "types": "./src/index.ts",
5
5
  "keywords": [
6
6
  "lumiverse",
@@ -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,