@vezlo/assistant-server 1.3.0 → 2.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.
Files changed (113) hide show
  1. package/README.md +140 -43
  2. package/bin/vezlo-server.js +1 -1
  3. package/database-schema.sql +193 -33
  4. package/dist/knexfile.d.ts.map +1 -1
  5. package/dist/knexfile.js +17 -8
  6. package/dist/knexfile.js.map +1 -1
  7. package/dist/src/config/database.d.ts.map +1 -1
  8. package/dist/src/config/database.js +9 -1
  9. package/dist/src/config/database.js.map +1 -1
  10. package/dist/src/config/global.d.ts.map +1 -1
  11. package/dist/src/config/global.js +5 -2
  12. package/dist/src/config/global.js.map +1 -1
  13. package/dist/src/config/knex.d.ts.map +1 -1
  14. package/dist/src/config/knex.js +22 -2
  15. package/dist/src/config/knex.js.map +1 -1
  16. package/dist/src/config/swagger.d.ts.map +1 -1
  17. package/dist/src/config/swagger.js +34 -73
  18. package/dist/src/config/swagger.js.map +1 -1
  19. package/dist/src/controllers/ApiKeyController.d.ts +17 -0
  20. package/dist/src/controllers/ApiKeyController.d.ts.map +1 -0
  21. package/dist/src/controllers/ApiKeyController.js +84 -0
  22. package/dist/src/controllers/ApiKeyController.js.map +1 -0
  23. package/dist/src/controllers/AuthController.d.ts +14 -0
  24. package/dist/src/controllers/AuthController.d.ts.map +1 -0
  25. package/dist/src/controllers/AuthController.js +212 -0
  26. package/dist/src/controllers/AuthController.js.map +1 -0
  27. package/dist/src/controllers/ChatController.d.ts +8 -5
  28. package/dist/src/controllers/ChatController.d.ts.map +1 -1
  29. package/dist/src/controllers/ChatController.js +139 -31
  30. package/dist/src/controllers/ChatController.js.map +1 -1
  31. package/dist/src/controllers/KnowledgeController.d.ts +5 -4
  32. package/dist/src/controllers/KnowledgeController.d.ts.map +1 -1
  33. package/dist/src/controllers/KnowledgeController.js +54 -16
  34. package/dist/src/controllers/KnowledgeController.js.map +1 -1
  35. package/dist/src/middleware/auth.d.ts +51 -0
  36. package/dist/src/middleware/auth.d.ts.map +1 -0
  37. package/dist/src/middleware/auth.js +232 -0
  38. package/dist/src/middleware/auth.js.map +1 -0
  39. package/dist/src/middleware/errorHandler.d.ts.map +1 -1
  40. package/dist/src/middleware/errorHandler.js +13 -19
  41. package/dist/src/middleware/errorHandler.js.map +1 -1
  42. package/dist/src/migrations/001_initial_schema.d.ts.map +1 -1
  43. package/dist/src/migrations/001_initial_schema.js +39 -64
  44. package/dist/src/migrations/001_initial_schema.js.map +1 -1
  45. package/dist/src/migrations/002_multitenancy_schema.d.ts +4 -0
  46. package/dist/src/migrations/002_multitenancy_schema.d.ts.map +1 -0
  47. package/dist/src/migrations/002_multitenancy_schema.js +119 -0
  48. package/dist/src/migrations/002_multitenancy_schema.js.map +1 -0
  49. package/dist/src/schemas/AuthSchemas.d.ts +89 -0
  50. package/dist/src/schemas/AuthSchemas.d.ts.map +1 -0
  51. package/dist/src/schemas/AuthSchemas.js +63 -0
  52. package/dist/src/schemas/AuthSchemas.js.map +1 -0
  53. package/dist/src/schemas/CommonSchemas.d.ts +62 -0
  54. package/dist/src/schemas/CommonSchemas.d.ts.map +1 -0
  55. package/dist/src/schemas/CommonSchemas.js +65 -0
  56. package/dist/src/schemas/CommonSchemas.js.map +1 -0
  57. package/dist/src/schemas/ConversationSchemas.d.ts +64 -27
  58. package/dist/src/schemas/ConversationSchemas.d.ts.map +1 -1
  59. package/dist/src/schemas/ConversationSchemas.js +28 -9
  60. package/dist/src/schemas/ConversationSchemas.js.map +1 -1
  61. package/dist/src/schemas/FeedbackSchemas.d.ts +43 -5
  62. package/dist/src/schemas/FeedbackSchemas.d.ts.map +1 -1
  63. package/dist/src/schemas/FeedbackSchemas.js +20 -2
  64. package/dist/src/schemas/FeedbackSchemas.js.map +1 -1
  65. package/dist/src/schemas/KnowledgeSchemas.d.ts +114 -35
  66. package/dist/src/schemas/KnowledgeSchemas.d.ts.map +1 -1
  67. package/dist/src/schemas/KnowledgeSchemas.js +58 -16
  68. package/dist/src/schemas/KnowledgeSchemas.js.map +1 -1
  69. package/dist/src/schemas/MessageSchemas.d.ts +57 -8
  70. package/dist/src/schemas/MessageSchemas.d.ts.map +1 -1
  71. package/dist/src/schemas/MessageSchemas.js +22 -3
  72. package/dist/src/schemas/MessageSchemas.js.map +1 -1
  73. package/dist/src/schemas/index.d.ts +410 -68
  74. package/dist/src/schemas/index.d.ts.map +1 -1
  75. package/dist/src/schemas/index.js +8 -2
  76. package/dist/src/schemas/index.js.map +1 -1
  77. package/dist/src/server.js +1047 -615
  78. package/dist/src/server.js.map +1 -1
  79. package/dist/src/services/AIService.d.ts +1 -2
  80. package/dist/src/services/AIService.d.ts.map +1 -1
  81. package/dist/src/services/AIService.js +6 -32
  82. package/dist/src/services/AIService.js.map +1 -1
  83. package/dist/src/services/ApiKeyService.d.ts +38 -0
  84. package/dist/src/services/ApiKeyService.d.ts.map +1 -0
  85. package/dist/src/services/ApiKeyService.js +123 -0
  86. package/dist/src/services/ApiKeyService.js.map +1 -0
  87. package/dist/src/services/KnowledgeBaseService.d.ts +2 -2
  88. package/dist/src/services/KnowledgeBaseService.d.ts.map +1 -1
  89. package/dist/src/services/KnowledgeBaseService.js +9 -2
  90. package/dist/src/services/KnowledgeBaseService.js.map +1 -1
  91. package/dist/src/services/MigrationService.d.ts +1 -1
  92. package/dist/src/services/MigrationService.d.ts.map +1 -1
  93. package/dist/src/services/MigrationService.js +4 -8
  94. package/dist/src/services/MigrationService.js.map +1 -1
  95. package/dist/src/services/SetupService.d.ts +102 -0
  96. package/dist/src/services/SetupService.d.ts.map +1 -0
  97. package/dist/src/services/SetupService.js +343 -0
  98. package/dist/src/services/SetupService.js.map +1 -0
  99. package/dist/src/storage/ConversationRepository.d.ts.map +1 -1
  100. package/dist/src/storage/ConversationRepository.js +42 -8
  101. package/dist/src/storage/ConversationRepository.js.map +1 -1
  102. package/dist/src/storage/MessageRepository.d.ts.map +1 -1
  103. package/dist/src/storage/MessageRepository.js +23 -27
  104. package/dist/src/storage/MessageRepository.js.map +1 -1
  105. package/dist/src/types/index.d.ts +0 -8
  106. package/dist/src/types/index.d.ts.map +1 -1
  107. package/env.example +7 -5
  108. package/knexfile.ts +17 -8
  109. package/package.json +25 -16
  110. package/scripts/generate-key.js +124 -0
  111. package/scripts/seed-default.js +72 -0
  112. package/scripts/setup.js +410 -149
  113. package/scripts/validate-db.js +46 -13
@@ -6,19 +6,98 @@ import { ConversationSchemas } from './ConversationSchemas';
6
6
  import { MessageSchemas } from './MessageSchemas';
7
7
  import { KnowledgeSchemas } from './KnowledgeSchemas';
8
8
  import { FeedbackSchemas } from './FeedbackSchemas';
9
+ import { AuthSchemas } from './AuthSchemas';
10
+ import { CommonSchemas } from './CommonSchemas';
9
11
  export declare const AllSchemas: {
10
- FeedbackRequest: {
12
+ LoginRequest: {
11
13
  type: string;
12
14
  required: string[];
13
15
  properties: {
14
- message_uuid: {
16
+ email: {
15
17
  type: string;
18
+ format: string;
16
19
  description: string;
17
20
  };
18
- user_uuid: {
21
+ password: {
22
+ type: string;
23
+ description: string;
24
+ };
25
+ };
26
+ };
27
+ LogoutRequest: {
28
+ type: string;
29
+ properties: {};
30
+ };
31
+ LoginResponse: {
32
+ type: string;
33
+ properties: {
34
+ access_token: {
35
+ type: string;
36
+ description: string;
37
+ };
38
+ };
39
+ };
40
+ LogoutResponse: {
41
+ type: string;
42
+ properties: {
43
+ success: {
44
+ type: string;
45
+ };
46
+ message: {
47
+ type: string;
48
+ };
49
+ };
50
+ };
51
+ MeResponse: {
52
+ type: string;
53
+ properties: {
54
+ user: {
55
+ type: string;
56
+ properties: {
57
+ uuid: {
58
+ type: string;
59
+ description: string;
60
+ };
61
+ email: {
62
+ type: string;
63
+ description: string;
64
+ };
65
+ name: {
66
+ type: string;
67
+ description: string;
68
+ };
69
+ };
70
+ };
71
+ profile: {
72
+ type: string;
73
+ properties: {
74
+ uuid: {
75
+ type: string;
76
+ description: string;
77
+ };
78
+ company_uuid: {
79
+ type: string;
80
+ description: string;
81
+ };
82
+ company_name: {
83
+ type: string;
84
+ description: string;
85
+ };
86
+ role: {
87
+ type: string;
88
+ description: string;
89
+ };
90
+ };
91
+ };
92
+ };
93
+ };
94
+ FeedbackRequest: {
95
+ type: string;
96
+ required: string[];
97
+ properties: {
98
+ message_uuid: {
19
99
  type: string;
20
100
  description: string;
21
- default: number;
22
101
  };
23
102
  rating: {
24
103
  type: string;
@@ -222,6 +301,49 @@ export declare const AllSchemas: {
222
301
  };
223
302
  };
224
303
  };
304
+ SubmitFeedbackResponse: {
305
+ type: string;
306
+ properties: {
307
+ success: {
308
+ type: string;
309
+ example: boolean;
310
+ };
311
+ feedback: {
312
+ type: string;
313
+ properties: {
314
+ uuid: {
315
+ type: string;
316
+ description: string;
317
+ };
318
+ message_uuid: {
319
+ type: string;
320
+ description: string;
321
+ };
322
+ rating: {
323
+ type: string;
324
+ description: string;
325
+ };
326
+ category: {
327
+ type: string;
328
+ description: string;
329
+ };
330
+ comment: {
331
+ type: string;
332
+ description: string;
333
+ };
334
+ suggested_improvement: {
335
+ type: string;
336
+ description: string;
337
+ };
338
+ created_at: {
339
+ type: string;
340
+ format: string;
341
+ };
342
+ };
343
+ required: string[];
344
+ };
345
+ };
346
+ };
225
347
  CreateKnowledgeItemRequest: {
226
348
  type: string;
227
349
  required: string[];
@@ -230,11 +352,6 @@ export declare const AllSchemas: {
230
352
  type: string;
231
353
  description: string;
232
354
  };
233
- company_uuid: {
234
- type: string;
235
- description: string;
236
- default: number;
237
- };
238
355
  title: {
239
356
  type: string;
240
357
  description: string;
@@ -268,11 +385,6 @@ export declare const AllSchemas: {
268
385
  type: string;
269
386
  description: string;
270
387
  };
271
- created_by_uuid: {
272
- type: string;
273
- description: string;
274
- default: number;
275
- };
276
388
  };
277
389
  };
278
390
  UpdateKnowledgeItemRequest: {
@@ -332,11 +444,6 @@ export declare const AllSchemas: {
332
444
  default: string;
333
445
  description: string;
334
446
  };
335
- company_uuid: {
336
- type: string;
337
- description: string;
338
- default: number;
339
- };
340
447
  };
341
448
  };
342
449
  RAGSearchRequest: {
@@ -348,11 +455,6 @@ export declare const AllSchemas: {
348
455
  description: string;
349
456
  example: string;
350
457
  };
351
- company_uuid: {
352
- type: string;
353
- description: string;
354
- example: number;
355
- };
356
458
  };
357
459
  };
358
460
  KnowledgeItemResponse: {
@@ -369,7 +471,6 @@ export declare const AllSchemas: {
369
471
  company_uuid: {
370
472
  type: string;
371
473
  description: string;
372
- default: number;
373
474
  };
374
475
  title: {
375
476
  type: string;
@@ -403,18 +504,10 @@ export declare const AllSchemas: {
403
504
  type: string;
404
505
  description: string;
405
506
  };
406
- created_by_uuid: {
507
+ created_by: {
407
508
  type: string;
408
509
  description: string;
409
510
  };
410
- created_at: {
411
- type: string;
412
- format: string;
413
- };
414
- updated_at: {
415
- type: string;
416
- format: string;
417
- };
418
511
  };
419
512
  };
420
513
  KnowledgeItemListResponse: {
@@ -483,27 +576,135 @@ export declare const AllSchemas: {
483
576
  };
484
577
  };
485
578
  };
486
- total: {
579
+ };
580
+ };
581
+ RAGSearchResponse: {
582
+ type: string;
583
+ properties: {
584
+ response: {
585
+ type: string;
586
+ description: string;
587
+ };
588
+ };
589
+ };
590
+ CreateKnowledgeItemResponse: {
591
+ type: string;
592
+ properties: {
593
+ success: {
594
+ type: string;
595
+ example: boolean;
596
+ };
597
+ uuid: {
487
598
  type: string;
488
599
  description: string;
489
600
  };
490
- search_type: {
601
+ };
602
+ };
603
+ GetKnowledgeItemResponse: {
604
+ type: string;
605
+ properties: {
606
+ uuid: {
491
607
  type: string;
492
608
  description: string;
493
609
  };
494
- threshold: {
610
+ parent_uuid: {
611
+ type: string;
612
+ description: string;
613
+ };
614
+ company_uuid: {
615
+ type: string;
616
+ description: string;
617
+ };
618
+ title: {
619
+ type: string;
620
+ description: string;
621
+ };
622
+ description: {
623
+ type: string;
624
+ description: string;
625
+ };
626
+ type: {
627
+ type: string;
628
+ description: string;
629
+ };
630
+ content: {
631
+ type: string;
632
+ description: string;
633
+ };
634
+ file_url: {
635
+ type: string;
636
+ description: string;
637
+ };
638
+ file_size: {
639
+ type: string;
640
+ description: string;
641
+ };
642
+ file_type: {
643
+ type: string;
644
+ description: string;
645
+ };
646
+ metadata: {
647
+ type: string;
648
+ description: string;
649
+ };
650
+ created_by: {
495
651
  type: string;
496
652
  description: string;
497
653
  };
498
654
  };
499
655
  };
500
- RAGSearchResponse: {
656
+ UpdateKnowledgeItemResponse: {
501
657
  type: string;
502
658
  properties: {
503
- response: {
659
+ success: {
660
+ type: string;
661
+ example: boolean;
662
+ };
663
+ };
664
+ };
665
+ SearchKnowledgeResponse: {
666
+ type: string;
667
+ properties: {
668
+ query: {
504
669
  type: string;
505
670
  description: string;
506
671
  };
672
+ results: {
673
+ type: string;
674
+ items: {
675
+ type: string;
676
+ properties: {
677
+ uuid: {
678
+ type: string;
679
+ description: string;
680
+ };
681
+ title: {
682
+ type: string;
683
+ description: string;
684
+ };
685
+ description: {
686
+ type: string;
687
+ description: string;
688
+ };
689
+ content: {
690
+ type: string;
691
+ description: string;
692
+ };
693
+ type: {
694
+ type: string;
695
+ description: string;
696
+ };
697
+ score: {
698
+ type: string;
699
+ description: string;
700
+ };
701
+ metadata: {
702
+ type: string;
703
+ description: string;
704
+ };
705
+ };
706
+ };
707
+ };
507
708
  };
508
709
  };
509
710
  CreateMessageRequest: {
@@ -559,18 +760,10 @@ export declare const AllSchemas: {
559
760
  enum: string[];
560
761
  description: string;
561
762
  };
562
- metadata: {
563
- type: string;
564
- description: string;
565
- };
566
763
  created_at: {
567
764
  type: string;
568
765
  format: string;
569
766
  };
570
- updated_at: {
571
- type: string;
572
- format: string;
573
- };
574
767
  };
575
768
  };
576
769
  MessageListResponse: {
@@ -644,24 +837,70 @@ export declare const AllSchemas: {
644
837
  };
645
838
  };
646
839
  };
647
- CreateConversationRequest: {
840
+ SendMessageResponse: {
648
841
  type: string;
649
- required: string[];
650
842
  properties: {
651
- title: {
843
+ uuid: {
652
844
  type: string;
653
845
  description: string;
654
- default: string;
655
846
  };
656
- user_uuid: {
847
+ conversation_uuid: {
657
848
  type: string;
658
849
  description: string;
659
- default: number;
660
850
  };
661
- company_uuid: {
851
+ type: {
852
+ type: string;
853
+ enum: string[];
854
+ description: string;
855
+ };
856
+ content: {
662
857
  type: string;
663
858
  description: string;
664
- default: number;
859
+ };
860
+ created_at: {
861
+ type: string;
862
+ format: string;
863
+ };
864
+ };
865
+ };
866
+ GenerateResponseResponse: {
867
+ type: string;
868
+ properties: {
869
+ uuid: {
870
+ type: string;
871
+ description: string;
872
+ };
873
+ parent_message_uuid: {
874
+ type: string;
875
+ description: string;
876
+ };
877
+ type: {
878
+ type: string;
879
+ enum: string[];
880
+ description: string;
881
+ };
882
+ content: {
883
+ type: string;
884
+ description: string;
885
+ };
886
+ status: {
887
+ type: string;
888
+ enum: string[];
889
+ description: string;
890
+ };
891
+ created_at: {
892
+ type: string;
893
+ format: string;
894
+ };
895
+ };
896
+ };
897
+ CreateConversationRequest: {
898
+ type: string;
899
+ properties: {
900
+ title: {
901
+ type: string;
902
+ description: string;
903
+ default: string;
665
904
  };
666
905
  };
667
906
  };
@@ -675,6 +914,27 @@ export declare const AllSchemas: {
675
914
  };
676
915
  };
677
916
  ConversationResponse: {
917
+ type: string;
918
+ properties: {
919
+ uuid: {
920
+ type: string;
921
+ description: string;
922
+ };
923
+ title: {
924
+ type: string;
925
+ description: string;
926
+ };
927
+ message_count: {
928
+ type: string;
929
+ description: string;
930
+ };
931
+ created_at: {
932
+ type: string;
933
+ format: string;
934
+ };
935
+ };
936
+ };
937
+ ConversationWithMessages: {
678
938
  type: string;
679
939
  properties: {
680
940
  uuid: {
@@ -701,13 +961,38 @@ export declare const AllSchemas: {
701
961
  type: string;
702
962
  format: string;
703
963
  };
704
- updated_at: {
964
+ messages: {
705
965
  type: string;
706
- format: string;
966
+ items: {
967
+ $ref: string;
968
+ };
707
969
  };
708
970
  };
709
971
  };
710
- ConversationWithMessages: {
972
+ ConversationListResponse: {
973
+ type: string;
974
+ properties: {
975
+ conversations: {
976
+ type: string;
977
+ items: {
978
+ $ref: string;
979
+ };
980
+ };
981
+ total: {
982
+ type: string;
983
+ description: string;
984
+ };
985
+ limit: {
986
+ type: string;
987
+ description: string;
988
+ };
989
+ offset: {
990
+ type: string;
991
+ description: string;
992
+ };
993
+ };
994
+ };
995
+ CreateConversationResponse: {
711
996
  type: string;
712
997
  properties: {
713
998
  uuid: {
@@ -734,7 +1019,32 @@ export declare const AllSchemas: {
734
1019
  type: string;
735
1020
  format: string;
736
1021
  };
737
- updated_at: {
1022
+ };
1023
+ };
1024
+ GetConversationResponse: {
1025
+ type: string;
1026
+ properties: {
1027
+ uuid: {
1028
+ type: string;
1029
+ description: string;
1030
+ };
1031
+ title: {
1032
+ type: string;
1033
+ description: string;
1034
+ };
1035
+ user_uuid: {
1036
+ type: string;
1037
+ description: string;
1038
+ };
1039
+ company_uuid: {
1040
+ type: string;
1041
+ description: string;
1042
+ };
1043
+ message_count: {
1044
+ type: string;
1045
+ description: string;
1046
+ };
1047
+ created_at: {
738
1048
  type: string;
739
1049
  format: string;
740
1050
  };
@@ -746,31 +1056,63 @@ export declare const AllSchemas: {
746
1056
  };
747
1057
  };
748
1058
  };
749
- ConversationListResponse: {
1059
+ HealthCheck: {
750
1060
  type: string;
751
1061
  properties: {
752
- conversations: {
1062
+ server: {
753
1063
  type: string;
754
- items: {
755
- $ref: string;
756
- };
1064
+ description: string;
1065
+ example: string;
757
1066
  };
758
- total: {
1067
+ timestamp: {
759
1068
  type: string;
1069
+ format: string;
760
1070
  description: string;
1071
+ example: string;
761
1072
  };
762
- limit: {
1073
+ database: {
763
1074
  type: string;
764
1075
  description: string;
1076
+ example: string;
765
1077
  };
766
- offset: {
1078
+ };
1079
+ required: string[];
1080
+ };
1081
+ Error: {
1082
+ type: string;
1083
+ properties: {
1084
+ error: {
1085
+ type: string;
1086
+ description: string;
1087
+ example: string;
1088
+ };
1089
+ };
1090
+ required: string[];
1091
+ };
1092
+ Success: {
1093
+ type: string;
1094
+ properties: {
1095
+ success: {
767
1096
  type: string;
768
1097
  description: string;
1098
+ example: boolean;
1099
+ };
1100
+ message: {
1101
+ type: string;
1102
+ description: string;
1103
+ example: string;
1104
+ };
1105
+ timestamp: {
1106
+ type: string;
1107
+ format: string;
1108
+ description: string;
1109
+ example: string;
769
1110
  };
770
1111
  };
1112
+ required: string[];
771
1113
  };
772
1114
  };
773
- export { ConversationSchemas, MessageSchemas, KnowledgeSchemas, FeedbackSchemas };
1115
+ export { CommonSchemas, ConversationSchemas, MessageSchemas, KnowledgeSchemas, FeedbackSchemas, AuthSchemas };
774
1116
  export declare const SchemaValidators: {
775
1117
  validateConversationRequest: (data: any) => boolean;
776
1118
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AO,MAAM,gBAAgB;wCAES,GAAG;CAIxC,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * Central export point for all API schemas
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.SchemaValidators = exports.FeedbackSchemas = exports.KnowledgeSchemas = exports.MessageSchemas = exports.ConversationSchemas = exports.AllSchemas = void 0;
7
+ exports.SchemaValidators = exports.AuthSchemas = exports.FeedbackSchemas = exports.KnowledgeSchemas = exports.MessageSchemas = exports.ConversationSchemas = exports.CommonSchemas = exports.AllSchemas = void 0;
8
8
  const ConversationSchemas_1 = require("./ConversationSchemas");
9
9
  Object.defineProperty(exports, "ConversationSchemas", { enumerable: true, get: function () { return ConversationSchemas_1.ConversationSchemas; } });
10
10
  const MessageSchemas_1 = require("./MessageSchemas");
@@ -13,12 +13,18 @@ const KnowledgeSchemas_1 = require("./KnowledgeSchemas");
13
13
  Object.defineProperty(exports, "KnowledgeSchemas", { enumerable: true, get: function () { return KnowledgeSchemas_1.KnowledgeSchemas; } });
14
14
  const FeedbackSchemas_1 = require("./FeedbackSchemas");
15
15
  Object.defineProperty(exports, "FeedbackSchemas", { enumerable: true, get: function () { return FeedbackSchemas_1.FeedbackSchemas; } });
16
+ const AuthSchemas_1 = require("./AuthSchemas");
17
+ Object.defineProperty(exports, "AuthSchemas", { enumerable: true, get: function () { return AuthSchemas_1.AuthSchemas; } });
18
+ const CommonSchemas_1 = require("./CommonSchemas");
19
+ Object.defineProperty(exports, "CommonSchemas", { enumerable: true, get: function () { return CommonSchemas_1.CommonSchemas; } });
16
20
  // Combine all schemas for Swagger
17
21
  exports.AllSchemas = {
22
+ ...CommonSchemas_1.CommonSchemas,
18
23
  ...ConversationSchemas_1.ConversationSchemas,
19
24
  ...MessageSchemas_1.MessageSchemas,
20
25
  ...KnowledgeSchemas_1.KnowledgeSchemas,
21
- ...FeedbackSchemas_1.FeedbackSchemas
26
+ ...FeedbackSchemas_1.FeedbackSchemas,
27
+ ...AuthSchemas_1.AuthSchemas
22
28
  };
23
29
  // Schema validation helpers (can be extended)
24
30
  exports.SchemaValidators = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAA4D;AAe1D,oGAfO,yCAAmB,OAeP;AAdrB,qDAAkD;AAehD,+FAfO,+BAAc,OAeP;AAdhB,yDAAsD;AAepD,iGAfO,mCAAgB,OAeP;AAdlB,uDAAoD;AAelD,gGAfO,iCAAe,OAeP;AAbjB,kCAAkC;AACrB,QAAA,UAAU,GAAG;IACxB,GAAG,yCAAmB;IACtB,GAAG,+BAAc;IACjB,GAAG,mCAAgB;IACnB,GAAG,iCAAe;CACnB,CAAC;AAUF,8CAA8C;AACjC,QAAA,gBAAgB,GAAG;IAC9B,iDAAiD;IACjD,2BAA2B,EAAE,CAAC,IAAS,EAAE,EAAE;QACzC,0BAA0B;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAA4D;AAoB1D,oGApBO,yCAAmB,OAoBP;AAnBrB,qDAAkD;AAoBhD,+FApBO,+BAAc,OAoBP;AAnBhB,yDAAsD;AAoBpD,iGApBO,mCAAgB,OAoBP;AAnBlB,uDAAoD;AAoBlD,gGApBO,iCAAe,OAoBP;AAnBjB,+CAA4C;AAoB1C,4FApBO,yBAAW,OAoBP;AAnBb,mDAAgD;AAc9C,8FAdO,6BAAa,OAcP;AAZf,kCAAkC;AACrB,QAAA,UAAU,GAAG;IACxB,GAAG,6BAAa;IAChB,GAAG,yCAAmB;IACtB,GAAG,+BAAc;IACjB,GAAG,mCAAgB;IACnB,GAAG,iCAAe;IAClB,GAAG,yBAAW;CACf,CAAC;AAYF,8CAA8C;AACjC,QAAA,gBAAgB,GAAG;IAC9B,iDAAiD;IACjD,2BAA2B,EAAE,CAAC,IAAS,EAAE,EAAE;QACzC,0BAA0B;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC"}