@seamapi/types 1.628.0 → 1.629.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 CHANGED
@@ -54247,6 +54247,69 @@ var openapi_default = {
54247
54247
  "x-undocumented": "Internal endpoint for Console."
54248
54248
  }
54249
54249
  },
54250
+ "/seam/customer/v1/connectors/delete": {
54251
+ post: {
54252
+ description: "Deletes a connector from a workspace. The connector must already be assigned to a workspace.\nThis will remove the connector row from the database and deactivate any active connections.",
54253
+ operationId: "seamCustomerV1ConnectorsDeletePost",
54254
+ requestBody: {
54255
+ content: {
54256
+ "application/json": {
54257
+ schema: {
54258
+ properties: {
54259
+ connector_id: {
54260
+ description: "ID of the connector to delete",
54261
+ minLength: 1,
54262
+ type: "string"
54263
+ }
54264
+ },
54265
+ required: ["connector_id"],
54266
+ type: "object"
54267
+ }
54268
+ }
54269
+ }
54270
+ },
54271
+ responses: {
54272
+ 200: {
54273
+ content: {
54274
+ "application/json": {
54275
+ schema: {
54276
+ properties: {
54277
+ connector: {
54278
+ properties: {
54279
+ connector_id: { type: "string" },
54280
+ connector_type: { type: "string" },
54281
+ status: { enum: ["deleted"], type: "string" }
54282
+ },
54283
+ required: ["connector_id", "connector_type", "status"],
54284
+ type: "object"
54285
+ },
54286
+ ok: { type: "boolean" }
54287
+ },
54288
+ required: ["connector", "ok"],
54289
+ type: "object"
54290
+ }
54291
+ }
54292
+ },
54293
+ description: "OK"
54294
+ },
54295
+ 400: { description: "Bad Request" },
54296
+ 401: { description: "Unauthorized" }
54297
+ },
54298
+ security: [
54299
+ { api_key: [] },
54300
+ { client_session_with_customer: [] },
54301
+ { console_session_with_workspace: [] }
54302
+ ],
54303
+ summary: "/seam/customer/v1/connectors/delete",
54304
+ tags: [],
54305
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
54306
+ "x-fern-sdk-method-name": "delete",
54307
+ "x-fern-sdk-return-value": "connector",
54308
+ "x-response-key": "connector",
54309
+ "x-title": "Delete Connector",
54310
+ "x-undocumented": "Internal endpoint for Console."
54311
+ }
54312
+ },
54250
54313
  "/seam/customer/v1/connectors/list": {
54251
54314
  get: {
54252
54315
  description: "Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).",
@@ -54438,6 +54501,122 @@ var openapi_default = {
54438
54501
  "x-undocumented": "Only used internally."
54439
54502
  }
54440
54503
  },
54504
+ "/seam/customer/v1/connectors/update": {
54505
+ post: {
54506
+ description: "Updates an existing connector in a workspace. The connector must already be assigned to a workspace.\nThe connector will be reactivated with the new configuration.",
54507
+ operationId: "seamCustomerV1ConnectorsUpdatePost",
54508
+ requestBody: {
54509
+ content: {
54510
+ "application/json": {
54511
+ schema: {
54512
+ properties: {
54513
+ config: {
54514
+ description: "Instance-specific configuration for the connector",
54515
+ oneOf: [
54516
+ {
54517
+ properties: {
54518
+ access_token: { minLength: 1, type: "string" },
54519
+ client: {
54520
+ default: "seam",
54521
+ minLength: 1,
54522
+ type: "string"
54523
+ },
54524
+ client_token: { minLength: 1, type: "string" },
54525
+ enterprise_id: { format: "uuid", type: "string" },
54526
+ enterprise_ids: {
54527
+ items: { format: "uuid", type: "string" },
54528
+ type: "array"
54529
+ }
54530
+ },
54531
+ type: "object"
54532
+ },
54533
+ { properties: {}, type: "object" }
54534
+ ]
54535
+ },
54536
+ connector_id: {
54537
+ description: "ID of the connector to update",
54538
+ minLength: 1,
54539
+ type: "string"
54540
+ },
54541
+ customer_key: {
54542
+ description: "Key identifying the customer",
54543
+ minLength: 1,
54544
+ type: "string"
54545
+ }
54546
+ },
54547
+ required: ["connector_id", "config"],
54548
+ type: "object"
54549
+ }
54550
+ }
54551
+ }
54552
+ },
54553
+ responses: {
54554
+ 200: {
54555
+ content: {
54556
+ "application/json": {
54557
+ schema: {
54558
+ properties: {
54559
+ connector: {
54560
+ properties: {
54561
+ connector_id: { type: "string" },
54562
+ connector_type: { type: "string" },
54563
+ error: { type: "string" },
54564
+ status: {
54565
+ enum: ["active", "inactive", "error"],
54566
+ type: "string"
54567
+ },
54568
+ webhook_subscription: {
54569
+ properties: {
54570
+ events: {
54571
+ items: { type: "string" },
54572
+ type: "array"
54573
+ },
54574
+ status: {
54575
+ enum: ["active", "inactive", "error"],
54576
+ type: "string"
54577
+ },
54578
+ subscription_id: { type: "string" },
54579
+ webhook_url: { type: "string" }
54580
+ },
54581
+ required: [
54582
+ "subscription_id",
54583
+ "webhook_url",
54584
+ "events",
54585
+ "status"
54586
+ ],
54587
+ type: "object"
54588
+ }
54589
+ },
54590
+ required: ["connector_id", "connector_type", "status"],
54591
+ type: "object"
54592
+ },
54593
+ ok: { type: "boolean" }
54594
+ },
54595
+ required: ["connector", "ok"],
54596
+ type: "object"
54597
+ }
54598
+ }
54599
+ },
54600
+ description: "OK"
54601
+ },
54602
+ 400: { description: "Bad Request" },
54603
+ 401: { description: "Unauthorized" }
54604
+ },
54605
+ security: [
54606
+ { api_key: [] },
54607
+ { client_session_with_customer: [] },
54608
+ { console_session_with_workspace: [] }
54609
+ ],
54610
+ summary: "/seam/customer/v1/connectors/update",
54611
+ tags: [],
54612
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
54613
+ "x-fern-sdk-method-name": "update",
54614
+ "x-fern-sdk-return-value": "connector",
54615
+ "x-response-key": "connector",
54616
+ "x-title": "Update Connector",
54617
+ "x-undocumented": "Internal endpoint for Console."
54618
+ }
54619
+ },
54441
54620
  "/seam/customer/v1/events/list": {
54442
54621
  get: {
54443
54622
  description: "Returns a list of events for devices in a specific space. This endpoint is designed for customer portals and only supports filtering by space_id.",