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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/index.cjs.js +1345 -9
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1344 -10
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +1345 -9
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +40 -1
  8. package/dist/types/models/Bot.d.ts +15 -0
  9. package/dist/types/models/BotCommand.d.ts +6 -0
  10. package/dist/types/models/BotCreate.d.ts +12 -0
  11. package/dist/types/models/DataSet.d.ts +21 -0
  12. package/dist/types/models/DataSetCreate.d.ts +12 -0
  13. package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
  14. package/dist/types/models/DiscordConfig.d.ts +7 -0
  15. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  16. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  17. package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
  18. package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
  19. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  20. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  21. package/dist/types/models/PatchedDataSet.d.ts +21 -0
  22. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  23. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  24. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  25. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  26. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  27. package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
  28. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  29. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  30. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  31. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  32. package/dist/types/models/Provider63aEnum.d.ts +6 -0
  33. package/dist/types/models/SlackConfig.d.ts +8 -0
  34. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  35. package/dist/types/models/SlackWebhook.d.ts +6 -0
  36. package/dist/types/models/TeamsConfig.d.ts +7 -0
  37. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  38. package/dist/types/models/Training.d.ts +41 -0
  39. package/dist/types/models/TrainingCreate.d.ts +31 -0
  40. package/dist/types/models/Voice.d.ts +2 -2
  41. package/dist/types/models/{ProviderEnum.d.ts → VoiceProviderEnum.d.ts} +1 -1
  42. package/dist/types/models/WebexConfig.d.ts +10 -0
  43. package/dist/types/models/WebexWebhook.d.ts +4 -0
  44. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  45. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  46. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  47. package/dist/types/services/AiBotService.d.ts +486 -0
  48. package/dist/types/services/AiFinetuningService.d.ts +162 -0
  49. package/package.json +1 -1
  50. package/src/core/OpenAPI.ts +1 -1
  51. package/src/index.ts +40 -1
  52. package/src/models/Bot.ts +20 -0
  53. package/src/models/BotCommand.ts +11 -0
  54. package/src/models/BotCreate.ts +17 -0
  55. package/src/models/DataSet.ts +26 -0
  56. package/src/models/DataSetCreate.ts +17 -0
  57. package/src/models/DataSetStatusEnum.ts +16 -0
  58. package/src/models/DiscordConfig.ts +12 -0
  59. package/src/models/DiscordUserConfig.ts +15 -0
  60. package/src/models/DiscordWebhook.ts +11 -0
  61. package/src/models/PaginatedDataSetList.ts +12 -0
  62. package/src/models/PaginatedTrainingList.ts +12 -0
  63. package/src/models/PatchedBotCommand.ts +11 -0
  64. package/src/models/PatchedBotCreate.ts +17 -0
  65. package/src/models/PatchedDataSet.ts +26 -0
  66. package/src/models/PatchedDiscordConfig.ts +12 -0
  67. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  68. package/src/models/PatchedSlackConfig.ts +13 -0
  69. package/src/models/PatchedSlackUserConfig.ts +22 -0
  70. package/src/models/PatchedTeamsConfig.ts +12 -0
  71. package/src/models/PatchedTrainingCreate.ts +36 -0
  72. package/src/models/PatchedWebexConfig.ts +15 -0
  73. package/src/models/PatchedWhatsappConfig.ts +16 -0
  74. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  75. package/src/models/Provider05cEnum.ts +18 -0
  76. package/src/models/Provider63aEnum.ts +10 -0
  77. package/src/models/SlackConfig.ts +13 -0
  78. package/src/models/SlackUserConfig.ts +22 -0
  79. package/src/models/SlackWebhook.ts +11 -0
  80. package/src/models/TeamsConfig.ts +12 -0
  81. package/src/models/TeamsWebhook.ts +22 -0
  82. package/src/models/Training.ts +46 -0
  83. package/src/models/TrainingCreate.ts +36 -0
  84. package/src/models/Voice.ts +2 -2
  85. package/src/models/{ProviderEnum.ts → VoiceProviderEnum.ts} +1 -1
  86. package/src/models/WebexConfig.ts +15 -0
  87. package/src/models/WebexWebhook.ts +9 -0
  88. package/src/models/WhatAppWebHook.ts +8 -0
  89. package/src/models/WhatsappConfig.ts +16 -0
  90. package/src/models/WhatsappUserConfig.ts +15 -0
  91. package/src/services/AiBotService.ts +1174 -0
  92. package/src/services/AiFinetuningService.ts +402 -0
package/dist/index.cjs.js CHANGED
@@ -110,7 +110,7 @@ class CancelablePromise {
110
110
 
111
111
  const OpenAPI = {
112
112
  BASE: 'https://base.manager.iblai.app',
113
- VERSION: '3.35.2-ai',
113
+ VERSION: '3.35.2-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -203,6 +203,24 @@ exports.CourseCreationTaskStatusEnum = void 0;
203
203
  CourseCreationTaskStatusEnum["IN_PROGRESS"] = "In Progress";
204
204
  })(exports.CourseCreationTaskStatusEnum || (exports.CourseCreationTaskStatusEnum = {}));
205
205
 
206
+ /* generated using openapi-typescript-codegen -- do not edit */
207
+ /* istanbul ignore file */
208
+ /* tslint:disable */
209
+ /* eslint-disable */
210
+ /**
211
+ * * `pending` - Pending
212
+ * * `processing` - Processing
213
+ * * `completed` - Completed
214
+ * * `failed` - Failed
215
+ */
216
+ exports.DataSetStatusEnum = void 0;
217
+ (function (DataSetStatusEnum) {
218
+ DataSetStatusEnum["PENDING"] = "pending";
219
+ DataSetStatusEnum["PROCESSING"] = "processing";
220
+ DataSetStatusEnum["COMPLETED"] = "completed";
221
+ DataSetStatusEnum["FAILED"] = "failed";
222
+ })(exports.DataSetStatusEnum || (exports.DataSetStatusEnum = {}));
223
+
206
224
  /* generated using openapi-typescript-codegen -- do not edit */
207
225
  /* istanbul ignore file */
208
226
  /* tslint:disable */
@@ -383,21 +401,37 @@ exports.PromptVisibilityEnum = void 0;
383
401
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
384
402
  })(exports.PromptVisibilityEnum || (exports.PromptVisibilityEnum = {}));
385
403
 
404
+ /* generated using openapi-typescript-codegen -- do not edit */
405
+ /* istanbul ignore file */
406
+ /* tslint:disable */
407
+ /* eslint-disable */
408
+ /**
409
+ * * `webex` - Webex
410
+ * * `slack` - Slack
411
+ * * `whatsapp` - Whatsapp
412
+ * * `discord` - Discord
413
+ * * `teams` - Teams
414
+ */
415
+ exports.Provider05cEnum = void 0;
416
+ (function (Provider05cEnum) {
417
+ Provider05cEnum["WEBEX"] = "webex";
418
+ Provider05cEnum["SLACK"] = "slack";
419
+ Provider05cEnum["WHATSAPP"] = "whatsapp";
420
+ Provider05cEnum["DISCORD"] = "discord";
421
+ Provider05cEnum["TEAMS"] = "teams";
422
+ })(exports.Provider05cEnum || (exports.Provider05cEnum = {}));
423
+
386
424
  /* generated using openapi-typescript-codegen -- do not edit */
387
425
  /* istanbul ignore file */
388
426
  /* tslint:disable */
389
427
  /* eslint-disable */
390
428
  /**
391
429
  * * `openai` - Openai
392
- * * `google` - Google
393
- * * `elevenlabs` - Elevenlabs
394
430
  */
395
- exports.ProviderEnum = void 0;
396
- (function (ProviderEnum) {
397
- ProviderEnum["OPENAI"] = "openai";
398
- ProviderEnum["GOOGLE"] = "google";
399
- ProviderEnum["ELEVENLABS"] = "elevenlabs";
400
- })(exports.ProviderEnum || (exports.ProviderEnum = {}));
431
+ exports.Provider63aEnum = void 0;
432
+ (function (Provider63aEnum) {
433
+ Provider63aEnum["OPENAI"] = "openai";
434
+ })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
401
435
 
402
436
  /* generated using openapi-typescript-codegen -- do not edit */
403
437
  /* istanbul ignore file */
@@ -553,6 +587,22 @@ exports.TypeC42Enum = void 0;
553
587
  TypeC42Enum["ASSESSMENT"] = "assessment";
554
588
  })(exports.TypeC42Enum || (exports.TypeC42Enum = {}));
555
589
 
590
+ /* generated using openapi-typescript-codegen -- do not edit */
591
+ /* istanbul ignore file */
592
+ /* tslint:disable */
593
+ /* eslint-disable */
594
+ /**
595
+ * * `openai` - Openai
596
+ * * `google` - Google
597
+ * * `elevenlabs` - Elevenlabs
598
+ */
599
+ exports.VoiceProviderEnum = void 0;
600
+ (function (VoiceProviderEnum) {
601
+ VoiceProviderEnum["OPENAI"] = "openai";
602
+ VoiceProviderEnum["GOOGLE"] = "google";
603
+ VoiceProviderEnum["ELEVENLABS"] = "elevenlabs";
604
+ })(exports.VoiceProviderEnum || (exports.VoiceProviderEnum = {}));
605
+
556
606
  /* generated using openapi-typescript-codegen -- do not edit */
557
607
  /* istanbul ignore file */
558
608
  /* tslint:disable */
@@ -2864,6 +2914,1290 @@ class AiAnalyticsService {
2864
2914
  }
2865
2915
  }
2866
2916
 
2917
+ class AiBotService {
2918
+ /**
2919
+ * Create modify and update bot information for a specific tenant.
2920
+ * @param org
2921
+ * @returns Bot
2922
+ * @throws ApiError
2923
+ */
2924
+ static aiBotV1BotsBotList(org) {
2925
+ return request(OpenAPI, {
2926
+ method: 'GET',
2927
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
2928
+ path: {
2929
+ 'org': org
2930
+ }
2931
+ });
2932
+ }
2933
+ /**
2934
+ * Create modify and update bot information for a specific tenant.
2935
+ * @param org
2936
+ * @param requestBody
2937
+ * @returns BotCreate
2938
+ * @throws ApiError
2939
+ */
2940
+ static aiBotV1BotsBotCreate(org, requestBody) {
2941
+ return request(OpenAPI, {
2942
+ method: 'POST',
2943
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
2944
+ path: {
2945
+ 'org': org
2946
+ },
2947
+ body: requestBody,
2948
+ mediaType: 'application/json'
2949
+ });
2950
+ }
2951
+ /**
2952
+ * Create slash commands for a specific bot
2953
+ * eg. /iblai-baseline
2954
+ * @param org
2955
+ * @returns BotCommand
2956
+ * @throws ApiError
2957
+ */
2958
+ static aiBotV1BotsBotCommandsList(org) {
2959
+ return request(OpenAPI, {
2960
+ method: 'GET',
2961
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
2962
+ path: {
2963
+ 'org': org
2964
+ }
2965
+ });
2966
+ }
2967
+ /**
2968
+ * Create slash commands for a specific bot
2969
+ * eg. /iblai-baseline
2970
+ * @param org
2971
+ * @param requestBody
2972
+ * @returns BotCommand
2973
+ * @throws ApiError
2974
+ */
2975
+ static aiBotV1BotsBotCommandsCreate(org, requestBody) {
2976
+ return request(OpenAPI, {
2977
+ method: 'POST',
2978
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
2979
+ path: {
2980
+ 'org': org
2981
+ },
2982
+ body: requestBody,
2983
+ mediaType: 'application/json'
2984
+ });
2985
+ }
2986
+ /**
2987
+ * Create slash commands for a specific bot
2988
+ * eg. /iblai-baseline
2989
+ * @param id A unique integer value identifying this bot command.
2990
+ * @param org
2991
+ * @returns BotCommand
2992
+ * @throws ApiError
2993
+ */
2994
+ static aiBotV1BotsBotCommandsRetrieve(id, org) {
2995
+ return request(OpenAPI, {
2996
+ method: 'GET',
2997
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
2998
+ path: {
2999
+ 'id': id,
3000
+ 'org': org
3001
+ }
3002
+ });
3003
+ }
3004
+ /**
3005
+ * Create slash commands for a specific bot
3006
+ * eg. /iblai-baseline
3007
+ * @param id A unique integer value identifying this bot command.
3008
+ * @param org
3009
+ * @param requestBody
3010
+ * @returns BotCommand
3011
+ * @throws ApiError
3012
+ */
3013
+ static aiBotV1BotsBotCommandsUpdate(id, org, requestBody) {
3014
+ return request(OpenAPI, {
3015
+ method: 'PUT',
3016
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3017
+ path: {
3018
+ 'id': id,
3019
+ 'org': org
3020
+ },
3021
+ body: requestBody,
3022
+ mediaType: 'application/json'
3023
+ });
3024
+ }
3025
+ /**
3026
+ * Create slash commands for a specific bot
3027
+ * eg. /iblai-baseline
3028
+ * @param id A unique integer value identifying this bot command.
3029
+ * @param org
3030
+ * @param requestBody
3031
+ * @returns BotCommand
3032
+ * @throws ApiError
3033
+ */
3034
+ static aiBotV1BotsBotCommandsPartialUpdate(id, org, requestBody) {
3035
+ return request(OpenAPI, {
3036
+ method: 'PATCH',
3037
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3038
+ path: {
3039
+ 'id': id,
3040
+ 'org': org
3041
+ },
3042
+ body: requestBody,
3043
+ mediaType: 'application/json'
3044
+ });
3045
+ }
3046
+ /**
3047
+ * Create slash commands for a specific bot
3048
+ * eg. /iblai-baseline
3049
+ * @param id A unique integer value identifying this bot command.
3050
+ * @param org
3051
+ * @returns void
3052
+ * @throws ApiError
3053
+ */
3054
+ static aiBotV1BotsBotCommandsDestroy(id, org) {
3055
+ return request(OpenAPI, {
3056
+ method: 'DELETE',
3057
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3058
+ path: {
3059
+ 'id': id,
3060
+ 'org': org
3061
+ }
3062
+ });
3063
+ }
3064
+ /**
3065
+ * Create modify and update bot information for a specific tenant.
3066
+ * @param id A unique integer value identifying this bot.
3067
+ * @param org
3068
+ * @returns Bot
3069
+ * @throws ApiError
3070
+ */
3071
+ static aiBotV1BotsBotRetrieve(id, org) {
3072
+ return request(OpenAPI, {
3073
+ method: 'GET',
3074
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3075
+ path: {
3076
+ 'id': id,
3077
+ 'org': org
3078
+ }
3079
+ });
3080
+ }
3081
+ /**
3082
+ * Create modify and update bot information for a specific tenant.
3083
+ * @param id A unique integer value identifying this bot.
3084
+ * @param org
3085
+ * @param requestBody
3086
+ * @returns BotCreate
3087
+ * @throws ApiError
3088
+ */
3089
+ static aiBotV1BotsBotUpdate(id, org, requestBody) {
3090
+ return request(OpenAPI, {
3091
+ method: 'PUT',
3092
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3093
+ path: {
3094
+ 'id': id,
3095
+ 'org': org
3096
+ },
3097
+ body: requestBody,
3098
+ mediaType: 'application/json'
3099
+ });
3100
+ }
3101
+ /**
3102
+ * Create modify and update bot information for a specific tenant.
3103
+ * @param id A unique integer value identifying this bot.
3104
+ * @param org
3105
+ * @param requestBody
3106
+ * @returns BotCreate
3107
+ * @throws ApiError
3108
+ */
3109
+ static aiBotV1BotsBotPartialUpdate(id, org, requestBody) {
3110
+ return request(OpenAPI, {
3111
+ method: 'PATCH',
3112
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3113
+ path: {
3114
+ 'id': id,
3115
+ 'org': org
3116
+ },
3117
+ body: requestBody,
3118
+ mediaType: 'application/json'
3119
+ });
3120
+ }
3121
+ /**
3122
+ * Create modify and update bot information for a specific tenant.
3123
+ * @param id A unique integer value identifying this bot.
3124
+ * @param org
3125
+ * @returns void
3126
+ * @throws ApiError
3127
+ */
3128
+ static aiBotV1BotsBotDestroy(id, org) {
3129
+ return request(OpenAPI, {
3130
+ method: 'DELETE',
3131
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3132
+ path: {
3133
+ 'id': id,
3134
+ 'org': org
3135
+ }
3136
+ });
3137
+ }
3138
+ /**
3139
+ * Create modify and update bot information for a specific tenant.
3140
+ * @param id A unique integer value identifying this bot.
3141
+ * @param org
3142
+ * @returns DiscordConfig
3143
+ * @throws ApiError
3144
+ */
3145
+ static aiBotV1BotsBotConfigDiscordRetrieve(id, org) {
3146
+ return request(OpenAPI, {
3147
+ method: 'GET',
3148
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
3149
+ path: {
3150
+ 'id': id,
3151
+ 'org': org
3152
+ }
3153
+ });
3154
+ }
3155
+ /**
3156
+ * Create modify and update bot information for a specific tenant.
3157
+ * @param id A unique integer value identifying this bot.
3158
+ * @param org
3159
+ * @param requestBody
3160
+ * @returns DiscordConfig
3161
+ * @throws ApiError
3162
+ */
3163
+ static aiBotV1BotsBotConfigDiscordPartialUpdate(id, org, requestBody) {
3164
+ return request(OpenAPI, {
3165
+ method: 'PATCH',
3166
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
3167
+ path: {
3168
+ 'id': id,
3169
+ 'org': org
3170
+ },
3171
+ body: requestBody,
3172
+ mediaType: 'application/json'
3173
+ });
3174
+ }
3175
+ /**
3176
+ * Create modify and update bot information for a specific tenant.
3177
+ * @param id A unique integer value identifying this bot.
3178
+ * @param org
3179
+ * @returns SlackConfig
3180
+ * @throws ApiError
3181
+ */
3182
+ static aiBotV1BotsBotConfigSlackRetrieve(id, org) {
3183
+ return request(OpenAPI, {
3184
+ method: 'GET',
3185
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
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
+ * @param requestBody
3197
+ * @returns SlackConfig
3198
+ * @throws ApiError
3199
+ */
3200
+ static aiBotV1BotsBotConfigSlackUpdateCreate(id, org, requestBody) {
3201
+ return request(OpenAPI, {
3202
+ method: 'POST',
3203
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3204
+ path: {
3205
+ 'id': id,
3206
+ 'org': org
3207
+ },
3208
+ body: requestBody,
3209
+ mediaType: 'application/json'
3210
+ });
3211
+ }
3212
+ /**
3213
+ * Create modify and update bot information for a specific tenant.
3214
+ * @param id A unique integer value identifying this bot.
3215
+ * @param org
3216
+ * @param requestBody
3217
+ * @returns SlackConfig
3218
+ * @throws ApiError
3219
+ */
3220
+ static aiBotV1BotsBotConfigSlackUpdateUpdate(id, org, requestBody) {
3221
+ return request(OpenAPI, {
3222
+ method: 'PUT',
3223
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3224
+ path: {
3225
+ 'id': id,
3226
+ 'org': org
3227
+ },
3228
+ body: requestBody,
3229
+ mediaType: 'application/json'
3230
+ });
3231
+ }
3232
+ /**
3233
+ * Create modify and update bot information for a specific tenant.
3234
+ * @param id A unique integer value identifying this bot.
3235
+ * @param org
3236
+ * @param requestBody
3237
+ * @returns SlackConfig
3238
+ * @throws ApiError
3239
+ */
3240
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate(id, org, requestBody) {
3241
+ return request(OpenAPI, {
3242
+ method: 'PATCH',
3243
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3244
+ path: {
3245
+ 'id': id,
3246
+ 'org': org
3247
+ },
3248
+ body: requestBody,
3249
+ mediaType: 'application/json'
3250
+ });
3251
+ }
3252
+ /**
3253
+ * Create modify and update bot information for a specific tenant.
3254
+ * @param id A unique integer value identifying this bot.
3255
+ * @param org
3256
+ * @returns TeamsConfig
3257
+ * @throws ApiError
3258
+ */
3259
+ static aiBotV1BotsBotConfigTeamsRetrieve(id, org) {
3260
+ return request(OpenAPI, {
3261
+ method: 'GET',
3262
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
3263
+ path: {
3264
+ 'id': id,
3265
+ 'org': org
3266
+ }
3267
+ });
3268
+ }
3269
+ /**
3270
+ * Create modify and update bot information for a specific tenant.
3271
+ * @param id A unique integer value identifying this bot.
3272
+ * @param org
3273
+ * @param requestBody
3274
+ * @returns TeamsConfig
3275
+ * @throws ApiError
3276
+ */
3277
+ static aiBotV1BotsBotConfigTeamsUpdateCreate(id, org, requestBody) {
3278
+ return request(OpenAPI, {
3279
+ method: 'POST',
3280
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3281
+ path: {
3282
+ 'id': id,
3283
+ 'org': org
3284
+ },
3285
+ body: requestBody,
3286
+ mediaType: 'application/json'
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 TeamsConfig
3295
+ * @throws ApiError
3296
+ */
3297
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate(id, org, requestBody) {
3298
+ return request(OpenAPI, {
3299
+ method: 'PUT',
3300
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
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
+ * @param requestBody
3314
+ * @returns TeamsConfig
3315
+ * @throws ApiError
3316
+ */
3317
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate(id, org, requestBody) {
3318
+ return request(OpenAPI, {
3319
+ method: 'PATCH',
3320
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3321
+ path: {
3322
+ 'id': id,
3323
+ 'org': org
3324
+ },
3325
+ body: requestBody,
3326
+ mediaType: 'application/json'
3327
+ });
3328
+ }
3329
+ /**
3330
+ * Create modify and update bot information for a specific tenant.
3331
+ * @param id A unique integer value identifying this bot.
3332
+ * @param org
3333
+ * @returns WebexConfig
3334
+ * @throws ApiError
3335
+ */
3336
+ static aiBotV1BotsBotConfigWebexRetrieve(id, org) {
3337
+ return request(OpenAPI, {
3338
+ method: 'GET',
3339
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
3340
+ path: {
3341
+ 'id': id,
3342
+ 'org': org
3343
+ }
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 WebexConfig
3352
+ * @throws ApiError
3353
+ */
3354
+ static aiBotV1BotsBotConfigWebexPartialUpdate(id, org, requestBody) {
3355
+ return request(OpenAPI, {
3356
+ method: 'PATCH',
3357
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
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
+ * @returns WhatsappConfig
3371
+ * @throws ApiError
3372
+ */
3373
+ static aiBotV1BotsBotConfigWhatsappRetrieve(id, org) {
3374
+ return request(OpenAPI, {
3375
+ method: 'GET',
3376
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
3377
+ path: {
3378
+ 'id': id,
3379
+ 'org': org
3380
+ }
3381
+ });
3382
+ }
3383
+ /**
3384
+ * Create modify and update bot information for a specific tenant.
3385
+ * @param id A unique integer value identifying this bot.
3386
+ * @param org
3387
+ * @param requestBody
3388
+ * @returns WhatsappConfig
3389
+ * @throws ApiError
3390
+ */
3391
+ static aiBotV1BotsBotWhatsappConfigUpdate(id, org, requestBody) {
3392
+ return request(OpenAPI, {
3393
+ method: 'PUT',
3394
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
3395
+ path: {
3396
+ 'id': id,
3397
+ 'org': org
3398
+ },
3399
+ body: requestBody,
3400
+ mediaType: 'application/json'
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 WhatsappConfig
3409
+ * @throws ApiError
3410
+ */
3411
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate(id, org, requestBody) {
3412
+ return request(OpenAPI, {
3413
+ method: 'PATCH',
3414
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
3415
+ path: {
3416
+ 'id': id,
3417
+ 'org': org
3418
+ },
3419
+ body: requestBody,
3420
+ mediaType: 'application/json'
3421
+ });
3422
+ }
3423
+ /**
3424
+ * Setup discord user id linkage with discord bots
3425
+ * this will be used to authenticate the user when interracting with discord bots.
3426
+ * the user id can be copied from the discord app after tapping on the user profile.
3427
+ * @param org
3428
+ * @returns DiscordUserConfig
3429
+ * @throws ApiError
3430
+ */
3431
+ static aiBotV1BotsDiscordUserConfigList(org) {
3432
+ return request(OpenAPI, {
3433
+ method: 'GET',
3434
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
3435
+ path: {
3436
+ 'org': org
3437
+ }
3438
+ });
3439
+ }
3440
+ /**
3441
+ * Setup discord user id linkage with discord bots
3442
+ * this will be used to authenticate the user when interracting with discord bots.
3443
+ * the user id can be copied from the discord app after tapping on the user profile.
3444
+ * @param org
3445
+ * @param requestBody
3446
+ * @returns DiscordUserConfig
3447
+ * @throws ApiError
3448
+ */
3449
+ static aiBotV1BotsDiscordUserConfigCreate(org, requestBody) {
3450
+ return request(OpenAPI, {
3451
+ method: 'POST',
3452
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
3453
+ path: {
3454
+ 'org': org
3455
+ },
3456
+ body: requestBody,
3457
+ mediaType: 'application/json'
3458
+ });
3459
+ }
3460
+ /**
3461
+ * Setup discord user id linkage with discord bots
3462
+ * this will be used to authenticate the user when interracting with discord bots.
3463
+ * the user id can be copied from the discord app after tapping on the user profile.
3464
+ * @param id A unique integer value identifying this discord user config.
3465
+ * @param org
3466
+ * @returns DiscordUserConfig
3467
+ * @throws ApiError
3468
+ */
3469
+ static aiBotV1BotsDiscordUserConfigRetrieve(id, org) {
3470
+ return request(OpenAPI, {
3471
+ method: 'GET',
3472
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3473
+ path: {
3474
+ 'id': id,
3475
+ 'org': org
3476
+ }
3477
+ });
3478
+ }
3479
+ /**
3480
+ * Setup discord user id linkage with discord bots
3481
+ * this will be used to authenticate the user when interracting with discord bots.
3482
+ * the user id can be copied from the discord app after tapping on the user profile.
3483
+ * @param id A unique integer value identifying this discord user config.
3484
+ * @param org
3485
+ * @param requestBody
3486
+ * @returns DiscordUserConfig
3487
+ * @throws ApiError
3488
+ */
3489
+ static aiBotV1BotsDiscordUserConfigUpdate(id, org, requestBody) {
3490
+ return request(OpenAPI, {
3491
+ method: 'PUT',
3492
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3493
+ path: {
3494
+ 'id': id,
3495
+ 'org': org
3496
+ },
3497
+ body: requestBody,
3498
+ mediaType: 'application/json'
3499
+ });
3500
+ }
3501
+ /**
3502
+ * Setup discord user id linkage with discord bots
3503
+ * this will be used to authenticate the user when interracting with discord bots.
3504
+ * the user id can be copied from the discord app after tapping on the user profile.
3505
+ * @param id A unique integer value identifying this discord user config.
3506
+ * @param org
3507
+ * @param requestBody
3508
+ * @returns DiscordUserConfig
3509
+ * @throws ApiError
3510
+ */
3511
+ static aiBotV1BotsDiscordUserConfigPartialUpdate(id, org, requestBody) {
3512
+ return request(OpenAPI, {
3513
+ method: 'PATCH',
3514
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3515
+ path: {
3516
+ 'id': id,
3517
+ 'org': org
3518
+ },
3519
+ body: requestBody,
3520
+ mediaType: 'application/json'
3521
+ });
3522
+ }
3523
+ /**
3524
+ * Setup discord user id linkage with discord bots
3525
+ * this will be used to authenticate the user when interracting with discord bots.
3526
+ * the user id can be copied from the discord app after tapping on the user profile.
3527
+ * @param id A unique integer value identifying this discord user config.
3528
+ * @param org
3529
+ * @returns void
3530
+ * @throws ApiError
3531
+ */
3532
+ static aiBotV1BotsDiscordUserConfigDestroy(id, org) {
3533
+ return request(OpenAPI, {
3534
+ method: 'DELETE',
3535
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3536
+ path: {
3537
+ 'id': id,
3538
+ 'org': org
3539
+ }
3540
+ });
3541
+ }
3542
+ /**
3543
+ * Setup slack username and domain linkage with slack bots
3544
+ * this will be used to authenticate the user when interracting with slack bots.
3545
+ * @param org
3546
+ * @returns SlackUserConfig
3547
+ * @throws ApiError
3548
+ */
3549
+ static aiBotV1BotsSlackUserConfigList(org) {
3550
+ return request(OpenAPI, {
3551
+ method: 'GET',
3552
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
3553
+ path: {
3554
+ 'org': org
3555
+ }
3556
+ });
3557
+ }
3558
+ /**
3559
+ * Setup slack username and domain linkage with slack bots
3560
+ * this will be used to authenticate the user when interracting with slack bots.
3561
+ * @param org
3562
+ * @param requestBody
3563
+ * @returns SlackUserConfig
3564
+ * @throws ApiError
3565
+ */
3566
+ static aiBotV1BotsSlackUserConfigCreate(org, requestBody) {
3567
+ return request(OpenAPI, {
3568
+ method: 'POST',
3569
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
3570
+ path: {
3571
+ 'org': org
3572
+ },
3573
+ body: requestBody,
3574
+ mediaType: 'application/json'
3575
+ });
3576
+ }
3577
+ /**
3578
+ * Setup slack username and domain linkage with slack bots
3579
+ * this will be used to authenticate the user when interracting with slack bots.
3580
+ * @param id A unique integer value identifying this slack user config.
3581
+ * @param org
3582
+ * @returns SlackUserConfig
3583
+ * @throws ApiError
3584
+ */
3585
+ static aiBotV1BotsSlackUserConfigRetrieve(id, org) {
3586
+ return request(OpenAPI, {
3587
+ method: 'GET',
3588
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3589
+ path: {
3590
+ 'id': id,
3591
+ 'org': org
3592
+ }
3593
+ });
3594
+ }
3595
+ /**
3596
+ * Setup slack username and domain linkage with slack bots
3597
+ * this will be used to authenticate the user when interracting with slack bots.
3598
+ * @param id A unique integer value identifying this slack user config.
3599
+ * @param org
3600
+ * @param requestBody
3601
+ * @returns SlackUserConfig
3602
+ * @throws ApiError
3603
+ */
3604
+ static aiBotV1BotsSlackUserConfigUpdate(id, org, requestBody) {
3605
+ return request(OpenAPI, {
3606
+ method: 'PUT',
3607
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3608
+ path: {
3609
+ 'id': id,
3610
+ 'org': org
3611
+ },
3612
+ body: requestBody,
3613
+ mediaType: 'application/json'
3614
+ });
3615
+ }
3616
+ /**
3617
+ * Setup slack username and domain linkage with slack bots
3618
+ * this will be used to authenticate the user when interracting with slack bots.
3619
+ * @param id A unique integer value identifying this slack user config.
3620
+ * @param org
3621
+ * @param requestBody
3622
+ * @returns SlackUserConfig
3623
+ * @throws ApiError
3624
+ */
3625
+ static aiBotV1BotsSlackUserConfigPartialUpdate(id, org, requestBody) {
3626
+ return request(OpenAPI, {
3627
+ method: 'PATCH',
3628
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3629
+ path: {
3630
+ 'id': id,
3631
+ 'org': org
3632
+ },
3633
+ body: requestBody,
3634
+ mediaType: 'application/json'
3635
+ });
3636
+ }
3637
+ /**
3638
+ * Setup slack username and domain linkage with slack bots
3639
+ * this will be used to authenticate the user when interracting with slack bots.
3640
+ * @param id A unique integer value identifying this slack user config.
3641
+ * @param org
3642
+ * @returns void
3643
+ * @throws ApiError
3644
+ */
3645
+ static aiBotV1BotsSlackUserConfigDestroy(id, org) {
3646
+ return request(OpenAPI, {
3647
+ method: 'DELETE',
3648
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3649
+ path: {
3650
+ 'id': id,
3651
+ 'org': org
3652
+ }
3653
+ });
3654
+ }
3655
+ /**
3656
+ * Setup phone number linkage with whatsapp bots
3657
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3658
+ * @param org
3659
+ * @returns WhatsappUserConfig
3660
+ * @throws ApiError
3661
+ */
3662
+ static aiBotV1BotsWhatsappUserConfigList(org) {
3663
+ return request(OpenAPI, {
3664
+ method: 'GET',
3665
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
3666
+ path: {
3667
+ 'org': org
3668
+ }
3669
+ });
3670
+ }
3671
+ /**
3672
+ * Setup phone number linkage with whatsapp bots
3673
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3674
+ * @param org
3675
+ * @param requestBody
3676
+ * @returns WhatsappUserConfig
3677
+ * @throws ApiError
3678
+ */
3679
+ static aiBotV1BotsWhatsappUserConfigCreate(org, requestBody) {
3680
+ return request(OpenAPI, {
3681
+ method: 'POST',
3682
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
3683
+ path: {
3684
+ 'org': org
3685
+ },
3686
+ body: requestBody,
3687
+ mediaType: 'application/json'
3688
+ });
3689
+ }
3690
+ /**
3691
+ * Setup phone number linkage with whatsapp bots
3692
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3693
+ * @param id A unique integer value identifying this whatsapp user config.
3694
+ * @param org
3695
+ * @returns WhatsappUserConfig
3696
+ * @throws ApiError
3697
+ */
3698
+ static aiBotV1BotsWhatsappUserConfigRetrieve(id, org) {
3699
+ return request(OpenAPI, {
3700
+ method: 'GET',
3701
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3702
+ path: {
3703
+ 'id': id,
3704
+ 'org': org
3705
+ }
3706
+ });
3707
+ }
3708
+ /**
3709
+ * Setup phone number linkage with whatsapp bots
3710
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3711
+ * @param id A unique integer value identifying this whatsapp user config.
3712
+ * @param org
3713
+ * @param requestBody
3714
+ * @returns WhatsappUserConfig
3715
+ * @throws ApiError
3716
+ */
3717
+ static aiBotV1BotsWhatsappUserConfigUpdate(id, org, requestBody) {
3718
+ return request(OpenAPI, {
3719
+ method: 'PUT',
3720
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3721
+ path: {
3722
+ 'id': id,
3723
+ 'org': org
3724
+ },
3725
+ body: requestBody,
3726
+ mediaType: 'application/json'
3727
+ });
3728
+ }
3729
+ /**
3730
+ * Setup phone number linkage with whatsapp bots
3731
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3732
+ * @param id A unique integer value identifying this whatsapp user config.
3733
+ * @param org
3734
+ * @param requestBody
3735
+ * @returns WhatsappUserConfig
3736
+ * @throws ApiError
3737
+ */
3738
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate(id, org, requestBody) {
3739
+ return request(OpenAPI, {
3740
+ method: 'PATCH',
3741
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3742
+ path: {
3743
+ 'id': id,
3744
+ 'org': org
3745
+ },
3746
+ body: requestBody,
3747
+ mediaType: 'application/json'
3748
+ });
3749
+ }
3750
+ /**
3751
+ * Setup phone number linkage with whatsapp bots
3752
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
3753
+ * @param id A unique integer value identifying this whatsapp user config.
3754
+ * @param org
3755
+ * @returns void
3756
+ * @throws ApiError
3757
+ */
3758
+ static aiBotV1BotsWhatsappUserConfigDestroy(id, org) {
3759
+ return request(OpenAPI, {
3760
+ method: 'DELETE',
3761
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3762
+ path: {
3763
+ 'id': id,
3764
+ 'org': org
3765
+ }
3766
+ });
3767
+ }
3768
+ /**
3769
+ * Webhook endpoint to receive and process discord messages.
3770
+ * @param name
3771
+ * @param org
3772
+ * @param requestBody
3773
+ * @returns DiscordWebhook
3774
+ * @throws ApiError
3775
+ */
3776
+ static aiBotV1BotsWebhooksDiscordCreate(name, org, requestBody) {
3777
+ return request(OpenAPI, {
3778
+ method: 'POST',
3779
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
3780
+ path: {
3781
+ 'name': name,
3782
+ 'org': org
3783
+ },
3784
+ body: requestBody,
3785
+ mediaType: 'application/json'
3786
+ });
3787
+ }
3788
+ /**
3789
+ * @param name
3790
+ * @param org
3791
+ * @param requestBody
3792
+ * @returns SlackWebhook
3793
+ * @throws ApiError
3794
+ */
3795
+ static aiBotV1BotsWebhooksSlackCreate(name, org, requestBody) {
3796
+ return request(OpenAPI, {
3797
+ method: 'POST',
3798
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
3799
+ path: {
3800
+ 'name': name,
3801
+ 'org': org
3802
+ },
3803
+ body: requestBody,
3804
+ mediaType: 'application/json'
3805
+ });
3806
+ }
3807
+ /**
3808
+ * @param name
3809
+ * @param org
3810
+ * @param requestBody
3811
+ * @returns TeamsWebhook
3812
+ * @throws ApiError
3813
+ */
3814
+ static aiBotV1BotsWebhooksTeamsCreate(name, org, requestBody) {
3815
+ return request(OpenAPI, {
3816
+ method: 'POST',
3817
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
3818
+ path: {
3819
+ 'name': name,
3820
+ 'org': org
3821
+ },
3822
+ body: requestBody,
3823
+ mediaType: 'application/json'
3824
+ });
3825
+ }
3826
+ /**
3827
+ * Webhook endpoint to receive and process discord messages.
3828
+ * @param name
3829
+ * @param org
3830
+ * @param requestBody
3831
+ * @returns WebexWebhook
3832
+ * @throws ApiError
3833
+ */
3834
+ static aiBotV1BotsWebhooksWebexCreate(name, org, requestBody) {
3835
+ return request(OpenAPI, {
3836
+ method: 'POST',
3837
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
3838
+ path: {
3839
+ 'name': name,
3840
+ 'org': org
3841
+ },
3842
+ body: requestBody,
3843
+ mediaType: 'application/json'
3844
+ });
3845
+ }
3846
+ /**
3847
+ * Respond to whatsapp's webhook challenge.
3848
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
3849
+ * @param name
3850
+ * @param org
3851
+ * @returns WhatAppWebHook
3852
+ * @throws ApiError
3853
+ */
3854
+ static aiBotV1BotsWebhooksWhatsappRetrieve(name, org) {
3855
+ return request(OpenAPI, {
3856
+ method: 'GET',
3857
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
3858
+ path: {
3859
+ 'name': name,
3860
+ 'org': org
3861
+ }
3862
+ });
3863
+ }
3864
+ /**
3865
+ * Accept and process webhook events from whatsapp.
3866
+ * @param name
3867
+ * @param org
3868
+ * @param requestBody
3869
+ * @returns WhatAppWebHook
3870
+ * @throws ApiError
3871
+ */
3872
+ static aiBotV1BotsWebhooksWhatsappCreate(name, org, requestBody) {
3873
+ return request(OpenAPI, {
3874
+ method: 'POST',
3875
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
3876
+ path: {
3877
+ 'name': name,
3878
+ 'org': org
3879
+ },
3880
+ body: requestBody,
3881
+ mediaType: 'application/json'
3882
+ });
3883
+ }
3884
+ }
3885
+
3886
+ class AiFinetuningService {
3887
+ /**
3888
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3889
+ * @param org
3890
+ * @param username
3891
+ * @param dateCreated
3892
+ * @param numDataPoints
3893
+ * @param ordering Which field to use when ordering the results.
3894
+ * @param page A page number within the paginated result set.
3895
+ * @param pageSize Number of results to return per page.
3896
+ * @param retryAttempts
3897
+ * @param search A search term.
3898
+ * @param status * `pending` - Pending
3899
+ * * `processing` - Processing
3900
+ * * `completed` - Completed
3901
+ * * `failed` - Failed
3902
+ * @returns PaginatedDataSetList
3903
+ * @throws ApiError
3904
+ */
3905
+ static aiFinetuningV1OrgUserDatasetsList(org, username, dateCreated, numDataPoints, ordering, page, pageSize, retryAttempts, search, status) {
3906
+ return request(OpenAPI, {
3907
+ method: 'GET',
3908
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
3909
+ path: {
3910
+ 'org': org,
3911
+ 'username': username
3912
+ },
3913
+ query: {
3914
+ 'date_created': dateCreated,
3915
+ 'num_data_points': numDataPoints,
3916
+ 'ordering': ordering,
3917
+ 'page': page,
3918
+ 'page_size': pageSize,
3919
+ 'retry_attempts': retryAttempts,
3920
+ 'search': search,
3921
+ 'status': status
3922
+ }
3923
+ });
3924
+ }
3925
+ /**
3926
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3927
+ * @param org
3928
+ * @param username
3929
+ * @param requestBody
3930
+ * @returns DataSetCreate
3931
+ * @throws ApiError
3932
+ */
3933
+ static aiFinetuningV1OrgUserDatasetsCreate(org, username, requestBody) {
3934
+ return request(OpenAPI, {
3935
+ method: 'POST',
3936
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
3937
+ path: {
3938
+ 'org': org,
3939
+ 'username': username
3940
+ },
3941
+ body: requestBody,
3942
+ mediaType: 'application/json'
3943
+ });
3944
+ }
3945
+ /**
3946
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3947
+ * @param id A UUID string identifying this data set.
3948
+ * @param org
3949
+ * @param username
3950
+ * @returns DataSet
3951
+ * @throws ApiError
3952
+ */
3953
+ static aiFinetuningV1OrgUserDatasetsRetrieve(id, org, username) {
3954
+ return request(OpenAPI, {
3955
+ method: 'GET',
3956
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
3957
+ path: {
3958
+ 'id': id,
3959
+ 'org': org,
3960
+ 'username': username
3961
+ }
3962
+ });
3963
+ }
3964
+ /**
3965
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3966
+ * @param id A UUID string identifying this data set.
3967
+ * @param org
3968
+ * @param username
3969
+ * @param requestBody
3970
+ * @returns DataSet
3971
+ * @throws ApiError
3972
+ */
3973
+ static aiFinetuningV1OrgUserDatasetsUpdate(id, org, username, requestBody) {
3974
+ return request(OpenAPI, {
3975
+ method: 'PUT',
3976
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
3977
+ path: {
3978
+ 'id': id,
3979
+ 'org': org,
3980
+ 'username': username
3981
+ },
3982
+ body: requestBody,
3983
+ mediaType: 'application/json'
3984
+ });
3985
+ }
3986
+ /**
3987
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3988
+ * @param id A UUID string identifying this data set.
3989
+ * @param org
3990
+ * @param username
3991
+ * @param requestBody
3992
+ * @returns DataSet
3993
+ * @throws ApiError
3994
+ */
3995
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate(id, org, username, requestBody) {
3996
+ return request(OpenAPI, {
3997
+ method: 'PATCH',
3998
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
3999
+ path: {
4000
+ 'id': id,
4001
+ 'org': org,
4002
+ 'username': username
4003
+ },
4004
+ body: requestBody,
4005
+ mediaType: 'application/json'
4006
+ });
4007
+ }
4008
+ /**
4009
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4010
+ * @param id A UUID string identifying this data set.
4011
+ * @param org
4012
+ * @param username
4013
+ * @returns void
4014
+ * @throws ApiError
4015
+ */
4016
+ static aiFinetuningV1OrgUserDatasetsDestroy(id, org, username) {
4017
+ return request(OpenAPI, {
4018
+ method: 'DELETE',
4019
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4020
+ path: {
4021
+ 'id': id,
4022
+ 'org': org,
4023
+ 'username': username
4024
+ }
4025
+ });
4026
+ }
4027
+ /**
4028
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4029
+ * @param org
4030
+ * @param username
4031
+ * @param baseModelName
4032
+ * @param dataset
4033
+ * @param dateCreated
4034
+ * @param fineTunedModel
4035
+ * @param lastModified
4036
+ * @param ordering Which field to use when ordering the results.
4037
+ * @param page A page number within the paginated result set.
4038
+ * @param pageSize Number of results to return per page.
4039
+ * @param preprocessDataset
4040
+ * @param provider * `openai` - Openai
4041
+ * @param search A search term.
4042
+ * @param status * `pending` - Pending
4043
+ * * `processing` - Processing
4044
+ * * `completed` - Completed
4045
+ * * `cancelled` - Cancelled
4046
+ * * `failed` - Failed
4047
+ * @returns PaginatedTrainingList
4048
+ * @throws ApiError
4049
+ */
4050
+ static aiFinetuningV1OrgUserTrainingsList(org, username, baseModelName, dataset, dateCreated, fineTunedModel, lastModified, ordering, page, pageSize, preprocessDataset, provider, search, status) {
4051
+ return request(OpenAPI, {
4052
+ method: 'GET',
4053
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
4054
+ path: {
4055
+ 'org': org,
4056
+ 'username': username
4057
+ },
4058
+ query: {
4059
+ 'base_model_name': baseModelName,
4060
+ 'dataset': dataset,
4061
+ 'date_created': dateCreated,
4062
+ 'fine_tuned_model': fineTunedModel,
4063
+ 'last_modified': lastModified,
4064
+ 'ordering': ordering,
4065
+ 'page': page,
4066
+ 'page_size': pageSize,
4067
+ 'preprocess_dataset': preprocessDataset,
4068
+ 'provider': provider,
4069
+ 'search': search,
4070
+ 'status': status
4071
+ }
4072
+ });
4073
+ }
4074
+ /**
4075
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4076
+ * @param org
4077
+ * @param username
4078
+ * @param requestBody
4079
+ * @returns TrainingCreate
4080
+ * @throws ApiError
4081
+ */
4082
+ static aiFinetuningV1OrgUserTrainingsCreate(org, username, requestBody) {
4083
+ return request(OpenAPI, {
4084
+ method: 'POST',
4085
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
4086
+ path: {
4087
+ 'org': org,
4088
+ 'username': username
4089
+ },
4090
+ body: requestBody,
4091
+ mediaType: 'application/json'
4092
+ });
4093
+ }
4094
+ /**
4095
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4096
+ * @param id A UUID string identifying this training.
4097
+ * @param org
4098
+ * @param username
4099
+ * @returns Training
4100
+ * @throws ApiError
4101
+ */
4102
+ static aiFinetuningV1OrgUserTrainingsRetrieve(id, org, username) {
4103
+ return request(OpenAPI, {
4104
+ method: 'GET',
4105
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4106
+ path: {
4107
+ 'id': id,
4108
+ 'org': org,
4109
+ 'username': username
4110
+ }
4111
+ });
4112
+ }
4113
+ /**
4114
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4115
+ * @param id A UUID string identifying this training.
4116
+ * @param org
4117
+ * @param username
4118
+ * @param requestBody
4119
+ * @returns TrainingCreate
4120
+ * @throws ApiError
4121
+ */
4122
+ static aiFinetuningV1OrgUserTrainingsUpdate(id, org, username, requestBody) {
4123
+ return request(OpenAPI, {
4124
+ method: 'PUT',
4125
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4126
+ path: {
4127
+ 'id': id,
4128
+ 'org': org,
4129
+ 'username': username
4130
+ },
4131
+ body: requestBody,
4132
+ mediaType: 'application/json'
4133
+ });
4134
+ }
4135
+ /**
4136
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4137
+ * @param id A UUID string identifying this training.
4138
+ * @param org
4139
+ * @param username
4140
+ * @param requestBody
4141
+ * @returns TrainingCreate
4142
+ * @throws ApiError
4143
+ */
4144
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate(id, org, username, requestBody) {
4145
+ return request(OpenAPI, {
4146
+ method: 'PATCH',
4147
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4148
+ path: {
4149
+ 'id': id,
4150
+ 'org': org,
4151
+ 'username': username
4152
+ },
4153
+ body: requestBody,
4154
+ mediaType: 'application/json'
4155
+ });
4156
+ }
4157
+ /**
4158
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4159
+ * @param id A UUID string identifying this training.
4160
+ * @param org
4161
+ * @param username
4162
+ * @returns void
4163
+ * @throws ApiError
4164
+ */
4165
+ static aiFinetuningV1OrgUserTrainingsDestroy(id, org, username) {
4166
+ return request(OpenAPI, {
4167
+ method: 'DELETE',
4168
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4169
+ path: {
4170
+ 'id': id,
4171
+ 'org': org,
4172
+ 'username': username
4173
+ }
4174
+ });
4175
+ }
4176
+ /**
4177
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
4178
+ * Filtering and pagination is allowed.
4179
+ *
4180
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
4181
+ * training list endpoint.
4182
+ * Returns:
4183
+ * Response: A paginated response containing the serialized fine-tuned models.
4184
+ * @param org
4185
+ * @param username
4186
+ * @returns Training
4187
+ * @throws ApiError
4188
+ */
4189
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve(org, username) {
4190
+ return request(OpenAPI, {
4191
+ method: 'GET',
4192
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
4193
+ path: {
4194
+ 'org': org,
4195
+ 'username': username
4196
+ }
4197
+ });
4198
+ }
4199
+ }
4200
+
2867
4201
  class AiIndexService {
2868
4202
  /**
2869
4203
  * Retrieve details of a specific document embedding.
@@ -18600,6 +19934,8 @@ class UserGroupsService {
18600
19934
 
18601
19935
  exports.AiAccountService = AiAccountService;
18602
19936
  exports.AiAnalyticsService = AiAnalyticsService;
19937
+ exports.AiBotService = AiBotService;
19938
+ exports.AiFinetuningService = AiFinetuningService;
18603
19939
  exports.AiIndexService = AiIndexService;
18604
19940
  exports.AiMarketingService = AiMarketingService;
18605
19941
  exports.AiMentorService = AiMentorService;