Class SeamHttpClientSessions
 
Constructors
constructor
- new SeamHttpClientSessions(apiKeyOrOptions?): SeamHttpClientSessions
- 
Properties
client
client: AxiosInstance
Methods
create
- create(body): Promise<{ 
 client_session_id: string;
 created_at: string;
 token: string;
 user_identifier_key: null | string;
 workspace_id: string;
 }>
- 
Parameters
- 
body: { 
 connect_webview_ids?: string[];
 connected_account_ids?: string[];
 user_identifier_key?: string;
 }
- 
Optionalconnect_webview_ids?: string[]
- 
Optionalconnected_account_ids?: string[]
- 
Optionaluser_identifier_key?: string
 
 
 Returns Promise<{ 
 client_session_id: string;
 created_at: string;
 token: string;
 user_identifier_key: null | string;
 workspace_id: string;
 }>
delete
- delete(body): Promise<void>
- 
Parameters
- 
body: { 
 client_session_id: string;
 }
- 
client_session_id: string
 
 
 Returns Promise<void>
get
- get(body): Promise<{ 
 client_session_id: string;
 connect_webview_ids: string[];
 connected_account_ids: string[];
 created_at: string;
 device_count: number;
 token: string;
 user_identifier_key: null | string;
 workspace_id: string;
 }>
- 
Parameters
- 
body: { 
 client_session_id?: string;
 user_identifier_key?: string;
 }
- 
Optionalclient_session_id?: string
- 
Optionaluser_identifier_key?: string
 
 
 Returns Promise<{ 
 client_session_id: string;
 connect_webview_ids: string[];
 connected_account_ids: string[];
 created_at: string;
 device_count: number;
 token: string;
 user_identifier_key: null | string;
 workspace_id: string;
 }>
getOrCreate
- getOrCreate(body): Promise<{ 
 client_session_id: string;
 created_at: string;
 token: string;
 user_identifier_key: null | string;
 workspace_id: string;
 }>
- 
Parameters
- 
body: { 
 connect_webview_ids?: string[];
 connected_account_ids?: string[];
 user_identifier_key?: string;
 }
- 
Optionalconnect_webview_ids?: string[]
- 
Optionalconnected_account_ids?: string[]
- 
Optionaluser_identifier_key?: string
 
 
 Returns Promise<{ 
 client_session_id: string;
 created_at: string;
 token: string;
 user_identifier_key: null | string;
 workspace_id: string;
 }>
grantAccess
- grantAccess(body): Promise<{ 
 client_session_id: string;
 connect_webview_ids: string[];
 connected_account_ids: string[];
 created_at: string;
 device_count: number;
 token: string;
 user_identifier_key: null | string;
 workspace_id: string;
 }>
- 
Parameters
- 
body: { 
 client_session_id?: string;
 connect_webview_ids?: string[];
 connected_account_ids?: string[];
 user_identifier_key?: string;
 }
- 
Optionalclient_session_id?: string
- 
Optionalconnect_webview_ids?: string[]
- 
Optionalconnected_account_ids?: string[]
- 
Optionaluser_identifier_key?: string
 
 
 Returns Promise<{ 
 client_session_id: string;
 connect_webview_ids: string[];
 connected_account_ids: string[];
 created_at: string;
 device_count: number;
 token: string;
 user_identifier_key: null | string;
 workspace_id: string;
 }>
list
- list(body): Promise<{ 
 client_session_id: string;
 connect_webview_ids: string[];
 connected_account_ids: string[];
 created_at: string;
 device_count: number;
 user_identifier_key: null | string;
 workspace_id: string;
 }[]>
- 
Parameters
- 
body: { 
 client_session_id?: string;
 connect_webview_id?: string;
 user_identifier_key?: string;
 without_user_identifier_key?: boolean;
 }
- 
Optionalclient_session_id?: string
- 
Optionalconnect_webview_id?: string
- 
Optionaluser_identifier_key?: string
- 
Optionalwithout_user_identifier_key?: boolean
 
 
 Returns Promise<{ 
 client_session_id: string;
 connect_webview_ids: string[];
 connected_account_ids: string[];
 created_at: string;
 device_count: number;
 user_identifier_key: null | string;
 workspace_id: string;
 }[]>
Static fromApiKey
- fromApiKey(apiKey, options?): SeamHttpClientSessions
- 
Static fromClient
- fromClient(client, options?): SeamHttpClientSessions
- 
Static fromClientSessionToken
- fromClientSessionToken(clientSessionToken, options?): SeamHttpClientSessions
- 
Parameters
- 
clientSessionToken: string
- 
 
 
Static fromPublishableKey
- fromPublishableKey(publishableKey, userIdentifierKey, options?): Promise<SeamHttpClientSessions>
- 
Parameters
- 
publishableKey: string
- 
userIdentifierKey: string
-