From 9bf49c894d54b2c16775afbb390bf57d1beeeba4 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 27 Aug 2024 16:04:48 -0700 Subject: [PATCH] Update via seamapi/seam-connect@85e52300a88a34f25340972050ecc938b2bfd016 (#1046) --- .../connect/models/acs/acs-access-group.ts | 12 +- src/lib/seam/connect/openapi.ts | 202 ++++++++++++++++++ src/lib/seam/connect/route-types.ts | 77 +++++++ src/lib/seam/connect/schemas.ts | 1 + 4 files changed, 291 insertions(+), 1 deletion(-) diff --git a/src/lib/seam/connect/models/acs/acs-access-group.ts b/src/lib/seam/connect/models/acs/acs-access-group.ts index 1344d4a5..ec96d4bc 100644 --- a/src/lib/seam/connect/models/acs/acs-access-group.ts +++ b/src/lib/seam/connect/models/acs/acs-access-group.ts @@ -12,7 +12,7 @@ export type AcsAccessGroupExternalType = z.infer< typeof acs_access_group_external_type > -export const acs_access_group = z.object({ +const common_acs_access_group = z.object({ acs_access_group_id: z.string().uuid(), acs_system_id: z.string().uuid(), workspace_id: z.string().uuid(), @@ -33,4 +33,14 @@ export const acs_access_group = z.object({ created_at: z.string().datetime(), }) +export const acs_access_group = common_acs_access_group.extend({ + is_managed: z.literal(true), +}) +export const unmanaged_acs_access_group = common_acs_access_group.extend({ + is_managed: z.literal(false), +}) + export type AcsAccessGroup = z.output +export type UnmanagedAcsAccessGroup = z.output< + typeof unmanaged_acs_access_group +> diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index fef173fc..ed8f72c2 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -217,6 +217,7 @@ export default { type: 'string', }, external_type_display_name: { type: 'string' }, + is_managed: { enum: [true], type: 'boolean' }, name: { type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, }, @@ -231,6 +232,7 @@ export default { 'external_type', 'external_type_display_name', 'created_at', + 'is_managed', ], type: 'object', }, @@ -5479,6 +5481,206 @@ export default { 'x-fern-sdk-method-name': 'remove_user', }, }, + '/acs/access_groups/unmanaged/get': { + post: { + operationId: 'acsAccessGroupsUnmanagedGetPost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + acs_access_group_id: { format: 'uuid', type: 'string' }, + }, + required: ['acs_access_group_id'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + acs_access_group: { + properties: { + access_group_type: { + deprecated: true, + enum: [ + 'pti_unit', + 'pti_access_level', + 'salto_access_group', + 'brivo_group', + ], + type: 'string', + 'x-deprecated': 'use external_type', + }, + access_group_type_display_name: { + deprecated: true, + type: 'string', + 'x-deprecated': 'use external_type_display_name', + }, + acs_access_group_id: { format: 'uuid', type: 'string' }, + acs_system_id: { format: 'uuid', type: 'string' }, + created_at: { format: 'date-time', type: 'string' }, + display_name: { type: 'string' }, + external_type: { + enum: [ + 'pti_unit', + 'pti_access_level', + 'salto_access_group', + 'brivo_group', + ], + type: 'string', + }, + external_type_display_name: { type: 'string' }, + is_managed: { enum: [false], type: 'boolean' }, + name: { type: 'string' }, + workspace_id: { format: 'uuid', type: 'string' }, + }, + required: [ + 'acs_access_group_id', + 'acs_system_id', + 'workspace_id', + 'name', + 'access_group_type', + 'access_group_type_display_name', + 'display_name', + 'external_type', + 'external_type_display_name', + 'created_at', + 'is_managed', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['acs_access_group', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session: [] }, + { api_key: [] }, + ], + summary: '/acs/access_groups/unmanaged/get', + tags: ['/acs'], + 'x-fern-sdk-group-name': ['acs', 'access_groups', 'unmanaged'], + 'x-fern-sdk-method-name': 'get', + 'x-fern-sdk-return-value': 'acs_users', + }, + }, + '/acs/access_groups/unmanaged/list': { + post: { + operationId: 'acsAccessGroupsUnmanagedListPost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + acs_system_id: { format: 'uuid', type: 'string' }, + acs_user_id: { format: 'uuid', type: 'string' }, + }, + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + acs_access_groups: { + items: { + properties: { + access_group_type: { + deprecated: true, + enum: [ + 'pti_unit', + 'pti_access_level', + 'salto_access_group', + 'brivo_group', + ], + type: 'string', + 'x-deprecated': 'use external_type', + }, + access_group_type_display_name: { + deprecated: true, + type: 'string', + 'x-deprecated': 'use external_type_display_name', + }, + acs_access_group_id: { + format: 'uuid', + type: 'string', + }, + acs_system_id: { format: 'uuid', type: 'string' }, + created_at: { format: 'date-time', type: 'string' }, + display_name: { type: 'string' }, + external_type: { + enum: [ + 'pti_unit', + 'pti_access_level', + 'salto_access_group', + 'brivo_group', + ], + type: 'string', + }, + external_type_display_name: { type: 'string' }, + is_managed: { enum: [false], type: 'boolean' }, + name: { type: 'string' }, + workspace_id: { format: 'uuid', type: 'string' }, + }, + required: [ + 'acs_access_group_id', + 'acs_system_id', + 'workspace_id', + 'name', + 'access_group_type', + 'access_group_type_display_name', + 'display_name', + 'external_type', + 'external_type_display_name', + 'created_at', + 'is_managed', + ], + type: 'object', + }, + type: 'array', + }, + ok: { type: 'boolean' }, + }, + required: ['acs_access_groups', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session: [] }, + { api_key: [] }, + ], + summary: '/acs/access_groups/unmanaged/list', + tags: ['/acs'], + 'x-fern-sdk-group-name': ['acs', 'access_groups', 'unmanaged'], + 'x-fern-sdk-method-name': 'list', + 'x-fern-sdk-return-value': 'acs_users', + }, + }, '/acs/credential_pools/list': { post: { operationId: 'acsCredentialPoolsListPost', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 6b9150c9..88cb6d6c 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -2359,6 +2359,7 @@ export interface Routes { | 'brivo_group' external_type_display_name: string created_at: string + is_managed: true } } } @@ -2396,6 +2397,7 @@ export interface Routes { | 'brivo_group' external_type_display_name: string created_at: string + is_managed: true }> } } @@ -2513,6 +2515,81 @@ export interface Routes { formData: {} jsonResponse: {} } + '/acs/access_groups/unmanaged/get': { + route: '/acs/access_groups/unmanaged/get' + method: 'GET' | 'POST' + queryParams: {} + jsonBody: {} + commonParams: { + acs_access_group_id: string + } + formData: {} + jsonResponse: { + acs_access_group: { + acs_access_group_id: string + acs_system_id: string + workspace_id: string + name: string + /** + * @deprecated use external_type */ + access_group_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' + /** + * @deprecated use external_type_display_name */ + access_group_type_display_name: string + display_name: string + external_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' + external_type_display_name: string + created_at: string + is_managed: false + } + } + } + '/acs/access_groups/unmanaged/list': { + route: '/acs/access_groups/unmanaged/list' + method: 'GET' | 'POST' + queryParams: {} + jsonBody: {} + commonParams: { + acs_system_id?: string | undefined + acs_user_id?: string | undefined + } + formData: {} + jsonResponse: { + acs_access_groups: Array<{ + acs_access_group_id: string + acs_system_id: string + workspace_id: string + name: string + /** + * @deprecated use external_type */ + access_group_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' + /** + * @deprecated use external_type_display_name */ + access_group_type_display_name: string + display_name: string + external_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' + external_type_display_name: string + created_at: string + is_managed: false + }> + } + } '/acs/credential_pools/list': { route: '/acs/credential_pools/list' method: 'GET' | 'POST' diff --git a/src/lib/seam/connect/schemas.ts b/src/lib/seam/connect/schemas.ts index 057a9f04..4f5b7761 100644 --- a/src/lib/seam/connect/schemas.ts +++ b/src/lib/seam/connect/schemas.ts @@ -17,6 +17,7 @@ export { noise_threshold, seam_event, unmanaged_access_code, + unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_device, user_identity,