@seamapi/types 1.152.0 → 1.153.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +333 -1276
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +914 -1587
- package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +3 -3
- package/lib/seam/connect/models/connect-webviews/connect-webview.js +10 -3
- package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +397 -1605
- package/lib/seam/connect/openapi.js +300 -1254
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +538 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +14 -3
- package/src/lib/seam/connect/openapi.ts +303 -1254
- package/src/lib/seam/connect/route-types.ts +755 -3
|
@@ -1787,9 +1787,19 @@ export interface Routes {
|
|
|
1787
1787
|
url: string;
|
|
1788
1788
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
1789
1789
|
accepted_providers: string[];
|
|
1790
|
+
/**
|
|
1791
|
+
---
|
|
1792
|
+
deprecated: Unused. Will be removed.
|
|
1793
|
+
---
|
|
1794
|
+
*/
|
|
1790
1795
|
accepted_devices: string[];
|
|
1791
|
-
|
|
1796
|
+
/**
|
|
1797
|
+
---
|
|
1798
|
+
deprecated: Unused. Will be removed.
|
|
1799
|
+
---
|
|
1800
|
+
*/
|
|
1792
1801
|
any_device_allowed: boolean;
|
|
1802
|
+
any_provider_allowed: boolean;
|
|
1793
1803
|
login_successful: boolean;
|
|
1794
1804
|
status: 'pending' | 'failed' | 'authorized';
|
|
1795
1805
|
custom_redirect_url: string | null;
|
|
@@ -1831,9 +1841,19 @@ export interface Routes {
|
|
|
1831
1841
|
url: string;
|
|
1832
1842
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
1833
1843
|
accepted_providers: string[];
|
|
1844
|
+
/**
|
|
1845
|
+
---
|
|
1846
|
+
deprecated: Unused. Will be removed.
|
|
1847
|
+
---
|
|
1848
|
+
*/
|
|
1834
1849
|
accepted_devices: string[];
|
|
1835
|
-
|
|
1850
|
+
/**
|
|
1851
|
+
---
|
|
1852
|
+
deprecated: Unused. Will be removed.
|
|
1853
|
+
---
|
|
1854
|
+
*/
|
|
1836
1855
|
any_device_allowed: boolean;
|
|
1856
|
+
any_provider_allowed: boolean;
|
|
1837
1857
|
login_successful: boolean;
|
|
1838
1858
|
status: 'pending' | 'failed' | 'authorized';
|
|
1839
1859
|
custom_redirect_url: string | null;
|
|
@@ -1866,9 +1886,19 @@ export interface Routes {
|
|
|
1866
1886
|
url: string;
|
|
1867
1887
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
1868
1888
|
accepted_providers: string[];
|
|
1889
|
+
/**
|
|
1890
|
+
---
|
|
1891
|
+
deprecated: Unused. Will be removed.
|
|
1892
|
+
---
|
|
1893
|
+
*/
|
|
1869
1894
|
accepted_devices: string[];
|
|
1870
|
-
|
|
1895
|
+
/**
|
|
1896
|
+
---
|
|
1897
|
+
deprecated: Unused. Will be removed.
|
|
1898
|
+
---
|
|
1899
|
+
*/
|
|
1871
1900
|
any_device_allowed: boolean;
|
|
1901
|
+
any_provider_allowed: boolean;
|
|
1872
1902
|
login_successful: boolean;
|
|
1873
1903
|
status: 'pending' | 'failed' | 'authorized';
|
|
1874
1904
|
custom_redirect_url: string | null;
|
|
@@ -7566,6 +7596,511 @@ export interface Routes {
|
|
|
7566
7596
|
};
|
|
7567
7597
|
formData: {};
|
|
7568
7598
|
jsonResponse: {
|
|
7599
|
+
devices: Array<{
|
|
7600
|
+
/** Unique identifier for the device. */
|
|
7601
|
+
device_id: string;
|
|
7602
|
+
/** Type of the device. */
|
|
7603
|
+
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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat') | ('ios_phone' | 'android_phone');
|
|
7604
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
7605
|
+
nickname?: string | undefined;
|
|
7606
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
7607
|
+
display_name: string;
|
|
7608
|
+
/** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */
|
|
7609
|
+
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
7610
|
+
/** Properties of the device. */
|
|
7611
|
+
properties: (({
|
|
7612
|
+
/** Indicates whether the device is online. */
|
|
7613
|
+
online: boolean;
|
|
7614
|
+
/**
|
|
7615
|
+
---
|
|
7616
|
+
deprecated: use device.display_name instead
|
|
7617
|
+
---
|
|
7618
|
+
Name of the device.
|
|
7619
|
+
*/
|
|
7620
|
+
name: string;
|
|
7621
|
+
/** Represents the accessory keypad state. */
|
|
7622
|
+
accessory_keypad?: {
|
|
7623
|
+
/** Indicates if the accessory_keypad is connected to the device. */
|
|
7624
|
+
is_connected: boolean;
|
|
7625
|
+
} | undefined;
|
|
7626
|
+
appearance: {
|
|
7627
|
+
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
7628
|
+
name: string;
|
|
7629
|
+
};
|
|
7630
|
+
model: {
|
|
7631
|
+
/** Indicates whether the device can connect a accessory keypad. */
|
|
7632
|
+
can_connect_accessory_keypad?: boolean | undefined;
|
|
7633
|
+
/** Display name of the device model. */
|
|
7634
|
+
display_name: string;
|
|
7635
|
+
/** Display name that corresponds to the manufacturer-specific terminology for the device. */
|
|
7636
|
+
manufacturer_display_name: string;
|
|
7637
|
+
/** Indicates whether the device has a built in accessory keypad. */
|
|
7638
|
+
has_built_in_keypad?: boolean | undefined;
|
|
7639
|
+
/** Indicates whether the device supports offline access codes. */
|
|
7640
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
7641
|
+
/** Indicates whether the device supports online access codes. */
|
|
7642
|
+
online_access_codes_supported?: boolean | undefined;
|
|
7643
|
+
/** Indicates whether the device supports an accessory keypad. */
|
|
7644
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
7645
|
+
};
|
|
7646
|
+
/** Indicates whether the device has direct power. */
|
|
7647
|
+
has_direct_power?: boolean | undefined;
|
|
7648
|
+
/** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */
|
|
7649
|
+
battery_level?: number | undefined;
|
|
7650
|
+
/** Represents the current status of the battery charge level. Values are "critical," which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; "low," which signifies that the battery is under the preferred threshold and should be charged soon; "good," which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and "full," which represents a battery that is fully charged, providing the maximum duration of usage. */
|
|
7651
|
+
battery?: {
|
|
7652
|
+
level: number;
|
|
7653
|
+
status: 'critical' | 'low' | 'good' | 'full';
|
|
7654
|
+
} | undefined;
|
|
7655
|
+
/** Manufacturer of the device. */
|
|
7656
|
+
manufacturer?: string | undefined;
|
|
7657
|
+
/** Image URL for the device. */
|
|
7658
|
+
image_url?: string | undefined;
|
|
7659
|
+
/** Alt text for the device image. */
|
|
7660
|
+
image_alt_text?: string | undefined;
|
|
7661
|
+
/** Serial number of the device. */
|
|
7662
|
+
serial_number?: string | undefined;
|
|
7663
|
+
/** Indicates whether it is currently possible to use online access codes for the device. */
|
|
7664
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
7665
|
+
/** Indicates whether it is currently possible to use offline access codes for the device. */
|
|
7666
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
7667
|
+
/**
|
|
7668
|
+
---
|
|
7669
|
+
deprecated: use model.accessory_keypad_supported
|
|
7670
|
+
---
|
|
7671
|
+
*/
|
|
7672
|
+
supports_accessory_keypad?: boolean | undefined;
|
|
7673
|
+
/**
|
|
7674
|
+
---
|
|
7675
|
+
deprecated: use offline_access_codes_enabled
|
|
7676
|
+
---
|
|
7677
|
+
*/
|
|
7678
|
+
supports_offline_access_codes?: boolean | undefined;
|
|
7679
|
+
} & {
|
|
7680
|
+
assa_abloy_credential_service_metadata?: ({
|
|
7681
|
+
has_active_endpoint: boolean;
|
|
7682
|
+
endpoints: Array<{
|
|
7683
|
+
endpoint_id: string;
|
|
7684
|
+
is_active: boolean;
|
|
7685
|
+
}>;
|
|
7686
|
+
} | undefined) | undefined;
|
|
7687
|
+
}) & {
|
|
7688
|
+
august_metadata?: {
|
|
7689
|
+
lock_id: string;
|
|
7690
|
+
lock_name: string;
|
|
7691
|
+
house_name: string;
|
|
7692
|
+
has_keypad: boolean;
|
|
7693
|
+
keypad_battery_level?: string | undefined;
|
|
7694
|
+
model?: string | undefined;
|
|
7695
|
+
house_id?: string | undefined;
|
|
7696
|
+
} | undefined;
|
|
7697
|
+
avigilon_alta_metadata?: {
|
|
7698
|
+
entry_name: string;
|
|
7699
|
+
org_name: string;
|
|
7700
|
+
zone_id: number;
|
|
7701
|
+
zone_name: string;
|
|
7702
|
+
site_id: number;
|
|
7703
|
+
site_name: string;
|
|
7704
|
+
} | undefined;
|
|
7705
|
+
schlage_metadata?: {
|
|
7706
|
+
device_id: string;
|
|
7707
|
+
device_name: string;
|
|
7708
|
+
access_code_length: number | null;
|
|
7709
|
+
model?: string | undefined;
|
|
7710
|
+
} | undefined;
|
|
7711
|
+
smartthings_metadata?: {
|
|
7712
|
+
device_id: string;
|
|
7713
|
+
device_name: string;
|
|
7714
|
+
model?: string | undefined;
|
|
7715
|
+
location_id?: string | undefined;
|
|
7716
|
+
} | undefined;
|
|
7717
|
+
lockly_metadata?: {
|
|
7718
|
+
device_id: string;
|
|
7719
|
+
device_name: string;
|
|
7720
|
+
model?: string | undefined;
|
|
7721
|
+
} | undefined;
|
|
7722
|
+
nuki_metadata?: {
|
|
7723
|
+
device_id: string;
|
|
7724
|
+
device_name: string;
|
|
7725
|
+
keypad_battery_critical?: boolean | undefined;
|
|
7726
|
+
} | undefined;
|
|
7727
|
+
kwikset_metadata?: {
|
|
7728
|
+
device_id: string;
|
|
7729
|
+
device_name: string;
|
|
7730
|
+
model_number: string;
|
|
7731
|
+
} | undefined;
|
|
7732
|
+
salto_metadata?: {
|
|
7733
|
+
lock_id: string;
|
|
7734
|
+
customer_reference: string;
|
|
7735
|
+
lock_type: string;
|
|
7736
|
+
battery_level: string;
|
|
7737
|
+
locked_state: string;
|
|
7738
|
+
model?: string | undefined;
|
|
7739
|
+
} | undefined;
|
|
7740
|
+
genie_metadata?: {
|
|
7741
|
+
device_name: string;
|
|
7742
|
+
door_name: string;
|
|
7743
|
+
} | undefined;
|
|
7744
|
+
brivo_metadata?: {
|
|
7745
|
+
device_name: string;
|
|
7746
|
+
} | undefined;
|
|
7747
|
+
igloo_metadata?: {
|
|
7748
|
+
device_id: string;
|
|
7749
|
+
bridge_id: string;
|
|
7750
|
+
model?: string | undefined;
|
|
7751
|
+
} | undefined;
|
|
7752
|
+
noiseaware_metadata?: {
|
|
7753
|
+
device_model: 'indoor' | 'outdoor';
|
|
7754
|
+
noise_level_nrs: number;
|
|
7755
|
+
noise_level_decibel: number;
|
|
7756
|
+
device_name: string;
|
|
7757
|
+
device_id: string;
|
|
7758
|
+
} | undefined;
|
|
7759
|
+
minut_metadata?: {
|
|
7760
|
+
device_id: string;
|
|
7761
|
+
device_name: string;
|
|
7762
|
+
latest_sensor_values: {
|
|
7763
|
+
temperature: {
|
|
7764
|
+
time: string;
|
|
7765
|
+
value: number;
|
|
7766
|
+
};
|
|
7767
|
+
sound: {
|
|
7768
|
+
time: string;
|
|
7769
|
+
value: number;
|
|
7770
|
+
};
|
|
7771
|
+
humidity: {
|
|
7772
|
+
time: string;
|
|
7773
|
+
value: number;
|
|
7774
|
+
};
|
|
7775
|
+
pressure: {
|
|
7776
|
+
time: string;
|
|
7777
|
+
value: number;
|
|
7778
|
+
};
|
|
7779
|
+
accelerometer_z: {
|
|
7780
|
+
time: string;
|
|
7781
|
+
value: number;
|
|
7782
|
+
};
|
|
7783
|
+
};
|
|
7784
|
+
} | undefined;
|
|
7785
|
+
four_suites_metadata?: {
|
|
7786
|
+
device_id: number;
|
|
7787
|
+
device_name: string;
|
|
7788
|
+
reclose_delay_in_seconds: number;
|
|
7789
|
+
} | undefined;
|
|
7790
|
+
two_n_metadata?: {
|
|
7791
|
+
device_id: number;
|
|
7792
|
+
device_name: string;
|
|
7793
|
+
} | undefined;
|
|
7794
|
+
controlbyweb_metadata?: {
|
|
7795
|
+
device_id: string;
|
|
7796
|
+
device_name: string;
|
|
7797
|
+
relay_name: string | null;
|
|
7798
|
+
} | undefined;
|
|
7799
|
+
ttlock_metadata?: {
|
|
7800
|
+
lock_id: number;
|
|
7801
|
+
lock_alias: string;
|
|
7802
|
+
} | undefined;
|
|
7803
|
+
seam_bridge_metadata?: {
|
|
7804
|
+
unlock_method?: ('bridge' | 'doorking') | undefined;
|
|
7805
|
+
device_num: number;
|
|
7806
|
+
name: string;
|
|
7807
|
+
} | undefined;
|
|
7808
|
+
igloohome_metadata?: {
|
|
7809
|
+
device_id: string;
|
|
7810
|
+
device_name: string;
|
|
7811
|
+
bridge_id?: string | undefined;
|
|
7812
|
+
bridge_name?: string | undefined;
|
|
7813
|
+
} | undefined;
|
|
7814
|
+
nest_metadata?: {
|
|
7815
|
+
nest_device_id: string;
|
|
7816
|
+
device_name: string;
|
|
7817
|
+
custom_name: string;
|
|
7818
|
+
} | undefined;
|
|
7819
|
+
ecobee_metadata?: {
|
|
7820
|
+
ecobee_device_id: string;
|
|
7821
|
+
device_name: string;
|
|
7822
|
+
} | undefined;
|
|
7823
|
+
honeywell_resideo_metadata?: {
|
|
7824
|
+
honeywell_resideo_device_id: string;
|
|
7825
|
+
device_name: string;
|
|
7826
|
+
} | undefined;
|
|
7827
|
+
hubitat_metadata?: {
|
|
7828
|
+
device_id: string;
|
|
7829
|
+
device_name: string;
|
|
7830
|
+
device_label: string;
|
|
7831
|
+
} | undefined;
|
|
7832
|
+
dormakaba_oracode_metadata?: {
|
|
7833
|
+
door_id: number;
|
|
7834
|
+
door_name: string;
|
|
7835
|
+
device_id?: number | undefined;
|
|
7836
|
+
site_id: number;
|
|
7837
|
+
site_name: string;
|
|
7838
|
+
iana_timezone?: string | undefined;
|
|
7839
|
+
predefined_time_slots?: Array<{
|
|
7840
|
+
name: string;
|
|
7841
|
+
prefix: number;
|
|
7842
|
+
check_in_time: string;
|
|
7843
|
+
check_out_time: string;
|
|
7844
|
+
is_24_hour: boolean;
|
|
7845
|
+
is_biweekly_mode: boolean;
|
|
7846
|
+
is_one_shot: boolean;
|
|
7847
|
+
is_master: boolean;
|
|
7848
|
+
ext_dormakaba_oracode_user_level_prefix: number;
|
|
7849
|
+
dormakaba_oracode_user_level_id: string;
|
|
7850
|
+
}> | undefined;
|
|
7851
|
+
} | undefined;
|
|
7852
|
+
wyze_metadata?: {
|
|
7853
|
+
device_id: string;
|
|
7854
|
+
device_name: string;
|
|
7855
|
+
product_name: string;
|
|
7856
|
+
product_type: string;
|
|
7857
|
+
product_model: string;
|
|
7858
|
+
device_info_model: string;
|
|
7859
|
+
} | undefined;
|
|
7860
|
+
tedee_metadata?: {
|
|
7861
|
+
device_id: number;
|
|
7862
|
+
serial_number: string;
|
|
7863
|
+
device_name: string;
|
|
7864
|
+
device_model: string;
|
|
7865
|
+
bridge_id: number;
|
|
7866
|
+
bridge_name: string;
|
|
7867
|
+
keypad_id?: number | undefined;
|
|
7868
|
+
} | undefined;
|
|
7869
|
+
}) & ({
|
|
7870
|
+
_experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
|
|
7871
|
+
code_constraints?: (Array<{
|
|
7872
|
+
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
|
|
7873
|
+
} | {
|
|
7874
|
+
constraint_type: 'name_length';
|
|
7875
|
+
min_length?: number | undefined;
|
|
7876
|
+
max_length?: number | undefined;
|
|
7877
|
+
}> | undefined) | undefined;
|
|
7878
|
+
supported_code_lengths?: (number[] | undefined) | undefined;
|
|
7879
|
+
max_active_codes_supported?: (number | undefined) | undefined;
|
|
7880
|
+
supports_backup_access_code_pool?: (boolean | undefined) | undefined;
|
|
7881
|
+
has_native_entry_events?: (boolean | undefined) | undefined;
|
|
7882
|
+
locked?: (boolean | undefined) | undefined;
|
|
7883
|
+
keypad_battery?: ({
|
|
7884
|
+
level: number;
|
|
7885
|
+
} | undefined) | undefined;
|
|
7886
|
+
door_open?: (boolean | undefined) | undefined;
|
|
7887
|
+
} & ({
|
|
7888
|
+
temperature_fahrenheit?: number | undefined;
|
|
7889
|
+
temperature_celsius?: number | undefined;
|
|
7890
|
+
relative_humidity?: number | undefined;
|
|
7891
|
+
can_enable_automatic_heating?: boolean | undefined;
|
|
7892
|
+
can_enable_automatic_cooling?: boolean | undefined;
|
|
7893
|
+
available_hvac_mode_settings?: Array<'off' | 'heat' | 'cool' | 'heat_cool'> | undefined;
|
|
7894
|
+
is_heating_available?: true | undefined;
|
|
7895
|
+
is_cooling_available?: true | undefined;
|
|
7896
|
+
is_heating?: boolean | undefined;
|
|
7897
|
+
is_cooling?: boolean | undefined;
|
|
7898
|
+
is_fan_running?: boolean | undefined;
|
|
7899
|
+
fan_mode_setting?: ('auto' | 'on') | undefined;
|
|
7900
|
+
is_temporary_manual_override_active?: boolean | undefined;
|
|
7901
|
+
current_climate_setting?: {
|
|
7902
|
+
automatic_heating_enabled: boolean;
|
|
7903
|
+
automatic_cooling_enabled: boolean;
|
|
7904
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool';
|
|
7905
|
+
cooling_set_point_celsius?: number | undefined;
|
|
7906
|
+
heating_set_point_celsius?: number | undefined;
|
|
7907
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
7908
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
7909
|
+
manual_override_allowed: boolean;
|
|
7910
|
+
} | undefined;
|
|
7911
|
+
default_climate_setting?: ({
|
|
7912
|
+
automatic_heating_enabled: boolean;
|
|
7913
|
+
automatic_cooling_enabled: boolean;
|
|
7914
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool';
|
|
7915
|
+
cooling_set_point_celsius?: number | undefined;
|
|
7916
|
+
heating_set_point_celsius?: number | undefined;
|
|
7917
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
7918
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
7919
|
+
manual_override_allowed: boolean;
|
|
7920
|
+
} | undefined) | undefined;
|
|
7921
|
+
is_climate_setting_schedule_active?: boolean | undefined;
|
|
7922
|
+
active_climate_setting_schedule?: ({
|
|
7923
|
+
climate_setting_schedule_id: string;
|
|
7924
|
+
schedule_type: 'time_bound';
|
|
7925
|
+
device_id: string;
|
|
7926
|
+
name?: string | undefined;
|
|
7927
|
+
schedule_starts_at: string;
|
|
7928
|
+
schedule_ends_at: string;
|
|
7929
|
+
created_at: string;
|
|
7930
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
7931
|
+
errors?: any;
|
|
7932
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
7933
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
7934
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
|
|
7935
|
+
cooling_set_point_celsius?: (number | undefined) | undefined;
|
|
7936
|
+
heating_set_point_celsius?: (number | undefined) | undefined;
|
|
7937
|
+
cooling_set_point_fahrenheit?: (number | undefined) | undefined;
|
|
7938
|
+
heating_set_point_fahrenheit?: (number | undefined) | undefined;
|
|
7939
|
+
manual_override_allowed?: boolean | undefined;
|
|
7940
|
+
} | undefined) | undefined;
|
|
7941
|
+
min_cooling_set_point_celsius?: number | undefined;
|
|
7942
|
+
min_cooling_set_point_fahrenheit?: number | undefined;
|
|
7943
|
+
max_cooling_set_point_celsius?: number | undefined;
|
|
7944
|
+
max_cooling_set_point_fahrenheit?: number | undefined;
|
|
7945
|
+
min_heating_set_point_celsius?: number | undefined;
|
|
7946
|
+
min_heating_set_point_fahrenheit?: number | undefined;
|
|
7947
|
+
max_heating_set_point_celsius?: number | undefined;
|
|
7948
|
+
max_heating_set_point_fahrenheit?: number | undefined;
|
|
7949
|
+
min_heating_cooling_delta_celsius?: number | undefined;
|
|
7950
|
+
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
7951
|
+
} | {
|
|
7952
|
+
temperature_fahrenheit?: number | undefined;
|
|
7953
|
+
temperature_celsius?: number | undefined;
|
|
7954
|
+
relative_humidity?: number | undefined;
|
|
7955
|
+
can_enable_automatic_heating?: boolean | undefined;
|
|
7956
|
+
can_enable_automatic_cooling?: boolean | undefined;
|
|
7957
|
+
available_hvac_mode_settings?: Array<'off' | 'heat' | 'cool' | 'heat_cool'> | undefined;
|
|
7958
|
+
is_heating_available?: true | undefined;
|
|
7959
|
+
is_cooling_available?: false | undefined;
|
|
7960
|
+
is_heating?: boolean | undefined;
|
|
7961
|
+
is_cooling?: boolean | undefined;
|
|
7962
|
+
is_fan_running?: boolean | undefined;
|
|
7963
|
+
fan_mode_setting?: ('auto' | 'on') | undefined;
|
|
7964
|
+
is_temporary_manual_override_active?: boolean | undefined;
|
|
7965
|
+
current_climate_setting?: {
|
|
7966
|
+
automatic_heating_enabled: boolean;
|
|
7967
|
+
automatic_cooling_enabled: boolean;
|
|
7968
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool';
|
|
7969
|
+
cooling_set_point_celsius?: number | undefined;
|
|
7970
|
+
heating_set_point_celsius?: number | undefined;
|
|
7971
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
7972
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
7973
|
+
manual_override_allowed: boolean;
|
|
7974
|
+
} | undefined;
|
|
7975
|
+
default_climate_setting?: ({
|
|
7976
|
+
automatic_heating_enabled: boolean;
|
|
7977
|
+
automatic_cooling_enabled: boolean;
|
|
7978
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool';
|
|
7979
|
+
cooling_set_point_celsius?: number | undefined;
|
|
7980
|
+
heating_set_point_celsius?: number | undefined;
|
|
7981
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
7982
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
7983
|
+
manual_override_allowed: boolean;
|
|
7984
|
+
} | undefined) | undefined;
|
|
7985
|
+
is_climate_setting_schedule_active?: boolean | undefined;
|
|
7986
|
+
active_climate_setting_schedule?: ({
|
|
7987
|
+
climate_setting_schedule_id: string;
|
|
7988
|
+
schedule_type: 'time_bound';
|
|
7989
|
+
device_id: string;
|
|
7990
|
+
name?: string | undefined;
|
|
7991
|
+
schedule_starts_at: string;
|
|
7992
|
+
schedule_ends_at: string;
|
|
7993
|
+
created_at: string;
|
|
7994
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
7995
|
+
errors?: any;
|
|
7996
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
7997
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
7998
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
|
|
7999
|
+
cooling_set_point_celsius?: (number | undefined) | undefined;
|
|
8000
|
+
heating_set_point_celsius?: (number | undefined) | undefined;
|
|
8001
|
+
cooling_set_point_fahrenheit?: (number | undefined) | undefined;
|
|
8002
|
+
heating_set_point_fahrenheit?: (number | undefined) | undefined;
|
|
8003
|
+
manual_override_allowed?: boolean | undefined;
|
|
8004
|
+
} | undefined) | undefined;
|
|
8005
|
+
min_heating_set_point_celsius?: number | undefined;
|
|
8006
|
+
min_heating_set_point_fahrenheit?: number | undefined;
|
|
8007
|
+
max_heating_set_point_celsius?: number | undefined;
|
|
8008
|
+
max_heating_set_point_fahrenheit?: number | undefined;
|
|
8009
|
+
} | {
|
|
8010
|
+
temperature_fahrenheit?: number | undefined;
|
|
8011
|
+
temperature_celsius?: number | undefined;
|
|
8012
|
+
relative_humidity?: number | undefined;
|
|
8013
|
+
can_enable_automatic_heating?: boolean | undefined;
|
|
8014
|
+
can_enable_automatic_cooling?: boolean | undefined;
|
|
8015
|
+
available_hvac_mode_settings?: Array<'off' | 'heat' | 'cool' | 'heat_cool'> | undefined;
|
|
8016
|
+
is_heating_available?: false | undefined;
|
|
8017
|
+
is_cooling_available?: true | undefined;
|
|
8018
|
+
is_heating?: boolean | undefined;
|
|
8019
|
+
is_cooling?: boolean | undefined;
|
|
8020
|
+
is_fan_running?: boolean | undefined;
|
|
8021
|
+
fan_mode_setting?: ('auto' | 'on') | undefined;
|
|
8022
|
+
is_temporary_manual_override_active?: boolean | undefined;
|
|
8023
|
+
current_climate_setting?: {
|
|
8024
|
+
automatic_heating_enabled: boolean;
|
|
8025
|
+
automatic_cooling_enabled: boolean;
|
|
8026
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool';
|
|
8027
|
+
cooling_set_point_celsius?: number | undefined;
|
|
8028
|
+
heating_set_point_celsius?: number | undefined;
|
|
8029
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
8030
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
8031
|
+
manual_override_allowed: boolean;
|
|
8032
|
+
} | undefined;
|
|
8033
|
+
default_climate_setting?: ({
|
|
8034
|
+
automatic_heating_enabled: boolean;
|
|
8035
|
+
automatic_cooling_enabled: boolean;
|
|
8036
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool';
|
|
8037
|
+
cooling_set_point_celsius?: number | undefined;
|
|
8038
|
+
heating_set_point_celsius?: number | undefined;
|
|
8039
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
8040
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
8041
|
+
manual_override_allowed: boolean;
|
|
8042
|
+
} | undefined) | undefined;
|
|
8043
|
+
is_climate_setting_schedule_active?: boolean | undefined;
|
|
8044
|
+
active_climate_setting_schedule?: ({
|
|
8045
|
+
climate_setting_schedule_id: string;
|
|
8046
|
+
schedule_type: 'time_bound';
|
|
8047
|
+
device_id: string;
|
|
8048
|
+
name?: string | undefined;
|
|
8049
|
+
schedule_starts_at: string;
|
|
8050
|
+
schedule_ends_at: string;
|
|
8051
|
+
created_at: string;
|
|
8052
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
8053
|
+
errors?: any;
|
|
8054
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
8055
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
8056
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
|
|
8057
|
+
cooling_set_point_celsius?: (number | undefined) | undefined;
|
|
8058
|
+
heating_set_point_celsius?: (number | undefined) | undefined;
|
|
8059
|
+
cooling_set_point_fahrenheit?: (number | undefined) | undefined;
|
|
8060
|
+
heating_set_point_fahrenheit?: (number | undefined) | undefined;
|
|
8061
|
+
manual_override_allowed?: boolean | undefined;
|
|
8062
|
+
} | undefined) | undefined;
|
|
8063
|
+
min_cooling_set_point_celsius?: number | undefined;
|
|
8064
|
+
min_cooling_set_point_fahrenheit?: number | undefined;
|
|
8065
|
+
max_cooling_set_point_celsius?: number | undefined;
|
|
8066
|
+
max_cooling_set_point_fahrenheit?: number | undefined;
|
|
8067
|
+
}));
|
|
8068
|
+
/** Location information for the device. */
|
|
8069
|
+
location: {
|
|
8070
|
+
/** Name of the device location. */
|
|
8071
|
+
location_name?: string | undefined;
|
|
8072
|
+
/** Time zone of the device location. */
|
|
8073
|
+
timezone?: string | undefined;
|
|
8074
|
+
} | null;
|
|
8075
|
+
/** Unique identifier for the account associated with the device. */
|
|
8076
|
+
connected_account_id: string;
|
|
8077
|
+
/** Unique identifier for the Seam workspace associated with the device. */
|
|
8078
|
+
workspace_id: string;
|
|
8079
|
+
/** Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
|
|
8080
|
+
errors: Array<{
|
|
8081
|
+
error_code: string;
|
|
8082
|
+
message: string;
|
|
8083
|
+
}>;
|
|
8084
|
+
/** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
|
|
8085
|
+
warnings: Array<{
|
|
8086
|
+
warning_code: string;
|
|
8087
|
+
message: string;
|
|
8088
|
+
}>;
|
|
8089
|
+
/** Date and time at which the device object was created. */
|
|
8090
|
+
created_at: string;
|
|
8091
|
+
/** Indicates whether Seam manages the device. */
|
|
8092
|
+
is_managed: true;
|
|
8093
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
8094
|
+
can_remotely_unlock?: boolean | undefined;
|
|
8095
|
+
can_remotely_lock?: boolean | undefined;
|
|
8096
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
8097
|
+
can_simulate_removal?: boolean | undefined;
|
|
8098
|
+
}>;
|
|
8099
|
+
/**
|
|
8100
|
+
---
|
|
8101
|
+
deprecated: use devices.
|
|
8102
|
+
---
|
|
8103
|
+
*/
|
|
7569
8104
|
accessible_devices: Array<{
|
|
7570
8105
|
/** Unique identifier for the device. */
|
|
7571
8106
|
device_id: string;
|
package/package.json
CHANGED
|
@@ -19,11 +19,22 @@ export const connect_webview = z.object({
|
|
|
19
19
|
// TODO: Use enum value.
|
|
20
20
|
accepted_providers: z.array(z.string()),
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
accepted_devices: z.array(z.string()).describe(
|
|
23
|
+
`
|
|
24
|
+
---
|
|
25
|
+
deprecated: Unused. Will be removed.
|
|
26
|
+
---
|
|
27
|
+
`,
|
|
28
|
+
),
|
|
29
|
+
any_device_allowed: z.boolean().describe(
|
|
30
|
+
`
|
|
31
|
+
---
|
|
32
|
+
deprecated: Unused. Will be removed.
|
|
33
|
+
---
|
|
34
|
+
`,
|
|
35
|
+
),
|
|
24
36
|
|
|
25
37
|
any_provider_allowed: z.boolean(),
|
|
26
|
-
any_device_allowed: z.boolean(),
|
|
27
38
|
login_successful: z.boolean(),
|
|
28
39
|
status: z.enum(['pending', 'failed', 'authorized']),
|
|
29
40
|
custom_redirect_url: z.string().url().nullable(),
|