@seamapi/types 1.242.0 → 1.242.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.
Files changed (43) hide show
  1. package/dist/connect.cjs +77 -42
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +120 -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.d.ts +6 -6
  14. package/lib/seam/connect/models/devices/phone.d.ts +5 -5
  15. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -5
  16. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +3 -3
  17. package/lib/seam/connect/models/thermostats/climate-preset.js +1 -1
  18. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
  19. package/lib/seam/connect/models/thermostats/index.d.ts +1 -1
  20. package/lib/seam/connect/models/thermostats/index.js +1 -1
  21. package/lib/seam/connect/models/thermostats/index.js.map +1 -1
  22. package/lib/seam/connect/models/thermostats/{climate-setting-schedule.js → thermostat-schedule.js} +1 -1
  23. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -0
  24. package/lib/seam/connect/openapi.d.ts +9 -0
  25. package/lib/seam/connect/openapi.js +46 -21
  26. package/lib/seam/connect/openapi.js.map +1 -1
  27. package/lib/seam/connect/route-types.d.ts +64 -36
  28. package/lib/seam/devicedb/models/device-model.d.ts +59 -24
  29. package/lib/seam/devicedb/models/device-model.js +9 -6
  30. package/lib/seam/devicedb/models/device-model.js.map +1 -1
  31. package/lib/seam/devicedb/route-specs.d.ts +56 -38
  32. package/lib/seam/devicedb/route-types.d.ts +8 -8
  33. package/package.json +1 -1
  34. package/src/lib/seam/connect/models/acs/acs-system.ts +32 -24
  35. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +1 -1
  36. package/src/lib/seam/connect/models/thermostats/index.ts +1 -1
  37. package/src/lib/seam/connect/openapi.ts +49 -21
  38. package/src/lib/seam/connect/route-types.ts +68 -36
  39. package/src/lib/seam/devicedb/models/device-model.ts +24 -19
  40. package/src/lib/seam/devicedb/route-types.ts +8 -8
  41. package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +0 -1
  42. /package/lib/seam/connect/models/thermostats/{climate-setting-schedule.d.ts → thermostat-schedule.d.ts} +0 -0
  43. /package/src/lib/seam/connect/models/thermostats/{climate-setting-schedule.ts → thermostat-schedule.ts} +0 -0
@@ -827,41 +827,54 @@ declare const acs_system: z.ZodObject<z.objectUtil.extendShape<{
827
827
  created_at: z.ZodString;
828
828
  message: z.ZodString;
829
829
  }, {
830
- error_code: z.ZodLiteral<"salto_site_user_limit_reached">;
830
+ error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
831
+ }>, "strip", z.ZodTypeAny, {
832
+ message: string;
833
+ error_code: "salto_ks_subscription_limit_exceeded";
834
+ created_at: string;
835
+ }, {
836
+ message: string;
837
+ error_code: "salto_ks_subscription_limit_exceeded";
838
+ created_at: string;
839
+ }>, z.ZodObject<z.objectUtil.extendShape<{
840
+ created_at: z.ZodString;
841
+ message: z.ZodString;
842
+ }, {
843
+ error_code: z.ZodLiteral<"acs_system_disconnected">;
831
844
  }>, "strip", z.ZodTypeAny, {
832
845
  message: string;
833
- error_code: "salto_site_user_limit_reached";
846
+ error_code: "acs_system_disconnected";
834
847
  created_at: string;
835
848
  }, {
836
849
  message: string;
837
- error_code: "salto_site_user_limit_reached";
850
+ error_code: "acs_system_disconnected";
838
851
  created_at: string;
839
852
  }>, z.ZodObject<z.objectUtil.extendShape<{
840
853
  created_at: z.ZodString;
841
854
  message: z.ZodString;
842
855
  }, {
843
- error_code: z.ZodLiteral<"salto_seam_integration_blocked">;
856
+ error_code: z.ZodLiteral<"account_disconnected">;
844
857
  }>, "strip", z.ZodTypeAny, {
845
858
  message: string;
846
- error_code: "salto_seam_integration_blocked";
859
+ error_code: "account_disconnected";
847
860
  created_at: string;
848
861
  }, {
849
862
  message: string;
850
- error_code: "salto_seam_integration_blocked";
863
+ error_code: "account_disconnected";
851
864
  created_at: string;
852
865
  }>]>, "many">;
853
866
  warnings: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
854
867
  created_at: z.ZodString;
855
868
  message: z.ZodString;
856
869
  }, {
857
- warning_code: z.ZodLiteral<"salto_site_user_limit_almost_reached">;
870
+ warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
858
871
  }>, "strip", z.ZodTypeAny, {
859
872
  message: string;
860
- warning_code: "salto_site_user_limit_almost_reached";
873
+ warning_code: "salto_ks_subscription_limit_almost_reached";
861
874
  created_at: string;
862
875
  }, {
863
876
  message: string;
864
- warning_code: "salto_site_user_limit_almost_reached";
877
+ warning_code: "salto_ks_subscription_limit_almost_reached";
865
878
  created_at: string;
866
879
  }>, "many">;
867
880
  }, {
@@ -881,16 +894,20 @@ declare const acs_system: z.ZodObject<z.objectUtil.extendShape<{
881
894
  created_at: string;
882
895
  } | {
883
896
  message: string;
884
- error_code: "salto_site_user_limit_reached";
897
+ error_code: "salto_ks_subscription_limit_exceeded";
885
898
  created_at: string;
886
899
  } | {
887
900
  message: string;
888
- error_code: "salto_seam_integration_blocked";
901
+ error_code: "acs_system_disconnected";
902
+ created_at: string;
903
+ } | {
904
+ message: string;
905
+ error_code: "account_disconnected";
889
906
  created_at: string;
890
907
  })[];
891
908
  warnings: {
892
909
  message: string;
893
- warning_code: "salto_site_user_limit_almost_reached";
910
+ warning_code: "salto_ks_subscription_limit_almost_reached";
894
911
  created_at: string;
895
912
  }[];
896
913
  name: string;
@@ -924,16 +941,20 @@ declare const acs_system: z.ZodObject<z.objectUtil.extendShape<{
924
941
  created_at: string;
925
942
  } | {
926
943
  message: string;
927
- error_code: "salto_site_user_limit_reached";
944
+ error_code: "salto_ks_subscription_limit_exceeded";
945
+ created_at: string;
946
+ } | {
947
+ message: string;
948
+ error_code: "acs_system_disconnected";
928
949
  created_at: string;
929
950
  } | {
930
951
  message: string;
931
- error_code: "salto_seam_integration_blocked";
952
+ error_code: "account_disconnected";
932
953
  created_at: string;
933
954
  })[];
934
955
  warnings: {
935
956
  message: string;
936
- warning_code: "salto_site_user_limit_almost_reached";
957
+ warning_code: "salto_ks_subscription_limit_almost_reached";
937
958
  created_at: string;
938
959
  }[];
939
960
  name: string;
@@ -4254,7 +4275,7 @@ declare const device: z.ZodObject<z.objectUtil.extendShape<{
4254
4275
  climate_preset_key: z.ZodOptional<z.ZodString>;
4255
4276
  can_edit: z.ZodOptional<z.ZodBoolean>;
4256
4277
  can_delete: z.ZodOptional<z.ZodBoolean>;
4257
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4278
+ name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
4258
4279
  display_name: z.ZodOptional<z.ZodString>;
4259
4280
  fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
4260
4281
  hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
@@ -4294,7 +4315,7 @@ declare const device: z.ZodObject<z.objectUtil.extendShape<{
4294
4315
  climate_preset_key: z.ZodOptional<z.ZodString>;
4295
4316
  can_edit: z.ZodOptional<z.ZodBoolean>;
4296
4317
  can_delete: z.ZodOptional<z.ZodBoolean>;
4297
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4318
+ name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
4298
4319
  display_name: z.ZodOptional<z.ZodString>;
4299
4320
  fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
4300
4321
  hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
@@ -4334,7 +4355,7 @@ declare const device: z.ZodObject<z.objectUtil.extendShape<{
4334
4355
  climate_preset_key: z.ZodString;
4335
4356
  can_edit: z.ZodBoolean;
4336
4357
  can_delete: z.ZodBoolean;
4337
- name: z.ZodNullable<z.ZodString>;
4358
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4338
4359
  display_name: z.ZodString;
4339
4360
  fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on"]>>;
4340
4361
  hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
@@ -4360,9 +4381,9 @@ declare const device: z.ZodObject<z.objectUtil.extendShape<{
4360
4381
  climate_preset_key: string;
4361
4382
  can_edit: boolean;
4362
4383
  can_delete: boolean;
4363
- name: string | null;
4364
4384
  display_name: string;
4365
4385
  manual_override_allowed: boolean;
4386
+ name?: string | null | undefined;
4366
4387
  fan_mode_setting?: "auto" | "on" | undefined;
4367
4388
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
4368
4389
  cooling_set_point_celsius?: number | undefined;
@@ -4528,9 +4549,9 @@ declare const device: z.ZodObject<z.objectUtil.extendShape<{
4528
4549
  climate_preset_key: string;
4529
4550
  can_edit: boolean;
4530
4551
  can_delete: boolean;
4531
- name: string | null;
4532
4552
  display_name: string;
4533
4553
  manual_override_allowed: boolean;
4554
+ name?: string | null | undefined;
4534
4555
  fan_mode_setting?: "auto" | "on" | undefined;
4535
4556
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
4536
4557
  cooling_set_point_celsius?: number | undefined;
@@ -5310,9 +5331,9 @@ declare const device: z.ZodObject<z.objectUtil.extendShape<{
5310
5331
  climate_preset_key: string;
5311
5332
  can_edit: boolean;
5312
5333
  can_delete: boolean;
5313
- name: string | null;
5314
5334
  display_name: string;
5315
5335
  manual_override_allowed: boolean;
5336
+ name?: string | null | undefined;
5316
5337
  fan_mode_setting?: "auto" | "on" | undefined;
5317
5338
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
5318
5339
  cooling_set_point_celsius?: number | undefined;
@@ -6732,7 +6753,7 @@ declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.objectUti
6732
6753
  climate_preset_key: z.ZodOptional<z.ZodString>;
6733
6754
  can_edit: z.ZodOptional<z.ZodBoolean>;
6734
6755
  can_delete: z.ZodOptional<z.ZodBoolean>;
6735
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6756
+ name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
6736
6757
  display_name: z.ZodOptional<z.ZodString>;
6737
6758
  fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
6738
6759
  hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
@@ -6772,7 +6793,7 @@ declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.objectUti
6772
6793
  climate_preset_key: z.ZodOptional<z.ZodString>;
6773
6794
  can_edit: z.ZodOptional<z.ZodBoolean>;
6774
6795
  can_delete: z.ZodOptional<z.ZodBoolean>;
6775
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6796
+ name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
6776
6797
  display_name: z.ZodOptional<z.ZodString>;
6777
6798
  fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
6778
6799
  hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
@@ -6812,7 +6833,7 @@ declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.objectUti
6812
6833
  climate_preset_key: z.ZodString;
6813
6834
  can_edit: z.ZodBoolean;
6814
6835
  can_delete: z.ZodBoolean;
6815
- name: z.ZodNullable<z.ZodString>;
6836
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6816
6837
  display_name: z.ZodString;
6817
6838
  fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on"]>>;
6818
6839
  hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
@@ -6838,9 +6859,9 @@ declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.objectUti
6838
6859
  climate_preset_key: string;
6839
6860
  can_edit: boolean;
6840
6861
  can_delete: boolean;
6841
- name: string | null;
6842
6862
  display_name: string;
6843
6863
  manual_override_allowed: boolean;
6864
+ name?: string | null | undefined;
6844
6865
  fan_mode_setting?: "auto" | "on" | undefined;
6845
6866
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
6846
6867
  cooling_set_point_celsius?: number | undefined;
@@ -7006,9 +7027,9 @@ declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.objectUti
7006
7027
  climate_preset_key: string;
7007
7028
  can_edit: boolean;
7008
7029
  can_delete: boolean;
7009
- name: string | null;
7010
7030
  display_name: string;
7011
7031
  manual_override_allowed: boolean;
7032
+ name?: string | null | undefined;
7012
7033
  fan_mode_setting?: "auto" | "on" | undefined;
7013
7034
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
7014
7035
  cooling_set_point_celsius?: number | undefined;
@@ -11580,6 +11601,7 @@ declare const _default: {
11580
11601
  type: string;
11581
11602
  };
11582
11603
  name: {
11604
+ default: null;
11583
11605
  nullable: boolean;
11584
11606
  type: string;
11585
11607
  };
@@ -11638,6 +11660,7 @@ declare const _default: {
11638
11660
  type: string;
11639
11661
  };
11640
11662
  name: {
11663
+ default: null;
11641
11664
  nullable: boolean;
11642
11665
  type: string;
11643
11666
  };
@@ -11687,6 +11710,7 @@ declare const _default: {
11687
11710
  type: string;
11688
11711
  };
11689
11712
  name: {
11713
+ default: null;
11690
11714
  nullable: boolean;
11691
11715
  type: string;
11692
11716
  };
@@ -23410,6 +23434,7 @@ declare const _default: {
23410
23434
  type: string;
23411
23435
  };
23412
23436
  name: {
23437
+ default: null;
23413
23438
  nullable: boolean;
23414
23439
  type: string;
23415
23440
  };
@@ -23468,6 +23493,7 @@ declare const _default: {
23468
23493
  type: string;
23469
23494
  };
23470
23495
  name: {
23496
+ default: null;
23471
23497
  nullable: boolean;
23472
23498
  type: string;
23473
23499
  };
@@ -24745,6 +24771,7 @@ declare const _default: {
24745
24771
  type: string;
24746
24772
  };
24747
24773
  name: {
24774
+ default: null;
24748
24775
  nullable: boolean;
24749
24776
  type: string;
24750
24777
  };
@@ -24803,6 +24830,7 @@ declare const _default: {
24803
24830
  type: string;
24804
24831
  };
24805
24832
  name: {
24833
+ default: null;
24806
24834
  nullable: boolean;
24807
24835
  type: string;
24808
24836
  };
@@ -24887,6 +24915,7 @@ declare const _default: {
24887
24915
  type: string;
24888
24916
  };
24889
24917
  name: {
24918
+ default: null;
24890
24919
  nullable: boolean;
24891
24920
  type: string;
24892
24921
  };
@@ -24945,6 +24974,7 @@ declare const _default: {
24945
24974
  type: string;
24946
24975
  };
24947
24976
  name: {
24977
+ default: null;
24948
24978
  nullable: boolean;
24949
24979
  type: string;
24950
24980
  };
@@ -30406,14 +30436,21 @@ interface Routes {
30406
30436
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
30407
30437
  message: string;
30408
30438
  /** 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. */
30409
- error_code: 'salto_site_user_limit_reached';
30439
+ error_code: 'salto_ks_subscription_limit_exceeded';
30440
+ } | {
30441
+ /** Date and time at which Seam created the error. */
30442
+ created_at: string;
30443
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
30444
+ message: string;
30445
+ /** 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. */
30446
+ error_code: 'acs_system_disconnected';
30410
30447
  } | {
30411
30448
  /** Date and time at which Seam created the error. */
30412
30449
  created_at: string;
30413
30450
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
30414
30451
  message: string;
30415
- /** 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 */
30416
- error_code: 'salto_seam_integration_blocked';
30452
+ /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
30453
+ error_code: 'account_disconnected';
30417
30454
  }>;
30418
30455
  /** Warnings associated with the `acs_system`. */
30419
30456
  warnings: Array<{
@@ -30421,8 +30458,8 @@ interface Routes {
30421
30458
  created_at: string;
30422
30459
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
30423
30460
  message: string;
30424
- /** 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. */
30425
- warning_code: 'salto_site_user_limit_almost_reached';
30461
+ /** 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. */
30462
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
30426
30463
  }>;
30427
30464
  /** 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`. */
30428
30465
  can_automate_enrollment?: boolean | undefined;
@@ -30497,14 +30534,21 @@ interface Routes {
30497
30534
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
30498
30535
  message: string;
30499
30536
  /** 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. */
30500
- error_code: 'salto_site_user_limit_reached';
30537
+ error_code: 'salto_ks_subscription_limit_exceeded';
30538
+ } | {
30539
+ /** Date and time at which Seam created the error. */
30540
+ created_at: string;
30541
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
30542
+ message: string;
30543
+ /** 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. */
30544
+ error_code: 'acs_system_disconnected';
30501
30545
  } | {
30502
30546
  /** Date and time at which Seam created the error. */
30503
30547
  created_at: string;
30504
30548
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
30505
30549
  message: string;
30506
- /** 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 */
30507
- error_code: 'salto_seam_integration_blocked';
30550
+ /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
30551
+ error_code: 'account_disconnected';
30508
30552
  }>;
30509
30553
  /** Warnings associated with the `acs_system`. */
30510
30554
  warnings: Array<{
@@ -30512,8 +30556,8 @@ interface Routes {
30512
30556
  created_at: string;
30513
30557
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
30514
30558
  message: string;
30515
- /** 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. */
30516
- warning_code: 'salto_site_user_limit_almost_reached';
30559
+ /** 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. */
30560
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
30517
30561
  }>;
30518
30562
  /** 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`. */
30519
30563
  can_automate_enrollment?: boolean | undefined;
@@ -30588,14 +30632,21 @@ interface Routes {
30588
30632
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
30589
30633
  message: string;
30590
30634
  /** 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. */
30591
- error_code: 'salto_site_user_limit_reached';
30635
+ error_code: 'salto_ks_subscription_limit_exceeded';
30592
30636
  } | {
30593
30637
  /** Date and time at which Seam created the error. */
30594
30638
  created_at: string;
30595
30639
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
30596
30640
  message: string;
30597
- /** 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 */
30598
- error_code: 'salto_seam_integration_blocked';
30641
+ /** 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. */
30642
+ error_code: 'acs_system_disconnected';
30643
+ } | {
30644
+ /** Date and time at which Seam created the error. */
30645
+ created_at: string;
30646
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
30647
+ message: string;
30648
+ /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
30649
+ error_code: 'account_disconnected';
30599
30650
  }>;
30600
30651
  /** Warnings associated with the `acs_system`. */
30601
30652
  warnings: Array<{
@@ -30603,8 +30654,8 @@ interface Routes {
30603
30654
  created_at: string;
30604
30655
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
30605
30656
  message: string;
30606
- /** 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. */
30607
- warning_code: 'salto_site_user_limit_almost_reached';
30657
+ /** 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. */
30658
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
30608
30659
  }>;
30609
30660
  /** 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`. */
30610
30661
  can_automate_enrollment?: boolean | undefined;
@@ -32766,7 +32817,7 @@ interface Routes {
32766
32817
  climate_preset_key: string;
32767
32818
  can_edit: boolean;
32768
32819
  can_delete: boolean;
32769
- name: string | null;
32820
+ name?: string | null;
32770
32821
  display_name: string;
32771
32822
  fan_mode_setting?: ('auto' | 'on') | undefined;
32772
32823
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -33210,7 +33261,7 @@ interface Routes {
33210
33261
  climate_preset_key: string;
33211
33262
  can_edit: boolean;
33212
33263
  can_delete: boolean;
33213
- name: string | null;
33264
+ name?: string | null;
33214
33265
  display_name: string;
33215
33266
  fan_mode_setting?: ('auto' | 'on') | undefined;
33216
33267
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -34034,7 +34085,7 @@ interface Routes {
34034
34085
  climate_preset_key: string;
34035
34086
  can_edit: boolean;
34036
34087
  can_delete: boolean;
34037
- name: string | null;
34088
+ name?: string | null;
34038
34089
  display_name: string;
34039
34090
  fan_mode_setting?: ('auto' | 'on') | undefined;
34040
34091
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -34453,7 +34504,7 @@ interface Routes {
34453
34504
  climate_preset_key: string;
34454
34505
  can_edit: boolean;
34455
34506
  can_delete: boolean;
34456
- name: string | null;
34507
+ name?: string | null;
34457
34508
  display_name: string;
34458
34509
  fan_mode_setting?: ('auto' | 'on') | undefined;
34459
34510
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -34897,7 +34948,7 @@ interface Routes {
34897
34948
  climate_preset_key: string;
34898
34949
  can_edit: boolean;
34899
34950
  can_delete: boolean;
34900
- name: string | null;
34951
+ name?: string | null;
34901
34952
  display_name: string;
34902
34953
  fan_mode_setting?: ('auto' | 'on') | undefined;
34903
34954
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -35316,7 +35367,7 @@ interface Routes {
35316
35367
  climate_preset_key: string;
35317
35368
  can_edit: boolean;
35318
35369
  can_delete: boolean;
35319
- name: string | null;
35370
+ name?: string | null;
35320
35371
  display_name: string;
35321
35372
  fan_mode_setting?: ('auto' | 'on') | undefined;
35322
35373
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -36590,7 +36641,7 @@ interface Routes {
36590
36641
  climate_preset_key: string;
36591
36642
  can_edit: boolean;
36592
36643
  can_delete: boolean;
36593
- name: string | null;
36644
+ name?: string | null;
36594
36645
  display_name: string;
36595
36646
  fan_mode_setting?: ('auto' | 'on') | undefined;
36596
36647
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -37009,7 +37060,7 @@ interface Routes {
37009
37060
  climate_preset_key: string;
37010
37061
  can_edit: boolean;
37011
37062
  can_delete: boolean;
37012
- name: string | null;
37063
+ name?: string | null;
37013
37064
  display_name: string;
37014
37065
  fan_mode_setting?: ('auto' | 'on') | undefined;
37015
37066
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -39333,7 +39384,7 @@ interface Routes {
39333
39384
  jsonBody: {
39334
39385
  device_id: string;
39335
39386
  climate_preset_key: string;
39336
- name: string | null;
39387
+ name?: string | null;
39337
39388
  fan_mode_setting?: ('auto' | 'on') | undefined;
39338
39389
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
39339
39390
  cooling_set_point_celsius?: number | undefined;
@@ -39349,7 +39400,7 @@ interface Routes {
39349
39400
  climate_preset_key: string;
39350
39401
  can_edit: boolean;
39351
39402
  can_delete: boolean;
39352
- name: string | null;
39403
+ name?: string | null;
39353
39404
  display_name: string;
39354
39405
  fan_mode_setting?: ('auto' | 'on') | undefined;
39355
39406
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -39726,7 +39777,7 @@ interface Routes {
39726
39777
  climate_preset_key: string;
39727
39778
  can_edit: boolean;
39728
39779
  can_delete: boolean;
39729
- name: string | null;
39780
+ name?: string | null;
39730
39781
  display_name: string;
39731
39782
  fan_mode_setting?: ('auto' | 'on') | undefined;
39732
39783
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -40972,7 +41023,7 @@ interface Routes {
40972
41023
  climate_preset_key: string;
40973
41024
  can_edit: boolean;
40974
41025
  can_delete: boolean;
40975
- name: string | null;
41026
+ name?: string | null;
40976
41027
  display_name: string;
40977
41028
  fan_mode_setting?: ('auto' | 'on') | undefined;
40978
41029
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -41988,7 +42039,7 @@ interface Routes {
41988
42039
  jsonBody: {
41989
42040
  device_id: string;
41990
42041
  climate_preset_key: string;
41991
- name: string | null;
42042
+ name?: string | null;
41992
42043
  fan_mode_setting?: ('auto' | 'on') | undefined;
41993
42044
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
41994
42045
  cooling_set_point_celsius?: number | undefined;
@@ -42004,7 +42055,7 @@ interface Routes {
42004
42055
  climate_preset_key: string;
42005
42056
  can_edit: boolean;
42006
42057
  can_delete: boolean;
42007
- name: string | null;
42058
+ name?: string | null;
42008
42059
  display_name: string;
42009
42060
  fan_mode_setting?: ('auto' | 'on') | undefined;
42010
42061
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -42547,7 +42598,7 @@ interface Routes {
42547
42598
  climate_preset_key: string;
42548
42599
  can_edit: boolean;
42549
42600
  can_delete: boolean;
42550
- name: string | null;
42601
+ name?: string | null;
42551
42602
  display_name: string;
42552
42603
  fan_mode_setting?: ('auto' | 'on') | undefined;
42553
42604
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -42968,7 +43019,7 @@ interface Routes {
42968
43019
  climate_preset_key: string;
42969
43020
  can_edit: boolean;
42970
43021
  can_delete: boolean;
42971
- name: string | null;
43022
+ name?: string | null;
42972
43023
  display_name: string;
42973
43024
  fan_mode_setting?: ('auto' | 'on') | undefined;
42974
43025
  hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
@@ -43108,14 +43159,21 @@ interface Routes {
43108
43159
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
43109
43160
  message: string;
43110
43161
  /** 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. */
43111
- error_code: 'salto_site_user_limit_reached';
43162
+ error_code: 'salto_ks_subscription_limit_exceeded';
43163
+ } | {
43164
+ /** Date and time at which Seam created the error. */
43165
+ created_at: string;
43166
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
43167
+ message: string;
43168
+ /** 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. */
43169
+ error_code: 'acs_system_disconnected';
43112
43170
  } | {
43113
43171
  /** Date and time at which Seam created the error. */
43114
43172
  created_at: string;
43115
43173
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
43116
43174
  message: string;
43117
- /** 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 */
43118
- error_code: 'salto_seam_integration_blocked';
43175
+ /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
43176
+ error_code: 'account_disconnected';
43119
43177
  }>;
43120
43178
  /** Warnings associated with the `acs_system`. */
43121
43179
  warnings: Array<{
@@ -43123,8 +43181,8 @@ interface Routes {
43123
43181
  created_at: string;
43124
43182
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
43125
43183
  message: string;
43126
- /** 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. */
43127
- warning_code: 'salto_site_user_limit_almost_reached';
43184
+ /** 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. */
43185
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
43128
43186
  }>;
43129
43187
  /** 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`. */
43130
43188
  can_automate_enrollment?: boolean | undefined;
package/dist/devicedb.cjs CHANGED
@@ -131,11 +131,7 @@ var smartlock = zod.z.object({
131
131
  can_remotely_lock: true,
132
132
  can_remotely_unlock: true,
133
133
  can_program_offline_access_codes: true,
134
- can_program_online_access_codes: true,
135
- can_hvac_heat: true,
136
- can_hvac_cool: true,
137
- can_hvac_heat_cool: true,
138
- can_turn_off_hvac: true
134
+ can_program_online_access_codes: true
139
135
  })
140
136
  );
141
137
  var sensor = zod.z.object({
@@ -161,7 +157,14 @@ var thermostat = zod.z.object({
161
157
  software_features: zod.z.object({
162
158
  can_program_climate_schedules: zod.z.boolean()
163
159
  })
164
- });
160
+ }).merge(
161
+ device_model_capability_flags.pick({
162
+ can_hvac_heat: true,
163
+ can_hvac_cool: true,
164
+ can_hvac_heat_cool: true,
165
+ can_turn_off_hvac: true
166
+ })
167
+ );
165
168
  var relay = zod.z.object({
166
169
  main_category: zod.z.literal(device_category.enum.relay)
167
170
  });