@seamapi/types 1.498.0 → 1.500.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.
@@ -20145,6 +20145,22 @@ export type Routes = {
20145
20145
  message: string;
20146
20146
  }[];
20147
20147
  }[] | undefined;
20148
+ noise_thresholds?: {
20149
+ /** Unique identifier for the noise threshold. */
20150
+ noise_threshold_id: string;
20151
+ /** Unique identifier for the device that contains the noise threshold. */
20152
+ device_id: string;
20153
+ /** Name of the noise threshold. */
20154
+ name: string;
20155
+ /** Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://docs.seam.co/latest/device-and-system-integration-guides/noiseaware-sensors). */
20156
+ noise_threshold_nrs?: number | undefined;
20157
+ /** Time at which the noise threshold should become active daily. */
20158
+ starts_daily_at: string;
20159
+ /** Time at which the noise threshold should become inactive daily. */
20160
+ ends_daily_at: string;
20161
+ /** Noise level in decibels for the noise threshold. */
20162
+ noise_threshold_decibels: number;
20163
+ }[] | undefined;
20148
20164
  };
20149
20165
  };
20150
20166
  };
@@ -86095,6 +86111,22 @@ export type Routes = {
86095
86111
  message: string;
86096
86112
  }[];
86097
86113
  }[] | undefined;
86114
+ noise_thresholds?: {
86115
+ /** Unique identifier for the noise threshold. */
86116
+ noise_threshold_id: string;
86117
+ /** Unique identifier for the device that contains the noise threshold. */
86118
+ device_id: string;
86119
+ /** Name of the noise threshold. */
86120
+ name: string;
86121
+ /** Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://docs.seam.co/latest/device-and-system-integration-guides/noiseaware-sensors). */
86122
+ noise_threshold_nrs?: number | undefined;
86123
+ /** Time at which the noise threshold should become active daily. */
86124
+ starts_daily_at: string;
86125
+ /** Time at which the noise threshold should become inactive daily. */
86126
+ ends_daily_at: string;
86127
+ /** Noise level in decibels for the noise threshold. */
86128
+ noise_threshold_decibels: number;
86129
+ }[] | undefined;
86098
86130
  };
86099
86131
  };
86100
86132
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.498.0",
3
+ "version": "1.500.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -22,6 +22,7 @@ import { device } from './devices/index.js'
22
22
  import { unmanaged_device } from './devices/unmanaged-device.js'
23
23
  import { seam_event } from './events/seam-event.js'
24
24
  import { instant_key } from './instant-keys/instant-key.js'
25
+ import { noise_threshold } from './noise-sensors/noise-threshold.js'
25
26
  import { space } from './spaces/index.js'
26
27
  import {
27
28
  thermostat_daily_program,
@@ -88,6 +89,7 @@ export const workspaces_batch = z
88
89
  unmanaged_access_codes: unmanaged_access_code.array().optional(),
89
90
  thermostat_daily_programs: thermostat_daily_program.array().optional(),
90
91
  thermostat_schedules: thermostat_schedule.array().optional(),
92
+ noise_thresholds: noise_threshold.array().optional(),
91
93
  })
92
94
  .describe('A batch of workspace resources.')
93
95
 
@@ -124,6 +126,7 @@ export const batch = z
124
126
  unmanaged_access_codes: unmanaged_access_code.array().optional(),
125
127
  thermostat_daily_programs: thermostat_daily_program.array().optional(),
126
128
  thermostat_schedules: thermostat_schedule.array().optional(),
129
+ noise_thresholds: noise_threshold.array().optional(),
127
130
  })
128
131
  .describe('A batch of workspace resources.')
129
132
 
@@ -9200,6 +9200,28 @@ export default {
9200
9200
  type: 'object',
9201
9201
  'x-route-path': '/connected_accounts',
9202
9202
  },
9203
+ customization_profile: {
9204
+ description: 'A customization profile.',
9205
+ properties: {
9206
+ created_at: { format: 'date-time', type: 'string' },
9207
+ customization_profile_id: { format: 'uuid', type: 'string' },
9208
+ logo_url: { format: 'uri', type: 'string' },
9209
+ name: { nullable: true, type: 'string' },
9210
+ primary_color: { type: 'string' },
9211
+ secondary_color: { type: 'string' },
9212
+ workspace_id: { format: 'uuid', type: 'string' },
9213
+ },
9214
+ required: [
9215
+ 'workspace_id',
9216
+ 'name',
9217
+ 'customization_profile_id',
9218
+ 'created_at',
9219
+ ],
9220
+ type: 'object',
9221
+ 'x-route-path': '/workspaces/customization_profiles',
9222
+ 'x-title': 'Customization Profile',
9223
+ 'x-undocumented': 'Unreleased.',
9224
+ },
9203
9225
  device: {
9204
9226
  description:
9205
9227
  'Represents a [device](https://docs.seam.co/latest/core-concepts/devices) that has been connected to Seam.',
@@ -29281,6 +29303,12 @@ export default {
29281
29303
  items: { $ref: '#/components/schemas/instant_key' },
29282
29304
  type: 'array',
29283
29305
  },
29306
+ noise_thresholds: {
29307
+ items: {
29308
+ $ref: '#/components/schemas/noise_threshold',
29309
+ },
29310
+ type: 'array',
29311
+ },
29284
29312
  spaces: {
29285
29313
  items: { $ref: '#/components/schemas/space' },
29286
29314
  type: 'array',
@@ -29490,6 +29518,12 @@ export default {
29490
29518
  items: { $ref: '#/components/schemas/instant_key' },
29491
29519
  type: 'array',
29492
29520
  },
29521
+ noise_thresholds: {
29522
+ items: {
29523
+ $ref: '#/components/schemas/noise_threshold',
29524
+ },
29525
+ type: 'array',
29526
+ },
29493
29527
  spaces: {
29494
29528
  items: { $ref: '#/components/schemas/space' },
29495
29529
  type: 'array',
@@ -56331,29 +56365,7 @@ export default {
56331
56365
  schema: {
56332
56366
  properties: {
56333
56367
  customization_profile: {
56334
- description: 'A customization profile.',
56335
- properties: {
56336
- created_at: { format: 'date-time', type: 'string' },
56337
- customization_profile_id: {
56338
- format: 'uuid',
56339
- type: 'string',
56340
- },
56341
- logo_url: { format: 'uri', type: 'string' },
56342
- name: { nullable: true, type: 'string' },
56343
- primary_color: { type: 'string' },
56344
- secondary_color: { type: 'string' },
56345
- workspace_id: { format: 'uuid', type: 'string' },
56346
- },
56347
- required: [
56348
- 'workspace_id',
56349
- 'name',
56350
- 'customization_profile_id',
56351
- 'created_at',
56352
- ],
56353
- type: 'object',
56354
- 'x-route-path': '/workspaces/customization_profiles',
56355
- 'x-title': 'Customization Profile',
56356
- 'x-undocumented': 'Unreleased.',
56368
+ $ref: '#/components/schemas/customization_profile',
56357
56369
  },
56358
56370
  ok: { type: 'boolean' },
56359
56371
  },
@@ -56402,29 +56414,7 @@ export default {
56402
56414
  schema: {
56403
56415
  properties: {
56404
56416
  customization_profile: {
56405
- description: 'A customization profile.',
56406
- properties: {
56407
- created_at: { format: 'date-time', type: 'string' },
56408
- customization_profile_id: {
56409
- format: 'uuid',
56410
- type: 'string',
56411
- },
56412
- logo_url: { format: 'uri', type: 'string' },
56413
- name: { nullable: true, type: 'string' },
56414
- primary_color: { type: 'string' },
56415
- secondary_color: { type: 'string' },
56416
- workspace_id: { format: 'uuid', type: 'string' },
56417
- },
56418
- required: [
56419
- 'workspace_id',
56420
- 'name',
56421
- 'customization_profile_id',
56422
- 'created_at',
56423
- ],
56424
- type: 'object',
56425
- 'x-route-path': '/workspaces/customization_profiles',
56426
- 'x-title': 'Customization Profile',
56427
- 'x-undocumented': 'Unreleased.',
56417
+ $ref: '#/components/schemas/customization_profile',
56428
56418
  },
56429
56419
  ok: { type: 'boolean' },
56430
56420
  },
@@ -56476,29 +56466,7 @@ export default {
56476
56466
  schema: {
56477
56467
  properties: {
56478
56468
  customization_profile: {
56479
- description: 'A customization profile.',
56480
- properties: {
56481
- created_at: { format: 'date-time', type: 'string' },
56482
- customization_profile_id: {
56483
- format: 'uuid',
56484
- type: 'string',
56485
- },
56486
- logo_url: { format: 'uri', type: 'string' },
56487
- name: { nullable: true, type: 'string' },
56488
- primary_color: { type: 'string' },
56489
- secondary_color: { type: 'string' },
56490
- workspace_id: { format: 'uuid', type: 'string' },
56491
- },
56492
- required: [
56493
- 'workspace_id',
56494
- 'name',
56495
- 'customization_profile_id',
56496
- 'created_at',
56497
- ],
56498
- type: 'object',
56499
- 'x-route-path': '/workspaces/customization_profiles',
56500
- 'x-title': 'Customization Profile',
56501
- 'x-undocumented': 'Unreleased.',
56469
+ $ref: '#/components/schemas/customization_profile',
56502
56470
  },
56503
56471
  ok: { type: 'boolean' },
56504
56472
  },
@@ -56540,29 +56508,7 @@ export default {
56540
56508
  properties: {
56541
56509
  customization_profiles: {
56542
56510
  items: {
56543
- description: 'A customization profile.',
56544
- properties: {
56545
- created_at: { format: 'date-time', type: 'string' },
56546
- customization_profile_id: {
56547
- format: 'uuid',
56548
- type: 'string',
56549
- },
56550
- logo_url: { format: 'uri', type: 'string' },
56551
- name: { nullable: true, type: 'string' },
56552
- primary_color: { type: 'string' },
56553
- secondary_color: { type: 'string' },
56554
- workspace_id: { format: 'uuid', type: 'string' },
56555
- },
56556
- required: [
56557
- 'workspace_id',
56558
- 'name',
56559
- 'customization_profile_id',
56560
- 'created_at',
56561
- ],
56562
- type: 'object',
56563
- 'x-route-path': '/workspaces/customization_profiles',
56564
- 'x-title': 'Customization Profile',
56565
- 'x-undocumented': 'Unreleased.',
56511
+ $ref: '#/components/schemas/customization_profile',
56566
56512
  },
56567
56513
  type: 'array',
56568
56514
  },
@@ -56604,29 +56550,7 @@ export default {
56604
56550
  properties: {
56605
56551
  customization_profiles: {
56606
56552
  items: {
56607
- description: 'A customization profile.',
56608
- properties: {
56609
- created_at: { format: 'date-time', type: 'string' },
56610
- customization_profile_id: {
56611
- format: 'uuid',
56612
- type: 'string',
56613
- },
56614
- logo_url: { format: 'uri', type: 'string' },
56615
- name: { nullable: true, type: 'string' },
56616
- primary_color: { type: 'string' },
56617
- secondary_color: { type: 'string' },
56618
- workspace_id: { format: 'uuid', type: 'string' },
56619
- },
56620
- required: [
56621
- 'workspace_id',
56622
- 'name',
56623
- 'customization_profile_id',
56624
- 'created_at',
56625
- ],
56626
- type: 'object',
56627
- 'x-route-path': '/workspaces/customization_profiles',
56628
- 'x-title': 'Customization Profile',
56629
- 'x-undocumented': 'Unreleased.',
56553
+ $ref: '#/components/schemas/customization_profile',
56630
56554
  },
56631
56555
  type: 'array',
56632
56556
  },
@@ -56894,6 +56818,12 @@ export default {
56894
56818
  items: { $ref: '#/components/schemas/instant_key' },
56895
56819
  type: 'array',
56896
56820
  },
56821
+ noise_thresholds: {
56822
+ items: {
56823
+ $ref: '#/components/schemas/noise_threshold',
56824
+ },
56825
+ type: 'array',
56826
+ },
56897
56827
  spaces: {
56898
56828
  items: { $ref: '#/components/schemas/space' },
56899
56829
  type: 'array',
@@ -57081,6 +57011,12 @@ export default {
57081
57011
  items: { $ref: '#/components/schemas/instant_key' },
57082
57012
  type: 'array',
57083
57013
  },
57014
+ noise_thresholds: {
57015
+ items: {
57016
+ $ref: '#/components/schemas/noise_threshold',
57017
+ },
57018
+ type: 'array',
57019
+ },
57084
57020
  spaces: {
57085
57021
  items: { $ref: '#/components/schemas/space' },
57086
57022
  type: 'array',
@@ -23364,6 +23364,24 @@ export type Routes = {
23364
23364
  }[]
23365
23365
  }[]
23366
23366
  | undefined
23367
+ noise_thresholds?:
23368
+ | {
23369
+ /** Unique identifier for the noise threshold. */
23370
+ noise_threshold_id: string
23371
+ /** Unique identifier for the device that contains the noise threshold. */
23372
+ device_id: string
23373
+ /** Name of the noise threshold. */
23374
+ name: string
23375
+ /** Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://docs.seam.co/latest/device-and-system-integration-guides/noiseaware-sensors). */
23376
+ noise_threshold_nrs?: number | undefined
23377
+ /** Time at which the noise threshold should become active daily. */
23378
+ starts_daily_at: string
23379
+ /** Time at which the noise threshold should become inactive daily. */
23380
+ ends_daily_at: string
23381
+ /** Noise level in decibels for the noise threshold. */
23382
+ noise_threshold_decibels: number
23383
+ }[]
23384
+ | undefined
23367
23385
  }
23368
23386
  }
23369
23387
  }
@@ -102167,6 +102185,24 @@ export type Routes = {
102167
102185
  }[]
102168
102186
  }[]
102169
102187
  | undefined
102188
+ noise_thresholds?:
102189
+ | {
102190
+ /** Unique identifier for the noise threshold. */
102191
+ noise_threshold_id: string
102192
+ /** Unique identifier for the device that contains the noise threshold. */
102193
+ device_id: string
102194
+ /** Name of the noise threshold. */
102195
+ name: string
102196
+ /** Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://docs.seam.co/latest/device-and-system-integration-guides/noiseaware-sensors). */
102197
+ noise_threshold_nrs?: number | undefined
102198
+ /** Time at which the noise threshold should become active daily. */
102199
+ starts_daily_at: string
102200
+ /** Time at which the noise threshold should become inactive daily. */
102201
+ ends_daily_at: string
102202
+ /** Noise level in decibels for the noise threshold. */
102203
+ noise_threshold_decibels: number
102204
+ }[]
102205
+ | undefined
102170
102206
  }
102171
102207
  }
102172
102208
  }