@clerk/backend
Advanced tools
Comparing version 0.13.0-staging.0 to 0.13.0-staging.1
import type { Organization, OrganizationInvitation, OrganizationMembership } from '../resources'; | ||
import type { OrganizationMembershipRole } from '../resources/Enums'; | ||
import { AbstractAPI } from './AbstractApi'; | ||
type MetadataParams = { | ||
publicMetadata?: Record<string, unknown>; | ||
type MetadataParams<TPublic = OrganizationPublicMetadata> = { | ||
publicMetadata?: TPublic; | ||
privateMetadata?: Record<string, unknown>; | ||
@@ -40,3 +40,3 @@ }; | ||
userId: string; | ||
} & MetadataParams; | ||
} & MetadataParams<OrganizationMembershipPublicMetadata>; | ||
type DeleteOrganizationMembershipParams = { | ||
@@ -52,3 +52,3 @@ organizationId: string; | ||
redirectUrl?: string; | ||
publicMetadata?: Record<string, unknown>; | ||
publicMetadata?: OrganizationInvitationPublicMetadata; | ||
}; | ||
@@ -55,0 +55,0 @@ type GetPendingOrganizationInvitationListParams = { |
@@ -19,3 +19,3 @@ import type { OAuthProvider } from '@clerk/types'; | ||
type UserMetadataParams = { | ||
publicMetadata?: Record<string, unknown>; | ||
publicMetadata?: UserPublicMetadata; | ||
privateMetadata?: Record<string, unknown>; | ||
@@ -22,0 +22,0 @@ unsafeMetadata?: Record<string, unknown>; |
@@ -26,5 +26,5 @@ import { EmailAddress } from './EmailAddress'; | ||
readonly lastName: string | null; | ||
readonly publicMetadata: Record<string, unknown>; | ||
readonly publicMetadata: UserPublicMetadata; | ||
readonly privateMetadata: Record<string, unknown>; | ||
readonly unsafeMetadata: Record<string, unknown>; | ||
readonly unsafeMetadata: UserUnsafeMetadata; | ||
readonly emailAddresses: EmailAddress[]; | ||
@@ -34,5 +34,5 @@ readonly phoneNumbers: PhoneNumber[]; | ||
readonly externalAccounts: ExternalAccount[]; | ||
constructor(id: string, passwordEnabled: boolean, totpEnabled: boolean, backupCodeEnabled: boolean, twoFactorEnabled: boolean, banned: boolean, createdAt: number, updatedAt: number, profileImageUrl: string, gender: string, birthday: string, primaryEmailAddressId: string | null, primaryPhoneNumberId: string | null, primaryWeb3WalletId: string | null, lastSignInAt: number | null, externalId: string | null, username: string | null, firstName: string | null, lastName: string | null, publicMetadata?: Record<string, unknown>, privateMetadata?: Record<string, unknown>, unsafeMetadata?: Record<string, unknown>, emailAddresses?: EmailAddress[], phoneNumbers?: PhoneNumber[], web3Wallets?: Web3Wallet[], externalAccounts?: ExternalAccount[]); | ||
constructor(id: string, passwordEnabled: boolean, totpEnabled: boolean, backupCodeEnabled: boolean, twoFactorEnabled: boolean, banned: boolean, createdAt: number, updatedAt: number, profileImageUrl: string, gender: string, birthday: string, primaryEmailAddressId: string | null, primaryPhoneNumberId: string | null, primaryWeb3WalletId: string | null, lastSignInAt: number | null, externalId: string | null, username: string | null, firstName: string | null, lastName: string | null, publicMetadata?: UserPublicMetadata, privateMetadata?: Record<string, unknown>, unsafeMetadata?: UserUnsafeMetadata, emailAddresses?: EmailAddress[], phoneNumbers?: PhoneNumber[], web3Wallets?: Web3Wallet[], externalAccounts?: ExternalAccount[]); | ||
static fromJSON(data: UserJSON): User; | ||
} | ||
//# sourceMappingURL=User.d.ts.map |
{ | ||
"name": "@clerk/backend", | ||
"version": "0.13.0-staging.0", | ||
"version": "0.13.0-staging.1", | ||
"license": "MIT", | ||
@@ -83,3 +83,3 @@ "description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities", | ||
}, | ||
"gitHead": "7a557bd59e4e326c202cbe60b64f8b5c12bf8b2c" | ||
"gitHead": "f07ed349793c39d3e810cef71f5766cfd3747781" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3
544858
141
1837
2