Skip to content

Commit 9272006

Browse files
authored
feat(backend): Export the JSON types for clerk resources (#2965)
1 parent 2671e7a commit 9272006

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.changeset/breezy-deers-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/backend': patch
3+
---
4+
5+
Export the JSON types for clerk resources.

packages/backend/src/index.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,39 @@ export type { VerifyTokenOptions } from './tokens/verify';
5555
*/
5656
export type { WebhookEvent, WebhookEventType } from './api/resources';
5757

58+
/**
59+
* JSON types
60+
*/
61+
export type {
62+
ClerkResourceJSON,
63+
TokenJSON,
64+
AllowlistIdentifierJSON,
65+
ClientJSON,
66+
EmailJSON,
67+
EmailAddressJSON,
68+
ExternalAccountJSON,
69+
IdentificationLinkJSON,
70+
InvitationJSON,
71+
OauthAccessTokenJSON,
72+
OrganizationJSON,
73+
OrganizationInvitationJSON,
74+
PublicOrganizationDataJSON,
75+
OrganizationMembershipJSON,
76+
OrganizationMembershipPublicUserDataJSON,
77+
PhoneNumberJSON,
78+
RedirectUrlJSON,
79+
SessionJSON,
80+
SignInJSON,
81+
SignInTokenJSON,
82+
SignUpJSON,
83+
SMSMessageJSON,
84+
UserJSON,
85+
VerificationJSON,
86+
Web3WalletJSON,
87+
DeletedObjectJSON,
88+
PaginatedResponseJSON,
89+
} from './api/resources/JSON';
90+
5891
/**
5992
* Resources
6093
*/

0 commit comments

Comments
 (0)