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