Constructors

Properties

client: AxiosInstance
defaults: Required<SeamHttpRequestOptions>

Accessors

Methods

  • Parameters

    • Optionalbody: {
          climate_preset_key: string;
          device_id: string;
      }
      • climate_preset_key: string

        Climate preset key of the desired climate preset.

      • device_id: string

        ID of the desired thermostat device.

    • options: Pick<SeamHttpRequestOptions, "waitForActionAttempt"> = {}

    Returns SeamHttpRequest<SetNonNullable<Required<{
        action_attempt:
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: {
                    acs_credential_on_encoder: {
                        card_number: null | string;
                        created_at: null | string;
                        ends_at: null | string;
                        is_issued: null | boolean;
                        starts_at: null | string;
                        visionline_metadata?: {
                            cancelled: boolean;
                            card_format: (...) | (...);
                            card_holder?: (...) | (...);
                            card_id: string;
                            common_acs_entrance_ids?: (...) | (...);
                            discarded: boolean;
                            expired: boolean;
                            guest_acs_entrance_ids?: (...) | (...);
                            number_of_issued_cards: number;
                            overridden?: (...) | (...) | (...);
                            overwritten: boolean;
                            pending_auto_update: boolean;
                        };
                    };
                    acs_credential_on_seam: null | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: true;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    } | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: false;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    };
                    warnings: {
                        warning_code: "acs_credential_on_encoder_out_of_sync";
                        warning_message: string;
                    }[];
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: {
                    message: string;
                    type: "uncategorized_error";
                } | {
                    message: string;
                    type: "action_attempt_expired";
                } | {
                    message: string;
                    type: "no_card_on_encoder";
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: true;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                } | {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: false;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error:
                    | {
                        message: string;
                        type: "uncategorized_error";
                    }
                    | {
                        message: string;
                        type: "action_attempt_expired";
                    }
                    | {
                        message: string;
                        type: "no_card_on_encoder";
                    }
                    | {
                        message: string;
                        type: "incompatible_card_format";
                    };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            };
    }>, "action_attempt">, "action_attempt">

  • Parameters

    • Optionalbody: {
          cooling_set_point_celsius?: number;
          cooling_set_point_fahrenheit?: number;
          device_id: string;
          sync?: boolean;
      }
      • Optionalcooling_set_point_celsius?: number

        Desired cooling set point in °C. You must set one of the cooling_set_point parameters.

      • Optionalcooling_set_point_fahrenheit?: number

        Desired cooling set point in °F. You must set one of the cooling_set_point parameters.

      • device_id: string

        ID of the desired thermostat device.

      • Optionalsync?: boolean
    • options: Pick<SeamHttpRequestOptions, "waitForActionAttempt"> = {}

    Returns SeamHttpRequest<SetNonNullable<Required<{
        action_attempt:
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: {
                    acs_credential_on_encoder: {
                        card_number: null | string;
                        created_at: null | string;
                        ends_at: null | string;
                        is_issued: null | boolean;
                        starts_at: null | string;
                        visionline_metadata?: {
                            cancelled: boolean;
                            card_format: (...) | (...);
                            card_holder?: (...) | (...);
                            card_id: string;
                            common_acs_entrance_ids?: (...) | (...);
                            discarded: boolean;
                            expired: boolean;
                            guest_acs_entrance_ids?: (...) | (...);
                            number_of_issued_cards: number;
                            overridden?: (...) | (...) | (...);
                            overwritten: boolean;
                            pending_auto_update: boolean;
                        };
                    };
                    acs_credential_on_seam: null | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: true;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    } | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: false;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    };
                    warnings: {
                        warning_code: "acs_credential_on_encoder_out_of_sync";
                        warning_message: string;
                    }[];
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: {
                    message: string;
                    type: "uncategorized_error";
                } | {
                    message: string;
                    type: "action_attempt_expired";
                } | {
                    message: string;
                    type: "no_card_on_encoder";
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: true;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                } | {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: false;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error:
                    | {
                        message: string;
                        type: "uncategorized_error";
                    }
                    | {
                        message: string;
                        type: "action_attempt_expired";
                    }
                    | {
                        message: string;
                        type: "no_card_on_encoder";
                    }
                    | {
                        message: string;
                        type: "incompatible_card_format";
                    };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            };
    }>, "action_attempt">, "action_attempt">

  • Parameters

    • Optionalbody: {
          climate_preset_key: string;
          cooling_set_point_celsius?: number;
          cooling_set_point_fahrenheit?: number;
          device_id: string;
          fan_mode_setting?: "auto" | "on" | "circulate";
          heating_set_point_celsius?: number;
          heating_set_point_fahrenheit?: number;
          hvac_mode_setting?:
              | "off"
              | "heat"
              | "cool"
              | "heat_cool";
          manual_override_allowed?: boolean;
          name?: null | string;
      }
      • climate_preset_key: string

        Unique key to identify the climate preset.

      • Optionalcooling_set_point_celsius?: number

        Temperature to which the thermostat should cool (in °C). See also Set Points.

      • Optionalcooling_set_point_fahrenheit?: number

        Temperature to which the thermostat should cool (in °F).

      • device_id: string

        ID of the desired thermostat device.

      • Optionalfan_mode_setting?: "auto" | "on" | "circulate"

        Desired fan mode setting, such as on, auto, or circulate.

      • Optionalheating_set_point_celsius?: number

        Temperature to which the thermostat should heat (in °C).

      • Optionalheating_set_point_fahrenheit?: number

        Temperature to which the thermostat should heat (in °F).

      • Optionalhvac_mode_setting?:
            | "off"
            | "heat"
            | "cool"
            | "heat_cool"

        Desired HVAC mode setting, such as heat, cool, heat_cool, or off.

      • Optionalmanual_override_allowed?: boolean
      • Optionalname?: null | string

        User-friendly name to identify the climate preset.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          climate_preset_key: string;
          device_id: string;
      }
      • climate_preset_key: string

        Climate preset key of the desired climate preset.

      • device_id: string

        ID of the desired thermostat device.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          device_id?: string;
          name?: string;
      }
      • Optionaldevice_id?: string

        ID of the desired thermostat device.

      • Optionalname?: string

        User-friendly name of the desired thermostat device.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        thermostat: {
            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")[];
            connected_account_id: string;
            created_at: string;
            custom_metadata: Record<string, string | boolean>;
            device_id: string;
            device_type:
                | "akuvox_lock"
                | "august_lock"
                | "brivo_access_point"
                | "butterflymx_panel"
                | "avigilon_alta_entry"
                | "doorking_lock"
                | "genie_door"
                | "igloo_lock"
                | "linear_lock"
                | "lockly_lock"
                | "kwikset_lock"
                | "nuki_lock"
                | "salto_lock"
                | "schlage_lock"
                | "seam_relay"
                | "smartthings_lock"
                | "wyze_lock"
                | "yale_lock"
                | "two_n_intercom"
                | "controlbyweb_device"
                | "ttlock_lock"
                | "igloohome_lock"
                | "hubitat_lock"
                | "four_suites_door"
                | "dormakaba_oracode_door"
                | "tedee_lock"
                | "akiles_lock"
                | "noiseaware_activity_zone"
                | "minut_sensor"
                | "ecobee_thermostat"
                | "nest_thermostat"
                | "honeywell_resideo_thermostat"
                | "ios_phone"
                | "android_phone"
                | "visionline_encoder"
                | "assa_abloy_vostio_encoder";
            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: {
                accessory_keypad?: {
                    battery?: {
                        level: ...;
                    };
                    is_connected: boolean;
                };
                appearance: {
                    name: string;
                };
                battery?: {
                    level: number;
                    status:
                        | "low"
                        | "full"
                        | "critical"
                        | "good";
                };
                battery_level?: number;
                currently_triggering_noise_threshold_ids?: string[];
                has_direct_power?: boolean;
                image_alt_text?: string;
                image_url?: string;
                manufacturer?: string;
                model: {
                    accessory_keypad_supported?: boolean;
                    can_connect_accessory_keypad?: boolean;
                    display_name: string;
                    has_built_in_keypad?: boolean;
                    manufacturer_display_name: string;
                    offline_access_codes_supported?: boolean;
                    online_access_codes_supported?: boolean;
                };
                name: string;
                noise_level_decibels?: number;
                offline_access_codes_enabled?: boolean;
                online: boolean;
                online_access_codes_enabled?: boolean;
                serial_number?: string;
                supports_accessory_keypad?: boolean;
                supports_offline_access_codes?: boolean;
            } & {
                assa_abloy_credential_service_metadata?: {
                    endpoints: {
                        endpoint_id: ...;
                        is_active: ...;
                    }[];
                    has_active_endpoint: boolean;
                };
            } & {
                akiles_metadata?: {
                    _member_group_id?: string;
                    gadget_id: string;
                    gadget_name: string;
                    product_name: string;
                };
                assa_abloy_vostio_metadata?: {
                    encoder_name: string;
                };
                august_metadata?: {
                    has_keypad: boolean;
                    house_id?: string;
                    house_name: string;
                    keypad_battery_level?: string;
                    lock_id: string;
                    lock_name: string;
                    model?: string;
                };
                avigilon_alta_metadata?: {
                    entry_name: string;
                    entry_relays_total_count: number;
                    org_name: string;
                    site_id: number;
                    site_name: string;
                    zone_id: number;
                    zone_name: string;
                };
                brivo_metadata?: {
                    device_name: string;
                };
                controlbyweb_metadata?: {
                    device_id: string;
                    device_name: string;
                    relay_name: null | string;
                };
                dormakaba_oracode_metadata?: {
                    device_id?: string | number;
                    door_id?: number;
                    door_is_wireless: boolean;
                    door_name: string;
                    iana_timezone?: string;
                    predefined_time_slots?: (...)[];
                    site_id: null | number;
                    site_name: string;
                };
                ecobee_metadata?: {
                    device_name: string;
                    ecobee_device_id: string;
                };
                four_suites_metadata?: {
                    device_id: number;
                    device_name: string;
                    reclose_delay_in_seconds: number;
                };
                genie_metadata?: {
                    device_name: string;
                    door_name: string;
                };
                honeywell_resideo_metadata?: {
                    device_name: string;
                    honeywell_resideo_device_id: string;
                };
                hubitat_metadata?: {
                    device_id: string;
                    device_label: string;
                    device_name: string;
                };
                igloo_metadata?: {
                    bridge_id: string;
                    device_id: string;
                    model?: string;
                };
                igloohome_metadata?: {
                    bridge_id?: string;
                    bridge_name?: string;
                    device_id: string;
                    device_name: string;
                    keypad_id?: string;
                };
                kwikset_metadata?: {
                    device_id: string;
                    device_name: string;
                    model_number: string;
                };
                lockly_metadata?: {
                    device_id: string;
                    device_name: string;
                    model?: string;
                };
                minut_metadata?: {
                    device_id: string;
                    device_name: string;
                    latest_sensor_values: {
                        accelerometer_z: {
                            time: ...;
                            value: ...;
                        };
                        humidity: {
                            time: ...;
                            value: ...;
                        };
                        pressure: {
                            time: ...;
                            value: ...;
                        };
                        sound: {
                            time: ...;
                            value: ...;
                        };
                        temperature: {
                            time: ...;
                            value: ...;
                        };
                    };
                };
                nest_metadata?: {
                    custom_name: string;
                    device_name: string;
                    display_name?: string;
                    nest_device_id: string;
                };
                noiseaware_metadata?: {
                    device_id: string;
                    device_model: "indoor" | "outdoor";
                    device_name: string;
                    noise_level_decibel: number;
                    noise_level_nrs: number;
                };
                nuki_metadata?: {
                    device_id: string;
                    device_name: string;
                    keypad_2_paired?: boolean;
                    keypad_battery_critical?: boolean;
                    keypad_paired?: boolean;
                };
                salto_ks_metadata?: {
                    battery_level: string;
                    customer_reference: string;
                    lock_id: string;
                    lock_type: string;
                    locked_state: string;
                    model?: string;
                };
                salto_metadata?: {
                    battery_level: string;
                    customer_reference: string;
                    lock_id: string;
                    lock_type: string;
                    locked_state: string;
                    model?: string;
                };
                schlage_metadata?: {
                    access_code_length: null | number;
                    device_id: string;
                    device_name: string;
                    model?: string;
                };
                seam_bridge_metadata?: {
                    device_num: number;
                    name: string;
                    unlock_method?: "bridge" | "doorking";
                };
                smartthings_metadata?: {
                    device_id: string;
                    device_name: string;
                    location_id?: string;
                    model?: string;
                };
                tedee_metadata?: {
                    bridge_id: number;
                    bridge_name: string;
                    device_id: number;
                    device_model: string;
                    device_name: string;
                    keypad_id?: number;
                    serial_number: string;
                };
                ttlock_metadata?: {
                    feature_value: string;
                    features: {
                        incomplete_keyboard_passcode: boolean;
                        lock_command: boolean;
                        passcode: boolean;
                        passcode_management: boolean;
                        unlock_via_gateway: boolean;
                    };
                    has_gateway?: boolean;
                    lock_alias: string;
                    lock_id: number;
                    wireless_keypads?: (...)[];
                };
                two_n_metadata?: {
                    device_id: number;
                    device_name: string;
                };
                visionline_metadata?: {
                    encoder_id: string;
                };
                wyze_metadata?: {
                    device_id: string;
                    device_info_model: string;
                    device_name: string;
                    keypad_uuid?: string;
                    locker_status_hardlock?: number;
                    product_model: string;
                    product_name: string;
                    product_type: string;
                };
            } & {
                _experimental_supported_code_from_access_codes_lengths?: number[];
                code_constraints?: ({
                    constraint_type: ...;
                } | {
                    constraint_type: ...;
                    max_length?: ...;
                    min_length?: ...;
                })[];
                door_open?: boolean;
                has_native_entry_events?: boolean;
                keypad_battery?: {
                    level: number;
                };
                locked?: boolean;
                max_active_codes_supported?: number;
                supported_code_lengths?: number[];
                supports_backup_access_code_pool?: boolean;
            } & {
                active_thermostat_schedule?: null | {
                    climate_preset_key: string;
                    created_at: string;
                    device_id: string;
                    ends_at: string;
                    errors?: any;
                    max_override_period_minutes: number;
                    name?: string;
                    starts_at: string;
                    thermostat_schedule_id: string;
                    unstable_is_override_allowed?: boolean;
                };
                available_climate_presets?: {
                    can_delete: boolean;
                    can_edit: boolean;
                    climate_preset_key: string;
                    cooling_set_point_celsius?: (...) | (...);
                    cooling_set_point_fahrenheit?: (...) | (...);
                    display_name: string;
                    fan_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    heating_set_point_celsius?: (...) | (...);
                    heating_set_point_fahrenheit?: (...) | (...);
                    hvac_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    manual_override_allowed: boolean;
                    name?: (...) | (...) | (...);
                }[];
                available_fan_mode_settings?: ("auto" | "on" | "circulate")[];
                available_hvac_mode_settings?: (
                    | "off"
                    | "heat"
                    | "cool"
                    | "heat_cool")[];
                current_climate_setting?: {
                    can_delete?: boolean;
                    can_edit?: boolean;
                    climate_preset_key?: string;
                    cooling_set_point_celsius?: number;
                    cooling_set_point_fahrenheit?: number;
                    display_name?: string;
                    fan_mode_setting?: "auto" | "on" | "circulate";
                    heating_set_point_celsius?: number;
                    heating_set_point_fahrenheit?: number;
                    hvac_mode_setting?:
                        | "off"
                        | "heat"
                        | "cool"
                        | "heat_cool";
                    manual_override_allowed?: boolean;
                    name?: null | string;
                };
                default_climate_setting?: {
                    can_delete?: boolean;
                    can_edit?: boolean;
                    climate_preset_key?: string;
                    cooling_set_point_celsius?: number;
                    cooling_set_point_fahrenheit?: number;
                    display_name?: string;
                    fan_mode_setting?: "auto" | "on" | "circulate";
                    heating_set_point_celsius?: number;
                    heating_set_point_fahrenheit?: number;
                    hvac_mode_setting?:
                        | "off"
                        | "heat"
                        | "cool"
                        | "heat_cool";
                    manual_override_allowed?: boolean;
                    name?: null | string;
                };
                fallback_climate_preset_key?: null | string;
                fan_mode_setting?: "auto" | "on" | "circulate";
                is_cooling?: boolean;
                is_fan_running?: boolean;
                is_heating?: boolean;
                is_temporary_manual_override_active?: boolean;
                max_cooling_set_point_celsius?: number;
                max_cooling_set_point_fahrenheit?: number;
                max_heating_set_point_celsius?: number;
                max_heating_set_point_fahrenheit?: number;
                min_cooling_set_point_celsius?: number;
                min_cooling_set_point_fahrenheit?: number;
                min_heating_cooling_delta_celsius?: number;
                min_heating_cooling_delta_fahrenheit?: number;
                min_heating_set_point_celsius?: number;
                min_heating_set_point_fahrenheit?: number;
                relative_humidity?: number;
                temperature_celsius?: number;
                temperature_fahrenheit?: number;
                temperature_threshold?: {
                    lower_limit_celsius: null | number;
                    lower_limit_fahrenheit: null | number;
                    upper_limit_celsius: null | number;
                    upper_limit_fahrenheit: null | number;
                };
            };
            warnings: {
                message: string;
                warning_code: string;
            }[];
            workspace_id: string;
        };
    }>, "thermostat">, "thermostat">

  • Parameters

    • Optionalbody: {
          device_id: string;
          heating_set_point_celsius?: number;
          heating_set_point_fahrenheit?: number;
          sync?: boolean;
      }
      • device_id: string

        ID of the desired thermostat device.

      • Optionalheating_set_point_celsius?: number

        Desired heating set point in °C. You must set one of the heating_set_point parameters.

      • Optionalheating_set_point_fahrenheit?: number

        Desired heating set point in °F. You must set one of the heating_set_point parameters.

      • Optionalsync?: boolean
    • options: Pick<SeamHttpRequestOptions, "waitForActionAttempt"> = {}

    Returns SeamHttpRequest<SetNonNullable<Required<{
        action_attempt:
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: {
                    acs_credential_on_encoder: {
                        card_number: null | string;
                        created_at: null | string;
                        ends_at: null | string;
                        is_issued: null | boolean;
                        starts_at: null | string;
                        visionline_metadata?: {
                            cancelled: boolean;
                            card_format: (...) | (...);
                            card_holder?: (...) | (...);
                            card_id: string;
                            common_acs_entrance_ids?: (...) | (...);
                            discarded: boolean;
                            expired: boolean;
                            guest_acs_entrance_ids?: (...) | (...);
                            number_of_issued_cards: number;
                            overridden?: (...) | (...) | (...);
                            overwritten: boolean;
                            pending_auto_update: boolean;
                        };
                    };
                    acs_credential_on_seam: null | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: true;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    } | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: false;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    };
                    warnings: {
                        warning_code: "acs_credential_on_encoder_out_of_sync";
                        warning_message: string;
                    }[];
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: {
                    message: string;
                    type: "uncategorized_error";
                } | {
                    message: string;
                    type: "action_attempt_expired";
                } | {
                    message: string;
                    type: "no_card_on_encoder";
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: true;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                } | {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: false;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error:
                    | {
                        message: string;
                        type: "uncategorized_error";
                    }
                    | {
                        message: string;
                        type: "action_attempt_expired";
                    }
                    | {
                        message: string;
                        type: "no_card_on_encoder";
                    }
                    | {
                        message: string;
                        type: "incompatible_card_format";
                    };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            };
    }>, "action_attempt">, "action_attempt">

  • Parameters

    • Optionalbody: {
          cooling_set_point_celsius?: number;
          cooling_set_point_fahrenheit?: number;
          device_id: string;
          heating_set_point_celsius?: number;
          heating_set_point_fahrenheit?: number;
          sync?: boolean;
      }
      • Optionalcooling_set_point_celsius?: number

        Desired cooling set point in °C. You must set one of the cooling_set_point parameters.

      • Optionalcooling_set_point_fahrenheit?: number

        Desired cooling set point in °F. You must set one of the cooling_set_point parameters.

      • device_id: string

        ID of the desired thermostat device.

      • Optionalheating_set_point_celsius?: number

        Desired heating set point in °C. You must set one of the heating_set_point parameters.

      • Optionalheating_set_point_fahrenheit?: number

        Desired heating set point in °F. You must set one of the heating_set_point parameters.

      • Optionalsync?: boolean
    • options: Pick<SeamHttpRequestOptions, "waitForActionAttempt"> = {}

    Returns SeamHttpRequest<SetNonNullable<Required<{
        action_attempt:
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: {
                    acs_credential_on_encoder: {
                        card_number: null | string;
                        created_at: null | string;
                        ends_at: null | string;
                        is_issued: null | boolean;
                        starts_at: null | string;
                        visionline_metadata?: {
                            cancelled: boolean;
                            card_format: (...) | (...);
                            card_holder?: (...) | (...);
                            card_id: string;
                            common_acs_entrance_ids?: (...) | (...);
                            discarded: boolean;
                            expired: boolean;
                            guest_acs_entrance_ids?: (...) | (...);
                            number_of_issued_cards: number;
                            overridden?: (...) | (...) | (...);
                            overwritten: boolean;
                            pending_auto_update: boolean;
                        };
                    };
                    acs_credential_on_seam: null | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: true;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    } | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: false;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    };
                    warnings: {
                        warning_code: "acs_credential_on_encoder_out_of_sync";
                        warning_message: string;
                    }[];
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: {
                    message: string;
                    type: "uncategorized_error";
                } | {
                    message: string;
                    type: "action_attempt_expired";
                } | {
                    message: string;
                    type: "no_card_on_encoder";
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: true;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                } | {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: false;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error:
                    | {
                        message: string;
                        type: "uncategorized_error";
                    }
                    | {
                        message: string;
                        type: "action_attempt_expired";
                    }
                    | {
                        message: string;
                        type: "no_card_on_encoder";
                    }
                    | {
                        message: string;
                        type: "incompatible_card_format";
                    };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            };
    }>, "action_attempt">, "action_attempt">

  • Parameters

    • Optionalbody: {
          connect_webview_id?: string;
          connected_account_id?: string;
          connected_account_ids?: string[];
          created_before?: Date;
          custom_metadata_has?: Record<string, string | boolean>;
          device_ids?: string[];
          device_type?:
              | "akuvox_lock"
              | "august_lock"
              | "brivo_access_point"
              | "butterflymx_panel"
              | "avigilon_alta_entry"
              | "doorking_lock"
              | "genie_door"
              | "igloo_lock"
              | "linear_lock"
              | "lockly_lock"
              | "kwikset_lock"
              | "nuki_lock"
              | "salto_lock"
              | "schlage_lock"
              | "seam_relay"
              | "smartthings_lock"
              | "wyze_lock"
              | "yale_lock"
              | "two_n_intercom"
              | "controlbyweb_device"
              | "ttlock_lock"
              | "igloohome_lock"
              | "hubitat_lock"
              | "four_suites_door"
              | "dormakaba_oracode_door"
              | "tedee_lock"
              | "akiles_lock"
              | "noiseaware_activity_zone"
              | "minut_sensor"
              | "ecobee_thermostat"
              | "nest_thermostat"
              | "honeywell_resideo_thermostat"
              | "ios_phone"
              | "android_phone"
              | "visionline_encoder"
              | "assa_abloy_vostio_encoder";
          device_types?: (
              | "akuvox_lock"
              | "august_lock"
              | "brivo_access_point"
              | "butterflymx_panel"
              | "avigilon_alta_entry"
              | "doorking_lock"
              | "genie_door"
              | "igloo_lock"
              | "linear_lock"
              | "lockly_lock"
              | "kwikset_lock"
              | "nuki_lock"
              | "salto_lock"
              | "schlage_lock"
              | "seam_relay"
              | "smartthings_lock"
              | "wyze_lock"
              | "yale_lock"
              | "two_n_intercom"
              | "controlbyweb_device"
              | "ttlock_lock"
              | "igloohome_lock"
              | "hubitat_lock"
              | "four_suites_door"
              | "dormakaba_oracode_door"
              | "tedee_lock"
              | "akiles_lock"
              | "noiseaware_activity_zone"
              | "minut_sensor"
              | "ecobee_thermostat"
              | "nest_thermostat"
              | "honeywell_resideo_thermostat"
              | "ios_phone"
              | "android_phone"
              | "visionline_encoder"
              | "assa_abloy_vostio_encoder")[];
          exclude_if?: (
              | "can_remotely_unlock"
              | "can_remotely_lock"
              | "can_program_offline_access_codes"
              | "can_program_online_access_codes"
              | "can_hvac_heat"
              | "can_hvac_cool"
              | "can_hvac_heat_cool"
              | "can_turn_off_hvac"
              | "can_simulate_removal"
              | "can_simulate_connection"
              | "can_simulate_disconnection")[];
          include_if?: (
              | "can_remotely_unlock"
              | "can_remotely_lock"
              | "can_program_offline_access_codes"
              | "can_program_online_access_codes"
              | "can_hvac_heat"
              | "can_hvac_cool"
              | "can_hvac_heat_cool"
              | "can_turn_off_hvac"
              | "can_simulate_removal"
              | "can_simulate_connection"
              | "can_simulate_disconnection")[];
          limit?: number;
          manufacturer?:
              | "linear"
              | "unknown"
              | "doorking"
              | "akuvox"
              | "august"
              | "avigilon_alta"
              | "brivo"
              | "butterflymx"
              | "schlage"
              | "smartthings"
              | "yale"
              | "genie"
              | "salto"
              | "lockly"
              | "ttlock"
              | "nuki"
              | "igloo"
              | "kwikset"
              | "minut"
              | "controlbyweb"
              | "nest"
              | "igloohome"
              | "ecobee"
              | "hubitat"
              | "four_suites"
              | "dormakaba_oracode"
              | "wyze"
              | "tedee"
              | "honeywell_resideo"
              | "akiles"
              | "seam"
              | "keywe"
              | "philia"
              | "samsung"
              | "two_n";
          user_identifier_key?: string;
      }
      • Optionalconnect_webview_id?: string

        ID of the Connect Webview by which to filter devices.

      • Optionalconnected_account_id?: string

        ID of the connected account by which to filter.

      • Optionalconnected_account_ids?: string[]

        Array of IDs of the connected accounts by which to filter devices.

      • Optionalcreated_before?: Date

        Date threshold for devices to return. If specified, returns only devices created before the specified date.

      • Optionalcustom_metadata_has?: Record<string, string | boolean>

        Set of key:value custom metadata pairs by which you want to filter devices.

      • Optionaldevice_ids?: string[]

        Array of device IDs by which to filter devices.

      • Optionaldevice_type?:
            | "akuvox_lock"
            | "august_lock"
            | "brivo_access_point"
            | "butterflymx_panel"
            | "avigilon_alta_entry"
            | "doorking_lock"
            | "genie_door"
            | "igloo_lock"
            | "linear_lock"
            | "lockly_lock"
            | "kwikset_lock"
            | "nuki_lock"
            | "salto_lock"
            | "schlage_lock"
            | "seam_relay"
            | "smartthings_lock"
            | "wyze_lock"
            | "yale_lock"
            | "two_n_intercom"
            | "controlbyweb_device"
            | "ttlock_lock"
            | "igloohome_lock"
            | "hubitat_lock"
            | "four_suites_door"
            | "dormakaba_oracode_door"
            | "tedee_lock"
            | "akiles_lock"
            | "noiseaware_activity_zone"
            | "minut_sensor"
            | "ecobee_thermostat"
            | "nest_thermostat"
            | "honeywell_resideo_thermostat"
            | "ios_phone"
            | "android_phone"
            | "visionline_encoder"
            | "assa_abloy_vostio_encoder"

        Device type by which to filter devices.

      • Optionaldevice_types?: (
            | "akuvox_lock"
            | "august_lock"
            | "brivo_access_point"
            | "butterflymx_panel"
            | "avigilon_alta_entry"
            | "doorking_lock"
            | "genie_door"
            | "igloo_lock"
            | "linear_lock"
            | "lockly_lock"
            | "kwikset_lock"
            | "nuki_lock"
            | "salto_lock"
            | "schlage_lock"
            | "seam_relay"
            | "smartthings_lock"
            | "wyze_lock"
            | "yale_lock"
            | "two_n_intercom"
            | "controlbyweb_device"
            | "ttlock_lock"
            | "igloohome_lock"
            | "hubitat_lock"
            | "four_suites_door"
            | "dormakaba_oracode_door"
            | "tedee_lock"
            | "akiles_lock"
            | "noiseaware_activity_zone"
            | "minut_sensor"
            | "ecobee_thermostat"
            | "nest_thermostat"
            | "honeywell_resideo_thermostat"
            | "ios_phone"
            | "android_phone"
            | "visionline_encoder"
            | "assa_abloy_vostio_encoder")[]

        Array of device types by which to filter devices.

      • Optionalexclude_if?: (
            | "can_remotely_unlock"
            | "can_remotely_lock"
            | "can_program_offline_access_codes"
            | "can_program_online_access_codes"
            | "can_hvac_heat"
            | "can_hvac_cool"
            | "can_hvac_heat_cool"
            | "can_turn_off_hvac"
            | "can_simulate_removal"
            | "can_simulate_connection"
            | "can_simulate_disconnection")[]
      • Optionalinclude_if?: (
            | "can_remotely_unlock"
            | "can_remotely_lock"
            | "can_program_offline_access_codes"
            | "can_program_online_access_codes"
            | "can_hvac_heat"
            | "can_hvac_cool"
            | "can_hvac_heat_cool"
            | "can_turn_off_hvac"
            | "can_simulate_removal"
            | "can_simulate_connection"
            | "can_simulate_disconnection")[]
      • Optionallimit?: number

        Numerical limit on the number of devices to return.

      • Optionalmanufacturer?:
            | "linear"
            | "unknown"
            | "doorking"
            | "akuvox"
            | "august"
            | "avigilon_alta"
            | "brivo"
            | "butterflymx"
            | "schlage"
            | "smartthings"
            | "yale"
            | "genie"
            | "salto"
            | "lockly"
            | "ttlock"
            | "nuki"
            | "igloo"
            | "kwikset"
            | "minut"
            | "controlbyweb"
            | "nest"
            | "igloohome"
            | "ecobee"
            | "hubitat"
            | "four_suites"
            | "dormakaba_oracode"
            | "wyze"
            | "tedee"
            | "honeywell_resideo"
            | "akiles"
            | "seam"
            | "keywe"
            | "philia"
            | "samsung"
            | "two_n"

        Manufacturer by which to filter devices.

      • Optionaluser_identifier_key?: string

        Your own internal user ID for the user by which to filter devices.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        devices: {
            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")[];
            connected_account_id: string;
            created_at: string;
            custom_metadata: Record<string, string | boolean>;
            device_id: string;
            device_type:
                | "akuvox_lock"
                | "august_lock"
                | "brivo_access_point"
                | "butterflymx_panel"
                | "avigilon_alta_entry"
                | "doorking_lock"
                | "genie_door"
                | "igloo_lock"
                | "linear_lock"
                | "lockly_lock"
                | "kwikset_lock"
                | "nuki_lock"
                | "salto_lock"
                | "schlage_lock"
                | "seam_relay"
                | "smartthings_lock"
                | "wyze_lock"
                | "yale_lock"
                | "two_n_intercom"
                | "controlbyweb_device"
                | "ttlock_lock"
                | "igloohome_lock"
                | "hubitat_lock"
                | "four_suites_door"
                | "dormakaba_oracode_door"
                | "tedee_lock"
                | "akiles_lock"
                | "noiseaware_activity_zone"
                | "minut_sensor"
                | "ecobee_thermostat"
                | "nest_thermostat"
                | "honeywell_resideo_thermostat"
                | "ios_phone"
                | "android_phone"
                | "visionline_encoder"
                | "assa_abloy_vostio_encoder";
            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: {
                accessory_keypad?: {
                    battery?: (...) | (...);
                    is_connected: boolean;
                };
                appearance: {
                    name: string;
                };
                battery?: {
                    level: number;
                    status:
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                };
                battery_level?: number;
                currently_triggering_noise_threshold_ids?: string[];
                has_direct_power?: boolean;
                image_alt_text?: string;
                image_url?: string;
                manufacturer?: string;
                model: {
                    accessory_keypad_supported?: boolean;
                    can_connect_accessory_keypad?: boolean;
                    display_name: string;
                    has_built_in_keypad?: boolean;
                    manufacturer_display_name: string;
                    offline_access_codes_supported?: boolean;
                    online_access_codes_supported?: boolean;
                };
                name: string;
                noise_level_decibels?: number;
                offline_access_codes_enabled?: boolean;
                online: boolean;
                online_access_codes_enabled?: boolean;
                serial_number?: string;
                supports_accessory_keypad?: boolean;
                supports_offline_access_codes?: boolean;
            } & {
                assa_abloy_credential_service_metadata?: {
                    endpoints: (...)[];
                    has_active_endpoint: boolean;
                };
            } & {
                akiles_metadata?: {
                    _member_group_id?: (...) | (...);
                    gadget_id: string;
                    gadget_name: string;
                    product_name: string;
                };
                assa_abloy_vostio_metadata?: {
                    encoder_name: string;
                };
                august_metadata?: {
                    has_keypad: boolean;
                    house_id?: (...) | (...);
                    house_name: string;
                    keypad_battery_level?: (...) | (...);
                    lock_id: string;
                    lock_name: string;
                    model?: (...) | (...);
                };
                avigilon_alta_metadata?: {
                    entry_name: string;
                    entry_relays_total_count: number;
                    org_name: string;
                    site_id: number;
                    site_name: string;
                    zone_id: number;
                    zone_name: string;
                };
                brivo_metadata?: {
                    device_name: string;
                };
                controlbyweb_metadata?: {
                    device_id: string;
                    device_name: string;
                    relay_name: (...) | (...);
                };
                dormakaba_oracode_metadata?: {
                    device_id?: (...) | (...) | (...);
                    door_id?: (...) | (...);
                    door_is_wireless: boolean;
                    door_name: string;
                    iana_timezone?: (...) | (...);
                    predefined_time_slots?: (...) | (...);
                    site_id: (...) | (...);
                    site_name: string;
                };
                ecobee_metadata?: {
                    device_name: string;
                    ecobee_device_id: string;
                };
                four_suites_metadata?: {
                    device_id: number;
                    device_name: string;
                    reclose_delay_in_seconds: number;
                };
                genie_metadata?: {
                    device_name: string;
                    door_name: string;
                };
                honeywell_resideo_metadata?: {
                    device_name: string;
                    honeywell_resideo_device_id: string;
                };
                hubitat_metadata?: {
                    device_id: string;
                    device_label: string;
                    device_name: string;
                };
                igloo_metadata?: {
                    bridge_id: string;
                    device_id: string;
                    model?: (...) | (...);
                };
                igloohome_metadata?: {
                    bridge_id?: (...) | (...);
                    bridge_name?: (...) | (...);
                    device_id: string;
                    device_name: string;
                    keypad_id?: (...) | (...);
                };
                kwikset_metadata?: {
                    device_id: string;
                    device_name: string;
                    model_number: string;
                };
                lockly_metadata?: {
                    device_id: string;
                    device_name: string;
                    model?: (...) | (...);
                };
                minut_metadata?: {
                    device_id: string;
                    device_name: string;
                    latest_sensor_values: {
                        accelerometer_z: ...;
                        humidity: ...;
                        pressure: ...;
                        sound: ...;
                        temperature: ...;
                    };
                };
                nest_metadata?: {
                    custom_name: string;
                    device_name: string;
                    display_name?: (...) | (...);
                    nest_device_id: string;
                };
                noiseaware_metadata?: {
                    device_id: string;
                    device_model: (...) | (...);
                    device_name: string;
                    noise_level_decibel: number;
                    noise_level_nrs: number;
                };
                nuki_metadata?: {
                    device_id: string;
                    device_name: string;
                    keypad_2_paired?: (...) | (...) | (...);
                    keypad_battery_critical?: (...) | (...) | (...);
                    keypad_paired?: (...) | (...) | (...);
                };
                salto_ks_metadata?: {
                    battery_level: string;
                    customer_reference: string;
                    lock_id: string;
                    lock_type: string;
                    locked_state: string;
                    model?: (...) | (...);
                };
                salto_metadata?: {
                    battery_level: string;
                    customer_reference: string;
                    lock_id: string;
                    lock_type: string;
                    locked_state: string;
                    model?: (...) | (...);
                };
                schlage_metadata?: {
                    access_code_length: (...) | (...);
                    device_id: string;
                    device_name: string;
                    model?: (...) | (...);
                };
                seam_bridge_metadata?: {
                    device_num: number;
                    name: string;
                    unlock_method?: (...) | (...) | (...);
                };
                smartthings_metadata?: {
                    device_id: string;
                    device_name: string;
                    location_id?: (...) | (...);
                    model?: (...) | (...);
                };
                tedee_metadata?: {
                    bridge_id: number;
                    bridge_name: string;
                    device_id: number;
                    device_model: string;
                    device_name: string;
                    keypad_id?: (...) | (...);
                    serial_number: string;
                };
                ttlock_metadata?: {
                    feature_value: string;
                    features: {
                        incomplete_keyboard_passcode: ...;
                        lock_command: ...;
                        passcode: ...;
                        passcode_management: ...;
                        unlock_via_gateway: ...;
                    };
                    has_gateway?: (...) | (...) | (...);
                    lock_alias: string;
                    lock_id: number;
                    wireless_keypads?: (...) | (...);
                };
                two_n_metadata?: {
                    device_id: number;
                    device_name: string;
                };
                visionline_metadata?: {
                    encoder_id: string;
                };
                wyze_metadata?: {
                    device_id: string;
                    device_info_model: string;
                    device_name: string;
                    keypad_uuid?: (...) | (...);
                    locker_status_hardlock?: (...) | (...);
                    product_model: string;
                    product_name: string;
                    product_type: string;
                };
            } & {
                _experimental_supported_code_from_access_codes_lengths?: number[];
                code_constraints?: ((...) | (...))[];
                door_open?: boolean;
                has_native_entry_events?: boolean;
                keypad_battery?: {
                    level: number;
                };
                locked?: boolean;
                max_active_codes_supported?: number;
                supported_code_lengths?: number[];
                supports_backup_access_code_pool?: boolean;
            } & {
                active_thermostat_schedule?: null | {
                    climate_preset_key: string;
                    created_at: string;
                    device_id: string;
                    ends_at: string;
                    errors?: any;
                    max_override_period_minutes: number;
                    name?: (...) | (...);
                    starts_at: string;
                    thermostat_schedule_id: string;
                    unstable_is_override_allowed?: (...) | (...) | (...);
                };
                available_climate_presets?: {
                    can_delete: ...;
                    can_edit: ...;
                    climate_preset_key: ...;
                    cooling_set_point_celsius?: ...;
                    cooling_set_point_fahrenheit?: ...;
                    display_name: ...;
                    fan_mode_setting?: ...;
                    heating_set_point_celsius?: ...;
                    heating_set_point_fahrenheit?: ...;
                    hvac_mode_setting?: ...;
                    manual_override_allowed: ...;
                    name?: ...;
                }[];
                available_fan_mode_settings?: ((...) | (...) | (...))[];
                available_hvac_mode_settings?: (
                    | (...)
                    | (...)
                    | (...)
                    | (...))[];
                current_climate_setting?: {
                    can_delete?: (...) | (...) | (...);
                    can_edit?: (...) | (...) | (...);
                    climate_preset_key?: (...) | (...);
                    cooling_set_point_celsius?: (...) | (...);
                    cooling_set_point_fahrenheit?: (...) | (...);
                    display_name?: (...) | (...);
                    fan_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    heating_set_point_celsius?: (...) | (...);
                    heating_set_point_fahrenheit?: (...) | (...);
                    hvac_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    manual_override_allowed?: (...) | (...) | (...);
                    name?: (...) | (...) | (...);
                };
                default_climate_setting?: {
                    can_delete?: (...) | (...) | (...);
                    can_edit?: (...) | (...) | (...);
                    climate_preset_key?: (...) | (...);
                    cooling_set_point_celsius?: (...) | (...);
                    cooling_set_point_fahrenheit?: (...) | (...);
                    display_name?: (...) | (...);
                    fan_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    heating_set_point_celsius?: (...) | (...);
                    heating_set_point_fahrenheit?: (...) | (...);
                    hvac_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    manual_override_allowed?: (...) | (...) | (...);
                    name?: (...) | (...) | (...);
                };
                fallback_climate_preset_key?: null | string;
                fan_mode_setting?: "auto" | "on" | "circulate";
                is_cooling?: boolean;
                is_fan_running?: boolean;
                is_heating?: boolean;
                is_temporary_manual_override_active?: boolean;
                max_cooling_set_point_celsius?: number;
                max_cooling_set_point_fahrenheit?: number;
                max_heating_set_point_celsius?: number;
                max_heating_set_point_fahrenheit?: number;
                min_cooling_set_point_celsius?: number;
                min_cooling_set_point_fahrenheit?: number;
                min_heating_cooling_delta_celsius?: number;
                min_heating_cooling_delta_fahrenheit?: number;
                min_heating_set_point_celsius?: number;
                min_heating_set_point_fahrenheit?: number;
                relative_humidity?: number;
                temperature_celsius?: number;
                temperature_fahrenheit?: number;
                temperature_threshold?: {
                    lower_limit_celsius: (...) | (...);
                    lower_limit_fahrenheit: (...) | (...);
                    upper_limit_celsius: (...) | (...);
                    upper_limit_fahrenheit: (...) | (...);
                };
            };
            warnings: {
                message: string;
                warning_code: string;
            }[];
            workspace_id: string;
        }[];
        thermostats: {
            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")[];
            connected_account_id: string;
            created_at: string;
            custom_metadata: Record<string, string | boolean>;
            device_id: string;
            device_type:
                | "akuvox_lock"
                | "august_lock"
                | "brivo_access_point"
                | "butterflymx_panel"
                | "avigilon_alta_entry"
                | "doorking_lock"
                | "genie_door"
                | "igloo_lock"
                | "linear_lock"
                | "lockly_lock"
                | "kwikset_lock"
                | "nuki_lock"
                | "salto_lock"
                | "schlage_lock"
                | "seam_relay"
                | "smartthings_lock"
                | "wyze_lock"
                | "yale_lock"
                | "two_n_intercom"
                | "controlbyweb_device"
                | "ttlock_lock"
                | "igloohome_lock"
                | "hubitat_lock"
                | "four_suites_door"
                | "dormakaba_oracode_door"
                | "tedee_lock"
                | "akiles_lock"
                | "noiseaware_activity_zone"
                | "minut_sensor"
                | "ecobee_thermostat"
                | "nest_thermostat"
                | "honeywell_resideo_thermostat"
                | "ios_phone"
                | "android_phone"
                | "visionline_encoder"
                | "assa_abloy_vostio_encoder";
            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: {
                accessory_keypad?: {
                    battery?: (...) | (...);
                    is_connected: boolean;
                };
                appearance: {
                    name: string;
                };
                battery?: {
                    level: number;
                    status:
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                };
                battery_level?: number;
                currently_triggering_noise_threshold_ids?: string[];
                has_direct_power?: boolean;
                image_alt_text?: string;
                image_url?: string;
                manufacturer?: string;
                model: {
                    accessory_keypad_supported?: boolean;
                    can_connect_accessory_keypad?: boolean;
                    display_name: string;
                    has_built_in_keypad?: boolean;
                    manufacturer_display_name: string;
                    offline_access_codes_supported?: boolean;
                    online_access_codes_supported?: boolean;
                };
                name: string;
                noise_level_decibels?: number;
                offline_access_codes_enabled?: boolean;
                online: boolean;
                online_access_codes_enabled?: boolean;
                serial_number?: string;
                supports_accessory_keypad?: boolean;
                supports_offline_access_codes?: boolean;
            } & {
                assa_abloy_credential_service_metadata?: {
                    endpoints: (...)[];
                    has_active_endpoint: boolean;
                };
            } & {
                akiles_metadata?: {
                    _member_group_id?: (...) | (...);
                    gadget_id: string;
                    gadget_name: string;
                    product_name: string;
                };
                assa_abloy_vostio_metadata?: {
                    encoder_name: string;
                };
                august_metadata?: {
                    has_keypad: boolean;
                    house_id?: (...) | (...);
                    house_name: string;
                    keypad_battery_level?: (...) | (...);
                    lock_id: string;
                    lock_name: string;
                    model?: (...) | (...);
                };
                avigilon_alta_metadata?: {
                    entry_name: string;
                    entry_relays_total_count: number;
                    org_name: string;
                    site_id: number;
                    site_name: string;
                    zone_id: number;
                    zone_name: string;
                };
                brivo_metadata?: {
                    device_name: string;
                };
                controlbyweb_metadata?: {
                    device_id: string;
                    device_name: string;
                    relay_name: (...) | (...);
                };
                dormakaba_oracode_metadata?: {
                    device_id?: (...) | (...) | (...);
                    door_id?: (...) | (...);
                    door_is_wireless: boolean;
                    door_name: string;
                    iana_timezone?: (...) | (...);
                    predefined_time_slots?: (...) | (...);
                    site_id: (...) | (...);
                    site_name: string;
                };
                ecobee_metadata?: {
                    device_name: string;
                    ecobee_device_id: string;
                };
                four_suites_metadata?: {
                    device_id: number;
                    device_name: string;
                    reclose_delay_in_seconds: number;
                };
                genie_metadata?: {
                    device_name: string;
                    door_name: string;
                };
                honeywell_resideo_metadata?: {
                    device_name: string;
                    honeywell_resideo_device_id: string;
                };
                hubitat_metadata?: {
                    device_id: string;
                    device_label: string;
                    device_name: string;
                };
                igloo_metadata?: {
                    bridge_id: string;
                    device_id: string;
                    model?: (...) | (...);
                };
                igloohome_metadata?: {
                    bridge_id?: (...) | (...);
                    bridge_name?: (...) | (...);
                    device_id: string;
                    device_name: string;
                    keypad_id?: (...) | (...);
                };
                kwikset_metadata?: {
                    device_id: string;
                    device_name: string;
                    model_number: string;
                };
                lockly_metadata?: {
                    device_id: string;
                    device_name: string;
                    model?: (...) | (...);
                };
                minut_metadata?: {
                    device_id: string;
                    device_name: string;
                    latest_sensor_values: {
                        accelerometer_z: ...;
                        humidity: ...;
                        pressure: ...;
                        sound: ...;
                        temperature: ...;
                    };
                };
                nest_metadata?: {
                    custom_name: string;
                    device_name: string;
                    display_name?: (...) | (...);
                    nest_device_id: string;
                };
                noiseaware_metadata?: {
                    device_id: string;
                    device_model: (...) | (...);
                    device_name: string;
                    noise_level_decibel: number;
                    noise_level_nrs: number;
                };
                nuki_metadata?: {
                    device_id: string;
                    device_name: string;
                    keypad_2_paired?: (...) | (...) | (...);
                    keypad_battery_critical?: (...) | (...) | (...);
                    keypad_paired?: (...) | (...) | (...);
                };
                salto_ks_metadata?: {
                    battery_level: string;
                    customer_reference: string;
                    lock_id: string;
                    lock_type: string;
                    locked_state: string;
                    model?: (...) | (...);
                };
                salto_metadata?: {
                    battery_level: string;
                    customer_reference: string;
                    lock_id: string;
                    lock_type: string;
                    locked_state: string;
                    model?: (...) | (...);
                };
                schlage_metadata?: {
                    access_code_length: (...) | (...);
                    device_id: string;
                    device_name: string;
                    model?: (...) | (...);
                };
                seam_bridge_metadata?: {
                    device_num: number;
                    name: string;
                    unlock_method?: (...) | (...) | (...);
                };
                smartthings_metadata?: {
                    device_id: string;
                    device_name: string;
                    location_id?: (...) | (...);
                    model?: (...) | (...);
                };
                tedee_metadata?: {
                    bridge_id: number;
                    bridge_name: string;
                    device_id: number;
                    device_model: string;
                    device_name: string;
                    keypad_id?: (...) | (...);
                    serial_number: string;
                };
                ttlock_metadata?: {
                    feature_value: string;
                    features: {
                        incomplete_keyboard_passcode: ...;
                        lock_command: ...;
                        passcode: ...;
                        passcode_management: ...;
                        unlock_via_gateway: ...;
                    };
                    has_gateway?: (...) | (...) | (...);
                    lock_alias: string;
                    lock_id: number;
                    wireless_keypads?: (...) | (...);
                };
                two_n_metadata?: {
                    device_id: number;
                    device_name: string;
                };
                visionline_metadata?: {
                    encoder_id: string;
                };
                wyze_metadata?: {
                    device_id: string;
                    device_info_model: string;
                    device_name: string;
                    keypad_uuid?: (...) | (...);
                    locker_status_hardlock?: (...) | (...);
                    product_model: string;
                    product_name: string;
                    product_type: string;
                };
            } & {
                _experimental_supported_code_from_access_codes_lengths?: number[];
                code_constraints?: ((...) | (...))[];
                door_open?: boolean;
                has_native_entry_events?: boolean;
                keypad_battery?: {
                    level: number;
                };
                locked?: boolean;
                max_active_codes_supported?: number;
                supported_code_lengths?: number[];
                supports_backup_access_code_pool?: boolean;
            } & {
                active_thermostat_schedule?: null | {
                    climate_preset_key: string;
                    created_at: string;
                    device_id: string;
                    ends_at: string;
                    errors?: any;
                    max_override_period_minutes: number;
                    name?: (...) | (...);
                    starts_at: string;
                    thermostat_schedule_id: string;
                    unstable_is_override_allowed?: (...) | (...) | (...);
                };
                available_climate_presets?: {
                    can_delete: ...;
                    can_edit: ...;
                    climate_preset_key: ...;
                    cooling_set_point_celsius?: ...;
                    cooling_set_point_fahrenheit?: ...;
                    display_name: ...;
                    fan_mode_setting?: ...;
                    heating_set_point_celsius?: ...;
                    heating_set_point_fahrenheit?: ...;
                    hvac_mode_setting?: ...;
                    manual_override_allowed: ...;
                    name?: ...;
                }[];
                available_fan_mode_settings?: ((...) | (...) | (...))[];
                available_hvac_mode_settings?: (
                    | (...)
                    | (...)
                    | (...)
                    | (...))[];
                current_climate_setting?: {
                    can_delete?: (...) | (...) | (...);
                    can_edit?: (...) | (...) | (...);
                    climate_preset_key?: (...) | (...);
                    cooling_set_point_celsius?: (...) | (...);
                    cooling_set_point_fahrenheit?: (...) | (...);
                    display_name?: (...) | (...);
                    fan_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    heating_set_point_celsius?: (...) | (...);
                    heating_set_point_fahrenheit?: (...) | (...);
                    hvac_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    manual_override_allowed?: (...) | (...) | (...);
                    name?: (...) | (...) | (...);
                };
                default_climate_setting?: {
                    can_delete?: (...) | (...) | (...);
                    can_edit?: (...) | (...) | (...);
                    climate_preset_key?: (...) | (...);
                    cooling_set_point_celsius?: (...) | (...);
                    cooling_set_point_fahrenheit?: (...) | (...);
                    display_name?: (...) | (...);
                    fan_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    heating_set_point_celsius?: (...) | (...);
                    heating_set_point_fahrenheit?: (...) | (...);
                    hvac_mode_setting?:
                        | (...)
                        | (...)
                        | (...)
                        | (...)
                        | (...);
                    manual_override_allowed?: (...) | (...) | (...);
                    name?: (...) | (...) | (...);
                };
                fallback_climate_preset_key?: null | string;
                fan_mode_setting?: "auto" | "on" | "circulate";
                is_cooling?: boolean;
                is_fan_running?: boolean;
                is_heating?: boolean;
                is_temporary_manual_override_active?: boolean;
                max_cooling_set_point_celsius?: number;
                max_cooling_set_point_fahrenheit?: number;
                max_heating_set_point_celsius?: number;
                max_heating_set_point_fahrenheit?: number;
                min_cooling_set_point_celsius?: number;
                min_cooling_set_point_fahrenheit?: number;
                min_heating_cooling_delta_celsius?: number;
                min_heating_cooling_delta_fahrenheit?: number;
                min_heating_set_point_celsius?: number;
                min_heating_set_point_fahrenheit?: number;
                relative_humidity?: number;
                temperature_celsius?: number;
                temperature_fahrenheit?: number;
                temperature_threshold?: {
                    lower_limit_celsius: (...) | (...);
                    lower_limit_fahrenheit: (...) | (...);
                    upper_limit_celsius: (...) | (...);
                    upper_limit_fahrenheit: (...) | (...);
                };
            };
            warnings: {
                message: string;
                warning_code: string;
            }[];
            workspace_id: string;
        }[];
    }>, "thermostats" | "devices">, "devices">

  • Parameters

    • Optionalbody: {
          device_id: string;
          sync?: boolean;
      }
      • device_id: string

        ID of the desired thermostat device.

      • Optionalsync?: boolean
    • options: Pick<SeamHttpRequestOptions, "waitForActionAttempt"> = {}

    Returns SeamHttpRequest<SetNonNullable<Required<{
        action_attempt:
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: {
                    acs_credential_on_encoder: {
                        card_number: null | string;
                        created_at: null | string;
                        ends_at: null | string;
                        is_issued: null | boolean;
                        starts_at: null | string;
                        visionline_metadata?: {
                            cancelled: boolean;
                            card_format: (...) | (...);
                            card_holder?: (...) | (...);
                            card_id: string;
                            common_acs_entrance_ids?: (...) | (...);
                            discarded: boolean;
                            expired: boolean;
                            guest_acs_entrance_ids?: (...) | (...);
                            number_of_issued_cards: number;
                            overridden?: (...) | (...) | (...);
                            overwritten: boolean;
                            pending_auto_update: boolean;
                        };
                    };
                    acs_credential_on_seam: null | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: true;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    } | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: false;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    };
                    warnings: {
                        warning_code: "acs_credential_on_encoder_out_of_sync";
                        warning_message: string;
                    }[];
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: {
                    message: string;
                    type: "uncategorized_error";
                } | {
                    message: string;
                    type: "action_attempt_expired";
                } | {
                    message: string;
                    type: "no_card_on_encoder";
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: true;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                } | {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: false;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error:
                    | {
                        message: string;
                        type: "uncategorized_error";
                    }
                    | {
                        message: string;
                        type: "action_attempt_expired";
                    }
                    | {
                        message: string;
                        type: "no_card_on_encoder";
                    }
                    | {
                        message: string;
                        type: "incompatible_card_format";
                    };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            };
    }>, "action_attempt">, "action_attempt">

  • Parameters

    • Optionalbody: {
          climate_preset_key: string;
          device_id: string;
      }
      • climate_preset_key: string

        Climate preset key of the desired climate preset.

      • device_id: string

        ID of the desired thermostat device.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          device_id: string;
          fan_mode?: "auto" | "on" | "circulate";
          fan_mode_setting?: "auto" | "on" | "circulate";
          sync?: boolean;
      }
      • device_id: string
      • Optionalfan_mode?: "auto" | "on" | "circulate"

        Use fan_mode_setting instead.

      • Optionalfan_mode_setting?: "auto" | "on" | "circulate"

        Desired fan mode setting for the thermostat.

      • Optionalsync?: boolean
    • options: Pick<SeamHttpRequestOptions, "waitForActionAttempt"> = {}

    Returns SeamHttpRequest<SetNonNullable<Required<{
        action_attempt:
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "LOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UNLOCK_DOOR";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: null;
                result: {
                    acs_credential_on_encoder: {
                        card_number: null | string;
                        created_at: null | string;
                        ends_at: null | string;
                        is_issued: null | boolean;
                        starts_at: null | string;
                        visionline_metadata?: {
                            cancelled: boolean;
                            card_format: (...) | (...);
                            card_holder?: (...) | (...);
                            card_id: string;
                            common_acs_entrance_ids?: (...) | (...);
                            discarded: boolean;
                            expired: boolean;
                            guest_acs_entrance_ids?: (...) | (...);
                            number_of_issued_cards: number;
                            overridden?: (...) | (...) | (...);
                            overwritten: boolean;
                            pending_auto_update: boolean;
                        };
                    };
                    acs_credential_on_seam: null | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: true;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    } | {
                        access_method: "code" | "card" | "mobile_key";
                        acs_credential_id: string;
                        acs_credential_pool_id?: string;
                        acs_system_id: string;
                        acs_user_id?: string;
                        card_number?: null | string;
                        code?: null | string;
                        created_at: string;
                        display_name: string;
                        ends_at?: string;
                        errors: {
                            error_code: ...;
                            message: ...;
                        }[];
                        external_type?:
                            | "pti_card"
                            | "brivo_credential"
                            | "hid_credential"
                            | "visionline_card"
                            | "salto_ks_credential";
                        external_type_display_name?: string;
                        is_issued?: boolean;
                        is_latest_desired_state_synced_with_provider?: boolean;
                        is_managed: false;
                        is_multi_phone_sync_credential?: boolean;
                        issued_at?: null | string;
                        latest_desired_state_synced_with_provider_at?: string;
                        parent_acs_credential_id?: string;
                        starts_at?: string;
                        visionline_metadata?: {
                            auto_join?: ...;
                            card_function_type: ...;
                            card_id?: ...;
                            common_acs_entrance_ids?: ...;
                            credential_id?: ...;
                            guest_acs_entrance_ids?: ...;
                            is_valid?: ...;
                            joiner_acs_credential_ids?: ...;
                        };
                        warnings: {
                            message: ...;
                            warning_code: ...;
                        }[];
                        workspace_id: string;
                    };
                    warnings: {
                        warning_code: "acs_credential_on_encoder_out_of_sync";
                        warning_message: string;
                    }[];
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SCAN_CREDENTIAL";
                error: {
                    message: string;
                    type: "uncategorized_error";
                } | {
                    message: string;
                    type: "action_attempt_expired";
                } | {
                    message: string;
                    type: "no_card_on_encoder";
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error: null;
                result: {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: true;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                } | {
                    access_method: "code" | "card" | "mobile_key";
                    acs_credential_id: string;
                    acs_credential_pool_id?: string;
                    acs_system_id: string;
                    acs_user_id?: string;
                    card_number?: null | string;
                    code?: null | string;
                    created_at: string;
                    display_name: string;
                    ends_at?: string;
                    errors: {
                        error_code: string;
                        message: string;
                    }[];
                    external_type?:
                        | "pti_card"
                        | "brivo_credential"
                        | "hid_credential"
                        | "visionline_card"
                        | "salto_ks_credential";
                    external_type_display_name?: string;
                    is_issued?: boolean;
                    is_latest_desired_state_synced_with_provider?: boolean;
                    is_managed: false;
                    is_multi_phone_sync_credential?: boolean;
                    issued_at?: null | string;
                    latest_desired_state_synced_with_provider_at?: string;
                    parent_acs_credential_id?: string;
                    starts_at?: string;
                    visionline_metadata?: {
                        auto_join?: (...) | (...) | (...);
                        card_function_type: (...) | (...);
                        card_id?: (...) | (...);
                        common_acs_entrance_ids?: (...) | (...);
                        credential_id?: (...) | (...);
                        guest_acs_entrance_ids?: (...) | (...);
                        is_valid?: (...) | (...) | (...);
                        joiner_acs_credential_ids?: (...) | (...);
                    };
                    warnings: {
                        message: string;
                        warning_code: string;
                    }[];
                    workspace_id: string;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ENCODE_CREDENTIAL";
                error:
                    | {
                        message: string;
                        type: "uncategorized_error";
                    }
                    | {
                        message: string;
                        type: "action_attempt_expired";
                    }
                    | {
                        message: string;
                        type: "no_card_on_encoder";
                    }
                    | {
                        message: string;
                        type: "incompatible_card_format";
                    };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "RESET_SANDBOX_WORKSPACE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_HEAT_COOL";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_FAN_MODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SET_THERMOSTAT_OFF";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "ACTIVATE_CLIMATE_PRESET";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "SYNC_ACCESS_CODES";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: null;
                result: {
                    access_code?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_ACCESS_CODE";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "CREATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: null;
                result: {};
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "DELETE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: null;
                status: "pending";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: null;
                result: {
                    noise_threshold?: any;
                };
                status: "success";
            }
            | {
                action_attempt_id: string;
                action_type: "UPDATE_NOISE_THRESHOLD";
                error: {
                    message: string;
                    type: string;
                };
                result: null;
                status: "error";
            };
    }>, "action_attempt">, "action_attempt">

  • Parameters

    • Optionalbody: {
          device_id: string;
          lower_limit_celsius?: null | number;
          lower_limit_fahrenheit?: null | number;
          upper_limit_celsius?: null | number;
          upper_limit_fahrenheit?: null | number;
      }
      • device_id: string

        ID of the desired thermostat device.

      • Optionallower_limit_celsius?: null | number

        Lower temperature limit in in °C. Seam alerts you if the reported temperature is lower than this value. You can specify either lower_limit but not both.

      • Optionallower_limit_fahrenheit?: null | number

        Lower temperature limit in in °F. Seam alerts you if the reported temperature is lower than this value. You can specify either lower_limit but not both.

      • Optionalupper_limit_celsius?: null | number

        Upper temperature limit in in °C. Seam alerts you if the reported temperature is higher than this value. You can specify either upper_limit but not both.

      • Optionalupper_limit_fahrenheit?: null | number

        Upper temperature limit in in °C. Seam alerts you if the reported temperature is higher than this value. You can specify either upper_limit but not both.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • clientSessionToken: string

    Returns Promise<void>

  • Parameters

    • Optionalbody: {
          climate_preset_key: string;
          cooling_set_point_celsius?: number;
          cooling_set_point_fahrenheit?: number;
          device_id: string;
          fan_mode_setting?: "auto" | "on" | "circulate";
          heating_set_point_celsius?: number;
          heating_set_point_fahrenheit?: number;
          hvac_mode_setting?:
              | "off"
              | "heat"
              | "cool"
              | "heat_cool";
          manual_override_allowed: boolean;
          name?: null | string;
      }
      • climate_preset_key: string

        Unique key to identify the climate preset.

      • Optionalcooling_set_point_celsius?: number

        Temperature to which the thermostat should cool (in °C). See also Set Points.

      • Optionalcooling_set_point_fahrenheit?: number

        Temperature to which the thermostat should cool (in °F).

      • device_id: string

        ID of the desired thermostat device.

      • Optionalfan_mode_setting?: "auto" | "on" | "circulate"

        Desired fan mode setting, such as on, auto, or circulate.

      • Optionalheating_set_point_celsius?: number

        Temperature to which the thermostat should heat (in °C).

      • Optionalheating_set_point_fahrenheit?: number

        Temperature to which the thermostat should heat (in °F).

      • Optionalhvac_mode_setting?:
            | "off"
            | "heat"
            | "cool"
            | "heat_cool"

        Desired HVAC mode setting, such as heat, cool, heat_cool, or off.

      • manual_override_allowed: boolean

        Indicates whether a person at the thermostat can change the thermostat's settings.

        Use 'thermostat_schedule.is_override_allowed'

      • Optionalname?: null | string

        User-friendly name to identify the climate preset.

    Returns SeamHttpRequest<void, undefined>