@pushwoosh/rpc-gateway-ai-assistant 0.1.100

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 ADDED
@@ -0,0 +1,1081 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
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
+ }
23
+ },
24
+ "pushwoosh.aibuilder.v1.LLMProvider": {
25
+ "type": "E",
26
+ "values": [
27
+ "LLM_PROVIDER_UNSPECIFIED",
28
+ "LLM_PROVIDER_QWEN",
29
+ "LLM_PROVIDER_GEMINI"
30
+ ]
31
+ },
32
+ "pushwoosh.aibuilder.v1.BuilderCreateRequest": {
33
+ "type": "I",
34
+ "fields": {
35
+ "prompt": {
36
+ "type": "string"
37
+ },
38
+ "application": {
39
+ "type": "string"
40
+ },
41
+ "structureModel": {
42
+ "type": "pushwoosh.aibuilder.v1.LLMProvider"
43
+ },
44
+ "textModel": {
45
+ "type": "pushwoosh.aibuilder.v1.LLMProvider"
46
+ },
47
+ "generateImages": {
48
+ "type": "boolean"
49
+ },
50
+ "settings": {
51
+ "type": "pushwoosh.aibuilder.v1.DocumentSettings"
52
+ },
53
+ "textVariants": {
54
+ "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
55
+ "mapKeyType": "string"
56
+ },
57
+ "colorScheme": {
58
+ "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
59
+ "mapKeyType": "string"
60
+ }
61
+ }
62
+ },
63
+ "pushwoosh.aibuilder.v1.BuilderUpdateRequest": {
64
+ "type": "I",
65
+ "fields": {
66
+ "document": {
67
+ "type": "pushwoosh.aibuilder.v1.AiBuilderDocument"
68
+ },
69
+ "prompt": {
70
+ "type": "string"
71
+ },
72
+ "blockId": {
73
+ "type": "string",
74
+ "optional": true
75
+ },
76
+ "application": {
77
+ "type": "string"
78
+ },
79
+ "textVariants": {
80
+ "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
81
+ "mapKeyType": "string"
82
+ },
83
+ "colorScheme": {
84
+ "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
85
+ "mapKeyType": "string"
86
+ },
87
+ "model": {
88
+ "type": "pushwoosh.aibuilder.v1.LLMProvider"
89
+ }
90
+ },
91
+ "oneofs": {}
92
+ },
93
+ "pushwoosh.aibuilder.v1.BuilderDoneEvent": {
94
+ "type": "I",
95
+ "fields": {
96
+ "summary": {
97
+ "type": "string"
98
+ }
99
+ }
100
+ },
101
+ "pushwoosh.aibuilder.v1.BuilderUpdateEvent": {
102
+ "type": "I",
103
+ "fields": {
104
+ "updateBlock": {
105
+ "type": "pushwoosh.aibuilder.v1.AiBuilderBlock"
106
+ },
107
+ "deleteBlock": {
108
+ "type": "string"
109
+ },
110
+ "done": {
111
+ "type": "pushwoosh.aibuilder.v1.BuilderDoneEvent"
112
+ },
113
+ "error": {
114
+ "type": "string"
115
+ },
116
+ "updateSettings": {
117
+ "type": "pushwoosh.aibuilder.v1.DocumentSettings"
118
+ }
119
+ },
120
+ "oneofs": {
121
+ "event": {
122
+ "oneof": [
123
+ "updateBlock",
124
+ "deleteBlock",
125
+ "done",
126
+ "error",
127
+ "updateSettings"
128
+ ]
129
+ }
130
+ }
131
+ },
132
+ "pushwoosh.aibuilder.v1.BuilderCreateDocument": {
133
+ "type": "I",
134
+ "fields": {
135
+ "blocks": {
136
+ "type": "pushwoosh.aibuilder.v1.BuilderCreateDocumentBlock",
137
+ "array": true
138
+ },
139
+ "settings": {
140
+ "type": "pushwoosh.aibuilder.v1.DocumentSettings"
141
+ },
142
+ "textVariants": {
143
+ "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
144
+ "mapKeyType": "string"
145
+ },
146
+ "colorScheme": {
147
+ "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
148
+ "mapKeyType": "string"
149
+ }
150
+ }
151
+ },
152
+ "pushwoosh.aibuilder.v1.BuilderCreateDocumentBlock": {
153
+ "type": "I",
154
+ "fields": {
155
+ "id": {
156
+ "type": "string"
157
+ },
158
+ "card": {
159
+ "type": "pushwoosh.aibuilder.v1.BuilderCreateCard"
160
+ },
161
+ "columns": {
162
+ "type": "pushwoosh.aibuilder.v1.BuilderCreateColumns"
163
+ },
164
+ "styles": {
165
+ "type": "pushwoosh.aibuilder.v1.BlockStyles",
166
+ "optional": true
167
+ }
168
+ },
169
+ "oneofs": {
170
+ "block": {
171
+ "oneof": [
172
+ "card",
173
+ "columns"
174
+ ]
175
+ }
176
+ }
177
+ },
178
+ "pushwoosh.aibuilder.v1.BuilderCreateCard": {
179
+ "type": "I",
180
+ "fields": {
181
+ "layout": {
182
+ "type": "pushwoosh.aibuilder.v1.DocumentBlockLayout"
183
+ },
184
+ "image": {
185
+ "type": "pushwoosh.aibuilder.v1.Image",
186
+ "optional": true
187
+ },
188
+ "textPrompt": {
189
+ "type": "string"
190
+ },
191
+ "textCount": {
192
+ "type": "number"
193
+ }
194
+ },
195
+ "oneofs": {}
196
+ },
197
+ "pushwoosh.aibuilder.v1.BuilderCreateColumns": {
198
+ "type": "I",
199
+ "fields": {
200
+ "withImages": {
201
+ "type": "boolean"
202
+ },
203
+ "columns": {
204
+ "type": "pushwoosh.aibuilder.v1.BuilderCreateColumn",
205
+ "array": true
206
+ }
207
+ }
208
+ },
209
+ "pushwoosh.aibuilder.v1.BuilderCreateColumn": {
210
+ "type": "I",
211
+ "fields": {
212
+ "image": {
213
+ "type": "pushwoosh.aibuilder.v1.Image",
214
+ "optional": true
215
+ },
216
+ "textPrompt": {
217
+ "type": "string"
218
+ },
219
+ "textCount": {
220
+ "type": "number"
221
+ }
222
+ },
223
+ "oneofs": {}
224
+ },
225
+ "pushwoosh.aibuilder.v1.BuilderCreateStreamEvent": {
226
+ "type": "I",
227
+ "fields": {
228
+ "structure": {
229
+ "type": "pushwoosh.aibuilder.v1.BuilderCreateDocument"
230
+ },
231
+ "textDelta": {
232
+ "type": "pushwoosh.aibuilder.v1.BuilderCreateTextDelta"
233
+ },
234
+ "imageDelta": {
235
+ "type": "pushwoosh.aibuilder.v1.BuilderCreateImageDelta"
236
+ },
237
+ "done": {
238
+ "type": "pushwoosh.aibuilder.v1.BuilderDoneEvent"
239
+ },
240
+ "error": {
241
+ "type": "string"
242
+ },
243
+ "progress": {
244
+ "type": "string"
245
+ },
246
+ "buttonGroupDelta": {
247
+ "type": "pushwoosh.aibuilder.v1.BuilderCreateButtonGroupDelta"
248
+ },
249
+ "contentError": {
250
+ "type": "pushwoosh.aibuilder.v1.BuilderContentError"
251
+ }
252
+ },
253
+ "oneofs": {
254
+ "event": {
255
+ "oneof": [
256
+ "structure",
257
+ "textDelta",
258
+ "imageDelta",
259
+ "done",
260
+ "error",
261
+ "progress",
262
+ "buttonGroupDelta",
263
+ "contentError"
264
+ ]
265
+ }
266
+ }
267
+ },
268
+ "pushwoosh.aibuilder.v1.BuilderContentError": {
269
+ "type": "I",
270
+ "fields": {
271
+ "blockId": {
272
+ "type": "string"
273
+ },
274
+ "field": {
275
+ "type": "string"
276
+ },
277
+ "error": {
278
+ "type": "string"
279
+ }
280
+ }
281
+ },
282
+ "pushwoosh.aibuilder.v1.BuilderCreateTextDelta": {
283
+ "type": "I",
284
+ "fields": {
285
+ "blockId": {
286
+ "type": "string"
287
+ },
288
+ "field": {
289
+ "type": "string"
290
+ },
291
+ "textBlock": {
292
+ "type": "pushwoosh.aibuilder.v1.TextBlock"
293
+ }
294
+ }
295
+ },
296
+ "pushwoosh.aibuilder.v1.BuilderCreateImageDelta": {
297
+ "type": "I",
298
+ "fields": {
299
+ "blockId": {
300
+ "type": "string"
301
+ },
302
+ "field": {
303
+ "type": "string"
304
+ },
305
+ "src": {
306
+ "type": "string"
307
+ },
308
+ "alt": {
309
+ "type": "string"
310
+ },
311
+ "width": {
312
+ "type": "number"
313
+ },
314
+ "height": {
315
+ "type": "number"
316
+ }
317
+ }
318
+ },
319
+ "pushwoosh.aibuilder.v1.BuilderCreateButtonGroupDelta": {
320
+ "type": "I",
321
+ "fields": {
322
+ "blockId": {
323
+ "type": "string"
324
+ },
325
+ "field": {
326
+ "type": "string"
327
+ },
328
+ "buttonGroup": {
329
+ "type": "pushwoosh.aibuilder.v1.ButtonGroup"
330
+ }
331
+ }
332
+ },
333
+ "pushwoosh.aibuilder.v1.DocumentBlockLayout": {
334
+ "type": "E",
335
+ "values": [
336
+ "DOCUMENT_BLOCK_LAYOUT_UNSPECIFIED",
337
+ "DOCUMENT_BLOCK_LAYOUT_RIGHT",
338
+ "DOCUMENT_BLOCK_LAYOUT_LEFT",
339
+ "DOCUMENT_BLOCK_LAYOUT_TOP",
340
+ "DOCUMENT_BLOCK_LAYOUT_NO",
341
+ "DOCUMENT_BLOCK_LAYOUT_BACKGROUND"
342
+ ]
343
+ },
344
+ "pushwoosh.aibuilder.v1.TextVariantStyle": {
345
+ "type": "I",
346
+ "fields": {
347
+ "fontSize": {
348
+ "type": "number"
349
+ },
350
+ "fontWeight": {
351
+ "type": "number"
352
+ },
353
+ "lineHeight": {
354
+ "type": "number"
355
+ }
356
+ }
357
+ },
358
+ "pushwoosh.aibuilder.v1.ColorSchemeItem": {
359
+ "type": "I",
360
+ "fields": {
361
+ "color": {
362
+ "type": "string"
363
+ },
364
+ "description": {
365
+ "type": "string"
366
+ }
367
+ }
368
+ },
369
+ "pushwoosh.aibuilder.v1.EdgeInsets": {
370
+ "type": "I",
371
+ "fields": {
372
+ "top": {
373
+ "type": "number"
374
+ },
375
+ "right": {
376
+ "type": "number"
377
+ },
378
+ "bottom": {
379
+ "type": "number"
380
+ },
381
+ "left": {
382
+ "type": "number"
383
+ }
384
+ }
385
+ },
386
+ "pushwoosh.aibuilder.v1.BlockStyles": {
387
+ "type": "I",
388
+ "fields": {
389
+ "padding": {
390
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets"
391
+ },
392
+ "backgroundColor": {
393
+ "type": "string"
394
+ },
395
+ "borderColor": {
396
+ "type": "string"
397
+ },
398
+ "borderWidth": {
399
+ "type": "number"
400
+ },
401
+ "borderRadius": {
402
+ "type": "number"
403
+ }
404
+ }
405
+ },
406
+ "pushwoosh.aibuilder.v1.ColumnsDefaultStyles": {
407
+ "type": "I",
408
+ "fields": {
409
+ "padding": {
410
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets"
411
+ }
412
+ }
413
+ },
414
+ "pushwoosh.aibuilder.v1.CardDefaultStyles": {
415
+ "type": "I",
416
+ "fields": {}
417
+ },
418
+ "pushwoosh.aibuilder.v1.DefaultStyles": {
419
+ "type": "I",
420
+ "fields": {
421
+ "common": {
422
+ "type": "pushwoosh.aibuilder.v1.BlockStyles"
423
+ },
424
+ "columns": {
425
+ "type": "pushwoosh.aibuilder.v1.ColumnsDefaultStyles"
426
+ },
427
+ "card": {
428
+ "type": "pushwoosh.aibuilder.v1.CardDefaultStyles"
429
+ }
430
+ }
431
+ },
432
+ "pushwoosh.aibuilder.v1.DocumentSettings": {
433
+ "type": "I",
434
+ "fields": {
435
+ "width": {
436
+ "type": "number"
437
+ },
438
+ "blockGap": {
439
+ "type": "number"
440
+ },
441
+ "padding": {
442
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets"
443
+ },
444
+ "backgroundColor": {
445
+ "type": "string"
446
+ },
447
+ "textColor": {
448
+ "type": "string"
449
+ },
450
+ "defaultStyles": {
451
+ "type": "pushwoosh.aibuilder.v1.DefaultStyles"
452
+ }
453
+ }
454
+ },
455
+ "pushwoosh.aibuilder.v1.TextBlock": {
456
+ "type": "I",
457
+ "fields": {
458
+ "variant": {
459
+ "type": "string"
460
+ },
461
+ "text": {
462
+ "type": "string"
463
+ }
464
+ }
465
+ },
466
+ "pushwoosh.aibuilder.v1.Button": {
467
+ "type": "I",
468
+ "fields": {
469
+ "text": {
470
+ "type": "string"
471
+ },
472
+ "url": {
473
+ "type": "string"
474
+ },
475
+ "backgroundColor": {
476
+ "type": "string"
477
+ },
478
+ "textColor": {
479
+ "type": "string"
480
+ },
481
+ "borderRadius": {
482
+ "type": "number"
483
+ },
484
+ "borderColor": {
485
+ "type": "string"
486
+ },
487
+ "borderWidth": {
488
+ "type": "number"
489
+ },
490
+ "fontSize": {
491
+ "type": "number"
492
+ }
493
+ }
494
+ },
495
+ "pushwoosh.aibuilder.v1.ButtonGroup": {
496
+ "type": "I",
497
+ "fields": {
498
+ "buttons": {
499
+ "type": "pushwoosh.aibuilder.v1.Button",
500
+ "array": true
501
+ },
502
+ "padding": {
503
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets"
504
+ },
505
+ "backgroundColor": {
506
+ "type": "string"
507
+ }
508
+ }
509
+ },
510
+ "pushwoosh.aibuilder.v1.ContentItem": {
511
+ "type": "I",
512
+ "fields": {
513
+ "text": {
514
+ "type": "pushwoosh.aibuilder.v1.TextBlock"
515
+ },
516
+ "buttonGroup": {
517
+ "type": "pushwoosh.aibuilder.v1.ButtonGroup"
518
+ }
519
+ },
520
+ "oneofs": {
521
+ "item": {
522
+ "oneof": [
523
+ "text",
524
+ "buttonGroup"
525
+ ]
526
+ }
527
+ }
528
+ },
529
+ "pushwoosh.aibuilder.v1.Content": {
530
+ "type": "I",
531
+ "fields": {
532
+ "items": {
533
+ "type": "pushwoosh.aibuilder.v1.ContentItem",
534
+ "array": true
535
+ }
536
+ }
537
+ },
538
+ "pushwoosh.aibuilder.v1.Image": {
539
+ "type": "I",
540
+ "fields": {
541
+ "prompt": {
542
+ "type": "string"
543
+ },
544
+ "width": {
545
+ "type": "number"
546
+ },
547
+ "height": {
548
+ "type": "number"
549
+ },
550
+ "src": {
551
+ "type": "string"
552
+ },
553
+ "alt": {
554
+ "type": "string"
555
+ }
556
+ }
557
+ },
558
+ "pushwoosh.aibuilder.v1.AiBuilderCard": {
559
+ "type": "I",
560
+ "fields": {
561
+ "layout": {
562
+ "type": "pushwoosh.aibuilder.v1.DocumentBlockLayout"
563
+ },
564
+ "image": {
565
+ "type": "pushwoosh.aibuilder.v1.Image",
566
+ "optional": true
567
+ },
568
+ "content": {
569
+ "type": "pushwoosh.aibuilder.v1.Content"
570
+ }
571
+ },
572
+ "oneofs": {}
573
+ },
574
+ "pushwoosh.aibuilder.v1.AiBuilderColumns": {
575
+ "type": "I",
576
+ "fields": {
577
+ "columns": {
578
+ "type": "pushwoosh.aibuilder.v1.AiBuilderColumn",
579
+ "array": true
580
+ }
581
+ }
582
+ },
583
+ "pushwoosh.aibuilder.v1.AiBuilderColumn": {
584
+ "type": "I",
585
+ "fields": {
586
+ "image": {
587
+ "type": "pushwoosh.aibuilder.v1.Image",
588
+ "optional": true
589
+ },
590
+ "content": {
591
+ "type": "pushwoosh.aibuilder.v1.Content"
592
+ }
593
+ },
594
+ "oneofs": {}
595
+ },
596
+ "pushwoosh.aibuilder.v1.AiBuilderBlock": {
597
+ "type": "I",
598
+ "fields": {
599
+ "id": {
600
+ "type": "string"
601
+ },
602
+ "card": {
603
+ "type": "pushwoosh.aibuilder.v1.AiBuilderCard"
604
+ },
605
+ "columns": {
606
+ "type": "pushwoosh.aibuilder.v1.AiBuilderColumns"
607
+ },
608
+ "styles": {
609
+ "type": "pushwoosh.aibuilder.v1.BlockStyles",
610
+ "optional": true
611
+ }
612
+ },
613
+ "oneofs": {
614
+ "block": {
615
+ "oneof": [
616
+ "card",
617
+ "columns"
618
+ ]
619
+ }
620
+ }
621
+ },
622
+ "pushwoosh.aibuilder.v1.AiBuilderDocument": {
623
+ "type": "I",
624
+ "fields": {
625
+ "blocks": {
626
+ "type": "pushwoosh.aibuilder.v1.AiBuilderBlock",
627
+ "array": true
628
+ },
629
+ "settings": {
630
+ "type": "pushwoosh.aibuilder.v1.DocumentSettings"
631
+ },
632
+ "textVariants": {
633
+ "type": "pushwoosh.aibuilder.v1.TextVariantStyle",
634
+ "mapKeyType": "string"
635
+ },
636
+ "colorScheme": {
637
+ "type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
638
+ "mapKeyType": "string"
639
+ }
640
+ }
641
+ },
642
+ "pushwoosh.accounts.assistant.v1.Role": {
643
+ "type": "E",
644
+ "values": [
645
+ "ROLE_UNSPECIFIED",
646
+ "ROLE_USER",
647
+ "ROLE_ASSISTANT",
648
+ "ROLE_TOOL_REQUEST",
649
+ "ROLE_TOOL_USE_RESPONSE",
650
+ "ROLE_CONTEXT_COMPACTIFIED"
651
+ ]
652
+ },
653
+ "pushwoosh.accounts.assistant.v1.Message": {
654
+ "type": "I",
655
+ "fields": {
656
+ "id": {
657
+ "type": "number"
658
+ },
659
+ "content": {
660
+ "type": "string"
661
+ },
662
+ "role": {
663
+ "type": "pushwoosh.accounts.assistant.v1.Role"
664
+ },
665
+ "timestamp": {
666
+ "type": "Date"
667
+ },
668
+ "usage": {
669
+ "type": "pushwoosh.accounts.assistant.v1.UsageInfo"
670
+ }
671
+ }
672
+ },
673
+ "pushwoosh.accounts.assistant.v1.Chat": {
674
+ "type": "I",
675
+ "fields": {
676
+ "id": {
677
+ "type": "number"
678
+ },
679
+ "title": {
680
+ "type": "string"
681
+ },
682
+ "messages": {
683
+ "type": "pushwoosh.accounts.assistant.v1.Message",
684
+ "array": true
685
+ },
686
+ "createdAt": {
687
+ "type": "Date"
688
+ },
689
+ "updatedAt": {
690
+ "type": "Date"
691
+ }
692
+ }
693
+ },
694
+ "pushwoosh.accounts.assistant.v1.CreateChatRequest": {
695
+ "type": "I",
696
+ "fields": {
697
+ "application": {
698
+ "type": "string"
699
+ },
700
+ "title": {
701
+ "type": "string"
702
+ }
703
+ }
704
+ },
705
+ "pushwoosh.accounts.assistant.v1.CreateChatResponse": {
706
+ "type": "I",
707
+ "fields": {
708
+ "chat": {
709
+ "type": "pushwoosh.accounts.assistant.v1.Chat"
710
+ }
711
+ }
712
+ },
713
+ "pushwoosh.accounts.assistant.v1.GetChatRequest": {
714
+ "type": "I",
715
+ "fields": {
716
+ "application": {
717
+ "type": "string"
718
+ },
719
+ "chatId": {
720
+ "type": "number"
721
+ }
722
+ }
723
+ },
724
+ "pushwoosh.accounts.assistant.v1.GetChatResponse": {
725
+ "type": "I",
726
+ "fields": {
727
+ "chat": {
728
+ "type": "pushwoosh.accounts.assistant.v1.Chat"
729
+ }
730
+ }
731
+ },
732
+ "pushwoosh.accounts.assistant.v1.GetAllChatsRequest": {
733
+ "type": "I",
734
+ "fields": {
735
+ "application": {
736
+ "type": "string"
737
+ }
738
+ }
739
+ },
740
+ "pushwoosh.accounts.assistant.v1.GetAllChatsResponse": {
741
+ "type": "I",
742
+ "fields": {
743
+ "chats": {
744
+ "type": "pushwoosh.accounts.assistant.v1.Chat",
745
+ "array": true
746
+ }
747
+ }
748
+ },
749
+ "pushwoosh.accounts.assistant.v1.UpdateChatTitleRequest": {
750
+ "type": "I",
751
+ "fields": {
752
+ "chatId": {
753
+ "type": "number"
754
+ },
755
+ "title": {
756
+ "type": "string"
757
+ }
758
+ }
759
+ },
760
+ "pushwoosh.accounts.assistant.v1.UpdateChatTitleResponse": {
761
+ "type": "I",
762
+ "fields": {}
763
+ },
764
+ "pushwoosh.accounts.assistant.v1.DeleteChatRequest": {
765
+ "type": "I",
766
+ "fields": {
767
+ "application": {
768
+ "type": "string"
769
+ },
770
+ "id": {
771
+ "type": "number"
772
+ }
773
+ }
774
+ },
775
+ "pushwoosh.accounts.assistant.v1.DeleteChatResponse": {
776
+ "type": "I",
777
+ "fields": {
778
+ "success": {
779
+ "type": "boolean"
780
+ }
781
+ }
782
+ },
783
+ "pushwoosh.accounts.assistant.v1.ClearChatRequest": {
784
+ "type": "I",
785
+ "fields": {
786
+ "application": {
787
+ "type": "string"
788
+ },
789
+ "id": {
790
+ "type": "number"
791
+ }
792
+ }
793
+ },
794
+ "pushwoosh.accounts.assistant.v1.ClearChatResponse": {
795
+ "type": "I",
796
+ "fields": {
797
+ "success": {
798
+ "type": "boolean"
799
+ }
800
+ }
801
+ },
802
+ "pushwoosh.accounts.assistant.v1.FileAttachment": {
803
+ "type": "I",
804
+ "fields": {
805
+ "filename": {
806
+ "type": "string"
807
+ },
808
+ "type": {
809
+ "type": "string"
810
+ },
811
+ "base64": {
812
+ "type": "string"
813
+ }
814
+ }
815
+ },
816
+ "pushwoosh.accounts.assistant.v1.InferenceRequest": {
817
+ "type": "I",
818
+ "fields": {
819
+ "chatId": {
820
+ "type": "number"
821
+ },
822
+ "message": {
823
+ "type": "string"
824
+ },
825
+ "url": {
826
+ "type": "string"
827
+ },
828
+ "attachments": {
829
+ "type": "pushwoosh.accounts.assistant.v1.FileAttachment",
830
+ "array": true
831
+ },
832
+ "customSystemPrompt": {
833
+ "type": "string"
834
+ }
835
+ }
836
+ },
837
+ "pushwoosh.accounts.assistant.v1.StreamEventType": {
838
+ "type": "E",
839
+ "values": [
840
+ "STREAM_EVENT_UNSPECIFIED",
841
+ "STREAM_EVENT_MESSAGE_START",
842
+ "STREAM_EVENT_CONTENT_BLOCK_START",
843
+ "STREAM_EVENT_TEXT_START",
844
+ "STREAM_EVENT_TEXT_DELTA",
845
+ "STREAM_EVENT_TOOL_USE_START",
846
+ "STREAM_EVENT_CONTENT_BLOCK_STOP",
847
+ "STREAM_EVENT_MESSAGE_DELTA",
848
+ "STREAM_EVENT_MESSAGE_STOP",
849
+ "STREAM_EVENT_ERROR",
850
+ "STREAM_EVENT_TOOL_USE_RESULT",
851
+ "STREAM_EVENT_TOOL_USE_DELTA",
852
+ "STREAM_EVENT_THINKING_DELTA"
853
+ ]
854
+ },
855
+ "pushwoosh.accounts.assistant.v1.ToolInfo": {
856
+ "type": "I",
857
+ "fields": {
858
+ "name": {
859
+ "type": "string"
860
+ },
861
+ "args": {
862
+ "type": "string"
863
+ }
864
+ }
865
+ },
866
+ "pushwoosh.accounts.assistant.v1.UsageInfo": {
867
+ "type": "I",
868
+ "fields": {
869
+ "inputTokens": {
870
+ "type": "number"
871
+ },
872
+ "outputTokens": {
873
+ "type": "number"
874
+ },
875
+ "cacheCreationInputTokens": {
876
+ "type": "number"
877
+ },
878
+ "cacheReadInputTokens": {
879
+ "type": "number"
880
+ },
881
+ "totalTokens": {
882
+ "type": "number"
883
+ },
884
+ "percentage": {
885
+ "type": "number"
886
+ }
887
+ }
888
+ },
889
+ "pushwoosh.accounts.assistant.v1.InferenceResponse": {
890
+ "type": "I",
891
+ "fields": {
892
+ "type": {
893
+ "type": "pushwoosh.accounts.assistant.v1.StreamEventType"
894
+ },
895
+ "content": {
896
+ "type": "string"
897
+ },
898
+ "tool": {
899
+ "type": "pushwoosh.accounts.assistant.v1.ToolInfo"
900
+ },
901
+ "stopReason": {
902
+ "type": "string"
903
+ },
904
+ "stopSequence": {
905
+ "type": "string"
906
+ },
907
+ "error": {
908
+ "type": "string"
909
+ },
910
+ "usage": {
911
+ "type": "pushwoosh.accounts.assistant.v1.UsageInfo"
912
+ }
913
+ }
914
+ },
915
+ "pushwoosh.accounts.assistant.v1.GetConsentRequest": {
916
+ "type": "I",
917
+ "fields": {
918
+ "application": {
919
+ "type": "string"
920
+ }
921
+ }
922
+ },
923
+ "pushwoosh.accounts.assistant.v1.GetConsentResponse": {
924
+ "type": "I",
925
+ "fields": {
926
+ "consentGiven": {
927
+ "type": "boolean"
928
+ }
929
+ }
930
+ },
931
+ "pushwoosh.accounts.assistant.v1.GiveConsentRequest": {
932
+ "type": "I",
933
+ "fields": {
934
+ "application": {
935
+ "type": "string"
936
+ },
937
+ "consentGiven": {
938
+ "type": "boolean"
939
+ }
940
+ }
941
+ },
942
+ "pushwoosh.accounts.assistant.v1.GiveConsentResponse": {
943
+ "type": "I",
944
+ "fields": {}
945
+ },
946
+ "pushwoosh.accounts.assistant.v1.CompactifyContextRequest": {
947
+ "type": "I",
948
+ "fields": {
949
+ "application": {
950
+ "type": "string"
951
+ },
952
+ "chatId": {
953
+ "type": "number"
954
+ }
955
+ }
956
+ },
957
+ "pushwoosh.accounts.assistant.v1.CompactifyContextResponse": {
958
+ "type": "I",
959
+ "fields": {
960
+ "success": {
961
+ "type": "boolean"
962
+ },
963
+ "compactifiedContent": {
964
+ "type": "string"
965
+ }
966
+ }
967
+ },
968
+ "pushwoosh.accounts.assistant.v1.CheckUsageAllowedRequest": {
969
+ "type": "I",
970
+ "fields": {
971
+ "application": {
972
+ "type": "string"
973
+ }
974
+ }
975
+ },
976
+ "pushwoosh.accounts.assistant.v1.CheckUsageAllowedResponse": {
977
+ "type": "I",
978
+ "fields": {
979
+ "allowed": {
980
+ "type": "boolean"
981
+ },
982
+ "reason": {
983
+ "type": "string"
984
+ }
985
+ }
986
+ },
987
+ "pushwoosh.accounts.assistant.v1.AssistantService": {
988
+ "type": "S",
989
+ "key": "assistant",
990
+ "methods": {
991
+ "CreateChat": {
992
+ "request": "pushwoosh.accounts.assistant.v1.CreateChatRequest",
993
+ "response": "pushwoosh.accounts.assistant.v1.CreateChatResponse",
994
+ "method": "post",
995
+ "path": "/api/v1/applications/{application}/chats"
996
+ },
997
+ "GetChat": {
998
+ "request": "pushwoosh.accounts.assistant.v1.GetChatRequest",
999
+ "response": "pushwoosh.accounts.assistant.v1.GetChatResponse",
1000
+ "method": "get",
1001
+ "path": "/api/v1/applications/{application}/chats/{chat_id}"
1002
+ },
1003
+ "GetAllChats": {
1004
+ "request": "pushwoosh.accounts.assistant.v1.GetAllChatsRequest",
1005
+ "response": "pushwoosh.accounts.assistant.v1.GetAllChatsResponse",
1006
+ "method": "get",
1007
+ "path": "/api/v1/applications/{application}/chats"
1008
+ },
1009
+ "UpdateChatTitle": {
1010
+ "request": "pushwoosh.accounts.assistant.v1.UpdateChatTitleRequest",
1011
+ "response": "pushwoosh.accounts.assistant.v1.UpdateChatTitleResponse",
1012
+ "method": "put",
1013
+ "path": "/api/v1/chats/{chat_id}/title"
1014
+ },
1015
+ "DeleteChat": {
1016
+ "request": "pushwoosh.accounts.assistant.v1.DeleteChatRequest",
1017
+ "response": "pushwoosh.accounts.assistant.v1.DeleteChatResponse",
1018
+ "method": "delete",
1019
+ "path": "/api/v1/applications/{application}/chats/{id}"
1020
+ },
1021
+ "ClearChat": {
1022
+ "request": "pushwoosh.accounts.assistant.v1.ClearChatRequest",
1023
+ "response": "pushwoosh.accounts.assistant.v1.ClearChatResponse",
1024
+ "method": "delete",
1025
+ "path": "/api/v1/applications/{application}/chats/{id}/messages"
1026
+ },
1027
+ "StreamInference": {
1028
+ "request": "pushwoosh.accounts.assistant.v1.InferenceRequest",
1029
+ "response": "pushwoosh.accounts.assistant.v1.InferenceResponse",
1030
+ "method": "post",
1031
+ "path": "/api/v1/chats/{chat_id}/inference/stream",
1032
+ "serverStreaming": true
1033
+ },
1034
+ "StreamInferenceGemini": {
1035
+ "request": "pushwoosh.accounts.assistant.v1.InferenceRequest",
1036
+ "response": "pushwoosh.accounts.assistant.v1.InferenceResponse",
1037
+ "method": "post",
1038
+ "path": "/api/v1/chats/{chat_id}/inference/stream-gemini",
1039
+ "serverStreaming": true
1040
+ },
1041
+ "StreamInferenceChatGPT": {
1042
+ "request": "pushwoosh.accounts.assistant.v1.InferenceRequest",
1043
+ "response": "pushwoosh.accounts.assistant.v1.InferenceResponse",
1044
+ "method": "post",
1045
+ "path": "/api/v1/chats/{chat_id}/inference/stream-chatgpt",
1046
+ "serverStreaming": true
1047
+ },
1048
+ "StreamInferenceLLM": {
1049
+ "request": "pushwoosh.accounts.assistant.v1.InferenceRequest",
1050
+ "response": "pushwoosh.accounts.assistant.v1.InferenceResponse",
1051
+ "method": "post",
1052
+ "path": "/api/v1/chats/{chat_id}/inference/stream-llm",
1053
+ "serverStreaming": true
1054
+ },
1055
+ "GetConsent": {
1056
+ "request": "pushwoosh.accounts.assistant.v1.GetConsentRequest",
1057
+ "response": "pushwoosh.accounts.assistant.v1.GetConsentResponse",
1058
+ "method": "get",
1059
+ "path": "/api/v1/applications/{application}/consent"
1060
+ },
1061
+ "GiveConsent": {
1062
+ "request": "pushwoosh.accounts.assistant.v1.GiveConsentRequest",
1063
+ "response": "pushwoosh.accounts.assistant.v1.GiveConsentResponse",
1064
+ "method": "post",
1065
+ "path": "/api/v1/applications/{application}/consent"
1066
+ },
1067
+ "CompactifyContext": {
1068
+ "request": "pushwoosh.accounts.assistant.v1.CompactifyContextRequest",
1069
+ "response": "pushwoosh.accounts.assistant.v1.CompactifyContextResponse",
1070
+ "method": "post",
1071
+ "path": "/api/v1/applications/{application}/chats/{chat_id}/compactify"
1072
+ },
1073
+ "CheckUsageAllowed": {
1074
+ "request": "pushwoosh.accounts.assistant.v1.CheckUsageAllowedRequest",
1075
+ "response": "pushwoosh.accounts.assistant.v1.CheckUsageAllowedResponse",
1076
+ "method": "get",
1077
+ "path": "/api/v1/applications/{application}/usage-allowed"
1078
+ }
1079
+ }
1080
+ }
1081
+ };