@seamapi/http 1.41.0 → 1.43.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 +332 -41
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +131 -143
- package/lib/seam/connect/resolve-action-attempt.d.ts +32 -168
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +12 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +9 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +0 -12
- package/lib/seam/connect/routes/acs/encoders/encoders.js +0 -9
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.js +0 -9
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js +102 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.d.ts +60 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js +126 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/automations/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +8 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +12 -6
- package/lib/seam/connect/routes/seam-http-endpoints.js +49 -13
- package/lib/seam/connect/routes/seam-http-endpoints.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/access-methods/access-methods.ts +38 -0
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +0 -39
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +0 -15
- package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts +215 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automations/automations.ts +303 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/automations/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +2 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +16 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +128 -31
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -1619,6 +1619,15 @@ var _SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
|
1619
1619
|
options
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
|
+
encode(parameters, options = {}) {
|
|
1623
|
+
return new SeamHttpRequest(this, {
|
|
1624
|
+
pathname: "/access_methods/encode",
|
|
1625
|
+
method: "POST",
|
|
1626
|
+
body: parameters,
|
|
1627
|
+
responseKey: "action_attempt",
|
|
1628
|
+
options
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1622
1631
|
get(parameters, options = {}) {
|
|
1623
1632
|
return new SeamHttpRequest(this, {
|
|
1624
1633
|
pathname: "/access_methods/get",
|
|
@@ -2621,15 +2630,6 @@ var _SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2621
2630
|
get simulate() {
|
|
2622
2631
|
return SeamHttpAcsEncodersSimulate.fromClient(this.client, this.defaults);
|
|
2623
2632
|
}
|
|
2624
|
-
encodeAccessMethod(parameters, options = {}) {
|
|
2625
|
-
return new SeamHttpRequest(this, {
|
|
2626
|
-
pathname: "/acs/encoders/encode_access_method",
|
|
2627
|
-
method: "POST",
|
|
2628
|
-
body: parameters,
|
|
2629
|
-
responseKey: "action_attempt",
|
|
2630
|
-
options
|
|
2631
|
-
});
|
|
2632
|
-
}
|
|
2633
2633
|
encodeCredential(parameters, options = {}) {
|
|
2634
2634
|
return new SeamHttpRequest(this, {
|
|
2635
2635
|
pathname: "/acs/encoders/encode_credential",
|
|
@@ -4368,11 +4368,6 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4368
4368
|
constructor(apiKeyOrOptions = {}) {
|
|
4369
4369
|
this.ltsVersion = seamApiLtsVersion;
|
|
4370
4370
|
const options = parseOptions(apiKeyOrOptions);
|
|
4371
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
4372
|
-
throw new Error(
|
|
4373
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4374
|
-
);
|
|
4375
|
-
}
|
|
4376
4371
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4377
4372
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
4378
4373
|
}
|
|
@@ -4450,11 +4445,6 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4450
4445
|
await clientSessions.get();
|
|
4451
4446
|
}
|
|
4452
4447
|
keypadCodeEntry(parameters, options = {}) {
|
|
4453
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4454
|
-
throw new Error(
|
|
4455
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4456
|
-
);
|
|
4457
|
-
}
|
|
4458
4448
|
return new SeamHttpRequest(this, {
|
|
4459
4449
|
pathname: "/locks/simulate/keypad_code_entry",
|
|
4460
4450
|
method: "POST",
|
|
@@ -4464,11 +4454,6 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4464
4454
|
});
|
|
4465
4455
|
}
|
|
4466
4456
|
manualLockViaKeypad(parameters, options = {}) {
|
|
4467
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4468
|
-
throw new Error(
|
|
4469
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4470
|
-
);
|
|
4471
|
-
}
|
|
4472
4457
|
return new SeamHttpRequest(this, {
|
|
4473
4458
|
pathname: "/locks/simulate/manual_lock_via_keypad",
|
|
4474
4459
|
method: "POST",
|
|
@@ -5262,6 +5247,248 @@ var _SeamHttpPhones = class _SeamHttpPhones {
|
|
|
5262
5247
|
_SeamHttpPhones.ltsVersion = seamApiLtsVersion;
|
|
5263
5248
|
var SeamHttpPhones = _SeamHttpPhones;
|
|
5264
5249
|
|
|
5250
|
+
// src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts
|
|
5251
|
+
var _SeamHttpSeamCustomerV1AutomationRuns = class _SeamHttpSeamCustomerV1AutomationRuns {
|
|
5252
|
+
constructor(apiKeyOrOptions = {}) {
|
|
5253
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
5254
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
5255
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
5256
|
+
throw new Error(
|
|
5257
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5258
|
+
);
|
|
5259
|
+
}
|
|
5260
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
5261
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
5262
|
+
}
|
|
5263
|
+
static fromClient(client, options = {}) {
|
|
5264
|
+
const constructorOptions = { ...options, client };
|
|
5265
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
5266
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
5267
|
+
}
|
|
5268
|
+
return new _SeamHttpSeamCustomerV1AutomationRuns(constructorOptions);
|
|
5269
|
+
}
|
|
5270
|
+
static fromApiKey(apiKey, options = {}) {
|
|
5271
|
+
const constructorOptions = { ...options, apiKey };
|
|
5272
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
5273
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
5274
|
+
}
|
|
5275
|
+
return new _SeamHttpSeamCustomerV1AutomationRuns(constructorOptions);
|
|
5276
|
+
}
|
|
5277
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
5278
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
5279
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
5280
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
5281
|
+
}
|
|
5282
|
+
return new _SeamHttpSeamCustomerV1AutomationRuns(constructorOptions);
|
|
5283
|
+
}
|
|
5284
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
5285
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
5286
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5287
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5288
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5289
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1AutomationRuns.fromPublishableKey"
|
|
5290
|
+
);
|
|
5291
|
+
}
|
|
5292
|
+
const client = createClient(clientOptions);
|
|
5293
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
5294
|
+
const { token } = await clientSessions.getOrCreate({
|
|
5295
|
+
user_identifier_key: userIdentifierKey
|
|
5296
|
+
});
|
|
5297
|
+
return _SeamHttpSeamCustomerV1AutomationRuns.fromClientSessionToken(
|
|
5298
|
+
token,
|
|
5299
|
+
options
|
|
5300
|
+
);
|
|
5301
|
+
}
|
|
5302
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
5303
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
5304
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
5305
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5306
|
+
"Missing consoleSessionToken or workspaceId"
|
|
5307
|
+
);
|
|
5308
|
+
}
|
|
5309
|
+
return new _SeamHttpSeamCustomerV1AutomationRuns(constructorOptions);
|
|
5310
|
+
}
|
|
5311
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
5312
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
5313
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
5314
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5315
|
+
"Missing personalAccessToken or workspaceId"
|
|
5316
|
+
);
|
|
5317
|
+
}
|
|
5318
|
+
return new _SeamHttpSeamCustomerV1AutomationRuns(constructorOptions);
|
|
5319
|
+
}
|
|
5320
|
+
createPaginator(request) {
|
|
5321
|
+
return new SeamPaginator(this, request);
|
|
5322
|
+
}
|
|
5323
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
5324
|
+
const { headers } = this.client.defaults;
|
|
5325
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
5326
|
+
clientSessionToken
|
|
5327
|
+
});
|
|
5328
|
+
for (const key of Object.keys(authHeaders)) {
|
|
5329
|
+
if (headers[key] == null) {
|
|
5330
|
+
throw new Error(
|
|
5331
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
5332
|
+
);
|
|
5333
|
+
}
|
|
5334
|
+
}
|
|
5335
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
5336
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
5337
|
+
await clientSessions.get();
|
|
5338
|
+
}
|
|
5339
|
+
list(parameters, options = {}) {
|
|
5340
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5341
|
+
throw new Error(
|
|
5342
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5343
|
+
);
|
|
5344
|
+
}
|
|
5345
|
+
return new SeamHttpRequest(this, {
|
|
5346
|
+
pathname: "/seam/customer/v1/automation_runs/list",
|
|
5347
|
+
method: "POST",
|
|
5348
|
+
body: parameters,
|
|
5349
|
+
responseKey: "automation_runs",
|
|
5350
|
+
options
|
|
5351
|
+
});
|
|
5352
|
+
}
|
|
5353
|
+
};
|
|
5354
|
+
_SeamHttpSeamCustomerV1AutomationRuns.ltsVersion = seamApiLtsVersion;
|
|
5355
|
+
var SeamHttpSeamCustomerV1AutomationRuns = _SeamHttpSeamCustomerV1AutomationRuns;
|
|
5356
|
+
|
|
5357
|
+
// src/lib/seam/connect/routes/seam/customer/v1/automations/automations.ts
|
|
5358
|
+
var _SeamHttpSeamCustomerV1Automations = class _SeamHttpSeamCustomerV1Automations {
|
|
5359
|
+
constructor(apiKeyOrOptions = {}) {
|
|
5360
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
5361
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
5362
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
5363
|
+
throw new Error(
|
|
5364
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5365
|
+
);
|
|
5366
|
+
}
|
|
5367
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
5368
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
5369
|
+
}
|
|
5370
|
+
static fromClient(client, options = {}) {
|
|
5371
|
+
const constructorOptions = { ...options, client };
|
|
5372
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
5373
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
5374
|
+
}
|
|
5375
|
+
return new _SeamHttpSeamCustomerV1Automations(constructorOptions);
|
|
5376
|
+
}
|
|
5377
|
+
static fromApiKey(apiKey, options = {}) {
|
|
5378
|
+
const constructorOptions = { ...options, apiKey };
|
|
5379
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
5380
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
5381
|
+
}
|
|
5382
|
+
return new _SeamHttpSeamCustomerV1Automations(constructorOptions);
|
|
5383
|
+
}
|
|
5384
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
5385
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
5386
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
5387
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
5388
|
+
}
|
|
5389
|
+
return new _SeamHttpSeamCustomerV1Automations(constructorOptions);
|
|
5390
|
+
}
|
|
5391
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
5392
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
5393
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5394
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5395
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5396
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Automations.fromPublishableKey"
|
|
5397
|
+
);
|
|
5398
|
+
}
|
|
5399
|
+
const client = createClient(clientOptions);
|
|
5400
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
5401
|
+
const { token } = await clientSessions.getOrCreate({
|
|
5402
|
+
user_identifier_key: userIdentifierKey
|
|
5403
|
+
});
|
|
5404
|
+
return _SeamHttpSeamCustomerV1Automations.fromClientSessionToken(
|
|
5405
|
+
token,
|
|
5406
|
+
options
|
|
5407
|
+
);
|
|
5408
|
+
}
|
|
5409
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
5410
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
5411
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
5412
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5413
|
+
"Missing consoleSessionToken or workspaceId"
|
|
5414
|
+
);
|
|
5415
|
+
}
|
|
5416
|
+
return new _SeamHttpSeamCustomerV1Automations(constructorOptions);
|
|
5417
|
+
}
|
|
5418
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
5419
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
5420
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
5421
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5422
|
+
"Missing personalAccessToken or workspaceId"
|
|
5423
|
+
);
|
|
5424
|
+
}
|
|
5425
|
+
return new _SeamHttpSeamCustomerV1Automations(constructorOptions);
|
|
5426
|
+
}
|
|
5427
|
+
createPaginator(request) {
|
|
5428
|
+
return new SeamPaginator(this, request);
|
|
5429
|
+
}
|
|
5430
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
5431
|
+
const { headers } = this.client.defaults;
|
|
5432
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
5433
|
+
clientSessionToken
|
|
5434
|
+
});
|
|
5435
|
+
for (const key of Object.keys(authHeaders)) {
|
|
5436
|
+
if (headers[key] == null) {
|
|
5437
|
+
throw new Error(
|
|
5438
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
5439
|
+
);
|
|
5440
|
+
}
|
|
5441
|
+
}
|
|
5442
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
5443
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
5444
|
+
await clientSessions.get();
|
|
5445
|
+
}
|
|
5446
|
+
delete(parameters, options = {}) {
|
|
5447
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5448
|
+
throw new Error(
|
|
5449
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5450
|
+
);
|
|
5451
|
+
}
|
|
5452
|
+
return new SeamHttpRequest(this, {
|
|
5453
|
+
pathname: "/seam/customer/v1/automations/delete",
|
|
5454
|
+
method: "POST",
|
|
5455
|
+
body: parameters,
|
|
5456
|
+
responseKey: void 0,
|
|
5457
|
+
options
|
|
5458
|
+
});
|
|
5459
|
+
}
|
|
5460
|
+
get(parameters, options = {}) {
|
|
5461
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5462
|
+
throw new Error(
|
|
5463
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5464
|
+
);
|
|
5465
|
+
}
|
|
5466
|
+
return new SeamHttpRequest(this, {
|
|
5467
|
+
pathname: "/seam/customer/v1/automations/get",
|
|
5468
|
+
method: "GET",
|
|
5469
|
+
params: parameters,
|
|
5470
|
+
responseKey: void 0,
|
|
5471
|
+
options
|
|
5472
|
+
});
|
|
5473
|
+
}
|
|
5474
|
+
update(parameters, options = {}) {
|
|
5475
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5476
|
+
throw new Error(
|
|
5477
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5478
|
+
);
|
|
5479
|
+
}
|
|
5480
|
+
return new SeamHttpRequest(this, {
|
|
5481
|
+
pathname: "/seam/customer/v1/automations/update",
|
|
5482
|
+
method: "PATCH",
|
|
5483
|
+
body: parameters,
|
|
5484
|
+
responseKey: void 0,
|
|
5485
|
+
options
|
|
5486
|
+
});
|
|
5487
|
+
}
|
|
5488
|
+
};
|
|
5489
|
+
_SeamHttpSeamCustomerV1Automations.ltsVersion = seamApiLtsVersion;
|
|
5490
|
+
var SeamHttpSeamCustomerV1Automations = _SeamHttpSeamCustomerV1Automations;
|
|
5491
|
+
|
|
5265
5492
|
// src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts
|
|
5266
5493
|
var _SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
5267
5494
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -5556,6 +5783,18 @@ var _SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
5556
5783
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
5557
5784
|
await clientSessions.get();
|
|
5558
5785
|
}
|
|
5786
|
+
get automationRuns() {
|
|
5787
|
+
return SeamHttpSeamCustomerV1AutomationRuns.fromClient(
|
|
5788
|
+
this.client,
|
|
5789
|
+
this.defaults
|
|
5790
|
+
);
|
|
5791
|
+
}
|
|
5792
|
+
get automations() {
|
|
5793
|
+
return SeamHttpSeamCustomerV1Automations.fromClient(
|
|
5794
|
+
this.client,
|
|
5795
|
+
this.defaults
|
|
5796
|
+
);
|
|
5797
|
+
}
|
|
5559
5798
|
get portals() {
|
|
5560
5799
|
return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults);
|
|
5561
5800
|
}
|
|
@@ -8249,6 +8488,13 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
8249
8488
|
return seam.delete(...args);
|
|
8250
8489
|
};
|
|
8251
8490
|
}
|
|
8491
|
+
get ["/access_methods/encode"]() {
|
|
8492
|
+
const { client, defaults } = this;
|
|
8493
|
+
return function accessMethodsEncode(...args) {
|
|
8494
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
8495
|
+
return seam.encode(...args);
|
|
8496
|
+
};
|
|
8497
|
+
}
|
|
8252
8498
|
get ["/access_methods/get"]() {
|
|
8253
8499
|
const { client, defaults } = this;
|
|
8254
8500
|
return function accessMethodsGet(...args) {
|
|
@@ -8448,13 +8694,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
8448
8694
|
return seam.list(...args);
|
|
8449
8695
|
};
|
|
8450
8696
|
}
|
|
8451
|
-
get ["/acs/encoders/encode_access_method"]() {
|
|
8452
|
-
const { client, defaults } = this;
|
|
8453
|
-
return function acsEncodersEncodeAccessMethod(...args) {
|
|
8454
|
-
const seam = SeamHttpAcsEncoders.fromClient(client, defaults);
|
|
8455
|
-
return seam.encodeAccessMethod(...args);
|
|
8456
|
-
};
|
|
8457
|
-
}
|
|
8458
8697
|
get ["/acs/encoders/encode_credential"]() {
|
|
8459
8698
|
const { client, defaults } = this;
|
|
8460
8699
|
return function acsEncodersEncodeCredential(...args) {
|
|
@@ -8951,11 +9190,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
8951
9190
|
}
|
|
8952
9191
|
get ["/locks/simulate/keypad_code_entry"]() {
|
|
8953
9192
|
const { client, defaults } = this;
|
|
8954
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8955
|
-
throw new Error(
|
|
8956
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8957
|
-
);
|
|
8958
|
-
}
|
|
8959
9193
|
return function locksSimulateKeypadCodeEntry(...args) {
|
|
8960
9194
|
const seam = SeamHttpLocksSimulate.fromClient(client, defaults);
|
|
8961
9195
|
return seam.keypadCodeEntry(...args);
|
|
@@ -8963,11 +9197,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
8963
9197
|
}
|
|
8964
9198
|
get ["/locks/simulate/manual_lock_via_keypad"]() {
|
|
8965
9199
|
const { client, defaults } = this;
|
|
8966
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8967
|
-
throw new Error(
|
|
8968
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8969
|
-
);
|
|
8970
|
-
}
|
|
8971
9200
|
return function locksSimulateManualLockViaKeypad(...args) {
|
|
8972
9201
|
const seam = SeamHttpLocksSimulate.fromClient(client, defaults);
|
|
8973
9202
|
return seam.manualLockViaKeypad(...args);
|
|
@@ -9089,6 +9318,66 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9089
9318
|
return seam.createSandboxPhone(...args);
|
|
9090
9319
|
};
|
|
9091
9320
|
}
|
|
9321
|
+
get ["/seam/customer/v1/automation_runs/list"]() {
|
|
9322
|
+
const { client, defaults } = this;
|
|
9323
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9324
|
+
throw new Error(
|
|
9325
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9326
|
+
);
|
|
9327
|
+
}
|
|
9328
|
+
return function seamCustomerV1AutomationRunsList(...args) {
|
|
9329
|
+
const seam = SeamHttpSeamCustomerV1AutomationRuns.fromClient(
|
|
9330
|
+
client,
|
|
9331
|
+
defaults
|
|
9332
|
+
);
|
|
9333
|
+
return seam.list(...args);
|
|
9334
|
+
};
|
|
9335
|
+
}
|
|
9336
|
+
get ["/seam/customer/v1/automations/delete"]() {
|
|
9337
|
+
const { client, defaults } = this;
|
|
9338
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9339
|
+
throw new Error(
|
|
9340
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9341
|
+
);
|
|
9342
|
+
}
|
|
9343
|
+
return function seamCustomerV1AutomationsDelete(...args) {
|
|
9344
|
+
const seam = SeamHttpSeamCustomerV1Automations.fromClient(
|
|
9345
|
+
client,
|
|
9346
|
+
defaults
|
|
9347
|
+
);
|
|
9348
|
+
return seam.delete(...args);
|
|
9349
|
+
};
|
|
9350
|
+
}
|
|
9351
|
+
get ["/seam/customer/v1/automations/get"]() {
|
|
9352
|
+
const { client, defaults } = this;
|
|
9353
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9354
|
+
throw new Error(
|
|
9355
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9356
|
+
);
|
|
9357
|
+
}
|
|
9358
|
+
return function seamCustomerV1AutomationsGet(...args) {
|
|
9359
|
+
const seam = SeamHttpSeamCustomerV1Automations.fromClient(
|
|
9360
|
+
client,
|
|
9361
|
+
defaults
|
|
9362
|
+
);
|
|
9363
|
+
return seam.get(...args);
|
|
9364
|
+
};
|
|
9365
|
+
}
|
|
9366
|
+
get ["/seam/customer/v1/automations/update"]() {
|
|
9367
|
+
const { client, defaults } = this;
|
|
9368
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9369
|
+
throw new Error(
|
|
9370
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9371
|
+
);
|
|
9372
|
+
}
|
|
9373
|
+
return function seamCustomerV1AutomationsUpdate(...args) {
|
|
9374
|
+
const seam = SeamHttpSeamCustomerV1Automations.fromClient(
|
|
9375
|
+
client,
|
|
9376
|
+
defaults
|
|
9377
|
+
);
|
|
9378
|
+
return seam.update(...args);
|
|
9379
|
+
};
|
|
9380
|
+
}
|
|
9092
9381
|
get ["/seam/customer/v1/portals/get"]() {
|
|
9093
9382
|
const { client, defaults } = this;
|
|
9094
9383
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -9977,6 +10266,8 @@ exports.SeamHttpPhones = SeamHttpPhones;
|
|
|
9977
10266
|
exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
|
|
9978
10267
|
exports.SeamHttpRequest = SeamHttpRequest;
|
|
9979
10268
|
exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
|
|
10269
|
+
exports.SeamHttpSeamCustomerV1AutomationRuns = SeamHttpSeamCustomerV1AutomationRuns;
|
|
10270
|
+
exports.SeamHttpSeamCustomerV1Automations = SeamHttpSeamCustomerV1Automations;
|
|
9980
10271
|
exports.SeamHttpSeamCustomerV1Portals = SeamHttpSeamCustomerV1Portals;
|
|
9981
10272
|
exports.SeamHttpSeamCustomerV1Settings = SeamHttpSeamCustomerV1Settings;
|
|
9982
10273
|
exports.SeamHttpSeamPartnerV1BuildingBlocks = SeamHttpSeamPartnerV1BuildingBlocks;
|