@breign/client 1.0.75 → 1.0.76
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 +95 -3
- package/dist/apis/AgentApi.js +218 -5
- package/dist/apis/AppApi.d.ts +73 -2
- package/dist/apis/AppApi.js +169 -2
- package/dist/apis/KnowledgeApi.d.ts +27 -1
- package/dist/apis/KnowledgeApi.js +60 -0
- package/dist/apis/OrganizationsApi.d.ts +67 -1
- package/dist/apis/OrganizationsApi.js +156 -0
- package/dist/apis/PromptsApi.d.ts +3 -3
- package/dist/apis/PromptsApi.js +1 -1
- package/dist/apis/ToolsApi.d.ts +26 -1
- package/dist/apis/ToolsApi.js +59 -0
- package/dist/models/AdvancedFlowEditorEdgeUio.d.ts +56 -0
- package/dist/models/AdvancedFlowEditorEdgeUio.js +62 -0
- package/dist/models/AdvancedFlowEditorNodePositionUio.d.ts +38 -0
- package/dist/models/AdvancedFlowEditorNodePositionUio.js +54 -0
- package/dist/models/AdvancedFlowEditorNodeUio.d.ts +53 -0
- package/dist/models/AdvancedFlowEditorNodeUio.js +63 -0
- package/dist/models/AdvancedFlowEditorUio.d.ts +46 -0
- package/dist/models/AdvancedFlowEditorUio.js +60 -0
- package/dist/models/AdvancedFlowEditorUpdateRequestUio.d.ts +40 -0
- package/dist/models/AdvancedFlowEditorUpdateRequestUio.js +56 -0
- package/dist/models/AgentFlowCreateUio.d.ts +6 -0
- package/dist/models/AgentFlowCreateUio.js +2 -0
- package/dist/models/AgentFlowUio.d.ts +6 -0
- package/dist/models/AgentFlowUio.js +2 -0
- package/dist/models/AnimationCreateRequestUio.d.ts +56 -0
- package/dist/models/AnimationCreateRequestUio.js +64 -0
- package/dist/models/AnimationUio.d.ts +56 -0
- package/dist/models/AnimationUio.js +64 -0
- package/dist/models/AppCommandsInnerUio.d.ts +46 -0
- package/dist/models/AppCommandsInnerUio.js +56 -0
- package/dist/models/AppUio.d.ts +17 -3
- package/dist/models/AppUio.js +9 -3
- package/dist/models/AppUpdateRequestUio.d.ts +8 -0
- package/dist/models/AppUpdateRequestUio.js +2 -0
- package/dist/models/Conversation1Uio.d.ts +46 -0
- package/dist/models/Conversation1Uio.js +60 -0
- package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.d.ts +32 -0
- package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.js +48 -0
- package/dist/models/ConversationMessagesInnerFlowNodeUio.d.ts +51 -0
- package/dist/models/ConversationMessagesInnerFlowNodeUio.js +55 -0
- package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.d.ts +38 -0
- package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.js +54 -0
- package/dist/models/ConversationMessagesInnerUio.d.ts +79 -0
- package/dist/models/ConversationMessagesInnerUio.js +73 -0
- package/dist/models/ConversationMetricsInnerSourceUio.d.ts +51 -0
- package/dist/models/ConversationMetricsInnerSourceUio.js +65 -0
- package/dist/models/ConversationMetricsInnerUio.d.ts +46 -0
- package/dist/models/ConversationMetricsInnerUio.js +60 -0
- package/dist/models/ConversationMetricsInnerValueInnerCostUio.d.ts +38 -0
- package/dist/models/ConversationMetricsInnerValueInnerCostUio.js +54 -0
- package/dist/models/ConversationMetricsInnerValueInnerUio.d.ts +63 -0
- package/dist/models/ConversationMetricsInnerValueInnerUio.js +69 -0
- package/dist/models/ConversationUio.d.ts +56 -6
- package/dist/models/ConversationUio.js +27 -7
- package/dist/models/FlowContentsUio.d.ts +6 -0
- package/dist/models/FlowContentsUio.js +2 -0
- package/dist/models/FlowEditorNodeUio.d.ts +39 -0
- package/dist/models/FlowEditorNodeUio.js +55 -0
- package/dist/models/FlowEditorUio.d.ts +39 -0
- package/dist/models/FlowEditorUio.js +55 -0
- package/dist/models/FlowEditorUpdateRequestUio.d.ts +33 -0
- package/dist/models/FlowEditorUpdateRequestUio.js +51 -0
- package/dist/models/KnowledgeFilesByIdsRequestUio.d.ts +32 -0
- package/dist/models/KnowledgeFilesByIdsRequestUio.js +50 -0
- package/dist/models/OrganizationUio.d.ts +20 -0
- package/dist/models/OrganizationUio.js +10 -0
- package/dist/models/OrganizationUserUio.d.ts +38 -0
- package/dist/models/OrganizationUserUio.js +54 -0
- package/dist/models/RoleCreateRequestUio.d.ts +44 -0
- package/dist/models/RoleCreateRequestUio.js +56 -0
- package/dist/models/SequenceContentsUio.d.ts +38 -0
- package/dist/models/SequenceContentsUio.js +50 -0
- package/dist/models/SequenceCreateRequestUio.d.ts +45 -0
- package/dist/models/SequenceCreateRequestUio.js +59 -0
- package/dist/models/SequenceUio.d.ts +45 -0
- package/dist/models/SequenceUio.js +59 -0
- package/dist/models/ToolUpdateRequestUio.d.ts +62 -0
- package/dist/models/ToolUpdateRequestUio.js +56 -0
- package/dist/models/index.d.ts +27 -3
- package/dist/models/index.js +27 -3
- package/dist/openapi.json +1504 -159
- package/package.json +1 -1
- package/dist/models/AppSequencesInnerUio.d.ts +0 -38
- package/dist/models/AppSequencesInnerUio.js +0 -50
- package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +0 -32
- package/dist/models/ConversationFlowNodeEntrypointsUio.js +0 -48
- package/dist/models/ConversationFlowNodeUio.d.ts +0 -51
- package/dist/models/ConversationFlowNodeUio.js +0 -55
package/dist/apis/AppApi.js
CHANGED
|
@@ -53,6 +53,40 @@ const index_1 = require("../models/index");
|
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
class AppApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Add an animation to an app
|
|
58
|
+
* Add an animation to an app
|
|
59
|
+
*/
|
|
60
|
+
async addAnimationRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['appId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling addAnimation().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['animationCreateRequestUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('animationCreateRequestUio', 'Required parameter "animationCreateRequestUio" was null or undefined when calling addAnimation().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
71
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/apps/{appId}/animations`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.AnimationCreateRequestUioToJSON)(requestParameters['animationCreateRequestUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithIdUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Add an animation to an app
|
|
84
|
+
* Add an animation to an app
|
|
85
|
+
*/
|
|
86
|
+
async addAnimation(appId, animationCreateRequestUio, initOverrides) {
|
|
87
|
+
const response = await this.addAnimationRaw({ appId: appId, animationCreateRequestUio: animationCreateRequestUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
56
90
|
/**
|
|
57
91
|
* Add file to app configuration
|
|
58
92
|
* Add file to app configuration
|
|
@@ -90,6 +124,40 @@ class AppApi extends runtime.BaseAPI {
|
|
|
90
124
|
const response = await this.addAppConfigurationFileRaw({ appId: appId, type: type, fileCreationRequestUio: fileCreationRequestUio }, initOverrides);
|
|
91
125
|
return await response.value();
|
|
92
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Add a sequence to an app
|
|
129
|
+
* Add a sequence to an app
|
|
130
|
+
*/
|
|
131
|
+
async addSequenceRaw(requestParameters, initOverrides) {
|
|
132
|
+
if (requestParameters['appId'] == null) {
|
|
133
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling addSequence().');
|
|
134
|
+
}
|
|
135
|
+
if (requestParameters['sequenceCreateRequestUio'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('sequenceCreateRequestUio', 'Required parameter "sequenceCreateRequestUio" was null or undefined when calling addSequence().');
|
|
137
|
+
}
|
|
138
|
+
const queryParameters = {};
|
|
139
|
+
const headerParameters = {};
|
|
140
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
141
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
143
|
+
}
|
|
144
|
+
const response = await this.request({
|
|
145
|
+
path: `/apps/{appId}/sequences`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
146
|
+
method: 'POST',
|
|
147
|
+
headers: headerParameters,
|
|
148
|
+
query: queryParameters,
|
|
149
|
+
body: (0, index_1.SequenceCreateRequestUioToJSON)(requestParameters['sequenceCreateRequestUio']),
|
|
150
|
+
}, initOverrides);
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithIdUioFromJSON)(jsonValue));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Add a sequence to an app
|
|
155
|
+
* Add a sequence to an app
|
|
156
|
+
*/
|
|
157
|
+
async addSequence(appId, sequenceCreateRequestUio, initOverrides) {
|
|
158
|
+
const response = await this.addSequenceRaw({ appId: appId, sequenceCreateRequestUio: sequenceCreateRequestUio }, initOverrides);
|
|
159
|
+
return await response.value();
|
|
160
|
+
}
|
|
93
161
|
/**
|
|
94
162
|
* Check if audio filler exists
|
|
95
163
|
* Check if audio filler exists
|
|
@@ -462,6 +530,38 @@ class AppApi extends runtime.BaseAPI {
|
|
|
462
530
|
const response = await this.getAppConfigurationPropertyRaw({ appId: appId, property: property }, initOverrides);
|
|
463
531
|
return await response.value();
|
|
464
532
|
}
|
|
533
|
+
/**
|
|
534
|
+
* Get paginated conversations for an app
|
|
535
|
+
* Get conversations for an app
|
|
536
|
+
*/
|
|
537
|
+
async getAppConversationsRaw(requestParameters, initOverrides) {
|
|
538
|
+
if (requestParameters['appId'] == null) {
|
|
539
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling getAppConversations().');
|
|
540
|
+
}
|
|
541
|
+
const queryParameters = {};
|
|
542
|
+
if (requestParameters['page'] != null) {
|
|
543
|
+
queryParameters['page'] = requestParameters['page'];
|
|
544
|
+
}
|
|
545
|
+
const headerParameters = {};
|
|
546
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
547
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
548
|
+
}
|
|
549
|
+
const response = await this.request({
|
|
550
|
+
path: `/apps/{appId}/conversations`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
551
|
+
method: 'GET',
|
|
552
|
+
headers: headerParameters,
|
|
553
|
+
query: queryParameters,
|
|
554
|
+
}, initOverrides);
|
|
555
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ConversationUioFromJSON));
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Get paginated conversations for an app
|
|
559
|
+
* Get conversations for an app
|
|
560
|
+
*/
|
|
561
|
+
async getAppConversations(appId, page, initOverrides) {
|
|
562
|
+
const response = await this.getAppConversationsRaw({ appId: appId, page: page }, initOverrides);
|
|
563
|
+
return await response.value();
|
|
564
|
+
}
|
|
465
565
|
/**
|
|
466
566
|
* Probe the app
|
|
467
567
|
* Probe the app
|
|
@@ -660,6 +760,70 @@ class AppApi extends runtime.BaseAPI {
|
|
|
660
760
|
async refreshAppProbe(appId, instanceId, initOverrides) {
|
|
661
761
|
await this.refreshAppProbeRaw({ appId: appId, instanceId: instanceId }, initOverrides);
|
|
662
762
|
}
|
|
763
|
+
/**
|
|
764
|
+
* Remove an animation from an app
|
|
765
|
+
* Remove an animation from an app
|
|
766
|
+
*/
|
|
767
|
+
async removeAnimationRaw(requestParameters, initOverrides) {
|
|
768
|
+
if (requestParameters['appId'] == null) {
|
|
769
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling removeAnimation().');
|
|
770
|
+
}
|
|
771
|
+
if (requestParameters['animationId'] == null) {
|
|
772
|
+
throw new runtime.RequiredError('animationId', 'Required parameter "animationId" was null or undefined when calling removeAnimation().');
|
|
773
|
+
}
|
|
774
|
+
const queryParameters = {};
|
|
775
|
+
const headerParameters = {};
|
|
776
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
777
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
778
|
+
}
|
|
779
|
+
const response = await this.request({
|
|
780
|
+
path: `/apps/{appId}/animations/{animationId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"animationId"}}`, encodeURIComponent(String(requestParameters['animationId']))),
|
|
781
|
+
method: 'DELETE',
|
|
782
|
+
headers: headerParameters,
|
|
783
|
+
query: queryParameters,
|
|
784
|
+
}, initOverrides);
|
|
785
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Remove an animation from an app
|
|
789
|
+
* Remove an animation from an app
|
|
790
|
+
*/
|
|
791
|
+
async removeAnimation(appId, animationId, initOverrides) {
|
|
792
|
+
const response = await this.removeAnimationRaw({ appId: appId, animationId: animationId }, initOverrides);
|
|
793
|
+
return await response.value();
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Remove a sequence from an app
|
|
797
|
+
* Remove a sequence from an app
|
|
798
|
+
*/
|
|
799
|
+
async removeSequenceRaw(requestParameters, initOverrides) {
|
|
800
|
+
if (requestParameters['appId'] == null) {
|
|
801
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling removeSequence().');
|
|
802
|
+
}
|
|
803
|
+
if (requestParameters['sequenceId'] == null) {
|
|
804
|
+
throw new runtime.RequiredError('sequenceId', 'Required parameter "sequenceId" was null or undefined when calling removeSequence().');
|
|
805
|
+
}
|
|
806
|
+
const queryParameters = {};
|
|
807
|
+
const headerParameters = {};
|
|
808
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
809
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
810
|
+
}
|
|
811
|
+
const response = await this.request({
|
|
812
|
+
path: `/apps/{appId}/sequences/{sequenceId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"sequenceId"}}`, encodeURIComponent(String(requestParameters['sequenceId']))),
|
|
813
|
+
method: 'DELETE',
|
|
814
|
+
headers: headerParameters,
|
|
815
|
+
query: queryParameters,
|
|
816
|
+
}, initOverrides);
|
|
817
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* Remove a sequence from an app
|
|
821
|
+
* Remove a sequence from an app
|
|
822
|
+
*/
|
|
823
|
+
async removeSequence(appId, sequenceId, initOverrides) {
|
|
824
|
+
const response = await this.removeSequenceRaw({ appId: appId, sequenceId: sequenceId }, initOverrides);
|
|
825
|
+
return await response.value();
|
|
826
|
+
}
|
|
663
827
|
/**
|
|
664
828
|
* Make the app say something
|
|
665
829
|
* Make the app say something
|
|
@@ -786,6 +950,9 @@ class AppApi extends runtime.BaseAPI {
|
|
|
786
950
|
throw new runtime.RequiredError('appChatSubmitMessageRequestUio', 'Required parameter "appChatSubmitMessageRequestUio" was null or undefined when calling submitNewMessageToChat().');
|
|
787
951
|
}
|
|
788
952
|
const queryParameters = {};
|
|
953
|
+
if (requestParameters['instanceId'] != null) {
|
|
954
|
+
queryParameters['instanceId'] = requestParameters['instanceId'];
|
|
955
|
+
}
|
|
789
956
|
const headerParameters = {};
|
|
790
957
|
headerParameters['Content-Type'] = 'application/json';
|
|
791
958
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -804,8 +971,8 @@ class AppApi extends runtime.BaseAPI {
|
|
|
804
971
|
* Submit a new message to a chat
|
|
805
972
|
* Submit a new message to a chat
|
|
806
973
|
*/
|
|
807
|
-
async submitNewMessageToChat(appId, chatId, appChatSubmitMessageRequestUio, initOverrides) {
|
|
808
|
-
const response = await this.submitNewMessageToChatRaw({ appId: appId, chatId: chatId, appChatSubmitMessageRequestUio: appChatSubmitMessageRequestUio }, initOverrides);
|
|
974
|
+
async submitNewMessageToChat(appId, chatId, appChatSubmitMessageRequestUio, instanceId, initOverrides) {
|
|
975
|
+
const response = await this.submitNewMessageToChatRaw({ appId: appId, chatId: chatId, appChatSubmitMessageRequestUio: appChatSubmitMessageRequestUio, instanceId: instanceId }, initOverrides);
|
|
809
976
|
return await response.value();
|
|
810
977
|
}
|
|
811
978
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgentModuleUio, BodyWithMessageUio, DocumentAddRequestUio, FileCreationRequestUio, FileCreationResponseUio, FileStatusUio, FileStatusUpdateRequestUio, FileWithDownloadUrlUio, ImageKnowledgeUio, ImportFileToAgentKnowledge200ResponseUio, KnowledgeBaseUio, KnowledgeBaseWithFilesUio, S3UploadBodyUio } from '../models/index';
|
|
13
|
+
import type { AgentModuleUio, BodyWithMessageUio, DocumentAddRequestUio, FileCreationRequestUio, FileCreationResponseUio, FileStatusUio, FileStatusUpdateRequestUio, FileWithDownloadUrlUio, ImageKnowledgeUio, ImportFileToAgentKnowledge200ResponseUio, KnowledgeBaseUio, KnowledgeBaseWithFilesUio, KnowledgeFileSummaryUio, KnowledgeFilesByIdsRequestUio, S3UploadBodyUio } from '../models/index';
|
|
14
14
|
export interface AddDocumentToKnowledgeBaseRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
documentAddRequestUio: DocumentAddRequestUio;
|
|
@@ -53,6 +53,12 @@ export interface GetFileFromAgentKnowledgeRequest {
|
|
|
53
53
|
export interface GetImagesFromKnowledgeBaseLibraryRequest {
|
|
54
54
|
knowledgebaseId: string;
|
|
55
55
|
}
|
|
56
|
+
export interface GetInactiveKnowledgeFileIdsRequest {
|
|
57
|
+
knowledgebaseId: string;
|
|
58
|
+
}
|
|
59
|
+
export interface GetKnowledgeFilesByIdsRequest {
|
|
60
|
+
knowledgeFilesByIdsRequestUio: KnowledgeFilesByIdsRequestUio;
|
|
61
|
+
}
|
|
56
62
|
export interface ImportFileToAgentKnowledgeRequest {
|
|
57
63
|
agentId: string;
|
|
58
64
|
file: Blob;
|
|
@@ -188,6 +194,26 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
|
|
|
188
194
|
* Get all knowledge images from a knowledge base
|
|
189
195
|
*/
|
|
190
196
|
getImagesFromKnowledgeBaseLibrary(knowledgebaseId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageKnowledgeUio>;
|
|
197
|
+
/**
|
|
198
|
+
* Returns an array of file IDs that are marked as inactive in the given knowledge base.
|
|
199
|
+
* Get inactive knowledge file IDs for a knowledge base
|
|
200
|
+
*/
|
|
201
|
+
getInactiveKnowledgeFileIdsRaw(requestParameters: GetInactiveKnowledgeFileIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
202
|
+
/**
|
|
203
|
+
* Returns an array of file IDs that are marked as inactive in the given knowledge base.
|
|
204
|
+
* Get inactive knowledge file IDs for a knowledge base
|
|
205
|
+
*/
|
|
206
|
+
getInactiveKnowledgeFileIds(knowledgebaseId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
207
|
+
/**
|
|
208
|
+
* Returns knowledge file summaries (id and name) for the given file IDs.
|
|
209
|
+
* Get knowledge files by IDs
|
|
210
|
+
*/
|
|
211
|
+
getKnowledgeFilesByIdsRaw(requestParameters: GetKnowledgeFilesByIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<KnowledgeFileSummaryUio>>>;
|
|
212
|
+
/**
|
|
213
|
+
* Returns knowledge file summaries (id and name) for the given file IDs.
|
|
214
|
+
* Get knowledge files by IDs
|
|
215
|
+
*/
|
|
216
|
+
getKnowledgeFilesByIds(knowledgeFilesByIdsRequestUio: KnowledgeFilesByIdsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<KnowledgeFileSummaryUio>>;
|
|
191
217
|
/**
|
|
192
218
|
* Processes documents like PDFs, CSVs, and text files, and adds them to the brain\'s knowledge base
|
|
193
219
|
* Upload and import a file into the brain\'s knowledge base
|
|
@@ -381,6 +381,66 @@ class KnowledgeApi extends runtime.BaseAPI {
|
|
|
381
381
|
const response = await this.getImagesFromKnowledgeBaseLibraryRaw({ knowledgebaseId: knowledgebaseId }, initOverrides);
|
|
382
382
|
return await response.value();
|
|
383
383
|
}
|
|
384
|
+
/**
|
|
385
|
+
* Returns an array of file IDs that are marked as inactive in the given knowledge base.
|
|
386
|
+
* Get inactive knowledge file IDs for a knowledge base
|
|
387
|
+
*/
|
|
388
|
+
async getInactiveKnowledgeFileIdsRaw(requestParameters, initOverrides) {
|
|
389
|
+
if (requestParameters['knowledgebaseId'] == null) {
|
|
390
|
+
throw new runtime.RequiredError('knowledgebaseId', 'Required parameter "knowledgebaseId" was null or undefined when calling getInactiveKnowledgeFileIds().');
|
|
391
|
+
}
|
|
392
|
+
const queryParameters = {};
|
|
393
|
+
const headerParameters = {};
|
|
394
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
395
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
396
|
+
}
|
|
397
|
+
const response = await this.request({
|
|
398
|
+
path: `/knowledge-bases/{knowledgebaseId}/inactive-file-ids`.replace(`{${"knowledgebaseId"}}`, encodeURIComponent(String(requestParameters['knowledgebaseId']))),
|
|
399
|
+
method: 'GET',
|
|
400
|
+
headers: headerParameters,
|
|
401
|
+
query: queryParameters,
|
|
402
|
+
}, initOverrides);
|
|
403
|
+
return new runtime.JSONApiResponse(response);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Returns an array of file IDs that are marked as inactive in the given knowledge base.
|
|
407
|
+
* Get inactive knowledge file IDs for a knowledge base
|
|
408
|
+
*/
|
|
409
|
+
async getInactiveKnowledgeFileIds(knowledgebaseId, initOverrides) {
|
|
410
|
+
const response = await this.getInactiveKnowledgeFileIdsRaw({ knowledgebaseId: knowledgebaseId }, initOverrides);
|
|
411
|
+
return await response.value();
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Returns knowledge file summaries (id and name) for the given file IDs.
|
|
415
|
+
* Get knowledge files by IDs
|
|
416
|
+
*/
|
|
417
|
+
async getKnowledgeFilesByIdsRaw(requestParameters, initOverrides) {
|
|
418
|
+
if (requestParameters['knowledgeFilesByIdsRequestUio'] == null) {
|
|
419
|
+
throw new runtime.RequiredError('knowledgeFilesByIdsRequestUio', 'Required parameter "knowledgeFilesByIdsRequestUio" was null or undefined when calling getKnowledgeFilesByIds().');
|
|
420
|
+
}
|
|
421
|
+
const queryParameters = {};
|
|
422
|
+
const headerParameters = {};
|
|
423
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
424
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
425
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
426
|
+
}
|
|
427
|
+
const response = await this.request({
|
|
428
|
+
path: `/knowledge-files/by-ids`,
|
|
429
|
+
method: 'POST',
|
|
430
|
+
headers: headerParameters,
|
|
431
|
+
query: queryParameters,
|
|
432
|
+
body: (0, index_1.KnowledgeFilesByIdsRequestUioToJSON)(requestParameters['knowledgeFilesByIdsRequestUio']),
|
|
433
|
+
}, initOverrides);
|
|
434
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.KnowledgeFileSummaryUioFromJSON));
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Returns knowledge file summaries (id and name) for the given file IDs.
|
|
438
|
+
* Get knowledge files by IDs
|
|
439
|
+
*/
|
|
440
|
+
async getKnowledgeFilesByIds(knowledgeFilesByIdsRequestUio, initOverrides) {
|
|
441
|
+
const response = await this.getKnowledgeFilesByIdsRaw({ knowledgeFilesByIdsRequestUio: knowledgeFilesByIdsRequestUio }, initOverrides);
|
|
442
|
+
return await response.value();
|
|
443
|
+
}
|
|
384
444
|
/**
|
|
385
445
|
* Processes documents like PDFs, CSVs, and text files, and adds them to the brain\'s knowledge base
|
|
386
446
|
* Upload and import a file into the brain\'s knowledge base
|
|
@@ -10,20 +10,56 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { OrganizationEngineUio, OrganizationUio, RoleUio } from '../models/index';
|
|
13
|
+
import type { OrganizationEngineUio, OrganizationUio, RoleCreateRequestUio, RoleUio } from '../models/index';
|
|
14
|
+
export interface CreateOrganizationRoleRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
roleCreateRequestUio: RoleCreateRequestUio;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteOrganizationRoleRequest {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
roleId: string;
|
|
21
|
+
}
|
|
14
22
|
export interface GetOrganizationByIdRequest {
|
|
15
23
|
organizationId: string;
|
|
16
24
|
}
|
|
25
|
+
export interface GetOrganizationBySlugRequest {
|
|
26
|
+
slug: string;
|
|
27
|
+
}
|
|
17
28
|
export interface GetOrganizationEngineRequest {
|
|
18
29
|
organizationId: string;
|
|
19
30
|
}
|
|
20
31
|
export interface ListOrganizationRolesRequest {
|
|
21
32
|
organizationId: string;
|
|
22
33
|
}
|
|
34
|
+
export interface UpdateOrganizationRoleRequest {
|
|
35
|
+
organizationId: string;
|
|
36
|
+
roleId: string;
|
|
37
|
+
roleCreateRequestUio: RoleCreateRequestUio;
|
|
38
|
+
}
|
|
23
39
|
/**
|
|
24
40
|
*
|
|
25
41
|
*/
|
|
26
42
|
export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new agent role in the specified organization
|
|
45
|
+
* Create a role in an organization
|
|
46
|
+
*/
|
|
47
|
+
createOrganizationRoleRaw(requestParameters: CreateOrganizationRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RoleUio>>;
|
|
48
|
+
/**
|
|
49
|
+
* Creates a new agent role in the specified organization
|
|
50
|
+
* Create a role in an organization
|
|
51
|
+
*/
|
|
52
|
+
createOrganizationRole(organizationId: string, roleCreateRequestUio: RoleCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RoleUio>;
|
|
53
|
+
/**
|
|
54
|
+
* Deletes an agent role from the specified organization
|
|
55
|
+
* Delete a role from an organization
|
|
56
|
+
*/
|
|
57
|
+
deleteOrganizationRoleRaw(requestParameters: DeleteOrganizationRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
58
|
+
/**
|
|
59
|
+
* Deletes an agent role from the specified organization
|
|
60
|
+
* Delete a role from an organization
|
|
61
|
+
*/
|
|
62
|
+
deleteOrganizationRole(organizationId: string, roleId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
27
63
|
/**
|
|
28
64
|
* Retrieves an organization by its ID
|
|
29
65
|
* Get an organization by ID
|
|
@@ -34,6 +70,16 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
34
70
|
* Get an organization by ID
|
|
35
71
|
*/
|
|
36
72
|
getOrganizationById(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationUio>;
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves an organization by its slug
|
|
75
|
+
* Get an organization by slug
|
|
76
|
+
*/
|
|
77
|
+
getOrganizationBySlugRaw(requestParameters: GetOrganizationBySlugRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationUio>>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves an organization by its slug
|
|
80
|
+
* Get an organization by slug
|
|
81
|
+
*/
|
|
82
|
+
getOrganizationBySlug(slug: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationUio>;
|
|
37
83
|
/**
|
|
38
84
|
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
39
85
|
* Get an organization engine configuration
|
|
@@ -54,4 +100,24 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
54
100
|
* List roles of an organization
|
|
55
101
|
*/
|
|
56
102
|
listOrganizationRoles(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RoleUio>>;
|
|
103
|
+
/**
|
|
104
|
+
* Lists all organizations for the current user. Admins see all organizations.
|
|
105
|
+
* List organizations
|
|
106
|
+
*/
|
|
107
|
+
listOrganizationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OrganizationUio>>>;
|
|
108
|
+
/**
|
|
109
|
+
* Lists all organizations for the current user. Admins see all organizations.
|
|
110
|
+
* List organizations
|
|
111
|
+
*/
|
|
112
|
+
listOrganizations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OrganizationUio>>;
|
|
113
|
+
/**
|
|
114
|
+
* Updates an existing agent role in the specified organization
|
|
115
|
+
* Update a role in an organization
|
|
116
|
+
*/
|
|
117
|
+
updateOrganizationRoleRaw(requestParameters: UpdateOrganizationRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
118
|
+
/**
|
|
119
|
+
* Updates an existing agent role in the specified organization
|
|
120
|
+
* Update a role in an organization
|
|
121
|
+
*/
|
|
122
|
+
updateOrganizationRole(organizationId: string, roleId: string, roleCreateRequestUio: RoleCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
57
123
|
}
|
|
@@ -53,6 +53,71 @@ const index_1 = require("../models/index");
|
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
class OrganizationsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new agent role in the specified organization
|
|
58
|
+
* Create a role in an organization
|
|
59
|
+
*/
|
|
60
|
+
async createOrganizationRoleRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['organizationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createOrganizationRole().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['roleCreateRequestUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('roleCreateRequestUio', 'Required parameter "roleCreateRequestUio" was null or undefined when calling createOrganizationRole().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
71
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/organizations/{organizationId}/roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.RoleCreateRequestUioToJSON)(requestParameters['roleCreateRequestUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RoleUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new agent role in the specified organization
|
|
84
|
+
* Create a role in an organization
|
|
85
|
+
*/
|
|
86
|
+
async createOrganizationRole(organizationId, roleCreateRequestUio, initOverrides) {
|
|
87
|
+
const response = await this.createOrganizationRoleRaw({ organizationId: organizationId, roleCreateRequestUio: roleCreateRequestUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Deletes an agent role from the specified organization
|
|
92
|
+
* Delete a role from an organization
|
|
93
|
+
*/
|
|
94
|
+
async deleteOrganizationRoleRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['organizationId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteOrganizationRole().');
|
|
97
|
+
}
|
|
98
|
+
if (requestParameters['roleId'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling deleteOrganizationRole().');
|
|
100
|
+
}
|
|
101
|
+
const queryParameters = {};
|
|
102
|
+
const headerParameters = {};
|
|
103
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
104
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
105
|
+
}
|
|
106
|
+
const response = await this.request({
|
|
107
|
+
path: `/organizations/{organizationId}/roles/{roleId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId']))),
|
|
108
|
+
method: 'DELETE',
|
|
109
|
+
headers: headerParameters,
|
|
110
|
+
query: queryParameters,
|
|
111
|
+
}, initOverrides);
|
|
112
|
+
return new runtime.VoidApiResponse(response);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Deletes an agent role from the specified organization
|
|
116
|
+
* Delete a role from an organization
|
|
117
|
+
*/
|
|
118
|
+
async deleteOrganizationRole(organizationId, roleId, initOverrides) {
|
|
119
|
+
await this.deleteOrganizationRoleRaw({ organizationId: organizationId, roleId: roleId }, initOverrides);
|
|
120
|
+
}
|
|
56
121
|
/**
|
|
57
122
|
* Retrieves an organization by its ID
|
|
58
123
|
* Get an organization by ID
|
|
@@ -82,6 +147,35 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
82
147
|
const response = await this.getOrganizationByIdRaw({ organizationId: organizationId }, initOverrides);
|
|
83
148
|
return await response.value();
|
|
84
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Retrieves an organization by its slug
|
|
152
|
+
* Get an organization by slug
|
|
153
|
+
*/
|
|
154
|
+
async getOrganizationBySlugRaw(requestParameters, initOverrides) {
|
|
155
|
+
if (requestParameters['slug'] == null) {
|
|
156
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getOrganizationBySlug().');
|
|
157
|
+
}
|
|
158
|
+
const queryParameters = {};
|
|
159
|
+
const headerParameters = {};
|
|
160
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
161
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
162
|
+
}
|
|
163
|
+
const response = await this.request({
|
|
164
|
+
path: `/organizations/by-slug/{slug}`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
165
|
+
method: 'GET',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationUioFromJSON)(jsonValue));
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Retrieves an organization by its slug
|
|
173
|
+
* Get an organization by slug
|
|
174
|
+
*/
|
|
175
|
+
async getOrganizationBySlug(slug, initOverrides) {
|
|
176
|
+
const response = await this.getOrganizationBySlugRaw({ slug: slug }, initOverrides);
|
|
177
|
+
return await response.value();
|
|
178
|
+
}
|
|
85
179
|
/**
|
|
86
180
|
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
87
181
|
* Get an organization engine configuration
|
|
@@ -140,5 +234,67 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
140
234
|
const response = await this.listOrganizationRolesRaw({ organizationId: organizationId }, initOverrides);
|
|
141
235
|
return await response.value();
|
|
142
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* Lists all organizations for the current user. Admins see all organizations.
|
|
239
|
+
* List organizations
|
|
240
|
+
*/
|
|
241
|
+
async listOrganizationsRaw(initOverrides) {
|
|
242
|
+
const queryParameters = {};
|
|
243
|
+
const headerParameters = {};
|
|
244
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
245
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
246
|
+
}
|
|
247
|
+
const response = await this.request({
|
|
248
|
+
path: `/organizations`,
|
|
249
|
+
method: 'GET',
|
|
250
|
+
headers: headerParameters,
|
|
251
|
+
query: queryParameters,
|
|
252
|
+
}, initOverrides);
|
|
253
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OrganizationUioFromJSON));
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Lists all organizations for the current user. Admins see all organizations.
|
|
257
|
+
* List organizations
|
|
258
|
+
*/
|
|
259
|
+
async listOrganizations(initOverrides) {
|
|
260
|
+
const response = await this.listOrganizationsRaw(initOverrides);
|
|
261
|
+
return await response.value();
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Updates an existing agent role in the specified organization
|
|
265
|
+
* Update a role in an organization
|
|
266
|
+
*/
|
|
267
|
+
async updateOrganizationRoleRaw(requestParameters, initOverrides) {
|
|
268
|
+
if (requestParameters['organizationId'] == null) {
|
|
269
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateOrganizationRole().');
|
|
270
|
+
}
|
|
271
|
+
if (requestParameters['roleId'] == null) {
|
|
272
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling updateOrganizationRole().');
|
|
273
|
+
}
|
|
274
|
+
if (requestParameters['roleCreateRequestUio'] == null) {
|
|
275
|
+
throw new runtime.RequiredError('roleCreateRequestUio', 'Required parameter "roleCreateRequestUio" was null or undefined when calling updateOrganizationRole().');
|
|
276
|
+
}
|
|
277
|
+
const queryParameters = {};
|
|
278
|
+
const headerParameters = {};
|
|
279
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
280
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
281
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
282
|
+
}
|
|
283
|
+
const response = await this.request({
|
|
284
|
+
path: `/organizations/{organizationId}/roles/{roleId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId']))),
|
|
285
|
+
method: 'PUT',
|
|
286
|
+
headers: headerParameters,
|
|
287
|
+
query: queryParameters,
|
|
288
|
+
body: (0, index_1.RoleCreateRequestUioToJSON)(requestParameters['roleCreateRequestUio']),
|
|
289
|
+
}, initOverrides);
|
|
290
|
+
return new runtime.VoidApiResponse(response);
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Updates an existing agent role in the specified organization
|
|
294
|
+
* Update a role in an organization
|
|
295
|
+
*/
|
|
296
|
+
async updateOrganizationRole(organizationId, roleId, roleCreateRequestUio, initOverrides) {
|
|
297
|
+
await this.updateOrganizationRoleRaw({ organizationId: organizationId, roleId: roleId, roleCreateRequestUio: roleCreateRequestUio }, initOverrides);
|
|
298
|
+
}
|
|
143
299
|
}
|
|
144
300
|
exports.OrganizationsApi = OrganizationsApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BodyWithIdUio, ChatMessageUio,
|
|
13
|
+
import type { BodyWithIdUio, ChatMessageUio, Conversation1Uio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio } from '../models/index';
|
|
14
14
|
export interface CreateConversationRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
|
|
@@ -78,12 +78,12 @@ export declare class PromptsApi extends runtime.BaseAPI {
|
|
|
78
78
|
* Retrieves details of a specific conversation including all messages
|
|
79
79
|
* Get a conversation by ID
|
|
80
80
|
*/
|
|
81
|
-
getConversationByIdRaw(requestParameters: GetConversationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
81
|
+
getConversationByIdRaw(requestParameters: GetConversationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Conversation1Uio>>;
|
|
82
82
|
/**
|
|
83
83
|
* Retrieves details of a specific conversation including all messages
|
|
84
84
|
* Get a conversation by ID
|
|
85
85
|
*/
|
|
86
|
-
getConversationById(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
86
|
+
getConversationById(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Conversation1Uio>;
|
|
87
87
|
/**
|
|
88
88
|
* Retrieves a specific message by ID from a conversation
|
|
89
89
|
* Get a specific message from a conversation
|
package/dist/apis/PromptsApi.js
CHANGED
|
@@ -177,7 +177,7 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
177
177
|
headers: headerParameters,
|
|
178
178
|
query: queryParameters,
|
|
179
179
|
}, initOverrides);
|
|
180
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
180
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Conversation1UioFromJSON)(jsonValue));
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Retrieves details of a specific conversation including all messages
|