@seamapi/types 1.192.0 → 1.194.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.192.0",
3
+ "version": "1.194.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -326,6 +326,17 @@ export const lock_unlocked_event = device_event
326
326
 
327
327
  export type LockUnlockedEvent = z.infer<typeof lock_unlocked_event>
328
328
 
329
+ export const lock_access_denied_event = device_event
330
+ .extend({
331
+ event_type: z.literal('lock.access_denied'),
332
+ access_code_id: z.string().uuid().optional(),
333
+ })
334
+ .describe(
335
+ 'The lock denied access to a user after one or more consecutive invalid attempts to unlock the device.',
336
+ )
337
+
338
+ export type LockAccessDeniedEvent = z.infer<typeof lock_access_denied_event>
339
+
329
340
  export const device_events = [
330
341
  device_connected_event,
331
342
  device_converted_to_unmanaged_event,
@@ -351,4 +362,5 @@ export const device_events = [
351
362
  noise_sensor_noise_threshold_triggered_event,
352
363
  lock_locked_event,
353
364
  lock_unlocked_event,
365
+ lock_access_denied_event,
354
366
  ] as const