@pushwoosh/rpc-gateway-ai-assistant 0.1.113 → 0.1.115

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 CHANGED
@@ -1,418 +1,336 @@
1
1
  /* eslint-disable */
2
2
  /* Autogenerated code */
3
3
  export const data = {
4
- "pushwoosh.aibuilder.v1.BuilderService": {
5
- "type": "S",
6
- "key": "builder",
7
- "methods": {
8
- "Create": {
9
- "request": "pushwoosh.aibuilder.v1.BuilderCreateRequest",
10
- "response": "pushwoosh.aibuilder.v1.BuilderCreateStreamEvent",
11
- "method": "post",
12
- "path": "/api/v1/builder/create",
13
- "serverStreaming": true
14
- },
15
- "Update": {
16
- "request": "pushwoosh.aibuilder.v1.BuilderUpdateRequest",
17
- "response": "pushwoosh.aibuilder.v1.BuilderUpdateEvent",
18
- "method": "post",
19
- "path": "/api/v1/builder/update",
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
28
- },
29
- "GenerateDescription": {
30
- "request": "pushwoosh.aibuilder.v1.BuilderGenerateDescriptionRequest",
31
- "response": "pushwoosh.aibuilder.v1.BuilderGenerateDescriptionResponse",
32
- "method": "post",
33
- "path": "/api/v1/builder/generate-description"
34
- }
35
- }
4
+ "pushwoosh.aibuilder.v1.DocumentBlockType": {
5
+ "type": "E",
6
+ "values": [
7
+ "DOCUMENT_BLOCK_TYPE_UNSPECIFIED",
8
+ "DOCUMENT_BLOCK_TYPE_CARD",
9
+ "DOCUMENT_BLOCK_TYPE_COLUMNS"
10
+ ]
11
+ },
12
+ "pushwoosh.aibuilder.v1.CardLayout": {
13
+ "type": "E",
14
+ "values": [
15
+ "CARD_LAYOUT_UNSPECIFIED",
16
+ "CARD_LAYOUT_RIGHT",
17
+ "CARD_LAYOUT_LEFT",
18
+ "CARD_LAYOUT_TOP",
19
+ "CARD_LAYOUT_NO",
20
+ "CARD_LAYOUT_BACKGROUND"
21
+ ]
36
22
  },
37
- "pushwoosh.aibuilder.v1.BuilderDescriptionField": {
23
+ "pushwoosh.aibuilder.v1.ButtonGroupAlign": {
24
+ "type": "E",
25
+ "values": [
26
+ "BUTTON_GROUP_ALIGN_UNSPECIFIED",
27
+ "BUTTON_GROUP_ALIGN_LEFT",
28
+ "BUTTON_GROUP_ALIGN_CENTER",
29
+ "BUTTON_GROUP_ALIGN_RIGHT"
30
+ ]
31
+ },
32
+ "pushwoosh.aibuilder.v1.CardImageFit": {
38
33
  "type": "E",
39
34
  "values": [
40
- "BUILDER_DESCRIPTION_FIELD_UNSPECIFIED",
41
- "BUILDER_DESCRIPTION_FIELD_TEMPLATE_NAME",
42
- "BUILDER_DESCRIPTION_FIELD_SUBJECT",
43
- "BUILDER_DESCRIPTION_FIELD_PREHEADER"
35
+ "CARD_IMAGE_FIT_UNSPECIFIED",
36
+ "CARD_IMAGE_FIT_COVER",
37
+ "CARD_IMAGE_FIT_CONTAIN",
38
+ "CARD_IMAGE_FIT_FILL"
44
39
  ]
45
40
  },
46
- "pushwoosh.aibuilder.v1.BuilderGenerateDescriptionRequest": {
41
+ "pushwoosh.aibuilder.v1.TextVariantStyle": {
47
42
  "type": "I",
48
43
  "fields": {
49
- "document": {
50
- "type": "pushwoosh.aibuilder.v1.AiBuilderDocument"
51
- },
52
- "field": {
53
- "type": "pushwoosh.aibuilder.v1.BuilderDescriptionField"
44
+ "fontSize": {
45
+ "type": "number"
54
46
  },
55
- "application": {
56
- "type": "string"
47
+ "fontWeight": {
48
+ "type": "number"
57
49
  },
58
- "textModel": {
59
- "type": "pushwoosh.aibuilder.v1.LLMProvider"
50
+ "lineHeight": {
51
+ "type": "number"
60
52
  }
61
53
  }
62
54
  },
63
- "pushwoosh.aibuilder.v1.BuilderGenerateDescriptionResponse": {
55
+ "pushwoosh.aibuilder.v1.ColorSchemeItem": {
64
56
  "type": "I",
65
57
  "fields": {
66
- "text": {
58
+ "color": {
59
+ "type": "string"
60
+ },
61
+ "description": {
67
62
  "type": "string"
68
63
  }
69
64
  }
70
65
  },
71
- "pushwoosh.aibuilder.v1.LLMProvider": {
72
- "type": "E",
73
- "values": [
74
- "LLM_PROVIDER_UNSPECIFIED",
75
- "LLM_PROVIDER_QWEN",
76
- "LLM_PROVIDER_GEMINI"
77
- ]
78
- },
79
- "pushwoosh.aibuilder.v1.BuilderCreateRequest": {
66
+ "pushwoosh.aibuilder.v1.EdgeInsets": {
80
67
  "type": "I",
81
68
  "fields": {
82
- "prompt": {
83
- "type": "string"
84
- },
85
- "application": {
86
- "type": "string"
87
- },
88
- "structureModel": {
89
- "type": "pushwoosh.aibuilder.v1.LLMProvider"
90
- },
91
- "textModel": {
92
- "type": "pushwoosh.aibuilder.v1.LLMProvider"
93
- },
94
- "generateImages": {
95
- "type": "boolean"
69
+ "top": {
70
+ "type": "number"
96
71
  },
97
- "settings": {
98
- "type": "pushwoosh.aibuilder.v1.DocumentSettings"
72
+ "right": {
73
+ "type": "number"
99
74
  },
100
- "textVariants": {
101
- "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
102
- "mapKeyType": "string"
75
+ "bottom": {
76
+ "type": "number"
103
77
  },
104
- "colorScheme": {
105
- "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
106
- "mapKeyType": "string"
78
+ "left": {
79
+ "type": "number"
107
80
  }
108
81
  }
109
82
  },
110
- "pushwoosh.aibuilder.v1.BuilderUpdateRequest": {
83
+ "pushwoosh.aibuilder.v1.BlockStyles": {
111
84
  "type": "I",
112
85
  "fields": {
113
- "document": {
114
- "type": "pushwoosh.aibuilder.v1.AiBuilderDocument"
115
- },
116
- "prompt": {
86
+ "backgroundColor": {
117
87
  "type": "string"
118
88
  },
119
- "blockId": {
120
- "type": "string",
121
- "optional": true
122
- },
123
- "application": {
89
+ "borderColor": {
124
90
  "type": "string"
125
91
  },
126
- "textVariants": {
127
- "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
128
- "mapKeyType": "string"
129
- },
130
- "colorScheme": {
131
- "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
132
- "mapKeyType": "string"
92
+ "borderWidth": {
93
+ "type": "number"
133
94
  },
134
- "model": {
135
- "type": "pushwoosh.aibuilder.v1.LLMProvider"
95
+ "borderRadius": {
96
+ "type": "number"
136
97
  }
137
98
  }
138
99
  },
139
- "pushwoosh.aibuilder.v1.BuilderGenerateBlockRequest": {
100
+ "pushwoosh.aibuilder.v1.ColumnsStyles": {
140
101
  "type": "I",
141
102
  "fields": {
142
- "prompt": {
143
- "type": "string"
144
- },
145
- "application": {
146
- "type": "string"
147
- },
148
- "blockType": {
149
- "type": "pushwoosh.aibuilder.v1.DocumentBlockType"
150
- },
151
- "document": {
152
- "type": "pushwoosh.aibuilder.v1.AiBuilderDocument"
153
- },
154
- "prevBlockId": {
155
- "type": "string"
156
- },
157
- "generateImages": {
158
- "type": "boolean"
159
- },
160
- "blockId": {
161
- "type": "string"
103
+ "columnPadding": {
104
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
105
+ "optional": true
162
106
  },
163
- "structureModel": {
164
- "type": "pushwoosh.aibuilder.v1.LLMProvider"
107
+ "gap": {
108
+ "type": "number",
109
+ "optional": true
165
110
  },
166
- "textModel": {
167
- "type": "pushwoosh.aibuilder.v1.LLMProvider"
111
+ "padding": {
112
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
113
+ "optional": true
168
114
  }
169
115
  }
170
116
  },
171
- "pushwoosh.aibuilder.v1.BuilderDoneEvent": {
117
+ "pushwoosh.aibuilder.v1.CardStyles": {
172
118
  "type": "I",
173
119
  "fields": {
174
- "summary": {
175
- "type": "string"
120
+ "accentFitPadding": {
121
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
122
+ "optional": true
123
+ },
124
+ "contentPadding": {
125
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
126
+ "optional": true
176
127
  }
177
128
  }
178
129
  },
179
- "pushwoosh.aibuilder.v1.BuilderUpdateEvent": {
130
+ "pushwoosh.aibuilder.v1.DefaultStyles": {
180
131
  "type": "I",
181
132
  "fields": {
182
- "updateBlock": {
183
- "type": "pushwoosh.aibuilder.v1.BuilderCreateDocumentBlock"
133
+ "common": {
134
+ "type": "pushwoosh.aibuilder.v1.BlockStyles"
184
135
  },
185
- "deleteBlock": {
186
- "type": "string"
136
+ "columns": {
137
+ "type": "pushwoosh.aibuilder.v1.ColumnsStyles"
187
138
  },
188
- "done": {
189
- "type": "pushwoosh.aibuilder.v1.BuilderDoneEvent"
139
+ "card": {
140
+ "type": "pushwoosh.aibuilder.v1.CardStyles"
190
141
  },
191
- "error": {
192
- "type": "string"
142
+ "buttonGroup": {
143
+ "type": "pushwoosh.aibuilder.v1.ButtonGroupStyles"
193
144
  },
194
- "updateSettings": {
195
- "type": "pushwoosh.aibuilder.v1.DocumentSettings"
196
- }
197
- },
198
- "oneofs": {
199
- "event": {
200
- "oneof": [
201
- "updateBlock",
202
- "deleteBlock",
203
- "done",
204
- "error",
205
- "updateSettings"
206
- ]
145
+ "button": {
146
+ "type": "pushwoosh.aibuilder.v1.ButtonStyles"
207
147
  }
208
148
  }
209
149
  },
210
- "pushwoosh.aibuilder.v1.BuilderCreateColorSettings": {
150
+ "pushwoosh.aibuilder.v1.DocumentSettings": {
211
151
  "type": "I",
212
152
  "fields": {
153
+ "width": {
154
+ "type": "number"
155
+ },
156
+ "blockGap": {
157
+ "type": "number"
158
+ },
159
+ "padding": {
160
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets"
161
+ },
213
162
  "backgroundColor": {
214
163
  "type": "string"
215
164
  },
216
165
  "textColor": {
217
166
  "type": "string"
167
+ },
168
+ "defaultStyles": {
169
+ "type": "pushwoosh.aibuilder.v1.DefaultStyles"
218
170
  }
219
171
  }
220
172
  },
221
- "pushwoosh.aibuilder.v1.BuilderCreateBlockColors": {
173
+ "pushwoosh.aibuilder.v1.TextBlock": {
222
174
  "type": "I",
223
175
  "fields": {
224
- "backgroundColor": {
176
+ "variant": {
225
177
  "type": "string"
226
178
  },
227
- "borderColor": {
179
+ "text": {
228
180
  "type": "string"
229
181
  }
230
182
  }
231
183
  },
232
- "pushwoosh.aibuilder.v1.BuilderCreateDocument": {
184
+ "pushwoosh.aibuilder.v1.ButtonActionHref": {
233
185
  "type": "I",
234
186
  "fields": {
235
- "blocks": {
236
- "type": "pushwoosh.aibuilder.v1.BuilderCreateDocumentBlock",
237
- "array": true
238
- },
239
- "settings": {
240
- "type": "pushwoosh.aibuilder.v1.BuilderCreateColorSettings"
241
- },
242
- "textVariants": {
243
- "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
244
- "mapKeyType": "string"
245
- },
246
- "colorScheme": {
247
- "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
248
- "mapKeyType": "string"
249
- },
250
- "emailMeta": {
251
- "type": "pushwoosh.aibuilder.v1.EmailMeta"
187
+ "url": {
188
+ "type": "string"
252
189
  }
253
190
  }
254
191
  },
255
- "pushwoosh.aibuilder.v1.BuilderCreateDocumentBlock": {
192
+ "pushwoosh.aibuilder.v1.ButtonAction": {
256
193
  "type": "I",
257
194
  "fields": {
258
- "id": {
259
- "type": "string"
260
- },
261
- "card": {
262
- "type": "pushwoosh.aibuilder.v1.BuilderCreateCard"
263
- },
264
- "columns": {
265
- "type": "pushwoosh.aibuilder.v1.BuilderCreateColumns"
266
- },
267
- "styles": {
268
- "type": "pushwoosh.aibuilder.v1.BuilderCreateBlockColors",
269
- "optional": true
195
+ "href": {
196
+ "type": "pushwoosh.aibuilder.v1.ButtonActionHref"
270
197
  }
271
198
  },
272
199
  "oneofs": {
273
- "block": {
200
+ "action": {
274
201
  "oneof": [
275
- "card",
276
- "columns"
202
+ "href"
277
203
  ]
278
204
  }
279
205
  }
280
206
  },
281
- "pushwoosh.aibuilder.v1.BuilderCreateCard": {
207
+ "pushwoosh.aibuilder.v1.Button": {
282
208
  "type": "I",
283
209
  "fields": {
284
- "layout": {
285
- "type": "pushwoosh.aibuilder.v1.CardLayout"
286
- },
287
- "image": {
288
- "type": "pushwoosh.aibuilder.v1.Image",
289
- "optional": true
290
- },
291
- "content": {
292
- "type": "pushwoosh.aibuilder.v1.Content"
210
+ "text": {
211
+ "type": "string"
293
212
  },
294
- "imageFit": {
295
- "type": "pushwoosh.aibuilder.v1.CardImageFit"
213
+ "action": {
214
+ "type": "pushwoosh.aibuilder.v1.ButtonAction"
296
215
  },
297
- "accentFit": {
298
- "type": "boolean"
216
+ "styles": {
217
+ "type": "pushwoosh.aibuilder.v1.ButtonStyles",
218
+ "optional": true
299
219
  }
300
220
  }
301
221
  },
302
- "pushwoosh.aibuilder.v1.BuilderCreateColumns": {
222
+ "pushwoosh.aibuilder.v1.ButtonStyles": {
303
223
  "type": "I",
304
224
  "fields": {
305
- "withImages": {
306
- "type": "boolean"
225
+ "backgroundColor": {
226
+ "type": "string",
227
+ "optional": true
307
228
  },
308
- "columns": {
309
- "type": "pushwoosh.aibuilder.v1.BuilderCreateColumn",
310
- "array": true
229
+ "textColor": {
230
+ "type": "string",
231
+ "optional": true
311
232
  },
312
- "contentBefore": {
313
- "type": "pushwoosh.aibuilder.v1.Content",
233
+ "borderRadius": {
234
+ "type": "number",
314
235
  "optional": true
315
236
  },
316
- "contentAfter": {
317
- "type": "pushwoosh.aibuilder.v1.Content",
237
+ "borderColor": {
238
+ "type": "string",
239
+ "optional": true
240
+ },
241
+ "borderWidth": {
242
+ "type": "number",
243
+ "optional": true
244
+ },
245
+ "fontSize": {
246
+ "type": "number",
318
247
  "optional": true
319
248
  }
320
249
  }
321
250
  },
322
- "pushwoosh.aibuilder.v1.BuilderCreateColumn": {
251
+ "pushwoosh.aibuilder.v1.ButtonGroup": {
323
252
  "type": "I",
324
253
  "fields": {
325
- "image": {
326
- "type": "pushwoosh.aibuilder.v1.Image",
254
+ "buttons": {
255
+ "type": "pushwoosh.aibuilder.v1.Button",
256
+ "array": true
257
+ },
258
+ "styles": {
259
+ "type": "pushwoosh.aibuilder.v1.ButtonGroupStyles",
327
260
  "optional": true
328
261
  },
329
- "content": {
330
- "type": "pushwoosh.aibuilder.v1.Content"
262
+ "align": {
263
+ "type": "pushwoosh.aibuilder.v1.ButtonGroupAlign"
264
+ }
265
+ }
266
+ },
267
+ "pushwoosh.aibuilder.v1.ButtonGroupStyles": {
268
+ "type": "I",
269
+ "fields": {
270
+ "padding": {
271
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
272
+ "optional": true
331
273
  },
332
- "width": {
274
+ "backgroundColor": {
333
275
  "type": "string",
334
276
  "optional": true
277
+ },
278
+ "gap": {
279
+ "type": "number",
280
+ "optional": true
335
281
  }
336
282
  }
337
283
  },
338
- "pushwoosh.aibuilder.v1.BuilderCreateStreamEvent": {
284
+ "pushwoosh.aibuilder.v1.ContentItem": {
339
285
  "type": "I",
340
286
  "fields": {
341
- "structure": {
342
- "type": "pushwoosh.aibuilder.v1.BuilderCreateDocument"
343
- },
344
- "textDelta": {
345
- "type": "pushwoosh.aibuilder.v1.BuilderCreateTextDelta"
346
- },
347
- "imageDelta": {
348
- "type": "pushwoosh.aibuilder.v1.BuilderCreateImageDelta"
349
- },
350
- "done": {
351
- "type": "pushwoosh.aibuilder.v1.BuilderDoneEvent"
352
- },
353
- "error": {
354
- "type": "string"
355
- },
356
- "progress": {
357
- "type": "string"
358
- },
359
- "buttonGroupDelta": {
360
- "type": "pushwoosh.aibuilder.v1.BuilderCreateButtonGroupDelta"
287
+ "text": {
288
+ "type": "pushwoosh.aibuilder.v1.TextBlock"
361
289
  },
362
- "contentError": {
363
- "type": "pushwoosh.aibuilder.v1.BuilderContentError"
290
+ "buttonGroup": {
291
+ "type": "pushwoosh.aibuilder.v1.ButtonGroup"
364
292
  }
365
293
  },
366
294
  "oneofs": {
367
- "event": {
295
+ "item": {
368
296
  "oneof": [
369
- "structure",
370
- "textDelta",
371
- "imageDelta",
372
- "done",
373
- "error",
374
- "progress",
375
- "buttonGroupDelta",
376
- "contentError"
297
+ "text",
298
+ "buttonGroup"
377
299
  ]
378
300
  }
379
301
  }
380
302
  },
381
- "pushwoosh.aibuilder.v1.BuilderContentError": {
303
+ "pushwoosh.aibuilder.v1.Content": {
382
304
  "type": "I",
383
305
  "fields": {
384
- "blockId": {
385
- "type": "string"
306
+ "items": {
307
+ "type": "pushwoosh.aibuilder.v1.ContentItem",
308
+ "array": true
386
309
  },
387
- "field": {
388
- "type": "string"
310
+ "textPrompt": {
311
+ "type": "string",
312
+ "optional": true
389
313
  },
390
- "error": {
391
- "type": "string"
314
+ "margin": {
315
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
316
+ "optional": true
317
+ },
318
+ "padding": {
319
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
320
+ "optional": true
392
321
  }
393
322
  }
394
323
  },
395
- "pushwoosh.aibuilder.v1.BuilderCreateTextDelta": {
324
+ "pushwoosh.aibuilder.v1.Image": {
396
325
  "type": "I",
397
326
  "fields": {
398
- "blockId": {
399
- "type": "string"
400
- },
401
- "field": {
327
+ "prompt": {
402
328
  "type": "string"
403
329
  },
404
- "textBlock": {
405
- "type": "pushwoosh.aibuilder.v1.TextBlock"
406
- }
407
- }
408
- },
409
- "pushwoosh.aibuilder.v1.BuilderCreateImageDelta": {
410
- "type": "I",
411
- "fields": {
412
- "blockId": {
330
+ "width": {
413
331
  "type": "string"
414
332
  },
415
- "field": {
333
+ "height": {
416
334
  "type": "string"
417
335
  },
418
336
  "src": {
@@ -421,381 +339,340 @@ export const data = {
421
339
  "alt": {
422
340
  "type": "string"
423
341
  },
424
- "width": {
425
- "type": "number"
426
- },
427
- "height": {
428
- "type": "number"
429
- },
430
342
  "mediaUuid": {
431
343
  "type": "string"
432
- }
433
- }
434
- },
435
- "pushwoosh.aibuilder.v1.BuilderCreateButtonGroupDelta": {
436
- "type": "I",
437
- "fields": {
438
- "blockId": {
439
- "type": "string"
440
- },
441
- "field": {
442
- "type": "string"
443
344
  },
444
- "buttonGroup": {
445
- "type": "pushwoosh.aibuilder.v1.ButtonGroup"
446
- }
447
- }
448
- },
449
- "pushwoosh.aibuilder.v1.DocumentBlockType": {
450
- "type": "E",
451
- "values": [
452
- "DOCUMENT_BLOCK_TYPE_UNSPECIFIED",
453
- "DOCUMENT_BLOCK_TYPE_CARD",
454
- "DOCUMENT_BLOCK_TYPE_COLUMNS"
455
- ]
456
- },
457
- "pushwoosh.aibuilder.v1.CardLayout": {
458
- "type": "E",
459
- "values": [
460
- "CARD_LAYOUT_UNSPECIFIED",
461
- "CARD_LAYOUT_RIGHT",
462
- "CARD_LAYOUT_LEFT",
463
- "CARD_LAYOUT_TOP",
464
- "CARD_LAYOUT_NO",
465
- "CARD_LAYOUT_BACKGROUND"
466
- ]
467
- },
468
- "pushwoosh.aibuilder.v1.ButtonGroupAlign": {
469
- "type": "E",
470
- "values": [
471
- "BUTTON_GROUP_ALIGN_UNSPECIFIED",
472
- "BUTTON_GROUP_ALIGN_LEFT",
473
- "BUTTON_GROUP_ALIGN_CENTER",
474
- "BUTTON_GROUP_ALIGN_RIGHT"
475
- ]
476
- },
477
- "pushwoosh.aibuilder.v1.CardImageFit": {
478
- "type": "E",
479
- "values": [
480
- "CARD_IMAGE_FIT_UNSPECIFIED",
481
- "CARD_IMAGE_FIT_COVER",
482
- "CARD_IMAGE_FIT_CONTAIN",
483
- "CARD_IMAGE_FIT_FILL"
484
- ]
485
- },
486
- "pushwoosh.aibuilder.v1.TextVariantStyle": {
487
- "type": "I",
488
- "fields": {
489
- "fontSize": {
490
- "type": "number"
491
- },
492
- "fontWeight": {
345
+ "origWidth": {
493
346
  "type": "number"
494
347
  },
495
- "lineHeight": {
348
+ "origHeight": {
496
349
  "type": "number"
497
350
  }
498
351
  }
499
352
  },
500
- "pushwoosh.aibuilder.v1.ColorSchemeItem": {
501
- "type": "I",
502
- "fields": {
503
- "color": {
504
- "type": "string"
505
- },
506
- "description": {
507
- "type": "string"
508
- }
509
- }
510
- },
511
- "pushwoosh.aibuilder.v1.EdgeInsets": {
353
+ "pushwoosh.aibuilder.v1.AiBuilderCard": {
512
354
  "type": "I",
513
355
  "fields": {
514
- "top": {
515
- "type": "number"
516
- },
517
- "right": {
518
- "type": "number"
356
+ "layout": {
357
+ "type": "pushwoosh.aibuilder.v1.CardLayout"
519
358
  },
520
- "bottom": {
521
- "type": "number"
359
+ "image": {
360
+ "type": "pushwoosh.aibuilder.v1.Image",
361
+ "optional": true
522
362
  },
523
- "left": {
524
- "type": "number"
525
- }
526
- }
527
- },
528
- "pushwoosh.aibuilder.v1.BlockStyles": {
529
- "type": "I",
530
- "fields": {
531
- "backgroundColor": {
532
- "type": "string"
363
+ "content": {
364
+ "type": "pushwoosh.aibuilder.v1.Content"
533
365
  },
534
- "borderColor": {
535
- "type": "string"
366
+ "styles": {
367
+ "type": "pushwoosh.aibuilder.v1.CardStyles",
368
+ "optional": true
536
369
  },
537
- "borderWidth": {
538
- "type": "number"
370
+ "imageFit": {
371
+ "type": "pushwoosh.aibuilder.v1.CardImageFit"
539
372
  },
540
- "borderRadius": {
541
- "type": "number"
373
+ "accentFit": {
374
+ "type": "boolean"
542
375
  }
543
376
  }
544
377
  },
545
- "pushwoosh.aibuilder.v1.ColumnsStyles": {
378
+ "pushwoosh.aibuilder.v1.AiBuilderColumns": {
546
379
  "type": "I",
547
380
  "fields": {
548
- "columnPadding": {
549
- "type": "pushwoosh.aibuilder.v1.EdgeInsets",
381
+ "columns": {
382
+ "type": "pushwoosh.aibuilder.v1.AiBuilderColumn",
383
+ "array": true
384
+ },
385
+ "styles": {
386
+ "type": "pushwoosh.aibuilder.v1.ColumnsStyles",
550
387
  "optional": true
551
388
  },
552
- "gap": {
553
- "type": "number",
389
+ "withImages": {
390
+ "type": "boolean"
391
+ },
392
+ "contentBefore": {
393
+ "type": "pushwoosh.aibuilder.v1.Content",
554
394
  "optional": true
555
395
  },
556
- "padding": {
557
- "type": "pushwoosh.aibuilder.v1.EdgeInsets",
396
+ "contentAfter": {
397
+ "type": "pushwoosh.aibuilder.v1.Content",
558
398
  "optional": true
559
399
  }
560
400
  }
561
401
  },
562
- "pushwoosh.aibuilder.v1.CardStyles": {
402
+ "pushwoosh.aibuilder.v1.AiBuilderColumn": {
563
403
  "type": "I",
564
404
  "fields": {
565
- "accentFitPadding": {
566
- "type": "pushwoosh.aibuilder.v1.EdgeInsets",
405
+ "image": {
406
+ "type": "pushwoosh.aibuilder.v1.Image",
567
407
  "optional": true
568
408
  },
569
- "contentPadding": {
570
- "type": "pushwoosh.aibuilder.v1.EdgeInsets",
409
+ "content": {
410
+ "type": "pushwoosh.aibuilder.v1.Content"
411
+ },
412
+ "width": {
413
+ "type": "string",
571
414
  "optional": true
572
415
  }
573
416
  }
574
417
  },
575
- "pushwoosh.aibuilder.v1.DefaultStyles": {
418
+ "pushwoosh.aibuilder.v1.AiBuilderBlock": {
576
419
  "type": "I",
577
420
  "fields": {
578
- "common": {
579
- "type": "pushwoosh.aibuilder.v1.BlockStyles"
580
- },
581
- "columns": {
582
- "type": "pushwoosh.aibuilder.v1.ColumnsStyles"
421
+ "id": {
422
+ "type": "string"
583
423
  },
584
424
  "card": {
585
- "type": "pushwoosh.aibuilder.v1.CardStyles"
425
+ "type": "pushwoosh.aibuilder.v1.AiBuilderCard"
586
426
  },
587
- "buttonGroup": {
588
- "type": "pushwoosh.aibuilder.v1.ButtonGroupStyles"
427
+ "columns": {
428
+ "type": "pushwoosh.aibuilder.v1.AiBuilderColumns"
589
429
  },
590
- "button": {
591
- "type": "pushwoosh.aibuilder.v1.ButtonStyles"
430
+ "styles": {
431
+ "type": "pushwoosh.aibuilder.v1.BlockStyles",
432
+ "optional": true
433
+ }
434
+ },
435
+ "oneofs": {
436
+ "block": {
437
+ "oneof": [
438
+ "card",
439
+ "columns"
440
+ ]
592
441
  }
593
442
  }
594
443
  },
595
- "pushwoosh.aibuilder.v1.DocumentSettings": {
444
+ "pushwoosh.aibuilder.v1.EmailMeta": {
596
445
  "type": "I",
597
446
  "fields": {
598
- "width": {
599
- "type": "number"
600
- },
601
- "blockGap": {
602
- "type": "number"
603
- },
604
- "padding": {
605
- "type": "pushwoosh.aibuilder.v1.EdgeInsets"
606
- },
607
- "backgroundColor": {
447
+ "subject": {
608
448
  "type": "string"
609
449
  },
610
- "textColor": {
450
+ "preheader": {
611
451
  "type": "string"
612
452
  },
613
- "defaultStyles": {
614
- "type": "pushwoosh.aibuilder.v1.DefaultStyles"
453
+ "templateName": {
454
+ "type": "string"
615
455
  }
616
456
  }
617
457
  },
618
- "pushwoosh.aibuilder.v1.TextBlock": {
458
+ "pushwoosh.aibuilder.v1.AiBuilderPage": {
619
459
  "type": "I",
620
460
  "fields": {
621
- "variant": {
461
+ "id": {
622
462
  "type": "string"
623
463
  },
624
- "text": {
625
- "type": "string"
464
+ "blocks": {
465
+ "type": "pushwoosh.aibuilder.v1.AiBuilderBlock",
466
+ "array": true
626
467
  }
627
468
  }
628
469
  },
629
- "pushwoosh.aibuilder.v1.ButtonActionHref": {
470
+ "pushwoosh.aibuilder.v1.AiBuilderDocument": {
630
471
  "type": "I",
631
472
  "fields": {
632
- "url": {
633
- "type": "string"
473
+ "pages": {
474
+ "type": "pushwoosh.aibuilder.v1.AiBuilderPage",
475
+ "array": true
476
+ },
477
+ "settings": {
478
+ "type": "pushwoosh.aibuilder.v1.DocumentSettings"
479
+ },
480
+ "textVariants": {
481
+ "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
482
+ "mapKeyType": "string"
483
+ },
484
+ "colorScheme": {
485
+ "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
486
+ "mapKeyType": "string"
487
+ },
488
+ "emailMeta": {
489
+ "type": "pushwoosh.aibuilder.v1.EmailMeta"
634
490
  }
635
491
  }
636
492
  },
637
- "pushwoosh.aibuilder.v1.ButtonAction": {
638
- "type": "I",
639
- "fields": {
640
- "href": {
641
- "type": "pushwoosh.aibuilder.v1.ButtonActionHref"
642
- }
643
- },
644
- "oneofs": {
645
- "action": {
646
- "oneof": [
647
- "href"
648
- ]
493
+ "pushwoosh.aigen.v1.AiGenService": {
494
+ "type": "S",
495
+ "key": "aiGen",
496
+ "methods": {
497
+ "Generate": {
498
+ "request": "pushwoosh.aigen.v1.AiGenRequest",
499
+ "response": "pushwoosh.aigen.v1.AiGenEvent",
500
+ "method": "post",
501
+ "path": "/api/v1/aigen/generate",
502
+ "serverStreaming": true
649
503
  }
650
504
  }
651
505
  },
652
- "pushwoosh.aibuilder.v1.Button": {
506
+ "pushwoosh.aigen.v1.AiGenBlockTypeHint": {
507
+ "type": "E",
508
+ "values": [
509
+ "AI_GEN_BLOCK_TYPE_HINT_UNSPECIFIED",
510
+ "AI_GEN_BLOCK_TYPE_HINT_CARD",
511
+ "AI_GEN_BLOCK_TYPE_HINT_COLUMNS"
512
+ ]
513
+ },
514
+ "pushwoosh.aigen.v1.AiGenBlockPath": {
653
515
  "type": "I",
654
516
  "fields": {
655
- "text": {
656
- "type": "string"
657
- },
658
- "action": {
659
- "type": "pushwoosh.aibuilder.v1.ButtonAction"
660
- },
661
- "styles": {
662
- "type": "pushwoosh.aibuilder.v1.ButtonStyles",
663
- "optional": true
517
+ "path": {
518
+ "type": "string",
519
+ "array": true
664
520
  }
665
521
  }
666
522
  },
667
- "pushwoosh.aibuilder.v1.ButtonStyles": {
523
+ "pushwoosh.aigen.v1.AiGenRequest": {
668
524
  "type": "I",
669
525
  "fields": {
670
- "backgroundColor": {
671
- "type": "string",
526
+ "prompt": {
527
+ "type": "string"
528
+ },
529
+ "document": {
530
+ "type": "pushwoosh.aibuilder.v1.AiBuilderDocument",
672
531
  "optional": true
673
532
  },
674
- "textColor": {
533
+ "blockPath": {
675
534
  "type": "string",
676
- "optional": true
535
+ "array": true
677
536
  },
678
- "borderRadius": {
679
- "type": "number",
680
- "optional": true
537
+ "application": {
538
+ "type": "string"
539
+ },
540
+ "generateImages": {
541
+ "type": "boolean"
681
542
  },
682
- "borderColor": {
683
- "type": "string",
543
+ "settings": {
544
+ "type": "pushwoosh.aibuilder.v1.DocumentSettings",
684
545
  "optional": true
685
546
  },
686
- "borderWidth": {
687
- "type": "number",
688
- "optional": true
547
+ "textVariants": {
548
+ "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
549
+ "mapKeyType": "string"
689
550
  },
690
- "fontSize": {
691
- "type": "number",
551
+ "colorScheme": {
552
+ "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
553
+ "mapKeyType": "string"
554
+ },
555
+ "addBlock": {
556
+ "type": "pushwoosh.aigen.v1.AiGenAddBlock",
692
557
  "optional": true
693
558
  }
694
559
  }
695
560
  },
696
- "pushwoosh.aibuilder.v1.ButtonGroup": {
561
+ "pushwoosh.aigen.v1.AiGenAddBlock": {
697
562
  "type": "I",
698
563
  "fields": {
699
- "buttons": {
700
- "type": "pushwoosh.aibuilder.v1.Button",
564
+ "blockPath": {
565
+ "type": "string",
701
566
  "array": true
702
567
  },
703
- "styles": {
704
- "type": "pushwoosh.aibuilder.v1.ButtonGroupStyles",
705
- "optional": true
568
+ "afterPath": {
569
+ "type": "string",
570
+ "array": true
706
571
  },
707
- "align": {
708
- "type": "pushwoosh.aibuilder.v1.ButtonGroupAlign"
572
+ "typeHint": {
573
+ "type": "pushwoosh.aigen.v1.AiGenBlockTypeHint"
709
574
  }
710
575
  }
711
576
  },
712
- "pushwoosh.aibuilder.v1.ButtonGroupStyles": {
577
+ "pushwoosh.aigen.v1.AiGenStructureBlock": {
713
578
  "type": "I",
714
579
  "fields": {
715
- "padding": {
716
- "type": "pushwoosh.aibuilder.v1.EdgeInsets",
717
- "optional": true
718
- },
719
- "backgroundColor": {
580
+ "blockPath": {
720
581
  "type": "string",
721
- "optional": true
582
+ "array": true
722
583
  },
723
- "gap": {
724
- "type": "number",
725
- "optional": true
584
+ "typeHint": {
585
+ "type": "pushwoosh.aigen.v1.AiGenBlockTypeHint"
586
+ },
587
+ "prompt": {
588
+ "type": "string"
726
589
  }
727
590
  }
728
591
  },
729
- "pushwoosh.aibuilder.v1.ContentItem": {
592
+ "pushwoosh.aigen.v1.AiGenStructure": {
730
593
  "type": "I",
731
594
  "fields": {
732
- "text": {
733
- "type": "pushwoosh.aibuilder.v1.TextBlock"
734
- },
735
- "buttonGroup": {
736
- "type": "pushwoosh.aibuilder.v1.ButtonGroup"
737
- }
738
- },
739
- "oneofs": {
740
- "item": {
741
- "oneof": [
742
- "text",
743
- "buttonGroup"
744
- ]
595
+ "blocks": {
596
+ "type": "pushwoosh.aigen.v1.AiGenStructureBlock",
597
+ "array": true
745
598
  }
746
599
  }
747
600
  },
748
- "pushwoosh.aibuilder.v1.Content": {
601
+ "pushwoosh.aigen.v1.AiGenStructureAdd": {
749
602
  "type": "I",
750
603
  "fields": {
751
- "items": {
752
- "type": "pushwoosh.aibuilder.v1.ContentItem",
604
+ "blockPath": {
605
+ "type": "string",
753
606
  "array": true
754
607
  },
755
- "textPrompt": {
756
- "type": "string",
757
- "optional": true
608
+ "typeHint": {
609
+ "type": "pushwoosh.aigen.v1.AiGenBlockTypeHint"
758
610
  },
759
- "margin": {
760
- "type": "pushwoosh.aibuilder.v1.EdgeInsets",
761
- "optional": true
611
+ "prompt": {
612
+ "type": "string"
762
613
  },
763
- "padding": {
764
- "type": "pushwoosh.aibuilder.v1.EdgeInsets",
765
- "optional": true
614
+ "afterPath": {
615
+ "type": "string",
616
+ "array": true
766
617
  }
767
618
  }
768
619
  },
769
- "pushwoosh.aibuilder.v1.Image": {
620
+ "pushwoosh.aigen.v1.AiGenStructureReplace": {
770
621
  "type": "I",
771
622
  "fields": {
623
+ "blockPath": {
624
+ "type": "string",
625
+ "array": true
626
+ },
627
+ "typeHint": {
628
+ "type": "pushwoosh.aigen.v1.AiGenBlockTypeHint"
629
+ },
772
630
  "prompt": {
773
631
  "type": "string"
632
+ }
633
+ }
634
+ },
635
+ "pushwoosh.aigen.v1.AiGenStructureDiff": {
636
+ "type": "I",
637
+ "fields": {
638
+ "add": {
639
+ "type": "pushwoosh.aigen.v1.AiGenStructureAdd",
640
+ "array": true
774
641
  },
775
- "width": {
776
- "type": "string"
642
+ "remove": {
643
+ "type": "pushwoosh.aigen.v1.AiGenBlockPath",
644
+ "array": true
777
645
  },
778
- "height": {
779
- "type": "string"
646
+ "replace": {
647
+ "type": "pushwoosh.aigen.v1.AiGenStructureReplace",
648
+ "array": true
780
649
  },
781
- "src": {
782
- "type": "string"
650
+ "updateSettings": {
651
+ "type": "pushwoosh.aibuilder.v1.DocumentSettings",
652
+ "optional": true
783
653
  },
784
- "alt": {
785
- "type": "string"
654
+ "updateTextVariants": {
655
+ "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
656
+ "mapKeyType": "string"
786
657
  },
787
- "mediaUuid": {
658
+ "updateColorScheme": {
659
+ "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
660
+ "mapKeyType": "string"
661
+ }
662
+ }
663
+ },
664
+ "pushwoosh.aigen.v1.AiGenBlockColors": {
665
+ "type": "I",
666
+ "fields": {
667
+ "backgroundColor": {
788
668
  "type": "string"
789
669
  },
790
- "origWidth": {
791
- "type": "number"
792
- },
793
- "origHeight": {
794
- "type": "number"
670
+ "borderColor": {
671
+ "type": "string"
795
672
  }
796
673
  }
797
674
  },
798
- "pushwoosh.aibuilder.v1.AiBuilderCard": {
675
+ "pushwoosh.aigen.v1.AiGenCard": {
799
676
  "type": "I",
800
677
  "fields": {
801
678
  "layout": {
@@ -808,10 +685,6 @@ export const data = {
808
685
  "content": {
809
686
  "type": "pushwoosh.aibuilder.v1.Content"
810
687
  },
811
- "styles": {
812
- "type": "pushwoosh.aibuilder.v1.CardStyles",
813
- "optional": true
814
- },
815
688
  "imageFit": {
816
689
  "type": "pushwoosh.aibuilder.v1.CardImageFit"
817
690
  },
@@ -820,60 +693,53 @@ export const data = {
820
693
  }
821
694
  }
822
695
  },
823
- "pushwoosh.aibuilder.v1.AiBuilderColumns": {
696
+ "pushwoosh.aigen.v1.AiGenColumn": {
824
697
  "type": "I",
825
698
  "fields": {
826
- "columns": {
827
- "type": "pushwoosh.aibuilder.v1.AiBuilderColumn",
828
- "array": true
829
- },
830
- "styles": {
831
- "type": "pushwoosh.aibuilder.v1.ColumnsStyles",
699
+ "image": {
700
+ "type": "pushwoosh.aibuilder.v1.Image",
832
701
  "optional": true
833
702
  },
834
- "withImages": {
835
- "type": "boolean"
836
- },
837
- "contentBefore": {
838
- "type": "pushwoosh.aibuilder.v1.Content",
839
- "optional": true
703
+ "content": {
704
+ "type": "pushwoosh.aibuilder.v1.Content"
840
705
  },
841
- "contentAfter": {
842
- "type": "pushwoosh.aibuilder.v1.Content",
706
+ "width": {
707
+ "type": "string",
843
708
  "optional": true
844
709
  }
845
710
  }
846
711
  },
847
- "pushwoosh.aibuilder.v1.AiBuilderColumn": {
712
+ "pushwoosh.aigen.v1.AiGenColumns": {
848
713
  "type": "I",
849
714
  "fields": {
850
- "image": {
851
- "type": "pushwoosh.aibuilder.v1.Image",
852
- "optional": true
715
+ "withImages": {
716
+ "type": "boolean"
853
717
  },
854
- "content": {
855
- "type": "pushwoosh.aibuilder.v1.Content"
718
+ "columns": {
719
+ "type": "pushwoosh.aigen.v1.AiGenColumn",
720
+ "array": true
856
721
  },
857
- "width": {
858
- "type": "string",
722
+ "contentBefore": {
723
+ "type": "pushwoosh.aibuilder.v1.Content",
724
+ "optional": true
725
+ },
726
+ "contentAfter": {
727
+ "type": "pushwoosh.aibuilder.v1.Content",
859
728
  "optional": true
860
729
  }
861
730
  }
862
731
  },
863
- "pushwoosh.aibuilder.v1.AiBuilderBlock": {
732
+ "pushwoosh.aigen.v1.AiGenBlock": {
864
733
  "type": "I",
865
734
  "fields": {
866
- "id": {
867
- "type": "string"
868
- },
869
735
  "card": {
870
- "type": "pushwoosh.aibuilder.v1.AiBuilderCard"
736
+ "type": "pushwoosh.aigen.v1.AiGenCard"
871
737
  },
872
738
  "columns": {
873
- "type": "pushwoosh.aibuilder.v1.AiBuilderColumns"
739
+ "type": "pushwoosh.aigen.v1.AiGenColumns"
874
740
  },
875
741
  "styles": {
876
- "type": "pushwoosh.aibuilder.v1.BlockStyles",
742
+ "type": "pushwoosh.aigen.v1.AiGenBlockColors",
877
743
  "optional": true
878
744
  }
879
745
  },
@@ -886,37 +752,123 @@ export const data = {
886
752
  }
887
753
  }
888
754
  },
889
- "pushwoosh.aibuilder.v1.EmailMeta": {
755
+ "pushwoosh.aigen.v1.AiGenBlockDelta": {
890
756
  "type": "I",
891
757
  "fields": {
892
- "subject": {
758
+ "blockPath": {
759
+ "type": "string",
760
+ "array": true
761
+ },
762
+ "block": {
763
+ "type": "pushwoosh.aigen.v1.AiGenBlock"
764
+ }
765
+ }
766
+ },
767
+ "pushwoosh.aigen.v1.AiGenImageDelta": {
768
+ "type": "I",
769
+ "fields": {
770
+ "blockPath": {
771
+ "type": "string",
772
+ "array": true
773
+ },
774
+ "field": {
893
775
  "type": "string"
894
776
  },
895
- "preheader": {
777
+ "src": {
778
+ "type": "string"
779
+ },
780
+ "alt": {
781
+ "type": "string"
782
+ },
783
+ "width": {
784
+ "type": "number"
785
+ },
786
+ "height": {
787
+ "type": "number"
788
+ },
789
+ "mediaUuid": {
896
790
  "type": "string"
897
791
  }
898
792
  }
899
793
  },
900
- "pushwoosh.aibuilder.v1.AiBuilderDocument": {
794
+ "pushwoosh.aigen.v1.AiGenBlockError": {
901
795
  "type": "I",
902
796
  "fields": {
903
- "blocks": {
904
- "type": "pushwoosh.aibuilder.v1.AiBuilderBlock",
797
+ "blockPath": {
798
+ "type": "string",
905
799
  "array": true
906
800
  },
907
- "settings": {
908
- "type": "pushwoosh.aibuilder.v1.DocumentSettings"
801
+ "field": {
802
+ "type": "string"
909
803
  },
910
- "textVariants": {
911
- "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
912
- "mapKeyType": "string"
804
+ "error": {
805
+ "type": "string"
806
+ }
807
+ }
808
+ },
809
+ "pushwoosh.aigen.v1.AiGenDoneEvent": {
810
+ "type": "I",
811
+ "fields": {
812
+ "summary": {
813
+ "type": "string"
814
+ }
815
+ }
816
+ },
817
+ "pushwoosh.aigen.v1.AiGenTextDescription": {
818
+ "type": "I",
819
+ "fields": {
820
+ "type": {
821
+ "type": "string"
913
822
  },
914
- "colorScheme": {
915
- "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
916
- "mapKeyType": "string"
823
+ "description": {
824
+ "type": "string"
825
+ }
826
+ }
827
+ },
828
+ "pushwoosh.aigen.v1.AiGenEvent": {
829
+ "type": "I",
830
+ "fields": {
831
+ "progress": {
832
+ "type": "string"
917
833
  },
918
- "emailMeta": {
919
- "type": "pushwoosh.aibuilder.v1.EmailMeta"
834
+ "structure": {
835
+ "type": "pushwoosh.aigen.v1.AiGenStructure"
836
+ },
837
+ "structureDiff": {
838
+ "type": "pushwoosh.aigen.v1.AiGenStructureDiff"
839
+ },
840
+ "blockDelta": {
841
+ "type": "pushwoosh.aigen.v1.AiGenBlockDelta"
842
+ },
843
+ "imageDelta": {
844
+ "type": "pushwoosh.aigen.v1.AiGenImageDelta"
845
+ },
846
+ "blockError": {
847
+ "type": "pushwoosh.aigen.v1.AiGenBlockError"
848
+ },
849
+ "done": {
850
+ "type": "pushwoosh.aigen.v1.AiGenDoneEvent"
851
+ },
852
+ "fatal": {
853
+ "type": "string"
854
+ },
855
+ "textDescription": {
856
+ "type": "pushwoosh.aigen.v1.AiGenTextDescription"
857
+ }
858
+ },
859
+ "oneofs": {
860
+ "event": {
861
+ "oneof": [
862
+ "progress",
863
+ "structure",
864
+ "structureDiff",
865
+ "blockDelta",
866
+ "imageDelta",
867
+ "blockError",
868
+ "done",
869
+ "fatal",
870
+ "textDescription"
871
+ ]
920
872
  }
921
873
  }
922
874
  },