From 4c12ec0c1ff3baef8b2cd8e187dc3cb42a5a6921 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 6 Jul 2026 23:55:44 +0000 Subject: [PATCH] feat: Sync with Seam API via c9eb56c0fc6b745e9e38559d7333a23b35167d39 --- src/lib/seam/connect/internal/model-types.ts | 1 + .../access-codes/managed-access-code.ts | 12 --- src/lib/seam/connect/openapi.ts | 50 ----------- src/lib/seam/connect/route-types.ts | 88 ------------------- 4 files changed, 1 insertion(+), 150 deletions(-) diff --git a/src/lib/seam/connect/internal/model-types.ts b/src/lib/seam/connect/internal/model-types.ts index 037d6263b..a66ad5357 100644 --- a/src/lib/seam/connect/internal/model-types.ts +++ b/src/lib/seam/connect/internal/model-types.ts @@ -1,3 +1,4 @@ +export type { AccessCodeMutationsRequestedEvent } from '../models/events/access-codes.js' export type { SeamEvent, SeamEventType } from '../models/events/seam-event.js' export type { AccessCode as ManagedAccessCode, diff --git a/src/lib/seam/connect/models/access-codes/managed-access-code.ts b/src/lib/seam/connect/models/access-codes/managed-access-code.ts index b1ba07a8f..469692321 100644 --- a/src/lib/seam/connect/models/access-codes/managed-access-code.ts +++ b/src/lib/seam/connect/models/access-codes/managed-access-code.ts @@ -331,16 +331,6 @@ const management_transferred = common_access_code_warning }) .describe('Management was transferred to another workspace.') -const access_code_inactive = common_access_code_warning - .extend({ - warning_code: z - .literal('access_code_inactive') - .describe(warning_code_description), - }) - .describe( - 'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.', - ) - const using_backup_access_code = common_access_code_warning .extend({ warning_code: z @@ -367,7 +357,6 @@ const access_code_warning = z third_party_integration_detected, igloo_algopin_must_be_used_within_24_hours, management_transferred, - access_code_inactive, using_backup_access_code, being_deleted, ]) @@ -394,7 +383,6 @@ const _access_code_warning_map = z.object({ igloo_algopin_must_be_used_within_24_hours: igloo_algopin_must_be_used_within_24_hours.optional().nullable(), management_transferred: management_transferred.optional().nullable(), - access_code_inactive: access_code_inactive.optional().nullable(), using_backup_access_code: using_backup_access_code.optional().nullable(), being_deleted: being_deleted.optional().nullable(), }) diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index eecb1dd85..c4ec6d25e 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -1709,31 +1709,6 @@ const openapi: OpenAPISpec = { required: ['message', 'warning_code'], type: 'object', }, - { - description: - 'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.', - properties: { - created_at: { - description: - 'Date and time at which Seam created the warning.', - format: 'date-time', - type: 'string', - }, - message: { - description: - 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', - type: 'string', - }, - warning_code: { - description: - 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['access_code_inactive'], - type: 'string', - }, - }, - required: ['message', 'warning_code'], - type: 'object', - }, { description: 'A backup access code has been pulled and is being used in place of this access code.', @@ -30091,31 +30066,6 @@ const openapi: OpenAPISpec = { required: ['message', 'warning_code'], type: 'object', }, - { - description: - 'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.', - properties: { - created_at: { - description: - 'Date and time at which Seam created the warning.', - format: 'date-time', - type: 'string', - }, - message: { - description: - 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', - type: 'string', - }, - warning_code: { - description: - 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['access_code_inactive'], - type: 'string', - }, - }, - required: ['message', 'warning_code'], - type: 'object', - }, { description: 'A backup access code has been pulled and is being used in place of this access code.', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 02cf70d9d..9427a1e66 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -2387,14 +2387,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -2980,14 +2972,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -5527,14 +5511,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6207,14 +6183,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6791,14 +6759,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7352,14 +7312,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7946,14 +7898,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10395,14 +10339,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10868,14 +10804,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -140174,14 +140102,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -140633,14 +140553,6 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred' } - | { - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Date and time at which Seam created the warning. */ - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'access_code_inactive' - } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string