Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Aug 27, 2024
1 parent 0072741 commit 9bf49c8
Show file tree
Hide file tree
Showing 4 changed files with 291 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/lib/seam/connect/models/acs/acs-access-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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<typeof acs_access_group>
export type UnmanagedAcsAccessGroup = z.output<
typeof unmanaged_acs_access_group
>
202 changes: 202 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
},
Expand All @@ -231,6 +232,7 @@ export default {
'external_type',
'external_type_display_name',
'created_at',
'is_managed',
],
type: 'object',
},
Expand Down Expand Up @@ -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',
Expand Down
77 changes: 77 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2359,6 +2359,7 @@ export interface Routes {
| 'brivo_group'
external_type_display_name: string
created_at: string
is_managed: true
}
}
}
Expand Down Expand Up @@ -2396,6 +2397,7 @@ export interface Routes {
| 'brivo_group'
external_type_display_name: string
created_at: string
is_managed: true
}>
}
}
Expand Down Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions src/lib/seam/connect/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export {
noise_threshold,
seam_event,
unmanaged_access_code,
unmanaged_acs_access_group,
unmanaged_acs_credential,
unmanaged_device,
user_identity,
Expand Down

0 comments on commit 9bf49c8

Please sign in to comment.