@iblai/iblai-api 3.37.0-ai → 3.37.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 +1345 -9
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1344 -10
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +1345 -9
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +40 -1
  8. package/dist/types/models/Bot.d.ts +15 -0
  9. package/dist/types/models/BotCommand.d.ts +6 -0
  10. package/dist/types/models/BotCreate.d.ts +12 -0
  11. package/dist/types/models/DataSet.d.ts +21 -0
  12. package/dist/types/models/DataSetCreate.d.ts +12 -0
  13. package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
  14. package/dist/types/models/DiscordConfig.d.ts +7 -0
  15. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  16. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  17. package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
  18. package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
  19. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  20. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  21. package/dist/types/models/PatchedDataSet.d.ts +21 -0
  22. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  23. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  24. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  25. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  26. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  27. package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
  28. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  29. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  30. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  31. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  32. package/dist/types/models/Provider63aEnum.d.ts +6 -0
  33. package/dist/types/models/SlackConfig.d.ts +8 -0
  34. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  35. package/dist/types/models/SlackWebhook.d.ts +6 -0
  36. package/dist/types/models/TeamsConfig.d.ts +7 -0
  37. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  38. package/dist/types/models/Training.d.ts +41 -0
  39. package/dist/types/models/TrainingCreate.d.ts +31 -0
  40. package/dist/types/models/Voice.d.ts +2 -2
  41. package/dist/types/models/{ProviderEnum.d.ts → VoiceProviderEnum.d.ts} +1 -1
  42. package/dist/types/models/WebexConfig.d.ts +10 -0
  43. package/dist/types/models/WebexWebhook.d.ts +4 -0
  44. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  45. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  46. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  47. package/dist/types/services/AiBotService.d.ts +486 -0
  48. package/dist/types/services/AiFinetuningService.d.ts +162 -0
  49. package/package.json +1 -1
  50. package/src/core/OpenAPI.ts +1 -1
  51. package/src/index.ts +40 -1
  52. package/src/models/Bot.ts +20 -0
  53. package/src/models/BotCommand.ts +11 -0
  54. package/src/models/BotCreate.ts +17 -0
  55. package/src/models/DataSet.ts +26 -0
  56. package/src/models/DataSetCreate.ts +17 -0
  57. package/src/models/DataSetStatusEnum.ts +16 -0
  58. package/src/models/DiscordConfig.ts +12 -0
  59. package/src/models/DiscordUserConfig.ts +15 -0
  60. package/src/models/DiscordWebhook.ts +11 -0
  61. package/src/models/PaginatedDataSetList.ts +12 -0
  62. package/src/models/PaginatedTrainingList.ts +12 -0
  63. package/src/models/PatchedBotCommand.ts +11 -0
  64. package/src/models/PatchedBotCreate.ts +17 -0
  65. package/src/models/PatchedDataSet.ts +26 -0
  66. package/src/models/PatchedDiscordConfig.ts +12 -0
  67. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  68. package/src/models/PatchedSlackConfig.ts +13 -0
  69. package/src/models/PatchedSlackUserConfig.ts +22 -0
  70. package/src/models/PatchedTeamsConfig.ts +12 -0
  71. package/src/models/PatchedTrainingCreate.ts +36 -0
  72. package/src/models/PatchedWebexConfig.ts +15 -0
  73. package/src/models/PatchedWhatsappConfig.ts +16 -0
  74. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  75. package/src/models/Provider05cEnum.ts +18 -0
  76. package/src/models/Provider63aEnum.ts +10 -0
  77. package/src/models/SlackConfig.ts +13 -0
  78. package/src/models/SlackUserConfig.ts +22 -0
  79. package/src/models/SlackWebhook.ts +11 -0
  80. package/src/models/TeamsConfig.ts +12 -0
  81. package/src/models/TeamsWebhook.ts +22 -0
  82. package/src/models/Training.ts +46 -0
  83. package/src/models/TrainingCreate.ts +36 -0
  84. package/src/models/Voice.ts +2 -2
  85. package/src/models/{ProviderEnum.ts → VoiceProviderEnum.ts} +1 -1
  86. package/src/models/WebexConfig.ts +15 -0
  87. package/src/models/WebexWebhook.ts +9 -0
  88. package/src/models/WhatAppWebHook.ts +8 -0
  89. package/src/models/WhatsappConfig.ts +16 -0
  90. package/src/models/WhatsappUserConfig.ts +15 -0
  91. package/src/services/AiBotService.ts +1174 -0
  92. package/src/services/AiFinetuningService.ts +402 -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.37.0-ai',
113
+ VERSION: '3.37.0-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -231,6 +231,24 @@ exports.CourseCreationTaskStatusEnum = void 0;
231
231
  CourseCreationTaskStatusEnum["IN_PROGRESS"] = "In Progress";
232
232
  })(exports.CourseCreationTaskStatusEnum || (exports.CourseCreationTaskStatusEnum = {}));
233
233
 
234
+ /* generated using openapi-typescript-codegen -- do not edit */
235
+ /* istanbul ignore file */
236
+ /* tslint:disable */
237
+ /* eslint-disable */
238
+ /**
239
+ * * `pending` - Pending
240
+ * * `processing` - Processing
241
+ * * `completed` - Completed
242
+ * * `failed` - Failed
243
+ */
244
+ exports.DataSetStatusEnum = void 0;
245
+ (function (DataSetStatusEnum) {
246
+ DataSetStatusEnum["PENDING"] = "pending";
247
+ DataSetStatusEnum["PROCESSING"] = "processing";
248
+ DataSetStatusEnum["COMPLETED"] = "completed";
249
+ DataSetStatusEnum["FAILED"] = "failed";
250
+ })(exports.DataSetStatusEnum || (exports.DataSetStatusEnum = {}));
251
+
234
252
  /* generated using openapi-typescript-codegen -- do not edit */
235
253
  /* istanbul ignore file */
236
254
  /* tslint:disable */
@@ -513,21 +531,37 @@ exports.PromptVisibilityEnum = void 0;
513
531
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
514
532
  })(exports.PromptVisibilityEnum || (exports.PromptVisibilityEnum = {}));
515
533
 
534
+ /* generated using openapi-typescript-codegen -- do not edit */
535
+ /* istanbul ignore file */
536
+ /* tslint:disable */
537
+ /* eslint-disable */
538
+ /**
539
+ * * `webex` - Webex
540
+ * * `slack` - Slack
541
+ * * `whatsapp` - Whatsapp
542
+ * * `discord` - Discord
543
+ * * `teams` - Teams
544
+ */
545
+ exports.Provider05cEnum = void 0;
546
+ (function (Provider05cEnum) {
547
+ Provider05cEnum["WEBEX"] = "webex";
548
+ Provider05cEnum["SLACK"] = "slack";
549
+ Provider05cEnum["WHATSAPP"] = "whatsapp";
550
+ Provider05cEnum["DISCORD"] = "discord";
551
+ Provider05cEnum["TEAMS"] = "teams";
552
+ })(exports.Provider05cEnum || (exports.Provider05cEnum = {}));
553
+
516
554
  /* generated using openapi-typescript-codegen -- do not edit */
517
555
  /* istanbul ignore file */
518
556
  /* tslint:disable */
519
557
  /* eslint-disable */
520
558
  /**
521
559
  * * `openai` - Openai
522
- * * `google` - Google
523
- * * `elevenlabs` - Elevenlabs
524
560
  */
525
- exports.ProviderEnum = void 0;
526
- (function (ProviderEnum) {
527
- ProviderEnum["OPENAI"] = "openai";
528
- ProviderEnum["GOOGLE"] = "google";
529
- ProviderEnum["ELEVENLABS"] = "elevenlabs";
530
- })(exports.ProviderEnum || (exports.ProviderEnum = {}));
561
+ exports.Provider63aEnum = void 0;
562
+ (function (Provider63aEnum) {
563
+ Provider63aEnum["OPENAI"] = "openai";
564
+ })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
531
565
 
532
566
  /* generated using openapi-typescript-codegen -- do not edit */
533
567
  /* istanbul ignore file */
@@ -697,6 +731,22 @@ exports.TypeC42Enum = void 0;
697
731
  TypeC42Enum["ASSESSMENT"] = "assessment";
698
732
  })(exports.TypeC42Enum || (exports.TypeC42Enum = {}));
699
733
 
734
+ /* generated using openapi-typescript-codegen -- do not edit */
735
+ /* istanbul ignore file */
736
+ /* tslint:disable */
737
+ /* eslint-disable */
738
+ /**
739
+ * * `openai` - Openai
740
+ * * `google` - Google
741
+ * * `elevenlabs` - Elevenlabs
742
+ */
743
+ exports.VoiceProviderEnum = void 0;
744
+ (function (VoiceProviderEnum) {
745
+ VoiceProviderEnum["OPENAI"] = "openai";
746
+ VoiceProviderEnum["GOOGLE"] = "google";
747
+ VoiceProviderEnum["ELEVENLABS"] = "elevenlabs";
748
+ })(exports.VoiceProviderEnum || (exports.VoiceProviderEnum = {}));
749
+
700
750
  /* generated using openapi-typescript-codegen -- do not edit */
701
751
  /* istanbul ignore file */
702
752
  /* tslint:disable */
@@ -3008,6 +3058,1290 @@ class AiAnalyticsService {
3008
3058
  }
3009
3059
  }
3010
3060
 
3061
+ class AiBotService {
3062
+ /**
3063
+ * Create modify and update bot information for a specific tenant.
3064
+ * @param org
3065
+ * @returns Bot
3066
+ * @throws ApiError
3067
+ */
3068
+ static aiBotV1BotsBotList(org) {
3069
+ return request(OpenAPI, {
3070
+ method: 'GET',
3071
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
3072
+ path: {
3073
+ 'org': org
3074
+ }
3075
+ });
3076
+ }
3077
+ /**
3078
+ * Create modify and update bot information for a specific tenant.
3079
+ * @param org
3080
+ * @param requestBody
3081
+ * @returns BotCreate
3082
+ * @throws ApiError
3083
+ */
3084
+ static aiBotV1BotsBotCreate(org, requestBody) {
3085
+ return request(OpenAPI, {
3086
+ method: 'POST',
3087
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
3088
+ path: {
3089
+ 'org': org
3090
+ },
3091
+ body: requestBody,
3092
+ mediaType: 'application/json'
3093
+ });
3094
+ }
3095
+ /**
3096
+ * Create slash commands for a specific bot
3097
+ * eg. /iblai-baseline
3098
+ * @param org
3099
+ * @returns BotCommand
3100
+ * @throws ApiError
3101
+ */
3102
+ static aiBotV1BotsBotCommandsList(org) {
3103
+ return request(OpenAPI, {
3104
+ method: 'GET',
3105
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
3106
+ path: {
3107
+ 'org': org
3108
+ }
3109
+ });
3110
+ }
3111
+ /**
3112
+ * Create slash commands for a specific bot
3113
+ * eg. /iblai-baseline
3114
+ * @param org
3115
+ * @param requestBody
3116
+ * @returns BotCommand
3117
+ * @throws ApiError
3118
+ */
3119
+ static aiBotV1BotsBotCommandsCreate(org, requestBody) {
3120
+ return request(OpenAPI, {
3121
+ method: 'POST',
3122
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
3123
+ path: {
3124
+ 'org': org
3125
+ },
3126
+ body: requestBody,
3127
+ mediaType: 'application/json'
3128
+ });
3129
+ }
3130
+ /**
3131
+ * Create slash commands for a specific bot
3132
+ * eg. /iblai-baseline
3133
+ * @param id A unique integer value identifying this bot command.
3134
+ * @param org
3135
+ * @returns BotCommand
3136
+ * @throws ApiError
3137
+ */
3138
+ static aiBotV1BotsBotCommandsRetrieve(id, org) {
3139
+ return request(OpenAPI, {
3140
+ method: 'GET',
3141
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3142
+ path: {
3143
+ 'id': id,
3144
+ 'org': org
3145
+ }
3146
+ });
3147
+ }
3148
+ /**
3149
+ * Create slash commands for a specific bot
3150
+ * eg. /iblai-baseline
3151
+ * @param id A unique integer value identifying this bot command.
3152
+ * @param org
3153
+ * @param requestBody
3154
+ * @returns BotCommand
3155
+ * @throws ApiError
3156
+ */
3157
+ static aiBotV1BotsBotCommandsUpdate(id, org, requestBody) {
3158
+ return request(OpenAPI, {
3159
+ method: 'PUT',
3160
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3161
+ path: {
3162
+ 'id': id,
3163
+ 'org': org
3164
+ },
3165
+ body: requestBody,
3166
+ mediaType: 'application/json'
3167
+ });
3168
+ }
3169
+ /**
3170
+ * Create slash commands for a specific bot
3171
+ * eg. /iblai-baseline
3172
+ * @param id A unique integer value identifying this bot command.
3173
+ * @param org
3174
+ * @param requestBody
3175
+ * @returns BotCommand
3176
+ * @throws ApiError
3177
+ */
3178
+ static aiBotV1BotsBotCommandsPartialUpdate(id, org, requestBody) {
3179
+ return request(OpenAPI, {
3180
+ method: 'PATCH',
3181
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3182
+ path: {
3183
+ 'id': id,
3184
+ 'org': org
3185
+ },
3186
+ body: requestBody,
3187
+ mediaType: 'application/json'
3188
+ });
3189
+ }
3190
+ /**
3191
+ * Create slash commands for a specific bot
3192
+ * eg. /iblai-baseline
3193
+ * @param id A unique integer value identifying this bot command.
3194
+ * @param org
3195
+ * @returns void
3196
+ * @throws ApiError
3197
+ */
3198
+ static aiBotV1BotsBotCommandsDestroy(id, org) {
3199
+ return request(OpenAPI, {
3200
+ method: 'DELETE',
3201
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3202
+ path: {
3203
+ 'id': id,
3204
+ 'org': org
3205
+ }
3206
+ });
3207
+ }
3208
+ /**
3209
+ * Create modify and update bot information for a specific tenant.
3210
+ * @param id A unique integer value identifying this bot.
3211
+ * @param org
3212
+ * @returns Bot
3213
+ * @throws ApiError
3214
+ */
3215
+ static aiBotV1BotsBotRetrieve(id, org) {
3216
+ return request(OpenAPI, {
3217
+ method: 'GET',
3218
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3219
+ path: {
3220
+ 'id': id,
3221
+ 'org': org
3222
+ }
3223
+ });
3224
+ }
3225
+ /**
3226
+ * Create modify and update bot information for a specific tenant.
3227
+ * @param id A unique integer value identifying this bot.
3228
+ * @param org
3229
+ * @param requestBody
3230
+ * @returns BotCreate
3231
+ * @throws ApiError
3232
+ */
3233
+ static aiBotV1BotsBotUpdate(id, org, requestBody) {
3234
+ return request(OpenAPI, {
3235
+ method: 'PUT',
3236
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3237
+ path: {
3238
+ 'id': id,
3239
+ 'org': org
3240
+ },
3241
+ body: requestBody,
3242
+ mediaType: 'application/json'
3243
+ });
3244
+ }
3245
+ /**
3246
+ * Create modify and update bot information for a specific tenant.
3247
+ * @param id A unique integer value identifying this bot.
3248
+ * @param org
3249
+ * @param requestBody
3250
+ * @returns BotCreate
3251
+ * @throws ApiError
3252
+ */
3253
+ static aiBotV1BotsBotPartialUpdate(id, org, requestBody) {
3254
+ return request(OpenAPI, {
3255
+ method: 'PATCH',
3256
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3257
+ path: {
3258
+ 'id': id,
3259
+ 'org': org
3260
+ },
3261
+ body: requestBody,
3262
+ mediaType: 'application/json'
3263
+ });
3264
+ }
3265
+ /**
3266
+ * Create modify and update bot information for a specific tenant.
3267
+ * @param id A unique integer value identifying this bot.
3268
+ * @param org
3269
+ * @returns void
3270
+ * @throws ApiError
3271
+ */
3272
+ static aiBotV1BotsBotDestroy(id, org) {
3273
+ return request(OpenAPI, {
3274
+ method: 'DELETE',
3275
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3276
+ path: {
3277
+ 'id': id,
3278
+ 'org': org
3279
+ }
3280
+ });
3281
+ }
3282
+ /**
3283
+ * Create modify and update bot information for a specific tenant.
3284
+ * @param id A unique integer value identifying this bot.
3285
+ * @param org
3286
+ * @returns DiscordConfig
3287
+ * @throws ApiError
3288
+ */
3289
+ static aiBotV1BotsBotConfigDiscordRetrieve(id, org) {
3290
+ return request(OpenAPI, {
3291
+ method: 'GET',
3292
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
3293
+ path: {
3294
+ 'id': id,
3295
+ 'org': org
3296
+ }
3297
+ });
3298
+ }
3299
+ /**
3300
+ * Create modify and update bot information for a specific tenant.
3301
+ * @param id A unique integer value identifying this bot.
3302
+ * @param org
3303
+ * @param requestBody
3304
+ * @returns DiscordConfig
3305
+ * @throws ApiError
3306
+ */
3307
+ static aiBotV1BotsBotConfigDiscordPartialUpdate(id, org, requestBody) {
3308
+ return request(OpenAPI, {
3309
+ method: 'PATCH',
3310
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
3311
+ path: {
3312
+ 'id': id,
3313
+ 'org': org
3314
+ },
3315
+ body: requestBody,
3316
+ mediaType: 'application/json'
3317
+ });
3318
+ }
3319
+ /**
3320
+ * Create modify and update bot information for a specific tenant.
3321
+ * @param id A unique integer value identifying this bot.
3322
+ * @param org
3323
+ * @returns SlackConfig
3324
+ * @throws ApiError
3325
+ */
3326
+ static aiBotV1BotsBotConfigSlackRetrieve(id, org) {
3327
+ return request(OpenAPI, {
3328
+ method: 'GET',
3329
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
3330
+ path: {
3331
+ 'id': id,
3332
+ 'org': org
3333
+ }
3334
+ });
3335
+ }
3336
+ /**
3337
+ * Create modify and update bot information for a specific tenant.
3338
+ * @param id A unique integer value identifying this bot.
3339
+ * @param org
3340
+ * @param requestBody
3341
+ * @returns SlackConfig
3342
+ * @throws ApiError
3343
+ */
3344
+ static aiBotV1BotsBotConfigSlackUpdateCreate(id, org, requestBody) {
3345
+ return request(OpenAPI, {
3346
+ method: 'POST',
3347
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3348
+ path: {
3349
+ 'id': id,
3350
+ 'org': org
3351
+ },
3352
+ body: requestBody,
3353
+ mediaType: 'application/json'
3354
+ });
3355
+ }
3356
+ /**
3357
+ * Create modify and update bot information for a specific tenant.
3358
+ * @param id A unique integer value identifying this bot.
3359
+ * @param org
3360
+ * @param requestBody
3361
+ * @returns SlackConfig
3362
+ * @throws ApiError
3363
+ */
3364
+ static aiBotV1BotsBotConfigSlackUpdateUpdate(id, org, requestBody) {
3365
+ return request(OpenAPI, {
3366
+ method: 'PUT',
3367
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3368
+ path: {
3369
+ 'id': id,
3370
+ 'org': org
3371
+ },
3372
+ body: requestBody,
3373
+ mediaType: 'application/json'
3374
+ });
3375
+ }
3376
+ /**
3377
+ * Create modify and update bot information for a specific tenant.
3378
+ * @param id A unique integer value identifying this bot.
3379
+ * @param org
3380
+ * @param requestBody
3381
+ * @returns SlackConfig
3382
+ * @throws ApiError
3383
+ */
3384
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate(id, org, requestBody) {
3385
+ return request(OpenAPI, {
3386
+ method: 'PATCH',
3387
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3388
+ path: {
3389
+ 'id': id,
3390
+ 'org': org
3391
+ },
3392
+ body: requestBody,
3393
+ mediaType: 'application/json'
3394
+ });
3395
+ }
3396
+ /**
3397
+ * Create modify and update bot information for a specific tenant.
3398
+ * @param id A unique integer value identifying this bot.
3399
+ * @param org
3400
+ * @returns TeamsConfig
3401
+ * @throws ApiError
3402
+ */
3403
+ static aiBotV1BotsBotConfigTeamsRetrieve(id, org) {
3404
+ return request(OpenAPI, {
3405
+ method: 'GET',
3406
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
3407
+ path: {
3408
+ 'id': id,
3409
+ 'org': org
3410
+ }
3411
+ });
3412
+ }
3413
+ /**
3414
+ * Create modify and update bot information for a specific tenant.
3415
+ * @param id A unique integer value identifying this bot.
3416
+ * @param org
3417
+ * @param requestBody
3418
+ * @returns TeamsConfig
3419
+ * @throws ApiError
3420
+ */
3421
+ static aiBotV1BotsBotConfigTeamsUpdateCreate(id, org, requestBody) {
3422
+ return request(OpenAPI, {
3423
+ method: 'POST',
3424
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3425
+ path: {
3426
+ 'id': id,
3427
+ 'org': org
3428
+ },
3429
+ body: requestBody,
3430
+ mediaType: 'application/json'
3431
+ });
3432
+ }
3433
+ /**
3434
+ * Create modify and update bot information for a specific tenant.
3435
+ * @param id A unique integer value identifying this bot.
3436
+ * @param org
3437
+ * @param requestBody
3438
+ * @returns TeamsConfig
3439
+ * @throws ApiError
3440
+ */
3441
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate(id, org, requestBody) {
3442
+ return request(OpenAPI, {
3443
+ method: 'PUT',
3444
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3445
+ path: {
3446
+ 'id': id,
3447
+ 'org': org
3448
+ },
3449
+ body: requestBody,
3450
+ mediaType: 'application/json'
3451
+ });
3452
+ }
3453
+ /**
3454
+ * Create modify and update bot information for a specific tenant.
3455
+ * @param id A unique integer value identifying this bot.
3456
+ * @param org
3457
+ * @param requestBody
3458
+ * @returns TeamsConfig
3459
+ * @throws ApiError
3460
+ */
3461
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate(id, org, requestBody) {
3462
+ return request(OpenAPI, {
3463
+ method: 'PATCH',
3464
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3465
+ path: {
3466
+ 'id': id,
3467
+ 'org': org
3468
+ },
3469
+ body: requestBody,
3470
+ mediaType: 'application/json'
3471
+ });
3472
+ }
3473
+ /**
3474
+ * Create modify and update bot information for a specific tenant.
3475
+ * @param id A unique integer value identifying this bot.
3476
+ * @param org
3477
+ * @returns WebexConfig
3478
+ * @throws ApiError
3479
+ */
3480
+ static aiBotV1BotsBotConfigWebexRetrieve(id, org) {
3481
+ return request(OpenAPI, {
3482
+ method: 'GET',
3483
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
3484
+ path: {
3485
+ 'id': id,
3486
+ 'org': org
3487
+ }
3488
+ });
3489
+ }
3490
+ /**
3491
+ * Create modify and update bot information for a specific tenant.
3492
+ * @param id A unique integer value identifying this bot.
3493
+ * @param org
3494
+ * @param requestBody
3495
+ * @returns WebexConfig
3496
+ * @throws ApiError
3497
+ */
3498
+ static aiBotV1BotsBotConfigWebexPartialUpdate(id, org, requestBody) {
3499
+ return request(OpenAPI, {
3500
+ method: 'PATCH',
3501
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
3502
+ path: {
3503
+ 'id': id,
3504
+ 'org': org
3505
+ },
3506
+ body: requestBody,
3507
+ mediaType: 'application/json'
3508
+ });
3509
+ }
3510
+ /**
3511
+ * Create modify and update bot information for a specific tenant.
3512
+ * @param id A unique integer value identifying this bot.
3513
+ * @param org
3514
+ * @returns WhatsappConfig
3515
+ * @throws ApiError
3516
+ */
3517
+ static aiBotV1BotsBotConfigWhatsappRetrieve(id, org) {
3518
+ return request(OpenAPI, {
3519
+ method: 'GET',
3520
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
3521
+ path: {
3522
+ 'id': id,
3523
+ 'org': org
3524
+ }
3525
+ });
3526
+ }
3527
+ /**
3528
+ * Create modify and update bot information for a specific tenant.
3529
+ * @param id A unique integer value identifying this bot.
3530
+ * @param org
3531
+ * @param requestBody
3532
+ * @returns WhatsappConfig
3533
+ * @throws ApiError
3534
+ */
3535
+ static aiBotV1BotsBotWhatsappConfigUpdate(id, org, requestBody) {
3536
+ return request(OpenAPI, {
3537
+ method: 'PUT',
3538
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
3539
+ path: {
3540
+ 'id': id,
3541
+ 'org': org
3542
+ },
3543
+ body: requestBody,
3544
+ mediaType: 'application/json'
3545
+ });
3546
+ }
3547
+ /**
3548
+ * Create modify and update bot information for a specific tenant.
3549
+ * @param id A unique integer value identifying this bot.
3550
+ * @param org
3551
+ * @param requestBody
3552
+ * @returns WhatsappConfig
3553
+ * @throws ApiError
3554
+ */
3555
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate(id, org, requestBody) {
3556
+ return request(OpenAPI, {
3557
+ method: 'PATCH',
3558
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
3559
+ path: {
3560
+ 'id': id,
3561
+ 'org': org
3562
+ },
3563
+ body: requestBody,
3564
+ mediaType: 'application/json'
3565
+ });
3566
+ }
3567
+ /**
3568
+ * Setup discord user id linkage with discord bots
3569
+ * this will be used to authenticate the user when interracting with discord bots.
3570
+ * the user id can be copied from the discord app after tapping on the user profile.
3571
+ * @param org
3572
+ * @returns DiscordUserConfig
3573
+ * @throws ApiError
3574
+ */
3575
+ static aiBotV1BotsDiscordUserConfigList(org) {
3576
+ return request(OpenAPI, {
3577
+ method: 'GET',
3578
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
3579
+ path: {
3580
+ 'org': org
3581
+ }
3582
+ });
3583
+ }
3584
+ /**
3585
+ * Setup discord user id linkage with discord bots
3586
+ * this will be used to authenticate the user when interracting with discord bots.
3587
+ * the user id can be copied from the discord app after tapping on the user profile.
3588
+ * @param org
3589
+ * @param requestBody
3590
+ * @returns DiscordUserConfig
3591
+ * @throws ApiError
3592
+ */
3593
+ static aiBotV1BotsDiscordUserConfigCreate(org, requestBody) {
3594
+ return request(OpenAPI, {
3595
+ method: 'POST',
3596
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
3597
+ path: {
3598
+ 'org': org
3599
+ },
3600
+ body: requestBody,
3601
+ mediaType: 'application/json'
3602
+ });
3603
+ }
3604
+ /**
3605
+ * Setup discord user id linkage with discord bots
3606
+ * this will be used to authenticate the user when interracting with discord bots.
3607
+ * the user id can be copied from the discord app after tapping on the user profile.
3608
+ * @param id A unique integer value identifying this discord user config.
3609
+ * @param org
3610
+ * @returns DiscordUserConfig
3611
+ * @throws ApiError
3612
+ */
3613
+ static aiBotV1BotsDiscordUserConfigRetrieve(id, org) {
3614
+ return request(OpenAPI, {
3615
+ method: 'GET',
3616
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3617
+ path: {
3618
+ 'id': id,
3619
+ 'org': org
3620
+ }
3621
+ });
3622
+ }
3623
+ /**
3624
+ * Setup discord user id linkage with discord bots
3625
+ * this will be used to authenticate the user when interracting with discord bots.
3626
+ * the user id can be copied from the discord app after tapping on the user profile.
3627
+ * @param id A unique integer value identifying this discord user config.
3628
+ * @param org
3629
+ * @param requestBody
3630
+ * @returns DiscordUserConfig
3631
+ * @throws ApiError
3632
+ */
3633
+ static aiBotV1BotsDiscordUserConfigUpdate(id, org, requestBody) {
3634
+ return request(OpenAPI, {
3635
+ method: 'PUT',
3636
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3637
+ path: {
3638
+ 'id': id,
3639
+ 'org': org
3640
+ },
3641
+ body: requestBody,
3642
+ mediaType: 'application/json'
3643
+ });
3644
+ }
3645
+ /**
3646
+ * Setup discord user id linkage with discord bots
3647
+ * this will be used to authenticate the user when interracting with discord bots.
3648
+ * the user id can be copied from the discord app after tapping on the user profile.
3649
+ * @param id A unique integer value identifying this discord user config.
3650
+ * @param org
3651
+ * @param requestBody
3652
+ * @returns DiscordUserConfig
3653
+ * @throws ApiError
3654
+ */
3655
+ static aiBotV1BotsDiscordUserConfigPartialUpdate(id, org, requestBody) {
3656
+ return request(OpenAPI, {
3657
+ method: 'PATCH',
3658
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3659
+ path: {
3660
+ 'id': id,
3661
+ 'org': org
3662
+ },
3663
+ body: requestBody,
3664
+ mediaType: 'application/json'
3665
+ });
3666
+ }
3667
+ /**
3668
+ * Setup discord user id linkage with discord bots
3669
+ * this will be used to authenticate the user when interracting with discord bots.
3670
+ * the user id can be copied from the discord app after tapping on the user profile.
3671
+ * @param id A unique integer value identifying this discord user config.
3672
+ * @param org
3673
+ * @returns void
3674
+ * @throws ApiError
3675
+ */
3676
+ static aiBotV1BotsDiscordUserConfigDestroy(id, org) {
3677
+ return request(OpenAPI, {
3678
+ method: 'DELETE',
3679
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3680
+ path: {
3681
+ 'id': id,
3682
+ 'org': org
3683
+ }
3684
+ });
3685
+ }
3686
+ /**
3687
+ * Setup slack username and domain linkage with slack bots
3688
+ * this will be used to authenticate the user when interracting with slack bots.
3689
+ * @param org
3690
+ * @returns SlackUserConfig
3691
+ * @throws ApiError
3692
+ */
3693
+ static aiBotV1BotsSlackUserConfigList(org) {
3694
+ return request(OpenAPI, {
3695
+ method: 'GET',
3696
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
3697
+ path: {
3698
+ 'org': org
3699
+ }
3700
+ });
3701
+ }
3702
+ /**
3703
+ * Setup slack username and domain linkage with slack bots
3704
+ * this will be used to authenticate the user when interracting with slack bots.
3705
+ * @param org
3706
+ * @param requestBody
3707
+ * @returns SlackUserConfig
3708
+ * @throws ApiError
3709
+ */
3710
+ static aiBotV1BotsSlackUserConfigCreate(org, requestBody) {
3711
+ return request(OpenAPI, {
3712
+ method: 'POST',
3713
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
3714
+ path: {
3715
+ 'org': org
3716
+ },
3717
+ body: requestBody,
3718
+ mediaType: 'application/json'
3719
+ });
3720
+ }
3721
+ /**
3722
+ * Setup slack username and domain linkage with slack bots
3723
+ * this will be used to authenticate the user when interracting with slack bots.
3724
+ * @param id A unique integer value identifying this slack user config.
3725
+ * @param org
3726
+ * @returns SlackUserConfig
3727
+ * @throws ApiError
3728
+ */
3729
+ static aiBotV1BotsSlackUserConfigRetrieve(id, org) {
3730
+ return request(OpenAPI, {
3731
+ method: 'GET',
3732
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3733
+ path: {
3734
+ 'id': id,
3735
+ 'org': org
3736
+ }
3737
+ });
3738
+ }
3739
+ /**
3740
+ * Setup slack username and domain linkage with slack bots
3741
+ * this will be used to authenticate the user when interracting with slack bots.
3742
+ * @param id A unique integer value identifying this slack user config.
3743
+ * @param org
3744
+ * @param requestBody
3745
+ * @returns SlackUserConfig
3746
+ * @throws ApiError
3747
+ */
3748
+ static aiBotV1BotsSlackUserConfigUpdate(id, org, requestBody) {
3749
+ return request(OpenAPI, {
3750
+ method: 'PUT',
3751
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3752
+ path: {
3753
+ 'id': id,
3754
+ 'org': org
3755
+ },
3756
+ body: requestBody,
3757
+ mediaType: 'application/json'
3758
+ });
3759
+ }
3760
+ /**
3761
+ * Setup slack username and domain linkage with slack bots
3762
+ * this will be used to authenticate the user when interracting with slack bots.
3763
+ * @param id A unique integer value identifying this slack user config.
3764
+ * @param org
3765
+ * @param requestBody
3766
+ * @returns SlackUserConfig
3767
+ * @throws ApiError
3768
+ */
3769
+ static aiBotV1BotsSlackUserConfigPartialUpdate(id, org, requestBody) {
3770
+ return request(OpenAPI, {
3771
+ method: 'PATCH',
3772
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3773
+ path: {
3774
+ 'id': id,
3775
+ 'org': org
3776
+ },
3777
+ body: requestBody,
3778
+ mediaType: 'application/json'
3779
+ });
3780
+ }
3781
+ /**
3782
+ * Setup slack username and domain linkage with slack bots
3783
+ * this will be used to authenticate the user when interracting with slack bots.
3784
+ * @param id A unique integer value identifying this slack user config.
3785
+ * @param org
3786
+ * @returns void
3787
+ * @throws ApiError
3788
+ */
3789
+ static aiBotV1BotsSlackUserConfigDestroy(id, org) {
3790
+ return request(OpenAPI, {
3791
+ method: 'DELETE',
3792
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3793
+ path: {
3794
+ 'id': id,
3795
+ 'org': org
3796
+ }
3797
+ });
3798
+ }
3799
+ /**
3800
+ * Setup phone number linkage with whatsapp bots
3801
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3802
+ * @param org
3803
+ * @returns WhatsappUserConfig
3804
+ * @throws ApiError
3805
+ */
3806
+ static aiBotV1BotsWhatsappUserConfigList(org) {
3807
+ return request(OpenAPI, {
3808
+ method: 'GET',
3809
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
3810
+ path: {
3811
+ 'org': org
3812
+ }
3813
+ });
3814
+ }
3815
+ /**
3816
+ * Setup phone number linkage with whatsapp bots
3817
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3818
+ * @param org
3819
+ * @param requestBody
3820
+ * @returns WhatsappUserConfig
3821
+ * @throws ApiError
3822
+ */
3823
+ static aiBotV1BotsWhatsappUserConfigCreate(org, requestBody) {
3824
+ return request(OpenAPI, {
3825
+ method: 'POST',
3826
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
3827
+ path: {
3828
+ 'org': org
3829
+ },
3830
+ body: requestBody,
3831
+ mediaType: 'application/json'
3832
+ });
3833
+ }
3834
+ /**
3835
+ * Setup phone number linkage with whatsapp bots
3836
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3837
+ * @param id A unique integer value identifying this whatsapp user config.
3838
+ * @param org
3839
+ * @returns WhatsappUserConfig
3840
+ * @throws ApiError
3841
+ */
3842
+ static aiBotV1BotsWhatsappUserConfigRetrieve(id, org) {
3843
+ return request(OpenAPI, {
3844
+ method: 'GET',
3845
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3846
+ path: {
3847
+ 'id': id,
3848
+ 'org': org
3849
+ }
3850
+ });
3851
+ }
3852
+ /**
3853
+ * Setup phone number linkage with whatsapp bots
3854
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3855
+ * @param id A unique integer value identifying this whatsapp user config.
3856
+ * @param org
3857
+ * @param requestBody
3858
+ * @returns WhatsappUserConfig
3859
+ * @throws ApiError
3860
+ */
3861
+ static aiBotV1BotsWhatsappUserConfigUpdate(id, org, requestBody) {
3862
+ return request(OpenAPI, {
3863
+ method: 'PUT',
3864
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3865
+ path: {
3866
+ 'id': id,
3867
+ 'org': org
3868
+ },
3869
+ body: requestBody,
3870
+ mediaType: 'application/json'
3871
+ });
3872
+ }
3873
+ /**
3874
+ * Setup phone number linkage with whatsapp bots
3875
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3876
+ * @param id A unique integer value identifying this whatsapp user config.
3877
+ * @param org
3878
+ * @param requestBody
3879
+ * @returns WhatsappUserConfig
3880
+ * @throws ApiError
3881
+ */
3882
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate(id, org, requestBody) {
3883
+ return request(OpenAPI, {
3884
+ method: 'PATCH',
3885
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3886
+ path: {
3887
+ 'id': id,
3888
+ 'org': org
3889
+ },
3890
+ body: requestBody,
3891
+ mediaType: 'application/json'
3892
+ });
3893
+ }
3894
+ /**
3895
+ * Setup phone number linkage with whatsapp bots
3896
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3897
+ * @param id A unique integer value identifying this whatsapp user config.
3898
+ * @param org
3899
+ * @returns void
3900
+ * @throws ApiError
3901
+ */
3902
+ static aiBotV1BotsWhatsappUserConfigDestroy(id, org) {
3903
+ return request(OpenAPI, {
3904
+ method: 'DELETE',
3905
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3906
+ path: {
3907
+ 'id': id,
3908
+ 'org': org
3909
+ }
3910
+ });
3911
+ }
3912
+ /**
3913
+ * Webhook endpoint to receive and process discord messages.
3914
+ * @param name
3915
+ * @param org
3916
+ * @param requestBody
3917
+ * @returns DiscordWebhook
3918
+ * @throws ApiError
3919
+ */
3920
+ static aiBotV1BotsWebhooksDiscordCreate(name, org, requestBody) {
3921
+ return request(OpenAPI, {
3922
+ method: 'POST',
3923
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
3924
+ path: {
3925
+ 'name': name,
3926
+ 'org': org
3927
+ },
3928
+ body: requestBody,
3929
+ mediaType: 'application/json'
3930
+ });
3931
+ }
3932
+ /**
3933
+ * @param name
3934
+ * @param org
3935
+ * @param requestBody
3936
+ * @returns SlackWebhook
3937
+ * @throws ApiError
3938
+ */
3939
+ static aiBotV1BotsWebhooksSlackCreate(name, org, requestBody) {
3940
+ return request(OpenAPI, {
3941
+ method: 'POST',
3942
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
3943
+ path: {
3944
+ 'name': name,
3945
+ 'org': org
3946
+ },
3947
+ body: requestBody,
3948
+ mediaType: 'application/json'
3949
+ });
3950
+ }
3951
+ /**
3952
+ * @param name
3953
+ * @param org
3954
+ * @param requestBody
3955
+ * @returns TeamsWebhook
3956
+ * @throws ApiError
3957
+ */
3958
+ static aiBotV1BotsWebhooksTeamsCreate(name, org, requestBody) {
3959
+ return request(OpenAPI, {
3960
+ method: 'POST',
3961
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
3962
+ path: {
3963
+ 'name': name,
3964
+ 'org': org
3965
+ },
3966
+ body: requestBody,
3967
+ mediaType: 'application/json'
3968
+ });
3969
+ }
3970
+ /**
3971
+ * Webhook endpoint to receive and process discord messages.
3972
+ * @param name
3973
+ * @param org
3974
+ * @param requestBody
3975
+ * @returns WebexWebhook
3976
+ * @throws ApiError
3977
+ */
3978
+ static aiBotV1BotsWebhooksWebexCreate(name, org, requestBody) {
3979
+ return request(OpenAPI, {
3980
+ method: 'POST',
3981
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
3982
+ path: {
3983
+ 'name': name,
3984
+ 'org': org
3985
+ },
3986
+ body: requestBody,
3987
+ mediaType: 'application/json'
3988
+ });
3989
+ }
3990
+ /**
3991
+ * Respond to whatsapp's webhook challenge.
3992
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
3993
+ * @param name
3994
+ * @param org
3995
+ * @returns WhatAppWebHook
3996
+ * @throws ApiError
3997
+ */
3998
+ static aiBotV1BotsWebhooksWhatsappRetrieve(name, org) {
3999
+ return request(OpenAPI, {
4000
+ method: 'GET',
4001
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
4002
+ path: {
4003
+ 'name': name,
4004
+ 'org': org
4005
+ }
4006
+ });
4007
+ }
4008
+ /**
4009
+ * Accept and process webhook events from whatsapp.
4010
+ * @param name
4011
+ * @param org
4012
+ * @param requestBody
4013
+ * @returns WhatAppWebHook
4014
+ * @throws ApiError
4015
+ */
4016
+ static aiBotV1BotsWebhooksWhatsappCreate(name, org, requestBody) {
4017
+ return request(OpenAPI, {
4018
+ method: 'POST',
4019
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
4020
+ path: {
4021
+ 'name': name,
4022
+ 'org': org
4023
+ },
4024
+ body: requestBody,
4025
+ mediaType: 'application/json'
4026
+ });
4027
+ }
4028
+ }
4029
+
4030
+ class AiFinetuningService {
4031
+ /**
4032
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4033
+ * @param org
4034
+ * @param username
4035
+ * @param dateCreated
4036
+ * @param numDataPoints
4037
+ * @param ordering Which field to use when ordering the results.
4038
+ * @param page A page number within the paginated result set.
4039
+ * @param pageSize Number of results to return per page.
4040
+ * @param retryAttempts
4041
+ * @param search A search term.
4042
+ * @param status * `pending` - Pending
4043
+ * * `processing` - Processing
4044
+ * * `completed` - Completed
4045
+ * * `failed` - Failed
4046
+ * @returns PaginatedDataSetList
4047
+ * @throws ApiError
4048
+ */
4049
+ static aiFinetuningV1OrgUserDatasetsList(org, username, dateCreated, numDataPoints, ordering, page, pageSize, retryAttempts, search, status) {
4050
+ return request(OpenAPI, {
4051
+ method: 'GET',
4052
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
4053
+ path: {
4054
+ 'org': org,
4055
+ 'username': username
4056
+ },
4057
+ query: {
4058
+ 'date_created': dateCreated,
4059
+ 'num_data_points': numDataPoints,
4060
+ 'ordering': ordering,
4061
+ 'page': page,
4062
+ 'page_size': pageSize,
4063
+ 'retry_attempts': retryAttempts,
4064
+ 'search': search,
4065
+ 'status': status
4066
+ }
4067
+ });
4068
+ }
4069
+ /**
4070
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4071
+ * @param org
4072
+ * @param username
4073
+ * @param requestBody
4074
+ * @returns DataSetCreate
4075
+ * @throws ApiError
4076
+ */
4077
+ static aiFinetuningV1OrgUserDatasetsCreate(org, username, requestBody) {
4078
+ return request(OpenAPI, {
4079
+ method: 'POST',
4080
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
4081
+ path: {
4082
+ 'org': org,
4083
+ 'username': username
4084
+ },
4085
+ body: requestBody,
4086
+ mediaType: 'application/json'
4087
+ });
4088
+ }
4089
+ /**
4090
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4091
+ * @param id A UUID string identifying this data set.
4092
+ * @param org
4093
+ * @param username
4094
+ * @returns DataSet
4095
+ * @throws ApiError
4096
+ */
4097
+ static aiFinetuningV1OrgUserDatasetsRetrieve(id, org, username) {
4098
+ return request(OpenAPI, {
4099
+ method: 'GET',
4100
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4101
+ path: {
4102
+ 'id': id,
4103
+ 'org': org,
4104
+ 'username': username
4105
+ }
4106
+ });
4107
+ }
4108
+ /**
4109
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4110
+ * @param id A UUID string identifying this data set.
4111
+ * @param org
4112
+ * @param username
4113
+ * @param requestBody
4114
+ * @returns DataSet
4115
+ * @throws ApiError
4116
+ */
4117
+ static aiFinetuningV1OrgUserDatasetsUpdate(id, org, username, requestBody) {
4118
+ return request(OpenAPI, {
4119
+ method: 'PUT',
4120
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4121
+ path: {
4122
+ 'id': id,
4123
+ 'org': org,
4124
+ 'username': username
4125
+ },
4126
+ body: requestBody,
4127
+ mediaType: 'application/json'
4128
+ });
4129
+ }
4130
+ /**
4131
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4132
+ * @param id A UUID string identifying this data set.
4133
+ * @param org
4134
+ * @param username
4135
+ * @param requestBody
4136
+ * @returns DataSet
4137
+ * @throws ApiError
4138
+ */
4139
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate(id, org, username, requestBody) {
4140
+ return request(OpenAPI, {
4141
+ method: 'PATCH',
4142
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4143
+ path: {
4144
+ 'id': id,
4145
+ 'org': org,
4146
+ 'username': username
4147
+ },
4148
+ body: requestBody,
4149
+ mediaType: 'application/json'
4150
+ });
4151
+ }
4152
+ /**
4153
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4154
+ * @param id A UUID string identifying this data set.
4155
+ * @param org
4156
+ * @param username
4157
+ * @returns void
4158
+ * @throws ApiError
4159
+ */
4160
+ static aiFinetuningV1OrgUserDatasetsDestroy(id, org, username) {
4161
+ return request(OpenAPI, {
4162
+ method: 'DELETE',
4163
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4164
+ path: {
4165
+ 'id': id,
4166
+ 'org': org,
4167
+ 'username': username
4168
+ }
4169
+ });
4170
+ }
4171
+ /**
4172
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4173
+ * @param org
4174
+ * @param username
4175
+ * @param baseModelName
4176
+ * @param dataset
4177
+ * @param dateCreated
4178
+ * @param fineTunedModel
4179
+ * @param lastModified
4180
+ * @param ordering Which field to use when ordering the results.
4181
+ * @param page A page number within the paginated result set.
4182
+ * @param pageSize Number of results to return per page.
4183
+ * @param preprocessDataset
4184
+ * @param provider * `openai` - Openai
4185
+ * @param search A search term.
4186
+ * @param status * `pending` - Pending
4187
+ * * `processing` - Processing
4188
+ * * `completed` - Completed
4189
+ * * `cancelled` - Cancelled
4190
+ * * `failed` - Failed
4191
+ * @returns PaginatedTrainingList
4192
+ * @throws ApiError
4193
+ */
4194
+ static aiFinetuningV1OrgUserTrainingsList(org, username, baseModelName, dataset, dateCreated, fineTunedModel, lastModified, ordering, page, pageSize, preprocessDataset, provider, search, status) {
4195
+ return request(OpenAPI, {
4196
+ method: 'GET',
4197
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
4198
+ path: {
4199
+ 'org': org,
4200
+ 'username': username
4201
+ },
4202
+ query: {
4203
+ 'base_model_name': baseModelName,
4204
+ 'dataset': dataset,
4205
+ 'date_created': dateCreated,
4206
+ 'fine_tuned_model': fineTunedModel,
4207
+ 'last_modified': lastModified,
4208
+ 'ordering': ordering,
4209
+ 'page': page,
4210
+ 'page_size': pageSize,
4211
+ 'preprocess_dataset': preprocessDataset,
4212
+ 'provider': provider,
4213
+ 'search': search,
4214
+ 'status': status
4215
+ }
4216
+ });
4217
+ }
4218
+ /**
4219
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4220
+ * @param org
4221
+ * @param username
4222
+ * @param requestBody
4223
+ * @returns TrainingCreate
4224
+ * @throws ApiError
4225
+ */
4226
+ static aiFinetuningV1OrgUserTrainingsCreate(org, username, requestBody) {
4227
+ return request(OpenAPI, {
4228
+ method: 'POST',
4229
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
4230
+ path: {
4231
+ 'org': org,
4232
+ 'username': username
4233
+ },
4234
+ body: requestBody,
4235
+ mediaType: 'application/json'
4236
+ });
4237
+ }
4238
+ /**
4239
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4240
+ * @param id A UUID string identifying this training.
4241
+ * @param org
4242
+ * @param username
4243
+ * @returns Training
4244
+ * @throws ApiError
4245
+ */
4246
+ static aiFinetuningV1OrgUserTrainingsRetrieve(id, org, username) {
4247
+ return request(OpenAPI, {
4248
+ method: 'GET',
4249
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4250
+ path: {
4251
+ 'id': id,
4252
+ 'org': org,
4253
+ 'username': username
4254
+ }
4255
+ });
4256
+ }
4257
+ /**
4258
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4259
+ * @param id A UUID string identifying this training.
4260
+ * @param org
4261
+ * @param username
4262
+ * @param requestBody
4263
+ * @returns TrainingCreate
4264
+ * @throws ApiError
4265
+ */
4266
+ static aiFinetuningV1OrgUserTrainingsUpdate(id, org, username, requestBody) {
4267
+ return request(OpenAPI, {
4268
+ method: 'PUT',
4269
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4270
+ path: {
4271
+ 'id': id,
4272
+ 'org': org,
4273
+ 'username': username
4274
+ },
4275
+ body: requestBody,
4276
+ mediaType: 'application/json'
4277
+ });
4278
+ }
4279
+ /**
4280
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4281
+ * @param id A UUID string identifying this training.
4282
+ * @param org
4283
+ * @param username
4284
+ * @param requestBody
4285
+ * @returns TrainingCreate
4286
+ * @throws ApiError
4287
+ */
4288
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate(id, org, username, requestBody) {
4289
+ return request(OpenAPI, {
4290
+ method: 'PATCH',
4291
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4292
+ path: {
4293
+ 'id': id,
4294
+ 'org': org,
4295
+ 'username': username
4296
+ },
4297
+ body: requestBody,
4298
+ mediaType: 'application/json'
4299
+ });
4300
+ }
4301
+ /**
4302
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4303
+ * @param id A UUID string identifying this training.
4304
+ * @param org
4305
+ * @param username
4306
+ * @returns void
4307
+ * @throws ApiError
4308
+ */
4309
+ static aiFinetuningV1OrgUserTrainingsDestroy(id, org, username) {
4310
+ return request(OpenAPI, {
4311
+ method: 'DELETE',
4312
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4313
+ path: {
4314
+ 'id': id,
4315
+ 'org': org,
4316
+ 'username': username
4317
+ }
4318
+ });
4319
+ }
4320
+ /**
4321
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
4322
+ * Filtering and pagination is allowed.
4323
+ *
4324
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
4325
+ * training list endpoint.
4326
+ * Returns:
4327
+ * Response: A paginated response containing the serialized fine-tuned models.
4328
+ * @param org
4329
+ * @param username
4330
+ * @returns Training
4331
+ * @throws ApiError
4332
+ */
4333
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve(org, username) {
4334
+ return request(OpenAPI, {
4335
+ method: 'GET',
4336
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
4337
+ path: {
4338
+ 'org': org,
4339
+ 'username': username
4340
+ }
4341
+ });
4342
+ }
4343
+ }
4344
+
3011
4345
  class AiIndexService {
3012
4346
  /**
3013
4347
  * Retrieve details of a specific document embedding.
@@ -28847,6 +30181,8 @@ class UserGroupsService {
28847
30181
 
28848
30182
  exports.AiAccountService = AiAccountService;
28849
30183
  exports.AiAnalyticsService = AiAnalyticsService;
30184
+ exports.AiBotService = AiBotService;
30185
+ exports.AiFinetuningService = AiFinetuningService;
28850
30186
  exports.AiIndexService = AiIndexService;
28851
30187
  exports.AiMarketingService = AiMarketingService;
28852
30188
  exports.AiMentorService = AiMentorService;