@seamapi/types 1.341.0 → 1.342.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 +186 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +342 -2
- package/lib/seam/connect/models/events/devices.d.ts +66 -0
- package/lib/seam/connect/models/events/devices.js +15 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +33 -1
- package/lib/seam/connect/openapi.d.ts +243 -0
- package/lib/seam/connect/openapi.js +170 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +67 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +22 -0
- package/src/lib/seam/connect/openapi.ts +175 -0
- package/src/lib/seam/connect/route-types.ts +73 -0
package/dist/connect.cjs
CHANGED
|
@@ -3407,6 +3407,20 @@ var temperature_reached_set_point_event = device_event.extend({
|
|
|
3407
3407
|
---
|
|
3408
3408
|
A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) temperature reading is within 1 \xB0C of the configured cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
|
|
3409
3409
|
`);
|
|
3410
|
+
var temperature_changed_event = device_event.extend({
|
|
3411
|
+
event_type: zod.z.literal("thermostat.temperature_changed_event"),
|
|
3412
|
+
temperature_celsius: zod.z.number().describe(
|
|
3413
|
+
"Temperature, in \xB0C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats)."
|
|
3414
|
+
),
|
|
3415
|
+
temperature_fahrenheit: zod.z.number().describe(
|
|
3416
|
+
"Temperature, in \xB0F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats)."
|
|
3417
|
+
)
|
|
3418
|
+
}).describe(`
|
|
3419
|
+
---
|
|
3420
|
+
route_path: /thermostats
|
|
3421
|
+
---
|
|
3422
|
+
A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) reported temperature changed by at least 1 \xB0C.
|
|
3423
|
+
`);
|
|
3410
3424
|
var device_events = [
|
|
3411
3425
|
device_connected_event,
|
|
3412
3426
|
device_added_event,
|
|
@@ -3438,7 +3452,8 @@ var device_events = [
|
|
|
3438
3452
|
thermostat_manually_adjusted_event,
|
|
3439
3453
|
temperature_threshold_exceeded_event,
|
|
3440
3454
|
temperature_threshold_no_longer_exceeded_event,
|
|
3441
|
-
temperature_reached_set_point_event
|
|
3455
|
+
temperature_reached_set_point_event,
|
|
3456
|
+
temperature_changed_event
|
|
3442
3457
|
];
|
|
3443
3458
|
var enrollment_automation_event = common_event.extend({
|
|
3444
3459
|
enrollment_automation_id: zod.z.string().uuid().describe(
|
|
@@ -14412,6 +14427,68 @@ var openapi_default = {
|
|
|
14412
14427
|
type: "object",
|
|
14413
14428
|
"x-route-path": "/thermostats"
|
|
14414
14429
|
},
|
|
14430
|
+
{
|
|
14431
|
+
description: "A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) reported temperature changed by at least 1 \xB0C.",
|
|
14432
|
+
properties: {
|
|
14433
|
+
connected_account_id: {
|
|
14434
|
+
description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
|
|
14435
|
+
format: "uuid",
|
|
14436
|
+
type: "string"
|
|
14437
|
+
},
|
|
14438
|
+
created_at: {
|
|
14439
|
+
description: "Date and time at which the event was created.",
|
|
14440
|
+
format: "date-time",
|
|
14441
|
+
type: "string"
|
|
14442
|
+
},
|
|
14443
|
+
device_id: {
|
|
14444
|
+
description: "ID of the device.",
|
|
14445
|
+
format: "uuid",
|
|
14446
|
+
type: "string"
|
|
14447
|
+
},
|
|
14448
|
+
event_id: {
|
|
14449
|
+
description: "ID of the event.",
|
|
14450
|
+
format: "uuid",
|
|
14451
|
+
type: "string"
|
|
14452
|
+
},
|
|
14453
|
+
event_type: {
|
|
14454
|
+
enum: ["thermostat.temperature_changed_event"],
|
|
14455
|
+
type: "string"
|
|
14456
|
+
},
|
|
14457
|
+
occurred_at: {
|
|
14458
|
+
description: "Date and time at which the event occurred.",
|
|
14459
|
+
format: "date-time",
|
|
14460
|
+
type: "string"
|
|
14461
|
+
},
|
|
14462
|
+
temperature_celsius: {
|
|
14463
|
+
description: "Temperature, in \xB0C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).",
|
|
14464
|
+
format: "float",
|
|
14465
|
+
type: "number"
|
|
14466
|
+
},
|
|
14467
|
+
temperature_fahrenheit: {
|
|
14468
|
+
description: "Temperature, in \xB0F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).",
|
|
14469
|
+
format: "float",
|
|
14470
|
+
type: "number"
|
|
14471
|
+
},
|
|
14472
|
+
workspace_id: {
|
|
14473
|
+
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).",
|
|
14474
|
+
format: "uuid",
|
|
14475
|
+
type: "string"
|
|
14476
|
+
}
|
|
14477
|
+
},
|
|
14478
|
+
required: [
|
|
14479
|
+
"event_id",
|
|
14480
|
+
"workspace_id",
|
|
14481
|
+
"created_at",
|
|
14482
|
+
"occurred_at",
|
|
14483
|
+
"device_id",
|
|
14484
|
+
"connected_account_id",
|
|
14485
|
+
"event_type",
|
|
14486
|
+
"temperature_celsius",
|
|
14487
|
+
"temperature_fahrenheit"
|
|
14488
|
+
],
|
|
14489
|
+
type: "object",
|
|
14490
|
+
"x-route-path": "/thermostats"
|
|
14491
|
+
},
|
|
14415
14492
|
{
|
|
14416
14493
|
description: "An [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) was deleted.",
|
|
14417
14494
|
properties: {
|
|
@@ -24634,6 +24711,7 @@ var openapi_default = {
|
|
|
24634
24711
|
"thermostat.temperature_threshold_exceeded",
|
|
24635
24712
|
"thermostat.temperature_threshold_no_longer_exceeded",
|
|
24636
24713
|
"thermostat.temperature_reached_set_point",
|
|
24714
|
+
"thermostat.temperature_changed_event",
|
|
24637
24715
|
"enrollment_automation.deleted",
|
|
24638
24716
|
"phone.deactivated"
|
|
24639
24717
|
],
|
|
@@ -24714,6 +24792,7 @@ var openapi_default = {
|
|
|
24714
24792
|
"thermostat.temperature_threshold_exceeded",
|
|
24715
24793
|
"thermostat.temperature_threshold_no_longer_exceeded",
|
|
24716
24794
|
"thermostat.temperature_reached_set_point",
|
|
24795
|
+
"thermostat.temperature_changed_event",
|
|
24717
24796
|
"enrollment_automation.deleted",
|
|
24718
24797
|
"phone.deactivated"
|
|
24719
24798
|
],
|
|
@@ -27866,6 +27945,112 @@ var openapi_default = {
|
|
|
27866
27945
|
"x-title": "Set a Temperature Threshold"
|
|
27867
27946
|
}
|
|
27868
27947
|
},
|
|
27948
|
+
"/thermostats/simulate/hvac_mode_adjusted": {
|
|
27949
|
+
post: {
|
|
27950
|
+
operationId: "thermostatsSimulateHvacModeAdjustedPost",
|
|
27951
|
+
requestBody: {
|
|
27952
|
+
content: {
|
|
27953
|
+
"application/json": {
|
|
27954
|
+
schema: {
|
|
27955
|
+
discriminator: { propertyName: "hvac_mode" },
|
|
27956
|
+
oneOf: [
|
|
27957
|
+
{
|
|
27958
|
+
properties: {
|
|
27959
|
+
device_id: { format: "uuid", type: "string" },
|
|
27960
|
+
hvac_mode: { enum: ["off"], type: "string" }
|
|
27961
|
+
},
|
|
27962
|
+
required: ["hvac_mode", "device_id"],
|
|
27963
|
+
type: "object"
|
|
27964
|
+
},
|
|
27965
|
+
{
|
|
27966
|
+
properties: {
|
|
27967
|
+
cooling_set_point_celsius: {
|
|
27968
|
+
format: "float",
|
|
27969
|
+
type: "number"
|
|
27970
|
+
},
|
|
27971
|
+
cooling_set_point_fahrenheit: {
|
|
27972
|
+
format: "float",
|
|
27973
|
+
type: "number"
|
|
27974
|
+
},
|
|
27975
|
+
device_id: { format: "uuid", type: "string" },
|
|
27976
|
+
hvac_mode: { enum: ["cool"], type: "string" }
|
|
27977
|
+
},
|
|
27978
|
+
required: ["hvac_mode", "device_id"],
|
|
27979
|
+
type: "object"
|
|
27980
|
+
},
|
|
27981
|
+
{
|
|
27982
|
+
properties: {
|
|
27983
|
+
device_id: { format: "uuid", type: "string" },
|
|
27984
|
+
heating_set_point_celsius: {
|
|
27985
|
+
format: "float",
|
|
27986
|
+
type: "number"
|
|
27987
|
+
},
|
|
27988
|
+
heating_set_point_fahrenheit: {
|
|
27989
|
+
format: "float",
|
|
27990
|
+
type: "number"
|
|
27991
|
+
},
|
|
27992
|
+
hvac_mode: { enum: ["heat"], type: "string" }
|
|
27993
|
+
},
|
|
27994
|
+
required: ["hvac_mode", "device_id"],
|
|
27995
|
+
type: "object"
|
|
27996
|
+
},
|
|
27997
|
+
{
|
|
27998
|
+
properties: {
|
|
27999
|
+
cooling_set_point_celsius: {
|
|
28000
|
+
format: "float",
|
|
28001
|
+
type: "number"
|
|
28002
|
+
},
|
|
28003
|
+
cooling_set_point_fahrenheit: {
|
|
28004
|
+
format: "float",
|
|
28005
|
+
type: "number"
|
|
28006
|
+
},
|
|
28007
|
+
device_id: { format: "uuid", type: "string" },
|
|
28008
|
+
heating_set_point_celsius: {
|
|
28009
|
+
format: "float",
|
|
28010
|
+
type: "number"
|
|
28011
|
+
},
|
|
28012
|
+
heating_set_point_fahrenheit: {
|
|
28013
|
+
format: "float",
|
|
28014
|
+
type: "number"
|
|
28015
|
+
},
|
|
28016
|
+
hvac_mode: { enum: ["heat_cool"], type: "string" }
|
|
28017
|
+
},
|
|
28018
|
+
required: ["hvac_mode", "device_id"],
|
|
28019
|
+
type: "object"
|
|
28020
|
+
}
|
|
28021
|
+
]
|
|
28022
|
+
}
|
|
28023
|
+
}
|
|
28024
|
+
}
|
|
28025
|
+
},
|
|
28026
|
+
responses: {
|
|
28027
|
+
200: {
|
|
28028
|
+
content: {
|
|
28029
|
+
"application/json": {
|
|
28030
|
+
schema: {
|
|
28031
|
+
properties: { ok: { type: "boolean" } },
|
|
28032
|
+
required: ["ok"],
|
|
28033
|
+
type: "object"
|
|
28034
|
+
}
|
|
28035
|
+
}
|
|
28036
|
+
},
|
|
28037
|
+
description: "OK"
|
|
28038
|
+
},
|
|
28039
|
+
400: { description: "Bad Request" },
|
|
28040
|
+
401: { description: "Unauthorized" }
|
|
28041
|
+
},
|
|
28042
|
+
security: [
|
|
28043
|
+
{ api_key: [] },
|
|
28044
|
+
{ pat_with_workspace: [] },
|
|
28045
|
+
{ console_session_with_workspace: [] }
|
|
28046
|
+
],
|
|
28047
|
+
summary: "/thermostats/simulate/hvac_mode_adjusted",
|
|
28048
|
+
tags: ["/thermostats"],
|
|
28049
|
+
"x-fern-sdk-group-name": ["thermostats", "simulate"],
|
|
28050
|
+
"x-fern-sdk-method-name": "hvac_mode_adjusted",
|
|
28051
|
+
"x-response-key": null
|
|
28052
|
+
}
|
|
28053
|
+
},
|
|
27869
28054
|
"/thermostats/simulate/temperature_reached": {
|
|
27870
28055
|
post: {
|
|
27871
28056
|
operationId: "thermostatsSimulateTemperatureReachedPost",
|