@breign/client 1.0.5 → 1.0.6
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/apis/AgentApi.d.ts +5 -4
- package/dist/apis/AgentApi.js +6 -3
- package/dist/apis/EngineApi.d.ts +6 -5
- package/dist/apis/EngineApi.js +13 -7
- package/dist/apis/FilesApi.d.ts +21 -21
- package/dist/apis/FilesApi.js +42 -42
- package/dist/apis/GeneralApi.d.ts +2 -2
- package/dist/apis/GeneralApi.js +3 -3
- package/dist/apis/GuardiansApi.d.ts +54 -54
- package/dist/apis/GuardiansApi.js +91 -91
- package/dist/apis/KnowledgeApi.d.ts +72 -72
- package/dist/apis/KnowledgeApi.js +152 -152
- package/dist/apis/ManifestsApi.d.ts +28 -28
- package/dist/apis/ManifestsApi.js +45 -45
- package/dist/apis/MetricsApi.d.ts +14 -14
- package/dist/apis/MetricsApi.js +18 -18
- package/dist/apis/OrganizationsApi.d.ts +3 -3
- package/dist/apis/OrganizationsApi.js +4 -4
- package/dist/apis/PromptsApi.d.ts +31 -31
- package/dist/apis/PromptsApi.js +60 -60
- package/dist/apis/RemotesApi.d.ts +3 -3
- package/dist/apis/RemotesApi.js +4 -4
- package/dist/apis/ToolsApi.d.ts +6 -6
- package/dist/apis/ToolsApi.js +8 -8
- package/dist/models/AgentPatchEngineUio.d.ts +38 -0
- package/dist/models/AgentPatchEngineUio.js +54 -0
- package/dist/models/AgentPatchUio.d.ts +4 -4
- package/dist/models/AgentPatchUio.js +3 -3
- package/dist/models/AgentRequestUio.d.ts +1 -1
- package/dist/models/AgentRequestUio.js +1 -3
- package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
- package/dist/models/ChatMessageAudioInnerUio.js +54 -0
- package/dist/models/ChatMessageUio.d.ts +7 -0
- package/dist/models/ChatMessageUio.js +3 -0
- package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
- package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
- package/dist/models/ChatUio.d.ts +3 -3
- package/dist/models/ChatUio.js +3 -3
- package/dist/models/DefaultEngineRequestUio.d.ts +1 -7
- package/dist/models/DefaultEngineRequestUio.js +3 -7
- package/dist/models/EngineUio.d.ts +4 -7
- package/dist/models/EngineUio.js +6 -7
- package/dist/models/GuardianCreateRequestUio.d.ts +7 -0
- package/dist/models/GuardianCreateRequestUio.js +5 -0
- package/dist/models/GuardianEngineUio.d.ts +0 -7
- package/dist/models/GuardianEngineUio.js +0 -5
- package/dist/models/GuardianPutRequestUio.d.ts +7 -0
- package/dist/models/GuardianPutRequestUio.js +3 -0
- package/dist/models/GuardianTypeUio.d.ts +26 -0
- package/dist/models/GuardianTypeUio.js +52 -0
- package/dist/models/GuardianUio.d.ts +7 -0
- package/dist/models/GuardianUio.js +5 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -0
- package/dist/models/ProviderCreateRequestUio.d.ts +4 -9
- package/dist/models/ProviderCreateRequestUio.js +4 -9
- package/dist/models/ProviderTypeUio.d.ts +27 -0
- package/dist/models/ProviderTypeUio.js +53 -0
- package/dist/models/ProviderUio.d.ts +4 -9
- package/dist/models/ProviderUio.js +4 -9
- package/dist/models/index.d.ts +6 -5
- package/dist/models/index.js +6 -5
- package/dist/openapi.json +171 -81
- package/package.json +1 -1
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.d.ts +0 -56
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.js +0 -56
- package/dist/models/DuplicateAgent201ResponseUio.d.ts +0 -32
- package/dist/models/DuplicateAgent201ResponseUio.js +0 -50
- package/dist/models/EngineTypeUio.d.ts +0 -25
- package/dist/models/EngineTypeUio.js +0 -51
- package/dist/models/GuardianEngineTypeUio.d.ts +0 -26
- package/dist/models/GuardianEngineTypeUio.js +0 -52
- package/dist/models/GuardianExcludedAgentsRequestUio.d.ts +0 -32
- package/dist/models/GuardianExcludedAgentsRequestUio.js +0 -50
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio,
|
|
13
|
+
import type { AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, FileCreationRequestUio, FileCreationResponseUio, S3UploadBodyUio } from '../models/index';
|
|
14
14
|
export interface AddModuleRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
agentModuleUio: AgentModuleUio;
|
|
@@ -58,6 +58,7 @@ export interface GetAgentMetricsOverviewRequest {
|
|
|
58
58
|
}
|
|
59
59
|
export interface GetConversationsForAgentRequest {
|
|
60
60
|
agentId: string;
|
|
61
|
+
page?: number;
|
|
61
62
|
}
|
|
62
63
|
export interface GetFlowRequest {
|
|
63
64
|
agentId: string;
|
|
@@ -164,12 +165,12 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
164
165
|
* Duplicates an agent and returns the new agent
|
|
165
166
|
* Duplicate an agent
|
|
166
167
|
*/
|
|
167
|
-
duplicateAgentRaw(requestParameters: DuplicateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
168
|
+
duplicateAgentRaw(requestParameters: DuplicateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithIdUio>>;
|
|
168
169
|
/**
|
|
169
170
|
* Duplicates an agent and returns the new agent
|
|
170
171
|
* Duplicate an agent
|
|
171
172
|
*/
|
|
172
|
-
duplicateAgent(agentId: string, agentDuplicateRequestUio: AgentDuplicateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
173
|
+
duplicateAgent(agentId: string, agentDuplicateRequestUio: AgentDuplicateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
|
|
173
174
|
/**
|
|
174
175
|
* Get a specific agent by ID
|
|
175
176
|
*/
|
|
@@ -227,7 +228,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
227
228
|
* Get conversations for an agent
|
|
228
229
|
* Get conversations for an agent
|
|
229
230
|
*/
|
|
230
|
-
getConversationsForAgent(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
231
|
+
getConversationsForAgent(agentId: string, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
231
232
|
/**
|
|
232
233
|
* Retrieves a specific conversation flow by ID
|
|
233
234
|
* Get a specific flow
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -266,7 +266,7 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
266
266
|
query: queryParameters,
|
|
267
267
|
body: (0, index_1.AgentDuplicateRequestUioToJSON)(requestParameters['agentDuplicateRequestUio']),
|
|
268
268
|
}, initOverrides);
|
|
269
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
269
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithIdUioFromJSON)(jsonValue));
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* Duplicates an agent and returns the new agent
|
|
@@ -446,6 +446,9 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
446
446
|
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getConversationsForAgent().');
|
|
447
447
|
}
|
|
448
448
|
const queryParameters = {};
|
|
449
|
+
if (requestParameters['page'] != null) {
|
|
450
|
+
queryParameters['page'] = requestParameters['page'];
|
|
451
|
+
}
|
|
449
452
|
const headerParameters = {};
|
|
450
453
|
if (this.configuration && this.configuration.apiKey) {
|
|
451
454
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -462,8 +465,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
462
465
|
* Get conversations for an agent
|
|
463
466
|
* Get conversations for an agent
|
|
464
467
|
*/
|
|
465
|
-
async getConversationsForAgent(agentId, initOverrides) {
|
|
466
|
-
const response = await this.getConversationsForAgentRaw({ agentId: agentId }, initOverrides);
|
|
468
|
+
async getConversationsForAgent(agentId, page, initOverrides) {
|
|
469
|
+
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page }, initOverrides);
|
|
467
470
|
return await response.value();
|
|
468
471
|
}
|
|
469
472
|
/**
|
package/dist/apis/EngineApi.d.ts
CHANGED
|
@@ -12,14 +12,15 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { BodyWithMessageUio, DefaultEngineRequestUio, ModelUio, ProviderCreateRequestUio, ProviderSimpleUio, ProviderUio, ProviderValiationRequestUio } from '../models/index';
|
|
14
14
|
export interface CreateProviderRequest {
|
|
15
|
+
organizationId: string;
|
|
15
16
|
providerCreateRequestUio: ProviderCreateRequestUio;
|
|
16
17
|
}
|
|
17
18
|
export interface DeleteProviderRequest {
|
|
18
19
|
providerId: string;
|
|
19
|
-
organizationId
|
|
20
|
+
organizationId: string;
|
|
20
21
|
}
|
|
21
22
|
export interface GetProvidersRequest {
|
|
22
|
-
organizationId
|
|
23
|
+
organizationId: string;
|
|
23
24
|
}
|
|
24
25
|
export interface GetSimpleProvidersRequest {
|
|
25
26
|
organizationId: string;
|
|
@@ -47,7 +48,7 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
47
48
|
* Create a provider for an organization
|
|
48
49
|
* Create a provider for an organization
|
|
49
50
|
*/
|
|
50
|
-
createProvider(providerCreateRequestUio: ProviderCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
51
|
+
createProvider(organizationId: string, providerCreateRequestUio: ProviderCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
51
52
|
/**
|
|
52
53
|
* Delete a provider for an organization
|
|
53
54
|
* Delete a provider for an organization
|
|
@@ -57,7 +58,7 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
57
58
|
* Delete a provider for an organization
|
|
58
59
|
* Delete a provider for an organization
|
|
59
60
|
*/
|
|
60
|
-
deleteProvider(providerId: string, organizationId
|
|
61
|
+
deleteProvider(providerId: string, organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
61
62
|
/**
|
|
62
63
|
* Get providers for an organization
|
|
63
64
|
* Get providers for an organization
|
|
@@ -67,7 +68,7 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
67
68
|
* Get providers for an organization
|
|
68
69
|
* Get providers for an organization
|
|
69
70
|
*/
|
|
70
|
-
getProviders(organizationId
|
|
71
|
+
getProviders(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProviderUio>>;
|
|
71
72
|
/**
|
|
72
73
|
* Get a simplified version of providers for an organization
|
|
73
74
|
* Get a simplified version of providers for an organization
|
package/dist/apis/EngineApi.js
CHANGED
|
@@ -58,6 +58,9 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
58
58
|
* Create a provider for an organization
|
|
59
59
|
*/
|
|
60
60
|
async createProviderRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['organizationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createProvider().');
|
|
63
|
+
}
|
|
61
64
|
if (requestParameters['providerCreateRequestUio'] == null) {
|
|
62
65
|
throw new runtime.RequiredError('providerCreateRequestUio', 'Required parameter "providerCreateRequestUio" was null or undefined when calling createProvider().');
|
|
63
66
|
}
|
|
@@ -68,7 +71,7 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
68
71
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
69
72
|
}
|
|
70
73
|
const response = await this.request({
|
|
71
|
-
path: `/engines/providers`,
|
|
74
|
+
path: `/organizations/{organizationId}/engines/providers`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
72
75
|
method: 'POST',
|
|
73
76
|
headers: headerParameters,
|
|
74
77
|
query: queryParameters,
|
|
@@ -80,8 +83,8 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
80
83
|
* Create a provider for an organization
|
|
81
84
|
* Create a provider for an organization
|
|
82
85
|
*/
|
|
83
|
-
async createProvider(providerCreateRequestUio, initOverrides) {
|
|
84
|
-
const response = await this.createProviderRaw({ providerCreateRequestUio: providerCreateRequestUio }, initOverrides);
|
|
86
|
+
async createProvider(organizationId, providerCreateRequestUio, initOverrides) {
|
|
87
|
+
const response = await this.createProviderRaw({ organizationId: organizationId, providerCreateRequestUio: providerCreateRequestUio }, initOverrides);
|
|
85
88
|
return await response.value();
|
|
86
89
|
}
|
|
87
90
|
/**
|
|
@@ -92,6 +95,9 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
92
95
|
if (requestParameters['providerId'] == null) {
|
|
93
96
|
throw new runtime.RequiredError('providerId', 'Required parameter "providerId" was null or undefined when calling deleteProvider().');
|
|
94
97
|
}
|
|
98
|
+
if (requestParameters['organizationId'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteProvider().');
|
|
100
|
+
}
|
|
95
101
|
const queryParameters = {};
|
|
96
102
|
if (requestParameters['organizationId'] != null) {
|
|
97
103
|
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
@@ -121,16 +127,16 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
121
127
|
* Get providers for an organization
|
|
122
128
|
*/
|
|
123
129
|
async getProvidersRaw(requestParameters, initOverrides) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
130
|
+
if (requestParameters['organizationId'] == null) {
|
|
131
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getProviders().');
|
|
127
132
|
}
|
|
133
|
+
const queryParameters = {};
|
|
128
134
|
const headerParameters = {};
|
|
129
135
|
if (this.configuration && this.configuration.apiKey) {
|
|
130
136
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
131
137
|
}
|
|
132
138
|
const response = await this.request({
|
|
133
|
-
path: `/engines/providers`,
|
|
139
|
+
path: `/organizations/{organizationId}/engines/providers`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
134
140
|
method: 'GET',
|
|
135
141
|
headers: headerParameters,
|
|
136
142
|
query: queryParameters,
|
package/dist/apis/FilesApi.d.ts
CHANGED
|
@@ -11,57 +11,57 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { FileCreationRequestUio, FileCreationResponseUio, FileWithDownloadUrlUio } from '../models/index';
|
|
14
|
-
export interface
|
|
15
|
-
|
|
14
|
+
export interface CreateFileRequest {
|
|
15
|
+
fileCreationRequestUio: FileCreationRequestUio;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface DeleteFileByIdRequest {
|
|
18
18
|
fileId: string;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
21
|
-
|
|
20
|
+
export interface GetFileByIdRequest {
|
|
21
|
+
fileId: string;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class FilesApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new file record and returns an upload URL (admin only)
|
|
29
|
+
* Create a new file record
|
|
30
|
+
*/
|
|
31
|
+
createFileRaw(requestParameters: CreateFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreationResponseUio>>;
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new file record and returns an upload URL (admin only)
|
|
34
|
+
* Create a new file record
|
|
35
|
+
*/
|
|
36
|
+
createFile(fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
|
|
27
37
|
/**
|
|
28
38
|
* Deletes a file by ID (admin only)
|
|
29
39
|
* Delete a file
|
|
30
40
|
*/
|
|
31
|
-
|
|
41
|
+
deleteFileByIdRaw(requestParameters: DeleteFileByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
32
42
|
/**
|
|
33
43
|
* Deletes a file by ID (admin only)
|
|
34
44
|
* Delete a file
|
|
35
45
|
*/
|
|
36
|
-
|
|
46
|
+
deleteFileById(fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
37
47
|
/**
|
|
38
48
|
* Retrieves a specific file by ID and generates a download URL (admin only)
|
|
39
49
|
* Get a file by ID
|
|
40
50
|
*/
|
|
41
|
-
|
|
51
|
+
getFileByIdRaw(requestParameters: GetFileByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileWithDownloadUrlUio>>;
|
|
42
52
|
/**
|
|
43
53
|
* Retrieves a specific file by ID and generates a download URL (admin only)
|
|
44
54
|
* Get a file by ID
|
|
45
55
|
*/
|
|
46
|
-
|
|
56
|
+
getFileById(fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileWithDownloadUrlUio>;
|
|
47
57
|
/**
|
|
48
58
|
* Retrieves a list of all files (admin only)
|
|
49
59
|
* Get all files
|
|
50
60
|
*/
|
|
51
|
-
|
|
61
|
+
getFilesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<any>>>;
|
|
52
62
|
/**
|
|
53
63
|
* Retrieves a list of all files (admin only)
|
|
54
64
|
* Get all files
|
|
55
65
|
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Creates a new file record and returns an upload URL (admin only)
|
|
59
|
-
* Create a new file record
|
|
60
|
-
*/
|
|
61
|
-
filesPostRaw(requestParameters: FilesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreationResponseUio>>;
|
|
62
|
-
/**
|
|
63
|
-
* Creates a new file record and returns an upload URL (admin only)
|
|
64
|
-
* Create a new file record
|
|
65
|
-
*/
|
|
66
|
-
filesPost(fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
|
|
66
|
+
getFiles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<any>>;
|
|
67
67
|
}
|
package/dist/apis/FilesApi.js
CHANGED
|
@@ -53,13 +53,44 @@ const index_1 = require("../models/index");
|
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
class FilesApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new file record and returns an upload URL (admin only)
|
|
58
|
+
* Create a new file record
|
|
59
|
+
*/
|
|
60
|
+
async createFileRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['fileCreationRequestUio'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('fileCreationRequestUio', 'Required parameter "fileCreationRequestUio" was null or undefined when calling createFile().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
67
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
68
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
69
|
+
}
|
|
70
|
+
const response = await this.request({
|
|
71
|
+
path: `/files`,
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: headerParameters,
|
|
74
|
+
query: queryParameters,
|
|
75
|
+
body: (0, index_1.FileCreationRequestUioToJSON)(requestParameters['fileCreationRequestUio']),
|
|
76
|
+
}, initOverrides);
|
|
77
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FileCreationResponseUioFromJSON)(jsonValue));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Creates a new file record and returns an upload URL (admin only)
|
|
81
|
+
* Create a new file record
|
|
82
|
+
*/
|
|
83
|
+
async createFile(fileCreationRequestUio, initOverrides) {
|
|
84
|
+
const response = await this.createFileRaw({ fileCreationRequestUio: fileCreationRequestUio }, initOverrides);
|
|
85
|
+
return await response.value();
|
|
86
|
+
}
|
|
56
87
|
/**
|
|
57
88
|
* Deletes a file by ID (admin only)
|
|
58
89
|
* Delete a file
|
|
59
90
|
*/
|
|
60
|
-
async
|
|
91
|
+
async deleteFileByIdRaw(requestParameters, initOverrides) {
|
|
61
92
|
if (requestParameters['fileId'] == null) {
|
|
62
|
-
throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling
|
|
93
|
+
throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling deleteFileById().');
|
|
63
94
|
}
|
|
64
95
|
const queryParameters = {};
|
|
65
96
|
const headerParameters = {};
|
|
@@ -78,16 +109,16 @@ class FilesApi extends runtime.BaseAPI {
|
|
|
78
109
|
* Deletes a file by ID (admin only)
|
|
79
110
|
* Delete a file
|
|
80
111
|
*/
|
|
81
|
-
async
|
|
82
|
-
await this.
|
|
112
|
+
async deleteFileById(fileId, initOverrides) {
|
|
113
|
+
await this.deleteFileByIdRaw({ fileId: fileId }, initOverrides);
|
|
83
114
|
}
|
|
84
115
|
/**
|
|
85
116
|
* Retrieves a specific file by ID and generates a download URL (admin only)
|
|
86
117
|
* Get a file by ID
|
|
87
118
|
*/
|
|
88
|
-
async
|
|
119
|
+
async getFileByIdRaw(requestParameters, initOverrides) {
|
|
89
120
|
if (requestParameters['fileId'] == null) {
|
|
90
|
-
throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling
|
|
121
|
+
throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling getFileById().');
|
|
91
122
|
}
|
|
92
123
|
const queryParameters = {};
|
|
93
124
|
const headerParameters = {};
|
|
@@ -106,15 +137,15 @@ class FilesApi extends runtime.BaseAPI {
|
|
|
106
137
|
* Retrieves a specific file by ID and generates a download URL (admin only)
|
|
107
138
|
* Get a file by ID
|
|
108
139
|
*/
|
|
109
|
-
async
|
|
110
|
-
const response = await this.
|
|
140
|
+
async getFileById(fileId, initOverrides) {
|
|
141
|
+
const response = await this.getFileByIdRaw({ fileId: fileId }, initOverrides);
|
|
111
142
|
return await response.value();
|
|
112
143
|
}
|
|
113
144
|
/**
|
|
114
145
|
* Retrieves a list of all files (admin only)
|
|
115
146
|
* Get all files
|
|
116
147
|
*/
|
|
117
|
-
async
|
|
148
|
+
async getFilesRaw(initOverrides) {
|
|
118
149
|
const queryParameters = {};
|
|
119
150
|
const headerParameters = {};
|
|
120
151
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -132,39 +163,8 @@ class FilesApi extends runtime.BaseAPI {
|
|
|
132
163
|
* Retrieves a list of all files (admin only)
|
|
133
164
|
* Get all files
|
|
134
165
|
*/
|
|
135
|
-
async
|
|
136
|
-
const response = await this.
|
|
137
|
-
return await response.value();
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Creates a new file record and returns an upload URL (admin only)
|
|
141
|
-
* Create a new file record
|
|
142
|
-
*/
|
|
143
|
-
async filesPostRaw(requestParameters, initOverrides) {
|
|
144
|
-
if (requestParameters['fileCreationRequestUio'] == null) {
|
|
145
|
-
throw new runtime.RequiredError('fileCreationRequestUio', 'Required parameter "fileCreationRequestUio" was null or undefined when calling filesPost().');
|
|
146
|
-
}
|
|
147
|
-
const queryParameters = {};
|
|
148
|
-
const headerParameters = {};
|
|
149
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
150
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
151
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
152
|
-
}
|
|
153
|
-
const response = await this.request({
|
|
154
|
-
path: `/files`,
|
|
155
|
-
method: 'POST',
|
|
156
|
-
headers: headerParameters,
|
|
157
|
-
query: queryParameters,
|
|
158
|
-
body: (0, index_1.FileCreationRequestUioToJSON)(requestParameters['fileCreationRequestUio']),
|
|
159
|
-
}, initOverrides);
|
|
160
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FileCreationResponseUioFromJSON)(jsonValue));
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Creates a new file record and returns an upload URL (admin only)
|
|
164
|
-
* Create a new file record
|
|
165
|
-
*/
|
|
166
|
-
async filesPost(fileCreationRequestUio, initOverrides) {
|
|
167
|
-
const response = await this.filesPostRaw({ fileCreationRequestUio: fileCreationRequestUio }, initOverrides);
|
|
166
|
+
async getFiles(initOverrides) {
|
|
167
|
+
const response = await this.getFilesRaw(initOverrides);
|
|
168
168
|
return await response.value();
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -19,10 +19,10 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
19
19
|
* Comprehensive health check that verifies system components
|
|
20
20
|
* Health check endpoint
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
getHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HealthCheckResponseUio>>;
|
|
23
23
|
/**
|
|
24
24
|
* Comprehensive health check that verifies system components
|
|
25
25
|
* Health check endpoint
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
getHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HealthCheckResponseUio>;
|
|
28
28
|
}
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -57,7 +57,7 @@ class GeneralApi extends runtime.BaseAPI {
|
|
|
57
57
|
* Comprehensive health check that verifies system components
|
|
58
58
|
* Health check endpoint
|
|
59
59
|
*/
|
|
60
|
-
async
|
|
60
|
+
async getHealthRaw(initOverrides) {
|
|
61
61
|
const queryParameters = {};
|
|
62
62
|
const headerParameters = {};
|
|
63
63
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -75,8 +75,8 @@ class GeneralApi extends runtime.BaseAPI {
|
|
|
75
75
|
* Comprehensive health check that verifies system components
|
|
76
76
|
* Health check endpoint
|
|
77
77
|
*/
|
|
78
|
-
async
|
|
79
|
-
const response = await this.
|
|
78
|
+
async getHealth(initOverrides) {
|
|
79
|
+
const response = await this.getHealthRaw(initOverrides);
|
|
80
80
|
return await response.value();
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -10,113 +10,113 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BodyWithMessageUio, GuardianCreateRequestUio,
|
|
14
|
-
export interface
|
|
13
|
+
import type { BodyWithMessageUio, GuardianCreateRequestUio, GuardianPutRequestUio, GuardianUio } from '../models/index';
|
|
14
|
+
export interface CreateGuardianForAgentRequest {
|
|
15
15
|
agentId: string;
|
|
16
|
+
guardianCreateRequestUio: GuardianCreateRequestUio;
|
|
16
17
|
}
|
|
17
|
-
export interface
|
|
18
|
-
|
|
18
|
+
export interface CreateGuardianForOrganizationRequest {
|
|
19
|
+
organizationId: string;
|
|
19
20
|
guardianCreateRequestUio: GuardianCreateRequestUio;
|
|
20
21
|
}
|
|
21
|
-
export interface
|
|
22
|
+
export interface DeleteGuardianRequest {
|
|
22
23
|
guardianId: string;
|
|
23
24
|
}
|
|
24
|
-
export interface
|
|
25
|
+
export interface GetGuardianRequest {
|
|
25
26
|
guardianId: string;
|
|
26
|
-
guardianExcludedAgentsRequestUio: GuardianExcludedAgentsRequestUio;
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface GetGuardiansForAgentRequest {
|
|
29
|
+
agentId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GetGuardiansForOrganizationRequest {
|
|
32
|
+
organizationId: string;
|
|
33
|
+
}
|
|
34
|
+
export interface UpdateExcludedAgentsRequest {
|
|
29
35
|
guardianId: string;
|
|
36
|
+
requestBody: Array<string>;
|
|
30
37
|
}
|
|
31
|
-
export interface
|
|
38
|
+
export interface UpdateGuardianRequest {
|
|
32
39
|
guardianId: string;
|
|
33
40
|
guardianPutRequestUio: GuardianPutRequestUio;
|
|
34
41
|
}
|
|
35
|
-
export interface OrganizationsOrganizationIdGuardiansGetRequest {
|
|
36
|
-
organizationId: string;
|
|
37
|
-
}
|
|
38
|
-
export interface OrganizationsOrganizationIdGuardiansPostRequest {
|
|
39
|
-
organizationId: string;
|
|
40
|
-
guardianCreateRequestUio: GuardianCreateRequestUio;
|
|
41
|
-
}
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
45
|
export declare class GuardiansApi extends runtime.BaseAPI {
|
|
46
|
-
/**
|
|
47
|
-
* Get all guardians for a specific agent
|
|
48
|
-
*/
|
|
49
|
-
agentsAgentIdGuardiansGetRaw(requestParameters: AgentsAgentIdGuardiansGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GuardianUio>>>;
|
|
50
|
-
/**
|
|
51
|
-
* Get all guardians for a specific agent
|
|
52
|
-
*/
|
|
53
|
-
agentsAgentIdGuardiansGet(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GuardianUio>>;
|
|
54
46
|
/**
|
|
55
47
|
* Creates a new guardian for content moderation
|
|
56
48
|
* Create a new guardian for an agent
|
|
57
49
|
*/
|
|
58
|
-
|
|
50
|
+
createGuardianForAgentRaw(requestParameters: CreateGuardianForAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
59
51
|
/**
|
|
60
52
|
* Creates a new guardian for content moderation
|
|
61
53
|
* Create a new guardian for an agent
|
|
62
54
|
*/
|
|
63
|
-
|
|
55
|
+
createGuardianForAgent(agentId: string, guardianCreateRequestUio: GuardianCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
64
56
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
57
|
+
* Creates a new organisation-level guardian for content moderation
|
|
58
|
+
* Create a new guardian for an organisation
|
|
67
59
|
*/
|
|
68
|
-
|
|
60
|
+
createGuardianForOrganizationRaw(requestParameters: CreateGuardianForOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
69
61
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
62
|
+
* Creates a new organisation-level guardian for content moderation
|
|
63
|
+
* Create a new guardian for an organisation
|
|
72
64
|
*/
|
|
73
|
-
|
|
65
|
+
createGuardianForOrganization(organizationId: string, guardianCreateRequestUio: GuardianCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
74
66
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
67
|
+
* Deletes a guardian by ID
|
|
68
|
+
* Delete a guardian
|
|
77
69
|
*/
|
|
78
|
-
|
|
70
|
+
deleteGuardianRaw(requestParameters: DeleteGuardianRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
79
71
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
72
|
+
* Deletes a guardian by ID
|
|
73
|
+
* Delete a guardian
|
|
82
74
|
*/
|
|
83
|
-
|
|
75
|
+
deleteGuardian(guardianId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
84
76
|
/**
|
|
85
77
|
* Get a specific guardian by ID
|
|
86
78
|
*/
|
|
87
|
-
|
|
79
|
+
getGuardianRaw(requestParameters: GetGuardianRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
88
80
|
/**
|
|
89
81
|
* Get a specific guardian by ID
|
|
90
82
|
*/
|
|
91
|
-
|
|
83
|
+
getGuardian(guardianId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
92
84
|
/**
|
|
93
|
-
*
|
|
94
|
-
* Update a guardian
|
|
85
|
+
* Get all guardians for a specific agent
|
|
95
86
|
*/
|
|
96
|
-
|
|
87
|
+
getGuardiansForAgentRaw(requestParameters: GetGuardiansForAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GuardianUio>>>;
|
|
97
88
|
/**
|
|
98
|
-
*
|
|
99
|
-
* Update a guardian
|
|
89
|
+
* Get all guardians for a specific agent
|
|
100
90
|
*/
|
|
101
|
-
|
|
91
|
+
getGuardiansForAgent(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GuardianUio>>;
|
|
102
92
|
/**
|
|
103
93
|
* Retrieves all guardians associated with the specified organization
|
|
104
94
|
* Get all guardians for an organization
|
|
105
95
|
*/
|
|
106
|
-
|
|
96
|
+
getGuardiansForOrganizationRaw(requestParameters: GetGuardiansForOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GuardianUio>>>;
|
|
107
97
|
/**
|
|
108
98
|
* Retrieves all guardians associated with the specified organization
|
|
109
99
|
* Get all guardians for an organization
|
|
110
100
|
*/
|
|
111
|
-
|
|
101
|
+
getGuardiansForOrganization(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GuardianUio>>;
|
|
112
102
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
103
|
+
* Updates the excluded agents for a guardian
|
|
104
|
+
* Update excluded agents for a guardian
|
|
115
105
|
*/
|
|
116
|
-
|
|
106
|
+
updateExcludedAgentsRaw(requestParameters: UpdateExcludedAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
117
107
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
108
|
+
* Updates the excluded agents for a guardian
|
|
109
|
+
* Update excluded agents for a guardian
|
|
110
|
+
*/
|
|
111
|
+
updateExcludedAgents(guardianId: string, requestBody: Array<string>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
112
|
+
/**
|
|
113
|
+
* Updates an existing guardian\'s configuration
|
|
114
|
+
* Update a guardian
|
|
115
|
+
*/
|
|
116
|
+
updateGuardianRaw(requestParameters: UpdateGuardianRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
117
|
+
/**
|
|
118
|
+
* Updates an existing guardian\'s configuration
|
|
119
|
+
* Update a guardian
|
|
120
120
|
*/
|
|
121
|
-
|
|
121
|
+
updateGuardian(guardianId: string, guardianPutRequestUio: GuardianPutRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
122
122
|
}
|