From 11fa80463bd2f0439efc9f80cb0c1ae356aad42a Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 25 May 2026 23:17:25 +0000 Subject: [PATCH] feat: Sync with Seam API via 68a06e480121df574baf08890d6e932ba9c6c318 --- src/lib/seam/connect/models/acs/acs-system.ts | 14 +++++ src/lib/seam/connect/openapi.ts | 25 +++++++++ src/lib/seam/connect/route-types.ts | 56 +++++++++++++++++++ 3 files changed, 95 insertions(+) diff --git a/src/lib/seam/connect/models/acs/acs-system.ts b/src/lib/seam/connect/models/acs/acs-system.ts index 5f96e3b7..7ee7ace9 100644 --- a/src/lib/seam/connect/models/acs/acs-system.ts +++ b/src/lib/seam/connect/models/acs/acs-system.ts @@ -116,6 +116,16 @@ const salto_ks_certification_expired = common_acs_system_error .describe( 'Indicates that the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access.', ) +const provider_service_unavailable = common_acs_system_error + .extend({ + error_code: z + .literal('provider_service_unavailable') + .describe(error_code_description), + }) + .describe( + "Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.", + ) + const acs_system_error = z .discriminatedUnion('error_code', [ seam_bridge_disconnected, @@ -125,6 +135,7 @@ const acs_system_error = z acs_system_disconnected, account_disconnected, salto_ks_certification_expired, + provider_service_unavailable, ]) .describe( 'Error associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).', @@ -144,6 +155,9 @@ const _acs_system_error_map = z.object({ salto_ks_certification_expired: salto_ks_certification_expired .optional() .nullable(), + provider_service_unavailable: provider_service_unavailable + .optional() + .nullable(), }) export type AcsSystemErrorMap = z.infer diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index e98f61f5..695690eb 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -4952,6 +4952,31 @@ const openapi: OpenAPISpec = { required: ['created_at', 'message', 'error_code'], type: 'object', }, + { + description: + "Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.", + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['provider_service_unavailable'], + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, ], }, type: 'array', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 0b9cbe95..1004b373 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -15193,6 +15193,14 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired' } + | { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'provider_service_unavailable' + } )[] /** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */ warnings: ( @@ -30250,6 +30258,14 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired' } + | { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'provider_service_unavailable' + } )[] /** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */ warnings: ( @@ -30435,6 +30451,14 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired' } + | { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'provider_service_unavailable' + } )[] /** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */ warnings: ( @@ -30616,6 +30640,14 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired' } + | { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'provider_service_unavailable' + } )[] /** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */ warnings: ( @@ -85204,6 +85236,14 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired' } + | { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'provider_service_unavailable' + } )[] /** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */ warnings: ( @@ -109490,6 +109530,14 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired' } + | { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'provider_service_unavailable' + } )[] /** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */ warnings: ( @@ -112482,6 +112530,14 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired' } + | { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'provider_service_unavailable' + } )[] /** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */ warnings: (