@seamapi/types 1.325.0 → 1.326.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 +87 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +232 -2
- package/lib/seam/connect/models/events/devices.d.ts +78 -0
- package/lib/seam/connect/models/events/devices.js +18 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +38 -0
- package/lib/seam/connect/openapi.d.ts +148 -0
- package/lib/seam/connect/openapi.js +72 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +46 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +27 -0
- package/src/lib/seam/connect/openapi.ts +76 -0
- package/src/lib/seam/connect/route-types.ts +48 -0
package/dist/connect.cjs
CHANGED
|
@@ -2862,6 +2862,17 @@ var temperature_threshold_no_longer_exceeded_event = device_event.extend({
|
|
|
2862
2862
|
}).describe(
|
|
2863
2863
|
"A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) temperature reading no longer exceeds the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds)."
|
|
2864
2864
|
);
|
|
2865
|
+
var temperature_reached_set_point_event = device_event.extend({
|
|
2866
|
+
event_type: zod.z.literal("thermostat.temperature_reached_set_point"),
|
|
2867
|
+
temperature_celsius: zod.z.number().describe("Temperature, in \xB0C, reported by the thermostat."),
|
|
2868
|
+
temperature_fahrenheit: zod.z.number().describe("Temperature, in \xB0F, reported by the thermostat."),
|
|
2869
|
+
desired_temperature_celsius: zod.z.number().optional().describe(
|
|
2870
|
+
"Desired temperature, in \xB0C, set by the thermostat's cooling or heating set point."
|
|
2871
|
+
),
|
|
2872
|
+
desired_temperature_fahrenheit: zod.z.number().optional().describe(
|
|
2873
|
+
"Desired temperature, in \xB0F, set by the thermostat's cooling or heating set point."
|
|
2874
|
+
)
|
|
2875
|
+
});
|
|
2865
2876
|
var device_events = [
|
|
2866
2877
|
device_connected_event,
|
|
2867
2878
|
device_added_event,
|
|
@@ -2892,7 +2903,8 @@ var device_events = [
|
|
|
2892
2903
|
thermostat_climate_preset_activated_event,
|
|
2893
2904
|
thermostat_manually_adjusted_event,
|
|
2894
2905
|
temperature_threshold_exceeded_event,
|
|
2895
|
-
temperature_threshold_no_longer_exceeded_event
|
|
2906
|
+
temperature_threshold_no_longer_exceeded_event,
|
|
2907
|
+
temperature_reached_set_point_event
|
|
2896
2908
|
];
|
|
2897
2909
|
var enrollment_automation_event = common_event.extend({
|
|
2898
2910
|
enrollment_automation_id: zod.z.string().uuid().describe(
|
|
@@ -12493,6 +12505,76 @@ var openapi_default = {
|
|
|
12493
12505
|
],
|
|
12494
12506
|
type: "object"
|
|
12495
12507
|
},
|
|
12508
|
+
{
|
|
12509
|
+
properties: {
|
|
12510
|
+
connected_account_id: {
|
|
12511
|
+
description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
|
|
12512
|
+
format: "uuid",
|
|
12513
|
+
type: "string"
|
|
12514
|
+
},
|
|
12515
|
+
created_at: {
|
|
12516
|
+
description: "Date and time at which the event was created.",
|
|
12517
|
+
format: "date-time",
|
|
12518
|
+
type: "string"
|
|
12519
|
+
},
|
|
12520
|
+
desired_temperature_celsius: {
|
|
12521
|
+
description: "Desired temperature, in \xB0C, set by the thermostat's cooling or heating set point.",
|
|
12522
|
+
format: "float",
|
|
12523
|
+
type: "number"
|
|
12524
|
+
},
|
|
12525
|
+
desired_temperature_fahrenheit: {
|
|
12526
|
+
description: "Desired temperature, in \xB0F, set by the thermostat's cooling or heating set point.",
|
|
12527
|
+
format: "float",
|
|
12528
|
+
type: "number"
|
|
12529
|
+
},
|
|
12530
|
+
device_id: {
|
|
12531
|
+
description: "ID of the device.",
|
|
12532
|
+
format: "uuid",
|
|
12533
|
+
type: "string"
|
|
12534
|
+
},
|
|
12535
|
+
event_id: {
|
|
12536
|
+
description: "ID of the event.",
|
|
12537
|
+
format: "uuid",
|
|
12538
|
+
type: "string"
|
|
12539
|
+
},
|
|
12540
|
+
event_type: {
|
|
12541
|
+
enum: ["thermostat.temperature_reached_set_point"],
|
|
12542
|
+
type: "string"
|
|
12543
|
+
},
|
|
12544
|
+
occurred_at: {
|
|
12545
|
+
description: "Date and time at which the event occurred.",
|
|
12546
|
+
format: "date-time",
|
|
12547
|
+
type: "string"
|
|
12548
|
+
},
|
|
12549
|
+
temperature_celsius: {
|
|
12550
|
+
description: "Temperature, in \xB0C, reported by the thermostat.",
|
|
12551
|
+
format: "float",
|
|
12552
|
+
type: "number"
|
|
12553
|
+
},
|
|
12554
|
+
temperature_fahrenheit: {
|
|
12555
|
+
description: "Temperature, in \xB0F, reported by the thermostat.",
|
|
12556
|
+
format: "float",
|
|
12557
|
+
type: "number"
|
|
12558
|
+
},
|
|
12559
|
+
workspace_id: {
|
|
12560
|
+
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).",
|
|
12561
|
+
format: "uuid",
|
|
12562
|
+
type: "string"
|
|
12563
|
+
}
|
|
12564
|
+
},
|
|
12565
|
+
required: [
|
|
12566
|
+
"event_id",
|
|
12567
|
+
"workspace_id",
|
|
12568
|
+
"created_at",
|
|
12569
|
+
"occurred_at",
|
|
12570
|
+
"device_id",
|
|
12571
|
+
"connected_account_id",
|
|
12572
|
+
"event_type",
|
|
12573
|
+
"temperature_celsius",
|
|
12574
|
+
"temperature_fahrenheit"
|
|
12575
|
+
],
|
|
12576
|
+
type: "object"
|
|
12577
|
+
},
|
|
12496
12578
|
{
|
|
12497
12579
|
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.",
|
|
12498
12580
|
properties: {
|
|
@@ -22489,7 +22571,8 @@ var openapi_default = {
|
|
|
22489
22571
|
"thermostat.climate_preset_activated",
|
|
22490
22572
|
"thermostat.manually_adjusted",
|
|
22491
22573
|
"thermostat.temperature_threshold_exceeded",
|
|
22492
|
-
"thermostat.temperature_threshold_no_longer_exceeded"
|
|
22574
|
+
"thermostat.temperature_threshold_no_longer_exceeded",
|
|
22575
|
+
"thermostat.temperature_reached_set_point"
|
|
22493
22576
|
],
|
|
22494
22577
|
type: "string"
|
|
22495
22578
|
},
|
|
@@ -22566,7 +22649,8 @@ var openapi_default = {
|
|
|
22566
22649
|
"thermostat.climate_preset_activated",
|
|
22567
22650
|
"thermostat.manually_adjusted",
|
|
22568
22651
|
"thermostat.temperature_threshold_exceeded",
|
|
22569
|
-
"thermostat.temperature_threshold_no_longer_exceeded"
|
|
22652
|
+
"thermostat.temperature_threshold_no_longer_exceeded",
|
|
22653
|
+
"thermostat.temperature_reached_set_point"
|
|
22570
22654
|
],
|
|
22571
22655
|
type: "string"
|
|
22572
22656
|
},
|