diff --git a/.changeset/breezy-deers-hide.md b/.changeset/breezy-deers-hide.md new file mode 100644 index 00000000000..5ff90d4cc97 --- /dev/null +++ b/.changeset/breezy-deers-hide.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': patch +--- + +Export the JSON types for clerk resources. diff --git a/packages/backend/src/index.ts b/packages/backend/src/index.ts index e768290a396..0c93214e51f 100644 --- a/packages/backend/src/index.ts +++ b/packages/backend/src/index.ts @@ -55,6 +55,39 @@ export type { VerifyTokenOptions } from './tokens/verify'; */ export type { WebhookEvent, WebhookEventType } from './api/resources'; +/** + * JSON types + */ +export type { + ClerkResourceJSON, + TokenJSON, + AllowlistIdentifierJSON, + ClientJSON, + EmailJSON, + EmailAddressJSON, + ExternalAccountJSON, + IdentificationLinkJSON, + InvitationJSON, + OauthAccessTokenJSON, + OrganizationJSON, + OrganizationInvitationJSON, + PublicOrganizationDataJSON, + OrganizationMembershipJSON, + OrganizationMembershipPublicUserDataJSON, + PhoneNumberJSON, + RedirectUrlJSON, + SessionJSON, + SignInJSON, + SignInTokenJSON, + SignUpJSON, + SMSMessageJSON, + UserJSON, + VerificationJSON, + Web3WalletJSON, + DeletedObjectJSON, + PaginatedResponseJSON, +} from './api/resources/JSON'; + /** * Resources */