@seamapi/types 1.242.0 → 1.243.0

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.
Files changed (47) hide show
  1. package/dist/connect.cjs +134 -45
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +484 -62
  4. package/dist/devicedb.cjs +9 -6
  5. package/dist/devicedb.cjs.map +1 -1
  6. package/dist/devicedb.d.cts +123 -70
  7. package/lib/seam/connect/models/acs/acs-system.d.ts +86 -42
  8. package/lib/seam/connect/models/acs/acs-system.js +23 -20
  9. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-user.d.ts +8 -8
  11. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +5 -5
  12. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +5 -5
  13. package/lib/seam/connect/models/devices/device-metadata.d.ts +78 -0
  14. package/lib/seam/connect/models/devices/device-metadata.js +14 -0
  15. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  16. package/lib/seam/connect/models/devices/device.d.ts +108 -6
  17. package/lib/seam/connect/models/devices/phone.d.ts +83 -5
  18. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +83 -5
  19. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +3 -3
  20. package/lib/seam/connect/models/thermostats/climate-preset.js +1 -1
  21. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
  22. package/lib/seam/connect/models/thermostats/index.d.ts +1 -1
  23. package/lib/seam/connect/models/thermostats/index.js +1 -1
  24. package/lib/seam/connect/models/thermostats/index.js.map +1 -1
  25. package/lib/seam/connect/models/thermostats/{climate-setting-schedule.js → thermostat-schedule.js} +1 -1
  26. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -0
  27. package/lib/seam/connect/openapi.d.ts +49 -0
  28. package/lib/seam/connect/openapi.js +87 -22
  29. package/lib/seam/connect/openapi.js.map +1 -1
  30. package/lib/seam/connect/route-types.d.ts +208 -36
  31. package/lib/seam/devicedb/models/device-model.d.ts +59 -24
  32. package/lib/seam/devicedb/models/device-model.js +9 -6
  33. package/lib/seam/devicedb/models/device-model.js.map +1 -1
  34. package/lib/seam/devicedb/route-specs.d.ts +56 -38
  35. package/lib/seam/devicedb/route-types.d.ts +8 -8
  36. package/package.json +1 -1
  37. package/src/lib/seam/connect/models/acs/acs-system.ts +32 -24
  38. package/src/lib/seam/connect/models/devices/device-metadata.ts +16 -0
  39. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +1 -1
  40. package/src/lib/seam/connect/models/thermostats/index.ts +1 -1
  41. package/src/lib/seam/connect/openapi.ts +90 -22
  42. package/src/lib/seam/connect/route-types.ts +236 -36
  43. package/src/lib/seam/devicedb/models/device-model.ts +24 -19
  44. package/src/lib/seam/devicedb/route-types.ts +8 -8
  45. package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +0 -1
  46. /package/lib/seam/connect/models/thermostats/{climate-setting-schedule.d.ts → thermostat-schedule.d.ts} +0 -0
  47. /package/src/lib/seam/connect/models/thermostats/{climate-setting-schedule.ts → thermostat-schedule.ts} +0 -0
@@ -3634,15 +3634,23 @@ export interface Routes {
3634
3634
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3635
3635
  message: string
3636
3636
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
3637
- error_code: 'salto_site_user_limit_reached'
3637
+ error_code: 'salto_ks_subscription_limit_exceeded'
3638
+ }
3639
+ | {
3640
+ /** Date and time at which Seam created the error. */
3641
+ created_at: string
3642
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3643
+ message: string
3644
+ /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
3645
+ error_code: 'acs_system_disconnected'
3638
3646
  }
3639
3647
  | {
3640
3648
  /** Date and time at which Seam created the error. */
3641
3649
  created_at: string
3642
3650
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3643
3651
  message: string
3644
- /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
3645
- error_code: 'salto_seam_integration_blocked'
3652
+ /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
3653
+ error_code: 'account_disconnected'
3646
3654
  }
3647
3655
  >
3648
3656
  /** Warnings associated with the `acs_system`. */
@@ -3651,8 +3659,8 @@ export interface Routes {
3651
3659
  created_at: string
3652
3660
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
3653
3661
  message: string
3654
- /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
3655
- warning_code: 'salto_site_user_limit_almost_reached'
3662
+ /** Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this. */
3663
+ warning_code: 'salto_ks_subscription_limit_almost_reached'
3656
3664
  }>
3657
3665
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
3658
3666
  can_automate_enrollment?: boolean | undefined
@@ -3754,15 +3762,23 @@ export interface Routes {
3754
3762
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3755
3763
  message: string
3756
3764
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
3757
- error_code: 'salto_site_user_limit_reached'
3765
+ error_code: 'salto_ks_subscription_limit_exceeded'
3766
+ }
3767
+ | {
3768
+ /** Date and time at which Seam created the error. */
3769
+ created_at: string
3770
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3771
+ message: string
3772
+ /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
3773
+ error_code: 'acs_system_disconnected'
3758
3774
  }
3759
3775
  | {
3760
3776
  /** Date and time at which Seam created the error. */
3761
3777
  created_at: string
3762
3778
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3763
3779
  message: string
3764
- /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
3765
- error_code: 'salto_seam_integration_blocked'
3780
+ /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
3781
+ error_code: 'account_disconnected'
3766
3782
  }
3767
3783
  >
3768
3784
  /** Warnings associated with the `acs_system`. */
@@ -3771,8 +3787,8 @@ export interface Routes {
3771
3787
  created_at: string
3772
3788
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
3773
3789
  message: string
3774
- /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
3775
- warning_code: 'salto_site_user_limit_almost_reached'
3790
+ /** Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this. */
3791
+ warning_code: 'salto_ks_subscription_limit_almost_reached'
3776
3792
  }>
3777
3793
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
3778
3794
  can_automate_enrollment?: boolean | undefined
@@ -3874,15 +3890,23 @@ export interface Routes {
3874
3890
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3875
3891
  message: string
3876
3892
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
3877
- error_code: 'salto_site_user_limit_reached'
3893
+ error_code: 'salto_ks_subscription_limit_exceeded'
3878
3894
  }
3879
3895
  | {
3880
3896
  /** Date and time at which Seam created the error. */
3881
3897
  created_at: string
3882
3898
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3883
3899
  message: string
3884
- /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
3885
- error_code: 'salto_seam_integration_blocked'
3900
+ /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
3901
+ error_code: 'acs_system_disconnected'
3902
+ }
3903
+ | {
3904
+ /** Date and time at which Seam created the error. */
3905
+ created_at: string
3906
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3907
+ message: string
3908
+ /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
3909
+ error_code: 'account_disconnected'
3886
3910
  }
3887
3911
  >
3888
3912
  /** Warnings associated with the `acs_system`. */
@@ -3891,8 +3915,8 @@ export interface Routes {
3891
3915
  created_at: string
3892
3916
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
3893
3917
  message: string
3894
- /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
3895
- warning_code: 'salto_site_user_limit_almost_reached'
3918
+ /** Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this. */
3919
+ warning_code: 'salto_ks_subscription_limit_almost_reached'
3896
3920
  }>
3897
3921
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
3898
3922
  can_automate_enrollment?: boolean | undefined
@@ -6277,6 +6301,20 @@ export interface Routes {
6277
6301
  lock_id: number
6278
6302
  lock_alias: string
6279
6303
  feature_value: string
6304
+ features: {
6305
+ passcode: boolean
6306
+ passcode_management: boolean
6307
+ unlock_via_gateway: boolean
6308
+ lock_command: boolean
6309
+ incomplete_keyboard_passcode: boolean
6310
+ }
6311
+ has_gateway?: boolean | undefined
6312
+ wireless_keypads?:
6313
+ | Array<{
6314
+ wireless_keypad_id: number
6315
+ wireless_keypad_name: string
6316
+ }>
6317
+ | undefined
6280
6318
  }
6281
6319
  | undefined
6282
6320
  seam_bridge_metadata?:
@@ -6479,7 +6517,7 @@ export interface Routes {
6479
6517
  climate_preset_key: string
6480
6518
  can_edit: boolean
6481
6519
  can_delete: boolean
6482
- name: string | null
6520
+ name?: string | null
6483
6521
  display_name: string
6484
6522
  fan_mode_setting?: ('auto' | 'on') | undefined
6485
6523
  hvac_mode_setting?:
@@ -7022,6 +7060,20 @@ export interface Routes {
7022
7060
  lock_id: number
7023
7061
  lock_alias: string
7024
7062
  feature_value: string
7063
+ features: {
7064
+ passcode: boolean
7065
+ passcode_management: boolean
7066
+ unlock_via_gateway: boolean
7067
+ lock_command: boolean
7068
+ incomplete_keyboard_passcode: boolean
7069
+ }
7070
+ has_gateway?: boolean | undefined
7071
+ wireless_keypads?:
7072
+ | Array<{
7073
+ wireless_keypad_id: number
7074
+ wireless_keypad_name: string
7075
+ }>
7076
+ | undefined
7025
7077
  }
7026
7078
  | undefined
7027
7079
  seam_bridge_metadata?:
@@ -7224,7 +7276,7 @@ export interface Routes {
7224
7276
  climate_preset_key: string
7225
7277
  can_edit: boolean
7226
7278
  can_delete: boolean
7227
- name: string | null
7279
+ name?: string | null
7228
7280
  display_name: string
7229
7281
  fan_mode_setting?: ('auto' | 'on') | undefined
7230
7282
  hvac_mode_setting?:
@@ -8433,6 +8485,20 @@ export interface Routes {
8433
8485
  lock_id: number
8434
8486
  lock_alias: string
8435
8487
  feature_value: string
8488
+ features: {
8489
+ passcode: boolean
8490
+ passcode_management: boolean
8491
+ unlock_via_gateway: boolean
8492
+ lock_command: boolean
8493
+ incomplete_keyboard_passcode: boolean
8494
+ }
8495
+ has_gateway?: boolean | undefined
8496
+ wireless_keypads?:
8497
+ | Array<{
8498
+ wireless_keypad_id: number
8499
+ wireless_keypad_name: string
8500
+ }>
8501
+ | undefined
8436
8502
  }
8437
8503
  | undefined
8438
8504
  seam_bridge_metadata?:
@@ -8635,7 +8701,7 @@ export interface Routes {
8635
8701
  climate_preset_key: string
8636
8702
  can_edit: boolean
8637
8703
  can_delete: boolean
8638
- name: string | null
8704
+ name?: string | null
8639
8705
  display_name: string
8640
8706
  fan_mode_setting?: ('auto' | 'on') | undefined
8641
8707
  hvac_mode_setting?:
@@ -9012,6 +9078,20 @@ export interface Routes {
9012
9078
  lock_id: number
9013
9079
  lock_alias: string
9014
9080
  feature_value: string
9081
+ features: {
9082
+ passcode: boolean
9083
+ passcode_management: boolean
9084
+ unlock_via_gateway: boolean
9085
+ lock_command: boolean
9086
+ incomplete_keyboard_passcode: boolean
9087
+ }
9088
+ has_gateway?: boolean | undefined
9089
+ wireless_keypads?:
9090
+ | Array<{
9091
+ wireless_keypad_id: number
9092
+ wireless_keypad_name: string
9093
+ }>
9094
+ | undefined
9015
9095
  }
9016
9096
  | undefined
9017
9097
  seam_bridge_metadata?:
@@ -9214,7 +9294,7 @@ export interface Routes {
9214
9294
  climate_preset_key: string
9215
9295
  can_edit: boolean
9216
9296
  can_delete: boolean
9217
- name: string | null
9297
+ name?: string | null
9218
9298
  display_name: string
9219
9299
  fan_mode_setting?: ('auto' | 'on') | undefined
9220
9300
  hvac_mode_setting?:
@@ -9757,6 +9837,20 @@ export interface Routes {
9757
9837
  lock_id: number
9758
9838
  lock_alias: string
9759
9839
  feature_value: string
9840
+ features: {
9841
+ passcode: boolean
9842
+ passcode_management: boolean
9843
+ unlock_via_gateway: boolean
9844
+ lock_command: boolean
9845
+ incomplete_keyboard_passcode: boolean
9846
+ }
9847
+ has_gateway?: boolean | undefined
9848
+ wireless_keypads?:
9849
+ | Array<{
9850
+ wireless_keypad_id: number
9851
+ wireless_keypad_name: string
9852
+ }>
9853
+ | undefined
9760
9854
  }
9761
9855
  | undefined
9762
9856
  seam_bridge_metadata?:
@@ -9959,7 +10053,7 @@ export interface Routes {
9959
10053
  climate_preset_key: string
9960
10054
  can_edit: boolean
9961
10055
  can_delete: boolean
9962
- name: string | null
10056
+ name?: string | null
9963
10057
  display_name: string
9964
10058
  fan_mode_setting?: ('auto' | 'on') | undefined
9965
10059
  hvac_mode_setting?:
@@ -10336,6 +10430,20 @@ export interface Routes {
10336
10430
  lock_id: number
10337
10431
  lock_alias: string
10338
10432
  feature_value: string
10433
+ features: {
10434
+ passcode: boolean
10435
+ passcode_management: boolean
10436
+ unlock_via_gateway: boolean
10437
+ lock_command: boolean
10438
+ incomplete_keyboard_passcode: boolean
10439
+ }
10440
+ has_gateway?: boolean | undefined
10441
+ wireless_keypads?:
10442
+ | Array<{
10443
+ wireless_keypad_id: number
10444
+ wireless_keypad_name: string
10445
+ }>
10446
+ | undefined
10339
10447
  }
10340
10448
  | undefined
10341
10449
  seam_bridge_metadata?:
@@ -10538,7 +10646,7 @@ export interface Routes {
10538
10646
  climate_preset_key: string
10539
10647
  can_edit: boolean
10540
10648
  can_delete: boolean
10541
- name: string | null
10649
+ name?: string | null
10542
10650
  display_name: string
10543
10651
  fan_mode_setting?: ('auto' | 'on') | undefined
10544
10652
  hvac_mode_setting?:
@@ -12007,6 +12115,20 @@ export interface Routes {
12007
12115
  lock_id: number
12008
12116
  lock_alias: string
12009
12117
  feature_value: string
12118
+ features: {
12119
+ passcode: boolean
12120
+ passcode_management: boolean
12121
+ unlock_via_gateway: boolean
12122
+ lock_command: boolean
12123
+ incomplete_keyboard_passcode: boolean
12124
+ }
12125
+ has_gateway?: boolean | undefined
12126
+ wireless_keypads?:
12127
+ | Array<{
12128
+ wireless_keypad_id: number
12129
+ wireless_keypad_name: string
12130
+ }>
12131
+ | undefined
12010
12132
  }
12011
12133
  | undefined
12012
12134
  seam_bridge_metadata?:
@@ -12209,7 +12331,7 @@ export interface Routes {
12209
12331
  climate_preset_key: string
12210
12332
  can_edit: boolean
12211
12333
  can_delete: boolean
12212
- name: string | null
12334
+ name?: string | null
12213
12335
  display_name: string
12214
12336
  fan_mode_setting?: ('auto' | 'on') | undefined
12215
12337
  hvac_mode_setting?:
@@ -12586,6 +12708,20 @@ export interface Routes {
12586
12708
  lock_id: number
12587
12709
  lock_alias: string
12588
12710
  feature_value: string
12711
+ features: {
12712
+ passcode: boolean
12713
+ passcode_management: boolean
12714
+ unlock_via_gateway: boolean
12715
+ lock_command: boolean
12716
+ incomplete_keyboard_passcode: boolean
12717
+ }
12718
+ has_gateway?: boolean | undefined
12719
+ wireless_keypads?:
12720
+ | Array<{
12721
+ wireless_keypad_id: number
12722
+ wireless_keypad_name: string
12723
+ }>
12724
+ | undefined
12589
12725
  }
12590
12726
  | undefined
12591
12727
  seam_bridge_metadata?:
@@ -12788,7 +12924,7 @@ export interface Routes {
12788
12924
  climate_preset_key: string
12789
12925
  can_edit: boolean
12790
12926
  can_delete: boolean
12791
- name: string | null
12927
+ name?: string | null
12792
12928
  display_name: string
12793
12929
  fan_mode_setting?: ('auto' | 'on') | undefined
12794
12930
  hvac_mode_setting?:
@@ -15384,7 +15520,7 @@ export interface Routes {
15384
15520
  jsonBody: {
15385
15521
  device_id: string
15386
15522
  climate_preset_key: string
15387
- name: string | null
15523
+ name?: string | null
15388
15524
  fan_mode_setting?: ('auto' | 'on') | undefined
15389
15525
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
15390
15526
  cooling_set_point_celsius?: number | undefined
@@ -15400,7 +15536,7 @@ export interface Routes {
15400
15536
  climate_preset_key: string
15401
15537
  can_edit: boolean
15402
15538
  can_delete: boolean
15403
- name: string | null
15539
+ name?: string | null
15404
15540
  display_name: string
15405
15541
  fan_mode_setting?: ('auto' | 'on') | undefined
15406
15542
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
@@ -15727,6 +15863,20 @@ export interface Routes {
15727
15863
  lock_id: number
15728
15864
  lock_alias: string
15729
15865
  feature_value: string
15866
+ features: {
15867
+ passcode: boolean
15868
+ passcode_management: boolean
15869
+ unlock_via_gateway: boolean
15870
+ lock_command: boolean
15871
+ incomplete_keyboard_passcode: boolean
15872
+ }
15873
+ has_gateway?: boolean | undefined
15874
+ wireless_keypads?:
15875
+ | Array<{
15876
+ wireless_keypad_id: number
15877
+ wireless_keypad_name: string
15878
+ }>
15879
+ | undefined
15730
15880
  }
15731
15881
  | undefined
15732
15882
  seam_bridge_metadata?:
@@ -15929,7 +16079,7 @@ export interface Routes {
15929
16079
  climate_preset_key: string
15930
16080
  can_edit: boolean
15931
16081
  can_delete: boolean
15932
- name: string | null
16082
+ name?: string | null
15933
16083
  display_name: string
15934
16084
  fan_mode_setting?: ('auto' | 'on') | undefined
15935
16085
  hvac_mode_setting?:
@@ -17370,6 +17520,20 @@ export interface Routes {
17370
17520
  lock_id: number
17371
17521
  lock_alias: string
17372
17522
  feature_value: string
17523
+ features: {
17524
+ passcode: boolean
17525
+ passcode_management: boolean
17526
+ unlock_via_gateway: boolean
17527
+ lock_command: boolean
17528
+ incomplete_keyboard_passcode: boolean
17529
+ }
17530
+ has_gateway?: boolean | undefined
17531
+ wireless_keypads?:
17532
+ | Array<{
17533
+ wireless_keypad_id: number
17534
+ wireless_keypad_name: string
17535
+ }>
17536
+ | undefined
17373
17537
  }
17374
17538
  | undefined
17375
17539
  seam_bridge_metadata?:
@@ -17572,7 +17736,7 @@ export interface Routes {
17572
17736
  climate_preset_key: string
17573
17737
  can_edit: boolean
17574
17738
  can_delete: boolean
17575
- name: string | null
17739
+ name?: string | null
17576
17740
  display_name: string
17577
17741
  fan_mode_setting?: ('auto' | 'on') | undefined
17578
17742
  hvac_mode_setting?:
@@ -18692,7 +18856,7 @@ export interface Routes {
18692
18856
  jsonBody: {
18693
18857
  device_id: string
18694
18858
  climate_preset_key: string
18695
- name: string | null
18859
+ name?: string | null
18696
18860
  fan_mode_setting?: ('auto' | 'on') | undefined
18697
18861
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
18698
18862
  cooling_set_point_celsius?: number | undefined
@@ -18708,7 +18872,7 @@ export interface Routes {
18708
18872
  climate_preset_key: string
18709
18873
  can_edit: boolean
18710
18874
  can_delete: boolean
18711
- name: string | null
18875
+ name?: string | null
18712
18876
  display_name: string
18713
18877
  fan_mode_setting?: ('auto' | 'on') | undefined
18714
18878
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
@@ -19203,6 +19367,20 @@ export interface Routes {
19203
19367
  lock_id: number
19204
19368
  lock_alias: string
19205
19369
  feature_value: string
19370
+ features: {
19371
+ passcode: boolean
19372
+ passcode_management: boolean
19373
+ unlock_via_gateway: boolean
19374
+ lock_command: boolean
19375
+ incomplete_keyboard_passcode: boolean
19376
+ }
19377
+ has_gateway?: boolean | undefined
19378
+ wireless_keypads?:
19379
+ | Array<{
19380
+ wireless_keypad_id: number
19381
+ wireless_keypad_name: string
19382
+ }>
19383
+ | undefined
19206
19384
  }
19207
19385
  | undefined
19208
19386
  seam_bridge_metadata?:
@@ -19405,7 +19583,7 @@ export interface Routes {
19405
19583
  climate_preset_key: string
19406
19584
  can_edit: boolean
19407
19585
  can_delete: boolean
19408
- name: string | null
19586
+ name?: string | null
19409
19587
  display_name: string
19410
19588
  fan_mode_setting?: ('auto' | 'on') | undefined
19411
19589
  hvac_mode_setting?:
@@ -19784,6 +19962,20 @@ export interface Routes {
19784
19962
  lock_id: number
19785
19963
  lock_alias: string
19786
19964
  feature_value: string
19965
+ features: {
19966
+ passcode: boolean
19967
+ passcode_management: boolean
19968
+ unlock_via_gateway: boolean
19969
+ lock_command: boolean
19970
+ incomplete_keyboard_passcode: boolean
19971
+ }
19972
+ has_gateway?: boolean | undefined
19973
+ wireless_keypads?:
19974
+ | Array<{
19975
+ wireless_keypad_id: number
19976
+ wireless_keypad_name: string
19977
+ }>
19978
+ | undefined
19787
19979
  }
19788
19980
  | undefined
19789
19981
  seam_bridge_metadata?:
@@ -19986,7 +20178,7 @@ export interface Routes {
19986
20178
  climate_preset_key: string
19987
20179
  can_edit: boolean
19988
20180
  can_delete: boolean
19989
- name: string | null
20181
+ name?: string | null
19990
20182
  display_name: string
19991
20183
  fan_mode_setting?: ('auto' | 'on') | undefined
19992
20184
  hvac_mode_setting?:
@@ -20161,15 +20353,23 @@ export interface Routes {
20161
20353
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
20162
20354
  message: string
20163
20355
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
20164
- error_code: 'salto_site_user_limit_reached'
20356
+ error_code: 'salto_ks_subscription_limit_exceeded'
20357
+ }
20358
+ | {
20359
+ /** Date and time at which Seam created the error. */
20360
+ created_at: string
20361
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
20362
+ message: string
20363
+ /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
20364
+ error_code: 'acs_system_disconnected'
20165
20365
  }
20166
20366
  | {
20167
20367
  /** Date and time at which Seam created the error. */
20168
20368
  created_at: string
20169
20369
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
20170
20370
  message: string
20171
- /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
20172
- error_code: 'salto_seam_integration_blocked'
20371
+ /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
20372
+ error_code: 'account_disconnected'
20173
20373
  }
20174
20374
  >
20175
20375
  /** Warnings associated with the `acs_system`. */
@@ -20178,8 +20378,8 @@ export interface Routes {
20178
20378
  created_at: string
20179
20379
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
20180
20380
  message: string
20181
- /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
20182
- warning_code: 'salto_site_user_limit_almost_reached'
20381
+ /** Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this. */
20382
+ warning_code: 'salto_ks_subscription_limit_almost_reached'
20183
20383
  }>
20184
20384
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
20185
20385
  can_automate_enrollment?: boolean | undefined
@@ -55,10 +55,6 @@ const smartlock = z
55
55
  can_remotely_unlock: true,
56
56
  can_program_offline_access_codes: true,
57
57
  can_program_online_access_codes: true,
58
- can_hvac_heat: true,
59
- can_hvac_cool: true,
60
- can_hvac_heat_cool: true,
61
- can_turn_off_hvac: true,
62
58
  }),
63
59
  )
64
60
 
@@ -72,21 +68,30 @@ const sensor = z.object({
72
68
  }),
73
69
  })
74
70
 
75
- export const thermostat = z.object({
76
- main_category: z.literal(device_category.enum.thermostat),
77
- physical_properties: z.object({
78
- available_modes: z.enum(['heat', 'cool', 'fan', 'eco']).array(),
79
- is_heat_pump_compatible: z.boolean(),
80
- has_occupancy_detection: z.boolean(),
81
- supports_demand_response: z.boolean(),
82
- has_humidity_sensor: z.boolean(),
83
- has_temperature_sensor: z.boolean(),
84
- supports_emergency_heating_mode: z.boolean(),
85
- }),
86
- software_features: z.object({
87
- can_program_climate_schedules: z.boolean(),
88
- }),
89
- })
71
+ export const thermostat = z
72
+ .object({
73
+ main_category: z.literal(device_category.enum.thermostat),
74
+ physical_properties: z.object({
75
+ available_modes: z.enum(['heat', 'cool', 'fan', 'eco']).array(),
76
+ is_heat_pump_compatible: z.boolean(),
77
+ has_occupancy_detection: z.boolean(),
78
+ supports_demand_response: z.boolean(),
79
+ has_humidity_sensor: z.boolean(),
80
+ has_temperature_sensor: z.boolean(),
81
+ supports_emergency_heating_mode: z.boolean(),
82
+ }),
83
+ software_features: z.object({
84
+ can_program_climate_schedules: z.boolean(),
85
+ }),
86
+ })
87
+ .merge(
88
+ device_model_capability_flags.pick({
89
+ can_hvac_heat: true,
90
+ can_hvac_cool: true,
91
+ can_hvac_heat_cool: true,
92
+ can_turn_off_hvac: true,
93
+ }),
94
+ )
90
95
 
91
96
  export type ThermostatProperties = z.infer<typeof thermostat>
92
97
 
@@ -112,10 +112,6 @@ export interface Routes {
112
112
  can_remotely_unlock?: true | undefined
113
113
  can_program_offline_access_codes?: true | undefined
114
114
  can_program_online_access_codes?: true | undefined
115
- can_hvac_heat?: true | undefined
116
- can_hvac_cool?: true | undefined
117
- can_hvac_heat_cool?: true | undefined
118
- can_turn_off_hvac?: true | undefined
119
115
  }
120
116
  | {
121
117
  main_category: 'sensor'
@@ -140,6 +136,10 @@ export interface Routes {
140
136
  software_features: {
141
137
  can_program_climate_schedules: boolean
142
138
  }
139
+ can_hvac_heat?: true | undefined
140
+ can_hvac_cool?: true | undefined
141
+ can_hvac_heat_cool?: true | undefined
142
+ can_turn_off_hvac?: true | undefined
143
143
  }
144
144
  | {
145
145
  main_category: 'relay'
@@ -304,10 +304,6 @@ export interface Routes {
304
304
  can_remotely_unlock?: true | undefined
305
305
  can_program_offline_access_codes?: true | undefined
306
306
  can_program_online_access_codes?: true | undefined
307
- can_hvac_heat?: true | undefined
308
- can_hvac_cool?: true | undefined
309
- can_hvac_heat_cool?: true | undefined
310
- can_turn_off_hvac?: true | undefined
311
307
  }
312
308
  | {
313
309
  main_category: 'sensor'
@@ -332,6 +328,10 @@ export interface Routes {
332
328
  software_features: {
333
329
  can_program_climate_schedules: boolean
334
330
  }
331
+ can_hvac_heat?: true | undefined
332
+ can_hvac_cool?: true | undefined
333
+ can_hvac_heat_cool?: true | undefined
334
+ can_turn_off_hvac?: true | undefined
335
335
  }
336
336
  | {
337
337
  main_category: 'relay'
@@ -1 +0,0 @@
1
- {"version":3,"file":"climate-setting-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACtE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC;SACN,GAAG,EAAE;SACL,QAAQ,CACP,+ZAA+Z,CACha;CACJ,CAAC,CAAA"}