diff --git a/src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts b/src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts index cfec6d83..dd119aa2 100644 --- a/src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts +++ b/src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts @@ -32,9 +32,31 @@ const deleting = common_pending_mutation 'Seam is in the process of pushing a credential deletion to the integrated access system.', ) +const updating_user_assignment = common_pending_mutation + .extend({ + mutation_code: z + .literal('updating_user_assignment') + .describe( + 'Mutation code to indicate that Seam is in the process of assigning or unassigning the credential to a user on the integrated access system.', + ), + from: z + .object({ + acs_user_id: z.string().uuid().nullable().describe('Previous user ID.'), + }) + .describe('Previous user assignment.'), + to: z + .object({ + acs_user_id: z.string().uuid().nullable().describe('New user ID.'), + }) + .describe('New user assignment.'), + }) + .describe( + 'Seam is in the process of assigning or unassigning the credential to a user on the integrated access system.', + ) + export const acs_credential_pending_mutations = z.discriminatedUnion( 'mutation_code', - [creating, deleting], + [creating, deleting, updating_user_assignment], ) export type AcsCredentialPendingMutation = z.infer< @@ -44,6 +66,7 @@ export type AcsCredentialPendingMutation = z.infer< const _acs_credential_pending_mutations_map = z.object({ creating: creating.optional().nullable(), deleting: deleting.optional().nullable(), + updating_user_assignment: updating_user_assignment.optional().nullable(), }) export type AcsCredentialPendingMutationsMap = z.infer< diff --git a/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts b/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts index 28df3762..82301775 100644 --- a/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +++ b/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts @@ -179,6 +179,36 @@ const deferring_group_membership_update_mutation = common_pending_mutation 'A scheduled access group membership change is pending for this user.', ) +const updating_credential_assignment_mutation = common_pending_mutation + .extend({ + mutation_code: z + .literal('updating_credential_assignment') + .describe( + 'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', + ), + from: z + .object({ + acs_credential_id: z + .string() + .uuid() + .nullable() + .describe('Previous credential ID.'), + }) + .describe('Previous credential assignment.'), + to: z + .object({ + acs_credential_id: z + .string() + .uuid() + .nullable() + .describe('New credential ID.'), + }) + .describe('New credential assignment.'), + }) + .describe( + 'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', + ) + export const acs_user_pending_mutations = z.discriminatedUnion( 'mutation_code', [ @@ -190,6 +220,7 @@ export const acs_user_pending_mutations = z.discriminatedUnion( updating_suspension_state_mutation, updating_group_membership_mutation, deferring_group_membership_update_mutation, + updating_credential_assignment_mutation, ], ) @@ -210,6 +241,10 @@ const _acs_user_pending_mutations_map = z.object({ .record(z.string().uuid(), deferring_group_membership_update_mutation) .optional() .nullable(), + updating_credential_assignment: z + .record(z.string().uuid(), updating_credential_assignment_mutation) + .optional() + .nullable(), updating_suspension_state: updating_suspension_state_mutation .optional() .nullable(), diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index f4de4541..428e16e8 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -5716,6 +5716,62 @@ const openapi: OpenAPISpec = { ], type: 'object', }, + { + description: + 'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', + properties: { + created_at: { + description: + 'Date and time at which the mutation was created.', + format: 'date-time', + type: 'string', + }, + from: { + description: 'Previous credential assignment.', + properties: { + acs_credential_id: { + description: 'Previous credential ID.', + format: 'uuid', + nullable: true, + type: 'string', + }, + }, + required: ['acs_credential_id'], + type: 'object', + }, + message: { + description: 'Detailed description of the mutation.', + type: 'string', + }, + mutation_code: { + description: + 'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', + enum: ['updating_credential_assignment'], + type: 'string', + }, + to: { + description: 'New credential assignment.', + properties: { + acs_credential_id: { + description: 'New credential ID.', + format: 'uuid', + nullable: true, + type: 'string', + }, + }, + required: ['acs_credential_id'], + type: 'object', + }, + }, + required: [ + 'created_at', + 'message', + 'mutation_code', + 'from', + 'to', + ], + type: 'object', + }, ], }, type: 'array', @@ -29801,6 +29857,62 @@ const openapi: OpenAPISpec = { ], type: 'object', }, + { + description: + 'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', + properties: { + created_at: { + description: + 'Date and time at which the mutation was created.', + format: 'date-time', + type: 'string', + }, + from: { + description: 'Previous credential assignment.', + properties: { + acs_credential_id: { + description: 'Previous credential ID.', + format: 'uuid', + nullable: true, + type: 'string', + }, + }, + required: ['acs_credential_id'], + type: 'object', + }, + message: { + description: 'Detailed description of the mutation.', + type: 'string', + }, + mutation_code: { + description: + 'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', + enum: ['updating_credential_assignment'], + type: 'string', + }, + to: { + description: 'New credential assignment.', + properties: { + acs_credential_id: { + description: 'New credential ID.', + format: 'uuid', + nullable: true, + type: 'string', + }, + }, + required: ['acs_credential_id'], + type: 'object', + }, + }, + required: [ + 'created_at', + 'message', + 'mutation_code', + 'from', + 'to', + ], + type: 'object', + }, ], }, type: 'array', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index c46ffc01..aa0f5892 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -21974,6 +21974,24 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from the 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 Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ + mutation_code: 'updating_credential_assignment' + /** Previous credential assignment. */ + from: { + /** Previous credential ID. */ + acs_credential_id: string | null + } + /** New credential assignment. */ + to: { + /** New credential ID. */ + acs_credential_id: string | null + } + } )[] | undefined /** The last time an internal sync job completed for this access system user. */ @@ -30821,6 +30839,24 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from the 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 Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ + mutation_code: 'updating_credential_assignment' + /** Previous credential assignment. */ + from: { + /** Previous credential ID. */ + acs_credential_id: string | null + } + /** New credential assignment. */ + to: { + /** New credential ID. */ + acs_credential_id: string | null + } + } )[] | undefined /** The last time an internal sync job completed for this access system user. */ @@ -31134,6 +31170,24 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from the 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 Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ + mutation_code: 'updating_credential_assignment' + /** Previous credential assignment. */ + from: { + /** Previous credential ID. */ + acs_credential_id: string | null + } + /** New credential assignment. */ + to: { + /** New credential ID. */ + acs_credential_id: string | null + } + } )[] | undefined /** The last time an internal sync job completed for this access system user. */ @@ -31435,6 +31489,24 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from the 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 Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ + mutation_code: 'updating_credential_assignment' + /** Previous credential assignment. */ + from: { + /** Previous credential ID. */ + acs_credential_id: string | null + } + /** New credential assignment. */ + to: { + /** New credential ID. */ + acs_credential_id: string | null + } + } )[] | undefined /** The last time an internal sync job completed for this access system user. */ @@ -31980,6 +32052,24 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from the 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 Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ + mutation_code: 'updating_credential_assignment' + /** Previous credential assignment. */ + from: { + /** Previous credential ID. */ + acs_credential_id: string | null + } + /** New credential assignment. */ + to: { + /** New credential ID. */ + acs_credential_id: string | null + } + } )[] | undefined /** The last time an internal sync job completed for this access system user. */ @@ -32277,6 +32367,24 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from the 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 Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ + mutation_code: 'updating_credential_assignment' + /** Previous credential assignment. */ + from: { + /** Previous credential ID. */ + acs_credential_id: string | null + } + /** New credential assignment. */ + to: { + /** New credential ID. */ + acs_credential_id: string | null + } + } )[] | undefined /** The last time an internal sync job completed for this access system user. */ @@ -109380,6 +109488,24 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from the 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 Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ + mutation_code: 'updating_credential_assignment' + /** Previous credential assignment. */ + from: { + /** Previous credential ID. */ + acs_credential_id: string | null + } + /** New credential assignment. */ + to: { + /** New credential ID. */ + acs_credential_id: string | null + } + } )[] | undefined /** The last time an internal sync job completed for this access system user. */ @@ -112327,6 +112453,24 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from the 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 Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ + mutation_code: 'updating_credential_assignment' + /** Previous credential assignment. */ + from: { + /** Previous credential ID. */ + acs_credential_id: string | null + } + /** New credential assignment. */ + to: { + /** New credential ID. */ + acs_credential_id: string | null + } + } )[] | undefined /** The last time an internal sync job completed for this access system user. */ @@ -114422,6 +114566,24 @@ export type Routes = { /** Whether the user is scheduled to be added to or removed from the 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 Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ + mutation_code: 'updating_credential_assignment' + /** Previous credential assignment. */ + from: { + /** Previous credential ID. */ + acs_credential_id: string | null + } + /** New credential assignment. */ + to: { + /** New credential ID. */ + acs_credential_id: string | null + } + } )[] | undefined /** The last time an internal sync job completed for this access system user. */