@pushwoosh/rpc-gateway-ai-assistant 0.1.188 → 0.1.189
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 +36 -11
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +37 -22
package/data.js
CHANGED
|
@@ -164,6 +164,20 @@ export const data = {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
|
+
"pushwoosh.aibuilder.v1.BackgroundGradient": {
|
|
168
|
+
"type": "I",
|
|
169
|
+
"fields": {
|
|
170
|
+
"from": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"to": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"angle": {
|
|
177
|
+
"type": "number"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
167
181
|
"pushwoosh.aibuilder.v1.ColumnsStyles": {
|
|
168
182
|
"type": "I",
|
|
169
183
|
"fields": {
|
|
@@ -237,6 +251,14 @@ export const data = {
|
|
|
237
251
|
"fontFamily": {
|
|
238
252
|
"type": "string",
|
|
239
253
|
"optional": true
|
|
254
|
+
},
|
|
255
|
+
"backgroundImage": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"optional": true
|
|
258
|
+
},
|
|
259
|
+
"backgroundGradient": {
|
|
260
|
+
"type": "pushwoosh.aibuilder.v1.BackgroundGradient",
|
|
261
|
+
"optional": true
|
|
240
262
|
}
|
|
241
263
|
}
|
|
242
264
|
},
|
|
@@ -391,7 +413,10 @@ export const data = {
|
|
|
391
413
|
"list": {
|
|
392
414
|
"type": "pushwoosh.aibuilder.v1.List"
|
|
393
415
|
},
|
|
394
|
-
"
|
|
416
|
+
"image": {
|
|
417
|
+
"type": "pushwoosh.aibuilder.v1.Image"
|
|
418
|
+
},
|
|
419
|
+
"padding": {
|
|
395
420
|
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
396
421
|
"optional": true
|
|
397
422
|
}
|
|
@@ -401,7 +426,8 @@ export const data = {
|
|
|
401
426
|
"oneof": [
|
|
402
427
|
"text",
|
|
403
428
|
"buttonGroup",
|
|
404
|
-
"list"
|
|
429
|
+
"list",
|
|
430
|
+
"image"
|
|
405
431
|
]
|
|
406
432
|
}
|
|
407
433
|
}
|
|
@@ -416,14 +442,6 @@ export const data = {
|
|
|
416
442
|
"textPrompt": {
|
|
417
443
|
"type": "string",
|
|
418
444
|
"optional": true
|
|
419
|
-
},
|
|
420
|
-
"margin": {
|
|
421
|
-
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
422
|
-
"optional": true
|
|
423
|
-
},
|
|
424
|
-
"padding": {
|
|
425
|
-
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
426
|
-
"optional": true
|
|
427
445
|
}
|
|
428
446
|
}
|
|
429
447
|
},
|
|
@@ -454,9 +472,12 @@ export const data = {
|
|
|
454
472
|
"origHeight": {
|
|
455
473
|
"type": "number"
|
|
456
474
|
},
|
|
457
|
-
"
|
|
475
|
+
"padding": {
|
|
458
476
|
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
459
477
|
"optional": true
|
|
478
|
+
},
|
|
479
|
+
"align": {
|
|
480
|
+
"type": "pushwoosh.aibuilder.v1.TextAlign"
|
|
460
481
|
}
|
|
461
482
|
}
|
|
462
483
|
},
|
|
@@ -527,6 +548,10 @@ export const data = {
|
|
|
527
548
|
"width": {
|
|
528
549
|
"type": "string",
|
|
529
550
|
"optional": true
|
|
551
|
+
},
|
|
552
|
+
"padding": {
|
|
553
|
+
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
554
|
+
"optional": true
|
|
530
555
|
}
|
|
531
556
|
}
|
|
532
557
|
},
|
package/package.json
CHANGED
|
@@ -206,6 +206,14 @@ export type BlockStyles = {
|
|
|
206
206
|
/** Explicit 0 is distinct from unset and preserved. */
|
|
207
207
|
borderRadius?: number;
|
|
208
208
|
};
|
|
209
|
+
/** Two-stop CSS linear gradient: `linear-gradient(<angle>deg, from, to)`. */
|
|
210
|
+
export type BackgroundGradient = {
|
|
211
|
+
/** #RRGGBB */
|
|
212
|
+
from: string;
|
|
213
|
+
to: string;
|
|
214
|
+
/** CSS angle in degrees (180 = top→bottom). */
|
|
215
|
+
angle: number;
|
|
216
|
+
};
|
|
209
217
|
export type ColumnsStyles = {
|
|
210
218
|
/** Padding applied to each column in the columns block. */
|
|
211
219
|
columnPadding?: EdgeInsets;
|
|
@@ -258,6 +266,12 @@ export type DocumentSettings = {
|
|
|
258
266
|
* button → variant → document → renderer default.
|
|
259
267
|
*/
|
|
260
268
|
fontFamily?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Document-wide backdrop behind all blocks (email body background).
|
|
271
|
+
* Same semantics as the BlockStyles pair. Client-managed.
|
|
272
|
+
*/
|
|
273
|
+
backgroundImage?: string;
|
|
274
|
+
backgroundGradient?: BackgroundGradient;
|
|
261
275
|
};
|
|
262
276
|
export type TextBlock = {
|
|
263
277
|
variant: string;
|
|
@@ -362,32 +376,22 @@ export type ContentItem_item_list = {
|
|
|
362
376
|
type: 'list';
|
|
363
377
|
data: List;
|
|
364
378
|
};
|
|
365
|
-
export type
|
|
379
|
+
export type ContentItem_item_image = {
|
|
380
|
+
type: 'image';
|
|
381
|
+
data: Image;
|
|
382
|
+
};
|
|
383
|
+
export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image;
|
|
366
384
|
export type ContentItem = {
|
|
367
385
|
/**
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
* inter-item gap; set (even to zeros) = the client uses exactly this and
|
|
371
|
-
* skips the default gap. Written by importers (e.g. the Unlayer
|
|
372
|
-
* converter maps each widget's containerPadding here) and by the editor;
|
|
373
|
-
* never exposed to the LLM, round-tripped verbatim by the backend.
|
|
386
|
+
* Container padding of the item. Unset = client's default inter-item gap;
|
|
387
|
+
* set (even zeros) = used verbatim. Client-managed, hidden from the LLM.
|
|
374
388
|
*/
|
|
375
|
-
|
|
389
|
+
padding?: EdgeInsets;
|
|
376
390
|
item: ContentItem_item;
|
|
377
391
|
};
|
|
378
392
|
export type Content = {
|
|
379
393
|
items: ContentItem[];
|
|
380
394
|
textPrompt?: string;
|
|
381
|
-
/**
|
|
382
|
-
* Client-managed margin around the content block. Preserved by the backend
|
|
383
|
-
* across Update but never exposed to the LLM.
|
|
384
|
-
*/
|
|
385
|
-
margin?: EdgeInsets;
|
|
386
|
-
/**
|
|
387
|
-
* Client-managed padding inside the content block. Preserved by the backend
|
|
388
|
-
* across Update but never exposed to the LLM.
|
|
389
|
-
*/
|
|
390
|
-
padding?: EdgeInsets;
|
|
391
395
|
};
|
|
392
396
|
export type Image = {
|
|
393
397
|
prompt: string;
|
|
@@ -399,13 +403,18 @@ export type Image = {
|
|
|
399
403
|
origWidth: number;
|
|
400
404
|
origHeight: number;
|
|
401
405
|
/**
|
|
402
|
-
*
|
|
403
|
-
* image
|
|
404
|
-
* importers / the editor, never exposed to the LLM, round-tripped
|
|
406
|
+
* Container padding of the image within its slot (card TOP image, column
|
|
407
|
+
* image). Same semantics as ContentItem.padding: client-managed, written
|
|
408
|
+
* by importers / the editor, never exposed to the LLM, round-tripped
|
|
405
409
|
* verbatim. Layouts without a discrete image box (BACKGROUND, LEFT/RIGHT
|
|
406
410
|
* fills) may ignore it.
|
|
407
411
|
*/
|
|
408
|
-
|
|
412
|
+
padding?: EdgeInsets;
|
|
413
|
+
/**
|
|
414
|
+
* Horizontal alignment when the image is a content item; slots ignore it.
|
|
415
|
+
* UNSPECIFIED renders as center (Unlayer's image default).
|
|
416
|
+
*/
|
|
417
|
+
align: TextAlign;
|
|
409
418
|
};
|
|
410
419
|
export type AiBuilderCard = {
|
|
411
420
|
layout: CardLayout;
|
|
@@ -444,6 +453,12 @@ export type AiBuilderColumn = {
|
|
|
444
453
|
image?: Image;
|
|
445
454
|
content: Content;
|
|
446
455
|
width?: string;
|
|
456
|
+
/**
|
|
457
|
+
* Container padding of this column, wrapping BOTH the image slot and the
|
|
458
|
+
* content (Unlayer column padding). Overrides ColumnsStyles.column_padding
|
|
459
|
+
* for this column when set. Client-managed; the LLM never sets it.
|
|
460
|
+
*/
|
|
461
|
+
padding?: EdgeInsets;
|
|
447
462
|
};
|
|
448
463
|
/**
|
|
449
464
|
* AiBuilderGroup is a structural stack container. Children live as
|