@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.
@@ -31857,6 +31857,37 @@ const openapi = {
31857
31857
  required: ['created_at', 'message', 'warning_code'],
31858
31858
  type: 'object',
31859
31859
  },
31860
+ {
31861
+ description: "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.",
31862
+ properties: {
31863
+ created_at: {
31864
+ description: 'Date and time at which Seam created the warning.',
31865
+ format: 'date-time',
31866
+ type: 'string',
31867
+ },
31868
+ device_ids: {
31869
+ description: 'IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation.',
31870
+ items: { format: 'uuid', type: 'string' },
31871
+ type: 'array',
31872
+ },
31873
+ message: {
31874
+ description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
31875
+ type: 'string',
31876
+ },
31877
+ warning_code: {
31878
+ description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
31879
+ enum: ['noise_sensor_configuration_mismatch'],
31880
+ type: 'string',
31881
+ },
31882
+ },
31883
+ required: [
31884
+ 'created_at',
31885
+ 'message',
31886
+ 'warning_code',
31887
+ 'device_ids',
31888
+ ],
31889
+ type: 'object',
31890
+ },
31860
31891
  ],
31861
31892
  },
31862
31893
  type: 'array',
@@ -58701,6 +58732,62 @@ const openapi = {
58701
58732
  type: 'object',
58702
58733
  },
58703
58734
  ok: { type: 'boolean' },
58735
+ sensor_rules: {
58736
+ properties: {
58737
+ rules: {
58738
+ properties: {
58739
+ noise_sensors: {
58740
+ properties: {
58741
+ normal_hours: {
58742
+ properties: {
58743
+ noise_threshold_decibels: {
58744
+ format: 'float',
58745
+ maximum: 120,
58746
+ minimum: 60,
58747
+ type: 'number',
58748
+ },
58749
+ },
58750
+ required: ['noise_threshold_decibels'],
58751
+ type: 'object',
58752
+ },
58753
+ quiet_hours: {
58754
+ nullable: true,
58755
+ properties: {
58756
+ ends_daily_at: {
58757
+ description: "Time of day as HH:00, in each noise sensor's own time zone.",
58758
+ pattern: '^([01]\\d|2[0-3]):00$',
58759
+ type: 'string',
58760
+ },
58761
+ noise_threshold_decibels: {
58762
+ format: 'float',
58763
+ maximum: 120,
58764
+ minimum: 60,
58765
+ type: 'number',
58766
+ },
58767
+ starts_daily_at: {
58768
+ description: "Time of day as HH:00, in each noise sensor's own time zone.",
58769
+ pattern: '^([01]\\d|2[0-3]):00$',
58770
+ type: 'string',
58771
+ },
58772
+ },
58773
+ required: [
58774
+ 'starts_daily_at',
58775
+ 'ends_daily_at',
58776
+ 'noise_threshold_decibels',
58777
+ ],
58778
+ type: 'object',
58779
+ },
58780
+ },
58781
+ required: ['normal_hours'],
58782
+ type: 'object',
58783
+ },
58784
+ },
58785
+ type: 'object',
58786
+ },
58787
+ },
58788
+ required: ['rules'],
58789
+ type: 'object',
58790
+ },
58704
58791
  sound_rules: {
58705
58792
  properties: {
58706
58793
  rules: {
@@ -58714,19 +58801,6 @@ const openapi = {
58714
58801
  minimum: 0,
58715
58802
  type: 'integer',
58716
58803
  },
58717
- noise_sensors: {
58718
- properties: {
58719
- noise_thresholds: {
58720
- items: {
58721
- $ref: '#/components/schemas/noise_threshold',
58722
- },
58723
- maxItems: 10,
58724
- type: 'array',
58725
- },
58726
- },
58727
- required: ['noise_thresholds'],
58728
- type: 'object',
58729
- },
58730
58804
  speakers: {
58731
58805
  properties: {
58732
58806
  play_audio_clip: {
@@ -58778,19 +58852,6 @@ const openapi = {
58778
58852
  minimum: 0,
58779
58853
  type: 'integer',
58780
58854
  },
58781
- noise_sensors: {
58782
- properties: {
58783
- noise_thresholds: {
58784
- items: {
58785
- $ref: '#/components/schemas/noise_threshold',
58786
- },
58787
- maxItems: 10,
58788
- type: 'array',
58789
- },
58790
- },
58791
- required: ['noise_thresholds'],
58792
- type: 'object',
58793
- },
58794
58855
  speakers: {
58795
58856
  properties: {
58796
58857
  pause_playback: { type: 'boolean' },
@@ -59209,6 +59270,63 @@ const openapi = {
59209
59270
  minLength: 1,
59210
59271
  type: 'string',
59211
59272
  },
59273
+ sensor_rules: {
59274
+ description: "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.",
59275
+ properties: {
59276
+ rules: {
59277
+ properties: {
59278
+ noise_sensors: {
59279
+ nullable: true,
59280
+ properties: {
59281
+ normal_hours: {
59282
+ properties: {
59283
+ noise_threshold_decibels: {
59284
+ format: 'float',
59285
+ maximum: 120,
59286
+ minimum: 60,
59287
+ type: 'number',
59288
+ },
59289
+ },
59290
+ required: ['noise_threshold_decibels'],
59291
+ type: 'object',
59292
+ },
59293
+ quiet_hours: {
59294
+ nullable: true,
59295
+ properties: {
59296
+ ends_daily_at: {
59297
+ description: "Time of day as HH:00, in each noise sensor's own time zone.",
59298
+ pattern: '^([01]\\d|2[0-3]):00$',
59299
+ type: 'string',
59300
+ },
59301
+ noise_threshold_decibels: {
59302
+ format: 'float',
59303
+ maximum: 120,
59304
+ minimum: 60,
59305
+ type: 'number',
59306
+ },
59307
+ starts_daily_at: {
59308
+ description: "Time of day as HH:00, in each noise sensor's own time zone.",
59309
+ pattern: '^([01]\\d|2[0-3]):00$',
59310
+ type: 'string',
59311
+ },
59312
+ },
59313
+ required: [
59314
+ 'starts_daily_at',
59315
+ 'ends_daily_at',
59316
+ 'noise_threshold_decibels',
59317
+ ],
59318
+ type: 'object',
59319
+ },
59320
+ },
59321
+ required: ['normal_hours'],
59322
+ type: 'object',
59323
+ },
59324
+ },
59325
+ type: 'object',
59326
+ },
59327
+ },
59328
+ type: 'object',
59329
+ },
59212
59330
  sound_rules: {
59213
59331
  description: 'Sound automation rules configuration.',
59214
59332
  properties: {
@@ -59224,33 +59342,6 @@ const openapi = {
59224
59342
  minimum: 0,
59225
59343
  type: 'integer',
59226
59344
  },
59227
- noise_sensors: {
59228
- properties: {
59229
- noise_thresholds: {
59230
- items: {
59231
- properties: {
59232
- ends_daily_at: { type: 'string' },
59233
- name: { type: 'string' },
59234
- noise_threshold_decibels: {
59235
- format: 'float',
59236
- type: 'number',
59237
- },
59238
- starts_daily_at: { type: 'string' },
59239
- },
59240
- required: [
59241
- 'starts_daily_at',
59242
- 'ends_daily_at',
59243
- 'noise_threshold_decibels',
59244
- ],
59245
- type: 'object',
59246
- },
59247
- maxItems: 10,
59248
- type: 'array',
59249
- },
59250
- },
59251
- required: ['noise_thresholds'],
59252
- type: 'object',
59253
- },
59254
59345
  speakers: {
59255
59346
  properties: {
59256
59347
  play_audio_clip: {
@@ -59302,33 +59393,6 @@ const openapi = {
59302
59393
  minimum: 0,
59303
59394
  type: 'integer',
59304
59395
  },
59305
- noise_sensors: {
59306
- properties: {
59307
- noise_thresholds: {
59308
- items: {
59309
- properties: {
59310
- ends_daily_at: { type: 'string' },
59311
- name: { type: 'string' },
59312
- noise_threshold_decibels: {
59313
- format: 'float',
59314
- type: 'number',
59315
- },
59316
- starts_daily_at: { type: 'string' },
59317
- },
59318
- required: [
59319
- 'starts_daily_at',
59320
- 'ends_daily_at',
59321
- 'noise_threshold_decibels',
59322
- ],
59323
- type: 'object',
59324
- },
59325
- maxItems: 10,
59326
- type: 'array',
59327
- },
59328
- },
59329
- required: ['noise_thresholds'],
59330
- type: 'object',
59331
- },
59332
59396
  speakers: {
59333
59397
  properties: {
59334
59398
  pause_playback: { type: 'boolean' },
@@ -60653,6 +60717,62 @@ const openapi = {
60653
60717
  required: ['rules'],
60654
60718
  type: 'object',
60655
60719
  },
60720
+ sensor_rules: {
60721
+ properties: {
60722
+ rules: {
60723
+ properties: {
60724
+ noise_sensors: {
60725
+ properties: {
60726
+ normal_hours: {
60727
+ properties: {
60728
+ noise_threshold_decibels: {
60729
+ format: 'float',
60730
+ maximum: 120,
60731
+ minimum: 60,
60732
+ type: 'number',
60733
+ },
60734
+ },
60735
+ required: ['noise_threshold_decibels'],
60736
+ type: 'object',
60737
+ },
60738
+ quiet_hours: {
60739
+ nullable: true,
60740
+ properties: {
60741
+ ends_daily_at: {
60742
+ description: "Time of day as HH:00, in each noise sensor's own time zone.",
60743
+ pattern: '^([01]\\d|2[0-3]):00$',
60744
+ type: 'string',
60745
+ },
60746
+ noise_threshold_decibels: {
60747
+ format: 'float',
60748
+ maximum: 120,
60749
+ minimum: 60,
60750
+ type: 'number',
60751
+ },
60752
+ starts_daily_at: {
60753
+ description: "Time of day as HH:00, in each noise sensor's own time zone.",
60754
+ pattern: '^([01]\\d|2[0-3]):00$',
60755
+ type: 'string',
60756
+ },
60757
+ },
60758
+ required: [
60759
+ 'starts_daily_at',
60760
+ 'ends_daily_at',
60761
+ 'noise_threshold_decibels',
60762
+ ],
60763
+ type: 'object',
60764
+ },
60765
+ },
60766
+ required: ['normal_hours'],
60767
+ type: 'object',
60768
+ },
60769
+ },
60770
+ type: 'object',
60771
+ },
60772
+ },
60773
+ required: ['rules'],
60774
+ type: 'object',
60775
+ },
60656
60776
  sound_rules: {
60657
60777
  properties: {
60658
60778
  rules: {
@@ -60666,19 +60786,6 @@ const openapi = {
60666
60786
  minimum: 0,
60667
60787
  type: 'integer',
60668
60788
  },
60669
- noise_sensors: {
60670
- properties: {
60671
- noise_thresholds: {
60672
- items: {
60673
- $ref: '#/components/schemas/noise_threshold',
60674
- },
60675
- maxItems: 10,
60676
- type: 'array',
60677
- },
60678
- },
60679
- required: ['noise_thresholds'],
60680
- type: 'object',
60681
- },
60682
60789
  speakers: {
60683
60790
  properties: {
60684
60791
  play_audio_clip: {
@@ -60730,19 +60837,6 @@ const openapi = {
60730
60837
  minimum: 0,
60731
60838
  type: 'integer',
60732
60839
  },
60733
- noise_sensors: {
60734
- properties: {
60735
- noise_thresholds: {
60736
- items: {
60737
- $ref: '#/components/schemas/noise_threshold',
60738
- },
60739
- maxItems: 10,
60740
- type: 'array',
60741
- },
60742
- },
60743
- required: ['noise_thresholds'],
60744
- type: 'object',
60745
- },
60746
60840
  speakers: {
60747
60841
  properties: {
60748
60842
  pause_playback: { type: 'boolean' },
@@ -61088,6 +61182,63 @@ const openapi = {
61088
61182
  },
61089
61183
  type: 'object',
61090
61184
  },
61185
+ sensor_rules: {
61186
+ description: 'Sensor automation rules configuration.',
61187
+ properties: {
61188
+ rules: {
61189
+ properties: {
61190
+ noise_sensors: {
61191
+ nullable: true,
61192
+ properties: {
61193
+ normal_hours: {
61194
+ properties: {
61195
+ noise_threshold_decibels: {
61196
+ format: 'float',
61197
+ maximum: 120,
61198
+ minimum: 60,
61199
+ type: 'number',
61200
+ },
61201
+ },
61202
+ required: ['noise_threshold_decibels'],
61203
+ type: 'object',
61204
+ },
61205
+ quiet_hours: {
61206
+ nullable: true,
61207
+ properties: {
61208
+ ends_daily_at: {
61209
+ description: "Time of day as HH:00, in each noise sensor's own time zone.",
61210
+ pattern: '^([01]\\d|2[0-3]):00$',
61211
+ type: 'string',
61212
+ },
61213
+ noise_threshold_decibels: {
61214
+ format: 'float',
61215
+ maximum: 120,
61216
+ minimum: 60,
61217
+ type: 'number',
61218
+ },
61219
+ starts_daily_at: {
61220
+ description: "Time of day as HH:00, in each noise sensor's own time zone.",
61221
+ pattern: '^([01]\\d|2[0-3]):00$',
61222
+ type: 'string',
61223
+ },
61224
+ },
61225
+ required: [
61226
+ 'starts_daily_at',
61227
+ 'ends_daily_at',
61228
+ 'noise_threshold_decibels',
61229
+ ],
61230
+ type: 'object',
61231
+ },
61232
+ },
61233
+ required: ['normal_hours'],
61234
+ type: 'object',
61235
+ },
61236
+ },
61237
+ type: 'object',
61238
+ },
61239
+ },
61240
+ type: 'object',
61241
+ },
61091
61242
  sound_rules: {
61092
61243
  description: 'Sound automation rules configuration.',
61093
61244
  properties: {
@@ -61103,33 +61254,6 @@ const openapi = {
61103
61254
  minimum: 0,
61104
61255
  type: 'integer',
61105
61256
  },
61106
- noise_sensors: {
61107
- properties: {
61108
- noise_thresholds: {
61109
- items: {
61110
- properties: {
61111
- ends_daily_at: { type: 'string' },
61112
- name: { type: 'string' },
61113
- noise_threshold_decibels: {
61114
- format: 'float',
61115
- type: 'number',
61116
- },
61117
- starts_daily_at: { type: 'string' },
61118
- },
61119
- required: [
61120
- 'starts_daily_at',
61121
- 'ends_daily_at',
61122
- 'noise_threshold_decibels',
61123
- ],
61124
- type: 'object',
61125
- },
61126
- maxItems: 10,
61127
- type: 'array',
61128
- },
61129
- },
61130
- required: ['noise_thresholds'],
61131
- type: 'object',
61132
- },
61133
61257
  speakers: {
61134
61258
  properties: {
61135
61259
  play_audio_clip: {
@@ -61181,33 +61305,6 @@ const openapi = {
61181
61305
  minimum: 0,
61182
61306
  type: 'integer',
61183
61307
  },
61184
- noise_sensors: {
61185
- properties: {
61186
- noise_thresholds: {
61187
- items: {
61188
- properties: {
61189
- ends_daily_at: { type: 'string' },
61190
- name: { type: 'string' },
61191
- noise_threshold_decibels: {
61192
- format: 'float',
61193
- type: 'number',
61194
- },
61195
- starts_daily_at: { type: 'string' },
61196
- },
61197
- required: [
61198
- 'starts_daily_at',
61199
- 'ends_daily_at',
61200
- 'noise_threshold_decibels',
61201
- ],
61202
- type: 'object',
61203
- },
61204
- maxItems: 10,
61205
- type: 'array',
61206
- },
61207
- },
61208
- required: ['noise_thresholds'],
61209
- type: 'object',
61210
- },
61211
61308
  speakers: {
61212
61309
  properties: {
61213
61310
  pause_playback: { type: 'boolean' },