@seamapi/types 1.497.0 → 1.499.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.
package/dist/connect.cjs CHANGED
@@ -5139,6 +5139,28 @@ var instant_key = zod.z.object({
5139
5139
 
5140
5140
  There\u2019s no app to install, nor account to create. Your user just taps a link and gets a lightweight, native-feeling experience using iOS App Clip or Instant Apps on Android. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work.
5141
5141
  `);
5142
+ var noise_threshold = zod.z.object({
5143
+ noise_threshold_id: zod.z.string().uuid().describe("Unique identifier for the noise threshold."),
5144
+ device_id: zod.z.string().uuid().describe(
5145
+ "Unique identifier for the device that contains the noise threshold."
5146
+ ),
5147
+ name: zod.z.string().describe("Name of the noise threshold."),
5148
+ noise_threshold_nrs: zod.z.number().optional().describe(
5149
+ "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)."
5150
+ ),
5151
+ starts_daily_at: zod.z.string().describe("Time at which the noise threshold should become active daily."),
5152
+ // TODO: zoned_time
5153
+ ends_daily_at: zod.z.string().describe(
5154
+ "Time at which the noise threshold should become inactive daily."
5155
+ ),
5156
+ // TODO: zoned_time
5157
+ noise_threshold_decibels: zod.z.number().describe("Noise level in decibels for the noise threshold.")
5158
+ }).describe(`
5159
+ ---
5160
+ route_path: /noise_sensors/noise_thresholds
5161
+ ---
5162
+ Represents a [noise threshold](https://docs.seam.co/latest/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/latest/capability-guides/noise-sensors). Thresholds represent the limits of noise tolerated at a property, which can be customized for each hour of the day. Each device has its own default thresholds, but you can use the Seam API to modify them.
5163
+ `);
5142
5164
  var space = zod.z.object({
5143
5165
  space_id: zod.z.string().uuid().describe("ID of the space."),
5144
5166
  workspace_id: zod.z.string().uuid().describe(
@@ -5341,7 +5363,8 @@ zod.z.object({
5341
5363
  access_codes: access_code.array().optional(),
5342
5364
  unmanaged_access_codes: unmanaged_access_code.array().optional(),
5343
5365
  thermostat_daily_programs: thermostat_daily_program.array().optional(),
5344
- thermostat_schedules: thermostat_schedule.array().optional()
5366
+ thermostat_schedules: thermostat_schedule.array().optional(),
5367
+ noise_thresholds: noise_threshold.array().optional()
5345
5368
  }).describe("A batch of workspace resources.");
5346
5369
  var batch = zod.z.object({
5347
5370
  batch_type: zod.z.enum([
@@ -5374,7 +5397,8 @@ var batch = zod.z.object({
5374
5397
  access_codes: access_code.array().optional(),
5375
5398
  unmanaged_access_codes: unmanaged_access_code.array().optional(),
5376
5399
  thermostat_daily_programs: thermostat_daily_program.array().optional(),
5377
- thermostat_schedules: thermostat_schedule.array().optional()
5400
+ thermostat_schedules: thermostat_schedule.array().optional(),
5401
+ noise_thresholds: noise_threshold.array().optional()
5378
5402
  }).describe("A batch of workspace resources.");
5379
5403
  var bridge = zod.z.object({
5380
5404
  bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
@@ -5469,28 +5493,6 @@ var customization_profile = zod.z.object({
5469
5493
  ---
5470
5494
  A customization profile.
5471
5495
  `);
5472
- var noise_threshold = zod.z.object({
5473
- noise_threshold_id: zod.z.string().uuid().describe("Unique identifier for the noise threshold."),
5474
- device_id: zod.z.string().uuid().describe(
5475
- "Unique identifier for the device that contains the noise threshold."
5476
- ),
5477
- name: zod.z.string().describe("Name of the noise threshold."),
5478
- noise_threshold_nrs: zod.z.number().optional().describe(
5479
- "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)."
5480
- ),
5481
- starts_daily_at: zod.z.string().describe("Time at which the noise threshold should become active daily."),
5482
- // TODO: zoned_time
5483
- ends_daily_at: zod.z.string().describe(
5484
- "Time at which the noise threshold should become inactive daily."
5485
- ),
5486
- // TODO: zoned_time
5487
- noise_threshold_decibels: zod.z.number().describe("Noise level in decibels for the noise threshold.")
5488
- }).describe(`
5489
- ---
5490
- route_path: /noise_sensors/noise_thresholds
5491
- ---
5492
- Represents a [noise threshold](https://docs.seam.co/latest/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/latest/capability-guides/noise-sensors). Thresholds represent the limits of noise tolerated at a property, which can be customized for each hour of the day. Each device has its own default thresholds, but you can use the Seam API to modify them.
5493
- `);
5494
5496
  var pagination = zod.z.object({
5495
5497
  next_page_cursor: zod.z.string().base64().nullable().describe(
5496
5498
  "Opaque value that can be used to select the next page of results via the `page_cursor` parameter."
@@ -31940,6 +31942,12 @@ var openapi_default = {
31940
31942
  items: { $ref: "#/components/schemas/instant_key" },
31941
31943
  type: "array"
31942
31944
  },
31945
+ noise_thresholds: {
31946
+ items: {
31947
+ $ref: "#/components/schemas/noise_threshold"
31948
+ },
31949
+ type: "array"
31950
+ },
31943
31951
  spaces: {
31944
31952
  items: { $ref: "#/components/schemas/space" },
31945
31953
  type: "array"
@@ -32147,6 +32155,12 @@ var openapi_default = {
32147
32155
  items: { $ref: "#/components/schemas/instant_key" },
32148
32156
  type: "array"
32149
32157
  },
32158
+ noise_thresholds: {
32159
+ items: {
32160
+ $ref: "#/components/schemas/noise_threshold"
32161
+ },
32162
+ type: "array"
32163
+ },
32150
32164
  spaces: {
32151
32165
  items: { $ref: "#/components/schemas/space" },
32152
32166
  type: "array"
@@ -35799,6 +35813,26 @@ var openapi_default = {
35799
35813
  minLength: 1,
35800
35814
  type: "string"
35801
35815
  }
35816
+ },
35817
+ {
35818
+ in: "query",
35819
+ name: "limit",
35820
+ schema: {
35821
+ default: 900,
35822
+ description: "Maximum number of records to return per page.",
35823
+ exclusiveMinimum: true,
35824
+ minimum: 0,
35825
+ type: "integer"
35826
+ }
35827
+ },
35828
+ {
35829
+ in: "query",
35830
+ name: "page_cursor",
35831
+ schema: {
35832
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
35833
+ nullable: true,
35834
+ type: "string"
35835
+ }
35802
35836
  }
35803
35837
  ],
35804
35838
  responses: {
@@ -35811,9 +35845,10 @@ var openapi_default = {
35811
35845
  items: { $ref: "#/components/schemas/acs_entrance" },
35812
35846
  type: "array"
35813
35847
  },
35814
- ok: { type: "boolean" }
35848
+ ok: { type: "boolean" },
35849
+ pagination: { $ref: "#/components/schemas/pagination" }
35815
35850
  },
35816
- required: ["acs_entrances", "ok"],
35851
+ required: ["acs_entrances", "pagination", "ok"],
35817
35852
  type: "object"
35818
35853
  }
35819
35854
  }
@@ -35876,6 +35911,13 @@ var openapi_default = {
35876
35911
  format: "uuid",
35877
35912
  type: "string"
35878
35913
  },
35914
+ limit: {
35915
+ default: 900,
35916
+ description: "Maximum number of records to return per page.",
35917
+ exclusiveMinimum: true,
35918
+ minimum: 0,
35919
+ type: "integer"
35920
+ },
35879
35921
  location_id: {
35880
35922
  deprecated: true,
35881
35923
  format: "uuid",
@@ -35883,6 +35925,11 @@ var openapi_default = {
35883
35925
  type: "string",
35884
35926
  "x-deprecated": "Use `space_id`."
35885
35927
  },
35928
+ page_cursor: {
35929
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
35930
+ nullable: true,
35931
+ type: "string"
35932
+ },
35886
35933
  search: {
35887
35934
  description: "String for which to search. Filters returned entrances to include all records that satisfy a partial match using `display_name`.",
35888
35935
  minLength: 1,
@@ -35909,9 +35956,10 @@ var openapi_default = {
35909
35956
  items: { $ref: "#/components/schemas/acs_entrance" },
35910
35957
  type: "array"
35911
35958
  },
35912
- ok: { type: "boolean" }
35959
+ ok: { type: "boolean" },
35960
+ pagination: { $ref: "#/components/schemas/pagination" }
35913
35961
  },
35914
- required: ["acs_entrances", "ok"],
35962
+ required: ["acs_entrances", "pagination", "ok"],
35915
35963
  type: "object"
35916
35964
  }
35917
35965
  }
@@ -58125,6 +58173,12 @@ var openapi_default = {
58125
58173
  items: { $ref: "#/components/schemas/instant_key" },
58126
58174
  type: "array"
58127
58175
  },
58176
+ noise_thresholds: {
58177
+ items: {
58178
+ $ref: "#/components/schemas/noise_threshold"
58179
+ },
58180
+ type: "array"
58181
+ },
58128
58182
  spaces: {
58129
58183
  items: { $ref: "#/components/schemas/space" },
58130
58184
  type: "array"
@@ -58312,6 +58366,12 @@ var openapi_default = {
58312
58366
  items: { $ref: "#/components/schemas/instant_key" },
58313
58367
  type: "array"
58314
58368
  },
58369
+ noise_thresholds: {
58370
+ items: {
58371
+ $ref: "#/components/schemas/noise_threshold"
58372
+ },
58373
+ type: "array"
58374
+ },
58315
58375
  spaces: {
58316
58376
  items: { $ref: "#/components/schemas/space" },
58317
58377
  type: "array"