@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,45 @@
|
|
|
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 { AuthCodeConfirmRequestUio, AuthCodeConfirmResponseUio, AuthCodeRequestUio, AuthCodeResponseUio } from '../models/index';
|
|
14
|
+
export interface ConfirmAuthCodeRequest {
|
|
15
|
+
authFlowId: string;
|
|
16
|
+
authCodeConfirmRequestUio: AuthCodeConfirmRequestUio;
|
|
17
|
+
}
|
|
18
|
+
export interface GetAuthCodeRequest {
|
|
19
|
+
authCodeRequestUio: AuthCodeRequestUio;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class AuthApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Confirm auth code
|
|
27
|
+
* Confirm auth code
|
|
28
|
+
*/
|
|
29
|
+
confirmAuthCodeRaw(requestParameters: ConfirmAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthCodeConfirmResponseUio>>;
|
|
30
|
+
/**
|
|
31
|
+
* Confirm auth code
|
|
32
|
+
* Confirm auth code
|
|
33
|
+
*/
|
|
34
|
+
confirmAuthCode(authFlowId: string, authCodeConfirmRequestUio: AuthCodeConfirmRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthCodeConfirmResponseUio>;
|
|
35
|
+
/**
|
|
36
|
+
* Get auth code
|
|
37
|
+
* Get auth code
|
|
38
|
+
*/
|
|
39
|
+
getAuthCodeRaw(requestParameters: GetAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthCodeResponseUio>>;
|
|
40
|
+
/**
|
|
41
|
+
* Get auth code
|
|
42
|
+
* Get auth code
|
|
43
|
+
*/
|
|
44
|
+
getAuthCode(authCodeRequestUio: AuthCodeRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthCodeResponseUio>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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.AuthApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class AuthApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Confirm auth code
|
|
58
|
+
* Confirm auth code
|
|
59
|
+
*/
|
|
60
|
+
async confirmAuthCodeRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['authFlowId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('authFlowId', 'Required parameter "authFlowId" was null or undefined when calling confirmAuthCode().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['authCodeConfirmRequestUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('authCodeConfirmRequestUio', 'Required parameter "authCodeConfirmRequestUio" was null or undefined when calling confirmAuthCode().');
|
|
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: `/auth/{authFlowId}/confirm`.replace(`{${"authFlowId"}}`, encodeURIComponent(String(requestParameters['authFlowId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.AuthCodeConfirmRequestUioToJSON)(requestParameters['authCodeConfirmRequestUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AuthCodeConfirmResponseUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Confirm auth code
|
|
84
|
+
* Confirm auth code
|
|
85
|
+
*/
|
|
86
|
+
async confirmAuthCode(authFlowId, authCodeConfirmRequestUio, initOverrides) {
|
|
87
|
+
const response = await this.confirmAuthCodeRaw({ authFlowId: authFlowId, authCodeConfirmRequestUio: authCodeConfirmRequestUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get auth code
|
|
92
|
+
* Get auth code
|
|
93
|
+
*/
|
|
94
|
+
async getAuthCodeRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['authCodeRequestUio'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('authCodeRequestUio', 'Required parameter "authCodeRequestUio" was null or undefined when calling getAuthCode().');
|
|
97
|
+
}
|
|
98
|
+
const queryParameters = {};
|
|
99
|
+
const headerParameters = {};
|
|
100
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
103
|
+
}
|
|
104
|
+
const response = await this.request({
|
|
105
|
+
path: `/auth/code`,
|
|
106
|
+
method: 'POST',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
body: (0, index_1.AuthCodeRequestUioToJSON)(requestParameters['authCodeRequestUio']),
|
|
110
|
+
}, initOverrides);
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AuthCodeResponseUioFromJSON)(jsonValue));
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Get auth code
|
|
115
|
+
* Get auth code
|
|
116
|
+
*/
|
|
117
|
+
async getAuthCode(authCodeRequestUio, initOverrides) {
|
|
118
|
+
const response = await this.getAuthCodeRaw({ authCodeRequestUio: authCodeRequestUio }, initOverrides);
|
|
119
|
+
return await response.value();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.AuthApi = AuthApi;
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { ChunkCreateRequestUio, ChunkCreateResponseUio, ChunkUio } from '../models/index';
|
|
14
|
+
export interface CreateChunkRequest {
|
|
15
|
+
chunkCreateRequestUio: ChunkCreateRequestUio;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteChunkByIdRequest {
|
|
18
|
+
chunkId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetChunkByIdRequest {
|
|
21
|
+
chunkId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface GetChunkByIdAndFileNameRequest {
|
|
24
|
+
chunkId: string;
|
|
25
|
+
fileName: string;
|
|
26
|
+
}
|
|
27
|
+
export interface GetChunkByNameAndVersionRequest {
|
|
28
|
+
chunkName: string;
|
|
29
|
+
version: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare class ChunksApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* Creates a new content chunk (admin only)
|
|
37
|
+
* Create a new chunk
|
|
38
|
+
*/
|
|
39
|
+
createChunkRaw(requestParameters: CreateChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkCreateResponseUio>>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new content chunk (admin only)
|
|
42
|
+
* Create a new chunk
|
|
43
|
+
*/
|
|
44
|
+
createChunk(chunkCreateRequestUio: ChunkCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkCreateResponseUio>;
|
|
45
|
+
/**
|
|
46
|
+
* Deletes a chunk and all its associated files from storage (admin only)
|
|
47
|
+
* Delete a chunk
|
|
48
|
+
*/
|
|
49
|
+
deleteChunkByIdRaw(requestParameters: DeleteChunkByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
|
+
/**
|
|
51
|
+
* Deletes a chunk and all its associated files from storage (admin only)
|
|
52
|
+
* Delete a chunk
|
|
53
|
+
*/
|
|
54
|
+
deleteChunkById(chunkId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves a list of all content chunks (admin only)
|
|
57
|
+
* Get all chunks
|
|
58
|
+
*/
|
|
59
|
+
getAllChunksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ChunkUio>>>;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves a list of all content chunks (admin only)
|
|
62
|
+
* Get all chunks
|
|
63
|
+
*/
|
|
64
|
+
getAllChunks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChunkUio>>;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves a specific content chunk (admin only)
|
|
67
|
+
* Get a chunk by ID
|
|
68
|
+
*/
|
|
69
|
+
getChunkByIdRaw(requestParameters: GetChunkByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkUio>>;
|
|
70
|
+
/**
|
|
71
|
+
* Retrieves a specific content chunk (admin only)
|
|
72
|
+
* Get a chunk by ID
|
|
73
|
+
*/
|
|
74
|
+
getChunkById(chunkId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkUio>;
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves a specific content chunk (admin only)
|
|
77
|
+
* Get a chunk by ID
|
|
78
|
+
*/
|
|
79
|
+
getChunkByIdAndFileNameRaw(requestParameters: GetChunkByIdAndFileNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkUio>>;
|
|
80
|
+
/**
|
|
81
|
+
* Retrieves a specific content chunk (admin only)
|
|
82
|
+
* Get a chunk by ID
|
|
83
|
+
*/
|
|
84
|
+
getChunkByIdAndFileName(chunkId: string, fileName: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkUio>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves a specific content chunk (admin only)
|
|
87
|
+
* Get a chunk by name and version
|
|
88
|
+
*/
|
|
89
|
+
getChunkByNameAndVersionRaw(requestParameters: GetChunkByNameAndVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkUio>>;
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves a specific content chunk (admin only)
|
|
92
|
+
* Get a chunk by name and version
|
|
93
|
+
*/
|
|
94
|
+
getChunkByNameAndVersion(chunkName: string, version: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkUio>;
|
|
95
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
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.ChunksApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class ChunksApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new content chunk (admin only)
|
|
58
|
+
* Create a new chunk
|
|
59
|
+
*/
|
|
60
|
+
async createChunkRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['chunkCreateRequestUio'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('chunkCreateRequestUio', 'Required parameter "chunkCreateRequestUio" was null or undefined when calling createChunk().');
|
|
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: `/chunks`,
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: headerParameters,
|
|
74
|
+
query: queryParameters,
|
|
75
|
+
body: (0, index_1.ChunkCreateRequestUioToJSON)(requestParameters['chunkCreateRequestUio']),
|
|
76
|
+
}, initOverrides);
|
|
77
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkCreateResponseUioFromJSON)(jsonValue));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Creates a new content chunk (admin only)
|
|
81
|
+
* Create a new chunk
|
|
82
|
+
*/
|
|
83
|
+
async createChunk(chunkCreateRequestUio, initOverrides) {
|
|
84
|
+
const response = await this.createChunkRaw({ chunkCreateRequestUio: chunkCreateRequestUio }, initOverrides);
|
|
85
|
+
return await response.value();
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Deletes a chunk and all its associated files from storage (admin only)
|
|
89
|
+
* Delete a chunk
|
|
90
|
+
*/
|
|
91
|
+
async deleteChunkByIdRaw(requestParameters, initOverrides) {
|
|
92
|
+
if (requestParameters['chunkId'] == null) {
|
|
93
|
+
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling deleteChunkById().');
|
|
94
|
+
}
|
|
95
|
+
const queryParameters = {};
|
|
96
|
+
const headerParameters = {};
|
|
97
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
98
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
99
|
+
}
|
|
100
|
+
const response = await this.request({
|
|
101
|
+
path: `/chunks/{chunkId}`.replace(`{${"chunkId"}}`, encodeURIComponent(String(requestParameters['chunkId']))),
|
|
102
|
+
method: 'DELETE',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
}, initOverrides);
|
|
106
|
+
return new runtime.VoidApiResponse(response);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Deletes a chunk and all its associated files from storage (admin only)
|
|
110
|
+
* Delete a chunk
|
|
111
|
+
*/
|
|
112
|
+
async deleteChunkById(chunkId, initOverrides) {
|
|
113
|
+
await this.deleteChunkByIdRaw({ chunkId: chunkId }, initOverrides);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Retrieves a list of all content chunks (admin only)
|
|
117
|
+
* Get all chunks
|
|
118
|
+
*/
|
|
119
|
+
async getAllChunksRaw(initOverrides) {
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
const headerParameters = {};
|
|
122
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
123
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
124
|
+
}
|
|
125
|
+
const response = await this.request({
|
|
126
|
+
path: `/chunks`,
|
|
127
|
+
method: 'GET',
|
|
128
|
+
headers: headerParameters,
|
|
129
|
+
query: queryParameters,
|
|
130
|
+
}, initOverrides);
|
|
131
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ChunkUioFromJSON));
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Retrieves a list of all content chunks (admin only)
|
|
135
|
+
* Get all chunks
|
|
136
|
+
*/
|
|
137
|
+
async getAllChunks(initOverrides) {
|
|
138
|
+
const response = await this.getAllChunksRaw(initOverrides);
|
|
139
|
+
return await response.value();
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Retrieves a specific content chunk (admin only)
|
|
143
|
+
* Get a chunk by ID
|
|
144
|
+
*/
|
|
145
|
+
async getChunkByIdRaw(requestParameters, initOverrides) {
|
|
146
|
+
if (requestParameters['chunkId'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling getChunkById().');
|
|
148
|
+
}
|
|
149
|
+
const queryParameters = {};
|
|
150
|
+
const headerParameters = {};
|
|
151
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
152
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
153
|
+
}
|
|
154
|
+
const response = await this.request({
|
|
155
|
+
path: `/chunks/{chunkId}`.replace(`{${"chunkId"}}`, encodeURIComponent(String(requestParameters['chunkId']))),
|
|
156
|
+
method: 'GET',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
}, initOverrides);
|
|
160
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkUioFromJSON)(jsonValue));
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Retrieves a specific content chunk (admin only)
|
|
164
|
+
* Get a chunk by ID
|
|
165
|
+
*/
|
|
166
|
+
async getChunkById(chunkId, initOverrides) {
|
|
167
|
+
const response = await this.getChunkByIdRaw({ chunkId: chunkId }, initOverrides);
|
|
168
|
+
return await response.value();
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Retrieves a specific content chunk (admin only)
|
|
172
|
+
* Get a chunk by ID
|
|
173
|
+
*/
|
|
174
|
+
async getChunkByIdAndFileNameRaw(requestParameters, initOverrides) {
|
|
175
|
+
if (requestParameters['chunkId'] == null) {
|
|
176
|
+
throw new runtime.RequiredError('chunkId', 'Required parameter "chunkId" was null or undefined when calling getChunkByIdAndFileName().');
|
|
177
|
+
}
|
|
178
|
+
if (requestParameters['fileName'] == null) {
|
|
179
|
+
throw new runtime.RequiredError('fileName', 'Required parameter "fileName" was null or undefined when calling getChunkByIdAndFileName().');
|
|
180
|
+
}
|
|
181
|
+
const queryParameters = {};
|
|
182
|
+
const headerParameters = {};
|
|
183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
184
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
185
|
+
}
|
|
186
|
+
const response = await this.request({
|
|
187
|
+
path: `/chunks/{chunkId}/content/{fileName}`.replace(`{${"chunkId"}}`, encodeURIComponent(String(requestParameters['chunkId']))).replace(`{${"fileName"}}`, encodeURIComponent(String(requestParameters['fileName']))),
|
|
188
|
+
method: 'GET',
|
|
189
|
+
headers: headerParameters,
|
|
190
|
+
query: queryParameters,
|
|
191
|
+
}, initOverrides);
|
|
192
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkUioFromJSON)(jsonValue));
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Retrieves a specific content chunk (admin only)
|
|
196
|
+
* Get a chunk by ID
|
|
197
|
+
*/
|
|
198
|
+
async getChunkByIdAndFileName(chunkId, fileName, initOverrides) {
|
|
199
|
+
const response = await this.getChunkByIdAndFileNameRaw({ chunkId: chunkId, fileName: fileName }, initOverrides);
|
|
200
|
+
return await response.value();
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Retrieves a specific content chunk (admin only)
|
|
204
|
+
* Get a chunk by name and version
|
|
205
|
+
*/
|
|
206
|
+
async getChunkByNameAndVersionRaw(requestParameters, initOverrides) {
|
|
207
|
+
if (requestParameters['chunkName'] == null) {
|
|
208
|
+
throw new runtime.RequiredError('chunkName', 'Required parameter "chunkName" was null or undefined when calling getChunkByNameAndVersion().');
|
|
209
|
+
}
|
|
210
|
+
if (requestParameters['version'] == null) {
|
|
211
|
+
throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling getChunkByNameAndVersion().');
|
|
212
|
+
}
|
|
213
|
+
const queryParameters = {};
|
|
214
|
+
const headerParameters = {};
|
|
215
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
216
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
217
|
+
}
|
|
218
|
+
const response = await this.request({
|
|
219
|
+
path: `/chunks/{chunkName}/versions/{version}`.replace(`{${"chunkName"}}`, encodeURIComponent(String(requestParameters['chunkName']))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))),
|
|
220
|
+
method: 'GET',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
}, initOverrides);
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkUioFromJSON)(jsonValue));
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Retrieves a specific content chunk (admin only)
|
|
228
|
+
* Get a chunk by name and version
|
|
229
|
+
*/
|
|
230
|
+
async getChunkByNameAndVersion(chunkName, version, initOverrides) {
|
|
231
|
+
const response = await this.getChunkByNameAndVersionRaw({ chunkName: chunkName, version: version }, initOverrides);
|
|
232
|
+
return await response.value();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
exports.ChunksApi = ChunksApi;
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { ConfigurationDefaultFillerPhrasesUio, DefaultClientPricesUio, PriceConfigurationUio } from '../models/index';
|
|
14
|
+
export interface UpdateDefaultClientPricesRequest {
|
|
15
|
+
defaultClientPricesUio: DefaultClientPricesUio;
|
|
16
|
+
}
|
|
17
|
+
export interface UpdateDefaultPricesRequest {
|
|
18
|
+
priceConfigurationUio: PriceConfigurationUio;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class ConfigurationApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves default client prices (admin only)
|
|
26
|
+
* Get default client prices
|
|
27
|
+
*/
|
|
28
|
+
getDefaultClientPricesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DefaultClientPricesUio>>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves default client prices (admin only)
|
|
31
|
+
* Get default client prices
|
|
32
|
+
*/
|
|
33
|
+
getDefaultClientPrices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DefaultClientPricesUio>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves default filler phrases for AI responses (admin only)
|
|
36
|
+
* Get default filler phrases
|
|
37
|
+
*/
|
|
38
|
+
getDefaultFillerPhrasesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConfigurationDefaultFillerPhrasesUio>>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves default filler phrases for AI responses (admin only)
|
|
41
|
+
* Get default filler phrases
|
|
42
|
+
*/
|
|
43
|
+
getDefaultFillerPhrases(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConfigurationDefaultFillerPhrasesUio>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieves default prices for providers and models (admin only)
|
|
46
|
+
* Get default prices
|
|
47
|
+
*/
|
|
48
|
+
getDefaultPricesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceConfigurationUio>>;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves default prices for providers and models (admin only)
|
|
51
|
+
* Get default prices
|
|
52
|
+
*/
|
|
53
|
+
getDefaultPrices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceConfigurationUio>;
|
|
54
|
+
/**
|
|
55
|
+
* Updates the default pricing for client interactions (admin only)
|
|
56
|
+
* Update default client prices
|
|
57
|
+
*/
|
|
58
|
+
updateDefaultClientPricesRaw(requestParameters: UpdateDefaultClientPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DefaultClientPricesUio>>;
|
|
59
|
+
/**
|
|
60
|
+
* Updates the default pricing for client interactions (admin only)
|
|
61
|
+
* Update default client prices
|
|
62
|
+
*/
|
|
63
|
+
updateDefaultClientPrices(defaultClientPricesUio: DefaultClientPricesUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DefaultClientPricesUio>;
|
|
64
|
+
/**
|
|
65
|
+
* Updates default prices for providers and models (admin only)
|
|
66
|
+
* Update default prices
|
|
67
|
+
*/
|
|
68
|
+
updateDefaultPricesRaw(requestParameters: UpdateDefaultPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceConfigurationUio>>;
|
|
69
|
+
/**
|
|
70
|
+
* Updates default prices for providers and models (admin only)
|
|
71
|
+
* Update default prices
|
|
72
|
+
*/
|
|
73
|
+
updateDefaultPrices(priceConfigurationUio: PriceConfigurationUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceConfigurationUio>;
|
|
74
|
+
}
|