alchemy 2.0.0-beta.52 → 2.0.0-beta.54
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 +9 -9
- package/bin/exec.js.map +1 -1
- package/lib/AWS/ACM/Certificate.d.ts +1 -1
- package/lib/AWS/ApiGateway/Account.d.ts +1 -1
- package/lib/AWS/ApiGateway/ApiKey.d.ts +2 -2
- package/lib/AWS/ApiGateway/ApiKey.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/ApiKey.js +3 -3
- package/lib/AWS/ApiGateway/ApiKey.js.map +1 -1
- package/lib/AWS/ApiGateway/Authorizer.d.ts +1 -1
- package/lib/AWS/ApiGateway/BasePathMapping.d.ts +1 -1
- package/lib/AWS/ApiGateway/Deployment.d.ts +1 -1
- package/lib/AWS/ApiGateway/DomainName.d.ts +1 -1
- package/lib/AWS/ApiGateway/GatewayResource.d.ts +1 -1
- package/lib/AWS/ApiGateway/GatewayResponse.d.ts +1 -1
- package/lib/AWS/ApiGateway/Method.d.ts +1 -1
- package/lib/AWS/ApiGateway/RestApi.d.ts +2 -2
- package/lib/AWS/ApiGateway/RestApi.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/RestApi.js +4 -4
- package/lib/AWS/ApiGateway/RestApi.js.map +1 -1
- package/lib/AWS/ApiGateway/Stage.d.ts +2 -2
- package/lib/AWS/ApiGateway/Stage.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/Stage.js +3 -3
- package/lib/AWS/ApiGateway/Stage.js.map +1 -1
- package/lib/AWS/ApiGateway/UsagePlan.d.ts +2 -2
- package/lib/AWS/ApiGateway/UsagePlan.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/UsagePlan.js +3 -3
- package/lib/AWS/ApiGateway/UsagePlan.js.map +1 -1
- package/lib/AWS/ApiGateway/UsagePlanKey.d.ts +1 -1
- package/lib/AWS/ApiGateway/VpcLink.d.ts +2 -2
- package/lib/AWS/ApiGateway/VpcLink.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/VpcLink.js +3 -3
- package/lib/AWS/ApiGateway/VpcLink.js.map +1 -1
- package/lib/AWS/ApiGateway/common.d.ts +1 -1
- package/lib/AWS/Assets.d.ts +21 -12
- package/lib/AWS/Assets.d.ts.map +1 -1
- package/lib/AWS/Assets.js +95 -70
- package/lib/AWS/Assets.js.map +1 -1
- package/lib/AWS/AuthProvider.d.ts +12 -6
- package/lib/AWS/AuthProvider.d.ts.map +1 -1
- package/lib/AWS/AuthProvider.js +120 -75
- package/lib/AWS/AuthProvider.js.map +1 -1
- package/lib/AWS/AutoScaling/AutoScalingGroup.d.ts +1 -1
- package/lib/AWS/AutoScaling/LaunchTemplate.d.ts +1 -2
- package/lib/AWS/AutoScaling/LaunchTemplate.d.ts.map +1 -1
- package/lib/AWS/AutoScaling/LaunchTemplate.js +21 -27
- package/lib/AWS/AutoScaling/LaunchTemplate.js.map +1 -1
- package/lib/AWS/AutoScaling/ScalingPolicy.d.ts +1 -1
- package/lib/AWS/Bootstrap.d.ts +2 -14
- package/lib/AWS/Bootstrap.d.ts.map +1 -1
- package/lib/AWS/Bootstrap.js +46 -133
- package/lib/AWS/Bootstrap.js.map +1 -1
- package/lib/AWS/CloudFront/CachePolicy.d.ts +1 -1
- package/lib/AWS/CloudFront/Distribution.d.ts +1 -1
- package/lib/AWS/CloudFront/Function.d.ts +1 -1
- package/lib/AWS/CloudFront/Invalidation.d.ts +1 -1
- package/lib/AWS/CloudFront/KeyGroup.d.ts +1 -1
- package/lib/AWS/CloudFront/KeyValueStore.d.ts +1 -1
- package/lib/AWS/CloudFront/OriginAccessControl.d.ts +1 -1
- package/lib/AWS/CloudFront/OriginRequestPolicy.d.ts +1 -1
- package/lib/AWS/CloudFront/PublicKey.d.ts +1 -1
- package/lib/AWS/CloudFront/ResponseHeadersPolicy.d.ts +1 -1
- package/lib/AWS/CloudFront/common.d.ts +1 -1
- package/lib/AWS/CloudWatch/Alarm.d.ts +2 -3
- package/lib/AWS/CloudWatch/Alarm.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/Alarm.js +3 -6
- package/lib/AWS/CloudWatch/Alarm.js.map +1 -1
- package/lib/AWS/CloudWatch/AlarmMuteRule.d.ts +2 -3
- package/lib/AWS/CloudWatch/AlarmMuteRule.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/AlarmMuteRule.js +2 -5
- package/lib/AWS/CloudWatch/AlarmMuteRule.js.map +1 -1
- package/lib/AWS/CloudWatch/AnomalyDetector.d.ts +1 -1
- package/lib/AWS/CloudWatch/CompositeAlarm.d.ts +2 -3
- package/lib/AWS/CloudWatch/CompositeAlarm.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/CompositeAlarm.js +3 -6
- package/lib/AWS/CloudWatch/CompositeAlarm.js.map +1 -1
- package/lib/AWS/CloudWatch/Dashboard.d.ts +2 -2
- package/lib/AWS/CloudWatch/Dashboard.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/Dashboard.js +3 -4
- package/lib/AWS/CloudWatch/Dashboard.js.map +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarmContributors.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarmHistory.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarms.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarmsForMetric.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAnomalyDetectors.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeInsightRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/DisableAlarmActions.d.ts +1 -1
- package/lib/AWS/CloudWatch/DisableInsightRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/EnableAlarmActions.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetAlarmMuteRule.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetDashboard.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetInsightRuleReport.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricData.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricStatistics.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricStream.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricWidgetImage.d.ts +1 -1
- package/lib/AWS/CloudWatch/InsightRule.d.ts +2 -3
- package/lib/AWS/CloudWatch/InsightRule.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/InsightRule.js +4 -7
- package/lib/AWS/CloudWatch/InsightRule.js.map +1 -1
- package/lib/AWS/CloudWatch/ListAlarmMuteRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListDashboards.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListManagedInsightRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListMetricStreams.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListMetrics.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListTagsForResource.d.ts +1 -1
- package/lib/AWS/CloudWatch/MetricStream.d.ts +2 -3
- package/lib/AWS/CloudWatch/MetricStream.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/MetricStream.js +3 -6
- package/lib/AWS/CloudWatch/MetricStream.js.map +1 -1
- package/lib/AWS/CloudWatch/PutMetricData.d.ts +1 -1
- package/lib/AWS/CloudWatch/SetAlarmState.d.ts +1 -1
- package/lib/AWS/CloudWatch/common.d.ts +2 -2
- package/lib/AWS/Credentials.d.ts.map +1 -1
- package/lib/AWS/Credentials.js +4 -1
- package/lib/AWS/Credentials.js.map +1 -1
- package/lib/AWS/DynamoDB/BatchExecuteStatement.d.ts +1 -1
- package/lib/AWS/DynamoDB/BatchGetItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/BatchWriteItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/DeleteItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/DescribeTable.d.ts +1 -1
- package/lib/AWS/DynamoDB/DescribeTimeToLive.d.ts +1 -1
- package/lib/AWS/DynamoDB/ExecuteStatement.d.ts +1 -1
- package/lib/AWS/DynamoDB/ExecuteTransaction.d.ts +1 -1
- package/lib/AWS/DynamoDB/GetItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/ListTables.d.ts +1 -1
- package/lib/AWS/DynamoDB/ListTagsOfResource.d.ts +1 -1
- package/lib/AWS/DynamoDB/PutItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/Query.d.ts +1 -1
- package/lib/AWS/DynamoDB/RestoreTableToPointInTime.d.ts +1 -1
- package/lib/AWS/DynamoDB/Scan.d.ts +1 -1
- package/lib/AWS/DynamoDB/Table.d.ts +1 -1
- package/lib/AWS/DynamoDB/TransactGetItems.d.ts +1 -1
- package/lib/AWS/DynamoDB/TransactWriteItems.d.ts +1 -1
- package/lib/AWS/DynamoDB/UpdateItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/UpdateTimeToLive.d.ts +1 -1
- package/lib/AWS/EC2/EIP.d.ts +2 -3
- package/lib/AWS/EC2/EIP.d.ts.map +1 -1
- package/lib/AWS/EC2/EIP.js +2 -3
- package/lib/AWS/EC2/EIP.js.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.d.ts +2 -3
- package/lib/AWS/EC2/EgressOnlyInternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js +5 -8
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js.map +1 -1
- package/lib/AWS/EC2/Image.d.ts +6 -6
- package/lib/AWS/EC2/Instance.d.ts +2 -2
- package/lib/AWS/EC2/Instance.d.ts.map +1 -1
- package/lib/AWS/EC2/Instance.js +30 -36
- package/lib/AWS/EC2/Instance.js.map +1 -1
- package/lib/AWS/EC2/InternetGateway.d.ts +2 -4
- package/lib/AWS/EC2/InternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/InternetGateway.js +2 -4
- package/lib/AWS/EC2/InternetGateway.js.map +1 -1
- package/lib/AWS/EC2/NatGateway.d.ts +2 -3
- package/lib/AWS/EC2/NatGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/NatGateway.js +6 -8
- package/lib/AWS/EC2/NatGateway.js.map +1 -1
- package/lib/AWS/EC2/Network.d.ts +2 -2
- package/lib/AWS/EC2/Network.d.ts.map +1 -1
- package/lib/AWS/EC2/Network.js +2 -2
- package/lib/AWS/EC2/Network.js.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.d.ts +2 -3
- package/lib/AWS/EC2/NetworkAcl.d.ts.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.js +36 -36
- package/lib/AWS/EC2/NetworkAcl.js.map +1 -1
- package/lib/AWS/EC2/NetworkAclAssociation.d.ts +1 -1
- package/lib/AWS/EC2/NetworkAclEntry.d.ts +1 -1
- package/lib/AWS/EC2/Route.d.ts +1 -1
- package/lib/AWS/EC2/RouteTable.d.ts +2 -3
- package/lib/AWS/EC2/RouteTable.d.ts.map +1 -1
- package/lib/AWS/EC2/RouteTable.js +2 -4
- package/lib/AWS/EC2/RouteTable.js.map +1 -1
- package/lib/AWS/EC2/RouteTableAssociation.d.ts +1 -1
- package/lib/AWS/EC2/SecurityGroup.d.ts +2 -3
- package/lib/AWS/EC2/SecurityGroup.d.ts.map +1 -1
- package/lib/AWS/EC2/SecurityGroup.js +40 -40
- package/lib/AWS/EC2/SecurityGroup.js.map +1 -1
- package/lib/AWS/EC2/SecurityGroupRule.d.ts +1 -1
- package/lib/AWS/EC2/Subnet.d.ts +1 -1
- package/lib/AWS/EC2/Vpc.d.ts +2 -3
- package/lib/AWS/EC2/Vpc.d.ts.map +1 -1
- package/lib/AWS/EC2/Vpc.js +1 -3
- package/lib/AWS/EC2/Vpc.js.map +1 -1
- package/lib/AWS/EC2/VpcEndpoint.d.ts +1 -2
- package/lib/AWS/EC2/VpcEndpoint.d.ts.map +1 -1
- package/lib/AWS/EC2/VpcEndpoint.js +44 -43
- package/lib/AWS/EC2/VpcEndpoint.js.map +1 -1
- package/lib/AWS/EC2/hosted.d.ts +3 -6
- package/lib/AWS/EC2/hosted.d.ts.map +1 -1
- package/lib/AWS/EC2/hosted.js +17 -18
- package/lib/AWS/EC2/hosted.js.map +1 -1
- package/lib/AWS/ECR/Repository.d.ts +1 -1
- package/lib/AWS/ECS/CapacityProvider.d.ts +1 -2
- package/lib/AWS/ECS/CapacityProvider.d.ts.map +1 -1
- package/lib/AWS/ECS/CapacityProvider.js +1 -3
- package/lib/AWS/ECS/CapacityProvider.js.map +1 -1
- package/lib/AWS/ECS/Cluster.d.ts +2 -3
- package/lib/AWS/ECS/Cluster.d.ts.map +1 -1
- package/lib/AWS/ECS/Cluster.js +1 -3
- package/lib/AWS/ECS/Cluster.js.map +1 -1
- package/lib/AWS/ECS/DescribeTasks.d.ts +1 -1
- package/lib/AWS/ECS/ListTasks.d.ts +1 -1
- package/lib/AWS/ECS/RunTask.d.ts +1 -1
- package/lib/AWS/ECS/Service.d.ts +1 -1
- package/lib/AWS/ECS/StopTask.d.ts +1 -1
- package/lib/AWS/ECS/Task.d.ts +2 -2
- package/lib/AWS/ECS/Task.d.ts.map +1 -1
- package/lib/AWS/ECS/Task.js +2 -2
- package/lib/AWS/ECS/Task.js.map +1 -1
- package/lib/AWS/EKS/AccessEntry.d.ts +1 -1
- package/lib/AWS/EKS/Addon.d.ts +1 -1
- package/lib/AWS/EKS/Cluster.d.ts +1 -1
- package/lib/AWS/EKS/Cluster.d.ts.map +1 -1
- package/lib/AWS/EKS/PodIdentityAssociation.d.ts +1 -1
- package/lib/AWS/ELBv2/Listener.d.ts +1 -1
- package/lib/AWS/ELBv2/LoadBalancer.d.ts +1 -1
- package/lib/AWS/ELBv2/TargetGroup.d.ts +1 -1
- package/lib/AWS/Endpoint.d.ts.map +1 -1
- package/lib/AWS/Endpoint.js +5 -2
- package/lib/AWS/Endpoint.js.map +1 -1
- package/lib/AWS/Environment.d.ts +6 -50
- package/lib/AWS/Environment.d.ts.map +1 -1
- package/lib/AWS/Environment.js +11 -80
- package/lib/AWS/Environment.js.map +1 -1
- package/lib/AWS/EventBridge/DescribeEventBus.d.ts +1 -1
- package/lib/AWS/EventBridge/DescribeRule.d.ts +1 -1
- package/lib/AWS/EventBridge/EventBus.d.ts +2 -3
- package/lib/AWS/EventBridge/EventBus.d.ts.map +1 -1
- package/lib/AWS/EventBridge/EventBus.js +1 -3
- package/lib/AWS/EventBridge/EventBus.js.map +1 -1
- package/lib/AWS/EventBridge/ListEventBuses.d.ts +1 -1
- package/lib/AWS/EventBridge/ListRules.d.ts +2 -3
- package/lib/AWS/EventBridge/ListRules.d.ts.map +1 -1
- package/lib/AWS/EventBridge/ListRules.js +2 -3
- package/lib/AWS/EventBridge/ListRules.js.map +1 -1
- package/lib/AWS/EventBridge/ListTargetsByRule.d.ts +1 -1
- package/lib/AWS/EventBridge/Permission.d.ts +1 -1
- package/lib/AWS/EventBridge/PutEvents.d.ts +2 -3
- package/lib/AWS/EventBridge/PutEvents.d.ts.map +1 -1
- package/lib/AWS/EventBridge/PutEvents.js +2 -3
- package/lib/AWS/EventBridge/PutEvents.js.map +1 -1
- package/lib/AWS/EventBridge/Rule.d.ts +2 -3
- package/lib/AWS/EventBridge/Rule.d.ts.map +1 -1
- package/lib/AWS/EventBridge/Rule.js +2 -3
- package/lib/AWS/EventBridge/Rule.js.map +1 -1
- package/lib/AWS/EventBridge/TestEventPattern.d.ts +1 -1
- package/lib/AWS/IAM/AccessKey.d.ts +1 -1
- package/lib/AWS/IAM/AccountAlias.d.ts +1 -1
- package/lib/AWS/IAM/AccountPasswordPolicy.d.ts +1 -1
- package/lib/AWS/IAM/Group.d.ts +1 -1
- package/lib/AWS/IAM/GroupMembership.d.ts +1 -1
- package/lib/AWS/IAM/InstanceProfile.d.ts +1 -1
- package/lib/AWS/IAM/LoginProfile.d.ts +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.d.ts +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.d.ts.map +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.js +5 -4
- package/lib/AWS/IAM/OpenIDConnectProvider.js.map +1 -1
- package/lib/AWS/IAM/Policy.d.ts +1 -1
- package/lib/AWS/IAM/Policy.d.ts.map +1 -1
- package/lib/AWS/IAM/Policy.js +1 -1
- package/lib/AWS/IAM/Policy.js.map +1 -1
- package/lib/AWS/IAM/Role.d.ts +2 -2
- package/lib/AWS/IAM/Role.d.ts.map +1 -1
- package/lib/AWS/IAM/Role.js +1 -1
- package/lib/AWS/IAM/Role.js.map +1 -1
- package/lib/AWS/IAM/SAMLProvider.d.ts +2 -2
- package/lib/AWS/IAM/SAMLProvider.d.ts.map +1 -1
- package/lib/AWS/IAM/SAMLProvider.js +2 -2
- package/lib/AWS/IAM/SAMLProvider.js.map +1 -1
- package/lib/AWS/IAM/SSHPublicKey.d.ts +1 -1
- package/lib/AWS/IAM/ServerCertificate.d.ts +1 -1
- package/lib/AWS/IAM/ServiceSpecificCredential.d.ts +1 -1
- package/lib/AWS/IAM/SigningCertificate.d.ts +1 -1
- package/lib/AWS/IAM/User.d.ts +1 -1
- package/lib/AWS/IAM/VirtualMFADevice.d.ts +1 -1
- package/lib/AWS/IdentityCenter/AccountAssignment.d.ts +1 -1
- package/lib/AWS/IdentityCenter/Group.d.ts +1 -1
- package/lib/AWS/IdentityCenter/Instance.d.ts +1 -1
- package/lib/AWS/IdentityCenter/PermissionSet.d.ts +1 -1
- package/lib/AWS/IdentityCenter/common.d.ts +4 -4
- package/lib/AWS/Kinesis/DescribeAccountSettings.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeLimits.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeStream.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeStreamConsumer.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeStreamSummary.d.ts +1 -1
- package/lib/AWS/Kinesis/GetRecords.d.ts +1 -1
- package/lib/AWS/Kinesis/GetResourcePolicy.d.ts +1 -1
- package/lib/AWS/Kinesis/GetShardIterator.d.ts +1 -1
- package/lib/AWS/Kinesis/ListShards.d.ts +1 -1
- package/lib/AWS/Kinesis/ListStreamConsumers.d.ts +1 -1
- package/lib/AWS/Kinesis/ListStreams.d.ts +1 -1
- package/lib/AWS/Kinesis/ListTagsForResource.d.ts +1 -1
- package/lib/AWS/Kinesis/PutRecord.d.ts +1 -1
- package/lib/AWS/Kinesis/PutRecords.d.ts +1 -1
- package/lib/AWS/Kinesis/Stream.d.ts +2 -3
- package/lib/AWS/Kinesis/Stream.d.ts.map +1 -1
- package/lib/AWS/Kinesis/Stream.js +1 -3
- package/lib/AWS/Kinesis/Stream.js.map +1 -1
- package/lib/AWS/Kinesis/StreamConsumer.d.ts +1 -1
- package/lib/AWS/Kinesis/SubscribeToShard.d.ts +1 -1
- package/lib/AWS/Lambda/EventSourceMapping.d.ts +2 -3
- package/lib/AWS/Lambda/EventSourceMapping.d.ts.map +1 -1
- package/lib/AWS/Lambda/EventSourceMapping.js +1 -3
- package/lib/AWS/Lambda/EventSourceMapping.js.map +1 -1
- package/lib/AWS/Lambda/Function.d.ts +2 -2
- package/lib/AWS/Lambda/Function.d.ts.map +1 -1
- package/lib/AWS/Lambda/Function.js +9 -7
- package/lib/AWS/Lambda/Function.js.map +1 -1
- package/lib/AWS/Lambda/InvokeFunction.d.ts +1 -1
- package/lib/AWS/Lambda/Permission.d.ts +2 -2
- package/lib/AWS/Lambda/Permission.js +1 -1
- package/lib/AWS/Logs/LogGroup.d.ts +2 -3
- package/lib/AWS/Logs/LogGroup.d.ts.map +1 -1
- package/lib/AWS/Logs/LogGroup.js +1 -3
- package/lib/AWS/Logs/LogGroup.js.map +1 -1
- package/lib/AWS/Organizations/Account.d.ts +1 -1
- package/lib/AWS/Organizations/DelegatedAdministrator.d.ts +1 -1
- package/lib/AWS/Organizations/Organization.d.ts +1 -1
- package/lib/AWS/Organizations/OrganizationResourcePolicy.d.ts +1 -1
- package/lib/AWS/Organizations/OrganizationalUnit.d.ts +1 -1
- package/lib/AWS/Organizations/Policy.d.ts +1 -1
- package/lib/AWS/Organizations/PolicyAttachment.d.ts +1 -1
- package/lib/AWS/Organizations/Root.d.ts +1 -1
- package/lib/AWS/Organizations/RootPolicyType.d.ts +1 -1
- package/lib/AWS/Organizations/TrustedServiceAccess.d.ts +1 -1
- package/lib/AWS/Organizations/common.d.ts +2 -2
- package/lib/AWS/Providers.d.ts +3 -2
- package/lib/AWS/Providers.d.ts.map +1 -1
- package/lib/AWS/Providers.js +2 -2
- package/lib/AWS/Providers.js.map +1 -1
- package/lib/AWS/RDS/Connect.d.ts +1 -1
- package/lib/AWS/RDS/DBCluster.d.ts +1 -1
- package/lib/AWS/RDS/DBClusterEndpoint.d.ts +1 -1
- package/lib/AWS/RDS/DBClusterParameterGroup.d.ts +1 -1
- package/lib/AWS/RDS/DBInstance.d.ts +1 -1
- package/lib/AWS/RDS/DBParameterGroup.d.ts +1 -1
- package/lib/AWS/RDS/DBProxy.d.ts +1 -1
- package/lib/AWS/RDS/DBProxyEndpoint.d.ts +1 -1
- package/lib/AWS/RDS/DBProxyTargetGroup.d.ts +1 -1
- package/lib/AWS/RDS/DBSubnetGroup.d.ts +1 -1
- package/lib/AWS/RDSData/BatchExecuteStatement.d.ts +1 -1
- package/lib/AWS/RDSData/BeginTransaction.d.ts +1 -1
- package/lib/AWS/RDSData/CommitTransaction.d.ts +1 -1
- package/lib/AWS/RDSData/ExecuteSql.d.ts +1 -1
- package/lib/AWS/RDSData/ExecuteStatement.d.ts +1 -1
- package/lib/AWS/RDSData/RollbackTransaction.d.ts +1 -1
- package/lib/AWS/Region.d.ts +2 -0
- package/lib/AWS/Region.d.ts.map +1 -1
- package/lib/AWS/Region.js +8 -3
- package/lib/AWS/Region.js.map +1 -1
- package/lib/AWS/Route53/Record.d.ts +1 -1
- package/lib/AWS/S3/AbortMultipartUpload.d.ts +1 -1
- package/lib/AWS/S3/Bucket.d.ts +6 -3
- package/lib/AWS/S3/Bucket.d.ts.map +1 -1
- package/lib/AWS/S3/Bucket.js +3 -4
- package/lib/AWS/S3/Bucket.js.map +1 -1
- package/lib/AWS/S3/CompleteMultipartUpload.d.ts +1 -1
- package/lib/AWS/S3/CopyObject.d.ts +1 -1
- package/lib/AWS/S3/CreateMultipartUpload.d.ts +1 -1
- package/lib/AWS/S3/DeleteObject.d.ts +1 -1
- package/lib/AWS/S3/GetObject.d.ts +1 -1
- package/lib/AWS/S3/HeadObject.d.ts +1 -1
- package/lib/AWS/S3/ListObjectsV2.d.ts +1 -1
- package/lib/AWS/S3/PutObject.d.ts +1 -1
- package/lib/AWS/S3/UploadPart.d.ts +1 -1
- package/lib/AWS/SNS/AddPermission.d.ts +1 -1
- package/lib/AWS/SNS/ConfirmSubscription.d.ts +1 -1
- package/lib/AWS/SNS/GetDataProtectionPolicy.d.ts +1 -1
- package/lib/AWS/SNS/GetSubscriptionAttributes.d.ts +1 -1
- package/lib/AWS/SNS/GetTopicAttributes.d.ts +1 -1
- package/lib/AWS/SNS/ListSubscriptions.d.ts +1 -1
- package/lib/AWS/SNS/ListSubscriptionsByTopic.d.ts +1 -1
- package/lib/AWS/SNS/ListTagsForResource.d.ts +1 -1
- package/lib/AWS/SNS/ListTopics.d.ts +1 -1
- package/lib/AWS/SNS/Publish.d.ts +1 -1
- package/lib/AWS/SNS/PublishBatch.d.ts +1 -1
- package/lib/AWS/SNS/PutDataProtectionPolicy.d.ts +1 -1
- package/lib/AWS/SNS/RemovePermission.d.ts +1 -1
- package/lib/AWS/SNS/SetSubscriptionAttributes.d.ts +1 -1
- package/lib/AWS/SNS/SetTopicAttributes.d.ts +1 -1
- package/lib/AWS/SNS/Subscription.d.ts +1 -1
- package/lib/AWS/SNS/TagResource.d.ts +1 -1
- package/lib/AWS/SNS/Topic.d.ts +1 -1
- package/lib/AWS/SNS/UntagResource.d.ts +1 -1
- package/lib/AWS/SQS/DeleteMessage.d.ts +1 -1
- package/lib/AWS/SQS/DeleteMessageBatch.d.ts +1 -1
- package/lib/AWS/SQS/Queue.d.ts +1 -2
- package/lib/AWS/SQS/Queue.d.ts.map +1 -1
- package/lib/AWS/SQS/Queue.js +2 -3
- package/lib/AWS/SQS/Queue.js.map +1 -1
- package/lib/AWS/SQS/ReceiveMessage.d.ts +1 -1
- package/lib/AWS/SQS/SendMessage.d.ts +1 -1
- package/lib/AWS/SQS/SendMessageBatch.d.ts +1 -1
- package/lib/AWS/Scheduler/Schedule.d.ts +1 -1
- package/lib/AWS/Scheduler/ScheduleGroup.d.ts +1 -1
- package/lib/AWS/SecretsManager/DescribeSecret.d.ts +1 -1
- package/lib/AWS/SecretsManager/GetRandomPassword.d.ts +1 -1
- package/lib/AWS/SecretsManager/GetSecretValue.d.ts +1 -1
- package/lib/AWS/SecretsManager/ListSecrets.d.ts +1 -1
- package/lib/AWS/SecretsManager/PutSecretValue.d.ts +1 -1
- package/lib/AWS/SecretsManager/Secret.d.ts +1 -1
- package/lib/AWS/Website/AssetDeployment.d.ts +1 -1
- package/lib/AWS/index.d.ts +0 -1
- package/lib/AWS/index.d.ts.map +1 -1
- package/lib/AWS/index.js +0 -1
- package/lib/AWS/index.js.map +1 -1
- package/lib/Auth/Profile.d.ts +10 -10
- package/lib/Auth/Profile.d.ts.map +1 -1
- package/lib/Auth/Profile.js +4 -4
- package/lib/Auth/Profile.js.map +1 -1
- package/lib/Axiom/Credentials.d.ts +2 -3
- package/lib/Axiom/Credentials.d.ts.map +1 -1
- package/lib/Axiom/Credentials.js +3 -3
- package/lib/Axiom/Credentials.js.map +1 -1
- package/lib/Axiom/Dataset.js +1 -1
- package/lib/Axiom/Dataset.js.map +1 -1
- package/lib/Axiom/Providers.d.ts +1 -1
- package/lib/Axiom/Providers.d.ts.map +1 -1
- package/lib/Axiom/Providers.js +1 -1
- package/lib/Axiom/Providers.js.map +1 -1
- package/lib/Binding.d.ts +2 -2
- package/lib/Binding.d.ts.map +1 -1
- package/lib/Binding.js.map +1 -1
- package/lib/Cli/commands/_shared.d.ts +3 -3
- package/lib/Cli/commands/_shared.d.ts.map +1 -1
- package/lib/Cli/commands/_shared.js.map +1 -1
- package/lib/Cli/commands/aws.d.ts +1 -1
- package/lib/Cli/commands/aws.d.ts.map +1 -1
- package/lib/Cli/commands/aws.js +3 -3
- package/lib/Cli/commands/aws.js.map +1 -1
- package/lib/Cli/commands/cloudflare.js +1 -1
- package/lib/Cli/commands/cloudflare.js.map +1 -1
- package/lib/Cli/commands/deploy.d.ts +4 -4
- package/lib/Cli/commands/deploy.d.ts.map +1 -1
- package/lib/Cli/commands/login.d.ts +2 -3
- package/lib/Cli/commands/login.d.ts.map +1 -1
- package/lib/Cli/commands/login.js +6 -15
- package/lib/Cli/commands/login.js.map +1 -1
- package/lib/Cli/commands/logs.d.ts +1 -1
- package/lib/Cli/commands/logs.d.ts.map +1 -1
- package/lib/Cli/commands/profile.js +3 -3
- package/lib/Cli/commands/profile.js.map +1 -1
- package/lib/Cli/commands/tail.d.ts +1 -1
- package/lib/Cli/commands/tail.d.ts.map +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.d.ts.map +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.js +185 -180
- package/lib/Cloudflare/AiGateway/AiGateway.js.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.d.ts.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.js +103 -102
- 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 +77 -81
- package/lib/Cloudflare/ApiToken/UserApiToken.js.map +1 -1
- package/lib/Cloudflare/CloudflareEnvironment.d.ts +4 -3
- package/lib/Cloudflare/CloudflareEnvironment.d.ts.map +1 -1
- package/lib/Cloudflare/CloudflareEnvironment.js +3 -4
- package/lib/Cloudflare/CloudflareEnvironment.js.map +1 -1
- package/lib/Cloudflare/Container/ContainerApplication.d.ts.map +1 -1
- package/lib/Cloudflare/Container/ContainerApplication.js +18 -18
- package/lib/Cloudflare/Container/ContainerApplication.js.map +1 -1
- package/lib/Cloudflare/Credentials.d.ts +2 -2
- package/lib/Cloudflare/Credentials.d.ts.map +1 -1
- package/lib/Cloudflare/Credentials.js +2 -2
- package/lib/Cloudflare/Credentials.js.map +1 -1
- package/lib/Cloudflare/D1/D1Database.d.ts +3 -1
- package/lib/Cloudflare/D1/D1Database.d.ts.map +1 -1
- package/lib/Cloudflare/D1/D1Database.js +205 -201
- package/lib/Cloudflare/D1/D1Database.js.map +1 -1
- package/lib/Cloudflare/EdgeSession.d.ts.map +1 -1
- package/lib/Cloudflare/EdgeSession.js +6 -5
- package/lib/Cloudflare/EdgeSession.js.map +1 -1
- package/lib/Cloudflare/Email/EmailAddress.d.ts.map +1 -1
- package/lib/Cloudflare/Email/EmailAddress.js +69 -61
- package/lib/Cloudflare/Email/EmailAddress.js.map +1 -1
- package/lib/Cloudflare/Email/EmailRouting.d.ts.map +1 -1
- package/lib/Cloudflare/Email/EmailRouting.js +63 -56
- package/lib/Cloudflare/Email/EmailRouting.js.map +1 -1
- package/lib/Cloudflare/Email/EmailRule.d.ts.map +1 -1
- package/lib/Cloudflare/Email/EmailRule.js +67 -63
- package/lib/Cloudflare/Email/EmailRule.js.map +1 -1
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.d.ts.map +1 -1
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.js +140 -138
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.js.map +1 -1
- package/lib/Cloudflare/KV/KVNamespace.d.ts.map +1 -1
- package/lib/Cloudflare/KV/KVNamespace.js +115 -108
- package/lib/Cloudflare/KV/KVNamespace.js.map +1 -1
- package/lib/Cloudflare/Local.js +5 -2
- package/lib/Cloudflare/Local.js.map +1 -1
- package/lib/Cloudflare/LocalRuntime.d.ts +21 -0
- package/lib/Cloudflare/LocalRuntime.d.ts.map +1 -0
- package/lib/Cloudflare/LocalRuntime.js +40 -0
- package/lib/Cloudflare/LocalRuntime.js.map +1 -0
- package/lib/Cloudflare/Providers.d.ts +1 -1
- package/lib/Cloudflare/Providers.d.ts.map +1 -1
- package/lib/Cloudflare/Providers.js +2 -1
- package/lib/Cloudflare/Providers.js.map +1 -1
- package/lib/Cloudflare/Queue/Queue.d.ts +4 -1
- package/lib/Cloudflare/Queue/Queue.d.ts.map +1 -1
- package/lib/Cloudflare/Queue/Queue.js +154 -87
- package/lib/Cloudflare/Queue/Queue.js.map +1 -1
- package/lib/Cloudflare/Queue/QueueConsumer.d.ts +32 -26
- package/lib/Cloudflare/Queue/QueueConsumer.d.ts.map +1 -1
- package/lib/Cloudflare/Queue/QueueConsumer.js +323 -243
- package/lib/Cloudflare/Queue/QueueConsumer.js.map +1 -1
- package/lib/Cloudflare/R2/R2Bucket.d.ts.map +1 -1
- package/lib/Cloudflare/R2/R2Bucket.js +101 -66
- package/lib/Cloudflare/R2/R2Bucket.js.map +1 -1
- package/lib/Cloudflare/Ruleset/Ruleset.d.ts.map +1 -1
- package/lib/Cloudflare/Ruleset/Ruleset.js +81 -81
- package/lib/Cloudflare/Ruleset/Ruleset.js.map +1 -1
- package/lib/Cloudflare/SecretsStore/Secret.d.ts.map +1 -1
- package/lib/Cloudflare/SecretsStore/Secret.js +144 -143
- package/lib/Cloudflare/SecretsStore/Secret.js.map +1 -1
- package/lib/Cloudflare/SecretsStore/SecretsStore.d.ts.map +1 -1
- package/lib/Cloudflare/SecretsStore/SecretsStore.js +74 -75
- package/lib/Cloudflare/SecretsStore/SecretsStore.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/StateStore/State.js +3 -3
- package/lib/Cloudflare/StateStore/State.js.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.js +166 -158
- package/lib/Cloudflare/Tunnel/Tunnel.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelBinding.d.ts +2 -2
- package/lib/Cloudflare/Tunnel/TunnelBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelBinding.js +10 -11
- package/lib/Cloudflare/Tunnel/TunnelBinding.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelRead.d.ts +4 -3
- package/lib/Cloudflare/Tunnel/TunnelRead.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelRead.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelReadWrite.d.ts +4 -3
- package/lib/Cloudflare/Tunnel/TunnelReadWrite.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelReadWrite.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelWrite.d.ts +4 -3
- package/lib/Cloudflare/Tunnel/TunnelWrite.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelWrite.js.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeIndex.d.ts.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js +79 -75
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.d.ts.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.js +85 -82
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.js.map +1 -1
- package/lib/Cloudflare/VpcService/VpcService.d.ts.map +1 -1
- package/lib/Cloudflare/VpcService/VpcService.js +112 -106
- package/lib/Cloudflare/VpcService/VpcService.js.map +1 -1
- package/lib/Cloudflare/VpcService/VpcServiceRef.js +1 -1
- package/lib/Cloudflare/VpcService/VpcServiceRef.js.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts +3 -5
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js +34 -26
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/Worker.d.ts +3 -5
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js +116 -68
- package/lib/Cloudflare/Workers/Worker.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +2 -14
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/Workflow.js +6 -6
- package/lib/Cloudflare/Workers/Workflow.js.map +1 -1
- package/lib/Cloudflare/Zaraz/ZarazConfig.d.ts.map +1 -1
- package/lib/Cloudflare/Zaraz/ZarazConfig.js +68 -75
- package/lib/Cloudflare/Zaraz/ZarazConfig.js.map +1 -1
- package/lib/Cloudflare/Zone/Zone.d.ts.map +1 -1
- package/lib/Cloudflare/Zone/Zone.js +18 -13
- package/lib/Cloudflare/Zone/Zone.js.map +1 -1
- package/lib/GitHub/Comment.d.ts +1 -6
- package/lib/GitHub/Comment.d.ts.map +1 -1
- package/lib/GitHub/Comment.js +3 -9
- package/lib/GitHub/Comment.js.map +1 -1
- package/lib/GitHub/Credentials.d.ts +4 -3
- package/lib/GitHub/Credentials.d.ts.map +1 -1
- package/lib/GitHub/Credentials.js +5 -5
- package/lib/GitHub/Credentials.js.map +1 -1
- package/lib/GitHub/Octokit.d.ts +5 -0
- package/lib/GitHub/Octokit.d.ts.map +1 -0
- package/lib/GitHub/Octokit.js +7 -0
- package/lib/GitHub/Octokit.js.map +1 -0
- package/lib/GitHub/Providers.d.ts +1 -1
- package/lib/GitHub/Providers.d.ts.map +1 -1
- package/lib/GitHub/Secret.d.ts +1 -2
- package/lib/GitHub/Secret.d.ts.map +1 -1
- package/lib/GitHub/Secret.js +8 -12
- package/lib/GitHub/Secret.js.map +1 -1
- package/lib/GitHub/Variable.d.ts +1 -2
- package/lib/GitHub/Variable.d.ts.map +1 -1
- package/lib/GitHub/Variable.js +3 -7
- package/lib/GitHub/Variable.js.map +1 -1
- package/lib/Kubernetes/client.d.ts +11 -11
- package/lib/Kubernetes/client.d.ts.map +1 -1
- package/lib/Kubernetes/client.js +2 -2
- package/lib/Kubernetes/client.js.map +1 -1
- package/lib/Local/ProviderLayer.d.ts +10 -0
- package/lib/Local/ProviderLayer.d.ts.map +1 -0
- package/lib/Local/ProviderLayer.js +7 -0
- package/lib/Local/ProviderLayer.js.map +1 -0
- package/lib/Local/RpcProvider.d.ts.map +1 -1
- package/lib/Local/RpcProvider.js +2 -1
- package/lib/Local/RpcProvider.js.map +1 -1
- package/lib/Local/RpcProviderProxy.js.map +1 -1
- package/lib/Local/RpcSerialization.js +2 -2
- package/lib/Local/RpcSerialization.js.map +1 -1
- package/lib/Local/RpcServerEnvironment.d.ts +2 -2
- package/lib/Local/RpcServerEnvironment.d.ts.map +1 -1
- package/lib/Neon/AuthProvider.d.ts +2 -2
- package/lib/Neon/AuthProvider.d.ts.map +1 -1
- package/lib/Neon/AuthProvider.js +2 -2
- package/lib/Neon/AuthProvider.js.map +1 -1
- package/lib/Neon/Branch.d.ts.map +1 -1
- package/lib/Neon/Branch.js +213 -215
- package/lib/Neon/Branch.js.map +1 -1
- package/lib/Neon/Credentials.d.ts +2 -3
- package/lib/Neon/Credentials.d.ts.map +1 -1
- package/lib/Neon/Credentials.js +3 -3
- package/lib/Neon/Credentials.js.map +1 -1
- package/lib/Neon/Project.d.ts +22 -22
- package/lib/Neon/Project.d.ts.map +1 -1
- package/lib/Neon/Project.js +263 -266
- package/lib/Neon/Project.js.map +1 -1
- package/lib/Neon/Providers.d.ts +2 -4
- package/lib/Neon/Providers.d.ts.map +1 -1
- package/lib/Neon/Providers.js +1 -3
- package/lib/Neon/Providers.js.map +1 -1
- package/lib/Neon/index.d.ts +0 -1
- package/lib/Neon/index.d.ts.map +1 -1
- package/lib/Neon/index.js +0 -1
- package/lib/Neon/index.js.map +1 -1
- package/lib/Output.d.ts +2 -1
- package/lib/Output.d.ts.map +1 -1
- package/lib/Output.js +7 -3
- package/lib/Output.js.map +1 -1
- package/lib/Plan.d.ts.map +1 -1
- package/lib/Plan.js +14 -6
- package/lib/Plan.js.map +1 -1
- package/lib/Planetscale/Branch.d.ts +1 -2
- package/lib/Planetscale/Branch.d.ts.map +1 -1
- package/lib/Planetscale/Branch.js +252 -235
- package/lib/Planetscale/Branch.js.map +1 -1
- package/lib/Planetscale/Credentials.d.ts +2 -3
- package/lib/Planetscale/Credentials.d.ts.map +1 -1
- package/lib/Planetscale/Credentials.js +6 -6
- package/lib/Planetscale/Credentials.js.map +1 -1
- package/lib/Planetscale/Database.d.ts +1 -1
- package/lib/Planetscale/MySQL/MySQLBranch.d.ts +1 -1
- package/lib/Planetscale/MySQL/MySQLBranch.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLClusterSize.d.ts +2 -2
- package/lib/Planetscale/MySQL/MySQLClusterSize.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.d.ts +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.js +215 -215
- package/lib/Planetscale/MySQL/MySQLDatabase.js.map +1 -1
- package/lib/Planetscale/MySQL/MySQLMigrations.d.ts +2 -2
- package/lib/Planetscale/MySQL/MySQLMigrations.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLPassword.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLPassword.js +145 -145
- package/lib/Planetscale/MySQL/MySQLPassword.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresBranch.d.ts +1 -1
- package/lib/Planetscale/Postgres/PostgresBranch.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresClusterSize.d.ts +3 -2
- package/lib/Planetscale/Postgres/PostgresClusterSize.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresClusterSize.js +16 -6
- package/lib/Planetscale/Postgres/PostgresClusterSize.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDatabase.d.ts +1 -1
- package/lib/Planetscale/Postgres/PostgresDatabase.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDatabase.js +220 -218
- package/lib/Planetscale/Postgres/PostgresDatabase.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDefaultRole.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDefaultRole.js +123 -121
- package/lib/Planetscale/Postgres/PostgresDefaultRole.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresMigrations.d.ts +2 -2
- package/lib/Planetscale/Postgres/PostgresMigrations.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresRole.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresRole.js +159 -160
- package/lib/Planetscale/Postgres/PostgresRole.js.map +1 -1
- package/lib/Planetscale/Providers.d.ts +1 -2
- package/lib/Planetscale/Providers.d.ts.map +1 -1
- package/lib/Planetscale/Providers.js.map +1 -1
- package/lib/Planetscale/Util.d.ts +3 -3
- package/lib/Planetscale/Util.d.ts.map +1 -1
- package/lib/Planetscale/Util.js +7 -5
- package/lib/Planetscale/Util.js.map +1 -1
- package/lib/Server/S3BucketEventSource.d.ts +1 -1
- package/lib/Server/S3BucketEventSource.d.ts.map +1 -1
- package/lib/Server/SQSQueueEventSource.d.ts +2 -2
- package/lib/Server/SQSQueueEventSource.d.ts.map +1 -1
- package/lib/Server/SQSQueueEventSource.js +3 -2
- package/lib/Server/SQSQueueEventSource.js.map +1 -1
- package/lib/Stack.d.ts +4 -4
- package/lib/Stack.d.ts.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +14 -13
- package/src/AWS/ApiGateway/ApiKey.ts +4 -5
- package/src/AWS/ApiGateway/RestApi.ts +5 -6
- package/src/AWS/ApiGateway/Stage.ts +4 -5
- package/src/AWS/ApiGateway/UsagePlan.ts +4 -5
- package/src/AWS/ApiGateway/VpcLink.ts +4 -6
- package/src/AWS/Assets.ts +161 -108
- package/src/AWS/AuthProvider.ts +221 -124
- package/src/AWS/AutoScaling/LaunchTemplate.ts +31 -32
- package/src/AWS/Bootstrap.ts +66 -195
- package/src/AWS/CloudWatch/Alarm.ts +9 -8
- package/src/AWS/CloudWatch/AlarmMuteRule.ts +8 -7
- package/src/AWS/CloudWatch/CompositeAlarm.ts +9 -8
- package/src/AWS/CloudWatch/Dashboard.ts +9 -6
- package/src/AWS/CloudWatch/InsightRule.ts +10 -9
- package/src/AWS/CloudWatch/MetricStream.ts +9 -7
- package/src/AWS/Credentials.ts +4 -1
- package/src/AWS/EC2/EIP.ts +5 -5
- package/src/AWS/EC2/EgressOnlyInternetGateway.ts +20 -17
- package/src/AWS/EC2/Instance.ts +42 -41
- package/src/AWS/EC2/InternetGateway.ts +4 -8
- package/src/AWS/EC2/NatGateway.ts +10 -11
- package/src/AWS/EC2/Network.ts +2 -2
- package/src/AWS/EC2/NetworkAcl.ts +38 -39
- package/src/AWS/EC2/RouteTable.ts +3 -6
- package/src/AWS/EC2/SecurityGroup.ts +43 -44
- package/src/AWS/EC2/Vpc.ts +2 -5
- package/src/AWS/EC2/VpcEndpoint.ts +47 -47
- package/src/AWS/EC2/hosted.ts +19 -33
- package/src/AWS/ECS/CapacityProvider.ts +1 -3
- package/src/AWS/ECS/Cluster.ts +2 -5
- package/src/AWS/ECS/Task.ts +4 -3
- package/src/AWS/Endpoint.ts +12 -6
- package/src/AWS/Environment.ts +22 -120
- package/src/AWS/EventBridge/EventBus.ts +2 -5
- package/src/AWS/EventBridge/ListRules.ts +2 -5
- package/src/AWS/EventBridge/PutEvents.ts +2 -3
- package/src/AWS/EventBridge/Rule.ts +3 -5
- package/src/AWS/IAM/OpenIDConnectProvider.ts +10 -4
- package/src/AWS/IAM/Policy.ts +1 -2
- package/src/AWS/IAM/Role.ts +2 -2
- package/src/AWS/IAM/SAMLProvider.ts +3 -3
- package/src/AWS/Kinesis/Stream.ts +2 -5
- package/src/AWS/Lambda/EventSourceMapping.ts +2 -5
- package/src/AWS/Lambda/Function.ts +10 -8
- package/src/AWS/Lambda/Permission.ts +1 -1
- package/src/AWS/Logs/LogGroup.ts +2 -5
- package/src/AWS/Providers.ts +2 -2
- package/src/AWS/Region.ts +15 -3
- package/src/AWS/S3/Bucket.ts +15 -15
- package/src/AWS/SQS/Queue.ts +2 -3
- package/src/AWS/index.ts +0 -1
- package/src/Auth/Profile.ts +13 -12
- package/src/Axiom/Credentials.ts +4 -2
- package/src/Axiom/Dataset.ts +1 -1
- package/src/Axiom/Providers.ts +1 -1
- package/src/Binding.ts +2 -5
- package/src/Cli/commands/_shared.ts +2 -2
- package/src/Cli/commands/aws.ts +12 -9
- package/src/Cli/commands/cloudflare.ts +1 -1
- package/src/Cli/commands/login.ts +6 -22
- package/src/Cli/commands/profile.ts +3 -3
- package/src/Cloudflare/AiGateway/AiGateway.ts +219 -218
- package/src/Cloudflare/ApiToken/AccountApiToken.ts +142 -153
- package/src/Cloudflare/ApiToken/UserApiToken.ts +105 -121
- package/src/Cloudflare/CloudflareEnvironment.ts +10 -5
- package/src/Cloudflare/Container/ContainerApplication.ts +32 -29
- package/src/Cloudflare/Credentials.ts +2 -2
- package/src/Cloudflare/D1/D1Database.ts +268 -263
- package/src/Cloudflare/EdgeSession.ts +6 -5
- package/src/Cloudflare/Email/EmailAddress.ts +74 -71
- package/src/Cloudflare/Email/EmailRouting.ts +73 -75
- package/src/Cloudflare/Email/EmailRule.ts +79 -80
- package/src/Cloudflare/Hyperdrive/Hyperdrive.ts +156 -161
- package/src/Cloudflare/KV/KVNamespace.ts +139 -138
- package/src/Cloudflare/Local.ts +9 -5
- package/src/Cloudflare/LocalRuntime.ts +70 -0
- package/src/Cloudflare/Providers.ts +2 -0
- package/src/Cloudflare/Queue/Queue.ts +184 -110
- package/src/Cloudflare/Queue/QueueConsumer.ts +452 -346
- package/src/Cloudflare/R2/R2Bucket.ts +200 -165
- package/src/Cloudflare/Ruleset/Ruleset.ts +93 -98
- package/src/Cloudflare/SecretsStore/Secret.ts +187 -194
- package/src/Cloudflare/SecretsStore/SecretsStore.ts +82 -87
- package/src/Cloudflare/StateStore/State.ts +5 -3
- package/src/Cloudflare/Tunnel/Tunnel.ts +187 -186
- package/src/Cloudflare/Tunnel/TunnelBinding.ts +16 -9
- package/src/Cloudflare/Tunnel/TunnelRead.ts +3 -2
- package/src/Cloudflare/Tunnel/TunnelReadWrite.ts +7 -2
- package/src/Cloudflare/Tunnel/TunnelWrite.ts +3 -2
- package/src/Cloudflare/Vectorize/VectorizeIndex.ts +98 -98
- package/src/Cloudflare/Vectorize/VectorizeMetadataIndex.ts +97 -109
- package/src/Cloudflare/VpcService/VpcService.ts +126 -125
- package/src/Cloudflare/VpcService/VpcServiceRef.ts +1 -1
- package/src/Cloudflare/Workers/LocalWorkerProvider.ts +41 -31
- package/src/Cloudflare/Workers/Worker.ts +328 -295
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +7 -21
- package/src/Cloudflare/Workers/Workflow.ts +8 -8
- package/src/Cloudflare/Zaraz/ZarazConfig.ts +87 -99
- package/src/Cloudflare/Zone/Zone.ts +36 -33
- package/src/GitHub/Comment.ts +3 -20
- package/src/GitHub/Credentials.ts +9 -5
- package/src/GitHub/Octokit.ts +9 -0
- package/src/GitHub/Secret.ts +8 -21
- package/src/GitHub/Variable.ts +3 -8
- package/src/Kubernetes/client.ts +2 -2
- package/src/Local/ProviderLayer.ts +22 -0
- package/src/Local/RpcProvider.ts +2 -0
- package/src/Local/RpcProviderProxy.ts +2 -2
- package/src/Local/RpcSerialization.ts +2 -2
- package/src/Neon/AuthProvider.ts +2 -2
- package/src/Neon/Branch.ts +264 -272
- package/src/Neon/Credentials.ts +4 -2
- package/src/Neon/Project.ts +372 -378
- package/src/Neon/Providers.ts +0 -6
- package/src/Neon/index.ts +0 -1
- package/src/Output.ts +8 -4
- package/src/Plan.ts +15 -7
- package/src/Planetscale/Branch.ts +346 -328
- package/src/Planetscale/Credentials.ts +20 -15
- package/src/Planetscale/Database.ts +1 -1
- package/src/Planetscale/MySQL/MySQLDatabase.ts +269 -280
- package/src/Planetscale/MySQL/MySQLPassword.ts +161 -168
- package/src/Planetscale/Postgres/PostgresClusterSize.ts +19 -5
- package/src/Planetscale/Postgres/PostgresDatabase.ts +287 -296
- package/src/Planetscale/Postgres/PostgresDefaultRole.ts +143 -146
- package/src/Planetscale/Postgres/PostgresRole.ts +188 -195
- package/src/Planetscale/Providers.ts +2 -7
- package/src/Planetscale/Util.ts +7 -5
- package/src/Server/SQSQueueEventSource.ts +3 -2
- package/src/Stack.ts +3 -3
- package/bin/alchemy.sh +0 -15
- package/lib/AWS/Context.d.ts +0 -8
- package/lib/AWS/Context.d.ts.map +0 -1
- package/lib/AWS/Context.js +0 -16
- package/lib/AWS/Context.js.map +0 -1
- package/lib/Neon/NeonEnvironment.d.ts +0 -11
- package/lib/Neon/NeonEnvironment.d.ts.map +0 -1
- package/lib/Neon/NeonEnvironment.js +0 -18
- package/lib/Neon/NeonEnvironment.js.map +0 -1
- package/src/AWS/Context.ts +0 -30
- package/src/Neon/NeonEnvironment.ts +0 -32
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import type * as cf from "@cloudflare/workers-types";
|
|
2
2
|
import * as workers from "@distilled.cloud/cloudflare/workers";
|
|
3
3
|
import * as zones from "@distilled.cloud/cloudflare/zones";
|
|
4
|
+
import type * as Config from "effect/Config";
|
|
4
5
|
import type { ConfigError } from "effect/Config";
|
|
5
|
-
import * as Config from "effect/Config";
|
|
6
6
|
import * as Context from "effect/Context";
|
|
7
7
|
import * as Data from "effect/Data";
|
|
8
8
|
import * as Effect from "effect/Effect";
|
|
9
|
-
import * as Layer from "effect/Layer";
|
|
10
9
|
import * as Path from "effect/Path";
|
|
11
10
|
import * as Predicate from "effect/Predicate";
|
|
12
11
|
import * as Redacted from "effect/Redacted";
|
|
13
12
|
import * as Schedule from "effect/Schedule";
|
|
14
13
|
import * as crypto from "node:crypto";
|
|
15
14
|
import { Unowned } from "../../AdoptPolicy.ts";
|
|
16
|
-
import { AlchemyContext } from "../../AlchemyContext.ts";
|
|
17
15
|
import * as Artifacts from "../../Artifacts.ts";
|
|
18
16
|
import { hashDirectory, type MemoOptions } from "../../Build/Memo.ts";
|
|
19
17
|
import * as Bundle from "../../Bundle/Bundle.ts";
|
|
20
18
|
import type { ScopedPlanStatusSession } from "../../Cli/Cli.ts";
|
|
21
19
|
import { isResolved } from "../../Diff.ts";
|
|
22
20
|
import type { InputProps } from "../../Input.ts";
|
|
21
|
+
import * as ProviderLayer from "../../Local/ProviderLayer.ts";
|
|
23
22
|
import { Platform, type Main, type PlatformProps } from "../../Platform.ts";
|
|
24
23
|
import * as Provider from "../../Provider.ts";
|
|
25
24
|
import { Resource, type ResourceBinding } from "../../Resource.ts";
|
|
@@ -36,10 +35,7 @@ import {
|
|
|
36
35
|
} from "./Assets.ts";
|
|
37
36
|
import { getCompatibility } from "./Compatibility.ts";
|
|
38
37
|
import { isDurableObjectExport } from "./DurableObjectNamespace.ts";
|
|
39
|
-
import {
|
|
40
|
-
LocalWorkerProvider,
|
|
41
|
-
localRuntimeServices,
|
|
42
|
-
} from "./LocalWorkerProvider.ts";
|
|
38
|
+
import { LocalWorkerProvider } from "./LocalWorkerProvider.ts";
|
|
43
39
|
import { Request } from "./Request.ts";
|
|
44
40
|
import * as Vite from "./Vite.ts";
|
|
45
41
|
import {
|
|
@@ -743,27 +739,10 @@ class MissingDurableObjectNamespaces extends Data.TaggedError(
|
|
|
743
739
|
expected: string[];
|
|
744
740
|
}> {}
|
|
745
741
|
|
|
746
|
-
const selectLayer = <
|
|
747
|
-
LayerLive extends Layer.Layer<any, any, any>,
|
|
748
|
-
LayerDev extends Layer.Layer<any, any, any>,
|
|
749
|
-
>(input: {
|
|
750
|
-
live: () => LayerLive;
|
|
751
|
-
dev: () => LayerDev;
|
|
752
|
-
}): Layer.Layer<
|
|
753
|
-
Layer.Success<LayerLive | LayerDev>,
|
|
754
|
-
Layer.Error<LayerLive | LayerDev>,
|
|
755
|
-
Layer.Services<LayerLive | LayerDev> | AlchemyContext
|
|
756
|
-
> =>
|
|
757
|
-
Layer.unwrap(
|
|
758
|
-
AlchemyContext.useSync((context) =>
|
|
759
|
-
context.dev ? input.dev() : input.live(),
|
|
760
|
-
),
|
|
761
|
-
);
|
|
762
|
-
|
|
763
742
|
export const WorkerProvider = () =>
|
|
764
|
-
|
|
765
|
-
live: LiveWorkerProvider,
|
|
766
|
-
|
|
743
|
+
ProviderLayer.select({
|
|
744
|
+
live: () => LiveWorkerProvider(),
|
|
745
|
+
local: () => LocalWorkerProvider(),
|
|
767
746
|
});
|
|
768
747
|
|
|
769
748
|
export const LiveWorkerProvider = () =>
|
|
@@ -772,28 +751,29 @@ export const LiveWorkerProvider = () =>
|
|
|
772
751
|
Effect.gen(function* () {
|
|
773
752
|
const path = yield* Path.Path;
|
|
774
753
|
|
|
775
|
-
const { accountId } = yield* CloudflareEnvironment;
|
|
776
754
|
const bundler = yield* WorkerBundle;
|
|
777
755
|
const stack = yield* Stack;
|
|
778
756
|
|
|
779
|
-
const createScriptSubdomain = yield* workers.createScriptSubdomain;
|
|
780
|
-
const deleteScript = yield* workers.deleteScript;
|
|
781
|
-
const getScriptSubdomain = yield* workers.getScriptSubdomain;
|
|
782
|
-
const getScriptSchedule = yield* workers.getScriptSchedule;
|
|
783
|
-
const getScriptSettings = yield* workers.getScriptScriptAndVersionSetting;
|
|
784
|
-
const getSubdomain = yield* workers.getSubdomain;
|
|
785
|
-
const putScript = yield* workers.putScript;
|
|
786
|
-
const putScriptSchedule = yield* workers.putScriptSchedule;
|
|
787
|
-
const putDomain = yield* workers.putDomain;
|
|
788
|
-
const listDomains = yield* workers.listDomains;
|
|
789
|
-
const deleteDomain = yield* workers.deleteDomain;
|
|
790
|
-
const listZones = yield* zones.listZones;
|
|
757
|
+
// const createScriptSubdomain = yield* workers.createScriptSubdomain;
|
|
758
|
+
// const deleteScript = yield* workers.deleteScript;
|
|
759
|
+
// const getScriptSubdomain = yield* workers.getScriptSubdomain;
|
|
760
|
+
// const getScriptSchedule = yield* workers.getScriptSchedule;
|
|
761
|
+
// const getScriptSettings = yield* workers.getScriptScriptAndVersionSetting;
|
|
762
|
+
// const getSubdomain = yield* workers.getSubdomain;
|
|
763
|
+
// const putScript = yield* workers.putScript;
|
|
764
|
+
// const putScriptSchedule = yield* workers.putScriptSchedule;
|
|
765
|
+
// const putDomain = yield* workers.putDomain;
|
|
766
|
+
// const listDomains = yield* workers.listDomains;
|
|
767
|
+
// const deleteDomain = yield* workers.deleteDomain;
|
|
768
|
+
// const listZones = yield* zones.listZones;
|
|
791
769
|
const telemetry = yield* CloudflareLogs;
|
|
792
770
|
|
|
793
771
|
const getAccountSubdomain = (accountId: string) =>
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
772
|
+
workers
|
|
773
|
+
.getSubdomain({
|
|
774
|
+
accountId,
|
|
775
|
+
})
|
|
776
|
+
.pipe(Effect.map((result) => result.subdomain));
|
|
797
777
|
|
|
798
778
|
// Toggle the workers.dev subdomain via `POST /subdomain` with
|
|
799
779
|
// `enabled: true | false`. Mirrors the upstream Alchemy
|
|
@@ -801,13 +781,18 @@ export const LiveWorkerProvider = () =>
|
|
|
801
781
|
// When enabling we also set `previewsEnabled: true` so the
|
|
802
782
|
// script is reachable both at its stable workers.dev URL and at
|
|
803
783
|
// version-preview URLs; on disable we send just `enabled: false`.
|
|
804
|
-
const setWorkerSubdomain = (
|
|
805
|
-
|
|
784
|
+
const setWorkerSubdomain = Effect.fnUntraced(function* (
|
|
785
|
+
name: string,
|
|
786
|
+
enabled: boolean,
|
|
787
|
+
) {
|
|
788
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
789
|
+
return yield* workers.createScriptSubdomain({
|
|
806
790
|
accountId,
|
|
807
791
|
scriptName: name,
|
|
808
792
|
enabled,
|
|
809
793
|
previewsEnabled: enabled ? true : undefined,
|
|
810
794
|
});
|
|
795
|
+
});
|
|
811
796
|
|
|
812
797
|
// Convert non-ASCII hostnames (emoji, IDN, etc.) to punycode so the
|
|
813
798
|
// Cloudflare API receives the form it stores domains in. `new URL(...)`
|
|
@@ -834,16 +819,22 @@ export const LiveWorkerProvider = () =>
|
|
|
834
819
|
const normalizeCrons = (crons: string[] | undefined): string[] =>
|
|
835
820
|
Array.from(new Set(crons ?? []));
|
|
836
821
|
|
|
837
|
-
const getWorkerCrons = (scriptName: string)
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
822
|
+
const getWorkerCrons = Effect.fnUntraced(function* (scriptName: string) {
|
|
823
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
824
|
+
return yield* workers
|
|
825
|
+
.getScriptSchedule({
|
|
826
|
+
accountId,
|
|
827
|
+
scriptName,
|
|
828
|
+
})
|
|
829
|
+
.pipe(
|
|
830
|
+
Effect.map((response) =>
|
|
831
|
+
normalizeCrons(
|
|
832
|
+
response.schedules.map((schedule) => schedule.cron),
|
|
833
|
+
),
|
|
834
|
+
),
|
|
835
|
+
Effect.catchTag("WorkerNotFound", () => Effect.succeed([])),
|
|
836
|
+
);
|
|
837
|
+
});
|
|
847
838
|
|
|
848
839
|
const reconcileCrons = (
|
|
849
840
|
scriptName: string,
|
|
@@ -852,6 +843,7 @@ export const LiveWorkerProvider = () =>
|
|
|
852
843
|
session: ScopedPlanStatusSession,
|
|
853
844
|
) =>
|
|
854
845
|
Effect.gen(function* () {
|
|
846
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
855
847
|
const live = yield* getWorkerCrons(scriptName);
|
|
856
848
|
const desiredSorted = [...desired].sort();
|
|
857
849
|
const liveSorted = [...live].sort();
|
|
@@ -867,19 +859,21 @@ export const LiveWorkerProvider = () =>
|
|
|
867
859
|
);
|
|
868
860
|
}
|
|
869
861
|
|
|
870
|
-
const result = yield*
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
862
|
+
const result = yield* workers
|
|
863
|
+
.putScriptSchedule({
|
|
864
|
+
accountId,
|
|
865
|
+
scriptName,
|
|
866
|
+
body: desired.map((cron) => ({ cron })),
|
|
867
|
+
})
|
|
868
|
+
.pipe(
|
|
869
|
+
Effect.retry({
|
|
870
|
+
while: (error: { _tag?: string }) =>
|
|
871
|
+
error?._tag === "WorkerNotFound",
|
|
872
|
+
schedule: Schedule.exponential(200).pipe(
|
|
873
|
+
Schedule.both(Schedule.recurs(15)),
|
|
874
|
+
),
|
|
875
|
+
}),
|
|
876
|
+
);
|
|
883
877
|
return normalizeCrons(
|
|
884
878
|
result.schedules.map((schedule) => schedule.cron),
|
|
885
879
|
);
|
|
@@ -898,9 +892,9 @@ export const LiveWorkerProvider = () =>
|
|
|
898
892
|
const cached = zoneCache.get(hostname);
|
|
899
893
|
if (cached) return cached;
|
|
900
894
|
|
|
901
|
-
const zoneList = yield*
|
|
902
|
-
|
|
903
|
-
|
|
895
|
+
const zoneList = yield* zones
|
|
896
|
+
.listZones({})
|
|
897
|
+
.pipe(Effect.map((response) => response.result ?? []));
|
|
904
898
|
for (const zone of zoneList) {
|
|
905
899
|
zoneCache.set(zone.name, zone.id);
|
|
906
900
|
}
|
|
@@ -922,32 +916,35 @@ export const LiveWorkerProvider = () =>
|
|
|
922
916
|
|
|
923
917
|
const reconcileDomains = (scriptName: string, desired: string[]) =>
|
|
924
918
|
Effect.gen(function* () {
|
|
919
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
925
920
|
// Always query the live state of domains attached to *this*
|
|
926
921
|
// Worker rather than trusting `_previous` from local state.
|
|
927
922
|
// State may have been wiped, populated by another machine, or
|
|
928
923
|
// simply be out of date. Without this we PUT domains that are
|
|
929
924
|
// already registered to this same Worker and Cloudflare
|
|
930
925
|
// returns a confusing "hostname already in use" error.
|
|
931
|
-
const liveAll = yield*
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
926
|
+
const liveAll = yield* workers
|
|
927
|
+
.listDomains({
|
|
928
|
+
accountId,
|
|
929
|
+
service: scriptName,
|
|
930
|
+
})
|
|
931
|
+
.pipe(
|
|
932
|
+
Effect.map((r) =>
|
|
933
|
+
(r.result ?? []).flatMap((d) =>
|
|
934
|
+
d.id && d.hostname && d.zoneId
|
|
935
|
+
? [
|
|
936
|
+
{
|
|
937
|
+
id: d.id,
|
|
938
|
+
hostname: d.hostname,
|
|
939
|
+
zoneId: d.zoneId,
|
|
940
|
+
service: d.service ?? undefined,
|
|
941
|
+
},
|
|
942
|
+
]
|
|
943
|
+
: [],
|
|
944
|
+
),
|
|
947
945
|
),
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
);
|
|
946
|
+
Effect.catch(() => Effect.succeed([])),
|
|
947
|
+
);
|
|
951
948
|
|
|
952
949
|
const desiredSet = new Set(desired);
|
|
953
950
|
const liveByHostname = new Map(liveAll.map((d) => [d.hostname, d]));
|
|
@@ -957,9 +954,9 @@ export const LiveWorkerProvider = () =>
|
|
|
957
954
|
const toRemove = liveAll.filter((d) => !desiredSet.has(d.hostname));
|
|
958
955
|
yield* Effect.all(
|
|
959
956
|
toRemove.map((d) =>
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
957
|
+
workers
|
|
958
|
+
.deleteDomain({ accountId, domainId: d.id })
|
|
959
|
+
.pipe(Effect.catchTag("DomainNotFound", () => Effect.void)),
|
|
963
960
|
),
|
|
964
961
|
{ concurrency: "unbounded" },
|
|
965
962
|
);
|
|
@@ -986,17 +983,19 @@ export const LiveWorkerProvider = () =>
|
|
|
986
983
|
// Not attached to this Worker — but it could still belong
|
|
987
984
|
// to another Worker. Check before we try to PUT so we can
|
|
988
985
|
// emit a helpful error instead of the raw 409.
|
|
989
|
-
const otherOwner = yield*
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
986
|
+
const otherOwner = yield* workers
|
|
987
|
+
.listDomains({
|
|
988
|
+
accountId,
|
|
989
|
+
hostname,
|
|
990
|
+
})
|
|
991
|
+
.pipe(
|
|
992
|
+
Effect.map((r) =>
|
|
993
|
+
(r.result ?? []).find(
|
|
994
|
+
(d) => d.hostname === hostname && d.service !== scriptName,
|
|
995
|
+
),
|
|
996
996
|
),
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
);
|
|
997
|
+
Effect.catch(() => Effect.succeed(undefined)),
|
|
998
|
+
);
|
|
1000
999
|
if (otherOwner?.id) {
|
|
1001
1000
|
return yield* Effect.die(
|
|
1002
1001
|
new Error(
|
|
@@ -1012,20 +1011,22 @@ export const LiveWorkerProvider = () =>
|
|
|
1012
1011
|
// PUT /accounts/.../workers/domains right after `putScript`
|
|
1013
1012
|
// can return `WorkerNotFound` until Cloudflare's script
|
|
1014
1013
|
// registry has propagated. Retry on that specific tag.
|
|
1015
|
-
const res = yield*
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1014
|
+
const res = yield* workers
|
|
1015
|
+
.putDomain({
|
|
1016
|
+
accountId,
|
|
1017
|
+
hostname,
|
|
1018
|
+
service: scriptName,
|
|
1019
|
+
zoneId,
|
|
1020
|
+
})
|
|
1021
|
+
.pipe(
|
|
1022
|
+
Effect.retry({
|
|
1023
|
+
while: (error: { _tag?: string }) =>
|
|
1024
|
+
error?._tag === "WorkerNotFound",
|
|
1025
|
+
schedule: Schedule.exponential(200).pipe(
|
|
1026
|
+
Schedule.both(Schedule.recurs(15)),
|
|
1027
|
+
),
|
|
1028
|
+
}),
|
|
1029
|
+
);
|
|
1029
1030
|
return {
|
|
1030
1031
|
hostname,
|
|
1031
1032
|
id: res.id ?? "",
|
|
@@ -1089,36 +1090,39 @@ export const LiveWorkerProvider = () =>
|
|
|
1089
1090
|
scriptName: string,
|
|
1090
1091
|
expectedClassNames: readonly string[],
|
|
1091
1092
|
) {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
new MissingDurableObjectNamespaces({
|
|
1104
|
-
scriptName,
|
|
1105
|
-
expected: missing,
|
|
1106
|
-
}),
|
|
1093
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
1094
|
+
return yield* workers
|
|
1095
|
+
.getScriptScriptAndVersionSetting({
|
|
1096
|
+
accountId,
|
|
1097
|
+
scriptName,
|
|
1098
|
+
})
|
|
1099
|
+
.pipe(
|
|
1100
|
+
Effect.map((settings) => {
|
|
1101
|
+
const namespaces = getDurableObjectNamespaces(settings.bindings);
|
|
1102
|
+
const missing = expectedClassNames.filter(
|
|
1103
|
+
(className) => !namespaces[className],
|
|
1107
1104
|
);
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1105
|
+
if (missing.length > 0) {
|
|
1106
|
+
return Effect.fail(
|
|
1107
|
+
new MissingDurableObjectNamespaces({
|
|
1108
|
+
scriptName,
|
|
1109
|
+
expected: missing,
|
|
1110
|
+
}),
|
|
1111
|
+
);
|
|
1112
|
+
}
|
|
1113
|
+
return Effect.succeed({
|
|
1114
|
+
settings,
|
|
1115
|
+
durableObjectNamespaces: namespaces,
|
|
1116
|
+
});
|
|
1117
|
+
}),
|
|
1118
|
+
Effect.flatten,
|
|
1119
|
+
Effect.retry({
|
|
1120
|
+
while: (error) => error._tag === "MissingDurableObjectNamespaces",
|
|
1121
|
+
schedule: Schedule.exponential(100).pipe(
|
|
1122
|
+
Schedule.both(Schedule.recurs(20)),
|
|
1123
|
+
),
|
|
1124
|
+
}),
|
|
1125
|
+
);
|
|
1122
1126
|
});
|
|
1123
1127
|
|
|
1124
1128
|
const prepareAssets = Effect.fnUntraced(function* (
|
|
@@ -1178,7 +1182,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1178
1182
|
: Redacted.isRedacted(value) &&
|
|
1179
1183
|
typeof Redacted.value(value) === "string"
|
|
1180
1184
|
? Redacted.value(value)
|
|
1181
|
-
:
|
|
1185
|
+
: Effect.isEffect(value)
|
|
1182
1186
|
? yield* value as Effect.Effect<any>
|
|
1183
1187
|
: undefined,
|
|
1184
1188
|
];
|
|
@@ -1308,6 +1312,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1308
1312
|
session: ScopedPlanStatusSession,
|
|
1309
1313
|
existingSettings?: workers.GetScriptScriptAndVersionSettingResponse,
|
|
1310
1314
|
) {
|
|
1315
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
1311
1316
|
const name = yield* createWorkerName(id, news.name);
|
|
1312
1317
|
yield* Effect.logInfo(
|
|
1313
1318
|
`Cloudflare Worker ${olds ? "update" : "create"}: preparing bundle for ${name}`,
|
|
@@ -1450,13 +1455,15 @@ export const LiveWorkerProvider = () =>
|
|
|
1450
1455
|
// Read existing worker settings for migration tracking
|
|
1451
1456
|
const oldSettings =
|
|
1452
1457
|
existingSettings ??
|
|
1453
|
-
(yield*
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1458
|
+
(yield* workers
|
|
1459
|
+
.getScriptScriptAndVersionSetting({
|
|
1460
|
+
accountId,
|
|
1461
|
+
scriptName: name,
|
|
1462
|
+
})
|
|
1463
|
+
.pipe(
|
|
1464
|
+
Effect.map((s) => s as typeof s | undefined),
|
|
1465
|
+
Effect.catch(() => Effect.succeed(undefined)),
|
|
1466
|
+
));
|
|
1460
1467
|
|
|
1461
1468
|
const oldTags = Array.from(new Set(oldSettings?.tags ?? []));
|
|
1462
1469
|
const oldBindings = oldSettings?.bindings ?? [];
|
|
@@ -1613,44 +1620,46 @@ export const LiveWorkerProvider = () =>
|
|
|
1613
1620
|
tailConsumers: undefined,
|
|
1614
1621
|
usageModel: undefined,
|
|
1615
1622
|
};
|
|
1616
|
-
const worker = yield*
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
...
|
|
1644
|
-
|
|
1645
|
-
|
|
1623
|
+
const worker = yield* workers
|
|
1624
|
+
.putScript({
|
|
1625
|
+
accountId,
|
|
1626
|
+
scriptName: name,
|
|
1627
|
+
metadata,
|
|
1628
|
+
files: bundle.files,
|
|
1629
|
+
})
|
|
1630
|
+
.pipe(
|
|
1631
|
+
Effect.catch((err) => {
|
|
1632
|
+
// When adopting a Worker managed by Wrangler (or after a previous
|
|
1633
|
+
// deploy with mismatched migrations), the old_tag precondition
|
|
1634
|
+
// fails. The only way to discover the actual tag is through the
|
|
1635
|
+
// error message — getScriptSettings is meant to return it but
|
|
1636
|
+
// doesn't at runtime.
|
|
1637
|
+
const msg = String(
|
|
1638
|
+
typeof err === "object" && err !== null && "message" in err
|
|
1639
|
+
? err.message
|
|
1640
|
+
: err,
|
|
1641
|
+
);
|
|
1642
|
+
const expectedTag = msg.match(
|
|
1643
|
+
/when expected tag is ['"]?([^'"]+)['"]?/,
|
|
1644
|
+
)?.[1];
|
|
1645
|
+
if (expectedTag) {
|
|
1646
|
+
return workers.putScript({
|
|
1647
|
+
accountId,
|
|
1648
|
+
scriptName: name,
|
|
1649
|
+
metadata: {
|
|
1650
|
+
...metadata,
|
|
1651
|
+
migrations: {
|
|
1652
|
+
...migrations,
|
|
1653
|
+
oldTag: expectedTag,
|
|
1654
|
+
newTag: bumpMigrationTagVersion(expectedTag),
|
|
1655
|
+
},
|
|
1646
1656
|
},
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
);
|
|
1657
|
+
files: bundle.files,
|
|
1658
|
+
});
|
|
1659
|
+
}
|
|
1660
|
+
return Effect.fail(err as any);
|
|
1661
|
+
}),
|
|
1662
|
+
);
|
|
1654
1663
|
const { settings, durableObjectNamespaces } =
|
|
1655
1664
|
yield* getWorkerSettingsWithDurableObjects(
|
|
1656
1665
|
name,
|
|
@@ -1664,15 +1673,17 @@ export const LiveWorkerProvider = () =>
|
|
|
1664
1673
|
// Cloudflare currently has it (disabled by default, or whatever
|
|
1665
1674
|
// a previous failed/external action left it as).
|
|
1666
1675
|
const desiredSubdomainEnabled = news.url !== false;
|
|
1667
|
-
const observedSubdomain = yield*
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
+
const observedSubdomain = yield* workers
|
|
1677
|
+
.getScriptSubdomain({
|
|
1678
|
+
accountId,
|
|
1679
|
+
scriptName: name,
|
|
1680
|
+
})
|
|
1681
|
+
.pipe(
|
|
1682
|
+
Effect.orElseSucceed<workers.GetScriptSubdomainResponse>(() => ({
|
|
1683
|
+
enabled: false,
|
|
1684
|
+
previewsEnabled: false,
|
|
1685
|
+
})),
|
|
1686
|
+
);
|
|
1676
1687
|
if (
|
|
1677
1688
|
desiredSubdomainEnabled !== observedSubdomain.enabled ||
|
|
1678
1689
|
desiredSubdomainEnabled !== observedSubdomain.previewsEnabled
|
|
@@ -1807,6 +1818,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1807
1818
|
output,
|
|
1808
1819
|
newBindings,
|
|
1809
1820
|
}) {
|
|
1821
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
1810
1822
|
if (!isResolved(news)) return undefined;
|
|
1811
1823
|
if ((output?.accountId ?? accountId) !== accountId) {
|
|
1812
1824
|
return { action: "replace" };
|
|
@@ -1855,6 +1867,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1855
1867
|
}
|
|
1856
1868
|
}),
|
|
1857
1869
|
precreate: Effect.fnUntraced(function* ({ id, news, session }) {
|
|
1870
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
1858
1871
|
const name = yield* createWorkerName(id, news.name);
|
|
1859
1872
|
const exportMap = (news.exports ?? {}) as Record<string, unknown>;
|
|
1860
1873
|
const durableObjects = Object.keys(exportMap)
|
|
@@ -1884,12 +1897,16 @@ export const LiveWorkerProvider = () =>
|
|
|
1884
1897
|
durableObjects,
|
|
1885
1898
|
)}`,
|
|
1886
1899
|
);
|
|
1887
|
-
const existingSettings = yield*
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1900
|
+
const existingSettings = yield* workers
|
|
1901
|
+
.getScriptScriptAndVersionSetting({
|
|
1902
|
+
accountId,
|
|
1903
|
+
scriptName: name,
|
|
1904
|
+
})
|
|
1905
|
+
.pipe(
|
|
1906
|
+
Effect.catchTag("WorkerNotFound", () =>
|
|
1907
|
+
Effect.succeed(undefined),
|
|
1908
|
+
),
|
|
1909
|
+
);
|
|
1893
1910
|
let durableObjectNamespaces = getDurableObjectNamespaces(
|
|
1894
1911
|
existingSettings?.bindings,
|
|
1895
1912
|
);
|
|
@@ -1910,64 +1927,66 @@ export const LiveWorkerProvider = () =>
|
|
|
1910
1927
|
`export class ${className} extends DurableObject {}`,
|
|
1911
1928
|
)
|
|
1912
1929
|
.join("\n")}`;
|
|
1913
|
-
yield*
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
logs: {
|
|
1930
|
+
yield* workers
|
|
1931
|
+
.putScript({
|
|
1932
|
+
accountId,
|
|
1933
|
+
scriptName: name,
|
|
1934
|
+
metadata: {
|
|
1935
|
+
mainModule,
|
|
1936
|
+
bindings:
|
|
1937
|
+
doClasses.length > 0
|
|
1938
|
+
? doClasses.map((className) => ({
|
|
1939
|
+
type: "durable_object_namespace" as const,
|
|
1940
|
+
name: className,
|
|
1941
|
+
className,
|
|
1942
|
+
}))
|
|
1943
|
+
: undefined,
|
|
1944
|
+
...getCompatibility(news),
|
|
1945
|
+
containers,
|
|
1946
|
+
migrations:
|
|
1947
|
+
doClasses.length > 0
|
|
1948
|
+
? {
|
|
1949
|
+
oldTag: undefined,
|
|
1950
|
+
newTag: undefined,
|
|
1951
|
+
newClasses: [],
|
|
1952
|
+
deletedClasses: [],
|
|
1953
|
+
renamedClasses: [],
|
|
1954
|
+
transferredClasses: [],
|
|
1955
|
+
newSqliteClasses: doClasses,
|
|
1956
|
+
}
|
|
1957
|
+
: undefined,
|
|
1958
|
+
observability: news.observability ?? {
|
|
1943
1959
|
enabled: true,
|
|
1944
|
-
|
|
1960
|
+
logs: {
|
|
1961
|
+
enabled: true,
|
|
1962
|
+
invocationLogs: true,
|
|
1963
|
+
},
|
|
1945
1964
|
},
|
|
1965
|
+
tags,
|
|
1946
1966
|
},
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1967
|
+
files: [
|
|
1968
|
+
new File([placeholderScript], mainModule, {
|
|
1969
|
+
type: "application/javascript+module",
|
|
1970
|
+
}),
|
|
1971
|
+
],
|
|
1972
|
+
})
|
|
1973
|
+
.pipe(
|
|
1974
|
+
// Cloudflare's PUT /workers/scripts/{name} intermittently
|
|
1975
|
+
// returns code 10002 / "An unknown error has occurred" on the
|
|
1976
|
+
// first put for a fresh worker name. Surfaced as the shared
|
|
1977
|
+
// `InternalServerError` upstream (alchemy-run/distilled#290).
|
|
1978
|
+
// Also match `UnknownCloudflareError` for older
|
|
1979
|
+
// @distilled.cloud/cloudflare versions that haven't picked
|
|
1980
|
+
// up the patch yet.
|
|
1981
|
+
Effect.retry({
|
|
1982
|
+
while: (e) =>
|
|
1983
|
+
e._tag === "InternalServerError" ||
|
|
1984
|
+
e._tag === "UnknownCloudflareError",
|
|
1985
|
+
schedule: Schedule.exponential(1000).pipe(
|
|
1986
|
+
Schedule.both(Schedule.recurs(5)),
|
|
1987
|
+
),
|
|
1952
1988
|
}),
|
|
1953
|
-
|
|
1954
|
-
}).pipe(
|
|
1955
|
-
// Cloudflare's PUT /workers/scripts/{name} intermittently
|
|
1956
|
-
// returns code 10002 / "An unknown error has occurred" on the
|
|
1957
|
-
// first put for a fresh worker name. Surfaced as the shared
|
|
1958
|
-
// `InternalServerError` upstream (alchemy-run/distilled#290).
|
|
1959
|
-
// Also match `UnknownCloudflareError` for older
|
|
1960
|
-
// @distilled.cloud/cloudflare versions that haven't picked
|
|
1961
|
-
// up the patch yet.
|
|
1962
|
-
Effect.retry({
|
|
1963
|
-
while: (e) =>
|
|
1964
|
-
e._tag === "InternalServerError" ||
|
|
1965
|
-
e._tag === "UnknownCloudflareError",
|
|
1966
|
-
schedule: Schedule.exponential(1000).pipe(
|
|
1967
|
-
Schedule.both(Schedule.recurs(5)),
|
|
1968
|
-
),
|
|
1969
|
-
}),
|
|
1970
|
-
);
|
|
1989
|
+
);
|
|
1971
1990
|
if (doClasses.length > 0) {
|
|
1972
1991
|
({ durableObjectNamespaces } =
|
|
1973
1992
|
yield* getWorkerSettingsWithDurableObjects(name, doClasses));
|
|
@@ -1993,6 +2012,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1993
2012
|
}),
|
|
1994
2013
|
read: Effect.fnUntraced(
|
|
1995
2014
|
function* ({ id, output, olds }) {
|
|
2015
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
1996
2016
|
const workerName =
|
|
1997
2017
|
output?.workerName ?? (yield* createWorkerName(id, olds?.name));
|
|
1998
2018
|
yield* Effect.logInfo(
|
|
@@ -2007,18 +2027,20 @@ export const LiveWorkerProvider = () =>
|
|
|
2007
2027
|
// surrounding `Effect.catchTag` turns into `undefined` — that's
|
|
2008
2028
|
// all the existence check we need.
|
|
2009
2029
|
const [subdomain, settings, domainsList] = yield* Effect.all([
|
|
2010
|
-
getScriptSubdomain({
|
|
2030
|
+
workers.getScriptSubdomain({
|
|
2011
2031
|
accountId,
|
|
2012
2032
|
scriptName: workerName,
|
|
2013
2033
|
}),
|
|
2014
|
-
|
|
2034
|
+
workers.getScriptScriptAndVersionSetting({
|
|
2015
2035
|
accountId,
|
|
2016
2036
|
scriptName: workerName,
|
|
2017
2037
|
}),
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2038
|
+
workers
|
|
2039
|
+
.listDomains({
|
|
2040
|
+
accountId,
|
|
2041
|
+
service: workerName,
|
|
2042
|
+
})
|
|
2043
|
+
.pipe(Effect.map((r) => r.result ?? [])),
|
|
2022
2044
|
]);
|
|
2023
2045
|
// Preserve the order the user provided in `olds.domain`. The
|
|
2024
2046
|
// Cloudflare API returns domains in non-deterministic order,
|
|
@@ -2087,6 +2109,7 @@ export const LiveWorkerProvider = () =>
|
|
|
2087
2109
|
output,
|
|
2088
2110
|
session,
|
|
2089
2111
|
}) {
|
|
2112
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
2090
2113
|
const name =
|
|
2091
2114
|
output?.workerName ?? (yield* createWorkerName(id, news.name));
|
|
2092
2115
|
const durableObjects = getDurableObjectBindings(bindings, name).map(
|
|
@@ -2109,12 +2132,16 @@ export const LiveWorkerProvider = () =>
|
|
|
2109
2132
|
// existing settings inform asset/migration decisions and let the
|
|
2110
2133
|
// reconciler converge whether the worker is brand-new, adopted, or
|
|
2111
2134
|
// an in-place update.
|
|
2112
|
-
const existingSettings = yield*
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2135
|
+
const existingSettings = yield* workers
|
|
2136
|
+
.getScriptScriptAndVersionSetting({
|
|
2137
|
+
accountId,
|
|
2138
|
+
scriptName: name,
|
|
2139
|
+
})
|
|
2140
|
+
.pipe(
|
|
2141
|
+
Effect.catchTag("WorkerNotFound", () =>
|
|
2142
|
+
Effect.succeed(undefined),
|
|
2143
|
+
),
|
|
2144
|
+
);
|
|
2118
2145
|
yield* Effect.logInfo(
|
|
2119
2146
|
`Cloudflare Worker reconcile: existing durable object tags ${JSON.stringify(
|
|
2120
2147
|
(existingSettings?.tags ?? []).filter((tag) =>
|
|
@@ -2147,40 +2174,46 @@ export const LiveWorkerProvider = () =>
|
|
|
2147
2174
|
// We no longer track `{ id, zoneId }` on the output; fetching
|
|
2148
2175
|
// straight from Cloudflare handles both the normal case and
|
|
2149
2176
|
// adopted workers whose domains we never recorded.
|
|
2150
|
-
const liveDomains = yield*
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2177
|
+
const liveDomains = yield* workers
|
|
2178
|
+
.listDomains({
|
|
2179
|
+
accountId: output.accountId,
|
|
2180
|
+
service: output.workerName,
|
|
2181
|
+
})
|
|
2182
|
+
.pipe(
|
|
2183
|
+
Effect.map((r) => r.result ?? []),
|
|
2184
|
+
Effect.catch(() => Effect.succeed([])),
|
|
2185
|
+
);
|
|
2157
2186
|
if (liveDomains.length) {
|
|
2158
2187
|
yield* Effect.all(
|
|
2159
2188
|
liveDomains.flatMap((d) =>
|
|
2160
2189
|
d.id
|
|
2161
2190
|
? [
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2191
|
+
workers
|
|
2192
|
+
.deleteDomain({
|
|
2193
|
+
accountId: output.accountId,
|
|
2194
|
+
domainId: d.id,
|
|
2195
|
+
})
|
|
2196
|
+
.pipe(
|
|
2197
|
+
Effect.catchTag("DomainNotFound", () => Effect.void),
|
|
2198
|
+
),
|
|
2168
2199
|
]
|
|
2169
2200
|
: [],
|
|
2170
2201
|
),
|
|
2171
2202
|
{ concurrency: "unbounded" },
|
|
2172
2203
|
);
|
|
2173
2204
|
}
|
|
2174
|
-
yield*
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2205
|
+
yield* workers
|
|
2206
|
+
.deleteScript({
|
|
2207
|
+
accountId: output.accountId,
|
|
2208
|
+
scriptName: output.workerName,
|
|
2209
|
+
// Force teardown of queue consumers, durable object classes, and
|
|
2210
|
+
// service bindings hanging off this worker. Without `force`, those
|
|
2211
|
+
// conditions raise QueueConsumerConflict / ServiceBindingConflict
|
|
2212
|
+
// and leave the script in CF. Alchemy is the source of truth for
|
|
2213
|
+
// the worker, so we want a hard delete on teardown.
|
|
2214
|
+
force: true,
|
|
2215
|
+
})
|
|
2216
|
+
.pipe(Effect.catchTag("WorkerNotFound", () => Effect.void));
|
|
2184
2217
|
}),
|
|
2185
2218
|
tail: ({ output }) =>
|
|
2186
2219
|
telemetry.tailScript({
|