Skip to content

Commit d60be12

Browse files
authored
feat: Sync with Seam API via 64f4f36ffa27b86ecd287a0ca5d70345e0c0cfdb (#2709)
1 parent 11b420e commit d60be12

3 files changed

Lines changed: 118 additions & 0 deletions

File tree

src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,18 @@ const deferring_user_membership_update = common_pending_mutation
156156
'A scheduled user membership change is pending for this access group.',
157157
)
158158

159+
const deferring_deletion = common_pending_mutation
160+
.extend({
161+
mutation_code: z
162+
.literal('deferring_deletion')
163+
.describe(
164+
'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.',
165+
),
166+
})
167+
.describe(
168+
'This access group is scheduled for automatic deletion when its access window expires.',
169+
)
170+
159171
export const acs_access_group_pending_mutations = z.discriminatedUnion(
160172
'mutation_code',
161173
[
@@ -166,6 +178,7 @@ export const acs_access_group_pending_mutations = z.discriminatedUnion(
166178
updating_user_membership,
167179
updating_entrance_membership,
168180
deferring_user_membership_update,
181+
deferring_deletion,
169182
],
170183
)
171184

@@ -190,6 +203,7 @@ const _acs_access_group_pending_mutations_map = z.object({
190203
.record(z.string().uuid(), deferring_user_membership_update)
191204
.optional()
192205
.nullable(),
206+
deferring_deletion: deferring_deletion.optional().nullable(),
193207
})
194208

195209
export type AcsAccessGroupPendingMutationsMap = z.infer<

src/lib/seam/connect/openapi.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,6 +3096,30 @@ export default {
30963096
],
30973097
type: 'object',
30983098
},
3099+
{
3100+
description:
3101+
'This access group is scheduled for automatic deletion when its access window expires.',
3102+
properties: {
3103+
created_at: {
3104+
description:
3105+
'Date and time at which the mutation was created.',
3106+
format: 'date-time',
3107+
type: 'string',
3108+
},
3109+
message: {
3110+
description: 'Detailed description of the mutation.',
3111+
type: 'string',
3112+
},
3113+
mutation_code: {
3114+
description:
3115+
'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.',
3116+
enum: ['deferring_deletion'],
3117+
type: 'string',
3118+
},
3119+
},
3120+
required: ['created_at', 'message', 'mutation_code'],
3121+
type: 'object',
3122+
},
30993123
],
31003124
},
31013125
type: 'array',
@@ -27430,6 +27454,30 @@ export default {
2743027454
],
2743127455
type: 'object',
2743227456
},
27457+
{
27458+
description:
27459+
'This access group is scheduled for automatic deletion when its access window expires.',
27460+
properties: {
27461+
created_at: {
27462+
description:
27463+
'Date and time at which the mutation was created.',
27464+
format: 'date-time',
27465+
type: 'string',
27466+
},
27467+
message: {
27468+
description: 'Detailed description of the mutation.',
27469+
type: 'string',
27470+
},
27471+
mutation_code: {
27472+
description:
27473+
'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.',
27474+
enum: ['deferring_deletion'],
27475+
type: 'string',
27476+
},
27477+
},
27478+
required: ['created_at', 'message', 'mutation_code'],
27479+
type: 'object',
27480+
},
2743327481
],
2743427482
},
2743527483
type: 'array',

src/lib/seam/connect/route-types.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14200,6 +14200,14 @@ export type Routes = {
1420014200
/** Whether the user is scheduled to be added to or removed from this access group. */
1420114201
variant: 'adding' | 'removing'
1420214202
}
14203+
| {
14204+
/** Date and time at which the mutation was created. */
14205+
created_at: string
14206+
/** Detailed description of the mutation. */
14207+
message: string
14208+
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
14209+
mutation_code: 'deferring_deletion'
14210+
}
1420314211
)[]
1420414212
is_managed: true
1420514213
}[]
@@ -19676,6 +19684,14 @@ export type Routes = {
1967619684
/** Whether the user is scheduled to be added to or removed from this access group. */
1967719685
variant: 'adding' | 'removing'
1967819686
}
19687+
| {
19688+
/** Date and time at which the mutation was created. */
19689+
created_at: string
19690+
/** Detailed description of the mutation. */
19691+
message: string
19692+
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
19693+
mutation_code: 'deferring_deletion'
19694+
}
1967919695
)[]
1968019696
is_managed: true
1968119697
}
@@ -19871,6 +19887,14 @@ export type Routes = {
1987119887
/** Whether the user is scheduled to be added to or removed from this access group. */
1987219888
variant: 'adding' | 'removing'
1987319889
}
19890+
| {
19891+
/** Date and time at which the mutation was created. */
19892+
created_at: string
19893+
/** Detailed description of the mutation. */
19894+
message: string
19895+
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
19896+
mutation_code: 'deferring_deletion'
19897+
}
1987419898
)[]
1987519899
is_managed: true
1987619900
}[]
@@ -20536,6 +20560,14 @@ export type Routes = {
2053620560
/** Whether the user is scheduled to be added to or removed from this access group. */
2053720561
variant: 'adding' | 'removing'
2053820562
}
20563+
| {
20564+
/** Date and time at which the mutation was created. */
20565+
created_at: string
20566+
/** Detailed description of the mutation. */
20567+
message: string
20568+
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
20569+
mutation_code: 'deferring_deletion'
20570+
}
2053920571
)[]
2054020572
is_managed: false
2054120573
}
@@ -20729,6 +20761,14 @@ export type Routes = {
2072920761
/** Whether the user is scheduled to be added to or removed from this access group. */
2073020762
variant: 'adding' | 'removing'
2073120763
}
20764+
| {
20765+
/** Date and time at which the mutation was created. */
20766+
created_at: string
20767+
/** Detailed description of the mutation. */
20768+
message: string
20769+
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
20770+
mutation_code: 'deferring_deletion'
20771+
}
2073220772
)[]
2073320773
is_managed: false
2073420774
}[]
@@ -103475,6 +103515,14 @@ export type Routes = {
103475103515
/** Whether the user is scheduled to be added to or removed from this access group. */
103476103516
variant: 'adding' | 'removing'
103477103517
}
103518+
| {
103519+
/** Date and time at which the mutation was created. */
103520+
created_at: string
103521+
/** Detailed description of the mutation. */
103522+
message: string
103523+
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
103524+
mutation_code: 'deferring_deletion'
103525+
}
103478103526
)[]
103479103527
is_managed: true
103480103528
}[]
@@ -105454,6 +105502,14 @@ export type Routes = {
105454105502
/** Whether the user is scheduled to be added to or removed from this access group. */
105455105503
variant: 'adding' | 'removing'
105456105504
}
105505+
| {
105506+
/** Date and time at which the mutation was created. */
105507+
created_at: string
105508+
/** Detailed description of the mutation. */
105509+
message: string
105510+
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
105511+
mutation_code: 'deferring_deletion'
105512+
}
105457105513
)[]
105458105514
is_managed: false
105459105515
}[]

0 commit comments

Comments
 (0)