@seamapi/http - v1.70.0
    Preparing search index...

    Class SeamHttpClientSessions

    Index

    Constructors

    Properties

    client: AxiosInstance
    defaults: Required<SeamHttpRequestOptions>
    ltsVersion: "1.0.0" = seamApiLtsVersion
    ltsVersion: string = seamApiLtsVersion

    Methods

    • Parameters

      • Optionalparameters: {
            connect_webview_ids?: string[];
            connected_account_ids?: string[];
            customer_id?: string;
            customer_key?: string;
            expires_at?: Date;
            user_identifier_key?: string;
            user_identity_id?: string;
            user_identity_ids?: string[];
        }
        • Optionalconnect_webview_ids?: string[]

          IDs of the Connect Webviews for which you want to create a client session.

        • Optionalconnected_account_ids?: string[]

          IDs of the connected accounts for which you want to create a client session.

        • Optionalcustomer_id?: string

          Customer ID that you want to associate with the new client session.

        • Optionalcustomer_key?: string

          Customer key that you want to associate with the new client session.

        • Optionalexpires_at?: Date

          Date and time at which the client session should expire, in ISO 8601 format.

        • Optionaluser_identifier_key?: string

          Your user ID for the user for whom you want to create a client session.

        • Optionaluser_identity_id?: string

          ID of the user identity for which you want to create a client session.

        • Optionaluser_identity_ids?: string[]

          IDs of the user identities that you want to associate with the client session.

          Use user_identity_id instead.

      • options: ClientSessionsCreateOptions = {}

      Returns ClientSessionsCreateRequest

    • Parameters

      • Optionalparameters: { client_session_id?: string; user_identifier_key?: string }
        • Optionalclient_session_id?: string

          ID of the client session that you want to get.

        • Optionaluser_identifier_key?: string

          User identifier key associated with the client session that you want to get.

      • options: ClientSessionsGetOptions = {}

      Returns ClientSessionsGetRequest

    • Parameters

      • Optionalparameters: {
            connect_webview_ids?: string[];
            connected_account_ids?: string[];
            expires_at?: Date;
            user_identifier_key?: string;
            user_identity_id?: string;
            user_identity_ids?: string[];
        }
        • Optionalconnect_webview_ids?: string[]

          IDs of the Connect Webviews that you want to associate with the client session (or that are already associated with the existing client session).

        • Optionalconnected_account_ids?: string[]

          IDs of the connected accounts that you want to associate with the client session (or that are already associated with the existing client session).

        • Optionalexpires_at?: Date

          Date and time at which the client session should expire (or at which the existing client session expires), in ISO 8601 format.

        • Optionaluser_identifier_key?: string

          Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session).

        • Optionaluser_identity_id?: string

          ID of the user identity that you want to associate with the client session (or that are already associated with the existing client session).

        • Optionaluser_identity_ids?: string[]

          IDs of the user identities that you want to associate with the client session.

          Use user_identity_id.

      • options: ClientSessionsGetOrCreateOptions = {}

      Returns ClientSessionsGetOrCreateRequest

    • Parameters

      • Optionalparameters: {
            client_session_id?: string;
            connect_webview_ids?: string[];
            connected_account_ids?: string[];
            user_identifier_key?: string;
            user_identity_id?: string;
            user_identity_ids?: string[];
        }
        • Optionalclient_session_id?: string

          ID of the client session to which you want to grant access to resources.

        • Optionalconnect_webview_ids?: string[]

          IDs of the Connect Webviews that you want to associate with the client session.

        • Optionalconnected_account_ids?: string[]

          IDs of the connected accounts that you want to associate with the client session.

        • Optionaluser_identifier_key?: string

          Your user ID for the user that you want to associate with the client session.

        • Optionaluser_identity_id?: string

          ID of the user identity that you want to associate with the client session.

        • Optionaluser_identity_ids?: string[]

          IDs of the user identities that you want to associate with the client session.

          Use user_identity_id.

      • options: ClientSessionsGrantAccessOptions = {}

      Returns ClientSessionsGrantAccessRequest

    • Parameters

      • Optionalparameters: {
            client_session_id?: string;
            connect_webview_id?: string;
            user_identifier_key?: string;
            user_identity_id?: string;
            without_user_identifier_key?: boolean;
        }
        • Optionalclient_session_id?: string

          ID of the client session that you want to retrieve.

        • Optionalconnect_webview_id?: string

          ID of the Connect Webview for which you want to retrieve client sessions.

        • Optionaluser_identifier_key?: string

          Your user ID for the user by which you want to filter client sessions.

        • Optionaluser_identity_id?: string

          ID of the user identity for which you want to retrieve client sessions.

        • Optionalwithout_user_identifier_key?: boolean

          Indicates whether to retrieve only client sessions without associated user identifier keys.

      • options: ClientSessionsListOptions = {}

      Returns ClientSessionsListRequest

    • Parameters

      • clientSessionToken: string

      Returns Promise<void>