@seamapi/http 1.56.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 -370
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3 -135
- package/dist/index.cjs +0 -374
- 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 -72
- 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/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 -160
- package/src/lib/seam/connect/routes/seam-http.ts +0 -10
- 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,
|
|
@@ -7359,284 +7355,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
7359
7355
|
_SeamHttpThermostats.ltsVersion = seamApiLtsVersion;
|
|
7360
7356
|
var SeamHttpThermostats = _SeamHttpThermostats;
|
|
7361
7357
|
|
|
7362
|
-
// src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts
|
|
7363
|
-
var _SeamHttpUnstableAccessGrants = class _SeamHttpUnstableAccessGrants {
|
|
7364
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7365
|
-
this.ltsVersion = seamApiLtsVersion;
|
|
7366
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7367
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7368
|
-
throw new Error(
|
|
7369
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7370
|
-
);
|
|
7371
|
-
}
|
|
7372
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7373
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7374
|
-
}
|
|
7375
|
-
static fromClient(client, options = {}) {
|
|
7376
|
-
const constructorOptions = { ...options, client };
|
|
7377
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7378
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7379
|
-
}
|
|
7380
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7381
|
-
}
|
|
7382
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7383
|
-
const constructorOptions = { ...options, apiKey };
|
|
7384
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7385
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7386
|
-
}
|
|
7387
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7388
|
-
}
|
|
7389
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7390
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7391
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7392
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7393
|
-
}
|
|
7394
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7395
|
-
}
|
|
7396
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7397
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7398
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7399
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7400
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7401
|
-
"The client option cannot be used with SeamHttpUnstableAccessGrants.fromPublishableKey"
|
|
7402
|
-
);
|
|
7403
|
-
}
|
|
7404
|
-
const client = createClient(clientOptions);
|
|
7405
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7406
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7407
|
-
user_identifier_key: userIdentifierKey
|
|
7408
|
-
});
|
|
7409
|
-
return _SeamHttpUnstableAccessGrants.fromClientSessionToken(token, options);
|
|
7410
|
-
}
|
|
7411
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7412
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7413
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7414
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7415
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7416
|
-
);
|
|
7417
|
-
}
|
|
7418
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7419
|
-
}
|
|
7420
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7421
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7422
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7423
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7424
|
-
"Missing personalAccessToken or workspaceId"
|
|
7425
|
-
);
|
|
7426
|
-
}
|
|
7427
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7428
|
-
}
|
|
7429
|
-
createPaginator(request) {
|
|
7430
|
-
return new SeamPaginator(this, request);
|
|
7431
|
-
}
|
|
7432
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7433
|
-
const { headers } = this.client.defaults;
|
|
7434
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7435
|
-
clientSessionToken
|
|
7436
|
-
});
|
|
7437
|
-
for (const key of Object.keys(authHeaders)) {
|
|
7438
|
-
if (headers[key] == null) {
|
|
7439
|
-
throw new Error(
|
|
7440
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7441
|
-
);
|
|
7442
|
-
}
|
|
7443
|
-
}
|
|
7444
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7445
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7446
|
-
await clientSessions.get();
|
|
7447
|
-
}
|
|
7448
|
-
create(parameters, options = {}) {
|
|
7449
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7450
|
-
throw new Error(
|
|
7451
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7452
|
-
);
|
|
7453
|
-
}
|
|
7454
|
-
return new SeamHttpRequest(this, {
|
|
7455
|
-
pathname: "/unstable_access_grants/create",
|
|
7456
|
-
method: "POST",
|
|
7457
|
-
body: parameters,
|
|
7458
|
-
responseKey: "access_grant",
|
|
7459
|
-
options
|
|
7460
|
-
});
|
|
7461
|
-
}
|
|
7462
|
-
delete(parameters, options = {}) {
|
|
7463
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7464
|
-
throw new Error(
|
|
7465
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7466
|
-
);
|
|
7467
|
-
}
|
|
7468
|
-
return new SeamHttpRequest(this, {
|
|
7469
|
-
pathname: "/unstable_access_grants/delete",
|
|
7470
|
-
method: "POST",
|
|
7471
|
-
body: parameters,
|
|
7472
|
-
responseKey: void 0,
|
|
7473
|
-
options
|
|
7474
|
-
});
|
|
7475
|
-
}
|
|
7476
|
-
get(parameters, options = {}) {
|
|
7477
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7478
|
-
throw new Error(
|
|
7479
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7480
|
-
);
|
|
7481
|
-
}
|
|
7482
|
-
return new SeamHttpRequest(this, {
|
|
7483
|
-
pathname: "/unstable_access_grants/get",
|
|
7484
|
-
method: "POST",
|
|
7485
|
-
body: parameters,
|
|
7486
|
-
responseKey: "access_grant",
|
|
7487
|
-
options
|
|
7488
|
-
});
|
|
7489
|
-
}
|
|
7490
|
-
list(parameters, options = {}) {
|
|
7491
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7492
|
-
throw new Error(
|
|
7493
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7494
|
-
);
|
|
7495
|
-
}
|
|
7496
|
-
return new SeamHttpRequest(this, {
|
|
7497
|
-
pathname: "/unstable_access_grants/list",
|
|
7498
|
-
method: "POST",
|
|
7499
|
-
body: parameters,
|
|
7500
|
-
responseKey: "access_grants",
|
|
7501
|
-
options
|
|
7502
|
-
});
|
|
7503
|
-
}
|
|
7504
|
-
};
|
|
7505
|
-
_SeamHttpUnstableAccessGrants.ltsVersion = seamApiLtsVersion;
|
|
7506
|
-
var SeamHttpUnstableAccessGrants = _SeamHttpUnstableAccessGrants;
|
|
7507
|
-
|
|
7508
|
-
// src/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.ts
|
|
7509
|
-
var _SeamHttpUnstableAccessMethods = class _SeamHttpUnstableAccessMethods {
|
|
7510
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7511
|
-
this.ltsVersion = seamApiLtsVersion;
|
|
7512
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7513
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7514
|
-
throw new Error(
|
|
7515
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7516
|
-
);
|
|
7517
|
-
}
|
|
7518
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7519
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7520
|
-
}
|
|
7521
|
-
static fromClient(client, options = {}) {
|
|
7522
|
-
const constructorOptions = { ...options, client };
|
|
7523
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7524
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7525
|
-
}
|
|
7526
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7527
|
-
}
|
|
7528
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7529
|
-
const constructorOptions = { ...options, apiKey };
|
|
7530
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7531
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7532
|
-
}
|
|
7533
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7534
|
-
}
|
|
7535
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7536
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7537
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7538
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7539
|
-
}
|
|
7540
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7541
|
-
}
|
|
7542
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7543
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7544
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7545
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7546
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7547
|
-
"The client option cannot be used with SeamHttpUnstableAccessMethods.fromPublishableKey"
|
|
7548
|
-
);
|
|
7549
|
-
}
|
|
7550
|
-
const client = createClient(clientOptions);
|
|
7551
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7552
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7553
|
-
user_identifier_key: userIdentifierKey
|
|
7554
|
-
});
|
|
7555
|
-
return _SeamHttpUnstableAccessMethods.fromClientSessionToken(token, options);
|
|
7556
|
-
}
|
|
7557
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7558
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7559
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7560
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7561
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7562
|
-
);
|
|
7563
|
-
}
|
|
7564
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7565
|
-
}
|
|
7566
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7567
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7568
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7569
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7570
|
-
"Missing personalAccessToken or workspaceId"
|
|
7571
|
-
);
|
|
7572
|
-
}
|
|
7573
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7574
|
-
}
|
|
7575
|
-
createPaginator(request) {
|
|
7576
|
-
return new SeamPaginator(this, request);
|
|
7577
|
-
}
|
|
7578
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7579
|
-
const { headers } = this.client.defaults;
|
|
7580
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7581
|
-
clientSessionToken
|
|
7582
|
-
});
|
|
7583
|
-
for (const key of Object.keys(authHeaders)) {
|
|
7584
|
-
if (headers[key] == null) {
|
|
7585
|
-
throw new Error(
|
|
7586
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7587
|
-
);
|
|
7588
|
-
}
|
|
7589
|
-
}
|
|
7590
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7591
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7592
|
-
await clientSessions.get();
|
|
7593
|
-
}
|
|
7594
|
-
delete(parameters, options = {}) {
|
|
7595
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7596
|
-
throw new Error(
|
|
7597
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7598
|
-
);
|
|
7599
|
-
}
|
|
7600
|
-
return new SeamHttpRequest(this, {
|
|
7601
|
-
pathname: "/unstable_access_methods/delete",
|
|
7602
|
-
method: "POST",
|
|
7603
|
-
body: parameters,
|
|
7604
|
-
responseKey: void 0,
|
|
7605
|
-
options
|
|
7606
|
-
});
|
|
7607
|
-
}
|
|
7608
|
-
get(parameters, options = {}) {
|
|
7609
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7610
|
-
throw new Error(
|
|
7611
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7612
|
-
);
|
|
7613
|
-
}
|
|
7614
|
-
return new SeamHttpRequest(this, {
|
|
7615
|
-
pathname: "/unstable_access_methods/get",
|
|
7616
|
-
method: "POST",
|
|
7617
|
-
body: parameters,
|
|
7618
|
-
responseKey: "access_method",
|
|
7619
|
-
options
|
|
7620
|
-
});
|
|
7621
|
-
}
|
|
7622
|
-
list(parameters, options = {}) {
|
|
7623
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7624
|
-
throw new Error(
|
|
7625
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7626
|
-
);
|
|
7627
|
-
}
|
|
7628
|
-
return new SeamHttpRequest(this, {
|
|
7629
|
-
pathname: "/unstable_access_methods/list",
|
|
7630
|
-
method: "POST",
|
|
7631
|
-
body: parameters,
|
|
7632
|
-
responseKey: "access_methods",
|
|
7633
|
-
options
|
|
7634
|
-
});
|
|
7635
|
-
}
|
|
7636
|
-
};
|
|
7637
|
-
_SeamHttpUnstableAccessMethods.ltsVersion = seamApiLtsVersion;
|
|
7638
|
-
var SeamHttpUnstableAccessMethods = _SeamHttpUnstableAccessMethods;
|
|
7639
|
-
|
|
7640
7358
|
// src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts
|
|
7641
7359
|
var _SeamHttpUnstableLocations = class _SeamHttpUnstableLocations {
|
|
7642
7360
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -8864,12 +8582,6 @@ var _SeamHttp = class _SeamHttp {
|
|
|
8864
8582
|
get thermostats() {
|
|
8865
8583
|
return SeamHttpThermostats.fromClient(this.client, this.defaults);
|
|
8866
8584
|
}
|
|
8867
|
-
get unstableAccessGrants() {
|
|
8868
|
-
return SeamHttpUnstableAccessGrants.fromClient(this.client, this.defaults);
|
|
8869
|
-
}
|
|
8870
|
-
get unstableAccessMethods() {
|
|
8871
|
-
return SeamHttpUnstableAccessMethods.fromClient(this.client, this.defaults);
|
|
8872
|
-
}
|
|
8873
8585
|
get unstableLocations() {
|
|
8874
8586
|
return SeamHttpUnstableLocations.fromClient(this.client, this.defaults);
|
|
8875
8587
|
}
|
|
@@ -10364,90 +10076,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10364
10076
|
return seam.temperatureReached(...args);
|
|
10365
10077
|
};
|
|
10366
10078
|
}
|
|
10367
|
-
get ["/unstable_access_grants/create"]() {
|
|
10368
|
-
const { client, defaults } = this;
|
|
10369
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10370
|
-
throw new Error(
|
|
10371
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10372
|
-
);
|
|
10373
|
-
}
|
|
10374
|
-
return function unstableAccessGrantsCreate(...args) {
|
|
10375
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10376
|
-
return seam.create(...args);
|
|
10377
|
-
};
|
|
10378
|
-
}
|
|
10379
|
-
get ["/unstable_access_grants/delete"]() {
|
|
10380
|
-
const { client, defaults } = this;
|
|
10381
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10382
|
-
throw new Error(
|
|
10383
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10384
|
-
);
|
|
10385
|
-
}
|
|
10386
|
-
return function unstableAccessGrantsDelete(...args) {
|
|
10387
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10388
|
-
return seam.delete(...args);
|
|
10389
|
-
};
|
|
10390
|
-
}
|
|
10391
|
-
get ["/unstable_access_grants/get"]() {
|
|
10392
|
-
const { client, defaults } = this;
|
|
10393
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10394
|
-
throw new Error(
|
|
10395
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10396
|
-
);
|
|
10397
|
-
}
|
|
10398
|
-
return function unstableAccessGrantsGet(...args) {
|
|
10399
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10400
|
-
return seam.get(...args);
|
|
10401
|
-
};
|
|
10402
|
-
}
|
|
10403
|
-
get ["/unstable_access_grants/list"]() {
|
|
10404
|
-
const { client, defaults } = this;
|
|
10405
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10406
|
-
throw new Error(
|
|
10407
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10408
|
-
);
|
|
10409
|
-
}
|
|
10410
|
-
return function unstableAccessGrantsList(...args) {
|
|
10411
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10412
|
-
return seam.list(...args);
|
|
10413
|
-
};
|
|
10414
|
-
}
|
|
10415
|
-
get ["/unstable_access_methods/delete"]() {
|
|
10416
|
-
const { client, defaults } = this;
|
|
10417
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10418
|
-
throw new Error(
|
|
10419
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10420
|
-
);
|
|
10421
|
-
}
|
|
10422
|
-
return function unstableAccessMethodsDelete(...args) {
|
|
10423
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
|
|
10424
|
-
return seam.delete(...args);
|
|
10425
|
-
};
|
|
10426
|
-
}
|
|
10427
|
-
get ["/unstable_access_methods/get"]() {
|
|
10428
|
-
const { client, defaults } = this;
|
|
10429
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10430
|
-
throw new Error(
|
|
10431
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10432
|
-
);
|
|
10433
|
-
}
|
|
10434
|
-
return function unstableAccessMethodsGet(...args) {
|
|
10435
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
|
|
10436
|
-
return seam.get(...args);
|
|
10437
|
-
};
|
|
10438
|
-
}
|
|
10439
|
-
get ["/unstable_access_methods/list"]() {
|
|
10440
|
-
const { client, defaults } = this;
|
|
10441
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10442
|
-
throw new Error(
|
|
10443
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10444
|
-
);
|
|
10445
|
-
}
|
|
10446
|
-
return function unstableAccessMethodsList(...args) {
|
|
10447
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
|
|
10448
|
-
return seam.list(...args);
|
|
10449
|
-
};
|
|
10450
|
-
}
|
|
10451
10079
|
get ["/unstable_locations/add_acs_entrances"]() {
|
|
10452
10080
|
const { client, defaults } = this;
|
|
10453
10081
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11023,8 +10651,6 @@ exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
|
|
|
11023
10651
|
exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
|
|
11024
10652
|
exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
|
|
11025
10653
|
exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
|
|
11026
|
-
exports.SeamHttpUnstableAccessGrants = SeamHttpUnstableAccessGrants;
|
|
11027
|
-
exports.SeamHttpUnstableAccessMethods = SeamHttpUnstableAccessMethods;
|
|
11028
10654
|
exports.SeamHttpUnstableLocations = SeamHttpUnstableLocations;
|
|
11029
10655
|
exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
|
|
11030
10656
|
exports.SeamHttpUnstablePartnerBuildingBlocks = SeamHttpUnstablePartnerBuildingBlocks;
|