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