@seamapi/types 1.627.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 +201 -42
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +318 -96
- package/dist/index.cjs +201 -42
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +261 -82
- package/lib/seam/connect/openapi.js +201 -42
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +57 -14
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +204 -42
- package/src/lib/seam/connect/route-types.ts +61 -22
package/dist/connect.cjs
CHANGED
|
@@ -53423,14 +53423,8 @@ var openapi_default = {
|
|
|
53423
53423
|
properties: {
|
|
53424
53424
|
rules: {
|
|
53425
53425
|
properties: {
|
|
53426
|
-
delete_on_reservation_end: {
|
|
53427
|
-
properties: { enabled: { type: "boolean" } },
|
|
53428
|
-
required: ["enabled"],
|
|
53429
|
-
type: "object"
|
|
53430
|
-
},
|
|
53431
53426
|
reservation_created: {
|
|
53432
53427
|
properties: {
|
|
53433
|
-
enabled: { type: "boolean" },
|
|
53434
53428
|
fallback_preset: {
|
|
53435
53429
|
properties: {
|
|
53436
53430
|
fan_mode: {
|
|
@@ -53467,13 +53461,13 @@ var openapi_default = {
|
|
|
53467
53461
|
},
|
|
53468
53462
|
occupied_preset_key: { type: "string" }
|
|
53469
53463
|
},
|
|
53470
|
-
required: ["enabled"],
|
|
53471
53464
|
type: "object"
|
|
53472
53465
|
},
|
|
53473
|
-
|
|
53474
|
-
|
|
53475
|
-
|
|
53476
|
-
|
|
53466
|
+
reservation_deleted: {
|
|
53467
|
+
$ref: "#/components/schemas/access_code"
|
|
53468
|
+
},
|
|
53469
|
+
reservation_time_updated: {
|
|
53470
|
+
$ref: "#/components/schemas/access_code"
|
|
53477
53471
|
}
|
|
53478
53472
|
},
|
|
53479
53473
|
type: "object"
|
|
@@ -53638,14 +53632,8 @@ var openapi_default = {
|
|
|
53638
53632
|
properties: {
|
|
53639
53633
|
rules: {
|
|
53640
53634
|
properties: {
|
|
53641
|
-
delete_on_reservation_end: {
|
|
53642
|
-
properties: { enabled: { type: "boolean" } },
|
|
53643
|
-
required: ["enabled"],
|
|
53644
|
-
type: "object"
|
|
53645
|
-
},
|
|
53646
53635
|
reservation_created: {
|
|
53647
53636
|
properties: {
|
|
53648
|
-
enabled: { type: "boolean" },
|
|
53649
53637
|
fallback_preset: {
|
|
53650
53638
|
properties: {
|
|
53651
53639
|
fan_mode: {
|
|
@@ -53682,13 +53670,13 @@ var openapi_default = {
|
|
|
53682
53670
|
},
|
|
53683
53671
|
occupied_preset_key: { type: "string" }
|
|
53684
53672
|
},
|
|
53685
|
-
required: ["enabled"],
|
|
53686
53673
|
type: "object"
|
|
53687
53674
|
},
|
|
53688
|
-
|
|
53689
|
-
|
|
53690
|
-
|
|
53691
|
-
|
|
53675
|
+
reservation_deleted: {
|
|
53676
|
+
$ref: "#/components/schemas/access_code"
|
|
53677
|
+
},
|
|
53678
|
+
reservation_time_updated: {
|
|
53679
|
+
$ref: "#/components/schemas/access_code"
|
|
53692
53680
|
}
|
|
53693
53681
|
},
|
|
53694
53682
|
type: "object"
|
|
@@ -53844,14 +53832,8 @@ var openapi_default = {
|
|
|
53844
53832
|
properties: {
|
|
53845
53833
|
rules: {
|
|
53846
53834
|
properties: {
|
|
53847
|
-
delete_on_reservation_end: {
|
|
53848
|
-
properties: { enabled: { type: "boolean" } },
|
|
53849
|
-
required: ["enabled"],
|
|
53850
|
-
type: "object"
|
|
53851
|
-
},
|
|
53852
53835
|
reservation_created: {
|
|
53853
53836
|
properties: {
|
|
53854
|
-
enabled: { type: "boolean" },
|
|
53855
53837
|
fallback_preset: {
|
|
53856
53838
|
properties: {
|
|
53857
53839
|
fan_mode: {
|
|
@@ -53888,12 +53870,14 @@ var openapi_default = {
|
|
|
53888
53870
|
},
|
|
53889
53871
|
occupied_preset_key: { type: "string" }
|
|
53890
53872
|
},
|
|
53891
|
-
required: ["enabled"],
|
|
53892
53873
|
type: "object"
|
|
53893
53874
|
},
|
|
53894
|
-
|
|
53895
|
-
properties: {
|
|
53896
|
-
|
|
53875
|
+
reservation_deleted: {
|
|
53876
|
+
properties: {},
|
|
53877
|
+
type: "object"
|
|
53878
|
+
},
|
|
53879
|
+
reservation_time_updated: {
|
|
53880
|
+
properties: {},
|
|
53897
53881
|
type: "object"
|
|
53898
53882
|
}
|
|
53899
53883
|
},
|
|
@@ -54057,14 +54041,8 @@ var openapi_default = {
|
|
|
54057
54041
|
properties: {
|
|
54058
54042
|
rules: {
|
|
54059
54043
|
properties: {
|
|
54060
|
-
delete_on_reservation_end: {
|
|
54061
|
-
properties: { enabled: { type: "boolean" } },
|
|
54062
|
-
required: ["enabled"],
|
|
54063
|
-
type: "object"
|
|
54064
|
-
},
|
|
54065
54044
|
reservation_created: {
|
|
54066
54045
|
properties: {
|
|
54067
|
-
enabled: { type: "boolean" },
|
|
54068
54046
|
fallback_preset: {
|
|
54069
54047
|
properties: {
|
|
54070
54048
|
fan_mode: {
|
|
@@ -54101,12 +54079,14 @@ var openapi_default = {
|
|
|
54101
54079
|
},
|
|
54102
54080
|
occupied_preset_key: { type: "string" }
|
|
54103
54081
|
},
|
|
54104
|
-
required: ["enabled"],
|
|
54105
54082
|
type: "object"
|
|
54106
54083
|
},
|
|
54107
|
-
|
|
54108
|
-
properties: {
|
|
54109
|
-
|
|
54084
|
+
reservation_deleted: {
|
|
54085
|
+
properties: {},
|
|
54086
|
+
type: "object"
|
|
54087
|
+
},
|
|
54088
|
+
reservation_time_updated: {
|
|
54089
|
+
properties: {},
|
|
54110
54090
|
type: "object"
|
|
54111
54091
|
}
|
|
54112
54092
|
},
|
|
@@ -54267,6 +54247,69 @@ var openapi_default = {
|
|
|
54267
54247
|
"x-undocumented": "Internal endpoint for Console."
|
|
54268
54248
|
}
|
|
54269
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
|
+
},
|
|
54270
54313
|
"/seam/customer/v1/connectors/list": {
|
|
54271
54314
|
get: {
|
|
54272
54315
|
description: "Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).",
|
|
@@ -54458,6 +54501,122 @@ var openapi_default = {
|
|
|
54458
54501
|
"x-undocumented": "Only used internally."
|
|
54459
54502
|
}
|
|
54460
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
|
+
},
|
|
54461
54620
|
"/seam/customer/v1/events/list": {
|
|
54462
54621
|
get: {
|
|
54463
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.",
|