Class SeamHttpConnectWebviews
Constructors
constructor
- new SeamHttpConnectWebviews(apiKeyOrOptions?): SeamHttpConnectWebviews
-
Properties
client
client: AxiosInstance
Methods
create
- create(body): Promise<{
accepted_devices: string[];
accepted_providers: string[];
any_device_allowed: boolean;
any_provider_allowed: boolean;
connect_webview_id: string;
connected_account_id?: string;
created_at: string;
device_selection_mode: "none" | "multiple" | "single";
login_successful: boolean;
status: "failed" | "pending" | "authorized";
url: string;
workspace_id: string;
}>
-
Parameters
-
body: {
accepted_providers?: ("linear" | "akuvox" | "august" | "avigilon_alta" | "brivo" | "butterflymx" | "schlage" | "smartthings" | "yale" | "genie" | "doorking" | "salto" | "lockly" | "ttlock" | "noiseaware" | "nuki" | "seam_relay_admin" | "igloo" | "kwikset" | "minut" | "my_2n" | "controlbyweb" | "nest" | "igloohome" | "ecobee" | "hubitat" | "four_suites" | "dormakaba_oracode" | "pti" | "wyze" | "yale_access")[];
automatically_manage_new_devices?: boolean;
custom_metadata?: Record<string, null | string | number | boolean>;
custom_redirect_failure_url?: string;
custom_redirect_url?: string;
device_selection_mode?: "none" | "multiple" | "single";
provider_category?: "stable" | "consumer_smartlocks" | "internal_beta";
wait_for_device_creation?: boolean;
}
-
Optional
accepted_providers?: ("linear" | "akuvox" | "august" | "avigilon_alta" | "brivo" | "butterflymx" | "schlage" | "smartthings" | "yale" | "genie" | "doorking" | "salto" | "lockly" | "ttlock" | "noiseaware" | "nuki" | "seam_relay_admin" | "igloo" | "kwikset" | "minut" | "my_2n" | "controlbyweb" | "nest" | "igloohome" | "ecobee" | "hubitat" | "four_suites" | "dormakaba_oracode" | "pti" | "wyze" | "yale_access")[]
-
Optional
automatically_manage_new_devices?: boolean
-
Optional
custom_metadata?: Record<string, null | string | number | boolean>
-
Optional
custom_redirect_failure_url?: string
-
Optional
custom_redirect_url?: string
-
Optional
device_selection_mode?: "none" | "multiple" | "single"
-
Optional
provider_category?: "stable" | "consumer_smartlocks" | "internal_beta"
-
Optional
wait_for_device_creation?: boolean
Returns Promise<{
accepted_devices: string[];
accepted_providers: string[];
any_device_allowed: boolean;
any_provider_allowed: boolean;
connect_webview_id: string;
connected_account_id?: string;
created_at: string;
device_selection_mode: "none" | "multiple" | "single";
login_successful: boolean;
status: "failed" | "pending" | "authorized";
url: string;
workspace_id: string;
}>
delete
- delete(body): Promise<void>
-
Parameters
-
body: {
connect_webview_id: string;
}
-
connect_webview_id: string
Returns Promise<void>
get
- get(body): Promise<{
accepted_devices: string[];
accepted_providers: string[];
any_device_allowed: boolean;
any_provider_allowed: boolean;
connect_webview_id: string;
connected_account_id?: string;
created_at: string;
device_selection_mode: "none" | "multiple" | "single";
login_successful: boolean;
status: "failed" | "pending" | "authorized";
url: string;
workspace_id: string;
}>
-
Parameters
-
body: {
connect_webview_id: string;
}
-
connect_webview_id: string
Returns Promise<{
accepted_devices: string[];
accepted_providers: string[];
any_device_allowed: boolean;
any_provider_allowed: boolean;
connect_webview_id: string;
connected_account_id?: string;
created_at: string;
device_selection_mode: "none" | "multiple" | "single";
login_successful: boolean;
status: "failed" | "pending" | "authorized";
url: string;
workspace_id: string;
}>
list
- list(body): Promise<{
accepted_devices: string[];
accepted_providers: string[];
any_device_allowed: boolean;
any_provider_allowed: boolean;
connect_webview_id: string;
connected_account_id?: string;
created_at: string;
device_selection_mode: "none" | "multiple" | "single";
login_successful: boolean;
status: "failed" | "pending" | "authorized";
url: string;
workspace_id: string;
}[]>
-
Parameters
-
body: {
user_identifier_key?: string;
}
-
Optional
user_identifier_key?: string
Returns Promise<{
accepted_devices: string[];
accepted_providers: string[];
any_device_allowed: boolean;
any_provider_allowed: boolean;
connect_webview_id: string;
connected_account_id?: string;
created_at: string;
device_selection_mode: "none" | "multiple" | "single";
login_successful: boolean;
status: "failed" | "pending" | "authorized";
url: string;
workspace_id: string;
}[]>
view
- view(params?): Promise<void>
-
Parameters
-
Optional
params: {
auth_token: string;
connect_webview_id: string;
}
-
auth_token: string
-
connect_webview_id: string
Returns Promise<void>
Static
fromApiKey
- fromApiKey(apiKey, options?): SeamHttpConnectWebviews
-
Static
fromClient
- fromClient(client, options?): SeamHttpConnectWebviews
-
Static
fromClientSessionToken
- fromClientSessionToken(clientSessionToken, options?): SeamHttpConnectWebviews
-
Parameters
-
clientSessionToken: string
-
Static
fromPublishableKey
- fromPublishableKey(publishableKey, userIdentifierKey, options?): Promise<SeamHttpConnectWebviews>
-
Parameters
-
publishableKey: string
-
userIdentifierKey: string
-