@seamapi/types 1.1138.0 → 1.1140.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,27 @@ 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
+ /** All-day level for spaces with no stay in progress. Only applies to spaces that have had reservations, and starts minutes_after_check_out after a stay ends. */
94882
+ vacant?: ({
94883
+ noise_threshold_decibels: number;
94884
+ minutes_after_check_out?: number | undefined;
94885
+ } | null) | undefined;
94886
+ } | undefined;
94887
+ };
94888
+ } | undefined;
94839
94889
  };
94840
94890
  maxDuration: undefined;
94841
94891
  };
@@ -94974,14 +95024,6 @@ export type Routes = {
94974
95024
  volume?: number | undefined;
94975
95025
  } | undefined;
94976
95026
  } | 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
95027
  } | undefined;
94986
95028
  on_check_out?: {
94987
95029
  minutes_after_check_out?: number | undefined;
@@ -94990,14 +95032,6 @@ export type Routes = {
94990
95032
  unmute?: boolean | undefined;
94991
95033
  reset_volume_to?: number | undefined;
94992
95034
  } | 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
95035
  } | undefined;
95002
95036
  } | null) | undefined;
95003
95037
  reservation_time_updated?: ({} | null) | undefined;
@@ -95005,6 +95039,28 @@ export type Routes = {
95005
95039
  reservation_deleted?: ({} | null) | undefined;
95006
95040
  } | undefined;
95007
95041
  } | undefined;
95042
+ /** 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. */
95043
+ sensor_rules?: {
95044
+ rules?: {
95045
+ noise_sensors?: ({
95046
+ normal_hours: {
95047
+ noise_threshold_decibels: number;
95048
+ };
95049
+ quiet_hours?: ({
95050
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95051
+ starts_daily_at: string;
95052
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95053
+ ends_daily_at: string;
95054
+ noise_threshold_decibels: number;
95055
+ } | null) | undefined;
95056
+ /** All-day level for spaces with no stay in progress. Only applies to spaces that have had reservations, and starts minutes_after_check_out after a stay ends. */
95057
+ vacant?: ({
95058
+ noise_threshold_decibels: number;
95059
+ minutes_after_check_out?: number | undefined;
95060
+ } | null) | undefined;
95061
+ } | null) | undefined;
95062
+ } | undefined;
95063
+ } | undefined;
95008
95064
  };
95009
95065
  commonParams: {};
95010
95066
  formData: {};
@@ -95439,14 +95495,6 @@ export type Routes = {
95439
95495
  volume?: number | undefined;
95440
95496
  } | undefined;
95441
95497
  } | 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
95498
  } | undefined;
95451
95499
  on_check_out?: {
95452
95500
  minutes_after_check_out?: number | undefined;
@@ -95455,14 +95503,6 @@ export type Routes = {
95455
95503
  unmute?: boolean | undefined;
95456
95504
  reset_volume_to?: number | undefined;
95457
95505
  } | 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
95506
  } | undefined;
95467
95507
  } | undefined;
95468
95508
  reservation_time_updated?: {} | undefined;
@@ -95470,6 +95510,27 @@ export type Routes = {
95470
95510
  reservation_deleted?: {} | undefined;
95471
95511
  };
95472
95512
  } | undefined;
95513
+ sensor_rules?: {
95514
+ rules: {
95515
+ noise_sensors?: {
95516
+ normal_hours: {
95517
+ noise_threshold_decibels: number;
95518
+ };
95519
+ quiet_hours?: ({
95520
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95521
+ starts_daily_at: string;
95522
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95523
+ ends_daily_at: string;
95524
+ noise_threshold_decibels: number;
95525
+ } | null) | undefined;
95526
+ /** All-day level for spaces with no stay in progress. Only applies to spaces that have had reservations, and starts minutes_after_check_out after a stay ends. */
95527
+ vacant?: ({
95528
+ noise_threshold_decibels: number;
95529
+ minutes_after_check_out?: number | undefined;
95530
+ } | null) | undefined;
95531
+ } | undefined;
95532
+ };
95533
+ } | undefined;
95473
95534
  };
95474
95535
  };
95475
95536
  maxDuration: undefined;
@@ -95579,14 +95640,6 @@ export type Routes = {
95579
95640
  volume?: number | undefined;
95580
95641
  } | undefined;
95581
95642
  } | 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
95643
  } | undefined;
95591
95644
  on_check_out?: {
95592
95645
  minutes_after_check_out?: number | undefined;
@@ -95595,14 +95648,6 @@ export type Routes = {
95595
95648
  unmute?: boolean | undefined;
95596
95649
  reset_volume_to?: number | undefined;
95597
95650
  } | 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
95651
  } | undefined;
95607
95652
  } | null) | undefined;
95608
95653
  reservation_time_updated?: ({} | null) | undefined;
@@ -95610,6 +95655,28 @@ export type Routes = {
95610
95655
  reservation_deleted?: ({} | null) | undefined;
95611
95656
  } | undefined;
95612
95657
  } | undefined;
95658
+ /** Sensor automation rules configuration. */
95659
+ sensor_rules?: {
95660
+ rules?: {
95661
+ noise_sensors?: ({
95662
+ normal_hours: {
95663
+ noise_threshold_decibels: number;
95664
+ };
95665
+ quiet_hours?: ({
95666
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95667
+ starts_daily_at: string;
95668
+ /** Time of day as HH:00, in each noise sensor's own time zone. */
95669
+ ends_daily_at: string;
95670
+ noise_threshold_decibels: number;
95671
+ } | null) | undefined;
95672
+ /** All-day level for spaces with no stay in progress. Only applies to spaces that have had reservations, and starts minutes_after_check_out after a stay ends. */
95673
+ vacant?: ({
95674
+ noise_threshold_decibels: number;
95675
+ minutes_after_check_out?: number | undefined;
95676
+ } | null) | undefined;
95677
+ } | null) | undefined;
95678
+ } | undefined;
95679
+ } | undefined;
95613
95680
  };
95614
95681
  commonParams: {};
95615
95682
  formData: {};
@@ -100235,14 +100302,23 @@ export type Routes = {
100235
100302
  longitude: number;
100236
100303
  } | null) | undefined;
100237
100304
  /** Warnings associated with the space. */
100238
- warnings: {
100305
+ warnings: ({
100239
100306
  /** Date and time at which Seam created the warning. */
100240
100307
  created_at: string;
100241
100308
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
100242
100309
  message: string;
100243
100310
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100244
100311
  warning_code: 'being_deleted';
100245
- }[];
100312
+ } | {
100313
+ /** Date and time at which Seam created the warning. */
100314
+ created_at: string;
100315
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
100316
+ message: string;
100317
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100318
+ warning_code: 'noise_sensor_configuration_mismatch';
100319
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
100320
+ device_ids: string[];
100321
+ })[];
100246
100322
  /** */
100247
100323
  parent_space_id?: string | undefined;
100248
100324
  /** */
@@ -100308,14 +100384,23 @@ export type Routes = {
100308
100384
  longitude: number;
100309
100385
  } | null) | undefined;
100310
100386
  /** Warnings associated with the space. */
100311
- warnings: {
100387
+ warnings: ({
100312
100388
  /** Date and time at which Seam created the warning. */
100313
100389
  created_at: string;
100314
100390
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
100315
100391
  message: string;
100316
100392
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100317
100393
  warning_code: 'being_deleted';
100318
- }[];
100394
+ } | {
100395
+ /** Date and time at which Seam created the warning. */
100396
+ created_at: string;
100397
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
100398
+ message: string;
100399
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
100400
+ warning_code: 'noise_sensor_configuration_mismatch';
100401
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
100402
+ device_ids: string[];
100403
+ })[];
100319
100404
  /** */
100320
100405
  parent_space_id?: string | undefined;
100321
100406
  /** */
@@ -105254,14 +105339,23 @@ export type Routes = {
105254
105339
  longitude: number;
105255
105340
  } | null) | undefined;
105256
105341
  /** Warnings associated with the space. */
105257
- warnings: {
105342
+ warnings: ({
105258
105343
  /** Date and time at which Seam created the warning. */
105259
105344
  created_at: string;
105260
105345
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105261
105346
  message: string;
105262
105347
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105263
105348
  warning_code: 'being_deleted';
105264
- }[];
105349
+ } | {
105350
+ /** Date and time at which Seam created the warning. */
105351
+ created_at: string;
105352
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105353
+ message: string;
105354
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105355
+ warning_code: 'noise_sensor_configuration_mismatch';
105356
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
105357
+ device_ids: string[];
105358
+ })[];
105265
105359
  /** */
105266
105360
  parent_space_id?: string | undefined;
105267
105361
  /** */
@@ -105336,14 +105430,23 @@ export type Routes = {
105336
105430
  longitude: number;
105337
105431
  } | null) | undefined;
105338
105432
  /** Warnings associated with the space. */
105339
- warnings: {
105433
+ warnings: ({
105340
105434
  /** Date and time at which Seam created the warning. */
105341
105435
  created_at: string;
105342
105436
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105343
105437
  message: string;
105344
105438
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105345
105439
  warning_code: 'being_deleted';
105346
- }[];
105440
+ } | {
105441
+ /** Date and time at which Seam created the warning. */
105442
+ created_at: string;
105443
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105444
+ message: string;
105445
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105446
+ warning_code: 'noise_sensor_configuration_mismatch';
105447
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
105448
+ device_ids: string[];
105449
+ })[];
105347
105450
  /** */
105348
105451
  parent_space_id?: string | undefined;
105349
105452
  /** */
@@ -105407,14 +105510,23 @@ export type Routes = {
105407
105510
  longitude: number;
105408
105511
  } | null) | undefined;
105409
105512
  /** Warnings associated with the space. */
105410
- warnings: {
105513
+ warnings: ({
105411
105514
  /** Date and time at which Seam created the warning. */
105412
105515
  created_at: string;
105413
105516
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105414
105517
  message: string;
105415
105518
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105416
105519
  warning_code: 'being_deleted';
105417
- }[];
105520
+ } | {
105521
+ /** Date and time at which Seam created the warning. */
105522
+ created_at: string;
105523
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
105524
+ message: string;
105525
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
105526
+ warning_code: 'noise_sensor_configuration_mismatch';
105527
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
105528
+ device_ids: string[];
105529
+ })[];
105418
105530
  /** */
105419
105531
  parent_space_id?: string | undefined;
105420
105532
  /** */
@@ -107836,14 +107948,23 @@ export type Routes = {
107836
107948
  longitude: number;
107837
107949
  } | null) | undefined;
107838
107950
  /** Warnings associated with the space. */
107839
- warnings: {
107951
+ warnings: ({
107840
107952
  /** Date and time at which Seam created the warning. */
107841
107953
  created_at: string;
107842
107954
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
107843
107955
  message: string;
107844
107956
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
107845
107957
  warning_code: 'being_deleted';
107846
- }[];
107958
+ } | {
107959
+ /** Date and time at which Seam created the warning. */
107960
+ created_at: string;
107961
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
107962
+ message: string;
107963
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
107964
+ warning_code: 'noise_sensor_configuration_mismatch';
107965
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
107966
+ device_ids: string[];
107967
+ })[];
107847
107968
  /** */
107848
107969
  parent_space_id?: string | undefined;
107849
107970
  /** */
@@ -107979,14 +108100,23 @@ export type Routes = {
107979
108100
  longitude: number;
107980
108101
  } | null) | undefined;
107981
108102
  /** Warnings associated with the space. */
107982
- warnings: {
108103
+ warnings: ({
107983
108104
  /** Date and time at which Seam created the warning. */
107984
108105
  created_at: string;
107985
108106
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
107986
108107
  message: string;
107987
108108
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
107988
108109
  warning_code: 'being_deleted';
107989
- }[];
108110
+ } | {
108111
+ /** Date and time at which Seam created the warning. */
108112
+ created_at: string;
108113
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
108114
+ message: string;
108115
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
108116
+ warning_code: 'noise_sensor_configuration_mismatch';
108117
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
108118
+ device_ids: string[];
108119
+ })[];
107990
108120
  /** */
107991
108121
  parent_space_id?: string | undefined;
107992
108122
  /** */
@@ -165139,14 +165269,23 @@ export type Routes = {
165139
165269
  longitude: number;
165140
165270
  } | null) | undefined;
165141
165271
  /** Warnings associated with the space. */
165142
- warnings: {
165272
+ warnings: ({
165143
165273
  /** Date and time at which Seam created the warning. */
165144
165274
  created_at: string;
165145
165275
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
165146
165276
  message: string;
165147
165277
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
165148
165278
  warning_code: 'being_deleted';
165149
- }[];
165279
+ } | {
165280
+ /** Date and time at which Seam created the warning. */
165281
+ created_at: string;
165282
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
165283
+ message: string;
165284
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
165285
+ warning_code: 'noise_sensor_configuration_mismatch';
165286
+ /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */
165287
+ device_ids: string[];
165288
+ })[];
165150
165289
  /** */
165151
165290
  parent_space_id?: string | undefined;
165152
165291
  /** */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1138.0",
3
+ "version": "1.1140.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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>