From 32ba3c8839ec3ec2f7a09ad6f80d546a299e9c83 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 20 Aug 2026 23:38:00 +0000 Subject: [PATCH] feat: Update to @seamapi/types@1.1036.0 --- package-lock.json | 8 ++++---- package.json | 2 +- src/lib/resources/access-code.ts | 21 ++------------------- src/lib/resources/unmanaged-access-code.ts | 21 ++------------------- src/lib/routes/events/events.ts | 6 ++---- 5 files changed, 11 insertions(+), 47 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1d111ee8..b3fe5f80 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^1.8.0", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1034.0", + "@seamapi/types": "1.1036.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.1034.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1034.0.tgz", - "integrity": "sha512-lFw1r32E3bfSfHYv/ATadTFfubtOo2Vuf9Om88g0yBz85HOusqtl31hniK4oDXQWIacb8HTUpI69dOlzubSqqQ==", + "version": "1.1036.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1036.0.tgz", + "integrity": "sha512-fPuzCjzptal6UDQAngLrkrDohtOvv4sRRrUybaaTQLjCCVUqkhiZ0cXwAZEG7f1TPpNVczGAG6cbJJUqfSl2bw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index d40d19b3..9b35b9ce 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "@seamapi/blueprint": "^1.8.0", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1034.0", + "@seamapi/types": "1.1036.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", diff --git a/src/lib/resources/access-code.ts b/src/lib/resources/access-code.ts index ac32d25b..9e30d723 100644 --- a/src/lib/resources/access-code.ts +++ b/src/lib/resources/access-code.ts @@ -319,7 +319,7 @@ export type AccessCode = { */ message: string } /** - * Seam was unable to apply this access code's pending mutations to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the mutations are applied. + * Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied. */ | { /** @@ -329,7 +329,7 @@ export type AccessCode = { /** * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'failed_to_apply_mutations' + error_code: 'failed_to_update' /** * Indicates that this is an access code error. @@ -1088,23 +1088,6 @@ export type AccessCode = { */ warning_code: 'delay_in_issuing' } /** - * Seam has not yet applied this access code's pending mutations to the device, so the code on the device does not yet match its requested state. Seam is still attempting to apply them, and this warning clears automatically once the mutations are applied. - */ - | { - /** - * Date and time at which Seam created the warning. - */ - created_at?: string | undefined - /** - * 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: 'delay_in_applying_mutations' - } /** * Third-party integration detected that may cause access codes to fail. */ | { diff --git a/src/lib/resources/unmanaged-access-code.ts b/src/lib/resources/unmanaged-access-code.ts index bbfe89b9..2be1339e 100644 --- a/src/lib/resources/unmanaged-access-code.ts +++ b/src/lib/resources/unmanaged-access-code.ts @@ -325,7 +325,7 @@ export type UnmanagedAccessCode = { */ message: string } /** - * Seam was unable to apply this access code's pending mutations to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the mutations are applied. + * Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied. */ | { /** @@ -335,7 +335,7 @@ export type UnmanagedAccessCode = { /** * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'failed_to_apply_mutations' + error_code: 'failed_to_update' /** * Indicates that this is an access code error. @@ -870,23 +870,6 @@ export type UnmanagedAccessCode = { */ warning_code: 'delay_in_issuing' } /** - * Seam has not yet applied this access code's pending mutations to the device, so the code on the device does not yet match its requested state. Seam is still attempting to apply them, and this warning clears automatically once the mutations are applied. - */ - | { - /** - * Date and time at which Seam created the warning. - */ - created_at?: string | undefined - /** - * 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: 'delay_in_applying_mutations' - } /** * Third-party integration detected that may cause access codes to fail. */ | { diff --git a/src/lib/routes/events/events.ts b/src/lib/routes/events/events.ts index 90713eb7..1823cd96 100644 --- a/src/lib/routes/events/events.ts +++ b/src/lib/routes/events/events.ts @@ -321,8 +321,7 @@ export type EventsListParameters = RequireAtLeastOne<{ | 'access_code.issued' | 'access_code.delay_in_issuing' | 'access_code.failed_to_issue' - | 'access_code.delay_in_applying_mutations' - | 'access_code.failed_to_apply_mutations' + | 'access_code.failed_to_update' | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' @@ -442,8 +441,7 @@ export type EventsListParameters = RequireAtLeastOne<{ | 'access_code.issued' | 'access_code.delay_in_issuing' | 'access_code.failed_to_issue' - | 'access_code.delay_in_applying_mutations' - | 'access_code.failed_to_apply_mutations' + | 'access_code.failed_to_update' | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device'