alchemy 2.0.0-beta.65 → 2.0.0-beta.67
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/bin/exec.js +578 -224
- package/bin/exec.js.map +1 -1
- package/lib/AWS/ApiGateway/common.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/common.js +8 -1
- package/lib/AWS/ApiGateway/common.js.map +1 -1
- package/lib/AWS/Bedrock/LanguageModel.d.ts +208 -0
- package/lib/AWS/Bedrock/LanguageModel.d.ts.map +1 -0
- package/lib/AWS/Bedrock/LanguageModel.js +508 -0
- package/lib/AWS/Bedrock/LanguageModel.js.map +1 -0
- package/lib/AWS/Bedrock/LanguageModelHttp.d.ts +10 -0
- package/lib/AWS/Bedrock/LanguageModelHttp.d.ts.map +1 -0
- package/lib/AWS/Bedrock/LanguageModelHttp.js +26 -0
- package/lib/AWS/Bedrock/LanguageModelHttp.js.map +1 -0
- package/lib/AWS/Bedrock/index.d.ts +2 -0
- package/lib/AWS/Bedrock/index.d.ts.map +1 -1
- package/lib/AWS/Bedrock/index.js +2 -0
- package/lib/AWS/Bedrock/index.js.map +1 -1
- package/lib/AWS/CloudFront/Distribution.d.ts +24 -0
- package/lib/AWS/CloudFront/Distribution.d.ts.map +1 -1
- package/lib/AWS/CloudFront/Distribution.js +89 -4
- package/lib/AWS/CloudFront/Distribution.js.map +1 -1
- package/lib/AWS/CostExplorer/AnomalyMonitor.d.ts +1 -1
- package/lib/AWS/CostExplorer/AnomalyMonitor.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/AnomalySubscription.d.ts +1 -1
- package/lib/AWS/CostExplorer/AnomalySubscription.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/BindingHttp.d.ts +3 -3
- package/lib/AWS/CostExplorer/BindingHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/CostCategory.d.ts +1 -1
- package/lib/AWS/CostExplorer/CostCategory.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetAnomaliesHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetAnomaliesHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetApproximateUsageRecordsHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetApproximateUsageRecordsHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetCommitmentPurchaseAnalysisHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetCommitmentPurchaseAnalysisHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetCostAndUsageComparisonsHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetCostAndUsageComparisonsHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetCostAndUsageHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetCostAndUsageHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetCostAndUsageWithResourcesHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetCostAndUsageWithResourcesHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetCostCategoriesHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetCostCategoriesHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetCostComparisonDriversHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetCostComparisonDriversHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetCostForecastHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetCostForecastHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetDimensionValuesHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetDimensionValuesHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetReservationCoverageHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetReservationCoverageHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetReservationPurchaseRecommendationHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetReservationPurchaseRecommendationHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetReservationUtilizationHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetReservationUtilizationHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetRightsizingRecommendationHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetRightsizingRecommendationHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlanPurchaseRecommendationDetailsHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlanPurchaseRecommendationDetailsHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlansCoverageHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlansCoverageHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlansPurchaseRecommendationHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlansPurchaseRecommendationHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlansUtilizationDetailsHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlansUtilizationDetailsHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlansUtilizationHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetSavingsPlansUtilizationHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetTagsHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetTagsHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/GetUsageForecastHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/GetUsageForecastHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/ListCommitmentPurchaseAnalysesHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/ListCommitmentPurchaseAnalysesHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/ListCostAllocationTagBackfillHistoryHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/ListCostAllocationTagBackfillHistoryHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/ListCostAllocationTagsHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/ListCostAllocationTagsHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/ListCostCategoryResourceAssociationsHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/ListCostCategoryResourceAssociationsHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/ListSavingsPlansPurchaseRecommendationGenerationHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/ListSavingsPlansPurchaseRecommendationGenerationHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/ProvideAnomalyFeedbackHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/ProvideAnomalyFeedbackHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/StartCommitmentPurchaseAnalysisHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/StartCommitmentPurchaseAnalysisHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/StartCostAllocationTagBackfillHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/StartCostAllocationTagBackfillHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/StartSavingsPlansPurchaseRecommendationGenerationHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/StartSavingsPlansPurchaseRecommendationGenerationHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/UpdateCostAllocationTagsStatusHttp.d.ts +1 -1
- package/lib/AWS/CostExplorer/UpdateCostAllocationTagsStatusHttp.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/common.d.ts +5 -3
- package/lib/AWS/CostExplorer/common.d.ts.map +1 -1
- package/lib/AWS/CostExplorer/common.js +16 -1
- package/lib/AWS/CostExplorer/common.js.map +1 -1
- package/lib/AWS/DataSync/Task.d.ts.map +1 -1
- package/lib/AWS/DataSync/Task.js +16 -2
- package/lib/AWS/DataSync/Task.js.map +1 -1
- package/lib/AWS/EC2/Vpc.d.ts.map +1 -1
- package/lib/AWS/EC2/Vpc.js +15 -2
- package/lib/AWS/EC2/Vpc.js.map +1 -1
- package/lib/AWS/EC2/hosted.d.ts.map +1 -1
- package/lib/AWS/EC2/hosted.js +10 -2
- package/lib/AWS/EC2/hosted.js.map +1 -1
- package/lib/AWS/ECR/Image.d.ts +132 -13
- package/lib/AWS/ECR/Image.d.ts.map +1 -1
- package/lib/AWS/ECR/ImageSource.d.ts.map +1 -1
- package/lib/AWS/ECR/ImageSource.js +10 -2
- package/lib/AWS/ECR/ImageSource.js.map +1 -1
- package/lib/AWS/ECR/Repository.d.ts +2 -0
- package/lib/AWS/ECR/Repository.d.ts.map +1 -1
- package/lib/AWS/ECR/Repository.js +28 -3
- package/lib/AWS/ECR/Repository.js.map +1 -1
- package/lib/AWS/ECS/Service.d.ts +27 -1
- package/lib/AWS/ECS/Service.d.ts.map +1 -1
- package/lib/AWS/ECS/Service.js +184 -22
- package/lib/AWS/ECS/Service.js.map +1 -1
- package/lib/AWS/ECS/Task.d.ts +32 -8
- package/lib/AWS/ECS/Task.d.ts.map +1 -1
- package/lib/AWS/ECS/Task.js +62 -29
- package/lib/AWS/ECS/Task.js.map +1 -1
- package/lib/AWS/EKS/Deployment.d.ts.map +1 -1
- package/lib/AWS/EKS/Deployment.js +10 -2
- package/lib/AWS/EKS/Deployment.js.map +1 -1
- package/lib/AWS/EKS/Job.d.ts.map +1 -1
- package/lib/AWS/EKS/Job.js +10 -2
- package/lib/AWS/EKS/Job.js.map +1 -1
- package/lib/AWS/Lambda/Function.d.ts +15 -0
- package/lib/AWS/Lambda/Function.d.ts.map +1 -1
- package/lib/AWS/Lambda/Function.js +67 -29
- package/lib/AWS/Lambda/Function.js.map +1 -1
- package/lib/AWS/Lambda/HttpServer.d.ts.map +1 -1
- package/lib/AWS/Lambda/HttpServer.js +7 -1
- package/lib/AWS/Lambda/HttpServer.js.map +1 -1
- package/lib/AWS/Lambda/LayerVersion.d.ts +176 -0
- package/lib/AWS/Lambda/LayerVersion.d.ts.map +1 -0
- package/lib/AWS/Lambda/LayerVersion.js +288 -0
- package/lib/AWS/Lambda/LayerVersion.js.map +1 -0
- package/lib/AWS/Lambda/MicrovmBundle.d.ts.map +1 -1
- package/lib/AWS/Lambda/MicrovmBundle.js +10 -2
- package/lib/AWS/Lambda/MicrovmBundle.js.map +1 -1
- package/lib/AWS/Lambda/index.d.ts +1 -0
- package/lib/AWS/Lambda/index.d.ts.map +1 -1
- package/lib/AWS/Lambda/index.js +1 -0
- package/lib/AWS/Lambda/index.js.map +1 -1
- package/lib/AWS/Providers.d.ts.map +1 -1
- package/lib/AWS/Providers.js +6 -1
- package/lib/AWS/Providers.js.map +1 -1
- package/lib/AWS/SES/ActiveReceiptRuleSet.d.ts +40 -0
- package/lib/AWS/SES/ActiveReceiptRuleSet.d.ts.map +1 -0
- package/lib/AWS/SES/ActiveReceiptRuleSet.js +58 -0
- package/lib/AWS/SES/ActiveReceiptRuleSet.js.map +1 -0
- package/lib/AWS/SES/ReceiptFilter.d.ts +67 -0
- package/lib/AWS/SES/ReceiptFilter.d.ts.map +1 -0
- package/lib/AWS/SES/ReceiptFilter.js +92 -0
- package/lib/AWS/SES/ReceiptFilter.js.map +1 -0
- package/lib/AWS/SES/ReceiptRule.d.ts +133 -0
- package/lib/AWS/SES/ReceiptRule.d.ts.map +1 -0
- package/lib/AWS/SES/ReceiptRule.js +178 -0
- package/lib/AWS/SES/ReceiptRule.js.map +1 -0
- package/lib/AWS/SES/ReceiptRuleSet.d.ts +55 -0
- package/lib/AWS/SES/ReceiptRuleSet.d.ts.map +1 -0
- package/lib/AWS/SES/ReceiptRuleSet.js +112 -0
- package/lib/AWS/SES/ReceiptRuleSet.js.map +1 -0
- package/lib/AWS/SES/SendBounce.d.ts +37 -0
- package/lib/AWS/SES/SendBounce.d.ts.map +1 -0
- package/lib/AWS/SES/SendBounce.js +3 -0
- package/lib/AWS/SES/SendBounce.js.map +1 -0
- package/lib/AWS/SES/SendBounceHttp.d.ts +4 -0
- package/lib/AWS/SES/SendBounceHttp.d.ts.map +1 -0
- package/lib/AWS/SES/SendBounceHttp.js +10 -0
- package/lib/AWS/SES/SendBounceHttp.js.map +1 -0
- package/lib/AWS/SES/index.d.ts +6 -0
- package/lib/AWS/SES/index.d.ts.map +1 -1
- package/lib/AWS/SES/index.js +6 -0
- package/lib/AWS/SES/index.js.map +1 -1
- package/lib/AWS/StateStore/State.d.ts +11 -0
- package/lib/AWS/StateStore/State.d.ts.map +1 -1
- package/lib/AWS/StateStore/State.js +117 -38
- package/lib/AWS/StateStore/State.js.map +1 -1
- package/lib/Apply.d.ts +37 -1
- package/lib/Apply.d.ts.map +1 -1
- package/lib/Apply.js +270 -194
- package/lib/Apply.js.map +1 -1
- package/lib/Axiom/Telemetry.d.ts +66 -0
- package/lib/Axiom/Telemetry.d.ts.map +1 -0
- package/lib/Axiom/Telemetry.js +69 -0
- package/lib/Axiom/Telemetry.js.map +1 -0
- package/lib/Axiom/index.d.ts +1 -0
- package/lib/Axiom/index.d.ts.map +1 -1
- package/lib/Axiom/index.js +1 -0
- package/lib/Axiom/index.js.map +1 -1
- package/lib/Bundle/Bundle.d.ts +1 -1
- package/lib/Bundle/Bundle.d.ts.map +1 -1
- package/lib/Bundle/Bundle.js +14 -6
- package/lib/Bundle/Bundle.js.map +1 -1
- package/lib/Bundle/BundleAnalyzerPlugin.d.ts +1 -1
- package/lib/Bundle/BundleAnalyzerPlugin.d.ts.map +1 -1
- package/lib/Bundle/BundleAnalyzerPlugin.js +10 -5
- package/lib/Bundle/BundleAnalyzerPlugin.js.map +1 -1
- package/lib/Bundle/PurePlugin.d.ts +1 -1
- package/lib/Bundle/PurePlugin.d.ts.map +1 -1
- package/lib/Bundle/PurePlugin.js +15 -7
- package/lib/Bundle/PurePlugin.js.map +1 -1
- package/lib/Cli/checkVersion.d.ts +11 -5
- package/lib/Cli/checkVersion.d.ts.map +1 -1
- package/lib/Cli/checkVersion.js +73 -12
- package/lib/Cli/checkVersion.js.map +1 -1
- package/lib/Cli/commands/_shared.d.ts.map +1 -1
- package/lib/Cli/commands/_shared.js +2 -1
- package/lib/Cli/commands/_shared.js.map +1 -1
- package/lib/Cli/commands/cloudflare.d.ts +1 -1
- package/lib/Cli/commands/deploy.d.ts.map +1 -1
- package/lib/Cli/commands/deploy.js +3 -11
- package/lib/Cli/commands/deploy.js.map +1 -1
- package/lib/Cli/commands/logs.d.ts.map +1 -1
- package/lib/Cli/commands/logs.js +3 -1
- package/lib/Cli/commands/logs.js.map +1 -1
- package/lib/Cli/commands/tail.d.ts.map +1 -1
- package/lib/Cli/commands/tail.js +3 -1
- package/lib/Cli/commands/tail.js.map +1 -1
- package/lib/Cli/main.d.ts.map +1 -1
- package/lib/Cli/main.js +5 -4
- package/lib/Cli/main.js.map +1 -1
- package/lib/Cloudflare/AI/Search.d.ts +4 -15
- package/lib/Cloudflare/AI/Search.d.ts.map +1 -1
- package/lib/Cloudflare/AI/Search.js +4 -6
- package/lib/Cloudflare/AI/Search.js.map +1 -1
- package/lib/Cloudflare/AI/SearchInstance.d.ts +7 -26
- package/lib/Cloudflare/AI/SearchInstance.d.ts.map +1 -1
- package/lib/Cloudflare/AI/SearchInstance.js +7 -26
- package/lib/Cloudflare/AI/SearchInstance.js.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.d.ts +3 -0
- package/lib/Cloudflare/ApiToken/AccountApiToken.d.ts.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.js +3 -0
- package/lib/Cloudflare/ApiToken/AccountApiToken.js.map +1 -1
- package/lib/Cloudflare/Auth/AuthProvider.d.ts +2 -1
- package/lib/Cloudflare/Auth/AuthProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Auth/AuthProvider.js +8 -3
- package/lib/Cloudflare/Auth/AuthProvider.js.map +1 -1
- package/lib/Cloudflare/Auth/OAuthClient.d.ts +5 -0
- package/lib/Cloudflare/Auth/OAuthClient.d.ts.map +1 -1
- package/lib/Cloudflare/Auth/OAuthClient.js +50 -4
- package/lib/Cloudflare/Auth/OAuthClient.js.map +1 -1
- package/lib/Cloudflare/Containers/Container.d.ts +81 -3
- package/lib/Cloudflare/Containers/Container.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/Container.js +70 -0
- package/lib/Cloudflare/Containers/Container.js.map +1 -1
- package/lib/Cloudflare/Containers/ContainerApplication.d.ts +22 -1
- package/lib/Cloudflare/Containers/ContainerApplication.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerApplication.js +4 -1
- package/lib/Cloudflare/Containers/ContainerApplication.js.map +1 -1
- package/lib/Cloudflare/Containers/ContainerBundle.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerBundle.js +10 -2
- package/lib/Cloudflare/Containers/ContainerBundle.js.map +1 -1
- package/lib/Cloudflare/Containers/ContainerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerProvider.js +43 -0
- package/lib/Cloudflare/Containers/ContainerProvider.js.map +1 -1
- package/lib/Cloudflare/Credentials.d.ts +21 -1
- package/lib/Cloudflare/Credentials.d.ts.map +1 -1
- package/lib/Cloudflare/Credentials.js +52 -9
- package/lib/Cloudflare/Credentials.js.map +1 -1
- package/lib/Cloudflare/D1/ApplyMigrations.d.ts +30 -5
- package/lib/Cloudflare/D1/ApplyMigrations.d.ts.map +1 -1
- package/lib/Cloudflare/D1/ApplyMigrations.js +36 -26
- package/lib/Cloudflare/D1/ApplyMigrations.js.map +1 -1
- package/lib/Cloudflare/D1/Database.d.ts +18 -1
- package/lib/Cloudflare/D1/Database.d.ts.map +1 -1
- package/lib/Cloudflare/D1/Database.js +134 -2
- package/lib/Cloudflare/D1/Database.js.map +1 -1
- package/lib/Cloudflare/D1/LocalD1Gateway.d.ts +39 -0
- package/lib/Cloudflare/D1/LocalD1Gateway.d.ts.map +1 -0
- package/lib/Cloudflare/D1/LocalD1Gateway.js +100 -0
- package/lib/Cloudflare/D1/LocalD1Gateway.js.map +1 -0
- package/lib/Cloudflare/D1/QueryDatabaseHttpClient.d.ts +31 -0
- package/lib/Cloudflare/D1/QueryDatabaseHttpClient.d.ts.map +1 -1
- package/lib/Cloudflare/D1/QueryDatabaseHttpClient.js +13 -6
- package/lib/Cloudflare/D1/QueryDatabaseHttpClient.js.map +1 -1
- package/lib/Cloudflare/D1/QueryDatabaseLocal.d.ts.map +1 -1
- package/lib/Cloudflare/D1/QueryDatabaseLocal.js +21 -2
- package/lib/Cloudflare/D1/QueryDatabaseLocal.js.map +1 -1
- package/lib/Cloudflare/DNS/Record.d.ts +3 -1
- package/lib/Cloudflare/DNS/Record.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/Record.js +23 -4
- package/lib/Cloudflare/DNS/Record.js.map +1 -1
- package/lib/Cloudflare/Email/Address.d.ts.map +1 -1
- package/lib/Cloudflare/Email/Address.js +15 -1
- package/lib/Cloudflare/Email/Address.js.map +1 -1
- package/lib/Cloudflare/Email/SendBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Email/SendBinding.js +1 -0
- package/lib/Cloudflare/Email/SendBinding.js.map +1 -1
- package/lib/Cloudflare/Email/SendEmail.d.ts +12 -0
- package/lib/Cloudflare/Email/SendEmail.d.ts.map +1 -1
- package/lib/Cloudflare/Email/SendEmail.js +1 -0
- package/lib/Cloudflare/Email/SendEmail.js.map +1 -1
- package/lib/Cloudflare/Flagship/App.d.ts.map +1 -1
- package/lib/Cloudflare/Flagship/App.js +8 -3
- package/lib/Cloudflare/Flagship/App.js.map +1 -1
- package/lib/Cloudflare/KV/LocalKVGateway.d.ts +15 -0
- package/lib/Cloudflare/KV/LocalKVGateway.d.ts.map +1 -0
- package/lib/Cloudflare/KV/LocalKVGateway.js +64 -0
- package/lib/Cloudflare/KV/LocalKVGateway.js.map +1 -0
- package/lib/Cloudflare/KV/Namespace.d.ts +9 -1
- package/lib/Cloudflare/KV/Namespace.d.ts.map +1 -1
- package/lib/Cloudflare/KV/Namespace.js +45 -1
- package/lib/Cloudflare/KV/Namespace.js.map +1 -1
- package/lib/Cloudflare/KV/NamespaceLocal.d.ts +16 -5
- package/lib/Cloudflare/KV/NamespaceLocal.d.ts.map +1 -1
- package/lib/Cloudflare/KV/NamespaceLocal.js +21 -4
- package/lib/Cloudflare/KV/NamespaceLocal.js.map +1 -1
- package/lib/Cloudflare/KV/ReadNamespaceLocal.d.ts.map +1 -1
- package/lib/Cloudflare/KV/ReadNamespaceLocal.js +5 -1
- package/lib/Cloudflare/KV/ReadNamespaceLocal.js.map +1 -1
- package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.d.ts.map +1 -1
- package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.js +5 -1
- package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.js.map +1 -1
- package/lib/Cloudflare/KV/WriteNamespaceLocal.d.ts.map +1 -1
- package/lib/Cloudflare/KV/WriteNamespaceLocal.js +5 -1
- package/lib/Cloudflare/KV/WriteNamespaceLocal.js.map +1 -1
- package/lib/Cloudflare/LocalGateway.d.ts +25 -0
- package/lib/Cloudflare/LocalGateway.d.ts.map +1 -0
- package/lib/Cloudflare/LocalGateway.js +70 -0
- package/lib/Cloudflare/LocalGateway.js.map +1 -0
- package/lib/Cloudflare/LocalRuntime.d.ts +14 -1
- package/lib/Cloudflare/LocalRuntime.d.ts.map +1 -1
- package/lib/Cloudflare/LocalRuntime.js +16 -1
- package/lib/Cloudflare/LocalRuntime.js.map +1 -1
- package/lib/Cloudflare/Logs.d.ts.map +1 -1
- package/lib/Cloudflare/Logs.js +18 -6
- package/lib/Cloudflare/Logs.js.map +1 -1
- package/lib/Cloudflare/Providers.d.ts +1 -1
- package/lib/Cloudflare/Providers.d.ts.map +1 -1
- package/lib/Cloudflare/Providers.js +6 -2
- package/lib/Cloudflare/Providers.js.map +1 -1
- package/lib/Cloudflare/Queues/Consumer.d.ts +16 -3
- package/lib/Cloudflare/Queues/Consumer.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/Consumer.js +51 -3
- package/lib/Cloudflare/Queues/Consumer.js.map +1 -1
- package/lib/Cloudflare/Queues/Queue.d.ts +4 -3
- package/lib/Cloudflare/Queues/Queue.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/Queue.js +7 -17
- package/lib/Cloudflare/Queues/Queue.js.map +1 -1
- package/lib/Cloudflare/Queues/QueueBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/QueueBinding.js +19 -0
- package/lib/Cloudflare/Queues/QueueBinding.js.map +1 -1
- package/lib/Cloudflare/Queues/QueueShim.d.ts +55 -0
- package/lib/Cloudflare/Queues/QueueShim.d.ts.map +1 -0
- package/lib/Cloudflare/Queues/QueueShim.js +177 -0
- package/lib/Cloudflare/Queues/QueueShim.js.map +1 -0
- package/lib/Cloudflare/R2/Bucket.d.ts +14 -1
- package/lib/Cloudflare/R2/Bucket.d.ts.map +1 -1
- package/lib/Cloudflare/R2/Bucket.js +53 -1
- package/lib/Cloudflare/R2/Bucket.js.map +1 -1
- package/lib/Cloudflare/R2/BucketBinding.d.ts +10 -0
- package/lib/Cloudflare/R2/BucketBinding.d.ts.map +1 -1
- package/lib/Cloudflare/R2/BucketBinding.js +14 -3
- package/lib/Cloudflare/R2/BucketBinding.js.map +1 -1
- package/lib/Cloudflare/R2/BucketLocal.d.ts +13 -6
- package/lib/Cloudflare/R2/BucketLocal.d.ts.map +1 -1
- package/lib/Cloudflare/R2/BucketLocal.js +19 -6
- package/lib/Cloudflare/R2/BucketLocal.js.map +1 -1
- package/lib/Cloudflare/R2/LocalR2Gateway.d.ts +15 -0
- package/lib/Cloudflare/R2/LocalR2Gateway.d.ts.map +1 -0
- package/lib/Cloudflare/R2/LocalR2Gateway.js +65 -0
- package/lib/Cloudflare/R2/LocalR2Gateway.js.map +1 -0
- package/lib/Cloudflare/R2/ReadBucketLocal.d.ts.map +1 -1
- package/lib/Cloudflare/R2/ReadBucketLocal.js +5 -1
- package/lib/Cloudflare/R2/ReadBucketLocal.js.map +1 -1
- package/lib/Cloudflare/R2/ReadWriteBucketLocal.d.ts.map +1 -1
- package/lib/Cloudflare/R2/ReadWriteBucketLocal.js +5 -1
- package/lib/Cloudflare/R2/ReadWriteBucketLocal.js.map +1 -1
- package/lib/Cloudflare/R2/WriteBucketLocal.d.ts.map +1 -1
- package/lib/Cloudflare/R2/WriteBucketLocal.js +5 -1
- package/lib/Cloudflare/R2/WriteBucketLocal.js.map +1 -1
- package/lib/Cloudflare/Ruleset/AccountEntrypoint.d.ts.map +1 -1
- package/lib/Cloudflare/Ruleset/AccountEntrypoint.js +5 -1
- package/lib/Cloudflare/Ruleset/AccountEntrypoint.js.map +1 -1
- package/lib/Cloudflare/Ruleset/Ruleset.d.ts.map +1 -1
- package/lib/Cloudflare/Ruleset/Ruleset.js +19 -6
- package/lib/Cloudflare/Ruleset/Ruleset.js.map +1 -1
- package/lib/Cloudflare/Rum/Site.js +10 -2
- package/lib/Cloudflare/Rum/Site.js.map +1 -1
- package/lib/Cloudflare/StateStore/Api.d.ts +31 -2
- package/lib/Cloudflare/StateStore/Api.js +1 -1
- package/lib/Cloudflare/StateStore/Api.js.map +1 -1
- package/lib/Cloudflare/StateStore/State.d.ts +1 -1
- package/lib/Cloudflare/StateStore/State.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.js +20 -1
- package/lib/Cloudflare/Tunnel/Tunnel.js.map +1 -1
- package/lib/Cloudflare/Website/StaticSite.d.ts +34 -7
- package/lib/Cloudflare/Website/StaticSite.d.ts.map +1 -1
- package/lib/Cloudflare/Website/StaticSite.js +108 -24
- package/lib/Cloudflare/Website/StaticSite.js.map +1 -1
- package/lib/Cloudflare/Website/Vite.d.ts +33 -19
- package/lib/Cloudflare/Website/Vite.d.ts.map +1 -1
- package/lib/Cloudflare/Website/Vite.js +33 -19
- package/lib/Cloudflare/Website/Vite.js.map +1 -1
- package/lib/Cloudflare/Workers/Compatibility.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Compatibility.js +26 -7
- package/lib/Cloudflare/Workers/Compatibility.js.map +1 -1
- package/lib/Cloudflare/Workers/DurableObject.d.ts +22 -0
- package/lib/Cloudflare/Workers/DurableObject.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/DurableObject.js +22 -0
- package/lib/Cloudflare/Workers/DurableObject.js.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectBridge.js +20 -5
- package/lib/Cloudflare/Workers/DurableObjectBridge.js.map +1 -1
- package/lib/Cloudflare/Workers/InferEnv.d.ts +4 -2
- package/lib/Cloudflare/Workers/InferEnv.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts +7 -3
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js +483 -298
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/Worker.d.ts +612 -13
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js +222 -1
- package/lib/Cloudflare/Workers/Worker.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts +13 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +171 -21
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts +130 -28
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBridge.d.ts +6 -2
- package/lib/Cloudflare/Workers/WorkerBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBridge.js +18 -2
- package/lib/Cloudflare/Workers/WorkerBridge.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBundle.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBundle.js +4 -1
- package/lib/Cloudflare/Workers/WorkerBundle.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerProvider.d.ts +186 -11
- package/lib/Cloudflare/Workers/WorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerProvider.js +1765 -236
- package/lib/Cloudflare/Workers/WorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workflows/WorkflowBridge.d.ts +7 -1
- package/lib/Cloudflare/Workflows/WorkflowBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workflows/WorkflowBridge.js +14 -4
- package/lib/Cloudflare/Workflows/WorkflowBridge.js.map +1 -1
- package/lib/Command/Build.d.ts +2 -2
- package/lib/Command/Build.d.ts.map +1 -1
- package/lib/Command/Build.js +4 -7
- package/lib/Command/Build.js.map +1 -1
- package/lib/Command/Command.d.ts +34 -4
- package/lib/Command/Command.d.ts.map +1 -1
- package/lib/Command/Command.js +125 -30
- package/lib/Command/Command.js.map +1 -1
- package/lib/Command/Dev.d.ts +2 -2
- package/lib/Command/Dev.d.ts.map +1 -1
- package/lib/Command/Dev.js +51 -73
- package/lib/Command/Dev.js.map +1 -1
- package/lib/Command/Exec.d.ts +11 -2
- package/lib/Command/Exec.d.ts.map +1 -1
- package/lib/Command/Exec.js +9 -0
- package/lib/Command/Exec.js.map +1 -1
- package/lib/Command/Memo.d.ts +9 -1
- package/lib/Command/Memo.d.ts.map +1 -1
- package/lib/Command/Memo.js +14 -2
- package/lib/Command/Memo.js.map +1 -1
- package/lib/Command/Providers.d.ts +1 -1
- package/lib/Command/Providers.d.ts.map +1 -1
- package/lib/Command/Redaction.d.ts +10 -0
- package/lib/Command/Redaction.d.ts.map +1 -0
- package/lib/Command/Redaction.js +119 -0
- package/lib/Command/Redaction.js.map +1 -0
- package/lib/Deploy.d.ts +2 -1
- package/lib/Deploy.d.ts.map +1 -1
- package/lib/Destroy.d.ts +2 -1
- package/lib/Destroy.d.ts.map +1 -1
- package/lib/Destroy.js +1 -9
- package/lib/Destroy.js.map +1 -1
- package/lib/Docker/Container.d.ts +15 -1
- package/lib/Docker/Container.d.ts.map +1 -1
- package/lib/Docker/Container.js +34 -11
- package/lib/Docker/Container.js.map +1 -1
- package/lib/Docker/Context.d.ts +84 -0
- package/lib/Docker/Context.d.ts.map +1 -0
- package/lib/Docker/Context.js +145 -0
- package/lib/Docker/Context.js.map +1 -0
- package/lib/Docker/Docker.d.ts +190 -14
- package/lib/Docker/Docker.d.ts.map +1 -1
- package/lib/Docker/Docker.js +149 -28
- package/lib/Docker/Docker.js.map +1 -1
- package/lib/Docker/Image.d.ts +12 -0
- package/lib/Docker/Image.d.ts.map +1 -1
- package/lib/Docker/Image.js +24 -7
- package/lib/Docker/Image.js.map +1 -1
- package/lib/Docker/Network.d.ts +7 -0
- package/lib/Docker/Network.d.ts.map +1 -1
- package/lib/Docker/Network.js +16 -7
- package/lib/Docker/Network.js.map +1 -1
- package/lib/Docker/Providers.d.ts +1 -1
- package/lib/Docker/Providers.d.ts.map +1 -1
- package/lib/Docker/Providers.js +13 -1
- package/lib/Docker/Providers.js.map +1 -1
- package/lib/Docker/RemoteImage.d.ts +12 -0
- package/lib/Docker/RemoteImage.d.ts.map +1 -1
- package/lib/Docker/RemoteImage.js +22 -8
- package/lib/Docker/RemoteImage.js.map +1 -1
- package/lib/Docker/Service.d.ts +445 -0
- package/lib/Docker/Service.d.ts.map +1 -0
- package/lib/Docker/Service.js +578 -0
- package/lib/Docker/Service.js.map +1 -0
- package/lib/Docker/ServiceImage.d.ts +78 -0
- package/lib/Docker/ServiceImage.d.ts.map +1 -0
- package/lib/Docker/ServiceImage.js +232 -0
- package/lib/Docker/ServiceImage.js.map +1 -0
- package/lib/Docker/Swarm.d.ts +117 -0
- package/lib/Docker/Swarm.d.ts.map +1 -0
- package/lib/Docker/Swarm.js +149 -0
- package/lib/Docker/Swarm.js.map +1 -0
- package/lib/Docker/Volume.d.ts +11 -0
- package/lib/Docker/Volume.d.ts.map +1 -1
- package/lib/Docker/Volume.js +21 -6
- package/lib/Docker/Volume.js.map +1 -1
- package/lib/Docker/index.d.ts +3 -0
- package/lib/Docker/index.d.ts.map +1 -1
- package/lib/Docker/index.js +3 -0
- package/lib/Docker/index.js.map +1 -1
- package/lib/Http.d.ts +8 -1
- package/lib/Http.d.ts.map +1 -1
- package/lib/Http.js +7 -2
- package/lib/Http.js.map +1 -1
- package/lib/Local/LocalProvider.d.ts +182 -0
- package/lib/Local/LocalProvider.d.ts.map +1 -0
- package/lib/Local/LocalProvider.js +226 -0
- package/lib/Local/LocalProvider.js.map +1 -0
- package/lib/Local/ProviderLayer.d.ts +43 -2
- package/lib/Local/ProviderLayer.d.ts.map +1 -1
- package/lib/Local/ProviderLayer.js +80 -2
- package/lib/Local/ProviderLayer.js.map +1 -1
- package/lib/Local/RpcProvider.d.ts +7 -0
- package/lib/Local/RpcProvider.d.ts.map +1 -1
- package/lib/Local/RpcProvider.js +8 -3
- package/lib/Local/RpcProvider.js.map +1 -1
- package/lib/Local/RpcProviderProxy.d.ts.map +1 -1
- package/lib/Local/RpcProviderProxy.js +3 -0
- package/lib/Local/RpcProviderProxy.js.map +1 -1
- package/lib/Local/RpcServer.d.ts +8 -1
- package/lib/Local/RpcServer.d.ts.map +1 -1
- package/lib/Local/RpcServer.js +4 -1
- package/lib/Local/RpcServer.js.map +1 -1
- package/lib/Plan.d.ts +34 -0
- package/lib/Plan.d.ts.map +1 -1
- package/lib/Plan.js +127 -40
- package/lib/Plan.js.map +1 -1
- package/lib/Planetscale/AuthProvider.d.ts.map +1 -1
- package/lib/Planetscale/AuthProvider.js +6 -2
- package/lib/Planetscale/AuthProvider.js.map +1 -1
- package/lib/Planetscale/Branch.d.ts.map +1 -1
- package/lib/Planetscale/Branch.js +36 -6
- package/lib/Planetscale/Branch.js.map +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.js +31 -6
- package/lib/Planetscale/MySQL/MySQLDatabase.js.map +1 -1
- package/lib/Planetscale/OAuthClient.d.ts +7 -1
- package/lib/Planetscale/OAuthClient.d.ts.map +1 -1
- package/lib/Planetscale/OAuthClient.js +51 -4
- package/lib/Planetscale/OAuthClient.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDatabase.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDatabase.js +30 -5
- package/lib/Planetscale/Postgres/PostgresDatabase.js.map +1 -1
- package/lib/Platform.d.ts.map +1 -1
- package/lib/Platform.js +25 -14
- package/lib/Platform.js.map +1 -1
- package/lib/Prisma/App.d.ts +93 -0
- package/lib/Prisma/App.d.ts.map +1 -0
- package/lib/Prisma/App.js +251 -0
- package/lib/Prisma/App.js.map +1 -0
- package/lib/Prisma/AuthProvider.d.ts +28 -0
- package/lib/Prisma/AuthProvider.d.ts.map +1 -0
- package/lib/Prisma/AuthProvider.js +131 -0
- package/lib/Prisma/AuthProvider.js.map +1 -0
- package/lib/Prisma/Branch.d.ts +96 -0
- package/lib/Prisma/Branch.d.ts.map +1 -0
- package/lib/Prisma/Branch.js +236 -0
- package/lib/Prisma/Branch.js.map +1 -0
- package/lib/Prisma/Client.d.ts +178 -0
- package/lib/Prisma/Client.d.ts.map +1 -0
- package/lib/Prisma/Client.js +562 -0
- package/lib/Prisma/Client.js.map +1 -0
- package/lib/Prisma/Compute.d.ts +585 -0
- package/lib/Prisma/Compute.d.ts.map +1 -0
- package/lib/Prisma/Compute.js +1545 -0
- package/lib/Prisma/Compute.js.map +1 -0
- package/lib/Prisma/ComputeArchive.d.ts +63 -0
- package/lib/Prisma/ComputeArchive.d.ts.map +1 -0
- package/lib/Prisma/ComputeArchive.js +227 -0
- package/lib/Prisma/ComputeArchive.js.map +1 -0
- package/lib/Prisma/ComputeBuild.d.ts +106 -0
- package/lib/Prisma/ComputeBuild.d.ts.map +1 -0
- package/lib/Prisma/ComputeBuild.js +987 -0
- package/lib/Prisma/ComputeBuild.js.map +1 -0
- package/lib/Prisma/ComputeLifecycle.d.ts +84 -0
- package/lib/Prisma/ComputeLifecycle.d.ts.map +1 -0
- package/lib/Prisma/ComputeLifecycle.js +186 -0
- package/lib/Prisma/ComputeLifecycle.js.map +1 -0
- package/lib/Prisma/Connect.d.ts +122 -0
- package/lib/Prisma/Connect.d.ts.map +1 -0
- package/lib/Prisma/Connect.js +187 -0
- package/lib/Prisma/Connect.js.map +1 -0
- package/lib/Prisma/Connection.d.ts +219 -0
- package/lib/Prisma/Connection.d.ts.map +1 -0
- package/lib/Prisma/Connection.js +360 -0
- package/lib/Prisma/Connection.js.map +1 -0
- package/lib/Prisma/CustomDomain.d.ts +91 -0
- package/lib/Prisma/CustomDomain.d.ts.map +1 -0
- package/lib/Prisma/CustomDomain.js +184 -0
- package/lib/Prisma/CustomDomain.js.map +1 -0
- package/lib/Prisma/Database.d.ts +222 -0
- package/lib/Prisma/Database.d.ts.map +1 -0
- package/lib/Prisma/Database.js +418 -0
- package/lib/Prisma/Database.js.map +1 -0
- package/lib/Prisma/Deployment.d.ts +141 -0
- package/lib/Prisma/Deployment.d.ts.map +1 -0
- package/lib/Prisma/Deployment.js +353 -0
- package/lib/Prisma/Deployment.js.map +1 -0
- package/lib/Prisma/EnvironmentVariable.d.ts +105 -0
- package/lib/Prisma/EnvironmentVariable.d.ts.map +1 -0
- package/lib/Prisma/EnvironmentVariable.js +229 -0
- package/lib/Prisma/EnvironmentVariable.js.map +1 -0
- package/lib/Prisma/Internal/AppIdentity.d.ts +10 -0
- package/lib/Prisma/Internal/AppIdentity.d.ts.map +1 -0
- package/lib/Prisma/Internal/AppIdentity.js +6 -0
- package/lib/Prisma/Internal/AppIdentity.js.map +1 -0
- package/lib/Prisma/Internal/AppPromotion.d.ts +19 -0
- package/lib/Prisma/Internal/AppPromotion.d.ts.map +1 -0
- package/lib/Prisma/Internal/AppPromotion.js +107 -0
- package/lib/Prisma/Internal/AppPromotion.js.map +1 -0
- package/lib/Prisma/Internal/ArchivePlatform.d.ts +42 -0
- package/lib/Prisma/Internal/ArchivePlatform.d.ts.map +1 -0
- package/lib/Prisma/Internal/ArchivePlatform.js +214 -0
- package/lib/Prisma/Internal/ArchivePlatform.js.map +1 -0
- package/lib/Prisma/Internal/ArtifactFile.d.ts +58 -0
- package/lib/Prisma/Internal/ArtifactFile.d.ts.map +1 -0
- package/lib/Prisma/Internal/ArtifactFile.js +134 -0
- package/lib/Prisma/Internal/ArtifactFile.js.map +1 -0
- package/lib/Prisma/Internal/ArtifactUpload.d.ts +5 -0
- package/lib/Prisma/Internal/ArtifactUpload.d.ts.map +1 -0
- package/lib/Prisma/Internal/ArtifactUpload.js +51 -0
- package/lib/Prisma/Internal/ArtifactUpload.js.map +1 -0
- package/lib/Prisma/Internal/BundlePaths.d.ts +4 -0
- package/lib/Prisma/Internal/BundlePaths.d.ts.map +1 -0
- package/lib/Prisma/Internal/BundlePaths.js +16 -0
- package/lib/Prisma/Internal/BundlePaths.js.map +1 -0
- package/lib/Prisma/Internal/CleanupFailure.d.ts +8 -0
- package/lib/Prisma/Internal/CleanupFailure.d.ts.map +1 -0
- package/lib/Prisma/Internal/CleanupFailure.js +8 -0
- package/lib/Prisma/Internal/CleanupFailure.js.map +1 -0
- package/lib/Prisma/Internal/DatabaseSecrets.d.ts +35 -0
- package/lib/Prisma/Internal/DatabaseSecrets.d.ts.map +1 -0
- package/lib/Prisma/Internal/DatabaseSecrets.js +85 -0
- package/lib/Prisma/Internal/DatabaseSecrets.js.map +1 -0
- package/lib/Prisma/Internal/DeploymentActions.d.ts +5 -0
- package/lib/Prisma/Internal/DeploymentActions.d.ts.map +1 -0
- package/lib/Prisma/Internal/DeploymentActions.js +16 -0
- package/lib/Prisma/Internal/DeploymentActions.js.map +1 -0
- package/lib/Prisma/Internal/DeploymentIdentity.d.ts +8 -0
- package/lib/Prisma/Internal/DeploymentIdentity.d.ts.map +1 -0
- package/lib/Prisma/Internal/DeploymentIdentity.js +12 -0
- package/lib/Prisma/Internal/DeploymentIdentity.js.map +1 -0
- package/lib/Prisma/Internal/DeploymentObserve.d.ts +3 -0
- package/lib/Prisma/Internal/DeploymentObserve.d.ts.map +1 -0
- package/lib/Prisma/Internal/DeploymentObserve.js +2 -0
- package/lib/Prisma/Internal/DeploymentObserve.js.map +1 -0
- package/lib/Prisma/Internal/EnvName.d.ts +7 -0
- package/lib/Prisma/Internal/EnvName.d.ts.map +1 -0
- package/lib/Prisma/Internal/EnvName.js +23 -0
- package/lib/Prisma/Internal/EnvName.js.map +1 -0
- package/lib/Prisma/Internal/HttpClient.d.ts +21 -0
- package/lib/Prisma/Internal/HttpClient.d.ts.map +1 -0
- package/lib/Prisma/Internal/HttpClient.js +23 -0
- package/lib/Prisma/Internal/HttpClient.js.map +1 -0
- package/lib/Prisma/Operations.d.ts +143 -0
- package/lib/Prisma/Operations.d.ts.map +1 -0
- package/lib/Prisma/Operations.js +75 -0
- package/lib/Prisma/Operations.js.map +1 -0
- package/lib/Prisma/Postgres.d.ts +25 -0
- package/lib/Prisma/Postgres.d.ts.map +1 -0
- package/lib/Prisma/Postgres.js +24 -0
- package/lib/Prisma/Postgres.js.map +1 -0
- package/lib/Prisma/PostgresOrigin.d.ts +31 -0
- package/lib/Prisma/PostgresOrigin.d.ts.map +1 -0
- package/lib/Prisma/PostgresOrigin.js +30 -0
- package/lib/Prisma/PostgresOrigin.js.map +1 -0
- package/lib/Prisma/PrismaDevDatabase.d.ts +25 -0
- package/lib/Prisma/PrismaDevDatabase.d.ts.map +1 -0
- package/lib/Prisma/PrismaDevDatabase.js +280 -0
- package/lib/Prisma/PrismaDevDatabase.js.map +1 -0
- package/lib/Prisma/PrismaEnvironment.d.ts +14 -0
- package/lib/Prisma/PrismaEnvironment.d.ts.map +1 -0
- package/lib/Prisma/PrismaEnvironment.js +50 -0
- package/lib/Prisma/PrismaEnvironment.js.map +1 -0
- package/lib/Prisma/PrismaLogs.d.ts +42 -0
- package/lib/Prisma/PrismaLogs.d.ts.map +1 -0
- package/lib/Prisma/PrismaLogs.js +318 -0
- package/lib/Prisma/PrismaLogs.js.map +1 -0
- package/lib/Prisma/Project.d.ts +123 -0
- package/lib/Prisma/Project.d.ts.map +1 -0
- package/lib/Prisma/Project.js +366 -0
- package/lib/Prisma/Project.js.map +1 -0
- package/lib/Prisma/Providers.d.ts +63 -0
- package/lib/Prisma/Providers.d.ts.map +1 -0
- package/lib/Prisma/Providers.js +306 -0
- package/lib/Prisma/Providers.js.map +1 -0
- package/lib/Prisma/Refs.d.ts +19 -0
- package/lib/Prisma/Refs.d.ts.map +1 -0
- package/lib/Prisma/Refs.js +25 -0
- package/lib/Prisma/Refs.js.map +1 -0
- package/lib/Prisma/SourceRepository.d.ts +127 -0
- package/lib/Prisma/SourceRepository.d.ts.map +1 -0
- package/lib/Prisma/SourceRepository.js +239 -0
- package/lib/Prisma/SourceRepository.js.map +1 -0
- package/lib/Prisma/Types.d.ts +539 -0
- package/lib/Prisma/Types.d.ts.map +1 -0
- package/lib/Prisma/Types.js +13 -0
- package/lib/Prisma/Types.js.map +1 -0
- package/lib/Prisma/index.d.ts +25 -0
- package/lib/Prisma/index.d.ts.map +1 -0
- package/lib/Prisma/index.js +24 -0
- package/lib/Prisma/index.js.map +1 -0
- package/lib/Provider.d.ts +57 -5
- package/lib/Provider.d.ts.map +1 -1
- package/lib/Provider.js +54 -30
- package/lib/Provider.js.map +1 -1
- package/lib/ProviderMode.d.ts +93 -0
- package/lib/ProviderMode.d.ts.map +1 -0
- package/lib/ProviderMode.js +77 -0
- package/lib/ProviderMode.js.map +1 -0
- package/lib/Resource.d.ts +8 -0
- package/lib/Resource.d.ts.map +1 -1
- package/lib/Resource.js +31 -0
- package/lib/Resource.js.map +1 -1
- package/lib/RuntimeContext.d.ts +7 -0
- package/lib/RuntimeContext.d.ts.map +1 -1
- package/lib/RuntimeContext.js.map +1 -1
- package/lib/Server/Process.d.ts +8 -0
- package/lib/Server/Process.d.ts.map +1 -1
- package/lib/Server/Process.js +29 -0
- package/lib/Server/Process.js.map +1 -1
- package/lib/State/InMemoryState.d.ts.map +1 -1
- package/lib/State/InMemoryState.js +2 -0
- package/lib/State/InMemoryState.js.map +1 -1
- package/lib/State/ResourceState.d.ts +18 -0
- package/lib/State/ResourceState.d.ts.map +1 -1
- package/lib/Sync.d.ts.map +1 -1
- package/lib/Sync.js +8 -2
- package/lib/Sync.js.map +1 -1
- package/lib/Telemetry.d.ts +150 -0
- package/lib/Telemetry.d.ts.map +1 -0
- package/lib/Telemetry.js +512 -0
- package/lib/Telemetry.js.map +1 -0
- package/lib/Test/Alchemy.d.ts.map +1 -1
- package/lib/Test/Alchemy.js +3 -1
- package/lib/Test/Alchemy.js.map +1 -1
- package/lib/Test/Core.d.ts +2 -2
- package/lib/Test/Core.d.ts.map +1 -1
- package/lib/Test/Core.js +1 -8
- package/lib/Test/Core.js.map +1 -1
- package/lib/Util/Clank.d.ts +11 -6
- package/lib/Util/Clank.d.ts.map +1 -1
- package/lib/Util/Clank.js +22 -9
- package/lib/Util/Clank.js.map +1 -1
- package/lib/Util/zip.d.ts +11 -0
- package/lib/Util/zip.d.ts.map +1 -1
- package/lib/Util/zip.js +30 -0
- package/lib/Util/zip.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/package.json +46 -13
- package/src/AWS/ApiGateway/common.ts +9 -0
- package/src/AWS/Bedrock/LanguageModel.ts +883 -0
- package/src/AWS/Bedrock/LanguageModelHttp.ts +36 -0
- package/src/AWS/Bedrock/index.ts +2 -0
- package/src/AWS/CloudFront/Distribution.ts +116 -6
- package/src/AWS/CostExplorer/common.ts +23 -2
- package/src/AWS/DataSync/Task.ts +30 -15
- package/src/AWS/EC2/Vpc.ts +35 -21
- package/src/AWS/EC2/hosted.ts +10 -2
- package/src/AWS/ECR/ImageSource.ts +10 -2
- package/src/AWS/ECR/Repository.ts +39 -4
- package/src/AWS/ECS/Service.ts +322 -22
- package/src/AWS/ECS/Task.ts +82 -32
- package/src/AWS/EKS/Deployment.ts +10 -2
- package/src/AWS/EKS/Job.ts +10 -2
- package/src/AWS/Lambda/Function.ts +101 -43
- package/src/AWS/Lambda/HttpServer.ts +7 -1
- package/src/AWS/Lambda/LayerVersion.ts +490 -0
- package/src/AWS/Lambda/MicrovmBundle.ts +10 -2
- package/src/AWS/Lambda/index.ts +1 -0
- package/src/AWS/Providers.ts +10 -0
- package/src/AWS/SES/ActiveReceiptRuleSet.ts +88 -0
- package/src/AWS/SES/ReceiptFilter.ts +169 -0
- package/src/AWS/SES/ReceiptRule.ts +300 -0
- package/src/AWS/SES/ReceiptRuleSet.ts +164 -0
- package/src/AWS/SES/SendBounce.ts +44 -0
- package/src/AWS/SES/SendBounceHttp.ts +13 -0
- package/src/AWS/SES/index.ts +6 -0
- package/src/AWS/StateStore/State.ts +159 -42
- package/src/Apply.ts +199 -83
- package/src/Axiom/Telemetry.ts +119 -0
- package/src/Axiom/index.ts +1 -0
- package/src/Bundle/Bundle.ts +17 -7
- package/src/Bundle/BundleAnalyzerPlugin.ts +9 -4
- package/src/Bundle/PurePlugin.ts +19 -9
- package/src/Cli/checkVersion.ts +102 -16
- package/src/Cli/commands/_shared.ts +2 -0
- package/src/Cli/commands/deploy.ts +3 -14
- package/src/Cli/commands/logs.ts +6 -1
- package/src/Cli/commands/tail.ts +6 -1
- package/src/Cli/main.ts +5 -4
- package/src/Cloudflare/AI/Search.ts +4 -18
- package/src/Cloudflare/AI/SearchInstance.ts +7 -26
- package/src/Cloudflare/ApiToken/AccountApiToken.ts +3 -0
- package/src/Cloudflare/Auth/AuthProvider.ts +17 -3
- package/src/Cloudflare/Auth/OAuthClient.ts +58 -2
- package/src/Cloudflare/Containers/Container.ts +92 -3
- package/src/Cloudflare/Containers/ContainerApplication.ts +31 -5
- package/src/Cloudflare/Containers/ContainerBundle.ts +10 -2
- package/src/Cloudflare/Containers/ContainerProvider.ts +62 -0
- package/src/Cloudflare/Credentials.ts +69 -9
- package/src/Cloudflare/D1/ApplyMigrations.ts +72 -77
- package/src/Cloudflare/D1/Database.ts +169 -2
- package/src/Cloudflare/D1/LocalD1Gateway.ts +150 -0
- package/src/Cloudflare/D1/QueryDatabaseHttpClient.ts +49 -11
- package/src/Cloudflare/D1/QueryDatabaseLocal.ts +44 -2
- package/src/Cloudflare/DNS/Record.ts +30 -4
- package/src/Cloudflare/Email/Address.ts +18 -1
- package/src/Cloudflare/Email/SendBinding.ts +1 -0
- package/src/Cloudflare/Email/SendEmail.ts +13 -0
- package/src/Cloudflare/Flagship/App.ts +18 -6
- package/src/Cloudflare/KV/LocalKVGateway.ts +86 -0
- package/src/Cloudflare/KV/Namespace.ts +47 -1
- package/src/Cloudflare/KV/NamespaceLocal.ts +29 -6
- package/src/Cloudflare/KV/ReadNamespaceLocal.ts +5 -1
- package/src/Cloudflare/KV/ReadWriteNamespaceLocal.ts +5 -1
- package/src/Cloudflare/KV/WriteNamespaceLocal.ts +5 -1
- package/src/Cloudflare/LocalGateway.ts +86 -0
- package/src/Cloudflare/LocalRuntime.ts +21 -1
- package/src/Cloudflare/Logs.ts +58 -28
- package/src/Cloudflare/Providers.ts +4 -2
- package/src/Cloudflare/Queues/Consumer.ts +70 -2
- package/src/Cloudflare/Queues/Queue.ts +7 -16
- package/src/Cloudflare/Queues/QueueBinding.ts +21 -0
- package/src/Cloudflare/Queues/QueueShim.ts +193 -0
- package/src/Cloudflare/R2/Bucket.ts +55 -1
- package/src/Cloudflare/R2/BucketBinding.ts +17 -3
- package/src/Cloudflare/R2/BucketLocal.ts +25 -8
- package/src/Cloudflare/R2/LocalR2Gateway.ts +84 -0
- package/src/Cloudflare/R2/ReadBucketLocal.ts +7 -1
- package/src/Cloudflare/R2/ReadWriteBucketLocal.ts +7 -1
- package/src/Cloudflare/R2/WriteBucketLocal.ts +7 -1
- package/src/Cloudflare/Ruleset/AccountEntrypoint.ts +5 -1
- package/src/Cloudflare/Ruleset/Ruleset.ts +20 -6
- package/src/Cloudflare/Rum/Site.ts +11 -4
- package/src/Cloudflare/StateStore/Api.ts +1 -1
- package/src/Cloudflare/Tunnel/Tunnel.ts +23 -1
- package/src/Cloudflare/Website/StaticSite.ts +117 -28
- package/src/Cloudflare/Website/Vite.ts +33 -19
- package/src/Cloudflare/Workers/Compatibility.ts +27 -7
- package/src/Cloudflare/Workers/DurableObject.ts +22 -0
- package/src/Cloudflare/Workers/DurableObjectBridge.ts +29 -10
- package/src/Cloudflare/Workers/InferEnv.ts +74 -59
- package/src/Cloudflare/Workers/LocalWorkerProvider.ts +619 -401
- package/src/Cloudflare/Workers/Worker.ts +676 -28
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +209 -25
- package/src/Cloudflare/Workers/WorkerBinding.ts +67 -3
- package/src/Cloudflare/Workers/WorkerBridge.ts +26 -4
- package/src/Cloudflare/Workers/WorkerBundle.ts +6 -1
- package/src/Cloudflare/Workers/WorkerProvider.ts +2269 -277
- package/src/Cloudflare/Workflows/WorkflowBridge.ts +31 -13
- package/src/Command/Build.ts +8 -8
- package/src/Command/Command.ts +217 -42
- package/src/Command/Dev.ts +79 -107
- package/src/Command/Exec.ts +11 -2
- package/src/Command/Memo.ts +27 -3
- package/src/Command/Redaction.ts +181 -0
- package/src/Destroy.ts +1 -10
- package/src/Docker/Container.ts +55 -15
- package/src/Docker/Context.ts +236 -0
- package/src/Docker/Docker.ts +393 -43
- package/src/Docker/Image.ts +28 -7
- package/src/Docker/Network.ts +38 -14
- package/src/Docker/Providers.ts +16 -1
- package/src/Docker/RemoteImage.ts +23 -7
- package/src/Docker/Service.ts +1119 -0
- package/src/Docker/ServiceImage.ts +331 -0
- package/src/Docker/Swarm.ts +226 -0
- package/src/Docker/Volume.ts +25 -6
- package/src/Docker/index.ts +3 -0
- package/src/Http.ts +15 -2
- package/src/Local/LocalProvider.ts +518 -0
- package/src/Local/ProviderLayer.ts +113 -11
- package/src/Local/RpcProvider.ts +10 -5
- package/src/Local/RpcProviderProxy.ts +4 -1
- package/src/Local/RpcServer.ts +20 -2
- package/src/Plan.ts +182 -54
- package/src/Planetscale/AuthProvider.ts +15 -2
- package/src/Planetscale/Branch.ts +39 -6
- package/src/Planetscale/MySQL/MySQLDatabase.ts +34 -6
- package/src/Planetscale/OAuthClient.ts +59 -3
- package/src/Planetscale/Postgres/PostgresDatabase.ts +33 -5
- package/src/Platform.ts +29 -17
- package/src/Prisma/App.ts +433 -0
- package/src/Prisma/AuthProvider.ts +260 -0
- package/src/Prisma/Branch.ts +417 -0
- package/src/Prisma/Client.ts +1337 -0
- package/src/Prisma/Compute.ts +2878 -0
- package/src/Prisma/ComputeArchive.ts +432 -0
- package/src/Prisma/ComputeBuild.ts +1652 -0
- package/src/Prisma/ComputeLifecycle.ts +391 -0
- package/src/Prisma/Connect.ts +433 -0
- package/src/Prisma/Connection.ts +643 -0
- package/src/Prisma/CustomDomain.ts +373 -0
- package/src/Prisma/Database.ts +850 -0
- package/src/Prisma/Deployment.ts +661 -0
- package/src/Prisma/EnvironmentVariable.ts +417 -0
- package/src/Prisma/Internal/AppIdentity.ts +19 -0
- package/src/Prisma/Internal/AppPromotion.ts +172 -0
- package/src/Prisma/Internal/ArchivePlatform.ts +320 -0
- package/src/Prisma/Internal/ArtifactFile.ts +242 -0
- package/src/Prisma/Internal/ArtifactUpload.ts +86 -0
- package/src/Prisma/Internal/BundlePaths.ts +28 -0
- package/src/Prisma/Internal/CleanupFailure.ts +17 -0
- package/src/Prisma/Internal/DatabaseSecrets.ts +175 -0
- package/src/Prisma/Internal/DeploymentActions.ts +59 -0
- package/src/Prisma/Internal/DeploymentIdentity.ts +25 -0
- package/src/Prisma/Internal/DeploymentObserve.ts +6 -0
- package/src/Prisma/Internal/EnvName.ts +24 -0
- package/src/Prisma/Internal/HttpClient.ts +30 -0
- package/src/Prisma/Operations.ts +259 -0
- package/src/Prisma/Postgres.ts +25 -0
- package/src/Prisma/PostgresOrigin.ts +52 -0
- package/src/Prisma/PrismaDevDatabase.ts +395 -0
- package/src/Prisma/PrismaEnvironment.ts +89 -0
- package/src/Prisma/PrismaLogs.ts +434 -0
- package/src/Prisma/Project.ts +687 -0
- package/src/Prisma/Providers.ts +471 -0
- package/src/Prisma/Refs.ts +69 -0
- package/src/Prisma/SourceRepository.ts +455 -0
- package/src/Prisma/Types.ts +611 -0
- package/src/Prisma/index.ts +24 -0
- package/src/Provider.ts +155 -39
- package/src/ProviderMode.ts +123 -0
- package/src/Resource.ts +46 -0
- package/src/RuntimeContext.ts +7 -0
- package/src/Server/Process.ts +33 -0
- package/src/State/InMemoryState.ts +2 -0
- package/src/State/ResourceState.ts +18 -0
- package/src/Sync.ts +14 -2
- package/src/Telemetry.ts +736 -0
- package/src/Test/Alchemy.ts +3 -1
- package/src/Test/Core.ts +1 -8
- package/src/Util/Clank.ts +37 -11
- package/src/Util/zip.ts +39 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import * as Schedule from "effect/Schedule";
|
|
4
|
+
import {
|
|
5
|
+
extractConnectionSecrets,
|
|
6
|
+
isNotFound,
|
|
7
|
+
type PrismaManagementClient,
|
|
8
|
+
} from "../Client.ts";
|
|
9
|
+
import { parsePostgresOrigin, type PostgresOrigin } from "../PostgresOrigin.ts";
|
|
10
|
+
import type { Database, PrismaSecretConnection } from "../Types.ts";
|
|
11
|
+
|
|
12
|
+
export const hasCanonicalConnectionSecrets = (
|
|
13
|
+
secrets: PrismaSecretConnection,
|
|
14
|
+
) =>
|
|
15
|
+
secrets.directConnectionString !== undefined ||
|
|
16
|
+
secrets.pooledConnectionString !== undefined ||
|
|
17
|
+
secrets.accelerateConnectionString !== undefined;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Derive the conventional `databaseUrl` and parsed `origin` / `pooledOrigin`
|
|
21
|
+
* attributes from a connection's secret strings. Shared between the live
|
|
22
|
+
* Connection provider and the dev provider so local `@prisma/dev`
|
|
23
|
+
* connections materialize the same shape.
|
|
24
|
+
*/
|
|
25
|
+
export const deriveConnectionAttrs = (secrets: {
|
|
26
|
+
directConnectionString?: Redacted.Redacted<string> | undefined;
|
|
27
|
+
pooledConnectionString?: Redacted.Redacted<string> | undefined;
|
|
28
|
+
accelerateConnectionString?: Redacted.Redacted<string> | undefined;
|
|
29
|
+
}): {
|
|
30
|
+
databaseUrl: Redacted.Redacted<string> | undefined;
|
|
31
|
+
origin: PostgresOrigin | undefined;
|
|
32
|
+
pooledOrigin: PostgresOrigin | undefined;
|
|
33
|
+
} => ({
|
|
34
|
+
databaseUrl:
|
|
35
|
+
secrets.pooledConnectionString ??
|
|
36
|
+
secrets.directConnectionString ??
|
|
37
|
+
secrets.accelerateConnectionString,
|
|
38
|
+
origin: secrets.directConnectionString
|
|
39
|
+
? parsePostgresOrigin(Redacted.value(secrets.directConnectionString))
|
|
40
|
+
: undefined,
|
|
41
|
+
pooledOrigin: secrets.pooledConnectionString
|
|
42
|
+
? parsePostgresOrigin(Redacted.value(secrets.pooledConnectionString))
|
|
43
|
+
: undefined,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export const mergeConnectionSecrets = (
|
|
47
|
+
preferred: PrismaSecretConnection,
|
|
48
|
+
fallback: PrismaSecretConnection,
|
|
49
|
+
): PrismaSecretConnection => ({
|
|
50
|
+
directConnectionString:
|
|
51
|
+
preferred.directConnectionString ?? fallback.directConnectionString,
|
|
52
|
+
pooledConnectionString:
|
|
53
|
+
preferred.pooledConnectionString ?? fallback.pooledConnectionString,
|
|
54
|
+
accelerateConnectionString:
|
|
55
|
+
preferred.accelerateConnectionString ?? fallback.accelerateConnectionString,
|
|
56
|
+
host: preferred.host ?? fallback.host,
|
|
57
|
+
user: preferred.user ?? fallback.user,
|
|
58
|
+
password: preferred.password ?? fallback.password,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
class DatabaseCredentialsNotReady extends Error {}
|
|
62
|
+
|
|
63
|
+
const databaseCredentialsSchedule = Schedule.max([
|
|
64
|
+
Schedule.exponential("250 millis"),
|
|
65
|
+
Schedule.recurs(6),
|
|
66
|
+
]);
|
|
67
|
+
|
|
68
|
+
const waitForRotatableDatabase = (
|
|
69
|
+
client: PrismaManagementClient,
|
|
70
|
+
database: Database,
|
|
71
|
+
) =>
|
|
72
|
+
client.getDatabase(database.id).pipe(
|
|
73
|
+
Effect.catchIf(isNotFound, () =>
|
|
74
|
+
Effect.fail(
|
|
75
|
+
new DatabaseCredentialsNotReady(
|
|
76
|
+
`Prisma database '${database.name}' (${database.id}) is not visible yet while waiting to recover its credentials.`,
|
|
77
|
+
),
|
|
78
|
+
),
|
|
79
|
+
),
|
|
80
|
+
Effect.flatMap((observed) =>
|
|
81
|
+
observed.status === "failure"
|
|
82
|
+
? Effect.fail(
|
|
83
|
+
new Error(
|
|
84
|
+
`Prisma database '${observed.name}' (${observed.id}) entered terminal status 'failure' before credentials could be recovered.`,
|
|
85
|
+
),
|
|
86
|
+
)
|
|
87
|
+
: observed.status === "ready" && observed.defaultConnectionId !== null
|
|
88
|
+
? Effect.succeed(observed)
|
|
89
|
+
: Effect.fail(
|
|
90
|
+
new DatabaseCredentialsNotReady(
|
|
91
|
+
`Prisma database '${observed.name}' (${observed.id}) is '${observed.status}' with defaultConnectionId '${observed.defaultConnectionId ?? "null"}'; waiting for a ready default connection before recovering credentials.`,
|
|
92
|
+
),
|
|
93
|
+
),
|
|
94
|
+
),
|
|
95
|
+
Effect.retry({
|
|
96
|
+
while: (error) => error instanceof DatabaseCredentialsNotReady,
|
|
97
|
+
schedule: databaseCredentialsSchedule,
|
|
98
|
+
}),
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Recover one-time database credentials after create success but before state
|
|
103
|
+
* persistence. Prisma's ordinary database reads omit those values, so rotate
|
|
104
|
+
* the observed default connection once when no canonical URL is available.
|
|
105
|
+
*/
|
|
106
|
+
export const recoverDatabaseConnectionSecrets = Effect.fn(function* (
|
|
107
|
+
client: PrismaManagementClient,
|
|
108
|
+
initialDatabase: Database,
|
|
109
|
+
known: PrismaSecretConnection,
|
|
110
|
+
) {
|
|
111
|
+
if (initialDatabase.status === "failure") {
|
|
112
|
+
return yield* Effect.fail(
|
|
113
|
+
new Error(
|
|
114
|
+
`Prisma database '${initialDatabase.name}' (${initialDatabase.id}) is in terminal status 'failure'; credentials cannot be recovered.`,
|
|
115
|
+
),
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
let database = initialDatabase;
|
|
119
|
+
const observedConnection =
|
|
120
|
+
database.connections.find(
|
|
121
|
+
(connection) => connection.id === database.defaultConnectionId,
|
|
122
|
+
) ?? database.connections[0];
|
|
123
|
+
const available = mergeConnectionSecrets(
|
|
124
|
+
extractConnectionSecrets(observedConnection),
|
|
125
|
+
known,
|
|
126
|
+
);
|
|
127
|
+
if (hasCanonicalConnectionSecrets(available)) {
|
|
128
|
+
return { database, secrets: available };
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (database.status !== "ready" || database.defaultConnectionId === null) {
|
|
132
|
+
database = yield* waitForRotatableDatabase(client, database);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const refreshedConnection =
|
|
136
|
+
database.connections.find(
|
|
137
|
+
(connection) => connection.id === database.defaultConnectionId,
|
|
138
|
+
) ?? database.connections[0];
|
|
139
|
+
const refreshed = mergeConnectionSecrets(
|
|
140
|
+
extractConnectionSecrets(refreshedConnection),
|
|
141
|
+
available,
|
|
142
|
+
);
|
|
143
|
+
if (hasCanonicalConnectionSecrets(refreshed)) {
|
|
144
|
+
return { database, secrets: refreshed };
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const connectionId = database.defaultConnectionId;
|
|
148
|
+
if (connectionId === null) {
|
|
149
|
+
return yield* Effect.fail(
|
|
150
|
+
new DatabaseCredentialsNotReady(
|
|
151
|
+
`Prisma database '${database.name}' (${database.id}) was reported ready without a defaultConnectionId after the credential recovery wait.`,
|
|
152
|
+
),
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
const rotated = yield* client.rotateConnection(connectionId);
|
|
156
|
+
if (rotated.id !== connectionId || rotated.database.id !== database.id) {
|
|
157
|
+
return yield* Effect.fail(
|
|
158
|
+
new Error(
|
|
159
|
+
`Prisma rotated connection '${rotated.id}' for database '${rotated.database.id}', but connection '${connectionId}' belonging to database '${database.id}' was requested. Refusing to persist mismatched credentials.`,
|
|
160
|
+
),
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
const recovered = mergeConnectionSecrets(
|
|
164
|
+
extractConnectionSecrets(rotated),
|
|
165
|
+
refreshed,
|
|
166
|
+
);
|
|
167
|
+
if (!hasCanonicalConnectionSecrets(recovered)) {
|
|
168
|
+
return yield* Effect.fail(
|
|
169
|
+
new Error(
|
|
170
|
+
`Prisma rotated default connection '${connectionId}' for database '${database.id}' without returning a canonical connection URL. Retry after database provisioning completes.`,
|
|
171
|
+
),
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
return { database, secrets: recovered };
|
|
175
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import {
|
|
3
|
+
isConflict,
|
|
4
|
+
isNotFound,
|
|
5
|
+
type PrismaManagementClient,
|
|
6
|
+
} from "../Client.ts";
|
|
7
|
+
import { observeDeployment } from "./DeploymentObserve.ts";
|
|
8
|
+
|
|
9
|
+
const startConflictIsIdempotent = (
|
|
10
|
+
client: PrismaManagementClient,
|
|
11
|
+
deploymentId: string,
|
|
12
|
+
error: unknown,
|
|
13
|
+
) =>
|
|
14
|
+
observeDeployment(client, deploymentId).pipe(
|
|
15
|
+
Effect.flatMap((deployment) =>
|
|
16
|
+
deployment.status === "running" || deployment.status === "provisioning"
|
|
17
|
+
? Effect.succeed(undefined)
|
|
18
|
+
: Effect.fail(error),
|
|
19
|
+
),
|
|
20
|
+
Effect.catchIf(isNotFound, () => Effect.fail(error)),
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
const stopConflictIsIdempotent = (
|
|
24
|
+
client: PrismaManagementClient,
|
|
25
|
+
deploymentId: string,
|
|
26
|
+
error: unknown,
|
|
27
|
+
) =>
|
|
28
|
+
observeDeployment(client, deploymentId).pipe(
|
|
29
|
+
Effect.flatMap((deployment) =>
|
|
30
|
+
deployment.status === "stopped" || deployment.status === "stopping"
|
|
31
|
+
? Effect.void
|
|
32
|
+
: Effect.fail(error),
|
|
33
|
+
),
|
|
34
|
+
Effect.catchIf(isNotFound, () => Effect.fail(error)),
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export const startDeploymentIdempotent = (
|
|
38
|
+
client: PrismaManagementClient,
|
|
39
|
+
deploymentId: string,
|
|
40
|
+
) =>
|
|
41
|
+
client
|
|
42
|
+
.startDeployment(deploymentId)
|
|
43
|
+
.pipe(
|
|
44
|
+
Effect.catchIf(isConflict, (error) =>
|
|
45
|
+
startConflictIsIdempotent(client, deploymentId, error),
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export const stopDeploymentIdempotent = (
|
|
50
|
+
client: PrismaManagementClient,
|
|
51
|
+
deploymentId: string,
|
|
52
|
+
) =>
|
|
53
|
+
client
|
|
54
|
+
.stopDeployment(deploymentId)
|
|
55
|
+
.pipe(
|
|
56
|
+
Effect.catchIf(isConflict, (error) =>
|
|
57
|
+
stopConflictIsIdempotent(client, deploymentId, error),
|
|
58
|
+
),
|
|
59
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import type { PrismaManagementClient } from "../Client.ts";
|
|
3
|
+
|
|
4
|
+
/** Prove that a deployment belongs to an App before mutating or deleting it. */
|
|
5
|
+
export const ensureDeploymentMembership = Effect.fn(function* (
|
|
6
|
+
client: PrismaManagementClient,
|
|
7
|
+
appId: string,
|
|
8
|
+
deployment: { id: string; foundryVersionId: string },
|
|
9
|
+
knownLatestDeploymentId?: string | null,
|
|
10
|
+
) {
|
|
11
|
+
if (knownLatestDeploymentId === deployment.id) return;
|
|
12
|
+
const matches = (yield* client.listAppDeployments(appId)).filter(
|
|
13
|
+
(candidate) => candidate.id === deployment.id,
|
|
14
|
+
);
|
|
15
|
+
if (
|
|
16
|
+
matches.length !== 1 ||
|
|
17
|
+
matches[0]?.foundryVersionId !== deployment.foundryVersionId
|
|
18
|
+
) {
|
|
19
|
+
return yield* Effect.fail(
|
|
20
|
+
new Error(
|
|
21
|
+
`Prisma deployment '${deployment.id}' with Foundry version '${deployment.foundryVersionId}' is not uniquely owned by App '${appId}'. Refusing to start, promote, or delete a mismatched deployment.`,
|
|
22
|
+
),
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared name-mangling helpers for Prisma physical names and binding env
|
|
3
|
+
* keys. Internal — not exported from the Prisma package surface.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export const fnv1a64 = (value: string) => {
|
|
7
|
+
let hash = 0xcbf29ce484222325n;
|
|
8
|
+
for (const byte of new TextEncoder().encode(value)) {
|
|
9
|
+
hash ^= BigInt(byte);
|
|
10
|
+
hash = BigInt.asUintN(64, hash * 0x100000001b3n);
|
|
11
|
+
}
|
|
12
|
+
return hash.toString(16).padStart(16, "0").toUpperCase();
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const envName = (value: string) => {
|
|
16
|
+
const normalized = value.replaceAll(/[^a-zA-Z0-9]/g, "_").toUpperCase();
|
|
17
|
+
// Preserve the established keys for conventional PascalCase FQNs while
|
|
18
|
+
// disambiguating arbitrary logical IDs whose lossy normalization can
|
|
19
|
+
// collide (`db-a`, `db_a`, and `db.a`, for example).
|
|
20
|
+
const canonical = value
|
|
21
|
+
.split("/")
|
|
22
|
+
.every((segment) => /^[A-Z][a-z0-9]*$/.test(segment));
|
|
23
|
+
return canonical ? normalized : `${normalized}_${fnv1a64(value)}`;
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as NodeHttpClient from "@effect/platform-node/NodeHttpClient";
|
|
2
|
+
import * as EffectContext from "effect/Context";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as HttpClient from "effect/unstable/http/HttpClient";
|
|
6
|
+
|
|
7
|
+
/** Node transport preserves explicit Content-Length on file-backed uploads. */
|
|
8
|
+
export const PrismaHttpClientLive = NodeHttpClient.layerNodeHttp;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The HTTP client Prisma artifact uploads run on. Kept as a Prisma-scoped
|
|
12
|
+
* service — overriding the global `HttpClient.HttpClient` from
|
|
13
|
+
* `Prisma.providers()` would hijack every other provider in the stack (e.g.
|
|
14
|
+
* Cloudflare Worker script uploads break on node's chunked multipart
|
|
15
|
+
* bodies). Live wiring provides the node transport here because the
|
|
16
|
+
* S3-style presigned upload URLs require an explicit Content-Length, while
|
|
17
|
+
* tests that stub the ambient `HttpClient` simply omit this service and the
|
|
18
|
+
* upload falls back to the ambient client.
|
|
19
|
+
*/
|
|
20
|
+
export class PrismaUploadClient extends EffectContext.Service<
|
|
21
|
+
PrismaUploadClient,
|
|
22
|
+
HttpClient.HttpClient
|
|
23
|
+
>()("alchemy/Prisma/UploadClient") {}
|
|
24
|
+
|
|
25
|
+
export const PrismaUploadClientLive = Layer.effect(
|
|
26
|
+
PrismaUploadClient,
|
|
27
|
+
Effect.gen(function* () {
|
|
28
|
+
return yield* HttpClient.HttpClient;
|
|
29
|
+
}),
|
|
30
|
+
).pipe(Layer.provide(PrismaHttpClientLive));
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import { PrismaClient, type PrismaManagementClient } from "./Client.ts";
|
|
3
|
+
import type {
|
|
4
|
+
AppCreateInput,
|
|
5
|
+
AppDeploymentTarget,
|
|
6
|
+
AppUpdateInput,
|
|
7
|
+
BranchCreateInput,
|
|
8
|
+
BranchUpdateInput,
|
|
9
|
+
BuildLogsQuery,
|
|
10
|
+
DatabaseConnectionCreateInput,
|
|
11
|
+
DeploymentCreateInput,
|
|
12
|
+
DeploymentLogsQuery,
|
|
13
|
+
ConnectionCreateInput,
|
|
14
|
+
CustomDomainCreateInput,
|
|
15
|
+
DatabaseCreateInput,
|
|
16
|
+
DatabaseUpdateInput,
|
|
17
|
+
EnvironmentVariableCreateInput,
|
|
18
|
+
EnvironmentVariableUpdateInput,
|
|
19
|
+
PrismaBranchIdFilter,
|
|
20
|
+
ProjectCreateInput,
|
|
21
|
+
ProjectDatabaseCreateInput,
|
|
22
|
+
ProjectTransferInput,
|
|
23
|
+
ProjectUpdateInput,
|
|
24
|
+
RestoreDatabaseInput,
|
|
25
|
+
ScmInstallIntentCreateInput,
|
|
26
|
+
SourceRepositoryCreateInput,
|
|
27
|
+
} from "./Types.ts";
|
|
28
|
+
|
|
29
|
+
const withClient = <A, E, R>(
|
|
30
|
+
f: (client: PrismaManagementClient) => Effect.Effect<A, E, R>,
|
|
31
|
+
) => Effect.flatMap(PrismaClient, f);
|
|
32
|
+
|
|
33
|
+
export const listWorkspaces = (query?: {
|
|
34
|
+
cursor?: string | null;
|
|
35
|
+
limit?: number;
|
|
36
|
+
}) => withClient((client) => client.listWorkspaces(query));
|
|
37
|
+
export const getWorkspace = (id: string) =>
|
|
38
|
+
withClient((client) => client.getWorkspace(id));
|
|
39
|
+
export const getCurrentPrincipal = () =>
|
|
40
|
+
withClient((client) => client.getCurrentPrincipal());
|
|
41
|
+
|
|
42
|
+
export const listRegions = (query?: { product?: "postgres" | "accelerate" }) =>
|
|
43
|
+
withClient((client) => client.listRegions(query));
|
|
44
|
+
export const listPostgresRegions = () =>
|
|
45
|
+
withClient((client) => client.listPostgresRegions());
|
|
46
|
+
export const listAccelerateRegions = () =>
|
|
47
|
+
withClient((client) => client.listAccelerateRegions());
|
|
48
|
+
|
|
49
|
+
export const listProjects = (query?: {
|
|
50
|
+
cursor?: string | null;
|
|
51
|
+
limit?: number;
|
|
52
|
+
}) => withClient((client) => client.listProjects(query));
|
|
53
|
+
export const getProject = (id: string) =>
|
|
54
|
+
withClient((client) => client.getProject(id));
|
|
55
|
+
export const createProject = (input: ProjectCreateInput) =>
|
|
56
|
+
withClient((client) => client.createProject(input));
|
|
57
|
+
export const updateProject = (id: string, input: ProjectUpdateInput) =>
|
|
58
|
+
withClient((client) => client.updateProject(id, input));
|
|
59
|
+
export const deleteProject = (id: string) =>
|
|
60
|
+
withClient((client) => client.deleteProject(id));
|
|
61
|
+
export const transferProject = (id: string, input: ProjectTransferInput) =>
|
|
62
|
+
withClient((client) => client.transferProject(id, input));
|
|
63
|
+
|
|
64
|
+
export const listDatabases = (query?: {
|
|
65
|
+
cursor?: string | null;
|
|
66
|
+
limit?: number;
|
|
67
|
+
projectId?: string;
|
|
68
|
+
branchId?: PrismaBranchIdFilter;
|
|
69
|
+
branchGitName?: string;
|
|
70
|
+
}) => withClient((client) => client.listDatabases(query));
|
|
71
|
+
export const listProjectDatabases = (
|
|
72
|
+
projectId: string,
|
|
73
|
+
query?: { cursor?: string | null; limit?: number },
|
|
74
|
+
) => withClient((client) => client.listProjectDatabases(projectId, query));
|
|
75
|
+
export const getDatabase = (id: string) =>
|
|
76
|
+
withClient((client) => client.getDatabase(id));
|
|
77
|
+
export const createDatabase = (input: DatabaseCreateInput) =>
|
|
78
|
+
withClient((client) => client.createDatabase(input));
|
|
79
|
+
export const createProjectDatabase = (
|
|
80
|
+
projectId: string,
|
|
81
|
+
input: ProjectDatabaseCreateInput,
|
|
82
|
+
) => withClient((client) => client.createProjectDatabase(projectId, input));
|
|
83
|
+
export const updateDatabase = (id: string, input: DatabaseUpdateInput) =>
|
|
84
|
+
withClient((client) => client.updateDatabase(id, input));
|
|
85
|
+
export const deleteDatabase = (id: string) =>
|
|
86
|
+
withClient((client) => client.deleteDatabase(id));
|
|
87
|
+
export const listBackups = (databaseId: string, query?: { limit?: number }) =>
|
|
88
|
+
withClient((client) => client.listBackups(databaseId, query));
|
|
89
|
+
export const restoreDatabase = (
|
|
90
|
+
targetDatabaseId: string,
|
|
91
|
+
input: RestoreDatabaseInput,
|
|
92
|
+
) => withClient((client) => client.restoreDatabase(targetDatabaseId, input));
|
|
93
|
+
export const getDatabaseUsage = (
|
|
94
|
+
databaseId: string,
|
|
95
|
+
query?: { startDate?: string; endDate?: string },
|
|
96
|
+
) => withClient((client) => client.getDatabaseUsage(databaseId, query));
|
|
97
|
+
|
|
98
|
+
export const listConnections = (query?: {
|
|
99
|
+
cursor?: string | null;
|
|
100
|
+
limit?: number;
|
|
101
|
+
databaseId?: string;
|
|
102
|
+
}) => withClient((client) => client.listConnections(query));
|
|
103
|
+
export const listDatabaseConnections = (
|
|
104
|
+
databaseId: string,
|
|
105
|
+
query?: { cursor?: string | null; limit?: number },
|
|
106
|
+
) => withClient((client) => client.listDatabaseConnections(databaseId, query));
|
|
107
|
+
export const getConnection = (id: string) =>
|
|
108
|
+
withClient((client) => client.getConnection(id));
|
|
109
|
+
export const createConnection = (input: ConnectionCreateInput) =>
|
|
110
|
+
withClient((client) => client.createConnection(input));
|
|
111
|
+
export const createDatabaseConnection = (
|
|
112
|
+
databaseId: string,
|
|
113
|
+
input: DatabaseConnectionCreateInput,
|
|
114
|
+
) => withClient((client) => client.createDatabaseConnection(databaseId, input));
|
|
115
|
+
export const deleteConnection = (id: string) =>
|
|
116
|
+
withClient((client) => client.deleteConnection(id));
|
|
117
|
+
export const rotateConnection = (id: string) =>
|
|
118
|
+
withClient((client) => client.rotateConnection(id));
|
|
119
|
+
|
|
120
|
+
export const listBranches = (
|
|
121
|
+
projectId: string,
|
|
122
|
+
query?: {
|
|
123
|
+
cursor?: string | null;
|
|
124
|
+
limit?: number;
|
|
125
|
+
gitName?: string;
|
|
126
|
+
gitNameContains?: string;
|
|
127
|
+
},
|
|
128
|
+
) => withClient((client) => client.listBranches(projectId, query));
|
|
129
|
+
export const getBranch = (id: string) =>
|
|
130
|
+
withClient((client) => client.getBranch(id));
|
|
131
|
+
export const createBranch = (projectId: string, input: BranchCreateInput) =>
|
|
132
|
+
withClient((client) => client.createBranch(projectId, input));
|
|
133
|
+
export const updateBranch = (id: string, input: BranchUpdateInput) =>
|
|
134
|
+
withClient((client) => client.updateBranch(id, input));
|
|
135
|
+
export const deleteBranch = (id: string) =>
|
|
136
|
+
withClient((client) => client.deleteBranch(id));
|
|
137
|
+
|
|
138
|
+
export const getCustomDomain = (id: string) =>
|
|
139
|
+
withClient((client) => client.getCustomDomain(id));
|
|
140
|
+
export const deleteCustomDomain = (id: string) =>
|
|
141
|
+
withClient((client) => client.deleteCustomDomain(id));
|
|
142
|
+
export const retryCustomDomain = (id: string) =>
|
|
143
|
+
withClient((client) => client.retryCustomDomain(id));
|
|
144
|
+
|
|
145
|
+
export const listApps = (query?: {
|
|
146
|
+
cursor?: string | null;
|
|
147
|
+
limit?: number;
|
|
148
|
+
projectId?: string;
|
|
149
|
+
branchId?: PrismaBranchIdFilter;
|
|
150
|
+
branchGitName?: string;
|
|
151
|
+
}) => withClient((client) => client.listApps(query));
|
|
152
|
+
export const getApp = (id: string) => withClient((client) => client.getApp(id));
|
|
153
|
+
export const createApp = (input: AppCreateInput) =>
|
|
154
|
+
withClient((client) => client.createApp(input));
|
|
155
|
+
export const updateApp = (id: string, input: AppUpdateInput) =>
|
|
156
|
+
withClient((client) => client.updateApp(id, input));
|
|
157
|
+
export const deleteApp = (id: string) =>
|
|
158
|
+
withClient((client) => client.deleteApp(id));
|
|
159
|
+
export const promoteApp = (id: string, target: AppDeploymentTarget) =>
|
|
160
|
+
withClient((client) => client.promoteApp(id, target));
|
|
161
|
+
export const rollbackApp = (id: string, target: AppDeploymentTarget) =>
|
|
162
|
+
withClient((client) => client.rollbackApp(id, target));
|
|
163
|
+
export const listAppDomains = (appId: string) =>
|
|
164
|
+
withClient((client) => client.listAppDomains(appId));
|
|
165
|
+
export const createAppDomain = (
|
|
166
|
+
appId: string,
|
|
167
|
+
input: CustomDomainCreateInput,
|
|
168
|
+
) => withClient((client) => client.createAppDomain(appId, input));
|
|
169
|
+
export const listAppDeployments = (
|
|
170
|
+
appId: string,
|
|
171
|
+
query?: { cursor?: string | null; limit?: number },
|
|
172
|
+
) => withClient((client) => client.listAppDeployments(appId, query));
|
|
173
|
+
export const createAppDeployment = (
|
|
174
|
+
appId: string,
|
|
175
|
+
input?: DeploymentCreateInput,
|
|
176
|
+
) => withClient((client) => client.createAppDeployment(appId, input));
|
|
177
|
+
export const getDeployment = (id: string) =>
|
|
178
|
+
withClient((client) => client.getDeployment(id));
|
|
179
|
+
export const deleteDeployment = (id: string) =>
|
|
180
|
+
withClient((client) => client.deleteDeployment(id));
|
|
181
|
+
export const startDeployment = (id: string) =>
|
|
182
|
+
withClient((client) => client.startDeployment(id));
|
|
183
|
+
export const stopDeployment = (id: string) =>
|
|
184
|
+
withClient((client) => client.stopDeployment(id));
|
|
185
|
+
export const getDeploymentLogsRequest = (
|
|
186
|
+
id: string,
|
|
187
|
+
query?: DeploymentLogsQuery,
|
|
188
|
+
) => withClient((client) => client.getDeploymentLogsRequest(id, query));
|
|
189
|
+
export const getBuildLogsRequest = (buildId: string, query?: BuildLogsQuery) =>
|
|
190
|
+
withClient((client) => client.getBuildLogsRequest(buildId, query));
|
|
191
|
+
|
|
192
|
+
export const listEnvironmentVariables = (query?: {
|
|
193
|
+
cursor?: string | null;
|
|
194
|
+
limit?: number;
|
|
195
|
+
projectId?: string;
|
|
196
|
+
class?: "production" | "preview";
|
|
197
|
+
key?: string;
|
|
198
|
+
branchId?: string;
|
|
199
|
+
}) => withClient((client) => client.listEnvironmentVariables(query));
|
|
200
|
+
export const getEnvironmentVariable = (id: string) =>
|
|
201
|
+
withClient((client) => client.getEnvironmentVariable(id));
|
|
202
|
+
export const createEnvironmentVariable = (
|
|
203
|
+
input: EnvironmentVariableCreateInput,
|
|
204
|
+
) => withClient((client) => client.createEnvironmentVariable(input));
|
|
205
|
+
export const updateEnvironmentVariable = (
|
|
206
|
+
id: string,
|
|
207
|
+
input: EnvironmentVariableUpdateInput,
|
|
208
|
+
) => withClient((client) => client.updateEnvironmentVariable(id, input));
|
|
209
|
+
export const deleteEnvironmentVariable = (id: string) =>
|
|
210
|
+
withClient((client) => client.deleteEnvironmentVariable(id));
|
|
211
|
+
|
|
212
|
+
export const listIntegrations = (query: {
|
|
213
|
+
workspaceId: string;
|
|
214
|
+
cursor?: string | null;
|
|
215
|
+
limit?: number;
|
|
216
|
+
}) => withClient((client) => client.listIntegrations(query));
|
|
217
|
+
export const listWorkspaceIntegrations = (
|
|
218
|
+
workspaceId: string,
|
|
219
|
+
query?: { cursor?: string | null; limit?: number },
|
|
220
|
+
) =>
|
|
221
|
+
withClient((client) => client.listWorkspaceIntegrations(workspaceId, query));
|
|
222
|
+
export const getIntegration = (id: string) =>
|
|
223
|
+
withClient((client) => client.getIntegration(id));
|
|
224
|
+
export const deleteIntegration = (id: string) =>
|
|
225
|
+
withClient((client) => client.deleteIntegration(id));
|
|
226
|
+
export const revokeWorkspaceIntegration = (
|
|
227
|
+
workspaceId: string,
|
|
228
|
+
clientId: string,
|
|
229
|
+
) =>
|
|
230
|
+
withClient((client) =>
|
|
231
|
+
client.revokeWorkspaceIntegration(workspaceId, clientId),
|
|
232
|
+
);
|
|
233
|
+
|
|
234
|
+
export const listScmInstallations = (query: {
|
|
235
|
+
workspaceId: string;
|
|
236
|
+
cursor?: string | null;
|
|
237
|
+
limit?: number;
|
|
238
|
+
}) => withClient((client) => client.listScmInstallations(query));
|
|
239
|
+
export const createScmInstallIntent = (input: ScmInstallIntentCreateInput) =>
|
|
240
|
+
withClient((client) => client.createScmInstallIntent(input));
|
|
241
|
+
export const listScmInstallationRepositories = (
|
|
242
|
+
installationId: string,
|
|
243
|
+
query?: { cursor?: string | null; limit?: number },
|
|
244
|
+
) =>
|
|
245
|
+
withClient((client) =>
|
|
246
|
+
client.listScmInstallationRepositories(installationId, query),
|
|
247
|
+
);
|
|
248
|
+
|
|
249
|
+
export const listSourceRepositories = (query: {
|
|
250
|
+
projectId: string;
|
|
251
|
+
cursor?: string | null;
|
|
252
|
+
limit?: number;
|
|
253
|
+
}) => withClient((client) => client.listSourceRepositories(query));
|
|
254
|
+
export const getSourceRepository = (id: string) =>
|
|
255
|
+
withClient((client) => client.getSourceRepository(id));
|
|
256
|
+
export const createSourceRepository = (input: SourceRepositoryCreateInput) =>
|
|
257
|
+
withClient((client) => client.createSourceRepository(input));
|
|
258
|
+
export const deleteSourceRepository = (id: string) =>
|
|
259
|
+
withClient((client) => client.deleteSourceRepository(id));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Database } from "./Database.ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Product-shaped convenience alias for {@link Database}.
|
|
5
|
+
*
|
|
6
|
+
* `Prisma.Postgres(...)` and `Prisma.Database(...)` use the same underlying
|
|
7
|
+
* Prisma Postgres resource provider. Prefer `Postgres` when you want the code
|
|
8
|
+
* to read like the Prisma product name, and `Database` when you want to mirror
|
|
9
|
+
* the Management API route names. Like `Database`, this standalone resource
|
|
10
|
+
* cannot be the project's default database; use `Prisma.Project` to own the
|
|
11
|
+
* default.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const project = yield* Prisma.Project("app", { createDatabase: false });
|
|
16
|
+
* const postgres = yield* Prisma.Postgres("db", {
|
|
17
|
+
* project,
|
|
18
|
+
* region: "us-east-1",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @resource
|
|
23
|
+
*/
|
|
24
|
+
export const Postgres = Database;
|
|
25
|
+
export type { DatabaseProps as PostgresProps } from "./Database.ts";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as Redacted from "effect/Redacted";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The shape `Cloudflare.Hyperdrive` and other Postgres consumers accept
|
|
5
|
+
* as `origin`. Materialized on `Prisma.Connection` so callers can wire
|
|
6
|
+
* Prisma Postgres into Hyperdrive directly:
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const connection = yield* Prisma.Connection("api", { database, name: "api" });
|
|
10
|
+
* const hd = yield* Cloudflare.Hyperdrive.Connection("api-hd", {
|
|
11
|
+
* origin: connection.origin.as<Prisma.PostgresOrigin>(),
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export type PostgresOrigin = {
|
|
16
|
+
scheme: "postgres" | "postgresql";
|
|
17
|
+
host: string;
|
|
18
|
+
port: number;
|
|
19
|
+
database: string;
|
|
20
|
+
user: string;
|
|
21
|
+
password: Redacted.Redacted<string>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Parse a Postgres connection URI into the structured origin shape. Used to
|
|
26
|
+
* derive `connection.origin` / `connection.pooledOrigin` from the direct and
|
|
27
|
+
* pooled connection strings Prisma returns.
|
|
28
|
+
*
|
|
29
|
+
* Returns `undefined` for non-Postgres URIs (e.g. `prisma://` Accelerate
|
|
30
|
+
* connection strings) and malformed values.
|
|
31
|
+
*/
|
|
32
|
+
export const parsePostgresOrigin = (
|
|
33
|
+
uri: string,
|
|
34
|
+
): PostgresOrigin | undefined => {
|
|
35
|
+
let url: URL;
|
|
36
|
+
try {
|
|
37
|
+
url = new URL(uri);
|
|
38
|
+
} catch {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (url.protocol !== "postgres:" && url.protocol !== "postgresql:") {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
scheme: url.protocol === "postgresql:" ? "postgresql" : "postgres",
|
|
46
|
+
host: url.hostname,
|
|
47
|
+
port: url.port ? Number(url.port) : 5432,
|
|
48
|
+
database: url.pathname.replace(/^\//, ""),
|
|
49
|
+
user: decodeURIComponent(url.username),
|
|
50
|
+
password: Redacted.make(decodeURIComponent(url.password)),
|
|
51
|
+
};
|
|
52
|
+
};
|