@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.
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."
@@ -13668,6 +13670,28 @@ var openapi_default = {
13668
13670
  type: "object",
13669
13671
  "x-route-path": "/connected_accounts"
13670
13672
  },
13673
+ customization_profile: {
13674
+ description: "A customization profile.",
13675
+ properties: {
13676
+ created_at: { format: "date-time", type: "string" },
13677
+ customization_profile_id: { format: "uuid", type: "string" },
13678
+ logo_url: { format: "uri", type: "string" },
13679
+ name: { nullable: true, type: "string" },
13680
+ primary_color: { type: "string" },
13681
+ secondary_color: { type: "string" },
13682
+ workspace_id: { format: "uuid", type: "string" }
13683
+ },
13684
+ required: [
13685
+ "workspace_id",
13686
+ "name",
13687
+ "customization_profile_id",
13688
+ "created_at"
13689
+ ],
13690
+ type: "object",
13691
+ "x-route-path": "/workspaces/customization_profiles",
13692
+ "x-title": "Customization Profile",
13693
+ "x-undocumented": "Unreleased."
13694
+ },
13671
13695
  device: {
13672
13696
  description: "Represents a [device](https://docs.seam.co/latest/core-concepts/devices) that has been connected to Seam.",
13673
13697
  properties: {
@@ -31940,6 +31964,12 @@ var openapi_default = {
31940
31964
  items: { $ref: "#/components/schemas/instant_key" },
31941
31965
  type: "array"
31942
31966
  },
31967
+ noise_thresholds: {
31968
+ items: {
31969
+ $ref: "#/components/schemas/noise_threshold"
31970
+ },
31971
+ type: "array"
31972
+ },
31943
31973
  spaces: {
31944
31974
  items: { $ref: "#/components/schemas/space" },
31945
31975
  type: "array"
@@ -32147,6 +32177,12 @@ var openapi_default = {
32147
32177
  items: { $ref: "#/components/schemas/instant_key" },
32148
32178
  type: "array"
32149
32179
  },
32180
+ noise_thresholds: {
32181
+ items: {
32182
+ $ref: "#/components/schemas/noise_threshold"
32183
+ },
32184
+ type: "array"
32185
+ },
32150
32186
  spaces: {
32151
32187
  items: { $ref: "#/components/schemas/space" },
32152
32188
  type: "array"
@@ -57597,29 +57633,7 @@ var openapi_default = {
57597
57633
  schema: {
57598
57634
  properties: {
57599
57635
  customization_profile: {
57600
- description: "A customization profile.",
57601
- properties: {
57602
- created_at: { format: "date-time", type: "string" },
57603
- customization_profile_id: {
57604
- format: "uuid",
57605
- type: "string"
57606
- },
57607
- logo_url: { format: "uri", type: "string" },
57608
- name: { nullable: true, type: "string" },
57609
- primary_color: { type: "string" },
57610
- secondary_color: { type: "string" },
57611
- workspace_id: { format: "uuid", type: "string" }
57612
- },
57613
- required: [
57614
- "workspace_id",
57615
- "name",
57616
- "customization_profile_id",
57617
- "created_at"
57618
- ],
57619
- type: "object",
57620
- "x-route-path": "/workspaces/customization_profiles",
57621
- "x-title": "Customization Profile",
57622
- "x-undocumented": "Unreleased."
57636
+ $ref: "#/components/schemas/customization_profile"
57623
57637
  },
57624
57638
  ok: { type: "boolean" }
57625
57639
  },
@@ -57668,29 +57682,7 @@ var openapi_default = {
57668
57682
  schema: {
57669
57683
  properties: {
57670
57684
  customization_profile: {
57671
- description: "A customization profile.",
57672
- properties: {
57673
- created_at: { format: "date-time", type: "string" },
57674
- customization_profile_id: {
57675
- format: "uuid",
57676
- type: "string"
57677
- },
57678
- logo_url: { format: "uri", type: "string" },
57679
- name: { nullable: true, type: "string" },
57680
- primary_color: { type: "string" },
57681
- secondary_color: { type: "string" },
57682
- workspace_id: { format: "uuid", type: "string" }
57683
- },
57684
- required: [
57685
- "workspace_id",
57686
- "name",
57687
- "customization_profile_id",
57688
- "created_at"
57689
- ],
57690
- type: "object",
57691
- "x-route-path": "/workspaces/customization_profiles",
57692
- "x-title": "Customization Profile",
57693
- "x-undocumented": "Unreleased."
57685
+ $ref: "#/components/schemas/customization_profile"
57694
57686
  },
57695
57687
  ok: { type: "boolean" }
57696
57688
  },
@@ -57742,29 +57734,7 @@ var openapi_default = {
57742
57734
  schema: {
57743
57735
  properties: {
57744
57736
  customization_profile: {
57745
- description: "A customization profile.",
57746
- properties: {
57747
- created_at: { format: "date-time", type: "string" },
57748
- customization_profile_id: {
57749
- format: "uuid",
57750
- type: "string"
57751
- },
57752
- logo_url: { format: "uri", type: "string" },
57753
- name: { nullable: true, type: "string" },
57754
- primary_color: { type: "string" },
57755
- secondary_color: { type: "string" },
57756
- workspace_id: { format: "uuid", type: "string" }
57757
- },
57758
- required: [
57759
- "workspace_id",
57760
- "name",
57761
- "customization_profile_id",
57762
- "created_at"
57763
- ],
57764
- type: "object",
57765
- "x-route-path": "/workspaces/customization_profiles",
57766
- "x-title": "Customization Profile",
57767
- "x-undocumented": "Unreleased."
57737
+ $ref: "#/components/schemas/customization_profile"
57768
57738
  },
57769
57739
  ok: { type: "boolean" }
57770
57740
  },
@@ -57806,29 +57776,7 @@ var openapi_default = {
57806
57776
  properties: {
57807
57777
  customization_profiles: {
57808
57778
  items: {
57809
- description: "A customization profile.",
57810
- properties: {
57811
- created_at: { format: "date-time", type: "string" },
57812
- customization_profile_id: {
57813
- format: "uuid",
57814
- type: "string"
57815
- },
57816
- logo_url: { format: "uri", type: "string" },
57817
- name: { nullable: true, type: "string" },
57818
- primary_color: { type: "string" },
57819
- secondary_color: { type: "string" },
57820
- workspace_id: { format: "uuid", type: "string" }
57821
- },
57822
- required: [
57823
- "workspace_id",
57824
- "name",
57825
- "customization_profile_id",
57826
- "created_at"
57827
- ],
57828
- type: "object",
57829
- "x-route-path": "/workspaces/customization_profiles",
57830
- "x-title": "Customization Profile",
57831
- "x-undocumented": "Unreleased."
57779
+ $ref: "#/components/schemas/customization_profile"
57832
57780
  },
57833
57781
  type: "array"
57834
57782
  },
@@ -57870,29 +57818,7 @@ var openapi_default = {
57870
57818
  properties: {
57871
57819
  customization_profiles: {
57872
57820
  items: {
57873
- description: "A customization profile.",
57874
- properties: {
57875
- created_at: { format: "date-time", type: "string" },
57876
- customization_profile_id: {
57877
- format: "uuid",
57878
- type: "string"
57879
- },
57880
- logo_url: { format: "uri", type: "string" },
57881
- name: { nullable: true, type: "string" },
57882
- primary_color: { type: "string" },
57883
- secondary_color: { type: "string" },
57884
- workspace_id: { format: "uuid", type: "string" }
57885
- },
57886
- required: [
57887
- "workspace_id",
57888
- "name",
57889
- "customization_profile_id",
57890
- "created_at"
57891
- ],
57892
- type: "object",
57893
- "x-route-path": "/workspaces/customization_profiles",
57894
- "x-title": "Customization Profile",
57895
- "x-undocumented": "Unreleased."
57821
+ $ref: "#/components/schemas/customization_profile"
57896
57822
  },
57897
57823
  type: "array"
57898
57824
  },
@@ -58159,6 +58085,12 @@ var openapi_default = {
58159
58085
  items: { $ref: "#/components/schemas/instant_key" },
58160
58086
  type: "array"
58161
58087
  },
58088
+ noise_thresholds: {
58089
+ items: {
58090
+ $ref: "#/components/schemas/noise_threshold"
58091
+ },
58092
+ type: "array"
58093
+ },
58162
58094
  spaces: {
58163
58095
  items: { $ref: "#/components/schemas/space" },
58164
58096
  type: "array"
@@ -58346,6 +58278,12 @@ var openapi_default = {
58346
58278
  items: { $ref: "#/components/schemas/instant_key" },
58347
58279
  type: "array"
58348
58280
  },
58281
+ noise_thresholds: {
58282
+ items: {
58283
+ $ref: "#/components/schemas/noise_threshold"
58284
+ },
58285
+ type: "array"
58286
+ },
58349
58287
  spaces: {
58350
58288
  items: { $ref: "#/components/schemas/space" },
58351
58289
  type: "array"