@seamapi/types 1.1137.0 → 1.1139.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.
@@ -13983,14 +13983,23 @@ export type Routes = {
13983
13983
  longitude: number;
13984
13984
  } | null) | undefined;
13985
13985
  /** Warnings associated with the space. */
13986
- warnings: {
13986
+ warnings: ({
13987
13987
  /** Date and time at which Seam created the warning. */
13988
13988
  created_at: string;
13989
13989
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
13990
13990
  message: string;
13991
13991
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
13992
13992
  warning_code: 'being_deleted';
13993
- }[];
13993
+ } | {
13994
+ /** Date and time at which Seam created the warning. */
13995
+ created_at: string;
13996
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
13997
+ message: string;
13998
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
13999
+ warning_code: 'noise_sensor_configuration_mismatch';
14000
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
14001
+ device_ids: string[];
14002
+ })[];
13994
14003
  /** */
13995
14004
  parent_space_id?: string | undefined;
13996
14005
  /** */
@@ -22175,14 +22184,23 @@ export type Routes = {
22175
22184
  longitude: number;
22176
22185
  } | null) | undefined;
22177
22186
  /** Warnings associated with the space. */
22178
- warnings: {
22187
+ warnings: ({
22179
22188
  /** Date and time at which Seam created the warning. */
22180
22189
  created_at: string;
22181
22190
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
22182
22191
  message: string;
22183
22192
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
22184
22193
  warning_code: 'being_deleted';
22185
- }[];
22194
+ } | {
22195
+ /** Date and time at which Seam created the warning. */
22196
+ created_at: string;
22197
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
22198
+ message: string;
22199
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
22200
+ warning_code: 'noise_sensor_configuration_mismatch';
22201
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
22202
+ device_ids: string[];
22203
+ })[];
22186
22204
  /** */
22187
22205
  parent_space_id?: string | undefined;
22188
22206
  /** */
@@ -91877,14 +91895,23 @@ export type Routes = {
91877
91895
  longitude: number;
91878
91896
  } | null) | undefined;
91879
91897
  /** Warnings associated with the space. */
91880
- warnings: {
91898
+ warnings: ({
91881
91899
  /** Date and time at which Seam created the warning. */
91882
91900
  created_at: string;
91883
91901
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
91884
91902
  message: string;
91885
91903
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
91886
91904
  warning_code: 'being_deleted';
91887
- }[];
91905
+ } | {
91906
+ /** Date and time at which Seam created the warning. */
91907
+ created_at: string;
91908
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
91909
+ message: string;
91910
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
91911
+ warning_code: 'noise_sensor_configuration_mismatch';
91912
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
91913
+ device_ids: string[];
91914
+ })[];
91888
91915
  /** */
91889
91916
  parent_space_id?: string | undefined;
91890
91917
  /** */
@@ -91955,14 +91982,23 @@ export type Routes = {
91955
91982
  longitude: number;
91956
91983
  } | null) | undefined;
91957
91984
  /** Warnings associated with the space. */
91958
- warnings: {
91985
+ warnings: ({
91959
91986
  /** Date and time at which Seam created the warning. */
91960
91987
  created_at: string;
91961
91988
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
91962
91989
  message: string;
91963
91990
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
91964
91991
  warning_code: 'being_deleted';
91965
- }[];
91992
+ } | {
91993
+ /** Date and time at which Seam created the warning. */
91994
+ created_at: string;
91995
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
91996
+ message: string;
91997
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
91998
+ warning_code: 'noise_sensor_configuration_mismatch';
91999
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
92000
+ device_ids: string[];
92001
+ })[];
91966
92002
  /** */
91967
92003
  parent_space_id?: string | undefined;
91968
92004
  /** */
@@ -92025,14 +92061,23 @@ export type Routes = {
92025
92061
  longitude: number;
92026
92062
  } | null) | undefined;
92027
92063
  /** Warnings associated with the space. */
92028
- warnings: {
92064
+ warnings: ({
92029
92065
  /** Date and time at which Seam created the warning. */
92030
92066
  created_at: string;
92031
92067
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
92032
92068
  message: string;
92033
92069
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
92034
92070
  warning_code: 'being_deleted';
92035
- }[];
92071
+ } | {
92072
+ /** Date and time at which Seam created the warning. */
92073
+ created_at: string;
92074
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
92075
+ message: string;
92076
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
92077
+ warning_code: 'noise_sensor_configuration_mismatch';
92078
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
92079
+ device_ids: string[];
92080
+ })[];
92036
92081
  /** */
92037
92082
  parent_space_id?: string | undefined;
92038
92083
  /** */
@@ -94805,14 +94850,6 @@ export type Routes = {
94805
94850
  volume?: number | undefined;
94806
94851
  } | undefined;
94807
94852
  } | undefined;
94808
- noise_sensors?: {
94809
- noise_thresholds: {
94810
- name?: string | undefined;
94811
- starts_daily_at: string;
94812
- ends_daily_at: string;
94813
- noise_threshold_decibels: number;
94814
- }[];
94815
- } | undefined;
94816
94853
  } | undefined;
94817
94854
  on_check_out?: {
94818
94855
  minutes_after_check_out?: number | undefined;
@@ -94821,14 +94858,6 @@ export type Routes = {
94821
94858
  unmute?: boolean | undefined;
94822
94859
  reset_volume_to?: number | undefined;
94823
94860
  } | undefined;
94824
- noise_sensors?: {
94825
- noise_thresholds: {
94826
- name?: string | undefined;
94827
- starts_daily_at: string;
94828
- ends_daily_at: string;
94829
- noise_threshold_decibels: number;
94830
- }[];
94831
- } | undefined;
94832
94861
  } | undefined;
94833
94862
  } | undefined;
94834
94863
  reservation_time_updated?: {} | undefined;
@@ -94836,6 +94865,22 @@ export type Routes = {
94836
94865
  reservation_deleted?: {} | undefined;
94837
94866
  };
94838
94867
  } | undefined;
94868
+ sensor_rules?: {
94869
+ rules: {
94870
+ noise_sensors?: {
94871
+ normal_hours: {
94872
+ noise_threshold_decibels: number;
94873
+ };
94874
+ quiet_hours?: ({
94875
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
94876
+ starts_daily_at: string;
94877
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
94878
+ ends_daily_at: string;
94879
+ noise_threshold_decibels: number;
94880
+ } | null) | undefined;
94881
+ } | undefined;
94882
+ };
94883
+ } | undefined;
94839
94884
  };
94840
94885
  maxDuration: undefined;
94841
94886
  };
@@ -94974,14 +95019,6 @@ export type Routes = {
94974
95019
  volume?: number | undefined;
94975
95020
  } | undefined;
94976
95021
  } | undefined;
94977
- noise_sensors?: {
94978
- noise_thresholds: {
94979
- name?: string | undefined;
94980
- starts_daily_at: string;
94981
- ends_daily_at: string;
94982
- noise_threshold_decibels: number;
94983
- }[];
94984
- } | undefined;
94985
95022
  } | undefined;
94986
95023
  on_check_out?: {
94987
95024
  minutes_after_check_out?: number | undefined;
@@ -94990,14 +95027,6 @@ export type Routes = {
94990
95027
  unmute?: boolean | undefined;
94991
95028
  reset_volume_to?: number | undefined;
94992
95029
  } | undefined;
94993
- noise_sensors?: {
94994
- noise_thresholds: {
94995
- name?: string | undefined;
94996
- starts_daily_at: string;
94997
- ends_daily_at: string;
94998
- noise_threshold_decibels: number;
94999
- }[];
95000
- } | undefined;
95001
95030
  } | undefined;
95002
95031
  } | null) | undefined;
95003
95032
  reservation_time_updated?: ({} | null) | undefined;
@@ -95005,6 +95034,23 @@ export type Routes = {
95005
95034
  reservation_deleted?: ({} | null) | undefined;
95006
95035
  } | undefined;
95007
95036
  } | undefined;
95037
+ /** Sensor automation rules configuration. Seam treats it as the source of truth: it is applied to the sensors in every space of the customer when saved and to sensors added to those spaces later, and re-applied when a sensor's settings are changed outside Seam. */
95038
+ sensor_rules?: {
95039
+ rules?: {
95040
+ noise_sensors?: ({
95041
+ normal_hours: {
95042
+ noise_threshold_decibels: number;
95043
+ };
95044
+ quiet_hours?: ({
95045
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95046
+ starts_daily_at: string;
95047
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95048
+ ends_daily_at: string;
95049
+ noise_threshold_decibels: number;
95050
+ } | null) | undefined;
95051
+ } | null) | undefined;
95052
+ } | undefined;
95053
+ } | undefined;
95008
95054
  };
95009
95055
  commonParams: {};
95010
95056
  formData: {};
@@ -95439,14 +95485,6 @@ export type Routes = {
95439
95485
  volume?: number | undefined;
95440
95486
  } | undefined;
95441
95487
  } | undefined;
95442
- noise_sensors?: {
95443
- noise_thresholds: {
95444
- name?: string | undefined;
95445
- starts_daily_at: string;
95446
- ends_daily_at: string;
95447
- noise_threshold_decibels: number;
95448
- }[];
95449
- } | undefined;
95450
95488
  } | undefined;
95451
95489
  on_check_out?: {
95452
95490
  minutes_after_check_out?: number | undefined;
@@ -95455,14 +95493,6 @@ export type Routes = {
95455
95493
  unmute?: boolean | undefined;
95456
95494
  reset_volume_to?: number | undefined;
95457
95495
  } | undefined;
95458
- noise_sensors?: {
95459
- noise_thresholds: {
95460
- name?: string | undefined;
95461
- starts_daily_at: string;
95462
- ends_daily_at: string;
95463
- noise_threshold_decibels: number;
95464
- }[];
95465
- } | undefined;
95466
95496
  } | undefined;
95467
95497
  } | undefined;
95468
95498
  reservation_time_updated?: {} | undefined;
@@ -95470,6 +95500,22 @@ export type Routes = {
95470
95500
  reservation_deleted?: {} | undefined;
95471
95501
  };
95472
95502
  } | undefined;
95503
+ sensor_rules?: {
95504
+ rules: {
95505
+ noise_sensors?: {
95506
+ normal_hours: {
95507
+ noise_threshold_decibels: number;
95508
+ };
95509
+ quiet_hours?: ({
95510
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95511
+ starts_daily_at: string;
95512
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95513
+ ends_daily_at: string;
95514
+ noise_threshold_decibels: number;
95515
+ } | null) | undefined;
95516
+ } | undefined;
95517
+ };
95518
+ } | undefined;
95473
95519
  };
95474
95520
  };
95475
95521
  maxDuration: undefined;
@@ -95579,14 +95625,6 @@ export type Routes = {
95579
95625
  volume?: number | undefined;
95580
95626
  } | undefined;
95581
95627
  } | undefined;
95582
- noise_sensors?: {
95583
- noise_thresholds: {
95584
- name?: string | undefined;
95585
- starts_daily_at: string;
95586
- ends_daily_at: string;
95587
- noise_threshold_decibels: number;
95588
- }[];
95589
- } | undefined;
95590
95628
  } | undefined;
95591
95629
  on_check_out?: {
95592
95630
  minutes_after_check_out?: number | undefined;
@@ -95595,14 +95633,6 @@ export type Routes = {
95595
95633
  unmute?: boolean | undefined;
95596
95634
  reset_volume_to?: number | undefined;
95597
95635
  } | undefined;
95598
- noise_sensors?: {
95599
- noise_thresholds: {
95600
- name?: string | undefined;
95601
- starts_daily_at: string;
95602
- ends_daily_at: string;
95603
- noise_threshold_decibels: number;
95604
- }[];
95605
- } | undefined;
95606
95636
  } | undefined;
95607
95637
  } | null) | undefined;
95608
95638
  reservation_time_updated?: ({} | null) | undefined;
@@ -95610,6 +95640,23 @@ export type Routes = {
95610
95640
  reservation_deleted?: ({} | null) | undefined;
95611
95641
  } | undefined;
95612
95642
  } | undefined;
95643
+ /** Sensor automation rules configuration. */
95644
+ sensor_rules?: {
95645
+ rules?: {
95646
+ noise_sensors?: ({
95647
+ normal_hours: {
95648
+ noise_threshold_decibels: number;
95649
+ };
95650
+ quiet_hours?: ({
95651
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95652
+ starts_daily_at: string;
95653
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95654
+ ends_daily_at: string;
95655
+ noise_threshold_decibels: number;
95656
+ } | null) | undefined;
95657
+ } | null) | undefined;
95658
+ } | undefined;
95659
+ } | undefined;
95613
95660
  };
95614
95661
  commonParams: {};
95615
95662
  formData: {};
@@ -100235,14 +100282,23 @@ export type Routes = {
100235
100282
  longitude: number;
100236
100283
  } | null) | undefined;
100237
100284
  /** Warnings associated with the space. */
100238
- warnings: {
100285
+ warnings: ({
100239
100286
  /** Date and time at which Seam created the warning. */
100240
100287
  created_at: string;
100241
100288
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
100242
100289
  message: string;
100243
100290
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100244
100291
  warning_code: 'being_deleted';
100245
- }[];
100292
+ } | {
100293
+ /** Date and time at which Seam created the warning. */
100294
+ created_at: string;
100295
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
100296
+ message: string;
100297
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100298
+ warning_code: 'noise_sensor_configuration_mismatch';
100299
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
100300
+ device_ids: string[];
100301
+ })[];
100246
100302
  /** */
100247
100303
  parent_space_id?: string | undefined;
100248
100304
  /** */
@@ -100308,14 +100364,23 @@ export type Routes = {
100308
100364
  longitude: number;
100309
100365
  } | null) | undefined;
100310
100366
  /** Warnings associated with the space. */
100311
- warnings: {
100367
+ warnings: ({
100312
100368
  /** Date and time at which Seam created the warning. */
100313
100369
  created_at: string;
100314
100370
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
100315
100371
  message: string;
100316
100372
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100317
100373
  warning_code: 'being_deleted';
100318
- }[];
100374
+ } | {
100375
+ /** Date and time at which Seam created the warning. */
100376
+ created_at: string;
100377
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
100378
+ message: string;
100379
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100380
+ warning_code: 'noise_sensor_configuration_mismatch';
100381
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
100382
+ device_ids: string[];
100383
+ })[];
100319
100384
  /** */
100320
100385
  parent_space_id?: string | undefined;
100321
100386
  /** */
@@ -105254,14 +105319,23 @@ export type Routes = {
105254
105319
  longitude: number;
105255
105320
  } | null) | undefined;
105256
105321
  /** Warnings associated with the space. */
105257
- warnings: {
105322
+ warnings: ({
105258
105323
  /** Date and time at which Seam created the warning. */
105259
105324
  created_at: string;
105260
105325
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105261
105326
  message: string;
105262
105327
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105263
105328
  warning_code: 'being_deleted';
105264
- }[];
105329
+ } | {
105330
+ /** Date and time at which Seam created the warning. */
105331
+ created_at: string;
105332
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105333
+ message: string;
105334
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105335
+ warning_code: 'noise_sensor_configuration_mismatch';
105336
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
105337
+ device_ids: string[];
105338
+ })[];
105265
105339
  /** */
105266
105340
  parent_space_id?: string | undefined;
105267
105341
  /** */
@@ -105336,14 +105410,23 @@ export type Routes = {
105336
105410
  longitude: number;
105337
105411
  } | null) | undefined;
105338
105412
  /** Warnings associated with the space. */
105339
- warnings: {
105413
+ warnings: ({
105340
105414
  /** Date and time at which Seam created the warning. */
105341
105415
  created_at: string;
105342
105416
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105343
105417
  message: string;
105344
105418
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105345
105419
  warning_code: 'being_deleted';
105346
- }[];
105420
+ } | {
105421
+ /** Date and time at which Seam created the warning. */
105422
+ created_at: string;
105423
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105424
+ message: string;
105425
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105426
+ warning_code: 'noise_sensor_configuration_mismatch';
105427
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
105428
+ device_ids: string[];
105429
+ })[];
105347
105430
  /** */
105348
105431
  parent_space_id?: string | undefined;
105349
105432
  /** */
@@ -105407,14 +105490,23 @@ export type Routes = {
105407
105490
  longitude: number;
105408
105491
  } | null) | undefined;
105409
105492
  /** Warnings associated with the space. */
105410
- warnings: {
105493
+ warnings: ({
105411
105494
  /** Date and time at which Seam created the warning. */
105412
105495
  created_at: string;
105413
105496
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105414
105497
  message: string;
105415
105498
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105416
105499
  warning_code: 'being_deleted';
105417
- }[];
105500
+ } | {
105501
+ /** Date and time at which Seam created the warning. */
105502
+ created_at: string;
105503
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105504
+ message: string;
105505
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105506
+ warning_code: 'noise_sensor_configuration_mismatch';
105507
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
105508
+ device_ids: string[];
105509
+ })[];
105418
105510
  /** */
105419
105511
  parent_space_id?: string | undefined;
105420
105512
  /** */
@@ -107836,14 +107928,23 @@ export type Routes = {
107836
107928
  longitude: number;
107837
107929
  } | null) | undefined;
107838
107930
  /** Warnings associated with the space. */
107839
- warnings: {
107931
+ warnings: ({
107840
107932
  /** Date and time at which Seam created the warning. */
107841
107933
  created_at: string;
107842
107934
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
107843
107935
  message: string;
107844
107936
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
107845
107937
  warning_code: 'being_deleted';
107846
- }[];
107938
+ } | {
107939
+ /** Date and time at which Seam created the warning. */
107940
+ created_at: string;
107941
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
107942
+ message: string;
107943
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
107944
+ warning_code: 'noise_sensor_configuration_mismatch';
107945
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
107946
+ device_ids: string[];
107947
+ })[];
107847
107948
  /** */
107848
107949
  parent_space_id?: string | undefined;
107849
107950
  /** */
@@ -107979,14 +108080,23 @@ export type Routes = {
107979
108080
  longitude: number;
107980
108081
  } | null) | undefined;
107981
108082
  /** Warnings associated with the space. */
107982
- warnings: {
108083
+ warnings: ({
107983
108084
  /** Date and time at which Seam created the warning. */
107984
108085
  created_at: string;
107985
108086
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
107986
108087
  message: string;
107987
108088
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
107988
108089
  warning_code: 'being_deleted';
107989
- }[];
108090
+ } | {
108091
+ /** Date and time at which Seam created the warning. */
108092
+ created_at: string;
108093
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
108094
+ message: string;
108095
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
108096
+ warning_code: 'noise_sensor_configuration_mismatch';
108097
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
108098
+ device_ids: string[];
108099
+ })[];
107990
108100
  /** */
107991
108101
  parent_space_id?: string | undefined;
107992
108102
  /** */
@@ -165139,14 +165249,23 @@ export type Routes = {
165139
165249
  longitude: number;
165140
165250
  } | null) | undefined;
165141
165251
  /** Warnings associated with the space. */
165142
- warnings: {
165252
+ warnings: ({
165143
165253
  /** Date and time at which Seam created the warning. */
165144
165254
  created_at: string;
165145
165255
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
165146
165256
  message: string;
165147
165257
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
165148
165258
  warning_code: 'being_deleted';
165149
- }[];
165259
+ } | {
165260
+ /** Date and time at which Seam created the warning. */
165261
+ created_at: string;
165262
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
165263
+ message: string;
165264
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
165265
+ warning_code: 'noise_sensor_configuration_mismatch';
165266
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
165267
+ device_ids: string[];
165268
+ })[];
165150
165269
  /** */
165151
165270
  parent_space_id?: string | undefined;
165152
165271
  /** */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1137.0",
3
+ "version": "1.1139.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -282,6 +282,7 @@ const setup_required = common_connected_account_warning
282
282
  'Indicates that the connected account requires additional setup before it can be fully operational. Follow the instructions in the warning message to complete the setup.',
283
283
  )
284
284
 
285
+ /** @deprecated Seam no longer sets this warning. */
285
286
  const dormakaba_sites_unapproved = common_connected_account_warning
286
287
  .extend({
287
288
  warning_code: z
@@ -289,7 +290,12 @@ const dormakaba_sites_unapproved = common_connected_account_warning
289
290
  .describe(warning_code_description),
290
291
  })
291
292
  .describe(
292
- 'Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.',
293
+ `
294
+ ---
295
+ deprecated: Seam no longer sets this warning.
296
+ ---
297
+ Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.
298
+ `,
293
299
  )
294
300
 
295
301
  const connected_account_warning = z
@@ -59,12 +59,33 @@ const space_being_deleted = common_space_warning
59
59
  'Indicates that the space is being deleted. Seam removes it, revokes its access grants, and detaches its devices and entrances shortly.',
60
60
  )
61
61
 
62
+ const space_noise_sensor_configuration_mismatch = common_space_warning
63
+ .extend({
64
+ warning_code: z
65
+ .literal('noise_sensor_configuration_mismatch')
66
+ .describe(warning_code_description),
67
+ device_ids: z
68
+ .array(z.string().uuid())
69
+ .describe(
70
+ 'IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation.',
71
+ ),
72
+ })
73
+ .describe(
74
+ "Indicates that Seam could not apply the noise sensor automation to one or more noise sensors in the space, for example because their settings keep changing back after Seam re-applies it, Seam does not know the sensor's time zone yet, or the sensor is shared with spaces that configure it differently.",
75
+ )
76
+
62
77
  const space_warning = z
63
- .discriminatedUnion('warning_code', [space_being_deleted])
78
+ .discriminatedUnion('warning_code', [
79
+ space_being_deleted,
80
+ space_noise_sensor_configuration_mismatch,
81
+ ])
64
82
  .describe('Warning associated with the space.')
65
83
 
66
84
  const _space_warning_map = z.object({
67
85
  being_deleted: space_being_deleted.optional().nullable(),
86
+ noise_sensor_configuration_mismatch: space_noise_sensor_configuration_mismatch
87
+ .optional()
88
+ .nullable(),
68
89
  })
69
90
 
70
91
  export type SpaceWarningMap = z.infer<typeof _space_warning_map>