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
|
@@ -32,9 +32,10 @@ type BindEffect = Effect.Effect<BrowserClient, never, BrowserBinding>;
|
|
|
32
32
|
* Worker and returns the runtime {@link BrowserClient} — no separate
|
|
33
33
|
* `.bind(...)` step required.
|
|
34
34
|
*
|
|
35
|
-
* The divergence is achieved via `[Symbol.iterator]`: the object is
|
|
36
|
-
* `Effect` (so `InferEnv`
|
|
37
|
-
*
|
|
35
|
+
* The divergence is achieved via `[Symbol.iterator]`: the object is
|
|
36
|
+
* deliberately not an `Effect` (so `InferEnv` and the Worker `env` resolver
|
|
37
|
+
* keep it as the native `BrowserRun` rather than `yield*`-ing it), but it is
|
|
38
|
+
* iterable as one when `yield*`-ed.
|
|
38
39
|
*/
|
|
39
40
|
export interface Browser {
|
|
40
41
|
kind: BrowserTypeId;
|
|
@@ -53,7 +54,73 @@ export const isBrowser = (value: unknown): value is Browser =>
|
|
|
53
54
|
* @binding
|
|
54
55
|
*
|
|
55
56
|
* @section Effect-style Worker (recommended)
|
|
56
|
-
* @example
|
|
57
|
+
* @example Bind the runtime client and convert a page to Markdown
|
|
58
|
+
* Yielding the marker attaches the binding to the surrounding Worker and
|
|
59
|
+
* returns the runtime {@link BrowserClient}. Every `cf.BrowserRun` method is
|
|
60
|
+
* mirrored as an Effect, so no `Effect.tryPromise` wrapping is needed.
|
|
61
|
+
* ```typescript
|
|
62
|
+
* import * as Effect from "effect/Effect";
|
|
63
|
+
*
|
|
64
|
+
* Cloudflare.Worker(
|
|
65
|
+
* "BrowserWorker",
|
|
66
|
+
* { main: import.meta.filename },
|
|
67
|
+
* Effect.gen(function* () {
|
|
68
|
+
* const browser = yield* Cloudflare.Browser({ name: "BROWSER" });
|
|
69
|
+
*
|
|
70
|
+
* return {
|
|
71
|
+
* fetch: Effect.gen(function* () {
|
|
72
|
+
* return yield* browser.markdown({ url: "https://example.com" });
|
|
73
|
+
* }),
|
|
74
|
+
* };
|
|
75
|
+
* }).pipe(Effect.provide(Cloudflare.BrowserBindingLive)),
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @section Quick Actions
|
|
80
|
+
* @example Render content, screenshot, PDF, and structured data
|
|
81
|
+
* JSON quick actions resolve to their parsed payload; binary actions
|
|
82
|
+
* (`screenshot`, `pdf`) resolve to a `Stream` of bytes. No `Promise` or
|
|
83
|
+
* `Response.json()` in sight.
|
|
84
|
+
* ```typescript
|
|
85
|
+
* import * as Effect from "effect/Effect";
|
|
86
|
+
* import * as Stream from "effect/Stream";
|
|
87
|
+
*
|
|
88
|
+
* const browser = yield* Cloudflare.Browser({ name: "BROWSER" });
|
|
89
|
+
* const url = "https://example.com";
|
|
90
|
+
*
|
|
91
|
+
* // HTML content — parsed payload, title lives in `meta`.
|
|
92
|
+
* const content = yield* browser.content({ url });
|
|
93
|
+
* const title = content.meta.title;
|
|
94
|
+
*
|
|
95
|
+
* // Scrape elements by CSS selector.
|
|
96
|
+
* yield* browser.scrape({ url, elements: [{ selector: "h1" }] });
|
|
97
|
+
*
|
|
98
|
+
* // Extract all links.
|
|
99
|
+
* const { result: links } = yield* browser.links({ url });
|
|
100
|
+
*
|
|
101
|
+
* // Binary actions stream bytes — collect or pipe them.
|
|
102
|
+
* const png = yield* browser.screenshot({ url }).pipe(Stream.runCollect);
|
|
103
|
+
* const pdf = yield* browser.pdf({ url }).pipe(Stream.runCollect);
|
|
104
|
+
*
|
|
105
|
+
* // AI-extracted structured data.
|
|
106
|
+
* yield* browser.json({ url, prompt: "Extract the page heading" });
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* @example Call the generic `quickAction` directly
|
|
110
|
+
* The named methods are thin wrappers over `quickAction`, which mirrors
|
|
111
|
+
* `cf.BrowserRun["quickAction"]` one-to-one.
|
|
112
|
+
* ```typescript
|
|
113
|
+
* const browser = yield* Cloudflare.Browser({ name: "BROWSER" });
|
|
114
|
+
*
|
|
115
|
+
* const res = yield* browser.quickAction("snapshot", {
|
|
116
|
+
* url: "https://example.com",
|
|
117
|
+
* });
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @section Driving Puppeteer
|
|
121
|
+
* @example Use the raw `cf.BrowserRun` binding with `@cloudflare/puppeteer`
|
|
122
|
+
* `raw` hands you the underlying runtime binding. Puppeteer is promise-based,
|
|
123
|
+
* so this is the one place you reach for `Effect.tryPromise`.
|
|
57
124
|
* ```typescript
|
|
58
125
|
* import puppeteer from "@cloudflare/puppeteer";
|
|
59
126
|
* import * as Effect from "effect/Effect";
|
|
@@ -62,25 +129,30 @@ export const isBrowser = (value: unknown): value is Browser =>
|
|
|
62
129
|
* "BrowserWorker",
|
|
63
130
|
* { main: import.meta.filename },
|
|
64
131
|
* Effect.gen(function* () {
|
|
65
|
-
* // Attaches the binding to this Worker AND returns the runtime client.
|
|
66
132
|
* const browser = yield* Cloudflare.Browser({ name: "BROWSER" });
|
|
67
133
|
*
|
|
68
134
|
* return {
|
|
69
|
-
* fetch:
|
|
70
|
-
*
|
|
71
|
-
*
|
|
135
|
+
* fetch: Effect.gen(function* () {
|
|
136
|
+
* const binding = yield* browser.raw;
|
|
137
|
+
* const session = yield* Effect.tryPromise(() =>
|
|
138
|
+
* puppeteer.launch(binding),
|
|
139
|
+
* );
|
|
140
|
+
* try {
|
|
141
|
+
* const page = yield* Effect.tryPromise(() => session.newPage());
|
|
72
142
|
* yield* Effect.tryPromise(() => page.goto("https://example.com"));
|
|
73
143
|
* const title = yield* Effect.tryPromise(() => page.title());
|
|
74
144
|
* return Response.json({ title });
|
|
75
|
-
* }
|
|
76
|
-
*
|
|
145
|
+
* } finally {
|
|
146
|
+
* yield* Effect.promise(() => session.close());
|
|
147
|
+
* }
|
|
148
|
+
* }),
|
|
77
149
|
* };
|
|
78
150
|
* }).pipe(Effect.provide(Cloudflare.BrowserBindingLive)),
|
|
79
151
|
* );
|
|
80
152
|
* ```
|
|
81
153
|
*
|
|
82
154
|
* @section Worker binding metadata
|
|
83
|
-
* @example
|
|
155
|
+
* @example Declare the binding on `env`
|
|
84
156
|
* ```typescript
|
|
85
157
|
* export const Worker = Cloudflare.Worker("Worker", {
|
|
86
158
|
* main: "./src/worker.ts",
|
|
@@ -90,7 +162,7 @@ export const isBrowser = (value: unknown): value is Browser =>
|
|
|
90
162
|
* });
|
|
91
163
|
*
|
|
92
164
|
* export type WorkerEnv = Cloudflare.InferEnv<typeof Worker>;
|
|
93
|
-
* // { BROWSER:
|
|
165
|
+
* // { BROWSER: BrowserRun }
|
|
94
166
|
* ```
|
|
95
167
|
*
|
|
96
168
|
* @example Async-style worker with the raw runtime binding
|
|
@@ -2,8 +2,10 @@ import type * as cf from "@cloudflare/workers-types";
|
|
|
2
2
|
import * as Data from "effect/Data";
|
|
3
3
|
import * as Effect from "effect/Effect";
|
|
4
4
|
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as Stream from "effect/Stream";
|
|
5
6
|
import * as Binding from "../../Binding.ts";
|
|
6
7
|
import type { ResourceLike } from "../../Resource.ts";
|
|
8
|
+
import type { RuntimeContext } from "../../RuntimeContext.ts";
|
|
7
9
|
import { isWorker, WorkerEnvironment } from "../Workers/Worker.ts";
|
|
8
10
|
import type { Browser as BrowserLike } from "./Browser.ts";
|
|
9
11
|
|
|
@@ -12,39 +14,143 @@ export class BrowserError extends Data.TaggedError("BrowserError")<{
|
|
|
12
14
|
cause: unknown;
|
|
13
15
|
}> {}
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
17
|
+
/** The `Response` type returned by the Cloudflare Browser Rendering binding. */
|
|
18
|
+
type BrowserResponse = Awaited<ReturnType<cf.BrowserRun["fetch"]>>;
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
/** An Effect produced by a {@link BrowserClient} operation. */
|
|
21
|
+
type BrowserEffect<A> = Effect.Effect<A, BrowserError, RuntimeContext>;
|
|
22
|
+
|
|
23
|
+
/** A byte stream produced by a binary {@link BrowserClient} action. */
|
|
24
|
+
type BrowserByteStream = Stream.Stream<
|
|
25
|
+
Uint8Array,
|
|
26
|
+
BrowserError,
|
|
27
|
+
RuntimeContext
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
// Quick action option types, re-exported so callers don't reach into the
|
|
31
|
+
// `@cloudflare/workers-types` namespace directly.
|
|
32
|
+
export type BrowserScreenshotOptions = cf.BrowserRunScreenshotOptions;
|
|
33
|
+
export type BrowserPDFOptions = cf.BrowserRunPDFOptions;
|
|
34
|
+
export type BrowserContentOptions = cf.BrowserRunContentOptions;
|
|
35
|
+
export type BrowserScrapeOptions = cf.BrowserRunScrapeOptions;
|
|
36
|
+
export type BrowserLinksOptions = cf.BrowserRunLinksOptions;
|
|
37
|
+
export type BrowserSnapshotOptions = cf.BrowserRunSnapshotOptions;
|
|
38
|
+
export type BrowserJsonOptions = cf.BrowserRunJsonOptions;
|
|
39
|
+
export type BrowserMarkdownOptions = cf.BrowserRunMarkdownOptions;
|
|
40
|
+
|
|
41
|
+
// Quick action success payloads.
|
|
42
|
+
export type BrowserContentResult = cf.BrowserRunContentSuccessResponse;
|
|
43
|
+
export type BrowserScrapeResult = cf.BrowserRunScrapeSuccessResponse;
|
|
44
|
+
export type BrowserLinksResult = cf.BrowserRunLinksSuccessResponse;
|
|
45
|
+
export type BrowserSnapshotResult = cf.BrowserRunSnapshotSuccessResponse;
|
|
46
|
+
export type BrowserJsonResult = cf.BrowserRunJsonSuccessResponse;
|
|
47
|
+
export type BrowserMarkdownResult = cf.BrowserRunMarkdownSuccessResponse;
|
|
48
|
+
export type BrowserErrorResponse = cf.BrowserRunErrorResponse;
|
|
22
49
|
|
|
23
50
|
/**
|
|
24
51
|
* Effect-native client for a Cloudflare Browser Rendering binding.
|
|
25
52
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
53
|
+
* Mirrors the runtime {@link cf.BrowserRun} binding, translating its shapes
|
|
54
|
+
* into Effect-native ones: JSON quick actions resolve to their parsed success
|
|
55
|
+
* payload, and binary actions (`screenshot`, `pdf`) resolve to a `Stream` of
|
|
56
|
+
* the response bytes. Non-success responses fail with {@link BrowserError}, so
|
|
57
|
+
* callers never touch a `Promise` or `Response.json()` themselves. Use
|
|
58
|
+
* `Cloudflare.Browser.bind(browser)` (or `yield* Cloudflare.Browser(...)`)
|
|
59
|
+
* inside a Worker's init phase to obtain it.
|
|
60
|
+
*
|
|
61
|
+
* The {@link raw} accessor and {@link fetch} are the only promise-shaped
|
|
62
|
+
* escape hatches — they exist for libraries like `@cloudflare/puppeteer` that
|
|
63
|
+
* consume the binding directly.
|
|
29
64
|
*/
|
|
30
65
|
export interface BrowserClient {
|
|
31
66
|
/**
|
|
32
67
|
* Effect resolving to the raw Cloudflare Browser Rendering runtime binding.
|
|
68
|
+
*
|
|
69
|
+
* Pass it to `@cloudflare/puppeteer`'s `puppeteer.launch(binding)` to drive a
|
|
70
|
+
* full browser session.
|
|
71
|
+
*/
|
|
72
|
+
raw: Effect.Effect<cf.BrowserRun, never, RuntimeContext>;
|
|
73
|
+
/**
|
|
74
|
+
* Send a raw HTTP request to the Browser Run API and resolve to the raw
|
|
75
|
+
* `Response`. Used by libraries like `@cloudflare/puppeteer` to acquire and
|
|
76
|
+
* connect to a browser instance.
|
|
77
|
+
*/
|
|
78
|
+
fetch(
|
|
79
|
+
...args: Parameters<cf.BrowserRun["fetch"]>
|
|
80
|
+
): BrowserEffect<BrowserResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* Run a Browser Run quick action, resolving to the parsed success payload
|
|
83
|
+
* (or a byte `Stream` for binary actions). Mirrors
|
|
84
|
+
* `cf.BrowserRun["quickAction"]`; the {@link screenshot}, {@link pdf},
|
|
85
|
+
* {@link content}, {@link scrape}, {@link links}, {@link snapshot},
|
|
86
|
+
* {@link json}, and {@link markdown} methods are thin wrappers over the
|
|
87
|
+
* corresponding action.
|
|
88
|
+
*/
|
|
89
|
+
quickAction(
|
|
90
|
+
action: "screenshot",
|
|
91
|
+
options: BrowserScreenshotOptions,
|
|
92
|
+
): BrowserByteStream;
|
|
93
|
+
quickAction(action: "pdf", options: BrowserPDFOptions): BrowserByteStream;
|
|
94
|
+
quickAction(
|
|
95
|
+
action: "content",
|
|
96
|
+
options: BrowserContentOptions,
|
|
97
|
+
): BrowserEffect<BrowserContentResult>;
|
|
98
|
+
quickAction(
|
|
99
|
+
action: "scrape",
|
|
100
|
+
options: BrowserScrapeOptions,
|
|
101
|
+
): BrowserEffect<BrowserScrapeResult>;
|
|
102
|
+
quickAction(
|
|
103
|
+
action: "links",
|
|
104
|
+
options: BrowserLinksOptions,
|
|
105
|
+
): BrowserEffect<BrowserLinksResult>;
|
|
106
|
+
quickAction(
|
|
107
|
+
action: "snapshot",
|
|
108
|
+
options: BrowserSnapshotOptions,
|
|
109
|
+
): BrowserEffect<BrowserSnapshotResult>;
|
|
110
|
+
quickAction(
|
|
111
|
+
action: "json",
|
|
112
|
+
options: BrowserJsonOptions,
|
|
113
|
+
): BrowserEffect<BrowserJsonResult>;
|
|
114
|
+
quickAction(
|
|
115
|
+
action: "markdown",
|
|
116
|
+
options: BrowserMarkdownOptions,
|
|
117
|
+
): BrowserEffect<BrowserMarkdownResult>;
|
|
118
|
+
/**
|
|
119
|
+
* Take a screenshot of a web page, streaming the raw image bytes.
|
|
120
|
+
*/
|
|
121
|
+
screenshot(options: BrowserScreenshotOptions): BrowserByteStream;
|
|
122
|
+
/**
|
|
123
|
+
* Generate a PDF of a web page, streaming the raw PDF bytes.
|
|
124
|
+
*/
|
|
125
|
+
pdf(options: BrowserPDFOptions): BrowserByteStream;
|
|
126
|
+
/**
|
|
127
|
+
* Get the HTML content of a web page.
|
|
128
|
+
*/
|
|
129
|
+
content(options: BrowserContentOptions): BrowserEffect<BrowserContentResult>;
|
|
130
|
+
/**
|
|
131
|
+
* Scrape elements from a web page by CSS selector.
|
|
132
|
+
*/
|
|
133
|
+
scrape(options: BrowserScrapeOptions): BrowserEffect<BrowserScrapeResult>;
|
|
134
|
+
/**
|
|
135
|
+
* Extract all links from a web page.
|
|
136
|
+
*/
|
|
137
|
+
links(options: BrowserLinksOptions): BrowserEffect<BrowserLinksResult>;
|
|
138
|
+
/**
|
|
139
|
+
* Get both the HTML content and a base64-encoded screenshot of a web page.
|
|
33
140
|
*/
|
|
34
|
-
|
|
141
|
+
snapshot(
|
|
142
|
+
options: BrowserSnapshotOptions,
|
|
143
|
+
): BrowserEffect<BrowserSnapshotResult>;
|
|
35
144
|
/**
|
|
36
|
-
*
|
|
145
|
+
* Extract structured JSON data from a web page using AI.
|
|
37
146
|
*/
|
|
38
|
-
|
|
39
|
-
puppeteer: BrowserPuppeteer<Browser>,
|
|
40
|
-
): Effect.Effect<Browser, BrowserError, WorkerEnvironment>;
|
|
147
|
+
json(options: BrowserJsonOptions): BrowserEffect<BrowserJsonResult>;
|
|
41
148
|
/**
|
|
42
|
-
*
|
|
149
|
+
* Convert a web page to Markdown.
|
|
43
150
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
): Effect.Effect<A, BrowserError | E, WorkerEnvironment | R>;
|
|
151
|
+
markdown(
|
|
152
|
+
options: BrowserMarkdownOptions,
|
|
153
|
+
): BrowserEffect<BrowserMarkdownResult>;
|
|
48
154
|
}
|
|
49
155
|
|
|
50
156
|
export class BrowserBinding extends Binding.Service<
|
|
@@ -56,14 +162,14 @@ export const BrowserBindingLive = Layer.effect(
|
|
|
56
162
|
BrowserBinding,
|
|
57
163
|
Effect.gen(function* () {
|
|
58
164
|
const Policy = yield* BrowserBindingPolicy;
|
|
165
|
+
const env = yield* WorkerEnvironment;
|
|
59
166
|
|
|
60
167
|
return Effect.fn(function* (browser: BrowserLike) {
|
|
61
168
|
yield* Policy(browser);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
);
|
|
169
|
+
const raw: Effect.Effect<cf.BrowserRun, never, RuntimeContext> =
|
|
170
|
+
Effect.sync(
|
|
171
|
+
() => (env as Record<string, cf.BrowserRun>)[browser.name]!,
|
|
172
|
+
);
|
|
67
173
|
return makeBrowserClient(raw);
|
|
68
174
|
});
|
|
69
175
|
}),
|
|
@@ -106,23 +212,89 @@ const tryPromise = <T>(fn: () => Promise<T>): Effect.Effect<T, BrowserError> =>
|
|
|
106
212
|
}),
|
|
107
213
|
});
|
|
108
214
|
|
|
215
|
+
/** Actions whose successful response is raw binary rather than JSON. */
|
|
216
|
+
const BINARY_ACTIONS = new Set(["screenshot", "pdf"]);
|
|
217
|
+
|
|
218
|
+
/** Build a {@link BrowserError} from a non-success Browser Run response. */
|
|
219
|
+
const failResponse = (
|
|
220
|
+
action: string,
|
|
221
|
+
response: BrowserResponse,
|
|
222
|
+
): Effect.Effect<never, BrowserError> =>
|
|
223
|
+
tryPromise(() => response.text()).pipe(
|
|
224
|
+
Effect.flatMap((body) => {
|
|
225
|
+
let cause: unknown = body;
|
|
226
|
+
try {
|
|
227
|
+
cause = JSON.parse(body);
|
|
228
|
+
} catch {
|
|
229
|
+
// keep the raw text as the cause
|
|
230
|
+
}
|
|
231
|
+
const message =
|
|
232
|
+
(cause as cf.BrowserRunErrorResponse | undefined)?.errors?.[0]
|
|
233
|
+
?.message ??
|
|
234
|
+
`Browser Rendering '${action}' failed with status ${response.status}`;
|
|
235
|
+
return Effect.fail(new BrowserError({ message, cause }));
|
|
236
|
+
}),
|
|
237
|
+
);
|
|
238
|
+
|
|
109
239
|
/** @internal */
|
|
110
240
|
export const makeBrowserClient = (
|
|
111
|
-
raw: Effect.Effect<cf.
|
|
241
|
+
raw: Effect.Effect<cf.BrowserRun, never, RuntimeContext>,
|
|
112
242
|
): BrowserClient => {
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
243
|
+
const respond = (
|
|
244
|
+
action: string,
|
|
245
|
+
options: unknown,
|
|
246
|
+
): Effect.Effect<BrowserResponse, BrowserError, RuntimeContext> =>
|
|
116
247
|
raw.pipe(
|
|
117
|
-
Effect.flatMap((binding) =>
|
|
248
|
+
Effect.flatMap((binding) =>
|
|
249
|
+
tryPromise(() => binding.quickAction(action as any, options as any)),
|
|
250
|
+
),
|
|
251
|
+
Effect.flatMap((response) =>
|
|
252
|
+
response.ok ? Effect.succeed(response) : failResponse(action, response),
|
|
253
|
+
),
|
|
254
|
+
);
|
|
255
|
+
|
|
256
|
+
const jsonAction = <T>(action: string, options: unknown): BrowserEffect<T> =>
|
|
257
|
+
respond(action, options).pipe(
|
|
258
|
+
Effect.flatMap((response) =>
|
|
259
|
+
tryPromise(() => response.json() as Promise<T>),
|
|
260
|
+
),
|
|
118
261
|
);
|
|
119
262
|
|
|
263
|
+
const streamAction = (action: string, options: unknown): BrowserByteStream =>
|
|
264
|
+
respond(action, options).pipe(
|
|
265
|
+
Effect.map((response) =>
|
|
266
|
+
Stream.fromReadableStream({
|
|
267
|
+
evaluate: () =>
|
|
268
|
+
response.body as any as ReadableStream<Uint8Array<ArrayBufferLike>>,
|
|
269
|
+
onError: (cause) =>
|
|
270
|
+
new BrowserError({
|
|
271
|
+
message: `Browser Rendering '${action}' stream failed`,
|
|
272
|
+
cause,
|
|
273
|
+
}),
|
|
274
|
+
}),
|
|
275
|
+
),
|
|
276
|
+
Stream.unwrap,
|
|
277
|
+
);
|
|
278
|
+
|
|
279
|
+
const quickAction = ((action: string, options: unknown) =>
|
|
280
|
+
BINARY_ACTIONS.has(action)
|
|
281
|
+
? streamAction(action, options)
|
|
282
|
+
: jsonAction(action, options)) as BrowserClient["quickAction"];
|
|
283
|
+
|
|
120
284
|
return {
|
|
121
285
|
raw,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
tryPromise(() => browser.close()),
|
|
286
|
+
fetch: (...args) =>
|
|
287
|
+
raw.pipe(
|
|
288
|
+
Effect.flatMap((binding) => tryPromise(() => binding.fetch(...args))),
|
|
126
289
|
),
|
|
290
|
+
quickAction,
|
|
291
|
+
screenshot: (options) => streamAction("screenshot", options),
|
|
292
|
+
pdf: (options) => streamAction("pdf", options),
|
|
293
|
+
content: (options) => jsonAction("content", options),
|
|
294
|
+
scrape: (options) => jsonAction("scrape", options),
|
|
295
|
+
links: (options) => jsonAction("links", options),
|
|
296
|
+
snapshot: (options) => jsonAction("snapshot", options),
|
|
297
|
+
json: (options) => jsonAction("json", options),
|
|
298
|
+
markdown: (options) => jsonAction("markdown", options),
|
|
127
299
|
} satisfies BrowserClient;
|
|
128
300
|
};
|
|
@@ -6,6 +6,19 @@ export {
|
|
|
6
6
|
BrowserBindingPolicyLive,
|
|
7
7
|
BrowserError,
|
|
8
8
|
type BrowserClient,
|
|
9
|
-
type
|
|
10
|
-
type
|
|
9
|
+
type BrowserScreenshotOptions,
|
|
10
|
+
type BrowserPDFOptions,
|
|
11
|
+
type BrowserContentOptions,
|
|
12
|
+
type BrowserScrapeOptions,
|
|
13
|
+
type BrowserLinksOptions,
|
|
14
|
+
type BrowserSnapshotOptions,
|
|
15
|
+
type BrowserJsonOptions,
|
|
16
|
+
type BrowserMarkdownOptions,
|
|
17
|
+
type BrowserContentResult,
|
|
18
|
+
type BrowserScrapeResult,
|
|
19
|
+
type BrowserLinksResult,
|
|
20
|
+
type BrowserSnapshotResult,
|
|
21
|
+
type BrowserJsonResult,
|
|
22
|
+
type BrowserMarkdownResult,
|
|
23
|
+
type BrowserErrorResponse,
|
|
11
24
|
} from "./BrowserBinding.ts";
|
|
@@ -4,7 +4,7 @@ import * as Effect from "effect/Effect";
|
|
|
4
4
|
import * as Layer from "effect/Layer";
|
|
5
5
|
import * as Option from "effect/Option";
|
|
6
6
|
import { getAuthProvider } from "../Auth/AuthProvider.ts";
|
|
7
|
-
import { ALCHEMY_PROFILE,
|
|
7
|
+
import { ALCHEMY_PROFILE, AlchemyProfile } from "../Auth/Profile.ts";
|
|
8
8
|
import {
|
|
9
9
|
CLOUDFLARE_AUTH_PROVIDER_NAME,
|
|
10
10
|
type CloudflareAuthConfig,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
|
|
14
14
|
export class CloudflareEnvironment extends Context.Service<
|
|
15
15
|
CloudflareEnvironment,
|
|
16
|
-
CloudflareResolvedCredentials
|
|
16
|
+
Effect.Effect<CloudflareResolvedCredentials>
|
|
17
17
|
>()("Cloudflare::CloudflareEnvironment") {}
|
|
18
18
|
|
|
19
19
|
const CLOUDFLARE_ACCOUNT_ID = Config.string("CLOUDFLARE_ACCOUNT_ID");
|
|
@@ -34,7 +34,7 @@ export const fromProfile = () =>
|
|
|
34
34
|
Layer.effect(
|
|
35
35
|
CloudflareEnvironment,
|
|
36
36
|
Effect.gen(function* () {
|
|
37
|
-
const profile = yield*
|
|
37
|
+
const profile = yield* AlchemyProfile;
|
|
38
38
|
const auth = yield* getAuthProvider<
|
|
39
39
|
CloudflareAuthConfig,
|
|
40
40
|
CloudflareResolvedCredentials
|
|
@@ -44,7 +44,12 @@ export const fromProfile = () =>
|
|
|
44
44
|
// `loadOrConfigure` reads the persisted config under the canonical
|
|
45
45
|
// provider name (`Cloudflare`); only runs `configure` (and persists the
|
|
46
46
|
// result) if no stored config exists.
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
return yield* profile.loadOrConfigure(auth, profileName, { ci }).pipe(
|
|
48
|
+
Effect.flatMap((config) =>
|
|
49
|
+
auth.read(profileName, config as CloudflareAuthConfig),
|
|
50
|
+
),
|
|
51
|
+
Effect.orDie,
|
|
52
|
+
Effect.cached,
|
|
53
|
+
);
|
|
49
54
|
}),
|
|
50
55
|
);
|
|
@@ -354,23 +354,10 @@ export const ContainerProvider = () =>
|
|
|
354
354
|
Container,
|
|
355
355
|
Effect.gen(function* () {
|
|
356
356
|
const stack = yield* Stack;
|
|
357
|
-
const { accountId } = yield* CloudflareEnvironment;
|
|
358
357
|
const { dotAlchemy } = yield* AlchemyContext;
|
|
359
358
|
const fs = yield* FileSystem.FileSystem;
|
|
360
359
|
const virtualEntryPlugin = yield* Bundle.virtualEntryPlugin;
|
|
361
|
-
|
|
362
|
-
yield* Containers.createContainerApplication;
|
|
363
|
-
const updateContainerApplication =
|
|
364
|
-
yield* Containers.updateContainerApplication;
|
|
365
|
-
const deleteContainerApplication =
|
|
366
|
-
yield* Containers.deleteContainerApplication;
|
|
367
|
-
const getContainerApplication = yield* Containers.getContainerApplication;
|
|
368
|
-
const listContainerApplications =
|
|
369
|
-
yield* Containers.listContainerApplications;
|
|
370
|
-
const createContainerRegistryCredentials =
|
|
371
|
-
yield* Containers.createContainerRegistryCredentials;
|
|
372
|
-
const createContainerApplicationRollout =
|
|
373
|
-
yield* Containers.createContainerApplicationRollout;
|
|
360
|
+
|
|
374
361
|
const telemetry = yield* CloudflareLogs;
|
|
375
362
|
|
|
376
363
|
const createApplicationName = (id: string, name: string | undefined) =>
|
|
@@ -385,7 +372,9 @@ export const ContainerProvider = () =>
|
|
|
385
372
|
});
|
|
386
373
|
|
|
387
374
|
const findApplicationByName = Effect.fnUntraced(function* (name: string) {
|
|
388
|
-
|
|
375
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
376
|
+
|
|
377
|
+
return yield* Containers.listContainerApplications({ accountId }).pipe(
|
|
389
378
|
Effect.map((apps) => apps.find((app) => app.name === name)),
|
|
390
379
|
);
|
|
391
380
|
});
|
|
@@ -393,7 +382,9 @@ export const ContainerProvider = () =>
|
|
|
393
382
|
const findApplicationByNamespace = Effect.fnUntraced(function* (
|
|
394
383
|
namespaceId: string,
|
|
395
384
|
) {
|
|
396
|
-
|
|
385
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
386
|
+
|
|
387
|
+
return yield* Containers.listContainerApplications({ accountId }).pipe(
|
|
397
388
|
Effect.map((apps) =>
|
|
398
389
|
apps.find((app) => app.durableObjects?.namespaceId === namespaceId),
|
|
399
390
|
),
|
|
@@ -433,6 +424,8 @@ export const ContainerProvider = () =>
|
|
|
433
424
|
new Error("Container requires a `main` entrypoint."),
|
|
434
425
|
);
|
|
435
426
|
}
|
|
427
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
428
|
+
|
|
436
429
|
const runtime = props.runtime ?? "bun";
|
|
437
430
|
const { files, hash: bundleHash } = yield* bundleProgram({
|
|
438
431
|
id,
|
|
@@ -641,6 +634,8 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
641
634
|
imageRef: string,
|
|
642
635
|
session?: { note: (message: string) => Effect.Effect<void> },
|
|
643
636
|
) {
|
|
637
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
638
|
+
|
|
644
639
|
const runtime = props.runtime ?? "bun";
|
|
645
640
|
|
|
646
641
|
yield* Effect.logInfo(
|
|
@@ -687,12 +682,13 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
687
682
|
}
|
|
688
683
|
|
|
689
684
|
const registryId = props.registryId ?? "registry.cloudflare.com";
|
|
690
|
-
const credentials =
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
685
|
+
const credentials =
|
|
686
|
+
yield* Containers.createContainerRegistryCredentials({
|
|
687
|
+
accountId,
|
|
688
|
+
registryId,
|
|
689
|
+
permissions: ["pull", "push"],
|
|
690
|
+
expirationMinutes: 60,
|
|
691
|
+
});
|
|
696
692
|
const username = credentials.username ?? (credentials as any).user;
|
|
697
693
|
if (!username) {
|
|
698
694
|
return yield* Effect.fail(
|
|
@@ -718,6 +714,8 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
718
714
|
configuration: ContainerApplication.Configuration;
|
|
719
715
|
rollout: ContainerApplication.Rollout | undefined;
|
|
720
716
|
}) {
|
|
717
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
718
|
+
|
|
721
719
|
const strategy = rollout?.strategy ?? "immediate";
|
|
722
720
|
const stepPercentage =
|
|
723
721
|
strategy === "immediate" ? 100 : (rollout?.stepPercentage ?? 25);
|
|
@@ -725,7 +723,7 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
725
723
|
yield* retryForContainerApplicationReadiness(
|
|
726
724
|
"rollout",
|
|
727
725
|
applicationId,
|
|
728
|
-
createContainerApplicationRollout({
|
|
726
|
+
Containers.createContainerApplicationRollout({
|
|
729
727
|
accountId,
|
|
730
728
|
applicationId,
|
|
731
729
|
description:
|
|
@@ -759,6 +757,8 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
759
757
|
| undefined;
|
|
760
758
|
session: { note: (message: string) => Effect.Effect<void> };
|
|
761
759
|
}) {
|
|
760
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
761
|
+
|
|
762
762
|
const describeError = (error: unknown) => {
|
|
763
763
|
if (error instanceof Error) {
|
|
764
764
|
return JSON.stringify(
|
|
@@ -816,7 +816,7 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
816
816
|
});
|
|
817
817
|
});
|
|
818
818
|
|
|
819
|
-
const application = yield* createContainerApplication({
|
|
819
|
+
const application = yield* Containers.createContainerApplication({
|
|
820
820
|
accountId,
|
|
821
821
|
name,
|
|
822
822
|
instances: news.instances ?? 1,
|
|
@@ -890,6 +890,8 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
890
890
|
existing: ContainerApplication["Attributes"];
|
|
891
891
|
session: { note: (message: string) => Effect.Effect<void> };
|
|
892
892
|
}) {
|
|
893
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
894
|
+
|
|
893
895
|
yield* Effect.logInfo(
|
|
894
896
|
`Cloudflare Container update: preparing ${existing.applicationName}`,
|
|
895
897
|
);
|
|
@@ -909,7 +911,7 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
909
911
|
const application = yield* retryForContainerApplicationReadiness(
|
|
910
912
|
"update",
|
|
911
913
|
existing.applicationId,
|
|
912
|
-
updateContainerApplication({
|
|
914
|
+
Containers.updateContainerApplication({
|
|
913
915
|
accountId,
|
|
914
916
|
applicationId: existing.applicationId,
|
|
915
917
|
instances: news.instances ?? 1,
|
|
@@ -972,6 +974,7 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
972
974
|
if (!isResolved(news) || !isResolved(newBindings)) {
|
|
973
975
|
return undefined;
|
|
974
976
|
}
|
|
977
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
975
978
|
|
|
976
979
|
const name = yield* createApplicationName(id, news.name);
|
|
977
980
|
const oldName = output?.applicationName
|
|
@@ -1061,7 +1064,7 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
1061
1064
|
// persistence failures.
|
|
1062
1065
|
let existing: ContainerApplication["Attributes"] | undefined;
|
|
1063
1066
|
if (output?.applicationId) {
|
|
1064
|
-
existing = yield* getContainerApplication({
|
|
1067
|
+
existing = yield* Containers.getContainerApplication({
|
|
1065
1068
|
accountId: output.accountId,
|
|
1066
1069
|
applicationId: output.applicationId,
|
|
1067
1070
|
}).pipe(
|
|
@@ -1121,7 +1124,7 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
1121
1124
|
yield* session.note(
|
|
1122
1125
|
`Recreating container application ${name} with durable object binding...`,
|
|
1123
1126
|
);
|
|
1124
|
-
yield* deleteContainerApplication({
|
|
1127
|
+
yield* Containers.deleteContainerApplication({
|
|
1125
1128
|
accountId: existing.accountId,
|
|
1126
1129
|
applicationId: existing.applicationId,
|
|
1127
1130
|
}).pipe(
|
|
@@ -1183,7 +1186,7 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
1183
1186
|
yield* Effect.logInfo(
|
|
1184
1187
|
`Cloudflare Container delete: deleting ${output.applicationName}`,
|
|
1185
1188
|
);
|
|
1186
|
-
yield* deleteContainerApplication({
|
|
1189
|
+
yield* Containers.deleteContainerApplication({
|
|
1187
1190
|
accountId: output.accountId,
|
|
1188
1191
|
applicationId: output.applicationId,
|
|
1189
1192
|
}).pipe(
|
|
@@ -1214,7 +1217,7 @@ await Effect.runPromise(serverEffect).catch((err) => {
|
|
|
1214
1217
|
yield* Effect.logInfo(
|
|
1215
1218
|
`Cloudflare Container read: checking ${output.applicationName}`,
|
|
1216
1219
|
);
|
|
1217
|
-
attrs = yield* getContainerApplication({
|
|
1220
|
+
attrs = yield* Containers.getContainerApplication({
|
|
1218
1221
|
accountId: output.accountId,
|
|
1219
1222
|
applicationId: output.applicationId,
|
|
1220
1223
|
}).pipe(
|