@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,83 @@
|
|
|
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.GeneralApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class GeneralApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Comprehensive health check that verifies system components
|
|
58
|
+
* Health check endpoint
|
|
59
|
+
*/
|
|
60
|
+
async getHealthRaw(initOverrides) {
|
|
61
|
+
const queryParameters = {};
|
|
62
|
+
const headerParameters = {};
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
65
|
+
}
|
|
66
|
+
const response = await this.request({
|
|
67
|
+
path: `/health`,
|
|
68
|
+
method: 'GET',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
query: queryParameters,
|
|
71
|
+
}, initOverrides);
|
|
72
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.HealthCheckResponseUioFromJSON)(jsonValue));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Comprehensive health check that verifies system components
|
|
76
|
+
* Health check endpoint
|
|
77
|
+
*/
|
|
78
|
+
async getHealth(initOverrides) {
|
|
79
|
+
const response = await this.getHealthRaw(initOverrides);
|
|
80
|
+
return await response.value();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.GeneralApi = GeneralApi;
|
|
@@ -0,0 +1,122 @@
|
|
|
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, GuardianCreateRequestUio, GuardianPutRequestUio, GuardianUio } from '../models/index';
|
|
14
|
+
export interface CreateGuardianForAgentRequest {
|
|
15
|
+
agentId: string;
|
|
16
|
+
guardianCreateRequestUio: GuardianCreateRequestUio;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateGuardianForOrganizationRequest {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
guardianCreateRequestUio: GuardianCreateRequestUio;
|
|
21
|
+
}
|
|
22
|
+
export interface DeleteGuardianRequest {
|
|
23
|
+
guardianId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface GetGuardianRequest {
|
|
26
|
+
guardianId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetGuardiansForAgentRequest {
|
|
29
|
+
agentId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GetGuardiansForOrganizationRequest {
|
|
32
|
+
organizationId: string;
|
|
33
|
+
}
|
|
34
|
+
export interface UpdateExcludedAgentsRequest {
|
|
35
|
+
guardianId: string;
|
|
36
|
+
requestBody: Array<string>;
|
|
37
|
+
}
|
|
38
|
+
export interface UpdateGuardianRequest {
|
|
39
|
+
guardianId: string;
|
|
40
|
+
guardianPutRequestUio: GuardianPutRequestUio;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
export declare class GuardiansApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Creates a new guardian for content moderation
|
|
48
|
+
* Create a new guardian for an agent
|
|
49
|
+
*/
|
|
50
|
+
createGuardianForAgentRaw(requestParameters: CreateGuardianForAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
51
|
+
/**
|
|
52
|
+
* Creates a new guardian for content moderation
|
|
53
|
+
* Create a new guardian for an agent
|
|
54
|
+
*/
|
|
55
|
+
createGuardianForAgent(agentId: string, guardianCreateRequestUio: GuardianCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new organisation-level guardian for content moderation
|
|
58
|
+
* Create a new guardian for an organisation
|
|
59
|
+
*/
|
|
60
|
+
createGuardianForOrganizationRaw(requestParameters: CreateGuardianForOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new organisation-level guardian for content moderation
|
|
63
|
+
* Create a new guardian for an organisation
|
|
64
|
+
*/
|
|
65
|
+
createGuardianForOrganization(organizationId: string, guardianCreateRequestUio: GuardianCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
66
|
+
/**
|
|
67
|
+
* Deletes a guardian by ID
|
|
68
|
+
* Delete a guardian
|
|
69
|
+
*/
|
|
70
|
+
deleteGuardianRaw(requestParameters: DeleteGuardianRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
71
|
+
/**
|
|
72
|
+
* Deletes a guardian by ID
|
|
73
|
+
* Delete a guardian
|
|
74
|
+
*/
|
|
75
|
+
deleteGuardian(guardianId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Get a specific guardian by ID
|
|
78
|
+
*/
|
|
79
|
+
getGuardianRaw(requestParameters: GetGuardianRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
80
|
+
/**
|
|
81
|
+
* Get a specific guardian by ID
|
|
82
|
+
*/
|
|
83
|
+
getGuardian(guardianId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
84
|
+
/**
|
|
85
|
+
* Get all guardians for a specific agent
|
|
86
|
+
*/
|
|
87
|
+
getGuardiansForAgentRaw(requestParameters: GetGuardiansForAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GuardianUio>>>;
|
|
88
|
+
/**
|
|
89
|
+
* Get all guardians for a specific agent
|
|
90
|
+
*/
|
|
91
|
+
getGuardiansForAgent(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GuardianUio>>;
|
|
92
|
+
/**
|
|
93
|
+
* Retrieves all guardians associated with the specified organization
|
|
94
|
+
* Get all guardians for an organization
|
|
95
|
+
*/
|
|
96
|
+
getGuardiansForOrganizationRaw(requestParameters: GetGuardiansForOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GuardianUio>>>;
|
|
97
|
+
/**
|
|
98
|
+
* Retrieves all guardians associated with the specified organization
|
|
99
|
+
* Get all guardians for an organization
|
|
100
|
+
*/
|
|
101
|
+
getGuardiansForOrganization(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GuardianUio>>;
|
|
102
|
+
/**
|
|
103
|
+
* Updates the excluded agents for a guardian
|
|
104
|
+
* Update excluded agents for a guardian
|
|
105
|
+
*/
|
|
106
|
+
updateExcludedAgentsRaw(requestParameters: UpdateExcludedAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
107
|
+
/**
|
|
108
|
+
* Updates the excluded agents for a guardian
|
|
109
|
+
* Update excluded agents for a guardian
|
|
110
|
+
*/
|
|
111
|
+
updateExcludedAgents(guardianId: string, requestBody: Array<string>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
112
|
+
/**
|
|
113
|
+
* Updates an existing guardian\'s configuration
|
|
114
|
+
* Update a guardian
|
|
115
|
+
*/
|
|
116
|
+
updateGuardianRaw(requestParameters: UpdateGuardianRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
117
|
+
/**
|
|
118
|
+
* Updates an existing guardian\'s configuration
|
|
119
|
+
* Update a guardian
|
|
120
|
+
*/
|
|
121
|
+
updateGuardian(guardianId: string, guardianPutRequestUio: GuardianPutRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
122
|
+
}
|
|
@@ -0,0 +1,304 @@
|
|
|
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.GuardiansApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class GuardiansApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new guardian for content moderation
|
|
58
|
+
* Create a new guardian for an agent
|
|
59
|
+
*/
|
|
60
|
+
async createGuardianForAgentRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['agentId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling createGuardianForAgent().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['guardianCreateRequestUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('guardianCreateRequestUio', 'Required parameter "guardianCreateRequestUio" was null or undefined when calling createGuardianForAgent().');
|
|
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: `/agents/{agentId}/guardians`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.GuardianCreateRequestUioToJSON)(requestParameters['guardianCreateRequestUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GuardianUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new guardian for content moderation
|
|
84
|
+
* Create a new guardian for an agent
|
|
85
|
+
*/
|
|
86
|
+
async createGuardianForAgent(agentId, guardianCreateRequestUio, initOverrides) {
|
|
87
|
+
const response = await this.createGuardianForAgentRaw({ agentId: agentId, guardianCreateRequestUio: guardianCreateRequestUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Creates a new organisation-level guardian for content moderation
|
|
92
|
+
* Create a new guardian for an organisation
|
|
93
|
+
*/
|
|
94
|
+
async createGuardianForOrganizationRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['organizationId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createGuardianForOrganization().');
|
|
97
|
+
}
|
|
98
|
+
if (requestParameters['guardianCreateRequestUio'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('guardianCreateRequestUio', 'Required parameter "guardianCreateRequestUio" was null or undefined when calling createGuardianForOrganization().');
|
|
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: `/organizations/{organizationId}/guardians`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
109
|
+
method: 'POST',
|
|
110
|
+
headers: headerParameters,
|
|
111
|
+
query: queryParameters,
|
|
112
|
+
body: (0, index_1.GuardianCreateRequestUioToJSON)(requestParameters['guardianCreateRequestUio']),
|
|
113
|
+
}, initOverrides);
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GuardianUioFromJSON)(jsonValue));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Creates a new organisation-level guardian for content moderation
|
|
118
|
+
* Create a new guardian for an organisation
|
|
119
|
+
*/
|
|
120
|
+
async createGuardianForOrganization(organizationId, guardianCreateRequestUio, initOverrides) {
|
|
121
|
+
const response = await this.createGuardianForOrganizationRaw({ organizationId: organizationId, guardianCreateRequestUio: guardianCreateRequestUio }, initOverrides);
|
|
122
|
+
return await response.value();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Deletes a guardian by ID
|
|
126
|
+
* Delete a guardian
|
|
127
|
+
*/
|
|
128
|
+
async deleteGuardianRaw(requestParameters, initOverrides) {
|
|
129
|
+
if (requestParameters['guardianId'] == null) {
|
|
130
|
+
throw new runtime.RequiredError('guardianId', 'Required parameter "guardianId" was null or undefined when calling deleteGuardian().');
|
|
131
|
+
}
|
|
132
|
+
const queryParameters = {};
|
|
133
|
+
const headerParameters = {};
|
|
134
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
135
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
136
|
+
}
|
|
137
|
+
const response = await this.request({
|
|
138
|
+
path: `/guardians/{guardianId}`.replace(`{${"guardianId"}}`, encodeURIComponent(String(requestParameters['guardianId']))),
|
|
139
|
+
method: 'DELETE',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.VoidApiResponse(response);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Deletes a guardian by ID
|
|
147
|
+
* Delete a guardian
|
|
148
|
+
*/
|
|
149
|
+
async deleteGuardian(guardianId, initOverrides) {
|
|
150
|
+
await this.deleteGuardianRaw({ guardianId: guardianId }, initOverrides);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Get a specific guardian by ID
|
|
154
|
+
*/
|
|
155
|
+
async getGuardianRaw(requestParameters, initOverrides) {
|
|
156
|
+
if (requestParameters['guardianId'] == null) {
|
|
157
|
+
throw new runtime.RequiredError('guardianId', 'Required parameter "guardianId" was null or undefined when calling getGuardian().');
|
|
158
|
+
}
|
|
159
|
+
const queryParameters = {};
|
|
160
|
+
const headerParameters = {};
|
|
161
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
162
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
163
|
+
}
|
|
164
|
+
const response = await this.request({
|
|
165
|
+
path: `/guardians/{guardianId}`.replace(`{${"guardianId"}}`, encodeURIComponent(String(requestParameters['guardianId']))),
|
|
166
|
+
method: 'GET',
|
|
167
|
+
headers: headerParameters,
|
|
168
|
+
query: queryParameters,
|
|
169
|
+
}, initOverrides);
|
|
170
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GuardianUioFromJSON)(jsonValue));
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Get a specific guardian by ID
|
|
174
|
+
*/
|
|
175
|
+
async getGuardian(guardianId, initOverrides) {
|
|
176
|
+
const response = await this.getGuardianRaw({ guardianId: guardianId }, initOverrides);
|
|
177
|
+
return await response.value();
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Get all guardians for a specific agent
|
|
181
|
+
*/
|
|
182
|
+
async getGuardiansForAgentRaw(requestParameters, initOverrides) {
|
|
183
|
+
if (requestParameters['agentId'] == null) {
|
|
184
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getGuardiansForAgent().');
|
|
185
|
+
}
|
|
186
|
+
const queryParameters = {};
|
|
187
|
+
const headerParameters = {};
|
|
188
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
189
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
190
|
+
}
|
|
191
|
+
const response = await this.request({
|
|
192
|
+
path: `/agents/{agentId}/guardians`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
193
|
+
method: 'GET',
|
|
194
|
+
headers: headerParameters,
|
|
195
|
+
query: queryParameters,
|
|
196
|
+
}, initOverrides);
|
|
197
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GuardianUioFromJSON));
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Get all guardians for a specific agent
|
|
201
|
+
*/
|
|
202
|
+
async getGuardiansForAgent(agentId, initOverrides) {
|
|
203
|
+
const response = await this.getGuardiansForAgentRaw({ agentId: agentId }, initOverrides);
|
|
204
|
+
return await response.value();
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Retrieves all guardians associated with the specified organization
|
|
208
|
+
* Get all guardians for an organization
|
|
209
|
+
*/
|
|
210
|
+
async getGuardiansForOrganizationRaw(requestParameters, initOverrides) {
|
|
211
|
+
if (requestParameters['organizationId'] == null) {
|
|
212
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getGuardiansForOrganization().');
|
|
213
|
+
}
|
|
214
|
+
const queryParameters = {};
|
|
215
|
+
const headerParameters = {};
|
|
216
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
217
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
218
|
+
}
|
|
219
|
+
const response = await this.request({
|
|
220
|
+
path: `/organizations/{organizationId}/guardians`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
221
|
+
method: 'GET',
|
|
222
|
+
headers: headerParameters,
|
|
223
|
+
query: queryParameters,
|
|
224
|
+
}, initOverrides);
|
|
225
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GuardianUioFromJSON));
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Retrieves all guardians associated with the specified organization
|
|
229
|
+
* Get all guardians for an organization
|
|
230
|
+
*/
|
|
231
|
+
async getGuardiansForOrganization(organizationId, initOverrides) {
|
|
232
|
+
const response = await this.getGuardiansForOrganizationRaw({ organizationId: organizationId }, initOverrides);
|
|
233
|
+
return await response.value();
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Updates the excluded agents for a guardian
|
|
237
|
+
* Update excluded agents for a guardian
|
|
238
|
+
*/
|
|
239
|
+
async updateExcludedAgentsRaw(requestParameters, initOverrides) {
|
|
240
|
+
if (requestParameters['guardianId'] == null) {
|
|
241
|
+
throw new runtime.RequiredError('guardianId', 'Required parameter "guardianId" was null or undefined when calling updateExcludedAgents().');
|
|
242
|
+
}
|
|
243
|
+
if (requestParameters['requestBody'] == null) {
|
|
244
|
+
throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling updateExcludedAgents().');
|
|
245
|
+
}
|
|
246
|
+
const queryParameters = {};
|
|
247
|
+
const headerParameters = {};
|
|
248
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
249
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
250
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
251
|
+
}
|
|
252
|
+
const response = await this.request({
|
|
253
|
+
path: `/guardians/{guardianId}/excluded-agents`.replace(`{${"guardianId"}}`, encodeURIComponent(String(requestParameters['guardianId']))),
|
|
254
|
+
method: 'PUT',
|
|
255
|
+
headers: headerParameters,
|
|
256
|
+
query: queryParameters,
|
|
257
|
+
body: requestParameters['requestBody'],
|
|
258
|
+
}, initOverrides);
|
|
259
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Updates the excluded agents for a guardian
|
|
263
|
+
* Update excluded agents for a guardian
|
|
264
|
+
*/
|
|
265
|
+
async updateExcludedAgents(guardianId, requestBody, initOverrides) {
|
|
266
|
+
const response = await this.updateExcludedAgentsRaw({ guardianId: guardianId, requestBody: requestBody }, initOverrides);
|
|
267
|
+
return await response.value();
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Updates an existing guardian\'s configuration
|
|
271
|
+
* Update a guardian
|
|
272
|
+
*/
|
|
273
|
+
async updateGuardianRaw(requestParameters, initOverrides) {
|
|
274
|
+
if (requestParameters['guardianId'] == null) {
|
|
275
|
+
throw new runtime.RequiredError('guardianId', 'Required parameter "guardianId" was null or undefined when calling updateGuardian().');
|
|
276
|
+
}
|
|
277
|
+
if (requestParameters['guardianPutRequestUio'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('guardianPutRequestUio', 'Required parameter "guardianPutRequestUio" was null or undefined when calling updateGuardian().');
|
|
279
|
+
}
|
|
280
|
+
const queryParameters = {};
|
|
281
|
+
const headerParameters = {};
|
|
282
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
283
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
284
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
285
|
+
}
|
|
286
|
+
const response = await this.request({
|
|
287
|
+
path: `/guardians/{guardianId}`.replace(`{${"guardianId"}}`, encodeURIComponent(String(requestParameters['guardianId']))),
|
|
288
|
+
method: 'PUT',
|
|
289
|
+
headers: headerParameters,
|
|
290
|
+
query: queryParameters,
|
|
291
|
+
body: (0, index_1.GuardianPutRequestUioToJSON)(requestParameters['guardianPutRequestUio']),
|
|
292
|
+
}, initOverrides);
|
|
293
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GuardianUioFromJSON)(jsonValue));
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Updates an existing guardian\'s configuration
|
|
297
|
+
* Update a guardian
|
|
298
|
+
*/
|
|
299
|
+
async updateGuardian(guardianId, guardianPutRequestUio, initOverrides) {
|
|
300
|
+
const response = await this.updateGuardianRaw({ guardianId: guardianId, guardianPutRequestUio: guardianPutRequestUio }, initOverrides);
|
|
301
|
+
return await response.value();
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
exports.GuardiansApi = GuardiansApi;
|
|
@@ -0,0 +1,171 @@
|
|
|
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 { AgentModuleUio, BodyWithMessageUio, DocumentAddRequestUio, FileCreationRequestUio, FileCreationResponseUio, FileStatusUpdateRequestUio, FileWithDownloadUrlUio, ImportFileToAgentKnowledge200ResponseUio } from '../models/index';
|
|
14
|
+
export interface AddDocumentToKnowledgeBaseRequest {
|
|
15
|
+
agentId: string;
|
|
16
|
+
documentAddRequestUio: DocumentAddRequestUio;
|
|
17
|
+
noSplit?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface AddFileToKnowledgeBaseRequest {
|
|
20
|
+
organizationId: string;
|
|
21
|
+
fileCreationRequestUio: FileCreationRequestUio;
|
|
22
|
+
}
|
|
23
|
+
export interface CreateModuleForOrganizationRequest {
|
|
24
|
+
organizationId: string;
|
|
25
|
+
agentModuleUio: AgentModuleUio;
|
|
26
|
+
}
|
|
27
|
+
export interface DeleteFileFromAgentKnowledgeRequest {
|
|
28
|
+
agentId: string;
|
|
29
|
+
fileId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GetFileFromAgentKnowledgeRequest {
|
|
32
|
+
agentId: string;
|
|
33
|
+
fileId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ImportFileToAgentKnowledgeRequest {
|
|
36
|
+
agentId: string;
|
|
37
|
+
file: Blob;
|
|
38
|
+
}
|
|
39
|
+
export interface ImportProjectsToAgentKnowledgeRequest {
|
|
40
|
+
agentId: string;
|
|
41
|
+
}
|
|
42
|
+
export interface PrepareFileUploadRequest {
|
|
43
|
+
agentId: string;
|
|
44
|
+
fileCreationRequestUio: FileCreationRequestUio;
|
|
45
|
+
}
|
|
46
|
+
export interface ResetAgentKnowledgeRequest {
|
|
47
|
+
agentId: string;
|
|
48
|
+
}
|
|
49
|
+
export interface ResetKnowledgeBaseRequest {
|
|
50
|
+
organizationId: string;
|
|
51
|
+
}
|
|
52
|
+
export interface UpdateFileStatusRequest {
|
|
53
|
+
agentId: string;
|
|
54
|
+
fileId: string;
|
|
55
|
+
fileStatusUpdateRequestUio: FileStatusUpdateRequestUio;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare class KnowledgeApi extends runtime.BaseAPI {
|
|
61
|
+
/**
|
|
62
|
+
* Adds a text document to the agent\'s knowledge base, splitting it into chunks if necessary
|
|
63
|
+
* Add a document to agent\'s knowledge base
|
|
64
|
+
*/
|
|
65
|
+
addDocumentToKnowledgeBaseRaw(requestParameters: AddDocumentToKnowledgeBaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
66
|
+
/**
|
|
67
|
+
* Adds a text document to the agent\'s knowledge base, splitting it into chunks if necessary
|
|
68
|
+
* Add a document to agent\'s knowledge base
|
|
69
|
+
*/
|
|
70
|
+
addDocumentToKnowledgeBase(agentId: string, documentAddRequestUio: DocumentAddRequestUio, noSplit?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Add a file to the knowledge base
|
|
73
|
+
* Add a file to the knowledge base
|
|
74
|
+
*/
|
|
75
|
+
addFileToKnowledgeBaseRaw(requestParameters: AddFileToKnowledgeBaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreationResponseUio>>;
|
|
76
|
+
/**
|
|
77
|
+
* Add a file to the knowledge base
|
|
78
|
+
* Add a file to the knowledge base
|
|
79
|
+
*/
|
|
80
|
+
addFileToKnowledgeBase(organizationId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
|
|
81
|
+
/**
|
|
82
|
+
* Create a new module for an organization
|
|
83
|
+
* Create a new module for an organization
|
|
84
|
+
*/
|
|
85
|
+
createModuleForOrganizationRaw(requestParameters: CreateModuleForOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentModuleUio>>;
|
|
86
|
+
/**
|
|
87
|
+
* Create a new module for an organization
|
|
88
|
+
* Create a new module for an organization
|
|
89
|
+
*/
|
|
90
|
+
createModuleForOrganization(organizationId: string, agentModuleUio: AgentModuleUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentModuleUio>;
|
|
91
|
+
/**
|
|
92
|
+
* Removes a file and its associated chunks from the agent\'s knowledge base
|
|
93
|
+
* Delete a knowledge file from an agent
|
|
94
|
+
*/
|
|
95
|
+
deleteFileFromAgentKnowledgeRaw(requestParameters: DeleteFileFromAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
96
|
+
/**
|
|
97
|
+
* Removes a file and its associated chunks from the agent\'s knowledge base
|
|
98
|
+
* Delete a knowledge file from an agent
|
|
99
|
+
*/
|
|
100
|
+
deleteFileFromAgentKnowledge(agentId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* Retrieves metadata for a file that has been imported into the agent\'s knowledge base
|
|
103
|
+
* Get a specific knowledge file from an agent
|
|
104
|
+
*/
|
|
105
|
+
getFileFromAgentKnowledgeRaw(requestParameters: GetFileFromAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileWithDownloadUrlUio>>;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves metadata for a file that has been imported into the agent\'s knowledge base
|
|
108
|
+
* Get a specific knowledge file from an agent
|
|
109
|
+
*/
|
|
110
|
+
getFileFromAgentKnowledge(agentId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileWithDownloadUrlUio>;
|
|
111
|
+
/**
|
|
112
|
+
* Processes documents like PDFs, CSVs, and text files, and adds them to the brain\'s knowledge base
|
|
113
|
+
* Upload and import a file into the brain\'s knowledge base
|
|
114
|
+
*/
|
|
115
|
+
importFileToAgentKnowledgeRaw(requestParameters: ImportFileToAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportFileToAgentKnowledge200ResponseUio>>;
|
|
116
|
+
/**
|
|
117
|
+
* Processes documents like PDFs, CSVs, and text files, and adds them to the brain\'s knowledge base
|
|
118
|
+
* Upload and import a file into the brain\'s knowledge base
|
|
119
|
+
*/
|
|
120
|
+
importFileToAgentKnowledge(agentId: string, file: Blob, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportFileToAgentKnowledge200ResponseUio>;
|
|
121
|
+
/**
|
|
122
|
+
* Imports project data from a local JSON file into the agent\'s knowledge base
|
|
123
|
+
* Import projects into agent knowledge
|
|
124
|
+
*/
|
|
125
|
+
importProjectsToAgentKnowledgeRaw(requestParameters: ImportProjectsToAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
126
|
+
/**
|
|
127
|
+
* Imports project data from a local JSON file into the agent\'s knowledge base
|
|
128
|
+
* Import projects into agent knowledge
|
|
129
|
+
*/
|
|
130
|
+
importProjectsToAgentKnowledge(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Registers a file for upload to the brain\'s knowledge base and returns an upload URL
|
|
133
|
+
* Prepare file upload for knowledge base
|
|
134
|
+
*/
|
|
135
|
+
prepareFileUploadRaw(requestParameters: PrepareFileUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreationResponseUio>>;
|
|
136
|
+
/**
|
|
137
|
+
* Registers a file for upload to the brain\'s knowledge base and returns an upload URL
|
|
138
|
+
* Prepare file upload for knowledge base
|
|
139
|
+
*/
|
|
140
|
+
prepareFileUpload(agentId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
|
|
141
|
+
/**
|
|
142
|
+
* Deletes all knowledge embeddings and files associated with an agent
|
|
143
|
+
* Reset all knowledge for an agent
|
|
144
|
+
*/
|
|
145
|
+
resetAgentKnowledgeRaw(requestParameters: ResetAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
146
|
+
/**
|
|
147
|
+
* Deletes all knowledge embeddings and files associated with an agent
|
|
148
|
+
* Reset all knowledge for an agent
|
|
149
|
+
*/
|
|
150
|
+
resetAgentKnowledge(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* Reset knowledge base
|
|
153
|
+
* Reset knowledge base
|
|
154
|
+
*/
|
|
155
|
+
resetKnowledgeBaseRaw(requestParameters: ResetKnowledgeBaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
156
|
+
/**
|
|
157
|
+
* Reset knowledge base
|
|
158
|
+
* Reset knowledge base
|
|
159
|
+
*/
|
|
160
|
+
resetKnowledgeBase(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
161
|
+
/**
|
|
162
|
+
* Updates the status of a knowledge file and triggers the indexing process if the file is uploaded
|
|
163
|
+
* Update file status and trigger indexing
|
|
164
|
+
*/
|
|
165
|
+
updateFileStatusRaw(requestParameters: UpdateFileStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
166
|
+
/**
|
|
167
|
+
* Updates the status of a knowledge file and triggers the indexing process if the file is uploaded
|
|
168
|
+
* Update file status and trigger indexing
|
|
169
|
+
*/
|
|
170
|
+
updateFileStatus(agentId: string, fileId: string, fileStatusUpdateRequestUio: FileStatusUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
171
|
+
}
|