@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/connect.cjs
CHANGED
|
@@ -6539,11 +6539,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6539
6539
|
constructor(apiKeyOrOptions = {}) {
|
|
6540
6540
|
this.ltsVersion = seamApiLtsVersion;
|
|
6541
6541
|
const options = parseOptions(apiKeyOrOptions);
|
|
6542
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
6543
|
-
throw new Error(
|
|
6544
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6545
|
-
);
|
|
6546
|
-
}
|
|
6547
6542
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6548
6543
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6549
6544
|
}
|
|
@@ -6624,11 +6619,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6624
6619
|
await clientSessions.get();
|
|
6625
6620
|
}
|
|
6626
6621
|
create(parameters, options = {}) {
|
|
6627
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6628
|
-
throw new Error(
|
|
6629
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6630
|
-
);
|
|
6631
|
-
}
|
|
6632
6622
|
return new SeamHttpRequest(this, {
|
|
6633
6623
|
pathname: "/thermostats/daily_programs/create",
|
|
6634
6624
|
method: "POST",
|
|
@@ -6638,11 +6628,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6638
6628
|
});
|
|
6639
6629
|
}
|
|
6640
6630
|
delete(parameters, options = {}) {
|
|
6641
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6642
|
-
throw new Error(
|
|
6643
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6644
|
-
);
|
|
6645
|
-
}
|
|
6646
6631
|
return new SeamHttpRequest(this, {
|
|
6647
6632
|
pathname: "/thermostats/daily_programs/delete",
|
|
6648
6633
|
method: "POST",
|
|
@@ -6652,11 +6637,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6652
6637
|
});
|
|
6653
6638
|
}
|
|
6654
6639
|
update(parameters, options = {}) {
|
|
6655
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6656
|
-
throw new Error(
|
|
6657
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6658
|
-
);
|
|
6659
|
-
}
|
|
6660
6640
|
return new SeamHttpRequest(this, {
|
|
6661
6641
|
pathname: "/thermostats/daily_programs/update",
|
|
6662
6642
|
method: "PATCH",
|
|
@@ -7127,11 +7107,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
7127
7107
|
});
|
|
7128
7108
|
}
|
|
7129
7109
|
updateWeeklyProgram(parameters, options = {}) {
|
|
7130
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7131
|
-
throw new Error(
|
|
7132
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7133
|
-
);
|
|
7134
|
-
}
|
|
7135
7110
|
return new SeamHttpRequest(this, {
|
|
7136
7111
|
pathname: "/thermostats/update_weekly_program",
|
|
7137
7112
|
method: "POST",
|
|
@@ -7144,284 +7119,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
7144
7119
|
_SeamHttpThermostats.ltsVersion = seamApiLtsVersion;
|
|
7145
7120
|
var SeamHttpThermostats = _SeamHttpThermostats;
|
|
7146
7121
|
|
|
7147
|
-
// src/lib/seam/connect/routes/unstable-access-grants/unstable-access-grants.ts
|
|
7148
|
-
var _SeamHttpUnstableAccessGrants = class _SeamHttpUnstableAccessGrants {
|
|
7149
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7150
|
-
this.ltsVersion = seamApiLtsVersion;
|
|
7151
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7152
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7153
|
-
throw new Error(
|
|
7154
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7155
|
-
);
|
|
7156
|
-
}
|
|
7157
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7158
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7159
|
-
}
|
|
7160
|
-
static fromClient(client, options = {}) {
|
|
7161
|
-
const constructorOptions = { ...options, client };
|
|
7162
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7163
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7164
|
-
}
|
|
7165
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7166
|
-
}
|
|
7167
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7168
|
-
const constructorOptions = { ...options, apiKey };
|
|
7169
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7170
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7171
|
-
}
|
|
7172
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7173
|
-
}
|
|
7174
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7175
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7176
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7177
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7178
|
-
}
|
|
7179
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7180
|
-
}
|
|
7181
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7182
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7183
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7184
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7185
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7186
|
-
"The client option cannot be used with SeamHttpUnstableAccessGrants.fromPublishableKey"
|
|
7187
|
-
);
|
|
7188
|
-
}
|
|
7189
|
-
const client = createClient(clientOptions);
|
|
7190
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7191
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7192
|
-
user_identifier_key: userIdentifierKey
|
|
7193
|
-
});
|
|
7194
|
-
return _SeamHttpUnstableAccessGrants.fromClientSessionToken(token, options);
|
|
7195
|
-
}
|
|
7196
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7197
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7198
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7199
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7200
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7201
|
-
);
|
|
7202
|
-
}
|
|
7203
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7204
|
-
}
|
|
7205
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7206
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7207
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7208
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7209
|
-
"Missing personalAccessToken or workspaceId"
|
|
7210
|
-
);
|
|
7211
|
-
}
|
|
7212
|
-
return new _SeamHttpUnstableAccessGrants(constructorOptions);
|
|
7213
|
-
}
|
|
7214
|
-
createPaginator(request) {
|
|
7215
|
-
return new SeamPaginator(this, request);
|
|
7216
|
-
}
|
|
7217
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7218
|
-
const { headers } = this.client.defaults;
|
|
7219
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7220
|
-
clientSessionToken
|
|
7221
|
-
});
|
|
7222
|
-
for (const key of Object.keys(authHeaders)) {
|
|
7223
|
-
if (headers[key] == null) {
|
|
7224
|
-
throw new Error(
|
|
7225
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7226
|
-
);
|
|
7227
|
-
}
|
|
7228
|
-
}
|
|
7229
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7230
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7231
|
-
await clientSessions.get();
|
|
7232
|
-
}
|
|
7233
|
-
create(parameters, options = {}) {
|
|
7234
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7235
|
-
throw new Error(
|
|
7236
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7237
|
-
);
|
|
7238
|
-
}
|
|
7239
|
-
return new SeamHttpRequest(this, {
|
|
7240
|
-
pathname: "/unstable_access_grants/create",
|
|
7241
|
-
method: "POST",
|
|
7242
|
-
body: parameters,
|
|
7243
|
-
responseKey: "access_grant",
|
|
7244
|
-
options
|
|
7245
|
-
});
|
|
7246
|
-
}
|
|
7247
|
-
delete(parameters, options = {}) {
|
|
7248
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7249
|
-
throw new Error(
|
|
7250
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7251
|
-
);
|
|
7252
|
-
}
|
|
7253
|
-
return new SeamHttpRequest(this, {
|
|
7254
|
-
pathname: "/unstable_access_grants/delete",
|
|
7255
|
-
method: "POST",
|
|
7256
|
-
body: parameters,
|
|
7257
|
-
responseKey: void 0,
|
|
7258
|
-
options
|
|
7259
|
-
});
|
|
7260
|
-
}
|
|
7261
|
-
get(parameters, options = {}) {
|
|
7262
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7263
|
-
throw new Error(
|
|
7264
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7265
|
-
);
|
|
7266
|
-
}
|
|
7267
|
-
return new SeamHttpRequest(this, {
|
|
7268
|
-
pathname: "/unstable_access_grants/get",
|
|
7269
|
-
method: "POST",
|
|
7270
|
-
body: parameters,
|
|
7271
|
-
responseKey: "access_grant",
|
|
7272
|
-
options
|
|
7273
|
-
});
|
|
7274
|
-
}
|
|
7275
|
-
list(parameters, options = {}) {
|
|
7276
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7277
|
-
throw new Error(
|
|
7278
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7279
|
-
);
|
|
7280
|
-
}
|
|
7281
|
-
return new SeamHttpRequest(this, {
|
|
7282
|
-
pathname: "/unstable_access_grants/list",
|
|
7283
|
-
method: "POST",
|
|
7284
|
-
body: parameters,
|
|
7285
|
-
responseKey: "access_grants",
|
|
7286
|
-
options
|
|
7287
|
-
});
|
|
7288
|
-
}
|
|
7289
|
-
};
|
|
7290
|
-
_SeamHttpUnstableAccessGrants.ltsVersion = seamApiLtsVersion;
|
|
7291
|
-
var SeamHttpUnstableAccessGrants = _SeamHttpUnstableAccessGrants;
|
|
7292
|
-
|
|
7293
|
-
// src/lib/seam/connect/routes/unstable-access-methods/unstable-access-methods.ts
|
|
7294
|
-
var _SeamHttpUnstableAccessMethods = class _SeamHttpUnstableAccessMethods {
|
|
7295
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7296
|
-
this.ltsVersion = seamApiLtsVersion;
|
|
7297
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7298
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7299
|
-
throw new Error(
|
|
7300
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7301
|
-
);
|
|
7302
|
-
}
|
|
7303
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7304
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7305
|
-
}
|
|
7306
|
-
static fromClient(client, options = {}) {
|
|
7307
|
-
const constructorOptions = { ...options, client };
|
|
7308
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7309
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7310
|
-
}
|
|
7311
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7312
|
-
}
|
|
7313
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7314
|
-
const constructorOptions = { ...options, apiKey };
|
|
7315
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7316
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7317
|
-
}
|
|
7318
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7319
|
-
}
|
|
7320
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7321
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7322
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7323
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7324
|
-
}
|
|
7325
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7326
|
-
}
|
|
7327
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7328
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7329
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7330
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7331
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7332
|
-
"The client option cannot be used with SeamHttpUnstableAccessMethods.fromPublishableKey"
|
|
7333
|
-
);
|
|
7334
|
-
}
|
|
7335
|
-
const client = createClient(clientOptions);
|
|
7336
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7337
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7338
|
-
user_identifier_key: userIdentifierKey
|
|
7339
|
-
});
|
|
7340
|
-
return _SeamHttpUnstableAccessMethods.fromClientSessionToken(token, options);
|
|
7341
|
-
}
|
|
7342
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7343
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7344
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7345
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7346
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7347
|
-
);
|
|
7348
|
-
}
|
|
7349
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7350
|
-
}
|
|
7351
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7352
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7353
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7354
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7355
|
-
"Missing personalAccessToken or workspaceId"
|
|
7356
|
-
);
|
|
7357
|
-
}
|
|
7358
|
-
return new _SeamHttpUnstableAccessMethods(constructorOptions);
|
|
7359
|
-
}
|
|
7360
|
-
createPaginator(request) {
|
|
7361
|
-
return new SeamPaginator(this, request);
|
|
7362
|
-
}
|
|
7363
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7364
|
-
const { headers } = this.client.defaults;
|
|
7365
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7366
|
-
clientSessionToken
|
|
7367
|
-
});
|
|
7368
|
-
for (const key of Object.keys(authHeaders)) {
|
|
7369
|
-
if (headers[key] == null) {
|
|
7370
|
-
throw new Error(
|
|
7371
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7372
|
-
);
|
|
7373
|
-
}
|
|
7374
|
-
}
|
|
7375
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7376
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7377
|
-
await clientSessions.get();
|
|
7378
|
-
}
|
|
7379
|
-
delete(parameters, options = {}) {
|
|
7380
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7381
|
-
throw new Error(
|
|
7382
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7383
|
-
);
|
|
7384
|
-
}
|
|
7385
|
-
return new SeamHttpRequest(this, {
|
|
7386
|
-
pathname: "/unstable_access_methods/delete",
|
|
7387
|
-
method: "POST",
|
|
7388
|
-
body: parameters,
|
|
7389
|
-
responseKey: void 0,
|
|
7390
|
-
options
|
|
7391
|
-
});
|
|
7392
|
-
}
|
|
7393
|
-
get(parameters, options = {}) {
|
|
7394
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7395
|
-
throw new Error(
|
|
7396
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7397
|
-
);
|
|
7398
|
-
}
|
|
7399
|
-
return new SeamHttpRequest(this, {
|
|
7400
|
-
pathname: "/unstable_access_methods/get",
|
|
7401
|
-
method: "POST",
|
|
7402
|
-
body: parameters,
|
|
7403
|
-
responseKey: "access_method",
|
|
7404
|
-
options
|
|
7405
|
-
});
|
|
7406
|
-
}
|
|
7407
|
-
list(parameters, options = {}) {
|
|
7408
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7409
|
-
throw new Error(
|
|
7410
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7411
|
-
);
|
|
7412
|
-
}
|
|
7413
|
-
return new SeamHttpRequest(this, {
|
|
7414
|
-
pathname: "/unstable_access_methods/list",
|
|
7415
|
-
method: "POST",
|
|
7416
|
-
body: parameters,
|
|
7417
|
-
responseKey: "access_methods",
|
|
7418
|
-
options
|
|
7419
|
-
});
|
|
7420
|
-
}
|
|
7421
|
-
};
|
|
7422
|
-
_SeamHttpUnstableAccessMethods.ltsVersion = seamApiLtsVersion;
|
|
7423
|
-
var SeamHttpUnstableAccessMethods = _SeamHttpUnstableAccessMethods;
|
|
7424
|
-
|
|
7425
7122
|
// src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts
|
|
7426
7123
|
var _SeamHttpUnstableLocations = class _SeamHttpUnstableLocations {
|
|
7427
7124
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -8649,12 +8346,6 @@ var _SeamHttp = class _SeamHttp {
|
|
|
8649
8346
|
get thermostats() {
|
|
8650
8347
|
return SeamHttpThermostats.fromClient(this.client, this.defaults);
|
|
8651
8348
|
}
|
|
8652
|
-
get unstableAccessGrants() {
|
|
8653
|
-
return SeamHttpUnstableAccessGrants.fromClient(this.client, this.defaults);
|
|
8654
|
-
}
|
|
8655
|
-
get unstableAccessMethods() {
|
|
8656
|
-
return SeamHttpUnstableAccessMethods.fromClient(this.client, this.defaults);
|
|
8657
|
-
}
|
|
8658
8349
|
get unstableLocations() {
|
|
8659
8350
|
return SeamHttpUnstableLocations.fromClient(this.client, this.defaults);
|
|
8660
8351
|
}
|
|
@@ -10074,11 +9765,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10074
9765
|
}
|
|
10075
9766
|
get ["/thermostats/update_weekly_program"]() {
|
|
10076
9767
|
const { client, defaults } = this;
|
|
10077
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10078
|
-
throw new Error(
|
|
10079
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10080
|
-
);
|
|
10081
|
-
}
|
|
10082
9768
|
return function thermostatsUpdateWeeklyProgram(...args) {
|
|
10083
9769
|
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
10084
9770
|
return seam.updateWeeklyProgram(...args);
|
|
@@ -10086,11 +9772,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10086
9772
|
}
|
|
10087
9773
|
get ["/thermostats/daily_programs/create"]() {
|
|
10088
9774
|
const { client, defaults } = this;
|
|
10089
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10090
|
-
throw new Error(
|
|
10091
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10092
|
-
);
|
|
10093
|
-
}
|
|
10094
9775
|
return function thermostatsDailyProgramsCreate(...args) {
|
|
10095
9776
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10096
9777
|
return seam.create(...args);
|
|
@@ -10098,11 +9779,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10098
9779
|
}
|
|
10099
9780
|
get ["/thermostats/daily_programs/delete"]() {
|
|
10100
9781
|
const { client, defaults } = this;
|
|
10101
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10102
|
-
throw new Error(
|
|
10103
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10104
|
-
);
|
|
10105
|
-
}
|
|
10106
9782
|
return function thermostatsDailyProgramsDelete(...args) {
|
|
10107
9783
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10108
9784
|
return seam.delete(...args);
|
|
@@ -10110,11 +9786,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10110
9786
|
}
|
|
10111
9787
|
get ["/thermostats/daily_programs/update"]() {
|
|
10112
9788
|
const { client, defaults } = this;
|
|
10113
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10114
|
-
throw new Error(
|
|
10115
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10116
|
-
);
|
|
10117
|
-
}
|
|
10118
9789
|
return function thermostatsDailyProgramsUpdate(...args) {
|
|
10119
9790
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10120
9791
|
return seam.update(...args);
|
|
@@ -10169,90 +9840,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10169
9840
|
return seam.temperatureReached(...args);
|
|
10170
9841
|
};
|
|
10171
9842
|
}
|
|
10172
|
-
get ["/unstable_access_grants/create"]() {
|
|
10173
|
-
const { client, defaults } = this;
|
|
10174
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10175
|
-
throw new Error(
|
|
10176
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10177
|
-
);
|
|
10178
|
-
}
|
|
10179
|
-
return function unstableAccessGrantsCreate(...args) {
|
|
10180
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10181
|
-
return seam.create(...args);
|
|
10182
|
-
};
|
|
10183
|
-
}
|
|
10184
|
-
get ["/unstable_access_grants/delete"]() {
|
|
10185
|
-
const { client, defaults } = this;
|
|
10186
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10187
|
-
throw new Error(
|
|
10188
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10189
|
-
);
|
|
10190
|
-
}
|
|
10191
|
-
return function unstableAccessGrantsDelete(...args) {
|
|
10192
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10193
|
-
return seam.delete(...args);
|
|
10194
|
-
};
|
|
10195
|
-
}
|
|
10196
|
-
get ["/unstable_access_grants/get"]() {
|
|
10197
|
-
const { client, defaults } = this;
|
|
10198
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10199
|
-
throw new Error(
|
|
10200
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10201
|
-
);
|
|
10202
|
-
}
|
|
10203
|
-
return function unstableAccessGrantsGet(...args) {
|
|
10204
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10205
|
-
return seam.get(...args);
|
|
10206
|
-
};
|
|
10207
|
-
}
|
|
10208
|
-
get ["/unstable_access_grants/list"]() {
|
|
10209
|
-
const { client, defaults } = this;
|
|
10210
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10211
|
-
throw new Error(
|
|
10212
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10213
|
-
);
|
|
10214
|
-
}
|
|
10215
|
-
return function unstableAccessGrantsList(...args) {
|
|
10216
|
-
const seam = SeamHttpUnstableAccessGrants.fromClient(client, defaults);
|
|
10217
|
-
return seam.list(...args);
|
|
10218
|
-
};
|
|
10219
|
-
}
|
|
10220
|
-
get ["/unstable_access_methods/delete"]() {
|
|
10221
|
-
const { client, defaults } = this;
|
|
10222
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10223
|
-
throw new Error(
|
|
10224
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10225
|
-
);
|
|
10226
|
-
}
|
|
10227
|
-
return function unstableAccessMethodsDelete(...args) {
|
|
10228
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
|
|
10229
|
-
return seam.delete(...args);
|
|
10230
|
-
};
|
|
10231
|
-
}
|
|
10232
|
-
get ["/unstable_access_methods/get"]() {
|
|
10233
|
-
const { client, defaults } = this;
|
|
10234
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10235
|
-
throw new Error(
|
|
10236
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10237
|
-
);
|
|
10238
|
-
}
|
|
10239
|
-
return function unstableAccessMethodsGet(...args) {
|
|
10240
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
|
|
10241
|
-
return seam.get(...args);
|
|
10242
|
-
};
|
|
10243
|
-
}
|
|
10244
|
-
get ["/unstable_access_methods/list"]() {
|
|
10245
|
-
const { client, defaults } = this;
|
|
10246
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10247
|
-
throw new Error(
|
|
10248
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10249
|
-
);
|
|
10250
|
-
}
|
|
10251
|
-
return function unstableAccessMethodsList(...args) {
|
|
10252
|
-
const seam = SeamHttpUnstableAccessMethods.fromClient(client, defaults);
|
|
10253
|
-
return seam.list(...args);
|
|
10254
|
-
};
|
|
10255
|
-
}
|
|
10256
9843
|
get ["/unstable_locations/add_acs_entrances"]() {
|
|
10257
9844
|
const { client, defaults } = this;
|
|
10258
9845
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -10822,8 +10409,6 @@ exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
|
|
|
10822
10409
|
exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
|
|
10823
10410
|
exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
|
|
10824
10411
|
exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
|
|
10825
|
-
exports.SeamHttpUnstableAccessGrants = SeamHttpUnstableAccessGrants;
|
|
10826
|
-
exports.SeamHttpUnstableAccessMethods = SeamHttpUnstableAccessMethods;
|
|
10827
10412
|
exports.SeamHttpUnstableLocations = SeamHttpUnstableLocations;
|
|
10828
10413
|
exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
|
|
10829
10414
|
exports.SeamHttpUnstablePartnerBuildingBlocks = SeamHttpUnstablePartnerBuildingBlocks;
|