@atlasauth/cli 0.24.0 → 0.25.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 +6 -0
- package/package.json +4 -4
- package/dist/args.d.ts +0 -601
- package/dist/args.js +0 -289
- package/dist/args.js.map +0 -1
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -19
- package/dist/cli.js.map +0 -1
- package/dist/commands/actions-gallery.d.ts +0 -8
- package/dist/commands/actions-gallery.js +0 -197
- package/dist/commands/actions-gallery.js.map +0 -1
- package/dist/commands/actions.d.ts +0 -13
- package/dist/commands/actions.js +0 -135
- package/dist/commands/actions.js.map +0 -1
- package/dist/commands/admin.d.ts +0 -49
- package/dist/commands/admin.js +0 -353
- package/dist/commands/admin.js.map +0 -1
- package/dist/commands/api-keys.d.ts +0 -4
- package/dist/commands/api-keys.js +0 -96
- package/dist/commands/api-keys.js.map +0 -1
- package/dist/commands/auth.d.ts +0 -25
- package/dist/commands/auth.js +0 -102
- package/dist/commands/auth.js.map +0 -1
- package/dist/commands/config.d.ts +0 -104
- package/dist/commands/config.js +0 -1506
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/csp.d.ts +0 -32
- package/dist/commands/csp.js +0 -180
- package/dist/commands/csp.js.map +0 -1
- package/dist/commands/dev.d.ts +0 -8
- package/dist/commands/dev.js +0 -84
- package/dist/commands/dev.js.map +0 -1
- package/dist/commands/fga.d.ts +0 -10
- package/dist/commands/fga.js +0 -146
- package/dist/commands/fga.js.map +0 -1
- package/dist/commands/golive.d.ts +0 -40
- package/dist/commands/golive.js +0 -285
- package/dist/commands/golive.js.map +0 -1
- package/dist/commands/id-accounts.d.ts +0 -13
- package/dist/commands/id-accounts.js +0 -195
- package/dist/commands/id-accounts.js.map +0 -1
- package/dist/commands/import-better-auth.d.ts +0 -3
- package/dist/commands/import-better-auth.js +0 -164
- package/dist/commands/import-better-auth.js.map +0 -1
- package/dist/commands/import.d.ts +0 -3
- package/dist/commands/import.js +0 -123
- package/dist/commands/import.js.map +0 -1
- package/dist/commands/info.d.ts +0 -75
- package/dist/commands/info.js +0 -362
- package/dist/commands/info.js.map +0 -1
- package/dist/commands/init.d.ts +0 -3
- package/dist/commands/init.js +0 -438
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/integrations.d.ts +0 -8
- package/dist/commands/integrations.js +0 -112
- package/dist/commands/integrations.js.map +0 -1
- package/dist/commands/listen.d.ts +0 -17
- package/dist/commands/listen.js +0 -223
- package/dist/commands/listen.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -38
- package/dist/commands/mcp.js +0 -111
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/migrate.d.ts +0 -16
- package/dist/commands/migrate.js +0 -114
- package/dist/commands/migrate.js.map +0 -1
- package/dist/commands/move-origin.d.ts +0 -11
- package/dist/commands/move-origin.js +0 -95
- package/dist/commands/move-origin.js.map +0 -1
- package/dist/commands/operator.d.ts +0 -18
- package/dist/commands/operator.js +0 -238
- package/dist/commands/operator.js.map +0 -1
- package/dist/commands/orgs.d.ts +0 -4
- package/dist/commands/orgs.js +0 -72
- package/dist/commands/orgs.js.map +0 -1
- package/dist/commands/pages.d.ts +0 -14
- package/dist/commands/pages.js +0 -113
- package/dist/commands/pages.js.map +0 -1
- package/dist/commands/partner-platforms.d.ts +0 -10
- package/dist/commands/partner-platforms.js +0 -157
- package/dist/commands/partner-platforms.js.map +0 -1
- package/dist/commands/project-commands.d.ts +0 -38
- package/dist/commands/project-commands.js +0 -361
- package/dist/commands/project-commands.js.map +0 -1
- package/dist/commands/referrals.d.ts +0 -69
- package/dist/commands/referrals.js +0 -1056
- package/dist/commands/referrals.js.map +0 -1
- package/dist/commands/resources.d.ts +0 -44
- package/dist/commands/resources.js +0 -234
- package/dist/commands/resources.js.map +0 -1
- package/dist/commands/sessions.d.ts +0 -4
- package/dist/commands/sessions.js +0 -28
- package/dist/commands/sessions.js.map +0 -1
- package/dist/commands/shared.d.ts +0 -38
- package/dist/commands/shared.js +0 -69
- package/dist/commands/shared.js.map +0 -1
- package/dist/commands/status.d.ts +0 -3
- package/dist/commands/status.js +0 -77
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/users.d.ts +0 -4
- package/dist/commands/users.js +0 -100
- package/dist/commands/users.js.map +0 -1
- package/dist/commands/webhooks.d.ts +0 -34
- package/dist/commands/webhooks.js +0 -301
- package/dist/commands/webhooks.js.map +0 -1
- package/dist/config-http.d.ts +0 -29
- package/dist/config-http.js +0 -64
- package/dist/config-http.js.map +0 -1
- package/dist/config.d.ts +0 -64
- package/dist/config.js +0 -69
- package/dist/config.js.map +0 -1
- package/dist/context.d.ts +0 -72
- package/dist/context.js +0 -27
- package/dist/context.js.map +0 -1
- package/dist/define-config.d.ts +0 -9
- package/dist/define-config.js +0 -8
- package/dist/define-config.js.map +0 -1
- package/dist/errors.d.ts +0 -15
- package/dist/errors.js +0 -25
- package/dist/errors.js.map +0 -1
- package/dist/help.d.ts +0 -8
- package/dist/help.js +0 -868
- package/dist/help.js.map +0 -1
- package/dist/import/csv.d.ts +0 -6
- package/dist/import/csv.js +0 -63
- package/dist/import/csv.js.map +0 -1
- package/dist/import/vendors.d.ts +0 -57
- package/dist/import/vendors.js +0 -568
- package/dist/import/vendors.js.map +0 -1
- package/dist/index.d.ts +0 -33
- package/dist/index.js +0 -81
- package/dist/index.js.map +0 -1
- package/dist/io.d.ts +0 -21
- package/dist/io.js +0 -28
- package/dist/io.js.map +0 -1
- package/dist/migrate/appwrite/plugin.d.ts +0 -2
- package/dist/migrate/appwrite/plugin.js +0 -103
- package/dist/migrate/appwrite/plugin.js.map +0 -1
- package/dist/migrate/auth0/plugin.d.ts +0 -2
- package/dist/migrate/auth0/plugin.js +0 -126
- package/dist/migrate/auth0/plugin.js.map +0 -1
- package/dist/migrate/authentik/plugin.d.ts +0 -2
- package/dist/migrate/authentik/plugin.js +0 -135
- package/dist/migrate/authentik/plugin.js.map +0 -1
- package/dist/migrate/azure-ad-b2c/plugin.d.ts +0 -8
- package/dist/migrate/azure-ad-b2c/plugin.js +0 -165
- package/dist/migrate/azure-ad-b2c/plugin.js.map +0 -1
- package/dist/migrate/better-auth/integration.d.ts +0 -59
- package/dist/migrate/better-auth/integration.js +0 -81
- package/dist/migrate/better-auth/integration.js.map +0 -1
- package/dist/migrate/better-auth/orchestrator.d.ts +0 -43
- package/dist/migrate/better-auth/orchestrator.js +0 -525
- package/dist/migrate/better-auth/orchestrator.js.map +0 -1
- package/dist/migrate/better-auth/output.d.ts +0 -20
- package/dist/migrate/better-auth/output.js +0 -146
- package/dist/migrate/better-auth/output.js.map +0 -1
- package/dist/migrate/better-auth/translate.d.ts +0 -77
- package/dist/migrate/better-auth/translate.js +0 -1989
- package/dist/migrate/better-auth/translate.js.map +0 -1
- package/dist/migrate/clerk/plugin.d.ts +0 -2
- package/dist/migrate/clerk/plugin.js +0 -76
- package/dist/migrate/clerk/plugin.js.map +0 -1
- package/dist/migrate/cognito/plugin.d.ts +0 -5
- package/dist/migrate/cognito/plugin.js +0 -170
- package/dist/migrate/cognito/plugin.js.map +0 -1
- package/dist/migrate/corbado/plugin.d.ts +0 -2
- package/dist/migrate/corbado/plugin.js +0 -63
- package/dist/migrate/corbado/plugin.js.map +0 -1
- package/dist/migrate/descope/plugin.d.ts +0 -2
- package/dist/migrate/descope/plugin.js +0 -83
- package/dist/migrate/descope/plugin.js.map +0 -1
- package/dist/migrate/entra-external-id/plugin.d.ts +0 -8
- package/dist/migrate/entra-external-id/plugin.js +0 -12
- package/dist/migrate/entra-external-id/plugin.js.map +0 -1
- package/dist/migrate/export/appwrite-config.d.ts +0 -28
- package/dist/migrate/export/appwrite-config.js +0 -170
- package/dist/migrate/export/appwrite-config.js.map +0 -1
- package/dist/migrate/export/appwrite.d.ts +0 -51
- package/dist/migrate/export/appwrite.js +0 -288
- package/dist/migrate/export/appwrite.js.map +0 -1
- package/dist/migrate/export/auth0-config.d.ts +0 -29
- package/dist/migrate/export/auth0-config.js +0 -249
- package/dist/migrate/export/auth0-config.js.map +0 -1
- package/dist/migrate/export/auth0.d.ts +0 -62
- package/dist/migrate/export/auth0.js +0 -575
- package/dist/migrate/export/auth0.js.map +0 -1
- package/dist/migrate/export/authentik-config.d.ts +0 -45
- package/dist/migrate/export/authentik-config.js +0 -357
- package/dist/migrate/export/authentik-config.js.map +0 -1
- package/dist/migrate/export/authentik.d.ts +0 -110
- package/dist/migrate/export/authentik.js +0 -838
- package/dist/migrate/export/authentik.js.map +0 -1
- package/dist/migrate/export/azure-config.d.ts +0 -58
- package/dist/migrate/export/azure-config.js +0 -344
- package/dist/migrate/export/azure-config.js.map +0 -1
- package/dist/migrate/export/azure.d.ts +0 -85
- package/dist/migrate/export/azure.js +0 -373
- package/dist/migrate/export/azure.js.map +0 -1
- package/dist/migrate/export/clerk-config.d.ts +0 -26
- package/dist/migrate/export/clerk-config.js +0 -227
- package/dist/migrate/export/clerk-config.js.map +0 -1
- package/dist/migrate/export/clerk.d.ts +0 -46
- package/dist/migrate/export/clerk.js +0 -486
- package/dist/migrate/export/clerk.js.map +0 -1
- package/dist/migrate/export/cognito-config.d.ts +0 -25
- package/dist/migrate/export/cognito-config.js +0 -273
- package/dist/migrate/export/cognito-config.js.map +0 -1
- package/dist/migrate/export/cognito.d.ts +0 -103
- package/dist/migrate/export/cognito.js +0 -441
- package/dist/migrate/export/cognito.js.map +0 -1
- package/dist/migrate/export/corbado-config.d.ts +0 -20
- package/dist/migrate/export/corbado-config.js +0 -63
- package/dist/migrate/export/corbado-config.js.map +0 -1
- package/dist/migrate/export/corbado.d.ts +0 -37
- package/dist/migrate/export/corbado.js +0 -132
- package/dist/migrate/export/corbado.js.map +0 -1
- package/dist/migrate/export/descope.d.ts +0 -35
- package/dist/migrate/export/descope.js +0 -208
- package/dist/migrate/export/descope.js.map +0 -1
- package/dist/migrate/export/fake-vendor.test-helper.d.ts +0 -27
- package/dist/migrate/export/fake-vendor.test-helper.js +0 -41
- package/dist/migrate/export/fake-vendor.test-helper.js.map +0 -1
- package/dist/migrate/export/firebase-config.d.ts +0 -24
- package/dist/migrate/export/firebase-config.js +0 -215
- package/dist/migrate/export/firebase-config.js.map +0 -1
- package/dist/migrate/export/firebase.d.ts +0 -102
- package/dist/migrate/export/firebase.js +0 -464
- package/dist/migrate/export/firebase.js.map +0 -1
- package/dist/migrate/export/frameworks/app-users.d.ts +0 -42
- package/dist/migrate/export/frameworks/app-users.js +0 -161
- package/dist/migrate/export/frameworks/app-users.js.map +0 -1
- package/dist/migrate/export/frameworks/authjs.d.ts +0 -41
- package/dist/migrate/export/frameworks/authjs.js +0 -146
- package/dist/migrate/export/frameworks/authjs.js.map +0 -1
- package/dist/migrate/export/frameworks/devise.d.ts +0 -39
- package/dist/migrate/export/frameworks/devise.js +0 -218
- package/dist/migrate/export/frameworks/devise.js.map +0 -1
- package/dist/migrate/export/frameworks/django.d.ts +0 -45
- package/dist/migrate/export/frameworks/django.js +0 -315
- package/dist/migrate/export/frameworks/django.js.map +0 -1
- package/dist/migrate/export/frameworks/lucia.d.ts +0 -42
- package/dist/migrate/export/frameworks/lucia.js +0 -263
- package/dist/migrate/export/frameworks/lucia.js.map +0 -1
- package/dist/migrate/export/frameworks/tables.d.ts +0 -90
- package/dist/migrate/export/frameworks/tables.js +0 -325
- package/dist/migrate/export/frameworks/tables.js.map +0 -1
- package/dist/migrate/export/frameworks/webauthn.d.ts +0 -25
- package/dist/migrate/export/frameworks/webauthn.js +0 -130
- package/dist/migrate/export/frameworks/webauthn.js.map +0 -1
- package/dist/migrate/export/frontegg-config.d.ts +0 -29
- package/dist/migrate/export/frontegg-config.js +0 -238
- package/dist/migrate/export/frontegg-config.js.map +0 -1
- package/dist/migrate/export/frontegg.d.ts +0 -67
- package/dist/migrate/export/frontegg.js +0 -410
- package/dist/migrate/export/frontegg.js.map +0 -1
- package/dist/migrate/export/fusionauth-config.d.ts +0 -26
- package/dist/migrate/export/fusionauth-config.js +0 -226
- package/dist/migrate/export/fusionauth-config.js.map +0 -1
- package/dist/migrate/export/fusionauth.d.ts +0 -99
- package/dist/migrate/export/fusionauth.js +0 -642
- package/dist/migrate/export/fusionauth.js.map +0 -1
- package/dist/migrate/export/hanko-config.d.ts +0 -27
- package/dist/migrate/export/hanko-config.js +0 -265
- package/dist/migrate/export/hanko-config.js.map +0 -1
- package/dist/migrate/export/hanko.d.ts +0 -52
- package/dist/migrate/export/hanko.js +0 -605
- package/dist/migrate/export/hanko.js.map +0 -1
- package/dist/migrate/export/keycloak-config.d.ts +0 -19
- package/dist/migrate/export/keycloak-config.js +0 -219
- package/dist/migrate/export/keycloak-config.js.map +0 -1
- package/dist/migrate/export/keycloak.d.ts +0 -155
- package/dist/migrate/export/keycloak.js +0 -878
- package/dist/migrate/export/keycloak.js.map +0 -1
- package/dist/migrate/export/kinde-descope-config.d.ts +0 -38
- package/dist/migrate/export/kinde-descope-config.js +0 -172
- package/dist/migrate/export/kinde-descope-config.js.map +0 -1
- package/dist/migrate/export/kinde.d.ts +0 -57
- package/dist/migrate/export/kinde.js +0 -333
- package/dist/migrate/export/kinde.js.map +0 -1
- package/dist/migrate/export/ldap.d.ts +0 -53
- package/dist/migrate/export/ldap.js +0 -277
- package/dist/migrate/export/ldap.js.map +0 -1
- package/dist/migrate/export/logto-config.d.ts +0 -27
- package/dist/migrate/export/logto-config.js +0 -264
- package/dist/migrate/export/logto-config.js.map +0 -1
- package/dist/migrate/export/logto.d.ts +0 -150
- package/dist/migrate/export/logto.js +0 -809
- package/dist/migrate/export/logto.js.map +0 -1
- package/dist/migrate/export/magic-config.d.ts +0 -14
- package/dist/migrate/export/magic-config.js +0 -28
- package/dist/migrate/export/magic-config.js.map +0 -1
- package/dist/migrate/export/magic.d.ts +0 -31
- package/dist/migrate/export/magic.js +0 -93
- package/dist/migrate/export/magic.js.map +0 -1
- package/dist/migrate/export/mini-yaml.d.ts +0 -19
- package/dist/migrate/export/mini-yaml.js +0 -581
- package/dist/migrate/export/mini-yaml.js.map +0 -1
- package/dist/migrate/export/nhost-config.d.ts +0 -26
- package/dist/migrate/export/nhost-config.js +0 -360
- package/dist/migrate/export/nhost-config.js.map +0 -1
- package/dist/migrate/export/nhost.d.ts +0 -64
- package/dist/migrate/export/nhost.js +0 -304
- package/dist/migrate/export/nhost.js.map +0 -1
- package/dist/migrate/export/okta-config.d.ts +0 -30
- package/dist/migrate/export/okta-config.js +0 -205
- package/dist/migrate/export/okta-config.js.map +0 -1
- package/dist/migrate/export/okta.d.ts +0 -43
- package/dist/migrate/export/okta.js +0 -337
- package/dist/migrate/export/okta.js.map +0 -1
- package/dist/migrate/export/onelogin.d.ts +0 -22
- package/dist/migrate/export/onelogin.js +0 -123
- package/dist/migrate/export/onelogin.js.map +0 -1
- package/dist/migrate/export/ory-config.d.ts +0 -58
- package/dist/migrate/export/ory-config.js +0 -451
- package/dist/migrate/export/ory-config.js.map +0 -1
- package/dist/migrate/export/ory.d.ts +0 -81
- package/dist/migrate/export/ory.js +0 -555
- package/dist/migrate/export/ory.js.map +0 -1
- package/dist/migrate/export/password-detect.d.ts +0 -29
- package/dist/migrate/export/password-detect.js +0 -81
- package/dist/migrate/export/password-detect.js.map +0 -1
- package/dist/migrate/export/pingone.d.ts +0 -36
- package/dist/migrate/export/pingone.js +0 -218
- package/dist/migrate/export/pingone.js.map +0 -1
- package/dist/migrate/export/plugin-kit.d.ts +0 -25
- package/dist/migrate/export/plugin-kit.js +0 -82
- package/dist/migrate/export/plugin-kit.js.map +0 -1
- package/dist/migrate/export/pocketbase-config.d.ts +0 -28
- package/dist/migrate/export/pocketbase-config.js +0 -180
- package/dist/migrate/export/pocketbase-config.js.map +0 -1
- package/dist/migrate/export/pocketbase.d.ts +0 -52
- package/dist/migrate/export/pocketbase.js +0 -243
- package/dist/migrate/export/pocketbase.js.map +0 -1
- package/dist/migrate/export/project-files.d.ts +0 -15
- package/dist/migrate/export/project-files.js +0 -43
- package/dist/migrate/export/project-files.js.map +0 -1
- package/dist/migrate/export/propelauth-config.d.ts +0 -18
- package/dist/migrate/export/propelauth-config.js +0 -58
- package/dist/migrate/export/propelauth-config.js.map +0 -1
- package/dist/migrate/export/propelauth-harness.test-helper.d.ts +0 -62
- package/dist/migrate/export/propelauth-harness.test-helper.js +0 -109
- package/dist/migrate/export/propelauth-harness.test-helper.js.map +0 -1
- package/dist/migrate/export/propelauth.d.ts +0 -48
- package/dist/migrate/export/propelauth.js +0 -255
- package/dist/migrate/export/propelauth.js.map +0 -1
- package/dist/migrate/export/record-set.d.ts +0 -44
- package/dist/migrate/export/record-set.js +0 -98
- package/dist/migrate/export/record-set.js.map +0 -1
- package/dist/migrate/export/source-lines.d.ts +0 -17
- package/dist/migrate/export/source-lines.js +0 -43
- package/dist/migrate/export/source-lines.js.map +0 -1
- package/dist/migrate/export/sso-metadata.d.ts +0 -47
- package/dist/migrate/export/sso-metadata.js +0 -180
- package/dist/migrate/export/sso-metadata.js.map +0 -1
- package/dist/migrate/export/stytch-config.d.ts +0 -22
- package/dist/migrate/export/stytch-config.js +0 -102
- package/dist/migrate/export/stytch-config.js.map +0 -1
- package/dist/migrate/export/stytch.d.ts +0 -68
- package/dist/migrate/export/stytch.js +0 -510
- package/dist/migrate/export/stytch.js.map +0 -1
- package/dist/migrate/export/supabase-config.d.ts +0 -48
- package/dist/migrate/export/supabase-config.js +0 -408
- package/dist/migrate/export/supabase-config.js.map +0 -1
- package/dist/migrate/export/supabase.d.ts +0 -86
- package/dist/migrate/export/supabase.js +0 -524
- package/dist/migrate/export/supabase.js.map +0 -1
- package/dist/migrate/export/supertokens-config.d.ts +0 -20
- package/dist/migrate/export/supertokens-config.js +0 -150
- package/dist/migrate/export/supertokens-config.js.map +0 -1
- package/dist/migrate/export/supertokens.d.ts +0 -125
- package/dist/migrate/export/supertokens.js +0 -464
- package/dist/migrate/export/supertokens.js.map +0 -1
- package/dist/migrate/export/table.d.ts +0 -35
- package/dist/migrate/export/table.js +0 -248
- package/dist/migrate/export/table.js.map +0 -1
- package/dist/migrate/export/translate-kit.d.ts +0 -46
- package/dist/migrate/export/translate-kit.js +0 -148
- package/dist/migrate/export/translate-kit.js.map +0 -1
- package/dist/migrate/export/userfront-config.d.ts +0 -15
- package/dist/migrate/export/userfront-config.js +0 -49
- package/dist/migrate/export/userfront-config.js.map +0 -1
- package/dist/migrate/export/userfront.d.ts +0 -38
- package/dist/migrate/export/userfront.js +0 -189
- package/dist/migrate/export/userfront.js.map +0 -1
- package/dist/migrate/export/vendor-http.d.ts +0 -46
- package/dist/migrate/export/vendor-http.js +0 -138
- package/dist/migrate/export/vendor-http.js.map +0 -1
- package/dist/migrate/export/workos-config.d.ts +0 -23
- package/dist/migrate/export/workos-config.js +0 -125
- package/dist/migrate/export/workos-config.js.map +0 -1
- package/dist/migrate/export/workos.d.ts +0 -46
- package/dist/migrate/export/workos.js +0 -272
- package/dist/migrate/export/workos.js.map +0 -1
- package/dist/migrate/export/zip.d.ts +0 -8
- package/dist/migrate/export/zip.js +0 -66
- package/dist/migrate/export/zip.js.map +0 -1
- package/dist/migrate/export/zitadel-config.d.ts +0 -37
- package/dist/migrate/export/zitadel-config.js +0 -279
- package/dist/migrate/export/zitadel-config.js.map +0 -1
- package/dist/migrate/export/zitadel.d.ts +0 -82
- package/dist/migrate/export/zitadel.js +0 -447
- package/dist/migrate/export/zitadel.js.map +0 -1
- package/dist/migrate/firebase/plugin.d.ts +0 -2
- package/dist/migrate/firebase/plugin.js +0 -152
- package/dist/migrate/firebase/plugin.js.map +0 -1
- package/dist/migrate/framework/builtins.d.ts +0 -2
- package/dist/migrate/framework/builtins.js +0 -52
- package/dist/migrate/framework/builtins.js.map +0 -1
- package/dist/migrate/framework/commands.d.ts +0 -20
- package/dist/migrate/framework/commands.js +0 -58
- package/dist/migrate/framework/commands.js.map +0 -1
- package/dist/migrate/framework/custom.d.ts +0 -12
- package/dist/migrate/framework/custom.js +0 -96
- package/dist/migrate/framework/custom.js.map +0 -1
- package/dist/migrate/framework/orchestrator.d.ts +0 -113
- package/dist/migrate/framework/orchestrator.js +0 -532
- package/dist/migrate/framework/orchestrator.js.map +0 -1
- package/dist/migrate/framework/plugin.d.ts +0 -167
- package/dist/migrate/framework/plugin.js +0 -3
- package/dist/migrate/framework/plugin.js.map +0 -1
- package/dist/migrate/framework/registry.d.ts +0 -11
- package/dist/migrate/framework/registry.js +0 -44
- package/dist/migrate/framework/registry.js.map +0 -1
- package/dist/migrate/framework/report.d.ts +0 -17
- package/dist/migrate/framework/report.js +0 -103
- package/dist/migrate/framework/report.js.map +0 -1
- package/dist/migrate/frameworks/plugins.d.ts +0 -29
- package/dist/migrate/frameworks/plugins.js +0 -402
- package/dist/migrate/frameworks/plugins.js.map +0 -1
- package/dist/migrate/frameworks/report.d.ts +0 -92
- package/dist/migrate/frameworks/report.js +0 -207
- package/dist/migrate/frameworks/report.js.map +0 -1
- package/dist/migrate/frameworks/translate-js.d.ts +0 -5
- package/dist/migrate/frameworks/translate-js.js +0 -503
- package/dist/migrate/frameworks/translate-js.js.map +0 -1
- package/dist/migrate/frameworks/translate-rails-django.d.ts +0 -3
- package/dist/migrate/frameworks/translate-rails-django.js +0 -1391
- package/dist/migrate/frameworks/translate-rails-django.js.map +0 -1
- package/dist/migrate/frontegg/plugin.d.ts +0 -2
- package/dist/migrate/frontegg/plugin.js +0 -78
- package/dist/migrate/frontegg/plugin.js.map +0 -1
- package/dist/migrate/fusionauth/plugin.d.ts +0 -2
- package/dist/migrate/fusionauth/plugin.js +0 -109
- package/dist/migrate/fusionauth/plugin.js.map +0 -1
- package/dist/migrate/hanko/plugin.d.ts +0 -2
- package/dist/migrate/hanko/plugin.js +0 -100
- package/dist/migrate/hanko/plugin.js.map +0 -1
- package/dist/migrate/keycloak/plugin.d.ts +0 -2
- package/dist/migrate/keycloak/plugin.js +0 -148
- package/dist/migrate/keycloak/plugin.js.map +0 -1
- package/dist/migrate/kinde/plugin.d.ts +0 -2
- package/dist/migrate/kinde/plugin.js +0 -105
- package/dist/migrate/kinde/plugin.js.map +0 -1
- package/dist/migrate/ldap/plugin.d.ts +0 -2
- package/dist/migrate/ldap/plugin.js +0 -73
- package/dist/migrate/ldap/plugin.js.map +0 -1
- package/dist/migrate/logto/plugin.d.ts +0 -2
- package/dist/migrate/logto/plugin.js +0 -131
- package/dist/migrate/logto/plugin.js.map +0 -1
- package/dist/migrate/magic/plugin.d.ts +0 -2
- package/dist/migrate/magic/plugin.js +0 -56
- package/dist/migrate/magic/plugin.js.map +0 -1
- package/dist/migrate/nhost/plugin.d.ts +0 -2
- package/dist/migrate/nhost/plugin.js +0 -115
- package/dist/migrate/nhost/plugin.js.map +0 -1
- package/dist/migrate/oidc/plugin.d.ts +0 -2
- package/dist/migrate/oidc/plugin.js +0 -73
- package/dist/migrate/oidc/plugin.js.map +0 -1
- package/dist/migrate/okta/plugin.d.ts +0 -2
- package/dist/migrate/okta/plugin.js +0 -105
- package/dist/migrate/okta/plugin.js.map +0 -1
- package/dist/migrate/onelogin/plugin.d.ts +0 -2
- package/dist/migrate/onelogin/plugin.js +0 -61
- package/dist/migrate/onelogin/plugin.js.map +0 -1
- package/dist/migrate/ory/plugin.d.ts +0 -2
- package/dist/migrate/ory/plugin.js +0 -186
- package/dist/migrate/ory/plugin.js.map +0 -1
- package/dist/migrate/ping-identity/plugin.d.ts +0 -2
- package/dist/migrate/ping-identity/plugin.js +0 -100
- package/dist/migrate/ping-identity/plugin.js.map +0 -1
- package/dist/migrate/pocketbase/plugin.d.ts +0 -2
- package/dist/migrate/pocketbase/plugin.js +0 -99
- package/dist/migrate/pocketbase/plugin.js.map +0 -1
- package/dist/migrate/propelauth/plugin.d.ts +0 -2
- package/dist/migrate/propelauth/plugin.js +0 -65
- package/dist/migrate/propelauth/plugin.js.map +0 -1
- package/dist/migrate/saml/plugin.d.ts +0 -2
- package/dist/migrate/saml/plugin.js +0 -79
- package/dist/migrate/saml/plugin.js.map +0 -1
- package/dist/migrate/stytch/plugin.d.ts +0 -2
- package/dist/migrate/stytch/plugin.js +0 -97
- package/dist/migrate/stytch/plugin.js.map +0 -1
- package/dist/migrate/supabase/plugin.d.ts +0 -2
- package/dist/migrate/supabase/plugin.js +0 -149
- package/dist/migrate/supabase/plugin.js.map +0 -1
- package/dist/migrate/supertokens/plugin.d.ts +0 -2
- package/dist/migrate/supertokens/plugin.js +0 -114
- package/dist/migrate/supertokens/plugin.js.map +0 -1
- package/dist/migrate/user-table/plugin.d.ts +0 -2
- package/dist/migrate/user-table/plugin.js +0 -62
- package/dist/migrate/user-table/plugin.js.map +0 -1
- package/dist/migrate/userfront/plugin.d.ts +0 -2
- package/dist/migrate/userfront/plugin.js +0 -60
- package/dist/migrate/userfront/plugin.js.map +0 -1
- package/dist/migrate/workos/plugin.d.ts +0 -2
- package/dist/migrate/workos/plugin.js +0 -81
- package/dist/migrate/workos/plugin.js.map +0 -1
- package/dist/migrate/zitadel/plugin.d.ts +0 -2
- package/dist/migrate/zitadel/plugin.js +0 -114
- package/dist/migrate/zitadel/plugin.js.map +0 -1
- package/dist/output.d.ts +0 -41
- package/dist/output.js +0 -72
- package/dist/output.js.map +0 -1
- package/dist/project.d.ts +0 -64
- package/dist/project.js +0 -86
- package/dist/project.js.map +0 -1
- package/dist/prompt.d.ts +0 -15
- package/dist/prompt.js +0 -46
- package/dist/prompt.js.map +0 -1
- package/dist/run.d.ts +0 -12
- package/dist/run.js +0 -157
- package/dist/run.js.map +0 -1
- package/dist/secrets.d.ts +0 -41
- package/dist/secrets.js +0 -142
- package/dist/secrets.js.map +0 -1
- package/dist/serialize.d.ts +0 -30
- package/dist/serialize.js +0 -131
- package/dist/serialize.js.map +0 -1
- package/dist/version.d.ts +0 -7
- package/dist/version.js +0 -21
- package/dist/version.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
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,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= 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"builtins.js","sourceRoot":"","sources":["../../../src/migrate/framework/buil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AAA,6BAAkB,EAAC,MAAM,CAAC,MAAM,CAAC;YAAE,IAAA,kCAAuB,EAAC,MAAM,CAAC,CAAC;AACjH,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
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>;
|
|
@@ -1,58 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/migrate/framework/commands.ts"],"names":[],"mappings":";;;AAiBA,oCAGC;AAGD,8BAGC;AAMD,8CAYC;AAGD,gDAIC;AAjDD,yCAAwC;AACxC,yCAAoD;AACpD,iDAAkE;AAClE,yCAA+D;AAE/D;;;;;GAKG;AAEH,yCAAyC;AAC5B,QAAA,YAAY,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AAEhG,SAAgB,YAAY;IAC1B,IAAA,iCAAsB,GAAE,CAAC;IACzB,OAAO,IAAA,2BAAgB,GAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;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C7G,IAAI,IAAI,KAAK,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI;QAAE,MAAM,IAAI,iBAAQ,CAAC,GAAG,MAAM,CAAC,KAAK,gCAAgC,CAAC,CAAC;IACzG,OAAO,IAAA,4BAAa,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,mGAAmG;AAC5F,KAAK,UAAU,kBAAkB,CAAC,GAAe,EAAE,IAAgB,EAAE,IAAc;IACxF,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,iBAAQ,CAAC,kCAAkC,YAAY,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChG,OAAO,iBAAiB,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AACpF,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type CanonicalModel } from '@atlasauth/migrate';
|
|
2
|
-
import type { MigrationPlugin } from './plugin';
|
|
3
|
-
export interface CanonicalFileRecord {
|
|
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;
|
|
@@ -1,96 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,IAAI,GAAc,CAAC;IACnB,IAAI,CAAC,OAAO;QAAE,GAAG,GAAG,EAAE,CAAC;SAClB,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACjC,IAAI,CAAC;YACH,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAc,CAAC;QACzC,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,iBAAQ,CAAC,qCAAqC,CAAC,CAAC;QAC5D,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;YAAE,MAAM,IAAI,iBAAQ,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AC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YACpE,IAAI,KAAK;gBAAE,CAAC,CAAC,GAAG,CAAC,wBAAwB,KAAK,GAAG,CAAC,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;YAC3E,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAE,CAAC;gBACtB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,IAAsD,CAAC,CAAC;gBACnG,IAAI,MAAM,CAAC,MAAM;oBAAE,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,CAAC,CAAE,CAAC,OAAO,EAAE,CAAC,CAAC;gBACnF,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB,KAAK,CAAC;oBAAE,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YACjE,CAAC;YACD,CAAC,CAAC,GAAG,CAAC,UAAU,OAAO,CAAC,MAAM,mBAAmB,IAAI,EAAE,CAAC,CAAC;QAC3D,CAAC;KACF;CACF,CAAC"}
|
|
@@ -1,113 +0,0 @@
|
|
|
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 {};
|