@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.
- package/dist/connect.cjs +141 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +196 -3
- package/dist/index.cjs +141 -4
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +175 -2
- package/lib/seam/connect/openapi.js +140 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +21 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +142 -3
- package/src/lib/seam/connect/route-types.ts +21 -1
package/dist/connect.d.cts
CHANGED
|
@@ -95409,9 +95409,19 @@ declare const _default: {
|
|
|
95409
95409
|
description: string;
|
|
95410
95410
|
};
|
|
95411
95411
|
};
|
|
95412
|
-
security: {
|
|
95412
|
+
security: ({
|
|
95413
95413
|
api_key: never[];
|
|
95414
|
-
|
|
95414
|
+
client_session_with_customer?: never;
|
|
95415
|
+
console_session_with_workspace?: never;
|
|
95416
|
+
} | {
|
|
95417
|
+
client_session_with_customer: never[];
|
|
95418
|
+
api_key?: never;
|
|
95419
|
+
console_session_with_workspace?: never;
|
|
95420
|
+
} | {
|
|
95421
|
+
console_session_with_workspace: never[];
|
|
95422
|
+
api_key?: never;
|
|
95423
|
+
client_session_with_customer?: never;
|
|
95424
|
+
})[];
|
|
95415
95425
|
summary: string;
|
|
95416
95426
|
tags: never[];
|
|
95417
95427
|
'x-fern-sdk-group-name': string[];
|
|
@@ -95419,6 +95429,169 @@ declare const _default: {
|
|
|
95419
95429
|
'x-fern-sdk-return-value': string;
|
|
95420
95430
|
'x-response-key': string;
|
|
95421
95431
|
'x-title': string;
|
|
95432
|
+
'x-undocumented': string;
|
|
95433
|
+
};
|
|
95434
|
+
};
|
|
95435
|
+
'/seam/customer/v1/connectors/list': {
|
|
95436
|
+
get: {
|
|
95437
|
+
description: string;
|
|
95438
|
+
operationId: string;
|
|
95439
|
+
responses: {
|
|
95440
|
+
200: {
|
|
95441
|
+
content: {
|
|
95442
|
+
'application/json': {
|
|
95443
|
+
schema: {
|
|
95444
|
+
properties: {
|
|
95445
|
+
connectors: {
|
|
95446
|
+
items: {
|
|
95447
|
+
properties: {
|
|
95448
|
+
config: {
|
|
95449
|
+
additionalProperties: {
|
|
95450
|
+
$ref: string;
|
|
95451
|
+
};
|
|
95452
|
+
type: string;
|
|
95453
|
+
};
|
|
95454
|
+
connector_id: {
|
|
95455
|
+
type: string;
|
|
95456
|
+
};
|
|
95457
|
+
connector_type: {
|
|
95458
|
+
type: string;
|
|
95459
|
+
};
|
|
95460
|
+
created_at: {
|
|
95461
|
+
type: string;
|
|
95462
|
+
};
|
|
95463
|
+
status: {
|
|
95464
|
+
enum: string[];
|
|
95465
|
+
type: string;
|
|
95466
|
+
};
|
|
95467
|
+
updated_at: {
|
|
95468
|
+
type: string;
|
|
95469
|
+
};
|
|
95470
|
+
};
|
|
95471
|
+
required: string[];
|
|
95472
|
+
type: string;
|
|
95473
|
+
};
|
|
95474
|
+
type: string;
|
|
95475
|
+
};
|
|
95476
|
+
ok: {
|
|
95477
|
+
type: string;
|
|
95478
|
+
};
|
|
95479
|
+
};
|
|
95480
|
+
required: string[];
|
|
95481
|
+
type: string;
|
|
95482
|
+
};
|
|
95483
|
+
};
|
|
95484
|
+
};
|
|
95485
|
+
description: string;
|
|
95486
|
+
};
|
|
95487
|
+
400: {
|
|
95488
|
+
description: string;
|
|
95489
|
+
};
|
|
95490
|
+
401: {
|
|
95491
|
+
description: string;
|
|
95492
|
+
};
|
|
95493
|
+
};
|
|
95494
|
+
security: ({
|
|
95495
|
+
api_key: never[];
|
|
95496
|
+
client_session_with_customer?: never;
|
|
95497
|
+
console_session_with_workspace?: never;
|
|
95498
|
+
} | {
|
|
95499
|
+
client_session_with_customer: never[];
|
|
95500
|
+
api_key?: never;
|
|
95501
|
+
console_session_with_workspace?: never;
|
|
95502
|
+
} | {
|
|
95503
|
+
console_session_with_workspace: never[];
|
|
95504
|
+
api_key?: never;
|
|
95505
|
+
client_session_with_customer?: never;
|
|
95506
|
+
})[];
|
|
95507
|
+
summary: string;
|
|
95508
|
+
tags: never[];
|
|
95509
|
+
'x-fern-sdk-group-name': string[];
|
|
95510
|
+
'x-fern-sdk-method-name': string;
|
|
95511
|
+
'x-fern-sdk-return-value': string;
|
|
95512
|
+
'x-response-key': string;
|
|
95513
|
+
'x-title': string;
|
|
95514
|
+
'x-undocumented': string;
|
|
95515
|
+
};
|
|
95516
|
+
post: {
|
|
95517
|
+
description: string;
|
|
95518
|
+
operationId: string;
|
|
95519
|
+
responses: {
|
|
95520
|
+
200: {
|
|
95521
|
+
content: {
|
|
95522
|
+
'application/json': {
|
|
95523
|
+
schema: {
|
|
95524
|
+
properties: {
|
|
95525
|
+
connectors: {
|
|
95526
|
+
items: {
|
|
95527
|
+
properties: {
|
|
95528
|
+
config: {
|
|
95529
|
+
additionalProperties: {
|
|
95530
|
+
$ref: string;
|
|
95531
|
+
};
|
|
95532
|
+
type: string;
|
|
95533
|
+
};
|
|
95534
|
+
connector_id: {
|
|
95535
|
+
type: string;
|
|
95536
|
+
};
|
|
95537
|
+
connector_type: {
|
|
95538
|
+
type: string;
|
|
95539
|
+
};
|
|
95540
|
+
created_at: {
|
|
95541
|
+
type: string;
|
|
95542
|
+
};
|
|
95543
|
+
status: {
|
|
95544
|
+
enum: string[];
|
|
95545
|
+
type: string;
|
|
95546
|
+
};
|
|
95547
|
+
updated_at: {
|
|
95548
|
+
type: string;
|
|
95549
|
+
};
|
|
95550
|
+
};
|
|
95551
|
+
required: string[];
|
|
95552
|
+
type: string;
|
|
95553
|
+
};
|
|
95554
|
+
type: string;
|
|
95555
|
+
};
|
|
95556
|
+
ok: {
|
|
95557
|
+
type: string;
|
|
95558
|
+
};
|
|
95559
|
+
};
|
|
95560
|
+
required: string[];
|
|
95561
|
+
type: string;
|
|
95562
|
+
};
|
|
95563
|
+
};
|
|
95564
|
+
};
|
|
95565
|
+
description: string;
|
|
95566
|
+
};
|
|
95567
|
+
400: {
|
|
95568
|
+
description: string;
|
|
95569
|
+
};
|
|
95570
|
+
401: {
|
|
95571
|
+
description: string;
|
|
95572
|
+
};
|
|
95573
|
+
};
|
|
95574
|
+
security: ({
|
|
95575
|
+
api_key: never[];
|
|
95576
|
+
client_session_with_customer?: never;
|
|
95577
|
+
console_session_with_workspace?: never;
|
|
95578
|
+
} | {
|
|
95579
|
+
client_session_with_customer: never[];
|
|
95580
|
+
api_key?: never;
|
|
95581
|
+
console_session_with_workspace?: never;
|
|
95582
|
+
} | {
|
|
95583
|
+
console_session_with_workspace: never[];
|
|
95584
|
+
api_key?: never;
|
|
95585
|
+
client_session_with_customer?: never;
|
|
95586
|
+
})[];
|
|
95587
|
+
summary: string;
|
|
95588
|
+
tags: never[];
|
|
95589
|
+
'x-fern-sdk-group-name': string[];
|
|
95590
|
+
'x-fern-sdk-method-name': string;
|
|
95591
|
+
'x-fern-sdk-return-value': string;
|
|
95592
|
+
'x-response-key': string;
|
|
95593
|
+
'x-title': string;
|
|
95594
|
+
'x-undocumented': string;
|
|
95422
95595
|
};
|
|
95423
95596
|
};
|
|
95424
95597
|
'/seam/customer/v1/connectors/sync': {
|
|
@@ -167528,7 +167701,7 @@ type Routes = {
|
|
|
167528
167701
|
/** Type of connector to create */
|
|
167529
167702
|
connector_type: 'mews' | 'mock';
|
|
167530
167703
|
/** Key identifying the customer */
|
|
167531
|
-
customer_key
|
|
167704
|
+
customer_key?: string | undefined;
|
|
167532
167705
|
/** Instance-specific configuration for the connector */
|
|
167533
167706
|
config: {
|
|
167534
167707
|
client_token?: string | undefined;
|
|
@@ -167555,6 +167728,26 @@ type Routes = {
|
|
|
167555
167728
|
};
|
|
167556
167729
|
};
|
|
167557
167730
|
};
|
|
167731
|
+
'/seam/customer/v1/connectors/list': {
|
|
167732
|
+
route: '/seam/customer/v1/connectors/list';
|
|
167733
|
+
method: 'GET' | 'POST';
|
|
167734
|
+
queryParams: {};
|
|
167735
|
+
jsonBody: {};
|
|
167736
|
+
commonParams: {};
|
|
167737
|
+
formData: {};
|
|
167738
|
+
jsonResponse: {
|
|
167739
|
+
connectors: {
|
|
167740
|
+
connector_id: string;
|
|
167741
|
+
connector_type: string;
|
|
167742
|
+
status: 'active' | 'inactive' | 'error';
|
|
167743
|
+
config: {
|
|
167744
|
+
[x: string]: any;
|
|
167745
|
+
};
|
|
167746
|
+
created_at: string;
|
|
167747
|
+
updated_at: string;
|
|
167748
|
+
}[];
|
|
167749
|
+
};
|
|
167750
|
+
};
|
|
167558
167751
|
'/seam/customer/v1/connectors/sync': {
|
|
167559
167752
|
route: '/seam/customer/v1/connectors/sync';
|
|
167560
167753
|
method: 'POST';
|
package/dist/index.cjs
CHANGED
|
@@ -54151,7 +54151,7 @@ var openapi_default = {
|
|
|
54151
54151
|
},
|
|
54152
54152
|
"/seam/customer/v1/connectors/create": {
|
|
54153
54153
|
post: {
|
|
54154
|
-
description: "Creates a new connector for a customer in a workspace. The connector will be activated and start syncing data from the external API.",
|
|
54154
|
+
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 with the same unique_provider_resource_key, it will be updated instead of creating a new one.",
|
|
54155
54155
|
operationId: "seamCustomerV1ConnectorsCreatePost",
|
|
54156
54156
|
requestBody: {
|
|
54157
54157
|
content: {
|
|
@@ -54192,7 +54192,7 @@ var openapi_default = {
|
|
|
54192
54192
|
type: "string"
|
|
54193
54193
|
}
|
|
54194
54194
|
},
|
|
54195
|
-
required: ["connector_type", "
|
|
54195
|
+
required: ["connector_type", "config"],
|
|
54196
54196
|
type: "object"
|
|
54197
54197
|
}
|
|
54198
54198
|
}
|
|
@@ -54250,14 +54250,151 @@ var openapi_default = {
|
|
|
54250
54250
|
400: { description: "Bad Request" },
|
|
54251
54251
|
401: { description: "Unauthorized" }
|
|
54252
54252
|
},
|
|
54253
|
-
security: [
|
|
54253
|
+
security: [
|
|
54254
|
+
{ api_key: [] },
|
|
54255
|
+
{ client_session_with_customer: [] },
|
|
54256
|
+
{ console_session_with_workspace: [] }
|
|
54257
|
+
],
|
|
54254
54258
|
summary: "/seam/customer/v1/connectors/create",
|
|
54255
54259
|
tags: [],
|
|
54256
54260
|
"x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
|
|
54257
54261
|
"x-fern-sdk-method-name": "create",
|
|
54258
54262
|
"x-fern-sdk-return-value": "connector",
|
|
54259
54263
|
"x-response-key": "connector",
|
|
54260
|
-
"x-title": "Create Connector"
|
|
54264
|
+
"x-title": "Create Connector",
|
|
54265
|
+
"x-undocumented": "Internal endpoint for Console."
|
|
54266
|
+
}
|
|
54267
|
+
},
|
|
54268
|
+
"/seam/customer/v1/connectors/list": {
|
|
54269
|
+
get: {
|
|
54270
|
+
description: "Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).",
|
|
54271
|
+
operationId: "seamCustomerV1ConnectorsListGet",
|
|
54272
|
+
responses: {
|
|
54273
|
+
200: {
|
|
54274
|
+
content: {
|
|
54275
|
+
"application/json": {
|
|
54276
|
+
schema: {
|
|
54277
|
+
properties: {
|
|
54278
|
+
connectors: {
|
|
54279
|
+
items: {
|
|
54280
|
+
properties: {
|
|
54281
|
+
config: {
|
|
54282
|
+
additionalProperties: {
|
|
54283
|
+
$ref: "#/components/schemas/access_code"
|
|
54284
|
+
},
|
|
54285
|
+
type: "object"
|
|
54286
|
+
},
|
|
54287
|
+
connector_id: { type: "string" },
|
|
54288
|
+
connector_type: { type: "string" },
|
|
54289
|
+
created_at: { type: "string" },
|
|
54290
|
+
status: {
|
|
54291
|
+
enum: ["active", "inactive", "error"],
|
|
54292
|
+
type: "string"
|
|
54293
|
+
},
|
|
54294
|
+
updated_at: { type: "string" }
|
|
54295
|
+
},
|
|
54296
|
+
required: [
|
|
54297
|
+
"connector_id",
|
|
54298
|
+
"connector_type",
|
|
54299
|
+
"status",
|
|
54300
|
+
"config",
|
|
54301
|
+
"created_at",
|
|
54302
|
+
"updated_at"
|
|
54303
|
+
],
|
|
54304
|
+
type: "object"
|
|
54305
|
+
},
|
|
54306
|
+
type: "array"
|
|
54307
|
+
},
|
|
54308
|
+
ok: { type: "boolean" }
|
|
54309
|
+
},
|
|
54310
|
+
required: ["connectors", "ok"],
|
|
54311
|
+
type: "object"
|
|
54312
|
+
}
|
|
54313
|
+
}
|
|
54314
|
+
},
|
|
54315
|
+
description: "OK"
|
|
54316
|
+
},
|
|
54317
|
+
400: { description: "Bad Request" },
|
|
54318
|
+
401: { description: "Unauthorized" }
|
|
54319
|
+
},
|
|
54320
|
+
security: [
|
|
54321
|
+
{ api_key: [] },
|
|
54322
|
+
{ client_session_with_customer: [] },
|
|
54323
|
+
{ console_session_with_workspace: [] }
|
|
54324
|
+
],
|
|
54325
|
+
summary: "/seam/customer/v1/connectors/list",
|
|
54326
|
+
tags: [],
|
|
54327
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
|
|
54328
|
+
"x-fern-sdk-method-name": "list",
|
|
54329
|
+
"x-fern-sdk-return-value": "connectors",
|
|
54330
|
+
"x-response-key": "connectors",
|
|
54331
|
+
"x-title": "List Connectors",
|
|
54332
|
+
"x-undocumented": "Internal endpoint for Console."
|
|
54333
|
+
},
|
|
54334
|
+
post: {
|
|
54335
|
+
description: "Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).",
|
|
54336
|
+
operationId: "seamCustomerV1ConnectorsListPost",
|
|
54337
|
+
responses: {
|
|
54338
|
+
200: {
|
|
54339
|
+
content: {
|
|
54340
|
+
"application/json": {
|
|
54341
|
+
schema: {
|
|
54342
|
+
properties: {
|
|
54343
|
+
connectors: {
|
|
54344
|
+
items: {
|
|
54345
|
+
properties: {
|
|
54346
|
+
config: {
|
|
54347
|
+
additionalProperties: {
|
|
54348
|
+
$ref: "#/components/schemas/access_code"
|
|
54349
|
+
},
|
|
54350
|
+
type: "object"
|
|
54351
|
+
},
|
|
54352
|
+
connector_id: { type: "string" },
|
|
54353
|
+
connector_type: { type: "string" },
|
|
54354
|
+
created_at: { type: "string" },
|
|
54355
|
+
status: {
|
|
54356
|
+
enum: ["active", "inactive", "error"],
|
|
54357
|
+
type: "string"
|
|
54358
|
+
},
|
|
54359
|
+
updated_at: { type: "string" }
|
|
54360
|
+
},
|
|
54361
|
+
required: [
|
|
54362
|
+
"connector_id",
|
|
54363
|
+
"connector_type",
|
|
54364
|
+
"status",
|
|
54365
|
+
"config",
|
|
54366
|
+
"created_at",
|
|
54367
|
+
"updated_at"
|
|
54368
|
+
],
|
|
54369
|
+
type: "object"
|
|
54370
|
+
},
|
|
54371
|
+
type: "array"
|
|
54372
|
+
},
|
|
54373
|
+
ok: { type: "boolean" }
|
|
54374
|
+
},
|
|
54375
|
+
required: ["connectors", "ok"],
|
|
54376
|
+
type: "object"
|
|
54377
|
+
}
|
|
54378
|
+
}
|
|
54379
|
+
},
|
|
54380
|
+
description: "OK"
|
|
54381
|
+
},
|
|
54382
|
+
400: { description: "Bad Request" },
|
|
54383
|
+
401: { description: "Unauthorized" }
|
|
54384
|
+
},
|
|
54385
|
+
security: [
|
|
54386
|
+
{ api_key: [] },
|
|
54387
|
+
{ client_session_with_customer: [] },
|
|
54388
|
+
{ console_session_with_workspace: [] }
|
|
54389
|
+
],
|
|
54390
|
+
summary: "/seam/customer/v1/connectors/list",
|
|
54391
|
+
tags: [],
|
|
54392
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
|
|
54393
|
+
"x-fern-sdk-method-name": "list",
|
|
54394
|
+
"x-fern-sdk-return-value": "connectors",
|
|
54395
|
+
"x-response-key": "connectors",
|
|
54396
|
+
"x-title": "List Connectors",
|
|
54397
|
+
"x-undocumented": "Internal endpoint for Console."
|
|
54261
54398
|
}
|
|
54262
54399
|
},
|
|
54263
54400
|
"/seam/customer/v1/connectors/sync": {
|