@pushwoosh/rpc-gateway-ai-assistant 0.1.149 → 0.1.150
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 +58 -3
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +46 -2
- package/pushwoosh_aigen_v1.d.ts +7 -1
package/data.js
CHANGED
|
@@ -198,6 +198,9 @@ export const data = {
|
|
|
198
198
|
},
|
|
199
199
|
"button": {
|
|
200
200
|
"type": "pushwoosh.aibuilder.v1.ButtonStyles"
|
|
201
|
+
},
|
|
202
|
+
"divider": {
|
|
203
|
+
"type": "pushwoosh.aibuilder.v1.Divider"
|
|
201
204
|
}
|
|
202
205
|
}
|
|
203
206
|
},
|
|
@@ -347,6 +350,23 @@ export const data = {
|
|
|
347
350
|
}
|
|
348
351
|
}
|
|
349
352
|
},
|
|
353
|
+
"pushwoosh.aibuilder.v1.ListItem": {
|
|
354
|
+
"type": "I",
|
|
355
|
+
"fields": {
|
|
356
|
+
"text": {
|
|
357
|
+
"type": "string"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"pushwoosh.aibuilder.v1.List": {
|
|
362
|
+
"type": "I",
|
|
363
|
+
"fields": {
|
|
364
|
+
"items": {
|
|
365
|
+
"type": "pushwoosh.aibuilder.v1.ListItem",
|
|
366
|
+
"array": true
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
350
370
|
"pushwoosh.aibuilder.v1.ContentItem": {
|
|
351
371
|
"type": "I",
|
|
352
372
|
"fields": {
|
|
@@ -355,13 +375,17 @@ export const data = {
|
|
|
355
375
|
},
|
|
356
376
|
"buttonGroup": {
|
|
357
377
|
"type": "pushwoosh.aibuilder.v1.ButtonGroup"
|
|
378
|
+
},
|
|
379
|
+
"list": {
|
|
380
|
+
"type": "pushwoosh.aibuilder.v1.List"
|
|
358
381
|
}
|
|
359
382
|
},
|
|
360
383
|
"oneofs": {
|
|
361
384
|
"item": {
|
|
362
385
|
"oneof": [
|
|
363
386
|
"text",
|
|
364
|
-
"buttonGroup"
|
|
387
|
+
"buttonGroup",
|
|
388
|
+
"list"
|
|
365
389
|
]
|
|
366
390
|
}
|
|
367
391
|
}
|
|
@@ -518,6 +542,32 @@ export const data = {
|
|
|
518
542
|
}
|
|
519
543
|
}
|
|
520
544
|
},
|
|
545
|
+
"pushwoosh.aibuilder.v1.DividerStyle": {
|
|
546
|
+
"type": "E",
|
|
547
|
+
"values": [
|
|
548
|
+
"DIVIDER_STYLE_UNSPECIFIED",
|
|
549
|
+
"DIVIDER_STYLE_SOLID",
|
|
550
|
+
"DIVIDER_STYLE_DASHED",
|
|
551
|
+
"DIVIDER_STYLE_DOTTED"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"pushwoosh.aibuilder.v1.Divider": {
|
|
555
|
+
"type": "I",
|
|
556
|
+
"fields": {
|
|
557
|
+
"thickness": {
|
|
558
|
+
"type": "number"
|
|
559
|
+
},
|
|
560
|
+
"color": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
},
|
|
563
|
+
"style": {
|
|
564
|
+
"type": "pushwoosh.aibuilder.v1.DividerStyle"
|
|
565
|
+
},
|
|
566
|
+
"widthPercent": {
|
|
567
|
+
"type": "number"
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
521
571
|
"pushwoosh.aibuilder.v1.AiBuilderBlock": {
|
|
522
572
|
"type": "I",
|
|
523
573
|
"fields": {
|
|
@@ -539,6 +589,9 @@ export const data = {
|
|
|
539
589
|
"placeholder": {
|
|
540
590
|
"type": "pushwoosh.aibuilder.v1.Placeholder"
|
|
541
591
|
},
|
|
592
|
+
"divider": {
|
|
593
|
+
"type": "pushwoosh.aibuilder.v1.Divider"
|
|
594
|
+
},
|
|
542
595
|
"styles": {
|
|
543
596
|
"type": "pushwoosh.aibuilder.v1.BlockStyles",
|
|
544
597
|
"optional": true
|
|
@@ -554,7 +607,8 @@ export const data = {
|
|
|
554
607
|
"columns",
|
|
555
608
|
"content",
|
|
556
609
|
"group",
|
|
557
|
-
"placeholder"
|
|
610
|
+
"placeholder",
|
|
611
|
+
"divider"
|
|
558
612
|
]
|
|
559
613
|
}
|
|
560
614
|
}
|
|
@@ -698,7 +752,8 @@ export const data = {
|
|
|
698
752
|
"AI_GEN_BLOCK_TYPE_HINT_COLUMNS",
|
|
699
753
|
"AI_GEN_BLOCK_TYPE_HINT_CONTENT",
|
|
700
754
|
"AI_GEN_BLOCK_TYPE_HINT_GROUP",
|
|
701
|
-
"AI_GEN_BLOCK_TYPE_HINT_PLACEHOLDER"
|
|
755
|
+
"AI_GEN_BLOCK_TYPE_HINT_PLACEHOLDER",
|
|
756
|
+
"AI_GEN_BLOCK_TYPE_HINT_DIVIDER"
|
|
702
757
|
]
|
|
703
758
|
},
|
|
704
759
|
"pushwoosh.aigen.v1.AiGenMode": {
|
package/package.json
CHANGED
|
@@ -221,6 +221,12 @@ export type DefaultStyles = {
|
|
|
221
221
|
card: CardStyles;
|
|
222
222
|
buttonGroup: ButtonGroupStyles;
|
|
223
223
|
button: ButtonStyles;
|
|
224
|
+
/**
|
|
225
|
+
* Document-level default divider line config. Per-divider fields override
|
|
226
|
+
* these; unset here falls back to the renderer defaults (1px, scheme
|
|
227
|
+
* border, solid, 100%).
|
|
228
|
+
*/
|
|
229
|
+
divider: Divider;
|
|
224
230
|
};
|
|
225
231
|
export type DocumentSettings = {
|
|
226
232
|
width: number;
|
|
@@ -316,6 +322,22 @@ export type ButtonGroupStyles = {
|
|
|
316
322
|
backgroundColor?: string;
|
|
317
323
|
gap?: number;
|
|
318
324
|
};
|
|
325
|
+
/**
|
|
326
|
+
* ListItem is one entry of a List. `text` carries the same inline-HTML
|
|
327
|
+
* subset as TextBlock.text (sanitised on render) so list entries can hold
|
|
328
|
+
* links / emphasis.
|
|
329
|
+
*/
|
|
330
|
+
export type ListItem = {
|
|
331
|
+
text: string;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* List is a simple list of short entries — features, benefits, steps,
|
|
335
|
+
* FAQ-style runs. Rendered as a <ul>; ordered/unordered is a styling concern
|
|
336
|
+
* (CSS), not modelled here.
|
|
337
|
+
*/
|
|
338
|
+
export type List = {
|
|
339
|
+
items: ListItem[];
|
|
340
|
+
};
|
|
319
341
|
export type ContentItem_item_text = {
|
|
320
342
|
type: 'text';
|
|
321
343
|
data: TextBlock;
|
|
@@ -324,7 +346,11 @@ export type ContentItem_item_buttonGroup = {
|
|
|
324
346
|
type: 'buttonGroup';
|
|
325
347
|
data: ButtonGroup;
|
|
326
348
|
};
|
|
327
|
-
export type
|
|
349
|
+
export type ContentItem_item_list = {
|
|
350
|
+
type: 'list';
|
|
351
|
+
data: List;
|
|
352
|
+
};
|
|
353
|
+
export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list;
|
|
328
354
|
export type ContentItem = {
|
|
329
355
|
item: ContentItem_item;
|
|
330
356
|
};
|
|
@@ -455,6 +481,20 @@ export type Placeholder = {
|
|
|
455
481
|
*/
|
|
456
482
|
prompt?: string;
|
|
457
483
|
};
|
|
484
|
+
/** Line style for a Divider. UNSPECIFIED renders as solid. */
|
|
485
|
+
export type DividerStyle = 'DIVIDER_STYLE_UNSPECIFIED' | 'DIVIDER_STYLE_SOLID' | 'DIVIDER_STYLE_DASHED' | 'DIVIDER_STYLE_DOTTED';
|
|
486
|
+
/**
|
|
487
|
+
* Divider is a horizontal separator line between sections. It carries no copy
|
|
488
|
+
* — only line config. All fields are optional with sensible render defaults:
|
|
489
|
+
* thickness 0 → 1px, empty color → the scheme border colour, style
|
|
490
|
+
* UNSPECIFIED → solid, width_percent 0 → 100.
|
|
491
|
+
*/
|
|
492
|
+
export type Divider = {
|
|
493
|
+
thickness: number;
|
|
494
|
+
color: string;
|
|
495
|
+
style: DividerStyle;
|
|
496
|
+
widthPercent: number;
|
|
497
|
+
};
|
|
458
498
|
export type AiBuilderBlock_block_card = {
|
|
459
499
|
type: 'card';
|
|
460
500
|
data: AiBuilderCard;
|
|
@@ -475,7 +515,11 @@ export type AiBuilderBlock_block_placeholder = {
|
|
|
475
515
|
type: 'placeholder';
|
|
476
516
|
data: Placeholder;
|
|
477
517
|
};
|
|
478
|
-
export type
|
|
518
|
+
export type AiBuilderBlock_block_divider = {
|
|
519
|
+
type: 'divider';
|
|
520
|
+
data: Divider;
|
|
521
|
+
};
|
|
522
|
+
export type AiBuilderBlock_block = AiBuilderBlock_block_card | AiBuilderBlock_block_columns | AiBuilderBlock_block_content | AiBuilderBlock_block_group | AiBuilderBlock_block_placeholder | AiBuilderBlock_block_divider;
|
|
479
523
|
export type AiBuilderBlock = {
|
|
480
524
|
id: string;
|
|
481
525
|
styles?: BlockStyles;
|
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -44,7 +44,13 @@ export type AiGenBlockTypeHint = 'AI_GEN_BLOCK_TYPE_HINT_UNSPECIFIED' | 'AI_GEN_
|
|
|
44
44
|
* sees in <current_document> and the pipeline retargets the replace
|
|
45
45
|
* to a real content kind before invoking the block generator.
|
|
46
46
|
*/
|
|
47
|
-
| 'AI_GEN_BLOCK_TYPE_HINT_PLACEHOLDER'
|
|
47
|
+
| 'AI_GEN_BLOCK_TYPE_HINT_PLACEHOLDER'
|
|
48
|
+
/**
|
|
49
|
+
* Horizontal separator line between sections. The block generator is
|
|
50
|
+
* skipped — a divider carries no copy, only line config — so the
|
|
51
|
+
* pipeline synthesises a default Divider for it.
|
|
52
|
+
*/
|
|
53
|
+
| 'AI_GEN_BLOCK_TYPE_HINT_DIVIDER';
|
|
48
54
|
/**
|
|
49
55
|
* AiGenMode selects the document-domain profile the generation pipeline
|
|
50
56
|
* runs under: which block kinds are allowed, which Meta fields are
|