@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,1347 @@
|
|
|
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
|
+
Capability1,
|
|
19
|
+
Capability2,
|
|
20
|
+
CapabilityId,
|
|
21
|
+
CapabilityId1,
|
|
22
|
+
CapabilityRepresentation,
|
|
23
|
+
CapabilitySetDefaultVersionRequest,
|
|
24
|
+
Execution,
|
|
25
|
+
ExecutionCallback,
|
|
26
|
+
ExecutionCreate,
|
|
27
|
+
ExecutionResult,
|
|
28
|
+
ExecutionUsage,
|
|
29
|
+
Feedback,
|
|
30
|
+
FeedbackCreate,
|
|
31
|
+
HTTPValidationError,
|
|
32
|
+
PagedResponseModelCapability,
|
|
33
|
+
PagedResponseModelCapabilityVersion,
|
|
34
|
+
PagedResponseModelExecutionSparse,
|
|
35
|
+
PagedResponseModelFeedback,
|
|
36
|
+
ResponseCreateCapabilityV1CapabilitiesPost,
|
|
37
|
+
StreamingTransport,
|
|
38
|
+
} from '../models/index';
|
|
39
|
+
import {
|
|
40
|
+
Capability1FromJSON,
|
|
41
|
+
Capability1ToJSON,
|
|
42
|
+
Capability2FromJSON,
|
|
43
|
+
Capability2ToJSON,
|
|
44
|
+
CapabilityIdFromJSON,
|
|
45
|
+
CapabilityIdToJSON,
|
|
46
|
+
CapabilityId1FromJSON,
|
|
47
|
+
CapabilityId1ToJSON,
|
|
48
|
+
CapabilityRepresentationFromJSON,
|
|
49
|
+
CapabilityRepresentationToJSON,
|
|
50
|
+
CapabilitySetDefaultVersionRequestFromJSON,
|
|
51
|
+
CapabilitySetDefaultVersionRequestToJSON,
|
|
52
|
+
ExecutionFromJSON,
|
|
53
|
+
ExecutionToJSON,
|
|
54
|
+
ExecutionCallbackFromJSON,
|
|
55
|
+
ExecutionCallbackToJSON,
|
|
56
|
+
ExecutionCreateFromJSON,
|
|
57
|
+
ExecutionCreateToJSON,
|
|
58
|
+
ExecutionResultFromJSON,
|
|
59
|
+
ExecutionResultToJSON,
|
|
60
|
+
ExecutionUsageFromJSON,
|
|
61
|
+
ExecutionUsageToJSON,
|
|
62
|
+
FeedbackFromJSON,
|
|
63
|
+
FeedbackToJSON,
|
|
64
|
+
FeedbackCreateFromJSON,
|
|
65
|
+
FeedbackCreateToJSON,
|
|
66
|
+
HTTPValidationErrorFromJSON,
|
|
67
|
+
HTTPValidationErrorToJSON,
|
|
68
|
+
PagedResponseModelCapabilityFromJSON,
|
|
69
|
+
PagedResponseModelCapabilityToJSON,
|
|
70
|
+
PagedResponseModelCapabilityVersionFromJSON,
|
|
71
|
+
PagedResponseModelCapabilityVersionToJSON,
|
|
72
|
+
PagedResponseModelExecutionSparseFromJSON,
|
|
73
|
+
PagedResponseModelExecutionSparseToJSON,
|
|
74
|
+
PagedResponseModelFeedbackFromJSON,
|
|
75
|
+
PagedResponseModelFeedbackToJSON,
|
|
76
|
+
ResponseCreateCapabilityV1CapabilitiesPostFromJSON,
|
|
77
|
+
ResponseCreateCapabilityV1CapabilitiesPostToJSON,
|
|
78
|
+
StreamingTransportFromJSON,
|
|
79
|
+
StreamingTransportToJSON,
|
|
80
|
+
} from '../models/index';
|
|
81
|
+
|
|
82
|
+
export interface CreateCapabilityV1CapabilitiesPostRequest {
|
|
83
|
+
capability1: Capability1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface DeleteCapabilityV1CapabilitiesCapabilityIdDeleteRequest {
|
|
87
|
+
capabilityId: CapabilityId1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface DeleteFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackDeleteRequest {
|
|
91
|
+
executionId: string;
|
|
92
|
+
capabilityId: CapabilityId1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface ExecuteCapabilityV1CapabilitiesCapabilityIdExecutionsPostRequest {
|
|
96
|
+
capabilityId: CapabilityId1;
|
|
97
|
+
executionCreate: ExecutionCreate;
|
|
98
|
+
stream?: boolean;
|
|
99
|
+
streamTransport?: StreamingTransport;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface GetCapabilityVersionV1CapabilitiesCapabilityIdVersionsVersionGetRequest {
|
|
103
|
+
version: number;
|
|
104
|
+
capabilityId: CapabilityId1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface GetExecutionCallbackV1CapabilitiesCapabilityIdExecutionsExecutionIdCallbackGetRequest {
|
|
108
|
+
executionId: string;
|
|
109
|
+
capabilityId: CapabilityId1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface GetExecutionResultV1CapabilitiesCapabilityIdExecutionsExecutionIdResultGetRequest {
|
|
113
|
+
executionId: string;
|
|
114
|
+
capabilityId: CapabilityId1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface GetExecutionUsageV1CapabilitiesCapabilityIdExecutionsExecutionIdUsageGetRequest {
|
|
118
|
+
executionId: string;
|
|
119
|
+
capabilityId: CapabilityId1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface GetExecutionV1CapabilitiesCapabilityIdExecutionsExecutionIdGetRequest {
|
|
123
|
+
executionId: string;
|
|
124
|
+
capabilityId: CapabilityId1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface GetFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackGetRequest {
|
|
128
|
+
executionId: string;
|
|
129
|
+
capabilityId: CapabilityId1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface ListCapabilitiesV1CapabilitiesGetRequest {
|
|
133
|
+
page?: number;
|
|
134
|
+
size?: number;
|
|
135
|
+
sort?: string;
|
|
136
|
+
filter?: string | null;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface ListCapabilityVersionsV1CapabilitiesCapabilityIdVersionsGetRequest {
|
|
140
|
+
capabilityId: CapabilityId1;
|
|
141
|
+
page?: number;
|
|
142
|
+
size?: number;
|
|
143
|
+
sort?: string;
|
|
144
|
+
filter?: string | null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface ListExecutionsV1CapabilitiesCapabilityIdExecutionsGetRequest {
|
|
148
|
+
capabilityId: CapabilityId1;
|
|
149
|
+
page?: number;
|
|
150
|
+
size?: number;
|
|
151
|
+
sort?: string;
|
|
152
|
+
filter?: string | null;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface ListFeedbackV1CapabilitiesCapabilityIdFeedbackGetRequest {
|
|
156
|
+
capabilityId: CapabilityId1;
|
|
157
|
+
page?: number;
|
|
158
|
+
size?: number;
|
|
159
|
+
sort?: string;
|
|
160
|
+
filter?: string | null;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface ProvideFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackPostRequest {
|
|
164
|
+
executionId: string;
|
|
165
|
+
capabilityId: CapabilityId1;
|
|
166
|
+
feedbackCreate: FeedbackCreate;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface ReadCapabilityV1CapabilitiesCapabilityIdGetRequest {
|
|
170
|
+
capabilityId: CapabilityId;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface SetDefaultCapabilityVersionV1CapabilitiesCapabilityIdDefaultVersionPutRequest {
|
|
174
|
+
capabilityId: CapabilityId1;
|
|
175
|
+
capabilitySetDefaultVersionRequest: CapabilitySetDefaultVersionRequest;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface StreamExecutionEventsV1CapabilitiesCapabilityIdExecutionsExecutionIdStreamGetRequest {
|
|
179
|
+
executionId: string;
|
|
180
|
+
capabilityId: CapabilityId1;
|
|
181
|
+
transport?: StreamingTransport | null;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface UpdateCapabilityV1CapabilitiesCapabilityIdPutRequest {
|
|
185
|
+
capabilityId: CapabilityId1;
|
|
186
|
+
capability2: Capability2;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
*/
|
|
192
|
+
export class CapabilitiesApi extends runtime.BaseAPI {
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Create a new capability
|
|
196
|
+
* Create Capability
|
|
197
|
+
*/
|
|
198
|
+
async createCapabilityV1CapabilitiesPostRaw(requestParameters: CreateCapabilityV1CapabilitiesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseCreateCapabilityV1CapabilitiesPost>> {
|
|
199
|
+
if (requestParameters['capability1'] == null) {
|
|
200
|
+
throw new runtime.RequiredError(
|
|
201
|
+
'capability1',
|
|
202
|
+
'Required parameter "capability1" was null or undefined when calling createCapabilityV1CapabilitiesPost().'
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const queryParameters: any = {};
|
|
207
|
+
|
|
208
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
209
|
+
|
|
210
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
211
|
+
|
|
212
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
213
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
217
|
+
const token = this.configuration.accessToken;
|
|
218
|
+
const tokenString = await token("HTTPBearer", []);
|
|
219
|
+
|
|
220
|
+
if (tokenString) {
|
|
221
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
let urlPath = `/v1/capabilities`;
|
|
226
|
+
|
|
227
|
+
const response = await this.request({
|
|
228
|
+
path: urlPath,
|
|
229
|
+
method: 'POST',
|
|
230
|
+
headers: headerParameters,
|
|
231
|
+
query: queryParameters,
|
|
232
|
+
body: Capability1ToJSON(requestParameters['capability1']),
|
|
233
|
+
}, initOverrides);
|
|
234
|
+
|
|
235
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ResponseCreateCapabilityV1CapabilitiesPostFromJSON(jsonValue));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Create a new capability
|
|
240
|
+
* Create Capability
|
|
241
|
+
*/
|
|
242
|
+
async createCapabilityV1CapabilitiesPost(requestParameters: CreateCapabilityV1CapabilitiesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseCreateCapabilityV1CapabilitiesPost> {
|
|
243
|
+
const response = await this.createCapabilityV1CapabilitiesPostRaw(requestParameters, initOverrides);
|
|
244
|
+
return await response.value();
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Delete a capability
|
|
249
|
+
* Delete Capability
|
|
250
|
+
*/
|
|
251
|
+
async deleteCapabilityV1CapabilitiesCapabilityIdDeleteRaw(requestParameters: DeleteCapabilityV1CapabilitiesCapabilityIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
252
|
+
if (requestParameters['capabilityId'] == null) {
|
|
253
|
+
throw new runtime.RequiredError(
|
|
254
|
+
'capabilityId',
|
|
255
|
+
'Required parameter "capabilityId" was null or undefined when calling deleteCapabilityV1CapabilitiesCapabilityIdDelete().'
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
const queryParameters: any = {};
|
|
260
|
+
|
|
261
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
262
|
+
|
|
263
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
264
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
268
|
+
const token = this.configuration.accessToken;
|
|
269
|
+
const tokenString = await token("HTTPBearer", []);
|
|
270
|
+
|
|
271
|
+
if (tokenString) {
|
|
272
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
let urlPath = `/v1/capabilities/{capability_id}`;
|
|
277
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
278
|
+
|
|
279
|
+
const response = await this.request({
|
|
280
|
+
path: urlPath,
|
|
281
|
+
method: 'DELETE',
|
|
282
|
+
headers: headerParameters,
|
|
283
|
+
query: queryParameters,
|
|
284
|
+
}, initOverrides);
|
|
285
|
+
|
|
286
|
+
return new runtime.VoidApiResponse(response);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Delete a capability
|
|
291
|
+
* Delete Capability
|
|
292
|
+
*/
|
|
293
|
+
async deleteCapabilityV1CapabilitiesCapabilityIdDelete(requestParameters: DeleteCapabilityV1CapabilitiesCapabilityIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
294
|
+
await this.deleteCapabilityV1CapabilitiesCapabilityIdDeleteRaw(requestParameters, initOverrides);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Delete feedback authored for an execution.
|
|
299
|
+
* Delete Feedback
|
|
300
|
+
*/
|
|
301
|
+
async deleteFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackDeleteRaw(requestParameters: DeleteFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
302
|
+
if (requestParameters['executionId'] == null) {
|
|
303
|
+
throw new runtime.RequiredError(
|
|
304
|
+
'executionId',
|
|
305
|
+
'Required parameter "executionId" was null or undefined when calling deleteFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackDelete().'
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if (requestParameters['capabilityId'] == null) {
|
|
310
|
+
throw new runtime.RequiredError(
|
|
311
|
+
'capabilityId',
|
|
312
|
+
'Required parameter "capabilityId" was null or undefined when calling deleteFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackDelete().'
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
const queryParameters: any = {};
|
|
317
|
+
|
|
318
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
319
|
+
|
|
320
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
321
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
325
|
+
const token = this.configuration.accessToken;
|
|
326
|
+
const tokenString = await token("HTTPBearer", []);
|
|
327
|
+
|
|
328
|
+
if (tokenString) {
|
|
329
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
let urlPath = `/v1/capabilities/{capability_id}/executions/{execution_id}/feedback`;
|
|
334
|
+
urlPath = urlPath.replace(`{${"execution_id"}}`, encodeURIComponent(String(requestParameters['executionId'])));
|
|
335
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
336
|
+
|
|
337
|
+
const response = await this.request({
|
|
338
|
+
path: urlPath,
|
|
339
|
+
method: 'DELETE',
|
|
340
|
+
headers: headerParameters,
|
|
341
|
+
query: queryParameters,
|
|
342
|
+
}, initOverrides);
|
|
343
|
+
|
|
344
|
+
return new runtime.VoidApiResponse(response);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Delete feedback authored for an execution.
|
|
349
|
+
* Delete Feedback
|
|
350
|
+
*/
|
|
351
|
+
async deleteFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackDelete(requestParameters: DeleteFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
352
|
+
await this.deleteFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackDeleteRaw(requestParameters, initOverrides);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Execute a capability with type-specific payload format
|
|
357
|
+
* Execute Capability
|
|
358
|
+
*/
|
|
359
|
+
async executeCapabilityV1CapabilitiesCapabilityIdExecutionsPostRaw(requestParameters: ExecuteCapabilityV1CapabilitiesCapabilityIdExecutionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Execution>> {
|
|
360
|
+
if (requestParameters['capabilityId'] == null) {
|
|
361
|
+
throw new runtime.RequiredError(
|
|
362
|
+
'capabilityId',
|
|
363
|
+
'Required parameter "capabilityId" was null or undefined when calling executeCapabilityV1CapabilitiesCapabilityIdExecutionsPost().'
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
if (requestParameters['executionCreate'] == null) {
|
|
368
|
+
throw new runtime.RequiredError(
|
|
369
|
+
'executionCreate',
|
|
370
|
+
'Required parameter "executionCreate" was null or undefined when calling executeCapabilityV1CapabilitiesCapabilityIdExecutionsPost().'
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
const queryParameters: any = {};
|
|
375
|
+
|
|
376
|
+
if (requestParameters['stream'] != null) {
|
|
377
|
+
queryParameters['stream'] = requestParameters['stream'];
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
if (requestParameters['streamTransport'] != null) {
|
|
381
|
+
queryParameters['stream_transport'] = requestParameters['streamTransport'];
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
385
|
+
|
|
386
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
387
|
+
|
|
388
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
389
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
393
|
+
const token = this.configuration.accessToken;
|
|
394
|
+
const tokenString = await token("HTTPBearer", []);
|
|
395
|
+
|
|
396
|
+
if (tokenString) {
|
|
397
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
let urlPath = `/v1/capabilities/{capability_id}/executions`;
|
|
402
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
403
|
+
|
|
404
|
+
const response = await this.request({
|
|
405
|
+
path: urlPath,
|
|
406
|
+
method: 'POST',
|
|
407
|
+
headers: headerParameters,
|
|
408
|
+
query: queryParameters,
|
|
409
|
+
body: ExecutionCreateToJSON(requestParameters['executionCreate']),
|
|
410
|
+
}, initOverrides);
|
|
411
|
+
|
|
412
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExecutionFromJSON(jsonValue));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Execute a capability with type-specific payload format
|
|
417
|
+
* Execute Capability
|
|
418
|
+
*/
|
|
419
|
+
async executeCapabilityV1CapabilitiesCapabilityIdExecutionsPost(requestParameters: ExecuteCapabilityV1CapabilitiesCapabilityIdExecutionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Execution> {
|
|
420
|
+
const response = await this.executeCapabilityV1CapabilitiesCapabilityIdExecutionsPostRaw(requestParameters, initOverrides);
|
|
421
|
+
return await response.value();
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Get a specific version of a capability
|
|
426
|
+
* Get Capability Version
|
|
427
|
+
*/
|
|
428
|
+
async getCapabilityVersionV1CapabilitiesCapabilityIdVersionsVersionGetRaw(requestParameters: GetCapabilityVersionV1CapabilitiesCapabilityIdVersionsVersionGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityRepresentation>> {
|
|
429
|
+
if (requestParameters['version'] == null) {
|
|
430
|
+
throw new runtime.RequiredError(
|
|
431
|
+
'version',
|
|
432
|
+
'Required parameter "version" was null or undefined when calling getCapabilityVersionV1CapabilitiesCapabilityIdVersionsVersionGet().'
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
if (requestParameters['capabilityId'] == null) {
|
|
437
|
+
throw new runtime.RequiredError(
|
|
438
|
+
'capabilityId',
|
|
439
|
+
'Required parameter "capabilityId" was null or undefined when calling getCapabilityVersionV1CapabilitiesCapabilityIdVersionsVersionGet().'
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
const queryParameters: any = {};
|
|
444
|
+
|
|
445
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
446
|
+
|
|
447
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
448
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
452
|
+
const token = this.configuration.accessToken;
|
|
453
|
+
const tokenString = await token("HTTPBearer", []);
|
|
454
|
+
|
|
455
|
+
if (tokenString) {
|
|
456
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
let urlPath = `/v1/capabilities/{capability_id}/versions/{version}`;
|
|
461
|
+
urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version'])));
|
|
462
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
463
|
+
|
|
464
|
+
const response = await this.request({
|
|
465
|
+
path: urlPath,
|
|
466
|
+
method: 'GET',
|
|
467
|
+
headers: headerParameters,
|
|
468
|
+
query: queryParameters,
|
|
469
|
+
}, initOverrides);
|
|
470
|
+
|
|
471
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CapabilityRepresentationFromJSON(jsonValue));
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Get a specific version of a capability
|
|
476
|
+
* Get Capability Version
|
|
477
|
+
*/
|
|
478
|
+
async getCapabilityVersionV1CapabilitiesCapabilityIdVersionsVersionGet(requestParameters: GetCapabilityVersionV1CapabilitiesCapabilityIdVersionsVersionGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityRepresentation> {
|
|
479
|
+
const response = await this.getCapabilityVersionV1CapabilitiesCapabilityIdVersionsVersionGetRaw(requestParameters, initOverrides);
|
|
480
|
+
return await response.value();
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Get callback delivery status for a capability execution
|
|
485
|
+
* Get Execution Callback
|
|
486
|
+
*/
|
|
487
|
+
async getExecutionCallbackV1CapabilitiesCapabilityIdExecutionsExecutionIdCallbackGetRaw(requestParameters: GetExecutionCallbackV1CapabilitiesCapabilityIdExecutionsExecutionIdCallbackGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExecutionCallback>> {
|
|
488
|
+
if (requestParameters['executionId'] == null) {
|
|
489
|
+
throw new runtime.RequiredError(
|
|
490
|
+
'executionId',
|
|
491
|
+
'Required parameter "executionId" was null or undefined when calling getExecutionCallbackV1CapabilitiesCapabilityIdExecutionsExecutionIdCallbackGet().'
|
|
492
|
+
);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
if (requestParameters['capabilityId'] == null) {
|
|
496
|
+
throw new runtime.RequiredError(
|
|
497
|
+
'capabilityId',
|
|
498
|
+
'Required parameter "capabilityId" was null or undefined when calling getExecutionCallbackV1CapabilitiesCapabilityIdExecutionsExecutionIdCallbackGet().'
|
|
499
|
+
);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
const queryParameters: any = {};
|
|
503
|
+
|
|
504
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
505
|
+
|
|
506
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
507
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
511
|
+
const token = this.configuration.accessToken;
|
|
512
|
+
const tokenString = await token("HTTPBearer", []);
|
|
513
|
+
|
|
514
|
+
if (tokenString) {
|
|
515
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
let urlPath = `/v1/capabilities/{capability_id}/executions/{execution_id}/callback`;
|
|
520
|
+
urlPath = urlPath.replace(`{${"execution_id"}}`, encodeURIComponent(String(requestParameters['executionId'])));
|
|
521
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
522
|
+
|
|
523
|
+
const response = await this.request({
|
|
524
|
+
path: urlPath,
|
|
525
|
+
method: 'GET',
|
|
526
|
+
headers: headerParameters,
|
|
527
|
+
query: queryParameters,
|
|
528
|
+
}, initOverrides);
|
|
529
|
+
|
|
530
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExecutionCallbackFromJSON(jsonValue));
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Get callback delivery status for a capability execution
|
|
535
|
+
* Get Execution Callback
|
|
536
|
+
*/
|
|
537
|
+
async getExecutionCallbackV1CapabilitiesCapabilityIdExecutionsExecutionIdCallbackGet(requestParameters: GetExecutionCallbackV1CapabilitiesCapabilityIdExecutionsExecutionIdCallbackGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExecutionCallback> {
|
|
538
|
+
const response = await this.getExecutionCallbackV1CapabilitiesCapabilityIdExecutionsExecutionIdCallbackGetRaw(requestParameters, initOverrides);
|
|
539
|
+
return await response.value();
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Get a capability execution result
|
|
544
|
+
* Get Execution Result
|
|
545
|
+
*/
|
|
546
|
+
async getExecutionResultV1CapabilitiesCapabilityIdExecutionsExecutionIdResultGetRaw(requestParameters: GetExecutionResultV1CapabilitiesCapabilityIdExecutionsExecutionIdResultGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExecutionResult>> {
|
|
547
|
+
if (requestParameters['executionId'] == null) {
|
|
548
|
+
throw new runtime.RequiredError(
|
|
549
|
+
'executionId',
|
|
550
|
+
'Required parameter "executionId" was null or undefined when calling getExecutionResultV1CapabilitiesCapabilityIdExecutionsExecutionIdResultGet().'
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
if (requestParameters['capabilityId'] == null) {
|
|
555
|
+
throw new runtime.RequiredError(
|
|
556
|
+
'capabilityId',
|
|
557
|
+
'Required parameter "capabilityId" was null or undefined when calling getExecutionResultV1CapabilitiesCapabilityIdExecutionsExecutionIdResultGet().'
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
const queryParameters: any = {};
|
|
562
|
+
|
|
563
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
564
|
+
|
|
565
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
566
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
570
|
+
const token = this.configuration.accessToken;
|
|
571
|
+
const tokenString = await token("HTTPBearer", []);
|
|
572
|
+
|
|
573
|
+
if (tokenString) {
|
|
574
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
let urlPath = `/v1/capabilities/{capability_id}/executions/{execution_id}/result`;
|
|
579
|
+
urlPath = urlPath.replace(`{${"execution_id"}}`, encodeURIComponent(String(requestParameters['executionId'])));
|
|
580
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
581
|
+
|
|
582
|
+
const response = await this.request({
|
|
583
|
+
path: urlPath,
|
|
584
|
+
method: 'GET',
|
|
585
|
+
headers: headerParameters,
|
|
586
|
+
query: queryParameters,
|
|
587
|
+
}, initOverrides);
|
|
588
|
+
|
|
589
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExecutionResultFromJSON(jsonValue));
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Get a capability execution result
|
|
594
|
+
* Get Execution Result
|
|
595
|
+
*/
|
|
596
|
+
async getExecutionResultV1CapabilitiesCapabilityIdExecutionsExecutionIdResultGet(requestParameters: GetExecutionResultV1CapabilitiesCapabilityIdExecutionsExecutionIdResultGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExecutionResult> {
|
|
597
|
+
const response = await this.getExecutionResultV1CapabilitiesCapabilityIdExecutionsExecutionIdResultGetRaw(requestParameters, initOverrides);
|
|
598
|
+
return await response.value();
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Get a capability execution usage
|
|
603
|
+
* Get Execution Usage
|
|
604
|
+
*/
|
|
605
|
+
async getExecutionUsageV1CapabilitiesCapabilityIdExecutionsExecutionIdUsageGetRaw(requestParameters: GetExecutionUsageV1CapabilitiesCapabilityIdExecutionsExecutionIdUsageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExecutionUsage>> {
|
|
606
|
+
if (requestParameters['executionId'] == null) {
|
|
607
|
+
throw new runtime.RequiredError(
|
|
608
|
+
'executionId',
|
|
609
|
+
'Required parameter "executionId" was null or undefined when calling getExecutionUsageV1CapabilitiesCapabilityIdExecutionsExecutionIdUsageGet().'
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if (requestParameters['capabilityId'] == null) {
|
|
614
|
+
throw new runtime.RequiredError(
|
|
615
|
+
'capabilityId',
|
|
616
|
+
'Required parameter "capabilityId" was null or undefined when calling getExecutionUsageV1CapabilitiesCapabilityIdExecutionsExecutionIdUsageGet().'
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
const queryParameters: any = {};
|
|
621
|
+
|
|
622
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
623
|
+
|
|
624
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
625
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
629
|
+
const token = this.configuration.accessToken;
|
|
630
|
+
const tokenString = await token("HTTPBearer", []);
|
|
631
|
+
|
|
632
|
+
if (tokenString) {
|
|
633
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
let urlPath = `/v1/capabilities/{capability_id}/executions/{execution_id}/usage`;
|
|
638
|
+
urlPath = urlPath.replace(`{${"execution_id"}}`, encodeURIComponent(String(requestParameters['executionId'])));
|
|
639
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
640
|
+
|
|
641
|
+
const response = await this.request({
|
|
642
|
+
path: urlPath,
|
|
643
|
+
method: 'GET',
|
|
644
|
+
headers: headerParameters,
|
|
645
|
+
query: queryParameters,
|
|
646
|
+
}, initOverrides);
|
|
647
|
+
|
|
648
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExecutionUsageFromJSON(jsonValue));
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Get a capability execution usage
|
|
653
|
+
* Get Execution Usage
|
|
654
|
+
*/
|
|
655
|
+
async getExecutionUsageV1CapabilitiesCapabilityIdExecutionsExecutionIdUsageGet(requestParameters: GetExecutionUsageV1CapabilitiesCapabilityIdExecutionsExecutionIdUsageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExecutionUsage> {
|
|
656
|
+
const response = await this.getExecutionUsageV1CapabilitiesCapabilityIdExecutionsExecutionIdUsageGetRaw(requestParameters, initOverrides);
|
|
657
|
+
return await response.value();
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Get a capability execution
|
|
662
|
+
* Get Execution
|
|
663
|
+
*/
|
|
664
|
+
async getExecutionV1CapabilitiesCapabilityIdExecutionsExecutionIdGetRaw(requestParameters: GetExecutionV1CapabilitiesCapabilityIdExecutionsExecutionIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Execution>> {
|
|
665
|
+
if (requestParameters['executionId'] == null) {
|
|
666
|
+
throw new runtime.RequiredError(
|
|
667
|
+
'executionId',
|
|
668
|
+
'Required parameter "executionId" was null or undefined when calling getExecutionV1CapabilitiesCapabilityIdExecutionsExecutionIdGet().'
|
|
669
|
+
);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
if (requestParameters['capabilityId'] == null) {
|
|
673
|
+
throw new runtime.RequiredError(
|
|
674
|
+
'capabilityId',
|
|
675
|
+
'Required parameter "capabilityId" was null or undefined when calling getExecutionV1CapabilitiesCapabilityIdExecutionsExecutionIdGet().'
|
|
676
|
+
);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
const queryParameters: any = {};
|
|
680
|
+
|
|
681
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
682
|
+
|
|
683
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
684
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
688
|
+
const token = this.configuration.accessToken;
|
|
689
|
+
const tokenString = await token("HTTPBearer", []);
|
|
690
|
+
|
|
691
|
+
if (tokenString) {
|
|
692
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
let urlPath = `/v1/capabilities/{capability_id}/executions/{execution_id}`;
|
|
697
|
+
urlPath = urlPath.replace(`{${"execution_id"}}`, encodeURIComponent(String(requestParameters['executionId'])));
|
|
698
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
699
|
+
|
|
700
|
+
const response = await this.request({
|
|
701
|
+
path: urlPath,
|
|
702
|
+
method: 'GET',
|
|
703
|
+
headers: headerParameters,
|
|
704
|
+
query: queryParameters,
|
|
705
|
+
}, initOverrides);
|
|
706
|
+
|
|
707
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExecutionFromJSON(jsonValue));
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Get a capability execution
|
|
712
|
+
* Get Execution
|
|
713
|
+
*/
|
|
714
|
+
async getExecutionV1CapabilitiesCapabilityIdExecutionsExecutionIdGet(requestParameters: GetExecutionV1CapabilitiesCapabilityIdExecutionsExecutionIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Execution> {
|
|
715
|
+
const response = await this.getExecutionV1CapabilitiesCapabilityIdExecutionsExecutionIdGetRaw(requestParameters, initOverrides);
|
|
716
|
+
return await response.value();
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Read feedback authored for a capability execution
|
|
721
|
+
* Get Feedback
|
|
722
|
+
*/
|
|
723
|
+
async getFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackGetRaw(requestParameters: GetFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Feedback>> {
|
|
724
|
+
if (requestParameters['executionId'] == null) {
|
|
725
|
+
throw new runtime.RequiredError(
|
|
726
|
+
'executionId',
|
|
727
|
+
'Required parameter "executionId" was null or undefined when calling getFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackGet().'
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
if (requestParameters['capabilityId'] == null) {
|
|
732
|
+
throw new runtime.RequiredError(
|
|
733
|
+
'capabilityId',
|
|
734
|
+
'Required parameter "capabilityId" was null or undefined when calling getFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackGet().'
|
|
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/capabilities/{capability_id}/executions/{execution_id}/feedback`;
|
|
756
|
+
urlPath = urlPath.replace(`{${"execution_id"}}`, encodeURIComponent(String(requestParameters['executionId'])));
|
|
757
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
758
|
+
|
|
759
|
+
const response = await this.request({
|
|
760
|
+
path: urlPath,
|
|
761
|
+
method: 'GET',
|
|
762
|
+
headers: headerParameters,
|
|
763
|
+
query: queryParameters,
|
|
764
|
+
}, initOverrides);
|
|
765
|
+
|
|
766
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FeedbackFromJSON(jsonValue));
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Read feedback authored for a capability execution
|
|
771
|
+
* Get Feedback
|
|
772
|
+
*/
|
|
773
|
+
async getFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackGet(requestParameters: GetFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Feedback> {
|
|
774
|
+
const response = await this.getFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackGetRaw(requestParameters, initOverrides);
|
|
775
|
+
return await response.value();
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* List all capabilities
|
|
780
|
+
* List Capabilities
|
|
781
|
+
*/
|
|
782
|
+
async listCapabilitiesV1CapabilitiesGetRaw(requestParameters: ListCapabilitiesV1CapabilitiesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedResponseModelCapability>> {
|
|
783
|
+
const queryParameters: any = {};
|
|
784
|
+
|
|
785
|
+
if (requestParameters['page'] != null) {
|
|
786
|
+
queryParameters['page'] = requestParameters['page'];
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
if (requestParameters['size'] != null) {
|
|
790
|
+
queryParameters['size'] = requestParameters['size'];
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
if (requestParameters['sort'] != null) {
|
|
794
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
if (requestParameters['filter'] != null) {
|
|
798
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
802
|
+
|
|
803
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
804
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
808
|
+
const token = this.configuration.accessToken;
|
|
809
|
+
const tokenString = await token("HTTPBearer", []);
|
|
810
|
+
|
|
811
|
+
if (tokenString) {
|
|
812
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
let urlPath = `/v1/capabilities`;
|
|
817
|
+
|
|
818
|
+
const response = await this.request({
|
|
819
|
+
path: urlPath,
|
|
820
|
+
method: 'GET',
|
|
821
|
+
headers: headerParameters,
|
|
822
|
+
query: queryParameters,
|
|
823
|
+
}, initOverrides);
|
|
824
|
+
|
|
825
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedResponseModelCapabilityFromJSON(jsonValue));
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* List all capabilities
|
|
830
|
+
* List Capabilities
|
|
831
|
+
*/
|
|
832
|
+
async listCapabilitiesV1CapabilitiesGet(requestParameters: ListCapabilitiesV1CapabilitiesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedResponseModelCapability> {
|
|
833
|
+
const response = await this.listCapabilitiesV1CapabilitiesGetRaw(requestParameters, initOverrides);
|
|
834
|
+
return await response.value();
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* List all versions of a capability
|
|
839
|
+
* List Capability Versions
|
|
840
|
+
*/
|
|
841
|
+
async listCapabilityVersionsV1CapabilitiesCapabilityIdVersionsGetRaw(requestParameters: ListCapabilityVersionsV1CapabilitiesCapabilityIdVersionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedResponseModelCapabilityVersion>> {
|
|
842
|
+
if (requestParameters['capabilityId'] == null) {
|
|
843
|
+
throw new runtime.RequiredError(
|
|
844
|
+
'capabilityId',
|
|
845
|
+
'Required parameter "capabilityId" was null or undefined when calling listCapabilityVersionsV1CapabilitiesCapabilityIdVersionsGet().'
|
|
846
|
+
);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
const queryParameters: any = {};
|
|
850
|
+
|
|
851
|
+
if (requestParameters['page'] != null) {
|
|
852
|
+
queryParameters['page'] = requestParameters['page'];
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
if (requestParameters['size'] != null) {
|
|
856
|
+
queryParameters['size'] = requestParameters['size'];
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
if (requestParameters['sort'] != null) {
|
|
860
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
if (requestParameters['filter'] != null) {
|
|
864
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
868
|
+
|
|
869
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
870
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
874
|
+
const token = this.configuration.accessToken;
|
|
875
|
+
const tokenString = await token("HTTPBearer", []);
|
|
876
|
+
|
|
877
|
+
if (tokenString) {
|
|
878
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
let urlPath = `/v1/capabilities/{capability_id}/versions`;
|
|
883
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
884
|
+
|
|
885
|
+
const response = await this.request({
|
|
886
|
+
path: urlPath,
|
|
887
|
+
method: 'GET',
|
|
888
|
+
headers: headerParameters,
|
|
889
|
+
query: queryParameters,
|
|
890
|
+
}, initOverrides);
|
|
891
|
+
|
|
892
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedResponseModelCapabilityVersionFromJSON(jsonValue));
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* List all versions of a capability
|
|
897
|
+
* List Capability Versions
|
|
898
|
+
*/
|
|
899
|
+
async listCapabilityVersionsV1CapabilitiesCapabilityIdVersionsGet(requestParameters: ListCapabilityVersionsV1CapabilitiesCapabilityIdVersionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedResponseModelCapabilityVersion> {
|
|
900
|
+
const response = await this.listCapabilityVersionsV1CapabilitiesCapabilityIdVersionsGetRaw(requestParameters, initOverrides);
|
|
901
|
+
return await response.value();
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* List all capability executions
|
|
906
|
+
* List Executions
|
|
907
|
+
*/
|
|
908
|
+
async listExecutionsV1CapabilitiesCapabilityIdExecutionsGetRaw(requestParameters: ListExecutionsV1CapabilitiesCapabilityIdExecutionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedResponseModelExecutionSparse>> {
|
|
909
|
+
if (requestParameters['capabilityId'] == null) {
|
|
910
|
+
throw new runtime.RequiredError(
|
|
911
|
+
'capabilityId',
|
|
912
|
+
'Required parameter "capabilityId" was null or undefined when calling listExecutionsV1CapabilitiesCapabilityIdExecutionsGet().'
|
|
913
|
+
);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
const queryParameters: any = {};
|
|
917
|
+
|
|
918
|
+
if (requestParameters['page'] != null) {
|
|
919
|
+
queryParameters['page'] = requestParameters['page'];
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
if (requestParameters['size'] != null) {
|
|
923
|
+
queryParameters['size'] = requestParameters['size'];
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
if (requestParameters['sort'] != null) {
|
|
927
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
if (requestParameters['filter'] != null) {
|
|
931
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
935
|
+
|
|
936
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
937
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
941
|
+
const token = this.configuration.accessToken;
|
|
942
|
+
const tokenString = await token("HTTPBearer", []);
|
|
943
|
+
|
|
944
|
+
if (tokenString) {
|
|
945
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
let urlPath = `/v1/capabilities/{capability_id}/executions`;
|
|
950
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
951
|
+
|
|
952
|
+
const response = await this.request({
|
|
953
|
+
path: urlPath,
|
|
954
|
+
method: 'GET',
|
|
955
|
+
headers: headerParameters,
|
|
956
|
+
query: queryParameters,
|
|
957
|
+
}, initOverrides);
|
|
958
|
+
|
|
959
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedResponseModelExecutionSparseFromJSON(jsonValue));
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* List all capability executions
|
|
964
|
+
* List Executions
|
|
965
|
+
*/
|
|
966
|
+
async listExecutionsV1CapabilitiesCapabilityIdExecutionsGet(requestParameters: ListExecutionsV1CapabilitiesCapabilityIdExecutionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedResponseModelExecutionSparse> {
|
|
967
|
+
const response = await this.listExecutionsV1CapabilitiesCapabilityIdExecutionsGetRaw(requestParameters, initOverrides);
|
|
968
|
+
return await response.value();
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* List feedback for a capability
|
|
973
|
+
* List Feedback
|
|
974
|
+
*/
|
|
975
|
+
async listFeedbackV1CapabilitiesCapabilityIdFeedbackGetRaw(requestParameters: ListFeedbackV1CapabilitiesCapabilityIdFeedbackGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedResponseModelFeedback>> {
|
|
976
|
+
if (requestParameters['capabilityId'] == null) {
|
|
977
|
+
throw new runtime.RequiredError(
|
|
978
|
+
'capabilityId',
|
|
979
|
+
'Required parameter "capabilityId" was null or undefined when calling listFeedbackV1CapabilitiesCapabilityIdFeedbackGet().'
|
|
980
|
+
);
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
const queryParameters: any = {};
|
|
984
|
+
|
|
985
|
+
if (requestParameters['page'] != null) {
|
|
986
|
+
queryParameters['page'] = requestParameters['page'];
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
if (requestParameters['size'] != null) {
|
|
990
|
+
queryParameters['size'] = requestParameters['size'];
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
if (requestParameters['sort'] != null) {
|
|
994
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
if (requestParameters['filter'] != null) {
|
|
998
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1002
|
+
|
|
1003
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1004
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1008
|
+
const token = this.configuration.accessToken;
|
|
1009
|
+
const tokenString = await token("HTTPBearer", []);
|
|
1010
|
+
|
|
1011
|
+
if (tokenString) {
|
|
1012
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
let urlPath = `/v1/capabilities/{capability_id}/feedback`;
|
|
1017
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
1018
|
+
|
|
1019
|
+
const response = await this.request({
|
|
1020
|
+
path: urlPath,
|
|
1021
|
+
method: 'GET',
|
|
1022
|
+
headers: headerParameters,
|
|
1023
|
+
query: queryParameters,
|
|
1024
|
+
}, initOverrides);
|
|
1025
|
+
|
|
1026
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedResponseModelFeedbackFromJSON(jsonValue));
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* List feedback for a capability
|
|
1031
|
+
* List Feedback
|
|
1032
|
+
*/
|
|
1033
|
+
async listFeedbackV1CapabilitiesCapabilityIdFeedbackGet(requestParameters: ListFeedbackV1CapabilitiesCapabilityIdFeedbackGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedResponseModelFeedback> {
|
|
1034
|
+
const response = await this.listFeedbackV1CapabilitiesCapabilityIdFeedbackGetRaw(requestParameters, initOverrides);
|
|
1035
|
+
return await response.value();
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Create or update feedback for a capability execution
|
|
1040
|
+
* Provide Feedback
|
|
1041
|
+
*/
|
|
1042
|
+
async provideFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackPostRaw(requestParameters: ProvideFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Feedback>> {
|
|
1043
|
+
if (requestParameters['executionId'] == null) {
|
|
1044
|
+
throw new runtime.RequiredError(
|
|
1045
|
+
'executionId',
|
|
1046
|
+
'Required parameter "executionId" was null or undefined when calling provideFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackPost().'
|
|
1047
|
+
);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
if (requestParameters['capabilityId'] == null) {
|
|
1051
|
+
throw new runtime.RequiredError(
|
|
1052
|
+
'capabilityId',
|
|
1053
|
+
'Required parameter "capabilityId" was null or undefined when calling provideFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackPost().'
|
|
1054
|
+
);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
if (requestParameters['feedbackCreate'] == null) {
|
|
1058
|
+
throw new runtime.RequiredError(
|
|
1059
|
+
'feedbackCreate',
|
|
1060
|
+
'Required parameter "feedbackCreate" was null or undefined when calling provideFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackPost().'
|
|
1061
|
+
);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
const queryParameters: any = {};
|
|
1065
|
+
|
|
1066
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1067
|
+
|
|
1068
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1069
|
+
|
|
1070
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1071
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1075
|
+
const token = this.configuration.accessToken;
|
|
1076
|
+
const tokenString = await token("HTTPBearer", []);
|
|
1077
|
+
|
|
1078
|
+
if (tokenString) {
|
|
1079
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
let urlPath = `/v1/capabilities/{capability_id}/executions/{execution_id}/feedback`;
|
|
1084
|
+
urlPath = urlPath.replace(`{${"execution_id"}}`, encodeURIComponent(String(requestParameters['executionId'])));
|
|
1085
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
1086
|
+
|
|
1087
|
+
const response = await this.request({
|
|
1088
|
+
path: urlPath,
|
|
1089
|
+
method: 'POST',
|
|
1090
|
+
headers: headerParameters,
|
|
1091
|
+
query: queryParameters,
|
|
1092
|
+
body: FeedbackCreateToJSON(requestParameters['feedbackCreate']),
|
|
1093
|
+
}, initOverrides);
|
|
1094
|
+
|
|
1095
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FeedbackFromJSON(jsonValue));
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Create or update feedback for a capability execution
|
|
1100
|
+
* Provide Feedback
|
|
1101
|
+
*/
|
|
1102
|
+
async provideFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackPost(requestParameters: ProvideFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Feedback> {
|
|
1103
|
+
const response = await this.provideFeedbackV1CapabilitiesCapabilityIdExecutionsExecutionIdFeedbackPostRaw(requestParameters, initOverrides);
|
|
1104
|
+
return await response.value();
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Get a single capability
|
|
1109
|
+
* Read Capability
|
|
1110
|
+
*/
|
|
1111
|
+
async readCapabilityV1CapabilitiesCapabilityIdGetRaw(requestParameters: ReadCapabilityV1CapabilitiesCapabilityIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityRepresentation>> {
|
|
1112
|
+
if (requestParameters['capabilityId'] == null) {
|
|
1113
|
+
throw new runtime.RequiredError(
|
|
1114
|
+
'capabilityId',
|
|
1115
|
+
'Required parameter "capabilityId" was null or undefined when calling readCapabilityV1CapabilitiesCapabilityIdGet().'
|
|
1116
|
+
);
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
const queryParameters: any = {};
|
|
1120
|
+
|
|
1121
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1122
|
+
|
|
1123
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1124
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1128
|
+
const token = this.configuration.accessToken;
|
|
1129
|
+
const tokenString = await token("HTTPBearer", []);
|
|
1130
|
+
|
|
1131
|
+
if (tokenString) {
|
|
1132
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
let urlPath = `/v1/capabilities/{capability_id}`;
|
|
1137
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
1138
|
+
|
|
1139
|
+
const response = await this.request({
|
|
1140
|
+
path: urlPath,
|
|
1141
|
+
method: 'GET',
|
|
1142
|
+
headers: headerParameters,
|
|
1143
|
+
query: queryParameters,
|
|
1144
|
+
}, initOverrides);
|
|
1145
|
+
|
|
1146
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CapabilityRepresentationFromJSON(jsonValue));
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Get a single capability
|
|
1151
|
+
* Read Capability
|
|
1152
|
+
*/
|
|
1153
|
+
async readCapabilityV1CapabilitiesCapabilityIdGet(requestParameters: ReadCapabilityV1CapabilitiesCapabilityIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityRepresentation> {
|
|
1154
|
+
const response = await this.readCapabilityV1CapabilitiesCapabilityIdGetRaw(requestParameters, initOverrides);
|
|
1155
|
+
return await response.value();
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* Set a capability version as the default version
|
|
1160
|
+
* Set Default Capability Version
|
|
1161
|
+
*/
|
|
1162
|
+
async setDefaultCapabilityVersionV1CapabilitiesCapabilityIdDefaultVersionPutRaw(requestParameters: SetDefaultCapabilityVersionV1CapabilitiesCapabilityIdDefaultVersionPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityRepresentation>> {
|
|
1163
|
+
if (requestParameters['capabilityId'] == null) {
|
|
1164
|
+
throw new runtime.RequiredError(
|
|
1165
|
+
'capabilityId',
|
|
1166
|
+
'Required parameter "capabilityId" was null or undefined when calling setDefaultCapabilityVersionV1CapabilitiesCapabilityIdDefaultVersionPut().'
|
|
1167
|
+
);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
if (requestParameters['capabilitySetDefaultVersionRequest'] == null) {
|
|
1171
|
+
throw new runtime.RequiredError(
|
|
1172
|
+
'capabilitySetDefaultVersionRequest',
|
|
1173
|
+
'Required parameter "capabilitySetDefaultVersionRequest" was null or undefined when calling setDefaultCapabilityVersionV1CapabilitiesCapabilityIdDefaultVersionPut().'
|
|
1174
|
+
);
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
const queryParameters: any = {};
|
|
1178
|
+
|
|
1179
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1180
|
+
|
|
1181
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1182
|
+
|
|
1183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1184
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1188
|
+
const token = this.configuration.accessToken;
|
|
1189
|
+
const tokenString = await token("HTTPBearer", []);
|
|
1190
|
+
|
|
1191
|
+
if (tokenString) {
|
|
1192
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
let urlPath = `/v1/capabilities/{capability_id}/default-version`;
|
|
1197
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
1198
|
+
|
|
1199
|
+
const response = await this.request({
|
|
1200
|
+
path: urlPath,
|
|
1201
|
+
method: 'PUT',
|
|
1202
|
+
headers: headerParameters,
|
|
1203
|
+
query: queryParameters,
|
|
1204
|
+
body: CapabilitySetDefaultVersionRequestToJSON(requestParameters['capabilitySetDefaultVersionRequest']),
|
|
1205
|
+
}, initOverrides);
|
|
1206
|
+
|
|
1207
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CapabilityRepresentationFromJSON(jsonValue));
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Set a capability version as the default version
|
|
1212
|
+
* Set Default Capability Version
|
|
1213
|
+
*/
|
|
1214
|
+
async setDefaultCapabilityVersionV1CapabilitiesCapabilityIdDefaultVersionPut(requestParameters: SetDefaultCapabilityVersionV1CapabilitiesCapabilityIdDefaultVersionPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityRepresentation> {
|
|
1215
|
+
const response = await this.setDefaultCapabilityVersionV1CapabilitiesCapabilityIdDefaultVersionPutRaw(requestParameters, initOverrides);
|
|
1216
|
+
return await response.value();
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Stream incremental updates for a capability execution
|
|
1221
|
+
* Stream Execution Events
|
|
1222
|
+
*/
|
|
1223
|
+
async streamExecutionEventsV1CapabilitiesCapabilityIdExecutionsExecutionIdStreamGetRaw(requestParameters: StreamExecutionEventsV1CapabilitiesCapabilityIdExecutionsExecutionIdStreamGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
|
|
1224
|
+
if (requestParameters['executionId'] == null) {
|
|
1225
|
+
throw new runtime.RequiredError(
|
|
1226
|
+
'executionId',
|
|
1227
|
+
'Required parameter "executionId" was null or undefined when calling streamExecutionEventsV1CapabilitiesCapabilityIdExecutionsExecutionIdStreamGet().'
|
|
1228
|
+
);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
if (requestParameters['capabilityId'] == null) {
|
|
1232
|
+
throw new runtime.RequiredError(
|
|
1233
|
+
'capabilityId',
|
|
1234
|
+
'Required parameter "capabilityId" was null or undefined when calling streamExecutionEventsV1CapabilitiesCapabilityIdExecutionsExecutionIdStreamGet().'
|
|
1235
|
+
);
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
const queryParameters: any = {};
|
|
1239
|
+
|
|
1240
|
+
if (requestParameters['transport'] != null) {
|
|
1241
|
+
queryParameters['transport'] = requestParameters['transport'];
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1245
|
+
|
|
1246
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1247
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1251
|
+
const token = this.configuration.accessToken;
|
|
1252
|
+
const tokenString = await token("HTTPBearer", []);
|
|
1253
|
+
|
|
1254
|
+
if (tokenString) {
|
|
1255
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
let urlPath = `/v1/capabilities/{capability_id}/executions/{execution_id}/stream`;
|
|
1260
|
+
urlPath = urlPath.replace(`{${"execution_id"}}`, encodeURIComponent(String(requestParameters['executionId'])));
|
|
1261
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
1262
|
+
|
|
1263
|
+
const response = await this.request({
|
|
1264
|
+
path: urlPath,
|
|
1265
|
+
method: 'GET',
|
|
1266
|
+
headers: headerParameters,
|
|
1267
|
+
query: queryParameters,
|
|
1268
|
+
}, initOverrides);
|
|
1269
|
+
|
|
1270
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
1271
|
+
return new runtime.JSONApiResponse<any>(response);
|
|
1272
|
+
} else {
|
|
1273
|
+
return new runtime.TextApiResponse(response) as any;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Stream incremental updates for a capability execution
|
|
1279
|
+
* Stream Execution Events
|
|
1280
|
+
*/
|
|
1281
|
+
async streamExecutionEventsV1CapabilitiesCapabilityIdExecutionsExecutionIdStreamGet(requestParameters: StreamExecutionEventsV1CapabilitiesCapabilityIdExecutionsExecutionIdStreamGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
|
|
1282
|
+
const response = await this.streamExecutionEventsV1CapabilitiesCapabilityIdExecutionsExecutionIdStreamGetRaw(requestParameters, initOverrides);
|
|
1283
|
+
return await response.value();
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Update a capability
|
|
1288
|
+
* Update Capability
|
|
1289
|
+
*/
|
|
1290
|
+
async updateCapabilityV1CapabilitiesCapabilityIdPutRaw(requestParameters: UpdateCapabilityV1CapabilitiesCapabilityIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityRepresentation>> {
|
|
1291
|
+
if (requestParameters['capabilityId'] == null) {
|
|
1292
|
+
throw new runtime.RequiredError(
|
|
1293
|
+
'capabilityId',
|
|
1294
|
+
'Required parameter "capabilityId" was null or undefined when calling updateCapabilityV1CapabilitiesCapabilityIdPut().'
|
|
1295
|
+
);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
if (requestParameters['capability2'] == null) {
|
|
1299
|
+
throw new runtime.RequiredError(
|
|
1300
|
+
'capability2',
|
|
1301
|
+
'Required parameter "capability2" was null or undefined when calling updateCapabilityV1CapabilitiesCapabilityIdPut().'
|
|
1302
|
+
);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
const queryParameters: any = {};
|
|
1306
|
+
|
|
1307
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1308
|
+
|
|
1309
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1310
|
+
|
|
1311
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1312
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // APIKeyHeader authentication
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1316
|
+
const token = this.configuration.accessToken;
|
|
1317
|
+
const tokenString = await token("HTTPBearer", []);
|
|
1318
|
+
|
|
1319
|
+
if (tokenString) {
|
|
1320
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
let urlPath = `/v1/capabilities/{capability_id}`;
|
|
1325
|
+
urlPath = urlPath.replace(`{${"capability_id"}}`, encodeURIComponent(String(requestParameters['capabilityId'])));
|
|
1326
|
+
|
|
1327
|
+
const response = await this.request({
|
|
1328
|
+
path: urlPath,
|
|
1329
|
+
method: 'PUT',
|
|
1330
|
+
headers: headerParameters,
|
|
1331
|
+
query: queryParameters,
|
|
1332
|
+
body: Capability2ToJSON(requestParameters['capability2']),
|
|
1333
|
+
}, initOverrides);
|
|
1334
|
+
|
|
1335
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CapabilityRepresentationFromJSON(jsonValue));
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* Update a capability
|
|
1340
|
+
* Update Capability
|
|
1341
|
+
*/
|
|
1342
|
+
async updateCapabilityV1CapabilitiesCapabilityIdPut(requestParameters: UpdateCapabilityV1CapabilitiesCapabilityIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityRepresentation> {
|
|
1343
|
+
const response = await this.updateCapabilityV1CapabilitiesCapabilityIdPutRaw(requestParameters, initOverrides);
|
|
1344
|
+
return await response.value();
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
}
|