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