alchemy 2.0.0-beta.51 → 2.0.0-beta.53
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 +24 -30
- 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/Apply.js +15 -3
- package/lib/Apply.js.map +1 -1
- package/lib/Auth/AuthProvider.js +1 -1
- package/lib/Auth/AuthProvider.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 +12 -8
- package/lib/Binding.js.map +1 -1
- package/lib/Build/DevServer.d.ts +113 -0
- package/lib/Build/DevServer.d.ts.map +1 -0
- package/lib/Build/DevServer.js +212 -0
- package/lib/Build/DevServer.js.map +1 -0
- package/lib/Build/Local.d.ts +2 -0
- package/lib/Build/Local.d.ts.map +1 -0
- package/lib/Build/Local.js +4 -0
- package/lib/Build/Local.js.map +1 -0
- package/lib/Bundle/Bundle.js +1 -1
- package/lib/Bundle/Bundle.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/Access.js +1 -1
- package/lib/Cloudflare/Access.js.map +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.d.ts +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.d.ts.map +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.js +186 -181
- 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/Browser/Browser.d.ts +84 -12
- package/lib/Cloudflare/Browser/Browser.d.ts.map +1 -1
- package/lib/Cloudflare/Browser/Browser.js +80 -9
- package/lib/Cloudflare/Browser/Browser.js.map +1 -1
- package/lib/Cloudflare/Browser/BrowserBinding.d.ts +90 -16
- package/lib/Cloudflare/Browser/BrowserBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Browser/BrowserBinding.js +41 -6
- package/lib/Cloudflare/Browser/BrowserBinding.js.map +1 -1
- package/lib/Cloudflare/Browser/index.d.ts +1 -1
- package/lib/Cloudflare/Browser/index.d.ts.map +1 -1
- package/lib/Cloudflare/Browser/index.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/Container/ContainerBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Container/ContainerBinding.js +2 -4
- package/lib/Cloudflare/Container/ContainerBinding.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 +139 -137
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.js.map +1 -1
- package/lib/Cloudflare/Images/Images.d.ts +4 -3
- package/lib/Cloudflare/Images/Images.d.ts.map +1 -1
- package/lib/Cloudflare/Images/Images.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/Providers.d.ts +1 -1
- package/lib/Cloudflare/Providers.d.ts.map +1 -1
- package/lib/Cloudflare/Providers.js +4 -1
- package/lib/Cloudflare/Providers.js.map +1 -1
- package/lib/Cloudflare/Queue/Queue.d.ts.map +1 -1
- package/lib/Cloudflare/Queue/Queue.js +109 -101
- package/lib/Cloudflare/Queue/Queue.js.map +1 -1
- package/lib/Cloudflare/Queue/QueueConsumer.d.ts.map +1 -1
- package/lib/Cloudflare/Queue/QueueConsumer.js +260 -250
- 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/RateLimit/RateLimit.d.ts +4 -3
- package/lib/Cloudflare/RateLimit/RateLimit.d.ts.map +1 -1
- package/lib/Cloudflare/RateLimit/RateLimit.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/Website/StaticSite.d.ts +64 -12
- package/lib/Cloudflare/Website/StaticSite.d.ts.map +1 -1
- package/lib/Cloudflare/Website/StaticSite.js +80 -30
- package/lib/Cloudflare/Website/StaticSite.js.map +1 -1
- package/lib/Cloudflare/Website/Vite.d.ts +36 -7
- package/lib/Cloudflare/Website/Vite.d.ts.map +1 -1
- package/lib/Cloudflare/Website/Vite.js +26 -8
- package/lib/Cloudflare/Website/Vite.js.map +1 -1
- package/lib/Cloudflare/Workers/Assets.d.ts +10 -4
- package/lib/Cloudflare/Workers/Assets.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Assets.js +8 -8
- package/lib/Cloudflare/Workers/Assets.js.map +1 -1
- package/lib/Cloudflare/Workers/DynamicWorkerLoader.d.ts +4 -4
- package/lib/Cloudflare/Workers/InferEnv.d.ts +1 -1
- package/lib/Cloudflare/Workers/InferEnv.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js +48 -13
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/RpcDurableObjectNamespace.d.ts +5 -4
- package/lib/Cloudflare/Workers/RpcDurableObjectNamespace.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/RpcDurableObjectNamespace.js +4 -2
- package/lib/Cloudflare/Workers/RpcDurableObjectNamespace.js.map +1 -1
- package/lib/Cloudflare/Workers/RpcWorker.d.ts +3 -2
- package/lib/Cloudflare/Workers/RpcWorker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/RpcWorker.js +5 -3
- package/lib/Cloudflare/Workers/RpcWorker.js.map +1 -1
- package/lib/Cloudflare/Workers/VersionMetadata.d.ts +99 -0
- package/lib/Cloudflare/Workers/VersionMetadata.d.ts.map +1 -0
- package/lib/Cloudflare/Workers/VersionMetadata.js +65 -0
- package/lib/Cloudflare/Workers/VersionMetadata.js.map +1 -0
- package/lib/Cloudflare/Workers/VersionMetadataBinding.d.ts +35 -0
- package/lib/Cloudflare/Workers/VersionMetadataBinding.d.ts.map +1 -0
- package/lib/Cloudflare/Workers/VersionMetadataBinding.js +31 -0
- package/lib/Cloudflare/Workers/VersionMetadataBinding.js.map +1 -0
- package/lib/Cloudflare/Workers/Worker.d.ts +19 -19
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js +134 -98
- 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 +9 -14
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts +2 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.js.map +1 -1
- package/lib/Cloudflare/Workers/Workflow.d.ts +8 -1
- package/lib/Cloudflare/Workers/Workflow.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Workflow.js +7 -6
- package/lib/Cloudflare/Workers/Workflow.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkflowBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkflowBridge.js +31 -2
- package/lib/Cloudflare/Workers/WorkflowBridge.js.map +1 -1
- package/lib/Cloudflare/Workers/index.d.ts +2 -0
- package/lib/Cloudflare/Workers/index.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/index.js +2 -0
- package/lib/Cloudflare/Workers/index.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/Diff.d.ts.map +1 -1
- package/lib/Diff.js +7 -0
- package/lib/Diff.js.map +1 -1
- package/lib/Drizzle/Postgres.d.ts +13 -12
- package/lib/Drizzle/Postgres.d.ts.map +1 -1
- package/lib/Drizzle/Postgres.js +13 -12
- package/lib/Drizzle/Postgres.js.map +1 -1
- package/lib/Drizzle/Schema.d.ts +1 -1
- package/lib/Drizzle/Schema.d.ts.map +1 -1
- package/lib/Drizzle/Schema.js +14 -6
- package/lib/Drizzle/Schema.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/RpcSerialization.js +5 -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 +230 -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/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 +4 -4
- 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 +2 -2
- package/lib/Planetscale/Util.d.ts.map +1 -1
- package/lib/Platform.d.ts.map +1 -1
- package/lib/Platform.js +27 -25
- package/lib/Platform.js.map +1 -1
- package/lib/Resource.d.ts +1 -1
- package/lib/Resource.d.ts.map +1 -1
- package/lib/Resource.js +9 -12
- package/lib/Resource.js.map +1 -1
- package/lib/Runtime.d.ts +1 -1
- package/lib/Runtime.d.ts.map +1 -1
- package/lib/Runtime.js +3 -4
- package/lib/Runtime.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/Util/effect.d.ts.map +1 -1
- package/lib/Util/effect.js +13 -15
- package/lib/Util/effect.js.map +1 -1
- package/lib/Util/poll.d.ts +0 -1
- package/lib/Util/poll.d.ts.map +1 -1
- package/lib/Util/poll.js +2 -2
- package/lib/Util/poll.js.map +1 -1
- package/lib/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +22 -21
- 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/Apply.ts +22 -3
- package/src/Auth/AuthProvider.ts +1 -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 +47 -43
- package/src/Build/DevServer.ts +330 -0
- package/src/Build/Local.ts +4 -0
- package/src/Bundle/Bundle.ts +1 -1
- 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/Access.ts +1 -1
- package/src/Cloudflare/AiGateway/AiGateway.ts +220 -219
- package/src/Cloudflare/ApiToken/AccountApiToken.ts +142 -153
- package/src/Cloudflare/ApiToken/UserApiToken.ts +105 -121
- package/src/Cloudflare/Browser/Browser.ts +84 -12
- package/src/Cloudflare/Browser/BrowserBinding.ts +205 -33
- package/src/Cloudflare/Browser/index.ts +15 -2
- package/src/Cloudflare/CloudflareEnvironment.ts +10 -5
- package/src/Cloudflare/Container/ContainerApplication.ts +32 -29
- package/src/Cloudflare/Container/ContainerBinding.ts +5 -10
- 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 +155 -158
- package/src/Cloudflare/Images/Images.ts +4 -3
- package/src/Cloudflare/KV/KVNamespace.ts +139 -138
- package/src/Cloudflare/Providers.ts +5 -0
- package/src/Cloudflare/Queue/Queue.ts +122 -119
- package/src/Cloudflare/Queue/QueueConsumer.ts +334 -330
- package/src/Cloudflare/R2/R2Bucket.ts +200 -165
- package/src/Cloudflare/RateLimit/RateLimit.ts +4 -3
- 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/Website/StaticSite.ts +154 -41
- package/src/Cloudflare/Website/Vite.ts +73 -25
- package/src/Cloudflare/Workers/Assets.ts +12 -10
- package/src/Cloudflare/Workers/DynamicWorkerLoader.ts +4 -4
- package/src/Cloudflare/Workers/InferEnv.ts +14 -12
- package/src/Cloudflare/Workers/LocalWorkerProvider.ts +57 -15
- package/src/Cloudflare/Workers/RpcDurableObjectNamespace.ts +11 -8
- package/src/Cloudflare/Workers/RpcWorker.ts +8 -7
- package/src/Cloudflare/Workers/VersionMetadata.ts +129 -0
- package/src/Cloudflare/Workers/VersionMetadataBinding.ts +82 -0
- package/src/Cloudflare/Workers/Worker.ts +382 -349
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +13 -21
- package/src/Cloudflare/Workers/WorkerBinding.ts +2 -0
- package/src/Cloudflare/Workers/Workflow.ts +20 -9
- package/src/Cloudflare/Workers/WorkflowBridge.ts +47 -6
- package/src/Cloudflare/Workers/index.ts +2 -0
- package/src/Cloudflare/Zaraz/ZarazConfig.ts +87 -99
- package/src/Cloudflare/Zone/Zone.ts +36 -33
- package/src/Diff.ts +7 -0
- package/src/Drizzle/Postgres.ts +13 -12
- package/src/Drizzle/Schema.ts +16 -6
- 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/RpcSerialization.ts +5 -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 +311 -321
- package/src/Planetscale/Credentials.ts +20 -15
- package/src/Planetscale/MySQL/MySQLDatabase.ts +269 -280
- package/src/Planetscale/MySQL/MySQLPassword.ts +161 -168
- package/src/Planetscale/Postgres/PostgresClusterSize.ts +4 -4
- 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/Platform.ts +36 -32
- package/src/Resource.ts +12 -13
- package/src/Runtime.ts +3 -7
- package/src/Server/SQSQueueEventSource.ts +3 -2
- package/src/Stack.ts +3 -3
- package/src/Util/effect.ts +13 -17
- package/src/Util/poll.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,13 +1,14 @@
|
|
|
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
9
|
import * as Layer from "effect/Layer";
|
|
10
10
|
import * as Path from "effect/Path";
|
|
11
|
+
import * as Predicate from "effect/Predicate";
|
|
11
12
|
import * as Redacted from "effect/Redacted";
|
|
12
13
|
import * as Schedule from "effect/Schedule";
|
|
13
14
|
import * as crypto from "node:crypto";
|
|
@@ -31,7 +32,6 @@ import {
|
|
|
31
32
|
readAssets,
|
|
32
33
|
uploadAssets,
|
|
33
34
|
type Assets,
|
|
34
|
-
type AssetsConfig,
|
|
35
35
|
type AssetsProps,
|
|
36
36
|
} from "./Assets.ts";
|
|
37
37
|
import { getCompatibility } from "./Compatibility.ts";
|
|
@@ -99,20 +99,12 @@ export const isWorkerEvent = (value: any): value is WorkerEvent =>
|
|
|
99
99
|
* When hash is provided, it's used directly for diffing instead of computing from directory contents.
|
|
100
100
|
* This is useful when integrating with Build resources that produce a deterministic hash.
|
|
101
101
|
*/
|
|
102
|
-
export interface AssetsWithHash {
|
|
103
|
-
/**
|
|
104
|
-
* Path to the assets directory.
|
|
105
|
-
*/
|
|
106
|
-
path: string;
|
|
102
|
+
export interface AssetsWithHash extends AssetsProps {
|
|
107
103
|
/**
|
|
108
104
|
* Pre-computed hash of the assets. When provided, this hash is used for diffing
|
|
109
105
|
* to determine if the worker needs to be redeployed.
|
|
110
106
|
*/
|
|
111
107
|
hash: string;
|
|
112
|
-
/**
|
|
113
|
-
* Optional assets configuration.
|
|
114
|
-
*/
|
|
115
|
-
config?: AssetsConfig;
|
|
116
108
|
}
|
|
117
109
|
|
|
118
110
|
export interface WorkerObservability extends Exclude<
|
|
@@ -166,7 +158,7 @@ export type WorkerBindingProps = {
|
|
|
166
158
|
| Effect.Effect<WorkerBindingResource, any, any>;
|
|
167
159
|
};
|
|
168
160
|
|
|
169
|
-
type NormalizedBindings<
|
|
161
|
+
export type NormalizedBindings<
|
|
170
162
|
Bindings extends WorkerBindingProps = {},
|
|
171
163
|
AssetsConfig extends WorkerAssetsConfig | undefined = undefined,
|
|
172
164
|
> = {
|
|
@@ -287,26 +279,33 @@ export interface WorkerProps<
|
|
|
287
279
|
/**
|
|
288
280
|
* Options for the local dev server that runs this Worker under `alchemy dev`.
|
|
289
281
|
* Each Worker is served on its own port.
|
|
282
|
+
*
|
|
283
|
+
* Set to `false` to skip starting a local Worker entirely — useful when an
|
|
284
|
+
* external dev server (e.g. one spawned via `Build.DevCommand`) is
|
|
285
|
+
* serving the content this Worker would otherwise host.
|
|
290
286
|
*/
|
|
291
|
-
dev?:
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
287
|
+
dev?:
|
|
288
|
+
| false
|
|
289
|
+
| string
|
|
290
|
+
| {
|
|
291
|
+
/**
|
|
292
|
+
* Host the local dev server binds to.
|
|
293
|
+
* @default "localhost"
|
|
294
|
+
*/
|
|
295
|
+
host?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Port the local dev server listens on. If the port is unavailable,
|
|
298
|
+
* the next free port is used unless {@link strictPort} is `true`.
|
|
299
|
+
* @default 1337
|
|
300
|
+
*/
|
|
301
|
+
port?: number;
|
|
302
|
+
/**
|
|
303
|
+
* When `true`, fail instead of falling back to another port if
|
|
304
|
+
* {@link port} is already in use.
|
|
305
|
+
* @default false
|
|
306
|
+
*/
|
|
307
|
+
strictPort?: boolean;
|
|
308
|
+
};
|
|
310
309
|
}
|
|
311
310
|
|
|
312
311
|
export type Worker<Bindings extends WorkerBindings = any> = Resource<
|
|
@@ -773,28 +772,29 @@ export const LiveWorkerProvider = () =>
|
|
|
773
772
|
Effect.gen(function* () {
|
|
774
773
|
const path = yield* Path.Path;
|
|
775
774
|
|
|
776
|
-
const { accountId } = yield* CloudflareEnvironment;
|
|
777
775
|
const bundler = yield* WorkerBundle;
|
|
778
776
|
const stack = yield* Stack;
|
|
779
777
|
|
|
780
|
-
const createScriptSubdomain = yield* workers.createScriptSubdomain;
|
|
781
|
-
const deleteScript = yield* workers.deleteScript;
|
|
782
|
-
const getScriptSubdomain = yield* workers.getScriptSubdomain;
|
|
783
|
-
const getScriptSchedule = yield* workers.getScriptSchedule;
|
|
784
|
-
const getScriptSettings = yield* workers.getScriptScriptAndVersionSetting;
|
|
785
|
-
const getSubdomain = yield* workers.getSubdomain;
|
|
786
|
-
const putScript = yield* workers.putScript;
|
|
787
|
-
const putScriptSchedule = yield* workers.putScriptSchedule;
|
|
788
|
-
const putDomain = yield* workers.putDomain;
|
|
789
|
-
const listDomains = yield* workers.listDomains;
|
|
790
|
-
const deleteDomain = yield* workers.deleteDomain;
|
|
791
|
-
const listZones = yield* zones.listZones;
|
|
778
|
+
// const createScriptSubdomain = yield* workers.createScriptSubdomain;
|
|
779
|
+
// const deleteScript = yield* workers.deleteScript;
|
|
780
|
+
// const getScriptSubdomain = yield* workers.getScriptSubdomain;
|
|
781
|
+
// const getScriptSchedule = yield* workers.getScriptSchedule;
|
|
782
|
+
// const getScriptSettings = yield* workers.getScriptScriptAndVersionSetting;
|
|
783
|
+
// const getSubdomain = yield* workers.getSubdomain;
|
|
784
|
+
// const putScript = yield* workers.putScript;
|
|
785
|
+
// const putScriptSchedule = yield* workers.putScriptSchedule;
|
|
786
|
+
// const putDomain = yield* workers.putDomain;
|
|
787
|
+
// const listDomains = yield* workers.listDomains;
|
|
788
|
+
// const deleteDomain = yield* workers.deleteDomain;
|
|
789
|
+
// const listZones = yield* zones.listZones;
|
|
792
790
|
const telemetry = yield* CloudflareLogs;
|
|
793
791
|
|
|
794
792
|
const getAccountSubdomain = (accountId: string) =>
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
793
|
+
workers
|
|
794
|
+
.getSubdomain({
|
|
795
|
+
accountId,
|
|
796
|
+
})
|
|
797
|
+
.pipe(Effect.map((result) => result.subdomain));
|
|
798
798
|
|
|
799
799
|
// Toggle the workers.dev subdomain via `POST /subdomain` with
|
|
800
800
|
// `enabled: true | false`. Mirrors the upstream Alchemy
|
|
@@ -802,13 +802,18 @@ export const LiveWorkerProvider = () =>
|
|
|
802
802
|
// When enabling we also set `previewsEnabled: true` so the
|
|
803
803
|
// script is reachable both at its stable workers.dev URL and at
|
|
804
804
|
// version-preview URLs; on disable we send just `enabled: false`.
|
|
805
|
-
const setWorkerSubdomain = (
|
|
806
|
-
|
|
805
|
+
const setWorkerSubdomain = Effect.fnUntraced(function* (
|
|
806
|
+
name: string,
|
|
807
|
+
enabled: boolean,
|
|
808
|
+
) {
|
|
809
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
810
|
+
return yield* workers.createScriptSubdomain({
|
|
807
811
|
accountId,
|
|
808
812
|
scriptName: name,
|
|
809
813
|
enabled,
|
|
810
814
|
previewsEnabled: enabled ? true : undefined,
|
|
811
815
|
});
|
|
816
|
+
});
|
|
812
817
|
|
|
813
818
|
// Convert non-ASCII hostnames (emoji, IDN, etc.) to punycode so the
|
|
814
819
|
// Cloudflare API receives the form it stores domains in. `new URL(...)`
|
|
@@ -835,16 +840,22 @@ export const LiveWorkerProvider = () =>
|
|
|
835
840
|
const normalizeCrons = (crons: string[] | undefined): string[] =>
|
|
836
841
|
Array.from(new Set(crons ?? []));
|
|
837
842
|
|
|
838
|
-
const getWorkerCrons = (scriptName: string)
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
843
|
+
const getWorkerCrons = Effect.fnUntraced(function* (scriptName: string) {
|
|
844
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
845
|
+
return yield* workers
|
|
846
|
+
.getScriptSchedule({
|
|
847
|
+
accountId,
|
|
848
|
+
scriptName,
|
|
849
|
+
})
|
|
850
|
+
.pipe(
|
|
851
|
+
Effect.map((response) =>
|
|
852
|
+
normalizeCrons(
|
|
853
|
+
response.schedules.map((schedule) => schedule.cron),
|
|
854
|
+
),
|
|
855
|
+
),
|
|
856
|
+
Effect.catchTag("WorkerNotFound", () => Effect.succeed([])),
|
|
857
|
+
);
|
|
858
|
+
});
|
|
848
859
|
|
|
849
860
|
const reconcileCrons = (
|
|
850
861
|
scriptName: string,
|
|
@@ -853,6 +864,7 @@ export const LiveWorkerProvider = () =>
|
|
|
853
864
|
session: ScopedPlanStatusSession,
|
|
854
865
|
) =>
|
|
855
866
|
Effect.gen(function* () {
|
|
867
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
856
868
|
const live = yield* getWorkerCrons(scriptName);
|
|
857
869
|
const desiredSorted = [...desired].sort();
|
|
858
870
|
const liveSorted = [...live].sort();
|
|
@@ -868,19 +880,21 @@ export const LiveWorkerProvider = () =>
|
|
|
868
880
|
);
|
|
869
881
|
}
|
|
870
882
|
|
|
871
|
-
const result = yield*
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
883
|
+
const result = yield* workers
|
|
884
|
+
.putScriptSchedule({
|
|
885
|
+
accountId,
|
|
886
|
+
scriptName,
|
|
887
|
+
body: desired.map((cron) => ({ cron })),
|
|
888
|
+
})
|
|
889
|
+
.pipe(
|
|
890
|
+
Effect.retry({
|
|
891
|
+
while: (error: { _tag?: string }) =>
|
|
892
|
+
error?._tag === "WorkerNotFound",
|
|
893
|
+
schedule: Schedule.exponential(200).pipe(
|
|
894
|
+
Schedule.both(Schedule.recurs(15)),
|
|
895
|
+
),
|
|
896
|
+
}),
|
|
897
|
+
);
|
|
884
898
|
return normalizeCrons(
|
|
885
899
|
result.schedules.map((schedule) => schedule.cron),
|
|
886
900
|
);
|
|
@@ -899,9 +913,9 @@ export const LiveWorkerProvider = () =>
|
|
|
899
913
|
const cached = zoneCache.get(hostname);
|
|
900
914
|
if (cached) return cached;
|
|
901
915
|
|
|
902
|
-
const zoneList = yield*
|
|
903
|
-
|
|
904
|
-
|
|
916
|
+
const zoneList = yield* zones
|
|
917
|
+
.listZones({})
|
|
918
|
+
.pipe(Effect.map((response) => response.result ?? []));
|
|
905
919
|
for (const zone of zoneList) {
|
|
906
920
|
zoneCache.set(zone.name, zone.id);
|
|
907
921
|
}
|
|
@@ -923,32 +937,35 @@ export const LiveWorkerProvider = () =>
|
|
|
923
937
|
|
|
924
938
|
const reconcileDomains = (scriptName: string, desired: string[]) =>
|
|
925
939
|
Effect.gen(function* () {
|
|
940
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
926
941
|
// Always query the live state of domains attached to *this*
|
|
927
942
|
// Worker rather than trusting `_previous` from local state.
|
|
928
943
|
// State may have been wiped, populated by another machine, or
|
|
929
944
|
// simply be out of date. Without this we PUT domains that are
|
|
930
945
|
// already registered to this same Worker and Cloudflare
|
|
931
946
|
// returns a confusing "hostname already in use" error.
|
|
932
|
-
const liveAll = yield*
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
947
|
+
const liveAll = yield* workers
|
|
948
|
+
.listDomains({
|
|
949
|
+
accountId,
|
|
950
|
+
service: scriptName,
|
|
951
|
+
})
|
|
952
|
+
.pipe(
|
|
953
|
+
Effect.map((r) =>
|
|
954
|
+
(r.result ?? []).flatMap((d) =>
|
|
955
|
+
d.id && d.hostname && d.zoneId
|
|
956
|
+
? [
|
|
957
|
+
{
|
|
958
|
+
id: d.id,
|
|
959
|
+
hostname: d.hostname,
|
|
960
|
+
zoneId: d.zoneId,
|
|
961
|
+
service: d.service ?? undefined,
|
|
962
|
+
},
|
|
963
|
+
]
|
|
964
|
+
: [],
|
|
965
|
+
),
|
|
948
966
|
),
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
);
|
|
967
|
+
Effect.catch(() => Effect.succeed([])),
|
|
968
|
+
);
|
|
952
969
|
|
|
953
970
|
const desiredSet = new Set(desired);
|
|
954
971
|
const liveByHostname = new Map(liveAll.map((d) => [d.hostname, d]));
|
|
@@ -958,9 +975,9 @@ export const LiveWorkerProvider = () =>
|
|
|
958
975
|
const toRemove = liveAll.filter((d) => !desiredSet.has(d.hostname));
|
|
959
976
|
yield* Effect.all(
|
|
960
977
|
toRemove.map((d) =>
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
978
|
+
workers
|
|
979
|
+
.deleteDomain({ accountId, domainId: d.id })
|
|
980
|
+
.pipe(Effect.catchTag("DomainNotFound", () => Effect.void)),
|
|
964
981
|
),
|
|
965
982
|
{ concurrency: "unbounded" },
|
|
966
983
|
);
|
|
@@ -987,17 +1004,19 @@ export const LiveWorkerProvider = () =>
|
|
|
987
1004
|
// Not attached to this Worker — but it could still belong
|
|
988
1005
|
// to another Worker. Check before we try to PUT so we can
|
|
989
1006
|
// emit a helpful error instead of the raw 409.
|
|
990
|
-
const otherOwner = yield*
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1007
|
+
const otherOwner = yield* workers
|
|
1008
|
+
.listDomains({
|
|
1009
|
+
accountId,
|
|
1010
|
+
hostname,
|
|
1011
|
+
})
|
|
1012
|
+
.pipe(
|
|
1013
|
+
Effect.map((r) =>
|
|
1014
|
+
(r.result ?? []).find(
|
|
1015
|
+
(d) => d.hostname === hostname && d.service !== scriptName,
|
|
1016
|
+
),
|
|
997
1017
|
),
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
);
|
|
1018
|
+
Effect.catch(() => Effect.succeed(undefined)),
|
|
1019
|
+
);
|
|
1001
1020
|
if (otherOwner?.id) {
|
|
1002
1021
|
return yield* Effect.die(
|
|
1003
1022
|
new Error(
|
|
@@ -1013,20 +1032,22 @@ export const LiveWorkerProvider = () =>
|
|
|
1013
1032
|
// PUT /accounts/.../workers/domains right after `putScript`
|
|
1014
1033
|
// can return `WorkerNotFound` until Cloudflare's script
|
|
1015
1034
|
// registry has propagated. Retry on that specific tag.
|
|
1016
|
-
const res = yield*
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1035
|
+
const res = yield* workers
|
|
1036
|
+
.putDomain({
|
|
1037
|
+
accountId,
|
|
1038
|
+
hostname,
|
|
1039
|
+
service: scriptName,
|
|
1040
|
+
zoneId,
|
|
1041
|
+
})
|
|
1042
|
+
.pipe(
|
|
1043
|
+
Effect.retry({
|
|
1044
|
+
while: (error: { _tag?: string }) =>
|
|
1045
|
+
error?._tag === "WorkerNotFound",
|
|
1046
|
+
schedule: Schedule.exponential(200).pipe(
|
|
1047
|
+
Schedule.both(Schedule.recurs(15)),
|
|
1048
|
+
),
|
|
1049
|
+
}),
|
|
1050
|
+
);
|
|
1030
1051
|
return {
|
|
1031
1052
|
hostname,
|
|
1032
1053
|
id: res.id ?? "",
|
|
@@ -1090,36 +1111,39 @@ export const LiveWorkerProvider = () =>
|
|
|
1090
1111
|
scriptName: string,
|
|
1091
1112
|
expectedClassNames: readonly string[],
|
|
1092
1113
|
) {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
new MissingDurableObjectNamespaces({
|
|
1105
|
-
scriptName,
|
|
1106
|
-
expected: missing,
|
|
1107
|
-
}),
|
|
1114
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
1115
|
+
return yield* workers
|
|
1116
|
+
.getScriptScriptAndVersionSetting({
|
|
1117
|
+
accountId,
|
|
1118
|
+
scriptName,
|
|
1119
|
+
})
|
|
1120
|
+
.pipe(
|
|
1121
|
+
Effect.map((settings) => {
|
|
1122
|
+
const namespaces = getDurableObjectNamespaces(settings.bindings);
|
|
1123
|
+
const missing = expectedClassNames.filter(
|
|
1124
|
+
(className) => !namespaces[className],
|
|
1108
1125
|
);
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1126
|
+
if (missing.length > 0) {
|
|
1127
|
+
return Effect.fail(
|
|
1128
|
+
new MissingDurableObjectNamespaces({
|
|
1129
|
+
scriptName,
|
|
1130
|
+
expected: missing,
|
|
1131
|
+
}),
|
|
1132
|
+
);
|
|
1133
|
+
}
|
|
1134
|
+
return Effect.succeed({
|
|
1135
|
+
settings,
|
|
1136
|
+
durableObjectNamespaces: namespaces,
|
|
1137
|
+
});
|
|
1138
|
+
}),
|
|
1139
|
+
Effect.flatten,
|
|
1140
|
+
Effect.retry({
|
|
1141
|
+
while: (error) => error._tag === "MissingDurableObjectNamespaces",
|
|
1142
|
+
schedule: Schedule.exponential(100).pipe(
|
|
1143
|
+
Schedule.both(Schedule.recurs(20)),
|
|
1144
|
+
),
|
|
1145
|
+
}),
|
|
1146
|
+
);
|
|
1123
1147
|
});
|
|
1124
1148
|
|
|
1125
1149
|
const prepareAssets = Effect.fnUntraced(function* (
|
|
@@ -1129,15 +1153,9 @@ export const LiveWorkerProvider = () =>
|
|
|
1129
1153
|
return undefined;
|
|
1130
1154
|
}
|
|
1131
1155
|
|
|
1132
|
-
if (
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
"hash" in assets
|
|
1136
|
-
) {
|
|
1137
|
-
return yield* readAssets({
|
|
1138
|
-
directory: assets.path as string,
|
|
1139
|
-
config: assets.config,
|
|
1140
|
-
});
|
|
1156
|
+
if (typeof assets === "object" && "hash" in assets) {
|
|
1157
|
+
const { hash: _, ...config } = assets;
|
|
1158
|
+
return yield* readAssets(config);
|
|
1141
1159
|
}
|
|
1142
1160
|
|
|
1143
1161
|
// Handle string path or AssetsProps
|
|
@@ -1185,8 +1203,8 @@ export const LiveWorkerProvider = () =>
|
|
|
1185
1203
|
: Redacted.isRedacted(value) &&
|
|
1186
1204
|
typeof Redacted.value(value) === "string"
|
|
1187
1205
|
? Redacted.value(value)
|
|
1188
|
-
:
|
|
1189
|
-
? yield* value
|
|
1206
|
+
: Effect.isEffect(value)
|
|
1207
|
+
? yield* value as Effect.Effect<any>
|
|
1190
1208
|
: undefined,
|
|
1191
1209
|
];
|
|
1192
1210
|
}),
|
|
@@ -1208,11 +1226,10 @@ export const LiveWorkerProvider = () =>
|
|
|
1208
1226
|
[
|
|
1209
1227
|
assetsDirectory
|
|
1210
1228
|
? readAssets({
|
|
1229
|
+
...(props.assets && typeof props.assets !== "string"
|
|
1230
|
+
? props.assets
|
|
1231
|
+
: undefined),
|
|
1211
1232
|
directory: assetsDirectory,
|
|
1212
|
-
config:
|
|
1213
|
-
typeof props.assets === "object" && "config" in props.assets
|
|
1214
|
-
? props.assets.config
|
|
1215
|
-
: undefined,
|
|
1216
1233
|
})
|
|
1217
1234
|
: Effect.succeed(undefined),
|
|
1218
1235
|
serverBundle
|
|
@@ -1298,6 +1315,15 @@ export const LiveWorkerProvider = () =>
|
|
|
1298
1315
|
})),
|
|
1299
1316
|
);
|
|
1300
1317
|
|
|
1318
|
+
const normalizePrebuiltAssets = (
|
|
1319
|
+
assets: WorkerProps["assets"],
|
|
1320
|
+
output: Worker["Attributes"] | undefined,
|
|
1321
|
+
) => {
|
|
1322
|
+
if (!Predicate.hasProperty(assets, "hash")) return undefined;
|
|
1323
|
+
const { directory: _, hash, ...config } = assets;
|
|
1324
|
+
return { config, hash, skip: hash === output?.hash?.assets };
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1301
1327
|
const putWorker = Effect.fnUntraced(function* (
|
|
1302
1328
|
id: string,
|
|
1303
1329
|
news: WorkerProps,
|
|
@@ -1307,6 +1333,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1307
1333
|
session: ScopedPlanStatusSession,
|
|
1308
1334
|
existingSettings?: workers.GetScriptScriptAndVersionSettingResponse,
|
|
1309
1335
|
) {
|
|
1336
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
1310
1337
|
const name = yield* createWorkerName(id, news.name);
|
|
1311
1338
|
yield* Effect.logInfo(
|
|
1312
1339
|
`Cloudflare Worker ${olds ? "update" : "create"}: preparing bundle for ${name}`,
|
|
@@ -1316,28 +1343,14 @@ export const LiveWorkerProvider = () =>
|
|
|
1316
1343
|
// entirely and tell Cloudflare to keep the assets it already
|
|
1317
1344
|
// has bound to this script. The disk read is the expensive
|
|
1318
1345
|
// part; the script PUT happens either way.
|
|
1319
|
-
const
|
|
1320
|
-
const precomputedAssetsHash =
|
|
1321
|
-
news.assets &&
|
|
1322
|
-
typeof news.assets === "object" &&
|
|
1323
|
-
"path" in news.assets &&
|
|
1324
|
-
"hash" in news.assets
|
|
1325
|
-
? (news.assets.hash as string)
|
|
1326
|
-
: undefined;
|
|
1327
|
-
const assetsConfigFromProps =
|
|
1328
|
-
news.assets &&
|
|
1329
|
-
typeof news.assets === "object" &&
|
|
1330
|
-
"config" in news.assets
|
|
1331
|
-
? news.assets.config
|
|
1332
|
-
: undefined;
|
|
1333
|
-
const skipAssetsRead =
|
|
1334
|
-
precomputedAssetsHash !== undefined &&
|
|
1335
|
-
precomputedAssetsHash === previousAssetsHash;
|
|
1346
|
+
const prebuiltAssets = normalizePrebuiltAssets(news.assets, output);
|
|
1336
1347
|
const {
|
|
1337
1348
|
assets,
|
|
1338
1349
|
bundle,
|
|
1339
1350
|
hash: preparedHash,
|
|
1340
|
-
} = yield* prepareAssetsAndBundle(id, news, {
|
|
1351
|
+
} = yield* prepareAssetsAndBundle(id, news, {
|
|
1352
|
+
skipAssetsRead: prebuiltAssets?.skip,
|
|
1353
|
+
});
|
|
1341
1354
|
// When the caller supplied a precomputed hash (e.g. via
|
|
1342
1355
|
// `Build.Command`), store *that* hash in output state so the
|
|
1343
1356
|
// next diff can short-circuit by comparing it directly. The
|
|
@@ -1346,7 +1359,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1346
1359
|
// build-input hash and will never match it on the next pass.
|
|
1347
1360
|
const hash = {
|
|
1348
1361
|
...preparedHash,
|
|
1349
|
-
assets:
|
|
1362
|
+
assets: prebuiltAssets?.hash ?? preparedHash.assets,
|
|
1350
1363
|
} satisfies Worker["Attributes"]["hash"];
|
|
1351
1364
|
const metadataBindings = bindings.flatMap((b) => b.data.bindings ?? []);
|
|
1352
1365
|
const expectedDurableObjectClassNames =
|
|
@@ -1355,16 +1368,14 @@ export const LiveWorkerProvider = () =>
|
|
|
1355
1368
|
| workers.PutScriptRequest["metadata"]["assets"]
|
|
1356
1369
|
| undefined;
|
|
1357
1370
|
let keepAssets = false;
|
|
1358
|
-
if (
|
|
1371
|
+
if (prebuiltAssets?.skip) {
|
|
1359
1372
|
// Hash matched what's already on Cloudflare: keep the
|
|
1360
1373
|
// existing asset manifest and skip the upload session.
|
|
1361
1374
|
yield* Effect.logInfo(
|
|
1362
1375
|
`Cloudflare Worker update: assets unchanged for ${name}, keeping existing`,
|
|
1363
1376
|
);
|
|
1364
1377
|
keepAssets = true;
|
|
1365
|
-
metadataAssets =
|
|
1366
|
-
? { config: assetsConfigFromProps }
|
|
1367
|
-
: undefined;
|
|
1378
|
+
metadataAssets = { config: prebuiltAssets.config };
|
|
1368
1379
|
metadataBindings.push({
|
|
1369
1380
|
type: "assets",
|
|
1370
1381
|
name: "ASSETS",
|
|
@@ -1377,7 +1388,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1377
1388
|
// disk). In that case still keep the existing manifest and
|
|
1378
1389
|
// skip the upload session — Cloudflare's content-addressed
|
|
1379
1390
|
// session would no-op on every byte anyway.
|
|
1380
|
-
if (assets.hash ===
|
|
1391
|
+
if (assets.hash === prebuiltAssets?.hash) {
|
|
1381
1392
|
yield* Effect.logInfo(
|
|
1382
1393
|
`Cloudflare Worker update: assets unchanged for ${name}, keeping existing`,
|
|
1383
1394
|
);
|
|
@@ -1465,13 +1476,15 @@ export const LiveWorkerProvider = () =>
|
|
|
1465
1476
|
// Read existing worker settings for migration tracking
|
|
1466
1477
|
const oldSettings =
|
|
1467
1478
|
existingSettings ??
|
|
1468
|
-
(yield*
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1479
|
+
(yield* workers
|
|
1480
|
+
.getScriptScriptAndVersionSetting({
|
|
1481
|
+
accountId,
|
|
1482
|
+
scriptName: name,
|
|
1483
|
+
})
|
|
1484
|
+
.pipe(
|
|
1485
|
+
Effect.map((s) => s as typeof s | undefined),
|
|
1486
|
+
Effect.catch(() => Effect.succeed(undefined)),
|
|
1487
|
+
));
|
|
1475
1488
|
|
|
1476
1489
|
const oldTags = Array.from(new Set(oldSettings?.tags ?? []));
|
|
1477
1490
|
const oldBindings = oldSettings?.bindings ?? [];
|
|
@@ -1628,44 +1641,46 @@ export const LiveWorkerProvider = () =>
|
|
|
1628
1641
|
tailConsumers: undefined,
|
|
1629
1642
|
usageModel: undefined,
|
|
1630
1643
|
};
|
|
1631
|
-
const worker = yield*
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
...
|
|
1659
|
-
|
|
1660
|
-
|
|
1644
|
+
const worker = yield* workers
|
|
1645
|
+
.putScript({
|
|
1646
|
+
accountId,
|
|
1647
|
+
scriptName: name,
|
|
1648
|
+
metadata,
|
|
1649
|
+
files: bundle.files,
|
|
1650
|
+
})
|
|
1651
|
+
.pipe(
|
|
1652
|
+
Effect.catch((err) => {
|
|
1653
|
+
// When adopting a Worker managed by Wrangler (or after a previous
|
|
1654
|
+
// deploy with mismatched migrations), the old_tag precondition
|
|
1655
|
+
// fails. The only way to discover the actual tag is through the
|
|
1656
|
+
// error message — getScriptSettings is meant to return it but
|
|
1657
|
+
// doesn't at runtime.
|
|
1658
|
+
const msg = String(
|
|
1659
|
+
typeof err === "object" && err !== null && "message" in err
|
|
1660
|
+
? err.message
|
|
1661
|
+
: err,
|
|
1662
|
+
);
|
|
1663
|
+
const expectedTag = msg.match(
|
|
1664
|
+
/when expected tag is ['"]?([^'"]+)['"]?/,
|
|
1665
|
+
)?.[1];
|
|
1666
|
+
if (expectedTag) {
|
|
1667
|
+
return workers.putScript({
|
|
1668
|
+
accountId,
|
|
1669
|
+
scriptName: name,
|
|
1670
|
+
metadata: {
|
|
1671
|
+
...metadata,
|
|
1672
|
+
migrations: {
|
|
1673
|
+
...migrations,
|
|
1674
|
+
oldTag: expectedTag,
|
|
1675
|
+
newTag: bumpMigrationTagVersion(expectedTag),
|
|
1676
|
+
},
|
|
1661
1677
|
},
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
);
|
|
1678
|
+
files: bundle.files,
|
|
1679
|
+
});
|
|
1680
|
+
}
|
|
1681
|
+
return Effect.fail(err as any);
|
|
1682
|
+
}),
|
|
1683
|
+
);
|
|
1669
1684
|
const { settings, durableObjectNamespaces } =
|
|
1670
1685
|
yield* getWorkerSettingsWithDurableObjects(
|
|
1671
1686
|
name,
|
|
@@ -1679,15 +1694,17 @@ export const LiveWorkerProvider = () =>
|
|
|
1679
1694
|
// Cloudflare currently has it (disabled by default, or whatever
|
|
1680
1695
|
// a previous failed/external action left it as).
|
|
1681
1696
|
const desiredSubdomainEnabled = news.url !== false;
|
|
1682
|
-
const observedSubdomain = yield*
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1697
|
+
const observedSubdomain = yield* workers
|
|
1698
|
+
.getScriptSubdomain({
|
|
1699
|
+
accountId,
|
|
1700
|
+
scriptName: name,
|
|
1701
|
+
})
|
|
1702
|
+
.pipe(
|
|
1703
|
+
Effect.orElseSucceed<workers.GetScriptSubdomainResponse>(() => ({
|
|
1704
|
+
enabled: false,
|
|
1705
|
+
previewsEnabled: false,
|
|
1706
|
+
})),
|
|
1707
|
+
);
|
|
1691
1708
|
if (
|
|
1692
1709
|
desiredSubdomainEnabled !== observedSubdomain.enabled ||
|
|
1693
1710
|
desiredSubdomainEnabled !== observedSubdomain.previewsEnabled
|
|
@@ -1764,12 +1781,9 @@ export const LiveWorkerProvider = () =>
|
|
|
1764
1781
|
if (!props.assets) {
|
|
1765
1782
|
return false;
|
|
1766
1783
|
}
|
|
1767
|
-
const assetsHash =
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
"hash" in props.assets
|
|
1771
|
-
? (props.assets.hash as string)
|
|
1772
|
-
: undefined;
|
|
1784
|
+
const assetsHash = Predicate.hasProperty(props.assets, "hash")
|
|
1785
|
+
? props.assets.hash
|
|
1786
|
+
: undefined;
|
|
1773
1787
|
if (assetsHash === undefined) {
|
|
1774
1788
|
return true;
|
|
1775
1789
|
}
|
|
@@ -1807,12 +1821,9 @@ export const LiveWorkerProvider = () =>
|
|
|
1807
1821
|
// assume the assets changed; `putWorker` will read once,
|
|
1808
1822
|
// hash, and use `keepAssets` if it turns out nothing actually
|
|
1809
1823
|
// changed.
|
|
1810
|
-
const assetsHash =
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
"hash" in props.assets
|
|
1814
|
-
? (props.assets.hash as string)
|
|
1815
|
-
: undefined;
|
|
1824
|
+
const assetsHash = Predicate.hasProperty(props.assets, "hash")
|
|
1825
|
+
? props.assets.hash
|
|
1826
|
+
: undefined;
|
|
1816
1827
|
if (assetsHash === undefined) {
|
|
1817
1828
|
return true;
|
|
1818
1829
|
}
|
|
@@ -1828,6 +1839,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1828
1839
|
output,
|
|
1829
1840
|
newBindings,
|
|
1830
1841
|
}) {
|
|
1842
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
1831
1843
|
if (!isResolved(news)) return undefined;
|
|
1832
1844
|
if ((output?.accountId ?? accountId) !== accountId) {
|
|
1833
1845
|
return { action: "replace" };
|
|
@@ -1876,6 +1888,7 @@ export const LiveWorkerProvider = () =>
|
|
|
1876
1888
|
}
|
|
1877
1889
|
}),
|
|
1878
1890
|
precreate: Effect.fnUntraced(function* ({ id, news, session }) {
|
|
1891
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
1879
1892
|
const name = yield* createWorkerName(id, news.name);
|
|
1880
1893
|
const exportMap = (news.exports ?? {}) as Record<string, unknown>;
|
|
1881
1894
|
const durableObjects = Object.keys(exportMap)
|
|
@@ -1905,12 +1918,16 @@ export const LiveWorkerProvider = () =>
|
|
|
1905
1918
|
durableObjects,
|
|
1906
1919
|
)}`,
|
|
1907
1920
|
);
|
|
1908
|
-
const existingSettings = yield*
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1921
|
+
const existingSettings = yield* workers
|
|
1922
|
+
.getScriptScriptAndVersionSetting({
|
|
1923
|
+
accountId,
|
|
1924
|
+
scriptName: name,
|
|
1925
|
+
})
|
|
1926
|
+
.pipe(
|
|
1927
|
+
Effect.catchTag("WorkerNotFound", () =>
|
|
1928
|
+
Effect.succeed(undefined),
|
|
1929
|
+
),
|
|
1930
|
+
);
|
|
1914
1931
|
let durableObjectNamespaces = getDurableObjectNamespaces(
|
|
1915
1932
|
existingSettings?.bindings,
|
|
1916
1933
|
);
|
|
@@ -1931,64 +1948,66 @@ export const LiveWorkerProvider = () =>
|
|
|
1931
1948
|
`export class ${className} extends DurableObject {}`,
|
|
1932
1949
|
)
|
|
1933
1950
|
.join("\n")}`;
|
|
1934
|
-
yield*
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
logs: {
|
|
1951
|
+
yield* workers
|
|
1952
|
+
.putScript({
|
|
1953
|
+
accountId,
|
|
1954
|
+
scriptName: name,
|
|
1955
|
+
metadata: {
|
|
1956
|
+
mainModule,
|
|
1957
|
+
bindings:
|
|
1958
|
+
doClasses.length > 0
|
|
1959
|
+
? doClasses.map((className) => ({
|
|
1960
|
+
type: "durable_object_namespace" as const,
|
|
1961
|
+
name: className,
|
|
1962
|
+
className,
|
|
1963
|
+
}))
|
|
1964
|
+
: undefined,
|
|
1965
|
+
...getCompatibility(news),
|
|
1966
|
+
containers,
|
|
1967
|
+
migrations:
|
|
1968
|
+
doClasses.length > 0
|
|
1969
|
+
? {
|
|
1970
|
+
oldTag: undefined,
|
|
1971
|
+
newTag: undefined,
|
|
1972
|
+
newClasses: [],
|
|
1973
|
+
deletedClasses: [],
|
|
1974
|
+
renamedClasses: [],
|
|
1975
|
+
transferredClasses: [],
|
|
1976
|
+
newSqliteClasses: doClasses,
|
|
1977
|
+
}
|
|
1978
|
+
: undefined,
|
|
1979
|
+
observability: news.observability ?? {
|
|
1964
1980
|
enabled: true,
|
|
1965
|
-
|
|
1981
|
+
logs: {
|
|
1982
|
+
enabled: true,
|
|
1983
|
+
invocationLogs: true,
|
|
1984
|
+
},
|
|
1966
1985
|
},
|
|
1986
|
+
tags,
|
|
1967
1987
|
},
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1988
|
+
files: [
|
|
1989
|
+
new File([placeholderScript], mainModule, {
|
|
1990
|
+
type: "application/javascript+module",
|
|
1991
|
+
}),
|
|
1992
|
+
],
|
|
1993
|
+
})
|
|
1994
|
+
.pipe(
|
|
1995
|
+
// Cloudflare's PUT /workers/scripts/{name} intermittently
|
|
1996
|
+
// returns code 10002 / "An unknown error has occurred" on the
|
|
1997
|
+
// first put for a fresh worker name. Surfaced as the shared
|
|
1998
|
+
// `InternalServerError` upstream (alchemy-run/distilled#290).
|
|
1999
|
+
// Also match `UnknownCloudflareError` for older
|
|
2000
|
+
// @distilled.cloud/cloudflare versions that haven't picked
|
|
2001
|
+
// up the patch yet.
|
|
2002
|
+
Effect.retry({
|
|
2003
|
+
while: (e) =>
|
|
2004
|
+
e._tag === "InternalServerError" ||
|
|
2005
|
+
e._tag === "UnknownCloudflareError",
|
|
2006
|
+
schedule: Schedule.exponential(1000).pipe(
|
|
2007
|
+
Schedule.both(Schedule.recurs(5)),
|
|
2008
|
+
),
|
|
1973
2009
|
}),
|
|
1974
|
-
|
|
1975
|
-
}).pipe(
|
|
1976
|
-
// Cloudflare's PUT /workers/scripts/{name} intermittently
|
|
1977
|
-
// returns code 10002 / "An unknown error has occurred" on the
|
|
1978
|
-
// first put for a fresh worker name. Surfaced as the shared
|
|
1979
|
-
// `InternalServerError` upstream (alchemy-run/distilled#290).
|
|
1980
|
-
// Also match `UnknownCloudflareError` for older
|
|
1981
|
-
// @distilled.cloud/cloudflare versions that haven't picked
|
|
1982
|
-
// up the patch yet.
|
|
1983
|
-
Effect.retry({
|
|
1984
|
-
while: (e: any) =>
|
|
1985
|
-
e._tag === "InternalServerError" ||
|
|
1986
|
-
e._tag === "UnknownCloudflareError",
|
|
1987
|
-
schedule: Schedule.exponential(1000).pipe(
|
|
1988
|
-
Schedule.both(Schedule.recurs(5)),
|
|
1989
|
-
),
|
|
1990
|
-
}),
|
|
1991
|
-
);
|
|
2010
|
+
);
|
|
1992
2011
|
if (doClasses.length > 0) {
|
|
1993
2012
|
({ durableObjectNamespaces } =
|
|
1994
2013
|
yield* getWorkerSettingsWithDurableObjects(name, doClasses));
|
|
@@ -2014,6 +2033,7 @@ export const LiveWorkerProvider = () =>
|
|
|
2014
2033
|
}),
|
|
2015
2034
|
read: Effect.fnUntraced(
|
|
2016
2035
|
function* ({ id, output, olds }) {
|
|
2036
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
2017
2037
|
const workerName =
|
|
2018
2038
|
output?.workerName ?? (yield* createWorkerName(id, olds?.name));
|
|
2019
2039
|
yield* Effect.logInfo(
|
|
@@ -2028,18 +2048,20 @@ export const LiveWorkerProvider = () =>
|
|
|
2028
2048
|
// surrounding `Effect.catchTag` turns into `undefined` — that's
|
|
2029
2049
|
// all the existence check we need.
|
|
2030
2050
|
const [subdomain, settings, domainsList] = yield* Effect.all([
|
|
2031
|
-
getScriptSubdomain({
|
|
2051
|
+
workers.getScriptSubdomain({
|
|
2032
2052
|
accountId,
|
|
2033
2053
|
scriptName: workerName,
|
|
2034
2054
|
}),
|
|
2035
|
-
|
|
2055
|
+
workers.getScriptScriptAndVersionSetting({
|
|
2036
2056
|
accountId,
|
|
2037
2057
|
scriptName: workerName,
|
|
2038
2058
|
}),
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2059
|
+
workers
|
|
2060
|
+
.listDomains({
|
|
2061
|
+
accountId,
|
|
2062
|
+
service: workerName,
|
|
2063
|
+
})
|
|
2064
|
+
.pipe(Effect.map((r) => r.result ?? [])),
|
|
2043
2065
|
]);
|
|
2044
2066
|
// Preserve the order the user provided in `olds.domain`. The
|
|
2045
2067
|
// Cloudflare API returns domains in non-deterministic order,
|
|
@@ -2108,6 +2130,7 @@ export const LiveWorkerProvider = () =>
|
|
|
2108
2130
|
output,
|
|
2109
2131
|
session,
|
|
2110
2132
|
}) {
|
|
2133
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
2111
2134
|
const name =
|
|
2112
2135
|
output?.workerName ?? (yield* createWorkerName(id, news.name));
|
|
2113
2136
|
const durableObjects = getDurableObjectBindings(bindings, name).map(
|
|
@@ -2130,12 +2153,16 @@ export const LiveWorkerProvider = () =>
|
|
|
2130
2153
|
// existing settings inform asset/migration decisions and let the
|
|
2131
2154
|
// reconciler converge whether the worker is brand-new, adopted, or
|
|
2132
2155
|
// an in-place update.
|
|
2133
|
-
const existingSettings = yield*
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2156
|
+
const existingSettings = yield* workers
|
|
2157
|
+
.getScriptScriptAndVersionSetting({
|
|
2158
|
+
accountId,
|
|
2159
|
+
scriptName: name,
|
|
2160
|
+
})
|
|
2161
|
+
.pipe(
|
|
2162
|
+
Effect.catchTag("WorkerNotFound", () =>
|
|
2163
|
+
Effect.succeed(undefined),
|
|
2164
|
+
),
|
|
2165
|
+
);
|
|
2139
2166
|
yield* Effect.logInfo(
|
|
2140
2167
|
`Cloudflare Worker reconcile: existing durable object tags ${JSON.stringify(
|
|
2141
2168
|
(existingSettings?.tags ?? []).filter((tag) =>
|
|
@@ -2168,40 +2195,46 @@ export const LiveWorkerProvider = () =>
|
|
|
2168
2195
|
// We no longer track `{ id, zoneId }` on the output; fetching
|
|
2169
2196
|
// straight from Cloudflare handles both the normal case and
|
|
2170
2197
|
// adopted workers whose domains we never recorded.
|
|
2171
|
-
const liveDomains = yield*
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2198
|
+
const liveDomains = yield* workers
|
|
2199
|
+
.listDomains({
|
|
2200
|
+
accountId: output.accountId,
|
|
2201
|
+
service: output.workerName,
|
|
2202
|
+
})
|
|
2203
|
+
.pipe(
|
|
2204
|
+
Effect.map((r) => r.result ?? []),
|
|
2205
|
+
Effect.catch(() => Effect.succeed([])),
|
|
2206
|
+
);
|
|
2178
2207
|
if (liveDomains.length) {
|
|
2179
2208
|
yield* Effect.all(
|
|
2180
2209
|
liveDomains.flatMap((d) =>
|
|
2181
2210
|
d.id
|
|
2182
2211
|
? [
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2212
|
+
workers
|
|
2213
|
+
.deleteDomain({
|
|
2214
|
+
accountId: output.accountId,
|
|
2215
|
+
domainId: d.id,
|
|
2216
|
+
})
|
|
2217
|
+
.pipe(
|
|
2218
|
+
Effect.catchTag("DomainNotFound", () => Effect.void),
|
|
2219
|
+
),
|
|
2189
2220
|
]
|
|
2190
2221
|
: [],
|
|
2191
2222
|
),
|
|
2192
2223
|
{ concurrency: "unbounded" },
|
|
2193
2224
|
);
|
|
2194
2225
|
}
|
|
2195
|
-
yield*
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2226
|
+
yield* workers
|
|
2227
|
+
.deleteScript({
|
|
2228
|
+
accountId: output.accountId,
|
|
2229
|
+
scriptName: output.workerName,
|
|
2230
|
+
// Force teardown of queue consumers, durable object classes, and
|
|
2231
|
+
// service bindings hanging off this worker. Without `force`, those
|
|
2232
|
+
// conditions raise QueueConsumerConflict / ServiceBindingConflict
|
|
2233
|
+
// and leave the script in CF. Alchemy is the source of truth for
|
|
2234
|
+
// the worker, so we want a hard delete on teardown.
|
|
2235
|
+
force: true,
|
|
2236
|
+
})
|
|
2237
|
+
.pipe(Effect.catchTag("WorkerNotFound", () => Effect.void));
|
|
2205
2238
|
}),
|
|
2206
2239
|
tail: ({ output }) =>
|
|
2207
2240
|
telemetry.tailScript({
|