Constructors
constructor
- new SeamHttpPhones(apiKeyOrOptions?): SeamHttpPhones
Properties
client
client: AxiosInstance
Readonly
defaults
Accessors
Methods
deactivate
- deactivate(body?): SeamHttpRequest<void, undefined>
Parameters
Optional
body: {
device_id: string;
}
list
- list(body?): SeamHttpRequest<SetNonNullable<Required<{
phones: {
can_hvac_cool?: boolean;
can_hvac_heat?: boolean;
can_hvac_heat_cool?: boolean;
can_program_offline_access_codes?: boolean;
can_program_online_access_codes?: boolean;
can_remotely_lock?: boolean;
can_remotely_unlock?: boolean;
can_simulate_connection?: boolean;
can_simulate_disconnection?: boolean;
can_simulate_removal?: boolean;
can_turn_off_hvac?: boolean;
capabilities_supported: (
| "access_code"
| "phone"
| "lock"
| "noise_detection"
| "thermostat"
| "battery")[];
created_at: string;
custom_metadata: Record<string, string | boolean>;
device_id: string;
device_type: "ios_phone" | "android_phone";
display_name: string;
errors: ({
error_code: string;
is_device_error: true;
message: string;
} | {
error_code: string;
is_connected_account_error: true;
message: string;
})[];
is_managed: true;
location: null | {
location_name?: string;
timezone?: string;
};
nickname?: string;
properties: {
assa_abloy_credential_service_metadata?: {
endpoints: {
endpoint_id: ...;
is_active: ...;
}[];
has_active_endpoint: boolean;
};
};
warnings: {
message: string;
warning_code: string;
}[];
workspace_id: string;
}[];
}>, "phones">, "phones"> Parameters
Optional
body: {
acs_credential_id?: string;
owner_user_identity_id?: string;
}Optional
acs_credential_id?: string
Optional
owner_user_identity_id?: string
Returns SeamHttpRequest<SetNonNullable<Required<{
phones: {
can_hvac_cool?: boolean;
can_hvac_heat?: boolean;
can_hvac_heat_cool?: boolean;
can_program_offline_access_codes?: boolean;
can_program_online_access_codes?: boolean;
can_remotely_lock?: boolean;
can_remotely_unlock?: boolean;
can_simulate_connection?: boolean;
can_simulate_disconnection?: boolean;
can_simulate_removal?: boolean;
can_turn_off_hvac?: boolean;
capabilities_supported: (
| "access_code"
| "phone"
| "lock"
| "noise_detection"
| "thermostat"
| "battery")[];
created_at: string;
custom_metadata: Record<string, string | boolean>;
device_id: string;
device_type: "ios_phone" | "android_phone";
display_name: string;
errors: ({
error_code: string;
is_device_error: true;
message: string;
} | {
error_code: string;
is_connected_account_error: true;
message: string;
})[];
is_managed: true;
location: null | {
location_name?: string;
timezone?: string;
};
nickname?: string;
properties: {
assa_abloy_credential_service_metadata?: {
endpoints: {
endpoint_id: ...;
is_active: ...;
}[];
has_active_endpoint: boolean;
};
};
warnings: {
message: string;
warning_code: string;
}[];
workspace_id: string;
}[];
}>, "phones">, "phones">
updateClientSessionToken
- updateClientSessionToken(clientSessionToken): Promise<void>
Parameters
- clientSessionToken: string
Returns Promise<void>
Static
fromApiKey
- fromApiKey(apiKey, options?): SeamHttpPhones
Static
fromClient
- fromClient(client, options?): SeamHttpPhones
Static
fromClientSessionToken
- fromClientSessionToken(clientSessionToken, options?): SeamHttpPhones
Static
fromConsoleSessionToken
- fromConsoleSessionToken(consoleSessionToken, workspaceId, options?): SeamHttpPhones
Static
fromPersonalAccessToken
- fromPersonalAccessToken(personalAccessToken, workspaceId, options?): SeamHttpPhones
Static
fromPublishableKey
- fromPublishableKey(publishableKey, userIdentifierKey, options?): Promise<SeamHttpPhones>