Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Nov 10, 2023
1 parent 1ef4c3a commit 3be2293
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3100,6 +3100,7 @@ export default {
acs_user_id: { format: 'uuid', type: 'string' },
code: { nullable: true, type: 'string' },
created_at: { format: 'date-time', type: 'string' },
display_name: { minLength: 1, type: 'string' },
external_type: {
enum: ['pti_card', 'brivo_credential'],
type: 'string',
Expand All @@ -3110,6 +3111,7 @@ export default {
required: [
'acs_credential_id',
'acs_system_id',
'display_name',
'code',
'external_type',
'external_type_display_name',
Expand Down Expand Up @@ -3213,6 +3215,7 @@ export default {
acs_user_id: { format: 'uuid', type: 'string' },
code: { nullable: true, type: 'string' },
created_at: { format: 'date-time', type: 'string' },
display_name: { minLength: 1, type: 'string' },
external_type: {
enum: ['pti_card', 'brivo_credential'],
type: 'string',
Expand All @@ -3223,6 +3226,7 @@ export default {
required: [
'acs_credential_id',
'acs_system_id',
'display_name',
'code',
'external_type',
'external_type_display_name',
Expand Down Expand Up @@ -3303,6 +3307,7 @@ export default {
acs_user_id: { format: 'uuid', type: 'string' },
code: { nullable: true, type: 'string' },
created_at: { format: 'date-time', type: 'string' },
display_name: { minLength: 1, type: 'string' },
external_type: {
enum: ['pti_card', 'brivo_credential'],
type: 'string',
Expand All @@ -3313,6 +3318,7 @@ export default {
required: [
'acs_credential_id',
'acs_system_id',
'display_name',
'code',
'external_type',
'external_type_display_name',
Expand Down
3 changes: 3 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ export interface Routes {
acs_credential_id: string
acs_user_id?: string | undefined
acs_system_id: string
display_name: string
code: string | null
external_type: 'pti_card' | 'brivo_credential'
external_type_display_name: string
Expand Down Expand Up @@ -670,6 +671,7 @@ export interface Routes {
acs_credential_id: string
acs_user_id?: string | undefined
acs_system_id: string
display_name: string
code: string | null
external_type: 'pti_card' | 'brivo_credential'
external_type_display_name: string
Expand Down Expand Up @@ -700,6 +702,7 @@ export interface Routes {
acs_credential_id: string
acs_user_id?: string | undefined
acs_system_id: string
display_name: string
code: string | null
external_type: 'pti_card' | 'brivo_credential'
external_type_display_name: string
Expand Down
2 changes: 1 addition & 1 deletion src/lib/seam/connect/unstable/models/acs/credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export const acs_credential = z.object({
acs_credential_id: z.string().uuid(),
acs_user_id: z.string().uuid().optional(),
acs_system_id: z.string().uuid(),
display_name: z.string().nonempty(),
code: z.string().nullable(),
external_type: acs_credential_external_type,
external_type_display_name: z.string(),
// TODO: credential_type: z.enum([...]) we don't know what enum types we want yet
created_at: z.string().datetime(),
workspace_id: z.string().uuid(),
})
Expand Down

0 comments on commit 3be2293

Please sign in to comment.