From d14253785d756df98c1fe9c9edd1baf53f8cbd28 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 22 May 2026 21:34:08 +0000 Subject: [PATCH] feat: Sync with Seam API via df37304a186bb5cdd405f2554392068a90b122b3 --- .../connect/models/acs/acs-access-group.ts | 1 + .../seam/connect/models/acs/acs-entrance.ts | 12 + src/lib/seam/connect/openapi.ts | 58 ++++ src/lib/seam/connect/route-types.ts | 300 +++++++++++++----- 4 files changed, 283 insertions(+), 88 deletions(-) diff --git a/src/lib/seam/connect/models/acs/acs-access-group.ts b/src/lib/seam/connect/models/acs/acs-access-group.ts index d836a1f5..38611b4e 100644 --- a/src/lib/seam/connect/models/acs/acs-access-group.ts +++ b/src/lib/seam/connect/models/acs/acs-access-group.ts @@ -12,6 +12,7 @@ export const acs_access_group_external_type = z.enum([ 'salto_space_group', 'dormakaba_community_access_group', 'dormakaba_ambiance_access_group', + 'avigilon_alta_group', ]) export type AcsAccessGroupExternalType = z.infer< diff --git a/src/lib/seam/connect/models/acs/acs-entrance.ts b/src/lib/seam/connect/models/acs/acs-entrance.ts index bce3008f..205839b4 100644 --- a/src/lib/seam/connect/models/acs/acs-entrance.ts +++ b/src/lib/seam/connect/models/acs/acs-entrance.ts @@ -39,9 +39,20 @@ const salto_ks_entrance_access_code_support_removed = 'Indicates that a change in the reported device model has been detected for this Salto KS entrance, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.', ) +const entrance_shares_zone = common_acs_entrance_warning + .extend({ + warning_code: z + .literal('entrance_shares_zone') + .describe(warning_code_description), + }) + .describe( + 'Indicates that this entrance shares a zone with other entrances in Avigilon Alta and cannot be added to an access group individually.', + ) + const acs_entrance_warning = z .discriminatedUnion('warning_code', [ salto_ks_entrance_access_code_support_removed, + entrance_shares_zone, ]) .describe( 'Warning associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).', @@ -50,6 +61,7 @@ const acs_entrance_warning = z const _acs_entrance_warning_map = z.object({ salto_ks_entrance_access_code_support_removed: salto_ks_entrance_access_code_support_removed.optional().nullable(), + entrance_shares_zone: entrance_shares_zone.optional().nullable(), }) export type AcsEntranceWarningMap = z.infer diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 1a00960f..e98f61f5 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -3150,6 +3150,7 @@ const openapi: OpenAPISpec = { 'salto_space_group', 'dormakaba_community_access_group', 'dormakaba_ambiance_access_group', + 'avigilon_alta_group', ], type: 'string', 'x-deprecated': 'Use `external_type`.', @@ -3249,6 +3250,7 @@ const openapi: OpenAPISpec = { 'salto_space_group', 'dormakaba_community_access_group', 'dormakaba_ambiance_access_group', + 'avigilon_alta_group', ], type: 'string', }, @@ -4684,6 +4686,31 @@ const openapi: OpenAPISpec = { required: ['created_at', 'message', 'warning_code'], type: 'object', }, + { + description: + 'Indicates that this entrance shares a zone with other entrances in Avigilon Alta and cannot be added to an access group individually.', + 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: ['entrance_shares_zone'], + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, ], }, type: 'array', @@ -25506,6 +25533,35 @@ const openapi: OpenAPISpec = { ], type: 'object', }, + { + description: + 'Indicates that this entrance shares a zone with other entrances in Avigilon Alta and cannot be added to an access group individually.', + 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: ['entrance_shares_zone'], + type: 'string', + }, + }, + required: [ + 'created_at', + 'message', + 'warning_code', + ], + type: 'object', + }, ], }, type: 'array', @@ -28363,6 +28419,7 @@ const openapi: OpenAPISpec = { 'salto_space_group', 'dormakaba_community_access_group', 'dormakaba_ambiance_access_group', + 'avigilon_alta_group', ], type: 'string', 'x-deprecated': 'Use `external_type`.', @@ -28462,6 +28519,7 @@ const openapi: OpenAPISpec = { 'salto_space_group', 'dormakaba_community_access_group', 'dormakaba_ambiance_access_group', + 'avigilon_alta_group', ], type: 'string', }, diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 837b55ac..0b9cbe95 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -14694,14 +14694,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -15282,6 +15292,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string @@ -15295,6 +15306,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string /** Date and time at which the access group was created. */ @@ -19992,14 +20004,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -21175,6 +21197,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string @@ -21188,6 +21211,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string /** Date and time at which the access group was created. */ @@ -21387,6 +21411,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string @@ -21400,6 +21425,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string /** Date and time at which the access group was created. */ @@ -21593,14 +21619,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -22118,6 +22154,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string @@ -22131,6 +22168,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string /** Date and time at which the access group was created. */ @@ -22328,6 +22366,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string @@ -22341,6 +22380,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string /** Date and time at which the access group was created. */ @@ -23606,14 +23646,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -27869,14 +27919,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -28107,14 +28167,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -31655,14 +31725,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -82366,14 +82446,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -84615,14 +84705,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -109056,14 +109156,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -112045,14 +112155,24 @@ export type Routes = { message: string }[] /** Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ - warnings: { - /** 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: 'salto_ks_entrance_access_code_support_removed' - }[] + warnings: ( + | { + /** 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: 'salto_ks_entrance_access_code_support_removed' + } + | { + /** 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: 'entrance_shares_zone' + } + )[] /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */ latch_metadata?: | { @@ -112706,6 +112826,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string @@ -112719,6 +112840,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string /** Date and time at which the access group was created. */ @@ -114819,6 +114941,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string @@ -114832,6 +114955,7 @@ export type Routes = { | 'salto_space_group' | 'dormakaba_community_access_group' | 'dormakaba_ambiance_access_group' + | 'avigilon_alta_group' /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string /** Date and time at which the access group was created. */