@breign/client 1.0.4 → 1.0.5
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 +329 -0
- package/dist/apis/AgentApi.js +787 -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 +111 -0
- package/dist/apis/EngineApi.js +274 -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/{BrainPatchUio.d.ts → AgentPatchUio.d.ts} +49 -42
- package/dist/models/{BrainPatchUio.js → AgentPatchUio.js} +30 -41
- 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} +25 -25
- package/dist/models/{BrainRequestUio.js → AgentRequestUio.js} +16 -16
- 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/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.d.ts +56 -0
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.js +56 -0
- 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/ChatMessageRoleUio.d.ts +26 -0
- package/dist/models/ChatMessageRoleUio.js +52 -0
- package/dist/models/ChatMessageUio.d.ts +121 -0
- package/dist/models/ChatMessageUio.js +89 -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 +50 -0
- package/dist/models/DefaultEngineRequestUio.js +62 -0
- package/dist/models/DocumentAddRequestUio.d.ts +38 -0
- package/dist/models/DocumentAddRequestUio.js +52 -0
- package/dist/models/DuplicateAgent201ResponseUio.d.ts +32 -0
- package/dist/models/DuplicateAgent201ResponseUio.js +50 -0
- 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 +66 -0
- package/dist/models/GuardianCreateRequestUio.js +64 -0
- package/dist/models/GuardianEngineTypeUio.d.ts +26 -0
- package/dist/models/GuardianEngineTypeUio.js +52 -0
- package/dist/models/GuardianEngineUio.d.ts +41 -0
- package/dist/models/GuardianEngineUio.js +55 -0
- package/dist/models/GuardianExcludedAgentsRequestUio.d.ts +32 -0
- package/dist/models/GuardianExcludedAgentsRequestUio.js +50 -0
- package/dist/models/GuardianPositionUio.d.ts +25 -0
- package/dist/models/GuardianPositionUio.js +51 -0
- package/dist/models/GuardianPutRequestUio.d.ts +66 -0
- package/dist/models/GuardianPutRequestUio.js +60 -0
- package/dist/models/GuardianRoleUio.d.ts +28 -0
- package/dist/models/GuardianRoleUio.js +54 -0
- package/dist/models/GuardianUio.d.ts +115 -0
- package/dist/models/GuardianUio.js +85 -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/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 +62 -0
- package/dist/models/ProviderCreateRequestUio.js +68 -0
- package/dist/models/ProviderSimpleUio.d.ts +50 -0
- package/dist/models/ProviderSimpleUio.js +62 -0
- package/dist/models/ProviderUio.d.ts +74 -0
- package/dist/models/ProviderUio.js +76 -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 +135 -16
- package/dist/models/index.js +135 -16
- package/dist/openapi.json +6653 -619
- 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/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
|
@@ -0,0 +1,121 @@
|
|
|
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 type { ToolActionUio } from './ToolActionUio';
|
|
13
|
+
import type { SuggestionUio } from './SuggestionUio';
|
|
14
|
+
import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
|
|
15
|
+
import type { FileAttachmentUio } from './FileAttachmentUio';
|
|
16
|
+
import type { ToolResultsUio } from './ToolResultsUio';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ChatMessageUio
|
|
21
|
+
*/
|
|
22
|
+
export interface ChatMessageUio {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ChatMessageUio
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ChatMessageRoleUio}
|
|
32
|
+
* @memberof ChatMessageUio
|
|
33
|
+
*/
|
|
34
|
+
role: ChatMessageRoleUio;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ChatMessageUio
|
|
39
|
+
*/
|
|
40
|
+
content: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof ChatMessageUio
|
|
45
|
+
*/
|
|
46
|
+
askConfirmation?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ChatMessageUio
|
|
51
|
+
*/
|
|
52
|
+
confirmationLink?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<ToolResultsUio>}
|
|
56
|
+
* @memberof ChatMessageUio
|
|
57
|
+
*/
|
|
58
|
+
toolResults?: Array<ToolResultsUio>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Array<SuggestionUio>}
|
|
62
|
+
* @memberof ChatMessageUio
|
|
63
|
+
*/
|
|
64
|
+
suggestions?: Array<SuggestionUio>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ChatMessageUio
|
|
69
|
+
*/
|
|
70
|
+
flowNode?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof ChatMessageUio
|
|
75
|
+
*/
|
|
76
|
+
flowNodeRequirementsChecked?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof ChatMessageUio
|
|
81
|
+
*/
|
|
82
|
+
flowNodeRequirementsMet?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof ChatMessageUio
|
|
87
|
+
*/
|
|
88
|
+
flowNodeRequirementsCheckReason?: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof ChatMessageUio
|
|
93
|
+
*/
|
|
94
|
+
flowNodeIterations?: number;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ChatMessageUio
|
|
99
|
+
*/
|
|
100
|
+
timestamp: string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {Array<ToolActionUio>}
|
|
104
|
+
* @memberof ChatMessageUio
|
|
105
|
+
*/
|
|
106
|
+
actions?: Array<ToolActionUio>;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {Array<FileAttachmentUio>}
|
|
110
|
+
* @memberof ChatMessageUio
|
|
111
|
+
*/
|
|
112
|
+
attachments?: Array<FileAttachmentUio>;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the ChatMessageUio interface.
|
|
116
|
+
*/
|
|
117
|
+
export declare function instanceOfChatMessageUio(value: object): value is ChatMessageUio;
|
|
118
|
+
export declare function ChatMessageUioFromJSON(json: any): ChatMessageUio;
|
|
119
|
+
export declare function ChatMessageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageUio;
|
|
120
|
+
export declare function ChatMessageUioToJSON(json: any): ChatMessageUio;
|
|
121
|
+
export declare function ChatMessageUioToJSONTyped(value?: ChatMessageUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfChatMessageUio = instanceOfChatMessageUio;
|
|
17
|
+
exports.ChatMessageUioFromJSON = ChatMessageUioFromJSON;
|
|
18
|
+
exports.ChatMessageUioFromJSONTyped = ChatMessageUioFromJSONTyped;
|
|
19
|
+
exports.ChatMessageUioToJSON = ChatMessageUioToJSON;
|
|
20
|
+
exports.ChatMessageUioToJSONTyped = ChatMessageUioToJSONTyped;
|
|
21
|
+
const ToolActionUio_1 = require("./ToolActionUio");
|
|
22
|
+
const SuggestionUio_1 = require("./SuggestionUio");
|
|
23
|
+
const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
|
|
24
|
+
const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
25
|
+
const ToolResultsUio_1 = require("./ToolResultsUio");
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ChatMessageUio interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfChatMessageUio(value) {
|
|
30
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function ChatMessageUioFromJSON(json) {
|
|
41
|
+
return ChatMessageUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioFromJSON)(json['role']),
|
|
50
|
+
'content': json['content'],
|
|
51
|
+
'askConfirmation': json['askConfirmation'] == null ? undefined : json['askConfirmation'],
|
|
52
|
+
'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
|
|
53
|
+
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
54
|
+
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
|
|
55
|
+
'flowNode': json['flowNode'] == null ? undefined : json['flowNode'],
|
|
56
|
+
'flowNodeRequirementsChecked': json['flowNodeRequirementsChecked'] == null ? undefined : json['flowNodeRequirementsChecked'],
|
|
57
|
+
'flowNodeRequirementsMet': json['flowNodeRequirementsMet'] == null ? undefined : json['flowNodeRequirementsMet'],
|
|
58
|
+
'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
|
|
59
|
+
'flowNodeIterations': json['flowNodeIterations'] == null ? undefined : json['flowNodeIterations'],
|
|
60
|
+
'timestamp': json['timestamp'],
|
|
61
|
+
'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
|
|
62
|
+
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function ChatMessageUioToJSON(json) {
|
|
66
|
+
return ChatMessageUioToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioToJSON)(value['role']),
|
|
75
|
+
'content': value['content'],
|
|
76
|
+
'askConfirmation': value['askConfirmation'],
|
|
77
|
+
'confirmationLink': value['confirmationLink'],
|
|
78
|
+
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
79
|
+
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
|
|
80
|
+
'flowNode': value['flowNode'],
|
|
81
|
+
'flowNodeRequirementsChecked': value['flowNodeRequirementsChecked'],
|
|
82
|
+
'flowNodeRequirementsMet': value['flowNodeRequirementsMet'],
|
|
83
|
+
'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
|
|
84
|
+
'flowNodeIterations': value['flowNodeIterations'],
|
|
85
|
+
'timestamp': value['timestamp'],
|
|
86
|
+
'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
|
|
87
|
+
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 type { ChatContextUio } from './ChatContextUio';
|
|
13
|
+
import type { ChatMessageUio } from './ChatMessageUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ChatUio
|
|
18
|
+
*/
|
|
19
|
+
export interface ChatUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ChatUio
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ChatUio
|
|
30
|
+
*/
|
|
31
|
+
lang: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ChatUio
|
|
36
|
+
*/
|
|
37
|
+
agentId: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ChatUio
|
|
42
|
+
*/
|
|
43
|
+
instanceId?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ChatUio
|
|
48
|
+
*/
|
|
49
|
+
userId?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ChatUio
|
|
54
|
+
*/
|
|
55
|
+
customUserId?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ChatUio
|
|
60
|
+
*/
|
|
61
|
+
summary?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ChatUio
|
|
66
|
+
*/
|
|
67
|
+
init?: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<ChatMessageUio>}
|
|
71
|
+
* @memberof ChatUio
|
|
72
|
+
*/
|
|
73
|
+
messages: Array<ChatMessageUio>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ChatUio
|
|
78
|
+
*/
|
|
79
|
+
createdAt: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof ChatUio
|
|
84
|
+
*/
|
|
85
|
+
updatedAt: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {ChatContextUio}
|
|
89
|
+
* @memberof ChatUio
|
|
90
|
+
*/
|
|
91
|
+
context: ChatContextUio;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the ChatUio interface.
|
|
95
|
+
*/
|
|
96
|
+
export declare function instanceOfChatUio(value: object): value is ChatUio;
|
|
97
|
+
export declare function ChatUioFromJSON(json: any): ChatUio;
|
|
98
|
+
export declare function ChatUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatUio;
|
|
99
|
+
export declare function ChatUioToJSON(json: any): ChatUio;
|
|
100
|
+
export declare function ChatUioToJSONTyped(value?: ChatUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfChatUio = instanceOfChatUio;
|
|
17
|
+
exports.ChatUioFromJSON = ChatUioFromJSON;
|
|
18
|
+
exports.ChatUioFromJSONTyped = ChatUioFromJSONTyped;
|
|
19
|
+
exports.ChatUioToJSON = ChatUioToJSON;
|
|
20
|
+
exports.ChatUioToJSONTyped = ChatUioToJSONTyped;
|
|
21
|
+
const ChatContextUio_1 = require("./ChatContextUio");
|
|
22
|
+
const ChatMessageUio_1 = require("./ChatMessageUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ChatUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfChatUio(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lang' in value) || value['lang'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('messages' in value) || value['messages'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ChatUioFromJSON(json) {
|
|
44
|
+
return ChatUioFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ChatUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'lang': json['lang'],
|
|
53
|
+
'agentId': json['agentId'],
|
|
54
|
+
'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
|
|
55
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
56
|
+
'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
|
|
57
|
+
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
58
|
+
'init': json['init'] == null ? undefined : json['init'],
|
|
59
|
+
'messages': (json['messages'].map(ChatMessageUio_1.ChatMessageUioFromJSON)),
|
|
60
|
+
'createdAt': json['createdAt'],
|
|
61
|
+
'updatedAt': json['updatedAt'],
|
|
62
|
+
'context': (0, ChatContextUio_1.ChatContextUioFromJSON)(json['context']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function ChatUioToJSON(json) {
|
|
66
|
+
return ChatUioToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function ChatUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'lang': value['lang'],
|
|
75
|
+
'agentId': value['agentId'],
|
|
76
|
+
'instanceId': value['instanceId'],
|
|
77
|
+
'userId': value['userId'],
|
|
78
|
+
'customUserId': value['customUserId'],
|
|
79
|
+
'summary': value['summary'],
|
|
80
|
+
'init': value['init'],
|
|
81
|
+
'messages': (value['messages'].map(ChatMessageUio_1.ChatMessageUioToJSON)),
|
|
82
|
+
'createdAt': value['createdAt'],
|
|
83
|
+
'updatedAt': value['updatedAt'],
|
|
84
|
+
'context': (0, ChatContextUio_1.ChatContextUioToJSON)(value['context']),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 type { FileStatusUio } from './FileStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ChunkContentCreateUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ChunkContentCreateUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ChunkContentCreateUio
|
|
23
|
+
*/
|
|
24
|
+
postURL: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {{ [key: string]: any; }}
|
|
28
|
+
* @memberof ChunkContentCreateUio
|
|
29
|
+
*/
|
|
30
|
+
formData: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ChunkContentCreateUio
|
|
37
|
+
*/
|
|
38
|
+
fileName: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof ChunkContentCreateUio
|
|
43
|
+
*/
|
|
44
|
+
contentType: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof ChunkContentCreateUio
|
|
49
|
+
*/
|
|
50
|
+
ext: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof ChunkContentCreateUio
|
|
55
|
+
*/
|
|
56
|
+
hash?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof ChunkContentCreateUio
|
|
61
|
+
*/
|
|
62
|
+
size: number;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {FileStatusUio}
|
|
66
|
+
* @memberof ChunkContentCreateUio
|
|
67
|
+
*/
|
|
68
|
+
status: FileStatusUio;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the ChunkContentCreateUio interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfChunkContentCreateUio(value: object): value is ChunkContentCreateUio;
|
|
74
|
+
export declare function ChunkContentCreateUioFromJSON(json: any): ChunkContentCreateUio;
|
|
75
|
+
export declare function ChunkContentCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkContentCreateUio;
|
|
76
|
+
export declare function ChunkContentCreateUioToJSON(json: any): ChunkContentCreateUio;
|
|
77
|
+
export declare function ChunkContentCreateUioToJSONTyped(value?: ChunkContentCreateUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfChunkContentCreateUio = instanceOfChunkContentCreateUio;
|
|
17
|
+
exports.ChunkContentCreateUioFromJSON = ChunkContentCreateUioFromJSON;
|
|
18
|
+
exports.ChunkContentCreateUioFromJSONTyped = ChunkContentCreateUioFromJSONTyped;
|
|
19
|
+
exports.ChunkContentCreateUioToJSON = ChunkContentCreateUioToJSON;
|
|
20
|
+
exports.ChunkContentCreateUioToJSONTyped = ChunkContentCreateUioToJSONTyped;
|
|
21
|
+
const FileStatusUio_1 = require("./FileStatusUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ChunkContentCreateUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfChunkContentCreateUio(value) {
|
|
26
|
+
if (!('postURL' in value) || value['postURL'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('formData' in value) || value['formData'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('ext' in value) || value['ext'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('size' in value) || value['size'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ChunkContentCreateUioFromJSON(json) {
|
|
43
|
+
return ChunkContentCreateUioFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ChunkContentCreateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'postURL': json['postURL'],
|
|
51
|
+
'formData': json['formData'],
|
|
52
|
+
'fileName': json['fileName'],
|
|
53
|
+
'contentType': json['contentType'],
|
|
54
|
+
'ext': json['ext'],
|
|
55
|
+
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
56
|
+
'size': json['size'],
|
|
57
|
+
'status': (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ChunkContentCreateUioToJSON(json) {
|
|
61
|
+
return ChunkContentCreateUioToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ChunkContentCreateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'postURL': value['postURL'],
|
|
69
|
+
'formData': value['formData'],
|
|
70
|
+
'fileName': value['fileName'],
|
|
71
|
+
'contentType': value['contentType'],
|
|
72
|
+
'ext': value['ext'],
|
|
73
|
+
'hash': value['hash'],
|
|
74
|
+
'size': value['size'],
|
|
75
|
+
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 type { FileStatusUio } from './FileStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ChunkContentUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ChunkContentUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ChunkContentUio
|
|
23
|
+
*/
|
|
24
|
+
fileName: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ChunkContentUio
|
|
29
|
+
*/
|
|
30
|
+
contentType: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ChunkContentUio
|
|
35
|
+
*/
|
|
36
|
+
ext: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ChunkContentUio
|
|
41
|
+
*/
|
|
42
|
+
hash?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ChunkContentUio
|
|
47
|
+
*/
|
|
48
|
+
size: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {FileStatusUio}
|
|
52
|
+
* @memberof ChunkContentUio
|
|
53
|
+
*/
|
|
54
|
+
status: FileStatusUio;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ChunkContentUio
|
|
59
|
+
*/
|
|
60
|
+
downloadURL?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ChunkContentUio interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfChunkContentUio(value: object): value is ChunkContentUio;
|
|
66
|
+
export declare function ChunkContentUioFromJSON(json: any): ChunkContentUio;
|
|
67
|
+
export declare function ChunkContentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkContentUio;
|
|
68
|
+
export declare function ChunkContentUioToJSON(json: any): ChunkContentUio;
|
|
69
|
+
export declare function ChunkContentUioToJSONTyped(value?: ChunkContentUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfChunkContentUio = instanceOfChunkContentUio;
|
|
17
|
+
exports.ChunkContentUioFromJSON = ChunkContentUioFromJSON;
|
|
18
|
+
exports.ChunkContentUioFromJSONTyped = ChunkContentUioFromJSONTyped;
|
|
19
|
+
exports.ChunkContentUioToJSON = ChunkContentUioToJSON;
|
|
20
|
+
exports.ChunkContentUioToJSONTyped = ChunkContentUioToJSONTyped;
|
|
21
|
+
const FileStatusUio_1 = require("./FileStatusUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ChunkContentUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfChunkContentUio(value) {
|
|
26
|
+
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('ext' in value) || value['ext'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('size' in value) || value['size'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ChunkContentUioFromJSON(json) {
|
|
39
|
+
return ChunkContentUioFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ChunkContentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'fileName': json['fileName'],
|
|
47
|
+
'contentType': json['contentType'],
|
|
48
|
+
'ext': json['ext'],
|
|
49
|
+
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
50
|
+
'size': json['size'],
|
|
51
|
+
'status': (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
52
|
+
'downloadURL': json['downloadURL'] == null ? undefined : json['downloadURL'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ChunkContentUioToJSON(json) {
|
|
56
|
+
return ChunkContentUioToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ChunkContentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'fileName': value['fileName'],
|
|
64
|
+
'contentType': value['contentType'],
|
|
65
|
+
'ext': value['ext'],
|
|
66
|
+
'hash': value['hash'],
|
|
67
|
+
'size': value['size'],
|
|
68
|
+
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
69
|
+
'downloadURL': value['downloadURL'],
|
|
70
|
+
};
|
|
71
|
+
}
|