@pushwoosh/rpc-gateway-ai-assistant 0.1.154 → 0.1.156
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 +4 -0
- package/package.json +1 -1
- package/pushwoosh_aigen_v1.d.ts +11 -2
package/data.js
CHANGED
package/package.json
CHANGED
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -142,6 +142,14 @@ export type AiGenRequest = {
|
|
|
142
142
|
* repeated for future multi-reference prompts.
|
|
143
143
|
*/
|
|
144
144
|
referenceImages: AiGenReferenceImage[];
|
|
145
|
+
/**
|
|
146
|
+
* Dev-only: when set, the image phase first tries to REUSE a suitable
|
|
147
|
+
* existing media-library image (matched by its stored description) before
|
|
148
|
+
* generating a new one — cuts near-duplicate generations piling up in the
|
|
149
|
+
* gallery. Gated client-side behind the hidden dev flag; the server honours
|
|
150
|
+
* whatever it receives. No match (or feature off) → generate as before.
|
|
151
|
+
*/
|
|
152
|
+
reuseMediaLibrary?: boolean;
|
|
145
153
|
};
|
|
146
154
|
/**
|
|
147
155
|
* AiGenReferenceImage is an inline, base64-encoded image attached to a
|
|
@@ -313,8 +321,9 @@ export type AiGenDoneEvent = {
|
|
|
313
321
|
/**
|
|
314
322
|
* AiGenMetaDelta carries an updated value for one field of the document's
|
|
315
323
|
* Meta so the client can render it as it arrives instead of waiting for
|
|
316
|
-
* done. `field`
|
|
317
|
-
* "template_name" | "email_subject" | "email_preheader"
|
|
324
|
+
* done. `field` is a document-level meta field name:
|
|
325
|
+
* "template_name" | "email_subject" | "email_preheader" | "email_type" |
|
|
326
|
+
* "footer_company" | "font_family".
|
|
318
327
|
*/
|
|
319
328
|
export type AiGenMetaDelta = {
|
|
320
329
|
field: string;
|