@seamapi/http 1.52.0 → 1.54.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 +106 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +307 -293
- package/dist/index.cjs +106 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +388 -388
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +13 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js +9 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +3 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +31 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +12 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.js +3 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js +15 -0
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +33 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +57 -0
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +20 -0
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +5 -0
- package/src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts +25 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -4480,6 +4480,15 @@ var _SeamHttpInstantKeys = class _SeamHttpInstantKeys {
|
|
|
4480
4480
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4481
4481
|
await clientSessions.get();
|
|
4482
4482
|
}
|
|
4483
|
+
delete(parameters, options = {}) {
|
|
4484
|
+
return new SeamHttpRequest(this, {
|
|
4485
|
+
pathname: "/instant_keys/delete",
|
|
4486
|
+
method: "POST",
|
|
4487
|
+
body: parameters,
|
|
4488
|
+
responseKey: void 0,
|
|
4489
|
+
options
|
|
4490
|
+
});
|
|
4491
|
+
}
|
|
4483
4492
|
get(parameters, options = {}) {
|
|
4484
4493
|
return new SeamHttpRequest(this, {
|
|
4485
4494
|
pathname: "/instant_keys/get",
|
|
@@ -6409,6 +6418,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6409
6418
|
constructor(apiKeyOrOptions = {}) {
|
|
6410
6419
|
this.ltsVersion = seamApiLtsVersion;
|
|
6411
6420
|
const options = parseOptions(apiKeyOrOptions);
|
|
6421
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6422
|
+
throw new Error(
|
|
6423
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6424
|
+
);
|
|
6425
|
+
}
|
|
6412
6426
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6413
6427
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6414
6428
|
}
|
|
@@ -6489,6 +6503,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6489
6503
|
await clientSessions.get();
|
|
6490
6504
|
}
|
|
6491
6505
|
create(parameters, options = {}) {
|
|
6506
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6507
|
+
throw new Error(
|
|
6508
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6509
|
+
);
|
|
6510
|
+
}
|
|
6492
6511
|
return new SeamHttpRequest(this, {
|
|
6493
6512
|
pathname: "/thermostats/daily_programs/create",
|
|
6494
6513
|
method: "POST",
|
|
@@ -6498,6 +6517,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6498
6517
|
});
|
|
6499
6518
|
}
|
|
6500
6519
|
delete(parameters, options = {}) {
|
|
6520
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6521
|
+
throw new Error(
|
|
6522
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6523
|
+
);
|
|
6524
|
+
}
|
|
6501
6525
|
return new SeamHttpRequest(this, {
|
|
6502
6526
|
pathname: "/thermostats/daily_programs/delete",
|
|
6503
6527
|
method: "POST",
|
|
@@ -6507,6 +6531,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6507
6531
|
});
|
|
6508
6532
|
}
|
|
6509
6533
|
update(parameters, options = {}) {
|
|
6534
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6535
|
+
throw new Error(
|
|
6536
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6537
|
+
);
|
|
6538
|
+
}
|
|
6510
6539
|
return new SeamHttpRequest(this, {
|
|
6511
6540
|
pathname: "/thermostats/daily_programs/update",
|
|
6512
6541
|
method: "PATCH",
|
|
@@ -6977,6 +7006,11 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
6977
7006
|
});
|
|
6978
7007
|
}
|
|
6979
7008
|
updateWeeklyProgram(parameters, options = {}) {
|
|
7009
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7010
|
+
throw new Error(
|
|
7011
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7012
|
+
);
|
|
7013
|
+
}
|
|
6980
7014
|
return new SeamHttpRequest(this, {
|
|
6981
7015
|
pathname: "/thermostats/update_weekly_program",
|
|
6982
7016
|
method: "POST",
|
|
@@ -7733,6 +7767,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7733
7767
|
constructor(apiKeyOrOptions = {}) {
|
|
7734
7768
|
this.ltsVersion = seamApiLtsVersion;
|
|
7735
7769
|
const options = parseOptions(apiKeyOrOptions);
|
|
7770
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7771
|
+
throw new Error(
|
|
7772
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7773
|
+
);
|
|
7774
|
+
}
|
|
7736
7775
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7737
7776
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7738
7777
|
}
|
|
@@ -7813,6 +7852,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7813
7852
|
await clientSessions.get();
|
|
7814
7853
|
}
|
|
7815
7854
|
delete(parameters, options = {}) {
|
|
7855
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7856
|
+
throw new Error(
|
|
7857
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7858
|
+
);
|
|
7859
|
+
}
|
|
7816
7860
|
return new SeamHttpRequest(this, {
|
|
7817
7861
|
pathname: "/user_identities/enrollment_automations/delete",
|
|
7818
7862
|
method: "POST",
|
|
@@ -7822,6 +7866,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7822
7866
|
});
|
|
7823
7867
|
}
|
|
7824
7868
|
get(parameters, options = {}) {
|
|
7869
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7870
|
+
throw new Error(
|
|
7871
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7872
|
+
);
|
|
7873
|
+
}
|
|
7825
7874
|
return new SeamHttpRequest(this, {
|
|
7826
7875
|
pathname: "/user_identities/enrollment_automations/get",
|
|
7827
7876
|
method: "POST",
|
|
@@ -7831,6 +7880,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7831
7880
|
});
|
|
7832
7881
|
}
|
|
7833
7882
|
launch(parameters, options = {}) {
|
|
7883
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7884
|
+
throw new Error(
|
|
7885
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7886
|
+
);
|
|
7887
|
+
}
|
|
7834
7888
|
return new SeamHttpRequest(this, {
|
|
7835
7889
|
pathname: "/user_identities/enrollment_automations/launch",
|
|
7836
7890
|
method: "POST",
|
|
@@ -7840,6 +7894,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7840
7894
|
});
|
|
7841
7895
|
}
|
|
7842
7896
|
list(parameters, options = {}) {
|
|
7897
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7898
|
+
throw new Error(
|
|
7899
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7900
|
+
);
|
|
7901
|
+
}
|
|
7843
7902
|
return new SeamHttpRequest(this, {
|
|
7844
7903
|
pathname: "/user_identities/enrollment_automations/list",
|
|
7845
7904
|
method: "POST",
|
|
@@ -9429,6 +9488,13 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9429
9488
|
return seam.list(...args);
|
|
9430
9489
|
};
|
|
9431
9490
|
}
|
|
9491
|
+
get ["/instant_keys/delete"]() {
|
|
9492
|
+
const { client, defaults } = this;
|
|
9493
|
+
return function instantKeysDelete(...args) {
|
|
9494
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults);
|
|
9495
|
+
return seam.delete(...args);
|
|
9496
|
+
};
|
|
9497
|
+
}
|
|
9432
9498
|
get ["/instant_keys/get"]() {
|
|
9433
9499
|
const { client, defaults } = this;
|
|
9434
9500
|
return function instantKeysGet(...args) {
|
|
@@ -9863,6 +9929,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9863
9929
|
}
|
|
9864
9930
|
get ["/thermostats/update_weekly_program"]() {
|
|
9865
9931
|
const { client, defaults } = this;
|
|
9932
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9933
|
+
throw new Error(
|
|
9934
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9935
|
+
);
|
|
9936
|
+
}
|
|
9866
9937
|
return function thermostatsUpdateWeeklyProgram(...args) {
|
|
9867
9938
|
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
9868
9939
|
return seam.updateWeeklyProgram(...args);
|
|
@@ -9870,6 +9941,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9870
9941
|
}
|
|
9871
9942
|
get ["/thermostats/daily_programs/create"]() {
|
|
9872
9943
|
const { client, defaults } = this;
|
|
9944
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9945
|
+
throw new Error(
|
|
9946
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9947
|
+
);
|
|
9948
|
+
}
|
|
9873
9949
|
return function thermostatsDailyProgramsCreate(...args) {
|
|
9874
9950
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
9875
9951
|
return seam.create(...args);
|
|
@@ -9877,6 +9953,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9877
9953
|
}
|
|
9878
9954
|
get ["/thermostats/daily_programs/delete"]() {
|
|
9879
9955
|
const { client, defaults } = this;
|
|
9956
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9957
|
+
throw new Error(
|
|
9958
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9959
|
+
);
|
|
9960
|
+
}
|
|
9880
9961
|
return function thermostatsDailyProgramsDelete(...args) {
|
|
9881
9962
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
9882
9963
|
return seam.delete(...args);
|
|
@@ -9884,6 +9965,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9884
9965
|
}
|
|
9885
9966
|
get ["/thermostats/daily_programs/update"]() {
|
|
9886
9967
|
const { client, defaults } = this;
|
|
9968
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9969
|
+
throw new Error(
|
|
9970
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9971
|
+
);
|
|
9972
|
+
}
|
|
9887
9973
|
return function thermostatsDailyProgramsUpdate(...args) {
|
|
9888
9974
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
9889
9975
|
return seam.update(...args);
|
|
@@ -10283,6 +10369,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10283
10369
|
}
|
|
10284
10370
|
get ["/user_identities/enrollment_automations/delete"]() {
|
|
10285
10371
|
const { client, defaults } = this;
|
|
10372
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10373
|
+
throw new Error(
|
|
10374
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10375
|
+
);
|
|
10376
|
+
}
|
|
10286
10377
|
return function userIdentitiesEnrollmentAutomationsDelete(...args) {
|
|
10287
10378
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10288
10379
|
client,
|
|
@@ -10293,6 +10384,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10293
10384
|
}
|
|
10294
10385
|
get ["/user_identities/enrollment_automations/get"]() {
|
|
10295
10386
|
const { client, defaults } = this;
|
|
10387
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10388
|
+
throw new Error(
|
|
10389
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10390
|
+
);
|
|
10391
|
+
}
|
|
10296
10392
|
return function userIdentitiesEnrollmentAutomationsGet(...args) {
|
|
10297
10393
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10298
10394
|
client,
|
|
@@ -10303,6 +10399,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10303
10399
|
}
|
|
10304
10400
|
get ["/user_identities/enrollment_automations/launch"]() {
|
|
10305
10401
|
const { client, defaults } = this;
|
|
10402
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10403
|
+
throw new Error(
|
|
10404
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10405
|
+
);
|
|
10406
|
+
}
|
|
10306
10407
|
return function userIdentitiesEnrollmentAutomationsLaunch(...args) {
|
|
10307
10408
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10308
10409
|
client,
|
|
@@ -10313,6 +10414,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10313
10414
|
}
|
|
10314
10415
|
get ["/user_identities/enrollment_automations/list"]() {
|
|
10315
10416
|
const { client, defaults } = this;
|
|
10417
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10418
|
+
throw new Error(
|
|
10419
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10420
|
+
);
|
|
10421
|
+
}
|
|
10316
10422
|
return function userIdentitiesEnrollmentAutomationsList(...args) {
|
|
10317
10423
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10318
10424
|
client,
|