From bd15209a2eaf261a7ab668efafe777ab1dc86f70 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 5 Apr 2024 17:49:32 -0700 Subject: [PATCH] fix: User identity props on ACS user can be optional and nullable (#745) --- src/lib/seam/connect/models/acs/user.ts | 4 ++-- src/lib/seam/connect/openapi.ts | 4 ++-- src/lib/seam/connect/route-types.ts | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/lib/seam/connect/models/acs/user.ts b/src/lib/seam/connect/models/acs/user.ts index 50fab606..4a6abba9 100644 --- a/src/lib/seam/connect/models/acs/user.ts +++ b/src/lib/seam/connect/models/acs/user.ts @@ -37,8 +37,8 @@ export const acs_user = z is_suspended: z.boolean(), access_schedule: schedule.optional(), user_identity_id: z.string().optional(), - user_identity_email_address: z.string().optional(), - user_identity_phone_number: z.string().optional(), + user_identity_email_address: z.string().nullable().optional(), + user_identity_phone_number: z.string().nullable().optional(), }) .merge(user_fields) diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 954c913e..c0c095ef 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -460,9 +460,9 @@ export default { hid_acs_system_id: { format: 'uuid', type: 'string' }, is_suspended: { type: 'boolean' }, phone_number: { nullable: true, type: 'string' }, - user_identity_email_address: { type: 'string' }, + user_identity_email_address: { nullable: true, type: 'string' }, user_identity_id: { type: 'string' }, - user_identity_phone_number: { type: 'string' }, + user_identity_phone_number: { nullable: true, type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, }, required: [ diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 189e20d7..4490a248 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -768,8 +768,8 @@ export interface Routes { } | undefined user_identity_id?: string | undefined - user_identity_email_address?: string | undefined - user_identity_phone_number?: string | undefined + user_identity_email_address?: (string | null) | undefined + user_identity_phone_number?: (string | null) | undefined full_name?: string | undefined /** --- @@ -1512,8 +1512,8 @@ export interface Routes { } | undefined user_identity_id?: string | undefined - user_identity_email_address?: string | undefined - user_identity_phone_number?: string | undefined + user_identity_email_address?: (string | null) | undefined + user_identity_phone_number?: (string | null) | undefined full_name?: string | undefined /** --- @@ -1572,8 +1572,8 @@ export interface Routes { } | undefined user_identity_id?: string | undefined - user_identity_email_address?: string | undefined - user_identity_phone_number?: string | undefined + user_identity_email_address?: (string | null) | undefined + user_identity_phone_number?: (string | null) | undefined full_name?: string | undefined /** --- @@ -1624,8 +1624,8 @@ export interface Routes { } | undefined user_identity_id?: string | undefined - user_identity_email_address?: string | undefined - user_identity_phone_number?: string | undefined + user_identity_email_address?: (string | null) | undefined + user_identity_phone_number?: (string | null) | undefined full_name?: string | undefined /** --- @@ -11997,8 +11997,8 @@ export interface Routes { } | undefined user_identity_id?: string | undefined - user_identity_email_address?: string | undefined - user_identity_phone_number?: string | undefined + user_identity_email_address?: (string | null) | undefined + user_identity_phone_number?: (string | null) | undefined full_name?: string | undefined /** ---