Class SeamHttpClientSessions

Constructors

Properties

client: AxiosInstance
defaults: Required<SeamHttpRequestOptions>

Methods

  • Parameters

    • Optionalbody: {
          connect_webview_ids?: string[];
          connected_account_ids?: string[];
          customer_id?: string;
          customer_key?: string;
          expires_at?: Date;
          user_identifier_key?: 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
      • Optionalcustomer_key?: string
      • 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_ids?: string[]

        IDs of the user identities for which you want to create a client session.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        client_session: {
            client_session_id: string;
            connect_webview_ids: string[];
            connected_account_ids: string[];
            created_at: string;
            customer_id?: string;
            device_count: number;
            expires_at: string;
            token: string;
            user_identifier_key: null | string;
            user_identity_ids: string[];
            workspace_id: string;
        };
    }>, "client_session">, "client_session">

  • Parameters

    • Optionalbody: {
          client_session_id: string;
      }
      • client_session_id: string

        ID of the client session that you want to delete.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          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.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        client_session: {
            client_session_id: string;
            connect_webview_ids: string[];
            connected_account_ids: string[];
            created_at: string;
            customer_id?: string;
            device_count: number;
            expires_at: string;
            token: string;
            user_identifier_key: null | string;
            user_identity_ids: string[];
            workspace_id: string;
        };
    }>, "client_session">, "client_session">

  • Parameters

    • Optionalbody: {
          connect_webview_ids?: string[];
          connected_account_ids?: string[];
          expires_at?: Date;
          user_identifier_key?: 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_ids?: string[]

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

    Returns SeamHttpRequest<SetNonNullable<Required<{
        client_session: {
            client_session_id: string;
            connect_webview_ids: string[];
            connected_account_ids: string[];
            created_at: string;
            customer_id?: string;
            device_count: number;
            expires_at: string;
            token: string;
            user_identifier_key: null | string;
            user_identity_ids: string[];
            workspace_id: string;
        };
    }>, "client_session">, "client_session">

  • Parameters

    • Optionalbody: {
          client_session_id?: string;
          connect_webview_ids?: string[];
          connected_account_ids?: string[];
          user_identifier_key?: 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_ids?: string[]

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

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          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.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        client_sessions: {
            client_session_id: string;
            connect_webview_ids: string[];
            connected_account_ids: string[];
            created_at: string;
            customer_id?: string;
            device_count: number;
            expires_at: string;
            token: string;
            user_identifier_key: null | string;
            user_identity_ids: string[];
            workspace_id: string;
        }[];
    }>, "client_sessions">, "client_sessions">

  • Parameters

    • Optionalbody: {
          client_session_id: string;
      }
      • client_session_id: string

        ID of the client session that you want to revoke.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • clientSessionToken: string

    Returns Promise<void>