@atlasauth/cli 0.25.0 → 0.26.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/CHANGELOG.md +37 -0
- package/README.md +26 -5
- package/dist/args.d.ts +631 -0
- package/dist/args.js +304 -0
- package/dist/args.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +19 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/actions-gallery.d.ts +8 -0
- package/dist/commands/actions-gallery.js +197 -0
- package/dist/commands/actions-gallery.js.map +1 -0
- package/dist/commands/actions.d.ts +13 -0
- package/dist/commands/actions.js +135 -0
- package/dist/commands/actions.js.map +1 -0
- package/dist/commands/admin.d.ts +49 -0
- package/dist/commands/admin.js +353 -0
- package/dist/commands/admin.js.map +1 -0
- package/dist/commands/api-keys.d.ts +4 -0
- package/dist/commands/api-keys.js +96 -0
- package/dist/commands/api-keys.js.map +1 -0
- package/dist/commands/auth.d.ts +25 -0
- package/dist/commands/auth.js +102 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/config.d.ts +128 -0
- package/dist/commands/config.js +1822 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/csp.d.ts +32 -0
- package/dist/commands/csp.js +180 -0
- package/dist/commands/csp.js.map +1 -0
- package/dist/commands/dev.d.ts +8 -0
- package/dist/commands/dev.js +84 -0
- package/dist/commands/dev.js.map +1 -0
- package/dist/commands/doctor-scan.d.ts +27 -0
- package/dist/commands/doctor-scan.js +221 -0
- package/dist/commands/doctor-scan.js.map +1 -0
- package/dist/commands/fga.d.ts +10 -0
- package/dist/commands/fga.js +146 -0
- package/dist/commands/fga.js.map +1 -0
- package/dist/commands/golive.d.ts +40 -0
- package/dist/commands/golive.js +297 -0
- package/dist/commands/golive.js.map +1 -0
- package/dist/commands/id-accounts.d.ts +13 -0
- package/dist/commands/id-accounts.js +195 -0
- package/dist/commands/id-accounts.js.map +1 -0
- package/dist/commands/import-better-auth.d.ts +3 -0
- package/dist/commands/import-better-auth.js +164 -0
- package/dist/commands/import-better-auth.js.map +1 -0
- package/dist/commands/import-jsonl.d.ts +50 -0
- package/dist/commands/import-jsonl.js +252 -0
- package/dist/commands/import-jsonl.js.map +1 -0
- package/dist/commands/import.d.ts +3 -0
- package/dist/commands/import.js +133 -0
- package/dist/commands/import.js.map +1 -0
- package/dist/commands/info.d.ts +75 -0
- package/dist/commands/info.js +362 -0
- package/dist/commands/info.js.map +1 -0
- package/dist/commands/init-next.d.ts +4 -0
- package/dist/commands/init-next.js +86 -0
- package/dist/commands/init-next.js.map +1 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.js +525 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/integrations.d.ts +8 -0
- package/dist/commands/integrations.js +112 -0
- package/dist/commands/integrations.js.map +1 -0
- package/dist/commands/listen.d.ts +17 -0
- package/dist/commands/listen.js +223 -0
- package/dist/commands/listen.js.map +1 -0
- package/dist/commands/mcp.d.ts +38 -0
- package/dist/commands/mcp.js +111 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/migrate.d.ts +16 -0
- package/dist/commands/migrate.js +114 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/move-origin.d.ts +11 -0
- package/dist/commands/move-origin.js +95 -0
- package/dist/commands/move-origin.js.map +1 -0
- package/dist/commands/operator.d.ts +18 -0
- package/dist/commands/operator.js +238 -0
- package/dist/commands/operator.js.map +1 -0
- package/dist/commands/orgs.d.ts +4 -0
- package/dist/commands/orgs.js +72 -0
- package/dist/commands/orgs.js.map +1 -0
- package/dist/commands/pages.d.ts +14 -0
- package/dist/commands/pages.js +113 -0
- package/dist/commands/pages.js.map +1 -0
- package/dist/commands/partner-platforms.d.ts +10 -0
- package/dist/commands/partner-platforms.js +157 -0
- package/dist/commands/partner-platforms.js.map +1 -0
- package/dist/commands/project-commands.d.ts +38 -0
- package/dist/commands/project-commands.js +431 -0
- package/dist/commands/project-commands.js.map +1 -0
- package/dist/commands/referrals.d.ts +69 -0
- package/dist/commands/referrals.js +1056 -0
- package/dist/commands/referrals.js.map +1 -0
- package/dist/commands/resources.d.ts +44 -0
- package/dist/commands/resources.js +234 -0
- package/dist/commands/resources.js.map +1 -0
- package/dist/commands/sessions.d.ts +4 -0
- package/dist/commands/sessions.js +28 -0
- package/dist/commands/sessions.js.map +1 -0
- package/dist/commands/setup-guide.d.ts +3 -0
- package/dist/commands/setup-guide.js +38 -0
- package/dist/commands/setup-guide.js.map +1 -0
- package/dist/commands/shared.d.ts +38 -0
- package/dist/commands/shared.js +69 -0
- package/dist/commands/shared.js.map +1 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/status.js +77 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/users.d.ts +4 -0
- package/dist/commands/users.js +111 -0
- package/dist/commands/users.js.map +1 -0
- package/dist/commands/webhooks.d.ts +34 -0
- package/dist/commands/webhooks.js +301 -0
- package/dist/commands/webhooks.js.map +1 -0
- package/dist/config-http.d.ts +38 -0
- package/dist/config-http.js +70 -0
- package/dist/config-http.js.map +1 -0
- package/dist/config.d.ts +64 -0
- package/dist/config.js +69 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +89 -0
- package/dist/context.js +32 -0
- package/dist/context.js.map +1 -0
- package/dist/define-config.d.ts +9 -0
- package/dist/define-config.js +8 -0
- package/dist/define-config.js.map +1 -0
- package/dist/errors.d.ts +15 -0
- package/dist/errors.js +25 -0
- package/dist/errors.js.map +1 -0
- package/dist/help.d.ts +8 -0
- package/dist/help.js +926 -0
- package/dist/help.js.map +1 -0
- package/dist/import/csv.d.ts +6 -0
- package/dist/import/csv.js +63 -0
- package/dist/import/csv.js.map +1 -0
- package/dist/import/vendors.d.ts +57 -0
- package/dist/import/vendors.js +568 -0
- package/dist/import/vendors.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/io.d.ts +21 -0
- package/dist/io.js +28 -0
- package/dist/io.js.map +1 -0
- package/dist/migrate/appwrite/plugin.d.ts +2 -0
- package/dist/migrate/appwrite/plugin.js +103 -0
- package/dist/migrate/appwrite/plugin.js.map +1 -0
- package/dist/migrate/auth0/plugin.d.ts +2 -0
- package/dist/migrate/auth0/plugin.js +126 -0
- package/dist/migrate/auth0/plugin.js.map +1 -0
- package/dist/migrate/authentik/plugin.d.ts +2 -0
- package/dist/migrate/authentik/plugin.js +135 -0
- package/dist/migrate/authentik/plugin.js.map +1 -0
- package/dist/migrate/azure-ad-b2c/plugin.d.ts +8 -0
- package/dist/migrate/azure-ad-b2c/plugin.js +165 -0
- package/dist/migrate/azure-ad-b2c/plugin.js.map +1 -0
- package/dist/migrate/better-auth/integration.d.ts +59 -0
- package/dist/migrate/better-auth/integration.js +81 -0
- package/dist/migrate/better-auth/integration.js.map +1 -0
- package/dist/migrate/better-auth/orchestrator.d.ts +43 -0
- package/dist/migrate/better-auth/orchestrator.js +525 -0
- package/dist/migrate/better-auth/orchestrator.js.map +1 -0
- package/dist/migrate/better-auth/output.d.ts +20 -0
- package/dist/migrate/better-auth/output.js +146 -0
- package/dist/migrate/better-auth/output.js.map +1 -0
- package/dist/migrate/better-auth/translate.d.ts +77 -0
- package/dist/migrate/better-auth/translate.js +1989 -0
- package/dist/migrate/better-auth/translate.js.map +1 -0
- package/dist/migrate/clerk/plugin.d.ts +2 -0
- package/dist/migrate/clerk/plugin.js +76 -0
- package/dist/migrate/clerk/plugin.js.map +1 -0
- package/dist/migrate/cognito/plugin.d.ts +5 -0
- package/dist/migrate/cognito/plugin.js +170 -0
- package/dist/migrate/cognito/plugin.js.map +1 -0
- package/dist/migrate/corbado/plugin.d.ts +2 -0
- package/dist/migrate/corbado/plugin.js +63 -0
- package/dist/migrate/corbado/plugin.js.map +1 -0
- package/dist/migrate/descope/plugin.d.ts +2 -0
- package/dist/migrate/descope/plugin.js +83 -0
- package/dist/migrate/descope/plugin.js.map +1 -0
- package/dist/migrate/entra-external-id/plugin.d.ts +8 -0
- package/dist/migrate/entra-external-id/plugin.js +12 -0
- package/dist/migrate/entra-external-id/plugin.js.map +1 -0
- package/dist/migrate/export/appwrite-config.d.ts +28 -0
- package/dist/migrate/export/appwrite-config.js +170 -0
- package/dist/migrate/export/appwrite-config.js.map +1 -0
- package/dist/migrate/export/appwrite.d.ts +51 -0
- package/dist/migrate/export/appwrite.js +288 -0
- package/dist/migrate/export/appwrite.js.map +1 -0
- package/dist/migrate/export/auth0-config.d.ts +29 -0
- package/dist/migrate/export/auth0-config.js +249 -0
- package/dist/migrate/export/auth0-config.js.map +1 -0
- package/dist/migrate/export/auth0.d.ts +62 -0
- package/dist/migrate/export/auth0.js +575 -0
- package/dist/migrate/export/auth0.js.map +1 -0
- package/dist/migrate/export/authentik-config.d.ts +45 -0
- package/dist/migrate/export/authentik-config.js +357 -0
- package/dist/migrate/export/authentik-config.js.map +1 -0
- package/dist/migrate/export/authentik.d.ts +110 -0
- package/dist/migrate/export/authentik.js +838 -0
- package/dist/migrate/export/authentik.js.map +1 -0
- package/dist/migrate/export/azure-config.d.ts +58 -0
- package/dist/migrate/export/azure-config.js +344 -0
- package/dist/migrate/export/azure-config.js.map +1 -0
- package/dist/migrate/export/azure.d.ts +85 -0
- package/dist/migrate/export/azure.js +373 -0
- package/dist/migrate/export/azure.js.map +1 -0
- package/dist/migrate/export/clerk-config.d.ts +26 -0
- package/dist/migrate/export/clerk-config.js +227 -0
- package/dist/migrate/export/clerk-config.js.map +1 -0
- package/dist/migrate/export/clerk.d.ts +46 -0
- package/dist/migrate/export/clerk.js +486 -0
- package/dist/migrate/export/clerk.js.map +1 -0
- package/dist/migrate/export/cognito-config.d.ts +25 -0
- package/dist/migrate/export/cognito-config.js +273 -0
- package/dist/migrate/export/cognito-config.js.map +1 -0
- package/dist/migrate/export/cognito.d.ts +103 -0
- package/dist/migrate/export/cognito.js +441 -0
- package/dist/migrate/export/cognito.js.map +1 -0
- package/dist/migrate/export/corbado-config.d.ts +20 -0
- package/dist/migrate/export/corbado-config.js +63 -0
- package/dist/migrate/export/corbado-config.js.map +1 -0
- package/dist/migrate/export/corbado.d.ts +37 -0
- package/dist/migrate/export/corbado.js +132 -0
- package/dist/migrate/export/corbado.js.map +1 -0
- package/dist/migrate/export/descope.d.ts +35 -0
- package/dist/migrate/export/descope.js +208 -0
- package/dist/migrate/export/descope.js.map +1 -0
- package/dist/migrate/export/fake-vendor.test-helper.d.ts +27 -0
- package/dist/migrate/export/fake-vendor.test-helper.js +41 -0
- package/dist/migrate/export/fake-vendor.test-helper.js.map +1 -0
- package/dist/migrate/export/firebase-config.d.ts +24 -0
- package/dist/migrate/export/firebase-config.js +215 -0
- package/dist/migrate/export/firebase-config.js.map +1 -0
- package/dist/migrate/export/firebase.d.ts +102 -0
- package/dist/migrate/export/firebase.js +464 -0
- package/dist/migrate/export/firebase.js.map +1 -0
- package/dist/migrate/export/frameworks/app-users.d.ts +42 -0
- package/dist/migrate/export/frameworks/app-users.js +161 -0
- package/dist/migrate/export/frameworks/app-users.js.map +1 -0
- package/dist/migrate/export/frameworks/authjs.d.ts +41 -0
- package/dist/migrate/export/frameworks/authjs.js +146 -0
- package/dist/migrate/export/frameworks/authjs.js.map +1 -0
- package/dist/migrate/export/frameworks/devise.d.ts +39 -0
- package/dist/migrate/export/frameworks/devise.js +218 -0
- package/dist/migrate/export/frameworks/devise.js.map +1 -0
- package/dist/migrate/export/frameworks/django.d.ts +45 -0
- package/dist/migrate/export/frameworks/django.js +315 -0
- package/dist/migrate/export/frameworks/django.js.map +1 -0
- package/dist/migrate/export/frameworks/lucia.d.ts +42 -0
- package/dist/migrate/export/frameworks/lucia.js +263 -0
- package/dist/migrate/export/frameworks/lucia.js.map +1 -0
- package/dist/migrate/export/frameworks/tables.d.ts +90 -0
- package/dist/migrate/export/frameworks/tables.js +325 -0
- package/dist/migrate/export/frameworks/tables.js.map +1 -0
- package/dist/migrate/export/frameworks/webauthn.d.ts +25 -0
- package/dist/migrate/export/frameworks/webauthn.js +130 -0
- package/dist/migrate/export/frameworks/webauthn.js.map +1 -0
- package/dist/migrate/export/frontegg-config.d.ts +29 -0
- package/dist/migrate/export/frontegg-config.js +238 -0
- package/dist/migrate/export/frontegg-config.js.map +1 -0
- package/dist/migrate/export/frontegg.d.ts +67 -0
- package/dist/migrate/export/frontegg.js +410 -0
- package/dist/migrate/export/frontegg.js.map +1 -0
- package/dist/migrate/export/fusionauth-config.d.ts +26 -0
- package/dist/migrate/export/fusionauth-config.js +226 -0
- package/dist/migrate/export/fusionauth-config.js.map +1 -0
- package/dist/migrate/export/fusionauth.d.ts +99 -0
- package/dist/migrate/export/fusionauth.js +642 -0
- package/dist/migrate/export/fusionauth.js.map +1 -0
- package/dist/migrate/export/hanko-config.d.ts +27 -0
- package/dist/migrate/export/hanko-config.js +265 -0
- package/dist/migrate/export/hanko-config.js.map +1 -0
- package/dist/migrate/export/hanko.d.ts +52 -0
- package/dist/migrate/export/hanko.js +605 -0
- package/dist/migrate/export/hanko.js.map +1 -0
- package/dist/migrate/export/keycloak-config.d.ts +19 -0
- package/dist/migrate/export/keycloak-config.js +219 -0
- package/dist/migrate/export/keycloak-config.js.map +1 -0
- package/dist/migrate/export/keycloak.d.ts +155 -0
- package/dist/migrate/export/keycloak.js +878 -0
- package/dist/migrate/export/keycloak.js.map +1 -0
- package/dist/migrate/export/kinde-descope-config.d.ts +38 -0
- package/dist/migrate/export/kinde-descope-config.js +172 -0
- package/dist/migrate/export/kinde-descope-config.js.map +1 -0
- package/dist/migrate/export/kinde.d.ts +57 -0
- package/dist/migrate/export/kinde.js +333 -0
- package/dist/migrate/export/kinde.js.map +1 -0
- package/dist/migrate/export/ldap.d.ts +53 -0
- package/dist/migrate/export/ldap.js +277 -0
- package/dist/migrate/export/ldap.js.map +1 -0
- package/dist/migrate/export/logto-config.d.ts +27 -0
- package/dist/migrate/export/logto-config.js +264 -0
- package/dist/migrate/export/logto-config.js.map +1 -0
- package/dist/migrate/export/logto.d.ts +150 -0
- package/dist/migrate/export/logto.js +809 -0
- package/dist/migrate/export/logto.js.map +1 -0
- package/dist/migrate/export/magic-config.d.ts +14 -0
- package/dist/migrate/export/magic-config.js +28 -0
- package/dist/migrate/export/magic-config.js.map +1 -0
- package/dist/migrate/export/magic.d.ts +31 -0
- package/dist/migrate/export/magic.js +93 -0
- package/dist/migrate/export/magic.js.map +1 -0
- package/dist/migrate/export/mini-yaml.d.ts +19 -0
- package/dist/migrate/export/mini-yaml.js +581 -0
- package/dist/migrate/export/mini-yaml.js.map +1 -0
- package/dist/migrate/export/nhost-config.d.ts +26 -0
- package/dist/migrate/export/nhost-config.js +360 -0
- package/dist/migrate/export/nhost-config.js.map +1 -0
- package/dist/migrate/export/nhost.d.ts +64 -0
- package/dist/migrate/export/nhost.js +304 -0
- package/dist/migrate/export/nhost.js.map +1 -0
- package/dist/migrate/export/okta-config.d.ts +30 -0
- package/dist/migrate/export/okta-config.js +205 -0
- package/dist/migrate/export/okta-config.js.map +1 -0
- package/dist/migrate/export/okta.d.ts +43 -0
- package/dist/migrate/export/okta.js +337 -0
- package/dist/migrate/export/okta.js.map +1 -0
- package/dist/migrate/export/onelogin.d.ts +22 -0
- package/dist/migrate/export/onelogin.js +123 -0
- package/dist/migrate/export/onelogin.js.map +1 -0
- package/dist/migrate/export/ory-config.d.ts +58 -0
- package/dist/migrate/export/ory-config.js +451 -0
- package/dist/migrate/export/ory-config.js.map +1 -0
- package/dist/migrate/export/ory.d.ts +81 -0
- package/dist/migrate/export/ory.js +555 -0
- package/dist/migrate/export/ory.js.map +1 -0
- package/dist/migrate/export/password-detect.d.ts +29 -0
- package/dist/migrate/export/password-detect.js +81 -0
- package/dist/migrate/export/password-detect.js.map +1 -0
- package/dist/migrate/export/pingone.d.ts +36 -0
- package/dist/migrate/export/pingone.js +218 -0
- package/dist/migrate/export/pingone.js.map +1 -0
- package/dist/migrate/export/plugin-kit.d.ts +25 -0
- package/dist/migrate/export/plugin-kit.js +82 -0
- package/dist/migrate/export/plugin-kit.js.map +1 -0
- package/dist/migrate/export/pocketbase-config.d.ts +28 -0
- package/dist/migrate/export/pocketbase-config.js +180 -0
- package/dist/migrate/export/pocketbase-config.js.map +1 -0
- package/dist/migrate/export/pocketbase.d.ts +52 -0
- package/dist/migrate/export/pocketbase.js +243 -0
- package/dist/migrate/export/pocketbase.js.map +1 -0
- package/dist/migrate/export/project-files.d.ts +15 -0
- package/dist/migrate/export/project-files.js +43 -0
- package/dist/migrate/export/project-files.js.map +1 -0
- package/dist/migrate/export/propelauth-config.d.ts +18 -0
- package/dist/migrate/export/propelauth-config.js +58 -0
- package/dist/migrate/export/propelauth-config.js.map +1 -0
- package/dist/migrate/export/propelauth-harness.test-helper.d.ts +62 -0
- package/dist/migrate/export/propelauth-harness.test-helper.js +109 -0
- package/dist/migrate/export/propelauth-harness.test-helper.js.map +1 -0
- package/dist/migrate/export/propelauth.d.ts +48 -0
- package/dist/migrate/export/propelauth.js +255 -0
- package/dist/migrate/export/propelauth.js.map +1 -0
- package/dist/migrate/export/record-set.d.ts +44 -0
- package/dist/migrate/export/record-set.js +98 -0
- package/dist/migrate/export/record-set.js.map +1 -0
- package/dist/migrate/export/source-lines.d.ts +17 -0
- package/dist/migrate/export/source-lines.js +43 -0
- package/dist/migrate/export/source-lines.js.map +1 -0
- package/dist/migrate/export/sso-metadata.d.ts +47 -0
- package/dist/migrate/export/sso-metadata.js +180 -0
- package/dist/migrate/export/sso-metadata.js.map +1 -0
- package/dist/migrate/export/stytch-config.d.ts +22 -0
- package/dist/migrate/export/stytch-config.js +102 -0
- package/dist/migrate/export/stytch-config.js.map +1 -0
- package/dist/migrate/export/stytch.d.ts +68 -0
- package/dist/migrate/export/stytch.js +510 -0
- package/dist/migrate/export/stytch.js.map +1 -0
- package/dist/migrate/export/supabase-config.d.ts +48 -0
- package/dist/migrate/export/supabase-config.js +408 -0
- package/dist/migrate/export/supabase-config.js.map +1 -0
- package/dist/migrate/export/supabase.d.ts +86 -0
- package/dist/migrate/export/supabase.js +524 -0
- package/dist/migrate/export/supabase.js.map +1 -0
- package/dist/migrate/export/supertokens-config.d.ts +20 -0
- package/dist/migrate/export/supertokens-config.js +150 -0
- package/dist/migrate/export/supertokens-config.js.map +1 -0
- package/dist/migrate/export/supertokens.d.ts +125 -0
- package/dist/migrate/export/supertokens.js +464 -0
- package/dist/migrate/export/supertokens.js.map +1 -0
- package/dist/migrate/export/table.d.ts +35 -0
- package/dist/migrate/export/table.js +248 -0
- package/dist/migrate/export/table.js.map +1 -0
- package/dist/migrate/export/translate-kit.d.ts +46 -0
- package/dist/migrate/export/translate-kit.js +148 -0
- package/dist/migrate/export/translate-kit.js.map +1 -0
- package/dist/migrate/export/userfront-config.d.ts +15 -0
- package/dist/migrate/export/userfront-config.js +49 -0
- package/dist/migrate/export/userfront-config.js.map +1 -0
- package/dist/migrate/export/userfront.d.ts +38 -0
- package/dist/migrate/export/userfront.js +189 -0
- package/dist/migrate/export/userfront.js.map +1 -0
- package/dist/migrate/export/vendor-http.d.ts +46 -0
- package/dist/migrate/export/vendor-http.js +138 -0
- package/dist/migrate/export/vendor-http.js.map +1 -0
- package/dist/migrate/export/workos-config.d.ts +23 -0
- package/dist/migrate/export/workos-config.js +125 -0
- package/dist/migrate/export/workos-config.js.map +1 -0
- package/dist/migrate/export/workos.d.ts +46 -0
- package/dist/migrate/export/workos.js +272 -0
- package/dist/migrate/export/workos.js.map +1 -0
- package/dist/migrate/export/zip.d.ts +8 -0
- package/dist/migrate/export/zip.js +66 -0
- package/dist/migrate/export/zip.js.map +1 -0
- package/dist/migrate/export/zitadel-config.d.ts +37 -0
- package/dist/migrate/export/zitadel-config.js +279 -0
- package/dist/migrate/export/zitadel-config.js.map +1 -0
- package/dist/migrate/export/zitadel.d.ts +82 -0
- package/dist/migrate/export/zitadel.js +447 -0
- package/dist/migrate/export/zitadel.js.map +1 -0
- package/dist/migrate/firebase/plugin.d.ts +2 -0
- package/dist/migrate/firebase/plugin.js +152 -0
- package/dist/migrate/firebase/plugin.js.map +1 -0
- package/dist/migrate/framework/builtins.d.ts +2 -0
- package/dist/migrate/framework/builtins.js +52 -0
- package/dist/migrate/framework/builtins.js.map +1 -0
- package/dist/migrate/framework/commands.d.ts +20 -0
- package/dist/migrate/framework/commands.js +58 -0
- package/dist/migrate/framework/commands.js.map +1 -0
- package/dist/migrate/framework/custom.d.ts +12 -0
- package/dist/migrate/framework/custom.js +96 -0
- package/dist/migrate/framework/custom.js.map +1 -0
- package/dist/migrate/framework/orchestrator.d.ts +113 -0
- package/dist/migrate/framework/orchestrator.js +532 -0
- package/dist/migrate/framework/orchestrator.js.map +1 -0
- package/dist/migrate/framework/plugin.d.ts +167 -0
- package/dist/migrate/framework/plugin.js +3 -0
- package/dist/migrate/framework/plugin.js.map +1 -0
- package/dist/migrate/framework/registry.d.ts +11 -0
- package/dist/migrate/framework/registry.js +44 -0
- package/dist/migrate/framework/registry.js.map +1 -0
- package/dist/migrate/framework/report.d.ts +17 -0
- package/dist/migrate/framework/report.js +103 -0
- package/dist/migrate/framework/report.js.map +1 -0
- package/dist/migrate/frameworks/plugins.d.ts +29 -0
- package/dist/migrate/frameworks/plugins.js +402 -0
- package/dist/migrate/frameworks/plugins.js.map +1 -0
- package/dist/migrate/frameworks/report.d.ts +92 -0
- package/dist/migrate/frameworks/report.js +207 -0
- package/dist/migrate/frameworks/report.js.map +1 -0
- package/dist/migrate/frameworks/translate-js.d.ts +5 -0
- package/dist/migrate/frameworks/translate-js.js +503 -0
- package/dist/migrate/frameworks/translate-js.js.map +1 -0
- package/dist/migrate/frameworks/translate-rails-django.d.ts +3 -0
- package/dist/migrate/frameworks/translate-rails-django.js +1391 -0
- package/dist/migrate/frameworks/translate-rails-django.js.map +1 -0
- package/dist/migrate/frontegg/plugin.d.ts +2 -0
- package/dist/migrate/frontegg/plugin.js +78 -0
- package/dist/migrate/frontegg/plugin.js.map +1 -0
- package/dist/migrate/fusionauth/plugin.d.ts +2 -0
- package/dist/migrate/fusionauth/plugin.js +109 -0
- package/dist/migrate/fusionauth/plugin.js.map +1 -0
- package/dist/migrate/hanko/plugin.d.ts +2 -0
- package/dist/migrate/hanko/plugin.js +100 -0
- package/dist/migrate/hanko/plugin.js.map +1 -0
- package/dist/migrate/keycloak/plugin.d.ts +2 -0
- package/dist/migrate/keycloak/plugin.js +148 -0
- package/dist/migrate/keycloak/plugin.js.map +1 -0
- package/dist/migrate/kinde/plugin.d.ts +2 -0
- package/dist/migrate/kinde/plugin.js +105 -0
- package/dist/migrate/kinde/plugin.js.map +1 -0
- package/dist/migrate/ldap/plugin.d.ts +2 -0
- package/dist/migrate/ldap/plugin.js +73 -0
- package/dist/migrate/ldap/plugin.js.map +1 -0
- package/dist/migrate/logto/plugin.d.ts +2 -0
- package/dist/migrate/logto/plugin.js +131 -0
- package/dist/migrate/logto/plugin.js.map +1 -0
- package/dist/migrate/magic/plugin.d.ts +2 -0
- package/dist/migrate/magic/plugin.js +56 -0
- package/dist/migrate/magic/plugin.js.map +1 -0
- package/dist/migrate/nhost/plugin.d.ts +2 -0
- package/dist/migrate/nhost/plugin.js +115 -0
- package/dist/migrate/nhost/plugin.js.map +1 -0
- package/dist/migrate/oidc/plugin.d.ts +2 -0
- package/dist/migrate/oidc/plugin.js +73 -0
- package/dist/migrate/oidc/plugin.js.map +1 -0
- package/dist/migrate/okta/plugin.d.ts +2 -0
- package/dist/migrate/okta/plugin.js +105 -0
- package/dist/migrate/okta/plugin.js.map +1 -0
- package/dist/migrate/onelogin/plugin.d.ts +2 -0
- package/dist/migrate/onelogin/plugin.js +61 -0
- package/dist/migrate/onelogin/plugin.js.map +1 -0
- package/dist/migrate/ory/plugin.d.ts +2 -0
- package/dist/migrate/ory/plugin.js +186 -0
- package/dist/migrate/ory/plugin.js.map +1 -0
- package/dist/migrate/ping-identity/plugin.d.ts +2 -0
- package/dist/migrate/ping-identity/plugin.js +100 -0
- package/dist/migrate/ping-identity/plugin.js.map +1 -0
- package/dist/migrate/pocketbase/plugin.d.ts +2 -0
- package/dist/migrate/pocketbase/plugin.js +99 -0
- package/dist/migrate/pocketbase/plugin.js.map +1 -0
- package/dist/migrate/propelauth/plugin.d.ts +2 -0
- package/dist/migrate/propelauth/plugin.js +65 -0
- package/dist/migrate/propelauth/plugin.js.map +1 -0
- package/dist/migrate/saml/plugin.d.ts +2 -0
- package/dist/migrate/saml/plugin.js +79 -0
- package/dist/migrate/saml/plugin.js.map +1 -0
- package/dist/migrate/stytch/plugin.d.ts +2 -0
- package/dist/migrate/stytch/plugin.js +97 -0
- package/dist/migrate/stytch/plugin.js.map +1 -0
- package/dist/migrate/supabase/plugin.d.ts +2 -0
- package/dist/migrate/supabase/plugin.js +149 -0
- package/dist/migrate/supabase/plugin.js.map +1 -0
- package/dist/migrate/supertokens/plugin.d.ts +2 -0
- package/dist/migrate/supertokens/plugin.js +114 -0
- package/dist/migrate/supertokens/plugin.js.map +1 -0
- package/dist/migrate/user-table/plugin.d.ts +2 -0
- package/dist/migrate/user-table/plugin.js +62 -0
- package/dist/migrate/user-table/plugin.js.map +1 -0
- package/dist/migrate/userfront/plugin.d.ts +2 -0
- package/dist/migrate/userfront/plugin.js +60 -0
- package/dist/migrate/userfront/plugin.js.map +1 -0
- package/dist/migrate/workos/plugin.d.ts +2 -0
- package/dist/migrate/workos/plugin.js +81 -0
- package/dist/migrate/workos/plugin.js.map +1 -0
- package/dist/migrate/zitadel/plugin.d.ts +2 -0
- package/dist/migrate/zitadel/plugin.js +114 -0
- package/dist/migrate/zitadel/plugin.js.map +1 -0
- package/dist/output.d.ts +41 -0
- package/dist/output.js +72 -0
- package/dist/output.js.map +1 -0
- package/dist/project.d.ts +64 -0
- package/dist/project.js +86 -0
- package/dist/project.js.map +1 -0
- package/dist/prompt.d.ts +15 -0
- package/dist/prompt.js +46 -0
- package/dist/prompt.js.map +1 -0
- package/dist/redact.d.ts +41 -0
- package/dist/redact.js +115 -0
- package/dist/redact.js.map +1 -0
- package/dist/run.d.ts +12 -0
- package/dist/run.js +169 -0
- package/dist/run.js.map +1 -0
- package/dist/secrets.d.ts +41 -0
- package/dist/secrets.js +142 -0
- package/dist/secrets.js.map +1 -0
- package/dist/serialize.d.ts +30 -0
- package/dist/serialize.js +131 -0
- package/dist/serialize.js.map +1 -0
- package/dist/version.d.ts +7 -0
- package/dist/version.js +21 -0
- package/dist/version.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/migrate/firebase/plugin.ts"],"names":[],"mappings":";;;AAAA,iDAAgH;AAChH,+DAAyF;AACzF,yCAAwC;AAExC,qDAA6E;AAE7E;;;;;;;;GAQG;AAEH,MAAM,OAAO,GAAmB,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,EAAE,qBAAqB,EAAE,KAAK,EAAE,yCAAyC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAC9J,MAAM,eAAe,GAAmB,EAAE,IAAI,EAAE,4BAA4B,EAAE,GAAG,EAAE,gCAAgC,EAAE,KAAK,EAAE,sEAAsE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AACpO,MAAM,YAAY,GAAmB,EAAE,IAAI,EAAE,yBAAyB,EAAE,GAAG,EAAE,uBAAuB,EAAE,KAAK,EAAE,wEAAwE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AACvN,MAAM,UAAU,GAAmB,EAAE,IAAI,EAAE,uBAAuB,EAAE,GAAG,EAAE,qBAAqB,EAAE,KAAK,EAAE,2CAA2C,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AACtK,MAAM,MAAM,GAAmB,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,kFAAkF,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AACpM,MAAM,SAAS,GAAmB,EAAE,IAAI,EAAE,sBAAsB,EAAE,GAAG,E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K;gBAAE,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC;YAC1D,gGAAgG;YAChG,MAAM,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACrC,IAAI,MAAM;gBAAE,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;YACpC,OAAO,MAAM,CAAC;QAChB,CAAC;KACF;IACD,OAAO,EAAE,UAAU;CACpB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerBuiltInPlugins = registerBuiltInPlugins;
|
|
4
|
+
const plugin_1 = require("../ldap/plugin");
|
|
5
|
+
const plugin_2 = require("../oidc/plugin");
|
|
6
|
+
const plugin_3 = require("../onelogin/plugin");
|
|
7
|
+
const plugin_4 = require("../ping-identity/plugin");
|
|
8
|
+
const plugin_5 = require("../saml/plugin");
|
|
9
|
+
const plugin_6 = require("../user-table/plugin");
|
|
10
|
+
const plugin_7 = require("../auth0/plugin");
|
|
11
|
+
const plugin_8 = require("../clerk/plugin");
|
|
12
|
+
const plugin_9 = require("../descope/plugin");
|
|
13
|
+
const plugin_10 = require("../kinde/plugin");
|
|
14
|
+
const plugin_11 = require("../okta/plugin");
|
|
15
|
+
const plugins_1 = require("../frameworks/plugins");
|
|
16
|
+
const plugin_12 = require("../appwrite/plugin");
|
|
17
|
+
const plugin_13 = require("../azure-ad-b2c/plugin");
|
|
18
|
+
const plugin_14 = require("../cognito/plugin");
|
|
19
|
+
const plugin_15 = require("../entra-external-id/plugin");
|
|
20
|
+
const plugin_16 = require("../firebase/plugin");
|
|
21
|
+
const plugin_17 = require("../nhost/plugin");
|
|
22
|
+
const plugin_18 = require("../pocketbase/plugin");
|
|
23
|
+
const plugin_19 = require("../supabase/plugin");
|
|
24
|
+
const plugin_20 = require("../authentik/plugin");
|
|
25
|
+
const plugin_21 = require("../fusionauth/plugin");
|
|
26
|
+
const plugin_22 = require("../hanko/plugin");
|
|
27
|
+
const plugin_23 = require("../keycloak/plugin");
|
|
28
|
+
const plugin_24 = require("../logto/plugin");
|
|
29
|
+
const plugin_25 = require("../ory/plugin");
|
|
30
|
+
const plugin_26 = require("../supertokens/plugin");
|
|
31
|
+
const plugin_27 = require("../zitadel/plugin");
|
|
32
|
+
const plugin_28 = require("../corbado/plugin");
|
|
33
|
+
const plugin_29 = require("../frontegg/plugin");
|
|
34
|
+
const plugin_30 = require("../magic/plugin");
|
|
35
|
+
const plugin_31 = require("../propelauth/plugin");
|
|
36
|
+
const plugin_32 = require("../stytch/plugin");
|
|
37
|
+
const plugin_33 = require("../userfront/plugin");
|
|
38
|
+
const plugin_34 = require("../workos/plugin");
|
|
39
|
+
const custom_1 = require("./custom");
|
|
40
|
+
const registry_1 = require("./registry");
|
|
41
|
+
/**
|
|
42
|
+
* The plugins `atlas migrate <vendor>` ships with. A vendor track adds one
|
|
43
|
+
* line here (its plugin module lives under src/migrate/<vendor>/).
|
|
44
|
+
*/
|
|
45
|
+
const BUILT_IN_PLUGINS = [custom_1.customPlugin, plugin_8.clerkPlugin, plugin_7.auth0Plugin, plugin_11.oktaPlugin, plugin_10.kindePlugin, plugin_9.descopePlugin, ...plugins_1.FRAMEWORK_PLUGINS, plugin_16.firebasePlugin, plugin_19.supabasePlugin, plugin_14.cognitoPlugin, plugin_13.azureAdB2cPlugin, plugin_15.entraExternalIdPlugin, plugin_12.appwritePlugin, plugin_18.pocketbasePlugin, plugin_17.nhostPlugin, plugin_23.keycloakPlugin, plugin_25.oryPlugin, plugin_27.zitadelPlugin, plugin_24.logtoPlugin, plugin_26.supertokensPlugin, plugin_20.authentikPlugin, plugin_21.fusionauthPlugin, plugin_22.hankoPlugin, plugin_34.workosPlugin, plugin_32.stytchPlugin, plugin_29.fronteggPlugin, plugin_31.propelauthPlugin, plugin_30.magicPlugin, plugin_33.userfrontPlugin, plugin_28.corbadoPlugin, plugin_4.pingIdentityPlugin, plugin_3.oneLoginPlugin, plugin_5.samlPlugin, plugin_2.oidcPlugin, plugin_1.ldapPlugin, plugin_6.userTablePlugin];
|
|
46
|
+
/** Register the built-in plugins (idempotent: an already registered vendor is left as it is). */
|
|
47
|
+
function registerBuiltInPlugins() {
|
|
48
|
+
for (const plugin of BUILT_IN_PLUGINS)
|
|
49
|
+
if (!(0, registry_1.hasMigrationPlugin)(plugin.vendor))
|
|
50
|
+
(0, registry_1.registerMigrationPlugin)(plugin);
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=builtins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtins.js","sourceRoot":"","sources":["../../../src/migrate/framework/builtins.ts"],"names":[],"mappings":";;AA6CA,wDAEC;AA/CD,2CAA4C;AAC5C,2CAA4C;AAC5C,+CAAoD;AACpD,oDAA6D;AAC7D,2CAA4C;AAC5C,iDAAuD;AACvD,4CAA8C;AAC9C,4CAA8C;AAC9C,8CAAkD;AAClD,6CAA8C;AAC9C,4CAA4C;AAC5C,mDAA0D;AAC1D,gDAAoD;AACpD,oDAA0D;AAC1D,+CAAkD;AAClD,yDAAoE;AACpE,gDAAoD;AACpD,6CAA8C;AAC9C,kDAAwD;AACxD,gDAAoD;AACpD,iDAAsD;AACtD,kDAAwD;AACxD,6CAA8C;AAC9C,gDAAoD;AACpD,6CAA8C;AAC9C,2CAA0C;AAC1C,mDAA0D;AAC1D,+CAAkD;AAClD,+CAAkD;AAClD,gDAAoD;AACpD,6CAA8C;AAC9C,kDAAwD;AACxD,8CAAgD;AAChD,iDAAsD;AACtD,8CAAgD;AAChD,qCAAwC;AACxC,yCAAyE;AAEzE;;;GAGG;AACH,MAAM,gBAAgB,GAAG,CAAC,qBAAY,EAAE,oBAAW,EAAE,oBAAW,EAAE,oBAAU,EAAE,qBAAW,EAAE,sBAAa,EAAE,GAAG,2BAAiB,EAAE,wBAAc,EAAE,wBAAc,EAAE,uBAAa,EAAE,0BAAgB,EAAE,+BAAqB,EAAE,wBAAc,EAAE,0BAAgB,EAAE,qBAAW,EAAE,wBAAc,EAAE,mBAAS,EAAE,uBAAa,EAAE,qBAAW,EAAE,2BAAiB,EAAE,yBAAe,EAAE,0BAAgB,EAAE,qBAAW,EAAE,sBAAY,EAAE,sBAAY,EAAE,wBAAc,EAAE,0BAAgB,EAAE,qBAAW,EAAE,yBAAe,EAAE,uBAAa,EAAE,2BAAkB,EAAE,uBAAc,EAAE,mBAAU,EAAE,mBAAU,EAAE,mBAAU,EAAE,wBAAe,CAAC,CAAC;AAErkB,iGAAiG;AACjG,SAAgB,sBAAsB;IACpC,KAAK,MAAM,MAAM,IAAI,gBAAgB;QAAE,IAAI,CAAC,IAAA,6BAAkB,EAAC,MAAM,CAAC,MAAM,CAAC;YAAE,IAAA,kCAAuB,EAAC,MAAM,CAAC,CAAC;AACjH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ParsedArgs } from '../../args';
|
|
2
|
+
import type { RunContext } from '../../context';
|
|
3
|
+
/**
|
|
4
|
+
* `atlas migrate <vendor> [step] [path]` and `atlas migrate export <vendor> [path]`
|
|
5
|
+
* for every vendor with a plugin. With no step the whole program runs (see
|
|
6
|
+
* orchestrator.ts); a step runs on its own, reading and updating the same
|
|
7
|
+
* state file, so `export` today and `import` tomorrow work.
|
|
8
|
+
*/
|
|
9
|
+
/** Steps a user can run on their own. */
|
|
10
|
+
export declare const SINGLE_STEPS: readonly ["config", "export", "import", "bridge", "lazy", "verify"];
|
|
11
|
+
export declare function knownVendors(): string[];
|
|
12
|
+
/** True when `vendor` names a registered plugin. */
|
|
13
|
+
export declare function hasPlugin(vendor: string | undefined): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Dispatch `atlas migrate <vendor> …`. `positionals` are the words after
|
|
16
|
+
* `migrate` (`[vendor, step?, path?]`); a word that is not a step is the path.
|
|
17
|
+
*/
|
|
18
|
+
export declare function migrateWithPlugin(ctx: RunContext, args: ParsedArgs, vendor: string, rest: string[]): Promise<number>;
|
|
19
|
+
/** `atlas migrate export <vendor> [path]` — an alias of `atlas migrate <vendor> export [path]`. */
|
|
20
|
+
export declare function migrateExportAlias(ctx: RunContext, args: ParsedArgs, rest: string[]): Promise<number>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SINGLE_STEPS = void 0;
|
|
4
|
+
exports.knownVendors = knownVendors;
|
|
5
|
+
exports.hasPlugin = hasPlugin;
|
|
6
|
+
exports.migrateWithPlugin = migrateWithPlugin;
|
|
7
|
+
exports.migrateExportAlias = migrateExportAlias;
|
|
8
|
+
const errors_1 = require("../../errors");
|
|
9
|
+
const builtins_1 = require("./builtins");
|
|
10
|
+
const orchestrator_1 = require("./orchestrator");
|
|
11
|
+
const registry_1 = require("./registry");
|
|
12
|
+
/**
|
|
13
|
+
* `atlas migrate <vendor> [step] [path]` and `atlas migrate export <vendor> [path]`
|
|
14
|
+
* for every vendor with a plugin. With no step the whole program runs (see
|
|
15
|
+
* orchestrator.ts); a step runs on its own, reading and updating the same
|
|
16
|
+
* state file, so `export` today and `import` tomorrow work.
|
|
17
|
+
*/
|
|
18
|
+
/** Steps a user can run on their own. */
|
|
19
|
+
exports.SINGLE_STEPS = ['config', 'export', 'import', 'bridge', 'lazy', 'verify'];
|
|
20
|
+
function knownVendors() {
|
|
21
|
+
(0, builtins_1.registerBuiltInPlugins)();
|
|
22
|
+
return (0, registry_1.migrationPlugins)().map((p) => p.vendor);
|
|
23
|
+
}
|
|
24
|
+
/** True when `vendor` names a registered plugin. */
|
|
25
|
+
function hasPlugin(vendor) {
|
|
26
|
+
(0, builtins_1.registerBuiltInPlugins)();
|
|
27
|
+
return !!vendor && !!(0, registry_1.migrationPlugin)(vendor);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Dispatch `atlas migrate <vendor> …`. `positionals` are the words after
|
|
31
|
+
* `migrate` (`[vendor, step?, path?]`); a word that is not a step is the path.
|
|
32
|
+
*/
|
|
33
|
+
async function migrateWithPlugin(ctx, args, vendor, rest) {
|
|
34
|
+
(0, builtins_1.registerBuiltInPlugins)();
|
|
35
|
+
const plugin = (0, registry_1.migrationPlugin)(vendor);
|
|
36
|
+
if (!plugin)
|
|
37
|
+
throw new errors_1.CliError(`No migration plugin for '${vendor}'. Vendors: ${knownVendors().join(', ')}, better-auth.`);
|
|
38
|
+
const [first, second] = rest;
|
|
39
|
+
const step = first && exports.SINGLE_STEPS.includes(first) ? first : undefined;
|
|
40
|
+
const path = step ? second : first;
|
|
41
|
+
if (step === 'config' && !plugin.config)
|
|
42
|
+
throw new errors_1.CliError(`${plugin.label} has no configuration translator yet.`);
|
|
43
|
+
if ((step === 'export' || step === 'import') && !plugin.export)
|
|
44
|
+
throw new errors_1.CliError(`${plugin.label} has no exporter yet.`);
|
|
45
|
+
if (step === 'bridge' && !plugin.bridge)
|
|
46
|
+
throw new errors_1.CliError(`${plugin.label} has no session bridge preset.`);
|
|
47
|
+
if (step === 'lazy' && !plugin.lazy)
|
|
48
|
+
throw new errors_1.CliError(`${plugin.label} has no lazy-migration preset.`);
|
|
49
|
+
return (0, orchestrator_1.migrateVendor)(ctx, args, plugin, path, step);
|
|
50
|
+
}
|
|
51
|
+
/** `atlas migrate export <vendor> [path]` — an alias of `atlas migrate <vendor> export [path]`. */
|
|
52
|
+
async function migrateExportAlias(ctx, args, rest) {
|
|
53
|
+
const [vendor, path] = rest;
|
|
54
|
+
if (!vendor)
|
|
55
|
+
throw new errors_1.CliError(`migrate export needs a vendor: ${knownVendors().join(', ')}.`);
|
|
56
|
+
return migrateWithPlugin(ctx, args, vendor, path ? ['export', path] : ['export']);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/migrate/framework/commands.ts"],"names":[],"mappings":";;;AAiBA,oCAGC;AAG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anonicalFileRecord {
|
|
4
|
+
model: CanonicalModel;
|
|
5
|
+
data: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
/** Parse NDJSON or a JSON array of `{ model, data }`. Unknown models are returned in `unknown`. */
|
|
8
|
+
export declare function parseCanonicalRecords(text: string): {
|
|
9
|
+
records: CanonicalFileRecord[];
|
|
10
|
+
unknown: Record<string, number>;
|
|
11
|
+
};
|
|
12
|
+
export declare const customPlugin: MigrationPlugin;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customPlugin = void 0;
|
|
4
|
+
exports.parseCanonicalRecords = parseCanonicalRecords;
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
const migrate_1 = require("@atlasauth/migrate");
|
|
7
|
+
const args_1 = require("../../args");
|
|
8
|
+
const errors_1 = require("../../errors");
|
|
9
|
+
/**
|
|
10
|
+
* `atlas migrate custom export --file <records>` — your own user store through
|
|
11
|
+
* the same pipeline as every vendor. The file holds canonical records (the
|
|
12
|
+
* `@atlasauth/migrate` schema v1), as NDJSON (one `{ "model": …, "data": … }`
|
|
13
|
+
* per line) or a JSON array of them; `{ "type": "record", … }` entries from a
|
|
14
|
+
* decrypted bundle are accepted too. Records are written in canonical model
|
|
15
|
+
* order whatever order the file has them in; an invalid record is left out and
|
|
16
|
+
* reported, never fatal.
|
|
17
|
+
*
|
|
18
|
+
* The file is read on this machine; only the sealed bundle goes to Atlas.
|
|
19
|
+
*/
|
|
20
|
+
/** Records between two export checkpoints. */
|
|
21
|
+
const CHECKPOINT_EVERY = 1000;
|
|
22
|
+
/** Parse NDJSON or a JSON array of `{ model, data }`. Unknown models are returned in `unknown`. */
|
|
23
|
+
function parseCanonicalRecords(text) {
|
|
24
|
+
const trimmed = text.trim();
|
|
25
|
+
let raw;
|
|
26
|
+
if (!trimmed)
|
|
27
|
+
raw = [];
|
|
28
|
+
else if (trimmed.startsWith('[')) {
|
|
29
|
+
try {
|
|
30
|
+
raw = JSON.parse(trimmed);
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
throw new errors_1.CliError('The records file is not valid JSON.');
|
|
34
|
+
}
|
|
35
|
+
if (!Array.isArray(raw))
|
|
36
|
+
throw new errors_1.CliError('The records file must be a JSON array or NDJSON.');
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
raw = trimmed.split('\n').filter((l) => l.trim()).map((line, i) => {
|
|
40
|
+
try {
|
|
41
|
+
return JSON.parse(line);
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
throw new errors_1.CliError(`Line ${i + 1} of the records file is not valid JSON.`);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
const records = [];
|
|
49
|
+
const unknown = {};
|
|
50
|
+
for (const entry of raw) {
|
|
51
|
+
if (!entry || typeof entry !== 'object')
|
|
52
|
+
continue;
|
|
53
|
+
const e = entry;
|
|
54
|
+
if (e.type !== undefined && e.type !== 'record')
|
|
55
|
+
continue; // manifest / end lines of a decrypted bundle
|
|
56
|
+
const model = String(e.model ?? '');
|
|
57
|
+
if (!(0, migrate_1.isCanonicalModel)(model) || !e.data || typeof e.data !== 'object') {
|
|
58
|
+
unknown[model || '(none)'] = (unknown[model || '(none)'] ?? 0) + 1;
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
records.push({ model, data: e.data });
|
|
62
|
+
}
|
|
63
|
+
const rank = (m) => migrate_1.CANONICAL_MODEL_ORDER.indexOf(m);
|
|
64
|
+
// Stable: records of one model keep the file's order.
|
|
65
|
+
records.sort((a, b) => rank(a.model) - rank(b.model));
|
|
66
|
+
return { records, unknown };
|
|
67
|
+
}
|
|
68
|
+
exports.customPlugin = {
|
|
69
|
+
vendor: 'custom',
|
|
70
|
+
source: 'custom',
|
|
71
|
+
label: 'Your own user database',
|
|
72
|
+
help: 'Import a homegrown user store: write its users, identities, organizations and so on as canonical migration records (NDJSON or a JSON array of { model, data }), then run atlas migrate custom export --file <records> and atlas migrate custom import.',
|
|
73
|
+
export: {
|
|
74
|
+
reads: 'a local file of canonical migration records (--file)',
|
|
75
|
+
credentials: [],
|
|
76
|
+
async run(p, writer, resume) {
|
|
77
|
+
const file = (0, args_1.str)(p.args.values, 'file') ?? p.credential({ flag: 'file', env: 'ATLAS_MIGRATE_FILE', label: 'the records file (--file)', required: true });
|
|
78
|
+
const { records, unknown } = parseCanonicalRecords(p.ctx.readFile((0, node_path_1.resolve)(file)));
|
|
79
|
+
for (const [model, n] of Object.entries(unknown))
|
|
80
|
+
writer.omit(model, 'not a canonical model (or no data)', n);
|
|
81
|
+
const start = typeof resume.cursor === 'number' ? resume.cursor : 0;
|
|
82
|
+
if (start)
|
|
83
|
+
p.say(` resuming at record ${start + 1} of ${records.length}`);
|
|
84
|
+
for (let i = start; i < records.length; i++) {
|
|
85
|
+
const r = records[i];
|
|
86
|
+
const issues = await writer.add(r.model, r.data);
|
|
87
|
+
if (issues.length)
|
|
88
|
+
p.say(` left out ${r.model} #${i + 1}: ${issues[0].message}`);
|
|
89
|
+
if ((i + 1) % CHECKPOINT_EVERY === 0)
|
|
90
|
+
resume.checkpoint(i + 1);
|
|
91
|
+
}
|
|
92
|
+
p.say(` read ${records.length} record(s) from ${file}`);
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=custom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom.js","sourceRoot":"","sources":["../../../src/migrate/framework/custom.ts"],"names":[],"mappings":";;;AA2BA,sDAqCC;AAhED,yCAAoC;AACpC,gDAA4H;AAC5H,qCAAiC;AACjC,yCAAwC;AAGxC;;;;;;;;;;GAUG;AAEH,8CAA8C;AAC9C,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAO9B,mGAAmG;AACnG,SAAgB,qBAAqB,CAAC,IAAY;IAChD,MAAM,OAAO,GAAG,I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G,CAAC,UAAU,OAAO,CAAC,MAAM,mBAAmB,IAAI,EAAE,CAAC,CAAC;QAC3D,CAAC;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { type MigrationSource } from '@atlasauth/migrate';
|
|
2
|
+
import { type ParsedArgs } from '../../args';
|
|
3
|
+
import type { ConfigHttp } from '../../config-http';
|
|
4
|
+
import type { RunContext } from '../../context';
|
|
5
|
+
import type { Format, Json } from '../../serialize';
|
|
6
|
+
import type { MigrationPlugin, PluginContext, TranslationResult } from './plugin';
|
|
7
|
+
/**
|
|
8
|
+
* `atlas migrate <vendor> [path]` — the program for any vendor with a
|
|
9
|
+
* {@link MigrationPlugin}, as one resumable run:
|
|
10
|
+
*
|
|
11
|
+
* preflight → config → export → import → bridge → lazy → code → verify
|
|
12
|
+
*
|
|
13
|
+
* Each finished step is checkpointed in atlas-migrate/<vendor>/state.json, so
|
|
14
|
+
* `--resume` carries on where a run stopped (a confirmation declined, a vendor
|
|
15
|
+
* credential missing, an export interrupted). `--dry-run` walks every step
|
|
16
|
+
* without touching the instance, the vendor or the code; `--yes` answers every
|
|
17
|
+
* confirmation. A single step runs on its own with `atlas migrate <vendor> <step>`.
|
|
18
|
+
*
|
|
19
|
+
* EXPORT RESUME. A sealed bundle cannot be appended to, so an export is written
|
|
20
|
+
* as one or more SEGMENTS (bundle.1.atlas, bundle.2.atlas, …), each a complete
|
|
21
|
+
* bundle. The exporter calls `checkpoint(cursor)` as it goes; when it stops on
|
|
22
|
+
* an error the current segment is sealed with what it holds and the last
|
|
23
|
+
* checkpoint is kept, so the next run starts a new segment from there. Records
|
|
24
|
+
* written after the checkpoint appear in both segments, which is harmless:
|
|
25
|
+
* every import is an idempotent upsert. A hard crash leaves an unsealed
|
|
26
|
+
* segment that is simply rewritten. The import step imports the segments in
|
|
27
|
+
* order (each one's references resolve through the ones applied before it).
|
|
28
|
+
*/
|
|
29
|
+
export declare const VENDOR_STEPS: readonly ["preflight", "config", "export", "import", "bridge", "lazy", "code", "verify"];
|
|
30
|
+
export type VendorStepId = (typeof VENDOR_STEPS)[number];
|
|
31
|
+
type StepStatus = 'done' | 'skipped' | 'planned' | 'action_needed' | 'awaiting_confirmation' | 'blocked';
|
|
32
|
+
interface StepRecord {
|
|
33
|
+
status: StepStatus;
|
|
34
|
+
at?: number;
|
|
35
|
+
detail?: Record<string, unknown>;
|
|
36
|
+
message?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface VendorMigrationState {
|
|
39
|
+
version: 1;
|
|
40
|
+
vendor: string;
|
|
41
|
+
source: MigrationSource;
|
|
42
|
+
project: string;
|
|
43
|
+
instance_id: string | null;
|
|
44
|
+
environment: string | null;
|
|
45
|
+
started_at: number;
|
|
46
|
+
steps: Partial<Record<VendorStepId, StepRecord>>;
|
|
47
|
+
export: {
|
|
48
|
+
/** Sealed segment files, in order (relative to the state directory). */
|
|
49
|
+
segments: string[];
|
|
50
|
+
/** The exporter's last checkpoint, handed back on resume. */
|
|
51
|
+
cursor: Json | null;
|
|
52
|
+
/** The exporter ran to the end. */
|
|
53
|
+
complete: boolean;
|
|
54
|
+
counts: Record<string, number>;
|
|
55
|
+
};
|
|
56
|
+
import: {
|
|
57
|
+
/** Segments fully imported. */
|
|
58
|
+
done: string[];
|
|
59
|
+
/** The segment being imported and its import id. */
|
|
60
|
+
current: {
|
|
61
|
+
segment: string;
|
|
62
|
+
id: string;
|
|
63
|
+
} | null;
|
|
64
|
+
ids: string[];
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
interface StepResult {
|
|
68
|
+
status: StepStatus;
|
|
69
|
+
detail?: Record<string, unknown>;
|
|
70
|
+
message?: string;
|
|
71
|
+
stop?: boolean;
|
|
72
|
+
exitCode?: number;
|
|
73
|
+
}
|
|
74
|
+
export declare class VendorMigration {
|
|
75
|
+
readonly ctx: RunContext;
|
|
76
|
+
readonly args: ParsedArgs;
|
|
77
|
+
readonly plugin: MigrationPlugin;
|
|
78
|
+
readonly project: string;
|
|
79
|
+
readonly dir: string;
|
|
80
|
+
readonly statePath: string;
|
|
81
|
+
readonly configDir: string;
|
|
82
|
+
readonly format: Format;
|
|
83
|
+
readonly yes: boolean;
|
|
84
|
+
readonly dryRun: boolean;
|
|
85
|
+
readonly json: boolean;
|
|
86
|
+
readonly skip: Set<string>;
|
|
87
|
+
readonly sets: Record<string, string>;
|
|
88
|
+
state: VendorMigrationState;
|
|
89
|
+
private http?;
|
|
90
|
+
private translation?;
|
|
91
|
+
constructor(ctx: RunContext, args: ParsedArgs, plugin: MigrationPlugin, projectArg: string | undefined);
|
|
92
|
+
say(line: string): void;
|
|
93
|
+
api(): ConfigHttp;
|
|
94
|
+
confirm(question: string): Promise<boolean>;
|
|
95
|
+
sleep(ms: number): Promise<void>;
|
|
96
|
+
/** What a plugin step gets. */
|
|
97
|
+
pluginContext(): PluginContext;
|
|
98
|
+
/** The translation from this run, or the one a previous run wrote. */
|
|
99
|
+
getTranslation(): TranslationResult | undefined;
|
|
100
|
+
setTranslation(t: TranslationResult): void;
|
|
101
|
+
loadState(opts: {
|
|
102
|
+
single: boolean;
|
|
103
|
+
}): void;
|
|
104
|
+
saveState(): void;
|
|
105
|
+
record(step: VendorStepId, result: StepResult): void;
|
|
106
|
+
/** Run every step (or just `only`). Returns the exit code. */
|
|
107
|
+
run(only?: VendorStepId): Promise<number>;
|
|
108
|
+
}
|
|
109
|
+
/** `--set a=b --set c=d,e=f` → { a: 'b', c: 'd', e: 'f' }. A value may contain `=`. */
|
|
110
|
+
export declare function parseSets(raw: string[]): Record<string, string>;
|
|
111
|
+
export declare const VENDOR_HANDLERS: Record<VendorStepId, (m: VendorMigration) => Promise<StepResult>>;
|
|
112
|
+
export declare function migrateVendor(ctx: RunContext, args: ParsedArgs, plugin: MigrationPlugin, projectArg: string | undefined, only?: VendorStepId): Promise<number>;
|
|
113
|
+
export {};
|