alchemy 2.0.0-beta.52 → 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 +8 -8
- package/bin/exec.js.map +1 -1
- package/lib/AWS/ACM/Certificate.d.ts +1 -1
- package/lib/AWS/ApiGateway/Account.d.ts +1 -1
- package/lib/AWS/ApiGateway/ApiKey.d.ts +2 -2
- package/lib/AWS/ApiGateway/ApiKey.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/ApiKey.js +3 -3
- package/lib/AWS/ApiGateway/ApiKey.js.map +1 -1
- package/lib/AWS/ApiGateway/Authorizer.d.ts +1 -1
- package/lib/AWS/ApiGateway/BasePathMapping.d.ts +1 -1
- package/lib/AWS/ApiGateway/Deployment.d.ts +1 -1
- package/lib/AWS/ApiGateway/DomainName.d.ts +1 -1
- package/lib/AWS/ApiGateway/GatewayResource.d.ts +1 -1
- package/lib/AWS/ApiGateway/GatewayResponse.d.ts +1 -1
- package/lib/AWS/ApiGateway/Method.d.ts +1 -1
- package/lib/AWS/ApiGateway/RestApi.d.ts +2 -2
- package/lib/AWS/ApiGateway/RestApi.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/RestApi.js +4 -4
- package/lib/AWS/ApiGateway/RestApi.js.map +1 -1
- package/lib/AWS/ApiGateway/Stage.d.ts +2 -2
- package/lib/AWS/ApiGateway/Stage.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/Stage.js +3 -3
- package/lib/AWS/ApiGateway/Stage.js.map +1 -1
- package/lib/AWS/ApiGateway/UsagePlan.d.ts +2 -2
- package/lib/AWS/ApiGateway/UsagePlan.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/UsagePlan.js +3 -3
- package/lib/AWS/ApiGateway/UsagePlan.js.map +1 -1
- package/lib/AWS/ApiGateway/UsagePlanKey.d.ts +1 -1
- package/lib/AWS/ApiGateway/VpcLink.d.ts +2 -2
- package/lib/AWS/ApiGateway/VpcLink.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/VpcLink.js +3 -3
- package/lib/AWS/ApiGateway/VpcLink.js.map +1 -1
- package/lib/AWS/ApiGateway/common.d.ts +1 -1
- package/lib/AWS/Assets.d.ts +21 -12
- package/lib/AWS/Assets.d.ts.map +1 -1
- package/lib/AWS/Assets.js +95 -70
- package/lib/AWS/Assets.js.map +1 -1
- package/lib/AWS/AuthProvider.d.ts +12 -6
- package/lib/AWS/AuthProvider.d.ts.map +1 -1
- package/lib/AWS/AuthProvider.js +120 -75
- package/lib/AWS/AuthProvider.js.map +1 -1
- package/lib/AWS/AutoScaling/AutoScalingGroup.d.ts +1 -1
- package/lib/AWS/AutoScaling/LaunchTemplate.d.ts +1 -2
- package/lib/AWS/AutoScaling/LaunchTemplate.d.ts.map +1 -1
- package/lib/AWS/AutoScaling/LaunchTemplate.js +21 -27
- package/lib/AWS/AutoScaling/LaunchTemplate.js.map +1 -1
- package/lib/AWS/AutoScaling/ScalingPolicy.d.ts +1 -1
- package/lib/AWS/Bootstrap.d.ts +2 -14
- package/lib/AWS/Bootstrap.d.ts.map +1 -1
- package/lib/AWS/Bootstrap.js +46 -133
- package/lib/AWS/Bootstrap.js.map +1 -1
- package/lib/AWS/CloudFront/CachePolicy.d.ts +1 -1
- package/lib/AWS/CloudFront/Distribution.d.ts +1 -1
- package/lib/AWS/CloudFront/Function.d.ts +1 -1
- package/lib/AWS/CloudFront/Invalidation.d.ts +1 -1
- package/lib/AWS/CloudFront/KeyGroup.d.ts +1 -1
- package/lib/AWS/CloudFront/KeyValueStore.d.ts +1 -1
- package/lib/AWS/CloudFront/OriginAccessControl.d.ts +1 -1
- package/lib/AWS/CloudFront/OriginRequestPolicy.d.ts +1 -1
- package/lib/AWS/CloudFront/PublicKey.d.ts +1 -1
- package/lib/AWS/CloudFront/ResponseHeadersPolicy.d.ts +1 -1
- package/lib/AWS/CloudFront/common.d.ts +1 -1
- package/lib/AWS/CloudWatch/Alarm.d.ts +2 -3
- package/lib/AWS/CloudWatch/Alarm.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/Alarm.js +3 -6
- package/lib/AWS/CloudWatch/Alarm.js.map +1 -1
- package/lib/AWS/CloudWatch/AlarmMuteRule.d.ts +2 -3
- package/lib/AWS/CloudWatch/AlarmMuteRule.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/AlarmMuteRule.js +2 -5
- package/lib/AWS/CloudWatch/AlarmMuteRule.js.map +1 -1
- package/lib/AWS/CloudWatch/AnomalyDetector.d.ts +1 -1
- package/lib/AWS/CloudWatch/CompositeAlarm.d.ts +2 -3
- package/lib/AWS/CloudWatch/CompositeAlarm.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/CompositeAlarm.js +3 -6
- package/lib/AWS/CloudWatch/CompositeAlarm.js.map +1 -1
- package/lib/AWS/CloudWatch/Dashboard.d.ts +2 -2
- package/lib/AWS/CloudWatch/Dashboard.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/Dashboard.js +3 -4
- package/lib/AWS/CloudWatch/Dashboard.js.map +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarmContributors.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarmHistory.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarms.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarmsForMetric.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAnomalyDetectors.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeInsightRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/DisableAlarmActions.d.ts +1 -1
- package/lib/AWS/CloudWatch/DisableInsightRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/EnableAlarmActions.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetAlarmMuteRule.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetDashboard.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetInsightRuleReport.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricData.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricStatistics.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricStream.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricWidgetImage.d.ts +1 -1
- package/lib/AWS/CloudWatch/InsightRule.d.ts +2 -3
- package/lib/AWS/CloudWatch/InsightRule.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/InsightRule.js +4 -7
- package/lib/AWS/CloudWatch/InsightRule.js.map +1 -1
- package/lib/AWS/CloudWatch/ListAlarmMuteRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListDashboards.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListManagedInsightRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListMetricStreams.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListMetrics.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListTagsForResource.d.ts +1 -1
- package/lib/AWS/CloudWatch/MetricStream.d.ts +2 -3
- package/lib/AWS/CloudWatch/MetricStream.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/MetricStream.js +3 -6
- package/lib/AWS/CloudWatch/MetricStream.js.map +1 -1
- package/lib/AWS/CloudWatch/PutMetricData.d.ts +1 -1
- package/lib/AWS/CloudWatch/SetAlarmState.d.ts +1 -1
- package/lib/AWS/CloudWatch/common.d.ts +2 -2
- package/lib/AWS/Credentials.d.ts.map +1 -1
- package/lib/AWS/Credentials.js +4 -1
- package/lib/AWS/Credentials.js.map +1 -1
- package/lib/AWS/DynamoDB/BatchExecuteStatement.d.ts +1 -1
- package/lib/AWS/DynamoDB/BatchGetItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/BatchWriteItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/DeleteItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/DescribeTable.d.ts +1 -1
- package/lib/AWS/DynamoDB/DescribeTimeToLive.d.ts +1 -1
- package/lib/AWS/DynamoDB/ExecuteStatement.d.ts +1 -1
- package/lib/AWS/DynamoDB/ExecuteTransaction.d.ts +1 -1
- package/lib/AWS/DynamoDB/GetItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/ListTables.d.ts +1 -1
- package/lib/AWS/DynamoDB/ListTagsOfResource.d.ts +1 -1
- package/lib/AWS/DynamoDB/PutItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/Query.d.ts +1 -1
- package/lib/AWS/DynamoDB/RestoreTableToPointInTime.d.ts +1 -1
- package/lib/AWS/DynamoDB/Scan.d.ts +1 -1
- package/lib/AWS/DynamoDB/Table.d.ts +1 -1
- package/lib/AWS/DynamoDB/TransactGetItems.d.ts +1 -1
- package/lib/AWS/DynamoDB/TransactWriteItems.d.ts +1 -1
- package/lib/AWS/DynamoDB/UpdateItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/UpdateTimeToLive.d.ts +1 -1
- package/lib/AWS/EC2/EIP.d.ts +2 -3
- package/lib/AWS/EC2/EIP.d.ts.map +1 -1
- package/lib/AWS/EC2/EIP.js +2 -3
- package/lib/AWS/EC2/EIP.js.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.d.ts +2 -3
- package/lib/AWS/EC2/EgressOnlyInternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js +5 -8
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js.map +1 -1
- package/lib/AWS/EC2/Image.d.ts +6 -6
- package/lib/AWS/EC2/Instance.d.ts +2 -2
- package/lib/AWS/EC2/Instance.d.ts.map +1 -1
- package/lib/AWS/EC2/Instance.js +30 -36
- package/lib/AWS/EC2/Instance.js.map +1 -1
- package/lib/AWS/EC2/InternetGateway.d.ts +2 -4
- package/lib/AWS/EC2/InternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/InternetGateway.js +2 -4
- package/lib/AWS/EC2/InternetGateway.js.map +1 -1
- package/lib/AWS/EC2/NatGateway.d.ts +2 -3
- package/lib/AWS/EC2/NatGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/NatGateway.js +6 -8
- package/lib/AWS/EC2/NatGateway.js.map +1 -1
- package/lib/AWS/EC2/Network.d.ts +2 -2
- package/lib/AWS/EC2/Network.d.ts.map +1 -1
- package/lib/AWS/EC2/Network.js +2 -2
- package/lib/AWS/EC2/Network.js.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.d.ts +2 -3
- package/lib/AWS/EC2/NetworkAcl.d.ts.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.js +36 -36
- package/lib/AWS/EC2/NetworkAcl.js.map +1 -1
- package/lib/AWS/EC2/NetworkAclAssociation.d.ts +1 -1
- package/lib/AWS/EC2/NetworkAclEntry.d.ts +1 -1
- package/lib/AWS/EC2/Route.d.ts +1 -1
- package/lib/AWS/EC2/RouteTable.d.ts +2 -3
- package/lib/AWS/EC2/RouteTable.d.ts.map +1 -1
- package/lib/AWS/EC2/RouteTable.js +2 -4
- package/lib/AWS/EC2/RouteTable.js.map +1 -1
- package/lib/AWS/EC2/RouteTableAssociation.d.ts +1 -1
- package/lib/AWS/EC2/SecurityGroup.d.ts +2 -3
- package/lib/AWS/EC2/SecurityGroup.d.ts.map +1 -1
- package/lib/AWS/EC2/SecurityGroup.js +40 -40
- package/lib/AWS/EC2/SecurityGroup.js.map +1 -1
- package/lib/AWS/EC2/SecurityGroupRule.d.ts +1 -1
- package/lib/AWS/EC2/Subnet.d.ts +1 -1
- package/lib/AWS/EC2/Vpc.d.ts +2 -3
- package/lib/AWS/EC2/Vpc.d.ts.map +1 -1
- package/lib/AWS/EC2/Vpc.js +1 -3
- package/lib/AWS/EC2/Vpc.js.map +1 -1
- package/lib/AWS/EC2/VpcEndpoint.d.ts +1 -2
- package/lib/AWS/EC2/VpcEndpoint.d.ts.map +1 -1
- package/lib/AWS/EC2/VpcEndpoint.js +44 -43
- package/lib/AWS/EC2/VpcEndpoint.js.map +1 -1
- package/lib/AWS/EC2/hosted.d.ts +3 -6
- package/lib/AWS/EC2/hosted.d.ts.map +1 -1
- package/lib/AWS/EC2/hosted.js +17 -18
- package/lib/AWS/EC2/hosted.js.map +1 -1
- package/lib/AWS/ECR/Repository.d.ts +1 -1
- package/lib/AWS/ECS/CapacityProvider.d.ts +1 -2
- package/lib/AWS/ECS/CapacityProvider.d.ts.map +1 -1
- package/lib/AWS/ECS/CapacityProvider.js +1 -3
- package/lib/AWS/ECS/CapacityProvider.js.map +1 -1
- package/lib/AWS/ECS/Cluster.d.ts +2 -3
- package/lib/AWS/ECS/Cluster.d.ts.map +1 -1
- package/lib/AWS/ECS/Cluster.js +1 -3
- package/lib/AWS/ECS/Cluster.js.map +1 -1
- package/lib/AWS/ECS/DescribeTasks.d.ts +1 -1
- package/lib/AWS/ECS/ListTasks.d.ts +1 -1
- package/lib/AWS/ECS/RunTask.d.ts +1 -1
- package/lib/AWS/ECS/Service.d.ts +1 -1
- package/lib/AWS/ECS/StopTask.d.ts +1 -1
- package/lib/AWS/ECS/Task.d.ts +2 -2
- package/lib/AWS/ECS/Task.d.ts.map +1 -1
- package/lib/AWS/ECS/Task.js +2 -2
- package/lib/AWS/ECS/Task.js.map +1 -1
- package/lib/AWS/EKS/AccessEntry.d.ts +1 -1
- package/lib/AWS/EKS/Addon.d.ts +1 -1
- package/lib/AWS/EKS/Cluster.d.ts +1 -1
- package/lib/AWS/EKS/Cluster.d.ts.map +1 -1
- package/lib/AWS/EKS/PodIdentityAssociation.d.ts +1 -1
- package/lib/AWS/ELBv2/Listener.d.ts +1 -1
- package/lib/AWS/ELBv2/LoadBalancer.d.ts +1 -1
- package/lib/AWS/ELBv2/TargetGroup.d.ts +1 -1
- package/lib/AWS/Endpoint.d.ts.map +1 -1
- package/lib/AWS/Endpoint.js +5 -2
- package/lib/AWS/Endpoint.js.map +1 -1
- package/lib/AWS/Environment.d.ts +6 -50
- package/lib/AWS/Environment.d.ts.map +1 -1
- package/lib/AWS/Environment.js +11 -80
- package/lib/AWS/Environment.js.map +1 -1
- package/lib/AWS/EventBridge/DescribeEventBus.d.ts +1 -1
- package/lib/AWS/EventBridge/DescribeRule.d.ts +1 -1
- package/lib/AWS/EventBridge/EventBus.d.ts +2 -3
- package/lib/AWS/EventBridge/EventBus.d.ts.map +1 -1
- package/lib/AWS/EventBridge/EventBus.js +1 -3
- package/lib/AWS/EventBridge/EventBus.js.map +1 -1
- package/lib/AWS/EventBridge/ListEventBuses.d.ts +1 -1
- package/lib/AWS/EventBridge/ListRules.d.ts +2 -3
- package/lib/AWS/EventBridge/ListRules.d.ts.map +1 -1
- package/lib/AWS/EventBridge/ListRules.js +2 -3
- package/lib/AWS/EventBridge/ListRules.js.map +1 -1
- package/lib/AWS/EventBridge/ListTargetsByRule.d.ts +1 -1
- package/lib/AWS/EventBridge/Permission.d.ts +1 -1
- package/lib/AWS/EventBridge/PutEvents.d.ts +2 -3
- package/lib/AWS/EventBridge/PutEvents.d.ts.map +1 -1
- package/lib/AWS/EventBridge/PutEvents.js +2 -3
- package/lib/AWS/EventBridge/PutEvents.js.map +1 -1
- package/lib/AWS/EventBridge/Rule.d.ts +2 -3
- package/lib/AWS/EventBridge/Rule.d.ts.map +1 -1
- package/lib/AWS/EventBridge/Rule.js +2 -3
- package/lib/AWS/EventBridge/Rule.js.map +1 -1
- package/lib/AWS/EventBridge/TestEventPattern.d.ts +1 -1
- package/lib/AWS/IAM/AccessKey.d.ts +1 -1
- package/lib/AWS/IAM/AccountAlias.d.ts +1 -1
- package/lib/AWS/IAM/AccountPasswordPolicy.d.ts +1 -1
- package/lib/AWS/IAM/Group.d.ts +1 -1
- package/lib/AWS/IAM/GroupMembership.d.ts +1 -1
- package/lib/AWS/IAM/InstanceProfile.d.ts +1 -1
- package/lib/AWS/IAM/LoginProfile.d.ts +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.d.ts +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.d.ts.map +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.js +5 -4
- package/lib/AWS/IAM/OpenIDConnectProvider.js.map +1 -1
- package/lib/AWS/IAM/Policy.d.ts +1 -1
- package/lib/AWS/IAM/Policy.d.ts.map +1 -1
- package/lib/AWS/IAM/Policy.js +1 -1
- package/lib/AWS/IAM/Policy.js.map +1 -1
- package/lib/AWS/IAM/Role.d.ts +2 -2
- package/lib/AWS/IAM/Role.d.ts.map +1 -1
- package/lib/AWS/IAM/Role.js +1 -1
- package/lib/AWS/IAM/Role.js.map +1 -1
- package/lib/AWS/IAM/SAMLProvider.d.ts +2 -2
- package/lib/AWS/IAM/SAMLProvider.d.ts.map +1 -1
- package/lib/AWS/IAM/SAMLProvider.js +2 -2
- package/lib/AWS/IAM/SAMLProvider.js.map +1 -1
- package/lib/AWS/IAM/SSHPublicKey.d.ts +1 -1
- package/lib/AWS/IAM/ServerCertificate.d.ts +1 -1
- package/lib/AWS/IAM/ServiceSpecificCredential.d.ts +1 -1
- package/lib/AWS/IAM/SigningCertificate.d.ts +1 -1
- package/lib/AWS/IAM/User.d.ts +1 -1
- package/lib/AWS/IAM/VirtualMFADevice.d.ts +1 -1
- package/lib/AWS/IdentityCenter/AccountAssignment.d.ts +1 -1
- package/lib/AWS/IdentityCenter/Group.d.ts +1 -1
- package/lib/AWS/IdentityCenter/Instance.d.ts +1 -1
- package/lib/AWS/IdentityCenter/PermissionSet.d.ts +1 -1
- package/lib/AWS/IdentityCenter/common.d.ts +4 -4
- package/lib/AWS/Kinesis/DescribeAccountSettings.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeLimits.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeStream.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeStreamConsumer.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeStreamSummary.d.ts +1 -1
- package/lib/AWS/Kinesis/GetRecords.d.ts +1 -1
- package/lib/AWS/Kinesis/GetResourcePolicy.d.ts +1 -1
- package/lib/AWS/Kinesis/GetShardIterator.d.ts +1 -1
- package/lib/AWS/Kinesis/ListShards.d.ts +1 -1
- package/lib/AWS/Kinesis/ListStreamConsumers.d.ts +1 -1
- package/lib/AWS/Kinesis/ListStreams.d.ts +1 -1
- package/lib/AWS/Kinesis/ListTagsForResource.d.ts +1 -1
- package/lib/AWS/Kinesis/PutRecord.d.ts +1 -1
- package/lib/AWS/Kinesis/PutRecords.d.ts +1 -1
- package/lib/AWS/Kinesis/Stream.d.ts +2 -3
- package/lib/AWS/Kinesis/Stream.d.ts.map +1 -1
- package/lib/AWS/Kinesis/Stream.js +1 -3
- package/lib/AWS/Kinesis/Stream.js.map +1 -1
- package/lib/AWS/Kinesis/StreamConsumer.d.ts +1 -1
- package/lib/AWS/Kinesis/SubscribeToShard.d.ts +1 -1
- package/lib/AWS/Lambda/EventSourceMapping.d.ts +2 -3
- package/lib/AWS/Lambda/EventSourceMapping.d.ts.map +1 -1
- package/lib/AWS/Lambda/EventSourceMapping.js +1 -3
- package/lib/AWS/Lambda/EventSourceMapping.js.map +1 -1
- package/lib/AWS/Lambda/Function.d.ts +2 -2
- package/lib/AWS/Lambda/Function.d.ts.map +1 -1
- package/lib/AWS/Lambda/Function.js +9 -7
- package/lib/AWS/Lambda/Function.js.map +1 -1
- package/lib/AWS/Lambda/InvokeFunction.d.ts +1 -1
- package/lib/AWS/Lambda/Permission.d.ts +2 -2
- package/lib/AWS/Lambda/Permission.js +1 -1
- package/lib/AWS/Logs/LogGroup.d.ts +2 -3
- package/lib/AWS/Logs/LogGroup.d.ts.map +1 -1
- package/lib/AWS/Logs/LogGroup.js +1 -3
- package/lib/AWS/Logs/LogGroup.js.map +1 -1
- package/lib/AWS/Organizations/Account.d.ts +1 -1
- package/lib/AWS/Organizations/DelegatedAdministrator.d.ts +1 -1
- package/lib/AWS/Organizations/Organization.d.ts +1 -1
- package/lib/AWS/Organizations/OrganizationResourcePolicy.d.ts +1 -1
- package/lib/AWS/Organizations/OrganizationalUnit.d.ts +1 -1
- package/lib/AWS/Organizations/Policy.d.ts +1 -1
- package/lib/AWS/Organizations/PolicyAttachment.d.ts +1 -1
- package/lib/AWS/Organizations/Root.d.ts +1 -1
- package/lib/AWS/Organizations/RootPolicyType.d.ts +1 -1
- package/lib/AWS/Organizations/TrustedServiceAccess.d.ts +1 -1
- package/lib/AWS/Organizations/common.d.ts +2 -2
- package/lib/AWS/Providers.d.ts +3 -2
- package/lib/AWS/Providers.d.ts.map +1 -1
- package/lib/AWS/Providers.js +2 -2
- package/lib/AWS/Providers.js.map +1 -1
- package/lib/AWS/RDS/Connect.d.ts +1 -1
- package/lib/AWS/RDS/DBCluster.d.ts +1 -1
- package/lib/AWS/RDS/DBClusterEndpoint.d.ts +1 -1
- package/lib/AWS/RDS/DBClusterParameterGroup.d.ts +1 -1
- package/lib/AWS/RDS/DBInstance.d.ts +1 -1
- package/lib/AWS/RDS/DBParameterGroup.d.ts +1 -1
- package/lib/AWS/RDS/DBProxy.d.ts +1 -1
- package/lib/AWS/RDS/DBProxyEndpoint.d.ts +1 -1
- package/lib/AWS/RDS/DBProxyTargetGroup.d.ts +1 -1
- package/lib/AWS/RDS/DBSubnetGroup.d.ts +1 -1
- package/lib/AWS/RDSData/BatchExecuteStatement.d.ts +1 -1
- package/lib/AWS/RDSData/BeginTransaction.d.ts +1 -1
- package/lib/AWS/RDSData/CommitTransaction.d.ts +1 -1
- package/lib/AWS/RDSData/ExecuteSql.d.ts +1 -1
- package/lib/AWS/RDSData/ExecuteStatement.d.ts +1 -1
- package/lib/AWS/RDSData/RollbackTransaction.d.ts +1 -1
- package/lib/AWS/Region.d.ts +2 -0
- package/lib/AWS/Region.d.ts.map +1 -1
- package/lib/AWS/Region.js +8 -3
- package/lib/AWS/Region.js.map +1 -1
- package/lib/AWS/Route53/Record.d.ts +1 -1
- package/lib/AWS/S3/AbortMultipartUpload.d.ts +1 -1
- package/lib/AWS/S3/Bucket.d.ts +6 -3
- package/lib/AWS/S3/Bucket.d.ts.map +1 -1
- package/lib/AWS/S3/Bucket.js +3 -4
- package/lib/AWS/S3/Bucket.js.map +1 -1
- package/lib/AWS/S3/CompleteMultipartUpload.d.ts +1 -1
- package/lib/AWS/S3/CopyObject.d.ts +1 -1
- package/lib/AWS/S3/CreateMultipartUpload.d.ts +1 -1
- package/lib/AWS/S3/DeleteObject.d.ts +1 -1
- package/lib/AWS/S3/GetObject.d.ts +1 -1
- package/lib/AWS/S3/HeadObject.d.ts +1 -1
- package/lib/AWS/S3/ListObjectsV2.d.ts +1 -1
- package/lib/AWS/S3/PutObject.d.ts +1 -1
- package/lib/AWS/S3/UploadPart.d.ts +1 -1
- package/lib/AWS/SNS/AddPermission.d.ts +1 -1
- package/lib/AWS/SNS/ConfirmSubscription.d.ts +1 -1
- package/lib/AWS/SNS/GetDataProtectionPolicy.d.ts +1 -1
- package/lib/AWS/SNS/GetSubscriptionAttributes.d.ts +1 -1
- package/lib/AWS/SNS/GetTopicAttributes.d.ts +1 -1
- package/lib/AWS/SNS/ListSubscriptions.d.ts +1 -1
- package/lib/AWS/SNS/ListSubscriptionsByTopic.d.ts +1 -1
- package/lib/AWS/SNS/ListTagsForResource.d.ts +1 -1
- package/lib/AWS/SNS/ListTopics.d.ts +1 -1
- package/lib/AWS/SNS/Publish.d.ts +1 -1
- package/lib/AWS/SNS/PublishBatch.d.ts +1 -1
- package/lib/AWS/SNS/PutDataProtectionPolicy.d.ts +1 -1
- package/lib/AWS/SNS/RemovePermission.d.ts +1 -1
- package/lib/AWS/SNS/SetSubscriptionAttributes.d.ts +1 -1
- package/lib/AWS/SNS/SetTopicAttributes.d.ts +1 -1
- package/lib/AWS/SNS/Subscription.d.ts +1 -1
- package/lib/AWS/SNS/TagResource.d.ts +1 -1
- package/lib/AWS/SNS/Topic.d.ts +1 -1
- package/lib/AWS/SNS/UntagResource.d.ts +1 -1
- package/lib/AWS/SQS/DeleteMessage.d.ts +1 -1
- package/lib/AWS/SQS/DeleteMessageBatch.d.ts +1 -1
- package/lib/AWS/SQS/Queue.d.ts +1 -2
- package/lib/AWS/SQS/Queue.d.ts.map +1 -1
- package/lib/AWS/SQS/Queue.js +2 -3
- package/lib/AWS/SQS/Queue.js.map +1 -1
- package/lib/AWS/SQS/ReceiveMessage.d.ts +1 -1
- package/lib/AWS/SQS/SendMessage.d.ts +1 -1
- package/lib/AWS/SQS/SendMessageBatch.d.ts +1 -1
- package/lib/AWS/Scheduler/Schedule.d.ts +1 -1
- package/lib/AWS/Scheduler/ScheduleGroup.d.ts +1 -1
- package/lib/AWS/SecretsManager/DescribeSecret.d.ts +1 -1
- package/lib/AWS/SecretsManager/GetRandomPassword.d.ts +1 -1
- package/lib/AWS/SecretsManager/GetSecretValue.d.ts +1 -1
- package/lib/AWS/SecretsManager/ListSecrets.d.ts +1 -1
- package/lib/AWS/SecretsManager/PutSecretValue.d.ts +1 -1
- package/lib/AWS/SecretsManager/Secret.d.ts +1 -1
- package/lib/AWS/Website/AssetDeployment.d.ts +1 -1
- package/lib/AWS/index.d.ts +0 -1
- package/lib/AWS/index.d.ts.map +1 -1
- package/lib/AWS/index.js +0 -1
- package/lib/AWS/index.js.map +1 -1
- package/lib/Auth/Profile.d.ts +10 -10
- package/lib/Auth/Profile.d.ts.map +1 -1
- package/lib/Auth/Profile.js +4 -4
- package/lib/Auth/Profile.js.map +1 -1
- package/lib/Axiom/Credentials.d.ts +2 -3
- package/lib/Axiom/Credentials.d.ts.map +1 -1
- package/lib/Axiom/Credentials.js +3 -3
- package/lib/Axiom/Credentials.js.map +1 -1
- package/lib/Axiom/Dataset.js +1 -1
- package/lib/Axiom/Dataset.js.map +1 -1
- package/lib/Axiom/Providers.d.ts +1 -1
- package/lib/Axiom/Providers.d.ts.map +1 -1
- package/lib/Axiom/Providers.js +1 -1
- package/lib/Axiom/Providers.js.map +1 -1
- package/lib/Binding.d.ts +2 -2
- package/lib/Binding.d.ts.map +1 -1
- package/lib/Binding.js.map +1 -1
- package/lib/Cli/commands/_shared.d.ts +3 -3
- package/lib/Cli/commands/_shared.d.ts.map +1 -1
- package/lib/Cli/commands/_shared.js.map +1 -1
- package/lib/Cli/commands/aws.d.ts +1 -1
- package/lib/Cli/commands/aws.d.ts.map +1 -1
- package/lib/Cli/commands/aws.js +3 -3
- package/lib/Cli/commands/aws.js.map +1 -1
- package/lib/Cli/commands/cloudflare.js +1 -1
- package/lib/Cli/commands/cloudflare.js.map +1 -1
- package/lib/Cli/commands/deploy.d.ts +4 -4
- package/lib/Cli/commands/deploy.d.ts.map +1 -1
- package/lib/Cli/commands/login.d.ts +2 -3
- package/lib/Cli/commands/login.d.ts.map +1 -1
- package/lib/Cli/commands/login.js +6 -15
- package/lib/Cli/commands/login.js.map +1 -1
- package/lib/Cli/commands/logs.d.ts +1 -1
- package/lib/Cli/commands/logs.d.ts.map +1 -1
- package/lib/Cli/commands/profile.js +3 -3
- package/lib/Cli/commands/profile.js.map +1 -1
- package/lib/Cli/commands/tail.d.ts +1 -1
- package/lib/Cli/commands/tail.d.ts.map +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.d.ts.map +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.js +185 -180
- package/lib/Cloudflare/AiGateway/AiGateway.js.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.d.ts.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.js +103 -102
- package/lib/Cloudflare/ApiToken/AccountApiToken.js.map +1 -1
- package/lib/Cloudflare/ApiToken/UserApiToken.d.ts.map +1 -1
- package/lib/Cloudflare/ApiToken/UserApiToken.js +77 -81
- package/lib/Cloudflare/ApiToken/UserApiToken.js.map +1 -1
- package/lib/Cloudflare/CloudflareEnvironment.d.ts +4 -3
- package/lib/Cloudflare/CloudflareEnvironment.d.ts.map +1 -1
- package/lib/Cloudflare/CloudflareEnvironment.js +3 -4
- package/lib/Cloudflare/CloudflareEnvironment.js.map +1 -1
- package/lib/Cloudflare/Container/ContainerApplication.d.ts.map +1 -1
- package/lib/Cloudflare/Container/ContainerApplication.js +18 -18
- package/lib/Cloudflare/Container/ContainerApplication.js.map +1 -1
- package/lib/Cloudflare/Credentials.d.ts +2 -2
- package/lib/Cloudflare/Credentials.d.ts.map +1 -1
- package/lib/Cloudflare/Credentials.js +2 -2
- package/lib/Cloudflare/Credentials.js.map +1 -1
- package/lib/Cloudflare/D1/D1Database.d.ts +3 -1
- package/lib/Cloudflare/D1/D1Database.d.ts.map +1 -1
- package/lib/Cloudflare/D1/D1Database.js +205 -201
- package/lib/Cloudflare/D1/D1Database.js.map +1 -1
- package/lib/Cloudflare/EdgeSession.d.ts.map +1 -1
- package/lib/Cloudflare/EdgeSession.js +6 -5
- package/lib/Cloudflare/EdgeSession.js.map +1 -1
- package/lib/Cloudflare/Email/EmailAddress.d.ts.map +1 -1
- package/lib/Cloudflare/Email/EmailAddress.js +69 -61
- package/lib/Cloudflare/Email/EmailAddress.js.map +1 -1
- package/lib/Cloudflare/Email/EmailRouting.d.ts.map +1 -1
- package/lib/Cloudflare/Email/EmailRouting.js +63 -56
- package/lib/Cloudflare/Email/EmailRouting.js.map +1 -1
- package/lib/Cloudflare/Email/EmailRule.d.ts.map +1 -1
- package/lib/Cloudflare/Email/EmailRule.js +67 -63
- package/lib/Cloudflare/Email/EmailRule.js.map +1 -1
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.d.ts.map +1 -1
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.js +139 -137
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.js.map +1 -1
- package/lib/Cloudflare/KV/KVNamespace.d.ts.map +1 -1
- package/lib/Cloudflare/KV/KVNamespace.js +115 -108
- package/lib/Cloudflare/KV/KVNamespace.js.map +1 -1
- package/lib/Cloudflare/Providers.d.ts +1 -1
- package/lib/Cloudflare/Providers.d.ts.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/Ruleset/Ruleset.d.ts.map +1 -1
- package/lib/Cloudflare/Ruleset/Ruleset.js +81 -81
- package/lib/Cloudflare/Ruleset/Ruleset.js.map +1 -1
- package/lib/Cloudflare/SecretsStore/Secret.d.ts.map +1 -1
- package/lib/Cloudflare/SecretsStore/Secret.js +144 -143
- package/lib/Cloudflare/SecretsStore/Secret.js.map +1 -1
- package/lib/Cloudflare/SecretsStore/SecretsStore.d.ts.map +1 -1
- package/lib/Cloudflare/SecretsStore/SecretsStore.js +74 -75
- package/lib/Cloudflare/SecretsStore/SecretsStore.js.map +1 -1
- package/lib/Cloudflare/StateStore/State.d.ts +1 -1
- package/lib/Cloudflare/StateStore/State.d.ts.map +1 -1
- package/lib/Cloudflare/StateStore/State.js +3 -3
- package/lib/Cloudflare/StateStore/State.js.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.js +166 -158
- package/lib/Cloudflare/Tunnel/Tunnel.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelBinding.d.ts +2 -2
- package/lib/Cloudflare/Tunnel/TunnelBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelBinding.js +10 -11
- package/lib/Cloudflare/Tunnel/TunnelBinding.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelRead.d.ts +4 -3
- package/lib/Cloudflare/Tunnel/TunnelRead.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelRead.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelReadWrite.d.ts +4 -3
- package/lib/Cloudflare/Tunnel/TunnelReadWrite.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelReadWrite.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelWrite.d.ts +4 -3
- package/lib/Cloudflare/Tunnel/TunnelWrite.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelWrite.js.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeIndex.d.ts.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js +79 -75
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.d.ts.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.js +85 -82
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.js.map +1 -1
- package/lib/Cloudflare/VpcService/VpcService.d.ts.map +1 -1
- package/lib/Cloudflare/VpcService/VpcService.js +112 -106
- package/lib/Cloudflare/VpcService/VpcService.js.map +1 -1
- package/lib/Cloudflare/VpcService/VpcServiceRef.js +1 -1
- package/lib/Cloudflare/VpcService/VpcServiceRef.js.map +1 -1
- package/lib/Cloudflare/Workers/Assets.js +2 -2
- package/lib/Cloudflare/Workers/Assets.js.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 +3 -2
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/Worker.d.ts +2 -2
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js +111 -61
- package/lib/Cloudflare/Workers/Worker.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +2 -14
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/Workflow.js +6 -6
- package/lib/Cloudflare/Workers/Workflow.js.map +1 -1
- package/lib/Cloudflare/Zaraz/ZarazConfig.d.ts.map +1 -1
- package/lib/Cloudflare/Zaraz/ZarazConfig.js +68 -75
- package/lib/Cloudflare/Zaraz/ZarazConfig.js.map +1 -1
- package/lib/Cloudflare/Zone/Zone.d.ts.map +1 -1
- package/lib/Cloudflare/Zone/Zone.js +18 -13
- package/lib/Cloudflare/Zone/Zone.js.map +1 -1
- package/lib/GitHub/Comment.d.ts +1 -6
- package/lib/GitHub/Comment.d.ts.map +1 -1
- package/lib/GitHub/Comment.js +3 -9
- package/lib/GitHub/Comment.js.map +1 -1
- package/lib/GitHub/Credentials.d.ts +4 -3
- package/lib/GitHub/Credentials.d.ts.map +1 -1
- package/lib/GitHub/Credentials.js +5 -5
- package/lib/GitHub/Credentials.js.map +1 -1
- package/lib/GitHub/Octokit.d.ts +5 -0
- package/lib/GitHub/Octokit.d.ts.map +1 -0
- package/lib/GitHub/Octokit.js +7 -0
- package/lib/GitHub/Octokit.js.map +1 -0
- package/lib/GitHub/Providers.d.ts +1 -1
- package/lib/GitHub/Providers.d.ts.map +1 -1
- package/lib/GitHub/Secret.d.ts +1 -2
- package/lib/GitHub/Secret.d.ts.map +1 -1
- package/lib/GitHub/Secret.js +8 -12
- package/lib/GitHub/Secret.js.map +1 -1
- package/lib/GitHub/Variable.d.ts +1 -2
- package/lib/GitHub/Variable.d.ts.map +1 -1
- package/lib/GitHub/Variable.js +3 -7
- package/lib/GitHub/Variable.js.map +1 -1
- package/lib/Kubernetes/client.d.ts +11 -11
- package/lib/Kubernetes/client.d.ts.map +1 -1
- package/lib/Kubernetes/client.js +2 -2
- package/lib/Kubernetes/client.js.map +1 -1
- package/lib/Local/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/Server/S3BucketEventSource.d.ts +1 -1
- package/lib/Server/S3BucketEventSource.d.ts.map +1 -1
- package/lib/Server/SQSQueueEventSource.d.ts +2 -2
- package/lib/Server/SQSQueueEventSource.d.ts.map +1 -1
- package/lib/Server/SQSQueueEventSource.js +3 -2
- package/lib/Server/SQSQueueEventSource.js.map +1 -1
- package/lib/Stack.d.ts +4 -4
- package/lib/Stack.d.ts.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +12 -11
- package/src/AWS/ApiGateway/ApiKey.ts +4 -5
- package/src/AWS/ApiGateway/RestApi.ts +5 -6
- package/src/AWS/ApiGateway/Stage.ts +4 -5
- package/src/AWS/ApiGateway/UsagePlan.ts +4 -5
- package/src/AWS/ApiGateway/VpcLink.ts +4 -6
- package/src/AWS/Assets.ts +161 -108
- package/src/AWS/AuthProvider.ts +221 -124
- package/src/AWS/AutoScaling/LaunchTemplate.ts +31 -32
- package/src/AWS/Bootstrap.ts +66 -195
- package/src/AWS/CloudWatch/Alarm.ts +9 -8
- package/src/AWS/CloudWatch/AlarmMuteRule.ts +8 -7
- package/src/AWS/CloudWatch/CompositeAlarm.ts +9 -8
- package/src/AWS/CloudWatch/Dashboard.ts +9 -6
- package/src/AWS/CloudWatch/InsightRule.ts +10 -9
- package/src/AWS/CloudWatch/MetricStream.ts +9 -7
- package/src/AWS/Credentials.ts +4 -1
- package/src/AWS/EC2/EIP.ts +5 -5
- package/src/AWS/EC2/EgressOnlyInternetGateway.ts +20 -17
- package/src/AWS/EC2/Instance.ts +42 -41
- package/src/AWS/EC2/InternetGateway.ts +4 -8
- package/src/AWS/EC2/NatGateway.ts +10 -11
- package/src/AWS/EC2/Network.ts +2 -2
- package/src/AWS/EC2/NetworkAcl.ts +38 -39
- package/src/AWS/EC2/RouteTable.ts +3 -6
- package/src/AWS/EC2/SecurityGroup.ts +43 -44
- package/src/AWS/EC2/Vpc.ts +2 -5
- package/src/AWS/EC2/VpcEndpoint.ts +47 -47
- package/src/AWS/EC2/hosted.ts +19 -33
- package/src/AWS/ECS/CapacityProvider.ts +1 -3
- package/src/AWS/ECS/Cluster.ts +2 -5
- package/src/AWS/ECS/Task.ts +4 -3
- package/src/AWS/Endpoint.ts +12 -6
- package/src/AWS/Environment.ts +22 -120
- package/src/AWS/EventBridge/EventBus.ts +2 -5
- package/src/AWS/EventBridge/ListRules.ts +2 -5
- package/src/AWS/EventBridge/PutEvents.ts +2 -3
- package/src/AWS/EventBridge/Rule.ts +3 -5
- package/src/AWS/IAM/OpenIDConnectProvider.ts +10 -4
- package/src/AWS/IAM/Policy.ts +1 -2
- package/src/AWS/IAM/Role.ts +2 -2
- package/src/AWS/IAM/SAMLProvider.ts +3 -3
- package/src/AWS/Kinesis/Stream.ts +2 -5
- package/src/AWS/Lambda/EventSourceMapping.ts +2 -5
- package/src/AWS/Lambda/Function.ts +10 -8
- package/src/AWS/Lambda/Permission.ts +1 -1
- package/src/AWS/Logs/LogGroup.ts +2 -5
- package/src/AWS/Providers.ts +2 -2
- package/src/AWS/Region.ts +15 -3
- package/src/AWS/S3/Bucket.ts +15 -15
- package/src/AWS/SQS/Queue.ts +2 -3
- package/src/AWS/index.ts +0 -1
- package/src/Auth/Profile.ts +13 -12
- package/src/Axiom/Credentials.ts +4 -2
- package/src/Axiom/Dataset.ts +1 -1
- package/src/Axiom/Providers.ts +1 -1
- package/src/Binding.ts +2 -5
- package/src/Cli/commands/_shared.ts +2 -2
- package/src/Cli/commands/aws.ts +12 -9
- package/src/Cli/commands/cloudflare.ts +1 -1
- package/src/Cli/commands/login.ts +6 -22
- package/src/Cli/commands/profile.ts +3 -3
- package/src/Cloudflare/AiGateway/AiGateway.ts +219 -218
- package/src/Cloudflare/ApiToken/AccountApiToken.ts +142 -153
- package/src/Cloudflare/ApiToken/UserApiToken.ts +105 -121
- package/src/Cloudflare/CloudflareEnvironment.ts +10 -5
- package/src/Cloudflare/Container/ContainerApplication.ts +32 -29
- package/src/Cloudflare/Credentials.ts +2 -2
- package/src/Cloudflare/D1/D1Database.ts +268 -263
- package/src/Cloudflare/EdgeSession.ts +6 -5
- package/src/Cloudflare/Email/EmailAddress.ts +74 -71
- package/src/Cloudflare/Email/EmailRouting.ts +73 -75
- package/src/Cloudflare/Email/EmailRule.ts +79 -80
- package/src/Cloudflare/Hyperdrive/Hyperdrive.ts +155 -158
- package/src/Cloudflare/KV/KVNamespace.ts +139 -138
- 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/Ruleset/Ruleset.ts +93 -98
- package/src/Cloudflare/SecretsStore/Secret.ts +187 -194
- package/src/Cloudflare/SecretsStore/SecretsStore.ts +82 -87
- package/src/Cloudflare/StateStore/State.ts +5 -3
- package/src/Cloudflare/Tunnel/Tunnel.ts +187 -186
- package/src/Cloudflare/Tunnel/TunnelBinding.ts +16 -9
- package/src/Cloudflare/Tunnel/TunnelRead.ts +3 -2
- package/src/Cloudflare/Tunnel/TunnelReadWrite.ts +7 -2
- package/src/Cloudflare/Tunnel/TunnelWrite.ts +3 -2
- package/src/Cloudflare/Vectorize/VectorizeIndex.ts +98 -98
- package/src/Cloudflare/Vectorize/VectorizeMetadataIndex.ts +97 -109
- package/src/Cloudflare/VpcService/VpcService.ts +126 -125
- package/src/Cloudflare/VpcService/VpcServiceRef.ts +1 -1
- package/src/Cloudflare/Workers/Assets.ts +2 -2
- package/src/Cloudflare/Workers/LocalWorkerProvider.ts +3 -2
- package/src/Cloudflare/Workers/Worker.ts +323 -269
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +7 -21
- package/src/Cloudflare/Workers/Workflow.ts +8 -8
- package/src/Cloudflare/Zaraz/ZarazConfig.ts +87 -99
- package/src/Cloudflare/Zone/Zone.ts +36 -33
- package/src/GitHub/Comment.ts +3 -20
- package/src/GitHub/Credentials.ts +9 -5
- package/src/GitHub/Octokit.ts +9 -0
- package/src/GitHub/Secret.ts +8 -21
- package/src/GitHub/Variable.ts +3 -8
- package/src/Kubernetes/client.ts +2 -2
- package/src/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/Server/SQSQueueEventSource.ts +3 -2
- package/src/Stack.ts +3 -3
- package/bin/alchemy.sh +0 -15
- package/lib/AWS/Context.d.ts +0 -8
- package/lib/AWS/Context.d.ts.map +0 -1
- package/lib/AWS/Context.js +0 -16
- package/lib/AWS/Context.js.map +0 -1
- package/lib/Neon/NeonEnvironment.d.ts +0 -11
- package/lib/Neon/NeonEnvironment.d.ts.map +0 -1
- package/lib/Neon/NeonEnvironment.js +0 -18
- package/lib/Neon/NeonEnvironment.js.map +0 -1
- package/src/AWS/Context.ts +0 -30
- package/src/Neon/NeonEnvironment.ts +0 -32
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { PutScriptRequest } from "@distilled.cloud/cloudflare/workers";
|
|
2
|
-
import * as Config from "effect/Config";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import * as Redacted from "effect/Redacted";
|
|
5
4
|
import type { InputProps } from "../../Input.ts";
|
|
6
5
|
import * as Output from "../../Output.ts";
|
|
7
6
|
import type { ResourceBinding } from "../../Resource.ts";
|
|
8
7
|
import { isYieldableEffectLike } from "../../Util/effect.ts";
|
|
9
|
-
import { asEffect } from "../../Util/types.ts";
|
|
10
8
|
import { isAiGateway } from "../AiGateway/AiGateway.ts";
|
|
11
9
|
import { isAnalyticsEngineDataset } from "../AnalyticsEngine/AnalyticsEngineDataset.ts";
|
|
12
10
|
import { isArtifacts } from "../Artifacts/Artifacts.ts";
|
|
@@ -51,8 +49,10 @@ export const bindWorkerAsyncBindings = Effect.fnUntraced(function* (
|
|
|
51
49
|
: bindingEff
|
|
52
50
|
) as WorkerBindingResource;
|
|
53
51
|
|
|
54
|
-
const bindingMeta: InputProps<WorkerBinding> | undefined =
|
|
55
|
-
|
|
52
|
+
const bindingMeta: InputProps<WorkerBinding> | undefined = toBinding(
|
|
53
|
+
bindingName,
|
|
54
|
+
binding,
|
|
55
|
+
);
|
|
56
56
|
|
|
57
57
|
if (bindingMeta) {
|
|
58
58
|
yield* resource.bind`${bindingName}`({
|
|
@@ -75,20 +75,14 @@ type BindingSpec = InputProps<
|
|
|
75
75
|
const toBinding = (
|
|
76
76
|
bindingName: string,
|
|
77
77
|
binding: WorkerBindingResource,
|
|
78
|
-
): BindingSpec
|
|
79
|
-
// narrowing to Config<unknown> doesn't work for us, we need any
|
|
80
|
-
const isConfig: (a: any) => a is Config.Config<any> = Config.isConfig;
|
|
81
|
-
// narrowing to Redacted<unknown> doesn't work for us, we need any
|
|
82
|
-
const isRedacted: (a: any) => a is Redacted.Redacted<any> =
|
|
83
|
-
Redacted.isRedacted;
|
|
84
|
-
|
|
78
|
+
): BindingSpec => {
|
|
85
79
|
if (typeof binding === "string") {
|
|
86
80
|
return {
|
|
87
81
|
type: "plain_text",
|
|
88
82
|
name: bindingName,
|
|
89
83
|
text: binding,
|
|
90
84
|
};
|
|
91
|
-
} else if (isRedacted(binding)) {
|
|
85
|
+
} else if (Redacted.isRedacted(binding)) {
|
|
92
86
|
const val = Redacted.value(binding);
|
|
93
87
|
if (typeof val === "string") {
|
|
94
88
|
return {
|
|
@@ -103,14 +97,6 @@ const toBinding = (
|
|
|
103
97
|
text: JSON.stringify(val),
|
|
104
98
|
};
|
|
105
99
|
}
|
|
106
|
-
} else if (isConfig(binding)) {
|
|
107
|
-
return binding.pipe(
|
|
108
|
-
Effect.flatMap((json) => {
|
|
109
|
-
const b = toBinding(bindingName, json)!;
|
|
110
|
-
return Effect.isEffect(b) ? b : Effect.succeed(b);
|
|
111
|
-
}),
|
|
112
|
-
Effect.orDie,
|
|
113
|
-
);
|
|
114
100
|
} else if (isAssets(binding)) {
|
|
115
101
|
return {
|
|
116
102
|
type: "assets",
|
|
@@ -228,7 +214,7 @@ const toBinding = (
|
|
|
228
214
|
return {
|
|
229
215
|
type: "worker_loader",
|
|
230
216
|
name: bindingName,
|
|
231
|
-
}
|
|
217
|
+
};
|
|
232
218
|
} else {
|
|
233
219
|
return {
|
|
234
220
|
type: "json",
|
|
@@ -491,9 +491,6 @@ export const WorkflowProvider = () =>
|
|
|
491
491
|
WorkflowResource,
|
|
492
492
|
Effect.gen(function* () {
|
|
493
493
|
const ctx = yield* AlchemyContext;
|
|
494
|
-
const { accountId } = yield* CloudflareEnvironment;
|
|
495
|
-
const putWorkflow = yield* workflows.putWorkflow;
|
|
496
|
-
const deleteWorkflow = yield* workflows.deleteWorkflow;
|
|
497
494
|
|
|
498
495
|
return WorkflowResource.Provider.of({
|
|
499
496
|
// The `workflowId` is no longer marked as stable because if you start in dev mode, the ID will change on first deploy.
|
|
@@ -505,6 +502,7 @@ export const WorkflowProvider = () =>
|
|
|
505
502
|
}
|
|
506
503
|
}),
|
|
507
504
|
reconcile: Effect.fnUntraced(function* ({ news, output }) {
|
|
505
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
508
506
|
const acct = output?.accountId ?? accountId;
|
|
509
507
|
yield* Effect.logInfo(
|
|
510
508
|
`Cloudflare Workflow reconcile: ${news.workflowName}`,
|
|
@@ -522,7 +520,7 @@ export const WorkflowProvider = () =>
|
|
|
522
520
|
// payloads converge to the same state and a missing workflow is
|
|
523
521
|
// created on the spot. There is no separate observe step needed
|
|
524
522
|
// — the API is naturally reconciler-shaped.
|
|
525
|
-
const result = yield* putWorkflow({
|
|
523
|
+
const result = yield* workflows.putWorkflow({
|
|
526
524
|
accountId: acct,
|
|
527
525
|
workflowName: news.workflowName,
|
|
528
526
|
className: news.className,
|
|
@@ -540,10 +538,12 @@ export const WorkflowProvider = () =>
|
|
|
540
538
|
yield* Effect.logInfo(
|
|
541
539
|
`Cloudflare Workflow delete: ${output.workflowName}`,
|
|
542
540
|
);
|
|
543
|
-
yield*
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
541
|
+
yield* workflows
|
|
542
|
+
.deleteWorkflow({
|
|
543
|
+
accountId: output.accountId,
|
|
544
|
+
workflowName: output.workflowName,
|
|
545
|
+
})
|
|
546
|
+
.pipe(Effect.catchTag("WorkflowNotFound", () => Effect.void));
|
|
547
547
|
}),
|
|
548
548
|
});
|
|
549
549
|
}),
|
|
@@ -194,6 +194,93 @@ export const ZarazConfig = Object.assign(
|
|
|
194
194
|
},
|
|
195
195
|
);
|
|
196
196
|
|
|
197
|
+
export const ZarazConfigProvider = () =>
|
|
198
|
+
Provider.succeed(ZarazConfig, {
|
|
199
|
+
stables: ["zoneId"],
|
|
200
|
+
diff: Effect.fn(function* ({ olds, news, output }) {
|
|
201
|
+
if (!output) return undefined;
|
|
202
|
+
if (!isResolved(news)) return undefined;
|
|
203
|
+
|
|
204
|
+
const zoneId = yield* resolve(news.zone);
|
|
205
|
+
if (zoneId !== output.zoneId) {
|
|
206
|
+
return { action: "replace" } as const;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
const outputConfig = fromAttributes(output);
|
|
210
|
+
const comparableOutput = configForCompare(outputConfig, olds, news);
|
|
211
|
+
const desired = desiredConfig(outputConfig, news);
|
|
212
|
+
const desiredWorkflow = news.workflow ?? output.workflow;
|
|
213
|
+
if (
|
|
214
|
+
desiredWorkflow !== output.workflow ||
|
|
215
|
+
!deepEqual(
|
|
216
|
+
comparableConfig(comparableOutput),
|
|
217
|
+
comparableConfig(desired),
|
|
218
|
+
)
|
|
219
|
+
) {
|
|
220
|
+
return { action: "update" } as const;
|
|
221
|
+
}
|
|
222
|
+
}),
|
|
223
|
+
read: Effect.fn(function* ({ olds, output }) {
|
|
224
|
+
const zoneId =
|
|
225
|
+
output?.zoneId ?? (olds ? yield* resolve(olds.zone) : undefined);
|
|
226
|
+
if (!zoneId) return undefined;
|
|
227
|
+
return yield* observe(zoneId);
|
|
228
|
+
}),
|
|
229
|
+
reconcile: Effect.fn(function* ({ news, output }) {
|
|
230
|
+
const zoneId = output?.zoneId ?? (yield* resolve(news.zone));
|
|
231
|
+
const observed = yield* observe(zoneId);
|
|
232
|
+
const observedConfig = fromAttributes(observed);
|
|
233
|
+
const desired = desiredConfig(observedConfig, news);
|
|
234
|
+
const desiredWorkflow = news.workflow ?? observed.workflow;
|
|
235
|
+
|
|
236
|
+
const updatedConfig = deepEqual(
|
|
237
|
+
comparableConfig(observedConfig),
|
|
238
|
+
comparableConfig(desired),
|
|
239
|
+
)
|
|
240
|
+
? observedConfig
|
|
241
|
+
: yield* zaraz.putConfig(toPutConfig(zoneId, desired));
|
|
242
|
+
const updatedWorkflow =
|
|
243
|
+
desiredWorkflow === observed.workflow
|
|
244
|
+
? observed.workflow
|
|
245
|
+
: yield* zaraz.putZaraz({
|
|
246
|
+
zoneId,
|
|
247
|
+
workflow: desiredWorkflow,
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
return toAttributes(zoneId, updatedConfig, updatedWorkflow);
|
|
251
|
+
}),
|
|
252
|
+
delete: Effect.fn(function* ({ output, olds }) {
|
|
253
|
+
if (olds.delete !== true) return;
|
|
254
|
+
const defaults = yield* zaraz.getDefault({ zoneId: output.zoneId });
|
|
255
|
+
yield* zaraz.putConfig(toPutConfig(output.zoneId, defaults));
|
|
256
|
+
if (olds.workflow !== undefined) {
|
|
257
|
+
yield* zaraz.putZaraz({
|
|
258
|
+
zoneId: output.zoneId,
|
|
259
|
+
workflow: "realtime",
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}),
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
const resolve = Effect.fnUntraced(function* (zone: ZoneReference) {
|
|
266
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
267
|
+
return yield* resolveZoneId({
|
|
268
|
+
accountId,
|
|
269
|
+
zone,
|
|
270
|
+
hostname: typeof zone === "string" ? zone : (zone.name ?? ""),
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
const observe = (zoneId: string) =>
|
|
275
|
+
Effect.all({
|
|
276
|
+
config: zaraz.getConfig({ zoneId }),
|
|
277
|
+
workflow: zaraz.getWorkflow({ zoneId }),
|
|
278
|
+
}).pipe(
|
|
279
|
+
Effect.map(({ config, workflow }) =>
|
|
280
|
+
toAttributes(zoneId, config, workflow),
|
|
281
|
+
),
|
|
282
|
+
);
|
|
283
|
+
|
|
197
284
|
type ConfigResponse =
|
|
198
285
|
| zaraz.GetConfigResponse
|
|
199
286
|
| zaraz.PutConfigResponse
|
|
@@ -302,102 +389,3 @@ const configForCompare = (
|
|
|
302
389
|
variables: props.variables,
|
|
303
390
|
};
|
|
304
391
|
};
|
|
305
|
-
|
|
306
|
-
export const ZarazConfigProvider = () =>
|
|
307
|
-
Provider.effect(
|
|
308
|
-
ZarazConfig,
|
|
309
|
-
Effect.gen(function* () {
|
|
310
|
-
const { accountId } = yield* CloudflareEnvironment;
|
|
311
|
-
const getConfig = yield* zaraz.getConfig;
|
|
312
|
-
const putConfig = yield* zaraz.putConfig;
|
|
313
|
-
const getDefault = yield* zaraz.getDefault;
|
|
314
|
-
const getWorkflow = yield* zaraz.getWorkflow;
|
|
315
|
-
// Cloudflare's OpenAPI operation name is `putZaraz`, but the endpoint
|
|
316
|
-
// updates the zone's Zaraz workflow mode.
|
|
317
|
-
const putWorkflow = yield* zaraz.putZaraz;
|
|
318
|
-
|
|
319
|
-
const resolve = (zone: ZoneReference) =>
|
|
320
|
-
resolveZoneId({
|
|
321
|
-
accountId,
|
|
322
|
-
zone,
|
|
323
|
-
hostname: typeof zone === "string" ? zone : (zone.name ?? ""),
|
|
324
|
-
});
|
|
325
|
-
|
|
326
|
-
const observe = (zoneId: string) =>
|
|
327
|
-
Effect.all({
|
|
328
|
-
config: getConfig({ zoneId }),
|
|
329
|
-
workflow: getWorkflow({ zoneId }),
|
|
330
|
-
}).pipe(
|
|
331
|
-
Effect.map(({ config, workflow }) =>
|
|
332
|
-
toAttributes(zoneId, config, workflow),
|
|
333
|
-
),
|
|
334
|
-
);
|
|
335
|
-
|
|
336
|
-
return {
|
|
337
|
-
stables: ["zoneId"],
|
|
338
|
-
diff: Effect.fn(function* ({ olds, news, output }) {
|
|
339
|
-
if (!output) return undefined;
|
|
340
|
-
if (!isResolved(news)) return undefined;
|
|
341
|
-
|
|
342
|
-
const zoneId = yield* resolve(news.zone);
|
|
343
|
-
if (zoneId !== output.zoneId) {
|
|
344
|
-
return { action: "replace" } as const;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
const outputConfig = fromAttributes(output);
|
|
348
|
-
const comparableOutput = configForCompare(outputConfig, olds, news);
|
|
349
|
-
const desired = desiredConfig(outputConfig, news);
|
|
350
|
-
const desiredWorkflow = news.workflow ?? output.workflow;
|
|
351
|
-
if (
|
|
352
|
-
desiredWorkflow !== output.workflow ||
|
|
353
|
-
!deepEqual(
|
|
354
|
-
comparableConfig(comparableOutput),
|
|
355
|
-
comparableConfig(desired),
|
|
356
|
-
)
|
|
357
|
-
) {
|
|
358
|
-
return { action: "update" } as const;
|
|
359
|
-
}
|
|
360
|
-
}),
|
|
361
|
-
read: Effect.fn(function* ({ olds, output }) {
|
|
362
|
-
const zoneId =
|
|
363
|
-
output?.zoneId ?? (olds ? yield* resolve(olds.zone) : undefined);
|
|
364
|
-
if (!zoneId) return undefined;
|
|
365
|
-
return yield* observe(zoneId);
|
|
366
|
-
}),
|
|
367
|
-
reconcile: Effect.fn(function* ({ news, output }) {
|
|
368
|
-
const zoneId = output?.zoneId ?? (yield* resolve(news.zone));
|
|
369
|
-
const observed = yield* observe(zoneId);
|
|
370
|
-
const observedConfig = fromAttributes(observed);
|
|
371
|
-
const desired = desiredConfig(observedConfig, news);
|
|
372
|
-
const desiredWorkflow = news.workflow ?? observed.workflow;
|
|
373
|
-
|
|
374
|
-
const updatedConfig = deepEqual(
|
|
375
|
-
comparableConfig(observedConfig),
|
|
376
|
-
comparableConfig(desired),
|
|
377
|
-
)
|
|
378
|
-
? observedConfig
|
|
379
|
-
: yield* putConfig(toPutConfig(zoneId, desired));
|
|
380
|
-
const updatedWorkflow =
|
|
381
|
-
desiredWorkflow === observed.workflow
|
|
382
|
-
? observed.workflow
|
|
383
|
-
: yield* putWorkflow({
|
|
384
|
-
zoneId,
|
|
385
|
-
workflow: desiredWorkflow,
|
|
386
|
-
});
|
|
387
|
-
|
|
388
|
-
return toAttributes(zoneId, updatedConfig, updatedWorkflow);
|
|
389
|
-
}),
|
|
390
|
-
delete: Effect.fn(function* ({ output, olds }) {
|
|
391
|
-
if (olds.delete !== true) return;
|
|
392
|
-
const defaults = yield* getDefault({ zoneId: output.zoneId });
|
|
393
|
-
yield* putConfig(toPutConfig(output.zoneId, defaults));
|
|
394
|
-
if (olds.workflow !== undefined) {
|
|
395
|
-
yield* putWorkflow({
|
|
396
|
-
zoneId: output.zoneId,
|
|
397
|
-
workflow: "realtime",
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
}),
|
|
401
|
-
};
|
|
402
|
-
}),
|
|
403
|
-
);
|
|
@@ -193,11 +193,10 @@ export const ZoneProvider = () =>
|
|
|
193
193
|
Provider.effect(
|
|
194
194
|
Zone,
|
|
195
195
|
Effect.gen(function* () {
|
|
196
|
-
const
|
|
197
|
-
const
|
|
198
|
-
const
|
|
199
|
-
const
|
|
200
|
-
const del = yield* zones.deleteZone;
|
|
196
|
+
// const get = yield* zones.getZone;
|
|
197
|
+
// const create = yield* zones.createZone;
|
|
198
|
+
// const patch = yield* zones.patchZone;
|
|
199
|
+
// const del = yield* zones.deleteZone;
|
|
201
200
|
|
|
202
201
|
return {
|
|
203
202
|
stables: ["name", "zoneId", "accountId"],
|
|
@@ -220,12 +219,13 @@ export const ZoneProvider = () =>
|
|
|
220
219
|
return undefined;
|
|
221
220
|
}),
|
|
222
221
|
read: Effect.fn(function* ({ output, olds }) {
|
|
222
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
223
223
|
const name = output?.name ?? olds?.name;
|
|
224
224
|
// Owned path: we have persisted state (our own zoneId) — refresh it.
|
|
225
225
|
if (output?.zoneId) {
|
|
226
|
-
const result = yield*
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
const result = yield* zones
|
|
227
|
+
.getZone({ zoneId: output.zoneId })
|
|
228
|
+
.pipe(Effect.catch(() => Effect.succeed(undefined)));
|
|
229
229
|
if (result) return toZoneAttributes(result, accountId);
|
|
230
230
|
}
|
|
231
231
|
// Adoption path: no state of our own, but a zone with this name
|
|
@@ -236,12 +236,13 @@ export const ZoneProvider = () =>
|
|
|
236
236
|
if (name) {
|
|
237
237
|
const match = yield* findZoneByName({ accountId, name });
|
|
238
238
|
if (!match) return undefined;
|
|
239
|
-
const result = yield*
|
|
239
|
+
const result = yield* zones.getZone({ zoneId: match.id });
|
|
240
240
|
return Unowned(toZoneAttributes(result, accountId));
|
|
241
241
|
}
|
|
242
242
|
return undefined;
|
|
243
243
|
}),
|
|
244
244
|
reconcile: Effect.fn(function* ({ news, output }) {
|
|
245
|
+
const { accountId } = yield* yield* CloudflareEnvironment;
|
|
245
246
|
// 1. Observe — do we have a live zone for this name?
|
|
246
247
|
let zoneId = output?.zoneId;
|
|
247
248
|
if (!zoneId) {
|
|
@@ -254,33 +255,35 @@ export const ZoneProvider = () =>
|
|
|
254
255
|
|
|
255
256
|
// 2. Ensure — create if missing.
|
|
256
257
|
if (!zoneId) {
|
|
257
|
-
zoneId = yield*
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
258
|
+
zoneId = yield* zones
|
|
259
|
+
.createZone({
|
|
260
|
+
account: { id: accountId },
|
|
261
|
+
name: news.name,
|
|
262
|
+
type: news.type ?? "full",
|
|
263
|
+
})
|
|
264
|
+
.pipe(
|
|
265
|
+
Effect.map((created) => created.id),
|
|
266
|
+
// A concurrent deploy (or a prior crashed run) may have created
|
|
267
|
+
// the zone between our observe and create — recover by resolving
|
|
268
|
+
// its id rather than failing the reconcile.
|
|
269
|
+
Effect.catchTag("ZoneAlreadyExists", () =>
|
|
270
|
+
findZoneByName({ accountId, name: news.name }).pipe(
|
|
271
|
+
Effect.flatMap((match) =>
|
|
272
|
+
match
|
|
273
|
+
? Effect.succeed(match.id)
|
|
274
|
+
: Effect.fail(
|
|
275
|
+
new Error(
|
|
276
|
+
`Cloudflare reported zone ${news.name} already exists but it could not be found`,
|
|
277
|
+
),
|
|
274
278
|
),
|
|
275
|
-
|
|
279
|
+
),
|
|
276
280
|
),
|
|
277
281
|
),
|
|
278
|
-
)
|
|
279
|
-
);
|
|
282
|
+
);
|
|
280
283
|
}
|
|
281
284
|
|
|
282
285
|
// 3. Sync — apply mutable settings (type/paused/vanity NS).
|
|
283
|
-
const observed = yield*
|
|
286
|
+
const observed = yield* zones.getZone({ zoneId });
|
|
284
287
|
const desiredType = news.type ?? "full";
|
|
285
288
|
const desiredPaused = news.paused ?? false;
|
|
286
289
|
const desiredVanity = news.vanityNameServers ?? [];
|
|
@@ -290,7 +293,7 @@ export const ZoneProvider = () =>
|
|
|
290
293
|
!stringArrayEq(observed.vanityNameServers ?? [], desiredVanity);
|
|
291
294
|
|
|
292
295
|
if (needsPatch) {
|
|
293
|
-
yield*
|
|
296
|
+
yield* zones.patchZone({
|
|
294
297
|
zoneId,
|
|
295
298
|
type: desiredType,
|
|
296
299
|
paused: desiredPaused,
|
|
@@ -298,12 +301,12 @@ export const ZoneProvider = () =>
|
|
|
298
301
|
});
|
|
299
302
|
}
|
|
300
303
|
|
|
301
|
-
const final = yield*
|
|
304
|
+
const final = yield* zones.getZone({ zoneId });
|
|
302
305
|
return toZoneAttributes(final, accountId);
|
|
303
306
|
}),
|
|
304
307
|
delete: Effect.fn(function* ({ output }) {
|
|
305
308
|
if (!output.zoneId) return;
|
|
306
|
-
yield*
|
|
309
|
+
yield* zones.deleteZone({ zoneId: output.zoneId }).pipe(
|
|
307
310
|
// Zone already gone — idempotent delete.
|
|
308
311
|
Effect.catchTag("InvalidZoneIdentifier", () => Effect.void),
|
|
309
312
|
);
|
package/src/GitHub/Comment.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Octokit } from "@octokit/rest";
|
|
2
1
|
import * as Effect from "effect/Effect";
|
|
3
2
|
import * as Provider from "../Provider.ts";
|
|
4
3
|
import { Resource } from "../Resource.ts";
|
|
5
4
|
import { dedent } from "../Util/dedent.ts";
|
|
5
|
+
import { Octokit } from "./Octokit.ts";
|
|
6
6
|
import * as GitHub from "./Providers.ts";
|
|
7
7
|
|
|
8
8
|
export interface CommentProps {
|
|
@@ -37,12 +37,6 @@ export interface CommentProps {
|
|
|
37
37
|
* @default false
|
|
38
38
|
*/
|
|
39
39
|
allowDelete?: boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* GitHub API token. If not provided, falls back to
|
|
43
|
-
* `GITHUB_ACCESS_TOKEN` or `GITHUB_TOKEN` environment variables.
|
|
44
|
-
*/
|
|
45
|
-
token?: string;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
export interface Comment extends Resource<
|
|
@@ -149,22 +143,11 @@ export interface Comment extends Resource<
|
|
|
149
143
|
*/
|
|
150
144
|
export const Comment = Resource<Comment>("GitHub.Comment");
|
|
151
145
|
|
|
152
|
-
function resolveToken(props: CommentProps): string | undefined {
|
|
153
|
-
return (
|
|
154
|
-
props.token ?? process.env.GITHUB_ACCESS_TOKEN ?? process.env.GITHUB_TOKEN
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function createClient(props: CommentProps): Octokit {
|
|
159
|
-
return new Octokit({ auth: resolveToken(props) });
|
|
160
|
-
}
|
|
161
|
-
|
|
162
146
|
export const CommentProvider = () =>
|
|
163
147
|
Provider.succeed(Comment, {
|
|
164
148
|
stables: ["commentId"],
|
|
165
|
-
|
|
166
149
|
reconcile: Effect.fn(function* ({ news, output }) {
|
|
167
|
-
const octokit =
|
|
150
|
+
const octokit = yield* Octokit;
|
|
168
151
|
const body = dedent(news.body);
|
|
169
152
|
|
|
170
153
|
// Observe — GitHub assigns `comment_id` server-side. Probe for live
|
|
@@ -230,7 +213,7 @@ export const CommentProvider = () =>
|
|
|
230
213
|
return;
|
|
231
214
|
}
|
|
232
215
|
|
|
233
|
-
const octokit =
|
|
216
|
+
const octokit = yield* Octokit;
|
|
234
217
|
|
|
235
218
|
yield* Effect.tryPromise(async () => {
|
|
236
219
|
try {
|
|
@@ -5,7 +5,7 @@ import * as Effect from "effect/Effect";
|
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
6
|
import * as Redacted from "effect/Redacted";
|
|
7
7
|
import { AuthError, getAuthProvider } from "../Auth/AuthProvider.ts";
|
|
8
|
-
import { ALCHEMY_PROFILE,
|
|
8
|
+
import { ALCHEMY_PROFILE, AlchemyProfile } from "../Auth/Profile.ts";
|
|
9
9
|
import {
|
|
10
10
|
GITHUB_AUTH_PROVIDER_NAME,
|
|
11
11
|
type GitHubAuthConfig,
|
|
@@ -19,7 +19,7 @@ export interface GitHubCredentialsService {
|
|
|
19
19
|
|
|
20
20
|
export class GitHubCredentials extends Context.Service<
|
|
21
21
|
GitHubCredentials,
|
|
22
|
-
GitHubCredentialsService
|
|
22
|
+
Effect.Effect<GitHubCredentialsService>
|
|
23
23
|
>()("GitHub::Credentials") {}
|
|
24
24
|
|
|
25
25
|
const make = (token: Redacted.Redacted<string>): GitHubCredentialsService => ({
|
|
@@ -34,7 +34,9 @@ const make = (token: Redacted.Redacted<string>): GitHubCredentialsService => ({
|
|
|
34
34
|
export const fromToken = (token: string | Redacted.Redacted<string>) =>
|
|
35
35
|
Layer.succeed(
|
|
36
36
|
GitHubCredentials,
|
|
37
|
-
|
|
37
|
+
Effect.succeed(
|
|
38
|
+
make(typeof token === "string" ? Redacted.make(token) : token),
|
|
39
|
+
),
|
|
38
40
|
);
|
|
39
41
|
|
|
40
42
|
/**
|
|
@@ -42,7 +44,7 @@ export const fromToken = (token: string | Redacted.Redacted<string>) =>
|
|
|
42
44
|
* `GITHUB_ACCESS_TOKEN` or `GITHUB_TOKEN` at layer build time.
|
|
43
45
|
*/
|
|
44
46
|
export const fromEnv = () =>
|
|
45
|
-
Layer.
|
|
47
|
+
Layer.succeed(
|
|
46
48
|
GitHubCredentials,
|
|
47
49
|
Effect.gen(function* () {
|
|
48
50
|
const access = yield* Config.redacted("GITHUB_ACCESS_TOKEN").pipe(
|
|
@@ -74,7 +76,7 @@ export const fromAuthProvider = () =>
|
|
|
74
76
|
Layer.effect(
|
|
75
77
|
GitHubCredentials,
|
|
76
78
|
Effect.gen(function* () {
|
|
77
|
-
const profile = yield*
|
|
79
|
+
const profile = yield* AlchemyProfile;
|
|
78
80
|
const auth = yield* getAuthProvider<
|
|
79
81
|
GitHubAuthConfig,
|
|
80
82
|
GitHubResolvedCredentials
|
|
@@ -93,6 +95,8 @@ export const fromAuthProvider = () =>
|
|
|
93
95
|
message: `Failed to resolve GitHub credentials for profile '${profileName}': ${(e as { message?: string }).message ?? String(e)}`,
|
|
94
96
|
}),
|
|
95
97
|
),
|
|
98
|
+
Effect.orDie,
|
|
99
|
+
Effect.cached,
|
|
96
100
|
);
|
|
97
101
|
}).pipe(Effect.orDie),
|
|
98
102
|
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Octokit as _Octokit } from "@octokit/rest";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import { GitHubCredentials } from "./Credentials.ts";
|
|
4
|
+
|
|
5
|
+
export const Octokit: Effect.Effect<_Octokit, never, GitHubCredentials> =
|
|
6
|
+
Effect.gen(function* () {
|
|
7
|
+
const creds = yield* yield* GitHubCredentials;
|
|
8
|
+
return creds.octokit();
|
|
9
|
+
});
|
package/src/GitHub/Secret.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { Octokit } from "@octokit/rest";
|
|
2
1
|
import * as Effect from "effect/Effect";
|
|
3
2
|
import * as Redacted from "effect/Redacted";
|
|
4
3
|
import * as Provider from "../Provider.ts";
|
|
5
4
|
import { Resource } from "../Resource.ts";
|
|
6
|
-
import {
|
|
5
|
+
import { Octokit } from "./Octokit.ts";
|
|
7
6
|
import type * as GitHub from "./Providers.ts";
|
|
8
7
|
|
|
9
8
|
export interface SecretProps {
|
|
@@ -129,11 +128,6 @@ export interface Secret extends Resource<
|
|
|
129
128
|
*/
|
|
130
129
|
export const Secret = Resource<Secret>("GitHub.Secret");
|
|
131
130
|
|
|
132
|
-
const getOctokit = Effect.gen(function* () {
|
|
133
|
-
const creds = yield* GitHubCredentials;
|
|
134
|
-
return creds.octokit();
|
|
135
|
-
});
|
|
136
|
-
|
|
137
131
|
async function encryptValue(
|
|
138
132
|
plaintext: string,
|
|
139
133
|
publicKey: string,
|
|
@@ -153,8 +147,6 @@ async function encryptValue(
|
|
|
153
147
|
export const SecretProvider = () =>
|
|
154
148
|
Provider.succeed(Secret, {
|
|
155
149
|
reconcile: Effect.fn(function* ({ news, olds }) {
|
|
156
|
-
const octokit = yield* getOctokit;
|
|
157
|
-
|
|
158
150
|
// Observe — there's no API to read a secret's value back, so we can
|
|
159
151
|
// only observe its location (repo vs. environment, environment name).
|
|
160
152
|
// If the location changed, the previous secret is orphaned: delete
|
|
@@ -164,7 +156,7 @@ export const SecretProvider = () =>
|
|
|
164
156
|
const wasEnv = !!olds.environment;
|
|
165
157
|
const isEnv = !!news.environment;
|
|
166
158
|
if (wasEnv !== isEnv || olds.environment !== news.environment) {
|
|
167
|
-
yield* deleteSecret(
|
|
159
|
+
yield* deleteSecret(olds);
|
|
168
160
|
}
|
|
169
161
|
}
|
|
170
162
|
|
|
@@ -173,20 +165,17 @@ export const SecretProvider = () =>
|
|
|
173
165
|
// value is encrypted client-side with the repo/environment public
|
|
174
166
|
// key, so we re-encrypt and re-upload on every reconcile (Redacted
|
|
175
167
|
// values can't be diffed across runs anyway).
|
|
176
|
-
yield* upsertSecret(
|
|
168
|
+
yield* upsertSecret(news);
|
|
177
169
|
return { updatedAt: new Date().toISOString() };
|
|
178
170
|
}),
|
|
179
171
|
|
|
180
172
|
delete: Effect.fn(function* ({ olds }) {
|
|
181
|
-
|
|
182
|
-
yield* deleteSecret(octokit, olds);
|
|
173
|
+
yield* deleteSecret(olds);
|
|
183
174
|
}),
|
|
184
175
|
});
|
|
185
176
|
|
|
186
|
-
const upsertSecret = Effect.fn(function* (
|
|
187
|
-
octokit
|
|
188
|
-
props: SecretProps,
|
|
189
|
-
) {
|
|
177
|
+
const upsertSecret = Effect.fn(function* (props: SecretProps) {
|
|
178
|
+
const octokit = yield* Octokit;
|
|
190
179
|
const plaintext = Redacted.value(props.value);
|
|
191
180
|
const isEnv = !!props.environment;
|
|
192
181
|
|
|
@@ -232,10 +221,8 @@ const upsertSecret = Effect.fn(function* (
|
|
|
232
221
|
});
|
|
233
222
|
});
|
|
234
223
|
|
|
235
|
-
const deleteSecret = Effect.fn(function* (
|
|
236
|
-
octokit
|
|
237
|
-
props: SecretProps,
|
|
238
|
-
) {
|
|
224
|
+
const deleteSecret = Effect.fn(function* (props: SecretProps) {
|
|
225
|
+
const octokit = yield* Octokit;
|
|
239
226
|
yield* Effect.tryPromise(async () => {
|
|
240
227
|
try {
|
|
241
228
|
if (props.environment) {
|
package/src/GitHub/Variable.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Provider from "../Provider.ts";
|
|
3
3
|
import { Resource } from "../Resource.ts";
|
|
4
|
-
import {
|
|
4
|
+
import { Octokit } from "./Octokit.ts";
|
|
5
5
|
import type * as GitHub from "./Providers.ts";
|
|
6
6
|
|
|
7
7
|
export interface VariableProps {
|
|
@@ -102,15 +102,10 @@ export interface Variable extends Resource<
|
|
|
102
102
|
*/
|
|
103
103
|
export const Variable = Resource<Variable>("GitHub.Variable");
|
|
104
104
|
|
|
105
|
-
const getOctokit = Effect.gen(function* () {
|
|
106
|
-
const creds = yield* GitHubCredentials;
|
|
107
|
-
return creds.octokit();
|
|
108
|
-
});
|
|
109
|
-
|
|
110
105
|
export const VariableProvider = () =>
|
|
111
106
|
Provider.succeed(Variable, {
|
|
112
107
|
reconcile: Effect.fn(function* ({ news }) {
|
|
113
|
-
const octokit = yield*
|
|
108
|
+
const octokit = yield* Octokit;
|
|
114
109
|
|
|
115
110
|
// Observe — `name` is the path identifier for repo variables; ask
|
|
116
111
|
// GitHub directly for the live row. A 404 means it doesn't exist
|
|
@@ -162,7 +157,7 @@ export const VariableProvider = () =>
|
|
|
162
157
|
}),
|
|
163
158
|
|
|
164
159
|
delete: Effect.fn(function* ({ olds }) {
|
|
165
|
-
const octokit = yield*
|
|
160
|
+
const octokit = yield* Octokit;
|
|
166
161
|
|
|
167
162
|
yield* Effect.tryPromise(async () => {
|
|
168
163
|
try {
|