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