Class SeamHttpClientSessions
Constructors
constructor
- new SeamHttpClientSessions(apiKeyOrOptions?): SeamHttpClientSessions
Properties
client
client: AxiosInstance
Readonly
defaults
Methods
create
- create(body?): SeamHttpRequest<SetNonNullable<Required<{
client_session: {
client_session_id: string;
connect_webview_ids: string[];
connected_account_ids: string[];
created_at: 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
Optional
body: {
connect_webview_ids?: string[];
connected_account_ids?: string[];
expires_at?: Date;
user_identifier_key?: string;
user_identity_ids?: string[];
}Optional
connect_webview_ids?: string[]
Optional
connected_account_ids?: string[]
Optional
expires_at?: Date
Optional
user_identifier_key?: string
Optional
user_identity_ids?: string[]
Returns SeamHttpRequest<SetNonNullable<Required<{
client_session: {
client_session_id: string;
connect_webview_ids: string[];
connected_account_ids: string[];
created_at: 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">
delete
- delete(body?): SeamHttpRequest<void, undefined>
Parameters
Optional
body: {
client_session_id: string;
}client_session_id: string
get
- get(body?): SeamHttpRequest<SetNonNullable<Required<{
client_session: {
client_session_id: string;
connect_webview_ids: string[];
connected_account_ids: string[];
created_at: 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
Optional
body: {
client_session_id?: string;
user_identifier_key?: string;
}Optional
client_session_id?: string
Optional
user_identifier_key?: string
Returns SeamHttpRequest<SetNonNullable<Required<{
client_session: {
client_session_id: string;
connect_webview_ids: string[];
connected_account_ids: string[];
created_at: 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">
getOrCreate
- getOrCreate(body?): SeamHttpRequest<SetNonNullable<Required<{
client_session: {
client_session_id: string;
connect_webview_ids: string[];
connected_account_ids: string[];
created_at: 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
Optional
body: {
connect_webview_ids?: string[];
connected_account_ids?: string[];
expires_at?: Date;
user_identifier_key?: string;
user_identity_ids?: string[];
}Optional
connect_webview_ids?: string[]
Optional
connected_account_ids?: string[]
Optional
expires_at?: Date
Optional
user_identifier_key?: string
Optional
user_identity_ids?: string[]
Returns SeamHttpRequest<SetNonNullable<Required<{
client_session: {
client_session_id: string;
connect_webview_ids: string[];
connected_account_ids: string[];
created_at: 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">
grantAccess
- grantAccess(body?): SeamHttpRequest<void, undefined>
Parameters
Optional
body: {
client_session_id?: string;
connect_webview_ids?: string[];
connected_account_ids?: string[];
user_identifier_key?: string;
user_identity_ids?: string[];
}Optional
client_session_id?: string
Optional
connect_webview_ids?: string[]
Optional
connected_account_ids?: string[]
Optional
user_identifier_key?: string
Optional
user_identity_ids?: string[]
list
- list(body?): SeamHttpRequest<SetNonNullable<Required<{
client_sessions: {
client_session_id: string;
connect_webview_ids: string[];
connected_account_ids: string[];
created_at: 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
Optional
body: {
client_session_id?: string;
connect_webview_id?: string;
user_identifier_key?: string;
user_identity_id?: string;
without_user_identifier_key?: boolean;
}Optional
client_session_id?: string
Optional
connect_webview_id?: string
Optional
user_identifier_key?: string
Optional
user_identity_id?: string
Optional
without_user_identifier_key?: boolean
Returns SeamHttpRequest<SetNonNullable<Required<{
client_sessions: {
client_session_id: string;
connect_webview_ids: string[];
connected_account_ids: string[];
created_at: 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">
revoke
- revoke(body?): SeamHttpRequest<void, undefined>
Parameters
Optional
body: {
client_session_id: string;
}client_session_id: string
updateClientSessionToken
- updateClientSessionToken(clientSessionToken): Promise<void>
Parameters
- clientSessionToken: string
Returns Promise<void>
Static
fromApiKey
- fromApiKey(apiKey, options?): SeamHttpClientSessions
Static
fromClient
- fromClient(client, options?): SeamHttpClientSessions
Static
fromClientSessionToken
- fromClientSessionToken(clientSessionToken, options?): SeamHttpClientSessions
Static
fromConsoleSessionToken
- fromConsoleSessionToken(consoleSessionToken, workspaceId, options?): SeamHttpClientSessions
Static
fromPersonalAccessToken
- fromPersonalAccessToken(personalAccessToken, workspaceId, options?): SeamHttpClientSessions
Static
fromPublishableKey
- fromPublishableKey(publishableKey, userIdentifierKey, options?): Promise<SeamHttpClientSessions>