diff --git a/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts b/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts index 07df51e8..7a8a619e 100644 --- a/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +++ b/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts @@ -135,6 +135,18 @@ const updating_entrance_membership = common_pending_mutation 'Seam is in the process of pushing an entrance membership update to the integrated access system.', ) +const deferring_deletion = common_pending_mutation + .extend({ + mutation_code: z + .literal('deferring_deletion') + .describe( + 'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.', + ), + }) + .describe( + 'This access group is scheduled for automatic deletion when its access window expires.', + ) + const deferring_user_membership_update = common_pending_mutation .extend({ mutation_code: z @@ -156,29 +168,17 @@ const deferring_user_membership_update = common_pending_mutation 'A scheduled user membership change is pending for this access group.', ) -const deferring_deletion = common_pending_mutation - .extend({ - mutation_code: z - .literal('deferring_deletion') - .describe( - 'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.', - ), - }) - .describe( - 'This access group is scheduled for automatic deletion when its access window expires.', - ) - export const acs_access_group_pending_mutations = z.discriminatedUnion( 'mutation_code', [ creating, deleting, + deferring_deletion, updating_group_information, updating_access_schedule, updating_user_membership, updating_entrance_membership, deferring_user_membership_update, - deferring_deletion, ], ) @@ -189,6 +189,7 @@ export type AcsAccessGroupPendingMutation = z.infer< const _acs_access_group_pending_mutations_map = z.object({ creating: creating.optional().nullable(), deleting: deleting.optional().nullable(), + deferring_deletion: deferring_deletion.optional().nullable(), updating_name: updating_group_information.optional().nullable(), updating_access_schedule: updating_access_schedule.optional().nullable(), updating_user_membership: z @@ -203,7 +204,6 @@ const _acs_access_group_pending_mutations_map = z.object({ .record(z.string().uuid(), deferring_user_membership_update) .optional() .nullable(), - deferring_deletion: deferring_deletion.optional().nullable(), }) export type AcsAccessGroupPendingMutationsMap = z.infer< diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 60461c88..d78c3aac 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -2853,6 +2853,30 @@ export default { required: ['created_at', 'message', 'mutation_code'], type: 'object', }, + { + description: + 'This access group is scheduled for automatic deletion when its access window expires.', + properties: { + created_at: { + description: + 'Date and time at which the mutation was created.', + format: 'date-time', + type: 'string', + }, + message: { + description: 'Detailed description of the mutation.', + type: 'string', + }, + mutation_code: { + description: + 'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.', + enum: ['deferring_deletion'], + type: 'string', + }, + }, + required: ['created_at', 'message', 'mutation_code'], + type: 'object', + }, { description: 'Seam is in the process of pushing an access group information update to the integrated access system.', @@ -3127,30 +3151,6 @@ export default { ], type: 'object', }, - { - description: - 'This access group is scheduled for automatic deletion when its access window expires.', - properties: { - created_at: { - description: - 'Date and time at which the mutation was created.', - format: 'date-time', - type: 'string', - }, - message: { - description: 'Detailed description of the mutation.', - type: 'string', - }, - mutation_code: { - description: - 'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.', - enum: ['deferring_deletion'], - type: 'string', - }, - }, - required: ['created_at', 'message', 'mutation_code'], - type: 'object', - }, ], }, type: 'array', @@ -27251,6 +27251,30 @@ export default { required: ['created_at', 'message', 'mutation_code'], type: 'object', }, + { + description: + 'This access group is scheduled for automatic deletion when its access window expires.', + properties: { + created_at: { + description: + 'Date and time at which the mutation was created.', + format: 'date-time', + type: 'string', + }, + message: { + description: 'Detailed description of the mutation.', + type: 'string', + }, + mutation_code: { + description: + 'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.', + enum: ['deferring_deletion'], + type: 'string', + }, + }, + required: ['created_at', 'message', 'mutation_code'], + type: 'object', + }, { description: 'Seam is in the process of pushing an access group information update to the integrated access system.', @@ -27525,30 +27549,6 @@ export default { ], type: 'object', }, - { - description: - 'This access group is scheduled for automatic deletion when its access window expires.', - properties: { - created_at: { - description: - 'Date and time at which the mutation was created.', - format: 'date-time', - type: 'string', - }, - message: { - description: 'Detailed description of the mutation.', - type: 'string', - }, - mutation_code: { - description: - 'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.', - enum: ['deferring_deletion'], - type: 'string', - }, - }, - required: ['created_at', 'message', 'mutation_code'], - type: 'object', - }, ], }, type: 'array', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 17d6e249..2c4980b9 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -14162,6 +14162,14 @@ export type Routes = { /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting' } + | { + /** Date and time at which the mutation was created. */ + created_at: string + /** Detailed description of the mutation. */ + message: string + /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ + mutation_code: 'deferring_deletion' + } | { /** Date and time at which the mutation was created. */ created_at: string @@ -14250,14 +14258,6 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing' } - | { - /** Date and time at which the mutation was created. */ - created_at: string - /** Detailed description of the mutation. */ - message: string - /** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */ - mutation_code: 'deferring_deletion' - } )[] is_managed: true }[] @@ -19721,6 +19721,14 @@ export type Routes = { /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting' } + | { + /** Date and time at which the mutation was created. */ + created_at: string + /** Detailed description of the mutation. */ + message: string + /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ + mutation_code: 'deferring_deletion' + } | { /** Date and time at which the mutation was created. */ created_at: string @@ -19809,14 +19817,6 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing' } - | { - /** Date and time at which the mutation was created. */ - created_at: string - /** Detailed description of the mutation. */ - message: string - /** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */ - mutation_code: 'deferring_deletion' - } )[] is_managed: true } @@ -19924,6 +19924,14 @@ export type Routes = { /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting' } + | { + /** Date and time at which the mutation was created. */ + created_at: string + /** Detailed description of the mutation. */ + message: string + /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ + mutation_code: 'deferring_deletion' + } | { /** Date and time at which the mutation was created. */ created_at: string @@ -20012,14 +20020,6 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing' } - | { - /** Date and time at which the mutation was created. */ - created_at: string - /** Detailed description of the mutation. */ - message: string - /** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */ - mutation_code: 'deferring_deletion' - } )[] is_managed: true }[] @@ -20599,6 +20599,14 @@ export type Routes = { /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting' } + | { + /** Date and time at which the mutation was created. */ + created_at: string + /** Detailed description of the mutation. */ + message: string + /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ + mutation_code: 'deferring_deletion' + } | { /** Date and time at which the mutation was created. */ created_at: string @@ -20687,14 +20695,6 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing' } - | { - /** Date and time at which the mutation was created. */ - created_at: string - /** Detailed description of the mutation. */ - message: string - /** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */ - mutation_code: 'deferring_deletion' - } )[] is_managed: false } @@ -20800,6 +20800,14 @@ export type Routes = { /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting' } + | { + /** Date and time at which the mutation was created. */ + created_at: string + /** Detailed description of the mutation. */ + message: string + /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ + mutation_code: 'deferring_deletion' + } | { /** Date and time at which the mutation was created. */ created_at: string @@ -20888,14 +20896,6 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing' } - | { - /** Date and time at which the mutation was created. */ - created_at: string - /** Detailed description of the mutation. */ - message: string - /** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */ - mutation_code: 'deferring_deletion' - } )[] is_managed: false }[] @@ -105389,6 +105389,14 @@ export type Routes = { /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting' } + | { + /** Date and time at which the mutation was created. */ + created_at: string + /** Detailed description of the mutation. */ + message: string + /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ + mutation_code: 'deferring_deletion' + } | { /** Date and time at which the mutation was created. */ created_at: string @@ -105477,14 +105485,6 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing' } - | { - /** Date and time at which the mutation was created. */ - created_at: string - /** Detailed description of the mutation. */ - message: string - /** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */ - mutation_code: 'deferring_deletion' - } )[] is_managed: true }[] @@ -107396,6 +107396,14 @@ export type Routes = { /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting' } + | { + /** Date and time at which the mutation was created. */ + created_at: string + /** Detailed description of the mutation. */ + message: string + /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ + mutation_code: 'deferring_deletion' + } | { /** Date and time at which the mutation was created. */ created_at: string @@ -107484,14 +107492,6 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing' } - | { - /** Date and time at which the mutation was created. */ - created_at: string - /** Detailed description of the mutation. */ - message: string - /** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */ - mutation_code: 'deferring_deletion' - } )[] is_managed: false }[]