lumiverse-spindle-types 0.4.38 → 0.4.39

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/api.ts +12 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.4.38",
3
+ "version": "0.4.39",
4
4
  "types": "./src/index.ts",
5
5
  "keywords": [
6
6
  "lumiverse",
package/src/api.ts CHANGED
@@ -373,8 +373,8 @@ export interface ImageGenResultDTO {
373
373
 
374
374
  /**
375
375
  * Safe representation of a character exposed to extensions.
376
- * Omits the raw `extensions` blob only exposes user-facing fields plus
377
- * a small allowlist of structured extension state (e.g. `world_book_ids`).
376
+ * Includes the full `extensions` blob so extensions can read and write
377
+ * their own namespaced keys alongside the allowlisted `world_book_ids`.
378
378
  */
379
379
  export interface CharacterDTO {
380
380
  id: string;
@@ -396,6 +396,8 @@ export interface CharacterDTO {
396
396
  * single-id form is auto-migrated, so consumers can rely on the array.
397
397
  */
398
398
  world_book_ids: string[];
399
+ /** The raw extensions object. Extensions should namespace their keys. */
400
+ extensions: Record<string, any>;
399
401
  created_at: number;
400
402
  updated_at: number;
401
403
  }
@@ -415,6 +417,8 @@ export interface CharacterCreateDTO {
415
417
  creator?: string;
416
418
  /** Optional initial world book attachments. */
417
419
  world_book_ids?: string[];
420
+ /** Optional initial extension data. */
421
+ extensions?: Record<string, any>;
418
422
  }
419
423
 
420
424
  export interface CharacterUpdateDTO {
@@ -435,6 +439,12 @@ export interface CharacterUpdateDTO {
435
439
  * detach all books. Omit the field to leave attachments unchanged.
436
440
  */
437
441
  world_book_ids?: string[];
442
+ /**
443
+ * Shallow-merged into the character's existing extensions.
444
+ * Extension-provided keys overwrite existing ones; omitting a key leaves it
445
+ * untouched. Pass an empty object to make no changes, or omit entirely.
446
+ */
447
+ extensions?: Record<string, any>;
438
448
  }
439
449
 
440
450
  export interface CharacterAvatarUploadDTO {