@iblai/iblai-api 3.48.5-ai-plus → 3.49.0-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 +638 -1729
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +639 -1728
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +638 -1729
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +8 -41
- package/dist/types/models/CallConfiguration.d.ts +26 -0
- package/dist/types/models/CallConfigurationModeEnum.d.ts +8 -0
- package/dist/types/models/LlmProviderEnum.d.ts +8 -0
- package/dist/types/models/Mentor.d.ts +2 -0
- package/dist/types/models/MentorSettings.d.ts +2 -0
- package/dist/types/models/PatchedCallConfiguration.d.ts +26 -0
- package/dist/types/models/{VoiceProviderEnum.d.ts → ProviderEnum.d.ts} +1 -1
- package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
- package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
- package/dist/types/models/SttProviderEnum.d.ts +12 -0
- package/dist/types/models/TtsProviderEnum.d.ts +10 -0
- package/dist/types/models/Voice.d.ts +2 -2
- package/dist/types/services/AiMentorService.d.ts +193 -0
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +8 -41
- package/src/models/CallConfiguration.ts +31 -0
- package/src/models/CallConfigurationModeEnum.ts +12 -0
- package/src/models/{Provider63aEnum.ts → LlmProviderEnum.ts} +3 -1
- package/src/models/Mentor.ts +2 -0
- package/src/models/MentorSettings.ts +2 -0
- package/src/models/PatchedCallConfiguration.ts +31 -0
- package/src/models/{VoiceProviderEnum.ts → ProviderEnum.ts} +1 -1
- package/src/models/StripeCheckoutSessionRequest.ts +2 -2
- package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
- package/src/models/SttProviderEnum.ts +16 -0
- package/src/models/TtsProviderEnum.ts +14 -0
- package/src/models/Voice.ts +2 -2
- package/src/services/AiMentorService.ts +286 -0
- 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/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: '3.
|
|
111
|
+
VERSION: '3.49.0-ai',
|
|
112
112
|
WITH_CREDENTIALS: false,
|
|
113
113
|
CREDENTIALS: 'include',
|
|
114
114
|
TOKEN: undefined,
|
|
@@ -165,6 +165,20 @@ var AlignMentorBubbleEnum;
|
|
|
165
165
|
var BlankEnum;
|
|
166
166
|
(function (BlankEnum) {})(BlankEnum || (BlankEnum = {}));
|
|
167
167
|
|
|
168
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
169
|
+
/* istanbul ignore file */
|
|
170
|
+
/* tslint:disable */
|
|
171
|
+
/* eslint-disable */
|
|
172
|
+
/**
|
|
173
|
+
* * `realtime` - Realtime
|
|
174
|
+
* * `inference` - Inference
|
|
175
|
+
*/
|
|
176
|
+
var CallConfigurationModeEnum;
|
|
177
|
+
(function (CallConfigurationModeEnum) {
|
|
178
|
+
CallConfigurationModeEnum["REALTIME"] = "realtime";
|
|
179
|
+
CallConfigurationModeEnum["INFERENCE"] = "inference";
|
|
180
|
+
})(CallConfigurationModeEnum || (CallConfigurationModeEnum = {}));
|
|
181
|
+
|
|
168
182
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
169
183
|
/* istanbul ignore file */
|
|
170
184
|
/* tslint:disable */
|
|
@@ -229,24 +243,6 @@ var CourseCreationTaskStatusEnum;
|
|
|
229
243
|
CourseCreationTaskStatusEnum["IN_PROGRESS"] = "In Progress";
|
|
230
244
|
})(CourseCreationTaskStatusEnum || (CourseCreationTaskStatusEnum = {}));
|
|
231
245
|
|
|
232
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
233
|
-
/* istanbul ignore file */
|
|
234
|
-
/* tslint:disable */
|
|
235
|
-
/* eslint-disable */
|
|
236
|
-
/**
|
|
237
|
-
* * `pending` - Pending
|
|
238
|
-
* * `processing` - Processing
|
|
239
|
-
* * `completed` - Completed
|
|
240
|
-
* * `failed` - Failed
|
|
241
|
-
*/
|
|
242
|
-
var DataSetStatusEnum;
|
|
243
|
-
(function (DataSetStatusEnum) {
|
|
244
|
-
DataSetStatusEnum["PENDING"] = "pending";
|
|
245
|
-
DataSetStatusEnum["PROCESSING"] = "processing";
|
|
246
|
-
DataSetStatusEnum["COMPLETED"] = "completed";
|
|
247
|
-
DataSetStatusEnum["FAILED"] = "failed";
|
|
248
|
-
})(DataSetStatusEnum || (DataSetStatusEnum = {}));
|
|
249
|
-
|
|
250
246
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
251
247
|
/* istanbul ignore file */
|
|
252
248
|
/* tslint:disable */
|
|
@@ -335,6 +331,20 @@ var KindEnum;
|
|
|
335
331
|
KindEnum["HELP_REQUEST"] = "HelpRequest";
|
|
336
332
|
})(KindEnum || (KindEnum = {}));
|
|
337
333
|
|
|
334
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
335
|
+
/* istanbul ignore file */
|
|
336
|
+
/* tslint:disable */
|
|
337
|
+
/* eslint-disable */
|
|
338
|
+
/**
|
|
339
|
+
* * `openai` - Openai
|
|
340
|
+
* * `google` - Google
|
|
341
|
+
*/
|
|
342
|
+
var LlmProviderEnum;
|
|
343
|
+
(function (LlmProviderEnum) {
|
|
344
|
+
LlmProviderEnum["OPENAI"] = "openai";
|
|
345
|
+
LlmProviderEnum["GOOGLE"] = "google";
|
|
346
|
+
})(LlmProviderEnum || (LlmProviderEnum = {}));
|
|
347
|
+
|
|
338
348
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
339
349
|
/* istanbul ignore file */
|
|
340
350
|
/* tslint:disable */
|
|
@@ -371,22 +381,6 @@ var MentorVisibilityEnum;
|
|
|
371
381
|
MentorVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
|
|
372
382
|
})(MentorVisibilityEnum || (MentorVisibilityEnum = {}));
|
|
373
383
|
|
|
374
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
375
|
-
/* istanbul ignore file */
|
|
376
|
-
/* tslint:disable */
|
|
377
|
-
/* eslint-disable */
|
|
378
|
-
/**
|
|
379
|
-
* * `subscription` - subscription
|
|
380
|
-
* * `payment` - payment
|
|
381
|
-
* * `setup` - setup
|
|
382
|
-
*/
|
|
383
|
-
var ModeEnum;
|
|
384
|
-
(function (ModeEnum) {
|
|
385
|
-
ModeEnum["SUBSCRIPTION"] = "subscription";
|
|
386
|
-
ModeEnum["PAYMENT"] = "payment";
|
|
387
|
-
ModeEnum["SETUP"] = "setup";
|
|
388
|
-
})(ModeEnum || (ModeEnum = {}));
|
|
389
|
-
|
|
390
384
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
391
385
|
/* istanbul ignore file */
|
|
392
386
|
/* tslint:disable */
|
|
@@ -529,37 +523,21 @@ var PromptVisibilityEnum;
|
|
|
529
523
|
PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
|
|
530
524
|
})(PromptVisibilityEnum || (PromptVisibilityEnum = {}));
|
|
531
525
|
|
|
532
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
533
|
-
/* istanbul ignore file */
|
|
534
|
-
/* tslint:disable */
|
|
535
|
-
/* eslint-disable */
|
|
536
|
-
/**
|
|
537
|
-
* * `webex` - Webex
|
|
538
|
-
* * `slack` - Slack
|
|
539
|
-
* * `whatsapp` - Whatsapp
|
|
540
|
-
* * `discord` - Discord
|
|
541
|
-
* * `teams` - Teams
|
|
542
|
-
*/
|
|
543
|
-
var Provider05cEnum;
|
|
544
|
-
(function (Provider05cEnum) {
|
|
545
|
-
Provider05cEnum["WEBEX"] = "webex";
|
|
546
|
-
Provider05cEnum["SLACK"] = "slack";
|
|
547
|
-
Provider05cEnum["WHATSAPP"] = "whatsapp";
|
|
548
|
-
Provider05cEnum["DISCORD"] = "discord";
|
|
549
|
-
Provider05cEnum["TEAMS"] = "teams";
|
|
550
|
-
})(Provider05cEnum || (Provider05cEnum = {}));
|
|
551
|
-
|
|
552
526
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
553
527
|
/* istanbul ignore file */
|
|
554
528
|
/* tslint:disable */
|
|
555
529
|
/* eslint-disable */
|
|
556
530
|
/**
|
|
557
531
|
* * `openai` - Openai
|
|
532
|
+
* * `google` - Google
|
|
533
|
+
* * `elevenlabs` - Elevenlabs
|
|
558
534
|
*/
|
|
559
|
-
var
|
|
560
|
-
(function (
|
|
561
|
-
|
|
562
|
-
|
|
535
|
+
var ProviderEnum;
|
|
536
|
+
(function (ProviderEnum) {
|
|
537
|
+
ProviderEnum["OPENAI"] = "openai";
|
|
538
|
+
ProviderEnum["GOOGLE"] = "google";
|
|
539
|
+
ProviderEnum["ELEVENLABS"] = "elevenlabs";
|
|
540
|
+
})(ProviderEnum || (ProviderEnum = {}));
|
|
563
541
|
|
|
564
542
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
565
543
|
/* istanbul ignore file */
|
|
@@ -655,6 +633,40 @@ var StepStatusEnum;
|
|
|
655
633
|
StepStatusEnum["PENDING"] = "pending";
|
|
656
634
|
})(StepStatusEnum || (StepStatusEnum = {}));
|
|
657
635
|
|
|
636
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
637
|
+
/* istanbul ignore file */
|
|
638
|
+
/* tslint:disable */
|
|
639
|
+
/* eslint-disable */
|
|
640
|
+
/**
|
|
641
|
+
* * `subscription` - subscription
|
|
642
|
+
* * `payment` - payment
|
|
643
|
+
* * `setup` - setup
|
|
644
|
+
*/
|
|
645
|
+
var StripeCheckoutSessionRequestModeEnum;
|
|
646
|
+
(function (StripeCheckoutSessionRequestModeEnum) {
|
|
647
|
+
StripeCheckoutSessionRequestModeEnum["SUBSCRIPTION"] = "subscription";
|
|
648
|
+
StripeCheckoutSessionRequestModeEnum["PAYMENT"] = "payment";
|
|
649
|
+
StripeCheckoutSessionRequestModeEnum["SETUP"] = "setup";
|
|
650
|
+
})(StripeCheckoutSessionRequestModeEnum || (StripeCheckoutSessionRequestModeEnum = {}));
|
|
651
|
+
|
|
652
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
653
|
+
/* istanbul ignore file */
|
|
654
|
+
/* tslint:disable */
|
|
655
|
+
/* eslint-disable */
|
|
656
|
+
/**
|
|
657
|
+
* * `openai` - Openai
|
|
658
|
+
* * `google` - Google
|
|
659
|
+
* * `deepgram` - Deepgram
|
|
660
|
+
* * `cartesia` - Cartesia
|
|
661
|
+
*/
|
|
662
|
+
var SttProviderEnum;
|
|
663
|
+
(function (SttProviderEnum) {
|
|
664
|
+
SttProviderEnum["OPENAI"] = "openai";
|
|
665
|
+
SttProviderEnum["GOOGLE"] = "google";
|
|
666
|
+
SttProviderEnum["DEEPGRAM"] = "deepgram";
|
|
667
|
+
SttProviderEnum["CARTESIA"] = "cartesia";
|
|
668
|
+
})(SttProviderEnum || (SttProviderEnum = {}));
|
|
669
|
+
|
|
658
670
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
659
671
|
/* istanbul ignore file */
|
|
660
672
|
/* tslint:disable */
|
|
@@ -720,30 +732,30 @@ var TransportEnum;
|
|
|
720
732
|
/* tslint:disable */
|
|
721
733
|
/* eslint-disable */
|
|
722
734
|
/**
|
|
723
|
-
* * `
|
|
724
|
-
* * `
|
|
735
|
+
* * `openai` - Openai
|
|
736
|
+
* * `google` - Google
|
|
737
|
+
* * `elevenlabs` - Elevenlabs
|
|
725
738
|
*/
|
|
726
|
-
var
|
|
727
|
-
(function (
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
739
|
+
var TtsProviderEnum;
|
|
740
|
+
(function (TtsProviderEnum) {
|
|
741
|
+
TtsProviderEnum["OPENAI"] = "openai";
|
|
742
|
+
TtsProviderEnum["GOOGLE"] = "google";
|
|
743
|
+
TtsProviderEnum["ELEVENLABS"] = "elevenlabs";
|
|
744
|
+
})(TtsProviderEnum || (TtsProviderEnum = {}));
|
|
731
745
|
|
|
732
746
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
733
747
|
/* istanbul ignore file */
|
|
734
748
|
/* tslint:disable */
|
|
735
749
|
/* eslint-disable */
|
|
736
750
|
/**
|
|
737
|
-
* * `
|
|
738
|
-
* * `
|
|
739
|
-
* * `elevenlabs` - Elevenlabs
|
|
751
|
+
* * `tutorial` - Tutorial
|
|
752
|
+
* * `assessment` - Assessment
|
|
740
753
|
*/
|
|
741
|
-
var
|
|
742
|
-
(function (
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
})(VoiceProviderEnum || (VoiceProviderEnum = {}));
|
|
754
|
+
var TypeC42Enum;
|
|
755
|
+
(function (TypeC42Enum) {
|
|
756
|
+
TypeC42Enum["TUTORIAL"] = "tutorial";
|
|
757
|
+
TypeC42Enum["ASSESSMENT"] = "assessment";
|
|
758
|
+
})(TypeC42Enum || (TypeC42Enum = {}));
|
|
747
759
|
|
|
748
760
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
749
761
|
/* istanbul ignore file */
|
|
@@ -5721,1786 +5733,445 @@ class AiAnalyticsService {
|
|
|
5721
5733
|
}
|
|
5722
5734
|
}
|
|
5723
5735
|
|
|
5724
|
-
class
|
|
5736
|
+
class AiIndexService {
|
|
5725
5737
|
/**
|
|
5726
|
-
*
|
|
5727
|
-
*
|
|
5738
|
+
* Retrieve details of a specific document embedding.
|
|
5739
|
+
*
|
|
5740
|
+
* This endpoint returns detailed information about a specific
|
|
5741
|
+
* document embedding identified by its ID.
|
|
5742
|
+
*
|
|
5743
|
+
* Args:
|
|
5744
|
+
* request: The HTTP request.
|
|
5745
|
+
* org: Organization key identifier.
|
|
5746
|
+
* document_id: The ID of the document embedding to retrieve.
|
|
5747
|
+
*
|
|
5748
|
+
* Returns:
|
|
5749
|
+
* Response: Detailed information about the document embedding.
|
|
5750
|
+
*
|
|
5751
|
+
* Raises:
|
|
5752
|
+
* NotFound: If the specified document embedding does not exist.
|
|
5753
|
+
* @returns RetrieverDocumentEmbedding
|
|
5728
5754
|
* @throws ApiError
|
|
5729
5755
|
*/
|
|
5730
|
-
static
|
|
5731
|
-
|
|
5756
|
+
static aiIndexOrgsUsersDocumentsRetrieve({
|
|
5757
|
+
documentId,
|
|
5758
|
+
org,
|
|
5759
|
+
userId
|
|
5732
5760
|
}) {
|
|
5733
5761
|
return request(OpenAPI, {
|
|
5734
5762
|
method: 'GET',
|
|
5735
|
-
url: '/api/ai-
|
|
5763
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
5736
5764
|
path: {
|
|
5737
|
-
'
|
|
5765
|
+
'document_id': documentId,
|
|
5766
|
+
'org': org,
|
|
5767
|
+
'user_id': userId
|
|
5768
|
+
},
|
|
5769
|
+
errors: {
|
|
5770
|
+
404: `Document not found`
|
|
5738
5771
|
}
|
|
5739
5772
|
});
|
|
5740
5773
|
}
|
|
5741
5774
|
/**
|
|
5742
|
-
*
|
|
5743
|
-
*
|
|
5775
|
+
* Update a specific document embedding.
|
|
5776
|
+
*
|
|
5777
|
+
* This endpoint allows updating various properties of a document embedding,
|
|
5778
|
+
* including its name, type, pathway, and training status.
|
|
5779
|
+
*
|
|
5780
|
+
* Args:
|
|
5781
|
+
* request: The HTTP request containing the updated document data.
|
|
5782
|
+
* org: Organization key identifier.
|
|
5783
|
+
* document_id: The ID of the document embedding to update.
|
|
5784
|
+
*
|
|
5785
|
+
* Returns:
|
|
5786
|
+
* Response: The updated document embedding information.
|
|
5787
|
+
*
|
|
5788
|
+
* Raises:
|
|
5789
|
+
* BadRequest: If the provided data is invalid.
|
|
5790
|
+
* NotFound: If the specified document embedding does not exist.
|
|
5791
|
+
* @returns RetrieverDocumentEmbedding
|
|
5744
5792
|
* @throws ApiError
|
|
5745
5793
|
*/
|
|
5746
|
-
static
|
|
5794
|
+
static aiIndexOrgsUsersDocumentsUpdate({
|
|
5795
|
+
documentId,
|
|
5747
5796
|
org,
|
|
5748
|
-
|
|
5797
|
+
userId,
|
|
5798
|
+
formData
|
|
5749
5799
|
}) {
|
|
5750
5800
|
return request(OpenAPI, {
|
|
5751
|
-
method: '
|
|
5752
|
-
url: '/api/ai-
|
|
5801
|
+
method: 'PUT',
|
|
5802
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
5753
5803
|
path: {
|
|
5754
|
-
'
|
|
5804
|
+
'document_id': documentId,
|
|
5805
|
+
'org': org,
|
|
5806
|
+
'user_id': userId
|
|
5755
5807
|
},
|
|
5756
|
-
|
|
5757
|
-
mediaType: '
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
* Create slash commands for a specific bot
|
|
5762
|
-
* eg. /iblai-baseline
|
|
5763
|
-
* @returns BotCommand
|
|
5764
|
-
* @throws ApiError
|
|
5765
|
-
*/
|
|
5766
|
-
static aiBotV1BotsBotCommandsList({
|
|
5767
|
-
org
|
|
5768
|
-
}) {
|
|
5769
|
-
return request(OpenAPI, {
|
|
5770
|
-
method: 'GET',
|
|
5771
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
|
|
5772
|
-
path: {
|
|
5773
|
-
'org': org
|
|
5808
|
+
formData: formData,
|
|
5809
|
+
mediaType: 'multipart/form-data',
|
|
5810
|
+
errors: {
|
|
5811
|
+
400: `Invalid request data`,
|
|
5812
|
+
404: `Document not found`
|
|
5774
5813
|
}
|
|
5775
5814
|
});
|
|
5776
5815
|
}
|
|
5777
5816
|
/**
|
|
5778
|
-
*
|
|
5779
|
-
*
|
|
5780
|
-
*
|
|
5817
|
+
* Delete a specific document embedding.
|
|
5818
|
+
*
|
|
5819
|
+
* This endpoint removes a document embedding from the system,
|
|
5820
|
+
* including untraining it from any associated pathways.
|
|
5821
|
+
*
|
|
5822
|
+
* Args:
|
|
5823
|
+
* request: The HTTP request.
|
|
5824
|
+
* org: Organization key identifier.
|
|
5825
|
+
* document_id: The ID of the document embedding to delete.
|
|
5826
|
+
*
|
|
5827
|
+
* Returns:
|
|
5828
|
+
* Response: An empty response with a 204 status code if successful.
|
|
5829
|
+
*
|
|
5830
|
+
* Raises:
|
|
5831
|
+
* NotFound: If the specified document embedding does not exist.
|
|
5832
|
+
* @returns void
|
|
5781
5833
|
* @throws ApiError
|
|
5782
5834
|
*/
|
|
5783
|
-
static
|
|
5835
|
+
static aiIndexOrgsUsersDocumentsDestroy({
|
|
5836
|
+
documentId,
|
|
5784
5837
|
org,
|
|
5785
|
-
|
|
5838
|
+
userId
|
|
5786
5839
|
}) {
|
|
5787
5840
|
return request(OpenAPI, {
|
|
5788
|
-
method: '
|
|
5789
|
-
url: '/api/ai-
|
|
5841
|
+
method: 'DELETE',
|
|
5842
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
5790
5843
|
path: {
|
|
5791
|
-
'
|
|
5844
|
+
'document_id': documentId,
|
|
5845
|
+
'org': org,
|
|
5846
|
+
'user_id': userId
|
|
5792
5847
|
},
|
|
5793
|
-
|
|
5794
|
-
|
|
5848
|
+
errors: {
|
|
5849
|
+
404: `Document not found`
|
|
5850
|
+
}
|
|
5795
5851
|
});
|
|
5796
5852
|
}
|
|
5797
5853
|
/**
|
|
5798
|
-
*
|
|
5799
|
-
*
|
|
5800
|
-
* @returns BotCommand
|
|
5854
|
+
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
5855
|
+
* @returns DocumentSettingsResponse
|
|
5801
5856
|
* @throws ApiError
|
|
5802
5857
|
*/
|
|
5803
|
-
static
|
|
5804
|
-
|
|
5805
|
-
org
|
|
5858
|
+
static aiIndexOrgsUsersDocumentsSettingsRetrieve({
|
|
5859
|
+
documentId,
|
|
5860
|
+
org,
|
|
5861
|
+
userId
|
|
5806
5862
|
}) {
|
|
5807
5863
|
return request(OpenAPI, {
|
|
5808
5864
|
method: 'GET',
|
|
5809
|
-
url: '/api/ai-
|
|
5865
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
|
|
5810
5866
|
path: {
|
|
5811
|
-
'
|
|
5812
|
-
'org': org
|
|
5867
|
+
'document_id': documentId,
|
|
5868
|
+
'org': org,
|
|
5869
|
+
'user_id': userId
|
|
5813
5870
|
}
|
|
5814
5871
|
});
|
|
5815
5872
|
}
|
|
5816
5873
|
/**
|
|
5817
|
-
*
|
|
5818
|
-
*
|
|
5819
|
-
* @returns BotCommand
|
|
5874
|
+
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
5875
|
+
* @returns DocumentSettingsResponse
|
|
5820
5876
|
* @throws ApiError
|
|
5821
5877
|
*/
|
|
5822
|
-
static
|
|
5823
|
-
|
|
5878
|
+
static aiIndexOrgsUsersDocumentsSettingsCreate({
|
|
5879
|
+
documentId,
|
|
5824
5880
|
org,
|
|
5881
|
+
userId,
|
|
5825
5882
|
requestBody
|
|
5826
5883
|
}) {
|
|
5827
5884
|
return request(OpenAPI, {
|
|
5828
|
-
method: '
|
|
5829
|
-
url: '/api/ai-
|
|
5885
|
+
method: 'POST',
|
|
5886
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
|
|
5830
5887
|
path: {
|
|
5831
|
-
'
|
|
5832
|
-
'org': org
|
|
5888
|
+
'document_id': documentId,
|
|
5889
|
+
'org': org,
|
|
5890
|
+
'user_id': userId
|
|
5833
5891
|
},
|
|
5834
5892
|
body: requestBody,
|
|
5835
5893
|
mediaType: 'application/json'
|
|
5836
5894
|
});
|
|
5837
5895
|
}
|
|
5838
5896
|
/**
|
|
5839
|
-
*
|
|
5840
|
-
*
|
|
5841
|
-
*
|
|
5897
|
+
* Train a graph-based document through a worker process.
|
|
5898
|
+
*
|
|
5899
|
+
* This endpoint queues graph-based documents for training through a
|
|
5900
|
+
* specialized worker process that handles knowledge graph processing.
|
|
5901
|
+
*
|
|
5902
|
+
* Args:
|
|
5903
|
+
* request: The HTTP request containing the document information.
|
|
5904
|
+
* org: Organization key identifier.
|
|
5905
|
+
*
|
|
5906
|
+
* Returns:
|
|
5907
|
+
* Response: A confirmation that the document was queued for training,
|
|
5908
|
+
* including a task ID for tracking the progress.
|
|
5909
|
+
*
|
|
5910
|
+
* Raises:
|
|
5911
|
+
* ValidationError: If the request data is invalid.
|
|
5912
|
+
* BadRequest: If there was an error processing the document.
|
|
5913
|
+
* @returns TrainDocumentViewResponse
|
|
5842
5914
|
* @throws ApiError
|
|
5843
5915
|
*/
|
|
5844
|
-
static
|
|
5845
|
-
id,
|
|
5916
|
+
static aiIndexOrgsUsersDocumentsGraphTrainCreate({
|
|
5846
5917
|
org,
|
|
5847
|
-
|
|
5918
|
+
userId,
|
|
5919
|
+
formData
|
|
5848
5920
|
}) {
|
|
5849
5921
|
return request(OpenAPI, {
|
|
5850
|
-
method: '
|
|
5851
|
-
url: '/api/ai-
|
|
5922
|
+
method: 'POST',
|
|
5923
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/graph-train/',
|
|
5852
5924
|
path: {
|
|
5853
|
-
'
|
|
5854
|
-
'
|
|
5925
|
+
'org': org,
|
|
5926
|
+
'user_id': userId
|
|
5855
5927
|
},
|
|
5856
|
-
|
|
5857
|
-
mediaType: '
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
/**
|
|
5861
|
-
* Create slash commands for a specific bot
|
|
5862
|
-
* eg. /iblai-baseline
|
|
5863
|
-
* @returns void
|
|
5864
|
-
* @throws ApiError
|
|
5865
|
-
*/
|
|
5866
|
-
static aiBotV1BotsBotCommandsDestroy({
|
|
5867
|
-
id,
|
|
5868
|
-
org
|
|
5869
|
-
}) {
|
|
5870
|
-
return request(OpenAPI, {
|
|
5871
|
-
method: 'DELETE',
|
|
5872
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
|
|
5873
|
-
path: {
|
|
5874
|
-
'id': id,
|
|
5875
|
-
'org': org
|
|
5928
|
+
formData: formData,
|
|
5929
|
+
mediaType: 'multipart/form-data',
|
|
5930
|
+
errors: {
|
|
5931
|
+
400: `Invalid request data or document processing error`
|
|
5876
5932
|
}
|
|
5877
5933
|
});
|
|
5878
5934
|
}
|
|
5879
5935
|
/**
|
|
5880
|
-
*
|
|
5881
|
-
*
|
|
5882
|
-
*
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5936
|
+
* Description:
|
|
5937
|
+
* Retrieves a list of document embeddings for a specific pathway with optional search and pagination.
|
|
5938
|
+
*
|
|
5939
|
+
* Methods:
|
|
5940
|
+
* - GET: Retrieves document embeddings that match the specified search criteria and are paginated according to offset and limit.
|
|
5941
|
+
*
|
|
5942
|
+
* Parameters:
|
|
5943
|
+
* - search (str): Search query to filter document names or URLs.
|
|
5944
|
+
* - offset (int): Offset number for pagination.
|
|
5945
|
+
* - limit (int): Limit number for pagination.
|
|
5946
|
+
*
|
|
5947
|
+
* Returns:
|
|
5948
|
+
* - GET: A paginated list of document embeddings with their details.
|
|
5949
|
+
* {
|
|
5950
|
+
* "count": 10,
|
|
5951
|
+
* "next": "http://api.example.com/retriever_documents/?offset=10&limit=2",
|
|
5952
|
+
* "previous": "http://api.example.com/retriever_documents/?offset=0&limit=2",
|
|
5953
|
+
* "results": [
|
|
5954
|
+
* {
|
|
5955
|
+
* "document_name": "Document2",
|
|
5956
|
+
* "platform_key": "example_platform",
|
|
5957
|
+
* "pathway": "example_pathway"
|
|
5958
|
+
* }
|
|
5959
|
+
* ]
|
|
5960
|
+
* }
|
|
5961
|
+
*
|
|
5962
|
+
* Error Responses:
|
|
5963
|
+
* - 400 Bad Request: Invalid query parameters.
|
|
5964
|
+
* - 404 Not Found: No document embeddings found for the specified criteria.
|
|
5965
|
+
* @returns RetrieverDocumentEmbedding
|
|
5966
|
+
* @throws ApiError
|
|
5967
|
+
*/
|
|
5968
|
+
static aiIndexOrgsUsersDocumentsPathwaysList({
|
|
5969
|
+
org,
|
|
5970
|
+
pathway,
|
|
5971
|
+
userId,
|
|
5972
|
+
limit,
|
|
5973
|
+
offset,
|
|
5974
|
+
search
|
|
5887
5975
|
}) {
|
|
5888
5976
|
return request(OpenAPI, {
|
|
5889
5977
|
method: 'GET',
|
|
5890
|
-
url: '/api/ai-
|
|
5978
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/',
|
|
5891
5979
|
path: {
|
|
5892
|
-
'
|
|
5893
|
-
'
|
|
5980
|
+
'org': org,
|
|
5981
|
+
'pathway': pathway,
|
|
5982
|
+
'user_id': userId
|
|
5983
|
+
},
|
|
5984
|
+
query: {
|
|
5985
|
+
'limit': limit,
|
|
5986
|
+
'offset': offset,
|
|
5987
|
+
'search': search
|
|
5894
5988
|
}
|
|
5895
5989
|
});
|
|
5896
5990
|
}
|
|
5897
5991
|
/**
|
|
5898
|
-
*
|
|
5899
|
-
*
|
|
5992
|
+
* Retrieve resource documents similar to the given query.
|
|
5993
|
+
*
|
|
5994
|
+
* This endpoint performs a semantic search to find documents that are
|
|
5995
|
+
* relevant to the provided query within the specified pathway.
|
|
5996
|
+
*
|
|
5997
|
+
* Args:
|
|
5998
|
+
* request: The HTTP request containing the search query.
|
|
5999
|
+
* org: Organization key identifier.
|
|
6000
|
+
*
|
|
6001
|
+
* Returns:
|
|
6002
|
+
* Response: A list of documents relevant to the search query.
|
|
6003
|
+
*
|
|
6004
|
+
* Raises:
|
|
6005
|
+
* ValidationError: If the request data is invalid.
|
|
6006
|
+
* @returns RetrieverResponseSearch
|
|
5900
6007
|
* @throws ApiError
|
|
5901
6008
|
*/
|
|
5902
|
-
static
|
|
5903
|
-
id,
|
|
6009
|
+
static aiIndexOrgsUsersDocumentsSearchCreate({
|
|
5904
6010
|
org,
|
|
6011
|
+
userId,
|
|
5905
6012
|
requestBody
|
|
5906
6013
|
}) {
|
|
5907
6014
|
return request(OpenAPI, {
|
|
5908
|
-
method: '
|
|
5909
|
-
url: '/api/ai-
|
|
6015
|
+
method: 'POST',
|
|
6016
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/search/',
|
|
5910
6017
|
path: {
|
|
5911
|
-
'
|
|
5912
|
-
'
|
|
6018
|
+
'org': org,
|
|
6019
|
+
'user_id': userId
|
|
5913
6020
|
},
|
|
5914
6021
|
body: requestBody,
|
|
5915
|
-
mediaType: 'application/json'
|
|
6022
|
+
mediaType: 'application/json',
|
|
6023
|
+
errors: {
|
|
6024
|
+
400: `Invalid request data`
|
|
6025
|
+
}
|
|
5916
6026
|
});
|
|
5917
6027
|
}
|
|
5918
6028
|
/**
|
|
5919
|
-
*
|
|
5920
|
-
*
|
|
6029
|
+
* Retrieve document sources related to a given query.
|
|
6030
|
+
*
|
|
6031
|
+
* This endpoint performs a semantic search to find document sources
|
|
6032
|
+
* that are relevant to the provided query within the specified pathway,
|
|
6033
|
+
* and returns them along with confidence levels.
|
|
6034
|
+
*
|
|
6035
|
+
* Args:
|
|
6036
|
+
* request: The HTTP request containing the search query.
|
|
6037
|
+
* org: Organization key identifier.
|
|
6038
|
+
*
|
|
6039
|
+
* Returns:
|
|
6040
|
+
* Response: A list of document sources with confidence levels.
|
|
6041
|
+
*
|
|
6042
|
+
* Raises:
|
|
6043
|
+
* ValidationError: If the request data is invalid.
|
|
6044
|
+
* @returns RetrieverRequestSearchDocument
|
|
5921
6045
|
* @throws ApiError
|
|
5922
6046
|
*/
|
|
5923
|
-
static
|
|
5924
|
-
id,
|
|
6047
|
+
static aiIndexOrgsUsersDocumentsSourcesCreate({
|
|
5925
6048
|
org,
|
|
6049
|
+
userId,
|
|
5926
6050
|
requestBody
|
|
5927
6051
|
}) {
|
|
5928
6052
|
return request(OpenAPI, {
|
|
5929
|
-
method: '
|
|
5930
|
-
url: '/api/ai-
|
|
6053
|
+
method: 'POST',
|
|
6054
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/sources/',
|
|
5931
6055
|
path: {
|
|
5932
|
-
'
|
|
5933
|
-
'
|
|
6056
|
+
'org': org,
|
|
6057
|
+
'user_id': userId
|
|
5934
6058
|
},
|
|
5935
6059
|
body: requestBody,
|
|
5936
|
-
mediaType: 'application/json'
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
/**
|
|
5940
|
-
* Create modify and update bot information for a specific tenant.
|
|
5941
|
-
* @returns void
|
|
5942
|
-
* @throws ApiError
|
|
5943
|
-
*/
|
|
5944
|
-
static aiBotV1BotsBotDestroy({
|
|
5945
|
-
id,
|
|
5946
|
-
org
|
|
5947
|
-
}) {
|
|
5948
|
-
return request(OpenAPI, {
|
|
5949
|
-
method: 'DELETE',
|
|
5950
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
|
|
5951
|
-
path: {
|
|
5952
|
-
'id': id,
|
|
5953
|
-
'org': org
|
|
6060
|
+
mediaType: 'application/json',
|
|
6061
|
+
errors: {
|
|
6062
|
+
400: `Invalid request data`
|
|
5954
6063
|
}
|
|
5955
6064
|
});
|
|
5956
6065
|
}
|
|
5957
6066
|
/**
|
|
5958
|
-
*
|
|
5959
|
-
*
|
|
6067
|
+
* Check the status of a document training task.
|
|
6068
|
+
*
|
|
6069
|
+
* This endpoint retrieves the current status of an asynchronous
|
|
6070
|
+
* document training task that was previously initiated.
|
|
6071
|
+
*
|
|
6072
|
+
* Args:
|
|
6073
|
+
* request: The HTTP request.
|
|
6074
|
+
* org: Organization key identifier.
|
|
6075
|
+
* task_id: The ID of the training task to check.
|
|
6076
|
+
*
|
|
6077
|
+
* Returns:
|
|
6078
|
+
* Response: The current status of the document training task,
|
|
6079
|
+
* which can be "pending", "completed", or "failed".
|
|
6080
|
+
* @returns CheckDocumentTrainingStatus
|
|
5960
6081
|
* @throws ApiError
|
|
5961
6082
|
*/
|
|
5962
|
-
static
|
|
5963
|
-
|
|
5964
|
-
|
|
6083
|
+
static aiIndexOrgsUsersDocumentsTasksRetrieve({
|
|
6084
|
+
org,
|
|
6085
|
+
taskId,
|
|
6086
|
+
userId
|
|
5965
6087
|
}) {
|
|
5966
6088
|
return request(OpenAPI, {
|
|
5967
6089
|
method: 'GET',
|
|
5968
|
-
url: '/api/ai-
|
|
6090
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/tasks/{task_id}/',
|
|
5969
6091
|
path: {
|
|
5970
|
-
'
|
|
5971
|
-
'
|
|
6092
|
+
'org': org,
|
|
6093
|
+
'task_id': taskId,
|
|
6094
|
+
'user_id': userId
|
|
5972
6095
|
}
|
|
5973
6096
|
});
|
|
5974
6097
|
}
|
|
5975
6098
|
/**
|
|
5976
|
-
*
|
|
5977
|
-
*
|
|
6099
|
+
* Train a document through a worker process.
|
|
6100
|
+
*
|
|
6101
|
+
* This endpoint queues larger documents for training through a worker
|
|
6102
|
+
* process, which is more suitable for handling documents that would
|
|
6103
|
+
* take too long to process directly.
|
|
6104
|
+
*
|
|
6105
|
+
* Args:
|
|
6106
|
+
* request: The HTTP request containing the document information.
|
|
6107
|
+
* org: Organization key identifier.
|
|
6108
|
+
*
|
|
6109
|
+
* Returns:
|
|
6110
|
+
* Response: A confirmation that the document was queued for training,
|
|
6111
|
+
* including a task ID for tracking the progress.
|
|
6112
|
+
*
|
|
6113
|
+
* Raises:
|
|
6114
|
+
* ValidationError: If the request data is invalid.
|
|
6115
|
+
* BadRequest: If there was an error processing the document.
|
|
6116
|
+
* @returns TrainDocumentViewResponse
|
|
5978
6117
|
* @throws ApiError
|
|
5979
6118
|
*/
|
|
5980
|
-
static
|
|
5981
|
-
id,
|
|
6119
|
+
static aiIndexOrgsUsersDocumentsTrainCreate({
|
|
5982
6120
|
org,
|
|
5983
|
-
|
|
6121
|
+
userId,
|
|
6122
|
+
formData
|
|
5984
6123
|
}) {
|
|
5985
6124
|
return request(OpenAPI, {
|
|
5986
|
-
method: '
|
|
5987
|
-
url: '/api/ai-
|
|
6125
|
+
method: 'POST',
|
|
6126
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/',
|
|
5988
6127
|
path: {
|
|
5989
|
-
'
|
|
5990
|
-
'
|
|
6128
|
+
'org': org,
|
|
6129
|
+
'user_id': userId
|
|
5991
6130
|
},
|
|
5992
|
-
|
|
5993
|
-
mediaType: '
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
/**
|
|
5997
|
-
* Create modify and update bot information for a specific tenant.
|
|
5998
|
-
* @returns SlackConfig
|
|
5999
|
-
* @throws ApiError
|
|
6000
|
-
*/
|
|
6001
|
-
static aiBotV1BotsBotConfigSlackRetrieve({
|
|
6002
|
-
id,
|
|
6003
|
-
org
|
|
6004
|
-
}) {
|
|
6005
|
-
return request(OpenAPI, {
|
|
6006
|
-
method: 'GET',
|
|
6007
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
|
|
6008
|
-
path: {
|
|
6009
|
-
'id': id,
|
|
6010
|
-
'org': org
|
|
6131
|
+
formData: formData,
|
|
6132
|
+
mediaType: 'multipart/form-data',
|
|
6133
|
+
errors: {
|
|
6134
|
+
400: `Invalid request data`
|
|
6011
6135
|
}
|
|
6012
6136
|
});
|
|
6013
6137
|
}
|
|
6014
6138
|
/**
|
|
6015
|
-
*
|
|
6016
|
-
*
|
|
6139
|
+
* Train a document directly without using a worker.
|
|
6140
|
+
*
|
|
6141
|
+
* This endpoint is designed for training smaller documents directly
|
|
6142
|
+
* without queuing them through a worker process. For larger documents,
|
|
6143
|
+
* use the TrainDocumentView endpoint instead.
|
|
6144
|
+
*
|
|
6145
|
+
* Args:
|
|
6146
|
+
* request: The HTTP request containing the document information.
|
|
6147
|
+
* org: Organization key identifier.
|
|
6148
|
+
*
|
|
6149
|
+
* Returns:
|
|
6150
|
+
* Response: A confirmation that the document was trained successfully.
|
|
6151
|
+
*
|
|
6152
|
+
* Raises:
|
|
6153
|
+
* ValidationError: If the request data is invalid.
|
|
6154
|
+
* BadRequest: If the document training failed.
|
|
6155
|
+
* @returns RetreiverTrainViewResponse
|
|
6017
6156
|
* @throws ApiError
|
|
6018
6157
|
*/
|
|
6019
|
-
static
|
|
6020
|
-
id,
|
|
6158
|
+
static aiIndexOrgsUsersDocumentsTrainRetrieverCreate({
|
|
6021
6159
|
org,
|
|
6022
|
-
|
|
6160
|
+
userId,
|
|
6161
|
+
formData
|
|
6023
6162
|
}) {
|
|
6024
6163
|
return request(OpenAPI, {
|
|
6025
6164
|
method: 'POST',
|
|
6026
|
-
url: '/api/ai-
|
|
6165
|
+
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/retriever/',
|
|
6027
6166
|
path: {
|
|
6028
|
-
'
|
|
6029
|
-
'
|
|
6167
|
+
'org': org,
|
|
6168
|
+
'user_id': userId
|
|
6030
6169
|
},
|
|
6031
|
-
|
|
6032
|
-
mediaType: '
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
* Create modify and update bot information for a specific tenant.
|
|
6037
|
-
* @returns SlackConfig
|
|
6038
|
-
* @throws ApiError
|
|
6039
|
-
*/
|
|
6040
|
-
static aiBotV1BotsBotConfigSlackUpdateUpdate({
|
|
6041
|
-
id,
|
|
6042
|
-
org,
|
|
6043
|
-
requestBody
|
|
6044
|
-
}) {
|
|
6045
|
-
return request(OpenAPI, {
|
|
6046
|
-
method: 'PUT',
|
|
6047
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
|
|
6048
|
-
path: {
|
|
6049
|
-
'id': id,
|
|
6050
|
-
'org': org
|
|
6051
|
-
},
|
|
6052
|
-
body: requestBody,
|
|
6053
|
-
mediaType: 'application/json'
|
|
6054
|
-
});
|
|
6055
|
-
}
|
|
6056
|
-
/**
|
|
6057
|
-
* Create modify and update bot information for a specific tenant.
|
|
6058
|
-
* @returns SlackConfig
|
|
6059
|
-
* @throws ApiError
|
|
6060
|
-
*/
|
|
6061
|
-
static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
|
|
6062
|
-
id,
|
|
6063
|
-
org,
|
|
6064
|
-
requestBody
|
|
6065
|
-
}) {
|
|
6066
|
-
return request(OpenAPI, {
|
|
6067
|
-
method: 'PATCH',
|
|
6068
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
|
|
6069
|
-
path: {
|
|
6070
|
-
'id': id,
|
|
6071
|
-
'org': org
|
|
6072
|
-
},
|
|
6073
|
-
body: requestBody,
|
|
6074
|
-
mediaType: 'application/json'
|
|
6075
|
-
});
|
|
6076
|
-
}
|
|
6077
|
-
/**
|
|
6078
|
-
* Create modify and update bot information for a specific tenant.
|
|
6079
|
-
* @returns TeamsConfig
|
|
6080
|
-
* @throws ApiError
|
|
6081
|
-
*/
|
|
6082
|
-
static aiBotV1BotsBotConfigTeamsRetrieve({
|
|
6083
|
-
id,
|
|
6084
|
-
org
|
|
6085
|
-
}) {
|
|
6086
|
-
return request(OpenAPI, {
|
|
6087
|
-
method: 'GET',
|
|
6088
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
|
|
6089
|
-
path: {
|
|
6090
|
-
'id': id,
|
|
6091
|
-
'org': org
|
|
6092
|
-
}
|
|
6093
|
-
});
|
|
6094
|
-
}
|
|
6095
|
-
/**
|
|
6096
|
-
* Create modify and update bot information for a specific tenant.
|
|
6097
|
-
* @returns TeamsConfig
|
|
6098
|
-
* @throws ApiError
|
|
6099
|
-
*/
|
|
6100
|
-
static aiBotV1BotsBotConfigTeamsUpdateCreate({
|
|
6101
|
-
id,
|
|
6102
|
-
org,
|
|
6103
|
-
requestBody
|
|
6104
|
-
}) {
|
|
6105
|
-
return request(OpenAPI, {
|
|
6106
|
-
method: 'POST',
|
|
6107
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
|
|
6108
|
-
path: {
|
|
6109
|
-
'id': id,
|
|
6110
|
-
'org': org
|
|
6111
|
-
},
|
|
6112
|
-
body: requestBody,
|
|
6113
|
-
mediaType: 'application/json'
|
|
6114
|
-
});
|
|
6115
|
-
}
|
|
6116
|
-
/**
|
|
6117
|
-
* Create modify and update bot information for a specific tenant.
|
|
6118
|
-
* @returns TeamsConfig
|
|
6119
|
-
* @throws ApiError
|
|
6120
|
-
*/
|
|
6121
|
-
static aiBotV1BotsBotConfigTeamsUpdateUpdate({
|
|
6122
|
-
id,
|
|
6123
|
-
org,
|
|
6124
|
-
requestBody
|
|
6125
|
-
}) {
|
|
6126
|
-
return request(OpenAPI, {
|
|
6127
|
-
method: 'PUT',
|
|
6128
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
|
|
6129
|
-
path: {
|
|
6130
|
-
'id': id,
|
|
6131
|
-
'org': org
|
|
6132
|
-
},
|
|
6133
|
-
body: requestBody,
|
|
6134
|
-
mediaType: 'application/json'
|
|
6135
|
-
});
|
|
6136
|
-
}
|
|
6137
|
-
/**
|
|
6138
|
-
* Create modify and update bot information for a specific tenant.
|
|
6139
|
-
* @returns TeamsConfig
|
|
6140
|
-
* @throws ApiError
|
|
6141
|
-
*/
|
|
6142
|
-
static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
|
|
6143
|
-
id,
|
|
6144
|
-
org,
|
|
6145
|
-
requestBody
|
|
6146
|
-
}) {
|
|
6147
|
-
return request(OpenAPI, {
|
|
6148
|
-
method: 'PATCH',
|
|
6149
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
|
|
6150
|
-
path: {
|
|
6151
|
-
'id': id,
|
|
6152
|
-
'org': org
|
|
6153
|
-
},
|
|
6154
|
-
body: requestBody,
|
|
6155
|
-
mediaType: 'application/json'
|
|
6156
|
-
});
|
|
6157
|
-
}
|
|
6158
|
-
/**
|
|
6159
|
-
* Create modify and update bot information for a specific tenant.
|
|
6160
|
-
* @returns WebexConfig
|
|
6161
|
-
* @throws ApiError
|
|
6162
|
-
*/
|
|
6163
|
-
static aiBotV1BotsBotConfigWebexRetrieve({
|
|
6164
|
-
id,
|
|
6165
|
-
org
|
|
6166
|
-
}) {
|
|
6167
|
-
return request(OpenAPI, {
|
|
6168
|
-
method: 'GET',
|
|
6169
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
|
|
6170
|
-
path: {
|
|
6171
|
-
'id': id,
|
|
6172
|
-
'org': org
|
|
6173
|
-
}
|
|
6174
|
-
});
|
|
6175
|
-
}
|
|
6176
|
-
/**
|
|
6177
|
-
* Create modify and update bot information for a specific tenant.
|
|
6178
|
-
* @returns WebexConfig
|
|
6179
|
-
* @throws ApiError
|
|
6180
|
-
*/
|
|
6181
|
-
static aiBotV1BotsBotConfigWebexPartialUpdate({
|
|
6182
|
-
id,
|
|
6183
|
-
org,
|
|
6184
|
-
requestBody
|
|
6185
|
-
}) {
|
|
6186
|
-
return request(OpenAPI, {
|
|
6187
|
-
method: 'PATCH',
|
|
6188
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
|
|
6189
|
-
path: {
|
|
6190
|
-
'id': id,
|
|
6191
|
-
'org': org
|
|
6192
|
-
},
|
|
6193
|
-
body: requestBody,
|
|
6194
|
-
mediaType: 'application/json'
|
|
6195
|
-
});
|
|
6196
|
-
}
|
|
6197
|
-
/**
|
|
6198
|
-
* Create modify and update bot information for a specific tenant.
|
|
6199
|
-
* @returns WhatsappConfig
|
|
6200
|
-
* @throws ApiError
|
|
6201
|
-
*/
|
|
6202
|
-
static aiBotV1BotsBotConfigWhatsappRetrieve({
|
|
6203
|
-
id,
|
|
6204
|
-
org
|
|
6205
|
-
}) {
|
|
6206
|
-
return request(OpenAPI, {
|
|
6207
|
-
method: 'GET',
|
|
6208
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
|
|
6209
|
-
path: {
|
|
6210
|
-
'id': id,
|
|
6211
|
-
'org': org
|
|
6212
|
-
}
|
|
6213
|
-
});
|
|
6214
|
-
}
|
|
6215
|
-
/**
|
|
6216
|
-
* Create modify and update bot information for a specific tenant.
|
|
6217
|
-
* @returns WhatsappConfig
|
|
6218
|
-
* @throws ApiError
|
|
6219
|
-
*/
|
|
6220
|
-
static aiBotV1BotsBotWhatsappConfigUpdate({
|
|
6221
|
-
id,
|
|
6222
|
-
org,
|
|
6223
|
-
requestBody
|
|
6224
|
-
}) {
|
|
6225
|
-
return request(OpenAPI, {
|
|
6226
|
-
method: 'PUT',
|
|
6227
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
|
|
6228
|
-
path: {
|
|
6229
|
-
'id': id,
|
|
6230
|
-
'org': org
|
|
6231
|
-
},
|
|
6232
|
-
body: requestBody,
|
|
6233
|
-
mediaType: 'application/json'
|
|
6234
|
-
});
|
|
6235
|
-
}
|
|
6236
|
-
/**
|
|
6237
|
-
* Create modify and update bot information for a specific tenant.
|
|
6238
|
-
* @returns WhatsappConfig
|
|
6239
|
-
* @throws ApiError
|
|
6240
|
-
*/
|
|
6241
|
-
static aiBotV1BotsBotWhatsappConfigPartialUpdate({
|
|
6242
|
-
id,
|
|
6243
|
-
org,
|
|
6244
|
-
requestBody
|
|
6245
|
-
}) {
|
|
6246
|
-
return request(OpenAPI, {
|
|
6247
|
-
method: 'PATCH',
|
|
6248
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
|
|
6249
|
-
path: {
|
|
6250
|
-
'id': id,
|
|
6251
|
-
'org': org
|
|
6252
|
-
},
|
|
6253
|
-
body: requestBody,
|
|
6254
|
-
mediaType: 'application/json'
|
|
6255
|
-
});
|
|
6256
|
-
}
|
|
6257
|
-
/**
|
|
6258
|
-
* Setup discord user id linkage with discord bots
|
|
6259
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6260
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6261
|
-
* @returns DiscordUserConfig
|
|
6262
|
-
* @throws ApiError
|
|
6263
|
-
*/
|
|
6264
|
-
static aiBotV1BotsDiscordUserConfigList({
|
|
6265
|
-
org
|
|
6266
|
-
}) {
|
|
6267
|
-
return request(OpenAPI, {
|
|
6268
|
-
method: 'GET',
|
|
6269
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
|
|
6270
|
-
path: {
|
|
6271
|
-
'org': org
|
|
6272
|
-
}
|
|
6273
|
-
});
|
|
6274
|
-
}
|
|
6275
|
-
/**
|
|
6276
|
-
* Setup discord user id linkage with discord bots
|
|
6277
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6278
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6279
|
-
* @returns DiscordUserConfig
|
|
6280
|
-
* @throws ApiError
|
|
6281
|
-
*/
|
|
6282
|
-
static aiBotV1BotsDiscordUserConfigCreate({
|
|
6283
|
-
org,
|
|
6284
|
-
requestBody
|
|
6285
|
-
}) {
|
|
6286
|
-
return request(OpenAPI, {
|
|
6287
|
-
method: 'POST',
|
|
6288
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
|
|
6289
|
-
path: {
|
|
6290
|
-
'org': org
|
|
6291
|
-
},
|
|
6292
|
-
body: requestBody,
|
|
6293
|
-
mediaType: 'application/json'
|
|
6294
|
-
});
|
|
6295
|
-
}
|
|
6296
|
-
/**
|
|
6297
|
-
* Setup discord user id linkage with discord bots
|
|
6298
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6299
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6300
|
-
* @returns DiscordUserConfig
|
|
6301
|
-
* @throws ApiError
|
|
6302
|
-
*/
|
|
6303
|
-
static aiBotV1BotsDiscordUserConfigRetrieve({
|
|
6304
|
-
id,
|
|
6305
|
-
org
|
|
6306
|
-
}) {
|
|
6307
|
-
return request(OpenAPI, {
|
|
6308
|
-
method: 'GET',
|
|
6309
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
6310
|
-
path: {
|
|
6311
|
-
'id': id,
|
|
6312
|
-
'org': org
|
|
6313
|
-
}
|
|
6314
|
-
});
|
|
6315
|
-
}
|
|
6316
|
-
/**
|
|
6317
|
-
* Setup discord user id linkage with discord bots
|
|
6318
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6319
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6320
|
-
* @returns DiscordUserConfig
|
|
6321
|
-
* @throws ApiError
|
|
6322
|
-
*/
|
|
6323
|
-
static aiBotV1BotsDiscordUserConfigUpdate({
|
|
6324
|
-
id,
|
|
6325
|
-
org,
|
|
6326
|
-
requestBody
|
|
6327
|
-
}) {
|
|
6328
|
-
return request(OpenAPI, {
|
|
6329
|
-
method: 'PUT',
|
|
6330
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
6331
|
-
path: {
|
|
6332
|
-
'id': id,
|
|
6333
|
-
'org': org
|
|
6334
|
-
},
|
|
6335
|
-
body: requestBody,
|
|
6336
|
-
mediaType: 'application/json'
|
|
6337
|
-
});
|
|
6338
|
-
}
|
|
6339
|
-
/**
|
|
6340
|
-
* Setup discord user id linkage with discord bots
|
|
6341
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6342
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6343
|
-
* @returns DiscordUserConfig
|
|
6344
|
-
* @throws ApiError
|
|
6345
|
-
*/
|
|
6346
|
-
static aiBotV1BotsDiscordUserConfigPartialUpdate({
|
|
6347
|
-
id,
|
|
6348
|
-
org,
|
|
6349
|
-
requestBody
|
|
6350
|
-
}) {
|
|
6351
|
-
return request(OpenAPI, {
|
|
6352
|
-
method: 'PATCH',
|
|
6353
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
6354
|
-
path: {
|
|
6355
|
-
'id': id,
|
|
6356
|
-
'org': org
|
|
6357
|
-
},
|
|
6358
|
-
body: requestBody,
|
|
6359
|
-
mediaType: 'application/json'
|
|
6360
|
-
});
|
|
6361
|
-
}
|
|
6362
|
-
/**
|
|
6363
|
-
* Setup discord user id linkage with discord bots
|
|
6364
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6365
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6366
|
-
* @returns void
|
|
6367
|
-
* @throws ApiError
|
|
6368
|
-
*/
|
|
6369
|
-
static aiBotV1BotsDiscordUserConfigDestroy({
|
|
6370
|
-
id,
|
|
6371
|
-
org
|
|
6372
|
-
}) {
|
|
6373
|
-
return request(OpenAPI, {
|
|
6374
|
-
method: 'DELETE',
|
|
6375
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
6376
|
-
path: {
|
|
6377
|
-
'id': id,
|
|
6378
|
-
'org': org
|
|
6379
|
-
}
|
|
6380
|
-
});
|
|
6381
|
-
}
|
|
6382
|
-
/**
|
|
6383
|
-
* Setup slack username and domain linkage with slack bots
|
|
6384
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6385
|
-
* @returns SlackUserConfig
|
|
6386
|
-
* @throws ApiError
|
|
6387
|
-
*/
|
|
6388
|
-
static aiBotV1BotsSlackUserConfigList({
|
|
6389
|
-
org
|
|
6390
|
-
}) {
|
|
6391
|
-
return request(OpenAPI, {
|
|
6392
|
-
method: 'GET',
|
|
6393
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
|
|
6394
|
-
path: {
|
|
6395
|
-
'org': org
|
|
6396
|
-
}
|
|
6397
|
-
});
|
|
6398
|
-
}
|
|
6399
|
-
/**
|
|
6400
|
-
* Setup slack username and domain linkage with slack bots
|
|
6401
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6402
|
-
* @returns SlackUserConfig
|
|
6403
|
-
* @throws ApiError
|
|
6404
|
-
*/
|
|
6405
|
-
static aiBotV1BotsSlackUserConfigCreate({
|
|
6406
|
-
org,
|
|
6407
|
-
requestBody
|
|
6408
|
-
}) {
|
|
6409
|
-
return request(OpenAPI, {
|
|
6410
|
-
method: 'POST',
|
|
6411
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
|
|
6412
|
-
path: {
|
|
6413
|
-
'org': org
|
|
6414
|
-
},
|
|
6415
|
-
body: requestBody,
|
|
6416
|
-
mediaType: 'application/json'
|
|
6417
|
-
});
|
|
6418
|
-
}
|
|
6419
|
-
/**
|
|
6420
|
-
* Setup slack username and domain linkage with slack bots
|
|
6421
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6422
|
-
* @returns SlackUserConfig
|
|
6423
|
-
* @throws ApiError
|
|
6424
|
-
*/
|
|
6425
|
-
static aiBotV1BotsSlackUserConfigRetrieve({
|
|
6426
|
-
id,
|
|
6427
|
-
org
|
|
6428
|
-
}) {
|
|
6429
|
-
return request(OpenAPI, {
|
|
6430
|
-
method: 'GET',
|
|
6431
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
6432
|
-
path: {
|
|
6433
|
-
'id': id,
|
|
6434
|
-
'org': org
|
|
6435
|
-
}
|
|
6436
|
-
});
|
|
6437
|
-
}
|
|
6438
|
-
/**
|
|
6439
|
-
* Setup slack username and domain linkage with slack bots
|
|
6440
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6441
|
-
* @returns SlackUserConfig
|
|
6442
|
-
* @throws ApiError
|
|
6443
|
-
*/
|
|
6444
|
-
static aiBotV1BotsSlackUserConfigUpdate({
|
|
6445
|
-
id,
|
|
6446
|
-
org,
|
|
6447
|
-
requestBody
|
|
6448
|
-
}) {
|
|
6449
|
-
return request(OpenAPI, {
|
|
6450
|
-
method: 'PUT',
|
|
6451
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
6452
|
-
path: {
|
|
6453
|
-
'id': id,
|
|
6454
|
-
'org': org
|
|
6455
|
-
},
|
|
6456
|
-
body: requestBody,
|
|
6457
|
-
mediaType: 'application/json'
|
|
6458
|
-
});
|
|
6459
|
-
}
|
|
6460
|
-
/**
|
|
6461
|
-
* Setup slack username and domain linkage with slack bots
|
|
6462
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6463
|
-
* @returns SlackUserConfig
|
|
6464
|
-
* @throws ApiError
|
|
6465
|
-
*/
|
|
6466
|
-
static aiBotV1BotsSlackUserConfigPartialUpdate({
|
|
6467
|
-
id,
|
|
6468
|
-
org,
|
|
6469
|
-
requestBody
|
|
6470
|
-
}) {
|
|
6471
|
-
return request(OpenAPI, {
|
|
6472
|
-
method: 'PATCH',
|
|
6473
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
6474
|
-
path: {
|
|
6475
|
-
'id': id,
|
|
6476
|
-
'org': org
|
|
6477
|
-
},
|
|
6478
|
-
body: requestBody,
|
|
6479
|
-
mediaType: 'application/json'
|
|
6480
|
-
});
|
|
6481
|
-
}
|
|
6482
|
-
/**
|
|
6483
|
-
* Setup slack username and domain linkage with slack bots
|
|
6484
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6485
|
-
* @returns void
|
|
6486
|
-
* @throws ApiError
|
|
6487
|
-
*/
|
|
6488
|
-
static aiBotV1BotsSlackUserConfigDestroy({
|
|
6489
|
-
id,
|
|
6490
|
-
org
|
|
6491
|
-
}) {
|
|
6492
|
-
return request(OpenAPI, {
|
|
6493
|
-
method: 'DELETE',
|
|
6494
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
6495
|
-
path: {
|
|
6496
|
-
'id': id,
|
|
6497
|
-
'org': org
|
|
6498
|
-
}
|
|
6499
|
-
});
|
|
6500
|
-
}
|
|
6501
|
-
/**
|
|
6502
|
-
* Setup phone number linkage with whatsapp bots
|
|
6503
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6504
|
-
* @returns WhatsappUserConfig
|
|
6505
|
-
* @throws ApiError
|
|
6506
|
-
*/
|
|
6507
|
-
static aiBotV1BotsWhatsappUserConfigList({
|
|
6508
|
-
org
|
|
6509
|
-
}) {
|
|
6510
|
-
return request(OpenAPI, {
|
|
6511
|
-
method: 'GET',
|
|
6512
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
|
|
6513
|
-
path: {
|
|
6514
|
-
'org': org
|
|
6515
|
-
}
|
|
6516
|
-
});
|
|
6517
|
-
}
|
|
6518
|
-
/**
|
|
6519
|
-
* Setup phone number linkage with whatsapp bots
|
|
6520
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6521
|
-
* @returns WhatsappUserConfig
|
|
6522
|
-
* @throws ApiError
|
|
6523
|
-
*/
|
|
6524
|
-
static aiBotV1BotsWhatsappUserConfigCreate({
|
|
6525
|
-
org,
|
|
6526
|
-
requestBody
|
|
6527
|
-
}) {
|
|
6528
|
-
return request(OpenAPI, {
|
|
6529
|
-
method: 'POST',
|
|
6530
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
|
|
6531
|
-
path: {
|
|
6532
|
-
'org': org
|
|
6533
|
-
},
|
|
6534
|
-
body: requestBody,
|
|
6535
|
-
mediaType: 'application/json'
|
|
6536
|
-
});
|
|
6537
|
-
}
|
|
6538
|
-
/**
|
|
6539
|
-
* Setup phone number linkage with whatsapp bots
|
|
6540
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6541
|
-
* @returns WhatsappUserConfig
|
|
6542
|
-
* @throws ApiError
|
|
6543
|
-
*/
|
|
6544
|
-
static aiBotV1BotsWhatsappUserConfigRetrieve({
|
|
6545
|
-
id,
|
|
6546
|
-
org
|
|
6547
|
-
}) {
|
|
6548
|
-
return request(OpenAPI, {
|
|
6549
|
-
method: 'GET',
|
|
6550
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
6551
|
-
path: {
|
|
6552
|
-
'id': id,
|
|
6553
|
-
'org': org
|
|
6554
|
-
}
|
|
6555
|
-
});
|
|
6556
|
-
}
|
|
6557
|
-
/**
|
|
6558
|
-
* Setup phone number linkage with whatsapp bots
|
|
6559
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6560
|
-
* @returns WhatsappUserConfig
|
|
6561
|
-
* @throws ApiError
|
|
6562
|
-
*/
|
|
6563
|
-
static aiBotV1BotsWhatsappUserConfigUpdate({
|
|
6564
|
-
id,
|
|
6565
|
-
org,
|
|
6566
|
-
requestBody
|
|
6567
|
-
}) {
|
|
6568
|
-
return request(OpenAPI, {
|
|
6569
|
-
method: 'PUT',
|
|
6570
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
6571
|
-
path: {
|
|
6572
|
-
'id': id,
|
|
6573
|
-
'org': org
|
|
6574
|
-
},
|
|
6575
|
-
body: requestBody,
|
|
6576
|
-
mediaType: 'application/json'
|
|
6577
|
-
});
|
|
6578
|
-
}
|
|
6579
|
-
/**
|
|
6580
|
-
* Setup phone number linkage with whatsapp bots
|
|
6581
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6582
|
-
* @returns WhatsappUserConfig
|
|
6583
|
-
* @throws ApiError
|
|
6584
|
-
*/
|
|
6585
|
-
static aiBotV1BotsWhatsappUserConfigPartialUpdate({
|
|
6586
|
-
id,
|
|
6587
|
-
org,
|
|
6588
|
-
requestBody
|
|
6589
|
-
}) {
|
|
6590
|
-
return request(OpenAPI, {
|
|
6591
|
-
method: 'PATCH',
|
|
6592
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
6593
|
-
path: {
|
|
6594
|
-
'id': id,
|
|
6595
|
-
'org': org
|
|
6596
|
-
},
|
|
6597
|
-
body: requestBody,
|
|
6598
|
-
mediaType: 'application/json'
|
|
6599
|
-
});
|
|
6600
|
-
}
|
|
6601
|
-
/**
|
|
6602
|
-
* Setup phone number linkage with whatsapp bots
|
|
6603
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6604
|
-
* @returns void
|
|
6605
|
-
* @throws ApiError
|
|
6606
|
-
*/
|
|
6607
|
-
static aiBotV1BotsWhatsappUserConfigDestroy({
|
|
6608
|
-
id,
|
|
6609
|
-
org
|
|
6610
|
-
}) {
|
|
6611
|
-
return request(OpenAPI, {
|
|
6612
|
-
method: 'DELETE',
|
|
6613
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
6614
|
-
path: {
|
|
6615
|
-
'id': id,
|
|
6616
|
-
'org': org
|
|
6617
|
-
}
|
|
6618
|
-
});
|
|
6619
|
-
}
|
|
6620
|
-
/**
|
|
6621
|
-
* Webhook endpoint to receive and process discord messages.
|
|
6622
|
-
* @returns DiscordWebhook
|
|
6623
|
-
* @throws ApiError
|
|
6624
|
-
*/
|
|
6625
|
-
static aiBotV1BotsWebhooksDiscordCreate({
|
|
6626
|
-
name,
|
|
6627
|
-
org,
|
|
6628
|
-
requestBody
|
|
6629
|
-
}) {
|
|
6630
|
-
return request(OpenAPI, {
|
|
6631
|
-
method: 'POST',
|
|
6632
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
|
|
6633
|
-
path: {
|
|
6634
|
-
'name': name,
|
|
6635
|
-
'org': org
|
|
6636
|
-
},
|
|
6637
|
-
body: requestBody,
|
|
6638
|
-
mediaType: 'application/json'
|
|
6639
|
-
});
|
|
6640
|
-
}
|
|
6641
|
-
/**
|
|
6642
|
-
* @returns SlackWebhook
|
|
6643
|
-
* @throws ApiError
|
|
6644
|
-
*/
|
|
6645
|
-
static aiBotV1BotsWebhooksSlackCreate({
|
|
6646
|
-
name,
|
|
6647
|
-
org,
|
|
6648
|
-
requestBody
|
|
6649
|
-
}) {
|
|
6650
|
-
return request(OpenAPI, {
|
|
6651
|
-
method: 'POST',
|
|
6652
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
|
|
6653
|
-
path: {
|
|
6654
|
-
'name': name,
|
|
6655
|
-
'org': org
|
|
6656
|
-
},
|
|
6657
|
-
body: requestBody,
|
|
6658
|
-
mediaType: 'application/json'
|
|
6659
|
-
});
|
|
6660
|
-
}
|
|
6661
|
-
/**
|
|
6662
|
-
* @returns TeamsWebhook
|
|
6663
|
-
* @throws ApiError
|
|
6664
|
-
*/
|
|
6665
|
-
static aiBotV1BotsWebhooksTeamsCreate({
|
|
6666
|
-
name,
|
|
6667
|
-
org,
|
|
6668
|
-
requestBody
|
|
6669
|
-
}) {
|
|
6670
|
-
return request(OpenAPI, {
|
|
6671
|
-
method: 'POST',
|
|
6672
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
|
|
6673
|
-
path: {
|
|
6674
|
-
'name': name,
|
|
6675
|
-
'org': org
|
|
6676
|
-
},
|
|
6677
|
-
body: requestBody,
|
|
6678
|
-
mediaType: 'application/json'
|
|
6679
|
-
});
|
|
6680
|
-
}
|
|
6681
|
-
/**
|
|
6682
|
-
* Webhook endpoint to receive and process discord messages.
|
|
6683
|
-
* @returns WebexWebhook
|
|
6684
|
-
* @throws ApiError
|
|
6685
|
-
*/
|
|
6686
|
-
static aiBotV1BotsWebhooksWebexCreate({
|
|
6687
|
-
name,
|
|
6688
|
-
org,
|
|
6689
|
-
requestBody
|
|
6690
|
-
}) {
|
|
6691
|
-
return request(OpenAPI, {
|
|
6692
|
-
method: 'POST',
|
|
6693
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
|
|
6694
|
-
path: {
|
|
6695
|
-
'name': name,
|
|
6696
|
-
'org': org
|
|
6697
|
-
},
|
|
6698
|
-
body: requestBody,
|
|
6699
|
-
mediaType: 'application/json'
|
|
6700
|
-
});
|
|
6701
|
-
}
|
|
6702
|
-
/**
|
|
6703
|
-
* Respond to whatsapp's webhook challenge.
|
|
6704
|
-
* Parameters Required include the tenant key (org) and the name of the bot: (name)
|
|
6705
|
-
* @returns WhatAppWebHook
|
|
6706
|
-
* @throws ApiError
|
|
6707
|
-
*/
|
|
6708
|
-
static aiBotV1BotsWebhooksWhatsappRetrieve({
|
|
6709
|
-
name,
|
|
6710
|
-
org
|
|
6711
|
-
}) {
|
|
6712
|
-
return request(OpenAPI, {
|
|
6713
|
-
method: 'GET',
|
|
6714
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
|
|
6715
|
-
path: {
|
|
6716
|
-
'name': name,
|
|
6717
|
-
'org': org
|
|
6718
|
-
}
|
|
6719
|
-
});
|
|
6720
|
-
}
|
|
6721
|
-
/**
|
|
6722
|
-
* Accept and process webhook events from whatsapp.
|
|
6723
|
-
* @returns WhatAppWebHook
|
|
6724
|
-
* @throws ApiError
|
|
6725
|
-
*/
|
|
6726
|
-
static aiBotV1BotsWebhooksWhatsappCreate({
|
|
6727
|
-
name,
|
|
6728
|
-
org,
|
|
6729
|
-
requestBody
|
|
6730
|
-
}) {
|
|
6731
|
-
return request(OpenAPI, {
|
|
6732
|
-
method: 'POST',
|
|
6733
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
|
|
6734
|
-
path: {
|
|
6735
|
-
'name': name,
|
|
6736
|
-
'org': org
|
|
6737
|
-
},
|
|
6738
|
-
body: requestBody,
|
|
6739
|
-
mediaType: 'application/json'
|
|
6740
|
-
});
|
|
6741
|
-
}
|
|
6742
|
-
}
|
|
6743
|
-
|
|
6744
|
-
class AiFinetuningService {
|
|
6745
|
-
/**
|
|
6746
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6747
|
-
* @returns PaginatedDataSetList
|
|
6748
|
-
* @throws ApiError
|
|
6749
|
-
*/
|
|
6750
|
-
static aiFinetuningV1OrgUserDatasetsList({
|
|
6751
|
-
org,
|
|
6752
|
-
username,
|
|
6753
|
-
dateCreated,
|
|
6754
|
-
numDataPoints,
|
|
6755
|
-
ordering,
|
|
6756
|
-
page,
|
|
6757
|
-
pageSize,
|
|
6758
|
-
retryAttempts,
|
|
6759
|
-
search,
|
|
6760
|
-
status
|
|
6761
|
-
}) {
|
|
6762
|
-
return request(OpenAPI, {
|
|
6763
|
-
method: 'GET',
|
|
6764
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
|
|
6765
|
-
path: {
|
|
6766
|
-
'org': org,
|
|
6767
|
-
'username': username
|
|
6768
|
-
},
|
|
6769
|
-
query: {
|
|
6770
|
-
'date_created': dateCreated,
|
|
6771
|
-
'num_data_points': numDataPoints,
|
|
6772
|
-
'ordering': ordering,
|
|
6773
|
-
'page': page,
|
|
6774
|
-
'page_size': pageSize,
|
|
6775
|
-
'retry_attempts': retryAttempts,
|
|
6776
|
-
'search': search,
|
|
6777
|
-
'status': status
|
|
6778
|
-
}
|
|
6779
|
-
});
|
|
6780
|
-
}
|
|
6781
|
-
/**
|
|
6782
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6783
|
-
* @returns DataSetCreate
|
|
6784
|
-
* @throws ApiError
|
|
6785
|
-
*/
|
|
6786
|
-
static aiFinetuningV1OrgUserDatasetsCreate({
|
|
6787
|
-
org,
|
|
6788
|
-
username,
|
|
6789
|
-
requestBody
|
|
6790
|
-
}) {
|
|
6791
|
-
return request(OpenAPI, {
|
|
6792
|
-
method: 'POST',
|
|
6793
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
|
|
6794
|
-
path: {
|
|
6795
|
-
'org': org,
|
|
6796
|
-
'username': username
|
|
6797
|
-
},
|
|
6798
|
-
body: requestBody,
|
|
6799
|
-
mediaType: 'application/json'
|
|
6800
|
-
});
|
|
6801
|
-
}
|
|
6802
|
-
/**
|
|
6803
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6804
|
-
* @returns DataSet
|
|
6805
|
-
* @throws ApiError
|
|
6806
|
-
*/
|
|
6807
|
-
static aiFinetuningV1OrgUserDatasetsRetrieve({
|
|
6808
|
-
id,
|
|
6809
|
-
org,
|
|
6810
|
-
username
|
|
6811
|
-
}) {
|
|
6812
|
-
return request(OpenAPI, {
|
|
6813
|
-
method: 'GET',
|
|
6814
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
6815
|
-
path: {
|
|
6816
|
-
'id': id,
|
|
6817
|
-
'org': org,
|
|
6818
|
-
'username': username
|
|
6819
|
-
}
|
|
6820
|
-
});
|
|
6821
|
-
}
|
|
6822
|
-
/**
|
|
6823
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6824
|
-
* @returns DataSet
|
|
6825
|
-
* @throws ApiError
|
|
6826
|
-
*/
|
|
6827
|
-
static aiFinetuningV1OrgUserDatasetsUpdate({
|
|
6828
|
-
id,
|
|
6829
|
-
org,
|
|
6830
|
-
username,
|
|
6831
|
-
requestBody
|
|
6832
|
-
}) {
|
|
6833
|
-
return request(OpenAPI, {
|
|
6834
|
-
method: 'PUT',
|
|
6835
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
6836
|
-
path: {
|
|
6837
|
-
'id': id,
|
|
6838
|
-
'org': org,
|
|
6839
|
-
'username': username
|
|
6840
|
-
},
|
|
6841
|
-
body: requestBody,
|
|
6842
|
-
mediaType: 'application/json'
|
|
6843
|
-
});
|
|
6844
|
-
}
|
|
6845
|
-
/**
|
|
6846
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6847
|
-
* @returns DataSet
|
|
6848
|
-
* @throws ApiError
|
|
6849
|
-
*/
|
|
6850
|
-
static aiFinetuningV1OrgUserDatasetsPartialUpdate({
|
|
6851
|
-
id,
|
|
6852
|
-
org,
|
|
6853
|
-
username,
|
|
6854
|
-
requestBody
|
|
6855
|
-
}) {
|
|
6856
|
-
return request(OpenAPI, {
|
|
6857
|
-
method: 'PATCH',
|
|
6858
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
6859
|
-
path: {
|
|
6860
|
-
'id': id,
|
|
6861
|
-
'org': org,
|
|
6862
|
-
'username': username
|
|
6863
|
-
},
|
|
6864
|
-
body: requestBody,
|
|
6865
|
-
mediaType: 'application/json'
|
|
6866
|
-
});
|
|
6867
|
-
}
|
|
6868
|
-
/**
|
|
6869
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6870
|
-
* @returns void
|
|
6871
|
-
* @throws ApiError
|
|
6872
|
-
*/
|
|
6873
|
-
static aiFinetuningV1OrgUserDatasetsDestroy({
|
|
6874
|
-
id,
|
|
6875
|
-
org,
|
|
6876
|
-
username
|
|
6877
|
-
}) {
|
|
6878
|
-
return request(OpenAPI, {
|
|
6879
|
-
method: 'DELETE',
|
|
6880
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
6881
|
-
path: {
|
|
6882
|
-
'id': id,
|
|
6883
|
-
'org': org,
|
|
6884
|
-
'username': username
|
|
6885
|
-
}
|
|
6886
|
-
});
|
|
6887
|
-
}
|
|
6888
|
-
/**
|
|
6889
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6890
|
-
* @returns PaginatedTrainingList
|
|
6891
|
-
* @throws ApiError
|
|
6892
|
-
*/
|
|
6893
|
-
static aiFinetuningV1OrgUserTrainingsList({
|
|
6894
|
-
org,
|
|
6895
|
-
username,
|
|
6896
|
-
baseModelName,
|
|
6897
|
-
dataset,
|
|
6898
|
-
dateCreated,
|
|
6899
|
-
fineTunedModel,
|
|
6900
|
-
lastModified,
|
|
6901
|
-
ordering,
|
|
6902
|
-
page,
|
|
6903
|
-
pageSize,
|
|
6904
|
-
preprocessDataset,
|
|
6905
|
-
provider,
|
|
6906
|
-
search,
|
|
6907
|
-
status
|
|
6908
|
-
}) {
|
|
6909
|
-
return request(OpenAPI, {
|
|
6910
|
-
method: 'GET',
|
|
6911
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
|
|
6912
|
-
path: {
|
|
6913
|
-
'org': org,
|
|
6914
|
-
'username': username
|
|
6915
|
-
},
|
|
6916
|
-
query: {
|
|
6917
|
-
'base_model_name': baseModelName,
|
|
6918
|
-
'dataset': dataset,
|
|
6919
|
-
'date_created': dateCreated,
|
|
6920
|
-
'fine_tuned_model': fineTunedModel,
|
|
6921
|
-
'last_modified': lastModified,
|
|
6922
|
-
'ordering': ordering,
|
|
6923
|
-
'page': page,
|
|
6924
|
-
'page_size': pageSize,
|
|
6925
|
-
'preprocess_dataset': preprocessDataset,
|
|
6926
|
-
'provider': provider,
|
|
6927
|
-
'search': search,
|
|
6928
|
-
'status': status
|
|
6929
|
-
}
|
|
6930
|
-
});
|
|
6931
|
-
}
|
|
6932
|
-
/**
|
|
6933
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6934
|
-
* @returns TrainingCreate
|
|
6935
|
-
* @throws ApiError
|
|
6936
|
-
*/
|
|
6937
|
-
static aiFinetuningV1OrgUserTrainingsCreate({
|
|
6938
|
-
org,
|
|
6939
|
-
username,
|
|
6940
|
-
requestBody
|
|
6941
|
-
}) {
|
|
6942
|
-
return request(OpenAPI, {
|
|
6943
|
-
method: 'POST',
|
|
6944
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
|
|
6945
|
-
path: {
|
|
6946
|
-
'org': org,
|
|
6947
|
-
'username': username
|
|
6948
|
-
},
|
|
6949
|
-
body: requestBody,
|
|
6950
|
-
mediaType: 'application/json'
|
|
6951
|
-
});
|
|
6952
|
-
}
|
|
6953
|
-
/**
|
|
6954
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6955
|
-
* @returns Training
|
|
6956
|
-
* @throws ApiError
|
|
6957
|
-
*/
|
|
6958
|
-
static aiFinetuningV1OrgUserTrainingsRetrieve({
|
|
6959
|
-
id,
|
|
6960
|
-
org,
|
|
6961
|
-
username
|
|
6962
|
-
}) {
|
|
6963
|
-
return request(OpenAPI, {
|
|
6964
|
-
method: 'GET',
|
|
6965
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
6966
|
-
path: {
|
|
6967
|
-
'id': id,
|
|
6968
|
-
'org': org,
|
|
6969
|
-
'username': username
|
|
6970
|
-
}
|
|
6971
|
-
});
|
|
6972
|
-
}
|
|
6973
|
-
/**
|
|
6974
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6975
|
-
* @returns TrainingCreate
|
|
6976
|
-
* @throws ApiError
|
|
6977
|
-
*/
|
|
6978
|
-
static aiFinetuningV1OrgUserTrainingsUpdate({
|
|
6979
|
-
id,
|
|
6980
|
-
org,
|
|
6981
|
-
username,
|
|
6982
|
-
requestBody
|
|
6983
|
-
}) {
|
|
6984
|
-
return request(OpenAPI, {
|
|
6985
|
-
method: 'PUT',
|
|
6986
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
6987
|
-
path: {
|
|
6988
|
-
'id': id,
|
|
6989
|
-
'org': org,
|
|
6990
|
-
'username': username
|
|
6991
|
-
},
|
|
6992
|
-
body: requestBody,
|
|
6993
|
-
mediaType: 'application/json'
|
|
6994
|
-
});
|
|
6995
|
-
}
|
|
6996
|
-
/**
|
|
6997
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6998
|
-
* @returns TrainingCreate
|
|
6999
|
-
* @throws ApiError
|
|
7000
|
-
*/
|
|
7001
|
-
static aiFinetuningV1OrgUserTrainingsPartialUpdate({
|
|
7002
|
-
id,
|
|
7003
|
-
org,
|
|
7004
|
-
username,
|
|
7005
|
-
requestBody
|
|
7006
|
-
}) {
|
|
7007
|
-
return request(OpenAPI, {
|
|
7008
|
-
method: 'PATCH',
|
|
7009
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
7010
|
-
path: {
|
|
7011
|
-
'id': id,
|
|
7012
|
-
'org': org,
|
|
7013
|
-
'username': username
|
|
7014
|
-
},
|
|
7015
|
-
body: requestBody,
|
|
7016
|
-
mediaType: 'application/json'
|
|
7017
|
-
});
|
|
7018
|
-
}
|
|
7019
|
-
/**
|
|
7020
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
7021
|
-
* @returns void
|
|
7022
|
-
* @throws ApiError
|
|
7023
|
-
*/
|
|
7024
|
-
static aiFinetuningV1OrgUserTrainingsDestroy({
|
|
7025
|
-
id,
|
|
7026
|
-
org,
|
|
7027
|
-
username
|
|
7028
|
-
}) {
|
|
7029
|
-
return request(OpenAPI, {
|
|
7030
|
-
method: 'DELETE',
|
|
7031
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
7032
|
-
path: {
|
|
7033
|
-
'id': id,
|
|
7034
|
-
'org': org,
|
|
7035
|
-
'username': username
|
|
7036
|
-
}
|
|
7037
|
-
});
|
|
7038
|
-
}
|
|
7039
|
-
/**
|
|
7040
|
-
* Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
|
|
7041
|
-
* Filtering and pagination is allowed.
|
|
7042
|
-
*
|
|
7043
|
-
* NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
|
|
7044
|
-
* training list endpoint.
|
|
7045
|
-
* Returns:
|
|
7046
|
-
* Response: A paginated response containing the serialized fine-tuned models.
|
|
7047
|
-
* @returns Training
|
|
7048
|
-
* @throws ApiError
|
|
7049
|
-
*/
|
|
7050
|
-
static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
|
|
7051
|
-
org,
|
|
7052
|
-
username
|
|
7053
|
-
}) {
|
|
7054
|
-
return request(OpenAPI, {
|
|
7055
|
-
method: 'GET',
|
|
7056
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
|
|
7057
|
-
path: {
|
|
7058
|
-
'org': org,
|
|
7059
|
-
'username': username
|
|
7060
|
-
}
|
|
7061
|
-
});
|
|
7062
|
-
}
|
|
7063
|
-
}
|
|
7064
|
-
|
|
7065
|
-
class AiIndexService {
|
|
7066
|
-
/**
|
|
7067
|
-
* Retrieve details of a specific document embedding.
|
|
7068
|
-
*
|
|
7069
|
-
* This endpoint returns detailed information about a specific
|
|
7070
|
-
* document embedding identified by its ID.
|
|
7071
|
-
*
|
|
7072
|
-
* Args:
|
|
7073
|
-
* request: The HTTP request.
|
|
7074
|
-
* org: Organization key identifier.
|
|
7075
|
-
* document_id: The ID of the document embedding to retrieve.
|
|
7076
|
-
*
|
|
7077
|
-
* Returns:
|
|
7078
|
-
* Response: Detailed information about the document embedding.
|
|
7079
|
-
*
|
|
7080
|
-
* Raises:
|
|
7081
|
-
* NotFound: If the specified document embedding does not exist.
|
|
7082
|
-
* @returns RetrieverDocumentEmbedding
|
|
7083
|
-
* @throws ApiError
|
|
7084
|
-
*/
|
|
7085
|
-
static aiIndexOrgsUsersDocumentsRetrieve({
|
|
7086
|
-
documentId,
|
|
7087
|
-
org,
|
|
7088
|
-
userId
|
|
7089
|
-
}) {
|
|
7090
|
-
return request(OpenAPI, {
|
|
7091
|
-
method: 'GET',
|
|
7092
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
7093
|
-
path: {
|
|
7094
|
-
'document_id': documentId,
|
|
7095
|
-
'org': org,
|
|
7096
|
-
'user_id': userId
|
|
7097
|
-
},
|
|
7098
|
-
errors: {
|
|
7099
|
-
404: `Document not found`
|
|
7100
|
-
}
|
|
7101
|
-
});
|
|
7102
|
-
}
|
|
7103
|
-
/**
|
|
7104
|
-
* Update a specific document embedding.
|
|
7105
|
-
*
|
|
7106
|
-
* This endpoint allows updating various properties of a document embedding,
|
|
7107
|
-
* including its name, type, pathway, and training status.
|
|
7108
|
-
*
|
|
7109
|
-
* Args:
|
|
7110
|
-
* request: The HTTP request containing the updated document data.
|
|
7111
|
-
* org: Organization key identifier.
|
|
7112
|
-
* document_id: The ID of the document embedding to update.
|
|
7113
|
-
*
|
|
7114
|
-
* Returns:
|
|
7115
|
-
* Response: The updated document embedding information.
|
|
7116
|
-
*
|
|
7117
|
-
* Raises:
|
|
7118
|
-
* BadRequest: If the provided data is invalid.
|
|
7119
|
-
* NotFound: If the specified document embedding does not exist.
|
|
7120
|
-
* @returns RetrieverDocumentEmbedding
|
|
7121
|
-
* @throws ApiError
|
|
7122
|
-
*/
|
|
7123
|
-
static aiIndexOrgsUsersDocumentsUpdate({
|
|
7124
|
-
documentId,
|
|
7125
|
-
org,
|
|
7126
|
-
userId,
|
|
7127
|
-
formData
|
|
7128
|
-
}) {
|
|
7129
|
-
return request(OpenAPI, {
|
|
7130
|
-
method: 'PUT',
|
|
7131
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
7132
|
-
path: {
|
|
7133
|
-
'document_id': documentId,
|
|
7134
|
-
'org': org,
|
|
7135
|
-
'user_id': userId
|
|
7136
|
-
},
|
|
7137
|
-
formData: formData,
|
|
7138
|
-
mediaType: 'multipart/form-data',
|
|
7139
|
-
errors: {
|
|
7140
|
-
400: `Invalid request data`,
|
|
7141
|
-
404: `Document not found`
|
|
7142
|
-
}
|
|
7143
|
-
});
|
|
7144
|
-
}
|
|
7145
|
-
/**
|
|
7146
|
-
* Delete a specific document embedding.
|
|
7147
|
-
*
|
|
7148
|
-
* This endpoint removes a document embedding from the system,
|
|
7149
|
-
* including untraining it from any associated pathways.
|
|
7150
|
-
*
|
|
7151
|
-
* Args:
|
|
7152
|
-
* request: The HTTP request.
|
|
7153
|
-
* org: Organization key identifier.
|
|
7154
|
-
* document_id: The ID of the document embedding to delete.
|
|
7155
|
-
*
|
|
7156
|
-
* Returns:
|
|
7157
|
-
* Response: An empty response with a 204 status code if successful.
|
|
7158
|
-
*
|
|
7159
|
-
* Raises:
|
|
7160
|
-
* NotFound: If the specified document embedding does not exist.
|
|
7161
|
-
* @returns void
|
|
7162
|
-
* @throws ApiError
|
|
7163
|
-
*/
|
|
7164
|
-
static aiIndexOrgsUsersDocumentsDestroy({
|
|
7165
|
-
documentId,
|
|
7166
|
-
org,
|
|
7167
|
-
userId
|
|
7168
|
-
}) {
|
|
7169
|
-
return request(OpenAPI, {
|
|
7170
|
-
method: 'DELETE',
|
|
7171
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
|
|
7172
|
-
path: {
|
|
7173
|
-
'document_id': documentId,
|
|
7174
|
-
'org': org,
|
|
7175
|
-
'user_id': userId
|
|
7176
|
-
},
|
|
7177
|
-
errors: {
|
|
7178
|
-
404: `Document not found`
|
|
7179
|
-
}
|
|
7180
|
-
});
|
|
7181
|
-
}
|
|
7182
|
-
/**
|
|
7183
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
7184
|
-
* @returns DocumentSettingsResponse
|
|
7185
|
-
* @throws ApiError
|
|
7186
|
-
*/
|
|
7187
|
-
static aiIndexOrgsUsersDocumentsSettingsRetrieve({
|
|
7188
|
-
documentId,
|
|
7189
|
-
org,
|
|
7190
|
-
userId
|
|
7191
|
-
}) {
|
|
7192
|
-
return request(OpenAPI, {
|
|
7193
|
-
method: 'GET',
|
|
7194
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
|
|
7195
|
-
path: {
|
|
7196
|
-
'document_id': documentId,
|
|
7197
|
-
'org': org,
|
|
7198
|
-
'user_id': userId
|
|
7199
|
-
}
|
|
7200
|
-
});
|
|
7201
|
-
}
|
|
7202
|
-
/**
|
|
7203
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
7204
|
-
* @returns DocumentSettingsResponse
|
|
7205
|
-
* @throws ApiError
|
|
7206
|
-
*/
|
|
7207
|
-
static aiIndexOrgsUsersDocumentsSettingsCreate({
|
|
7208
|
-
documentId,
|
|
7209
|
-
org,
|
|
7210
|
-
userId,
|
|
7211
|
-
requestBody
|
|
7212
|
-
}) {
|
|
7213
|
-
return request(OpenAPI, {
|
|
7214
|
-
method: 'POST',
|
|
7215
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
|
|
7216
|
-
path: {
|
|
7217
|
-
'document_id': documentId,
|
|
7218
|
-
'org': org,
|
|
7219
|
-
'user_id': userId
|
|
7220
|
-
},
|
|
7221
|
-
body: requestBody,
|
|
7222
|
-
mediaType: 'application/json'
|
|
7223
|
-
});
|
|
7224
|
-
}
|
|
7225
|
-
/**
|
|
7226
|
-
* Train a graph-based document through a worker process.
|
|
7227
|
-
*
|
|
7228
|
-
* This endpoint queues graph-based documents for training through a
|
|
7229
|
-
* specialized worker process that handles knowledge graph processing.
|
|
7230
|
-
*
|
|
7231
|
-
* Args:
|
|
7232
|
-
* request: The HTTP request containing the document information.
|
|
7233
|
-
* org: Organization key identifier.
|
|
7234
|
-
*
|
|
7235
|
-
* Returns:
|
|
7236
|
-
* Response: A confirmation that the document was queued for training,
|
|
7237
|
-
* including a task ID for tracking the progress.
|
|
7238
|
-
*
|
|
7239
|
-
* Raises:
|
|
7240
|
-
* ValidationError: If the request data is invalid.
|
|
7241
|
-
* BadRequest: If there was an error processing the document.
|
|
7242
|
-
* @returns TrainDocumentViewResponse
|
|
7243
|
-
* @throws ApiError
|
|
7244
|
-
*/
|
|
7245
|
-
static aiIndexOrgsUsersDocumentsGraphTrainCreate({
|
|
7246
|
-
org,
|
|
7247
|
-
userId,
|
|
7248
|
-
formData
|
|
7249
|
-
}) {
|
|
7250
|
-
return request(OpenAPI, {
|
|
7251
|
-
method: 'POST',
|
|
7252
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/graph-train/',
|
|
7253
|
-
path: {
|
|
7254
|
-
'org': org,
|
|
7255
|
-
'user_id': userId
|
|
7256
|
-
},
|
|
7257
|
-
formData: formData,
|
|
7258
|
-
mediaType: 'multipart/form-data',
|
|
7259
|
-
errors: {
|
|
7260
|
-
400: `Invalid request data or document processing error`
|
|
7261
|
-
}
|
|
7262
|
-
});
|
|
7263
|
-
}
|
|
7264
|
-
/**
|
|
7265
|
-
* Description:
|
|
7266
|
-
* Retrieves a list of document embeddings for a specific pathway with optional search and pagination.
|
|
7267
|
-
*
|
|
7268
|
-
* Methods:
|
|
7269
|
-
* - GET: Retrieves document embeddings that match the specified search criteria and are paginated according to offset and limit.
|
|
7270
|
-
*
|
|
7271
|
-
* Parameters:
|
|
7272
|
-
* - search (str): Search query to filter document names or URLs.
|
|
7273
|
-
* - offset (int): Offset number for pagination.
|
|
7274
|
-
* - limit (int): Limit number for pagination.
|
|
7275
|
-
*
|
|
7276
|
-
* Returns:
|
|
7277
|
-
* - GET: A paginated list of document embeddings with their details.
|
|
7278
|
-
* {
|
|
7279
|
-
* "count": 10,
|
|
7280
|
-
* "next": "http://api.example.com/retriever_documents/?offset=10&limit=2",
|
|
7281
|
-
* "previous": "http://api.example.com/retriever_documents/?offset=0&limit=2",
|
|
7282
|
-
* "results": [
|
|
7283
|
-
* {
|
|
7284
|
-
* "document_name": "Document2",
|
|
7285
|
-
* "platform_key": "example_platform",
|
|
7286
|
-
* "pathway": "example_pathway"
|
|
7287
|
-
* }
|
|
7288
|
-
* ]
|
|
7289
|
-
* }
|
|
7290
|
-
*
|
|
7291
|
-
* Error Responses:
|
|
7292
|
-
* - 400 Bad Request: Invalid query parameters.
|
|
7293
|
-
* - 404 Not Found: No document embeddings found for the specified criteria.
|
|
7294
|
-
* @returns RetrieverDocumentEmbedding
|
|
7295
|
-
* @throws ApiError
|
|
7296
|
-
*/
|
|
7297
|
-
static aiIndexOrgsUsersDocumentsPathwaysList({
|
|
7298
|
-
org,
|
|
7299
|
-
pathway,
|
|
7300
|
-
userId,
|
|
7301
|
-
limit,
|
|
7302
|
-
offset,
|
|
7303
|
-
search
|
|
7304
|
-
}) {
|
|
7305
|
-
return request(OpenAPI, {
|
|
7306
|
-
method: 'GET',
|
|
7307
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/',
|
|
7308
|
-
path: {
|
|
7309
|
-
'org': org,
|
|
7310
|
-
'pathway': pathway,
|
|
7311
|
-
'user_id': userId
|
|
7312
|
-
},
|
|
7313
|
-
query: {
|
|
7314
|
-
'limit': limit,
|
|
7315
|
-
'offset': offset,
|
|
7316
|
-
'search': search
|
|
7317
|
-
}
|
|
7318
|
-
});
|
|
7319
|
-
}
|
|
7320
|
-
/**
|
|
7321
|
-
* Retrieve resource documents similar to the given query.
|
|
7322
|
-
*
|
|
7323
|
-
* This endpoint performs a semantic search to find documents that are
|
|
7324
|
-
* relevant to the provided query within the specified pathway.
|
|
7325
|
-
*
|
|
7326
|
-
* Args:
|
|
7327
|
-
* request: The HTTP request containing the search query.
|
|
7328
|
-
* org: Organization key identifier.
|
|
7329
|
-
*
|
|
7330
|
-
* Returns:
|
|
7331
|
-
* Response: A list of documents relevant to the search query.
|
|
7332
|
-
*
|
|
7333
|
-
* Raises:
|
|
7334
|
-
* ValidationError: If the request data is invalid.
|
|
7335
|
-
* @returns RetrieverResponseSearch
|
|
7336
|
-
* @throws ApiError
|
|
7337
|
-
*/
|
|
7338
|
-
static aiIndexOrgsUsersDocumentsSearchCreate({
|
|
7339
|
-
org,
|
|
7340
|
-
userId,
|
|
7341
|
-
requestBody
|
|
7342
|
-
}) {
|
|
7343
|
-
return request(OpenAPI, {
|
|
7344
|
-
method: 'POST',
|
|
7345
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/search/',
|
|
7346
|
-
path: {
|
|
7347
|
-
'org': org,
|
|
7348
|
-
'user_id': userId
|
|
7349
|
-
},
|
|
7350
|
-
body: requestBody,
|
|
7351
|
-
mediaType: 'application/json',
|
|
7352
|
-
errors: {
|
|
7353
|
-
400: `Invalid request data`
|
|
7354
|
-
}
|
|
7355
|
-
});
|
|
7356
|
-
}
|
|
7357
|
-
/**
|
|
7358
|
-
* Retrieve document sources related to a given query.
|
|
7359
|
-
*
|
|
7360
|
-
* This endpoint performs a semantic search to find document sources
|
|
7361
|
-
* that are relevant to the provided query within the specified pathway,
|
|
7362
|
-
* and returns them along with confidence levels.
|
|
7363
|
-
*
|
|
7364
|
-
* Args:
|
|
7365
|
-
* request: The HTTP request containing the search query.
|
|
7366
|
-
* org: Organization key identifier.
|
|
7367
|
-
*
|
|
7368
|
-
* Returns:
|
|
7369
|
-
* Response: A list of document sources with confidence levels.
|
|
7370
|
-
*
|
|
7371
|
-
* Raises:
|
|
7372
|
-
* ValidationError: If the request data is invalid.
|
|
7373
|
-
* @returns RetrieverRequestSearchDocument
|
|
7374
|
-
* @throws ApiError
|
|
7375
|
-
*/
|
|
7376
|
-
static aiIndexOrgsUsersDocumentsSourcesCreate({
|
|
7377
|
-
org,
|
|
7378
|
-
userId,
|
|
7379
|
-
requestBody
|
|
7380
|
-
}) {
|
|
7381
|
-
return request(OpenAPI, {
|
|
7382
|
-
method: 'POST',
|
|
7383
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/sources/',
|
|
7384
|
-
path: {
|
|
7385
|
-
'org': org,
|
|
7386
|
-
'user_id': userId
|
|
7387
|
-
},
|
|
7388
|
-
body: requestBody,
|
|
7389
|
-
mediaType: 'application/json',
|
|
7390
|
-
errors: {
|
|
7391
|
-
400: `Invalid request data`
|
|
7392
|
-
}
|
|
7393
|
-
});
|
|
7394
|
-
}
|
|
7395
|
-
/**
|
|
7396
|
-
* Check the status of a document training task.
|
|
7397
|
-
*
|
|
7398
|
-
* This endpoint retrieves the current status of an asynchronous
|
|
7399
|
-
* document training task that was previously initiated.
|
|
7400
|
-
*
|
|
7401
|
-
* Args:
|
|
7402
|
-
* request: The HTTP request.
|
|
7403
|
-
* org: Organization key identifier.
|
|
7404
|
-
* task_id: The ID of the training task to check.
|
|
7405
|
-
*
|
|
7406
|
-
* Returns:
|
|
7407
|
-
* Response: The current status of the document training task,
|
|
7408
|
-
* which can be "pending", "completed", or "failed".
|
|
7409
|
-
* @returns CheckDocumentTrainingStatus
|
|
7410
|
-
* @throws ApiError
|
|
7411
|
-
*/
|
|
7412
|
-
static aiIndexOrgsUsersDocumentsTasksRetrieve({
|
|
7413
|
-
org,
|
|
7414
|
-
taskId,
|
|
7415
|
-
userId
|
|
7416
|
-
}) {
|
|
7417
|
-
return request(OpenAPI, {
|
|
7418
|
-
method: 'GET',
|
|
7419
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/tasks/{task_id}/',
|
|
7420
|
-
path: {
|
|
7421
|
-
'org': org,
|
|
7422
|
-
'task_id': taskId,
|
|
7423
|
-
'user_id': userId
|
|
7424
|
-
}
|
|
7425
|
-
});
|
|
7426
|
-
}
|
|
7427
|
-
/**
|
|
7428
|
-
* Train a document through a worker process.
|
|
7429
|
-
*
|
|
7430
|
-
* This endpoint queues larger documents for training through a worker
|
|
7431
|
-
* process, which is more suitable for handling documents that would
|
|
7432
|
-
* take too long to process directly.
|
|
7433
|
-
*
|
|
7434
|
-
* Args:
|
|
7435
|
-
* request: The HTTP request containing the document information.
|
|
7436
|
-
* org: Organization key identifier.
|
|
7437
|
-
*
|
|
7438
|
-
* Returns:
|
|
7439
|
-
* Response: A confirmation that the document was queued for training,
|
|
7440
|
-
* including a task ID for tracking the progress.
|
|
7441
|
-
*
|
|
7442
|
-
* Raises:
|
|
7443
|
-
* ValidationError: If the request data is invalid.
|
|
7444
|
-
* BadRequest: If there was an error processing the document.
|
|
7445
|
-
* @returns TrainDocumentViewResponse
|
|
7446
|
-
* @throws ApiError
|
|
7447
|
-
*/
|
|
7448
|
-
static aiIndexOrgsUsersDocumentsTrainCreate({
|
|
7449
|
-
org,
|
|
7450
|
-
userId,
|
|
7451
|
-
formData
|
|
7452
|
-
}) {
|
|
7453
|
-
return request(OpenAPI, {
|
|
7454
|
-
method: 'POST',
|
|
7455
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/',
|
|
7456
|
-
path: {
|
|
7457
|
-
'org': org,
|
|
7458
|
-
'user_id': userId
|
|
7459
|
-
},
|
|
7460
|
-
formData: formData,
|
|
7461
|
-
mediaType: 'multipart/form-data',
|
|
7462
|
-
errors: {
|
|
7463
|
-
400: `Invalid request data`
|
|
7464
|
-
}
|
|
7465
|
-
});
|
|
7466
|
-
}
|
|
7467
|
-
/**
|
|
7468
|
-
* Train a document directly without using a worker.
|
|
7469
|
-
*
|
|
7470
|
-
* This endpoint is designed for training smaller documents directly
|
|
7471
|
-
* without queuing them through a worker process. For larger documents,
|
|
7472
|
-
* use the TrainDocumentView endpoint instead.
|
|
7473
|
-
*
|
|
7474
|
-
* Args:
|
|
7475
|
-
* request: The HTTP request containing the document information.
|
|
7476
|
-
* org: Organization key identifier.
|
|
7477
|
-
*
|
|
7478
|
-
* Returns:
|
|
7479
|
-
* Response: A confirmation that the document was trained successfully.
|
|
7480
|
-
*
|
|
7481
|
-
* Raises:
|
|
7482
|
-
* ValidationError: If the request data is invalid.
|
|
7483
|
-
* BadRequest: If the document training failed.
|
|
7484
|
-
* @returns RetreiverTrainViewResponse
|
|
7485
|
-
* @throws ApiError
|
|
7486
|
-
*/
|
|
7487
|
-
static aiIndexOrgsUsersDocumentsTrainRetrieverCreate({
|
|
7488
|
-
org,
|
|
7489
|
-
userId,
|
|
7490
|
-
formData
|
|
7491
|
-
}) {
|
|
7492
|
-
return request(OpenAPI, {
|
|
7493
|
-
method: 'POST',
|
|
7494
|
-
url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/retriever/',
|
|
7495
|
-
path: {
|
|
7496
|
-
'org': org,
|
|
7497
|
-
'user_id': userId
|
|
7498
|
-
},
|
|
7499
|
-
formData: formData,
|
|
7500
|
-
mediaType: 'multipart/form-data',
|
|
7501
|
-
errors: {
|
|
7502
|
-
400: `Invalid request data or training failed`
|
|
7503
|
-
}
|
|
6170
|
+
formData: formData,
|
|
6171
|
+
mediaType: 'multipart/form-data',
|
|
6172
|
+
errors: {
|
|
6173
|
+
400: `Invalid request data or training failed`
|
|
6174
|
+
}
|
|
7504
6175
|
});
|
|
7505
6176
|
}
|
|
7506
6177
|
/**
|
|
@@ -8931,6 +7602,246 @@ class AiMentorService {
|
|
|
8931
7602
|
}
|
|
8932
7603
|
});
|
|
8933
7604
|
}
|
|
7605
|
+
/**
|
|
7606
|
+
* API ViewSet for managing call configurations.
|
|
7607
|
+
*
|
|
7608
|
+
* This ViewSet provides endpoints to retrieve, create, and update call configurations
|
|
7609
|
+
* for mentors. Call configurations define how voice calls are handled for a mentor.
|
|
7610
|
+
*
|
|
7611
|
+
* Permissions:
|
|
7612
|
+
* - Accessible only to platform admins.
|
|
7613
|
+
*
|
|
7614
|
+
* Endpoints:
|
|
7615
|
+
* GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7616
|
+
* - List all call configurations for a specific mentor
|
|
7617
|
+
* - Returns paginated list of call configurations
|
|
7618
|
+
*
|
|
7619
|
+
* POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7620
|
+
* - Create a new call configuration for a mentor
|
|
7621
|
+
* - Requires call configuration data in request body
|
|
7622
|
+
*
|
|
7623
|
+
* PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
|
|
7624
|
+
* - Update an existing call configuration
|
|
7625
|
+
* - Requires call configuration data in request body
|
|
7626
|
+
*
|
|
7627
|
+
* Query Parameters:
|
|
7628
|
+
* - mentor: Filter configurations by mentor ID
|
|
7629
|
+
*
|
|
7630
|
+
* Returns:
|
|
7631
|
+
* - CallConfigurationSerializer data
|
|
7632
|
+
* @returns CallConfiguration
|
|
7633
|
+
* @throws ApiError
|
|
7634
|
+
*/
|
|
7635
|
+
static aiMentorOrgsUsersCallConfigurationsList({
|
|
7636
|
+
org,
|
|
7637
|
+
userId,
|
|
7638
|
+
mentor,
|
|
7639
|
+
mode,
|
|
7640
|
+
ordering,
|
|
7641
|
+
search
|
|
7642
|
+
}) {
|
|
7643
|
+
return request(OpenAPI, {
|
|
7644
|
+
method: 'GET',
|
|
7645
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/',
|
|
7646
|
+
path: {
|
|
7647
|
+
'org': org,
|
|
7648
|
+
'user_id': userId
|
|
7649
|
+
},
|
|
7650
|
+
query: {
|
|
7651
|
+
'mentor': mentor,
|
|
7652
|
+
'mode': mode,
|
|
7653
|
+
'ordering': ordering,
|
|
7654
|
+
'search': search
|
|
7655
|
+
}
|
|
7656
|
+
});
|
|
7657
|
+
}
|
|
7658
|
+
/**
|
|
7659
|
+
* API ViewSet for managing call configurations.
|
|
7660
|
+
*
|
|
7661
|
+
* This ViewSet provides endpoints to retrieve, create, and update call configurations
|
|
7662
|
+
* for mentors. Call configurations define how voice calls are handled for a mentor.
|
|
7663
|
+
*
|
|
7664
|
+
* Permissions:
|
|
7665
|
+
* - Accessible only to platform admins.
|
|
7666
|
+
*
|
|
7667
|
+
* Endpoints:
|
|
7668
|
+
* GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7669
|
+
* - List all call configurations for a specific mentor
|
|
7670
|
+
* - Returns paginated list of call configurations
|
|
7671
|
+
*
|
|
7672
|
+
* POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7673
|
+
* - Create a new call configuration for a mentor
|
|
7674
|
+
* - Requires call configuration data in request body
|
|
7675
|
+
*
|
|
7676
|
+
* PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
|
|
7677
|
+
* - Update an existing call configuration
|
|
7678
|
+
* - Requires call configuration data in request body
|
|
7679
|
+
*
|
|
7680
|
+
* Query Parameters:
|
|
7681
|
+
* - mentor: Filter configurations by mentor ID
|
|
7682
|
+
*
|
|
7683
|
+
* Returns:
|
|
7684
|
+
* - CallConfigurationSerializer data
|
|
7685
|
+
* @returns CallConfiguration
|
|
7686
|
+
* @throws ApiError
|
|
7687
|
+
*/
|
|
7688
|
+
static aiMentorOrgsUsersCallConfigurationsCreate({
|
|
7689
|
+
org,
|
|
7690
|
+
userId,
|
|
7691
|
+
requestBody
|
|
7692
|
+
}) {
|
|
7693
|
+
return request(OpenAPI, {
|
|
7694
|
+
method: 'POST',
|
|
7695
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/',
|
|
7696
|
+
path: {
|
|
7697
|
+
'org': org,
|
|
7698
|
+
'user_id': userId
|
|
7699
|
+
},
|
|
7700
|
+
body: requestBody,
|
|
7701
|
+
mediaType: 'application/json'
|
|
7702
|
+
});
|
|
7703
|
+
}
|
|
7704
|
+
/**
|
|
7705
|
+
* API ViewSet for managing call configurations.
|
|
7706
|
+
*
|
|
7707
|
+
* This ViewSet provides endpoints to retrieve, create, and update call configurations
|
|
7708
|
+
* for mentors. Call configurations define how voice calls are handled for a mentor.
|
|
7709
|
+
*
|
|
7710
|
+
* Permissions:
|
|
7711
|
+
* - Accessible only to platform admins.
|
|
7712
|
+
*
|
|
7713
|
+
* Endpoints:
|
|
7714
|
+
* GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7715
|
+
* - List all call configurations for a specific mentor
|
|
7716
|
+
* - Returns paginated list of call configurations
|
|
7717
|
+
*
|
|
7718
|
+
* POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7719
|
+
* - Create a new call configuration for a mentor
|
|
7720
|
+
* - Requires call configuration data in request body
|
|
7721
|
+
*
|
|
7722
|
+
* PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
|
|
7723
|
+
* - Update an existing call configuration
|
|
7724
|
+
* - Requires call configuration data in request body
|
|
7725
|
+
*
|
|
7726
|
+
* Query Parameters:
|
|
7727
|
+
* - mentor: Filter configurations by mentor ID
|
|
7728
|
+
*
|
|
7729
|
+
* Returns:
|
|
7730
|
+
* - CallConfigurationSerializer data
|
|
7731
|
+
* @returns CallConfiguration
|
|
7732
|
+
* @throws ApiError
|
|
7733
|
+
*/
|
|
7734
|
+
static aiMentorOrgsUsersCallConfigurationsRetrieve({
|
|
7735
|
+
id,
|
|
7736
|
+
org,
|
|
7737
|
+
userId
|
|
7738
|
+
}) {
|
|
7739
|
+
return request(OpenAPI, {
|
|
7740
|
+
method: 'GET',
|
|
7741
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/{id}/',
|
|
7742
|
+
path: {
|
|
7743
|
+
'id': id,
|
|
7744
|
+
'org': org,
|
|
7745
|
+
'user_id': userId
|
|
7746
|
+
}
|
|
7747
|
+
});
|
|
7748
|
+
}
|
|
7749
|
+
/**
|
|
7750
|
+
* API ViewSet for managing call configurations.
|
|
7751
|
+
*
|
|
7752
|
+
* This ViewSet provides endpoints to retrieve, create, and update call configurations
|
|
7753
|
+
* for mentors. Call configurations define how voice calls are handled for a mentor.
|
|
7754
|
+
*
|
|
7755
|
+
* Permissions:
|
|
7756
|
+
* - Accessible only to platform admins.
|
|
7757
|
+
*
|
|
7758
|
+
* Endpoints:
|
|
7759
|
+
* GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7760
|
+
* - List all call configurations for a specific mentor
|
|
7761
|
+
* - Returns paginated list of call configurations
|
|
7762
|
+
*
|
|
7763
|
+
* POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7764
|
+
* - Create a new call configuration for a mentor
|
|
7765
|
+
* - Requires call configuration data in request body
|
|
7766
|
+
*
|
|
7767
|
+
* PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
|
|
7768
|
+
* - Update an existing call configuration
|
|
7769
|
+
* - Requires call configuration data in request body
|
|
7770
|
+
*
|
|
7771
|
+
* Query Parameters:
|
|
7772
|
+
* - mentor: Filter configurations by mentor ID
|
|
7773
|
+
*
|
|
7774
|
+
* Returns:
|
|
7775
|
+
* - CallConfigurationSerializer data
|
|
7776
|
+
* @returns CallConfiguration
|
|
7777
|
+
* @throws ApiError
|
|
7778
|
+
*/
|
|
7779
|
+
static aiMentorOrgsUsersCallConfigurationsUpdate({
|
|
7780
|
+
id,
|
|
7781
|
+
org,
|
|
7782
|
+
userId,
|
|
7783
|
+
requestBody
|
|
7784
|
+
}) {
|
|
7785
|
+
return request(OpenAPI, {
|
|
7786
|
+
method: 'PUT',
|
|
7787
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/{id}/',
|
|
7788
|
+
path: {
|
|
7789
|
+
'id': id,
|
|
7790
|
+
'org': org,
|
|
7791
|
+
'user_id': userId
|
|
7792
|
+
},
|
|
7793
|
+
body: requestBody,
|
|
7794
|
+
mediaType: 'application/json'
|
|
7795
|
+
});
|
|
7796
|
+
}
|
|
7797
|
+
/**
|
|
7798
|
+
* API ViewSet for managing call configurations.
|
|
7799
|
+
*
|
|
7800
|
+
* This ViewSet provides endpoints to retrieve, create, and update call configurations
|
|
7801
|
+
* for mentors. Call configurations define how voice calls are handled for a mentor.
|
|
7802
|
+
*
|
|
7803
|
+
* Permissions:
|
|
7804
|
+
* - Accessible only to platform admins.
|
|
7805
|
+
*
|
|
7806
|
+
* Endpoints:
|
|
7807
|
+
* GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7808
|
+
* - List all call configurations for a specific mentor
|
|
7809
|
+
* - Returns paginated list of call configurations
|
|
7810
|
+
*
|
|
7811
|
+
* POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
|
|
7812
|
+
* - Create a new call configuration for a mentor
|
|
7813
|
+
* - Requires call configuration data in request body
|
|
7814
|
+
*
|
|
7815
|
+
* PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
|
|
7816
|
+
* - Update an existing call configuration
|
|
7817
|
+
* - Requires call configuration data in request body
|
|
7818
|
+
*
|
|
7819
|
+
* Query Parameters:
|
|
7820
|
+
* - mentor: Filter configurations by mentor ID
|
|
7821
|
+
*
|
|
7822
|
+
* Returns:
|
|
7823
|
+
* - CallConfigurationSerializer data
|
|
7824
|
+
* @returns CallConfiguration
|
|
7825
|
+
* @throws ApiError
|
|
7826
|
+
*/
|
|
7827
|
+
static aiMentorOrgsUsersCallConfigurationsPartialUpdate({
|
|
7828
|
+
id,
|
|
7829
|
+
org,
|
|
7830
|
+
userId,
|
|
7831
|
+
requestBody
|
|
7832
|
+
}) {
|
|
7833
|
+
return request(OpenAPI, {
|
|
7834
|
+
method: 'PATCH',
|
|
7835
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/{id}/',
|
|
7836
|
+
path: {
|
|
7837
|
+
'id': id,
|
|
7838
|
+
'org': org,
|
|
7839
|
+
'user_id': userId
|
|
7840
|
+
},
|
|
7841
|
+
body: requestBody,
|
|
7842
|
+
mediaType: 'application/json'
|
|
7843
|
+
});
|
|
7844
|
+
}
|
|
8934
7845
|
/**
|
|
8935
7846
|
* Retrieve a list of Mentor Category Groups.
|
|
8936
7847
|
* @returns MentorCategoryGroup
|
|
@@ -34879,5 +33790,5 @@ class UserGroupsService {
|
|
|
34879
33790
|
}
|
|
34880
33791
|
}
|
|
34881
33792
|
|
|
34882
|
-
export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService,
|
|
33793
|
+
export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService, AiIndexService, AiMarketingService, AiMediaService, AiMentorService, AiPromptService, AlignMentorBubbleEnum, AnalyticsService, ApiError, AudienceService, BlankEnum, CallConfigurationModeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, ComponentBlockTypeEnum, CoreService, CourseCreationTaskStatusEnum, CredentialsService, DepartmentsService, EngagementService, FeaturesService, FinanceService, GooglePayAccountResponseStatusEnum, GreetingMethodEnum, InstitutionTypeEnum, ItemTypeEnum, KindEnum, LlmProviderEnum, MediaResourcesService, MediaTypeEnum, MentorVisibilityEnum, NotificationBuilderService, NotificationService, NotificationSourceTypeEnum, NotificationStatusEnum, OpenAPI, OrgsService, OverviewService, PerformanceService, PeriodicAgentLogStatusEnum, PerlearnerService, PlatformListStatusEnum, PlatformService, PreviousAgentStatusEnum, ProgramTypeEnum, PromptVisibilityEnum, ProviderAssociationService, ProviderEnum, ProvidersService, ProvisionService, RatingEnum, RecommendationsService, ReportsService, ResourceScrappedDataStatusEnum, RolesService, SearchService, ServiceService, SkillsService, StateEnum, Status6eeEnum, StepStatusEnum, StripeCheckoutSessionRequestModeEnum, SttProviderEnum, TargetSystemEnum, ThemeEnum, TrainingStatusEnum, TransportEnum, TtsProviderEnum, TypeC42Enum, UserGroupsService };
|
|
34883
33794
|
//# sourceMappingURL=index.esm.js.map
|