Class SeamHttpAccessCodesSimulate
Constructors
constructor
- new SeamHttpAccessCodesSimulate(apiKeyOrOptions?): SeamHttpAccessCodesSimulate
Properties
client
client: AxiosInstance
Readonly
defaults
Methods
createUnmanagedAccessCode
- createUnmanagedAccessCode(body?): SeamHttpRequest<SetNonNullable<Required<{
access_code: {
access_code_id: string;
code: null | string;
created_at: string;
device_id: string;
ends_at?: null | string;
errors: (
| {
error_code: string;
is_access_code_error: true;
message: string;
}
| {
error_code: "device_offline";
is_device_error: true;
message: string;
}
| {
error_code: "device_removed";
is_device_error: true;
message: string;
}
| {
error_code: "account_disconnected";
is_device_error: true;
message: string;
}
| {
error_code: "hub_disconnected";
is_device_error: true;
message: string;
}
| {
error_code: "device_disconnected";
is_device_error: true;
message: string;
}
| {
error_code: "empty_backup_access_code_pool";
is_device_error: true;
message: string;
}
| {
error_code: "august_lock_not_authorized";
is_device_error: true;
message: string;
}
| {
error_code: "august_lock_missing_bridge";
is_device_error: true;
message: string;
}
| {
error_code: "salto_site_user_limit_reached";
is_device_error: true;
message: string;
}
| {
error_code: "ttlock_lock_not_paired_to_gateway";
is_device_error: true;
message: string;
}
| {
error_code: "missing_device_credentials";
is_device_error: true;
message: string;
}
| {
error_code: "auxiliary_heat_running";
is_device_error: true;
message: string;
}
| {
error_code: "subscription_required";
is_device_error: true;
message: string;
}
| {
error_code: string;
is_connected_account_error: true;
message: string;
})[];
is_managed: false;
name: null | string;
starts_at?: null | string;
status: "set";
type: "time_bound" | "ongoing";
warnings: {
message: string;
warning_code: string;
}[];
};
}>, "access_code">, "access_code"> Parameters
Optional
body: {
code: string;
device_id: string;
name: string;
}code: string
device_id: string
name: string
Returns SeamHttpRequest<SetNonNullable<Required<{
access_code: {
access_code_id: string;
code: null | string;
created_at: string;
device_id: string;
ends_at?: null | string;
errors: (
| {
error_code: string;
is_access_code_error: true;
message: string;
}
| {
error_code: "device_offline";
is_device_error: true;
message: string;
}
| {
error_code: "device_removed";
is_device_error: true;
message: string;
}
| {
error_code: "account_disconnected";
is_device_error: true;
message: string;
}
| {
error_code: "hub_disconnected";
is_device_error: true;
message: string;
}
| {
error_code: "device_disconnected";
is_device_error: true;
message: string;
}
| {
error_code: "empty_backup_access_code_pool";
is_device_error: true;
message: string;
}
| {
error_code: "august_lock_not_authorized";
is_device_error: true;
message: string;
}
| {
error_code: "august_lock_missing_bridge";
is_device_error: true;
message: string;
}
| {
error_code: "salto_site_user_limit_reached";
is_device_error: true;
message: string;
}
| {
error_code: "ttlock_lock_not_paired_to_gateway";
is_device_error: true;
message: string;
}
| {
error_code: "missing_device_credentials";
is_device_error: true;
message: string;
}
| {
error_code: "auxiliary_heat_running";
is_device_error: true;
message: string;
}
| {
error_code: "subscription_required";
is_device_error: true;
message: string;
}
| {
error_code: string;
is_connected_account_error: true;
message: string;
})[];
is_managed: false;
name: null | string;
starts_at?: null | string;
status: "set";
type: "time_bound" | "ongoing";
warnings: {
message: string;
warning_code: string;
}[];
};
}>, "access_code">, "access_code">
updateClientSessionToken
- updateClientSessionToken(clientSessionToken): Promise<void>
Parameters
- clientSessionToken: string
Returns Promise<void>
Static
fromClientSessionToken
- fromClientSessionToken(clientSessionToken, options?): SeamHttpAccessCodesSimulate
Static
fromConsoleSessionToken
- fromConsoleSessionToken(consoleSessionToken, workspaceId, options?): SeamHttpAccessCodesSimulate
Static
fromPersonalAccessToken
- fromPersonalAccessToken(personalAccessToken, workspaceId, options?): SeamHttpAccessCodesSimulate
Static
fromPublishableKey
- fromPublishableKey(publishableKey, userIdentifierKey, options?): Promise<SeamHttpAccessCodesSimulate>