From 6e475f885806a3ff534975fefdaf84d2888b40cf Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 13 Nov 2023 22:22:25 +0000 Subject: [PATCH] Update via seamapi/seam-connect@7743e1b457a5bf82fafaceb4deb1e8e320d084d1 --- src/lib/seam/connect/openapi.ts | 211 +++++++++++++++++- src/lib/seam/connect/route-types.ts | 88 +++++++- .../connect/unstable/models/acs/entrance.ts | 10 + .../seam/connect/unstable/models/acs/index.ts | 1 + .../connect/unstable/models/acs/system.ts | 1 + .../seam/connect/unstable/models/acs/user.ts | 6 +- src/lib/seam/connect/unstable/schemas.ts | 1 + 7 files changed, 300 insertions(+), 18 deletions(-) create mode 100644 src/lib/seam/connect/unstable/models/acs/entrance.ts diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 5cd6196c..68742a5d 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -100,14 +100,26 @@ export default { connected_account_ids: { items: { type: 'string' }, type: 'array' }, created_at: { format: 'date-time', type: 'string' }, external_type: { - enum: ['pti_site', 'alta_org', 'salto_site', 'brivo_system'], + enum: [ + 'pti_site', + 'alta_org', + 'salto_site', + 'brivo_system', + 'hid_cm_org', + ], type: 'string', }, external_type_display_name: { type: 'string' }, name: { type: 'string' }, system_type: { description: 'deprecated: use external_type', - enum: ['pti_site', 'alta_org', 'salto_site', 'brivo_system'], + enum: [ + 'pti_site', + 'alta_org', + 'salto_site', + 'brivo_system', + 'hid_cm_org', + ], type: 'string', }, system_type_display_name: { @@ -139,7 +151,10 @@ export default { type: 'string', }, email_address: { format: 'email', type: 'string' }, - external_type: { enum: ['pti_user', 'brivo_user'], type: 'string' }, + external_type: { + enum: ['pti_user', 'brivo_user', 'hid_cm_user'], + type: 'string', + }, external_type_display_name: { type: 'string' }, full_name: { type: 'string' }, is_suspended: { type: 'boolean' }, @@ -3374,8 +3389,37 @@ export default { content: { 'application/json': { schema: { - properties: { ok: { type: 'boolean' } }, - required: ['ok'], + properties: { + acs_credential: { + properties: { + acs_credential_id: { format: 'uuid', type: 'string' }, + acs_system_id: { format: 'uuid', type: 'string' }, + 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', + }, + external_type_display_name: { type: 'string' }, + workspace_id: { format: 'uuid', type: 'string' }, + }, + required: [ + 'acs_credential_id', + 'acs_system_id', + 'display_name', + 'code', + 'external_type', + 'external_type_display_name', + 'created_at', + 'workspace_id', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['acs_credential', 'ok'], type: 'object', }, }, @@ -3415,8 +3459,37 @@ export default { content: { 'application/json': { schema: { - properties: { ok: { type: 'boolean' } }, - required: ['ok'], + properties: { + acs_credential: { + properties: { + acs_credential_id: { format: 'uuid', type: 'string' }, + acs_system_id: { format: 'uuid', type: 'string' }, + 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', + }, + external_type_display_name: { type: 'string' }, + workspace_id: { format: 'uuid', type: 'string' }, + }, + required: [ + 'acs_credential_id', + 'acs_system_id', + 'display_name', + 'code', + 'external_type', + 'external_type_display_name', + 'created_at', + 'workspace_id', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['acs_credential', 'ok'], type: 'object', }, }, @@ -3437,6 +3510,130 @@ export default { 'x-fern-sdk-method-name': 'unassign', }, }, + '/acs/entrances/get': { + post: { + operationId: 'acsEntrancesGetPost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + acs_entrance_id: { format: 'uuid', type: 'string' }, + }, + required: ['acs_entrance_id'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + acs_entrance: { + properties: { + acs_entrance_id: { format: 'uuid', type: 'string' }, + acs_system_id: { format: 'uuid', type: 'string' }, + created_at: { format: 'date-time', type: 'string' }, + display_name: { type: 'string' }, + }, + required: [ + 'acs_entrance_id', + 'display_name', + 'acs_system_id', + 'created_at', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['acs_entrance', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { api_key: [] }, + { access_token: [] }, + { user_session: [] }, + { client_session: [] }, + ], + summary: '/acs/entrances/get', + tags: [], + 'x-fern-sdk-group-name': ['acs', 'entrances'], + 'x-fern-sdk-method-name': 'get', + }, + }, + '/acs/entrances/list': { + post: { + operationId: 'acsEntrancesListPost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + acs_system_id: { format: 'uuid', type: 'string' }, + }, + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + acs_entrances: { + items: { + properties: { + acs_entrance_id: { format: 'uuid', type: 'string' }, + acs_system_id: { format: 'uuid', type: 'string' }, + created_at: { format: 'date-time', type: 'string' }, + display_name: { type: 'string' }, + }, + required: [ + 'acs_entrance_id', + 'display_name', + 'acs_system_id', + 'created_at', + ], + type: 'object', + }, + type: 'array', + }, + ok: { type: 'boolean' }, + }, + required: ['acs_entrances', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { api_key: [] }, + { access_token: [] }, + { user_session: [] }, + { client_session: [] }, + ], + summary: '/acs/entrances/list', + tags: [], + 'x-fern-sdk-group-name': ['acs', 'entrances'], + 'x-fern-sdk-method-name': 'list', + }, + }, '/acs/systems/get': { post: { operationId: 'acsSystemsGetPost', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index ecbac854..511397a3 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -587,7 +587,7 @@ export interface Routes { workspace_id: string created_at: string display_name: string - external_type: 'pti_user' | 'brivo_user' + external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' external_type_display_name: string is_suspended: boolean full_name?: string | undefined @@ -721,7 +721,55 @@ export interface Routes { } commonParams: {} formData: {} - jsonResponse: {} + jsonResponse: { + acs_credential: { + 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 + created_at: string + workspace_id: string + } + } + } + '/acs/entrances/get': { + route: '/acs/entrances/get' + method: 'GET' | 'POST' + queryParams: {} + jsonBody: {} + commonParams: { + acs_entrance_id: string + } + formData: {} + jsonResponse: { + acs_entrance: { + acs_entrance_id: string + display_name: string + acs_system_id: string + created_at: string + } + } + } + '/acs/entrances/list': { + route: '/acs/entrances/list' + method: 'GET' | 'POST' + queryParams: {} + jsonBody: {} + commonParams: { + acs_system_id?: string | undefined + } + formData: {} + jsonResponse: { + acs_entrances: Array<{ + acs_entrance_id: string + display_name: string + acs_system_id: string + created_at: string + }> + } } '/acs/systems/get': { route: '/acs/systems/get' @@ -735,10 +783,20 @@ export interface Routes { jsonResponse: { acs_system: { acs_system_id: string - external_type: 'pti_site' | 'alta_org' | 'salto_site' | 'brivo_system' + external_type: + | 'pti_site' + | 'alta_org' + | 'salto_site' + | 'brivo_system' + | 'hid_cm_org' external_type_display_name: string /** deprecated: use external_type */ - system_type: 'pti_site' | 'alta_org' | 'salto_site' | 'brivo_system' + system_type: + | 'pti_site' + | 'alta_org' + | 'salto_site' + | 'brivo_system' + | 'hid_cm_org' /** deprecated: use external_type_display_name */ system_type_display_name: string name: string @@ -759,10 +817,20 @@ export interface Routes { jsonResponse: { acs_systems: Array<{ acs_system_id: string - external_type: 'pti_site' | 'alta_org' | 'salto_site' | 'brivo_system' + external_type: + | 'pti_site' + | 'alta_org' + | 'salto_site' + | 'brivo_system' + | 'hid_cm_org' external_type_display_name: string /** deprecated: use external_type */ - system_type: 'pti_site' | 'alta_org' | 'salto_site' | 'brivo_system' + system_type: + | 'pti_site' + | 'alta_org' + | 'salto_site' + | 'brivo_system' + | 'hid_cm_org' /** deprecated: use external_type_display_name */ system_type_display_name: string name: string @@ -805,7 +873,7 @@ export interface Routes { workspace_id: string created_at: string display_name: string - external_type: 'pti_user' | 'brivo_user' + external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' external_type_display_name: string is_suspended: boolean full_name?: string | undefined @@ -843,7 +911,7 @@ export interface Routes { workspace_id: string created_at: string display_name: string - external_type: 'pti_user' | 'brivo_user' + external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' external_type_display_name: string is_suspended: boolean full_name?: string | undefined @@ -870,7 +938,7 @@ export interface Routes { workspace_id: string created_at: string display_name: string - external_type: 'pti_user' | 'brivo_user' + external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' external_type_display_name: string is_suspended: boolean full_name?: string | undefined @@ -8203,7 +8271,7 @@ export interface Routes { workspace_id: string created_at: string display_name: string - external_type: 'pti_user' | 'brivo_user' + external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' external_type_display_name: string is_suspended: boolean full_name?: string | undefined diff --git a/src/lib/seam/connect/unstable/models/acs/entrance.ts b/src/lib/seam/connect/unstable/models/acs/entrance.ts new file mode 100644 index 00000000..ccf33aff --- /dev/null +++ b/src/lib/seam/connect/unstable/models/acs/entrance.ts @@ -0,0 +1,10 @@ +import { z } from 'zod' + +export const acs_entrance = z.object({ + acs_entrance_id: z.string().uuid(), + display_name: z.string(), + acs_system_id: z.string().uuid(), + created_at: z.string().datetime(), +}) + +export type AcsEntrance = z.infer diff --git a/src/lib/seam/connect/unstable/models/acs/index.ts b/src/lib/seam/connect/unstable/models/acs/index.ts index 6aa2acbe..4907f033 100644 --- a/src/lib/seam/connect/unstable/models/acs/index.ts +++ b/src/lib/seam/connect/unstable/models/acs/index.ts @@ -1,4 +1,5 @@ export * from './access_group.js' export * from './credential.js' +export * from './entrance.js' export * from './system.js' export * from './user.js' diff --git a/src/lib/seam/connect/unstable/models/acs/system.ts b/src/lib/seam/connect/unstable/models/acs/system.ts index 39000b70..32ee60e0 100644 --- a/src/lib/seam/connect/unstable/models/acs/system.ts +++ b/src/lib/seam/connect/unstable/models/acs/system.ts @@ -6,6 +6,7 @@ export const acs_system_external_type = z.enum([ 'alta_org', 'salto_site', 'brivo_system', + 'hid_cm_org', ]) export type AcsSystemExternalType = z.infer diff --git a/src/lib/seam/connect/unstable/models/acs/user.ts b/src/lib/seam/connect/unstable/models/acs/user.ts index 4624d906..04a6874f 100644 --- a/src/lib/seam/connect/unstable/models/acs/user.ts +++ b/src/lib/seam/connect/unstable/models/acs/user.ts @@ -1,6 +1,10 @@ import { z } from 'zod' -export const acs_user_external_type = z.enum(['pti_user', 'brivo_user']) +export const acs_user_external_type = z.enum([ + 'pti_user', + 'brivo_user', + 'hid_cm_user', +]) export type AcsUserExternalType = z.infer diff --git a/src/lib/seam/connect/unstable/schemas.ts b/src/lib/seam/connect/unstable/schemas.ts index 27bd953a..9f69c143 100644 --- a/src/lib/seam/connect/unstable/schemas.ts +++ b/src/lib/seam/connect/unstable/schemas.ts @@ -4,6 +4,7 @@ export { acs_access_group_external_type, acs_credential, acs_credential_external_type, + acs_entrance, acs_system, acs_system_external_type, acs_user,