Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Nov 13, 2023
1 parent ad366af commit 98ada99
Show file tree
Hide file tree
Showing 7 changed files with 300 additions and 18 deletions.
211 changes: 204 additions & 7 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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' },
Expand Down Expand Up @@ -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',
},
},
Expand Down Expand Up @@ -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',
},
},
Expand All @@ -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',
Expand Down
88 changes: 78 additions & 10 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit 98ada99

Please sign in to comment.