Skip to content

Commit

Permalink
feat(backend): Export the JSON types for clerk resources (#2965)
Browse files Browse the repository at this point in the history
  • Loading branch information
desiprisg authored Mar 12, 2024
1 parent 2671e7a commit 9272006
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-deers-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/backend': patch
---

Export the JSON types for clerk resources.
33 changes: 33 additions & 0 deletions packages/backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 9272006

Please sign in to comment.