Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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',
[
Expand All @@ -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,
],
)

Expand All @@ -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<
Expand Down
48 changes: 48 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
56 changes: 56 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}[]
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}[]
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}[]
Expand Down Expand Up @@ -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
}[]
Expand Down Expand Up @@ -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
}[]
Expand Down
Loading