diff --git a/.changeset/smooth-ends-agree.md b/.changeset/smooth-ends-agree.md new file mode 100644 index 00000000000..e882f668a52 --- /dev/null +++ b/.changeset/smooth-ends-agree.md @@ -0,0 +1,7 @@ +--- +'@clerk/clerk-js': patch +'@clerk/backend': patch +'@clerk/types': patch +--- + +Remove deprecated `samlAccounts` property from `User` object in favor of `enterpriseAccounts` diff --git a/packages/backend/src/api/resources/JSON.ts b/packages/backend/src/api/resources/JSON.ts index fabf0e5ec28..2afe7ee20cd 100644 --- a/packages/backend/src/api/resources/JSON.ts +++ b/packages/backend/src/api/resources/JSON.ts @@ -50,7 +50,6 @@ export const ObjectType = { PhoneNumber: 'phone_number', ProxyCheck: 'proxy_check', RedirectUrl: 'redirect_url', - SamlAccount: 'saml_account', SamlConnection: 'saml_connection', Session: 'session', SignInAttempt: 'sign_in_attempt', @@ -236,20 +235,6 @@ export interface JwtTemplateJSON extends ClerkResourceJSON { updated_at: number; } -export interface SamlAccountJSON extends ClerkResourceJSON { - object: typeof ObjectType.SamlAccount; - provider: string; - provider_user_id: string | null; - active: boolean; - email_address: string; - first_name: string; - last_name: string; - verification: VerificationJSON | null; - saml_connection: SamlAccountConnectionJSON | null; - last_authenticated_at: number | null; - enterprise_connection_id: string | null; -} - export interface IdentificationLinkJSON extends ClerkResourceJSON { type: string; } @@ -590,7 +575,6 @@ export interface UserJSON extends ClerkResourceJSON { web3_wallets: Web3WalletJSON[]; organization_memberships: OrganizationMembershipJSON[] | null; external_accounts: ExternalAccountJSON[]; - saml_accounts: SamlAccountJSON[]; password_last_updated_at: number | null; public_metadata: UserPublicMetadata; private_metadata: UserPrivateMetadata; diff --git a/packages/backend/src/api/resources/SamlAccount.ts b/packages/backend/src/api/resources/SamlAccount.ts deleted file mode 100644 index 60714aa13aa..00000000000 --- a/packages/backend/src/api/resources/SamlAccount.ts +++ /dev/null @@ -1,71 +0,0 @@ -import type { SamlAccountJSON } from './JSON'; -import { SamlAccountConnection } from './SamlConnection'; -import { Verification } from './Verification'; - -/** - * The Backend `SamlAccount` object describes a SAML account. - */ -export class SamlAccount { - constructor( - /** - * The unique identifier for the SAML account. - */ - readonly id: string, - /** - * The provider of the SAML account. - */ - readonly provider: string, - /** - * The user's ID as used in the provider. - */ - readonly providerUserId: string | null, - /** - * A boolean that indicates whether the SAML account is active. - */ - readonly active: boolean, - /** - * The email address of the SAML account. - */ - readonly emailAddress: string, - /** - * The first name of the SAML account. - */ - readonly firstName: string, - /** - * The last name of the SAML account. - */ - readonly lastName: string, - /** - * The verification of the SAML account. - */ - readonly verification: Verification | null, - /** - * The SAML connection of the SAML account. - */ - readonly samlConnection: SamlAccountConnection | null, - /** - * The date when the SAML account was last authenticated. - */ - readonly lastAuthenticatedAt: number | null, - /** - * The ID of the enterprise connection associated with this SAML account. - */ - readonly enterpriseConnectionId: string | null, - ) {} - - static fromJSON(data: SamlAccountJSON): SamlAccount { - return new SamlAccount( - data.id, - data.provider, - data.provider_user_id, - data.active, - data.email_address, - data.first_name, - data.last_name, - data.verification && Verification.fromJSON(data.verification), - data.saml_connection && SamlAccountConnection.fromJSON(data.saml_connection), - data.last_authenticated_at ?? null, - data.enterprise_connection_id, - ); - } -} diff --git a/packages/backend/src/api/resources/User.ts b/packages/backend/src/api/resources/User.ts index df05ef53466..b1fe8e93377 100644 --- a/packages/backend/src/api/resources/User.ts +++ b/packages/backend/src/api/resources/User.ts @@ -1,8 +1,7 @@ import { EmailAddress } from './EmailAddress'; import { ExternalAccount } from './ExternalAccount'; -import type { ExternalAccountJSON, SamlAccountJSON, UserJSON } from './JSON'; +import type { ExternalAccountJSON, UserJSON } from './JSON'; import { PhoneNumber } from './PhoneNumber'; -import { SamlAccount } from './SamlAccount'; import { Web3Wallet } from './Web3Wallet'; /** @@ -120,10 +119,6 @@ export class User { * An array of all the `ExternalAccount` objects associated with the user via OAuth. **Note**: This includes both verified & unverified external accounts. */ readonly externalAccounts: ExternalAccount[] = [], - /** - * An array of all the `SamlAccount` objects associated with the user via SAML. - */ - readonly samlAccounts: SamlAccount[] = [], /** * Date when the user was last active. */ @@ -179,7 +174,6 @@ export class User { (data.phone_numbers || []).map(x => PhoneNumber.fromJSON(x)), (data.web3_wallets || []).map(x => Web3Wallet.fromJSON(x)), (data.external_accounts || []).map((x: ExternalAccountJSON) => ExternalAccount.fromJSON(x)), - (data.saml_accounts || []).map((x: SamlAccountJSON) => SamlAccount.fromJSON(x)), data.last_active_at, data.create_organization_enabled, data.create_organizations_limit, diff --git a/packages/backend/src/api/resources/index.ts b/packages/backend/src/api/resources/index.ts index 855fb43df45..954194a4c85 100644 --- a/packages/backend/src/api/resources/index.ts +++ b/packages/backend/src/api/resources/index.ts @@ -22,7 +22,11 @@ export type { export type { SignUpStatus } from '@clerk/types'; +export * from './CommercePlan'; +export * from './CommerceSubscription'; +export * from './CommerceSubscriptionItem'; export * from './ExternalAccount'; +export * from './Feature'; export * from './IdentificationLink'; export * from './IdPOAuthAccessToken'; export * from './Instance'; @@ -30,11 +34,11 @@ export * from './InstanceRestrictions'; export * from './InstanceSettings'; export * from './Invitation'; export * from './JSON'; +export * from './JwtTemplate'; +export * from './M2MToken'; export * from './Machine'; export * from './MachineScope'; export * from './MachineSecretKey'; -export * from './M2MToken'; -export * from './JwtTemplate'; export * from './OauthAccessToken'; export * from './OAuthApplication'; export * from './Organization'; @@ -45,7 +49,6 @@ export * from './OrganizationSettings'; export * from './PhoneNumber'; export * from './ProxyCheck'; export * from './RedirectUrl'; -export * from './SamlAccount'; export * from './SamlConnection'; export * from './Session'; export * from './SignInTokens'; @@ -57,17 +60,13 @@ export * from './User'; export * from './Verification'; export * from './WaitlistEntry'; export * from './Web3Wallet'; -export * from './CommercePlan'; -export * from './CommerceSubscription'; -export * from './CommerceSubscriptionItem'; -export * from './Feature'; export type { EmailWebhookEvent, - OrganizationWebhookEvent, OrganizationDomainWebhookEvent, OrganizationInvitationWebhookEvent, OrganizationMembershipWebhookEvent, + OrganizationWebhookEvent, PermissionWebhookEvent, RoleWebhookEvent, SessionWebhookEvent, diff --git a/packages/clerk-js/src/core/resources/SamlAccount.ts b/packages/clerk-js/src/core/resources/SamlAccount.ts deleted file mode 100644 index f4bf7210a93..00000000000 --- a/packages/clerk-js/src/core/resources/SamlAccount.ts +++ /dev/null @@ -1,132 +0,0 @@ -import type { - SamlAccountConnectionJSON, - SamlAccountConnectionJSONSnapshot, - SamlAccountConnectionResource, - SamlAccountJSON, - SamlAccountJSONSnapshot, - SamlAccountResource, - SamlIdpSlug, - VerificationResource, -} from '@clerk/types'; - -import { unixEpochToDate } from '../../utils/date'; -import { BaseResource } from './Base'; -import { Verification } from './Verification'; - -export class SamlAccount extends BaseResource implements SamlAccountResource { - id!: string; - provider: SamlIdpSlug = 'saml_custom'; - providerUserId: string | null = null; - active = false; - emailAddress = ''; - firstName = ''; - lastName = ''; - verification: VerificationResource | null = null; - samlConnection: SamlAccountConnectionResource | null = null; - lastAuthenticatedAt: Date | null = null; - enterpriseConnectionId: string | null = null; - - public constructor(data: Partial, pathRoot: string); - public constructor(data: SamlAccountJSON | SamlAccountJSONSnapshot, pathRoot: string) { - super(); - this.pathRoot = pathRoot; - this.fromJSON(data); - } - - protected fromJSON(data: SamlAccountJSON | SamlAccountJSONSnapshot | null): this { - if (!data) { - return this; - } - - this.id = data.id; - this.provider = data.provider; - this.providerUserId = data.provider_user_id; - this.active = data.active; - this.emailAddress = data.email_address; - this.firstName = data.first_name; - this.lastName = data.last_name; - this.enterpriseConnectionId = data.enterprise_connection_id; - - if (data.verification) { - this.verification = new Verification(data.verification); - } - - if (data.saml_connection) { - this.samlConnection = new SamlAccountConnection(data.saml_connection); - } - - this.lastAuthenticatedAt = data.last_authenticated_at ? unixEpochToDate(data.last_authenticated_at) : null; - - return this; - } - - public __internal_toSnapshot(): SamlAccountJSONSnapshot { - return { - object: 'saml_account', - id: this.id, - provider: this.provider, - provider_user_id: this.providerUserId, - active: this.active, - email_address: this.emailAddress, - first_name: this.firstName, - last_name: this.lastName, - verification: this.verification?.__internal_toSnapshot() || null, - saml_connection: this.samlConnection?.__internal_toSnapshot(), - enterprise_connection_id: this.enterpriseConnectionId, - last_authenticated_at: this.lastAuthenticatedAt ? this.lastAuthenticatedAt.getTime() : null, - }; - } -} - -export class SamlAccountConnection extends BaseResource implements SamlAccountConnectionResource { - id!: string; - name!: string; - domain!: string; - active!: boolean; - provider!: string; - syncUserAttributes!: boolean; - allowSubdomains!: boolean; - allowIdpInitiated!: boolean; - disableAdditionalIdentifications!: boolean; - createdAt!: Date; - updatedAt!: Date; - - constructor(data: SamlAccountConnectionJSON | SamlAccountConnectionJSONSnapshot | null) { - super(); - this.fromJSON(data); - } - protected fromJSON(data: SamlAccountConnectionJSON | SamlAccountConnectionJSONSnapshot | null): this { - if (data) { - this.id = data.id; - this.name = data.name; - this.domain = data.domain; - this.active = data.active; - this.provider = data.provider; - this.syncUserAttributes = data.sync_user_attributes; - this.allowSubdomains = data.allow_subdomains; - this.allowIdpInitiated = data.allow_idp_initiated; - this.disableAdditionalIdentifications = data.disable_additional_identifications; - this.createdAt = unixEpochToDate(data.created_at); - this.updatedAt = unixEpochToDate(data.updated_at); - } - - return this; - } - - public __internal_toSnapshot(): SamlAccountConnectionJSONSnapshot { - return { - object: 'saml_account_connection', - id: this.id, - name: this.name, - domain: this.domain, - active: this.active, - provider: this.provider, - sync_user_attributes: this.syncUserAttributes, - allow_subdomains: this.allowSubdomains, - allow_idp_initiated: this.allowIdpInitiated, - disable_additional_identifications: this.disableAdditionalIdentifications, - created_at: this.createdAt.getTime(), - updated_at: this.updatedAt.getTime(), - }; - } -} diff --git a/packages/clerk-js/src/core/resources/User.ts b/packages/clerk-js/src/core/resources/User.ts index 61fa366324c..0da57f29ca7 100644 --- a/packages/clerk-js/src/core/resources/User.ts +++ b/packages/clerk-js/src/core/resources/User.ts @@ -19,7 +19,6 @@ import type { PasskeyResource, PhoneNumberResource, RemoveUserPasswordParams, - SamlAccountResource, SetProfileImageParams, TOTPJSON, TOTPResource, @@ -49,7 +48,6 @@ import { OrganizationSuggestion, Passkey, PhoneNumber, - SamlAccount, SessionWithActivities, TOTP, UserOrganizationInvitation, @@ -69,8 +67,6 @@ export class User extends BaseResource implements UserResource { enterpriseAccounts: EnterpriseAccountResource[] = []; passkeys: PasskeyResource[] = []; - samlAccounts: SamlAccountResource[] = []; - organizationMemberships: OrganizationMembershipResource[] = []; passwordEnabled = false; firstName: string | null = null; @@ -365,8 +361,6 @@ export class User extends BaseResource implements UserResource { this.organizationMemberships = (data.organization_memberships || []).map(om => new OrganizationMembership(om)); - this.samlAccounts = (data.saml_accounts || []).map(sa => new SamlAccount(sa, this.path() + '/saml_accounts')); - this.enterpriseAccounts = (data.enterprise_accounts || []).map( ea => new EnterpriseAccount(ea, this.path() + '/enterprise_accounts'), ); @@ -413,7 +407,6 @@ export class User extends BaseResource implements UserResource { external_accounts: this.externalAccounts.map(ea => ea.__internal_toSnapshot()), passkeys: this.passkeys.map(passkey => passkey.__internal_toSnapshot()), organization_memberships: this.organizationMemberships.map(om => om.__internal_toSnapshot()), - saml_accounts: this.samlAccounts.map(sa => sa.__internal_toSnapshot()), enterprise_accounts: this.enterpriseAccounts.map(ea => ea.__internal_toSnapshot()), totp_enabled: this.totpEnabled, backup_code_enabled: this.backupCodeEnabled, diff --git a/packages/clerk-js/src/core/resources/index.ts b/packages/clerk-js/src/core/resources/index.ts index f49a5f0882e..b07196edac8 100644 --- a/packages/clerk-js/src/core/resources/index.ts +++ b/packages/clerk-js/src/core/resources/index.ts @@ -8,7 +8,6 @@ export * from './ExternalAccount'; export * from './IdentificationLink'; export * from './Image'; export * from './PhoneNumber'; -export * from './SamlAccount'; export * from './Session'; export * from './SessionWithActivities'; export * from './SignIn'; @@ -18,4 +17,3 @@ export * from './User'; export * from './Verification'; export * from './Waitlist'; export * from './Web3Wallet'; - diff --git a/packages/clerk-js/src/core/resources/internal.ts b/packages/clerk-js/src/core/resources/internal.ts index 2c27131bbae..33863059ea2 100644 --- a/packages/clerk-js/src/core/resources/internal.ts +++ b/packages/clerk-js/src/core/resources/internal.ts @@ -1,44 +1,43 @@ export type { Clerk } from '../clerk'; -export * from './Base'; -export * from './UserSettings'; -export * from './CommerceSettings'; +export * from './APIKey'; export * from './AuthConfig'; -export * from './Client'; +export * from './Base'; export * from './BillingCheckout'; -export * from './Feature'; -export * from './BillingStatement'; export * from './BillingPayment'; export * from './BillingPaymentMethod'; export * from './BillingPlan'; +export * from './BillingStatement'; export * from './BillingSubscription'; +export * from './Client'; +export * from './CommerceSettings'; export * from './DeletedObject'; export * from './DisplayConfig'; export * from './EmailAddress'; +export * from './EnterpriseAccount'; export * from './Environment'; export * from './ExternalAccount'; -export * from './EnterpriseAccount'; +export * from './Feature'; export * from './IdentificationLink'; export * from './Image'; -export * from './PhoneNumber'; export * from './Organization'; export * from './OrganizationDomain'; export * from './OrganizationInvitation'; export * from './OrganizationMembership'; export * from './OrganizationMembershipRequest'; export * from './OrganizationSuggestion'; -export * from './SamlAccount'; -export * from './Session'; export * from './Passkey'; +export * from './PhoneNumber'; export * from './PublicUserData'; +export * from './Session'; export * from './SessionWithActivities'; export * from './SignIn'; -export * from './UserData'; export * from './SignUp'; export * from './Token'; export * from './TOTP'; export * from './User'; +export * from './UserData'; export * from './UserOrganizationInvitation'; +export * from './UserSettings'; export * from './Verification'; -export * from './Web3Wallet'; export * from './Waitlist'; -export * from './APIKey'; +export * from './Web3Wallet'; diff --git a/packages/clerk-js/src/test/fixture-helpers.ts b/packages/clerk-js/src/test/fixture-helpers.ts index 143e7e6a7c3..0c6d4493f8d 100644 --- a/packages/clerk-js/src/test/fixture-helpers.ts +++ b/packages/clerk-js/src/test/fixture-helpers.ts @@ -8,7 +8,6 @@ import type { OrganizationEnrollmentMode, PhoneNumberJSON, PublicUserDataJSON, - SamlAccountJSON, SessionJSON, SignInJSON, SignUpJSON, @@ -44,12 +43,11 @@ export const createClientFixtureHelpers = (baseClient: ClientJSON) => { const createUserFixtureHelpers = (baseClient: ClientJSON) => { type WithUserParams = Omit< Partial, - 'email_addresses' | 'phone_numbers' | 'external_accounts' | 'saml_accounts' | 'organization_memberships' + 'email_addresses' | 'phone_numbers' | 'external_accounts' | 'organization_memberships' > & { email_addresses?: Array>; phone_numbers?: Array>; external_accounts?: Array>; - saml_accounts?: Array>; organization_memberships?: Array; tasks?: SessionJSON['tasks']; }; diff --git a/packages/clerk-js/src/ui/elements/UserPreview.tsx b/packages/clerk-js/src/ui/elements/UserPreview.tsx index 73b52fc2ebf..dad632fb753 100644 --- a/packages/clerk-js/src/ui/elements/UserPreview.tsx +++ b/packages/clerk-js/src/ui/elements/UserPreview.tsx @@ -1,4 +1,4 @@ -import type { ExternalAccountResource, SamlAccountResource, UserPreviewId, UserResource } from '@clerk/types'; +import type { EnterpriseAccountResource, ExternalAccountResource, UserPreviewId, UserResource } from '@clerk/types'; import React from 'react'; import { getFullName, getIdentifier } from '../../utils/user'; @@ -31,17 +31,17 @@ export type UserPreviewProps = Omit, 'title' | 'el | { user?: Partial; externalAccount?: null | undefined; - samlAccount?: null | undefined; + enterpriseAccount?: null | undefined; } | { user?: null | undefined; externalAccount?: Partial; - samlAccount?: null | undefined; + enterpriseAccount?: null | undefined; } | { user?: null | undefined; externalAccount?: null | undefined; - samlAccount?: Partial; + enterpriseAccount?: Partial; } ); @@ -49,7 +49,7 @@ export const UserPreview = (props: UserPreviewProps) => { const { user, externalAccount, - samlAccount, + enterpriseAccount, size = 'md', showAvatar = true, icon, @@ -68,8 +68,9 @@ export const UserPreview = (props: UserPreviewProps) => { ...rest } = props; const { t } = useLocalizations(); - const name = getFullName({ ...user }) || getFullName({ ...externalAccount }) || getFullName({ ...samlAccount }); - const identifier = getIdentifier({ ...user }) || externalAccount?.accountIdentifier?.() || samlAccount?.emailAddress; + const name = getFullName({ ...user }) || getFullName({ ...externalAccount }) || getFullName({ ...enterpriseAccount }); + const identifier = + getIdentifier({ ...user }) || externalAccount?.accountIdentifier?.() || enterpriseAccount?.emailAddress; const localizedTitle = t(title); const imageUrl = imageUrlProp || user?.imageUrl || externalAccount?.imageUrl; @@ -115,7 +116,7 @@ export const UserPreview = (props: UserPreviewProps) => { imageElementDescriptor={descriptors.userPreviewAvatarImage} {...user} {...externalAccount} - {...samlAccount} + {...enterpriseAccount} name={name} avatarUrl={imageUrl} size={getAvatarSizes} diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index e5d17f28dc8..8c420ab9357 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -55,7 +55,6 @@ export * from './router'; */ export * from './runtime-values'; export * from './saml'; -export * from './samlAccount'; export * from './samlConnection'; export * from './session'; export * from './sessionVerification'; diff --git a/packages/types/src/json.ts b/packages/types/src/json.ts index 4a71431fb0a..507c92ef44e 100644 --- a/packages/types/src/json.ts +++ b/packages/types/src/json.ts @@ -25,7 +25,6 @@ import type { OrganizationCustomRoleKey, OrganizationPermissionKey } from './org import type { OrganizationSettingsJSON } from './organizationSettings'; import type { OrganizationSuggestionStatus } from './organizationSuggestion'; import type { PhoneCodeChannel } from './phoneCodeChannel'; -import type { SamlIdpSlug } from './saml'; import type { SessionStatus, SessionTask } from './session'; import type { SessionVerificationLevel, SessionVerificationStatus } from './sessionVerification'; import type { SignInJSON } from './signIn'; @@ -273,20 +272,6 @@ export interface EnterpriseAccountConnectionJSON extends ClerkResourceJSON { enterprise_connection_id: string | null; } -export interface SamlAccountJSON extends ClerkResourceJSON { - object: 'saml_account'; - provider: SamlIdpSlug; - provider_user_id: string | null; - active: boolean; - email_address: string; - first_name: string; - last_name: string; - verification?: VerificationJSON; - saml_connection?: SamlAccountConnectionJSON; - last_authenticated_at: number | null; - enterprise_connection_id: string | null; -} - export interface UserJSON extends ClerkResourceJSON { object: 'user'; id: string; @@ -303,10 +288,6 @@ export interface UserJSON extends ClerkResourceJSON { external_accounts: ExternalAccountJSON[]; enterprise_accounts: EnterpriseAccountJSON[]; passkeys: PasskeyJSON[]; - /** - * @deprecated Use `enterprise_accounts` instead. - */ - saml_accounts: SamlAccountJSON[]; organization_memberships: OrganizationMembershipJSON[]; password_enabled: boolean; diff --git a/packages/types/src/samlAccount.ts b/packages/types/src/samlAccount.ts deleted file mode 100644 index 3d6c2cedea3..00000000000 --- a/packages/types/src/samlAccount.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { ClerkResource } from './resource'; -import type { SamlIdpSlug } from './saml'; -import type { SamlAccountConnectionResource } from './samlConnection'; -import type { SamlAccountJSONSnapshot } from './snapshots'; -import type { VerificationResource } from './verification'; - -export interface SamlAccountResource extends ClerkResource { - provider: SamlIdpSlug; - providerUserId: string | null; - active: boolean; - emailAddress: string; - firstName: string; - lastName: string; - verification: VerificationResource | null; - samlConnection: SamlAccountConnectionResource | null; - lastAuthenticatedAt: Date | null; - enterpriseConnectionId: string | null; - __internal_toSnapshot: () => SamlAccountJSONSnapshot; -} diff --git a/packages/types/src/snapshots.ts b/packages/types/src/snapshots.ts index 13c423e8cb3..5c3c698b5c4 100644 --- a/packages/types/src/snapshots.ts +++ b/packages/types/src/snapshots.ts @@ -18,7 +18,6 @@ import type { PhoneNumberJSON, PublicUserDataJSON, SamlAccountConnectionJSON, - SamlAccountJSON, SessionJSON, SignUpJSON, SignUpVerificationJSON, @@ -76,7 +75,6 @@ export type UserJSONSnapshot = Override< passkeys: PasskeyJSONSnapshot[]; enterprise_accounts: EnterpriseAccountJSONSnapshot[]; phone_numbers: PhoneNumberJSONSnapshot[]; - saml_accounts: SamlAccountJSONSnapshot[]; web3_wallets: Web3WalletJSONSnapshot[]; } >; @@ -150,13 +148,6 @@ export type PhoneNumberJSONSnapshot = Override< } >; -export type SamlAccountJSONSnapshot = Override< - SamlAccountJSON, - { - verification: VerificationJSONSnapshot | null; - } ->; - export type SamlAccountConnectionJSONSnapshot = SamlAccountConnectionJSON; export type SignUpVerificationsJSONSnapshot = Override< diff --git a/packages/types/src/user.ts b/packages/types/src/user.ts index 951735d88c6..7670c84d031 100644 --- a/packages/types/src/user.ts +++ b/packages/types/src/user.ts @@ -14,7 +14,6 @@ import type { ClerkPaginatedResponse, ClerkPaginationParams } from './pagination import type { PasskeyResource } from './passkey'; import type { PhoneNumberResource } from './phoneNumber'; import type { ClerkResource } from './resource'; -import type { SamlAccountResource } from './samlAccount'; import type { SessionWithActivitiesResource } from './session'; import type { UserJSONSnapshot } from './snapshots'; import type { OAuthStrategy } from './strategies'; @@ -82,10 +81,6 @@ export interface UserResource extends ClerkResource, BillingPayerMethods { externalAccounts: ExternalAccountResource[]; enterpriseAccounts: EnterpriseAccountResource[]; passkeys: PasskeyResource[]; - /** - * @deprecated Use `enterpriseAccounts` instead. - */ - samlAccounts: SamlAccountResource[]; organizationMemberships: OrganizationMembershipResource[]; passwordEnabled: boolean;