@coraxai/api-client 2.313.0
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/.openapi-generator/FILES +287 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/APIKeysApi.d.ts +60 -0
- package/dist/apis/APIKeysApi.js +286 -0
- package/dist/apis/AuthApi.d.ts +28 -0
- package/dist/apis/AuthApi.js +142 -0
- package/dist/apis/CapabilitiesApi.d.ts +296 -0
- package/dist/apis/CapabilitiesApi.js +1447 -0
- package/dist/apis/CapabilityEvaluationsApi.d.ts +225 -0
- package/dist/apis/CapabilityEvaluationsApi.js +1089 -0
- package/dist/apis/CapabilityTypesApi.d.ts +55 -0
- package/dist/apis/CapabilityTypesApi.js +279 -0
- package/dist/apis/ComplianceApi.d.ts +241 -0
- package/dist/apis/ComplianceApi.js +1238 -0
- package/dist/apis/ConversationsApi.d.ts +60 -0
- package/dist/apis/ConversationsApi.js +285 -0
- package/dist/apis/CriterionTypesApi.d.ts +47 -0
- package/dist/apis/CriterionTypesApi.js +221 -0
- package/dist/apis/DefaultApi.d.ts +111 -0
- package/dist/apis/DefaultApi.js +522 -0
- package/dist/apis/EvaluationDatasetsApi.d.ts +161 -0
- package/dist/apis/EvaluationDatasetsApi.js +785 -0
- package/dist/apis/KnowledgeCollectionsApi.d.ts +146 -0
- package/dist/apis/KnowledgeCollectionsApi.js +785 -0
- package/dist/apis/MCPServersApi.d.ts +223 -0
- package/dist/apis/MCPServersApi.js +1023 -0
- package/dist/apis/ModelCatalogApi.d.ts +54 -0
- package/dist/apis/ModelCatalogApi.js +274 -0
- package/dist/apis/ModelDeploymentsApi.d.ts +113 -0
- package/dist/apis/ModelDeploymentsApi.js +555 -0
- package/dist/apis/ModelDiscoveryApi.d.ts +31 -0
- package/dist/apis/ModelDiscoveryApi.js +147 -0
- package/dist/apis/ModelProviderTypesApi.d.ts +73 -0
- package/dist/apis/ModelProviderTypesApi.js +353 -0
- package/dist/apis/ModelProvidersApi.d.ts +139 -0
- package/dist/apis/ModelProvidersApi.js +688 -0
- package/dist/apis/ProjectsApi.d.ts +87 -0
- package/dist/apis/ProjectsApi.js +423 -0
- package/dist/apis/RBACAdminApi.d.ts +100 -0
- package/dist/apis/RBACAdminApi.js +551 -0
- package/dist/apis/index.d.ts +19 -0
- package/dist/apis/index.js +37 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ActualOutput.d.ts +26 -0
- package/dist/models/ActualOutput.js +39 -0
- package/dist/models/AnthropicConfiguration.d.ts +32 -0
- package/dist/models/AnthropicConfiguration.js +51 -0
- package/dist/models/AnthropicProviderValidationRequest.d.ts +46 -0
- package/dist/models/AnthropicProviderValidationRequest.js +63 -0
- package/dist/models/AnthropicProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/AnthropicProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/ApiKey.d.ts +113 -0
- package/dist/models/ApiKey.js +87 -0
- package/dist/models/ApiKeyCreate.d.ts +50 -0
- package/dist/models/ApiKeyCreate.js +57 -0
- package/dist/models/ApplicablePolicyResponse.d.ts +63 -0
- package/dist/models/ApplicablePolicyResponse.js +70 -0
- package/dist/models/AppliedControl.d.ts +38 -0
- package/dist/models/AppliedControl.js +55 -0
- package/dist/models/ApplyControlsResponse.d.ts +39 -0
- package/dist/models/ApplyControlsResponse.js +56 -0
- package/dist/models/ArrayPropertyInput.d.ts +52 -0
- package/dist/models/ArrayPropertyInput.js +67 -0
- package/dist/models/ArrayPropertyOutput.d.ts +52 -0
- package/dist/models/ArrayPropertyOutput.js +67 -0
- package/dist/models/AssetResponse.d.ts +70 -0
- package/dist/models/AssetResponse.js +71 -0
- package/dist/models/AuthMeResponse.d.ts +71 -0
- package/dist/models/AuthMeResponse.js +74 -0
- package/dist/models/AvailableModel.d.ts +50 -0
- package/dist/models/AvailableModel.js +57 -0
- package/dist/models/AzureAiProviderValidationRequest.d.ts +46 -0
- package/dist/models/AzureAiProviderValidationRequest.js +63 -0
- package/dist/models/AzureAiProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/AzureAiProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/AzureConfiguration.d.ts +38 -0
- package/dist/models/AzureConfiguration.js +55 -0
- package/dist/models/AzureProviderValidationRequest.d.ts +46 -0
- package/dist/models/AzureProviderValidationRequest.js +63 -0
- package/dist/models/AzureProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/AzureProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/AzureSpeechProviderValidationRequest.d.ts +46 -0
- package/dist/models/AzureSpeechProviderValidationRequest.js +63 -0
- package/dist/models/AzureSpeechProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/AzureSpeechProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/BadgeResponse.d.ts +39 -0
- package/dist/models/BadgeResponse.js +54 -0
- package/dist/models/BasicProperty.d.ts +48 -0
- package/dist/models/BasicProperty.js +65 -0
- package/dist/models/BedrockConfiguration.d.ts +44 -0
- package/dist/models/BedrockConfiguration.js +59 -0
- package/dist/models/BedrockProviderValidationRequest.d.ts +46 -0
- package/dist/models/BedrockProviderValidationRequest.js +63 -0
- package/dist/models/BedrockProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/BedrockProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/BlobConfig.d.ts +44 -0
- package/dist/models/BlobConfig.js +53 -0
- package/dist/models/BooleanConfigurationField.d.ts +81 -0
- package/dist/models/BooleanConfigurationField.js +76 -0
- package/dist/models/Capability.d.ts +143 -0
- package/dist/models/Capability.js +113 -0
- package/dist/models/Capability1.d.ts +132 -0
- package/dist/models/Capability1.js +105 -0
- package/dist/models/Capability2.d.ts +138 -0
- package/dist/models/Capability2.js +101 -0
- package/dist/models/CapabilityConfig.d.ts +98 -0
- package/dist/models/CapabilityConfig.js +77 -0
- package/dist/models/CapabilityCriterionOperationType.d.ts +26 -0
- package/dist/models/CapabilityCriterionOperationType.js +52 -0
- package/dist/models/CapabilityCriterionType.d.ts +32 -0
- package/dist/models/CapabilityCriterionType.js +58 -0
- package/dist/models/CapabilityEvaluationConfiguration.d.ts +38 -0
- package/dist/models/CapabilityEvaluationConfiguration.js +51 -0
- package/dist/models/CapabilityEvaluationCreate.d.ts +69 -0
- package/dist/models/CapabilityEvaluationCreate.js +70 -0
- package/dist/models/CapabilityEvaluationCriterionCreate.d.ts +47 -0
- package/dist/models/CapabilityEvaluationCriterionCreate.js +58 -0
- package/dist/models/CapabilityEvaluationCriterionRepresentation.d.ts +62 -0
- package/dist/models/CapabilityEvaluationCriterionRepresentation.js +64 -0
- package/dist/models/CapabilityEvaluationCriterionTypeRepresentation.d.ts +75 -0
- package/dist/models/CapabilityEvaluationCriterionTypeRepresentation.js +77 -0
- package/dist/models/CapabilityEvaluationRepresentation.d.ts +114 -0
- package/dist/models/CapabilityEvaluationRepresentation.js +88 -0
- package/dist/models/CapabilityEvaluationUpdate.d.ts +69 -0
- package/dist/models/CapabilityEvaluationUpdate.js +70 -0
- package/dist/models/CapabilityId.d.ts +26 -0
- package/dist/models/CapabilityId.js +39 -0
- package/dist/models/CapabilityId1.d.ts +26 -0
- package/dist/models/CapabilityId1.js +39 -0
- package/dist/models/CapabilityRepresentation.d.ts +173 -0
- package/dist/models/CapabilityRepresentation.js +129 -0
- package/dist/models/CapabilitySetDefaultVersionRequest.d.ts +32 -0
- package/dist/models/CapabilitySetDefaultVersionRequest.js +51 -0
- package/dist/models/CapabilityType.d.ts +29 -0
- package/dist/models/CapabilityType.js +55 -0
- package/dist/models/CapabilityTypeRepresentation.d.ts +67 -0
- package/dist/models/CapabilityTypeRepresentation.js +65 -0
- package/dist/models/CapabilityTypesRepresentation.d.ts +42 -0
- package/dist/models/CapabilityTypesRepresentation.js +56 -0
- package/dist/models/CapabilityVersion.d.ts +86 -0
- package/dist/models/CapabilityVersion.js +86 -0
- package/dist/models/CatalogSource.d.ts +25 -0
- package/dist/models/CatalogSource.js +51 -0
- package/dist/models/CatalogSourceSnapshot.d.ts +52 -0
- package/dist/models/CatalogSourceSnapshot.js +65 -0
- package/dist/models/CatalogStalenessMetadata.d.ts +40 -0
- package/dist/models/CatalogStalenessMetadata.js +61 -0
- package/dist/models/ChatCapability.d.ts +157 -0
- package/dist/models/ChatCapability.js +113 -0
- package/dist/models/ChatCapabilityCreate.d.ts +100 -0
- package/dist/models/ChatCapabilityCreate.js +83 -0
- package/dist/models/ChatCapabilityUpdate.d.ts +106 -0
- package/dist/models/ChatCapabilityUpdate.js +83 -0
- package/dist/models/ChatConversation.d.ts +90 -0
- package/dist/models/ChatConversation.js +88 -0
- package/dist/models/Collection.d.ts +101 -0
- package/dist/models/Collection.js +87 -0
- package/dist/models/CollectionCreate.d.ts +50 -0
- package/dist/models/CollectionCreate.js +57 -0
- package/dist/models/CollectionUpdate.d.ts +50 -0
- package/dist/models/CollectionUpdate.js +57 -0
- package/dist/models/CompletionCapability.d.ts +180 -0
- package/dist/models/CompletionCapability.js +129 -0
- package/dist/models/CompletionCapabilityCreate.d.ts +123 -0
- package/dist/models/CompletionCapabilityCreate.js +100 -0
- package/dist/models/CompletionCapabilityCreateSchemaDefValue.d.ts +39 -0
- package/dist/models/CompletionCapabilityCreateSchemaDefValue.js +76 -0
- package/dist/models/CompletionCapabilitySchemaDefValue.d.ts +39 -0
- package/dist/models/CompletionCapabilitySchemaDefValue.js +76 -0
- package/dist/models/CompletionCapabilityUpdate.d.ts +121 -0
- package/dist/models/CompletionCapabilityUpdate.js +89 -0
- package/dist/models/ComplianceStatus.d.ts +25 -0
- package/dist/models/ComplianceStatus.js +51 -0
- package/dist/models/ComplianceSummary.d.ts +44 -0
- package/dist/models/ComplianceSummary.js +59 -0
- package/dist/models/ConfigurationField.d.ts +42 -0
- package/dist/models/ConfigurationField.js +79 -0
- package/dist/models/ConfigurationFieldOption.d.ts +38 -0
- package/dist/models/ConfigurationFieldOption.js +55 -0
- package/dist/models/ConflictView.d.ts +46 -0
- package/dist/models/ConflictView.js +63 -0
- package/dist/models/ConnectedCapabilityResponse.d.ts +50 -0
- package/dist/models/ConnectedCapabilityResponse.js +63 -0
- package/dist/models/Content.d.ts +26 -0
- package/dist/models/Content.js +39 -0
- package/dist/models/ControlComplianceStatus.d.ts +25 -0
- package/dist/models/ControlComplianceStatus.js +51 -0
- package/dist/models/ControlResult.d.ts +50 -0
- package/dist/models/ControlResult.js +63 -0
- package/dist/models/Data.d.ts +59 -0
- package/dist/models/Data.js +72 -0
- package/dist/models/DataRetention.d.ts +27 -0
- package/dist/models/DataRetention.js +54 -0
- package/dist/models/DefaultModelDeploymentUpdate.d.ts +38 -0
- package/dist/models/DefaultModelDeploymentUpdate.js +51 -0
- package/dist/models/DeploymentCreate.d.ts +44 -0
- package/dist/models/DeploymentCreate.js +59 -0
- package/dist/models/DeploymentHealthResponse.d.ts +53 -0
- package/dist/models/DeploymentHealthResponse.js +64 -0
- package/dist/models/Document.d.ts +139 -0
- package/dist/models/Document.js +97 -0
- package/dist/models/DocumentEmbeddingResponse.d.ts +74 -0
- package/dist/models/DocumentEmbeddingResponse.js +74 -0
- package/dist/models/DryRunRequest.d.ts +45 -0
- package/dist/models/DryRunRequest.js +56 -0
- package/dist/models/DryRunResponse.d.ts +39 -0
- package/dist/models/DryRunResponse.js +56 -0
- package/dist/models/EnumProperty.d.ts +51 -0
- package/dist/models/EnumProperty.js +66 -0
- package/dist/models/EvaluationCriterionExecutionRepresentation.d.ts +61 -0
- package/dist/models/EvaluationCriterionExecutionRepresentation.js +69 -0
- package/dist/models/EvaluationCriterionExecutionResult.d.ts +39 -0
- package/dist/models/EvaluationCriterionExecutionResult.js +54 -0
- package/dist/models/EvaluationDatasetConfigurationBase.d.ts +53 -0
- package/dist/models/EvaluationDatasetConfigurationBase.js +58 -0
- package/dist/models/EvaluationDatasetCreate.d.ts +51 -0
- package/dist/models/EvaluationDatasetCreate.js +60 -0
- package/dist/models/EvaluationDatasetItemCreate.d.ts +48 -0
- package/dist/models/EvaluationDatasetItemCreate.js +57 -0
- package/dist/models/EvaluationDatasetItemRepresentation.d.ts +69 -0
- package/dist/models/EvaluationDatasetItemRepresentation.js +67 -0
- package/dist/models/EvaluationDatasetItemUpdate.d.ts +54 -0
- package/dist/models/EvaluationDatasetItemUpdate.js +61 -0
- package/dist/models/EvaluationDatasetOutputType.d.ts +25 -0
- package/dist/models/EvaluationDatasetOutputType.js +51 -0
- package/dist/models/EvaluationDatasetRepresentation.d.ts +78 -0
- package/dist/models/EvaluationDatasetRepresentation.js +72 -0
- package/dist/models/EvaluationDatasetUpdate.d.ts +57 -0
- package/dist/models/EvaluationDatasetUpdate.js +64 -0
- package/dist/models/EvaluationExecutionConfiguration.d.ts +39 -0
- package/dist/models/EvaluationExecutionConfiguration.js +52 -0
- package/dist/models/EvaluationExecutionCreate.d.ts +39 -0
- package/dist/models/EvaluationExecutionCreate.js +54 -0
- package/dist/models/EvaluationExecutionData.d.ts +56 -0
- package/dist/models/EvaluationExecutionData.js +63 -0
- package/dist/models/EvaluationExecutionMode.d.ts +25 -0
- package/dist/models/EvaluationExecutionMode.js +51 -0
- package/dist/models/EvaluationExecutionProgress.d.ts +50 -0
- package/dist/models/EvaluationExecutionProgress.js +63 -0
- package/dist/models/EvaluationExecutionRepresentation.d.ts +117 -0
- package/dist/models/EvaluationExecutionRepresentation.js +94 -0
- package/dist/models/EvaluationExecutionStatus.d.ts +28 -0
- package/dist/models/EvaluationExecutionStatus.js +54 -0
- package/dist/models/Execution.d.ts +104 -0
- package/dist/models/Execution.js +86 -0
- package/dist/models/ExecutionCallback.d.ts +107 -0
- package/dist/models/ExecutionCallback.js +93 -0
- package/dist/models/ExecutionContext.d.ts +44 -0
- package/dist/models/ExecutionContext.js +57 -0
- package/dist/models/ExecutionCreate.d.ts +44 -0
- package/dist/models/ExecutionCreate.js +53 -0
- package/dist/models/ExecutionResult.d.ts +50 -0
- package/dist/models/ExecutionResult.js +61 -0
- package/dist/models/ExecutionSparse.d.ts +100 -0
- package/dist/models/ExecutionSparse.js +84 -0
- package/dist/models/ExecutionStatus.d.ts +27 -0
- package/dist/models/ExecutionStatus.js +53 -0
- package/dist/models/ExecutionUsage.d.ts +68 -0
- package/dist/models/ExecutionUsage.js +69 -0
- package/dist/models/ExtractionCapability.d.ts +158 -0
- package/dist/models/ExtractionCapability.js +115 -0
- package/dist/models/ExtractionCapabilityCreate.d.ts +101 -0
- package/dist/models/ExtractionCapabilityCreate.js +85 -0
- package/dist/models/ExtractionCapabilityUpdate.d.ts +107 -0
- package/dist/models/ExtractionCapabilityUpdate.js +87 -0
- package/dist/models/Feedback.d.ts +105 -0
- package/dist/models/Feedback.js +91 -0
- package/dist/models/FeedbackCreate.d.ts +45 -0
- package/dist/models/FeedbackCreate.js +56 -0
- package/dist/models/FeedbackSentiment.d.ts +25 -0
- package/dist/models/FeedbackSentiment.js +51 -0
- package/dist/models/FieldProvenanceAny.d.ts +47 -0
- package/dist/models/FieldProvenanceAny.js +58 -0
- package/dist/models/FieldValueFormat.d.ts +24 -0
- package/dist/models/FieldValueFormat.js +50 -0
- package/dist/models/FileListPage.d.ts +50 -0
- package/dist/models/FileListPage.js +63 -0
- package/dist/models/FileListResponse.d.ts +40 -0
- package/dist/models/FileListResponse.js +57 -0
- package/dist/models/FileResponse.d.ts +62 -0
- package/dist/models/FileResponse.js +67 -0
- package/dist/models/GeminiProviderValidationRequest.d.ts +46 -0
- package/dist/models/GeminiProviderValidationRequest.js +63 -0
- package/dist/models/GeminiProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/GeminiProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/GuardrailEventListResponse.d.ts +51 -0
- package/dist/models/GuardrailEventListResponse.js +64 -0
- package/dist/models/GuardrailEventResponse.d.ts +104 -0
- package/dist/models/GuardrailEventResponse.js +97 -0
- package/dist/models/GuardrailRow.d.ts +72 -0
- package/dist/models/GuardrailRow.js +68 -0
- package/dist/models/HTTPValidationError.d.ts +33 -0
- package/dist/models/HTTPValidationError.js +50 -0
- package/dist/models/HateoasLink.d.ts +39 -0
- package/dist/models/HateoasLink.js +54 -0
- package/dist/models/ImageGenerationCapability.d.ts +164 -0
- package/dist/models/ImageGenerationCapability.js +117 -0
- package/dist/models/ImageGenerationCapabilityCreate.d.ts +101 -0
- package/dist/models/ImageGenerationCapabilityCreate.js +83 -0
- package/dist/models/ImageGenerationCapabilityUpdate.d.ts +107 -0
- package/dist/models/ImageGenerationCapabilityUpdate.js +87 -0
- package/dist/models/InfiniteDataRetention.d.ts +39 -0
- package/dist/models/InfiniteDataRetention.js +56 -0
- package/dist/models/Input.d.ts +26 -0
- package/dist/models/Input.js +39 -0
- package/dist/models/InputAnyOfInner.d.ts +56 -0
- package/dist/models/InputAnyOfInner.js +59 -0
- package/dist/models/Items.d.ts +39 -0
- package/dist/models/Items.js +76 -0
- package/dist/models/Items1.d.ts +39 -0
- package/dist/models/Items1.js +76 -0
- package/dist/models/KeyConfigurationField.d.ts +88 -0
- package/dist/models/KeyConfigurationField.js +79 -0
- package/dist/models/Limits.d.ts +39 -0
- package/dist/models/Limits.js +56 -0
- package/dist/models/MCPAuthModeSchema.d.ts +57 -0
- package/dist/models/MCPAuthModeSchema.js +62 -0
- package/dist/models/MCPAuthSchema.d.ts +39 -0
- package/dist/models/MCPAuthSchema.js +54 -0
- package/dist/models/MCPConfigSchemaResponse.d.ts +50 -0
- package/dist/models/MCPConfigSchemaResponse.js +57 -0
- package/dist/models/MCPConnectionType.d.ts +25 -0
- package/dist/models/MCPConnectionType.js +51 -0
- package/dist/models/MCPResourceReadRequest.d.ts +32 -0
- package/dist/models/MCPResourceReadRequest.js +51 -0
- package/dist/models/MCPResourceReadResponse.d.ts +32 -0
- package/dist/models/MCPResourceReadResponse.js +51 -0
- package/dist/models/MCPServerBase.d.ts +59 -0
- package/dist/models/MCPServerBase.js +62 -0
- package/dist/models/MCPServerResponse.d.ts +86 -0
- package/dist/models/MCPServerResponse.js +78 -0
- package/dist/models/MCPToolCallRequest.d.ts +40 -0
- package/dist/models/MCPToolCallRequest.js +53 -0
- package/dist/models/MCPToolCallResponse.d.ts +54 -0
- package/dist/models/MCPToolCallResponse.js +55 -0
- package/dist/models/MLLMImage.d.ts +56 -0
- package/dist/models/MLLMImage.js +59 -0
- package/dist/models/Message.d.ts +90 -0
- package/dist/models/Message.js +77 -0
- package/dist/models/MetricData.d.ts +86 -0
- package/dist/models/MetricData.js +73 -0
- package/dist/models/MistralProviderValidationRequest.d.ts +46 -0
- package/dist/models/MistralProviderValidationRequest.js +63 -0
- package/dist/models/MistralProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/MistralProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/Modality.d.ts +27 -0
- package/dist/models/Modality.js +53 -0
- package/dist/models/ModalitySupport.d.ts +40 -0
- package/dist/models/ModalitySupport.js +61 -0
- package/dist/models/ModelCapability.d.ts +41 -0
- package/dist/models/ModelCapability.js +67 -0
- package/dist/models/ModelCatalogEntry.d.ts +146 -0
- package/dist/models/ModelCatalogEntry.js +92 -0
- package/dist/models/ModelCatalogEntryResponse.d.ts +41 -0
- package/dist/models/ModelCatalogEntryResponse.js +62 -0
- package/dist/models/ModelCatalogListResponse.d.ts +41 -0
- package/dist/models/ModelCatalogListResponse.js +62 -0
- package/dist/models/ModelConfiguration.d.ts +42 -0
- package/dist/models/ModelConfiguration.js +56 -0
- package/dist/models/ModelDeployment.d.ts +104 -0
- package/dist/models/ModelDeployment.js +86 -0
- package/dist/models/ModelDeploymentCreate.d.ts +65 -0
- package/dist/models/ModelDeploymentCreate.js +66 -0
- package/dist/models/ModelDeploymentUpdate.d.ts +65 -0
- package/dist/models/ModelDeploymentUpdate.js +66 -0
- package/dist/models/ModelHTTPMethod.d.ts +37 -0
- package/dist/models/ModelHTTPMethod.js +63 -0
- package/dist/models/ModelMode.d.ts +41 -0
- package/dist/models/ModelMode.js +67 -0
- package/dist/models/ModelProvider.d.ts +85 -0
- package/dist/models/ModelProvider.js +79 -0
- package/dist/models/ModelProviderCreate.d.ts +46 -0
- package/dist/models/ModelProviderCreate.js +59 -0
- package/dist/models/ModelProviderType.d.ts +72 -0
- package/dist/models/ModelProviderType.js +72 -0
- package/dist/models/ModelProviderUpdate.d.ts +52 -0
- package/dist/models/ModelProviderUpdate.js +63 -0
- package/dist/models/MultiSelectConfigurationField.d.ts +88 -0
- package/dist/models/MultiSelectConfigurationField.js +81 -0
- package/dist/models/NumberConfigurationField.d.ts +99 -0
- package/dist/models/NumberConfigurationField.js +88 -0
- package/dist/models/ObjectPropertyInput.d.ts +54 -0
- package/dist/models/ObjectPropertyInput.js +68 -0
- package/dist/models/ObjectPropertyOutput.d.ts +54 -0
- package/dist/models/ObjectPropertyOutput.js +68 -0
- package/dist/models/OllamaConfiguration.d.ts +32 -0
- package/dist/models/OllamaConfiguration.js +49 -0
- package/dist/models/OllamaProviderValidationRequest.d.ts +46 -0
- package/dist/models/OllamaProviderValidationRequest.js +63 -0
- package/dist/models/OllamaProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/OllamaProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/OpenAIConfiguration.d.ts +32 -0
- package/dist/models/OpenAIConfiguration.js +51 -0
- package/dist/models/OpenAILikeConfiguration.d.ts +38 -0
- package/dist/models/OpenAILikeConfiguration.js +53 -0
- package/dist/models/OpenAILikeProviderValidationRequest.d.ts +46 -0
- package/dist/models/OpenAILikeProviderValidationRequest.js +63 -0
- package/dist/models/OpenAILikeProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/OpenAILikeProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/OpenAIProviderValidationRequest.d.ts +46 -0
- package/dist/models/OpenAIProviderValidationRequest.js +63 -0
- package/dist/models/OpenAIProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/OpenAIProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/OpenRouterProviderValidationRequest.d.ts +46 -0
- package/dist/models/OpenRouterProviderValidationRequest.js +63 -0
- package/dist/models/OpenRouterProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/OpenRouterProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/Page.d.ts +50 -0
- package/dist/models/Page.js +63 -0
- package/dist/models/PagedResponseModelApiKey.d.ts +49 -0
- package/dist/models/PagedResponseModelApiKey.js +61 -0
- package/dist/models/PagedResponseModelCapability.d.ts +49 -0
- package/dist/models/PagedResponseModelCapability.js +61 -0
- package/dist/models/PagedResponseModelCapabilityEvaluationCriterionRepresentation.d.ts +49 -0
- package/dist/models/PagedResponseModelCapabilityEvaluationCriterionRepresentation.js +61 -0
- package/dist/models/PagedResponseModelCapabilityEvaluationCriterionTypeRepresentation.d.ts +49 -0
- package/dist/models/PagedResponseModelCapabilityEvaluationCriterionTypeRepresentation.js +61 -0
- package/dist/models/PagedResponseModelCapabilityEvaluationRepresentation.d.ts +49 -0
- package/dist/models/PagedResponseModelCapabilityEvaluationRepresentation.js +61 -0
- package/dist/models/PagedResponseModelCapabilityVersion.d.ts +49 -0
- package/dist/models/PagedResponseModelCapabilityVersion.js +61 -0
- package/dist/models/PagedResponseModelChatConversation.d.ts +49 -0
- package/dist/models/PagedResponseModelChatConversation.js +61 -0
- package/dist/models/PagedResponseModelCollection.d.ts +49 -0
- package/dist/models/PagedResponseModelCollection.js +61 -0
- package/dist/models/PagedResponseModelDocument.d.ts +49 -0
- package/dist/models/PagedResponseModelDocument.js +61 -0
- package/dist/models/PagedResponseModelEvaluationCriterionExecutionRepresentation.d.ts +49 -0
- package/dist/models/PagedResponseModelEvaluationCriterionExecutionRepresentation.js +61 -0
- package/dist/models/PagedResponseModelEvaluationDatasetItemRepresentation.d.ts +49 -0
- package/dist/models/PagedResponseModelEvaluationDatasetItemRepresentation.js +61 -0
- package/dist/models/PagedResponseModelEvaluationDatasetRepresentation.d.ts +49 -0
- package/dist/models/PagedResponseModelEvaluationDatasetRepresentation.js +61 -0
- package/dist/models/PagedResponseModelEvaluationExecutionRepresentation.d.ts +49 -0
- package/dist/models/PagedResponseModelEvaluationExecutionRepresentation.js +61 -0
- package/dist/models/PagedResponseModelExecutionSparse.d.ts +49 -0
- package/dist/models/PagedResponseModelExecutionSparse.js +61 -0
- package/dist/models/PagedResponseModelFeedback.d.ts +49 -0
- package/dist/models/PagedResponseModelFeedback.js +61 -0
- package/dist/models/PagedResponseModelMCPServerResponse.d.ts +49 -0
- package/dist/models/PagedResponseModelMCPServerResponse.js +61 -0
- package/dist/models/PagedResponseModelModelDeployment.d.ts +49 -0
- package/dist/models/PagedResponseModelModelDeployment.js +61 -0
- package/dist/models/PagedResponseModelModelProvider.d.ts +49 -0
- package/dist/models/PagedResponseModelModelProvider.js +61 -0
- package/dist/models/PagedResponseModelModelProviderType.d.ts +49 -0
- package/dist/models/PagedResponseModelModelProviderType.js +61 -0
- package/dist/models/PagedResponseModelProject.d.ts +49 -0
- package/dist/models/PagedResponseModelProject.js +61 -0
- package/dist/models/PagedResponseModelRole.d.ts +49 -0
- package/dist/models/PagedResponseModelRole.js +61 -0
- package/dist/models/PagedResponseModelUserRBAC.d.ts +49 -0
- package/dist/models/PagedResponseModelUserRBAC.js +61 -0
- package/dist/models/Permission.d.ts +45 -0
- package/dist/models/Permission.js +71 -0
- package/dist/models/PermissionItem.d.ts +44 -0
- package/dist/models/PermissionItem.js +59 -0
- package/dist/models/PiiDetectionDirectionRequirement.d.ts +34 -0
- package/dist/models/PiiDetectionDirectionRequirement.js +59 -0
- package/dist/models/PiiDetectionRequirementInput.d.ts +47 -0
- package/dist/models/PiiDetectionRequirementInput.js +62 -0
- package/dist/models/PiiDetectionRequirementOutput.d.ts +47 -0
- package/dist/models/PiiDetectionRequirementOutput.js +62 -0
- package/dist/models/PiiEnforcementMode.d.ts +26 -0
- package/dist/models/PiiEnforcementMode.js +52 -0
- package/dist/models/PiiEntityCode.d.ts +30 -0
- package/dist/models/PiiEntityCode.js +56 -0
- package/dist/models/PolicyComplianceResult.d.ts +51 -0
- package/dist/models/PolicyComplianceResult.js +64 -0
- package/dist/models/PolicyControlsInput.d.ts +34 -0
- package/dist/models/PolicyControlsInput.js +59 -0
- package/dist/models/PolicyControlsOutput.d.ts +34 -0
- package/dist/models/PolicyControlsOutput.js +59 -0
- package/dist/models/PolicyCreate.d.ts +70 -0
- package/dist/models/PolicyCreate.js +69 -0
- package/dist/models/PolicyImpactResponse.d.ts +38 -0
- package/dist/models/PolicyImpactResponse.js +55 -0
- package/dist/models/PolicyResponse.d.ts +116 -0
- package/dist/models/PolicyResponse.js +98 -0
- package/dist/models/PolicyScopeType.d.ts +26 -0
- package/dist/models/PolicyScopeType.js +52 -0
- package/dist/models/PolicyUpdate.d.ts +70 -0
- package/dist/models/PolicyUpdate.js +63 -0
- package/dist/models/Price.d.ts +51 -0
- package/dist/models/Price.js +56 -0
- package/dist/models/Project.d.ts +101 -0
- package/dist/models/Project.js +87 -0
- package/dist/models/ProjectCreate.d.ts +44 -0
- package/dist/models/ProjectCreate.js +55 -0
- package/dist/models/ProjectUpdate.d.ts +44 -0
- package/dist/models/ProjectUpdate.js +55 -0
- package/dist/models/ProviderHealthResponse.d.ts +58 -0
- package/dist/models/ProviderHealthResponse.js +64 -0
- package/dist/models/ProviderListResponse.d.ts +41 -0
- package/dist/models/ProviderListResponse.js +62 -0
- package/dist/models/ProviderSummary.d.ts +45 -0
- package/dist/models/ProviderSummary.js +62 -0
- package/dist/models/ProviderValidationResponse.d.ts +51 -0
- package/dist/models/ProviderValidationResponse.js +58 -0
- package/dist/models/RawIds.d.ts +39 -0
- package/dist/models/RawIds.js +56 -0
- package/dist/models/RemoveControlsResponse.d.ts +39 -0
- package/dist/models/RemoveControlsResponse.js +56 -0
- package/dist/models/RemovedControl.d.ts +38 -0
- package/dist/models/RemovedControl.js +55 -0
- package/dist/models/Request.d.ts +46 -0
- package/dist/models/Request.js +63 -0
- package/dist/models/ResponseCreateCapabilityV1CapabilitiesPost.d.ts +189 -0
- package/dist/models/ResponseCreateCapabilityV1CapabilitiesPost.js +134 -0
- package/dist/models/Role.d.ts +90 -0
- package/dist/models/Role.js +82 -0
- package/dist/models/RoleCreate.d.ts +45 -0
- package/dist/models/RoleCreate.js +56 -0
- package/dist/models/RoleUpdate.d.ts +45 -0
- package/dist/models/RoleUpdate.js +56 -0
- package/dist/models/ScanCategory.d.ts +24 -0
- package/dist/models/ScanCategory.js +50 -0
- package/dist/models/ScanDirection.d.ts +25 -0
- package/dist/models/ScanDirection.js +51 -0
- package/dist/models/ScanResult.d.ts +75 -0
- package/dist/models/ScanResult.js +70 -0
- package/dist/models/SourceObservation.d.ts +40 -0
- package/dist/models/SourceObservation.js +61 -0
- package/dist/models/SourceObservationAny.d.ts +40 -0
- package/dist/models/SourceObservationAny.js +61 -0
- package/dist/models/SpeechToTextCapability.d.ts +158 -0
- package/dist/models/SpeechToTextCapability.js +115 -0
- package/dist/models/SpeechToTextCapabilityCreate.d.ts +101 -0
- package/dist/models/SpeechToTextCapabilityCreate.js +85 -0
- package/dist/models/SpeechToTextCapabilityUpdate.d.ts +107 -0
- package/dist/models/SpeechToTextCapabilityUpdate.js +87 -0
- package/dist/models/StreamingTransport.d.ts +25 -0
- package/dist/models/StreamingTransport.js +51 -0
- package/dist/models/StringArrayConfigurationField.d.ts +75 -0
- package/dist/models/StringArrayConfigurationField.js +74 -0
- package/dist/models/TestResult.d.ts +97 -0
- package/dist/models/TestResult.js +80 -0
- package/dist/models/TextConfigurationField.d.ts +87 -0
- package/dist/models/TextConfigurationField.js +78 -0
- package/dist/models/TimedDataRetention.d.ts +45 -0
- package/dist/models/TimedDataRetention.js +60 -0
- package/dist/models/ToolCallFunction.d.ts +44 -0
- package/dist/models/ToolCallFunction.js +57 -0
- package/dist/models/ToolCallMessage.d.ts +45 -0
- package/dist/models/ToolCallMessage.js +60 -0
- package/dist/models/UrlConfigurationField.d.ts +87 -0
- package/dist/models/UrlConfigurationField.js +78 -0
- package/dist/models/UserRBAC.d.ts +102 -0
- package/dist/models/UserRBAC.js +86 -0
- package/dist/models/UserUpdate.d.ts +44 -0
- package/dist/models/UserUpdate.js +53 -0
- package/dist/models/ValidationError.d.ts +57 -0
- package/dist/models/ValidationError.js +64 -0
- package/dist/models/ValidationErrorLocInner.d.ts +26 -0
- package/dist/models/ValidationErrorLocInner.js +39 -0
- package/dist/models/VertexAIConfiguration.d.ts +45 -0
- package/dist/models/VertexAIConfiguration.js +62 -0
- package/dist/models/VertexAiProviderValidationRequest.d.ts +46 -0
- package/dist/models/VertexAiProviderValidationRequest.js +63 -0
- package/dist/models/VertexAiProviderWithDeploymentsCreate.d.ts +59 -0
- package/dist/models/VertexAiProviderWithDeploymentsCreate.js +72 -0
- package/dist/models/index.d.ts +259 -0
- package/dist/models/index.js +277 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +564 -0
- package/package.json +19 -0
- package/src/apis/APIKeysApi.ts +216 -0
- package/src/apis/AuthApi.ts +73 -0
- package/src/apis/CapabilitiesApi.ts +1347 -0
- package/src/apis/CapabilityEvaluationsApi.ts +998 -0
- package/src/apis/CapabilityTypesApi.ts +203 -0
- package/src/apis/ComplianceApi.ts +1068 -0
- package/src/apis/ConversationsApi.ts +211 -0
- package/src/apis/CriterionTypesApi.ts +157 -0
- package/src/apis/DefaultApi.ts +409 -0
- package/src/apis/EvaluationDatasetsApi.ts +695 -0
- package/src/apis/KnowledgeCollectionsApi.ts +684 -0
- package/src/apis/MCPServersApi.ts +860 -0
- package/src/apis/ModelCatalogApi.ts +188 -0
- package/src/apis/ModelDeploymentsApi.ts +453 -0
- package/src/apis/ModelDiscoveryApi.ts +93 -0
- package/src/apis/ModelProviderTypesApi.ts +270 -0
- package/src/apis/ModelProvidersApi.ts +571 -0
- package/src/apis/ProjectsApi.ts +340 -0
- package/src/apis/RBACAdminApi.ts +458 -0
- package/src/apis/index.ts +21 -0
- package/src/index.ts +5 -0
- package/src/models/ActualOutput.ts +54 -0
- package/src/models/AnthropicConfiguration.ts +66 -0
- package/src/models/AnthropicProviderValidationRequest.ts +93 -0
- package/src/models/AnthropicProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/ApiKey.ts +182 -0
- package/src/models/ApiKeyCreate.ts +90 -0
- package/src/models/ApplicablePolicyResponse.ts +120 -0
- package/src/models/AppliedControl.ts +75 -0
- package/src/models/ApplyControlsResponse.ts +83 -0
- package/src/models/ArrayPropertyInput.ts +102 -0
- package/src/models/ArrayPropertyOutput.ts +102 -0
- package/src/models/AssetResponse.ts +134 -0
- package/src/models/AuthMeResponse.ts +120 -0
- package/src/models/AvailableModel.ts +90 -0
- package/src/models/AzureAiProviderValidationRequest.ts +93 -0
- package/src/models/AzureAiProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/AzureConfiguration.ts +75 -0
- package/src/models/AzureProviderValidationRequest.ts +93 -0
- package/src/models/AzureProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/AzureSpeechProviderValidationRequest.ts +93 -0
- package/src/models/AzureSpeechProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/BadgeResponse.ts +84 -0
- package/src/models/BasicProperty.ts +88 -0
- package/src/models/BedrockConfiguration.ts +84 -0
- package/src/models/BedrockProviderValidationRequest.ts +93 -0
- package/src/models/BedrockProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/BlobConfig.ts +81 -0
- package/src/models/BooleanConfigurationField.ts +134 -0
- package/src/models/Capability.ts +231 -0
- package/src/models/Capability1.ts +246 -0
- package/src/models/Capability2.ts +251 -0
- package/src/models/CapabilityConfig.ts +163 -0
- package/src/models/CapabilityCriterionOperationType.ts +54 -0
- package/src/models/CapabilityCriterionType.ts +60 -0
- package/src/models/CapabilityEvaluationConfiguration.ts +73 -0
- package/src/models/CapabilityEvaluationCreate.ts +125 -0
- package/src/models/CapabilityEvaluationCriterionCreate.ts +93 -0
- package/src/models/CapabilityEvaluationCriterionRepresentation.ts +116 -0
- package/src/models/CapabilityEvaluationCriterionTypeRepresentation.ts +156 -0
- package/src/models/CapabilityEvaluationRepresentation.ts +189 -0
- package/src/models/CapabilityEvaluationUpdate.ts +125 -0
- package/src/models/CapabilityId.ts +46 -0
- package/src/models/CapabilityId1.ts +46 -0
- package/src/models/CapabilityRepresentation.ts +267 -0
- package/src/models/CapabilitySetDefaultVersionRequest.ts +66 -0
- package/src/models/CapabilityType.ts +57 -0
- package/src/models/CapabilityTypeRepresentation.ts +115 -0
- package/src/models/CapabilityTypesRepresentation.ts +89 -0
- package/src/models/CapabilityVersion.ts +147 -0
- package/src/models/CatalogSource.ts +53 -0
- package/src/models/CatalogSourceSnapshot.ts +106 -0
- package/src/models/CatalogStalenessMetadata.ts +86 -0
- package/src/models/ChatCapability.ts +250 -0
- package/src/models/ChatCapabilityCreate.ts +166 -0
- package/src/models/ChatCapabilityUpdate.ts +173 -0
- package/src/models/ChatConversation.ts +161 -0
- package/src/models/Collection.ts +168 -0
- package/src/models/CollectionCreate.ts +90 -0
- package/src/models/CollectionUpdate.ts +90 -0
- package/src/models/CompletionCapability.ts +284 -0
- package/src/models/CompletionCapabilityCreate.ts +200 -0
- package/src/models/CompletionCapabilityCreateSchemaDefValue.ts +106 -0
- package/src/models/CompletionCapabilitySchemaDefValue.ts +106 -0
- package/src/models/CompletionCapabilityUpdate.ts +196 -0
- package/src/models/ComplianceStatus.ts +53 -0
- package/src/models/ComplianceSummary.ts +84 -0
- package/src/models/ConfigurationField.ts +127 -0
- package/src/models/ConfigurationFieldOption.ts +75 -0
- package/src/models/ConflictView.ts +95 -0
- package/src/models/ConnectedCapabilityResponse.ts +93 -0
- package/src/models/Content.ts +46 -0
- package/src/models/ControlComplianceStatus.ts +53 -0
- package/src/models/ControlResult.ts +93 -0
- package/src/models/Data.ts +202 -0
- package/src/models/DataRetention.ts +72 -0
- package/src/models/DefaultModelDeploymentUpdate.ts +73 -0
- package/src/models/DeploymentCreate.ts +84 -0
- package/src/models/DeploymentHealthResponse.ts +94 -0
- package/src/models/Document.ts +215 -0
- package/src/models/DocumentEmbeddingResponse.ts +127 -0
- package/src/models/DryRunRequest.ts +90 -0
- package/src/models/DryRunResponse.ts +83 -0
- package/src/models/EnumProperty.ts +94 -0
- package/src/models/EvaluationCriterionExecutionRepresentation.ts +125 -0
- package/src/models/EvaluationCriterionExecutionResult.ts +82 -0
- package/src/models/EvaluationDatasetConfigurationBase.ts +100 -0
- package/src/models/EvaluationDatasetCreate.ts +99 -0
- package/src/models/EvaluationDatasetItemCreate.ts +83 -0
- package/src/models/EvaluationDatasetItemRepresentation.ts +116 -0
- package/src/models/EvaluationDatasetItemUpdate.ts +92 -0
- package/src/models/EvaluationDatasetOutputType.ts +53 -0
- package/src/models/EvaluationDatasetRepresentation.ts +139 -0
- package/src/models/EvaluationDatasetUpdate.ts +108 -0
- package/src/models/EvaluationExecutionConfiguration.ts +83 -0
- package/src/models/EvaluationExecutionCreate.ts +82 -0
- package/src/models/EvaluationExecutionData.ts +100 -0
- package/src/models/EvaluationExecutionMode.ts +53 -0
- package/src/models/EvaluationExecutionProgress.ts +93 -0
- package/src/models/EvaluationExecutionRepresentation.ts +211 -0
- package/src/models/EvaluationExecutionStatus.ts +56 -0
- package/src/models/Execution.ts +176 -0
- package/src/models/ExecutionCallback.ts +172 -0
- package/src/models/ExecutionContext.ts +83 -0
- package/src/models/ExecutionCreate.ts +81 -0
- package/src/models/ExecutionResult.ts +92 -0
- package/src/models/ExecutionSparse.ts +168 -0
- package/src/models/ExecutionStatus.ts +55 -0
- package/src/models/ExecutionUsage.ts +117 -0
- package/src/models/ExtractionCapability.ts +249 -0
- package/src/models/ExtractionCapabilityCreate.ts +165 -0
- package/src/models/ExtractionCapabilityUpdate.ts +173 -0
- package/src/models/Feedback.ts +185 -0
- package/src/models/FeedbackCreate.ts +92 -0
- package/src/models/FeedbackSentiment.ts +53 -0
- package/src/models/FieldProvenanceAny.ts +99 -0
- package/src/models/FieldValueFormat.ts +52 -0
- package/src/models/FileListPage.ts +93 -0
- package/src/models/FileListResponse.ts +90 -0
- package/src/models/FileResponse.ts +109 -0
- package/src/models/GeminiProviderValidationRequest.ts +93 -0
- package/src/models/GeminiProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/GuardrailEventListResponse.ts +101 -0
- package/src/models/GuardrailEventResponse.ts +173 -0
- package/src/models/GuardrailRow.ts +132 -0
- package/src/models/HTTPValidationError.ts +73 -0
- package/src/models/HateoasLink.ts +84 -0
- package/src/models/ImageGenerationCapability.ts +257 -0
- package/src/models/ImageGenerationCapabilityCreate.ts +164 -0
- package/src/models/ImageGenerationCapabilityUpdate.ts +173 -0
- package/src/models/InfiniteDataRetention.ts +75 -0
- package/src/models/Input.ts +54 -0
- package/src/models/InputAnyOfInner.ts +106 -0
- package/src/models/Items.ts +106 -0
- package/src/models/Items1.ts +106 -0
- package/src/models/KeyConfigurationField.ts +150 -0
- package/src/models/Limits.ts +76 -0
- package/src/models/MCPAuthModeSchema.ts +107 -0
- package/src/models/MCPAuthSchema.ts +82 -0
- package/src/models/MCPConfigSchemaResponse.ts +101 -0
- package/src/models/MCPConnectionType.ts +53 -0
- package/src/models/MCPResourceReadRequest.ts +66 -0
- package/src/models/MCPResourceReadResponse.ts +66 -0
- package/src/models/MCPServerBase.ts +109 -0
- package/src/models/MCPServerResponse.ts +151 -0
- package/src/models/MCPToolCallRequest.ts +74 -0
- package/src/models/MCPToolCallResponse.ts +89 -0
- package/src/models/MLLMImage.ts +98 -0
- package/src/models/Message.ts +150 -0
- package/src/models/MetricData.ts +140 -0
- package/src/models/MistralProviderValidationRequest.ts +93 -0
- package/src/models/MistralProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/Modality.ts +55 -0
- package/src/models/ModalitySupport.ts +86 -0
- package/src/models/ModelCapability.ts +69 -0
- package/src/models/ModelCatalogEntry.ts +283 -0
- package/src/models/ModelCatalogEntryResponse.ts +93 -0
- package/src/models/ModelCatalogListResponse.ts +93 -0
- package/src/models/ModelConfiguration.ts +89 -0
- package/src/models/ModelDeployment.ts +174 -0
- package/src/models/ModelDeploymentCreate.ts +116 -0
- package/src/models/ModelDeploymentUpdate.ts +116 -0
- package/src/models/ModelHTTPMethod.ts +65 -0
- package/src/models/ModelMode.ts +69 -0
- package/src/models/ModelProvider.ts +143 -0
- package/src/models/ModelProviderCreate.ts +84 -0
- package/src/models/ModelProviderType.ts +132 -0
- package/src/models/ModelProviderUpdate.ts +93 -0
- package/src/models/MultiSelectConfigurationField.ts +151 -0
- package/src/models/NumberConfigurationField.ts +161 -0
- package/src/models/ObjectPropertyInput.ts +102 -0
- package/src/models/ObjectPropertyOutput.ts +102 -0
- package/src/models/OllamaConfiguration.ts +65 -0
- package/src/models/OllamaProviderValidationRequest.ts +93 -0
- package/src/models/OllamaProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/OpenAIConfiguration.ts +66 -0
- package/src/models/OpenAILikeConfiguration.ts +74 -0
- package/src/models/OpenAILikeProviderValidationRequest.ts +93 -0
- package/src/models/OpenAILikeProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/OpenAIProviderValidationRequest.ts +93 -0
- package/src/models/OpenAIProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/OpenRouterProviderValidationRequest.ts +93 -0
- package/src/models/OpenRouterProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/Page.ts +93 -0
- package/src/models/PagedResponseModelApiKey.ts +105 -0
- package/src/models/PagedResponseModelCapability.ts +105 -0
- package/src/models/PagedResponseModelCapabilityEvaluationCriterionRepresentation.ts +105 -0
- package/src/models/PagedResponseModelCapabilityEvaluationCriterionTypeRepresentation.ts +105 -0
- package/src/models/PagedResponseModelCapabilityEvaluationRepresentation.ts +105 -0
- package/src/models/PagedResponseModelCapabilityVersion.ts +105 -0
- package/src/models/PagedResponseModelChatConversation.ts +105 -0
- package/src/models/PagedResponseModelCollection.ts +105 -0
- package/src/models/PagedResponseModelDocument.ts +105 -0
- package/src/models/PagedResponseModelEvaluationCriterionExecutionRepresentation.ts +105 -0
- package/src/models/PagedResponseModelEvaluationDatasetItemRepresentation.ts +105 -0
- package/src/models/PagedResponseModelEvaluationDatasetRepresentation.ts +105 -0
- package/src/models/PagedResponseModelEvaluationExecutionRepresentation.ts +105 -0
- package/src/models/PagedResponseModelExecutionSparse.ts +105 -0
- package/src/models/PagedResponseModelFeedback.ts +105 -0
- package/src/models/PagedResponseModelMCPServerResponse.ts +105 -0
- package/src/models/PagedResponseModelModelDeployment.ts +105 -0
- package/src/models/PagedResponseModelModelProvider.ts +105 -0
- package/src/models/PagedResponseModelModelProviderType.ts +105 -0
- package/src/models/PagedResponseModelProject.ts +105 -0
- package/src/models/PagedResponseModelRole.ts +105 -0
- package/src/models/PagedResponseModelUserRBAC.ts +105 -0
- package/src/models/Permission.ts +73 -0
- package/src/models/PermissionItem.ts +84 -0
- package/src/models/PiiDetectionDirectionRequirement.ts +79 -0
- package/src/models/PiiDetectionRequirementInput.ts +101 -0
- package/src/models/PiiDetectionRequirementOutput.ts +101 -0
- package/src/models/PiiEnforcementMode.ts +54 -0
- package/src/models/PiiEntityCode.ts +58 -0
- package/src/models/PolicyComplianceResult.ts +101 -0
- package/src/models/PolicyControlsInput.ts +77 -0
- package/src/models/PolicyControlsOutput.ts +77 -0
- package/src/models/PolicyCreate.ts +133 -0
- package/src/models/PolicyImpactResponse.ts +75 -0
- package/src/models/PolicyResponse.ts +209 -0
- package/src/models/PolicyScopeType.ts +54 -0
- package/src/models/PolicyUpdate.ts +130 -0
- package/src/models/Price.ts +92 -0
- package/src/models/Project.ts +168 -0
- package/src/models/ProjectCreate.ts +82 -0
- package/src/models/ProjectUpdate.ts +82 -0
- package/src/models/ProviderHealthResponse.ts +99 -0
- package/src/models/ProviderListResponse.ts +93 -0
- package/src/models/ProviderSummary.ts +87 -0
- package/src/models/ProviderValidationResponse.ts +98 -0
- package/src/models/RawIds.ts +76 -0
- package/src/models/RemoveControlsResponse.ts +83 -0
- package/src/models/RemovedControl.ts +75 -0
- package/src/models/Request.ts +177 -0
- package/src/models/ResponseCreateCapabilityV1CapabilitiesPost.ts +330 -0
- package/src/models/Role.ts +158 -0
- package/src/models/RoleCreate.ts +90 -0
- package/src/models/RoleUpdate.ts +90 -0
- package/src/models/ScanCategory.ts +52 -0
- package/src/models/ScanDirection.ts +53 -0
- package/src/models/ScanResult.ts +134 -0
- package/src/models/SourceObservation.ts +88 -0
- package/src/models/SourceObservationAny.ts +88 -0
- package/src/models/SpeechToTextCapability.ts +249 -0
- package/src/models/SpeechToTextCapabilityCreate.ts +165 -0
- package/src/models/SpeechToTextCapabilityUpdate.ts +173 -0
- package/src/models/StreamingTransport.ts +53 -0
- package/src/models/StringArrayConfigurationField.ts +126 -0
- package/src/models/TestResult.ts +171 -0
- package/src/models/TextConfigurationField.ts +142 -0
- package/src/models/TimedDataRetention.ts +84 -0
- package/src/models/ToolCallFunction.ts +83 -0
- package/src/models/ToolCallMessage.ts +92 -0
- package/src/models/UrlConfigurationField.ts +142 -0
- package/src/models/UserRBAC.ts +174 -0
- package/src/models/UserUpdate.ts +81 -0
- package/src/models/ValidationError.ts +108 -0
- package/src/models/ValidationErrorLocInner.ts +46 -0
- package/src/models/VertexAIConfiguration.ts +87 -0
- package/src/models/VertexAiProviderValidationRequest.ts +93 -0
- package/src/models/VertexAiProviderWithDeploymentsCreate.ts +118 -0
- package/src/models/index.ts +261 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,1238 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Corax API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2.313.0
|
|
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 __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.GetGuardrailsV1ComplianceGuardrailsGetSortOrderEnum = exports.ComplianceApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var ComplianceApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ComplianceApi, _super);
|
|
75
|
+
function ComplianceApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Apply a policy\'s controls to a capability\'s version config.
|
|
80
|
+
* Apply Controls
|
|
81
|
+
*/
|
|
82
|
+
ComplianceApi.prototype.applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPutRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['capabilityId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('capabilityId', 'Required parameter "capabilityId" was null or undefined when calling applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPut().');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['policyId'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPut().');
|
|
93
|
+
}
|
|
94
|
+
queryParameters = {};
|
|
95
|
+
headerParameters = {};
|
|
96
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
97
|
+
_a = headerParameters;
|
|
98
|
+
_b = "X-API-Key";
|
|
99
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
100
|
+
case 1:
|
|
101
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
102
|
+
_c.label = 2;
|
|
103
|
+
case 2:
|
|
104
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
105
|
+
token = this.configuration.accessToken;
|
|
106
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
107
|
+
case 3:
|
|
108
|
+
tokenString = _c.sent();
|
|
109
|
+
if (tokenString) {
|
|
110
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
111
|
+
}
|
|
112
|
+
_c.label = 4;
|
|
113
|
+
case 4:
|
|
114
|
+
urlPath = "/v1/compliance/capabilities/{capability_id}/policies/{policy_id}";
|
|
115
|
+
urlPath = urlPath.replace("{".concat("capability_id", "}"), encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
116
|
+
urlPath = urlPath.replace("{".concat("policy_id", "}"), encodeURIComponent(String(requestParameters['policyId'])));
|
|
117
|
+
return [4 /*yield*/, this.request({
|
|
118
|
+
path: urlPath,
|
|
119
|
+
method: 'PUT',
|
|
120
|
+
headers: headerParameters,
|
|
121
|
+
query: queryParameters,
|
|
122
|
+
}, initOverrides)];
|
|
123
|
+
case 5:
|
|
124
|
+
response = _c.sent();
|
|
125
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApplyControlsResponseFromJSON)(jsonValue); })];
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Apply a policy\'s controls to a capability\'s version config.
|
|
132
|
+
* Apply Controls
|
|
133
|
+
*/
|
|
134
|
+
ComplianceApi.prototype.applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPut = function (requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
136
|
+
var response;
|
|
137
|
+
return __generator(this, function (_a) {
|
|
138
|
+
switch (_a.label) {
|
|
139
|
+
case 0: return [4 /*yield*/, this.applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPutRaw(requestParameters, initOverrides)];
|
|
140
|
+
case 1:
|
|
141
|
+
response = _a.sent();
|
|
142
|
+
return [4 /*yield*/, response.value()];
|
|
143
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Apply a policy\'s controls to all non-compliant capabilities in its scope.
|
|
150
|
+
* Apply Policy To All
|
|
151
|
+
*/
|
|
152
|
+
ComplianceApi.prototype.applyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPostRaw = function (requestParameters, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
154
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
155
|
+
return __generator(this, function (_c) {
|
|
156
|
+
switch (_c.label) {
|
|
157
|
+
case 0:
|
|
158
|
+
if (requestParameters['policyId'] == null) {
|
|
159
|
+
throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling applyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPost().');
|
|
160
|
+
}
|
|
161
|
+
queryParameters = {};
|
|
162
|
+
headerParameters = {};
|
|
163
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
164
|
+
_a = headerParameters;
|
|
165
|
+
_b = "X-API-Key";
|
|
166
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
167
|
+
case 1:
|
|
168
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
169
|
+
_c.label = 2;
|
|
170
|
+
case 2:
|
|
171
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
172
|
+
token = this.configuration.accessToken;
|
|
173
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
174
|
+
case 3:
|
|
175
|
+
tokenString = _c.sent();
|
|
176
|
+
if (tokenString) {
|
|
177
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
178
|
+
}
|
|
179
|
+
_c.label = 4;
|
|
180
|
+
case 4:
|
|
181
|
+
urlPath = "/v1/compliance/policies/{policy_id}/applications";
|
|
182
|
+
urlPath = urlPath.replace("{".concat("policy_id", "}"), encodeURIComponent(String(requestParameters['policyId'])));
|
|
183
|
+
return [4 /*yield*/, this.request({
|
|
184
|
+
path: urlPath,
|
|
185
|
+
method: 'POST',
|
|
186
|
+
headers: headerParameters,
|
|
187
|
+
query: queryParameters,
|
|
188
|
+
}, initOverrides)];
|
|
189
|
+
case 5:
|
|
190
|
+
response = _c.sent();
|
|
191
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
192
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response)];
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
196
|
+
}
|
|
197
|
+
return [2 /*return*/];
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Apply a policy\'s controls to all non-compliant capabilities in its scope.
|
|
204
|
+
* Apply Policy To All
|
|
205
|
+
*/
|
|
206
|
+
ComplianceApi.prototype.applyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPost = function (requestParameters, initOverrides) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
208
|
+
var response;
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
211
|
+
case 0: return [4 /*yield*/, this.applyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPostRaw(requestParameters, initOverrides)];
|
|
212
|
+
case 1:
|
|
213
|
+
response = _a.sent();
|
|
214
|
+
return [4 /*yield*/, response.value()];
|
|
215
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Create Policy
|
|
222
|
+
*/
|
|
223
|
+
ComplianceApi.prototype.createPolicyV1CompliancePoliciesPostRaw = function (requestParameters, initOverrides) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
225
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
226
|
+
return __generator(this, function (_c) {
|
|
227
|
+
switch (_c.label) {
|
|
228
|
+
case 0:
|
|
229
|
+
if (requestParameters['policyCreate'] == null) {
|
|
230
|
+
throw new runtime.RequiredError('policyCreate', 'Required parameter "policyCreate" was null or undefined when calling createPolicyV1CompliancePoliciesPost().');
|
|
231
|
+
}
|
|
232
|
+
queryParameters = {};
|
|
233
|
+
headerParameters = {};
|
|
234
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
235
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
236
|
+
_a = headerParameters;
|
|
237
|
+
_b = "X-API-Key";
|
|
238
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
239
|
+
case 1:
|
|
240
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
241
|
+
_c.label = 2;
|
|
242
|
+
case 2:
|
|
243
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
244
|
+
token = this.configuration.accessToken;
|
|
245
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
246
|
+
case 3:
|
|
247
|
+
tokenString = _c.sent();
|
|
248
|
+
if (tokenString) {
|
|
249
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
250
|
+
}
|
|
251
|
+
_c.label = 4;
|
|
252
|
+
case 4:
|
|
253
|
+
urlPath = "/v1/compliance/policies";
|
|
254
|
+
return [4 /*yield*/, this.request({
|
|
255
|
+
path: urlPath,
|
|
256
|
+
method: 'POST',
|
|
257
|
+
headers: headerParameters,
|
|
258
|
+
query: queryParameters,
|
|
259
|
+
body: (0, index_1.PolicyCreateToJSON)(requestParameters['policyCreate']),
|
|
260
|
+
}, initOverrides)];
|
|
261
|
+
case 5:
|
|
262
|
+
response = _c.sent();
|
|
263
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PolicyResponseFromJSON)(jsonValue); })];
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Create Policy
|
|
270
|
+
*/
|
|
271
|
+
ComplianceApi.prototype.createPolicyV1CompliancePoliciesPost = function (requestParameters, initOverrides) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
273
|
+
var response;
|
|
274
|
+
return __generator(this, function (_a) {
|
|
275
|
+
switch (_a.label) {
|
|
276
|
+
case 0: return [4 /*yield*/, this.createPolicyV1CompliancePoliciesPostRaw(requestParameters, initOverrides)];
|
|
277
|
+
case 1:
|
|
278
|
+
response = _a.sent();
|
|
279
|
+
return [4 /*yield*/, response.value()];
|
|
280
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Delete Policy
|
|
287
|
+
*/
|
|
288
|
+
ComplianceApi.prototype.deletePolicyV1CompliancePoliciesPolicyIdDeleteRaw = function (requestParameters, initOverrides) {
|
|
289
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
290
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
291
|
+
return __generator(this, function (_c) {
|
|
292
|
+
switch (_c.label) {
|
|
293
|
+
case 0:
|
|
294
|
+
if (requestParameters['policyId'] == null) {
|
|
295
|
+
throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling deletePolicyV1CompliancePoliciesPolicyIdDelete().');
|
|
296
|
+
}
|
|
297
|
+
queryParameters = {};
|
|
298
|
+
headerParameters = {};
|
|
299
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
300
|
+
_a = headerParameters;
|
|
301
|
+
_b = "X-API-Key";
|
|
302
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
303
|
+
case 1:
|
|
304
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
305
|
+
_c.label = 2;
|
|
306
|
+
case 2:
|
|
307
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
308
|
+
token = this.configuration.accessToken;
|
|
309
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
310
|
+
case 3:
|
|
311
|
+
tokenString = _c.sent();
|
|
312
|
+
if (tokenString) {
|
|
313
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
314
|
+
}
|
|
315
|
+
_c.label = 4;
|
|
316
|
+
case 4:
|
|
317
|
+
urlPath = "/v1/compliance/policies/{policy_id}";
|
|
318
|
+
urlPath = urlPath.replace("{".concat("policy_id", "}"), encodeURIComponent(String(requestParameters['policyId'])));
|
|
319
|
+
return [4 /*yield*/, this.request({
|
|
320
|
+
path: urlPath,
|
|
321
|
+
method: 'DELETE',
|
|
322
|
+
headers: headerParameters,
|
|
323
|
+
query: queryParameters,
|
|
324
|
+
}, initOverrides)];
|
|
325
|
+
case 5:
|
|
326
|
+
response = _c.sent();
|
|
327
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* Delete Policy
|
|
334
|
+
*/
|
|
335
|
+
ComplianceApi.prototype.deletePolicyV1CompliancePoliciesPolicyIdDelete = function (requestParameters, initOverrides) {
|
|
336
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
337
|
+
return __generator(this, function (_a) {
|
|
338
|
+
switch (_a.label) {
|
|
339
|
+
case 0: return [4 /*yield*/, this.deletePolicyV1CompliancePoliciesPolicyIdDeleteRaw(requestParameters, initOverrides)];
|
|
340
|
+
case 1:
|
|
341
|
+
_a.sent();
|
|
342
|
+
return [2 /*return*/];
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* Test guardrail configuration against sample text without executing or persisting.
|
|
349
|
+
* Dry Run Guardrails
|
|
350
|
+
*/
|
|
351
|
+
ComplianceApi.prototype.dryRunGuardrailsV1ComplianceGuardrailScansPostRaw = function (requestParameters, initOverrides) {
|
|
352
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
353
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
354
|
+
return __generator(this, function (_c) {
|
|
355
|
+
switch (_c.label) {
|
|
356
|
+
case 0:
|
|
357
|
+
if (requestParameters['dryRunRequest'] == null) {
|
|
358
|
+
throw new runtime.RequiredError('dryRunRequest', 'Required parameter "dryRunRequest" was null or undefined when calling dryRunGuardrailsV1ComplianceGuardrailScansPost().');
|
|
359
|
+
}
|
|
360
|
+
queryParameters = {};
|
|
361
|
+
headerParameters = {};
|
|
362
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
363
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
364
|
+
_a = headerParameters;
|
|
365
|
+
_b = "X-API-Key";
|
|
366
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
367
|
+
case 1:
|
|
368
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
369
|
+
_c.label = 2;
|
|
370
|
+
case 2:
|
|
371
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
372
|
+
token = this.configuration.accessToken;
|
|
373
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
374
|
+
case 3:
|
|
375
|
+
tokenString = _c.sent();
|
|
376
|
+
if (tokenString) {
|
|
377
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
378
|
+
}
|
|
379
|
+
_c.label = 4;
|
|
380
|
+
case 4:
|
|
381
|
+
urlPath = "/v1/compliance/guardrail-scans";
|
|
382
|
+
return [4 /*yield*/, this.request({
|
|
383
|
+
path: urlPath,
|
|
384
|
+
method: 'POST',
|
|
385
|
+
headers: headerParameters,
|
|
386
|
+
query: queryParameters,
|
|
387
|
+
body: (0, index_1.DryRunRequestToJSON)(requestParameters['dryRunRequest']),
|
|
388
|
+
}, initOverrides)];
|
|
389
|
+
case 5:
|
|
390
|
+
response = _c.sent();
|
|
391
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DryRunResponseFromJSON)(jsonValue); })];
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Test guardrail configuration against sample text without executing or persisting.
|
|
398
|
+
* Dry Run Guardrails
|
|
399
|
+
*/
|
|
400
|
+
ComplianceApi.prototype.dryRunGuardrailsV1ComplianceGuardrailScansPost = function (requestParameters, initOverrides) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
402
|
+
var response;
|
|
403
|
+
return __generator(this, function (_a) {
|
|
404
|
+
switch (_a.label) {
|
|
405
|
+
case 0: return [4 /*yield*/, this.dryRunGuardrailsV1ComplianceGuardrailScansPostRaw(requestParameters, initOverrides)];
|
|
406
|
+
case 1:
|
|
407
|
+
response = _a.sent();
|
|
408
|
+
return [4 /*yield*/, response.value()];
|
|
409
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Create a copy of an existing policy with a new name, inactive by default.
|
|
416
|
+
* Duplicate Policy
|
|
417
|
+
*/
|
|
418
|
+
ComplianceApi.prototype.duplicatePolicyV1CompliancePoliciesPolicyIdCopiesPostRaw = function (requestParameters, initOverrides) {
|
|
419
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
420
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
421
|
+
return __generator(this, function (_c) {
|
|
422
|
+
switch (_c.label) {
|
|
423
|
+
case 0:
|
|
424
|
+
if (requestParameters['policyId'] == null) {
|
|
425
|
+
throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling duplicatePolicyV1CompliancePoliciesPolicyIdCopiesPost().');
|
|
426
|
+
}
|
|
427
|
+
queryParameters = {};
|
|
428
|
+
headerParameters = {};
|
|
429
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
430
|
+
_a = headerParameters;
|
|
431
|
+
_b = "X-API-Key";
|
|
432
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
433
|
+
case 1:
|
|
434
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
435
|
+
_c.label = 2;
|
|
436
|
+
case 2:
|
|
437
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
438
|
+
token = this.configuration.accessToken;
|
|
439
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
440
|
+
case 3:
|
|
441
|
+
tokenString = _c.sent();
|
|
442
|
+
if (tokenString) {
|
|
443
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
444
|
+
}
|
|
445
|
+
_c.label = 4;
|
|
446
|
+
case 4:
|
|
447
|
+
urlPath = "/v1/compliance/policies/{policy_id}/copies";
|
|
448
|
+
urlPath = urlPath.replace("{".concat("policy_id", "}"), encodeURIComponent(String(requestParameters['policyId'])));
|
|
449
|
+
return [4 /*yield*/, this.request({
|
|
450
|
+
path: urlPath,
|
|
451
|
+
method: 'POST',
|
|
452
|
+
headers: headerParameters,
|
|
453
|
+
query: queryParameters,
|
|
454
|
+
}, initOverrides)];
|
|
455
|
+
case 5:
|
|
456
|
+
response = _c.sent();
|
|
457
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PolicyResponseFromJSON)(jsonValue); })];
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
});
|
|
461
|
+
};
|
|
462
|
+
/**
|
|
463
|
+
* Create a copy of an existing policy with a new name, inactive by default.
|
|
464
|
+
* Duplicate Policy
|
|
465
|
+
*/
|
|
466
|
+
ComplianceApi.prototype.duplicatePolicyV1CompliancePoliciesPolicyIdCopiesPost = function (requestParameters, initOverrides) {
|
|
467
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
468
|
+
var response;
|
|
469
|
+
return __generator(this, function (_a) {
|
|
470
|
+
switch (_a.label) {
|
|
471
|
+
case 0: return [4 /*yield*/, this.duplicatePolicyV1CompliancePoliciesPolicyIdCopiesPostRaw(requestParameters, initOverrides)];
|
|
472
|
+
case 1:
|
|
473
|
+
response = _a.sent();
|
|
474
|
+
return [4 /*yield*/, response.value()];
|
|
475
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
};
|
|
480
|
+
/**
|
|
481
|
+
* List all active policies applicable to this capability with applied status.
|
|
482
|
+
* Get Applicable Policies
|
|
483
|
+
*/
|
|
484
|
+
ComplianceApi.prototype.getApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGetRaw = function (requestParameters, initOverrides) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
486
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
487
|
+
return __generator(this, function (_c) {
|
|
488
|
+
switch (_c.label) {
|
|
489
|
+
case 0:
|
|
490
|
+
if (requestParameters['capabilityId'] == null) {
|
|
491
|
+
throw new runtime.RequiredError('capabilityId', 'Required parameter "capabilityId" was null or undefined when calling getApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGet().');
|
|
492
|
+
}
|
|
493
|
+
queryParameters = {};
|
|
494
|
+
headerParameters = {};
|
|
495
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
496
|
+
_a = headerParameters;
|
|
497
|
+
_b = "X-API-Key";
|
|
498
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
499
|
+
case 1:
|
|
500
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
501
|
+
_c.label = 2;
|
|
502
|
+
case 2:
|
|
503
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
504
|
+
token = this.configuration.accessToken;
|
|
505
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
506
|
+
case 3:
|
|
507
|
+
tokenString = _c.sent();
|
|
508
|
+
if (tokenString) {
|
|
509
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
510
|
+
}
|
|
511
|
+
_c.label = 4;
|
|
512
|
+
case 4:
|
|
513
|
+
urlPath = "/v1/compliance/capabilities/{capability_id}/policies";
|
|
514
|
+
urlPath = urlPath.replace("{".concat("capability_id", "}"), encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
515
|
+
return [4 /*yield*/, this.request({
|
|
516
|
+
path: urlPath,
|
|
517
|
+
method: 'GET',
|
|
518
|
+
headers: headerParameters,
|
|
519
|
+
query: queryParameters,
|
|
520
|
+
}, initOverrides)];
|
|
521
|
+
case 5:
|
|
522
|
+
response = _c.sent();
|
|
523
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ApplicablePolicyResponseFromJSON); })];
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* List all active policies applicable to this capability with applied status.
|
|
530
|
+
* Get Applicable Policies
|
|
531
|
+
*/
|
|
532
|
+
ComplianceApi.prototype.getApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGet = function (requestParameters, initOverrides) {
|
|
533
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
534
|
+
var response;
|
|
535
|
+
return __generator(this, function (_a) {
|
|
536
|
+
switch (_a.label) {
|
|
537
|
+
case 0: return [4 /*yield*/, this.getApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGetRaw(requestParameters, initOverrides)];
|
|
538
|
+
case 1:
|
|
539
|
+
response = _a.sent();
|
|
540
|
+
return [4 /*yield*/, response.value()];
|
|
541
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
});
|
|
545
|
+
};
|
|
546
|
+
/**
|
|
547
|
+
* Get Asset Detail
|
|
548
|
+
*/
|
|
549
|
+
ComplianceApi.prototype.getAssetDetailV1ComplianceAssetsCapabilityIdGetRaw = function (requestParameters, initOverrides) {
|
|
550
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
551
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
552
|
+
return __generator(this, function (_c) {
|
|
553
|
+
switch (_c.label) {
|
|
554
|
+
case 0:
|
|
555
|
+
if (requestParameters['capabilityId'] == null) {
|
|
556
|
+
throw new runtime.RequiredError('capabilityId', 'Required parameter "capabilityId" was null or undefined when calling getAssetDetailV1ComplianceAssetsCapabilityIdGet().');
|
|
557
|
+
}
|
|
558
|
+
queryParameters = {};
|
|
559
|
+
headerParameters = {};
|
|
560
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
561
|
+
_a = headerParameters;
|
|
562
|
+
_b = "X-API-Key";
|
|
563
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
564
|
+
case 1:
|
|
565
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
566
|
+
_c.label = 2;
|
|
567
|
+
case 2:
|
|
568
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
569
|
+
token = this.configuration.accessToken;
|
|
570
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
571
|
+
case 3:
|
|
572
|
+
tokenString = _c.sent();
|
|
573
|
+
if (tokenString) {
|
|
574
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
575
|
+
}
|
|
576
|
+
_c.label = 4;
|
|
577
|
+
case 4:
|
|
578
|
+
urlPath = "/v1/compliance/assets/{capability_id}";
|
|
579
|
+
urlPath = urlPath.replace("{".concat("capability_id", "}"), encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
580
|
+
return [4 /*yield*/, this.request({
|
|
581
|
+
path: urlPath,
|
|
582
|
+
method: 'GET',
|
|
583
|
+
headers: headerParameters,
|
|
584
|
+
query: queryParameters,
|
|
585
|
+
}, initOverrides)];
|
|
586
|
+
case 5:
|
|
587
|
+
response = _c.sent();
|
|
588
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AssetResponseFromJSON)(jsonValue); })];
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
};
|
|
593
|
+
/**
|
|
594
|
+
* Get Asset Detail
|
|
595
|
+
*/
|
|
596
|
+
ComplianceApi.prototype.getAssetDetailV1ComplianceAssetsCapabilityIdGet = function (requestParameters, initOverrides) {
|
|
597
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
598
|
+
var response;
|
|
599
|
+
return __generator(this, function (_a) {
|
|
600
|
+
switch (_a.label) {
|
|
601
|
+
case 0: return [4 /*yield*/, this.getAssetDetailV1ComplianceAssetsCapabilityIdGetRaw(requestParameters, initOverrides)];
|
|
602
|
+
case 1:
|
|
603
|
+
response = _a.sent();
|
|
604
|
+
return [4 /*yield*/, response.value()];
|
|
605
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Lightweight compliance status for capability detail page.
|
|
612
|
+
* Get Compliance Badge
|
|
613
|
+
*/
|
|
614
|
+
ComplianceApi.prototype.getComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGetRaw = function (requestParameters, initOverrides) {
|
|
615
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
616
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
617
|
+
return __generator(this, function (_c) {
|
|
618
|
+
switch (_c.label) {
|
|
619
|
+
case 0:
|
|
620
|
+
if (requestParameters['capabilityId'] == null) {
|
|
621
|
+
throw new runtime.RequiredError('capabilityId', 'Required parameter "capabilityId" was null or undefined when calling getComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGet().');
|
|
622
|
+
}
|
|
623
|
+
queryParameters = {};
|
|
624
|
+
headerParameters = {};
|
|
625
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
626
|
+
_a = headerParameters;
|
|
627
|
+
_b = "X-API-Key";
|
|
628
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
629
|
+
case 1:
|
|
630
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
631
|
+
_c.label = 2;
|
|
632
|
+
case 2:
|
|
633
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
634
|
+
token = this.configuration.accessToken;
|
|
635
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
636
|
+
case 3:
|
|
637
|
+
tokenString = _c.sent();
|
|
638
|
+
if (tokenString) {
|
|
639
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
640
|
+
}
|
|
641
|
+
_c.label = 4;
|
|
642
|
+
case 4:
|
|
643
|
+
urlPath = "/v1/compliance/assets/{capability_id}/badge";
|
|
644
|
+
urlPath = urlPath.replace("{".concat("capability_id", "}"), encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
645
|
+
return [4 /*yield*/, this.request({
|
|
646
|
+
path: urlPath,
|
|
647
|
+
method: 'GET',
|
|
648
|
+
headers: headerParameters,
|
|
649
|
+
query: queryParameters,
|
|
650
|
+
}, initOverrides)];
|
|
651
|
+
case 5:
|
|
652
|
+
response = _c.sent();
|
|
653
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BadgeResponseFromJSON)(jsonValue); })];
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
});
|
|
657
|
+
};
|
|
658
|
+
/**
|
|
659
|
+
* Lightweight compliance status for capability detail page.
|
|
660
|
+
* Get Compliance Badge
|
|
661
|
+
*/
|
|
662
|
+
ComplianceApi.prototype.getComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGet = function (requestParameters, initOverrides) {
|
|
663
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
664
|
+
var response;
|
|
665
|
+
return __generator(this, function (_a) {
|
|
666
|
+
switch (_a.label) {
|
|
667
|
+
case 0: return [4 /*yield*/, this.getComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGetRaw(requestParameters, initOverrides)];
|
|
668
|
+
case 1:
|
|
669
|
+
response = _a.sent();
|
|
670
|
+
return [4 /*yield*/, response.value()];
|
|
671
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
});
|
|
675
|
+
};
|
|
676
|
+
/**
|
|
677
|
+
* Get Guardrails
|
|
678
|
+
*/
|
|
679
|
+
ComplianceApi.prototype.getGuardrailsV1ComplianceGuardrailsGetRaw = function (requestParameters, initOverrides) {
|
|
680
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
681
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
682
|
+
return __generator(this, function (_c) {
|
|
683
|
+
switch (_c.label) {
|
|
684
|
+
case 0:
|
|
685
|
+
queryParameters = {};
|
|
686
|
+
if (requestParameters['projectId'] != null) {
|
|
687
|
+
queryParameters['project_id'] = requestParameters['projectId'];
|
|
688
|
+
}
|
|
689
|
+
if (requestParameters['sortBy'] != null) {
|
|
690
|
+
queryParameters['sort_by'] = requestParameters['sortBy'];
|
|
691
|
+
}
|
|
692
|
+
if (requestParameters['sortOrder'] != null) {
|
|
693
|
+
queryParameters['sort_order'] = requestParameters['sortOrder'];
|
|
694
|
+
}
|
|
695
|
+
headerParameters = {};
|
|
696
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
697
|
+
_a = headerParameters;
|
|
698
|
+
_b = "X-API-Key";
|
|
699
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
700
|
+
case 1:
|
|
701
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
702
|
+
_c.label = 2;
|
|
703
|
+
case 2:
|
|
704
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
705
|
+
token = this.configuration.accessToken;
|
|
706
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
707
|
+
case 3:
|
|
708
|
+
tokenString = _c.sent();
|
|
709
|
+
if (tokenString) {
|
|
710
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
711
|
+
}
|
|
712
|
+
_c.label = 4;
|
|
713
|
+
case 4:
|
|
714
|
+
urlPath = "/v1/compliance/guardrails";
|
|
715
|
+
return [4 /*yield*/, this.request({
|
|
716
|
+
path: urlPath,
|
|
717
|
+
method: 'GET',
|
|
718
|
+
headers: headerParameters,
|
|
719
|
+
query: queryParameters,
|
|
720
|
+
}, initOverrides)];
|
|
721
|
+
case 5:
|
|
722
|
+
response = _c.sent();
|
|
723
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.GuardrailRowFromJSON); })];
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
};
|
|
728
|
+
/**
|
|
729
|
+
* Get Guardrails
|
|
730
|
+
*/
|
|
731
|
+
ComplianceApi.prototype.getGuardrailsV1ComplianceGuardrailsGet = function () {
|
|
732
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
733
|
+
var response;
|
|
734
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
735
|
+
return __generator(this, function (_a) {
|
|
736
|
+
switch (_a.label) {
|
|
737
|
+
case 0: return [4 /*yield*/, this.getGuardrailsV1ComplianceGuardrailsGetRaw(requestParameters, initOverrides)];
|
|
738
|
+
case 1:
|
|
739
|
+
response = _a.sent();
|
|
740
|
+
return [4 /*yield*/, response.value()];
|
|
741
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
});
|
|
745
|
+
};
|
|
746
|
+
/**
|
|
747
|
+
* Preview policy impact: how many assets affected and non-compliant.
|
|
748
|
+
* Get Policy Impact
|
|
749
|
+
*/
|
|
750
|
+
ComplianceApi.prototype.getPolicyImpactV1CompliancePoliciesPolicyIdImpactGetRaw = function (requestParameters, initOverrides) {
|
|
751
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
752
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
753
|
+
return __generator(this, function (_c) {
|
|
754
|
+
switch (_c.label) {
|
|
755
|
+
case 0:
|
|
756
|
+
if (requestParameters['policyId'] == null) {
|
|
757
|
+
throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling getPolicyImpactV1CompliancePoliciesPolicyIdImpactGet().');
|
|
758
|
+
}
|
|
759
|
+
queryParameters = {};
|
|
760
|
+
headerParameters = {};
|
|
761
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
762
|
+
_a = headerParameters;
|
|
763
|
+
_b = "X-API-Key";
|
|
764
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
765
|
+
case 1:
|
|
766
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
767
|
+
_c.label = 2;
|
|
768
|
+
case 2:
|
|
769
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
770
|
+
token = this.configuration.accessToken;
|
|
771
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
772
|
+
case 3:
|
|
773
|
+
tokenString = _c.sent();
|
|
774
|
+
if (tokenString) {
|
|
775
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
776
|
+
}
|
|
777
|
+
_c.label = 4;
|
|
778
|
+
case 4:
|
|
779
|
+
urlPath = "/v1/compliance/policies/{policy_id}/impact";
|
|
780
|
+
urlPath = urlPath.replace("{".concat("policy_id", "}"), encodeURIComponent(String(requestParameters['policyId'])));
|
|
781
|
+
return [4 /*yield*/, this.request({
|
|
782
|
+
path: urlPath,
|
|
783
|
+
method: 'GET',
|
|
784
|
+
headers: headerParameters,
|
|
785
|
+
query: queryParameters,
|
|
786
|
+
}, initOverrides)];
|
|
787
|
+
case 5:
|
|
788
|
+
response = _c.sent();
|
|
789
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PolicyImpactResponseFromJSON)(jsonValue); })];
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
});
|
|
793
|
+
};
|
|
794
|
+
/**
|
|
795
|
+
* Preview policy impact: how many assets affected and non-compliant.
|
|
796
|
+
* Get Policy Impact
|
|
797
|
+
*/
|
|
798
|
+
ComplianceApi.prototype.getPolicyImpactV1CompliancePoliciesPolicyIdImpactGet = function (requestParameters, initOverrides) {
|
|
799
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
800
|
+
var response;
|
|
801
|
+
return __generator(this, function (_a) {
|
|
802
|
+
switch (_a.label) {
|
|
803
|
+
case 0: return [4 /*yield*/, this.getPolicyImpactV1CompliancePoliciesPolicyIdImpactGetRaw(requestParameters, initOverrides)];
|
|
804
|
+
case 1:
|
|
805
|
+
response = _a.sent();
|
|
806
|
+
return [4 /*yield*/, response.value()];
|
|
807
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
});
|
|
811
|
+
};
|
|
812
|
+
/**
|
|
813
|
+
* Get Policy
|
|
814
|
+
*/
|
|
815
|
+
ComplianceApi.prototype.getPolicyV1CompliancePoliciesPolicyIdGetRaw = function (requestParameters, initOverrides) {
|
|
816
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
817
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
818
|
+
return __generator(this, function (_c) {
|
|
819
|
+
switch (_c.label) {
|
|
820
|
+
case 0:
|
|
821
|
+
if (requestParameters['policyId'] == null) {
|
|
822
|
+
throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling getPolicyV1CompliancePoliciesPolicyIdGet().');
|
|
823
|
+
}
|
|
824
|
+
queryParameters = {};
|
|
825
|
+
headerParameters = {};
|
|
826
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
827
|
+
_a = headerParameters;
|
|
828
|
+
_b = "X-API-Key";
|
|
829
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
830
|
+
case 1:
|
|
831
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
832
|
+
_c.label = 2;
|
|
833
|
+
case 2:
|
|
834
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
835
|
+
token = this.configuration.accessToken;
|
|
836
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
837
|
+
case 3:
|
|
838
|
+
tokenString = _c.sent();
|
|
839
|
+
if (tokenString) {
|
|
840
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
841
|
+
}
|
|
842
|
+
_c.label = 4;
|
|
843
|
+
case 4:
|
|
844
|
+
urlPath = "/v1/compliance/policies/{policy_id}";
|
|
845
|
+
urlPath = urlPath.replace("{".concat("policy_id", "}"), encodeURIComponent(String(requestParameters['policyId'])));
|
|
846
|
+
return [4 /*yield*/, this.request({
|
|
847
|
+
path: urlPath,
|
|
848
|
+
method: 'GET',
|
|
849
|
+
headers: headerParameters,
|
|
850
|
+
query: queryParameters,
|
|
851
|
+
}, initOverrides)];
|
|
852
|
+
case 5:
|
|
853
|
+
response = _c.sent();
|
|
854
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PolicyResponseFromJSON)(jsonValue); })];
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
});
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* Get Policy
|
|
861
|
+
*/
|
|
862
|
+
ComplianceApi.prototype.getPolicyV1CompliancePoliciesPolicyIdGet = function (requestParameters, initOverrides) {
|
|
863
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
864
|
+
var response;
|
|
865
|
+
return __generator(this, function (_a) {
|
|
866
|
+
switch (_a.label) {
|
|
867
|
+
case 0: return [4 /*yield*/, this.getPolicyV1CompliancePoliciesPolicyIdGetRaw(requestParameters, initOverrides)];
|
|
868
|
+
case 1:
|
|
869
|
+
response = _a.sent();
|
|
870
|
+
return [4 /*yield*/, response.value()];
|
|
871
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
});
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* List Assets
|
|
878
|
+
*/
|
|
879
|
+
ComplianceApi.prototype.listAssetsV1ComplianceAssetsGetRaw = function (requestParameters, initOverrides) {
|
|
880
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
881
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
882
|
+
return __generator(this, function (_c) {
|
|
883
|
+
switch (_c.label) {
|
|
884
|
+
case 0:
|
|
885
|
+
queryParameters = {};
|
|
886
|
+
if (requestParameters['projectId'] != null) {
|
|
887
|
+
queryParameters['project_id'] = requestParameters['projectId'];
|
|
888
|
+
}
|
|
889
|
+
if (requestParameters['status'] != null) {
|
|
890
|
+
queryParameters['status'] = requestParameters['status'];
|
|
891
|
+
}
|
|
892
|
+
headerParameters = {};
|
|
893
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
894
|
+
_a = headerParameters;
|
|
895
|
+
_b = "X-API-Key";
|
|
896
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
897
|
+
case 1:
|
|
898
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
899
|
+
_c.label = 2;
|
|
900
|
+
case 2:
|
|
901
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
902
|
+
token = this.configuration.accessToken;
|
|
903
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
904
|
+
case 3:
|
|
905
|
+
tokenString = _c.sent();
|
|
906
|
+
if (tokenString) {
|
|
907
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
908
|
+
}
|
|
909
|
+
_c.label = 4;
|
|
910
|
+
case 4:
|
|
911
|
+
urlPath = "/v1/compliance/assets";
|
|
912
|
+
return [4 /*yield*/, this.request({
|
|
913
|
+
path: urlPath,
|
|
914
|
+
method: 'GET',
|
|
915
|
+
headers: headerParameters,
|
|
916
|
+
query: queryParameters,
|
|
917
|
+
}, initOverrides)];
|
|
918
|
+
case 5:
|
|
919
|
+
response = _c.sent();
|
|
920
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AssetResponseFromJSON); })];
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
});
|
|
924
|
+
};
|
|
925
|
+
/**
|
|
926
|
+
* List Assets
|
|
927
|
+
*/
|
|
928
|
+
ComplianceApi.prototype.listAssetsV1ComplianceAssetsGet = function () {
|
|
929
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
930
|
+
var response;
|
|
931
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
932
|
+
return __generator(this, function (_a) {
|
|
933
|
+
switch (_a.label) {
|
|
934
|
+
case 0: return [4 /*yield*/, this.listAssetsV1ComplianceAssetsGetRaw(requestParameters, initOverrides)];
|
|
935
|
+
case 1:
|
|
936
|
+
response = _a.sent();
|
|
937
|
+
return [4 /*yield*/, response.value()];
|
|
938
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
});
|
|
942
|
+
};
|
|
943
|
+
/**
|
|
944
|
+
* Query guardrail block events with filtering and pagination.
|
|
945
|
+
* List Guardrail Events
|
|
946
|
+
*/
|
|
947
|
+
ComplianceApi.prototype.listGuardrailEventsV1ComplianceGuardrailEventsGetRaw = function (requestParameters, initOverrides) {
|
|
948
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
949
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
950
|
+
return __generator(this, function (_c) {
|
|
951
|
+
switch (_c.label) {
|
|
952
|
+
case 0:
|
|
953
|
+
queryParameters = {};
|
|
954
|
+
if (requestParameters['capabilityId'] != null) {
|
|
955
|
+
queryParameters['capability_id'] = requestParameters['capabilityId'];
|
|
956
|
+
}
|
|
957
|
+
if (requestParameters['policyId'] != null) {
|
|
958
|
+
queryParameters['policy_id'] = requestParameters['policyId'];
|
|
959
|
+
}
|
|
960
|
+
if (requestParameters['controlType'] != null) {
|
|
961
|
+
queryParameters['control_type'] = requestParameters['controlType'];
|
|
962
|
+
}
|
|
963
|
+
if (requestParameters['direction'] != null) {
|
|
964
|
+
queryParameters['direction'] = requestParameters['direction'];
|
|
965
|
+
}
|
|
966
|
+
if (requestParameters['fromDate'] != null) {
|
|
967
|
+
queryParameters['from_date'] = requestParameters['fromDate'].toISOString();
|
|
968
|
+
}
|
|
969
|
+
if (requestParameters['toDate'] != null) {
|
|
970
|
+
queryParameters['to_date'] = requestParameters['toDate'].toISOString();
|
|
971
|
+
}
|
|
972
|
+
if (requestParameters['limit'] != null) {
|
|
973
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
974
|
+
}
|
|
975
|
+
if (requestParameters['offset'] != null) {
|
|
976
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
977
|
+
}
|
|
978
|
+
headerParameters = {};
|
|
979
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
980
|
+
_a = headerParameters;
|
|
981
|
+
_b = "X-API-Key";
|
|
982
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
983
|
+
case 1:
|
|
984
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
985
|
+
_c.label = 2;
|
|
986
|
+
case 2:
|
|
987
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
988
|
+
token = this.configuration.accessToken;
|
|
989
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
990
|
+
case 3:
|
|
991
|
+
tokenString = _c.sent();
|
|
992
|
+
if (tokenString) {
|
|
993
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
994
|
+
}
|
|
995
|
+
_c.label = 4;
|
|
996
|
+
case 4:
|
|
997
|
+
urlPath = "/v1/compliance/guardrail-events";
|
|
998
|
+
return [4 /*yield*/, this.request({
|
|
999
|
+
path: urlPath,
|
|
1000
|
+
method: 'GET',
|
|
1001
|
+
headers: headerParameters,
|
|
1002
|
+
query: queryParameters,
|
|
1003
|
+
}, initOverrides)];
|
|
1004
|
+
case 5:
|
|
1005
|
+
response = _c.sent();
|
|
1006
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GuardrailEventListResponseFromJSON)(jsonValue); })];
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
});
|
|
1010
|
+
};
|
|
1011
|
+
/**
|
|
1012
|
+
* Query guardrail block events with filtering and pagination.
|
|
1013
|
+
* List Guardrail Events
|
|
1014
|
+
*/
|
|
1015
|
+
ComplianceApi.prototype.listGuardrailEventsV1ComplianceGuardrailEventsGet = function () {
|
|
1016
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
1017
|
+
var response;
|
|
1018
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1019
|
+
return __generator(this, function (_a) {
|
|
1020
|
+
switch (_a.label) {
|
|
1021
|
+
case 0: return [4 /*yield*/, this.listGuardrailEventsV1ComplianceGuardrailEventsGetRaw(requestParameters, initOverrides)];
|
|
1022
|
+
case 1:
|
|
1023
|
+
response = _a.sent();
|
|
1024
|
+
return [4 /*yield*/, response.value()];
|
|
1025
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1026
|
+
}
|
|
1027
|
+
});
|
|
1028
|
+
});
|
|
1029
|
+
};
|
|
1030
|
+
/**
|
|
1031
|
+
* List Policies
|
|
1032
|
+
*/
|
|
1033
|
+
ComplianceApi.prototype.listPoliciesV1CompliancePoliciesGetRaw = function (initOverrides) {
|
|
1034
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1035
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
1036
|
+
return __generator(this, function (_c) {
|
|
1037
|
+
switch (_c.label) {
|
|
1038
|
+
case 0:
|
|
1039
|
+
queryParameters = {};
|
|
1040
|
+
headerParameters = {};
|
|
1041
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1042
|
+
_a = headerParameters;
|
|
1043
|
+
_b = "X-API-Key";
|
|
1044
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
1045
|
+
case 1:
|
|
1046
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
1047
|
+
_c.label = 2;
|
|
1048
|
+
case 2:
|
|
1049
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1050
|
+
token = this.configuration.accessToken;
|
|
1051
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
1052
|
+
case 3:
|
|
1053
|
+
tokenString = _c.sent();
|
|
1054
|
+
if (tokenString) {
|
|
1055
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1056
|
+
}
|
|
1057
|
+
_c.label = 4;
|
|
1058
|
+
case 4:
|
|
1059
|
+
urlPath = "/v1/compliance/policies";
|
|
1060
|
+
return [4 /*yield*/, this.request({
|
|
1061
|
+
path: urlPath,
|
|
1062
|
+
method: 'GET',
|
|
1063
|
+
headers: headerParameters,
|
|
1064
|
+
query: queryParameters,
|
|
1065
|
+
}, initOverrides)];
|
|
1066
|
+
case 5:
|
|
1067
|
+
response = _c.sent();
|
|
1068
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PolicyResponseFromJSON); })];
|
|
1069
|
+
}
|
|
1070
|
+
});
|
|
1071
|
+
});
|
|
1072
|
+
};
|
|
1073
|
+
/**
|
|
1074
|
+
* List Policies
|
|
1075
|
+
*/
|
|
1076
|
+
ComplianceApi.prototype.listPoliciesV1CompliancePoliciesGet = function (initOverrides) {
|
|
1077
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1078
|
+
var response;
|
|
1079
|
+
return __generator(this, function (_a) {
|
|
1080
|
+
switch (_a.label) {
|
|
1081
|
+
case 0: return [4 /*yield*/, this.listPoliciesV1CompliancePoliciesGetRaw(initOverrides)];
|
|
1082
|
+
case 1:
|
|
1083
|
+
response = _a.sent();
|
|
1084
|
+
return [4 /*yield*/, response.value()];
|
|
1085
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
});
|
|
1089
|
+
};
|
|
1090
|
+
/**
|
|
1091
|
+
* Remove a policy\'s controls from a capability\'s version config.
|
|
1092
|
+
* Remove Controls
|
|
1093
|
+
*/
|
|
1094
|
+
ComplianceApi.prototype.removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDeleteRaw = function (requestParameters, initOverrides) {
|
|
1095
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1096
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
1097
|
+
return __generator(this, function (_c) {
|
|
1098
|
+
switch (_c.label) {
|
|
1099
|
+
case 0:
|
|
1100
|
+
if (requestParameters['capabilityId'] == null) {
|
|
1101
|
+
throw new runtime.RequiredError('capabilityId', 'Required parameter "capabilityId" was null or undefined when calling removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDelete().');
|
|
1102
|
+
}
|
|
1103
|
+
if (requestParameters['policyId'] == null) {
|
|
1104
|
+
throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDelete().');
|
|
1105
|
+
}
|
|
1106
|
+
queryParameters = {};
|
|
1107
|
+
headerParameters = {};
|
|
1108
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1109
|
+
_a = headerParameters;
|
|
1110
|
+
_b = "X-API-Key";
|
|
1111
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
1112
|
+
case 1:
|
|
1113
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
1114
|
+
_c.label = 2;
|
|
1115
|
+
case 2:
|
|
1116
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1117
|
+
token = this.configuration.accessToken;
|
|
1118
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
1119
|
+
case 3:
|
|
1120
|
+
tokenString = _c.sent();
|
|
1121
|
+
if (tokenString) {
|
|
1122
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1123
|
+
}
|
|
1124
|
+
_c.label = 4;
|
|
1125
|
+
case 4:
|
|
1126
|
+
urlPath = "/v1/compliance/capabilities/{capability_id}/policies/{policy_id}";
|
|
1127
|
+
urlPath = urlPath.replace("{".concat("capability_id", "}"), encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
1128
|
+
urlPath = urlPath.replace("{".concat("policy_id", "}"), encodeURIComponent(String(requestParameters['policyId'])));
|
|
1129
|
+
return [4 /*yield*/, this.request({
|
|
1130
|
+
path: urlPath,
|
|
1131
|
+
method: 'DELETE',
|
|
1132
|
+
headers: headerParameters,
|
|
1133
|
+
query: queryParameters,
|
|
1134
|
+
}, initOverrides)];
|
|
1135
|
+
case 5:
|
|
1136
|
+
response = _c.sent();
|
|
1137
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RemoveControlsResponseFromJSON)(jsonValue); })];
|
|
1138
|
+
}
|
|
1139
|
+
});
|
|
1140
|
+
});
|
|
1141
|
+
};
|
|
1142
|
+
/**
|
|
1143
|
+
* Remove a policy\'s controls from a capability\'s version config.
|
|
1144
|
+
* Remove Controls
|
|
1145
|
+
*/
|
|
1146
|
+
ComplianceApi.prototype.removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDelete = function (requestParameters, initOverrides) {
|
|
1147
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1148
|
+
var response;
|
|
1149
|
+
return __generator(this, function (_a) {
|
|
1150
|
+
switch (_a.label) {
|
|
1151
|
+
case 0: return [4 /*yield*/, this.removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDeleteRaw(requestParameters, initOverrides)];
|
|
1152
|
+
case 1:
|
|
1153
|
+
response = _a.sent();
|
|
1154
|
+
return [4 /*yield*/, response.value()];
|
|
1155
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
});
|
|
1159
|
+
};
|
|
1160
|
+
/**
|
|
1161
|
+
* Update Policy
|
|
1162
|
+
*/
|
|
1163
|
+
ComplianceApi.prototype.updatePolicyV1CompliancePoliciesPolicyIdPatchRaw = function (requestParameters, initOverrides) {
|
|
1164
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1165
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, urlPath, response;
|
|
1166
|
+
return __generator(this, function (_c) {
|
|
1167
|
+
switch (_c.label) {
|
|
1168
|
+
case 0:
|
|
1169
|
+
if (requestParameters['policyId'] == null) {
|
|
1170
|
+
throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling updatePolicyV1CompliancePoliciesPolicyIdPatch().');
|
|
1171
|
+
}
|
|
1172
|
+
if (requestParameters['policyUpdate'] == null) {
|
|
1173
|
+
throw new runtime.RequiredError('policyUpdate', 'Required parameter "policyUpdate" was null or undefined when calling updatePolicyV1CompliancePoliciesPolicyIdPatch().');
|
|
1174
|
+
}
|
|
1175
|
+
queryParameters = {};
|
|
1176
|
+
headerParameters = {};
|
|
1177
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1178
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1179
|
+
_a = headerParameters;
|
|
1180
|
+
_b = "X-API-Key";
|
|
1181
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
1182
|
+
case 1:
|
|
1183
|
+
_a[_b] = _c.sent(); // APIKeyHeader authentication
|
|
1184
|
+
_c.label = 2;
|
|
1185
|
+
case 2:
|
|
1186
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1187
|
+
token = this.configuration.accessToken;
|
|
1188
|
+
return [4 /*yield*/, token("HTTPBearer", [])];
|
|
1189
|
+
case 3:
|
|
1190
|
+
tokenString = _c.sent();
|
|
1191
|
+
if (tokenString) {
|
|
1192
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1193
|
+
}
|
|
1194
|
+
_c.label = 4;
|
|
1195
|
+
case 4:
|
|
1196
|
+
urlPath = "/v1/compliance/policies/{policy_id}";
|
|
1197
|
+
urlPath = urlPath.replace("{".concat("policy_id", "}"), encodeURIComponent(String(requestParameters['policyId'])));
|
|
1198
|
+
return [4 /*yield*/, this.request({
|
|
1199
|
+
path: urlPath,
|
|
1200
|
+
method: 'PATCH',
|
|
1201
|
+
headers: headerParameters,
|
|
1202
|
+
query: queryParameters,
|
|
1203
|
+
body: (0, index_1.PolicyUpdateToJSON)(requestParameters['policyUpdate']),
|
|
1204
|
+
}, initOverrides)];
|
|
1205
|
+
case 5:
|
|
1206
|
+
response = _c.sent();
|
|
1207
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PolicyResponseFromJSON)(jsonValue); })];
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
});
|
|
1211
|
+
};
|
|
1212
|
+
/**
|
|
1213
|
+
* Update Policy
|
|
1214
|
+
*/
|
|
1215
|
+
ComplianceApi.prototype.updatePolicyV1CompliancePoliciesPolicyIdPatch = function (requestParameters, initOverrides) {
|
|
1216
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1217
|
+
var response;
|
|
1218
|
+
return __generator(this, function (_a) {
|
|
1219
|
+
switch (_a.label) {
|
|
1220
|
+
case 0: return [4 /*yield*/, this.updatePolicyV1CompliancePoliciesPolicyIdPatchRaw(requestParameters, initOverrides)];
|
|
1221
|
+
case 1:
|
|
1222
|
+
response = _a.sent();
|
|
1223
|
+
return [4 /*yield*/, response.value()];
|
|
1224
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1225
|
+
}
|
|
1226
|
+
});
|
|
1227
|
+
});
|
|
1228
|
+
};
|
|
1229
|
+
return ComplianceApi;
|
|
1230
|
+
}(runtime.BaseAPI));
|
|
1231
|
+
exports.ComplianceApi = ComplianceApi;
|
|
1232
|
+
/**
|
|
1233
|
+
* @export
|
|
1234
|
+
*/
|
|
1235
|
+
exports.GetGuardrailsV1ComplianceGuardrailsGetSortOrderEnum = {
|
|
1236
|
+
Asc: 'asc',
|
|
1237
|
+
Desc: 'desc'
|
|
1238
|
+
};
|