Class SeamHttpAccessCodesUnmanaged

Constructors

Properties

client: AxiosInstance
defaults: Required<SeamHttpRequestOptions>

Methods

  • Parameters

    • Optionalbody: {
          access_code_id: string;
          allow_external_modification?: boolean;
          force?: boolean;
          is_external_modification_allowed?: boolean;
          sync?: boolean;
      }
      • access_code_id: string
      • Optionalallow_external_modification?: boolean
      • Optionalforce?: boolean
      • Optionalis_external_modification_allowed?: boolean
      • Optionalsync?: boolean

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          access_code_id: string;
          sync?: boolean;
      }
      • access_code_id: string
      • Optionalsync?: boolean

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          access_code_id?: string;
          code?: string;
          device_id?: string;
      }
      • Optionalaccess_code_id?: string
      • Optionalcode?: string
      • Optionaldevice_id?: string

    Returns SeamHttpRequest<SetNonNullable<Required<{
        access_code: {
            access_code_id: string;
            code: null | string;
            created_at: string;
            device_id: string;
            ends_at?: null | string;
            errors: (
                | {
                    error_code: "smartthings_failed_to_set_access_code";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "smartthings_failed_to_set_after_multiple_retries";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "failed_to_set_on_device";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "failed_to_remove_from_device";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "duplicate_code_on_device";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "duplicate_code_attempt_prevented";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "igloohome_bridge_too_many_pending_jobs";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "igloohome_bridge_offline";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "igloohome_offline_access_code_no_variance_available";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "kwikset_unable_to_confirm_code";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "kwikset_unable_to_confirm_deletion";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "code_modified_external_to_seam";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "august_lock_invalid_code_length";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "august_device_programming_delay";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "august_device_slots_full";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "august_lock_missing_keypad";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "salto_site_user_not_subscribed";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "hubitat_device_programming_delay";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "hubitat_no_free_positions_available";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "device_offline";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "device_removed";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "account_disconnected";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "hub_disconnected";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "device_disconnected";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "empty_backup_access_code_pool";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "august_lock_not_authorized";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "august_lock_missing_bridge";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "salto_site_user_limit_reached";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "ttlock_lock_not_paired_to_gateway";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "missing_device_credentials";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "auxiliary_heat_running";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "subscription_required";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "account_disconnected";
                    is_connected_account_error: true;
                    message: string;
                }
                | {
                    error_code: "invalid_credentials";
                    is_connected_account_error: true;
                    message: string;
                })[];
            is_managed: false;
            name: null | string;
            starts_at?: null | string;
            status: "set";
            type: "time_bound" | "ongoing";
            warnings: (
                | {
                    message: string;
                    warning_code: "smartthings_failed_to_set_access_code";
                }
                | {
                    message: string;
                    warning_code: "schlage_detected_duplicate";
                }
                | {
                    message: string;
                    warning_code: "schlage_creation_outage";
                }
                | {
                    message: string;
                    warning_code: "code_modified_external_to_seam";
                }
                | {
                    message: string;
                    warning_code: "delay_in_setting_on_device";
                }
                | {
                    message: string;
                    warning_code: "delay_in_removing_from_device";
                }
                | {
                    message: string;
                    warning_code: "third_party_integration_detected";
                }
                | {
                    message: string;
                    warning_code: "august_device_programming_delay";
                }
                | {
                    message: string;
                    warning_code: "igloo_algopin_must_be_used_within_24_hours";
                }
                | {
                    message: string;
                    warning_code: "management_transferred";
                })[];
        };
    }>, "access_code">, "access_code">

  • Parameters

    • Optionalbody: {
          device_id: string;
          user_identifier_key?: string;
      }
      • device_id: string
      • Optionaluser_identifier_key?: string

    Returns SeamHttpRequest<SetNonNullable<Required<{
        access_codes: {
            access_code_id: string;
            code: null | string;
            created_at: string;
            device_id: string;
            ends_at?: null | string;
            errors: (
                | {
                    error_code: "smartthings_failed_to_set_access_code";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "smartthings_failed_to_set_after_multiple_retries";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "failed_to_set_on_device";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "failed_to_remove_from_device";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "duplicate_code_on_device";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "duplicate_code_attempt_prevented";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "igloohome_bridge_too_many_pending_jobs";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "igloohome_bridge_offline";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "igloohome_offline_access_code_no_variance_available";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "kwikset_unable_to_confirm_code";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "kwikset_unable_to_confirm_deletion";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "code_modified_external_to_seam";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "august_lock_invalid_code_length";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "august_device_programming_delay";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "august_device_slots_full";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "august_lock_missing_keypad";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "salto_site_user_not_subscribed";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "hubitat_device_programming_delay";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "hubitat_no_free_positions_available";
                    is_access_code_error: true;
                    message: string;
                }
                | {
                    error_code: "device_offline";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "device_removed";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "account_disconnected";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "hub_disconnected";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "device_disconnected";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "empty_backup_access_code_pool";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "august_lock_not_authorized";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "august_lock_missing_bridge";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "salto_site_user_limit_reached";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "ttlock_lock_not_paired_to_gateway";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "missing_device_credentials";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "auxiliary_heat_running";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "subscription_required";
                    is_device_error: true;
                    message: string;
                }
                | {
                    error_code: "account_disconnected";
                    is_connected_account_error: true;
                    message: string;
                }
                | {
                    error_code: "invalid_credentials";
                    is_connected_account_error: true;
                    message: string;
                })[];
            is_managed: false;
            name: null | string;
            starts_at?: null | string;
            status: "set";
            type: "time_bound" | "ongoing";
            warnings: (
                | {
                    message: string;
                    warning_code: "smartthings_failed_to_set_access_code";
                }
                | {
                    message: string;
                    warning_code: "schlage_detected_duplicate";
                }
                | {
                    message: string;
                    warning_code: "schlage_creation_outage";
                }
                | {
                    message: string;
                    warning_code: "code_modified_external_to_seam";
                }
                | {
                    message: string;
                    warning_code: "delay_in_setting_on_device";
                }
                | {
                    message: string;
                    warning_code: "delay_in_removing_from_device";
                }
                | {
                    message: string;
                    warning_code: "third_party_integration_detected";
                }
                | {
                    message: string;
                    warning_code: "august_device_programming_delay";
                }
                | {
                    message: string;
                    warning_code: "igloo_algopin_must_be_used_within_24_hours";
                }
                | {
                    message: string;
                    warning_code: "management_transferred";
                })[];
        }[];
    }>, "access_codes">, "access_codes">

  • Parameters

    • Optionalbody: {
          access_code_id: string;
          allow_external_modification?: boolean;
          force?: boolean;
          is_external_modification_allowed?: boolean;
          is_managed: boolean;
      }
      • access_code_id: string
      • Optionalallow_external_modification?: boolean
      • Optionalforce?: boolean
      • Optionalis_external_modification_allowed?: boolean
      • is_managed: boolean

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • clientSessionToken: string

    Returns Promise<void>