@seamapi/types 1.323.0 → 1.324.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 +631 -719
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +500 -643
- package/lib/seam/connect/models/events/access-codes.js +32 -41
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/acs/common.js +9 -12
- package/lib/seam/connect/models/events/acs/common.js.map +1 -1
- package/lib/seam/connect/models/events/acs/credentials.js +2 -2
- package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
- package/lib/seam/connect/models/events/acs/encoders.js +6 -3
- package/lib/seam/connect/models/events/acs/encoders.js.map +1 -1
- package/lib/seam/connect/models/events/acs/systems.js +3 -3
- package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
- package/lib/seam/connect/models/events/acs/users.js +5 -3
- package/lib/seam/connect/models/events/acs/users.js.map +1 -1
- package/lib/seam/connect/models/events/action-attempts.js +10 -22
- package/lib/seam/connect/models/events/action-attempts.js.map +1 -1
- package/lib/seam/connect/models/events/client-sessions.js +5 -7
- package/lib/seam/connect/models/events/client-sessions.js.map +1 -1
- package/lib/seam/connect/models/events/common.js +5 -2
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/events/connect-webviews.js +10 -14
- package/lib/seam/connect/models/events/connect-webviews.js.map +1 -1
- package/lib/seam/connect/models/events/connected-accounts.js +15 -19
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.js +43 -47
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/enrollment-automations.js +5 -7
- package/lib/seam/connect/models/events/enrollment-automations.js.map +1 -1
- package/lib/seam/connect/models/events/phones.js +4 -6
- package/lib/seam/connect/models/events/phones.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +0 -143
- package/lib/seam/connect/openapi.js +316 -440
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +500 -500
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-codes.ts +64 -41
- package/src/lib/seam/connect/models/events/acs/common.ts +13 -12
- package/src/lib/seam/connect/models/events/acs/credentials.ts +6 -2
- package/src/lib/seam/connect/models/events/acs/encoders.ts +12 -3
- package/src/lib/seam/connect/models/events/acs/systems.ts +9 -3
- package/src/lib/seam/connect/models/events/acs/users.ts +10 -4
- package/src/lib/seam/connect/models/events/action-attempts.ts +20 -22
- package/src/lib/seam/connect/models/events/client-sessions.ts +9 -7
- package/src/lib/seam/connect/models/events/common.ts +5 -2
- package/src/lib/seam/connect/models/events/connect-webviews.ts +18 -14
- package/src/lib/seam/connect/models/events/connected-accounts.ts +25 -19
- package/src/lib/seam/connect/models/events/devices.ts +75 -47
- package/src/lib/seam/connect/models/events/enrollment-automations.ts +9 -7
- package/src/lib/seam/connect/models/events/phones.ts +6 -6
- package/src/lib/seam/connect/openapi.ts +454 -440
- package/src/lib/seam/connect/route-types.ts +500 -500
|
@@ -34,7 +34,7 @@ const disconnection_error_code = z
|
|
|
34
34
|
export const lock_method = z
|
|
35
35
|
.enum(['keycode', 'manual', 'automatic', 'unknown', 'seamapi'])
|
|
36
36
|
.describe(
|
|
37
|
-
'Method by which a lock device was locked or unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device.',
|
|
37
|
+
'Method by which a [lock device](https://docs.seam.co/latest/capability-guides/smart-locks) was locked or unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device.',
|
|
38
38
|
)
|
|
39
39
|
export type LockMethod = z.infer<typeof lock_method>
|
|
40
40
|
|
|
@@ -42,7 +42,9 @@ export const device_connected_event = device_event
|
|
|
42
42
|
.extend({
|
|
43
43
|
event_type: z.literal('device.connected'),
|
|
44
44
|
})
|
|
45
|
-
.describe(
|
|
45
|
+
.describe(
|
|
46
|
+
'The status of a [device](https://docs.seam.co/latest/core-concepts/devices) changed from offline to online. That is, the `device.properties.online` property changed from `false` to `true`. Note that some devices operate entirely in offline mode, so Seam never emits a `device.connected` event for these devices.',
|
|
47
|
+
)
|
|
46
48
|
|
|
47
49
|
export type DeviceConnectedEvent = z.infer<typeof device_connected_event>
|
|
48
50
|
|
|
@@ -50,7 +52,9 @@ export const device_added_event = device_event
|
|
|
50
52
|
.extend({
|
|
51
53
|
event_type: z.literal('device.added'),
|
|
52
54
|
})
|
|
53
|
-
.describe(
|
|
55
|
+
.describe(
|
|
56
|
+
'A [device](https://docs.seam.co/latest/core-concepts/devices) was added to Seam or was re-added to Seam after having been removed.',
|
|
57
|
+
)
|
|
54
58
|
|
|
55
59
|
export type DeviceAddedEvent = z.infer<typeof device_added_event>
|
|
56
60
|
|
|
@@ -83,7 +87,7 @@ export const unmanaged_device_connected_event = device_event
|
|
|
83
87
|
event_type: z.literal('device.unmanaged.connected'),
|
|
84
88
|
})
|
|
85
89
|
.describe(
|
|
86
|
-
'
|
|
90
|
+
'The status of an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices) changed from offline to online. That is, the `device.properties.online` property changed from `false` to `true`.',
|
|
87
91
|
)
|
|
88
92
|
|
|
89
93
|
export type UnmanagedDeviceConnectedEvent = z.infer<
|
|
@@ -95,7 +99,9 @@ export const device_disconnected_event = device_event
|
|
|
95
99
|
event_type: z.literal('device.disconnected'),
|
|
96
100
|
error_code: disconnection_error_code,
|
|
97
101
|
})
|
|
98
|
-
.describe(
|
|
102
|
+
.describe(
|
|
103
|
+
'The status of a [device](https://docs.seam.co/latest/core-concepts/devices) changed from online to offline. That is, the `device.properties.online` property changed from `true` to `false`.',
|
|
104
|
+
)
|
|
99
105
|
|
|
100
106
|
export type DeviceDisconnectedEvent = z.infer<typeof device_disconnected_event>
|
|
101
107
|
|
|
@@ -105,7 +111,7 @@ export const unmanaged_device_disconnected_event = device_event
|
|
|
105
111
|
error_code: disconnection_error_code,
|
|
106
112
|
})
|
|
107
113
|
.describe(
|
|
108
|
-
'
|
|
114
|
+
'The status of an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices) changed from online to offline. That is, the `device.properties.online` property changed from `true` to `false`.',
|
|
109
115
|
)
|
|
110
116
|
|
|
111
117
|
export type UnmanagedDeviceDisconnectedEvent = z.infer<
|
|
@@ -117,7 +123,7 @@ export const device_tampered_event = device_event
|
|
|
117
123
|
event_type: z.literal('device.tampered'),
|
|
118
124
|
})
|
|
119
125
|
.describe(
|
|
120
|
-
'A device detected that it was tampered with, for example, opened or moved.',
|
|
126
|
+
'A [device](https://docs.seam.co/latest/core-concepts/devices) detected that it was tampered with, for example, opened or moved.',
|
|
121
127
|
)
|
|
122
128
|
|
|
123
129
|
export type DeviceTamperedEvent = z.infer<typeof device_tampered_event>
|
|
@@ -127,7 +133,9 @@ export const device_low_battery_event = device_event
|
|
|
127
133
|
event_type: z.literal('device.low_battery'),
|
|
128
134
|
battery_level,
|
|
129
135
|
})
|
|
130
|
-
.describe(
|
|
136
|
+
.describe(
|
|
137
|
+
'A [device](https://docs.seam.co/latest/core-concepts/devices) battery level dropped below the low threshold.',
|
|
138
|
+
)
|
|
131
139
|
|
|
132
140
|
export type DeviceLowBatteryEvent = z.infer<typeof device_low_battery_event>
|
|
133
141
|
|
|
@@ -138,7 +146,7 @@ export const device_battery_status_changed_event = device_event
|
|
|
138
146
|
battery_level,
|
|
139
147
|
})
|
|
140
148
|
.describe(
|
|
141
|
-
'A device battery status changed since the last `battery_status_changed` event.',
|
|
149
|
+
'A [device](https://docs.seam.co/latest/core-concepts/devices) battery status changed since the last `battery_status_changed` event.',
|
|
142
150
|
)
|
|
143
151
|
|
|
144
152
|
export type DeviceBatteryStatusChangedEvent = z.infer<
|
|
@@ -150,7 +158,7 @@ export const device_removed_event = device_event
|
|
|
150
158
|
event_type: z.literal('device.removed'),
|
|
151
159
|
})
|
|
152
160
|
.describe(
|
|
153
|
-
'A device was removed externally from the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
161
|
+
'A [device](https://docs.seam.co/latest/core-concepts/devices) was removed externally from the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
154
162
|
)
|
|
155
163
|
|
|
156
164
|
export type DeviceRemovedEvent = z.infer<typeof device_removed_event>
|
|
@@ -160,7 +168,7 @@ export const device_deleted_event = device_event
|
|
|
160
168
|
event_type: z.literal('device.deleted'),
|
|
161
169
|
})
|
|
162
170
|
.describe(
|
|
163
|
-
'A device
|
|
171
|
+
'A [device](https://docs.seam.co/latest/core-concepts/devices) was deleted.',
|
|
164
172
|
)
|
|
165
173
|
|
|
166
174
|
export type DeviceDeletedEvent = z.infer<typeof device_deleted_event>
|
|
@@ -170,7 +178,7 @@ export const device_third_party_integration_detected_event = device_event
|
|
|
170
178
|
event_type: z.literal('device.third_party_integration_detected'),
|
|
171
179
|
})
|
|
172
180
|
.describe(
|
|
173
|
-
'Seam detected that a device is using a third-party integration that will interfere with Seam device management.',
|
|
181
|
+
'Seam detected that a [device](https://docs.seam.co/latest/core-concepts/devices) is using a third-party integration that will interfere with Seam device management.',
|
|
174
182
|
)
|
|
175
183
|
|
|
176
184
|
export type DeviceThirdPartyIntegrationDetectedEvent = z.infer<
|
|
@@ -185,7 +193,7 @@ export const device_third_party_integration_no_longer_detected_event =
|
|
|
185
193
|
),
|
|
186
194
|
})
|
|
187
195
|
.describe(
|
|
188
|
-
'Seam detected that a device is no longer using a third-party integration that was interfering with Seam device management.',
|
|
196
|
+
'Seam detected that a [device](https://docs.seam.co/latest/core-concepts/devices) is no longer using a third-party integration that was interfering with Seam device management.',
|
|
189
197
|
)
|
|
190
198
|
|
|
191
199
|
export type DeviceThirdPartyIntegrationNoLongerDetectedEvent = z.infer<
|
|
@@ -196,7 +204,9 @@ export const device_salto_privacy_mode_activated_event = device_event
|
|
|
196
204
|
.extend({
|
|
197
205
|
event_type: z.literal('device.salto.privacy_mode_activated'),
|
|
198
206
|
})
|
|
199
|
-
.describe(
|
|
207
|
+
.describe(
|
|
208
|
+
'A [Salto device](https://docs.seam.co/latest/device-and-system-integration-guides/salto-locks) activated privacy mode.',
|
|
209
|
+
)
|
|
200
210
|
|
|
201
211
|
export type DeviceSaltoPrivacyModeActivatedEvent = z.infer<
|
|
202
212
|
typeof device_salto_privacy_mode_activated_event
|
|
@@ -206,7 +216,9 @@ export const device_salto_privacy_mode_deactivated_event = device_event
|
|
|
206
216
|
.extend({
|
|
207
217
|
event_type: z.literal('device.salto.privacy_mode_deactivated'),
|
|
208
218
|
})
|
|
209
|
-
.describe(
|
|
219
|
+
.describe(
|
|
220
|
+
'A [Salto device](https://docs.seam.co/latest/device-and-system-integration-guides/salto-locks) deactivated privacy mode.',
|
|
221
|
+
)
|
|
210
222
|
|
|
211
223
|
export type DeviceSaltoPrivacyModeDeactivatedEvent = z.infer<
|
|
212
224
|
typeof device_salto_privacy_mode_deactivated_event
|
|
@@ -216,7 +228,9 @@ export const device_connection_became_flaky_event = device_event
|
|
|
216
228
|
.extend({
|
|
217
229
|
event_type: z.literal('device.connection_became_flaky'),
|
|
218
230
|
})
|
|
219
|
-
.describe(
|
|
231
|
+
.describe(
|
|
232
|
+
'Seam detected a flaky [device](https://docs.seam.co/latest/core-concepts/devices) connection.',
|
|
233
|
+
)
|
|
220
234
|
|
|
221
235
|
export type DeviceConnectionBecameFlakyEvent = z.infer<
|
|
222
236
|
typeof device_connection_became_flaky_event
|
|
@@ -227,7 +241,7 @@ export const device_connection_stabilized_event = device_event
|
|
|
227
241
|
event_type: z.literal('device.connection_stabilized'),
|
|
228
242
|
})
|
|
229
243
|
.describe(
|
|
230
|
-
'Seam detected that a previously-flaky device connection stabilized.',
|
|
244
|
+
'Seam detected that a previously-flaky [device](https://docs.seam.co/latest/core-concepts/devices) connection stabilized.',
|
|
231
245
|
)
|
|
232
246
|
|
|
233
247
|
export type DeviceConnectionStabilizedEvent = z.infer<
|
|
@@ -239,7 +253,7 @@ export const device_error_subscription_required_event = device_event
|
|
|
239
253
|
event_type: z.literal('device.error.subscription_required'),
|
|
240
254
|
})
|
|
241
255
|
.describe(
|
|
242
|
-
'A third-party subscription is required to use all device features.',
|
|
256
|
+
'A third-party subscription is required to use all [device](https://docs.seam.co/latest/core-concepts/devices) features.',
|
|
243
257
|
)
|
|
244
258
|
|
|
245
259
|
export type DeviceErrorSubscriptionRequiredEvent = z.infer<
|
|
@@ -251,7 +265,7 @@ export const device_error_subscription_required_resolved_event = device_event
|
|
|
251
265
|
event_type: z.literal('device.error.subscription_required.resolved'),
|
|
252
266
|
})
|
|
253
267
|
.describe(
|
|
254
|
-
'A third-party subscription is active or no longer required to use all device features.',
|
|
268
|
+
'A third-party subscription is active or no longer required to use all [device](https://docs.seam.co/latest/core-concepts/devices) features.',
|
|
255
269
|
)
|
|
256
270
|
|
|
257
271
|
export type DeviceErrorSubscriptionRequiredResolvedEvent = z.infer<
|
|
@@ -262,7 +276,9 @@ export const device_accessory_keypad_connected_event = device_event
|
|
|
262
276
|
.extend({
|
|
263
277
|
event_type: z.literal('device.accessory_keypad_connected'),
|
|
264
278
|
})
|
|
265
|
-
.describe(
|
|
279
|
+
.describe(
|
|
280
|
+
'An accessory keypad was connected to a [device](https://docs.seam.co/latest/core-concepts/devices).',
|
|
281
|
+
)
|
|
266
282
|
|
|
267
283
|
export type DeviceAccessoryKeypadConnectedEvent = z.infer<
|
|
268
284
|
typeof device_accessory_keypad_connected_event
|
|
@@ -272,7 +288,9 @@ export const device_accessory_keypad_disconnected_event = device_event
|
|
|
272
288
|
.extend({
|
|
273
289
|
event_type: z.literal('device.accessory_keypad_disconnected'),
|
|
274
290
|
})
|
|
275
|
-
.describe(
|
|
291
|
+
.describe(
|
|
292
|
+
'An accessory keypad was disconnected from a [device](https://docs.seam.co/latest/core-concepts/devices).',
|
|
293
|
+
)
|
|
276
294
|
|
|
277
295
|
export type DeviceAccessoryKeypadDisconnectedEvent = z.infer<
|
|
278
296
|
typeof device_accessory_keypad_disconnected_event
|
|
@@ -303,18 +321,14 @@ export const noise_sensor_noise_threshold_triggered_event = device_event
|
|
|
303
321
|
'Name of the [noise threshold](https://docs.seam.co/latest/capability-guides/noise-sensors#what-is-a-threshold) that was triggered.',
|
|
304
322
|
),
|
|
305
323
|
// TODO: remove metadata from this event
|
|
306
|
-
noiseaware_metadata: z
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
title: Minut Metadata
|
|
315
|
-
---
|
|
316
|
-
Metadata from Minut.
|
|
317
|
-
`),
|
|
324
|
+
noiseaware_metadata: z
|
|
325
|
+
.record(z.unknown())
|
|
326
|
+
.optional()
|
|
327
|
+
.describe('Metadata from Noiseaware.'),
|
|
328
|
+
minut_metadata: z
|
|
329
|
+
.record(z.unknown())
|
|
330
|
+
.optional()
|
|
331
|
+
.describe('Metadata from Minut.'),
|
|
318
332
|
})
|
|
319
333
|
.describe(
|
|
320
334
|
'Extended periods of noise or noise exceeding a [threshold](https://docs.seam.co/latest/capability-guides/noise-sensors#what-is-a-threshold) were detected.',
|
|
@@ -342,10 +356,12 @@ export const lock_locked_event = device_event
|
|
|
342
356
|
'ID of the [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts) associated with the lock action.',
|
|
343
357
|
),
|
|
344
358
|
method: lock_method.describe(
|
|
345
|
-
'Method by which a lock device was locked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device.',
|
|
359
|
+
'Method by which a [lock device](https://docs.seam.co/latest/capability-guides/smart-locks) was locked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device.',
|
|
346
360
|
),
|
|
347
361
|
})
|
|
348
|
-
.describe(
|
|
362
|
+
.describe(
|
|
363
|
+
'A [lock](https://docs.seam.co/latest/capability-guides/smart-locks) was locked.',
|
|
364
|
+
)
|
|
349
365
|
|
|
350
366
|
export type LockLockedEvent = z.infer<typeof lock_locked_event>
|
|
351
367
|
|
|
@@ -367,10 +383,12 @@ export const lock_unlocked_event = device_event
|
|
|
367
383
|
'ID of the [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts) associated with the unlock action.',
|
|
368
384
|
),
|
|
369
385
|
method: lock_method.describe(
|
|
370
|
-
'Method by which a lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device.',
|
|
386
|
+
'Method by which a [lock device](https://docs.seam.co/latest/capability-guides/smart-locks) was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device.',
|
|
371
387
|
),
|
|
372
388
|
})
|
|
373
|
-
.describe(
|
|
389
|
+
.describe(
|
|
390
|
+
'A [lock](https://docs.seam.co/latest/capability-guides/smart-locks) was unlocked.',
|
|
391
|
+
)
|
|
374
392
|
|
|
375
393
|
export type LockUnlockedEvent = z.infer<typeof lock_unlocked_event>
|
|
376
394
|
|
|
@@ -386,7 +404,7 @@ export const lock_access_denied_event = device_event
|
|
|
386
404
|
),
|
|
387
405
|
})
|
|
388
406
|
.describe(
|
|
389
|
-
'The lock denied access to a user after one or more consecutive invalid attempts to unlock the device.',
|
|
407
|
+
'The [lock](https://docs.seam.co/latest/capability-guides/smart-locks) denied access to a user after one or more consecutive invalid attempts to unlock the device.',
|
|
390
408
|
)
|
|
391
409
|
|
|
392
410
|
export type LockAccessDeniedEvent = z.infer<typeof lock_access_denied_event>
|
|
@@ -409,7 +427,7 @@ export const thermostat_climate_preset_activated_event = device_event
|
|
|
409
427
|
is_fallback_climate_preset: z
|
|
410
428
|
.boolean()
|
|
411
429
|
.describe(
|
|
412
|
-
'Indicates whether the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) that was activated is the [fallback climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets/setting-the-fallback-climate-preset) for the thermostat.',
|
|
430
|
+
'Indicates whether the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) that was activated is the [fallback climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets/setting-the-fallback-climate-preset) for the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
413
431
|
),
|
|
414
432
|
})
|
|
415
433
|
.describe(
|
|
@@ -423,7 +441,7 @@ export type ThermostatClimatePresetActivatedEvent = z.infer<
|
|
|
423
441
|
export const thermostat_manually_adjusted_method = z
|
|
424
442
|
.enum(['seam', 'external'])
|
|
425
443
|
.describe(
|
|
426
|
-
'Method used to adjust the thermostat manually. `seam` indicates that the Seam API, Seam CLI, or Seam Console was used to adjust the thermostat.',
|
|
444
|
+
'Method used to adjust the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) manually. `seam` indicates that the Seam API, Seam CLI, or Seam Console was used to adjust the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
427
445
|
)
|
|
428
446
|
|
|
429
447
|
export const thermostat_manually_adjusted_event = device_event
|
|
@@ -441,7 +459,9 @@ export const thermostat_manually_adjusted_event = device_event
|
|
|
441
459
|
heating_set_point_fahrenheit: true,
|
|
442
460
|
}),
|
|
443
461
|
)
|
|
444
|
-
.describe(
|
|
462
|
+
.describe(
|
|
463
|
+
'A [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) was adjusted manually.',
|
|
464
|
+
)
|
|
445
465
|
|
|
446
466
|
export type ThermostatManuallyAdjustedEvent = z.infer<
|
|
447
467
|
typeof thermostat_manually_adjusted_event
|
|
@@ -452,10 +472,14 @@ export const temperature_threshold_exceeded_event = device_event
|
|
|
452
472
|
event_type: z.literal('thermostat.temperature_threshold_exceeded'),
|
|
453
473
|
temperature_celsius: z
|
|
454
474
|
.number()
|
|
455
|
-
.describe(
|
|
475
|
+
.describe(
|
|
476
|
+
'Temperature, in °C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
477
|
+
),
|
|
456
478
|
temperature_fahrenheit: z
|
|
457
479
|
.number()
|
|
458
|
-
.describe(
|
|
480
|
+
.describe(
|
|
481
|
+
'Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
482
|
+
),
|
|
459
483
|
upper_limit_celsius: z
|
|
460
484
|
.number()
|
|
461
485
|
.nullable()
|
|
@@ -482,7 +506,7 @@ export const temperature_threshold_exceeded_event = device_event
|
|
|
482
506
|
),
|
|
483
507
|
})
|
|
484
508
|
.describe(
|
|
485
|
-
"A thermostat's temperature reading exceeded the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds).",
|
|
509
|
+
"A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) temperature reading exceeded the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds).",
|
|
486
510
|
)
|
|
487
511
|
|
|
488
512
|
export type TemperatureThresholdExceededEvent = z.infer<
|
|
@@ -496,10 +520,14 @@ export const temperature_threshold_no_longer_exceeded_event = device_event
|
|
|
496
520
|
),
|
|
497
521
|
temperature_celsius: z
|
|
498
522
|
.number()
|
|
499
|
-
.describe(
|
|
523
|
+
.describe(
|
|
524
|
+
'Temperature, in °C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
525
|
+
),
|
|
500
526
|
temperature_fahrenheit: z
|
|
501
527
|
.number()
|
|
502
|
-
.describe(
|
|
528
|
+
.describe(
|
|
529
|
+
'Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).',
|
|
530
|
+
),
|
|
503
531
|
upper_limit_celsius: z
|
|
504
532
|
.number()
|
|
505
533
|
.nullable()
|
|
@@ -526,7 +554,7 @@ export const temperature_threshold_no_longer_exceeded_event = device_event
|
|
|
526
554
|
),
|
|
527
555
|
})
|
|
528
556
|
.describe(
|
|
529
|
-
"A thermostat's temperature reading no longer exceeds the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds).",
|
|
557
|
+
"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).",
|
|
530
558
|
)
|
|
531
559
|
|
|
532
560
|
export type TemperatureThresholdNoLongerExceededEvent = z.infer<
|
|
@@ -3,19 +3,21 @@ import { z } from 'zod'
|
|
|
3
3
|
import { common_event } from './common.js'
|
|
4
4
|
|
|
5
5
|
const enrollment_automation_event = common_event.extend({
|
|
6
|
-
enrollment_automation_id: z
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
enrollment_automation_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.uuid()
|
|
9
|
+
.describe(
|
|
10
|
+
'ID of the [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).',
|
|
11
|
+
),
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
export const enrollment_automation_deleted_event = enrollment_automation_event
|
|
15
15
|
.extend({
|
|
16
16
|
event_type: z.literal('enrollment_automation.deleted'),
|
|
17
17
|
})
|
|
18
|
-
.describe(
|
|
18
|
+
.describe(
|
|
19
|
+
'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.',
|
|
20
|
+
)
|
|
19
21
|
|
|
20
22
|
export type EnrollmentAutomationDeletedEvent = z.infer<
|
|
21
23
|
typeof enrollment_automation_deleted_event
|
|
@@ -3,12 +3,12 @@ import { z } from 'zod'
|
|
|
3
3
|
import { common_event } from './common.js'
|
|
4
4
|
|
|
5
5
|
const phone_event = common_event.extend({
|
|
6
|
-
device_id: z
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
device_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.uuid()
|
|
9
|
+
.describe(
|
|
10
|
+
'ID of the [device](https://docs.seam.co/latest/core-concepts/devices).',
|
|
11
|
+
),
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
export const phone_deactivated_event = phone_event
|