Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions dist/typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export declare const supportedAuthAction: readonly ["login", "signup"];
export declare type AuthAction = typeof supportedAuthAction[number];
export type AuthAction = typeof supportedAuthAction[number];
export interface PrivateParams {
cobrandClientId?: string;
samlSubjectId?: string;
Expand All @@ -9,7 +9,7 @@ export interface PrivateConfigsOptions {
sdkVersion?: string;
}
export declare const supportedAuthnMethod: readonly ["passwordless", "sso", "credentials"];
export declare type AuthnMethod = typeof supportedAuthnMethod[number];
export type AuthnMethod = typeof supportedAuthnMethod[number];
export interface ConfigsOptions extends PrivateConfigsOptions {
email?: string;
backTo?: string;
Expand All @@ -20,43 +20,43 @@ export interface ConfigsOptions extends PrivateConfigsOptions {
forceLogout?: boolean;
authnMethod?: AuthnMethod;
}
export declare type ConfigsOptionsWithoutIsNewTab = Omit<ConfigsOptions, 'isNewTab'>;
export declare type VaultViewServiceList = {
export type ConfigsOptionsWithoutIsNewTab = Omit<ConfigsOptions, 'isNewTab'>;
export type VaultViewServiceList = {
view: 'services-list';
group?: 'grouping_bank' | 'grouping_bank_credit_card' | 'grouping_bank_dc_card' | 'grouping_corporate_credit_card' | 'grouping_credit_card' | 'grouping_credit_coop' | 'grouping_credit_union' | 'grouping_dc_pension_plan' | 'grouping_debit_card' | 'grouping_digital_money' | 'grouping_ja_bank' | 'grouping_life_insurance' | 'grouping_point' | 'grouping_regional_bank' | 'grouping_stock' | 'grouping_testing';
type?: 'bank' | 'credit_card' | 'stored_value' | 'point' | 'corporate';
search?: string;
};
export declare type VaultViewServiceConnection = {
export type VaultViewServiceConnection = {
view: 'service-connection';
entityKey: string;
};
export declare type VaultViewConnectionSetting = {
export type VaultViewConnectionSetting = {
view: 'connection-setting';
credentialId: string;
};
export declare type VaultViewCustomerSupport = {
export type VaultViewCustomerSupport = {
view: 'customer-support';
};
export declare type VaultServiceTypes = VaultViewServiceList | VaultViewServiceConnection | VaultViewConnectionSetting | VaultViewCustomerSupport;
export declare type MyAccountServiceTypes = {
export type VaultServiceTypes = VaultViewServiceList | VaultViewServiceConnection | VaultViewConnectionSetting | VaultViewCustomerSupport;
export type MyAccountServiceTypes = {
view: LoginLinkTo;
};
export declare type MyAccountOpenServiceOptions = ConfigsOptions | (ConfigsOptions & MyAccountServiceTypes);
export declare type MyAccountOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab | (ConfigsOptionsWithoutIsNewTab & MyAccountServiceTypes);
export declare type VaultOpenServiceViewServiceList = ConfigsOptions & VaultViewServiceList;
export declare type VaultOpenServiceViewServiceConnection = ConfigsOptions & VaultViewServiceConnection;
export declare type VaultOpenServiceViewConnectionSetting = ConfigsOptions & VaultViewConnectionSetting;
export declare type VaultOpenServiceViewCustomerSupport = ConfigsOptions & VaultViewCustomerSupport;
export declare type VaultOpenServiceUrlViewServiceList = ConfigsOptionsWithoutIsNewTab & VaultViewServiceList;
export declare type VaultOpenServiceUrlViewServiceConnection = ConfigsOptionsWithoutIsNewTab & VaultViewServiceConnection;
export declare type VaultOpenServiceUrlViewConnectionSetting = ConfigsOptionsWithoutIsNewTab & VaultViewConnectionSetting;
export declare type VaultOpenServiceUrlViewCustomerSupport = ConfigsOptionsWithoutIsNewTab & VaultViewCustomerSupport;
export declare type LinkKitOpenServiceOptions = ConfigsOptions;
export declare type LinkKitOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab;
export declare type OpenServiceOptions = MyAccountOpenServiceOptions | ConfigsOptions | VaultOpenServiceViewServiceList | VaultOpenServiceViewConnectionSetting | VaultOpenServiceViewCustomerSupport | LinkKitOpenServiceOptions;
export declare type OpenServiceUrlOptions = MyAccountOpenServiceUrlOptions | ConfigsOptionsWithoutIsNewTab | VaultOpenServiceUrlViewServiceList | VaultOpenServiceUrlViewConnectionSetting | VaultOpenServiceUrlViewCustomerSupport | LinkKitOpenServiceUrlOptions;
export declare type Scopes = string | string[];
export type MyAccountOpenServiceOptions = ConfigsOptions | (ConfigsOptions & MyAccountServiceTypes);
export type MyAccountOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab | (ConfigsOptionsWithoutIsNewTab & MyAccountServiceTypes);
export type VaultOpenServiceViewServiceList = ConfigsOptions & VaultViewServiceList;
export type VaultOpenServiceViewServiceConnection = ConfigsOptions & VaultViewServiceConnection;
export type VaultOpenServiceViewConnectionSetting = ConfigsOptions & VaultViewConnectionSetting;
export type VaultOpenServiceViewCustomerSupport = ConfigsOptions & VaultViewCustomerSupport;
export type VaultOpenServiceUrlViewServiceList = ConfigsOptionsWithoutIsNewTab & VaultViewServiceList;
export type VaultOpenServiceUrlViewServiceConnection = ConfigsOptionsWithoutIsNewTab & VaultViewServiceConnection;
export type VaultOpenServiceUrlViewConnectionSetting = ConfigsOptionsWithoutIsNewTab & VaultViewConnectionSetting;
export type VaultOpenServiceUrlViewCustomerSupport = ConfigsOptionsWithoutIsNewTab & VaultViewCustomerSupport;
export type LinkKitOpenServiceOptions = ConfigsOptions;
export type LinkKitOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab;
export type OpenServiceOptions = MyAccountOpenServiceOptions | ConfigsOptions | VaultOpenServiceViewServiceList | VaultOpenServiceViewConnectionSetting | VaultOpenServiceViewCustomerSupport | LinkKitOpenServiceOptions;
export type OpenServiceUrlOptions = MyAccountOpenServiceUrlOptions | ConfigsOptionsWithoutIsNewTab | VaultOpenServiceUrlViewServiceList | VaultOpenServiceUrlViewConnectionSetting | VaultOpenServiceUrlViewCustomerSupport | LinkKitOpenServiceUrlOptions;
export type Scopes = string | string[];
interface AuthorizeConfigsOptions {
forceLogout?: boolean;
}
Expand All @@ -69,9 +69,9 @@ export interface AuthorizeOptions extends OAuthSharedParams, ConfigsOptions, Aut
codeChallenge?: string;
pkce?: boolean;
}
export declare type AuthorizeUrlOptions = Omit<AuthorizeOptions, 'isNewTab'>;
export declare type Mode = 'production' | 'staging' | 'develop' | 'local';
export declare type InitOptions = Omit<Omit<Omit<AuthorizeOptions, 'forceLogout'>, 'codeChallenge'>, 'pkce'> & PrivateParams & {
export type AuthorizeUrlOptions = Omit<AuthorizeOptions, 'isNewTab'>;
export type Mode = 'production' | 'staging' | 'develop' | 'local';
export type InitOptions = Omit<Omit<Omit<AuthorizeOptions, 'forceLogout'>, 'codeChallenge'>, 'pkce'> & PrivateParams & {
mode?: Mode;
locale?: string;
};
Expand All @@ -83,12 +83,12 @@ export interface ExchangeTokenOptions extends OAuthSharedParams {
code?: string;
codeVerifier?: string;
}
export declare type LogoutOptions = ConfigsOptions;
export declare type LogoutUrlOptions = Omit<ConfigsOptions, 'isNewTab'>;
export declare type OnboardOptions = Omit<Omit<Omit<Omit<AuthorizeOptions, 'showAuthToggle'>, 'forceLogout'>, 'showRememberMe'>, 'authAction'>;
export declare type OnboardUrlOptions = Omit<OnboardOptions, 'isNewTab'>;
export declare type ServiceId = 'vault' | 'myaccount' | 'link-kit';
export declare type LoginLinkTo = 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
export type LogoutOptions = ConfigsOptions;
export type LogoutUrlOptions = Omit<ConfigsOptions, 'isNewTab'>;
export type OnboardOptions = Omit<Omit<Omit<Omit<AuthorizeOptions, 'showAuthToggle'>, 'forceLogout'>, 'showRememberMe'>, 'authAction'>;
export type OnboardUrlOptions = Omit<OnboardOptions, 'isNewTab'>;
export type ServiceId = 'vault' | 'myaccount' | 'link-kit';
export type LoginLinkTo = 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
export interface RequestLoginLinkOptions extends ConfigsOptions {
loginLinkTo?: LoginLinkTo;
}
Expand Down
Loading