@passflow/core 0.27.0 → 0.28.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/index.d.cts CHANGED
@@ -1287,13 +1287,21 @@ export type PassflowResponseError = {
1287
1287
  time: string;
1288
1288
  };
1289
1289
  };
1290
+ /** Id of the error a call rejects with when the Passflow API cannot be reached or its gateway answers 502, 503 or 504. */
1291
+ export declare const SERVICE_UNAVAILABLE_ERROR_ID = "error.service.unavailable";
1292
+ /** Message of the {@link SERVICE_UNAVAILABLE_ERROR_ID} error. */
1293
+ export declare const SERVICE_UNAVAILABLE_MESSAGE = "Passflow is temporarily unavailable. Please try again in a moment.";
1290
1294
  export declare class PassflowError extends Error {
1291
1295
  id: string;
1292
1296
  message: string;
1293
1297
  status: number;
1294
1298
  location: string;
1295
1299
  time: string;
1296
- constructor(error: PassflowResponseError['error']);
1300
+ /** Declared here rather than inherited: `Error.cause` is ES2022 and this build targets ES2021 libs. */
1301
+ readonly cause?: unknown;
1302
+ constructor(error: PassflowResponseError['error'], options?: {
1303
+ cause?: unknown;
1304
+ });
1297
1305
  }
1298
1306
  export type PassflowSignInPayload = {
1299
1307
  password: string;
package/dist/index.d.ts CHANGED
@@ -1287,13 +1287,21 @@ export type PassflowResponseError = {
1287
1287
  time: string;
1288
1288
  };
1289
1289
  };
1290
+ /** Id of the error a call rejects with when the Passflow API cannot be reached or its gateway answers 502, 503 or 504. */
1291
+ export declare const SERVICE_UNAVAILABLE_ERROR_ID = "error.service.unavailable";
1292
+ /** Message of the {@link SERVICE_UNAVAILABLE_ERROR_ID} error. */
1293
+ export declare const SERVICE_UNAVAILABLE_MESSAGE = "Passflow is temporarily unavailable. Please try again in a moment.";
1290
1294
  export declare class PassflowError extends Error {
1291
1295
  id: string;
1292
1296
  message: string;
1293
1297
  status: number;
1294
1298
  location: string;
1295
1299
  time: string;
1296
- constructor(error: PassflowResponseError['error']);
1300
+ /** Declared here rather than inherited: `Error.cause` is ES2022 and this build targets ES2021 libs. */
1301
+ readonly cause?: unknown;
1302
+ constructor(error: PassflowResponseError['error'], options?: {
1303
+ cause?: unknown;
1304
+ });
1297
1305
  }
1298
1306
  export type PassflowSignInPayload = {
1299
1307
  password: string;