alchemy 0.12.3 → 0.12.4
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/lib/ai/astro-file.d.ts +4 -4
- package/lib/ai/astro-file.d.ts.map +1 -1
- package/lib/ai/astro-file.js +3 -3
- package/lib/ai/astro-file.js.map +1 -1
- package/lib/ai/client.d.ts +1 -1
- package/lib/ai/client.d.ts.map +1 -1
- package/lib/ai/css-file.d.ts +4 -4
- package/lib/ai/css-file.d.ts.map +1 -1
- package/lib/ai/css-file.js +3 -3
- package/lib/ai/css-file.js.map +1 -1
- package/lib/ai/data.d.ts +4 -4
- package/lib/ai/data.d.ts.map +1 -1
- package/lib/ai/data.js +3 -3
- package/lib/ai/data.js.map +1 -1
- package/lib/ai/document.d.ts +5 -5
- package/lib/ai/document.d.ts.map +1 -1
- package/lib/ai/document.js +3 -3
- package/lib/ai/document.js.map +1 -1
- package/lib/ai/html-file.d.ts +4 -4
- package/lib/ai/html-file.d.ts.map +1 -1
- package/lib/ai/html-file.js +3 -3
- package/lib/ai/html-file.js.map +1 -1
- package/lib/ai/index.d.ts +10 -10
- package/lib/ai/index.d.ts.map +1 -1
- package/lib/ai/index.js +10 -10
- package/lib/ai/index.js.map +1 -1
- package/lib/ai/json-file.d.ts +4 -4
- package/lib/ai/json-file.d.ts.map +1 -1
- package/lib/ai/json-file.js +4 -4
- package/lib/ai/json-file.js.map +1 -1
- package/lib/ai/typescript-file.d.ts +4 -4
- package/lib/ai/typescript-file.d.ts.map +1 -1
- package/lib/ai/typescript-file.js +3 -3
- package/lib/ai/typescript-file.js.map +1 -1
- package/lib/ai/vue-file.d.ts +4 -4
- package/lib/ai/vue-file.d.ts.map +1 -1
- package/lib/ai/vue-file.js +3 -3
- package/lib/ai/vue-file.js.map +1 -1
- package/lib/ai/yaml-file.d.ts +4 -4
- package/lib/ai/yaml-file.d.ts.map +1 -1
- package/lib/ai/yaml-file.js +4 -4
- package/lib/ai/yaml-file.js.map +1 -1
- package/lib/alchemy.d.ts +5 -5
- package/lib/alchemy.d.ts.map +1 -1
- package/lib/alchemy.js +4 -4
- package/lib/alchemy.js.map +1 -1
- package/lib/apply.d.ts +1 -1
- package/lib/apply.d.ts.map +1 -1
- package/lib/apply.js +4 -4
- package/lib/apply.js.map +1 -1
- package/lib/aws/bucket.d.ts +2 -2
- 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/credentials.d.ts +1 -1
- package/lib/aws/credentials.d.ts.map +1 -1
- package/lib/aws/function.d.ts +3 -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/index.d.ts +9 -9
- package/lib/aws/index.d.ts.map +1 -1
- package/lib/aws/index.js +9 -9
- package/lib/aws/index.js.map +1 -1
- package/lib/aws/oidc/github-oidc-provider.d.ts +1 -1
- package/lib/aws/oidc/github-oidc-provider.d.ts.map +1 -1
- package/lib/aws/oidc/github-oidc-provider.js +1 -1
- package/lib/aws/oidc/github-oidc-provider.js.map +1 -1
- package/lib/aws/oidc/index.d.ts +2 -2
- package/lib/aws/oidc/index.d.ts.map +1 -1
- package/lib/aws/oidc/index.js +2 -2
- package/lib/aws/oidc/index.js.map +1 -1
- package/lib/aws/oidc/oidc-provider.d.ts +2 -2
- 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 -2
- package/lib/aws/policy-attachment.d.ts.map +1 -1
- package/lib/aws/policy-attachment.js +2 -2
- package/lib/aws/policy-attachment.js.map +1 -1
- package/lib/aws/policy.d.ts +2 -2
- package/lib/aws/policy.d.ts.map +1 -1
- package/lib/aws/policy.js +1 -1
- package/lib/aws/policy.js.map +1 -1
- package/lib/aws/queue.d.ts +2 -2
- package/lib/aws/queue.d.ts.map +1 -1
- package/lib/aws/queue.js +1 -1
- package/lib/aws/queue.js.map +1 -1
- package/lib/aws/role.d.ts +3 -3
- 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 +2 -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/table.d.ts +2 -2
- package/lib/aws/table.d.ts.map +1 -1
- package/lib/aws/table.js +3 -3
- package/lib/aws/table.js.map +1 -1
- package/lib/cloudflare/account-api-token.d.ts +4 -4
- package/lib/cloudflare/account-api-token.d.ts.map +1 -1
- package/lib/cloudflare/account-api-token.js +5 -5
- package/lib/cloudflare/account-api-token.js.map +1 -1
- package/lib/cloudflare/account-id.d.ts +1 -1
- package/lib/cloudflare/account-id.d.ts.map +1 -1
- package/lib/cloudflare/account-id.js +1 -1
- package/lib/cloudflare/account-id.js.map +1 -1
- package/lib/cloudflare/api.d.ts +1 -1
- package/lib/cloudflare/api.d.ts.map +1 -1
- package/lib/cloudflare/api.js +2 -2
- package/lib/cloudflare/api.js.map +1 -1
- package/lib/cloudflare/assets.d.ts +2 -2
- package/lib/cloudflare/assets.d.ts.map +1 -1
- package/lib/cloudflare/assets.js +2 -2
- package/lib/cloudflare/assets.js.map +1 -1
- package/lib/cloudflare/auth.d.ts +2 -2
- package/lib/cloudflare/auth.d.ts.map +1 -1
- package/lib/cloudflare/auth.js +2 -2
- package/lib/cloudflare/auth.js.map +1 -1
- package/lib/cloudflare/bindings.d.ts +11 -11
- package/lib/cloudflare/bindings.d.ts.map +1 -1
- package/lib/cloudflare/bound.d.ts +12 -12
- package/lib/cloudflare/bound.d.ts.map +1 -1
- package/lib/cloudflare/bucket.d.ts +4 -4
- package/lib/cloudflare/bucket.d.ts.map +1 -1
- package/lib/cloudflare/bucket.js +3 -3
- package/lib/cloudflare/bucket.js.map +1 -1
- package/lib/cloudflare/custom-domain.d.ts +3 -3
- package/lib/cloudflare/custom-domain.d.ts.map +1 -1
- package/lib/cloudflare/custom-domain.js +3 -3
- package/lib/cloudflare/custom-domain.js.map +1 -1
- package/lib/cloudflare/d1-database.d.ts +3 -3
- package/lib/cloudflare/d1-database.d.ts.map +1 -1
- package/lib/cloudflare/d1-database.js +4 -4
- package/lib/cloudflare/d1-database.js.map +1 -1
- package/lib/cloudflare/d1-migrations.d.ts +1 -1
- package/lib/cloudflare/d1-migrations.d.ts.map +1 -1
- package/lib/cloudflare/d1-migrations.js +3 -3
- package/lib/cloudflare/d1-migrations.js.map +1 -1
- package/lib/cloudflare/dns-records.d.ts +4 -4
- package/lib/cloudflare/dns-records.d.ts.map +1 -1
- package/lib/cloudflare/dns-records.js +2 -2
- package/lib/cloudflare/dns-records.js.map +1 -1
- package/lib/cloudflare/index.d.ts +27 -27
- package/lib/cloudflare/index.d.ts.map +1 -1
- package/lib/cloudflare/index.js +27 -27
- package/lib/cloudflare/index.js.map +1 -1
- package/lib/cloudflare/kv-namespace.d.ts +3 -3
- package/lib/cloudflare/kv-namespace.d.ts.map +1 -1
- package/lib/cloudflare/kv-namespace.js +4 -4
- package/lib/cloudflare/kv-namespace.js.map +1 -1
- package/lib/cloudflare/nuxt.d.ts +4 -4
- package/lib/cloudflare/nuxt.d.ts.map +1 -1
- package/lib/cloudflare/nuxt.js +1 -1
- package/lib/cloudflare/nuxt.js.map +1 -1
- package/lib/cloudflare/permission-groups.d.ts +3 -3
- package/lib/cloudflare/permission-groups.d.ts.map +1 -1
- package/lib/cloudflare/permission-groups.js +2 -2
- package/lib/cloudflare/permission-groups.js.map +1 -1
- package/lib/cloudflare/pipeline.d.ts +4 -4
- package/lib/cloudflare/pipeline.d.ts.map +1 -1
- package/lib/cloudflare/pipeline.js +3 -3
- package/lib/cloudflare/pipeline.js.map +1 -1
- package/lib/cloudflare/queue.d.ts +3 -3
- package/lib/cloudflare/queue.d.ts.map +1 -1
- package/lib/cloudflare/queue.js +3 -3
- package/lib/cloudflare/queue.js.map +1 -1
- package/lib/cloudflare/r2-rest-state-store.d.ts +3 -3
- package/lib/cloudflare/r2-rest-state-store.d.ts.map +1 -1
- package/lib/cloudflare/r2-rest-state-store.js +4 -4
- package/lib/cloudflare/r2-rest-state-store.js.map +1 -1
- package/lib/cloudflare/redwood.d.ts +4 -4
- package/lib/cloudflare/redwood.d.ts.map +1 -1
- package/lib/cloudflare/redwood.js +1 -1
- package/lib/cloudflare/redwood.js.map +1 -1
- package/lib/cloudflare/tanstack-start.d.ts +4 -4
- package/lib/cloudflare/tanstack-start.d.ts.map +1 -1
- package/lib/cloudflare/tanstack-start.js +1 -1
- package/lib/cloudflare/tanstack-start.js.map +1 -1
- package/lib/cloudflare/vectorize-index.d.ts +3 -3
- package/lib/cloudflare/vectorize-index.d.ts.map +1 -1
- package/lib/cloudflare/vectorize-index.js +3 -3
- package/lib/cloudflare/vectorize-index.js.map +1 -1
- package/lib/cloudflare/vectorize-metadata-index.d.ts +4 -4
- 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.d.ts +4 -4
- package/lib/cloudflare/vite.d.ts.map +1 -1
- package/lib/cloudflare/vite.js +1 -1
- package/lib/cloudflare/vite.js.map +1 -1
- package/lib/cloudflare/website.d.ts +3 -3
- package/lib/cloudflare/website.d.ts.map +1 -1
- package/lib/cloudflare/website.js +5 -5
- package/lib/cloudflare/website.js.map +1 -1
- package/lib/cloudflare/worker.d.ts +7 -7
- package/lib/cloudflare/worker.d.ts.map +1 -1
- package/lib/cloudflare/worker.js +10 -10
- package/lib/cloudflare/worker.js.map +1 -1
- package/lib/cloudflare/workflow.d.ts +1 -1
- package/lib/cloudflare/workflow.d.ts.map +1 -1
- package/lib/cloudflare/workflow.js +1 -1
- package/lib/cloudflare/workflow.js.map +1 -1
- package/lib/cloudflare/wrangler.json.d.ts +3 -3
- package/lib/cloudflare/wrangler.json.d.ts.map +1 -1
- package/lib/cloudflare/wrangler.json.js +2 -2
- package/lib/cloudflare/wrangler.json.js.map +1 -1
- package/lib/cloudflare/zone.d.ts +4 -4
- 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 +3 -3
- package/lib/context.d.ts.map +1 -1
- package/lib/context.js +1 -1
- package/lib/context.js.map +1 -1
- package/lib/destroy.d.ts +2 -2
- package/lib/destroy.d.ts.map +1 -1
- package/lib/destroy.js +4 -4
- package/lib/destroy.js.map +1 -1
- package/lib/dns/import-dns.d.ts +3 -3
- 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/dns/index.d.ts +2 -2
- package/lib/dns/index.d.ts.map +1 -1
- package/lib/dns/index.js +2 -2
- package/lib/dns/index.js.map +1 -1
- package/lib/esbuild/bundle.d.ts +2 -2
- package/lib/esbuild/bundle.d.ts.map +1 -1
- package/lib/esbuild/bundle.js +2 -2
- package/lib/esbuild/bundle.js.map +1 -1
- package/lib/esbuild/index.d.ts +1 -1
- package/lib/esbuild/index.d.ts.map +1 -1
- package/lib/esbuild/index.js +1 -1
- package/lib/esbuild/index.js.map +1 -1
- package/lib/fs/copy-file.d.ts +2 -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-system-state-store.d.ts +2 -2
- package/lib/fs/file-system-state-store.d.ts.map +1 -1
- package/lib/fs/file-system-state-store.js +2 -2
- package/lib/fs/file-system-state-store.js.map +1 -1
- package/lib/fs/file.d.ts +4 -4
- package/lib/fs/file.d.ts.map +1 -1
- package/lib/fs/file.js +3 -3
- package/lib/fs/file.js.map +1 -1
- package/lib/fs/folder.d.ts +2 -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/fs/index.d.ts +14 -14
- package/lib/fs/index.d.ts.map +1 -1
- package/lib/fs/index.js +14 -14
- package/lib/fs/index.js.map +1 -1
- package/lib/fs/static-astro-file.d.ts +1 -1
- package/lib/fs/static-astro-file.d.ts.map +1 -1
- package/lib/fs/static-astro-file.js +1 -1
- package/lib/fs/static-astro-file.js.map +1 -1
- package/lib/fs/static-css-file.d.ts +1 -1
- package/lib/fs/static-css-file.d.ts.map +1 -1
- package/lib/fs/static-css-file.js +1 -1
- package/lib/fs/static-css-file.js.map +1 -1
- package/lib/fs/static-html-file.d.ts +1 -1
- package/lib/fs/static-html-file.d.ts.map +1 -1
- package/lib/fs/static-html-file.js +1 -1
- package/lib/fs/static-html-file.js.map +1 -1
- package/lib/fs/static-json-file.d.ts +1 -1
- package/lib/fs/static-json-file.d.ts.map +1 -1
- package/lib/fs/static-json-file.js +1 -1
- package/lib/fs/static-json-file.js.map +1 -1
- package/lib/fs/static-text-file.d.ts +1 -1
- package/lib/fs/static-text-file.d.ts.map +1 -1
- package/lib/fs/static-text-file.js +1 -1
- package/lib/fs/static-text-file.js.map +1 -1
- package/lib/fs/static-typescript-file.d.ts +1 -1
- package/lib/fs/static-typescript-file.d.ts.map +1 -1
- package/lib/fs/static-typescript-file.js +1 -1
- package/lib/fs/static-typescript-file.js.map +1 -1
- package/lib/fs/static-vue-file.d.ts +1 -1
- package/lib/fs/static-vue-file.d.ts.map +1 -1
- package/lib/fs/static-vue-file.js +1 -1
- package/lib/fs/static-vue-file.js.map +1 -1
- package/lib/fs/static-yaml-file.d.ts +1 -1
- package/lib/fs/static-yaml-file.d.ts.map +1 -1
- package/lib/fs/static-yaml-file.js +1 -1
- package/lib/fs/static-yaml-file.js.map +1 -1
- package/lib/github/client.js +2 -2
- package/lib/github/client.js.map +1 -1
- package/lib/github/index.d.ts +2 -2
- package/lib/github/index.d.ts.map +1 -1
- package/lib/github/index.js +2 -2
- package/lib/github/index.js.map +1 -1
- package/lib/github/repository-environment.d.ts +2 -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/secret.d.ts +3 -3
- 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/index.d.ts +7 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/internal/docs/providers.d.ts +2 -2
- package/lib/internal/docs/providers.d.ts.map +1 -1
- package/lib/internal/docs/providers.js +4 -4
- package/lib/internal/docs/providers.js.map +1 -1
- package/lib/os/exec.d.ts +2 -2
- package/lib/os/exec.d.ts.map +1 -1
- package/lib/os/exec.js +3 -3
- package/lib/os/exec.js.map +1 -1
- package/lib/os/index.d.ts +1 -1
- package/lib/os/index.d.ts.map +1 -1
- package/lib/os/index.js +1 -1
- package/lib/os/index.js.map +1 -1
- package/lib/resource.d.ts +2 -2
- package/lib/resource.d.ts.map +1 -1
- package/lib/resource.js +2 -2
- package/lib/resource.js.map +1 -1
- package/lib/scope.d.ts +2 -2
- package/lib/scope.d.ts.map +1 -1
- package/lib/scope.js +2 -2
- package/lib/scope.js.map +1 -1
- package/lib/secret.js +1 -1
- package/lib/secret.js.map +1 -1
- package/lib/serde.d.ts +1 -1
- package/lib/serde.d.ts.map +1 -1
- package/lib/serde.js +3 -3
- package/lib/serde.js.map +1 -1
- package/lib/state.d.ts +2 -2
- package/lib/state.d.ts.map +1 -1
- package/lib/stripe/index.d.ts +3 -3
- package/lib/stripe/index.d.ts.map +1 -1
- package/lib/stripe/index.js +3 -3
- package/lib/stripe/index.js.map +1 -1
- package/lib/stripe/price.d.ts +2 -2
- package/lib/stripe/price.d.ts.map +1 -1
- package/lib/stripe/price.js +1 -1
- package/lib/stripe/price.js.map +1 -1
- package/lib/stripe/product.d.ts +2 -2
- package/lib/stripe/product.d.ts.map +1 -1
- package/lib/stripe/product.js +1 -1
- package/lib/stripe/product.js.map +1 -1
- package/lib/stripe/webhook.d.ts +2 -2
- package/lib/stripe/webhook.d.ts.map +1 -1
- package/lib/stripe/webhook.js +1 -1
- package/lib/stripe/webhook.js.map +1 -1
- package/lib/test/bun.d.ts +2 -2
- package/lib/test/bun.d.ts.map +1 -1
- package/lib/test/bun.js +3 -3
- package/lib/test/bun.js.map +1 -1
- package/lib/test/prune.d.ts.map +1 -1
- package/lib/test/prune.js +2 -3
- package/lib/test/prune.js.map +1 -1
- package/lib/web/astro.d.ts +2 -2
- package/lib/web/astro.d.ts.map +1 -1
- package/lib/web/astro.js +8 -8
- package/lib/web/astro.js.map +1 -1
- package/lib/web/shadcn-component.d.ts +2 -2
- package/lib/web/shadcn-component.d.ts.map +1 -1
- package/lib/web/shadcn-component.js +4 -4
- package/lib/web/shadcn-component.js.map +1 -1
- package/lib/web/shadcn.d.ts +3 -3
- package/lib/web/shadcn.d.ts.map +1 -1
- package/lib/web/shadcn.js +6 -6
- package/lib/web/shadcn.js.map +1 -1
- package/lib/web/tailwind.d.ts +2 -2
- package/lib/web/tailwind.d.ts.map +1 -1
- package/lib/web/tailwind.js +5 -5
- package/lib/web/tailwind.js.map +1 -1
- package/lib/web/vite.d.ts +2 -2
- package/lib/web/vite.d.ts.map +1 -1
- package/lib/web/vite.js +9 -9
- package/lib/web/vite.js.map +1 -1
- package/lib/web/vitepress/config.d.ts +1 -1
- package/lib/web/vitepress/config.d.ts.map +1 -1
- package/lib/web/vitepress/config.js +1 -1
- package/lib/web/vitepress/config.js.map +1 -1
- package/lib/web/vitepress/custom-theme.d.ts +4 -4
- package/lib/web/vitepress/custom-theme.d.ts.map +1 -1
- package/lib/web/vitepress/custom-theme.js +7 -7
- package/lib/web/vitepress/custom-theme.js.map +1 -1
- package/lib/web/vitepress/dependencies.d.ts +2 -2
- package/lib/web/vitepress/dependencies.d.ts.map +1 -1
- package/lib/web/vitepress/dependencies.js +3 -3
- package/lib/web/vitepress/dependencies.js.map +1 -1
- package/lib/web/vitepress/home-page.d.ts +3 -3
- package/lib/web/vitepress/home-page.d.ts.map +1 -1
- package/lib/web/vitepress/home-page.js +3 -3
- package/lib/web/vitepress/home-page.js.map +1 -1
- package/lib/web/vitepress/index.d.ts +5 -5
- package/lib/web/vitepress/index.d.ts.map +1 -1
- package/lib/web/vitepress/index.js +5 -5
- package/lib/web/vitepress/index.js.map +1 -1
- package/lib/web/vitepress/vitepress.d.ts +2 -2
- package/lib/web/vitepress/vitepress.d.ts.map +1 -1
- package/lib/web/vitepress/vitepress.js +7 -7
- package/lib/web/vitepress/vitepress.js.map +1 -1
- package/package.json +1 -1
- package/src/ai/astro-file.ts +5 -5
- package/src/ai/client.ts +1 -1
- package/src/ai/css-file.ts +5 -5
- package/src/ai/data.ts +5 -5
- package/src/ai/document.ts +5 -5
- package/src/ai/html-file.ts +5 -5
- package/src/ai/index.ts +10 -10
- package/src/ai/json-file.ts +6 -6
- package/src/ai/typescript-file.ts +5 -5
- package/src/ai/vue-file.ts +5 -5
- package/src/ai/yaml-file.ts +6 -6
- package/src/alchemy.ts +6 -6
- package/src/apply.ts +5 -5
- package/src/aws/bucket.ts +13 -13
- package/src/aws/credentials.ts +1 -1
- package/src/aws/function.ts +4 -4
- package/src/aws/index.ts +9 -9
- package/src/aws/oidc/github-oidc-provider.ts +2 -2
- package/src/aws/oidc/index.ts +2 -2
- package/src/aws/oidc/oidc-provider.ts +3 -3
- package/src/aws/policy-attachment.ts +8 -8
- package/src/aws/policy.ts +16 -16
- package/src/aws/queue.ts +14 -14
- package/src/aws/role.ts +4 -4
- package/src/aws/ses.ts +20 -20
- package/src/aws/table.ts +4 -4
- package/src/cloudflare/account-api-token.ts +6 -6
- package/src/cloudflare/account-id.ts +1 -1
- package/src/cloudflare/api.ts +3 -3
- package/src/cloudflare/assets.ts +3 -3
- package/src/cloudflare/auth.ts +8 -8
- package/src/cloudflare/bindings.ts +11 -11
- package/src/cloudflare/bound.ts +12 -12
- package/src/cloudflare/bucket.ts +5 -5
- package/src/cloudflare/custom-domain.ts +4 -4
- package/src/cloudflare/d1-database.ts +5 -5
- package/src/cloudflare/d1-migrations.ts +3 -3
- package/src/cloudflare/dns-records.ts +5 -5
- package/src/cloudflare/index.ts +27 -27
- package/src/cloudflare/kv-namespace.ts +5 -5
- package/src/cloudflare/nuxt.ts +4 -4
- package/src/cloudflare/permission-groups.ts +3 -3
- package/src/cloudflare/pipeline.ts +5 -5
- package/src/cloudflare/queue.ts +4 -4
- package/src/cloudflare/r2-rest-state-store.ts +6 -6
- package/src/cloudflare/redwood.ts +4 -4
- package/src/cloudflare/tanstack-start.ts +4 -4
- package/src/cloudflare/vectorize-index.ts +5 -5
- package/src/cloudflare/vectorize-metadata-index.ts +6 -6
- package/src/cloudflare/vite.ts +4 -4
- package/src/cloudflare/website.ts +6 -6
- package/src/cloudflare/worker.ts +14 -14
- package/src/cloudflare/workflow.ts +2 -2
- package/src/cloudflare/wrangler.json.ts +6 -6
- package/src/cloudflare/zone.ts +4 -4
- package/src/context.ts +4 -4
- package/src/destroy.ts +4 -4
- package/src/dns/import-dns.ts +3 -3
- package/src/dns/index.ts +2 -2
- package/src/esbuild/bundle.ts +3 -3
- package/src/esbuild/index.ts +1 -1
- package/src/fs/copy-file.ts +3 -3
- package/src/fs/file-system-state-store.ts +4 -4
- package/src/fs/file.ts +6 -6
- package/src/fs/folder.ts +7 -7
- package/src/fs/index.ts +14 -14
- package/src/fs/static-astro-file.ts +1 -1
- package/src/fs/static-css-file.ts +1 -1
- package/src/fs/static-html-file.ts +1 -1
- package/src/fs/static-json-file.ts +1 -1
- package/src/fs/static-text-file.ts +2 -4
- package/src/fs/static-typescript-file.ts +1 -1
- package/src/fs/static-vue-file.ts +1 -1
- package/src/fs/static-yaml-file.ts +1 -1
- package/src/github/client.ts +12 -12
- package/src/github/index.ts +2 -2
- package/src/github/repository-environment.ts +3 -3
- package/src/github/secret.ts +4 -4
- package/src/index.ts +7 -7
- package/src/internal/docs/providers.ts +4 -4
- package/src/os/exec.ts +4 -4
- package/src/os/index.ts +1 -1
- package/src/resource.ts +6 -6
- package/src/scope.ts +4 -4
- package/src/secret.ts +1 -1
- package/src/serde.ts +3 -3
- package/src/state.ts +2 -2
- package/src/stripe/index.ts +3 -3
- package/src/stripe/price.ts +4 -4
- package/src/stripe/product.ts +4 -4
- package/src/stripe/webhook.ts +5 -5
- package/src/test/bun.ts +4 -4
- package/src/test/prune.ts +2 -3
- package/src/web/astro.ts +9 -9
- package/src/web/shadcn-component.ts +5 -5
- package/src/web/shadcn.ts +7 -7
- package/src/web/tailwind.ts +6 -6
- package/src/web/vite.ts +10 -10
- package/src/web/vitepress/config.ts +1 -1
- package/src/web/vitepress/custom-theme.ts +10 -10
- package/src/web/vitepress/dependencies.ts +8 -8
- package/src/web/vitepress/home-page.ts +4 -4
- package/src/web/vitepress/index.ts +5 -5
- package/src/web/vitepress/vitepress.ts +8 -8
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { exec } from "child_process";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { promisify } from "util";
|
|
5
|
-
import { Folder } from "../../fs/folder";
|
|
6
|
-
import { StaticJsonFile } from "../../fs/static-json-file";
|
|
7
|
-
import { StaticTextFile } from "../../fs/static-text-file";
|
|
8
|
-
import { StaticTypeScriptFile } from "../../fs/static-typescript-file";
|
|
9
|
-
import { Resource } from "../../resource";
|
|
10
|
-
import { InstallDependencies, fixedDependencies } from "./dependencies";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
|
+
import { Folder } from "../../fs/folder.js";
|
|
6
|
+
import { StaticJsonFile } from "../../fs/static-json-file.js";
|
|
7
|
+
import { StaticTextFile } from "../../fs/static-text-file.js";
|
|
8
|
+
import { StaticTypeScriptFile } from "../../fs/static-typescript-file.js";
|
|
9
|
+
import { Resource } from "../../resource.js";
|
|
10
|
+
import { InstallDependencies, fixedDependencies } from "./dependencies.js";
|
|
11
11
|
const execAsync = promisify(exec);
|
|
12
12
|
export const VitepressProject = Resource("project::VitepressProject", {
|
|
13
13
|
alwaysUpdate: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitepress.js","sourceRoot":"","sources":["../../../src/web/vitepress/vitepress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"vitepress.js","sourceRoot":"","sources":["../../../src/web/vitepress/vitepress.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
package/src/ai/astro-file.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { generateText } from "ai";
|
|
2
2
|
import prettier from "prettier";
|
|
3
|
-
import type { Context } from "../context";
|
|
4
|
-
import { StaticAstroFile } from "../fs/static-astro-file";
|
|
5
|
-
import { Resource } from "../resource";
|
|
6
|
-
import type { Secret } from "../secret";
|
|
7
|
-
import { type ModelConfig, createModel } from "./client";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
|
+
import { StaticAstroFile } from "../fs/static-astro-file.js";
|
|
5
|
+
import { Resource } from "../resource.js";
|
|
6
|
+
import type { Secret } from "../secret.js";
|
|
7
|
+
import { type ModelConfig, createModel } from "./client.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Properties for creating or updating an AstroFile
|
package/src/ai/client.ts
CHANGED
package/src/ai/css-file.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { generateText } from "ai";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { StaticCSSFile } from "../fs/static-css-file";
|
|
4
|
-
import { Resource } from "../resource";
|
|
5
|
-
import type { Secret } from "../secret";
|
|
6
|
-
import { type ModelConfig, createModel } from "./client";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { StaticCSSFile } from "../fs/static-css-file.js";
|
|
4
|
+
import { Resource } from "../resource.js";
|
|
5
|
+
import type { Secret } from "../secret.js";
|
|
6
|
+
import { type ModelConfig, createModel } from "./client.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Properties for creating or updating a CSSFile
|
package/src/ai/data.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { generateObject, type CoreMessage } from "ai";
|
|
2
2
|
import type { JsonSchema, Type, type } from "arktype";
|
|
3
|
-
import type { Context } from "../context";
|
|
4
|
-
import { Resource } from "../resource";
|
|
5
|
-
import type { Secret } from "../secret";
|
|
6
|
-
import { ark } from "./ark";
|
|
7
|
-
import { createModel, type ModelConfig } from "./client";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
|
+
import { Resource } from "../resource.js";
|
|
5
|
+
import type { Secret } from "../secret.js";
|
|
6
|
+
import { ark } from "./ark.js";
|
|
7
|
+
import { createModel, type ModelConfig } from "./client.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Properties for creating or updating an AI Object
|
package/src/ai/document.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { generateText, type CoreMessage } from "ai";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { StaticTextFile } from "../fs/static-text-file";
|
|
4
|
-
import { Resource } from "../resource";
|
|
5
|
-
import type { Secret } from "../secret";
|
|
6
|
-
import { createModel, withRateLimitRetry, type ModelConfig } from "./client";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { StaticTextFile } from "../fs/static-text-file.js";
|
|
4
|
+
import { Resource } from "../resource.js";
|
|
5
|
+
import type { Secret } from "../secret.js";
|
|
6
|
+
import { createModel, withRateLimitRetry, type ModelConfig } from "./client.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Properties for creating or updating a Document
|
package/src/ai/html-file.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { generateText } from "ai";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { StaticHTMLFile } from "../fs/static-html-file";
|
|
4
|
-
import { Resource } from "../resource";
|
|
5
|
-
import type { Secret } from "../secret";
|
|
6
|
-
import { type ModelConfig, createModel } from "./client";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { StaticHTMLFile } from "../fs/static-html-file.js";
|
|
4
|
+
import { Resource } from "../resource.js";
|
|
5
|
+
import type { Secret } from "../secret.js";
|
|
6
|
+
import { type ModelConfig, createModel } from "./client.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Properties for creating or updating an HTMLFile
|
package/src/ai/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./ark";
|
|
2
|
-
export * from "./astro-file";
|
|
3
|
-
export * from "./css-file";
|
|
4
|
-
export * from "./data";
|
|
5
|
-
export * from "./document";
|
|
6
|
-
export * from "./html-file";
|
|
7
|
-
export * from "./json-file";
|
|
8
|
-
export * from "./typescript-file";
|
|
9
|
-
export * from "./vue-file";
|
|
10
|
-
export * from "./yaml-file";
|
|
1
|
+
export * from "./ark.js";
|
|
2
|
+
export * from "./astro-file.js";
|
|
3
|
+
export * from "./css-file.js";
|
|
4
|
+
export * from "./data.js";
|
|
5
|
+
export * from "./document.js";
|
|
6
|
+
export * from "./html-file.js";
|
|
7
|
+
export * from "./json-file.js";
|
|
8
|
+
export * from "./typescript-file.js";
|
|
9
|
+
export * from "./vue-file.js";
|
|
10
|
+
export * from "./yaml-file.js";
|
package/src/ai/json-file.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { generateObject, generateText } from "ai";
|
|
2
2
|
import type { JsonSchema, Type, type } from "arktype";
|
|
3
|
-
import type { Context } from "../context";
|
|
4
|
-
import { StaticJsonFile } from "../fs/static-json-file";
|
|
5
|
-
import { Resource } from "../resource";
|
|
6
|
-
import type { Secret } from "../secret";
|
|
7
|
-
import { ark } from "./ark";
|
|
8
|
-
import { type ModelConfig, createModel } from "./client";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
|
+
import { StaticJsonFile } from "../fs/static-json-file.js";
|
|
5
|
+
import { Resource } from "../resource.js";
|
|
6
|
+
import type { Secret } from "../secret.js";
|
|
7
|
+
import { ark } from "./ark.js";
|
|
8
|
+
import { type ModelConfig, createModel } from "./client.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Properties for creating or updating a JSONFile
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { generateText } from "ai";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { StaticTypeScriptFile } from "../fs/static-typescript-file";
|
|
4
|
-
import { Resource } from "../resource";
|
|
5
|
-
import type { Secret } from "../secret";
|
|
6
|
-
import { createModel, type ModelConfig } from "./client";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { StaticTypeScriptFile } from "../fs/static-typescript-file.js";
|
|
4
|
+
import { Resource } from "../resource.js";
|
|
5
|
+
import type { Secret } from "../secret.js";
|
|
6
|
+
import { createModel, type ModelConfig } from "./client.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Properties for creating or updating a TypeScriptFile
|
package/src/ai/vue-file.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { generateText } from "ai";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { StaticVueFile } from "../fs/static-vue-file";
|
|
4
|
-
import { Resource } from "../resource";
|
|
5
|
-
import type { Secret } from "../secret";
|
|
6
|
-
import { type ModelConfig, createModel } from "./client";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { StaticVueFile } from "../fs/static-vue-file.js";
|
|
4
|
+
import { Resource } from "../resource.js";
|
|
5
|
+
import type { Secret } from "../secret.js";
|
|
6
|
+
import { type ModelConfig, createModel } from "./client.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Properties for creating or updating a VueFile
|
package/src/ai/yaml-file.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { generateObject, generateText } from "ai";
|
|
2
2
|
import type { JsonSchema, Type, type } from "arktype";
|
|
3
|
-
import type { Context } from "../context";
|
|
4
|
-
import { StaticYamlFile } from "../fs/static-yaml-file";
|
|
5
|
-
import { Resource } from "../resource";
|
|
6
|
-
import type { Secret } from "../secret";
|
|
7
|
-
import { ark } from "./ark";
|
|
8
|
-
import { type ModelConfig, createModel } from "./client";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
|
+
import { StaticYamlFile } from "../fs/static-yaml-file.js";
|
|
5
|
+
import { Resource } from "../resource.js";
|
|
6
|
+
import type { Secret } from "../secret.js";
|
|
7
|
+
import { ark } from "./ark.js";
|
|
8
|
+
import { type ModelConfig, createModel } from "./client.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Properties for creating or updating a YAMLFile
|
package/src/alchemy.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
|
-
import { destroy, DestroyedSignal } from "./destroy";
|
|
5
|
-
import { env } from "./env";
|
|
6
|
-
import type { PendingResource } from "./resource";
|
|
7
|
-
import { Scope } from "./scope";
|
|
8
|
-
import { secret } from "./secret";
|
|
9
|
-
import type { StateStoreType } from "./state";
|
|
4
|
+
import { destroy, DestroyedSignal } from "./destroy.js";
|
|
5
|
+
import { env } from "./env.js";
|
|
6
|
+
import type { PendingResource } from "./resource.js";
|
|
7
|
+
import { Scope } from "./scope.js";
|
|
8
|
+
import { secret } from "./secret.js";
|
|
9
|
+
import type { StateStoreType } from "./state.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Type alias for semantic highlighting of `alchemy` as a type keyword
|
package/src/apply.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { alchemy } from "./alchemy";
|
|
2
|
-
import { context } from "./context";
|
|
1
|
+
import { alchemy } from "./alchemy.js";
|
|
2
|
+
import { context } from "./context.js";
|
|
3
3
|
import {
|
|
4
4
|
PROVIDERS,
|
|
5
5
|
type PendingResource,
|
|
6
6
|
type Provider,
|
|
7
7
|
type Resource,
|
|
8
8
|
type ResourceProps,
|
|
9
|
-
} from "./resource";
|
|
10
|
-
import { serialize } from "./serde";
|
|
11
|
-
import type { State } from "./state";
|
|
9
|
+
} from "./resource.js";
|
|
10
|
+
import { serialize } from "./serde.js";
|
|
11
|
+
import type { State } from "./state.js";
|
|
12
12
|
|
|
13
13
|
export interface ApplyOptions {
|
|
14
14
|
quiet?: boolean;
|
package/src/aws/bucket.ts
CHANGED
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
PutBucketTaggingCommand,
|
|
11
11
|
S3Client,
|
|
12
12
|
} from "@aws-sdk/client-s3";
|
|
13
|
-
import type { Context } from "../context";
|
|
14
|
-
import { Resource } from "../resource";
|
|
15
|
-
import { ignore } from "../util/ignore";
|
|
13
|
+
import type { Context } from "../context.js";
|
|
14
|
+
import { Resource } from "../resource.js";
|
|
15
|
+
import { ignore } from "../util/ignore.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Properties for creating or updating an S3 bucket
|
|
@@ -136,8 +136,8 @@ export const Bucket = Resource(
|
|
|
136
136
|
client.send(
|
|
137
137
|
new DeleteBucketCommand({
|
|
138
138
|
Bucket: props.bucketName,
|
|
139
|
-
})
|
|
140
|
-
)
|
|
139
|
+
})
|
|
140
|
+
)
|
|
141
141
|
);
|
|
142
142
|
return this.destroy();
|
|
143
143
|
} else {
|
|
@@ -146,7 +146,7 @@ export const Bucket = Resource(
|
|
|
146
146
|
await client.send(
|
|
147
147
|
new HeadBucketCommand({
|
|
148
148
|
Bucket: props.bucketName,
|
|
149
|
-
})
|
|
149
|
+
})
|
|
150
150
|
);
|
|
151
151
|
|
|
152
152
|
// Update tags if they changed and bucket exists
|
|
@@ -160,7 +160,7 @@ export const Bucket = Resource(
|
|
|
160
160
|
Value,
|
|
161
161
|
})),
|
|
162
162
|
},
|
|
163
|
-
})
|
|
163
|
+
})
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
166
|
} catch (error: any) {
|
|
@@ -178,7 +178,7 @@ export const Bucket = Resource(
|
|
|
178
178
|
})),
|
|
179
179
|
},
|
|
180
180
|
}),
|
|
181
|
-
})
|
|
181
|
+
})
|
|
182
182
|
);
|
|
183
183
|
} else {
|
|
184
184
|
throw error;
|
|
@@ -189,10 +189,10 @@ export const Bucket = Resource(
|
|
|
189
189
|
const [locationResponse, versioningResponse, aclResponse] =
|
|
190
190
|
await Promise.all([
|
|
191
191
|
client.send(
|
|
192
|
-
new GetBucketLocationCommand({ Bucket: props.bucketName })
|
|
192
|
+
new GetBucketLocationCommand({ Bucket: props.bucketName })
|
|
193
193
|
),
|
|
194
194
|
client.send(
|
|
195
|
-
new GetBucketVersioningCommand({ Bucket: props.bucketName })
|
|
195
|
+
new GetBucketVersioningCommand({ Bucket: props.bucketName })
|
|
196
196
|
),
|
|
197
197
|
client.send(new GetBucketAclCommand({ Bucket: props.bucketName })),
|
|
198
198
|
]);
|
|
@@ -204,10 +204,10 @@ export const Bucket = Resource(
|
|
|
204
204
|
if (!tags) {
|
|
205
205
|
try {
|
|
206
206
|
const taggingResponse = await client.send(
|
|
207
|
-
new GetBucketTaggingCommand({ Bucket: props.bucketName })
|
|
207
|
+
new GetBucketTaggingCommand({ Bucket: props.bucketName })
|
|
208
208
|
);
|
|
209
209
|
tags = Object.fromEntries(
|
|
210
|
-
taggingResponse.TagSet?.map(({ Key, Value }) => [Key, Value]) || []
|
|
210
|
+
taggingResponse.TagSet?.map(({ Key, Value }) => [Key, Value]) || []
|
|
211
211
|
);
|
|
212
212
|
} catch (error: any) {
|
|
213
213
|
if (error.name !== "NoSuchTagSet") {
|
|
@@ -228,7 +228,7 @@ export const Bucket = Resource(
|
|
|
228
228
|
...(tags && { tags }),
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
}
|
|
231
|
+
}
|
|
232
232
|
);
|
|
233
233
|
|
|
234
234
|
/**
|
package/src/aws/credentials.ts
CHANGED
package/src/aws/function.ts
CHANGED
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
UpdateFunctionConfigurationCommand,
|
|
16
16
|
UpdateFunctionUrlConfigCommand,
|
|
17
17
|
} from "@aws-sdk/client-lambda";
|
|
18
|
-
import type { Context } from "../context";
|
|
19
|
-
import type { Bundle } from "../esbuild/bundle";
|
|
20
|
-
import { Resource } from "../resource";
|
|
21
|
-
import { ignore } from "../util/ignore";
|
|
18
|
+
import type { Context } from "../context.js";
|
|
19
|
+
import type { Bundle } from "../esbuild/bundle.js";
|
|
20
|
+
import { Resource } from "../resource.js";
|
|
21
|
+
import { ignore } from "../util/ignore.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Properties for creating or updating a Lambda function
|
package/src/aws/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./account-id";
|
|
2
|
-
export * from "./bucket";
|
|
3
|
-
export * from "./function";
|
|
4
|
-
export * from "./policy";
|
|
5
|
-
export * from "./policy
|
|
6
|
-
export * from "./queue";
|
|
7
|
-
export * from "./role";
|
|
8
|
-
export * from "./ses";
|
|
9
|
-
export * from "./table";
|
|
1
|
+
export * from "./account-id.js";
|
|
2
|
+
export * from "./bucket.js";
|
|
3
|
+
export * from "./function.js";
|
|
4
|
+
export * from "./policy-attachment.js";
|
|
5
|
+
export * from "./policy.js";
|
|
6
|
+
export * from "./queue.js";
|
|
7
|
+
export * from "./role.js";
|
|
8
|
+
export * from "./ses.js";
|
|
9
|
+
export * from "./table.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OIDCProvider, type OIDCProviderProps } from "./oidc-provider";
|
|
1
|
+
import { OIDCProvider, type OIDCProviderProps } from "./oidc-provider.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Default thumbprint for GitHub's OIDC provider
|
|
@@ -99,7 +99,7 @@ export type GitHubOIDCProvider = ReturnType<typeof GitHubOIDCProvider>;
|
|
|
99
99
|
*/
|
|
100
100
|
export const GitHubOIDCProvider = async (
|
|
101
101
|
id: string,
|
|
102
|
-
props: GitHubOIDCProviderProps
|
|
102
|
+
props: GitHubOIDCProviderProps
|
|
103
103
|
) => {
|
|
104
104
|
return OIDCProvider(id, {
|
|
105
105
|
owner: props.owner,
|
package/src/aws/oidc/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./github-oidc-provider";
|
|
2
|
-
export * from "./oidc-provider";
|
|
1
|
+
export * from "./github-oidc-provider.js";
|
|
2
|
+
export * from "./oidc-provider.js";
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
type Tag,
|
|
8
8
|
UpdateAssumeRolePolicyCommand,
|
|
9
9
|
} from "@aws-sdk/client-iam";
|
|
10
|
-
import type { Context } from "../../context";
|
|
11
|
-
import { Resource } from "../../resource";
|
|
12
|
-
import { AccountId } from "../account-id";
|
|
10
|
+
import type { Context } from "../../context.js";
|
|
11
|
+
import { Resource } from "../../resource.js";
|
|
12
|
+
import { AccountId } from "../account-id.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Properties for configuring an AWS OIDC provider for GitHub Actions
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
IAMClient,
|
|
5
5
|
NoSuchEntityException,
|
|
6
6
|
} from "@aws-sdk/client-iam";
|
|
7
|
-
import type { Context } from "../context";
|
|
8
|
-
import { Resource } from "../resource";
|
|
9
|
-
import { ignore } from "../util/ignore";
|
|
7
|
+
import type { Context } from "../context.js";
|
|
8
|
+
import { Resource } from "../resource.js";
|
|
9
|
+
import { ignore } from "../util/ignore.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Properties for creating or updating a policy attachment
|
|
@@ -66,7 +66,7 @@ export const PolicyAttachment = Resource(
|
|
|
66
66
|
async function (
|
|
67
67
|
this: Context<PolicyAttachment>,
|
|
68
68
|
id: string,
|
|
69
|
-
props: PolicyAttachmentProps
|
|
69
|
+
props: PolicyAttachmentProps
|
|
70
70
|
) {
|
|
71
71
|
const client = new IAMClient({});
|
|
72
72
|
|
|
@@ -76,8 +76,8 @@ export const PolicyAttachment = Resource(
|
|
|
76
76
|
new DetachRolePolicyCommand({
|
|
77
77
|
PolicyArn: props.policyArn,
|
|
78
78
|
RoleName: props.roleName,
|
|
79
|
-
})
|
|
80
|
-
)
|
|
79
|
+
})
|
|
80
|
+
)
|
|
81
81
|
);
|
|
82
82
|
return this.destroy();
|
|
83
83
|
} else {
|
|
@@ -85,10 +85,10 @@ export const PolicyAttachment = Resource(
|
|
|
85
85
|
new AttachRolePolicyCommand({
|
|
86
86
|
PolicyArn: props.policyArn,
|
|
87
87
|
RoleName: props.roleName,
|
|
88
|
-
})
|
|
88
|
+
})
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
return this(props);
|
|
93
|
-
}
|
|
93
|
+
}
|
|
94
94
|
);
|
package/src/aws/policy.ts
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
ListPolicyVersionsCommand,
|
|
10
10
|
NoSuchEntityException,
|
|
11
11
|
} from "@aws-sdk/client-iam";
|
|
12
|
-
import type { Context } from "../context";
|
|
13
|
-
import { Resource } from "../resource";
|
|
12
|
+
import type { Context } from "../context.js";
|
|
13
|
+
import { Resource } from "../resource.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Type of effect for a policy statement
|
|
@@ -230,7 +230,7 @@ export const Policy = Resource(
|
|
|
230
230
|
async function (
|
|
231
231
|
this: Context<Policy>,
|
|
232
232
|
id: string,
|
|
233
|
-
props: PolicyProps
|
|
233
|
+
props: PolicyProps
|
|
234
234
|
): Promise<Policy> {
|
|
235
235
|
const client = new IAMClient({});
|
|
236
236
|
const policyArn = `arn:aws:iam::${process.env.AWS_ACCOUNT_ID}:policy${props.path || "/"}${props.policyName}`;
|
|
@@ -241,7 +241,7 @@ export const Policy = Resource(
|
|
|
241
241
|
const versions = await client.send(
|
|
242
242
|
new ListPolicyVersionsCommand({
|
|
243
243
|
PolicyArn: policyArn,
|
|
244
|
-
})
|
|
244
|
+
})
|
|
245
245
|
);
|
|
246
246
|
|
|
247
247
|
for (const version of versions.Versions || []) {
|
|
@@ -250,7 +250,7 @@ export const Policy = Resource(
|
|
|
250
250
|
new DeletePolicyVersionCommand({
|
|
251
251
|
PolicyArn: policyArn,
|
|
252
252
|
VersionId: version.VersionId,
|
|
253
|
-
})
|
|
253
|
+
})
|
|
254
254
|
);
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -259,7 +259,7 @@ export const Policy = Resource(
|
|
|
259
259
|
await client.send(
|
|
260
260
|
new DeletePolicyCommand({
|
|
261
261
|
PolicyArn: policyArn,
|
|
262
|
-
})
|
|
262
|
+
})
|
|
263
263
|
);
|
|
264
264
|
} catch (error: any) {
|
|
265
265
|
if (error.name !== NoSuchEntityException.name) {
|
|
@@ -273,7 +273,7 @@ export const Policy = Resource(
|
|
|
273
273
|
const existingPolicy = await client.send(
|
|
274
274
|
new GetPolicyCommand({
|
|
275
275
|
PolicyArn: policyArn,
|
|
276
|
-
})
|
|
276
|
+
})
|
|
277
277
|
);
|
|
278
278
|
|
|
279
279
|
// Get current policy version
|
|
@@ -281,11 +281,11 @@ export const Policy = Resource(
|
|
|
281
281
|
new GetPolicyVersionCommand({
|
|
282
282
|
PolicyArn: policyArn,
|
|
283
283
|
VersionId: existingPolicy.Policy!.DefaultVersionId!,
|
|
284
|
-
})
|
|
284
|
+
})
|
|
285
285
|
);
|
|
286
286
|
|
|
287
287
|
const currentDocument = JSON.parse(
|
|
288
|
-
decodeURIComponent(currentVersion.PolicyVersion!.Document!)
|
|
288
|
+
decodeURIComponent(currentVersion.PolicyVersion!.Document!)
|
|
289
289
|
);
|
|
290
290
|
|
|
291
291
|
// If policy document changed, create new version
|
|
@@ -296,13 +296,13 @@ export const Policy = Resource(
|
|
|
296
296
|
const versions = await client.send(
|
|
297
297
|
new ListPolicyVersionsCommand({
|
|
298
298
|
PolicyArn: policyArn,
|
|
299
|
-
})
|
|
299
|
+
})
|
|
300
300
|
);
|
|
301
301
|
|
|
302
302
|
// Delete oldest version if we have 5 versions (maximum allowed)
|
|
303
303
|
if (versions.Versions?.length === 5) {
|
|
304
304
|
const oldestVersion = versions.Versions.sort(
|
|
305
|
-
(a, b) => a.CreateDate!.getTime() - b.CreateDate!.getTime()
|
|
305
|
+
(a, b) => a.CreateDate!.getTime() - b.CreateDate!.getTime()
|
|
306
306
|
)[0];
|
|
307
307
|
|
|
308
308
|
if (!oldestVersion.IsDefaultVersion) {
|
|
@@ -310,7 +310,7 @@ export const Policy = Resource(
|
|
|
310
310
|
new DeletePolicyVersionCommand({
|
|
311
311
|
PolicyArn: policyArn,
|
|
312
312
|
VersionId: oldestVersion.VersionId!,
|
|
313
|
-
})
|
|
313
|
+
})
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -321,14 +321,14 @@ export const Policy = Resource(
|
|
|
321
321
|
PolicyArn: policyArn,
|
|
322
322
|
PolicyDocument: JSON.stringify(props.document),
|
|
323
323
|
SetAsDefault: true,
|
|
324
|
-
})
|
|
324
|
+
})
|
|
325
325
|
);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
const policy = await client.send(
|
|
329
329
|
new GetPolicyCommand({
|
|
330
330
|
PolicyArn: policyArn,
|
|
331
|
-
})
|
|
331
|
+
})
|
|
332
332
|
);
|
|
333
333
|
|
|
334
334
|
return this({
|
|
@@ -355,7 +355,7 @@ export const Policy = Resource(
|
|
|
355
355
|
Value,
|
|
356
356
|
}))
|
|
357
357
|
: undefined,
|
|
358
|
-
})
|
|
358
|
+
})
|
|
359
359
|
);
|
|
360
360
|
|
|
361
361
|
return this({
|
|
@@ -371,5 +371,5 @@ export const Policy = Resource(
|
|
|
371
371
|
throw error;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
}
|
|
374
|
+
}
|
|
375
375
|
);
|