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
|
@@ -120,143 +120,144 @@ export type VpcService = Resource<
|
|
|
120
120
|
*/
|
|
121
121
|
export const VpcService = Resource<VpcService>("Cloudflare.VpcService");
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
const listServices = connectivity.listDirectoryServices;
|
|
133
|
-
|
|
134
|
-
const createServiceName = (id: string, name: string | undefined) =>
|
|
135
|
-
Effect.gen(function* () {
|
|
136
|
-
if (name) return name;
|
|
137
|
-
return yield* createPhysicalName({
|
|
138
|
-
id,
|
|
139
|
-
lowercase: true,
|
|
140
|
-
maxLength: 63,
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
const findServiceByName = (name: string) =>
|
|
145
|
-
listServices.items({ accountId }).pipe(
|
|
146
|
-
Stream.filter((s) => s.name === name),
|
|
147
|
-
Stream.runHead,
|
|
148
|
-
Effect.map(Option.getOrUndefined),
|
|
149
|
-
);
|
|
123
|
+
const createServiceName = (id: string, name: string | undefined) =>
|
|
124
|
+
Effect.gen(function* () {
|
|
125
|
+
if (name) return name;
|
|
126
|
+
return yield* createPhysicalName({
|
|
127
|
+
id,
|
|
128
|
+
lowercase: true,
|
|
129
|
+
maxLength: 63,
|
|
130
|
+
});
|
|
131
|
+
});
|
|
150
132
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
const oldName = output?.serviceName
|
|
160
|
-
? output.serviceName
|
|
161
|
-
: yield* createServiceName(id, olds?.name);
|
|
162
|
-
if (name !== oldName) {
|
|
163
|
-
return { action: "update" } as const;
|
|
164
|
-
}
|
|
165
|
-
}),
|
|
166
|
-
reconcile: Effect.fn(function* ({ id, news, output }) {
|
|
167
|
-
const name = yield* createServiceName(id, news.name);
|
|
168
|
-
const acct = output?.accountId ?? accountId;
|
|
133
|
+
const findServiceByName = Effect.fnUntraced(function* (name: string) {
|
|
134
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
135
|
+
return yield* connectivity.listDirectoryServices.items({ accountId }).pipe(
|
|
136
|
+
Stream.filter((s) => s.name === name),
|
|
137
|
+
Stream.runHead,
|
|
138
|
+
Effect.map(Option.getOrUndefined),
|
|
139
|
+
);
|
|
140
|
+
});
|
|
169
141
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
142
|
+
export const VpcServiceProvider = () =>
|
|
143
|
+
Provider.succeed(VpcService, {
|
|
144
|
+
stables: ["serviceId", "accountId"],
|
|
145
|
+
diff: Effect.fn(function* ({ id, olds, news, output }) {
|
|
146
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
147
|
+
if (!isResolved(news)) return undefined;
|
|
148
|
+
if ((output?.accountId ?? accountId) !== accountId) {
|
|
149
|
+
return { action: "replace" } as const;
|
|
150
|
+
}
|
|
151
|
+
const name = yield* createServiceName(id, news.name);
|
|
152
|
+
const oldName = output?.serviceName
|
|
153
|
+
? output.serviceName
|
|
154
|
+
: yield* createServiceName(id, olds?.name);
|
|
155
|
+
if (name !== oldName) {
|
|
156
|
+
return { action: "update" } as const;
|
|
157
|
+
}
|
|
158
|
+
}),
|
|
159
|
+
reconcile: Effect.fn(function* ({ id, news, output }) {
|
|
160
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
161
|
+
const name = yield* createServiceName(id, news.name);
|
|
162
|
+
const acct = output?.accountId ?? accountId;
|
|
186
163
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
return yield* Effect.fail(err as never);
|
|
206
|
-
}
|
|
207
|
-
return yield* updateService({
|
|
208
|
-
accountId: acct,
|
|
209
|
-
serviceId: existing.serviceId,
|
|
210
|
-
name,
|
|
211
|
-
type: news.serviceType ?? "http",
|
|
212
|
-
httpPort: news.httpPort,
|
|
213
|
-
httpsPort: news.httpsPort,
|
|
214
|
-
host: news.host,
|
|
215
|
-
});
|
|
216
|
-
}),
|
|
217
|
-
),
|
|
218
|
-
);
|
|
219
|
-
return formatVpcService(result, acct);
|
|
220
|
-
}
|
|
164
|
+
// Observe — re-fetch the cached service; fall back to a name
|
|
165
|
+
// scan so we recover from out-of-band deletes or partial state
|
|
166
|
+
// persistence failures.
|
|
167
|
+
let observed: connectivity.GetDirectoryServiceResponse | undefined;
|
|
168
|
+
if (output?.serviceId) {
|
|
169
|
+
observed = yield* connectivity
|
|
170
|
+
.getDirectoryService({
|
|
171
|
+
accountId: acct,
|
|
172
|
+
serviceId: output.serviceId,
|
|
173
|
+
})
|
|
174
|
+
.pipe(Effect.catch(() => Effect.succeed(undefined)));
|
|
175
|
+
}
|
|
176
|
+
if (!observed) {
|
|
177
|
+
const match = yield* findServiceByName(name);
|
|
178
|
+
observed = match as
|
|
179
|
+
| connectivity.GetDirectoryServiceResponse
|
|
180
|
+
| undefined;
|
|
181
|
+
}
|
|
221
182
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
183
|
+
// Ensure — create if missing. Cloudflare rejects a duplicate
|
|
184
|
+
// name with a generic error; tolerate by adopting the existing
|
|
185
|
+
// service (when the caller opted in) and re-applying the
|
|
186
|
+
// desired configuration.
|
|
187
|
+
if (!observed || !observed.serviceId) {
|
|
188
|
+
const result = yield* connectivity
|
|
189
|
+
.createDirectoryService({
|
|
226
190
|
accountId: acct,
|
|
227
|
-
serviceId: observed.serviceId,
|
|
228
191
|
name,
|
|
229
|
-
type: news.serviceType ??
|
|
192
|
+
type: news.serviceType ?? "http",
|
|
230
193
|
httpPort: news.httpPort,
|
|
231
194
|
httpsPort: news.httpsPort,
|
|
232
195
|
host: news.host,
|
|
233
|
-
})
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
196
|
+
})
|
|
197
|
+
.pipe(
|
|
198
|
+
Effect.catch((err: unknown) =>
|
|
199
|
+
Effect.gen(function* () {
|
|
200
|
+
if (!news.adopt) return yield* Effect.fail(err as never);
|
|
201
|
+
const existing = yield* findServiceByName(name);
|
|
202
|
+
if (!existing || !existing.serviceId) {
|
|
203
|
+
return yield* Effect.fail(err as never);
|
|
204
|
+
}
|
|
205
|
+
return yield* connectivity.updateDirectoryService({
|
|
206
|
+
accountId: acct,
|
|
207
|
+
serviceId: existing.serviceId,
|
|
208
|
+
name,
|
|
209
|
+
type: news.serviceType ?? "http",
|
|
210
|
+
httpPort: news.httpPort,
|
|
211
|
+
httpsPort: news.httpsPort,
|
|
212
|
+
host: news.host,
|
|
213
|
+
});
|
|
214
|
+
}),
|
|
215
|
+
),
|
|
216
|
+
);
|
|
217
|
+
return formatVpcService(result, acct);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Sync — the Cloudflare update API replaces all mutable fields
|
|
221
|
+
// (name, ports, host) atomically, so always issue it so
|
|
222
|
+
// adoption and routine updates converge.
|
|
223
|
+
const result = yield* connectivity.updateDirectoryService({
|
|
224
|
+
accountId: acct,
|
|
225
|
+
serviceId: observed.serviceId,
|
|
226
|
+
name,
|
|
227
|
+
type: news.serviceType ?? observed.type ?? "http",
|
|
228
|
+
httpPort: news.httpPort,
|
|
229
|
+
httpsPort: news.httpsPort,
|
|
230
|
+
host: news.host,
|
|
231
|
+
});
|
|
232
|
+
return formatVpcService(result, acct);
|
|
233
|
+
}),
|
|
234
|
+
delete: Effect.fn(function* ({ output }) {
|
|
235
|
+
yield* connectivity
|
|
236
|
+
.deleteDirectoryService({
|
|
237
|
+
accountId: output.accountId,
|
|
238
|
+
serviceId: output.serviceId,
|
|
239
|
+
})
|
|
240
|
+
.pipe(Effect.catch(() => Effect.void));
|
|
241
|
+
}),
|
|
242
|
+
read: Effect.fn(function* ({ id, output, olds }) {
|
|
243
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
244
|
+
if (output?.serviceId) {
|
|
245
|
+
return yield* connectivity
|
|
246
|
+
.getDirectoryService({
|
|
238
247
|
accountId: output.accountId,
|
|
239
248
|
serviceId: output.serviceId,
|
|
240
|
-
})
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
const name = yield* createServiceName(id, olds?.name);
|
|
253
|
-
const existing = yield* findServiceByName(name);
|
|
254
|
-
if (!existing || !existing.serviceId) return undefined;
|
|
255
|
-
return formatVpcService(existing, accountId);
|
|
256
|
-
}),
|
|
257
|
-
};
|
|
249
|
+
})
|
|
250
|
+
.pipe(
|
|
251
|
+
Effect.map((s) => formatVpcService(s, output.accountId)),
|
|
252
|
+
Effect.catch(() => Effect.succeed(undefined)),
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
const name = yield* createServiceName(id, olds?.name);
|
|
256
|
+
const existing = yield* findServiceByName(name);
|
|
257
|
+
if (!existing || !existing.serviceId) return undefined;
|
|
258
|
+
return formatVpcService(existing, accountId);
|
|
258
259
|
}),
|
|
259
|
-
);
|
|
260
|
+
});
|
|
260
261
|
|
|
261
262
|
export const formatVpcService = (
|
|
262
263
|
service: {
|
|
@@ -44,7 +44,7 @@ export type VpcServiceRef = VpcServiceAttributes;
|
|
|
44
44
|
*/
|
|
45
45
|
export const VpcServiceRef = (props: VpcServiceRefProps) =>
|
|
46
46
|
Effect.gen(function* () {
|
|
47
|
-
const { accountId } = yield* CloudflareEnvironment;
|
|
47
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
48
48
|
if ("name" in props) {
|
|
49
49
|
const match = yield* connectivity.listDirectoryServices
|
|
50
50
|
.items({ accountId })
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import * as Output from "alchemy/Output";
|
|
1
2
|
import * as Effect from "effect/Effect";
|
|
2
3
|
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import { AlchemyContext } from "../../AlchemyContext.ts";
|
|
3
5
|
import { Command, type CommandProps } from "../../Build/Command.ts";
|
|
6
|
+
import { DevServer } from "../../Build/DevServer.ts";
|
|
4
7
|
import type { InputProps } from "../../Input.ts";
|
|
5
8
|
import * as Namespace from "../../Namespace.ts";
|
|
9
|
+
import { effectClass } from "../../Util/effect.ts";
|
|
10
|
+
import type { Providers } from "../Providers.ts";
|
|
6
11
|
import type { AssetsConfig } from "../Workers/Assets.ts";
|
|
7
12
|
import {
|
|
8
13
|
Worker,
|
|
14
|
+
type NormalizedBindings,
|
|
9
15
|
type WorkerAssetsConfig,
|
|
10
16
|
type WorkerBindingProps,
|
|
11
17
|
type WorkerProps,
|
|
@@ -19,13 +25,48 @@ export interface StaticSiteProps<Bindings extends WorkerBindingProps = {}>
|
|
|
19
25
|
* Optional configuration for static asset routing behavior.
|
|
20
26
|
* Supports `runWorkerFirst`, `htmlHandling`, `notFoundHandling`, etc.
|
|
21
27
|
*/
|
|
22
|
-
|
|
28
|
+
|
|
29
|
+
assets?: AssetsConfig;
|
|
30
|
+
/**
|
|
31
|
+
* Local dev configuration. When `alchemy dev` runs, the build command is
|
|
32
|
+
* skipped and `command` is spawned as a long-lived child process tied to
|
|
33
|
+
* the stack's scope. Alchemy does not proxy or interpret the process —
|
|
34
|
+
* the dev server's own URL (e.g. `http://localhost:5173`) is what you
|
|
35
|
+
* open in the browser.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* Cloudflare.StaticSite("App", {
|
|
40
|
+
* command: "npm run build",
|
|
41
|
+
* outdir: "dist",
|
|
42
|
+
* main: "./src/worker.ts",
|
|
43
|
+
* dev: { command: "npm run dev" },
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
23
47
|
dev?: {
|
|
48
|
+
/**
|
|
49
|
+
* Shell command to run as the local dev server (e.g. `npm run dev`).
|
|
50
|
+
*/
|
|
24
51
|
command: string;
|
|
52
|
+
/**
|
|
53
|
+
* Working directory for {@link command}. Defaults to {@link CommandProps.cwd}
|
|
54
|
+
* (the build command's `cwd`), or `process.cwd()` if neither is set.
|
|
55
|
+
*/
|
|
56
|
+
cwd?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Override for the `url` output if alchemy fails to detect it from the stdout of the dev command
|
|
59
|
+
*/
|
|
60
|
+
url?: string;
|
|
25
61
|
};
|
|
26
62
|
}
|
|
27
63
|
|
|
28
|
-
|
|
64
|
+
type StaticSiteWorker<Bindings extends WorkerBindingProps> = Worker<{
|
|
65
|
+
[binding in keyof NormalizedBindings<
|
|
66
|
+
Bindings,
|
|
67
|
+
WorkerAssetsConfig
|
|
68
|
+
>]: NormalizedBindings<Bindings, WorkerAssetsConfig>[binding];
|
|
69
|
+
}>;
|
|
29
70
|
|
|
30
71
|
/**
|
|
31
72
|
* A Cloudflare Worker that serves static assets built by a shell command.
|
|
@@ -68,7 +109,7 @@ export type StaticSite = ReturnType<typeof StaticSite>;
|
|
|
68
109
|
* ```
|
|
69
110
|
*
|
|
70
111
|
* @section Asset Configuration
|
|
71
|
-
* Use `
|
|
112
|
+
* Use `assets` to control how Cloudflare handles routing for
|
|
72
113
|
* your static files — HTML handling, not-found behavior, etc.
|
|
73
114
|
*
|
|
74
115
|
* @example SPA-style routing
|
|
@@ -77,7 +118,7 @@ export type StaticSite = ReturnType<typeof StaticSite>;
|
|
|
77
118
|
* command: "npm run build",
|
|
78
119
|
* outdir: "dist",
|
|
79
120
|
* main: "./src/worker.ts",
|
|
80
|
-
*
|
|
121
|
+
* assets: {
|
|
81
122
|
* htmlHandling: "auto-trailing-slash",
|
|
82
123
|
* notFoundHandling: "single-page-application",
|
|
83
124
|
* },
|
|
@@ -113,54 +154,126 @@ export type StaticSite = ReturnType<typeof StaticSite>;
|
|
|
113
154
|
* },
|
|
114
155
|
* });
|
|
115
156
|
* ```
|
|
157
|
+
*
|
|
158
|
+
* @section Class Form
|
|
159
|
+
* Calling `StaticSite` with no arguments returns a constructor you can
|
|
160
|
+
* `extend` to declare the Worker as a named class. The class is both
|
|
161
|
+
* an `Effect` you can `yield*` to deploy and a type you can reference
|
|
162
|
+
* elsewhere — useful when other resources need to bind to this Worker.
|
|
163
|
+
*
|
|
164
|
+
* @example Declaring a Worker class
|
|
165
|
+
* ```typescript
|
|
166
|
+
* class Blog extends Cloudflare.StaticSite<Blog>()("Blog", {
|
|
167
|
+
* command: "hugo --minify",
|
|
168
|
+
* outdir: "public",
|
|
169
|
+
* main: "./src/worker.ts",
|
|
170
|
+
* }) {}
|
|
171
|
+
*
|
|
172
|
+
* const site = yield* Blog;
|
|
173
|
+
* ```
|
|
116
174
|
*/
|
|
117
|
-
export const StaticSite
|
|
175
|
+
export const StaticSite: {
|
|
176
|
+
<Self>(): {
|
|
177
|
+
<const Bindings extends WorkerBindingProps = {}, Req = never>(
|
|
178
|
+
id: string,
|
|
179
|
+
propsEff:
|
|
180
|
+
| InputProps<StaticSiteProps<Bindings>, "dev">
|
|
181
|
+
| Effect.Effect<
|
|
182
|
+
InputProps<StaticSiteProps<Bindings>, "dev">,
|
|
183
|
+
never,
|
|
184
|
+
Req
|
|
185
|
+
>,
|
|
186
|
+
): Effect.Effect<Self, never, Req | Providers> & {
|
|
187
|
+
new (): StaticSiteWorker<Bindings>;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
<const Bindings extends WorkerBindingProps = {}, Req = never>(
|
|
191
|
+
id: string,
|
|
192
|
+
propsEff:
|
|
193
|
+
| InputProps<StaticSiteProps<Bindings>, "dev">
|
|
194
|
+
| Effect.Effect<InputProps<StaticSiteProps<Bindings>, "dev">, never, Req>,
|
|
195
|
+
): Effect.Effect<StaticSiteWorker<Bindings>, never, Req | Providers>;
|
|
196
|
+
} = ((id?: any, propsEff?: any) =>
|
|
197
|
+
id === undefined
|
|
198
|
+
? (id: string, propsEff: any) => effectClass(makeStaticSite(id, propsEff))
|
|
199
|
+
: makeStaticSite(id, propsEff)) as any;
|
|
200
|
+
|
|
201
|
+
const makeStaticSite = <
|
|
118
202
|
const Bindings extends WorkerBindingProps = {},
|
|
119
203
|
Req = never,
|
|
120
204
|
>(
|
|
121
205
|
id: string,
|
|
122
206
|
propsEff:
|
|
123
|
-
| InputProps<StaticSiteProps<Bindings
|
|
124
|
-
| Effect.Effect<InputProps<StaticSiteProps<Bindings
|
|
207
|
+
| InputProps<StaticSiteProps<Bindings>, "dev">
|
|
208
|
+
| Effect.Effect<InputProps<StaticSiteProps<Bindings>, "dev">, never, Req>,
|
|
125
209
|
) =>
|
|
126
210
|
Effect.gen(function* () {
|
|
127
211
|
const props = Effect.isEffect(propsEff)
|
|
128
212
|
? propsEff
|
|
129
213
|
: Effect.succeed(propsEff);
|
|
214
|
+
const { dev: isDevPhase } = yield* AlchemyContext;
|
|
130
215
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
Effect.map(props, (props) => ({
|
|
135
|
-
command: props.command,
|
|
136
|
-
cwd: props.cwd,
|
|
137
|
-
memo: props.memo,
|
|
138
|
-
outdir: props.outdir,
|
|
139
|
-
env: props.env
|
|
140
|
-
? Object.fromEntries(
|
|
141
|
-
Object.entries(props.env).flatMap(([k, v]) => {
|
|
142
|
-
if (v === undefined) return [];
|
|
143
|
-
if (typeof v === "string" || Redacted.isRedacted(v))
|
|
144
|
-
return [[k, v]];
|
|
145
|
-
return [[k, JSON.stringify(v)]];
|
|
146
|
-
}),
|
|
147
|
-
)
|
|
148
|
-
: undefined,
|
|
149
|
-
})),
|
|
150
|
-
);
|
|
216
|
+
return yield* Effect.gen(function* () {
|
|
217
|
+
const resolved = yield* props;
|
|
218
|
+
const useDevServer = isDevPhase && resolved.dev !== undefined;
|
|
151
219
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
220
|
+
// In dev mode with a dev.command, declare a DevCommand resource so
|
|
221
|
+
// the sidecar owns the process lifecycle (survives user-code HMR),
|
|
222
|
+
// skip the build, and tell Worker not to start a local instance.
|
|
223
|
+
let devUrl = yield* useDevServer
|
|
224
|
+
? DevServer("Dev", {
|
|
225
|
+
command: resolved.dev!.command,
|
|
226
|
+
cwd:
|
|
227
|
+
resolved.dev!.cwd ??
|
|
228
|
+
(typeof resolved.cwd === "string" ? resolved.cwd : undefined),
|
|
229
|
+
}).pipe(
|
|
230
|
+
Effect.map((d) =>
|
|
231
|
+
Output.map(d.url, (url) => url ?? resolved.dev?.url ?? false),
|
|
232
|
+
),
|
|
233
|
+
)
|
|
234
|
+
: Effect.succeed(false as const);
|
|
235
|
+
|
|
236
|
+
const build = useDevServer
|
|
237
|
+
? undefined
|
|
238
|
+
: yield* Command("Build", {
|
|
239
|
+
command: resolved.command,
|
|
240
|
+
cwd: resolved.cwd,
|
|
241
|
+
memo: resolved.memo,
|
|
242
|
+
outdir: resolved.outdir,
|
|
243
|
+
env: resolved.env
|
|
244
|
+
? Object.fromEntries(
|
|
245
|
+
Object.entries(resolved.env).flatMap(([k, v]) => {
|
|
246
|
+
if (v === undefined) return [];
|
|
247
|
+
if (typeof v === "string" || Redacted.isRedacted(v))
|
|
248
|
+
return [[k, v]];
|
|
249
|
+
return [[k, JSON.stringify(v)]];
|
|
250
|
+
}),
|
|
251
|
+
)
|
|
252
|
+
: undefined,
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
// Pure-static sites don't need a custom Worker entrypoint —
|
|
256
|
+
// delegate every request straight to the ASSETS binding. Only
|
|
257
|
+
// injected when the user provided neither `main` nor `script`.
|
|
258
|
+
const fallbackScript =
|
|
259
|
+
resolved.main == null && resolved.script == null
|
|
260
|
+
? `export default { fetch: (request, env) => env.ASSETS.fetch(request) };`
|
|
261
|
+
: undefined;
|
|
262
|
+
|
|
263
|
+
return yield* Worker<Bindings, WorkerAssetsConfig, Req>("Worker", {
|
|
264
|
+
...resolved,
|
|
265
|
+
assets: build
|
|
266
|
+
? {
|
|
267
|
+
directory: build.outdir,
|
|
268
|
+
hash: build.hash,
|
|
269
|
+
...resolved.assets,
|
|
270
|
+
}
|
|
271
|
+
: undefined,
|
|
272
|
+
// Opt out of the local Worker in dev when the external DevCommand
|
|
273
|
+
// is serving the content. The Worker resource still exists in
|
|
274
|
+
// state with a stub Attributes shape.
|
|
275
|
+
dev: useDevServer ? devUrl : undefined,
|
|
276
|
+
script: fallbackScript ?? resolved.script,
|
|
277
|
+
});
|
|
278
|
+
});
|
|
166
279
|
}).pipe(Namespace.push(id));
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import type { MemoOptions } from "../../Build/Memo.ts";
|
|
3
3
|
import type { InputProps } from "../../Input.ts";
|
|
4
|
+
import { effectClass } from "../../Util/effect.ts";
|
|
5
|
+
import type { Providers } from "../Providers.ts";
|
|
6
|
+
import type { AssetsConfig } from "../Workers/Assets.ts";
|
|
4
7
|
import {
|
|
5
8
|
Worker,
|
|
9
|
+
type NormalizedBindings,
|
|
6
10
|
type WorkerAssetsConfig,
|
|
7
11
|
type WorkerBindingProps,
|
|
8
12
|
type WorkerProps,
|
|
9
13
|
} from "../Workers/Worker.ts";
|
|
10
|
-
|
|
11
14
|
export interface ViteProps<
|
|
12
15
|
Bindings extends WorkerBindingProps = {},
|
|
13
|
-
> extends Omit<WorkerProps<Bindings>, "vite" | "main"> {
|
|
16
|
+
> extends Omit<WorkerProps<Bindings>, "vite" | "main" | "assets"> {
|
|
14
17
|
/**
|
|
15
18
|
* Root directory passed to Vite's `root` option.
|
|
16
19
|
* Defaults to the current working directory (`process.cwd()`).
|
|
@@ -24,6 +27,11 @@ export interface ViteProps<
|
|
|
24
27
|
* @see {@link MemoOptions}
|
|
25
28
|
*/
|
|
26
29
|
memo?: MemoOptions;
|
|
30
|
+
/**
|
|
31
|
+
* Optional configuration for static asset routing behavior.
|
|
32
|
+
* Supports `runWorkerFirst`, `htmlHandling`, `notFoundHandling`, etc.
|
|
33
|
+
*/
|
|
34
|
+
assets?: AssetsConfig;
|
|
27
35
|
}
|
|
28
36
|
|
|
29
37
|
/**
|
|
@@ -106,27 +114,67 @@ export interface ViteProps<
|
|
|
106
114
|
* },
|
|
107
115
|
* });
|
|
108
116
|
* ```
|
|
117
|
+
*
|
|
118
|
+
* @section Class Form
|
|
119
|
+
* Calling `Vite` with no arguments returns a constructor you can
|
|
120
|
+
* `extend` to declare the Worker as a named class. The class is both
|
|
121
|
+
* an `Effect` you can `yield*` to deploy and a type you can reference
|
|
122
|
+
* elsewhere — useful when other resources need to bind to this Worker.
|
|
123
|
+
*
|
|
124
|
+
* @example Declaring a Worker class
|
|
125
|
+
* ```typescript
|
|
126
|
+
* class Website extends Cloudflare.Vite<Website>()("Website", {
|
|
127
|
+
* compatibility: { flags: ["nodejs_compat"] },
|
|
128
|
+
* }) {}
|
|
129
|
+
*
|
|
130
|
+
* const site = yield* Website;
|
|
131
|
+
* ```
|
|
109
132
|
*/
|
|
110
|
-
export const Vite
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
export const Vite: {
|
|
134
|
+
<Self>(): {
|
|
135
|
+
<const Bindings extends WorkerBindingProps = {}, Req = never>(
|
|
136
|
+
id: string,
|
|
137
|
+
propsEff?:
|
|
138
|
+
| InputProps<ViteProps<Bindings>>
|
|
139
|
+
| Effect.Effect<InputProps<ViteProps<Bindings>>, never, Req>,
|
|
140
|
+
): Effect.Effect<Self, never, Req | Providers> & {
|
|
141
|
+
new (): Worker<{
|
|
142
|
+
[binding in keyof NormalizedBindings<
|
|
143
|
+
Bindings,
|
|
144
|
+
WorkerAssetsConfig
|
|
145
|
+
>]: NormalizedBindings<Bindings, WorkerAssetsConfig>[binding];
|
|
146
|
+
}>;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
<const Bindings extends WorkerBindingProps = {}, Req = never>(
|
|
150
|
+
id: string,
|
|
151
|
+
propsEff?:
|
|
152
|
+
| InputProps<ViteProps<Bindings>>
|
|
153
|
+
| Effect.Effect<InputProps<ViteProps<Bindings>>, never, Req>,
|
|
154
|
+
): Effect.Effect<
|
|
155
|
+
Worker<{
|
|
156
|
+
[binding in keyof NormalizedBindings<
|
|
157
|
+
Bindings,
|
|
158
|
+
WorkerAssetsConfig
|
|
159
|
+
>]: NormalizedBindings<Bindings, WorkerAssetsConfig>[binding];
|
|
160
|
+
}>,
|
|
161
|
+
never,
|
|
162
|
+
Req | Providers
|
|
163
|
+
>;
|
|
164
|
+
} = ((id?: any, propsEff?: any) =>
|
|
165
|
+
id === undefined
|
|
166
|
+
? (id: string, propsEff: any) => effectClass(Vite(id, propsEff))
|
|
167
|
+
: Worker(
|
|
168
|
+
id,
|
|
169
|
+
Effect.map(
|
|
170
|
+
Effect.isEffect(propsEff) ? propsEff : Effect.succeed(propsEff),
|
|
171
|
+
(props) => ({
|
|
172
|
+
...props,
|
|
173
|
+
main: undefined!,
|
|
174
|
+
vite: {
|
|
175
|
+
rootDir: props?.rootDir,
|
|
176
|
+
memo: props?.memo,
|
|
177
|
+
},
|
|
178
|
+
}),
|
|
179
|
+
),
|
|
180
|
+
)) as any;
|