@botpress/api 0.86.0 → 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,4006 @@
1
+ import * as opapi from '@bpinternal/opapi';
2
+ export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Plugin' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag' | 'bot' | 'integration' | 'interface' | 'plugin' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
3
+ export declare const state: {
4
+ operations: {
5
+ listTables: {
6
+ name: string;
7
+ path: string;
8
+ description: string;
9
+ method: "get";
10
+ parameters: {
11
+ tags: {
12
+ in: "query";
13
+ type: "object";
14
+ schema: {
15
+ type: "object";
16
+ additionalProperties: {
17
+ type: "string";
18
+ };
19
+ };
20
+ description: string;
21
+ };
22
+ };
23
+ section: "tables";
24
+ response: {
25
+ description: string;
26
+ schema: {
27
+ type: "object";
28
+ properties: {
29
+ tables: {
30
+ type: "array";
31
+ items: {
32
+ $ref: string;
33
+ };
34
+ };
35
+ };
36
+ required: string[];
37
+ title: string;
38
+ additionalProperties: false;
39
+ };
40
+ };
41
+ };
42
+ getTable: {
43
+ name: string;
44
+ path: string;
45
+ description: string;
46
+ parameters: {
47
+ table: {
48
+ type: "string";
49
+ description: string;
50
+ in: "path";
51
+ };
52
+ };
53
+ method: "get";
54
+ section: "tables";
55
+ response: {
56
+ description: string;
57
+ schema: {
58
+ type: "object";
59
+ properties: {
60
+ table: {
61
+ $ref: string;
62
+ };
63
+ rows: {
64
+ type: "number";
65
+ description: string;
66
+ };
67
+ stale: {
68
+ type: "number";
69
+ description: string;
70
+ };
71
+ indexing: {
72
+ type: "number";
73
+ description: string;
74
+ };
75
+ };
76
+ required: string[];
77
+ title: string;
78
+ additionalProperties: false;
79
+ };
80
+ };
81
+ };
82
+ getOrCreateTable: {
83
+ name: string;
84
+ path: string;
85
+ description: string;
86
+ parameters: {
87
+ table: {
88
+ type: "string";
89
+ description: string;
90
+ in: "path";
91
+ };
92
+ };
93
+ method: "post";
94
+ requestBody: {
95
+ description: string;
96
+ schema: {
97
+ type: "object";
98
+ properties: {
99
+ factor: {
100
+ default: number;
101
+ type: "number";
102
+ minimum: number;
103
+ maximum: number;
104
+ description: string;
105
+ };
106
+ frozen: {
107
+ type: "boolean";
108
+ description: string;
109
+ };
110
+ schema: {
111
+ type: "object";
112
+ additionalProperties: true;
113
+ description: string;
114
+ };
115
+ tags: {
116
+ type: "object";
117
+ additionalProperties: {
118
+ type: "string";
119
+ };
120
+ description: string;
121
+ };
122
+ isComputeEnabled: {
123
+ type: "boolean";
124
+ description: string;
125
+ };
126
+ };
127
+ required: string[];
128
+ title: string;
129
+ additionalProperties: false;
130
+ };
131
+ };
132
+ section: "tables";
133
+ response: {
134
+ description: string;
135
+ schema: {
136
+ type: "object";
137
+ properties: {
138
+ table: {
139
+ $ref: string;
140
+ };
141
+ created: {
142
+ type: "boolean";
143
+ description: string;
144
+ };
145
+ rows: {
146
+ type: "number";
147
+ description: string;
148
+ };
149
+ stale: {
150
+ type: "number";
151
+ description: string;
152
+ };
153
+ indexing: {
154
+ type: "number";
155
+ description: string;
156
+ };
157
+ };
158
+ required: string[];
159
+ title: string;
160
+ additionalProperties: false;
161
+ };
162
+ };
163
+ };
164
+ createTable: {
165
+ name: string;
166
+ path: string;
167
+ description: string;
168
+ method: "post";
169
+ requestBody: {
170
+ description: string;
171
+ schema: {
172
+ type: "object";
173
+ properties: {
174
+ name: {
175
+ description: string;
176
+ type: "string";
177
+ minLength: number;
178
+ };
179
+ factor: {
180
+ default: number;
181
+ type: "number";
182
+ minimum: number;
183
+ maximum: number;
184
+ description: string;
185
+ };
186
+ frozen: {
187
+ type: "boolean";
188
+ description: string;
189
+ };
190
+ schema: {
191
+ type: "object";
192
+ additionalProperties: true;
193
+ description: string;
194
+ };
195
+ tags: {
196
+ type: "object";
197
+ additionalProperties: {
198
+ type: "string";
199
+ };
200
+ description: string;
201
+ };
202
+ isComputeEnabled: {
203
+ type: "boolean";
204
+ description: string;
205
+ };
206
+ };
207
+ required: string[];
208
+ title: string;
209
+ additionalProperties: false;
210
+ };
211
+ };
212
+ section: "tables";
213
+ response: {
214
+ description: string;
215
+ schema: {
216
+ type: "object";
217
+ properties: {
218
+ table: {
219
+ $ref: string;
220
+ };
221
+ };
222
+ required: string[];
223
+ title: string;
224
+ additionalProperties: false;
225
+ };
226
+ };
227
+ parameters: {};
228
+ };
229
+ duplicateTable: {
230
+ name: string;
231
+ path: string;
232
+ description: string;
233
+ parameters: {
234
+ sourceTableId: {
235
+ type: "string";
236
+ description: string;
237
+ in: "path";
238
+ };
239
+ };
240
+ method: "post";
241
+ requestBody: {
242
+ description: string;
243
+ schema: {
244
+ type: "object";
245
+ properties: {
246
+ tableName: {
247
+ type: "string";
248
+ };
249
+ schemaOnly: {
250
+ type: "boolean";
251
+ description: string;
252
+ };
253
+ factor: {
254
+ type: "number";
255
+ description: string;
256
+ };
257
+ };
258
+ title: string;
259
+ additionalProperties: false;
260
+ };
261
+ };
262
+ section: "tables";
263
+ response: {
264
+ description: string;
265
+ schema: {
266
+ type: "object";
267
+ properties: {
268
+ table: {
269
+ $ref: string;
270
+ };
271
+ rows: {
272
+ type: "number";
273
+ description: string;
274
+ };
275
+ };
276
+ required: string[];
277
+ title: string;
278
+ additionalProperties: false;
279
+ };
280
+ };
281
+ };
282
+ exportTable: {
283
+ name: string;
284
+ path: string;
285
+ description: string;
286
+ parameters: {
287
+ table: {
288
+ type: "string";
289
+ description: string;
290
+ in: "path";
291
+ };
292
+ format: {
293
+ in: "query";
294
+ type: "object";
295
+ description: string;
296
+ schema: {
297
+ type: "string";
298
+ enum: string[];
299
+ };
300
+ };
301
+ compress: {
302
+ in: "query";
303
+ type: "object";
304
+ description: string;
305
+ schema: {
306
+ default: boolean;
307
+ type: "boolean";
308
+ };
309
+ };
310
+ };
311
+ method: "get";
312
+ section: "tables";
313
+ response: {
314
+ description: string;
315
+ schema: {
316
+ type: "object";
317
+ properties: {
318
+ job: {
319
+ type: "object";
320
+ properties: {
321
+ id: {
322
+ type: "string";
323
+ };
324
+ botId: {
325
+ type: "string";
326
+ };
327
+ tableId: {
328
+ type: "string";
329
+ };
330
+ type: {
331
+ type: "string";
332
+ enum: string[];
333
+ };
334
+ status: {
335
+ type: "string";
336
+ enum: string[];
337
+ };
338
+ progress: {
339
+ default: number;
340
+ type: "number";
341
+ };
342
+ inputFileId: {
343
+ type: "string";
344
+ nullable: true;
345
+ };
346
+ outputFileId: {
347
+ type: "string";
348
+ nullable: true;
349
+ };
350
+ createdAt: {
351
+ type: "string";
352
+ format: string;
353
+ };
354
+ updatedAt: {
355
+ type: "string";
356
+ format: string;
357
+ };
358
+ };
359
+ required: string[];
360
+ additionalProperties: false;
361
+ };
362
+ };
363
+ required: string[];
364
+ title: string;
365
+ additionalProperties: false;
366
+ };
367
+ };
368
+ };
369
+ getTableJobs: {
370
+ name: string;
371
+ path: string;
372
+ description: string;
373
+ parameters: {
374
+ table: {
375
+ type: "string";
376
+ description: string;
377
+ in: "path";
378
+ };
379
+ };
380
+ method: "get";
381
+ section: "tables";
382
+ response: {
383
+ description: string;
384
+ schema: {
385
+ type: "object";
386
+ properties: {
387
+ jobs: {
388
+ type: "array";
389
+ items: {
390
+ type: "object";
391
+ properties: {
392
+ id: {
393
+ type: "string";
394
+ };
395
+ botId: {
396
+ type: "string";
397
+ };
398
+ tableId: {
399
+ type: "string";
400
+ };
401
+ type: {
402
+ type: "string";
403
+ enum: string[];
404
+ };
405
+ status: {
406
+ type: "string";
407
+ enum: string[];
408
+ };
409
+ progress: {
410
+ default: number;
411
+ type: "number";
412
+ };
413
+ inputFileId: {
414
+ type: "string";
415
+ nullable: true;
416
+ };
417
+ outputFileId: {
418
+ type: "string";
419
+ nullable: true;
420
+ };
421
+ createdAt: {
422
+ type: "string";
423
+ format: string;
424
+ };
425
+ updatedAt: {
426
+ type: "string";
427
+ format: string;
428
+ };
429
+ };
430
+ required: string[];
431
+ };
432
+ };
433
+ };
434
+ required: string[];
435
+ title: string;
436
+ additionalProperties: false;
437
+ };
438
+ };
439
+ };
440
+ importTable: {
441
+ name: string;
442
+ path: string;
443
+ description: string;
444
+ method: "post";
445
+ parameters: {
446
+ table: {
447
+ type: "string";
448
+ description: string;
449
+ in: "path";
450
+ };
451
+ };
452
+ requestBody: {
453
+ description: string;
454
+ schema: {
455
+ type: "object";
456
+ properties: {
457
+ fileId: {
458
+ type: "string";
459
+ description: string;
460
+ };
461
+ };
462
+ required: string[];
463
+ title: string;
464
+ additionalProperties: false;
465
+ };
466
+ };
467
+ section: "tables";
468
+ response: {
469
+ description: string;
470
+ schema: {
471
+ type: "object";
472
+ properties: {
473
+ job: {
474
+ type: "object";
475
+ properties: {
476
+ id: {
477
+ type: "string";
478
+ };
479
+ botId: {
480
+ type: "string";
481
+ };
482
+ tableId: {
483
+ type: "string";
484
+ };
485
+ type: {
486
+ type: "string";
487
+ enum: string[];
488
+ };
489
+ status: {
490
+ type: "string";
491
+ enum: string[];
492
+ };
493
+ progress: {
494
+ default: number;
495
+ type: "number";
496
+ };
497
+ inputFileId: {
498
+ type: "string";
499
+ nullable: true;
500
+ };
501
+ outputFileId: {
502
+ type: "string";
503
+ nullable: true;
504
+ };
505
+ createdAt: {
506
+ type: "string";
507
+ format: string;
508
+ };
509
+ updatedAt: {
510
+ type: "string";
511
+ format: string;
512
+ };
513
+ };
514
+ required: string[];
515
+ additionalProperties: false;
516
+ };
517
+ };
518
+ required: string[];
519
+ title: string;
520
+ additionalProperties: false;
521
+ };
522
+ };
523
+ };
524
+ updateTable: {
525
+ name: string;
526
+ path: string;
527
+ description: string;
528
+ method: "put";
529
+ parameters: {
530
+ table: {
531
+ type: "string";
532
+ description: string;
533
+ in: "path";
534
+ };
535
+ };
536
+ requestBody: {
537
+ description: string;
538
+ schema: {
539
+ type: "object";
540
+ properties: {
541
+ name: {
542
+ description: string;
543
+ type: "string";
544
+ minLength: number;
545
+ };
546
+ frozen: {
547
+ type: "boolean";
548
+ description: string;
549
+ };
550
+ schema: {
551
+ type: "object";
552
+ additionalProperties: true;
553
+ description: string;
554
+ };
555
+ tags: {
556
+ type: "object";
557
+ additionalProperties: {
558
+ type: "string";
559
+ };
560
+ description: string;
561
+ };
562
+ isComputeEnabled: {
563
+ type: "boolean";
564
+ description: string;
565
+ };
566
+ };
567
+ title: string;
568
+ additionalProperties: false;
569
+ };
570
+ };
571
+ section: "tables";
572
+ response: {
573
+ description: string;
574
+ schema: {
575
+ type: "object";
576
+ properties: {
577
+ table: {
578
+ $ref: string;
579
+ };
580
+ staleColumns: {
581
+ type: "array";
582
+ items: {
583
+ type: "string";
584
+ };
585
+ description: string;
586
+ };
587
+ };
588
+ required: string[];
589
+ title: string;
590
+ additionalProperties: false;
591
+ };
592
+ };
593
+ };
594
+ renameTableColumn: {
595
+ name: string;
596
+ path: string;
597
+ description: string;
598
+ method: "put";
599
+ parameters: {
600
+ table: {
601
+ type: "string";
602
+ description: string;
603
+ in: "path";
604
+ };
605
+ };
606
+ requestBody: {
607
+ description: string;
608
+ schema: {
609
+ type: "object";
610
+ properties: {
611
+ name: {
612
+ type: "string";
613
+ description: string;
614
+ };
615
+ newName: {
616
+ description: string;
617
+ type: "string";
618
+ minLength: number;
619
+ maxLength: number;
620
+ };
621
+ };
622
+ required: string[];
623
+ title: string;
624
+ additionalProperties: false;
625
+ };
626
+ };
627
+ section: "tables";
628
+ response: {
629
+ description: string;
630
+ schema: {
631
+ type: "object";
632
+ properties: {
633
+ table: {
634
+ $ref: string;
635
+ };
636
+ };
637
+ required: string[];
638
+ title: string;
639
+ additionalProperties: false;
640
+ };
641
+ };
642
+ };
643
+ deleteTable: {
644
+ name: string;
645
+ path: string;
646
+ description: string;
647
+ parameters: {
648
+ table: {
649
+ type: "string";
650
+ description: string;
651
+ in: "path";
652
+ };
653
+ };
654
+ method: "delete";
655
+ section: "tables";
656
+ response: {
657
+ description: string;
658
+ schema: {
659
+ type: "object";
660
+ title: string;
661
+ additionalProperties: false;
662
+ };
663
+ };
664
+ };
665
+ getTableRow: {
666
+ name: string;
667
+ path: string;
668
+ description: string;
669
+ parameters: {
670
+ table: {
671
+ type: "string";
672
+ description: string;
673
+ in: "path";
674
+ };
675
+ id: {
676
+ type: "object";
677
+ description: string;
678
+ in: "query";
679
+ required: true;
680
+ schema: {
681
+ type: "integer";
682
+ };
683
+ };
684
+ };
685
+ method: "get";
686
+ section: "tables";
687
+ response: {
688
+ description: string;
689
+ schema: {
690
+ type: "object";
691
+ properties: {
692
+ row: {
693
+ $ref: string;
694
+ };
695
+ };
696
+ required: string[];
697
+ title: string;
698
+ additionalProperties: false;
699
+ };
700
+ };
701
+ };
702
+ findTableRows: {
703
+ name: string;
704
+ path: string;
705
+ description: string;
706
+ parameters: {
707
+ table: {
708
+ type: "string";
709
+ description: string;
710
+ in: "path";
711
+ };
712
+ };
713
+ requestBody: {
714
+ description: string;
715
+ schema: {
716
+ type: "object";
717
+ properties: {
718
+ limit: {
719
+ default: number;
720
+ type: "integer";
721
+ minimum: number;
722
+ maximum: number;
723
+ description: string;
724
+ };
725
+ offset: {
726
+ default: number;
727
+ type: "integer";
728
+ minimum: number;
729
+ description: string;
730
+ };
731
+ filter: {
732
+ type: "object";
733
+ additionalProperties: true;
734
+ description: string;
735
+ };
736
+ group: {
737
+ type: "object";
738
+ additionalProperties: true;
739
+ description: string;
740
+ };
741
+ search: {
742
+ type: "string";
743
+ maxLength: number;
744
+ description: string;
745
+ };
746
+ orderBy: {
747
+ default: string;
748
+ type: "string";
749
+ description: string;
750
+ };
751
+ orderDirection: {
752
+ default: string;
753
+ type: "string";
754
+ enum: string[];
755
+ description: string;
756
+ };
757
+ };
758
+ title: string;
759
+ additionalProperties: false;
760
+ };
761
+ };
762
+ method: "post";
763
+ section: "tables";
764
+ response: {
765
+ description: string;
766
+ schema: {
767
+ type: "object";
768
+ properties: {
769
+ rows: {
770
+ type: "array";
771
+ items: {
772
+ $ref: string;
773
+ };
774
+ };
775
+ hasMore: {
776
+ type: "boolean";
777
+ description: string;
778
+ };
779
+ offset: {
780
+ type: "integer";
781
+ };
782
+ limit: {
783
+ type: "integer";
784
+ };
785
+ warnings: {
786
+ type: "array";
787
+ items: {
788
+ type: "string";
789
+ };
790
+ description: string;
791
+ };
792
+ };
793
+ required: string[];
794
+ title: string;
795
+ additionalProperties: false;
796
+ };
797
+ };
798
+ };
799
+ createTableRows: {
800
+ name: string;
801
+ path: string;
802
+ description: string;
803
+ parameters: {
804
+ table: {
805
+ type: "string";
806
+ description: string;
807
+ in: "path";
808
+ };
809
+ };
810
+ requestBody: {
811
+ description: string;
812
+ schema: {
813
+ type: "object";
814
+ properties: {
815
+ rows: {
816
+ type: "array";
817
+ items: {
818
+ type: "object";
819
+ properties: {};
820
+ additionalProperties: true;
821
+ };
822
+ minItems: number;
823
+ maxItems: number;
824
+ };
825
+ waitComputed: {
826
+ type: "boolean";
827
+ description: string;
828
+ };
829
+ };
830
+ required: string[];
831
+ title: string;
832
+ additionalProperties: false;
833
+ };
834
+ };
835
+ method: "post";
836
+ section: "tables";
837
+ response: {
838
+ description: string;
839
+ schema: {
840
+ type: "object";
841
+ properties: {
842
+ rows: {
843
+ type: "array";
844
+ items: {
845
+ $ref: string;
846
+ };
847
+ };
848
+ warnings: {
849
+ type: "array";
850
+ items: {
851
+ type: "string";
852
+ };
853
+ description: string;
854
+ };
855
+ errors: {
856
+ type: "array";
857
+ items: {
858
+ type: "string";
859
+ };
860
+ description: string;
861
+ };
862
+ };
863
+ required: string[];
864
+ title: string;
865
+ additionalProperties: false;
866
+ };
867
+ };
868
+ };
869
+ deleteTableRows: {
870
+ name: string;
871
+ path: string;
872
+ description: string;
873
+ parameters: {
874
+ table: {
875
+ type: "string";
876
+ description: string;
877
+ in: "path";
878
+ };
879
+ };
880
+ requestBody: {
881
+ description: string;
882
+ schema: {
883
+ type: "object";
884
+ properties: {
885
+ ids: {
886
+ type: "array";
887
+ items: {
888
+ type: "number";
889
+ };
890
+ maxItems: number;
891
+ };
892
+ filter: {
893
+ type: "object";
894
+ additionalProperties: true;
895
+ description: string;
896
+ };
897
+ deleteAllRows: {
898
+ type: "boolean";
899
+ description: string;
900
+ };
901
+ };
902
+ title: string;
903
+ additionalProperties: false;
904
+ };
905
+ };
906
+ method: "post";
907
+ section: "tables";
908
+ response: {
909
+ description: string;
910
+ schema: {
911
+ type: "object";
912
+ properties: {
913
+ deletedRows: {
914
+ type: "number";
915
+ };
916
+ };
917
+ required: string[];
918
+ title: string;
919
+ additionalProperties: false;
920
+ };
921
+ };
922
+ };
923
+ updateTableRows: {
924
+ name: string;
925
+ path: string;
926
+ description: string;
927
+ method: "put";
928
+ parameters: {
929
+ table: {
930
+ type: "string";
931
+ description: string;
932
+ in: "path";
933
+ };
934
+ };
935
+ requestBody: {
936
+ description: string;
937
+ schema: {
938
+ type: "object";
939
+ properties: {
940
+ rows: {
941
+ type: "array";
942
+ items: {
943
+ type: "object";
944
+ properties: {
945
+ id: {
946
+ type: "number";
947
+ };
948
+ };
949
+ required: string[];
950
+ additionalProperties: true;
951
+ };
952
+ minItems: number;
953
+ maxItems: number;
954
+ description: string;
955
+ };
956
+ waitComputed: {
957
+ type: "boolean";
958
+ description: string;
959
+ };
960
+ };
961
+ required: string[];
962
+ title: string;
963
+ additionalProperties: false;
964
+ };
965
+ };
966
+ section: "tables";
967
+ response: {
968
+ description: string;
969
+ schema: {
970
+ type: "object";
971
+ properties: {
972
+ rows: {
973
+ type: "array";
974
+ items: {
975
+ $ref: string;
976
+ };
977
+ };
978
+ warnings: {
979
+ type: "array";
980
+ items: {
981
+ type: "string";
982
+ };
983
+ description: string;
984
+ };
985
+ errors: {
986
+ type: "array";
987
+ items: {
988
+ type: "string";
989
+ };
990
+ description: string;
991
+ };
992
+ };
993
+ required: string[];
994
+ title: string;
995
+ additionalProperties: false;
996
+ };
997
+ };
998
+ };
999
+ upsertTableRows: {
1000
+ name: string;
1001
+ path: string;
1002
+ description: string;
1003
+ method: "post";
1004
+ parameters: {
1005
+ table: {
1006
+ type: "string";
1007
+ description: string;
1008
+ in: "path";
1009
+ };
1010
+ };
1011
+ requestBody: {
1012
+ description: string;
1013
+ schema: {
1014
+ type: "object";
1015
+ properties: {
1016
+ rows: {
1017
+ type: "array";
1018
+ items: {
1019
+ type: "object";
1020
+ properties: {
1021
+ id: {
1022
+ type: "number";
1023
+ };
1024
+ };
1025
+ additionalProperties: true;
1026
+ };
1027
+ minItems: number;
1028
+ maxItems: number;
1029
+ };
1030
+ keyColumn: {
1031
+ default: string;
1032
+ type: "string";
1033
+ minLength: number;
1034
+ maxLength: number;
1035
+ description: string;
1036
+ };
1037
+ waitComputed: {
1038
+ type: "boolean";
1039
+ description: string;
1040
+ };
1041
+ };
1042
+ required: string[];
1043
+ title: string;
1044
+ additionalProperties: false;
1045
+ };
1046
+ };
1047
+ section: "tables";
1048
+ response: {
1049
+ description: string;
1050
+ schema: {
1051
+ type: "object";
1052
+ properties: {
1053
+ inserted: {
1054
+ type: "array";
1055
+ items: {
1056
+ $ref: string;
1057
+ };
1058
+ };
1059
+ updated: {
1060
+ type: "array";
1061
+ items: {
1062
+ $ref: string;
1063
+ };
1064
+ };
1065
+ warnings: {
1066
+ type: "array";
1067
+ items: {
1068
+ type: "string";
1069
+ };
1070
+ description: string;
1071
+ };
1072
+ errors: {
1073
+ type: "array";
1074
+ items: {
1075
+ type: "string";
1076
+ };
1077
+ description: string;
1078
+ };
1079
+ };
1080
+ required: string[];
1081
+ title: string;
1082
+ additionalProperties: false;
1083
+ };
1084
+ };
1085
+ };
1086
+ };
1087
+ metadata: {
1088
+ title: string;
1089
+ description: string;
1090
+ server: string;
1091
+ version: string;
1092
+ prefix: string;
1093
+ };
1094
+ errors: ({
1095
+ status: 500;
1096
+ type: string;
1097
+ description: string;
1098
+ } | {
1099
+ status: 401;
1100
+ type: string;
1101
+ description: string;
1102
+ } | {
1103
+ status: 403;
1104
+ type: string;
1105
+ description: string;
1106
+ } | {
1107
+ status: 413;
1108
+ type: string;
1109
+ description: string;
1110
+ } | {
1111
+ status: 400;
1112
+ type: string;
1113
+ description: string;
1114
+ } | {
1115
+ status: 415;
1116
+ type: string;
1117
+ description: string;
1118
+ } | {
1119
+ status: 405;
1120
+ type: string;
1121
+ description: string;
1122
+ } | {
1123
+ status: 404;
1124
+ type: string;
1125
+ description: string;
1126
+ } | {
1127
+ status: 409;
1128
+ type: string;
1129
+ description: string;
1130
+ } | {
1131
+ status: 429;
1132
+ type: string;
1133
+ description: string;
1134
+ } | {
1135
+ status: 402;
1136
+ type: string;
1137
+ description: string;
1138
+ })[];
1139
+ refs: {
1140
+ parameters: {};
1141
+ requestBodies: {
1142
+ getOrCreateTableBody: true;
1143
+ createTableBody: true;
1144
+ duplicateTableBody: true;
1145
+ importTableBody: true;
1146
+ updateTableBody: true;
1147
+ renameTableColumnBody: true;
1148
+ findTableRowsBody: true;
1149
+ createTableRowsBody: true;
1150
+ deleteTableRowsBody: true;
1151
+ updateTableRowsBody: true;
1152
+ upsertTableRowsBody: true;
1153
+ };
1154
+ responses: {
1155
+ listTablesResponse: true;
1156
+ getTableResponse: true;
1157
+ getOrCreateTableResponse: true;
1158
+ createTableResponse: true;
1159
+ duplicateTableResponse: true;
1160
+ exportTableResponse: true;
1161
+ getTableJobsResponse: true;
1162
+ importTableResponse: true;
1163
+ updateTableResponse: true;
1164
+ renameTableColumnResponse: true;
1165
+ deleteTableResponse: true;
1166
+ getTableRowResponse: true;
1167
+ findTableRowsResponse: true;
1168
+ createTableRowsResponse: true;
1169
+ deleteTableRowsResponse: true;
1170
+ updateTableRowsResponse: true;
1171
+ upsertTableRowsResponse: true;
1172
+ };
1173
+ schemas: {
1174
+ Bot: true;
1175
+ Integration: true;
1176
+ Interface: true;
1177
+ Plugin: true;
1178
+ Workspace: true;
1179
+ WorkspaceMember: true;
1180
+ Account: true;
1181
+ Usage: true;
1182
+ Issue: true;
1183
+ IssueEvent: true;
1184
+ Activity: true;
1185
+ Version: true;
1186
+ User: true;
1187
+ Conversation: true;
1188
+ Event: true;
1189
+ Message: true;
1190
+ State: true;
1191
+ Task: true;
1192
+ Workflow: true;
1193
+ Table: true;
1194
+ Column: true;
1195
+ Row: true;
1196
+ File: true;
1197
+ };
1198
+ };
1199
+ schemas: {
1200
+ Bot: {
1201
+ section: "bot";
1202
+ schema: {
1203
+ type: "object";
1204
+ properties: {
1205
+ id: {
1206
+ type: "string";
1207
+ minLength: number;
1208
+ maxLength: number;
1209
+ description: string;
1210
+ };
1211
+ createdAt: {
1212
+ type: "string";
1213
+ format: string;
1214
+ description: string;
1215
+ };
1216
+ updatedAt: {
1217
+ type: "string";
1218
+ format: string;
1219
+ description: string;
1220
+ };
1221
+ signingSecret: {
1222
+ type: "string";
1223
+ maxLength: number;
1224
+ description: string;
1225
+ };
1226
+ integrations: {
1227
+ type: "object";
1228
+ additionalProperties: {
1229
+ type: "object";
1230
+ properties: {
1231
+ enabled: {
1232
+ type: "boolean";
1233
+ };
1234
+ name: {
1235
+ type: "string";
1236
+ maxLength: number;
1237
+ description: string;
1238
+ };
1239
+ version: {
1240
+ type: "string";
1241
+ maxLength: number;
1242
+ description: string;
1243
+ };
1244
+ webhookUrl: {
1245
+ type: "string";
1246
+ maxLength: number;
1247
+ };
1248
+ webhookId: {
1249
+ type: "string";
1250
+ maxLength: number;
1251
+ };
1252
+ identifier: {
1253
+ type: "string";
1254
+ maxLength: number;
1255
+ };
1256
+ configurationType: {
1257
+ type: "string";
1258
+ maxLength: number;
1259
+ nullable: true;
1260
+ };
1261
+ configuration: {
1262
+ type: "object";
1263
+ additionalProperties: true;
1264
+ };
1265
+ status: {
1266
+ type: "string";
1267
+ enum: string[];
1268
+ };
1269
+ statusReason: {
1270
+ type: "string";
1271
+ maxLength: number;
1272
+ nullable: true;
1273
+ };
1274
+ id: {
1275
+ type: "string";
1276
+ minLength: number;
1277
+ maxLength: number;
1278
+ description: string;
1279
+ };
1280
+ createdAt: {
1281
+ type: "string";
1282
+ format: string;
1283
+ description: string;
1284
+ };
1285
+ updatedAt: {
1286
+ type: "string";
1287
+ format: string;
1288
+ description: string;
1289
+ };
1290
+ title: {
1291
+ type: "string";
1292
+ minLength: number;
1293
+ maxLength: number;
1294
+ description: string;
1295
+ };
1296
+ description: {
1297
+ type: "string";
1298
+ maxLength: number;
1299
+ description: string;
1300
+ };
1301
+ iconUrl: {
1302
+ type: "string";
1303
+ description: string;
1304
+ };
1305
+ public: {
1306
+ type: "boolean";
1307
+ description: string;
1308
+ };
1309
+ verificationStatus: {
1310
+ type: "string";
1311
+ enum: string[];
1312
+ description: string;
1313
+ };
1314
+ };
1315
+ required: string[];
1316
+ additionalProperties: false;
1317
+ };
1318
+ description: string;
1319
+ };
1320
+ user: {
1321
+ type: "object";
1322
+ properties: {
1323
+ tags: {
1324
+ type: "object";
1325
+ additionalProperties: {
1326
+ type: "object";
1327
+ properties: {
1328
+ title: {
1329
+ type: "string";
1330
+ maxLength: number;
1331
+ description: string;
1332
+ };
1333
+ description: {
1334
+ type: "string";
1335
+ maxLength: number;
1336
+ description: string;
1337
+ };
1338
+ };
1339
+ description: string;
1340
+ additionalProperties: false;
1341
+ };
1342
+ };
1343
+ };
1344
+ required: string[];
1345
+ description: string;
1346
+ additionalProperties: false;
1347
+ };
1348
+ conversation: {
1349
+ type: "object";
1350
+ properties: {
1351
+ tags: {
1352
+ type: "object";
1353
+ additionalProperties: {
1354
+ type: "object";
1355
+ properties: {
1356
+ title: {
1357
+ type: "string";
1358
+ maxLength: number;
1359
+ description: string;
1360
+ };
1361
+ description: {
1362
+ type: "string";
1363
+ maxLength: number;
1364
+ description: string;
1365
+ };
1366
+ };
1367
+ description: string;
1368
+ additionalProperties: false;
1369
+ };
1370
+ };
1371
+ };
1372
+ required: string[];
1373
+ description: string;
1374
+ additionalProperties: false;
1375
+ };
1376
+ message: {
1377
+ type: "object";
1378
+ properties: {
1379
+ tags: {
1380
+ type: "object";
1381
+ additionalProperties: {
1382
+ type: "object";
1383
+ properties: {
1384
+ title: {
1385
+ type: "string";
1386
+ maxLength: number;
1387
+ description: string;
1388
+ };
1389
+ description: {
1390
+ type: "string";
1391
+ maxLength: number;
1392
+ description: string;
1393
+ };
1394
+ };
1395
+ description: string;
1396
+ additionalProperties: false;
1397
+ };
1398
+ };
1399
+ };
1400
+ required: string[];
1401
+ description: string;
1402
+ additionalProperties: false;
1403
+ };
1404
+ states: {
1405
+ type: "object";
1406
+ additionalProperties: {
1407
+ type: "object";
1408
+ properties: {
1409
+ type: {
1410
+ type: "string";
1411
+ enum: string[];
1412
+ description: string;
1413
+ };
1414
+ schema: {
1415
+ type: "object";
1416
+ additionalProperties: true;
1417
+ description: string;
1418
+ };
1419
+ expiry: {
1420
+ type: "number";
1421
+ minimum: number;
1422
+ description: string;
1423
+ };
1424
+ };
1425
+ required: string[];
1426
+ additionalProperties: false;
1427
+ };
1428
+ description: string;
1429
+ };
1430
+ configuration: {
1431
+ type: "object";
1432
+ properties: {
1433
+ data: {
1434
+ type: "object";
1435
+ additionalProperties: true;
1436
+ description: string;
1437
+ };
1438
+ schema: {
1439
+ type: "object";
1440
+ additionalProperties: true;
1441
+ description: string;
1442
+ };
1443
+ };
1444
+ required: string[];
1445
+ description: string;
1446
+ additionalProperties: false;
1447
+ };
1448
+ events: {
1449
+ type: "object";
1450
+ additionalProperties: {
1451
+ type: "object";
1452
+ properties: {
1453
+ title: {
1454
+ type: "string";
1455
+ maxLength: number;
1456
+ description: string;
1457
+ };
1458
+ description: {
1459
+ type: "string";
1460
+ maxLength: number;
1461
+ description: string;
1462
+ };
1463
+ schema: {
1464
+ type: "object";
1465
+ additionalProperties: true;
1466
+ };
1467
+ };
1468
+ required: string[];
1469
+ description: string;
1470
+ additionalProperties: false;
1471
+ };
1472
+ description: string;
1473
+ };
1474
+ recurringEvents: {
1475
+ type: "object";
1476
+ additionalProperties: {
1477
+ type: "object";
1478
+ properties: {
1479
+ schedule: {
1480
+ type: "object";
1481
+ properties: {
1482
+ cron: {
1483
+ type: "string";
1484
+ maxLength: number;
1485
+ };
1486
+ };
1487
+ required: string[];
1488
+ additionalProperties: false;
1489
+ };
1490
+ type: {
1491
+ type: "string";
1492
+ maxLength: number;
1493
+ };
1494
+ payload: {
1495
+ type: "object";
1496
+ additionalProperties: true;
1497
+ };
1498
+ failedAttempts: {
1499
+ type: "number";
1500
+ description: string;
1501
+ };
1502
+ lastFailureReason: {
1503
+ type: "string";
1504
+ maxLength: number;
1505
+ description: string;
1506
+ nullable: true;
1507
+ };
1508
+ };
1509
+ required: string[];
1510
+ additionalProperties: false;
1511
+ };
1512
+ description: string;
1513
+ };
1514
+ subscriptions: {
1515
+ type: "object";
1516
+ properties: {
1517
+ events: {
1518
+ type: "object";
1519
+ additionalProperties: {
1520
+ type: "object";
1521
+ additionalProperties: false;
1522
+ };
1523
+ nullable: true;
1524
+ description: string;
1525
+ };
1526
+ };
1527
+ required: string[];
1528
+ description: string;
1529
+ additionalProperties: false;
1530
+ };
1531
+ actions: {
1532
+ type: "object";
1533
+ additionalProperties: {
1534
+ type: "object";
1535
+ properties: {
1536
+ title: {
1537
+ type: "string";
1538
+ maxLength: number;
1539
+ description: string;
1540
+ };
1541
+ description: {
1542
+ type: "string";
1543
+ maxLength: number;
1544
+ description: string;
1545
+ };
1546
+ billable: {
1547
+ type: "boolean";
1548
+ };
1549
+ cacheable: {
1550
+ type: "boolean";
1551
+ };
1552
+ input: {
1553
+ type: "object";
1554
+ properties: {
1555
+ schema: {
1556
+ type: "object";
1557
+ additionalProperties: true;
1558
+ };
1559
+ };
1560
+ required: string[];
1561
+ additionalProperties: false;
1562
+ };
1563
+ output: {
1564
+ type: "object";
1565
+ properties: {
1566
+ schema: {
1567
+ type: "object";
1568
+ additionalProperties: true;
1569
+ };
1570
+ };
1571
+ required: string[];
1572
+ additionalProperties: false;
1573
+ };
1574
+ };
1575
+ required: string[];
1576
+ description: string;
1577
+ additionalProperties: false;
1578
+ };
1579
+ description: string;
1580
+ };
1581
+ tags: {
1582
+ type: "object";
1583
+ additionalProperties: {
1584
+ type: "string";
1585
+ };
1586
+ description: string;
1587
+ };
1588
+ name: {
1589
+ type: "string";
1590
+ description: string;
1591
+ };
1592
+ deployedAt: {
1593
+ type: "string";
1594
+ format: string;
1595
+ description: string;
1596
+ };
1597
+ dev: {
1598
+ type: "boolean";
1599
+ description: string;
1600
+ };
1601
+ createdBy: {
1602
+ type: "string";
1603
+ description: string;
1604
+ };
1605
+ alwaysAlive: {
1606
+ type: "boolean";
1607
+ description: string;
1608
+ };
1609
+ status: {
1610
+ type: "string";
1611
+ enum: string[];
1612
+ description: string;
1613
+ };
1614
+ medias: {
1615
+ type: "array";
1616
+ items: {
1617
+ type: "object";
1618
+ properties: {
1619
+ url: {
1620
+ type: "string";
1621
+ description: string;
1622
+ };
1623
+ name: {
1624
+ type: "string";
1625
+ description: string;
1626
+ };
1627
+ };
1628
+ required: string[];
1629
+ };
1630
+ description: string;
1631
+ };
1632
+ };
1633
+ required: string[];
1634
+ additionalProperties: false;
1635
+ };
1636
+ };
1637
+ Integration: {
1638
+ section: "integration";
1639
+ schema: {
1640
+ type: "object";
1641
+ properties: {
1642
+ id: {
1643
+ type: "string";
1644
+ minLength: number;
1645
+ maxLength: number;
1646
+ description: string;
1647
+ };
1648
+ createdAt: {
1649
+ type: "string";
1650
+ format: string;
1651
+ description: string;
1652
+ };
1653
+ updatedAt: {
1654
+ type: "string";
1655
+ format: string;
1656
+ description: string;
1657
+ };
1658
+ identifier: {
1659
+ type: "object";
1660
+ properties: {
1661
+ fallbackHandlerScript: {
1662
+ type: "string";
1663
+ maxLength: number;
1664
+ description: string;
1665
+ };
1666
+ extractScript: {
1667
+ type: "string";
1668
+ maxLength: number;
1669
+ description: string;
1670
+ };
1671
+ };
1672
+ description: string;
1673
+ additionalProperties: false;
1674
+ };
1675
+ sandbox: {
1676
+ type: "object";
1677
+ properties: {
1678
+ identifierExtractScript: {
1679
+ type: "string";
1680
+ maxLength: number;
1681
+ description: string;
1682
+ };
1683
+ messageExtractScript: {
1684
+ type: "string";
1685
+ maxLength: number;
1686
+ description: string;
1687
+ };
1688
+ };
1689
+ additionalProperties: false;
1690
+ };
1691
+ url: {
1692
+ type: "string";
1693
+ maxLength: number;
1694
+ description: string;
1695
+ };
1696
+ name: {
1697
+ type: "string";
1698
+ maxLength: number;
1699
+ description: string;
1700
+ };
1701
+ version: {
1702
+ type: "string";
1703
+ maxLength: number;
1704
+ description: string;
1705
+ };
1706
+ interfaces: {
1707
+ type: "object";
1708
+ additionalProperties: {
1709
+ type: "object";
1710
+ properties: {
1711
+ id: {
1712
+ type: "string";
1713
+ minLength: number;
1714
+ maxLength: number;
1715
+ description: string;
1716
+ };
1717
+ name: {
1718
+ type: "string";
1719
+ maxLength: number;
1720
+ description: string;
1721
+ };
1722
+ version: {
1723
+ type: "string";
1724
+ maxLength: number;
1725
+ description: string;
1726
+ };
1727
+ entities: {
1728
+ type: "object";
1729
+ additionalProperties: {
1730
+ type: "object";
1731
+ properties: {
1732
+ name: {
1733
+ type: "string";
1734
+ maxLength: number;
1735
+ };
1736
+ };
1737
+ required: string[];
1738
+ additionalProperties: false;
1739
+ };
1740
+ };
1741
+ actions: {
1742
+ type: "object";
1743
+ additionalProperties: {
1744
+ type: "object";
1745
+ properties: {
1746
+ name: {
1747
+ type: "string";
1748
+ maxLength: number;
1749
+ };
1750
+ };
1751
+ required: string[];
1752
+ additionalProperties: false;
1753
+ };
1754
+ };
1755
+ events: {
1756
+ type: "object";
1757
+ additionalProperties: {
1758
+ type: "object";
1759
+ properties: {
1760
+ name: {
1761
+ type: "string";
1762
+ maxLength: number;
1763
+ };
1764
+ };
1765
+ required: string[];
1766
+ additionalProperties: false;
1767
+ };
1768
+ };
1769
+ channels: {
1770
+ type: "object";
1771
+ additionalProperties: {
1772
+ type: "object";
1773
+ properties: {
1774
+ name: {
1775
+ type: "string";
1776
+ maxLength: number;
1777
+ };
1778
+ };
1779
+ required: string[];
1780
+ additionalProperties: false;
1781
+ };
1782
+ };
1783
+ };
1784
+ required: string[];
1785
+ additionalProperties: false;
1786
+ };
1787
+ };
1788
+ configuration: {
1789
+ type: "object";
1790
+ properties: {
1791
+ title: {
1792
+ type: "string";
1793
+ maxLength: number;
1794
+ description: string;
1795
+ };
1796
+ description: {
1797
+ type: "string";
1798
+ maxLength: number;
1799
+ description: string;
1800
+ };
1801
+ identifier: {
1802
+ type: "object";
1803
+ properties: {
1804
+ linkTemplateScript: {
1805
+ type: "string";
1806
+ maxLength: number;
1807
+ };
1808
+ required: {
1809
+ type: "boolean";
1810
+ };
1811
+ };
1812
+ required: string[];
1813
+ description: string;
1814
+ additionalProperties: false;
1815
+ };
1816
+ schema: {
1817
+ type: "object";
1818
+ additionalProperties: true;
1819
+ description: string;
1820
+ };
1821
+ };
1822
+ required: string[];
1823
+ description: string;
1824
+ additionalProperties: false;
1825
+ };
1826
+ configurations: {
1827
+ type: "object";
1828
+ additionalProperties: {
1829
+ type: "object";
1830
+ properties: {
1831
+ title: {
1832
+ type: "string";
1833
+ maxLength: number;
1834
+ description: string;
1835
+ };
1836
+ description: {
1837
+ type: "string";
1838
+ maxLength: number;
1839
+ description: string;
1840
+ };
1841
+ identifier: {
1842
+ type: "object";
1843
+ properties: {
1844
+ linkTemplateScript: {
1845
+ type: "string";
1846
+ maxLength: number;
1847
+ };
1848
+ required: {
1849
+ type: "boolean";
1850
+ };
1851
+ };
1852
+ required: string[];
1853
+ description: string;
1854
+ additionalProperties: false;
1855
+ };
1856
+ schema: {
1857
+ type: "object";
1858
+ additionalProperties: true;
1859
+ description: string;
1860
+ };
1861
+ };
1862
+ required: string[];
1863
+ description: string;
1864
+ additionalProperties: false;
1865
+ };
1866
+ };
1867
+ channels: {
1868
+ type: "object";
1869
+ additionalProperties: {
1870
+ type: "object";
1871
+ properties: {
1872
+ title: {
1873
+ type: "string";
1874
+ maxLength: number;
1875
+ description: string;
1876
+ };
1877
+ description: {
1878
+ type: "string";
1879
+ maxLength: number;
1880
+ description: string;
1881
+ };
1882
+ messages: {
1883
+ type: "object";
1884
+ additionalProperties: {
1885
+ type: "object";
1886
+ properties: {
1887
+ schema: {
1888
+ type: "object";
1889
+ additionalProperties: true;
1890
+ };
1891
+ };
1892
+ required: string[];
1893
+ description: string;
1894
+ additionalProperties: false;
1895
+ };
1896
+ };
1897
+ conversation: {
1898
+ type: "object";
1899
+ properties: {
1900
+ tags: {
1901
+ type: "object";
1902
+ additionalProperties: {
1903
+ type: "object";
1904
+ properties: {
1905
+ title: {
1906
+ type: "string";
1907
+ maxLength: number;
1908
+ description: string;
1909
+ };
1910
+ description: {
1911
+ type: "string";
1912
+ maxLength: number;
1913
+ description: string;
1914
+ };
1915
+ };
1916
+ description: string;
1917
+ additionalProperties: false;
1918
+ };
1919
+ };
1920
+ creation: {
1921
+ type: "object";
1922
+ properties: {
1923
+ enabled: {
1924
+ type: "boolean";
1925
+ description: string;
1926
+ };
1927
+ requiredTags: {
1928
+ type: "array";
1929
+ items: {
1930
+ type: "string";
1931
+ };
1932
+ description: string;
1933
+ };
1934
+ };
1935
+ required: string[];
1936
+ description: string;
1937
+ additionalProperties: false;
1938
+ };
1939
+ };
1940
+ required: string[];
1941
+ description: string;
1942
+ additionalProperties: false;
1943
+ };
1944
+ message: {
1945
+ type: "object";
1946
+ properties: {
1947
+ tags: {
1948
+ type: "object";
1949
+ additionalProperties: {
1950
+ type: "object";
1951
+ properties: {
1952
+ title: {
1953
+ type: "string";
1954
+ maxLength: number;
1955
+ description: string;
1956
+ };
1957
+ description: {
1958
+ type: "string";
1959
+ maxLength: number;
1960
+ description: string;
1961
+ };
1962
+ };
1963
+ description: string;
1964
+ additionalProperties: false;
1965
+ };
1966
+ };
1967
+ };
1968
+ required: string[];
1969
+ description: string;
1970
+ additionalProperties: false;
1971
+ };
1972
+ };
1973
+ required: string[];
1974
+ description: string;
1975
+ additionalProperties: false;
1976
+ };
1977
+ };
1978
+ states: {
1979
+ type: "object";
1980
+ additionalProperties: {
1981
+ type: "object";
1982
+ properties: {
1983
+ type: {
1984
+ type: "string";
1985
+ enum: string[];
1986
+ description: string;
1987
+ };
1988
+ schema: {
1989
+ type: "object";
1990
+ additionalProperties: true;
1991
+ description: string;
1992
+ };
1993
+ };
1994
+ required: string[];
1995
+ description: string;
1996
+ additionalProperties: false;
1997
+ };
1998
+ };
1999
+ events: {
2000
+ type: "object";
2001
+ additionalProperties: {
2002
+ type: "object";
2003
+ properties: {
2004
+ title: {
2005
+ type: "string";
2006
+ maxLength: number;
2007
+ description: string;
2008
+ };
2009
+ description: {
2010
+ type: "string";
2011
+ maxLength: number;
2012
+ description: string;
2013
+ };
2014
+ schema: {
2015
+ type: "object";
2016
+ additionalProperties: true;
2017
+ };
2018
+ };
2019
+ required: string[];
2020
+ description: string;
2021
+ additionalProperties: false;
2022
+ };
2023
+ };
2024
+ actions: {
2025
+ type: "object";
2026
+ additionalProperties: {
2027
+ type: "object";
2028
+ properties: {
2029
+ title: {
2030
+ type: "string";
2031
+ maxLength: number;
2032
+ description: string;
2033
+ };
2034
+ description: {
2035
+ type: "string";
2036
+ maxLength: number;
2037
+ description: string;
2038
+ };
2039
+ billable: {
2040
+ type: "boolean";
2041
+ };
2042
+ cacheable: {
2043
+ type: "boolean";
2044
+ };
2045
+ input: {
2046
+ type: "object";
2047
+ properties: {
2048
+ schema: {
2049
+ type: "object";
2050
+ additionalProperties: true;
2051
+ };
2052
+ };
2053
+ required: string[];
2054
+ additionalProperties: false;
2055
+ };
2056
+ output: {
2057
+ type: "object";
2058
+ properties: {
2059
+ schema: {
2060
+ type: "object";
2061
+ additionalProperties: true;
2062
+ };
2063
+ };
2064
+ required: string[];
2065
+ additionalProperties: false;
2066
+ };
2067
+ };
2068
+ required: string[];
2069
+ description: string;
2070
+ additionalProperties: false;
2071
+ };
2072
+ };
2073
+ user: {
2074
+ type: "object";
2075
+ properties: {
2076
+ tags: {
2077
+ type: "object";
2078
+ additionalProperties: {
2079
+ type: "object";
2080
+ properties: {
2081
+ title: {
2082
+ type: "string";
2083
+ maxLength: number;
2084
+ description: string;
2085
+ };
2086
+ description: {
2087
+ type: "string";
2088
+ maxLength: number;
2089
+ description: string;
2090
+ };
2091
+ };
2092
+ description: string;
2093
+ additionalProperties: false;
2094
+ };
2095
+ };
2096
+ creation: {
2097
+ type: "object";
2098
+ properties: {
2099
+ enabled: {
2100
+ type: "boolean";
2101
+ description: string;
2102
+ };
2103
+ requiredTags: {
2104
+ type: "array";
2105
+ items: {
2106
+ type: "string";
2107
+ };
2108
+ description: string;
2109
+ };
2110
+ };
2111
+ required: string[];
2112
+ description: string;
2113
+ additionalProperties: false;
2114
+ };
2115
+ };
2116
+ required: string[];
2117
+ description: string;
2118
+ additionalProperties: false;
2119
+ };
2120
+ entities: {
2121
+ type: "object";
2122
+ additionalProperties: {
2123
+ type: "object";
2124
+ properties: {
2125
+ title: {
2126
+ type: "string";
2127
+ maxLength: number;
2128
+ description: string;
2129
+ };
2130
+ description: {
2131
+ type: "string";
2132
+ maxLength: number;
2133
+ description: string;
2134
+ };
2135
+ schema: {
2136
+ type: "object";
2137
+ additionalProperties: true;
2138
+ };
2139
+ };
2140
+ required: string[];
2141
+ description: string;
2142
+ additionalProperties: false;
2143
+ };
2144
+ };
2145
+ dev: {
2146
+ type: "boolean";
2147
+ description: string;
2148
+ };
2149
+ title: {
2150
+ type: "string";
2151
+ minLength: number;
2152
+ maxLength: number;
2153
+ description: string;
2154
+ };
2155
+ description: {
2156
+ type: "string";
2157
+ maxLength: number;
2158
+ description: string;
2159
+ };
2160
+ iconUrl: {
2161
+ type: "string";
2162
+ description: string;
2163
+ };
2164
+ readmeUrl: {
2165
+ type: "string";
2166
+ description: string;
2167
+ };
2168
+ public: {
2169
+ type: "boolean";
2170
+ description: string;
2171
+ };
2172
+ verificationStatus: {
2173
+ type: "string";
2174
+ enum: string[];
2175
+ description: string;
2176
+ };
2177
+ secrets: {
2178
+ type: "array";
2179
+ items: {
2180
+ type: "string";
2181
+ };
2182
+ description: string;
2183
+ };
2184
+ };
2185
+ required: string[];
2186
+ additionalProperties: false;
2187
+ };
2188
+ };
2189
+ Interface: {
2190
+ section: "interface";
2191
+ schema: {
2192
+ type: "object";
2193
+ properties: {
2194
+ id: {
2195
+ type: "string";
2196
+ minLength: number;
2197
+ maxLength: number;
2198
+ description: string;
2199
+ };
2200
+ createdAt: {
2201
+ type: "string";
2202
+ format: string;
2203
+ description: string;
2204
+ };
2205
+ updatedAt: {
2206
+ type: "string";
2207
+ format: string;
2208
+ description: string;
2209
+ };
2210
+ name: {
2211
+ type: "string";
2212
+ maxLength: number;
2213
+ description: string;
2214
+ };
2215
+ version: {
2216
+ type: "string";
2217
+ maxLength: number;
2218
+ description: string;
2219
+ };
2220
+ entities: {
2221
+ type: "object";
2222
+ additionalProperties: {
2223
+ type: "object";
2224
+ properties: {
2225
+ title: {
2226
+ type: "string";
2227
+ maxLength: number;
2228
+ description: string;
2229
+ };
2230
+ description: {
2231
+ type: "string";
2232
+ maxLength: number;
2233
+ description: string;
2234
+ };
2235
+ schema: {
2236
+ type: "object";
2237
+ additionalProperties: true;
2238
+ };
2239
+ };
2240
+ required: string[];
2241
+ description: string;
2242
+ additionalProperties: false;
2243
+ };
2244
+ };
2245
+ events: {
2246
+ type: "object";
2247
+ additionalProperties: {
2248
+ type: "object";
2249
+ properties: {
2250
+ title: {
2251
+ type: "string";
2252
+ maxLength: number;
2253
+ description: string;
2254
+ };
2255
+ description: {
2256
+ type: "string";
2257
+ maxLength: number;
2258
+ description: string;
2259
+ };
2260
+ schema: {
2261
+ type: "object";
2262
+ additionalProperties: true;
2263
+ };
2264
+ };
2265
+ required: string[];
2266
+ description: string;
2267
+ additionalProperties: false;
2268
+ };
2269
+ };
2270
+ actions: {
2271
+ type: "object";
2272
+ additionalProperties: {
2273
+ type: "object";
2274
+ properties: {
2275
+ title: {
2276
+ type: "string";
2277
+ maxLength: number;
2278
+ description: string;
2279
+ };
2280
+ description: {
2281
+ type: "string";
2282
+ maxLength: number;
2283
+ description: string;
2284
+ };
2285
+ billable: {
2286
+ type: "boolean";
2287
+ };
2288
+ cacheable: {
2289
+ type: "boolean";
2290
+ };
2291
+ input: {
2292
+ type: "object";
2293
+ properties: {
2294
+ schema: {
2295
+ type: "object";
2296
+ additionalProperties: true;
2297
+ };
2298
+ };
2299
+ required: string[];
2300
+ additionalProperties: false;
2301
+ };
2302
+ output: {
2303
+ type: "object";
2304
+ properties: {
2305
+ schema: {
2306
+ type: "object";
2307
+ additionalProperties: true;
2308
+ };
2309
+ };
2310
+ required: string[];
2311
+ additionalProperties: false;
2312
+ };
2313
+ };
2314
+ required: string[];
2315
+ description: string;
2316
+ additionalProperties: false;
2317
+ };
2318
+ };
2319
+ channels: {
2320
+ type: "object";
2321
+ additionalProperties: {
2322
+ type: "object";
2323
+ properties: {
2324
+ title: {
2325
+ type: "string";
2326
+ maxLength: number;
2327
+ description: string;
2328
+ };
2329
+ description: {
2330
+ type: "string";
2331
+ maxLength: number;
2332
+ description: string;
2333
+ };
2334
+ messages: {
2335
+ type: "object";
2336
+ additionalProperties: {
2337
+ type: "object";
2338
+ properties: {
2339
+ schema: {
2340
+ type: "object";
2341
+ additionalProperties: true;
2342
+ };
2343
+ };
2344
+ required: string[];
2345
+ description: string;
2346
+ additionalProperties: false;
2347
+ };
2348
+ };
2349
+ };
2350
+ required: string[];
2351
+ additionalProperties: false;
2352
+ };
2353
+ };
2354
+ nameTemplate: {
2355
+ type: "object";
2356
+ properties: {
2357
+ script: {
2358
+ type: "string";
2359
+ maxLength: number;
2360
+ };
2361
+ language: {
2362
+ type: "string";
2363
+ maxLength: number;
2364
+ };
2365
+ };
2366
+ required: string[];
2367
+ description: string;
2368
+ additionalProperties: false;
2369
+ };
2370
+ };
2371
+ required: string[];
2372
+ additionalProperties: false;
2373
+ };
2374
+ };
2375
+ Plugin: {
2376
+ section: "plugin";
2377
+ schema: {
2378
+ type: "object";
2379
+ properties: {
2380
+ id: {
2381
+ type: "string";
2382
+ minLength: number;
2383
+ maxLength: number;
2384
+ description: string;
2385
+ };
2386
+ name: {
2387
+ type: "string";
2388
+ maxLength: number;
2389
+ description: string;
2390
+ };
2391
+ version: {
2392
+ type: "string";
2393
+ maxLength: number;
2394
+ description: string;
2395
+ };
2396
+ createdAt: {
2397
+ type: "string";
2398
+ format: string;
2399
+ description: string;
2400
+ };
2401
+ updatedAt: {
2402
+ type: "string";
2403
+ format: string;
2404
+ description: string;
2405
+ };
2406
+ configuration: {
2407
+ type: "object";
2408
+ properties: {
2409
+ title: {
2410
+ type: "string";
2411
+ maxLength: number;
2412
+ description: string;
2413
+ };
2414
+ description: {
2415
+ type: "string";
2416
+ maxLength: number;
2417
+ description: string;
2418
+ };
2419
+ schema: {
2420
+ type: "object";
2421
+ additionalProperties: true;
2422
+ description: string;
2423
+ };
2424
+ };
2425
+ required: string[];
2426
+ description: string;
2427
+ additionalProperties: false;
2428
+ };
2429
+ states: {
2430
+ type: "object";
2431
+ additionalProperties: {
2432
+ type: "object";
2433
+ properties: {
2434
+ type: {
2435
+ type: "string";
2436
+ enum: string[];
2437
+ description: string;
2438
+ };
2439
+ schema: {
2440
+ type: "object";
2441
+ additionalProperties: true;
2442
+ description: string;
2443
+ };
2444
+ expiry: {
2445
+ type: "number";
2446
+ minimum: number;
2447
+ description: string;
2448
+ };
2449
+ };
2450
+ required: string[];
2451
+ additionalProperties: false;
2452
+ };
2453
+ };
2454
+ events: {
2455
+ type: "object";
2456
+ additionalProperties: {
2457
+ type: "object";
2458
+ properties: {
2459
+ title: {
2460
+ type: "string";
2461
+ maxLength: number;
2462
+ description: string;
2463
+ };
2464
+ description: {
2465
+ type: "string";
2466
+ maxLength: number;
2467
+ description: string;
2468
+ };
2469
+ schema: {
2470
+ type: "object";
2471
+ additionalProperties: true;
2472
+ };
2473
+ };
2474
+ required: string[];
2475
+ description: string;
2476
+ additionalProperties: false;
2477
+ };
2478
+ };
2479
+ actions: {
2480
+ type: "object";
2481
+ additionalProperties: {
2482
+ type: "object";
2483
+ properties: {
2484
+ title: {
2485
+ type: "string";
2486
+ maxLength: number;
2487
+ description: string;
2488
+ };
2489
+ description: {
2490
+ type: "string";
2491
+ maxLength: number;
2492
+ description: string;
2493
+ };
2494
+ billable: {
2495
+ type: "boolean";
2496
+ };
2497
+ cacheable: {
2498
+ type: "boolean";
2499
+ };
2500
+ input: {
2501
+ type: "object";
2502
+ properties: {
2503
+ schema: {
2504
+ type: "object";
2505
+ additionalProperties: true;
2506
+ };
2507
+ };
2508
+ required: string[];
2509
+ additionalProperties: false;
2510
+ };
2511
+ output: {
2512
+ type: "object";
2513
+ properties: {
2514
+ schema: {
2515
+ type: "object";
2516
+ additionalProperties: true;
2517
+ };
2518
+ };
2519
+ required: string[];
2520
+ additionalProperties: false;
2521
+ };
2522
+ };
2523
+ required: string[];
2524
+ description: string;
2525
+ additionalProperties: false;
2526
+ };
2527
+ };
2528
+ dependencies: {
2529
+ type: "object";
2530
+ properties: {
2531
+ interfaces: {
2532
+ type: "object";
2533
+ additionalProperties: {
2534
+ type: "object";
2535
+ properties: {
2536
+ id: {
2537
+ type: "string";
2538
+ minLength: number;
2539
+ maxLength: number;
2540
+ };
2541
+ name: {
2542
+ type: "string";
2543
+ maxLength: number;
2544
+ };
2545
+ version: {
2546
+ type: "string";
2547
+ maxLength: number;
2548
+ };
2549
+ };
2550
+ required: string[];
2551
+ additionalProperties: false;
2552
+ };
2553
+ };
2554
+ integrations: {
2555
+ type: "object";
2556
+ additionalProperties: {
2557
+ type: "object";
2558
+ properties: {
2559
+ id: {
2560
+ type: "string";
2561
+ minLength: number;
2562
+ maxLength: number;
2563
+ };
2564
+ name: {
2565
+ type: "string";
2566
+ maxLength: number;
2567
+ };
2568
+ version: {
2569
+ type: "string";
2570
+ maxLength: number;
2571
+ };
2572
+ };
2573
+ required: string[];
2574
+ additionalProperties: false;
2575
+ };
2576
+ };
2577
+ };
2578
+ required: string[];
2579
+ additionalProperties: false;
2580
+ };
2581
+ user: {
2582
+ type: "object";
2583
+ properties: {
2584
+ tags: {
2585
+ type: "object";
2586
+ additionalProperties: {
2587
+ type: "object";
2588
+ properties: {
2589
+ title: {
2590
+ type: "string";
2591
+ maxLength: number;
2592
+ description: string;
2593
+ };
2594
+ description: {
2595
+ type: "string";
2596
+ maxLength: number;
2597
+ description: string;
2598
+ };
2599
+ };
2600
+ description: string;
2601
+ additionalProperties: false;
2602
+ };
2603
+ };
2604
+ };
2605
+ required: string[];
2606
+ description: string;
2607
+ additionalProperties: false;
2608
+ };
2609
+ conversation: {
2610
+ type: "object";
2611
+ properties: {
2612
+ tags: {
2613
+ type: "object";
2614
+ additionalProperties: {
2615
+ type: "object";
2616
+ properties: {
2617
+ title: {
2618
+ type: "string";
2619
+ maxLength: number;
2620
+ description: string;
2621
+ };
2622
+ description: {
2623
+ type: "string";
2624
+ maxLength: number;
2625
+ description: string;
2626
+ };
2627
+ };
2628
+ description: string;
2629
+ additionalProperties: false;
2630
+ };
2631
+ };
2632
+ };
2633
+ required: string[];
2634
+ description: string;
2635
+ additionalProperties: false;
2636
+ };
2637
+ title: {
2638
+ type: "string";
2639
+ minLength: number;
2640
+ maxLength: number;
2641
+ description: string;
2642
+ };
2643
+ description: {
2644
+ type: "string";
2645
+ maxLength: number;
2646
+ description: string;
2647
+ };
2648
+ iconUrl: {
2649
+ type: "string";
2650
+ description: string;
2651
+ };
2652
+ readmeUrl: {
2653
+ type: "string";
2654
+ description: string;
2655
+ };
2656
+ };
2657
+ required: string[];
2658
+ additionalProperties: false;
2659
+ };
2660
+ };
2661
+ Workspace: {
2662
+ section: "workspace";
2663
+ schema: {
2664
+ type: "object";
2665
+ properties: {
2666
+ id: {
2667
+ type: "string";
2668
+ };
2669
+ name: {
2670
+ type: "string";
2671
+ };
2672
+ ownerId: {
2673
+ type: "string";
2674
+ };
2675
+ createdAt: {
2676
+ type: "string";
2677
+ };
2678
+ updatedAt: {
2679
+ type: "string";
2680
+ };
2681
+ botCount: {
2682
+ type: "number";
2683
+ };
2684
+ billingVersion: {
2685
+ type: "string";
2686
+ enum: string[];
2687
+ };
2688
+ plan: {
2689
+ type: "string";
2690
+ enum: string[];
2691
+ };
2692
+ blocked: {
2693
+ type: "boolean";
2694
+ };
2695
+ spendingLimit: {
2696
+ type: "number";
2697
+ };
2698
+ about: {
2699
+ default: string;
2700
+ type: "string";
2701
+ };
2702
+ profilePicture: {
2703
+ default: string;
2704
+ type: "string";
2705
+ };
2706
+ contactEmail: {
2707
+ default: string;
2708
+ type: "string";
2709
+ };
2710
+ website: {
2711
+ default: string;
2712
+ type: "string";
2713
+ };
2714
+ socialAccounts: {
2715
+ default: never[];
2716
+ type: "array";
2717
+ items: {
2718
+ type: "string";
2719
+ };
2720
+ };
2721
+ isPublic: {
2722
+ type: "boolean";
2723
+ };
2724
+ handle: {
2725
+ default: string;
2726
+ type: "string";
2727
+ };
2728
+ };
2729
+ required: string[];
2730
+ title: string;
2731
+ additionalProperties: false;
2732
+ };
2733
+ };
2734
+ WorkspaceMember: {
2735
+ section: "workspaceMember";
2736
+ schema: {
2737
+ type: "object";
2738
+ properties: {
2739
+ id: {
2740
+ type: "string";
2741
+ };
2742
+ userId: {
2743
+ type: "string";
2744
+ format: string;
2745
+ };
2746
+ email: {
2747
+ type: "string";
2748
+ };
2749
+ createdAt: {
2750
+ type: "string";
2751
+ };
2752
+ role: {
2753
+ type: "string";
2754
+ enum: string[];
2755
+ };
2756
+ profilePicture: {
2757
+ type: "string";
2758
+ };
2759
+ displayName: {
2760
+ type: "string";
2761
+ maxLength: number;
2762
+ };
2763
+ };
2764
+ required: string[];
2765
+ title: string;
2766
+ additionalProperties: false;
2767
+ };
2768
+ };
2769
+ Account: {
2770
+ section: "account";
2771
+ schema: {
2772
+ type: "object";
2773
+ properties: {
2774
+ id: {
2775
+ type: "string";
2776
+ };
2777
+ email: {
2778
+ type: "string";
2779
+ };
2780
+ displayName: {
2781
+ type: "string";
2782
+ maxLength: number;
2783
+ };
2784
+ emailVerified: {
2785
+ type: "boolean";
2786
+ };
2787
+ profilePicture: {
2788
+ type: "string";
2789
+ };
2790
+ createdAt: {
2791
+ type: "string";
2792
+ format: string;
2793
+ description: string;
2794
+ };
2795
+ };
2796
+ required: string[];
2797
+ additionalProperties: false;
2798
+ };
2799
+ };
2800
+ Usage: {
2801
+ section: "usage";
2802
+ schema: {
2803
+ type: "object";
2804
+ properties: {
2805
+ id: {
2806
+ type: "string";
2807
+ description: string;
2808
+ };
2809
+ period: {
2810
+ type: "string";
2811
+ description: string;
2812
+ };
2813
+ value: {
2814
+ type: "number";
2815
+ description: string;
2816
+ };
2817
+ quota: {
2818
+ type: "number";
2819
+ description: string;
2820
+ };
2821
+ type: {
2822
+ type: "string";
2823
+ enum: string[];
2824
+ description: string;
2825
+ };
2826
+ };
2827
+ required: string[];
2828
+ additionalProperties: false;
2829
+ };
2830
+ };
2831
+ Issue: {
2832
+ section: "bot";
2833
+ schema: {
2834
+ type: "object";
2835
+ properties: {
2836
+ id: {
2837
+ type: "string";
2838
+ };
2839
+ code: {
2840
+ type: "string";
2841
+ };
2842
+ createdAt: {
2843
+ type: "string";
2844
+ format: string;
2845
+ };
2846
+ lastSeenAt: {
2847
+ type: "string";
2848
+ format: string;
2849
+ };
2850
+ title: {
2851
+ type: "string";
2852
+ };
2853
+ description: {
2854
+ type: "string";
2855
+ };
2856
+ groupedData: {
2857
+ type: "object";
2858
+ additionalProperties: {
2859
+ type: "object";
2860
+ properties: {
2861
+ raw: {
2862
+ type: "string";
2863
+ };
2864
+ pretty: {
2865
+ type: "string";
2866
+ };
2867
+ };
2868
+ required: string[];
2869
+ additionalProperties: false;
2870
+ };
2871
+ };
2872
+ eventsCount: {
2873
+ type: "number";
2874
+ };
2875
+ category: {
2876
+ type: "string";
2877
+ enum: string[];
2878
+ };
2879
+ resolutionLink: {
2880
+ type: "string";
2881
+ nullable: true;
2882
+ };
2883
+ };
2884
+ required: string[];
2885
+ additionalProperties: false;
2886
+ };
2887
+ };
2888
+ IssueEvent: {
2889
+ section: "bot";
2890
+ schema: {
2891
+ type: "object";
2892
+ properties: {
2893
+ id: {
2894
+ type: "string";
2895
+ };
2896
+ createdAt: {
2897
+ type: "string";
2898
+ format: string;
2899
+ };
2900
+ data: {
2901
+ type: "object";
2902
+ additionalProperties: {
2903
+ type: "object";
2904
+ properties: {
2905
+ raw: {
2906
+ type: "string";
2907
+ };
2908
+ pretty: {
2909
+ type: "string";
2910
+ };
2911
+ };
2912
+ required: string[];
2913
+ additionalProperties: false;
2914
+ };
2915
+ };
2916
+ };
2917
+ required: string[];
2918
+ additionalProperties: false;
2919
+ };
2920
+ };
2921
+ Activity: {
2922
+ section: "activity";
2923
+ schema: {
2924
+ type: "object";
2925
+ properties: {
2926
+ id: {
2927
+ type: "string";
2928
+ };
2929
+ description: {
2930
+ type: "string";
2931
+ };
2932
+ taskId: {
2933
+ type: "string";
2934
+ };
2935
+ category: {
2936
+ type: "string";
2937
+ enum: string[];
2938
+ };
2939
+ data: {
2940
+ type: "object";
2941
+ additionalProperties: true;
2942
+ };
2943
+ createdAt: {
2944
+ type: "string";
2945
+ format: string;
2946
+ description: string;
2947
+ };
2948
+ };
2949
+ required: string[];
2950
+ additionalProperties: false;
2951
+ };
2952
+ };
2953
+ Version: {
2954
+ section: "bot";
2955
+ schema: {
2956
+ type: "object";
2957
+ properties: {
2958
+ id: {
2959
+ type: "string";
2960
+ };
2961
+ name: {
2962
+ type: "string";
2963
+ };
2964
+ description: {
2965
+ type: "string";
2966
+ };
2967
+ };
2968
+ required: string[];
2969
+ additionalProperties: false;
2970
+ };
2971
+ };
2972
+ User: {
2973
+ section: "user";
2974
+ schema: {
2975
+ type: "object";
2976
+ properties: {
2977
+ id: {
2978
+ type: "string";
2979
+ minLength: number;
2980
+ maxLength: number;
2981
+ description: string;
2982
+ };
2983
+ createdAt: {
2984
+ type: "string";
2985
+ format: string;
2986
+ description: string;
2987
+ };
2988
+ updatedAt: {
2989
+ type: "string";
2990
+ format: string;
2991
+ description: string;
2992
+ };
2993
+ tags: {
2994
+ type: "object";
2995
+ additionalProperties: {
2996
+ type: "string";
2997
+ };
2998
+ description: string;
2999
+ };
3000
+ name: {
3001
+ type: "string";
3002
+ maxLength: number;
3003
+ description: string;
3004
+ };
3005
+ pictureUrl: {
3006
+ type: "string";
3007
+ maxLength: number;
3008
+ description: string;
3009
+ };
3010
+ };
3011
+ required: string[];
3012
+ description: string;
3013
+ additionalProperties: false;
3014
+ };
3015
+ };
3016
+ Conversation: {
3017
+ section: "conversation";
3018
+ schema: {
3019
+ type: "object";
3020
+ properties: {
3021
+ id: {
3022
+ type: "string";
3023
+ minLength: number;
3024
+ maxLength: number;
3025
+ description: string;
3026
+ };
3027
+ currentTaskId: {
3028
+ type: "string";
3029
+ minLength: number;
3030
+ maxLength: number;
3031
+ description: string;
3032
+ };
3033
+ currentWorkflowId: {
3034
+ type: "string";
3035
+ minLength: number;
3036
+ maxLength: number;
3037
+ description: string;
3038
+ };
3039
+ createdAt: {
3040
+ type: "string";
3041
+ format: string;
3042
+ description: string;
3043
+ };
3044
+ updatedAt: {
3045
+ type: "string";
3046
+ format: string;
3047
+ description: string;
3048
+ };
3049
+ channel: {
3050
+ type: "string";
3051
+ description: string;
3052
+ };
3053
+ integration: {
3054
+ type: "string";
3055
+ description: string;
3056
+ };
3057
+ tags: {
3058
+ type: "object";
3059
+ additionalProperties: {
3060
+ type: "string";
3061
+ };
3062
+ description: string;
3063
+ };
3064
+ };
3065
+ required: string[];
3066
+ description: string;
3067
+ additionalProperties: false;
3068
+ };
3069
+ };
3070
+ Event: {
3071
+ section: "event";
3072
+ schema: {
3073
+ type: "object";
3074
+ properties: {
3075
+ id: {
3076
+ type: "string";
3077
+ minLength: number;
3078
+ maxLength: number;
3079
+ description: string;
3080
+ };
3081
+ createdAt: {
3082
+ type: "string";
3083
+ format: string;
3084
+ description: string;
3085
+ };
3086
+ type: {
3087
+ type: "string";
3088
+ maxLength: number;
3089
+ description: string;
3090
+ };
3091
+ payload: {
3092
+ type: "object";
3093
+ additionalProperties: true;
3094
+ description: string;
3095
+ };
3096
+ conversationId: {
3097
+ type: "string";
3098
+ minLength: number;
3099
+ maxLength: number;
3100
+ description: string;
3101
+ };
3102
+ userId: {
3103
+ type: "string";
3104
+ minLength: number;
3105
+ maxLength: number;
3106
+ description: string;
3107
+ };
3108
+ messageId: {
3109
+ type: "string";
3110
+ minLength: number;
3111
+ maxLength: number;
3112
+ description: string;
3113
+ };
3114
+ status: {
3115
+ type: "string";
3116
+ enum: string[];
3117
+ };
3118
+ failureReason: {
3119
+ type: "string";
3120
+ maxLength: number;
3121
+ nullable: true;
3122
+ description: string;
3123
+ };
3124
+ };
3125
+ required: string[];
3126
+ description: string;
3127
+ additionalProperties: false;
3128
+ };
3129
+ };
3130
+ Message: {
3131
+ section: "message";
3132
+ schema: {
3133
+ type: "object";
3134
+ properties: {
3135
+ id: {
3136
+ type: "string";
3137
+ minLength: number;
3138
+ maxLength: number;
3139
+ description: string;
3140
+ };
3141
+ createdAt: {
3142
+ type: "string";
3143
+ format: string;
3144
+ description: string;
3145
+ };
3146
+ updatedAt: {
3147
+ type: "string";
3148
+ format: string;
3149
+ description: string;
3150
+ };
3151
+ type: {
3152
+ type: "string";
3153
+ maxLength: number;
3154
+ description: string;
3155
+ };
3156
+ payload: {
3157
+ type: "object";
3158
+ additionalProperties: true;
3159
+ description: string;
3160
+ };
3161
+ direction: {
3162
+ type: "string";
3163
+ enum: string[];
3164
+ description: string;
3165
+ };
3166
+ userId: {
3167
+ type: "string";
3168
+ minLength: number;
3169
+ maxLength: number;
3170
+ description: string;
3171
+ };
3172
+ conversationId: {
3173
+ type: "string";
3174
+ minLength: number;
3175
+ maxLength: number;
3176
+ description: string;
3177
+ };
3178
+ tags: {
3179
+ type: "object";
3180
+ additionalProperties: {
3181
+ type: "string";
3182
+ };
3183
+ description: string;
3184
+ };
3185
+ };
3186
+ required: string[];
3187
+ description: string;
3188
+ additionalProperties: false;
3189
+ };
3190
+ };
3191
+ State: {
3192
+ section: "state";
3193
+ schema: {
3194
+ type: "object";
3195
+ properties: {
3196
+ id: {
3197
+ type: "string";
3198
+ minLength: number;
3199
+ maxLength: number;
3200
+ description: string;
3201
+ };
3202
+ createdAt: {
3203
+ type: "string";
3204
+ format: string;
3205
+ description: string;
3206
+ };
3207
+ updatedAt: {
3208
+ type: "string";
3209
+ format: string;
3210
+ description: string;
3211
+ };
3212
+ botId: {
3213
+ type: "string";
3214
+ minLength: number;
3215
+ maxLength: number;
3216
+ description: string;
3217
+ };
3218
+ conversationId: {
3219
+ type: "string";
3220
+ minLength: number;
3221
+ maxLength: number;
3222
+ description: string;
3223
+ };
3224
+ userId: {
3225
+ type: "string";
3226
+ minLength: number;
3227
+ maxLength: number;
3228
+ description: string;
3229
+ };
3230
+ name: {
3231
+ type: "string";
3232
+ maxLength: number;
3233
+ description: string;
3234
+ };
3235
+ type: {
3236
+ type: "string";
3237
+ enum: string[];
3238
+ description: string;
3239
+ };
3240
+ payload: {
3241
+ type: "object";
3242
+ additionalProperties: true;
3243
+ description: string;
3244
+ };
3245
+ };
3246
+ required: string[];
3247
+ description: string;
3248
+ additionalProperties: false;
3249
+ };
3250
+ };
3251
+ Task: {
3252
+ section: "task";
3253
+ schema: {
3254
+ type: "object";
3255
+ properties: {
3256
+ id: {
3257
+ type: "string";
3258
+ minLength: number;
3259
+ maxLength: number;
3260
+ description: string;
3261
+ };
3262
+ title: {
3263
+ type: "string";
3264
+ maxLength: number;
3265
+ description: string;
3266
+ };
3267
+ description: {
3268
+ type: "string";
3269
+ maxLength: number;
3270
+ description: string;
3271
+ };
3272
+ type: {
3273
+ type: "string";
3274
+ description: string;
3275
+ };
3276
+ data: {
3277
+ type: "object";
3278
+ additionalProperties: true;
3279
+ description: string;
3280
+ };
3281
+ status: {
3282
+ type: "string";
3283
+ enum: string[];
3284
+ description: string;
3285
+ };
3286
+ parentTaskId: {
3287
+ type: "string";
3288
+ minLength: number;
3289
+ maxLength: number;
3290
+ description: string;
3291
+ };
3292
+ conversationId: {
3293
+ type: "string";
3294
+ minLength: number;
3295
+ maxLength: number;
3296
+ description: string;
3297
+ };
3298
+ userId: {
3299
+ type: "string";
3300
+ minLength: number;
3301
+ maxLength: number;
3302
+ description: string;
3303
+ };
3304
+ timeoutAt: {
3305
+ type: "string";
3306
+ format: string;
3307
+ description: string;
3308
+ };
3309
+ createdAt: {
3310
+ type: "string";
3311
+ format: string;
3312
+ description: string;
3313
+ };
3314
+ updatedAt: {
3315
+ type: "string";
3316
+ format: string;
3317
+ description: string;
3318
+ };
3319
+ failureReason: {
3320
+ type: "string";
3321
+ maxLength: number;
3322
+ description: string;
3323
+ };
3324
+ tags: {
3325
+ type: "object";
3326
+ additionalProperties: {
3327
+ type: "string";
3328
+ };
3329
+ description: string;
3330
+ };
3331
+ };
3332
+ required: string[];
3333
+ description: string;
3334
+ additionalProperties: false;
3335
+ };
3336
+ };
3337
+ Workflow: {
3338
+ section: "workflow";
3339
+ schema: {
3340
+ type: "object";
3341
+ properties: {
3342
+ id: {
3343
+ type: "string";
3344
+ minLength: number;
3345
+ maxLength: number;
3346
+ description: string;
3347
+ };
3348
+ name: {
3349
+ type: "string";
3350
+ maxLength: number;
3351
+ description: string;
3352
+ };
3353
+ status: {
3354
+ type: "string";
3355
+ enum: string[];
3356
+ description: string;
3357
+ };
3358
+ input: {
3359
+ type: "object";
3360
+ additionalProperties: true;
3361
+ description: string;
3362
+ };
3363
+ output: {
3364
+ type: "object";
3365
+ additionalProperties: true;
3366
+ description: string;
3367
+ };
3368
+ parentWorkflowId: {
3369
+ type: "string";
3370
+ minLength: number;
3371
+ maxLength: number;
3372
+ description: string;
3373
+ };
3374
+ conversationId: {
3375
+ type: "string";
3376
+ minLength: number;
3377
+ maxLength: number;
3378
+ description: string;
3379
+ };
3380
+ userId: {
3381
+ type: "string";
3382
+ minLength: number;
3383
+ maxLength: number;
3384
+ description: string;
3385
+ };
3386
+ createdAt: {
3387
+ type: "string";
3388
+ format: string;
3389
+ description: string;
3390
+ };
3391
+ updatedAt: {
3392
+ type: "string";
3393
+ format: string;
3394
+ description: string;
3395
+ };
3396
+ completedAt: {
3397
+ type: "string";
3398
+ format: string;
3399
+ description: string;
3400
+ };
3401
+ failureReason: {
3402
+ type: "string";
3403
+ maxLength: number;
3404
+ description: string;
3405
+ };
3406
+ timeoutAt: {
3407
+ type: "string";
3408
+ format: string;
3409
+ description: string;
3410
+ };
3411
+ tags: {
3412
+ type: "object";
3413
+ additionalProperties: {
3414
+ type: "string";
3415
+ };
3416
+ description: string;
3417
+ };
3418
+ };
3419
+ required: string[];
3420
+ description: string;
3421
+ additionalProperties: false;
3422
+ };
3423
+ };
3424
+ Table: {
3425
+ section: "tables";
3426
+ schema: {
3427
+ type: "object";
3428
+ properties: {
3429
+ id: {
3430
+ type: "string";
3431
+ description: string;
3432
+ };
3433
+ name: {
3434
+ description: string;
3435
+ type: "string";
3436
+ minLength: number;
3437
+ };
3438
+ factor: {
3439
+ default: number;
3440
+ type: "number";
3441
+ minimum: number;
3442
+ maximum: number;
3443
+ description: string;
3444
+ };
3445
+ frozen: {
3446
+ type: "boolean";
3447
+ description: string;
3448
+ };
3449
+ schema: {
3450
+ type: "object";
3451
+ properties: {
3452
+ $schema: {
3453
+ type: "string";
3454
+ };
3455
+ properties: {
3456
+ type: "object";
3457
+ additionalProperties: {
3458
+ type: "object";
3459
+ properties: {
3460
+ type: {
3461
+ type: "string";
3462
+ enum: string[];
3463
+ };
3464
+ format: {
3465
+ type: "string";
3466
+ enum: string[];
3467
+ };
3468
+ description: {
3469
+ type: "string";
3470
+ };
3471
+ pattern: {
3472
+ type: "string";
3473
+ description: string;
3474
+ };
3475
+ enum: {
3476
+ type: "array";
3477
+ items: {
3478
+ type: "string";
3479
+ };
3480
+ description: string;
3481
+ };
3482
+ items: {
3483
+ type: "object";
3484
+ properties: {
3485
+ type: {
3486
+ type: "string";
3487
+ enum: string[];
3488
+ };
3489
+ };
3490
+ required: string[];
3491
+ additionalProperties: true;
3492
+ description: string;
3493
+ };
3494
+ nullable: {
3495
+ default: boolean;
3496
+ type: "boolean";
3497
+ };
3498
+ properties: {
3499
+ type: "object";
3500
+ additionalProperties: {
3501
+ type: "object";
3502
+ properties: {
3503
+ type: {
3504
+ type: "string";
3505
+ enum: string[];
3506
+ };
3507
+ };
3508
+ required: string[];
3509
+ additionalProperties: true;
3510
+ };
3511
+ };
3512
+ "x-zui": {
3513
+ type: "object";
3514
+ properties: {
3515
+ index: {
3516
+ type: "integer";
3517
+ };
3518
+ id: {
3519
+ type: "string";
3520
+ description: string;
3521
+ };
3522
+ searchable: {
3523
+ type: "boolean";
3524
+ description: string;
3525
+ };
3526
+ hidden: {
3527
+ type: "boolean";
3528
+ description: string;
3529
+ };
3530
+ order: {
3531
+ type: "number";
3532
+ description: string;
3533
+ };
3534
+ width: {
3535
+ type: "number";
3536
+ description: string;
3537
+ };
3538
+ schemaId: {
3539
+ type: "string";
3540
+ description: string;
3541
+ };
3542
+ computed: {
3543
+ type: "object";
3544
+ properties: {
3545
+ action: {
3546
+ type: "string";
3547
+ enum: string[];
3548
+ };
3549
+ dependencies: {
3550
+ default: never[];
3551
+ type: "array";
3552
+ items: {
3553
+ type: "string";
3554
+ };
3555
+ };
3556
+ prompt: {
3557
+ type: "string";
3558
+ description: string;
3559
+ };
3560
+ code: {
3561
+ type: "string";
3562
+ description: string;
3563
+ };
3564
+ model: {
3565
+ default: string;
3566
+ type: "string";
3567
+ maxLength: number;
3568
+ description: string;
3569
+ };
3570
+ workflowId: {
3571
+ type: "string";
3572
+ maxLength: number;
3573
+ description: string;
3574
+ };
3575
+ enabled: {
3576
+ type: "boolean";
3577
+ };
3578
+ };
3579
+ required: string[];
3580
+ additionalProperties: false;
3581
+ };
3582
+ typings: {
3583
+ type: "string";
3584
+ description: string;
3585
+ };
3586
+ };
3587
+ required: string[];
3588
+ additionalProperties: false;
3589
+ };
3590
+ };
3591
+ required: string[];
3592
+ additionalProperties: false;
3593
+ };
3594
+ description: string;
3595
+ };
3596
+ additionalProperties: {
3597
+ type: "boolean";
3598
+ enum: boolean[];
3599
+ description: string;
3600
+ };
3601
+ required: {
3602
+ type: "array";
3603
+ items: {
3604
+ type: "string";
3605
+ };
3606
+ description: string;
3607
+ };
3608
+ type: {
3609
+ type: "string";
3610
+ enum: string[];
3611
+ };
3612
+ };
3613
+ required: string[];
3614
+ additionalProperties: false;
3615
+ };
3616
+ tags: {
3617
+ type: "object";
3618
+ additionalProperties: {
3619
+ type: "string";
3620
+ };
3621
+ description: string;
3622
+ };
3623
+ isComputeEnabled: {
3624
+ type: "boolean";
3625
+ description: string;
3626
+ };
3627
+ createdAt: {
3628
+ type: "string";
3629
+ format: string;
3630
+ description: string;
3631
+ };
3632
+ updatedAt: {
3633
+ type: "string";
3634
+ format: string;
3635
+ description: string;
3636
+ };
3637
+ };
3638
+ required: string[];
3639
+ additionalProperties: false;
3640
+ };
3641
+ };
3642
+ Column: {
3643
+ section: "tables";
3644
+ schema: {
3645
+ type: "object";
3646
+ properties: {
3647
+ id: {
3648
+ type: "string";
3649
+ description: string;
3650
+ };
3651
+ name: {
3652
+ type: "string";
3653
+ minLength: number;
3654
+ maxLength: number;
3655
+ description: string;
3656
+ };
3657
+ description: {
3658
+ type: "string";
3659
+ description: string;
3660
+ };
3661
+ searchable: {
3662
+ type: "boolean";
3663
+ description: string;
3664
+ };
3665
+ type: {
3666
+ type: "string";
3667
+ enum: string[];
3668
+ description: string;
3669
+ };
3670
+ typings: {
3671
+ type: "string";
3672
+ description: string;
3673
+ };
3674
+ computed: {
3675
+ type: "object";
3676
+ properties: {
3677
+ action: {
3678
+ type: "string";
3679
+ enum: string[];
3680
+ };
3681
+ dependencies: {
3682
+ default: never[];
3683
+ type: "array";
3684
+ items: {
3685
+ type: "string";
3686
+ };
3687
+ };
3688
+ prompt: {
3689
+ type: "string";
3690
+ description: string;
3691
+ };
3692
+ code: {
3693
+ type: "string";
3694
+ description: string;
3695
+ };
3696
+ model: {
3697
+ default: string;
3698
+ type: "string";
3699
+ maxLength: number;
3700
+ description: string;
3701
+ };
3702
+ workflowId: {
3703
+ type: "string";
3704
+ maxLength: number;
3705
+ description: string;
3706
+ };
3707
+ enabled: {
3708
+ type: "boolean";
3709
+ };
3710
+ };
3711
+ required: string[];
3712
+ additionalProperties: false;
3713
+ };
3714
+ schema: {
3715
+ type: "object";
3716
+ additionalProperties: true;
3717
+ };
3718
+ };
3719
+ required: string[];
3720
+ additionalProperties: false;
3721
+ };
3722
+ };
3723
+ Row: {
3724
+ section: "tables";
3725
+ schema: {
3726
+ type: "object";
3727
+ properties: {
3728
+ id: {
3729
+ type: "number";
3730
+ description: string;
3731
+ };
3732
+ createdAt: {
3733
+ type: "string";
3734
+ format: string;
3735
+ description: string;
3736
+ };
3737
+ updatedAt: {
3738
+ type: "string";
3739
+ format: string;
3740
+ description: string;
3741
+ };
3742
+ computed: {
3743
+ type: "object";
3744
+ additionalProperties: {
3745
+ type: "object";
3746
+ properties: {
3747
+ status: {
3748
+ type: "string";
3749
+ };
3750
+ error: {
3751
+ type: "string";
3752
+ };
3753
+ updatedBy: {
3754
+ type: "string";
3755
+ };
3756
+ updatedAt: {
3757
+ type: "string";
3758
+ };
3759
+ };
3760
+ required: string[];
3761
+ additionalProperties: false;
3762
+ };
3763
+ };
3764
+ stale: {
3765
+ type: "array";
3766
+ items: {
3767
+ type: "string";
3768
+ };
3769
+ description: string;
3770
+ };
3771
+ similarity: {
3772
+ type: "number";
3773
+ description: string;
3774
+ };
3775
+ };
3776
+ required: string[];
3777
+ additionalProperties: true;
3778
+ };
3779
+ };
3780
+ File: {
3781
+ section: "files";
3782
+ schema: {
3783
+ type: "object";
3784
+ properties: {
3785
+ id: {
3786
+ type: "string";
3787
+ description: string;
3788
+ };
3789
+ botId: {
3790
+ type: "string";
3791
+ description: string;
3792
+ };
3793
+ key: {
3794
+ type: "string";
3795
+ description: string;
3796
+ };
3797
+ url: {
3798
+ type: "string";
3799
+ description: string;
3800
+ };
3801
+ size: {
3802
+ type: "number";
3803
+ description: string;
3804
+ nullable: true;
3805
+ };
3806
+ contentType: {
3807
+ type: "string";
3808
+ description: string;
3809
+ };
3810
+ tags: {
3811
+ type: "object";
3812
+ additionalProperties: {
3813
+ type: "string";
3814
+ maxLength: number;
3815
+ };
3816
+ description: string;
3817
+ };
3818
+ metadata: {
3819
+ type: "object";
3820
+ additionalProperties: {
3821
+ nullable: true;
3822
+ };
3823
+ description: string;
3824
+ };
3825
+ createdAt: {
3826
+ type: "string";
3827
+ description: string;
3828
+ };
3829
+ updatedAt: {
3830
+ type: "string";
3831
+ description: string;
3832
+ };
3833
+ accessPolicies: {
3834
+ type: "array";
3835
+ items: {
3836
+ type: "string";
3837
+ enum: string[];
3838
+ };
3839
+ description: string;
3840
+ };
3841
+ index: {
3842
+ type: "boolean";
3843
+ description: string;
3844
+ };
3845
+ status: {
3846
+ type: "string";
3847
+ enum: string[];
3848
+ description: string;
3849
+ };
3850
+ failedStatusReason: {
3851
+ type: "string";
3852
+ description: string;
3853
+ };
3854
+ expiresAt: {
3855
+ type: "string";
3856
+ description: string;
3857
+ };
3858
+ };
3859
+ required: string[];
3860
+ additionalProperties: false;
3861
+ };
3862
+ };
3863
+ };
3864
+ sections: ({
3865
+ description: string;
3866
+ title: string;
3867
+ name: "user";
3868
+ operations: never[];
3869
+ schema: string;
3870
+ } | {
3871
+ description: string;
3872
+ title: string;
3873
+ name: "conversation";
3874
+ operations: never[];
3875
+ schema: string;
3876
+ } | {
3877
+ description: string;
3878
+ title: string;
3879
+ name: "event";
3880
+ operations: never[];
3881
+ schema: string;
3882
+ } | {
3883
+ description: string;
3884
+ title: string;
3885
+ name: "message";
3886
+ operations: never[];
3887
+ schema: string;
3888
+ } | {
3889
+ description: string;
3890
+ title: string;
3891
+ name: "state";
3892
+ operations: never[];
3893
+ schema: string;
3894
+ } | {
3895
+ title: string;
3896
+ description: string;
3897
+ name: "hub";
3898
+ operations: never[];
3899
+ schema?: undefined;
3900
+ } | {
3901
+ description: string;
3902
+ title: string;
3903
+ name: "action";
3904
+ operations: never[];
3905
+ schema?: undefined;
3906
+ } | {
3907
+ description: string;
3908
+ title: string;
3909
+ name: "task";
3910
+ operations: never[];
3911
+ schema: string;
3912
+ } | {
3913
+ description: string;
3914
+ title: string;
3915
+ name: "workflow";
3916
+ operations: never[];
3917
+ schema: string;
3918
+ } | {
3919
+ description: string;
3920
+ title: string;
3921
+ name: "tag";
3922
+ operations: never[];
3923
+ schema?: undefined;
3924
+ } | {
3925
+ title: string;
3926
+ description: string;
3927
+ name: "bot";
3928
+ operations: never[];
3929
+ schema: string;
3930
+ } | {
3931
+ title: string;
3932
+ description: string;
3933
+ name: "integration";
3934
+ operations: never[];
3935
+ schema: string;
3936
+ } | {
3937
+ title: string;
3938
+ description: string;
3939
+ name: "interface";
3940
+ operations: never[];
3941
+ schema: string;
3942
+ } | {
3943
+ title: string;
3944
+ description: string;
3945
+ name: "plugin";
3946
+ operations: never[];
3947
+ schema: string;
3948
+ } | {
3949
+ title: string;
3950
+ description: string;
3951
+ name: "workspace";
3952
+ operations: never[];
3953
+ schema: string;
3954
+ } | {
3955
+ title: string;
3956
+ description: string;
3957
+ name: "workspaceMember";
3958
+ operations: never[];
3959
+ schema: string;
3960
+ } | {
3961
+ title: string;
3962
+ description: string;
3963
+ name: "account";
3964
+ operations: never[];
3965
+ schema: string;
3966
+ } | {
3967
+ title: string;
3968
+ description: string;
3969
+ name: "usage";
3970
+ operations: never[];
3971
+ schema: string;
3972
+ } | {
3973
+ title: string;
3974
+ description: string;
3975
+ name: "quotas";
3976
+ operations: never[];
3977
+ schema?: undefined;
3978
+ } | {
3979
+ title: string;
3980
+ description: string;
3981
+ name: "helper";
3982
+ operations: never[];
3983
+ schema?: undefined;
3984
+ } | {
3985
+ title: string;
3986
+ description: string;
3987
+ name: "activity";
3988
+ operations: never[];
3989
+ schema: string;
3990
+ } | {
3991
+ title: string;
3992
+ description: string;
3993
+ name: "tables";
3994
+ operations: string[];
3995
+ schema: string;
3996
+ } | {
3997
+ title: string;
3998
+ description: string;
3999
+ name: "files";
4000
+ operations: never[];
4001
+ schema: string;
4002
+ })[];
4003
+ options: {
4004
+ allowUnions: false;
4005
+ };
4006
+ };