@seamapi/http - v2.0.0
    Preparing search index...

    Class SeamHttpEndpoints

    Index
    /access_codes/create /access_codes/create_multiple /access_codes/delete /access_codes/generate_code /access_codes/get /access_codes/list /access_codes/pull_backup_access_code /access_codes/report_device_constraints /access_codes/simulate/create_unmanaged_access_code /access_codes/unmanaged/convert_to_managed /access_codes/unmanaged/delete /access_codes/unmanaged/get /access_codes/unmanaged/list /access_codes/unmanaged/update /access_codes/update /access_codes/update_multiple /access_grants/create /access_grants/delete /access_grants/get /access_grants/get_related /access_grants/list /access_grants/request_access_methods /access_grants/unmanaged/get /access_grants/unmanaged/list /access_grants/unmanaged/update /access_grants/update /access_methods/assign_card /access_methods/delete /access_methods/encode /access_methods/get /access_methods/get_related /access_methods/list /access_methods/unlock_door /access_methods/unmanaged/get /access_methods/unmanaged/list /acs/access_groups/add_user /acs/access_groups/delete /acs/access_groups/get /acs/access_groups/list /acs/access_groups/list_accessible_entrances /acs/access_groups/list_users /acs/access_groups/remove_user /acs/credentials/assign /acs/credentials/create /acs/credentials/delete /acs/credentials/get /acs/credentials/list /acs/credentials/list_accessible_entrances /acs/credentials/unassign /acs/credentials/update /acs/encoders/encode_credential /acs/encoders/get /acs/encoders/list /acs/encoders/scan_credential /acs/encoders/scan_to_assign_credential /acs/encoders/simulate/next_credential_encode_will_fail /acs/encoders/simulate/next_credential_encode_will_succeed /acs/encoders/simulate/next_credential_scan_will_fail /acs/encoders/simulate/next_credential_scan_will_succeed /acs/entrances/get /acs/entrances/grant_access /acs/entrances/list /acs/entrances/list_credentials_with_access /acs/entrances/unlock /acs/systems/get /acs/systems/list /acs/systems/list_compatible_credential_manager_acs_systems /acs/systems/report_devices /acs/users/add_to_access_group /acs/users/create /acs/users/delete /acs/users/get /acs/users/list /acs/users/list_accessible_entrances /acs/users/remove_from_access_group /acs/users/revoke_access_to_all_entrances /acs/users/suspend /acs/users/unsuspend /acs/users/update /action_attempts/get /action_attempts/list /client_sessions/create /client_sessions/delete /client_sessions/get /client_sessions/get_or_create /client_sessions/grant_access /client_sessions/list /client_sessions/revoke /connect_webviews/create /connect_webviews/delete /connect_webviews/get /connect_webviews/list /connected_accounts/delete /connected_accounts/get /connected_accounts/list /connected_accounts/simulate/disconnect /connected_accounts/sync /connected_accounts/update /customers/create_portal /customers/delete_data /customers/push_data /devices/get /devices/list /devices/list_device_providers /devices/report_provider_metadata /devices/simulate/connect /devices/simulate/connect_to_hub /devices/simulate/disconnect /devices/simulate/disconnect_from_hub /devices/simulate/paid_subscription /devices/simulate/remove /devices/unmanaged/get /devices/unmanaged/list /devices/unmanaged/update /devices/update /events/get /events/list /instant_keys/delete /instant_keys/get /instant_keys/list /locks/configure_auto_lock /locks/get /locks/list /locks/lock_door /locks/simulate/keypad_code_entry /locks/simulate/manual_lock_via_keypad /locks/unlock_door /noise_sensors/list /noise_sensors/noise_thresholds/create /noise_sensors/noise_thresholds/delete /noise_sensors/noise_thresholds/get /noise_sensors/noise_thresholds/list /noise_sensors/noise_thresholds/update /noise_sensors/simulate/trigger_noise_threshold /phones/deactivate /phones/get /phones/list /phones/simulate/create_sandbox_phone /spaces/add_acs_entrances /spaces/add_connected_account /spaces/add_devices /spaces/create /spaces/delete /spaces/get /spaces/get_related /spaces/list /spaces/remove_acs_entrances /spaces/remove_connected_account /spaces/remove_devices /spaces/update /thermostats/activate_climate_preset /thermostats/cool /thermostats/create_climate_preset /thermostats/daily_programs/create /thermostats/daily_programs/delete /thermostats/daily_programs/update /thermostats/delete_climate_preset /thermostats/heat /thermostats/heat_cool /thermostats/list /thermostats/off /thermostats/schedules/create /thermostats/schedules/delete /thermostats/schedules/get /thermostats/schedules/list /thermostats/schedules/update /thermostats/set_fallback_climate_preset /thermostats/set_fan_mode /thermostats/set_hvac_mode /thermostats/set_temperature_threshold /thermostats/simulate/hvac_mode_adjusted /thermostats/simulate/temperature_reached /thermostats/update_climate_preset /thermostats/update_weekly_program /user_identities/add_acs_user /user_identities/create /user_identities/delete /user_identities/generate_instant_key /user_identities/get /user_identities/grant_access_to_device /user_identities/list /user_identities/list_accessible_devices /user_identities/list_accessible_entrances /user_identities/list_acs_systems /user_identities/list_acs_users /user_identities/remove_acs_user /user_identities/revoke_access_to_device /user_identities/unmanaged/get /user_identities/unmanaged/list /user_identities/unmanaged/update /user_identities/update /webhooks/create /webhooks/delete /webhooks/get /webhooks/list /webhooks/update /workspaces/create /workspaces/get /workspaces/list /workspaces/reset_sandbox /workspaces/update
    client: AxiosInstance
    defaults: Required<SeamHttpRequestOptions>
    ltsVersion: "1.0.0" = seamApiLtsVersion
    ltsVersion: string = seamApiLtsVersion
    • get "/access_codes/create_multiple"(): (
          parameters: AccessCodesCreateMultipleParameters,
          options?: AccessCodesCreateMultipleOptions,
      ) => AccessCodesCreateMultipleRequest

      Creates new access codes that share a common code across multiple devices.

      Users with more than one door lock in a property may want to create groups of linked access codes, all of which have the same code (PIN). For example, a short-term rental host may want to provide guests the same PIN for both a front door lock and a back door lock.

      If you specify a custom code, Seam assigns this custom code to each of the resulting access codes. However, in this case, Seam does not link these access codes together with a common_code_key. That is, common_code_key remains null for these access codes.

      If you want to change these access codes that are not linked by a common_code_key, you cannot use /access_codes/update_multiple. However, you can update each of these access codes individually, using /access_codes/update.

      See also Creating and Updating Multiple Linked Access Codes.

      For granting a person access to a space, Access Grants are the default and recommended approach and work across both standalone smart locks and access systems. Use the lower-level Access Codes API directly only when you specifically need to manage individual PIN codes.

      Returns (
          parameters: AccessCodesCreateMultipleParameters,
          options?: AccessCodesCreateMultipleOptions,
      ) => AccessCodesCreateMultipleRequest

    • get "/access_codes/pull_backup_access_code"(): (
          parameters: AccessCodesPullBackupAccessCodeParameters,
          options?: AccessCodesPullBackupAccessCodeOptions,
      ) => AccessCodesPullBackupAccessCodeRequest

      Retrieves a backup access code for an access code. See also Managing Backup Access Codes.

      A backup access code pool is a collection of pre-programmed access codes stored on a device, ready for use. These codes are programmed in addition to the regular access codes on Seam, serving as a safety net for any issues with the primary codes. If there's ever a complication with a primary access code—be it due to intermittent connectivity, manual removal from a device, or provider outages—a backup code can be retrieved. Its end time can then be adjusted to align with the original code, facilitating seamless and uninterrupted access.

      You can pull a backup access code from the pool at any time. These backup codes are guaranteed to work immediately and automatically programmed to be removed from the device after the access code ends.

      You can only pull backup access codes for time-bound access codes.

      Before pulling a backup access code, make sure that the device's properties.supports_backup_access_code_pool is true. Then, to activate the backup pool, set use_backup_access_code_pool to true when creating an access code.

      Returns (
          parameters: AccessCodesPullBackupAccessCodeParameters,
          options?: AccessCodesPullBackupAccessCodeOptions,
      ) => AccessCodesPullBackupAccessCodeRequest

    • get "/connect_webviews/create"(): (
          parameters?: ConnectWebviewsCreateParameters,
          options?: ConnectWebviewsCreateOptions,
      ) => ConnectWebviewsCreateRequest

      Creates a new Connect Webview.

      To enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a connect_webview. After creating the Connect Webview, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.

      You should make a new connect_webview for each unique login request. Each connect_webview tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.

      See also: Connect Webview Process.

      Returns (
          parameters?: ConnectWebviewsCreateParameters,
          options?: ConnectWebviewsCreateOptions,
      ) => ConnectWebviewsCreateRequest

    • get "/connected_accounts/delete"(): (
          parameters: ConnectedAccountsDeleteParameters,
          options?: ConnectedAccountsDeleteOptions,
      ) => ConnectedAccountsDeleteRequest

      Deletes a specified connected account.

      Deleting a connected account triggers a connected_account.deleted event and removes the connected account and all data associated with the connected account from Seam, including devices, events, access codes, and so on. For every deleted resource, Seam sends a corresponding deleted event, but the resource is not deleted from the provider.

      For example, if you delete a connected account with a device that has an access code, Seam sends a connected_account.deleted event, a device.deleted event, and an access_code.deleted event, but Seam does not remove the access code from the device.

      Returns (
          parameters: ConnectedAccountsDeleteParameters,
          options?: ConnectedAccountsDeleteOptions,
      ) => ConnectedAccountsDeleteRequest

    /locks/simulate/keypad_code_entry

    • Parameters

      • clientSessionToken: string

      Returns Promise<void>