Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 40 additions & 14 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54131,7 +54131,7 @@ export default {
'/seam/customer/v1/connectors/create': {
post: {
description:
'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.',
'Creates a new connector for a customer in a workspace. The connector will be activated and start syncing data from the external API.',
operationId: 'seamCustomerV1ConnectorsCreatePost',
requestBody: {
content: {
Expand Down Expand Up @@ -54220,11 +54220,7 @@ export default {
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
security: [
{ api_key: [] },
{ client_session_with_customer: [] },
{ console_session_with_workspace: [] },
],
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
summary: '/seam/customer/v1/connectors/create',
tags: [],
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
Expand All @@ -54245,11 +54241,15 @@ export default {
'application/json': {
schema: {
properties: {
connector_customer_id: { type: 'string' },
connector_id: {
description: 'ID of the connector to delete',
minLength: 1,
type: 'string',
},
customer_id: { type: 'string' },
customer_key: { type: 'string' },
unique_provider_resource_key: { type: 'string' },
},
required: ['connector_id'],
type: 'object',
Expand Down Expand Up @@ -54284,11 +54284,7 @@ export default {
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
security: [
{ api_key: [] },
{ client_session_with_customer: [] },
{ console_session_with_workspace: [] },
],
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
summary: '/seam/customer/v1/connectors/delete',
tags: [],
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
Expand Down Expand Up @@ -54443,13 +54439,44 @@ export default {
'application/json': {
schema: {
properties: {
connector_customer_id: {
description: 'ID of the connector customer to sync',
format: 'uuid',
nullable: true,
type: 'string',
},
connector_id: {
description: 'ID of the connector to sync',
format: 'uuid',
type: 'string',
},
connector_type: {
description: 'Type of the connector to sync',
type: 'string',
},
customer_id: {
description: 'ID of the customer to sync',
type: 'string',
},
customer_key: {
description: 'Key of the customer to sync',
type: 'string',
},
unique_provider_resource_key: {
description:
'Unique provider resource key of the connector to sync',
nullable: true,
type: 'string',
},
},
required: ['connector_id'],
required: [
'connector_id',
'connector_type',
'customer_id',
'customer_key',
'connector_customer_id',
'unique_provider_resource_key',
],
type: 'object',
},
},
Expand All @@ -54463,11 +54490,10 @@ export default {
properties: {
connector_sync: {
properties: {
connector_id: { type: 'string' },
message: { type: 'string' },
status: { type: 'string' },
},
required: ['connector_id', 'status', 'message'],
required: ['status', 'message'],
type: 'object',
},
ok: { type: 'boolean' },
Expand Down
15 changes: 14 additions & 1 deletion src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62876,6 +62876,10 @@ export type Routes = {
jsonBody: {
/** ID of the connector to delete */
connector_id: string
customer_key?: string | undefined
customer_id?: string | undefined
connector_customer_id?: string | undefined
unique_provider_resource_key?: string | undefined
}
commonParams: {}
formData: {}
Expand Down Expand Up @@ -62917,11 +62921,20 @@ export type Routes = {
commonParams: {
/** ID of the connector to sync */
connector_id: string
/** Type of the connector to sync */
connector_type: string
/** ID of the customer to sync */
customer_id: string
/** Key of the customer to sync */
customer_key: string
/** ID of the connector customer to sync */
connector_customer_id: string | null
/** Unique provider resource key of the connector to sync */
unique_provider_resource_key: string | null
}
formData: {}
jsonResponse: {
connector_sync: {
connector_id: string
status: string
message: string
}
Expand Down