@pushwoosh/rpc-gateway-ai-assistant 0.1.505 → 0.1.506

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/data.js CHANGED
@@ -3386,6 +3386,15 @@ export const data = {
3386
3386
  },
3387
3387
  "aspectRatio": {
3388
3388
  "type": "string"
3389
+ },
3390
+ "contextTitle": {
3391
+ "type": "string"
3392
+ },
3393
+ "contextBody": {
3394
+ "type": "string"
3395
+ },
3396
+ "count": {
3397
+ "type": "number"
3389
3398
  }
3390
3399
  }
3391
3400
  },
@@ -3406,6 +3415,10 @@ export const data = {
3406
3415
  },
3407
3416
  "file": {
3408
3417
  "type": "pushwoosh.aigen.v1.AiGenMediaFile"
3418
+ },
3419
+ "files": {
3420
+ "type": "pushwoosh.aigen.v1.AiGenMediaFile",
3421
+ "array": true
3409
3422
  }
3410
3423
  }
3411
3424
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.505",
3
+ "version": "0.1.506",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1027,6 +1027,11 @@ export type AiGenMediaImageRequest = {
1027
1027
  * Empty = the generator default.
1028
1028
  */
1029
1029
  aspectRatio: string;
1030
+ /** Title and text of the message the image will go with; optional, each capped server-side. */
1031
+ contextTitle: string;
1032
+ contextBody: string;
1033
+ /** How many variants to generate, 1..4; 0 = 1. Each variant counts against the daily limit. */
1034
+ count: number;
1030
1035
  };
1031
1036
  export type AiGenMediaImageResponse = {
1032
1037
  /** The stored media file, ready for ContentImage.src / media_uuid. */
@@ -1036,6 +1041,8 @@ export type AiGenMediaImageResponse = {
1036
1041
  height: number;
1037
1042
  /** The whole stored file, so the shared picker hands it to onSelect without a lookup. */
1038
1043
  file: AiGenMediaFile;
1044
+ /** Every stored variant, file first; fewer than asked when the daily limit ran out. */
1045
+ files: AiGenMediaFile[];
1039
1046
  };
1040
1047
  /** AiGenMediaFile mirrors the media-library file (rpc-v2 media_files.MediaFile) as stored. */
1041
1048
  export type AiGenMediaFile = {