@seamapi/types 1.687.0 → 1.689.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.
@@ -11653,7 +11653,8 @@ export type Routes = {
11653
11653
  connected_account_id: string;
11654
11654
  /** Date and time at which the connected account was created. */
11655
11655
  created_at?: string | undefined;
11656
- /** User identifier associated with the connected account. */
11656
+ /** User identifier associated with the connected account.
11657
+ * @deprecated Use `display_name` instead.*/
11657
11658
  user_identifier?: {
11658
11659
  /** Username of the user identifier associated with the connected account. */
11659
11660
  username?: string | undefined;
@@ -11670,6 +11671,8 @@ export type Routes = {
11670
11671
  account_type?: string | undefined;
11671
11672
  /** Display name for the connected account type. */
11672
11673
  account_type_display_name: string;
11674
+ /** Display name for the connected account. */
11675
+ display_name: string;
11673
11676
  /** Errors associated with the connected account. */
11674
11677
  errors: ({
11675
11678
  /** Date and time at which Seam created the error. */
@@ -26151,7 +26154,8 @@ export type Routes = {
26151
26154
  connected_account_id: string;
26152
26155
  /** Date and time at which the connected account was created. */
26153
26156
  created_at?: string | undefined;
26154
- /** User identifier associated with the connected account. */
26157
+ /** User identifier associated with the connected account.
26158
+ * @deprecated Use `display_name` instead.*/
26155
26159
  user_identifier?: {
26156
26160
  /** Username of the user identifier associated with the connected account. */
26157
26161
  username?: string | undefined;
@@ -26168,6 +26172,8 @@ export type Routes = {
26168
26172
  account_type?: string | undefined;
26169
26173
  /** Display name for the connected account type. */
26170
26174
  account_type_display_name: string;
26175
+ /** Display name for the connected account. */
26176
+ display_name: string;
26171
26177
  /** Errors associated with the connected account. */
26172
26178
  errors: ({
26173
26179
  /** Date and time at which Seam created the error. */
@@ -26303,7 +26309,8 @@ export type Routes = {
26303
26309
  connected_account_id: string;
26304
26310
  /** Date and time at which the connected account was created. */
26305
26311
  created_at?: string | undefined;
26306
- /** User identifier associated with the connected account. */
26312
+ /** User identifier associated with the connected account.
26313
+ * @deprecated Use `display_name` instead.*/
26307
26314
  user_identifier?: {
26308
26315
  /** Username of the user identifier associated with the connected account. */
26309
26316
  username?: string | undefined;
@@ -26320,6 +26327,8 @@ export type Routes = {
26320
26327
  account_type?: string | undefined;
26321
26328
  /** Display name for the connected account type. */
26322
26329
  account_type_display_name: string;
26330
+ /** Display name for the connected account. */
26331
+ display_name: string;
26323
26332
  /** Errors associated with the connected account. */
26324
26333
  errors: ({
26325
26334
  /** Date and time at which Seam created the error. */
@@ -26489,7 +26498,8 @@ export type Routes = {
26489
26498
  connected_account_id: string;
26490
26499
  /** Date and time at which the connected account was created. */
26491
26500
  created_at?: string | undefined;
26492
- /** User identifier associated with the connected account. */
26501
+ /** User identifier associated with the connected account.
26502
+ * @deprecated Use `display_name` instead.*/
26493
26503
  user_identifier?: {
26494
26504
  /** Username of the user identifier associated with the connected account. */
26495
26505
  username?: string | undefined;
@@ -26506,6 +26516,8 @@ export type Routes = {
26506
26516
  account_type?: string | undefined;
26507
26517
  /** Display name for the connected account type. */
26508
26518
  account_type_display_name: string;
26519
+ /** Display name for the connected account. */
26520
+ display_name: string;
26509
26521
  /** Errors associated with the connected account. */
26510
26522
  errors: ({
26511
26523
  /** Date and time at which Seam created the error. */
@@ -52549,6 +52561,10 @@ export type Routes = {
52549
52561
  jsonBody: {
52550
52562
  /** ID of the connector to delete */
52551
52563
  connector_id: string;
52564
+ customer_key?: string | undefined;
52565
+ customer_id?: string | undefined;
52566
+ connector_customer_id?: string | undefined;
52567
+ unique_provider_resource_key?: string | undefined;
52552
52568
  };
52553
52569
  commonParams: {};
52554
52570
  formData: {};
@@ -52590,11 +52606,20 @@ export type Routes = {
52590
52606
  commonParams: {
52591
52607
  /** ID of the connector to sync */
52592
52608
  connector_id: string;
52609
+ /** Type of the connector to sync */
52610
+ connector_type: string;
52611
+ /** ID of the customer to sync */
52612
+ customer_id: string;
52613
+ /** Key of the customer to sync */
52614
+ customer_key: string;
52615
+ /** ID of the connector customer to sync */
52616
+ connector_customer_id: string | null;
52617
+ /** Unique provider resource key of the connector to sync */
52618
+ unique_provider_resource_key: string | null;
52593
52619
  };
52594
52620
  formData: {};
52595
52621
  jsonResponse: {
52596
52622
  connector_sync: {
52597
- connector_id: string;
52598
52623
  status: string;
52599
52624
  message: string;
52600
52625
  };
@@ -57287,7 +57312,8 @@ export type Routes = {
57287
57312
  connected_account_id: string;
57288
57313
  /** Date and time at which the connected account was created. */
57289
57314
  created_at?: string | undefined;
57290
- /** User identifier associated with the connected account. */
57315
+ /** User identifier associated with the connected account.
57316
+ * @deprecated Use `display_name` instead.*/
57291
57317
  user_identifier?: {
57292
57318
  /** Username of the user identifier associated with the connected account. */
57293
57319
  username?: string | undefined;
@@ -57304,6 +57330,8 @@ export type Routes = {
57304
57330
  account_type?: string | undefined;
57305
57331
  /** Display name for the connected account type. */
57306
57332
  account_type_display_name: string;
57333
+ /** Display name for the connected account. */
57334
+ display_name: string;
57307
57335
  /** Errors associated with the connected account. */
57308
57336
  errors: ({
57309
57337
  /** Date and time at which Seam created the error. */
@@ -81196,7 +81224,8 @@ export type Routes = {
81196
81224
  connected_account_id: string;
81197
81225
  /** Date and time at which the connected account was created. */
81198
81226
  created_at?: string | undefined;
81199
- /** User identifier associated with the connected account. */
81227
+ /** User identifier associated with the connected account.
81228
+ * @deprecated Use `display_name` instead.*/
81200
81229
  user_identifier?: {
81201
81230
  /** Username of the user identifier associated with the connected account. */
81202
81231
  username?: string | undefined;
@@ -81213,6 +81242,8 @@ export type Routes = {
81213
81242
  account_type?: string | undefined;
81214
81243
  /** Display name for the connected account type. */
81215
81244
  account_type_display_name: string;
81245
+ /** Display name for the connected account. */
81246
+ display_name: string;
81216
81247
  /** Errors associated with the connected account. */
81217
81248
  errors: ({
81218
81249
  /** Date and time at which Seam created the error. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.687.0",
3
+ "version": "1.689.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -292,12 +292,17 @@ export const connected_account = z.object({
292
292
  'Indicates whether the user identifier associated with the connected account is exclusive.',
293
293
  ),
294
294
  })
295
- .optional()
296
- .describe('User identifier associated with the connected account.'),
295
+ .optional().describe(`
296
+ ---
297
+ deprecated: Use \`display_name\` instead.
298
+ ---
299
+ User identifier associated with the connected account.
300
+ `),
297
301
  account_type: z.string().optional().describe('Type of connected account.'),
298
302
  account_type_display_name: z
299
303
  .string()
300
304
  .describe('Display name for the connected account type.'),
305
+ display_name: z.string().describe('Display name for the connected account.'),
301
306
  errors: z
302
307
  .array(connected_account_error)
303
308
  .describe('Errors associated with the connected account.'),
@@ -9227,6 +9227,10 @@ export default {
9227
9227
  'Your unique key for the customer associated with this connected account.',
9228
9228
  type: 'string',
9229
9229
  },
9230
+ display_name: {
9231
+ description: 'Display name for the connected account.',
9232
+ type: 'string',
9233
+ },
9230
9234
  errors: {
9231
9235
  description: 'Errors associated with the connected account.',
9232
9236
  items: {
@@ -9394,6 +9398,7 @@ export default {
9394
9398
  type: 'array',
9395
9399
  },
9396
9400
  user_identifier: {
9401
+ deprecated: true,
9397
9402
  description:
9398
9403
  'User identifier associated with the connected account.',
9399
9404
  properties: {
@@ -9424,6 +9429,7 @@ export default {
9424
9429
  },
9425
9430
  },
9426
9431
  type: 'object',
9432
+ 'x-deprecated': 'Use `display_name` instead.',
9427
9433
  },
9428
9434
  warnings: {
9429
9435
  description: 'Warnings associated with the connected account.',
@@ -9592,6 +9598,7 @@ export default {
9592
9598
  required: [
9593
9599
  'connected_account_id',
9594
9600
  'account_type_display_name',
9601
+ 'display_name',
9595
9602
  'errors',
9596
9603
  'warnings',
9597
9604
  'custom_metadata',
@@ -54124,7 +54131,7 @@ export default {
54124
54131
  '/seam/customer/v1/connectors/create': {
54125
54132
  post: {
54126
54133
  description:
54127
- '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.',
54128
54135
  operationId: 'seamCustomerV1ConnectorsCreatePost',
54129
54136
  requestBody: {
54130
54137
  content: {
@@ -54213,11 +54220,7 @@ export default {
54213
54220
  400: { description: 'Bad Request' },
54214
54221
  401: { description: 'Unauthorized' },
54215
54222
  },
54216
- security: [
54217
- { api_key: [] },
54218
- { client_session_with_customer: [] },
54219
- { console_session_with_workspace: [] },
54220
- ],
54223
+ security: [{ api_key: [] }, { console_session_with_workspace: [] }],
54221
54224
  summary: '/seam/customer/v1/connectors/create',
54222
54225
  tags: [],
54223
54226
  'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
@@ -54238,11 +54241,15 @@ export default {
54238
54241
  'application/json': {
54239
54242
  schema: {
54240
54243
  properties: {
54244
+ connector_customer_id: { type: 'string' },
54241
54245
  connector_id: {
54242
54246
  description: 'ID of the connector to delete',
54243
54247
  minLength: 1,
54244
54248
  type: 'string',
54245
54249
  },
54250
+ customer_id: { type: 'string' },
54251
+ customer_key: { type: 'string' },
54252
+ unique_provider_resource_key: { type: 'string' },
54246
54253
  },
54247
54254
  required: ['connector_id'],
54248
54255
  type: 'object',
@@ -54277,11 +54284,7 @@ export default {
54277
54284
  400: { description: 'Bad Request' },
54278
54285
  401: { description: 'Unauthorized' },
54279
54286
  },
54280
- security: [
54281
- { api_key: [] },
54282
- { client_session_with_customer: [] },
54283
- { console_session_with_workspace: [] },
54284
- ],
54287
+ security: [{ api_key: [] }, { console_session_with_workspace: [] }],
54285
54288
  summary: '/seam/customer/v1/connectors/delete',
54286
54289
  tags: [],
54287
54290
  'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
@@ -54436,13 +54439,44 @@ export default {
54436
54439
  'application/json': {
54437
54440
  schema: {
54438
54441
  properties: {
54442
+ connector_customer_id: {
54443
+ description: 'ID of the connector customer to sync',
54444
+ format: 'uuid',
54445
+ nullable: true,
54446
+ type: 'string',
54447
+ },
54439
54448
  connector_id: {
54440
54449
  description: 'ID of the connector to sync',
54441
54450
  format: 'uuid',
54442
54451
  type: 'string',
54443
54452
  },
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
+ },
54444
54471
  },
54445
- 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
+ ],
54446
54480
  type: 'object',
54447
54481
  },
54448
54482
  },
@@ -54456,11 +54490,10 @@ export default {
54456
54490
  properties: {
54457
54491
  connector_sync: {
54458
54492
  properties: {
54459
- connector_id: { type: 'string' },
54460
54493
  message: { type: 'string' },
54461
54494
  status: { type: 'string' },
54462
54495
  },
54463
- required: ['connector_id', 'status', 'message'],
54496
+ required: ['status', 'message'],
54464
54497
  type: 'object',
54465
54498
  },
54466
54499
  ok: { type: 'boolean' },
@@ -13320,7 +13320,8 @@ export type Routes = {
13320
13320
  connected_account_id: string
13321
13321
  /** Date and time at which the connected account was created. */
13322
13322
  created_at?: string | undefined
13323
- /** User identifier associated with the connected account. */
13323
+ /** User identifier associated with the connected account.
13324
+ * @deprecated Use `display_name` instead.*/
13324
13325
  user_identifier?:
13325
13326
  | {
13326
13327
  /** Username of the user identifier associated with the connected account. */
@@ -13339,6 +13340,8 @@ export type Routes = {
13339
13340
  account_type?: string | undefined
13340
13341
  /** Display name for the connected account type. */
13341
13342
  account_type_display_name: string
13343
+ /** Display name for the connected account. */
13344
+ display_name: string
13342
13345
  /** Errors associated with the connected account. */
13343
13346
  errors: (
13344
13347
  | {
@@ -30276,7 +30279,8 @@ export type Routes = {
30276
30279
  connected_account_id: string
30277
30280
  /** Date and time at which the connected account was created. */
30278
30281
  created_at?: string | undefined
30279
- /** User identifier associated with the connected account. */
30282
+ /** User identifier associated with the connected account.
30283
+ * @deprecated Use `display_name` instead.*/
30280
30284
  user_identifier?:
30281
30285
  | {
30282
30286
  /** Username of the user identifier associated with the connected account. */
@@ -30295,6 +30299,8 @@ export type Routes = {
30295
30299
  account_type?: string | undefined
30296
30300
  /** Display name for the connected account type. */
30297
30301
  account_type_display_name: string
30302
+ /** Display name for the connected account. */
30303
+ display_name: string
30298
30304
  /** Errors associated with the connected account. */
30299
30305
  errors: (
30300
30306
  | {
@@ -30446,7 +30452,8 @@ export type Routes = {
30446
30452
  connected_account_id: string
30447
30453
  /** Date and time at which the connected account was created. */
30448
30454
  created_at?: string | undefined
30449
- /** User identifier associated with the connected account. */
30455
+ /** User identifier associated with the connected account.
30456
+ * @deprecated Use `display_name` instead.*/
30450
30457
  user_identifier?:
30451
30458
  | {
30452
30459
  /** Username of the user identifier associated with the connected account. */
@@ -30465,6 +30472,8 @@ export type Routes = {
30465
30472
  account_type?: string | undefined
30466
30473
  /** Display name for the connected account type. */
30467
30474
  account_type_display_name: string
30475
+ /** Display name for the connected account. */
30476
+ display_name: string
30468
30477
  /** Errors associated with the connected account. */
30469
30478
  errors: (
30470
30479
  | {
@@ -30652,7 +30661,8 @@ export type Routes = {
30652
30661
  connected_account_id: string
30653
30662
  /** Date and time at which the connected account was created. */
30654
30663
  created_at?: string | undefined
30655
- /** User identifier associated with the connected account. */
30664
+ /** User identifier associated with the connected account.
30665
+ * @deprecated Use `display_name` instead.*/
30656
30666
  user_identifier?:
30657
30667
  | {
30658
30668
  /** Username of the user identifier associated with the connected account. */
@@ -30671,6 +30681,8 @@ export type Routes = {
30671
30681
  account_type?: string | undefined
30672
30682
  /** Display name for the connected account type. */
30673
30683
  account_type_display_name: string
30684
+ /** Display name for the connected account. */
30685
+ display_name: string
30674
30686
  /** Errors associated with the connected account. */
30675
30687
  errors: (
30676
30688
  | {
@@ -62864,6 +62876,10 @@ export type Routes = {
62864
62876
  jsonBody: {
62865
62877
  /** ID of the connector to delete */
62866
62878
  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
62867
62883
  }
62868
62884
  commonParams: {}
62869
62885
  formData: {}
@@ -62905,11 +62921,20 @@ export type Routes = {
62905
62921
  commonParams: {
62906
62922
  /** ID of the connector to sync */
62907
62923
  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
62908
62934
  }
62909
62935
  formData: {}
62910
62936
  jsonResponse: {
62911
62937
  connector_sync: {
62912
- connector_id: string
62913
62938
  status: string
62914
62939
  message: string
62915
62940
  }
@@ -68658,7 +68683,8 @@ export type Routes = {
68658
68683
  connected_account_id: string
68659
68684
  /** Date and time at which the connected account was created. */
68660
68685
  created_at?: string | undefined
68661
- /** User identifier associated with the connected account. */
68686
+ /** User identifier associated with the connected account.
68687
+ * @deprecated Use `display_name` instead.*/
68662
68688
  user_identifier?:
68663
68689
  | {
68664
68690
  /** Username of the user identifier associated with the connected account. */
@@ -68677,6 +68703,8 @@ export type Routes = {
68677
68703
  account_type?: string | undefined
68678
68704
  /** Display name for the connected account type. */
68679
68705
  account_type_display_name: string
68706
+ /** Display name for the connected account. */
68707
+ display_name: string
68680
68708
  /** Errors associated with the connected account. */
68681
68709
  errors: (
68682
68710
  | {
@@ -97012,7 +97040,8 @@ export type Routes = {
97012
97040
  connected_account_id: string
97013
97041
  /** Date and time at which the connected account was created. */
97014
97042
  created_at?: string | undefined
97015
- /** User identifier associated with the connected account. */
97043
+ /** User identifier associated with the connected account.
97044
+ * @deprecated Use `display_name` instead.*/
97016
97045
  user_identifier?:
97017
97046
  | {
97018
97047
  /** Username of the user identifier associated with the connected account. */
@@ -97031,6 +97060,8 @@ export type Routes = {
97031
97060
  account_type?: string | undefined
97032
97061
  /** Display name for the connected account type. */
97033
97062
  account_type_display_name: string
97063
+ /** Display name for the connected account. */
97064
+ display_name: string
97034
97065
  /** Errors associated with the connected account. */
97035
97066
  errors: (
97036
97067
  | {