alchemy 2.0.0-beta.60 → 2.0.0-beta.62
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 +15 -0
- package/bin/cli.js +9 -1
- package/bin/exec.js +86 -17
- package/bin/exec.js.map +1 -1
- package/lib/AWS/ACM/Certificate.d.ts.map +1 -1
- package/lib/AWS/ACM/Certificate.js +25 -6
- package/lib/AWS/ACM/Certificate.js.map +1 -1
- package/lib/AWS/ApiGateway/common.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/common.js +6 -3
- package/lib/AWS/ApiGateway/common.js.map +1 -1
- package/lib/AWS/AuthProvider.d.ts.map +1 -1
- package/lib/AWS/AuthProvider.js +1 -1
- package/lib/AWS/AuthProvider.js.map +1 -1
- package/lib/AWS/AutoScaling/AutoScalingGroup.d.ts.map +1 -1
- package/lib/AWS/AutoScaling/AutoScalingGroup.js +26 -13
- package/lib/AWS/AutoScaling/AutoScalingGroup.js.map +1 -1
- package/lib/AWS/AutoScaling/LaunchTemplate.js +6 -1
- package/lib/AWS/AutoScaling/LaunchTemplate.js.map +1 -1
- package/lib/AWS/AutoScaling/ScalingPolicy.d.ts.map +1 -1
- package/lib/AWS/AutoScaling/ScalingPolicy.js +28 -10
- package/lib/AWS/AutoScaling/ScalingPolicy.js.map +1 -1
- package/lib/AWS/Bootstrap.d.ts.map +1 -1
- package/lib/AWS/Bootstrap.js +5 -2
- package/lib/AWS/Bootstrap.js.map +1 -1
- package/lib/AWS/CloudFront/Distribution.d.ts.map +1 -1
- package/lib/AWS/CloudFront/Distribution.js +20 -5
- package/lib/AWS/CloudFront/Distribution.js.map +1 -1
- package/lib/AWS/CloudFront/Function.js +5 -2
- package/lib/AWS/CloudFront/Function.js.map +1 -1
- package/lib/AWS/CloudFront/Invalidation.d.ts.map +1 -1
- package/lib/AWS/CloudFront/Invalidation.js +4 -1
- package/lib/AWS/CloudFront/Invalidation.js.map +1 -1
- package/lib/AWS/CloudFront/KvEntries.d.ts.map +1 -1
- package/lib/AWS/CloudFront/KvEntries.js +4 -1
- package/lib/AWS/CloudFront/KvEntries.js.map +1 -1
- package/lib/AWS/CloudFront/KvRoutesUpdate.d.ts.map +1 -1
- package/lib/AWS/CloudFront/KvRoutesUpdate.js +8 -2
- package/lib/AWS/CloudFront/KvRoutesUpdate.js.map +1 -1
- package/lib/AWS/CloudFront/PublicKey.d.ts.map +1 -1
- package/lib/AWS/CloudFront/PublicKey.js +5 -1
- package/lib/AWS/CloudFront/PublicKey.js.map +1 -1
- package/lib/AWS/CloudFront/VpcOrigin.d.ts.map +1 -1
- package/lib/AWS/CloudFront/VpcOrigin.js +12 -3
- package/lib/AWS/CloudFront/VpcOrigin.js.map +1 -1
- package/lib/AWS/CloudFront/common.d.ts.map +1 -1
- package/lib/AWS/CloudFront/common.js +5 -2
- package/lib/AWS/CloudFront/common.js.map +1 -1
- package/lib/AWS/CloudWatch/AnomalyDetector.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/AnomalyDetector.js +4 -1
- package/lib/AWS/CloudWatch/AnomalyDetector.js.map +1 -1
- package/lib/AWS/CloudWatch/common.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/common.js +1 -1
- package/lib/AWS/CloudWatch/common.js.map +1 -1
- package/lib/AWS/DynamoDB/Table.d.ts.map +1 -1
- package/lib/AWS/DynamoDB/Table.js +54 -21
- package/lib/AWS/DynamoDB/Table.js.map +1 -1
- package/lib/AWS/EC2/EIP.d.ts.map +1 -1
- package/lib/AWS/EC2/EIP.js +4 -1
- package/lib/AWS/EC2/EIP.js.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js +4 -2
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js.map +1 -1
- package/lib/AWS/EC2/Instance.d.ts.map +1 -1
- package/lib/AWS/EC2/Instance.js +12 -3
- package/lib/AWS/EC2/Instance.js.map +1 -1
- package/lib/AWS/EC2/InternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/InternetGateway.js +12 -5
- package/lib/AWS/EC2/InternetGateway.js.map +1 -1
- package/lib/AWS/EC2/NatGateway.js +2 -4
- package/lib/AWS/EC2/NatGateway.js.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.d.ts.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.js +4 -1
- package/lib/AWS/EC2/NetworkAcl.js.map +1 -1
- package/lib/AWS/EC2/NetworkAclEntry.d.ts.map +1 -1
- package/lib/AWS/EC2/NetworkAclEntry.js +4 -1
- package/lib/AWS/EC2/NetworkAclEntry.js.map +1 -1
- package/lib/AWS/EC2/RouteTable.d.ts.map +1 -1
- package/lib/AWS/EC2/RouteTable.js +8 -6
- package/lib/AWS/EC2/RouteTable.js.map +1 -1
- package/lib/AWS/EC2/RouteTableAssociation.js +2 -5
- package/lib/AWS/EC2/RouteTableAssociation.js.map +1 -1
- package/lib/AWS/EC2/SecurityGroup.d.ts.map +1 -1
- package/lib/AWS/EC2/SecurityGroup.js +8 -3
- package/lib/AWS/EC2/SecurityGroup.js.map +1 -1
- package/lib/AWS/EC2/Subnet.d.ts.map +1 -1
- package/lib/AWS/EC2/Subnet.js +10 -6
- package/lib/AWS/EC2/Subnet.js.map +1 -1
- package/lib/AWS/EC2/Vpc.d.ts.map +1 -1
- package/lib/AWS/EC2/Vpc.js +7 -7
- package/lib/AWS/EC2/Vpc.js.map +1 -1
- package/lib/AWS/EC2/VpcEndpoint.js +2 -4
- package/lib/AWS/EC2/VpcEndpoint.js.map +1 -1
- package/lib/AWS/ECS/Service.d.ts.map +1 -1
- package/lib/AWS/ECS/Service.js +33 -5
- package/lib/AWS/ECS/Service.js.map +1 -1
- package/lib/AWS/EKS/Addon.js +8 -2
- package/lib/AWS/EKS/Addon.js.map +1 -1
- package/lib/AWS/EKS/Cluster.d.ts.map +1 -1
- package/lib/AWS/EKS/Cluster.js +4 -1
- package/lib/AWS/EKS/Cluster.js.map +1 -1
- package/lib/AWS/ELBv2/TargetGroup.d.ts.map +1 -1
- package/lib/AWS/ELBv2/TargetGroup.js +4 -1
- package/lib/AWS/ELBv2/TargetGroup.js.map +1 -1
- package/lib/AWS/ELBv2/TrustStore.d.ts.map +1 -1
- package/lib/AWS/ELBv2/TrustStore.js +4 -1
- package/lib/AWS/ELBv2/TrustStore.js.map +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.d.ts.map +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.js +9 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.js.map +1 -1
- package/lib/AWS/IAM/SAMLProvider.js +4 -1
- package/lib/AWS/IAM/SAMLProvider.js.map +1 -1
- package/lib/AWS/IdentityCenter/AccountAssignment.js +8 -2
- package/lib/AWS/IdentityCenter/AccountAssignment.js.map +1 -1
- package/lib/AWS/IdentityCenter/common.d.ts.map +1 -1
- package/lib/AWS/IdentityCenter/common.js +1 -1
- package/lib/AWS/IdentityCenter/common.js.map +1 -1
- package/lib/AWS/KMS/Alias.js +4 -1
- package/lib/AWS/KMS/Alias.js.map +1 -1
- package/lib/AWS/KMS/Key.js +4 -1
- package/lib/AWS/KMS/Key.js.map +1 -1
- package/lib/AWS/Kinesis/Stream.d.ts.map +1 -1
- package/lib/AWS/Kinesis/Stream.js +2 -2
- package/lib/AWS/Kinesis/Stream.js.map +1 -1
- package/lib/AWS/Kinesis/StreamConsumer.d.ts.map +1 -1
- package/lib/AWS/Kinesis/StreamConsumer.js +7 -4
- package/lib/AWS/Kinesis/StreamConsumer.js.map +1 -1
- package/lib/AWS/Lambda/Alias.d.ts +26 -0
- package/lib/AWS/Lambda/Alias.d.ts.map +1 -1
- package/lib/AWS/Lambda/Alias.js +35 -1
- package/lib/AWS/Lambda/Alias.js.map +1 -1
- package/lib/AWS/Lambda/EventInvokeConfig.d.ts +36 -0
- package/lib/AWS/Lambda/EventInvokeConfig.d.ts.map +1 -0
- package/lib/AWS/Lambda/EventInvokeConfig.js +76 -0
- package/lib/AWS/Lambda/EventInvokeConfig.js.map +1 -0
- package/lib/AWS/Lambda/EventSourceMapping.d.ts.map +1 -1
- package/lib/AWS/Lambda/EventSourceMapping.js +10 -4
- package/lib/AWS/Lambda/EventSourceMapping.js.map +1 -1
- package/lib/AWS/Lambda/Function.d.ts +43 -3
- package/lib/AWS/Lambda/Function.d.ts.map +1 -1
- package/lib/AWS/Lambda/Function.js +124 -28
- package/lib/AWS/Lambda/Function.js.map +1 -1
- package/lib/AWS/Lambda/MicrovmProvider.d.ts.map +1 -1
- package/lib/AWS/Lambda/MicrovmProvider.js +13 -5
- package/lib/AWS/Lambda/MicrovmProvider.js.map +1 -1
- package/lib/AWS/Lambda/NetworkConnector.js +13 -5
- package/lib/AWS/Lambda/NetworkConnector.js.map +1 -1
- package/lib/AWS/Lambda/RuntimeExtension.d.ts +27 -0
- package/lib/AWS/Lambda/RuntimeExtension.d.ts.map +1 -0
- package/lib/AWS/Lambda/RuntimeExtension.js +49 -0
- package/lib/AWS/Lambda/RuntimeExtension.js.map +1 -0
- 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/Organizations/Account.js +5 -2
- package/lib/AWS/Organizations/Account.js.map +1 -1
- package/lib/AWS/Organizations/DelegatedAdministrator.d.ts.map +1 -1
- package/lib/AWS/Organizations/DelegatedAdministrator.js +10 -2
- package/lib/AWS/Organizations/DelegatedAdministrator.js.map +1 -1
- package/lib/AWS/Organizations/PolicyAttachment.d.ts.map +1 -1
- package/lib/AWS/Organizations/PolicyAttachment.js +10 -4
- package/lib/AWS/Organizations/PolicyAttachment.js.map +1 -1
- package/lib/AWS/Organizations/RootPolicyType.d.ts.map +1 -1
- package/lib/AWS/Organizations/RootPolicyType.js +9 -4
- package/lib/AWS/Organizations/RootPolicyType.js.map +1 -1
- package/lib/AWS/Organizations/TrustedServiceAccess.d.ts.map +1 -1
- package/lib/AWS/Organizations/TrustedServiceAccess.js +8 -1
- package/lib/AWS/Organizations/TrustedServiceAccess.js.map +1 -1
- package/lib/AWS/Organizations/common.d.ts.map +1 -1
- package/lib/AWS/Organizations/common.js +1 -1
- package/lib/AWS/Organizations/common.js.map +1 -1
- package/lib/AWS/Providers.js +14 -12
- package/lib/AWS/Providers.js.map +1 -1
- package/lib/AWS/RDS/DBCluster.d.ts.map +1 -1
- package/lib/AWS/RDS/DBCluster.js +8 -2
- package/lib/AWS/RDS/DBCluster.js.map +1 -1
- package/lib/AWS/RDS/DBInstance.d.ts.map +1 -1
- package/lib/AWS/RDS/DBInstance.js +8 -2
- package/lib/AWS/RDS/DBInstance.js.map +1 -1
- package/lib/AWS/RDS/DBProxy.d.ts.map +1 -1
- package/lib/AWS/RDS/DBProxy.js +4 -1
- package/lib/AWS/RDS/DBProxy.js.map +1 -1
- package/lib/AWS/RDS/DBProxyEndpoint.d.ts.map +1 -1
- package/lib/AWS/RDS/DBProxyEndpoint.js +4 -1
- package/lib/AWS/RDS/DBProxyEndpoint.js.map +1 -1
- package/lib/AWS/Route53/HealthCheck.d.ts.map +1 -1
- package/lib/AWS/Route53/HealthCheck.js +8 -2
- package/lib/AWS/Route53/HealthCheck.js.map +1 -1
- package/lib/AWS/Route53/HostedZone.d.ts.map +1 -1
- package/lib/AWS/Route53/HostedZone.js +28 -6
- package/lib/AWS/Route53/HostedZone.js.map +1 -1
- package/lib/AWS/Route53/Record.d.ts.map +1 -1
- package/lib/AWS/Route53/Record.js +36 -10
- package/lib/AWS/Route53/Record.js.map +1 -1
- package/lib/AWS/S3/Bucket.d.ts.map +1 -1
- package/lib/AWS/S3/Bucket.js +5 -2
- package/lib/AWS/S3/Bucket.js.map +1 -1
- package/lib/AWS/SQS/Queue.d.ts.map +1 -1
- package/lib/AWS/SQS/Queue.js +25 -7
- package/lib/AWS/SQS/Queue.js.map +1 -1
- package/lib/AWS/StateStore/State.js +5 -2
- package/lib/AWS/StateStore/State.js.map +1 -1
- package/lib/AWS/Website/AssetDeployment.js +5 -2
- package/lib/AWS/Website/AssetDeployment.js.map +1 -1
- package/lib/Apply.js +15 -1
- package/lib/Apply.js.map +1 -1
- package/lib/Auth/AuthProvider.d.ts +10 -0
- package/lib/Auth/AuthProvider.d.ts.map +1 -1
- package/lib/Auth/AuthProvider.js +10 -0
- package/lib/Auth/AuthProvider.js.map +1 -1
- package/lib/Auth/Lock.d.ts +17 -0
- package/lib/Auth/Lock.d.ts.map +1 -1
- package/lib/Auth/Lock.js +53 -18
- package/lib/Auth/Lock.js.map +1 -1
- package/lib/Axiom/AuthProvider.d.ts.map +1 -1
- package/lib/Axiom/AuthProvider.js +1 -1
- package/lib/Axiom/AuthProvider.js.map +1 -1
- package/lib/Bundle/PurePlugin.d.ts.map +1 -1
- package/lib/Bundle/PurePlugin.js +15 -2
- package/lib/Bundle/PurePlugin.js.map +1 -1
- package/lib/Bundle/Vite.d.ts +1 -1
- package/lib/Bundle/Vite.d.ts.map +1 -1
- package/lib/Bundle/Vite.js +14 -12
- package/lib/Bundle/Vite.js.map +1 -1
- package/lib/Cli/commands/_shared.d.ts +55 -5
- package/lib/Cli/commands/_shared.d.ts.map +1 -1
- package/lib/Cli/commands/_shared.js +62 -2
- package/lib/Cli/commands/_shared.js.map +1 -1
- package/lib/Cli/commands/login.d.ts.map +1 -1
- package/lib/Cli/commands/login.js +9 -20
- package/lib/Cli/commands/login.js.map +1 -1
- package/lib/Cli/commands/logs.d.ts.map +1 -1
- package/lib/Cli/commands/logs.js +1 -0
- package/lib/Cli/commands/logs.js.map +1 -1
- package/lib/Cli/commands/nuke.d.ts.map +1 -1
- package/lib/Cli/commands/nuke.js +15 -24
- package/lib/Cli/commands/nuke.js.map +1 -1
- package/lib/Cli/commands/profile.d.ts +23 -1
- package/lib/Cli/commands/profile.d.ts.map +1 -1
- package/lib/Cli/commands/profile.js +47 -10
- package/lib/Cli/commands/profile.js.map +1 -1
- package/lib/Cli/commands/sync.d.ts +22 -0
- package/lib/Cli/commands/sync.d.ts.map +1 -0
- package/lib/Cli/commands/sync.js +64 -0
- package/lib/Cli/commands/sync.js.map +1 -0
- package/lib/Cli/commands/tail.d.ts.map +1 -1
- package/lib/Cli/commands/tail.js +1 -0
- package/lib/Cli/commands/tail.js.map +1 -1
- package/lib/Cli/main.d.ts.map +1 -1
- package/lib/Cli/main.js +2 -0
- package/lib/Cli/main.js.map +1 -1
- package/lib/Cloudflare/AI/CustomTopics.d.ts.map +1 -1
- package/lib/Cloudflare/AI/CustomTopics.js +3 -1
- package/lib/Cloudflare/AI/CustomTopics.js.map +1 -1
- package/lib/Cloudflare/AI/Dataset.d.ts.map +1 -1
- package/lib/Cloudflare/AI/Dataset.js +3 -1
- package/lib/Cloudflare/AI/Dataset.js.map +1 -1
- package/lib/Cloudflare/AI/Evaluation.d.ts.map +1 -1
- package/lib/Cloudflare/AI/Evaluation.js +3 -1
- package/lib/Cloudflare/AI/Evaluation.js.map +1 -1
- package/lib/Cloudflare/AI/Gateway.d.ts.map +1 -1
- package/lib/Cloudflare/AI/Gateway.js +5 -6
- package/lib/Cloudflare/AI/Gateway.js.map +1 -1
- package/lib/Cloudflare/AI/GatewayDynamicRouting.d.ts.map +1 -1
- package/lib/Cloudflare/AI/GatewayDynamicRouting.js +34 -3
- package/lib/Cloudflare/AI/GatewayDynamicRouting.js.map +1 -1
- package/lib/Cloudflare/AI/GatewayProvider.d.ts +2 -1
- package/lib/Cloudflare/AI/GatewayProvider.d.ts.map +1 -1
- package/lib/Cloudflare/AI/GatewayProvider.js +5 -2
- package/lib/Cloudflare/AI/GatewayProvider.js.map +1 -1
- package/lib/Cloudflare/AI/ProviderKey.d.ts +135 -0
- package/lib/Cloudflare/AI/ProviderKey.d.ts.map +1 -0
- package/lib/Cloudflare/AI/ProviderKey.js +90 -0
- package/lib/Cloudflare/AI/ProviderKey.js.map +1 -0
- package/lib/Cloudflare/AI/SearchInstance.d.ts.map +1 -1
- package/lib/Cloudflare/AI/SearchInstance.js +9 -5
- package/lib/Cloudflare/AI/SearchInstance.js.map +1 -1
- package/lib/Cloudflare/AI/SearchNamespace.d.ts.map +1 -1
- package/lib/Cloudflare/AI/SearchNamespace.js +5 -4
- package/lib/Cloudflare/AI/SearchNamespace.js.map +1 -1
- package/lib/Cloudflare/AI/SearchToken.d.ts.map +1 -1
- package/lib/Cloudflare/AI/SearchToken.js +3 -1
- package/lib/Cloudflare/AI/SearchToken.js.map +1 -1
- package/lib/Cloudflare/AI/SecuritySettings.d.ts.map +1 -1
- package/lib/Cloudflare/AI/SecuritySettings.js +3 -1
- package/lib/Cloudflare/AI/SecuritySettings.js.map +1 -1
- package/lib/Cloudflare/AI/index.d.ts +1 -0
- package/lib/Cloudflare/AI/index.d.ts.map +1 -1
- package/lib/Cloudflare/AI/index.js +1 -0
- package/lib/Cloudflare/AI/index.js.map +1 -1
- package/lib/Cloudflare/Access/Application.d.ts.map +1 -1
- package/lib/Cloudflare/Access/Application.js +7 -1
- package/lib/Cloudflare/Access/Application.js.map +1 -1
- package/lib/Cloudflare/Access/InfrastructureTarget.d.ts.map +1 -1
- package/lib/Cloudflare/Access/InfrastructureTarget.js +3 -1
- package/lib/Cloudflare/Access/InfrastructureTarget.js.map +1 -1
- package/lib/Cloudflare/Access/Organization.d.ts.map +1 -1
- package/lib/Cloudflare/Access/Organization.js +1 -1
- package/lib/Cloudflare/Access/Organization.js.map +1 -1
- package/lib/Cloudflare/Access/Policy.d.ts.map +1 -1
- package/lib/Cloudflare/Access/Policy.js +3 -1
- package/lib/Cloudflare/Access/Policy.js.map +1 -1
- package/lib/Cloudflare/Account/Account.d.ts.map +1 -1
- package/lib/Cloudflare/Account/Account.js +3 -1
- package/lib/Cloudflare/Account/Account.js.map +1 -1
- package/lib/Cloudflare/Alerting/Silence.d.ts.map +1 -1
- package/lib/Cloudflare/Alerting/Silence.js +4 -1
- package/lib/Cloudflare/Alerting/Silence.js.map +1 -1
- package/lib/Cloudflare/Alerting/Webhook.d.ts.map +1 -1
- package/lib/Cloudflare/Alerting/Webhook.js +8 -2
- package/lib/Cloudflare/Alerting/Webhook.js.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.d.ts.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.js +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.js.map +1 -1
- package/lib/Cloudflare/ApiToken/UserApiToken.d.ts.map +1 -1
- package/lib/Cloudflare/ApiToken/UserApiToken.js +1 -1
- package/lib/Cloudflare/ApiToken/UserApiToken.js.map +1 -1
- package/lib/Cloudflare/Auth/AuthProvider.d.ts +3 -0
- package/lib/Cloudflare/Auth/AuthProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Auth/AuthProvider.js +73 -21
- package/lib/Cloudflare/Auth/AuthProvider.js.map +1 -1
- package/lib/Cloudflare/Auth/OAuthClient.d.ts.map +1 -1
- package/lib/Cloudflare/Auth/OAuthClient.js +6 -7
- package/lib/Cloudflare/Auth/OAuthClient.js.map +1 -1
- package/lib/Cloudflare/BotManagement/BotManagement.d.ts.map +1 -1
- package/lib/Cloudflare/BotManagement/BotManagement.js +3 -1
- package/lib/Cloudflare/BotManagement/BotManagement.js.map +1 -1
- package/lib/Cloudflare/Cache/RegionalTieredCache.d.ts.map +1 -1
- package/lib/Cloudflare/Cache/RegionalTieredCache.js +7 -1
- package/lib/Cloudflare/Cache/RegionalTieredCache.js.map +1 -1
- package/lib/Cloudflare/Cache/Reserve.d.ts.map +1 -1
- package/lib/Cloudflare/Cache/Reserve.js +3 -1
- package/lib/Cloudflare/Cache/Reserve.js.map +1 -1
- package/lib/Cloudflare/ClientCertificate/ClientCertificate.d.ts.map +1 -1
- package/lib/Cloudflare/ClientCertificate/ClientCertificate.js +3 -1
- package/lib/Cloudflare/ClientCertificate/ClientCertificate.js.map +1 -1
- package/lib/Cloudflare/Containers/Container.d.ts +2 -2
- package/lib/Cloudflare/Containers/Container.js +2 -2
- package/lib/Cloudflare/Containers/ContainerApplication.d.ts +18 -2
- package/lib/Cloudflare/Containers/ContainerApplication.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerApplication.js +1 -0
- package/lib/Cloudflare/Containers/ContainerApplication.js.map +1 -1
- package/lib/Cloudflare/Containers/ContainerBundle.d.ts +29 -3
- package/lib/Cloudflare/Containers/ContainerBundle.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/ContainerBundle.js +73 -22
- 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 +53 -14
- package/lib/Cloudflare/Containers/ContainerProvider.js.map +1 -1
- package/lib/Cloudflare/Containers/LocalContainerProvider.d.ts +6 -6
- package/lib/Cloudflare/Containers/LocalContainerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Containers/LocalContainerProvider.js +69 -47
- package/lib/Cloudflare/Containers/LocalContainerProvider.js.map +1 -1
- package/lib/Cloudflare/ContentScanning/ContentScanning.d.ts.map +1 -1
- package/lib/Cloudflare/ContentScanning/ContentScanning.js +3 -1
- package/lib/Cloudflare/ContentScanning/ContentScanning.js.map +1 -1
- package/lib/Cloudflare/CustomCertificate/CustomCertificate.d.ts.map +1 -1
- package/lib/Cloudflare/CustomCertificate/CustomCertificate.js +3 -1
- package/lib/Cloudflare/CustomCertificate/CustomCertificate.js.map +1 -1
- package/lib/Cloudflare/CustomHostname/CustomHostname.d.ts.map +1 -1
- package/lib/Cloudflare/CustomHostname/CustomHostname.js +1 -1
- package/lib/Cloudflare/CustomHostname/CustomHostname.js.map +1 -1
- package/lib/Cloudflare/CustomHostname/FallbackOrigin.d.ts.map +1 -1
- package/lib/Cloudflare/CustomHostname/FallbackOrigin.js +1 -1
- package/lib/Cloudflare/CustomHostname/FallbackOrigin.js.map +1 -1
- package/lib/Cloudflare/CustomNameserver/CustomNameserver.d.ts.map +1 -1
- package/lib/Cloudflare/CustomNameserver/CustomNameserver.js +3 -1
- package/lib/Cloudflare/CustomNameserver/CustomNameserver.js.map +1 -1
- package/lib/Cloudflare/D1/Database.d.ts.map +1 -1
- package/lib/Cloudflare/D1/Database.js +2 -2
- package/lib/Cloudflare/D1/Database.js.map +1 -1
- package/lib/Cloudflare/DNS/AccountSettings.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/AccountSettings.js +3 -1
- package/lib/Cloudflare/DNS/AccountSettings.js.map +1 -1
- package/lib/Cloudflare/DNS/Dnssec.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/Dnssec.js +3 -1
- package/lib/Cloudflare/DNS/Dnssec.js.map +1 -1
- package/lib/Cloudflare/DNS/Firewall.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/Firewall.js +3 -1
- package/lib/Cloudflare/DNS/Firewall.js.map +1 -1
- package/lib/Cloudflare/DNS/Record.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/Record.js +3 -1
- package/lib/Cloudflare/DNS/Record.js.map +1 -1
- package/lib/Cloudflare/DNS/View.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/View.js +3 -1
- package/lib/Cloudflare/DNS/View.js.map +1 -1
- package/lib/Cloudflare/DNS/ZoneSettings.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/ZoneSettings.js +3 -1
- package/lib/Cloudflare/DNS/ZoneSettings.js.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferAcl.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferAcl.js +3 -1
- package/lib/Cloudflare/DNS/ZoneTransferAcl.js.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferIncoming.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferIncoming.js +3 -1
- package/lib/Cloudflare/DNS/ZoneTransferIncoming.js.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferOutgoing.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferOutgoing.js +3 -1
- package/lib/Cloudflare/DNS/ZoneTransferOutgoing.js.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferPeer.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferPeer.js +3 -1
- package/lib/Cloudflare/DNS/ZoneTransferPeer.js.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferTsig.d.ts.map +1 -1
- package/lib/Cloudflare/DNS/ZoneTransferTsig.js +3 -1
- package/lib/Cloudflare/DNS/ZoneTransferTsig.js.map +1 -1
- package/lib/Cloudflare/Diagnostics/EndpointHealthcheck.js +4 -1
- package/lib/Cloudflare/Diagnostics/EndpointHealthcheck.js.map +1 -1
- package/lib/Cloudflare/Email/Address.d.ts.map +1 -1
- package/lib/Cloudflare/Email/Address.js +3 -1
- package/lib/Cloudflare/Email/Address.js.map +1 -1
- package/lib/Cloudflare/Email/AllowPolicy.d.ts.map +1 -1
- package/lib/Cloudflare/Email/AllowPolicy.js +1 -1
- package/lib/Cloudflare/Email/AllowPolicy.js.map +1 -1
- package/lib/Cloudflare/Email/BlockSender.d.ts.map +1 -1
- package/lib/Cloudflare/Email/BlockSender.js +1 -1
- package/lib/Cloudflare/Email/BlockSender.js.map +1 -1
- package/lib/Cloudflare/Email/CatchAll.d.ts.map +1 -1
- package/lib/Cloudflare/Email/CatchAll.js +8 -2
- package/lib/Cloudflare/Email/CatchAll.js.map +1 -1
- package/lib/Cloudflare/Email/Domain.d.ts.map +1 -1
- package/lib/Cloudflare/Email/Domain.js +3 -1
- package/lib/Cloudflare/Email/Domain.js.map +1 -1
- package/lib/Cloudflare/Email/ImpersonationRegistryEntry.d.ts.map +1 -1
- package/lib/Cloudflare/Email/ImpersonationRegistryEntry.js +1 -1
- package/lib/Cloudflare/Email/ImpersonationRegistryEntry.js.map +1 -1
- package/lib/Cloudflare/Email/Routing.d.ts.map +1 -1
- package/lib/Cloudflare/Email/Routing.js +3 -1
- package/lib/Cloudflare/Email/Routing.js.map +1 -1
- package/lib/Cloudflare/Email/Rule.d.ts.map +1 -1
- package/lib/Cloudflare/Email/Rule.js +3 -1
- package/lib/Cloudflare/Email/Rule.js.map +1 -1
- package/lib/Cloudflare/Email/SendingSubdomain.d.ts.map +1 -1
- package/lib/Cloudflare/Email/SendingSubdomain.js +1 -1
- package/lib/Cloudflare/Email/SendingSubdomain.js.map +1 -1
- package/lib/Cloudflare/Email/TrustedDomain.d.ts.map +1 -1
- package/lib/Cloudflare/Email/TrustedDomain.js +1 -1
- package/lib/Cloudflare/Email/TrustedDomain.js.map +1 -1
- package/lib/Cloudflare/Fetcher.d.ts.map +1 -1
- package/lib/Cloudflare/Fetcher.js +10 -3
- package/lib/Cloudflare/Fetcher.js.map +1 -1
- package/lib/Cloudflare/Flagship/App.d.ts.map +1 -1
- package/lib/Cloudflare/Flagship/App.js +2 -3
- package/lib/Cloudflare/Flagship/App.js.map +1 -1
- package/lib/Cloudflare/Fraud/DetectionSettings.d.ts.map +1 -1
- package/lib/Cloudflare/Fraud/DetectionSettings.js +3 -1
- package/lib/Cloudflare/Fraud/DetectionSettings.js.map +1 -1
- package/lib/Cloudflare/GoogleTagGateway/GoogleTagGateway.d.ts.map +1 -1
- package/lib/Cloudflare/GoogleTagGateway/GoogleTagGateway.js +8 -2
- package/lib/Cloudflare/GoogleTagGateway/GoogleTagGateway.js.map +1 -1
- package/lib/Cloudflare/Healthcheck/Healthcheck.d.ts.map +1 -1
- package/lib/Cloudflare/Healthcheck/Healthcheck.js +3 -1
- package/lib/Cloudflare/Healthcheck/Healthcheck.js.map +1 -1
- package/lib/Cloudflare/HostnameTlsSetting/HostnameTlsSetting.d.ts.map +1 -1
- package/lib/Cloudflare/HostnameTlsSetting/HostnameTlsSetting.js +3 -1
- package/lib/Cloudflare/HostnameTlsSetting/HostnameTlsSetting.js.map +1 -1
- package/lib/Cloudflare/Hyperdrive/Connection.d.ts.map +1 -1
- package/lib/Cloudflare/Hyperdrive/Connection.js +2 -4
- package/lib/Cloudflare/Hyperdrive/Connection.js.map +1 -1
- package/lib/Cloudflare/Images/Variant.d.ts.map +1 -1
- package/lib/Cloudflare/Images/Variant.js +4 -1
- package/lib/Cloudflare/Images/Variant.js.map +1 -1
- package/lib/Cloudflare/KV/Namespace.d.ts.map +1 -1
- package/lib/Cloudflare/KV/Namespace.js +5 -4
- package/lib/Cloudflare/KV/Namespace.js.map +1 -1
- package/lib/Cloudflare/KeylessCertificate/KeylessCertificate.d.ts.map +1 -1
- package/lib/Cloudflare/KeylessCertificate/KeylessCertificate.js +3 -1
- package/lib/Cloudflare/KeylessCertificate/KeylessCertificate.js.map +1 -1
- package/lib/Cloudflare/LeakedCredentialCheck/LeakedCredentialCheck.d.ts.map +1 -1
- package/lib/Cloudflare/LeakedCredentialCheck/LeakedCredentialCheck.js +3 -1
- package/lib/Cloudflare/LeakedCredentialCheck/LeakedCredentialCheck.js.map +1 -1
- package/lib/Cloudflare/LoadBalancer/LoadBalancer.d.ts.map +1 -1
- package/lib/Cloudflare/LoadBalancer/LoadBalancer.js +3 -1
- package/lib/Cloudflare/LoadBalancer/LoadBalancer.js.map +1 -1
- package/lib/Cloudflare/LoadBalancer/Monitor.d.ts.map +1 -1
- package/lib/Cloudflare/LoadBalancer/Monitor.js +4 -1
- package/lib/Cloudflare/LoadBalancer/Monitor.js.map +1 -1
- package/lib/Cloudflare/LoadBalancer/MonitorGroup.d.ts.map +1 -1
- package/lib/Cloudflare/LoadBalancer/MonitorGroup.js +4 -1
- package/lib/Cloudflare/LoadBalancer/MonitorGroup.js.map +1 -1
- package/lib/Cloudflare/LoadBalancer/Pool.d.ts.map +1 -1
- package/lib/Cloudflare/LoadBalancer/Pool.js +4 -1
- package/lib/Cloudflare/LoadBalancer/Pool.js.map +1 -1
- package/lib/Cloudflare/LocalRuntime.d.ts +14 -0
- package/lib/Cloudflare/LocalRuntime.d.ts.map +1 -1
- package/lib/Cloudflare/LocalRuntime.js +1 -0
- package/lib/Cloudflare/LocalRuntime.js.map +1 -1
- package/lib/Cloudflare/MagicNetworkMonitoring/Rule.d.ts.map +1 -1
- package/lib/Cloudflare/MagicNetworkMonitoring/Rule.js +4 -1
- package/lib/Cloudflare/MagicNetworkMonitoring/Rule.js.map +1 -1
- package/lib/Cloudflare/ManagedTransforms/ManagedTransforms.d.ts.map +1 -1
- package/lib/Cloudflare/ManagedTransforms/ManagedTransforms.js +3 -1
- package/lib/Cloudflare/ManagedTransforms/ManagedTransforms.js.map +1 -1
- package/lib/Cloudflare/MtlsCertificate/MtlsCertificate.d.ts.map +1 -1
- package/lib/Cloudflare/MtlsCertificate/MtlsCertificate.js +3 -1
- package/lib/Cloudflare/MtlsCertificate/MtlsCertificate.js.map +1 -1
- package/lib/Cloudflare/Organization/Organization.d.ts.map +1 -1
- package/lib/Cloudflare/Organization/Organization.js +3 -1
- package/lib/Cloudflare/Organization/Organization.js.map +1 -1
- package/lib/Cloudflare/OriginCaCertificate/OriginCaCertificate.d.ts.map +1 -1
- package/lib/Cloudflare/OriginCaCertificate/OriginCaCertificate.js +7 -2
- package/lib/Cloudflare/OriginCaCertificate/OriginCaCertificate.js.map +1 -1
- package/lib/Cloudflare/OriginPostQuantumEncryption/OriginPostQuantumEncryption.d.ts.map +1 -1
- package/lib/Cloudflare/OriginPostQuantumEncryption/OriginPostQuantumEncryption.js +3 -1
- package/lib/Cloudflare/OriginPostQuantumEncryption/OriginPostQuantumEncryption.js.map +1 -1
- package/lib/Cloudflare/OriginTlsClientAuth/HostnameCertificate.d.ts.map +1 -1
- package/lib/Cloudflare/OriginTlsClientAuth/HostnameCertificate.js +5 -1
- package/lib/Cloudflare/OriginTlsClientAuth/HostnameCertificate.js.map +1 -1
- package/lib/Cloudflare/PageRule/PageRule.d.ts.map +1 -1
- package/lib/Cloudflare/PageRule/PageRule.js +3 -1
- package/lib/Cloudflare/PageRule/PageRule.js.map +1 -1
- package/lib/Cloudflare/Pipelines/Pipeline.d.ts.map +1 -1
- package/lib/Cloudflare/Pipelines/Pipeline.js +8 -2
- package/lib/Cloudflare/Pipelines/Pipeline.js.map +1 -1
- package/lib/Cloudflare/Pipelines/Sink.d.ts.map +1 -1
- package/lib/Cloudflare/Pipelines/Sink.js +8 -2
- package/lib/Cloudflare/Pipelines/Sink.js.map +1 -1
- package/lib/Cloudflare/Pipelines/Stream.d.ts.map +1 -1
- package/lib/Cloudflare/Pipelines/Stream.js +4 -1
- package/lib/Cloudflare/Pipelines/Stream.js.map +1 -1
- package/lib/Cloudflare/Providers.d.ts +29 -0
- package/lib/Cloudflare/Providers.d.ts.map +1 -1
- package/lib/Cloudflare/Providers.js +44 -30
- package/lib/Cloudflare/Providers.js.map +1 -1
- package/lib/Cloudflare/Queues/Consumer.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/Consumer.js +33 -4
- package/lib/Cloudflare/Queues/Consumer.js.map +1 -1
- package/lib/Cloudflare/Queues/Queue.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/Queue.js +9 -5
- package/lib/Cloudflare/Queues/Queue.js.map +1 -1
- package/lib/Cloudflare/Queues/Subscription.d.ts.map +1 -1
- package/lib/Cloudflare/Queues/Subscription.js +3 -1
- package/lib/Cloudflare/Queues/Subscription.js.map +1 -1
- package/lib/Cloudflare/R2/Bucket.d.ts +98 -0
- package/lib/Cloudflare/R2/Bucket.d.ts.map +1 -1
- package/lib/Cloudflare/R2/Bucket.js +153 -6
- package/lib/Cloudflare/R2/Bucket.js.map +1 -1
- package/lib/Cloudflare/R2/BucketEventNotification.js +4 -1
- package/lib/Cloudflare/R2/BucketEventNotification.js.map +1 -1
- package/lib/Cloudflare/R2/DataCatalog.js +4 -1
- package/lib/Cloudflare/R2/DataCatalog.js.map +1 -1
- package/lib/Cloudflare/RegionalHostname/RegionalHostname.d.ts.map +1 -1
- package/lib/Cloudflare/RegionalHostname/RegionalHostname.js +3 -1
- package/lib/Cloudflare/RegionalHostname/RegionalHostname.js.map +1 -1
- package/lib/Cloudflare/Ruleset/Ruleset.d.ts.map +1 -1
- package/lib/Cloudflare/Ruleset/Ruleset.js +8 -3
- package/lib/Cloudflare/Ruleset/Ruleset.js.map +1 -1
- package/lib/Cloudflare/Rum/Rule.d.ts.map +1 -1
- package/lib/Cloudflare/Rum/Rule.js +4 -1
- package/lib/Cloudflare/Rum/Rule.js.map +1 -1
- package/lib/Cloudflare/SecretsStore/Secret.d.ts.map +1 -1
- package/lib/Cloudflare/SecretsStore/Secret.js +31 -5
- package/lib/Cloudflare/SecretsStore/Secret.js.map +1 -1
- package/lib/Cloudflare/SecurityTxt/SecurityTxt.d.ts.map +1 -1
- package/lib/Cloudflare/SecurityTxt/SecurityTxt.js +3 -1
- package/lib/Cloudflare/SecurityTxt/SecurityTxt.js.map +1 -1
- package/lib/Cloudflare/Snippets/Snippet.d.ts.map +1 -1
- package/lib/Cloudflare/Snippets/Snippet.js +4 -1
- package/lib/Cloudflare/Snippets/Snippet.js.map +1 -1
- package/lib/Cloudflare/StateStore/Api.d.ts +15 -0
- package/lib/Cloudflare/StateStore/CredentialsFile.d.ts +42 -0
- package/lib/Cloudflare/StateStore/CredentialsFile.d.ts.map +1 -0
- package/lib/Cloudflare/StateStore/CredentialsFile.js +23 -0
- package/lib/Cloudflare/StateStore/CredentialsFile.js.map +1 -0
- package/lib/Cloudflare/StateStore/State.d.ts +32 -3
- package/lib/Cloudflare/StateStore/State.d.ts.map +1 -1
- package/lib/Cloudflare/StateStore/State.js +128 -22
- package/lib/Cloudflare/StateStore/State.js.map +1 -1
- package/lib/Cloudflare/Tags/AccountResourceTags.d.ts.map +1 -1
- package/lib/Cloudflare/Tags/AccountResourceTags.js +8 -3
- package/lib/Cloudflare/Tags/AccountResourceTags.js.map +1 -1
- package/lib/Cloudflare/Tags/ZoneResourceTags.d.ts.map +1 -1
- package/lib/Cloudflare/Tags/ZoneResourceTags.js +4 -1
- package/lib/Cloudflare/Tags/ZoneResourceTags.js.map +1 -1
- package/lib/Cloudflare/Tunnel/Route.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/Route.js +3 -1
- package/lib/Cloudflare/Tunnel/Route.js.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.js +3 -1
- package/lib/Cloudflare/Tunnel/Tunnel.js.map +1 -1
- package/lib/Cloudflare/UrlNormalization/UrlNormalization.d.ts.map +1 -1
- package/lib/Cloudflare/UrlNormalization/UrlNormalization.js +10 -2
- package/lib/Cloudflare/UrlNormalization/UrlNormalization.js.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeIndex.d.ts.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js +2 -3
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js.map +1 -1
- package/lib/Cloudflare/VpcService/VpcService.d.ts.map +1 -1
- package/lib/Cloudflare/VpcService/VpcService.js +1 -1
- package/lib/Cloudflare/VpcService/VpcService.js.map +1 -1
- package/lib/Cloudflare/WaitingRoom/Settings.d.ts.map +1 -1
- package/lib/Cloudflare/WaitingRoom/Settings.js +7 -1
- package/lib/Cloudflare/WaitingRoom/Settings.js.map +1 -1
- package/lib/Cloudflare/WaitingRoom/WaitingRoom.d.ts.map +1 -1
- package/lib/Cloudflare/WaitingRoom/WaitingRoom.js +3 -1
- package/lib/Cloudflare/WaitingRoom/WaitingRoom.js.map +1 -1
- package/lib/Cloudflare/Web3/ContentList.d.ts.map +1 -1
- package/lib/Cloudflare/Web3/ContentList.js +3 -1
- package/lib/Cloudflare/Web3/ContentList.js.map +1 -1
- package/lib/Cloudflare/Web3/Hostname.d.ts.map +1 -1
- package/lib/Cloudflare/Web3/Hostname.js +3 -1
- package/lib/Cloudflare/Web3/Hostname.js.map +1 -1
- package/lib/Cloudflare/Website/Vite.d.ts +19 -0
- package/lib/Cloudflare/Website/Vite.d.ts.map +1 -1
- package/lib/Cloudflare/Website/Vite.js +20 -0
- package/lib/Cloudflare/Website/Vite.js.map +1 -1
- package/lib/Cloudflare/Workers/Cache.d.ts +71 -0
- package/lib/Cloudflare/Workers/Cache.d.ts.map +1 -0
- package/lib/Cloudflare/Workers/Cache.js +64 -0
- package/lib/Cloudflare/Workers/Cache.js.map +1 -0
- package/lib/Cloudflare/Workers/Compatibility.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Compatibility.js +43 -7
- package/lib/Cloudflare/Workers/Compatibility.js.map +1 -1
- package/lib/Cloudflare/Workers/CronEventSource.d.ts +183 -8
- package/lib/Cloudflare/Workers/CronEventSource.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/CronEventSource.js +180 -6
- package/lib/Cloudflare/Workers/CronEventSource.js.map +1 -1
- package/lib/Cloudflare/Workers/DurableObject.d.ts +36 -1
- package/lib/Cloudflare/Workers/DurableObject.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/DurableObject.js +36 -1
- 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 +86 -82
- package/lib/Cloudflare/Workers/DurableObjectBridge.js.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectState.d.ts +11 -0
- package/lib/Cloudflare/Workers/DurableObjectState.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/DurableObjectState.js +7 -0
- package/lib/Cloudflare/Workers/DurableObjectState.js.map +1 -1
- package/lib/Cloudflare/Workers/Fetch.js +2 -2
- package/lib/Cloudflare/Workers/Fetch.js.map +1 -1
- package/lib/Cloudflare/Workers/HttpServer.d.ts +1 -4
- package/lib/Cloudflare/Workers/HttpServer.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/HttpServer.js +1 -3
- package/lib/Cloudflare/Workers/HttpServer.js.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js +77 -11
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/ObservabilityDestination.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/ObservabilityDestination.js +4 -1
- package/lib/Cloudflare/Workers/ObservabilityDestination.js.map +1 -1
- package/lib/Cloudflare/Workers/Vite.d.ts +1 -1
- package/lib/Cloudflare/Workers/Vite.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.d.ts +252 -4
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js +166 -7
- package/lib/Cloudflare/Workers/Worker.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts +9 -0
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +39 -15
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts +30 -0
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBridge.d.ts +13 -5
- package/lib/Cloudflare/Workers/WorkerBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBridge.js +133 -35
- package/lib/Cloudflare/Workers/WorkerBridge.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerLoader.js +9 -1
- package/lib/Cloudflare/Workers/WorkerLoader.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerProvider.js +389 -23
- package/lib/Cloudflare/Workers/WorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerRuntimeContext.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerRuntimeContext.js +20 -3
- package/lib/Cloudflare/Workers/WorkerRuntimeContext.js.map +1 -1
- package/lib/Cloudflare/Workers/cloudflare_workers.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/cloudflare_workers.js +10 -3
- package/lib/Cloudflare/Workers/cloudflare_workers.js.map +1 -1
- package/lib/Cloudflare/Workers/index.d.ts +1 -0
- package/lib/Cloudflare/Workers/index.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/index.js +1 -0
- package/lib/Cloudflare/Workers/index.js.map +1 -1
- package/lib/Cloudflare/WorkersForPlatforms/DispatchNamespace.d.ts.map +1 -1
- package/lib/Cloudflare/WorkersForPlatforms/DispatchNamespace.js +2 -3
- package/lib/Cloudflare/WorkersForPlatforms/DispatchNamespace.js.map +1 -1
- package/lib/Cloudflare/Workflows/Workflow.d.ts +210 -31
- package/lib/Cloudflare/Workflows/Workflow.d.ts.map +1 -1
- package/lib/Cloudflare/Workflows/Workflow.js +164 -41
- package/lib/Cloudflare/Workflows/Workflow.js.map +1 -1
- package/lib/Cloudflare/Workflows/WorkflowBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workflows/WorkflowBridge.js +81 -40
- package/lib/Cloudflare/Workflows/WorkflowBridge.js.map +1 -1
- package/lib/Cloudflare/Workflows/WorkflowName.d.ts +11 -0
- package/lib/Cloudflare/Workflows/WorkflowName.d.ts.map +1 -0
- package/lib/Cloudflare/Workflows/WorkflowName.js +28 -0
- package/lib/Cloudflare/Workflows/WorkflowName.js.map +1 -0
- package/lib/Cloudflare/Zaraz/Config.d.ts +1 -0
- package/lib/Cloudflare/Zaraz/Config.d.ts.map +1 -1
- package/lib/Cloudflare/Zaraz/Config.js +8 -2
- package/lib/Cloudflare/Zaraz/Config.js.map +1 -1
- package/lib/Cloudflare/Zone/Hold.d.ts.map +1 -1
- package/lib/Cloudflare/Zone/Hold.js +7 -1
- package/lib/Cloudflare/Zone/Hold.js.map +1 -1
- package/lib/Cloudflare/Zone/Zone.d.ts.map +1 -1
- package/lib/Cloudflare/Zone/Zone.js +1 -0
- package/lib/Cloudflare/Zone/Zone.js.map +1 -1
- package/lib/Command/Dev.d.ts +16 -6
- package/lib/Command/Dev.d.ts.map +1 -1
- package/lib/Command/Dev.js +37 -7
- package/lib/Command/Dev.js.map +1 -1
- package/lib/Docker/Container.d.ts.map +1 -1
- package/lib/Docker/Container.js +15 -2
- package/lib/Docker/Container.js.map +1 -1
- package/lib/Drizzle/Postgres.d.ts +14 -13
- package/lib/Drizzle/Postgres.d.ts.map +1 -1
- package/lib/Drizzle/Postgres.js +39 -19
- package/lib/Drizzle/Postgres.js.map +1 -1
- package/lib/Drizzle/Schema.d.ts.map +1 -1
- package/lib/Drizzle/Schema.js +12 -5
- package/lib/Drizzle/Schema.js.map +1 -1
- package/lib/GitHub/AuthProvider.d.ts.map +1 -1
- package/lib/GitHub/AuthProvider.js +1 -1
- package/lib/GitHub/AuthProvider.js.map +1 -1
- package/lib/GitHub/Env.d.ts +20 -0
- package/lib/GitHub/Env.d.ts.map +1 -0
- package/lib/GitHub/Env.js +27 -0
- package/lib/GitHub/Env.js.map +1 -0
- package/lib/GitHub/index.d.ts +1 -0
- package/lib/GitHub/index.d.ts.map +1 -1
- package/lib/GitHub/index.js +1 -0
- package/lib/GitHub/index.js.map +1 -1
- package/lib/Http.d.ts +9 -0
- package/lib/Http.d.ts.map +1 -1
- package/lib/Http.js +9 -0
- package/lib/Http.js.map +1 -1
- package/lib/Local/RpcProviderProxy.js +1 -1
- package/lib/Local/RpcProviderProxy.js.map +1 -1
- package/lib/Neon/AuthProvider.d.ts.map +1 -1
- package/lib/Neon/AuthProvider.js +1 -1
- package/lib/Neon/AuthProvider.js.map +1 -1
- package/lib/Neon/Branch.d.ts.map +1 -1
- package/lib/Neon/Branch.js +15 -3
- package/lib/Neon/Branch.js.map +1 -1
- package/lib/Neon/Project.js +4 -1
- package/lib/Neon/Project.js.map +1 -1
- package/lib/Output.d.ts +13 -1
- package/lib/Output.d.ts.map +1 -1
- package/lib/Output.js +17 -3
- package/lib/Output.js.map +1 -1
- package/lib/Plan.d.ts.map +1 -1
- package/lib/Plan.js +28 -11
- package/lib/Plan.js.map +1 -1
- package/lib/Planetscale/AuthProvider.d.ts +26 -9
- package/lib/Planetscale/AuthProvider.d.ts.map +1 -1
- package/lib/Planetscale/AuthProvider.js +142 -11
- package/lib/Planetscale/AuthProvider.js.map +1 -1
- package/lib/Planetscale/Branch.d.ts.map +1 -1
- package/lib/Planetscale/Branch.js +4 -1
- package/lib/Planetscale/Branch.js.map +1 -1
- package/lib/Planetscale/Credentials.d.ts.map +1 -1
- package/lib/Planetscale/Credentials.js +14 -6
- package/lib/Planetscale/Credentials.js.map +1 -1
- package/lib/Planetscale/MySQL/MySQLMigrations.js +4 -1
- package/lib/Planetscale/MySQL/MySQLMigrations.js.map +1 -1
- package/lib/Planetscale/OAuthClient.d.ts +72 -0
- package/lib/Planetscale/OAuthClient.d.ts.map +1 -0
- package/lib/Planetscale/OAuthClient.js +227 -0
- package/lib/Planetscale/OAuthClient.js.map +1 -0
- package/lib/Planetscale/Postgres/PostgresClusterSize.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresClusterSize.js +4 -1
- package/lib/Planetscale/Postgres/PostgresClusterSize.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresMigrations.js +4 -1
- package/lib/Planetscale/Postgres/PostgresMigrations.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresRole.js +2 -2
- package/lib/Planetscale/Postgres/PostgresRole.js.map +1 -1
- package/lib/Planetscale/Util.d.ts.map +1 -1
- package/lib/Planetscale/Util.js +4 -1
- package/lib/Planetscale/Util.js.map +1 -1
- package/lib/Platform.d.ts +2 -3
- package/lib/Platform.d.ts.map +1 -1
- package/lib/Platform.js +52 -3
- package/lib/Platform.js.map +1 -1
- package/lib/Provider.d.ts +43 -0
- package/lib/Provider.d.ts.map +1 -1
- package/lib/Provider.js +38 -3
- package/lib/Provider.js.map +1 -1
- package/lib/Ref.d.ts +9 -1
- package/lib/Ref.d.ts.map +1 -1
- package/lib/Ref.js +2 -1
- package/lib/Ref.js.map +1 -1
- package/lib/Resource.d.ts +44 -0
- package/lib/Resource.d.ts.map +1 -1
- package/lib/Resource.js +22 -1
- package/lib/Resource.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/State/HttpStateApi.d.ts +8 -8
- package/lib/State/HttpStateStore.d.ts +12 -0
- package/lib/State/HttpStateStore.d.ts.map +1 -1
- package/lib/State/HttpStateStore.js +50 -6
- package/lib/State/HttpStateStore.js.map +1 -1
- package/lib/Sync.d.ts +109 -0
- package/lib/Sync.d.ts.map +1 -0
- package/lib/Sync.js +315 -0
- package/lib/Sync.js.map +1 -0
- package/lib/Test/Bun.d.ts +1 -1
- package/lib/Test/Bun.d.ts.map +1 -1
- package/lib/Test/Bun.js +1 -1
- package/lib/Test/Bun.js.map +1 -1
- package/lib/Test/Http.d.ts +67 -0
- package/lib/Test/Http.d.ts.map +1 -1
- package/lib/Test/Http.js +76 -1
- package/lib/Test/Http.js.map +1 -1
- package/lib/Test/Vitest.d.ts +1 -1
- package/lib/Test/Vitest.d.ts.map +1 -1
- package/lib/Test/Vitest.js +1 -0
- package/lib/Test/Vitest.js.map +1 -1
- package/lib/Util/data.d.ts +6 -1
- package/lib/Util/data.d.ts.map +1 -1
- package/lib/Util/data.js.map +1 -1
- package/lib/Util/poll.js +1 -1
- package/lib/Util/poll.js.map +1 -1
- package/lib/Util/proxy-chain.js +14 -15
- package/lib/Util/proxy-chain.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +20 -20
- package/src/AWS/ACM/Certificate.ts +29 -14
- package/src/AWS/ApiGateway/common.ts +11 -8
- package/src/AWS/AuthProvider.ts +0 -3
- package/src/AWS/AutoScaling/AutoScalingGroup.ts +29 -21
- package/src/AWS/AutoScaling/LaunchTemplate.ts +6 -1
- package/src/AWS/AutoScaling/ScalingPolicy.ts +31 -17
- package/src/AWS/Bootstrap.ts +5 -6
- package/src/AWS/CloudFront/Distribution.ts +20 -16
- package/src/AWS/CloudFront/Function.ts +10 -6
- package/src/AWS/CloudFront/Invalidation.ts +4 -3
- package/src/AWS/CloudFront/KvEntries.ts +4 -3
- package/src/AWS/CloudFront/KvRoutesUpdate.ts +8 -6
- package/src/AWS/CloudFront/PublicKey.ts +4 -0
- package/src/AWS/CloudFront/VpcOrigin.ts +12 -9
- package/src/AWS/CloudFront/common.ts +10 -6
- package/src/AWS/CloudWatch/AnomalyDetector.ts +4 -3
- package/src/AWS/CloudWatch/common.ts +1 -3
- package/src/AWS/DynamoDB/Table.ts +58 -48
- package/src/AWS/EC2/EIP.ts +6 -4
- package/src/AWS/EC2/EgressOnlyInternetGateway.ts +6 -4
- package/src/AWS/EC2/Instance.ts +12 -9
- package/src/AWS/EC2/InternetGateway.ts +18 -12
- package/src/AWS/EC2/NatGateway.ts +6 -10
- package/src/AWS/EC2/NetworkAcl.ts +6 -4
- package/src/AWS/EC2/NetworkAclEntry.ts +4 -3
- package/src/AWS/EC2/RouteTable.ts +12 -9
- package/src/AWS/EC2/RouteTableAssociation.ts +3 -5
- package/src/AWS/EC2/SecurityGroup.ts +10 -7
- package/src/AWS/EC2/Subnet.ts +15 -15
- package/src/AWS/EC2/Vpc.ts +12 -12
- package/src/AWS/EC2/VpcEndpoint.ts +6 -8
- package/src/AWS/ECS/Service.ts +39 -9
- package/src/AWS/EKS/Addon.ts +8 -6
- package/src/AWS/EKS/Cluster.ts +4 -3
- package/src/AWS/ELBv2/TargetGroup.ts +4 -3
- package/src/AWS/ELBv2/TrustStore.ts +4 -3
- package/src/AWS/IAM/OpenIDConnectProvider.ts +9 -1
- package/src/AWS/IAM/SAMLProvider.ts +4 -4
- package/src/AWS/IdentityCenter/AccountAssignment.ts +8 -6
- package/src/AWS/IdentityCenter/common.ts +1 -3
- package/src/AWS/KMS/Alias.ts +4 -3
- package/src/AWS/KMS/Key.ts +4 -3
- package/src/AWS/Kinesis/Stream.ts +2 -6
- package/src/AWS/Kinesis/StreamConsumer.ts +7 -12
- package/src/AWS/Lambda/Alias.ts +46 -3
- package/src/AWS/Lambda/EventInvokeConfig.ts +146 -0
- package/src/AWS/Lambda/EventSourceMapping.ts +10 -8
- package/src/AWS/Lambda/Function.ts +146 -33
- package/src/AWS/Lambda/MicrovmProvider.ts +18 -16
- package/src/AWS/Lambda/NetworkConnector.ts +19 -15
- package/src/AWS/Lambda/RuntimeExtension.ts +46 -0
- package/src/AWS/Lambda/index.ts +1 -0
- package/src/AWS/Organizations/Account.ts +5 -6
- package/src/AWS/Organizations/DelegatedAdministrator.ts +11 -3
- package/src/AWS/Organizations/PolicyAttachment.ts +10 -4
- package/src/AWS/Organizations/RootPolicyType.ts +9 -4
- package/src/AWS/Organizations/TrustedServiceAccess.ts +9 -3
- package/src/AWS/Organizations/common.ts +1 -3
- package/src/AWS/Providers.ts +22 -20
- package/src/AWS/RDS/DBCluster.ts +8 -6
- package/src/AWS/RDS/DBInstance.ts +8 -6
- package/src/AWS/RDS/DBProxy.ts +4 -3
- package/src/AWS/RDS/DBProxyEndpoint.ts +4 -3
- package/src/AWS/Route53/HealthCheck.ts +8 -6
- package/src/AWS/Route53/HostedZone.ts +35 -16
- package/src/AWS/Route53/Record.ts +45 -22
- package/src/AWS/S3/Bucket.ts +5 -4
- package/src/AWS/SQS/Queue.ts +26 -20
- package/src/AWS/StateStore/State.ts +5 -4
- package/src/AWS/Website/AssetDeployment.ts +10 -6
- package/src/Apply.ts +15 -1
- package/src/Auth/AuthProvider.ts +11 -0
- package/src/Auth/Lock.ts +62 -18
- package/src/Axiom/AuthProvider.ts +0 -3
- package/src/Bundle/PurePlugin.ts +15 -2
- package/src/Bundle/Vite.ts +16 -15
- package/src/Cli/commands/_shared.ts +119 -5
- package/src/Cli/commands/login.ts +9 -40
- package/src/Cli/commands/logs.ts +1 -0
- package/src/Cli/commands/nuke.ts +16 -44
- package/src/Cli/commands/profile.ts +89 -27
- package/src/Cli/commands/sync.ts +123 -0
- package/src/Cli/commands/tail.ts +1 -0
- package/src/Cli/main.ts +2 -0
- package/src/Cloudflare/AI/CustomTopics.ts +3 -1
- package/src/Cloudflare/AI/Dataset.ts +3 -1
- package/src/Cloudflare/AI/Evaluation.ts +3 -1
- package/src/Cloudflare/AI/Gateway.ts +5 -6
- package/src/Cloudflare/AI/GatewayDynamicRouting.ts +41 -7
- package/src/Cloudflare/AI/GatewayProvider.ts +5 -2
- package/src/Cloudflare/AI/ProviderKey.ts +161 -0
- package/src/Cloudflare/AI/SearchInstance.ts +9 -7
- package/src/Cloudflare/AI/SearchNamespace.ts +5 -4
- package/src/Cloudflare/AI/SearchToken.ts +3 -1
- package/src/Cloudflare/AI/SecuritySettings.ts +3 -0
- package/src/Cloudflare/AI/index.ts +1 -0
- package/src/Cloudflare/Access/Application.ts +7 -4
- package/src/Cloudflare/Access/InfrastructureTarget.ts +4 -1
- package/src/Cloudflare/Access/Organization.ts +1 -0
- package/src/Cloudflare/Access/Policy.ts +3 -1
- package/src/Cloudflare/Account/Account.ts +3 -1
- package/src/Cloudflare/Alerting/Silence.ts +4 -3
- package/src/Cloudflare/Alerting/Webhook.ts +8 -6
- package/src/Cloudflare/ApiToken/AccountApiToken.ts +1 -0
- package/src/Cloudflare/ApiToken/UserApiToken.ts +1 -0
- package/src/Cloudflare/Auth/AuthProvider.ts +123 -46
- package/src/Cloudflare/Auth/OAuthClient.ts +6 -7
- package/src/Cloudflare/BotManagement/BotManagement.ts +3 -1
- package/src/Cloudflare/Cache/RegionalTieredCache.ts +7 -4
- package/src/Cloudflare/Cache/Reserve.ts +3 -1
- package/src/Cloudflare/ClientCertificate/ClientCertificate.ts +3 -1
- package/src/Cloudflare/Containers/Container.ts +2 -2
- package/src/Cloudflare/Containers/ContainerApplication.ts +22 -2
- package/src/Cloudflare/Containers/ContainerBundle.ts +99 -33
- package/src/Cloudflare/Containers/ContainerProvider.ts +73 -19
- package/src/Cloudflare/Containers/LocalContainerProvider.ts +78 -72
- package/src/Cloudflare/ContentScanning/ContentScanning.ts +3 -1
- package/src/Cloudflare/CustomCertificate/CustomCertificate.ts +3 -1
- package/src/Cloudflare/CustomHostname/CustomHostname.ts +1 -0
- package/src/Cloudflare/CustomHostname/FallbackOrigin.ts +1 -0
- package/src/Cloudflare/CustomNameserver/CustomNameserver.ts +3 -1
- package/src/Cloudflare/D1/Database.ts +2 -2
- package/src/Cloudflare/DNS/AccountSettings.ts +3 -1
- package/src/Cloudflare/DNS/Dnssec.ts +3 -1
- package/src/Cloudflare/DNS/Firewall.ts +3 -1
- package/src/Cloudflare/DNS/Record.ts +3 -1
- package/src/Cloudflare/DNS/View.ts +3 -1
- package/src/Cloudflare/DNS/ZoneSettings.ts +3 -1
- package/src/Cloudflare/DNS/ZoneTransferAcl.ts +3 -1
- package/src/Cloudflare/DNS/ZoneTransferIncoming.ts +3 -1
- package/src/Cloudflare/DNS/ZoneTransferOutgoing.ts +3 -1
- package/src/Cloudflare/DNS/ZoneTransferPeer.ts +3 -1
- package/src/Cloudflare/DNS/ZoneTransferTsig.ts +3 -1
- package/src/Cloudflare/Diagnostics/EndpointHealthcheck.ts +4 -3
- package/src/Cloudflare/Email/Address.ts +3 -1
- package/src/Cloudflare/Email/AllowPolicy.ts +1 -0
- package/src/Cloudflare/Email/BlockSender.ts +1 -0
- package/src/Cloudflare/Email/CatchAll.ts +7 -2
- package/src/Cloudflare/Email/Domain.ts +3 -1
- package/src/Cloudflare/Email/ImpersonationRegistryEntry.ts +1 -0
- package/src/Cloudflare/Email/Routing.ts +3 -1
- package/src/Cloudflare/Email/Rule.ts +3 -1
- package/src/Cloudflare/Email/SendingSubdomain.ts +1 -0
- package/src/Cloudflare/Email/TrustedDomain.ts +1 -0
- package/src/Cloudflare/Fetcher.ts +12 -5
- package/src/Cloudflare/Flagship/App.ts +2 -3
- package/src/Cloudflare/Fraud/DetectionSettings.ts +3 -1
- package/src/Cloudflare/GoogleTagGateway/GoogleTagGateway.ts +7 -2
- package/src/Cloudflare/Healthcheck/Healthcheck.ts +3 -1
- package/src/Cloudflare/HostnameTlsSetting/HostnameTlsSetting.ts +3 -1
- package/src/Cloudflare/Hyperdrive/Connection.ts +2 -4
- package/src/Cloudflare/Images/Variant.ts +4 -3
- package/src/Cloudflare/KV/Namespace.ts +5 -4
- package/src/Cloudflare/KeylessCertificate/KeylessCertificate.ts +3 -1
- package/src/Cloudflare/LeakedCredentialCheck/LeakedCredentialCheck.ts +3 -1
- package/src/Cloudflare/LoadBalancer/LoadBalancer.ts +3 -1
- package/src/Cloudflare/LoadBalancer/Monitor.ts +4 -3
- package/src/Cloudflare/LoadBalancer/MonitorGroup.ts +4 -3
- package/src/Cloudflare/LoadBalancer/Pool.ts +4 -3
- package/src/Cloudflare/LocalRuntime.ts +17 -0
- package/src/Cloudflare/MagicNetworkMonitoring/Rule.ts +4 -3
- package/src/Cloudflare/ManagedTransforms/ManagedTransforms.ts +3 -1
- package/src/Cloudflare/MtlsCertificate/MtlsCertificate.ts +3 -1
- package/src/Cloudflare/Organization/Organization.ts +3 -1
- package/src/Cloudflare/OriginCaCertificate/OriginCaCertificate.ts +7 -2
- package/src/Cloudflare/OriginPostQuantumEncryption/OriginPostQuantumEncryption.ts +3 -1
- package/src/Cloudflare/OriginTlsClientAuth/HostnameCertificate.ts +5 -1
- package/src/Cloudflare/PageRule/PageRule.ts +3 -1
- package/src/Cloudflare/Pipelines/Pipeline.ts +8 -6
- package/src/Cloudflare/Pipelines/Sink.ts +8 -6
- package/src/Cloudflare/Pipelines/Stream.ts +4 -3
- package/src/Cloudflare/Providers.ts +55 -38
- package/src/Cloudflare/Queues/Consumer.ts +48 -10
- package/src/Cloudflare/Queues/Queue.ts +9 -7
- package/src/Cloudflare/Queues/Subscription.ts +3 -1
- package/src/Cloudflare/R2/Bucket.ts +242 -12
- package/src/Cloudflare/R2/BucketEventNotification.ts +4 -3
- package/src/Cloudflare/R2/DataCatalog.ts +4 -3
- package/src/Cloudflare/RegionalHostname/RegionalHostname.ts +3 -1
- package/src/Cloudflare/Ruleset/Ruleset.ts +9 -4
- package/src/Cloudflare/Rum/Rule.ts +4 -3
- package/src/Cloudflare/SecretsStore/Secret.ts +46 -5
- package/src/Cloudflare/SecurityTxt/SecurityTxt.ts +3 -1
- package/src/Cloudflare/Snippets/Snippet.ts +4 -3
- package/src/Cloudflare/StateStore/CredentialsFile.ts +48 -0
- package/src/Cloudflare/StateStore/State.ts +144 -43
- package/src/Cloudflare/Tags/AccountResourceTags.ts +9 -5
- package/src/Cloudflare/Tags/ZoneResourceTags.ts +4 -3
- package/src/Cloudflare/Tunnel/Route.ts +3 -1
- package/src/Cloudflare/Tunnel/Tunnel.ts +3 -1
- package/src/Cloudflare/UrlNormalization/UrlNormalization.ts +10 -5
- package/src/Cloudflare/Vectorize/VectorizeIndex.ts +2 -3
- package/src/Cloudflare/VpcService/VpcService.ts +1 -0
- package/src/Cloudflare/WaitingRoom/Settings.ts +7 -4
- package/src/Cloudflare/WaitingRoom/WaitingRoom.ts +3 -1
- package/src/Cloudflare/Web3/ContentList.ts +3 -1
- package/src/Cloudflare/Web3/Hostname.ts +3 -1
- package/src/Cloudflare/Website/Vite.ts +20 -0
- package/src/Cloudflare/Workers/Cache.ts +102 -0
- package/src/Cloudflare/Workers/Compatibility.ts +50 -7
- package/src/Cloudflare/Workers/CronEventSource.ts +183 -8
- package/src/Cloudflare/Workers/DurableObject.ts +36 -1
- package/src/Cloudflare/Workers/DurableObjectBridge.ts +38 -33
- package/src/Cloudflare/Workers/DurableObjectState.ts +25 -0
- package/src/Cloudflare/Workers/Fetch.ts +2 -2
- package/src/Cloudflare/Workers/HttpServer.ts +1 -4
- package/src/Cloudflare/Workers/LocalWorkerProvider.ts +135 -26
- package/src/Cloudflare/Workers/ObservabilityDestination.ts +4 -3
- package/src/Cloudflare/Workers/Worker.ts +337 -9
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +45 -16
- package/src/Cloudflare/Workers/WorkerBridge.ts +245 -97
- package/src/Cloudflare/Workers/WorkerLoader.ts +10 -1
- package/src/Cloudflare/Workers/WorkerProvider.ts +598 -55
- package/src/Cloudflare/Workers/WorkerRuntimeContext.ts +23 -2
- package/src/Cloudflare/Workers/cloudflare_workers.ts +20 -12
- package/src/Cloudflare/Workers/index.ts +1 -0
- package/src/Cloudflare/WorkersForPlatforms/DispatchNamespace.ts +2 -4
- package/src/Cloudflare/Workflows/Workflow.ts +350 -58
- package/src/Cloudflare/Workflows/WorkflowBridge.ts +81 -35
- package/src/Cloudflare/Workflows/WorkflowName.ts +41 -0
- package/src/Cloudflare/Zaraz/Config.ts +7 -2
- package/src/Cloudflare/Zone/Hold.ts +7 -4
- package/src/Cloudflare/Zone/Zone.ts +1 -0
- package/src/Command/Dev.ts +42 -10
- package/src/Docker/Container.ts +14 -2
- package/src/Drizzle/Postgres.ts +51 -23
- package/src/Drizzle/Schema.ts +12 -5
- package/src/GitHub/AuthProvider.ts +0 -3
- package/src/GitHub/Env.ts +57 -0
- package/src/GitHub/index.ts +1 -0
- package/src/Http.ts +11 -0
- package/src/Local/RpcProviderProxy.ts +1 -1
- package/src/Neon/AuthProvider.ts +0 -3
- package/src/Neon/Branch.ts +15 -3
- package/src/Neon/Project.ts +2 -2
- package/src/Output.ts +18 -2
- package/src/Plan.ts +28 -11
- package/src/Planetscale/AuthProvider.ts +267 -27
- package/src/Planetscale/Branch.ts +4 -3
- package/src/Planetscale/Credentials.ts +18 -6
- package/src/Planetscale/MySQL/MySQLMigrations.ts +4 -3
- package/src/Planetscale/OAuthClient.ts +307 -0
- package/src/Planetscale/Postgres/PostgresClusterSize.ts +4 -3
- package/src/Planetscale/Postgres/PostgresMigrations.ts +4 -3
- package/src/Planetscale/Postgres/PostgresRole.ts +2 -2
- package/src/Planetscale/Util.ts +4 -3
- package/src/Platform.ts +74 -7
- package/src/Provider.ts +88 -3
- package/src/Ref.ts +10 -0
- package/src/Resource.ts +50 -1
- package/src/Stack.ts +1 -1
- package/src/State/HttpStateStore.ts +51 -9
- package/src/Sync.ts +497 -0
- package/src/Test/Bun.ts +4 -0
- package/src/Test/Http.ts +138 -3
- package/src/Test/Vitest.ts +11 -0
- package/src/Util/data.ts +14 -5
- package/src/Util/poll.ts +1 -1
- package/src/Util/proxy-chain.ts +9 -12
- package/src/index.ts +1 -0
- package/lib/ExecutionContext.d.ts +0 -18
- package/lib/ExecutionContext.d.ts.map +0 -1
- package/lib/ExecutionContext.js +0 -10
- package/lib/ExecutionContext.js.map +0 -1
- package/src/ExecutionContext.ts +0 -18
package/src/Sync.ts
ADDED
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
/** @effect-diagnostics anyUnknownInErrorContext:off */
|
|
2
|
+
import * as Cause from "effect/Cause";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Option from "effect/Option";
|
|
5
|
+
import { stripUnowned } from "./AdoptPolicy.ts";
|
|
6
|
+
import {
|
|
7
|
+
Artifacts,
|
|
8
|
+
ArtifactStore,
|
|
9
|
+
createArtifactStore,
|
|
10
|
+
ensureArtifactStore,
|
|
11
|
+
makeScopedArtifacts,
|
|
12
|
+
} from "./Artifacts.ts";
|
|
13
|
+
import type { PlanStatusSession, ScopedPlanStatusSession } from "./Cli/Cli.ts";
|
|
14
|
+
import { deepEqual } from "./Diff.ts";
|
|
15
|
+
import { InstanceId } from "./InstanceId.ts";
|
|
16
|
+
import type { Apply, Plan } from "./Plan.ts";
|
|
17
|
+
import { findProviderByType, Provider } from "./Provider.ts";
|
|
18
|
+
import type { ResourceLike } from "./Resource.ts";
|
|
19
|
+
import {
|
|
20
|
+
isActionState,
|
|
21
|
+
State,
|
|
22
|
+
type CreatedResourceState,
|
|
23
|
+
type ResourceState,
|
|
24
|
+
type UpdatedResourceState,
|
|
25
|
+
} from "./State/index.ts";
|
|
26
|
+
import { type ResourceOp, recordResourceOp } from "./Telemetry/Metrics.ts";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The outcome of syncing a single resource.
|
|
30
|
+
*
|
|
31
|
+
* - `unchanged` — the observed cloud state matches the persisted attributes.
|
|
32
|
+
* - `drifted` — (dry-run only) the cloud state diverged from the persisted
|
|
33
|
+
* attributes; a non-dry-run sync would repair it.
|
|
34
|
+
* - `missing` — (dry-run only) the resource no longer exists in the cloud;
|
|
35
|
+
* a non-dry-run sync would recreate it.
|
|
36
|
+
* - `repaired` — drift was detected and the resource was reconciled back to
|
|
37
|
+
* its desired (last-deployed) state.
|
|
38
|
+
* - `recreated` — the resource was missing from the cloud and was reconciled
|
|
39
|
+
* from scratch, reusing the persisted instance id so
|
|
40
|
+
* deterministic physical names converge to the same values.
|
|
41
|
+
* - `skipped` — the resource was not synced; see `reason` (provider has no
|
|
42
|
+
* `read`, or the persisted status is not stable).
|
|
43
|
+
*/
|
|
44
|
+
export type SyncAction =
|
|
45
|
+
| "unchanged"
|
|
46
|
+
| "drifted"
|
|
47
|
+
| "missing"
|
|
48
|
+
| "repaired"
|
|
49
|
+
| "recreated"
|
|
50
|
+
| "skipped";
|
|
51
|
+
|
|
52
|
+
export interface SyncResourceResult {
|
|
53
|
+
fqn: string;
|
|
54
|
+
logicalId: string;
|
|
55
|
+
resourceType: string;
|
|
56
|
+
action: SyncAction;
|
|
57
|
+
/** Why the resource was skipped (only set when `action === "skipped"`). */
|
|
58
|
+
reason?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The resource's attributes after the sync: the reconciled attributes for
|
|
61
|
+
* `repaired`/`recreated`, the observed cloud attributes for `drifted`, and
|
|
62
|
+
* the persisted attributes for `unchanged`. Unset for `missing`/`skipped`.
|
|
63
|
+
*/
|
|
64
|
+
attr?: any;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface SyncResult {
|
|
68
|
+
resources: Record<string, SyncResourceResult>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface SyncOptions {
|
|
72
|
+
/**
|
|
73
|
+
* Detect and report drift without repairing it. No provider `reconcile`
|
|
74
|
+
* runs and no state is persisted — resources report `drifted`/`missing`
|
|
75
|
+
* instead of `repaired`/`recreated`.
|
|
76
|
+
*/
|
|
77
|
+
dryRun?: boolean;
|
|
78
|
+
/** Optional progress session (the CLI passes one; tests usually don't). */
|
|
79
|
+
session?: PlanStatusSession;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const noopSession: PlanStatusSession = {
|
|
83
|
+
emit: () => Effect.void,
|
|
84
|
+
done: () => Effect.void,
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Reconcile state drift for every resource persisted under `stack`/`stage`.
|
|
89
|
+
*
|
|
90
|
+
* Unlike `deploy` (which converges the cloud to a *new* desired state
|
|
91
|
+
* computed from the stack program), `sync` converges the cloud back to the
|
|
92
|
+
* *last-deployed* desired state recorded in the state store. It needs no
|
|
93
|
+
* stack program — only the state store and the resource providers.
|
|
94
|
+
*
|
|
95
|
+
* The algorithm, per resource, is observe → compare → converge:
|
|
96
|
+
*
|
|
97
|
+
* 1. **Read** — call `provider.read` with the persisted props/attributes to
|
|
98
|
+
* observe the live cloud state.
|
|
99
|
+
* 2. **Compare** — deep-compare the observed attributes against the
|
|
100
|
+
* persisted attributes. Equal ⇒ `unchanged`.
|
|
101
|
+
* 3. **Reconcile** — on drift, call `provider.reconcile` with the persisted
|
|
102
|
+
* props as the desired state (`news`) and the *observed* attributes as
|
|
103
|
+
* `output`, so the provider diffs against reality rather than a stale
|
|
104
|
+
* snapshot. When the resource is missing entirely, reconcile runs
|
|
105
|
+
* greenfield (`olds`/`output` undefined) under the *same* instance id so
|
|
106
|
+
* deterministic physical names regenerate identically.
|
|
107
|
+
* 4. **Persist** — write the fresh attributes back to the state store.
|
|
108
|
+
*
|
|
109
|
+
* Resources are synced concurrently and independently — persisted props are
|
|
110
|
+
* fully resolved values, so there are no upstream/downstream data edges to
|
|
111
|
+
* order by. A failure syncing one resource does not interrupt the others;
|
|
112
|
+
* all failures are aggregated into a single combined cause after every
|
|
113
|
+
* resource has been attempted.
|
|
114
|
+
*
|
|
115
|
+
* Resources that cannot be synced are reported as `skipped` rather than
|
|
116
|
+
* failing the run: providers without `read` (nothing to observe), and
|
|
117
|
+
* resources whose persisted status is not stable (`creating`, `updating`,
|
|
118
|
+
* `replacing`, `replaced`, `deleting`) — those represent an interrupted
|
|
119
|
+
* deploy and must be recovered by `deploy`, which owns replacement chains
|
|
120
|
+
* and dependency ordering. Action rows have no cloud state and are ignored.
|
|
121
|
+
*/
|
|
122
|
+
export const sync = (
|
|
123
|
+
stack: { name: string; stage: string },
|
|
124
|
+
options: SyncOptions = {},
|
|
125
|
+
): Effect.Effect<SyncResult, any, State> =>
|
|
126
|
+
Effect.gen(function* () {
|
|
127
|
+
const state = yield* yield* State;
|
|
128
|
+
const session = options.session ?? noopSession;
|
|
129
|
+
const stackName = stack.name;
|
|
130
|
+
const stage = stack.stage;
|
|
131
|
+
const dryRun = options.dryRun ?? false;
|
|
132
|
+
|
|
133
|
+
const syncResource = Effect.fn("sync.resource")(function* (fqn: string) {
|
|
134
|
+
const persisted = yield* state.get({ stack: stackName, stage, fqn });
|
|
135
|
+
// Action rows have no cloud state to drift.
|
|
136
|
+
if (!persisted || isActionState(persisted)) {
|
|
137
|
+
return undefined;
|
|
138
|
+
}
|
|
139
|
+
const old = persisted as ResourceState;
|
|
140
|
+
const { logicalId, instanceId, resourceType, namespace } = old;
|
|
141
|
+
|
|
142
|
+
const result = (
|
|
143
|
+
partial: Pick<SyncResourceResult, "action" | "reason" | "attr">,
|
|
144
|
+
): SyncResourceResult => ({
|
|
145
|
+
fqn,
|
|
146
|
+
logicalId,
|
|
147
|
+
resourceType,
|
|
148
|
+
...partial,
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
const scopedSession = {
|
|
152
|
+
...session,
|
|
153
|
+
note: (note: string) =>
|
|
154
|
+
session.emit({ id: logicalId, kind: "annotate", message: note }),
|
|
155
|
+
} satisfies ScopedPlanStatusSession;
|
|
156
|
+
|
|
157
|
+
const report = (
|
|
158
|
+
status: "updating" | "updated" | "creating" | "created" | "skipped",
|
|
159
|
+
) =>
|
|
160
|
+
session.emit({
|
|
161
|
+
kind: "status-change",
|
|
162
|
+
id: logicalId,
|
|
163
|
+
type: resourceType,
|
|
164
|
+
status,
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
// Surface the skip reason through the session (the TUI renders it as a
|
|
168
|
+
// note under the row; the logging CLI prints it) and settle the row
|
|
169
|
+
// with a terminal `skipped` status so it never shows as in-progress.
|
|
170
|
+
const skip = (reason: string) =>
|
|
171
|
+
Effect.gen(function* () {
|
|
172
|
+
yield* scopedSession.note(reason);
|
|
173
|
+
yield* report("skipped");
|
|
174
|
+
return result({ action: "skipped", reason });
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
if (old.status !== "created" && old.status !== "updated") {
|
|
178
|
+
// Anything mid-flight (or with a pending replacement chain) belongs
|
|
179
|
+
// to `deploy`'s recovery machinery — replacement generations and
|
|
180
|
+
// dependency ordering are not sync's to drive.
|
|
181
|
+
return yield* skip(
|
|
182
|
+
old.status === "replaced" || old.status === "replacing"
|
|
183
|
+
? `resource has a pending replacement (status '${old.status}'); run deploy to finish it`
|
|
184
|
+
: `resource status '${old.status}' is not stable; run deploy to recover`,
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
const provider = yield* findProviderByType(resourceType);
|
|
189
|
+
if (!provider.read) {
|
|
190
|
+
return yield* skip(
|
|
191
|
+
`provider '${resourceType}' does not implement read`,
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const commit = (value: Omit<ResourceState, "namespace">) =>
|
|
196
|
+
state.set({
|
|
197
|
+
stack: stackName,
|
|
198
|
+
stage,
|
|
199
|
+
fqn,
|
|
200
|
+
value: { ...value, namespace } as ResourceState,
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
const observed = yield* provider
|
|
204
|
+
.read({
|
|
205
|
+
id: logicalId,
|
|
206
|
+
fqn,
|
|
207
|
+
instanceId,
|
|
208
|
+
olds: old.props as never,
|
|
209
|
+
output: old.attr as never,
|
|
210
|
+
})
|
|
211
|
+
.pipe(
|
|
212
|
+
instrumentLifecycle("read", fqn, resourceType, logicalId, instanceId),
|
|
213
|
+
);
|
|
214
|
+
|
|
215
|
+
// ── missing — recreate under the same instance id ──
|
|
216
|
+
if (observed === undefined) {
|
|
217
|
+
if (dryRun) {
|
|
218
|
+
return result({ action: "missing" });
|
|
219
|
+
}
|
|
220
|
+
yield* report("creating");
|
|
221
|
+
const attr = yield* provider
|
|
222
|
+
.reconcile({
|
|
223
|
+
id: logicalId,
|
|
224
|
+
fqn,
|
|
225
|
+
instanceId,
|
|
226
|
+
news: old.props as never,
|
|
227
|
+
olds: undefined,
|
|
228
|
+
output: undefined,
|
|
229
|
+
session: scopedSession,
|
|
230
|
+
bindings: old.bindings as never,
|
|
231
|
+
})
|
|
232
|
+
.pipe(
|
|
233
|
+
instrumentLifecycle(
|
|
234
|
+
"create",
|
|
235
|
+
fqn,
|
|
236
|
+
resourceType,
|
|
237
|
+
logicalId,
|
|
238
|
+
instanceId,
|
|
239
|
+
),
|
|
240
|
+
);
|
|
241
|
+
yield* commit({
|
|
242
|
+
status: "created",
|
|
243
|
+
fqn,
|
|
244
|
+
logicalId,
|
|
245
|
+
instanceId,
|
|
246
|
+
resourceType,
|
|
247
|
+
props: old.props!,
|
|
248
|
+
attr,
|
|
249
|
+
providerVersion: provider.version ?? 0,
|
|
250
|
+
bindings: old.bindings,
|
|
251
|
+
downstream: old.downstream,
|
|
252
|
+
removalPolicy: old.removalPolicy,
|
|
253
|
+
} satisfies Omit<CreatedResourceState, "namespace">);
|
|
254
|
+
yield* report("created");
|
|
255
|
+
return result({ action: "recreated", attr });
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// `read` may brand the attributes as Unowned when ownership markers
|
|
259
|
+
// (tags) have drifted out from under us — the brand is a plan-time
|
|
260
|
+
// routing hint, never persisted, and here the state store already
|
|
261
|
+
// records the resource as ours. Tag drift then surfaces through the
|
|
262
|
+
// attribute comparison below and repairs like any other drift.
|
|
263
|
+
const live = stripUnowned(observed);
|
|
264
|
+
|
|
265
|
+
if (deepEqual(live, old.attr)) {
|
|
266
|
+
return result({ action: "unchanged", attr: old.attr });
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (dryRun) {
|
|
270
|
+
return result({ action: "drifted", attr: live });
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// ── drifted — converge the cloud back to the last-deployed props ──
|
|
274
|
+
yield* report("updating");
|
|
275
|
+
const attr = yield* provider
|
|
276
|
+
.reconcile({
|
|
277
|
+
id: logicalId,
|
|
278
|
+
fqn,
|
|
279
|
+
instanceId,
|
|
280
|
+
news: old.props as never,
|
|
281
|
+
olds: old.props as never,
|
|
282
|
+
// Hand reconcile the OBSERVED attributes, not the stale persisted
|
|
283
|
+
// snapshot, so its observed-vs-desired diffing works from reality.
|
|
284
|
+
output: live as never,
|
|
285
|
+
session: scopedSession,
|
|
286
|
+
bindings: old.bindings as never,
|
|
287
|
+
})
|
|
288
|
+
.pipe(
|
|
289
|
+
instrumentLifecycle(
|
|
290
|
+
"update",
|
|
291
|
+
fqn,
|
|
292
|
+
resourceType,
|
|
293
|
+
logicalId,
|
|
294
|
+
instanceId,
|
|
295
|
+
),
|
|
296
|
+
);
|
|
297
|
+
yield* commit({
|
|
298
|
+
status: "updated",
|
|
299
|
+
fqn,
|
|
300
|
+
logicalId,
|
|
301
|
+
instanceId,
|
|
302
|
+
resourceType,
|
|
303
|
+
props: old.props!,
|
|
304
|
+
attr,
|
|
305
|
+
providerVersion: provider.version ?? 0,
|
|
306
|
+
bindings: old.bindings,
|
|
307
|
+
downstream: old.downstream,
|
|
308
|
+
removalPolicy: old.removalPolicy,
|
|
309
|
+
} satisfies Omit<UpdatedResourceState, "namespace">);
|
|
310
|
+
yield* report("updated");
|
|
311
|
+
return result({ action: "repaired", attr });
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
const fqns = yield* state.list({ stack: stackName, stage });
|
|
315
|
+
|
|
316
|
+
// Sync every resource even if some fail, then surface all failures as
|
|
317
|
+
// one combined cause (mirrors Apply's failure aggregation).
|
|
318
|
+
const failures: Cause.Cause<unknown>[] = [];
|
|
319
|
+
const results = yield* Effect.all(
|
|
320
|
+
fqns.map((fqn) =>
|
|
321
|
+
syncResource(fqn).pipe(
|
|
322
|
+
Effect.catchCause((cause) =>
|
|
323
|
+
Effect.gen(function* () {
|
|
324
|
+
failures.push(cause);
|
|
325
|
+
const persisted = yield* state
|
|
326
|
+
.get({ stack: stackName, stage, fqn })
|
|
327
|
+
.pipe(Effect.orElseSucceed(() => undefined));
|
|
328
|
+
if (persisted && !isActionState(persisted)) {
|
|
329
|
+
yield* session.emit({
|
|
330
|
+
kind: "status-change",
|
|
331
|
+
id: persisted.logicalId,
|
|
332
|
+
type: persisted.resourceType,
|
|
333
|
+
status: "fail",
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
return undefined;
|
|
337
|
+
}),
|
|
338
|
+
),
|
|
339
|
+
),
|
|
340
|
+
),
|
|
341
|
+
{ concurrency: "unbounded" },
|
|
342
|
+
);
|
|
343
|
+
|
|
344
|
+
yield* session.done();
|
|
345
|
+
|
|
346
|
+
if (failures.length > 0) {
|
|
347
|
+
return yield* Effect.failCause(
|
|
348
|
+
failures.reduce(Cause.combine) as Cause.Cause<never>,
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
return {
|
|
353
|
+
resources: Object.fromEntries(
|
|
354
|
+
results
|
|
355
|
+
.filter((r): r is SyncResourceResult => r !== undefined)
|
|
356
|
+
.map((r) => [r.fqn, r]),
|
|
357
|
+
),
|
|
358
|
+
} satisfies SyncResult;
|
|
359
|
+
}).pipe(
|
|
360
|
+
ensureArtifactStore,
|
|
361
|
+
Effect.withSpan("sync", {
|
|
362
|
+
attributes: {
|
|
363
|
+
"alchemy.stack": stack.name,
|
|
364
|
+
"alchemy.stage": stack.stage,
|
|
365
|
+
"alchemy.dry_run": !!options.dryRun,
|
|
366
|
+
},
|
|
367
|
+
}),
|
|
368
|
+
);
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Same shape as Apply's lifecycle instrumentation: scoped artifacts +
|
|
372
|
+
* instance id, the resource op metrics, and a `provider.<op>` span.
|
|
373
|
+
*/
|
|
374
|
+
const instrumentLifecycle =
|
|
375
|
+
(
|
|
376
|
+
op: ResourceOp,
|
|
377
|
+
fqn: string,
|
|
378
|
+
resourceType: string,
|
|
379
|
+
logicalId: string,
|
|
380
|
+
instanceId: string,
|
|
381
|
+
) =>
|
|
382
|
+
<A, E, R>(
|
|
383
|
+
effect: Effect.Effect<A, E, R>,
|
|
384
|
+
): Effect.Effect<A, E, Exclude<R, InstanceId | Artifacts>> =>
|
|
385
|
+
Effect.serviceOption(ArtifactStore).pipe(
|
|
386
|
+
Effect.map(Option.getOrElse(createArtifactStore)),
|
|
387
|
+
Effect.flatMap((store) =>
|
|
388
|
+
effect.pipe(
|
|
389
|
+
Effect.provideService(Artifacts, makeScopedArtifacts(store, fqn)),
|
|
390
|
+
Effect.provideService(InstanceId, instanceId),
|
|
391
|
+
),
|
|
392
|
+
),
|
|
393
|
+
recordResourceOp(resourceType, op),
|
|
394
|
+
Effect.withSpan(`provider.${op}`, {
|
|
395
|
+
attributes: {
|
|
396
|
+
"alchemy.resource.fqn": fqn,
|
|
397
|
+
"alchemy.resource.type": resourceType,
|
|
398
|
+
"alchemy.resource.logical_id": logicalId,
|
|
399
|
+
"alchemy.resource.instance_id": instanceId,
|
|
400
|
+
"alchemy.resource.op": op,
|
|
401
|
+
},
|
|
402
|
+
}),
|
|
403
|
+
) as Effect.Effect<A, E, Exclude<R, InstanceId | Artifacts>>;
|
|
404
|
+
|
|
405
|
+
export interface SyncPlan {
|
|
406
|
+
/** Per-resource detection outcome (a dry-run {@link SyncResult}). */
|
|
407
|
+
result: SyncResult;
|
|
408
|
+
/**
|
|
409
|
+
* The detection outcome projected onto the engine's {@link Plan} shape so
|
|
410
|
+
* the CLI renders a sync exactly like a deploy plan (ink TUI when
|
|
411
|
+
* interactive, plain logging otherwise): `drifted` → `update`, `missing` →
|
|
412
|
+
* `create`, `unchanged`/`skipped` → `noop`.
|
|
413
|
+
*/
|
|
414
|
+
plan: Plan;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Run the drift-detection pass (a dry-run {@link sync}) and project the
|
|
419
|
+
* outcome onto a {@link Plan} for display/approval. The plan is a read-only
|
|
420
|
+
* view — repair happens by calling {@link sync} (without `dryRun`), which
|
|
421
|
+
* re-observes the cloud rather than trusting the detection snapshot.
|
|
422
|
+
*/
|
|
423
|
+
export const plan = (stack: {
|
|
424
|
+
name: string;
|
|
425
|
+
stage: string;
|
|
426
|
+
}): Effect.Effect<SyncPlan, any, State> =>
|
|
427
|
+
Effect.gen(function* () {
|
|
428
|
+
const result = yield* sync(stack, { dryRun: true });
|
|
429
|
+
const state = yield* yield* State;
|
|
430
|
+
|
|
431
|
+
const resources: Plan["resources"] = {};
|
|
432
|
+
for (const [fqn, r] of Object.entries(result.resources)) {
|
|
433
|
+
const persisted = yield* state.get({
|
|
434
|
+
stack: stack.name,
|
|
435
|
+
stage: stack.stage,
|
|
436
|
+
fqn,
|
|
437
|
+
});
|
|
438
|
+
if (!persisted || isActionState(persisted)) continue;
|
|
439
|
+
const provider = yield* findProviderByType(persisted.resourceType);
|
|
440
|
+
const action =
|
|
441
|
+
r.action === "drifted"
|
|
442
|
+
? ("update" as const)
|
|
443
|
+
: r.action === "missing"
|
|
444
|
+
? ("create" as const)
|
|
445
|
+
: ("noop" as const);
|
|
446
|
+
resources[fqn] = {
|
|
447
|
+
action,
|
|
448
|
+
props: persisted.props,
|
|
449
|
+
state: persisted,
|
|
450
|
+
provider,
|
|
451
|
+
// Synthetic ResourceLike reconstructed from persisted state, the
|
|
452
|
+
// same way Plan.make builds its deletion nodes.
|
|
453
|
+
resource: {
|
|
454
|
+
Namespace: persisted.namespace,
|
|
455
|
+
FQN: fqn,
|
|
456
|
+
LogicalId: persisted.logicalId,
|
|
457
|
+
Type: persisted.resourceType,
|
|
458
|
+
Attributes: persisted.attr,
|
|
459
|
+
Props: persisted.props,
|
|
460
|
+
Binding: undefined!,
|
|
461
|
+
Provider: Provider(persisted.resourceType),
|
|
462
|
+
RemovalPolicy: persisted.removalPolicy,
|
|
463
|
+
Adopt: undefined,
|
|
464
|
+
RuntimeContext: undefined!,
|
|
465
|
+
Providers: undefined,
|
|
466
|
+
} as ResourceLike,
|
|
467
|
+
// Sync repairs from the persisted bindings verbatim — surface them
|
|
468
|
+
// as noop rows so the renderer shows the binding topology without
|
|
469
|
+
// implying binding changes.
|
|
470
|
+
bindings: (persisted.bindings ?? []).map((binding) => ({
|
|
471
|
+
sid: binding.sid,
|
|
472
|
+
action: "noop" as const,
|
|
473
|
+
data: binding.data,
|
|
474
|
+
})),
|
|
475
|
+
downstream: persisted.downstream ?? [],
|
|
476
|
+
} as Apply;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
return {
|
|
480
|
+
result,
|
|
481
|
+
plan: {
|
|
482
|
+
resources,
|
|
483
|
+
actions: {},
|
|
484
|
+
deletions: {},
|
|
485
|
+
actionDeletions: {},
|
|
486
|
+
output: undefined,
|
|
487
|
+
cycleMembers: new Set<string>(),
|
|
488
|
+
},
|
|
489
|
+
} satisfies SyncPlan;
|
|
490
|
+
}).pipe(
|
|
491
|
+
Effect.withSpan("sync.plan", {
|
|
492
|
+
attributes: {
|
|
493
|
+
"alchemy.stack": stack.name,
|
|
494
|
+
"alchemy.stage": stack.stage,
|
|
495
|
+
},
|
|
496
|
+
}),
|
|
497
|
+
);
|
package/src/Test/Bun.ts
CHANGED
package/src/Test/Http.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import * as Data from "effect/Data";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Layer from "effect/Layer";
|
|
3
4
|
import * as Schedule from "effect/Schedule";
|
|
5
|
+
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
|
|
4
6
|
import * as HttpClient from "effect/unstable/http/HttpClient";
|
|
7
|
+
import {
|
|
8
|
+
DecodeError,
|
|
9
|
+
HttpClientError,
|
|
10
|
+
} from "effect/unstable/http/HttpClientError";
|
|
5
11
|
import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest";
|
|
6
12
|
import type { HttpClientResponse } from "effect/unstable/http/HttpClientResponse";
|
|
13
|
+
import * as RpcClient from "effect/unstable/rpc/RpcClient";
|
|
14
|
+
import * as RpcSerialization from "effect/unstable/rpc/RpcSerialization";
|
|
7
15
|
|
|
8
16
|
/**
|
|
9
17
|
* A freshly-deployed Cloudflare Worker is not instantly reachable over HTTP.
|
|
@@ -57,9 +65,10 @@ export const executeWhenReady = (
|
|
|
57
65
|
),
|
|
58
66
|
Effect.retry({
|
|
59
67
|
while: (error) => error instanceof WorkerNotReady,
|
|
60
|
-
schedule: Schedule.
|
|
61
|
-
Schedule.
|
|
62
|
-
|
|
68
|
+
schedule: Schedule.max([
|
|
69
|
+
Schedule.exponential("500 millis"),
|
|
70
|
+
Schedule.recurs(options?.times ?? 20),
|
|
71
|
+
]),
|
|
63
72
|
}),
|
|
64
73
|
);
|
|
65
74
|
});
|
|
@@ -72,3 +81,129 @@ export const getWhenReady = (
|
|
|
72
81
|
options?: WhenReadyOptions,
|
|
73
82
|
): Effect.Effect<HttpClientResponse, unknown, HttpClient.HttpClient> =>
|
|
74
83
|
executeWhenReady(HttpClientRequest.get(url), options);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Options for the edge-transient response guard applied by
|
|
87
|
+
* {@link guardContentType} / {@link rpcClientLayer}. Pass per suite via
|
|
88
|
+
* `Test.make({ http: { ... } })` or per call site.
|
|
89
|
+
*/
|
|
90
|
+
export interface EdgeGuardOptions {
|
|
91
|
+
/**
|
|
92
|
+
* Retry schedule for edge-transient responses (and transport errors).
|
|
93
|
+
* Default: exponential from 500ms capped at 3s.
|
|
94
|
+
*/
|
|
95
|
+
schedule?: Schedule.Schedule<unknown, unknown>;
|
|
96
|
+
/** Max transport-level retry attempts. Default `5`. */
|
|
97
|
+
times?: number;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const defaultGuardSchedule = Schedule.min([
|
|
101
|
+
Schedule.exponential("500 millis"),
|
|
102
|
+
Schedule.spaced("3 seconds"),
|
|
103
|
+
]);
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Guard an `HttpClient` against edge-generated bodies on a freshly deployed
|
|
107
|
+
* Worker URL.
|
|
108
|
+
*
|
|
109
|
+
* Protocol clients like effect RPC's `layerProtocolHttp` never inspect the
|
|
110
|
+
* response status or content-type — they pipe the raw body straight into the
|
|
111
|
+
* serialization parser, so every edge-generated HTML page (the workers.dev
|
|
112
|
+
* placeholder, which serves with HTTP **200**; 1101/1102 error pages;
|
|
113
|
+
* 429/1015 rate limits) surfaces as an opaque decode defect (e.g.
|
|
114
|
+
* `RpcClientDefect: Error decoding HTTP response`).
|
|
115
|
+
*
|
|
116
|
+
* This transform rejects any response whose `content-type` doesn't match the
|
|
117
|
+
* expected one as a typed `HttpClientError` that records the status + a body
|
|
118
|
+
* snippet — so a failure names its cause — and retries the request through a
|
|
119
|
+
* bounded schedule so callers ride out the cold-start window
|
|
120
|
+
* ({@link WorkerNotReady} documents why this belongs at the call site).
|
|
121
|
+
*/
|
|
122
|
+
export const guardContentType =
|
|
123
|
+
(contentType: string, options?: EdgeGuardOptions) =>
|
|
124
|
+
(client: HttpClient.HttpClient): HttpClient.HttpClient =>
|
|
125
|
+
client.pipe(
|
|
126
|
+
HttpClient.transform((effect, request) =>
|
|
127
|
+
Effect.flatMap(effect, (response) => {
|
|
128
|
+
const observed = response.headers["content-type"] ?? "";
|
|
129
|
+
if (observed.includes(contentType)) {
|
|
130
|
+
return Effect.succeed(response);
|
|
131
|
+
}
|
|
132
|
+
return response.text.pipe(
|
|
133
|
+
Effect.orElseSucceed(() => "<unreadable body>"),
|
|
134
|
+
Effect.flatMap((body) =>
|
|
135
|
+
Effect.fail(
|
|
136
|
+
new HttpClientError({
|
|
137
|
+
reason: new DecodeError({
|
|
138
|
+
request,
|
|
139
|
+
response,
|
|
140
|
+
description: `expected "${contentType}", got "${observed}" (status ${response.status}): ${body.slice(0, 200)}`,
|
|
141
|
+
}),
|
|
142
|
+
}),
|
|
143
|
+
),
|
|
144
|
+
),
|
|
145
|
+
);
|
|
146
|
+
}),
|
|
147
|
+
),
|
|
148
|
+
HttpClient.retry({
|
|
149
|
+
schedule: options?.schedule ?? defaultGuardSchedule,
|
|
150
|
+
times: options?.times ?? 5,
|
|
151
|
+
}),
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* A fetch-backed `HttpClient` layer wrapped with {@link guardContentType}.
|
|
156
|
+
*
|
|
157
|
+
* Deliberately a standalone layer rather than a transform of the ambient
|
|
158
|
+
* test `HttpClient`: the ambient client also serves the engine's own cloud
|
|
159
|
+
* API calls during `deploy`/`destroy` and distilled SDK calls in
|
|
160
|
+
* `test.provider` bodies, which must NOT be subjected to this guard.
|
|
161
|
+
*/
|
|
162
|
+
export const guardedFetchLayer = (
|
|
163
|
+
contentType: string,
|
|
164
|
+
options?: EdgeGuardOptions,
|
|
165
|
+
): Layer.Layer<HttpClient.HttpClient> =>
|
|
166
|
+
Layer.effect(HttpClient.HttpClient)(
|
|
167
|
+
Effect.gen(function* () {
|
|
168
|
+
const client = yield* HttpClient.HttpClient;
|
|
169
|
+
return guardContentType(contentType, options)(client);
|
|
170
|
+
}),
|
|
171
|
+
).pipe(Layer.provide(FetchHttpClient.layer));
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Complete RPC-over-HTTP client transport for driving a deployed Worker:
|
|
175
|
+
* `RpcClient.layerProtocolHttp` + the given serialization (ndjson by
|
|
176
|
+
* default) + a {@link guardedFetchLayer} expecting that serialization's
|
|
177
|
+
* content-type.
|
|
178
|
+
*
|
|
179
|
+
* ```ts
|
|
180
|
+
* const client = yield* RpcClient.make(WorkerRpcs);
|
|
181
|
+
* // ...
|
|
182
|
+
* }).pipe(Effect.scoped, Effect.provide(Test.Http.rpcClientLayer(url)));
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
export const rpcClientLayer = (
|
|
186
|
+
url: string,
|
|
187
|
+
options?: EdgeGuardOptions & {
|
|
188
|
+
/** RPC wire serialization. Default {@link RpcSerialization.ndjson}. */
|
|
189
|
+
serialization?: RpcSerialization.RpcSerialization["Service"];
|
|
190
|
+
/**
|
|
191
|
+
* Set `false` to skip the edge guard entirely and use a plain fetch
|
|
192
|
+
* transport — e.g. for a test that asserts on the raw edge behavior
|
|
193
|
+
* itself. Default `true`.
|
|
194
|
+
*/
|
|
195
|
+
guard?: boolean;
|
|
196
|
+
},
|
|
197
|
+
): Layer.Layer<RpcClient.Protocol> => {
|
|
198
|
+
const serialization = options?.serialization ?? RpcSerialization.ndjson;
|
|
199
|
+
return RpcClient.layerProtocolHttp({ url }).pipe(
|
|
200
|
+
Layer.provide(
|
|
201
|
+
options?.guard === false
|
|
202
|
+
? FetchHttpClient.layer
|
|
203
|
+
: guardedFetchLayer(serialization.contentType, options),
|
|
204
|
+
),
|
|
205
|
+
Layer.provide(
|
|
206
|
+
Layer.succeed(RpcSerialization.RpcSerialization, serialization),
|
|
207
|
+
),
|
|
208
|
+
);
|
|
209
|
+
};
|
package/src/Test/Vitest.ts
CHANGED
|
@@ -15,6 +15,17 @@ import type { CompiledStack } from "../Stack.ts";
|
|
|
15
15
|
import type { Stage } from "../Stage.ts";
|
|
16
16
|
import * as Core from "./Core.ts";
|
|
17
17
|
|
|
18
|
+
export {
|
|
19
|
+
executeWhenReady,
|
|
20
|
+
getWhenReady,
|
|
21
|
+
guardContentType,
|
|
22
|
+
guardedFetchLayer,
|
|
23
|
+
rpcClientLayer,
|
|
24
|
+
WorkerNotReady,
|
|
25
|
+
type EdgeGuardOptions,
|
|
26
|
+
type WhenReadyOptions,
|
|
27
|
+
} from "./Http.ts";
|
|
28
|
+
|
|
18
29
|
export type MakeOptions<ROut = any> = Core.MakeOptions<ROut>;
|
|
19
30
|
export type ScratchStack = Core.ScratchStack;
|
|
20
31
|
export type TestEffect<A, R = never> = Core.TestEffect<A, R>;
|