@seamapi/types 1.273.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.
Files changed (28) hide show
  1. package/dist/connect.cjs +232 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +783 -45
  4. package/lib/seam/connect/models/acs/acs-entrance.d.ts +19 -19
  5. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +28 -0
  6. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +28 -0
  7. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +8 -0
  8. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  9. package/lib/seam/connect/models/devices/device-metadata.d.ts +38 -0
  10. package/lib/seam/connect/models/devices/device-metadata.js +11 -0
  11. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  12. package/lib/seam/connect/models/devices/device.d.ts +94 -0
  13. package/lib/seam/connect/models/devices/phone.d.ts +66 -0
  14. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +66 -0
  15. package/lib/seam/connect/models/events/devices.d.ts +180 -0
  16. package/lib/seam/connect/models/events/devices.js +24 -0
  17. package/lib/seam/connect/models/events/devices.js.map +1 -1
  18. package/lib/seam/connect/models/events/seam-event.d.ts +88 -0
  19. package/lib/seam/connect/openapi.d.ts +223 -0
  20. package/lib/seam/connect/openapi.js +187 -0
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +269 -2
  23. package/package.json +1 -1
  24. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +8 -0
  25. package/src/lib/seam/connect/models/devices/device-metadata.ts +11 -1
  26. package/src/lib/seam/connect/models/events/devices.ts +38 -0
  27. package/src/lib/seam/connect/openapi.ts +188 -0
  28. package/src/lib/seam/connect/route-types.ts +369 -0
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
@@ -503,6 +509,17 @@ var device_metadata = zod.z.object({
503
509
  battery_level: zod.z.string(),
504
510
  locked_state: zod.z.string(),
505
511
  model: zod.z.string().optional()
512
+ }).describe(`
513
+ ---
514
+ deprecated: Use \`salto_ks_metadata \` instead.
515
+ `),
516
+ salto_ks_metadata: zod.z.object({
517
+ lock_id: zod.z.string(),
518
+ customer_reference: zod.z.string(),
519
+ lock_type: zod.z.string(),
520
+ battery_level: zod.z.string(),
521
+ locked_state: zod.z.string(),
522
+ model: zod.z.string().optional()
506
523
  }),
507
524
  genie_metadata: zod.z.object({
508
525
  device_name: zod.z.string(),
@@ -2445,6 +2462,28 @@ var thermostat_manually_adjusted_event = device_event.extend({
2445
2462
  heating_set_point_fahrenheit: true
2446
2463
  })
2447
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
+ );
2448
2487
  var device_events = [
2449
2488
  device_connected_event,
2450
2489
  device_added_event,
@@ -2473,7 +2512,9 @@ var device_events = [
2473
2512
  lock_unlocked_event,
2474
2513
  lock_access_denied_event,
2475
2514
  thermostat_climate_preset_activated_event,
2476
- thermostat_manually_adjusted_event
2515
+ thermostat_manually_adjusted_event,
2516
+ temperature_threshold_exceeded_event,
2517
+ temperature_threshold_no_longer_exceeded_event
2477
2518
  ];
2478
2519
  var enrollment_automation_event = common_event.extend({
2479
2520
  enrollment_automation_id: zod.z.string().uuid().describe(`
@@ -6337,7 +6378,26 @@ var openapi_default = {
6337
6378
  required: ["device_id", "device_name"],
6338
6379
  type: "object"
6339
6380
  },
6381
+ salto_ks_metadata: {
6382
+ properties: {
6383
+ battery_level: { type: "string" },
6384
+ customer_reference: { type: "string" },
6385
+ lock_id: { type: "string" },
6386
+ lock_type: { type: "string" },
6387
+ locked_state: { type: "string" },
6388
+ model: { type: "string" }
6389
+ },
6390
+ required: [
6391
+ "lock_id",
6392
+ "customer_reference",
6393
+ "lock_type",
6394
+ "battery_level",
6395
+ "locked_state"
6396
+ ],
6397
+ type: "object"
6398
+ },
6340
6399
  salto_metadata: {
6400
+ description: "\n ---\n deprecated: Use `salto_ks_metadata ` instead.\n ",
6341
6401
  properties: {
6342
6402
  battery_level: { type: "string" },
6343
6403
  customer_reference: { type: "string" },
@@ -6820,6 +6880,37 @@ var openapi_default = {
6820
6880
  temperature_fahrenheit: {
6821
6881
  format: "float",
6822
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"
6823
6914
  }
6824
6915
  },
6825
6916
  type: "object"
@@ -15147,7 +15238,9 @@ var openapi_default = {
15147
15238
  "action_attempt.unlock_door.succeeded",
15148
15239
  "action_attempt.unlock_door.failed",
15149
15240
  "thermostat.climate_preset_activated",
15150
- "thermostat.manually_adjusted"
15241
+ "thermostat.manually_adjusted",
15242
+ "thermostat.temperature_threshold_exceeded",
15243
+ "thermostat.temperature_threshold_no_longer_exceeded"
15151
15244
  ],
15152
15245
  type: "string"
15153
15246
  },
@@ -15219,7 +15312,9 @@ var openapi_default = {
15219
15312
  "action_attempt.unlock_door.succeeded",
15220
15313
  "action_attempt.unlock_door.failed",
15221
15314
  "thermostat.climate_preset_activated",
15222
- "thermostat.manually_adjusted"
15315
+ "thermostat.manually_adjusted",
15316
+ "thermostat.temperature_threshold_exceeded",
15317
+ "thermostat.temperature_threshold_no_longer_exceeded"
15223
15318
  ],
15224
15319
  type: "string"
15225
15320
  },
@@ -17773,6 +17868,139 @@ var openapi_default = {
17773
17868
  "x-response-key": "action_attempt"
17774
17869
  }
17775
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
+ },
17776
18004
  "/thermostats/update_climate_preset": {
17777
18005
  patch: {
17778
18006
  operationId: "thermostatsUpdateClimatePresetPatch",