@seamapi/types 1.623.0 → 1.624.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57281,7 +57281,7 @@ export type Routes = {
57281
57281
  /** Type of connector to create */
57282
57282
  connector_type: 'mews' | 'mock';
57283
57283
  /** Key identifying the customer */
57284
- customer_key: string;
57284
+ customer_key?: string | undefined;
57285
57285
  /** Instance-specific configuration for the connector */
57286
57286
  config: {
57287
57287
  client_token?: string | undefined;
@@ -57308,6 +57308,26 @@ export type Routes = {
57308
57308
  };
57309
57309
  };
57310
57310
  };
57311
+ '/seam/customer/v1/connectors/list': {
57312
+ route: '/seam/customer/v1/connectors/list';
57313
+ method: 'GET' | 'POST';
57314
+ queryParams: {};
57315
+ jsonBody: {};
57316
+ commonParams: {};
57317
+ formData: {};
57318
+ jsonResponse: {
57319
+ connectors: {
57320
+ connector_id: string;
57321
+ connector_type: string;
57322
+ status: 'active' | 'inactive' | 'error';
57323
+ config: {
57324
+ [x: string]: any;
57325
+ };
57326
+ created_at: string;
57327
+ updated_at: string;
57328
+ }[];
57329
+ };
57330
+ };
57311
57331
  '/seam/customer/v1/connectors/sync': {
57312
57332
  route: '/seam/customer/v1/connectors/sync';
57313
57333
  method: 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.623.0",
3
+ "version": "1.624.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -52463,7 +52463,7 @@ export default {
52463
52463
  '/seam/customer/v1/connectors/create': {
52464
52464
  post: {
52465
52465
  description:
52466
- 'Creates a new connector for a customer in a workspace. The connector will be activated and start syncing data from the external API.',
52466
+ '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 with the same unique_provider_resource_key, it will be updated instead of creating a new one.',
52467
52467
  operationId: 'seamCustomerV1ConnectorsCreatePost',
52468
52468
  requestBody: {
52469
52469
  content: {
@@ -52505,7 +52505,7 @@ export default {
52505
52505
  type: 'string',
52506
52506
  },
52507
52507
  },
52508
- required: ['connector_type', 'customer_key', 'config'],
52508
+ required: ['connector_type', 'config'],
52509
52509
  type: 'object',
52510
52510
  },
52511
52511
  },
@@ -52563,7 +52563,11 @@ export default {
52563
52563
  400: { description: 'Bad Request' },
52564
52564
  401: { description: 'Unauthorized' },
52565
52565
  },
52566
- security: [{ api_key: [] }],
52566
+ security: [
52567
+ { api_key: [] },
52568
+ { client_session_with_customer: [] },
52569
+ { console_session_with_workspace: [] },
52570
+ ],
52567
52571
  summary: '/seam/customer/v1/connectors/create',
52568
52572
  tags: [],
52569
52573
  'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
@@ -52571,6 +52575,141 @@ export default {
52571
52575
  'x-fern-sdk-return-value': 'connector',
52572
52576
  'x-response-key': 'connector',
52573
52577
  'x-title': 'Create Connector',
52578
+ 'x-undocumented': 'Internal endpoint for Console.',
52579
+ },
52580
+ },
52581
+ '/seam/customer/v1/connectors/list': {
52582
+ get: {
52583
+ description:
52584
+ 'Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).',
52585
+ operationId: 'seamCustomerV1ConnectorsListGet',
52586
+ responses: {
52587
+ 200: {
52588
+ content: {
52589
+ 'application/json': {
52590
+ schema: {
52591
+ properties: {
52592
+ connectors: {
52593
+ items: {
52594
+ properties: {
52595
+ config: {
52596
+ additionalProperties: {
52597
+ $ref: '#/components/schemas/access_code',
52598
+ },
52599
+ type: 'object',
52600
+ },
52601
+ connector_id: { type: 'string' },
52602
+ connector_type: { type: 'string' },
52603
+ created_at: { type: 'string' },
52604
+ status: {
52605
+ enum: ['active', 'inactive', 'error'],
52606
+ type: 'string',
52607
+ },
52608
+ updated_at: { type: 'string' },
52609
+ },
52610
+ required: [
52611
+ 'connector_id',
52612
+ 'connector_type',
52613
+ 'status',
52614
+ 'config',
52615
+ 'created_at',
52616
+ 'updated_at',
52617
+ ],
52618
+ type: 'object',
52619
+ },
52620
+ type: 'array',
52621
+ },
52622
+ ok: { type: 'boolean' },
52623
+ },
52624
+ required: ['connectors', 'ok'],
52625
+ type: 'object',
52626
+ },
52627
+ },
52628
+ },
52629
+ description: 'OK',
52630
+ },
52631
+ 400: { description: 'Bad Request' },
52632
+ 401: { description: 'Unauthorized' },
52633
+ },
52634
+ security: [
52635
+ { api_key: [] },
52636
+ { client_session_with_customer: [] },
52637
+ { console_session_with_workspace: [] },
52638
+ ],
52639
+ summary: '/seam/customer/v1/connectors/list',
52640
+ tags: [],
52641
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
52642
+ 'x-fern-sdk-method-name': 'list',
52643
+ 'x-fern-sdk-return-value': 'connectors',
52644
+ 'x-response-key': 'connectors',
52645
+ 'x-title': 'List Connectors',
52646
+ 'x-undocumented': 'Internal endpoint for Console.',
52647
+ },
52648
+ post: {
52649
+ description:
52650
+ 'Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).',
52651
+ operationId: 'seamCustomerV1ConnectorsListPost',
52652
+ responses: {
52653
+ 200: {
52654
+ content: {
52655
+ 'application/json': {
52656
+ schema: {
52657
+ properties: {
52658
+ connectors: {
52659
+ items: {
52660
+ properties: {
52661
+ config: {
52662
+ additionalProperties: {
52663
+ $ref: '#/components/schemas/access_code',
52664
+ },
52665
+ type: 'object',
52666
+ },
52667
+ connector_id: { type: 'string' },
52668
+ connector_type: { type: 'string' },
52669
+ created_at: { type: 'string' },
52670
+ status: {
52671
+ enum: ['active', 'inactive', 'error'],
52672
+ type: 'string',
52673
+ },
52674
+ updated_at: { type: 'string' },
52675
+ },
52676
+ required: [
52677
+ 'connector_id',
52678
+ 'connector_type',
52679
+ 'status',
52680
+ 'config',
52681
+ 'created_at',
52682
+ 'updated_at',
52683
+ ],
52684
+ type: 'object',
52685
+ },
52686
+ type: 'array',
52687
+ },
52688
+ ok: { type: 'boolean' },
52689
+ },
52690
+ required: ['connectors', 'ok'],
52691
+ type: 'object',
52692
+ },
52693
+ },
52694
+ },
52695
+ description: 'OK',
52696
+ },
52697
+ 400: { description: 'Bad Request' },
52698
+ 401: { description: 'Unauthorized' },
52699
+ },
52700
+ security: [
52701
+ { api_key: [] },
52702
+ { client_session_with_customer: [] },
52703
+ { console_session_with_workspace: [] },
52704
+ ],
52705
+ summary: '/seam/customer/v1/connectors/list',
52706
+ tags: [],
52707
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
52708
+ 'x-fern-sdk-method-name': 'list',
52709
+ 'x-fern-sdk-return-value': 'connectors',
52710
+ 'x-response-key': 'connectors',
52711
+ 'x-title': 'List Connectors',
52712
+ 'x-undocumented': 'Internal endpoint for Console.',
52574
52713
  },
52575
52714
  },
52576
52715
  '/seam/customer/v1/connectors/sync': {
@@ -68095,7 +68095,7 @@ export type Routes = {
68095
68095
  /** Type of connector to create */
68096
68096
  connector_type: 'mews' | 'mock'
68097
68097
  /** Key identifying the customer */
68098
- customer_key: string
68098
+ customer_key?: string | undefined
68099
68099
  /** Instance-specific configuration for the connector */
68100
68100
  config:
68101
68101
  | {
@@ -68126,6 +68126,26 @@ export type Routes = {
68126
68126
  }
68127
68127
  }
68128
68128
  }
68129
+ '/seam/customer/v1/connectors/list': {
68130
+ route: '/seam/customer/v1/connectors/list'
68131
+ method: 'GET' | 'POST'
68132
+ queryParams: {}
68133
+ jsonBody: {}
68134
+ commonParams: {}
68135
+ formData: {}
68136
+ jsonResponse: {
68137
+ connectors: {
68138
+ connector_id: string
68139
+ connector_type: string
68140
+ status: 'active' | 'inactive' | 'error'
68141
+ config: {
68142
+ [x: string]: any
68143
+ }
68144
+ created_at: string
68145
+ updated_at: string
68146
+ }[]
68147
+ }
68148
+ }
68129
68149
  '/seam/customer/v1/connectors/sync': {
68130
68150
  route: '/seam/customer/v1/connectors/sync'
68131
68151
  method: 'POST'