@seamapi/types 1.274.0 → 1.275.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
@@ -212,7 +212,13 @@ var thermostat_capability_properties = zod.z.object({
212
212
  max_heating_set_point_celsius: zod.z.number(),
213
213
  max_heating_set_point_fahrenheit: zod.z.number(),
214
214
  min_heating_cooling_delta_celsius: zod.z.number(),
215
- min_heating_cooling_delta_fahrenheit: zod.z.number()
215
+ min_heating_cooling_delta_fahrenheit: zod.z.number(),
216
+ temperature_threshold: zod.z.object({
217
+ lower_limit_celsius: zod.z.number().nullable(),
218
+ lower_limit_fahrenheit: zod.z.number().nullable(),
219
+ upper_limit_celsius: zod.z.number().nullable(),
220
+ upper_limit_fahrenheit: zod.z.number().nullable()
221
+ }).optional()
216
222
  }).partial();
217
223
 
218
224
  // src/lib/seam/connect/models/devices/capability-properties/index.ts
@@ -2456,6 +2462,28 @@ var thermostat_manually_adjusted_event = device_event.extend({
2456
2462
  heating_set_point_fahrenheit: true
2457
2463
  })
2458
2464
  ).describe("A thermostat was manually adjusted.");
2465
+ var temperature_threshold_exceeded_event = device_event.extend({
2466
+ event_type: zod.z.literal("thermostat.temperature_threshold_exceeded"),
2467
+ temperature_celsius: zod.z.number(),
2468
+ temperature_fahrenheit: zod.z.number(),
2469
+ upper_limit_celsius: zod.z.number().nullable(),
2470
+ upper_limit_fahrenheit: zod.z.number().nullable(),
2471
+ lower_limit_celsius: zod.z.number().nullable(),
2472
+ lower_limit_fahrenheit: zod.z.number().nullable()
2473
+ }).describe("A thermostat's temperature reading exceeded the set threshold.");
2474
+ var temperature_threshold_no_longer_exceeded_event = device_event.extend({
2475
+ event_type: zod.z.literal(
2476
+ "thermostat.temperature_threshold_no_longer_exceeded"
2477
+ ),
2478
+ temperature_celsius: zod.z.number(),
2479
+ temperature_fahrenheit: zod.z.number(),
2480
+ upper_limit_celsius: zod.z.number().nullable(),
2481
+ upper_limit_fahrenheit: zod.z.number().nullable(),
2482
+ lower_limit_celsius: zod.z.number().nullable(),
2483
+ lower_limit_fahrenheit: zod.z.number().nullable()
2484
+ }).describe(
2485
+ "A thermostat's temperature reading is no longer exceeding the set threshold."
2486
+ );
2459
2487
  var device_events = [
2460
2488
  device_connected_event,
2461
2489
  device_added_event,
@@ -2484,7 +2512,9 @@ var device_events = [
2484
2512
  lock_unlocked_event,
2485
2513
  lock_access_denied_event,
2486
2514
  thermostat_climate_preset_activated_event,
2487
- thermostat_manually_adjusted_event
2515
+ thermostat_manually_adjusted_event,
2516
+ temperature_threshold_exceeded_event,
2517
+ temperature_threshold_no_longer_exceeded_event
2488
2518
  ];
2489
2519
  var enrollment_automation_event = common_event.extend({
2490
2520
  enrollment_automation_id: zod.z.string().uuid().describe(`
@@ -6850,6 +6880,37 @@ var openapi_default = {
6850
6880
  temperature_fahrenheit: {
6851
6881
  format: "float",
6852
6882
  type: "number"
6883
+ },
6884
+ temperature_threshold: {
6885
+ properties: {
6886
+ lower_limit_celsius: {
6887
+ format: "float",
6888
+ nullable: true,
6889
+ type: "number"
6890
+ },
6891
+ lower_limit_fahrenheit: {
6892
+ format: "float",
6893
+ nullable: true,
6894
+ type: "number"
6895
+ },
6896
+ upper_limit_celsius: {
6897
+ format: "float",
6898
+ nullable: true,
6899
+ type: "number"
6900
+ },
6901
+ upper_limit_fahrenheit: {
6902
+ format: "float",
6903
+ nullable: true,
6904
+ type: "number"
6905
+ }
6906
+ },
6907
+ required: [
6908
+ "lower_limit_celsius",
6909
+ "lower_limit_fahrenheit",
6910
+ "upper_limit_celsius",
6911
+ "upper_limit_fahrenheit"
6912
+ ],
6913
+ type: "object"
6853
6914
  }
6854
6915
  },
6855
6916
  type: "object"
@@ -15177,7 +15238,9 @@ var openapi_default = {
15177
15238
  "action_attempt.unlock_door.succeeded",
15178
15239
  "action_attempt.unlock_door.failed",
15179
15240
  "thermostat.climate_preset_activated",
15180
- "thermostat.manually_adjusted"
15241
+ "thermostat.manually_adjusted",
15242
+ "thermostat.temperature_threshold_exceeded",
15243
+ "thermostat.temperature_threshold_no_longer_exceeded"
15181
15244
  ],
15182
15245
  type: "string"
15183
15246
  },
@@ -15249,7 +15312,9 @@ var openapi_default = {
15249
15312
  "action_attempt.unlock_door.succeeded",
15250
15313
  "action_attempt.unlock_door.failed",
15251
15314
  "thermostat.climate_preset_activated",
15252
- "thermostat.manually_adjusted"
15315
+ "thermostat.manually_adjusted",
15316
+ "thermostat.temperature_threshold_exceeded",
15317
+ "thermostat.temperature_threshold_no_longer_exceeded"
15253
15318
  ],
15254
15319
  type: "string"
15255
15320
  },
@@ -17803,6 +17868,139 @@ var openapi_default = {
17803
17868
  "x-response-key": "action_attempt"
17804
17869
  }
17805
17870
  },
17871
+ "/thermostats/set_temperature_threshold": {
17872
+ patch: {
17873
+ operationId: "thermostatsSetTemperatureThresholdPatch",
17874
+ requestBody: {
17875
+ content: {
17876
+ "application/json": {
17877
+ schema: {
17878
+ properties: {
17879
+ device_id: { format: "uuid", type: "string" },
17880
+ lower_limit_celsius: {
17881
+ default: null,
17882
+ format: "float",
17883
+ nullable: true,
17884
+ type: "number"
17885
+ },
17886
+ lower_limit_fahrenheit: {
17887
+ default: null,
17888
+ format: "float",
17889
+ nullable: true,
17890
+ type: "number"
17891
+ },
17892
+ upper_limit_celsius: {
17893
+ default: null,
17894
+ format: "float",
17895
+ nullable: true,
17896
+ type: "number"
17897
+ },
17898
+ upper_limit_fahrenheit: {
17899
+ default: null,
17900
+ format: "float",
17901
+ nullable: true,
17902
+ type: "number"
17903
+ }
17904
+ },
17905
+ required: ["device_id"],
17906
+ type: "object"
17907
+ }
17908
+ }
17909
+ }
17910
+ },
17911
+ responses: {
17912
+ 200: {
17913
+ content: {
17914
+ "application/json": {
17915
+ schema: {
17916
+ properties: { ok: { type: "boolean" } },
17917
+ required: ["ok"],
17918
+ type: "object"
17919
+ }
17920
+ }
17921
+ },
17922
+ description: "OK"
17923
+ },
17924
+ 400: { description: "Bad Request" },
17925
+ 401: { description: "Unauthorized" }
17926
+ },
17927
+ security: [
17928
+ { api_key: [] },
17929
+ { pat_with_workspace: [] },
17930
+ { console_session: [] }
17931
+ ],
17932
+ summary: "/thermostats/set_temperature_threshold",
17933
+ tags: ["/thermostats"],
17934
+ "x-fern-ignore": true,
17935
+ "x-response-key": null
17936
+ },
17937
+ post: {
17938
+ operationId: "thermostatsSetTemperatureThresholdPost",
17939
+ requestBody: {
17940
+ content: {
17941
+ "application/json": {
17942
+ schema: {
17943
+ properties: {
17944
+ device_id: { format: "uuid", type: "string" },
17945
+ lower_limit_celsius: {
17946
+ default: null,
17947
+ format: "float",
17948
+ nullable: true,
17949
+ type: "number"
17950
+ },
17951
+ lower_limit_fahrenheit: {
17952
+ default: null,
17953
+ format: "float",
17954
+ nullable: true,
17955
+ type: "number"
17956
+ },
17957
+ upper_limit_celsius: {
17958
+ default: null,
17959
+ format: "float",
17960
+ nullable: true,
17961
+ type: "number"
17962
+ },
17963
+ upper_limit_fahrenheit: {
17964
+ default: null,
17965
+ format: "float",
17966
+ nullable: true,
17967
+ type: "number"
17968
+ }
17969
+ },
17970
+ required: ["device_id"],
17971
+ type: "object"
17972
+ }
17973
+ }
17974
+ }
17975
+ },
17976
+ responses: {
17977
+ 200: {
17978
+ content: {
17979
+ "application/json": {
17980
+ schema: {
17981
+ properties: { ok: { type: "boolean" } },
17982
+ required: ["ok"],
17983
+ type: "object"
17984
+ }
17985
+ }
17986
+ },
17987
+ description: "OK"
17988
+ },
17989
+ 400: { description: "Bad Request" },
17990
+ 401: { description: "Unauthorized" }
17991
+ },
17992
+ security: [
17993
+ { api_key: [] },
17994
+ { pat_with_workspace: [] },
17995
+ { console_session: [] }
17996
+ ],
17997
+ summary: "/thermostats/set_temperature_threshold",
17998
+ tags: ["/thermostats"],
17999
+ "x-fern-sdk-group-name": ["thermostats"],
18000
+ "x-fern-sdk-method-name": "set_temperature_threshold",
18001
+ "x-response-key": null
18002
+ }
18003
+ },
17806
18004
  "/thermostats/update_climate_preset": {
17807
18005
  patch: {
17808
18006
  operationId: "thermostatsUpdateClimatePresetPatch",