@pushwoosh/rpc-gateway-ai-assistant 0.1.213 → 0.1.215
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/commonTypes.d.ts +0 -8
- package/data.js +5 -5
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +1 -0
- package/pushwoosh_aigen_v1.d.ts +3 -3
- package/pushwoosh_templates_v1.d.ts +4 -4
package/commonTypes.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
export type Duration = number;
|
|
2
|
-
/** Arbitrary JSON value (google.protobuf.Value). */
|
|
3
|
-
export type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
4
|
-
[key: string]: JsonValue;
|
|
5
|
-
};
|
|
6
|
-
/** Arbitrary JSON object (google.protobuf.Struct). */
|
|
7
|
-
export type JsonObject = {
|
|
8
|
-
[key: string]: JsonValue;
|
|
9
|
-
};
|
|
10
2
|
export type RpcMethod<Req, Res> = ((request: Req) => Promise<Res>) & {
|
|
11
3
|
safe(request: Req): Promise<[{
|
|
12
4
|
error: unknown;
|
package/data.js
CHANGED
|
@@ -1581,10 +1581,10 @@ export const data = {
|
|
|
1581
1581
|
"type": "I",
|
|
1582
1582
|
"fields": {
|
|
1583
1583
|
"editorConfig": {
|
|
1584
|
-
"type": "
|
|
1584
|
+
"type": "object"
|
|
1585
1585
|
},
|
|
1586
1586
|
"localizationData": {
|
|
1587
|
-
"type": "
|
|
1587
|
+
"type": "object"
|
|
1588
1588
|
},
|
|
1589
1589
|
"language": {
|
|
1590
1590
|
"type": "string"
|
|
@@ -2330,7 +2330,7 @@ export const data = {
|
|
|
2330
2330
|
"optional": true
|
|
2331
2331
|
},
|
|
2332
2332
|
"template": {
|
|
2333
|
-
"type": "
|
|
2333
|
+
"type": "object"
|
|
2334
2334
|
},
|
|
2335
2335
|
"categories": {
|
|
2336
2336
|
"type": "string",
|
|
@@ -2465,7 +2465,7 @@ export const data = {
|
|
|
2465
2465
|
"optional": true
|
|
2466
2466
|
},
|
|
2467
2467
|
"template": {
|
|
2468
|
-
"type": "
|
|
2468
|
+
"type": "object"
|
|
2469
2469
|
},
|
|
2470
2470
|
"categories": {
|
|
2471
2471
|
"type": "string",
|
|
@@ -2499,7 +2499,7 @@ export const data = {
|
|
|
2499
2499
|
"optional": true
|
|
2500
2500
|
},
|
|
2501
2501
|
"template": {
|
|
2502
|
-
"type": "
|
|
2502
|
+
"type": "object"
|
|
2503
2503
|
},
|
|
2504
2504
|
"updateCategories": {
|
|
2505
2505
|
"type": "boolean"
|
package/package.json
CHANGED
|
@@ -332,6 +332,7 @@ export type ButtonAction = {
|
|
|
332
332
|
action: ButtonAction_action;
|
|
333
333
|
};
|
|
334
334
|
export type Button = {
|
|
335
|
+
/** Label; TextBlock.text's inline-HTML subset minus links/<br> (plain text also valid). */
|
|
335
336
|
text: string;
|
|
336
337
|
action: ButtonAction;
|
|
337
338
|
styles?: ButtonStyles;
|
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RpcMethod
|
|
1
|
+
import { RpcMethod } from './commonTypes';
|
|
2
2
|
import { AiBuilderDocument as pushwoosh_aibuilder_v1_AiBuilderDocument } from './pushwoosh_aibuilder_v1';
|
|
3
3
|
import { DocumentSettings as pushwoosh_aibuilder_v1_DocumentSettings } from './pushwoosh_aibuilder_v1';
|
|
4
4
|
import { TextVariantStyle as pushwoosh_aibuilder_v1_TextVariantStyle } from './pushwoosh_aibuilder_v1';
|
|
@@ -561,7 +561,7 @@ export type AiGenConvertUnlayerRequest = {
|
|
|
561
561
|
* The Unlayer design JSON (EmailContent.Unlayer.editor_config): the
|
|
562
562
|
* object carrying body.rows[].columns[].contents[]. Required.
|
|
563
563
|
*/
|
|
564
|
-
editorConfig:
|
|
564
|
+
editorConfig: object;
|
|
565
565
|
/**
|
|
566
566
|
* Unlayer localization placeholders. Accepts either the per-language
|
|
567
567
|
* map {"<lang>": {"<path>": "<value>"}} stored alongside the design in
|
|
@@ -570,7 +570,7 @@ export type AiGenConvertUnlayerRequest = {
|
|
|
570
570
|
* {{path|type|fallback}} tokens during conversion. Optional — without
|
|
571
571
|
* it tokens resolve to their inline fallbacks.
|
|
572
572
|
*/
|
|
573
|
-
localizationData:
|
|
573
|
+
localizationData: object;
|
|
574
574
|
/**
|
|
575
575
|
* Language key to resolve localized values with when localization_data
|
|
576
576
|
* is per-language. Empty → "default", falling back to the first
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RpcMethod
|
|
1
|
+
import { RpcMethod } from './commonTypes';
|
|
2
2
|
export type TemplatesService_List = RpcMethod<ListRequest, ListResponse>;
|
|
3
3
|
export type TemplatesService_Get = RpcMethod<GetRequest, GetResponse>;
|
|
4
4
|
export type TemplatesService_Create = RpcMethod<CreateRequest, CreateResponse>;
|
|
@@ -46,7 +46,7 @@ export type Template = {
|
|
|
46
46
|
* The template document itself: any valid JSON object, opaque to this
|
|
47
47
|
* service.
|
|
48
48
|
*/
|
|
49
|
-
template:
|
|
49
|
+
template: object;
|
|
50
50
|
/** Category tags attached to this template. Order is not significant. */
|
|
51
51
|
categories: string[];
|
|
52
52
|
/** Creation timestamp. */
|
|
@@ -113,7 +113,7 @@ export type CreateRequest = {
|
|
|
113
113
|
/** Optional free-form description. */
|
|
114
114
|
description?: string;
|
|
115
115
|
/** The template document: any valid JSON object. */
|
|
116
|
-
template:
|
|
116
|
+
template: object;
|
|
117
117
|
/** Category tags to attach. May be empty. */
|
|
118
118
|
categories: string[];
|
|
119
119
|
};
|
|
@@ -134,7 +134,7 @@ export type UpdateRequest = {
|
|
|
134
134
|
* New template document (any valid JSON object). Only applied when set
|
|
135
135
|
* (message presence).
|
|
136
136
|
*/
|
|
137
|
-
template:
|
|
137
|
+
template: object;
|
|
138
138
|
/**
|
|
139
139
|
* Controls how categories is applied (PATCH semantics):
|
|
140
140
|
* - true → replace categories with the provided list
|