@breign/client 1.0.126 → 1.0.128
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/AiGatewayApi.d.ts +100 -0
- package/dist/apis/AiGatewayApi.js +248 -0
- package/dist/apis/AppApi.d.ts +17 -3
- package/dist/apis/AppApi.js +36 -2
- package/dist/apis/AuthApi.d.ts +40 -1
- package/dist/apis/AuthApi.js +82 -0
- package/dist/apis/ConfigurationApi.d.ts +16 -3
- package/dist/apis/ConfigurationApi.js +33 -2
- package/dist/apis/ConversationsApi.d.ts +73 -3
- package/dist/apis/ConversationsApi.js +174 -2
- package/dist/apis/EngineApi.d.ts +17 -16
- package/dist/apis/EngineApi.js +33 -30
- package/dist/apis/EnginesApi.d.ts +3 -3
- package/dist/apis/EnginesApi.js +4 -4
- package/dist/apis/OrganizationsApi.d.ts +10 -111
- package/dist/apis/OrganizationsApi.js +12 -264
- package/dist/apis/PromptsApi.d.ts +3 -3
- package/dist/apis/PromptsApi.js +1 -1
- package/dist/apis/ToolsApi.d.ts +1 -2
- package/dist/apis/ToolsApi.js +3 -6
- package/dist/apis/UsersApi.d.ts +127 -0
- package/dist/apis/UsersApi.js +308 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AgentPatchUio.d.ts +7 -0
- package/dist/models/AgentPatchUio.js +3 -0
- package/dist/models/AgentSandboxConfigurationUio.d.ts +58 -0
- package/dist/models/AgentSandboxConfigurationUio.js +62 -0
- package/dist/models/AgentSandboxNetworkConfigurationUio.d.ts +57 -0
- package/dist/models/AgentSandboxNetworkConfigurationUio.js +65 -0
- package/dist/models/AgentUio.d.ts +7 -0
- package/dist/models/AgentUio.js +3 -0
- package/dist/models/AiGatewayChatCompletionRequestUio.d.ts +57 -0
- package/dist/models/AiGatewayChatCompletionRequestUio.js +61 -0
- package/dist/models/AiGatewayChatCompletionResponseUio.d.ts +47 -0
- package/dist/models/AiGatewayChatCompletionResponseUio.js +54 -0
- package/dist/models/AiGatewayEmbeddingRequestUio.d.ts +38 -0
- package/dist/models/AiGatewayEmbeddingRequestUio.js +54 -0
- package/dist/models/AiGatewayEmbeddingResponseUio.d.ts +47 -0
- package/dist/models/AiGatewayEmbeddingResponseUio.js +54 -0
- package/dist/models/AiGatewayErrorUio.d.ts +33 -0
- package/dist/models/AiGatewayErrorUio.js +51 -0
- package/dist/models/AiGatewayMessageUio.d.ts +47 -0
- package/dist/models/AiGatewayMessageUio.js +63 -0
- package/dist/models/AiGatewayModelListDataInnerUio.d.ts +57 -0
- package/dist/models/AiGatewayModelListDataInnerUio.js +69 -0
- package/dist/models/AiGatewayModelListUio.d.ts +46 -0
- package/dist/models/AiGatewayModelListUio.js +62 -0
- package/dist/models/AiGatewayModelUio.d.ts +57 -0
- package/dist/models/AiGatewayModelUio.js +69 -0
- package/dist/models/ApiKeyCreateRequestUio.d.ts +32 -0
- package/dist/models/ApiKeyCreateRequestUio.js +50 -0
- package/dist/models/ApiKeyCreatedUio.d.ts +44 -0
- package/dist/models/{ApiKeyUio.js → ApiKeyCreatedUio.js} +13 -13
- package/dist/models/ApiKeyRefUio.d.ts +38 -0
- package/dist/models/ApiKeyRefUio.js +54 -0
- package/dist/models/AppInstanceEphemeralCreateRequestUio.d.ts +1 -1
- package/dist/models/AppInstanceEphemeralCreateRequestUio.js +3 -1
- package/dist/models/AppReplaceRequestUio.d.ts +94 -0
- package/dist/models/AppReplaceRequestUio.js +82 -0
- package/dist/models/AppTextToSpeechResponseUio.d.ts +3 -3
- package/dist/models/AppTextToSpeechResponseUio.js +3 -3
- package/dist/models/AppUpdateRequestEphemeralInstancesUio.d.ts +38 -0
- package/dist/models/AppUpdateRequestEphemeralInstancesUio.js +50 -0
- package/dist/models/AppUpdateRequestUio.d.ts +12 -12
- package/dist/models/AppUpdateRequestUio.js +3 -3
- package/dist/models/AttachmentProcessedRequestUio.d.ts +50 -0
- package/dist/models/AttachmentProcessedRequestUio.js +62 -0
- package/dist/models/AuthCodeConfirmRequestUio.d.ts +1 -1
- package/dist/models/AuthCodeConfirmRequestUio.js +3 -1
- package/dist/models/AuthCodeConfirmResponseUio.d.ts +15 -3
- package/dist/models/AuthCodeConfirmResponseUio.js +6 -3
- package/dist/models/ChatMessageUio.d.ts +6 -0
- package/dist/models/ChatMessageUio.js +2 -0
- package/dist/models/ConfigurationDefaultFillerPhrasesUio.d.ts +7 -6
- package/dist/models/ConfigurationDefaultFillerPhrasesUio.js +7 -8
- package/dist/models/ConfigurationDefaultFillerPhrasesUpdateRequestUio.d.ts +39 -0
- package/dist/models/ConfigurationDefaultFillerPhrasesUpdateRequestUio.js +55 -0
- package/dist/models/ContextLocationRequestUio.d.ts +38 -0
- package/dist/models/ContextLocationRequestUio.js +54 -0
- package/dist/models/ConversationDetailUio.d.ts +101 -0
- package/dist/models/ConversationDetailUio.js +75 -0
- package/dist/models/ConversationMessagesInnerUio.d.ts +6 -0
- package/dist/models/ConversationMessagesInnerUio.js +2 -0
- package/dist/models/DeleteOrganizationUser200ResponseUio.d.ts +32 -0
- package/dist/models/DeleteOrganizationUser200ResponseUio.js +50 -0
- package/dist/models/DeleteProvider200ResponseKnowledgeBasesAffectedInnerUio.d.ts +50 -0
- package/dist/models/DeleteProvider200ResponseKnowledgeBasesAffectedInnerUio.js +54 -0
- package/dist/models/DeleteProvider200ResponseUio.d.ts +45 -0
- package/dist/models/DeleteProvider200ResponseUio.js +55 -0
- package/dist/models/EmbeddingProviderModelsInnerUio.d.ts +44 -0
- package/dist/models/EmbeddingProviderModelsInnerUio.js +58 -0
- package/dist/models/EmbeddingProviderUio.d.ts +57 -0
- package/dist/models/EmbeddingProviderUio.js +65 -0
- package/dist/models/FillerPhraseUio.d.ts +38 -0
- package/dist/models/FillerPhraseUio.js +54 -0
- package/dist/models/GetJwks200ResponseUio.d.ts +34 -0
- package/dist/models/GetJwks200ResponseUio.js +50 -0
- package/dist/models/MarkAttachmentProcessed400ResponseUio.d.ts +40 -0
- package/dist/models/MarkAttachmentProcessed400ResponseUio.js +52 -0
- package/dist/models/MessageUio.d.ts +7 -1
- package/dist/models/MessageUio.js +2 -0
- package/dist/models/OpenAiChatCompletionRequestStreamOptionsUio.d.ts +32 -0
- package/dist/models/OpenAiChatCompletionRequestStreamOptionsUio.js +48 -0
- package/dist/models/OpenAiChatCompletionRequestUio.d.ts +64 -0
- package/dist/models/OpenAiChatCompletionRequestUio.js +64 -0
- package/dist/models/OpenAiChatCompletionResponseUio.d.ts +67 -0
- package/dist/models/OpenAiChatCompletionResponseUio.js +60 -0
- package/dist/models/OrganizationMemberUio.d.ts +3 -3
- package/dist/models/OrganizationMemberUio.js +3 -3
- package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
- package/dist/models/OrganizationMemberUserUio.js +50 -0
- package/dist/models/PinRequestUio.d.ts +3 -3
- package/dist/models/PinRequestUio.js +3 -3
- package/dist/models/ProviderValiationRequestUio.d.ts +1 -1
- package/dist/models/ProviderValiationRequestUio.js +1 -3
- package/dist/models/SetContextLocation400ResponseUio.d.ts +40 -0
- package/dist/models/SetContextLocation400ResponseUio.js +52 -0
- package/dist/models/TTSRequestUio.d.ts +1 -1
- package/dist/models/TTSRequestUio.js +1 -3
- package/dist/models/UserCreateRequestUio.d.ts +45 -0
- package/dist/models/UserCreateRequestUio.js +57 -0
- package/dist/models/UserDetailUio.d.ts +88 -0
- package/dist/models/UserDetailUio.js +80 -0
- package/dist/models/UserIdentifierRequestUio.d.ts +32 -0
- package/dist/models/UserIdentifierRequestUio.js +50 -0
- package/dist/models/UserIdentifierUio.d.ts +38 -0
- package/dist/models/UserIdentifierUio.js +52 -0
- package/dist/models/UserLockRequestUio.d.ts +32 -0
- package/dist/models/UserLockRequestUio.js +50 -0
- package/dist/models/UserUpdateRequestUio.d.ts +63 -0
- package/dist/models/UserUpdateRequestUio.js +59 -0
- package/dist/models/WorkspaceFileContentUio.d.ts +62 -0
- package/dist/models/WorkspaceFileContentUio.js +70 -0
- package/dist/models/WorkspaceFileEntryUio.d.ts +56 -0
- package/dist/models/WorkspaceFileEntryUio.js +66 -0
- package/dist/models/index.d.ts +41 -14
- package/dist/models/index.js +41 -14
- package/dist/openapi.json +3890 -2297
- package/package.json +1 -1
- package/dist/models/AccessRoleCreateRequestUio.d.ts +0 -45
- package/dist/models/AccessRoleCreateRequestUio.js +0 -55
- package/dist/models/AccessRolePermissionsRequestUio.d.ts +0 -33
- package/dist/models/AccessRolePermissionsRequestUio.js +0 -51
- package/dist/models/AccessRoleUio.d.ts +0 -75
- package/dist/models/AccessRoleUio.js +0 -75
- package/dist/models/AccessRoleUpdateRequestUio.d.ts +0 -38
- package/dist/models/AccessRoleUpdateRequestUio.js +0 -52
- package/dist/models/ApiKeyUio.d.ts +0 -44
- package/dist/models/AudioFile1Uio.d.ts +0 -45
- package/dist/models/AudioFile1Uio.js +0 -59
- package/dist/models/Conversation1Uio.d.ts +0 -46
- package/dist/models/Conversation1Uio.js +0 -60
- package/dist/models/OrganizationPermissionKeyUio.d.ts +0 -59
- package/dist/models/OrganizationPermissionKeyUio.js +0 -85
- package/dist/models/PermissionEntryUio.d.ts +0 -39
- package/dist/models/PermissionEntryUio.js +0 -55
- package/dist/models/ProviderSimpleUio.d.ts +0 -57
- package/dist/models/ProviderSimpleUio.js +0 -65
- package/dist/models/UserAccessRolesRequestUio.d.ts +0 -32
- package/dist/models/UserAccessRolesRequestUio.js +0 -50
- package/dist/models/UserAccessUio.d.ts +0 -39
- package/dist/models/UserAccessUio.js +0 -55
- package/dist/models/UserDirectPermissionsRequestUio.d.ts +0 -33
- package/dist/models/UserDirectPermissionsRequestUio.js +0 -51
- package/dist/models/UserUio.d.ts +0 -87
- package/dist/models/UserUio.js +0 -67
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ConfigurationDefaultFillerPhrasesUio, DefaultClientPricesUio, GetUploadLimits200ResponseUio, PriceConfigurationUio } from '../models/index';
|
|
13
|
+
import type { ConfigurationDefaultFillerPhrasesUio, ConfigurationDefaultFillerPhrasesUpdateRequestUio, DefaultClientPricesUio, GetUploadLimits200ResponseUio, PriceConfigurationUio } from '../models/index';
|
|
14
14
|
export interface UpdateDefaultClientPricesRequest {
|
|
15
15
|
defaultClientPricesUio: DefaultClientPricesUio;
|
|
16
16
|
}
|
|
17
|
+
export interface UpdateDefaultFillerPhrasesRequest {
|
|
18
|
+
configurationDefaultFillerPhrasesUpdateRequestUio: ConfigurationDefaultFillerPhrasesUpdateRequestUio;
|
|
19
|
+
}
|
|
17
20
|
export interface UpdateDefaultPricesRequest {
|
|
18
21
|
priceConfigurationUio: PriceConfigurationUio;
|
|
19
22
|
}
|
|
@@ -32,12 +35,12 @@ export declare class ConfigurationApi extends runtime.BaseAPI {
|
|
|
32
35
|
*/
|
|
33
36
|
getDefaultClientPrices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DefaultClientPricesUio>;
|
|
34
37
|
/**
|
|
35
|
-
* Retrieves default filler phrases for AI responses
|
|
38
|
+
* Retrieves the default filler phrases for AI responses. Configuration globale, partagée par toutes les organisations : réservée aux super administrateurs.
|
|
36
39
|
* Get default filler phrases
|
|
37
40
|
*/
|
|
38
41
|
getDefaultFillerPhrasesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConfigurationDefaultFillerPhrasesUio>>;
|
|
39
42
|
/**
|
|
40
|
-
* Retrieves default filler phrases for AI responses
|
|
43
|
+
* Retrieves the default filler phrases for AI responses. Configuration globale, partagée par toutes les organisations : réservée aux super administrateurs.
|
|
41
44
|
* Get default filler phrases
|
|
42
45
|
*/
|
|
43
46
|
getDefaultFillerPhrases(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConfigurationDefaultFillerPhrasesUio>;
|
|
@@ -71,6 +74,16 @@ export declare class ConfigurationApi extends runtime.BaseAPI {
|
|
|
71
74
|
* Update default client prices
|
|
72
75
|
*/
|
|
73
76
|
updateDefaultClientPrices(defaultClientPricesUio: DefaultClientPricesUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DefaultClientPricesUio>;
|
|
77
|
+
/**
|
|
78
|
+
* Updates the default filler phrases for AI responses. Le corps validé est renvoyé tel quel. Seules les langues `fr` et `en` sont acceptées. Configuration globale, partagée par toutes les organisations : réservée aux super administrateurs.
|
|
79
|
+
* Update default filler phrases
|
|
80
|
+
*/
|
|
81
|
+
updateDefaultFillerPhrasesRaw(requestParameters: UpdateDefaultFillerPhrasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConfigurationDefaultFillerPhrasesUpdateRequestUio>>;
|
|
82
|
+
/**
|
|
83
|
+
* Updates the default filler phrases for AI responses. Le corps validé est renvoyé tel quel. Seules les langues `fr` et `en` sont acceptées. Configuration globale, partagée par toutes les organisations : réservée aux super administrateurs.
|
|
84
|
+
* Update default filler phrases
|
|
85
|
+
*/
|
|
86
|
+
updateDefaultFillerPhrases(configurationDefaultFillerPhrasesUpdateRequestUio: ConfigurationDefaultFillerPhrasesUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConfigurationDefaultFillerPhrasesUpdateRequestUio>;
|
|
74
87
|
/**
|
|
75
88
|
* Updates default prices for providers and models (admin only)
|
|
76
89
|
* Update default prices
|
|
@@ -80,7 +80,7 @@ class ConfigurationApi extends runtime.BaseAPI {
|
|
|
80
80
|
return await response.value();
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* Retrieves default filler phrases for AI responses
|
|
83
|
+
* Retrieves the default filler phrases for AI responses. Configuration globale, partagée par toutes les organisations : réservée aux super administrateurs.
|
|
84
84
|
* Get default filler phrases
|
|
85
85
|
*/
|
|
86
86
|
async getDefaultFillerPhrasesRaw(initOverrides) {
|
|
@@ -98,7 +98,7 @@ class ConfigurationApi extends runtime.BaseAPI {
|
|
|
98
98
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConfigurationDefaultFillerPhrasesUioFromJSON)(jsonValue));
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* Retrieves default filler phrases for AI responses
|
|
101
|
+
* Retrieves the default filler phrases for AI responses. Configuration globale, partagée par toutes les organisations : réservée aux super administrateurs.
|
|
102
102
|
* Get default filler phrases
|
|
103
103
|
*/
|
|
104
104
|
async getDefaultFillerPhrases(initOverrides) {
|
|
@@ -188,6 +188,37 @@ class ConfigurationApi extends runtime.BaseAPI {
|
|
|
188
188
|
const response = await this.updateDefaultClientPricesRaw({ defaultClientPricesUio: defaultClientPricesUio }, initOverrides);
|
|
189
189
|
return await response.value();
|
|
190
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Updates the default filler phrases for AI responses. Le corps validé est renvoyé tel quel. Seules les langues `fr` et `en` sont acceptées. Configuration globale, partagée par toutes les organisations : réservée aux super administrateurs.
|
|
193
|
+
* Update default filler phrases
|
|
194
|
+
*/
|
|
195
|
+
async updateDefaultFillerPhrasesRaw(requestParameters, initOverrides) {
|
|
196
|
+
if (requestParameters['configurationDefaultFillerPhrasesUpdateRequestUio'] == null) {
|
|
197
|
+
throw new runtime.RequiredError('configurationDefaultFillerPhrasesUpdateRequestUio', 'Required parameter "configurationDefaultFillerPhrasesUpdateRequestUio" was null or undefined when calling updateDefaultFillerPhrases().');
|
|
198
|
+
}
|
|
199
|
+
const queryParameters = {};
|
|
200
|
+
const headerParameters = {};
|
|
201
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
202
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
203
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
204
|
+
}
|
|
205
|
+
const response = await this.request({
|
|
206
|
+
path: `/configuration/default-filler-phrases`,
|
|
207
|
+
method: 'PUT',
|
|
208
|
+
headers: headerParameters,
|
|
209
|
+
query: queryParameters,
|
|
210
|
+
body: (0, index_1.ConfigurationDefaultFillerPhrasesUpdateRequestUioToJSON)(requestParameters['configurationDefaultFillerPhrasesUpdateRequestUio']),
|
|
211
|
+
}, initOverrides);
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConfigurationDefaultFillerPhrasesUpdateRequestUioFromJSON)(jsonValue));
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Updates the default filler phrases for AI responses. Le corps validé est renvoyé tel quel. Seules les langues `fr` et `en` sont acceptées. Configuration globale, partagée par toutes les organisations : réservée aux super administrateurs.
|
|
216
|
+
* Update default filler phrases
|
|
217
|
+
*/
|
|
218
|
+
async updateDefaultFillerPhrases(configurationDefaultFillerPhrasesUpdateRequestUio, initOverrides) {
|
|
219
|
+
const response = await this.updateDefaultFillerPhrasesRaw({ configurationDefaultFillerPhrasesUpdateRequestUio: configurationDefaultFillerPhrasesUpdateRequestUio }, initOverrides);
|
|
220
|
+
return await response.value();
|
|
221
|
+
}
|
|
191
222
|
/**
|
|
192
223
|
* Updates default prices for providers and models (admin only)
|
|
193
224
|
* Update default prices
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, BodyWithMessageUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, UpdateConversationTitleRequestUio } from '../models/index';
|
|
13
|
+
import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, AttachmentProcessedRequestUio, BodyWithMessageUio, ContextLocationRequestUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, UpdateConversationTitleRequestUio, WorkspaceFileContentUio, WorkspaceFileEntryUio } from '../models/index';
|
|
14
14
|
export interface ArchiveConversationByIdRequest {
|
|
15
15
|
conversationId: string;
|
|
16
16
|
}
|
|
@@ -35,6 +35,10 @@ export interface DeleteContextCustomVariableKeyRequest {
|
|
|
35
35
|
conversationId: string;
|
|
36
36
|
key: string;
|
|
37
37
|
}
|
|
38
|
+
export interface DeleteConversationWorkspaceFileRequest {
|
|
39
|
+
conversationId: string;
|
|
40
|
+
path: string;
|
|
41
|
+
}
|
|
38
42
|
export interface GetAttachmentRequest {
|
|
39
43
|
conversationId: string;
|
|
40
44
|
attachmentId: string;
|
|
@@ -45,14 +49,30 @@ export interface GetContextRequest {
|
|
|
45
49
|
export interface GetContextCustomVariableRequest {
|
|
46
50
|
conversationId: string;
|
|
47
51
|
}
|
|
52
|
+
export interface GetConversationWorkspaceFileContentRequest {
|
|
53
|
+
conversationId: string;
|
|
54
|
+
path: string;
|
|
55
|
+
}
|
|
48
56
|
export interface GetConversationsRequest {
|
|
57
|
+
providerSource: GetConversationsProviderSourceEnum;
|
|
49
58
|
organizationId?: string;
|
|
50
|
-
providerSource?: GetConversationsProviderSourceEnum;
|
|
51
59
|
page?: number;
|
|
52
60
|
limit?: number;
|
|
53
61
|
period?: GetConversationsPeriodEnum;
|
|
54
62
|
messageReaction?: GetConversationsMessageReactionEnum;
|
|
55
63
|
}
|
|
64
|
+
export interface ListConversationWorkspaceFilesRequest {
|
|
65
|
+
conversationId: string;
|
|
66
|
+
}
|
|
67
|
+
export interface MarkAttachmentProcessedRequest {
|
|
68
|
+
conversationId: string;
|
|
69
|
+
attachmentId: string;
|
|
70
|
+
attachmentProcessedRequestUio: AttachmentProcessedRequestUio;
|
|
71
|
+
}
|
|
72
|
+
export interface SetContextLocationRequest {
|
|
73
|
+
conversationId: string;
|
|
74
|
+
contextLocationRequestUio: ContextLocationRequestUio;
|
|
75
|
+
}
|
|
56
76
|
export interface UpdateAttachmentStatusRequest {
|
|
57
77
|
conversationId: string;
|
|
58
78
|
attachmentId: string;
|
|
@@ -131,6 +151,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
131
151
|
* Delete a custom variable key from the context of a conversation
|
|
132
152
|
*/
|
|
133
153
|
deleteContextCustomVariableKey(conversationId: string, key: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
154
|
+
/**
|
|
155
|
+
* Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
|
|
156
|
+
* Delete a file from a conversation workspace
|
|
157
|
+
*/
|
|
158
|
+
deleteConversationWorkspaceFileRaw(requestParameters: DeleteConversationWorkspaceFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
159
|
+
/**
|
|
160
|
+
* Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
|
|
161
|
+
* Delete a file from a conversation workspace
|
|
162
|
+
*/
|
|
163
|
+
deleteConversationWorkspaceFile(conversationId: string, path: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
134
164
|
/**
|
|
135
165
|
* Get a specific attachment by its ID from the context of a conversation.
|
|
136
166
|
* Retrieve an attachment from a conversation context
|
|
@@ -165,6 +195,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
165
195
|
getContextCustomVariable(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
166
196
|
[key: string]: string;
|
|
167
197
|
}>;
|
|
198
|
+
/**
|
|
199
|
+
* Returns the CURRENT state of the file, read straight from the store. There is no versioning, so consulting an older message still returns the file as it is now. The content is always UTF-8 text.
|
|
200
|
+
* Read the content of a conversation workspace file
|
|
201
|
+
*/
|
|
202
|
+
getConversationWorkspaceFileContentRaw(requestParameters: GetConversationWorkspaceFileContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkspaceFileContentUio>>;
|
|
203
|
+
/**
|
|
204
|
+
* Returns the CURRENT state of the file, read straight from the store. There is no versioning, so consulting an older message still returns the file as it is now. The content is always UTF-8 text.
|
|
205
|
+
* Read the content of a conversation workspace file
|
|
206
|
+
*/
|
|
207
|
+
getConversationWorkspaceFileContent(conversationId: string, path: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkspaceFileContentUio>;
|
|
168
208
|
/**
|
|
169
209
|
* Retrieve a list of conversations for the authenticated user.
|
|
170
210
|
* List conversations
|
|
@@ -174,7 +214,37 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
174
214
|
* Retrieve a list of conversations for the authenticated user.
|
|
175
215
|
* List conversations
|
|
176
216
|
*/
|
|
177
|
-
getConversations(
|
|
217
|
+
getConversations(providerSource: GetConversationsProviderSourceEnum, organizationId?: string, page?: number, limit?: number, period?: GetConversationsPeriodEnum, messageReaction?: GetConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
|
|
218
|
+
/**
|
|
219
|
+
* Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
|
|
220
|
+
* List the files of a conversation workspace
|
|
221
|
+
*/
|
|
222
|
+
listConversationWorkspaceFilesRaw(requestParameters: ListConversationWorkspaceFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WorkspaceFileEntryUio>>>;
|
|
223
|
+
/**
|
|
224
|
+
* Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
|
|
225
|
+
* List the files of a conversation workspace
|
|
226
|
+
*/
|
|
227
|
+
listConversationWorkspaceFiles(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkspaceFileEntryUio>>;
|
|
228
|
+
/**
|
|
229
|
+
* Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
|
|
230
|
+
* Mark a conversation attachment as processed
|
|
231
|
+
*/
|
|
232
|
+
markAttachmentProcessedRaw(requestParameters: MarkAttachmentProcessedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
233
|
+
/**
|
|
234
|
+
* Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
|
|
235
|
+
* Mark a conversation attachment as processed
|
|
236
|
+
*/
|
|
237
|
+
markAttachmentProcessed(conversationId: string, attachmentId: string, attachmentProcessedRequestUio: AttachmentProcessedRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
238
|
+
/**
|
|
239
|
+
* Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
|
|
240
|
+
* Set the conversation location context
|
|
241
|
+
*/
|
|
242
|
+
setContextLocationRaw(requestParameters: SetContextLocationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
243
|
+
/**
|
|
244
|
+
* Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
|
|
245
|
+
* Set the conversation location context
|
|
246
|
+
*/
|
|
247
|
+
setContextLocation(conversationId: string, contextLocationRequestUio: ContextLocationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
178
248
|
/**
|
|
179
249
|
* Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
|
|
180
250
|
* Update the status of an uploaded attachment
|
|
@@ -239,6 +239,40 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
239
239
|
async deleteContextCustomVariableKey(conversationId, key, initOverrides) {
|
|
240
240
|
await this.deleteContextCustomVariableKeyRaw({ conversationId: conversationId, key: key }, initOverrides);
|
|
241
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
|
|
244
|
+
* Delete a file from a conversation workspace
|
|
245
|
+
*/
|
|
246
|
+
async deleteConversationWorkspaceFileRaw(requestParameters, initOverrides) {
|
|
247
|
+
if (requestParameters['conversationId'] == null) {
|
|
248
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling deleteConversationWorkspaceFile().');
|
|
249
|
+
}
|
|
250
|
+
if (requestParameters['path'] == null) {
|
|
251
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling deleteConversationWorkspaceFile().');
|
|
252
|
+
}
|
|
253
|
+
const queryParameters = {};
|
|
254
|
+
if (requestParameters['path'] != null) {
|
|
255
|
+
queryParameters['path'] = requestParameters['path'];
|
|
256
|
+
}
|
|
257
|
+
const headerParameters = {};
|
|
258
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
259
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
260
|
+
}
|
|
261
|
+
const response = await this.request({
|
|
262
|
+
path: `/conversations/{conversationId}/workspace/files`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
263
|
+
method: 'DELETE',
|
|
264
|
+
headers: headerParameters,
|
|
265
|
+
query: queryParameters,
|
|
266
|
+
}, initOverrides);
|
|
267
|
+
return new runtime.VoidApiResponse(response);
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
|
|
271
|
+
* Delete a file from a conversation workspace
|
|
272
|
+
*/
|
|
273
|
+
async deleteConversationWorkspaceFile(conversationId, path, initOverrides) {
|
|
274
|
+
await this.deleteConversationWorkspaceFileRaw({ conversationId: conversationId, path: path }, initOverrides);
|
|
275
|
+
}
|
|
242
276
|
/**
|
|
243
277
|
* Get a specific attachment by its ID from the context of a conversation.
|
|
244
278
|
* Retrieve an attachment from a conversation context
|
|
@@ -329,11 +363,49 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
329
363
|
const response = await this.getContextCustomVariableRaw({ conversationId: conversationId }, initOverrides);
|
|
330
364
|
return await response.value();
|
|
331
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Returns the CURRENT state of the file, read straight from the store. There is no versioning, so consulting an older message still returns the file as it is now. The content is always UTF-8 text.
|
|
368
|
+
* Read the content of a conversation workspace file
|
|
369
|
+
*/
|
|
370
|
+
async getConversationWorkspaceFileContentRaw(requestParameters, initOverrides) {
|
|
371
|
+
if (requestParameters['conversationId'] == null) {
|
|
372
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getConversationWorkspaceFileContent().');
|
|
373
|
+
}
|
|
374
|
+
if (requestParameters['path'] == null) {
|
|
375
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling getConversationWorkspaceFileContent().');
|
|
376
|
+
}
|
|
377
|
+
const queryParameters = {};
|
|
378
|
+
if (requestParameters['path'] != null) {
|
|
379
|
+
queryParameters['path'] = requestParameters['path'];
|
|
380
|
+
}
|
|
381
|
+
const headerParameters = {};
|
|
382
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
383
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
384
|
+
}
|
|
385
|
+
const response = await this.request({
|
|
386
|
+
path: `/conversations/{conversationId}/workspace/files/content`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
387
|
+
method: 'GET',
|
|
388
|
+
headers: headerParameters,
|
|
389
|
+
query: queryParameters,
|
|
390
|
+
}, initOverrides);
|
|
391
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkspaceFileContentUioFromJSON)(jsonValue));
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Returns the CURRENT state of the file, read straight from the store. There is no versioning, so consulting an older message still returns the file as it is now. The content is always UTF-8 text.
|
|
395
|
+
* Read the content of a conversation workspace file
|
|
396
|
+
*/
|
|
397
|
+
async getConversationWorkspaceFileContent(conversationId, path, initOverrides) {
|
|
398
|
+
const response = await this.getConversationWorkspaceFileContentRaw({ conversationId: conversationId, path: path }, initOverrides);
|
|
399
|
+
return await response.value();
|
|
400
|
+
}
|
|
332
401
|
/**
|
|
333
402
|
* Retrieve a list of conversations for the authenticated user.
|
|
334
403
|
* List conversations
|
|
335
404
|
*/
|
|
336
405
|
async getConversationsRaw(requestParameters, initOverrides) {
|
|
406
|
+
if (requestParameters['providerSource'] == null) {
|
|
407
|
+
throw new runtime.RequiredError('providerSource', 'Required parameter "providerSource" was null or undefined when calling getConversations().');
|
|
408
|
+
}
|
|
337
409
|
const queryParameters = {};
|
|
338
410
|
if (requestParameters['organizationId'] != null) {
|
|
339
411
|
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
@@ -369,8 +441,108 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
369
441
|
* Retrieve a list of conversations for the authenticated user.
|
|
370
442
|
* List conversations
|
|
371
443
|
*/
|
|
372
|
-
async getConversations(
|
|
373
|
-
const response = await this.getConversationsRaw({
|
|
444
|
+
async getConversations(providerSource, organizationId, page, limit, period, messageReaction, initOverrides) {
|
|
445
|
+
const response = await this.getConversationsRaw({ providerSource: providerSource, organizationId: organizationId, page: page, limit: limit, period: period, messageReaction: messageReaction }, initOverrides);
|
|
446
|
+
return await response.value();
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
|
|
450
|
+
* List the files of a conversation workspace
|
|
451
|
+
*/
|
|
452
|
+
async listConversationWorkspaceFilesRaw(requestParameters, initOverrides) {
|
|
453
|
+
if (requestParameters['conversationId'] == null) {
|
|
454
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling listConversationWorkspaceFiles().');
|
|
455
|
+
}
|
|
456
|
+
const queryParameters = {};
|
|
457
|
+
const headerParameters = {};
|
|
458
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
459
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
460
|
+
}
|
|
461
|
+
const response = await this.request({
|
|
462
|
+
path: `/conversations/{conversationId}/workspace/files`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
463
|
+
method: 'GET',
|
|
464
|
+
headers: headerParameters,
|
|
465
|
+
query: queryParameters,
|
|
466
|
+
}, initOverrides);
|
|
467
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.WorkspaceFileEntryUioFromJSON));
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
|
|
471
|
+
* List the files of a conversation workspace
|
|
472
|
+
*/
|
|
473
|
+
async listConversationWorkspaceFiles(conversationId, initOverrides) {
|
|
474
|
+
const response = await this.listConversationWorkspaceFilesRaw({ conversationId: conversationId }, initOverrides);
|
|
475
|
+
return await response.value();
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
|
|
479
|
+
* Mark a conversation attachment as processed
|
|
480
|
+
*/
|
|
481
|
+
async markAttachmentProcessedRaw(requestParameters, initOverrides) {
|
|
482
|
+
if (requestParameters['conversationId'] == null) {
|
|
483
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling markAttachmentProcessed().');
|
|
484
|
+
}
|
|
485
|
+
if (requestParameters['attachmentId'] == null) {
|
|
486
|
+
throw new runtime.RequiredError('attachmentId', 'Required parameter "attachmentId" was null or undefined when calling markAttachmentProcessed().');
|
|
487
|
+
}
|
|
488
|
+
if (requestParameters['attachmentProcessedRequestUio'] == null) {
|
|
489
|
+
throw new runtime.RequiredError('attachmentProcessedRequestUio', 'Required parameter "attachmentProcessedRequestUio" was null or undefined when calling markAttachmentProcessed().');
|
|
490
|
+
}
|
|
491
|
+
const queryParameters = {};
|
|
492
|
+
const headerParameters = {};
|
|
493
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
494
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
495
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
496
|
+
}
|
|
497
|
+
const response = await this.request({
|
|
498
|
+
path: `/conversations/{conversationId}/context/attachments/{attachmentId}/processed`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters['attachmentId']))),
|
|
499
|
+
method: 'POST',
|
|
500
|
+
headers: headerParameters,
|
|
501
|
+
query: queryParameters,
|
|
502
|
+
body: (0, index_1.AttachmentProcessedRequestUioToJSON)(requestParameters['attachmentProcessedRequestUio']),
|
|
503
|
+
}, initOverrides);
|
|
504
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
|
|
508
|
+
* Mark a conversation attachment as processed
|
|
509
|
+
*/
|
|
510
|
+
async markAttachmentProcessed(conversationId, attachmentId, attachmentProcessedRequestUio, initOverrides) {
|
|
511
|
+
const response = await this.markAttachmentProcessedRaw({ conversationId: conversationId, attachmentId: attachmentId, attachmentProcessedRequestUio: attachmentProcessedRequestUio }, initOverrides);
|
|
512
|
+
return await response.value();
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
|
|
516
|
+
* Set the conversation location context
|
|
517
|
+
*/
|
|
518
|
+
async setContextLocationRaw(requestParameters, initOverrides) {
|
|
519
|
+
if (requestParameters['conversationId'] == null) {
|
|
520
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling setContextLocation().');
|
|
521
|
+
}
|
|
522
|
+
if (requestParameters['contextLocationRequestUio'] == null) {
|
|
523
|
+
throw new runtime.RequiredError('contextLocationRequestUio', 'Required parameter "contextLocationRequestUio" was null or undefined when calling setContextLocation().');
|
|
524
|
+
}
|
|
525
|
+
const queryParameters = {};
|
|
526
|
+
const headerParameters = {};
|
|
527
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
528
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
529
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
530
|
+
}
|
|
531
|
+
const response = await this.request({
|
|
532
|
+
path: `/conversations/{conversationId}/context/location`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
533
|
+
method: 'POST',
|
|
534
|
+
headers: headerParameters,
|
|
535
|
+
query: queryParameters,
|
|
536
|
+
body: (0, index_1.ContextLocationRequestUioToJSON)(requestParameters['contextLocationRequestUio']),
|
|
537
|
+
}, initOverrides);
|
|
538
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
|
|
542
|
+
* Set the conversation location context
|
|
543
|
+
*/
|
|
544
|
+
async setContextLocation(conversationId, contextLocationRequestUio, initOverrides) {
|
|
545
|
+
const response = await this.setContextLocationRaw({ conversationId: conversationId, contextLocationRequestUio: contextLocationRequestUio }, initOverrides);
|
|
374
546
|
return await response.value();
|
|
375
547
|
}
|
|
376
548
|
/**
|
package/dist/apis/EngineApi.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 { BodyWithMessageUio, DefaultEngineRequestUio, ModelUio, ProviderCreateRequestUio,
|
|
13
|
+
import type { BodyWithMessageUio, DefaultEngineRequestUio, DeleteProvider200ResponseUio, EmbeddingProviderUio, ModelUio, ProviderCreateRequestUio, ProviderUio, ProviderValiationRequestUio } from '../models/index';
|
|
14
14
|
export interface CreateProviderRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
providerCreateRequestUio: ProviderCreateRequestUio;
|
|
@@ -19,15 +19,16 @@ export interface DeleteProviderRequest {
|
|
|
19
19
|
providerId: string;
|
|
20
20
|
organizationId: string;
|
|
21
21
|
}
|
|
22
|
+
export interface GetEngineProvidersWithEmbeddingRequest {
|
|
23
|
+
organizationId: string;
|
|
24
|
+
requiredModelId?: string;
|
|
25
|
+
}
|
|
22
26
|
export interface GetProviderRequest {
|
|
23
27
|
providerId: string;
|
|
24
28
|
}
|
|
25
29
|
export interface GetProvidersRequest {
|
|
26
30
|
organizationId: string;
|
|
27
31
|
}
|
|
28
|
-
export interface GetSimpleProvidersRequest {
|
|
29
|
-
organizationId: string;
|
|
30
|
-
}
|
|
31
32
|
export interface UpdateDefaultEngineRequest {
|
|
32
33
|
defaultEngineRequestUio: DefaultEngineRequestUio;
|
|
33
34
|
}
|
|
@@ -59,12 +60,22 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
59
60
|
* Delete a provider for an organization
|
|
60
61
|
* Delete a provider for an organization
|
|
61
62
|
*/
|
|
62
|
-
deleteProviderRaw(requestParameters: DeleteProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
63
|
+
deleteProviderRaw(requestParameters: DeleteProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteProvider200ResponseUio>>;
|
|
63
64
|
/**
|
|
64
65
|
* Delete a provider for an organization
|
|
65
66
|
* Delete a provider for an organization
|
|
66
67
|
*/
|
|
67
|
-
deleteProvider(providerId: string, organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
68
|
+
deleteProvider(providerId: string, organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteProvider200ResponseUio>;
|
|
69
|
+
/**
|
|
70
|
+
* Returns engine providers that support embedding for a given organization. Chaque provider est réduit aux seuls modèles marqués `hasEmbedding`.
|
|
71
|
+
* Get engine providers with embedding support
|
|
72
|
+
*/
|
|
73
|
+
getEngineProvidersWithEmbeddingRaw(requestParameters: GetEngineProvidersWithEmbeddingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<EmbeddingProviderUio>>>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns engine providers that support embedding for a given organization. Chaque provider est réduit aux seuls modèles marqués `hasEmbedding`.
|
|
76
|
+
* Get engine providers with embedding support
|
|
77
|
+
*/
|
|
78
|
+
getEngineProvidersWithEmbedding(organizationId: string, requiredModelId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<EmbeddingProviderUio>>;
|
|
68
79
|
/**
|
|
69
80
|
* Get a provider by id
|
|
70
81
|
* Get a provider
|
|
@@ -85,16 +96,6 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
85
96
|
* Get providers for an organization
|
|
86
97
|
*/
|
|
87
98
|
getProviders(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProviderUio>>;
|
|
88
|
-
/**
|
|
89
|
-
* Get a simplified version of providers for an organization
|
|
90
|
-
* Get a simplified version of providers for an organization
|
|
91
|
-
*/
|
|
92
|
-
getSimpleProvidersRaw(requestParameters: GetSimpleProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProviderSimpleUio>>>;
|
|
93
|
-
/**
|
|
94
|
-
* Get a simplified version of providers for an organization
|
|
95
|
-
* Get a simplified version of providers for an organization
|
|
96
|
-
*/
|
|
97
|
-
getSimpleProviders(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProviderSimpleUio>>;
|
|
98
99
|
/**
|
|
99
100
|
* Update the default engine for an organization
|
|
100
101
|
* Update the default engine for an organization
|
package/dist/apis/EngineApi.js
CHANGED
|
@@ -112,7 +112,7 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
112
112
|
headers: headerParameters,
|
|
113
113
|
query: queryParameters,
|
|
114
114
|
}, initOverrides);
|
|
115
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
115
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteProvider200ResponseUioFromJSON)(jsonValue));
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* Delete a provider for an organization
|
|
@@ -122,6 +122,38 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
122
122
|
const response = await this.deleteProviderRaw({ providerId: providerId, organizationId: organizationId }, initOverrides);
|
|
123
123
|
return await response.value();
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Returns engine providers that support embedding for a given organization. Chaque provider est réduit aux seuls modèles marqués `hasEmbedding`.
|
|
127
|
+
* Get engine providers with embedding support
|
|
128
|
+
*/
|
|
129
|
+
async getEngineProvidersWithEmbeddingRaw(requestParameters, initOverrides) {
|
|
130
|
+
if (requestParameters['organizationId'] == null) {
|
|
131
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getEngineProvidersWithEmbedding().');
|
|
132
|
+
}
|
|
133
|
+
const queryParameters = {};
|
|
134
|
+
if (requestParameters['requiredModelId'] != null) {
|
|
135
|
+
queryParameters['requiredModelId'] = requestParameters['requiredModelId'];
|
|
136
|
+
}
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
139
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
140
|
+
}
|
|
141
|
+
const response = await this.request({
|
|
142
|
+
path: `/organizations/{organizationId}/engines/providers/with-embedding`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
143
|
+
method: 'GET',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.EmbeddingProviderUioFromJSON));
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Returns engine providers that support embedding for a given organization. Chaque provider est réduit aux seuls modèles marqués `hasEmbedding`.
|
|
151
|
+
* Get engine providers with embedding support
|
|
152
|
+
*/
|
|
153
|
+
async getEngineProvidersWithEmbedding(organizationId, requiredModelId, initOverrides) {
|
|
154
|
+
const response = await this.getEngineProvidersWithEmbeddingRaw({ organizationId: organizationId, requiredModelId: requiredModelId }, initOverrides);
|
|
155
|
+
return await response.value();
|
|
156
|
+
}
|
|
125
157
|
/**
|
|
126
158
|
* Get a provider by id
|
|
127
159
|
* Get a provider
|
|
@@ -180,35 +212,6 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
180
212
|
const response = await this.getProvidersRaw({ organizationId: organizationId }, initOverrides);
|
|
181
213
|
return await response.value();
|
|
182
214
|
}
|
|
183
|
-
/**
|
|
184
|
-
* Get a simplified version of providers for an organization
|
|
185
|
-
* Get a simplified version of providers for an organization
|
|
186
|
-
*/
|
|
187
|
-
async getSimpleProvidersRaw(requestParameters, initOverrides) {
|
|
188
|
-
if (requestParameters['organizationId'] == null) {
|
|
189
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getSimpleProviders().');
|
|
190
|
-
}
|
|
191
|
-
const queryParameters = {};
|
|
192
|
-
const headerParameters = {};
|
|
193
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
194
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
195
|
-
}
|
|
196
|
-
const response = await this.request({
|
|
197
|
-
path: `/engines/providers/{organizationId}/simple`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
198
|
-
method: 'GET',
|
|
199
|
-
headers: headerParameters,
|
|
200
|
-
query: queryParameters,
|
|
201
|
-
}, initOverrides);
|
|
202
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProviderSimpleUioFromJSON));
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Get a simplified version of providers for an organization
|
|
206
|
-
* Get a simplified version of providers for an organization
|
|
207
|
-
*/
|
|
208
|
-
async getSimpleProviders(organizationId, initOverrides) {
|
|
209
|
-
const response = await this.getSimpleProvidersRaw({ organizationId: organizationId }, initOverrides);
|
|
210
|
-
return await response.value();
|
|
211
|
-
}
|
|
212
215
|
/**
|
|
213
216
|
* Update the default engine for an organization
|
|
214
217
|
* Update the default engine for an organization
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { SpeechToTextProviderUio } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface GetEngineProvidersWithSpeechToTextRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -22,10 +22,10 @@ export declare class EnginesApi extends runtime.BaseAPI {
|
|
|
22
22
|
* Returns providers that have at least one model with the speech-to-text capability enabled.
|
|
23
23
|
* List organization engine providers with speech-to-text models
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
getEngineProvidersWithSpeechToTextRaw(requestParameters: GetEngineProvidersWithSpeechToTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SpeechToTextProviderUio>>>;
|
|
26
26
|
/**
|
|
27
27
|
* Returns providers that have at least one model with the speech-to-text capability enabled.
|
|
28
28
|
* List organization engine providers with speech-to-text models
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
getEngineProvidersWithSpeechToText(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SpeechToTextProviderUio>>;
|
|
31
31
|
}
|
package/dist/apis/EnginesApi.js
CHANGED
|
@@ -57,9 +57,9 @@ class EnginesApi extends runtime.BaseAPI {
|
|
|
57
57
|
* Returns providers that have at least one model with the speech-to-text capability enabled.
|
|
58
58
|
* List organization engine providers with speech-to-text models
|
|
59
59
|
*/
|
|
60
|
-
async
|
|
60
|
+
async getEngineProvidersWithSpeechToTextRaw(requestParameters, initOverrides) {
|
|
61
61
|
if (requestParameters['organizationId'] == null) {
|
|
62
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getEngineProvidersWithSpeechToText().');
|
|
63
63
|
}
|
|
64
64
|
const queryParameters = {};
|
|
65
65
|
const headerParameters = {};
|
|
@@ -78,8 +78,8 @@ class EnginesApi extends runtime.BaseAPI {
|
|
|
78
78
|
* Returns providers that have at least one model with the speech-to-text capability enabled.
|
|
79
79
|
* List organization engine providers with speech-to-text models
|
|
80
80
|
*/
|
|
81
|
-
async
|
|
82
|
-
const response = await this.
|
|
81
|
+
async getEngineProvidersWithSpeechToText(organizationId, initOverrides) {
|
|
82
|
+
const response = await this.getEngineProvidersWithSpeechToTextRaw({ organizationId: organizationId }, initOverrides);
|
|
83
83
|
return await response.value();
|
|
84
84
|
}
|
|
85
85
|
}
|