@pushwoosh/rpc-gateway-ai-assistant 0.1.504 → 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 +16 -0
- package/package.json +1 -1
- package/pushwoosh_aigen_v1.d.ts +9 -0
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
|
},
|
|
@@ -3447,6 +3460,9 @@ export const data = {
|
|
|
3447
3460
|
},
|
|
3448
3461
|
"thumbnailHeight": {
|
|
3449
3462
|
"type": "number"
|
|
3463
|
+
},
|
|
3464
|
+
"source": {
|
|
3465
|
+
"type": "string"
|
|
3450
3466
|
}
|
|
3451
3467
|
}
|
|
3452
3468
|
},
|
package/package.json
CHANGED
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -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 = {
|
|
@@ -1052,6 +1059,8 @@ export type AiGenMediaFile = {
|
|
|
1052
1059
|
thumbnailUrl: string;
|
|
1053
1060
|
thumbnailWidth: number;
|
|
1054
1061
|
thumbnailHeight: number;
|
|
1062
|
+
/** "ai" for a generated image, "stock" for a Pexels import, empty otherwise. */
|
|
1063
|
+
source: string;
|
|
1055
1064
|
};
|
|
1056
1065
|
/**
|
|
1057
1066
|
* StockProvider names the upstream catalog. Only Pexels for now; the enum
|