@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
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# @breign/client
|
|
2
|
+
|
|
3
|
+
TypeScript client library for interacting with the Brain API. This package provides a strongly-typed interface generated from OpenAPI specifications.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @breign/client
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ... } from '@breign/client';
|
|
15
|
+
|
|
16
|
+
// Configure API key authentication
|
|
17
|
+
// Implementation details depend on your use case
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Development
|
|
21
|
+
|
|
22
|
+
### Prerequisites
|
|
23
|
+
|
|
24
|
+
- Node.js (version specified in `.nvmrc`)
|
|
25
|
+
- npm
|
|
26
|
+
|
|
27
|
+
### Setup
|
|
28
|
+
|
|
29
|
+
1. Clone the repository
|
|
30
|
+
2. Install dependencies:
|
|
31
|
+
```bash
|
|
32
|
+
npm install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Available Scripts
|
|
36
|
+
|
|
37
|
+
- `npm run generate` - Generates API client from OpenAPI specs
|
|
38
|
+
- `npm run build` - Builds the TypeScript project
|
|
39
|
+
- `npm run clean` - Cleans generated and build directories
|
|
40
|
+
- `npm run format` - Formats code using Prettier
|
|
41
|
+
- `npm run format:check` - Checks code formatting
|
|
42
|
+
|
|
43
|
+
### Project Structure
|
|
44
|
+
|
|
45
|
+
- `src/resources/openapi/` - OpenAPI specifications
|
|
46
|
+
- `dist/` - Compiled output
|
|
47
|
+
- `target/` - Generated source files
|
|
48
|
+
|
|
49
|
+
## TODO
|
|
50
|
+
- [ ] Generate API for mobile development (Swift, Kotlin)?
|
|
51
|
+
- [ ] Decide if we should use date-time format for dates or strings?
|
|
@@ -0,0 +1,330 @@
|
|
|
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 { AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, FileCreationRequestUio, FileCreationResponseUio, S3UploadBodyUio } from '../models/index';
|
|
14
|
+
export interface AddModuleRequest {
|
|
15
|
+
agentId: string;
|
|
16
|
+
agentModuleUio: AgentModuleUio;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateAgentRequest {
|
|
19
|
+
agentRequestUio: AgentRequestUio;
|
|
20
|
+
}
|
|
21
|
+
export interface CreateFlowRequest {
|
|
22
|
+
agentId: string;
|
|
23
|
+
agentFlowCreateUio: AgentFlowCreateUio;
|
|
24
|
+
}
|
|
25
|
+
export interface DeleteAgentByIdRequest {
|
|
26
|
+
agentId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface DeleteFlowRequest {
|
|
29
|
+
agentId: string;
|
|
30
|
+
flowId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface DeleteModuleRequest {
|
|
33
|
+
agentId: string;
|
|
34
|
+
moduleName: string;
|
|
35
|
+
}
|
|
36
|
+
export interface DuplicateAgentRequest {
|
|
37
|
+
agentId: string;
|
|
38
|
+
agentDuplicateRequestUio: AgentDuplicateRequestUio;
|
|
39
|
+
}
|
|
40
|
+
export interface GetAgentByIdRequest {
|
|
41
|
+
agentId: string;
|
|
42
|
+
}
|
|
43
|
+
export interface GetAgentMetricsRequest {
|
|
44
|
+
agentId: string;
|
|
45
|
+
startDate?: Date;
|
|
46
|
+
endDate?: Date;
|
|
47
|
+
}
|
|
48
|
+
export interface GetAgentMetricsEventsRequest {
|
|
49
|
+
agentId: string;
|
|
50
|
+
offset?: number;
|
|
51
|
+
startDate?: Date;
|
|
52
|
+
endDate?: Date;
|
|
53
|
+
}
|
|
54
|
+
export interface GetAgentMetricsOverviewRequest {
|
|
55
|
+
agentId: string;
|
|
56
|
+
startDate?: Date;
|
|
57
|
+
endDate?: Date;
|
|
58
|
+
}
|
|
59
|
+
export interface GetConversationsForAgentRequest {
|
|
60
|
+
agentId: string;
|
|
61
|
+
page?: number;
|
|
62
|
+
}
|
|
63
|
+
export interface GetFlowRequest {
|
|
64
|
+
agentId: string;
|
|
65
|
+
flowId: string;
|
|
66
|
+
}
|
|
67
|
+
export interface GetFlowsRequest {
|
|
68
|
+
agentId: string;
|
|
69
|
+
}
|
|
70
|
+
export interface GetModulesRequest {
|
|
71
|
+
agentId: string;
|
|
72
|
+
}
|
|
73
|
+
export interface RemoveAgentProfileImageRequest {
|
|
74
|
+
agentId: string;
|
|
75
|
+
}
|
|
76
|
+
export interface RemoveAgentSubscriptionRequest {
|
|
77
|
+
agentId: string;
|
|
78
|
+
}
|
|
79
|
+
export interface UpdateAgentByIdRequest {
|
|
80
|
+
agentId: string;
|
|
81
|
+
agentPatchUio: AgentPatchUio;
|
|
82
|
+
}
|
|
83
|
+
export interface UpdateAgentProfilePictureRequest {
|
|
84
|
+
agentId: string;
|
|
85
|
+
fileCreationRequestUio: FileCreationRequestUio;
|
|
86
|
+
}
|
|
87
|
+
export interface UpdateAgentSubscriptionRequest {
|
|
88
|
+
agentId: string;
|
|
89
|
+
agentSubscriptionUio: AgentSubscriptionUio;
|
|
90
|
+
}
|
|
91
|
+
export interface UpdateFlowRequest {
|
|
92
|
+
agentId: string;
|
|
93
|
+
flowId: string;
|
|
94
|
+
agentFlowUio: AgentFlowUio;
|
|
95
|
+
}
|
|
96
|
+
export interface UploadAgentProfileImageRequest {
|
|
97
|
+
agentId: string;
|
|
98
|
+
fileCreationRequestUio: FileCreationRequestUio;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
export declare class AgentApi extends runtime.BaseAPI {
|
|
104
|
+
/**
|
|
105
|
+
* Adds a new module to the specified agent
|
|
106
|
+
* Add a module to an agent
|
|
107
|
+
*/
|
|
108
|
+
addModuleRaw(requestParameters: AddModuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentModuleUio>>;
|
|
109
|
+
/**
|
|
110
|
+
* Adds a new module to the specified agent
|
|
111
|
+
* Add a module to an agent
|
|
112
|
+
*/
|
|
113
|
+
addModule(agentId: string, agentModuleUio: AgentModuleUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentModuleUio>;
|
|
114
|
+
/**
|
|
115
|
+
* Creates a new agent with specified configuration (admin only)
|
|
116
|
+
* Create a new agent
|
|
117
|
+
*/
|
|
118
|
+
createAgentRaw(requestParameters: CreateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentUio>>;
|
|
119
|
+
/**
|
|
120
|
+
* Creates a new agent with specified configuration (admin only)
|
|
121
|
+
* Create a new agent
|
|
122
|
+
*/
|
|
123
|
+
createAgent(agentRequestUio: AgentRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentUio>;
|
|
124
|
+
/**
|
|
125
|
+
* Creates a new conversation flow for a specific agent
|
|
126
|
+
* Create a new flow
|
|
127
|
+
*/
|
|
128
|
+
createFlowRaw(requestParameters: CreateFlowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentFlowUio>>;
|
|
129
|
+
/**
|
|
130
|
+
* Creates a new conversation flow for a specific agent
|
|
131
|
+
* Create a new flow
|
|
132
|
+
*/
|
|
133
|
+
createFlow(agentId: string, agentFlowCreateUio: AgentFlowCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentFlowUio>;
|
|
134
|
+
/**
|
|
135
|
+
* Deletes an agent and all its associated flows
|
|
136
|
+
* Delete an agent
|
|
137
|
+
*/
|
|
138
|
+
deleteAgentByIdRaw(requestParameters: DeleteAgentByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
139
|
+
/**
|
|
140
|
+
* Deletes an agent and all its associated flows
|
|
141
|
+
* Delete an agent
|
|
142
|
+
*/
|
|
143
|
+
deleteAgentById(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
144
|
+
/**
|
|
145
|
+
* Deletes a specific conversation flow
|
|
146
|
+
* Delete a flow
|
|
147
|
+
*/
|
|
148
|
+
deleteFlowRaw(requestParameters: DeleteFlowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
149
|
+
/**
|
|
150
|
+
* Deletes a specific conversation flow
|
|
151
|
+
* Delete a flow
|
|
152
|
+
*/
|
|
153
|
+
deleteFlow(agentId: string, flowId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
154
|
+
/**
|
|
155
|
+
* Deletes a specific module from the agent
|
|
156
|
+
* Remove a module from an agent
|
|
157
|
+
*/
|
|
158
|
+
deleteModuleRaw(requestParameters: DeleteModuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
159
|
+
/**
|
|
160
|
+
* Deletes a specific module from the agent
|
|
161
|
+
* Remove a module from an agent
|
|
162
|
+
*/
|
|
163
|
+
deleteModule(agentId: string, moduleName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
164
|
+
/**
|
|
165
|
+
* Duplicates an agent and returns the new agent
|
|
166
|
+
* Duplicate an agent
|
|
167
|
+
*/
|
|
168
|
+
duplicateAgentRaw(requestParameters: DuplicateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithIdUio>>;
|
|
169
|
+
/**
|
|
170
|
+
* Duplicates an agent and returns the new agent
|
|
171
|
+
* Duplicate an agent
|
|
172
|
+
*/
|
|
173
|
+
duplicateAgent(agentId: string, agentDuplicateRequestUio: AgentDuplicateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
|
|
174
|
+
/**
|
|
175
|
+
* Get a specific agent by ID
|
|
176
|
+
*/
|
|
177
|
+
getAgentByIdRaw(requestParameters: GetAgentByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentUio>>;
|
|
178
|
+
/**
|
|
179
|
+
* Get a specific agent by ID
|
|
180
|
+
*/
|
|
181
|
+
getAgentById(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentUio>;
|
|
182
|
+
/**
|
|
183
|
+
* Retrieves detailed usage metrics for a specific agent (admin only)
|
|
184
|
+
* Get detailed agent metrics
|
|
185
|
+
*/
|
|
186
|
+
getAgentMetricsRaw(requestParameters: GetAgentMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentUsageMetricsUio>>>;
|
|
187
|
+
/**
|
|
188
|
+
* Retrieves detailed usage metrics for a specific agent (admin only)
|
|
189
|
+
* Get detailed agent metrics
|
|
190
|
+
*/
|
|
191
|
+
getAgentMetrics(agentId: string, startDate?: Date, endDate?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUsageMetricsUio>>;
|
|
192
|
+
/**
|
|
193
|
+
* Retrieves detailed metric events for a specific agent (admin only)
|
|
194
|
+
* Get agent metrics events
|
|
195
|
+
*/
|
|
196
|
+
getAgentMetricsEventsRaw(requestParameters: GetAgentMetricsEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentMetricsEventUio>>>;
|
|
197
|
+
/**
|
|
198
|
+
* Retrieves detailed metric events for a specific agent (admin only)
|
|
199
|
+
* Get agent metrics events
|
|
200
|
+
*/
|
|
201
|
+
getAgentMetricsEvents(agentId: string, offset?: number, startDate?: Date, endDate?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentMetricsEventUio>>;
|
|
202
|
+
/**
|
|
203
|
+
* Retrieves usage metrics overview for a specific agent
|
|
204
|
+
* Get agent metrics overview
|
|
205
|
+
*/
|
|
206
|
+
getAgentMetricsOverviewRaw(requestParameters: GetAgentMetricsOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentMetricsOverviewUio>>;
|
|
207
|
+
/**
|
|
208
|
+
* Retrieves usage metrics overview for a specific agent
|
|
209
|
+
* Get agent metrics overview
|
|
210
|
+
*/
|
|
211
|
+
getAgentMetricsOverview(agentId: string, startDate?: Date, endDate?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentMetricsOverviewUio>;
|
|
212
|
+
/**
|
|
213
|
+
* Get all agents (admin only)
|
|
214
|
+
* Get all agents
|
|
215
|
+
*/
|
|
216
|
+
getAgentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentUio>>>;
|
|
217
|
+
/**
|
|
218
|
+
* Get all agents (admin only)
|
|
219
|
+
* Get all agents
|
|
220
|
+
*/
|
|
221
|
+
getAgents(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
222
|
+
/**
|
|
223
|
+
* Get conversations for an agent
|
|
224
|
+
* Get conversations for an agent
|
|
225
|
+
*/
|
|
226
|
+
getConversationsForAgentRaw(requestParameters: GetConversationsForAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ChatUio>>>;
|
|
227
|
+
/**
|
|
228
|
+
* Get conversations for an agent
|
|
229
|
+
* Get conversations for an agent
|
|
230
|
+
*/
|
|
231
|
+
getConversationsForAgent(agentId: string, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
232
|
+
/**
|
|
233
|
+
* Retrieves a specific conversation flow by ID
|
|
234
|
+
* Get a specific flow
|
|
235
|
+
*/
|
|
236
|
+
getFlowRaw(requestParameters: GetFlowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentFlowUio>>;
|
|
237
|
+
/**
|
|
238
|
+
* Retrieves a specific conversation flow by ID
|
|
239
|
+
* Get a specific flow
|
|
240
|
+
*/
|
|
241
|
+
getFlow(agentId: string, flowId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentFlowUio>;
|
|
242
|
+
/**
|
|
243
|
+
* Retrieves all conversation flows associated with a specific agent
|
|
244
|
+
* Get all flows for an agent
|
|
245
|
+
*/
|
|
246
|
+
getFlowsRaw(requestParameters: GetFlowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentFlowUio>>>;
|
|
247
|
+
/**
|
|
248
|
+
* Retrieves all conversation flows associated with a specific agent
|
|
249
|
+
* Get all flows for an agent
|
|
250
|
+
*/
|
|
251
|
+
getFlows(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentFlowUio>>;
|
|
252
|
+
/**
|
|
253
|
+
* Retrieves all modules for a specific agent
|
|
254
|
+
* Get agent modules
|
|
255
|
+
*/
|
|
256
|
+
getModulesRaw(requestParameters: GetModulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentModuleUio>>;
|
|
257
|
+
/**
|
|
258
|
+
* Retrieves all modules for a specific agent
|
|
259
|
+
* Get agent modules
|
|
260
|
+
*/
|
|
261
|
+
getModules(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentModuleUio>;
|
|
262
|
+
/**
|
|
263
|
+
* Removes the profile image for an agent
|
|
264
|
+
* Remove agent profile image
|
|
265
|
+
*/
|
|
266
|
+
removeAgentProfileImageRaw(requestParameters: RemoveAgentProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
267
|
+
/**
|
|
268
|
+
* Removes the profile image for an agent
|
|
269
|
+
* Remove agent profile image
|
|
270
|
+
*/
|
|
271
|
+
removeAgentProfileImage(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
272
|
+
/**
|
|
273
|
+
* Removes the subscription plan from an agent (admin only)
|
|
274
|
+
* Remove agent subscription
|
|
275
|
+
*/
|
|
276
|
+
removeAgentSubscriptionRaw(requestParameters: RemoveAgentSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
277
|
+
/**
|
|
278
|
+
* Removes the subscription plan from an agent (admin only)
|
|
279
|
+
* Remove agent subscription
|
|
280
|
+
*/
|
|
281
|
+
removeAgentSubscription(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
282
|
+
/**
|
|
283
|
+
* Updates an existing agent\'s properties
|
|
284
|
+
* Update an agent
|
|
285
|
+
*/
|
|
286
|
+
updateAgentByIdRaw(requestParameters: UpdateAgentByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentPatchUio>>;
|
|
287
|
+
/**
|
|
288
|
+
* Updates an existing agent\'s properties
|
|
289
|
+
* Update an agent
|
|
290
|
+
*/
|
|
291
|
+
updateAgentById(agentId: string, agentPatchUio: AgentPatchUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentPatchUio>;
|
|
292
|
+
/**
|
|
293
|
+
* Update profile picture for an agent
|
|
294
|
+
*/
|
|
295
|
+
updateAgentProfilePictureRaw(requestParameters: UpdateAgentProfilePictureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<S3UploadBodyUio>>;
|
|
296
|
+
/**
|
|
297
|
+
* Update profile picture for an agent
|
|
298
|
+
*/
|
|
299
|
+
updateAgentProfilePicture(agentId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<S3UploadBodyUio>;
|
|
300
|
+
/**
|
|
301
|
+
* Sets or updates a subscription plan for an agent (admin only)
|
|
302
|
+
* Update agent subscription
|
|
303
|
+
*/
|
|
304
|
+
updateAgentSubscriptionRaw(requestParameters: UpdateAgentSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentSubscriptionUio>>;
|
|
305
|
+
/**
|
|
306
|
+
* Sets or updates a subscription plan for an agent (admin only)
|
|
307
|
+
* Update agent subscription
|
|
308
|
+
*/
|
|
309
|
+
updateAgentSubscription(agentId: string, agentSubscriptionUio: AgentSubscriptionUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentSubscriptionUio>;
|
|
310
|
+
/**
|
|
311
|
+
* Updates an existing conversation flow
|
|
312
|
+
* Update a flow
|
|
313
|
+
*/
|
|
314
|
+
updateFlowRaw(requestParameters: UpdateFlowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentFlowUio>>;
|
|
315
|
+
/**
|
|
316
|
+
* Updates an existing conversation flow
|
|
317
|
+
* Update a flow
|
|
318
|
+
*/
|
|
319
|
+
updateFlow(agentId: string, flowId: string, agentFlowUio: AgentFlowUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentFlowUio>;
|
|
320
|
+
/**
|
|
321
|
+
* Uploads a profile image for an agent and returns an upload URL
|
|
322
|
+
* Upload agent profile image
|
|
323
|
+
*/
|
|
324
|
+
uploadAgentProfileImageRaw(requestParameters: UploadAgentProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreationResponseUio>>;
|
|
325
|
+
/**
|
|
326
|
+
* Uploads a profile image for an agent and returns an upload URL
|
|
327
|
+
* Upload agent profile image
|
|
328
|
+
*/
|
|
329
|
+
uploadAgentProfileImage(agentId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
|
|
330
|
+
}
|