@seamapi/http 1.42.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 CHANGED
@@ -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",
@@ -9205,11 +9190,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
9205
9190
  }
9206
9191
  get ["/locks/simulate/keypad_code_entry"]() {
9207
9192
  const { client, defaults } = this;
9208
- if (!this.defaults.isUndocumentedApiEnabled) {
9209
- throw new Error(
9210
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9211
- );
9212
- }
9213
9193
  return function locksSimulateKeypadCodeEntry(...args) {
9214
9194
  const seam = SeamHttpLocksSimulate.fromClient(client, defaults);
9215
9195
  return seam.keypadCodeEntry(...args);
@@ -9217,11 +9197,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
9217
9197
  }
9218
9198
  get ["/locks/simulate/manual_lock_via_keypad"]() {
9219
9199
  const { client, defaults } = this;
9220
- if (!this.defaults.isUndocumentedApiEnabled) {
9221
- throw new Error(
9222
- "Cannot use undocumented API without isUndocumentedApiEnabled"
9223
- );
9224
- }
9225
9200
  return function locksSimulateManualLockViaKeypad(...args) {
9226
9201
  const seam = SeamHttpLocksSimulate.fromClient(client, defaults);
9227
9202
  return seam.manualLockViaKeypad(...args);