@clerk/types 4.54.0 → 4.54.1-canary.v20250415131844

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/oauth.ts","../../src/saml.ts","../../src/web3.ts"],"sourcesContent":["import type { OAuthStrategy } from './strategies';\n\nexport type OAuthScope = string;\n\nexport interface OAuthProviderData {\n provider: OAuthProvider;\n strategy: OAuthStrategy;\n name: string;\n docsUrl: string;\n}\n\nexport type FacebookOauthProvider = 'facebook';\nexport type GoogleOauthProvider = 'google';\nexport type HubspotOauthProvider = 'hubspot';\nexport type GithubOauthProvider = 'github';\nexport type TiktokOauthProvider = 'tiktok';\nexport type GitlabOauthProvider = 'gitlab';\nexport type DiscordOauthProvider = 'discord';\nexport type TwitterOauthProvider = 'twitter';\nexport type TwitchOauthProvider = 'twitch';\nexport type LinkedinOauthProvider = 'linkedin';\nexport type LinkedinOIDCOauthProvider = 'linkedin_oidc';\nexport type DropboxOauthProvider = 'dropbox';\nexport type AtlassianOauthProvider = 'atlassian';\nexport type BitbucketOauthProvider = 'bitbucket';\nexport type MicrosoftOauthProvider = 'microsoft';\nexport type NotionOauthProvider = 'notion';\nexport type AppleOauthProvider = 'apple';\nexport type LineOauthProvider = 'line';\nexport type InstagramOauthProvider = 'instagram';\nexport type CoinbaseOauthProvider = 'coinbase';\nexport type SpotifyOauthProvider = 'spotify';\nexport type XeroOauthProvider = 'xero';\nexport type BoxOauthProvider = 'box';\nexport type SlackOauthProvider = 'slack';\nexport type LinearOauthProvider = 'linear';\nexport type XOauthProvider = 'x';\nexport type EnstallOauthProvider = 'enstall';\nexport type HuggingfaceOAuthProvider = 'huggingface';\nexport type CustomOauthProvider = `custom_${string}`;\n\nexport type OAuthProvider =\n | FacebookOauthProvider\n | GoogleOauthProvider\n | HubspotOauthProvider\n | GithubOauthProvider\n | TiktokOauthProvider\n | GitlabOauthProvider\n | DiscordOauthProvider\n | TwitterOauthProvider\n | TwitchOauthProvider\n | LinkedinOauthProvider\n | LinkedinOIDCOauthProvider\n | DropboxOauthProvider\n | AtlassianOauthProvider\n | BitbucketOauthProvider\n | MicrosoftOauthProvider\n | NotionOauthProvider\n | AppleOauthProvider\n | LineOauthProvider\n | InstagramOauthProvider\n | CoinbaseOauthProvider\n | SpotifyOauthProvider\n | XeroOauthProvider\n | BoxOauthProvider\n | SlackOauthProvider\n | LinearOauthProvider\n | XOauthProvider\n | EnstallOauthProvider\n | HuggingfaceOAuthProvider\n | CustomOauthProvider;\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n * You can import it from `@clerk/shared/oauth`.\n *\n * @hidden\n */\nexport const OAUTH_PROVIDERS: OAuthProviderData[] = [\n {\n provider: 'google',\n strategy: 'oauth_google',\n name: 'Google',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/google',\n },\n {\n provider: 'discord',\n strategy: 'oauth_discord',\n name: 'Discord',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/discord',\n },\n {\n provider: 'facebook',\n strategy: 'oauth_facebook',\n name: 'Facebook',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/facebook',\n },\n {\n provider: 'twitch',\n strategy: 'oauth_twitch',\n name: 'Twitch',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitch',\n },\n {\n provider: 'twitter',\n strategy: 'oauth_twitter',\n name: 'Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitter',\n },\n {\n provider: 'microsoft',\n strategy: 'oauth_microsoft',\n name: 'Microsoft',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/microsoft',\n },\n {\n provider: 'tiktok',\n strategy: 'oauth_tiktok',\n name: 'TikTok',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/tiktok',\n },\n {\n provider: 'linkedin',\n strategy: 'oauth_linkedin',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin',\n },\n {\n provider: 'linkedin_oidc',\n strategy: 'oauth_linkedin_oidc',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',\n },\n {\n provider: 'github',\n strategy: 'oauth_github',\n name: 'GitHub',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/github',\n },\n {\n provider: 'gitlab',\n strategy: 'oauth_gitlab',\n name: 'GitLab',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/gitlab',\n },\n {\n provider: 'dropbox',\n strategy: 'oauth_dropbox',\n name: 'Dropbox',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/dropbox',\n },\n {\n provider: 'atlassian',\n strategy: 'oauth_atlassian',\n name: 'Atlassian',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/atlassian',\n },\n {\n provider: 'bitbucket',\n strategy: 'oauth_bitbucket',\n name: 'Bitbucket',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/bitbucket',\n },\n {\n provider: 'hubspot',\n strategy: 'oauth_hubspot',\n name: 'HubSpot',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/hubspot',\n },\n {\n provider: 'notion',\n strategy: 'oauth_notion',\n name: 'Notion',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/notion',\n },\n {\n provider: 'apple',\n strategy: 'oauth_apple',\n name: 'Apple',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/apple',\n },\n {\n provider: 'line',\n strategy: 'oauth_line',\n name: 'LINE',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/line',\n },\n {\n provider: 'instagram',\n strategy: 'oauth_instagram',\n name: 'Instagram',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/instagram',\n },\n {\n provider: 'coinbase',\n strategy: 'oauth_coinbase',\n name: 'Coinbase',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/coinbase',\n },\n {\n provider: 'spotify',\n strategy: 'oauth_spotify',\n name: 'Spotify',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/spotify',\n },\n {\n provider: 'xero',\n strategy: 'oauth_xero',\n name: 'Xero',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/xero',\n },\n {\n provider: 'box',\n strategy: 'oauth_box',\n name: 'Box',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/box',\n },\n {\n provider: 'slack',\n strategy: 'oauth_slack',\n name: 'Slack',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/slack',\n },\n {\n provider: 'linear',\n strategy: 'oauth_linear',\n name: 'Linear',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linear',\n },\n {\n provider: 'x',\n strategy: 'oauth_x',\n name: 'X / Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/x-twitter-v2',\n },\n {\n provider: 'enstall',\n strategy: 'oauth_enstall',\n name: 'Enstall',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/enstall',\n },\n {\n provider: 'huggingface',\n strategy: 'oauth_huggingface',\n name: 'Hugging Face',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',\n },\n];\n\ninterface getOAuthProviderDataProps {\n provider?: OAuthProvider;\n strategy?: OAuthStrategy;\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getOAuthProviderData({\n provider,\n strategy,\n}: getOAuthProviderDataProps): OAuthProviderData | undefined | null {\n if (provider) {\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.provider == provider);\n }\n\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.strategy == strategy);\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function sortedOAuthProviders(sortingArray: OAuthStrategy[]) {\n return OAUTH_PROVIDERS.slice().sort((a, b) => {\n let aPos = sortingArray.indexOf(a.strategy);\n if (aPos == -1) {\n aPos = Number.MAX_SAFE_INTEGER;\n }\n\n let bPos = sortingArray.indexOf(b.strategy);\n if (bPos == -1) {\n bPos = Number.MAX_SAFE_INTEGER;\n }\n\n return aPos - bPos;\n });\n}\n","export type SamlIdpSlug = 'saml_okta' | 'saml_google' | 'saml_microsoft' | 'saml_custom';\n\nexport type SamlIdp = {\n name: string;\n logo: string;\n};\n\nexport type SamlIdpMap = Record<SamlIdpSlug, SamlIdp>;\n\nexport const SAML_IDPS: SamlIdpMap = {\n saml_okta: {\n name: 'Okta Workforce',\n logo: 'okta',\n },\n saml_google: {\n name: 'Google Workspace',\n logo: 'google',\n },\n saml_microsoft: {\n name: 'Microsoft Entra ID (Formerly AD)',\n logo: 'azure',\n },\n saml_custom: {\n name: 'SAML',\n logo: 'saml',\n },\n};\n","import type { Web3Strategy } from './strategies';\n\nexport interface Web3ProviderData {\n provider: Web3Provider;\n strategy: Web3Strategy;\n name: string;\n}\n\nexport type MetamaskWeb3Provider = 'metamask';\nexport type CoinbaseWalletWeb3Provider = 'coinbase_wallet';\nexport type OKXWalletWeb3Provider = 'okx_wallet';\n\nexport type Web3Provider = MetamaskWeb3Provider | CoinbaseWalletWeb3Provider | OKXWalletWeb3Provider;\n\n/**\n * @deprecated This constant will be dropped in the next major release.\n * You can import it from `@clerk/shared/web3`.\n *\n * @hidden\n */\nexport const WEB3_PROVIDERS: Web3ProviderData[] = [\n {\n provider: 'metamask',\n strategy: 'web3_metamask_signature',\n name: 'MetaMask',\n },\n {\n provider: 'coinbase_wallet',\n strategy: 'web3_coinbase_wallet_signature',\n name: 'Coinbase Wallet',\n },\n {\n provider: 'okx_wallet',\n strategy: 'web3_okx_wallet_signature',\n name: 'OKX Wallet',\n },\n];\n\ninterface getWeb3ProviderDataProps {\n provider?: Web3Provider;\n strategy?: Web3Strategy;\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getWeb3ProviderData({\n provider,\n strategy,\n}: getWeb3ProviderDataProps): Web3ProviderData | undefined | null {\n if (provider) {\n return WEB3_PROVIDERS.find(p => p.provider == provider);\n }\n\n return WEB3_PROVIDERS.find(p => p.strategy == strategy);\n}\n"],"mappings":";AA8EO,IAAM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,SAAO,eAAe,KAAK,OAAK,EAAE,YAAY,QAAQ;AACxD;","names":[]}
1
+ {"version":3,"sources":["../../src/oauth.ts","../../src/saml.ts","../../src/web3.ts"],"sourcesContent":["import type { OAuthStrategy } from './strategies';\n\nexport type OAuthScope = string;\n\nexport interface OAuthProviderData {\n provider: OAuthProvider;\n strategy: OAuthStrategy;\n name: string;\n docsUrl: string;\n}\n\nexport type FacebookOauthProvider = 'facebook';\nexport type GoogleOauthProvider = 'google';\nexport type HubspotOauthProvider = 'hubspot';\nexport type GithubOauthProvider = 'github';\nexport type TiktokOauthProvider = 'tiktok';\nexport type GitlabOauthProvider = 'gitlab';\nexport type DiscordOauthProvider = 'discord';\nexport type TwitterOauthProvider = 'twitter';\nexport type TwitchOauthProvider = 'twitch';\nexport type LinkedinOauthProvider = 'linkedin';\nexport type LinkedinOIDCOauthProvider = 'linkedin_oidc';\nexport type DropboxOauthProvider = 'dropbox';\nexport type AtlassianOauthProvider = 'atlassian';\nexport type BitbucketOauthProvider = 'bitbucket';\nexport type MicrosoftOauthProvider = 'microsoft';\nexport type NotionOauthProvider = 'notion';\nexport type AppleOauthProvider = 'apple';\nexport type LineOauthProvider = 'line';\nexport type InstagramOauthProvider = 'instagram';\nexport type CoinbaseOauthProvider = 'coinbase';\nexport type SpotifyOauthProvider = 'spotify';\nexport type XeroOauthProvider = 'xero';\nexport type BoxOauthProvider = 'box';\nexport type SlackOauthProvider = 'slack';\nexport type LinearOauthProvider = 'linear';\nexport type XOauthProvider = 'x';\nexport type EnstallOauthProvider = 'enstall';\nexport type HuggingfaceOAuthProvider = 'huggingface';\nexport type CustomOauthProvider = `custom_${string}`;\n\nexport type OAuthProvider =\n | FacebookOauthProvider\n | GoogleOauthProvider\n | HubspotOauthProvider\n | GithubOauthProvider\n | TiktokOauthProvider\n | GitlabOauthProvider\n | DiscordOauthProvider\n | TwitterOauthProvider\n | TwitchOauthProvider\n | LinkedinOauthProvider\n | LinkedinOIDCOauthProvider\n | DropboxOauthProvider\n | AtlassianOauthProvider\n | BitbucketOauthProvider\n | MicrosoftOauthProvider\n | NotionOauthProvider\n | AppleOauthProvider\n | LineOauthProvider\n | InstagramOauthProvider\n | CoinbaseOauthProvider\n | SpotifyOauthProvider\n | XeroOauthProvider\n | BoxOauthProvider\n | SlackOauthProvider\n | LinearOauthProvider\n | XOauthProvider\n | EnstallOauthProvider\n | HuggingfaceOAuthProvider\n | CustomOauthProvider;\n\n/**\n * @deprecated Use `import { OAUTH_PROVIDERS } from \"@clerk/shared/oauth\"` instead.\n *\n * @hidden\n */\nexport const OAUTH_PROVIDERS: OAuthProviderData[] = [\n {\n provider: 'google',\n strategy: 'oauth_google',\n name: 'Google',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/google',\n },\n {\n provider: 'discord',\n strategy: 'oauth_discord',\n name: 'Discord',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/discord',\n },\n {\n provider: 'facebook',\n strategy: 'oauth_facebook',\n name: 'Facebook',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/facebook',\n },\n {\n provider: 'twitch',\n strategy: 'oauth_twitch',\n name: 'Twitch',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitch',\n },\n {\n provider: 'twitter',\n strategy: 'oauth_twitter',\n name: 'Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitter',\n },\n {\n provider: 'microsoft',\n strategy: 'oauth_microsoft',\n name: 'Microsoft',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/microsoft',\n },\n {\n provider: 'tiktok',\n strategy: 'oauth_tiktok',\n name: 'TikTok',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/tiktok',\n },\n {\n provider: 'linkedin',\n strategy: 'oauth_linkedin',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin',\n },\n {\n provider: 'linkedin_oidc',\n strategy: 'oauth_linkedin_oidc',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',\n },\n {\n provider: 'github',\n strategy: 'oauth_github',\n name: 'GitHub',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/github',\n },\n {\n provider: 'gitlab',\n strategy: 'oauth_gitlab',\n name: 'GitLab',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/gitlab',\n },\n {\n provider: 'dropbox',\n strategy: 'oauth_dropbox',\n name: 'Dropbox',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/dropbox',\n },\n {\n provider: 'atlassian',\n strategy: 'oauth_atlassian',\n name: 'Atlassian',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/atlassian',\n },\n {\n provider: 'bitbucket',\n strategy: 'oauth_bitbucket',\n name: 'Bitbucket',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/bitbucket',\n },\n {\n provider: 'hubspot',\n strategy: 'oauth_hubspot',\n name: 'HubSpot',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/hubspot',\n },\n {\n provider: 'notion',\n strategy: 'oauth_notion',\n name: 'Notion',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/notion',\n },\n {\n provider: 'apple',\n strategy: 'oauth_apple',\n name: 'Apple',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/apple',\n },\n {\n provider: 'line',\n strategy: 'oauth_line',\n name: 'LINE',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/line',\n },\n {\n provider: 'instagram',\n strategy: 'oauth_instagram',\n name: 'Instagram',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/instagram',\n },\n {\n provider: 'coinbase',\n strategy: 'oauth_coinbase',\n name: 'Coinbase',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/coinbase',\n },\n {\n provider: 'spotify',\n strategy: 'oauth_spotify',\n name: 'Spotify',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/spotify',\n },\n {\n provider: 'xero',\n strategy: 'oauth_xero',\n name: 'Xero',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/xero',\n },\n {\n provider: 'box',\n strategy: 'oauth_box',\n name: 'Box',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/box',\n },\n {\n provider: 'slack',\n strategy: 'oauth_slack',\n name: 'Slack',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/slack',\n },\n {\n provider: 'linear',\n strategy: 'oauth_linear',\n name: 'Linear',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linear',\n },\n {\n provider: 'x',\n strategy: 'oauth_x',\n name: 'X / Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/x-twitter-v2',\n },\n {\n provider: 'enstall',\n strategy: 'oauth_enstall',\n name: 'Enstall',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/enstall',\n },\n {\n provider: 'huggingface',\n strategy: 'oauth_huggingface',\n name: 'Hugging Face',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',\n },\n];\n\ninterface getOAuthProviderDataProps {\n provider?: OAuthProvider;\n strategy?: OAuthStrategy;\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getOAuthProviderData({\n provider,\n strategy,\n}: getOAuthProviderDataProps): OAuthProviderData | undefined | null {\n if (provider) {\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.provider == provider);\n }\n\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.strategy == strategy);\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function sortedOAuthProviders(sortingArray: OAuthStrategy[]) {\n return OAUTH_PROVIDERS.slice().sort((a, b) => {\n let aPos = sortingArray.indexOf(a.strategy);\n if (aPos == -1) {\n aPos = Number.MAX_SAFE_INTEGER;\n }\n\n let bPos = sortingArray.indexOf(b.strategy);\n if (bPos == -1) {\n bPos = Number.MAX_SAFE_INTEGER;\n }\n\n return aPos - bPos;\n });\n}\n","export type SamlIdpSlug = 'saml_okta' | 'saml_google' | 'saml_microsoft' | 'saml_custom';\n\nexport type SamlIdp = {\n name: string;\n logo: string;\n};\n\nexport type SamlIdpMap = Record<SamlIdpSlug, SamlIdp>;\n\nexport const SAML_IDPS: SamlIdpMap = {\n saml_okta: {\n name: 'Okta Workforce',\n logo: 'okta',\n },\n saml_google: {\n name: 'Google Workspace',\n logo: 'google',\n },\n saml_microsoft: {\n name: 'Microsoft Entra ID (Formerly AD)',\n logo: 'azure',\n },\n saml_custom: {\n name: 'SAML',\n logo: 'saml',\n },\n};\n","import type { Web3Strategy } from './strategies';\n\nexport interface Web3ProviderData {\n provider: Web3Provider;\n strategy: Web3Strategy;\n name: string;\n}\n\nexport type MetamaskWeb3Provider = 'metamask';\nexport type CoinbaseWalletWeb3Provider = 'coinbase_wallet';\nexport type OKXWalletWeb3Provider = 'okx_wallet';\n\nexport type Web3Provider = MetamaskWeb3Provider | CoinbaseWalletWeb3Provider | OKXWalletWeb3Provider;\n\n/**\n * @deprecated Use `import { WEB3_PROVIDERS } from \"@clerk/shared/web3\"` instead.\n *\n * @hidden\n */\nexport const WEB3_PROVIDERS: Web3ProviderData[] = [\n {\n provider: 'metamask',\n strategy: 'web3_metamask_signature',\n name: 'MetaMask',\n },\n {\n provider: 'coinbase_wallet',\n strategy: 'web3_coinbase_wallet_signature',\n name: 'Coinbase Wallet',\n },\n {\n provider: 'okx_wallet',\n strategy: 'web3_okx_wallet_signature',\n name: 'OKX Wallet',\n },\n];\n\ninterface getWeb3ProviderDataProps {\n provider?: Web3Provider;\n strategy?: Web3Strategy;\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getWeb3ProviderData({\n provider,\n strategy,\n}: getWeb3ProviderDataProps): Web3ProviderData | undefined | null {\n if (provider) {\n return WEB3_PROVIDERS.find(p => p.provider == provider);\n }\n\n return WEB3_PROVIDERS.find(p => p.strategy == strategy);\n}\n"],"mappings":";AA6EO,IAAM,kBAAuC;AAAA,EAClD;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MA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.mts CHANGED
@@ -58,8 +58,7 @@ type CoinbaseWalletWeb3Provider = 'coinbase_wallet';
58
58
  type OKXWalletWeb3Provider = 'okx_wallet';
59
59
  type Web3Provider = MetamaskWeb3Provider | CoinbaseWalletWeb3Provider | OKXWalletWeb3Provider;
60
60
  /**
61
- * @deprecated This constant will be dropped in the next major release.
62
- * You can import it from `@clerk/shared/web3`.
61
+ * @deprecated Use `import { WEB3_PROVIDERS } from "@clerk/shared/web3"` instead.
63
62
  *
64
63
  * @hidden
65
64
  */
@@ -91,7 +90,7 @@ type EnterpriseSSOStrategy = 'enterprise_sso';
91
90
  type OAuthStrategy = `oauth_${OAuthProvider}` | CustomOAuthStrategy;
92
91
  type Web3Strategy = `web3_${Web3Provider}_signature`;
93
92
  /**
94
- * @deprecated Use `EnterpriseSSOStrategy` instead
93
+ * @deprecated Use `EnterpriseSSOStrategy` instead.
95
94
  */
96
95
  type SamlStrategy = 'saml';
97
96
 
@@ -133,8 +132,7 @@ type HuggingfaceOAuthProvider = 'huggingface';
133
132
  type CustomOauthProvider = `custom_${string}`;
134
133
  type OAuthProvider = FacebookOauthProvider | GoogleOauthProvider | HubspotOauthProvider | GithubOauthProvider | TiktokOauthProvider | GitlabOauthProvider | DiscordOauthProvider | TwitterOauthProvider | TwitchOauthProvider | LinkedinOauthProvider | LinkedinOIDCOauthProvider | DropboxOauthProvider | AtlassianOauthProvider | BitbucketOauthProvider | MicrosoftOauthProvider | NotionOauthProvider | AppleOauthProvider | LineOauthProvider | InstagramOauthProvider | CoinbaseOauthProvider | SpotifyOauthProvider | XeroOauthProvider | BoxOauthProvider | SlackOauthProvider | LinearOauthProvider | XOauthProvider | EnstallOauthProvider | HuggingfaceOAuthProvider | CustomOauthProvider;
135
134
  /**
136
- * @deprecated This utility will be dropped in the next major release.
137
- * You can import it from `@clerk/shared/oauth`.
135
+ * @deprecated Use `import { OAUTH_PROVIDERS } from "@clerk/shared/oauth"` instead.
138
136
  *
139
137
  * @hidden
140
138
  */
@@ -226,11 +224,13 @@ interface ClerkPaginatedResponse<T> {
226
224
  */
227
225
  type ClerkPaginationParams<T = object> = {
228
226
  /**
229
- * A number that specifies which page to fetch. For example, if `initialPage` is set to `10`, it will skip the first 9 pages and fetch the 10th page. Defaults to `1`.
227
+ * A number that specifies which page to fetch. For example, if `initialPage` is set to `10`, it will skip the first 9 pages and fetch the 10th page.
228
+ * @default 1
230
229
  */
231
230
  initialPage?: number;
232
231
  /**
233
- * A number that specifies the maximum number of results to return per page. Defaults to `10`.
232
+ * A number that specifies the maximum number of results to return per page.
233
+ * @default 10
234
234
  */
235
235
  pageSize?: number;
236
236
  } & T;
@@ -831,7 +831,7 @@ interface JWT {
831
831
  }
832
832
  type NonEmptyArray<T> = [T, ...T[]];
833
833
  /**
834
- * @deprecated use `JwtHeader` instead
834
+ * @deprecated Use `JwtHeader` instead.
835
835
  */
836
836
  interface JWTHeader {
837
837
  alg: string | Algorithm;
@@ -846,7 +846,7 @@ interface JWTHeader {
846
846
  x5c?: string | string[];
847
847
  }
848
848
  /**
849
- * @deprecated use `JwtPayload` instead
849
+ * @deprecated Use `JwtPayload` instead.
850
850
  */
851
851
  interface JWTClaims extends ClerkJWTClaims {
852
852
  /**
@@ -856,7 +856,7 @@ interface JWTClaims extends ClerkJWTClaims {
856
856
  }
857
857
  /**
858
858
  * Clerk-issued JWT payload
859
- * @deprecated use `JwtPayload` instead
859
+ * @deprecated Use `JwtPayload` instead.
860
860
  */
861
861
  interface ClerkJWTClaims {
862
862
  /**
@@ -911,7 +911,7 @@ interface ClerkJWTClaims {
911
911
  /**
912
912
  * JWT Actor - [RFC8693](https://www.rfc-editor.org/rfc/rfc8693.html#name-act-actor-claim).
913
913
  * @inline
914
- * @deprecated use `ActClaim` instead
914
+ * @deprecated Use `ActClaim` instead.
915
915
  */
916
916
  interface ActJWTClaim {
917
917
  sub: string;
@@ -1211,7 +1211,7 @@ interface UserResource extends ClerkResource {
1211
1211
  enterpriseAccounts: EnterpriseAccountResource[];
1212
1212
  passkeys: PasskeyResource[];
1213
1213
  /**
1214
- * @deprecated use `enterpriseAccounts` instead
1214
+ * @deprecated Use `enterpriseAccounts` instead.
1215
1215
  */
1216
1216
  samlAccounts: SamlAccountResource[];
1217
1217
  organizationMemberships: OrganizationMembershipResource[];
@@ -2011,7 +2011,7 @@ interface UserSettingsJSON extends ClerkResourceJSON {
2011
2011
  actions: Actions;
2012
2012
  social: OAuthProviders;
2013
2013
  /**
2014
- * @deprecated Use `enterprise_sso` instead
2014
+ * @deprecated Use `enterprise_sso` instead.
2015
2015
  */
2016
2016
  saml: SamlSettings;
2017
2017
  enterprise_sso: EnterpriseSSOSettings;
@@ -2025,7 +2025,7 @@ interface UserSettingsResource extends ClerkResource {
2025
2025
  id?: undefined;
2026
2026
  social: OAuthProviders;
2027
2027
  /**
2028
- * @deprecated Use `enterprise_sso` instead
2028
+ * @deprecated Use `enterprise_sso` instead.
2029
2029
  */
2030
2030
  saml: SamlSettings;
2031
2031
  enterpriseSSO: EnterpriseSSOSettings;
@@ -2090,7 +2090,7 @@ type AfterMultiSessionSingleSignOutUrl = {
2090
2090
  afterMultiSessionSingleSignOutUrl?: string | null;
2091
2091
  };
2092
2092
  /**
2093
- * @deprecated This is deprecated and will be removed in a future release.
2093
+ * @deprecated This will be removed in a future release.
2094
2094
  */
2095
2095
  type LegacyRedirectProps = {
2096
2096
  /**
@@ -2161,13 +2161,15 @@ type SignUpForceRedirectUrl = {
2161
2161
  };
2162
2162
  type SignUpFallbackRedirectUrl = {
2163
2163
  /**
2164
- * The fallback URL to redirect to after the user signs up, if there's no `redirect_url` in the path already. Defaults to `/`. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
2164
+ * The fallback URL to redirect to after the user signs up, if there's no `redirect_url` in the path already. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
2165
+ * @default '/'
2165
2166
  */
2166
2167
  signUpFallbackRedirectUrl?: string | null;
2167
2168
  };
2168
2169
  type SignInFallbackRedirectUrl = {
2169
2170
  /**
2170
- * The fallback URL to redirect to after the user signs in, if there's no `redirect_url` in the path already. Defaults to `/`. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
2171
+ * The fallback URL to redirect to after the user signs in, if there's no `redirect_url` in the path already. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
2172
+ * @default '/'
2171
2173
  */
2172
2174
  signInFallbackRedirectUrl?: string | null;
2173
2175
  };
@@ -2188,7 +2190,7 @@ interface SignInResource extends ClerkResource {
2188
2190
  */
2189
2191
  status: SignInStatus | null;
2190
2192
  /**
2191
- * @deprecated This attribute will be removed in the next major version
2193
+ * @deprecated This attribute will be removed in the next major version.
2192
2194
  */
2193
2195
  supportedIdentifiers: SignInIdentifier[];
2194
2196
  supportedFirstFactors: SignInFirstFactor[] | null;
@@ -2279,7 +2281,7 @@ interface SignInJSON extends ClerkResourceJSON {
2279
2281
  id: string;
2280
2282
  status: SignInStatus;
2281
2283
  /**
2282
- * @deprecated This attribute will be removed in the next major version
2284
+ * @deprecated This attribute will be removed in the next major version.
2283
2285
  */
2284
2286
  supported_identifiers: SignInIdentifier[];
2285
2287
  identifier: string;
@@ -2408,7 +2410,7 @@ type SignUpCreateParams = Partial<{
2408
2410
  } & Omit<SnakeToCamel<Record<SignUpAttributeField | SignUpVerifiableField, string>>, 'legalAccepted'>>;
2409
2411
  type SignUpUpdateParams = SignUpCreateParams;
2410
2412
  /**
2411
- * @deprecated use `SignUpAuthenticateWithWeb3Params` instead
2413
+ * @deprecated Use `SignUpAuthenticateWithWeb3Params` instead.
2412
2414
  */
2413
2415
  type SignUpAuthenticateWithMetamaskParams = SignUpAuthenticateWithWeb3Params;
2414
2416
  type SignUpAuthenticateWithWeb3Params = {
@@ -2668,7 +2670,7 @@ interface UserJSON extends ClerkResourceJSON {
2668
2670
  enterprise_accounts: EnterpriseAccountJSON[];
2669
2671
  passkeys: PasskeyJSON[];
2670
2672
  /**
2671
- * @deprecated use `enterprise_accounts` instead
2673
+ * @deprecated Use `enterprise_accounts` instead.
2672
2674
  */
2673
2675
  saml_accounts: SamlAccountJSON[];
2674
2676
  organization_memberships: OrganizationMembershipJSON[];
@@ -3882,7 +3884,7 @@ interface AuthConfigResource extends ClerkResource {
3882
3884
  singleSessionMode: boolean;
3883
3885
  /**
3884
3886
  * Timestamp of when the instance was claimed. This only applies to applications created with the Keyless mode.
3885
- * Defaults to `null`.
3887
+ * @default null
3886
3888
  */
3887
3889
  claimedAt: Date | null;
3888
3890
  /**
@@ -3914,7 +3916,7 @@ interface ClientResource extends ClerkResource {
3914
3916
  __internal_sendCaptchaToken: (params: unknown) => Promise<ClientResource>;
3915
3917
  __internal_toSnapshot: () => ClientJSONSnapshot;
3916
3918
  /**
3917
- * @deprecated Use `signedInSessions` instead
3919
+ * @deprecated Use `signedInSessions` instead.
3918
3920
  */
3919
3921
  activeSessions: ActiveSessionResource[];
3920
3922
  }
@@ -4371,11 +4373,11 @@ type _LocalizationResource = {
4371
4373
  primaryButton: LocalizationValue;
4372
4374
  actionLabel__connectionFailed: LocalizationValue;
4373
4375
  /**
4374
- * @deprecated UserProfile now only uses `actionLabel__connectionFailed`.
4376
+ * @deprecated Use `actionLabel__connectionFailed` instead.
4375
4377
  */
4376
4378
  actionLabel__reauthorize: LocalizationValue;
4377
4379
  /**
4378
- * @deprecated UserProfile now uses `subtitle__disconnected`.
4380
+ * @deprecated Use `subtitle__disconnected` instead.
4379
4381
  */
4380
4382
  subtitle__reauthorize: LocalizationValue;
4381
4383
  subtitle__disconnected: LocalizationValue;
@@ -4448,7 +4450,7 @@ type _LocalizationResource = {
4448
4450
  formHint: LocalizationValue;
4449
4451
  emailCode: {
4450
4452
  /**
4451
- * @deprecated UserProfile now only uses `emailAddressPage.formHint`.
4453
+ * @deprecated Use `emailAddressPage.formHint` instead.
4452
4454
  */
4453
4455
  formHint: LocalizationValue;
4454
4456
  formTitle: LocalizationValue;
@@ -4458,7 +4460,7 @@ type _LocalizationResource = {
4458
4460
  };
4459
4461
  emailLink: {
4460
4462
  /**
4461
- * @deprecated UserProfile now only uses `emailAddressPage.formHint`.
4463
+ * @deprecated Use `emailAddressPage.formHint` instead.
4462
4464
  */
4463
4465
  formHint: LocalizationValue;
4464
4466
  formTitle: LocalizationValue;
@@ -5620,7 +5622,8 @@ type ClerkOptions = PendingSessionOptions & ClerkOptionsNavigation & SignInForce
5620
5622
  */
5621
5623
  experimental?: Autocomplete<{
5622
5624
  /**
5623
- * Persist the Clerk client to match the user's device with a client. Defaults to `true`.
5625
+ * Persist the Clerk client to match the user's device with a client.
5626
+ * @default true
5624
5627
  */
5625
5628
  persistClient: boolean;
5626
5629
  /**
@@ -5745,7 +5748,7 @@ type SetActiveParams = {
5745
5748
  */
5746
5749
  organization?: OrganizationResource | string | null;
5747
5750
  /**
5748
- * @deprecated in favor of `redirectUrl`.
5751
+ * @deprecated Use `redirectUrl` instead.
5749
5752
  *
5750
5753
  * Callback run just before the active session and/or organization is set to the passed object. Can be used to set up for pre-navigation actions.
5751
5754
  */
@@ -6028,13 +6031,13 @@ type UserButtonProps = UserButtonProfileMode & {
6028
6031
  __experimental_asStandalone?: boolean | ((opened: boolean) => void);
6029
6032
  /**
6030
6033
  * Full URL or path to navigate to after sign out is complete
6031
- * @deprecated Configure `afterSignOutUrl` as a global configuration, either in <ClerkProvider/> or in await Clerk.load()
6034
+ * @deprecated Configure `afterSignOutUrl` as a global configuration, either in `<ClerkProvider/>` or in `await Clerk.load()`.
6032
6035
  */
6033
6036
  afterSignOutUrl?: string;
6034
6037
  /**
6035
6038
  * Full URL or path to navigate to after signing out the current user is complete.
6036
6039
  * This option applies to multi-session applications.
6037
- * @deprecated Configure `afterMultiSessionSingleSignOutUrl` as a global configuration, either in <ClerkProvider/> or in await Clerk.load()
6040
+ * @deprecated Configure `afterMultiSessionSingleSignOutUrl` as a global configuration, either in `<ClerkProvider/>` or in `await Clerk.load()`.
6038
6041
  */
6039
6042
  afterMultiSessionSingleSignOutUrl?: string;
6040
6043
  /**
@@ -6098,7 +6101,7 @@ type OrganizationSwitcherProps = CreateOrganizationMode & OrganizationProfileMod
6098
6101
  /**
6099
6102
  * Full URL or path to navigate to after a successful organization switch.
6100
6103
  * @default undefined
6101
- * @deprecated use `afterSelectOrganizationUrl` or `afterSelectPersonalUrl`
6104
+ * @deprecated Use `afterSelectOrganizationUrl` or `afterSelectPersonalUrl`.
6102
6105
  */
6103
6106
  afterSwitchOrganizationUrl?: string;
6104
6107
  /**
package/dist/index.d.ts CHANGED
@@ -58,8 +58,7 @@ type CoinbaseWalletWeb3Provider = 'coinbase_wallet';
58
58
  type OKXWalletWeb3Provider = 'okx_wallet';
59
59
  type Web3Provider = MetamaskWeb3Provider | CoinbaseWalletWeb3Provider | OKXWalletWeb3Provider;
60
60
  /**
61
- * @deprecated This constant will be dropped in the next major release.
62
- * You can import it from `@clerk/shared/web3`.
61
+ * @deprecated Use `import { WEB3_PROVIDERS } from "@clerk/shared/web3"` instead.
63
62
  *
64
63
  * @hidden
65
64
  */
@@ -91,7 +90,7 @@ type EnterpriseSSOStrategy = 'enterprise_sso';
91
90
  type OAuthStrategy = `oauth_${OAuthProvider}` | CustomOAuthStrategy;
92
91
  type Web3Strategy = `web3_${Web3Provider}_signature`;
93
92
  /**
94
- * @deprecated Use `EnterpriseSSOStrategy` instead
93
+ * @deprecated Use `EnterpriseSSOStrategy` instead.
95
94
  */
96
95
  type SamlStrategy = 'saml';
97
96
 
@@ -133,8 +132,7 @@ type HuggingfaceOAuthProvider = 'huggingface';
133
132
  type CustomOauthProvider = `custom_${string}`;
134
133
  type OAuthProvider = FacebookOauthProvider | GoogleOauthProvider | HubspotOauthProvider | GithubOauthProvider | TiktokOauthProvider | GitlabOauthProvider | DiscordOauthProvider | TwitterOauthProvider | TwitchOauthProvider | LinkedinOauthProvider | LinkedinOIDCOauthProvider | DropboxOauthProvider | AtlassianOauthProvider | BitbucketOauthProvider | MicrosoftOauthProvider | NotionOauthProvider | AppleOauthProvider | LineOauthProvider | InstagramOauthProvider | CoinbaseOauthProvider | SpotifyOauthProvider | XeroOauthProvider | BoxOauthProvider | SlackOauthProvider | LinearOauthProvider | XOauthProvider | EnstallOauthProvider | HuggingfaceOAuthProvider | CustomOauthProvider;
135
134
  /**
136
- * @deprecated This utility will be dropped in the next major release.
137
- * You can import it from `@clerk/shared/oauth`.
135
+ * @deprecated Use `import { OAUTH_PROVIDERS } from "@clerk/shared/oauth"` instead.
138
136
  *
139
137
  * @hidden
140
138
  */
@@ -226,11 +224,13 @@ interface ClerkPaginatedResponse<T> {
226
224
  */
227
225
  type ClerkPaginationParams<T = object> = {
228
226
  /**
229
- * A number that specifies which page to fetch. For example, if `initialPage` is set to `10`, it will skip the first 9 pages and fetch the 10th page. Defaults to `1`.
227
+ * A number that specifies which page to fetch. For example, if `initialPage` is set to `10`, it will skip the first 9 pages and fetch the 10th page.
228
+ * @default 1
230
229
  */
231
230
  initialPage?: number;
232
231
  /**
233
- * A number that specifies the maximum number of results to return per page. Defaults to `10`.
232
+ * A number that specifies the maximum number of results to return per page.
233
+ * @default 10
234
234
  */
235
235
  pageSize?: number;
236
236
  } & T;
@@ -831,7 +831,7 @@ interface JWT {
831
831
  }
832
832
  type NonEmptyArray<T> = [T, ...T[]];
833
833
  /**
834
- * @deprecated use `JwtHeader` instead
834
+ * @deprecated Use `JwtHeader` instead.
835
835
  */
836
836
  interface JWTHeader {
837
837
  alg: string | Algorithm;
@@ -846,7 +846,7 @@ interface JWTHeader {
846
846
  x5c?: string | string[];
847
847
  }
848
848
  /**
849
- * @deprecated use `JwtPayload` instead
849
+ * @deprecated Use `JwtPayload` instead.
850
850
  */
851
851
  interface JWTClaims extends ClerkJWTClaims {
852
852
  /**
@@ -856,7 +856,7 @@ interface JWTClaims extends ClerkJWTClaims {
856
856
  }
857
857
  /**
858
858
  * Clerk-issued JWT payload
859
- * @deprecated use `JwtPayload` instead
859
+ * @deprecated Use `JwtPayload` instead.
860
860
  */
861
861
  interface ClerkJWTClaims {
862
862
  /**
@@ -911,7 +911,7 @@ interface ClerkJWTClaims {
911
911
  /**
912
912
  * JWT Actor - [RFC8693](https://www.rfc-editor.org/rfc/rfc8693.html#name-act-actor-claim).
913
913
  * @inline
914
- * @deprecated use `ActClaim` instead
914
+ * @deprecated Use `ActClaim` instead.
915
915
  */
916
916
  interface ActJWTClaim {
917
917
  sub: string;
@@ -1211,7 +1211,7 @@ interface UserResource extends ClerkResource {
1211
1211
  enterpriseAccounts: EnterpriseAccountResource[];
1212
1212
  passkeys: PasskeyResource[];
1213
1213
  /**
1214
- * @deprecated use `enterpriseAccounts` instead
1214
+ * @deprecated Use `enterpriseAccounts` instead.
1215
1215
  */
1216
1216
  samlAccounts: SamlAccountResource[];
1217
1217
  organizationMemberships: OrganizationMembershipResource[];
@@ -2011,7 +2011,7 @@ interface UserSettingsJSON extends ClerkResourceJSON {
2011
2011
  actions: Actions;
2012
2012
  social: OAuthProviders;
2013
2013
  /**
2014
- * @deprecated Use `enterprise_sso` instead
2014
+ * @deprecated Use `enterprise_sso` instead.
2015
2015
  */
2016
2016
  saml: SamlSettings;
2017
2017
  enterprise_sso: EnterpriseSSOSettings;
@@ -2025,7 +2025,7 @@ interface UserSettingsResource extends ClerkResource {
2025
2025
  id?: undefined;
2026
2026
  social: OAuthProviders;
2027
2027
  /**
2028
- * @deprecated Use `enterprise_sso` instead
2028
+ * @deprecated Use `enterprise_sso` instead.
2029
2029
  */
2030
2030
  saml: SamlSettings;
2031
2031
  enterpriseSSO: EnterpriseSSOSettings;
@@ -2090,7 +2090,7 @@ type AfterMultiSessionSingleSignOutUrl = {
2090
2090
  afterMultiSessionSingleSignOutUrl?: string | null;
2091
2091
  };
2092
2092
  /**
2093
- * @deprecated This is deprecated and will be removed in a future release.
2093
+ * @deprecated This will be removed in a future release.
2094
2094
  */
2095
2095
  type LegacyRedirectProps = {
2096
2096
  /**
@@ -2161,13 +2161,15 @@ type SignUpForceRedirectUrl = {
2161
2161
  };
2162
2162
  type SignUpFallbackRedirectUrl = {
2163
2163
  /**
2164
- * The fallback URL to redirect to after the user signs up, if there's no `redirect_url` in the path already. Defaults to `/`. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
2164
+ * The fallback URL to redirect to after the user signs up, if there's no `redirect_url` in the path already. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
2165
+ * @default '/'
2165
2166
  */
2166
2167
  signUpFallbackRedirectUrl?: string | null;
2167
2168
  };
2168
2169
  type SignInFallbackRedirectUrl = {
2169
2170
  /**
2170
- * The fallback URL to redirect to after the user signs in, if there's no `redirect_url` in the path already. Defaults to `/`. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
2171
+ * The fallback URL to redirect to after the user signs in, if there's no `redirect_url` in the path already. It's recommended to use the [environment variable](https://clerk.com/docs/deployments/clerk-environment-variables#sign-in-and-sign-up-redirects) instead.
2172
+ * @default '/'
2171
2173
  */
2172
2174
  signInFallbackRedirectUrl?: string | null;
2173
2175
  };
@@ -2188,7 +2190,7 @@ interface SignInResource extends ClerkResource {
2188
2190
  */
2189
2191
  status: SignInStatus | null;
2190
2192
  /**
2191
- * @deprecated This attribute will be removed in the next major version
2193
+ * @deprecated This attribute will be removed in the next major version.
2192
2194
  */
2193
2195
  supportedIdentifiers: SignInIdentifier[];
2194
2196
  supportedFirstFactors: SignInFirstFactor[] | null;
@@ -2279,7 +2281,7 @@ interface SignInJSON extends ClerkResourceJSON {
2279
2281
  id: string;
2280
2282
  status: SignInStatus;
2281
2283
  /**
2282
- * @deprecated This attribute will be removed in the next major version
2284
+ * @deprecated This attribute will be removed in the next major version.
2283
2285
  */
2284
2286
  supported_identifiers: SignInIdentifier[];
2285
2287
  identifier: string;
@@ -2408,7 +2410,7 @@ type SignUpCreateParams = Partial<{
2408
2410
  } & Omit<SnakeToCamel<Record<SignUpAttributeField | SignUpVerifiableField, string>>, 'legalAccepted'>>;
2409
2411
  type SignUpUpdateParams = SignUpCreateParams;
2410
2412
  /**
2411
- * @deprecated use `SignUpAuthenticateWithWeb3Params` instead
2413
+ * @deprecated Use `SignUpAuthenticateWithWeb3Params` instead.
2412
2414
  */
2413
2415
  type SignUpAuthenticateWithMetamaskParams = SignUpAuthenticateWithWeb3Params;
2414
2416
  type SignUpAuthenticateWithWeb3Params = {
@@ -2668,7 +2670,7 @@ interface UserJSON extends ClerkResourceJSON {
2668
2670
  enterprise_accounts: EnterpriseAccountJSON[];
2669
2671
  passkeys: PasskeyJSON[];
2670
2672
  /**
2671
- * @deprecated use `enterprise_accounts` instead
2673
+ * @deprecated Use `enterprise_accounts` instead.
2672
2674
  */
2673
2675
  saml_accounts: SamlAccountJSON[];
2674
2676
  organization_memberships: OrganizationMembershipJSON[];
@@ -3882,7 +3884,7 @@ interface AuthConfigResource extends ClerkResource {
3882
3884
  singleSessionMode: boolean;
3883
3885
  /**
3884
3886
  * Timestamp of when the instance was claimed. This only applies to applications created with the Keyless mode.
3885
- * Defaults to `null`.
3887
+ * @default null
3886
3888
  */
3887
3889
  claimedAt: Date | null;
3888
3890
  /**
@@ -3914,7 +3916,7 @@ interface ClientResource extends ClerkResource {
3914
3916
  __internal_sendCaptchaToken: (params: unknown) => Promise<ClientResource>;
3915
3917
  __internal_toSnapshot: () => ClientJSONSnapshot;
3916
3918
  /**
3917
- * @deprecated Use `signedInSessions` instead
3919
+ * @deprecated Use `signedInSessions` instead.
3918
3920
  */
3919
3921
  activeSessions: ActiveSessionResource[];
3920
3922
  }
@@ -4371,11 +4373,11 @@ type _LocalizationResource = {
4371
4373
  primaryButton: LocalizationValue;
4372
4374
  actionLabel__connectionFailed: LocalizationValue;
4373
4375
  /**
4374
- * @deprecated UserProfile now only uses `actionLabel__connectionFailed`.
4376
+ * @deprecated Use `actionLabel__connectionFailed` instead.
4375
4377
  */
4376
4378
  actionLabel__reauthorize: LocalizationValue;
4377
4379
  /**
4378
- * @deprecated UserProfile now uses `subtitle__disconnected`.
4380
+ * @deprecated Use `subtitle__disconnected` instead.
4379
4381
  */
4380
4382
  subtitle__reauthorize: LocalizationValue;
4381
4383
  subtitle__disconnected: LocalizationValue;
@@ -4448,7 +4450,7 @@ type _LocalizationResource = {
4448
4450
  formHint: LocalizationValue;
4449
4451
  emailCode: {
4450
4452
  /**
4451
- * @deprecated UserProfile now only uses `emailAddressPage.formHint`.
4453
+ * @deprecated Use `emailAddressPage.formHint` instead.
4452
4454
  */
4453
4455
  formHint: LocalizationValue;
4454
4456
  formTitle: LocalizationValue;
@@ -4458,7 +4460,7 @@ type _LocalizationResource = {
4458
4460
  };
4459
4461
  emailLink: {
4460
4462
  /**
4461
- * @deprecated UserProfile now only uses `emailAddressPage.formHint`.
4463
+ * @deprecated Use `emailAddressPage.formHint` instead.
4462
4464
  */
4463
4465
  formHint: LocalizationValue;
4464
4466
  formTitle: LocalizationValue;
@@ -5620,7 +5622,8 @@ type ClerkOptions = PendingSessionOptions & ClerkOptionsNavigation & SignInForce
5620
5622
  */
5621
5623
  experimental?: Autocomplete<{
5622
5624
  /**
5623
- * Persist the Clerk client to match the user's device with a client. Defaults to `true`.
5625
+ * Persist the Clerk client to match the user's device with a client.
5626
+ * @default true
5624
5627
  */
5625
5628
  persistClient: boolean;
5626
5629
  /**
@@ -5745,7 +5748,7 @@ type SetActiveParams = {
5745
5748
  */
5746
5749
  organization?: OrganizationResource | string | null;
5747
5750
  /**
5748
- * @deprecated in favor of `redirectUrl`.
5751
+ * @deprecated Use `redirectUrl` instead.
5749
5752
  *
5750
5753
  * Callback run just before the active session and/or organization is set to the passed object. Can be used to set up for pre-navigation actions.
5751
5754
  */
@@ -6028,13 +6031,13 @@ type UserButtonProps = UserButtonProfileMode & {
6028
6031
  __experimental_asStandalone?: boolean | ((opened: boolean) => void);
6029
6032
  /**
6030
6033
  * Full URL or path to navigate to after sign out is complete
6031
- * @deprecated Configure `afterSignOutUrl` as a global configuration, either in <ClerkProvider/> or in await Clerk.load()
6034
+ * @deprecated Configure `afterSignOutUrl` as a global configuration, either in `<ClerkProvider/>` or in `await Clerk.load()`.
6032
6035
  */
6033
6036
  afterSignOutUrl?: string;
6034
6037
  /**
6035
6038
  * Full URL or path to navigate to after signing out the current user is complete.
6036
6039
  * This option applies to multi-session applications.
6037
- * @deprecated Configure `afterMultiSessionSingleSignOutUrl` as a global configuration, either in <ClerkProvider/> or in await Clerk.load()
6040
+ * @deprecated Configure `afterMultiSessionSingleSignOutUrl` as a global configuration, either in `<ClerkProvider/>` or in `await Clerk.load()`.
6038
6041
  */
6039
6042
  afterMultiSessionSingleSignOutUrl?: string;
6040
6043
  /**
@@ -6098,7 +6101,7 @@ type OrganizationSwitcherProps = CreateOrganizationMode & OrganizationProfileMod
6098
6101
  /**
6099
6102
  * Full URL or path to navigate to after a successful organization switch.
6100
6103
  * @default undefined
6101
- * @deprecated use `afterSelectOrganizationUrl` or `afterSelectPersonalUrl`
6104
+ * @deprecated Use `afterSelectOrganizationUrl` or `afterSelectPersonalUrl`.
6102
6105
  */
6103
6106
  afterSwitchOrganizationUrl?: string;
6104
6107
  /**
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/oauth.ts","../src/saml.ts","../src/web3.ts"],"sourcesContent":["export * from './api';\nexport * from './appearance';\nexport * from './elementIds';\nexport * from './attributes';\nexport * from './authConfig';\nexport * from './backupCode';\nexport * from './clerk';\nexport * from './client';\nexport * from './commerce';\nexport * from './commerceSettings';\nexport * from './deletedObject';\nexport * from './displayConfig';\nexport * from './emailAddress';\nexport * from './environment';\nexport * from './externalAccount';\nexport * from './enterpriseAccount';\nexport * from './factors';\nexport * from './hooks';\nexport * from './identificationLink';\nexport * from './identifiers';\nexport * from './image';\nexport * from './instance';\nexport * from './json';\nexport * from './jwt';\nexport * from './key';\nexport * from './localization';\nexport * from './jwtv2';\nexport * from './multiDomain';\nexport * from './oauth';\nexport * from './organization';\nexport * from './organizationDomain';\nexport * from './organizationInvitation';\nexport * from './organizationMembership';\nexport * from './organizationMembershipRequest';\nexport * from './organizationSettings';\nexport * from './organizationSuggestion';\nexport * from './passwords';\nexport * from './permission';\nexport * from './phoneNumber';\nexport * from './redirects';\nexport * from './resource';\nexport * from './role';\nexport * from './router';\nexport * from './saml';\nexport * from './samlAccount';\nexport * from './session';\nexport * from './sessionVerification';\nexport * from './signIn';\nexport * from './signUp';\nexport * from './ssr';\nexport * from './strategies';\nexport * from './theme';\nexport * from './token';\nexport * from './totp';\nexport * from './telemetry';\nexport * from './user';\nexport * from './userOrganizationInvitation';\nexport * from './userSettings';\nexport * from './utils';\nexport * from './verification';\nexport * from './web3';\nexport * from './web3Wallet';\nexport * from './customPages';\nexport * from './pagination';\nexport * from './passkey';\nexport * from './customMenuItems';\nexport * from './samlConnection';\nexport * from './waitlist';\nexport * from './snapshots';\nexport * from './authObject';\n","import type { OAuthStrategy } from './strategies';\n\nexport type OAuthScope = string;\n\nexport interface OAuthProviderData {\n provider: OAuthProvider;\n strategy: OAuthStrategy;\n name: string;\n docsUrl: string;\n}\n\nexport type FacebookOauthProvider = 'facebook';\nexport type GoogleOauthProvider = 'google';\nexport type HubspotOauthProvider = 'hubspot';\nexport type GithubOauthProvider = 'github';\nexport type TiktokOauthProvider = 'tiktok';\nexport type GitlabOauthProvider = 'gitlab';\nexport type DiscordOauthProvider = 'discord';\nexport type TwitterOauthProvider = 'twitter';\nexport type TwitchOauthProvider = 'twitch';\nexport type LinkedinOauthProvider = 'linkedin';\nexport type LinkedinOIDCOauthProvider = 'linkedin_oidc';\nexport type DropboxOauthProvider = 'dropbox';\nexport type AtlassianOauthProvider = 'atlassian';\nexport type BitbucketOauthProvider = 'bitbucket';\nexport type MicrosoftOauthProvider = 'microsoft';\nexport type NotionOauthProvider = 'notion';\nexport type AppleOauthProvider = 'apple';\nexport type LineOauthProvider = 'line';\nexport type InstagramOauthProvider = 'instagram';\nexport type CoinbaseOauthProvider = 'coinbase';\nexport type SpotifyOauthProvider = 'spotify';\nexport type XeroOauthProvider = 'xero';\nexport type BoxOauthProvider = 'box';\nexport type SlackOauthProvider = 'slack';\nexport type LinearOauthProvider = 'linear';\nexport type XOauthProvider = 'x';\nexport type EnstallOauthProvider = 'enstall';\nexport type HuggingfaceOAuthProvider = 'huggingface';\nexport type CustomOauthProvider = `custom_${string}`;\n\nexport type OAuthProvider =\n | FacebookOauthProvider\n | GoogleOauthProvider\n | HubspotOauthProvider\n | GithubOauthProvider\n | TiktokOauthProvider\n | GitlabOauthProvider\n | DiscordOauthProvider\n | TwitterOauthProvider\n | TwitchOauthProvider\n | LinkedinOauthProvider\n | LinkedinOIDCOauthProvider\n | DropboxOauthProvider\n | AtlassianOauthProvider\n | BitbucketOauthProvider\n | MicrosoftOauthProvider\n | NotionOauthProvider\n | AppleOauthProvider\n | LineOauthProvider\n | InstagramOauthProvider\n | CoinbaseOauthProvider\n | SpotifyOauthProvider\n | XeroOauthProvider\n | BoxOauthProvider\n | SlackOauthProvider\n | LinearOauthProvider\n | XOauthProvider\n | EnstallOauthProvider\n | HuggingfaceOAuthProvider\n | CustomOauthProvider;\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n * You can import it from `@clerk/shared/oauth`.\n *\n * @hidden\n */\nexport const OAUTH_PROVIDERS: OAuthProviderData[] = [\n {\n provider: 'google',\n strategy: 'oauth_google',\n name: 'Google',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/google',\n },\n {\n provider: 'discord',\n strategy: 'oauth_discord',\n name: 'Discord',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/discord',\n },\n {\n provider: 'facebook',\n strategy: 'oauth_facebook',\n name: 'Facebook',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/facebook',\n },\n {\n provider: 'twitch',\n strategy: 'oauth_twitch',\n name: 'Twitch',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitch',\n },\n {\n provider: 'twitter',\n strategy: 'oauth_twitter',\n name: 'Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitter',\n },\n {\n provider: 'microsoft',\n strategy: 'oauth_microsoft',\n name: 'Microsoft',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/microsoft',\n },\n {\n provider: 'tiktok',\n strategy: 'oauth_tiktok',\n name: 'TikTok',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/tiktok',\n },\n {\n provider: 'linkedin',\n strategy: 'oauth_linkedin',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin',\n },\n {\n provider: 'linkedin_oidc',\n strategy: 'oauth_linkedin_oidc',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',\n },\n {\n provider: 'github',\n strategy: 'oauth_github',\n name: 'GitHub',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/github',\n },\n {\n provider: 'gitlab',\n strategy: 'oauth_gitlab',\n name: 'GitLab',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/gitlab',\n },\n {\n provider: 'dropbox',\n strategy: 'oauth_dropbox',\n name: 'Dropbox',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/dropbox',\n },\n {\n provider: 'atlassian',\n strategy: 'oauth_atlassian',\n name: 'Atlassian',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/atlassian',\n },\n {\n provider: 'bitbucket',\n strategy: 'oauth_bitbucket',\n name: 'Bitbucket',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/bitbucket',\n },\n {\n provider: 'hubspot',\n strategy: 'oauth_hubspot',\n name: 'HubSpot',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/hubspot',\n },\n {\n provider: 'notion',\n strategy: 'oauth_notion',\n name: 'Notion',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/notion',\n },\n {\n provider: 'apple',\n strategy: 'oauth_apple',\n name: 'Apple',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/apple',\n },\n {\n provider: 'line',\n strategy: 'oauth_line',\n name: 'LINE',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/line',\n },\n {\n provider: 'instagram',\n strategy: 'oauth_instagram',\n name: 'Instagram',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/instagram',\n },\n {\n provider: 'coinbase',\n strategy: 'oauth_coinbase',\n name: 'Coinbase',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/coinbase',\n },\n {\n provider: 'spotify',\n strategy: 'oauth_spotify',\n name: 'Spotify',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/spotify',\n },\n {\n provider: 'xero',\n strategy: 'oauth_xero',\n name: 'Xero',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/xero',\n },\n {\n provider: 'box',\n strategy: 'oauth_box',\n name: 'Box',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/box',\n },\n {\n provider: 'slack',\n strategy: 'oauth_slack',\n name: 'Slack',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/slack',\n },\n {\n provider: 'linear',\n strategy: 'oauth_linear',\n name: 'Linear',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linear',\n },\n {\n provider: 'x',\n strategy: 'oauth_x',\n name: 'X / Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/x-twitter-v2',\n },\n {\n provider: 'enstall',\n strategy: 'oauth_enstall',\n name: 'Enstall',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/enstall',\n },\n {\n provider: 'huggingface',\n strategy: 'oauth_huggingface',\n name: 'Hugging Face',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',\n },\n];\n\ninterface getOAuthProviderDataProps {\n provider?: OAuthProvider;\n strategy?: OAuthStrategy;\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getOAuthProviderData({\n provider,\n strategy,\n}: getOAuthProviderDataProps): OAuthProviderData | undefined | null {\n if (provider) {\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.provider == provider);\n }\n\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.strategy == strategy);\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function sortedOAuthProviders(sortingArray: OAuthStrategy[]) {\n return OAUTH_PROVIDERS.slice().sort((a, b) => {\n let aPos = sortingArray.indexOf(a.strategy);\n if (aPos == -1) {\n aPos = Number.MAX_SAFE_INTEGER;\n }\n\n let bPos = sortingArray.indexOf(b.strategy);\n if (bPos == -1) {\n bPos = Number.MAX_SAFE_INTEGER;\n }\n\n return aPos - bPos;\n });\n}\n","export type SamlIdpSlug = 'saml_okta' | 'saml_google' | 'saml_microsoft' | 'saml_custom';\n\nexport type SamlIdp = {\n name: string;\n logo: string;\n};\n\nexport type SamlIdpMap = Record<SamlIdpSlug, SamlIdp>;\n\nexport const SAML_IDPS: SamlIdpMap = {\n saml_okta: {\n name: 'Okta Workforce',\n logo: 'okta',\n },\n saml_google: {\n name: 'Google Workspace',\n logo: 'google',\n },\n saml_microsoft: {\n name: 'Microsoft Entra ID (Formerly AD)',\n logo: 'azure',\n },\n saml_custom: {\n name: 'SAML',\n logo: 'saml',\n },\n};\n","import type { Web3Strategy } from './strategies';\n\nexport interface Web3ProviderData {\n provider: Web3Provider;\n strategy: Web3Strategy;\n name: string;\n}\n\nexport type MetamaskWeb3Provider = 'metamask';\nexport type CoinbaseWalletWeb3Provider = 'coinbase_wallet';\nexport type OKXWalletWeb3Provider = 'okx_wallet';\n\nexport type Web3Provider = MetamaskWeb3Provider | CoinbaseWalletWeb3Provider | OKXWalletWeb3Provider;\n\n/**\n * @deprecated This constant will be dropped in the next major release.\n * You can import it from `@clerk/shared/web3`.\n *\n * @hidden\n */\nexport const WEB3_PROVIDERS: Web3ProviderData[] = [\n {\n provider: 'metamask',\n strategy: 'web3_metamask_signature',\n name: 'MetaMask',\n },\n {\n provider: 'coinbase_wallet',\n strategy: 'web3_coinbase_wallet_signature',\n name: 'Coinbase Wallet',\n },\n {\n provider: 'okx_wallet',\n strategy: 'web3_okx_wallet_signature',\n name: 'OKX Wallet',\n },\n];\n\ninterface getWeb3ProviderDataProps {\n provider?: Web3Provider;\n strategy?: Web3Strategy;\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getWeb3ProviderData({\n provider,\n strategy,\n}: getWeb3ProviderDataProps): Web3ProviderData | undefined | null {\n if (provider) {\n return WEB3_PROVIDERS.find(p => p.provider == provider);\n }\n\n return WEB3_PROVIDERS.find(p => p.strategy == strategy);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC8EO,IAAM,kBAAuC;AAAA,EAClD;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU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,IACX,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AAAA,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AAAA,EACA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AACF;;;ACNO,IAAM,iBAAqC;AAAA,EAChD;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AACF;AAYO,SAAS,oBAAoB;AAAA,EAClC;AAAA,EACA;AACF,GAAkE;AAChE,MAAI,UAAU;AACZ,WAAO,eAAe,KAAK,OAAK,EAAE,YAAY,QAAQ;AAAA,EACxD;AAEA,SAAO,eAAe,KAAK,OAAK,EAAE,YAAY,QAAQ;AACxD;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/oauth.ts","../src/saml.ts","../src/web3.ts"],"sourcesContent":["export * from './api';\nexport * from './appearance';\nexport * from './elementIds';\nexport * from './attributes';\nexport * from './authConfig';\nexport * from './backupCode';\nexport * from './clerk';\nexport * from './client';\nexport * from './commerce';\nexport * from './commerceSettings';\nexport * from './deletedObject';\nexport * from './displayConfig';\nexport * from './emailAddress';\nexport * from './environment';\nexport * from './externalAccount';\nexport * from './enterpriseAccount';\nexport * from './factors';\nexport * from './hooks';\nexport * from './identificationLink';\nexport * from './identifiers';\nexport * from './image';\nexport * from './instance';\nexport * from './json';\nexport * from './jwt';\nexport * from './key';\nexport * from './localization';\nexport * from './jwtv2';\nexport * from './multiDomain';\nexport * from './oauth';\nexport * from './organization';\nexport * from './organizationDomain';\nexport * from './organizationInvitation';\nexport * from './organizationMembership';\nexport * from './organizationMembershipRequest';\nexport * from './organizationSettings';\nexport * from './organizationSuggestion';\nexport * from './passwords';\nexport * from './permission';\nexport * from './phoneNumber';\nexport * from './redirects';\nexport * from './resource';\nexport * from './role';\nexport * from './router';\nexport * from './saml';\nexport * from './samlAccount';\nexport * from './session';\nexport * from './sessionVerification';\nexport * from './signIn';\nexport * from './signUp';\nexport * from './ssr';\nexport * from './strategies';\nexport * from './theme';\nexport * from './token';\nexport * from './totp';\nexport * from './telemetry';\nexport * from './user';\nexport * from './userOrganizationInvitation';\nexport * from './userSettings';\nexport * from './utils';\nexport * from './verification';\nexport * from './web3';\nexport * from './web3Wallet';\nexport * from './customPages';\nexport * from './pagination';\nexport * from './passkey';\nexport * from './customMenuItems';\nexport * from './samlConnection';\nexport * from './waitlist';\nexport * from './snapshots';\nexport * from './authObject';\n","import type { OAuthStrategy } from './strategies';\n\nexport type OAuthScope = string;\n\nexport interface OAuthProviderData {\n provider: OAuthProvider;\n strategy: OAuthStrategy;\n name: string;\n docsUrl: string;\n}\n\nexport type FacebookOauthProvider = 'facebook';\nexport type GoogleOauthProvider = 'google';\nexport type HubspotOauthProvider = 'hubspot';\nexport type GithubOauthProvider = 'github';\nexport type TiktokOauthProvider = 'tiktok';\nexport type GitlabOauthProvider = 'gitlab';\nexport type DiscordOauthProvider = 'discord';\nexport type TwitterOauthProvider = 'twitter';\nexport type TwitchOauthProvider = 'twitch';\nexport type LinkedinOauthProvider = 'linkedin';\nexport type LinkedinOIDCOauthProvider = 'linkedin_oidc';\nexport type DropboxOauthProvider = 'dropbox';\nexport type AtlassianOauthProvider = 'atlassian';\nexport type BitbucketOauthProvider = 'bitbucket';\nexport type MicrosoftOauthProvider = 'microsoft';\nexport type NotionOauthProvider = 'notion';\nexport type AppleOauthProvider = 'apple';\nexport type LineOauthProvider = 'line';\nexport type InstagramOauthProvider = 'instagram';\nexport type CoinbaseOauthProvider = 'coinbase';\nexport type SpotifyOauthProvider = 'spotify';\nexport type XeroOauthProvider = 'xero';\nexport type BoxOauthProvider = 'box';\nexport type SlackOauthProvider = 'slack';\nexport type LinearOauthProvider = 'linear';\nexport type XOauthProvider = 'x';\nexport type EnstallOauthProvider = 'enstall';\nexport type HuggingfaceOAuthProvider = 'huggingface';\nexport type CustomOauthProvider = `custom_${string}`;\n\nexport type OAuthProvider =\n | FacebookOauthProvider\n | GoogleOauthProvider\n | HubspotOauthProvider\n | GithubOauthProvider\n | TiktokOauthProvider\n | GitlabOauthProvider\n | DiscordOauthProvider\n | TwitterOauthProvider\n | TwitchOauthProvider\n | LinkedinOauthProvider\n | LinkedinOIDCOauthProvider\n | DropboxOauthProvider\n | AtlassianOauthProvider\n | BitbucketOauthProvider\n | MicrosoftOauthProvider\n | NotionOauthProvider\n | AppleOauthProvider\n | LineOauthProvider\n | InstagramOauthProvider\n | CoinbaseOauthProvider\n | SpotifyOauthProvider\n | XeroOauthProvider\n | BoxOauthProvider\n | SlackOauthProvider\n | LinearOauthProvider\n | XOauthProvider\n | EnstallOauthProvider\n | HuggingfaceOAuthProvider\n | CustomOauthProvider;\n\n/**\n * @deprecated Use `import { OAUTH_PROVIDERS } from \"@clerk/shared/oauth\"` instead.\n *\n * @hidden\n */\nexport const OAUTH_PROVIDERS: OAuthProviderData[] = [\n {\n provider: 'google',\n strategy: 'oauth_google',\n name: 'Google',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/google',\n },\n {\n provider: 'discord',\n strategy: 'oauth_discord',\n name: 'Discord',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/discord',\n },\n {\n provider: 'facebook',\n strategy: 'oauth_facebook',\n name: 'Facebook',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/facebook',\n },\n {\n provider: 'twitch',\n strategy: 'oauth_twitch',\n name: 'Twitch',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitch',\n },\n {\n provider: 'twitter',\n strategy: 'oauth_twitter',\n name: 'Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitter',\n },\n {\n provider: 'microsoft',\n strategy: 'oauth_microsoft',\n name: 'Microsoft',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/microsoft',\n },\n {\n provider: 'tiktok',\n strategy: 'oauth_tiktok',\n name: 'TikTok',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/tiktok',\n },\n {\n provider: 'linkedin',\n strategy: 'oauth_linkedin',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin',\n },\n {\n provider: 'linkedin_oidc',\n strategy: 'oauth_linkedin_oidc',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',\n },\n {\n provider: 'github',\n strategy: 'oauth_github',\n name: 'GitHub',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/github',\n },\n {\n provider: 'gitlab',\n strategy: 'oauth_gitlab',\n name: 'GitLab',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/gitlab',\n },\n {\n provider: 'dropbox',\n strategy: 'oauth_dropbox',\n name: 'Dropbox',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/dropbox',\n },\n {\n provider: 'atlassian',\n strategy: 'oauth_atlassian',\n name: 'Atlassian',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/atlassian',\n },\n {\n provider: 'bitbucket',\n strategy: 'oauth_bitbucket',\n name: 'Bitbucket',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/bitbucket',\n },\n {\n provider: 'hubspot',\n strategy: 'oauth_hubspot',\n name: 'HubSpot',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/hubspot',\n },\n {\n provider: 'notion',\n strategy: 'oauth_notion',\n name: 'Notion',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/notion',\n },\n {\n provider: 'apple',\n strategy: 'oauth_apple',\n name: 'Apple',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/apple',\n },\n {\n provider: 'line',\n strategy: 'oauth_line',\n name: 'LINE',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/line',\n },\n {\n provider: 'instagram',\n strategy: 'oauth_instagram',\n name: 'Instagram',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/instagram',\n },\n {\n provider: 'coinbase',\n strategy: 'oauth_coinbase',\n name: 'Coinbase',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/coinbase',\n },\n {\n provider: 'spotify',\n strategy: 'oauth_spotify',\n name: 'Spotify',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/spotify',\n },\n {\n provider: 'xero',\n strategy: 'oauth_xero',\n name: 'Xero',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/xero',\n },\n {\n provider: 'box',\n strategy: 'oauth_box',\n name: 'Box',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/box',\n },\n {\n provider: 'slack',\n strategy: 'oauth_slack',\n name: 'Slack',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/slack',\n },\n {\n provider: 'linear',\n strategy: 'oauth_linear',\n name: 'Linear',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linear',\n },\n {\n provider: 'x',\n strategy: 'oauth_x',\n name: 'X / Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/x-twitter-v2',\n },\n {\n provider: 'enstall',\n strategy: 'oauth_enstall',\n name: 'Enstall',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/enstall',\n },\n {\n provider: 'huggingface',\n strategy: 'oauth_huggingface',\n name: 'Hugging Face',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',\n },\n];\n\ninterface getOAuthProviderDataProps {\n provider?: OAuthProvider;\n strategy?: OAuthStrategy;\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getOAuthProviderData({\n provider,\n strategy,\n}: getOAuthProviderDataProps): OAuthProviderData | undefined | null {\n if (provider) {\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.provider == provider);\n }\n\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.strategy == strategy);\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function sortedOAuthProviders(sortingArray: OAuthStrategy[]) {\n return OAUTH_PROVIDERS.slice().sort((a, b) => {\n let aPos = sortingArray.indexOf(a.strategy);\n if (aPos == -1) {\n aPos = Number.MAX_SAFE_INTEGER;\n }\n\n let bPos = sortingArray.indexOf(b.strategy);\n if (bPos == -1) {\n bPos = Number.MAX_SAFE_INTEGER;\n }\n\n return aPos - bPos;\n });\n}\n","export type SamlIdpSlug = 'saml_okta' | 'saml_google' | 'saml_microsoft' | 'saml_custom';\n\nexport type SamlIdp = {\n name: string;\n logo: string;\n};\n\nexport type SamlIdpMap = Record<SamlIdpSlug, SamlIdp>;\n\nexport const SAML_IDPS: SamlIdpMap = {\n saml_okta: {\n name: 'Okta Workforce',\n logo: 'okta',\n },\n saml_google: {\n name: 'Google Workspace',\n logo: 'google',\n },\n saml_microsoft: {\n name: 'Microsoft Entra ID (Formerly AD)',\n logo: 'azure',\n },\n saml_custom: {\n name: 'SAML',\n logo: 'saml',\n },\n};\n","import type { Web3Strategy } from './strategies';\n\nexport interface Web3ProviderData {\n provider: Web3Provider;\n strategy: Web3Strategy;\n name: string;\n}\n\nexport type MetamaskWeb3Provider = 'metamask';\nexport type CoinbaseWalletWeb3Provider = 'coinbase_wallet';\nexport type OKXWalletWeb3Provider = 'okx_wallet';\n\nexport type Web3Provider = MetamaskWeb3Provider | CoinbaseWalletWeb3Provider | OKXWalletWeb3Provider;\n\n/**\n * @deprecated Use `import { WEB3_PROVIDERS } from \"@clerk/shared/web3\"` instead.\n *\n * @hidden\n */\nexport const WEB3_PROVIDERS: Web3ProviderData[] = [\n {\n provider: 'metamask',\n strategy: 'web3_metamask_signature',\n name: 'MetaMask',\n },\n {\n provider: 'coinbase_wallet',\n strategy: 'web3_coinbase_wallet_signature',\n name: 'Coinbase Wallet',\n },\n {\n provider: 'okx_wallet',\n strategy: 'web3_okx_wallet_signature',\n name: 'OKX Wallet',\n },\n];\n\ninterface getWeb3ProviderDataProps {\n provider?: Web3Provider;\n strategy?: Web3Strategy;\n}\n\n/**\n * @deprecated This utility will be dropped in the next major release.\n *\n * @hidden\n */\nexport function getWeb3ProviderData({\n provider,\n strategy,\n}: getWeb3ProviderDataProps): Web3ProviderData | undefined | null {\n if (provider) {\n return WEB3_PROVIDERS.find(p => p.provider == provider);\n }\n\n return WEB3_PROVIDERS.find(p => p.strategy == strategy);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC6EO,IAAM,kBAAuC;AAAA,EAClD;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA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ACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,UAAU;AAAA,IACV,UAAU;AAAA,IACV,MAAM;AAAA,EACR;AACF;AAYO,SAAS,oBAAoB;AAAA,EAClC;AAAA,EACA;AACF,GAAkE;AAChE,MAAI,UAAU;AACZ,WAAO,eAAe,KAAK,OAAK,EAAE,YAAY,QAAQ;AAAA,EACxD;AAEA,SAAO,eAAe,KAAK,OAAK,EAAE,YAAY,QAAQ;AACxD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/types",
3
- "version": "4.54.0",
3
+ "version": "4.54.1-canary.v20250415131844",
4
4
  "description": "Typings for Clerk libraries.",
5
5
  "keywords": [
6
6
  "clerk",