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