New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@clerk/types

Package Overview
Dependencies
Maintainers
9
Versions
2253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clerk/types - npm Package Compare versions

Comparing version 2.1.0-alpha.0 to 2.1.1-alpha.0

2

dist/externalAccount.d.ts
import { OAuthProvider } from './oauth';
import { VerificationResource } from './verification';
export interface ExternalAccountResource {

@@ -15,2 +16,3 @@ id: string;

label?: string;
verification: VerificationResource | null;
providerSlug: () => OAuthProvider;

@@ -17,0 +19,0 @@ providerTitle: () => string;

@@ -136,2 +136,3 @@ /**

label: string;
verification?: VerificationJSON;
}

@@ -138,0 +139,0 @@ export interface UserJSON extends ClerkResourceJSON {

@@ -8,2 +8,3 @@ import { EmailAddressResource } from './emailAddress';

import { SessionWithActivitiesResource } from './session';
import { OAuthStrategy } from './strategies';
import { SnakeToCamel } from './utils';

@@ -40,2 +41,8 @@ import { Web3WalletResource } from './web3Wallet';

setProfileImage: (params: SetProfileImageParams) => Promise<ImageResource>;
createExternalAccount: ({ strategy, redirect_url }: {
strategy: OAuthStrategy;
redirect_url?: string;
}) => Promise<ExternalAccountResource>;
get verifiedExternalAccounts(): ExternalAccountResource[];
get unverifiedExternalAccounts(): ExternalAccountResource[];
}

@@ -42,0 +49,0 @@ export declare type CreateEmailAddressParams = {

10

dist/userSettings.d.ts

@@ -6,3 +6,3 @@ import { ClerkResourceJSON } from './json';

declare type VerificationStrategy = 'email_link' | 'email_code' | 'phone_code';
declare type OauthProviderData = {
export declare type OAuthProviderSettings = {
enabled: boolean;

@@ -33,4 +33,4 @@ required: boolean;

};
export declare type OauthProviders = {
[provider in OAuthStrategy]: OauthProviderData;
export declare type OAuthProviders = {
[provider in OAuthStrategy]: OAuthProviderSettings;
};

@@ -44,3 +44,3 @@ export declare type Attributes = {

attributes: Attributes;
social: OauthProviders;
social: OAuthProviders;
sign_in: SignInData;

@@ -51,3 +51,3 @@ sign_up: SignUpData;

id: undefined;
social: OauthProviders;
social: OAuthProviders;
attributes: Attributes;

@@ -54,0 +54,0 @@ signIn: SignInData;

{
"name": "@clerk/types",
"version": "2.1.0-alpha.0",
"version": "2.1.1-alpha.0",
"license": "MIT",

@@ -51,3 +51,3 @@ "description": "Typings for Clerk libraries.",

"homepage": "https://clerk.dev/",
"gitHead": "5409a61872a6907d67bd93675045c94ee7d35a64"
"gitHead": "ac871c42455fe7c0ccef8d487c8352d654ea7f29"
}
import { OAuthProvider } from './oauth';
import { VerificationResource } from './verification';

@@ -16,4 +17,5 @@ export interface ExternalAccountResource {

label?: string;
verification: VerificationResource | null;
providerSlug: () => OAuthProvider;
providerTitle: () => string;
}

@@ -150,2 +150,3 @@ /**

label: string;
verification?: VerificationJSON;
}

@@ -152,0 +153,0 @@

@@ -8,2 +8,3 @@ import { EmailAddressResource } from './emailAddress';

import { SessionWithActivitiesResource } from './session';
import { OAuthStrategy } from './strategies';
import { SnakeToCamel } from './utils';

@@ -42,2 +43,5 @@ import { Web3WalletResource } from './web3Wallet';

setProfileImage: (params: SetProfileImageParams) => Promise<ImageResource>;
createExternalAccount: ({ strategy, redirect_url }: { strategy: OAuthStrategy, redirect_url?: string }) => Promise<ExternalAccountResource>;
get verifiedExternalAccounts(): ExternalAccountResource[]
get unverifiedExternalAccounts(): ExternalAccountResource[]
}

@@ -44,0 +48,0 @@

@@ -16,3 +16,3 @@ import { ClerkResourceJSON } from './json';

type OauthProviderData = {
export type OAuthProviderSettings = {
enabled: boolean;

@@ -47,4 +47,4 @@ required: boolean;

export type OauthProviders = {
[provider in OAuthStrategy]: OauthProviderData;
export type OAuthProviders = {
[provider in OAuthStrategy]: OAuthProviderSettings;
};

@@ -60,3 +60,3 @@

attributes: Attributes;
social: OauthProviders;
social: OAuthProviders;
sign_in: SignInData;

@@ -68,3 +68,3 @@ sign_up: SignUpData;

id: undefined;
social: OauthProviders;
social: OAuthProviders;
attributes: Attributes;

@@ -71,0 +71,0 @@ signIn: SignInData;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc