Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/lib/seam/connect/models/acs/acs-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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).',
Expand All @@ -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<typeof _acs_system_error_map>
Expand Down
25 changes: 25 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
56 changes: 56 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
Expand Down Expand Up @@ -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: (
Expand Down Expand Up @@ -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: (
Expand Down Expand Up @@ -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: (
Expand Down Expand Up @@ -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: (
Expand Down Expand Up @@ -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: (
Expand Down Expand Up @@ -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: (
Expand Down
Loading