nomoss 0.0.4 → 0.0.6
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/CHANGELOG.md +23 -0
- package/README.md +3 -1
- package/ROADMAP.md +1 -1
- package/docs/README.md +2 -0
- package/docs/application/aws-resource-coverage.md +111 -20
- package/docs/application/designs/awsRequestBodyEncoding.ts +91 -0
- package/docs/application/designs/createBucketModeledErrors.ts +164 -0
- package/docs/application/designs/describeSubnetsEc2Query.ts +186 -0
- package/docs/application/designs/getBucketTaggingResponseDecoding.ts +136 -0
- package/docs/application/designs/lambdaGetPolicyRequest.ts +85 -0
- package/docs/application/designs/s3GetObjectDownload.ts +97 -0
- package/docs/application/designs/s3ObjectMetadata.ts +154 -0
- package/docs/application/designs/selectObjectContentEvents.ts +185 -0
- package/docs/application/generation-architecture.md +38 -0
- package/docs/application/resource-operations.md +4 -2
- package/docs/development/code-documentation.md +2 -0
- package/docs/development/design-walkthroughs.md +49 -0
- package/docs/development/effect-native-development.md +31 -2
- package/docs/development/review-code.md +1 -1
- package/docs/development/review-remediation-spec.md +1 -0
- package/docs/development/testing.md +20 -0
- package/docs/operations/releasing.md +4 -2
- package/examples/queue/application.ts +1 -1
- package/media/nomoss-logo.svg +16 -0
- package/package.json +8 -14
- package/providers/aws/README.md +7 -7
- package/providers/aws/awsEnvironment.ts +3 -3
- package/providers/aws/generated/resources/apigateway/apikey.ts +335 -0
- package/providers/aws/generated/resources/apigateway/authorizer.ts +329 -0
- package/providers/aws/generated/resources/apigateway/basepathmapping.ts +265 -0
- package/providers/aws/generated/resources/apigateway/deployment.ts +515 -0
- package/providers/aws/generated/resources/apigateway/domainname.ts +354 -0
- package/providers/aws/generated/resources/apigateway/gatewayresponse.ts +222 -0
- package/providers/aws/generated/resources/apigateway/method.ts +819 -0
- package/providers/aws/generated/resources/apigateway/model.ts +248 -0
- package/providers/aws/generated/resources/apigateway/requestvalidator.ts +224 -0
- package/providers/aws/generated/resources/apigateway/resource.ts +235 -0
- package/providers/aws/generated/resources/apigateway/restapi.ts +583 -0
- package/providers/aws/generated/resources/apigateway/stage.ts +656 -0
- package/providers/aws/generated/resources/apigateway/usageplan.ts +394 -0
- package/providers/aws/generated/resources/apigateway/usageplankey.ts +228 -0
- package/providers/aws/generated/resources/apigatewayv2/api.ts +40 -60
- package/providers/aws/generated/resources/apigatewayv2/apimapping.ts +284 -0
- package/providers/aws/generated/resources/apigatewayv2/authorizer.ts +333 -0
- package/providers/aws/generated/resources/apigatewayv2/deployment.ts +226 -0
- package/providers/aws/generated/resources/apigatewayv2/domainname.ts +333 -0
- package/providers/aws/generated/resources/apigatewayv2/integration.ts +70 -103
- package/providers/aws/generated/resources/apigatewayv2/integrationresponse.ts +323 -0
- package/providers/aws/generated/resources/apigatewayv2/model.ts +241 -0
- package/providers/aws/generated/resources/apigatewayv2/route.ts +59 -63
- package/providers/aws/generated/resources/apigatewayv2/routeresponse.ts +330 -0
- package/providers/aws/generated/resources/apigatewayv2/routingrule.ts +349 -0
- package/providers/aws/generated/resources/apigatewayv2/stage.ts +45 -66
- package/providers/aws/generated/resources/apigatewayv2/vpclink.ts +256 -0
- package/providers/aws/generated/resources/appsync/api.ts +486 -0
- package/providers/aws/generated/resources/appsync/apicache.ts +169 -0
- package/providers/aws/generated/resources/appsync/apikey.ts +245 -0
- package/providers/aws/generated/resources/appsync/channelnamespace.ts +444 -0
- package/providers/aws/generated/resources/appsync/datasource.ts +757 -0
- package/providers/aws/generated/resources/appsync/domainname.ts +355 -0
- package/providers/aws/generated/resources/appsync/domainnameapiassociation.ts +284 -0
- package/providers/aws/generated/resources/appsync/functionconfiguration.ts +448 -0
- package/providers/aws/generated/resources/appsync/graphqlapi.ts +1028 -0
- package/providers/aws/generated/resources/appsync/graphqlschema.ts +188 -0
- package/providers/aws/generated/resources/appsync/resolver.ts +514 -0
- package/providers/aws/generated/resources/appsync/sourceapiassociation.ts +429 -0
- package/providers/aws/generated/resources/certificatemanager/certificate.ts +211 -0
- package/providers/aws/generated/resources/cloudfront/cachepolicy.ts +352 -0
- package/providers/aws/generated/resources/cloudfront/distribution.ts +2477 -0
- package/providers/aws/generated/resources/cloudfront/function.ts +313 -0
- package/providers/aws/generated/resources/cloudfront/originaccesscontrol.ts +204 -0
- package/providers/aws/generated/resources/cloudfront/originrequestpolicy.ts +285 -0
- package/providers/aws/generated/resources/cloudfront/responseheaderspolicy.ts +591 -0
- package/providers/aws/generated/resources/cloudwatch/alarm.ts +4545 -0
- package/providers/aws/generated/resources/cloudwatch/compositealarm.ts +678 -0
- package/providers/aws/generated/resources/cloudwatch/dashboard.ts +229 -0
- package/providers/aws/generated/resources/cognito/identitypool.ts +419 -0
- package/providers/aws/generated/resources/cognito/identitypoolroleattachment.ts +288 -0
- package/providers/aws/generated/resources/cognito/userpool.ts +1372 -0
- package/providers/aws/generated/resources/cognito/userpoolclient.ts +555 -0
- package/providers/aws/generated/resources/cognito/userpooldomain.ts +223 -0
- package/providers/aws/generated/resources/cognito/userpoolgroup.ts +265 -0
- package/providers/aws/generated/resources/cognito/userpoolidentityprovider.ts +216 -0
- package/providers/aws/generated/resources/cognito/userpoolresourceserver.ts +233 -0
- package/providers/aws/generated/resources/dynamodb/globaltable.ts +1002 -0
- package/providers/aws/generated/resources/dynamodb/table.ts +1058 -0
- package/providers/aws/generated/resources/ec2/eip.ts +303 -0
- package/providers/aws/generated/resources/ec2/instance.ts +1756 -0
- package/providers/aws/generated/resources/ec2/internetgateway.ts +185 -0
- package/providers/aws/generated/resources/ec2/launchtemplate.ts +2218 -0
- package/providers/aws/generated/resources/ec2/natgateway.ts +509 -0
- package/providers/aws/generated/resources/ec2/route.ts +595 -0
- package/providers/aws/generated/resources/ec2/routetable.ts +207 -0
- package/providers/aws/generated/resources/ec2/securitygroup.ts +460 -0
- package/providers/aws/generated/resources/ec2/securitygroupegress.ts +332 -0
- package/providers/aws/generated/resources/ec2/securitygroupingress.ts +488 -0
- package/providers/aws/generated/resources/ec2/subnet.ts +492 -0
- package/providers/aws/generated/resources/ec2/subnetroutetableassociation.ts +228 -0
- package/providers/aws/generated/resources/ec2/volume.ts +267 -0
- package/providers/aws/generated/resources/ec2/volumeattachment.ts +268 -0
- package/providers/aws/generated/resources/ec2/vpc.ts +288 -0
- package/providers/aws/generated/resources/ec2/vpcendpoint.ts +660 -0
- package/providers/aws/generated/resources/ec2/vpcgatewayattachment.ts +290 -0
- package/providers/aws/generated/resources/ec2/vpcpeeringconnection.ts +310 -0
- package/providers/aws/generated/resources/ecr/repository.ts +627 -0
- package/providers/aws/generated/resources/ecs/cluster.ts +616 -0
- package/providers/aws/generated/resources/ecs/service.ts +2065 -0
- package/providers/aws/generated/resources/ecs/taskdefinition.ts +1848 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/listener.ts +1166 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/listenercertificate.ts +168 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/listenerrule.ts +1219 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/loadbalancer.ts +706 -0
- package/providers/aws/generated/resources/elasticloadbalancingv2/targetgroup.ts +699 -0
- package/providers/aws/generated/resources/events/apidestination.ts +314 -0
- package/providers/aws/generated/resources/events/archive.ts +316 -0
- package/providers/aws/generated/resources/events/connection.ts +609 -0
- package/providers/aws/generated/resources/events/endpoint.ts +551 -0
- package/providers/aws/generated/resources/events/eventbus.ts +261 -0
- package/providers/aws/generated/resources/events/eventbuspolicy.ts +343 -0
- package/providers/aws/generated/resources/events/rule.ts +1253 -0
- package/providers/aws/generated/resources/eventschemas/discoverer.ts +273 -0
- package/providers/aws/generated/resources/eventschemas/registry.ts +183 -0
- package/providers/aws/generated/resources/eventschemas/registrypolicy.ts +193 -0
- package/providers/aws/generated/resources/eventschemas/schema.ts +305 -0
- package/providers/aws/generated/resources/iam/accesskey.ts +12 -16
- package/providers/aws/generated/resources/iam/group.ts +13 -16
- package/providers/aws/generated/resources/iam/grouppolicy.ts +16 -20
- package/providers/aws/generated/resources/iam/instanceprofile.ts +2 -2
- package/providers/aws/generated/resources/iam/managedpolicy.ts +27 -36
- package/providers/aws/generated/resources/iam/oidcprovider.ts +52 -104
- package/providers/aws/generated/resources/iam/policy.ts +33 -90
- package/providers/aws/generated/resources/iam/role.ts +45 -60
- package/providers/aws/generated/resources/iam/rolepolicy.ts +16 -20
- package/providers/aws/generated/resources/iam/samlprovider.ts +72 -164
- package/providers/aws/generated/resources/iam/servercertificate.ts +73 -187
- package/providers/aws/generated/resources/iam/servicelinkedrole.ts +24 -40
- package/providers/aws/generated/resources/iam/user.ts +26 -32
- package/providers/aws/generated/resources/iam/userpolicy.ts +16 -20
- package/providers/aws/generated/resources/iam/usertogroupaddition.ts +2 -2
- package/providers/aws/generated/resources/iam/virtualmfadevice.ts +53 -97
- package/providers/aws/generated/resources/kms/alias.ts +225 -0
- package/providers/aws/generated/resources/kms/key.ts +33 -207
- package/providers/aws/generated/resources/kms/replicakey.ts +292 -0
- package/providers/aws/generated/resources/lambda/alias.ts +301 -0
- package/providers/aws/generated/resources/lambda/codesigningconfig.ts +414 -0
- package/providers/aws/generated/resources/lambda/eventinvokeconfig.ts +677 -0
- package/providers/aws/generated/resources/lambda/eventsourcemapping.ts +1798 -0
- package/providers/aws/generated/resources/lambda/function.ts +135 -181
- package/providers/aws/generated/resources/lambda/layerversion.ts +298 -0
- package/providers/aws/generated/resources/lambda/layerversionpermission.ts +233 -0
- package/providers/aws/generated/resources/lambda/permission.ts +13 -14
- package/providers/aws/generated/resources/lambda/url.ts +452 -0
- package/providers/aws/generated/resources/lambda/version.ts +349 -0
- package/providers/aws/generated/resources/pipes/pipe.ts +3801 -0
- package/providers/aws/generated/resources/rds/dbcluster.ts +1710 -0
- package/providers/aws/generated/resources/rds/dbinstance.ts +2248 -0
- package/providers/aws/generated/resources/rds/dbsubnetgroup.ts +270 -0
- package/providers/aws/generated/resources/route53/healthcheck.ts +648 -0
- package/providers/aws/generated/resources/route53/hostedzone.ts +430 -0
- package/providers/aws/generated/resources/route53/recordset.ts +249 -0
- package/providers/aws/generated/resources/route53/recordsetgroup.ts +263 -0
- package/providers/aws/generated/resources/s3/accesspoint.ts +616 -0
- package/providers/aws/generated/resources/s3/bucket.ts +1733 -1831
- package/providers/aws/generated/resources/s3/bucketpolicy.ts +214 -0
- package/providers/aws/generated/resources/scheduler/schedule.ts +1563 -0
- package/providers/aws/generated/resources/scheduler/schedulegroup.ts +351 -0
- package/providers/aws/generated/resources/secretsmanager/resourcepolicy.ts +242 -0
- package/providers/aws/generated/resources/secretsmanager/rotationschedule.ts +314 -0
- package/providers/aws/generated/resources/secretsmanager/secret.ts +327 -0
- package/providers/aws/generated/resources/secretsmanager/secrettargetattachment.ts +167 -0
- package/providers/aws/generated/resources/sns/subscription.ts +488 -0
- package/providers/aws/generated/resources/sns/topic.ts +60 -88
- package/providers/aws/generated/resources/sns/topicinlinepolicy.ts +169 -0
- package/providers/aws/generated/resources/sns/topicpolicy.ts +172 -0
- package/providers/aws/generated/resources/sqs/queue.ts +53 -82
- package/providers/aws/generated/resources/sqs/queueinlinepolicy.ts +163 -0
- package/providers/aws/generated/resources/sqs/queuepolicy.ts +172 -0
- package/providers/aws/generated/resources/ssm/association.ts +906 -0
- package/providers/aws/generated/resources/ssm/document.ts +472 -0
- package/providers/aws/generated/resources/ssm/maintenancewindow.ts +225 -0
- package/providers/aws/generated/resources/ssm/maintenancewindowtarget.ts +289 -0
- package/providers/aws/generated/resources/ssm/maintenancewindowtask.ts +497 -0
- package/providers/aws/generated/resources/ssm/parameter.ts +258 -0
- package/providers/aws/generated/resources/ssm/patchbaseline.ts +668 -0
- package/providers/aws/generated/resources/ssm/resourcedatasync.ts +465 -0
- package/providers/aws/generated/resources/ssm/resourcepolicy.ts +211 -0
- package/providers/aws/generated/resources/stepfunctions/activity.ts +237 -0
- package/providers/aws/generated/resources/stepfunctions/statemachine.ts +54 -41
- package/providers/aws/generated/resources/stepfunctions/statemachinealias.ts +361 -0
- package/providers/aws/generated/resources/stepfunctions/statemachineversion.ts +202 -0
- package/providers/aws/management/ec2/internetGateway.ts +129 -0
- package/providers/aws/management/ec2/resourceTags.ts +89 -0
- package/providers/aws/management/ec2/route.ts +254 -0
- package/providers/aws/management/ec2/routeTable.ts +138 -0
- package/providers/aws/management/ec2/subnet.ts +511 -0
- package/providers/aws/management/ec2/subnetRouteTableAssociation.ts +129 -0
- package/providers/aws/management/ec2/vpc.ts +466 -0
- package/providers/aws/management/ec2/vpcGatewayAttachment.ts +238 -0
- package/providers/aws/management/iam/role.ts +520 -0
- package/providers/aws/management/lambda/function.ts +651 -0
- package/providers/aws/management/resourcePolicies.ts +102 -0
- package/providers/aws/management/s3/bucket.ts +315 -0
- package/providers/aws/management/s3/bucketConfiguration.ts +1102 -0
- package/providers/aws/runtime.ts +17 -19
- package/src/core/resource/model.ts +13 -3
- package/src/core/resource/resourceCommandPolicy.ts +5 -1
- package/src/core/resource/resourceEntries.ts +193 -0
- package/src/core/resource/resourceLifecycle.ts +39 -23
- package/src/core/stack/planner.ts +78 -40
- package/src/core/stack/resourceStackLifecycle.ts +112 -18
- package/src/core/stack/resourceStackOperations.ts +18 -0
- package/src/core/stack/stackWorkflowRenderer.ts +12 -3
- package/src/core/state/stateStore.ts +47 -10
- package/src/providers/providerRuntimeLayer.ts +1 -1
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5 -5055
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5 -5055
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsValidators.ts +5058 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +5 -2443
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +5 -2443
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsValidators.ts +2446 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +5 -23
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +5 -23
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsValidators.ts +26 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +5 -63
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +5 -63
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsValidators.ts +66 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +11 -121
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +11 -121
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsValidators.ts +130 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +17 -21
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +4 -12
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsValidators.ts +109 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +3 -2
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +3 -2
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsValidators.ts +11 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +18 -108
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +18 -108
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsValidators.ts +122 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +5 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +5 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsValidators.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +5 -110
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +5 -110
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsValidators.ts +113 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +42 -218
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +63 -336
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsValidators.ts +604 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +11 -123
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +11 -123
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsValidators.ts +133 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +25 -322
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +20 -317
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsValidators.ts +359 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +139 -4161
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +181 -4265
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsValidators.ts +4529 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +5 -86
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +5 -86
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsValidators.ts +89 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +5 -151
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +5 -151
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsValidators.ts +154 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +34 -169
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +24 -159
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsValidators.ts +235 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +46 -644
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +41 -639
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsValidators.ts +691 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +5 -46
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +5 -46
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsValidators.ts +49 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +5 -160
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +5 -160
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsValidators.ts +163 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +8 -19
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +8 -19
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsValidators.ts +28 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +5 -55
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +5 -55
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsValidators.ts +58 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +36 -121
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +24 -111
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsValidators.ts +183 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +5 -119
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +5 -119
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsValidators.ts +122 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +5 -45
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +5 -45
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsValidators.ts +48 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +5 -195
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +5 -195
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsValidators.ts +198 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +5 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +5 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsValidators.ts +100 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +69 -1282
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +43 -1259
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsValidators.ts +1417 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +32 -126
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +27 -121
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsValidators.ts +172 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +32 -2103
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +32 -2103
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsValidators.ts +2134 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +37 -2065
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +32 -2060
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsValidators.ts +2196 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +56 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +98 -251
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsValidators.ts +1024 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +14 -89
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +14 -89
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsValidators.ts +100 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +5 -246
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +5 -246
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsValidators.ts +249 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +5 -115
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +5 -115
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsValidators.ts +118 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +65 -5205
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +59 -5200
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsValidators.ts +5124 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +101 -1508
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +95 -1598
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsValidators.ts +2039 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +5 -2272
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +5 -2272
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsValidators.ts +2276 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +5 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +5 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsValidators.ts +40 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +194 -1425
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +194 -1425
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsValidators.ts +1580 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +5 -265
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +5 -265
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsValidators.ts +268 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +14 -28
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +14 -28
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsValidators.ts +42 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +26 -96
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +26 -96
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsValidators.ts +117 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +35 -314
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +35 -314
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsValidators.ts +330 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +5 -33
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +5 -33
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsValidators.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +16 -43
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +9 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsValidators.ts +105 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +5 -358
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +5 -358
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsValidators.ts +361 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +18 -66
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +11 -61
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsValidators.ts +100 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +73 -366
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +49 -345
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsValidators.ts +569 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +5 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +5 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsValidators.ts +42 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +5 -76
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +5 -76
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsValidators.ts +79 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +5 -27
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +5 -27
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsValidators.ts +30 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +11 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +11 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsValidators.ts +41 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +5 -1356
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +5 -1356
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsValidators.ts +1359 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +35 -2767
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +35 -2767
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsValidators.ts +2761 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +5 -170
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +5 -170
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsValidators.ts +173 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +5 -549
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +5 -549
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsValidators.ts +552 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +32 -143
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +27 -138
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsValidators.ts +187 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +99 -1668
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +70 -1644
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsValidators.ts +1872 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +123 -497
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +118 -755
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsValidators.ts +1902 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +23 -301
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +11 -291
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsValidators.ts +359 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +5 -113
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +5 -113
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsValidators.ts +116 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +5 -159
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +5 -159
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsValidators.ts +162 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +5 -3321
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +5 -3321
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsValidators.ts +3324 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +73 -698
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +23 -646
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsValidators.ts +931 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +5 -292
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +5 -292
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsValidators.ts +295 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +8 -19
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +8 -19
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsValidators.ts +29 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +5 -47
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +5 -47
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsValidators.ts +51 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +40 -629
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +40 -629
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsValidators.ts +655 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +5 -2387
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +5 -2387
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsValidators.ts +2391 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +11 -50
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +11 -50
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsValidators.ts +58 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +11 -21
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +11 -21
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsValidators.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +5 -36
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +5 -36
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsValidators.ts +40 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +5 -36
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +5 -36
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsValidators.ts +40 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +5 -276
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +5 -275
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsValidators.ts +279 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +5 -73
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +5 -73
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsValidators.ts +77 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +5 -340
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +5 -340
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsValidators.ts +344 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +5 -137
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +5 -137
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsValidators.ts +141 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +5 -45
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +5 -45
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsValidators.ts +48 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +144 -3036
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +279 -3175
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsValidators.ts +3457 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +5 -883
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +5 -882
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsValidators.ts +886 -0
- package/src/providers/stripe/client/stripeClient.ts +11 -15
- package/providers/aws/generated/managementRegistry.ts +0 -136
- package/providers/aws/management/mappings/iam/group.ts +0 -63
- package/providers/aws/management/mappings/iam/iamIdentity.ts +0 -41
- package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +0 -8
- package/providers/aws/management/mappings/iam/inlinePolicies.ts +0 -159
- package/providers/aws/management/mappings/iam/instanceProfile.ts +0 -77
- package/providers/aws/management/mappings/iam/oidcProvider.ts +0 -94
- package/providers/aws/management/mappings/iam/role.ts +0 -74
- package/providers/aws/management/mappings/iam/samlProvider.ts +0 -98
- package/providers/aws/management/mappings/iam/serverCertificate.ts +0 -72
- package/providers/aws/management/mappings/iam/user.ts +0 -61
- package/providers/aws/management/mappings/iam/userToGroupAddition.ts +0 -75
- package/providers/aws/management/operations/iam/accessKey.ts +0 -206
- package/providers/aws/management/operations/iam/managedPolicy.ts +0 -491
- package/providers/aws/management/operations/iam/policy.ts +0 -476
- package/providers/aws/management/operations/iam/serviceLinkedRole.ts +0 -172
- package/providers/aws/management/operations/iam/virtualMfaDevice.ts +0 -253
- package/providers/aws/management/resourceAssociationConfiguration.ts +0 -112
- package/providers/aws/management/resourceAssociationRegistration.ts +0 -349
- package/providers/aws/management/resourceAssociations.ts +0 -168
- package/providers/aws/management/resourceConfiguration.ts +0 -119
- package/providers/aws/management/resourceLifecycleRegistration.ts +0 -540
- package/providers/aws/management/resourceManagementModule.ts +0 -31
- package/providers/aws/management/resourceManagementRegistry.ts +0 -62
- package/providers/aws/management/resourceMapping.ts +0 -84
- package/providers/aws/management/resourceOperation.ts +0 -134
- package/providers/aws/management/resourceTagOperations.ts +0 -108
- package/providers/aws/management/resourceTiming.ts +0 -4
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +0 -68
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +0 -59
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +0 -111
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +0 -77
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +0 -50
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +0 -83
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +0 -50
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +0 -74
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +0 -65
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +0 -79
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +0 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +0 -56
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +0 -44
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +0 -56
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +0 -35
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +0 -38
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +0 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +0 -38
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +0 -154
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +0 -51
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +0 -120
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +0 -32
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +0 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +0 -125
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +0 -32
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +0 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +0 -130
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +0 -39
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +0 -89
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +0 -30
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +0 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +0 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +0 -97
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +0 -34
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +0 -37
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +0 -53
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +0 -42
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +0 -63
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +0 -94
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +0 -34
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The selectObjectContentEvents walkthrough lets an inventory importer query
|
|
3
|
+
* the sku column in reports/inventory.csv. The same query gives a preview
|
|
4
|
+
* and a full importer control over how long they read the response.
|
|
5
|
+
*/
|
|
6
|
+
import { Data, Effect, Schema, SchemaGetter, Stream, Struct } from "effect";
|
|
7
|
+
import { HttpClient } from "effect/http";
|
|
8
|
+
import {
|
|
9
|
+
HttpApi,
|
|
10
|
+
HttpApiClient,
|
|
11
|
+
HttpApiEndpoint,
|
|
12
|
+
HttpApiGroup,
|
|
13
|
+
HttpApiSchema,
|
|
14
|
+
} from "effect/http-api";
|
|
15
|
+
|
|
16
|
+
// Proposed generator output for the inventory query.
|
|
17
|
+
|
|
18
|
+
const path = Schema.Struct({
|
|
19
|
+
Bucket: Schema.String,
|
|
20
|
+
Key: Schema.Literal("inventory.csv"),
|
|
21
|
+
});
|
|
22
|
+
const query = Schema.Struct({
|
|
23
|
+
Expression: Schema.String,
|
|
24
|
+
ExpressionType: Schema.Literal("SQL"),
|
|
25
|
+
InputSerialization: Schema.Struct({
|
|
26
|
+
CSV: Schema.Struct({ FileHeaderInfo: Schema.Literal("USE") }),
|
|
27
|
+
}),
|
|
28
|
+
OutputSerialization: Schema.Struct({ CSV: Schema.Struct({}) }),
|
|
29
|
+
});
|
|
30
|
+
type SelectInput = typeof path.Type & typeof query.Type;
|
|
31
|
+
|
|
32
|
+
const namespace = "http://s3.amazonaws.com/doc/2006-03-01/";
|
|
33
|
+
const document = Schema.Struct({
|
|
34
|
+
SelectObjectContentRequest: query.pipe(
|
|
35
|
+
Schema.fieldsAssign({ "@_xmlns": Schema.Literal(namespace) }),
|
|
36
|
+
),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The EventStreamServiceError class lets callers handle a query failure
|
|
41
|
+
* that S3 sends after the HTTP response opens. The code identifies the
|
|
42
|
+
* service failure, for example InternalError.
|
|
43
|
+
*/
|
|
44
|
+
export class EventStreamServiceError extends Data.TaggedError(
|
|
45
|
+
"EventStreamServiceError",
|
|
46
|
+
)<{ readonly code: string; readonly message: string }> {}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The EventStreamFrameError class reports a response message the protocol
|
|
50
|
+
* reader could not decode. Its cause preserves the reader's error so callers
|
|
51
|
+
* can distinguish a damaged message from a query failure.
|
|
52
|
+
*/
|
|
53
|
+
export class EventStreamFrameError extends Data.TaggedError(
|
|
54
|
+
"EventStreamFrameError",
|
|
55
|
+
)<{ readonly cause: unknown }> {}
|
|
56
|
+
|
|
57
|
+
// The EventMessage type lets a caller interpret each payload using the
|
|
58
|
+
// event name from SelectObjectContentEventStream. For example, a Stats
|
|
59
|
+
// event carries the original XML bytes so the caller can choose how to
|
|
60
|
+
// read its byte counts.
|
|
61
|
+
type EventMessage = {
|
|
62
|
+
readonly eventType: string;
|
|
63
|
+
readonly payload: Uint8Array;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// The ReadEventMessages function type lets the client pass an HTTP body to a
|
|
67
|
+
// protocol reader without collecting it. The reader assembles messages as
|
|
68
|
+
// the consumer pulls, exposes each :event-type and its payload bytes, and
|
|
69
|
+
// reports error messages with their :error-code and :error-message values.
|
|
70
|
+
// See Smithy's Amazon Event Stream specification, "Message Events" and
|
|
71
|
+
// "Unmodeled Error Events".
|
|
72
|
+
type ReadEventMessages = <E>(
|
|
73
|
+
body: Stream.Stream<Uint8Array, E>,
|
|
74
|
+
) => Stream.Stream<
|
|
75
|
+
EventMessage,
|
|
76
|
+
E | EventStreamServiceError | EventStreamFrameError
|
|
77
|
+
>;
|
|
78
|
+
|
|
79
|
+
type ClientDependencies = {
|
|
80
|
+
readonly transport: HttpClient.HttpClient;
|
|
81
|
+
readonly xml: Schema.Codec<unknown, string>;
|
|
82
|
+
readonly readEventMessages: ReadEventMessages;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The makeSelectionClient function lets the caller run inventory queries
|
|
87
|
+
* with its AWS transport. The caller supplies a transport that resolves
|
|
88
|
+
* the S3 URL and signs the request and a reader that can decode the Amazon
|
|
89
|
+
* Event Stream response.
|
|
90
|
+
*/
|
|
91
|
+
export const makeSelectionClient = ({
|
|
92
|
+
transport,
|
|
93
|
+
xml,
|
|
94
|
+
readEventMessages,
|
|
95
|
+
}: ClientDependencies) => {
|
|
96
|
+
// The payload codec takes the caller's SQL and CSV settings. The XML
|
|
97
|
+
// codec must interpret @_xmlns as the root's xmlns attribute, whose
|
|
98
|
+
// value comes from the service's xmlNamespace trait. HttpApiSchema.asText
|
|
99
|
+
// sends the document as application/xml. See the AWS REST XML specification,
|
|
100
|
+
// "XML shape serialization" and "Content-Type".
|
|
101
|
+
const payload = query.pipe(
|
|
102
|
+
Schema.encodeTo(xml.pipe(Schema.decodeTo(document)), {
|
|
103
|
+
encode: SchemaGetter.transform((settings): typeof document.Type => ({
|
|
104
|
+
SelectObjectContentRequest: Struct.assign(settings, {
|
|
105
|
+
"@_xmlns": namespace,
|
|
106
|
+
} as const),
|
|
107
|
+
})),
|
|
108
|
+
decode: SchemaGetter.forbidden(() => "Request encoder"),
|
|
109
|
+
}),
|
|
110
|
+
HttpApiSchema.asText({ contentType: "application/xml" }),
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
// The selectObjectContent HTTP declaration takes POST and the fixed
|
|
114
|
+
// select and select-type parameters from the Smithy http trait. The
|
|
115
|
+
// example uses inventory.csv because Effect's HttpApiClient encodes one
|
|
116
|
+
// path segment per parameter and the modeled Key+ can span segments.
|
|
117
|
+
// See Smithy's "HTTP bindings", particularly "Greedy labels".
|
|
118
|
+
// SelectObjectContentOutput binds its streaming Payload to the HTTP body,
|
|
119
|
+
// which Effect's HttpApiSchema.StreamUint8Array exposes as byte chunks.
|
|
120
|
+
const selectObjectContent = HttpApiEndpoint.post(
|
|
121
|
+
"selectObjectContent",
|
|
122
|
+
"/:Bucket/:Key",
|
|
123
|
+
{
|
|
124
|
+
params: path,
|
|
125
|
+
query: { select: Schema.Literal(""), "select-type": Schema.Literal("2") },
|
|
126
|
+
payload,
|
|
127
|
+
success: HttpApiSchema.StreamUint8Array({
|
|
128
|
+
contentType: "application/vnd.amazon.eventstream",
|
|
129
|
+
}),
|
|
130
|
+
},
|
|
131
|
+
);
|
|
132
|
+
const api = HttpApi.make("inventory").add(
|
|
133
|
+
HttpApiGroup.make("queries", { topLevel: true }).add(selectObjectContent),
|
|
134
|
+
);
|
|
135
|
+
const client = HttpApiClient.makeWith(api, {
|
|
136
|
+
httpClient: HttpClient.withScope(transport),
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
return {
|
|
140
|
+
/**
|
|
141
|
+
* The selectObjectContent method opens the HTTP response when the caller
|
|
142
|
+
* runs the stream. Each run sends a fresh request. Stream.unwrap gives
|
|
143
|
+
* that request the stream's scope, and HttpClient.withScope releases
|
|
144
|
+
* the response when the consumer stops. An HTTP or protocol failure
|
|
145
|
+
* terminates the stream with that failure.
|
|
146
|
+
*/
|
|
147
|
+
selectObjectContent: (input: SelectInput) =>
|
|
148
|
+
client.pipe(
|
|
149
|
+
Effect.flatMap((http) =>
|
|
150
|
+
http.selectObjectContent({
|
|
151
|
+
params: Struct.pick(input, ["Bucket", "Key"]),
|
|
152
|
+
query: { select: "", "select-type": "2" },
|
|
153
|
+
payload: Struct.omit(input, ["Bucket", "Key"]),
|
|
154
|
+
}),
|
|
155
|
+
),
|
|
156
|
+
Stream.unwrap,
|
|
157
|
+
readEventMessages,
|
|
158
|
+
),
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
// Application code.
|
|
163
|
+
|
|
164
|
+
// The local transport fixture supplies one complete message per HTTP chunk.
|
|
165
|
+
// Smithy TypeScript's EventStreamCodec.decode can read each fixture message.
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The inventoryEvents function gives the caller the events from the sku
|
|
169
|
+
* query. The query uses FileHeaderInfo USE so SQL can reference sku by its
|
|
170
|
+
* CSV header, as described by the S3 model's CSVInput shape.
|
|
171
|
+
*
|
|
172
|
+
* Use Stream.runHead to read one event and release the response. Use
|
|
173
|
+
* Stream.runForEach with a handler to process events in order. An End event
|
|
174
|
+
* confirms completion, as described by the S3 model's EndEvent shape. The
|
|
175
|
+
* caller decides how to handle a response that closes before End.
|
|
176
|
+
*/
|
|
177
|
+
export const inventoryEvents = (dependencies: ClientDependencies) =>
|
|
178
|
+
makeSelectionClient(dependencies).selectObjectContent({
|
|
179
|
+
Bucket: "reports",
|
|
180
|
+
Key: "inventory.csv",
|
|
181
|
+
Expression: "SELECT s.sku FROM S3Object s",
|
|
182
|
+
ExpressionType: "SQL",
|
|
183
|
+
InputSerialization: { CSV: { FileHeaderInfo: "USE" } },
|
|
184
|
+
OutputSerialization: { CSV: {} },
|
|
185
|
+
});
|
|
@@ -208,6 +208,44 @@ A generated definition can replace handwritten code once the shared lifecycle ha
|
|
|
208
208
|
|
|
209
209
|
An integration case follows the managed object through its provider result, saved identity, and dependent outputs. It exercises recovery after failure and confirms removal at teardown. Review identifies which handwritten policies and overrides the generated operation replaces.
|
|
210
210
|
|
|
211
|
+
## Services that plan and apply a stack
|
|
212
|
+
|
|
213
|
+
When a caller applies a reviewed plan, [stack operations](../../src/core/stack/resourceStackOperations.ts) and [lifecycle execution](../../src/core/stack/resourceStackLifecycle.ts) share the declarations and saved state used during planning. The diagram shows which services own planning, reference resolution, and provider commands. An arrow points from a service to one of its dependencies.
|
|
214
|
+
|
|
215
|
+
<!-- BEGIN GENERATED EFFECT LAYER DIAGRAM -->
|
|
216
|
+
|
|
217
|
+
```mermaid
|
|
218
|
+
---
|
|
219
|
+
config:
|
|
220
|
+
layout: elk
|
|
221
|
+
---
|
|
222
|
+
flowchart LR
|
|
223
|
+
0("ResourceStackOperations<br/>Prepare and run a reviewed plan")
|
|
224
|
+
1["ResourceGraphStore<br/>Store declarations and dependencies"]
|
|
225
|
+
2["ResourceModel<br/>Validate resource properties and outputs"]
|
|
226
|
+
3["ResourceStateStore<br/>Read and save applied resources"]
|
|
227
|
+
4["ResourceStackLifecycle<br/>Run resource actions"]
|
|
228
|
+
5["ResourceOutputResolver<br/>Resolve references from applied outputs"]
|
|
229
|
+
6["ResourceCommandPolicy<br/>Dispatch commands to the provider"]
|
|
230
|
+
7["ResourcePlanner<br/>Compare declarations with saved state"]
|
|
231
|
+
1 --> 2
|
|
232
|
+
0 --> 1
|
|
233
|
+
0 --> 3
|
|
234
|
+
4 --> 1
|
|
235
|
+
4 --> 3
|
|
236
|
+
4 --> 2
|
|
237
|
+
5 --> 2
|
|
238
|
+
4 --> 5
|
|
239
|
+
4 --> 6
|
|
240
|
+
7 --> 2
|
|
241
|
+
4 --> 7
|
|
242
|
+
0 --> 4
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
<!-- END GENERATED EFFECT LAYER DIAGRAM -->
|
|
246
|
+
|
|
247
|
+
[Regenerate the Effect Layer diagrams](../development/effect-native-development.md#regenerate-effect-layer-diagrams) after changing this composition.
|
|
248
|
+
|
|
211
249
|
## Declare resources, execute commands, and save state
|
|
212
250
|
|
|
213
251
|
Provider resource functions validate declarations and register canonical schemas internally. A declaration returns a typed entity with a stable identity before any provider mutation. Relationship properties accept compatible entities. Ordinary properties keep their provider constraints, and applications can read applied outputs directly.
|
|
@@ -28,11 +28,13 @@ Product and BillingPortalConfiguration use a hint to select POST with active: fa
|
|
|
28
28
|
|
|
29
29
|
## Replace a resource
|
|
30
30
|
|
|
31
|
-
The plan identifies changes that require replacement
|
|
31
|
+
The plan identifies changes that require replacement. When the strategy creates the successor first, the stack confirms it and uses its identity in dependent requests. After those requests complete, the stack removes the replaced instances in reverse dependency order. A failed dependent request leaves the predecessors owned for recovery.
|
|
32
|
+
|
|
33
|
+
When an earlier action can change an immutable input through a reference, the plan shows that replacement may be required. Apply compares the resolved input with its saved value. If the immutable input is unchanged, the stack can apply changes to mutable properties on the existing instance.
|
|
32
34
|
|
|
33
35
|
Where the provider leaves replacement behavior unspecified, hints identify the triggering properties and execution order. The reviewed plan shows that order. Price releases its lookup key when it retires the previous price, then creates its successor. Webhook rotation creates the successor first.
|
|
34
36
|
|
|
35
|
-
Each owned instance has its own lifecycle record and protected outputs. A completed removal remains on record until the operation finishes so a retry can skip it.
|
|
37
|
+
Each owned instance has its own lifecycle record and protected outputs. A completed removal remains on record until the operation finishes so a retry can skip it. When the provider confirms that it rejected a create request before creating anything, the stack can release that attempt and accept a corrected declaration. If the outcome is uncertain or the stack has saved a provider identity, it retains the record for retry or teardown.
|
|
36
38
|
|
|
37
39
|
## Validate and execute generated operations
|
|
38
40
|
|
|
@@ -6,6 +6,8 @@ The first sentence must name the entity and identify its kind, such as a functio
|
|
|
6
6
|
|
|
7
7
|
An inline comment must identify the domain entity or operation implemented by its block. Name the relevant schema module, client constructor, or other entity and explain the behavior or constraint its consumer relies on. Place this explanation beside each large body within a method so the reader can understand its purpose at that location.
|
|
8
8
|
|
|
9
|
+
Separate logical groups of statements with a blank line. For example, when a decoder reads a service response and then selects an application error, leave a blank line between those decisions. If a protocol defines the response fields, cite the checked-in section that defines them beside the decoder and explain how the application handles a missing or invalid value.
|
|
10
|
+
|
|
9
11
|
A comment must add a supported contract, condition, failure, or consequence that the declaration and adjacent statements do not explain. Do not narrate code content or implementation stages.
|
|
10
12
|
|
|
11
13
|
Write relationships in complete sentences with articles, verbs, and prepositions. Unpack phrases such as "provider field access" into ordinary English that says which field a helper reads and why its name needs quotes.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Designing a generated SDK operation
|
|
2
|
+
|
|
3
|
+
Before a contributor changes the SDK generator, the walkthrough must show the TypeScript that an application author would receive from the proposed change. Suppose an inventory application reads a tag on an S3 bucket to find the team responsible for its reports. In this example the bucket is named `reports`, the tag is named `team`, and the team's identifier is the string `"001"`. The application author wants to call `getBucketTagging({ Bucket: "reports" })` and read that identifier from the result. S3 sends the tags as XML. The design must explain how the generated method can offer that call and return a list of tags with the identifier intact.
|
|
4
|
+
|
|
5
|
+
## What belongs in the walkthrough
|
|
6
|
+
|
|
7
|
+
Start with an application decision and the generated method that makes it possible. Include the schemas and declarations the generator must emit for that method. Tie each declaration to the model or to a decision about what the application sends, receives, or handles. For a design about modeled errors, show which failures the operation declares and how the application handles each one. For a design about event streams, show what the method returns when the request opens and what the application learns as it consumes the stream.
|
|
8
|
+
|
|
9
|
+
Treat signing, generic response classification, protocol parsing, and stream framing as dependencies when the generated method does not own those operations. Show the types and calls that connect the method to those dependencies, and explain how the local example supplies them. Keep the local transport and its fixtures separate from the proposed generator output. If a dependency lacks a required capability, describe the missing operation and the effect on the application. Design shared protocol code separately.
|
|
10
|
+
|
|
11
|
+
## How the service model determines the generated request
|
|
12
|
+
|
|
13
|
+
Start with the upstream operation that the application needs. For the inventory application, the S3 model declares `GetBucketTagging` as an HTTP GET with the URI `/{Bucket}?tagging`. The declaration explains where two parts of the request come from: the application supplies the bucket name, and S3 defines the query parameter as part of the operation. The model also lets the caller supply `ExpectedBucketOwner`. Its header annotation names the HTTP header that carries the account identifier. An example that calls the method with only a bucket name will never exercise that header, so the method call alone cannot tell an implementer how to handle the full input.
|
|
14
|
+
|
|
15
|
+
Place those declarations beside the proposed generated request code. Identify the schema that validates the annotations and explain which facts the generator takes from the validated values. For this operation, the implementation notes should direct the contributor to select `Bucket` for the path parameters, take `tagging` from the modeled URI, and use the header name `x-amz-expected-bucket-owner` for `ExpectedBucketOwner`. Show what the transport receives when the caller omits the account identifier: the query still identifies the tagging operation and the expected-owner header is absent. For an operation that accepts a body, carry its value through the payload encoder in the same request. The reader must be able to account for every field the proposed method accepts.
|
|
16
|
+
|
|
17
|
+
## How to design the conversion from the service response to the application result
|
|
18
|
+
|
|
19
|
+
Read the service model alongside the checked-in documentation for the library that reads the response. The S3 model says that `TagSet` is a list and that each XML entry is named `Tag`. It does not describe the JavaScript value an XML parser returns for a single entry. To establish what the decoder will receive, parse the example response with the settings proposed for the generated client. Show the parser's result beside the result the application expects. For the inventory example, the relevant difference is visible in these two values:
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
// Parsed XML for the reports bucket, with tag text preserved as strings.
|
|
23
|
+
{ Tagging: { TagSet: { Tag: { Key: "team", Value: "001" } } } }
|
|
24
|
+
|
|
25
|
+
// Result of the proposed SDK method.
|
|
26
|
+
{ TagSet: [{ Key: "team", Value: "001" }] }
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The generated decoder needs the XML names from Smithy to find the tag. Effect already supplies the conversion from a single value or an array of values to an array: `Schema.ArrayEnsure(Tag)` applies the tag schema to each entry. Show how the generated code composes those operations, cite the checked-in guide or source for the public API it uses, and confirm that the installed version supports that use. When the service model and the library leave a decision to the SDK author, describe the choice in terms of what the application would send or receive. Keep it open for review until the design settles it. Do not inspect the project's existing shared client implementations when writing or reviewing the walkthrough.
|
|
30
|
+
|
|
31
|
+
## How to write the proposed TypeScript
|
|
32
|
+
|
|
33
|
+
Apply the same Effect conventions to walkthroughs as to production code. Use schemas to validate wire values and documented library operations to read responses, select results, and consume streams. Keep the call and its decoding in one Effect expression and let TypeScript infer the success and failure types. The Biome rules for Effect apply inside `Effect.gen` too, including the rules for `if`, `switch`, manual data guards, and mutable state.
|
|
34
|
+
|
|
35
|
+
When two modeled errors share a status, the status identifies a failed response and the protocol supplies the error code. Show the declared errors that the generated operation supplies to the decoder and how those errors reach the application, for example through `Effect.catchTags`. A handwritten status check followed by a switch over service error codes puts the same protocol decisions in each generated method. If the library has no public API that supports a required distinction, cite the checked-in contract that establishes the gap and document the small operation the generated method needs to call.
|
|
36
|
+
|
|
37
|
+
## What the application author runs
|
|
38
|
+
|
|
39
|
+
Write the proposed SDK code and its application example in one standalone TypeScript file under `docs/application/designs/`. Mark where the generated declarations end and the application code begins. A reader should be able to follow the same bucket name from the application call into the request and the same team identifier from the XML into the returned tag. When the example requires an HTTP transport, declare it as an input and explain who supplies it. Show how the application gives the transport to the client constructor and then invokes the generated method through that client. Explain which call performs I/O and what the application can read after it completes. Include a second input or response when it demonstrates behavior the first example leaves untested.
|
|
40
|
+
|
|
41
|
+
## What to verify before saving the walkthrough
|
|
42
|
+
|
|
43
|
+
Prepare the complete example in a temporary directory before writing it to `docs/application/designs/`. Review its comments against [Document code for its consumers](code-documentation.md). The repository's Biome and TypeScript settings omit the walkthrough directory, so check the draft explicitly before saving it.
|
|
44
|
+
|
|
45
|
+
Put the draft at `tools/design-walkthrough.ts` inside the temporary directory so Biome includes it. Copy the repository's `biome.jsonc` there unchanged, link its `node_modules`, and run `git init` in the temporary directory so Biome can find a Git root. Run `./node_modules/.bin/biome check --write tools/design-walkthrough.ts` to format the draft, then run the same check without `--write`. For the type check, set the temporary package to ESM and extend the repository's `tsconfig.json`. Set `rootDir` to the temporary directory, turn off incremental builds, and include the draft explicitly. Run `./node_modules/.bin/effect-tsgo tsc -p tsconfig.json` there.
|
|
46
|
+
|
|
47
|
+
Run the formatted application example against a local transport. Check the HTTP message it sends and give the transport the example service responses. Compare the observed success or failure with what the application is promised. For the inventory application, verify that the result contains an array with the string `"001"` as the tag value. For a stream, exercise both full consumption and early termination, and verify that the request closes in both cases.
|
|
48
|
+
|
|
49
|
+
Read the explanation from the application author's perspective. It must explain why the application makes the call, which code the generator must supply, and how that code produces the result. Then trace the TypeScript independently: every value used in the operation must come from a declared input, the model, or a call whose behavior the walkthrough establishes. Resolve missing steps before handing the design to the contributor who will implement it. When the user asks to see actual generated output, run the normal generator for the selected operation and emit its output separately in the repository's inspection layout. The reviewer can then compare what the generator produced with the TypeScript the design proposed.
|
|
@@ -16,6 +16,18 @@ Generate request schemas, response schemas, and invocation metadata from publish
|
|
|
16
16
|
|
|
17
17
|
Generate methods, schemas, documentation, and exports together through ts-morph and TypeScript AST operations. Compile the generated schemas through Effect.
|
|
18
18
|
|
|
19
|
+
## Change a provider generator
|
|
20
|
+
|
|
21
|
+
A generator change starts with one operation from a pinned model and a result its caller can verify. For AWS, trace the shape or member and its Smithy trait to the generated declaration. The [Smithy semantic model guide](../../refs/smithy/docs/source-2.0/guides/building-codegen/using-the-semantic-model.rst) explains how indexes expose model facts. Name the public index or converter hook that supplies the value. For validation changes, name the Effect schema API and confirm its behavior in the installed version.
|
|
22
|
+
|
|
23
|
+
The converter or compiler passes the modeled fact to the emitter through a typed contract. Extend the existing hook where it already reads the relevant shape or member. A separate pass through the same structure requires a specific reason even when it lives in another file or serves a different protocol.
|
|
24
|
+
|
|
25
|
+
Before adding a handwritten traversal or storing a second copy of a binding, show the value the existing contract cannot supply, the public APIs and hooks you checked, and the generated operation that needs the value. Stop before editing the generator and obtain explicit approval for the proposed exception. The approval covers the identified gap. Verify the generated behavior separately after implementation.
|
|
26
|
+
|
|
27
|
+
S3 `GetObject` returns a blob as its HTTP body. Smithy's [`httpPayload` trait](../../refs/smithy/docs/source-2.0/spec/http-bindings.rst#httppayload-trait) marks the body member. [`HttpBindingIndex.getResponseBindings`](../../refs/smithy/smithy-model/src/main/java/software/amazon/smithy/model/knowledge/HttpBindingIndex.java) returns the binding, and the [`streaming` trait](../../refs/smithy/docs/source-2.0/spec/streaming.rst#streaming-trait) tells the client to expose a stream. A string schema alone describes the value type. The body binding says whether the blob goes out as raw bytes or as part of XML. An annotation such as `httpBlob` carries a fact absent from the binding the compiler receives.
|
|
28
|
+
|
|
29
|
+
The [operation inspection command](../../tools/awsServiceResources/README.md#generate-aws-service-clients) produces the first generated example. Compare its contract with the source and check what the caller receives. Remove any pass that repeats a decision the converter already made. Then regenerate other operations. A reduction report compares line and byte totals for the generator and every emitted file from the same pinned operations.
|
|
30
|
+
|
|
19
31
|
## Connect services and manage their lifetimes
|
|
20
32
|
|
|
21
33
|
Declare services through Context.Service and compose declaration and execution through one application Layer graph. Both operations need the same ResourceModel instance so execution can validate provider values against the schemas registered by the declaration. Output validation fails with ResourceOutputSchemaMissing if a separate instance lacks a schema registered by the declaration.
|
|
@@ -34,8 +46,21 @@ Use Layer.buildWithMemoMap when the caller must supply a [Layer](https://github.
|
|
|
34
46
|
|
|
35
47
|
Stop the active stream before its replacement starts. Give each stream its own scope and close that scope to stop it, or store the active fiber in service state and interrupt it directly. Apply that cleanup when a change of identity or runtime requires a new stream.
|
|
36
48
|
|
|
49
|
+
### Regenerate Effect Layer diagrams
|
|
50
|
+
|
|
51
|
+
From the repository root, run the [diagram generator](../../tools/generateEffectLayerDiagrams.ts) after changing the dependencies of a documented service. For each view, the generator starts at a service used by the application and reads its constructor's inferred Effect requirements through the TypeScript checker. The view selects the services to explain and gives each one a short label. The requirements determine the arrows. Effect's `Graph.toMermaid` writes the graph between the diagram markers, and Mermaid lays it out when the document renders.
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
yarn exec tsx tools/generateEffectLayerDiagrams.ts
|
|
55
|
+
yarn exec tsx tools/generateEffectLayerDiagrams.ts --check
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Use `--check` to verify that the diagrams match the current service dependencies. It exits with an error if a diagram needs regeneration and leaves the files unchanged.
|
|
59
|
+
|
|
37
60
|
## Develop resource management
|
|
38
61
|
|
|
62
|
+
Resource declarations and lifecycle operations must accept the full API defined by their provider schemas. Handwritten types, field lists, configuration, and mappings must not narrow that API.
|
|
63
|
+
|
|
39
64
|
### Establish the resource lifecycle
|
|
40
65
|
|
|
41
66
|
Start with what the stack must be able to create, observe, change, replace, and remove. Read the provider specification and trace each action through the existing lifecycle service and saved state. Establish which provider values identify the owned object, which properties can change, what confirms a mutation, and what a retry needs after partial success. See the [resource lifecycle contract](../application/resource-operations.md).
|
|
@@ -46,17 +71,21 @@ Use a branded schema for AWS identities and metadata that pass between services.
|
|
|
46
71
|
|
|
47
72
|
Generate schemas and typed client operations from the provider specifications. Use a resource definition to select those operations and map identities, requests, and confirmed results through the shared lifecycle contract. A resource that follows a supported lifecycle should require only its definition and generator inputs. New field names, operation names, and response formats belong in mappings.
|
|
48
73
|
|
|
74
|
+
Prove a management pattern in a Nomoss workload before you automate its repetition. Choose a workload in which related resources do something together, such as an HTTP API invoking a Lambda function. Verify the result through the same application path after apply and after a meaningful update. Try the pattern on another workload before making it the default for other resource types.
|
|
75
|
+
|
|
49
76
|
If the contract lacks a required behavior, explain the provider rule and what happens if the stack omits it. Extend the shared contract if the rule applies to other resources. Supply a typed Effect operation at the affected lifecycle step if a resource needs its own decision or sequence. The shared lifecycle still validates inputs, checks ownership, confirms changes, and saves state. A new interface, manifest field, or renderer requires a distinct behavior that the existing contract cannot express. See [Generate lifecycle operations](../application/generation-architecture.md#generate-lifecycle-operations).
|
|
50
77
|
|
|
78
|
+
When AWS preserves a setting omitted from an update, supply the reset value in the resource definition. Verify the reset against the provider observation and the behavior that setting controls. Normalize known provider defaults in the observation mapping while keeping equality for application-owned settings whose removed entries would still affect the workload.
|
|
79
|
+
|
|
51
80
|
### Resolve management by resource type
|
|
52
81
|
|
|
53
|
-
The provider Layer supplies services shared across resource types.
|
|
82
|
+
The provider Layer supplies services shared across resource types. Import management definitions statically and index them by resource type. Initialize a definition when a stack command needs it, using the existing application scope. The stack must still manage a saved resource after its declaration disappears. If a definition is missing, report the unsupported command before the runtime sends a request for that resource.
|
|
54
83
|
|
|
55
84
|
A new resource must leave provider runtime composition unchanged. A provider-wide `Layer.mergeAll` of resource command Layers builds every registration at startup. A generated list has the same cost, even if the generator writes one list per service. Keep that pattern out of provider composition. See the [Effect Layer implementation](../../../command-options-fund/refs/effect/packages/effect/src/Layer.ts) for how `mergeAll` builds its inputs.
|
|
56
85
|
|
|
57
86
|
### Verify the pattern at catalog scale
|
|
58
87
|
|
|
59
|
-
Show that a new resource can use an existing lifecycle through its definition and generator inputs. Run a fixed stack against a catalog of hundreds of resource types and check which management
|
|
88
|
+
Show that a new resource can use an existing lifecycle through its definition and generator inputs. Run a fixed stack against a catalog of hundreds of resource types and check which management services initialize. Record the catalog size, the types the stack uses, and the observed startup work. Use the stack to verify mutation results, recovery after a failure, and removal after a declaration disappears.
|
|
60
89
|
|
|
61
90
|
### Use a local AWS client from another repository
|
|
62
91
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Prepare or commit the review batch
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Start with the active task and one result the caller can verify. The [provider generator workflow](effect-native-development.md#change-a-provider-generator) traces that result to its source before the first code edit. The checks below apply to the first operation. Fix any defects there before the change reaches another resource.
|
|
6
6
|
|
|
7
7
|
Organize the batch around changes that must work together. Keep a changed interface with the callers migrated to it, because reviewing either part requires the other. Keep changed tests with the implementation they exercise.
|
|
8
8
|
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
## AWS generation and execution
|
|
26
26
|
|
|
27
|
+
- [ ] Compare the generator changes with the existing converter and compiler hooks before reviewing the emitted files. Trace any new enumeration of schema members or variants, recursion, or repeated binding back to the missing value and the approved exception. Reject a change that adds a second walk when an existing hook can supply the value. [Provider generator workflow](effect-native-development.md#change-a-provider-generator)
|
|
27
28
|
- [ ] Compare the Smithy model with the generated contract callers import. Check request bindings, payload schemas, and execution metadata. Follow the public export to the AWS client and verify input validation and serialization. Check that the signer receives the final request before transport and that the client decodes the response or returns the typed failure. Verify the dependencies, prepared request reuse on retry, and interruption of HTTP work and waits against the contract. [AWS resource specification](../application/aws-resource-lifecycle-management.md)
|
|
28
29
|
- [ ] Follow a native AWS mutation through confirmation. Check that the lifecycle reads and validates the resource before it saves outputs or releases dependent work. [AWS resource specification](../application/aws-resource-lifecycle-management.md)
|
|
29
30
|
|
|
@@ -28,6 +28,8 @@ Give each independent outcome its own case. Keep successive actions together whe
|
|
|
28
28
|
|
|
29
29
|
Exercise the resource relationships the application relies on. If an update or removal affects one part of the workflow, read the provider state to check the intended change and confirm that unrelated state survives. Use a provider authorization check when the requirement concerns effective permissions.
|
|
30
30
|
|
|
31
|
+
To verify a managed integration, create the resources and their supporting policies through the stack. Then exercise the application path they provide. For example, invoke the route after removing a Lambda environment variable and check that the function's response reflects the removal. A provider configuration read alone cannot establish what the application observes while the change propagates.
|
|
32
|
+
|
|
31
33
|
For the AWS suites, select the integration account and region as described in [Test AWS workflows](#test-aws-workflows). Run `yarn exec vitest run --config vitest.integration.config.ts tests/aws/native/ --pool forks`. Use the path of a suite or service directory to limit the run.
|
|
32
34
|
|
|
33
35
|
Put the application declaration in a named fixture when its properties would obscure the workflow. Supply stable configuration there and let the case specify the change an application author makes.
|
|
@@ -86,6 +88,24 @@ For an in-place change, add the revised declaration and the expected provider va
|
|
|
86
88
|
|
|
87
89
|
Set `NOMOSS_AWS_INTEGRATION_PROFILE` to your local AWS profile. Set `NOMOSS_AWS_INTEGRATION_REGION` to select a region; it defaults to `us-east-1`.
|
|
88
90
|
|
|
91
|
+
To validate the generated clients before using them in a stack, set `NOMOSS_AWS_INTEGRATION_ACCOUNT` and `NOMOSS_AWS_INTEGRATION_ARN` to the account and caller ARN you expect STS to return. Set `NOMOSS_AWS_INTEGRATION_ROLE_NAME` and `NOMOSS_AWS_INTEGRATION_ROLE_ARN` to an existing role the profile can read. The IAM check also looks up a fresh name to verify that AWS reports an absent role. Run the two read-only checks from the repository root:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
yarn exec vitest run --config vitest.integration.config.ts tests/awsServiceResources.integration.test.ts -t 'Generated AWS client validation'
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Omit the name filter to include the SQS case, which creates a queue, changes its visibility timeout and deletes it. Use the [tracing procedure](../operations/observability-sop.md) to inspect the identity and role checks in Jaeger.
|
|
98
|
+
|
|
99
|
+
The HTTP API case deploys a Lambda package from S3. Set `NOMOSS_AWS_INTEGRATION_ARTIFACT_BUCKET` to an integration bucket in the selected region. From the project root, publish the fixture before the first run and whenever its handler changes. The bucket and package belong to the test environment and survive stack teardown.
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
fixture_dir=$(mktemp -d)
|
|
103
|
+
zip -j "$fixture_dir/settings.zip" tests/aws/native/apigatewayv2/fixtures/settings.mjs
|
|
104
|
+
aws s3 cp "$fixture_dir/settings.zip" "s3://$NOMOSS_AWS_INTEGRATION_ARTIFACT_BUCKET/nomoss/fixtures/http-api/settings.zip" --profile "$NOMOSS_AWS_INTEGRATION_PROFILE"
|
|
105
|
+
rm "$fixture_dir/settings.zip"
|
|
106
|
+
rmdir "$fixture_dir"
|
|
107
|
+
```
|
|
108
|
+
|
|
89
109
|
```sh
|
|
90
110
|
NOMOSS_AWS_INTEGRATION_PROFILE=your-integration-profile yarn exec vitest run --config vitest.integration.config.ts tests/aws/native/ --pool forks --reporter=verbose
|
|
91
111
|
```
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The `release` workflow accumulates conventional commits on `main` into a release PR. Use a `fix:` subject for a patch release and `feat:` for a minor release. A `feat!:` subject or a `BREAKING CHANGE:` footer produces a major release.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
After a release PR merges, the workflow sets `@nomoss/aws` to the Nomoss release version, checks the project, and packs both packages. Yarn compiles the SDK in its [`prepack` hook](https://yarnpkg.com/advanced/lifecycle-scripts#prepack-and-postpack) and writes its version range into the Nomoss archive. The workflow installs the SDK archive in a standalone app and checks that Node can load the clients and TypeScript can resolve their declarations before submitting both archives for npm review.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
In the npm settings for `@nomoss/aws` and `nomoss`, grant `Tradedal/nomoss` permission to run `npm stage publish` from `release.yml`. The workflow authenticates to npm through GitHub Actions OpenID Connect.
|
|
8
|
+
|
|
9
|
+
Approve `@nomoss/aws` first in npm's **Staged Packages** tab. Once that SDK version is available, approve `nomoss` so users can install it with its SDK dependency.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="796" height="216" viewBox="0 0 796 216" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">nomoss</title>
|
|
3
|
+
<desc id="desc">Nomoss wordmark: a charcoal lowercase n and outlined faceted stone forming the first o, raised beside connected muted moss-green lettering. The slogan is a separate asset.</desc>
|
|
4
|
+
<g id="wordmark" transform="translate(-5 -5)" fill-rule="nonzero">
|
|
5
|
+
<g id="letter-n" fill="#27302B">
|
|
6
|
+
<path d="M 21.607 184.418 C 21.273 183.548 21 151.598 21 113.418 L 21 44 L 31.5 43.952 C 37.275 43.926 45.712 43.882 50.25 43.855 L 58.5 43.805 L 58.789 52.402 C 58.948 57.131 59.426 61 59.852 61 C 60.278 61 61.948 59.589 63.563 57.864 C 78.239 42.196 105.675 38.209 126.446 48.728 C 133.961 52.533 142.481 61.238 146.444 69.161 C 152.809 81.883 153.087 84.903 152.777 138 L 152.5 185.5 L 135.632 185.775 C 124.041 185.963 118.332 185.691 117.382 184.902 C 116.245 183.958 116 176.1 116 140.559 C 116 91.736 115.853 90.523 108.986 82.722 C 96.696 68.759 71.983 73.117 63.311 90.776 L 60.5 96.5 L 60.2 140.472 C 59.977 173.313 59.597 184.636 58.7 185.206 C 58.04 185.626 49.561 185.976 39.857 185.985 C 24.682 185.998 22.129 185.779 21.607 184.418 Z"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="stone-o">
|
|
9
|
+
<path id="stone-face" fill="#FFFFFF" d="M 200.222 186.597 C 191.467 183.727 184.636 176.129 174.606 158.109 C 165.493 141.736 161.342 128.42 156.96 101.5 C 153.527 80.409 154.113 70.579 159.262 62.939 C 161.739 59.263 177.582 44.738 191 33.84 C 197.543 28.526 200.996 26.486 206 24.978 C 224.453 19.419 263.273 19.875 277.035 25.813 C 298.192 34.942 322 70.26 322 92.517 C 322 101.054 318.293 110.709 303.572 140.514 C 292.97 161.98 289.23 168.592 285.365 172.704 C 275.356 183.351 261.342 186.801 225 187.568 C 209.165 187.901 203.526 187.68 200.222 186.597 Z"/>
|
|
10
|
+
<path id="stone-outline-and-facets" fill="#27302B" d="M 200.222 186.597 C 191.467 183.727 184.636 176.129 174.606 158.109 C 165.493 141.736 161.342 128.42 156.96 101.5 C 153.527 80.409 154.113 70.579 159.262 62.939 C 161.739 59.263 177.582 44.738 191 33.84 C 197.543 28.526 200.996 26.486 206 24.978 C 224.453 19.419 263.273 19.875 277.035 25.813 C 298.192 34.942 322 70.26 322 92.517 C 322 101.054 318.293 110.709 303.572 140.514 C 292.97 161.98 289.23 168.592 285.365 172.704 C 275.356 183.351 261.342 186.801 225 187.568 C 209.165 187.901 203.526 187.68 200.222 186.597 Z M 253.467 176.939 C 269.661 174.561 275.509 172.024 280.435 165.239 C 285.417 158.376 299.324 131 297.828 131 C 297.1 131 281.428 132.58 263.002 134.511 C 244.576 136.442 217.888 139.092 203.695 140.399 C 189.502 141.707 177.66 143.007 177.378 143.289 C 176.742 143.925 180.775 151.957 186.175 160.808 C 196.784 178.195 198.37 179 222 178.994 C 234.415 178.991 243.559 178.393 253.467 176.939 Z M 186.211 135.881 C 196.415 134.772 196.545 134.724 202 130.067 C 205.025 127.484 220.325 115.249 236 102.878 C 251.675 90.507 267.486 77.998 271.136 75.081 L 277.772 69.777 L 271.603 51.3 C 267.292 38.387 264.842 32.473 263.467 31.661 C 260.234 29.752 222.228 30.227 213.076 32.291 C 203.958 34.347 202.288 35.451 183.285 51.984 C 165.303 67.631 163.407 70.481 163.661 81.5 C 164.032 97.578 172.144 137 175.082 137 C 175.544 137 180.552 136.497 186.211 135.881 Z M 256.491 129.419 C 285.099 126.507 301.752 124.413 302.224 123.669 C 303.656 121.415 310.871 104.474 311.514 101.856 C 312.116 99.405 311.047 98.32 296.958 87.064 C 288.594 80.383 281.41 74.823 280.992 74.709 C 280.158 74.48 206.089 133.144 206.034 134.077 C 206.015 134.394 207.238 134.507 208.75 134.327 C 210.262 134.147 231.746 131.939 256.491 129.419 Z M 312.55 85.485 C 309.998 68.465 283.021 34 272.251 34 C 271.804 34 274.152 42.067 277.469 51.926 L 283.5 69.851 L 298 81.43 C 313.415 93.738 313.804 93.847 312.55 85.485 Z"/>
|
|
11
|
+
</g>
|
|
12
|
+
<g id="moss" fill="#65764E">
|
|
13
|
+
<path d="M 643.5 203.945 C 630.708 202.646 618.542 196.581 609.974 187.231 C 604.756 181.536 603.519 180.7 599.668 180.266 C 595.54 179.801 595.07 180.015 591.395 184.034 C 582.609 193.645 578.095 196.762 567.264 200.693 C 548.698 207.432 526.909 202.657 512.647 188.725 C 505.49 181.732 505.026 181.8 497.537 190.955 C 489.964 200.211 488.331 201.138 478.514 201.751 C 468.369 202.384 463.576 200.993 460.926 196.647 C 459.152 193.736 459.007 191.322 458.998 164.5 C 458.988 133.607 458.557 130.004 454.258 124.895 C 446.981 116.247 431.836 117.247 425.518 126.793 C 421.718 132.536 421 139.034 421 167.686 C 421 201.95 421.418 201 406.352 201 C 390.843 201 391.002 201.379 390.994 164.3 C 390.988 133.614 390.554 130.001 386.258 124.895 C 380.125 117.606 367.132 116.82 360.155 123.317 C 354.633 128.458 354.538 129.072 354 163.334 L 353.5 195.168 L 350.234 198.084 C 347.209 200.785 346.385 201 339.049 201 C 322.666 201 323 201.828 323 161.26 C 323 121.998 324.026 116.963 335 102.396 C 343.092 91.653 354.465 86.57 370.5 86.528 C 381.085 86.501 381.783 86.635 389.001 90.083 C 396.534 93.68 401.318 97.533 406.234 103.961 L 408.881 107.421 L 411.128 104.461 C 415.878 98.203 422.54 92.641 428.891 89.631 C 434.997 86.738 436.303 86.5 446.052 86.5 C 456.241 86.5 456.866 86.63 464.237 90.272 C 475.532 95.855 482.373 104.396 486.388 117.932 C 487.677 122.274 488 128.225 488 147.616 C 488 170.68 488.643 177 490.99 177 C 491.562 177 493.681 175.486 495.701 173.636 L 499.372 170.271 L 497.001 162.386 C 494.226 153.156 493.708 137.08 495.894 128 C 500.437 109.133 514.009 93.93 531.734 87.855 C 541.421 84.534 557.723 84.536 567 87.858 C 584.974 94.293 598.231 109.402 603.099 129 C 605.299 137.854 604.817 153.116 602.049 162.266 C 599.502 170.683 599.597 171.25 603.553 171.25 C 605.475 171.25 607.403 169.862 610.672 166.125 C 616.645 159.297 618.939 159.293 626.692 166.099 C 629.886 168.903 634.75 172.365 637.5 173.792 C 648.774 179.644 660 175.979 660 166.448 C 660 160.788 657.562 157.988 648.219 152.914 C 619.75 137.455 614.236 133.239 611.425 124.774 C 608.228 115.149 611.71 102.974 619.655 95.998 C 628.835 87.938 645.247 83.752 659.409 85.859 C 674.85 88.155 689 95.511 689 101.242 C 689 104.695 681.741 116.266 678.598 117.822 C 676.148 119.035 675.257 118.797 667.729 114.921 C 653.245 107.464 641 108.598 641 117.398 C 641 121.973 643.108 123.559 661.5 132.819 C 670.3 137.249 679.382 142.486 681.682 144.457 C 687.467 149.412 692 158.728 692 165.66 C 692 170.921 692.044 171 694.986 171 C 697.343 171 698.509 170.188 700.524 167.143 C 705.657 159.387 710.873 159.093 718.634 166.122 C 730.042 176.452 743.457 179.529 749.178 173.127 C 751.044 171.038 751.999 168.873 751.996 166.734 C 751.989 160.29 749.452 158.076 730.644 148.105 C 706.206 135.148 701.462 130.034 701.642 116.841 C 701.971 92.742 731.486 78.987 762.5 88.48 C 769.39 90.589 776.939 94.96 779.357 98.242 C 781.654 101.358 781.003 103.525 774.877 113.152 C 770.7 119.717 768.751 119.918 758.428 114.85 C 745.018 108.267 734.137 108.621 732.361 115.699 C 731.056 120.898 733.513 122.98 751.604 132 C 769.952 141.148 773.494 143.606 779.181 151.14 C 788.025 162.858 785.92 181.133 774.398 192.655 C 766.426 200.627 756.236 204.271 742 204.242 C 725.597 204.208 710.586 197.735 699.771 186.032 C 696.704 182.715 693.491 180 692.629 180 C 691.767 180 689.549 182.363 687.701 185.25 C 678.73 199.265 662.987 205.924 643.5 203.945 Z M 560.686 173.89 C 573.415 167.788 579.794 148.918 574.505 133.01 C 572.183 126.024 563.517 117.015 557.384 115.211 C 547.271 112.236 538.583 114.336 531.5 121.466 C 524.945 128.065 522.484 134.669 522.544 145.5 C 522.67 168.423 542.031 182.834 560.686 173.89 Z"/>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
"url": "https://github.com/Tradedal/nomoss.git"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
-
"check": "yarn format && yarn lint && yarn typecheck:tsgo && vitest run --pool forks --passWithNoTests --exclude 'tests/**/*.integration.test.ts'",
|
|
9
|
+
"check": "yarn check:aws-client-generator && yarn format && yarn lint && yarn typecheck:tsgo && vitest run --pool forks --passWithNoTests --exclude 'tests/**/*.integration.test.ts'",
|
|
10
|
+
"check:aws-client-generator": "tsx tools/checkAwsClientGenerator.ts",
|
|
10
11
|
"format": "biome check --write",
|
|
11
12
|
"format:staged": "biome check --write --staged --no-errors-on-unmatched",
|
|
12
13
|
"generate:aws-resources": "tsx tools/compileAwsServiceResourceDeclarations.ts && yarn generate:aws-management",
|
|
@@ -27,9 +28,7 @@
|
|
|
27
28
|
"@aws-cdk/service-spec-types": "0.0.289",
|
|
28
29
|
"@biomejs/biome": "2.6.9",
|
|
29
30
|
"@effect/tsgo": "0.73.4",
|
|
30
|
-
"@effect/vitest": "4.1.
|
|
31
|
-
"@tradedal/aws-client-cloudcontrol": "^0.0.4",
|
|
32
|
-
"@tradedal/aws-client-sqs": "^0.0.4",
|
|
31
|
+
"@effect/vitest": "4.1.7",
|
|
33
32
|
"@tradedal/linteffect": "0.1.2-dev",
|
|
34
33
|
"@types/node": "^24.0.0",
|
|
35
34
|
"commit-and-tag-version": "^12",
|
|
@@ -42,12 +41,9 @@
|
|
|
42
41
|
"vitest": "^5.0.5"
|
|
43
42
|
},
|
|
44
43
|
"dependencies": {
|
|
45
|
-
"@effect/platform-node": "4.1.
|
|
46
|
-
"@
|
|
47
|
-
"
|
|
48
|
-
"@tradedal/aws-client-sts": "^0.0.4",
|
|
49
|
-
"@tradedal/aws-credentials": "^0.0.4",
|
|
50
|
-
"effect": "4.1.4",
|
|
44
|
+
"@effect/platform-node": "4.1.7",
|
|
45
|
+
"@nomoss/aws": "^0.0.6",
|
|
46
|
+
"effect": "4.1.7",
|
|
51
47
|
"esbuild": "^0.27.0",
|
|
52
48
|
"fflate": "^0.8.3",
|
|
53
49
|
"redis": "^6.3.1",
|
|
@@ -61,7 +57,7 @@
|
|
|
61
57
|
"publishConfig": {
|
|
62
58
|
"access": "public"
|
|
63
59
|
},
|
|
64
|
-
"version": "0.0.
|
|
60
|
+
"version": "0.0.6",
|
|
65
61
|
"packageManager": "yarn@4.17.1",
|
|
66
62
|
"type": "module",
|
|
67
63
|
"exports": {
|
|
@@ -80,9 +76,7 @@
|
|
|
80
76
|
"./providers/stripe": "./src/providers/stripe/index.ts"
|
|
81
77
|
},
|
|
82
78
|
"workspaces": [
|
|
83
|
-
"providers/aws/
|
|
84
|
-
"providers/aws/client-core",
|
|
85
|
-
"providers/aws/credentials"
|
|
79
|
+
"providers/aws/sdk"
|
|
86
80
|
],
|
|
87
81
|
"files": [
|
|
88
82
|
"/README.md",
|
package/providers/aws/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
# AWS provider
|
|
2
2
|
|
|
3
|
-
[generated/
|
|
3
|
+
[generated/resources](generated/resources/) contains the TypeScript that applications use to declare AWS resources in a Nomoss stack. Nomoss calls AWS through the [`@nomoss/aws` SDK](sdk/README.md), which also runs in standalone Effect applications.
|
|
4
4
|
|
|
5
|
-
[client-core](client-core/) contains the
|
|
5
|
+
[sdk/client-core](sdk/client-core/) contains the code that signs and sends requests and decodes responses for the generated clients. [sdk/credentials](sdk/credentials/) resolves AWS profiles and obtains sessions through the generated STS, SSO, and SSO OIDC clients. Client core receives credentials through the `AwsCredentialProvider` service.
|
|
6
6
|
|
|
7
|
-
To call IAM directly with your environment or AWS CLI profile, import `makeIAMClient` from `@
|
|
7
|
+
To call IAM directly with your environment or AWS CLI profile, import `makeIAMClient` from `@nomoss/aws/iam` and provide `awsClientLayerLive` from `@nomoss/aws/credentials`. Nomoss calls the same IAM client when it applies supported IAM resources.
|
|
8
8
|
|
|
9
|
-
To call AWS as an IAM role, pass the role ARN and session name in the request to `awsAssumeRoleCredentialsLayer(stsRegion, request)` from `@
|
|
9
|
+
To call AWS as an IAM role, pass the role ARN and session name in the request to `awsAssumeRoleCredentialsLayer(stsRegion, request)` from `@nomoss/aws/credentials`. Provide HTTP transport and the source principal. For environment keys or a CLI sign-in, provide `awsDefaultCredentialsLayer`. For application-managed keys, decode the source with `AwsCredentials` and map a validation failure to `AwsClientConfigurationError`. Give that acquisition function to `awsCredentialProviderLayer`. The schema, error, and provider constructor are available from `@nomoss/aws/config`.
|
|
10
10
|
|
|
11
|
-
Pass the role provider to `awsClientConfigLayerFromProvider` from `@
|
|
11
|
+
Pass the role provider to `awsClientConfigLayerFromProvider` from `@nomoss/aws/config`, and provide that configuration and HTTP transport to `awsClientLayer`. The STS region selects where AWS issues the session. The application configures the region where it calls AWS with that session.
|
|
12
12
|
|
|
13
|
-
When a stack needs its AWS account, partition, or region, yield `AwsEnvironment` from `nomoss/providers/aws` and call `resolve()`. The service uses STS for the account and partition and the client configuration for the region. It returns branded values that callers can pass to `formatArn`. Pass an empty region for a global IAM ARN. Use the `AwsArn` schema to validate an ARN received as text and `AwsArnFromString` to read its components. Both schemas are available from `@
|
|
13
|
+
When a stack needs its AWS account, partition, or region, yield `AwsEnvironment` from `nomoss/providers/aws` and call `resolve()`. The service uses STS for the account and partition and the client configuration for the region. It returns branded values that callers can pass to `formatArn`. Pass an empty region for a global IAM ARN. Use the `AwsArn` schema to validate an ARN received as text and `AwsArnFromString` to read its components. Both schemas are available from `@nomoss/aws/model`.
|
|
14
14
|
|
|
15
15
|
## Change IAM support
|
|
16
16
|
|
|
17
|
-
To add an IAM API operation, select it in the [IAM Smithy manifest](../../tools/awsServiceResources/sources/iam.json) and regenerate the [IAM client](generated/clients/iam/
|
|
17
|
+
To add an IAM API operation, select it in the [IAM Smithy manifest](../../tools/awsServiceResources/sources/iam.json) and regenerate the [IAM client](sdk/generated/clients/iam/client.ts) using the [generation guide](../../tools/awsServiceResources/README.md#select-the-aws-operations).
|
|
18
18
|
|
|
19
19
|
To change what a stack accepts for an IAM group, start with the [CloudFormation Registry inputs](../../tools/awsServiceResources/sources/resources.json) and the [generated group declaration](generated/resources/iam/group.ts). To change what the stack sends to IAM, edit the [group lifecycle mapping](management/mappings/iam/group.ts). A [group membership mapping](management/mappings/iam/userToGroupAddition.ts) selects the native list, add, and remove operations. The shared lifecycle removes the declared memberships while leaving the group intact.
|
|
20
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AwsClientConfig } from "@
|
|
1
|
+
import { AwsClientConfig } from "@nomoss/aws/config";
|
|
2
2
|
import {
|
|
3
3
|
AwsAccountId,
|
|
4
4
|
AwsArn,
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
AwsArnFromString,
|
|
7
7
|
AwsPartition,
|
|
8
8
|
AwsRegionName,
|
|
9
|
-
} from "@
|
|
10
|
-
import { makeSTSClient } from "@
|
|
9
|
+
} from "@nomoss/aws/model";
|
|
10
|
+
import { makeSTSClient } from "@nomoss/aws/sts";
|
|
11
11
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
12
12
|
|
|
13
13
|
const principal = Schema.Struct({
|