@seamapi/types 1.1138.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.
@@ -35580,6 +35580,42 @@ const openapi: OpenAPISpec = {
35580
35580
  required: ['created_at', 'message', 'warning_code'],
35581
35581
  type: 'object',
35582
35582
  },
35583
+ {
35584
+ description:
35585
+ "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.",
35586
+ properties: {
35587
+ created_at: {
35588
+ description:
35589
+ 'Date and time at which Seam created the warning.',
35590
+ format: 'date-time',
35591
+ type: 'string',
35592
+ },
35593
+ device_ids: {
35594
+ description:
35595
+ 'IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation.',
35596
+ items: { format: 'uuid', type: 'string' },
35597
+ type: 'array',
35598
+ },
35599
+ message: {
35600
+ description:
35601
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
35602
+ type: 'string',
35603
+ },
35604
+ warning_code: {
35605
+ description:
35606
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
35607
+ enum: ['noise_sensor_configuration_mismatch'],
35608
+ type: 'string',
35609
+ },
35610
+ },
35611
+ required: [
35612
+ 'created_at',
35613
+ 'message',
35614
+ 'warning_code',
35615
+ 'device_ids',
35616
+ ],
35617
+ type: 'object',
35618
+ },
35583
35619
  ],
35584
35620
  },
35585
35621
  type: 'array',
@@ -64336,6 +64372,64 @@ const openapi: OpenAPISpec = {
64336
64372
  type: 'object',
64337
64373
  },
64338
64374
  ok: { type: 'boolean' },
64375
+ sensor_rules: {
64376
+ properties: {
64377
+ rules: {
64378
+ properties: {
64379
+ noise_sensors: {
64380
+ properties: {
64381
+ normal_hours: {
64382
+ properties: {
64383
+ noise_threshold_decibels: {
64384
+ format: 'float',
64385
+ maximum: 120,
64386
+ minimum: 60,
64387
+ type: 'number',
64388
+ },
64389
+ },
64390
+ required: ['noise_threshold_decibels'],
64391
+ type: 'object',
64392
+ },
64393
+ quiet_hours: {
64394
+ nullable: true,
64395
+ properties: {
64396
+ ends_daily_at: {
64397
+ description:
64398
+ "Time of day as HH:00, in each noise sensor's own time zone.",
64399
+ pattern: '^([01]\\d|2[0-3]):00$',
64400
+ type: 'string',
64401
+ },
64402
+ noise_threshold_decibels: {
64403
+ format: 'float',
64404
+ maximum: 120,
64405
+ minimum: 60,
64406
+ type: 'number',
64407
+ },
64408
+ starts_daily_at: {
64409
+ description:
64410
+ "Time of day as HH:00, in each noise sensor's own time zone.",
64411
+ pattern: '^([01]\\d|2[0-3]):00$',
64412
+ type: 'string',
64413
+ },
64414
+ },
64415
+ required: [
64416
+ 'starts_daily_at',
64417
+ 'ends_daily_at',
64418
+ 'noise_threshold_decibels',
64419
+ ],
64420
+ type: 'object',
64421
+ },
64422
+ },
64423
+ required: ['normal_hours'],
64424
+ type: 'object',
64425
+ },
64426
+ },
64427
+ type: 'object',
64428
+ },
64429
+ },
64430
+ required: ['rules'],
64431
+ type: 'object',
64432
+ },
64339
64433
  sound_rules: {
64340
64434
  properties: {
64341
64435
  rules: {
@@ -64349,19 +64443,6 @@ const openapi: OpenAPISpec = {
64349
64443
  minimum: 0,
64350
64444
  type: 'integer',
64351
64445
  },
64352
- noise_sensors: {
64353
- properties: {
64354
- noise_thresholds: {
64355
- items: {
64356
- $ref: '#/components/schemas/noise_threshold',
64357
- },
64358
- maxItems: 10,
64359
- type: 'array',
64360
- },
64361
- },
64362
- required: ['noise_thresholds'],
64363
- type: 'object',
64364
- },
64365
64446
  speakers: {
64366
64447
  properties: {
64367
64448
  play_audio_clip: {
@@ -64414,19 +64495,6 @@ const openapi: OpenAPISpec = {
64414
64495
  minimum: 0,
64415
64496
  type: 'integer',
64416
64497
  },
64417
- noise_sensors: {
64418
- properties: {
64419
- noise_thresholds: {
64420
- items: {
64421
- $ref: '#/components/schemas/noise_threshold',
64422
- },
64423
- maxItems: 10,
64424
- type: 'array',
64425
- },
64426
- },
64427
- required: ['noise_thresholds'],
64428
- type: 'object',
64429
- },
64430
64498
  speakers: {
64431
64499
  properties: {
64432
64500
  pause_playback: { type: 'boolean' },
@@ -64856,6 +64924,66 @@ const openapi: OpenAPISpec = {
64856
64924
  minLength: 1,
64857
64925
  type: 'string',
64858
64926
  },
64927
+ sensor_rules: {
64928
+ description:
64929
+ "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.",
64930
+ properties: {
64931
+ rules: {
64932
+ properties: {
64933
+ noise_sensors: {
64934
+ nullable: true,
64935
+ properties: {
64936
+ normal_hours: {
64937
+ properties: {
64938
+ noise_threshold_decibels: {
64939
+ format: 'float',
64940
+ maximum: 120,
64941
+ minimum: 60,
64942
+ type: 'number',
64943
+ },
64944
+ },
64945
+ required: ['noise_threshold_decibels'],
64946
+ type: 'object',
64947
+ },
64948
+ quiet_hours: {
64949
+ nullable: true,
64950
+ properties: {
64951
+ ends_daily_at: {
64952
+ description:
64953
+ "Time of day as HH:00, in each noise sensor's own time zone.",
64954
+ pattern: '^([01]\\d|2[0-3]):00$',
64955
+ type: 'string',
64956
+ },
64957
+ noise_threshold_decibels: {
64958
+ format: 'float',
64959
+ maximum: 120,
64960
+ minimum: 60,
64961
+ type: 'number',
64962
+ },
64963
+ starts_daily_at: {
64964
+ description:
64965
+ "Time of day as HH:00, in each noise sensor's own time zone.",
64966
+ pattern: '^([01]\\d|2[0-3]):00$',
64967
+ type: 'string',
64968
+ },
64969
+ },
64970
+ required: [
64971
+ 'starts_daily_at',
64972
+ 'ends_daily_at',
64973
+ 'noise_threshold_decibels',
64974
+ ],
64975
+ type: 'object',
64976
+ },
64977
+ },
64978
+ required: ['normal_hours'],
64979
+ type: 'object',
64980
+ },
64981
+ },
64982
+ type: 'object',
64983
+ },
64984
+ },
64985
+ type: 'object',
64986
+ },
64859
64987
  sound_rules: {
64860
64988
  description: 'Sound automation rules configuration.',
64861
64989
  properties: {
@@ -64871,33 +64999,6 @@ const openapi: OpenAPISpec = {
64871
64999
  minimum: 0,
64872
65000
  type: 'integer',
64873
65001
  },
64874
- noise_sensors: {
64875
- properties: {
64876
- noise_thresholds: {
64877
- items: {
64878
- properties: {
64879
- ends_daily_at: { type: 'string' },
64880
- name: { type: 'string' },
64881
- noise_threshold_decibels: {
64882
- format: 'float',
64883
- type: 'number',
64884
- },
64885
- starts_daily_at: { type: 'string' },
64886
- },
64887
- required: [
64888
- 'starts_daily_at',
64889
- 'ends_daily_at',
64890
- 'noise_threshold_decibels',
64891
- ],
64892
- type: 'object',
64893
- },
64894
- maxItems: 10,
64895
- type: 'array',
64896
- },
64897
- },
64898
- required: ['noise_thresholds'],
64899
- type: 'object',
64900
- },
64901
65002
  speakers: {
64902
65003
  properties: {
64903
65004
  play_audio_clip: {
@@ -64950,33 +65051,6 @@ const openapi: OpenAPISpec = {
64950
65051
  minimum: 0,
64951
65052
  type: 'integer',
64952
65053
  },
64953
- noise_sensors: {
64954
- properties: {
64955
- noise_thresholds: {
64956
- items: {
64957
- properties: {
64958
- ends_daily_at: { type: 'string' },
64959
- name: { type: 'string' },
64960
- noise_threshold_decibels: {
64961
- format: 'float',
64962
- type: 'number',
64963
- },
64964
- starts_daily_at: { type: 'string' },
64965
- },
64966
- required: [
64967
- 'starts_daily_at',
64968
- 'ends_daily_at',
64969
- 'noise_threshold_decibels',
64970
- ],
64971
- type: 'object',
64972
- },
64973
- maxItems: 10,
64974
- type: 'array',
64975
- },
64976
- },
64977
- required: ['noise_thresholds'],
64978
- type: 'object',
64979
- },
64980
65054
  speakers: {
64981
65055
  properties: {
64982
65056
  pause_playback: { type: 'boolean' },
@@ -66341,6 +66415,64 @@ const openapi: OpenAPISpec = {
66341
66415
  required: ['rules'],
66342
66416
  type: 'object',
66343
66417
  },
66418
+ sensor_rules: {
66419
+ properties: {
66420
+ rules: {
66421
+ properties: {
66422
+ noise_sensors: {
66423
+ properties: {
66424
+ normal_hours: {
66425
+ properties: {
66426
+ noise_threshold_decibels: {
66427
+ format: 'float',
66428
+ maximum: 120,
66429
+ minimum: 60,
66430
+ type: 'number',
66431
+ },
66432
+ },
66433
+ required: ['noise_threshold_decibels'],
66434
+ type: 'object',
66435
+ },
66436
+ quiet_hours: {
66437
+ nullable: true,
66438
+ properties: {
66439
+ ends_daily_at: {
66440
+ description:
66441
+ "Time of day as HH:00, in each noise sensor's own time zone.",
66442
+ pattern: '^([01]\\d|2[0-3]):00$',
66443
+ type: 'string',
66444
+ },
66445
+ noise_threshold_decibels: {
66446
+ format: 'float',
66447
+ maximum: 120,
66448
+ minimum: 60,
66449
+ type: 'number',
66450
+ },
66451
+ starts_daily_at: {
66452
+ description:
66453
+ "Time of day as HH:00, in each noise sensor's own time zone.",
66454
+ pattern: '^([01]\\d|2[0-3]):00$',
66455
+ type: 'string',
66456
+ },
66457
+ },
66458
+ required: [
66459
+ 'starts_daily_at',
66460
+ 'ends_daily_at',
66461
+ 'noise_threshold_decibels',
66462
+ ],
66463
+ type: 'object',
66464
+ },
66465
+ },
66466
+ required: ['normal_hours'],
66467
+ type: 'object',
66468
+ },
66469
+ },
66470
+ type: 'object',
66471
+ },
66472
+ },
66473
+ required: ['rules'],
66474
+ type: 'object',
66475
+ },
66344
66476
  sound_rules: {
66345
66477
  properties: {
66346
66478
  rules: {
@@ -66354,19 +66486,6 @@ const openapi: OpenAPISpec = {
66354
66486
  minimum: 0,
66355
66487
  type: 'integer',
66356
66488
  },
66357
- noise_sensors: {
66358
- properties: {
66359
- noise_thresholds: {
66360
- items: {
66361
- $ref: '#/components/schemas/noise_threshold',
66362
- },
66363
- maxItems: 10,
66364
- type: 'array',
66365
- },
66366
- },
66367
- required: ['noise_thresholds'],
66368
- type: 'object',
66369
- },
66370
66489
  speakers: {
66371
66490
  properties: {
66372
66491
  play_audio_clip: {
@@ -66419,19 +66538,6 @@ const openapi: OpenAPISpec = {
66419
66538
  minimum: 0,
66420
66539
  type: 'integer',
66421
66540
  },
66422
- noise_sensors: {
66423
- properties: {
66424
- noise_thresholds: {
66425
- items: {
66426
- $ref: '#/components/schemas/noise_threshold',
66427
- },
66428
- maxItems: 10,
66429
- type: 'array',
66430
- },
66431
- },
66432
- required: ['noise_thresholds'],
66433
- type: 'object',
66434
- },
66435
66541
  speakers: {
66436
66542
  properties: {
66437
66543
  pause_playback: { type: 'boolean' },
@@ -66781,6 +66887,65 @@ const openapi: OpenAPISpec = {
66781
66887
  },
66782
66888
  type: 'object',
66783
66889
  },
66890
+ sensor_rules: {
66891
+ description: 'Sensor automation rules configuration.',
66892
+ properties: {
66893
+ rules: {
66894
+ properties: {
66895
+ noise_sensors: {
66896
+ nullable: true,
66897
+ properties: {
66898
+ normal_hours: {
66899
+ properties: {
66900
+ noise_threshold_decibels: {
66901
+ format: 'float',
66902
+ maximum: 120,
66903
+ minimum: 60,
66904
+ type: 'number',
66905
+ },
66906
+ },
66907
+ required: ['noise_threshold_decibels'],
66908
+ type: 'object',
66909
+ },
66910
+ quiet_hours: {
66911
+ nullable: true,
66912
+ properties: {
66913
+ ends_daily_at: {
66914
+ description:
66915
+ "Time of day as HH:00, in each noise sensor's own time zone.",
66916
+ pattern: '^([01]\\d|2[0-3]):00$',
66917
+ type: 'string',
66918
+ },
66919
+ noise_threshold_decibels: {
66920
+ format: 'float',
66921
+ maximum: 120,
66922
+ minimum: 60,
66923
+ type: 'number',
66924
+ },
66925
+ starts_daily_at: {
66926
+ description:
66927
+ "Time of day as HH:00, in each noise sensor's own time zone.",
66928
+ pattern: '^([01]\\d|2[0-3]):00$',
66929
+ type: 'string',
66930
+ },
66931
+ },
66932
+ required: [
66933
+ 'starts_daily_at',
66934
+ 'ends_daily_at',
66935
+ 'noise_threshold_decibels',
66936
+ ],
66937
+ type: 'object',
66938
+ },
66939
+ },
66940
+ required: ['normal_hours'],
66941
+ type: 'object',
66942
+ },
66943
+ },
66944
+ type: 'object',
66945
+ },
66946
+ },
66947
+ type: 'object',
66948
+ },
66784
66949
  sound_rules: {
66785
66950
  description: 'Sound automation rules configuration.',
66786
66951
  properties: {
@@ -66796,33 +66961,6 @@ const openapi: OpenAPISpec = {
66796
66961
  minimum: 0,
66797
66962
  type: 'integer',
66798
66963
  },
66799
- noise_sensors: {
66800
- properties: {
66801
- noise_thresholds: {
66802
- items: {
66803
- properties: {
66804
- ends_daily_at: { type: 'string' },
66805
- name: { type: 'string' },
66806
- noise_threshold_decibels: {
66807
- format: 'float',
66808
- type: 'number',
66809
- },
66810
- starts_daily_at: { type: 'string' },
66811
- },
66812
- required: [
66813
- 'starts_daily_at',
66814
- 'ends_daily_at',
66815
- 'noise_threshold_decibels',
66816
- ],
66817
- type: 'object',
66818
- },
66819
- maxItems: 10,
66820
- type: 'array',
66821
- },
66822
- },
66823
- required: ['noise_thresholds'],
66824
- type: 'object',
66825
- },
66826
66964
  speakers: {
66827
66965
  properties: {
66828
66966
  play_audio_clip: {
@@ -66875,33 +67013,6 @@ const openapi: OpenAPISpec = {
66875
67013
  minimum: 0,
66876
67014
  type: 'integer',
66877
67015
  },
66878
- noise_sensors: {
66879
- properties: {
66880
- noise_thresholds: {
66881
- items: {
66882
- properties: {
66883
- ends_daily_at: { type: 'string' },
66884
- name: { type: 'string' },
66885
- noise_threshold_decibels: {
66886
- format: 'float',
66887
- type: 'number',
66888
- },
66889
- starts_daily_at: { type: 'string' },
66890
- },
66891
- required: [
66892
- 'starts_daily_at',
66893
- 'ends_daily_at',
66894
- 'noise_threshold_decibels',
66895
- ],
66896
- type: 'object',
66897
- },
66898
- maxItems: 10,
66899
- type: 'array',
66900
- },
66901
- },
66902
- required: ['noise_thresholds'],
66903
- type: 'object',
66904
- },
66905
67016
  speakers: {
66906
67017
  properties: {
66907
67018
  pause_playback: { type: 'boolean' },