@seamapi/types 1.359.0 → 1.360.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 +65 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +179 -2
- package/lib/seam/connect/models/events/devices.d.ts +60 -0
- package/lib/seam/connect/models/events/devices.js +10 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +30 -1
- package/lib/seam/connect/openapi.d.ts +116 -0
- package/lib/seam/connect/openapi.js +54 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +34 -2
- package/package.json +2 -2
- package/src/lib/seam/connect/models/events/devices.ts +13 -0
- package/src/lib/seam/connect/openapi.ts +57 -0
- package/src/lib/seam/connect/route-types.ts +36 -0
package/dist/connect.cjs
CHANGED
|
@@ -3518,6 +3518,15 @@ var temperature_changed_event = device_event.extend({
|
|
|
3518
3518
|
---
|
|
3519
3519
|
A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) reported temperature changed by at least 1 \xB0C.
|
|
3520
3520
|
`);
|
|
3521
|
+
var device_name_changed_event = device_event.extend({
|
|
3522
|
+
event_type: zod.z.literal("device.name_changed"),
|
|
3523
|
+
new_name: zod.z.string().describe("The new name of the device.")
|
|
3524
|
+
}).describe(`
|
|
3525
|
+
---
|
|
3526
|
+
route_path: /devices
|
|
3527
|
+
---
|
|
3528
|
+
The name of a [device](https://docs.seam.co/latest/core-concepts/devices) was changed.
|
|
3529
|
+
`);
|
|
3521
3530
|
var device_events = [
|
|
3522
3531
|
device_connected_event,
|
|
3523
3532
|
device_added_event,
|
|
@@ -3550,7 +3559,8 @@ var device_events = [
|
|
|
3550
3559
|
temperature_threshold_exceeded_event,
|
|
3551
3560
|
temperature_threshold_no_longer_exceeded_event,
|
|
3552
3561
|
temperature_reached_set_point_event,
|
|
3553
|
-
temperature_changed_event
|
|
3562
|
+
temperature_changed_event,
|
|
3563
|
+
device_name_changed_event
|
|
3554
3564
|
];
|
|
3555
3565
|
var enrollment_automation_event = common_event.extend({
|
|
3556
3566
|
enrollment_automation_id: zod.z.string().uuid().describe(
|
|
@@ -14805,6 +14815,58 @@ var openapi_default = {
|
|
|
14805
14815
|
type: "object",
|
|
14806
14816
|
"x-route-path": "/thermostats"
|
|
14807
14817
|
},
|
|
14818
|
+
{
|
|
14819
|
+
description: "The name of a [device](https://docs.seam.co/latest/core-concepts/devices) was changed.",
|
|
14820
|
+
properties: {
|
|
14821
|
+
connected_account_id: {
|
|
14822
|
+
description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
|
|
14823
|
+
format: "uuid",
|
|
14824
|
+
type: "string"
|
|
14825
|
+
},
|
|
14826
|
+
created_at: {
|
|
14827
|
+
description: "Date and time at which the event was created.",
|
|
14828
|
+
format: "date-time",
|
|
14829
|
+
type: "string"
|
|
14830
|
+
},
|
|
14831
|
+
device_id: {
|
|
14832
|
+
description: "ID of the device.",
|
|
14833
|
+
format: "uuid",
|
|
14834
|
+
type: "string"
|
|
14835
|
+
},
|
|
14836
|
+
event_id: {
|
|
14837
|
+
description: "ID of the event.",
|
|
14838
|
+
format: "uuid",
|
|
14839
|
+
type: "string"
|
|
14840
|
+
},
|
|
14841
|
+
event_type: { enum: ["device.name_changed"], type: "string" },
|
|
14842
|
+
new_name: {
|
|
14843
|
+
description: "The new name of the device.",
|
|
14844
|
+
type: "string"
|
|
14845
|
+
},
|
|
14846
|
+
occurred_at: {
|
|
14847
|
+
description: "Date and time at which the event occurred.",
|
|
14848
|
+
format: "date-time",
|
|
14849
|
+
type: "string"
|
|
14850
|
+
},
|
|
14851
|
+
workspace_id: {
|
|
14852
|
+
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).",
|
|
14853
|
+
format: "uuid",
|
|
14854
|
+
type: "string"
|
|
14855
|
+
}
|
|
14856
|
+
},
|
|
14857
|
+
required: [
|
|
14858
|
+
"event_id",
|
|
14859
|
+
"workspace_id",
|
|
14860
|
+
"created_at",
|
|
14861
|
+
"occurred_at",
|
|
14862
|
+
"device_id",
|
|
14863
|
+
"connected_account_id",
|
|
14864
|
+
"event_type",
|
|
14865
|
+
"new_name"
|
|
14866
|
+
],
|
|
14867
|
+
type: "object",
|
|
14868
|
+
"x-route-path": "/devices"
|
|
14869
|
+
},
|
|
14808
14870
|
{
|
|
14809
14871
|
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.",
|
|
14810
14872
|
properties: {
|
|
@@ -24790,6 +24852,7 @@ var openapi_default = {
|
|
|
24790
24852
|
"thermostat.temperature_threshold_no_longer_exceeded",
|
|
24791
24853
|
"thermostat.temperature_reached_set_point",
|
|
24792
24854
|
"thermostat.temperature_changed",
|
|
24855
|
+
"device.name_changed",
|
|
24793
24856
|
"enrollment_automation.deleted",
|
|
24794
24857
|
"phone.deactivated"
|
|
24795
24858
|
],
|
|
@@ -24871,6 +24934,7 @@ var openapi_default = {
|
|
|
24871
24934
|
"thermostat.temperature_threshold_no_longer_exceeded",
|
|
24872
24935
|
"thermostat.temperature_reached_set_point",
|
|
24873
24936
|
"thermostat.temperature_changed",
|
|
24937
|
+
"device.name_changed",
|
|
24874
24938
|
"enrollment_automation.deleted",
|
|
24875
24939
|
"phone.deactivated"
|
|
24876
24940
|
],
|