@seamapi/http 1.14.0 → 1.16.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 +17 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +201 -37
- package/lib/seam/connect/resolve-action-attempt.d.ts +256 -48
- package/lib/seam/connect/routes/acs-credentials.d.ts +4 -0
- package/lib/seam/connect/routes/acs-credentials.js +8 -0
- package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
- package/lib/seam/connect/routes/thermostats.d.ts +4 -0
- package/lib/seam/connect/routes/thermostats.js +9 -0
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +7 -7
- package/src/lib/seam/connect/routes/acs-credentials.ts +23 -0
- package/src/lib/seam/connect/routes/thermostats.ts +25 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -1823,6 +1823,14 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1823
1823
|
responseKey: "acs_credential"
|
|
1824
1824
|
});
|
|
1825
1825
|
}
|
|
1826
|
+
createOfflineCode(body) {
|
|
1827
|
+
return new SeamHttpRequest(this, {
|
|
1828
|
+
path: "/acs/credentials/create_offline_code",
|
|
1829
|
+
method: "post",
|
|
1830
|
+
body,
|
|
1831
|
+
responseKey: "acs_credential"
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1826
1834
|
delete(body) {
|
|
1827
1835
|
return new SeamHttpRequest(this, {
|
|
1828
1836
|
path: "/acs/credentials/delete",
|
|
@@ -4295,6 +4303,15 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4295
4303
|
options
|
|
4296
4304
|
});
|
|
4297
4305
|
}
|
|
4306
|
+
setHvacMode(body, options = {}) {
|
|
4307
|
+
return new SeamHttpRequest(this, {
|
|
4308
|
+
path: "/thermostats/set_hvac_mode",
|
|
4309
|
+
method: "post",
|
|
4310
|
+
body,
|
|
4311
|
+
responseKey: "action_attempt",
|
|
4312
|
+
options
|
|
4313
|
+
});
|
|
4314
|
+
}
|
|
4298
4315
|
setTemperatureThreshold(body) {
|
|
4299
4316
|
return new SeamHttpRequest(this, {
|
|
4300
4317
|
path: "/thermostats/set_temperature_threshold",
|