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 f880ffe2..07df51e8 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 @@ -156,6 +156,18 @@ 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', [ @@ -166,6 +178,7 @@ export const acs_access_group_pending_mutations = z.discriminatedUnion( updating_user_membership, updating_entrance_membership, deferring_user_membership_update, + deferring_deletion, ], ) @@ -190,6 +203,7 @@ 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 03c68322..7423975d 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -3096,6 +3096,30 @@ 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', @@ -27430,6 +27454,30 @@ 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 d758ed66..fc0c04f2 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -14200,6 +14200,14 @@ 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 }[] @@ -19676,6 +19684,14 @@ 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 } @@ -19871,6 +19887,14 @@ 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 }[] @@ -20536,6 +20560,14 @@ 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 } @@ -20729,6 +20761,14 @@ 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 }[] @@ -103475,6 +103515,14 @@ 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 }[] @@ -105454,6 +105502,14 @@ 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 }[]