Class SeamHttpConnectedAccounts
Constructors
constructor
- new SeamHttpConnectedAccounts(apiKeyOrOptions?): SeamHttpConnectedAccounts
Properties
client
client: AxiosInstance
Readonly
defaults
Methods
delete
- delete(body?): SeamHttpRequest<void, undefined>
Parameters
Optional
body: {
connected_account_id: string;
sync?: boolean;
}connected_account_id: string
Optional
sync?: boolean
get
- get(body?): SeamHttpRequest<SetNonNullable<Required<{
connected_account: {
account_type?: string;
account_type_display_name: string;
automatically_manage_new_devices: boolean;
connected_account_id?: string;
created_at?: string;
custom_metadata: Record<string, string | boolean>;
errors: {
error_code: string;
is_connected_account_error: true;
message: string;
}[];
user_identifier?: {
api_url?: string;
email?: string;
exclusive?: boolean;
phone?: string;
username?: string;
};
warnings: {
message: string;
warning_code: string;
}[];
};
}>, "connected_account">, "connected_account"> Returns SeamHttpRequest<SetNonNullable<Required<{
connected_account: {
account_type?: string;
account_type_display_name: string;
automatically_manage_new_devices: boolean;
connected_account_id?: string;
created_at?: string;
custom_metadata: Record<string, string | boolean>;
errors: {
error_code: string;
is_connected_account_error: true;
message: string;
}[];
user_identifier?: {
api_url?: string;
email?: string;
exclusive?: boolean;
phone?: string;
username?: string;
};
warnings: {
message: string;
warning_code: string;
}[];
};
}>, "connected_account">, "connected_account">
list
- list(body?): SeamHttpRequest<SetNonNullable<Required<{
connected_accounts: {
account_type?: string;
account_type_display_name: string;
automatically_manage_new_devices: boolean;
connected_account_id?: string;
created_at?: string;
custom_metadata: Record<string, string | boolean>;
errors: {
error_code: string;
is_connected_account_error: true;
message: string;
}[];
user_identifier?: {
api_url?: string;
email?: string;
exclusive?: boolean;
phone?: string;
username?: string;
};
warnings: {
message: string;
warning_code: string;
}[];
}[];
}>, "connected_accounts">, "connected_accounts"> Parameters
Optional
body: {
custom_metadata_has?: Record<string, string | boolean>;
user_identifier_key?: string;
}Optional
custom_metadata_has?: Record<string, string | boolean>
Optional
user_identifier_key?: string
Returns SeamHttpRequest<SetNonNullable<Required<{
connected_accounts: {
account_type?: string;
account_type_display_name: string;
automatically_manage_new_devices: boolean;
connected_account_id?: string;
created_at?: string;
custom_metadata: Record<string, string | boolean>;
errors: {
error_code: string;
is_connected_account_error: true;
message: string;
}[];
user_identifier?: {
api_url?: string;
email?: string;
exclusive?: boolean;
phone?: string;
username?: string;
};
warnings: {
message: string;
warning_code: string;
}[];
}[];
}>, "connected_accounts">, "connected_accounts">
update
- update(body?): SeamHttpRequest<void, undefined>
Parameters
Optional
body: {
automatically_manage_new_devices?: boolean;
connected_account_id: string;
custom_metadata?: Record<string, null | string | boolean>;
}Optional
automatically_manage_new_devices?: boolean
connected_account_id: string
Optional
custom_metadata?: Record<string, null | string | boolean>
updateClientSessionToken
- updateClientSessionToken(clientSessionToken): Promise<void>
Parameters
- clientSessionToken: string
Returns Promise<void>
Static
fromClientSessionToken
- fromClientSessionToken(clientSessionToken, options?): SeamHttpConnectedAccounts
Static
fromConsoleSessionToken
- fromConsoleSessionToken(consoleSessionToken, workspaceId, options?): SeamHttpConnectedAccounts
Static
fromPersonalAccessToken
- fromPersonalAccessToken(personalAccessToken, workspaceId, options?): SeamHttpConnectedAccounts
Static
fromPublishableKey
- fromPublishableKey(publishableKey, userIdentifierKey, options?): Promise<SeamHttpConnectedAccounts>
Returns accounts whose custom_metadata contains all of the provided key/value pairs.