@seamapi/types 1.329.0 → 1.330.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 +79 -10
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +79 -9
- package/lib/seam/connect/models/acs/acs-user.d.ts +93 -0
- package/lib/seam/connect/models/acs/acs-user.js +14 -1
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/events/devices.js +5 -4
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +1 -1
- package/lib/seam/connect/openapi.js +58 -4
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +36 -8
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +17 -1
- package/src/lib/seam/connect/models/events/devices.ts +9 -4
- package/src/lib/seam/connect/openapi.ts +64 -4
- package/src/lib/seam/connect/route-types.ts +43 -8
package/dist/connect.cjs
CHANGED
|
@@ -1829,11 +1829,21 @@ var acs_users_salto_ks_user_not_subscribed = common_acs_user_warning.extend({
|
|
|
1829
1829
|
}).describe(
|
|
1830
1830
|
`Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn\u2019t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.`
|
|
1831
1831
|
);
|
|
1832
|
+
var unknown_issue_with_acs_user = common_acs_user_warning.extend({
|
|
1833
|
+
warning_code: zod.z.literal("unknown_issue_with_acs_user")
|
|
1834
|
+
}).describe(
|
|
1835
|
+
"An unknown issue occurred while syncing the state of this user with the provider. This issue may affect the proper functioning of this user."
|
|
1836
|
+
);
|
|
1832
1837
|
zod.z.object({
|
|
1833
1838
|
being_deleted: acs_users_being_deleted.optional().nullable(),
|
|
1834
|
-
salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable()
|
|
1839
|
+
salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable(),
|
|
1840
|
+
unknown_issue_with_acs_user: unknown_issue_with_acs_user.optional().nullable()
|
|
1835
1841
|
});
|
|
1836
|
-
var acs_users_warnings = zod.z.union([
|
|
1842
|
+
var acs_users_warnings = zod.z.union([
|
|
1843
|
+
acs_users_being_deleted,
|
|
1844
|
+
acs_users_salto_ks_user_not_subscribed,
|
|
1845
|
+
unknown_issue_with_acs_user
|
|
1846
|
+
]).describe("Warning associated with the `acs_user`.");
|
|
1837
1847
|
var common_acs_user_modification = zod.z.object({
|
|
1838
1848
|
created_at: zod.z.string().datetime().describe("Date and time at which this modification was requested."),
|
|
1839
1849
|
message: zod.z.string().describe("Detailed description of the modification.")
|
|
@@ -3148,18 +3158,23 @@ var temperature_threshold_no_longer_exceeded_event = device_event.extend({
|
|
|
3148
3158
|
`);
|
|
3149
3159
|
var temperature_reached_set_point_event = device_event.extend({
|
|
3150
3160
|
event_type: zod.z.literal("thermostat.temperature_reached_set_point"),
|
|
3151
|
-
temperature_celsius: zod.z.number().describe(
|
|
3152
|
-
|
|
3161
|
+
temperature_celsius: zod.z.number().describe(
|
|
3162
|
+
"Temperature, in \xB0C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats)."
|
|
3163
|
+
),
|
|
3164
|
+
temperature_fahrenheit: zod.z.number().describe(
|
|
3165
|
+
"Temperature, in \xB0F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats)."
|
|
3166
|
+
),
|
|
3153
3167
|
desired_temperature_celsius: zod.z.number().optional().describe(
|
|
3154
|
-
"Desired temperature, in \xB0C,
|
|
3168
|
+
"Desired temperature, in \xB0C, defined by the [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points)."
|
|
3155
3169
|
),
|
|
3156
3170
|
desired_temperature_fahrenheit: zod.z.number().optional().describe(
|
|
3157
|
-
"Desired temperature, in \xB0F,
|
|
3171
|
+
"Desired temperature, in \xB0F, defined by the [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points)."
|
|
3158
3172
|
)
|
|
3159
3173
|
}).describe(`
|
|
3160
3174
|
---
|
|
3161
3175
|
route_path: /thermostats
|
|
3162
3176
|
---
|
|
3177
|
+
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).
|
|
3163
3178
|
`);
|
|
3164
3179
|
var device_events = [
|
|
3165
3180
|
device_connected_event,
|
|
@@ -4814,6 +4829,19 @@ var openapi_default = {
|
|
|
4814
4829
|
},
|
|
4815
4830
|
required: ["created_at", "message", "warning_code"],
|
|
4816
4831
|
type: "object"
|
|
4832
|
+
},
|
|
4833
|
+
{
|
|
4834
|
+
description: "An unknown issue occurred while syncing the state of this user with the provider. This issue may affect the proper functioning of this user.",
|
|
4835
|
+
properties: {
|
|
4836
|
+
created_at: { format: "date-time", type: "string" },
|
|
4837
|
+
message: { type: "string" },
|
|
4838
|
+
warning_code: {
|
|
4839
|
+
enum: ["unknown_issue_with_acs_user"],
|
|
4840
|
+
type: "string"
|
|
4841
|
+
}
|
|
4842
|
+
},
|
|
4843
|
+
required: ["created_at", "message", "warning_code"],
|
|
4844
|
+
type: "object"
|
|
4817
4845
|
}
|
|
4818
4846
|
]
|
|
4819
4847
|
},
|
|
@@ -13121,6 +13149,7 @@ var openapi_default = {
|
|
|
13121
13149
|
"x-route-path": "/thermostats"
|
|
13122
13150
|
},
|
|
13123
13151
|
{
|
|
13152
|
+
description: "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).",
|
|
13124
13153
|
properties: {
|
|
13125
13154
|
connected_account_id: {
|
|
13126
13155
|
description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
|
|
@@ -13133,12 +13162,12 @@ var openapi_default = {
|
|
|
13133
13162
|
type: "string"
|
|
13134
13163
|
},
|
|
13135
13164
|
desired_temperature_celsius: {
|
|
13136
|
-
description: "Desired temperature, in \xB0C,
|
|
13165
|
+
description: "Desired temperature, in \xB0C, defined by the [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
|
|
13137
13166
|
format: "float",
|
|
13138
13167
|
type: "number"
|
|
13139
13168
|
},
|
|
13140
13169
|
desired_temperature_fahrenheit: {
|
|
13141
|
-
description: "Desired temperature, in \xB0F,
|
|
13170
|
+
description: "Desired temperature, in \xB0F, defined by the [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
|
|
13142
13171
|
format: "float",
|
|
13143
13172
|
type: "number"
|
|
13144
13173
|
},
|
|
@@ -13162,12 +13191,12 @@ var openapi_default = {
|
|
|
13162
13191
|
type: "string"
|
|
13163
13192
|
},
|
|
13164
13193
|
temperature_celsius: {
|
|
13165
|
-
description: "Temperature, in \xB0C, reported by the thermostat.",
|
|
13194
|
+
description: "Temperature, in \xB0C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).",
|
|
13166
13195
|
format: "float",
|
|
13167
13196
|
type: "number"
|
|
13168
13197
|
},
|
|
13169
13198
|
temperature_fahrenheit: {
|
|
13170
|
-
description: "Temperature, in \xB0F, reported by the thermostat.",
|
|
13199
|
+
description: "Temperature, in \xB0F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).",
|
|
13171
13200
|
format: "float",
|
|
13172
13201
|
type: "number"
|
|
13173
13202
|
},
|
|
@@ -20254,6 +20283,26 @@ var openapi_default = {
|
|
|
20254
20283
|
"warning_code"
|
|
20255
20284
|
],
|
|
20256
20285
|
type: "object"
|
|
20286
|
+
},
|
|
20287
|
+
{
|
|
20288
|
+
description: "An unknown issue occurred while syncing the state of this user with the provider. This issue may affect the proper functioning of this user.",
|
|
20289
|
+
properties: {
|
|
20290
|
+
created_at: {
|
|
20291
|
+
format: "date-time",
|
|
20292
|
+
type: "string"
|
|
20293
|
+
},
|
|
20294
|
+
message: { type: "string" },
|
|
20295
|
+
warning_code: {
|
|
20296
|
+
enum: ["unknown_issue_with_acs_user"],
|
|
20297
|
+
type: "string"
|
|
20298
|
+
}
|
|
20299
|
+
},
|
|
20300
|
+
required: [
|
|
20301
|
+
"created_at",
|
|
20302
|
+
"message",
|
|
20303
|
+
"warning_code"
|
|
20304
|
+
],
|
|
20305
|
+
type: "object"
|
|
20257
20306
|
}
|
|
20258
20307
|
]
|
|
20259
20308
|
},
|
|
@@ -20615,6 +20664,26 @@ var openapi_default = {
|
|
|
20615
20664
|
"warning_code"
|
|
20616
20665
|
],
|
|
20617
20666
|
type: "object"
|
|
20667
|
+
},
|
|
20668
|
+
{
|
|
20669
|
+
description: "An unknown issue occurred while syncing the state of this user with the provider. This issue may affect the proper functioning of this user.",
|
|
20670
|
+
properties: {
|
|
20671
|
+
created_at: {
|
|
20672
|
+
format: "date-time",
|
|
20673
|
+
type: "string"
|
|
20674
|
+
},
|
|
20675
|
+
message: { type: "string" },
|
|
20676
|
+
warning_code: {
|
|
20677
|
+
enum: ["unknown_issue_with_acs_user"],
|
|
20678
|
+
type: "string"
|
|
20679
|
+
}
|
|
20680
|
+
},
|
|
20681
|
+
required: [
|
|
20682
|
+
"created_at",
|
|
20683
|
+
"message",
|
|
20684
|
+
"warning_code"
|
|
20685
|
+
],
|
|
20686
|
+
type: "object"
|
|
20618
20687
|
}
|
|
20619
20688
|
]
|
|
20620
20689
|
},
|