@refoldai/refold-js
    Preparing search index...

    Interface Application

    interface Application {
        app_id: string;
        auth_input_map?: InputField[];
        auth_type: "oauth2" | "keybased";
        auth_type_options?: {
            api_key?: InputField[];
            basic_auth?: InputField[];
            bearer_token?: InputField[];
            keybased?: InputField[];
            oauth2?: InputField[];
        };
        connected?: boolean;
        connected_accounts?: {
            auth_type: AuthType;
            connectedAt: string;
            identifier: unknown;
            status?: AuthStatus;
        }[];
        description: string;
        grant_type?: GrantType;
        icon: string;
        kind?: ConnectorKind;
        name: string;
        reauth_required?: boolean;
        slug: string;
        tags?: string[];
        type: string;
    }
    Index
    app_id: string

    Application ID

    auth_input_map?: InputField[]

    The fields required from the user to connect the application (for keybased auth type).

    Check auth_type_options for multiple auth types support.

    auth_type: "oauth2" | "keybased"

    The type of auth used by application.

    Check auth_type_options and connected_accounts for multiple auth types support.

    auth_type_options?: {
        api_key?: InputField[];
        basic_auth?: InputField[];
        bearer_token?: InputField[];
        keybased?: InputField[];
        oauth2?: InputField[];
    }

    The supported auth types for the application, and the fields required from the user to connect the application.

    connected?: boolean

    Whether the user has connected the application.

    Check connected_accounts for multiple auth types support.

    connected_accounts?: {
        auth_type: AuthType;
        connectedAt: string;
        identifier: unknown;
        status?: AuthStatus;
    }[]

    The list of connected accounts for this application

    Type Declaration

    • auth_type: AuthType

      The auth type used to connect the account.

    • connectedAt: string

      The timestamp at which the account was connected.

    • identifier: unknown

      The identifier (username, email, etc.) of the connected account.

    • Optionalstatus?: AuthStatus

      The current status of the connection.

    description: string

    The application description.

    grant_type?: GrantType

    OAuth grant type. Absent ⇒ GrantType.AuthorizationCode. Pass this to Refold.connect as OAuthParams.grantType; for GrantType.ClientCredentials (machine-to-machine) connect() routes to the OAuth path regardless of type, submits the fields to the server, and opens no browser window.

    icon: string

    The application icon.

    Whether this is a native app, a custom app, or a universal connector.

    name: string

    The application name.

    reauth_required?: boolean

    Whether the connection has expired and re-auth is required.

    Check connected_accounts for multiple auth types support.

    slug: string

    The application slug.

    tags?: string[]

    The categories/tags for the application.

    type: string

    Use slug instead. The application slug for native apps and custom for custom apps.