@zkp2p/sdk 0.11.2 → 0.12.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.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-CbfjrxgD.mjs';
2
- export { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } from './vaultUtils-CbfjrxgD.mjs';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-xNLHO5lY.mjs';
2
+ export { dv as AccessPolicyDiff, dm as AccessPolicyOperations, dw as AccessPolicyOrdering, dx as AccessPolicyPlan, dy as AccessPolicyPlanStep, dz as AccessPolicyState, dn as AccessPolicyUnsupportedError, dA as AccessPolicyViolation, ah as ActionCallback, aL as ApiDeposit, aS as ApiIntentStatus, bq as AttestationServiceSellerCredentialProbeResponse, af as AuthorizationTokenProvider, dj as BatchResult, as as BestByPlatformResponseObject, br as BuyerTeePaymentParams, bs as BuyerTeePaymentProofInput, bt as BuyerTeeSessionMaterial, cW as CHARGEBACK_POLICY_ABI, a3 as CancelIntentMethodParams, ar as CancelIntentParams, b8 as CashAppCredentialUploadInput, b1 as CashAppSessionMaterial, al as CreateDepositConversionRate, ak as CreateDepositParams, bu as CuratorSellerCredentialStatusResponse, bv as CuratorSellerVerifyResponse, cE as Currency, cL as CurrencyData, di as DelegationDepositTarget, dg as DelegationRoute, dh as DelegationState, d4 as Deposit, d6 as DepositCurrency, bO as DepositIntentStatistics, aO as DepositStatus, aM as DepositVerifier, aN as DepositVerifierCurrency, bL as DepositVerifierData, d3 as DepositView, aH as FiatResponse, bp as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, ap as FulfillIntentParams, at as GetBestByPlatformResponse, au as GetBestByPlatformResponseObject, aP as GetDepositByIdRequest, aQ as GetDepositByIdResponse, aX as GetIntentByHashRequest, aY as GetIntentByHashResponse, aV as GetIntentsByDepositRequest, aW as GetIntentsByDepositResponse, ay as GetNearbyQuote, az as GetNearbySuggestions, aT as GetOwnerIntentsRequest, aU as GetOwnerIntentsResponse, av as GetPlatformQuote, aA as GetQuoteResponse, aB as GetQuoteResponseObject, aC as GetQuoteSingleResponse, bA as GetSellerCredentialStatusParams, bE as IdentityAttestationActionType, bF as IdentityAttestationOutput, bG as IdentityAttestationOutputFor, bH as IdentityAttestationParams, cj as IndexedRiskWindow, ck as IndexedStakingRowFreshness, cl as IndexedStakingState, cm as IndexedStakingStateParams, cn as IndexedTakerAuthorization, bU as IndexerClient, cy as IndexerDeploymentEnv, c0 as IndexerDeposit, ch as IndexerDepositDailySnapshot, cp as IndexerDepositFilter, cg as IndexerDepositFundActivity, ci as IndexerDepositFundActivityType, cs as IndexerDepositOrderDirection, cr as IndexerDepositOrderField, cq as IndexerDepositPagination, c3 as IndexerDepositPaymentMethod, bW as IndexerDepositService, cB as IndexerFulfillmentAndPaymentResponse, cz as IndexerFulfillmentRecord, c1 as IndexerIntentFulfilled, c2 as IndexerIntentFulfillmentAmounts, c5 as IndexerIntentStatus, c9 as IndexerManagerAggregateStats, cb as IndexerManagerDailySnapshot, ca as IndexerManagerStats, ce as IndexerManualRateUpdate, c4 as IndexerMethodCurrency, cf as IndexerOracleConfigUpdate, cA as IndexerPaymentVerifiedRecord, c6 as IndexerRateManager, c8 as IndexerRateManagerDelegation, cv as IndexerRateManagerDelegationPagination, cd as IndexerRateManagerDetail, ct as IndexerRateManagerFilter, cc as IndexerRateManagerListItem, cx as IndexerRateManagerOrderDirection, cw as IndexerRateManagerOrderField, cu as IndexerRateManagerPagination, c7 as IndexerRateManagerRate, bX as IndexerRateManagerService, b_ as IndexerStakingService, aR as Intent, ad as IntentGuardianErrorCode, a9 as IntentGuardianPolicy, aa as IntentGuardianQuote, ab as IntentGuardianWriteFunction, ac as IntentGuardianWriteParams, d8 as IntentView, dq as MAX_ADDRESSES_PER_CALL, dp as MAX_GROUPS_PER_DEPOSIT, dr as MAX_WHITELISTED_ADDRESSES, bI as MakerIdentityAttestationRequestBody, bJ as MakerIdentityPlatform, aJ as NearbyQuote, aK as NearbySuggestions, cV as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bK as OnchainCurrency, d9 as OnchainIntent, bN as OrderStats, bS as OrderbookEntry, bT as OrderbookTableRow, cC as PAYMENT_PLATFORMS, b6 as PayPalGoogleOAuthSellerCredentialUploadBody, d5 as PaymentMethodData, cD as PaymentPlatformType, aw as PlatformQuote, bM as PreparedTransaction, aG as QuoteFeesResponse, aF as QuoteIntentResponse, ax as QuotePreference, aD as QuoteResponseObject, aE as QuoteSingleResponse, am as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, d7 as ReferralFee, Y as ReferralReadOptions, ai as ReferralRedemption, aj as ReferralSignatureBody, _ as ReferralSignatureOptions, aZ as RegisterPayeeDetailsRequest, a_ as RegisterPayeeDetailsResponse, bw as RegisteredSellerCredentialPlatform, by as RegisteredUploadSellerCredentialParams, aq as ReleaseFundsToPayerParams, cY as RuntimeEnv, cX as STAKE_VAULT_ABI, bn as SellerAttestationOutput, bb as SellerCiphertextBundle, bg as SellerCredentialBundleUpload, bo as SellerCredentialProbeResponse, bi as SellerCredentialStatus, bh as SellerCredentialStatusValue, ba as SellerCredentialUploadInputByPlatform, bm as SellerPaymentTypedDataValue, a$ as SellerPlatform, bf as SellerProbeInput, bc as SellerSignedCiphertextBundle, bk as SellerTypedDataField, bl as SellerTypedDataSpec, be as SellerVerifyInput, bd as SellerVerifyIntentDetails, bj as SellerVerifyProxyBody, dl as SendBatchFn, dk as SendTransactionFn, a1 as SignalIntentMethodParams, ao as SignalIntentParams, a0 as SignalIntentReferralFee, bQ as StakeEnvironment, a6 as StakeVaultState, a7 as StakeVaultWriteFunction, a8 as StakeVaultWriteParams, co as StakingEntityIds, bR as TakerStakeBalances, ag as TimeoutConfig, aI as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bC as UploadGoogleOAuthSellerCredentialParams, bB as UploadPayPalGoogleOAuthSellerCredentialParams, bz as UploadSellerCredentialOptions, bx as UploadSellerCredentialParams, bP as UsdcAmount, c_ as V2ContractAbis, cZ as V2ContractAddresses, b7 as VenmoCredentialUploadInput, b0 as VenmoSessionMaterial, bD as VerifySellerPaymentParams, b9 as WiseCredentialUploadInput, b3 as WiseProfileInfo, b5 as WiseProfileNotFound, b4 as WiseProfileSelectionRequired, b2 as WiseSessionMaterial, an as WithdrawDepositParams, da as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, bZ as buildStakingEntityIds, df as classifyDelegationState, ae as classifyIntentGuardianError, bY as compareEventCursorIdsByRecency, cF as currencyInfo, bV as defaultIndexerEndpoint, ds as diffAccessPolicy, d1 as enrichPvDepositView, d2 as enrichPvIntentView, b$ as fetchIndexerFulfillmentAndPayment, cS as getChargebackPolicyContract, cM as getContracts, cI as getCurrencyCodeFromHash, cH as getCurrencyInfoFromCountryCode, cG as getCurrencyInfoFromHash, de as getDelegationRoute, cU as getGatingServiceAddress, cN as getIntentGuardianContract, cR as getOrchestratorV3Contract, cT as getPaymentMethodsCatalog, cP as getRateManagerContracts, cQ as getStakeVaultContract, cO as hasIntentGuardian, cJ as isSupportedCurrencyHash, db as isZeroRateManagerId, cK as mapConversionRatesToOnchainMinRate, dt as normalizeAccessPolicyState, dc as normalizeRateManagerId, dd as normalizeRegistry, c$ as parseDepositView, d0 as parseIntentView, du as planAccessPolicyUpdate } from './vaultUtils-xNLHO5lY.mjs';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
5
  export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
@@ -183,7 +183,6 @@ declare class ContractRouter {
183
183
 
184
184
  type PeerConnectionStatus = 'connected' | 'disconnected' | 'pending';
185
185
  type PeerMetadataCaptureMode = 'buyerTee' | 'sellerCredential';
186
- type PeerMetadataProviderConfig = Record<string, unknown>;
187
186
  type PeerAuthenticateParams = {
188
187
  actionType: string;
189
188
  attestationActionType?: string | null;
@@ -192,7 +191,6 @@ type PeerAuthenticateParams = {
192
191
  callerAddress?: string | null;
193
192
  captureMode?: PeerMetadataCaptureMode;
194
193
  platform: string;
195
- providerConfig?: PeerMetadataProviderConfig;
196
194
  };
197
195
  type PeerBuyerTeePaymentParams = Record<string, string | number | boolean>;
198
196
  type PeerBuyerTeePaymentCapture = {
@@ -708,6 +706,36 @@ declare function resolvePaymentMethodHashFromCatalog(processorName: string, cata
708
706
  */
709
707
  declare function resolvePaymentMethodNameFromHash(hash: string, catalog: PaymentMethodCatalog): string | undefined;
710
708
 
709
+ /**
710
+ * Exact client-side counterparts of the ChargebackPolicy admission rules.
711
+ *
712
+ * Kept inside the public SDK so its generated declarations and runtime remain
713
+ * self-contained for external consumers. The deployed policy (contracts-v2
714
+ * 0.4.0) is full-gross: an intent on a payment method with a non-zero risk
715
+ * window locks the full intent amount 1:1 from the effective stake owner's
716
+ * free stake, so stake-backed capacity IS that free stake. A method with a
717
+ * zero (or absent) risk window admits unbonded and never touches stake.
718
+ *
719
+ * Intent-lifetime extension pricing is not risk math: it belongs to the
720
+ * standalone IntentGuardian and is quoted via the guardian operations.
721
+ */
722
+ type IntegerLike = bigint | number | string | {
723
+ toString(): string;
724
+ };
725
+ type RiskMode = 'UNBONDED' | 'STAKE_BACKED';
726
+ declare const RISK_BPS_DENOMINATOR = 10000n;
727
+ /** Full-gross coverage required at admission; zero when the method is unbonded. */
728
+ declare function calculateRequiredCoverage(amount: IntegerLike, chargebackable: boolean): bigint;
729
+ /** Maximum chargebackable intent amount that can use existing stake. */
730
+ declare function calculateStakeBackedCapacity(freeStake: IntegerLike): bigint;
731
+ /**
732
+ * Exact admission mode under the ChargebackPolicy. `chargebackable` means the
733
+ * payment method carries a non-zero risk window; the policy additionally
734
+ * requires the deposit to have chargebacks enabled and admissions unpaused,
735
+ * both of which reject the intent outright rather than changing its mode.
736
+ */
737
+ declare function selectRiskMode(amount: IntegerLike, freeStake: IntegerLike, chargebackable: boolean): RiskMode;
738
+
711
739
  /**
712
740
  * Ensure a value is 32 bytes hex (0x + 64 nibbles). If ascii, keccak256 by default when hash=true.
713
741
  */
@@ -896,4 +924,4 @@ declare class ContractError extends ZKP2PError {
896
924
  constructor(message: string, details?: unknown);
897
925
  }
898
926
 
899
- export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
927
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-CbfjrxgD.js';
2
- export { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } from './vaultUtils-CbfjrxgD.js';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-xNLHO5lY.js';
2
+ export { dv as AccessPolicyDiff, dm as AccessPolicyOperations, dw as AccessPolicyOrdering, dx as AccessPolicyPlan, dy as AccessPolicyPlanStep, dz as AccessPolicyState, dn as AccessPolicyUnsupportedError, dA as AccessPolicyViolation, ah as ActionCallback, aL as ApiDeposit, aS as ApiIntentStatus, bq as AttestationServiceSellerCredentialProbeResponse, af as AuthorizationTokenProvider, dj as BatchResult, as as BestByPlatformResponseObject, br as BuyerTeePaymentParams, bs as BuyerTeePaymentProofInput, bt as BuyerTeeSessionMaterial, cW as CHARGEBACK_POLICY_ABI, a3 as CancelIntentMethodParams, ar as CancelIntentParams, b8 as CashAppCredentialUploadInput, b1 as CashAppSessionMaterial, al as CreateDepositConversionRate, ak as CreateDepositParams, bu as CuratorSellerCredentialStatusResponse, bv as CuratorSellerVerifyResponse, cE as Currency, cL as CurrencyData, di as DelegationDepositTarget, dg as DelegationRoute, dh as DelegationState, d4 as Deposit, d6 as DepositCurrency, bO as DepositIntentStatistics, aO as DepositStatus, aM as DepositVerifier, aN as DepositVerifierCurrency, bL as DepositVerifierData, d3 as DepositView, aH as FiatResponse, bp as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, ap as FulfillIntentParams, at as GetBestByPlatformResponse, au as GetBestByPlatformResponseObject, aP as GetDepositByIdRequest, aQ as GetDepositByIdResponse, aX as GetIntentByHashRequest, aY as GetIntentByHashResponse, aV as GetIntentsByDepositRequest, aW as GetIntentsByDepositResponse, ay as GetNearbyQuote, az as GetNearbySuggestions, aT as GetOwnerIntentsRequest, aU as GetOwnerIntentsResponse, av as GetPlatformQuote, aA as GetQuoteResponse, aB as GetQuoteResponseObject, aC as GetQuoteSingleResponse, bA as GetSellerCredentialStatusParams, bE as IdentityAttestationActionType, bF as IdentityAttestationOutput, bG as IdentityAttestationOutputFor, bH as IdentityAttestationParams, cj as IndexedRiskWindow, ck as IndexedStakingRowFreshness, cl as IndexedStakingState, cm as IndexedStakingStateParams, cn as IndexedTakerAuthorization, bU as IndexerClient, cy as IndexerDeploymentEnv, c0 as IndexerDeposit, ch as IndexerDepositDailySnapshot, cp as IndexerDepositFilter, cg as IndexerDepositFundActivity, ci as IndexerDepositFundActivityType, cs as IndexerDepositOrderDirection, cr as IndexerDepositOrderField, cq as IndexerDepositPagination, c3 as IndexerDepositPaymentMethod, bW as IndexerDepositService, cB as IndexerFulfillmentAndPaymentResponse, cz as IndexerFulfillmentRecord, c1 as IndexerIntentFulfilled, c2 as IndexerIntentFulfillmentAmounts, c5 as IndexerIntentStatus, c9 as IndexerManagerAggregateStats, cb as IndexerManagerDailySnapshot, ca as IndexerManagerStats, ce as IndexerManualRateUpdate, c4 as IndexerMethodCurrency, cf as IndexerOracleConfigUpdate, cA as IndexerPaymentVerifiedRecord, c6 as IndexerRateManager, c8 as IndexerRateManagerDelegation, cv as IndexerRateManagerDelegationPagination, cd as IndexerRateManagerDetail, ct as IndexerRateManagerFilter, cc as IndexerRateManagerListItem, cx as IndexerRateManagerOrderDirection, cw as IndexerRateManagerOrderField, cu as IndexerRateManagerPagination, c7 as IndexerRateManagerRate, bX as IndexerRateManagerService, b_ as IndexerStakingService, aR as Intent, ad as IntentGuardianErrorCode, a9 as IntentGuardianPolicy, aa as IntentGuardianQuote, ab as IntentGuardianWriteFunction, ac as IntentGuardianWriteParams, d8 as IntentView, dq as MAX_ADDRESSES_PER_CALL, dp as MAX_GROUPS_PER_DEPOSIT, dr as MAX_WHITELISTED_ADDRESSES, bI as MakerIdentityAttestationRequestBody, bJ as MakerIdentityPlatform, aJ as NearbyQuote, aK as NearbySuggestions, cV as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bK as OnchainCurrency, d9 as OnchainIntent, bN as OrderStats, bS as OrderbookEntry, bT as OrderbookTableRow, cC as PAYMENT_PLATFORMS, b6 as PayPalGoogleOAuthSellerCredentialUploadBody, d5 as PaymentMethodData, cD as PaymentPlatformType, aw as PlatformQuote, bM as PreparedTransaction, aG as QuoteFeesResponse, aF as QuoteIntentResponse, ax as QuotePreference, aD as QuoteResponseObject, aE as QuoteSingleResponse, am as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, d7 as ReferralFee, Y as ReferralReadOptions, ai as ReferralRedemption, aj as ReferralSignatureBody, _ as ReferralSignatureOptions, aZ as RegisterPayeeDetailsRequest, a_ as RegisterPayeeDetailsResponse, bw as RegisteredSellerCredentialPlatform, by as RegisteredUploadSellerCredentialParams, aq as ReleaseFundsToPayerParams, cY as RuntimeEnv, cX as STAKE_VAULT_ABI, bn as SellerAttestationOutput, bb as SellerCiphertextBundle, bg as SellerCredentialBundleUpload, bo as SellerCredentialProbeResponse, bi as SellerCredentialStatus, bh as SellerCredentialStatusValue, ba as SellerCredentialUploadInputByPlatform, bm as SellerPaymentTypedDataValue, a$ as SellerPlatform, bf as SellerProbeInput, bc as SellerSignedCiphertextBundle, bk as SellerTypedDataField, bl as SellerTypedDataSpec, be as SellerVerifyInput, bd as SellerVerifyIntentDetails, bj as SellerVerifyProxyBody, dl as SendBatchFn, dk as SendTransactionFn, a1 as SignalIntentMethodParams, ao as SignalIntentParams, a0 as SignalIntentReferralFee, bQ as StakeEnvironment, a6 as StakeVaultState, a7 as StakeVaultWriteFunction, a8 as StakeVaultWriteParams, co as StakingEntityIds, bR as TakerStakeBalances, ag as TimeoutConfig, aI as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bC as UploadGoogleOAuthSellerCredentialParams, bB as UploadPayPalGoogleOAuthSellerCredentialParams, bz as UploadSellerCredentialOptions, bx as UploadSellerCredentialParams, bP as UsdcAmount, c_ as V2ContractAbis, cZ as V2ContractAddresses, b7 as VenmoCredentialUploadInput, b0 as VenmoSessionMaterial, bD as VerifySellerPaymentParams, b9 as WiseCredentialUploadInput, b3 as WiseProfileInfo, b5 as WiseProfileNotFound, b4 as WiseProfileSelectionRequired, b2 as WiseSessionMaterial, an as WithdrawDepositParams, da as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, bZ as buildStakingEntityIds, df as classifyDelegationState, ae as classifyIntentGuardianError, bY as compareEventCursorIdsByRecency, cF as currencyInfo, bV as defaultIndexerEndpoint, ds as diffAccessPolicy, d1 as enrichPvDepositView, d2 as enrichPvIntentView, b$ as fetchIndexerFulfillmentAndPayment, cS as getChargebackPolicyContract, cM as getContracts, cI as getCurrencyCodeFromHash, cH as getCurrencyInfoFromCountryCode, cG as getCurrencyInfoFromHash, de as getDelegationRoute, cU as getGatingServiceAddress, cN as getIntentGuardianContract, cR as getOrchestratorV3Contract, cT as getPaymentMethodsCatalog, cP as getRateManagerContracts, cQ as getStakeVaultContract, cO as hasIntentGuardian, cJ as isSupportedCurrencyHash, db as isZeroRateManagerId, cK as mapConversionRatesToOnchainMinRate, dt as normalizeAccessPolicyState, dc as normalizeRateManagerId, dd as normalizeRegistry, c$ as parseDepositView, d0 as parseIntentView, du as planAccessPolicyUpdate } from './vaultUtils-xNLHO5lY.js';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
5
  export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
@@ -183,7 +183,6 @@ declare class ContractRouter {
183
183
 
184
184
  type PeerConnectionStatus = 'connected' | 'disconnected' | 'pending';
185
185
  type PeerMetadataCaptureMode = 'buyerTee' | 'sellerCredential';
186
- type PeerMetadataProviderConfig = Record<string, unknown>;
187
186
  type PeerAuthenticateParams = {
188
187
  actionType: string;
189
188
  attestationActionType?: string | null;
@@ -192,7 +191,6 @@ type PeerAuthenticateParams = {
192
191
  callerAddress?: string | null;
193
192
  captureMode?: PeerMetadataCaptureMode;
194
193
  platform: string;
195
- providerConfig?: PeerMetadataProviderConfig;
196
194
  };
197
195
  type PeerBuyerTeePaymentParams = Record<string, string | number | boolean>;
198
196
  type PeerBuyerTeePaymentCapture = {
@@ -708,6 +706,36 @@ declare function resolvePaymentMethodHashFromCatalog(processorName: string, cata
708
706
  */
709
707
  declare function resolvePaymentMethodNameFromHash(hash: string, catalog: PaymentMethodCatalog): string | undefined;
710
708
 
709
+ /**
710
+ * Exact client-side counterparts of the ChargebackPolicy admission rules.
711
+ *
712
+ * Kept inside the public SDK so its generated declarations and runtime remain
713
+ * self-contained for external consumers. The deployed policy (contracts-v2
714
+ * 0.4.0) is full-gross: an intent on a payment method with a non-zero risk
715
+ * window locks the full intent amount 1:1 from the effective stake owner's
716
+ * free stake, so stake-backed capacity IS that free stake. A method with a
717
+ * zero (or absent) risk window admits unbonded and never touches stake.
718
+ *
719
+ * Intent-lifetime extension pricing is not risk math: it belongs to the
720
+ * standalone IntentGuardian and is quoted via the guardian operations.
721
+ */
722
+ type IntegerLike = bigint | number | string | {
723
+ toString(): string;
724
+ };
725
+ type RiskMode = 'UNBONDED' | 'STAKE_BACKED';
726
+ declare const RISK_BPS_DENOMINATOR = 10000n;
727
+ /** Full-gross coverage required at admission; zero when the method is unbonded. */
728
+ declare function calculateRequiredCoverage(amount: IntegerLike, chargebackable: boolean): bigint;
729
+ /** Maximum chargebackable intent amount that can use existing stake. */
730
+ declare function calculateStakeBackedCapacity(freeStake: IntegerLike): bigint;
731
+ /**
732
+ * Exact admission mode under the ChargebackPolicy. `chargebackable` means the
733
+ * payment method carries a non-zero risk window; the policy additionally
734
+ * requires the deposit to have chargebacks enabled and admissions unpaused,
735
+ * both of which reject the intent outright rather than changing its mode.
736
+ */
737
+ declare function selectRiskMode(amount: IntegerLike, freeStake: IntegerLike, chargebackable: boolean): RiskMode;
738
+
711
739
  /**
712
740
  * Ensure a value is 32 bytes hex (0x + 64 nibbles). If ascii, keccak256 by default when hash=true.
713
741
  */
@@ -896,4 +924,4 @@ declare class ContractError extends ZKP2PError {
896
924
  constructor(message: string, details?: unknown);
897
925
  }
898
926
 
899
- export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
927
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };