diff --git a/package-lock.json b/package-lock.json index 56046b61..bf0b449b 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.1132.0", + "@seamapi/types": "1.1135.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.1132.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1132.0.tgz", - "integrity": "sha512-Tezm8KLN1y8mXom5F4K1dIlqICJvAzp5UnwAWupzHuZ4u77ILzEpDItww3qOOmCmFZ5VanUVoUATJ3IEi+vdYw==", + "version": "1.1135.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1135.0.tgz", + "integrity": "sha512-qjaxJWtCqQl3QVbJeKlb0tfQuaQ149uTdlhJztOg1CMiaXWmaLIqZ54R2qN7KbBzPov6ClAws6mm1SNlNdGeAA==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 6194bbaa..97c31e12 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.1132.0", + "@seamapi/types": "1.1135.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", diff --git a/src/lib/resources/access-method.ts b/src/lib/resources/access-method.ts index 5247ea21..28abb49e 100644 --- a/src/lib/resources/access-method.ts +++ b/src/lib/resources/access-method.ts @@ -407,6 +407,24 @@ export type AccessMethod = { * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable' + } /** + * Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends. + */ + | { + /** + * Date and time at which Seam created the warning. + */ + created_at: string + + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + message: string + + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + */ + warning_code: 'schedule_rounded_up' } > diff --git a/src/lib/resources/acs-credential.ts b/src/lib/resources/acs-credential.ts index 8a159e1f..6552f59f 100644 --- a/src/lib/resources/acs-credential.ts +++ b/src/lib/resources/acs-credential.ts @@ -362,6 +362,24 @@ export type AcsCredential = { * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable' + } /** + * Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends. + */ + | { + /** + * Date and time at which Seam created the warning. + */ + created_at: string + + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + message: string + + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + */ + warning_code: 'schedule_rounded_up' } > diff --git a/src/lib/resources/action-attempt.ts b/src/lib/resources/action-attempt.ts index b4c32d26..59844436 100644 --- a/src/lib/resources/action-attempt.ts +++ b/src/lib/resources/action-attempt.ts @@ -505,6 +505,7 @@ export type ActionAttempt = | 'unknown_issue_with_acs_credential' | 'needs_to_be_reissued' | 'requested_code_unavailable' + | 'schedule_rounded_up' /** * The PIN code that was assigned instead. @@ -845,6 +846,7 @@ export type ActionAttempt = | 'unknown_issue_with_acs_credential' | 'needs_to_be_reissued' | 'requested_code_unavailable' + | 'schedule_rounded_up' /** * The PIN code that was assigned instead. @@ -1174,6 +1176,7 @@ export type ActionAttempt = | 'unknown_issue_with_acs_credential' | 'needs_to_be_reissued' | 'requested_code_unavailable' + | 'schedule_rounded_up' /** * The PIN code that was assigned instead. @@ -1427,6 +1430,7 @@ export type ActionAttempt = | 'user_identity_missing_email_address' | 'user_identity_missing_phone_number' | 'requested_code_unavailable' + | 'schedule_rounded_up' /** * ID of the original access method from which this backup access method was split, if applicable. diff --git a/src/lib/resources/device-provider.ts b/src/lib/resources/device-provider.ts index 1ef0ed09..ff1adb53 100644 --- a/src/lib/resources/device-provider.ts +++ b/src/lib/resources/device-provider.ts @@ -164,6 +164,7 @@ export type DeviceProvider = { | 'omnitec' | 'kisi' | 'aqara' + | 'eufy' | 'sonos' /** diff --git a/src/lib/resources/device.ts b/src/lib/resources/device.ts index 36379726..2609e1ec 100644 --- a/src/lib/resources/device.ts +++ b/src/lib/resources/device.ts @@ -207,6 +207,7 @@ export type Device = { | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' + | 'eufy_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' @@ -1130,6 +1131,18 @@ export type Device = { ecobee_device_id?: string | undefined } | undefined + /** + * Metadata for a Eufy device. + */ + eufy_metadata?: + | { + device_id?: string | undefined + + device_name?: string | undefined + + model?: string | undefined + } + | undefined /** * Metadata for a 4SUITES device. */ diff --git a/src/lib/resources/unmanaged-access-method.ts b/src/lib/resources/unmanaged-access-method.ts index 2931f5d6..7217b5f5 100644 --- a/src/lib/resources/unmanaged-access-method.ts +++ b/src/lib/resources/unmanaged-access-method.ts @@ -395,6 +395,24 @@ export type UnmanagedAccessMethod = { * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable' + } /** + * Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends. + */ + | { + /** + * Date and time at which Seam created the warning. + */ + created_at: string + + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + message: string + + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + */ + warning_code: 'schedule_rounded_up' } > diff --git a/src/lib/resources/unmanaged-device.ts b/src/lib/resources/unmanaged-device.ts index febaab89..5666103a 100644 --- a/src/lib/resources/unmanaged-device.ts +++ b/src/lib/resources/unmanaged-device.ts @@ -162,6 +162,7 @@ export type UnmanagedDevice = { | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' + | 'eufy_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' diff --git a/src/lib/routes/connect-webviews/connect-webviews.ts b/src/lib/routes/connect-webviews/connect-webviews.ts index 1e02d82b..d75cb132 100644 --- a/src/lib/routes/connect-webviews/connect-webviews.ts +++ b/src/lib/routes/connect-webviews/connect-webviews.ts @@ -340,6 +340,7 @@ export type ConnectWebviewsCreateParameters = { | 'omnitec' | 'kisi' | 'aqara' + | 'eufy' | 'sonos' | 'yale_access' | 'hid_cm' diff --git a/src/lib/routes/devices/devices.ts b/src/lib/routes/devices/devices.ts index 02af575b..bad4188f 100644 --- a/src/lib/routes/devices/devices.ts +++ b/src/lib/routes/devices/devices.ts @@ -371,6 +371,7 @@ export type DevicesListParameters = { | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' + | 'eufy_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' @@ -424,6 +425,7 @@ export type DevicesListParameters = { | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' + | 'eufy_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' diff --git a/src/lib/routes/devices/unmanaged/unmanaged.ts b/src/lib/routes/devices/unmanaged/unmanaged.ts index 9092b32c..be23e60d 100644 --- a/src/lib/routes/devices/unmanaged/unmanaged.ts +++ b/src/lib/routes/devices/unmanaged/unmanaged.ts @@ -318,6 +318,7 @@ export type DevicesUnmanagedListParameters = { | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' + | 'eufy_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' @@ -371,6 +372,7 @@ export type DevicesUnmanagedListParameters = { | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' + | 'eufy_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' diff --git a/src/lib/routes/locks/locks.ts b/src/lib/routes/locks/locks.ts index 8c25a1ac..38a1e5cc 100644 --- a/src/lib/routes/locks/locks.ts +++ b/src/lib/routes/locks/locks.ts @@ -389,6 +389,7 @@ export type LocksListParameters = { | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' + | 'eufy_lock' | undefined /** * Device types of the locks that you want to list. @@ -426,6 +427,7 @@ export type LocksListParameters = { | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' + | 'eufy_lock' > | undefined /**