@seamapi/http - v1.70.0
    Preparing search index...

    Class SeamHttpConnectWebviews

    Index

    Constructors

    Properties

    client: AxiosInstance
    defaults: Required<SeamHttpRequestOptions>
    ltsVersion: "1.0.0" = seamApiLtsVersion
    ltsVersion: string = seamApiLtsVersion

    Methods

    • Parameters

      • Optionalparameters: {
            accepted_capabilities?: (
                "lock"
                | "thermostat"
                | "noise_sensor"
                | "access_control"
            )[];
            accepted_providers?: (
                | "hotek"
                | "dormakaba_community"
                | "legic_connect"
                | "akuvox"
                | "august"
                | "avigilon_alta"
                | "brivo"
                | "butterflymx"
                | "schlage"
                | "smartthings"
                | "yale"
                | "genie"
                | "doorking"
                | "salto"
                | "salto_ks"
                | "lockly"
                | "ttlock"
                | "linear"
                | "noiseaware"
                | "nuki"
                | "seam_relay_admin"
                | "igloo"
                | "kwikset"
                | "minut"
                | "my_2n"
                | "controlbyweb"
                | "nest"
                | "igloohome"
                | "ecobee"
                | "hubitat"
                | "four_suites"
                | "dormakaba_oracode"
                | "pti"
                | "wyze"
                | "seam_passport"
                | "visionline"
                | "assa_abloy_credential_service"
                | "tedee"
                | "honeywell_resideo"
                | "latch"
                | "akiles"
                | "assa_abloy_vostio"
                | "assa_abloy_vostio_credential_service"
                | "tado"
                | "salto_space"
                | "sensi"
                | "kwikset2"
                | "keynest"
                | "dormakaba_ambiance"
                | "yale_access"
                | "hid_cm"
                | "google_nest"
            )[];
            automatically_manage_new_devices?: boolean;
            custom_metadata?: { [x: string]: null
            | string
            | boolean };
            custom_redirect_failure_url?: string;
            custom_redirect_url?: string;
            customer_key?: string;
            device_selection_mode?: "none" | "single" | "multiple";
            provider_category?:
                | "noise_sensors"
                | "thermostats"
                | "stable"
                | "consumer_smartlocks"
                | "access_control_systems"
                | "internal_beta";
            wait_for_device_creation?: boolean;
        }
        • Optionalaccepted_capabilities?: ("lock" | "thermostat" | "noise_sensor" | "access_control")[]

          List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. If not provided, defaults will be determined based on the accepted providers.

        • Optionalaccepted_providers?: (
              | "hotek"
              | "dormakaba_community"
              | "legic_connect"
              | "akuvox"
              | "august"
              | "avigilon_alta"
              | "brivo"
              | "butterflymx"
              | "schlage"
              | "smartthings"
              | "yale"
              | "genie"
              | "doorking"
              | "salto"
              | "salto_ks"
              | "lockly"
              | "ttlock"
              | "linear"
              | "noiseaware"
              | "nuki"
              | "seam_relay_admin"
              | "igloo"
              | "kwikset"
              | "minut"
              | "my_2n"
              | "controlbyweb"
              | "nest"
              | "igloohome"
              | "ecobee"
              | "hubitat"
              | "four_suites"
              | "dormakaba_oracode"
              | "pti"
              | "wyze"
              | "seam_passport"
              | "visionline"
              | "assa_abloy_credential_service"
              | "tedee"
              | "honeywell_resideo"
              | "latch"
              | "akiles"
              | "assa_abloy_vostio"
              | "assa_abloy_vostio_credential_service"
              | "tado"
              | "salto_space"
              | "sensi"
              | "kwikset2"
              | "keynest"
              | "dormakaba_ambiance"
              | "yale_access"
              | "hid_cm"
              | "google_nest"
          )[]

          Accepted device provider keys as an alternative to provider_category. Use this parameter to specify accepted providers explicitly. See Customize the Brands to Display in Your Connect Webviews. To list all provider keys, use /devices/list_device_providers with no filters.

        • Optionalautomatically_manage_new_devices?: boolean

          Indicates whether newly-added devices should appear as managed devices. See also: Customize the Behavior Settings of Your Connect Webviews.

        • Optionalcustom_metadata?: { [x: string]: null | string | boolean }

          Custom metadata that you want to associate with the Connect Webview. Supports up to 50 JSON key:value pairs. Adding custom metadata to a Connect Webview enables you to store custom information, like customer details or internal IDs from your application. The custom metadata is then transferred to any connected accounts that were connected using the Connect Webview, making it easy to find and filter these resources in your workspace. You can also filter Connect Webviews by custom metadata.

        • Optionalcustom_redirect_failure_url?: string

          Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the custom_redirect_url.

        • Optionalcustom_redirect_url?: string

          URL that you want to redirect the user to after the provider login is complete.

        • Optionalcustomer_key?: string

          Optional unique string key that can be used to identify the customer. If provided, the customer will be created or retrieved based on this key.

        • Optionaldevice_selection_mode?: "none" | "single" | "multiple"
        • Optionalprovider_category?:
              | "noise_sensors"
              | "thermostats"
              | "stable"
              | "consumer_smartlocks"
              | "access_control_systems"
              | "internal_beta"

          Specifies the category of providers that you want to include. To list all providers within a category, use /devices/list_device_providers with the desired provider_category filter.

        • Optionalwait_for_device_creation?: boolean

          Indicates whether Seam should finish syncing all devices in a newly-connected account before completing the associated Connect Webview. See also: Customize the Behavior Settings of Your Connect Webviews.

      • options: ConnectWebviewsCreateOptions = {}

      Returns ConnectWebviewsCreateRequest

    • Parameters

      • Optionalparameters: {
            custom_metadata_has?: { [x: string]: string | boolean };
            customer_key?: string;
            limit?: number;
            page_cursor?: null | string;
            user_identifier_key?: string;
        }
        • Optionalcustom_metadata_has?: { [x: string]: string | boolean }

          Custom metadata pairs by which you want to filter Connect Webviews. Returns Connect Webviews with custom_metadata that contains all of the provided key:value pairs.

        • Optionalcustomer_key?: string

          Customer key for which you want to list connect webviews.

        • Optionallimit?: number

          Maximum number of records to return per page.

        • Optionalpage_cursor?: null | string

          Identifies the specific page of results to return, obtained from the previous page's next_page_cursor.

        • Optionaluser_identifier_key?: string

          Your user ID for the user by which you want to filter Connect Webviews.

      • options: ConnectWebviewsListOptions = {}

      Returns ConnectWebviewsListRequest

    • Parameters

      • clientSessionToken: string

      Returns Promise<void>