Skip to content

Commit cf07c99

Browse files
committed
feat: Sync with Seam API via 0cea637431f5f19c4d1a9d79b86bc18a7f1491c1
1 parent 68248cc commit cf07c99

File tree

2 files changed

+54
-15
lines changed

2 files changed

+54
-15
lines changed

src/lib/seam/connect/openapi.ts

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54131,7 +54131,7 @@ export default {
5413154131
'/seam/customer/v1/connectors/create': {
5413254132
post: {
5413354133
description:
54134-
'Creates a new connector for a customer in a workspace. The connector will be activated and start syncing data from the external API.\nIf a connector already exists for the same customer, it will be updated instead of creating a new one.',
54134+
'Creates a new connector for a customer in a workspace. The connector will be activated and start syncing data from the external API.',
5413554135
operationId: 'seamCustomerV1ConnectorsCreatePost',
5413654136
requestBody: {
5413754137
content: {
@@ -54220,11 +54220,7 @@ export default {
5422054220
400: { description: 'Bad Request' },
5422154221
401: { description: 'Unauthorized' },
5422254222
},
54223-
security: [
54224-
{ api_key: [] },
54225-
{ client_session_with_customer: [] },
54226-
{ console_session_with_workspace: [] },
54227-
],
54223+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
5422854224
summary: '/seam/customer/v1/connectors/create',
5422954225
tags: [],
5423054226
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
@@ -54245,11 +54241,15 @@ export default {
5424554241
'application/json': {
5424654242
schema: {
5424754243
properties: {
54244+
connector_customer_id: { type: 'string' },
5424854245
connector_id: {
5424954246
description: 'ID of the connector to delete',
5425054247
minLength: 1,
5425154248
type: 'string',
5425254249
},
54250+
customer_id: { type: 'string' },
54251+
customer_key: { type: 'string' },
54252+
unique_provider_resource_key: { type: 'string' },
5425354253
},
5425454254
required: ['connector_id'],
5425554255
type: 'object',
@@ -54284,11 +54284,7 @@ export default {
5428454284
400: { description: 'Bad Request' },
5428554285
401: { description: 'Unauthorized' },
5428654286
},
54287-
security: [
54288-
{ api_key: [] },
54289-
{ client_session_with_customer: [] },
54290-
{ console_session_with_workspace: [] },
54291-
],
54287+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
5429254288
summary: '/seam/customer/v1/connectors/delete',
5429354289
tags: [],
5429454290
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
@@ -54443,13 +54439,44 @@ export default {
5444354439
'application/json': {
5444454440
schema: {
5444554441
properties: {
54442+
connector_customer_id: {
54443+
description: 'ID of the connector customer to sync',
54444+
format: 'uuid',
54445+
nullable: true,
54446+
type: 'string',
54447+
},
5444654448
connector_id: {
5444754449
description: 'ID of the connector to sync',
5444854450
format: 'uuid',
5444954451
type: 'string',
5445054452
},
54453+
connector_type: {
54454+
description: 'Type of the connector to sync',
54455+
type: 'string',
54456+
},
54457+
customer_id: {
54458+
description: 'ID of the customer to sync',
54459+
type: 'string',
54460+
},
54461+
customer_key: {
54462+
description: 'Key of the customer to sync',
54463+
type: 'string',
54464+
},
54465+
unique_provider_resource_key: {
54466+
description:
54467+
'Unique provider resource key of the connector to sync',
54468+
nullable: true,
54469+
type: 'string',
54470+
},
5445154471
},
54452-
required: ['connector_id'],
54472+
required: [
54473+
'connector_id',
54474+
'connector_type',
54475+
'customer_id',
54476+
'customer_key',
54477+
'connector_customer_id',
54478+
'unique_provider_resource_key',
54479+
],
5445354480
type: 'object',
5445454481
},
5445554482
},
@@ -54463,11 +54490,10 @@ export default {
5446354490
properties: {
5446454491
connector_sync: {
5446554492
properties: {
54466-
connector_id: { type: 'string' },
5446754493
message: { type: 'string' },
5446854494
status: { type: 'string' },
5446954495
},
54470-
required: ['connector_id', 'status', 'message'],
54496+
required: ['status', 'message'],
5447154497
type: 'object',
5447254498
},
5447354499
ok: { type: 'boolean' },

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62876,6 +62876,10 @@ export type Routes = {
6287662876
jsonBody: {
6287762877
/** ID of the connector to delete */
6287862878
connector_id: string
62879+
customer_key?: string | undefined
62880+
customer_id?: string | undefined
62881+
connector_customer_id?: string | undefined
62882+
unique_provider_resource_key?: string | undefined
6287962883
}
6288062884
commonParams: {}
6288162885
formData: {}
@@ -62917,11 +62921,20 @@ export type Routes = {
6291762921
commonParams: {
6291862922
/** ID of the connector to sync */
6291962923
connector_id: string
62924+
/** Type of the connector to sync */
62925+
connector_type: string
62926+
/** ID of the customer to sync */
62927+
customer_id: string
62928+
/** Key of the customer to sync */
62929+
customer_key: string
62930+
/** ID of the connector customer to sync */
62931+
connector_customer_id: string | null
62932+
/** Unique provider resource key of the connector to sync */
62933+
unique_provider_resource_key: string | null
6292062934
}
6292162935
formData: {}
6292262936
jsonResponse: {
6292362937
connector_sync: {
62924-
connector_id: string
6292562938
status: string
6292662939
message: string
6292762940
}

0 commit comments

Comments
 (0)