@pushwoosh/rpc-gateway-ai-assistant 0.1.103 → 0.1.104
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 +196 -35
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +71 -21
package/data.js
CHANGED
|
@@ -18,6 +18,13 @@ export const data = {
|
|
|
18
18
|
"method": "post",
|
|
19
19
|
"path": "/api/v1/builder/update",
|
|
20
20
|
"serverStreaming": true
|
|
21
|
+
},
|
|
22
|
+
"GenerateBlock": {
|
|
23
|
+
"request": "pushwoosh.aibuilder.v1.BuilderGenerateBlockRequest",
|
|
24
|
+
"response": "pushwoosh.aibuilder.v1.BuilderCreateStreamEvent",
|
|
25
|
+
"method": "post",
|
|
26
|
+
"path": "/api/v1/builder/generate-block",
|
|
27
|
+
"serverStreaming": true
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
30
|
},
|
|
@@ -90,6 +97,38 @@ export const data = {
|
|
|
90
97
|
},
|
|
91
98
|
"oneofs": {}
|
|
92
99
|
},
|
|
100
|
+
"pushwoosh.aibuilder.v1.BuilderGenerateBlockRequest": {
|
|
101
|
+
"type": "I",
|
|
102
|
+
"fields": {
|
|
103
|
+
"prompt": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"application": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"blockType": {
|
|
110
|
+
"type": "pushwoosh.aibuilder.v1.DocumentBlockType"
|
|
111
|
+
},
|
|
112
|
+
"document": {
|
|
113
|
+
"type": "pushwoosh.aibuilder.v1.AiBuilderDocument"
|
|
114
|
+
},
|
|
115
|
+
"prevBlockId": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"generateImages": {
|
|
119
|
+
"type": "boolean"
|
|
120
|
+
},
|
|
121
|
+
"blockId": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"structureModel": {
|
|
125
|
+
"type": "pushwoosh.aibuilder.v1.LLMProvider"
|
|
126
|
+
},
|
|
127
|
+
"textModel": {
|
|
128
|
+
"type": "pushwoosh.aibuilder.v1.LLMProvider"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
93
132
|
"pushwoosh.aibuilder.v1.BuilderDoneEvent": {
|
|
94
133
|
"type": "I",
|
|
95
134
|
"fields": {
|
|
@@ -102,7 +141,7 @@ export const data = {
|
|
|
102
141
|
"type": "I",
|
|
103
142
|
"fields": {
|
|
104
143
|
"updateBlock": {
|
|
105
|
-
"type": "pushwoosh.aibuilder.v1.
|
|
144
|
+
"type": "pushwoosh.aibuilder.v1.BuilderCreateDocumentBlock"
|
|
106
145
|
},
|
|
107
146
|
"deleteBlock": {
|
|
108
147
|
"type": "string"
|
|
@@ -129,6 +168,28 @@ export const data = {
|
|
|
129
168
|
}
|
|
130
169
|
}
|
|
131
170
|
},
|
|
171
|
+
"pushwoosh.aibuilder.v1.BuilderCreateColorSettings": {
|
|
172
|
+
"type": "I",
|
|
173
|
+
"fields": {
|
|
174
|
+
"backgroundColor": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"textColor": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"pushwoosh.aibuilder.v1.BuilderCreateBlockColors": {
|
|
183
|
+
"type": "I",
|
|
184
|
+
"fields": {
|
|
185
|
+
"backgroundColor": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"borderColor": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
132
193
|
"pushwoosh.aibuilder.v1.BuilderCreateDocument": {
|
|
133
194
|
"type": "I",
|
|
134
195
|
"fields": {
|
|
@@ -137,7 +198,7 @@ export const data = {
|
|
|
137
198
|
"array": true
|
|
138
199
|
},
|
|
139
200
|
"settings": {
|
|
140
|
-
"type": "pushwoosh.aibuilder.v1.
|
|
201
|
+
"type": "pushwoosh.aibuilder.v1.BuilderCreateColorSettings"
|
|
141
202
|
},
|
|
142
203
|
"textVariants": {
|
|
143
204
|
"type": "pushwoosh.aibuilder.v1.TextVariantStyle",
|
|
@@ -162,7 +223,7 @@ export const data = {
|
|
|
162
223
|
"type": "pushwoosh.aibuilder.v1.BuilderCreateColumns"
|
|
163
224
|
},
|
|
164
225
|
"styles": {
|
|
165
|
-
"type": "pushwoosh.aibuilder.v1.
|
|
226
|
+
"type": "pushwoosh.aibuilder.v1.BuilderCreateBlockColors",
|
|
166
227
|
"optional": true
|
|
167
228
|
}
|
|
168
229
|
},
|
|
@@ -185,11 +246,8 @@ export const data = {
|
|
|
185
246
|
"type": "pushwoosh.aibuilder.v1.Image",
|
|
186
247
|
"optional": true
|
|
187
248
|
},
|
|
188
|
-
"
|
|
189
|
-
"type": "
|
|
190
|
-
},
|
|
191
|
-
"textCount": {
|
|
192
|
-
"type": "number"
|
|
249
|
+
"content": {
|
|
250
|
+
"type": "pushwoosh.aibuilder.v1.Content"
|
|
193
251
|
}
|
|
194
252
|
},
|
|
195
253
|
"oneofs": {}
|
|
@@ -213,11 +271,8 @@ export const data = {
|
|
|
213
271
|
"type": "pushwoosh.aibuilder.v1.Image",
|
|
214
272
|
"optional": true
|
|
215
273
|
},
|
|
216
|
-
"
|
|
217
|
-
"type": "
|
|
218
|
-
},
|
|
219
|
-
"textCount": {
|
|
220
|
-
"type": "number"
|
|
274
|
+
"content": {
|
|
275
|
+
"type": "pushwoosh.aibuilder.v1.Content"
|
|
221
276
|
}
|
|
222
277
|
},
|
|
223
278
|
"oneofs": {}
|
|
@@ -313,6 +368,9 @@ export const data = {
|
|
|
313
368
|
},
|
|
314
369
|
"height": {
|
|
315
370
|
"type": "number"
|
|
371
|
+
},
|
|
372
|
+
"mediaUuid": {
|
|
373
|
+
"type": "string"
|
|
316
374
|
}
|
|
317
375
|
}
|
|
318
376
|
},
|
|
@@ -330,6 +388,14 @@ export const data = {
|
|
|
330
388
|
}
|
|
331
389
|
}
|
|
332
390
|
},
|
|
391
|
+
"pushwoosh.aibuilder.v1.DocumentBlockType": {
|
|
392
|
+
"type": "E",
|
|
393
|
+
"values": [
|
|
394
|
+
"DOCUMENT_BLOCK_TYPE_UNSPECIFIED",
|
|
395
|
+
"DOCUMENT_BLOCK_TYPE_CARD",
|
|
396
|
+
"DOCUMENT_BLOCK_TYPE_COLUMNS"
|
|
397
|
+
]
|
|
398
|
+
},
|
|
333
399
|
"pushwoosh.aibuilder.v1.DocumentBlockLayout": {
|
|
334
400
|
"type": "E",
|
|
335
401
|
"values": [
|
|
@@ -403,17 +469,29 @@ export const data = {
|
|
|
403
469
|
}
|
|
404
470
|
}
|
|
405
471
|
},
|
|
406
|
-
"pushwoosh.aibuilder.v1.
|
|
472
|
+
"pushwoosh.aibuilder.v1.ColumnsStyles": {
|
|
407
473
|
"type": "I",
|
|
408
474
|
"fields": {
|
|
409
|
-
"
|
|
410
|
-
"type": "pushwoosh.aibuilder.v1.EdgeInsets"
|
|
475
|
+
"columnPadding": {
|
|
476
|
+
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
477
|
+
"optional": true
|
|
478
|
+
},
|
|
479
|
+
"gap": {
|
|
480
|
+
"type": "number",
|
|
481
|
+
"optional": true
|
|
411
482
|
}
|
|
412
|
-
}
|
|
483
|
+
},
|
|
484
|
+
"oneofs": {}
|
|
413
485
|
},
|
|
414
|
-
"pushwoosh.aibuilder.v1.
|
|
486
|
+
"pushwoosh.aibuilder.v1.CardStyles": {
|
|
415
487
|
"type": "I",
|
|
416
|
-
"fields": {
|
|
488
|
+
"fields": {
|
|
489
|
+
"imageGap": {
|
|
490
|
+
"type": "number",
|
|
491
|
+
"optional": true
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"oneofs": {}
|
|
417
495
|
},
|
|
418
496
|
"pushwoosh.aibuilder.v1.DefaultStyles": {
|
|
419
497
|
"type": "I",
|
|
@@ -422,10 +500,16 @@ export const data = {
|
|
|
422
500
|
"type": "pushwoosh.aibuilder.v1.BlockStyles"
|
|
423
501
|
},
|
|
424
502
|
"columns": {
|
|
425
|
-
"type": "pushwoosh.aibuilder.v1.
|
|
503
|
+
"type": "pushwoosh.aibuilder.v1.ColumnsStyles"
|
|
426
504
|
},
|
|
427
505
|
"card": {
|
|
428
|
-
"type": "pushwoosh.aibuilder.v1.
|
|
506
|
+
"type": "pushwoosh.aibuilder.v1.CardStyles"
|
|
507
|
+
},
|
|
508
|
+
"buttonGroup": {
|
|
509
|
+
"type": "pushwoosh.aibuilder.v1.ButtonGroupStyles"
|
|
510
|
+
},
|
|
511
|
+
"button": {
|
|
512
|
+
"type": "pushwoosh.aibuilder.v1.ButtonStyles"
|
|
429
513
|
}
|
|
430
514
|
}
|
|
431
515
|
},
|
|
@@ -463,34 +547,74 @@ export const data = {
|
|
|
463
547
|
}
|
|
464
548
|
}
|
|
465
549
|
},
|
|
550
|
+
"pushwoosh.aibuilder.v1.ButtonActionHref": {
|
|
551
|
+
"type": "I",
|
|
552
|
+
"fields": {
|
|
553
|
+
"url": {
|
|
554
|
+
"type": "string"
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"pushwoosh.aibuilder.v1.ButtonAction": {
|
|
559
|
+
"type": "I",
|
|
560
|
+
"fields": {
|
|
561
|
+
"href": {
|
|
562
|
+
"type": "pushwoosh.aibuilder.v1.ButtonActionHref"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"oneofs": {
|
|
566
|
+
"action": {
|
|
567
|
+
"oneof": [
|
|
568
|
+
"href"
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
},
|
|
466
573
|
"pushwoosh.aibuilder.v1.Button": {
|
|
467
574
|
"type": "I",
|
|
468
575
|
"fields": {
|
|
469
576
|
"text": {
|
|
470
577
|
"type": "string"
|
|
471
578
|
},
|
|
472
|
-
"
|
|
473
|
-
"type": "
|
|
579
|
+
"action": {
|
|
580
|
+
"type": "pushwoosh.aibuilder.v1.ButtonAction"
|
|
474
581
|
},
|
|
582
|
+
"styles": {
|
|
583
|
+
"type": "pushwoosh.aibuilder.v1.ButtonStyles",
|
|
584
|
+
"optional": true
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"oneofs": {}
|
|
588
|
+
},
|
|
589
|
+
"pushwoosh.aibuilder.v1.ButtonStyles": {
|
|
590
|
+
"type": "I",
|
|
591
|
+
"fields": {
|
|
475
592
|
"backgroundColor": {
|
|
476
|
-
"type": "string"
|
|
593
|
+
"type": "string",
|
|
594
|
+
"optional": true
|
|
477
595
|
},
|
|
478
596
|
"textColor": {
|
|
479
|
-
"type": "string"
|
|
597
|
+
"type": "string",
|
|
598
|
+
"optional": true
|
|
480
599
|
},
|
|
481
600
|
"borderRadius": {
|
|
482
|
-
"type": "number"
|
|
601
|
+
"type": "number",
|
|
602
|
+
"optional": true
|
|
483
603
|
},
|
|
484
604
|
"borderColor": {
|
|
485
|
-
"type": "string"
|
|
605
|
+
"type": "string",
|
|
606
|
+
"optional": true
|
|
486
607
|
},
|
|
487
608
|
"borderWidth": {
|
|
488
|
-
"type": "number"
|
|
609
|
+
"type": "number",
|
|
610
|
+
"optional": true
|
|
489
611
|
},
|
|
490
612
|
"fontSize": {
|
|
491
|
-
"type": "number"
|
|
613
|
+
"type": "number",
|
|
614
|
+
"optional": true
|
|
492
615
|
}
|
|
493
|
-
}
|
|
616
|
+
},
|
|
617
|
+
"oneofs": {}
|
|
494
618
|
},
|
|
495
619
|
"pushwoosh.aibuilder.v1.ButtonGroup": {
|
|
496
620
|
"type": "I",
|
|
@@ -499,13 +623,30 @@ export const data = {
|
|
|
499
623
|
"type": "pushwoosh.aibuilder.v1.Button",
|
|
500
624
|
"array": true
|
|
501
625
|
},
|
|
626
|
+
"styles": {
|
|
627
|
+
"type": "pushwoosh.aibuilder.v1.ButtonGroupStyles",
|
|
628
|
+
"optional": true
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"oneofs": {}
|
|
632
|
+
},
|
|
633
|
+
"pushwoosh.aibuilder.v1.ButtonGroupStyles": {
|
|
634
|
+
"type": "I",
|
|
635
|
+
"fields": {
|
|
502
636
|
"padding": {
|
|
503
|
-
"type": "pushwoosh.aibuilder.v1.EdgeInsets"
|
|
637
|
+
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
638
|
+
"optional": true
|
|
504
639
|
},
|
|
505
640
|
"backgroundColor": {
|
|
506
|
-
"type": "string"
|
|
641
|
+
"type": "string",
|
|
642
|
+
"optional": true
|
|
643
|
+
},
|
|
644
|
+
"gap": {
|
|
645
|
+
"type": "number",
|
|
646
|
+
"optional": true
|
|
507
647
|
}
|
|
508
|
-
}
|
|
648
|
+
},
|
|
649
|
+
"oneofs": {}
|
|
509
650
|
},
|
|
510
651
|
"pushwoosh.aibuilder.v1.ContentItem": {
|
|
511
652
|
"type": "I",
|
|
@@ -532,8 +673,13 @@ export const data = {
|
|
|
532
673
|
"items": {
|
|
533
674
|
"type": "pushwoosh.aibuilder.v1.ContentItem",
|
|
534
675
|
"array": true
|
|
676
|
+
},
|
|
677
|
+
"textPrompt": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"optional": true
|
|
535
680
|
}
|
|
536
|
-
}
|
|
681
|
+
},
|
|
682
|
+
"oneofs": {}
|
|
537
683
|
},
|
|
538
684
|
"pushwoosh.aibuilder.v1.Image": {
|
|
539
685
|
"type": "I",
|
|
@@ -552,6 +698,9 @@ export const data = {
|
|
|
552
698
|
},
|
|
553
699
|
"alt": {
|
|
554
700
|
"type": "string"
|
|
701
|
+
},
|
|
702
|
+
"mediaUuid": {
|
|
703
|
+
"type": "string"
|
|
555
704
|
}
|
|
556
705
|
}
|
|
557
706
|
},
|
|
@@ -567,6 +716,10 @@ export const data = {
|
|
|
567
716
|
},
|
|
568
717
|
"content": {
|
|
569
718
|
"type": "pushwoosh.aibuilder.v1.Content"
|
|
719
|
+
},
|
|
720
|
+
"styles": {
|
|
721
|
+
"type": "pushwoosh.aibuilder.v1.CardStyles",
|
|
722
|
+
"optional": true
|
|
570
723
|
}
|
|
571
724
|
},
|
|
572
725
|
"oneofs": {}
|
|
@@ -577,8 +730,16 @@ export const data = {
|
|
|
577
730
|
"columns": {
|
|
578
731
|
"type": "pushwoosh.aibuilder.v1.AiBuilderColumn",
|
|
579
732
|
"array": true
|
|
733
|
+
},
|
|
734
|
+
"styles": {
|
|
735
|
+
"type": "pushwoosh.aibuilder.v1.ColumnsStyles",
|
|
736
|
+
"optional": true
|
|
737
|
+
},
|
|
738
|
+
"withImages": {
|
|
739
|
+
"type": "boolean"
|
|
580
740
|
}
|
|
581
|
-
}
|
|
741
|
+
},
|
|
742
|
+
"oneofs": {}
|
|
582
743
|
},
|
|
583
744
|
"pushwoosh.aibuilder.v1.AiBuilderColumn": {
|
|
584
745
|
"type": "I",
|
package/package.json
CHANGED
|
@@ -5,6 +5,9 @@ export interface BuilderService {
|
|
|
5
5
|
Update(request: BuilderUpdateRequest, options?: {
|
|
6
6
|
signal?: AbortSignal;
|
|
7
7
|
}): Promise<AsyncIterable<BuilderUpdateEvent>>;
|
|
8
|
+
GenerateBlock(request: BuilderGenerateBlockRequest, options?: {
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
}): Promise<AsyncIterable<BuilderCreateStreamEvent>>;
|
|
8
11
|
}
|
|
9
12
|
export type LLMProvider = 'LLM_PROVIDER_UNSPECIFIED' | 'LLM_PROVIDER_QWEN' | 'LLM_PROVIDER_GEMINI';
|
|
10
13
|
export type BuilderCreateRequest = {
|
|
@@ -26,12 +29,23 @@ export type BuilderUpdateRequest = {
|
|
|
26
29
|
colorScheme: Record<string, ColorSchemeItem>;
|
|
27
30
|
model: LLMProvider;
|
|
28
31
|
};
|
|
32
|
+
export type BuilderGenerateBlockRequest = {
|
|
33
|
+
prompt: string;
|
|
34
|
+
application: string;
|
|
35
|
+
blockType: DocumentBlockType;
|
|
36
|
+
document: AiBuilderDocument;
|
|
37
|
+
prevBlockId: string;
|
|
38
|
+
generateImages: boolean;
|
|
39
|
+
blockId: string;
|
|
40
|
+
structureModel: LLMProvider;
|
|
41
|
+
textModel: LLMProvider;
|
|
42
|
+
};
|
|
29
43
|
export type BuilderDoneEvent = {
|
|
30
44
|
summary: string;
|
|
31
45
|
};
|
|
32
46
|
export type BuilderUpdateEvent_event_updateBlock = {
|
|
33
47
|
type: 'updateBlock';
|
|
34
|
-
data:
|
|
48
|
+
data: BuilderCreateDocumentBlock;
|
|
35
49
|
};
|
|
36
50
|
export type BuilderUpdateEvent_event_deleteBlock = {
|
|
37
51
|
type: 'deleteBlock';
|
|
@@ -53,9 +67,17 @@ export type BuilderUpdateEvent_event = BuilderUpdateEvent_event_updateBlock | Bu
|
|
|
53
67
|
export type BuilderUpdateEvent = {
|
|
54
68
|
event: BuilderUpdateEvent_event;
|
|
55
69
|
};
|
|
70
|
+
export type BuilderCreateColorSettings = {
|
|
71
|
+
backgroundColor: string;
|
|
72
|
+
textColor: string;
|
|
73
|
+
};
|
|
74
|
+
export type BuilderCreateBlockColors = {
|
|
75
|
+
backgroundColor: string;
|
|
76
|
+
borderColor: string;
|
|
77
|
+
};
|
|
56
78
|
export type BuilderCreateDocument = {
|
|
57
79
|
blocks: BuilderCreateDocumentBlock[];
|
|
58
|
-
settings:
|
|
80
|
+
settings: BuilderCreateColorSettings;
|
|
59
81
|
textVariants: Record<string, TextVariantStyle>;
|
|
60
82
|
colorScheme: Record<string, ColorSchemeItem>;
|
|
61
83
|
};
|
|
@@ -70,14 +92,13 @@ export type BuilderCreateDocumentBlock_block_columns = {
|
|
|
70
92
|
export type BuilderCreateDocumentBlock_block = BuilderCreateDocumentBlock_block_card | BuilderCreateDocumentBlock_block_columns;
|
|
71
93
|
export type BuilderCreateDocumentBlock = {
|
|
72
94
|
id: string;
|
|
73
|
-
styles?:
|
|
95
|
+
styles?: BuilderCreateBlockColors;
|
|
74
96
|
block: BuilderCreateDocumentBlock_block;
|
|
75
97
|
};
|
|
76
98
|
export type BuilderCreateCard = {
|
|
77
99
|
layout: DocumentBlockLayout;
|
|
78
100
|
image?: Image;
|
|
79
|
-
|
|
80
|
-
textCount: number;
|
|
101
|
+
content: Content;
|
|
81
102
|
};
|
|
82
103
|
export type BuilderCreateColumns = {
|
|
83
104
|
withImages: boolean;
|
|
@@ -85,8 +106,7 @@ export type BuilderCreateColumns = {
|
|
|
85
106
|
};
|
|
86
107
|
export type BuilderCreateColumn = {
|
|
87
108
|
image?: Image;
|
|
88
|
-
|
|
89
|
-
textCount: number;
|
|
109
|
+
content: Content;
|
|
90
110
|
};
|
|
91
111
|
export type BuilderCreateStreamEvent_event_structure = {
|
|
92
112
|
type: 'structure';
|
|
@@ -141,12 +161,14 @@ export type BuilderCreateImageDelta = {
|
|
|
141
161
|
alt: string;
|
|
142
162
|
width: number;
|
|
143
163
|
height: number;
|
|
164
|
+
mediaUuid: string;
|
|
144
165
|
};
|
|
145
166
|
export type BuilderCreateButtonGroupDelta = {
|
|
146
167
|
blockId: string;
|
|
147
168
|
field: string;
|
|
148
169
|
buttonGroup: ButtonGroup;
|
|
149
170
|
};
|
|
171
|
+
export type DocumentBlockType = 'DOCUMENT_BLOCK_TYPE_UNSPECIFIED' | 'DOCUMENT_BLOCK_TYPE_CARD' | 'DOCUMENT_BLOCK_TYPE_COLUMNS';
|
|
150
172
|
export type DocumentBlockLayout = 'DOCUMENT_BLOCK_LAYOUT_UNSPECIFIED' | 'DOCUMENT_BLOCK_LAYOUT_RIGHT' | 'DOCUMENT_BLOCK_LAYOUT_LEFT' | 'DOCUMENT_BLOCK_LAYOUT_TOP' | 'DOCUMENT_BLOCK_LAYOUT_NO' | 'DOCUMENT_BLOCK_LAYOUT_BACKGROUND';
|
|
151
173
|
export type TextVariantStyle = {
|
|
152
174
|
fontSize: number;
|
|
@@ -170,14 +192,19 @@ export type BlockStyles = {
|
|
|
170
192
|
borderWidth: number;
|
|
171
193
|
borderRadius: number;
|
|
172
194
|
};
|
|
173
|
-
export type
|
|
174
|
-
|
|
195
|
+
export type ColumnsStyles = {
|
|
196
|
+
columnPadding?: EdgeInsets;
|
|
197
|
+
gap?: number;
|
|
198
|
+
};
|
|
199
|
+
export type CardStyles = {
|
|
200
|
+
imageGap?: number;
|
|
175
201
|
};
|
|
176
|
-
export type CardDefaultStyles = {};
|
|
177
202
|
export type DefaultStyles = {
|
|
178
203
|
common: BlockStyles;
|
|
179
|
-
columns:
|
|
180
|
-
card:
|
|
204
|
+
columns: ColumnsStyles;
|
|
205
|
+
card: CardStyles;
|
|
206
|
+
buttonGroup: ButtonGroupStyles;
|
|
207
|
+
button: ButtonStyles;
|
|
181
208
|
};
|
|
182
209
|
export type DocumentSettings = {
|
|
183
210
|
width: number;
|
|
@@ -191,20 +218,38 @@ export type TextBlock = {
|
|
|
191
218
|
variant: string;
|
|
192
219
|
text: string;
|
|
193
220
|
};
|
|
221
|
+
export type ButtonActionHref = {
|
|
222
|
+
url: string;
|
|
223
|
+
};
|
|
224
|
+
export type ButtonAction_action_href = {
|
|
225
|
+
type: 'href';
|
|
226
|
+
data: ButtonActionHref;
|
|
227
|
+
};
|
|
228
|
+
export type ButtonAction_action = ButtonAction_action_href;
|
|
229
|
+
export type ButtonAction = {
|
|
230
|
+
action: ButtonAction_action;
|
|
231
|
+
};
|
|
194
232
|
export type Button = {
|
|
195
233
|
text: string;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
234
|
+
action: ButtonAction;
|
|
235
|
+
styles?: ButtonStyles;
|
|
236
|
+
};
|
|
237
|
+
export type ButtonStyles = {
|
|
238
|
+
backgroundColor?: string;
|
|
239
|
+
textColor?: string;
|
|
240
|
+
borderRadius?: number;
|
|
241
|
+
borderColor?: string;
|
|
242
|
+
borderWidth?: number;
|
|
243
|
+
fontSize?: number;
|
|
203
244
|
};
|
|
204
245
|
export type ButtonGroup = {
|
|
205
246
|
buttons: Button[];
|
|
206
|
-
|
|
207
|
-
|
|
247
|
+
styles?: ButtonGroupStyles;
|
|
248
|
+
};
|
|
249
|
+
export type ButtonGroupStyles = {
|
|
250
|
+
padding?: EdgeInsets;
|
|
251
|
+
backgroundColor?: string;
|
|
252
|
+
gap?: number;
|
|
208
253
|
};
|
|
209
254
|
export type ContentItem_item_text = {
|
|
210
255
|
type: 'text';
|
|
@@ -220,6 +265,7 @@ export type ContentItem = {
|
|
|
220
265
|
};
|
|
221
266
|
export type Content = {
|
|
222
267
|
items: ContentItem[];
|
|
268
|
+
textPrompt?: string;
|
|
223
269
|
};
|
|
224
270
|
export type Image = {
|
|
225
271
|
prompt: string;
|
|
@@ -227,14 +273,18 @@ export type Image = {
|
|
|
227
273
|
height: number;
|
|
228
274
|
src: string;
|
|
229
275
|
alt: string;
|
|
276
|
+
mediaUuid: string;
|
|
230
277
|
};
|
|
231
278
|
export type AiBuilderCard = {
|
|
232
279
|
layout: DocumentBlockLayout;
|
|
233
280
|
image?: Image;
|
|
234
281
|
content: Content;
|
|
282
|
+
styles?: CardStyles;
|
|
235
283
|
};
|
|
236
284
|
export type AiBuilderColumns = {
|
|
237
285
|
columns: AiBuilderColumn[];
|
|
286
|
+
styles?: ColumnsStyles;
|
|
287
|
+
withImages: boolean;
|
|
238
288
|
};
|
|
239
289
|
export type AiBuilderColumn = {
|
|
240
290
|
image?: Image;
|