@seamapi/types 1.361.0 → 1.362.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.
@@ -14323,11 +14323,6 @@ export interface Routes {
14323
14323
  created_at: string;
14324
14324
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
14325
14325
  warning_code: 'many_active_backup_codes';
14326
- } | {
14327
- message: string;
14328
- created_at: string;
14329
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
14330
- warning_code: 'salto_unknown_device_type';
14331
14326
  } | {
14332
14327
  message: string;
14333
14328
  created_at: string;
@@ -14382,12 +14377,17 @@ export interface Routes {
14382
14377
  message: string;
14383
14378
  created_at: string;
14384
14379
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
14385
- warning_code: 'salto_office_mode';
14380
+ warning_code: 'salto_ks_office_mode';
14386
14381
  } | {
14387
14382
  message: string;
14388
14383
  created_at: string;
14389
14384
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
14390
- warning_code: 'salto_privacy_mode';
14385
+ warning_code: 'salto_ks_privacy_mode';
14386
+ } | {
14387
+ message: string;
14388
+ created_at: string;
14389
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
14390
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
14391
14391
  } | {
14392
14392
  message: string;
14393
14393
  created_at: string;
@@ -15048,11 +15048,6 @@ export interface Routes {
15048
15048
  created_at: string;
15049
15049
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15050
15050
  warning_code: 'many_active_backup_codes';
15051
- } | {
15052
- message: string;
15053
- created_at: string;
15054
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15055
- warning_code: 'salto_unknown_device_type';
15056
15051
  } | {
15057
15052
  message: string;
15058
15053
  created_at: string;
@@ -15107,12 +15102,17 @@ export interface Routes {
15107
15102
  message: string;
15108
15103
  created_at: string;
15109
15104
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15110
- warning_code: 'salto_office_mode';
15105
+ warning_code: 'salto_ks_office_mode';
15106
+ } | {
15107
+ message: string;
15108
+ created_at: string;
15109
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15110
+ warning_code: 'salto_ks_privacy_mode';
15111
15111
  } | {
15112
15112
  message: string;
15113
15113
  created_at: string;
15114
15114
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15115
- warning_code: 'salto_privacy_mode';
15115
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
15116
15116
  } | {
15117
15117
  message: string;
15118
15118
  created_at: string;
@@ -15330,11 +15330,6 @@ export interface Routes {
15330
15330
  created_at: string;
15331
15331
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15332
15332
  warning_code: 'many_active_backup_codes';
15333
- } | {
15334
- message: string;
15335
- created_at: string;
15336
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15337
- warning_code: 'salto_unknown_device_type';
15338
15333
  } | {
15339
15334
  message: string;
15340
15335
  created_at: string;
@@ -15389,12 +15384,17 @@ export interface Routes {
15389
15384
  message: string;
15390
15385
  created_at: string;
15391
15386
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15392
- warning_code: 'salto_office_mode';
15387
+ warning_code: 'salto_ks_office_mode';
15393
15388
  } | {
15394
15389
  message: string;
15395
15390
  created_at: string;
15396
15391
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15397
- warning_code: 'salto_privacy_mode';
15392
+ warning_code: 'salto_ks_privacy_mode';
15393
+ } | {
15394
+ message: string;
15395
+ created_at: string;
15396
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15397
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
15398
15398
  } | {
15399
15399
  message: string;
15400
15400
  created_at: string;
@@ -15621,11 +15621,6 @@ export interface Routes {
15621
15621
  created_at: string;
15622
15622
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15623
15623
  warning_code: 'many_active_backup_codes';
15624
- } | {
15625
- message: string;
15626
- created_at: string;
15627
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15628
- warning_code: 'salto_unknown_device_type';
15629
15624
  } | {
15630
15625
  message: string;
15631
15626
  created_at: string;
@@ -15680,12 +15675,17 @@ export interface Routes {
15680
15675
  message: string;
15681
15676
  created_at: string;
15682
15677
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15683
- warning_code: 'salto_office_mode';
15678
+ warning_code: 'salto_ks_office_mode';
15684
15679
  } | {
15685
15680
  message: string;
15686
15681
  created_at: string;
15687
15682
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15688
- warning_code: 'salto_privacy_mode';
15683
+ warning_code: 'salto_ks_privacy_mode';
15684
+ } | {
15685
+ message: string;
15686
+ created_at: string;
15687
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15688
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
15689
15689
  } | {
15690
15690
  message: string;
15691
15691
  created_at: string;
@@ -16976,7 +16976,7 @@ export interface Routes {
16976
16976
  connected_account_id: string;
16977
16977
  event_type: 'device.name_changed';
16978
16978
  /** The new name of the device. */
16979
- new_name: string;
16979
+ device_name: string;
16980
16980
  } | {
16981
16981
  /** ID of the event. */
16982
16982
  event_id: string;
@@ -18204,7 +18204,7 @@ export interface Routes {
18204
18204
  connected_account_id: string;
18205
18205
  event_type: 'device.name_changed';
18206
18206
  /** The new name of the device. */
18207
- new_name: string;
18207
+ device_name: string;
18208
18208
  } | {
18209
18209
  /** ID of the event. */
18210
18210
  event_id: string;
@@ -18844,11 +18844,6 @@ export interface Routes {
18844
18844
  created_at: string;
18845
18845
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
18846
18846
  warning_code: 'many_active_backup_codes';
18847
- } | {
18848
- message: string;
18849
- created_at: string;
18850
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
18851
- warning_code: 'salto_unknown_device_type';
18852
18847
  } | {
18853
18848
  message: string;
18854
18849
  created_at: string;
@@ -18903,12 +18898,17 @@ export interface Routes {
18903
18898
  message: string;
18904
18899
  created_at: string;
18905
18900
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
18906
- warning_code: 'salto_office_mode';
18901
+ warning_code: 'salto_ks_office_mode';
18907
18902
  } | {
18908
18903
  message: string;
18909
18904
  created_at: string;
18910
18905
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
18911
- warning_code: 'salto_privacy_mode';
18906
+ warning_code: 'salto_ks_privacy_mode';
18907
+ } | {
18908
+ message: string;
18909
+ created_at: string;
18910
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
18911
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
18912
18912
  } | {
18913
18913
  message: string;
18914
18914
  created_at: string;
@@ -19533,11 +19533,6 @@ export interface Routes {
19533
19533
  created_at: string;
19534
19534
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
19535
19535
  warning_code: 'many_active_backup_codes';
19536
- } | {
19537
- message: string;
19538
- created_at: string;
19539
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
19540
- warning_code: 'salto_unknown_device_type';
19541
19536
  } | {
19542
19537
  message: string;
19543
19538
  created_at: string;
@@ -19592,12 +19587,17 @@ export interface Routes {
19592
19587
  message: string;
19593
19588
  created_at: string;
19594
19589
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
19595
- warning_code: 'salto_office_mode';
19590
+ warning_code: 'salto_ks_office_mode';
19596
19591
  } | {
19597
19592
  message: string;
19598
19593
  created_at: string;
19599
19594
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
19600
- warning_code: 'salto_privacy_mode';
19595
+ warning_code: 'salto_ks_privacy_mode';
19596
+ } | {
19597
+ message: string;
19598
+ created_at: string;
19599
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
19600
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
19601
19601
  } | {
19602
19602
  message: string;
19603
19603
  created_at: string;
@@ -20258,11 +20258,6 @@ export interface Routes {
20258
20258
  created_at: string;
20259
20259
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20260
20260
  warning_code: 'many_active_backup_codes';
20261
- } | {
20262
- message: string;
20263
- created_at: string;
20264
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20265
- warning_code: 'salto_unknown_device_type';
20266
20261
  } | {
20267
20262
  message: string;
20268
20263
  created_at: string;
@@ -20317,12 +20312,17 @@ export interface Routes {
20317
20312
  message: string;
20318
20313
  created_at: string;
20319
20314
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20320
- warning_code: 'salto_office_mode';
20315
+ warning_code: 'salto_ks_office_mode';
20316
+ } | {
20317
+ message: string;
20318
+ created_at: string;
20319
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20320
+ warning_code: 'salto_ks_privacy_mode';
20321
20321
  } | {
20322
20322
  message: string;
20323
20323
  created_at: string;
20324
20324
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20325
- warning_code: 'salto_privacy_mode';
20325
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
20326
20326
  } | {
20327
20327
  message: string;
20328
20328
  created_at: string;
@@ -20946,11 +20946,6 @@ export interface Routes {
20946
20946
  created_at: string;
20947
20947
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20948
20948
  warning_code: 'many_active_backup_codes';
20949
- } | {
20950
- message: string;
20951
- created_at: string;
20952
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
20953
- warning_code: 'salto_unknown_device_type';
20954
20949
  } | {
20955
20950
  message: string;
20956
20951
  created_at: string;
@@ -21005,12 +21000,17 @@ export interface Routes {
21005
21000
  message: string;
21006
21001
  created_at: string;
21007
21002
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
21008
- warning_code: 'salto_office_mode';
21003
+ warning_code: 'salto_ks_office_mode';
21009
21004
  } | {
21010
21005
  message: string;
21011
21006
  created_at: string;
21012
21007
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
21013
- warning_code: 'salto_privacy_mode';
21008
+ warning_code: 'salto_ks_privacy_mode';
21009
+ } | {
21010
+ message: string;
21011
+ created_at: string;
21012
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
21013
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
21014
21014
  } | {
21015
21015
  message: string;
21016
21016
  created_at: string;
@@ -23490,11 +23490,6 @@ export interface Routes {
23490
23490
  created_at: string;
23491
23491
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
23492
23492
  warning_code: 'many_active_backup_codes';
23493
- } | {
23494
- message: string;
23495
- created_at: string;
23496
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
23497
- warning_code: 'salto_unknown_device_type';
23498
23493
  } | {
23499
23494
  message: string;
23500
23495
  created_at: string;
@@ -23549,12 +23544,17 @@ export interface Routes {
23549
23544
  message: string;
23550
23545
  created_at: string;
23551
23546
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
23552
- warning_code: 'salto_office_mode';
23547
+ warning_code: 'salto_ks_office_mode';
23553
23548
  } | {
23554
23549
  message: string;
23555
23550
  created_at: string;
23556
23551
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
23557
- warning_code: 'salto_privacy_mode';
23552
+ warning_code: 'salto_ks_privacy_mode';
23553
+ } | {
23554
+ message: string;
23555
+ created_at: string;
23556
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
23557
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
23558
23558
  } | {
23559
23559
  message: string;
23560
23560
  created_at: string;
@@ -24178,11 +24178,6 @@ export interface Routes {
24178
24178
  created_at: string;
24179
24179
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
24180
24180
  warning_code: 'many_active_backup_codes';
24181
- } | {
24182
- message: string;
24183
- created_at: string;
24184
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
24185
- warning_code: 'salto_unknown_device_type';
24186
24181
  } | {
24187
24182
  message: string;
24188
24183
  created_at: string;
@@ -24237,12 +24232,17 @@ export interface Routes {
24237
24232
  message: string;
24238
24233
  created_at: string;
24239
24234
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
24240
- warning_code: 'salto_office_mode';
24235
+ warning_code: 'salto_ks_office_mode';
24236
+ } | {
24237
+ message: string;
24238
+ created_at: string;
24239
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
24240
+ warning_code: 'salto_ks_privacy_mode';
24241
24241
  } | {
24242
24242
  message: string;
24243
24243
  created_at: string;
24244
24244
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
24245
- warning_code: 'salto_privacy_mode';
24245
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
24246
24246
  } | {
24247
24247
  message: string;
24248
24248
  created_at: string;
@@ -29766,11 +29766,6 @@ export interface Routes {
29766
29766
  created_at: string;
29767
29767
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
29768
29768
  warning_code: 'many_active_backup_codes';
29769
- } | {
29770
- message: string;
29771
- created_at: string;
29772
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
29773
- warning_code: 'salto_unknown_device_type';
29774
29769
  } | {
29775
29770
  message: string;
29776
29771
  created_at: string;
@@ -29825,12 +29820,17 @@ export interface Routes {
29825
29820
  message: string;
29826
29821
  created_at: string;
29827
29822
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
29828
- warning_code: 'salto_office_mode';
29823
+ warning_code: 'salto_ks_office_mode';
29829
29824
  } | {
29830
29825
  message: string;
29831
29826
  created_at: string;
29832
29827
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
29833
- warning_code: 'salto_privacy_mode';
29828
+ warning_code: 'salto_ks_privacy_mode';
29829
+ } | {
29830
+ message: string;
29831
+ created_at: string;
29832
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
29833
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
29834
29834
  } | {
29835
29835
  message: string;
29836
29836
  created_at: string;
@@ -32291,11 +32291,6 @@ export interface Routes {
32291
32291
  created_at: string;
32292
32292
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32293
32293
  warning_code: 'many_active_backup_codes';
32294
- } | {
32295
- message: string;
32296
- created_at: string;
32297
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32298
- warning_code: 'salto_unknown_device_type';
32299
32294
  } | {
32300
32295
  message: string;
32301
32296
  created_at: string;
@@ -32350,12 +32345,17 @@ export interface Routes {
32350
32345
  message: string;
32351
32346
  created_at: string;
32352
32347
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32353
- warning_code: 'salto_office_mode';
32348
+ warning_code: 'salto_ks_office_mode';
32349
+ } | {
32350
+ message: string;
32351
+ created_at: string;
32352
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32353
+ warning_code: 'salto_ks_privacy_mode';
32354
32354
  } | {
32355
32355
  message: string;
32356
32356
  created_at: string;
32357
32357
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32358
- warning_code: 'salto_privacy_mode';
32358
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
32359
32359
  } | {
32360
32360
  message: string;
32361
32361
  created_at: string;
@@ -32979,11 +32979,6 @@ export interface Routes {
32979
32979
  created_at: string;
32980
32980
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32981
32981
  warning_code: 'many_active_backup_codes';
32982
- } | {
32983
- message: string;
32984
- created_at: string;
32985
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32986
- warning_code: 'salto_unknown_device_type';
32987
32982
  } | {
32988
32983
  message: string;
32989
32984
  created_at: string;
@@ -33038,12 +33033,17 @@ export interface Routes {
33038
33033
  message: string;
33039
33034
  created_at: string;
33040
33035
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
33041
- warning_code: 'salto_office_mode';
33036
+ warning_code: 'salto_ks_office_mode';
33042
33037
  } | {
33043
33038
  message: string;
33044
33039
  created_at: string;
33045
33040
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
33046
- warning_code: 'salto_privacy_mode';
33041
+ warning_code: 'salto_ks_privacy_mode';
33042
+ } | {
33043
+ message: string;
33044
+ created_at: string;
33045
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
33046
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
33047
33047
  } | {
33048
33048
  message: string;
33049
33049
  created_at: string;
@@ -36919,11 +36919,6 @@ export interface Routes {
36919
36919
  created_at: string;
36920
36920
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36921
36921
  warning_code: 'many_active_backup_codes';
36922
- } | {
36923
- message: string;
36924
- created_at: string;
36925
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36926
- warning_code: 'salto_unknown_device_type';
36927
36922
  } | {
36928
36923
  message: string;
36929
36924
  created_at: string;
@@ -36978,12 +36973,17 @@ export interface Routes {
36978
36973
  message: string;
36979
36974
  created_at: string;
36980
36975
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36981
- warning_code: 'salto_office_mode';
36976
+ warning_code: 'salto_ks_office_mode';
36982
36977
  } | {
36983
36978
  message: string;
36984
36979
  created_at: string;
36985
36980
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36986
- warning_code: 'salto_privacy_mode';
36981
+ warning_code: 'salto_ks_privacy_mode';
36982
+ } | {
36983
+ message: string;
36984
+ created_at: string;
36985
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36986
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
36987
36987
  } | {
36988
36988
  message: string;
36989
36989
  created_at: string;
@@ -37609,11 +37609,6 @@ export interface Routes {
37609
37609
  created_at: string;
37610
37610
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
37611
37611
  warning_code: 'many_active_backup_codes';
37612
- } | {
37613
- message: string;
37614
- created_at: string;
37615
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
37616
- warning_code: 'salto_unknown_device_type';
37617
37612
  } | {
37618
37613
  message: string;
37619
37614
  created_at: string;
@@ -37668,12 +37663,17 @@ export interface Routes {
37668
37663
  message: string;
37669
37664
  created_at: string;
37670
37665
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
37671
- warning_code: 'salto_office_mode';
37666
+ warning_code: 'salto_ks_office_mode';
37672
37667
  } | {
37673
37668
  message: string;
37674
37669
  created_at: string;
37675
37670
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
37676
- warning_code: 'salto_privacy_mode';
37671
+ warning_code: 'salto_ks_privacy_mode';
37672
+ } | {
37673
+ message: string;
37674
+ created_at: string;
37675
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
37676
+ warning_code: 'salto_ks_subscription_limit_almost_reached';
37677
37677
  } | {
37678
37678
  message: string;
37679
37679
  created_at: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.361.0",
3
+ "version": "1.362.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -200,29 +200,31 @@ const many_active_backup_codes = common_device_warning
200
200
  })
201
201
  .describe('Too many backup codes.')
202
202
 
203
- const salto_unknown_device_type = common_device_warning
203
+ const salto_ks_office_mode = common_device_warning
204
204
  .extend({
205
205
  warning_code: z
206
- .literal('salto_unknown_device_type')
206
+ .literal('salto_ks_office_mode')
207
207
  .describe(warning_code_description),
208
208
  })
209
- .describe('A Salto Lock displaying an unknown device type.')
209
+ .describe('Lock is in Office Mode. Access Codes will not unlock doors.')
210
210
 
211
- const salto_office_mode = common_device_warning
211
+ const salto_ks_privacy_mode = common_device_warning
212
212
  .extend({
213
213
  warning_code: z
214
- .literal('salto_office_mode')
214
+ .literal('salto_ks_privacy_mode')
215
215
  .describe(warning_code_description),
216
216
  })
217
- .describe('Lock is in Office Mode. Access Codes will not unlock doors.')
217
+ .describe('Lock is in Privacy Mode. Access Codes will not unlock doors.')
218
218
 
219
- const salto_privacy_mode = common_device_warning
219
+ const salto_ks_subscription_limit_almost_reached = common_device_warning
220
220
  .extend({
221
221
  warning_code: z
222
- .literal('salto_privacy_mode')
222
+ .literal('salto_ks_subscription_limit_almost_reached')
223
223
  .describe(warning_code_description),
224
224
  })
225
- .describe('Lock is in Privacy Mode. Access Codes will not unlock doors.')
225
+ .describe(
226
+ '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.',
227
+ )
226
228
 
227
229
  const wyze_device_missing_gateway = common_device_warning
228
230
  .extend({
@@ -318,7 +320,6 @@ export const unknown_issue_with_phone = common_device_warning
318
320
  const device_warning = z.discriminatedUnion('warning_code', [
319
321
  partial_backup_access_code_pool,
320
322
  many_active_backup_codes,
321
- salto_unknown_device_type,
322
323
  wyze_device_missing_gateway,
323
324
  functional_offline_device,
324
325
  third_party_integration_detected,
@@ -329,8 +330,9 @@ const device_warning = z.discriminatedUnion('warning_code', [
329
330
  device_communication_degraded,
330
331
  scheduled_maintenance_window,
331
332
  device_has_flaky_connection,
332
- salto_office_mode,
333
- salto_privacy_mode,
333
+ salto_ks_office_mode,
334
+ salto_ks_privacy_mode,
335
+ salto_ks_subscription_limit_almost_reached,
334
336
  unknown_issue_with_phone,
335
337
  ])
336
338
 
@@ -341,7 +343,13 @@ export const device_warning_map = z.object({
341
343
  .optional()
342
344
  .nullable(),
343
345
  many_active_backup_codes: many_active_backup_codes.optional().nullable(),
344
- salto_unknown_device_type: salto_unknown_device_type.optional().nullable(),
346
+ device_has_flaky_connection: device_has_flaky_connection
347
+ .extend({
348
+ _event_id: z.string().uuid().optional(),
349
+ _reason: z.string().optional(),
350
+ })
351
+ .optional()
352
+ .nullable(),
345
353
  wyze_device_missing_gateway: wyze_device_missing_gateway
346
354
  .optional()
347
355
  .nullable(),
@@ -364,14 +372,10 @@ export const device_warning_map = z.object({
364
372
  scheduled_maintenance_window: scheduled_maintenance_window
365
373
  .optional()
366
374
  .nullable(),
367
- device_has_flaky_connection: device_has_flaky_connection
368
- .extend({
369
- _event_id: z.string().uuid().optional(),
370
- })
371
- .optional()
372
- .nullable(),
373
- salto_office_mode: salto_office_mode.optional().nullable(),
374
- salto_privacy_mode: salto_privacy_mode.optional().nullable(),
375
+ salto_ks_office_mode: salto_ks_office_mode.optional().nullable(),
376
+ salto_ks_privacy_mode: salto_ks_privacy_mode.optional().nullable(),
377
+ salto_ks_subscription_limit_almost_reached:
378
+ salto_ks_subscription_limit_almost_reached.optional().nullable(),
375
379
  unknown_issue_with_phone: unknown_issue_with_phone.optional().nullable(),
376
380
  })
377
381
 
@@ -653,7 +653,7 @@ export type TemperatureChangedEvent = z.infer<typeof temperature_changed_event>
653
653
 
654
654
  export const device_name_changed_event = device_event.extend({
655
655
  event_type: z.literal('device.name_changed'),
656
- new_name: z.string().describe('The new name of the device.'),
656
+ device_name: z.string().describe('The new name of the device.'),
657
657
  }).describe(`
658
658
  ---
659
659
  route_path: /devices