alchemy 0.67.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/alchemy.js +25580 -26264
- package/bin/alchemy.ts +6 -2
- package/bin/commands/configure.ts +194 -0
- package/bin/commands/login.ts +99 -55
- package/bin/commands/logout.ts +66 -0
- package/bin/trpc.ts +27 -2
- package/lib/apply.d.ts +2 -2
- package/lib/apply.d.ts.map +1 -1
- package/lib/apply.js +18 -15
- package/lib/apply.js.map +1 -1
- package/lib/auth.d.ts +72 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +163 -0
- package/lib/auth.js.map +1 -0
- package/lib/aws/bucket.d.ts +12 -3
- package/lib/aws/bucket.d.ts.map +1 -1
- package/lib/aws/bucket.js +2 -2
- package/lib/aws/bucket.js.map +1 -1
- package/lib/aws/control/properties.d.ts +64 -0
- package/lib/aws/control/properties.d.ts.map +1 -1
- package/lib/aws/control/properties.js +554 -39
- package/lib/aws/control/properties.js.map +1 -1
- package/lib/aws/control/resource.d.ts +34 -3
- package/lib/aws/control/resource.d.ts.map +1 -1
- package/lib/aws/control/resource.js +36 -3
- package/lib/aws/control/resource.js.map +1 -1
- package/lib/aws/control/types.d.ts +5451 -1587
- package/lib/aws/control/types.d.ts.map +1 -1
- package/lib/aws/control/types.js.map +1 -1
- package/lib/aws/control/update-types.d.ts +12913 -0
- package/lib/aws/control/update-types.d.ts.map +1 -0
- package/lib/aws/control/update-types.js +12916 -0
- package/lib/aws/control/update-types.js.map +1 -0
- package/lib/aws/ec2/internet-gateway-attachment.d.ts +1 -2
- package/lib/aws/ec2/internet-gateway-attachment.d.ts.map +1 -1
- package/lib/aws/ec2/internet-gateway-attachment.js +4 -4
- package/lib/aws/ec2/internet-gateway-attachment.js.map +1 -1
- package/lib/aws/ec2/internet-gateway.d.ts +1 -2
- package/lib/aws/ec2/internet-gateway.d.ts.map +1 -1
- package/lib/aws/ec2/internet-gateway.js +2 -2
- package/lib/aws/ec2/internet-gateway.js.map +1 -1
- package/lib/aws/ec2/nat-gateway.d.ts +1 -2
- package/lib/aws/ec2/nat-gateway.d.ts.map +1 -1
- package/lib/aws/ec2/nat-gateway.js +2 -2
- package/lib/aws/ec2/nat-gateway.js.map +1 -1
- package/lib/aws/ec2/route-table-association.d.ts +1 -2
- package/lib/aws/ec2/route-table-association.d.ts.map +1 -1
- package/lib/aws/ec2/route-table-association.js +2 -2
- package/lib/aws/ec2/route-table-association.js.map +1 -1
- package/lib/aws/ec2/route-table.d.ts +1 -2
- package/lib/aws/ec2/route-table.d.ts.map +1 -1
- package/lib/aws/ec2/route-table.js +2 -2
- package/lib/aws/ec2/route-table.js.map +1 -1
- package/lib/aws/ec2/route.d.ts +1 -2
- package/lib/aws/ec2/route.d.ts.map +1 -1
- package/lib/aws/ec2/route.js +2 -2
- package/lib/aws/ec2/route.js.map +1 -1
- package/lib/aws/ec2/security-group-rule.d.ts +1 -2
- package/lib/aws/ec2/security-group-rule.d.ts.map +1 -1
- package/lib/aws/ec2/security-group-rule.js +2 -2
- package/lib/aws/ec2/security-group-rule.js.map +1 -1
- package/lib/aws/ec2/security-group.d.ts +1 -2
- package/lib/aws/ec2/security-group.d.ts.map +1 -1
- package/lib/aws/ec2/security-group.js +2 -2
- package/lib/aws/ec2/security-group.js.map +1 -1
- package/lib/aws/ec2/subnet.d.ts +1 -2
- package/lib/aws/ec2/subnet.d.ts.map +1 -1
- package/lib/aws/ec2/subnet.js +2 -2
- package/lib/aws/ec2/subnet.js.map +1 -1
- package/lib/aws/ec2/vpc.d.ts +1 -2
- package/lib/aws/ec2/vpc.d.ts.map +1 -1
- package/lib/aws/ec2/vpc.js +2 -2
- package/lib/aws/ec2/vpc.js.map +1 -1
- package/lib/aws/function.d.ts +116 -3
- package/lib/aws/function.d.ts.map +1 -1
- package/lib/aws/function.js +2 -2
- package/lib/aws/function.js.map +1 -1
- package/lib/aws/oidc/github-oidc-provider.d.ts +13 -2
- package/lib/aws/oidc/github-oidc-provider.d.ts.map +1 -1
- package/lib/aws/oidc/oidc-provider.d.ts +48 -3
- package/lib/aws/oidc/oidc-provider.d.ts.map +1 -1
- package/lib/aws/oidc/oidc-provider.js +2 -2
- package/lib/aws/oidc/oidc-provider.js.map +1 -1
- package/lib/aws/policy-attachment.d.ts +2 -3
- package/lib/aws/policy-attachment.d.ts.map +1 -1
- package/lib/aws/policy-attachment.js +1 -1
- package/lib/aws/policy-attachment.js.map +1 -1
- package/lib/aws/policy.d.ts +1 -2
- package/lib/aws/policy.d.ts.map +1 -1
- package/lib/aws/policy.js +4 -4
- package/lib/aws/policy.js.map +1 -1
- package/lib/aws/queue.d.ts +1 -2
- package/lib/aws/queue.d.ts.map +1 -1
- package/lib/aws/queue.js +4 -4
- package/lib/aws/queue.js.map +1 -1
- package/lib/aws/role.d.ts +1 -2
- package/lib/aws/role.d.ts.map +1 -1
- package/lib/aws/role.js +2 -2
- package/lib/aws/role.js.map +1 -1
- package/lib/aws/ses.d.ts +1 -2
- package/lib/aws/ses.d.ts.map +1 -1
- package/lib/aws/ses.js +2 -2
- package/lib/aws/ses.js.map +1 -1
- package/lib/aws/ssm-parameter.d.ts +1 -2
- package/lib/aws/ssm-parameter.d.ts.map +1 -1
- package/lib/aws/ssm-parameter.js +2 -2
- package/lib/aws/ssm-parameter.js.map +1 -1
- package/lib/aws/table.d.ts +1 -2
- package/lib/aws/table.d.ts.map +1 -1
- package/lib/aws/table.js +2 -2
- package/lib/aws/table.js.map +1 -1
- package/lib/cloudflare/account-api-token.d.ts +1 -2
- package/lib/cloudflare/account-api-token.d.ts.map +1 -1
- package/lib/cloudflare/account-api-token.js +2 -2
- package/lib/cloudflare/account-api-token.js.map +1 -1
- package/lib/cloudflare/ai-gateway.d.ts +1 -2
- package/lib/cloudflare/ai-gateway.d.ts.map +1 -1
- package/lib/cloudflare/ai-gateway.js +2 -2
- package/lib/cloudflare/ai-gateway.js.map +1 -1
- package/lib/cloudflare/api-gateway-operation.d.ts +1 -2
- package/lib/cloudflare/api-gateway-operation.d.ts.map +1 -1
- package/lib/cloudflare/api-gateway-operation.js +2 -2
- package/lib/cloudflare/api-gateway-operation.js.map +1 -1
- package/lib/cloudflare/api-schema.d.ts +1 -2
- package/lib/cloudflare/api-schema.d.ts.map +1 -1
- package/lib/cloudflare/api-schema.js +2 -2
- package/lib/cloudflare/api-schema.js.map +1 -1
- package/lib/cloudflare/api-shield.d.ts +1 -2
- package/lib/cloudflare/api-shield.d.ts.map +1 -1
- package/lib/cloudflare/api-shield.js +2 -2
- package/lib/cloudflare/api-shield.js.map +1 -1
- package/lib/cloudflare/api.d.ts +18 -10
- package/lib/cloudflare/api.d.ts.map +1 -1
- package/lib/cloudflare/api.js +92 -38
- package/lib/cloudflare/api.js.map +1 -1
- package/lib/cloudflare/assets.d.ts +21 -43
- package/lib/cloudflare/assets.d.ts.map +1 -1
- package/lib/cloudflare/assets.js +78 -70
- package/lib/cloudflare/assets.js.map +1 -1
- package/lib/cloudflare/astro/astro.d.ts.map +1 -1
- package/lib/cloudflare/astro/astro.js +3 -3
- package/lib/cloudflare/astro/astro.js.map +1 -1
- package/lib/cloudflare/auth.d.ts +91 -17
- package/lib/cloudflare/auth.d.ts.map +1 -1
- package/lib/cloudflare/auth.js +141 -62
- package/lib/cloudflare/auth.js.map +1 -1
- package/lib/cloudflare/bound.d.ts +1 -1
- package/lib/cloudflare/bound.d.ts.map +1 -1
- package/lib/cloudflare/bucket-object.d.ts +81 -0
- package/lib/cloudflare/bucket-object.d.ts.map +1 -0
- package/lib/cloudflare/bucket-object.js +67 -0
- package/lib/cloudflare/bucket-object.js.map +1 -0
- package/lib/cloudflare/bucket.d.ts +87 -8
- package/lib/cloudflare/bucket.d.ts.map +1 -1
- package/lib/cloudflare/bucket.js +246 -19
- package/lib/cloudflare/bucket.js.map +1 -1
- package/lib/cloudflare/bundle/plugin-wasm.js +4 -2
- package/lib/cloudflare/bundle/plugin-wasm.js.map +1 -1
- package/lib/cloudflare/certificate-pack.d.ts +1 -2
- package/lib/cloudflare/certificate-pack.d.ts.map +1 -1
- package/lib/cloudflare/certificate-pack.js +4 -4
- package/lib/cloudflare/certificate-pack.js.map +1 -1
- package/lib/cloudflare/compatibility-date.gen.d.ts +1 -1
- package/lib/cloudflare/compatibility-date.gen.js +1 -1
- package/lib/cloudflare/container.d.ts +1 -2
- package/lib/cloudflare/container.d.ts.map +1 -1
- package/lib/cloudflare/container.js +7 -7
- package/lib/cloudflare/container.js.map +1 -1
- package/lib/cloudflare/custom-domain.d.ts +1 -2
- package/lib/cloudflare/custom-domain.d.ts.map +1 -1
- package/lib/cloudflare/custom-domain.js +2 -2
- package/lib/cloudflare/custom-domain.js.map +1 -1
- package/lib/cloudflare/d1-database.d.ts +2 -3
- package/lib/cloudflare/d1-database.d.ts.map +1 -1
- package/lib/cloudflare/d1-database.js +5 -5
- package/lib/cloudflare/d1-database.js.map +1 -1
- package/lib/cloudflare/dispatch-namespace.d.ts +2 -3
- package/lib/cloudflare/dispatch-namespace.d.ts.map +1 -1
- package/lib/cloudflare/dispatch-namespace.js +3 -3
- package/lib/cloudflare/dispatch-namespace.js.map +1 -1
- package/lib/cloudflare/dns-records.d.ts +1 -2
- package/lib/cloudflare/dns-records.d.ts.map +1 -1
- package/lib/cloudflare/dns-records.js +4 -4
- package/lib/cloudflare/dns-records.js.map +1 -1
- package/lib/cloudflare/email-address.d.ts +1 -2
- package/lib/cloudflare/email-address.d.ts.map +1 -1
- package/lib/cloudflare/email-address.js +6 -6
- package/lib/cloudflare/email-address.js.map +1 -1
- package/lib/cloudflare/email-catch-all.d.ts +1 -2
- package/lib/cloudflare/email-catch-all.d.ts.map +1 -1
- package/lib/cloudflare/email-catch-all.js +4 -4
- package/lib/cloudflare/email-catch-all.js.map +1 -1
- package/lib/cloudflare/email-routing.d.ts +1 -2
- package/lib/cloudflare/email-routing.d.ts.map +1 -1
- package/lib/cloudflare/email-routing.js +4 -4
- package/lib/cloudflare/email-routing.js.map +1 -1
- package/lib/cloudflare/email-rule.d.ts +1 -2
- package/lib/cloudflare/email-rule.d.ts.map +1 -1
- package/lib/cloudflare/email-rule.js +4 -4
- package/lib/cloudflare/email-rule.js.map +1 -1
- package/lib/cloudflare/hyperdrive.d.ts +1 -2
- package/lib/cloudflare/hyperdrive.d.ts.map +1 -1
- package/lib/cloudflare/hyperdrive.js +4 -4
- package/lib/cloudflare/hyperdrive.js.map +1 -1
- package/lib/cloudflare/index.d.ts +1 -0
- package/lib/cloudflare/index.d.ts.map +1 -1
- package/lib/cloudflare/index.js +1 -0
- package/lib/cloudflare/index.js.map +1 -1
- package/lib/cloudflare/kv-namespace.d.ts +2 -3
- package/lib/cloudflare/kv-namespace.d.ts.map +1 -1
- package/lib/cloudflare/kv-namespace.js +5 -5
- package/lib/cloudflare/kv-namespace.js.map +1 -1
- package/lib/cloudflare/miniflare/delete.js +1 -1
- package/lib/cloudflare/miniflare/delete.js.map +1 -1
- package/lib/cloudflare/miniflare/miniflare-worker-proxy.d.ts.map +1 -1
- package/lib/cloudflare/miniflare/miniflare-worker-proxy.js +2 -7
- package/lib/cloudflare/miniflare/miniflare-worker-proxy.js.map +1 -1
- package/lib/cloudflare/miniflare/remote-binding-proxy.d.ts.map +1 -1
- package/lib/cloudflare/miniflare/remote-binding-proxy.js +15 -4
- package/lib/cloudflare/miniflare/remote-binding-proxy.js.map +1 -1
- package/lib/cloudflare/next.js.map +1 -1
- package/lib/cloudflare/nuxt/nuxt.d.ts.map +1 -1
- package/lib/cloudflare/nuxt/nuxt.js +3 -3
- package/lib/cloudflare/nuxt/nuxt.js.map +1 -1
- package/lib/cloudflare/permission-groups.d.ts +1 -2
- package/lib/cloudflare/permission-groups.d.ts.map +1 -1
- package/lib/cloudflare/permission-groups.js +1 -1
- package/lib/cloudflare/permission-groups.js.map +1 -1
- package/lib/cloudflare/pipeline.d.ts +2 -3
- package/lib/cloudflare/pipeline.d.ts.map +1 -1
- package/lib/cloudflare/pipeline.js +5 -5
- package/lib/cloudflare/pipeline.js.map +1 -1
- package/lib/cloudflare/queue-consumer.d.ts +1 -2
- package/lib/cloudflare/queue-consumer.d.ts.map +1 -1
- package/lib/cloudflare/queue-consumer.js +4 -4
- package/lib/cloudflare/queue-consumer.js.map +1 -1
- package/lib/cloudflare/queue.d.ts +1 -2
- package/lib/cloudflare/queue.d.ts.map +1 -1
- package/lib/cloudflare/queue.js +4 -4
- package/lib/cloudflare/queue.js.map +1 -1
- package/lib/cloudflare/react-router/plugin.d.ts.map +1 -1
- package/lib/cloudflare/react-router/plugin.js +13 -0
- package/lib/cloudflare/react-router/plugin.js.map +1 -1
- package/lib/cloudflare/redirect-rule.d.ts +1 -2
- package/lib/cloudflare/redirect-rule.d.ts.map +1 -1
- package/lib/cloudflare/redirect-rule.js +4 -4
- package/lib/cloudflare/redirect-rule.js.map +1 -1
- package/lib/cloudflare/route.d.ts +1 -2
- package/lib/cloudflare/route.d.ts.map +1 -1
- package/lib/cloudflare/route.js +4 -4
- package/lib/cloudflare/route.js.map +1 -1
- package/lib/cloudflare/ruleset.d.ts +1 -2
- package/lib/cloudflare/ruleset.d.ts.map +1 -1
- package/lib/cloudflare/ruleset.js +2 -2
- package/lib/cloudflare/ruleset.js.map +1 -1
- package/lib/cloudflare/secret.d.ts +2 -3
- package/lib/cloudflare/secret.d.ts.map +1 -1
- package/lib/cloudflare/secret.js +3 -3
- package/lib/cloudflare/secret.js.map +1 -1
- package/lib/cloudflare/secrets-store.d.ts +2 -3
- package/lib/cloudflare/secrets-store.d.ts.map +1 -1
- package/lib/cloudflare/secrets-store.js +3 -3
- package/lib/cloudflare/secrets-store.js.map +1 -1
- package/lib/cloudflare/tunnel.d.ts +2 -3
- package/lib/cloudflare/tunnel.d.ts.map +1 -1
- package/lib/cloudflare/tunnel.js +3 -3
- package/lib/cloudflare/tunnel.js.map +1 -1
- package/lib/cloudflare/user.d.ts +3 -2
- package/lib/cloudflare/user.d.ts.map +1 -1
- package/lib/cloudflare/user.js +7 -5
- package/lib/cloudflare/user.js.map +1 -1
- package/lib/cloudflare/vectorize-index.d.ts +2 -3
- package/lib/cloudflare/vectorize-index.d.ts.map +1 -1
- package/lib/cloudflare/vectorize-index.js +6 -6
- package/lib/cloudflare/vectorize-index.js.map +1 -1
- package/lib/cloudflare/vectorize-metadata-index.d.ts +2 -3
- package/lib/cloudflare/vectorize-metadata-index.d.ts.map +1 -1
- package/lib/cloudflare/vectorize-metadata-index.js +4 -4
- package/lib/cloudflare/vectorize-metadata-index.js.map +1 -1
- package/lib/cloudflare/vite/vite.d.ts.map +1 -1
- package/lib/cloudflare/vite/vite.js +3 -3
- package/lib/cloudflare/vite/vite.js.map +1 -1
- package/lib/cloudflare/website.d.ts +7 -1
- package/lib/cloudflare/website.d.ts.map +1 -1
- package/lib/cloudflare/website.js +20 -2
- package/lib/cloudflare/website.js.map +1 -1
- package/lib/cloudflare/worker-assets.d.ts +1 -29
- package/lib/cloudflare/worker-assets.d.ts.map +1 -1
- package/lib/cloudflare/worker-assets.js +9 -42
- package/lib/cloudflare/worker-assets.js.map +1 -1
- package/lib/cloudflare/worker-stub.d.ts +2 -3
- package/lib/cloudflare/worker-stub.d.ts.map +1 -1
- package/lib/cloudflare/worker-stub.js +3 -3
- package/lib/cloudflare/worker-stub.js.map +1 -1
- package/lib/cloudflare/worker-subdomain.d.ts +4 -3
- package/lib/cloudflare/worker-subdomain.d.ts.map +1 -1
- package/lib/cloudflare/worker-subdomain.js +5 -5
- package/lib/cloudflare/worker-subdomain.js.map +1 -1
- package/lib/cloudflare/worker.d.ts +3 -4
- package/lib/cloudflare/worker.d.ts.map +1 -1
- package/lib/cloudflare/worker.js +6 -5
- package/lib/cloudflare/worker.js.map +1 -1
- package/lib/cloudflare/wrangler.json.d.ts +27 -8
- package/lib/cloudflare/wrangler.json.d.ts.map +1 -1
- package/lib/cloudflare/wrangler.json.js +3 -1
- package/lib/cloudflare/wrangler.json.js.map +1 -1
- package/lib/cloudflare/zone.d.ts +1 -2
- package/lib/cloudflare/zone.d.ts.map +1 -1
- package/lib/cloudflare/zone.js +2 -2
- package/lib/cloudflare/zone.js.map +1 -1
- package/lib/context.d.ts +8 -8
- package/lib/context.d.ts.map +1 -1
- package/lib/context.js.map +1 -1
- package/lib/destroy.d.ts +1 -1
- package/lib/destroy.d.ts.map +1 -1
- package/lib/destroy.js.map +1 -1
- package/lib/dns/import-dns.d.ts +1 -2
- package/lib/dns/import-dns.d.ts.map +1 -1
- package/lib/dns/import-dns.js +2 -2
- package/lib/dns/import-dns.js.map +1 -1
- package/lib/docker/container.d.ts +1 -2
- package/lib/docker/container.d.ts.map +1 -1
- package/lib/docker/container.js +2 -3
- package/lib/docker/container.js.map +1 -1
- package/lib/docker/image.d.ts +1 -2
- package/lib/docker/image.d.ts.map +1 -1
- package/lib/docker/image.js +9 -9
- package/lib/docker/image.js.map +1 -1
- package/lib/docker/network.d.ts +1 -2
- package/lib/docker/network.d.ts.map +1 -1
- package/lib/docker/network.js +2 -3
- package/lib/docker/network.js.map +1 -1
- package/lib/docker/remote-image.d.ts +1 -2
- package/lib/docker/remote-image.d.ts.map +1 -1
- package/lib/docker/remote-image.js +2 -3
- package/lib/docker/remote-image.js.map +1 -1
- package/lib/docker/volume.d.ts +1 -2
- package/lib/docker/volume.d.ts.map +1 -1
- package/lib/docker/volume.js +2 -3
- package/lib/docker/volume.js.map +1 -1
- package/lib/esbuild/bundle.d.ts +1 -2
- package/lib/esbuild/bundle.d.ts.map +1 -1
- package/lib/esbuild/bundle.js +4 -4
- package/lib/esbuild/bundle.js.map +1 -1
- package/lib/fs/copy-file.d.ts +1 -2
- package/lib/fs/copy-file.d.ts.map +1 -1
- package/lib/fs/copy-file.js +2 -2
- package/lib/fs/copy-file.js.map +1 -1
- package/lib/fs/file.d.ts +1 -2
- package/lib/fs/file.d.ts.map +1 -1
- package/lib/fs/file.js +2 -2
- package/lib/fs/file.js.map +1 -1
- package/lib/fs/folder.d.ts +1 -2
- package/lib/fs/folder.d.ts.map +1 -1
- package/lib/fs/folder.js +2 -2
- package/lib/fs/folder.js.map +1 -1
- package/lib/github/comment.d.ts +1 -2
- package/lib/github/comment.d.ts.map +1 -1
- package/lib/github/comment.js +4 -4
- package/lib/github/comment.js.map +1 -1
- package/lib/github/repository-environment.d.ts +1 -2
- package/lib/github/repository-environment.d.ts.map +1 -1
- package/lib/github/repository-environment.js +2 -2
- package/lib/github/repository-environment.js.map +1 -1
- package/lib/github/repository-webhook.d.ts +1 -2
- package/lib/github/repository-webhook.d.ts.map +1 -1
- package/lib/github/repository-webhook.js +2 -2
- package/lib/github/repository-webhook.js.map +1 -1
- package/lib/github/secret.d.ts +1 -2
- package/lib/github/secret.d.ts.map +1 -1
- package/lib/github/secret.js +2 -2
- package/lib/github/secret.js.map +1 -1
- package/lib/llms.cloudflare.txt +2 -2
- package/lib/neon/api/client.gen.d.ts +13 -0
- package/lib/neon/api/client.gen.d.ts.map +1 -0
- package/lib/neon/api/client.gen.js +7 -0
- package/lib/neon/api/client.gen.js.map +1 -0
- package/lib/neon/api/sdk.gen.d.ts +880 -0
- package/lib/neon/api/sdk.gen.d.ts.map +1 -0
- package/lib/neon/api/sdk.gen.js +1527 -0
- package/lib/neon/api/sdk.gen.js.map +1 -0
- package/lib/neon/api/types.gen.d.ts +7250 -0
- package/lib/neon/api/types.gen.d.ts.map +1 -0
- package/lib/neon/api/types.gen.js +2 -0
- package/lib/neon/api/types.gen.js.map +1 -0
- package/lib/neon/api.d.ts +14 -49
- package/lib/neon/api.d.ts.map +1 -1
- package/lib/neon/api.js +36 -114
- package/lib/neon/api.js.map +1 -1
- package/lib/neon/branch.d.ts +157 -0
- package/lib/neon/branch.d.ts.map +1 -0
- package/lib/neon/branch.js +112 -0
- package/lib/neon/branch.js.map +1 -0
- package/lib/neon/index.d.ts +1 -1
- package/lib/neon/index.d.ts.map +1 -1
- package/lib/neon/index.js +1 -1
- package/lib/neon/index.js.map +1 -1
- package/lib/neon/project.d.ts +49 -243
- package/lib/neon/project.d.ts.map +1 -1
- package/lib/neon/project.js +90 -269
- package/lib/neon/project.js.map +1 -1
- package/lib/neon/utils.d.ts +49 -0
- package/lib/neon/utils.d.ts.map +1 -0
- package/lib/neon/utils.js +44 -0
- package/lib/neon/utils.js.map +1 -0
- package/lib/os/exec.d.ts +1 -2
- package/lib/os/exec.d.ts.map +1 -1
- package/lib/os/exec.js +2 -2
- package/lib/os/exec.js.map +1 -1
- package/lib/planetscale/api/client.gen.d.ts +12 -1749
- package/lib/planetscale/api/client.gen.d.ts.map +1 -1
- package/lib/planetscale/api/client.gen.js +6 -2400
- package/lib/planetscale/api/client.gen.js.map +1 -1
- package/lib/planetscale/api/sdk.gen.d.ts +1582 -0
- package/lib/planetscale/api/sdk.gen.d.ts.map +1 -0
- package/lib/planetscale/api/sdk.gen.js +2219 -0
- package/lib/planetscale/api/sdk.gen.js.map +1 -0
- package/lib/planetscale/api/types.gen.d.ts +594 -449
- package/lib/planetscale/api/types.gen.d.ts.map +1 -1
- package/lib/planetscale/api.d.ts +43 -0
- package/lib/planetscale/api.d.ts.map +1 -0
- package/lib/planetscale/api.js +53 -0
- package/lib/planetscale/api.js.map +1 -0
- package/lib/planetscale/branch.d.ts +2 -3
- package/lib/planetscale/branch.d.ts.map +1 -1
- package/lib/planetscale/branch.js +17 -15
- package/lib/planetscale/branch.js.map +1 -1
- package/lib/planetscale/database.d.ts +2 -3
- package/lib/planetscale/database.d.ts.map +1 -1
- package/lib/planetscale/database.js +34 -34
- package/lib/planetscale/database.js.map +1 -1
- package/lib/planetscale/index.d.ts +1 -1
- package/lib/planetscale/index.d.ts.map +1 -1
- package/lib/planetscale/index.js +1 -1
- package/lib/planetscale/index.js.map +1 -1
- package/lib/planetscale/password.d.ts +2 -3
- package/lib/planetscale/password.d.ts.map +1 -1
- package/lib/planetscale/password.js +11 -11
- package/lib/planetscale/password.js.map +1 -1
- package/lib/planetscale/role.d.ts +2 -3
- package/lib/planetscale/role.d.ts.map +1 -1
- package/lib/planetscale/role.js +18 -18
- package/lib/planetscale/role.js.map +1 -1
- package/lib/planetscale/utils.d.ts +1 -1
- package/lib/planetscale/utils.d.ts.map +1 -1
- package/lib/planetscale/utils.js +17 -33
- package/lib/planetscale/utils.js.map +1 -1
- package/lib/random/random-string.d.ts +1 -2
- package/lib/random/random-string.d.ts.map +1 -1
- package/lib/random/random-string.js +3 -3
- package/lib/random/random-string.js.map +1 -1
- package/lib/resource.d.ts +4 -1
- package/lib/resource.d.ts.map +1 -1
- package/lib/resource.js.map +1 -1
- package/lib/sentry/client-key.d.ts +1 -2
- package/lib/sentry/client-key.d.ts.map +1 -1
- package/lib/sentry/client-key.js +2 -2
- package/lib/sentry/client-key.js.map +1 -1
- package/lib/sentry/project.d.ts +1 -2
- package/lib/sentry/project.d.ts.map +1 -1
- package/lib/sentry/project.js +2 -2
- package/lib/sentry/project.js.map +1 -1
- package/lib/sentry/team.d.ts +1 -2
- package/lib/sentry/team.d.ts.map +1 -1
- package/lib/sentry/team.js +2 -2
- package/lib/sentry/team.js.map +1 -1
- package/lib/serde.d.ts +3 -0
- package/lib/serde.d.ts.map +1 -1
- package/lib/serde.js +40 -0
- package/lib/serde.js.map +1 -1
- package/lib/state/r2-rest-state-store.d.ts +1 -0
- package/lib/state/r2-rest-state-store.d.ts.map +1 -1
- package/lib/state/r2-rest-state-store.js +15 -34
- package/lib/state/r2-rest-state-store.js.map +1 -1
- package/lib/stripe/card.d.ts +1 -2
- package/lib/stripe/card.d.ts.map +1 -1
- package/lib/stripe/card.js +2 -2
- package/lib/stripe/card.js.map +1 -1
- package/lib/stripe/coupon.d.ts +1 -2
- package/lib/stripe/coupon.d.ts.map +1 -1
- package/lib/stripe/coupon.js +2 -2
- package/lib/stripe/coupon.js.map +1 -1
- package/lib/stripe/customer.d.ts +1 -2
- package/lib/stripe/customer.d.ts.map +1 -1
- package/lib/stripe/customer.js +2 -2
- package/lib/stripe/customer.js.map +1 -1
- package/lib/stripe/entitlements-feature.d.ts +1 -2
- package/lib/stripe/entitlements-feature.d.ts.map +1 -1
- package/lib/stripe/entitlements-feature.js +2 -2
- package/lib/stripe/entitlements-feature.js.map +1 -1
- package/lib/stripe/file.d.ts +1 -2
- package/lib/stripe/file.d.ts.map +1 -1
- package/lib/stripe/file.js +2 -2
- package/lib/stripe/file.js.map +1 -1
- package/lib/stripe/meter.d.ts +1 -2
- package/lib/stripe/meter.d.ts.map +1 -1
- package/lib/stripe/meter.js +1 -1
- package/lib/stripe/meter.js.map +1 -1
- package/lib/stripe/portal-configuration.d.ts +1 -2
- package/lib/stripe/portal-configuration.d.ts.map +1 -1
- package/lib/stripe/portal-configuration.js +2 -2
- package/lib/stripe/portal-configuration.js.map +1 -1
- package/lib/stripe/price.d.ts +1 -2
- package/lib/stripe/price.d.ts.map +1 -1
- package/lib/stripe/price.js +2 -2
- package/lib/stripe/price.js.map +1 -1
- package/lib/stripe/product-feature.d.ts +1 -2
- package/lib/stripe/product-feature.d.ts.map +1 -1
- package/lib/stripe/product-feature.js +2 -2
- package/lib/stripe/product-feature.js.map +1 -1
- package/lib/stripe/product.d.ts +1 -2
- package/lib/stripe/product.d.ts.map +1 -1
- package/lib/stripe/product.js +2 -2
- package/lib/stripe/product.js.map +1 -1
- package/lib/stripe/promotion-code.d.ts +1 -2
- package/lib/stripe/promotion-code.d.ts.map +1 -1
- package/lib/stripe/promotion-code.js +2 -2
- package/lib/stripe/promotion-code.js.map +1 -1
- package/lib/stripe/shipping-rate.d.ts +1 -2
- package/lib/stripe/shipping-rate.d.ts.map +1 -1
- package/lib/stripe/shipping-rate.js +2 -2
- package/lib/stripe/shipping-rate.js.map +1 -1
- package/lib/stripe/tax-rate.d.ts +1 -2
- package/lib/stripe/tax-rate.d.ts.map +1 -1
- package/lib/stripe/tax-rate.js +2 -2
- package/lib/stripe/tax-rate.js.map +1 -1
- package/lib/stripe/webhook.d.ts +16 -3
- package/lib/stripe/webhook.d.ts.map +1 -1
- package/lib/stripe/webhook.js +2 -2
- package/lib/stripe/webhook.js.map +1 -1
- package/lib/test/bun.d.ts.map +1 -1
- package/lib/test/bun.js +1 -0
- package/lib/test/bun.js.map +1 -1
- package/lib/test/options.d.ts +5 -0
- package/lib/test/options.d.ts.map +1 -1
- package/lib/test/vitest.d.ts.map +1 -1
- package/lib/test/vitest.js +1 -0
- package/lib/test/vitest.js.map +1 -1
- package/lib/upstash/redis.d.ts +1 -2
- package/lib/upstash/redis.d.ts.map +1 -1
- package/lib/upstash/redis.js.map +1 -1
- package/lib/util/api/client/client.gen.d.ts +3 -0
- package/lib/util/api/client/client.gen.d.ts.map +1 -0
- package/lib/util/api/client/client.gen.js +205 -0
- package/lib/util/api/client/client.gen.js.map +1 -0
- package/lib/util/api/client/index.d.ts +8 -0
- package/lib/util/api/client/index.d.ts.map +1 -0
- package/lib/util/api/client/index.js +6 -0
- package/lib/util/api/client/index.js.map +1 -0
- package/lib/util/api/client/types.gen.d.ts +125 -0
- package/lib/util/api/client/types.gen.d.ts.map +1 -0
- package/lib/util/api/client/types.gen.js +2 -0
- package/lib/util/api/client/types.gen.js.map +1 -0
- package/lib/util/api/client/utils.gen.d.ts +34 -0
- package/lib/util/api/client/utils.gen.d.ts.map +1 -0
- package/lib/util/api/client/utils.gen.js +231 -0
- package/lib/util/api/client/utils.gen.js.map +1 -0
- package/lib/util/api/core/auth.gen.d.ts +19 -0
- package/lib/util/api/core/auth.gen.d.ts.map +1 -0
- package/lib/util/api/core/auth.gen.js +15 -0
- package/lib/util/api/core/auth.gen.js.map +1 -0
- package/lib/util/api/core/bodySerializer.gen.d.ts +18 -0
- package/lib/util/api/core/bodySerializer.gen.d.ts.map +1 -0
- package/lib/util/api/core/bodySerializer.gen.js +58 -0
- package/lib/util/api/core/bodySerializer.gen.js.map +1 -0
- package/lib/util/api/core/params.gen.d.ts +34 -0
- package/lib/util/api/core/params.gen.d.ts.map +1 -0
- package/lib/util/api/core/params.gen.js +89 -0
- package/lib/util/api/core/params.gen.js.map +1 -0
- package/lib/util/api/core/pathSerializer.gen.d.ts +34 -0
- package/lib/util/api/core/pathSerializer.gen.d.ts.map +1 -0
- package/lib/util/api/core/pathSerializer.gen.js +115 -0
- package/lib/util/api/core/pathSerializer.gen.js.map +1 -0
- package/lib/util/api/core/serverSentEvents.gen.d.ts +72 -0
- package/lib/util/api/core/serverSentEvents.gen.d.ts.map +1 -0
- package/lib/util/api/core/serverSentEvents.gen.js +136 -0
- package/lib/util/api/core/serverSentEvents.gen.js.map +1 -0
- package/lib/util/api/core/types.gen.d.ts +79 -0
- package/lib/util/api/core/types.gen.d.ts.map +1 -0
- package/lib/util/api/core/types.gen.js +2 -0
- package/lib/util/api/core/types.gen.js.map +1 -0
- package/lib/util/api/core/utils.gen.d.ts +20 -0
- package/lib/util/api/core/utils.gen.d.ts.map +1 -0
- package/lib/util/api/core/utils.gen.js +88 -0
- package/lib/util/api/core/utils.gen.js.map +1 -0
- package/lib/util/http.d.ts +7 -2
- package/lib/util/http.d.ts.map +1 -1
- package/lib/util/http.js +29 -11
- package/lib/util/http.js.map +1 -1
- package/lib/util/lock.d.ts +20 -0
- package/lib/util/lock.d.ts.map +1 -0
- package/lib/util/lock.js +45 -0
- package/lib/util/lock.js.map +1 -0
- package/lib/util/memoize.d.ts +6 -0
- package/lib/util/memoize.d.ts.map +1 -1
- package/lib/util/memoize.js +23 -0
- package/lib/util/memoize.js.map +1 -1
- package/lib/util/oauth-client.d.ts +71 -0
- package/lib/util/oauth-client.d.ts.map +1 -0
- package/lib/util/oauth-client.js +188 -0
- package/lib/util/oauth-client.js.map +1 -0
- package/lib/util/poll.d.ts +33 -0
- package/lib/util/poll.d.ts.map +1 -0
- package/lib/util/poll.js +19 -0
- package/lib/util/poll.js.map +1 -0
- package/lib/vercel/project-domain.d.ts +1 -2
- package/lib/vercel/project-domain.d.ts.map +1 -1
- package/lib/vercel/project-domain.js.map +1 -1
- package/lib/vercel/project.d.ts +1 -2
- package/lib/vercel/project.d.ts.map +1 -1
- package/lib/vercel/project.js +2 -2
- package/lib/vercel/project.js.map +1 -1
- package/package.json +5 -1
- package/src/apply.ts +32 -29
- package/src/auth.ts +253 -0
- package/src/aws/bucket.ts +3 -3
- package/src/aws/control/properties.ts +554 -39
- package/src/aws/control/resource.ts +62 -6
- package/src/aws/control/types.ts +85281 -84914
- package/src/aws/control/update-types.ts +12917 -0
- package/src/aws/ec2/internet-gateway-attachment.ts +5 -6
- package/src/aws/ec2/internet-gateway.ts +3 -5
- package/src/aws/ec2/nat-gateway.ts +3 -5
- package/src/aws/ec2/route-table-association.ts +3 -5
- package/src/aws/ec2/route-table.ts +3 -5
- package/src/aws/ec2/route.ts +3 -3
- package/src/aws/ec2/security-group-rule.ts +3 -5
- package/src/aws/ec2/security-group.ts +3 -5
- package/src/aws/ec2/subnet.ts +3 -3
- package/src/aws/ec2/vpc.ts +3 -3
- package/src/aws/function.ts +3 -3
- package/src/aws/oidc/oidc-provider.ts +3 -5
- package/src/aws/policy-attachment.ts +2 -4
- package/src/aws/policy.ts +5 -5
- package/src/aws/queue.ts +5 -5
- package/src/aws/role.ts +3 -3
- package/src/aws/ses.ts +3 -3
- package/src/aws/ssm-parameter.ts +3 -3
- package/src/aws/table.ts +3 -3
- package/src/cloudflare/account-api-token.ts +3 -4
- package/src/cloudflare/ai-gateway.ts +3 -5
- package/src/cloudflare/api-gateway-operation.ts +3 -4
- package/src/cloudflare/api-schema.ts +25 -26
- package/src/cloudflare/api-shield.ts +3 -4
- package/src/cloudflare/api.ts +121 -57
- package/src/cloudflare/assets.ts +95 -136
- package/src/cloudflare/astro/astro.ts +8 -3
- package/src/cloudflare/auth.ts +160 -95
- package/src/cloudflare/bound.ts +1 -1
- package/src/cloudflare/bucket-object.ts +117 -0
- package/src/cloudflare/bucket.ts +452 -55
- package/src/cloudflare/bundle/plugin-wasm.ts +5 -5
- package/src/cloudflare/certificate-pack.ts +5 -6
- package/src/cloudflare/compatibility-date.gen.ts +1 -1
- package/src/cloudflare/container.ts +9 -11
- package/src/cloudflare/custom-domain.ts +3 -5
- package/src/cloudflare/d1-database.ts +33 -34
- package/src/cloudflare/dispatch-namespace.ts +5 -6
- package/src/cloudflare/dns-records.ts +5 -5
- package/src/cloudflare/email-address.ts +7 -7
- package/src/cloudflare/email-catch-all.ts +6 -6
- package/src/cloudflare/email-routing.ts +5 -5
- package/src/cloudflare/email-rule.ts +5 -5
- package/src/cloudflare/hyperdrive.ts +35 -36
- package/src/cloudflare/index.ts +1 -0
- package/src/cloudflare/kv-namespace.ts +31 -32
- package/src/cloudflare/miniflare/delete.ts +1 -1
- package/src/cloudflare/miniflare/miniflare-worker-proxy.ts +2 -7
- package/src/cloudflare/miniflare/remote-binding-proxy.ts +16 -4
- package/src/cloudflare/next.ts +2 -2
- package/src/cloudflare/nuxt/nuxt.ts +8 -3
- package/src/cloudflare/permission-groups.ts +4 -6
- package/src/cloudflare/pipeline.ts +29 -30
- package/src/cloudflare/queue-consumer.ts +5 -7
- package/src/cloudflare/queue.ts +42 -43
- package/src/cloudflare/react-router/plugin.ts +20 -0
- package/src/cloudflare/redirect-rule.ts +5 -5
- package/src/cloudflare/route.ts +5 -5
- package/src/cloudflare/ruleset.ts +3 -4
- package/src/cloudflare/secret.ts +35 -36
- package/src/cloudflare/secrets-store.ts +5 -8
- package/src/cloudflare/tunnel.ts +5 -7
- package/src/cloudflare/user.ts +12 -9
- package/src/cloudflare/vectorize-index.ts +8 -12
- package/src/cloudflare/vectorize-metadata-index.ts +6 -8
- package/src/cloudflare/vite/vite.ts +8 -3
- package/src/cloudflare/website.ts +29 -3
- package/src/cloudflare/worker-assets.ts +10 -56
- package/src/cloudflare/worker-stub.ts +5 -5
- package/src/cloudflare/worker-subdomain.ts +6 -7
- package/src/cloudflare/worker.ts +91 -91
- package/src/cloudflare/wrangler.json.ts +32 -17
- package/src/cloudflare/zone.ts +3 -3
- package/src/context.ts +9 -7
- package/src/destroy.ts +2 -2
- package/src/dns/import-dns.ts +3 -5
- package/src/docker/container.ts +3 -6
- package/src/docker/image.ts +13 -13
- package/src/docker/network.ts +3 -4
- package/src/docker/remote-image.ts +3 -6
- package/src/docker/volume.ts +3 -4
- package/src/esbuild/bundle.ts +10 -8
- package/src/fs/copy-file.ts +3 -3
- package/src/fs/file.ts +3 -3
- package/src/fs/folder.ts +3 -3
- package/src/github/comment.ts +5 -7
- package/src/github/repository-environment.ts +3 -5
- package/src/github/repository-webhook.ts +3 -5
- package/src/github/secret.ts +3 -5
- package/src/llms.cloudflare.txt +2 -2
- package/src/neon/api/client.gen.ts +28 -0
- package/src/neon/api/sdk.gen.ts +2596 -0
- package/src/neon/api/types.gen.ts +8287 -0
- package/src/neon/api.ts +51 -147
- package/src/neon/branch.ts +279 -0
- package/src/neon/index.ts +1 -1
- package/src/neon/project.ts +136 -721
- package/src/neon/utils.ts +105 -0
- package/src/os/exec.ts +3 -3
- package/src/planetscale/api/client.gen.ts +28 -2882
- package/src/planetscale/api/sdk.gen.ts +3336 -0
- package/src/planetscale/api/types.gen.ts +778 -450
- package/src/planetscale/api.ts +101 -0
- package/src/planetscale/branch.ts +20 -19
- package/src/planetscale/database.ts +69 -70
- package/src/planetscale/index.ts +1 -1
- package/src/planetscale/password.ts +18 -22
- package/src/planetscale/role.ts +21 -21
- package/src/planetscale/utils.ts +20 -74
- package/src/random/random-string.ts +4 -4
- package/src/resource.ts +6 -2
- package/src/sentry/client-key.ts +3 -5
- package/src/sentry/project.ts +3 -5
- package/src/sentry/team.ts +3 -3
- package/src/serde.ts +50 -0
- package/src/state/r2-rest-state-store.ts +15 -57
- package/src/stripe/card.ts +3 -3
- package/src/stripe/coupon.ts +3 -3
- package/src/stripe/customer.ts +3 -3
- package/src/stripe/entitlements-feature.ts +3 -5
- package/src/stripe/file.ts +3 -3
- package/src/stripe/meter.ts +3 -3
- package/src/stripe/portal-configuration.ts +3 -5
- package/src/stripe/price.ts +3 -3
- package/src/stripe/product-feature.ts +3 -5
- package/src/stripe/product.ts +3 -3
- package/src/stripe/promotion-code.ts +3 -5
- package/src/stripe/shipping-rate.ts +3 -5
- package/src/stripe/tax-rate.ts +3 -3
- package/src/stripe/webhook.ts +3 -5
- package/src/test/bun.ts +2 -1
- package/src/test/options.ts +6 -0
- package/src/test/vitest.ts +1 -0
- package/src/upstash/redis.ts +1 -3
- package/src/util/api/client/client.gen.ts +268 -0
- package/src/util/api/client/index.ts +25 -0
- package/src/util/api/client/types.gen.ts +268 -0
- package/src/util/api/client/utils.gen.ts +331 -0
- package/src/util/api/core/auth.gen.ts +42 -0
- package/src/util/api/core/bodySerializer.gen.ts +92 -0
- package/src/util/api/core/params.gen.ts +153 -0
- package/src/util/api/core/pathSerializer.gen.ts +181 -0
- package/src/util/api/core/serverSentEvents.gen.ts +264 -0
- package/src/util/api/core/types.gen.ts +118 -0
- package/src/util/api/core/utils.gen.ts +143 -0
- package/src/util/http.ts +38 -11
- package/src/util/lock.ts +48 -0
- package/src/util/memoize.ts +26 -0
- package/src/util/oauth-client.ts +238 -0
- package/src/util/poll.ts +55 -0
- package/src/vercel/project-domain.ts +1 -3
- package/src/vercel/project.ts +3 -3
- package/templates/rwsdk/.cursor/rules/alchemy_cloudflare.mdc +2 -2
- package/workers/cloudflare-state-store.js +8 -5619
- package/workers/dofs-state-store.js +2 -802
- package/workers/remote-binding-proxy.js +3 -39
- package/workers/remote-binding-proxy.ts +126 -35
- package/workers/tunnel-proxy.js +6 -73
- package/lib/cloudflare/asset-manifest.d.ts +0 -15
- package/lib/cloudflare/asset-manifest.d.ts.map +0 -1
- package/lib/cloudflare/asset-manifest.js +0 -1
- package/lib/cloudflare/asset-manifest.js.map +0 -1
- package/lib/cloudflare/oauth.d.ts +0 -22
- package/lib/cloudflare/oauth.d.ts.map +0 -1
- package/lib/cloudflare/oauth.js +0 -214
- package/lib/cloudflare/oauth.js.map +0 -1
- package/lib/neon/api-error.d.ts +0 -31
- package/lib/neon/api-error.d.ts.map +0 -1
- package/lib/neon/api-error.js +0 -73
- package/lib/neon/api-error.js.map +0 -1
- package/lib/planetscale/api/index.d.ts +0 -3
- package/lib/planetscale/api/index.d.ts.map +0 -1
- package/lib/planetscale/api/index.js +0 -4
- package/lib/planetscale/api/index.js.map +0 -1
- package/lib/util/neverthrow.d.ts +0 -16
- package/lib/util/neverthrow.d.ts.map +0 -1
- package/lib/util/neverthrow.js +0 -46
- package/lib/util/neverthrow.js.map +0 -1
- package/src/cloudflare/asset-manifest.ts +0 -16
- package/src/cloudflare/oauth.ts +0 -301
- package/src/neon/api-error.ts +0 -81
- package/src/planetscale/api/index.ts +0 -4
- package/src/util/neverthrow.ts +0 -64
package/lib/auth.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
profile: string;
|
|
3
|
+
provider: string;
|
|
4
|
+
}
|
|
5
|
+
export interface Profile {
|
|
6
|
+
[provider: string]: Provider;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace Profile {
|
|
9
|
+
const get: (name: string) => Promise<Profile | undefined>;
|
|
10
|
+
}
|
|
11
|
+
export interface Provider<Metadata extends Record<string, string> = Record<string, string>> {
|
|
12
|
+
metadata: Metadata;
|
|
13
|
+
method: "api-key" | "api-token" | "oauth";
|
|
14
|
+
scopes?: string[];
|
|
15
|
+
}
|
|
16
|
+
export declare namespace Provider {
|
|
17
|
+
const get: <Metadata extends Record<string, string> = Record<string, string>>(props: Props) => Promise<Provider<Metadata> | undefined>;
|
|
18
|
+
const getWithCredentials: <Metadata extends Record<string, string> = Record<string, string>>(props: Props) => Promise<{
|
|
19
|
+
provider: Provider<Metadata>;
|
|
20
|
+
credentials: Credentials;
|
|
21
|
+
}>;
|
|
22
|
+
const set: <Metadata extends Record<string, string> = Record<string, string>>(props: Props, provider: Provider<Metadata>) => Promise<void>;
|
|
23
|
+
const del: (props: Props) => Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
export type Credentials = Credentials.ApiKey | Credentials.ApiToken | Credentials.OAuth;
|
|
26
|
+
export declare namespace Credentials {
|
|
27
|
+
interface ApiKey {
|
|
28
|
+
type: "api-key";
|
|
29
|
+
apiKey: string;
|
|
30
|
+
email: string;
|
|
31
|
+
}
|
|
32
|
+
interface ApiToken {
|
|
33
|
+
type: "api-token";
|
|
34
|
+
apiToken: string;
|
|
35
|
+
}
|
|
36
|
+
interface OAuth {
|
|
37
|
+
type: "oauth";
|
|
38
|
+
access: string;
|
|
39
|
+
refresh: string;
|
|
40
|
+
expires: number;
|
|
41
|
+
scopes: string[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Gets the credentials file.
|
|
45
|
+
* @param props The profile and provider of the credentials.
|
|
46
|
+
*/
|
|
47
|
+
const get: (props: Props) => Promise<Credentials | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Sets the credentials file.
|
|
50
|
+
* @param props The profile and provider of the credentials.
|
|
51
|
+
* @param credentials The credentials to set.
|
|
52
|
+
*/
|
|
53
|
+
const set: (props: Props, credentials: Credentials) => Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Deletes the credentials file.
|
|
56
|
+
* @param props The profile and provider of the credentials.
|
|
57
|
+
*/
|
|
58
|
+
const del: (props: Props) => Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Fetches OAuth credentials for the given provider and profile, refreshing them if they are expired.
|
|
61
|
+
* @param props The properties of the credentials.
|
|
62
|
+
* @param refresh The function to refresh the credentials.
|
|
63
|
+
* @returns The refreshed credentials.
|
|
64
|
+
*/
|
|
65
|
+
const getRefreshed: (props: Props, refresh: (credentials: Credentials.OAuth) => Promise<Credentials.OAuth>) => Promise<Credentials>;
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if the given credentials are OAuth and expired.
|
|
68
|
+
*/
|
|
69
|
+
const isOAuthExpired: (credentials: Credentials, tolerance?: number) => credentials is Credentials.OAuth;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
72
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAcA,UAAU,KAA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UAAiB,MAAM;QACrB,IAAI,EAAE,SAAS,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE,WAAW,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;KAClB;IAED,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB;IAED;;;OAGG;IACI,MAAM,GAAG,GAAU,OAAO,KAAK,qCAIrC,CAAC;IAEF;;;;OAIG;IACI,MAAM,GAAG,GAAU,OAAO,KAAK,EAAE,aAAa,WAAW,kBAK/D,CAAC;IAEF;;;OAGG;IACI,MAAM,GAAG,GAAU,OAAO,KAAK,kBAErC,CAAC;IAyCF;;;;;OAKG;IACI,MAAM,YAAY,wCArCA,WAAW,CAAC,KAAK,KAAK,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,yBA0CxE,CAAC;IAEF;;OAEG;IACI,MAAM,cAAc,GACzB,aAAa,WAAW,EACxB,kBAAqB,KACpB,WAAW,IAAI,WAAW,CAAC,KAK7B,CAAC;CACH"}
|
package/lib/auth.js
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import os from "node:os";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { Lock } from "./util/lock.js";
|
|
5
|
+
import { singleFlight } from "./util/memoize.js";
|
|
6
|
+
var Path;
|
|
7
|
+
(function (Path) {
|
|
8
|
+
Path.rootDir = path.join(os.homedir(), ".alchemy");
|
|
9
|
+
Path.configFile = path.join(Path.rootDir, "config.json");
|
|
10
|
+
Path.credentialsDir = path.join(Path.rootDir, "credentials");
|
|
11
|
+
Path.credentialsFile = (provider, profile) => path.join(Path.credentialsDir, profile, `${provider}.json`);
|
|
12
|
+
})(Path || (Path = {}));
|
|
13
|
+
var Config;
|
|
14
|
+
(function (Config) {
|
|
15
|
+
Config.read = async () => {
|
|
16
|
+
const config = await FS.readJSON(Path.configFile);
|
|
17
|
+
return config ?? { version: 1, profiles: {} };
|
|
18
|
+
};
|
|
19
|
+
Config.patch = async (updater) => {
|
|
20
|
+
const config = await Config.read();
|
|
21
|
+
const updated = updater(config);
|
|
22
|
+
await FS.writeJSON(Path.configFile, updated);
|
|
23
|
+
};
|
|
24
|
+
})(Config || (Config = {}));
|
|
25
|
+
export var Profile;
|
|
26
|
+
(function (Profile) {
|
|
27
|
+
Profile.get = async (name) => {
|
|
28
|
+
const config = await Config.read();
|
|
29
|
+
return config.profiles[name];
|
|
30
|
+
};
|
|
31
|
+
})(Profile || (Profile = {}));
|
|
32
|
+
export var Provider;
|
|
33
|
+
(function (Provider) {
|
|
34
|
+
Provider.get = async (props) => {
|
|
35
|
+
const profile = await Profile.get(props.profile);
|
|
36
|
+
return profile?.[props.provider];
|
|
37
|
+
};
|
|
38
|
+
Provider.getWithCredentials = async (props) => {
|
|
39
|
+
const [provider, credentials] = await Promise.all([
|
|
40
|
+
Provider.get(props),
|
|
41
|
+
Credentials.get(props),
|
|
42
|
+
]);
|
|
43
|
+
const suffix = props.profile !== "default" ? ` -p ${props.profile}` : "";
|
|
44
|
+
if (!provider) {
|
|
45
|
+
throw new Error(`Provider "${props.provider}" not found in profile "${props.profile}". Please run \`alchemy configure${suffix}\` to configure this provider.`);
|
|
46
|
+
}
|
|
47
|
+
if (!credentials) {
|
|
48
|
+
throw new Error(`Credentials not found for provider "${props.provider}" and profile "${props.profile}". Please run \`alchemy login ${props.provider}${suffix}\` to login to this provider.`);
|
|
49
|
+
}
|
|
50
|
+
return { provider, credentials };
|
|
51
|
+
};
|
|
52
|
+
Provider.set = async (props, provider) => {
|
|
53
|
+
await Config.patch((config) => {
|
|
54
|
+
config.profiles[props.profile] ??= {};
|
|
55
|
+
config.profiles[props.profile][props.provider] = provider;
|
|
56
|
+
return config;
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
Provider.del = async (props) => {
|
|
60
|
+
await Config.patch((config) => {
|
|
61
|
+
if (config.profiles[props.profile]) {
|
|
62
|
+
delete config.profiles[props.profile][props.provider];
|
|
63
|
+
}
|
|
64
|
+
if (Object.keys(config.profiles[props.profile]).length === 0) {
|
|
65
|
+
delete config.profiles[props.profile];
|
|
66
|
+
}
|
|
67
|
+
return config;
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
})(Provider || (Provider = {}));
|
|
71
|
+
export var Credentials;
|
|
72
|
+
(function (Credentials) {
|
|
73
|
+
/**
|
|
74
|
+
* Gets the credentials file.
|
|
75
|
+
* @param props The profile and provider of the credentials.
|
|
76
|
+
*/
|
|
77
|
+
Credentials.get = async (props) => {
|
|
78
|
+
return await FS.readJSON(Path.credentialsFile(props.provider, props.profile));
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Sets the credentials file.
|
|
82
|
+
* @param props The profile and provider of the credentials.
|
|
83
|
+
* @param credentials The credentials to set.
|
|
84
|
+
*/
|
|
85
|
+
Credentials.set = async (props, credentials) => {
|
|
86
|
+
await FS.writeJSON(Path.credentialsFile(props.provider, props.profile), credentials);
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Deletes the credentials file.
|
|
90
|
+
* @param props The profile and provider of the credentials.
|
|
91
|
+
*/
|
|
92
|
+
Credentials.del = async (props) => {
|
|
93
|
+
await fs.unlink(Path.credentialsFile(props.provider, props.profile));
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Internal function to fetch and refresh credentials.
|
|
97
|
+
* Uses a lock so the `refresh` function is called by only one process at a time.
|
|
98
|
+
* If another process is refreshing the credentials, this function will wait for the
|
|
99
|
+
* other process to release the lock before calling itself recursively to retrieve the updated credentials.
|
|
100
|
+
*/
|
|
101
|
+
const getRefreshedInternal = async (props, refresh) => {
|
|
102
|
+
// 1. Get credentials
|
|
103
|
+
const credentials = await Credentials.get(props);
|
|
104
|
+
if (!credentials) {
|
|
105
|
+
throw new Error(`Credentials for provider "${props.provider}" not found in profile "${props.profile}"`);
|
|
106
|
+
}
|
|
107
|
+
// 2. Return credentials if they are not expired
|
|
108
|
+
if (!Credentials.isOAuthExpired(credentials)) {
|
|
109
|
+
return credentials;
|
|
110
|
+
}
|
|
111
|
+
// 3. Refresh credentials with lock for thread safety
|
|
112
|
+
const lock = new Lock(`${props.provider}-${props.profile}`);
|
|
113
|
+
const release = await lock.acquire();
|
|
114
|
+
if (release) {
|
|
115
|
+
try {
|
|
116
|
+
const refreshed = await refresh(credentials);
|
|
117
|
+
await Credentials.set(props, refreshed);
|
|
118
|
+
return refreshed;
|
|
119
|
+
}
|
|
120
|
+
finally {
|
|
121
|
+
await release();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
// 4. Another process has the lock, so wait for it to be released
|
|
125
|
+
await lock.wait();
|
|
126
|
+
// 5. Call this function again, bypassing the single flight mechanism to avoid a deadlock
|
|
127
|
+
return await getRefreshedInternal(props, refresh);
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Fetches OAuth credentials for the given provider and profile, refreshing them if they are expired.
|
|
131
|
+
* @param props The properties of the credentials.
|
|
132
|
+
* @param refresh The function to refresh the credentials.
|
|
133
|
+
* @returns The refreshed credentials.
|
|
134
|
+
*/
|
|
135
|
+
Credentials.getRefreshed = singleFlight(
|
|
136
|
+
// The locking mechanism works within the same process, but since the lock uses IO and polling,
|
|
137
|
+
// wrapping it with `singleFlight` makes it more efficient.
|
|
138
|
+
getRefreshedInternal, (props) => `${props.provider}-${props.profile}`);
|
|
139
|
+
/**
|
|
140
|
+
* Returns true if the given credentials are OAuth and expired.
|
|
141
|
+
*/
|
|
142
|
+
Credentials.isOAuthExpired = (credentials, tolerance = 1000 * 10) => {
|
|
143
|
+
return (credentials.type === "oauth" &&
|
|
144
|
+
credentials.expires < Date.now() + tolerance);
|
|
145
|
+
};
|
|
146
|
+
})(Credentials || (Credentials = {}));
|
|
147
|
+
var FS;
|
|
148
|
+
(function (FS) {
|
|
149
|
+
FS.readJSON = async (path) => {
|
|
150
|
+
try {
|
|
151
|
+
const data = await fs.readFile(path, "utf-8");
|
|
152
|
+
return JSON.parse(data);
|
|
153
|
+
}
|
|
154
|
+
catch {
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
FS.writeJSON = async (name, data) => {
|
|
159
|
+
await fs.mkdir(path.dirname(name), { recursive: true });
|
|
160
|
+
await fs.writeFile(name, JSON.stringify(data, null, 2), { mode: 0o600 });
|
|
161
|
+
};
|
|
162
|
+
})(FS || (FS = {}));
|
|
163
|
+
//# sourceMappingURL=auth.js.map
|
package/lib/auth.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,IAAU,IAAI,CAMb;AAND,WAAU,IAAI;IACC,YAAO,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,UAAU,CAAC,CAAC;IAC9C,eAAU,GAAG,IAAI,CAAC,IAAI,CAAC,KAAA,OAAO,EAAE,aAAa,CAAC,CAAC;IAC/C,mBAAc,GAAG,IAAI,CAAC,IAAI,CAAC,KAAA,OAAO,EAAE,aAAa,CAAC,CAAC;IACnD,oBAAe,GAAG,CAAC,QAAgB,EAAE,OAAe,EAAE,EAAE,CACnE,IAAI,CAAC,IAAI,CAAC,KAAA,cAAc,EAAE,OAAO,EAAE,GAAG,QAAQ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B,SAAS,GAAG,IAAI,GAAG,EAAE,EACa,EAAE;QACpC,OAAO,CACL,WAAW,CAAC,IAAI,KAAK,OAAO;YAC5B,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAC7C,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,EAlHgB,WAAW,KAAX,WAAW,QAkH3B;AAED,IAAU,EAAE,CAcX;AAdD,WAAU,EAAE;IACG,WAAQ,GAAG,KAAK,EAAK,IAAY,EAA0B,EAAE;QACxE,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAM,CAAC;QAC/B,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC,CAAC;IAEW,YAAS,GAAG,KAAK,EAAK,IAAY,EAAE,IAAO,EAAE,EAAE;QAC1D,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACxD,MAAM,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3E,CAAC,CAAC;AACJ,CAAC,EAdS,EAAE,KAAF,EAAE,QAcX"}
|
package/lib/aws/bucket.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Context } from "../context.ts";
|
|
2
|
-
import { Resource } from "../resource.ts";
|
|
3
2
|
/**
|
|
4
3
|
* Properties for creating or updating an S3 bucket
|
|
5
4
|
*/
|
|
@@ -20,7 +19,7 @@ export interface BucketProps {
|
|
|
20
19
|
/**
|
|
21
20
|
* Output returned after S3 bucket creation/update
|
|
22
21
|
*/
|
|
23
|
-
export interface Bucket extends
|
|
22
|
+
export interface Bucket extends BucketProps {
|
|
24
23
|
/**
|
|
25
24
|
* The ARN (Amazon Resource Name) of the bucket
|
|
26
25
|
* Format: arn:aws:s3:::bucket-name
|
|
@@ -107,5 +106,15 @@ export interface Bucket extends Resource<"s3::Bucket">, BucketProps {
|
|
|
107
106
|
* }
|
|
108
107
|
* });
|
|
109
108
|
*/
|
|
110
|
-
export declare const Bucket: (((this: any, id: string, props?: {}) => never) & (new (_: never) => never)) | ((this: Context<Bucket>, id: string, props: BucketProps) => Promise<
|
|
109
|
+
export declare const Bucket: (((this: any, id: string, props?: {}) => never) & (new (_: never) => never)) | ((this: Context<Bucket>, id: string, props: BucketProps) => Promise<{
|
|
110
|
+
tags?: Record<string, string> | undefined;
|
|
111
|
+
bucketName: string;
|
|
112
|
+
arn: string;
|
|
113
|
+
bucketDomainName: string;
|
|
114
|
+
bucketRegionalDomainName: string;
|
|
115
|
+
region: string;
|
|
116
|
+
hostedZoneId: string;
|
|
117
|
+
versioningEnabled: boolean;
|
|
118
|
+
acl: string | undefined;
|
|
119
|
+
}>);
|
|
111
120
|
//# sourceMappingURL=bucket.d.ts.map
|
package/lib/aws/bucket.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bucket.d.ts","sourceRoot":"","sources":["../../src/aws/bucket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"bucket.d.ts","sourceRoot":"","sources":["../../src/aws/bucket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAM7C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,MAAO,SAAQ,WAAW;IACzC;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,MAAM,yFAEK,OAAO,CAAC,MAAM,CAAC,MAAM,MAAM,SAAS,WAAW;;;;;;;;;;GAmItE,CAAC"}
|
package/lib/aws/bucket.js
CHANGED
|
@@ -113,7 +113,7 @@ export const Bucket = Resource("s3::Bucket", async function (id, props) {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
return
|
|
116
|
+
return {
|
|
117
117
|
bucketName: bucketName,
|
|
118
118
|
arn: `arn:aws:s3:::${bucketName}`,
|
|
119
119
|
bucketDomainName: `${bucketName}.s3.amazonaws.com`,
|
|
@@ -123,7 +123,7 @@ export const Bucket = Resource("s3::Bucket", async function (id, props) {
|
|
|
123
123
|
versioningEnabled: versioningResponse.Status === "Enabled",
|
|
124
124
|
acl: aclResponse.Grants?.[0]?.Permission?.toLowerCase(),
|
|
125
125
|
...(tags && { tags }),
|
|
126
|
-
}
|
|
126
|
+
};
|
|
127
127
|
});
|
|
128
128
|
/**
|
|
129
129
|
* Helper function to get S3 hosted zone IDs by region
|
package/lib/aws/bucket.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bucket.js","sourceRoot":"","sources":["../../src/aws/bucket.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAmFnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAC5B,YAAY,EACZ,KAAK,WAAkC,EAAU,EAAE,KAAkB;IACnE,MAAM,EACJ,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,EACvB,QAAQ,GACT,GAAG,MAAM,UAAU,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC,CAAC;IACjE,MAAM,MAAM,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEhC,MAAM,UAAU,GACd,KAAK,CAAC,UAAU;QAChB,IAAI,CAAC,MAAM,EAAE,UAAU;QACvB,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAEpC,IAAI,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,KAAK,UAAU,EAAE,CAAC;QACrE,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAED,IAAI,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,MAAM,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,CACnC,KA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BAAgB;QAC9B,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE,eAAe;KAC7B,CAAC;IACF,OAAO,aAAa,CAAC,MAAM,CAAC,IAAI,gBAAgB,CAAC,CAAC,2CAA2C;AAC/F,CAAC"}
|
|
@@ -5,11 +5,18 @@ declare const properties: {
|
|
|
5
5
|
CertificateAuthorityActivation: string[];
|
|
6
6
|
Permission: string[];
|
|
7
7
|
};
|
|
8
|
+
AIOps: {
|
|
9
|
+
InvestigationGroup: string[];
|
|
10
|
+
};
|
|
8
11
|
APS: {
|
|
12
|
+
ResourcePolicy: string[];
|
|
9
13
|
RuleGroupsNamespace: string[];
|
|
10
14
|
Scraper: string[];
|
|
11
15
|
Workspace: string[];
|
|
12
16
|
};
|
|
17
|
+
ARCRegionSwitch: {
|
|
18
|
+
Plan: string[];
|
|
19
|
+
};
|
|
13
20
|
ARCZonalShift: {
|
|
14
21
|
AutoshiftObserverNotificationStatus: string[];
|
|
15
22
|
ZonalAutoshiftConfiguration: string[];
|
|
@@ -199,11 +206,14 @@ declare const properties: {
|
|
|
199
206
|
JobDefinition: string[];
|
|
200
207
|
JobQueue: string[];
|
|
201
208
|
SchedulingPolicy: string[];
|
|
209
|
+
ServiceEnvironment: string[];
|
|
202
210
|
};
|
|
203
211
|
Bedrock: {
|
|
204
212
|
Agent: string[];
|
|
205
213
|
AgentAlias: string[];
|
|
206
214
|
ApplicationInferenceProfile: string[];
|
|
215
|
+
AutomatedReasoningPolicy: string[];
|
|
216
|
+
AutomatedReasoningPolicyVersion: string[];
|
|
207
217
|
Blueprint: string[];
|
|
208
218
|
DataAutomationProject: string[];
|
|
209
219
|
DataSource: string[];
|
|
@@ -217,6 +227,9 @@ declare const properties: {
|
|
|
217
227
|
Prompt: string[];
|
|
218
228
|
PromptVersion: string[];
|
|
219
229
|
};
|
|
230
|
+
Billing: {
|
|
231
|
+
BillingView: string[];
|
|
232
|
+
};
|
|
220
233
|
BillingConductor: {
|
|
221
234
|
BillingGroup: string[];
|
|
222
235
|
CustomLineItem: string[];
|
|
@@ -502,6 +515,7 @@ declare const properties: {
|
|
|
502
515
|
EnvironmentProfile: string[];
|
|
503
516
|
GroupProfile: string[];
|
|
504
517
|
Owner: string[];
|
|
518
|
+
PolicyGrant: string[];
|
|
505
519
|
Project: string[];
|
|
506
520
|
ProjectMembership: string[];
|
|
507
521
|
ProjectProfile: string[];
|
|
@@ -577,6 +591,7 @@ declare const properties: {
|
|
|
577
591
|
Instance: string[];
|
|
578
592
|
InstanceConnectEndpoint: string[];
|
|
579
593
|
InternetGateway: string[];
|
|
594
|
+
IpPoolRouteTableAssociation: string[];
|
|
580
595
|
KeyPair: string[];
|
|
581
596
|
LaunchTemplate: string[];
|
|
582
597
|
LocalGatewayRoute: string[];
|
|
@@ -620,6 +635,7 @@ declare const properties: {
|
|
|
620
635
|
TransitGateway: string[];
|
|
621
636
|
TransitGatewayAttachment: string[];
|
|
622
637
|
TransitGatewayConnect: string[];
|
|
638
|
+
TransitGatewayConnectPeer: string[];
|
|
623
639
|
TransitGatewayMulticastDomain: string[];
|
|
624
640
|
TransitGatewayMulticastDomainAssociation: string[];
|
|
625
641
|
TransitGatewayMulticastGroupMember: string[];
|
|
@@ -774,6 +790,7 @@ declare const properties: {
|
|
|
774
790
|
FSx: {
|
|
775
791
|
DataRepositoryAssociation: string[];
|
|
776
792
|
FileSystem: string[];
|
|
793
|
+
S3AccessPointAttachment: string[];
|
|
777
794
|
Snapshot: string[];
|
|
778
795
|
StorageVirtualMachine: string[];
|
|
779
796
|
Volume: string[];
|
|
@@ -871,7 +888,9 @@ declare const properties: {
|
|
|
871
888
|
Master: string[];
|
|
872
889
|
Member: string[];
|
|
873
890
|
PublishingDestination: string[];
|
|
891
|
+
ThreatEntitySet: string[];
|
|
874
892
|
ThreatIntelSet: string[];
|
|
893
|
+
TrustedEntitySet: string[];
|
|
875
894
|
};
|
|
876
895
|
HealthImaging: {
|
|
877
896
|
Datastore: string[];
|
|
@@ -934,6 +953,8 @@ declare const properties: {
|
|
|
934
953
|
};
|
|
935
954
|
InspectorV2: {
|
|
936
955
|
CisScanConfiguration: string[];
|
|
956
|
+
CodeSecurityIntegration: string[];
|
|
957
|
+
CodeSecurityScanConfiguration: string[];
|
|
937
958
|
Filter: string[];
|
|
938
959
|
};
|
|
939
960
|
InternetMonitor: {
|
|
@@ -953,6 +974,7 @@ declare const properties: {
|
|
|
953
974
|
CustomMetric: string[];
|
|
954
975
|
Dimension: string[];
|
|
955
976
|
DomainConfiguration: string[];
|
|
977
|
+
EncryptionConfiguration: string[];
|
|
956
978
|
FleetMetric: string[];
|
|
957
979
|
JobTemplate: string[];
|
|
958
980
|
Logging: string[];
|
|
@@ -1003,6 +1025,7 @@ declare const properties: {
|
|
|
1003
1025
|
AccessPolicy: string[];
|
|
1004
1026
|
Asset: string[];
|
|
1005
1027
|
AssetModel: string[];
|
|
1028
|
+
ComputationModel: string[];
|
|
1006
1029
|
Dashboard: string[];
|
|
1007
1030
|
Dataset: string[];
|
|
1008
1031
|
Gateway: string[];
|
|
@@ -1111,6 +1134,7 @@ declare const properties: {
|
|
|
1111
1134
|
Database: string[];
|
|
1112
1135
|
Disk: string[];
|
|
1113
1136
|
Distribution: string[];
|
|
1137
|
+
Domain: string[];
|
|
1114
1138
|
Instance: string[];
|
|
1115
1139
|
InstanceSnapshot: string[];
|
|
1116
1140
|
LoadBalancer: string[];
|
|
@@ -1157,6 +1181,10 @@ declare const properties: {
|
|
|
1157
1181
|
Deployment: string[];
|
|
1158
1182
|
Environment: string[];
|
|
1159
1183
|
};
|
|
1184
|
+
MPA: {
|
|
1185
|
+
ApprovalTeam: string[];
|
|
1186
|
+
IdentitySource: string[];
|
|
1187
|
+
};
|
|
1160
1188
|
MSK: {
|
|
1161
1189
|
BatchScramSecret: string[];
|
|
1162
1190
|
Cluster: string[];
|
|
@@ -1289,10 +1317,18 @@ declare const properties: {
|
|
|
1289
1317
|
ManagedNotificationAdditionalChannelAssociation: string[];
|
|
1290
1318
|
NotificationConfiguration: string[];
|
|
1291
1319
|
NotificationHub: string[];
|
|
1320
|
+
OrganizationalUnitAssociation: string[];
|
|
1292
1321
|
};
|
|
1293
1322
|
NotificationsContacts: {
|
|
1294
1323
|
EmailContact: string[];
|
|
1295
1324
|
};
|
|
1325
|
+
ODB: {
|
|
1326
|
+
CloudAutonomousVmCluster: string[];
|
|
1327
|
+
CloudExadataInfrastructure: string[];
|
|
1328
|
+
CloudVmCluster: string[];
|
|
1329
|
+
OdbNetwork: string[];
|
|
1330
|
+
OdbPeeringConnection: string[];
|
|
1331
|
+
};
|
|
1296
1332
|
OSIS: {
|
|
1297
1333
|
Pipeline: string[];
|
|
1298
1334
|
};
|
|
@@ -1300,6 +1336,10 @@ declare const properties: {
|
|
|
1300
1336
|
Link: string[];
|
|
1301
1337
|
Sink: string[];
|
|
1302
1338
|
};
|
|
1339
|
+
ObservabilityAdmin: {
|
|
1340
|
+
OrganizationTelemetryRule: string[];
|
|
1341
|
+
TelemetryRule: string[];
|
|
1342
|
+
};
|
|
1303
1343
|
Omics: {
|
|
1304
1344
|
AnnotationStore: string[];
|
|
1305
1345
|
ReferenceStore: string[];
|
|
@@ -1474,6 +1514,7 @@ declare const properties: {
|
|
|
1474
1514
|
};
|
|
1475
1515
|
RedshiftServerless: {
|
|
1476
1516
|
Namespace: string[];
|
|
1517
|
+
Snapshot: string[];
|
|
1477
1518
|
Workgroup: string[];
|
|
1478
1519
|
};
|
|
1479
1520
|
RefactorSpaces: {
|
|
@@ -1580,8 +1621,11 @@ declare const properties: {
|
|
|
1580
1621
|
Endpoint: string[];
|
|
1581
1622
|
};
|
|
1582
1623
|
S3Tables: {
|
|
1624
|
+
Namespace: string[];
|
|
1625
|
+
Table: string[];
|
|
1583
1626
|
TableBucket: string[];
|
|
1584
1627
|
TableBucketPolicy: string[];
|
|
1628
|
+
TablePolicy: string[];
|
|
1585
1629
|
};
|
|
1586
1630
|
SES: {
|
|
1587
1631
|
ConfigurationSet: string[];
|
|
@@ -1603,6 +1647,15 @@ declare const properties: {
|
|
|
1603
1647
|
Template: string[];
|
|
1604
1648
|
VdmAttributes: string[];
|
|
1605
1649
|
};
|
|
1650
|
+
SMSVOICE: {
|
|
1651
|
+
ConfigurationSet: string[];
|
|
1652
|
+
OptOutList: string[];
|
|
1653
|
+
PhoneNumber: string[];
|
|
1654
|
+
Pool: string[];
|
|
1655
|
+
ProtectConfiguration: string[];
|
|
1656
|
+
ResourcePolicy: string[];
|
|
1657
|
+
SenderId: string[];
|
|
1658
|
+
};
|
|
1606
1659
|
SNS: {
|
|
1607
1660
|
Subscription: string[];
|
|
1608
1661
|
Topic: string[];
|
|
@@ -1676,6 +1729,7 @@ declare const properties: {
|
|
|
1676
1729
|
NotebookInstanceLifecycleConfig: string[];
|
|
1677
1730
|
PartnerApp: string[];
|
|
1678
1731
|
Pipeline: string[];
|
|
1732
|
+
ProcessingJob: string[];
|
|
1679
1733
|
Project: string[];
|
|
1680
1734
|
Space: string[];
|
|
1681
1735
|
StudioLifecycleConfig: string[];
|
|
@@ -1693,11 +1747,14 @@ declare const properties: {
|
|
|
1693
1747
|
SecretTargetAttachment: string[];
|
|
1694
1748
|
};
|
|
1695
1749
|
SecurityHub: {
|
|
1750
|
+
AggregatorV2: string[];
|
|
1696
1751
|
AutomationRule: string[];
|
|
1752
|
+
AutomationRuleV2: string[];
|
|
1697
1753
|
ConfigurationPolicy: string[];
|
|
1698
1754
|
DelegatedAdmin: string[];
|
|
1699
1755
|
FindingAggregator: string[];
|
|
1700
1756
|
Hub: string[];
|
|
1757
|
+
HubV2: string[];
|
|
1701
1758
|
Insight: string[];
|
|
1702
1759
|
OrganizationConfiguration: string[];
|
|
1703
1760
|
PolicyAssociation: string[];
|
|
@@ -1855,6 +1912,7 @@ declare const properties: {
|
|
|
1855
1912
|
KnowledgeBase: string[];
|
|
1856
1913
|
MessageTemplate: string[];
|
|
1857
1914
|
MessageTemplateVersion: string[];
|
|
1915
|
+
QuickResponse: string[];
|
|
1858
1916
|
};
|
|
1859
1917
|
WorkSpaces: {
|
|
1860
1918
|
ConnectionAlias: string[];
|
|
@@ -1871,10 +1929,16 @@ declare const properties: {
|
|
|
1871
1929
|
IpAccessSettings: string[];
|
|
1872
1930
|
NetworkSettings: string[];
|
|
1873
1931
|
Portal: string[];
|
|
1932
|
+
SessionLogger: string[];
|
|
1874
1933
|
TrustStore: string[];
|
|
1875
1934
|
UserAccessLoggingSettings: string[];
|
|
1876
1935
|
UserSettings: string[];
|
|
1877
1936
|
};
|
|
1937
|
+
WorkspacesInstances: {
|
|
1938
|
+
Volume: string[];
|
|
1939
|
+
VolumeAssociation: string[];
|
|
1940
|
+
WorkspaceInstance: string[];
|
|
1941
|
+
};
|
|
1878
1942
|
XRay: {
|
|
1879
1943
|
Group: string[];
|
|
1880
1944
|
ResourcePolicy: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/aws/control/properties.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/aws/control/properties.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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