@iblai/iblai-api 3.47.2-ai-plus → 3.48.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 +520 -1416
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +521 -1415
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +520 -1416
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +18 -43
- package/dist/types/models/PaginatedRbacGroupList.d.ts +7 -0
- package/dist/types/models/PaginatedRbacGroupRoleList.d.ts +7 -0
- package/dist/types/models/PaginatedRbacPolicyList.d.ts +7 -0
- package/dist/types/models/PaginatedRbacRoleList.d.ts +7 -0
- package/dist/types/models/PaginatedRbacUserRoleList.d.ts +7 -0
- package/dist/types/models/PatchedRbacGroup.d.ts +34 -0
- package/dist/types/models/PatchedRbacGroupRole.d.ts +13 -0
- package/dist/types/models/PatchedRbacPolicy.d.ts +28 -0
- package/dist/types/models/PatchedRbacRole.d.ts +20 -0
- package/dist/types/models/PatchedRbacUserRole.d.ts +28 -0
- package/dist/types/models/{VoiceProviderEnum.d.ts → ProviderEnum.d.ts} +1 -1
- package/dist/types/models/RbacGroup.d.ts +34 -0
- package/dist/types/models/RbacGroupRole.d.ts +13 -0
- package/dist/types/models/RbacPlatform.d.ts +14 -0
- package/dist/types/models/RbacPolicy.d.ts +28 -0
- package/dist/types/models/RbacRole.d.ts +20 -0
- package/dist/types/models/RbacUser.d.ts +13 -0
- package/dist/types/models/RbacUserRole.d.ts +28 -0
- package/dist/types/models/Voice.d.ts +2 -2
- package/dist/types/services/CoreService.d.ts +232 -43
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +18 -43
- package/src/models/{PaginatedDataSetList.ts → PaginatedRbacGroupList.ts} +3 -3
- package/src/models/PaginatedRbacGroupRoleList.ts +12 -0
- package/src/models/PaginatedRbacPolicyList.ts +12 -0
- package/src/models/{PaginatedTrainingList.ts → PaginatedRbacRoleList.ts} +3 -3
- package/src/models/PaginatedRbacUserRoleList.ts +12 -0
- package/src/models/PatchedRbacGroup.ts +39 -0
- package/src/models/PatchedRbacGroupRole.ts +18 -0
- package/src/models/PatchedRbacPolicy.ts +33 -0
- package/src/models/PatchedRbacRole.ts +25 -0
- package/src/models/PatchedRbacUserRole.ts +33 -0
- package/src/models/{VoiceProviderEnum.ts → ProviderEnum.ts} +1 -1
- package/src/models/RbacGroup.ts +39 -0
- package/src/models/RbacGroupRole.ts +18 -0
- package/src/models/RbacPlatform.ts +19 -0
- package/src/models/RbacPolicy.ts +33 -0
- package/src/models/RbacRole.ts +25 -0
- package/src/models/{WhatsappUserConfig.ts → RbacUser.ts} +9 -6
- package/src/models/RbacUserRole.ts +33 -0
- package/src/models/Voice.ts +2 -2
- package/src/services/CoreService.ts +610 -80
- 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/CheckPermissionRequest.d.ts +0 -22
- 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/RolePermissions.d.ts +0 -17
- 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/UserRole.d.ts +0 -25
- package/dist/types/models/WebexConfig.d.ts +0 -10
- package/dist/types/models/WebexWebhook.d.ts +0 -4
- package/dist/types/models/WhatAppWebHook.d.ts +0 -3
- package/dist/types/models/WhatsappConfig.d.ts +0 -11
- package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
- package/dist/types/services/AiBotService.d.ts +0 -486
- package/dist/types/services/AiFinetuningService.d.ts +0 -162
- package/src/models/Bot.ts +0 -20
- package/src/models/BotCommand.ts +0 -11
- package/src/models/BotCreate.ts +0 -17
- package/src/models/CheckPermissionRequest.ts +0 -27
- 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/PatchedBotCommand.ts +0 -11
- package/src/models/PatchedBotCreate.ts +0 -17
- package/src/models/PatchedDataSet.ts +0 -26
- package/src/models/PatchedDiscordConfig.ts +0 -12
- package/src/models/PatchedDiscordUserConfig.ts +0 -15
- package/src/models/PatchedSlackConfig.ts +0 -13
- package/src/models/PatchedSlackUserConfig.ts +0 -22
- package/src/models/PatchedTeamsConfig.ts +0 -12
- package/src/models/PatchedTrainingCreate.ts +0 -36
- package/src/models/PatchedWebexConfig.ts +0 -15
- package/src/models/PatchedWhatsappConfig.ts +0 -16
- package/src/models/PatchedWhatsappUserConfig.ts +0 -15
- package/src/models/Provider05cEnum.ts +0 -18
- package/src/models/Provider63aEnum.ts +0 -10
- package/src/models/RolePermissions.ts +0 -22
- 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/UserRole.ts +0 -30
- 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/services/AiBotService.ts +0 -1174
- package/src/services/AiFinetuningService.ts +0 -402
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.48.0-ai',
|
|
112
112
|
WITH_CREDENTIALS: false,
|
|
113
113
|
CREDENTIALS: 'include',
|
|
114
114
|
TOKEN: undefined,
|
|
@@ -229,24 +229,6 @@ var CourseCreationTaskStatusEnum;
|
|
|
229
229
|
CourseCreationTaskStatusEnum["IN_PROGRESS"] = "In Progress";
|
|
230
230
|
})(CourseCreationTaskStatusEnum || (CourseCreationTaskStatusEnum = {}));
|
|
231
231
|
|
|
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
232
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
251
233
|
/* istanbul ignore file */
|
|
252
234
|
/* tslint:disable */
|
|
@@ -529,37 +511,21 @@ var PromptVisibilityEnum;
|
|
|
529
511
|
PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
|
|
530
512
|
})(PromptVisibilityEnum || (PromptVisibilityEnum = {}));
|
|
531
513
|
|
|
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
514
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
553
515
|
/* istanbul ignore file */
|
|
554
516
|
/* tslint:disable */
|
|
555
517
|
/* eslint-disable */
|
|
556
518
|
/**
|
|
557
519
|
* * `openai` - Openai
|
|
520
|
+
* * `google` - Google
|
|
521
|
+
* * `elevenlabs` - Elevenlabs
|
|
558
522
|
*/
|
|
559
|
-
var
|
|
560
|
-
(function (
|
|
561
|
-
|
|
562
|
-
|
|
523
|
+
var ProviderEnum;
|
|
524
|
+
(function (ProviderEnum) {
|
|
525
|
+
ProviderEnum["OPENAI"] = "openai";
|
|
526
|
+
ProviderEnum["GOOGLE"] = "google";
|
|
527
|
+
ProviderEnum["ELEVENLABS"] = "elevenlabs";
|
|
528
|
+
})(ProviderEnum || (ProviderEnum = {}));
|
|
563
529
|
|
|
564
530
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
565
531
|
/* istanbul ignore file */
|
|
@@ -729,22 +695,6 @@ var TypeC42Enum;
|
|
|
729
695
|
TypeC42Enum["ASSESSMENT"] = "assessment";
|
|
730
696
|
})(TypeC42Enum || (TypeC42Enum = {}));
|
|
731
697
|
|
|
732
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
733
|
-
/* istanbul ignore file */
|
|
734
|
-
/* tslint:disable */
|
|
735
|
-
/* eslint-disable */
|
|
736
|
-
/**
|
|
737
|
-
* * `openai` - Openai
|
|
738
|
-
* * `google` - Google
|
|
739
|
-
* * `elevenlabs` - Elevenlabs
|
|
740
|
-
*/
|
|
741
|
-
var VoiceProviderEnum;
|
|
742
|
-
(function (VoiceProviderEnum) {
|
|
743
|
-
VoiceProviderEnum["OPENAI"] = "openai";
|
|
744
|
-
VoiceProviderEnum["GOOGLE"] = "google";
|
|
745
|
-
VoiceProviderEnum["ELEVENLABS"] = "elevenlabs";
|
|
746
|
-
})(VoiceProviderEnum || (VoiceProviderEnum = {}));
|
|
747
|
-
|
|
748
698
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
749
699
|
/* istanbul ignore file */
|
|
750
700
|
/* tslint:disable */
|
|
@@ -5788,1290 +5738,6 @@ class AiAnalyticsService {
|
|
|
5788
5738
|
}
|
|
5789
5739
|
}
|
|
5790
5740
|
|
|
5791
|
-
class AiBotService {
|
|
5792
|
-
/**
|
|
5793
|
-
* Create modify and update bot information for a specific tenant.
|
|
5794
|
-
* @param org
|
|
5795
|
-
* @returns Bot
|
|
5796
|
-
* @throws ApiError
|
|
5797
|
-
*/
|
|
5798
|
-
static aiBotV1BotsBotList(org) {
|
|
5799
|
-
return request(OpenAPI, {
|
|
5800
|
-
method: 'GET',
|
|
5801
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/',
|
|
5802
|
-
path: {
|
|
5803
|
-
'org': org
|
|
5804
|
-
}
|
|
5805
|
-
});
|
|
5806
|
-
}
|
|
5807
|
-
/**
|
|
5808
|
-
* Create modify and update bot information for a specific tenant.
|
|
5809
|
-
* @param org
|
|
5810
|
-
* @param requestBody
|
|
5811
|
-
* @returns BotCreate
|
|
5812
|
-
* @throws ApiError
|
|
5813
|
-
*/
|
|
5814
|
-
static aiBotV1BotsBotCreate(org, requestBody) {
|
|
5815
|
-
return request(OpenAPI, {
|
|
5816
|
-
method: 'POST',
|
|
5817
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/',
|
|
5818
|
-
path: {
|
|
5819
|
-
'org': org
|
|
5820
|
-
},
|
|
5821
|
-
body: requestBody,
|
|
5822
|
-
mediaType: 'application/json'
|
|
5823
|
-
});
|
|
5824
|
-
}
|
|
5825
|
-
/**
|
|
5826
|
-
* Create slash commands for a specific bot
|
|
5827
|
-
* eg. /iblai-baseline
|
|
5828
|
-
* @param org
|
|
5829
|
-
* @returns BotCommand
|
|
5830
|
-
* @throws ApiError
|
|
5831
|
-
*/
|
|
5832
|
-
static aiBotV1BotsBotCommandsList(org) {
|
|
5833
|
-
return request(OpenAPI, {
|
|
5834
|
-
method: 'GET',
|
|
5835
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
|
|
5836
|
-
path: {
|
|
5837
|
-
'org': org
|
|
5838
|
-
}
|
|
5839
|
-
});
|
|
5840
|
-
}
|
|
5841
|
-
/**
|
|
5842
|
-
* Create slash commands for a specific bot
|
|
5843
|
-
* eg. /iblai-baseline
|
|
5844
|
-
* @param org
|
|
5845
|
-
* @param requestBody
|
|
5846
|
-
* @returns BotCommand
|
|
5847
|
-
* @throws ApiError
|
|
5848
|
-
*/
|
|
5849
|
-
static aiBotV1BotsBotCommandsCreate(org, requestBody) {
|
|
5850
|
-
return request(OpenAPI, {
|
|
5851
|
-
method: 'POST',
|
|
5852
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
|
|
5853
|
-
path: {
|
|
5854
|
-
'org': org
|
|
5855
|
-
},
|
|
5856
|
-
body: requestBody,
|
|
5857
|
-
mediaType: 'application/json'
|
|
5858
|
-
});
|
|
5859
|
-
}
|
|
5860
|
-
/**
|
|
5861
|
-
* Create slash commands for a specific bot
|
|
5862
|
-
* eg. /iblai-baseline
|
|
5863
|
-
* @param id A unique integer value identifying this bot command.
|
|
5864
|
-
* @param org
|
|
5865
|
-
* @returns BotCommand
|
|
5866
|
-
* @throws ApiError
|
|
5867
|
-
*/
|
|
5868
|
-
static aiBotV1BotsBotCommandsRetrieve(id, org) {
|
|
5869
|
-
return request(OpenAPI, {
|
|
5870
|
-
method: 'GET',
|
|
5871
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
|
|
5872
|
-
path: {
|
|
5873
|
-
'id': id,
|
|
5874
|
-
'org': org
|
|
5875
|
-
}
|
|
5876
|
-
});
|
|
5877
|
-
}
|
|
5878
|
-
/**
|
|
5879
|
-
* Create slash commands for a specific bot
|
|
5880
|
-
* eg. /iblai-baseline
|
|
5881
|
-
* @param id A unique integer value identifying this bot command.
|
|
5882
|
-
* @param org
|
|
5883
|
-
* @param requestBody
|
|
5884
|
-
* @returns BotCommand
|
|
5885
|
-
* @throws ApiError
|
|
5886
|
-
*/
|
|
5887
|
-
static aiBotV1BotsBotCommandsUpdate(id, org, requestBody) {
|
|
5888
|
-
return request(OpenAPI, {
|
|
5889
|
-
method: 'PUT',
|
|
5890
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
|
|
5891
|
-
path: {
|
|
5892
|
-
'id': id,
|
|
5893
|
-
'org': org
|
|
5894
|
-
},
|
|
5895
|
-
body: requestBody,
|
|
5896
|
-
mediaType: 'application/json'
|
|
5897
|
-
});
|
|
5898
|
-
}
|
|
5899
|
-
/**
|
|
5900
|
-
* Create slash commands for a specific bot
|
|
5901
|
-
* eg. /iblai-baseline
|
|
5902
|
-
* @param id A unique integer value identifying this bot command.
|
|
5903
|
-
* @param org
|
|
5904
|
-
* @param requestBody
|
|
5905
|
-
* @returns BotCommand
|
|
5906
|
-
* @throws ApiError
|
|
5907
|
-
*/
|
|
5908
|
-
static aiBotV1BotsBotCommandsPartialUpdate(id, org, requestBody) {
|
|
5909
|
-
return request(OpenAPI, {
|
|
5910
|
-
method: 'PATCH',
|
|
5911
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
|
|
5912
|
-
path: {
|
|
5913
|
-
'id': id,
|
|
5914
|
-
'org': org
|
|
5915
|
-
},
|
|
5916
|
-
body: requestBody,
|
|
5917
|
-
mediaType: 'application/json'
|
|
5918
|
-
});
|
|
5919
|
-
}
|
|
5920
|
-
/**
|
|
5921
|
-
* Create slash commands for a specific bot
|
|
5922
|
-
* eg. /iblai-baseline
|
|
5923
|
-
* @param id A unique integer value identifying this bot command.
|
|
5924
|
-
* @param org
|
|
5925
|
-
* @returns void
|
|
5926
|
-
* @throws ApiError
|
|
5927
|
-
*/
|
|
5928
|
-
static aiBotV1BotsBotCommandsDestroy(id, org) {
|
|
5929
|
-
return request(OpenAPI, {
|
|
5930
|
-
method: 'DELETE',
|
|
5931
|
-
url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
|
|
5932
|
-
path: {
|
|
5933
|
-
'id': id,
|
|
5934
|
-
'org': org
|
|
5935
|
-
}
|
|
5936
|
-
});
|
|
5937
|
-
}
|
|
5938
|
-
/**
|
|
5939
|
-
* Create modify and update bot information for a specific tenant.
|
|
5940
|
-
* @param id A unique integer value identifying this bot.
|
|
5941
|
-
* @param org
|
|
5942
|
-
* @returns Bot
|
|
5943
|
-
* @throws ApiError
|
|
5944
|
-
*/
|
|
5945
|
-
static aiBotV1BotsBotRetrieve(id, org) {
|
|
5946
|
-
return request(OpenAPI, {
|
|
5947
|
-
method: 'GET',
|
|
5948
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
|
|
5949
|
-
path: {
|
|
5950
|
-
'id': id,
|
|
5951
|
-
'org': org
|
|
5952
|
-
}
|
|
5953
|
-
});
|
|
5954
|
-
}
|
|
5955
|
-
/**
|
|
5956
|
-
* Create modify and update bot information for a specific tenant.
|
|
5957
|
-
* @param id A unique integer value identifying this bot.
|
|
5958
|
-
* @param org
|
|
5959
|
-
* @param requestBody
|
|
5960
|
-
* @returns BotCreate
|
|
5961
|
-
* @throws ApiError
|
|
5962
|
-
*/
|
|
5963
|
-
static aiBotV1BotsBotUpdate(id, org, requestBody) {
|
|
5964
|
-
return request(OpenAPI, {
|
|
5965
|
-
method: 'PUT',
|
|
5966
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
|
|
5967
|
-
path: {
|
|
5968
|
-
'id': id,
|
|
5969
|
-
'org': org
|
|
5970
|
-
},
|
|
5971
|
-
body: requestBody,
|
|
5972
|
-
mediaType: 'application/json'
|
|
5973
|
-
});
|
|
5974
|
-
}
|
|
5975
|
-
/**
|
|
5976
|
-
* Create modify and update bot information for a specific tenant.
|
|
5977
|
-
* @param id A unique integer value identifying this bot.
|
|
5978
|
-
* @param org
|
|
5979
|
-
* @param requestBody
|
|
5980
|
-
* @returns BotCreate
|
|
5981
|
-
* @throws ApiError
|
|
5982
|
-
*/
|
|
5983
|
-
static aiBotV1BotsBotPartialUpdate(id, org, requestBody) {
|
|
5984
|
-
return request(OpenAPI, {
|
|
5985
|
-
method: 'PATCH',
|
|
5986
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
|
|
5987
|
-
path: {
|
|
5988
|
-
'id': id,
|
|
5989
|
-
'org': org
|
|
5990
|
-
},
|
|
5991
|
-
body: requestBody,
|
|
5992
|
-
mediaType: 'application/json'
|
|
5993
|
-
});
|
|
5994
|
-
}
|
|
5995
|
-
/**
|
|
5996
|
-
* Create modify and update bot information for a specific tenant.
|
|
5997
|
-
* @param id A unique integer value identifying this bot.
|
|
5998
|
-
* @param org
|
|
5999
|
-
* @returns void
|
|
6000
|
-
* @throws ApiError
|
|
6001
|
-
*/
|
|
6002
|
-
static aiBotV1BotsBotDestroy(id, org) {
|
|
6003
|
-
return request(OpenAPI, {
|
|
6004
|
-
method: 'DELETE',
|
|
6005
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
|
|
6006
|
-
path: {
|
|
6007
|
-
'id': id,
|
|
6008
|
-
'org': org
|
|
6009
|
-
}
|
|
6010
|
-
});
|
|
6011
|
-
}
|
|
6012
|
-
/**
|
|
6013
|
-
* Create modify and update bot information for a specific tenant.
|
|
6014
|
-
* @param id A unique integer value identifying this bot.
|
|
6015
|
-
* @param org
|
|
6016
|
-
* @returns DiscordConfig
|
|
6017
|
-
* @throws ApiError
|
|
6018
|
-
*/
|
|
6019
|
-
static aiBotV1BotsBotConfigDiscordRetrieve(id, org) {
|
|
6020
|
-
return request(OpenAPI, {
|
|
6021
|
-
method: 'GET',
|
|
6022
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
|
|
6023
|
-
path: {
|
|
6024
|
-
'id': id,
|
|
6025
|
-
'org': org
|
|
6026
|
-
}
|
|
6027
|
-
});
|
|
6028
|
-
}
|
|
6029
|
-
/**
|
|
6030
|
-
* Create modify and update bot information for a specific tenant.
|
|
6031
|
-
* @param id A unique integer value identifying this bot.
|
|
6032
|
-
* @param org
|
|
6033
|
-
* @param requestBody
|
|
6034
|
-
* @returns DiscordConfig
|
|
6035
|
-
* @throws ApiError
|
|
6036
|
-
*/
|
|
6037
|
-
static aiBotV1BotsBotConfigDiscordPartialUpdate(id, org, requestBody) {
|
|
6038
|
-
return request(OpenAPI, {
|
|
6039
|
-
method: 'PATCH',
|
|
6040
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
|
|
6041
|
-
path: {
|
|
6042
|
-
'id': id,
|
|
6043
|
-
'org': org
|
|
6044
|
-
},
|
|
6045
|
-
body: requestBody,
|
|
6046
|
-
mediaType: 'application/json'
|
|
6047
|
-
});
|
|
6048
|
-
}
|
|
6049
|
-
/**
|
|
6050
|
-
* Create modify and update bot information for a specific tenant.
|
|
6051
|
-
* @param id A unique integer value identifying this bot.
|
|
6052
|
-
* @param org
|
|
6053
|
-
* @returns SlackConfig
|
|
6054
|
-
* @throws ApiError
|
|
6055
|
-
*/
|
|
6056
|
-
static aiBotV1BotsBotConfigSlackRetrieve(id, org) {
|
|
6057
|
-
return request(OpenAPI, {
|
|
6058
|
-
method: 'GET',
|
|
6059
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
|
|
6060
|
-
path: {
|
|
6061
|
-
'id': id,
|
|
6062
|
-
'org': org
|
|
6063
|
-
}
|
|
6064
|
-
});
|
|
6065
|
-
}
|
|
6066
|
-
/**
|
|
6067
|
-
* Create modify and update bot information for a specific tenant.
|
|
6068
|
-
* @param id A unique integer value identifying this bot.
|
|
6069
|
-
* @param org
|
|
6070
|
-
* @param requestBody
|
|
6071
|
-
* @returns SlackConfig
|
|
6072
|
-
* @throws ApiError
|
|
6073
|
-
*/
|
|
6074
|
-
static aiBotV1BotsBotConfigSlackUpdateCreate(id, org, requestBody) {
|
|
6075
|
-
return request(OpenAPI, {
|
|
6076
|
-
method: 'POST',
|
|
6077
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
|
|
6078
|
-
path: {
|
|
6079
|
-
'id': id,
|
|
6080
|
-
'org': org
|
|
6081
|
-
},
|
|
6082
|
-
body: requestBody,
|
|
6083
|
-
mediaType: 'application/json'
|
|
6084
|
-
});
|
|
6085
|
-
}
|
|
6086
|
-
/**
|
|
6087
|
-
* Create modify and update bot information for a specific tenant.
|
|
6088
|
-
* @param id A unique integer value identifying this bot.
|
|
6089
|
-
* @param org
|
|
6090
|
-
* @param requestBody
|
|
6091
|
-
* @returns SlackConfig
|
|
6092
|
-
* @throws ApiError
|
|
6093
|
-
*/
|
|
6094
|
-
static aiBotV1BotsBotConfigSlackUpdateUpdate(id, org, requestBody) {
|
|
6095
|
-
return request(OpenAPI, {
|
|
6096
|
-
method: 'PUT',
|
|
6097
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
|
|
6098
|
-
path: {
|
|
6099
|
-
'id': id,
|
|
6100
|
-
'org': org
|
|
6101
|
-
},
|
|
6102
|
-
body: requestBody,
|
|
6103
|
-
mediaType: 'application/json'
|
|
6104
|
-
});
|
|
6105
|
-
}
|
|
6106
|
-
/**
|
|
6107
|
-
* Create modify and update bot information for a specific tenant.
|
|
6108
|
-
* @param id A unique integer value identifying this bot.
|
|
6109
|
-
* @param org
|
|
6110
|
-
* @param requestBody
|
|
6111
|
-
* @returns SlackConfig
|
|
6112
|
-
* @throws ApiError
|
|
6113
|
-
*/
|
|
6114
|
-
static aiBotV1BotsBotConfigSlackUpdatePartialUpdate(id, org, requestBody) {
|
|
6115
|
-
return request(OpenAPI, {
|
|
6116
|
-
method: 'PATCH',
|
|
6117
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
|
|
6118
|
-
path: {
|
|
6119
|
-
'id': id,
|
|
6120
|
-
'org': org
|
|
6121
|
-
},
|
|
6122
|
-
body: requestBody,
|
|
6123
|
-
mediaType: 'application/json'
|
|
6124
|
-
});
|
|
6125
|
-
}
|
|
6126
|
-
/**
|
|
6127
|
-
* Create modify and update bot information for a specific tenant.
|
|
6128
|
-
* @param id A unique integer value identifying this bot.
|
|
6129
|
-
* @param org
|
|
6130
|
-
* @returns TeamsConfig
|
|
6131
|
-
* @throws ApiError
|
|
6132
|
-
*/
|
|
6133
|
-
static aiBotV1BotsBotConfigTeamsRetrieve(id, org) {
|
|
6134
|
-
return request(OpenAPI, {
|
|
6135
|
-
method: 'GET',
|
|
6136
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
|
|
6137
|
-
path: {
|
|
6138
|
-
'id': id,
|
|
6139
|
-
'org': org
|
|
6140
|
-
}
|
|
6141
|
-
});
|
|
6142
|
-
}
|
|
6143
|
-
/**
|
|
6144
|
-
* Create modify and update bot information for a specific tenant.
|
|
6145
|
-
* @param id A unique integer value identifying this bot.
|
|
6146
|
-
* @param org
|
|
6147
|
-
* @param requestBody
|
|
6148
|
-
* @returns TeamsConfig
|
|
6149
|
-
* @throws ApiError
|
|
6150
|
-
*/
|
|
6151
|
-
static aiBotV1BotsBotConfigTeamsUpdateCreate(id, org, requestBody) {
|
|
6152
|
-
return request(OpenAPI, {
|
|
6153
|
-
method: 'POST',
|
|
6154
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
|
|
6155
|
-
path: {
|
|
6156
|
-
'id': id,
|
|
6157
|
-
'org': org
|
|
6158
|
-
},
|
|
6159
|
-
body: requestBody,
|
|
6160
|
-
mediaType: 'application/json'
|
|
6161
|
-
});
|
|
6162
|
-
}
|
|
6163
|
-
/**
|
|
6164
|
-
* Create modify and update bot information for a specific tenant.
|
|
6165
|
-
* @param id A unique integer value identifying this bot.
|
|
6166
|
-
* @param org
|
|
6167
|
-
* @param requestBody
|
|
6168
|
-
* @returns TeamsConfig
|
|
6169
|
-
* @throws ApiError
|
|
6170
|
-
*/
|
|
6171
|
-
static aiBotV1BotsBotConfigTeamsUpdateUpdate(id, org, requestBody) {
|
|
6172
|
-
return request(OpenAPI, {
|
|
6173
|
-
method: 'PUT',
|
|
6174
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
|
|
6175
|
-
path: {
|
|
6176
|
-
'id': id,
|
|
6177
|
-
'org': org
|
|
6178
|
-
},
|
|
6179
|
-
body: requestBody,
|
|
6180
|
-
mediaType: 'application/json'
|
|
6181
|
-
});
|
|
6182
|
-
}
|
|
6183
|
-
/**
|
|
6184
|
-
* Create modify and update bot information for a specific tenant.
|
|
6185
|
-
* @param id A unique integer value identifying this bot.
|
|
6186
|
-
* @param org
|
|
6187
|
-
* @param requestBody
|
|
6188
|
-
* @returns TeamsConfig
|
|
6189
|
-
* @throws ApiError
|
|
6190
|
-
*/
|
|
6191
|
-
static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate(id, org, requestBody) {
|
|
6192
|
-
return request(OpenAPI, {
|
|
6193
|
-
method: 'PATCH',
|
|
6194
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
|
|
6195
|
-
path: {
|
|
6196
|
-
'id': id,
|
|
6197
|
-
'org': org
|
|
6198
|
-
},
|
|
6199
|
-
body: requestBody,
|
|
6200
|
-
mediaType: 'application/json'
|
|
6201
|
-
});
|
|
6202
|
-
}
|
|
6203
|
-
/**
|
|
6204
|
-
* Create modify and update bot information for a specific tenant.
|
|
6205
|
-
* @param id A unique integer value identifying this bot.
|
|
6206
|
-
* @param org
|
|
6207
|
-
* @returns WebexConfig
|
|
6208
|
-
* @throws ApiError
|
|
6209
|
-
*/
|
|
6210
|
-
static aiBotV1BotsBotConfigWebexRetrieve(id, org) {
|
|
6211
|
-
return request(OpenAPI, {
|
|
6212
|
-
method: 'GET',
|
|
6213
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
|
|
6214
|
-
path: {
|
|
6215
|
-
'id': id,
|
|
6216
|
-
'org': org
|
|
6217
|
-
}
|
|
6218
|
-
});
|
|
6219
|
-
}
|
|
6220
|
-
/**
|
|
6221
|
-
* Create modify and update bot information for a specific tenant.
|
|
6222
|
-
* @param id A unique integer value identifying this bot.
|
|
6223
|
-
* @param org
|
|
6224
|
-
* @param requestBody
|
|
6225
|
-
* @returns WebexConfig
|
|
6226
|
-
* @throws ApiError
|
|
6227
|
-
*/
|
|
6228
|
-
static aiBotV1BotsBotConfigWebexPartialUpdate(id, org, requestBody) {
|
|
6229
|
-
return request(OpenAPI, {
|
|
6230
|
-
method: 'PATCH',
|
|
6231
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
|
|
6232
|
-
path: {
|
|
6233
|
-
'id': id,
|
|
6234
|
-
'org': org
|
|
6235
|
-
},
|
|
6236
|
-
body: requestBody,
|
|
6237
|
-
mediaType: 'application/json'
|
|
6238
|
-
});
|
|
6239
|
-
}
|
|
6240
|
-
/**
|
|
6241
|
-
* Create modify and update bot information for a specific tenant.
|
|
6242
|
-
* @param id A unique integer value identifying this bot.
|
|
6243
|
-
* @param org
|
|
6244
|
-
* @returns WhatsappConfig
|
|
6245
|
-
* @throws ApiError
|
|
6246
|
-
*/
|
|
6247
|
-
static aiBotV1BotsBotConfigWhatsappRetrieve(id, org) {
|
|
6248
|
-
return request(OpenAPI, {
|
|
6249
|
-
method: 'GET',
|
|
6250
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
|
|
6251
|
-
path: {
|
|
6252
|
-
'id': id,
|
|
6253
|
-
'org': org
|
|
6254
|
-
}
|
|
6255
|
-
});
|
|
6256
|
-
}
|
|
6257
|
-
/**
|
|
6258
|
-
* Create modify and update bot information for a specific tenant.
|
|
6259
|
-
* @param id A unique integer value identifying this bot.
|
|
6260
|
-
* @param org
|
|
6261
|
-
* @param requestBody
|
|
6262
|
-
* @returns WhatsappConfig
|
|
6263
|
-
* @throws ApiError
|
|
6264
|
-
*/
|
|
6265
|
-
static aiBotV1BotsBotWhatsappConfigUpdate(id, org, requestBody) {
|
|
6266
|
-
return request(OpenAPI, {
|
|
6267
|
-
method: 'PUT',
|
|
6268
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
|
|
6269
|
-
path: {
|
|
6270
|
-
'id': id,
|
|
6271
|
-
'org': org
|
|
6272
|
-
},
|
|
6273
|
-
body: requestBody,
|
|
6274
|
-
mediaType: 'application/json'
|
|
6275
|
-
});
|
|
6276
|
-
}
|
|
6277
|
-
/**
|
|
6278
|
-
* Create modify and update bot information for a specific tenant.
|
|
6279
|
-
* @param id A unique integer value identifying this bot.
|
|
6280
|
-
* @param org
|
|
6281
|
-
* @param requestBody
|
|
6282
|
-
* @returns WhatsappConfig
|
|
6283
|
-
* @throws ApiError
|
|
6284
|
-
*/
|
|
6285
|
-
static aiBotV1BotsBotWhatsappConfigPartialUpdate(id, org, requestBody) {
|
|
6286
|
-
return request(OpenAPI, {
|
|
6287
|
-
method: 'PATCH',
|
|
6288
|
-
url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
|
|
6289
|
-
path: {
|
|
6290
|
-
'id': id,
|
|
6291
|
-
'org': org
|
|
6292
|
-
},
|
|
6293
|
-
body: requestBody,
|
|
6294
|
-
mediaType: 'application/json'
|
|
6295
|
-
});
|
|
6296
|
-
}
|
|
6297
|
-
/**
|
|
6298
|
-
* Setup discord user id linkage with discord bots
|
|
6299
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6300
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6301
|
-
* @param org
|
|
6302
|
-
* @returns DiscordUserConfig
|
|
6303
|
-
* @throws ApiError
|
|
6304
|
-
*/
|
|
6305
|
-
static aiBotV1BotsDiscordUserConfigList(org) {
|
|
6306
|
-
return request(OpenAPI, {
|
|
6307
|
-
method: 'GET',
|
|
6308
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
|
|
6309
|
-
path: {
|
|
6310
|
-
'org': org
|
|
6311
|
-
}
|
|
6312
|
-
});
|
|
6313
|
-
}
|
|
6314
|
-
/**
|
|
6315
|
-
* Setup discord user id linkage with discord bots
|
|
6316
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6317
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6318
|
-
* @param org
|
|
6319
|
-
* @param requestBody
|
|
6320
|
-
* @returns DiscordUserConfig
|
|
6321
|
-
* @throws ApiError
|
|
6322
|
-
*/
|
|
6323
|
-
static aiBotV1BotsDiscordUserConfigCreate(org, requestBody) {
|
|
6324
|
-
return request(OpenAPI, {
|
|
6325
|
-
method: 'POST',
|
|
6326
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
|
|
6327
|
-
path: {
|
|
6328
|
-
'org': org
|
|
6329
|
-
},
|
|
6330
|
-
body: requestBody,
|
|
6331
|
-
mediaType: 'application/json'
|
|
6332
|
-
});
|
|
6333
|
-
}
|
|
6334
|
-
/**
|
|
6335
|
-
* Setup discord user id linkage with discord bots
|
|
6336
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6337
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6338
|
-
* @param id A unique integer value identifying this discord user config.
|
|
6339
|
-
* @param org
|
|
6340
|
-
* @returns DiscordUserConfig
|
|
6341
|
-
* @throws ApiError
|
|
6342
|
-
*/
|
|
6343
|
-
static aiBotV1BotsDiscordUserConfigRetrieve(id, org) {
|
|
6344
|
-
return request(OpenAPI, {
|
|
6345
|
-
method: 'GET',
|
|
6346
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
6347
|
-
path: {
|
|
6348
|
-
'id': id,
|
|
6349
|
-
'org': org
|
|
6350
|
-
}
|
|
6351
|
-
});
|
|
6352
|
-
}
|
|
6353
|
-
/**
|
|
6354
|
-
* Setup discord user id linkage with discord bots
|
|
6355
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6356
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6357
|
-
* @param id A unique integer value identifying this discord user config.
|
|
6358
|
-
* @param org
|
|
6359
|
-
* @param requestBody
|
|
6360
|
-
* @returns DiscordUserConfig
|
|
6361
|
-
* @throws ApiError
|
|
6362
|
-
*/
|
|
6363
|
-
static aiBotV1BotsDiscordUserConfigUpdate(id, org, requestBody) {
|
|
6364
|
-
return request(OpenAPI, {
|
|
6365
|
-
method: 'PUT',
|
|
6366
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
6367
|
-
path: {
|
|
6368
|
-
'id': id,
|
|
6369
|
-
'org': org
|
|
6370
|
-
},
|
|
6371
|
-
body: requestBody,
|
|
6372
|
-
mediaType: 'application/json'
|
|
6373
|
-
});
|
|
6374
|
-
}
|
|
6375
|
-
/**
|
|
6376
|
-
* Setup discord user id linkage with discord bots
|
|
6377
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6378
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6379
|
-
* @param id A unique integer value identifying this discord user config.
|
|
6380
|
-
* @param org
|
|
6381
|
-
* @param requestBody
|
|
6382
|
-
* @returns DiscordUserConfig
|
|
6383
|
-
* @throws ApiError
|
|
6384
|
-
*/
|
|
6385
|
-
static aiBotV1BotsDiscordUserConfigPartialUpdate(id, org, requestBody) {
|
|
6386
|
-
return request(OpenAPI, {
|
|
6387
|
-
method: 'PATCH',
|
|
6388
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
6389
|
-
path: {
|
|
6390
|
-
'id': id,
|
|
6391
|
-
'org': org
|
|
6392
|
-
},
|
|
6393
|
-
body: requestBody,
|
|
6394
|
-
mediaType: 'application/json'
|
|
6395
|
-
});
|
|
6396
|
-
}
|
|
6397
|
-
/**
|
|
6398
|
-
* Setup discord user id linkage with discord bots
|
|
6399
|
-
* this will be used to authenticate the user when interracting with discord bots.
|
|
6400
|
-
* the user id can be copied from the discord app after tapping on the user profile.
|
|
6401
|
-
* @param id A unique integer value identifying this discord user config.
|
|
6402
|
-
* @param org
|
|
6403
|
-
* @returns void
|
|
6404
|
-
* @throws ApiError
|
|
6405
|
-
*/
|
|
6406
|
-
static aiBotV1BotsDiscordUserConfigDestroy(id, org) {
|
|
6407
|
-
return request(OpenAPI, {
|
|
6408
|
-
method: 'DELETE',
|
|
6409
|
-
url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
|
|
6410
|
-
path: {
|
|
6411
|
-
'id': id,
|
|
6412
|
-
'org': org
|
|
6413
|
-
}
|
|
6414
|
-
});
|
|
6415
|
-
}
|
|
6416
|
-
/**
|
|
6417
|
-
* Setup slack username and domain linkage with slack bots
|
|
6418
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6419
|
-
* @param org
|
|
6420
|
-
* @returns SlackUserConfig
|
|
6421
|
-
* @throws ApiError
|
|
6422
|
-
*/
|
|
6423
|
-
static aiBotV1BotsSlackUserConfigList(org) {
|
|
6424
|
-
return request(OpenAPI, {
|
|
6425
|
-
method: 'GET',
|
|
6426
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
|
|
6427
|
-
path: {
|
|
6428
|
-
'org': org
|
|
6429
|
-
}
|
|
6430
|
-
});
|
|
6431
|
-
}
|
|
6432
|
-
/**
|
|
6433
|
-
* Setup slack username and domain linkage with slack bots
|
|
6434
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6435
|
-
* @param org
|
|
6436
|
-
* @param requestBody
|
|
6437
|
-
* @returns SlackUserConfig
|
|
6438
|
-
* @throws ApiError
|
|
6439
|
-
*/
|
|
6440
|
-
static aiBotV1BotsSlackUserConfigCreate(org, requestBody) {
|
|
6441
|
-
return request(OpenAPI, {
|
|
6442
|
-
method: 'POST',
|
|
6443
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
|
|
6444
|
-
path: {
|
|
6445
|
-
'org': org
|
|
6446
|
-
},
|
|
6447
|
-
body: requestBody,
|
|
6448
|
-
mediaType: 'application/json'
|
|
6449
|
-
});
|
|
6450
|
-
}
|
|
6451
|
-
/**
|
|
6452
|
-
* Setup slack username and domain linkage with slack bots
|
|
6453
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6454
|
-
* @param id A unique integer value identifying this slack user config.
|
|
6455
|
-
* @param org
|
|
6456
|
-
* @returns SlackUserConfig
|
|
6457
|
-
* @throws ApiError
|
|
6458
|
-
*/
|
|
6459
|
-
static aiBotV1BotsSlackUserConfigRetrieve(id, org) {
|
|
6460
|
-
return request(OpenAPI, {
|
|
6461
|
-
method: 'GET',
|
|
6462
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
6463
|
-
path: {
|
|
6464
|
-
'id': id,
|
|
6465
|
-
'org': org
|
|
6466
|
-
}
|
|
6467
|
-
});
|
|
6468
|
-
}
|
|
6469
|
-
/**
|
|
6470
|
-
* Setup slack username and domain linkage with slack bots
|
|
6471
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6472
|
-
* @param id A unique integer value identifying this slack user config.
|
|
6473
|
-
* @param org
|
|
6474
|
-
* @param requestBody
|
|
6475
|
-
* @returns SlackUserConfig
|
|
6476
|
-
* @throws ApiError
|
|
6477
|
-
*/
|
|
6478
|
-
static aiBotV1BotsSlackUserConfigUpdate(id, org, requestBody) {
|
|
6479
|
-
return request(OpenAPI, {
|
|
6480
|
-
method: 'PUT',
|
|
6481
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
6482
|
-
path: {
|
|
6483
|
-
'id': id,
|
|
6484
|
-
'org': org
|
|
6485
|
-
},
|
|
6486
|
-
body: requestBody,
|
|
6487
|
-
mediaType: 'application/json'
|
|
6488
|
-
});
|
|
6489
|
-
}
|
|
6490
|
-
/**
|
|
6491
|
-
* Setup slack username and domain linkage with slack bots
|
|
6492
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6493
|
-
* @param id A unique integer value identifying this slack user config.
|
|
6494
|
-
* @param org
|
|
6495
|
-
* @param requestBody
|
|
6496
|
-
* @returns SlackUserConfig
|
|
6497
|
-
* @throws ApiError
|
|
6498
|
-
*/
|
|
6499
|
-
static aiBotV1BotsSlackUserConfigPartialUpdate(id, org, requestBody) {
|
|
6500
|
-
return request(OpenAPI, {
|
|
6501
|
-
method: 'PATCH',
|
|
6502
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
6503
|
-
path: {
|
|
6504
|
-
'id': id,
|
|
6505
|
-
'org': org
|
|
6506
|
-
},
|
|
6507
|
-
body: requestBody,
|
|
6508
|
-
mediaType: 'application/json'
|
|
6509
|
-
});
|
|
6510
|
-
}
|
|
6511
|
-
/**
|
|
6512
|
-
* Setup slack username and domain linkage with slack bots
|
|
6513
|
-
* this will be used to authenticate the user when interracting with slack bots.
|
|
6514
|
-
* @param id A unique integer value identifying this slack user config.
|
|
6515
|
-
* @param org
|
|
6516
|
-
* @returns void
|
|
6517
|
-
* @throws ApiError
|
|
6518
|
-
*/
|
|
6519
|
-
static aiBotV1BotsSlackUserConfigDestroy(id, org) {
|
|
6520
|
-
return request(OpenAPI, {
|
|
6521
|
-
method: 'DELETE',
|
|
6522
|
-
url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
|
|
6523
|
-
path: {
|
|
6524
|
-
'id': id,
|
|
6525
|
-
'org': org
|
|
6526
|
-
}
|
|
6527
|
-
});
|
|
6528
|
-
}
|
|
6529
|
-
/**
|
|
6530
|
-
* Setup phone number linkage with whatsapp bots
|
|
6531
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6532
|
-
* @param org
|
|
6533
|
-
* @returns WhatsappUserConfig
|
|
6534
|
-
* @throws ApiError
|
|
6535
|
-
*/
|
|
6536
|
-
static aiBotV1BotsWhatsappUserConfigList(org) {
|
|
6537
|
-
return request(OpenAPI, {
|
|
6538
|
-
method: 'GET',
|
|
6539
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
|
|
6540
|
-
path: {
|
|
6541
|
-
'org': org
|
|
6542
|
-
}
|
|
6543
|
-
});
|
|
6544
|
-
}
|
|
6545
|
-
/**
|
|
6546
|
-
* Setup phone number linkage with whatsapp bots
|
|
6547
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6548
|
-
* @param org
|
|
6549
|
-
* @param requestBody
|
|
6550
|
-
* @returns WhatsappUserConfig
|
|
6551
|
-
* @throws ApiError
|
|
6552
|
-
*/
|
|
6553
|
-
static aiBotV1BotsWhatsappUserConfigCreate(org, requestBody) {
|
|
6554
|
-
return request(OpenAPI, {
|
|
6555
|
-
method: 'POST',
|
|
6556
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
|
|
6557
|
-
path: {
|
|
6558
|
-
'org': org
|
|
6559
|
-
},
|
|
6560
|
-
body: requestBody,
|
|
6561
|
-
mediaType: 'application/json'
|
|
6562
|
-
});
|
|
6563
|
-
}
|
|
6564
|
-
/**
|
|
6565
|
-
* Setup phone number linkage with whatsapp bots
|
|
6566
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6567
|
-
* @param id A unique integer value identifying this whatsapp user config.
|
|
6568
|
-
* @param org
|
|
6569
|
-
* @returns WhatsappUserConfig
|
|
6570
|
-
* @throws ApiError
|
|
6571
|
-
*/
|
|
6572
|
-
static aiBotV1BotsWhatsappUserConfigRetrieve(id, org) {
|
|
6573
|
-
return request(OpenAPI, {
|
|
6574
|
-
method: 'GET',
|
|
6575
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
6576
|
-
path: {
|
|
6577
|
-
'id': id,
|
|
6578
|
-
'org': org
|
|
6579
|
-
}
|
|
6580
|
-
});
|
|
6581
|
-
}
|
|
6582
|
-
/**
|
|
6583
|
-
* Setup phone number linkage with whatsapp bots
|
|
6584
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6585
|
-
* @param id A unique integer value identifying this whatsapp user config.
|
|
6586
|
-
* @param org
|
|
6587
|
-
* @param requestBody
|
|
6588
|
-
* @returns WhatsappUserConfig
|
|
6589
|
-
* @throws ApiError
|
|
6590
|
-
*/
|
|
6591
|
-
static aiBotV1BotsWhatsappUserConfigUpdate(id, org, requestBody) {
|
|
6592
|
-
return request(OpenAPI, {
|
|
6593
|
-
method: 'PUT',
|
|
6594
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
6595
|
-
path: {
|
|
6596
|
-
'id': id,
|
|
6597
|
-
'org': org
|
|
6598
|
-
},
|
|
6599
|
-
body: requestBody,
|
|
6600
|
-
mediaType: 'application/json'
|
|
6601
|
-
});
|
|
6602
|
-
}
|
|
6603
|
-
/**
|
|
6604
|
-
* Setup phone number linkage with whatsapp bots
|
|
6605
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6606
|
-
* @param id A unique integer value identifying this whatsapp user config.
|
|
6607
|
-
* @param org
|
|
6608
|
-
* @param requestBody
|
|
6609
|
-
* @returns WhatsappUserConfig
|
|
6610
|
-
* @throws ApiError
|
|
6611
|
-
*/
|
|
6612
|
-
static aiBotV1BotsWhatsappUserConfigPartialUpdate(id, org, requestBody) {
|
|
6613
|
-
return request(OpenAPI, {
|
|
6614
|
-
method: 'PATCH',
|
|
6615
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
6616
|
-
path: {
|
|
6617
|
-
'id': id,
|
|
6618
|
-
'org': org
|
|
6619
|
-
},
|
|
6620
|
-
body: requestBody,
|
|
6621
|
-
mediaType: 'application/json'
|
|
6622
|
-
});
|
|
6623
|
-
}
|
|
6624
|
-
/**
|
|
6625
|
-
* Setup phone number linkage with whatsapp bots
|
|
6626
|
-
* This phone number will be used to authenticate and allow access to whatsapp bots.
|
|
6627
|
-
* @param id A unique integer value identifying this whatsapp user config.
|
|
6628
|
-
* @param org
|
|
6629
|
-
* @returns void
|
|
6630
|
-
* @throws ApiError
|
|
6631
|
-
*/
|
|
6632
|
-
static aiBotV1BotsWhatsappUserConfigDestroy(id, org) {
|
|
6633
|
-
return request(OpenAPI, {
|
|
6634
|
-
method: 'DELETE',
|
|
6635
|
-
url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
|
|
6636
|
-
path: {
|
|
6637
|
-
'id': id,
|
|
6638
|
-
'org': org
|
|
6639
|
-
}
|
|
6640
|
-
});
|
|
6641
|
-
}
|
|
6642
|
-
/**
|
|
6643
|
-
* Webhook endpoint to receive and process discord messages.
|
|
6644
|
-
* @param name
|
|
6645
|
-
* @param org
|
|
6646
|
-
* @param requestBody
|
|
6647
|
-
* @returns DiscordWebhook
|
|
6648
|
-
* @throws ApiError
|
|
6649
|
-
*/
|
|
6650
|
-
static aiBotV1BotsWebhooksDiscordCreate(name, org, requestBody) {
|
|
6651
|
-
return request(OpenAPI, {
|
|
6652
|
-
method: 'POST',
|
|
6653
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
|
|
6654
|
-
path: {
|
|
6655
|
-
'name': name,
|
|
6656
|
-
'org': org
|
|
6657
|
-
},
|
|
6658
|
-
body: requestBody,
|
|
6659
|
-
mediaType: 'application/json'
|
|
6660
|
-
});
|
|
6661
|
-
}
|
|
6662
|
-
/**
|
|
6663
|
-
* @param name
|
|
6664
|
-
* @param org
|
|
6665
|
-
* @param requestBody
|
|
6666
|
-
* @returns SlackWebhook
|
|
6667
|
-
* @throws ApiError
|
|
6668
|
-
*/
|
|
6669
|
-
static aiBotV1BotsWebhooksSlackCreate(name, org, requestBody) {
|
|
6670
|
-
return request(OpenAPI, {
|
|
6671
|
-
method: 'POST',
|
|
6672
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
|
|
6673
|
-
path: {
|
|
6674
|
-
'name': name,
|
|
6675
|
-
'org': org
|
|
6676
|
-
},
|
|
6677
|
-
body: requestBody,
|
|
6678
|
-
mediaType: 'application/json'
|
|
6679
|
-
});
|
|
6680
|
-
}
|
|
6681
|
-
/**
|
|
6682
|
-
* @param name
|
|
6683
|
-
* @param org
|
|
6684
|
-
* @param requestBody
|
|
6685
|
-
* @returns TeamsWebhook
|
|
6686
|
-
* @throws ApiError
|
|
6687
|
-
*/
|
|
6688
|
-
static aiBotV1BotsWebhooksTeamsCreate(name, org, requestBody) {
|
|
6689
|
-
return request(OpenAPI, {
|
|
6690
|
-
method: 'POST',
|
|
6691
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
|
|
6692
|
-
path: {
|
|
6693
|
-
'name': name,
|
|
6694
|
-
'org': org
|
|
6695
|
-
},
|
|
6696
|
-
body: requestBody,
|
|
6697
|
-
mediaType: 'application/json'
|
|
6698
|
-
});
|
|
6699
|
-
}
|
|
6700
|
-
/**
|
|
6701
|
-
* Webhook endpoint to receive and process discord messages.
|
|
6702
|
-
* @param name
|
|
6703
|
-
* @param org
|
|
6704
|
-
* @param requestBody
|
|
6705
|
-
* @returns WebexWebhook
|
|
6706
|
-
* @throws ApiError
|
|
6707
|
-
*/
|
|
6708
|
-
static aiBotV1BotsWebhooksWebexCreate(name, org, requestBody) {
|
|
6709
|
-
return request(OpenAPI, {
|
|
6710
|
-
method: 'POST',
|
|
6711
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
|
|
6712
|
-
path: {
|
|
6713
|
-
'name': name,
|
|
6714
|
-
'org': org
|
|
6715
|
-
},
|
|
6716
|
-
body: requestBody,
|
|
6717
|
-
mediaType: 'application/json'
|
|
6718
|
-
});
|
|
6719
|
-
}
|
|
6720
|
-
/**
|
|
6721
|
-
* Respond to whatsapp's webhook challenge.
|
|
6722
|
-
* Parameters Required include the tenant key (org) and the name of the bot: (name)
|
|
6723
|
-
* @param name
|
|
6724
|
-
* @param org
|
|
6725
|
-
* @returns WhatAppWebHook
|
|
6726
|
-
* @throws ApiError
|
|
6727
|
-
*/
|
|
6728
|
-
static aiBotV1BotsWebhooksWhatsappRetrieve(name, org) {
|
|
6729
|
-
return request(OpenAPI, {
|
|
6730
|
-
method: 'GET',
|
|
6731
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
|
|
6732
|
-
path: {
|
|
6733
|
-
'name': name,
|
|
6734
|
-
'org': org
|
|
6735
|
-
}
|
|
6736
|
-
});
|
|
6737
|
-
}
|
|
6738
|
-
/**
|
|
6739
|
-
* Accept and process webhook events from whatsapp.
|
|
6740
|
-
* @param name
|
|
6741
|
-
* @param org
|
|
6742
|
-
* @param requestBody
|
|
6743
|
-
* @returns WhatAppWebHook
|
|
6744
|
-
* @throws ApiError
|
|
6745
|
-
*/
|
|
6746
|
-
static aiBotV1BotsWebhooksWhatsappCreate(name, org, requestBody) {
|
|
6747
|
-
return request(OpenAPI, {
|
|
6748
|
-
method: 'POST',
|
|
6749
|
-
url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
|
|
6750
|
-
path: {
|
|
6751
|
-
'name': name,
|
|
6752
|
-
'org': org
|
|
6753
|
-
},
|
|
6754
|
-
body: requestBody,
|
|
6755
|
-
mediaType: 'application/json'
|
|
6756
|
-
});
|
|
6757
|
-
}
|
|
6758
|
-
}
|
|
6759
|
-
|
|
6760
|
-
class AiFinetuningService {
|
|
6761
|
-
/**
|
|
6762
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6763
|
-
* @param org
|
|
6764
|
-
* @param username
|
|
6765
|
-
* @param dateCreated
|
|
6766
|
-
* @param numDataPoints
|
|
6767
|
-
* @param ordering Which field to use when ordering the results.
|
|
6768
|
-
* @param page A page number within the paginated result set.
|
|
6769
|
-
* @param pageSize Number of results to return per page.
|
|
6770
|
-
* @param retryAttempts
|
|
6771
|
-
* @param search A search term.
|
|
6772
|
-
* @param status * `pending` - Pending
|
|
6773
|
-
* * `processing` - Processing
|
|
6774
|
-
* * `completed` - Completed
|
|
6775
|
-
* * `failed` - Failed
|
|
6776
|
-
* @returns PaginatedDataSetList
|
|
6777
|
-
* @throws ApiError
|
|
6778
|
-
*/
|
|
6779
|
-
static aiFinetuningV1OrgUserDatasetsList(org, username, dateCreated, numDataPoints, ordering, page, pageSize, retryAttempts, search, status) {
|
|
6780
|
-
return request(OpenAPI, {
|
|
6781
|
-
method: 'GET',
|
|
6782
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
|
|
6783
|
-
path: {
|
|
6784
|
-
'org': org,
|
|
6785
|
-
'username': username
|
|
6786
|
-
},
|
|
6787
|
-
query: {
|
|
6788
|
-
'date_created': dateCreated,
|
|
6789
|
-
'num_data_points': numDataPoints,
|
|
6790
|
-
'ordering': ordering,
|
|
6791
|
-
'page': page,
|
|
6792
|
-
'page_size': pageSize,
|
|
6793
|
-
'retry_attempts': retryAttempts,
|
|
6794
|
-
'search': search,
|
|
6795
|
-
'status': status
|
|
6796
|
-
}
|
|
6797
|
-
});
|
|
6798
|
-
}
|
|
6799
|
-
/**
|
|
6800
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6801
|
-
* @param org
|
|
6802
|
-
* @param username
|
|
6803
|
-
* @param requestBody
|
|
6804
|
-
* @returns DataSetCreate
|
|
6805
|
-
* @throws ApiError
|
|
6806
|
-
*/
|
|
6807
|
-
static aiFinetuningV1OrgUserDatasetsCreate(org, username, requestBody) {
|
|
6808
|
-
return request(OpenAPI, {
|
|
6809
|
-
method: 'POST',
|
|
6810
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
|
|
6811
|
-
path: {
|
|
6812
|
-
'org': org,
|
|
6813
|
-
'username': username
|
|
6814
|
-
},
|
|
6815
|
-
body: requestBody,
|
|
6816
|
-
mediaType: 'application/json'
|
|
6817
|
-
});
|
|
6818
|
-
}
|
|
6819
|
-
/**
|
|
6820
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6821
|
-
* @param id A UUID string identifying this data set.
|
|
6822
|
-
* @param org
|
|
6823
|
-
* @param username
|
|
6824
|
-
* @returns DataSet
|
|
6825
|
-
* @throws ApiError
|
|
6826
|
-
*/
|
|
6827
|
-
static aiFinetuningV1OrgUserDatasetsRetrieve(id, org, username) {
|
|
6828
|
-
return request(OpenAPI, {
|
|
6829
|
-
method: 'GET',
|
|
6830
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
6831
|
-
path: {
|
|
6832
|
-
'id': id,
|
|
6833
|
-
'org': org,
|
|
6834
|
-
'username': username
|
|
6835
|
-
}
|
|
6836
|
-
});
|
|
6837
|
-
}
|
|
6838
|
-
/**
|
|
6839
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6840
|
-
* @param id A UUID string identifying this data set.
|
|
6841
|
-
* @param org
|
|
6842
|
-
* @param username
|
|
6843
|
-
* @param requestBody
|
|
6844
|
-
* @returns DataSet
|
|
6845
|
-
* @throws ApiError
|
|
6846
|
-
*/
|
|
6847
|
-
static aiFinetuningV1OrgUserDatasetsUpdate(id, org, username, requestBody) {
|
|
6848
|
-
return request(OpenAPI, {
|
|
6849
|
-
method: 'PUT',
|
|
6850
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
6851
|
-
path: {
|
|
6852
|
-
'id': id,
|
|
6853
|
-
'org': org,
|
|
6854
|
-
'username': username
|
|
6855
|
-
},
|
|
6856
|
-
body: requestBody,
|
|
6857
|
-
mediaType: 'application/json'
|
|
6858
|
-
});
|
|
6859
|
-
}
|
|
6860
|
-
/**
|
|
6861
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6862
|
-
* @param id A UUID string identifying this data set.
|
|
6863
|
-
* @param org
|
|
6864
|
-
* @param username
|
|
6865
|
-
* @param requestBody
|
|
6866
|
-
* @returns DataSet
|
|
6867
|
-
* @throws ApiError
|
|
6868
|
-
*/
|
|
6869
|
-
static aiFinetuningV1OrgUserDatasetsPartialUpdate(id, org, username, requestBody) {
|
|
6870
|
-
return request(OpenAPI, {
|
|
6871
|
-
method: 'PATCH',
|
|
6872
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
6873
|
-
path: {
|
|
6874
|
-
'id': id,
|
|
6875
|
-
'org': org,
|
|
6876
|
-
'username': username
|
|
6877
|
-
},
|
|
6878
|
-
body: requestBody,
|
|
6879
|
-
mediaType: 'application/json'
|
|
6880
|
-
});
|
|
6881
|
-
}
|
|
6882
|
-
/**
|
|
6883
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6884
|
-
* @param id A UUID string identifying this data set.
|
|
6885
|
-
* @param org
|
|
6886
|
-
* @param username
|
|
6887
|
-
* @returns void
|
|
6888
|
-
* @throws ApiError
|
|
6889
|
-
*/
|
|
6890
|
-
static aiFinetuningV1OrgUserDatasetsDestroy(id, org, username) {
|
|
6891
|
-
return request(OpenAPI, {
|
|
6892
|
-
method: 'DELETE',
|
|
6893
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
|
|
6894
|
-
path: {
|
|
6895
|
-
'id': id,
|
|
6896
|
-
'org': org,
|
|
6897
|
-
'username': username
|
|
6898
|
-
}
|
|
6899
|
-
});
|
|
6900
|
-
}
|
|
6901
|
-
/**
|
|
6902
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6903
|
-
* @param org
|
|
6904
|
-
* @param username
|
|
6905
|
-
* @param baseModelName
|
|
6906
|
-
* @param dataset
|
|
6907
|
-
* @param dateCreated
|
|
6908
|
-
* @param fineTunedModel
|
|
6909
|
-
* @param lastModified
|
|
6910
|
-
* @param ordering Which field to use when ordering the results.
|
|
6911
|
-
* @param page A page number within the paginated result set.
|
|
6912
|
-
* @param pageSize Number of results to return per page.
|
|
6913
|
-
* @param preprocessDataset
|
|
6914
|
-
* @param provider * `openai` - Openai
|
|
6915
|
-
* @param search A search term.
|
|
6916
|
-
* @param status * `pending` - Pending
|
|
6917
|
-
* * `processing` - Processing
|
|
6918
|
-
* * `completed` - Completed
|
|
6919
|
-
* * `cancelled` - Cancelled
|
|
6920
|
-
* * `failed` - Failed
|
|
6921
|
-
* @returns PaginatedTrainingList
|
|
6922
|
-
* @throws ApiError
|
|
6923
|
-
*/
|
|
6924
|
-
static aiFinetuningV1OrgUserTrainingsList(org, username, baseModelName, dataset, dateCreated, fineTunedModel, lastModified, ordering, page, pageSize, preprocessDataset, provider, search, status) {
|
|
6925
|
-
return request(OpenAPI, {
|
|
6926
|
-
method: 'GET',
|
|
6927
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
|
|
6928
|
-
path: {
|
|
6929
|
-
'org': org,
|
|
6930
|
-
'username': username
|
|
6931
|
-
},
|
|
6932
|
-
query: {
|
|
6933
|
-
'base_model_name': baseModelName,
|
|
6934
|
-
'dataset': dataset,
|
|
6935
|
-
'date_created': dateCreated,
|
|
6936
|
-
'fine_tuned_model': fineTunedModel,
|
|
6937
|
-
'last_modified': lastModified,
|
|
6938
|
-
'ordering': ordering,
|
|
6939
|
-
'page': page,
|
|
6940
|
-
'page_size': pageSize,
|
|
6941
|
-
'preprocess_dataset': preprocessDataset,
|
|
6942
|
-
'provider': provider,
|
|
6943
|
-
'search': search,
|
|
6944
|
-
'status': status
|
|
6945
|
-
}
|
|
6946
|
-
});
|
|
6947
|
-
}
|
|
6948
|
-
/**
|
|
6949
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6950
|
-
* @param org
|
|
6951
|
-
* @param username
|
|
6952
|
-
* @param requestBody
|
|
6953
|
-
* @returns TrainingCreate
|
|
6954
|
-
* @throws ApiError
|
|
6955
|
-
*/
|
|
6956
|
-
static aiFinetuningV1OrgUserTrainingsCreate(org, username, requestBody) {
|
|
6957
|
-
return request(OpenAPI, {
|
|
6958
|
-
method: 'POST',
|
|
6959
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
|
|
6960
|
-
path: {
|
|
6961
|
-
'org': org,
|
|
6962
|
-
'username': username
|
|
6963
|
-
},
|
|
6964
|
-
body: requestBody,
|
|
6965
|
-
mediaType: 'application/json'
|
|
6966
|
-
});
|
|
6967
|
-
}
|
|
6968
|
-
/**
|
|
6969
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6970
|
-
* @param id A UUID string identifying this training.
|
|
6971
|
-
* @param org
|
|
6972
|
-
* @param username
|
|
6973
|
-
* @returns Training
|
|
6974
|
-
* @throws ApiError
|
|
6975
|
-
*/
|
|
6976
|
-
static aiFinetuningV1OrgUserTrainingsRetrieve(id, org, username) {
|
|
6977
|
-
return request(OpenAPI, {
|
|
6978
|
-
method: 'GET',
|
|
6979
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
6980
|
-
path: {
|
|
6981
|
-
'id': id,
|
|
6982
|
-
'org': org,
|
|
6983
|
-
'username': username
|
|
6984
|
-
}
|
|
6985
|
-
});
|
|
6986
|
-
}
|
|
6987
|
-
/**
|
|
6988
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
6989
|
-
* @param id A UUID string identifying this training.
|
|
6990
|
-
* @param org
|
|
6991
|
-
* @param username
|
|
6992
|
-
* @param requestBody
|
|
6993
|
-
* @returns TrainingCreate
|
|
6994
|
-
* @throws ApiError
|
|
6995
|
-
*/
|
|
6996
|
-
static aiFinetuningV1OrgUserTrainingsUpdate(id, org, username, requestBody) {
|
|
6997
|
-
return request(OpenAPI, {
|
|
6998
|
-
method: 'PUT',
|
|
6999
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
7000
|
-
path: {
|
|
7001
|
-
'id': id,
|
|
7002
|
-
'org': org,
|
|
7003
|
-
'username': username
|
|
7004
|
-
},
|
|
7005
|
-
body: requestBody,
|
|
7006
|
-
mediaType: 'application/json'
|
|
7007
|
-
});
|
|
7008
|
-
}
|
|
7009
|
-
/**
|
|
7010
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
7011
|
-
* @param id A UUID string identifying this training.
|
|
7012
|
-
* @param org
|
|
7013
|
-
* @param username
|
|
7014
|
-
* @param requestBody
|
|
7015
|
-
* @returns TrainingCreate
|
|
7016
|
-
* @throws ApiError
|
|
7017
|
-
*/
|
|
7018
|
-
static aiFinetuningV1OrgUserTrainingsPartialUpdate(id, org, username, requestBody) {
|
|
7019
|
-
return request(OpenAPI, {
|
|
7020
|
-
method: 'PATCH',
|
|
7021
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
7022
|
-
path: {
|
|
7023
|
-
'id': id,
|
|
7024
|
-
'org': org,
|
|
7025
|
-
'username': username
|
|
7026
|
-
},
|
|
7027
|
-
body: requestBody,
|
|
7028
|
-
mediaType: 'application/json'
|
|
7029
|
-
});
|
|
7030
|
-
}
|
|
7031
|
-
/**
|
|
7032
|
-
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
7033
|
-
* @param id A UUID string identifying this training.
|
|
7034
|
-
* @param org
|
|
7035
|
-
* @param username
|
|
7036
|
-
* @returns void
|
|
7037
|
-
* @throws ApiError
|
|
7038
|
-
*/
|
|
7039
|
-
static aiFinetuningV1OrgUserTrainingsDestroy(id, org, username) {
|
|
7040
|
-
return request(OpenAPI, {
|
|
7041
|
-
method: 'DELETE',
|
|
7042
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
|
|
7043
|
-
path: {
|
|
7044
|
-
'id': id,
|
|
7045
|
-
'org': org,
|
|
7046
|
-
'username': username
|
|
7047
|
-
}
|
|
7048
|
-
});
|
|
7049
|
-
}
|
|
7050
|
-
/**
|
|
7051
|
-
* Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
|
|
7052
|
-
* Filtering and pagination is allowed.
|
|
7053
|
-
*
|
|
7054
|
-
* NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
|
|
7055
|
-
* training list endpoint.
|
|
7056
|
-
* Returns:
|
|
7057
|
-
* Response: A paginated response containing the serialized fine-tuned models.
|
|
7058
|
-
* @param org
|
|
7059
|
-
* @param username
|
|
7060
|
-
* @returns Training
|
|
7061
|
-
* @throws ApiError
|
|
7062
|
-
*/
|
|
7063
|
-
static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve(org, username) {
|
|
7064
|
-
return request(OpenAPI, {
|
|
7065
|
-
method: 'GET',
|
|
7066
|
-
url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
|
|
7067
|
-
path: {
|
|
7068
|
-
'org': org,
|
|
7069
|
-
'username': username
|
|
7070
|
-
}
|
|
7071
|
-
});
|
|
7072
|
-
}
|
|
7073
|
-
}
|
|
7074
|
-
|
|
7075
5741
|
class AiIndexService {
|
|
7076
5742
|
/**
|
|
7077
5743
|
* Retrieve details of a specific document embedding.
|
|
@@ -25251,201 +23917,641 @@ class CoreService {
|
|
|
25251
23917
|
});
|
|
25252
23918
|
}
|
|
25253
23919
|
/**
|
|
25254
|
-
*
|
|
23920
|
+
* List group role assignments
|
|
23921
|
+
* Retrieve a list of group role assignments. Can be filtered by platform_key, group_id, or role_id.
|
|
23922
|
+
* @param groupId Filter group roles by group ID
|
|
23923
|
+
* @param page A page number within the paginated result set.
|
|
23924
|
+
* @param pageSize Number of results to return per page.
|
|
23925
|
+
* @param platformKey Filter group roles by platform key
|
|
23926
|
+
* @param roleId Filter group roles by role ID
|
|
23927
|
+
* @returns PaginatedRbacGroupRoleList
|
|
23928
|
+
* @throws ApiError
|
|
23929
|
+
*/
|
|
23930
|
+
static coreRbacGroupRolesList(groupId, page, pageSize, platformKey, roleId) {
|
|
23931
|
+
return request(OpenAPI, {
|
|
23932
|
+
method: 'GET',
|
|
23933
|
+
url: '/api/core/rbac/group-roles/',
|
|
23934
|
+
query: {
|
|
23935
|
+
'group_id': groupId,
|
|
23936
|
+
'page': page,
|
|
23937
|
+
'page_size': pageSize,
|
|
23938
|
+
'platform_key': platformKey,
|
|
23939
|
+
'role_id': roleId
|
|
23940
|
+
}
|
|
23941
|
+
});
|
|
23942
|
+
}
|
|
23943
|
+
/**
|
|
23944
|
+
* Create group role assignment
|
|
23945
|
+
* Assign a role to a group. The group and role must belong to the same platform.
|
|
25255
23946
|
* @param requestBody
|
|
25256
|
-
* @returns
|
|
23947
|
+
* @returns RbacGroupRole
|
|
25257
23948
|
* @throws ApiError
|
|
25258
23949
|
*/
|
|
25259
|
-
static
|
|
23950
|
+
static coreRbacGroupRolesCreate(requestBody) {
|
|
25260
23951
|
return request(OpenAPI, {
|
|
25261
23952
|
method: 'POST',
|
|
25262
|
-
url: '/api/core/rbac/
|
|
23953
|
+
url: '/api/core/rbac/group-roles/',
|
|
25263
23954
|
body: requestBody,
|
|
25264
23955
|
mediaType: 'application/json',
|
|
25265
23956
|
errors: {
|
|
25266
|
-
|
|
25267
|
-
|
|
23957
|
+
400: `Invalid input data. Common errors include:
|
|
23958
|
+
- Group does not belong to the specified platform
|
|
23959
|
+
- Role does not belong to the specified platform
|
|
23960
|
+
- Group and role belong to different platforms`
|
|
25268
23961
|
}
|
|
25269
23962
|
});
|
|
25270
23963
|
}
|
|
25271
23964
|
/**
|
|
25272
|
-
*
|
|
25273
|
-
*
|
|
23965
|
+
* Retrieve group role assignment
|
|
23966
|
+
* Retrieve details of a specific group role assignment.
|
|
23967
|
+
* @param id A unique integer value identifying this RBAC Group Role.
|
|
23968
|
+
* @returns RbacGroupRole
|
|
25274
23969
|
* @throws ApiError
|
|
25275
23970
|
*/
|
|
25276
|
-
static
|
|
23971
|
+
static coreRbacGroupRolesRetrieve(id) {
|
|
25277
23972
|
return request(OpenAPI, {
|
|
25278
23973
|
method: 'GET',
|
|
25279
|
-
url: '/api/core/rbac/
|
|
23974
|
+
url: '/api/core/rbac/group-roles/{id}/',
|
|
23975
|
+
path: {
|
|
23976
|
+
'id': id
|
|
23977
|
+
},
|
|
23978
|
+
errors: {
|
|
23979
|
+
404: `Group role assignment not found`
|
|
23980
|
+
}
|
|
25280
23981
|
});
|
|
25281
23982
|
}
|
|
25282
23983
|
/**
|
|
25283
|
-
*
|
|
25284
|
-
*
|
|
23984
|
+
* Update group role assignment
|
|
23985
|
+
* Update an existing group role assignment. Platform validation applies.
|
|
23986
|
+
* @param id A unique integer value identifying this RBAC Group Role.
|
|
23987
|
+
* @param requestBody
|
|
23988
|
+
* @returns RbacGroupRole
|
|
25285
23989
|
* @throws ApiError
|
|
25286
23990
|
*/
|
|
25287
|
-
static
|
|
23991
|
+
static coreRbacGroupRolesUpdate(id, requestBody) {
|
|
25288
23992
|
return request(OpenAPI, {
|
|
25289
|
-
method: '
|
|
25290
|
-
url: '/api/core/rbac/
|
|
23993
|
+
method: 'PUT',
|
|
23994
|
+
url: '/api/core/rbac/group-roles/{id}/',
|
|
23995
|
+
path: {
|
|
23996
|
+
'id': id
|
|
23997
|
+
},
|
|
23998
|
+
body: requestBody,
|
|
23999
|
+
mediaType: 'application/json',
|
|
24000
|
+
errors: {
|
|
24001
|
+
400: `Invalid input data. Common errors include:
|
|
24002
|
+
- Group does not belong to the specified platform
|
|
24003
|
+
- Role does not belong to the specified platform
|
|
24004
|
+
- Group and role belong to different platforms`,
|
|
24005
|
+
404: `Group role assignment not found`
|
|
24006
|
+
}
|
|
24007
|
+
});
|
|
24008
|
+
}
|
|
24009
|
+
/**
|
|
24010
|
+
* Partially update group role assignment
|
|
24011
|
+
* Partially update an existing group role assignment. Platform validation applies.
|
|
24012
|
+
* @param id A unique integer value identifying this RBAC Group Role.
|
|
24013
|
+
* @param requestBody
|
|
24014
|
+
* @returns RbacGroupRole
|
|
24015
|
+
* @throws ApiError
|
|
24016
|
+
*/
|
|
24017
|
+
static coreRbacGroupRolesPartialUpdate(id, requestBody) {
|
|
24018
|
+
return request(OpenAPI, {
|
|
24019
|
+
method: 'PATCH',
|
|
24020
|
+
url: '/api/core/rbac/group-roles/{id}/',
|
|
24021
|
+
path: {
|
|
24022
|
+
'id': id
|
|
24023
|
+
},
|
|
24024
|
+
body: requestBody,
|
|
24025
|
+
mediaType: 'application/json',
|
|
24026
|
+
errors: {
|
|
24027
|
+
400: `Invalid input data. Common errors include:
|
|
24028
|
+
- Group does not belong to the specified platform
|
|
24029
|
+
- Role does not belong to the specified platform
|
|
24030
|
+
- Group and role belong to different platforms`,
|
|
24031
|
+
404: `Group role assignment not found`
|
|
24032
|
+
}
|
|
25291
24033
|
});
|
|
25292
24034
|
}
|
|
25293
24035
|
/**
|
|
25294
|
-
*
|
|
24036
|
+
* Delete group role assignment
|
|
24037
|
+
* Remove a role assignment from a group.
|
|
24038
|
+
* @param id A unique integer value identifying this RBAC Group Role.
|
|
25295
24039
|
* @returns void
|
|
25296
24040
|
* @throws ApiError
|
|
25297
24041
|
*/
|
|
25298
|
-
static
|
|
24042
|
+
static coreRbacGroupRolesDestroy(id) {
|
|
25299
24043
|
return request(OpenAPI, {
|
|
25300
24044
|
method: 'DELETE',
|
|
25301
|
-
url: '/api/core/rbac/
|
|
24045
|
+
url: '/api/core/rbac/group-roles/{id}/',
|
|
24046
|
+
path: {
|
|
24047
|
+
'id': id
|
|
24048
|
+
},
|
|
24049
|
+
errors: {
|
|
24050
|
+
404: `Group role assignment not found`
|
|
24051
|
+
}
|
|
25302
24052
|
});
|
|
25303
24053
|
}
|
|
25304
24054
|
/**
|
|
25305
|
-
*
|
|
25306
|
-
*
|
|
24055
|
+
* List RBAC groups
|
|
24056
|
+
* Retrieve a list of RBAC groups. Can be filtered by platform_key.
|
|
24057
|
+
* @param page A page number within the paginated result set.
|
|
24058
|
+
* @param pageSize Number of results to return per page.
|
|
24059
|
+
* @param platformKey Filter groups by platform key
|
|
24060
|
+
* @returns PaginatedRbacGroupList
|
|
25307
24061
|
* @throws ApiError
|
|
25308
24062
|
*/
|
|
25309
|
-
static
|
|
24063
|
+
static coreRbacGroupsList(page, pageSize, platformKey) {
|
|
25310
24064
|
return request(OpenAPI, {
|
|
25311
24065
|
method: 'GET',
|
|
25312
|
-
url: '/api/core/rbac/
|
|
25313
|
-
|
|
25314
|
-
|
|
24066
|
+
url: '/api/core/rbac/groups/',
|
|
24067
|
+
query: {
|
|
24068
|
+
'page': page,
|
|
24069
|
+
'page_size': pageSize,
|
|
24070
|
+
'platform_key': platformKey
|
|
25315
24071
|
}
|
|
25316
24072
|
});
|
|
25317
24073
|
}
|
|
25318
24074
|
/**
|
|
25319
|
-
*
|
|
24075
|
+
* Create RBAC group
|
|
24076
|
+
* Create a new RBAC group for a platform. Users can be assigned during creation.
|
|
25320
24077
|
* @param requestBody
|
|
25321
|
-
* @returns
|
|
24078
|
+
* @returns RbacGroup
|
|
25322
24079
|
* @throws ApiError
|
|
25323
24080
|
*/
|
|
25324
|
-
static
|
|
24081
|
+
static coreRbacGroupsCreate(requestBody) {
|
|
25325
24082
|
return request(OpenAPI, {
|
|
25326
24083
|
method: 'POST',
|
|
25327
|
-
url: '/api/core/rbac/
|
|
24084
|
+
url: '/api/core/rbac/groups/',
|
|
25328
24085
|
body: requestBody,
|
|
25329
24086
|
mediaType: 'application/json',
|
|
25330
24087
|
errors: {
|
|
25331
|
-
400: `Invalid
|
|
25332
|
-
|
|
24088
|
+
400: `Invalid input data. Common errors include:
|
|
24089
|
+
- Users do not belong to the specified platform
|
|
24090
|
+
- Invalid user IDs provided`
|
|
24091
|
+
}
|
|
24092
|
+
});
|
|
24093
|
+
}
|
|
24094
|
+
/**
|
|
24095
|
+
* Retrieve RBAC group
|
|
24096
|
+
* Retrieve details of a specific RBAC group including assigned users.
|
|
24097
|
+
* @param id A unique integer value identifying this RBAC Group.
|
|
24098
|
+
* @returns RbacGroup
|
|
24099
|
+
* @throws ApiError
|
|
24100
|
+
*/
|
|
24101
|
+
static coreRbacGroupsRetrieve(id) {
|
|
24102
|
+
return request(OpenAPI, {
|
|
24103
|
+
method: 'GET',
|
|
24104
|
+
url: '/api/core/rbac/groups/{id}/',
|
|
24105
|
+
path: {
|
|
24106
|
+
'id': id
|
|
24107
|
+
},
|
|
24108
|
+
errors: {
|
|
24109
|
+
404: `Group not found`
|
|
25333
24110
|
}
|
|
25334
24111
|
});
|
|
25335
24112
|
}
|
|
25336
24113
|
/**
|
|
25337
|
-
*
|
|
25338
|
-
*
|
|
24114
|
+
* Update RBAC group
|
|
24115
|
+
* Update an existing RBAC group. Platform validation applies for user assignments.
|
|
24116
|
+
* @param id A unique integer value identifying this RBAC Group.
|
|
24117
|
+
* @param requestBody
|
|
24118
|
+
* @returns RbacGroup
|
|
25339
24119
|
* @throws ApiError
|
|
25340
24120
|
*/
|
|
25341
|
-
static
|
|
24121
|
+
static coreRbacGroupsUpdate(id, requestBody) {
|
|
24122
|
+
return request(OpenAPI, {
|
|
24123
|
+
method: 'PUT',
|
|
24124
|
+
url: '/api/core/rbac/groups/{id}/',
|
|
24125
|
+
path: {
|
|
24126
|
+
'id': id
|
|
24127
|
+
},
|
|
24128
|
+
body: requestBody,
|
|
24129
|
+
mediaType: 'application/json',
|
|
24130
|
+
errors: {
|
|
24131
|
+
400: `Invalid input data. Common errors include:
|
|
24132
|
+
- Users do not belong to the specified platform
|
|
24133
|
+
- Invalid user IDs provided`,
|
|
24134
|
+
404: `Group not found`
|
|
24135
|
+
}
|
|
24136
|
+
});
|
|
24137
|
+
}
|
|
24138
|
+
/**
|
|
24139
|
+
* Partially update RBAC group
|
|
24140
|
+
* Partially update an existing RBAC group. Platform validation applies for user assignments.
|
|
24141
|
+
* @param id A unique integer value identifying this RBAC Group.
|
|
24142
|
+
* @param requestBody
|
|
24143
|
+
* @returns RbacGroup
|
|
24144
|
+
* @throws ApiError
|
|
24145
|
+
*/
|
|
24146
|
+
static coreRbacGroupsPartialUpdate(id, requestBody) {
|
|
24147
|
+
return request(OpenAPI, {
|
|
24148
|
+
method: 'PATCH',
|
|
24149
|
+
url: '/api/core/rbac/groups/{id}/',
|
|
24150
|
+
path: {
|
|
24151
|
+
'id': id
|
|
24152
|
+
},
|
|
24153
|
+
body: requestBody,
|
|
24154
|
+
mediaType: 'application/json',
|
|
24155
|
+
errors: {
|
|
24156
|
+
400: `Invalid input data. Common errors include:
|
|
24157
|
+
- Users do not belong to the specified platform
|
|
24158
|
+
- Invalid user IDs provided`,
|
|
24159
|
+
404: `Group not found`
|
|
24160
|
+
}
|
|
24161
|
+
});
|
|
24162
|
+
}
|
|
24163
|
+
/**
|
|
24164
|
+
* Delete RBAC group
|
|
24165
|
+
* Delete an RBAC group and all associated group role assignments.
|
|
24166
|
+
* @param id A unique integer value identifying this RBAC Group.
|
|
24167
|
+
* @returns void
|
|
24168
|
+
* @throws ApiError
|
|
24169
|
+
*/
|
|
24170
|
+
static coreRbacGroupsDestroy(id) {
|
|
25342
24171
|
return request(OpenAPI, {
|
|
25343
24172
|
method: 'DELETE',
|
|
25344
|
-
url: '/api/core/rbac/
|
|
24173
|
+
url: '/api/core/rbac/groups/{id}/',
|
|
24174
|
+
path: {
|
|
24175
|
+
'id': id
|
|
24176
|
+
},
|
|
25345
24177
|
errors: {
|
|
25346
|
-
|
|
25347
|
-
404: `Platform not found.`
|
|
24178
|
+
404: `Group not found`
|
|
25348
24179
|
}
|
|
25349
24180
|
});
|
|
25350
24181
|
}
|
|
25351
24182
|
/**
|
|
25352
|
-
*
|
|
25353
|
-
*
|
|
24183
|
+
* List RBAC policies
|
|
24184
|
+
* Retrieve a list of RBAC policies. Can be filtered by platform_key or role_id.
|
|
24185
|
+
* @param page A page number within the paginated result set.
|
|
24186
|
+
* @param pageSize Number of results to return per page.
|
|
24187
|
+
* @param platformKey Filter policies by platform key
|
|
24188
|
+
* @param roleId Filter policies by role ID
|
|
24189
|
+
* @returns PaginatedRbacPolicyList
|
|
25354
24190
|
* @throws ApiError
|
|
25355
24191
|
*/
|
|
25356
|
-
static
|
|
24192
|
+
static coreRbacPoliciesList(page, pageSize, platformKey, roleId) {
|
|
25357
24193
|
return request(OpenAPI, {
|
|
25358
24194
|
method: 'GET',
|
|
25359
|
-
url: '/api/core/rbac/
|
|
24195
|
+
url: '/api/core/rbac/policies/',
|
|
24196
|
+
query: {
|
|
24197
|
+
'page': page,
|
|
24198
|
+
'page_size': pageSize,
|
|
24199
|
+
'platform_key': platformKey,
|
|
24200
|
+
'role_id': roleId
|
|
24201
|
+
}
|
|
24202
|
+
});
|
|
24203
|
+
}
|
|
24204
|
+
/**
|
|
24205
|
+
* Create RBAC policy
|
|
24206
|
+
* Create a new RBAC policy that defines resource access for a role.
|
|
24207
|
+
* @param requestBody
|
|
24208
|
+
* @returns RbacPolicy
|
|
24209
|
+
* @throws ApiError
|
|
24210
|
+
*/
|
|
24211
|
+
static coreRbacPoliciesCreate(requestBody) {
|
|
24212
|
+
return request(OpenAPI, {
|
|
24213
|
+
method: 'POST',
|
|
24214
|
+
url: '/api/core/rbac/policies/',
|
|
24215
|
+
body: requestBody,
|
|
24216
|
+
mediaType: 'application/json',
|
|
25360
24217
|
errors: {
|
|
25361
|
-
|
|
24218
|
+
400: `Invalid input data`
|
|
25362
24219
|
}
|
|
25363
24220
|
});
|
|
25364
24221
|
}
|
|
25365
24222
|
/**
|
|
25366
|
-
*
|
|
25367
|
-
*
|
|
24223
|
+
* Retrieve RBAC policy
|
|
24224
|
+
* Retrieve details of a specific RBAC policy.
|
|
24225
|
+
* @param id A unique integer value identifying this RBAC Policy.
|
|
24226
|
+
* @returns RbacPolicy
|
|
25368
24227
|
* @throws ApiError
|
|
25369
24228
|
*/
|
|
25370
|
-
static
|
|
24229
|
+
static coreRbacPoliciesRetrieve(id) {
|
|
25371
24230
|
return request(OpenAPI, {
|
|
25372
24231
|
method: 'GET',
|
|
25373
|
-
url: '/api/core/rbac/
|
|
24232
|
+
url: '/api/core/rbac/policies/{id}/',
|
|
24233
|
+
path: {
|
|
24234
|
+
'id': id
|
|
24235
|
+
},
|
|
25374
24236
|
errors: {
|
|
25375
|
-
404: `
|
|
24237
|
+
404: `Policy not found`
|
|
25376
24238
|
}
|
|
25377
24239
|
});
|
|
25378
24240
|
}
|
|
25379
24241
|
/**
|
|
25380
|
-
*
|
|
25381
|
-
*
|
|
24242
|
+
* Update RBAC policy
|
|
24243
|
+
* Update an existing RBAC policy.
|
|
24244
|
+
* @param id A unique integer value identifying this RBAC Policy.
|
|
24245
|
+
* @param requestBody
|
|
24246
|
+
* @returns RbacPolicy
|
|
25382
24247
|
* @throws ApiError
|
|
25383
24248
|
*/
|
|
25384
|
-
static
|
|
24249
|
+
static coreRbacPoliciesUpdate(id, requestBody) {
|
|
25385
24250
|
return request(OpenAPI, {
|
|
25386
|
-
method: '
|
|
25387
|
-
url: '/api/core/rbac/
|
|
24251
|
+
method: 'PUT',
|
|
24252
|
+
url: '/api/core/rbac/policies/{id}/',
|
|
24253
|
+
path: {
|
|
24254
|
+
'id': id
|
|
24255
|
+
},
|
|
24256
|
+
body: requestBody,
|
|
24257
|
+
mediaType: 'application/json',
|
|
24258
|
+
errors: {
|
|
24259
|
+
400: `Invalid input data`,
|
|
24260
|
+
404: `Policy not found`
|
|
24261
|
+
}
|
|
24262
|
+
});
|
|
24263
|
+
}
|
|
24264
|
+
/**
|
|
24265
|
+
* Partially update RBAC policy
|
|
24266
|
+
* Partially update an existing RBAC policy.
|
|
24267
|
+
* @param id A unique integer value identifying this RBAC Policy.
|
|
24268
|
+
* @param requestBody
|
|
24269
|
+
* @returns RbacPolicy
|
|
24270
|
+
* @throws ApiError
|
|
24271
|
+
*/
|
|
24272
|
+
static coreRbacPoliciesPartialUpdate(id, requestBody) {
|
|
24273
|
+
return request(OpenAPI, {
|
|
24274
|
+
method: 'PATCH',
|
|
24275
|
+
url: '/api/core/rbac/policies/{id}/',
|
|
24276
|
+
path: {
|
|
24277
|
+
'id': id
|
|
24278
|
+
},
|
|
24279
|
+
body: requestBody,
|
|
24280
|
+
mediaType: 'application/json',
|
|
24281
|
+
errors: {
|
|
24282
|
+
400: `Invalid input data`,
|
|
24283
|
+
404: `Policy not found`
|
|
24284
|
+
}
|
|
25388
24285
|
});
|
|
25389
24286
|
}
|
|
25390
24287
|
/**
|
|
25391
|
-
* Delete
|
|
24288
|
+
* Delete RBAC policy
|
|
24289
|
+
* Delete an RBAC policy.
|
|
24290
|
+
* @param id A unique integer value identifying this RBAC Policy.
|
|
25392
24291
|
* @returns void
|
|
25393
24292
|
* @throws ApiError
|
|
25394
24293
|
*/
|
|
25395
|
-
static
|
|
24294
|
+
static coreRbacPoliciesDestroy(id) {
|
|
25396
24295
|
return request(OpenAPI, {
|
|
25397
24296
|
method: 'DELETE',
|
|
24297
|
+
url: '/api/core/rbac/policies/{id}/',
|
|
24298
|
+
path: {
|
|
24299
|
+
'id': id
|
|
24300
|
+
},
|
|
24301
|
+
errors: {
|
|
24302
|
+
404: `Policy not found`
|
|
24303
|
+
}
|
|
24304
|
+
});
|
|
24305
|
+
}
|
|
24306
|
+
/**
|
|
24307
|
+
* List RBAC roles
|
|
24308
|
+
* Retrieve a list of RBAC roles. Can be filtered by platform_key.
|
|
24309
|
+
* @param page A page number within the paginated result set.
|
|
24310
|
+
* @param pageSize Number of results to return per page.
|
|
24311
|
+
* @param platformKey Filter roles by platform key
|
|
24312
|
+
* @returns PaginatedRbacRoleList
|
|
24313
|
+
* @throws ApiError
|
|
24314
|
+
*/
|
|
24315
|
+
static coreRbacRolesList(page, pageSize, platformKey) {
|
|
24316
|
+
return request(OpenAPI, {
|
|
24317
|
+
method: 'GET',
|
|
24318
|
+
url: '/api/core/rbac/roles/',
|
|
24319
|
+
query: {
|
|
24320
|
+
'page': page,
|
|
24321
|
+
'page_size': pageSize,
|
|
24322
|
+
'platform_key': platformKey
|
|
24323
|
+
}
|
|
24324
|
+
});
|
|
24325
|
+
}
|
|
24326
|
+
/**
|
|
24327
|
+
* Create RBAC role
|
|
24328
|
+
* Create a new RBAC role for a platform.
|
|
24329
|
+
* @param requestBody
|
|
24330
|
+
* @returns RbacRole
|
|
24331
|
+
* @throws ApiError
|
|
24332
|
+
*/
|
|
24333
|
+
static coreRbacRolesCreate(requestBody) {
|
|
24334
|
+
return request(OpenAPI, {
|
|
24335
|
+
method: 'POST',
|
|
25398
24336
|
url: '/api/core/rbac/roles/',
|
|
24337
|
+
body: requestBody,
|
|
24338
|
+
mediaType: 'application/json',
|
|
25399
24339
|
errors: {
|
|
25400
|
-
400: `Invalid
|
|
25401
|
-
404: `Platform not found or role does not exist.`
|
|
24340
|
+
400: `Invalid input data`
|
|
25402
24341
|
}
|
|
25403
24342
|
});
|
|
25404
24343
|
}
|
|
25405
24344
|
/**
|
|
25406
|
-
*
|
|
25407
|
-
*
|
|
24345
|
+
* Retrieve RBAC role
|
|
24346
|
+
* Retrieve details of a specific RBAC role.
|
|
24347
|
+
* @param id A unique integer value identifying this RBAC Role.
|
|
24348
|
+
* @returns RbacRole
|
|
25408
24349
|
* @throws ApiError
|
|
25409
24350
|
*/
|
|
25410
|
-
static
|
|
24351
|
+
static coreRbacRolesRetrieve(id) {
|
|
25411
24352
|
return request(OpenAPI, {
|
|
25412
24353
|
method: 'GET',
|
|
25413
|
-
url: '/api/core/rbac/
|
|
24354
|
+
url: '/api/core/rbac/roles/{id}/',
|
|
24355
|
+
path: {
|
|
24356
|
+
'id': id
|
|
24357
|
+
},
|
|
24358
|
+
errors: {
|
|
24359
|
+
404: `Role not found`
|
|
24360
|
+
}
|
|
24361
|
+
});
|
|
24362
|
+
}
|
|
24363
|
+
/**
|
|
24364
|
+
* Update RBAC role
|
|
24365
|
+
* Update an existing RBAC role.
|
|
24366
|
+
* @param id A unique integer value identifying this RBAC Role.
|
|
24367
|
+
* @param requestBody
|
|
24368
|
+
* @returns RbacRole
|
|
24369
|
+
* @throws ApiError
|
|
24370
|
+
*/
|
|
24371
|
+
static coreRbacRolesUpdate(id, requestBody) {
|
|
24372
|
+
return request(OpenAPI, {
|
|
24373
|
+
method: 'PUT',
|
|
24374
|
+
url: '/api/core/rbac/roles/{id}/',
|
|
24375
|
+
path: {
|
|
24376
|
+
'id': id
|
|
24377
|
+
},
|
|
24378
|
+
body: requestBody,
|
|
24379
|
+
mediaType: 'application/json',
|
|
25414
24380
|
errors: {
|
|
25415
|
-
|
|
24381
|
+
400: `Invalid input data`,
|
|
24382
|
+
404: `Role not found`
|
|
25416
24383
|
}
|
|
25417
24384
|
});
|
|
25418
24385
|
}
|
|
25419
24386
|
/**
|
|
25420
|
-
*
|
|
24387
|
+
* Partially update RBAC role
|
|
24388
|
+
* Partially update an existing RBAC role.
|
|
24389
|
+
* @param id A unique integer value identifying this RBAC Role.
|
|
25421
24390
|
* @param requestBody
|
|
25422
|
-
* @returns
|
|
24391
|
+
* @returns RbacRole
|
|
24392
|
+
* @throws ApiError
|
|
24393
|
+
*/
|
|
24394
|
+
static coreRbacRolesPartialUpdate(id, requestBody) {
|
|
24395
|
+
return request(OpenAPI, {
|
|
24396
|
+
method: 'PATCH',
|
|
24397
|
+
url: '/api/core/rbac/roles/{id}/',
|
|
24398
|
+
path: {
|
|
24399
|
+
'id': id
|
|
24400
|
+
},
|
|
24401
|
+
body: requestBody,
|
|
24402
|
+
mediaType: 'application/json',
|
|
24403
|
+
errors: {
|
|
24404
|
+
400: `Invalid input data`,
|
|
24405
|
+
404: `Role not found`
|
|
24406
|
+
}
|
|
24407
|
+
});
|
|
24408
|
+
}
|
|
24409
|
+
/**
|
|
24410
|
+
* Delete RBAC role
|
|
24411
|
+
* Delete an RBAC role.
|
|
24412
|
+
* @param id A unique integer value identifying this RBAC Role.
|
|
24413
|
+
* @returns void
|
|
24414
|
+
* @throws ApiError
|
|
24415
|
+
*/
|
|
24416
|
+
static coreRbacRolesDestroy(id) {
|
|
24417
|
+
return request(OpenAPI, {
|
|
24418
|
+
method: 'DELETE',
|
|
24419
|
+
url: '/api/core/rbac/roles/{id}/',
|
|
24420
|
+
path: {
|
|
24421
|
+
'id': id
|
|
24422
|
+
},
|
|
24423
|
+
errors: {
|
|
24424
|
+
404: `Role not found`
|
|
24425
|
+
}
|
|
24426
|
+
});
|
|
24427
|
+
}
|
|
24428
|
+
/**
|
|
24429
|
+
* List user role assignments
|
|
24430
|
+
* Retrieve a list of user role assignments. Can be filtered by platform_key or user_id.
|
|
24431
|
+
* @param page A page number within the paginated result set.
|
|
24432
|
+
* @param pageSize Number of results to return per page.
|
|
24433
|
+
* @param platformKey Filter user roles by platform key
|
|
24434
|
+
* @param userId Filter user roles by user ID
|
|
24435
|
+
* @returns PaginatedRbacUserRoleList
|
|
24436
|
+
* @throws ApiError
|
|
24437
|
+
*/
|
|
24438
|
+
static coreRbacUserRolesList(page, pageSize, platformKey, userId) {
|
|
24439
|
+
return request(OpenAPI, {
|
|
24440
|
+
method: 'GET',
|
|
24441
|
+
url: '/api/core/rbac/user-roles/',
|
|
24442
|
+
query: {
|
|
24443
|
+
'page': page,
|
|
24444
|
+
'page_size': pageSize,
|
|
24445
|
+
'platform_key': platformKey,
|
|
24446
|
+
'user_id': userId
|
|
24447
|
+
}
|
|
24448
|
+
});
|
|
24449
|
+
}
|
|
24450
|
+
/**
|
|
24451
|
+
* Create user role assignment
|
|
24452
|
+
* Assign a role to a user. The user must belong to the same platform as the role.
|
|
24453
|
+
* @param requestBody
|
|
24454
|
+
* @returns RbacUserRole
|
|
25423
24455
|
* @throws ApiError
|
|
25424
24456
|
*/
|
|
25425
24457
|
static coreRbacUserRolesCreate(requestBody) {
|
|
25426
24458
|
return request(OpenAPI, {
|
|
25427
24459
|
method: 'POST',
|
|
25428
|
-
url: '/api/core/rbac/user
|
|
24460
|
+
url: '/api/core/rbac/user-roles/',
|
|
25429
24461
|
body: requestBody,
|
|
25430
24462
|
mediaType: 'application/json',
|
|
25431
24463
|
errors: {
|
|
25432
|
-
400: `Invalid
|
|
25433
|
-
|
|
24464
|
+
400: `Invalid input data. Common errors include:
|
|
24465
|
+
- User does not belong to the specified platform
|
|
24466
|
+
- Role platform does not match provided platform_key`
|
|
25434
24467
|
}
|
|
25435
24468
|
});
|
|
25436
24469
|
}
|
|
25437
24470
|
/**
|
|
25438
|
-
*
|
|
25439
|
-
*
|
|
24471
|
+
* Retrieve user role assignment
|
|
24472
|
+
* Retrieve details of a specific user role assignment.
|
|
24473
|
+
* @param id A unique integer value identifying this RBAC User Role.
|
|
24474
|
+
* @returns RbacUserRole
|
|
25440
24475
|
* @throws ApiError
|
|
25441
24476
|
*/
|
|
25442
|
-
static
|
|
24477
|
+
static coreRbacUserRolesRetrieve(id) {
|
|
24478
|
+
return request(OpenAPI, {
|
|
24479
|
+
method: 'GET',
|
|
24480
|
+
url: '/api/core/rbac/user-roles/{id}/',
|
|
24481
|
+
path: {
|
|
24482
|
+
'id': id
|
|
24483
|
+
},
|
|
24484
|
+
errors: {
|
|
24485
|
+
404: `User role assignment not found`
|
|
24486
|
+
}
|
|
24487
|
+
});
|
|
24488
|
+
}
|
|
24489
|
+
/**
|
|
24490
|
+
* Update user role assignment
|
|
24491
|
+
* Update an existing user role assignment. Platform validation applies.
|
|
24492
|
+
* @param id A unique integer value identifying this RBAC User Role.
|
|
24493
|
+
* @param requestBody
|
|
24494
|
+
* @returns RbacUserRole
|
|
24495
|
+
* @throws ApiError
|
|
24496
|
+
*/
|
|
24497
|
+
static coreRbacUserRolesUpdate(id, requestBody) {
|
|
24498
|
+
return request(OpenAPI, {
|
|
24499
|
+
method: 'PUT',
|
|
24500
|
+
url: '/api/core/rbac/user-roles/{id}/',
|
|
24501
|
+
path: {
|
|
24502
|
+
'id': id
|
|
24503
|
+
},
|
|
24504
|
+
body: requestBody,
|
|
24505
|
+
mediaType: 'application/json',
|
|
24506
|
+
errors: {
|
|
24507
|
+
400: `Invalid input data. Common errors include:
|
|
24508
|
+
- User does not belong to the specified platform
|
|
24509
|
+
- Role platform does not match provided platform_key`,
|
|
24510
|
+
404: `User role assignment not found`
|
|
24511
|
+
}
|
|
24512
|
+
});
|
|
24513
|
+
}
|
|
24514
|
+
/**
|
|
24515
|
+
* Partially update user role assignment
|
|
24516
|
+
* Partially update an existing user role assignment. Platform validation applies.
|
|
24517
|
+
* @param id A unique integer value identifying this RBAC User Role.
|
|
24518
|
+
* @param requestBody
|
|
24519
|
+
* @returns RbacUserRole
|
|
24520
|
+
* @throws ApiError
|
|
24521
|
+
*/
|
|
24522
|
+
static coreRbacUserRolesPartialUpdate(id, requestBody) {
|
|
24523
|
+
return request(OpenAPI, {
|
|
24524
|
+
method: 'PATCH',
|
|
24525
|
+
url: '/api/core/rbac/user-roles/{id}/',
|
|
24526
|
+
path: {
|
|
24527
|
+
'id': id
|
|
24528
|
+
},
|
|
24529
|
+
body: requestBody,
|
|
24530
|
+
mediaType: 'application/json',
|
|
24531
|
+
errors: {
|
|
24532
|
+
400: `Invalid input data. Common errors include:
|
|
24533
|
+
- User does not belong to the specified platform
|
|
24534
|
+
- Role platform does not match provided platform_key`,
|
|
24535
|
+
404: `User role assignment not found`
|
|
24536
|
+
}
|
|
24537
|
+
});
|
|
24538
|
+
}
|
|
24539
|
+
/**
|
|
24540
|
+
* Delete user role assignment
|
|
24541
|
+
* Remove a role assignment from a user.
|
|
24542
|
+
* @param id A unique integer value identifying this RBAC User Role.
|
|
24543
|
+
* @returns void
|
|
24544
|
+
* @throws ApiError
|
|
24545
|
+
*/
|
|
24546
|
+
static coreRbacUserRolesDestroy(id) {
|
|
25443
24547
|
return request(OpenAPI, {
|
|
25444
24548
|
method: 'DELETE',
|
|
25445
|
-
url: '/api/core/rbac/user
|
|
24549
|
+
url: '/api/core/rbac/user-roles/{id}/',
|
|
24550
|
+
path: {
|
|
24551
|
+
'id': id
|
|
24552
|
+
},
|
|
25446
24553
|
errors: {
|
|
25447
|
-
|
|
25448
|
-
404: `Platform not found.`
|
|
24554
|
+
404: `User role assignment not found`
|
|
25449
24555
|
}
|
|
25450
24556
|
});
|
|
25451
24557
|
}
|
|
@@ -33856,5 +32962,5 @@ class UserGroupsService {
|
|
|
33856
32962
|
}
|
|
33857
32963
|
}
|
|
33858
32964
|
|
|
33859
|
-
export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService,
|
|
32965
|
+
export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService, AiIndexService, AiMarketingService, AiMediaService, AiMentorService, AiPromptService, AlignMentorBubbleEnum, AnalyticsService, ApiError, AudienceService, BlankEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, ComponentBlockTypeEnum, CoreService, CourseCreationTaskStatusEnum, CredentialsService, DepartmentsService, EngagementService, FeaturesService, FinanceService, GooglePayAccountResponseStatusEnum, GreetingMethodEnum, InstitutionTypeEnum, ItemTypeEnum, KindEnum, MediaResourcesService, MediaTypeEnum, MentorVisibilityEnum, ModeEnum, 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, TargetSystemEnum, ThemeEnum, TrainingStatusEnum, TransportEnum, TypeC42Enum, UserGroupsService };
|
|
33860
32966
|
//# sourceMappingURL=index.esm.js.map
|