@seamapi/types 1.288.2 → 1.289.1
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 +119 -53
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +219 -165
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +18 -18
- package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -4
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/{encode-card.d.ts → encode-credential.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{encode-card.js → encode-credential.js} +6 -6
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/{scan-card.d.ts → scan-credential.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{scan-card.js → scan-credential.js} +7 -7
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +36 -2
- package/lib/seam/connect/openapi.js +99 -33
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +165 -145
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
- package/src/lib/seam/connect/models/action-attempts/{encode-card.ts → encode-credential.ts} +8 -6
- package/src/lib/seam/connect/models/action-attempts/{scan-card.ts → scan-credential.ts} +9 -7
- package/src/lib/seam/connect/openapi.ts +119 -33
- package/src/lib/seam/connect/route-types.ts +165 -145
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +0 -1
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +0 -1
package/dist/connect.cjs
CHANGED
|
@@ -1804,7 +1804,7 @@ var deprecated_action_attempts = [
|
|
|
1804
1804
|
...delete_noise_threshold_action_attempt.options,
|
|
1805
1805
|
...update_noise_threshold_action_attempt.options
|
|
1806
1806
|
];
|
|
1807
|
-
var action_type2 = zod.z.literal("
|
|
1807
|
+
var action_type2 = zod.z.literal("ENCODE_CREDENTIAL");
|
|
1808
1808
|
var no_card_on_encoder_error = zod.z.object({
|
|
1809
1809
|
type: zod.z.literal("no_card_on_encoder"),
|
|
1810
1810
|
message: zod.z.string()
|
|
@@ -1819,15 +1819,15 @@ var error3 = zod.z.union([
|
|
|
1819
1819
|
incompatible_card_format_error
|
|
1820
1820
|
]);
|
|
1821
1821
|
var result3 = acs_credential.or(unmanaged_acs_credential);
|
|
1822
|
-
var
|
|
1822
|
+
var encode_credential_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1823
1823
|
common_pending_action_attempt.extend({
|
|
1824
1824
|
action_type: action_type2
|
|
1825
|
-
}).describe("Encoding
|
|
1825
|
+
}).describe("Encoding credential data from physical encoder."),
|
|
1826
1826
|
common_succeeded_action_attempt.extend({
|
|
1827
1827
|
action_type: action_type2,
|
|
1828
1828
|
result: result3
|
|
1829
|
-
}).describe("Encoding
|
|
1830
|
-
common_failed_action_attempt.extend({ action_type: action_type2, error: error3 }).describe("Encoding
|
|
1829
|
+
}).describe("Encoding credential data from physical encoder succeeded."),
|
|
1830
|
+
common_failed_action_attempt.extend({ action_type: action_type2, error: error3 }).describe("Encoding credential data from physical encoder failed.")
|
|
1831
1831
|
]);
|
|
1832
1832
|
var action_type3 = zod.z.literal("LOCK_DOOR");
|
|
1833
1833
|
var error4 = zod.z.object({
|
|
@@ -1867,7 +1867,7 @@ var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
|
|
|
1867
1867
|
}).describe("Resetting sandbox workspace failed.")
|
|
1868
1868
|
]
|
|
1869
1869
|
);
|
|
1870
|
-
var action_type5 = zod.z.literal("
|
|
1870
|
+
var action_type5 = zod.z.literal("SCAN_CREDENTIAL");
|
|
1871
1871
|
var no_card_on_encoder_error2 = zod.z.object({
|
|
1872
1872
|
type: zod.z.literal("no_card_on_encoder"),
|
|
1873
1873
|
message: zod.z.string()
|
|
@@ -1883,20 +1883,20 @@ var warning = zod.z.object({
|
|
|
1883
1883
|
var acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential);
|
|
1884
1884
|
var result6 = zod.z.object({
|
|
1885
1885
|
acs_credential_on_encoder: acs_credential_on_encoder.describe(
|
|
1886
|
-
"Snapshot of
|
|
1886
|
+
"Snapshot of credential data read from physical encoder."
|
|
1887
1887
|
),
|
|
1888
1888
|
acs_credential_on_seam: acs_credential_on_seam.nullable().describe("Matching acs_credential currently encoded on this card."),
|
|
1889
1889
|
warnings: zod.z.array(warning)
|
|
1890
1890
|
});
|
|
1891
|
-
var
|
|
1891
|
+
var scan_credential_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1892
1892
|
common_pending_action_attempt.extend({
|
|
1893
1893
|
action_type: action_type5
|
|
1894
|
-
}).describe("Reading
|
|
1894
|
+
}).describe("Reading credential data from physical encoder."),
|
|
1895
1895
|
common_succeeded_action_attempt.extend({
|
|
1896
1896
|
action_type: action_type5,
|
|
1897
1897
|
result: result6
|
|
1898
|
-
}).describe("Reading
|
|
1899
|
-
common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Reading
|
|
1898
|
+
}).describe("Reading credential data from physical encoder succeeded."),
|
|
1899
|
+
common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Reading credential data from physical encoder failed.")
|
|
1900
1900
|
]);
|
|
1901
1901
|
var action_type6 = zod.z.literal("SET_COOL");
|
|
1902
1902
|
var error7 = zod.z.object({
|
|
@@ -2002,8 +2002,8 @@ var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
|
|
|
2002
2002
|
var action_attempt = zod.z.union([
|
|
2003
2003
|
...lock_door_action_attempt.options,
|
|
2004
2004
|
...unlock_door_action_attempt.options,
|
|
2005
|
-
...
|
|
2006
|
-
...
|
|
2005
|
+
...scan_credential_action_attempt.options,
|
|
2006
|
+
...encode_credential_action_attempt.options,
|
|
2007
2007
|
...reset_sandbox_workspace_action_attempt.options,
|
|
2008
2008
|
...set_cool_action_attempt.options,
|
|
2009
2009
|
...set_heat_action_attempt.options,
|
|
@@ -3982,7 +3982,7 @@ var openapi_default = {
|
|
|
3982
3982
|
type: "object"
|
|
3983
3983
|
},
|
|
3984
3984
|
{
|
|
3985
|
-
description: "Reading
|
|
3985
|
+
description: "Reading credential data from physical encoder.",
|
|
3986
3986
|
properties: {
|
|
3987
3987
|
action_attempt_id: {
|
|
3988
3988
|
description: "The ID of the action attempt.",
|
|
@@ -3990,7 +3990,7 @@ var openapi_default = {
|
|
|
3990
3990
|
type: "string",
|
|
3991
3991
|
"x-title": "Action Attempt ID"
|
|
3992
3992
|
},
|
|
3993
|
-
action_type: { enum: ["
|
|
3993
|
+
action_type: { enum: ["SCAN_CREDENTIAL"], type: "string" },
|
|
3994
3994
|
error: { nullable: true },
|
|
3995
3995
|
result: { nullable: true },
|
|
3996
3996
|
status: { enum: ["pending"], type: "string" }
|
|
@@ -4005,7 +4005,7 @@ var openapi_default = {
|
|
|
4005
4005
|
type: "object"
|
|
4006
4006
|
},
|
|
4007
4007
|
{
|
|
4008
|
-
description: "Reading
|
|
4008
|
+
description: "Reading credential data from physical encoder succeeded.",
|
|
4009
4009
|
properties: {
|
|
4010
4010
|
action_attempt_id: {
|
|
4011
4011
|
description: "The ID of the action attempt.",
|
|
@@ -4013,12 +4013,12 @@ var openapi_default = {
|
|
|
4013
4013
|
type: "string",
|
|
4014
4014
|
"x-title": "Action Attempt ID"
|
|
4015
4015
|
},
|
|
4016
|
-
action_type: { enum: ["
|
|
4016
|
+
action_type: { enum: ["SCAN_CREDENTIAL"], type: "string" },
|
|
4017
4017
|
error: { nullable: true },
|
|
4018
4018
|
result: {
|
|
4019
4019
|
properties: {
|
|
4020
4020
|
acs_credential_on_encoder: {
|
|
4021
|
-
description: "Snapshot of
|
|
4021
|
+
description: "Snapshot of credential data read from physical encoder.",
|
|
4022
4022
|
properties: {
|
|
4023
4023
|
card_number: {
|
|
4024
4024
|
description: "A number or string that physically identifies this card.",
|
|
@@ -4452,7 +4452,7 @@ var openapi_default = {
|
|
|
4452
4452
|
type: "object"
|
|
4453
4453
|
},
|
|
4454
4454
|
{
|
|
4455
|
-
description: "Reading
|
|
4455
|
+
description: "Reading credential data from physical encoder failed.",
|
|
4456
4456
|
properties: {
|
|
4457
4457
|
action_attempt_id: {
|
|
4458
4458
|
description: "The ID of the action attempt.",
|
|
@@ -4460,7 +4460,7 @@ var openapi_default = {
|
|
|
4460
4460
|
type: "string",
|
|
4461
4461
|
"x-title": "Action Attempt ID"
|
|
4462
4462
|
},
|
|
4463
|
-
action_type: { enum: ["
|
|
4463
|
+
action_type: { enum: ["SCAN_CREDENTIAL"], type: "string" },
|
|
4464
4464
|
error: {
|
|
4465
4465
|
oneOf: [
|
|
4466
4466
|
{
|
|
@@ -4505,7 +4505,7 @@ var openapi_default = {
|
|
|
4505
4505
|
type: "object"
|
|
4506
4506
|
},
|
|
4507
4507
|
{
|
|
4508
|
-
description: "Encoding
|
|
4508
|
+
description: "Encoding credential data from physical encoder.",
|
|
4509
4509
|
properties: {
|
|
4510
4510
|
action_attempt_id: {
|
|
4511
4511
|
description: "The ID of the action attempt.",
|
|
@@ -4513,7 +4513,7 @@ var openapi_default = {
|
|
|
4513
4513
|
type: "string",
|
|
4514
4514
|
"x-title": "Action Attempt ID"
|
|
4515
4515
|
},
|
|
4516
|
-
action_type: { enum: ["
|
|
4516
|
+
action_type: { enum: ["ENCODE_CREDENTIAL"], type: "string" },
|
|
4517
4517
|
error: { nullable: true },
|
|
4518
4518
|
result: { nullable: true },
|
|
4519
4519
|
status: { enum: ["pending"], type: "string" }
|
|
@@ -4528,7 +4528,7 @@ var openapi_default = {
|
|
|
4528
4528
|
type: "object"
|
|
4529
4529
|
},
|
|
4530
4530
|
{
|
|
4531
|
-
description: "Encoding
|
|
4531
|
+
description: "Encoding credential data from physical encoder succeeded.",
|
|
4532
4532
|
properties: {
|
|
4533
4533
|
action_attempt_id: {
|
|
4534
4534
|
description: "The ID of the action attempt.",
|
|
@@ -4536,7 +4536,7 @@ var openapi_default = {
|
|
|
4536
4536
|
type: "string",
|
|
4537
4537
|
"x-title": "Action Attempt ID"
|
|
4538
4538
|
},
|
|
4539
|
-
action_type: { enum: ["
|
|
4539
|
+
action_type: { enum: ["ENCODE_CREDENTIAL"], type: "string" },
|
|
4540
4540
|
error: { nullable: true },
|
|
4541
4541
|
result: {
|
|
4542
4542
|
description: "Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
@@ -4873,7 +4873,7 @@ var openapi_default = {
|
|
|
4873
4873
|
type: "object"
|
|
4874
4874
|
},
|
|
4875
4875
|
{
|
|
4876
|
-
description: "Encoding
|
|
4876
|
+
description: "Encoding credential data from physical encoder failed.",
|
|
4877
4877
|
properties: {
|
|
4878
4878
|
action_attempt_id: {
|
|
4879
4879
|
description: "The ID of the action attempt.",
|
|
@@ -4881,7 +4881,7 @@ var openapi_default = {
|
|
|
4881
4881
|
type: "string",
|
|
4882
4882
|
"x-title": "Action Attempt ID"
|
|
4883
4883
|
},
|
|
4884
|
-
action_type: { enum: ["
|
|
4884
|
+
action_type: { enum: ["ENCODE_CREDENTIAL"], type: "string" },
|
|
4885
4885
|
error: {
|
|
4886
4886
|
oneOf: [
|
|
4887
4887
|
{
|
|
@@ -11593,16 +11593,24 @@ var openapi_default = {
|
|
|
11593
11593
|
"x-title": "Update a Credential"
|
|
11594
11594
|
}
|
|
11595
11595
|
},
|
|
11596
|
-
"/acs/encoders/
|
|
11596
|
+
"/acs/encoders/encode_credential": {
|
|
11597
11597
|
post: {
|
|
11598
|
-
operationId: "
|
|
11598
|
+
operationId: "acsEncodersEncodeCredentialPost",
|
|
11599
11599
|
requestBody: {
|
|
11600
11600
|
content: {
|
|
11601
11601
|
"application/json": {
|
|
11602
11602
|
schema: {
|
|
11603
11603
|
properties: {
|
|
11604
|
-
acs_credential_id: {
|
|
11605
|
-
|
|
11604
|
+
acs_credential_id: {
|
|
11605
|
+
description: "ID of the acs_credential to encode on a physical card.",
|
|
11606
|
+
format: "uuid",
|
|
11607
|
+
type: "string"
|
|
11608
|
+
},
|
|
11609
|
+
device_id: {
|
|
11610
|
+
description: "ID of the encoder to use for the encoding.",
|
|
11611
|
+
format: "uuid",
|
|
11612
|
+
type: "string"
|
|
11613
|
+
}
|
|
11606
11614
|
},
|
|
11607
11615
|
required: ["device_id", "acs_credential_id"],
|
|
11608
11616
|
type: "object"
|
|
@@ -11636,10 +11644,10 @@ var openapi_default = {
|
|
|
11636
11644
|
{ console_session: [] },
|
|
11637
11645
|
{ api_key: [] }
|
|
11638
11646
|
],
|
|
11639
|
-
summary: "/acs/encoders/
|
|
11647
|
+
summary: "/acs/encoders/encode_credential",
|
|
11640
11648
|
tags: ["/acs"],
|
|
11641
11649
|
"x-fern-sdk-group-name": ["acs", "encoders"],
|
|
11642
|
-
"x-fern-sdk-method-name": "
|
|
11650
|
+
"x-fern-sdk-method-name": "encode_credential",
|
|
11643
11651
|
"x-fern-sdk-return-value": "action_attempt",
|
|
11644
11652
|
"x-response-key": "action_attempt",
|
|
11645
11653
|
"x-undocumented": "Encoding a card is currently unimplemented."
|
|
@@ -11731,16 +11739,24 @@ var openapi_default = {
|
|
|
11731
11739
|
"x-undocumented": "Encoders are in alpha."
|
|
11732
11740
|
}
|
|
11733
11741
|
},
|
|
11734
|
-
"/acs/encoders/
|
|
11742
|
+
"/acs/encoders/scan_credential": {
|
|
11735
11743
|
post: {
|
|
11736
|
-
operationId: "
|
|
11744
|
+
operationId: "acsEncodersScanCredentialPost",
|
|
11737
11745
|
requestBody: {
|
|
11738
11746
|
content: {
|
|
11739
11747
|
"application/json": {
|
|
11740
11748
|
schema: {
|
|
11741
11749
|
properties: {
|
|
11742
|
-
acs_system_id: {
|
|
11743
|
-
|
|
11750
|
+
acs_system_id: {
|
|
11751
|
+
description: "ID of the acs_system the encoder belongs to.",
|
|
11752
|
+
format: "uuid",
|
|
11753
|
+
type: "string"
|
|
11754
|
+
},
|
|
11755
|
+
device_id: {
|
|
11756
|
+
description: "ID of the encoder to use for the scan.",
|
|
11757
|
+
format: "uuid",
|
|
11758
|
+
type: "string"
|
|
11759
|
+
}
|
|
11744
11760
|
},
|
|
11745
11761
|
required: ["acs_system_id", "device_id"],
|
|
11746
11762
|
type: "object"
|
|
@@ -11774,10 +11790,10 @@ var openapi_default = {
|
|
|
11774
11790
|
{ console_session: [] },
|
|
11775
11791
|
{ api_key: [] }
|
|
11776
11792
|
],
|
|
11777
|
-
summary: "/acs/encoders/
|
|
11793
|
+
summary: "/acs/encoders/scan_credential",
|
|
11778
11794
|
tags: ["/acs"],
|
|
11779
11795
|
"x-fern-sdk-group-name": ["acs", "encoders"],
|
|
11780
|
-
"x-fern-sdk-method-name": "
|
|
11796
|
+
"x-fern-sdk-method-name": "scan_credential",
|
|
11781
11797
|
"x-fern-sdk-return-value": "action_attempt",
|
|
11782
11798
|
"x-response-key": "action_attempt",
|
|
11783
11799
|
"x-undocumented": "Reading a card is currently unimplemented."
|
|
@@ -17611,6 +17627,7 @@ var openapi_default = {
|
|
|
17611
17627
|
},
|
|
17612
17628
|
"/thermostats/cool": {
|
|
17613
17629
|
post: {
|
|
17630
|
+
description: "Sets a thermostat to cooling mode. You must include a cooling set point in Celsius or Fahrenheit. See also [Setting the Current HVAC and Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings).",
|
|
17614
17631
|
operationId: "thermostatsCoolPost",
|
|
17615
17632
|
requestBody: {
|
|
17616
17633
|
content: {
|
|
@@ -17618,14 +17635,20 @@ var openapi_default = {
|
|
|
17618
17635
|
schema: {
|
|
17619
17636
|
properties: {
|
|
17620
17637
|
cooling_set_point_celsius: {
|
|
17638
|
+
description: "Temperature to which the HVAC system connected to the thermostat should cool (in \xB0C). You must set one of the `cooling_set_point` parameters.",
|
|
17621
17639
|
format: "float",
|
|
17622
17640
|
type: "number"
|
|
17623
17641
|
},
|
|
17624
17642
|
cooling_set_point_fahrenheit: {
|
|
17643
|
+
description: "Temperature to which the HVAC system connected to the thermostat should cool (in \xB0F). You must set one of the `cooling_set_point` parameters.",
|
|
17625
17644
|
format: "float",
|
|
17626
17645
|
type: "number"
|
|
17627
17646
|
},
|
|
17628
|
-
device_id: {
|
|
17647
|
+
device_id: {
|
|
17648
|
+
description: "ID of the thermostat device.",
|
|
17649
|
+
format: "uuid",
|
|
17650
|
+
type: "string"
|
|
17651
|
+
},
|
|
17629
17652
|
sync: { default: false, type: "boolean" }
|
|
17630
17653
|
},
|
|
17631
17654
|
required: ["device_id"],
|
|
@@ -17666,7 +17689,8 @@ var openapi_default = {
|
|
|
17666
17689
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
17667
17690
|
"x-fern-sdk-method-name": "cool",
|
|
17668
17691
|
"x-fern-sdk-return-value": "action_attempt",
|
|
17669
|
-
"x-response-key": "action_attempt"
|
|
17692
|
+
"x-response-key": "action_attempt",
|
|
17693
|
+
"x-title": "Set to Cool Mode"
|
|
17670
17694
|
}
|
|
17671
17695
|
},
|
|
17672
17696
|
"/thermostats/create_climate_preset": {
|
|
@@ -17791,14 +17815,22 @@ var openapi_default = {
|
|
|
17791
17815
|
},
|
|
17792
17816
|
"/thermostats/get": {
|
|
17793
17817
|
post: {
|
|
17818
|
+
description: "Returns a specific thermostat.",
|
|
17794
17819
|
operationId: "thermostatsGetPost",
|
|
17795
17820
|
requestBody: {
|
|
17796
17821
|
content: {
|
|
17797
17822
|
"application/json": {
|
|
17798
17823
|
schema: {
|
|
17799
17824
|
properties: {
|
|
17800
|
-
device_id: {
|
|
17801
|
-
|
|
17825
|
+
device_id: {
|
|
17826
|
+
description: "ID of the thermostat device.",
|
|
17827
|
+
format: "uuid",
|
|
17828
|
+
type: "string"
|
|
17829
|
+
},
|
|
17830
|
+
name: {
|
|
17831
|
+
description: "Name of the thermostat.",
|
|
17832
|
+
type: "string"
|
|
17833
|
+
}
|
|
17802
17834
|
},
|
|
17803
17835
|
type: "object"
|
|
17804
17836
|
}
|
|
@@ -17836,23 +17868,31 @@ var openapi_default = {
|
|
|
17836
17868
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
17837
17869
|
"x-fern-sdk-method-name": "get",
|
|
17838
17870
|
"x-fern-sdk-return-value": "thermostat",
|
|
17839
|
-
"x-response-key": "thermostat"
|
|
17871
|
+
"x-response-key": "thermostat",
|
|
17872
|
+
"x-title": "Get a Thermostat"
|
|
17840
17873
|
}
|
|
17841
17874
|
},
|
|
17842
17875
|
"/thermostats/heat": {
|
|
17843
17876
|
post: {
|
|
17877
|
+
description: "Sets a thermostat to heating mode. You must include a heating set point in Celsius or Fahrenheit. See also [Setting the Current HVAC and Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings).",
|
|
17844
17878
|
operationId: "thermostatsHeatPost",
|
|
17845
17879
|
requestBody: {
|
|
17846
17880
|
content: {
|
|
17847
17881
|
"application/json": {
|
|
17848
17882
|
schema: {
|
|
17849
17883
|
properties: {
|
|
17850
|
-
device_id: {
|
|
17884
|
+
device_id: {
|
|
17885
|
+
description: "ID of the thermostat device.",
|
|
17886
|
+
format: "uuid",
|
|
17887
|
+
type: "string"
|
|
17888
|
+
},
|
|
17851
17889
|
heating_set_point_celsius: {
|
|
17890
|
+
description: "Temperature to which the HVAC system connected to the thermostat should heat (in \xB0C). You must set one of the `heating_set_point` parameters.",
|
|
17852
17891
|
format: "float",
|
|
17853
17892
|
type: "number"
|
|
17854
17893
|
},
|
|
17855
17894
|
heating_set_point_fahrenheit: {
|
|
17895
|
+
description: "Temperature to which the HVAC system connected to the thermostat should heat (in \xB0F). You must set one of the `heating_set_point` parameters.",
|
|
17856
17896
|
format: "float",
|
|
17857
17897
|
type: "number"
|
|
17858
17898
|
},
|
|
@@ -17896,11 +17936,13 @@ var openapi_default = {
|
|
|
17896
17936
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
17897
17937
|
"x-fern-sdk-method-name": "heat",
|
|
17898
17938
|
"x-fern-sdk-return-value": "action_attempt",
|
|
17899
|
-
"x-response-key": "action_attempt"
|
|
17939
|
+
"x-response-key": "action_attempt",
|
|
17940
|
+
"x-title": "Set to Heat Mode"
|
|
17900
17941
|
}
|
|
17901
17942
|
},
|
|
17902
17943
|
"/thermostats/heat_cool": {
|
|
17903
17944
|
post: {
|
|
17945
|
+
description: 'Set a thermostat to heat-cool mode, also known as "auto" mode. To do so, you must include both cooling and heating set points in the payload, either in Celsius or Fahrenheit. For information about verifying the heating and cooling availability of the thermostat and validating the correct set points, see [HVAC Mode Constraints](https://docs.seam.co/latest/capability-guides/thermostats/hvac-mode#hvac-mode-constraints) and [Set Point Constraints](https://docs.seam.co/latest/capability-guides/thermostats/set-points#set-point-constraints).',
|
|
17904
17946
|
operationId: "thermostatsHeatCoolPost",
|
|
17905
17947
|
requestBody: {
|
|
17906
17948
|
content: {
|
|
@@ -17908,19 +17950,27 @@ var openapi_default = {
|
|
|
17908
17950
|
schema: {
|
|
17909
17951
|
properties: {
|
|
17910
17952
|
cooling_set_point_celsius: {
|
|
17953
|
+
description: "Temperature to which the HVAC system connected to the thermostat should cool (in \xB0C). You must set one of the `cooling_set_point` parameters.",
|
|
17911
17954
|
format: "float",
|
|
17912
17955
|
type: "number"
|
|
17913
17956
|
},
|
|
17914
17957
|
cooling_set_point_fahrenheit: {
|
|
17958
|
+
description: "Temperature the thermostat should cool to (in \xB0F). You must set one of the cooling_set_point parameters.",
|
|
17915
17959
|
format: "float",
|
|
17916
17960
|
type: "number"
|
|
17917
17961
|
},
|
|
17918
|
-
device_id: {
|
|
17962
|
+
device_id: {
|
|
17963
|
+
description: "ID of the thermostat device.",
|
|
17964
|
+
format: "uuid",
|
|
17965
|
+
type: "string"
|
|
17966
|
+
},
|
|
17919
17967
|
heating_set_point_celsius: {
|
|
17968
|
+
description: "Temperature to which the HVAC system connected to the thermostat should heat (in \xB0C). You must set one of the `heating_set_point` parameters.",
|
|
17920
17969
|
format: "float",
|
|
17921
17970
|
type: "number"
|
|
17922
17971
|
},
|
|
17923
17972
|
heating_set_point_fahrenheit: {
|
|
17973
|
+
description: "Temperature the thermostat should heat to (in \xB0F). You must set one of the heating_set_point parameters.",
|
|
17924
17974
|
format: "float",
|
|
17925
17975
|
type: "number"
|
|
17926
17976
|
},
|
|
@@ -17964,11 +18014,13 @@ var openapi_default = {
|
|
|
17964
18014
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
17965
18015
|
"x-fern-sdk-method-name": "heat_cool",
|
|
17966
18016
|
"x-fern-sdk-return-value": "action_attempt",
|
|
17967
|
-
"x-response-key": "action_attempt"
|
|
18017
|
+
"x-response-key": "action_attempt",
|
|
18018
|
+
"x-title": "Set to Heat-Cool (Auto) Mode"
|
|
17968
18019
|
}
|
|
17969
18020
|
},
|
|
17970
18021
|
"/thermostats/list": {
|
|
17971
18022
|
post: {
|
|
18023
|
+
description: "Returns a list of thermostats connected to your workspace. If no thermostats are connected, the list will be empty.",
|
|
17972
18024
|
operationId: "thermostatsListPost",
|
|
17973
18025
|
requestBody: {
|
|
17974
18026
|
content: {
|
|
@@ -18237,18 +18289,24 @@ var openapi_default = {
|
|
|
18237
18289
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
18238
18290
|
"x-fern-sdk-method-name": "list",
|
|
18239
18291
|
"x-fern-sdk-return-value": "devices",
|
|
18240
|
-
"x-response-key": "devices"
|
|
18292
|
+
"x-response-key": "devices",
|
|
18293
|
+
"x-title": "List Thermostats"
|
|
18241
18294
|
}
|
|
18242
18295
|
},
|
|
18243
18296
|
"/thermostats/off": {
|
|
18244
18297
|
post: {
|
|
18298
|
+
description: 'Sets a thermostat to "off" mode. See also [Setting the Current HVAC and Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings).',
|
|
18245
18299
|
operationId: "thermostatsOffPost",
|
|
18246
18300
|
requestBody: {
|
|
18247
18301
|
content: {
|
|
18248
18302
|
"application/json": {
|
|
18249
18303
|
schema: {
|
|
18250
18304
|
properties: {
|
|
18251
|
-
device_id: {
|
|
18305
|
+
device_id: {
|
|
18306
|
+
description: "ID of the thermostat device.",
|
|
18307
|
+
format: "uuid",
|
|
18308
|
+
type: "string"
|
|
18309
|
+
},
|
|
18252
18310
|
sync: { default: false, type: "boolean" }
|
|
18253
18311
|
},
|
|
18254
18312
|
required: ["device_id"],
|
|
@@ -18289,7 +18347,8 @@ var openapi_default = {
|
|
|
18289
18347
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
18290
18348
|
"x-fern-sdk-method-name": "off",
|
|
18291
18349
|
"x-fern-sdk-return-value": "action_attempt",
|
|
18292
|
-
"x-response-key": "action_attempt"
|
|
18350
|
+
"x-response-key": "action_attempt",
|
|
18351
|
+
"x-title": "Set to Off Mode"
|
|
18293
18352
|
}
|
|
18294
18353
|
},
|
|
18295
18354
|
"/thermostats/schedules/create": {
|
|
@@ -18652,20 +18711,26 @@ var openapi_default = {
|
|
|
18652
18711
|
},
|
|
18653
18712
|
"/thermostats/set_fan_mode": {
|
|
18654
18713
|
post: {
|
|
18714
|
+
description: "Sets the fan mode setting for a thermostat. See also [Setting the Current HVAC and Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings) and [Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings).",
|
|
18655
18715
|
operationId: "thermostatsSetFanModePost",
|
|
18656
18716
|
requestBody: {
|
|
18657
18717
|
content: {
|
|
18658
18718
|
"application/json": {
|
|
18659
18719
|
schema: {
|
|
18660
18720
|
properties: {
|
|
18661
|
-
device_id: {
|
|
18721
|
+
device_id: {
|
|
18722
|
+
description: "ID of the thermostat device.",
|
|
18723
|
+
format: "uuid",
|
|
18724
|
+
type: "string"
|
|
18725
|
+
},
|
|
18662
18726
|
fan_mode: {
|
|
18663
18727
|
deprecated: true,
|
|
18664
18728
|
enum: ["auto", "on", "circulate"],
|
|
18665
18729
|
type: "string",
|
|
18666
|
-
"x-deprecated": "
|
|
18730
|
+
"x-deprecated": "Use `fan_mode_setting` instead."
|
|
18667
18731
|
},
|
|
18668
18732
|
fan_mode_setting: {
|
|
18733
|
+
description: "Fan mode setting of the thermostat. See also [Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings).",
|
|
18669
18734
|
enum: ["auto", "on", "circulate"],
|
|
18670
18735
|
type: "string"
|
|
18671
18736
|
},
|
|
@@ -18709,7 +18774,8 @@ var openapi_default = {
|
|
|
18709
18774
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
18710
18775
|
"x-fern-sdk-method-name": "set_fan_mode",
|
|
18711
18776
|
"x-fern-sdk-return-value": "action_attempt",
|
|
18712
|
-
"x-response-key": "action_attempt"
|
|
18777
|
+
"x-response-key": "action_attempt",
|
|
18778
|
+
"x-title": "Set Fan Mode Setting"
|
|
18713
18779
|
}
|
|
18714
18780
|
},
|
|
18715
18781
|
"/thermostats/set_temperature_threshold": {
|