@quantum-hub/qhub-api 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/api/platform/BaseClient.d.ts +43 -0
- package/dist/api/platform/BaseClient.js +66 -0
- package/dist/api/platform/Client.d.ts +41 -0
- package/dist/api/platform/Client.js +62 -0
- package/dist/api/platform/api/errors/BadRequestError.d.ts +5 -0
- package/dist/api/platform/api/errors/BadRequestError.js +54 -0
- package/dist/api/platform/api/errors/ForbiddenError.d.ts +5 -0
- package/dist/api/platform/api/errors/ForbiddenError.js +54 -0
- package/dist/api/platform/api/errors/InternalServerError.d.ts +5 -0
- package/dist/api/platform/api/errors/InternalServerError.js +54 -0
- package/dist/api/platform/api/errors/NotFoundError.d.ts +5 -0
- package/dist/api/platform/api/errors/NotFoundError.js +54 -0
- package/dist/api/platform/api/errors/UnauthorizedError.d.ts +5 -0
- package/dist/api/platform/api/errors/UnauthorizedError.js +54 -0
- package/dist/api/platform/api/errors/index.d.ts +5 -0
- package/dist/api/platform/api/errors/index.js +21 -0
- package/dist/api/platform/api/index.d.ts +3 -0
- package/dist/api/platform/api/index.js +19 -0
- package/dist/api/platform/api/resources/applications/client/Client.d.ts +120 -0
- package/dist/api/platform/api/resources/applications/client/Client.js +425 -0
- package/dist/api/platform/api/resources/applications/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/applications/client/index.js +17 -0
- package/dist/api/platform/api/resources/applications/client/requests/CreateApplicationRequest.d.ts +7 -0
- package/dist/api/platform/api/resources/applications/client/requests/CreateApplicationRequest.js +3 -0
- package/dist/api/platform/api/resources/applications/client/requests/DeleteApplicationRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/applications/client/requests/DeleteApplicationRequest.js +3 -0
- package/dist/api/platform/api/resources/applications/client/requests/GetApplicationAccessKeysRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/applications/client/requests/GetApplicationAccessKeysRequest.js +3 -0
- package/dist/api/platform/api/resources/applications/client/requests/GetApplicationRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/applications/client/requests/GetApplicationRequest.js +3 -0
- package/dist/api/platform/api/resources/applications/client/requests/GetApplicationSubscriptionsRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/applications/client/requests/GetApplicationSubscriptionsRequest.js +3 -0
- package/dist/api/platform/api/resources/applications/client/requests/index.d.ts +5 -0
- package/dist/api/platform/api/resources/applications/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/applications/index.d.ts +1 -0
- package/dist/api/platform/api/resources/applications/index.js +17 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/Client.d.ts +163 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/Client.js +538 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/index.js +17 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/AddConstraint1Request.d.ts +14 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/AddConstraint1Request.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/DeleteConstraint1Request.d.ts +13 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/DeleteConstraint1Request.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/DeleteShare1Request.d.ts +11 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/DeleteShare1Request.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/GetSharesForDataPoolRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/GetSharesForDataPoolRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/ShareDataPoolRequest.d.ts +12 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/ShareDataPoolRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/UpdateRole1Request.d.ts +14 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/UpdateRole1Request.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/UpdateTimeBasedConstraint1Request.d.ts +19 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/UpdateTimeBasedConstraint1Request.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/index.d.ts +7 -0
- package/dist/api/platform/api/resources/dataPoolShares/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/dataPoolShares/index.d.ts +2 -0
- package/dist/api/platform/api/resources/dataPoolShares/index.js +18 -0
- package/dist/api/platform/api/resources/dataPoolShares/types/AddConstraint1Response.d.ts +2 -0
- package/dist/api/platform/api/resources/dataPoolShares/types/AddConstraint1Response.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1RequestBody.d.ts +2 -0
- package/dist/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1RequestBody.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1Response.d.ts +2 -0
- package/dist/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1Response.js +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/types/index.d.ts +3 -0
- package/dist/api/platform/api/resources/dataPoolShares/types/index.js +19 -0
- package/dist/api/platform/api/resources/dataPools/client/Client.d.ts +170 -0
- package/dist/api/platform/api/resources/dataPools/client/Client.js +624 -0
- package/dist/api/platform/api/resources/dataPools/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/dataPools/client/index.js +17 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/AddDataPoolFileRequest.d.ts +13 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/AddDataPoolFileRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/CreateDataPoolRequest.d.ts +14 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/CreateDataPoolRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolFileRequest.d.ts +11 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolFileRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolFileRequest.d.ts +11 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolFileRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolFilesRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolFilesRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/GetDataPoolRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/UpdateDataPoolRequest.d.ts +17 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/UpdateDataPoolRequest.js +3 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/index.d.ts +8 -0
- package/dist/api/platform/api/resources/dataPools/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/dataPools/index.d.ts +1 -0
- package/dist/api/platform/api/resources/dataPools/index.js +17 -0
- package/dist/api/platform/api/resources/index.d.ts +23 -0
- package/dist/api/platform/api/resources/index.js +62 -0
- package/dist/api/platform/api/resources/organizations/client/Client.d.ts +33 -0
- package/dist/api/platform/api/resources/organizations/client/Client.js +119 -0
- package/dist/api/platform/api/resources/organizations/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/organizations/client/index.js +17 -0
- package/dist/api/platform/api/resources/organizations/client/requests/GetServiceExecutions1Request.d.ts +9 -0
- package/dist/api/platform/api/resources/organizations/client/requests/GetServiceExecutions1Request.js +3 -0
- package/dist/api/platform/api/resources/organizations/client/requests/index.d.ts +1 -0
- package/dist/api/platform/api/resources/organizations/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/organizations/index.d.ts +1 -0
- package/dist/api/platform/api/resources/organizations/index.js +17 -0
- package/dist/api/platform/api/resources/quantumJobs/client/Client.d.ts +31 -0
- package/dist/api/platform/api/resources/quantumJobs/client/Client.js +113 -0
- package/dist/api/platform/api/resources/quantumJobs/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/quantumJobs/client/index.js +17 -0
- package/dist/api/platform/api/resources/quantumJobs/client/requests/GetQuantumJobCostsRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/quantumJobs/client/requests/GetQuantumJobCostsRequest.js +3 -0
- package/dist/api/platform/api/resources/quantumJobs/client/requests/index.d.ts +1 -0
- package/dist/api/platform/api/resources/quantumJobs/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/quantumJobs/index.d.ts +1 -0
- package/dist/api/platform/api/resources/quantumJobs/index.js +17 -0
- package/dist/api/platform/api/resources/quantumWorkloads/client/Client.d.ts +31 -0
- package/dist/api/platform/api/resources/quantumWorkloads/client/Client.js +113 -0
- package/dist/api/platform/api/resources/quantumWorkloads/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/quantumWorkloads/client/index.js +17 -0
- package/dist/api/platform/api/resources/quantumWorkloads/client/requests/GetQuantumWorkloadCostsRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/quantumWorkloads/client/requests/GetQuantumWorkloadCostsRequest.js +3 -0
- package/dist/api/platform/api/resources/quantumWorkloads/client/requests/index.d.ts +1 -0
- package/dist/api/platform/api/resources/quantumWorkloads/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/quantumWorkloads/index.d.ts +1 -0
- package/dist/api/platform/api/resources/quantumWorkloads/index.js +17 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/Client.d.ts +167 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/Client.js +623 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/index.js +17 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/CancelServiceExecutionRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/CancelServiceExecutionRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionCostsRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionCostsRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionLogsRequest.d.ts +13 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionLogsRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionMetricsRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionMetricsRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultFileRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultFileRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionsRequest.d.ts +24 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionsRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/HeadServiceExecutionRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/HeadServiceExecutionRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/index.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceExecutions/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/serviceExecutions/index.d.ts +2 -0
- package/dist/api/platform/api/resources/serviceExecutions/index.js +18 -0
- package/dist/api/platform/api/resources/serviceExecutions/types/GetServiceExecutionResponse.d.ts +2 -0
- package/dist/api/platform/api/resources/serviceExecutions/types/GetServiceExecutionResponse.js +3 -0
- package/dist/api/platform/api/resources/serviceExecutions/types/index.d.ts +1 -0
- package/dist/api/platform/api/resources/serviceExecutions/types/index.js +17 -0
- package/dist/api/platform/api/resources/serviceJobs/client/Client.d.ts +87 -0
- package/dist/api/platform/api/resources/serviceJobs/client/Client.js +322 -0
- package/dist/api/platform/api/resources/serviceJobs/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/serviceJobs/client/index.js +17 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.d.ts +14 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobsRequest.d.ts +22 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobsRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/RerunServiceJobRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/RerunServiceJobRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/index.d.ts +4 -0
- package/dist/api/platform/api/resources/serviceJobs/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/serviceJobs/index.d.ts +1 -0
- package/dist/api/platform/api/resources/serviceJobs/index.js +17 -0
- package/dist/api/platform/api/resources/serviceShares/client/Client.d.ts +163 -0
- package/dist/api/platform/api/resources/serviceShares/client/Client.js +538 -0
- package/dist/api/platform/api/resources/serviceShares/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/serviceShares/client/index.js +17 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/AddConstraintRequest.d.ts +14 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/AddConstraintRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/DeleteConstraintRequest.d.ts +13 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/DeleteConstraintRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/DeleteShareRequest.d.ts +11 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/DeleteShareRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/GetSharesForServiceRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/GetSharesForServiceRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/ShareServiceRequest.d.ts +12 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/ShareServiceRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/UpdateRoleRequest.d.ts +14 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/UpdateRoleRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/UpdateTimeBasedConstraintRequest.d.ts +19 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/UpdateTimeBasedConstraintRequest.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/index.d.ts +7 -0
- package/dist/api/platform/api/resources/serviceShares/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/serviceShares/index.d.ts +2 -0
- package/dist/api/platform/api/resources/serviceShares/index.js +18 -0
- package/dist/api/platform/api/resources/serviceShares/types/AddConstraintResponse.d.ts +2 -0
- package/dist/api/platform/api/resources/serviceShares/types/AddConstraintResponse.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintRequestBody.d.ts +2 -0
- package/dist/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintRequestBody.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintResponse.d.ts +2 -0
- package/dist/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintResponse.js +3 -0
- package/dist/api/platform/api/resources/serviceShares/types/index.d.ts +3 -0
- package/dist/api/platform/api/resources/serviceShares/types/index.js +19 -0
- package/dist/api/platform/api/resources/subscriptions/client/Client.d.ts +87 -0
- package/dist/api/platform/api/resources/subscriptions/client/Client.js +305 -0
- package/dist/api/platform/api/resources/subscriptions/client/index.d.ts +1 -0
- package/dist/api/platform/api/resources/subscriptions/client/index.js +17 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.ts +8 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.js +3 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/DeleteSubscriptionRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/DeleteSubscriptionRequest.js +3 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionRequest.js +3 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionServiceExecutionsRequest.d.ts +9 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionServiceExecutionsRequest.js +3 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/index.d.ts +4 -0
- package/dist/api/platform/api/resources/subscriptions/client/requests/index.js +2 -0
- package/dist/api/platform/api/resources/subscriptions/index.d.ts +1 -0
- package/dist/api/platform/api/resources/subscriptions/index.js +17 -0
- package/dist/api/platform/api/types/AccessKey.d.ts +12 -0
- package/dist/api/platform/api/types/AccessKey.js +11 -0
- package/dist/api/platform/api/types/ActivityInstance.d.ts +19 -0
- package/dist/api/platform/api/types/ActivityInstance.js +12 -0
- package/dist/api/platform/api/types/ApplicationDto.d.ts +19 -0
- package/dist/api/platform/api/types/ApplicationDto.js +13 -0
- package/dist/api/platform/api/types/CostEntry.d.ts +20 -0
- package/dist/api/platform/api/types/CostEntry.js +3 -0
- package/dist/api/platform/api/types/CreateShareConstraintDto.d.ts +7 -0
- package/dist/api/platform/api/types/CreateShareConstraintDto.js +3 -0
- package/dist/api/platform/api/types/CreateShareRequestDto.d.ts +13 -0
- package/dist/api/platform/api/types/CreateShareRequestDto.js +12 -0
- package/dist/api/platform/api/types/CreateTimeBasedConstraintDto.d.ts +4 -0
- package/dist/api/platform/api/types/CreateTimeBasedConstraintDto.js +3 -0
- package/dist/api/platform/api/types/DataPoolDto.d.ts +25 -0
- package/dist/api/platform/api/types/DataPoolDto.js +13 -0
- package/dist/api/platform/api/types/DataPoolFileDto.d.ts +16 -0
- package/dist/api/platform/api/types/DataPoolFileDto.js +3 -0
- package/dist/api/platform/api/types/Incident.d.ts +8 -0
- package/dist/api/platform/api/types/Incident.js +3 -0
- package/dist/api/platform/api/types/LogEntry.d.ts +19 -0
- package/dist/api/platform/api/types/LogEntry.js +15 -0
- package/dist/api/platform/api/types/MetricDataPoint.d.ts +9 -0
- package/dist/api/platform/api/types/MetricDataPoint.js +3 -0
- package/dist/api/platform/api/types/OauthScope.d.ts +4 -0
- package/dist/api/platform/api/types/OauthScope.js +7 -0
- package/dist/api/platform/api/types/OrganizationSearchResultDto.d.ts +4 -0
- package/dist/api/platform/api/types/OrganizationSearchResultDto.js +3 -0
- package/dist/api/platform/api/types/OrganizationTenant.d.ts +3 -0
- package/dist/api/platform/api/types/OrganizationTenant.js +3 -0
- package/dist/api/platform/api/types/PageResponseServiceExecutionDto.d.ts +28 -0
- package/dist/api/platform/api/types/PageResponseServiceExecutionDto.js +3 -0
- package/dist/api/platform/api/types/PageResponseServiceJobDto.d.ts +28 -0
- package/dist/api/platform/api/types/PageResponseServiceJobDto.js +3 -0
- package/dist/api/platform/api/types/PricingPlanDto.d.ts +14 -0
- package/dist/api/platform/api/types/PricingPlanDto.js +12 -0
- package/dist/api/platform/api/types/ProductDto.d.ts +36 -0
- package/dist/api/platform/api/types/ProductDto.js +32 -0
- package/dist/api/platform/api/types/QuantumJobCosts.d.ts +2 -0
- package/dist/api/platform/api/types/QuantumJobCosts.js +3 -0
- package/dist/api/platform/api/types/QuantumWorkloadCosts.d.ts +9 -0
- package/dist/api/platform/api/types/QuantumWorkloadCosts.js +3 -0
- package/dist/api/platform/api/types/ServiceConsumerDto.d.ts +24 -0
- package/dist/api/platform/api/types/ServiceConsumerDto.js +17 -0
- package/dist/api/platform/api/types/ServiceExecution.d.ts +4 -0
- package/dist/api/platform/api/types/ServiceExecution.js +3 -0
- package/dist/api/platform/api/types/ServiceExecutionCosts.d.ts +2 -0
- package/dist/api/platform/api/types/ServiceExecutionCosts.js +3 -0
- package/dist/api/platform/api/types/ServiceExecutionDto.d.ts +41 -0
- package/dist/api/platform/api/types/ServiceExecutionDto.js +22 -0
- package/dist/api/platform/api/types/ServiceExecutionLogs.d.ts +2 -0
- package/dist/api/platform/api/types/ServiceExecutionLogs.js +3 -0
- package/dist/api/platform/api/types/ServiceExecutionMetrics.d.ts +20 -0
- package/dist/api/platform/api/types/ServiceExecutionMetrics.js +3 -0
- package/dist/api/platform/api/types/ServiceJobDto.d.ts +42 -0
- package/dist/api/platform/api/types/ServiceJobDto.js +22 -0
- package/dist/api/platform/api/types/ShareConstraintDto.d.ts +13 -0
- package/dist/api/platform/api/types/ShareConstraintDto.js +3 -0
- package/dist/api/platform/api/types/ShareDto.d.ts +22 -0
- package/dist/api/platform/api/types/ShareDto.js +12 -0
- package/dist/api/platform/api/types/SortOrder.d.ts +17 -0
- package/dist/api/platform/api/types/SortOrder.js +12 -0
- package/dist/api/platform/api/types/SubscriptionDto.d.ts +8 -0
- package/dist/api/platform/api/types/SubscriptionDto.js +3 -0
- package/dist/api/platform/api/types/TenantId.d.ts +13 -0
- package/dist/api/platform/api/types/TenantId.js +3 -0
- package/dist/api/platform/api/types/TimeBasedConstraintDto.d.ts +5 -0
- package/dist/api/platform/api/types/TimeBasedConstraintDto.js +3 -0
- package/dist/api/platform/api/types/UpdateResourceShareRoleDto.d.ts +11 -0
- package/dist/api/platform/api/types/UpdateResourceShareRoleDto.js +12 -0
- package/dist/api/platform/api/types/UserTenant.d.ts +3 -0
- package/dist/api/platform/api/types/UserTenant.js +3 -0
- package/dist/api/platform/api/types/VariableInstance.d.ts +9 -0
- package/dist/api/platform/api/types/VariableInstance.js +3 -0
- package/dist/api/platform/api/types/WorkflowInstance.d.ts +21 -0
- package/dist/api/platform/api/types/WorkflowInstance.js +15 -0
- package/dist/api/platform/api/types/WorkflowServiceExecutionDto.d.ts +44 -0
- package/dist/api/platform/api/types/WorkflowServiceExecutionDto.js +22 -0
- package/dist/api/platform/api/types/index.d.ts +39 -0
- package/dist/api/platform/api/types/index.js +55 -0
- package/dist/api/platform/auth/HeaderAuthProvider.d.ts +20 -0
- package/dist/api/platform/auth/HeaderAuthProvider.js +70 -0
- package/dist/api/platform/auth/index.d.ts +1 -0
- package/dist/api/platform/auth/index.js +5 -0
- package/dist/api/platform/core/auth/AuthProvider.d.ts +7 -0
- package/dist/api/platform/core/auth/AuthProvider.js +2 -0
- package/dist/api/platform/core/auth/AuthRequest.d.ts +9 -0
- package/dist/api/platform/core/auth/AuthRequest.js +2 -0
- package/dist/api/platform/core/auth/BasicAuth.d.ts +8 -0
- package/dist/api/platform/core/auth/BasicAuth.js +27 -0
- package/dist/api/platform/core/auth/BearerToken.d.ts +7 -0
- package/dist/api/platform/core/auth/BearerToken.js +16 -0
- package/dist/api/platform/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/api/platform/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/api/platform/core/auth/index.d.ts +5 -0
- package/dist/api/platform/core/auth/index.js +9 -0
- package/dist/api/platform/core/base64.d.ts +2 -0
- package/dist/api/platform/core/base64.js +26 -0
- package/dist/api/platform/core/exports.d.ts +2 -0
- package/dist/api/platform/core/exports.js +18 -0
- package/dist/api/platform/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/api/platform/core/fetcher/APIResponse.js +2 -0
- package/dist/api/platform/core/fetcher/BinaryResponse.d.ts +19 -0
- package/dist/api/platform/core/fetcher/BinaryResponse.js +17 -0
- package/dist/api/platform/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/api/platform/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/api/platform/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/api/platform/core/fetcher/EndpointSupplier.js +13 -0
- package/dist/api/platform/core/fetcher/Fetcher.d.ts +48 -0
- package/dist/api/platform/core/fetcher/Fetcher.js +305 -0
- package/dist/api/platform/core/fetcher/Headers.d.ts +2 -0
- package/dist/api/platform/core/fetcher/Headers.js +85 -0
- package/dist/api/platform/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/api/platform/core/fetcher/HttpResponsePromise.js +94 -0
- package/dist/api/platform/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/api/platform/core/fetcher/RawResponse.js +44 -0
- package/dist/api/platform/core/fetcher/Supplier.d.ts +4 -0
- package/dist/api/platform/core/fetcher/Supplier.js +13 -0
- package/dist/api/platform/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/api/platform/core/fetcher/createRequestUrl.js +8 -0
- package/dist/api/platform/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/api/platform/core/fetcher/getErrorResponseBody.js +33 -0
- package/dist/api/platform/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/api/platform/core/fetcher/getFetchFn.js +6 -0
- package/dist/api/platform/core/fetcher/getHeader.d.ts +1 -0
- package/dist/api/platform/core/fetcher/getHeader.js +11 -0
- package/dist/api/platform/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/api/platform/core/fetcher/getRequestBody.js +16 -0
- package/dist/api/platform/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/api/platform/core/fetcher/getResponseBody.js +58 -0
- package/dist/api/platform/core/fetcher/index.d.ts +11 -0
- package/dist/api/platform/core/fetcher/index.js +17 -0
- package/dist/api/platform/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/api/platform/core/fetcher/makeRequest.js +31 -0
- package/dist/api/platform/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/api/platform/core/fetcher/requestWithRetries.js +56 -0
- package/dist/api/platform/core/fetcher/signals.d.ts +5 -0
- package/dist/api/platform/core/fetcher/signals.js +24 -0
- package/dist/api/platform/core/file/exports.d.ts +1 -0
- package/dist/api/platform/core/file/exports.js +2 -0
- package/dist/api/platform/core/file/file.d.ts +10 -0
- package/dist/api/platform/core/file/file.js +202 -0
- package/dist/api/platform/core/file/index.d.ts +2 -0
- package/dist/api/platform/core/file/index.js +18 -0
- package/dist/api/platform/core/file/types.d.ts +66 -0
- package/dist/api/platform/core/file/types.js +2 -0
- package/dist/api/platform/core/form-data-utils/FormDataWrapper.d.ts +15 -0
- package/dist/api/platform/core/form-data-utils/FormDataWrapper.js +143 -0
- package/dist/api/platform/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/dist/api/platform/core/form-data-utils/encodeAsFormParameter.js +12 -0
- package/dist/api/platform/core/form-data-utils/index.d.ts +2 -0
- package/dist/api/platform/core/form-data-utils/index.js +20 -0
- package/dist/api/platform/core/headers.d.ts +2 -0
- package/dist/api/platform/core/headers.js +31 -0
- package/dist/api/platform/core/index.d.ts +8 -0
- package/dist/api/platform/core/index.js +47 -0
- package/dist/api/platform/core/json.d.ts +15 -0
- package/dist/api/platform/core/json.js +24 -0
- package/dist/api/platform/core/logging/exports.d.ts +18 -0
- package/dist/api/platform/core/logging/exports.js +45 -0
- package/dist/api/platform/core/logging/index.d.ts +1 -0
- package/dist/api/platform/core/logging/index.js +17 -0
- package/dist/api/platform/core/logging/logger.d.ts +126 -0
- package/dist/api/platform/core/logging/logger.js +146 -0
- package/dist/api/platform/core/runtime/index.d.ts +1 -0
- package/dist/api/platform/core/runtime/index.js +5 -0
- package/dist/api/platform/core/runtime/runtime.d.ts +9 -0
- package/dist/api/platform/core/runtime/runtime.js +102 -0
- package/dist/api/platform/core/url/encodePathParam.d.ts +1 -0
- package/dist/api/platform/core/url/encodePathParam.js +21 -0
- package/dist/api/platform/core/url/index.d.ts +3 -0
- package/dist/api/platform/core/url/index.js +9 -0
- package/dist/api/platform/core/url/join.d.ts +1 -0
- package/dist/api/platform/core/url/join.js +68 -0
- package/dist/api/platform/core/url/qs.d.ts +6 -0
- package/dist/api/platform/core/url/qs.js +67 -0
- package/dist/api/platform/environments.d.ts +4 -0
- package/dist/api/platform/environments.js +7 -0
- package/dist/api/platform/errors/HubPlatformError.d.ts +12 -0
- package/dist/api/platform/errors/HubPlatformError.js +35 -0
- package/dist/api/platform/errors/HubPlatformTimeoutError.d.ts +3 -0
- package/dist/api/platform/errors/HubPlatformTimeoutError.js +15 -0
- package/dist/api/platform/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/api/platform/errors/handleNonStatusCodeError.js +65 -0
- package/dist/api/platform/errors/index.d.ts +2 -0
- package/dist/api/platform/errors/index.js +7 -0
- package/dist/api/platform/exports.d.ts +1 -0
- package/dist/api/platform/exports.js +17 -0
- package/dist/api/platform/index.d.ts +6 -0
- package/dist/api/platform/index.js +48 -0
- package/dist/api/service/BaseClient.d.ts +39 -0
- package/dist/api/service/BaseClient.js +65 -0
- package/dist/api/service/Client.d.ts +14 -0
- package/dist/api/service/Client.js +17 -0
- package/dist/api/service/api/index.d.ts +2 -0
- package/dist/api/service/api/index.js +18 -0
- package/dist/api/service/api/resources/index.d.ts +2 -0
- package/dist/api/service/api/resources/index.js +41 -0
- package/dist/api/service/api/resources/serviceApi/client/Client.d.ts +100 -0
- package/dist/api/service/api/resources/serviceApi/client/Client.js +356 -0
- package/dist/api/service/api/resources/serviceApi/client/index.d.ts +1 -0
- package/dist/api/service/api/resources/serviceApi/client/index.js +17 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/CancelExecutionRequest.d.ts +10 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/CancelExecutionRequest.js +3 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/GetLogsRequest.d.ts +10 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/GetLogsRequest.js +3 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/GetResultFileRequest.d.ts +6 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/GetResultFileRequest.js +3 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/GetResultRequest.d.ts +10 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/GetResultRequest.js +3 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/GetStatusRequest.d.ts +10 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/GetStatusRequest.js +3 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/index.d.ts +5 -0
- package/dist/api/service/api/resources/serviceApi/client/requests/index.js +2 -0
- package/dist/api/service/api/resources/serviceApi/index.d.ts +1 -0
- package/dist/api/service/api/resources/serviceApi/index.js +17 -0
- package/dist/api/service/api/types/HalLink.d.ts +18 -0
- package/dist/api/service/api/types/HalLink.js +3 -0
- package/dist/api/service/api/types/LogEntry.d.ts +19 -0
- package/dist/api/service/api/types/LogEntry.js +15 -0
- package/dist/api/service/api/types/RequestBody.d.ts +1 -0
- package/dist/api/service/api/types/RequestBody.js +3 -0
- package/dist/api/service/api/types/ResultResponse.d.ts +15 -0
- package/dist/api/service/api/types/ResultResponse.js +3 -0
- package/dist/api/service/api/types/ServiceExecution.d.ts +38 -0
- package/dist/api/service/api/types/ServiceExecution.js +21 -0
- package/dist/api/service/api/types/index.d.ts +5 -0
- package/dist/api/service/api/types/index.js +21 -0
- package/dist/api/service/auth/BearerAuthProvider.d.ts +20 -0
- package/dist/api/service/auth/BearerAuthProvider.js +69 -0
- package/dist/api/service/auth/index.d.ts +1 -0
- package/dist/api/service/auth/index.js +5 -0
- package/dist/api/service/core/auth/AuthProvider.d.ts +7 -0
- package/dist/api/service/core/auth/AuthProvider.js +2 -0
- package/dist/api/service/core/auth/AuthRequest.d.ts +9 -0
- package/dist/api/service/core/auth/AuthRequest.js +2 -0
- package/dist/api/service/core/auth/BasicAuth.d.ts +8 -0
- package/dist/api/service/core/auth/BasicAuth.js +27 -0
- package/dist/api/service/core/auth/BearerToken.d.ts +7 -0
- package/dist/api/service/core/auth/BearerToken.js +16 -0
- package/dist/api/service/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/api/service/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/api/service/core/auth/index.d.ts +5 -0
- package/dist/api/service/core/auth/index.js +9 -0
- package/dist/api/service/core/base64.d.ts +2 -0
- package/dist/api/service/core/base64.js +26 -0
- package/dist/api/service/core/exports.d.ts +1 -0
- package/dist/api/service/core/exports.js +17 -0
- package/dist/api/service/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/api/service/core/fetcher/APIResponse.js +2 -0
- package/dist/api/service/core/fetcher/BinaryResponse.d.ts +19 -0
- package/dist/api/service/core/fetcher/BinaryResponse.js +17 -0
- package/dist/api/service/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/api/service/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/api/service/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/api/service/core/fetcher/EndpointSupplier.js +13 -0
- package/dist/api/service/core/fetcher/Fetcher.d.ts +48 -0
- package/dist/api/service/core/fetcher/Fetcher.js +305 -0
- package/dist/api/service/core/fetcher/Headers.d.ts +2 -0
- package/dist/api/service/core/fetcher/Headers.js +85 -0
- package/dist/api/service/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/api/service/core/fetcher/HttpResponsePromise.js +94 -0
- package/dist/api/service/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/api/service/core/fetcher/RawResponse.js +44 -0
- package/dist/api/service/core/fetcher/Supplier.d.ts +4 -0
- package/dist/api/service/core/fetcher/Supplier.js +13 -0
- package/dist/api/service/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/api/service/core/fetcher/createRequestUrl.js +8 -0
- package/dist/api/service/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/api/service/core/fetcher/getErrorResponseBody.js +33 -0
- package/dist/api/service/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/api/service/core/fetcher/getFetchFn.js +6 -0
- package/dist/api/service/core/fetcher/getHeader.d.ts +1 -0
- package/dist/api/service/core/fetcher/getHeader.js +11 -0
- package/dist/api/service/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/api/service/core/fetcher/getRequestBody.js +16 -0
- package/dist/api/service/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/api/service/core/fetcher/getResponseBody.js +58 -0
- package/dist/api/service/core/fetcher/index.d.ts +11 -0
- package/dist/api/service/core/fetcher/index.js +17 -0
- package/dist/api/service/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/api/service/core/fetcher/makeRequest.js +31 -0
- package/dist/api/service/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/api/service/core/fetcher/requestWithRetries.js +56 -0
- package/dist/api/service/core/fetcher/signals.d.ts +5 -0
- package/dist/api/service/core/fetcher/signals.js +24 -0
- package/dist/api/service/core/headers.d.ts +2 -0
- package/dist/api/service/core/headers.js +31 -0
- package/dist/api/service/core/index.d.ts +6 -0
- package/dist/api/service/core/index.js +45 -0
- package/dist/api/service/core/json.d.ts +15 -0
- package/dist/api/service/core/json.js +24 -0
- package/dist/api/service/core/logging/exports.d.ts +18 -0
- package/dist/api/service/core/logging/exports.js +45 -0
- package/dist/api/service/core/logging/index.d.ts +1 -0
- package/dist/api/service/core/logging/index.js +17 -0
- package/dist/api/service/core/logging/logger.d.ts +126 -0
- package/dist/api/service/core/logging/logger.js +146 -0
- package/dist/api/service/core/runtime/index.d.ts +1 -0
- package/dist/api/service/core/runtime/index.js +5 -0
- package/dist/api/service/core/runtime/runtime.d.ts +9 -0
- package/dist/api/service/core/runtime/runtime.js +102 -0
- package/dist/api/service/core/url/encodePathParam.d.ts +1 -0
- package/dist/api/service/core/url/encodePathParam.js +21 -0
- package/dist/api/service/core/url/index.d.ts +3 -0
- package/dist/api/service/core/url/index.js +9 -0
- package/dist/api/service/core/url/join.d.ts +1 -0
- package/dist/api/service/core/url/join.js +68 -0
- package/dist/api/service/core/url/qs.d.ts +6 -0
- package/dist/api/service/core/url/qs.js +67 -0
- package/dist/api/service/environments.d.ts +4 -0
- package/dist/api/service/environments.js +7 -0
- package/dist/api/service/errors/HubServiceError.d.ts +12 -0
- package/dist/api/service/errors/HubServiceError.js +35 -0
- package/dist/api/service/errors/HubServiceTimeoutError.d.ts +3 -0
- package/dist/api/service/errors/HubServiceTimeoutError.js +15 -0
- package/dist/api/service/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/api/service/errors/handleNonStatusCodeError.js +65 -0
- package/dist/api/service/errors/index.d.ts +2 -0
- package/dist/api/service/errors/index.js +7 -0
- package/dist/api/service/exports.d.ts +1 -0
- package/dist/api/service/exports.js +17 -0
- package/dist/api/service/index.d.ts +6 -0
- package/dist/api/service/index.js +48 -0
- package/eslint.config.mjs +11 -0
- package/package.json +44 -0
- package/src/api/platform/BaseClient.ts +87 -0
- package/src/api/platform/Client.ts +78 -0
- package/src/api/platform/api/errors/BadRequestError.ts +21 -0
- package/src/api/platform/api/errors/ForbiddenError.ts +21 -0
- package/src/api/platform/api/errors/InternalServerError.ts +21 -0
- package/src/api/platform/api/errors/NotFoundError.ts +21 -0
- package/src/api/platform/api/errors/UnauthorizedError.ts +21 -0
- package/src/api/platform/api/errors/index.ts +5 -0
- package/src/api/platform/api/index.ts +3 -0
- package/src/api/platform/api/resources/applications/client/Client.ts +514 -0
- package/src/api/platform/api/resources/applications/client/index.ts +1 -0
- package/src/api/platform/api/resources/applications/client/requests/CreateApplicationRequest.ts +9 -0
- package/src/api/platform/api/resources/applications/client/requests/DeleteApplicationRequest.ts +11 -0
- package/src/api/platform/api/resources/applications/client/requests/GetApplicationAccessKeysRequest.ts +11 -0
- package/src/api/platform/api/resources/applications/client/requests/GetApplicationRequest.ts +11 -0
- package/src/api/platform/api/resources/applications/client/requests/GetApplicationSubscriptionsRequest.ts +11 -0
- package/src/api/platform/api/resources/applications/client/requests/index.ts +5 -0
- package/src/api/platform/api/resources/applications/index.ts +1 -0
- package/src/api/platform/api/resources/dataPoolShares/client/Client.ts +662 -0
- package/src/api/platform/api/resources/dataPoolShares/client/index.ts +1 -0
- package/src/api/platform/api/resources/dataPoolShares/client/requests/AddConstraint1Request.ts +17 -0
- package/src/api/platform/api/resources/dataPoolShares/client/requests/DeleteConstraint1Request.ts +15 -0
- package/src/api/platform/api/resources/dataPoolShares/client/requests/DeleteShare1Request.ts +13 -0
- package/src/api/platform/api/resources/dataPoolShares/client/requests/GetSharesForDataPoolRequest.ts +11 -0
- package/src/api/platform/api/resources/dataPoolShares/client/requests/ShareDataPoolRequest.ts +15 -0
- package/src/api/platform/api/resources/dataPoolShares/client/requests/UpdateRole1Request.ts +17 -0
- package/src/api/platform/api/resources/dataPoolShares/client/requests/UpdateTimeBasedConstraint1Request.ts +22 -0
- package/src/api/platform/api/resources/dataPoolShares/client/requests/index.ts +7 -0
- package/src/api/platform/api/resources/dataPoolShares/index.ts +2 -0
- package/src/api/platform/api/resources/dataPoolShares/types/AddConstraint1Response.ts +5 -0
- package/src/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1RequestBody.ts +5 -0
- package/src/api/platform/api/resources/dataPoolShares/types/UpdateTimeBasedConstraint1Response.ts +5 -0
- package/src/api/platform/api/resources/dataPoolShares/types/index.ts +3 -0
- package/src/api/platform/api/resources/dataPools/client/Client.ts +767 -0
- package/src/api/platform/api/resources/dataPools/client/index.ts +1 -0
- package/src/api/platform/api/resources/dataPools/client/requests/AddDataPoolFileRequest.ts +16 -0
- package/src/api/platform/api/resources/dataPools/client/requests/CreateDataPoolRequest.ts +16 -0
- package/src/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolFileRequest.ts +13 -0
- package/src/api/platform/api/resources/dataPools/client/requests/DeleteDataPoolRequest.ts +11 -0
- package/src/api/platform/api/resources/dataPools/client/requests/GetDataPoolFileRequest.ts +13 -0
- package/src/api/platform/api/resources/dataPools/client/requests/GetDataPoolFilesRequest.ts +11 -0
- package/src/api/platform/api/resources/dataPools/client/requests/GetDataPoolRequest.ts +11 -0
- package/src/api/platform/api/resources/dataPools/client/requests/UpdateDataPoolRequest.ts +19 -0
- package/src/api/platform/api/resources/dataPools/client/requests/index.ts +8 -0
- package/src/api/platform/api/resources/dataPools/index.ts +1 -0
- package/src/api/platform/api/resources/index.ts +23 -0
- package/src/api/platform/api/resources/organizations/client/Client.ts +110 -0
- package/src/api/platform/api/resources/organizations/client/index.ts +1 -0
- package/src/api/platform/api/resources/organizations/client/requests/GetServiceExecutions1Request.ts +11 -0
- package/src/api/platform/api/resources/organizations/client/requests/index.ts +1 -0
- package/src/api/platform/api/resources/organizations/index.ts +1 -0
- package/src/api/platform/api/resources/quantumJobs/client/Client.ts +104 -0
- package/src/api/platform/api/resources/quantumJobs/client/index.ts +1 -0
- package/src/api/platform/api/resources/quantumJobs/client/requests/GetQuantumJobCostsRequest.ts +11 -0
- package/src/api/platform/api/resources/quantumJobs/client/requests/index.ts +1 -0
- package/src/api/platform/api/resources/quantumJobs/index.ts +1 -0
- package/src/api/platform/api/resources/quantumWorkloads/client/Client.ts +104 -0
- package/src/api/platform/api/resources/quantumWorkloads/client/index.ts +1 -0
- package/src/api/platform/api/resources/quantumWorkloads/client/requests/GetQuantumWorkloadCostsRequest.ts +11 -0
- package/src/api/platform/api/resources/quantumWorkloads/client/requests/index.ts +1 -0
- package/src/api/platform/api/resources/quantumWorkloads/index.ts +1 -0
- package/src/api/platform/api/resources/serviceExecutions/client/Client.ts +788 -0
- package/src/api/platform/api/resources/serviceExecutions/client/index.ts +1 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/CancelServiceExecutionRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionCostsRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionLogsRequest.ts +15 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionMetricsRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultFileRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionResultRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/GetServiceExecutionsRequest.ts +26 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/HeadServiceExecutionRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceExecutions/client/requests/index.ts +9 -0
- package/src/api/platform/api/resources/serviceExecutions/index.ts +2 -0
- package/src/api/platform/api/resources/serviceExecutions/types/GetServiceExecutionResponse.ts +5 -0
- package/src/api/platform/api/resources/serviceExecutions/types/index.ts +1 -0
- package/src/api/platform/api/resources/serviceJobs/client/Client.ts +367 -0
- package/src/api/platform/api/resources/serviceJobs/client/index.ts +1 -0
- package/src/api/platform/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.ts +16 -0
- package/src/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceJobs/client/requests/GetServiceJobsRequest.ts +24 -0
- package/src/api/platform/api/resources/serviceJobs/client/requests/RerunServiceJobRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceJobs/client/requests/index.ts +4 -0
- package/src/api/platform/api/resources/serviceJobs/index.ts +1 -0
- package/src/api/platform/api/resources/serviceShares/client/Client.ts +662 -0
- package/src/api/platform/api/resources/serviceShares/client/index.ts +1 -0
- package/src/api/platform/api/resources/serviceShares/client/requests/AddConstraintRequest.ts +17 -0
- package/src/api/platform/api/resources/serviceShares/client/requests/DeleteConstraintRequest.ts +15 -0
- package/src/api/platform/api/resources/serviceShares/client/requests/DeleteShareRequest.ts +13 -0
- package/src/api/platform/api/resources/serviceShares/client/requests/GetSharesForServiceRequest.ts +11 -0
- package/src/api/platform/api/resources/serviceShares/client/requests/ShareServiceRequest.ts +15 -0
- package/src/api/platform/api/resources/serviceShares/client/requests/UpdateRoleRequest.ts +17 -0
- package/src/api/platform/api/resources/serviceShares/client/requests/UpdateTimeBasedConstraintRequest.ts +22 -0
- package/src/api/platform/api/resources/serviceShares/client/requests/index.ts +7 -0
- package/src/api/platform/api/resources/serviceShares/index.ts +2 -0
- package/src/api/platform/api/resources/serviceShares/types/AddConstraintResponse.ts +5 -0
- package/src/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintRequestBody.ts +5 -0
- package/src/api/platform/api/resources/serviceShares/types/UpdateTimeBasedConstraintResponse.ts +5 -0
- package/src/api/platform/api/resources/serviceShares/types/index.ts +3 -0
- package/src/api/platform/api/resources/subscriptions/client/Client.ts +355 -0
- package/src/api/platform/api/resources/subscriptions/client/index.ts +1 -0
- package/src/api/platform/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.ts +10 -0
- package/src/api/platform/api/resources/subscriptions/client/requests/DeleteSubscriptionRequest.ts +11 -0
- package/src/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionRequest.ts +11 -0
- package/src/api/platform/api/resources/subscriptions/client/requests/GetSubscriptionServiceExecutionsRequest.ts +11 -0
- package/src/api/platform/api/resources/subscriptions/client/requests/index.ts +4 -0
- package/src/api/platform/api/resources/subscriptions/index.ts +1 -0
- package/src/api/platform/api/types/AccessKey.ts +15 -0
- package/src/api/platform/api/types/ActivityInstance.ts +23 -0
- package/src/api/platform/api/types/ApplicationDto.ts +22 -0
- package/src/api/platform/api/types/CostEntry.ts +22 -0
- package/src/api/platform/api/types/CreateShareConstraintDto.ts +11 -0
- package/src/api/platform/api/types/CreateShareRequestDto.ts +17 -0
- package/src/api/platform/api/types/CreateTimeBasedConstraintDto.ts +6 -0
- package/src/api/platform/api/types/DataPoolDto.ts +28 -0
- package/src/api/platform/api/types/DataPoolFileDto.ts +18 -0
- package/src/api/platform/api/types/Incident.ts +10 -0
- package/src/api/platform/api/types/LogEntry.ts +22 -0
- package/src/api/platform/api/types/MetricDataPoint.ts +11 -0
- package/src/api/platform/api/types/OauthScope.ts +6 -0
- package/src/api/platform/api/types/OrganizationSearchResultDto.ts +6 -0
- package/src/api/platform/api/types/OrganizationTenant.ts +5 -0
- package/src/api/platform/api/types/PageResponseServiceExecutionDto.ts +31 -0
- package/src/api/platform/api/types/PageResponseServiceJobDto.ts +31 -0
- package/src/api/platform/api/types/PricingPlanDto.ts +18 -0
- package/src/api/platform/api/types/ProductDto.ts +39 -0
- package/src/api/platform/api/types/QuantumJobCosts.ts +5 -0
- package/src/api/platform/api/types/QuantumWorkloadCosts.ts +11 -0
- package/src/api/platform/api/types/ServiceConsumerDto.ts +27 -0
- package/src/api/platform/api/types/ServiceExecution.ts +6 -0
- package/src/api/platform/api/types/ServiceExecutionCosts.ts +5 -0
- package/src/api/platform/api/types/ServiceExecutionDto.ts +44 -0
- package/src/api/platform/api/types/ServiceExecutionLogs.ts +5 -0
- package/src/api/platform/api/types/ServiceExecutionMetrics.ts +23 -0
- package/src/api/platform/api/types/ServiceJobDto.ts +45 -0
- package/src/api/platform/api/types/ShareConstraintDto.ts +18 -0
- package/src/api/platform/api/types/ShareDto.ts +27 -0
- package/src/api/platform/api/types/SortOrder.ts +20 -0
- package/src/api/platform/api/types/SubscriptionDto.ts +11 -0
- package/src/api/platform/api/types/TenantId.ts +19 -0
- package/src/api/platform/api/types/TimeBasedConstraintDto.ts +7 -0
- package/src/api/platform/api/types/UpdateResourceShareRoleDto.ts +14 -0
- package/src/api/platform/api/types/UserTenant.ts +5 -0
- package/src/api/platform/api/types/VariableInstance.ts +11 -0
- package/src/api/platform/api/types/WorkflowInstance.ts +25 -0
- package/src/api/platform/api/types/WorkflowServiceExecutionDto.ts +48 -0
- package/src/api/platform/api/types/index.ts +39 -0
- package/src/api/platform/auth/HeaderAuthProvider.ts +48 -0
- package/src/api/platform/auth/index.ts +1 -0
- package/src/api/platform/core/auth/AuthProvider.ts +6 -0
- package/src/api/platform/core/auth/AuthRequest.ts +9 -0
- package/src/api/platform/core/auth/BasicAuth.ts +32 -0
- package/src/api/platform/core/auth/BearerToken.ts +20 -0
- package/src/api/platform/core/auth/NoOpAuthProvider.ts +8 -0
- package/src/api/platform/core/auth/index.ts +5 -0
- package/src/api/platform/core/base64.ts +27 -0
- package/src/api/platform/core/exports.ts +2 -0
- package/src/api/platform/core/fetcher/APIResponse.ts +23 -0
- package/src/api/platform/core/fetcher/BinaryResponse.ts +34 -0
- package/src/api/platform/core/fetcher/EndpointMetadata.ts +13 -0
- package/src/api/platform/core/fetcher/EndpointSupplier.ts +14 -0
- package/src/api/platform/core/fetcher/Fetcher.ts +397 -0
- package/src/api/platform/core/fetcher/Headers.ts +93 -0
- package/src/api/platform/core/fetcher/HttpResponsePromise.ts +116 -0
- package/src/api/platform/core/fetcher/RawResponse.ts +61 -0
- package/src/api/platform/core/fetcher/Supplier.ts +11 -0
- package/src/api/platform/core/fetcher/createRequestUrl.ts +6 -0
- package/src/api/platform/core/fetcher/getErrorResponseBody.ts +33 -0
- package/src/api/platform/core/fetcher/getFetchFn.ts +3 -0
- package/src/api/platform/core/fetcher/getHeader.ts +8 -0
- package/src/api/platform/core/fetcher/getRequestBody.ts +20 -0
- package/src/api/platform/core/fetcher/getResponseBody.ts +58 -0
- package/src/api/platform/core/fetcher/index.ts +11 -0
- package/src/api/platform/core/fetcher/makeRequest.ts +42 -0
- package/src/api/platform/core/fetcher/requestWithRetries.ts +64 -0
- package/src/api/platform/core/fetcher/signals.ts +26 -0
- package/src/api/platform/core/file/exports.ts +1 -0
- package/src/api/platform/core/file/file.ts +217 -0
- package/src/api/platform/core/file/index.ts +2 -0
- package/src/api/platform/core/file/types.ts +81 -0
- package/src/api/platform/core/form-data-utils/FormDataWrapper.ts +140 -0
- package/src/api/platform/core/form-data-utils/encodeAsFormParameter.ts +12 -0
- package/src/api/platform/core/form-data-utils/index.ts +2 -0
- package/src/api/platform/core/headers.ts +33 -0
- package/src/api/platform/core/index.ts +8 -0
- package/src/api/platform/core/json.ts +27 -0
- package/src/api/platform/core/logging/exports.ts +19 -0
- package/src/api/platform/core/logging/index.ts +1 -0
- package/src/api/platform/core/logging/logger.ts +203 -0
- package/src/api/platform/core/runtime/index.ts +1 -0
- package/src/api/platform/core/runtime/runtime.ts +134 -0
- package/src/api/platform/core/url/encodePathParam.ts +18 -0
- package/src/api/platform/core/url/index.ts +3 -0
- package/src/api/platform/core/url/join.ts +79 -0
- package/src/api/platform/core/url/qs.ts +74 -0
- package/src/api/platform/environments.ts +7 -0
- package/src/api/platform/errors/HubPlatformError.ts +58 -0
- package/src/api/platform/errors/HubPlatformTimeoutError.ts +13 -0
- package/src/api/platform/errors/handleNonStatusCodeError.ts +37 -0
- package/src/api/platform/errors/index.ts +2 -0
- package/src/api/platform/exports.ts +1 -0
- package/src/api/platform/index.ts +6 -0
- package/src/api/service/BaseClient.ts +82 -0
- package/src/api/service/Client.ts +24 -0
- package/src/api/service/api/index.ts +2 -0
- package/src/api/service/api/resources/index.ts +2 -0
- package/src/api/service/api/resources/serviceApi/client/Client.ts +443 -0
- package/src/api/service/api/resources/serviceApi/client/index.ts +1 -0
- package/src/api/service/api/resources/serviceApi/client/requests/CancelExecutionRequest.ts +12 -0
- package/src/api/service/api/resources/serviceApi/client/requests/GetLogsRequest.ts +12 -0
- package/src/api/service/api/resources/serviceApi/client/requests/GetResultFileRequest.ts +8 -0
- package/src/api/service/api/resources/serviceApi/client/requests/GetResultRequest.ts +12 -0
- package/src/api/service/api/resources/serviceApi/client/requests/GetStatusRequest.ts +12 -0
- package/src/api/service/api/resources/serviceApi/client/requests/index.ts +5 -0
- package/src/api/service/api/resources/serviceApi/index.ts +1 -0
- package/src/api/service/api/types/HalLink.ts +20 -0
- package/src/api/service/api/types/LogEntry.ts +22 -0
- package/src/api/service/api/types/RequestBody.ts +3 -0
- package/src/api/service/api/types/ResultResponse.ts +20 -0
- package/src/api/service/api/types/ServiceExecution.ts +41 -0
- package/src/api/service/api/types/index.ts +5 -0
- package/src/api/service/auth/BearerAuthProvider.ts +47 -0
- package/src/api/service/auth/index.ts +1 -0
- package/src/api/service/core/auth/AuthProvider.ts +6 -0
- package/src/api/service/core/auth/AuthRequest.ts +9 -0
- package/src/api/service/core/auth/BasicAuth.ts +32 -0
- package/src/api/service/core/auth/BearerToken.ts +20 -0
- package/src/api/service/core/auth/NoOpAuthProvider.ts +8 -0
- package/src/api/service/core/auth/index.ts +5 -0
- package/src/api/service/core/base64.ts +27 -0
- package/src/api/service/core/exports.ts +1 -0
- package/src/api/service/core/fetcher/APIResponse.ts +23 -0
- package/src/api/service/core/fetcher/BinaryResponse.ts +34 -0
- package/src/api/service/core/fetcher/EndpointMetadata.ts +13 -0
- package/src/api/service/core/fetcher/EndpointSupplier.ts +14 -0
- package/src/api/service/core/fetcher/Fetcher.ts +397 -0
- package/src/api/service/core/fetcher/Headers.ts +93 -0
- package/src/api/service/core/fetcher/HttpResponsePromise.ts +116 -0
- package/src/api/service/core/fetcher/RawResponse.ts +61 -0
- package/src/api/service/core/fetcher/Supplier.ts +11 -0
- package/src/api/service/core/fetcher/createRequestUrl.ts +6 -0
- package/src/api/service/core/fetcher/getErrorResponseBody.ts +33 -0
- package/src/api/service/core/fetcher/getFetchFn.ts +3 -0
- package/src/api/service/core/fetcher/getHeader.ts +8 -0
- package/src/api/service/core/fetcher/getRequestBody.ts +20 -0
- package/src/api/service/core/fetcher/getResponseBody.ts +58 -0
- package/src/api/service/core/fetcher/index.ts +11 -0
- package/src/api/service/core/fetcher/makeRequest.ts +42 -0
- package/src/api/service/core/fetcher/requestWithRetries.ts +64 -0
- package/src/api/service/core/fetcher/signals.ts +26 -0
- package/src/api/service/core/headers.ts +33 -0
- package/src/api/service/core/index.ts +6 -0
- package/src/api/service/core/json.ts +27 -0
- package/src/api/service/core/logging/exports.ts +19 -0
- package/src/api/service/core/logging/index.ts +1 -0
- package/src/api/service/core/logging/logger.ts +203 -0
- package/src/api/service/core/runtime/index.ts +1 -0
- package/src/api/service/core/runtime/runtime.ts +134 -0
- package/src/api/service/core/url/encodePathParam.ts +18 -0
- package/src/api/service/core/url/index.ts +3 -0
- package/src/api/service/core/url/join.ts +79 -0
- package/src/api/service/core/url/qs.ts +74 -0
- package/src/api/service/environments.ts +7 -0
- package/src/api/service/errors/HubServiceError.ts +58 -0
- package/src/api/service/errors/HubServiceTimeoutError.ts +13 -0
- package/src/api/service/errors/handleNonStatusCodeError.ts +37 -0
- package/src/api/service/errors/index.ts +2 -0
- package/src/api/service/exports.ts +1 -0
- package/src/api/service/index.ts +6 -0
- package/src/client.test.ts +29 -0
- package/tsconfig.json +18 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,788 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
4
|
+
import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
5
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
import * as environments from "../../../../environments.js";
|
|
8
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
|
|
9
|
+
import * as errors from "../../../../errors/index.js";
|
|
10
|
+
import * as HubPlatform from "../../../index.js";
|
|
11
|
+
|
|
12
|
+
export declare namespace ServiceExecutionsClient {
|
|
13
|
+
export type Options = BaseClientOptions;
|
|
14
|
+
|
|
15
|
+
export interface RequestOptions extends BaseRequestOptions {}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Track status, costs, logs, metrics, and results of your service executions.
|
|
20
|
+
*/
|
|
21
|
+
export class ServiceExecutionsClient {
|
|
22
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ServiceExecutionsClient.Options>;
|
|
23
|
+
|
|
24
|
+
constructor(options: ServiceExecutionsClient.Options) {
|
|
25
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Cancel a specific service execution (identified by its ID). Only service executions that are pending or currently running can be cancelled.
|
|
30
|
+
*
|
|
31
|
+
* @param {HubPlatform.CancelServiceExecutionRequest} request
|
|
32
|
+
* @param {ServiceExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @throws {@link HubPlatform.UnauthorizedError}
|
|
35
|
+
* @throws {@link HubPlatform.ForbiddenError}
|
|
36
|
+
* @throws {@link HubPlatform.NotFoundError}
|
|
37
|
+
* @throws {@link HubPlatform.InternalServerError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.serviceExecutions.cancelServiceExecution({
|
|
41
|
+
* id: "id"
|
|
42
|
+
* })
|
|
43
|
+
*/
|
|
44
|
+
public cancelServiceExecution(
|
|
45
|
+
request: HubPlatform.CancelServiceExecutionRequest,
|
|
46
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
47
|
+
): core.HttpResponsePromise<void> {
|
|
48
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelServiceExecution(request, requestOptions));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
private async __cancelServiceExecution(
|
|
52
|
+
request: HubPlatform.CancelServiceExecutionRequest,
|
|
53
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
54
|
+
): Promise<core.WithRawResponse<void>> {
|
|
55
|
+
const { id } = request;
|
|
56
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
57
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
58
|
+
_authRequest.headers,
|
|
59
|
+
this._options?.headers,
|
|
60
|
+
mergeOnlyDefinedHeaders({
|
|
61
|
+
"X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
|
|
62
|
+
}),
|
|
63
|
+
requestOptions?.headers,
|
|
64
|
+
);
|
|
65
|
+
const _response = await core.fetcher({
|
|
66
|
+
url: core.url.join(
|
|
67
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
68
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
69
|
+
environments.HubPlatformEnvironment.Default,
|
|
70
|
+
`service-executions/v1/${core.url.encodePathParam(id)}/cancel`,
|
|
71
|
+
),
|
|
72
|
+
method: "PUT",
|
|
73
|
+
headers: _headers,
|
|
74
|
+
queryParameters: requestOptions?.queryParams,
|
|
75
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
76
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
77
|
+
withCredentials: true,
|
|
78
|
+
abortSignal: requestOptions?.abortSignal,
|
|
79
|
+
fetchFn: this._options?.fetch,
|
|
80
|
+
logging: this._options.logging,
|
|
81
|
+
});
|
|
82
|
+
if (_response.ok) {
|
|
83
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (_response.error.reason === "status-code") {
|
|
87
|
+
switch (_response.error.statusCode) {
|
|
88
|
+
case 401:
|
|
89
|
+
throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
|
|
90
|
+
case 403:
|
|
91
|
+
throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
|
|
92
|
+
case 404:
|
|
93
|
+
throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
|
|
94
|
+
case 500:
|
|
95
|
+
throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
|
|
96
|
+
default:
|
|
97
|
+
throw new errors.HubPlatformError({
|
|
98
|
+
statusCode: _response.error.statusCode,
|
|
99
|
+
body: _response.error.body,
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return handleNonStatusCodeError(
|
|
106
|
+
_response.error,
|
|
107
|
+
_response.rawResponse,
|
|
108
|
+
"PUT",
|
|
109
|
+
"/service-executions/v1/{id}/cancel",
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Get a specific service execution (identified by its ID), either a managed or workflow service execution. The response type depends on the underlying service execution type: A workflow service execution returns the type WorkflowServiceExecutionDto and managed service execution returns the type ServiceExecutionDto.
|
|
115
|
+
*
|
|
116
|
+
* @param {HubPlatform.GetServiceExecutionRequest} request
|
|
117
|
+
* @param {ServiceExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link HubPlatform.UnauthorizedError}
|
|
120
|
+
* @throws {@link HubPlatform.ForbiddenError}
|
|
121
|
+
* @throws {@link HubPlatform.NotFoundError}
|
|
122
|
+
* @throws {@link HubPlatform.InternalServerError}
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* await client.serviceExecutions.getServiceExecution({
|
|
126
|
+
* id: "id"
|
|
127
|
+
* })
|
|
128
|
+
*/
|
|
129
|
+
public getServiceExecution(
|
|
130
|
+
request: HubPlatform.GetServiceExecutionRequest,
|
|
131
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
132
|
+
): core.HttpResponsePromise<HubPlatform.GetServiceExecutionResponse> {
|
|
133
|
+
return core.HttpResponsePromise.fromPromise(this.__getServiceExecution(request, requestOptions));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
private async __getServiceExecution(
|
|
137
|
+
request: HubPlatform.GetServiceExecutionRequest,
|
|
138
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
139
|
+
): Promise<core.WithRawResponse<HubPlatform.GetServiceExecutionResponse>> {
|
|
140
|
+
const { id } = request;
|
|
141
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
142
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
143
|
+
_authRequest.headers,
|
|
144
|
+
this._options?.headers,
|
|
145
|
+
mergeOnlyDefinedHeaders({
|
|
146
|
+
"X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
|
|
147
|
+
}),
|
|
148
|
+
requestOptions?.headers,
|
|
149
|
+
);
|
|
150
|
+
const _response = await core.fetcher({
|
|
151
|
+
url: core.url.join(
|
|
152
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
153
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
154
|
+
environments.HubPlatformEnvironment.Default,
|
|
155
|
+
`service-executions/v1/${core.url.encodePathParam(id)}`,
|
|
156
|
+
),
|
|
157
|
+
method: "GET",
|
|
158
|
+
headers: _headers,
|
|
159
|
+
queryParameters: requestOptions?.queryParams,
|
|
160
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
161
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
162
|
+
withCredentials: true,
|
|
163
|
+
abortSignal: requestOptions?.abortSignal,
|
|
164
|
+
fetchFn: this._options?.fetch,
|
|
165
|
+
logging: this._options.logging,
|
|
166
|
+
});
|
|
167
|
+
if (_response.ok) {
|
|
168
|
+
return {
|
|
169
|
+
data: _response.body as HubPlatform.GetServiceExecutionResponse,
|
|
170
|
+
rawResponse: _response.rawResponse,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (_response.error.reason === "status-code") {
|
|
175
|
+
switch (_response.error.statusCode) {
|
|
176
|
+
case 401:
|
|
177
|
+
throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
|
|
178
|
+
case 403:
|
|
179
|
+
throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
|
|
180
|
+
case 404:
|
|
181
|
+
throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
|
|
182
|
+
case 500:
|
|
183
|
+
throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
|
|
184
|
+
default:
|
|
185
|
+
throw new errors.HubPlatformError({
|
|
186
|
+
statusCode: _response.error.statusCode,
|
|
187
|
+
body: _response.error.body,
|
|
188
|
+
rawResponse: _response.rawResponse,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/service-executions/v1/{id}");
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Check if the tenant has view permission for a specific service execution (identified by its ID).
|
|
198
|
+
*
|
|
199
|
+
* @param {HubPlatform.HeadServiceExecutionRequest} request
|
|
200
|
+
* @param {ServiceExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
201
|
+
*
|
|
202
|
+
* @throws {@link HubPlatform.UnauthorizedError}
|
|
203
|
+
* @throws {@link HubPlatform.ForbiddenError}
|
|
204
|
+
* @throws {@link HubPlatform.NotFoundError}
|
|
205
|
+
* @throws {@link HubPlatform.InternalServerError}
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* await client.serviceExecutions.headServiceExecution({
|
|
209
|
+
* id: "id"
|
|
210
|
+
* })
|
|
211
|
+
*/
|
|
212
|
+
public headServiceExecution(
|
|
213
|
+
request: HubPlatform.HeadServiceExecutionRequest,
|
|
214
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
215
|
+
): core.HttpResponsePromise<Headers> {
|
|
216
|
+
return core.HttpResponsePromise.fromPromise(this.__headServiceExecution(request, requestOptions));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
private async __headServiceExecution(
|
|
220
|
+
request: HubPlatform.HeadServiceExecutionRequest,
|
|
221
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
222
|
+
): Promise<core.WithRawResponse<Headers>> {
|
|
223
|
+
const { id } = request;
|
|
224
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
225
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
226
|
+
_authRequest.headers,
|
|
227
|
+
this._options?.headers,
|
|
228
|
+
mergeOnlyDefinedHeaders({
|
|
229
|
+
"X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
|
|
230
|
+
}),
|
|
231
|
+
requestOptions?.headers,
|
|
232
|
+
);
|
|
233
|
+
const _response = await core.fetcher({
|
|
234
|
+
url: core.url.join(
|
|
235
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
236
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
237
|
+
environments.HubPlatformEnvironment.Default,
|
|
238
|
+
`service-executions/v1/${core.url.encodePathParam(id)}`,
|
|
239
|
+
),
|
|
240
|
+
method: "HEAD",
|
|
241
|
+
headers: _headers,
|
|
242
|
+
queryParameters: requestOptions?.queryParams,
|
|
243
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
244
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
245
|
+
withCredentials: true,
|
|
246
|
+
abortSignal: requestOptions?.abortSignal,
|
|
247
|
+
fetchFn: this._options?.fetch,
|
|
248
|
+
logging: this._options.logging,
|
|
249
|
+
});
|
|
250
|
+
if (_response.ok) {
|
|
251
|
+
return { data: _response.rawResponse.headers, rawResponse: _response.rawResponse };
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
if (_response.error.reason === "status-code") {
|
|
255
|
+
switch (_response.error.statusCode) {
|
|
256
|
+
case 401:
|
|
257
|
+
throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
|
|
258
|
+
case 403:
|
|
259
|
+
throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
|
|
260
|
+
case 404:
|
|
261
|
+
throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
|
|
262
|
+
case 500:
|
|
263
|
+
throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
|
|
264
|
+
default:
|
|
265
|
+
throw new errors.HubPlatformError({
|
|
266
|
+
statusCode: _response.error.statusCode,
|
|
267
|
+
body: _response.error.body,
|
|
268
|
+
rawResponse: _response.rawResponse,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "HEAD", "/service-executions/v1/{id}");
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Get all service executions with pagination support. Optionally filter by applicationId, serviceId, tags, IDs, and creation date range. Supports sorting by: createdAt, startedAt, endedAt, status, serviceId, applicationId. Default sort is createdAt descending (newest first).
|
|
278
|
+
*
|
|
279
|
+
* @param {HubPlatform.GetServiceExecutionsRequest} request
|
|
280
|
+
* @param {ServiceExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
281
|
+
*
|
|
282
|
+
* @throws {@link HubPlatform.BadRequestError}
|
|
283
|
+
* @throws {@link HubPlatform.UnauthorizedError}
|
|
284
|
+
* @throws {@link HubPlatform.ForbiddenError}
|
|
285
|
+
* @throws {@link HubPlatform.InternalServerError}
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* await client.serviceExecutions.getServiceExecutions()
|
|
289
|
+
*/
|
|
290
|
+
public getServiceExecutions(
|
|
291
|
+
request: HubPlatform.GetServiceExecutionsRequest = {},
|
|
292
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
293
|
+
): core.HttpResponsePromise<HubPlatform.PageResponseServiceExecutionDto> {
|
|
294
|
+
return core.HttpResponsePromise.fromPromise(this.__getServiceExecutions(request, requestOptions));
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
private async __getServiceExecutions(
|
|
298
|
+
request: HubPlatform.GetServiceExecutionsRequest = {},
|
|
299
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
300
|
+
): Promise<core.WithRawResponse<HubPlatform.PageResponseServiceExecutionDto>> {
|
|
301
|
+
const { page, size, sort, createdAfter, createdBefore, applicationId, serviceId, tags, ids } = request;
|
|
302
|
+
const _queryParams: Record<string, unknown> = {
|
|
303
|
+
page,
|
|
304
|
+
size,
|
|
305
|
+
sort,
|
|
306
|
+
createdAfter: createdAfter != null ? createdAfter : undefined,
|
|
307
|
+
createdBefore: createdBefore != null ? createdBefore : undefined,
|
|
308
|
+
applicationId,
|
|
309
|
+
serviceId,
|
|
310
|
+
tags,
|
|
311
|
+
ids,
|
|
312
|
+
};
|
|
313
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
314
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
315
|
+
_authRequest.headers,
|
|
316
|
+
this._options?.headers,
|
|
317
|
+
mergeOnlyDefinedHeaders({
|
|
318
|
+
"X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
|
|
319
|
+
}),
|
|
320
|
+
requestOptions?.headers,
|
|
321
|
+
);
|
|
322
|
+
const _response = await core.fetcher({
|
|
323
|
+
url: core.url.join(
|
|
324
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
325
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
326
|
+
environments.HubPlatformEnvironment.Default,
|
|
327
|
+
"service-executions/v1",
|
|
328
|
+
),
|
|
329
|
+
method: "GET",
|
|
330
|
+
headers: _headers,
|
|
331
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
332
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
333
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
334
|
+
withCredentials: true,
|
|
335
|
+
abortSignal: requestOptions?.abortSignal,
|
|
336
|
+
fetchFn: this._options?.fetch,
|
|
337
|
+
logging: this._options.logging,
|
|
338
|
+
});
|
|
339
|
+
if (_response.ok) {
|
|
340
|
+
return {
|
|
341
|
+
data: _response.body as HubPlatform.PageResponseServiceExecutionDto,
|
|
342
|
+
rawResponse: _response.rawResponse,
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if (_response.error.reason === "status-code") {
|
|
347
|
+
switch (_response.error.statusCode) {
|
|
348
|
+
case 400:
|
|
349
|
+
throw new HubPlatform.BadRequestError(_response.error.body as any, _response.rawResponse);
|
|
350
|
+
case 401:
|
|
351
|
+
throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
|
|
352
|
+
case 403:
|
|
353
|
+
throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
|
|
354
|
+
case 500:
|
|
355
|
+
throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
|
|
356
|
+
default:
|
|
357
|
+
throw new errors.HubPlatformError({
|
|
358
|
+
statusCode: _response.error.statusCode,
|
|
359
|
+
body: _response.error.body,
|
|
360
|
+
rawResponse: _response.rawResponse,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/service-executions/v1");
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Get the results for a specific service execution (identified by its ID). If the service execution has not been completed yet or no results are available, a HTTP 204 (No Content) response is returned with a "Retry-After" header.
|
|
370
|
+
*
|
|
371
|
+
* @param {HubPlatform.GetServiceExecutionResultRequest} request
|
|
372
|
+
* @param {ServiceExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
373
|
+
*
|
|
374
|
+
* @throws {@link HubPlatform.UnauthorizedError}
|
|
375
|
+
* @throws {@link HubPlatform.ForbiddenError}
|
|
376
|
+
* @throws {@link HubPlatform.NotFoundError}
|
|
377
|
+
* @throws {@link HubPlatform.InternalServerError}
|
|
378
|
+
*
|
|
379
|
+
* @example
|
|
380
|
+
* await client.serviceExecutions.getServiceExecutionResult({
|
|
381
|
+
* id: "id"
|
|
382
|
+
* })
|
|
383
|
+
*/
|
|
384
|
+
public getServiceExecutionResult(
|
|
385
|
+
request: HubPlatform.GetServiceExecutionResultRequest,
|
|
386
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
387
|
+
): core.HttpResponsePromise<Record<string, any>> {
|
|
388
|
+
return core.HttpResponsePromise.fromPromise(this.__getServiceExecutionResult(request, requestOptions));
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
private async __getServiceExecutionResult(
|
|
392
|
+
request: HubPlatform.GetServiceExecutionResultRequest,
|
|
393
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
394
|
+
): Promise<core.WithRawResponse<Record<string, any>>> {
|
|
395
|
+
const { id } = request;
|
|
396
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
397
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
398
|
+
_authRequest.headers,
|
|
399
|
+
this._options?.headers,
|
|
400
|
+
mergeOnlyDefinedHeaders({
|
|
401
|
+
"X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
|
|
402
|
+
}),
|
|
403
|
+
requestOptions?.headers,
|
|
404
|
+
);
|
|
405
|
+
const _response = await core.fetcher({
|
|
406
|
+
url: core.url.join(
|
|
407
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
408
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
409
|
+
environments.HubPlatformEnvironment.Default,
|
|
410
|
+
`service-executions/v1/${core.url.encodePathParam(id)}/results`,
|
|
411
|
+
),
|
|
412
|
+
method: "GET",
|
|
413
|
+
headers: _headers,
|
|
414
|
+
queryParameters: requestOptions?.queryParams,
|
|
415
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
416
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
417
|
+
withCredentials: true,
|
|
418
|
+
abortSignal: requestOptions?.abortSignal,
|
|
419
|
+
fetchFn: this._options?.fetch,
|
|
420
|
+
logging: this._options.logging,
|
|
421
|
+
});
|
|
422
|
+
if (_response.ok) {
|
|
423
|
+
return { data: _response.body as Record<string, any>, rawResponse: _response.rawResponse };
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
if (_response.error.reason === "status-code") {
|
|
427
|
+
switch (_response.error.statusCode) {
|
|
428
|
+
case 401:
|
|
429
|
+
throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
|
|
430
|
+
case 403:
|
|
431
|
+
throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
|
|
432
|
+
case 404:
|
|
433
|
+
throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
|
|
434
|
+
case 500:
|
|
435
|
+
throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
|
|
436
|
+
default:
|
|
437
|
+
throw new errors.HubPlatformError({
|
|
438
|
+
statusCode: _response.error.statusCode,
|
|
439
|
+
body: _response.error.body,
|
|
440
|
+
rawResponse: _response.rawResponse,
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
return handleNonStatusCodeError(
|
|
446
|
+
_response.error,
|
|
447
|
+
_response.rawResponse,
|
|
448
|
+
"GET",
|
|
449
|
+
"/service-executions/v1/{id}/results",
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Get the content of a result file.
|
|
455
|
+
* @throws {@link HubPlatform.UnauthorizedError}
|
|
456
|
+
* @throws {@link HubPlatform.ForbiddenError}
|
|
457
|
+
* @throws {@link HubPlatform.NotFoundError}
|
|
458
|
+
* @throws {@link HubPlatform.InternalServerError}
|
|
459
|
+
*/
|
|
460
|
+
public getServiceExecutionResultFile(
|
|
461
|
+
request: HubPlatform.GetServiceExecutionResultFileRequest,
|
|
462
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
463
|
+
): core.HttpResponsePromise<core.BinaryResponse> {
|
|
464
|
+
return core.HttpResponsePromise.fromPromise(this.__getServiceExecutionResultFile(request, requestOptions));
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
private async __getServiceExecutionResultFile(
|
|
468
|
+
request: HubPlatform.GetServiceExecutionResultFileRequest,
|
|
469
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
470
|
+
): Promise<core.WithRawResponse<core.BinaryResponse>> {
|
|
471
|
+
const { id } = request;
|
|
472
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
473
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
474
|
+
_authRequest.headers,
|
|
475
|
+
this._options?.headers,
|
|
476
|
+
mergeOnlyDefinedHeaders({
|
|
477
|
+
"X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
|
|
478
|
+
}),
|
|
479
|
+
requestOptions?.headers,
|
|
480
|
+
);
|
|
481
|
+
const _response = await core.fetcher<core.BinaryResponse>({
|
|
482
|
+
url: core.url.join(
|
|
483
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
484
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
485
|
+
environments.HubPlatformEnvironment.Default,
|
|
486
|
+
`service-executions/v1/${core.url.encodePathParam(id)}/results/**`,
|
|
487
|
+
),
|
|
488
|
+
method: "GET",
|
|
489
|
+
headers: _headers,
|
|
490
|
+
queryParameters: requestOptions?.queryParams,
|
|
491
|
+
responseType: "binary-response",
|
|
492
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
493
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
494
|
+
withCredentials: true,
|
|
495
|
+
abortSignal: requestOptions?.abortSignal,
|
|
496
|
+
fetchFn: this._options?.fetch,
|
|
497
|
+
logging: this._options.logging,
|
|
498
|
+
});
|
|
499
|
+
if (_response.ok) {
|
|
500
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
if (_response.error.reason === "status-code") {
|
|
504
|
+
switch (_response.error.statusCode) {
|
|
505
|
+
case 401:
|
|
506
|
+
throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
|
|
507
|
+
case 403:
|
|
508
|
+
throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
|
|
509
|
+
case 404:
|
|
510
|
+
throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
|
|
511
|
+
case 500:
|
|
512
|
+
throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
|
|
513
|
+
default:
|
|
514
|
+
throw new errors.HubPlatformError({
|
|
515
|
+
statusCode: _response.error.statusCode,
|
|
516
|
+
body: _response.error.body,
|
|
517
|
+
rawResponse: _response.rawResponse,
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
return handleNonStatusCodeError(
|
|
523
|
+
_response.error,
|
|
524
|
+
_response.rawResponse,
|
|
525
|
+
"GET",
|
|
526
|
+
"/service-executions/v1/{id}/results/**",
|
|
527
|
+
);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Get the resource usage metrics for a specific service execution (identified by its ID).
|
|
532
|
+
*
|
|
533
|
+
* @param {HubPlatform.GetServiceExecutionMetricsRequest} request
|
|
534
|
+
* @param {ServiceExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
535
|
+
*
|
|
536
|
+
* @throws {@link HubPlatform.UnauthorizedError}
|
|
537
|
+
* @throws {@link HubPlatform.ForbiddenError}
|
|
538
|
+
* @throws {@link HubPlatform.NotFoundError}
|
|
539
|
+
* @throws {@link HubPlatform.InternalServerError}
|
|
540
|
+
*
|
|
541
|
+
* @example
|
|
542
|
+
* await client.serviceExecutions.getServiceExecutionMetrics({
|
|
543
|
+
* id: "id"
|
|
544
|
+
* })
|
|
545
|
+
*/
|
|
546
|
+
public getServiceExecutionMetrics(
|
|
547
|
+
request: HubPlatform.GetServiceExecutionMetricsRequest,
|
|
548
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
549
|
+
): core.HttpResponsePromise<HubPlatform.ServiceExecutionMetrics> {
|
|
550
|
+
return core.HttpResponsePromise.fromPromise(this.__getServiceExecutionMetrics(request, requestOptions));
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
private async __getServiceExecutionMetrics(
|
|
554
|
+
request: HubPlatform.GetServiceExecutionMetricsRequest,
|
|
555
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
556
|
+
): Promise<core.WithRawResponse<HubPlatform.ServiceExecutionMetrics>> {
|
|
557
|
+
const { id } = request;
|
|
558
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
559
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
560
|
+
_authRequest.headers,
|
|
561
|
+
this._options?.headers,
|
|
562
|
+
mergeOnlyDefinedHeaders({
|
|
563
|
+
"X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
|
|
564
|
+
}),
|
|
565
|
+
requestOptions?.headers,
|
|
566
|
+
);
|
|
567
|
+
const _response = await core.fetcher({
|
|
568
|
+
url: core.url.join(
|
|
569
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
570
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
571
|
+
environments.HubPlatformEnvironment.Default,
|
|
572
|
+
`service-executions/v1/${core.url.encodePathParam(id)}/metrics`,
|
|
573
|
+
),
|
|
574
|
+
method: "GET",
|
|
575
|
+
headers: _headers,
|
|
576
|
+
queryParameters: requestOptions?.queryParams,
|
|
577
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
578
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
579
|
+
withCredentials: true,
|
|
580
|
+
abortSignal: requestOptions?.abortSignal,
|
|
581
|
+
fetchFn: this._options?.fetch,
|
|
582
|
+
logging: this._options.logging,
|
|
583
|
+
});
|
|
584
|
+
if (_response.ok) {
|
|
585
|
+
return { data: _response.body as HubPlatform.ServiceExecutionMetrics, rawResponse: _response.rawResponse };
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
if (_response.error.reason === "status-code") {
|
|
589
|
+
switch (_response.error.statusCode) {
|
|
590
|
+
case 401:
|
|
591
|
+
throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
|
|
592
|
+
case 403:
|
|
593
|
+
throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
|
|
594
|
+
case 404:
|
|
595
|
+
throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
|
|
596
|
+
case 500:
|
|
597
|
+
throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
|
|
598
|
+
default:
|
|
599
|
+
throw new errors.HubPlatformError({
|
|
600
|
+
statusCode: _response.error.statusCode,
|
|
601
|
+
body: _response.error.body,
|
|
602
|
+
rawResponse: _response.rawResponse,
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
return handleNonStatusCodeError(
|
|
608
|
+
_response.error,
|
|
609
|
+
_response.rawResponse,
|
|
610
|
+
"GET",
|
|
611
|
+
"/service-executions/v1/{id}/metrics",
|
|
612
|
+
);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Get the logs for a specific service execution (identified by its ID). If the service execution has not started yet or no logs are available, a HTTP 204 (No Content) response is returned with a "Retry-After" header. Use the optional 'limit' query parameter to retrieve only the last X log messages. Use the optional 'raw' parameter to download logs as plain text instead of JSON.
|
|
617
|
+
*
|
|
618
|
+
* @param {HubPlatform.GetServiceExecutionLogsRequest} request
|
|
619
|
+
* @param {ServiceExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
620
|
+
*
|
|
621
|
+
* @throws {@link HubPlatform.UnauthorizedError}
|
|
622
|
+
* @throws {@link HubPlatform.ForbiddenError}
|
|
623
|
+
* @throws {@link HubPlatform.NotFoundError}
|
|
624
|
+
* @throws {@link HubPlatform.InternalServerError}
|
|
625
|
+
*
|
|
626
|
+
* @example
|
|
627
|
+
* await client.serviceExecutions.getServiceExecutionLogs({
|
|
628
|
+
* id: "id"
|
|
629
|
+
* })
|
|
630
|
+
*/
|
|
631
|
+
public getServiceExecutionLogs(
|
|
632
|
+
request: HubPlatform.GetServiceExecutionLogsRequest,
|
|
633
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
634
|
+
): core.HttpResponsePromise<HubPlatform.ServiceExecutionLogs> {
|
|
635
|
+
return core.HttpResponsePromise.fromPromise(this.__getServiceExecutionLogs(request, requestOptions));
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
private async __getServiceExecutionLogs(
|
|
639
|
+
request: HubPlatform.GetServiceExecutionLogsRequest,
|
|
640
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
641
|
+
): Promise<core.WithRawResponse<HubPlatform.ServiceExecutionLogs>> {
|
|
642
|
+
const { id, limit, raw } = request;
|
|
643
|
+
const _queryParams: Record<string, unknown> = {
|
|
644
|
+
limit,
|
|
645
|
+
raw,
|
|
646
|
+
};
|
|
647
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
648
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
649
|
+
_authRequest.headers,
|
|
650
|
+
this._options?.headers,
|
|
651
|
+
mergeOnlyDefinedHeaders({
|
|
652
|
+
"X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
|
|
653
|
+
}),
|
|
654
|
+
requestOptions?.headers,
|
|
655
|
+
);
|
|
656
|
+
const _response = await core.fetcher({
|
|
657
|
+
url: core.url.join(
|
|
658
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
659
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
660
|
+
environments.HubPlatformEnvironment.Default,
|
|
661
|
+
`service-executions/v1/${core.url.encodePathParam(id)}/logs`,
|
|
662
|
+
),
|
|
663
|
+
method: "GET",
|
|
664
|
+
headers: _headers,
|
|
665
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
666
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
667
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
668
|
+
withCredentials: true,
|
|
669
|
+
abortSignal: requestOptions?.abortSignal,
|
|
670
|
+
fetchFn: this._options?.fetch,
|
|
671
|
+
logging: this._options.logging,
|
|
672
|
+
});
|
|
673
|
+
if (_response.ok) {
|
|
674
|
+
return { data: _response.body as HubPlatform.ServiceExecutionLogs, rawResponse: _response.rawResponse };
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
if (_response.error.reason === "status-code") {
|
|
678
|
+
switch (_response.error.statusCode) {
|
|
679
|
+
case 401:
|
|
680
|
+
throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
|
|
681
|
+
case 403:
|
|
682
|
+
throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
|
|
683
|
+
case 404:
|
|
684
|
+
throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
|
|
685
|
+
case 500:
|
|
686
|
+
throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
|
|
687
|
+
default:
|
|
688
|
+
throw new errors.HubPlatformError({
|
|
689
|
+
statusCode: _response.error.statusCode,
|
|
690
|
+
body: _response.error.body,
|
|
691
|
+
rawResponse: _response.rawResponse,
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
return handleNonStatusCodeError(
|
|
697
|
+
_response.error,
|
|
698
|
+
_response.rawResponse,
|
|
699
|
+
"GET",
|
|
700
|
+
"/service-executions/v1/{id}/logs",
|
|
701
|
+
);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Get the costs for a specific service execution (identified by its ID). If the service execution has not started yet or no costs are available, a HTTP 204 (No Content) response is returned with a "Retry-After" header.
|
|
706
|
+
*
|
|
707
|
+
* @param {HubPlatform.GetServiceExecutionCostsRequest} request
|
|
708
|
+
* @param {ServiceExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
709
|
+
*
|
|
710
|
+
* @throws {@link HubPlatform.UnauthorizedError}
|
|
711
|
+
* @throws {@link HubPlatform.ForbiddenError}
|
|
712
|
+
* @throws {@link HubPlatform.NotFoundError}
|
|
713
|
+
* @throws {@link HubPlatform.InternalServerError}
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
* await client.serviceExecutions.getServiceExecutionCosts({
|
|
717
|
+
* id: "id"
|
|
718
|
+
* })
|
|
719
|
+
*/
|
|
720
|
+
public getServiceExecutionCosts(
|
|
721
|
+
request: HubPlatform.GetServiceExecutionCostsRequest,
|
|
722
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
723
|
+
): core.HttpResponsePromise<HubPlatform.ServiceExecutionCosts> {
|
|
724
|
+
return core.HttpResponsePromise.fromPromise(this.__getServiceExecutionCosts(request, requestOptions));
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
private async __getServiceExecutionCosts(
|
|
728
|
+
request: HubPlatform.GetServiceExecutionCostsRequest,
|
|
729
|
+
requestOptions?: ServiceExecutionsClient.RequestOptions,
|
|
730
|
+
): Promise<core.WithRawResponse<HubPlatform.ServiceExecutionCosts>> {
|
|
731
|
+
const { id } = request;
|
|
732
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
733
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
734
|
+
_authRequest.headers,
|
|
735
|
+
this._options?.headers,
|
|
736
|
+
mergeOnlyDefinedHeaders({
|
|
737
|
+
"X-OrganizationId": requestOptions?.organizationId ?? this._options?.organizationId,
|
|
738
|
+
}),
|
|
739
|
+
requestOptions?.headers,
|
|
740
|
+
);
|
|
741
|
+
const _response = await core.fetcher({
|
|
742
|
+
url: core.url.join(
|
|
743
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
744
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
745
|
+
environments.HubPlatformEnvironment.Default,
|
|
746
|
+
`service-executions/v1/${core.url.encodePathParam(id)}/costs`,
|
|
747
|
+
),
|
|
748
|
+
method: "GET",
|
|
749
|
+
headers: _headers,
|
|
750
|
+
queryParameters: requestOptions?.queryParams,
|
|
751
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
752
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
753
|
+
withCredentials: true,
|
|
754
|
+
abortSignal: requestOptions?.abortSignal,
|
|
755
|
+
fetchFn: this._options?.fetch,
|
|
756
|
+
logging: this._options.logging,
|
|
757
|
+
});
|
|
758
|
+
if (_response.ok) {
|
|
759
|
+
return { data: _response.body as HubPlatform.ServiceExecutionCosts, rawResponse: _response.rawResponse };
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
if (_response.error.reason === "status-code") {
|
|
763
|
+
switch (_response.error.statusCode) {
|
|
764
|
+
case 401:
|
|
765
|
+
throw new HubPlatform.UnauthorizedError(_response.error.body as any, _response.rawResponse);
|
|
766
|
+
case 403:
|
|
767
|
+
throw new HubPlatform.ForbiddenError(_response.error.body as any, _response.rawResponse);
|
|
768
|
+
case 404:
|
|
769
|
+
throw new HubPlatform.NotFoundError(_response.error.body as any, _response.rawResponse);
|
|
770
|
+
case 500:
|
|
771
|
+
throw new HubPlatform.InternalServerError(_response.error.body as any, _response.rawResponse);
|
|
772
|
+
default:
|
|
773
|
+
throw new errors.HubPlatformError({
|
|
774
|
+
statusCode: _response.error.statusCode,
|
|
775
|
+
body: _response.error.body,
|
|
776
|
+
rawResponse: _response.rawResponse,
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
return handleNonStatusCodeError(
|
|
782
|
+
_response.error,
|
|
783
|
+
_response.rawResponse,
|
|
784
|
+
"GET",
|
|
785
|
+
"/service-executions/v1/{id}/costs",
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
}
|