@erllecta/coding-helper 1.0.0

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.
@@ -0,0 +1,3629 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/api/assistant": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /** Get Assistants */
14
+ get: operations["get_assistants_api_assistant_get"];
15
+ put?: never;
16
+ /** Create Assistant */
17
+ post: operations["create_assistant_api_assistant_post"];
18
+ delete?: never;
19
+ options?: never;
20
+ head?: never;
21
+ patch?: never;
22
+ trace?: never;
23
+ };
24
+ "/api/assistant/tags": {
25
+ parameters: {
26
+ query?: never;
27
+ header?: never;
28
+ path?: never;
29
+ cookie?: never;
30
+ };
31
+ /** Get Tags */
32
+ get: operations["get_tags_api_assistant_tags_get"];
33
+ put?: never;
34
+ /** Create Tag */
35
+ post: operations["create_tag_api_assistant_tags_post"];
36
+ delete?: never;
37
+ options?: never;
38
+ head?: never;
39
+ patch?: never;
40
+ trace?: never;
41
+ };
42
+ "/api/assistant/{assistant_id}": {
43
+ parameters: {
44
+ query?: never;
45
+ header?: never;
46
+ path?: never;
47
+ cookie?: never;
48
+ };
49
+ /**
50
+ * Get Assistant
51
+ * @description Получение ассистента по id.
52
+ *
53
+ * Через данный эндпоинт можно также получить и универсального ассистента.
54
+ * Для этого необходимо передать id=default.
55
+ */
56
+ get: operations["get_assistant_api_assistant__assistant_id__get"];
57
+ put?: never;
58
+ post?: never;
59
+ /**
60
+ * Delete Assistant
61
+ * @description Удаляет ассистента.
62
+ */
63
+ delete: operations["delete_assistant_api_assistant__assistant_id__delete"];
64
+ options?: never;
65
+ head?: never;
66
+ /**
67
+ * Update Assistant
68
+ * @description Обновление ассистента.
69
+ */
70
+ patch: operations["update_assistant_api_assistant__assistant_id__patch"];
71
+ trace?: never;
72
+ };
73
+ "/api/chat": {
74
+ parameters: {
75
+ query?: never;
76
+ header?: never;
77
+ path?: never;
78
+ cookie?: never;
79
+ };
80
+ /** Get Chats For User */
81
+ get: operations["get_chats_for_user_api_chat_get"];
82
+ put?: never;
83
+ /**
84
+ * Create Chat
85
+ * @description Создает чат с новым сообщением.
86
+ */
87
+ post: operations["create_chat_api_chat_post"];
88
+ delete?: never;
89
+ options?: never;
90
+ head?: never;
91
+ patch?: never;
92
+ trace?: never;
93
+ };
94
+ "/api/chat/{chat_id}/generate-name": {
95
+ parameters: {
96
+ query?: never;
97
+ header?: never;
98
+ path?: never;
99
+ cookie?: never;
100
+ };
101
+ get?: never;
102
+ put?: never;
103
+ /**
104
+ * Generate Chat Name
105
+ * @description Генерирует имя чата.
106
+ */
107
+ post: operations["generate_chat_name_api_chat__chat_id__generate_name_post"];
108
+ delete?: never;
109
+ options?: never;
110
+ head?: never;
111
+ patch?: never;
112
+ trace?: never;
113
+ };
114
+ "/api/chat/{chat_id}": {
115
+ parameters: {
116
+ query?: never;
117
+ header?: never;
118
+ path?: never;
119
+ cookie?: never;
120
+ };
121
+ get?: never;
122
+ put?: never;
123
+ post?: never;
124
+ /**
125
+ * Delete Chat
126
+ * @description Удаляет чат для пользователя.
127
+ */
128
+ delete: operations["delete_chat_api_chat__chat_id__delete"];
129
+ options?: never;
130
+ head?: never;
131
+ /**
132
+ * Update Chat
133
+ * @description Обновляет чат по айди.
134
+ */
135
+ patch: operations["update_chat_api_chat__chat_id__patch"];
136
+ trace?: never;
137
+ };
138
+ "/api/chat/{chat_id}/attachments": {
139
+ parameters: {
140
+ query?: never;
141
+ header?: never;
142
+ path?: never;
143
+ cookie?: never;
144
+ };
145
+ /** Get Chat Attachments */
146
+ get: operations["get_chat_attachments_api_chat__chat_id__attachments_get"];
147
+ put?: never;
148
+ post?: never;
149
+ delete?: never;
150
+ options?: never;
151
+ head?: never;
152
+ patch?: never;
153
+ trace?: never;
154
+ };
155
+ "/api/chat/{chat_id}/magic-link": {
156
+ parameters: {
157
+ query?: never;
158
+ header?: never;
159
+ path?: never;
160
+ cookie?: never;
161
+ };
162
+ get?: never;
163
+ put?: never;
164
+ /**
165
+ * Create Magic Link
166
+ * @description Создает магическую ссылку на чат.
167
+ */
168
+ post: operations["create_magic_link_api_chat__chat_id__magic_link_post"];
169
+ delete?: never;
170
+ options?: never;
171
+ head?: never;
172
+ patch?: never;
173
+ trace?: never;
174
+ };
175
+ "/api/chat/resolve-magic-link/{magic_string}": {
176
+ parameters: {
177
+ query?: never;
178
+ header?: never;
179
+ path?: never;
180
+ cookie?: never;
181
+ };
182
+ /**
183
+ * Resolve Magic Link
184
+ * @description Проверяет магическую ссылку на чат.
185
+ */
186
+ get: operations["resolve_magic_link_api_chat_resolve_magic_link__magic_string__get"];
187
+ put?: never;
188
+ post?: never;
189
+ delete?: never;
190
+ options?: never;
191
+ head?: never;
192
+ patch?: never;
193
+ trace?: never;
194
+ };
195
+ "/api/version": {
196
+ parameters: {
197
+ query?: never;
198
+ header?: never;
199
+ path?: never;
200
+ cookie?: never;
201
+ };
202
+ /** Get All Versions */
203
+ get: operations["get_all_versions_api_version_get"];
204
+ put?: never;
205
+ post?: never;
206
+ delete?: never;
207
+ options?: never;
208
+ head?: never;
209
+ patch?: never;
210
+ trace?: never;
211
+ };
212
+ "/api/model": {
213
+ parameters: {
214
+ query?: never;
215
+ header?: never;
216
+ path?: never;
217
+ cookie?: never;
218
+ };
219
+ /** Get Available Models */
220
+ get: operations["get_available_models_api_model_get"];
221
+ put?: never;
222
+ post?: never;
223
+ delete?: never;
224
+ options?: never;
225
+ head?: never;
226
+ patch?: never;
227
+ trace?: never;
228
+ };
229
+ "/api/document/attachment": {
230
+ parameters: {
231
+ query?: never;
232
+ header?: never;
233
+ path?: never;
234
+ cookie?: never;
235
+ };
236
+ /**
237
+ * Get Attachments
238
+ * @description Получает пагинированные сообщения из чата.
239
+ */
240
+ get: operations["get_attachments_api_document_attachment_get"];
241
+ put?: never;
242
+ /** Upload Document */
243
+ post: operations["upload_document_api_document_attachment_post"];
244
+ delete?: never;
245
+ options?: never;
246
+ head?: never;
247
+ patch?: never;
248
+ trace?: never;
249
+ };
250
+ "/api/document/attachment/{attachment_id}": {
251
+ parameters: {
252
+ query?: never;
253
+ header?: never;
254
+ path?: never;
255
+ cookie?: never;
256
+ };
257
+ get?: never;
258
+ put?: never;
259
+ post?: never;
260
+ /** Delete Document */
261
+ delete: operations["delete_document_api_document_attachment__attachment_id__delete"];
262
+ options?: never;
263
+ head?: never;
264
+ patch?: never;
265
+ trace?: never;
266
+ };
267
+ "/api/knowledge": {
268
+ parameters: {
269
+ query?: never;
270
+ header?: never;
271
+ path?: never;
272
+ cookie?: never;
273
+ };
274
+ /** Get Knowledge List */
275
+ get: operations["get_knowledge_list_api_knowledge_get"];
276
+ put?: never;
277
+ /** Create Knowledge */
278
+ post: operations["create_knowledge_api_knowledge_post"];
279
+ delete?: never;
280
+ options?: never;
281
+ head?: never;
282
+ patch?: never;
283
+ trace?: never;
284
+ };
285
+ "/api/knowledge/{id}": {
286
+ parameters: {
287
+ query?: never;
288
+ header?: never;
289
+ path?: never;
290
+ cookie?: never;
291
+ };
292
+ /** Get Knowledge */
293
+ get: operations["get_knowledge_api_knowledge__id__get"];
294
+ put?: never;
295
+ post?: never;
296
+ /** Delete Knowledge */
297
+ delete: operations["delete_knowledge_api_knowledge__id__delete"];
298
+ options?: never;
299
+ head?: never;
300
+ /** Update Knowledge */
301
+ patch: operations["update_knowledge_api_knowledge__id__patch"];
302
+ trace?: never;
303
+ };
304
+ "/api/knowledge/{kb_id}/documents": {
305
+ parameters: {
306
+ query?: never;
307
+ header?: never;
308
+ path?: never;
309
+ cookie?: never;
310
+ };
311
+ /** Get Knowledge Documents */
312
+ get: operations["get_knowledge_documents_api_knowledge__kb_id__documents_get"];
313
+ put?: never;
314
+ post?: never;
315
+ delete?: never;
316
+ options?: never;
317
+ head?: never;
318
+ patch?: never;
319
+ trace?: never;
320
+ };
321
+ "/api/knowledge/upload/{kb_id}": {
322
+ parameters: {
323
+ query?: never;
324
+ header?: never;
325
+ path?: never;
326
+ cookie?: never;
327
+ };
328
+ get?: never;
329
+ put?: never;
330
+ /** Upload Knowledge */
331
+ post: operations["upload_knowledge_api_knowledge_upload__kb_id__post"];
332
+ delete?: never;
333
+ options?: never;
334
+ head?: never;
335
+ patch?: never;
336
+ trace?: never;
337
+ };
338
+ "/api/knowledge/document/bulk": {
339
+ parameters: {
340
+ query?: never;
341
+ header?: never;
342
+ path?: never;
343
+ cookie?: never;
344
+ };
345
+ get?: never;
346
+ put?: never;
347
+ post?: never;
348
+ /** Delete Documents Bulk */
349
+ delete: operations["delete_documents_bulk_api_knowledge_document_bulk_delete"];
350
+ options?: never;
351
+ head?: never;
352
+ patch?: never;
353
+ trace?: never;
354
+ };
355
+ "/api/knowledge/document/{document_id}": {
356
+ parameters: {
357
+ query?: never;
358
+ header?: never;
359
+ path?: never;
360
+ cookie?: never;
361
+ };
362
+ get?: never;
363
+ put?: never;
364
+ post?: never;
365
+ /** Delete Document */
366
+ delete: operations["delete_document_api_knowledge_document__document_id__delete"];
367
+ options?: never;
368
+ head?: never;
369
+ patch?: never;
370
+ trace?: never;
371
+ };
372
+ "/api/knowledge/{document_id}/retry": {
373
+ parameters: {
374
+ query?: never;
375
+ header?: never;
376
+ path?: never;
377
+ cookie?: never;
378
+ };
379
+ get?: never;
380
+ put?: never;
381
+ /** Retry Document */
382
+ post: operations["retry_document_api_knowledge__document_id__retry_post"];
383
+ delete?: never;
384
+ options?: never;
385
+ head?: never;
386
+ patch?: never;
387
+ trace?: never;
388
+ };
389
+ "/api/knowledge/{kb_id}/search": {
390
+ parameters: {
391
+ query?: never;
392
+ header?: never;
393
+ path?: never;
394
+ cookie?: never;
395
+ };
396
+ get?: never;
397
+ put?: never;
398
+ /** Knowledge Base Search */
399
+ post: operations["knowledge_base_search_api_knowledge__kb_id__search_post"];
400
+ delete?: never;
401
+ options?: never;
402
+ head?: never;
403
+ patch?: never;
404
+ trace?: never;
405
+ };
406
+ "/api/knowledge/documents/{document_id}/chunks": {
407
+ parameters: {
408
+ query?: never;
409
+ header?: never;
410
+ path?: never;
411
+ cookie?: never;
412
+ };
413
+ /** Get Document Chunks */
414
+ get: operations["get_document_chunks_api_knowledge_documents__document_id__chunks_get"];
415
+ put?: never;
416
+ post?: never;
417
+ delete?: never;
418
+ options?: never;
419
+ head?: never;
420
+ patch?: never;
421
+ trace?: never;
422
+ };
423
+ "/api/v2/message": {
424
+ parameters: {
425
+ query?: never;
426
+ header?: never;
427
+ path?: never;
428
+ cookie?: never;
429
+ };
430
+ /**
431
+ * Get Chat Messages
432
+ * @description Получает пагинированные сообщения из чата.
433
+ */
434
+ get: operations["get_chat_messages_api_v2_message_get"];
435
+ put?: never;
436
+ /** Create Message */
437
+ post: operations["create_message_api_v2_message_post"];
438
+ delete?: never;
439
+ options?: never;
440
+ head?: never;
441
+ patch?: never;
442
+ trace?: never;
443
+ };
444
+ "/api/v2/message/generate": {
445
+ parameters: {
446
+ query?: never;
447
+ header?: never;
448
+ path?: never;
449
+ cookie?: never;
450
+ };
451
+ get?: never;
452
+ put?: never;
453
+ /** Generate Message */
454
+ post: operations["generate_message_api_v2_message_generate_post"];
455
+ delete?: never;
456
+ options?: never;
457
+ head?: never;
458
+ patch?: never;
459
+ trace?: never;
460
+ };
461
+ "/api/v2/message/one-shot": {
462
+ parameters: {
463
+ query?: never;
464
+ header?: never;
465
+ path?: never;
466
+ cookie?: never;
467
+ };
468
+ get?: never;
469
+ put?: never;
470
+ /** Post One Shot Message */
471
+ post: operations["post_one_shot_message_api_v2_message_one_shot_post"];
472
+ delete?: never;
473
+ options?: never;
474
+ head?: never;
475
+ patch?: never;
476
+ trace?: never;
477
+ };
478
+ "/api/v2/message/improve-prompt": {
479
+ parameters: {
480
+ query?: never;
481
+ header?: never;
482
+ path?: never;
483
+ cookie?: never;
484
+ };
485
+ get?: never;
486
+ put?: never;
487
+ /** Improve Prompt */
488
+ post: operations["improve_prompt_api_v2_message_improve_prompt_post"];
489
+ delete?: never;
490
+ options?: never;
491
+ head?: never;
492
+ patch?: never;
493
+ trace?: never;
494
+ };
495
+ "/api/v2/message/improve-prompt/styles": {
496
+ parameters: {
497
+ query?: never;
498
+ header?: never;
499
+ path?: never;
500
+ cookie?: never;
501
+ };
502
+ /** Get Prompt Styles */
503
+ get: operations["get_prompt_styles_api_v2_message_improve_prompt_styles_get"];
504
+ put?: never;
505
+ post?: never;
506
+ delete?: never;
507
+ options?: never;
508
+ head?: never;
509
+ patch?: never;
510
+ trace?: never;
511
+ };
512
+ "/api/bugreports": {
513
+ parameters: {
514
+ query?: never;
515
+ header?: never;
516
+ path?: never;
517
+ cookie?: never;
518
+ };
519
+ /** Get Bugreports */
520
+ get: operations["get_bugreports_api_bugreports_get"];
521
+ put?: never;
522
+ /** Create Bugreport */
523
+ post: operations["create_bugreport_api_bugreports_post"];
524
+ delete?: never;
525
+ options?: never;
526
+ head?: never;
527
+ patch?: never;
528
+ trace?: never;
529
+ };
530
+ "/api/bugreports/{bugreport_id}": {
531
+ parameters: {
532
+ query?: never;
533
+ header?: never;
534
+ path?: never;
535
+ cookie?: never;
536
+ };
537
+ /** Get Bugreport */
538
+ get: operations["get_bugreport_api_bugreports__bugreport_id__get"];
539
+ put?: never;
540
+ post?: never;
541
+ delete?: never;
542
+ options?: never;
543
+ head?: never;
544
+ patch?: never;
545
+ trace?: never;
546
+ };
547
+ "/api/openai/models": {
548
+ parameters: {
549
+ query?: never;
550
+ header?: never;
551
+ path?: never;
552
+ cookie?: never;
553
+ };
554
+ /** Get Models */
555
+ get: operations["get_models_api_openai_models_get"];
556
+ put?: never;
557
+ post?: never;
558
+ delete?: never;
559
+ options?: never;
560
+ head?: never;
561
+ patch?: never;
562
+ trace?: never;
563
+ };
564
+ "/api/openai/chat/completions": {
565
+ parameters: {
566
+ query?: never;
567
+ header?: never;
568
+ path?: never;
569
+ cookie?: never;
570
+ };
571
+ get?: never;
572
+ put?: never;
573
+ /**
574
+ * Post Chat Completions
575
+ * @description Этот эндпойнт поддерживает оба типа простых текстовых сообщений и
576
+ * мультимодального контента (при условии, что модель, к которой вы обращаетесь,
577
+ * поддерживает данный тип контента):
578
+ *
579
+ * **Простое текстовое сообщение**
580
+ * ```json
581
+ * {
582
+ * "model": "gpt-4",
583
+ * "messages": [
584
+ * {
585
+ * "role": "user",
586
+ * "content": "Hello, how are you?"
587
+ * }
588
+ * ]
589
+ * }
590
+ * ```
591
+ *
592
+ * **Multimodal message with text and image:**
593
+ * ```json
594
+ * {
595
+ * "model": "gpt-4",
596
+ * "messages": [
597
+ * {
598
+ * "role": "user",
599
+ * "content": [
600
+ * { "type": "text", "text": "What is in this image?" },
601
+ * { "type": "image_url", "image_url":
602
+ * { "url": "https://example.com/image.jpg" } }
603
+ * ]
604
+ * }
605
+ * ]
606
+ * }
607
+ * ```
608
+ */
609
+ post: operations["post_chat_completions_api_openai_chat_completions_post"];
610
+ delete?: never;
611
+ options?: never;
612
+ head?: never;
613
+ patch?: never;
614
+ trace?: never;
615
+ };
616
+ "/api/profile/api-key": {
617
+ parameters: {
618
+ query?: never;
619
+ header?: never;
620
+ path?: never;
621
+ cookie?: never;
622
+ };
623
+ /** List Api Keys */
624
+ get: operations["list_api_keys_api_profile_api_key_get"];
625
+ put?: never;
626
+ /** Create Api Key */
627
+ post: operations["create_api_key_api_profile_api_key_post"];
628
+ delete?: never;
629
+ options?: never;
630
+ head?: never;
631
+ patch?: never;
632
+ trace?: never;
633
+ };
634
+ "/api/profile/api-key/{api_key_id}": {
635
+ parameters: {
636
+ query?: never;
637
+ header?: never;
638
+ path?: never;
639
+ cookie?: never;
640
+ };
641
+ get?: never;
642
+ put?: never;
643
+ post?: never;
644
+ /** Delete Api Key */
645
+ delete: operations["delete_api_key_api_profile_api_key__api_key_id__delete"];
646
+ options?: never;
647
+ head?: never;
648
+ patch?: never;
649
+ trace?: never;
650
+ };
651
+ "/api/profile/logs": {
652
+ parameters: {
653
+ query?: never;
654
+ header?: never;
655
+ path?: never;
656
+ cookie?: never;
657
+ };
658
+ /** Get Api Logs */
659
+ get: operations["get_api_logs_api_profile_logs_get"];
660
+ put?: never;
661
+ post?: never;
662
+ delete?: never;
663
+ options?: never;
664
+ head?: never;
665
+ patch?: never;
666
+ trace?: never;
667
+ };
668
+ "/api/tools": {
669
+ parameters: {
670
+ query?: never;
671
+ header?: never;
672
+ path?: never;
673
+ cookie?: never;
674
+ };
675
+ /** Get All Tools */
676
+ get: operations["get_all_tools_api_tools_get"];
677
+ put?: never;
678
+ post?: never;
679
+ delete?: never;
680
+ options?: never;
681
+ head?: never;
682
+ patch?: never;
683
+ trace?: never;
684
+ };
685
+ "/mcp/sse": {
686
+ parameters: {
687
+ query?: never;
688
+ header?: never;
689
+ path?: never;
690
+ cookie?: never;
691
+ };
692
+ /** Mcp Sse Endpoint */
693
+ get: operations["MCP_SSE_Endpoint_mcp_sse_get"];
694
+ put?: never;
695
+ post?: never;
696
+ delete?: never;
697
+ options?: never;
698
+ head?: never;
699
+ patch?: never;
700
+ trace?: never;
701
+ };
702
+ "/mcp/messages": {
703
+ parameters: {
704
+ query?: never;
705
+ header?: never;
706
+ path?: never;
707
+ cookie?: never;
708
+ };
709
+ get?: never;
710
+ put?: never;
711
+ /** Mcp Sse Main Entrypoint */
712
+ post: operations["MCP_SSE_Main_Entrypoint_mcp_messages_post"];
713
+ delete?: never;
714
+ options?: never;
715
+ head?: never;
716
+ patch?: never;
717
+ trace?: never;
718
+ };
719
+ "/mcp": {
720
+ parameters: {
721
+ query?: never;
722
+ header?: never;
723
+ path?: never;
724
+ cookie?: never;
725
+ };
726
+ /** Mcp Streamable Http */
727
+ get: operations["MCP_Streamable_HTTP_mcp_get"];
728
+ put?: never;
729
+ /** Mcp Streamable Http */
730
+ post: operations["MCP_Streamable_HTTP_mcp_post"];
731
+ /** Mcp Streamable Http */
732
+ delete: operations["MCP_Streamable_HTTP_mcp_delete"];
733
+ options?: never;
734
+ head?: never;
735
+ patch?: never;
736
+ trace?: never;
737
+ };
738
+ }
739
+ export type webhooks = Record<string, never>;
740
+ export interface components {
741
+ schemas: {
742
+ /** ApiKey */
743
+ ApiKey: {
744
+ /**
745
+ * Id
746
+ * Format: uuid
747
+ */
748
+ id: string;
749
+ /**
750
+ * User Id
751
+ * Format: uuid
752
+ */
753
+ user_id: string;
754
+ /** Name */
755
+ name: string;
756
+ /** Key Hash */
757
+ key_hash: string;
758
+ /**
759
+ * Created At
760
+ * Format: date-time
761
+ */
762
+ created_at: string;
763
+ /** Last Used At */
764
+ last_used_at?: string | null;
765
+ restrictions: components["schemas"]["ApiKeyRestrictions"];
766
+ };
767
+ /** ApiKeyRestrictions */
768
+ ApiKeyRestrictions: {
769
+ /** Rpm */
770
+ rpm: number;
771
+ /** Context Length */
772
+ context_length: number;
773
+ };
774
+ /** ApiLog */
775
+ ApiLog: {
776
+ /**
777
+ * Id
778
+ * Format: uuid
779
+ */
780
+ id: string;
781
+ /**
782
+ * Api Key Id
783
+ * Format: uuid
784
+ */
785
+ api_key_id: string;
786
+ /** Level */
787
+ level: string;
788
+ /** Duration */
789
+ duration: number;
790
+ /** Model */
791
+ model: string;
792
+ /** Log */
793
+ log: string;
794
+ /**
795
+ * Created At
796
+ * Format: date-time
797
+ */
798
+ created_at: string;
799
+ /** Meta */
800
+ meta: {
801
+ [key: string]: unknown;
802
+ };
803
+ };
804
+ /** Assistant */
805
+ Assistant: {
806
+ /**
807
+ * Id
808
+ * Format: uuid
809
+ */
810
+ id: string;
811
+ /** Name */
812
+ name: string;
813
+ /** Description */
814
+ description: string;
815
+ /** Prompt */
816
+ prompt: string;
817
+ /** Temperature */
818
+ temperature: number;
819
+ /**
820
+ * Created At
821
+ * Format: date-time
822
+ */
823
+ created_at: string;
824
+ /**
825
+ * Created By
826
+ * Format: uuid
827
+ */
828
+ created_by: string;
829
+ /**
830
+ * Updated At
831
+ * Format: date-time
832
+ */
833
+ updated_at: string;
834
+ /** Private */
835
+ private: boolean;
836
+ /** Kb Id */
837
+ kb_id?: string | null;
838
+ /** Tags */
839
+ tags?: string[] | null;
840
+ };
841
+ /**
842
+ * AssistantSearchGroup
843
+ * @enum {string}
844
+ */
845
+ AssistantSearchGroup: "public" | "personal" | "system";
846
+ /** AssistantSettings */
847
+ AssistantSettings: {
848
+ /** Prompt */
849
+ prompt: string;
850
+ /** Temperature */
851
+ temperature: number;
852
+ };
853
+ /** AssistantTag */
854
+ AssistantTag: {
855
+ /** Tag */
856
+ tag: string;
857
+ /**
858
+ * Created At
859
+ * Format: date-time
860
+ */
861
+ created_at: string;
862
+ };
863
+ /** AssistantToolSchema */
864
+ AssistantToolSchema: {
865
+ /** Tool Id */
866
+ tool_id: string;
867
+ /** Config */
868
+ config: {
869
+ [key: string]: unknown;
870
+ } | null;
871
+ /** Active */
872
+ active: boolean;
873
+ };
874
+ /** AssistantWithTools */
875
+ AssistantWithTools: {
876
+ /**
877
+ * Id
878
+ * Format: uuid
879
+ */
880
+ id: string;
881
+ /** Name */
882
+ name: string;
883
+ /** Description */
884
+ description: string;
885
+ /** Prompt */
886
+ prompt: string;
887
+ /** Temperature */
888
+ temperature: number;
889
+ /**
890
+ * Created At
891
+ * Format: date-time
892
+ */
893
+ created_at: string;
894
+ /**
895
+ * Created By
896
+ * Format: uuid
897
+ */
898
+ created_by: string;
899
+ /**
900
+ * Updated At
901
+ * Format: date-time
902
+ */
903
+ updated_at: string;
904
+ /** Private */
905
+ private: boolean;
906
+ /** Kb Id */
907
+ kb_id?: string | null;
908
+ /** Tags */
909
+ tags?: string[] | null;
910
+ /** Tools */
911
+ tools?: components["schemas"]["QueryAssistantToolAggregate"][] | null;
912
+ };
913
+ /** AttachmentSchema */
914
+ AttachmentSchema: {
915
+ /**
916
+ * Id
917
+ * Format: uuid
918
+ */
919
+ id: string;
920
+ /** Filename */
921
+ filename: string;
922
+ /** Content Type */
923
+ content_type: string;
924
+ /**
925
+ * Bucket
926
+ * @default default
927
+ */
928
+ bucket: string;
929
+ /** Size */
930
+ size: number;
931
+ /**
932
+ * Created At
933
+ * Format: date-time
934
+ */
935
+ created_at: string;
936
+ };
937
+ /** AttachmentWithContentUrlSchema */
938
+ AttachmentWithContentUrlSchema: {
939
+ /** Content Url */
940
+ content_url: string;
941
+ /**
942
+ * Id
943
+ * Format: uuid
944
+ */
945
+ id: string;
946
+ /** Filename */
947
+ filename: string;
948
+ /** Content Type */
949
+ content_type: string;
950
+ /**
951
+ * Bucket
952
+ * @default default
953
+ */
954
+ bucket: string;
955
+ /** Size */
956
+ size: number;
957
+ /**
958
+ * Created At
959
+ * Format: date-time
960
+ */
961
+ created_at: string;
962
+ };
963
+ /** Body_create_bugreport_api_bugreports_post */
964
+ Body_create_bugreport_api_bugreports_post: {
965
+ /** Title */
966
+ title: string;
967
+ /** Description */
968
+ description: string;
969
+ /** Bugreport Type */
970
+ bugreport_type: string;
971
+ /** Attachments */
972
+ attachments?: string[];
973
+ };
974
+ /** Body_upload_document_api_document_attachment_post */
975
+ Body_upload_document_api_document_attachment_post: {
976
+ /**
977
+ * File
978
+ * Format: binary
979
+ */
980
+ file: string;
981
+ };
982
+ /** Body_upload_knowledge_api_knowledge_upload__kb_id__post */
983
+ Body_upload_knowledge_api_knowledge_upload__kb_id__post: {
984
+ /**
985
+ * File
986
+ * Format: binary
987
+ */
988
+ file: string;
989
+ };
990
+ /** BugreportAttachmentWithContentUrlSchema */
991
+ BugreportAttachmentWithContentUrlSchema: {
992
+ /**
993
+ * Id
994
+ * Format: uuid
995
+ */
996
+ id: string;
997
+ /** Filename */
998
+ filename: string;
999
+ /** Content Type */
1000
+ content_type: string;
1001
+ /**
1002
+ * Created At
1003
+ * Format: date-time
1004
+ */
1005
+ created_at: string;
1006
+ /**
1007
+ * Bugreport Id
1008
+ * Format: uuid
1009
+ */
1010
+ bugreport_id: string;
1011
+ /** Content Url */
1012
+ content_url: string;
1013
+ };
1014
+ /**
1015
+ * BugreportStatusEnum
1016
+ * @enum {string}
1017
+ */
1018
+ BugreportStatusEnum: "REVIEW" | "IN_WORK" | "FIXED" | "REJECTED";
1019
+ /**
1020
+ * BugreportTypeEnum
1021
+ * @enum {string}
1022
+ */
1023
+ BugreportTypeEnum: "bug" | "suggestion";
1024
+ /** Bugreport */
1025
+ Bugreport_BugreportAttachmentWithContentUrlSchema_: {
1026
+ /**
1027
+ * Id
1028
+ * Format: uuid
1029
+ */
1030
+ id: string;
1031
+ /** Title */
1032
+ title: string;
1033
+ /** Description */
1034
+ description: string;
1035
+ type: components["schemas"]["BugreportTypeEnum"];
1036
+ status: components["schemas"]["BugreportStatusEnum"];
1037
+ /**
1038
+ * Created At
1039
+ * Format: date-time
1040
+ */
1041
+ created_at: string;
1042
+ /**
1043
+ * Updated At
1044
+ * Format: date-time
1045
+ */
1046
+ updated_at: string;
1047
+ /**
1048
+ * Created By
1049
+ * Format: uuid
1050
+ */
1051
+ created_by: string;
1052
+ /** Attachments */
1053
+ attachments: components["schemas"]["BugreportAttachmentWithContentUrlSchema"][];
1054
+ };
1055
+ /** Chat */
1056
+ Chat: {
1057
+ /**
1058
+ * Id
1059
+ * Format: uuid
1060
+ */
1061
+ id: string;
1062
+ /** Name */
1063
+ name: string | null;
1064
+ /**
1065
+ * User Id
1066
+ * Format: uuid
1067
+ */
1068
+ user_id: string;
1069
+ /**
1070
+ * Created At
1071
+ * Format: date-time
1072
+ */
1073
+ created_at: string;
1074
+ /** Magic String */
1075
+ magic_string: string | null;
1076
+ /** Usage */
1077
+ usage?: {
1078
+ [key: string]: number;
1079
+ } | null;
1080
+ };
1081
+ /** ChatWithMessageAggregate */
1082
+ ChatWithMessageAggregate: {
1083
+ /**
1084
+ * Id
1085
+ * Format: uuid
1086
+ */
1087
+ id: string;
1088
+ /** Name */
1089
+ name: string | null;
1090
+ /**
1091
+ * User Id
1092
+ * Format: uuid
1093
+ */
1094
+ user_id: string;
1095
+ /**
1096
+ * Created At
1097
+ * Format: date-time
1098
+ */
1099
+ created_at: string;
1100
+ /** Magic String */
1101
+ magic_string: string | null;
1102
+ /** Usage */
1103
+ usage?: {
1104
+ [key: string]: number;
1105
+ } | null;
1106
+ /**
1107
+ * Last Message At
1108
+ * Format: date-time
1109
+ */
1110
+ last_message_at: string;
1111
+ };
1112
+ /** CreateApiKeyRequest */
1113
+ CreateApiKeyRequest: {
1114
+ /** Name */
1115
+ name: string;
1116
+ };
1117
+ /** CreateApiKeyResponse */
1118
+ CreateApiKeyResponse: {
1119
+ /**
1120
+ * Id
1121
+ * Format: uuid
1122
+ */
1123
+ id: string;
1124
+ /**
1125
+ * User Id
1126
+ * Format: uuid
1127
+ */
1128
+ user_id: string;
1129
+ /** Name */
1130
+ name: string;
1131
+ /** Key Hash */
1132
+ key_hash: string;
1133
+ /**
1134
+ * Created At
1135
+ * Format: date-time
1136
+ */
1137
+ created_at: string;
1138
+ /** Last Used At */
1139
+ last_used_at?: string | null;
1140
+ restrictions: components["schemas"]["ApiKeyRestrictions"];
1141
+ /** Key */
1142
+ key: string;
1143
+ };
1144
+ /** CreateAssistantSchema */
1145
+ CreateAssistantSchema: {
1146
+ /** Name */
1147
+ name: string;
1148
+ /** Description */
1149
+ description: string;
1150
+ /** Prompt */
1151
+ prompt: string;
1152
+ /** Private */
1153
+ private: boolean;
1154
+ /** Kb Id */
1155
+ kb_id: string | null;
1156
+ /** Temperature */
1157
+ temperature: number;
1158
+ /** Tags */
1159
+ tags: string[];
1160
+ /** Tools */
1161
+ tools: components["schemas"]["AssistantToolSchema"][];
1162
+ };
1163
+ /** CreateChatSchema */
1164
+ CreateChatSchema: {
1165
+ /** Name */
1166
+ name?: string | null;
1167
+ };
1168
+ /** CreateKnowledgeBaseSchema */
1169
+ CreateKnowledgeBaseSchema: {
1170
+ /** Name */
1171
+ name: string;
1172
+ /** Description */
1173
+ description: string;
1174
+ config: components["schemas"]["KnowledgeBaseConfig"];
1175
+ };
1176
+ /** CreateMagicLinkResponse */
1177
+ CreateMagicLinkResponse: {
1178
+ /** Magic String */
1179
+ magic_string: string;
1180
+ };
1181
+ /** CreateMessageRequest */
1182
+ CreateMessageRequest: {
1183
+ /**
1184
+ * Chat Id
1185
+ * Format: uuid
1186
+ */
1187
+ chat_id: string;
1188
+ /** Content */
1189
+ content: string;
1190
+ /**
1191
+ * Assistant Id
1192
+ * Format: uuid
1193
+ */
1194
+ assistant_id: string;
1195
+ /** Attachments */
1196
+ attachments: components["schemas"]["AttachmentSchema"][];
1197
+ /** Parent Id */
1198
+ parent_id?: string | null;
1199
+ /** Model Id */
1200
+ model_id?: string | null;
1201
+ /**
1202
+ * Think
1203
+ * @default false
1204
+ */
1205
+ think: boolean;
1206
+ /**
1207
+ * Rag
1208
+ * @default false
1209
+ */
1210
+ rag: boolean;
1211
+ };
1212
+ /** CreateTagSchema */
1213
+ CreateTagSchema: {
1214
+ /** Tag */
1215
+ tag: string;
1216
+ };
1217
+ /** CursorPaginatedSchema */
1218
+ CursorPaginatedSchema_AssistantTag_: {
1219
+ pagination: components["schemas"]["CursorPaginationSchema"];
1220
+ /** Result */
1221
+ result: components["schemas"]["AssistantTag"][];
1222
+ };
1223
+ /** CursorPaginatedSchema */
1224
+ CursorPaginatedSchema_AttachmentWithContentUrlSchema_: {
1225
+ pagination: components["schemas"]["CursorPaginationSchema"];
1226
+ /** Result */
1227
+ result: components["schemas"]["AttachmentWithContentUrlSchema"][];
1228
+ };
1229
+ /** CursorPaginatedSchema */
1230
+ CursorPaginatedSchema_ChatWithMessageAggregate_: {
1231
+ pagination: components["schemas"]["CursorPaginationSchema"];
1232
+ /** Result */
1233
+ result: components["schemas"]["ChatWithMessageAggregate"][];
1234
+ };
1235
+ /** CursorPaginatedSchema */
1236
+ CursorPaginatedSchema_DocumentChunk_: {
1237
+ pagination: components["schemas"]["CursorPaginationSchema"];
1238
+ /** Result */
1239
+ result: components["schemas"]["DocumentChunk"][];
1240
+ };
1241
+ /** CursorPaginatedSchema */
1242
+ CursorPaginatedSchema_FullVersionAggregate_: {
1243
+ pagination: components["schemas"]["CursorPaginationSchema"];
1244
+ /** Result */
1245
+ result: components["schemas"]["FullVersionAggregate"][];
1246
+ };
1247
+ /** CursorPaginatedSchema */
1248
+ CursorPaginatedSchema_Message_AttachmentWithContentUrlSchema__: {
1249
+ pagination: components["schemas"]["CursorPaginationSchema"];
1250
+ /** Result */
1251
+ result: components["schemas"]["Message_AttachmentWithContentUrlSchema_"][];
1252
+ };
1253
+ /** CursorPaginatedSchema */
1254
+ CursorPaginatedSchema_QueryBugreportAggregate_: {
1255
+ pagination: components["schemas"]["CursorPaginationSchema"];
1256
+ /** Result */
1257
+ result: components["schemas"]["QueryBugreportAggregate"][];
1258
+ };
1259
+ /** CursorPaginatedV2Schema */
1260
+ CursorPaginatedV2Schema_Assistant_: {
1261
+ pagination: components["schemas"]["CursorPaginationSchema"];
1262
+ /** Result */
1263
+ result: components["schemas"]["Assistant"][];
1264
+ /** Total */
1265
+ total: number;
1266
+ };
1267
+ /** CursorPaginationSchema */
1268
+ CursorPaginationSchema: {
1269
+ /** Limit */
1270
+ limit: number;
1271
+ /** Cursor */
1272
+ cursor?: string | null;
1273
+ };
1274
+ /** DocumentChunk */
1275
+ DocumentChunk: {
1276
+ /** Text */
1277
+ text: string;
1278
+ /**
1279
+ * Document Id
1280
+ * Format: uuid
1281
+ */
1282
+ document_id: string;
1283
+ /** Filename */
1284
+ filename: string;
1285
+ /** Chunk Id */
1286
+ chunk_id: number;
1287
+ };
1288
+ /** DocumentWithContentUrl */
1289
+ DocumentWithContentUrl: {
1290
+ /**
1291
+ * Id
1292
+ * Format: uuid
1293
+ */
1294
+ id: string;
1295
+ /** Filename */
1296
+ filename: string;
1297
+ /** Bucket */
1298
+ bucket: string;
1299
+ /**
1300
+ * Kb Id
1301
+ * Format: uuid
1302
+ */
1303
+ kb_id: string;
1304
+ /** Content Type */
1305
+ content_type: string;
1306
+ /** Size */
1307
+ size: number;
1308
+ /**
1309
+ * Created At
1310
+ * Format: date-time
1311
+ */
1312
+ created_at: string;
1313
+ /**
1314
+ * Updated At
1315
+ * Format: date-time
1316
+ */
1317
+ updated_at: string;
1318
+ /** Status */
1319
+ status: string;
1320
+ /** Error */
1321
+ error: string | null;
1322
+ /** Content Url */
1323
+ content_url: string;
1324
+ };
1325
+ /** FullVersionAggregate */
1326
+ FullVersionAggregate: {
1327
+ /** Id */
1328
+ id: number;
1329
+ /** Version */
1330
+ version: string;
1331
+ /** Description */
1332
+ description: string;
1333
+ /**
1334
+ * Created At
1335
+ * Format: date-time
1336
+ */
1337
+ created_at: string;
1338
+ };
1339
+ /** GenerateMessageRequest */
1340
+ GenerateMessageRequest: {
1341
+ /**
1342
+ * Chat Id
1343
+ * Format: uuid
1344
+ */
1345
+ chat_id: string;
1346
+ /**
1347
+ * Assistant Id
1348
+ * Format: uuid
1349
+ */
1350
+ assistant_id: string;
1351
+ /**
1352
+ * Parent Id
1353
+ * Format: uuid
1354
+ */
1355
+ parent_id: string;
1356
+ /** Model Id */
1357
+ model_id: string;
1358
+ /**
1359
+ * Think
1360
+ * @default false
1361
+ */
1362
+ think: boolean;
1363
+ /**
1364
+ * Rag
1365
+ * @default false
1366
+ */
1367
+ rag: "agent" | boolean;
1368
+ /**
1369
+ * Stream
1370
+ * @default false
1371
+ */
1372
+ stream: boolean;
1373
+ /** Exclude Tools */
1374
+ exclude_tools?: string[] | null;
1375
+ /** Max Tokens */
1376
+ max_tokens?: number | null;
1377
+ /** Temperature */
1378
+ temperature?: number | null;
1379
+ /** Top P */
1380
+ top_p?: number | null;
1381
+ /** Presence Penalty */
1382
+ presence_penalty?: number | null;
1383
+ };
1384
+ /** GenerateMessageResponse */
1385
+ GenerateMessageResponse: {
1386
+ message: components["schemas"]["Message_AttachmentWithContentUrlSchema_"];
1387
+ /** Attachments */
1388
+ attachments?: components["schemas"]["SearchDocument"][];
1389
+ /** Tool Calls */
1390
+ tool_calls?: unknown[] | null;
1391
+ usage?: components["schemas"]["UsageSchema"] | null;
1392
+ };
1393
+ /** GetPromptStylesResponse */
1394
+ GetPromptStylesResponse: {
1395
+ /** Styles */
1396
+ styles: components["schemas"]["PromptStyle"][];
1397
+ };
1398
+ /** HTTPValidationError */
1399
+ HTTPValidationError: {
1400
+ /** Detail */
1401
+ detail?: components["schemas"]["ValidationError"][];
1402
+ };
1403
+ /** ImprovePromptResult */
1404
+ ImprovePromptResult: {
1405
+ /** Prompt */
1406
+ prompt: string;
1407
+ };
1408
+ /** ImprovePromptSchema */
1409
+ ImprovePromptSchema: {
1410
+ /** Original Prompt */
1411
+ original_prompt: string;
1412
+ /** Context */
1413
+ context: string;
1414
+ /** Style */
1415
+ style: string;
1416
+ };
1417
+ /** KnowledgeBase */
1418
+ KnowledgeBase: {
1419
+ /**
1420
+ * Id
1421
+ * Format: uuid
1422
+ */
1423
+ id: string;
1424
+ /** Name */
1425
+ name: string;
1426
+ /** Description */
1427
+ description: string;
1428
+ /** Config */
1429
+ config: {
1430
+ [key: string]: unknown;
1431
+ };
1432
+ /**
1433
+ * Created At
1434
+ * Format: date-time
1435
+ */
1436
+ created_at: string;
1437
+ /**
1438
+ * Updated At
1439
+ * Format: date-time
1440
+ */
1441
+ updated_at: string;
1442
+ /**
1443
+ * User Id
1444
+ * Format: uuid
1445
+ */
1446
+ user_id: string;
1447
+ };
1448
+ /** KnowledgeBaseConfig */
1449
+ KnowledgeBaseConfig: {
1450
+ /** Chunk Size */
1451
+ chunk_size: number;
1452
+ /** Chunk Overlap */
1453
+ chunk_overlap: number;
1454
+ };
1455
+ /** ListModelsResponse */
1456
+ ListModelsResponse: {
1457
+ /**
1458
+ * Object
1459
+ * @default list
1460
+ */
1461
+ object: string;
1462
+ /** Data */
1463
+ data: components["schemas"]["Model"][];
1464
+ };
1465
+ /** MCPRequest */
1466
+ MCPRequest: {
1467
+ /**
1468
+ * Jsonrpc
1469
+ * @default 2.0
1470
+ * @constant
1471
+ */
1472
+ jsonrpc: "2.0";
1473
+ /** Id */
1474
+ id?: number | string | null;
1475
+ /** Method */
1476
+ method: string;
1477
+ /** Params */
1478
+ params?: {
1479
+ [key: string]: unknown;
1480
+ } | null;
1481
+ };
1482
+ /** Message */
1483
+ Message_AttachmentWithContentUrlSchema_: {
1484
+ /**
1485
+ * Id
1486
+ * Format: uuid
1487
+ */
1488
+ id: string;
1489
+ /**
1490
+ * Chat Id
1491
+ * Format: uuid
1492
+ */
1493
+ chat_id: string;
1494
+ /** Parent Id */
1495
+ parent_id?: string | null;
1496
+ /** Assistant Id */
1497
+ assistant_id?: string | null;
1498
+ /** Model Id */
1499
+ model_id: string;
1500
+ /** Role */
1501
+ role: string;
1502
+ /** Content */
1503
+ content: string;
1504
+ /** Think */
1505
+ think?: string | null;
1506
+ /**
1507
+ * Created At
1508
+ * Format: date-time
1509
+ */
1510
+ created_at: string;
1511
+ /** Tool Calls */
1512
+ tool_calls?: unknown[] | null;
1513
+ /** Attachments */
1514
+ attachments?: components["schemas"]["AttachmentWithContentUrlSchema"][];
1515
+ };
1516
+ /**
1517
+ * Modal
1518
+ * @description Тип модели.
1519
+ * @enum {string}
1520
+ */
1521
+ Modal: "text" | "image" | "audio" | "video";
1522
+ /** Model */
1523
+ Model: {
1524
+ /** Id */
1525
+ id: string;
1526
+ /**
1527
+ * Object
1528
+ * @default model
1529
+ */
1530
+ object: string;
1531
+ /**
1532
+ * Owned By
1533
+ * @default user
1534
+ */
1535
+ owned_by: string;
1536
+ /**
1537
+ * Healthy
1538
+ * @default true
1539
+ */
1540
+ healthy: boolean;
1541
+ };
1542
+ /** OneShotMessageResponse */
1543
+ OneShotMessageResponse: {
1544
+ /** Content */
1545
+ content: string;
1546
+ /** Model Id */
1547
+ model_id: string;
1548
+ /** Think */
1549
+ think?: string | null;
1550
+ /** Attachments */
1551
+ attachments?: components["schemas"]["SearchDocument"][];
1552
+ /** Tool Calls */
1553
+ tool_calls?: unknown[] | null;
1554
+ /**
1555
+ * Role
1556
+ * @default assistant
1557
+ */
1558
+ role: string;
1559
+ usage?: components["schemas"]["UsageSchema"] | null;
1560
+ /**
1561
+ * Assistant Id
1562
+ * Format: uuid
1563
+ */
1564
+ assistant_id: string;
1565
+ };
1566
+ /** OneShotMessageSchema */
1567
+ OneShotMessageSchema: {
1568
+ /** Assistant Id */
1569
+ assistant_id?: string | null;
1570
+ assistant?: components["schemas"]["AssistantSettings"] | null;
1571
+ /** Content */
1572
+ content: string;
1573
+ /** Model Id */
1574
+ model_id: string;
1575
+ /** Attachments */
1576
+ attachments?: components["schemas"]["AttachmentSchema"][];
1577
+ /**
1578
+ * Think
1579
+ * @default false
1580
+ */
1581
+ think: boolean;
1582
+ /** Kb Id */
1583
+ kb_id?: string | null;
1584
+ /** Exclude Tools */
1585
+ exclude_tools?: string[] | null;
1586
+ /** Max Tokens */
1587
+ max_tokens?: number | null;
1588
+ /** Temperature */
1589
+ temperature?: number | null;
1590
+ /** Top P */
1591
+ top_p?: number | null;
1592
+ /** Presence Penalty */
1593
+ presence_penalty?: number | null;
1594
+ };
1595
+ /** PagePaginatedSchema */
1596
+ PagePaginatedSchema_ApiLog_: {
1597
+ /** Result */
1598
+ result?: components["schemas"]["ApiLog"][];
1599
+ /** Total */
1600
+ total: number;
1601
+ };
1602
+ /** PagePaginatedSchema */
1603
+ PagePaginatedSchema_DocumentWithContentUrl_: {
1604
+ /** Result */
1605
+ result?: components["schemas"]["DocumentWithContentUrl"][];
1606
+ /** Total */
1607
+ total: number;
1608
+ };
1609
+ /** PagePaginatedSchema */
1610
+ PagePaginatedSchema_QueryKnowledgeBaseAggregate_: {
1611
+ /** Result */
1612
+ result?: components["schemas"]["QueryKnowledgeBaseAggregate"][];
1613
+ /** Total */
1614
+ total: number;
1615
+ };
1616
+ /** PagePaginatedSchema */
1617
+ PagePaginatedSchema_QueryModelAggregate_: {
1618
+ /** Result */
1619
+ result?: components["schemas"]["QueryModelAggregate"][];
1620
+ /** Total */
1621
+ total: number;
1622
+ };
1623
+ /** PromptStyle */
1624
+ PromptStyle: {
1625
+ /** Id */
1626
+ id: string;
1627
+ /** Name */
1628
+ name: string;
1629
+ /** Description */
1630
+ description: string;
1631
+ };
1632
+ /** QueryAssistantToolAggregate */
1633
+ QueryAssistantToolAggregate: {
1634
+ /**
1635
+ * Id
1636
+ * Format: uuid
1637
+ */
1638
+ id: string;
1639
+ /** Active */
1640
+ active: boolean;
1641
+ /**
1642
+ * Created At
1643
+ * Format: date-time
1644
+ */
1645
+ created_at: string;
1646
+ tool: components["schemas"]["Tool"];
1647
+ /** Config */
1648
+ config?: {
1649
+ [key: string]: unknown;
1650
+ } | null;
1651
+ };
1652
+ /** QueryBugreportAggregate */
1653
+ QueryBugreportAggregate: {
1654
+ /**
1655
+ * Id
1656
+ * Format: uuid
1657
+ */
1658
+ id: string;
1659
+ /** Title */
1660
+ title: string;
1661
+ type: components["schemas"]["BugreportTypeEnum"];
1662
+ status: components["schemas"]["BugreportStatusEnum"];
1663
+ /**
1664
+ * Created At
1665
+ * Format: date-time
1666
+ */
1667
+ created_at: string;
1668
+ /**
1669
+ * Updated At
1670
+ * Format: date-time
1671
+ */
1672
+ updated_at: string;
1673
+ };
1674
+ /** QueryKnowledgeBaseAggregate */
1675
+ QueryKnowledgeBaseAggregate: {
1676
+ /**
1677
+ * Id
1678
+ * Format: uuid
1679
+ */
1680
+ id: string;
1681
+ /** Name */
1682
+ name: string;
1683
+ /** Description */
1684
+ description: string;
1685
+ /** Config */
1686
+ config: {
1687
+ [key: string]: unknown;
1688
+ };
1689
+ /**
1690
+ * Created At
1691
+ * Format: date-time
1692
+ */
1693
+ created_at: string;
1694
+ /**
1695
+ * Updated At
1696
+ * Format: date-time
1697
+ */
1698
+ updated_at: string;
1699
+ /**
1700
+ * User Id
1701
+ * Format: uuid
1702
+ */
1703
+ user_id: string;
1704
+ /** Documents Count */
1705
+ documents_count: number;
1706
+ };
1707
+ /** QueryModelAggregate */
1708
+ QueryModelAggregate: {
1709
+ /** Id */
1710
+ id: string;
1711
+ /** Name */
1712
+ name: string;
1713
+ /** Description */
1714
+ description: string;
1715
+ /** Max Context */
1716
+ max_context: number;
1717
+ /** Thinking */
1718
+ thinking: boolean;
1719
+ /** Modals */
1720
+ modals: components["schemas"]["Modal"][];
1721
+ /**
1722
+ * Created At
1723
+ * Format: date-time
1724
+ */
1725
+ created_at: string;
1726
+ /** External */
1727
+ external: boolean;
1728
+ };
1729
+ /** QueryModelOpenAIChatCompletionsRequest */
1730
+ QueryModelOpenAIChatCompletionsRequest: {
1731
+ /** Model */
1732
+ model: string;
1733
+ /** Messages */
1734
+ messages: unknown[];
1735
+ /**
1736
+ * Frequency Penalty
1737
+ * @default 0.01
1738
+ */
1739
+ frequency_penalty: number;
1740
+ /**
1741
+ * Max Completion Tokens
1742
+ * @default 4096
1743
+ */
1744
+ max_completion_tokens: number | null;
1745
+ /**
1746
+ * Temperature
1747
+ * @default 0.6
1748
+ */
1749
+ temperature: number;
1750
+ /**
1751
+ * Top P
1752
+ * @default 0.8
1753
+ */
1754
+ top_p: number;
1755
+ /**
1756
+ * Stream
1757
+ * @default false
1758
+ */
1759
+ stream: boolean;
1760
+ /** Reasoning Effort */
1761
+ reasoning_effort?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh") | null;
1762
+ /** Extra Body */
1763
+ extra_body?: {
1764
+ [key: string]: unknown;
1765
+ };
1766
+ /** Tools */
1767
+ tools?: unknown[] | null;
1768
+ /** Assistant Id */
1769
+ assistant_id?: string | null;
1770
+ /** Response Format */
1771
+ response_format?: unknown | null;
1772
+ };
1773
+ /** ResolveMagicLinkResponse */
1774
+ ResolveMagicLinkResponse: {
1775
+ /**
1776
+ * Chat Id
1777
+ * Format: uuid
1778
+ */
1779
+ chat_id: string;
1780
+ /** Name */
1781
+ name: string | null;
1782
+ /**
1783
+ * Role
1784
+ * @enum {string}
1785
+ */
1786
+ role: "owner" | "reader";
1787
+ };
1788
+ /** ScoredPayload */
1789
+ ScoredPayload: {
1790
+ /** Text */
1791
+ text: string;
1792
+ /** Document Id */
1793
+ document_id: string;
1794
+ /** Filename */
1795
+ filename: string;
1796
+ /** Chunk Id */
1797
+ chunk_id: number;
1798
+ /** Score */
1799
+ score: number;
1800
+ };
1801
+ /** SearchDocument */
1802
+ SearchDocument: {
1803
+ /**
1804
+ * Id
1805
+ * Format: uuid
1806
+ */
1807
+ id: string;
1808
+ /** Filename */
1809
+ filename: string;
1810
+ /** Bucket */
1811
+ bucket: string;
1812
+ /**
1813
+ * Kb Id
1814
+ * Format: uuid
1815
+ */
1816
+ kb_id: string;
1817
+ /** Content Type */
1818
+ content_type: string;
1819
+ /** Size */
1820
+ size: number;
1821
+ /**
1822
+ * Created At
1823
+ * Format: date-time
1824
+ */
1825
+ created_at: string;
1826
+ /**
1827
+ * Updated At
1828
+ * Format: date-time
1829
+ */
1830
+ updated_at: string;
1831
+ /** Status */
1832
+ status: string;
1833
+ /** Error */
1834
+ error: string | null;
1835
+ /** Content Url */
1836
+ content_url: string;
1837
+ /** Chunks */
1838
+ chunks: components["schemas"]["ScoredPayload"][];
1839
+ };
1840
+ /** SearchDocumentRequest */
1841
+ SearchDocumentRequest: {
1842
+ /** Query */
1843
+ query: string;
1844
+ /**
1845
+ * Kb Id
1846
+ * Format: uuid
1847
+ */
1848
+ kb_id: string;
1849
+ /** Limit */
1850
+ limit?: number | null;
1851
+ /**
1852
+ * Score Threshold
1853
+ * @default 0.2
1854
+ */
1855
+ score_threshold: number;
1856
+ };
1857
+ /** SearchDocumentResponse */
1858
+ SearchDocumentResponse: {
1859
+ /** Chunks */
1860
+ chunks: components["schemas"]["SearchDocument"][];
1861
+ };
1862
+ /** Tool */
1863
+ Tool: {
1864
+ /** Id */
1865
+ id: string;
1866
+ /** Name */
1867
+ name: string;
1868
+ /** Description */
1869
+ description: string;
1870
+ /** Category */
1871
+ category: string;
1872
+ /** User Config Schema */
1873
+ user_config_schema: {
1874
+ [key: string]: unknown;
1875
+ } | null;
1876
+ /** Active */
1877
+ active: boolean;
1878
+ };
1879
+ /** UpdateAssistantSchema */
1880
+ UpdateAssistantSchema: {
1881
+ /** Name */
1882
+ name: string;
1883
+ /** Description */
1884
+ description: string;
1885
+ /** Prompt */
1886
+ prompt: string;
1887
+ /** Private */
1888
+ private: boolean;
1889
+ /** Kb Id */
1890
+ kb_id: string | null;
1891
+ /** Temperature */
1892
+ temperature: number;
1893
+ /** Tags */
1894
+ tags?: string[];
1895
+ /** Tools */
1896
+ tools?: components["schemas"]["AssistantToolSchema"][] | null;
1897
+ };
1898
+ /** UpdateChatSchema */
1899
+ UpdateChatSchema: {
1900
+ /** Name */
1901
+ name?: string | null;
1902
+ /** Magic String */
1903
+ magic_string?: string | null;
1904
+ };
1905
+ /** UpdateKnowledgeBaseSchema */
1906
+ UpdateKnowledgeBaseSchema: {
1907
+ /** Name */
1908
+ name: string;
1909
+ /** Description */
1910
+ description: string;
1911
+ };
1912
+ /** UsageSchema */
1913
+ UsageSchema: {
1914
+ /** Prompt Tokens */
1915
+ prompt_tokens: number;
1916
+ /** Completion Tokens */
1917
+ completion_tokens: number;
1918
+ /** Total Tokens */
1919
+ total_tokens: number;
1920
+ };
1921
+ /** ValidationError */
1922
+ ValidationError: {
1923
+ /** Location */
1924
+ loc: (string | number)[];
1925
+ /** Message */
1926
+ msg: string;
1927
+ /** Error Type */
1928
+ type: string;
1929
+ };
1930
+ };
1931
+ responses: never;
1932
+ parameters: never;
1933
+ requestBodies: never;
1934
+ headers: never;
1935
+ pathItems: never;
1936
+ }
1937
+ export type $defs = Record<string, never>;
1938
+ export interface operations {
1939
+ get_assistants_api_assistant_get: {
1940
+ parameters: {
1941
+ query?: {
1942
+ limit?: number;
1943
+ group?: components["schemas"]["AssistantSearchGroup"] | null;
1944
+ cursor?: string | null;
1945
+ search?: string | null;
1946
+ };
1947
+ header?: never;
1948
+ path?: never;
1949
+ cookie?: never;
1950
+ };
1951
+ requestBody?: never;
1952
+ responses: {
1953
+ /** @description Successful Response */
1954
+ 200: {
1955
+ headers: {
1956
+ [name: string]: unknown;
1957
+ };
1958
+ content: {
1959
+ "application/json": components["schemas"]["CursorPaginatedV2Schema_Assistant_"];
1960
+ };
1961
+ };
1962
+ /** @description Validation Error */
1963
+ 422: {
1964
+ headers: {
1965
+ [name: string]: unknown;
1966
+ };
1967
+ content: {
1968
+ "application/json": components["schemas"]["HTTPValidationError"];
1969
+ };
1970
+ };
1971
+ };
1972
+ };
1973
+ create_assistant_api_assistant_post: {
1974
+ parameters: {
1975
+ query?: never;
1976
+ header?: never;
1977
+ path?: never;
1978
+ cookie?: never;
1979
+ };
1980
+ requestBody: {
1981
+ content: {
1982
+ "application/json": components["schemas"]["CreateAssistantSchema"];
1983
+ };
1984
+ };
1985
+ responses: {
1986
+ /** @description Successful Response */
1987
+ 200: {
1988
+ headers: {
1989
+ [name: string]: unknown;
1990
+ };
1991
+ content: {
1992
+ "application/json": components["schemas"]["AssistantWithTools"];
1993
+ };
1994
+ };
1995
+ /** @description Validation Error */
1996
+ 422: {
1997
+ headers: {
1998
+ [name: string]: unknown;
1999
+ };
2000
+ content: {
2001
+ "application/json": components["schemas"]["HTTPValidationError"];
2002
+ };
2003
+ };
2004
+ };
2005
+ };
2006
+ get_tags_api_assistant_tags_get: {
2007
+ parameters: {
2008
+ query?: {
2009
+ search?: string | null;
2010
+ cursor?: string | null;
2011
+ limit?: number;
2012
+ };
2013
+ header?: never;
2014
+ path?: never;
2015
+ cookie?: never;
2016
+ };
2017
+ requestBody?: never;
2018
+ responses: {
2019
+ /** @description Successful Response */
2020
+ 200: {
2021
+ headers: {
2022
+ [name: string]: unknown;
2023
+ };
2024
+ content: {
2025
+ "application/json": components["schemas"]["CursorPaginatedSchema_AssistantTag_"];
2026
+ };
2027
+ };
2028
+ /** @description Validation Error */
2029
+ 422: {
2030
+ headers: {
2031
+ [name: string]: unknown;
2032
+ };
2033
+ content: {
2034
+ "application/json": components["schemas"]["HTTPValidationError"];
2035
+ };
2036
+ };
2037
+ };
2038
+ };
2039
+ create_tag_api_assistant_tags_post: {
2040
+ parameters: {
2041
+ query?: never;
2042
+ header?: never;
2043
+ path?: never;
2044
+ cookie?: never;
2045
+ };
2046
+ requestBody: {
2047
+ content: {
2048
+ "application/json": components["schemas"]["CreateTagSchema"];
2049
+ };
2050
+ };
2051
+ responses: {
2052
+ /** @description Successful Response */
2053
+ 200: {
2054
+ headers: {
2055
+ [name: string]: unknown;
2056
+ };
2057
+ content: {
2058
+ "application/json": components["schemas"]["AssistantTag"];
2059
+ };
2060
+ };
2061
+ /** @description Validation Error */
2062
+ 422: {
2063
+ headers: {
2064
+ [name: string]: unknown;
2065
+ };
2066
+ content: {
2067
+ "application/json": components["schemas"]["HTTPValidationError"];
2068
+ };
2069
+ };
2070
+ };
2071
+ };
2072
+ get_assistant_api_assistant__assistant_id__get: {
2073
+ parameters: {
2074
+ query?: never;
2075
+ header?: never;
2076
+ path: {
2077
+ assistant_id: string;
2078
+ };
2079
+ cookie?: never;
2080
+ };
2081
+ requestBody?: never;
2082
+ responses: {
2083
+ /** @description Successful Response */
2084
+ 200: {
2085
+ headers: {
2086
+ [name: string]: unknown;
2087
+ };
2088
+ content: {
2089
+ "application/json": components["schemas"]["AssistantWithTools"];
2090
+ };
2091
+ };
2092
+ /** @description Validation Error */
2093
+ 422: {
2094
+ headers: {
2095
+ [name: string]: unknown;
2096
+ };
2097
+ content: {
2098
+ "application/json": components["schemas"]["HTTPValidationError"];
2099
+ };
2100
+ };
2101
+ };
2102
+ };
2103
+ delete_assistant_api_assistant__assistant_id__delete: {
2104
+ parameters: {
2105
+ query?: never;
2106
+ header?: never;
2107
+ path: {
2108
+ assistant_id: string;
2109
+ };
2110
+ cookie?: never;
2111
+ };
2112
+ requestBody?: never;
2113
+ responses: {
2114
+ /** @description Successful Response */
2115
+ 200: {
2116
+ headers: {
2117
+ [name: string]: unknown;
2118
+ };
2119
+ content: {
2120
+ "application/json": unknown;
2121
+ };
2122
+ };
2123
+ /** @description Validation Error */
2124
+ 422: {
2125
+ headers: {
2126
+ [name: string]: unknown;
2127
+ };
2128
+ content: {
2129
+ "application/json": components["schemas"]["HTTPValidationError"];
2130
+ };
2131
+ };
2132
+ };
2133
+ };
2134
+ update_assistant_api_assistant__assistant_id__patch: {
2135
+ parameters: {
2136
+ query?: never;
2137
+ header?: never;
2138
+ path: {
2139
+ assistant_id: string;
2140
+ };
2141
+ cookie?: never;
2142
+ };
2143
+ requestBody: {
2144
+ content: {
2145
+ "application/json": components["schemas"]["UpdateAssistantSchema"];
2146
+ };
2147
+ };
2148
+ responses: {
2149
+ /** @description Successful Response */
2150
+ 200: {
2151
+ headers: {
2152
+ [name: string]: unknown;
2153
+ };
2154
+ content: {
2155
+ "application/json": components["schemas"]["AssistantWithTools"];
2156
+ };
2157
+ };
2158
+ /** @description Validation Error */
2159
+ 422: {
2160
+ headers: {
2161
+ [name: string]: unknown;
2162
+ };
2163
+ content: {
2164
+ "application/json": components["schemas"]["HTTPValidationError"];
2165
+ };
2166
+ };
2167
+ };
2168
+ };
2169
+ get_chats_for_user_api_chat_get: {
2170
+ parameters: {
2171
+ query?: {
2172
+ /** @description Поиск по имени чата */
2173
+ search?: string | null;
2174
+ limit?: number;
2175
+ cursor?: string | null;
2176
+ };
2177
+ header?: never;
2178
+ path?: never;
2179
+ cookie?: never;
2180
+ };
2181
+ requestBody?: never;
2182
+ responses: {
2183
+ /** @description Successful Response */
2184
+ 200: {
2185
+ headers: {
2186
+ [name: string]: unknown;
2187
+ };
2188
+ content: {
2189
+ "application/json": components["schemas"]["CursorPaginatedSchema_ChatWithMessageAggregate_"];
2190
+ };
2191
+ };
2192
+ /** @description Validation Error */
2193
+ 422: {
2194
+ headers: {
2195
+ [name: string]: unknown;
2196
+ };
2197
+ content: {
2198
+ "application/json": components["schemas"]["HTTPValidationError"];
2199
+ };
2200
+ };
2201
+ };
2202
+ };
2203
+ create_chat_api_chat_post: {
2204
+ parameters: {
2205
+ query?: never;
2206
+ header?: never;
2207
+ path?: never;
2208
+ cookie?: never;
2209
+ };
2210
+ requestBody: {
2211
+ content: {
2212
+ "application/json": components["schemas"]["CreateChatSchema"];
2213
+ };
2214
+ };
2215
+ responses: {
2216
+ /** @description Successful Response */
2217
+ 200: {
2218
+ headers: {
2219
+ [name: string]: unknown;
2220
+ };
2221
+ content: {
2222
+ "application/json": components["schemas"]["ChatWithMessageAggregate"];
2223
+ };
2224
+ };
2225
+ /** @description Validation Error */
2226
+ 422: {
2227
+ headers: {
2228
+ [name: string]: unknown;
2229
+ };
2230
+ content: {
2231
+ "application/json": components["schemas"]["HTTPValidationError"];
2232
+ };
2233
+ };
2234
+ };
2235
+ };
2236
+ generate_chat_name_api_chat__chat_id__generate_name_post: {
2237
+ parameters: {
2238
+ query?: never;
2239
+ header?: never;
2240
+ path: {
2241
+ chat_id: string;
2242
+ };
2243
+ cookie?: never;
2244
+ };
2245
+ requestBody?: never;
2246
+ responses: {
2247
+ /** @description Successful Response */
2248
+ 200: {
2249
+ headers: {
2250
+ [name: string]: unknown;
2251
+ };
2252
+ content: {
2253
+ "application/json": components["schemas"]["Chat"];
2254
+ };
2255
+ };
2256
+ /** @description Validation Error */
2257
+ 422: {
2258
+ headers: {
2259
+ [name: string]: unknown;
2260
+ };
2261
+ content: {
2262
+ "application/json": components["schemas"]["HTTPValidationError"];
2263
+ };
2264
+ };
2265
+ };
2266
+ };
2267
+ delete_chat_api_chat__chat_id__delete: {
2268
+ parameters: {
2269
+ query?: never;
2270
+ header?: never;
2271
+ path: {
2272
+ chat_id: string;
2273
+ };
2274
+ cookie?: never;
2275
+ };
2276
+ requestBody?: never;
2277
+ responses: {
2278
+ /** @description Successful Response */
2279
+ 200: {
2280
+ headers: {
2281
+ [name: string]: unknown;
2282
+ };
2283
+ content: {
2284
+ "application/json": unknown;
2285
+ };
2286
+ };
2287
+ /** @description Validation Error */
2288
+ 422: {
2289
+ headers: {
2290
+ [name: string]: unknown;
2291
+ };
2292
+ content: {
2293
+ "application/json": components["schemas"]["HTTPValidationError"];
2294
+ };
2295
+ };
2296
+ };
2297
+ };
2298
+ update_chat_api_chat__chat_id__patch: {
2299
+ parameters: {
2300
+ query?: never;
2301
+ header?: never;
2302
+ path: {
2303
+ chat_id: string;
2304
+ };
2305
+ cookie?: never;
2306
+ };
2307
+ requestBody: {
2308
+ content: {
2309
+ "application/json": components["schemas"]["UpdateChatSchema"];
2310
+ };
2311
+ };
2312
+ responses: {
2313
+ /** @description Successful Response */
2314
+ 200: {
2315
+ headers: {
2316
+ [name: string]: unknown;
2317
+ };
2318
+ content: {
2319
+ "application/json": components["schemas"]["ChatWithMessageAggregate"];
2320
+ };
2321
+ };
2322
+ /** @description Validation Error */
2323
+ 422: {
2324
+ headers: {
2325
+ [name: string]: unknown;
2326
+ };
2327
+ content: {
2328
+ "application/json": components["schemas"]["HTTPValidationError"];
2329
+ };
2330
+ };
2331
+ };
2332
+ };
2333
+ get_chat_attachments_api_chat__chat_id__attachments_get: {
2334
+ parameters: {
2335
+ query?: {
2336
+ search?: string | null;
2337
+ cursor?: string | null;
2338
+ limit?: number;
2339
+ };
2340
+ header?: never;
2341
+ path: {
2342
+ chat_id: string;
2343
+ };
2344
+ cookie?: never;
2345
+ };
2346
+ requestBody?: never;
2347
+ responses: {
2348
+ /** @description Successful Response */
2349
+ 200: {
2350
+ headers: {
2351
+ [name: string]: unknown;
2352
+ };
2353
+ content: {
2354
+ "application/json": components["schemas"]["CursorPaginatedSchema_AttachmentWithContentUrlSchema_"];
2355
+ };
2356
+ };
2357
+ /** @description Validation Error */
2358
+ 422: {
2359
+ headers: {
2360
+ [name: string]: unknown;
2361
+ };
2362
+ content: {
2363
+ "application/json": components["schemas"]["HTTPValidationError"];
2364
+ };
2365
+ };
2366
+ };
2367
+ };
2368
+ create_magic_link_api_chat__chat_id__magic_link_post: {
2369
+ parameters: {
2370
+ query?: never;
2371
+ header?: never;
2372
+ path: {
2373
+ chat_id: string;
2374
+ };
2375
+ cookie?: never;
2376
+ };
2377
+ requestBody?: never;
2378
+ responses: {
2379
+ /** @description Successful Response */
2380
+ 200: {
2381
+ headers: {
2382
+ [name: string]: unknown;
2383
+ };
2384
+ content: {
2385
+ "application/json": components["schemas"]["CreateMagicLinkResponse"];
2386
+ };
2387
+ };
2388
+ /** @description Validation Error */
2389
+ 422: {
2390
+ headers: {
2391
+ [name: string]: unknown;
2392
+ };
2393
+ content: {
2394
+ "application/json": components["schemas"]["HTTPValidationError"];
2395
+ };
2396
+ };
2397
+ };
2398
+ };
2399
+ resolve_magic_link_api_chat_resolve_magic_link__magic_string__get: {
2400
+ parameters: {
2401
+ query?: never;
2402
+ header?: never;
2403
+ path: {
2404
+ magic_string: string;
2405
+ };
2406
+ cookie?: never;
2407
+ };
2408
+ requestBody?: never;
2409
+ responses: {
2410
+ /** @description Successful Response */
2411
+ 200: {
2412
+ headers: {
2413
+ [name: string]: unknown;
2414
+ };
2415
+ content: {
2416
+ "application/json": components["schemas"]["ResolveMagicLinkResponse"];
2417
+ };
2418
+ };
2419
+ /** @description Validation Error */
2420
+ 422: {
2421
+ headers: {
2422
+ [name: string]: unknown;
2423
+ };
2424
+ content: {
2425
+ "application/json": components["schemas"]["HTTPValidationError"];
2426
+ };
2427
+ };
2428
+ };
2429
+ };
2430
+ get_all_versions_api_version_get: {
2431
+ parameters: {
2432
+ query?: {
2433
+ cursor?: string | null;
2434
+ limit?: number;
2435
+ };
2436
+ header?: never;
2437
+ path?: never;
2438
+ cookie?: never;
2439
+ };
2440
+ requestBody?: never;
2441
+ responses: {
2442
+ /** @description Successful Response */
2443
+ 200: {
2444
+ headers: {
2445
+ [name: string]: unknown;
2446
+ };
2447
+ content: {
2448
+ "application/json": components["schemas"]["CursorPaginatedSchema_FullVersionAggregate_"];
2449
+ };
2450
+ };
2451
+ /** @description Validation Error */
2452
+ 422: {
2453
+ headers: {
2454
+ [name: string]: unknown;
2455
+ };
2456
+ content: {
2457
+ "application/json": components["schemas"]["HTTPValidationError"];
2458
+ };
2459
+ };
2460
+ };
2461
+ };
2462
+ get_available_models_api_model_get: {
2463
+ parameters: {
2464
+ query?: never;
2465
+ header?: never;
2466
+ path?: never;
2467
+ cookie?: never;
2468
+ };
2469
+ requestBody?: never;
2470
+ responses: {
2471
+ /** @description Successful Response */
2472
+ 200: {
2473
+ headers: {
2474
+ [name: string]: unknown;
2475
+ };
2476
+ content: {
2477
+ "application/json": components["schemas"]["PagePaginatedSchema_QueryModelAggregate_"];
2478
+ };
2479
+ };
2480
+ };
2481
+ };
2482
+ get_attachments_api_document_attachment_get: {
2483
+ parameters: {
2484
+ query?: {
2485
+ chat_id?: string | null;
2486
+ search?: string | null;
2487
+ limit?: number;
2488
+ cursor?: string | null;
2489
+ };
2490
+ header?: never;
2491
+ path?: never;
2492
+ cookie?: never;
2493
+ };
2494
+ requestBody?: never;
2495
+ responses: {
2496
+ /** @description Successful Response */
2497
+ 200: {
2498
+ headers: {
2499
+ [name: string]: unknown;
2500
+ };
2501
+ content: {
2502
+ "application/json": components["schemas"]["CursorPaginatedSchema_AttachmentWithContentUrlSchema_"];
2503
+ };
2504
+ };
2505
+ /** @description Validation Error */
2506
+ 422: {
2507
+ headers: {
2508
+ [name: string]: unknown;
2509
+ };
2510
+ content: {
2511
+ "application/json": components["schemas"]["HTTPValidationError"];
2512
+ };
2513
+ };
2514
+ };
2515
+ };
2516
+ upload_document_api_document_attachment_post: {
2517
+ parameters: {
2518
+ query?: never;
2519
+ header?: never;
2520
+ path?: never;
2521
+ cookie?: never;
2522
+ };
2523
+ requestBody: {
2524
+ content: {
2525
+ "multipart/form-data": components["schemas"]["Body_upload_document_api_document_attachment_post"];
2526
+ };
2527
+ };
2528
+ responses: {
2529
+ /** @description Successful Response */
2530
+ 200: {
2531
+ headers: {
2532
+ [name: string]: unknown;
2533
+ };
2534
+ content: {
2535
+ "application/json": components["schemas"]["AttachmentWithContentUrlSchema"];
2536
+ };
2537
+ };
2538
+ /** @description Validation Error */
2539
+ 422: {
2540
+ headers: {
2541
+ [name: string]: unknown;
2542
+ };
2543
+ content: {
2544
+ "application/json": components["schemas"]["HTTPValidationError"];
2545
+ };
2546
+ };
2547
+ };
2548
+ };
2549
+ delete_document_api_document_attachment__attachment_id__delete: {
2550
+ parameters: {
2551
+ query: {
2552
+ document_id: string;
2553
+ };
2554
+ header?: never;
2555
+ path?: never;
2556
+ cookie?: never;
2557
+ };
2558
+ requestBody?: never;
2559
+ responses: {
2560
+ /** @description Successful Response */
2561
+ 200: {
2562
+ headers: {
2563
+ [name: string]: unknown;
2564
+ };
2565
+ content: {
2566
+ "application/json": unknown;
2567
+ };
2568
+ };
2569
+ /** @description Validation Error */
2570
+ 422: {
2571
+ headers: {
2572
+ [name: string]: unknown;
2573
+ };
2574
+ content: {
2575
+ "application/json": components["schemas"]["HTTPValidationError"];
2576
+ };
2577
+ };
2578
+ };
2579
+ };
2580
+ get_knowledge_list_api_knowledge_get: {
2581
+ parameters: {
2582
+ query?: {
2583
+ search?: string | null;
2584
+ current?: number;
2585
+ page_size?: number;
2586
+ };
2587
+ header?: never;
2588
+ path?: never;
2589
+ cookie?: never;
2590
+ };
2591
+ requestBody?: never;
2592
+ responses: {
2593
+ /** @description Successful Response */
2594
+ 200: {
2595
+ headers: {
2596
+ [name: string]: unknown;
2597
+ };
2598
+ content: {
2599
+ "application/json": components["schemas"]["PagePaginatedSchema_QueryKnowledgeBaseAggregate_"];
2600
+ };
2601
+ };
2602
+ /** @description Validation Error */
2603
+ 422: {
2604
+ headers: {
2605
+ [name: string]: unknown;
2606
+ };
2607
+ content: {
2608
+ "application/json": components["schemas"]["HTTPValidationError"];
2609
+ };
2610
+ };
2611
+ };
2612
+ };
2613
+ create_knowledge_api_knowledge_post: {
2614
+ parameters: {
2615
+ query?: never;
2616
+ header?: never;
2617
+ path?: never;
2618
+ cookie?: never;
2619
+ };
2620
+ requestBody: {
2621
+ content: {
2622
+ "application/json": components["schemas"]["CreateKnowledgeBaseSchema"];
2623
+ };
2624
+ };
2625
+ responses: {
2626
+ /** @description Successful Response */
2627
+ 200: {
2628
+ headers: {
2629
+ [name: string]: unknown;
2630
+ };
2631
+ content: {
2632
+ "application/json": components["schemas"]["KnowledgeBase"];
2633
+ };
2634
+ };
2635
+ /** @description Validation Error */
2636
+ 422: {
2637
+ headers: {
2638
+ [name: string]: unknown;
2639
+ };
2640
+ content: {
2641
+ "application/json": components["schemas"]["HTTPValidationError"];
2642
+ };
2643
+ };
2644
+ };
2645
+ };
2646
+ get_knowledge_api_knowledge__id__get: {
2647
+ parameters: {
2648
+ query?: never;
2649
+ header?: never;
2650
+ path: {
2651
+ id: string;
2652
+ };
2653
+ cookie?: never;
2654
+ };
2655
+ requestBody?: never;
2656
+ responses: {
2657
+ /** @description Successful Response */
2658
+ 200: {
2659
+ headers: {
2660
+ [name: string]: unknown;
2661
+ };
2662
+ content: {
2663
+ "application/json": components["schemas"]["QueryKnowledgeBaseAggregate"];
2664
+ };
2665
+ };
2666
+ /** @description Validation Error */
2667
+ 422: {
2668
+ headers: {
2669
+ [name: string]: unknown;
2670
+ };
2671
+ content: {
2672
+ "application/json": components["schemas"]["HTTPValidationError"];
2673
+ };
2674
+ };
2675
+ };
2676
+ };
2677
+ delete_knowledge_api_knowledge__id__delete: {
2678
+ parameters: {
2679
+ query?: never;
2680
+ header?: never;
2681
+ path: {
2682
+ id: string;
2683
+ };
2684
+ cookie?: never;
2685
+ };
2686
+ requestBody?: never;
2687
+ responses: {
2688
+ /** @description Successful Response */
2689
+ 200: {
2690
+ headers: {
2691
+ [name: string]: unknown;
2692
+ };
2693
+ content: {
2694
+ "application/json": unknown;
2695
+ };
2696
+ };
2697
+ /** @description Validation Error */
2698
+ 422: {
2699
+ headers: {
2700
+ [name: string]: unknown;
2701
+ };
2702
+ content: {
2703
+ "application/json": components["schemas"]["HTTPValidationError"];
2704
+ };
2705
+ };
2706
+ };
2707
+ };
2708
+ update_knowledge_api_knowledge__id__patch: {
2709
+ parameters: {
2710
+ query?: never;
2711
+ header?: never;
2712
+ path: {
2713
+ id: string;
2714
+ };
2715
+ cookie?: never;
2716
+ };
2717
+ requestBody: {
2718
+ content: {
2719
+ "application/json": components["schemas"]["UpdateKnowledgeBaseSchema"];
2720
+ };
2721
+ };
2722
+ responses: {
2723
+ /** @description Successful Response */
2724
+ 200: {
2725
+ headers: {
2726
+ [name: string]: unknown;
2727
+ };
2728
+ content: {
2729
+ "application/json": components["schemas"]["QueryKnowledgeBaseAggregate"];
2730
+ };
2731
+ };
2732
+ /** @description Validation Error */
2733
+ 422: {
2734
+ headers: {
2735
+ [name: string]: unknown;
2736
+ };
2737
+ content: {
2738
+ "application/json": components["schemas"]["HTTPValidationError"];
2739
+ };
2740
+ };
2741
+ };
2742
+ };
2743
+ get_knowledge_documents_api_knowledge__kb_id__documents_get: {
2744
+ parameters: {
2745
+ query?: {
2746
+ statuses?: string[] | null;
2747
+ current?: number;
2748
+ page_size?: number;
2749
+ };
2750
+ header?: never;
2751
+ path: {
2752
+ kb_id: string;
2753
+ };
2754
+ cookie?: never;
2755
+ };
2756
+ requestBody?: never;
2757
+ responses: {
2758
+ /** @description Successful Response */
2759
+ 200: {
2760
+ headers: {
2761
+ [name: string]: unknown;
2762
+ };
2763
+ content: {
2764
+ "application/json": components["schemas"]["PagePaginatedSchema_DocumentWithContentUrl_"];
2765
+ };
2766
+ };
2767
+ /** @description Validation Error */
2768
+ 422: {
2769
+ headers: {
2770
+ [name: string]: unknown;
2771
+ };
2772
+ content: {
2773
+ "application/json": components["schemas"]["HTTPValidationError"];
2774
+ };
2775
+ };
2776
+ };
2777
+ };
2778
+ upload_knowledge_api_knowledge_upload__kb_id__post: {
2779
+ parameters: {
2780
+ query?: never;
2781
+ header?: never;
2782
+ path: {
2783
+ kb_id: string;
2784
+ };
2785
+ cookie?: never;
2786
+ };
2787
+ requestBody: {
2788
+ content: {
2789
+ "multipart/form-data": components["schemas"]["Body_upload_knowledge_api_knowledge_upload__kb_id__post"];
2790
+ };
2791
+ };
2792
+ responses: {
2793
+ /** @description Successful Response */
2794
+ 200: {
2795
+ headers: {
2796
+ [name: string]: unknown;
2797
+ };
2798
+ content: {
2799
+ "application/json": components["schemas"]["DocumentWithContentUrl"];
2800
+ };
2801
+ };
2802
+ /** @description Validation Error */
2803
+ 422: {
2804
+ headers: {
2805
+ [name: string]: unknown;
2806
+ };
2807
+ content: {
2808
+ "application/json": components["schemas"]["HTTPValidationError"];
2809
+ };
2810
+ };
2811
+ };
2812
+ };
2813
+ delete_documents_bulk_api_knowledge_document_bulk_delete: {
2814
+ parameters: {
2815
+ query: {
2816
+ document_ids: string[];
2817
+ };
2818
+ header?: never;
2819
+ path?: never;
2820
+ cookie?: never;
2821
+ };
2822
+ requestBody?: never;
2823
+ responses: {
2824
+ /** @description Successful Response */
2825
+ 200: {
2826
+ headers: {
2827
+ [name: string]: unknown;
2828
+ };
2829
+ content: {
2830
+ "application/json": unknown;
2831
+ };
2832
+ };
2833
+ /** @description Validation Error */
2834
+ 422: {
2835
+ headers: {
2836
+ [name: string]: unknown;
2837
+ };
2838
+ content: {
2839
+ "application/json": components["schemas"]["HTTPValidationError"];
2840
+ };
2841
+ };
2842
+ };
2843
+ };
2844
+ delete_document_api_knowledge_document__document_id__delete: {
2845
+ parameters: {
2846
+ query?: never;
2847
+ header?: never;
2848
+ path: {
2849
+ document_id: string;
2850
+ };
2851
+ cookie?: never;
2852
+ };
2853
+ requestBody?: never;
2854
+ responses: {
2855
+ /** @description Successful Response */
2856
+ 200: {
2857
+ headers: {
2858
+ [name: string]: unknown;
2859
+ };
2860
+ content: {
2861
+ "application/json": unknown;
2862
+ };
2863
+ };
2864
+ /** @description Validation Error */
2865
+ 422: {
2866
+ headers: {
2867
+ [name: string]: unknown;
2868
+ };
2869
+ content: {
2870
+ "application/json": components["schemas"]["HTTPValidationError"];
2871
+ };
2872
+ };
2873
+ };
2874
+ };
2875
+ retry_document_api_knowledge__document_id__retry_post: {
2876
+ parameters: {
2877
+ query?: never;
2878
+ header?: never;
2879
+ path: {
2880
+ document_id: string;
2881
+ };
2882
+ cookie?: never;
2883
+ };
2884
+ requestBody?: never;
2885
+ responses: {
2886
+ /** @description Successful Response */
2887
+ 200: {
2888
+ headers: {
2889
+ [name: string]: unknown;
2890
+ };
2891
+ content: {
2892
+ "application/json": unknown;
2893
+ };
2894
+ };
2895
+ /** @description Validation Error */
2896
+ 422: {
2897
+ headers: {
2898
+ [name: string]: unknown;
2899
+ };
2900
+ content: {
2901
+ "application/json": components["schemas"]["HTTPValidationError"];
2902
+ };
2903
+ };
2904
+ };
2905
+ };
2906
+ knowledge_base_search_api_knowledge__kb_id__search_post: {
2907
+ parameters: {
2908
+ query?: never;
2909
+ header?: never;
2910
+ path: {
2911
+ kb_id: string;
2912
+ };
2913
+ cookie?: never;
2914
+ };
2915
+ requestBody: {
2916
+ content: {
2917
+ "application/json": components["schemas"]["SearchDocumentRequest"];
2918
+ };
2919
+ };
2920
+ responses: {
2921
+ /** @description Successful Response */
2922
+ 200: {
2923
+ headers: {
2924
+ [name: string]: unknown;
2925
+ };
2926
+ content: {
2927
+ "application/json": components["schemas"]["SearchDocumentResponse"];
2928
+ };
2929
+ };
2930
+ /** @description Validation Error */
2931
+ 422: {
2932
+ headers: {
2933
+ [name: string]: unknown;
2934
+ };
2935
+ content: {
2936
+ "application/json": components["schemas"]["HTTPValidationError"];
2937
+ };
2938
+ };
2939
+ };
2940
+ };
2941
+ get_document_chunks_api_knowledge_documents__document_id__chunks_get: {
2942
+ parameters: {
2943
+ query?: {
2944
+ search?: string | null;
2945
+ cursor?: string | null;
2946
+ limit?: number;
2947
+ };
2948
+ header?: never;
2949
+ path: {
2950
+ document_id: string;
2951
+ };
2952
+ cookie?: never;
2953
+ };
2954
+ requestBody?: never;
2955
+ responses: {
2956
+ /** @description Successful Response */
2957
+ 200: {
2958
+ headers: {
2959
+ [name: string]: unknown;
2960
+ };
2961
+ content: {
2962
+ "application/json": components["schemas"]["CursorPaginatedSchema_DocumentChunk_"];
2963
+ };
2964
+ };
2965
+ /** @description Validation Error */
2966
+ 422: {
2967
+ headers: {
2968
+ [name: string]: unknown;
2969
+ };
2970
+ content: {
2971
+ "application/json": components["schemas"]["HTTPValidationError"];
2972
+ };
2973
+ };
2974
+ };
2975
+ };
2976
+ get_chat_messages_api_v2_message_get: {
2977
+ parameters: {
2978
+ query: {
2979
+ chat_id: string;
2980
+ limit?: number;
2981
+ magic_string?: string | null;
2982
+ cursor?: string | null;
2983
+ };
2984
+ header?: never;
2985
+ path?: never;
2986
+ cookie?: never;
2987
+ };
2988
+ requestBody?: never;
2989
+ responses: {
2990
+ /** @description Successful Response */
2991
+ 200: {
2992
+ headers: {
2993
+ [name: string]: unknown;
2994
+ };
2995
+ content: {
2996
+ "application/json": components["schemas"]["CursorPaginatedSchema_Message_AttachmentWithContentUrlSchema__"];
2997
+ };
2998
+ };
2999
+ /** @description Validation Error */
3000
+ 422: {
3001
+ headers: {
3002
+ [name: string]: unknown;
3003
+ };
3004
+ content: {
3005
+ "application/json": components["schemas"]["HTTPValidationError"];
3006
+ };
3007
+ };
3008
+ };
3009
+ };
3010
+ create_message_api_v2_message_post: {
3011
+ parameters: {
3012
+ query?: never;
3013
+ header?: never;
3014
+ path?: never;
3015
+ cookie?: never;
3016
+ };
3017
+ requestBody: {
3018
+ content: {
3019
+ "application/json": components["schemas"]["CreateMessageRequest"];
3020
+ };
3021
+ };
3022
+ responses: {
3023
+ /** @description Successful Response */
3024
+ 200: {
3025
+ headers: {
3026
+ [name: string]: unknown;
3027
+ };
3028
+ content: {
3029
+ "application/json": components["schemas"]["Message_AttachmentWithContentUrlSchema_"];
3030
+ };
3031
+ };
3032
+ /** @description Validation Error */
3033
+ 422: {
3034
+ headers: {
3035
+ [name: string]: unknown;
3036
+ };
3037
+ content: {
3038
+ "application/json": components["schemas"]["HTTPValidationError"];
3039
+ };
3040
+ };
3041
+ };
3042
+ };
3043
+ generate_message_api_v2_message_generate_post: {
3044
+ parameters: {
3045
+ query?: never;
3046
+ header?: never;
3047
+ path?: never;
3048
+ cookie?: never;
3049
+ };
3050
+ requestBody: {
3051
+ content: {
3052
+ "application/json": components["schemas"]["GenerateMessageRequest"];
3053
+ };
3054
+ };
3055
+ responses: {
3056
+ /** @description Successful Response */
3057
+ 200: {
3058
+ headers: {
3059
+ [name: string]: unknown;
3060
+ };
3061
+ content: {
3062
+ "application/json": components["schemas"]["GenerateMessageResponse"];
3063
+ };
3064
+ };
3065
+ /** @description Validation Error */
3066
+ 422: {
3067
+ headers: {
3068
+ [name: string]: unknown;
3069
+ };
3070
+ content: {
3071
+ "application/json": components["schemas"]["HTTPValidationError"];
3072
+ };
3073
+ };
3074
+ };
3075
+ };
3076
+ post_one_shot_message_api_v2_message_one_shot_post: {
3077
+ parameters: {
3078
+ query?: never;
3079
+ header?: never;
3080
+ path?: never;
3081
+ cookie?: never;
3082
+ };
3083
+ requestBody: {
3084
+ content: {
3085
+ "application/json": components["schemas"]["OneShotMessageSchema"];
3086
+ };
3087
+ };
3088
+ responses: {
3089
+ /** @description Successful Response */
3090
+ 200: {
3091
+ headers: {
3092
+ [name: string]: unknown;
3093
+ };
3094
+ content: {
3095
+ "application/json": components["schemas"]["OneShotMessageResponse"];
3096
+ };
3097
+ };
3098
+ /** @description Validation Error */
3099
+ 422: {
3100
+ headers: {
3101
+ [name: string]: unknown;
3102
+ };
3103
+ content: {
3104
+ "application/json": components["schemas"]["HTTPValidationError"];
3105
+ };
3106
+ };
3107
+ };
3108
+ };
3109
+ improve_prompt_api_v2_message_improve_prompt_post: {
3110
+ parameters: {
3111
+ query?: never;
3112
+ header?: never;
3113
+ path?: never;
3114
+ cookie?: never;
3115
+ };
3116
+ requestBody: {
3117
+ content: {
3118
+ "application/json": components["schemas"]["ImprovePromptSchema"];
3119
+ };
3120
+ };
3121
+ responses: {
3122
+ /** @description Successful Response */
3123
+ 200: {
3124
+ headers: {
3125
+ [name: string]: unknown;
3126
+ };
3127
+ content: {
3128
+ "application/json": components["schemas"]["ImprovePromptResult"];
3129
+ };
3130
+ };
3131
+ /** @description Validation Error */
3132
+ 422: {
3133
+ headers: {
3134
+ [name: string]: unknown;
3135
+ };
3136
+ content: {
3137
+ "application/json": components["schemas"]["HTTPValidationError"];
3138
+ };
3139
+ };
3140
+ };
3141
+ };
3142
+ get_prompt_styles_api_v2_message_improve_prompt_styles_get: {
3143
+ parameters: {
3144
+ query: {
3145
+ context: string;
3146
+ };
3147
+ header?: never;
3148
+ path?: never;
3149
+ cookie?: never;
3150
+ };
3151
+ requestBody?: never;
3152
+ responses: {
3153
+ /** @description Successful Response */
3154
+ 200: {
3155
+ headers: {
3156
+ [name: string]: unknown;
3157
+ };
3158
+ content: {
3159
+ "application/json": components["schemas"]["GetPromptStylesResponse"];
3160
+ };
3161
+ };
3162
+ /** @description Validation Error */
3163
+ 422: {
3164
+ headers: {
3165
+ [name: string]: unknown;
3166
+ };
3167
+ content: {
3168
+ "application/json": components["schemas"]["HTTPValidationError"];
3169
+ };
3170
+ };
3171
+ };
3172
+ };
3173
+ get_bugreports_api_bugreports_get: {
3174
+ parameters: {
3175
+ query?: {
3176
+ search?: string | null;
3177
+ status?: string | null;
3178
+ type?: string | null;
3179
+ cursor?: string | null;
3180
+ limit?: number;
3181
+ };
3182
+ header?: never;
3183
+ path?: never;
3184
+ cookie?: never;
3185
+ };
3186
+ requestBody?: never;
3187
+ responses: {
3188
+ /** @description Successful Response */
3189
+ 200: {
3190
+ headers: {
3191
+ [name: string]: unknown;
3192
+ };
3193
+ content: {
3194
+ "application/json": components["schemas"]["CursorPaginatedSchema_QueryBugreportAggregate_"];
3195
+ };
3196
+ };
3197
+ /** @description Validation Error */
3198
+ 422: {
3199
+ headers: {
3200
+ [name: string]: unknown;
3201
+ };
3202
+ content: {
3203
+ "application/json": components["schemas"]["HTTPValidationError"];
3204
+ };
3205
+ };
3206
+ };
3207
+ };
3208
+ create_bugreport_api_bugreports_post: {
3209
+ parameters: {
3210
+ query?: never;
3211
+ header?: never;
3212
+ path?: never;
3213
+ cookie?: never;
3214
+ };
3215
+ requestBody: {
3216
+ content: {
3217
+ "multipart/form-data": components["schemas"]["Body_create_bugreport_api_bugreports_post"];
3218
+ };
3219
+ };
3220
+ responses: {
3221
+ /** @description Successful Response */
3222
+ 200: {
3223
+ headers: {
3224
+ [name: string]: unknown;
3225
+ };
3226
+ content: {
3227
+ "application/json": components["schemas"]["Bugreport_BugreportAttachmentWithContentUrlSchema_"];
3228
+ };
3229
+ };
3230
+ /** @description Validation Error */
3231
+ 422: {
3232
+ headers: {
3233
+ [name: string]: unknown;
3234
+ };
3235
+ content: {
3236
+ "application/json": components["schemas"]["HTTPValidationError"];
3237
+ };
3238
+ };
3239
+ };
3240
+ };
3241
+ get_bugreport_api_bugreports__bugreport_id__get: {
3242
+ parameters: {
3243
+ query?: never;
3244
+ header?: never;
3245
+ path: {
3246
+ bugreport_id: string;
3247
+ };
3248
+ cookie?: never;
3249
+ };
3250
+ requestBody?: never;
3251
+ responses: {
3252
+ /** @description Successful Response */
3253
+ 200: {
3254
+ headers: {
3255
+ [name: string]: unknown;
3256
+ };
3257
+ content: {
3258
+ "application/json": components["schemas"]["Bugreport_BugreportAttachmentWithContentUrlSchema_"];
3259
+ };
3260
+ };
3261
+ /** @description Validation Error */
3262
+ 422: {
3263
+ headers: {
3264
+ [name: string]: unknown;
3265
+ };
3266
+ content: {
3267
+ "application/json": components["schemas"]["HTTPValidationError"];
3268
+ };
3269
+ };
3270
+ };
3271
+ };
3272
+ get_models_api_openai_models_get: {
3273
+ parameters: {
3274
+ query?: never;
3275
+ header?: never;
3276
+ path?: never;
3277
+ cookie?: never;
3278
+ };
3279
+ requestBody?: never;
3280
+ responses: {
3281
+ /** @description Successful Response */
3282
+ 200: {
3283
+ headers: {
3284
+ [name: string]: unknown;
3285
+ };
3286
+ content: {
3287
+ "application/json": components["schemas"]["ListModelsResponse"];
3288
+ };
3289
+ };
3290
+ };
3291
+ };
3292
+ post_chat_completions_api_openai_chat_completions_post: {
3293
+ parameters: {
3294
+ query?: never;
3295
+ header?: never;
3296
+ path?: never;
3297
+ cookie?: never;
3298
+ };
3299
+ requestBody: {
3300
+ content: {
3301
+ "application/json": components["schemas"]["QueryModelOpenAIChatCompletionsRequest"];
3302
+ };
3303
+ };
3304
+ responses: {
3305
+ /** @description Successful Response */
3306
+ 200: {
3307
+ headers: {
3308
+ [name: string]: unknown;
3309
+ };
3310
+ content: {
3311
+ "application/json": unknown;
3312
+ };
3313
+ };
3314
+ /** @description Validation Error */
3315
+ 422: {
3316
+ headers: {
3317
+ [name: string]: unknown;
3318
+ };
3319
+ content: {
3320
+ "application/json": components["schemas"]["HTTPValidationError"];
3321
+ };
3322
+ };
3323
+ };
3324
+ };
3325
+ list_api_keys_api_profile_api_key_get: {
3326
+ parameters: {
3327
+ query?: never;
3328
+ header?: never;
3329
+ path?: never;
3330
+ cookie?: never;
3331
+ };
3332
+ requestBody?: never;
3333
+ responses: {
3334
+ /** @description Successful Response */
3335
+ 200: {
3336
+ headers: {
3337
+ [name: string]: unknown;
3338
+ };
3339
+ content: {
3340
+ "application/json": components["schemas"]["ApiKey"][];
3341
+ };
3342
+ };
3343
+ };
3344
+ };
3345
+ create_api_key_api_profile_api_key_post: {
3346
+ parameters: {
3347
+ query?: never;
3348
+ header?: never;
3349
+ path?: never;
3350
+ cookie?: never;
3351
+ };
3352
+ requestBody: {
3353
+ content: {
3354
+ "application/json": components["schemas"]["CreateApiKeyRequest"];
3355
+ };
3356
+ };
3357
+ responses: {
3358
+ /** @description Successful Response */
3359
+ 200: {
3360
+ headers: {
3361
+ [name: string]: unknown;
3362
+ };
3363
+ content: {
3364
+ "application/json": components["schemas"]["CreateApiKeyResponse"];
3365
+ };
3366
+ };
3367
+ /** @description Validation Error */
3368
+ 422: {
3369
+ headers: {
3370
+ [name: string]: unknown;
3371
+ };
3372
+ content: {
3373
+ "application/json": components["schemas"]["HTTPValidationError"];
3374
+ };
3375
+ };
3376
+ };
3377
+ };
3378
+ delete_api_key_api_profile_api_key__api_key_id__delete: {
3379
+ parameters: {
3380
+ query?: never;
3381
+ header?: never;
3382
+ path: {
3383
+ api_key_id: string;
3384
+ };
3385
+ cookie?: never;
3386
+ };
3387
+ requestBody?: never;
3388
+ responses: {
3389
+ /** @description Successful Response */
3390
+ 200: {
3391
+ headers: {
3392
+ [name: string]: unknown;
3393
+ };
3394
+ content: {
3395
+ "application/json": unknown;
3396
+ };
3397
+ };
3398
+ /** @description Validation Error */
3399
+ 422: {
3400
+ headers: {
3401
+ [name: string]: unknown;
3402
+ };
3403
+ content: {
3404
+ "application/json": components["schemas"]["HTTPValidationError"];
3405
+ };
3406
+ };
3407
+ };
3408
+ };
3409
+ get_api_logs_api_profile_logs_get: {
3410
+ parameters: {
3411
+ query: {
3412
+ api_key_id: string;
3413
+ limit?: number;
3414
+ offset?: number;
3415
+ };
3416
+ header?: never;
3417
+ path?: never;
3418
+ cookie?: never;
3419
+ };
3420
+ requestBody?: never;
3421
+ responses: {
3422
+ /** @description Successful Response */
3423
+ 200: {
3424
+ headers: {
3425
+ [name: string]: unknown;
3426
+ };
3427
+ content: {
3428
+ "application/json": components["schemas"]["PagePaginatedSchema_ApiLog_"];
3429
+ };
3430
+ };
3431
+ /** @description Validation Error */
3432
+ 422: {
3433
+ headers: {
3434
+ [name: string]: unknown;
3435
+ };
3436
+ content: {
3437
+ "application/json": components["schemas"]["HTTPValidationError"];
3438
+ };
3439
+ };
3440
+ };
3441
+ };
3442
+ get_all_tools_api_tools_get: {
3443
+ parameters: {
3444
+ query?: {
3445
+ query?: string | null;
3446
+ };
3447
+ header?: never;
3448
+ path?: never;
3449
+ cookie?: never;
3450
+ };
3451
+ requestBody?: never;
3452
+ responses: {
3453
+ /** @description Successful Response */
3454
+ 200: {
3455
+ headers: {
3456
+ [name: string]: unknown;
3457
+ };
3458
+ content: {
3459
+ "application/json": components["schemas"]["Tool"][];
3460
+ };
3461
+ };
3462
+ /** @description Validation Error */
3463
+ 422: {
3464
+ headers: {
3465
+ [name: string]: unknown;
3466
+ };
3467
+ content: {
3468
+ "application/json": components["schemas"]["HTTPValidationError"];
3469
+ };
3470
+ };
3471
+ };
3472
+ };
3473
+ MCP_SSE_Endpoint_mcp_sse_get: {
3474
+ parameters: {
3475
+ query?: never;
3476
+ header?: never;
3477
+ path?: never;
3478
+ cookie?: never;
3479
+ };
3480
+ requestBody?: never;
3481
+ responses: {
3482
+ /** @description Successful Response */
3483
+ 200: {
3484
+ headers: {
3485
+ [name: string]: unknown;
3486
+ };
3487
+ content: {
3488
+ "application/json": unknown;
3489
+ };
3490
+ };
3491
+ };
3492
+ };
3493
+ MCP_SSE_Main_Entrypoint_mcp_messages_post: {
3494
+ parameters: {
3495
+ query: {
3496
+ session_id: string;
3497
+ };
3498
+ header?: {
3499
+ "X-Assistant-Id"?: string | null;
3500
+ };
3501
+ path?: never;
3502
+ cookie?: never;
3503
+ };
3504
+ requestBody: {
3505
+ content: {
3506
+ "application/json": components["schemas"]["MCPRequest"];
3507
+ };
3508
+ };
3509
+ responses: {
3510
+ /** @description Successful Response */
3511
+ 200: {
3512
+ headers: {
3513
+ [name: string]: unknown;
3514
+ };
3515
+ content: {
3516
+ "application/json": unknown;
3517
+ };
3518
+ };
3519
+ /** @description Validation Error */
3520
+ 422: {
3521
+ headers: {
3522
+ [name: string]: unknown;
3523
+ };
3524
+ content: {
3525
+ "application/json": components["schemas"]["HTTPValidationError"];
3526
+ };
3527
+ };
3528
+ };
3529
+ };
3530
+ MCP_Streamable_HTTP_mcp_get: {
3531
+ parameters: {
3532
+ query?: never;
3533
+ header?: {
3534
+ "mcp-session-id"?: string | null;
3535
+ };
3536
+ path?: never;
3537
+ cookie?: never;
3538
+ };
3539
+ requestBody?: never;
3540
+ responses: {
3541
+ /** @description Successful Response */
3542
+ 200: {
3543
+ headers: {
3544
+ [name: string]: unknown;
3545
+ };
3546
+ content: {
3547
+ "application/json": unknown;
3548
+ };
3549
+ };
3550
+ /** @description Validation Error */
3551
+ 422: {
3552
+ headers: {
3553
+ [name: string]: unknown;
3554
+ };
3555
+ content: {
3556
+ "application/json": components["schemas"]["HTTPValidationError"];
3557
+ };
3558
+ };
3559
+ };
3560
+ };
3561
+ MCP_Streamable_HTTP_mcp_post: {
3562
+ parameters: {
3563
+ query?: never;
3564
+ header?: {
3565
+ accept?: string | null;
3566
+ "mcp-session-id"?: string | null;
3567
+ "X-Assistant-Id"?: string | null;
3568
+ };
3569
+ path?: never;
3570
+ cookie?: never;
3571
+ };
3572
+ requestBody: {
3573
+ content: {
3574
+ "application/json": components["schemas"]["MCPRequest"];
3575
+ };
3576
+ };
3577
+ responses: {
3578
+ /** @description Successful Response */
3579
+ 200: {
3580
+ headers: {
3581
+ [name: string]: unknown;
3582
+ };
3583
+ content: {
3584
+ "application/json": unknown;
3585
+ };
3586
+ };
3587
+ /** @description Validation Error */
3588
+ 422: {
3589
+ headers: {
3590
+ [name: string]: unknown;
3591
+ };
3592
+ content: {
3593
+ "application/json": components["schemas"]["HTTPValidationError"];
3594
+ };
3595
+ };
3596
+ };
3597
+ };
3598
+ MCP_Streamable_HTTP_mcp_delete: {
3599
+ parameters: {
3600
+ query?: never;
3601
+ header?: {
3602
+ "mcp-session-id"?: string | null;
3603
+ };
3604
+ path?: never;
3605
+ cookie?: never;
3606
+ };
3607
+ requestBody?: never;
3608
+ responses: {
3609
+ /** @description Successful Response */
3610
+ 200: {
3611
+ headers: {
3612
+ [name: string]: unknown;
3613
+ };
3614
+ content: {
3615
+ "application/json": unknown;
3616
+ };
3617
+ };
3618
+ /** @description Validation Error */
3619
+ 422: {
3620
+ headers: {
3621
+ [name: string]: unknown;
3622
+ };
3623
+ content: {
3624
+ "application/json": components["schemas"]["HTTPValidationError"];
3625
+ };
3626
+ };
3627
+ };
3628
+ };
3629
+ }