@iblai/iblai-api 3.48.5-ai → 3.48.5-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 (92) hide show
  1. package/dist/index.cjs.js +1402 -9
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1401 -10
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +1402 -9
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +40 -1
  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/Voice.d.ts +2 -2
  41. package/dist/types/models/{ProviderEnum.d.ts → VoiceProviderEnum.d.ts} +1 -1
  42. package/dist/types/models/WebexConfig.d.ts +10 -0
  43. package/dist/types/models/WebexWebhook.d.ts +4 -0
  44. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  45. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  46. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  47. package/dist/types/services/AiBotService.d.ts +642 -0
  48. package/dist/types/services/AiFinetuningService.d.ts +232 -0
  49. package/package.json +1 -1
  50. package/src/core/OpenAPI.ts +1 -1
  51. package/src/index.ts +40 -1
  52. package/src/models/Bot.ts +20 -0
  53. package/src/models/BotCommand.ts +11 -0
  54. package/src/models/BotCreate.ts +17 -0
  55. package/src/models/DataSet.ts +26 -0
  56. package/src/models/DataSetCreate.ts +17 -0
  57. package/src/models/DataSetStatusEnum.ts +16 -0
  58. package/src/models/DiscordConfig.ts +12 -0
  59. package/src/models/DiscordUserConfig.ts +15 -0
  60. package/src/models/DiscordWebhook.ts +11 -0
  61. package/src/models/PaginatedDataSetList.ts +12 -0
  62. package/src/models/PaginatedTrainingList.ts +12 -0
  63. package/src/models/PatchedBotCommand.ts +11 -0
  64. package/src/models/PatchedBotCreate.ts +17 -0
  65. package/src/models/PatchedDataSet.ts +26 -0
  66. package/src/models/PatchedDiscordConfig.ts +12 -0
  67. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  68. package/src/models/PatchedSlackConfig.ts +13 -0
  69. package/src/models/PatchedSlackUserConfig.ts +22 -0
  70. package/src/models/PatchedTeamsConfig.ts +12 -0
  71. package/src/models/PatchedTrainingCreate.ts +36 -0
  72. package/src/models/PatchedWebexConfig.ts +15 -0
  73. package/src/models/PatchedWhatsappConfig.ts +16 -0
  74. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  75. package/src/models/Provider05cEnum.ts +18 -0
  76. package/src/models/Provider63aEnum.ts +10 -0
  77. package/src/models/SlackConfig.ts +13 -0
  78. package/src/models/SlackUserConfig.ts +22 -0
  79. package/src/models/SlackWebhook.ts +11 -0
  80. package/src/models/TeamsConfig.ts +12 -0
  81. package/src/models/TeamsWebhook.ts +22 -0
  82. package/src/models/Training.ts +46 -0
  83. package/src/models/TrainingCreate.ts +36 -0
  84. package/src/models/Voice.ts +2 -2
  85. package/src/models/{ProviderEnum.ts → VoiceProviderEnum.ts} +1 -1
  86. package/src/models/WebexConfig.ts +15 -0
  87. package/src/models/WebexWebhook.ts +9 -0
  88. package/src/models/WhatAppWebHook.ts +8 -0
  89. package/src/models/WhatsappConfig.ts +16 -0
  90. package/src/models/WhatsappUserConfig.ts +15 -0
  91. package/src/services/AiBotService.ts +1330 -0
  92. package/src/services/AiFinetuningService.ts +472 -0
package/dist/index.cjs.js CHANGED
@@ -110,7 +110,7 @@ class CancelablePromise {
110
110
 
111
111
  const OpenAPI = {
112
112
  BASE: 'https://base.manager.iblai.app',
113
- VERSION: '3.48.5-ai',
113
+ VERSION: '3.48.5-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -231,6 +231,24 @@ exports.CourseCreationTaskStatusEnum = void 0;
231
231
  CourseCreationTaskStatusEnum["IN_PROGRESS"] = "In Progress";
232
232
  })(exports.CourseCreationTaskStatusEnum || (exports.CourseCreationTaskStatusEnum = {}));
233
233
 
234
+ /* generated using openapi-typescript-codegen -- do not edit */
235
+ /* istanbul ignore file */
236
+ /* tslint:disable */
237
+ /* eslint-disable */
238
+ /**
239
+ * * `pending` - Pending
240
+ * * `processing` - Processing
241
+ * * `completed` - Completed
242
+ * * `failed` - Failed
243
+ */
244
+ exports.DataSetStatusEnum = void 0;
245
+ (function (DataSetStatusEnum) {
246
+ DataSetStatusEnum["PENDING"] = "pending";
247
+ DataSetStatusEnum["PROCESSING"] = "processing";
248
+ DataSetStatusEnum["COMPLETED"] = "completed";
249
+ DataSetStatusEnum["FAILED"] = "failed";
250
+ })(exports.DataSetStatusEnum || (exports.DataSetStatusEnum = {}));
251
+
234
252
  /* generated using openapi-typescript-codegen -- do not edit */
235
253
  /* istanbul ignore file */
236
254
  /* tslint:disable */
@@ -513,21 +531,37 @@ exports.PromptVisibilityEnum = void 0;
513
531
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
514
532
  })(exports.PromptVisibilityEnum || (exports.PromptVisibilityEnum = {}));
515
533
 
534
+ /* generated using openapi-typescript-codegen -- do not edit */
535
+ /* istanbul ignore file */
536
+ /* tslint:disable */
537
+ /* eslint-disable */
538
+ /**
539
+ * * `webex` - Webex
540
+ * * `slack` - Slack
541
+ * * `whatsapp` - Whatsapp
542
+ * * `discord` - Discord
543
+ * * `teams` - Teams
544
+ */
545
+ exports.Provider05cEnum = void 0;
546
+ (function (Provider05cEnum) {
547
+ Provider05cEnum["WEBEX"] = "webex";
548
+ Provider05cEnum["SLACK"] = "slack";
549
+ Provider05cEnum["WHATSAPP"] = "whatsapp";
550
+ Provider05cEnum["DISCORD"] = "discord";
551
+ Provider05cEnum["TEAMS"] = "teams";
552
+ })(exports.Provider05cEnum || (exports.Provider05cEnum = {}));
553
+
516
554
  /* generated using openapi-typescript-codegen -- do not edit */
517
555
  /* istanbul ignore file */
518
556
  /* tslint:disable */
519
557
  /* eslint-disable */
520
558
  /**
521
559
  * * `openai` - Openai
522
- * * `google` - Google
523
- * * `elevenlabs` - Elevenlabs
524
560
  */
525
- exports.ProviderEnum = void 0;
526
- (function (ProviderEnum) {
527
- ProviderEnum["OPENAI"] = "openai";
528
- ProviderEnum["GOOGLE"] = "google";
529
- ProviderEnum["ELEVENLABS"] = "elevenlabs";
530
- })(exports.ProviderEnum || (exports.ProviderEnum = {}));
561
+ exports.Provider63aEnum = void 0;
562
+ (function (Provider63aEnum) {
563
+ Provider63aEnum["OPENAI"] = "openai";
564
+ })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
531
565
 
532
566
  /* generated using openapi-typescript-codegen -- do not edit */
533
567
  /* istanbul ignore file */
@@ -697,6 +731,22 @@ exports.TypeC42Enum = void 0;
697
731
  TypeC42Enum["ASSESSMENT"] = "assessment";
698
732
  })(exports.TypeC42Enum || (exports.TypeC42Enum = {}));
699
733
 
734
+ /* generated using openapi-typescript-codegen -- do not edit */
735
+ /* istanbul ignore file */
736
+ /* tslint:disable */
737
+ /* eslint-disable */
738
+ /**
739
+ * * `openai` - Openai
740
+ * * `google` - Google
741
+ * * `elevenlabs` - Elevenlabs
742
+ */
743
+ exports.VoiceProviderEnum = void 0;
744
+ (function (VoiceProviderEnum) {
745
+ VoiceProviderEnum["OPENAI"] = "openai";
746
+ VoiceProviderEnum["GOOGLE"] = "google";
747
+ VoiceProviderEnum["ELEVENLABS"] = "elevenlabs";
748
+ })(exports.VoiceProviderEnum || (exports.VoiceProviderEnum = {}));
749
+
700
750
  /* generated using openapi-typescript-codegen -- do not edit */
701
751
  /* istanbul ignore file */
702
752
  /* tslint:disable */
@@ -5673,6 +5723,1347 @@ class AiAnalyticsService {
5673
5723
  }
5674
5724
  }
5675
5725
 
5726
+ class AiBotService {
5727
+ /**
5728
+ * Create modify and update bot information for a specific tenant.
5729
+ * @returns Bot
5730
+ * @throws ApiError
5731
+ */
5732
+ static aiBotV1BotsBotList({
5733
+ org
5734
+ }) {
5735
+ return request(OpenAPI, {
5736
+ method: 'GET',
5737
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
5738
+ path: {
5739
+ 'org': org
5740
+ }
5741
+ });
5742
+ }
5743
+ /**
5744
+ * Create modify and update bot information for a specific tenant.
5745
+ * @returns BotCreate
5746
+ * @throws ApiError
5747
+ */
5748
+ static aiBotV1BotsBotCreate({
5749
+ org,
5750
+ requestBody
5751
+ }) {
5752
+ return request(OpenAPI, {
5753
+ method: 'POST',
5754
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
5755
+ path: {
5756
+ 'org': org
5757
+ },
5758
+ body: requestBody,
5759
+ mediaType: 'application/json'
5760
+ });
5761
+ }
5762
+ /**
5763
+ * Create slash commands for a specific bot
5764
+ * eg. /iblai-baseline
5765
+ * @returns BotCommand
5766
+ * @throws ApiError
5767
+ */
5768
+ static aiBotV1BotsBotCommandsList({
5769
+ org
5770
+ }) {
5771
+ return request(OpenAPI, {
5772
+ method: 'GET',
5773
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5774
+ path: {
5775
+ 'org': org
5776
+ }
5777
+ });
5778
+ }
5779
+ /**
5780
+ * Create slash commands for a specific bot
5781
+ * eg. /iblai-baseline
5782
+ * @returns BotCommand
5783
+ * @throws ApiError
5784
+ */
5785
+ static aiBotV1BotsBotCommandsCreate({
5786
+ org,
5787
+ requestBody
5788
+ }) {
5789
+ return request(OpenAPI, {
5790
+ method: 'POST',
5791
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5792
+ path: {
5793
+ 'org': org
5794
+ },
5795
+ body: requestBody,
5796
+ mediaType: 'application/json'
5797
+ });
5798
+ }
5799
+ /**
5800
+ * Create slash commands for a specific bot
5801
+ * eg. /iblai-baseline
5802
+ * @returns BotCommand
5803
+ * @throws ApiError
5804
+ */
5805
+ static aiBotV1BotsBotCommandsRetrieve({
5806
+ id,
5807
+ org
5808
+ }) {
5809
+ return request(OpenAPI, {
5810
+ method: 'GET',
5811
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5812
+ path: {
5813
+ 'id': id,
5814
+ 'org': org
5815
+ }
5816
+ });
5817
+ }
5818
+ /**
5819
+ * Create slash commands for a specific bot
5820
+ * eg. /iblai-baseline
5821
+ * @returns BotCommand
5822
+ * @throws ApiError
5823
+ */
5824
+ static aiBotV1BotsBotCommandsUpdate({
5825
+ id,
5826
+ org,
5827
+ requestBody
5828
+ }) {
5829
+ return request(OpenAPI, {
5830
+ method: 'PUT',
5831
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5832
+ path: {
5833
+ 'id': id,
5834
+ 'org': org
5835
+ },
5836
+ body: requestBody,
5837
+ mediaType: 'application/json'
5838
+ });
5839
+ }
5840
+ /**
5841
+ * Create slash commands for a specific bot
5842
+ * eg. /iblai-baseline
5843
+ * @returns BotCommand
5844
+ * @throws ApiError
5845
+ */
5846
+ static aiBotV1BotsBotCommandsPartialUpdate({
5847
+ id,
5848
+ org,
5849
+ requestBody
5850
+ }) {
5851
+ return request(OpenAPI, {
5852
+ method: 'PATCH',
5853
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5854
+ path: {
5855
+ 'id': id,
5856
+ 'org': org
5857
+ },
5858
+ body: requestBody,
5859
+ mediaType: 'application/json'
5860
+ });
5861
+ }
5862
+ /**
5863
+ * Create slash commands for a specific bot
5864
+ * eg. /iblai-baseline
5865
+ * @returns void
5866
+ * @throws ApiError
5867
+ */
5868
+ static aiBotV1BotsBotCommandsDestroy({
5869
+ id,
5870
+ org
5871
+ }) {
5872
+ return request(OpenAPI, {
5873
+ method: 'DELETE',
5874
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5875
+ path: {
5876
+ 'id': id,
5877
+ 'org': org
5878
+ }
5879
+ });
5880
+ }
5881
+ /**
5882
+ * Create modify and update bot information for a specific tenant.
5883
+ * @returns Bot
5884
+ * @throws ApiError
5885
+ */
5886
+ static aiBotV1BotsBotRetrieve({
5887
+ id,
5888
+ org
5889
+ }) {
5890
+ return request(OpenAPI, {
5891
+ method: 'GET',
5892
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
5893
+ path: {
5894
+ 'id': id,
5895
+ 'org': org
5896
+ }
5897
+ });
5898
+ }
5899
+ /**
5900
+ * Create modify and update bot information for a specific tenant.
5901
+ * @returns BotCreate
5902
+ * @throws ApiError
5903
+ */
5904
+ static aiBotV1BotsBotUpdate({
5905
+ id,
5906
+ org,
5907
+ requestBody
5908
+ }) {
5909
+ return request(OpenAPI, {
5910
+ method: 'PUT',
5911
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
5912
+ path: {
5913
+ 'id': id,
5914
+ 'org': org
5915
+ },
5916
+ body: requestBody,
5917
+ mediaType: 'application/json'
5918
+ });
5919
+ }
5920
+ /**
5921
+ * Create modify and update bot information for a specific tenant.
5922
+ * @returns BotCreate
5923
+ * @throws ApiError
5924
+ */
5925
+ static aiBotV1BotsBotPartialUpdate({
5926
+ id,
5927
+ org,
5928
+ requestBody
5929
+ }) {
5930
+ return request(OpenAPI, {
5931
+ method: 'PATCH',
5932
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
5933
+ path: {
5934
+ 'id': id,
5935
+ 'org': org
5936
+ },
5937
+ body: requestBody,
5938
+ mediaType: 'application/json'
5939
+ });
5940
+ }
5941
+ /**
5942
+ * Create modify and update bot information for a specific tenant.
5943
+ * @returns void
5944
+ * @throws ApiError
5945
+ */
5946
+ static aiBotV1BotsBotDestroy({
5947
+ id,
5948
+ org
5949
+ }) {
5950
+ return request(OpenAPI, {
5951
+ method: 'DELETE',
5952
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
5953
+ path: {
5954
+ 'id': id,
5955
+ 'org': org
5956
+ }
5957
+ });
5958
+ }
5959
+ /**
5960
+ * Create modify and update bot information for a specific tenant.
5961
+ * @returns DiscordConfig
5962
+ * @throws ApiError
5963
+ */
5964
+ static aiBotV1BotsBotConfigDiscordRetrieve({
5965
+ id,
5966
+ org
5967
+ }) {
5968
+ return request(OpenAPI, {
5969
+ method: 'GET',
5970
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
5971
+ path: {
5972
+ 'id': id,
5973
+ 'org': org
5974
+ }
5975
+ });
5976
+ }
5977
+ /**
5978
+ * Create modify and update bot information for a specific tenant.
5979
+ * @returns DiscordConfig
5980
+ * @throws ApiError
5981
+ */
5982
+ static aiBotV1BotsBotConfigDiscordPartialUpdate({
5983
+ id,
5984
+ org,
5985
+ requestBody
5986
+ }) {
5987
+ return request(OpenAPI, {
5988
+ method: 'PATCH',
5989
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
5990
+ path: {
5991
+ 'id': id,
5992
+ 'org': org
5993
+ },
5994
+ body: requestBody,
5995
+ mediaType: 'application/json'
5996
+ });
5997
+ }
5998
+ /**
5999
+ * Create modify and update bot information for a specific tenant.
6000
+ * @returns SlackConfig
6001
+ * @throws ApiError
6002
+ */
6003
+ static aiBotV1BotsBotConfigSlackRetrieve({
6004
+ id,
6005
+ org
6006
+ }) {
6007
+ return request(OpenAPI, {
6008
+ method: 'GET',
6009
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
6010
+ path: {
6011
+ 'id': id,
6012
+ 'org': org
6013
+ }
6014
+ });
6015
+ }
6016
+ /**
6017
+ * Create modify and update bot information for a specific tenant.
6018
+ * @returns SlackConfig
6019
+ * @throws ApiError
6020
+ */
6021
+ static aiBotV1BotsBotConfigSlackUpdateCreate({
6022
+ id,
6023
+ org,
6024
+ requestBody
6025
+ }) {
6026
+ return request(OpenAPI, {
6027
+ method: 'POST',
6028
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6029
+ path: {
6030
+ 'id': id,
6031
+ 'org': org
6032
+ },
6033
+ body: requestBody,
6034
+ mediaType: 'application/json'
6035
+ });
6036
+ }
6037
+ /**
6038
+ * Create modify and update bot information for a specific tenant.
6039
+ * @returns SlackConfig
6040
+ * @throws ApiError
6041
+ */
6042
+ static aiBotV1BotsBotConfigSlackUpdateUpdate({
6043
+ id,
6044
+ org,
6045
+ requestBody
6046
+ }) {
6047
+ return request(OpenAPI, {
6048
+ method: 'PUT',
6049
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6050
+ path: {
6051
+ 'id': id,
6052
+ 'org': org
6053
+ },
6054
+ body: requestBody,
6055
+ mediaType: 'application/json'
6056
+ });
6057
+ }
6058
+ /**
6059
+ * Create modify and update bot information for a specific tenant.
6060
+ * @returns SlackConfig
6061
+ * @throws ApiError
6062
+ */
6063
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
6064
+ id,
6065
+ org,
6066
+ requestBody
6067
+ }) {
6068
+ return request(OpenAPI, {
6069
+ method: 'PATCH',
6070
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6071
+ path: {
6072
+ 'id': id,
6073
+ 'org': org
6074
+ },
6075
+ body: requestBody,
6076
+ mediaType: 'application/json'
6077
+ });
6078
+ }
6079
+ /**
6080
+ * Create modify and update bot information for a specific tenant.
6081
+ * @returns TeamsConfig
6082
+ * @throws ApiError
6083
+ */
6084
+ static aiBotV1BotsBotConfigTeamsRetrieve({
6085
+ id,
6086
+ org
6087
+ }) {
6088
+ return request(OpenAPI, {
6089
+ method: 'GET',
6090
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
6091
+ path: {
6092
+ 'id': id,
6093
+ 'org': org
6094
+ }
6095
+ });
6096
+ }
6097
+ /**
6098
+ * Create modify and update bot information for a specific tenant.
6099
+ * @returns TeamsConfig
6100
+ * @throws ApiError
6101
+ */
6102
+ static aiBotV1BotsBotConfigTeamsUpdateCreate({
6103
+ id,
6104
+ org,
6105
+ requestBody
6106
+ }) {
6107
+ return request(OpenAPI, {
6108
+ method: 'POST',
6109
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6110
+ path: {
6111
+ 'id': id,
6112
+ 'org': org
6113
+ },
6114
+ body: requestBody,
6115
+ mediaType: 'application/json'
6116
+ });
6117
+ }
6118
+ /**
6119
+ * Create modify and update bot information for a specific tenant.
6120
+ * @returns TeamsConfig
6121
+ * @throws ApiError
6122
+ */
6123
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate({
6124
+ id,
6125
+ org,
6126
+ requestBody
6127
+ }) {
6128
+ return request(OpenAPI, {
6129
+ method: 'PUT',
6130
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6131
+ path: {
6132
+ 'id': id,
6133
+ 'org': org
6134
+ },
6135
+ body: requestBody,
6136
+ mediaType: 'application/json'
6137
+ });
6138
+ }
6139
+ /**
6140
+ * Create modify and update bot information for a specific tenant.
6141
+ * @returns TeamsConfig
6142
+ * @throws ApiError
6143
+ */
6144
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
6145
+ id,
6146
+ org,
6147
+ requestBody
6148
+ }) {
6149
+ return request(OpenAPI, {
6150
+ method: 'PATCH',
6151
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6152
+ path: {
6153
+ 'id': id,
6154
+ 'org': org
6155
+ },
6156
+ body: requestBody,
6157
+ mediaType: 'application/json'
6158
+ });
6159
+ }
6160
+ /**
6161
+ * Create modify and update bot information for a specific tenant.
6162
+ * @returns WebexConfig
6163
+ * @throws ApiError
6164
+ */
6165
+ static aiBotV1BotsBotConfigWebexRetrieve({
6166
+ id,
6167
+ org
6168
+ }) {
6169
+ return request(OpenAPI, {
6170
+ method: 'GET',
6171
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
6172
+ path: {
6173
+ 'id': id,
6174
+ 'org': org
6175
+ }
6176
+ });
6177
+ }
6178
+ /**
6179
+ * Create modify and update bot information for a specific tenant.
6180
+ * @returns WebexConfig
6181
+ * @throws ApiError
6182
+ */
6183
+ static aiBotV1BotsBotConfigWebexPartialUpdate({
6184
+ id,
6185
+ org,
6186
+ requestBody
6187
+ }) {
6188
+ return request(OpenAPI, {
6189
+ method: 'PATCH',
6190
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
6191
+ path: {
6192
+ 'id': id,
6193
+ 'org': org
6194
+ },
6195
+ body: requestBody,
6196
+ mediaType: 'application/json'
6197
+ });
6198
+ }
6199
+ /**
6200
+ * Create modify and update bot information for a specific tenant.
6201
+ * @returns WhatsappConfig
6202
+ * @throws ApiError
6203
+ */
6204
+ static aiBotV1BotsBotConfigWhatsappRetrieve({
6205
+ id,
6206
+ org
6207
+ }) {
6208
+ return request(OpenAPI, {
6209
+ method: 'GET',
6210
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
6211
+ path: {
6212
+ 'id': id,
6213
+ 'org': org
6214
+ }
6215
+ });
6216
+ }
6217
+ /**
6218
+ * Create modify and update bot information for a specific tenant.
6219
+ * @returns WhatsappConfig
6220
+ * @throws ApiError
6221
+ */
6222
+ static aiBotV1BotsBotWhatsappConfigUpdate({
6223
+ id,
6224
+ org,
6225
+ requestBody
6226
+ }) {
6227
+ return request(OpenAPI, {
6228
+ method: 'PUT',
6229
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
6230
+ path: {
6231
+ 'id': id,
6232
+ 'org': org
6233
+ },
6234
+ body: requestBody,
6235
+ mediaType: 'application/json'
6236
+ });
6237
+ }
6238
+ /**
6239
+ * Create modify and update bot information for a specific tenant.
6240
+ * @returns WhatsappConfig
6241
+ * @throws ApiError
6242
+ */
6243
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate({
6244
+ id,
6245
+ org,
6246
+ requestBody
6247
+ }) {
6248
+ return request(OpenAPI, {
6249
+ method: 'PATCH',
6250
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
6251
+ path: {
6252
+ 'id': id,
6253
+ 'org': org
6254
+ },
6255
+ body: requestBody,
6256
+ mediaType: 'application/json'
6257
+ });
6258
+ }
6259
+ /**
6260
+ * Setup discord user id linkage with discord bots
6261
+ * this will be used to authenticate the user when interracting with discord bots.
6262
+ * the user id can be copied from the discord app after tapping on the user profile.
6263
+ * @returns DiscordUserConfig
6264
+ * @throws ApiError
6265
+ */
6266
+ static aiBotV1BotsDiscordUserConfigList({
6267
+ org
6268
+ }) {
6269
+ return request(OpenAPI, {
6270
+ method: 'GET',
6271
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6272
+ path: {
6273
+ 'org': org
6274
+ }
6275
+ });
6276
+ }
6277
+ /**
6278
+ * Setup discord user id linkage with discord bots
6279
+ * this will be used to authenticate the user when interracting with discord bots.
6280
+ * the user id can be copied from the discord app after tapping on the user profile.
6281
+ * @returns DiscordUserConfig
6282
+ * @throws ApiError
6283
+ */
6284
+ static aiBotV1BotsDiscordUserConfigCreate({
6285
+ org,
6286
+ requestBody
6287
+ }) {
6288
+ return request(OpenAPI, {
6289
+ method: 'POST',
6290
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6291
+ path: {
6292
+ 'org': org
6293
+ },
6294
+ body: requestBody,
6295
+ mediaType: 'application/json'
6296
+ });
6297
+ }
6298
+ /**
6299
+ * Setup discord user id linkage with discord bots
6300
+ * this will be used to authenticate the user when interracting with discord bots.
6301
+ * the user id can be copied from the discord app after tapping on the user profile.
6302
+ * @returns DiscordUserConfig
6303
+ * @throws ApiError
6304
+ */
6305
+ static aiBotV1BotsDiscordUserConfigRetrieve({
6306
+ id,
6307
+ org
6308
+ }) {
6309
+ return request(OpenAPI, {
6310
+ method: 'GET',
6311
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6312
+ path: {
6313
+ 'id': id,
6314
+ 'org': org
6315
+ }
6316
+ });
6317
+ }
6318
+ /**
6319
+ * Setup discord user id linkage with discord bots
6320
+ * this will be used to authenticate the user when interracting with discord bots.
6321
+ * the user id can be copied from the discord app after tapping on the user profile.
6322
+ * @returns DiscordUserConfig
6323
+ * @throws ApiError
6324
+ */
6325
+ static aiBotV1BotsDiscordUserConfigUpdate({
6326
+ id,
6327
+ org,
6328
+ requestBody
6329
+ }) {
6330
+ return request(OpenAPI, {
6331
+ method: 'PUT',
6332
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6333
+ path: {
6334
+ 'id': id,
6335
+ 'org': org
6336
+ },
6337
+ body: requestBody,
6338
+ mediaType: 'application/json'
6339
+ });
6340
+ }
6341
+ /**
6342
+ * Setup discord user id linkage with discord bots
6343
+ * this will be used to authenticate the user when interracting with discord bots.
6344
+ * the user id can be copied from the discord app after tapping on the user profile.
6345
+ * @returns DiscordUserConfig
6346
+ * @throws ApiError
6347
+ */
6348
+ static aiBotV1BotsDiscordUserConfigPartialUpdate({
6349
+ id,
6350
+ org,
6351
+ requestBody
6352
+ }) {
6353
+ return request(OpenAPI, {
6354
+ method: 'PATCH',
6355
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6356
+ path: {
6357
+ 'id': id,
6358
+ 'org': org
6359
+ },
6360
+ body: requestBody,
6361
+ mediaType: 'application/json'
6362
+ });
6363
+ }
6364
+ /**
6365
+ * Setup discord user id linkage with discord bots
6366
+ * this will be used to authenticate the user when interracting with discord bots.
6367
+ * the user id can be copied from the discord app after tapping on the user profile.
6368
+ * @returns void
6369
+ * @throws ApiError
6370
+ */
6371
+ static aiBotV1BotsDiscordUserConfigDestroy({
6372
+ id,
6373
+ org
6374
+ }) {
6375
+ return request(OpenAPI, {
6376
+ method: 'DELETE',
6377
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6378
+ path: {
6379
+ 'id': id,
6380
+ 'org': org
6381
+ }
6382
+ });
6383
+ }
6384
+ /**
6385
+ * Setup slack username and domain linkage with slack bots
6386
+ * this will be used to authenticate the user when interracting with slack bots.
6387
+ * @returns SlackUserConfig
6388
+ * @throws ApiError
6389
+ */
6390
+ static aiBotV1BotsSlackUserConfigList({
6391
+ org
6392
+ }) {
6393
+ return request(OpenAPI, {
6394
+ method: 'GET',
6395
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6396
+ path: {
6397
+ 'org': org
6398
+ }
6399
+ });
6400
+ }
6401
+ /**
6402
+ * Setup slack username and domain linkage with slack bots
6403
+ * this will be used to authenticate the user when interracting with slack bots.
6404
+ * @returns SlackUserConfig
6405
+ * @throws ApiError
6406
+ */
6407
+ static aiBotV1BotsSlackUserConfigCreate({
6408
+ org,
6409
+ requestBody
6410
+ }) {
6411
+ return request(OpenAPI, {
6412
+ method: 'POST',
6413
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6414
+ path: {
6415
+ 'org': org
6416
+ },
6417
+ body: requestBody,
6418
+ mediaType: 'application/json'
6419
+ });
6420
+ }
6421
+ /**
6422
+ * Setup slack username and domain linkage with slack bots
6423
+ * this will be used to authenticate the user when interracting with slack bots.
6424
+ * @returns SlackUserConfig
6425
+ * @throws ApiError
6426
+ */
6427
+ static aiBotV1BotsSlackUserConfigRetrieve({
6428
+ id,
6429
+ org
6430
+ }) {
6431
+ return request(OpenAPI, {
6432
+ method: 'GET',
6433
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6434
+ path: {
6435
+ 'id': id,
6436
+ 'org': org
6437
+ }
6438
+ });
6439
+ }
6440
+ /**
6441
+ * Setup slack username and domain linkage with slack bots
6442
+ * this will be used to authenticate the user when interracting with slack bots.
6443
+ * @returns SlackUserConfig
6444
+ * @throws ApiError
6445
+ */
6446
+ static aiBotV1BotsSlackUserConfigUpdate({
6447
+ id,
6448
+ org,
6449
+ requestBody
6450
+ }) {
6451
+ return request(OpenAPI, {
6452
+ method: 'PUT',
6453
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6454
+ path: {
6455
+ 'id': id,
6456
+ 'org': org
6457
+ },
6458
+ body: requestBody,
6459
+ mediaType: 'application/json'
6460
+ });
6461
+ }
6462
+ /**
6463
+ * Setup slack username and domain linkage with slack bots
6464
+ * this will be used to authenticate the user when interracting with slack bots.
6465
+ * @returns SlackUserConfig
6466
+ * @throws ApiError
6467
+ */
6468
+ static aiBotV1BotsSlackUserConfigPartialUpdate({
6469
+ id,
6470
+ org,
6471
+ requestBody
6472
+ }) {
6473
+ return request(OpenAPI, {
6474
+ method: 'PATCH',
6475
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6476
+ path: {
6477
+ 'id': id,
6478
+ 'org': org
6479
+ },
6480
+ body: requestBody,
6481
+ mediaType: 'application/json'
6482
+ });
6483
+ }
6484
+ /**
6485
+ * Setup slack username and domain linkage with slack bots
6486
+ * this will be used to authenticate the user when interracting with slack bots.
6487
+ * @returns void
6488
+ * @throws ApiError
6489
+ */
6490
+ static aiBotV1BotsSlackUserConfigDestroy({
6491
+ id,
6492
+ org
6493
+ }) {
6494
+ return request(OpenAPI, {
6495
+ method: 'DELETE',
6496
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6497
+ path: {
6498
+ 'id': id,
6499
+ 'org': org
6500
+ }
6501
+ });
6502
+ }
6503
+ /**
6504
+ * Setup phone number linkage with whatsapp bots
6505
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6506
+ * @returns WhatsappUserConfig
6507
+ * @throws ApiError
6508
+ */
6509
+ static aiBotV1BotsWhatsappUserConfigList({
6510
+ org
6511
+ }) {
6512
+ return request(OpenAPI, {
6513
+ method: 'GET',
6514
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6515
+ path: {
6516
+ 'org': org
6517
+ }
6518
+ });
6519
+ }
6520
+ /**
6521
+ * Setup phone number linkage with whatsapp bots
6522
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6523
+ * @returns WhatsappUserConfig
6524
+ * @throws ApiError
6525
+ */
6526
+ static aiBotV1BotsWhatsappUserConfigCreate({
6527
+ org,
6528
+ requestBody
6529
+ }) {
6530
+ return request(OpenAPI, {
6531
+ method: 'POST',
6532
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6533
+ path: {
6534
+ 'org': org
6535
+ },
6536
+ body: requestBody,
6537
+ mediaType: 'application/json'
6538
+ });
6539
+ }
6540
+ /**
6541
+ * Setup phone number linkage with whatsapp bots
6542
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6543
+ * @returns WhatsappUserConfig
6544
+ * @throws ApiError
6545
+ */
6546
+ static aiBotV1BotsWhatsappUserConfigRetrieve({
6547
+ id,
6548
+ org
6549
+ }) {
6550
+ return request(OpenAPI, {
6551
+ method: 'GET',
6552
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6553
+ path: {
6554
+ 'id': id,
6555
+ 'org': org
6556
+ }
6557
+ });
6558
+ }
6559
+ /**
6560
+ * Setup phone number linkage with whatsapp bots
6561
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6562
+ * @returns WhatsappUserConfig
6563
+ * @throws ApiError
6564
+ */
6565
+ static aiBotV1BotsWhatsappUserConfigUpdate({
6566
+ id,
6567
+ org,
6568
+ requestBody
6569
+ }) {
6570
+ return request(OpenAPI, {
6571
+ method: 'PUT',
6572
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6573
+ path: {
6574
+ 'id': id,
6575
+ 'org': org
6576
+ },
6577
+ body: requestBody,
6578
+ mediaType: 'application/json'
6579
+ });
6580
+ }
6581
+ /**
6582
+ * Setup phone number linkage with whatsapp bots
6583
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6584
+ * @returns WhatsappUserConfig
6585
+ * @throws ApiError
6586
+ */
6587
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate({
6588
+ id,
6589
+ org,
6590
+ requestBody
6591
+ }) {
6592
+ return request(OpenAPI, {
6593
+ method: 'PATCH',
6594
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6595
+ path: {
6596
+ 'id': id,
6597
+ 'org': org
6598
+ },
6599
+ body: requestBody,
6600
+ mediaType: 'application/json'
6601
+ });
6602
+ }
6603
+ /**
6604
+ * Setup phone number linkage with whatsapp bots
6605
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6606
+ * @returns void
6607
+ * @throws ApiError
6608
+ */
6609
+ static aiBotV1BotsWhatsappUserConfigDestroy({
6610
+ id,
6611
+ org
6612
+ }) {
6613
+ return request(OpenAPI, {
6614
+ method: 'DELETE',
6615
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6616
+ path: {
6617
+ 'id': id,
6618
+ 'org': org
6619
+ }
6620
+ });
6621
+ }
6622
+ /**
6623
+ * Webhook endpoint to receive and process discord messages.
6624
+ * @returns DiscordWebhook
6625
+ * @throws ApiError
6626
+ */
6627
+ static aiBotV1BotsWebhooksDiscordCreate({
6628
+ name,
6629
+ org,
6630
+ requestBody
6631
+ }) {
6632
+ return request(OpenAPI, {
6633
+ method: 'POST',
6634
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
6635
+ path: {
6636
+ 'name': name,
6637
+ 'org': org
6638
+ },
6639
+ body: requestBody,
6640
+ mediaType: 'application/json'
6641
+ });
6642
+ }
6643
+ /**
6644
+ * @returns SlackWebhook
6645
+ * @throws ApiError
6646
+ */
6647
+ static aiBotV1BotsWebhooksSlackCreate({
6648
+ name,
6649
+ org,
6650
+ requestBody
6651
+ }) {
6652
+ return request(OpenAPI, {
6653
+ method: 'POST',
6654
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
6655
+ path: {
6656
+ 'name': name,
6657
+ 'org': org
6658
+ },
6659
+ body: requestBody,
6660
+ mediaType: 'application/json'
6661
+ });
6662
+ }
6663
+ /**
6664
+ * @returns TeamsWebhook
6665
+ * @throws ApiError
6666
+ */
6667
+ static aiBotV1BotsWebhooksTeamsCreate({
6668
+ name,
6669
+ org,
6670
+ requestBody
6671
+ }) {
6672
+ return request(OpenAPI, {
6673
+ method: 'POST',
6674
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
6675
+ path: {
6676
+ 'name': name,
6677
+ 'org': org
6678
+ },
6679
+ body: requestBody,
6680
+ mediaType: 'application/json'
6681
+ });
6682
+ }
6683
+ /**
6684
+ * Webhook endpoint to receive and process discord messages.
6685
+ * @returns WebexWebhook
6686
+ * @throws ApiError
6687
+ */
6688
+ static aiBotV1BotsWebhooksWebexCreate({
6689
+ name,
6690
+ org,
6691
+ requestBody
6692
+ }) {
6693
+ return request(OpenAPI, {
6694
+ method: 'POST',
6695
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
6696
+ path: {
6697
+ 'name': name,
6698
+ 'org': org
6699
+ },
6700
+ body: requestBody,
6701
+ mediaType: 'application/json'
6702
+ });
6703
+ }
6704
+ /**
6705
+ * Respond to whatsapp's webhook challenge.
6706
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
6707
+ * @returns WhatAppWebHook
6708
+ * @throws ApiError
6709
+ */
6710
+ static aiBotV1BotsWebhooksWhatsappRetrieve({
6711
+ name,
6712
+ org
6713
+ }) {
6714
+ return request(OpenAPI, {
6715
+ method: 'GET',
6716
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6717
+ path: {
6718
+ 'name': name,
6719
+ 'org': org
6720
+ }
6721
+ });
6722
+ }
6723
+ /**
6724
+ * Accept and process webhook events from whatsapp.
6725
+ * @returns WhatAppWebHook
6726
+ * @throws ApiError
6727
+ */
6728
+ static aiBotV1BotsWebhooksWhatsappCreate({
6729
+ name,
6730
+ org,
6731
+ requestBody
6732
+ }) {
6733
+ return request(OpenAPI, {
6734
+ method: 'POST',
6735
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6736
+ path: {
6737
+ 'name': name,
6738
+ 'org': org
6739
+ },
6740
+ body: requestBody,
6741
+ mediaType: 'application/json'
6742
+ });
6743
+ }
6744
+ }
6745
+
6746
+ class AiFinetuningService {
6747
+ /**
6748
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6749
+ * @returns PaginatedDataSetList
6750
+ * @throws ApiError
6751
+ */
6752
+ static aiFinetuningV1OrgUserDatasetsList({
6753
+ org,
6754
+ username,
6755
+ dateCreated,
6756
+ numDataPoints,
6757
+ ordering,
6758
+ page,
6759
+ pageSize,
6760
+ retryAttempts,
6761
+ search,
6762
+ status
6763
+ }) {
6764
+ return request(OpenAPI, {
6765
+ method: 'GET',
6766
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6767
+ path: {
6768
+ 'org': org,
6769
+ 'username': username
6770
+ },
6771
+ query: {
6772
+ 'date_created': dateCreated,
6773
+ 'num_data_points': numDataPoints,
6774
+ 'ordering': ordering,
6775
+ 'page': page,
6776
+ 'page_size': pageSize,
6777
+ 'retry_attempts': retryAttempts,
6778
+ 'search': search,
6779
+ 'status': status
6780
+ }
6781
+ });
6782
+ }
6783
+ /**
6784
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6785
+ * @returns DataSetCreate
6786
+ * @throws ApiError
6787
+ */
6788
+ static aiFinetuningV1OrgUserDatasetsCreate({
6789
+ org,
6790
+ username,
6791
+ requestBody
6792
+ }) {
6793
+ return request(OpenAPI, {
6794
+ method: 'POST',
6795
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6796
+ path: {
6797
+ 'org': org,
6798
+ 'username': username
6799
+ },
6800
+ body: requestBody,
6801
+ mediaType: 'application/json'
6802
+ });
6803
+ }
6804
+ /**
6805
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6806
+ * @returns DataSet
6807
+ * @throws ApiError
6808
+ */
6809
+ static aiFinetuningV1OrgUserDatasetsRetrieve({
6810
+ id,
6811
+ org,
6812
+ username
6813
+ }) {
6814
+ return request(OpenAPI, {
6815
+ method: 'GET',
6816
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6817
+ path: {
6818
+ 'id': id,
6819
+ 'org': org,
6820
+ 'username': username
6821
+ }
6822
+ });
6823
+ }
6824
+ /**
6825
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6826
+ * @returns DataSet
6827
+ * @throws ApiError
6828
+ */
6829
+ static aiFinetuningV1OrgUserDatasetsUpdate({
6830
+ id,
6831
+ org,
6832
+ username,
6833
+ requestBody
6834
+ }) {
6835
+ return request(OpenAPI, {
6836
+ method: 'PUT',
6837
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6838
+ path: {
6839
+ 'id': id,
6840
+ 'org': org,
6841
+ 'username': username
6842
+ },
6843
+ body: requestBody,
6844
+ mediaType: 'application/json'
6845
+ });
6846
+ }
6847
+ /**
6848
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6849
+ * @returns DataSet
6850
+ * @throws ApiError
6851
+ */
6852
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate({
6853
+ id,
6854
+ org,
6855
+ username,
6856
+ requestBody
6857
+ }) {
6858
+ return request(OpenAPI, {
6859
+ method: 'PATCH',
6860
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6861
+ path: {
6862
+ 'id': id,
6863
+ 'org': org,
6864
+ 'username': username
6865
+ },
6866
+ body: requestBody,
6867
+ mediaType: 'application/json'
6868
+ });
6869
+ }
6870
+ /**
6871
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6872
+ * @returns void
6873
+ * @throws ApiError
6874
+ */
6875
+ static aiFinetuningV1OrgUserDatasetsDestroy({
6876
+ id,
6877
+ org,
6878
+ username
6879
+ }) {
6880
+ return request(OpenAPI, {
6881
+ method: 'DELETE',
6882
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6883
+ path: {
6884
+ 'id': id,
6885
+ 'org': org,
6886
+ 'username': username
6887
+ }
6888
+ });
6889
+ }
6890
+ /**
6891
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6892
+ * @returns PaginatedTrainingList
6893
+ * @throws ApiError
6894
+ */
6895
+ static aiFinetuningV1OrgUserTrainingsList({
6896
+ org,
6897
+ username,
6898
+ baseModelName,
6899
+ dataset,
6900
+ dateCreated,
6901
+ fineTunedModel,
6902
+ lastModified,
6903
+ ordering,
6904
+ page,
6905
+ pageSize,
6906
+ preprocessDataset,
6907
+ provider,
6908
+ search,
6909
+ status
6910
+ }) {
6911
+ return request(OpenAPI, {
6912
+ method: 'GET',
6913
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
6914
+ path: {
6915
+ 'org': org,
6916
+ 'username': username
6917
+ },
6918
+ query: {
6919
+ 'base_model_name': baseModelName,
6920
+ 'dataset': dataset,
6921
+ 'date_created': dateCreated,
6922
+ 'fine_tuned_model': fineTunedModel,
6923
+ 'last_modified': lastModified,
6924
+ 'ordering': ordering,
6925
+ 'page': page,
6926
+ 'page_size': pageSize,
6927
+ 'preprocess_dataset': preprocessDataset,
6928
+ 'provider': provider,
6929
+ 'search': search,
6930
+ 'status': status
6931
+ }
6932
+ });
6933
+ }
6934
+ /**
6935
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6936
+ * @returns TrainingCreate
6937
+ * @throws ApiError
6938
+ */
6939
+ static aiFinetuningV1OrgUserTrainingsCreate({
6940
+ org,
6941
+ username,
6942
+ requestBody
6943
+ }) {
6944
+ return request(OpenAPI, {
6945
+ method: 'POST',
6946
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
6947
+ path: {
6948
+ 'org': org,
6949
+ 'username': username
6950
+ },
6951
+ body: requestBody,
6952
+ mediaType: 'application/json'
6953
+ });
6954
+ }
6955
+ /**
6956
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6957
+ * @returns Training
6958
+ * @throws ApiError
6959
+ */
6960
+ static aiFinetuningV1OrgUserTrainingsRetrieve({
6961
+ id,
6962
+ org,
6963
+ username
6964
+ }) {
6965
+ return request(OpenAPI, {
6966
+ method: 'GET',
6967
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
6968
+ path: {
6969
+ 'id': id,
6970
+ 'org': org,
6971
+ 'username': username
6972
+ }
6973
+ });
6974
+ }
6975
+ /**
6976
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6977
+ * @returns TrainingCreate
6978
+ * @throws ApiError
6979
+ */
6980
+ static aiFinetuningV1OrgUserTrainingsUpdate({
6981
+ id,
6982
+ org,
6983
+ username,
6984
+ requestBody
6985
+ }) {
6986
+ return request(OpenAPI, {
6987
+ method: 'PUT',
6988
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
6989
+ path: {
6990
+ 'id': id,
6991
+ 'org': org,
6992
+ 'username': username
6993
+ },
6994
+ body: requestBody,
6995
+ mediaType: 'application/json'
6996
+ });
6997
+ }
6998
+ /**
6999
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7000
+ * @returns TrainingCreate
7001
+ * @throws ApiError
7002
+ */
7003
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate({
7004
+ id,
7005
+ org,
7006
+ username,
7007
+ requestBody
7008
+ }) {
7009
+ return request(OpenAPI, {
7010
+ method: 'PATCH',
7011
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7012
+ path: {
7013
+ 'id': id,
7014
+ 'org': org,
7015
+ 'username': username
7016
+ },
7017
+ body: requestBody,
7018
+ mediaType: 'application/json'
7019
+ });
7020
+ }
7021
+ /**
7022
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7023
+ * @returns void
7024
+ * @throws ApiError
7025
+ */
7026
+ static aiFinetuningV1OrgUserTrainingsDestroy({
7027
+ id,
7028
+ org,
7029
+ username
7030
+ }) {
7031
+ return request(OpenAPI, {
7032
+ method: 'DELETE',
7033
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7034
+ path: {
7035
+ 'id': id,
7036
+ 'org': org,
7037
+ 'username': username
7038
+ }
7039
+ });
7040
+ }
7041
+ /**
7042
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
7043
+ * Filtering and pagination is allowed.
7044
+ *
7045
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
7046
+ * training list endpoint.
7047
+ * Returns:
7048
+ * Response: A paginated response containing the serialized fine-tuned models.
7049
+ * @returns Training
7050
+ * @throws ApiError
7051
+ */
7052
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
7053
+ org,
7054
+ username
7055
+ }) {
7056
+ return request(OpenAPI, {
7057
+ method: 'GET',
7058
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
7059
+ path: {
7060
+ 'org': org,
7061
+ 'username': username
7062
+ }
7063
+ });
7064
+ }
7065
+ }
7066
+
5676
7067
  class AiIndexService {
5677
7068
  /**
5678
7069
  * Retrieve details of a specific document embedding.
@@ -33492,6 +34883,8 @@ class UserGroupsService {
33492
34883
 
33493
34884
  exports.AiAccountService = AiAccountService;
33494
34885
  exports.AiAnalyticsService = AiAnalyticsService;
34886
+ exports.AiBotService = AiBotService;
34887
+ exports.AiFinetuningService = AiFinetuningService;
33495
34888
  exports.AiIndexService = AiIndexService;
33496
34889
  exports.AiMarketingService = AiMarketingService;
33497
34890
  exports.AiMediaService = AiMediaService;