@iblai/iblai-api 3.35.4-ai → 3.35.4-ai-plus

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