@iblai/iblai-api 4.6.2-dev2-ai → 4.6.2-dev2-ai-plus

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 (88) hide show
  1. package/dist/index.cjs.js +1394 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1393 -2
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +1394 -1
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +39 -0
  8. package/dist/types/models/Bot.d.ts +15 -0
  9. package/dist/types/models/BotCommand.d.ts +6 -0
  10. package/dist/types/models/BotCreate.d.ts +12 -0
  11. package/dist/types/models/DataSet.d.ts +21 -0
  12. package/dist/types/models/DataSetCreate.d.ts +12 -0
  13. package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
  14. package/dist/types/models/DiscordConfig.d.ts +7 -0
  15. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  16. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  17. package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
  18. package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
  19. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  20. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  21. package/dist/types/models/PatchedDataSet.d.ts +21 -0
  22. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  23. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  24. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  25. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  26. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  27. package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
  28. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  29. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  30. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  31. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  32. package/dist/types/models/Provider63aEnum.d.ts +6 -0
  33. package/dist/types/models/SlackConfig.d.ts +8 -0
  34. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  35. package/dist/types/models/SlackWebhook.d.ts +6 -0
  36. package/dist/types/models/TeamsConfig.d.ts +7 -0
  37. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  38. package/dist/types/models/Training.d.ts +41 -0
  39. package/dist/types/models/TrainingCreate.d.ts +31 -0
  40. package/dist/types/models/WebexConfig.d.ts +10 -0
  41. package/dist/types/models/WebexWebhook.d.ts +4 -0
  42. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  43. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  44. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  45. package/dist/types/services/AiBotService.d.ts +642 -0
  46. package/dist/types/services/AiFinetuningService.d.ts +232 -0
  47. package/package.json +1 -1
  48. package/src/core/OpenAPI.ts +1 -1
  49. package/src/index.ts +39 -0
  50. package/src/models/Bot.ts +20 -0
  51. package/src/models/BotCommand.ts +11 -0
  52. package/src/models/BotCreate.ts +17 -0
  53. package/src/models/DataSet.ts +26 -0
  54. package/src/models/DataSetCreate.ts +17 -0
  55. package/src/models/DataSetStatusEnum.ts +16 -0
  56. package/src/models/DiscordConfig.ts +12 -0
  57. package/src/models/DiscordUserConfig.ts +15 -0
  58. package/src/models/DiscordWebhook.ts +11 -0
  59. package/src/models/PaginatedDataSetList.ts +12 -0
  60. package/src/models/PaginatedTrainingList.ts +12 -0
  61. package/src/models/PatchedBotCommand.ts +11 -0
  62. package/src/models/PatchedBotCreate.ts +17 -0
  63. package/src/models/PatchedDataSet.ts +26 -0
  64. package/src/models/PatchedDiscordConfig.ts +12 -0
  65. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  66. package/src/models/PatchedSlackConfig.ts +13 -0
  67. package/src/models/PatchedSlackUserConfig.ts +22 -0
  68. package/src/models/PatchedTeamsConfig.ts +12 -0
  69. package/src/models/PatchedTrainingCreate.ts +36 -0
  70. package/src/models/PatchedWebexConfig.ts +15 -0
  71. package/src/models/PatchedWhatsappConfig.ts +16 -0
  72. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  73. package/src/models/Provider05cEnum.ts +18 -0
  74. package/src/models/Provider63aEnum.ts +10 -0
  75. package/src/models/SlackConfig.ts +13 -0
  76. package/src/models/SlackUserConfig.ts +22 -0
  77. package/src/models/SlackWebhook.ts +11 -0
  78. package/src/models/TeamsConfig.ts +12 -0
  79. package/src/models/TeamsWebhook.ts +22 -0
  80. package/src/models/Training.ts +46 -0
  81. package/src/models/TrainingCreate.ts +36 -0
  82. package/src/models/WebexConfig.ts +15 -0
  83. package/src/models/WebexWebhook.ts +9 -0
  84. package/src/models/WhatAppWebHook.ts +8 -0
  85. package/src/models/WhatsappConfig.ts +16 -0
  86. package/src/models/WhatsappUserConfig.ts +15 -0
  87. package/src/services/AiBotService.ts +1330 -0
  88. package/src/services/AiFinetuningService.ts +472 -0
package/dist/index.umd.js CHANGED
@@ -114,7 +114,7 @@
114
114
 
115
115
  const OpenAPI = {
116
116
  BASE: 'https://base.manager.iblai.app',
117
- VERSION: '4.6.2-dev-ai',
117
+ VERSION: '4.6.2-dev-ai-plus',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -275,6 +275,24 @@
275
275
  CrawlerPatternTypeEnum["REGEX"] = "regex";
276
276
  })(exports.CrawlerPatternTypeEnum || (exports.CrawlerPatternTypeEnum = {}));
277
277
 
278
+ /* generated using openapi-typescript-codegen -- do not edit */
279
+ /* istanbul ignore file */
280
+ /* tslint:disable */
281
+ /* eslint-disable */
282
+ /**
283
+ * * `pending` - Pending
284
+ * * `processing` - Processing
285
+ * * `completed` - Completed
286
+ * * `failed` - Failed
287
+ */
288
+ exports.DataSetStatusEnum = void 0;
289
+ (function (DataSetStatusEnum) {
290
+ DataSetStatusEnum["PENDING"] = "pending";
291
+ DataSetStatusEnum["PROCESSING"] = "processing";
292
+ DataSetStatusEnum["COMPLETED"] = "completed";
293
+ DataSetStatusEnum["FAILED"] = "failed";
294
+ })(exports.DataSetStatusEnum || (exports.DataSetStatusEnum = {}));
295
+
278
296
  /* generated using openapi-typescript-codegen -- do not edit */
279
297
  /* istanbul ignore file */
280
298
  /* tslint:disable */
@@ -571,6 +589,26 @@
571
589
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
572
590
  })(exports.PromptVisibilityEnum || (exports.PromptVisibilityEnum = {}));
573
591
 
592
+ /* generated using openapi-typescript-codegen -- do not edit */
593
+ /* istanbul ignore file */
594
+ /* tslint:disable */
595
+ /* eslint-disable */
596
+ /**
597
+ * * `webex` - Webex
598
+ * * `slack` - Slack
599
+ * * `whatsapp` - Whatsapp
600
+ * * `discord` - Discord
601
+ * * `teams` - Teams
602
+ */
603
+ exports.Provider05cEnum = void 0;
604
+ (function (Provider05cEnum) {
605
+ Provider05cEnum["WEBEX"] = "webex";
606
+ Provider05cEnum["SLACK"] = "slack";
607
+ Provider05cEnum["WHATSAPP"] = "whatsapp";
608
+ Provider05cEnum["DISCORD"] = "discord";
609
+ Provider05cEnum["TEAMS"] = "teams";
610
+ })(exports.Provider05cEnum || (exports.Provider05cEnum = {}));
611
+
574
612
  /* generated using openapi-typescript-codegen -- do not edit */
575
613
  /* istanbul ignore file */
576
614
  /* tslint:disable */
@@ -587,6 +625,18 @@
587
625
  Provider637Enum["ELEVENLABS"] = "elevenlabs";
588
626
  })(exports.Provider637Enum || (exports.Provider637Enum = {}));
589
627
 
628
+ /* generated using openapi-typescript-codegen -- do not edit */
629
+ /* istanbul ignore file */
630
+ /* tslint:disable */
631
+ /* eslint-disable */
632
+ /**
633
+ * * `openai` - Openai
634
+ */
635
+ exports.Provider63aEnum = void 0;
636
+ (function (Provider63aEnum) {
637
+ Provider63aEnum["OPENAI"] = "openai";
638
+ })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
639
+
590
640
  /* generated using openapi-typescript-codegen -- do not edit */
591
641
  /* istanbul ignore file */
592
642
  /* tslint:disable */
@@ -9504,6 +9554,1347 @@
9504
9554
  }
9505
9555
  }
9506
9556
 
9557
+ class AiBotService {
9558
+ /**
9559
+ * Create modify and update bot information for a specific tenant.
9560
+ * @returns Bot
9561
+ * @throws ApiError
9562
+ */
9563
+ static aiBotV1BotsBotList({
9564
+ org
9565
+ }) {
9566
+ return request(OpenAPI, {
9567
+ method: 'GET',
9568
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
9569
+ path: {
9570
+ 'org': org
9571
+ }
9572
+ });
9573
+ }
9574
+ /**
9575
+ * Create modify and update bot information for a specific tenant.
9576
+ * @returns BotCreate
9577
+ * @throws ApiError
9578
+ */
9579
+ static aiBotV1BotsBotCreate({
9580
+ org,
9581
+ requestBody
9582
+ }) {
9583
+ return request(OpenAPI, {
9584
+ method: 'POST',
9585
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
9586
+ path: {
9587
+ 'org': org
9588
+ },
9589
+ body: requestBody,
9590
+ mediaType: 'application/json'
9591
+ });
9592
+ }
9593
+ /**
9594
+ * Create slash commands for a specific bot
9595
+ * eg. /iblai-baseline
9596
+ * @returns BotCommand
9597
+ * @throws ApiError
9598
+ */
9599
+ static aiBotV1BotsBotCommandsList({
9600
+ org
9601
+ }) {
9602
+ return request(OpenAPI, {
9603
+ method: 'GET',
9604
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9605
+ path: {
9606
+ 'org': org
9607
+ }
9608
+ });
9609
+ }
9610
+ /**
9611
+ * Create slash commands for a specific bot
9612
+ * eg. /iblai-baseline
9613
+ * @returns BotCommand
9614
+ * @throws ApiError
9615
+ */
9616
+ static aiBotV1BotsBotCommandsCreate({
9617
+ org,
9618
+ requestBody
9619
+ }) {
9620
+ return request(OpenAPI, {
9621
+ method: 'POST',
9622
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9623
+ path: {
9624
+ 'org': org
9625
+ },
9626
+ body: requestBody,
9627
+ mediaType: 'application/json'
9628
+ });
9629
+ }
9630
+ /**
9631
+ * Create slash commands for a specific bot
9632
+ * eg. /iblai-baseline
9633
+ * @returns BotCommand
9634
+ * @throws ApiError
9635
+ */
9636
+ static aiBotV1BotsBotCommandsRetrieve({
9637
+ id,
9638
+ org
9639
+ }) {
9640
+ return request(OpenAPI, {
9641
+ method: 'GET',
9642
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9643
+ path: {
9644
+ 'id': id,
9645
+ 'org': org
9646
+ }
9647
+ });
9648
+ }
9649
+ /**
9650
+ * Create slash commands for a specific bot
9651
+ * eg. /iblai-baseline
9652
+ * @returns BotCommand
9653
+ * @throws ApiError
9654
+ */
9655
+ static aiBotV1BotsBotCommandsUpdate({
9656
+ id,
9657
+ org,
9658
+ requestBody
9659
+ }) {
9660
+ return request(OpenAPI, {
9661
+ method: 'PUT',
9662
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9663
+ path: {
9664
+ 'id': id,
9665
+ 'org': org
9666
+ },
9667
+ body: requestBody,
9668
+ mediaType: 'application/json'
9669
+ });
9670
+ }
9671
+ /**
9672
+ * Create slash commands for a specific bot
9673
+ * eg. /iblai-baseline
9674
+ * @returns BotCommand
9675
+ * @throws ApiError
9676
+ */
9677
+ static aiBotV1BotsBotCommandsPartialUpdate({
9678
+ id,
9679
+ org,
9680
+ requestBody
9681
+ }) {
9682
+ return request(OpenAPI, {
9683
+ method: 'PATCH',
9684
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9685
+ path: {
9686
+ 'id': id,
9687
+ 'org': org
9688
+ },
9689
+ body: requestBody,
9690
+ mediaType: 'application/json'
9691
+ });
9692
+ }
9693
+ /**
9694
+ * Create slash commands for a specific bot
9695
+ * eg. /iblai-baseline
9696
+ * @returns void
9697
+ * @throws ApiError
9698
+ */
9699
+ static aiBotV1BotsBotCommandsDestroy({
9700
+ id,
9701
+ org
9702
+ }) {
9703
+ return request(OpenAPI, {
9704
+ method: 'DELETE',
9705
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9706
+ path: {
9707
+ 'id': id,
9708
+ 'org': org
9709
+ }
9710
+ });
9711
+ }
9712
+ /**
9713
+ * Create modify and update bot information for a specific tenant.
9714
+ * @returns Bot
9715
+ * @throws ApiError
9716
+ */
9717
+ static aiBotV1BotsBotRetrieve({
9718
+ id,
9719
+ org
9720
+ }) {
9721
+ return request(OpenAPI, {
9722
+ method: 'GET',
9723
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9724
+ path: {
9725
+ 'id': id,
9726
+ 'org': org
9727
+ }
9728
+ });
9729
+ }
9730
+ /**
9731
+ * Create modify and update bot information for a specific tenant.
9732
+ * @returns BotCreate
9733
+ * @throws ApiError
9734
+ */
9735
+ static aiBotV1BotsBotUpdate({
9736
+ id,
9737
+ org,
9738
+ requestBody
9739
+ }) {
9740
+ return request(OpenAPI, {
9741
+ method: 'PUT',
9742
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9743
+ path: {
9744
+ 'id': id,
9745
+ 'org': org
9746
+ },
9747
+ body: requestBody,
9748
+ mediaType: 'application/json'
9749
+ });
9750
+ }
9751
+ /**
9752
+ * Create modify and update bot information for a specific tenant.
9753
+ * @returns BotCreate
9754
+ * @throws ApiError
9755
+ */
9756
+ static aiBotV1BotsBotPartialUpdate({
9757
+ id,
9758
+ org,
9759
+ requestBody
9760
+ }) {
9761
+ return request(OpenAPI, {
9762
+ method: 'PATCH',
9763
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9764
+ path: {
9765
+ 'id': id,
9766
+ 'org': org
9767
+ },
9768
+ body: requestBody,
9769
+ mediaType: 'application/json'
9770
+ });
9771
+ }
9772
+ /**
9773
+ * Create modify and update bot information for a specific tenant.
9774
+ * @returns void
9775
+ * @throws ApiError
9776
+ */
9777
+ static aiBotV1BotsBotDestroy({
9778
+ id,
9779
+ org
9780
+ }) {
9781
+ return request(OpenAPI, {
9782
+ method: 'DELETE',
9783
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9784
+ path: {
9785
+ 'id': id,
9786
+ 'org': org
9787
+ }
9788
+ });
9789
+ }
9790
+ /**
9791
+ * Create modify and update bot information for a specific tenant.
9792
+ * @returns DiscordConfig
9793
+ * @throws ApiError
9794
+ */
9795
+ static aiBotV1BotsBotConfigDiscordRetrieve({
9796
+ id,
9797
+ org
9798
+ }) {
9799
+ return request(OpenAPI, {
9800
+ method: 'GET',
9801
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9802
+ path: {
9803
+ 'id': id,
9804
+ 'org': org
9805
+ }
9806
+ });
9807
+ }
9808
+ /**
9809
+ * Create modify and update bot information for a specific tenant.
9810
+ * @returns DiscordConfig
9811
+ * @throws ApiError
9812
+ */
9813
+ static aiBotV1BotsBotConfigDiscordPartialUpdate({
9814
+ id,
9815
+ org,
9816
+ requestBody
9817
+ }) {
9818
+ return request(OpenAPI, {
9819
+ method: 'PATCH',
9820
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9821
+ path: {
9822
+ 'id': id,
9823
+ 'org': org
9824
+ },
9825
+ body: requestBody,
9826
+ mediaType: 'application/json'
9827
+ });
9828
+ }
9829
+ /**
9830
+ * Create modify and update bot information for a specific tenant.
9831
+ * @returns SlackConfig
9832
+ * @throws ApiError
9833
+ */
9834
+ static aiBotV1BotsBotConfigSlackRetrieve({
9835
+ id,
9836
+ org
9837
+ }) {
9838
+ return request(OpenAPI, {
9839
+ method: 'GET',
9840
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
9841
+ path: {
9842
+ 'id': id,
9843
+ 'org': org
9844
+ }
9845
+ });
9846
+ }
9847
+ /**
9848
+ * Create modify and update bot information for a specific tenant.
9849
+ * @returns SlackConfig
9850
+ * @throws ApiError
9851
+ */
9852
+ static aiBotV1BotsBotConfigSlackUpdateCreate({
9853
+ id,
9854
+ org,
9855
+ requestBody
9856
+ }) {
9857
+ return request(OpenAPI, {
9858
+ method: 'POST',
9859
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9860
+ path: {
9861
+ 'id': id,
9862
+ 'org': org
9863
+ },
9864
+ body: requestBody,
9865
+ mediaType: 'application/json'
9866
+ });
9867
+ }
9868
+ /**
9869
+ * Create modify and update bot information for a specific tenant.
9870
+ * @returns SlackConfig
9871
+ * @throws ApiError
9872
+ */
9873
+ static aiBotV1BotsBotConfigSlackUpdateUpdate({
9874
+ id,
9875
+ org,
9876
+ requestBody
9877
+ }) {
9878
+ return request(OpenAPI, {
9879
+ method: 'PUT',
9880
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9881
+ path: {
9882
+ 'id': id,
9883
+ 'org': org
9884
+ },
9885
+ body: requestBody,
9886
+ mediaType: 'application/json'
9887
+ });
9888
+ }
9889
+ /**
9890
+ * Create modify and update bot information for a specific tenant.
9891
+ * @returns SlackConfig
9892
+ * @throws ApiError
9893
+ */
9894
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
9895
+ id,
9896
+ org,
9897
+ requestBody
9898
+ }) {
9899
+ return request(OpenAPI, {
9900
+ method: 'PATCH',
9901
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9902
+ path: {
9903
+ 'id': id,
9904
+ 'org': org
9905
+ },
9906
+ body: requestBody,
9907
+ mediaType: 'application/json'
9908
+ });
9909
+ }
9910
+ /**
9911
+ * Create modify and update bot information for a specific tenant.
9912
+ * @returns TeamsConfig
9913
+ * @throws ApiError
9914
+ */
9915
+ static aiBotV1BotsBotConfigTeamsRetrieve({
9916
+ id,
9917
+ org
9918
+ }) {
9919
+ return request(OpenAPI, {
9920
+ method: 'GET',
9921
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
9922
+ path: {
9923
+ 'id': id,
9924
+ 'org': org
9925
+ }
9926
+ });
9927
+ }
9928
+ /**
9929
+ * Create modify and update bot information for a specific tenant.
9930
+ * @returns TeamsConfig
9931
+ * @throws ApiError
9932
+ */
9933
+ static aiBotV1BotsBotConfigTeamsUpdateCreate({
9934
+ id,
9935
+ org,
9936
+ requestBody
9937
+ }) {
9938
+ return request(OpenAPI, {
9939
+ method: 'POST',
9940
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9941
+ path: {
9942
+ 'id': id,
9943
+ 'org': org
9944
+ },
9945
+ body: requestBody,
9946
+ mediaType: 'application/json'
9947
+ });
9948
+ }
9949
+ /**
9950
+ * Create modify and update bot information for a specific tenant.
9951
+ * @returns TeamsConfig
9952
+ * @throws ApiError
9953
+ */
9954
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate({
9955
+ id,
9956
+ org,
9957
+ requestBody
9958
+ }) {
9959
+ return request(OpenAPI, {
9960
+ method: 'PUT',
9961
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9962
+ path: {
9963
+ 'id': id,
9964
+ 'org': org
9965
+ },
9966
+ body: requestBody,
9967
+ mediaType: 'application/json'
9968
+ });
9969
+ }
9970
+ /**
9971
+ * Create modify and update bot information for a specific tenant.
9972
+ * @returns TeamsConfig
9973
+ * @throws ApiError
9974
+ */
9975
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
9976
+ id,
9977
+ org,
9978
+ requestBody
9979
+ }) {
9980
+ return request(OpenAPI, {
9981
+ method: 'PATCH',
9982
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9983
+ path: {
9984
+ 'id': id,
9985
+ 'org': org
9986
+ },
9987
+ body: requestBody,
9988
+ mediaType: 'application/json'
9989
+ });
9990
+ }
9991
+ /**
9992
+ * Create modify and update bot information for a specific tenant.
9993
+ * @returns WebexConfig
9994
+ * @throws ApiError
9995
+ */
9996
+ static aiBotV1BotsBotConfigWebexRetrieve({
9997
+ id,
9998
+ org
9999
+ }) {
10000
+ return request(OpenAPI, {
10001
+ method: 'GET',
10002
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
10003
+ path: {
10004
+ 'id': id,
10005
+ 'org': org
10006
+ }
10007
+ });
10008
+ }
10009
+ /**
10010
+ * Create modify and update bot information for a specific tenant.
10011
+ * @returns WebexConfig
10012
+ * @throws ApiError
10013
+ */
10014
+ static aiBotV1BotsBotConfigWebexPartialUpdate({
10015
+ id,
10016
+ org,
10017
+ requestBody
10018
+ }) {
10019
+ return request(OpenAPI, {
10020
+ method: 'PATCH',
10021
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
10022
+ path: {
10023
+ 'id': id,
10024
+ 'org': org
10025
+ },
10026
+ body: requestBody,
10027
+ mediaType: 'application/json'
10028
+ });
10029
+ }
10030
+ /**
10031
+ * Create modify and update bot information for a specific tenant.
10032
+ * @returns WhatsappConfig
10033
+ * @throws ApiError
10034
+ */
10035
+ static aiBotV1BotsBotConfigWhatsappRetrieve({
10036
+ id,
10037
+ org
10038
+ }) {
10039
+ return request(OpenAPI, {
10040
+ method: 'GET',
10041
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
10042
+ path: {
10043
+ 'id': id,
10044
+ 'org': org
10045
+ }
10046
+ });
10047
+ }
10048
+ /**
10049
+ * Create modify and update bot information for a specific tenant.
10050
+ * @returns WhatsappConfig
10051
+ * @throws ApiError
10052
+ */
10053
+ static aiBotV1BotsBotWhatsappConfigUpdate({
10054
+ id,
10055
+ org,
10056
+ requestBody
10057
+ }) {
10058
+ return request(OpenAPI, {
10059
+ method: 'PUT',
10060
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
10061
+ path: {
10062
+ 'id': id,
10063
+ 'org': org
10064
+ },
10065
+ body: requestBody,
10066
+ mediaType: 'application/json'
10067
+ });
10068
+ }
10069
+ /**
10070
+ * Create modify and update bot information for a specific tenant.
10071
+ * @returns WhatsappConfig
10072
+ * @throws ApiError
10073
+ */
10074
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate({
10075
+ id,
10076
+ org,
10077
+ requestBody
10078
+ }) {
10079
+ return request(OpenAPI, {
10080
+ method: 'PATCH',
10081
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
10082
+ path: {
10083
+ 'id': id,
10084
+ 'org': org
10085
+ },
10086
+ body: requestBody,
10087
+ mediaType: 'application/json'
10088
+ });
10089
+ }
10090
+ /**
10091
+ * Setup discord user id linkage with discord bots
10092
+ * this will be used to authenticate the user when interracting with discord bots.
10093
+ * the user id can be copied from the discord app after tapping on the user profile.
10094
+ * @returns DiscordUserConfig
10095
+ * @throws ApiError
10096
+ */
10097
+ static aiBotV1BotsDiscordUserConfigList({
10098
+ org
10099
+ }) {
10100
+ return request(OpenAPI, {
10101
+ method: 'GET',
10102
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
10103
+ path: {
10104
+ 'org': org
10105
+ }
10106
+ });
10107
+ }
10108
+ /**
10109
+ * Setup discord user id linkage with discord bots
10110
+ * this will be used to authenticate the user when interracting with discord bots.
10111
+ * the user id can be copied from the discord app after tapping on the user profile.
10112
+ * @returns DiscordUserConfig
10113
+ * @throws ApiError
10114
+ */
10115
+ static aiBotV1BotsDiscordUserConfigCreate({
10116
+ org,
10117
+ requestBody
10118
+ }) {
10119
+ return request(OpenAPI, {
10120
+ method: 'POST',
10121
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
10122
+ path: {
10123
+ 'org': org
10124
+ },
10125
+ body: requestBody,
10126
+ mediaType: 'application/json'
10127
+ });
10128
+ }
10129
+ /**
10130
+ * Setup discord user id linkage with discord bots
10131
+ * this will be used to authenticate the user when interracting with discord bots.
10132
+ * the user id can be copied from the discord app after tapping on the user profile.
10133
+ * @returns DiscordUserConfig
10134
+ * @throws ApiError
10135
+ */
10136
+ static aiBotV1BotsDiscordUserConfigRetrieve({
10137
+ id,
10138
+ org
10139
+ }) {
10140
+ return request(OpenAPI, {
10141
+ method: 'GET',
10142
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10143
+ path: {
10144
+ 'id': id,
10145
+ 'org': org
10146
+ }
10147
+ });
10148
+ }
10149
+ /**
10150
+ * Setup discord user id linkage with discord bots
10151
+ * this will be used to authenticate the user when interracting with discord bots.
10152
+ * the user id can be copied from the discord app after tapping on the user profile.
10153
+ * @returns DiscordUserConfig
10154
+ * @throws ApiError
10155
+ */
10156
+ static aiBotV1BotsDiscordUserConfigUpdate({
10157
+ id,
10158
+ org,
10159
+ requestBody
10160
+ }) {
10161
+ return request(OpenAPI, {
10162
+ method: 'PUT',
10163
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10164
+ path: {
10165
+ 'id': id,
10166
+ 'org': org
10167
+ },
10168
+ body: requestBody,
10169
+ mediaType: 'application/json'
10170
+ });
10171
+ }
10172
+ /**
10173
+ * Setup discord user id linkage with discord bots
10174
+ * this will be used to authenticate the user when interracting with discord bots.
10175
+ * the user id can be copied from the discord app after tapping on the user profile.
10176
+ * @returns DiscordUserConfig
10177
+ * @throws ApiError
10178
+ */
10179
+ static aiBotV1BotsDiscordUserConfigPartialUpdate({
10180
+ id,
10181
+ org,
10182
+ requestBody
10183
+ }) {
10184
+ return request(OpenAPI, {
10185
+ method: 'PATCH',
10186
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10187
+ path: {
10188
+ 'id': id,
10189
+ 'org': org
10190
+ },
10191
+ body: requestBody,
10192
+ mediaType: 'application/json'
10193
+ });
10194
+ }
10195
+ /**
10196
+ * Setup discord user id linkage with discord bots
10197
+ * this will be used to authenticate the user when interracting with discord bots.
10198
+ * the user id can be copied from the discord app after tapping on the user profile.
10199
+ * @returns void
10200
+ * @throws ApiError
10201
+ */
10202
+ static aiBotV1BotsDiscordUserConfigDestroy({
10203
+ id,
10204
+ org
10205
+ }) {
10206
+ return request(OpenAPI, {
10207
+ method: 'DELETE',
10208
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10209
+ path: {
10210
+ 'id': id,
10211
+ 'org': org
10212
+ }
10213
+ });
10214
+ }
10215
+ /**
10216
+ * Setup slack username and domain linkage with slack bots
10217
+ * this will be used to authenticate the user when interracting with slack bots.
10218
+ * @returns SlackUserConfig
10219
+ * @throws ApiError
10220
+ */
10221
+ static aiBotV1BotsSlackUserConfigList({
10222
+ org
10223
+ }) {
10224
+ return request(OpenAPI, {
10225
+ method: 'GET',
10226
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
10227
+ path: {
10228
+ 'org': org
10229
+ }
10230
+ });
10231
+ }
10232
+ /**
10233
+ * Setup slack username and domain linkage with slack bots
10234
+ * this will be used to authenticate the user when interracting with slack bots.
10235
+ * @returns SlackUserConfig
10236
+ * @throws ApiError
10237
+ */
10238
+ static aiBotV1BotsSlackUserConfigCreate({
10239
+ org,
10240
+ requestBody
10241
+ }) {
10242
+ return request(OpenAPI, {
10243
+ method: 'POST',
10244
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
10245
+ path: {
10246
+ 'org': org
10247
+ },
10248
+ body: requestBody,
10249
+ mediaType: 'application/json'
10250
+ });
10251
+ }
10252
+ /**
10253
+ * Setup slack username and domain linkage with slack bots
10254
+ * this will be used to authenticate the user when interracting with slack bots.
10255
+ * @returns SlackUserConfig
10256
+ * @throws ApiError
10257
+ */
10258
+ static aiBotV1BotsSlackUserConfigRetrieve({
10259
+ id,
10260
+ org
10261
+ }) {
10262
+ return request(OpenAPI, {
10263
+ method: 'GET',
10264
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10265
+ path: {
10266
+ 'id': id,
10267
+ 'org': org
10268
+ }
10269
+ });
10270
+ }
10271
+ /**
10272
+ * Setup slack username and domain linkage with slack bots
10273
+ * this will be used to authenticate the user when interracting with slack bots.
10274
+ * @returns SlackUserConfig
10275
+ * @throws ApiError
10276
+ */
10277
+ static aiBotV1BotsSlackUserConfigUpdate({
10278
+ id,
10279
+ org,
10280
+ requestBody
10281
+ }) {
10282
+ return request(OpenAPI, {
10283
+ method: 'PUT',
10284
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10285
+ path: {
10286
+ 'id': id,
10287
+ 'org': org
10288
+ },
10289
+ body: requestBody,
10290
+ mediaType: 'application/json'
10291
+ });
10292
+ }
10293
+ /**
10294
+ * Setup slack username and domain linkage with slack bots
10295
+ * this will be used to authenticate the user when interracting with slack bots.
10296
+ * @returns SlackUserConfig
10297
+ * @throws ApiError
10298
+ */
10299
+ static aiBotV1BotsSlackUserConfigPartialUpdate({
10300
+ id,
10301
+ org,
10302
+ requestBody
10303
+ }) {
10304
+ return request(OpenAPI, {
10305
+ method: 'PATCH',
10306
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10307
+ path: {
10308
+ 'id': id,
10309
+ 'org': org
10310
+ },
10311
+ body: requestBody,
10312
+ mediaType: 'application/json'
10313
+ });
10314
+ }
10315
+ /**
10316
+ * Setup slack username and domain linkage with slack bots
10317
+ * this will be used to authenticate the user when interracting with slack bots.
10318
+ * @returns void
10319
+ * @throws ApiError
10320
+ */
10321
+ static aiBotV1BotsSlackUserConfigDestroy({
10322
+ id,
10323
+ org
10324
+ }) {
10325
+ return request(OpenAPI, {
10326
+ method: 'DELETE',
10327
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10328
+ path: {
10329
+ 'id': id,
10330
+ 'org': org
10331
+ }
10332
+ });
10333
+ }
10334
+ /**
10335
+ * Setup phone number linkage with whatsapp bots
10336
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10337
+ * @returns WhatsappUserConfig
10338
+ * @throws ApiError
10339
+ */
10340
+ static aiBotV1BotsWhatsappUserConfigList({
10341
+ org
10342
+ }) {
10343
+ return request(OpenAPI, {
10344
+ method: 'GET',
10345
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
10346
+ path: {
10347
+ 'org': org
10348
+ }
10349
+ });
10350
+ }
10351
+ /**
10352
+ * Setup phone number linkage with whatsapp bots
10353
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10354
+ * @returns WhatsappUserConfig
10355
+ * @throws ApiError
10356
+ */
10357
+ static aiBotV1BotsWhatsappUserConfigCreate({
10358
+ org,
10359
+ requestBody
10360
+ }) {
10361
+ return request(OpenAPI, {
10362
+ method: 'POST',
10363
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
10364
+ path: {
10365
+ 'org': org
10366
+ },
10367
+ body: requestBody,
10368
+ mediaType: 'application/json'
10369
+ });
10370
+ }
10371
+ /**
10372
+ * Setup phone number linkage with whatsapp bots
10373
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10374
+ * @returns WhatsappUserConfig
10375
+ * @throws ApiError
10376
+ */
10377
+ static aiBotV1BotsWhatsappUserConfigRetrieve({
10378
+ id,
10379
+ org
10380
+ }) {
10381
+ return request(OpenAPI, {
10382
+ method: 'GET',
10383
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10384
+ path: {
10385
+ 'id': id,
10386
+ 'org': org
10387
+ }
10388
+ });
10389
+ }
10390
+ /**
10391
+ * Setup phone number linkage with whatsapp bots
10392
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10393
+ * @returns WhatsappUserConfig
10394
+ * @throws ApiError
10395
+ */
10396
+ static aiBotV1BotsWhatsappUserConfigUpdate({
10397
+ id,
10398
+ org,
10399
+ requestBody
10400
+ }) {
10401
+ return request(OpenAPI, {
10402
+ method: 'PUT',
10403
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10404
+ path: {
10405
+ 'id': id,
10406
+ 'org': org
10407
+ },
10408
+ body: requestBody,
10409
+ mediaType: 'application/json'
10410
+ });
10411
+ }
10412
+ /**
10413
+ * Setup phone number linkage with whatsapp bots
10414
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10415
+ * @returns WhatsappUserConfig
10416
+ * @throws ApiError
10417
+ */
10418
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate({
10419
+ id,
10420
+ org,
10421
+ requestBody
10422
+ }) {
10423
+ return request(OpenAPI, {
10424
+ method: 'PATCH',
10425
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10426
+ path: {
10427
+ 'id': id,
10428
+ 'org': org
10429
+ },
10430
+ body: requestBody,
10431
+ mediaType: 'application/json'
10432
+ });
10433
+ }
10434
+ /**
10435
+ * Setup phone number linkage with whatsapp bots
10436
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10437
+ * @returns void
10438
+ * @throws ApiError
10439
+ */
10440
+ static aiBotV1BotsWhatsappUserConfigDestroy({
10441
+ id,
10442
+ org
10443
+ }) {
10444
+ return request(OpenAPI, {
10445
+ method: 'DELETE',
10446
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10447
+ path: {
10448
+ 'id': id,
10449
+ 'org': org
10450
+ }
10451
+ });
10452
+ }
10453
+ /**
10454
+ * Webhook endpoint to receive and process discord messages.
10455
+ * @returns DiscordWebhook
10456
+ * @throws ApiError
10457
+ */
10458
+ static aiBotV1BotsWebhooksDiscordCreate({
10459
+ name,
10460
+ org,
10461
+ requestBody
10462
+ }) {
10463
+ return request(OpenAPI, {
10464
+ method: 'POST',
10465
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
10466
+ path: {
10467
+ 'name': name,
10468
+ 'org': org
10469
+ },
10470
+ body: requestBody,
10471
+ mediaType: 'application/json'
10472
+ });
10473
+ }
10474
+ /**
10475
+ * @returns SlackWebhook
10476
+ * @throws ApiError
10477
+ */
10478
+ static aiBotV1BotsWebhooksSlackCreate({
10479
+ name,
10480
+ org,
10481
+ requestBody
10482
+ }) {
10483
+ return request(OpenAPI, {
10484
+ method: 'POST',
10485
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
10486
+ path: {
10487
+ 'name': name,
10488
+ 'org': org
10489
+ },
10490
+ body: requestBody,
10491
+ mediaType: 'application/json'
10492
+ });
10493
+ }
10494
+ /**
10495
+ * @returns TeamsWebhook
10496
+ * @throws ApiError
10497
+ */
10498
+ static aiBotV1BotsWebhooksTeamsCreate({
10499
+ name,
10500
+ org,
10501
+ requestBody
10502
+ }) {
10503
+ return request(OpenAPI, {
10504
+ method: 'POST',
10505
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
10506
+ path: {
10507
+ 'name': name,
10508
+ 'org': org
10509
+ },
10510
+ body: requestBody,
10511
+ mediaType: 'application/json'
10512
+ });
10513
+ }
10514
+ /**
10515
+ * Webhook endpoint to receive and process discord messages.
10516
+ * @returns WebexWebhook
10517
+ * @throws ApiError
10518
+ */
10519
+ static aiBotV1BotsWebhooksWebexCreate({
10520
+ name,
10521
+ org,
10522
+ requestBody
10523
+ }) {
10524
+ return request(OpenAPI, {
10525
+ method: 'POST',
10526
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
10527
+ path: {
10528
+ 'name': name,
10529
+ 'org': org
10530
+ },
10531
+ body: requestBody,
10532
+ mediaType: 'application/json'
10533
+ });
10534
+ }
10535
+ /**
10536
+ * Respond to whatsapp's webhook challenge.
10537
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
10538
+ * @returns WhatAppWebHook
10539
+ * @throws ApiError
10540
+ */
10541
+ static aiBotV1BotsWebhooksWhatsappRetrieve({
10542
+ name,
10543
+ org
10544
+ }) {
10545
+ return request(OpenAPI, {
10546
+ method: 'GET',
10547
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10548
+ path: {
10549
+ 'name': name,
10550
+ 'org': org
10551
+ }
10552
+ });
10553
+ }
10554
+ /**
10555
+ * Accept and process webhook events from whatsapp.
10556
+ * @returns WhatAppWebHook
10557
+ * @throws ApiError
10558
+ */
10559
+ static aiBotV1BotsWebhooksWhatsappCreate({
10560
+ name,
10561
+ org,
10562
+ requestBody
10563
+ }) {
10564
+ return request(OpenAPI, {
10565
+ method: 'POST',
10566
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10567
+ path: {
10568
+ 'name': name,
10569
+ 'org': org
10570
+ },
10571
+ body: requestBody,
10572
+ mediaType: 'application/json'
10573
+ });
10574
+ }
10575
+ }
10576
+
10577
+ class AiFinetuningService {
10578
+ /**
10579
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10580
+ * @returns PaginatedDataSetList
10581
+ * @throws ApiError
10582
+ */
10583
+ static aiFinetuningV1OrgUserDatasetsList({
10584
+ org,
10585
+ username,
10586
+ dateCreated,
10587
+ numDataPoints,
10588
+ ordering,
10589
+ page,
10590
+ pageSize,
10591
+ retryAttempts,
10592
+ search,
10593
+ status
10594
+ }) {
10595
+ return request(OpenAPI, {
10596
+ method: 'GET',
10597
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10598
+ path: {
10599
+ 'org': org,
10600
+ 'username': username
10601
+ },
10602
+ query: {
10603
+ 'date_created': dateCreated,
10604
+ 'num_data_points': numDataPoints,
10605
+ 'ordering': ordering,
10606
+ 'page': page,
10607
+ 'page_size': pageSize,
10608
+ 'retry_attempts': retryAttempts,
10609
+ 'search': search,
10610
+ 'status': status
10611
+ }
10612
+ });
10613
+ }
10614
+ /**
10615
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10616
+ * @returns DataSetCreate
10617
+ * @throws ApiError
10618
+ */
10619
+ static aiFinetuningV1OrgUserDatasetsCreate({
10620
+ org,
10621
+ username,
10622
+ requestBody
10623
+ }) {
10624
+ return request(OpenAPI, {
10625
+ method: 'POST',
10626
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10627
+ path: {
10628
+ 'org': org,
10629
+ 'username': username
10630
+ },
10631
+ body: requestBody,
10632
+ mediaType: 'application/json'
10633
+ });
10634
+ }
10635
+ /**
10636
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10637
+ * @returns DataSet
10638
+ * @throws ApiError
10639
+ */
10640
+ static aiFinetuningV1OrgUserDatasetsRetrieve({
10641
+ id,
10642
+ org,
10643
+ username
10644
+ }) {
10645
+ return request(OpenAPI, {
10646
+ method: 'GET',
10647
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10648
+ path: {
10649
+ 'id': id,
10650
+ 'org': org,
10651
+ 'username': username
10652
+ }
10653
+ });
10654
+ }
10655
+ /**
10656
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10657
+ * @returns DataSet
10658
+ * @throws ApiError
10659
+ */
10660
+ static aiFinetuningV1OrgUserDatasetsUpdate({
10661
+ id,
10662
+ org,
10663
+ username,
10664
+ requestBody
10665
+ }) {
10666
+ return request(OpenAPI, {
10667
+ method: 'PUT',
10668
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10669
+ path: {
10670
+ 'id': id,
10671
+ 'org': org,
10672
+ 'username': username
10673
+ },
10674
+ body: requestBody,
10675
+ mediaType: 'application/json'
10676
+ });
10677
+ }
10678
+ /**
10679
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10680
+ * @returns DataSet
10681
+ * @throws ApiError
10682
+ */
10683
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate({
10684
+ id,
10685
+ org,
10686
+ username,
10687
+ requestBody
10688
+ }) {
10689
+ return request(OpenAPI, {
10690
+ method: 'PATCH',
10691
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10692
+ path: {
10693
+ 'id': id,
10694
+ 'org': org,
10695
+ 'username': username
10696
+ },
10697
+ body: requestBody,
10698
+ mediaType: 'application/json'
10699
+ });
10700
+ }
10701
+ /**
10702
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10703
+ * @returns void
10704
+ * @throws ApiError
10705
+ */
10706
+ static aiFinetuningV1OrgUserDatasetsDestroy({
10707
+ id,
10708
+ org,
10709
+ username
10710
+ }) {
10711
+ return request(OpenAPI, {
10712
+ method: 'DELETE',
10713
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10714
+ path: {
10715
+ 'id': id,
10716
+ 'org': org,
10717
+ 'username': username
10718
+ }
10719
+ });
10720
+ }
10721
+ /**
10722
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10723
+ * @returns PaginatedTrainingList
10724
+ * @throws ApiError
10725
+ */
10726
+ static aiFinetuningV1OrgUserTrainingsList({
10727
+ org,
10728
+ username,
10729
+ baseModelName,
10730
+ dataset,
10731
+ dateCreated,
10732
+ fineTunedModel,
10733
+ lastModified,
10734
+ ordering,
10735
+ page,
10736
+ pageSize,
10737
+ preprocessDataset,
10738
+ provider,
10739
+ search,
10740
+ status
10741
+ }) {
10742
+ return request(OpenAPI, {
10743
+ method: 'GET',
10744
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10745
+ path: {
10746
+ 'org': org,
10747
+ 'username': username
10748
+ },
10749
+ query: {
10750
+ 'base_model_name': baseModelName,
10751
+ 'dataset': dataset,
10752
+ 'date_created': dateCreated,
10753
+ 'fine_tuned_model': fineTunedModel,
10754
+ 'last_modified': lastModified,
10755
+ 'ordering': ordering,
10756
+ 'page': page,
10757
+ 'page_size': pageSize,
10758
+ 'preprocess_dataset': preprocessDataset,
10759
+ 'provider': provider,
10760
+ 'search': search,
10761
+ 'status': status
10762
+ }
10763
+ });
10764
+ }
10765
+ /**
10766
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10767
+ * @returns TrainingCreate
10768
+ * @throws ApiError
10769
+ */
10770
+ static aiFinetuningV1OrgUserTrainingsCreate({
10771
+ org,
10772
+ username,
10773
+ requestBody
10774
+ }) {
10775
+ return request(OpenAPI, {
10776
+ method: 'POST',
10777
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10778
+ path: {
10779
+ 'org': org,
10780
+ 'username': username
10781
+ },
10782
+ body: requestBody,
10783
+ mediaType: 'application/json'
10784
+ });
10785
+ }
10786
+ /**
10787
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10788
+ * @returns Training
10789
+ * @throws ApiError
10790
+ */
10791
+ static aiFinetuningV1OrgUserTrainingsRetrieve({
10792
+ id,
10793
+ org,
10794
+ username
10795
+ }) {
10796
+ return request(OpenAPI, {
10797
+ method: 'GET',
10798
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10799
+ path: {
10800
+ 'id': id,
10801
+ 'org': org,
10802
+ 'username': username
10803
+ }
10804
+ });
10805
+ }
10806
+ /**
10807
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10808
+ * @returns TrainingCreate
10809
+ * @throws ApiError
10810
+ */
10811
+ static aiFinetuningV1OrgUserTrainingsUpdate({
10812
+ id,
10813
+ org,
10814
+ username,
10815
+ requestBody
10816
+ }) {
10817
+ return request(OpenAPI, {
10818
+ method: 'PUT',
10819
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10820
+ path: {
10821
+ 'id': id,
10822
+ 'org': org,
10823
+ 'username': username
10824
+ },
10825
+ body: requestBody,
10826
+ mediaType: 'application/json'
10827
+ });
10828
+ }
10829
+ /**
10830
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10831
+ * @returns TrainingCreate
10832
+ * @throws ApiError
10833
+ */
10834
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate({
10835
+ id,
10836
+ org,
10837
+ username,
10838
+ requestBody
10839
+ }) {
10840
+ return request(OpenAPI, {
10841
+ method: 'PATCH',
10842
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10843
+ path: {
10844
+ 'id': id,
10845
+ 'org': org,
10846
+ 'username': username
10847
+ },
10848
+ body: requestBody,
10849
+ mediaType: 'application/json'
10850
+ });
10851
+ }
10852
+ /**
10853
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10854
+ * @returns void
10855
+ * @throws ApiError
10856
+ */
10857
+ static aiFinetuningV1OrgUserTrainingsDestroy({
10858
+ id,
10859
+ org,
10860
+ username
10861
+ }) {
10862
+ return request(OpenAPI, {
10863
+ method: 'DELETE',
10864
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10865
+ path: {
10866
+ 'id': id,
10867
+ 'org': org,
10868
+ 'username': username
10869
+ }
10870
+ });
10871
+ }
10872
+ /**
10873
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
10874
+ * Filtering and pagination is allowed.
10875
+ *
10876
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
10877
+ * training list endpoint.
10878
+ * Returns:
10879
+ * Response: A paginated response containing the serialized fine-tuned models.
10880
+ * @returns Training
10881
+ * @throws ApiError
10882
+ */
10883
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
10884
+ org,
10885
+ username
10886
+ }) {
10887
+ return request(OpenAPI, {
10888
+ method: 'GET',
10889
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
10890
+ path: {
10891
+ 'org': org,
10892
+ 'username': username
10893
+ }
10894
+ });
10895
+ }
10896
+ }
10897
+
9507
10898
  class AiIndexService {
9508
10899
  /**
9509
10900
  * Retrieve details of a specific document embedding.
@@ -35022,6 +36413,8 @@
35022
36413
 
35023
36414
  exports.AiAccountService = AiAccountService;
35024
36415
  exports.AiAnalyticsService = AiAnalyticsService;
36416
+ exports.AiBotService = AiBotService;
36417
+ exports.AiFinetuningService = AiFinetuningService;
35025
36418
  exports.AiIndexService = AiIndexService;
35026
36419
  exports.AiMarketingService = AiMarketingService;
35027
36420
  exports.AiMediaService = AiMediaService;