@breign/client 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -0
- package/dist/apis/AgentApi.d.ts +330 -0
- package/dist/apis/AgentApi.js +790 -0
- package/dist/apis/AppApi.d.ts +348 -0
- package/dist/apis/AppApi.js +837 -0
- package/dist/apis/AuthApi.d.ts +45 -0
- package/dist/apis/AuthApi.js +122 -0
- package/dist/apis/ChunksApi.d.ts +95 -0
- package/dist/apis/ChunksApi.js +235 -0
- package/dist/apis/ConfigurationApi.d.ts +74 -0
- package/dist/apis/ConfigurationApi.js +197 -0
- package/dist/apis/ContentsApi.d.ts +44 -0
- package/dist/apis/ContentsApi.js +115 -0
- package/dist/apis/ConversationsApi.d.ts +87 -0
- package/dist/apis/ConversationsApi.js +214 -0
- package/dist/apis/EngineApi.d.ts +112 -0
- package/dist/apis/EngineApi.js +280 -0
- package/dist/apis/FilesApi.d.ts +67 -0
- package/dist/apis/FilesApi.js +171 -0
- package/dist/apis/GeneralApi.d.ts +28 -0
- package/dist/apis/GeneralApi.js +83 -0
- package/dist/apis/GuardiansApi.d.ts +122 -0
- package/dist/apis/GuardiansApi.js +304 -0
- package/dist/apis/KnowledgeApi.d.ts +171 -0
- package/dist/apis/KnowledgeApi.js +436 -0
- package/dist/apis/ManifestsApi.d.ts +81 -0
- package/dist/apis/ManifestsApi.js +205 -0
- package/dist/apis/MetricsApi.d.ts +46 -0
- package/dist/apis/MetricsApi.js +121 -0
- package/dist/apis/OrganizationsApi.d.ts +31 -0
- package/dist/apis/OrganizationsApi.js +86 -0
- package/dist/apis/PromptsApi.d.ts +101 -0
- package/dist/apis/PromptsApi.js +254 -0
- package/dist/apis/RemotesApi.d.ts +31 -0
- package/dist/apis/RemotesApi.js +88 -0
- package/dist/apis/ToolsApi.d.ts +47 -0
- package/dist/apis/ToolsApi.js +128 -0
- package/dist/apis/index.d.ts +18 -1
- package/dist/apis/index.js +18 -1
- package/dist/models/AgentDuplicateRequestUio.d.ts +56 -0
- package/dist/models/AgentDuplicateRequestUio.js +58 -0
- package/dist/models/{BrainFlowCreateUio.d.ts → AgentFlowCreateUio.d.ts} +12 -12
- package/dist/models/{BrainFlowCreateUio.js → AgentFlowCreateUio.js} +13 -13
- package/dist/models/{BrainFlowUio.d.ts → AgentFlowUio.d.ts} +15 -15
- package/dist/models/{BrainFlowUio.js → AgentFlowUio.js} +16 -16
- package/dist/models/AgentKnowledgeBaseUio.d.ts +57 -0
- package/dist/models/AgentKnowledgeBaseUio.js +67 -0
- package/dist/models/AgentMetricsEventUio.d.ts +65 -0
- package/dist/models/{BrainMetricsEventUio.js → AgentMetricsEventUio.js} +20 -20
- package/dist/models/{BrainMetricsOverviewUio.d.ts → AgentMetricsOverviewUio.d.ts} +14 -14
- package/dist/models/{BrainMetricsOverviewUio.js → AgentMetricsOverviewUio.js} +13 -13
- package/dist/models/AgentMetricsUnitsTypeUio.d.ts +27 -0
- package/dist/models/AgentMetricsUnitsTypeUio.js +53 -0
- package/dist/models/AgentMetricsValueUio.d.ts +57 -0
- package/dist/models/{BrainMetricsValueUio.js → AgentMetricsValueUio.js} +16 -16
- package/dist/models/AgentModuleTypeUio.d.ts +25 -0
- package/dist/models/AgentModuleTypeUio.js +51 -0
- package/dist/models/AgentModuleUio.d.ts +51 -0
- package/dist/models/{BrainModuleUio.js → AgentModuleUio.js} +16 -16
- package/dist/models/AgentPatchEngineUio.d.ts +38 -0
- package/dist/models/AgentPatchEngineUio.js +54 -0
- package/dist/models/AgentPatchUio.d.ts +173 -0
- package/dist/models/{BrainPatchUio.js → AgentPatchUio.js} +32 -43
- package/dist/models/AgentRequestProfilePictureUio.d.ts +50 -0
- package/dist/models/{BrainRequestImageBrainUio.js → AgentRequestProfilePictureUio.js} +13 -13
- package/dist/models/{BrainRequestUio.d.ts → AgentRequestUio.d.ts} +26 -26
- package/dist/models/{BrainRequestUio.js → AgentRequestUio.js} +17 -19
- package/dist/models/AgentSubscriptionTextInteractionsUio.d.ts +39 -0
- package/dist/models/{BrainSubscriptionTextInteractionsUio.js → AgentSubscriptionTextInteractionsUio.js} +13 -13
- package/dist/models/AgentSubscriptionUio.d.ts +57 -0
- package/dist/models/AgentSubscriptionUio.js +63 -0
- package/dist/models/AgentToolUio.d.ts +78 -0
- package/dist/models/AgentToolUio.js +72 -0
- package/dist/models/AgentTypeUio.d.ts +27 -0
- package/dist/models/AgentTypeUio.js +53 -0
- package/dist/models/{BrainUio.d.ts → AgentUio.d.ts} +60 -39
- package/dist/models/{BrainUio.js → AgentUio.js} +30 -23
- package/dist/models/AgentUsageMetricsIdUio.d.ts +44 -0
- package/dist/models/{BrainUsageMetricsIdUio.js → AgentUsageMetricsIdUio.js} +13 -13
- package/dist/models/AgentUsageMetricsUio.d.ts +46 -0
- package/dist/models/{BrainUsageMetricsUio.js → AgentUsageMetricsUio.js} +16 -16
- package/dist/models/ApiKeyUio.d.ts +44 -0
- package/dist/models/ApiKeyUio.js +58 -0
- package/dist/models/AppChatCreateRequestUio.d.ts +44 -0
- package/dist/models/AppChatCreateRequestUio.js +56 -0
- package/dist/models/AppChatCreateResponseUio.d.ts +38 -0
- package/dist/models/AppChatCreateResponseUio.js +52 -0
- package/dist/models/AppChatSayRequestUio.d.ts +38 -0
- package/dist/models/AppChatSayRequestUio.js +52 -0
- package/dist/models/AppChatSayResponseUio.d.ts +32 -0
- package/dist/models/AppChatSayResponseUio.js +50 -0
- package/dist/models/AppChatSubmitMessageRequestUio.d.ts +32 -0
- package/dist/models/AppChatSubmitMessageRequestUio.js +50 -0
- package/dist/models/AppConfigurationUio.d.ts +33 -0
- package/dist/models/AppConfigurationUio.js +52 -0
- package/dist/models/AppConfigurationUpdateRequestUio.d.ts +33 -0
- package/dist/models/AppConfigurationUpdateRequestUio.js +50 -0
- package/dist/models/AppCreateRequestUio.d.ts +87 -0
- package/dist/models/AppCreateRequestUio.js +73 -0
- package/dist/models/AppFlowCreateRequestUio.d.ts +44 -0
- package/dist/models/AppFlowCreateRequestUio.js +54 -0
- package/dist/models/AppInstanceCreateRequestUio.d.ts +32 -0
- package/dist/models/AppInstanceCreateRequestUio.js +50 -0
- package/dist/models/AppLightUio.d.ts +80 -0
- package/dist/models/AppLightUio.js +80 -0
- package/dist/models/AppProbeRequestUio.d.ts +33 -0
- package/dist/models/AppProbeRequestUio.js +52 -0
- package/dist/models/AppProbeResponseUio.d.ts +39 -0
- package/dist/models/AppProbeResponseUio.js +56 -0
- package/dist/models/AppStatusRequestUio.d.ts +33 -0
- package/dist/models/AppStatusRequestUio.js +51 -0
- package/dist/models/AppStatusResponseUio.d.ts +45 -0
- package/dist/models/AppStatusResponseUio.js +57 -0
- package/dist/models/AppStatusUio.d.ts +25 -0
- package/dist/models/AppStatusUio.js +51 -0
- package/dist/models/AppSubmitMessageRequestUio.d.ts +34 -0
- package/dist/models/AppSubmitMessageRequestUio.js +50 -0
- package/dist/models/AppTextToSpeechRequestUio.d.ts +38 -0
- package/dist/models/AppTextToSpeechRequestUio.js +54 -0
- package/dist/models/AppTextToSpeechResponseUio.d.ts +33 -0
- package/dist/models/AppTextToSpeechResponseUio.js +51 -0
- package/dist/models/AppUio.d.ts +139 -0
- package/dist/models/AppUio.js +109 -0
- package/dist/models/AppUpdateRequestUio.d.ts +81 -0
- package/dist/models/AppUpdateRequestUio.js +65 -0
- package/dist/models/AttachmentCreateRequestUio.d.ts +57 -0
- package/dist/models/AttachmentCreateRequestUio.js +67 -0
- package/dist/models/AttachmentTypeUio.d.ts +24 -0
- package/dist/models/AttachmentTypeUio.js +50 -0
- package/dist/models/AudioFile1Uio.d.ts +45 -0
- package/dist/models/AudioFile1Uio.js +59 -0
- package/dist/models/AudioFileOrBufferUio.d.ts +22 -0
- package/dist/models/AudioFileOrBufferUio.js +50 -0
- package/dist/models/AudioFileTypeUio.d.ts +24 -0
- package/dist/models/AudioFileTypeUio.js +50 -0
- package/dist/models/AudioFileUio.d.ts +45 -0
- package/dist/models/AudioFileUio.js +59 -0
- package/dist/models/AuthCodeConfirmRequestUio.d.ts +45 -0
- package/dist/models/AuthCodeConfirmRequestUio.js +59 -0
- package/dist/models/AuthCodeConfirmResponseUio.d.ts +39 -0
- package/dist/models/AuthCodeConfirmResponseUio.js +55 -0
- package/dist/models/AuthCodeRequestUio.d.ts +40 -0
- package/dist/models/AuthCodeRequestUio.js +56 -0
- package/dist/models/AuthCodeResponseUio.d.ts +38 -0
- package/dist/models/AuthCodeResponseUio.js +54 -0
- package/dist/models/AuthTypeUio.d.ts +24 -0
- package/dist/models/AuthTypeUio.js +50 -0
- package/dist/models/BodyWithIdUio.d.ts +32 -0
- package/dist/models/BodyWithIdUio.js +50 -0
- package/dist/models/BodyWithMessageUio.d.ts +32 -0
- package/dist/models/BodyWithMessageUio.js +50 -0
- package/dist/models/ChatContextUio.d.ts +39 -0
- package/dist/models/ChatContextUio.js +53 -0
- package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
- package/dist/models/ChatMessageAudioInnerUio.js +54 -0
- package/dist/models/ChatMessageRoleUio.d.ts +26 -0
- package/dist/models/ChatMessageRoleUio.js +52 -0
- package/dist/models/ChatMessageUio.d.ts +128 -0
- package/dist/models/ChatMessageUio.js +92 -0
- package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
- package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
- package/dist/models/ChatUio.d.ts +100 -0
- package/dist/models/ChatUio.js +86 -0
- package/dist/models/ChunkContentCreateUio.d.ts +77 -0
- package/dist/models/ChunkContentCreateUio.js +77 -0
- package/dist/models/ChunkContentUio.d.ts +69 -0
- package/dist/models/ChunkContentUio.js +71 -0
- package/dist/models/ChunkCreateRequestContentInnerUio.d.ts +50 -0
- package/dist/models/ChunkCreateRequestContentInnerUio.js +62 -0
- package/dist/models/ChunkCreateRequestUio.d.ts +45 -0
- package/dist/models/ChunkCreateRequestUio.js +53 -0
- package/dist/models/ChunkCreateResponseUio.d.ts +57 -0
- package/dist/models/ChunkCreateResponseUio.js +67 -0
- package/dist/models/ChunkUio.d.ts +57 -0
- package/dist/models/ChunkUio.js +67 -0
- package/dist/models/ConfigurationDefaultFillerPhrasesUio.d.ts +44 -0
- package/dist/models/ConfigurationDefaultFillerPhrasesUio.js +58 -0
- package/dist/models/ContextUio.d.ts +33 -0
- package/dist/models/ContextUio.js +51 -0
- package/dist/models/ConversationUio.d.ts +39 -0
- package/dist/models/ConversationUio.js +55 -0
- package/dist/models/DefaultClientPricesUio.d.ts +39 -0
- package/dist/models/DefaultClientPricesUio.js +55 -0
- package/dist/models/DefaultEngineRequestUio.d.ts +44 -0
- package/dist/models/DefaultEngineRequestUio.js +58 -0
- package/dist/models/DocumentAddRequestUio.d.ts +38 -0
- package/dist/models/DocumentAddRequestUio.js +52 -0
- package/dist/models/EngineUio.d.ts +4 -7
- package/dist/models/EngineUio.js +6 -7
- package/dist/models/FileAttachmentProcessedOneOf1Uio.d.ts +45 -0
- package/dist/models/FileAttachmentProcessedOneOf1Uio.js +61 -0
- package/dist/models/FileAttachmentProcessedOneOfUio.d.ts +45 -0
- package/dist/models/FileAttachmentProcessedOneOfUio.js +57 -0
- package/dist/models/FileAttachmentProcessedUio.d.ts +23 -0
- package/dist/models/FileAttachmentProcessedUio.js +57 -0
- package/dist/models/FileAttachmentStatusUio.d.ts +27 -0
- package/dist/models/FileAttachmentStatusUio.js +53 -0
- package/dist/models/FileAttachmentUio.d.ts +89 -0
- package/dist/models/FileAttachmentUio.js +85 -0
- package/dist/models/FileCreationRequestUio.d.ts +6 -0
- package/dist/models/FileCreationRequestUio.js +2 -0
- package/dist/models/FileCreationResponseUio.d.ts +83 -0
- package/dist/models/FileCreationResponseUio.js +83 -0
- package/dist/models/FileStatusUio.d.ts +1 -0
- package/dist/models/FileStatusUio.js +2 -1
- package/dist/models/FileStatusUpdateRequestUio.d.ts +33 -0
- package/dist/models/FileStatusUpdateRequestUio.js +51 -0
- package/dist/models/FileUio.d.ts +2 -8
- package/dist/models/FileUio.js +2 -6
- package/dist/models/FileWithDownloadUrlUio.d.ts +75 -0
- package/dist/models/FileWithDownloadUrlUio.js +79 -0
- package/dist/models/FlowUio.d.ts +45 -0
- package/dist/models/FlowUio.js +53 -0
- package/dist/models/GuardianCreateRequestUio.d.ts +73 -0
- package/dist/models/GuardianCreateRequestUio.js +69 -0
- package/dist/models/GuardianEngineUio.d.ts +34 -0
- package/dist/models/GuardianEngineUio.js +50 -0
- package/dist/models/GuardianPositionUio.d.ts +25 -0
- package/dist/models/GuardianPositionUio.js +51 -0
- package/dist/models/GuardianPutRequestUio.d.ts +73 -0
- package/dist/models/GuardianPutRequestUio.js +63 -0
- package/dist/models/GuardianRoleUio.d.ts +28 -0
- package/dist/models/GuardianRoleUio.js +54 -0
- package/dist/models/GuardianTypeUio.d.ts +26 -0
- package/dist/models/GuardianTypeUio.js +52 -0
- package/dist/models/GuardianUio.d.ts +122 -0
- package/dist/models/GuardianUio.js +90 -0
- package/dist/models/HealthCheckResponseComponentsApiUio.d.ts +33 -0
- package/dist/models/HealthCheckResponseComponentsApiUio.js +49 -0
- package/dist/models/HealthCheckResponseComponentsUio.d.ts +39 -0
- package/dist/models/HealthCheckResponseComponentsUio.js +51 -0
- package/dist/models/HealthCheckResponseUio.d.ts +51 -0
- package/dist/models/HealthCheckResponseUio.js +55 -0
- package/dist/models/HealthStatusUio.d.ts +26 -0
- package/dist/models/HealthStatusUio.js +52 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -0
- package/dist/models/InputUio.d.ts +38 -0
- package/dist/models/InputUio.js +54 -0
- package/dist/models/InstanceUio.d.ts +57 -0
- package/dist/models/InstanceUio.js +67 -0
- package/dist/models/KnowledgeBasePrivacyUio.d.ts +25 -0
- package/dist/models/KnowledgeBasePrivacyUio.js +51 -0
- package/dist/models/LipsyncUio.d.ts +45 -0
- package/dist/models/LipsyncUio.js +56 -0
- package/dist/models/ManifestCreateRequestUio.d.ts +51 -0
- package/dist/models/ManifestCreateRequestUio.js +60 -0
- package/dist/models/ManifestUio.d.ts +57 -0
- package/dist/models/ManifestUio.js +66 -0
- package/dist/models/MessageUio.d.ts +32 -0
- package/dist/models/MessageUio.js +50 -0
- package/dist/models/MetricForAgentAgentUio.d.ts +38 -0
- package/dist/models/MetricForAgentAgentUio.js +54 -0
- package/dist/models/MetricForAgentIdentifierUio.d.ts +32 -0
- package/dist/models/MetricForAgentIdentifierUio.js +50 -0
- package/dist/models/MetricForAgentMetricUio.d.ts +57 -0
- package/dist/models/MetricForAgentMetricUio.js +67 -0
- package/dist/models/MetricForAgentMetricWithCostUio.d.ts +64 -0
- package/dist/models/MetricForAgentMetricWithCostUio.js +70 -0
- package/dist/models/MetricForAgentUio.d.ts +55 -0
- package/dist/models/MetricForAgentUio.js +63 -0
- package/dist/models/MetricIdentifierUio.d.ts +57 -0
- package/dist/models/MetricIdentifierUio.js +67 -0
- package/dist/models/MetricUio.d.ts +45 -0
- package/dist/models/MetricUio.js +59 -0
- package/dist/models/ModelUio.d.ts +38 -0
- package/dist/models/ModelUio.js +54 -0
- package/dist/models/OrganizationUio.d.ts +47 -0
- package/dist/models/OrganizationUio.js +60 -0
- package/dist/models/PinRequestUio.d.ts +39 -0
- package/dist/models/PinRequestUio.js +55 -0
- package/dist/models/PriceConfigurationModelConfigUio.d.ts +44 -0
- package/dist/models/PriceConfigurationModelConfigUio.js +58 -0
- package/dist/models/PriceConfigurationModelUio.d.ts +37 -0
- package/dist/models/PriceConfigurationModelUio.js +50 -0
- package/dist/models/PriceConfigurationUio.d.ts +35 -0
- package/dist/models/PriceConfigurationUio.js +52 -0
- package/dist/models/PriceUio.d.ts +38 -0
- package/dist/models/PriceUio.js +54 -0
- package/dist/models/PromptCreateRequestUio.d.ts +44 -0
- package/dist/models/PromptCreateRequestUio.js +56 -0
- package/dist/models/PromptCreateResponseUio.d.ts +58 -0
- package/dist/models/PromptCreateResponseUio.js +66 -0
- package/dist/models/PromptFlowCreateRequestUio.d.ts +38 -0
- package/dist/models/PromptFlowCreateRequestUio.js +52 -0
- package/dist/models/PromptFlowCreateResponseUio.d.ts +51 -0
- package/dist/models/PromptFlowCreateResponseUio.js +61 -0
- package/dist/models/ProviderCreateRequestUio.d.ts +57 -0
- package/dist/models/ProviderCreateRequestUio.js +63 -0
- package/dist/models/ProviderSimpleUio.d.ts +50 -0
- package/dist/models/ProviderSimpleUio.js +62 -0
- package/dist/models/ProviderTypeUio.d.ts +27 -0
- package/dist/models/ProviderTypeUio.js +53 -0
- package/dist/models/ProviderUio.d.ts +69 -0
- package/dist/models/ProviderUio.js +71 -0
- package/dist/models/ProviderValiationRequestUio.d.ts +38 -0
- package/dist/models/ProviderValiationRequestUio.js +54 -0
- package/dist/models/S3UploadBodyUio.d.ts +40 -0
- package/dist/models/S3UploadBodyUio.js +54 -0
- package/dist/models/STTResponseUio.d.ts +32 -0
- package/dist/models/STTResponseUio.js +50 -0
- package/dist/models/SimpleAgentUio.d.ts +38 -0
- package/dist/models/SimpleAgentUio.js +54 -0
- package/dist/models/SubscriptionMetricUio.d.ts +4 -4
- package/dist/models/SubscriptionMetricUio.js +4 -4
- package/dist/models/SuggestionUio.d.ts +38 -0
- package/dist/models/SuggestionUio.js +54 -0
- package/dist/models/TTSRequestUio.d.ts +45 -0
- package/dist/models/TTSRequestUio.js +59 -0
- package/dist/models/TTSResponseUio.d.ts +45 -0
- package/dist/models/TTSResponseUio.js +57 -0
- package/dist/models/TextToSpeechProviderUio.d.ts +24 -0
- package/dist/models/TextToSpeechProviderUio.js +50 -0
- package/dist/models/ToolActionUio.d.ts +33 -0
- package/dist/models/ToolActionUio.js +52 -0
- package/dist/models/ToolResultUio.d.ts +51 -0
- package/dist/models/ToolResultUio.js +57 -0
- package/dist/models/ToolResultsToolUio.d.ts +38 -0
- package/dist/models/ToolResultsToolUio.js +52 -0
- package/dist/models/ToolResultsUio.d.ts +40 -0
- package/dist/models/ToolResultsUio.js +52 -0
- package/dist/models/UserUio.d.ts +32 -0
- package/dist/models/UserUio.js +50 -0
- package/dist/models/index.d.ts +137 -17
- package/dist/models/index.js +137 -17
- package/dist/openapi.json +6740 -616
- package/package.json +1 -1
- package/dist/apis/BrainApi.d.ts +0 -290
- package/dist/apis/BrainApi.js +0 -697
- package/dist/models/BrainMetricsEventUio.d.ts +0 -65
- package/dist/models/BrainMetricsUnitsTypeUio.d.ts +0 -27
- package/dist/models/BrainMetricsUnitsTypeUio.js +0 -53
- package/dist/models/BrainMetricsValueUio.d.ts +0 -57
- package/dist/models/BrainModuleTypeUio.d.ts +0 -25
- package/dist/models/BrainModuleTypeUio.js +0 -51
- package/dist/models/BrainModuleUio.d.ts +0 -51
- package/dist/models/BrainPatchUio.d.ts +0 -166
- package/dist/models/BrainRequestImageBrainUio.d.ts +0 -50
- package/dist/models/BrainSubscriptionTextInteractionsUio.d.ts +0 -39
- package/dist/models/BrainSubscriptionUio.d.ts +0 -57
- package/dist/models/BrainSubscriptionUio.js +0 -63
- package/dist/models/BrainUsageMetricsIdUio.d.ts +0 -44
- package/dist/models/BrainUsageMetricsUio.d.ts +0 -46
- package/dist/models/EngineTypeUio.d.ts +0 -25
- package/dist/models/EngineTypeUio.js +0 -51
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.PromptsApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class PromptsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Create a new empty conversation for the specified agent.
|
|
58
|
+
* Create a new conversation
|
|
59
|
+
*/
|
|
60
|
+
async createConversationRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['agentId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling createConversation().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['promptFlowCreateRequestUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('promptFlowCreateRequestUio', 'Required parameter "promptFlowCreateRequestUio" was null or undefined when calling createConversation().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
71
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/conversations`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.PromptFlowCreateRequestUioToJSON)(requestParameters['promptFlowCreateRequestUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithIdUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Create a new empty conversation for the specified agent.
|
|
84
|
+
* Create a new conversation
|
|
85
|
+
*/
|
|
86
|
+
async createConversation(agentId, promptFlowCreateRequestUio, initOverrides) {
|
|
87
|
+
const response = await this.createConversationRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Starts a new conversation session for the specified agent with flow management
|
|
92
|
+
* Create a new conversation with flow management
|
|
93
|
+
*/
|
|
94
|
+
async createConversationWithFlowManagementRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['agentId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling createConversationWithFlowManagement().');
|
|
97
|
+
}
|
|
98
|
+
if (requestParameters['promptFlowCreateRequestUio'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('promptFlowCreateRequestUio', 'Required parameter "promptFlowCreateRequestUio" was null or undefined when calling createConversationWithFlowManagement().');
|
|
100
|
+
}
|
|
101
|
+
const queryParameters = {};
|
|
102
|
+
const headerParameters = {};
|
|
103
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
104
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
105
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
106
|
+
}
|
|
107
|
+
const response = await this.request({
|
|
108
|
+
path: `/agents/{agentId}/prompts/flows`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
109
|
+
method: 'POST',
|
|
110
|
+
headers: headerParameters,
|
|
111
|
+
query: queryParameters,
|
|
112
|
+
body: (0, index_1.PromptFlowCreateRequestUioToJSON)(requestParameters['promptFlowCreateRequestUio']),
|
|
113
|
+
}, initOverrides);
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PromptFlowCreateResponseUioFromJSON)(jsonValue));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Starts a new conversation session for the specified agent with flow management
|
|
118
|
+
* Create a new conversation with flow management
|
|
119
|
+
*/
|
|
120
|
+
async createConversationWithFlowManagement(agentId, promptFlowCreateRequestUio, initOverrides) {
|
|
121
|
+
const response = await this.createConversationWithFlowManagementRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio }, initOverrides);
|
|
122
|
+
return await response.value();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Starts a new conversation session for the specified agent
|
|
126
|
+
* Create a new prompt
|
|
127
|
+
*/
|
|
128
|
+
async createPromptRaw(requestParameters, initOverrides) {
|
|
129
|
+
if (requestParameters['agentId'] == null) {
|
|
130
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling createPrompt().');
|
|
131
|
+
}
|
|
132
|
+
if (requestParameters['promptCreateRequestUio'] == null) {
|
|
133
|
+
throw new runtime.RequiredError('promptCreateRequestUio', 'Required parameter "promptCreateRequestUio" was null or undefined when calling createPrompt().');
|
|
134
|
+
}
|
|
135
|
+
const queryParameters = {};
|
|
136
|
+
const headerParameters = {};
|
|
137
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
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: `/agents/{agentId}/prompts`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
143
|
+
method: 'POST',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
body: (0, index_1.PromptCreateRequestUioToJSON)(requestParameters['promptCreateRequestUio']),
|
|
147
|
+
}, initOverrides);
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PromptCreateResponseUioFromJSON)(jsonValue));
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Starts a new conversation session for the specified agent
|
|
152
|
+
* Create a new prompt
|
|
153
|
+
*/
|
|
154
|
+
async createPrompt(agentId, promptCreateRequestUio, initOverrides) {
|
|
155
|
+
const response = await this.createPromptRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio }, initOverrides);
|
|
156
|
+
return await response.value();
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Retrieves details of a specific conversation including all messages
|
|
160
|
+
* Get a conversation by ID
|
|
161
|
+
*/
|
|
162
|
+
async getConversationByIdRaw(requestParameters, initOverrides) {
|
|
163
|
+
if (requestParameters['conversationId'] == null) {
|
|
164
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getConversationById().');
|
|
165
|
+
}
|
|
166
|
+
const queryParameters = {};
|
|
167
|
+
const headerParameters = {};
|
|
168
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
169
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
170
|
+
}
|
|
171
|
+
const response = await this.request({
|
|
172
|
+
path: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
173
|
+
method: 'GET',
|
|
174
|
+
headers: headerParameters,
|
|
175
|
+
query: queryParameters,
|
|
176
|
+
}, initOverrides);
|
|
177
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConversationUioFromJSON)(jsonValue));
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Retrieves details of a specific conversation including all messages
|
|
181
|
+
* Get a conversation by ID
|
|
182
|
+
*/
|
|
183
|
+
async getConversationById(conversationId, initOverrides) {
|
|
184
|
+
const response = await this.getConversationByIdRaw({ conversationId: conversationId }, initOverrides);
|
|
185
|
+
return await response.value();
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Retrieves a specific message by ID from a conversation
|
|
189
|
+
* Get a specific message from a conversation
|
|
190
|
+
*/
|
|
191
|
+
async getMessageByIdRaw(requestParameters, initOverrides) {
|
|
192
|
+
if (requestParameters['conversationId'] == null) {
|
|
193
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getMessageById().');
|
|
194
|
+
}
|
|
195
|
+
if (requestParameters['messageId'] == null) {
|
|
196
|
+
throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling getMessageById().');
|
|
197
|
+
}
|
|
198
|
+
const queryParameters = {};
|
|
199
|
+
const headerParameters = {};
|
|
200
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
201
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
202
|
+
}
|
|
203
|
+
const response = await this.request({
|
|
204
|
+
path: `/conversations/{conversationId}/messages/{messageId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
205
|
+
method: 'GET',
|
|
206
|
+
headers: headerParameters,
|
|
207
|
+
query: queryParameters,
|
|
208
|
+
}, initOverrides);
|
|
209
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatMessageUioFromJSON)(jsonValue));
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Retrieves a specific message by ID from a conversation
|
|
213
|
+
* Get a specific message from a conversation
|
|
214
|
+
*/
|
|
215
|
+
async getMessageById(conversationId, messageId, initOverrides) {
|
|
216
|
+
const response = await this.getMessageByIdRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
|
|
217
|
+
return await response.value();
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Adds a new message to an existing conversation and gets the AI response
|
|
221
|
+
* Send a message to an existing conversation
|
|
222
|
+
*/
|
|
223
|
+
async sendMessageToConversationRaw(requestParameters, initOverrides) {
|
|
224
|
+
if (requestParameters['conversationId'] == null) {
|
|
225
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling sendMessageToConversation().');
|
|
226
|
+
}
|
|
227
|
+
if (requestParameters['messageUio'] == null) {
|
|
228
|
+
throw new runtime.RequiredError('messageUio', 'Required parameter "messageUio" was null or undefined when calling sendMessageToConversation().');
|
|
229
|
+
}
|
|
230
|
+
const queryParameters = {};
|
|
231
|
+
const headerParameters = {};
|
|
232
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
233
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
234
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
235
|
+
}
|
|
236
|
+
const response = await this.request({
|
|
237
|
+
path: `/conversations/{conversationId}/prompts`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
238
|
+
method: 'POST',
|
|
239
|
+
headers: headerParameters,
|
|
240
|
+
query: queryParameters,
|
|
241
|
+
body: (0, index_1.MessageUioToJSON)(requestParameters['messageUio']),
|
|
242
|
+
}, initOverrides);
|
|
243
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PromptCreateResponseUioFromJSON)(jsonValue));
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Adds a new message to an existing conversation and gets the AI response
|
|
247
|
+
* Send a message to an existing conversation
|
|
248
|
+
*/
|
|
249
|
+
async sendMessageToConversation(conversationId, messageUio, initOverrides) {
|
|
250
|
+
const response = await this.sendMessageToConversationRaw({ conversationId: conversationId, messageUio: messageUio }, initOverrides);
|
|
251
|
+
return await response.value();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
exports.PromptsApi = PromptsApi;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { BodyWithMessageUio, PinRequestUio } from '../models/index';
|
|
14
|
+
export interface CreatePinRequestRequest {
|
|
15
|
+
pinRequestUio: PinRequestUio;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class RemotesApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates a PIN request for remote access
|
|
23
|
+
* Create a remote access PIN request
|
|
24
|
+
*/
|
|
25
|
+
createPinRequestRaw(requestParameters: CreatePinRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
26
|
+
/**
|
|
27
|
+
* Creates a PIN request for remote access
|
|
28
|
+
* Create a remote access PIN request
|
|
29
|
+
*/
|
|
30
|
+
createPinRequest(pinRequestUio: PinRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.RemotesApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class RemotesApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a PIN request for remote access
|
|
58
|
+
* Create a remote access PIN request
|
|
59
|
+
*/
|
|
60
|
+
async createPinRequestRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['pinRequestUio'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('pinRequestUio', 'Required parameter "pinRequestUio" was null or undefined when calling createPinRequest().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
67
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
68
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
69
|
+
}
|
|
70
|
+
const response = await this.request({
|
|
71
|
+
path: `/remote/pin-requests`,
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: headerParameters,
|
|
74
|
+
query: queryParameters,
|
|
75
|
+
body: (0, index_1.PinRequestUioToJSON)(requestParameters['pinRequestUio']),
|
|
76
|
+
}, initOverrides);
|
|
77
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Creates a PIN request for remote access
|
|
81
|
+
* Create a remote access PIN request
|
|
82
|
+
*/
|
|
83
|
+
async createPinRequest(pinRequestUio, initOverrides) {
|
|
84
|
+
const response = await this.createPinRequestRaw({ pinRequestUio: pinRequestUio }, initOverrides);
|
|
85
|
+
return await response.value();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.RemotesApi = RemotesApi;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { STTResponseUio, TTSRequestUio, TTSResponseUio } from '../models/index';
|
|
14
|
+
export interface ConvertSpeechToTextRequest {
|
|
15
|
+
body: Blob;
|
|
16
|
+
language?: string;
|
|
17
|
+
dry?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface ConvertTextToSpeechRequest {
|
|
20
|
+
tTSRequestUio: TTSRequestUio;
|
|
21
|
+
dry?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class ToolsApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Transcribes audio files to text using OpenAI\'s Whisper model
|
|
29
|
+
* Convert speech to text
|
|
30
|
+
*/
|
|
31
|
+
convertSpeechToTextRaw(requestParameters: ConvertSpeechToTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<STTResponseUio>>;
|
|
32
|
+
/**
|
|
33
|
+
* Transcribes audio files to text using OpenAI\'s Whisper model
|
|
34
|
+
* Convert speech to text
|
|
35
|
+
*/
|
|
36
|
+
convertSpeechToText(body: Blob, language?: string, dry?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<STTResponseUio>;
|
|
37
|
+
/**
|
|
38
|
+
* Converts text to speech using the specified provider
|
|
39
|
+
* Convert text to speech
|
|
40
|
+
*/
|
|
41
|
+
convertTextToSpeechRaw(requestParameters: ConvertTextToSpeechRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TTSResponseUio>>;
|
|
42
|
+
/**
|
|
43
|
+
* Converts text to speech using the specified provider
|
|
44
|
+
* Convert text to speech
|
|
45
|
+
*/
|
|
46
|
+
convertTextToSpeech(tTSRequestUio: TTSRequestUio, dry?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TTSResponseUio>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.ToolsApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class ToolsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Transcribes audio files to text using OpenAI\'s Whisper model
|
|
58
|
+
* Convert speech to text
|
|
59
|
+
*/
|
|
60
|
+
async convertSpeechToTextRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['body'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling convertSpeechToText().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
if (requestParameters['language'] != null) {
|
|
66
|
+
queryParameters['language'] = requestParameters['language'];
|
|
67
|
+
}
|
|
68
|
+
if (requestParameters['dry'] != null) {
|
|
69
|
+
queryParameters['dry'] = requestParameters['dry'];
|
|
70
|
+
}
|
|
71
|
+
const headerParameters = {};
|
|
72
|
+
headerParameters['Content-Type'] = 'audio/wav';
|
|
73
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
74
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
75
|
+
}
|
|
76
|
+
const response = await this.request({
|
|
77
|
+
path: `/tools/speech-to-text`,
|
|
78
|
+
method: 'POST',
|
|
79
|
+
headers: headerParameters,
|
|
80
|
+
query: queryParameters,
|
|
81
|
+
body: requestParameters['body'],
|
|
82
|
+
}, initOverrides);
|
|
83
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.STTResponseUioFromJSON)(jsonValue));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Transcribes audio files to text using OpenAI\'s Whisper model
|
|
87
|
+
* Convert speech to text
|
|
88
|
+
*/
|
|
89
|
+
async convertSpeechToText(body, language, dry, initOverrides) {
|
|
90
|
+
const response = await this.convertSpeechToTextRaw({ body: body, language: language, dry: dry }, initOverrides);
|
|
91
|
+
return await response.value();
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Converts text to speech using the specified provider
|
|
95
|
+
* Convert text to speech
|
|
96
|
+
*/
|
|
97
|
+
async convertTextToSpeechRaw(requestParameters, initOverrides) {
|
|
98
|
+
if (requestParameters['tTSRequestUio'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('tTSRequestUio', 'Required parameter "tTSRequestUio" was null or undefined when calling convertTextToSpeech().');
|
|
100
|
+
}
|
|
101
|
+
const queryParameters = {};
|
|
102
|
+
if (requestParameters['dry'] != null) {
|
|
103
|
+
queryParameters['dry'] = requestParameters['dry'];
|
|
104
|
+
}
|
|
105
|
+
const headerParameters = {};
|
|
106
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
107
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
108
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
109
|
+
}
|
|
110
|
+
const response = await this.request({
|
|
111
|
+
path: `/tools/text-to-speech`,
|
|
112
|
+
method: 'POST',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
body: (0, index_1.TTSRequestUioToJSON)(requestParameters['tTSRequestUio']),
|
|
116
|
+
}, initOverrides);
|
|
117
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TTSResponseUioFromJSON)(jsonValue));
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Converts text to speech using the specified provider
|
|
121
|
+
* Convert text to speech
|
|
122
|
+
*/
|
|
123
|
+
async convertTextToSpeech(tTSRequestUio, dry, initOverrides) {
|
|
124
|
+
const response = await this.convertTextToSpeechRaw({ tTSRequestUio: tTSRequestUio, dry: dry }, initOverrides);
|
|
125
|
+
return await response.value();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.ToolsApi = ToolsApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './AgentApi';
|
|
2
|
+
export * from './AppApi';
|
|
3
|
+
export * from './AuthApi';
|
|
4
|
+
export * from './ChunksApi';
|
|
5
|
+
export * from './ConfigurationApi';
|
|
6
|
+
export * from './ContentsApi';
|
|
7
|
+
export * from './ConversationsApi';
|
|
8
|
+
export * from './EngineApi';
|
|
9
|
+
export * from './FilesApi';
|
|
10
|
+
export * from './GeneralApi';
|
|
11
|
+
export * from './GuardiansApi';
|
|
12
|
+
export * from './KnowledgeApi';
|
|
13
|
+
export * from './ManifestsApi';
|
|
14
|
+
export * from './MetricsApi';
|
|
15
|
+
export * from './OrganizationsApi';
|
|
16
|
+
export * from './PromptsApi';
|
|
17
|
+
export * from './RemotesApi';
|
|
18
|
+
export * from './ToolsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -16,4 +16,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./AgentApi"), exports);
|
|
20
|
+
__exportStar(require("./AppApi"), exports);
|
|
21
|
+
__exportStar(require("./AuthApi"), exports);
|
|
22
|
+
__exportStar(require("./ChunksApi"), exports);
|
|
23
|
+
__exportStar(require("./ConfigurationApi"), exports);
|
|
24
|
+
__exportStar(require("./ContentsApi"), exports);
|
|
25
|
+
__exportStar(require("./ConversationsApi"), exports);
|
|
26
|
+
__exportStar(require("./EngineApi"), exports);
|
|
27
|
+
__exportStar(require("./FilesApi"), exports);
|
|
28
|
+
__exportStar(require("./GeneralApi"), exports);
|
|
29
|
+
__exportStar(require("./GuardiansApi"), exports);
|
|
30
|
+
__exportStar(require("./KnowledgeApi"), exports);
|
|
31
|
+
__exportStar(require("./ManifestsApi"), exports);
|
|
32
|
+
__exportStar(require("./MetricsApi"), exports);
|
|
33
|
+
__exportStar(require("./OrganizationsApi"), exports);
|
|
34
|
+
__exportStar(require("./PromptsApi"), exports);
|
|
35
|
+
__exportStar(require("./RemotesApi"), exports);
|
|
36
|
+
__exportStar(require("./ToolsApi"), exports);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentDuplicateRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentDuplicateRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentDuplicateRequestUio
|
|
22
|
+
*/
|
|
23
|
+
organisationId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof AgentDuplicateRequestUio
|
|
28
|
+
*/
|
|
29
|
+
duplicateKnowledge?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof AgentDuplicateRequestUio
|
|
34
|
+
*/
|
|
35
|
+
duplicateFlows?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AgentDuplicateRequestUio
|
|
40
|
+
*/
|
|
41
|
+
duplicateTools?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof AgentDuplicateRequestUio
|
|
46
|
+
*/
|
|
47
|
+
duplicateModeration?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AgentDuplicateRequestUio interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAgentDuplicateRequestUio(value: object): value is AgentDuplicateRequestUio;
|
|
53
|
+
export declare function AgentDuplicateRequestUioFromJSON(json: any): AgentDuplicateRequestUio;
|
|
54
|
+
export declare function AgentDuplicateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentDuplicateRequestUio;
|
|
55
|
+
export declare function AgentDuplicateRequestUioToJSON(json: any): AgentDuplicateRequestUio;
|
|
56
|
+
export declare function AgentDuplicateRequestUioToJSONTyped(value?: AgentDuplicateRequestUio | null, ignoreDiscriminator?: boolean): any;
|