Skip to content

Commit 8e1b473

Browse files
authored
feat: Sync with Seam API via 90480164790fd9c1878128ed6a40a58fbeaccdb1 (#2604)
1 parent 057c97c commit 8e1b473

File tree

2 files changed

+210
-0
lines changed

2 files changed

+210
-0
lines changed

src/lib/seam/connect/openapi.ts

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54414,6 +54414,189 @@ export default {
5441454414
'x-undocumented': 'Internal endpoint for customer portals.',
5441554415
},
5441654416
},
54417+
'/seam/customer/v1/connector_customers/list': {
54418+
get: {
54419+
description: 'Lists connector customers for a given connector.',
54420+
operationId: 'seamCustomerV1ConnectorCustomersListGet',
54421+
parameters: [
54422+
{
54423+
in: 'query',
54424+
name: 'connector_id',
54425+
schema: {
54426+
description: 'ID of the connector.',
54427+
format: 'uuid',
54428+
type: 'string',
54429+
},
54430+
},
54431+
],
54432+
responses: {
54433+
200: {
54434+
content: {
54435+
'application/json': {
54436+
schema: {
54437+
properties: {
54438+
connector_customers: {
54439+
items: {
54440+
properties: {
54441+
connector_customer_id: { type: 'string' },
54442+
connector_id: { type: 'string' },
54443+
created_at: { type: 'string' },
54444+
customer_key: { type: 'string' },
54445+
initial_sync_completed: { type: 'boolean' },
54446+
initial_sync_status: {
54447+
nullable: true,
54448+
type: 'string',
54449+
},
54450+
instance_config: {
54451+
additionalProperties: {
54452+
$ref: '#/components/schemas/access_code',
54453+
},
54454+
nullable: true,
54455+
type: 'object',
54456+
},
54457+
status: { nullable: true, type: 'string' },
54458+
updated_at: { type: 'string' },
54459+
},
54460+
required: [
54461+
'connector_customer_id',
54462+
'connector_id',
54463+
'customer_key',
54464+
'instance_config',
54465+
'initial_sync_completed',
54466+
'initial_sync_status',
54467+
'status',
54468+
'created_at',
54469+
'updated_at',
54470+
],
54471+
type: 'object',
54472+
},
54473+
type: 'array',
54474+
},
54475+
ok: { type: 'boolean' },
54476+
},
54477+
required: ['connector_customers', 'ok'],
54478+
type: 'object',
54479+
},
54480+
},
54481+
},
54482+
description: 'OK',
54483+
},
54484+
400: { description: 'Bad Request' },
54485+
401: { description: 'Unauthorized' },
54486+
},
54487+
security: [
54488+
{ api_key: [] },
54489+
{ client_session_with_customer: [] },
54490+
{ console_session_with_workspace: [] },
54491+
],
54492+
summary: '/seam/customer/v1/connector_customers/list',
54493+
tags: [],
54494+
'x-fern-sdk-group-name': [
54495+
'seam',
54496+
'customer',
54497+
'v1',
54498+
'connector_customers',
54499+
],
54500+
'x-fern-sdk-method-name': 'list',
54501+
'x-fern-sdk-return-value': 'connector_customers',
54502+
'x-response-key': 'connector_customers',
54503+
'x-title': 'List Connector Customers',
54504+
'x-undocumented': 'Internal endpoint for Console.',
54505+
},
54506+
post: {
54507+
description: 'Lists connector customers for a given connector.',
54508+
operationId: 'seamCustomerV1ConnectorCustomersListPost',
54509+
requestBody: {
54510+
content: {
54511+
'application/json': {
54512+
schema: {
54513+
properties: {
54514+
connector_id: {
54515+
description: 'ID of the connector.',
54516+
format: 'uuid',
54517+
type: 'string',
54518+
},
54519+
},
54520+
type: 'object',
54521+
},
54522+
},
54523+
},
54524+
},
54525+
responses: {
54526+
200: {
54527+
content: {
54528+
'application/json': {
54529+
schema: {
54530+
properties: {
54531+
connector_customers: {
54532+
items: {
54533+
properties: {
54534+
connector_customer_id: { type: 'string' },
54535+
connector_id: { type: 'string' },
54536+
created_at: { type: 'string' },
54537+
customer_key: { type: 'string' },
54538+
initial_sync_completed: { type: 'boolean' },
54539+
initial_sync_status: {
54540+
nullable: true,
54541+
type: 'string',
54542+
},
54543+
instance_config: {
54544+
additionalProperties: {
54545+
$ref: '#/components/schemas/access_code',
54546+
},
54547+
nullable: true,
54548+
type: 'object',
54549+
},
54550+
status: { nullable: true, type: 'string' },
54551+
updated_at: { type: 'string' },
54552+
},
54553+
required: [
54554+
'connector_customer_id',
54555+
'connector_id',
54556+
'customer_key',
54557+
'instance_config',
54558+
'initial_sync_completed',
54559+
'initial_sync_status',
54560+
'status',
54561+
'created_at',
54562+
'updated_at',
54563+
],
54564+
type: 'object',
54565+
},
54566+
type: 'array',
54567+
},
54568+
ok: { type: 'boolean' },
54569+
},
54570+
required: ['connector_customers', 'ok'],
54571+
type: 'object',
54572+
},
54573+
},
54574+
},
54575+
description: 'OK',
54576+
},
54577+
400: { description: 'Bad Request' },
54578+
401: { description: 'Unauthorized' },
54579+
},
54580+
security: [
54581+
{ api_key: [] },
54582+
{ client_session_with_customer: [] },
54583+
{ console_session_with_workspace: [] },
54584+
],
54585+
summary: '/seam/customer/v1/connector_customers/list',
54586+
tags: [],
54587+
'x-fern-sdk-group-name': [
54588+
'seam',
54589+
'customer',
54590+
'v1',
54591+
'connector_customers',
54592+
],
54593+
'x-fern-sdk-method-name': 'list',
54594+
'x-fern-sdk-return-value': 'connector_customers',
54595+
'x-response-key': 'connector_customers',
54596+
'x-title': 'List Connector Customers',
54597+
'x-undocumented': 'Internal endpoint for Console.',
54598+
},
54599+
},
5441754600
'/seam/customer/v1/connectors/authorize': {
5441854601
get: {
5441954602
description:

src/lib/seam/connect/route-types.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63191,6 +63191,33 @@ export type Routes = {
6319163191
jsonResponse: {}
6319263192
maxDuration: undefined
6319363193
}
63194+
'/seam/customer/v1/connector_customers/list': {
63195+
route: '/seam/customer/v1/connector_customers/list'
63196+
method: 'GET' | 'POST'
63197+
queryParams: {}
63198+
jsonBody: {}
63199+
commonParams: {
63200+
/** ID of the connector. */
63201+
connector_id?: string | undefined
63202+
}
63203+
formData: {}
63204+
jsonResponse: {
63205+
connector_customers: {
63206+
connector_customer_id: string
63207+
connector_id: string
63208+
customer_key: string
63209+
instance_config: {
63210+
[x: string]: any
63211+
} | null
63212+
initial_sync_completed: boolean
63213+
initial_sync_status: string | null
63214+
status: string | null
63215+
created_at: string
63216+
updated_at: string
63217+
}[]
63218+
}
63219+
maxDuration: undefined
63220+
}
6319463221
'/seam/customer/v1/connectors/authorize': {
6319563222
route: '/seam/customer/v1/connectors/authorize'
6319663223
method: 'GET' | 'POST'

0 commit comments

Comments
 (0)