@iblai/iblai-api 3.55.0-ai → 3.55.0-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.55.0-ai',
113
+ VERSION: '3.55.0-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 */
@@ -5855,6 +5905,1347 @@ class AiAnalyticsService {
5855
5905
  }
5856
5906
  }
5857
5907
 
5908
+ class AiBotService {
5909
+ /**
5910
+ * Create modify and update bot information for a specific tenant.
5911
+ * @returns Bot
5912
+ * @throws ApiError
5913
+ */
5914
+ static aiBotV1BotsBotList({
5915
+ org
5916
+ }) {
5917
+ return request(OpenAPI, {
5918
+ method: 'GET',
5919
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
5920
+ path: {
5921
+ 'org': org
5922
+ }
5923
+ });
5924
+ }
5925
+ /**
5926
+ * Create modify and update bot information for a specific tenant.
5927
+ * @returns BotCreate
5928
+ * @throws ApiError
5929
+ */
5930
+ static aiBotV1BotsBotCreate({
5931
+ org,
5932
+ requestBody
5933
+ }) {
5934
+ return request(OpenAPI, {
5935
+ method: 'POST',
5936
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
5937
+ path: {
5938
+ 'org': org
5939
+ },
5940
+ body: requestBody,
5941
+ mediaType: 'application/json'
5942
+ });
5943
+ }
5944
+ /**
5945
+ * Create slash commands for a specific bot
5946
+ * eg. /iblai-baseline
5947
+ * @returns BotCommand
5948
+ * @throws ApiError
5949
+ */
5950
+ static aiBotV1BotsBotCommandsList({
5951
+ org
5952
+ }) {
5953
+ return request(OpenAPI, {
5954
+ method: 'GET',
5955
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5956
+ path: {
5957
+ 'org': org
5958
+ }
5959
+ });
5960
+ }
5961
+ /**
5962
+ * Create slash commands for a specific bot
5963
+ * eg. /iblai-baseline
5964
+ * @returns BotCommand
5965
+ * @throws ApiError
5966
+ */
5967
+ static aiBotV1BotsBotCommandsCreate({
5968
+ org,
5969
+ requestBody
5970
+ }) {
5971
+ return request(OpenAPI, {
5972
+ method: 'POST',
5973
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5974
+ path: {
5975
+ 'org': org
5976
+ },
5977
+ body: requestBody,
5978
+ mediaType: 'application/json'
5979
+ });
5980
+ }
5981
+ /**
5982
+ * Create slash commands for a specific bot
5983
+ * eg. /iblai-baseline
5984
+ * @returns BotCommand
5985
+ * @throws ApiError
5986
+ */
5987
+ static aiBotV1BotsBotCommandsRetrieve({
5988
+ id,
5989
+ org
5990
+ }) {
5991
+ return request(OpenAPI, {
5992
+ method: 'GET',
5993
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5994
+ path: {
5995
+ 'id': id,
5996
+ 'org': org
5997
+ }
5998
+ });
5999
+ }
6000
+ /**
6001
+ * Create slash commands for a specific bot
6002
+ * eg. /iblai-baseline
6003
+ * @returns BotCommand
6004
+ * @throws ApiError
6005
+ */
6006
+ static aiBotV1BotsBotCommandsUpdate({
6007
+ id,
6008
+ org,
6009
+ requestBody
6010
+ }) {
6011
+ return request(OpenAPI, {
6012
+ method: 'PUT',
6013
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
6014
+ path: {
6015
+ 'id': id,
6016
+ 'org': org
6017
+ },
6018
+ body: requestBody,
6019
+ mediaType: 'application/json'
6020
+ });
6021
+ }
6022
+ /**
6023
+ * Create slash commands for a specific bot
6024
+ * eg. /iblai-baseline
6025
+ * @returns BotCommand
6026
+ * @throws ApiError
6027
+ */
6028
+ static aiBotV1BotsBotCommandsPartialUpdate({
6029
+ id,
6030
+ org,
6031
+ requestBody
6032
+ }) {
6033
+ return request(OpenAPI, {
6034
+ method: 'PATCH',
6035
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
6036
+ path: {
6037
+ 'id': id,
6038
+ 'org': org
6039
+ },
6040
+ body: requestBody,
6041
+ mediaType: 'application/json'
6042
+ });
6043
+ }
6044
+ /**
6045
+ * Create slash commands for a specific bot
6046
+ * eg. /iblai-baseline
6047
+ * @returns void
6048
+ * @throws ApiError
6049
+ */
6050
+ static aiBotV1BotsBotCommandsDestroy({
6051
+ id,
6052
+ org
6053
+ }) {
6054
+ return request(OpenAPI, {
6055
+ method: 'DELETE',
6056
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
6057
+ path: {
6058
+ 'id': id,
6059
+ 'org': org
6060
+ }
6061
+ });
6062
+ }
6063
+ /**
6064
+ * Create modify and update bot information for a specific tenant.
6065
+ * @returns Bot
6066
+ * @throws ApiError
6067
+ */
6068
+ static aiBotV1BotsBotRetrieve({
6069
+ id,
6070
+ org
6071
+ }) {
6072
+ return request(OpenAPI, {
6073
+ method: 'GET',
6074
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6075
+ path: {
6076
+ 'id': id,
6077
+ 'org': org
6078
+ }
6079
+ });
6080
+ }
6081
+ /**
6082
+ * Create modify and update bot information for a specific tenant.
6083
+ * @returns BotCreate
6084
+ * @throws ApiError
6085
+ */
6086
+ static aiBotV1BotsBotUpdate({
6087
+ id,
6088
+ org,
6089
+ requestBody
6090
+ }) {
6091
+ return request(OpenAPI, {
6092
+ method: 'PUT',
6093
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6094
+ path: {
6095
+ 'id': id,
6096
+ 'org': org
6097
+ },
6098
+ body: requestBody,
6099
+ mediaType: 'application/json'
6100
+ });
6101
+ }
6102
+ /**
6103
+ * Create modify and update bot information for a specific tenant.
6104
+ * @returns BotCreate
6105
+ * @throws ApiError
6106
+ */
6107
+ static aiBotV1BotsBotPartialUpdate({
6108
+ id,
6109
+ org,
6110
+ requestBody
6111
+ }) {
6112
+ return request(OpenAPI, {
6113
+ method: 'PATCH',
6114
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6115
+ path: {
6116
+ 'id': id,
6117
+ 'org': org
6118
+ },
6119
+ body: requestBody,
6120
+ mediaType: 'application/json'
6121
+ });
6122
+ }
6123
+ /**
6124
+ * Create modify and update bot information for a specific tenant.
6125
+ * @returns void
6126
+ * @throws ApiError
6127
+ */
6128
+ static aiBotV1BotsBotDestroy({
6129
+ id,
6130
+ org
6131
+ }) {
6132
+ return request(OpenAPI, {
6133
+ method: 'DELETE',
6134
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6135
+ path: {
6136
+ 'id': id,
6137
+ 'org': org
6138
+ }
6139
+ });
6140
+ }
6141
+ /**
6142
+ * Create modify and update bot information for a specific tenant.
6143
+ * @returns DiscordConfig
6144
+ * @throws ApiError
6145
+ */
6146
+ static aiBotV1BotsBotConfigDiscordRetrieve({
6147
+ id,
6148
+ org
6149
+ }) {
6150
+ return request(OpenAPI, {
6151
+ method: 'GET',
6152
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
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 DiscordConfig
6162
+ * @throws ApiError
6163
+ */
6164
+ static aiBotV1BotsBotConfigDiscordPartialUpdate({
6165
+ id,
6166
+ org,
6167
+ requestBody
6168
+ }) {
6169
+ return request(OpenAPI, {
6170
+ method: 'PATCH',
6171
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
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 SlackConfig
6183
+ * @throws ApiError
6184
+ */
6185
+ static aiBotV1BotsBotConfigSlackRetrieve({
6186
+ id,
6187
+ org
6188
+ }) {
6189
+ return request(OpenAPI, {
6190
+ method: 'GET',
6191
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
6192
+ path: {
6193
+ 'id': id,
6194
+ 'org': org
6195
+ }
6196
+ });
6197
+ }
6198
+ /**
6199
+ * Create modify and update bot information for a specific tenant.
6200
+ * @returns SlackConfig
6201
+ * @throws ApiError
6202
+ */
6203
+ static aiBotV1BotsBotConfigSlackUpdateCreate({
6204
+ id,
6205
+ org,
6206
+ requestBody
6207
+ }) {
6208
+ return request(OpenAPI, {
6209
+ method: 'POST',
6210
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6211
+ path: {
6212
+ 'id': id,
6213
+ 'org': org
6214
+ },
6215
+ body: requestBody,
6216
+ mediaType: 'application/json'
6217
+ });
6218
+ }
6219
+ /**
6220
+ * Create modify and update bot information for a specific tenant.
6221
+ * @returns SlackConfig
6222
+ * @throws ApiError
6223
+ */
6224
+ static aiBotV1BotsBotConfigSlackUpdateUpdate({
6225
+ id,
6226
+ org,
6227
+ requestBody
6228
+ }) {
6229
+ return request(OpenAPI, {
6230
+ method: 'PUT',
6231
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6232
+ path: {
6233
+ 'id': id,
6234
+ 'org': org
6235
+ },
6236
+ body: requestBody,
6237
+ mediaType: 'application/json'
6238
+ });
6239
+ }
6240
+ /**
6241
+ * Create modify and update bot information for a specific tenant.
6242
+ * @returns SlackConfig
6243
+ * @throws ApiError
6244
+ */
6245
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
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/slack/update/',
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 TeamsConfig
6264
+ * @throws ApiError
6265
+ */
6266
+ static aiBotV1BotsBotConfigTeamsRetrieve({
6267
+ id,
6268
+ org
6269
+ }) {
6270
+ return request(OpenAPI, {
6271
+ method: 'GET',
6272
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
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 TeamsConfig
6282
+ * @throws ApiError
6283
+ */
6284
+ static aiBotV1BotsBotConfigTeamsUpdateCreate({
6285
+ id,
6286
+ org,
6287
+ requestBody
6288
+ }) {
6289
+ return request(OpenAPI, {
6290
+ method: 'POST',
6291
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
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 TeamsConfig
6303
+ * @throws ApiError
6304
+ */
6305
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate({
6306
+ id,
6307
+ org,
6308
+ requestBody
6309
+ }) {
6310
+ return request(OpenAPI, {
6311
+ method: 'PUT',
6312
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6313
+ path: {
6314
+ 'id': id,
6315
+ 'org': org
6316
+ },
6317
+ body: requestBody,
6318
+ mediaType: 'application/json'
6319
+ });
6320
+ }
6321
+ /**
6322
+ * Create modify and update bot information for a specific tenant.
6323
+ * @returns TeamsConfig
6324
+ * @throws ApiError
6325
+ */
6326
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
6327
+ id,
6328
+ org,
6329
+ requestBody
6330
+ }) {
6331
+ return request(OpenAPI, {
6332
+ method: 'PATCH',
6333
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6334
+ path: {
6335
+ 'id': id,
6336
+ 'org': org
6337
+ },
6338
+ body: requestBody,
6339
+ mediaType: 'application/json'
6340
+ });
6341
+ }
6342
+ /**
6343
+ * Create modify and update bot information for a specific tenant.
6344
+ * @returns WebexConfig
6345
+ * @throws ApiError
6346
+ */
6347
+ static aiBotV1BotsBotConfigWebexRetrieve({
6348
+ id,
6349
+ org
6350
+ }) {
6351
+ return request(OpenAPI, {
6352
+ method: 'GET',
6353
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
6354
+ path: {
6355
+ 'id': id,
6356
+ 'org': org
6357
+ }
6358
+ });
6359
+ }
6360
+ /**
6361
+ * Create modify and update bot information for a specific tenant.
6362
+ * @returns WebexConfig
6363
+ * @throws ApiError
6364
+ */
6365
+ static aiBotV1BotsBotConfigWebexPartialUpdate({
6366
+ id,
6367
+ org,
6368
+ requestBody
6369
+ }) {
6370
+ return request(OpenAPI, {
6371
+ method: 'PATCH',
6372
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
6373
+ path: {
6374
+ 'id': id,
6375
+ 'org': org
6376
+ },
6377
+ body: requestBody,
6378
+ mediaType: 'application/json'
6379
+ });
6380
+ }
6381
+ /**
6382
+ * Create modify and update bot information for a specific tenant.
6383
+ * @returns WhatsappConfig
6384
+ * @throws ApiError
6385
+ */
6386
+ static aiBotV1BotsBotConfigWhatsappRetrieve({
6387
+ id,
6388
+ org
6389
+ }) {
6390
+ return request(OpenAPI, {
6391
+ method: 'GET',
6392
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
6393
+ path: {
6394
+ 'id': id,
6395
+ 'org': org
6396
+ }
6397
+ });
6398
+ }
6399
+ /**
6400
+ * Create modify and update bot information for a specific tenant.
6401
+ * @returns WhatsappConfig
6402
+ * @throws ApiError
6403
+ */
6404
+ static aiBotV1BotsBotWhatsappConfigUpdate({
6405
+ id,
6406
+ org,
6407
+ requestBody
6408
+ }) {
6409
+ return request(OpenAPI, {
6410
+ method: 'PUT',
6411
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
6412
+ path: {
6413
+ 'id': id,
6414
+ 'org': org
6415
+ },
6416
+ body: requestBody,
6417
+ mediaType: 'application/json'
6418
+ });
6419
+ }
6420
+ /**
6421
+ * Create modify and update bot information for a specific tenant.
6422
+ * @returns WhatsappConfig
6423
+ * @throws ApiError
6424
+ */
6425
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate({
6426
+ id,
6427
+ org,
6428
+ requestBody
6429
+ }) {
6430
+ return request(OpenAPI, {
6431
+ method: 'PATCH',
6432
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
6433
+ path: {
6434
+ 'id': id,
6435
+ 'org': org
6436
+ },
6437
+ body: requestBody,
6438
+ mediaType: 'application/json'
6439
+ });
6440
+ }
6441
+ /**
6442
+ * Setup discord user id linkage with discord bots
6443
+ * this will be used to authenticate the user when interracting with discord bots.
6444
+ * the user id can be copied from the discord app after tapping on the user profile.
6445
+ * @returns DiscordUserConfig
6446
+ * @throws ApiError
6447
+ */
6448
+ static aiBotV1BotsDiscordUserConfigList({
6449
+ org
6450
+ }) {
6451
+ return request(OpenAPI, {
6452
+ method: 'GET',
6453
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6454
+ path: {
6455
+ 'org': org
6456
+ }
6457
+ });
6458
+ }
6459
+ /**
6460
+ * Setup discord user id linkage with discord bots
6461
+ * this will be used to authenticate the user when interracting with discord bots.
6462
+ * the user id can be copied from the discord app after tapping on the user profile.
6463
+ * @returns DiscordUserConfig
6464
+ * @throws ApiError
6465
+ */
6466
+ static aiBotV1BotsDiscordUserConfigCreate({
6467
+ org,
6468
+ requestBody
6469
+ }) {
6470
+ return request(OpenAPI, {
6471
+ method: 'POST',
6472
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6473
+ path: {
6474
+ 'org': org
6475
+ },
6476
+ body: requestBody,
6477
+ mediaType: 'application/json'
6478
+ });
6479
+ }
6480
+ /**
6481
+ * Setup discord user id linkage with discord bots
6482
+ * this will be used to authenticate the user when interracting with discord bots.
6483
+ * the user id can be copied from the discord app after tapping on the user profile.
6484
+ * @returns DiscordUserConfig
6485
+ * @throws ApiError
6486
+ */
6487
+ static aiBotV1BotsDiscordUserConfigRetrieve({
6488
+ id,
6489
+ org
6490
+ }) {
6491
+ return request(OpenAPI, {
6492
+ method: 'GET',
6493
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6494
+ path: {
6495
+ 'id': id,
6496
+ 'org': org
6497
+ }
6498
+ });
6499
+ }
6500
+ /**
6501
+ * Setup discord user id linkage with discord bots
6502
+ * this will be used to authenticate the user when interracting with discord bots.
6503
+ * the user id can be copied from the discord app after tapping on the user profile.
6504
+ * @returns DiscordUserConfig
6505
+ * @throws ApiError
6506
+ */
6507
+ static aiBotV1BotsDiscordUserConfigUpdate({
6508
+ id,
6509
+ org,
6510
+ requestBody
6511
+ }) {
6512
+ return request(OpenAPI, {
6513
+ method: 'PUT',
6514
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6515
+ path: {
6516
+ 'id': id,
6517
+ 'org': org
6518
+ },
6519
+ body: requestBody,
6520
+ mediaType: 'application/json'
6521
+ });
6522
+ }
6523
+ /**
6524
+ * Setup discord user id linkage with discord bots
6525
+ * this will be used to authenticate the user when interracting with discord bots.
6526
+ * the user id can be copied from the discord app after tapping on the user profile.
6527
+ * @returns DiscordUserConfig
6528
+ * @throws ApiError
6529
+ */
6530
+ static aiBotV1BotsDiscordUserConfigPartialUpdate({
6531
+ id,
6532
+ org,
6533
+ requestBody
6534
+ }) {
6535
+ return request(OpenAPI, {
6536
+ method: 'PATCH',
6537
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6538
+ path: {
6539
+ 'id': id,
6540
+ 'org': org
6541
+ },
6542
+ body: requestBody,
6543
+ mediaType: 'application/json'
6544
+ });
6545
+ }
6546
+ /**
6547
+ * Setup discord user id linkage with discord bots
6548
+ * this will be used to authenticate the user when interracting with discord bots.
6549
+ * the user id can be copied from the discord app after tapping on the user profile.
6550
+ * @returns void
6551
+ * @throws ApiError
6552
+ */
6553
+ static aiBotV1BotsDiscordUserConfigDestroy({
6554
+ id,
6555
+ org
6556
+ }) {
6557
+ return request(OpenAPI, {
6558
+ method: 'DELETE',
6559
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6560
+ path: {
6561
+ 'id': id,
6562
+ 'org': org
6563
+ }
6564
+ });
6565
+ }
6566
+ /**
6567
+ * Setup slack username and domain linkage with slack bots
6568
+ * this will be used to authenticate the user when interracting with slack bots.
6569
+ * @returns SlackUserConfig
6570
+ * @throws ApiError
6571
+ */
6572
+ static aiBotV1BotsSlackUserConfigList({
6573
+ org
6574
+ }) {
6575
+ return request(OpenAPI, {
6576
+ method: 'GET',
6577
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6578
+ path: {
6579
+ 'org': org
6580
+ }
6581
+ });
6582
+ }
6583
+ /**
6584
+ * Setup slack username and domain linkage with slack bots
6585
+ * this will be used to authenticate the user when interracting with slack bots.
6586
+ * @returns SlackUserConfig
6587
+ * @throws ApiError
6588
+ */
6589
+ static aiBotV1BotsSlackUserConfigCreate({
6590
+ org,
6591
+ requestBody
6592
+ }) {
6593
+ return request(OpenAPI, {
6594
+ method: 'POST',
6595
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6596
+ path: {
6597
+ 'org': org
6598
+ },
6599
+ body: requestBody,
6600
+ mediaType: 'application/json'
6601
+ });
6602
+ }
6603
+ /**
6604
+ * Setup slack username and domain linkage with slack bots
6605
+ * this will be used to authenticate the user when interracting with slack bots.
6606
+ * @returns SlackUserConfig
6607
+ * @throws ApiError
6608
+ */
6609
+ static aiBotV1BotsSlackUserConfigRetrieve({
6610
+ id,
6611
+ org
6612
+ }) {
6613
+ return request(OpenAPI, {
6614
+ method: 'GET',
6615
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6616
+ path: {
6617
+ 'id': id,
6618
+ 'org': org
6619
+ }
6620
+ });
6621
+ }
6622
+ /**
6623
+ * Setup slack username and domain linkage with slack bots
6624
+ * this will be used to authenticate the user when interracting with slack bots.
6625
+ * @returns SlackUserConfig
6626
+ * @throws ApiError
6627
+ */
6628
+ static aiBotV1BotsSlackUserConfigUpdate({
6629
+ id,
6630
+ org,
6631
+ requestBody
6632
+ }) {
6633
+ return request(OpenAPI, {
6634
+ method: 'PUT',
6635
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6636
+ path: {
6637
+ 'id': id,
6638
+ 'org': org
6639
+ },
6640
+ body: requestBody,
6641
+ mediaType: 'application/json'
6642
+ });
6643
+ }
6644
+ /**
6645
+ * Setup slack username and domain linkage with slack bots
6646
+ * this will be used to authenticate the user when interracting with slack bots.
6647
+ * @returns SlackUserConfig
6648
+ * @throws ApiError
6649
+ */
6650
+ static aiBotV1BotsSlackUserConfigPartialUpdate({
6651
+ id,
6652
+ org,
6653
+ requestBody
6654
+ }) {
6655
+ return request(OpenAPI, {
6656
+ method: 'PATCH',
6657
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6658
+ path: {
6659
+ 'id': id,
6660
+ 'org': org
6661
+ },
6662
+ body: requestBody,
6663
+ mediaType: 'application/json'
6664
+ });
6665
+ }
6666
+ /**
6667
+ * Setup slack username and domain linkage with slack bots
6668
+ * this will be used to authenticate the user when interracting with slack bots.
6669
+ * @returns void
6670
+ * @throws ApiError
6671
+ */
6672
+ static aiBotV1BotsSlackUserConfigDestroy({
6673
+ id,
6674
+ org
6675
+ }) {
6676
+ return request(OpenAPI, {
6677
+ method: 'DELETE',
6678
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6679
+ path: {
6680
+ 'id': id,
6681
+ 'org': org
6682
+ }
6683
+ });
6684
+ }
6685
+ /**
6686
+ * Setup phone number linkage with whatsapp bots
6687
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6688
+ * @returns WhatsappUserConfig
6689
+ * @throws ApiError
6690
+ */
6691
+ static aiBotV1BotsWhatsappUserConfigList({
6692
+ org
6693
+ }) {
6694
+ return request(OpenAPI, {
6695
+ method: 'GET',
6696
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6697
+ path: {
6698
+ 'org': org
6699
+ }
6700
+ });
6701
+ }
6702
+ /**
6703
+ * Setup phone number linkage with whatsapp bots
6704
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6705
+ * @returns WhatsappUserConfig
6706
+ * @throws ApiError
6707
+ */
6708
+ static aiBotV1BotsWhatsappUserConfigCreate({
6709
+ org,
6710
+ requestBody
6711
+ }) {
6712
+ return request(OpenAPI, {
6713
+ method: 'POST',
6714
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6715
+ path: {
6716
+ 'org': org
6717
+ },
6718
+ body: requestBody,
6719
+ mediaType: 'application/json'
6720
+ });
6721
+ }
6722
+ /**
6723
+ * Setup phone number linkage with whatsapp bots
6724
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6725
+ * @returns WhatsappUserConfig
6726
+ * @throws ApiError
6727
+ */
6728
+ static aiBotV1BotsWhatsappUserConfigRetrieve({
6729
+ id,
6730
+ org
6731
+ }) {
6732
+ return request(OpenAPI, {
6733
+ method: 'GET',
6734
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6735
+ path: {
6736
+ 'id': id,
6737
+ 'org': org
6738
+ }
6739
+ });
6740
+ }
6741
+ /**
6742
+ * Setup phone number linkage with whatsapp bots
6743
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6744
+ * @returns WhatsappUserConfig
6745
+ * @throws ApiError
6746
+ */
6747
+ static aiBotV1BotsWhatsappUserConfigUpdate({
6748
+ id,
6749
+ org,
6750
+ requestBody
6751
+ }) {
6752
+ return request(OpenAPI, {
6753
+ method: 'PUT',
6754
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6755
+ path: {
6756
+ 'id': id,
6757
+ 'org': org
6758
+ },
6759
+ body: requestBody,
6760
+ mediaType: 'application/json'
6761
+ });
6762
+ }
6763
+ /**
6764
+ * Setup phone number linkage with whatsapp bots
6765
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6766
+ * @returns WhatsappUserConfig
6767
+ * @throws ApiError
6768
+ */
6769
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate({
6770
+ id,
6771
+ org,
6772
+ requestBody
6773
+ }) {
6774
+ return request(OpenAPI, {
6775
+ method: 'PATCH',
6776
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6777
+ path: {
6778
+ 'id': id,
6779
+ 'org': org
6780
+ },
6781
+ body: requestBody,
6782
+ mediaType: 'application/json'
6783
+ });
6784
+ }
6785
+ /**
6786
+ * Setup phone number linkage with whatsapp bots
6787
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6788
+ * @returns void
6789
+ * @throws ApiError
6790
+ */
6791
+ static aiBotV1BotsWhatsappUserConfigDestroy({
6792
+ id,
6793
+ org
6794
+ }) {
6795
+ return request(OpenAPI, {
6796
+ method: 'DELETE',
6797
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6798
+ path: {
6799
+ 'id': id,
6800
+ 'org': org
6801
+ }
6802
+ });
6803
+ }
6804
+ /**
6805
+ * Webhook endpoint to receive and process discord messages.
6806
+ * @returns DiscordWebhook
6807
+ * @throws ApiError
6808
+ */
6809
+ static aiBotV1BotsWebhooksDiscordCreate({
6810
+ name,
6811
+ org,
6812
+ requestBody
6813
+ }) {
6814
+ return request(OpenAPI, {
6815
+ method: 'POST',
6816
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
6817
+ path: {
6818
+ 'name': name,
6819
+ 'org': org
6820
+ },
6821
+ body: requestBody,
6822
+ mediaType: 'application/json'
6823
+ });
6824
+ }
6825
+ /**
6826
+ * @returns SlackWebhook
6827
+ * @throws ApiError
6828
+ */
6829
+ static aiBotV1BotsWebhooksSlackCreate({
6830
+ name,
6831
+ org,
6832
+ requestBody
6833
+ }) {
6834
+ return request(OpenAPI, {
6835
+ method: 'POST',
6836
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
6837
+ path: {
6838
+ 'name': name,
6839
+ 'org': org
6840
+ },
6841
+ body: requestBody,
6842
+ mediaType: 'application/json'
6843
+ });
6844
+ }
6845
+ /**
6846
+ * @returns TeamsWebhook
6847
+ * @throws ApiError
6848
+ */
6849
+ static aiBotV1BotsWebhooksTeamsCreate({
6850
+ name,
6851
+ org,
6852
+ requestBody
6853
+ }) {
6854
+ return request(OpenAPI, {
6855
+ method: 'POST',
6856
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
6857
+ path: {
6858
+ 'name': name,
6859
+ 'org': org
6860
+ },
6861
+ body: requestBody,
6862
+ mediaType: 'application/json'
6863
+ });
6864
+ }
6865
+ /**
6866
+ * Webhook endpoint to receive and process discord messages.
6867
+ * @returns WebexWebhook
6868
+ * @throws ApiError
6869
+ */
6870
+ static aiBotV1BotsWebhooksWebexCreate({
6871
+ name,
6872
+ org,
6873
+ requestBody
6874
+ }) {
6875
+ return request(OpenAPI, {
6876
+ method: 'POST',
6877
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
6878
+ path: {
6879
+ 'name': name,
6880
+ 'org': org
6881
+ },
6882
+ body: requestBody,
6883
+ mediaType: 'application/json'
6884
+ });
6885
+ }
6886
+ /**
6887
+ * Respond to whatsapp's webhook challenge.
6888
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
6889
+ * @returns WhatAppWebHook
6890
+ * @throws ApiError
6891
+ */
6892
+ static aiBotV1BotsWebhooksWhatsappRetrieve({
6893
+ name,
6894
+ org
6895
+ }) {
6896
+ return request(OpenAPI, {
6897
+ method: 'GET',
6898
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6899
+ path: {
6900
+ 'name': name,
6901
+ 'org': org
6902
+ }
6903
+ });
6904
+ }
6905
+ /**
6906
+ * Accept and process webhook events from whatsapp.
6907
+ * @returns WhatAppWebHook
6908
+ * @throws ApiError
6909
+ */
6910
+ static aiBotV1BotsWebhooksWhatsappCreate({
6911
+ name,
6912
+ org,
6913
+ requestBody
6914
+ }) {
6915
+ return request(OpenAPI, {
6916
+ method: 'POST',
6917
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6918
+ path: {
6919
+ 'name': name,
6920
+ 'org': org
6921
+ },
6922
+ body: requestBody,
6923
+ mediaType: 'application/json'
6924
+ });
6925
+ }
6926
+ }
6927
+
6928
+ class AiFinetuningService {
6929
+ /**
6930
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6931
+ * @returns PaginatedDataSetList
6932
+ * @throws ApiError
6933
+ */
6934
+ static aiFinetuningV1OrgUserDatasetsList({
6935
+ org,
6936
+ username,
6937
+ dateCreated,
6938
+ numDataPoints,
6939
+ ordering,
6940
+ page,
6941
+ pageSize,
6942
+ retryAttempts,
6943
+ search,
6944
+ status
6945
+ }) {
6946
+ return request(OpenAPI, {
6947
+ method: 'GET',
6948
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6949
+ path: {
6950
+ 'org': org,
6951
+ 'username': username
6952
+ },
6953
+ query: {
6954
+ 'date_created': dateCreated,
6955
+ 'num_data_points': numDataPoints,
6956
+ 'ordering': ordering,
6957
+ 'page': page,
6958
+ 'page_size': pageSize,
6959
+ 'retry_attempts': retryAttempts,
6960
+ 'search': search,
6961
+ 'status': status
6962
+ }
6963
+ });
6964
+ }
6965
+ /**
6966
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6967
+ * @returns DataSetCreate
6968
+ * @throws ApiError
6969
+ */
6970
+ static aiFinetuningV1OrgUserDatasetsCreate({
6971
+ org,
6972
+ username,
6973
+ requestBody
6974
+ }) {
6975
+ return request(OpenAPI, {
6976
+ method: 'POST',
6977
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6978
+ path: {
6979
+ 'org': org,
6980
+ 'username': username
6981
+ },
6982
+ body: requestBody,
6983
+ mediaType: 'application/json'
6984
+ });
6985
+ }
6986
+ /**
6987
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6988
+ * @returns DataSet
6989
+ * @throws ApiError
6990
+ */
6991
+ static aiFinetuningV1OrgUserDatasetsRetrieve({
6992
+ id,
6993
+ org,
6994
+ username
6995
+ }) {
6996
+ return request(OpenAPI, {
6997
+ method: 'GET',
6998
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6999
+ path: {
7000
+ 'id': id,
7001
+ 'org': org,
7002
+ 'username': username
7003
+ }
7004
+ });
7005
+ }
7006
+ /**
7007
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7008
+ * @returns DataSet
7009
+ * @throws ApiError
7010
+ */
7011
+ static aiFinetuningV1OrgUserDatasetsUpdate({
7012
+ id,
7013
+ org,
7014
+ username,
7015
+ requestBody
7016
+ }) {
7017
+ return request(OpenAPI, {
7018
+ method: 'PUT',
7019
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
7020
+ path: {
7021
+ 'id': id,
7022
+ 'org': org,
7023
+ 'username': username
7024
+ },
7025
+ body: requestBody,
7026
+ mediaType: 'application/json'
7027
+ });
7028
+ }
7029
+ /**
7030
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7031
+ * @returns DataSet
7032
+ * @throws ApiError
7033
+ */
7034
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate({
7035
+ id,
7036
+ org,
7037
+ username,
7038
+ requestBody
7039
+ }) {
7040
+ return request(OpenAPI, {
7041
+ method: 'PATCH',
7042
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
7043
+ path: {
7044
+ 'id': id,
7045
+ 'org': org,
7046
+ 'username': username
7047
+ },
7048
+ body: requestBody,
7049
+ mediaType: 'application/json'
7050
+ });
7051
+ }
7052
+ /**
7053
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7054
+ * @returns void
7055
+ * @throws ApiError
7056
+ */
7057
+ static aiFinetuningV1OrgUserDatasetsDestroy({
7058
+ id,
7059
+ org,
7060
+ username
7061
+ }) {
7062
+ return request(OpenAPI, {
7063
+ method: 'DELETE',
7064
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
7065
+ path: {
7066
+ 'id': id,
7067
+ 'org': org,
7068
+ 'username': username
7069
+ }
7070
+ });
7071
+ }
7072
+ /**
7073
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7074
+ * @returns PaginatedTrainingList
7075
+ * @throws ApiError
7076
+ */
7077
+ static aiFinetuningV1OrgUserTrainingsList({
7078
+ org,
7079
+ username,
7080
+ baseModelName,
7081
+ dataset,
7082
+ dateCreated,
7083
+ fineTunedModel,
7084
+ lastModified,
7085
+ ordering,
7086
+ page,
7087
+ pageSize,
7088
+ preprocessDataset,
7089
+ provider,
7090
+ search,
7091
+ status
7092
+ }) {
7093
+ return request(OpenAPI, {
7094
+ method: 'GET',
7095
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
7096
+ path: {
7097
+ 'org': org,
7098
+ 'username': username
7099
+ },
7100
+ query: {
7101
+ 'base_model_name': baseModelName,
7102
+ 'dataset': dataset,
7103
+ 'date_created': dateCreated,
7104
+ 'fine_tuned_model': fineTunedModel,
7105
+ 'last_modified': lastModified,
7106
+ 'ordering': ordering,
7107
+ 'page': page,
7108
+ 'page_size': pageSize,
7109
+ 'preprocess_dataset': preprocessDataset,
7110
+ 'provider': provider,
7111
+ 'search': search,
7112
+ 'status': status
7113
+ }
7114
+ });
7115
+ }
7116
+ /**
7117
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7118
+ * @returns TrainingCreate
7119
+ * @throws ApiError
7120
+ */
7121
+ static aiFinetuningV1OrgUserTrainingsCreate({
7122
+ org,
7123
+ username,
7124
+ requestBody
7125
+ }) {
7126
+ return request(OpenAPI, {
7127
+ method: 'POST',
7128
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
7129
+ path: {
7130
+ 'org': org,
7131
+ 'username': username
7132
+ },
7133
+ body: requestBody,
7134
+ mediaType: 'application/json'
7135
+ });
7136
+ }
7137
+ /**
7138
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7139
+ * @returns Training
7140
+ * @throws ApiError
7141
+ */
7142
+ static aiFinetuningV1OrgUserTrainingsRetrieve({
7143
+ id,
7144
+ org,
7145
+ username
7146
+ }) {
7147
+ return request(OpenAPI, {
7148
+ method: 'GET',
7149
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7150
+ path: {
7151
+ 'id': id,
7152
+ 'org': org,
7153
+ 'username': username
7154
+ }
7155
+ });
7156
+ }
7157
+ /**
7158
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7159
+ * @returns TrainingCreate
7160
+ * @throws ApiError
7161
+ */
7162
+ static aiFinetuningV1OrgUserTrainingsUpdate({
7163
+ id,
7164
+ org,
7165
+ username,
7166
+ requestBody
7167
+ }) {
7168
+ return request(OpenAPI, {
7169
+ method: 'PUT',
7170
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7171
+ path: {
7172
+ 'id': id,
7173
+ 'org': org,
7174
+ 'username': username
7175
+ },
7176
+ body: requestBody,
7177
+ mediaType: 'application/json'
7178
+ });
7179
+ }
7180
+ /**
7181
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7182
+ * @returns TrainingCreate
7183
+ * @throws ApiError
7184
+ */
7185
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate({
7186
+ id,
7187
+ org,
7188
+ username,
7189
+ requestBody
7190
+ }) {
7191
+ return request(OpenAPI, {
7192
+ method: 'PATCH',
7193
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7194
+ path: {
7195
+ 'id': id,
7196
+ 'org': org,
7197
+ 'username': username
7198
+ },
7199
+ body: requestBody,
7200
+ mediaType: 'application/json'
7201
+ });
7202
+ }
7203
+ /**
7204
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7205
+ * @returns void
7206
+ * @throws ApiError
7207
+ */
7208
+ static aiFinetuningV1OrgUserTrainingsDestroy({
7209
+ id,
7210
+ org,
7211
+ username
7212
+ }) {
7213
+ return request(OpenAPI, {
7214
+ method: 'DELETE',
7215
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7216
+ path: {
7217
+ 'id': id,
7218
+ 'org': org,
7219
+ 'username': username
7220
+ }
7221
+ });
7222
+ }
7223
+ /**
7224
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
7225
+ * Filtering and pagination is allowed.
7226
+ *
7227
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
7228
+ * training list endpoint.
7229
+ * Returns:
7230
+ * Response: A paginated response containing the serialized fine-tuned models.
7231
+ * @returns Training
7232
+ * @throws ApiError
7233
+ */
7234
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
7235
+ org,
7236
+ username
7237
+ }) {
7238
+ return request(OpenAPI, {
7239
+ method: 'GET',
7240
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
7241
+ path: {
7242
+ 'org': org,
7243
+ 'username': username
7244
+ }
7245
+ });
7246
+ }
7247
+ }
7248
+
5858
7249
  class AiIndexService {
5859
7250
  /**
5860
7251
  * Retrieve details of a specific document embedding.
@@ -33740,6 +35131,8 @@ class UserGroupsService {
33740
35131
 
33741
35132
  exports.AiAccountService = AiAccountService;
33742
35133
  exports.AiAnalyticsService = AiAnalyticsService;
35134
+ exports.AiBotService = AiBotService;
35135
+ exports.AiFinetuningService = AiFinetuningService;
33743
35136
  exports.AiIndexService = AiIndexService;
33744
35137
  exports.AiMarketingService = AiMarketingService;
33745
35138
  exports.AiMediaService = AiMediaService;