@pafi-dev/issuer 0.7.3 → 0.7.4

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
@@ -1,55 +1,18 @@
1
+ import { PafiSdkError, SdkErrorHttpStatus, PointTokenDomainConfig, PartialUserOperation, BurnRequest, PoolKey, UserOpTypedData, decodeBatchExecuteCalls, BROKER_HASHES, Eip7702AuthorizationJsonRpc, BuiltSponsorAuth, ENTRY_POINT_V08 } from '@pafi-dev/core';
2
+ export { PAFI_SUBGRAPH_URL, PafiSdkError, SdkErrorHttpStatus, ValidationError } from '@pafi-dev/core';
1
3
  import { Address, Hex, PublicClient, WalletClient } from 'viem';
2
- import { PointTokenDomainConfig, PartialUserOperation, BurnRequest, PoolKey, UserOpTypedData, decodeBatchExecuteCalls, BROKER_HASHES, Eip7702AuthorizationJsonRpc, BuiltSponsorAuth, ENTRY_POINT_V08 } from '@pafi-dev/core';
3
- export { PAFI_SUBGRAPH_URL } from '@pafi-dev/core';
4
4
 
5
5
  /**
6
- * Base class for every typed error the SDK throws across handlers,
7
- * orchestrators, and helpers. The shape is intentionally minimal so
8
- * issuer controllers can map all SDK errors through a single funnel
9
- * (`createSdkErrorMapper`) without listing each subclass.
6
+ * v0.7.4 `PafiSdkError` + `SdkErrorHttpStatus` were moved to
7
+ * `@pafi-dev/core/errors` so core-level errors (e.g. `OracleStaleError`)
8
+ * can extend the same base. Issuer re-exports the canonical types
9
+ * here for back-compat. See SDK_CORE_TRADING_AUDIT.md H3.
10
10
  *
11
- * Subclasses must declare `code` (machine-readable identifier the FE
12
- * can branch on) and may override `safeToRetry` (transient failures
13
- * the FE should auto-retry — e.g. cap freed up between requests).
14
- *
15
- * `details` is `unknown` so subclasses can attach structured context
16
- * (offending value, on-chain state snapshot, etc.) without locking
17
- * the base shape.
18
- *
19
- * `httpStatus` is the recommended HTTP status the issuer's HTTP layer
20
- * should surface. Kept on the SDK side because the SDK already knows
21
- * the right status (e.g. `IssuerStateError` is always 422); leaving it
22
- * to issuer controllers means each one re-implements the same mapping.
11
+ * Effect: `instanceof PafiSdkError` from EITHER package now catches
12
+ * errors thrown from EITHER package no more silent fall-through to
13
+ * 500 for core-thrown errors.
23
14
  */
24
- type SdkErrorHttpStatus = "not_found" | "forbidden" | "unprocessable" | "service_unavailable";
25
- declare abstract class PafiSdkError extends Error {
26
- abstract readonly code: string;
27
- /**
28
- * `true` when the FE should consider a retry safe — typically because
29
- * the failure is transient (`MINT_CAP_EXCEEDED` may free up,
30
- * `RELAY_FEE_EXCEEDS_AMOUNT` may drop on next quote). Defaults to
31
- * `false` — subclasses opt in per-code.
32
- */
33
- readonly safeToRetry: boolean;
34
- readonly details?: unknown;
35
- abstract readonly httpStatus: SdkErrorHttpStatus;
36
- constructor(message: string);
37
- }
38
- /**
39
- * Generic validation failure for routine 4xx-class request errors —
40
- * unsupported chainId, missing field, address checksum mismatch,
41
- * out-of-range amount, etc. Replaces ~12 raw `throw new Error(...)`
42
- * call sites in `IssuerApiHandlers` that previously leaked as 500s
43
- * via `createSdkErrorMapper`'s "non-PafiSdkError → rethrow" path.
44
- *
45
- * v0.7.1 — added per SDK_ISSUER_AUDIT.md H1.
46
- */
47
- declare class ValidationError extends PafiSdkError {
48
- readonly httpStatus: "unprocessable";
49
- readonly code: string;
50
- readonly details?: Record<string, unknown>;
51
- constructor(code: string, message: string, details?: Record<string, unknown>);
52
- }
15
+
53
16
  /**
54
17
  * Issuer wired the SDK without a dependency the requested endpoint
55
18
  * needs (e.g. `/gas-fee` called but `feeManager` not configured;
@@ -2832,4 +2795,4 @@ declare class IssuerStateValidator {
2832
2795
 
2833
2796
  declare const PAFI_ISSUER_SDK_VERSION: string;
2834
2797
 
2835
- export { AdapterMisconfiguredError, type ApiConfigResponse, type ApiGasFeeResponse, type ApiLoginRequest, type ApiLoginResponse, type ApiNonceResponse, type ApiPoolsRequest, type ApiPoolsResponse, type ApiUserRequest, type ApiUserResponse, type AuthContext, AuthError, type AuthErrorCode, AuthService, type AuthServiceConfig, BalanceAggregator, type BalanceAggregatorConfig, BundlerNotConfiguredError, BundlerRejectedError, type BurnEvent, BurnIndexer, type BurnIndexerConfig, type BurnStatusParams, type BurnStatusResponse, type ClaimDto, type CombinedBalance, type ConfigDto, ConfigurationError, type DecodedCallDto, DefaultPolicyEngine, type DefaultPolicyEngineOptions, type DelegatePrepareDto, type DelegateStatusDto, FeeManager, type FeeManagerConfig, type GasFeeDto, type HandleDelegateSubmitParams, type HandleDelegateSubmitResult, type HandleMobilePrepareParams, type HandleMobilePrepareResult, type HandleMobileSubmitParams, type IIndexerCursorStore, type IPendingUserOpStore, type IPointLedger, type IPolicyEngine, type ISessionStore, InMemoryCursorStore, IssuerApiAdapter, type IssuerApiAdapterConfig, IssuerApiHandlers, type IssuerApiHandlersConfig, type IssuerRegistryRecord, type IssuerService, type IssuerServiceConfig, IssuerStateError, IssuerStateValidator, LockNotFoundError, type LockedMintRequest, type LoginResult, MemoryPendingUserOpStore, MemorySessionStore, type MemorySessionStoreOptions, type MintEvent, type MintStatusParams, type MintStatusResponse, type MintingStatus, type MobilePrepareDto, type MobileSubmitDto, type NativePtQuoterConfig, NonceManager, PAFI_ISSUER_SDK_VERSION, PTClaimError, PTClaimHandler, type PTClaimHandlerConfig, type PTClaimRequest, type PTClaimResponse, PTRedeemError, PTRedeemHandler, type PTRedeemHandlerConfig, type PTRedeemRequest, type PTRedeemResponse, PafiBackendClient, type PafiBackendConfig, PafiBackendError, type PafiBackendErrorCode, PafiSdkError, type PendingCredit, type PendingUserOpEntry, PendingUserOpForbiddenError, PendingUserOpNotFoundError, type PerpDepositDto, PerpDepositError, PerpDepositHandler, type PerpDepositHandlerConfig, type PerpDepositRequest, type PerpDepositResponse, PointIndexer, type PointIndexerConfig, type PolicyDecision, type PolicyEvalRequest, type PoolsDto, type PoolsProvider, type PreValidateMintResult, type PrepareBurnParams, type PrepareMintParams, type PrepareMobileUserOpParams, type PrepareMobileUserOpResult, type PreparedUserOp, type RedeemDto, type RedeemPrepareDto, RelayError, type RelayErrorCode, RelayService, type RelayUserOpParams, type RelayUserOpRequest, type RelayUserOpResponse, type RequestPaymasterParams, type RetryConfig, type SdkErrorBody, type SdkErrorHttpStatus, type SdkErrorMapperFactories, type SdkErrorStatus, type SerializedUserOpTypedData, type Session, type SponsorshipRequest, type SponsorshipResponse, type SponsorshipTarget, type SponsorshipUserOp, type SubgraphNativeUsdtQuoterConfig, type SubgraphPoolsProviderConfig, type UserDto, ValidationError, authenticateRequest, createIssuerService, createNativePtQuoter, createSdkErrorMapper, createSubgraphNativeUsdtQuoter, createSubgraphPoolsProvider, handleClaimStatus, handleDelegateSubmit, handleMobilePrepare, handleMobileSubmit, handleRedeemStatus, mergePaymasterFields, prepareMobileUserOp, relayUserOp, requestPaymaster, serializeEntryToJsonRpc, serializeUserOpTypedData };
2798
+ export { AdapterMisconfiguredError, type ApiConfigResponse, type ApiGasFeeResponse, type ApiLoginRequest, type ApiLoginResponse, type ApiNonceResponse, type ApiPoolsRequest, type ApiPoolsResponse, type ApiUserRequest, type ApiUserResponse, type AuthContext, AuthError, type AuthErrorCode, AuthService, type AuthServiceConfig, BalanceAggregator, type BalanceAggregatorConfig, BundlerNotConfiguredError, BundlerRejectedError, type BurnEvent, BurnIndexer, type BurnIndexerConfig, type BurnStatusParams, type BurnStatusResponse, type ClaimDto, type CombinedBalance, type ConfigDto, ConfigurationError, type DecodedCallDto, DefaultPolicyEngine, type DefaultPolicyEngineOptions, type DelegatePrepareDto, type DelegateStatusDto, FeeManager, type FeeManagerConfig, type GasFeeDto, type HandleDelegateSubmitParams, type HandleDelegateSubmitResult, type HandleMobilePrepareParams, type HandleMobilePrepareResult, type HandleMobileSubmitParams, type IIndexerCursorStore, type IPendingUserOpStore, type IPointLedger, type IPolicyEngine, type ISessionStore, InMemoryCursorStore, IssuerApiAdapter, type IssuerApiAdapterConfig, IssuerApiHandlers, type IssuerApiHandlersConfig, type IssuerRegistryRecord, type IssuerService, type IssuerServiceConfig, IssuerStateError, IssuerStateValidator, LockNotFoundError, type LockedMintRequest, type LoginResult, MemoryPendingUserOpStore, MemorySessionStore, type MemorySessionStoreOptions, type MintEvent, type MintStatusParams, type MintStatusResponse, type MintingStatus, type MobilePrepareDto, type MobileSubmitDto, type NativePtQuoterConfig, NonceManager, PAFI_ISSUER_SDK_VERSION, PTClaimError, PTClaimHandler, type PTClaimHandlerConfig, type PTClaimRequest, type PTClaimResponse, PTRedeemError, PTRedeemHandler, type PTRedeemHandlerConfig, type PTRedeemRequest, type PTRedeemResponse, PafiBackendClient, type PafiBackendConfig, PafiBackendError, type PafiBackendErrorCode, type PendingCredit, type PendingUserOpEntry, PendingUserOpForbiddenError, PendingUserOpNotFoundError, type PerpDepositDto, PerpDepositError, PerpDepositHandler, type PerpDepositHandlerConfig, type PerpDepositRequest, type PerpDepositResponse, PointIndexer, type PointIndexerConfig, type PolicyDecision, type PolicyEvalRequest, type PoolsDto, type PoolsProvider, type PreValidateMintResult, type PrepareBurnParams, type PrepareMintParams, type PrepareMobileUserOpParams, type PrepareMobileUserOpResult, type PreparedUserOp, type RedeemDto, type RedeemPrepareDto, RelayError, type RelayErrorCode, RelayService, type RelayUserOpParams, type RelayUserOpRequest, type RelayUserOpResponse, type RequestPaymasterParams, type RetryConfig, type SdkErrorBody, type SdkErrorMapperFactories, type SdkErrorStatus, type SerializedUserOpTypedData, type Session, type SponsorshipRequest, type SponsorshipResponse, type SponsorshipTarget, type SponsorshipUserOp, type SubgraphNativeUsdtQuoterConfig, type SubgraphPoolsProviderConfig, type UserDto, authenticateRequest, createIssuerService, createNativePtQuoter, createSdkErrorMapper, createSubgraphNativeUsdtQuoter, createSubgraphPoolsProvider, handleClaimStatus, handleDelegateSubmit, handleMobilePrepare, handleMobileSubmit, handleRedeemStatus, mergePaymasterFields, prepareMobileUserOp, relayUserOp, requestPaymaster, serializeEntryToJsonRpc, serializeUserOpTypedData };
package/dist/index.d.ts CHANGED
@@ -1,55 +1,18 @@
1
+ import { PafiSdkError, SdkErrorHttpStatus, PointTokenDomainConfig, PartialUserOperation, BurnRequest, PoolKey, UserOpTypedData, decodeBatchExecuteCalls, BROKER_HASHES, Eip7702AuthorizationJsonRpc, BuiltSponsorAuth, ENTRY_POINT_V08 } from '@pafi-dev/core';
2
+ export { PAFI_SUBGRAPH_URL, PafiSdkError, SdkErrorHttpStatus, ValidationError } from '@pafi-dev/core';
1
3
  import { Address, Hex, PublicClient, WalletClient } from 'viem';
2
- import { PointTokenDomainConfig, PartialUserOperation, BurnRequest, PoolKey, UserOpTypedData, decodeBatchExecuteCalls, BROKER_HASHES, Eip7702AuthorizationJsonRpc, BuiltSponsorAuth, ENTRY_POINT_V08 } from '@pafi-dev/core';
3
- export { PAFI_SUBGRAPH_URL } from '@pafi-dev/core';
4
4
 
5
5
  /**
6
- * Base class for every typed error the SDK throws across handlers,
7
- * orchestrators, and helpers. The shape is intentionally minimal so
8
- * issuer controllers can map all SDK errors through a single funnel
9
- * (`createSdkErrorMapper`) without listing each subclass.
6
+ * v0.7.4 `PafiSdkError` + `SdkErrorHttpStatus` were moved to
7
+ * `@pafi-dev/core/errors` so core-level errors (e.g. `OracleStaleError`)
8
+ * can extend the same base. Issuer re-exports the canonical types
9
+ * here for back-compat. See SDK_CORE_TRADING_AUDIT.md H3.
10
10
  *
11
- * Subclasses must declare `code` (machine-readable identifier the FE
12
- * can branch on) and may override `safeToRetry` (transient failures
13
- * the FE should auto-retry — e.g. cap freed up between requests).
14
- *
15
- * `details` is `unknown` so subclasses can attach structured context
16
- * (offending value, on-chain state snapshot, etc.) without locking
17
- * the base shape.
18
- *
19
- * `httpStatus` is the recommended HTTP status the issuer's HTTP layer
20
- * should surface. Kept on the SDK side because the SDK already knows
21
- * the right status (e.g. `IssuerStateError` is always 422); leaving it
22
- * to issuer controllers means each one re-implements the same mapping.
11
+ * Effect: `instanceof PafiSdkError` from EITHER package now catches
12
+ * errors thrown from EITHER package no more silent fall-through to
13
+ * 500 for core-thrown errors.
23
14
  */
24
- type SdkErrorHttpStatus = "not_found" | "forbidden" | "unprocessable" | "service_unavailable";
25
- declare abstract class PafiSdkError extends Error {
26
- abstract readonly code: string;
27
- /**
28
- * `true` when the FE should consider a retry safe — typically because
29
- * the failure is transient (`MINT_CAP_EXCEEDED` may free up,
30
- * `RELAY_FEE_EXCEEDS_AMOUNT` may drop on next quote). Defaults to
31
- * `false` — subclasses opt in per-code.
32
- */
33
- readonly safeToRetry: boolean;
34
- readonly details?: unknown;
35
- abstract readonly httpStatus: SdkErrorHttpStatus;
36
- constructor(message: string);
37
- }
38
- /**
39
- * Generic validation failure for routine 4xx-class request errors —
40
- * unsupported chainId, missing field, address checksum mismatch,
41
- * out-of-range amount, etc. Replaces ~12 raw `throw new Error(...)`
42
- * call sites in `IssuerApiHandlers` that previously leaked as 500s
43
- * via `createSdkErrorMapper`'s "non-PafiSdkError → rethrow" path.
44
- *
45
- * v0.7.1 — added per SDK_ISSUER_AUDIT.md H1.
46
- */
47
- declare class ValidationError extends PafiSdkError {
48
- readonly httpStatus: "unprocessable";
49
- readonly code: string;
50
- readonly details?: Record<string, unknown>;
51
- constructor(code: string, message: string, details?: Record<string, unknown>);
52
- }
15
+
53
16
  /**
54
17
  * Issuer wired the SDK without a dependency the requested endpoint
55
18
  * needs (e.g. `/gas-fee` called but `feeManager` not configured;
@@ -2832,4 +2795,4 @@ declare class IssuerStateValidator {
2832
2795
 
2833
2796
  declare const PAFI_ISSUER_SDK_VERSION: string;
2834
2797
 
2835
- export { AdapterMisconfiguredError, type ApiConfigResponse, type ApiGasFeeResponse, type ApiLoginRequest, type ApiLoginResponse, type ApiNonceResponse, type ApiPoolsRequest, type ApiPoolsResponse, type ApiUserRequest, type ApiUserResponse, type AuthContext, AuthError, type AuthErrorCode, AuthService, type AuthServiceConfig, BalanceAggregator, type BalanceAggregatorConfig, BundlerNotConfiguredError, BundlerRejectedError, type BurnEvent, BurnIndexer, type BurnIndexerConfig, type BurnStatusParams, type BurnStatusResponse, type ClaimDto, type CombinedBalance, type ConfigDto, ConfigurationError, type DecodedCallDto, DefaultPolicyEngine, type DefaultPolicyEngineOptions, type DelegatePrepareDto, type DelegateStatusDto, FeeManager, type FeeManagerConfig, type GasFeeDto, type HandleDelegateSubmitParams, type HandleDelegateSubmitResult, type HandleMobilePrepareParams, type HandleMobilePrepareResult, type HandleMobileSubmitParams, type IIndexerCursorStore, type IPendingUserOpStore, type IPointLedger, type IPolicyEngine, type ISessionStore, InMemoryCursorStore, IssuerApiAdapter, type IssuerApiAdapterConfig, IssuerApiHandlers, type IssuerApiHandlersConfig, type IssuerRegistryRecord, type IssuerService, type IssuerServiceConfig, IssuerStateError, IssuerStateValidator, LockNotFoundError, type LockedMintRequest, type LoginResult, MemoryPendingUserOpStore, MemorySessionStore, type MemorySessionStoreOptions, type MintEvent, type MintStatusParams, type MintStatusResponse, type MintingStatus, type MobilePrepareDto, type MobileSubmitDto, type NativePtQuoterConfig, NonceManager, PAFI_ISSUER_SDK_VERSION, PTClaimError, PTClaimHandler, type PTClaimHandlerConfig, type PTClaimRequest, type PTClaimResponse, PTRedeemError, PTRedeemHandler, type PTRedeemHandlerConfig, type PTRedeemRequest, type PTRedeemResponse, PafiBackendClient, type PafiBackendConfig, PafiBackendError, type PafiBackendErrorCode, PafiSdkError, type PendingCredit, type PendingUserOpEntry, PendingUserOpForbiddenError, PendingUserOpNotFoundError, type PerpDepositDto, PerpDepositError, PerpDepositHandler, type PerpDepositHandlerConfig, type PerpDepositRequest, type PerpDepositResponse, PointIndexer, type PointIndexerConfig, type PolicyDecision, type PolicyEvalRequest, type PoolsDto, type PoolsProvider, type PreValidateMintResult, type PrepareBurnParams, type PrepareMintParams, type PrepareMobileUserOpParams, type PrepareMobileUserOpResult, type PreparedUserOp, type RedeemDto, type RedeemPrepareDto, RelayError, type RelayErrorCode, RelayService, type RelayUserOpParams, type RelayUserOpRequest, type RelayUserOpResponse, type RequestPaymasterParams, type RetryConfig, type SdkErrorBody, type SdkErrorHttpStatus, type SdkErrorMapperFactories, type SdkErrorStatus, type SerializedUserOpTypedData, type Session, type SponsorshipRequest, type SponsorshipResponse, type SponsorshipTarget, type SponsorshipUserOp, type SubgraphNativeUsdtQuoterConfig, type SubgraphPoolsProviderConfig, type UserDto, ValidationError, authenticateRequest, createIssuerService, createNativePtQuoter, createSdkErrorMapper, createSubgraphNativeUsdtQuoter, createSubgraphPoolsProvider, handleClaimStatus, handleDelegateSubmit, handleMobilePrepare, handleMobileSubmit, handleRedeemStatus, mergePaymasterFields, prepareMobileUserOp, relayUserOp, requestPaymaster, serializeEntryToJsonRpc, serializeUserOpTypedData };
2798
+ export { AdapterMisconfiguredError, type ApiConfigResponse, type ApiGasFeeResponse, type ApiLoginRequest, type ApiLoginResponse, type ApiNonceResponse, type ApiPoolsRequest, type ApiPoolsResponse, type ApiUserRequest, type ApiUserResponse, type AuthContext, AuthError, type AuthErrorCode, AuthService, type AuthServiceConfig, BalanceAggregator, type BalanceAggregatorConfig, BundlerNotConfiguredError, BundlerRejectedError, type BurnEvent, BurnIndexer, type BurnIndexerConfig, type BurnStatusParams, type BurnStatusResponse, type ClaimDto, type CombinedBalance, type ConfigDto, ConfigurationError, type DecodedCallDto, DefaultPolicyEngine, type DefaultPolicyEngineOptions, type DelegatePrepareDto, type DelegateStatusDto, FeeManager, type FeeManagerConfig, type GasFeeDto, type HandleDelegateSubmitParams, type HandleDelegateSubmitResult, type HandleMobilePrepareParams, type HandleMobilePrepareResult, type HandleMobileSubmitParams, type IIndexerCursorStore, type IPendingUserOpStore, type IPointLedger, type IPolicyEngine, type ISessionStore, InMemoryCursorStore, IssuerApiAdapter, type IssuerApiAdapterConfig, IssuerApiHandlers, type IssuerApiHandlersConfig, type IssuerRegistryRecord, type IssuerService, type IssuerServiceConfig, IssuerStateError, IssuerStateValidator, LockNotFoundError, type LockedMintRequest, type LoginResult, MemoryPendingUserOpStore, MemorySessionStore, type MemorySessionStoreOptions, type MintEvent, type MintStatusParams, type MintStatusResponse, type MintingStatus, type MobilePrepareDto, type MobileSubmitDto, type NativePtQuoterConfig, NonceManager, PAFI_ISSUER_SDK_VERSION, PTClaimError, PTClaimHandler, type PTClaimHandlerConfig, type PTClaimRequest, type PTClaimResponse, PTRedeemError, PTRedeemHandler, type PTRedeemHandlerConfig, type PTRedeemRequest, type PTRedeemResponse, PafiBackendClient, type PafiBackendConfig, PafiBackendError, type PafiBackendErrorCode, type PendingCredit, type PendingUserOpEntry, PendingUserOpForbiddenError, PendingUserOpNotFoundError, type PerpDepositDto, PerpDepositError, PerpDepositHandler, type PerpDepositHandlerConfig, type PerpDepositRequest, type PerpDepositResponse, PointIndexer, type PointIndexerConfig, type PolicyDecision, type PolicyEvalRequest, type PoolsDto, type PoolsProvider, type PreValidateMintResult, type PrepareBurnParams, type PrepareMintParams, type PrepareMobileUserOpParams, type PrepareMobileUserOpResult, type PreparedUserOp, type RedeemDto, type RedeemPrepareDto, RelayError, type RelayErrorCode, RelayService, type RelayUserOpParams, type RelayUserOpRequest, type RelayUserOpResponse, type RequestPaymasterParams, type RetryConfig, type SdkErrorBody, type SdkErrorMapperFactories, type SdkErrorStatus, type SerializedUserOpTypedData, type Session, type SponsorshipRequest, type SponsorshipResponse, type SponsorshipTarget, type SponsorshipUserOp, type SubgraphNativeUsdtQuoterConfig, type SubgraphPoolsProviderConfig, type UserDto, authenticateRequest, createIssuerService, createNativePtQuoter, createSdkErrorMapper, createSubgraphNativeUsdtQuoter, createSubgraphPoolsProvider, handleClaimStatus, handleDelegateSubmit, handleMobilePrepare, handleMobileSubmit, handleRedeemStatus, mergePaymasterFields, prepareMobileUserOp, relayUserOp, requestPaymaster, serializeEntryToJsonRpc, serializeUserOpTypedData };
package/dist/index.js CHANGED
@@ -1,29 +1,10 @@
1
1
  // src/errors.ts
2
- var PafiSdkError = class extends Error {
3
- /**
4
- * `true` when the FE should consider a retry safe — typically because
5
- * the failure is transient (`MINT_CAP_EXCEEDED` may free up,
6
- * `RELAY_FEE_EXCEEDS_AMOUNT` may drop on next quote). Defaults to
7
- * `false` subclasses opt in per-code.
8
- */
9
- safeToRetry = false;
10
- details;
11
- constructor(message) {
12
- super(message);
13
- this.name = new.target.name;
14
- }
15
- };
16
- var ValidationError = class extends PafiSdkError {
17
- httpStatus = "unprocessable";
18
- code;
19
- details;
20
- constructor(code, message, details) {
21
- super(message);
22
- this.code = code;
23
- this.details = details;
24
- }
25
- };
26
- var ConfigurationError = class extends PafiSdkError {
2
+ import {
3
+ PafiSdkError
4
+ } from "@pafi-dev/core";
5
+ import { PafiSdkError as PafiSdkError2 } from "@pafi-dev/core";
6
+ import { ValidationError } from "@pafi-dev/core";
7
+ var ConfigurationError = class extends PafiSdkError2 {
27
8
  httpStatus = "service_unavailable";
28
9
  code;
29
10
  details;
@@ -3659,7 +3640,7 @@ var IssuerStateValidator = class _IssuerStateValidator {
3659
3640
  };
3660
3641
 
3661
3642
  // src/index.ts
3662
- var PAFI_ISSUER_SDK_VERSION = true ? "0.7.3" : "dev";
3643
+ var PAFI_ISSUER_SDK_VERSION = true ? "0.7.4" : "dev";
3663
3644
  export {
3664
3645
  AdapterMisconfiguredError,
3665
3646
  AuthError,