@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 CHANGED
@@ -1178,6 +1178,10 @@ export const data = {
1178
1178
  "referenceImages": {
1179
1179
  "type": "pushwoosh.aigen.v1.AiGenReferenceImage",
1180
1180
  "array": true
1181
+ },
1182
+ "reuseMediaLibrary": {
1183
+ "type": "boolean",
1184
+ "optional": true
1181
1185
  }
1182
1186
  }
1183
1187
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.154",
3
+ "version": "0.1.156",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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` matches a proto field name on `Meta`:
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;