@breign/client 1.0.3 → 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 +6664 -680
- package/package.json +6 -3
- package/dist/apis/BrainApi.d.ts +0 -290
- package/dist/apis/BrainApi.js +0 -637
- 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,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 healthGetRaw(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 healthGet(initOverrides) {
|
|
79
|
+
const response = await this.healthGetRaw(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, GuardianExcludedAgentsRequestUio, GuardianPutRequestUio, GuardianUio } from '../models/index';
|
|
14
|
+
export interface AgentsAgentIdGuardiansGetRequest {
|
|
15
|
+
agentId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface AgentsAgentIdGuardiansPostRequest {
|
|
18
|
+
agentId: string;
|
|
19
|
+
guardianCreateRequestUio: GuardianCreateRequestUio;
|
|
20
|
+
}
|
|
21
|
+
export interface GuardiansGuardianIdDeleteRequest {
|
|
22
|
+
guardianId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GuardiansGuardianIdExcludedAgentsPutRequest {
|
|
25
|
+
guardianId: string;
|
|
26
|
+
guardianExcludedAgentsRequestUio: GuardianExcludedAgentsRequestUio;
|
|
27
|
+
}
|
|
28
|
+
export interface GuardiansGuardianIdGetRequest {
|
|
29
|
+
guardianId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GuardiansGuardianIdPutRequest {
|
|
32
|
+
guardianId: string;
|
|
33
|
+
guardianPutRequestUio: GuardianPutRequestUio;
|
|
34
|
+
}
|
|
35
|
+
export interface OrganizationsOrganizationIdGuardiansGetRequest {
|
|
36
|
+
organizationId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface OrganizationsOrganizationIdGuardiansPostRequest {
|
|
39
|
+
organizationId: string;
|
|
40
|
+
guardianCreateRequestUio: GuardianCreateRequestUio;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
export declare class GuardiansApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Get all guardians for a specific agent
|
|
48
|
+
*/
|
|
49
|
+
agentsAgentIdGuardiansGetRaw(requestParameters: AgentsAgentIdGuardiansGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GuardianUio>>>;
|
|
50
|
+
/**
|
|
51
|
+
* Get all guardians for a specific agent
|
|
52
|
+
*/
|
|
53
|
+
agentsAgentIdGuardiansGet(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GuardianUio>>;
|
|
54
|
+
/**
|
|
55
|
+
* Creates a new guardian for content moderation
|
|
56
|
+
* Create a new guardian for an agent
|
|
57
|
+
*/
|
|
58
|
+
agentsAgentIdGuardiansPostRaw(requestParameters: AgentsAgentIdGuardiansPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
59
|
+
/**
|
|
60
|
+
* Creates a new guardian for content moderation
|
|
61
|
+
* Create a new guardian for an agent
|
|
62
|
+
*/
|
|
63
|
+
agentsAgentIdGuardiansPost(agentId: string, guardianCreateRequestUio: GuardianCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
64
|
+
/**
|
|
65
|
+
* Deletes a guardian by ID
|
|
66
|
+
* Delete a guardian
|
|
67
|
+
*/
|
|
68
|
+
guardiansGuardianIdDeleteRaw(requestParameters: GuardiansGuardianIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
69
|
+
/**
|
|
70
|
+
* Deletes a guardian by ID
|
|
71
|
+
* Delete a guardian
|
|
72
|
+
*/
|
|
73
|
+
guardiansGuardianIdDelete(guardianId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Updates the excluded agents for a guardian
|
|
76
|
+
* Update excluded agents for a guardian
|
|
77
|
+
*/
|
|
78
|
+
guardiansGuardianIdExcludedAgentsPutRaw(requestParameters: GuardiansGuardianIdExcludedAgentsPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
79
|
+
/**
|
|
80
|
+
* Updates the excluded agents for a guardian
|
|
81
|
+
* Update excluded agents for a guardian
|
|
82
|
+
*/
|
|
83
|
+
guardiansGuardianIdExcludedAgentsPut(guardianId: string, guardianExcludedAgentsRequestUio: GuardianExcludedAgentsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
84
|
+
/**
|
|
85
|
+
* Get a specific guardian by ID
|
|
86
|
+
*/
|
|
87
|
+
guardiansGuardianIdGetRaw(requestParameters: GuardiansGuardianIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
88
|
+
/**
|
|
89
|
+
* Get a specific guardian by ID
|
|
90
|
+
*/
|
|
91
|
+
guardiansGuardianIdGet(guardianId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
92
|
+
/**
|
|
93
|
+
* Updates an existing guardian\'s configuration
|
|
94
|
+
* Update a guardian
|
|
95
|
+
*/
|
|
96
|
+
guardiansGuardianIdPutRaw(requestParameters: GuardiansGuardianIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
97
|
+
/**
|
|
98
|
+
* Updates an existing guardian\'s configuration
|
|
99
|
+
* Update a guardian
|
|
100
|
+
*/
|
|
101
|
+
guardiansGuardianIdPut(guardianId: string, guardianPutRequestUio: GuardianPutRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardianUio>;
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves all guardians associated with the specified organization
|
|
104
|
+
* Get all guardians for an organization
|
|
105
|
+
*/
|
|
106
|
+
organizationsOrganizationIdGuardiansGetRaw(requestParameters: OrganizationsOrganizationIdGuardiansGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GuardianUio>>>;
|
|
107
|
+
/**
|
|
108
|
+
* Retrieves all guardians associated with the specified organization
|
|
109
|
+
* Get all guardians for an organization
|
|
110
|
+
*/
|
|
111
|
+
organizationsOrganizationIdGuardiansGet(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GuardianUio>>;
|
|
112
|
+
/**
|
|
113
|
+
* Creates a new organisation-level guardian for content moderation
|
|
114
|
+
* Create a new guardian for an organisation
|
|
115
|
+
*/
|
|
116
|
+
organizationsOrganizationIdGuardiansPostRaw(requestParameters: OrganizationsOrganizationIdGuardiansPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardianUio>>;
|
|
117
|
+
/**
|
|
118
|
+
* Creates a new organisation-level guardian for content moderation
|
|
119
|
+
* Create a new guardian for an organisation
|
|
120
|
+
*/
|
|
121
|
+
organizationsOrganizationIdGuardiansPost(organizationId: string, guardianCreateRequestUio: GuardianCreateRequestUio, 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
|
+
* Get all guardians for a specific agent
|
|
58
|
+
*/
|
|
59
|
+
async agentsAgentIdGuardiansGetRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['agentId'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling agentsAgentIdGuardiansGet().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
66
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
67
|
+
}
|
|
68
|
+
const response = await this.request({
|
|
69
|
+
path: `/agents/{agentId}/guardians`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
}, initOverrides);
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GuardianUioFromJSON));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Get all guardians for a specific agent
|
|
78
|
+
*/
|
|
79
|
+
async agentsAgentIdGuardiansGet(agentId, initOverrides) {
|
|
80
|
+
const response = await this.agentsAgentIdGuardiansGetRaw({ agentId: agentId }, initOverrides);
|
|
81
|
+
return await response.value();
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Creates a new guardian for content moderation
|
|
85
|
+
* Create a new guardian for an agent
|
|
86
|
+
*/
|
|
87
|
+
async agentsAgentIdGuardiansPostRaw(requestParameters, initOverrides) {
|
|
88
|
+
if (requestParameters['agentId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling agentsAgentIdGuardiansPost().');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['guardianCreateRequestUio'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('guardianCreateRequestUio', 'Required parameter "guardianCreateRequestUio" was null or undefined when calling agentsAgentIdGuardiansPost().');
|
|
93
|
+
}
|
|
94
|
+
const queryParameters = {};
|
|
95
|
+
const headerParameters = {};
|
|
96
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
98
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
99
|
+
}
|
|
100
|
+
const response = await this.request({
|
|
101
|
+
path: `/agents/{agentId}/guardians`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
102
|
+
method: 'POST',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
body: (0, index_1.GuardianCreateRequestUioToJSON)(requestParameters['guardianCreateRequestUio']),
|
|
106
|
+
}, initOverrides);
|
|
107
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GuardianUioFromJSON)(jsonValue));
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Creates a new guardian for content moderation
|
|
111
|
+
* Create a new guardian for an agent
|
|
112
|
+
*/
|
|
113
|
+
async agentsAgentIdGuardiansPost(agentId, guardianCreateRequestUio, initOverrides) {
|
|
114
|
+
const response = await this.agentsAgentIdGuardiansPostRaw({ agentId: agentId, guardianCreateRequestUio: guardianCreateRequestUio }, initOverrides);
|
|
115
|
+
return await response.value();
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Deletes a guardian by ID
|
|
119
|
+
* Delete a guardian
|
|
120
|
+
*/
|
|
121
|
+
async guardiansGuardianIdDeleteRaw(requestParameters, initOverrides) {
|
|
122
|
+
if (requestParameters['guardianId'] == null) {
|
|
123
|
+
throw new runtime.RequiredError('guardianId', 'Required parameter "guardianId" was null or undefined when calling guardiansGuardianIdDelete().');
|
|
124
|
+
}
|
|
125
|
+
const queryParameters = {};
|
|
126
|
+
const headerParameters = {};
|
|
127
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
128
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
129
|
+
}
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: `/guardians/{guardianId}`.replace(`{${"guardianId"}}`, encodeURIComponent(String(requestParameters['guardianId']))),
|
|
132
|
+
method: 'DELETE',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
}, initOverrides);
|
|
136
|
+
return new runtime.VoidApiResponse(response);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Deletes a guardian by ID
|
|
140
|
+
* Delete a guardian
|
|
141
|
+
*/
|
|
142
|
+
async guardiansGuardianIdDelete(guardianId, initOverrides) {
|
|
143
|
+
await this.guardiansGuardianIdDeleteRaw({ guardianId: guardianId }, initOverrides);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Updates the excluded agents for a guardian
|
|
147
|
+
* Update excluded agents for a guardian
|
|
148
|
+
*/
|
|
149
|
+
async guardiansGuardianIdExcludedAgentsPutRaw(requestParameters, initOverrides) {
|
|
150
|
+
if (requestParameters['guardianId'] == null) {
|
|
151
|
+
throw new runtime.RequiredError('guardianId', 'Required parameter "guardianId" was null or undefined when calling guardiansGuardianIdExcludedAgentsPut().');
|
|
152
|
+
}
|
|
153
|
+
if (requestParameters['guardianExcludedAgentsRequestUio'] == null) {
|
|
154
|
+
throw new runtime.RequiredError('guardianExcludedAgentsRequestUio', 'Required parameter "guardianExcludedAgentsRequestUio" was null or undefined when calling guardiansGuardianIdExcludedAgentsPut().');
|
|
155
|
+
}
|
|
156
|
+
const queryParameters = {};
|
|
157
|
+
const headerParameters = {};
|
|
158
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
159
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
160
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
161
|
+
}
|
|
162
|
+
const response = await this.request({
|
|
163
|
+
path: `/guardians/{guardianId}/excluded-agents`.replace(`{${"guardianId"}}`, encodeURIComponent(String(requestParameters['guardianId']))),
|
|
164
|
+
method: 'PUT',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
body: (0, index_1.GuardianExcludedAgentsRequestUioToJSON)(requestParameters['guardianExcludedAgentsRequestUio']),
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Updates the excluded agents for a guardian
|
|
173
|
+
* Update excluded agents for a guardian
|
|
174
|
+
*/
|
|
175
|
+
async guardiansGuardianIdExcludedAgentsPut(guardianId, guardianExcludedAgentsRequestUio, initOverrides) {
|
|
176
|
+
const response = await this.guardiansGuardianIdExcludedAgentsPutRaw({ guardianId: guardianId, guardianExcludedAgentsRequestUio: guardianExcludedAgentsRequestUio }, initOverrides);
|
|
177
|
+
return await response.value();
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Get a specific guardian by ID
|
|
181
|
+
*/
|
|
182
|
+
async guardiansGuardianIdGetRaw(requestParameters, initOverrides) {
|
|
183
|
+
if (requestParameters['guardianId'] == null) {
|
|
184
|
+
throw new runtime.RequiredError('guardianId', 'Required parameter "guardianId" was null or undefined when calling guardiansGuardianIdGet().');
|
|
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: `/guardians/{guardianId}`.replace(`{${"guardianId"}}`, encodeURIComponent(String(requestParameters['guardianId']))),
|
|
193
|
+
method: 'GET',
|
|
194
|
+
headers: headerParameters,
|
|
195
|
+
query: queryParameters,
|
|
196
|
+
}, initOverrides);
|
|
197
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GuardianUioFromJSON)(jsonValue));
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Get a specific guardian by ID
|
|
201
|
+
*/
|
|
202
|
+
async guardiansGuardianIdGet(guardianId, initOverrides) {
|
|
203
|
+
const response = await this.guardiansGuardianIdGetRaw({ guardianId: guardianId }, initOverrides);
|
|
204
|
+
return await response.value();
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Updates an existing guardian\'s configuration
|
|
208
|
+
* Update a guardian
|
|
209
|
+
*/
|
|
210
|
+
async guardiansGuardianIdPutRaw(requestParameters, initOverrides) {
|
|
211
|
+
if (requestParameters['guardianId'] == null) {
|
|
212
|
+
throw new runtime.RequiredError('guardianId', 'Required parameter "guardianId" was null or undefined when calling guardiansGuardianIdPut().');
|
|
213
|
+
}
|
|
214
|
+
if (requestParameters['guardianPutRequestUio'] == null) {
|
|
215
|
+
throw new runtime.RequiredError('guardianPutRequestUio', 'Required parameter "guardianPutRequestUio" was null or undefined when calling guardiansGuardianIdPut().');
|
|
216
|
+
}
|
|
217
|
+
const queryParameters = {};
|
|
218
|
+
const headerParameters = {};
|
|
219
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
220
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
221
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
222
|
+
}
|
|
223
|
+
const response = await this.request({
|
|
224
|
+
path: `/guardians/{guardianId}`.replace(`{${"guardianId"}}`, encodeURIComponent(String(requestParameters['guardianId']))),
|
|
225
|
+
method: 'PUT',
|
|
226
|
+
headers: headerParameters,
|
|
227
|
+
query: queryParameters,
|
|
228
|
+
body: (0, index_1.GuardianPutRequestUioToJSON)(requestParameters['guardianPutRequestUio']),
|
|
229
|
+
}, initOverrides);
|
|
230
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GuardianUioFromJSON)(jsonValue));
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Updates an existing guardian\'s configuration
|
|
234
|
+
* Update a guardian
|
|
235
|
+
*/
|
|
236
|
+
async guardiansGuardianIdPut(guardianId, guardianPutRequestUio, initOverrides) {
|
|
237
|
+
const response = await this.guardiansGuardianIdPutRaw({ guardianId: guardianId, guardianPutRequestUio: guardianPutRequestUio }, initOverrides);
|
|
238
|
+
return await response.value();
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Retrieves all guardians associated with the specified organization
|
|
242
|
+
* Get all guardians for an organization
|
|
243
|
+
*/
|
|
244
|
+
async organizationsOrganizationIdGuardiansGetRaw(requestParameters, initOverrides) {
|
|
245
|
+
if (requestParameters['organizationId'] == null) {
|
|
246
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdGuardiansGet().');
|
|
247
|
+
}
|
|
248
|
+
const queryParameters = {};
|
|
249
|
+
const headerParameters = {};
|
|
250
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
251
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
252
|
+
}
|
|
253
|
+
const response = await this.request({
|
|
254
|
+
path: `/organizations/{organizationId}/guardians`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
255
|
+
method: 'GET',
|
|
256
|
+
headers: headerParameters,
|
|
257
|
+
query: queryParameters,
|
|
258
|
+
}, initOverrides);
|
|
259
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GuardianUioFromJSON));
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Retrieves all guardians associated with the specified organization
|
|
263
|
+
* Get all guardians for an organization
|
|
264
|
+
*/
|
|
265
|
+
async organizationsOrganizationIdGuardiansGet(organizationId, initOverrides) {
|
|
266
|
+
const response = await this.organizationsOrganizationIdGuardiansGetRaw({ organizationId: organizationId }, initOverrides);
|
|
267
|
+
return await response.value();
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Creates a new organisation-level guardian for content moderation
|
|
271
|
+
* Create a new guardian for an organisation
|
|
272
|
+
*/
|
|
273
|
+
async organizationsOrganizationIdGuardiansPostRaw(requestParameters, initOverrides) {
|
|
274
|
+
if (requestParameters['organizationId'] == null) {
|
|
275
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdGuardiansPost().');
|
|
276
|
+
}
|
|
277
|
+
if (requestParameters['guardianCreateRequestUio'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('guardianCreateRequestUio', 'Required parameter "guardianCreateRequestUio" was null or undefined when calling organizationsOrganizationIdGuardiansPost().');
|
|
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: `/organizations/{organizationId}/guardians`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
288
|
+
method: 'POST',
|
|
289
|
+
headers: headerParameters,
|
|
290
|
+
query: queryParameters,
|
|
291
|
+
body: (0, index_1.GuardianCreateRequestUioToJSON)(requestParameters['guardianCreateRequestUio']),
|
|
292
|
+
}, initOverrides);
|
|
293
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GuardianUioFromJSON)(jsonValue));
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Creates a new organisation-level guardian for content moderation
|
|
297
|
+
* Create a new guardian for an organisation
|
|
298
|
+
*/
|
|
299
|
+
async organizationsOrganizationIdGuardiansPost(organizationId, guardianCreateRequestUio, initOverrides) {
|
|
300
|
+
const response = await this.organizationsOrganizationIdGuardiansPostRaw({ organizationId: organizationId, guardianCreateRequestUio: guardianCreateRequestUio }, initOverrides);
|
|
301
|
+
return await response.value();
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
exports.GuardiansApi = GuardiansApi;
|