{
  "api": {
    "name": "SumsubMobileSdkPlugin",
    "slug": "sumsubmobilesdkplugin",
    "docs": "",
    "tags": [],
    "methods": [
      {
        "name": "initialize",
        "signature": "(options: { accessToken: string; applicantConfig?: { email?: string; phone?: string; }; debug?: boolean; locale?: string; isAnalyticsEnabled?: boolean; }) => Promise<{ status: SumsubSdkStatus; }>",
        "parameters": [
          {
            "name": "options",
            "docs": "- The options for initializing the SDK.",
            "type": "{ accessToken: string; applicantConfig?: { email?: string | undefined; phone?: string | undefined; } | undefined; debug?: boolean | undefined; locale?: string | undefined; isAnalyticsEnabled?: boolean | undefined; }"
          }
        ],
        "returns": "Promise<{ status: SumsubSdkStatus; }>",
        "tags": [
          {
            "name": "param",
            "text": "options - The options for initializing the SDK."
          },
          {
            "name": "returns",
            "text": "A promise that resolves with the status of the SDK, `READY` if successful or `FAILED` if there was an error. Errors can be checked in `onLog` event."
          }
        ],
        "docs": "Initializes the SDK with the given access token and optional configuration.",
        "complexTypes": [
          "SumsubSdkStatus"
        ],
        "slug": "initialize"
      },
      {
        "name": "present",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [],
        "docs": "Present the verification flow.\nThis method should be called after the SDK is initialized.",
        "complexTypes": [],
        "slug": "present"
      },
      {
        "name": "dismiss",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [],
        "docs": "",
        "complexTypes": [],
        "slug": "dismiss"
      },
      {
        "name": "setAccessToken",
        "signature": "(options: { token: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ token: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [],
        "docs": "",
        "complexTypes": [],
        "slug": "setaccesstoken"
      },
      {
        "name": "getVerificationStatus",
        "signature": "() => Promise<{ status: SumsubSdkStatus; }>",
        "parameters": [],
        "returns": "Promise<{ status: SumsubSdkStatus; }>",
        "tags": [],
        "docs": "Returns the current verification status.\nIf the verification flow is not presented, the status will be `NOT_INITIALIZED` or `READY`.\nYou need to present the verification flow to get the actual verification status.",
        "complexTypes": [
          "SumsubSdkStatus"
        ],
        "slug": "getverificationstatus"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onTokenExpired', listenerFunc: () => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onTokenExpired'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "() => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "",
        "complexTypes": [
          "PluginListenerHandle"
        ],
        "slug": "addlistenerontokenexpired-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onVerificationStatusChanged', listenerFunc: (status: { prevStatus: SumsubSdkStatus; newStatus: SumsubSdkStatus; statusDescription: string; verboseStatus: string; failReason: string; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onVerificationStatusChanged'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(status: { prevStatus: SumsubSdkStatus; newStatus: SumsubSdkStatus; statusDescription: string; verboseStatus: string; failReason: string; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "This event is triggered when the verification status changes.",
        "complexTypes": [
          "PluginListenerHandle",
          "SumsubSdkStatus"
        ],
        "slug": "addlisteneronverificationstatuschanged-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onVerificationFailed', listenerFunc: (status: { failReason: string; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onVerificationFailed'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(status: { failReason: string; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "This event is triggered when the verification status changes to failed.",
        "complexTypes": [
          "PluginListenerHandle"
        ],
        "slug": "addlisteneronverificationfailed-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onApprovedStatusChanged', listenerFunc: (event: { isApproved: boolean; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onApprovedStatusChanged'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(event: { isApproved: boolean; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "This event is triggered when the approval changes to approved or rejected.",
        "complexTypes": [
          "PluginListenerHandle"
        ],
        "slug": "addlisteneronapprovedstatuschanged-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onEvent', listenerFunc: (event: { eventName: string; payload: any; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onEvent'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(event: { eventName: string; payload: any; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "All event notifications",
        "complexTypes": [
          "PluginListenerHandle"
        ],
        "slug": "addlisteneronevent-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onApplicantLoaded', listenerFunc: (event: { applicantId: string; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onApplicantLoaded'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(event: { applicantId: string; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "",
        "complexTypes": [
          "PluginListenerHandle"
        ],
        "slug": "addlisteneronapplicantloaded-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onStepInitiated', listenerFunc: (event: { step: string; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onStepInitiated'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(event: { step: string; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "",
        "complexTypes": [
          "PluginListenerHandle"
        ],
        "slug": "addlisteneronstepinitiated-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onStepCompleted', listenerFunc: (event: { step: string; isCancelled: boolean; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onStepCompleted'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(event: { step: string; isCancelled: boolean; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "",
        "complexTypes": [
          "PluginListenerHandle"
        ],
        "slug": "addlisteneronstepcompleted-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onAnalyticsEvent', listenerFunc: (event: { eventName: string; payload: any; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onAnalyticsEvent'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(event: { eventName: string; payload: any; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "",
        "complexTypes": [
          "PluginListenerHandle"
        ],
        "slug": "addlisteneronanalyticsevent-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onDidDismiss', listenerFunc: (event: { status: string; description: string; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onDidDismiss'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(event: { status: string; description: string; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "",
        "complexTypes": [
          "PluginListenerHandle"
        ],
        "slug": "addlistenerondiddismiss-"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onLog', listenerFunc: (event: { level: LogLevel; message: string; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onLog'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(event: { level: LogLevel; message: string; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "Logs all the messages from the SDK. Log level default is Error, can be change to debug when initializing the SDK.",
        "complexTypes": [
          "PluginListenerHandle",
          "LogLevel"
        ],
        "slug": "addlisteneronlog-"
      }
    ],
    "properties": []
  },
  "interfaces": [
    {
      "name": "PluginListenerHandle",
      "slug": "pluginlistenerhandle",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "remove",
          "tags": [],
          "docs": "",
          "complexTypes": [],
          "type": "() => Promise<void>"
        }
      ]
    }
  ],
  "enums": [
    {
      "name": "SumsubSdkStatus",
      "slug": "sumsubsdkstatus",
      "members": [
        {
          "name": "NOT_INITIALIZED",
          "value": "'NotInitialized'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "READY",
          "value": "'Ready'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "FAILED",
          "value": "'Failed'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "INITIAL",
          "value": "'Initial'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "INCOMPLETE",
          "value": "'Incomplete'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "PENDING",
          "value": "'Pending'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "TEMPORARILY_DECLINED",
          "value": "'TemporarilyDeclined'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "FINALLY_REJECTED",
          "value": "'FinallyRejected'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "APPROVED",
          "value": "'Approved'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ACTION_COMPLETED",
          "value": "'ActionCompleted'",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "LogLevel",
      "slug": "loglevel",
      "members": [
        {
          "name": "OFF",
          "value": "'OFF'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ERROR",
          "value": "'ERROR'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "WARNING",
          "value": "'WARNING'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "INFO",
          "value": "'INFO'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "DEBUG",
          "value": "'DEBUG'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "TRACE",
          "value": "'TRACE'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "UNKNOWN",
          "value": "'UNKNOWN'",
          "tags": [],
          "docs": ""
        }
      ]
    }
  ],
  "typeAliases": [],
  "pluginConfigs": []
}