diff --git a/src/lib/seam/connect/models/acs/acs-user.ts b/src/lib/seam/connect/models/acs/acs-user.ts index 99ab618a..f45e1808 100644 --- a/src/lib/seam/connect/models/acs/acs-user.ts +++ b/src/lib/seam/connect/models/acs/acs-user.ts @@ -43,7 +43,7 @@ const acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error const acs_users_failed_to_create_on_acs_system = common_acs_user_error .extend({ - warning_code: z.literal('failed_to_create_on_acs_system'), + error_code: z.literal('failed_to_create_on_acs_system'), }) .describe( `Indicates that the user was not created on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`, @@ -51,7 +51,7 @@ const acs_users_failed_to_create_on_acs_system = common_acs_user_error const acs_users_failed_to_update_on_acs_system = common_acs_user_error .extend({ - warning_code: z.literal('failed_to_update_on_acs_system'), + error_code: z.literal('failed_to_update_on_acs_system'), }) .describe( `Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`, @@ -59,7 +59,7 @@ const acs_users_failed_to_update_on_acs_system = common_acs_user_error const acs_users_failed_to_delete_on_acs_system = common_acs_user_error .extend({ - warning_code: z.literal('failed_to_delete_on_acs_system'), + error_code: z.literal('failed_to_delete_on_acs_system'), }) .describe( `Indicates that the user was not deleted on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`, @@ -121,11 +121,7 @@ export const acs_users_warning_map = z.object({ }) export const acs_users_warnings = z - .union([ - acs_users_being_deleted, - acs_users_failed_to_update_on_acs_system, - acs_users_salto_ks_user_not_subscribed, - ]) + .union([acs_users_being_deleted, acs_users_salto_ks_user_not_subscribed]) .describe('Warning associated with the `acs_user`.') export type AcsUsersWarningMap = z.infer diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 99cb01cf..63a16a54 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -801,17 +801,17 @@ export default { format: 'date-time', type: 'string', }, + error_code: { + enum: ['failed_to_create_on_acs_system'], + type: 'string', + }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, - warning_code: { - enum: ['failed_to_create_on_acs_system'], - type: 'string', - }, }, - required: ['created_at', 'message', 'warning_code'], + required: ['created_at', 'message', 'error_code'], type: 'object', }, { @@ -824,17 +824,17 @@ export default { format: 'date-time', type: 'string', }, + error_code: { + enum: ['failed_to_update_on_acs_system'], + type: 'string', + }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, - warning_code: { - enum: ['failed_to_update_on_acs_system'], - type: 'string', - }, }, - required: ['created_at', 'message', 'warning_code'], + required: ['created_at', 'message', 'error_code'], type: 'object', }, { @@ -847,17 +847,17 @@ export default { format: 'date-time', type: 'string', }, + error_code: { + enum: ['failed_to_delete_on_acs_system'], + type: 'string', + }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, - warning_code: { - enum: ['failed_to_delete_on_acs_system'], - type: 'string', - }, }, - required: ['created_at', 'message', 'warning_code'], + required: ['created_at', 'message', 'error_code'], type: 'object', }, ], @@ -904,29 +904,6 @@ export default { required: ['created_at', 'message', 'warning_code'], type: 'object', }, - { - description: - "Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.", - properties: { - created_at: { - description: - 'Date and time at which Seam created the error.', - format: 'date-time', - type: 'string', - }, - message: { - description: - 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', - type: 'string', - }, - warning_code: { - enum: ['failed_to_update_on_acs_system'], - type: 'string', - }, - }, - required: ['created_at', 'message', 'warning_code'], - type: 'object', - }, { description: 'Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn’t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.', @@ -8093,20 +8070,20 @@ export default { format: 'date-time', type: 'string', }, + error_code: { + enum: ['failed_to_create_on_acs_system'], + type: 'string', + }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, - warning_code: { - enum: ['failed_to_create_on_acs_system'], - type: 'string', - }, }, required: [ 'created_at', 'message', - 'warning_code', + 'error_code', ], type: 'object', }, @@ -8120,20 +8097,20 @@ export default { format: 'date-time', type: 'string', }, + error_code: { + enum: ['failed_to_update_on_acs_system'], + type: 'string', + }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, - warning_code: { - enum: ['failed_to_update_on_acs_system'], - type: 'string', - }, }, required: [ 'created_at', 'message', - 'warning_code', + 'error_code', ], type: 'object', }, @@ -8147,20 +8124,20 @@ export default { format: 'date-time', type: 'string', }, + error_code: { + enum: ['failed_to_delete_on_acs_system'], + type: 'string', + }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, - warning_code: { - enum: ['failed_to_delete_on_acs_system'], - type: 'string', - }, }, required: [ 'created_at', 'message', - 'warning_code', + 'error_code', ], type: 'object', }, @@ -8230,33 +8207,6 @@ export default { ], type: 'object', }, - { - description: - "Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.", - properties: { - created_at: { - description: - 'Date and time at which Seam created the error.', - format: 'date-time', - type: 'string', - }, - message: { - description: - 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', - type: 'string', - }, - warning_code: { - enum: ['failed_to_update_on_acs_system'], - type: 'string', - }, - }, - required: [ - 'created_at', - 'message', - 'warning_code', - ], - type: 'object', - }, { description: 'Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn’t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.', @@ -8434,20 +8384,20 @@ export default { format: 'date-time', type: 'string', }, + error_code: { + enum: ['failed_to_create_on_acs_system'], + type: 'string', + }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, - warning_code: { - enum: ['failed_to_create_on_acs_system'], - type: 'string', - }, }, required: [ 'created_at', 'message', - 'warning_code', + 'error_code', ], type: 'object', }, @@ -8461,20 +8411,20 @@ export default { format: 'date-time', type: 'string', }, + error_code: { + enum: ['failed_to_update_on_acs_system'], + type: 'string', + }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, - warning_code: { - enum: ['failed_to_update_on_acs_system'], - type: 'string', - }, }, required: [ 'created_at', 'message', - 'warning_code', + 'error_code', ], type: 'object', }, @@ -8488,20 +8438,20 @@ export default { format: 'date-time', type: 'string', }, + error_code: { + enum: ['failed_to_delete_on_acs_system'], + type: 'string', + }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, - warning_code: { - enum: ['failed_to_delete_on_acs_system'], - type: 'string', - }, }, required: [ 'created_at', 'message', - 'warning_code', + 'error_code', ], type: 'object', }, @@ -8571,33 +8521,6 @@ export default { ], type: 'object', }, - { - description: - "Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.", - properties: { - created_at: { - description: - 'Date and time at which Seam created the error.', - format: 'date-time', - type: 'string', - }, - message: { - description: - 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', - type: 'string', - }, - warning_code: { - enum: ['failed_to_update_on_acs_system'], - type: 'string', - }, - }, - required: [ - 'created_at', - 'message', - 'warning_code', - ], - type: 'object', - }, { description: 'Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn’t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 9e6234ec..759cafc4 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -2604,13 +2604,6 @@ export interface Routes { message: string warning_code: 'being_deleted' } - | { - /** 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 - warning_code: 'failed_to_update_on_acs_system' - } | { created_at: string message: string @@ -2637,21 +2630,21 @@ export interface Routes { created_at: string /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string - warning_code: 'failed_to_create_on_acs_system' + error_code: 'failed_to_create_on_acs_system' } | { /** 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 - warning_code: 'failed_to_update_on_acs_system' + error_code: 'failed_to_update_on_acs_system' } | { /** 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 - warning_code: 'failed_to_delete_on_acs_system' + error_code: 'failed_to_delete_on_acs_system' } > full_name?: string | undefined @@ -4001,13 +3994,6 @@ export interface Routes { message: string warning_code: 'being_deleted' } - | { - /** 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 - warning_code: 'failed_to_update_on_acs_system' - } | { created_at: string message: string @@ -4034,21 +4020,21 @@ export interface Routes { created_at: string /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string - warning_code: 'failed_to_create_on_acs_system' + error_code: 'failed_to_create_on_acs_system' } | { /** 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 - warning_code: 'failed_to_update_on_acs_system' + error_code: 'failed_to_update_on_acs_system' } | { /** 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 - warning_code: 'failed_to_delete_on_acs_system' + error_code: 'failed_to_delete_on_acs_system' } > full_name?: string | undefined @@ -4118,13 +4104,6 @@ export interface Routes { message: string warning_code: 'being_deleted' } - | { - /** 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 - warning_code: 'failed_to_update_on_acs_system' - } | { created_at: string message: string @@ -4151,21 +4130,21 @@ export interface Routes { created_at: string /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string - warning_code: 'failed_to_create_on_acs_system' + error_code: 'failed_to_create_on_acs_system' } | { /** 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 - warning_code: 'failed_to_update_on_acs_system' + error_code: 'failed_to_update_on_acs_system' } | { /** 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 - warning_code: 'failed_to_delete_on_acs_system' + error_code: 'failed_to_delete_on_acs_system' } > full_name?: string | undefined @@ -4229,13 +4208,6 @@ export interface Routes { message: string warning_code: 'being_deleted' } - | { - /** 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 - warning_code: 'failed_to_update_on_acs_system' - } | { created_at: string message: string @@ -4262,21 +4234,21 @@ export interface Routes { created_at: string /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string - warning_code: 'failed_to_create_on_acs_system' + error_code: 'failed_to_create_on_acs_system' } | { /** 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 - warning_code: 'failed_to_update_on_acs_system' + error_code: 'failed_to_update_on_acs_system' } | { /** 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 - warning_code: 'failed_to_delete_on_acs_system' + error_code: 'failed_to_delete_on_acs_system' } > full_name?: string | undefined @@ -4416,13 +4388,6 @@ export interface Routes { message: string warning_code: 'being_deleted' } - | { - /** 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 - warning_code: 'failed_to_update_on_acs_system' - } | { created_at: string message: string @@ -4449,21 +4414,21 @@ export interface Routes { created_at: string /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string - warning_code: 'failed_to_create_on_acs_system' + error_code: 'failed_to_create_on_acs_system' } | { /** 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 - warning_code: 'failed_to_update_on_acs_system' + error_code: 'failed_to_update_on_acs_system' } | { /** 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 - warning_code: 'failed_to_delete_on_acs_system' + error_code: 'failed_to_delete_on_acs_system' } > full_name?: string | undefined @@ -4526,13 +4491,6 @@ export interface Routes { message: string warning_code: 'being_deleted' } - | { - /** 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 - warning_code: 'failed_to_update_on_acs_system' - } | { created_at: string message: string @@ -4559,21 +4517,21 @@ export interface Routes { created_at: string /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string - warning_code: 'failed_to_create_on_acs_system' + error_code: 'failed_to_create_on_acs_system' } | { /** 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 - warning_code: 'failed_to_update_on_acs_system' + error_code: 'failed_to_update_on_acs_system' } | { /** 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 - warning_code: 'failed_to_delete_on_acs_system' + error_code: 'failed_to_delete_on_acs_system' } > full_name?: string | undefined @@ -20438,13 +20396,6 @@ export interface Routes { message: string warning_code: 'being_deleted' } - | { - /** 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 - warning_code: 'failed_to_update_on_acs_system' - } | { created_at: string message: string @@ -20471,21 +20422,21 @@ export interface Routes { created_at: string /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string - warning_code: 'failed_to_create_on_acs_system' + error_code: 'failed_to_create_on_acs_system' } | { /** 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 - warning_code: 'failed_to_update_on_acs_system' + error_code: 'failed_to_update_on_acs_system' } | { /** 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 - warning_code: 'failed_to_delete_on_acs_system' + error_code: 'failed_to_delete_on_acs_system' } > full_name?: string | undefined