diff --git a/types/plaid-link/index.d.ts b/types/plaid-link/index.d.ts index 07deeda71b..0f1a2ff7e4 100644 --- a/types/plaid-link/index.d.ts +++ b/types/plaid-link/index.d.ts @@ -25,10 +25,14 @@ export namespace Plaid { onLoad?: OnLoad; language?: Language; countryCodes?: Country[]; + webhook?: string; userLegalName?: string; userEmailAddress?: string; token?: string; isWebView?: boolean; + oauthNonce?: string; + oauthRedirectUri?: string; + oauthStateId?: string; } type OnSuccess = (public_token: string, metadata: OnSuccessMetaData) => void; @@ -48,6 +52,16 @@ export namespace Plaid { type Country = 'US' | 'CA' | 'GB'; type VerificationStatus = 'pending_automatic_verification' | 'pending_manual_verification' | 'manually_verified'; + type ViewName = + | 'CONNECTED' + | 'CREDENTIAL' + | 'ERROR' + | 'EXIT' + | 'LOADING' + | 'MFA' + | 'RECAPTCHA' + | 'SELECT_ACCOUNT' + | 'SELECT_INSTITUTION'; type EventName = | 'ERROR' | 'EXIT' @@ -113,7 +127,7 @@ export namespace Plaid { mfa_type: string; request_id: string; timestamp: string; - view_name: string; + view_name: ViewName; } interface ExitOptions { force: boolean;