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 e2a07c96..450b1790 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 @@ -221,13 +221,15 @@ const wyze_potential_duplicate_code = common_access_code_error }) .describe('Potential duplicate access code detected.') -const dormakaba_oracode_no_valid_user_level = common_access_code_error +const dormakaba_oracode_invalid_time_range = common_access_code_error .extend({ error_code: z - .literal('dormakaba_oracode_no_valid_user_level') + .literal('dormakaba_oracode_invalid_time_range') .describe(error_code_description), }) - .describe('No valid user level for Oracode.') + .describe( + 'No Dormakaba Oracode user levels configured for the requested time range.', + ) const keynest_unsupported_third_party_locker = common_access_code_error .extend({ @@ -262,7 +264,7 @@ const access_code_error = z hubitat_no_free_positions_available, wyze_duplicate_code_name, wyze_potential_duplicate_code, - dormakaba_oracode_no_valid_user_level, + dormakaba_oracode_invalid_time_range, kwikset_insufficient_permissions, keynest_unsupported_third_party_locker, ]) @@ -332,7 +334,7 @@ const _access_code_error_map = z.object({ wyze_potential_duplicate_code: wyze_potential_duplicate_code .optional() .nullable(), - dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level + dormakaba_oracode_invalid_time_range: dormakaba_oracode_invalid_time_range .optional() .nullable(), keynest_unsupported_third_party_locker: keynest_unsupported_third_party_locker diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index abb237fe..6533a229 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -748,7 +748,8 @@ export default { type: 'object', }, { - description: 'No valid user level for Oracode.', + description: + 'No Dormakaba Oracode user levels configured for the requested time range.', properties: { created_at: { description: @@ -759,7 +760,7 @@ export default { error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', - enum: ['dormakaba_oracode_no_valid_user_level'], + enum: ['dormakaba_oracode_invalid_time_range'], type: 'string', }, is_access_code_error: { @@ -22278,7 +22279,8 @@ export default { type: 'object', }, { - description: 'No valid user level for Oracode.', + description: + 'No Dormakaba Oracode user levels configured for the requested time range.', properties: { created_at: { description: @@ -22289,7 +22291,7 @@ export default { error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', - enum: ['dormakaba_oracode_no_valid_user_level'], + enum: ['dormakaba_oracode_invalid_time_range'], type: 'string', }, is_access_code_error: { diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 06031ad5..525fcf1a 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -1762,7 +1762,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -2380,7 +2380,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -4455,7 +4455,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -5047,7 +5047,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -5645,7 +5645,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -6220,7 +6220,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -6830,7 +6830,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -8892,7 +8892,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -9462,7 +9462,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -100093,7 +100093,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -100651,7 +100651,7 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'dormakaba_oracode_no_valid_user_level' + error_code: 'dormakaba_oracode_invalid_time_range' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */