@seamapi/http 1.12.0 → 1.13.1

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
@@ -523,7 +523,7 @@ var isApiErrorResponse = (response) => {
523
523
  return false;
524
524
  }
525
525
  if (typeof data === "object" && data != null) {
526
- return "error" in data && typeof data.error === "object" && data.error != null && "type" in data.error && typeof data.error.type === "string";
526
+ return "error" in data && typeof data.error === "object" && data.error != null && "type" in data.error && typeof data.error.type === "string" && "message" in data.error && typeof data.error.message === "string";
527
527
  }
528
528
  return false;
529
529
  };
@@ -2532,9 +2532,9 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
2532
2532
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
2533
2533
  await clientSessions.get();
2534
2534
  }
2535
- encodeCard(body, options = {}) {
2535
+ encodeCredential(body, options = {}) {
2536
2536
  return new SeamHttpRequest(this, {
2537
- path: "/acs/encoders/encode_card",
2537
+ path: "/acs/encoders/encode_credential",
2538
2538
  method: "post",
2539
2539
  body,
2540
2540
  responseKey: "action_attempt",
@@ -2549,9 +2549,9 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
2549
2549
  responseKey: "devices"
2550
2550
  });
2551
2551
  }
2552
- scanCard(body, options = {}) {
2552
+ scanCredential(body, options = {}) {
2553
2553
  return new SeamHttpRequest(this, {
2554
- path: "/acs/encoders/scan_card",
2554
+ path: "/acs/encoders/scan_credential",
2555
2555
  method: "post",
2556
2556
  body,
2557
2557
  responseKey: "action_attempt",