diff --git a/packages/types/src/authConfig.ts b/packages/types/src/authConfig.ts index 529f1e6fd7..35962a9a46 100644 --- a/packages/types/src/authConfig.ts +++ b/packages/types/src/authConfig.ts @@ -1,6 +1,5 @@ -import type { AuthConfigJSONSnapshot } from 'snapshots'; - import type { ClerkResource } from './resource'; +import type { AuthConfigJSONSnapshot } from './snapshots'; export interface AuthConfigResource extends ClerkResource { /** diff --git a/packages/types/src/clerk.ts b/packages/types/src/clerk.ts index 464886a76f..6dee956da4 100644 --- a/packages/types/src/clerk.ts +++ b/packages/types/src/clerk.ts @@ -1,6 +1,3 @@ -import type { ClientJSONSnapshot, EnvironmentJSONSnapshot } from 'snapshots'; -import type { TelemetryCollector } from 'telemetry'; - import type { Appearance, CreateOrganizationTheme, @@ -39,7 +36,9 @@ import type { ActiveSessionResource } from './session'; import type { SessionVerificationLevel } from './sessionVerification'; import type { SignInResource } from './signIn'; import type { SignUpResource } from './signUp'; +import type { ClientJSONSnapshot, EnvironmentJSONSnapshot } from './snapshots'; import type { Web3Strategy } from './strategies'; +import type { TelemetryCollector } from './telemetry'; import type { UserResource } from './user'; import type { Autocomplete, DeepPartial, DeepSnakeToCamel } from './utils'; import type { WaitlistResource } from './waitlist'; diff --git a/packages/types/src/client.ts b/packages/types/src/client.ts index beee5f5baa..2169e312c9 100644 --- a/packages/types/src/client.ts +++ b/packages/types/src/client.ts @@ -1,9 +1,8 @@ -import type { ClientJSONSnapshot } from 'snapshots'; - import type { ClerkResource } from './resource'; import type { ActiveSessionResource, SessionResource } from './session'; import type { SignInResource } from './signIn'; import type { SignUpResource } from './signUp'; +import type { ClientJSONSnapshot } from './snapshots'; export interface ClientResource extends ClerkResource { sessions: SessionResource[]; diff --git a/packages/types/src/displayConfig.ts b/packages/types/src/displayConfig.ts index 301e86b43e..9f7c5b07ea 100644 --- a/packages/types/src/displayConfig.ts +++ b/packages/types/src/displayConfig.ts @@ -1,7 +1,6 @@ -import type { DisplayConfigJSONSnapshot } from 'snapshots'; - import type { DisplayThemeJSON } from './json'; import type { ClerkResource } from './resource'; +import type { DisplayConfigJSONSnapshot } from './snapshots'; import type { OAuthStrategy } from './strategies'; export type PreferredSignInStrategy = 'password' | 'otp'; diff --git a/packages/types/src/emailAddress.ts b/packages/types/src/emailAddress.ts index d257860afb..58a1c0d1e3 100644 --- a/packages/types/src/emailAddress.ts +++ b/packages/types/src/emailAddress.ts @@ -1,7 +1,6 @@ -import type { EmailAddressJSONSnapshot } from 'snapshots'; - import type { IdentificationLinkResource } from './identificationLink'; import type { ClerkResource } from './resource'; +import type { EmailAddressJSONSnapshot } from './snapshots'; import type { EmailCodeStrategy, EmailLinkStrategy } from './strategies'; import type { CreateEmailLinkFlowReturn, StartEmailLinkFlowParams, VerificationResource } from './verification'; diff --git a/packages/types/src/enterpriseAccount.ts b/packages/types/src/enterpriseAccount.ts index f43e405f00..27db38807e 100644 --- a/packages/types/src/enterpriseAccount.ts +++ b/packages/types/src/enterpriseAccount.ts @@ -1,9 +1,8 @@ -import type { OAuthProvider } from 'oauth'; -import type { SamlIdpSlug } from 'saml'; -import type { EnterpriseAccountConnectionJSONSnapshot, EnterpriseAccountJSONSnapshot } from 'snapshots'; -import type { VerificationResource } from 'verification'; - +import type { OAuthProvider } from './oauth'; import type { ClerkResource } from './resource'; +import type { SamlIdpSlug } from './saml'; +import type { EnterpriseAccountConnectionJSONSnapshot, EnterpriseAccountJSONSnapshot } from './snapshots'; +import type { VerificationResource } from './verification'; export type EnterpriseProtocol = 'saml' | 'oauth'; diff --git a/packages/types/src/environment.ts b/packages/types/src/environment.ts index 320fa78bf2..a6aff8ca83 100644 --- a/packages/types/src/environment.ts +++ b/packages/types/src/environment.ts @@ -1,9 +1,8 @@ -import type { EnvironmentJSONSnapshot } from 'snapshots'; - import type { AuthConfigResource } from './authConfig'; import type { DisplayConfigResource } from './displayConfig'; import type { OrganizationSettingsResource } from './organizationSettings'; import type { ClerkResource } from './resource'; +import type { EnvironmentJSONSnapshot } from './snapshots'; import type { UserSettingsResource } from './userSettings'; export interface EnvironmentResource extends ClerkResource { diff --git a/packages/types/src/externalAccount.ts b/packages/types/src/externalAccount.ts index b2ab7b6a0b..6f30d3f8e7 100644 --- a/packages/types/src/externalAccount.ts +++ b/packages/types/src/externalAccount.ts @@ -1,7 +1,6 @@ -import type { ExternalAccountJSONSnapshot } from 'snapshots'; - import type { OAuthProvider, OAuthScope } from './oauth'; import type { ClerkResource } from './resource'; +import type { ExternalAccountJSONSnapshot } from './snapshots'; import type { VerificationResource } from './verification'; export type ReauthorizeExternalAccountParams = { diff --git a/packages/types/src/identificationLink.ts b/packages/types/src/identificationLink.ts index 462587b85e..0181397713 100644 --- a/packages/types/src/identificationLink.ts +++ b/packages/types/src/identificationLink.ts @@ -1,6 +1,5 @@ -import type { IdentificationLinkJSONSnapshot } from 'snapshots'; - import type { ClerkResource } from './resource'; +import type { IdentificationLinkJSONSnapshot } from './snapshots'; export interface IdentificationLinkResource extends ClerkResource { id: string; diff --git a/packages/types/src/organization.ts b/packages/types/src/organization.ts index ed51567472..a749bb6d9b 100644 --- a/packages/types/src/organization.ts +++ b/packages/types/src/organization.ts @@ -1,5 +1,3 @@ -import type { OrganizationJSONSnapshot } from 'snapshots'; - import type { OrganizationDomainResource, OrganizationEnrollmentMode } from './organizationDomain'; import type { OrganizationInvitationResource, OrganizationInvitationStatus } from './organizationInvitation'; import type { OrganizationCustomRoleKey, OrganizationMembershipResource } from './organizationMembership'; @@ -7,6 +5,7 @@ import type { OrganizationMembershipRequestResource } from './organizationMember import type { ClerkPaginatedResponse, ClerkPaginationParams } from './pagination'; import type { ClerkResource } from './resource'; import type { RoleResource } from './role'; +import type { OrganizationJSONSnapshot } from './snapshots'; declare global { /** diff --git a/packages/types/src/organizationMembership.ts b/packages/types/src/organizationMembership.ts index 8a010d1991..4c3bb68fc5 100644 --- a/packages/types/src/organizationMembership.ts +++ b/packages/types/src/organizationMembership.ts @@ -1,8 +1,7 @@ -import type { OrganizationMembershipJSONSnapshot } from 'snapshots'; - import type { OrganizationResource } from './organization'; import type { ClerkResource } from './resource'; import type { PublicUserData } from './session'; +import type { OrganizationMembershipJSONSnapshot } from './snapshots'; import type { Autocomplete } from './utils'; interface Base { diff --git a/packages/types/src/organizationSettings.ts b/packages/types/src/organizationSettings.ts index 6cadacebca..0e5041508c 100644 --- a/packages/types/src/organizationSettings.ts +++ b/packages/types/src/organizationSettings.ts @@ -1,8 +1,7 @@ -import type { OrganizationSettingsJSONSnapshot } from 'snapshots'; - import type { ClerkResourceJSON } from './json'; import type { OrganizationEnrollmentMode } from './organizationDomain'; import type { ClerkResource } from './resource'; +import type { OrganizationSettingsJSONSnapshot } from './snapshots'; export interface OrganizationSettingsJSON extends ClerkResourceJSON { id: never; diff --git a/packages/types/src/passkey.ts b/packages/types/src/passkey.ts index f8a9a879a6..55ec879e33 100644 --- a/packages/types/src/passkey.ts +++ b/packages/types/src/passkey.ts @@ -1,8 +1,7 @@ -import type { PasskeyJSONSnapshot } from 'snapshots'; - import type { DeletedObjectResource } from './deletedObject'; import type { PasskeyJSON } from './json'; import type { ClerkResource } from './resource'; +import type { PasskeyJSONSnapshot } from './snapshots'; import type { SnakeToCamel } from './utils'; import type { PasskeyVerificationResource } from './verification'; diff --git a/packages/types/src/phoneNumber.ts b/packages/types/src/phoneNumber.ts index 36bb32574e..a36f0fb4d9 100644 --- a/packages/types/src/phoneNumber.ts +++ b/packages/types/src/phoneNumber.ts @@ -1,7 +1,6 @@ -import type { PhoneNumberJSONSnapshot } from 'snapshots'; - import type { IdentificationLinkResource } from './identificationLink'; import type { ClerkResource } from './resource'; +import type { PhoneNumberJSONSnapshot } from './snapshots'; import type { PhoneCodeStrategy } from './strategies'; import type { VerificationResource } from './verification'; diff --git a/packages/types/src/samlAccount.ts b/packages/types/src/samlAccount.ts index 8bfa969ff2..8b557def65 100644 --- a/packages/types/src/samlAccount.ts +++ b/packages/types/src/samlAccount.ts @@ -1,8 +1,7 @@ -import type { SamlAccountJSONSnapshot } from 'snapshots'; - 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 { diff --git a/packages/types/src/samlConnection.ts b/packages/types/src/samlConnection.ts index 678878c8c2..072c521d4e 100644 --- a/packages/types/src/samlConnection.ts +++ b/packages/types/src/samlConnection.ts @@ -1,6 +1,5 @@ -import type { SamlAccountConnectionJSONSnapshot } from 'snapshots'; - import type { ClerkResource } from './resource'; +import type { SamlAccountConnectionJSONSnapshot } from './snapshots'; export interface SamlAccountConnectionResource extends ClerkResource { id: string; diff --git a/packages/types/src/session.ts b/packages/types/src/session.ts index 028ceacee3..3504df41da 100644 --- a/packages/types/src/session.ts +++ b/packages/types/src/session.ts @@ -1,5 +1,3 @@ -import type { SessionJSONSnapshot } from 'snapshots'; - import type { BackupCodeAttempt, EmailCodeAttempt, @@ -22,6 +20,7 @@ import type { SessionVerificationLevel, SessionVerificationResource, } from './sessionVerification'; +import type { SessionJSONSnapshot } from './snapshots'; import type { TokenResource } from './token'; import type { UserResource } from './user'; diff --git a/packages/types/src/signIn.ts b/packages/types/src/signIn.ts index cca2951dcf..6579bcbaf4 100644 --- a/packages/types/src/signIn.ts +++ b/packages/types/src/signIn.ts @@ -1,5 +1,3 @@ -import type { SignInJSONSnapshot } from 'snapshots'; - import type { BackupCodeAttempt, BackupCodeFactor, @@ -51,6 +49,7 @@ import type { import type { ValidatePasswordCallbacks } from './passwords'; import type { AuthenticateWithRedirectParams } from './redirects'; import type { ClerkResource } from './resource'; +import type { SignInJSONSnapshot } from './snapshots'; import type { BackupCodeStrategy, EmailCodeStrategy, diff --git a/packages/types/src/signUp.ts b/packages/types/src/signUp.ts index 8dd84f5a4d..9498533a34 100644 --- a/packages/types/src/signUp.ts +++ b/packages/types/src/signUp.ts @@ -1,5 +1,3 @@ -import type { SignUpJSONSnapshot, SignUpVerificationJSONSnapshot, SignUpVerificationsJSONSnapshot } from 'snapshots'; - import type { FirstNameAttribute, LastNameAttribute, LegalAcceptedAttribute, PasswordAttribute } from './attributes'; import type { AttemptEmailAddressVerificationParams, PrepareEmailAddressVerificationParams } from './emailAddress'; import type { @@ -13,6 +11,7 @@ import type { ValidatePasswordCallbacks } from './passwords'; import type { AttemptPhoneNumberVerificationParams, PreparePhoneNumberVerificationParams } from './phoneNumber'; import type { AuthenticateWithRedirectParams } from './redirects'; import type { ClerkResource } from './resource'; +import type { SignUpJSONSnapshot, SignUpVerificationJSONSnapshot, SignUpVerificationsJSONSnapshot } from './snapshots'; import type { EmailCodeStrategy, EmailLinkStrategy, diff --git a/packages/types/src/telemetry.ts b/packages/types/src/telemetry.ts index a6db48b5f7..3b7f945def 100644 --- a/packages/types/src/telemetry.ts +++ b/packages/types/src/telemetry.ts @@ -1,4 +1,4 @@ -import type { InstanceType } from 'instance'; +import type { InstanceType } from './instance'; /** * @internal diff --git a/packages/types/src/token.ts b/packages/types/src/token.ts index 2101452df1..f5ed50fa5a 100644 --- a/packages/types/src/token.ts +++ b/packages/types/src/token.ts @@ -1,7 +1,6 @@ -import type { TokenJSONSnapshot } from 'snapshots'; - import type { JWT } from './jwt'; import type { ClerkResource } from './resource'; +import type { TokenJSONSnapshot } from './snapshots'; export interface TokenResource extends ClerkResource { jwt?: JWT; diff --git a/packages/types/src/user.ts b/packages/types/src/user.ts index a6cc92aef9..1dbfa73a14 100644 --- a/packages/types/src/user.ts +++ b/packages/types/src/user.ts @@ -1,5 +1,3 @@ -import type { UserJSONSnapshot } from 'snapshots'; - import type { BackupCodeResource } from './backupCode'; import type { DeletedObjectResource } from './deletedObject'; import type { EmailAddressResource } from './emailAddress'; @@ -17,6 +15,7 @@ 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'; import type { TOTPResource } from './totp'; import type { UserOrganizationInvitationResource } from './userOrganizationInvitation'; diff --git a/packages/types/src/userSettings.ts b/packages/types/src/userSettings.ts index f8dab67246..14f61143d5 100644 --- a/packages/types/src/userSettings.ts +++ b/packages/types/src/userSettings.ts @@ -1,7 +1,6 @@ -import type { UserSettingsJSONSnapshot } from 'snapshots'; - import type { ClerkResourceJSON } from './json'; import type { ClerkResource } from './resource'; +import type { UserSettingsJSONSnapshot } from './snapshots'; import type { OAuthStrategy, Web3Strategy } from './strategies'; export type Attribute = diff --git a/packages/types/src/verification.ts b/packages/types/src/verification.ts index 9cb143cb3f..f4e5e40b3f 100644 --- a/packages/types/src/verification.ts +++ b/packages/types/src/verification.ts @@ -1,8 +1,7 @@ -import type { VerificationJSONSnapshot } from 'snapshots'; - import type { ClerkAPIError } from './api'; import type { PublicKeyCredentialCreationOptionsWithoutExtensions } from './passkey'; import type { ClerkResource } from './resource'; +import type { VerificationJSONSnapshot } from './snapshots'; export interface VerificationResource extends ClerkResource { attempts: number | null; diff --git a/packages/types/src/web3Wallet.ts b/packages/types/src/web3Wallet.ts index 5921b91c56..62dec1eb68 100644 --- a/packages/types/src/web3Wallet.ts +++ b/packages/types/src/web3Wallet.ts @@ -1,6 +1,5 @@ -import type { Web3WalletJSONSnapshot } from 'snapshots'; - import type { ClerkResource } from './resource'; +import type { Web3WalletJSONSnapshot } from './snapshots'; import type { Web3Strategy } from './strategies'; import type { VerificationResource } from './verification'; import type { Web3Provider } from './web3';