@seamapi/http 1.55.0 → 1.57.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 +0 -415
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3 -135
- package/dist/index.cjs +0 -419
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/index.d.ts +0 -2
- package/lib/seam/connect/routes/index.js +0 -2
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +2 -11
- package/lib/seam/connect/routes/seam-http-endpoints.js +0 -84
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/seam-http.d.ts +0 -4
- package/lib/seam/connect/routes/seam-http.js +0 -8
- package/lib/seam/connect/routes/seam-http.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +0 -12
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.js +0 -3
- package/lib/seam/connect/routes/thermostats/thermostats.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/index.ts +0 -2
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -180
- package/src/lib/seam/connect/routes/seam-http.ts +0 -10
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +0 -20
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +0 -5
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/unstable-access-grants/index.d.ts +0 -1
- package/lib/seam/connect/routes/unstable-access-grants/index.js +0 -6
- package/lib/seam/connect/routes/unstable-access-grants/index.js.map +0 -1
- package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.d.ts +0 -73
- package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js +0 -138
- package/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.js.map +0 -1
- package/lib/seam/connect/routes/unstable-access-methods/index.d.ts +0 -1
- package/lib/seam/connect/routes/unstable-access-methods/index.js +0 -6
- package/lib/seam/connect/routes/unstable-access-methods/index.js.map +0 -1
- package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.d.ts +0 -60
- package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js +0 -126
- package/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.js.map +0 -1
- package/src/lib/seam/connect/routes/unstable-access-grants/index.ts +0 -6
- package/src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts +0 -333
- package/src/lib/seam/connect/routes/unstable-access-methods/index.ts +0 -6
- package/src/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.ts +0 -295
package/dist/index.cjs
CHANGED
|
@@ -121,8 +121,6 @@ __export(index_exports, {
|
|
|
121
121
|
SeamHttpThermostatsSchedules: () => SeamHttpThermostatsSchedules,
|
|
122
122
|
SeamHttpThermostatsSimulate: () => SeamHttpThermostatsSimulate,
|
|
123
123
|
SeamHttpUnauthorizedError: () => SeamHttpUnauthorizedError,
|
|
124
|
-
SeamHttpUnstableAccessGrants: () => SeamHttpUnstableAccessGrants,
|
|
125
|
-
SeamHttpUnstableAccessMethods: () => SeamHttpUnstableAccessMethods,
|
|
126
124
|
SeamHttpUnstableLocations: () => SeamHttpUnstableLocations,
|
|
127
125
|
SeamHttpUnstablePartner: () => SeamHttpUnstablePartner,
|
|
128
126
|
SeamHttpUnstablePartnerBuildingBlocks: () => SeamHttpUnstablePartnerBuildingBlocks,
|
|
@@ -223,8 +221,6 @@ __export(connect_exports, {
|
|
|
223
221
|
SeamHttpThermostatsSchedules: () => SeamHttpThermostatsSchedules,
|
|
224
222
|
SeamHttpThermostatsSimulate: () => SeamHttpThermostatsSimulate,
|
|
225
223
|
SeamHttpUnauthorizedError: () => SeamHttpUnauthorizedError,
|
|
226
|
-
SeamHttpUnstableAccessGrants: () => SeamHttpUnstableAccessGrants,
|
|
227
|
-
SeamHttpUnstableAccessMethods: () => SeamHttpUnstableAccessMethods,
|
|
228
224
|
SeamHttpUnstableLocations: () => SeamHttpUnstableLocations,
|
|
229
225
|
SeamHttpUnstablePartner: () => SeamHttpUnstablePartner,
|
|
230
226
|
SeamHttpUnstablePartnerBuildingBlocks: () => SeamHttpUnstablePartnerBuildingBlocks,
|
|
@@ -6779,11 +6775,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6779
6775
|
constructor(apiKeyOrOptions = {}) {
|
|
6780
6776
|
this.ltsVersion = seamApiLtsVersion;
|
|
6781
6777
|
const options = parseOptions(apiKeyOrOptions);
|
|
6782
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
6783
|
-
throw new Error(
|
|
6784
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6785
|
-
);
|
|
6786
|
-
}
|
|
6787
6778
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6788
6779
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6789
6780
|
}
|
|
@@ -6864,11 +6855,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6864
6855
|
await clientSessions.get();
|
|
6865
6856
|
}
|
|
6866
6857
|
create(parameters, options = {}) {
|
|
6867
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6868
|
-
throw new Error(
|
|
6869
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6870
|
-
);
|
|
6871
|
-
}
|
|
6872
6858
|
return new SeamHttpRequest(this, {
|
|
6873
6859
|
pathname: "/thermostats/daily_programs/create",
|
|
6874
6860
|
method: "POST",
|
|
@@ -6878,11 +6864,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6878
6864
|
});
|
|
6879
6865
|
}
|
|
6880
6866
|
delete(parameters, options = {}) {
|
|
6881
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6882
|
-
throw new Error(
|
|
6883
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6884
|
-
);
|
|
6885
|
-
}
|
|
6886
6867
|
return new SeamHttpRequest(this, {
|
|
6887
6868
|
pathname: "/thermostats/daily_programs/delete",
|
|
6888
6869
|
method: "POST",
|
|
@@ -6892,11 +6873,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6892
6873
|
});
|
|
6893
6874
|
}
|
|
6894
6875
|
update(parameters, options = {}) {
|
|
6895
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6896
|
-
throw new Error(
|
|
6897
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6898
|
-
);
|
|
6899
|
-
}
|
|
6900
6876
|
return new SeamHttpRequest(this, {
|
|
6901
6877
|
pathname: "/thermostats/daily_programs/update",
|
|
6902
6878
|
method: "PATCH",
|
|
@@ -7367,11 +7343,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
7367
7343
|
});
|
|
7368
7344
|
}
|
|
7369
7345
|
updateWeeklyProgram(parameters, options = {}) {
|
|
7370
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7371
|
-
throw new Error(
|
|
7372
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7373
|
-
);
|
|
7374
|
-
}
|
|
7375
7346
|
return new SeamHttpRequest(this, {
|
|
7376
7347
|
pathname: "/thermostats/update_weekly_program",
|
|
7377
7348
|
method: "POST",
|
|
@@ -7384,284 +7355,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
7384
7355
|
_SeamHttpThermostats.ltsVersion = seamApiLtsVersion;
|
|
7385
7356
|
var SeamHttpThermostats = _SeamHttpThermostats;
|
|
7386
7357
|
|
|
7387
|
-
// src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts
|
|
7388
|
-
var _SeamHttpUnstableAccessGrants = class _SeamHttpUnstableAccessGrants {
|
|
7389
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7390
|
-
this.ltsVersion = seamApiLtsVersion;
|
|
7391
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7392
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7393
|
-
throw new Error(
|
|
7394
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7395
|
-
);
|
|
7396
|
-
}
|
|
7397
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7398
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7399
|
-
}
|
|
7400
|
-
static fromClient(client, options = {}) {
|
|
7401
|
-
const constructorOptions = { ...options, client };
|
|
7402
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7403
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7404
|
-
}
|
|
7405
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7406
|
-
}
|
|
7407
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7408
|
-
const constructorOptions = { ...options, apiKey };
|
|
7409
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7410
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7411
|
-
}
|
|
7412
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7413
|
-
}
|
|
7414
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7415
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7416
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7417
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7418
|
-
}
|
|
7419
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7420
|
-
}
|
|
7421
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7422
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7423
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7424
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7425
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7426
|
-
"The client option cannot be used with SeamHttpUnstableAccessGrants.fromPublishableKey"
|
|
7427
|
-
);
|
|
7428
|
-
}
|
|
7429
|
-
const client = createClient(clientOptions);
|
|
7430
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7431
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7432
|
-
user_identifier_key: userIdentifierKey
|
|
7433
|
-
});
|
|
7434
|
-
return _SeamHttpUnstableAccessGrants.fromClientSessionToken(token, options);
|
|
7435
|
-
}
|
|
7436
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7437
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7438
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7439
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7440
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7441
|
-
);
|
|
7442
|
-
}
|
|
7443
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7444
|
-
}
|
|
7445
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7446
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7447
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7448
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7449
|
-
"Missing personalAccessToken or workspaceId"
|
|
7450
|
-
);
|
|
7451
|
-
}
|
|
7452
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7453
|
-
}
|
|
7454
|
-
createPaginator(request) {
|
|
7455
|
-
return new SeamPaginator(this, request);
|
|
7456
|
-
}
|
|
7457
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7458
|
-
const { headers } = this.client.defaults;
|
|
7459
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7460
|
-
clientSessionToken
|
|
7461
|
-
});
|
|
7462
|
-
for (const key of Object.keys(authHeaders)) {
|
|
7463
|
-
if (headers[key] == null) {
|
|
7464
|
-
throw new Error(
|
|
7465
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7466
|
-
);
|
|
7467
|
-
}
|
|
7468
|
-
}
|
|
7469
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7470
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7471
|
-
await clientSessions.get();
|
|
7472
|
-
}
|
|
7473
|
-
create(parameters, options = {}) {
|
|
7474
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7475
|
-
throw new Error(
|
|
7476
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7477
|
-
);
|
|
7478
|
-
}
|
|
7479
|
-
return new SeamHttpRequest(this, {
|
|
7480
|
-
pathname: "/unstable_access_grants/create",
|
|
7481
|
-
method: "POST",
|
|
7482
|
-
body: parameters,
|
|
7483
|
-
responseKey: "access_grant",
|
|
7484
|
-
options
|
|
7485
|
-
});
|
|
7486
|
-
}
|
|
7487
|
-
delete(parameters, options = {}) {
|
|
7488
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7489
|
-
throw new Error(
|
|
7490
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7491
|
-
);
|
|
7492
|
-
}
|
|
7493
|
-
return new SeamHttpRequest(this, {
|
|
7494
|
-
pathname: "/unstable_access_grants/delete",
|
|
7495
|
-
method: "POST",
|
|
7496
|
-
body: parameters,
|
|
7497
|
-
responseKey: void 0,
|
|
7498
|
-
options
|
|
7499
|
-
});
|
|
7500
|
-
}
|
|
7501
|
-
get(parameters, options = {}) {
|
|
7502
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7503
|
-
throw new Error(
|
|
7504
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7505
|
-
);
|
|
7506
|
-
}
|
|
7507
|
-
return new SeamHttpRequest(this, {
|
|
7508
|
-
pathname: "/unstable_access_grants/get",
|
|
7509
|
-
method: "POST",
|
|
7510
|
-
body: parameters,
|
|
7511
|
-
responseKey: "access_grant",
|
|
7512
|
-
options
|
|
7513
|
-
});
|
|
7514
|
-
}
|
|
7515
|
-
list(parameters, options = {}) {
|
|
7516
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7517
|
-
throw new Error(
|
|
7518
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7519
|
-
);
|
|
7520
|
-
}
|
|
7521
|
-
return new SeamHttpRequest(this, {
|
|
7522
|
-
pathname: "/unstable_access_grants/list",
|
|
7523
|
-
method: "POST",
|
|
7524
|
-
body: parameters,
|
|
7525
|
-
responseKey: "access_grants",
|
|
7526
|
-
options
|
|
7527
|
-
});
|
|
7528
|
-
}
|
|
7529
|
-
};
|
|
7530
|
-
_SeamHttpUnstableAccessGrants.ltsVersion = seamApiLtsVersion;
|
|
7531
|
-
var SeamHttpUnstableAccessGrants = _SeamHttpUnstableAccessGrants;
|
|
7532
|
-
|
|
7533
|
-
// src/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.ts
|
|
7534
|
-
var _SeamHttpUnstableAccessMethods = class _SeamHttpUnstableAccessMethods {
|
|
7535
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7536
|
-
this.ltsVersion = seamApiLtsVersion;
|
|
7537
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7538
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7539
|
-
throw new Error(
|
|
7540
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7541
|
-
);
|
|
7542
|
-
}
|
|
7543
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7544
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7545
|
-
}
|
|
7546
|
-
static fromClient(client, options = {}) {
|
|
7547
|
-
const constructorOptions = { ...options, client };
|
|
7548
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7549
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7550
|
-
}
|
|
7551
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7552
|
-
}
|
|
7553
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7554
|
-
const constructorOptions = { ...options, apiKey };
|
|
7555
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7556
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7557
|
-
}
|
|
7558
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7559
|
-
}
|
|
7560
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7561
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7562
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7563
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7564
|
-
}
|
|
7565
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7566
|
-
}
|
|
7567
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7568
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7569
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7570
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7571
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7572
|
-
"The client option cannot be used with SeamHttpUnstableAccessMethods.fromPublishableKey"
|
|
7573
|
-
);
|
|
7574
|
-
}
|
|
7575
|
-
const client = createClient(clientOptions);
|
|
7576
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7577
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7578
|
-
user_identifier_key: userIdentifierKey
|
|
7579
|
-
});
|
|
7580
|
-
return _SeamHttpUnstableAccessMethods.fromClientSessionToken(token, options);
|
|
7581
|
-
}
|
|
7582
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7583
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7584
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7585
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7586
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7587
|
-
);
|
|
7588
|
-
}
|
|
7589
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7590
|
-
}
|
|
7591
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7592
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7593
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7594
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7595
|
-
"Missing personalAccessToken or workspaceId"
|
|
7596
|
-
);
|
|
7597
|
-
}
|
|
7598
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7599
|
-
}
|
|
7600
|
-
createPaginator(request) {
|
|
7601
|
-
return new SeamPaginator(this, request);
|
|
7602
|
-
}
|
|
7603
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7604
|
-
const { headers } = this.client.defaults;
|
|
7605
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7606
|
-
clientSessionToken
|
|
7607
|
-
});
|
|
7608
|
-
for (const key of Object.keys(authHeaders)) {
|
|
7609
|
-
if (headers[key] == null) {
|
|
7610
|
-
throw new Error(
|
|
7611
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7612
|
-
);
|
|
7613
|
-
}
|
|
7614
|
-
}
|
|
7615
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7616
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7617
|
-
await clientSessions.get();
|
|
7618
|
-
}
|
|
7619
|
-
delete(parameters, options = {}) {
|
|
7620
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7621
|
-
throw new Error(
|
|
7622
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7623
|
-
);
|
|
7624
|
-
}
|
|
7625
|
-
return new SeamHttpRequest(this, {
|
|
7626
|
-
pathname: "/unstable_access_methods/delete",
|
|
7627
|
-
method: "POST",
|
|
7628
|
-
body: parameters,
|
|
7629
|
-
responseKey: void 0,
|
|
7630
|
-
options
|
|
7631
|
-
});
|
|
7632
|
-
}
|
|
7633
|
-
get(parameters, options = {}) {
|
|
7634
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7635
|
-
throw new Error(
|
|
7636
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7637
|
-
);
|
|
7638
|
-
}
|
|
7639
|
-
return new SeamHttpRequest(this, {
|
|
7640
|
-
pathname: "/unstable_access_methods/get",
|
|
7641
|
-
method: "POST",
|
|
7642
|
-
body: parameters,
|
|
7643
|
-
responseKey: "access_method",
|
|
7644
|
-
options
|
|
7645
|
-
});
|
|
7646
|
-
}
|
|
7647
|
-
list(parameters, options = {}) {
|
|
7648
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7649
|
-
throw new Error(
|
|
7650
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7651
|
-
);
|
|
7652
|
-
}
|
|
7653
|
-
return new SeamHttpRequest(this, {
|
|
7654
|
-
pathname: "/unstable_access_methods/list",
|
|
7655
|
-
method: "POST",
|
|
7656
|
-
body: parameters,
|
|
7657
|
-
responseKey: "access_methods",
|
|
7658
|
-
options
|
|
7659
|
-
});
|
|
7660
|
-
}
|
|
7661
|
-
};
|
|
7662
|
-
_SeamHttpUnstableAccessMethods.ltsVersion = seamApiLtsVersion;
|
|
7663
|
-
var SeamHttpUnstableAccessMethods = _SeamHttpUnstableAccessMethods;
|
|
7664
|
-
|
|
7665
7358
|
// src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts
|
|
7666
7359
|
var _SeamHttpUnstableLocations = class _SeamHttpUnstableLocations {
|
|
7667
7360
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -8889,12 +8582,6 @@ var _SeamHttp = class _SeamHttp {
|
|
|
8889
8582
|
get thermostats() {
|
|
8890
8583
|
return SeamHttpThermostats.fromClient(this.client, this.defaults);
|
|
8891
8584
|
}
|
|
8892
|
-
get unstableAccessGrants() {
|
|
8893
|
-
return SeamHttpUnstableAccessGrants.fromClient(this.client, this.defaults);
|
|
8894
|
-
}
|
|
8895
|
-
get unstableAccessMethods() {
|
|
8896
|
-
return SeamHttpUnstableAccessMethods.fromClient(this.client, this.defaults);
|
|
8897
|
-
}
|
|
8898
8585
|
get unstableLocations() {
|
|
8899
8586
|
return SeamHttpUnstableLocations.fromClient(this.client, this.defaults);
|
|
8900
8587
|
}
|
|
@@ -10314,11 +10001,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10314
10001
|
}
|
|
10315
10002
|
get ["/thermostats/update_weekly_program"]() {
|
|
10316
10003
|
const { client, defaults } = this;
|
|
10317
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10318
|
-
throw new Error(
|
|
10319
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10320
|
-
);
|
|
10321
|
-
}
|
|
10322
10004
|
return function thermostatsUpdateWeeklyProgram(...args) {
|
|
10323
10005
|
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
10324
10006
|
return seam.updateWeeklyProgram(...args);
|
|
@@ -10326,11 +10008,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10326
10008
|
}
|
|
10327
10009
|
get ["/thermostats/daily_programs/create"]() {
|
|
10328
10010
|
const { client, defaults } = this;
|
|
10329
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10330
|
-
throw new Error(
|
|
10331
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10332
|
-
);
|
|
10333
|
-
}
|
|
10334
10011
|
return function thermostatsDailyProgramsCreate(...args) {
|
|
10335
10012
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10336
10013
|
return seam.create(...args);
|
|
@@ -10338,11 +10015,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10338
10015
|
}
|
|
10339
10016
|
get ["/thermostats/daily_programs/delete"]() {
|
|
10340
10017
|
const { client, defaults } = this;
|
|
10341
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10342
|
-
throw new Error(
|
|
10343
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10344
|
-
);
|
|
10345
|
-
}
|
|
10346
10018
|
return function thermostatsDailyProgramsDelete(...args) {
|
|
10347
10019
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10348
10020
|
return seam.delete(...args);
|
|
@@ -10350,11 +10022,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10350
10022
|
}
|
|
10351
10023
|
get ["/thermostats/daily_programs/update"]() {
|
|
10352
10024
|
const { client, defaults } = this;
|
|
10353
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10354
|
-
throw new Error(
|
|
10355
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10356
|
-
);
|
|
10357
|
-
}
|
|
10358
10025
|
return function thermostatsDailyProgramsUpdate(...args) {
|
|
10359
10026
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10360
10027
|
return seam.update(...args);
|
|
@@ -10409,90 +10076,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10409
10076
|
return seam.temperatureReached(...args);
|
|
10410
10077
|
};
|
|
10411
10078
|
}
|
|
10412
|
-
get ["/unstable_access_grants/create"]() {
|
|
10413
|
-
const { client, defaults } = this;
|
|
10414
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10415
|
-
throw new Error(
|
|
10416
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10417
|
-
);
|
|
10418
|
-
}
|
|
10419
|
-
return function unstableAccessGrantsCreate(...args) {
|
|
10420
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10421
|
-
return seam.create(...args);
|
|
10422
|
-
};
|
|
10423
|
-
}
|
|
10424
|
-
get ["/unstable_access_grants/delete"]() {
|
|
10425
|
-
const { client, defaults } = this;
|
|
10426
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10427
|
-
throw new Error(
|
|
10428
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10429
|
-
);
|
|
10430
|
-
}
|
|
10431
|
-
return function unstableAccessGrantsDelete(...args) {
|
|
10432
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10433
|
-
return seam.delete(...args);
|
|
10434
|
-
};
|
|
10435
|
-
}
|
|
10436
|
-
get ["/unstable_access_grants/get"]() {
|
|
10437
|
-
const { client, defaults } = this;
|
|
10438
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10439
|
-
throw new Error(
|
|
10440
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10441
|
-
);
|
|
10442
|
-
}
|
|
10443
|
-
return function unstableAccessGrantsGet(...args) {
|
|
10444
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10445
|
-
return seam.get(...args);
|
|
10446
|
-
};
|
|
10447
|
-
}
|
|
10448
|
-
get ["/unstable_access_grants/list"]() {
|
|
10449
|
-
const { client, defaults } = this;
|
|
10450
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10451
|
-
throw new Error(
|
|
10452
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10453
|
-
);
|
|
10454
|
-
}
|
|
10455
|
-
return function unstableAccessGrantsList(...args) {
|
|
10456
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10457
|
-
return seam.list(...args);
|
|
10458
|
-
};
|
|
10459
|
-
}
|
|
10460
|
-
get ["/unstable_access_methods/delete"]() {
|
|
10461
|
-
const { client, defaults } = this;
|
|
10462
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10463
|
-
throw new Error(
|
|
10464
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10465
|
-
);
|
|
10466
|
-
}
|
|
10467
|
-
return function unstableAccessMethodsDelete(...args) {
|
|
10468
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
|
|
10469
|
-
return seam.delete(...args);
|
|
10470
|
-
};
|
|
10471
|
-
}
|
|
10472
|
-
get ["/unstable_access_methods/get"]() {
|
|
10473
|
-
const { client, defaults } = this;
|
|
10474
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10475
|
-
throw new Error(
|
|
10476
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10477
|
-
);
|
|
10478
|
-
}
|
|
10479
|
-
return function unstableAccessMethodsGet(...args) {
|
|
10480
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
|
|
10481
|
-
return seam.get(...args);
|
|
10482
|
-
};
|
|
10483
|
-
}
|
|
10484
|
-
get ["/unstable_access_methods/list"]() {
|
|
10485
|
-
const { client, defaults } = this;
|
|
10486
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10487
|
-
throw new Error(
|
|
10488
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10489
|
-
);
|
|
10490
|
-
}
|
|
10491
|
-
return function unstableAccessMethodsList(...args) {
|
|
10492
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
|
|
10493
|
-
return seam.list(...args);
|
|
10494
|
-
};
|
|
10495
|
-
}
|
|
10496
10079
|
get ["/unstable_locations/add_acs_entrances"]() {
|
|
10497
10080
|
const { client, defaults } = this;
|
|
10498
10081
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11068,8 +10651,6 @@ exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
|
|
|
11068
10651
|
exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
|
|
11069
10652
|
exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
|
|
11070
10653
|
exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
|
|
11071
|
-
exports.SeamHttpUnstableAccessGrants = SeamHttpUnstableAccessGrants;
|
|
11072
|
-
exports.SeamHttpUnstableAccessMethods = SeamHttpUnstableAccessMethods;
|
|
11073
10654
|
exports.SeamHttpUnstableLocations = SeamHttpUnstableLocations;
|
|
11074
10655
|
exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
|
|
11075
10656
|
exports.SeamHttpUnstablePartnerBuildingBlocks = SeamHttpUnstablePartnerBuildingBlocks;
|