@pushwoosh/rpc-gateway-ai-assistant 0.1.189 → 0.1.190
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 +24 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +22 -0
package/data.js
CHANGED
|
@@ -277,6 +277,10 @@ export const data = {
|
|
|
277
277
|
},
|
|
278
278
|
"align": {
|
|
279
279
|
"type": "pushwoosh.aibuilder.v1.TextAlign"
|
|
280
|
+
},
|
|
281
|
+
"translations": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"mapKeyType": "string"
|
|
280
284
|
}
|
|
281
285
|
}
|
|
282
286
|
},
|
|
@@ -315,6 +319,10 @@ export const data = {
|
|
|
315
319
|
"styles": {
|
|
316
320
|
"type": "pushwoosh.aibuilder.v1.ButtonStyles",
|
|
317
321
|
"optional": true
|
|
322
|
+
},
|
|
323
|
+
"translations": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"mapKeyType": "string"
|
|
318
326
|
}
|
|
319
327
|
}
|
|
320
328
|
},
|
|
@@ -389,6 +397,10 @@ export const data = {
|
|
|
389
397
|
"fields": {
|
|
390
398
|
"text": {
|
|
391
399
|
"type": "string"
|
|
400
|
+
},
|
|
401
|
+
"translations": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"mapKeyType": "string"
|
|
392
404
|
}
|
|
393
405
|
}
|
|
394
406
|
},
|
|
@@ -777,6 +789,14 @@ export const data = {
|
|
|
777
789
|
"showWebVersion": {
|
|
778
790
|
"type": "boolean",
|
|
779
791
|
"optional": true
|
|
792
|
+
},
|
|
793
|
+
"subjectTranslations": {
|
|
794
|
+
"type": "string",
|
|
795
|
+
"mapKeyType": "string"
|
|
796
|
+
},
|
|
797
|
+
"preheaderTranslations": {
|
|
798
|
+
"type": "string",
|
|
799
|
+
"mapKeyType": "string"
|
|
780
800
|
}
|
|
781
801
|
}
|
|
782
802
|
},
|
|
@@ -874,6 +894,10 @@ export const data = {
|
|
|
874
894
|
"popupSettings": {
|
|
875
895
|
"type": "pushwoosh.aibuilder.v1.PopupSettings",
|
|
876
896
|
"optional": true
|
|
897
|
+
},
|
|
898
|
+
"languages": {
|
|
899
|
+
"type": "string",
|
|
900
|
+
"array": true
|
|
877
901
|
}
|
|
878
902
|
}
|
|
879
903
|
},
|
package/package.json
CHANGED
|
@@ -295,6 +295,12 @@ export type TextBlock = {
|
|
|
295
295
|
* fits the design; preserved verbatim on edit.
|
|
296
296
|
*/
|
|
297
297
|
align: TextAlign;
|
|
298
|
+
/**
|
|
299
|
+
* Per-language overrides of `text`, keyed by language code ("es", "de").
|
|
300
|
+
* The default language lives in `text` itself. Client-managed: the LLM
|
|
301
|
+
* writes only `text`; translations are round-tripped verbatim.
|
|
302
|
+
*/
|
|
303
|
+
translations: Record<string, string>;
|
|
298
304
|
};
|
|
299
305
|
export type ButtonActionHref = {
|
|
300
306
|
url: string;
|
|
@@ -311,6 +317,8 @@ export type Button = {
|
|
|
311
317
|
text: string;
|
|
312
318
|
action: ButtonAction;
|
|
313
319
|
styles?: ButtonStyles;
|
|
320
|
+
/** Per-language overrides of `text`; same contract as TextBlock.translations. */
|
|
321
|
+
translations: Record<string, string>;
|
|
314
322
|
};
|
|
315
323
|
export type ButtonStyles = {
|
|
316
324
|
backgroundColor?: string;
|
|
@@ -355,6 +363,8 @@ export type ButtonGroupStyles = {
|
|
|
355
363
|
*/
|
|
356
364
|
export type ListItem = {
|
|
357
365
|
text: string;
|
|
366
|
+
/** Per-language overrides of `text`; same contract as TextBlock.translations. */
|
|
367
|
+
translations: Record<string, string>;
|
|
358
368
|
};
|
|
359
369
|
/**
|
|
360
370
|
* List is a simple list of short entries — features, benefits, steps,
|
|
@@ -650,6 +660,12 @@ export type EmailSettings = {
|
|
|
650
660
|
* instead of collapsing to proto3 false on save.
|
|
651
661
|
*/
|
|
652
662
|
showWebVersion?: boolean;
|
|
663
|
+
/**
|
|
664
|
+
* Per-language overrides of subject / preheader; the default language
|
|
665
|
+
* lives in the scalar fields. Client-managed, hidden from the LLM.
|
|
666
|
+
*/
|
|
667
|
+
subjectTranslations: Record<string, string>;
|
|
668
|
+
preheaderTranslations: Record<string, string>;
|
|
653
669
|
};
|
|
654
670
|
/**
|
|
655
671
|
* PopupAnimation chooses how a web-popup enters / exits the
|
|
@@ -734,4 +750,10 @@ export type AiBuilderDocument = {
|
|
|
734
750
|
* document was generated for mode=WEB_POPUP.
|
|
735
751
|
*/
|
|
736
752
|
popupSettings?: PopupSettings;
|
|
753
|
+
/**
|
|
754
|
+
* Languages this document is edited in, "default" first, then language
|
|
755
|
+
* codes in a stable order. Drives the editor's language switcher; a
|
|
756
|
+
* language may be listed before any translation exists. Client-managed.
|
|
757
|
+
*/
|
|
758
|
+
languages: string[];
|
|
737
759
|
};
|