@pushwoosh/rpc-gateway-ai-assistant 0.1.238 → 0.1.239
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 +50 -0
- package/package.json +1 -1
- package/pushwoosh_vibeml_v1.d.ts +44 -0
package/data.js
CHANGED
|
@@ -3235,6 +3235,12 @@ export const data = {
|
|
|
3235
3235
|
"response": "pushwoosh.vibeml.v1.VibeMlExtractThemeResponse",
|
|
3236
3236
|
"method": "post",
|
|
3237
3237
|
"path": "/api/v1/vibeml/extract-theme"
|
|
3238
|
+
},
|
|
3239
|
+
"Translate": {
|
|
3240
|
+
"request": "pushwoosh.vibeml.v1.VibeMlTranslateRequest",
|
|
3241
|
+
"response": "pushwoosh.vibeml.v1.VibeMlTranslateResponse",
|
|
3242
|
+
"method": "post",
|
|
3243
|
+
"path": "/api/v1/vibeml/translate"
|
|
3238
3244
|
}
|
|
3239
3245
|
}
|
|
3240
3246
|
},
|
|
@@ -3410,5 +3416,49 @@ export const data = {
|
|
|
3410
3416
|
"type": "pushwoosh.vibeml.v1.VibeTheme"
|
|
3411
3417
|
}
|
|
3412
3418
|
}
|
|
3419
|
+
},
|
|
3420
|
+
"pushwoosh.vibeml.v1.VibeMlTranslateRequest": {
|
|
3421
|
+
"type": "I",
|
|
3422
|
+
"fields": {
|
|
3423
|
+
"application": {
|
|
3424
|
+
"type": "string"
|
|
3425
|
+
},
|
|
3426
|
+
"texts": {
|
|
3427
|
+
"type": "string",
|
|
3428
|
+
"array": true
|
|
3429
|
+
},
|
|
3430
|
+
"targetLanguages": {
|
|
3431
|
+
"type": "string",
|
|
3432
|
+
"array": true
|
|
3433
|
+
},
|
|
3434
|
+
"context": {
|
|
3435
|
+
"type": "string"
|
|
3436
|
+
},
|
|
3437
|
+
"llmProvider": {
|
|
3438
|
+
"type": "string"
|
|
3439
|
+
},
|
|
3440
|
+
"llmModel": {
|
|
3441
|
+
"type": "string",
|
|
3442
|
+
"optional": true
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
},
|
|
3446
|
+
"pushwoosh.vibeml.v1.VibeMlTranslatedTexts": {
|
|
3447
|
+
"type": "I",
|
|
3448
|
+
"fields": {
|
|
3449
|
+
"texts": {
|
|
3450
|
+
"type": "string",
|
|
3451
|
+
"array": true
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
},
|
|
3455
|
+
"pushwoosh.vibeml.v1.VibeMlTranslateResponse": {
|
|
3456
|
+
"type": "I",
|
|
3457
|
+
"fields": {
|
|
3458
|
+
"translations": {
|
|
3459
|
+
"type": "pushwoosh.vibeml.v1.VibeMlTranslatedTexts",
|
|
3460
|
+
"mapKeyType": "string"
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3413
3463
|
}
|
|
3414
3464
|
};
|
package/package.json
CHANGED
package/pushwoosh_vibeml_v1.d.ts
CHANGED
|
@@ -371,6 +371,7 @@ export type VibeMlService_Generate = RpcMethod<VibeMlGenerateRequest, VibeMlGene
|
|
|
371
371
|
export type VibeMlService_Edit = RpcMethod<VibeMlEditRequest, VibeMlEditResponse>;
|
|
372
372
|
export type VibeMlService_Restyle = RpcMethod<VibeMlRestyleRequest, VibeMlRestyleResponse>;
|
|
373
373
|
export type VibeMlService_ExtractTheme = RpcMethod<VibeMlExtractThemeRequest, VibeMlExtractThemeResponse>;
|
|
374
|
+
export type VibeMlService_Translate = RpcMethod<VibeMlTranslateRequest, VibeMlTranslateResponse>;
|
|
374
375
|
/**
|
|
375
376
|
* VibeMlService is the email-template generation service built around a
|
|
376
377
|
* semantic, MJML-inspired (but NOT MJML) document model.
|
|
@@ -431,6 +432,15 @@ export interface VibeMlService {
|
|
|
431
432
|
* model fails at the upstream call. Unary; the result is small.
|
|
432
433
|
*/
|
|
433
434
|
ExtractTheme: VibeMlService_ExtractTheme;
|
|
435
|
+
/**
|
|
436
|
+
* Translate renders a batch of email texts into the requested target
|
|
437
|
+
* languages in one call per language. Texts may carry the editors'
|
|
438
|
+
* inline-HTML subset plus dynamic syntax — merge tags ({{...}}), Liquid
|
|
439
|
+
* ({%...%}) and %%macros%% — all preserved verbatim in the translations.
|
|
440
|
+
* The response arrays are index-aligned with the request texts. Pure
|
|
441
|
+
* utility — strings in, strings out, no document model involved.
|
|
442
|
+
*/
|
|
443
|
+
Translate: VibeMlService_Translate;
|
|
434
444
|
}
|
|
435
445
|
/**
|
|
436
446
|
* VibeSourceFormat tags a reference source's content type. It decides how
|
|
@@ -633,3 +643,37 @@ export type VibeMlExtractThemeResponse = {
|
|
|
633
643
|
*/
|
|
634
644
|
theme: VibeTheme;
|
|
635
645
|
};
|
|
646
|
+
export type VibeMlTranslateRequest = {
|
|
647
|
+
/** Application code, for account/app scoping middleware and logging. */
|
|
648
|
+
application: string;
|
|
649
|
+
/**
|
|
650
|
+
* Source texts in the document's default language. Each may be plain text
|
|
651
|
+
* or the editors' inline-HTML subset, and may embed merge tags / Liquid /
|
|
652
|
+
* %%macros%% — the model keeps all markup and dynamic syntax verbatim.
|
|
653
|
+
*/
|
|
654
|
+
texts: string[];
|
|
655
|
+
/**
|
|
656
|
+
* Language codes to translate into, as the editor names them ("es", "de",
|
|
657
|
+
* "pt-BR"). The default/source language must not be in the list.
|
|
658
|
+
*/
|
|
659
|
+
targetLanguages: string[];
|
|
660
|
+
/**
|
|
661
|
+
* Optional hint steering tone and terminology (campaign topic, brand
|
|
662
|
+
* voice). Free text.
|
|
663
|
+
*/
|
|
664
|
+
context: string;
|
|
665
|
+
/**
|
|
666
|
+
* Provider/model, same semantics as on Generate: llm_provider is
|
|
667
|
+
* REQUIRED, llm_model optional.
|
|
668
|
+
*/
|
|
669
|
+
llmProvider: string;
|
|
670
|
+
llmModel?: string;
|
|
671
|
+
};
|
|
672
|
+
export type VibeMlTranslatedTexts = {
|
|
673
|
+
/** Translations index-aligned with VibeMlTranslateRequest.texts. */
|
|
674
|
+
texts: string[];
|
|
675
|
+
};
|
|
676
|
+
export type VibeMlTranslateResponse = {
|
|
677
|
+
/** Keyed by target language, exactly the requested set. */
|
|
678
|
+
translations: Record<string, VibeMlTranslatedTexts>;
|
|
679
|
+
};
|