From ed772f2c882970a10db577bd57dd4e0db112bd6c Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 6 Nov 2026 18:44:22 +0000 Subject: [PATCH] feat: Update to @seamapi/types@1.1183.0 --- package-lock.json | 8 +- package.json | 2 +- src/lib/resources/device-provider.ts | 3 + src/lib/resources/device.ts | 32 ++++ src/lib/resources/event.ts | 150 ++++++++++++++++++ src/lib/resources/unmanaged-device.ts | 1 + .../connect-webviews/connect-webviews.ts | 4 +- src/lib/routes/devices/devices.ts | 3 + src/lib/routes/devices/unmanaged/unmanaged.ts | 3 + src/lib/routes/events/events.ts | 6 + src/lib/routes/locks/locks.ts | 3 + 11 files changed, 209 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 18e2e9bf..5061f5a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^1.10.0", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1174.0", + "@seamapi/types": "1.1183.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", @@ -1133,9 +1133,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1174.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1174.0.tgz", - "integrity": "sha512-8BtPRk7ffQpsep8fE+USmNzRqa21hrdIONVBmj1F1tYlfYtmaijuyzsaTyQTJnjpTzCdEgy1TIglY6tV7pRPIw==", + "version": "1.1183.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1183.0.tgz", + "integrity": "sha512-VLfF7zzCp56OnLgHBnfd23WFTN2BPydKyFxQ3pd7UFGh6Ecb13gIUSFK30ZV2r1VRj8auqghbMfW+j6Q5rhj7w==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 745bc9bf..3c3e5946 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "@seamapi/blueprint": "^1.10.0", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1174.0", + "@seamapi/types": "1.1183.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", diff --git a/src/lib/resources/device-provider.ts b/src/lib/resources/device-provider.ts index fc0a0566..126fd1d8 100644 --- a/src/lib/resources/device-provider.ts +++ b/src/lib/resources/device-provider.ts @@ -107,6 +107,8 @@ export type DeviceProvider = { | 'schlage' | 'smartthings' | 'yale' + | 'yale_access' + | 'yale_home' | 'genie' | 'doorking' | 'salto' @@ -157,6 +159,7 @@ export type DeviceProvider = { | 'arlo' | 'reolink' | 'unifi_protect' + | 'yale_connect' | 'ical' | 'lodgify' | 'hostaway' diff --git a/src/lib/resources/device.ts b/src/lib/resources/device.ts index 50b6572d..ee4ca259 100644 --- a/src/lib/resources/device.ts +++ b/src/lib/resources/device.ts @@ -195,6 +195,7 @@ export type Device = { | 'yale_lock' | 'yale_access_lock' | 'yale_home_lock' + | 'yale_connect_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' @@ -2166,6 +2167,37 @@ export type Device = { serial_number?: string | undefined } | undefined + /** + * Metadata for a Yale Connect lock. + */ + yale_connect_metadata?: + | { + /** + * Device ID for a Yale Connect lock. + */ + device_id?: string | undefined + /** + * Device name for a Yale Connect lock. + */ + device_name?: string | undefined + /** + * Firmware version reported by the Yale Connect lock. + */ + firmware_version?: string | undefined + /** + * Name of the Yale Connect home that contains the lock. + */ + home_name?: string | undefined + /** + * Model reported by the Yale Connect lock. + */ + model?: string | undefined + /** + * Time zone of the Yale Connect home, as Yale reports it. + */ + time_zone_description?: string | undefined + } + | undefined /** * The delay in seconds before the lock automatically locks after being unlocked. */ diff --git a/src/lib/resources/event.ts b/src/lib/resources/event.ts index ec57ad54..bc8931d5 100644 --- a/src/lib/resources/event.ts +++ b/src/lib/resources/event.ts @@ -5836,6 +5836,156 @@ export type SeamEvent = */ workspace_id: string } + | { + /** + * Custom metadata of the connected account, present when connected_account_id is provided. + */ + connected_account_custom_metadata?: + Record | undefined + /** + * ID of the connected account associated with the event. + */ + connected_account_id: string + + /** + * Date and time at which the event was created. + */ + created_at: string + + /** + * The customer key associated with the device, if any. + */ + customer_key?: string | undefined + /** + * Custom metadata of the device, present when device_id is provided. + */ + device_custom_metadata?: Record | undefined + /** + * ID of the affected device. + */ + device_id: string + + /** + * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. + */ + event_description?: string | undefined + /** + * ID of the event. + */ + event_id: string + + event_type: 'lock.jammed' + + /** + * Date and time at which the event occurred. + */ + occurred_at: string + + /** + * ID of the workspace associated with the event. + */ + workspace_id: string + } + | { + /** + * Custom metadata of the connected account, present when connected_account_id is provided. + */ + connected_account_custom_metadata?: + Record | undefined + /** + * ID of the connected account associated with the event. + */ + connected_account_id: string + + /** + * Date and time at which the event was created. + */ + created_at: string + + /** + * The customer key associated with the device, if any. + */ + customer_key?: string | undefined + /** + * Custom metadata of the device, present when device_id is provided. + */ + device_custom_metadata?: Record | undefined + /** + * ID of the affected device. + */ + device_id: string + + /** + * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. + */ + event_description?: string | undefined + /** + * ID of the event. + */ + event_id: string + + event_type: 'lock.door_opened' + + /** + * Date and time at which the event occurred. + */ + occurred_at: string + + /** + * ID of the workspace associated with the event. + */ + workspace_id: string + } + | { + /** + * Custom metadata of the connected account, present when connected_account_id is provided. + */ + connected_account_custom_metadata?: + Record | undefined + /** + * ID of the connected account associated with the event. + */ + connected_account_id: string + + /** + * Date and time at which the event was created. + */ + created_at: string + + /** + * The customer key associated with the device, if any. + */ + customer_key?: string | undefined + /** + * Custom metadata of the device, present when device_id is provided. + */ + device_custom_metadata?: Record | undefined + /** + * ID of the affected device. + */ + device_id: string + + /** + * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. + */ + event_description?: string | undefined + /** + * ID of the event. + */ + event_id: string + + event_type: 'lock.door_closed' + + /** + * Date and time at which the event occurred. + */ + occurred_at: string + + /** + * ID of the workspace associated with the event. + */ + workspace_id: string + } | { /** * Key of the climate preset that was activated. diff --git a/src/lib/resources/unmanaged-device.ts b/src/lib/resources/unmanaged-device.ts index 7b48e620..c9eb1fcb 100644 --- a/src/lib/resources/unmanaged-device.ts +++ b/src/lib/resources/unmanaged-device.ts @@ -150,6 +150,7 @@ export type UnmanagedDevice = { | 'yale_lock' | 'yale_access_lock' | 'yale_home_lock' + | 'yale_connect_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' diff --git a/src/lib/routes/connect-webviews/connect-webviews.ts b/src/lib/routes/connect-webviews/connect-webviews.ts index 57ad65ee..2dfc7524 100644 --- a/src/lib/routes/connect-webviews/connect-webviews.ts +++ b/src/lib/routes/connect-webviews/connect-webviews.ts @@ -283,6 +283,8 @@ export type ConnectWebviewsCreateParameters = { | 'schlage' | 'smartthings' | 'yale' + | 'yale_access' + | 'yale_home' | 'genie' | 'doorking' | 'salto' @@ -333,6 +335,7 @@ export type ConnectWebviewsCreateParameters = { | 'arlo' | 'reolink' | 'unifi_protect' + | 'yale_connect' | 'ical' | 'lodgify' | 'hostaway' @@ -343,7 +346,6 @@ export type ConnectWebviewsCreateParameters = { | 'aqara' | 'eufy' | 'sonos' - | 'yale_access' | 'hid_cm' | 'google_nest' | 'slack' diff --git a/src/lib/routes/devices/devices.ts b/src/lib/routes/devices/devices.ts index c25113cc..7bc3f963 100644 --- a/src/lib/routes/devices/devices.ts +++ b/src/lib/routes/devices/devices.ts @@ -359,6 +359,7 @@ export type DevicesListParameters = { | 'yale_lock' | 'yale_access_lock' | 'yale_home_lock' + | 'yale_connect_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' @@ -416,6 +417,7 @@ export type DevicesListParameters = { | 'yale_lock' | 'yale_access_lock' | 'yale_home_lock' + | 'yale_connect_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' @@ -508,6 +510,7 @@ export type DevicesListParameters = { | 'arlo' | 'reolink' | 'unifi_protect' + | 'yale_connect' | 'ical' | 'lodgify' | 'hostaway' diff --git a/src/lib/routes/devices/unmanaged/unmanaged.ts b/src/lib/routes/devices/unmanaged/unmanaged.ts index d1f89a33..bee17832 100644 --- a/src/lib/routes/devices/unmanaged/unmanaged.ts +++ b/src/lib/routes/devices/unmanaged/unmanaged.ts @@ -306,6 +306,7 @@ export type DevicesUnmanagedListParameters = { | 'yale_lock' | 'yale_access_lock' | 'yale_home_lock' + | 'yale_connect_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' @@ -363,6 +364,7 @@ export type DevicesUnmanagedListParameters = { | 'yale_lock' | 'yale_access_lock' | 'yale_home_lock' + | 'yale_connect_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' @@ -455,6 +457,7 @@ export type DevicesUnmanagedListParameters = { | 'arlo' | 'reolink' | 'unifi_protect' + | 'yale_connect' | 'ical' | 'lodgify' | 'hostaway' diff --git a/src/lib/routes/events/events.ts b/src/lib/routes/events/events.ts index ee26cfb2..4b4994c4 100644 --- a/src/lib/routes/events/events.ts +++ b/src/lib/routes/events/events.ts @@ -444,6 +444,9 @@ export type EventsListParameters = RequireAtLeastOne< | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' + | 'lock.jammed' + | 'lock.door_opened' + | 'lock.door_closed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' @@ -564,6 +567,9 @@ export type EventsListParameters = RequireAtLeastOne< | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' + | 'lock.jammed' + | 'lock.door_opened' + | 'lock.door_closed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' diff --git a/src/lib/routes/locks/locks.ts b/src/lib/routes/locks/locks.ts index b8dcf7d8..f84eff88 100644 --- a/src/lib/routes/locks/locks.ts +++ b/src/lib/routes/locks/locks.ts @@ -377,6 +377,7 @@ export type LocksListParameters = { | 'yale_lock' | 'yale_access_lock' | 'yale_home_lock' + | 'yale_connect_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' @@ -417,6 +418,7 @@ export type LocksListParameters = { | 'yale_lock' | 'yale_access_lock' | 'yale_home_lock' + | 'yale_connect_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' @@ -470,6 +472,7 @@ export type LocksListParameters = { | 'lockly' | 'smartthings' | 'ultraloq' + | 'yale_connect' | 'omnitec' | 'kisi' | 'yacan'