@breign/client 1.0.125 → 1.0.127
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 +32 -3
- package/dist/apis/ConversationsApi.js +76 -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/KnowledgeApi.d.ts +127 -61
- package/dist/apis/KnowledgeApi.js +257 -108
- 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/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/ChunkCreateRequestContentInnerUio.d.ts +1 -1
- package/dist/models/ChunkCreateRequestContentInnerUio.js +1 -3
- package/dist/models/ChunkCreateRequestUio.d.ts +3 -3
- package/dist/models/ChunkCreateRequestUio.js +10 -4
- 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/CreateKnowledgeBaseRequestEmbeddingConfigUio.d.ts +44 -0
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.js +58 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.d.ts +59 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.js +65 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.d.ts +46 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.js +62 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.d.ts +38 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.js +52 -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/FileCreationResponseUio.d.ts +1 -0
- package/dist/models/FileCreationResponseUio.js +2 -1
- package/dist/models/FileUio.d.ts +5 -3
- package/dist/models/FileUio.js +4 -4
- package/dist/models/FileWithDownloadUrlUio.d.ts +5 -3
- package/dist/models/FileWithDownloadUrlUio.js +4 -4
- 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/ImageKnowledgeUio.d.ts +13 -6
- package/dist/models/ImageKnowledgeUio.js +23 -6
- package/dist/models/KnowledgeBaseConfigurationUio.d.ts +14 -0
- package/dist/models/KnowledgeBaseConfigurationUio.js +10 -1
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.d.ts +45 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.js +57 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.d.ts +22 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.js +50 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.d.ts +157 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.js +102 -0
- package/dist/models/KnowledgeBaseUio.d.ts +6 -62
- package/dist/models/KnowledgeBaseUio.js +2 -22
- package/dist/models/KnowledgeFileCreationRequestUio.d.ts +68 -0
- package/dist/models/KnowledgeFileCreationRequestUio.js +64 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.d.ts +51 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.js +58 -0
- package/dist/models/KnowledgeFileSummaryUio.d.ts +2 -3
- package/dist/models/KnowledgeFileSummaryUio.js +2 -3
- package/dist/models/KnowledgeFileUio.d.ts +140 -0
- package/dist/models/KnowledgeFileUio.js +92 -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/UploadedStatusUpdateRequestUio.d.ts +39 -0
- package/dist/models/UploadedStatusUpdateRequestUio.js +57 -0
- 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/index.d.ts +48 -20
- package/dist/models/index.js +48 -20
- package/dist/openapi.json +3768 -2025
- 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/FileFormDataUio.d.ts +0 -38
- package/dist/models/FileFormDataUio.js +0 -50
- package/dist/models/FileStatusUpdateRequestUio.d.ts +0 -33
- package/dist/models/FileStatusUpdateRequestUio.js +0 -51
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +0 -44
- package/dist/models/KnowledgeBaseFilesInnerUio.js +0 -58
- package/dist/models/KnowledgeBasePrivacyUio.d.ts +0 -25
- package/dist/models/KnowledgeBasePrivacyUio.js +0 -51
- package/dist/models/KnowledgeFilePagePreviewUio.d.ts +0 -44
- package/dist/models/KnowledgeFilePagePreviewUio.js +0 -56
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.d.ts +0 -21
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.js +0 -37
- 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 } from '../models/index';
|
|
14
14
|
export interface ArchiveConversationByIdRequest {
|
|
15
15
|
conversationId: string;
|
|
16
16
|
}
|
|
@@ -46,13 +46,22 @@ export interface GetContextCustomVariableRequest {
|
|
|
46
46
|
conversationId: string;
|
|
47
47
|
}
|
|
48
48
|
export interface GetConversationsRequest {
|
|
49
|
+
providerSource: GetConversationsProviderSourceEnum;
|
|
49
50
|
organizationId?: string;
|
|
50
|
-
providerSource?: GetConversationsProviderSourceEnum;
|
|
51
51
|
page?: number;
|
|
52
52
|
limit?: number;
|
|
53
53
|
period?: GetConversationsPeriodEnum;
|
|
54
54
|
messageReaction?: GetConversationsMessageReactionEnum;
|
|
55
55
|
}
|
|
56
|
+
export interface MarkAttachmentProcessedRequest {
|
|
57
|
+
conversationId: string;
|
|
58
|
+
attachmentId: string;
|
|
59
|
+
attachmentProcessedRequestUio: AttachmentProcessedRequestUio;
|
|
60
|
+
}
|
|
61
|
+
export interface SetContextLocationRequest {
|
|
62
|
+
conversationId: string;
|
|
63
|
+
contextLocationRequestUio: ContextLocationRequestUio;
|
|
64
|
+
}
|
|
56
65
|
export interface UpdateAttachmentStatusRequest {
|
|
57
66
|
conversationId: string;
|
|
58
67
|
attachmentId: string;
|
|
@@ -174,7 +183,27 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
174
183
|
* Retrieve a list of conversations for the authenticated user.
|
|
175
184
|
* List conversations
|
|
176
185
|
*/
|
|
177
|
-
getConversations(
|
|
186
|
+
getConversations(providerSource: GetConversationsProviderSourceEnum, organizationId?: string, page?: number, limit?: number, period?: GetConversationsPeriodEnum, messageReaction?: GetConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
|
|
187
|
+
/**
|
|
188
|
+
* 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`.
|
|
189
|
+
* Mark a conversation attachment as processed
|
|
190
|
+
*/
|
|
191
|
+
markAttachmentProcessedRaw(requestParameters: MarkAttachmentProcessedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
192
|
+
/**
|
|
193
|
+
* 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`.
|
|
194
|
+
* Mark a conversation attachment as processed
|
|
195
|
+
*/
|
|
196
|
+
markAttachmentProcessed(conversationId: string, attachmentId: string, attachmentProcessedRequestUio: AttachmentProcessedRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
197
|
+
/**
|
|
198
|
+
* Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
|
|
199
|
+
* Set the conversation location context
|
|
200
|
+
*/
|
|
201
|
+
setContextLocationRaw(requestParameters: SetContextLocationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
202
|
+
/**
|
|
203
|
+
* Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
|
|
204
|
+
* Set the conversation location context
|
|
205
|
+
*/
|
|
206
|
+
setContextLocation(conversationId: string, contextLocationRequestUio: ContextLocationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
178
207
|
/**
|
|
179
208
|
* Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
|
|
180
209
|
* Update the status of an uploaded attachment
|
|
@@ -334,6 +334,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
334
334
|
* List conversations
|
|
335
335
|
*/
|
|
336
336
|
async getConversationsRaw(requestParameters, initOverrides) {
|
|
337
|
+
if (requestParameters['providerSource'] == null) {
|
|
338
|
+
throw new runtime.RequiredError('providerSource', 'Required parameter "providerSource" was null or undefined when calling getConversations().');
|
|
339
|
+
}
|
|
337
340
|
const queryParameters = {};
|
|
338
341
|
if (requestParameters['organizationId'] != null) {
|
|
339
342
|
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
@@ -369,8 +372,79 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
369
372
|
* Retrieve a list of conversations for the authenticated user.
|
|
370
373
|
* List conversations
|
|
371
374
|
*/
|
|
372
|
-
async getConversations(
|
|
373
|
-
const response = await this.getConversationsRaw({
|
|
375
|
+
async getConversations(providerSource, organizationId, page, limit, period, messageReaction, initOverrides) {
|
|
376
|
+
const response = await this.getConversationsRaw({ providerSource: providerSource, organizationId: organizationId, page: page, limit: limit, period: period, messageReaction: messageReaction }, initOverrides);
|
|
377
|
+
return await response.value();
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* 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`.
|
|
381
|
+
* Mark a conversation attachment as processed
|
|
382
|
+
*/
|
|
383
|
+
async markAttachmentProcessedRaw(requestParameters, initOverrides) {
|
|
384
|
+
if (requestParameters['conversationId'] == null) {
|
|
385
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling markAttachmentProcessed().');
|
|
386
|
+
}
|
|
387
|
+
if (requestParameters['attachmentId'] == null) {
|
|
388
|
+
throw new runtime.RequiredError('attachmentId', 'Required parameter "attachmentId" was null or undefined when calling markAttachmentProcessed().');
|
|
389
|
+
}
|
|
390
|
+
if (requestParameters['attachmentProcessedRequestUio'] == null) {
|
|
391
|
+
throw new runtime.RequiredError('attachmentProcessedRequestUio', 'Required parameter "attachmentProcessedRequestUio" was null or undefined when calling markAttachmentProcessed().');
|
|
392
|
+
}
|
|
393
|
+
const queryParameters = {};
|
|
394
|
+
const headerParameters = {};
|
|
395
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
396
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
397
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
398
|
+
}
|
|
399
|
+
const response = await this.request({
|
|
400
|
+
path: `/conversations/{conversationId}/context/attachments/{attachmentId}/processed`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters['attachmentId']))),
|
|
401
|
+
method: 'POST',
|
|
402
|
+
headers: headerParameters,
|
|
403
|
+
query: queryParameters,
|
|
404
|
+
body: (0, index_1.AttachmentProcessedRequestUioToJSON)(requestParameters['attachmentProcessedRequestUio']),
|
|
405
|
+
}, initOverrides);
|
|
406
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* 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`.
|
|
410
|
+
* Mark a conversation attachment as processed
|
|
411
|
+
*/
|
|
412
|
+
async markAttachmentProcessed(conversationId, attachmentId, attachmentProcessedRequestUio, initOverrides) {
|
|
413
|
+
const response = await this.markAttachmentProcessedRaw({ conversationId: conversationId, attachmentId: attachmentId, attachmentProcessedRequestUio: attachmentProcessedRequestUio }, initOverrides);
|
|
414
|
+
return await response.value();
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
|
|
418
|
+
* Set the conversation location context
|
|
419
|
+
*/
|
|
420
|
+
async setContextLocationRaw(requestParameters, initOverrides) {
|
|
421
|
+
if (requestParameters['conversationId'] == null) {
|
|
422
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling setContextLocation().');
|
|
423
|
+
}
|
|
424
|
+
if (requestParameters['contextLocationRequestUio'] == null) {
|
|
425
|
+
throw new runtime.RequiredError('contextLocationRequestUio', 'Required parameter "contextLocationRequestUio" was null or undefined when calling setContextLocation().');
|
|
426
|
+
}
|
|
427
|
+
const queryParameters = {};
|
|
428
|
+
const headerParameters = {};
|
|
429
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
430
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
431
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
432
|
+
}
|
|
433
|
+
const response = await this.request({
|
|
434
|
+
path: `/conversations/{conversationId}/context/location`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
435
|
+
method: 'POST',
|
|
436
|
+
headers: headerParameters,
|
|
437
|
+
query: queryParameters,
|
|
438
|
+
body: (0, index_1.ContextLocationRequestUioToJSON)(requestParameters['contextLocationRequestUio']),
|
|
439
|
+
}, initOverrides);
|
|
440
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
|
|
444
|
+
* Set the conversation location context
|
|
445
|
+
*/
|
|
446
|
+
async setContextLocation(conversationId, contextLocationRequestUio, initOverrides) {
|
|
447
|
+
const response = await this.setContextLocationRaw({ conversationId: conversationId, contextLocationRequestUio: contextLocationRequestUio }, initOverrides);
|
|
374
448
|
return await response.value();
|
|
375
449
|
}
|
|
376
450
|
/**
|
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
|
}
|