@iblai/iblai-api 4.5.1-ai-plus → 4.5.2-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 +103 -1533
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +104 -1532
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +103 -1533
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +0 -39
- package/dist/types/models/ServiceEnum.d.ts +3 -1
- package/dist/types/models/UserMemoryEntry.d.ts +1 -1
- package/dist/types/services/AiIndexService.d.ts +0 -24
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +0 -39
- package/src/models/ServiceEnum.ts +2 -0
- package/src/models/UserMemoryEntry.ts +1 -1
- package/src/services/AiIndexService.ts +0 -43
- package/src/services/AiMentorService.ts +1 -1
- 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 -642
- package/dist/types/services/AiFinetuningService.d.ts +0 -232
- 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 -1330
- package/src/services/AiFinetuningService.ts +0 -472
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: '4.5.
|
|
111
|
+
VERSION: '4.5.2-ai',
|
|
112
112
|
WITH_CREDENTIALS: false,
|
|
113
113
|
CREDENTIALS: 'include',
|
|
114
114
|
TOKEN: undefined,
|
|
@@ -269,24 +269,6 @@ var CrawlerPatternTypeEnum;
|
|
|
269
269
|
CrawlerPatternTypeEnum["REGEX"] = "regex";
|
|
270
270
|
})(CrawlerPatternTypeEnum || (CrawlerPatternTypeEnum = {}));
|
|
271
271
|
|
|
272
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
273
|
-
/* istanbul ignore file */
|
|
274
|
-
/* tslint:disable */
|
|
275
|
-
/* eslint-disable */
|
|
276
|
-
/**
|
|
277
|
-
* * `pending` - Pending
|
|
278
|
-
* * `processing` - Processing
|
|
279
|
-
* * `completed` - Completed
|
|
280
|
-
* * `failed` - Failed
|
|
281
|
-
*/
|
|
282
|
-
var DataSetStatusEnum;
|
|
283
|
-
(function (DataSetStatusEnum) {
|
|
284
|
-
DataSetStatusEnum["PENDING"] = "pending";
|
|
285
|
-
DataSetStatusEnum["PROCESSING"] = "processing";
|
|
286
|
-
DataSetStatusEnum["COMPLETED"] = "completed";
|
|
287
|
-
DataSetStatusEnum["FAILED"] = "failed";
|
|
288
|
-
})(DataSetStatusEnum || (DataSetStatusEnum = {}));
|
|
289
|
-
|
|
290
272
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
291
273
|
/* istanbul ignore file */
|
|
292
274
|
/* tslint:disable */
|
|
@@ -583,26 +565,6 @@ var PromptVisibilityEnum;
|
|
|
583
565
|
PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
|
|
584
566
|
})(PromptVisibilityEnum || (PromptVisibilityEnum = {}));
|
|
585
567
|
|
|
586
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
587
|
-
/* istanbul ignore file */
|
|
588
|
-
/* tslint:disable */
|
|
589
|
-
/* eslint-disable */
|
|
590
|
-
/**
|
|
591
|
-
* * `webex` - Webex
|
|
592
|
-
* * `slack` - Slack
|
|
593
|
-
* * `whatsapp` - Whatsapp
|
|
594
|
-
* * `discord` - Discord
|
|
595
|
-
* * `teams` - Teams
|
|
596
|
-
*/
|
|
597
|
-
var Provider05cEnum;
|
|
598
|
-
(function (Provider05cEnum) {
|
|
599
|
-
Provider05cEnum["WEBEX"] = "webex";
|
|
600
|
-
Provider05cEnum["SLACK"] = "slack";
|
|
601
|
-
Provider05cEnum["WHATSAPP"] = "whatsapp";
|
|
602
|
-
Provider05cEnum["DISCORD"] = "discord";
|
|
603
|
-
Provider05cEnum["TEAMS"] = "teams";
|
|
604
|
-
})(Provider05cEnum || (Provider05cEnum = {}));
|
|
605
|
-
|
|
606
568
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
607
569
|
/* istanbul ignore file */
|
|
608
570
|
/* tslint:disable */
|
|
@@ -619,18 +581,6 @@ var Provider637Enum;
|
|
|
619
581
|
Provider637Enum["ELEVENLABS"] = "elevenlabs";
|
|
620
582
|
})(Provider637Enum || (Provider637Enum = {}));
|
|
621
583
|
|
|
622
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
623
|
-
/* istanbul ignore file */
|
|
624
|
-
/* tslint:disable */
|
|
625
|
-
/* eslint-disable */
|
|
626
|
-
/**
|
|
627
|
-
* * `openai` - Openai
|
|
628
|
-
*/
|
|
629
|
-
var Provider63aEnum;
|
|
630
|
-
(function (Provider63aEnum) {
|
|
631
|
-
Provider63aEnum["OPENAI"] = "openai";
|
|
632
|
-
})(Provider63aEnum || (Provider63aEnum = {}));
|
|
633
|
-
|
|
634
584
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
635
585
|
/* istanbul ignore file */
|
|
636
586
|
/* tslint:disable */
|
|
@@ -670,11 +620,13 @@ var ResourceScrappedDataStatusEnum;
|
|
|
670
620
|
/**
|
|
671
621
|
* * `google_drive` - Google Drive
|
|
672
622
|
* * `google_document` - Google Document
|
|
623
|
+
* * `google_slides` - Google Slides
|
|
673
624
|
*/
|
|
674
625
|
var ServiceEnum;
|
|
675
626
|
(function (ServiceEnum) {
|
|
676
627
|
ServiceEnum["GOOGLE_DRIVE"] = "google_drive";
|
|
677
628
|
ServiceEnum["GOOGLE_DOCUMENT"] = "google_document";
|
|
629
|
+
ServiceEnum["GOOGLE_SLIDES"] = "google_slides";
|
|
678
630
|
})(ServiceEnum || (ServiceEnum = {}));
|
|
679
631
|
|
|
680
632
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
@@ -9148,1546 +9100,166 @@ class AiAnalyticsService {
|
|
|
9148
9100
|
}
|
|
9149
9101
|
}
|
|
9150
9102
|
|
|
9151
|
-
class
|
|
9152
|
-
/**
|
|
9153
|
-
* Create modify and update bot information for a specific tenant.
|
|
9154
|
-
* @returns Bot
|
|
9155
|
-
* @throws ApiError
|
|
9156
|
-
*/
|
|
9157
|
-
static aiBotV1BotsBotList({
|
|
9158
|
-
org
|
|
9159
|
-
}) {
|
|
9160
|
-
return request(OpenAPI, {
|
|
9161
|
-
method: 'GET',
|
|
9162
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/',
|
|
9163
|
-
path: {
|
|
9164
|
-
'org': org
|
|
9165
|
-
}
|
|
9166
|
-
});
|
|
9167
|
-
}
|
|
9103
|
+
class AiIndexService {
|
|
9168
9104
|
/**
|
|
9169
|
-
*
|
|
9170
|
-
*
|
|
9105
|
+
* Retrieve details of a specific document embedding.
|
|
9106
|
+
*
|
|
9107
|
+
* This endpoint returns detailed information about a specific
|
|
9108
|
+
* document embedding identified by its ID.
|
|
9109
|
+
*
|
|
9110
|
+
* Args:
|
|
9111
|
+
* request: The HTTP request.
|
|
9112
|
+
* org: Organization key identifier.
|
|
9113
|
+
* document_id: The ID of the document embedding to retrieve.
|
|
9114
|
+
*
|
|
9115
|
+
* Returns:
|
|
9116
|
+
* Response: Detailed information about the document embedding.
|
|
9117
|
+
*
|
|
9118
|
+
* Raises:
|
|
9119
|
+
* NotFound: If the specified document embedding does not exist.
|
|
9120
|
+
* @returns RetrieverDocumentEmbedding
|
|
9171
9121
|
* @throws ApiError
|
|
9172
9122
|
*/
|
|
9173
|
-
static
|
|
9123
|
+
static aiIndexOrgsUsersDocumentsRetrieve({
|
|
9124
|
+
documentId,
|
|
9174
9125
|
org,
|
|
9175
|
-
|
|
9176
|
-
}) {
|
|
9177
|
-
return request(OpenAPI, {
|
|
9178
|
-
method: 'POST',
|
|
9179
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/',
|
|
9180
|
-
path: {
|
|
9181
|
-
'org': org
|
|
9182
|
-
},
|
|
9183
|
-
body: requestBody,
|
|
9184
|
-
mediaType: 'application/json'
|
|
9185
|
-
});
|
|
9186
|
-
}
|
|
9187
|
-
/**
|
|
9188
|
-
* Create slash commands for a specific bot
|
|
9189
|
-
* eg. /iblai-baseline
|
|
9190
|
-
* @returns BotCommand
|
|
9191
|
-
* @throws ApiError
|
|
9192
|
-
*/
|
|
9193
|
-
static aiBotV1BotsBotCommandsList({
|
|
9194
|
-
org
|
|
9126
|
+
userId
|
|
9195
9127
|
}) {
|
|
9196
9128
|
return request(OpenAPI, {
|
|
9197
9129
|
method: 'GET',
|
|
9198
|
-
url: '/api/ai-
|
|
9199
|
-
path: {
|
|
9200
|
-
'org': org
|
|
9201
|
-
}
|
|
9202
|
-
});
|
|
9203
|
-
}
|
|
9204
|
-
/**
|
|
9205
|
-
* Create slash commands for a specific bot
|
|
9206
|
-
* eg. /iblai-baseline
|
|
9207
|
-
* @returns BotCommand
|
|
9208
|
-
* @throws ApiError
|
|
9209
|
-
*/
|
|
9210
|
-
static aiBotV1BotsBotCommandsCreate({
|
|
9211
|
-
org,
|
|
9212
|
-
requestBody
|
|
9213
|
-
}) {
|
|
9214
|
-
return request(OpenAPI, {
|
|
9215
|
-
method: 'POST',
|
|
9216
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
|
|
9130
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
9217
9131
|
path: {
|
|
9218
|
-
'
|
|
9132
|
+
'document_id': documentId,
|
|
9133
|
+
'org': org,
|
|
9134
|
+
'user_id': userId
|
|
9219
9135
|
},
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
});
|
|
9223
|
-
}
|
|
9224
|
-
/**
|
|
9225
|
-
* Create slash commands for a specific bot
|
|
9226
|
-
* eg. /iblai-baseline
|
|
9227
|
-
* @returns BotCommand
|
|
9228
|
-
* @throws ApiError
|
|
9229
|
-
*/
|
|
9230
|
-
static aiBotV1BotsBotCommandsRetrieve({
|
|
9231
|
-
id,
|
|
9232
|
-
org
|
|
9233
|
-
}) {
|
|
9234
|
-
return request(OpenAPI, {
|
|
9235
|
-
method: 'GET',
|
|
9236
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
|
|
9237
|
-
path: {
|
|
9238
|
-
'id': id,
|
|
9239
|
-
'org': org
|
|
9136
|
+
errors: {
|
|
9137
|
+
404: `Document not found`
|
|
9240
9138
|
}
|
|
9241
9139
|
});
|
|
9242
9140
|
}
|
|
9243
9141
|
/**
|
|
9244
|
-
*
|
|
9245
|
-
*
|
|
9246
|
-
*
|
|
9142
|
+
* Update a specific document embedding.
|
|
9143
|
+
*
|
|
9144
|
+
* This endpoint allows updating various properties of a document embedding,
|
|
9145
|
+
* including its name, type, pathway, and training status.
|
|
9146
|
+
*
|
|
9147
|
+
* Args:
|
|
9148
|
+
* request: The HTTP request containing the updated document data.
|
|
9149
|
+
* org: Organization key identifier.
|
|
9150
|
+
* document_id: The ID of the document embedding to update.
|
|
9151
|
+
*
|
|
9152
|
+
* Returns:
|
|
9153
|
+
* Response: The updated document embedding information.
|
|
9154
|
+
*
|
|
9155
|
+
* Raises:
|
|
9156
|
+
* BadRequest: If the provided data is invalid.
|
|
9157
|
+
* NotFound: If the specified document embedding does not exist.
|
|
9158
|
+
* @returns RetrieverDocumentEmbedding
|
|
9247
9159
|
* @throws ApiError
|
|
9248
9160
|
*/
|
|
9249
|
-
static
|
|
9250
|
-
|
|
9161
|
+
static aiIndexOrgsUsersDocumentsUpdate({
|
|
9162
|
+
documentId,
|
|
9251
9163
|
org,
|
|
9252
|
-
|
|
9164
|
+
userId,
|
|
9165
|
+
formData
|
|
9253
9166
|
}) {
|
|
9254
9167
|
return request(OpenAPI, {
|
|
9255
9168
|
method: 'PUT',
|
|
9256
|
-
url: '/api/ai-
|
|
9257
|
-
path: {
|
|
9258
|
-
'id': id,
|
|
9259
|
-
'org': org
|
|
9260
|
-
},
|
|
9261
|
-
body: requestBody,
|
|
9262
|
-
mediaType: 'application/json'
|
|
9263
|
-
});
|
|
9264
|
-
}
|
|
9265
|
-
/**
|
|
9266
|
-
* Create slash commands for a specific bot
|
|
9267
|
-
* eg. /iblai-baseline
|
|
9268
|
-
* @returns BotCommand
|
|
9269
|
-
* @throws ApiError
|
|
9270
|
-
*/
|
|
9271
|
-
static aiBotV1BotsBotCommandsPartialUpdate({
|
|
9272
|
-
id,
|
|
9273
|
-
org,
|
|
9274
|
-
requestBody
|
|
9275
|
-
}) {
|
|
9276
|
-
return request(OpenAPI, {
|
|
9277
|
-
method: 'PATCH',
|
|
9278
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
|
|
9169
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
9279
9170
|
path: {
|
|
9280
|
-
'
|
|
9281
|
-
'org': org
|
|
9171
|
+
'document_id': documentId,
|
|
9172
|
+
'org': org,
|
|
9173
|
+
'user_id': userId
|
|
9282
9174
|
},
|
|
9283
|
-
|
|
9284
|
-
mediaType: '
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
* Create slash commands for a specific bot
|
|
9289
|
-
* eg. /iblai-baseline
|
|
9290
|
-
* @returns void
|
|
9291
|
-
* @throws ApiError
|
|
9292
|
-
*/
|
|
9293
|
-
static aiBotV1BotsBotCommandsDestroy({
|
|
9294
|
-
id,
|
|
9295
|
-
org
|
|
9296
|
-
}) {
|
|
9297
|
-
return request(OpenAPI, {
|
|
9298
|
-
method: 'DELETE',
|
|
9299
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
|
|
9300
|
-
path: {
|
|
9301
|
-
'id': id,
|
|
9302
|
-
'org': org
|
|
9303
|
-
}
|
|
9304
|
-
});
|
|
9305
|
-
}
|
|
9306
|
-
/**
|
|
9307
|
-
* Create modify and update bot information for a specific tenant.
|
|
9308
|
-
* @returns Bot
|
|
9309
|
-
* @throws ApiError
|
|
9310
|
-
*/
|
|
9311
|
-
static aiBotV1BotsBotRetrieve({
|
|
9312
|
-
id,
|
|
9313
|
-
org
|
|
9314
|
-
}) {
|
|
9315
|
-
return request(OpenAPI, {
|
|
9316
|
-
method: 'GET',
|
|
9317
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
|
|
9318
|
-
path: {
|
|
9319
|
-
'id': id,
|
|
9320
|
-
'org': org
|
|
9175
|
+
formData: formData,
|
|
9176
|
+
mediaType: 'multipart/form-data',
|
|
9177
|
+
errors: {
|
|
9178
|
+
400: `Invalid request data`,
|
|
9179
|
+
404: `Document not found`
|
|
9321
9180
|
}
|
|
9322
9181
|
});
|
|
9323
9182
|
}
|
|
9324
9183
|
/**
|
|
9325
|
-
*
|
|
9326
|
-
*
|
|
9327
|
-
*
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
},
|
|
9341
|
-
body: requestBody,
|
|
9342
|
-
mediaType: 'application/json'
|
|
9343
|
-
});
|
|
9344
|
-
}
|
|
9345
|
-
/**
|
|
9346
|
-
* Create modify and update bot information for a specific tenant.
|
|
9347
|
-
* @returns BotCreate
|
|
9348
|
-
* @throws ApiError
|
|
9349
|
-
*/
|
|
9350
|
-
static aiBotV1BotsBotPartialUpdate({
|
|
9351
|
-
id,
|
|
9352
|
-
org,
|
|
9353
|
-
requestBody
|
|
9354
|
-
}) {
|
|
9355
|
-
return request(OpenAPI, {
|
|
9356
|
-
method: 'PATCH',
|
|
9357
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
|
|
9358
|
-
path: {
|
|
9359
|
-
'id': id,
|
|
9360
|
-
'org': org
|
|
9361
|
-
},
|
|
9362
|
-
body: requestBody,
|
|
9363
|
-
mediaType: 'application/json'
|
|
9364
|
-
});
|
|
9365
|
-
}
|
|
9366
|
-
/**
|
|
9367
|
-
* Create modify and update bot information for a specific tenant.
|
|
9184
|
+
* Delete a specific document embedding.
|
|
9185
|
+
*
|
|
9186
|
+
* This endpoint removes a document embedding from the system,
|
|
9187
|
+
* including untraining it from any associated pathways.
|
|
9188
|
+
*
|
|
9189
|
+
* Args:
|
|
9190
|
+
* request: The HTTP request.
|
|
9191
|
+
* org: Organization key identifier.
|
|
9192
|
+
* document_id: The ID of the document embedding to delete.
|
|
9193
|
+
*
|
|
9194
|
+
* Returns:
|
|
9195
|
+
* Response: An empty response with a 204 status code if successful.
|
|
9196
|
+
*
|
|
9197
|
+
* Raises:
|
|
9198
|
+
* NotFound: If the specified document embedding does not exist.
|
|
9368
9199
|
* @returns void
|
|
9369
9200
|
* @throws ApiError
|
|
9370
9201
|
*/
|
|
9371
|
-
static
|
|
9372
|
-
|
|
9373
|
-
org
|
|
9374
|
-
}) {
|
|
9375
|
-
return request(OpenAPI, {
|
|
9376
|
-
method: 'DELETE',
|
|
9377
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
|
|
9378
|
-
path: {
|
|
9379
|
-
'id': id,
|
|
9380
|
-
'org': org
|
|
9381
|
-
}
|
|
9382
|
-
});
|
|
9383
|
-
}
|
|
9384
|
-
/**
|
|
9385
|
-
* Create modify and update bot information for a specific tenant.
|
|
9386
|
-
* @returns DiscordConfig
|
|
9387
|
-
* @throws ApiError
|
|
9388
|
-
*/
|
|
9389
|
-
static aiBotV1BotsBotConfigDiscordRetrieve({
|
|
9390
|
-
id,
|
|
9391
|
-
org
|
|
9392
|
-
}) {
|
|
9393
|
-
return request(OpenAPI, {
|
|
9394
|
-
method: 'GET',
|
|
9395
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
|
|
9396
|
-
path: {
|
|
9397
|
-
'id': id,
|
|
9398
|
-
'org': org
|
|
9399
|
-
}
|
|
9400
|
-
});
|
|
9401
|
-
}
|
|
9402
|
-
/**
|
|
9403
|
-
* Create modify and update bot information for a specific tenant.
|
|
9404
|
-
* @returns DiscordConfig
|
|
9405
|
-
* @throws ApiError
|
|
9406
|
-
*/
|
|
9407
|
-
static aiBotV1BotsBotConfigDiscordPartialUpdate({
|
|
9408
|
-
id,
|
|
9409
|
-
org,
|
|
9410
|
-
requestBody
|
|
9411
|
-
}) {
|
|
9412
|
-
return request(OpenAPI, {
|
|
9413
|
-
method: 'PATCH',
|
|
9414
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
|
|
9415
|
-
path: {
|
|
9416
|
-
'id': id,
|
|
9417
|
-
'org': org
|
|
9418
|
-
},
|
|
9419
|
-
body: requestBody,
|
|
9420
|
-
mediaType: 'application/json'
|
|
9421
|
-
});
|
|
9422
|
-
}
|
|
9423
|
-
/**
|
|
9424
|
-
* Create modify and update bot information for a specific tenant.
|
|
9425
|
-
* @returns SlackConfig
|
|
9426
|
-
* @throws ApiError
|
|
9427
|
-
*/
|
|
9428
|
-
static aiBotV1BotsBotConfigSlackRetrieve({
|
|
9429
|
-
id,
|
|
9430
|
-
org
|
|
9431
|
-
}) {
|
|
9432
|
-
return request(OpenAPI, {
|
|
9433
|
-
method: 'GET',
|
|
9434
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
|
|
9435
|
-
path: {
|
|
9436
|
-
'id': id,
|
|
9437
|
-
'org': org
|
|
9438
|
-
}
|
|
9439
|
-
});
|
|
9440
|
-
}
|
|
9441
|
-
/**
|
|
9442
|
-
* Create modify and update bot information for a specific tenant.
|
|
9443
|
-
* @returns SlackConfig
|
|
9444
|
-
* @throws ApiError
|
|
9445
|
-
*/
|
|
9446
|
-
static aiBotV1BotsBotConfigSlackUpdateCreate({
|
|
9447
|
-
id,
|
|
9448
|
-
org,
|
|
9449
|
-
requestBody
|
|
9450
|
-
}) {
|
|
9451
|
-
return request(OpenAPI, {
|
|
9452
|
-
method: 'POST',
|
|
9453
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
|
|
9454
|
-
path: {
|
|
9455
|
-
'id': id,
|
|
9456
|
-
'org': org
|
|
9457
|
-
},
|
|
9458
|
-
body: requestBody,
|
|
9459
|
-
mediaType: 'application/json'
|
|
9460
|
-
});
|
|
9461
|
-
}
|
|
9462
|
-
/**
|
|
9463
|
-
* Create modify and update bot information for a specific tenant.
|
|
9464
|
-
* @returns SlackConfig
|
|
9465
|
-
* @throws ApiError
|
|
9466
|
-
*/
|
|
9467
|
-
static aiBotV1BotsBotConfigSlackUpdateUpdate({
|
|
9468
|
-
id,
|
|
9469
|
-
org,
|
|
9470
|
-
requestBody
|
|
9471
|
-
}) {
|
|
9472
|
-
return request(OpenAPI, {
|
|
9473
|
-
method: 'PUT',
|
|
9474
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
|
|
9475
|
-
path: {
|
|
9476
|
-
'id': id,
|
|
9477
|
-
'org': org
|
|
9478
|
-
},
|
|
9479
|
-
body: requestBody,
|
|
9480
|
-
mediaType: 'application/json'
|
|
9481
|
-
});
|
|
9482
|
-
}
|
|
9483
|
-
/**
|
|
9484
|
-
* Create modify and update bot information for a specific tenant.
|
|
9485
|
-
* @returns SlackConfig
|
|
9486
|
-
* @throws ApiError
|
|
9487
|
-
*/
|
|
9488
|
-
static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
|
|
9489
|
-
id,
|
|
9490
|
-
org,
|
|
9491
|
-
requestBody
|
|
9492
|
-
}) {
|
|
9493
|
-
return request(OpenAPI, {
|
|
9494
|
-
method: 'PATCH',
|
|
9495
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
|
|
9496
|
-
path: {
|
|
9497
|
-
'id': id,
|
|
9498
|
-
'org': org
|
|
9499
|
-
},
|
|
9500
|
-
body: requestBody,
|
|
9501
|
-
mediaType: 'application/json'
|
|
9502
|
-
});
|
|
9503
|
-
}
|
|
9504
|
-
/**
|
|
9505
|
-
* Create modify and update bot information for a specific tenant.
|
|
9506
|
-
* @returns TeamsConfig
|
|
9507
|
-
* @throws ApiError
|
|
9508
|
-
*/
|
|
9509
|
-
static aiBotV1BotsBotConfigTeamsRetrieve({
|
|
9510
|
-
id,
|
|
9511
|
-
org
|
|
9512
|
-
}) {
|
|
9513
|
-
return request(OpenAPI, {
|
|
9514
|
-
method: 'GET',
|
|
9515
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
|
|
9516
|
-
path: {
|
|
9517
|
-
'id': id,
|
|
9518
|
-
'org': org
|
|
9519
|
-
}
|
|
9520
|
-
});
|
|
9521
|
-
}
|
|
9522
|
-
/**
|
|
9523
|
-
* Create modify and update bot information for a specific tenant.
|
|
9524
|
-
* @returns TeamsConfig
|
|
9525
|
-
* @throws ApiError
|
|
9526
|
-
*/
|
|
9527
|
-
static aiBotV1BotsBotConfigTeamsUpdateCreate({
|
|
9528
|
-
id,
|
|
9529
|
-
org,
|
|
9530
|
-
requestBody
|
|
9531
|
-
}) {
|
|
9532
|
-
return request(OpenAPI, {
|
|
9533
|
-
method: 'POST',
|
|
9534
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
|
|
9535
|
-
path: {
|
|
9536
|
-
'id': id,
|
|
9537
|
-
'org': org
|
|
9538
|
-
},
|
|
9539
|
-
body: requestBody,
|
|
9540
|
-
mediaType: 'application/json'
|
|
9541
|
-
});
|
|
9542
|
-
}
|
|
9543
|
-
/**
|
|
9544
|
-
* Create modify and update bot information for a specific tenant.
|
|
9545
|
-
* @returns TeamsConfig
|
|
9546
|
-
* @throws ApiError
|
|
9547
|
-
*/
|
|
9548
|
-
static aiBotV1BotsBotConfigTeamsUpdateUpdate({
|
|
9549
|
-
id,
|
|
9550
|
-
org,
|
|
9551
|
-
requestBody
|
|
9552
|
-
}) {
|
|
9553
|
-
return request(OpenAPI, {
|
|
9554
|
-
method: 'PUT',
|
|
9555
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
|
|
9556
|
-
path: {
|
|
9557
|
-
'id': id,
|
|
9558
|
-
'org': org
|
|
9559
|
-
},
|
|
9560
|
-
body: requestBody,
|
|
9561
|
-
mediaType: 'application/json'
|
|
9562
|
-
});
|
|
9563
|
-
}
|
|
9564
|
-
/**
|
|
9565
|
-
* Create modify and update bot information for a specific tenant.
|
|
9566
|
-
* @returns TeamsConfig
|
|
9567
|
-
* @throws ApiError
|
|
9568
|
-
*/
|
|
9569
|
-
static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
|
|
9570
|
-
id,
|
|
9571
|
-
org,
|
|
9572
|
-
requestBody
|
|
9573
|
-
}) {
|
|
9574
|
-
return request(OpenAPI, {
|
|
9575
|
-
method: 'PATCH',
|
|
9576
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
|
|
9577
|
-
path: {
|
|
9578
|
-
'id': id,
|
|
9579
|
-
'org': org
|
|
9580
|
-
},
|
|
9581
|
-
body: requestBody,
|
|
9582
|
-
mediaType: 'application/json'
|
|
9583
|
-
});
|
|
9584
|
-
}
|
|
9585
|
-
/**
|
|
9586
|
-
* Create modify and update bot information for a specific tenant.
|
|
9587
|
-
* @returns WebexConfig
|
|
9588
|
-
* @throws ApiError
|
|
9589
|
-
*/
|
|
9590
|
-
static aiBotV1BotsBotConfigWebexRetrieve({
|
|
9591
|
-
id,
|
|
9592
|
-
org
|
|
9593
|
-
}) {
|
|
9594
|
-
return request(OpenAPI, {
|
|
9595
|
-
method: 'GET',
|
|
9596
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
|
|
9597
|
-
path: {
|
|
9598
|
-
'id': id,
|
|
9599
|
-
'org': org
|
|
9600
|
-
}
|
|
9601
|
-
});
|
|
9602
|
-
}
|
|
9603
|
-
/**
|
|
9604
|
-
* Create modify and update bot information for a specific tenant.
|
|
9605
|
-
* @returns WebexConfig
|
|
9606
|
-
* @throws ApiError
|
|
9607
|
-
*/
|
|
9608
|
-
static aiBotV1BotsBotConfigWebexPartialUpdate({
|
|
9609
|
-
id,
|
|
9202
|
+
static aiIndexOrgsUsersDocumentsDestroy({
|
|
9203
|
+
documentId,
|
|
9610
9204
|
org,
|
|
9611
|
-
|
|
9205
|
+
userId
|
|
9612
9206
|
}) {
|
|
9613
9207
|
return request(OpenAPI, {
|
|
9614
|
-
method: '
|
|
9615
|
-
url: '/api/ai-
|
|
9208
|
+
method: 'DELETE',
|
|
9209
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
9616
9210
|
path: {
|
|
9617
|
-
'
|
|
9618
|
-
'org': org
|
|
9211
|
+
'document_id': documentId,
|
|
9212
|
+
'org': org,
|
|
9213
|
+
'user_id': userId
|
|
9619
9214
|
},
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
});
|
|
9623
|
-
}
|
|
9624
|
-
/**
|
|
9625
|
-
* Create modify and update bot information for a specific tenant.
|
|
9626
|
-
* @returns WhatsappConfig
|
|
9627
|
-
* @throws ApiError
|
|
9628
|
-
*/
|
|
9629
|
-
static aiBotV1BotsBotConfigWhatsappRetrieve({
|
|
9630
|
-
id,
|
|
9631
|
-
org
|
|
9632
|
-
}) {
|
|
9633
|
-
return request(OpenAPI, {
|
|
9634
|
-
method: 'GET',
|
|
9635
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
|
|
9636
|
-
path: {
|
|
9637
|
-
'id': id,
|
|
9638
|
-
'org': org
|
|
9215
|
+
errors: {
|
|
9216
|
+
404: `Document not found`
|
|
9639
9217
|
}
|
|
9640
9218
|
});
|
|
9641
9219
|
}
|
|
9642
9220
|
/**
|
|
9643
|
-
*
|
|
9644
|
-
* @returns
|
|
9645
|
-
* @throws ApiError
|
|
9646
|
-
*/
|
|
9647
|
-
static aiBotV1BotsBotWhatsappConfigUpdate({
|
|
9648
|
-
id,
|
|
9649
|
-
org,
|
|
9650
|
-
requestBody
|
|
9651
|
-
}) {
|
|
9652
|
-
return request(OpenAPI, {
|
|
9653
|
-
method: 'PUT',
|
|
9654
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
|
|
9655
|
-
path: {
|
|
9656
|
-
'id': id,
|
|
9657
|
-
'org': org
|
|
9658
|
-
},
|
|
9659
|
-
body: requestBody,
|
|
9660
|
-
mediaType: 'application/json'
|
|
9661
|
-
});
|
|
9662
|
-
}
|
|
9663
|
-
/**
|
|
9664
|
-
* Create modify and update bot information for a specific tenant.
|
|
9665
|
-
* @returns WhatsappConfig
|
|
9221
|
+
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
9222
|
+
* @returns DocumentSettingsResponse
|
|
9666
9223
|
* @throws ApiError
|
|
9667
9224
|
*/
|
|
9668
|
-
static
|
|
9669
|
-
|
|
9225
|
+
static aiIndexOrgsUsersDocumentsSettingsRetrieve({
|
|
9226
|
+
documentId,
|
|
9670
9227
|
org,
|
|
9671
|
-
|
|
9672
|
-
}) {
|
|
9673
|
-
return request(OpenAPI, {
|
|
9674
|
-
method: 'PATCH',
|
|
9675
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
|
|
9676
|
-
path: {
|
|
9677
|
-
'id': id,
|
|
9678
|
-
'org': org
|
|
9679
|
-
},
|
|
9680
|
-
body: requestBody,
|
|
9681
|
-
mediaType: 'application/json'
|
|
9682
|
-
});
|
|
9683
|
-
}
|
|
9684
|
-
/**
|
|
9685
|
-
* Setup discord user id linkage with discord bots
|
|
9686
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
9687
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
9688
|
-
* @returns DiscordUserConfig
|
|
9689
|
-
* @throws ApiError
|
|
9690
|
-
*/
|
|
9691
|
-
static aiBotV1BotsDiscordUserConfigList({
|
|
9692
|
-
org
|
|
9228
|
+
userId
|
|
9693
9229
|
}) {
|
|
9694
9230
|
return request(OpenAPI, {
|
|
9695
9231
|
method: 'GET',
|
|
9696
|
-
url: '/api/ai-
|
|
9232
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
|
|
9697
9233
|
path: {
|
|
9698
|
-
'
|
|
9234
|
+
'document_id': documentId,
|
|
9235
|
+
'org': org,
|
|
9236
|
+
'user_id': userId
|
|
9699
9237
|
}
|
|
9700
9238
|
});
|
|
9701
9239
|
}
|
|
9702
9240
|
/**
|
|
9703
|
-
*
|
|
9704
|
-
*
|
|
9705
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
9706
|
-
* @returns DiscordUserConfig
|
|
9241
|
+
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
9242
|
+
* @returns DocumentSettingsResponse
|
|
9707
9243
|
* @throws ApiError
|
|
9708
9244
|
*/
|
|
9709
|
-
static
|
|
9245
|
+
static aiIndexOrgsUsersDocumentsSettingsCreate({
|
|
9246
|
+
documentId,
|
|
9710
9247
|
org,
|
|
9248
|
+
userId,
|
|
9711
9249
|
requestBody
|
|
9712
9250
|
}) {
|
|
9713
9251
|
return request(OpenAPI, {
|
|
9714
9252
|
method: 'POST',
|
|
9715
|
-
url: '/api/ai-
|
|
9253
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
|
|
9716
9254
|
path: {
|
|
9717
|
-
'
|
|
9255
|
+
'document_id': documentId,
|
|
9256
|
+
'org': org,
|
|
9257
|
+
'user_id': userId
|
|
9718
9258
|
},
|
|
9719
9259
|
body: requestBody,
|
|
9720
9260
|
mediaType: 'application/json'
|
|
9721
9261
|
});
|
|
9722
9262
|
}
|
|
9723
|
-
/**
|
|
9724
|
-
* Setup discord user id linkage with discord bots
|
|
9725
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
9726
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
9727
|
-
* @returns DiscordUserConfig
|
|
9728
|
-
* @throws ApiError
|
|
9729
|
-
*/
|
|
9730
|
-
static aiBotV1BotsDiscordUserConfigRetrieve({
|
|
9731
|
-
id,
|
|
9732
|
-
org
|
|
9733
|
-
}) {
|
|
9734
|
-
return request(OpenAPI, {
|
|
9735
|
-
method: 'GET',
|
|
9736
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
9737
|
-
path: {
|
|
9738
|
-
'id': id,
|
|
9739
|
-
'org': org
|
|
9740
|
-
}
|
|
9741
|
-
});
|
|
9742
|
-
}
|
|
9743
|
-
/**
|
|
9744
|
-
* Setup discord user id linkage with discord bots
|
|
9745
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
9746
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
9747
|
-
* @returns DiscordUserConfig
|
|
9748
|
-
* @throws ApiError
|
|
9749
|
-
*/
|
|
9750
|
-
static aiBotV1BotsDiscordUserConfigUpdate({
|
|
9751
|
-
id,
|
|
9752
|
-
org,
|
|
9753
|
-
requestBody
|
|
9754
|
-
}) {
|
|
9755
|
-
return request(OpenAPI, {
|
|
9756
|
-
method: 'PUT',
|
|
9757
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
9758
|
-
path: {
|
|
9759
|
-
'id': id,
|
|
9760
|
-
'org': org
|
|
9761
|
-
},
|
|
9762
|
-
body: requestBody,
|
|
9763
|
-
mediaType: 'application/json'
|
|
9764
|
-
});
|
|
9765
|
-
}
|
|
9766
|
-
/**
|
|
9767
|
-
* Setup discord user id linkage with discord bots
|
|
9768
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
9769
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
9770
|
-
* @returns DiscordUserConfig
|
|
9771
|
-
* @throws ApiError
|
|
9772
|
-
*/
|
|
9773
|
-
static aiBotV1BotsDiscordUserConfigPartialUpdate({
|
|
9774
|
-
id,
|
|
9775
|
-
org,
|
|
9776
|
-
requestBody
|
|
9777
|
-
}) {
|
|
9778
|
-
return request(OpenAPI, {
|
|
9779
|
-
method: 'PATCH',
|
|
9780
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
9781
|
-
path: {
|
|
9782
|
-
'id': id,
|
|
9783
|
-
'org': org
|
|
9784
|
-
},
|
|
9785
|
-
body: requestBody,
|
|
9786
|
-
mediaType: 'application/json'
|
|
9787
|
-
});
|
|
9788
|
-
}
|
|
9789
|
-
/**
|
|
9790
|
-
* Setup discord user id linkage with discord bots
|
|
9791
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
9792
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
9793
|
-
* @returns void
|
|
9794
|
-
* @throws ApiError
|
|
9795
|
-
*/
|
|
9796
|
-
static aiBotV1BotsDiscordUserConfigDestroy({
|
|
9797
|
-
id,
|
|
9798
|
-
org
|
|
9799
|
-
}) {
|
|
9800
|
-
return request(OpenAPI, {
|
|
9801
|
-
method: 'DELETE',
|
|
9802
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
9803
|
-
path: {
|
|
9804
|
-
'id': id,
|
|
9805
|
-
'org': org
|
|
9806
|
-
}
|
|
9807
|
-
});
|
|
9808
|
-
}
|
|
9809
|
-
/**
|
|
9810
|
-
* Setup slack username and domain linkage with slack bots
|
|
9811
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
9812
|
-
* @returns SlackUserConfig
|
|
9813
|
-
* @throws ApiError
|
|
9814
|
-
*/
|
|
9815
|
-
static aiBotV1BotsSlackUserConfigList({
|
|
9816
|
-
org
|
|
9817
|
-
}) {
|
|
9818
|
-
return request(OpenAPI, {
|
|
9819
|
-
method: 'GET',
|
|
9820
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
|
|
9821
|
-
path: {
|
|
9822
|
-
'org': org
|
|
9823
|
-
}
|
|
9824
|
-
});
|
|
9825
|
-
}
|
|
9826
|
-
/**
|
|
9827
|
-
* Setup slack username and domain linkage with slack bots
|
|
9828
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
9829
|
-
* @returns SlackUserConfig
|
|
9830
|
-
* @throws ApiError
|
|
9831
|
-
*/
|
|
9832
|
-
static aiBotV1BotsSlackUserConfigCreate({
|
|
9833
|
-
org,
|
|
9834
|
-
requestBody
|
|
9835
|
-
}) {
|
|
9836
|
-
return request(OpenAPI, {
|
|
9837
|
-
method: 'POST',
|
|
9838
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
|
|
9839
|
-
path: {
|
|
9840
|
-
'org': org
|
|
9841
|
-
},
|
|
9842
|
-
body: requestBody,
|
|
9843
|
-
mediaType: 'application/json'
|
|
9844
|
-
});
|
|
9845
|
-
}
|
|
9846
|
-
/**
|
|
9847
|
-
* Setup slack username and domain linkage with slack bots
|
|
9848
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
9849
|
-
* @returns SlackUserConfig
|
|
9850
|
-
* @throws ApiError
|
|
9851
|
-
*/
|
|
9852
|
-
static aiBotV1BotsSlackUserConfigRetrieve({
|
|
9853
|
-
id,
|
|
9854
|
-
org
|
|
9855
|
-
}) {
|
|
9856
|
-
return request(OpenAPI, {
|
|
9857
|
-
method: 'GET',
|
|
9858
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
9859
|
-
path: {
|
|
9860
|
-
'id': id,
|
|
9861
|
-
'org': org
|
|
9862
|
-
}
|
|
9863
|
-
});
|
|
9864
|
-
}
|
|
9865
|
-
/**
|
|
9866
|
-
* Setup slack username and domain linkage with slack bots
|
|
9867
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
9868
|
-
* @returns SlackUserConfig
|
|
9869
|
-
* @throws ApiError
|
|
9870
|
-
*/
|
|
9871
|
-
static aiBotV1BotsSlackUserConfigUpdate({
|
|
9872
|
-
id,
|
|
9873
|
-
org,
|
|
9874
|
-
requestBody
|
|
9875
|
-
}) {
|
|
9876
|
-
return request(OpenAPI, {
|
|
9877
|
-
method: 'PUT',
|
|
9878
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
9879
|
-
path: {
|
|
9880
|
-
'id': id,
|
|
9881
|
-
'org': org
|
|
9882
|
-
},
|
|
9883
|
-
body: requestBody,
|
|
9884
|
-
mediaType: 'application/json'
|
|
9885
|
-
});
|
|
9886
|
-
}
|
|
9887
|
-
/**
|
|
9888
|
-
* Setup slack username and domain linkage with slack bots
|
|
9889
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
9890
|
-
* @returns SlackUserConfig
|
|
9891
|
-
* @throws ApiError
|
|
9892
|
-
*/
|
|
9893
|
-
static aiBotV1BotsSlackUserConfigPartialUpdate({
|
|
9894
|
-
id,
|
|
9895
|
-
org,
|
|
9896
|
-
requestBody
|
|
9897
|
-
}) {
|
|
9898
|
-
return request(OpenAPI, {
|
|
9899
|
-
method: 'PATCH',
|
|
9900
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
9901
|
-
path: {
|
|
9902
|
-
'id': id,
|
|
9903
|
-
'org': org
|
|
9904
|
-
},
|
|
9905
|
-
body: requestBody,
|
|
9906
|
-
mediaType: 'application/json'
|
|
9907
|
-
});
|
|
9908
|
-
}
|
|
9909
|
-
/**
|
|
9910
|
-
* Setup slack username and domain linkage with slack bots
|
|
9911
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
9912
|
-
* @returns void
|
|
9913
|
-
* @throws ApiError
|
|
9914
|
-
*/
|
|
9915
|
-
static aiBotV1BotsSlackUserConfigDestroy({
|
|
9916
|
-
id,
|
|
9917
|
-
org
|
|
9918
|
-
}) {
|
|
9919
|
-
return request(OpenAPI, {
|
|
9920
|
-
method: 'DELETE',
|
|
9921
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
9922
|
-
path: {
|
|
9923
|
-
'id': id,
|
|
9924
|
-
'org': org
|
|
9925
|
-
}
|
|
9926
|
-
});
|
|
9927
|
-
}
|
|
9928
|
-
/**
|
|
9929
|
-
* Setup phone number linkage with whatsapp bots
|
|
9930
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
9931
|
-
* @returns WhatsappUserConfig
|
|
9932
|
-
* @throws ApiError
|
|
9933
|
-
*/
|
|
9934
|
-
static aiBotV1BotsWhatsappUserConfigList({
|
|
9935
|
-
org
|
|
9936
|
-
}) {
|
|
9937
|
-
return request(OpenAPI, {
|
|
9938
|
-
method: 'GET',
|
|
9939
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
|
|
9940
|
-
path: {
|
|
9941
|
-
'org': org
|
|
9942
|
-
}
|
|
9943
|
-
});
|
|
9944
|
-
}
|
|
9945
|
-
/**
|
|
9946
|
-
* Setup phone number linkage with whatsapp bots
|
|
9947
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
9948
|
-
* @returns WhatsappUserConfig
|
|
9949
|
-
* @throws ApiError
|
|
9950
|
-
*/
|
|
9951
|
-
static aiBotV1BotsWhatsappUserConfigCreate({
|
|
9952
|
-
org,
|
|
9953
|
-
requestBody
|
|
9954
|
-
}) {
|
|
9955
|
-
return request(OpenAPI, {
|
|
9956
|
-
method: 'POST',
|
|
9957
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
|
|
9958
|
-
path: {
|
|
9959
|
-
'org': org
|
|
9960
|
-
},
|
|
9961
|
-
body: requestBody,
|
|
9962
|
-
mediaType: 'application/json'
|
|
9963
|
-
});
|
|
9964
|
-
}
|
|
9965
|
-
/**
|
|
9966
|
-
* Setup phone number linkage with whatsapp bots
|
|
9967
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
9968
|
-
* @returns WhatsappUserConfig
|
|
9969
|
-
* @throws ApiError
|
|
9970
|
-
*/
|
|
9971
|
-
static aiBotV1BotsWhatsappUserConfigRetrieve({
|
|
9972
|
-
id,
|
|
9973
|
-
org
|
|
9974
|
-
}) {
|
|
9975
|
-
return request(OpenAPI, {
|
|
9976
|
-
method: 'GET',
|
|
9977
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
9978
|
-
path: {
|
|
9979
|
-
'id': id,
|
|
9980
|
-
'org': org
|
|
9981
|
-
}
|
|
9982
|
-
});
|
|
9983
|
-
}
|
|
9984
|
-
/**
|
|
9985
|
-
* Setup phone number linkage with whatsapp bots
|
|
9986
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
9987
|
-
* @returns WhatsappUserConfig
|
|
9988
|
-
* @throws ApiError
|
|
9989
|
-
*/
|
|
9990
|
-
static aiBotV1BotsWhatsappUserConfigUpdate({
|
|
9991
|
-
id,
|
|
9992
|
-
org,
|
|
9993
|
-
requestBody
|
|
9994
|
-
}) {
|
|
9995
|
-
return request(OpenAPI, {
|
|
9996
|
-
method: 'PUT',
|
|
9997
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
9998
|
-
path: {
|
|
9999
|
-
'id': id,
|
|
10000
|
-
'org': org
|
|
10001
|
-
},
|
|
10002
|
-
body: requestBody,
|
|
10003
|
-
mediaType: 'application/json'
|
|
10004
|
-
});
|
|
10005
|
-
}
|
|
10006
|
-
/**
|
|
10007
|
-
* Setup phone number linkage with whatsapp bots
|
|
10008
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
10009
|
-
* @returns WhatsappUserConfig
|
|
10010
|
-
* @throws ApiError
|
|
10011
|
-
*/
|
|
10012
|
-
static aiBotV1BotsWhatsappUserConfigPartialUpdate({
|
|
10013
|
-
id,
|
|
10014
|
-
org,
|
|
10015
|
-
requestBody
|
|
10016
|
-
}) {
|
|
10017
|
-
return request(OpenAPI, {
|
|
10018
|
-
method: 'PATCH',
|
|
10019
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
10020
|
-
path: {
|
|
10021
|
-
'id': id,
|
|
10022
|
-
'org': org
|
|
10023
|
-
},
|
|
10024
|
-
body: requestBody,
|
|
10025
|
-
mediaType: 'application/json'
|
|
10026
|
-
});
|
|
10027
|
-
}
|
|
10028
|
-
/**
|
|
10029
|
-
* Setup phone number linkage with whatsapp bots
|
|
10030
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
10031
|
-
* @returns void
|
|
10032
|
-
* @throws ApiError
|
|
10033
|
-
*/
|
|
10034
|
-
static aiBotV1BotsWhatsappUserConfigDestroy({
|
|
10035
|
-
id,
|
|
10036
|
-
org
|
|
10037
|
-
}) {
|
|
10038
|
-
return request(OpenAPI, {
|
|
10039
|
-
method: 'DELETE',
|
|
10040
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
10041
|
-
path: {
|
|
10042
|
-
'id': id,
|
|
10043
|
-
'org': org
|
|
10044
|
-
}
|
|
10045
|
-
});
|
|
10046
|
-
}
|
|
10047
|
-
/**
|
|
10048
|
-
* Webhook endpoint to receive and process discord messages.
|
|
10049
|
-
* @returns DiscordWebhook
|
|
10050
|
-
* @throws ApiError
|
|
10051
|
-
*/
|
|
10052
|
-
static aiBotV1BotsWebhooksDiscordCreate({
|
|
10053
|
-
name,
|
|
10054
|
-
org,
|
|
10055
|
-
requestBody
|
|
10056
|
-
}) {
|
|
10057
|
-
return request(OpenAPI, {
|
|
10058
|
-
method: 'POST',
|
|
10059
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
|
|
10060
|
-
path: {
|
|
10061
|
-
'name': name,
|
|
10062
|
-
'org': org
|
|
10063
|
-
},
|
|
10064
|
-
body: requestBody,
|
|
10065
|
-
mediaType: 'application/json'
|
|
10066
|
-
});
|
|
10067
|
-
}
|
|
10068
|
-
/**
|
|
10069
|
-
* @returns SlackWebhook
|
|
10070
|
-
* @throws ApiError
|
|
10071
|
-
*/
|
|
10072
|
-
static aiBotV1BotsWebhooksSlackCreate({
|
|
10073
|
-
name,
|
|
10074
|
-
org,
|
|
10075
|
-
requestBody
|
|
10076
|
-
}) {
|
|
10077
|
-
return request(OpenAPI, {
|
|
10078
|
-
method: 'POST',
|
|
10079
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
|
|
10080
|
-
path: {
|
|
10081
|
-
'name': name,
|
|
10082
|
-
'org': org
|
|
10083
|
-
},
|
|
10084
|
-
body: requestBody,
|
|
10085
|
-
mediaType: 'application/json'
|
|
10086
|
-
});
|
|
10087
|
-
}
|
|
10088
|
-
/**
|
|
10089
|
-
* @returns TeamsWebhook
|
|
10090
|
-
* @throws ApiError
|
|
10091
|
-
*/
|
|
10092
|
-
static aiBotV1BotsWebhooksTeamsCreate({
|
|
10093
|
-
name,
|
|
10094
|
-
org,
|
|
10095
|
-
requestBody
|
|
10096
|
-
}) {
|
|
10097
|
-
return request(OpenAPI, {
|
|
10098
|
-
method: 'POST',
|
|
10099
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
|
|
10100
|
-
path: {
|
|
10101
|
-
'name': name,
|
|
10102
|
-
'org': org
|
|
10103
|
-
},
|
|
10104
|
-
body: requestBody,
|
|
10105
|
-
mediaType: 'application/json'
|
|
10106
|
-
});
|
|
10107
|
-
}
|
|
10108
|
-
/**
|
|
10109
|
-
* Webhook endpoint to receive and process discord messages.
|
|
10110
|
-
* @returns WebexWebhook
|
|
10111
|
-
* @throws ApiError
|
|
10112
|
-
*/
|
|
10113
|
-
static aiBotV1BotsWebhooksWebexCreate({
|
|
10114
|
-
name,
|
|
10115
|
-
org,
|
|
10116
|
-
requestBody
|
|
10117
|
-
}) {
|
|
10118
|
-
return request(OpenAPI, {
|
|
10119
|
-
method: 'POST',
|
|
10120
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
|
|
10121
|
-
path: {
|
|
10122
|
-
'name': name,
|
|
10123
|
-
'org': org
|
|
10124
|
-
},
|
|
10125
|
-
body: requestBody,
|
|
10126
|
-
mediaType: 'application/json'
|
|
10127
|
-
});
|
|
10128
|
-
}
|
|
10129
|
-
/**
|
|
10130
|
-
* Respond to whatsapp's webhook challenge.
|
|
10131
|
-
* Parameters Required include the tenant key (org) and the name of the bot: (name)
|
|
10132
|
-
* @returns WhatAppWebHook
|
|
10133
|
-
* @throws ApiError
|
|
10134
|
-
*/
|
|
10135
|
-
static aiBotV1BotsWebhooksWhatsappRetrieve({
|
|
10136
|
-
name,
|
|
10137
|
-
org
|
|
10138
|
-
}) {
|
|
10139
|
-
return request(OpenAPI, {
|
|
10140
|
-
method: 'GET',
|
|
10141
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
|
|
10142
|
-
path: {
|
|
10143
|
-
'name': name,
|
|
10144
|
-
'org': org
|
|
10145
|
-
}
|
|
10146
|
-
});
|
|
10147
|
-
}
|
|
10148
|
-
/**
|
|
10149
|
-
* Accept and process webhook events from whatsapp.
|
|
10150
|
-
* @returns WhatAppWebHook
|
|
10151
|
-
* @throws ApiError
|
|
10152
|
-
*/
|
|
10153
|
-
static aiBotV1BotsWebhooksWhatsappCreate({
|
|
10154
|
-
name,
|
|
10155
|
-
org,
|
|
10156
|
-
requestBody
|
|
10157
|
-
}) {
|
|
10158
|
-
return request(OpenAPI, {
|
|
10159
|
-
method: 'POST',
|
|
10160
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
|
|
10161
|
-
path: {
|
|
10162
|
-
'name': name,
|
|
10163
|
-
'org': org
|
|
10164
|
-
},
|
|
10165
|
-
body: requestBody,
|
|
10166
|
-
mediaType: 'application/json'
|
|
10167
|
-
});
|
|
10168
|
-
}
|
|
10169
|
-
}
|
|
10170
|
-
|
|
10171
|
-
class AiFinetuningService {
|
|
10172
|
-
/**
|
|
10173
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10174
|
-
* @returns PaginatedDataSetList
|
|
10175
|
-
* @throws ApiError
|
|
10176
|
-
*/
|
|
10177
|
-
static aiFinetuningV1OrgUserDatasetsList({
|
|
10178
|
-
org,
|
|
10179
|
-
username,
|
|
10180
|
-
dateCreated,
|
|
10181
|
-
numDataPoints,
|
|
10182
|
-
ordering,
|
|
10183
|
-
page,
|
|
10184
|
-
pageSize,
|
|
10185
|
-
retryAttempts,
|
|
10186
|
-
search,
|
|
10187
|
-
status
|
|
10188
|
-
}) {
|
|
10189
|
-
return request(OpenAPI, {
|
|
10190
|
-
method: 'GET',
|
|
10191
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
|
|
10192
|
-
path: {
|
|
10193
|
-
'org': org,
|
|
10194
|
-
'username': username
|
|
10195
|
-
},
|
|
10196
|
-
query: {
|
|
10197
|
-
'date_created': dateCreated,
|
|
10198
|
-
'num_data_points': numDataPoints,
|
|
10199
|
-
'ordering': ordering,
|
|
10200
|
-
'page': page,
|
|
10201
|
-
'page_size': pageSize,
|
|
10202
|
-
'retry_attempts': retryAttempts,
|
|
10203
|
-
'search': search,
|
|
10204
|
-
'status': status
|
|
10205
|
-
}
|
|
10206
|
-
});
|
|
10207
|
-
}
|
|
10208
|
-
/**
|
|
10209
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10210
|
-
* @returns DataSetCreate
|
|
10211
|
-
* @throws ApiError
|
|
10212
|
-
*/
|
|
10213
|
-
static aiFinetuningV1OrgUserDatasetsCreate({
|
|
10214
|
-
org,
|
|
10215
|
-
username,
|
|
10216
|
-
requestBody
|
|
10217
|
-
}) {
|
|
10218
|
-
return request(OpenAPI, {
|
|
10219
|
-
method: 'POST',
|
|
10220
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
|
|
10221
|
-
path: {
|
|
10222
|
-
'org': org,
|
|
10223
|
-
'username': username
|
|
10224
|
-
},
|
|
10225
|
-
body: requestBody,
|
|
10226
|
-
mediaType: 'application/json'
|
|
10227
|
-
});
|
|
10228
|
-
}
|
|
10229
|
-
/**
|
|
10230
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10231
|
-
* @returns DataSet
|
|
10232
|
-
* @throws ApiError
|
|
10233
|
-
*/
|
|
10234
|
-
static aiFinetuningV1OrgUserDatasetsRetrieve({
|
|
10235
|
-
id,
|
|
10236
|
-
org,
|
|
10237
|
-
username
|
|
10238
|
-
}) {
|
|
10239
|
-
return request(OpenAPI, {
|
|
10240
|
-
method: 'GET',
|
|
10241
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
10242
|
-
path: {
|
|
10243
|
-
'id': id,
|
|
10244
|
-
'org': org,
|
|
10245
|
-
'username': username
|
|
10246
|
-
}
|
|
10247
|
-
});
|
|
10248
|
-
}
|
|
10249
|
-
/**
|
|
10250
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10251
|
-
* @returns DataSet
|
|
10252
|
-
* @throws ApiError
|
|
10253
|
-
*/
|
|
10254
|
-
static aiFinetuningV1OrgUserDatasetsUpdate({
|
|
10255
|
-
id,
|
|
10256
|
-
org,
|
|
10257
|
-
username,
|
|
10258
|
-
requestBody
|
|
10259
|
-
}) {
|
|
10260
|
-
return request(OpenAPI, {
|
|
10261
|
-
method: 'PUT',
|
|
10262
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
10263
|
-
path: {
|
|
10264
|
-
'id': id,
|
|
10265
|
-
'org': org,
|
|
10266
|
-
'username': username
|
|
10267
|
-
},
|
|
10268
|
-
body: requestBody,
|
|
10269
|
-
mediaType: 'application/json'
|
|
10270
|
-
});
|
|
10271
|
-
}
|
|
10272
|
-
/**
|
|
10273
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10274
|
-
* @returns DataSet
|
|
10275
|
-
* @throws ApiError
|
|
10276
|
-
*/
|
|
10277
|
-
static aiFinetuningV1OrgUserDatasetsPartialUpdate({
|
|
10278
|
-
id,
|
|
10279
|
-
org,
|
|
10280
|
-
username,
|
|
10281
|
-
requestBody
|
|
10282
|
-
}) {
|
|
10283
|
-
return request(OpenAPI, {
|
|
10284
|
-
method: 'PATCH',
|
|
10285
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
10286
|
-
path: {
|
|
10287
|
-
'id': id,
|
|
10288
|
-
'org': org,
|
|
10289
|
-
'username': username
|
|
10290
|
-
},
|
|
10291
|
-
body: requestBody,
|
|
10292
|
-
mediaType: 'application/json'
|
|
10293
|
-
});
|
|
10294
|
-
}
|
|
10295
|
-
/**
|
|
10296
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10297
|
-
* @returns void
|
|
10298
|
-
* @throws ApiError
|
|
10299
|
-
*/
|
|
10300
|
-
static aiFinetuningV1OrgUserDatasetsDestroy({
|
|
10301
|
-
id,
|
|
10302
|
-
org,
|
|
10303
|
-
username
|
|
10304
|
-
}) {
|
|
10305
|
-
return request(OpenAPI, {
|
|
10306
|
-
method: 'DELETE',
|
|
10307
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
10308
|
-
path: {
|
|
10309
|
-
'id': id,
|
|
10310
|
-
'org': org,
|
|
10311
|
-
'username': username
|
|
10312
|
-
}
|
|
10313
|
-
});
|
|
10314
|
-
}
|
|
10315
|
-
/**
|
|
10316
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10317
|
-
* @returns PaginatedTrainingList
|
|
10318
|
-
* @throws ApiError
|
|
10319
|
-
*/
|
|
10320
|
-
static aiFinetuningV1OrgUserTrainingsList({
|
|
10321
|
-
org,
|
|
10322
|
-
username,
|
|
10323
|
-
baseModelName,
|
|
10324
|
-
dataset,
|
|
10325
|
-
dateCreated,
|
|
10326
|
-
fineTunedModel,
|
|
10327
|
-
lastModified,
|
|
10328
|
-
ordering,
|
|
10329
|
-
page,
|
|
10330
|
-
pageSize,
|
|
10331
|
-
preprocessDataset,
|
|
10332
|
-
provider,
|
|
10333
|
-
search,
|
|
10334
|
-
status
|
|
10335
|
-
}) {
|
|
10336
|
-
return request(OpenAPI, {
|
|
10337
|
-
method: 'GET',
|
|
10338
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
|
|
10339
|
-
path: {
|
|
10340
|
-
'org': org,
|
|
10341
|
-
'username': username
|
|
10342
|
-
},
|
|
10343
|
-
query: {
|
|
10344
|
-
'base_model_name': baseModelName,
|
|
10345
|
-
'dataset': dataset,
|
|
10346
|
-
'date_created': dateCreated,
|
|
10347
|
-
'fine_tuned_model': fineTunedModel,
|
|
10348
|
-
'last_modified': lastModified,
|
|
10349
|
-
'ordering': ordering,
|
|
10350
|
-
'page': page,
|
|
10351
|
-
'page_size': pageSize,
|
|
10352
|
-
'preprocess_dataset': preprocessDataset,
|
|
10353
|
-
'provider': provider,
|
|
10354
|
-
'search': search,
|
|
10355
|
-
'status': status
|
|
10356
|
-
}
|
|
10357
|
-
});
|
|
10358
|
-
}
|
|
10359
|
-
/**
|
|
10360
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10361
|
-
* @returns TrainingCreate
|
|
10362
|
-
* @throws ApiError
|
|
10363
|
-
*/
|
|
10364
|
-
static aiFinetuningV1OrgUserTrainingsCreate({
|
|
10365
|
-
org,
|
|
10366
|
-
username,
|
|
10367
|
-
requestBody
|
|
10368
|
-
}) {
|
|
10369
|
-
return request(OpenAPI, {
|
|
10370
|
-
method: 'POST',
|
|
10371
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
|
|
10372
|
-
path: {
|
|
10373
|
-
'org': org,
|
|
10374
|
-
'username': username
|
|
10375
|
-
},
|
|
10376
|
-
body: requestBody,
|
|
10377
|
-
mediaType: 'application/json'
|
|
10378
|
-
});
|
|
10379
|
-
}
|
|
10380
|
-
/**
|
|
10381
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10382
|
-
* @returns Training
|
|
10383
|
-
* @throws ApiError
|
|
10384
|
-
*/
|
|
10385
|
-
static aiFinetuningV1OrgUserTrainingsRetrieve({
|
|
10386
|
-
id,
|
|
10387
|
-
org,
|
|
10388
|
-
username
|
|
10389
|
-
}) {
|
|
10390
|
-
return request(OpenAPI, {
|
|
10391
|
-
method: 'GET',
|
|
10392
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
10393
|
-
path: {
|
|
10394
|
-
'id': id,
|
|
10395
|
-
'org': org,
|
|
10396
|
-
'username': username
|
|
10397
|
-
}
|
|
10398
|
-
});
|
|
10399
|
-
}
|
|
10400
|
-
/**
|
|
10401
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10402
|
-
* @returns TrainingCreate
|
|
10403
|
-
* @throws ApiError
|
|
10404
|
-
*/
|
|
10405
|
-
static aiFinetuningV1OrgUserTrainingsUpdate({
|
|
10406
|
-
id,
|
|
10407
|
-
org,
|
|
10408
|
-
username,
|
|
10409
|
-
requestBody
|
|
10410
|
-
}) {
|
|
10411
|
-
return request(OpenAPI, {
|
|
10412
|
-
method: 'PUT',
|
|
10413
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
10414
|
-
path: {
|
|
10415
|
-
'id': id,
|
|
10416
|
-
'org': org,
|
|
10417
|
-
'username': username
|
|
10418
|
-
},
|
|
10419
|
-
body: requestBody,
|
|
10420
|
-
mediaType: 'application/json'
|
|
10421
|
-
});
|
|
10422
|
-
}
|
|
10423
|
-
/**
|
|
10424
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10425
|
-
* @returns TrainingCreate
|
|
10426
|
-
* @throws ApiError
|
|
10427
|
-
*/
|
|
10428
|
-
static aiFinetuningV1OrgUserTrainingsPartialUpdate({
|
|
10429
|
-
id,
|
|
10430
|
-
org,
|
|
10431
|
-
username,
|
|
10432
|
-
requestBody
|
|
10433
|
-
}) {
|
|
10434
|
-
return request(OpenAPI, {
|
|
10435
|
-
method: 'PATCH',
|
|
10436
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
10437
|
-
path: {
|
|
10438
|
-
'id': id,
|
|
10439
|
-
'org': org,
|
|
10440
|
-
'username': username
|
|
10441
|
-
},
|
|
10442
|
-
body: requestBody,
|
|
10443
|
-
mediaType: 'application/json'
|
|
10444
|
-
});
|
|
10445
|
-
}
|
|
10446
|
-
/**
|
|
10447
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10448
|
-
* @returns void
|
|
10449
|
-
* @throws ApiError
|
|
10450
|
-
*/
|
|
10451
|
-
static aiFinetuningV1OrgUserTrainingsDestroy({
|
|
10452
|
-
id,
|
|
10453
|
-
org,
|
|
10454
|
-
username
|
|
10455
|
-
}) {
|
|
10456
|
-
return request(OpenAPI, {
|
|
10457
|
-
method: 'DELETE',
|
|
10458
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
10459
|
-
path: {
|
|
10460
|
-
'id': id,
|
|
10461
|
-
'org': org,
|
|
10462
|
-
'username': username
|
|
10463
|
-
}
|
|
10464
|
-
});
|
|
10465
|
-
}
|
|
10466
|
-
/**
|
|
10467
|
-
* Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
|
|
10468
|
-
* Filtering and pagination is allowed.
|
|
10469
|
-
*
|
|
10470
|
-
* NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
|
|
10471
|
-
* training list endpoint.
|
|
10472
|
-
* Returns:
|
|
10473
|
-
* Response: A paginated response containing the serialized fine-tuned models.
|
|
10474
|
-
* @returns Training
|
|
10475
|
-
* @throws ApiError
|
|
10476
|
-
*/
|
|
10477
|
-
static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
|
|
10478
|
-
org,
|
|
10479
|
-
username
|
|
10480
|
-
}) {
|
|
10481
|
-
return request(OpenAPI, {
|
|
10482
|
-
method: 'GET',
|
|
10483
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
|
|
10484
|
-
path: {
|
|
10485
|
-
'org': org,
|
|
10486
|
-
'username': username
|
|
10487
|
-
}
|
|
10488
|
-
});
|
|
10489
|
-
}
|
|
10490
|
-
}
|
|
10491
|
-
|
|
10492
|
-
class AiIndexService {
|
|
10493
|
-
/**
|
|
10494
|
-
* Retrieve details of a specific document embedding.
|
|
10495
|
-
*
|
|
10496
|
-
* This endpoint returns detailed information about a specific
|
|
10497
|
-
* document embedding identified by its ID.
|
|
10498
|
-
*
|
|
10499
|
-
* Args:
|
|
10500
|
-
* request: The HTTP request.
|
|
10501
|
-
* org: Organization key identifier.
|
|
10502
|
-
* document_id: The ID of the document embedding to retrieve.
|
|
10503
|
-
*
|
|
10504
|
-
* Returns:
|
|
10505
|
-
* Response: Detailed information about the document embedding.
|
|
10506
|
-
*
|
|
10507
|
-
* Raises:
|
|
10508
|
-
* NotFound: If the specified document embedding does not exist.
|
|
10509
|
-
* @returns RetrieverDocumentEmbedding
|
|
10510
|
-
* @throws ApiError
|
|
10511
|
-
*/
|
|
10512
|
-
static aiIndexOrgsUsersDocumentsRetrieve({
|
|
10513
|
-
documentId,
|
|
10514
|
-
org,
|
|
10515
|
-
userId
|
|
10516
|
-
}) {
|
|
10517
|
-
return request(OpenAPI, {
|
|
10518
|
-
method: 'GET',
|
|
10519
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
10520
|
-
path: {
|
|
10521
|
-
'document_id': documentId,
|
|
10522
|
-
'org': org,
|
|
10523
|
-
'user_id': userId
|
|
10524
|
-
},
|
|
10525
|
-
errors: {
|
|
10526
|
-
404: `Document not found`
|
|
10527
|
-
}
|
|
10528
|
-
});
|
|
10529
|
-
}
|
|
10530
|
-
/**
|
|
10531
|
-
* Update a specific document embedding.
|
|
10532
|
-
*
|
|
10533
|
-
* This endpoint allows updating various properties of a document embedding,
|
|
10534
|
-
* including its name, type, pathway, and training status.
|
|
10535
|
-
*
|
|
10536
|
-
* Args:
|
|
10537
|
-
* request: The HTTP request containing the updated document data.
|
|
10538
|
-
* org: Organization key identifier.
|
|
10539
|
-
* document_id: The ID of the document embedding to update.
|
|
10540
|
-
*
|
|
10541
|
-
* Returns:
|
|
10542
|
-
* Response: The updated document embedding information.
|
|
10543
|
-
*
|
|
10544
|
-
* Raises:
|
|
10545
|
-
* BadRequest: If the provided data is invalid.
|
|
10546
|
-
* NotFound: If the specified document embedding does not exist.
|
|
10547
|
-
* @returns RetrieverDocumentEmbedding
|
|
10548
|
-
* @throws ApiError
|
|
10549
|
-
*/
|
|
10550
|
-
static aiIndexOrgsUsersDocumentsUpdate({
|
|
10551
|
-
documentId,
|
|
10552
|
-
org,
|
|
10553
|
-
userId,
|
|
10554
|
-
formData
|
|
10555
|
-
}) {
|
|
10556
|
-
return request(OpenAPI, {
|
|
10557
|
-
method: 'PUT',
|
|
10558
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
10559
|
-
path: {
|
|
10560
|
-
'document_id': documentId,
|
|
10561
|
-
'org': org,
|
|
10562
|
-
'user_id': userId
|
|
10563
|
-
},
|
|
10564
|
-
formData: formData,
|
|
10565
|
-
mediaType: 'multipart/form-data',
|
|
10566
|
-
errors: {
|
|
10567
|
-
400: `Invalid request data`,
|
|
10568
|
-
404: `Document not found`
|
|
10569
|
-
}
|
|
10570
|
-
});
|
|
10571
|
-
}
|
|
10572
|
-
/**
|
|
10573
|
-
* Delete a specific document embedding.
|
|
10574
|
-
*
|
|
10575
|
-
* This endpoint removes a document embedding from the system,
|
|
10576
|
-
* including untraining it from any associated pathways.
|
|
10577
|
-
*
|
|
10578
|
-
* Args:
|
|
10579
|
-
* request: The HTTP request.
|
|
10580
|
-
* org: Organization key identifier.
|
|
10581
|
-
* document_id: The ID of the document embedding to delete.
|
|
10582
|
-
*
|
|
10583
|
-
* Returns:
|
|
10584
|
-
* Response: An empty response with a 204 status code if successful.
|
|
10585
|
-
*
|
|
10586
|
-
* Raises:
|
|
10587
|
-
* NotFound: If the specified document embedding does not exist.
|
|
10588
|
-
* @returns void
|
|
10589
|
-
* @throws ApiError
|
|
10590
|
-
*/
|
|
10591
|
-
static aiIndexOrgsUsersDocumentsDestroy({
|
|
10592
|
-
documentId,
|
|
10593
|
-
org,
|
|
10594
|
-
userId
|
|
10595
|
-
}) {
|
|
10596
|
-
return request(OpenAPI, {
|
|
10597
|
-
method: 'DELETE',
|
|
10598
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
10599
|
-
path: {
|
|
10600
|
-
'document_id': documentId,
|
|
10601
|
-
'org': org,
|
|
10602
|
-
'user_id': userId
|
|
10603
|
-
},
|
|
10604
|
-
errors: {
|
|
10605
|
-
404: `Document not found`
|
|
10606
|
-
}
|
|
10607
|
-
});
|
|
10608
|
-
}
|
|
10609
|
-
/**
|
|
10610
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10611
|
-
* @returns DocumentSettingsResponse
|
|
10612
|
-
* @throws ApiError
|
|
10613
|
-
*/
|
|
10614
|
-
static aiIndexOrgsUsersDocumentsSettingsRetrieve({
|
|
10615
|
-
documentId,
|
|
10616
|
-
org,
|
|
10617
|
-
userId
|
|
10618
|
-
}) {
|
|
10619
|
-
return request(OpenAPI, {
|
|
10620
|
-
method: 'GET',
|
|
10621
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
|
|
10622
|
-
path: {
|
|
10623
|
-
'document_id': documentId,
|
|
10624
|
-
'org': org,
|
|
10625
|
-
'user_id': userId
|
|
10626
|
-
}
|
|
10627
|
-
});
|
|
10628
|
-
}
|
|
10629
|
-
/**
|
|
10630
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
10631
|
-
* @returns DocumentSettingsResponse
|
|
10632
|
-
* @throws ApiError
|
|
10633
|
-
*/
|
|
10634
|
-
static aiIndexOrgsUsersDocumentsSettingsCreate({
|
|
10635
|
-
documentId,
|
|
10636
|
-
org,
|
|
10637
|
-
userId,
|
|
10638
|
-
requestBody
|
|
10639
|
-
}) {
|
|
10640
|
-
return request(OpenAPI, {
|
|
10641
|
-
method: 'POST',
|
|
10642
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
|
|
10643
|
-
path: {
|
|
10644
|
-
'document_id': documentId,
|
|
10645
|
-
'org': org,
|
|
10646
|
-
'user_id': userId
|
|
10647
|
-
},
|
|
10648
|
-
body: requestBody,
|
|
10649
|
-
mediaType: 'application/json'
|
|
10650
|
-
});
|
|
10651
|
-
}
|
|
10652
|
-
/**
|
|
10653
|
-
* Train a graph-based document through a worker process.
|
|
10654
|
-
*
|
|
10655
|
-
* This endpoint queues graph-based documents for training through a
|
|
10656
|
-
* specialized worker process that handles knowledge graph processing.
|
|
10657
|
-
*
|
|
10658
|
-
* Args:
|
|
10659
|
-
* request: The HTTP request containing the document information.
|
|
10660
|
-
* org: Organization key identifier.
|
|
10661
|
-
*
|
|
10662
|
-
* Returns:
|
|
10663
|
-
* Response: A confirmation that the document was queued for training,
|
|
10664
|
-
* including a task ID for tracking the progress.
|
|
10665
|
-
*
|
|
10666
|
-
* Raises:
|
|
10667
|
-
* ValidationError: If the request data is invalid.
|
|
10668
|
-
* BadRequest: If there was an error processing the document.
|
|
10669
|
-
* @returns TrainDocumentViewResponse
|
|
10670
|
-
* @throws ApiError
|
|
10671
|
-
*/
|
|
10672
|
-
static aiIndexOrgsUsersDocumentsGraphTrainCreate({
|
|
10673
|
-
org,
|
|
10674
|
-
userId,
|
|
10675
|
-
formData
|
|
10676
|
-
}) {
|
|
10677
|
-
return request(OpenAPI, {
|
|
10678
|
-
method: 'POST',
|
|
10679
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/graph-train/',
|
|
10680
|
-
path: {
|
|
10681
|
-
'org': org,
|
|
10682
|
-
'user_id': userId
|
|
10683
|
-
},
|
|
10684
|
-
formData: formData,
|
|
10685
|
-
mediaType: 'multipart/form-data',
|
|
10686
|
-
errors: {
|
|
10687
|
-
400: `Invalid request data or document processing error`
|
|
10688
|
-
}
|
|
10689
|
-
});
|
|
10690
|
-
}
|
|
10691
9263
|
/**
|
|
10692
9264
|
* Description:
|
|
10693
9265
|
* Retrieves a list of document embeddings for a specific pathway with optional search and pagination.
|
|
@@ -11411,7 +9983,7 @@ class AiMentorService {
|
|
|
11411
9983
|
static aiMentorLangfuseHealthRetrieve() {
|
|
11412
9984
|
return request(OpenAPI, {
|
|
11413
9985
|
method: 'GET',
|
|
11414
|
-
url: '/api/ai-mentor/langfuse/health'
|
|
9986
|
+
url: '/api/ai-mentor/langfuse/health/'
|
|
11415
9987
|
});
|
|
11416
9988
|
}
|
|
11417
9989
|
/**
|
|
@@ -35650,5 +34222,5 @@ class SkillsService {
|
|
|
35650
34222
|
}
|
|
35651
34223
|
}
|
|
35652
34224
|
|
|
35653
|
-
export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService,
|
|
34225
|
+
export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService, AiIndexService, AiMarketingService, AiMediaService, AiMentorService, AiPromptService, AlignMentorBubbleEnum, ApiError, BlankEnum, CallConfigurationModeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, CommerceService, ComponentBlockTypeEnum, ConnectedServiceProviderEnum, CoreService, CourseCreationTaskStatusEnum, CrawlerPatternTypeEnum, CredentialsService, CustomDomainsService, FeaturesService, GooglePayAccountResponseStatusEnum, GreetingMethodEnum, HumanSupportTicketStatusEnum, InstitutionTypeEnum, ItemTypeEnum, KindEnum, LlmProviderEnum, MediaService, MediaTypeEnum, MentorVisibilityEnum, NotificationSourceTypeEnum, NotificationStatusEnum, NotificationsService, OpenAPI, PeriodicAgentLogStatusEnum, PlatformListStatusEnum, PreviousAgentStatusEnum, ProgramTypeEnum, PromptVisibilityEnum, Provider637Enum, RatingEnum, RecommendationsService, ReportsService, ResourceScrappedDataStatusEnum, ScimService, SearchService, ServiceEnum, SkillsService, StateEnum, Status6eeEnum, StepStatusEnum, StripeCheckoutSessionRequestModeEnum, SttProviderEnum, TargetSystemEnum, ThemeEnum, TrainingStatusEnum, TransportEnum, TtsProviderEnum, TypeC42Enum };
|
|
35654
34226
|
//# sourceMappingURL=index.esm.js.map
|