@atlasauth/cli 0.23.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 +13 -0
- package/package.json +3 -3
- 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 -90
- package/dist/commands/config.js +0 -1430
- 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/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 -32
- package/dist/index.js +0 -79
- 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,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.corbadoPlugin = void 0;
|
|
4
|
-
const corbado_1 = require("../export/corbado");
|
|
5
|
-
const corbado_config_1 = require("../export/corbado-config");
|
|
6
|
-
const plugin_kit_1 = require("../export/plugin-kit");
|
|
7
|
-
/**
|
|
8
|
-
* `atlas migrate corbado` — users with their verified emails, phones and
|
|
9
|
-
* usernames AND their passkeys (credential ids and public keys, which
|
|
10
|
-
* Corbado's Backend API exports), the sign-in methods inferred from your
|
|
11
|
-
* users' identifiers, and the `corbado` bridge preset (short-session JWTs
|
|
12
|
-
* verified against the project's JWKS). Corbado holds no passwords.
|
|
13
|
-
*/
|
|
14
|
-
const PROJECT_ID = { flag: '--corbado-project-id', env: 'CORBADO_PROJECT_ID', label: 'your Corbado project id (pro-…)', required: true };
|
|
15
|
-
const API_SECRET = { flag: '--corbado-api-secret', env: 'CORBADO_API_SECRET', label: 'your Corbado API secret', required: true, secret: true };
|
|
16
|
-
const RP_ID = { flag: '--corbado-rp-id', env: 'CORBADO_RP_ID', label: 'the relying-party id (domain) your passkeys were registered for', required: false };
|
|
17
|
-
const BASE_URL = { flag: '--corbado-base-url', env: 'CORBADO_BASE_URL', label: 'the Corbado Backend API origin', required: false };
|
|
18
|
-
function projectId(p) {
|
|
19
|
-
return p.credential({ ...PROJECT_ID, required: false }) ?? (p.ctx.env.NEXT_PUBLIC_CORBADO_PROJECT_ID?.trim() || p.ctx.env.VITE_CORBADO_PROJECT_ID?.trim() || (0, plugin_kit_1.need)(p, PROJECT_ID));
|
|
20
|
-
}
|
|
21
|
-
exports.corbadoPlugin = {
|
|
22
|
-
vendor: 'corbado',
|
|
23
|
-
source: 'corbado',
|
|
24
|
-
label: 'Corbado',
|
|
25
|
-
help: 'Move a Corbado project: users with their verified emails, phone numbers and usernames, and their passkeys (credential ids and public keys) so members keep signing in with the passkey they have; the sign-in methods as Atlas config; a zero-logout bridge for Corbado session tokens; and the code. Your API secret stays on this machine.',
|
|
26
|
-
config: {
|
|
27
|
-
reads: 'your Corbado project via the Backend API (login identifier counts)',
|
|
28
|
-
credentials: [PROJECT_ID, API_SECRET, RP_ID, BASE_URL],
|
|
29
|
-
async translate(p) {
|
|
30
|
-
const pid = projectId(p);
|
|
31
|
-
const http = (0, corbado_1.corbadoHttp)({ projectId: pid, apiSecret: (0, plugin_kit_1.need)(p, API_SECRET), baseUrl: p.credential(BASE_URL), fetchImpl: p.fetch });
|
|
32
|
-
const snap = await (0, plugin_kit_1.vendorStep)('Corbado', () => (0, corbado_config_1.fetchCorbadoConfig)(http, pid, p.credential(RP_ID)));
|
|
33
|
-
return (0, corbado_config_1.translateCorbadoConfig)(snap);
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
export: {
|
|
37
|
-
reads: 'the Corbado Backend API (users, identifiers, passkeys)',
|
|
38
|
-
credentials: [PROJECT_ID, API_SECRET, RP_ID, BASE_URL],
|
|
39
|
-
limits: [
|
|
40
|
-
'Passkeys are exported with their public keys but are bound to your relying-party id (--corbado-rp-id): Atlas must be served from that domain, or a subdomain, for them to keep working. Without the flag, members register passkeys again.',
|
|
41
|
-
'Corbado keeps no passwords, authenticator-app secrets, organizations or API keys.',
|
|
42
|
-
'Linked social accounts are not returned: they relink by verified email on first social sign-in.',
|
|
43
|
-
'Sessions are not exported: Corbado session tokens are JWTs, exchanged by the corbado bridge preset.',
|
|
44
|
-
],
|
|
45
|
-
async run(p, writer, resume) {
|
|
46
|
-
const set = await (0, plugin_kit_1.vendorStep)('Corbado', () => (0, corbado_1.exportCorbado)({
|
|
47
|
-
projectId: projectId(p),
|
|
48
|
-
apiSecret: (0, plugin_kit_1.need)(p, API_SECRET),
|
|
49
|
-
baseUrl: p.credential(BASE_URL),
|
|
50
|
-
rpId: p.credential(RP_ID),
|
|
51
|
-
fetchImpl: p.fetch,
|
|
52
|
-
onProgress: (m) => p.say(` reading ${m}`),
|
|
53
|
-
}));
|
|
54
|
-
await (0, plugin_kit_1.writeRecordSet)(set, writer, resume, p.say);
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
bridge: {
|
|
58
|
-
preset: 'corbado',
|
|
59
|
-
vars: (p, t) => ({ ...t?.bridge?.vars, project_id: t?.bridge?.vars.project_id ?? projectId(p) }),
|
|
60
|
-
},
|
|
61
|
-
codemod: 'corbado',
|
|
62
|
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AAU,CAAC,QAAQ,CAAC;gBAC/B,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC;gBACzB,SAAS,EAAE,CAAC,CAAC,KAAK;gBAClB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;aAC3C,CAAC,CACH,CAAC;YACF,MAAM,IAAA,2BAAc,EAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;QACnD,CAAC;KACF;IACD,MAAM,EAAE;QACN,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;KACjG;IACD,OAAO,EAAE,SAAS;CACnB,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.descopePlugin = void 0;
|
|
4
|
-
const descope_1 = require("../export/descope");
|
|
5
|
-
const kinde_descope_config_1 = require("../export/kinde-descope-config");
|
|
6
|
-
const plugin_kit_1 = require("../export/plugin-kit");
|
|
7
|
-
const vendor_http_1 = require("../export/vendor-http");
|
|
8
|
-
/**
|
|
9
|
-
* `atlas migrate descope` — users, tenants, roles and permissions through the
|
|
10
|
-
* Descope Management API (project id + management key, on this machine),
|
|
11
|
-
* password hashes from the export Descope support provides when the owner
|
|
12
|
-
* has it, the `descope` bridge preset (DS session JWTs verified against the
|
|
13
|
-
* project's keys) and lazy migration through Descope's password sign-in for
|
|
14
|
-
* every other password.
|
|
15
|
-
*/
|
|
16
|
-
const PROJECT_ID = { flag: '--descope-project-id', env: 'DESCOPE_PROJECT_ID', label: 'your Descope project id (P…)', required: true };
|
|
17
|
-
const MANAGEMENT_KEY = { flag: '--descope-management-key', env: 'DESCOPE_MANAGEMENT_KEY', label: 'a Descope management key', required: true, secret: true };
|
|
18
|
-
const BASE_URL = { flag: '--descope-base-url', env: 'DESCOPE_BASE_URL', label: 'the Descope API base URL (regional or custom domain)', required: false };
|
|
19
|
-
const HASHES_FILE = { flag: '--descope-hashes-file', env: 'DESCOPE_HASHES_FILE', label: 'the password-hash export from Descope support', required: false };
|
|
20
|
-
function projectId(p) {
|
|
21
|
-
return p.credential({ ...PROJECT_ID, required: false }) ?? (p.ctx.env.NEXT_PUBLIC_DESCOPE_PROJECT_ID?.trim() || (0, plugin_kit_1.need)(p, PROJECT_ID));
|
|
22
|
-
}
|
|
23
|
-
function baseUrl(p) {
|
|
24
|
-
return (p.credential(BASE_URL) ?? (p.ctx.env.NEXT_PUBLIC_DESCOPE_BASE_URL?.trim() || undefined))?.replace(/\/+$/, '');
|
|
25
|
-
}
|
|
26
|
-
exports.descopePlugin = {
|
|
27
|
-
vendor: 'descope',
|
|
28
|
-
source: 'descope',
|
|
29
|
-
label: 'Descope',
|
|
30
|
-
help: 'Move a Descope project: password policy, roles and permissions as Atlas config; users with their login ids, verified emails and phones, social and SSO links, tenants (as organizations), roles and custom attributes; password hashes from the export Descope support provides; a zero-logout bridge for DS session tokens; lazy migration for the other passwords; and the code. Your management key stays on this machine.',
|
|
31
|
-
config: {
|
|
32
|
-
reads: 'your Descope project via the Management API (password settings, roles, permissions)',
|
|
33
|
-
credentials: [PROJECT_ID, MANAGEMENT_KEY],
|
|
34
|
-
async translate(p) {
|
|
35
|
-
const pid = projectId(p);
|
|
36
|
-
const http = new vendor_http_1.VendorHttp({ vendor: 'Descope', baseUrl: baseUrl(p) ?? 'https://api.descope.com', headers: { authorization: `Bearer ${pid}:${(0, plugin_kit_1.need)(p, MANAGEMENT_KEY)}` }, fetchImpl: p.fetch });
|
|
37
|
-
const snap = await (0, plugin_kit_1.vendorStep)('Descope', () => (0, kinde_descope_config_1.fetchDescopeConfig)(http, pid));
|
|
38
|
-
return (0, kinde_descope_config_1.translateDescopeConfig)(snap);
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
export: {
|
|
42
|
-
reads: 'the Descope Management API (users, tenants, roles) and the support hash export (--descope-hashes-file)',
|
|
43
|
-
credentials: [PROJECT_ID, MANAGEMENT_KEY, HASHES_FILE],
|
|
44
|
-
limits: [
|
|
45
|
-
'Password hashes are not returned by the Management API: Descope support can export them on request. Pass that file with --descope-hashes-file; without it, passwords move by lazy migration.',
|
|
46
|
-
'TOTP seeds, passkeys and magic-link / OTP state cannot be exported: users enrol their second factor and passkeys again (email and SMS codes simply work).',
|
|
47
|
-
'Sessions are not exported: Descope session tokens are JWTs, exchanged by the descope bridge preset.',
|
|
48
|
-
],
|
|
49
|
-
async run(p, writer, resume) {
|
|
50
|
-
const set = await (0, plugin_kit_1.vendorStep)('Descope', () => (0, descope_1.exportDescope)({
|
|
51
|
-
projectId: projectId(p),
|
|
52
|
-
managementKey: (0, plugin_kit_1.need)(p, MANAGEMENT_KEY),
|
|
53
|
-
baseUrl: baseUrl(p),
|
|
54
|
-
hashesText: (0, plugin_kit_1.localFile)(p, HASHES_FILE, 'text'),
|
|
55
|
-
fetchImpl: p.fetch,
|
|
56
|
-
onProgress: (m) => p.say(` reading ${m}`),
|
|
57
|
-
}));
|
|
58
|
-
await (0, plugin_kit_1.writeRecordSet)(set, writer, resume, p.say);
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
bridge: {
|
|
62
|
-
preset: 'descope',
|
|
63
|
-
vars(p, t) {
|
|
64
|
-
const vars = { ...t?.bridge?.vars, project_id: t?.bridge?.vars.project_id ?? projectId(p) };
|
|
65
|
-
const base = baseUrl(p);
|
|
66
|
-
if (base)
|
|
67
|
-
vars.base_url = base;
|
|
68
|
-
return vars;
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
lazy: {
|
|
72
|
-
preset: 'descope',
|
|
73
|
-
config(p, t) {
|
|
74
|
-
const config = { ...t?.lazy?.config, project_id: t?.lazy?.config.project_id ?? projectId(p) };
|
|
75
|
-
const base = baseUrl(p);
|
|
76
|
-
if (base)
|
|
77
|
-
config.base_url = base;
|
|
78
|
-
return config;
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
codemod: 'descope',
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/migrate/descope/plugin.ts"],"names":[],"mappings":";;;AAAA,+CAAkD;AAClD,yEAA4F;AAE5F,qDAAmF;AACnF,uDAAmD;AAEnD;;;;;;;GAOG;AAEH,MAAM,UAAU,GAAmB,EAAE,IAAI,EAAE,sBAAsB,EAAE,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,8BAA8B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACtJ,MAAM,cAAc,GAAmB,EAAE,IAAI,EAAE,0BAA0B,EAAE,GAAG,EAAE,wBAAwB,EAAE,KAAK,EAAE,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC5K,MAAM,QAAQ,GAAmB,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,sDAAsD,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AACzK,MAAM,WAAW,GAAmB,EAAE,IAAI,EAAE,uBAAuB,EAAE,GAAG,EAAE,qBAAqB,EAAE,KAAK,EAAE,+CAA+C,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAE3K,SAAS,SAAS,CAAC,CAAgB;IACjC,OAAO,CAAC,CAAC,UAAU,CAAC,EAAE,GAAG,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG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MAAM,MAAM,GAA2B,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YACtH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACxB,IAAI,IAAI;gBAAE,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;YACjC,OAAO,MAAM,CAAC;QAChB,CAAC;KACF;IACD,OAAO,EAAE,SAAS;CACnB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { MigrationPlugin } from '../framework/plugin';
|
|
2
|
-
/**
|
|
3
|
-
* `atlas migrate entra-external-id` — Microsoft Entra External ID (external
|
|
4
|
-
* tenants). Same Graph exporter and translator as Azure AD B2C; lazy
|
|
5
|
-
* migration through the native authentication API (external tenants have no
|
|
6
|
-
* ROPC) and the bridge matching on the `oid` claim.
|
|
7
|
-
*/
|
|
8
|
-
export declare const entraExternalIdPlugin: MigrationPlugin;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.entraExternalIdPlugin = void 0;
|
|
4
|
-
const plugin_1 = require("../azure-ad-b2c/plugin");
|
|
5
|
-
/**
|
|
6
|
-
* `atlas migrate entra-external-id` — Microsoft Entra External ID (external
|
|
7
|
-
* tenants). Same Graph exporter and translator as Azure AD B2C; lazy
|
|
8
|
-
* migration through the native authentication API (external tenants have no
|
|
9
|
-
* ROPC) and the bridge matching on the `oid` claim.
|
|
10
|
-
*/
|
|
11
|
-
exports.entraExternalIdPlugin = (0, plugin_1.azurePlugin)('entra');
|
|
12
|
-
//# sourceMappingURL=plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/migrate/entra-external-id/plugin.ts"],"names":[],"mappings":";;;AAAA,mDAAqD;AAGrD;;;;;GAKG;AACU,QAAA,qBAAqB,GAAoB,IAAA,oBAAW,EAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { TranslationResult } from '../framework/plugin';
|
|
2
|
-
import { type Obj } from './record-set';
|
|
3
|
-
/**
|
|
4
|
-
* `atlas migrate appwrite config` — an Appwrite project's auth settings →
|
|
5
|
-
* Atlas config.
|
|
6
|
-
*
|
|
7
|
-
* Two local sources, either or both (Appwrite's Projects API is console-only,
|
|
8
|
-
* so no project key can read it — the owner's own CLI can):
|
|
9
|
-
* - `appwrite.json` (or `appwrite.config.json`) after `appwrite pull
|
|
10
|
-
* settings`: `settings.auth.methods` and `settings.auth.security`, read
|
|
11
|
-
* with file:line;
|
|
12
|
-
* - the project document (`appwrite projects get --project-id <id> --json`,
|
|
13
|
-
* Appwrite 1.x model: `authDuration`, `authLimit`, … and `oAuthProviders`),
|
|
14
|
-
* the only place the OAuth providers are listed.
|
|
15
|
-
*/
|
|
16
|
-
export interface AppwriteConfigSnapshot {
|
|
17
|
-
/** The CLI config file, as text, with its path for the report. */
|
|
18
|
-
file?: {
|
|
19
|
-
path: string;
|
|
20
|
-
text: string;
|
|
21
|
-
};
|
|
22
|
-
/** The project document (Projects API / `appwrite projects get --json`). */
|
|
23
|
-
project?: Obj;
|
|
24
|
-
endpoint?: string;
|
|
25
|
-
projectId?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare function parseAppwriteConfigFile(text: string): Obj;
|
|
28
|
-
export declare function translateAppwriteConfig(snap: AppwriteConfigSnapshot): TranslationResult;
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseAppwriteConfigFile = parseAppwriteConfigFile;
|
|
4
|
-
exports.translateAppwriteConfig = translateAppwriteConfig;
|
|
5
|
-
const record_set_1 = require("./record-set");
|
|
6
|
-
const source_lines_1 = require("./source-lines");
|
|
7
|
-
const translate_kit_1 = require("./translate-kit");
|
|
8
|
-
/** Appwrite auth method ids (`settings.auth.methods` keys) → Atlas strategy. */
|
|
9
|
-
const METHODS = {
|
|
10
|
-
'email-password': { atlas: 'strategies.password', note: 'Email + password sign-in. Imported Appwrite hashes verify as they are and are upgraded to Argon2id.' },
|
|
11
|
-
'magic-url': { atlas: 'strategies.emailLink', note: 'Magic URL sign-in becomes Atlas email links.' },
|
|
12
|
-
'email-otp': { atlas: 'strategies.emailCode', note: 'Email OTP becomes Atlas email codes.' },
|
|
13
|
-
phone: { atlas: 'strategies.phoneCode', note: 'Phone (SMS) OTP becomes Atlas SMS codes, sent through your Atlas SMS settings.' },
|
|
14
|
-
anonymous: { atlas: 'strategies.anonymous', note: 'Anonymous sessions become Atlas anonymous users.' },
|
|
15
|
-
};
|
|
16
|
-
/** The 1.x project model's method flags, in `settings.auth.methods` terms. */
|
|
17
|
-
const PROJECT_METHODS = {
|
|
18
|
-
authEmailPassword: 'email-password',
|
|
19
|
-
authUsersAuthMagicURL: 'magic-url',
|
|
20
|
-
authEmailOtp: 'email-otp',
|
|
21
|
-
authPhone: 'phone',
|
|
22
|
-
authAnonymous: 'anonymous',
|
|
23
|
-
authInvites: 'invites',
|
|
24
|
-
authJWT: 'jwt',
|
|
25
|
-
};
|
|
26
|
-
const PROJECT_SECURITY = {
|
|
27
|
-
authDuration: 'duration',
|
|
28
|
-
authLimit: 'limit',
|
|
29
|
-
authSessionsLimit: 'sessionsLimit',
|
|
30
|
-
authPasswordHistory: 'passwordHistory',
|
|
31
|
-
authPasswordDictionary: 'passwordDictionary',
|
|
32
|
-
authPersonalDataCheck: 'personalDataCheck',
|
|
33
|
-
authSessionAlerts: 'sessionAlerts',
|
|
34
|
-
authMockNumbers: 'mockNumbers',
|
|
35
|
-
};
|
|
36
|
-
function parseAppwriteConfigFile(text) {
|
|
37
|
-
const parsed = JSON.parse(text);
|
|
38
|
-
if (!(0, record_set_1.isObj)(parsed))
|
|
39
|
-
throw new Error('appwrite.json is not a JSON object.');
|
|
40
|
-
return parsed;
|
|
41
|
-
}
|
|
42
|
-
function translateAppwriteConfig(snap) {
|
|
43
|
-
const b = new translate_kit_1.ConfigBuilder();
|
|
44
|
-
const fileDoc = snap.file ? parseAppwriteConfigFile(snap.file.text) : undefined;
|
|
45
|
-
const settings = (0, record_set_1.isObj)(fileDoc?.settings) ? fileDoc.settings : {};
|
|
46
|
-
const auth = (0, record_set_1.isObj)(settings.auth) ? settings.auth : {};
|
|
47
|
-
const project = snap.project ?? {};
|
|
48
|
-
const projectId = snap.projectId ?? (0, record_set_1.str)(fileDoc?.projectId) ?? (0, record_set_1.str)(project.$id);
|
|
49
|
-
const filePath = snap.file?.path;
|
|
50
|
-
// One view of methods and security, from the file (with lines) or the project document.
|
|
51
|
-
const methods = {};
|
|
52
|
-
const fileMethods = (0, record_set_1.isObj)(auth.methods) ? auth.methods : {};
|
|
53
|
-
for (const [k, v] of Object.entries(fileMethods)) {
|
|
54
|
-
if (typeof v === 'boolean')
|
|
55
|
-
methods[k] = { on: v, line: (0, source_lines_1.jsonKeyLine)(snap.file.text, ['settings', 'auth', 'methods', k]), from: `settings.auth.methods.${k}` };
|
|
56
|
-
}
|
|
57
|
-
for (const [flag, k] of Object.entries(PROJECT_METHODS)) {
|
|
58
|
-
if (methods[k] || typeof project[flag] !== 'boolean')
|
|
59
|
-
continue;
|
|
60
|
-
methods[k] = { on: project[flag], from: flag };
|
|
61
|
-
}
|
|
62
|
-
for (const m of (0, record_set_1.objs)(project.authMethods)) {
|
|
63
|
-
const id = (0, record_set_1.str)(m.$id);
|
|
64
|
-
if (id && !methods[id] && typeof m.enabled === 'boolean')
|
|
65
|
-
methods[id] = { on: m.enabled, from: `authMethods.${id}` };
|
|
66
|
-
}
|
|
67
|
-
const security = {};
|
|
68
|
-
const fileSecurity = (0, record_set_1.isObj)(auth.security) ? auth.security : {};
|
|
69
|
-
for (const [k, v] of Object.entries(fileSecurity))
|
|
70
|
-
security[k] = { value: v, line: (0, source_lines_1.jsonKeyLine)(snap.file.text, ['settings', 'auth', 'security', k]), from: `settings.auth.security.${k}` };
|
|
71
|
-
for (const [flag, k] of Object.entries(PROJECT_SECURITY))
|
|
72
|
-
if (!security[k] && project[flag] !== undefined)
|
|
73
|
-
security[k] = { value: project[flag], from: flag };
|
|
74
|
-
const at = (line) => (line ? filePath : undefined);
|
|
75
|
-
// ── sign-in methods ──
|
|
76
|
-
for (const [id, m] of Object.entries(methods)) {
|
|
77
|
-
const known = METHODS[id];
|
|
78
|
-
if (known) {
|
|
79
|
-
b.set(known.atlas, m.on);
|
|
80
|
-
if (m.on)
|
|
81
|
-
(0, source_lines_1.addAt)(b, at(m.line), m.line, 'mapped', 'auth methods', m.from, known.note, `auth_config.${known.atlas}`);
|
|
82
|
-
}
|
|
83
|
-
else if (id === 'invites' && m.on) {
|
|
84
|
-
(0, source_lines_1.addAt)(b, at(m.line), m.line, 'mapped', 'auth methods', m.from, 'Team invites become Atlas organization invitations (pending ones are imported).', 'organizations');
|
|
85
|
-
}
|
|
86
|
-
else if (id === 'jwt' && m.on) {
|
|
87
|
-
(0, source_lines_1.addAt)(b, at(m.line), m.line, 'differs', 'auth methods', m.from, 'Appwrite JWTs (account.createJWT) are replaced by Atlas session tokens (getToken()); your backend verifies them with Atlas\'s JWKS instead of calling Appwrite.', 'session tokens');
|
|
88
|
-
}
|
|
89
|
-
else if (m.on) {
|
|
90
|
-
(0, source_lines_1.addAt)(b, at(m.line), m.line, 'manual', 'auth methods', m.from, `The Appwrite method "${id}" has no direct Atlas setting: review it.`);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
if (methods['email-password']?.on) {
|
|
94
|
-
b.set('passwordPolicy.minLength', 8);
|
|
95
|
-
b.add('mapped', 'auth methods', 'password minimum length', 'Appwrite requires 8 characters; so does Atlas.', 'auth_config.passwordPolicy.minLength');
|
|
96
|
-
}
|
|
97
|
-
// ── security ──
|
|
98
|
-
const sec = (k) => security[k];
|
|
99
|
-
const duration = sec('duration');
|
|
100
|
-
if (duration && typeof duration.value === 'number' && duration.value > 0) {
|
|
101
|
-
const ms = (0, translate_kit_1.clampSessionMs)(duration.value * 1000);
|
|
102
|
-
b.set('session.absoluteMs', ms);
|
|
103
|
-
(0, source_lines_1.addAt)(b, at(duration.line), duration.line, ms === duration.value * 1000 ? 'mapped' : 'differs', 'security', duration.from, `${duration.value} s sessions${ms !== duration.value * 1000 ? ' (Appwrite defaults to one year; Atlas allows at most 90 days)' : ''}.`, 'auth_config.session.absoluteMs');
|
|
104
|
-
}
|
|
105
|
-
const sessions = sec('sessionsLimit');
|
|
106
|
-
if (sessions && typeof sessions.value === 'number' && sessions.value > 0) {
|
|
107
|
-
b.set('session.maxConcurrentSessions', sessions.value);
|
|
108
|
-
(0, source_lines_1.addAt)(b, at(sessions.line), sessions.line, 'mapped', 'security', sessions.from, `At most ${sessions.value} sessions per user (the oldest is signed out).`, 'auth_config.session.maxConcurrentSessions');
|
|
109
|
-
}
|
|
110
|
-
const limit = sec('limit');
|
|
111
|
-
if (limit && typeof limit.value === 'number' && limit.value > 0) {
|
|
112
|
-
(0, source_lines_1.addAt)(b, at(limit.line), limit.line, 'manual', 'security', limit.from, `Appwrite caps the project at ${limit.value} users; Atlas has no user cap. Close sign-up (signUpMode "restricted") if that cap was a gate.`, 'auth_config.signUpMode');
|
|
113
|
-
}
|
|
114
|
-
const history = sec('passwordHistory');
|
|
115
|
-
if (history && typeof history.value === 'number' && history.value > 0) {
|
|
116
|
-
b.set('passwordPolicy.historyCount', history.value);
|
|
117
|
-
(0, source_lines_1.addAt)(b, at(history.line), history.line, 'mapped', 'security', history.from, `New passwords may not repeat the last ${history.value}. Atlas starts the history at the first password set in Atlas.`, 'auth_config.passwordPolicy.historyCount');
|
|
118
|
-
}
|
|
119
|
-
const dict = sec('passwordDictionary');
|
|
120
|
-
if (dict?.value === true) {
|
|
121
|
-
b.set('passwordPolicy.checkBreaches', true);
|
|
122
|
-
(0, source_lines_1.addAt)(b, at(dict.line), dict.line, 'differs', 'security', dict.from, 'Appwrite rejects the 10,000 most common passwords; Atlas rejects passwords found in breach corpora, a superset.', 'auth_config.passwordPolicy.checkBreaches');
|
|
123
|
-
}
|
|
124
|
-
const personal = sec('personalDataCheck');
|
|
125
|
-
if (personal?.value === true) {
|
|
126
|
-
b.set('passwordPolicy.rejectIdentifierSubstring', true);
|
|
127
|
-
(0, source_lines_1.addAt)(b, at(personal.line), personal.line, 'mapped', 'security', personal.from, 'Passwords may not contain the user\'s name, email or phone.', 'auth_config.passwordPolicy.rejectIdentifierSubstring');
|
|
128
|
-
}
|
|
129
|
-
const alerts = sec('sessionAlerts');
|
|
130
|
-
if (alerts?.value === true)
|
|
131
|
-
(0, source_lines_1.addAt)(b, at(alerts.line), alerts.line, 'manual', 'security', alerts.from, 'New-session email alerts: enable Atlas\'s new sign-in notification email in the dashboard (Emails).');
|
|
132
|
-
const mock = sec('mockNumbers');
|
|
133
|
-
if (mock && Array.isArray(mock.value) && mock.value.length) {
|
|
134
|
-
(0, source_lines_1.addAt)(b, at(mock.line), mock.line, 'manual', 'security', mock.from, `${mock.value.length} mock phone number(s) with fixed OTPs: use Atlas development-instance test numbers instead; they are not copied.`);
|
|
135
|
-
}
|
|
136
|
-
for (const k of ['membershipsUserName', 'membershipsUserEmail', 'membershipsMfa']) {
|
|
137
|
-
const flag = `auth${k[0].toUpperCase()}${k.slice(1)}`;
|
|
138
|
-
if (project[flag] === false)
|
|
139
|
-
b.add('manual', 'memberships privacy', flag, 'Appwrite hides this member field from team members; Atlas shows members\' names and emails to their organization. Restrict with organization permissions if needed.');
|
|
140
|
-
}
|
|
141
|
-
// ── OAuth providers ──
|
|
142
|
-
for (const p of (0, record_set_1.objs)(project.oAuthProviders)) {
|
|
143
|
-
const key = (0, record_set_1.str)(p.key);
|
|
144
|
-
if (!key || p.enabled !== true)
|
|
145
|
-
continue;
|
|
146
|
-
const atlas = (0, translate_kit_1.socialKey)(key);
|
|
147
|
-
const appId = (0, record_set_1.str)(p.appId);
|
|
148
|
-
if (atlas) {
|
|
149
|
-
b.socialProvider({ atlasKey: atlas, vendorName: key, area: 'oauth providers', setting: `oAuthProviders.${key}`, clientId: appId });
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
b.add('manual', 'oauth providers', `oAuthProviders.${key}`, `"${key}" is not an Atlas built-in provider: add it as a custom OAuth/OIDC provider (custom_oauth_providers) with the same client id${appId ? ` (${appId})` : ''}.`, 'custom_oauth_providers');
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
if (!snap.project && snap.file) {
|
|
156
|
-
b.add('manual', 'oauth providers', 'oAuthProviders', 'appwrite.json does not list OAuth providers: pass the project document (appwrite projects get --json) to translate them, or add them in the Atlas dashboard with the same client ids.');
|
|
157
|
-
}
|
|
158
|
-
// ── always ──
|
|
159
|
-
b.add('differs', 'sessions', 'a_session_<project> cookie', 'Appwrite sessions live on the Appwrite domain and are stored hashed: the appwrite bridge preset asks Appwrite about each live session once and swaps it for an Atlas session.', 'migrations bridge appwrite');
|
|
160
|
-
b.add('differs', 'multi-factor', 'TOTP authenticators', 'Appwrite cannot export TOTP secrets: those users enrol an authenticator app again (recovery codes can be exported).', 'auth_config.mfa.factors.totp');
|
|
161
|
-
const endpoint = snap.endpoint ?? (0, record_set_1.str)(fileDoc?.endpoint);
|
|
162
|
-
const base = endpoint?.replace(/\/+$/, '');
|
|
163
|
-
const ids = projectId ? { project_id: projectId } : {};
|
|
164
|
-
// The bridge preset names the endpoint `endpoint_url`, the lazy preset `endpoint`.
|
|
165
|
-
return b.result(filePath ?? `appwrite project ${projectId ?? ''}`.trim(), {
|
|
166
|
-
bridge: { preset: 'appwrite', vars: { ...ids, ...(base ? { endpoint_url: base } : {}) } },
|
|
167
|
-
lazy: { preset: 'appwrite', config: { ...ids, ...(base ? { endpoint: base } : {}) } },
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
//# sourceMappingURL=appwrite-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appwrite-config.js","sourceRoot":"","sources":["../../../src/migrate/export/appwrite-config.ts"],"names":[],"mappings":";;AA0DA,0DAIC;AAED,0DAwHC;AAvLD,6CAA0D;AAC1D,iDAAoD;AACpD,mDAA2E;AAwB3E,gFAAgF;AAChF,MAAM,OAAO,GAAoD;IAC/D,gBAAgB,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,qGAAqG,EAAE;IAC/J,WAAW,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,8CAA8C,EAAE;IACpG,WAAW,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,sCAAsC,EAAE;IAC5F,KAAK,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,gFAAgF,EAAE;IAChI,SAAS,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,kDAAkD,EAAE;CACvG,CAAC;AAEF,8EAA8E;AAC9E,MAAM,eAAe,GAA2B;IAC9C,iBAAiB,EAAE,gBAAgB;IACnC,qBAAqB,EAAE,WAAW;IAClC,YAAY,EAAE,WAAW;IACzB,SAAS,EAAE,OAAO;IAClB,aAAa,EAAE,WAAW;IAC1B,WAAW,EAAE,SAAS;IACtB,OAAO,EAAE,KAAK;CACf,CAAC;AAEF,MAAM,gBAAgB,GAA2B;IAC/C,YAAY,EAAE,UAAU;IACxB,SAAS,EAAE,OAAO;IAClB,iBAAiB,EAAE,eAAe;IAClC,mBAAmB,EAAE,iBAAiB;IACtC,sBAAsB,EAAE,oBAAoB;IAC5C,qBAAqB,EAAE,mBAAmB;IAC1C,iBAAiB,EAAE,eAAe;IAClC,eAAe,EAAE,aAAa;CAC/B,CAAC;AAEF,SAAgB,uBAAuB,CAAC,IAAY;IAClD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAY,CAAC;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EAAE,qHAAqH,EAAE,8BAA8B,CAAC,CAAC;IAE/M,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAA,gBAAG,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACzD,MAAM,IAAI,GAAG,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC3C,MAAM,GAAG,GAA2B,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/E,mFAAmF;IACnF,OAAO,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,oBAAoB,SAAS,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;QACxE,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,GAAG,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACzF,IAAI,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,GAAG,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;KACtF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { PasswordHash } from '@atlasauth/migrate';
|
|
2
|
-
import { RecordSet, type Obj } from './record-set';
|
|
3
|
-
/**
|
|
4
|
-
* `atlas migrate export appwrite` — an Appwrite project (Cloud or self-hosted,
|
|
5
|
-
* 1.5 and later) through the Server API, with an API key the owner creates
|
|
6
|
-
* (scopes `users.read`, `teams.read`; `users.write` too for recovery codes on
|
|
7
|
-
* 2.x). The key is used on this machine only.
|
|
8
|
-
*
|
|
9
|
-
* Appwrite's Users API returns every user's hash with its algorithm and
|
|
10
|
-
* options (`password`, `hash`, `hashOptions`), so passwords move as they are:
|
|
11
|
-
* Argon2 and bcrypt are self-describing, MD5 and the eleven SHA variants are
|
|
12
|
-
* unsalted hex, phpass keeps its `$P$`/`$H$` digest, plain scrypt carries its
|
|
13
|
-
* literal N / r / p and string salt, and `scryptMod` is Firebase's modified
|
|
14
|
-
* scrypt with Appwrite's fixed N=2^14, r=8.
|
|
15
|
-
*
|
|
16
|
-
* Teams become organizations (confirmed memberships with their roles,
|
|
17
|
-
* unconfirmed ones as pending invitations), labels become app roles, prefs
|
|
18
|
-
* become public metadata (list queries use the JSON syntax of 1.5+). MFA
|
|
19
|
-
* recovery codes are readable (opt in); TOTP secrets are encrypted at rest
|
|
20
|
-
* with no read route, so those users enrol again. Sessions are stored as hashes and cannot leave: the `appwrite` bridge
|
|
21
|
-
* preset asks Appwrite about a live session instead.
|
|
22
|
-
*/
|
|
23
|
-
export interface AppwriteExportOptions {
|
|
24
|
-
/** The API endpoint including /v1 (default https://cloud.appwrite.io/v1). */
|
|
25
|
-
endpoint?: string;
|
|
26
|
-
projectId: string;
|
|
27
|
-
apiKey: string;
|
|
28
|
-
/** Read each MFA user's recovery codes (`GET /users/{id}/mfa/recovery-codes`). */
|
|
29
|
-
recoveryCodes?: boolean;
|
|
30
|
-
/** Skip teams and memberships. */
|
|
31
|
-
skipTeams?: boolean;
|
|
32
|
-
fetchImpl?: typeof fetch;
|
|
33
|
-
sleep?: (ms: number) => Promise<void>;
|
|
34
|
-
onProgress?: (message: string) => void;
|
|
35
|
-
}
|
|
36
|
-
export declare const APPWRITE_CLOUD = "https://cloud.appwrite.io/v1";
|
|
37
|
-
export declare function exportAppwrite(opts: AppwriteExportOptions): Promise<RecordSet>;
|
|
38
|
-
/** Appwrite team roles → one Atlas membership role: `owner` is the org admin, else the first custom role. */
|
|
39
|
-
export declare function appwriteTeamRole(roles: string[]): string;
|
|
40
|
-
/**
|
|
41
|
-
* One Appwrite user's hash in the bundle's terms (see the module comment).
|
|
42
|
-
* `guessed` marks a SHA hash stored without a version; `problem` is a warning
|
|
43
|
-
* for a hash that cannot be carried.
|
|
44
|
-
*/
|
|
45
|
-
export declare function appwritePasswordHash(u: Obj): {
|
|
46
|
-
hash?: PasswordHash;
|
|
47
|
-
guessed?: boolean;
|
|
48
|
-
problem?: string;
|
|
49
|
-
};
|
|
50
|
-
/** An Appwrite 1.5+ query (JSON form) for the `queries[]` parameter. */
|
|
51
|
-
export declare function appwriteQuery(method: string, values: unknown[]): string;
|