@seamapi/types 1.622.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 +147 -56
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +206 -90
- package/dist/index.cjs +147 -56
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +181 -73
- package/lib/seam/connect/openapi.js +146 -55
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +25 -17
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +148 -58
- package/src/lib/seam/connect/route-types.ts +25 -17
package/dist/connect.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: {
|
|
@@ -54164,14 +54164,18 @@ var openapi_default = {
|
|
|
54164
54164
|
{
|
|
54165
54165
|
properties: {
|
|
54166
54166
|
access_token: { minLength: 1, type: "string" },
|
|
54167
|
-
client: {
|
|
54167
|
+
client: {
|
|
54168
|
+
default: "seam",
|
|
54169
|
+
minLength: 1,
|
|
54170
|
+
type: "string"
|
|
54171
|
+
},
|
|
54168
54172
|
client_token: { minLength: 1, type: "string" },
|
|
54173
|
+
enterprise_id: { format: "uuid", type: "string" },
|
|
54169
54174
|
enterprise_ids: {
|
|
54170
54175
|
items: { format: "uuid", type: "string" },
|
|
54171
54176
|
type: "array"
|
|
54172
54177
|
}
|
|
54173
54178
|
},
|
|
54174
|
-
required: ["client_token", "access_token", "client"],
|
|
54175
54179
|
type: "object"
|
|
54176
54180
|
},
|
|
54177
54181
|
{ properties: {}, type: "object" }
|
|
@@ -54188,7 +54192,7 @@ var openapi_default = {
|
|
|
54188
54192
|
type: "string"
|
|
54189
54193
|
}
|
|
54190
54194
|
},
|
|
54191
|
-
required: ["connector_type", "
|
|
54195
|
+
required: ["connector_type", "config"],
|
|
54192
54196
|
type: "object"
|
|
54193
54197
|
}
|
|
54194
54198
|
}
|
|
@@ -54246,14 +54250,151 @@ var openapi_default = {
|
|
|
54246
54250
|
400: { description: "Bad Request" },
|
|
54247
54251
|
401: { description: "Unauthorized" }
|
|
54248
54252
|
},
|
|
54249
|
-
security: [
|
|
54253
|
+
security: [
|
|
54254
|
+
{ api_key: [] },
|
|
54255
|
+
{ client_session_with_customer: [] },
|
|
54256
|
+
{ console_session_with_workspace: [] }
|
|
54257
|
+
],
|
|
54250
54258
|
summary: "/seam/customer/v1/connectors/create",
|
|
54251
54259
|
tags: [],
|
|
54252
54260
|
"x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
|
|
54253
54261
|
"x-fern-sdk-method-name": "create",
|
|
54254
54262
|
"x-fern-sdk-return-value": "connector",
|
|
54255
54263
|
"x-response-key": "connector",
|
|
54256
|
-
"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."
|
|
54257
54398
|
}
|
|
54258
54399
|
},
|
|
54259
54400
|
"/seam/customer/v1/connectors/sync": {
|
|
@@ -56561,56 +56702,6 @@ var openapi_default = {
|
|
|
56561
56702
|
"x-undocumented": "Internal endpoint for customer portals."
|
|
56562
56703
|
}
|
|
56563
56704
|
},
|
|
56564
|
-
"/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]": {
|
|
56565
|
-
post: {
|
|
56566
|
-
description: "Receives webhook events from external connector APIs and processes them into partner resources.",
|
|
56567
|
-
operationId: "seamCustomerV1WebhooksConnectorsByWorkspaceIdByConnectorIdPost",
|
|
56568
|
-
requestBody: {
|
|
56569
|
-
content: {
|
|
56570
|
-
"application/json": { schema: { properties: {}, type: "object" } }
|
|
56571
|
-
}
|
|
56572
|
-
},
|
|
56573
|
-
responses: {
|
|
56574
|
-
200: {
|
|
56575
|
-
content: {
|
|
56576
|
-
"application/json": {
|
|
56577
|
-
schema: {
|
|
56578
|
-
properties: {
|
|
56579
|
-
error: { type: "string" },
|
|
56580
|
-
ok: { type: "boolean" },
|
|
56581
|
-
processed_events: { format: "float", type: "number" },
|
|
56582
|
-
success: { type: "boolean" }
|
|
56583
|
-
},
|
|
56584
|
-
required: ["success", "processed_events", "ok"],
|
|
56585
|
-
type: "object"
|
|
56586
|
-
}
|
|
56587
|
-
}
|
|
56588
|
-
},
|
|
56589
|
-
description: "OK"
|
|
56590
|
-
},
|
|
56591
|
-
400: { description: "Bad Request" },
|
|
56592
|
-
401: { description: "Unauthorized" }
|
|
56593
|
-
},
|
|
56594
|
-
security: [
|
|
56595
|
-
{ pat_with_workspace: [] },
|
|
56596
|
-
{ console_session_with_workspace: [] },
|
|
56597
|
-
{ api_key: [] }
|
|
56598
|
-
],
|
|
56599
|
-
summary: "/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]",
|
|
56600
|
-
tags: ["/webhooks"],
|
|
56601
|
-
"x-fern-sdk-group-name": [
|
|
56602
|
-
"seam",
|
|
56603
|
-
"customer",
|
|
56604
|
-
"v1",
|
|
56605
|
-
"webhooks",
|
|
56606
|
-
"connectors",
|
|
56607
|
-
"[workspace_id]"
|
|
56608
|
-
],
|
|
56609
|
-
"x-fern-sdk-method-name": "by_connector_id",
|
|
56610
|
-
"x-response-key": null,
|
|
56611
|
-
"x-title": "Connector Webhook Endpoint"
|
|
56612
|
-
}
|
|
56613
|
-
},
|
|
56614
56705
|
"/seam/instant_key/v1/client_sessions/exchange_short_code": {
|
|
56615
56706
|
post: {
|
|
56616
56707
|
description: "Exchanges a short code for a client session token. Mobile apps use this endpoint to retrieve a client session token securely using a short code obtained from an Instant Key URL.",
|