@pushwoosh/rpc-gateway-ai-assistant 0.1.214 → 0.1.216

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 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
@@ -372,6 +372,14 @@ export const data = {
372
372
  "fontFamily": {
373
373
  "type": "string",
374
374
  "optional": true
375
+ },
376
+ "padding": {
377
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
378
+ "optional": true
379
+ },
380
+ "widthPercent": {
381
+ "type": "number",
382
+ "optional": true
375
383
  }
376
384
  }
377
385
  },
@@ -1581,10 +1589,10 @@ export const data = {
1581
1589
  "type": "I",
1582
1590
  "fields": {
1583
1591
  "editorConfig": {
1584
- "type": "JsonObject"
1592
+ "type": "object"
1585
1593
  },
1586
1594
  "localizationData": {
1587
- "type": "JsonObject"
1595
+ "type": "object"
1588
1596
  },
1589
1597
  "language": {
1590
1598
  "type": "string"
@@ -2330,7 +2338,7 @@ export const data = {
2330
2338
  "optional": true
2331
2339
  },
2332
2340
  "template": {
2333
- "type": "JsonObject"
2341
+ "type": "object"
2334
2342
  },
2335
2343
  "categories": {
2336
2344
  "type": "string",
@@ -2465,7 +2473,7 @@ export const data = {
2465
2473
  "optional": true
2466
2474
  },
2467
2475
  "template": {
2468
- "type": "JsonObject"
2476
+ "type": "object"
2469
2477
  },
2470
2478
  "categories": {
2471
2479
  "type": "string",
@@ -2499,7 +2507,7 @@ export const data = {
2499
2507
  "optional": true
2500
2508
  },
2501
2509
  "template": {
2502
- "type": "JsonObject"
2510
+ "type": "object"
2503
2511
  },
2504
2512
  "updateCategories": {
2505
2513
  "type": "boolean"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.214",
3
+ "version": "0.1.216",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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;
@@ -359,6 +360,10 @@ export type ButtonStyles = {
359
360
  * enforced by construction.
360
361
  */
361
362
  fontFamily?: string;
363
+ /** Label padding, px. Client-managed; unset = renderer default (8 / 16). */
364
+ padding?: EdgeInsets;
365
+ /** Width as % of the block row (1-100). Client-managed; unset = auto (fit the label). */
366
+ widthPercent?: number;
362
367
  };
363
368
  export type ButtonGroup = {
364
369
  buttons: Button[];
@@ -1,4 +1,4 @@
1
- import { RpcMethod, JsonObject } from './commonTypes';
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: JsonObject;
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: JsonObject;
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, JsonObject } from './commonTypes';
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: JsonObject;
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: JsonObject;
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: JsonObject;
137
+ template: object;
138
138
  /**
139
139
  * Controls how categories is applied (PATCH semantics):
140
140
  * - true → replace categories with the provided list