@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 +5 -5
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +87 -30
- package/lib/seam/connect/error-interceptor.js +3 -1
- package/lib/seam/connect/error-interceptor.js.map +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +104 -28
- package/lib/seam/connect/routes/acs-encoders.d.ts +8 -8
- package/lib/seam/connect/routes/acs-encoders.js +4 -4
- package/lib/seam/connect/routes/acs-encoders.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/error-interceptor.ts +3 -1
- package/src/lib/seam/connect/routes/acs-encoders.ts +18 -18
- package/src/lib/version.ts +1 -1
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
|
-
|
|
2535
|
+
encodeCredential(body, options = {}) {
|
|
2536
2536
|
return new SeamHttpRequest(this, {
|
|
2537
|
-
path: "/acs/encoders/
|
|
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
|
-
|
|
2552
|
+
scanCredential(body, options = {}) {
|
|
2553
2553
|
return new SeamHttpRequest(this, {
|
|
2554
|
-
path: "/acs/encoders/
|
|
2554
|
+
path: "/acs/encoders/scan_credential",
|
|
2555
2555
|
method: "post",
|
|
2556
2556
|
body,
|
|
2557
2557
|
responseKey: "action_attempt",
|