@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,1068 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Corax API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2.313.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApplicablePolicyResponse,
|
|
19
|
+
ApplyControlsResponse,
|
|
20
|
+
AssetResponse,
|
|
21
|
+
BadgeResponse,
|
|
22
|
+
ComplianceStatus,
|
|
23
|
+
DryRunRequest,
|
|
24
|
+
DryRunResponse,
|
|
25
|
+
GuardrailEventListResponse,
|
|
26
|
+
GuardrailRow,
|
|
27
|
+
HTTPValidationError,
|
|
28
|
+
PolicyCreate,
|
|
29
|
+
PolicyImpactResponse,
|
|
30
|
+
PolicyResponse,
|
|
31
|
+
PolicyUpdate,
|
|
32
|
+
RemoveControlsResponse,
|
|
33
|
+
ScanCategory,
|
|
34
|
+
ScanDirection,
|
|
35
|
+
} from '../models/index';
|
|
36
|
+
import {
|
|
37
|
+
ApplicablePolicyResponseFromJSON,
|
|
38
|
+
ApplicablePolicyResponseToJSON,
|
|
39
|
+
ApplyControlsResponseFromJSON,
|
|
40
|
+
ApplyControlsResponseToJSON,
|
|
41
|
+
AssetResponseFromJSON,
|
|
42
|
+
AssetResponseToJSON,
|
|
43
|
+
BadgeResponseFromJSON,
|
|
44
|
+
BadgeResponseToJSON,
|
|
45
|
+
ComplianceStatusFromJSON,
|
|
46
|
+
ComplianceStatusToJSON,
|
|
47
|
+
DryRunRequestFromJSON,
|
|
48
|
+
DryRunRequestToJSON,
|
|
49
|
+
DryRunResponseFromJSON,
|
|
50
|
+
DryRunResponseToJSON,
|
|
51
|
+
GuardrailEventListResponseFromJSON,
|
|
52
|
+
GuardrailEventListResponseToJSON,
|
|
53
|
+
GuardrailRowFromJSON,
|
|
54
|
+
GuardrailRowToJSON,
|
|
55
|
+
HTTPValidationErrorFromJSON,
|
|
56
|
+
HTTPValidationErrorToJSON,
|
|
57
|
+
PolicyCreateFromJSON,
|
|
58
|
+
PolicyCreateToJSON,
|
|
59
|
+
PolicyImpactResponseFromJSON,
|
|
60
|
+
PolicyImpactResponseToJSON,
|
|
61
|
+
PolicyResponseFromJSON,
|
|
62
|
+
PolicyResponseToJSON,
|
|
63
|
+
PolicyUpdateFromJSON,
|
|
64
|
+
PolicyUpdateToJSON,
|
|
65
|
+
RemoveControlsResponseFromJSON,
|
|
66
|
+
RemoveControlsResponseToJSON,
|
|
67
|
+
ScanCategoryFromJSON,
|
|
68
|
+
ScanCategoryToJSON,
|
|
69
|
+
ScanDirectionFromJSON,
|
|
70
|
+
ScanDirectionToJSON,
|
|
71
|
+
} from '../models/index';
|
|
72
|
+
|
|
73
|
+
export interface ApplyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPutRequest {
|
|
74
|
+
capabilityId: string;
|
|
75
|
+
policyId: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ApplyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPostRequest {
|
|
79
|
+
policyId: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface CreatePolicyV1CompliancePoliciesPostRequest {
|
|
83
|
+
policyCreate: PolicyCreate;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface DeletePolicyV1CompliancePoliciesPolicyIdDeleteRequest {
|
|
87
|
+
policyId: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface DryRunGuardrailsV1ComplianceGuardrailScansPostRequest {
|
|
91
|
+
dryRunRequest: DryRunRequest;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface DuplicatePolicyV1CompliancePoliciesPolicyIdCopiesPostRequest {
|
|
95
|
+
policyId: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface GetApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGetRequest {
|
|
99
|
+
capabilityId: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface GetAssetDetailV1ComplianceAssetsCapabilityIdGetRequest {
|
|
103
|
+
capabilityId: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface GetComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGetRequest {
|
|
107
|
+
capabilityId: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface GetGuardrailsV1ComplianceGuardrailsGetRequest {
|
|
111
|
+
projectId?: string | null;
|
|
112
|
+
sortBy?: string;
|
|
113
|
+
sortOrder?: GetGuardrailsV1ComplianceGuardrailsGetSortOrderEnum;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface GetPolicyImpactV1CompliancePoliciesPolicyIdImpactGetRequest {
|
|
117
|
+
policyId: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface GetPolicyV1CompliancePoliciesPolicyIdGetRequest {
|
|
121
|
+
policyId: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface ListAssetsV1ComplianceAssetsGetRequest {
|
|
125
|
+
projectId?: string | null;
|
|
126
|
+
status?: ComplianceStatus | null;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface ListGuardrailEventsV1ComplianceGuardrailEventsGetRequest {
|
|
130
|
+
capabilityId?: string | null;
|
|
131
|
+
policyId?: string | null;
|
|
132
|
+
controlType?: ScanCategory | null;
|
|
133
|
+
direction?: ScanDirection | null;
|
|
134
|
+
fromDate?: Date | null;
|
|
135
|
+
toDate?: Date | null;
|
|
136
|
+
limit?: number;
|
|
137
|
+
offset?: number;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface RemoveControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDeleteRequest {
|
|
141
|
+
capabilityId: string;
|
|
142
|
+
policyId: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface UpdatePolicyV1CompliancePoliciesPolicyIdPatchRequest {
|
|
146
|
+
policyId: string;
|
|
147
|
+
policyUpdate: PolicyUpdate;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
153
|
+
export class ComplianceApi extends runtime.BaseAPI {
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Apply a policy\'s controls to a capability\'s version config.
|
|
157
|
+
* Apply Controls
|
|
158
|
+
*/
|
|
159
|
+
async applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPutRaw(requestParameters: ApplyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplyControlsResponse>> {
|
|
160
|
+
if (requestParameters['capabilityId'] == null) {
|
|
161
|
+
throw new runtime.RequiredError(
|
|
162
|
+
'capabilityId',
|
|
163
|
+
'Required parameter "capabilityId" was null or undefined when calling applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPut().'
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if (requestParameters['policyId'] == null) {
|
|
168
|
+
throw new runtime.RequiredError(
|
|
169
|
+
'policyId',
|
|
170
|
+
'Required parameter "policyId" was null or undefined when calling applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPut().'
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
const queryParameters: any = {};
|
|
175
|
+
|
|
176
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
177
|
+
|
|
178
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
179
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
183
|
+
const token = this.configuration.accessToken;
|
|
184
|
+
const tokenString = await token("HTTPBearer", []);
|
|
185
|
+
|
|
186
|
+
if (tokenString) {
|
|
187
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
let urlPath = `/v1/compliance/capabilities/{capability_id}/policies/{policy_id}`;
|
|
192
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
193
|
+
urlPath = urlPath.replace(`{${"policy_id"}}`, encodeURIComponent(String(requestParameters['policyId'])));
|
|
194
|
+
|
|
195
|
+
const response = await this.request({
|
|
196
|
+
path: urlPath,
|
|
197
|
+
method: 'PUT',
|
|
198
|
+
headers: headerParameters,
|
|
199
|
+
query: queryParameters,
|
|
200
|
+
}, initOverrides);
|
|
201
|
+
|
|
202
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplyControlsResponseFromJSON(jsonValue));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Apply a policy\'s controls to a capability\'s version config.
|
|
207
|
+
* Apply Controls
|
|
208
|
+
*/
|
|
209
|
+
async applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPut(requestParameters: ApplyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplyControlsResponse> {
|
|
210
|
+
const response = await this.applyControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdPutRaw(requestParameters, initOverrides);
|
|
211
|
+
return await response.value();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Apply a policy\'s controls to all non-compliant capabilities in its scope.
|
|
216
|
+
* Apply Policy To All
|
|
217
|
+
*/
|
|
218
|
+
async applyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPostRaw(requestParameters: ApplyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
|
|
219
|
+
if (requestParameters['policyId'] == null) {
|
|
220
|
+
throw new runtime.RequiredError(
|
|
221
|
+
'policyId',
|
|
222
|
+
'Required parameter "policyId" was null or undefined when calling applyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPost().'
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
const queryParameters: any = {};
|
|
227
|
+
|
|
228
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
229
|
+
|
|
230
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
231
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
235
|
+
const token = this.configuration.accessToken;
|
|
236
|
+
const tokenString = await token("HTTPBearer", []);
|
|
237
|
+
|
|
238
|
+
if (tokenString) {
|
|
239
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
let urlPath = `/v1/compliance/policies/{policy_id}/applications`;
|
|
244
|
+
urlPath = urlPath.replace(`{${"policy_id"}}`, encodeURIComponent(String(requestParameters['policyId'])));
|
|
245
|
+
|
|
246
|
+
const response = await this.request({
|
|
247
|
+
path: urlPath,
|
|
248
|
+
method: 'POST',
|
|
249
|
+
headers: headerParameters,
|
|
250
|
+
query: queryParameters,
|
|
251
|
+
}, initOverrides);
|
|
252
|
+
|
|
253
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
254
|
+
return new runtime.JSONApiResponse<any>(response);
|
|
255
|
+
} else {
|
|
256
|
+
return new runtime.TextApiResponse(response) as any;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Apply a policy\'s controls to all non-compliant capabilities in its scope.
|
|
262
|
+
* Apply Policy To All
|
|
263
|
+
*/
|
|
264
|
+
async applyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPost(requestParameters: ApplyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
|
|
265
|
+
const response = await this.applyPolicyToAllV1CompliancePoliciesPolicyIdApplicationsPostRaw(requestParameters, initOverrides);
|
|
266
|
+
return await response.value();
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Create Policy
|
|
271
|
+
*/
|
|
272
|
+
async createPolicyV1CompliancePoliciesPostRaw(requestParameters: CreatePolicyV1CompliancePoliciesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PolicyResponse>> {
|
|
273
|
+
if (requestParameters['policyCreate'] == null) {
|
|
274
|
+
throw new runtime.RequiredError(
|
|
275
|
+
'policyCreate',
|
|
276
|
+
'Required parameter "policyCreate" was null or undefined when calling createPolicyV1CompliancePoliciesPost().'
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
const queryParameters: any = {};
|
|
281
|
+
|
|
282
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
283
|
+
|
|
284
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
285
|
+
|
|
286
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
287
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
291
|
+
const token = this.configuration.accessToken;
|
|
292
|
+
const tokenString = await token("HTTPBearer", []);
|
|
293
|
+
|
|
294
|
+
if (tokenString) {
|
|
295
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
let urlPath = `/v1/compliance/policies`;
|
|
300
|
+
|
|
301
|
+
const response = await this.request({
|
|
302
|
+
path: urlPath,
|
|
303
|
+
method: 'POST',
|
|
304
|
+
headers: headerParameters,
|
|
305
|
+
query: queryParameters,
|
|
306
|
+
body: PolicyCreateToJSON(requestParameters['policyCreate']),
|
|
307
|
+
}, initOverrides);
|
|
308
|
+
|
|
309
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PolicyResponseFromJSON(jsonValue));
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Create Policy
|
|
314
|
+
*/
|
|
315
|
+
async createPolicyV1CompliancePoliciesPost(requestParameters: CreatePolicyV1CompliancePoliciesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PolicyResponse> {
|
|
316
|
+
const response = await this.createPolicyV1CompliancePoliciesPostRaw(requestParameters, initOverrides);
|
|
317
|
+
return await response.value();
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Delete Policy
|
|
322
|
+
*/
|
|
323
|
+
async deletePolicyV1CompliancePoliciesPolicyIdDeleteRaw(requestParameters: DeletePolicyV1CompliancePoliciesPolicyIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
324
|
+
if (requestParameters['policyId'] == null) {
|
|
325
|
+
throw new runtime.RequiredError(
|
|
326
|
+
'policyId',
|
|
327
|
+
'Required parameter "policyId" was null or undefined when calling deletePolicyV1CompliancePoliciesPolicyIdDelete().'
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
const queryParameters: any = {};
|
|
332
|
+
|
|
333
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
334
|
+
|
|
335
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
336
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
340
|
+
const token = this.configuration.accessToken;
|
|
341
|
+
const tokenString = await token("HTTPBearer", []);
|
|
342
|
+
|
|
343
|
+
if (tokenString) {
|
|
344
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
let urlPath = `/v1/compliance/policies/{policy_id}`;
|
|
349
|
+
urlPath = urlPath.replace(`{${"policy_id"}}`, encodeURIComponent(String(requestParameters['policyId'])));
|
|
350
|
+
|
|
351
|
+
const response = await this.request({
|
|
352
|
+
path: urlPath,
|
|
353
|
+
method: 'DELETE',
|
|
354
|
+
headers: headerParameters,
|
|
355
|
+
query: queryParameters,
|
|
356
|
+
}, initOverrides);
|
|
357
|
+
|
|
358
|
+
return new runtime.VoidApiResponse(response);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Delete Policy
|
|
363
|
+
*/
|
|
364
|
+
async deletePolicyV1CompliancePoliciesPolicyIdDelete(requestParameters: DeletePolicyV1CompliancePoliciesPolicyIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
365
|
+
await this.deletePolicyV1CompliancePoliciesPolicyIdDeleteRaw(requestParameters, initOverrides);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Test guardrail configuration against sample text without executing or persisting.
|
|
370
|
+
* Dry Run Guardrails
|
|
371
|
+
*/
|
|
372
|
+
async dryRunGuardrailsV1ComplianceGuardrailScansPostRaw(requestParameters: DryRunGuardrailsV1ComplianceGuardrailScansPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DryRunResponse>> {
|
|
373
|
+
if (requestParameters['dryRunRequest'] == null) {
|
|
374
|
+
throw new runtime.RequiredError(
|
|
375
|
+
'dryRunRequest',
|
|
376
|
+
'Required parameter "dryRunRequest" was null or undefined when calling dryRunGuardrailsV1ComplianceGuardrailScansPost().'
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
const queryParameters: any = {};
|
|
381
|
+
|
|
382
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
383
|
+
|
|
384
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
385
|
+
|
|
386
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
387
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
391
|
+
const token = this.configuration.accessToken;
|
|
392
|
+
const tokenString = await token("HTTPBearer", []);
|
|
393
|
+
|
|
394
|
+
if (tokenString) {
|
|
395
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
let urlPath = `/v1/compliance/guardrail-scans`;
|
|
400
|
+
|
|
401
|
+
const response = await this.request({
|
|
402
|
+
path: urlPath,
|
|
403
|
+
method: 'POST',
|
|
404
|
+
headers: headerParameters,
|
|
405
|
+
query: queryParameters,
|
|
406
|
+
body: DryRunRequestToJSON(requestParameters['dryRunRequest']),
|
|
407
|
+
}, initOverrides);
|
|
408
|
+
|
|
409
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DryRunResponseFromJSON(jsonValue));
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Test guardrail configuration against sample text without executing or persisting.
|
|
414
|
+
* Dry Run Guardrails
|
|
415
|
+
*/
|
|
416
|
+
async dryRunGuardrailsV1ComplianceGuardrailScansPost(requestParameters: DryRunGuardrailsV1ComplianceGuardrailScansPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DryRunResponse> {
|
|
417
|
+
const response = await this.dryRunGuardrailsV1ComplianceGuardrailScansPostRaw(requestParameters, initOverrides);
|
|
418
|
+
return await response.value();
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Create a copy of an existing policy with a new name, inactive by default.
|
|
423
|
+
* Duplicate Policy
|
|
424
|
+
*/
|
|
425
|
+
async duplicatePolicyV1CompliancePoliciesPolicyIdCopiesPostRaw(requestParameters: DuplicatePolicyV1CompliancePoliciesPolicyIdCopiesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PolicyResponse>> {
|
|
426
|
+
if (requestParameters['policyId'] == null) {
|
|
427
|
+
throw new runtime.RequiredError(
|
|
428
|
+
'policyId',
|
|
429
|
+
'Required parameter "policyId" was null or undefined when calling duplicatePolicyV1CompliancePoliciesPolicyIdCopiesPost().'
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
const queryParameters: any = {};
|
|
434
|
+
|
|
435
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
436
|
+
|
|
437
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
438
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
442
|
+
const token = this.configuration.accessToken;
|
|
443
|
+
const tokenString = await token("HTTPBearer", []);
|
|
444
|
+
|
|
445
|
+
if (tokenString) {
|
|
446
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
let urlPath = `/v1/compliance/policies/{policy_id}/copies`;
|
|
451
|
+
urlPath = urlPath.replace(`{${"policy_id"}}`, encodeURIComponent(String(requestParameters['policyId'])));
|
|
452
|
+
|
|
453
|
+
const response = await this.request({
|
|
454
|
+
path: urlPath,
|
|
455
|
+
method: 'POST',
|
|
456
|
+
headers: headerParameters,
|
|
457
|
+
query: queryParameters,
|
|
458
|
+
}, initOverrides);
|
|
459
|
+
|
|
460
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PolicyResponseFromJSON(jsonValue));
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Create a copy of an existing policy with a new name, inactive by default.
|
|
465
|
+
* Duplicate Policy
|
|
466
|
+
*/
|
|
467
|
+
async duplicatePolicyV1CompliancePoliciesPolicyIdCopiesPost(requestParameters: DuplicatePolicyV1CompliancePoliciesPolicyIdCopiesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PolicyResponse> {
|
|
468
|
+
const response = await this.duplicatePolicyV1CompliancePoliciesPolicyIdCopiesPostRaw(requestParameters, initOverrides);
|
|
469
|
+
return await response.value();
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* List all active policies applicable to this capability with applied status.
|
|
474
|
+
* Get Applicable Policies
|
|
475
|
+
*/
|
|
476
|
+
async getApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGetRaw(requestParameters: GetApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApplicablePolicyResponse>>> {
|
|
477
|
+
if (requestParameters['capabilityId'] == null) {
|
|
478
|
+
throw new runtime.RequiredError(
|
|
479
|
+
'capabilityId',
|
|
480
|
+
'Required parameter "capabilityId" was null or undefined when calling getApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGet().'
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
const queryParameters: any = {};
|
|
485
|
+
|
|
486
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
487
|
+
|
|
488
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
489
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
493
|
+
const token = this.configuration.accessToken;
|
|
494
|
+
const tokenString = await token("HTTPBearer", []);
|
|
495
|
+
|
|
496
|
+
if (tokenString) {
|
|
497
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
let urlPath = `/v1/compliance/capabilities/{capability_id}/policies`;
|
|
502
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
503
|
+
|
|
504
|
+
const response = await this.request({
|
|
505
|
+
path: urlPath,
|
|
506
|
+
method: 'GET',
|
|
507
|
+
headers: headerParameters,
|
|
508
|
+
query: queryParameters,
|
|
509
|
+
}, initOverrides);
|
|
510
|
+
|
|
511
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApplicablePolicyResponseFromJSON));
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* List all active policies applicable to this capability with applied status.
|
|
516
|
+
* Get Applicable Policies
|
|
517
|
+
*/
|
|
518
|
+
async getApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGet(requestParameters: GetApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApplicablePolicyResponse>> {
|
|
519
|
+
const response = await this.getApplicablePoliciesV1ComplianceCapabilitiesCapabilityIdPoliciesGetRaw(requestParameters, initOverrides);
|
|
520
|
+
return await response.value();
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Get Asset Detail
|
|
525
|
+
*/
|
|
526
|
+
async getAssetDetailV1ComplianceAssetsCapabilityIdGetRaw(requestParameters: GetAssetDetailV1ComplianceAssetsCapabilityIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResponse>> {
|
|
527
|
+
if (requestParameters['capabilityId'] == null) {
|
|
528
|
+
throw new runtime.RequiredError(
|
|
529
|
+
'capabilityId',
|
|
530
|
+
'Required parameter "capabilityId" was null or undefined when calling getAssetDetailV1ComplianceAssetsCapabilityIdGet().'
|
|
531
|
+
);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
const queryParameters: any = {};
|
|
535
|
+
|
|
536
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
537
|
+
|
|
538
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
539
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
543
|
+
const token = this.configuration.accessToken;
|
|
544
|
+
const tokenString = await token("HTTPBearer", []);
|
|
545
|
+
|
|
546
|
+
if (tokenString) {
|
|
547
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
let urlPath = `/v1/compliance/assets/{capability_id}`;
|
|
552
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
553
|
+
|
|
554
|
+
const response = await this.request({
|
|
555
|
+
path: urlPath,
|
|
556
|
+
method: 'GET',
|
|
557
|
+
headers: headerParameters,
|
|
558
|
+
query: queryParameters,
|
|
559
|
+
}, initOverrides);
|
|
560
|
+
|
|
561
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AssetResponseFromJSON(jsonValue));
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Get Asset Detail
|
|
566
|
+
*/
|
|
567
|
+
async getAssetDetailV1ComplianceAssetsCapabilityIdGet(requestParameters: GetAssetDetailV1ComplianceAssetsCapabilityIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResponse> {
|
|
568
|
+
const response = await this.getAssetDetailV1ComplianceAssetsCapabilityIdGetRaw(requestParameters, initOverrides);
|
|
569
|
+
return await response.value();
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Lightweight compliance status for capability detail page.
|
|
574
|
+
* Get Compliance Badge
|
|
575
|
+
*/
|
|
576
|
+
async getComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGetRaw(requestParameters: GetComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BadgeResponse>> {
|
|
577
|
+
if (requestParameters['capabilityId'] == null) {
|
|
578
|
+
throw new runtime.RequiredError(
|
|
579
|
+
'capabilityId',
|
|
580
|
+
'Required parameter "capabilityId" was null or undefined when calling getComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGet().'
|
|
581
|
+
);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
const queryParameters: any = {};
|
|
585
|
+
|
|
586
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
587
|
+
|
|
588
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
589
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
593
|
+
const token = this.configuration.accessToken;
|
|
594
|
+
const tokenString = await token("HTTPBearer", []);
|
|
595
|
+
|
|
596
|
+
if (tokenString) {
|
|
597
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
let urlPath = `/v1/compliance/assets/{capability_id}/badge`;
|
|
602
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
603
|
+
|
|
604
|
+
const response = await this.request({
|
|
605
|
+
path: urlPath,
|
|
606
|
+
method: 'GET',
|
|
607
|
+
headers: headerParameters,
|
|
608
|
+
query: queryParameters,
|
|
609
|
+
}, initOverrides);
|
|
610
|
+
|
|
611
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BadgeResponseFromJSON(jsonValue));
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Lightweight compliance status for capability detail page.
|
|
616
|
+
* Get Compliance Badge
|
|
617
|
+
*/
|
|
618
|
+
async getComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGet(requestParameters: GetComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BadgeResponse> {
|
|
619
|
+
const response = await this.getComplianceBadgeV1ComplianceAssetsCapabilityIdBadgeGetRaw(requestParameters, initOverrides);
|
|
620
|
+
return await response.value();
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Get Guardrails
|
|
625
|
+
*/
|
|
626
|
+
async getGuardrailsV1ComplianceGuardrailsGetRaw(requestParameters: GetGuardrailsV1ComplianceGuardrailsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GuardrailRow>>> {
|
|
627
|
+
const queryParameters: any = {};
|
|
628
|
+
|
|
629
|
+
if (requestParameters['projectId'] != null) {
|
|
630
|
+
queryParameters['project_id'] = requestParameters['projectId'];
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
if (requestParameters['sortBy'] != null) {
|
|
634
|
+
queryParameters['sort_by'] = requestParameters['sortBy'];
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
if (requestParameters['sortOrder'] != null) {
|
|
638
|
+
queryParameters['sort_order'] = requestParameters['sortOrder'];
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
642
|
+
|
|
643
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
644
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
648
|
+
const token = this.configuration.accessToken;
|
|
649
|
+
const tokenString = await token("HTTPBearer", []);
|
|
650
|
+
|
|
651
|
+
if (tokenString) {
|
|
652
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
let urlPath = `/v1/compliance/guardrails`;
|
|
657
|
+
|
|
658
|
+
const response = await this.request({
|
|
659
|
+
path: urlPath,
|
|
660
|
+
method: 'GET',
|
|
661
|
+
headers: headerParameters,
|
|
662
|
+
query: queryParameters,
|
|
663
|
+
}, initOverrides);
|
|
664
|
+
|
|
665
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GuardrailRowFromJSON));
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Get Guardrails
|
|
670
|
+
*/
|
|
671
|
+
async getGuardrailsV1ComplianceGuardrailsGet(requestParameters: GetGuardrailsV1ComplianceGuardrailsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GuardrailRow>> {
|
|
672
|
+
const response = await this.getGuardrailsV1ComplianceGuardrailsGetRaw(requestParameters, initOverrides);
|
|
673
|
+
return await response.value();
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Preview policy impact: how many assets affected and non-compliant.
|
|
678
|
+
* Get Policy Impact
|
|
679
|
+
*/
|
|
680
|
+
async getPolicyImpactV1CompliancePoliciesPolicyIdImpactGetRaw(requestParameters: GetPolicyImpactV1CompliancePoliciesPolicyIdImpactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PolicyImpactResponse>> {
|
|
681
|
+
if (requestParameters['policyId'] == null) {
|
|
682
|
+
throw new runtime.RequiredError(
|
|
683
|
+
'policyId',
|
|
684
|
+
'Required parameter "policyId" was null or undefined when calling getPolicyImpactV1CompliancePoliciesPolicyIdImpactGet().'
|
|
685
|
+
);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
const queryParameters: any = {};
|
|
689
|
+
|
|
690
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
691
|
+
|
|
692
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
693
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
697
|
+
const token = this.configuration.accessToken;
|
|
698
|
+
const tokenString = await token("HTTPBearer", []);
|
|
699
|
+
|
|
700
|
+
if (tokenString) {
|
|
701
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
let urlPath = `/v1/compliance/policies/{policy_id}/impact`;
|
|
706
|
+
urlPath = urlPath.replace(`{${"policy_id"}}`, encodeURIComponent(String(requestParameters['policyId'])));
|
|
707
|
+
|
|
708
|
+
const response = await this.request({
|
|
709
|
+
path: urlPath,
|
|
710
|
+
method: 'GET',
|
|
711
|
+
headers: headerParameters,
|
|
712
|
+
query: queryParameters,
|
|
713
|
+
}, initOverrides);
|
|
714
|
+
|
|
715
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PolicyImpactResponseFromJSON(jsonValue));
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Preview policy impact: how many assets affected and non-compliant.
|
|
720
|
+
* Get Policy Impact
|
|
721
|
+
*/
|
|
722
|
+
async getPolicyImpactV1CompliancePoliciesPolicyIdImpactGet(requestParameters: GetPolicyImpactV1CompliancePoliciesPolicyIdImpactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PolicyImpactResponse> {
|
|
723
|
+
const response = await this.getPolicyImpactV1CompliancePoliciesPolicyIdImpactGetRaw(requestParameters, initOverrides);
|
|
724
|
+
return await response.value();
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Get Policy
|
|
729
|
+
*/
|
|
730
|
+
async getPolicyV1CompliancePoliciesPolicyIdGetRaw(requestParameters: GetPolicyV1CompliancePoliciesPolicyIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PolicyResponse>> {
|
|
731
|
+
if (requestParameters['policyId'] == null) {
|
|
732
|
+
throw new runtime.RequiredError(
|
|
733
|
+
'policyId',
|
|
734
|
+
'Required parameter "policyId" was null or undefined when calling getPolicyV1CompliancePoliciesPolicyIdGet().'
|
|
735
|
+
);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
const queryParameters: any = {};
|
|
739
|
+
|
|
740
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
741
|
+
|
|
742
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
743
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
747
|
+
const token = this.configuration.accessToken;
|
|
748
|
+
const tokenString = await token("HTTPBearer", []);
|
|
749
|
+
|
|
750
|
+
if (tokenString) {
|
|
751
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
let urlPath = `/v1/compliance/policies/{policy_id}`;
|
|
756
|
+
urlPath = urlPath.replace(`{${"policy_id"}}`, encodeURIComponent(String(requestParameters['policyId'])));
|
|
757
|
+
|
|
758
|
+
const response = await this.request({
|
|
759
|
+
path: urlPath,
|
|
760
|
+
method: 'GET',
|
|
761
|
+
headers: headerParameters,
|
|
762
|
+
query: queryParameters,
|
|
763
|
+
}, initOverrides);
|
|
764
|
+
|
|
765
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PolicyResponseFromJSON(jsonValue));
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Get Policy
|
|
770
|
+
*/
|
|
771
|
+
async getPolicyV1CompliancePoliciesPolicyIdGet(requestParameters: GetPolicyV1CompliancePoliciesPolicyIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PolicyResponse> {
|
|
772
|
+
const response = await this.getPolicyV1CompliancePoliciesPolicyIdGetRaw(requestParameters, initOverrides);
|
|
773
|
+
return await response.value();
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* List Assets
|
|
778
|
+
*/
|
|
779
|
+
async listAssetsV1ComplianceAssetsGetRaw(requestParameters: ListAssetsV1ComplianceAssetsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetResponse>>> {
|
|
780
|
+
const queryParameters: any = {};
|
|
781
|
+
|
|
782
|
+
if (requestParameters['projectId'] != null) {
|
|
783
|
+
queryParameters['project_id'] = requestParameters['projectId'];
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
if (requestParameters['status'] != null) {
|
|
787
|
+
queryParameters['status'] = requestParameters['status'];
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
791
|
+
|
|
792
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
793
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
797
|
+
const token = this.configuration.accessToken;
|
|
798
|
+
const tokenString = await token("HTTPBearer", []);
|
|
799
|
+
|
|
800
|
+
if (tokenString) {
|
|
801
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
let urlPath = `/v1/compliance/assets`;
|
|
806
|
+
|
|
807
|
+
const response = await this.request({
|
|
808
|
+
path: urlPath,
|
|
809
|
+
method: 'GET',
|
|
810
|
+
headers: headerParameters,
|
|
811
|
+
query: queryParameters,
|
|
812
|
+
}, initOverrides);
|
|
813
|
+
|
|
814
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetResponseFromJSON));
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* List Assets
|
|
819
|
+
*/
|
|
820
|
+
async listAssetsV1ComplianceAssetsGet(requestParameters: ListAssetsV1ComplianceAssetsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetResponse>> {
|
|
821
|
+
const response = await this.listAssetsV1ComplianceAssetsGetRaw(requestParameters, initOverrides);
|
|
822
|
+
return await response.value();
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Query guardrail block events with filtering and pagination.
|
|
827
|
+
* List Guardrail Events
|
|
828
|
+
*/
|
|
829
|
+
async listGuardrailEventsV1ComplianceGuardrailEventsGetRaw(requestParameters: ListGuardrailEventsV1ComplianceGuardrailEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuardrailEventListResponse>> {
|
|
830
|
+
const queryParameters: any = {};
|
|
831
|
+
|
|
832
|
+
if (requestParameters['capabilityId'] != null) {
|
|
833
|
+
queryParameters['capability_id'] = requestParameters['capabilityId'];
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
if (requestParameters['policyId'] != null) {
|
|
837
|
+
queryParameters['policy_id'] = requestParameters['policyId'];
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
if (requestParameters['controlType'] != null) {
|
|
841
|
+
queryParameters['control_type'] = requestParameters['controlType'];
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
if (requestParameters['direction'] != null) {
|
|
845
|
+
queryParameters['direction'] = requestParameters['direction'];
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
if (requestParameters['fromDate'] != null) {
|
|
849
|
+
queryParameters['from_date'] = (requestParameters['fromDate'] as any).toISOString();
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
if (requestParameters['toDate'] != null) {
|
|
853
|
+
queryParameters['to_date'] = (requestParameters['toDate'] as any).toISOString();
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
if (requestParameters['limit'] != null) {
|
|
857
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
if (requestParameters['offset'] != null) {
|
|
861
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
865
|
+
|
|
866
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
867
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
871
|
+
const token = this.configuration.accessToken;
|
|
872
|
+
const tokenString = await token("HTTPBearer", []);
|
|
873
|
+
|
|
874
|
+
if (tokenString) {
|
|
875
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
let urlPath = `/v1/compliance/guardrail-events`;
|
|
880
|
+
|
|
881
|
+
const response = await this.request({
|
|
882
|
+
path: urlPath,
|
|
883
|
+
method: 'GET',
|
|
884
|
+
headers: headerParameters,
|
|
885
|
+
query: queryParameters,
|
|
886
|
+
}, initOverrides);
|
|
887
|
+
|
|
888
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GuardrailEventListResponseFromJSON(jsonValue));
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Query guardrail block events with filtering and pagination.
|
|
893
|
+
* List Guardrail Events
|
|
894
|
+
*/
|
|
895
|
+
async listGuardrailEventsV1ComplianceGuardrailEventsGet(requestParameters: ListGuardrailEventsV1ComplianceGuardrailEventsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuardrailEventListResponse> {
|
|
896
|
+
const response = await this.listGuardrailEventsV1ComplianceGuardrailEventsGetRaw(requestParameters, initOverrides);
|
|
897
|
+
return await response.value();
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* List Policies
|
|
902
|
+
*/
|
|
903
|
+
async listPoliciesV1CompliancePoliciesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PolicyResponse>>> {
|
|
904
|
+
const queryParameters: any = {};
|
|
905
|
+
|
|
906
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
907
|
+
|
|
908
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
909
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
913
|
+
const token = this.configuration.accessToken;
|
|
914
|
+
const tokenString = await token("HTTPBearer", []);
|
|
915
|
+
|
|
916
|
+
if (tokenString) {
|
|
917
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
let urlPath = `/v1/compliance/policies`;
|
|
922
|
+
|
|
923
|
+
const response = await this.request({
|
|
924
|
+
path: urlPath,
|
|
925
|
+
method: 'GET',
|
|
926
|
+
headers: headerParameters,
|
|
927
|
+
query: queryParameters,
|
|
928
|
+
}, initOverrides);
|
|
929
|
+
|
|
930
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PolicyResponseFromJSON));
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* List Policies
|
|
935
|
+
*/
|
|
936
|
+
async listPoliciesV1CompliancePoliciesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PolicyResponse>> {
|
|
937
|
+
const response = await this.listPoliciesV1CompliancePoliciesGetRaw(initOverrides);
|
|
938
|
+
return await response.value();
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Remove a policy\'s controls from a capability\'s version config.
|
|
943
|
+
* Remove Controls
|
|
944
|
+
*/
|
|
945
|
+
async removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDeleteRaw(requestParameters: RemoveControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveControlsResponse>> {
|
|
946
|
+
if (requestParameters['capabilityId'] == null) {
|
|
947
|
+
throw new runtime.RequiredError(
|
|
948
|
+
'capabilityId',
|
|
949
|
+
'Required parameter "capabilityId" was null or undefined when calling removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDelete().'
|
|
950
|
+
);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
if (requestParameters['policyId'] == null) {
|
|
954
|
+
throw new runtime.RequiredError(
|
|
955
|
+
'policyId',
|
|
956
|
+
'Required parameter "policyId" was null or undefined when calling removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDelete().'
|
|
957
|
+
);
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
const queryParameters: any = {};
|
|
961
|
+
|
|
962
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
963
|
+
|
|
964
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
965
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
969
|
+
const token = this.configuration.accessToken;
|
|
970
|
+
const tokenString = await token("HTTPBearer", []);
|
|
971
|
+
|
|
972
|
+
if (tokenString) {
|
|
973
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
let urlPath = `/v1/compliance/capabilities/{capability_id}/policies/{policy_id}`;
|
|
978
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
979
|
+
urlPath = urlPath.replace(`{${"policy_id"}}`, encodeURIComponent(String(requestParameters['policyId'])));
|
|
980
|
+
|
|
981
|
+
const response = await this.request({
|
|
982
|
+
path: urlPath,
|
|
983
|
+
method: 'DELETE',
|
|
984
|
+
headers: headerParameters,
|
|
985
|
+
query: queryParameters,
|
|
986
|
+
}, initOverrides);
|
|
987
|
+
|
|
988
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RemoveControlsResponseFromJSON(jsonValue));
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Remove a policy\'s controls from a capability\'s version config.
|
|
993
|
+
* Remove Controls
|
|
994
|
+
*/
|
|
995
|
+
async removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDelete(requestParameters: RemoveControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveControlsResponse> {
|
|
996
|
+
const response = await this.removeControlsV1ComplianceCapabilitiesCapabilityIdPoliciesPolicyIdDeleteRaw(requestParameters, initOverrides);
|
|
997
|
+
return await response.value();
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Update Policy
|
|
1002
|
+
*/
|
|
1003
|
+
async updatePolicyV1CompliancePoliciesPolicyIdPatchRaw(requestParameters: UpdatePolicyV1CompliancePoliciesPolicyIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PolicyResponse>> {
|
|
1004
|
+
if (requestParameters['policyId'] == null) {
|
|
1005
|
+
throw new runtime.RequiredError(
|
|
1006
|
+
'policyId',
|
|
1007
|
+
'Required parameter "policyId" was null or undefined when calling updatePolicyV1CompliancePoliciesPolicyIdPatch().'
|
|
1008
|
+
);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
if (requestParameters['policyUpdate'] == null) {
|
|
1012
|
+
throw new runtime.RequiredError(
|
|
1013
|
+
'policyUpdate',
|
|
1014
|
+
'Required parameter "policyUpdate" was null or undefined when calling updatePolicyV1CompliancePoliciesPolicyIdPatch().'
|
|
1015
|
+
);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
const queryParameters: any = {};
|
|
1019
|
+
|
|
1020
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1021
|
+
|
|
1022
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1023
|
+
|
|
1024
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1025
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1029
|
+
const token = this.configuration.accessToken;
|
|
1030
|
+
const tokenString = await token("HTTPBearer", []);
|
|
1031
|
+
|
|
1032
|
+
if (tokenString) {
|
|
1033
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
let urlPath = `/v1/compliance/policies/{policy_id}`;
|
|
1038
|
+
urlPath = urlPath.replace(`{${"policy_id"}}`, encodeURIComponent(String(requestParameters['policyId'])));
|
|
1039
|
+
|
|
1040
|
+
const response = await this.request({
|
|
1041
|
+
path: urlPath,
|
|
1042
|
+
method: 'PATCH',
|
|
1043
|
+
headers: headerParameters,
|
|
1044
|
+
query: queryParameters,
|
|
1045
|
+
body: PolicyUpdateToJSON(requestParameters['policyUpdate']),
|
|
1046
|
+
}, initOverrides);
|
|
1047
|
+
|
|
1048
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PolicyResponseFromJSON(jsonValue));
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Update Policy
|
|
1053
|
+
*/
|
|
1054
|
+
async updatePolicyV1CompliancePoliciesPolicyIdPatch(requestParameters: UpdatePolicyV1CompliancePoliciesPolicyIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PolicyResponse> {
|
|
1055
|
+
const response = await this.updatePolicyV1CompliancePoliciesPolicyIdPatchRaw(requestParameters, initOverrides);
|
|
1056
|
+
return await response.value();
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* @export
|
|
1063
|
+
*/
|
|
1064
|
+
export const GetGuardrailsV1ComplianceGuardrailsGetSortOrderEnum = {
|
|
1065
|
+
Asc: 'asc',
|
|
1066
|
+
Desc: 'desc'
|
|
1067
|
+
} as const;
|
|
1068
|
+
export type GetGuardrailsV1ComplianceGuardrailsGetSortOrderEnum = typeof GetGuardrailsV1ComplianceGuardrailsGetSortOrderEnum[keyof typeof GetGuardrailsV1ComplianceGuardrailsGetSortOrderEnum];
|