@seamapi/types 1.274.0 → 1.276.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,14 +15312,17 @@ 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
  },
15256
15321
  type: "array"
15257
15322
  },
15258
15323
  limit: { default: 500, format: "float", type: "number" },
15259
- since: { type: "string" }
15324
+ since: { type: "string" },
15325
+ unstable_offset: { format: "float", type: "number" }
15260
15326
  },
15261
15327
  type: "object"
15262
15328
  }
@@ -17803,6 +17869,139 @@ var openapi_default = {
17803
17869
  "x-response-key": "action_attempt"
17804
17870
  }
17805
17871
  },
17872
+ "/thermostats/set_temperature_threshold": {
17873
+ patch: {
17874
+ operationId: "thermostatsSetTemperatureThresholdPatch",
17875
+ requestBody: {
17876
+ content: {
17877
+ "application/json": {
17878
+ schema: {
17879
+ properties: {
17880
+ device_id: { format: "uuid", type: "string" },
17881
+ lower_limit_celsius: {
17882
+ default: null,
17883
+ format: "float",
17884
+ nullable: true,
17885
+ type: "number"
17886
+ },
17887
+ lower_limit_fahrenheit: {
17888
+ default: null,
17889
+ format: "float",
17890
+ nullable: true,
17891
+ type: "number"
17892
+ },
17893
+ upper_limit_celsius: {
17894
+ default: null,
17895
+ format: "float",
17896
+ nullable: true,
17897
+ type: "number"
17898
+ },
17899
+ upper_limit_fahrenheit: {
17900
+ default: null,
17901
+ format: "float",
17902
+ nullable: true,
17903
+ type: "number"
17904
+ }
17905
+ },
17906
+ required: ["device_id"],
17907
+ type: "object"
17908
+ }
17909
+ }
17910
+ }
17911
+ },
17912
+ responses: {
17913
+ 200: {
17914
+ content: {
17915
+ "application/json": {
17916
+ schema: {
17917
+ properties: { ok: { type: "boolean" } },
17918
+ required: ["ok"],
17919
+ type: "object"
17920
+ }
17921
+ }
17922
+ },
17923
+ description: "OK"
17924
+ },
17925
+ 400: { description: "Bad Request" },
17926
+ 401: { description: "Unauthorized" }
17927
+ },
17928
+ security: [
17929
+ { api_key: [] },
17930
+ { pat_with_workspace: [] },
17931
+ { console_session: [] }
17932
+ ],
17933
+ summary: "/thermostats/set_temperature_threshold",
17934
+ tags: ["/thermostats"],
17935
+ "x-fern-ignore": true,
17936
+ "x-response-key": null
17937
+ },
17938
+ post: {
17939
+ operationId: "thermostatsSetTemperatureThresholdPost",
17940
+ requestBody: {
17941
+ content: {
17942
+ "application/json": {
17943
+ schema: {
17944
+ properties: {
17945
+ device_id: { format: "uuid", type: "string" },
17946
+ lower_limit_celsius: {
17947
+ default: null,
17948
+ format: "float",
17949
+ nullable: true,
17950
+ type: "number"
17951
+ },
17952
+ lower_limit_fahrenheit: {
17953
+ default: null,
17954
+ format: "float",
17955
+ nullable: true,
17956
+ type: "number"
17957
+ },
17958
+ upper_limit_celsius: {
17959
+ default: null,
17960
+ format: "float",
17961
+ nullable: true,
17962
+ type: "number"
17963
+ },
17964
+ upper_limit_fahrenheit: {
17965
+ default: null,
17966
+ format: "float",
17967
+ nullable: true,
17968
+ type: "number"
17969
+ }
17970
+ },
17971
+ required: ["device_id"],
17972
+ type: "object"
17973
+ }
17974
+ }
17975
+ }
17976
+ },
17977
+ responses: {
17978
+ 200: {
17979
+ content: {
17980
+ "application/json": {
17981
+ schema: {
17982
+ properties: { ok: { type: "boolean" } },
17983
+ required: ["ok"],
17984
+ type: "object"
17985
+ }
17986
+ }
17987
+ },
17988
+ description: "OK"
17989
+ },
17990
+ 400: { description: "Bad Request" },
17991
+ 401: { description: "Unauthorized" }
17992
+ },
17993
+ security: [
17994
+ { api_key: [] },
17995
+ { pat_with_workspace: [] },
17996
+ { console_session: [] }
17997
+ ],
17998
+ summary: "/thermostats/set_temperature_threshold",
17999
+ tags: ["/thermostats"],
18000
+ "x-fern-sdk-group-name": ["thermostats"],
18001
+ "x-fern-sdk-method-name": "set_temperature_threshold",
18002
+ "x-response-key": null
18003
+ }
18004
+ },
17806
18005
  "/thermostats/update_climate_preset": {
17807
18006
  patch: {
17808
18007
  operationId: "thermostatsUpdateClimatePresetPatch",