@zkp2p/sdk 0.14.2-rc.2 → 0.14.2-rc.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.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-D3J7IDTF.mjs';
2
- export { dI as AccessPolicyOperations, dJ as AccessPolicyUnsupportedError, am as ActionCallback, b6 as AmazonPayCredentialUploadInput, b7 as AmazonPayIdentityAttestationOutput, aR as ApiDeposit, aY as ApiIntentStatus, bz as AttestationServiceSellerCredentialProbeResponse, ak as AuthorizationTokenProvider, dF as BatchResult, ax as BestByPlatformResponseObject, bA as BuyerTeePaymentParams, bB as BuyerTeePaymentProofInput, bC as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, aw as CancelIntentParams, bh as CashAppCredentialUploadInput, b9 as CashAppSessionMaterial, aq as CreateDepositConversionRate, ap as CreateDepositParams, bD as CuratorSellerCredentialStatusResponse, bE as CuratorSellerVerifyResponse, cZ as Currency, d4 as CurrencyData, df as DISPUTE_PROTECTION_POLICY_ABI, dE as DelegationDepositTarget, dC as DelegationRoute, dD as DelegationState, dq as Deposit, ds as DepositCurrency, bY as DepositIntentStatistics, aU as DepositStatus, aS as DepositVerifier, aT as DepositVerifierCurrency, bV as DepositVerifierData, dp as DepositView, aa as DisputeAttestationConfig, ct as DisputeProtectionIntentPage, cu as DisputeProtectionIntentPageParams, ab as DisputeProtectionReadinessOptions, ac as DisputeProtectionReadinessResult, aN as FiatResponse, by as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, au as FulfillIntentParams, ay as GetBestByPlatformResponse, az as GetBestByPlatformResponseObject, aV as GetDepositByIdRequest, aW as GetDepositByIdResponse, b1 as GetIntentByHashRequest, b2 as GetIntentByHashResponse, a$ as GetIntentsByDepositRequest, b0 as GetIntentsByDepositResponse, aD as GetNearbyQuote, aE as GetNearbySuggestions, aZ as GetOwnerIntentsRequest, a_ as GetOwnerIntentsResponse, aA as GetPlatformQuote, aF as GetQuoteResponse, aG as GetQuoteResponseObject, aH as GetQuoteSingleResponse, bJ as GetSellerCredentialStatusParams, bO as IdentityAttestationActionType, bP as IdentityAttestationOutput, bQ as IdentityAttestationOutputFor, bR as IdentityAttestationParams, cv as IndexedDisputeProtectionIntent, cw as IndexedPage, cx as IndexedPageAsOf, cy as IndexedRiskWindow, cz as IndexedStakeActivity, cA as IndexedStakeLock, cB as IndexedStakingRowFreshness, cC as IndexedStakingState, cD as IndexedStakingStateParams, cE as IndexedTakerAuthorization, cF as IndexedTakerStakeAuthorization, c2 as IndexerClient, cT as IndexerDeploymentEnv, ca as IndexerDeposit, cr as IndexerDepositDailySnapshot, cK as IndexerDepositFilter, cq as IndexerDepositFundActivity, cs as IndexerDepositFundActivityType, cN as IndexerDepositOrderDirection, cM as IndexerDepositOrderField, cL as IndexerDepositPagination, cd as IndexerDepositPaymentMethod, c4 as IndexerDepositService, cW as IndexerFulfillmentAndPaymentResponse, cU as IndexerFulfillmentRecord, cb as IndexerIntentFulfilled, cc as IndexerIntentFulfillmentAmounts, cf as IndexerIntentStatus, cj as IndexerManagerAggregateStats, cl as IndexerManagerDailySnapshot, ck as IndexerManagerStats, co as IndexerManualRateUpdate, ce as IndexerMethodCurrency, cp as IndexerOracleConfigUpdate, cV as IndexerPaymentVerifiedRecord, cg as IndexerRateManager, ci as IndexerRateManagerDelegation, cQ as IndexerRateManagerDelegationPagination, cn as IndexerRateManagerDetail, cO as IndexerRateManagerFilter, cm as IndexerRateManagerListItem, cS as IndexerRateManagerOrderDirection, cR as IndexerRateManagerOrderField, cP as IndexerRateManagerPagination, ch as IndexerRateManagerRate, c5 as IndexerRateManagerService, c8 as IndexerStakingService, aX as Intent, ai as IntentGuardianErrorCode, ae as IntentGuardianPolicy, af as IntentGuardianQuote, ag as IntentGuardianWriteFunction, ah as IntentGuardianWriteParams, du as IntentView, bS as MakerIdentityAttestationRequestBody, bT as MakerIdentityPlatform, aP as NearbyQuote, aQ as NearbySuggestions, de as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bU as OnchainCurrency, dv as OnchainIntent, bX as OrderStats, c0 as OrderbookEntry, c1 as OrderbookTableRow, cX as PAYMENT_PLATFORMS, be as PayPalGoogleOAuthSellerCredentialUploadBody, dr as PaymentMethodData, cY as PaymentPlatformType, aB as PlatformQuote, bW as PreparedTransaction, aM as QuoteFeesResponse, aL as QuoteIntentResponse, aJ as QuoteMakerIdentity, aC as QuotePreference, aI as QuoteResponseObject, aK as QuoteSingleResponse, ar as Range, ad as ReadDisputeAttestationConfigParams, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, dt as ReferralFee, Y as ReferralReadOptions, an as ReferralRedemption, ao as ReferralSignatureBody, _ as ReferralSignatureOptions, b3 as RegisterPayeeDetailsRequest, b4 as RegisterPayeeDetailsResponse, bF as RegisteredSellerCredentialPlatform, bH as RegisteredUploadSellerCredentialParams, av as ReleaseFundsToPayerParams, dh as RuntimeEnv, dg as STAKE_VAULT_ABI, bw as SellerAttestationOutput, bk as SellerCiphertextBundle, bp as SellerCredentialBundleUpload, bx as SellerCredentialProbeResponse, br as SellerCredentialStatus, bq as SellerCredentialStatusValue, bj as SellerCredentialUploadInputByPlatform, bv as SellerPaymentTypedDataValue, b5 as SellerPlatform, bo as SellerProbeInput, bl as SellerSignedCiphertextBundle, bt as SellerTypedDataField, bu as SellerTypedDataSpec, bn as SellerVerifyInput, bm as SellerVerifyIntentDetails, bs as SellerVerifyProxyBody, dH as SendBatchFn, dG as SendTransactionFn, a1 as SignalIntentMethodParams, at as SignalIntentParams, a0 as SignalIntentReferralFee, cG as StakeActivityPageParams, b_ as StakeEnvironment, cH as StakeLockPageParams, a6 as StakeVaultState, a7 as StakeVaultWriteFunction, a8 as StakeVaultWriteParams, cI as StakingEntityIds, cJ as TakerStakeAuthorizationPageParams, b$ as TakerStakeBalances, al as TimeoutConfig, aO as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bM as UploadGoogleOAuthSellerCredentialParams, bK as UploadPayPalGoogleOAuthSellerCredentialParams, bI as UploadSellerCredentialOptions, bG as UploadSellerCredentialParams, bL as UploadVenmoGoogleOAuthSellerCredentialParams, bZ as UsdcAmount, dj as V2ContractAbis, di as V2ContractAddresses, bg as VenmoCredentialUploadInput, bf as VenmoGoogleOAuthSellerCredentialUploadBody, b8 as VenmoSessionMaterial, bN as VerifySellerPaymentParams, bi as WiseCredentialUploadInput, bb as WiseProfileInfo, bd as WiseProfileNotFound, bc as WiseProfileSelectionRequired, ba as WiseSessionMaterial, as as WithdrawDepositParams, dw as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, c7 as buildStakingEntityIds, dB as classifyDelegationState, aj as classifyIntentGuardianError, c6 as compareEventCursorIdsByRecency, c_ as currencyInfo, c3 as defaultIndexerEndpoint, dm as enrichPvDepositView, dn as enrichPvIntentView, c9 as fetchIndexerFulfillmentAndPayment, d5 as getContracts, d1 as getCurrencyCodeFromHash, d0 as getCurrencyInfoFromCountryCode, c$ as getCurrencyInfoFromHash, dA as getDelegationRoute, db as getDisputeProtectionPolicyContract, dd as getGatingServiceAddress, d6 as getIntentGuardianContract, da as getOrchestratorV3Contract, dc as getPaymentMethodsCatalog, d8 as getRateManagerContracts, d9 as getStakeVaultContract, d7 as hasIntentGuardian, d2 as isSupportedCurrencyHash, dx as isZeroRateManagerId, d3 as mapConversionRatesToOnchainMinRate, dy as normalizeRateManagerId, dz as normalizeRegistry, dk as parseDepositView, dl as parseIntentView, a9 as readDisputeAttestationConfig } from './vaultUtils-D3J7IDTF.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, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as GetOrderbookTableResponse, N as QuoteRequest, O as QuoteResponse, T as CuratorMetadata, W as CurrencyType, X as PaymentMethodCatalog, Y as TxOverrides } from './vaultUtils-DVps_hg9.mjs';
2
+ export { dI as AccessPolicyOperations, dJ as AccessPolicyUnsupportedError, ao as ActionCallback, b7 as AmazonPayCredentialUploadInput, b8 as AmazonPayIdentityAttestationOutput, aT as ApiDeposit, a_ as ApiIntentStatus, bA as AttestationServiceSellerCredentialProbeResponse, am as AuthorizationTokenProvider, dF as BatchResult, az as BestByPlatformResponseObject, bB as BuyerTeePaymentParams, bC as BuyerTeePaymentProofInput, bD as BuyerTeeSessionMaterial, a5 as CancelIntentMethodParams, ay as CancelIntentParams, bi as CashAppCredentialUploadInput, ba as CashAppSessionMaterial, as as CreateDepositConversionRate, ar as CreateDepositParams, bE as CuratorSellerVerifyResponse, cZ as Currency, d4 as CurrencyData, df as DISPUTE_PROTECTION_POLICY_ABI, dE as DelegationDepositTarget, dC as DelegationRoute, dD as DelegationState, dq as Deposit, ds as DepositCurrency, bY as DepositIntentStatistics, aW as DepositStatus, aU as DepositVerifier, aV as DepositVerifierCurrency, bV as DepositVerifierData, dp as DepositView, ac as DisputeAttestationConfig, ct as DisputeProtectionIntentPage, cu as DisputeProtectionIntentPageParams, ad as DisputeProtectionReadinessOptions, ae as DisputeProtectionReadinessResult, aP as FiatResponse, bz as FulfillIntentAttestationResponse, a4 as FulfillIntentMethodParams, aw as FulfillIntentParams, aA as GetBestByPlatformResponse, aB as GetBestByPlatformResponseObject, aX as GetDepositByIdRequest, aY as GetDepositByIdResponse, b3 as GetIntentByHashRequest, b4 as GetIntentByHashResponse, b1 as GetIntentsByDepositRequest, b2 as GetIntentsByDepositResponse, aF as GetNearbyQuote, aG as GetNearbySuggestions, a$ as GetOwnerIntentsRequest, b0 as GetOwnerIntentsResponse, aC as GetPlatformQuote, aH as GetQuoteResponse, aI as GetQuoteResponseObject, aJ as GetQuoteSingleResponse, bJ as GetSellerCredentialStatusParams, bO as IdentityAttestationActionType, bP as IdentityAttestationOutput, bQ as IdentityAttestationOutputFor, bR as IdentityAttestationParams, cv as IndexedDisputeProtectionIntent, cw as IndexedPage, cx as IndexedPageAsOf, cy as IndexedRiskWindow, cz as IndexedStakeActivity, cA as IndexedStakeLock, cB as IndexedStakingRowFreshness, cC as IndexedStakingState, cD as IndexedStakingStateParams, cE as IndexedTakerAuthorization, cF as IndexedTakerStakeAuthorization, c2 as IndexerClient, cT as IndexerDeploymentEnv, ca as IndexerDeposit, cr as IndexerDepositDailySnapshot, cK as IndexerDepositFilter, cq as IndexerDepositFundActivity, cs as IndexerDepositFundActivityType, cN as IndexerDepositOrderDirection, cM as IndexerDepositOrderField, cL as IndexerDepositPagination, cd as IndexerDepositPaymentMethod, c4 as IndexerDepositService, cW as IndexerFulfillmentAndPaymentResponse, cU as IndexerFulfillmentRecord, cb as IndexerIntentFulfilled, cc as IndexerIntentFulfillmentAmounts, cf as IndexerIntentStatus, cj as IndexerManagerAggregateStats, cl as IndexerManagerDailySnapshot, ck as IndexerManagerStats, co as IndexerManualRateUpdate, ce as IndexerMethodCurrency, cp as IndexerOracleConfigUpdate, cV as IndexerPaymentVerifiedRecord, cg as IndexerRateManager, ci as IndexerRateManagerDelegation, cQ as IndexerRateManagerDelegationPagination, cn as IndexerRateManagerDetail, cO as IndexerRateManagerFilter, cm as IndexerRateManagerListItem, cS as IndexerRateManagerOrderDirection, cR as IndexerRateManagerOrderField, cP as IndexerRateManagerPagination, ch as IndexerRateManagerRate, c5 as IndexerRateManagerService, c8 as IndexerStakingService, aZ as Intent, ak as IntentGuardianErrorCode, ag as IntentGuardianPolicy, ah as IntentGuardianQuote, ai as IntentGuardianWriteFunction, aj as IntentGuardianWriteParams, du as IntentView, bS as MakerIdentityAttestationRequestBody, bT as MakerIdentityPlatform, aR as NearbyQuote, aS as NearbySuggestions, de as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bU as OnchainCurrency, dv as OnchainIntent, bX as OrderStats, c0 as OrderbookEntry, c1 as OrderbookTableRow, cX as PAYMENT_PLATFORMS, bf as PayPalGoogleOAuthSellerCredentialUploadBody, dr as PaymentMethodData, cY as PaymentPlatformType, aD as PlatformQuote, bW as PreparedTransaction, aO as QuoteFeesResponse, aN as QuoteIntentResponse, aL as QuoteMakerIdentity, aE as QuotePreference, aK as QuoteResponseObject, aM as QuoteSingleResponse, at as Range, af as ReadDisputeAttestationConfigParams, a1 as RedeemReferralCodeSignatureOptions, _ as ReferralBearerWriteOptions, dt as ReferralFee, $ as ReferralReadOptions, ap as ReferralRedemption, aq as ReferralSignatureBody, a0 as ReferralSignatureOptions, b5 as RegisterPayeeDetailsRequest, b6 as RegisterPayeeDetailsResponse, bF as RegisteredSellerCredentialPlatform, bH as RegisteredUploadSellerCredentialParams, ax as ReleaseFundsToPayerParams, dh as RuntimeEnv, dg as STAKE_VAULT_ABI, bx as SellerAttestationOutput, bl as SellerCiphertextBundle, bq as SellerCredentialBundleUpload, by as SellerCredentialProbeResponse, bs as SellerCredentialStatus, br as SellerCredentialStatusValue, bk as SellerCredentialUploadInputByPlatform, bw as SellerPaymentTypedDataValue, bp as SellerProbeInput, bm as SellerSignedCiphertextBundle, bu as SellerTypedDataField, bv as SellerTypedDataSpec, bo as SellerVerifyInput, bn as SellerVerifyIntentDetails, bt as SellerVerifyProxyBody, dH as SendBatchFn, dG as SendTransactionFn, a3 as SignalIntentMethodParams, av as SignalIntentParams, a2 as SignalIntentReferralFee, cG as StakeActivityPageParams, b_ as StakeEnvironment, cH as StakeLockPageParams, a8 as StakeVaultState, a9 as StakeVaultWriteFunction, aa as StakeVaultWriteParams, cI as StakingEntityIds, cJ as TakerStakeAuthorizationPageParams, b$ as TakerStakeBalances, an as TimeoutConfig, aQ as TokenResponse, a6 as UpdateReferralCodeSignatureOptions, bM as UploadGoogleOAuthSellerCredentialParams, bK as UploadPayPalGoogleOAuthSellerCredentialParams, bI as UploadSellerCredentialOptions, bG as UploadSellerCredentialParams, bL as UploadVenmoGoogleOAuthSellerCredentialParams, bZ as UsdcAmount, dj as V2ContractAbis, di as V2ContractAddresses, bh as VenmoCredentialUploadInput, bg as VenmoGoogleOAuthSellerCredentialUploadBody, b9 as VenmoSessionMaterial, bN as VerifySellerPaymentParams, bj as WiseCredentialUploadInput, bc as WiseProfileInfo, be as WiseProfileNotFound, bd as WiseProfileSelectionRequired, bb as WiseSessionMaterial, au as WithdrawDepositParams, dw as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a7 as Zkp2pClientOptions, c7 as buildStakingEntityIds, dB as classifyDelegationState, al as classifyIntentGuardianError, c6 as compareEventCursorIdsByRecency, c_ as currencyInfo, c3 as defaultIndexerEndpoint, dm as enrichPvDepositView, dn as enrichPvIntentView, c9 as fetchIndexerFulfillmentAndPayment, d5 as getContracts, d1 as getCurrencyCodeFromHash, d0 as getCurrencyInfoFromCountryCode, c$ as getCurrencyInfoFromHash, dA as getDelegationRoute, db as getDisputeProtectionPolicyContract, dd as getGatingServiceAddress, d6 as getIntentGuardianContract, da as getOrchestratorV3Contract, dc as getPaymentMethodsCatalog, d8 as getRateManagerContracts, d9 as getStakeVaultContract, d7 as hasIntentGuardian, d2 as isSupportedCurrencyHash, dx as isZeroRateManagerId, d3 as mapConversionRatesToOnchainMinRate, dy as normalizeRateManagerId, dz as normalizeRegistry, dk as parseDepositView, dl as parseIntentView, ab as readDisputeAttestationConfig } from './vaultUtils-DVps_hg9.mjs';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
5
  export { DisputeActionTypeByPlatform, DisputeAttestationOutput, DisputeAttestationOutputFor, DisputeDetails, DisputePlatform, IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient, verifyDisputeAttestation } from '@zkp2p/zkp2p-attestation';
@@ -320,6 +320,7 @@ declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSelle
320
320
  authorizationToken?: string;
321
321
  signal?: AbortSignal;
322
322
  }): Promise<CuratorSellerCredentialUploadResponse>;
323
+ declare function apiGetSellerCredentialStatus(processorName: SellerPlatform, payeeDetails: Hash, baseApiUrl: string, timeoutMs?: number): Promise<CuratorSellerCredentialStatusResponse>;
323
324
  declare function apiGetOrderbook(params: GetOrderbookParams, opts: ApiAdapterOptions): Promise<GetOrderbookResponse>;
324
325
  declare function apiGetOrderbook(params: GetOrderbookParams, baseApiUrl: string, timeoutMs?: number): Promise<GetOrderbookResponse>;
325
326
  declare function apiGetOrderbookTable(params: GetOrderbookParams, opts: ApiAdapterOptions): Promise<GetOrderbookTableResponse>;
@@ -952,4 +953,20 @@ declare class ContractError extends ZKP2PError {
952
953
  constructor(message: string, details?: unknown);
953
954
  }
954
955
 
955
- 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, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, 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, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
956
+ declare class VenmoGmailConnectError extends Error {
957
+ readonly code: string;
958
+ constructor(code: string, message: string);
959
+ }
960
+ type VenmoGmailConnectResult = {
961
+ payeeDetails: Hash;
962
+ };
963
+ /** Build a Peer-hosted link for an already-registered Venmo maker. */
964
+ declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, }: {
965
+ payeeDetails: Hash;
966
+ /** Matching Peer web origin. HTTP is allowed only on localhost for development. */
967
+ peerOrigin?: string;
968
+ }): string;
969
+ /** Call from a click handler. Rejects on cancellation or verification failure, including missing Venmo receipts. */
970
+ declare function openVenmoGmailConnect(options: Parameters<typeof getVenmoGmailConnectUrl>[0]): Promise<VenmoGmailConnectResult>;
971
+
972
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialStatusResponse, 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, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, SellerPlatform, 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, VenmoGmailConnectError, type VenmoGmailConnectResult, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetSellerCredentialStatus, 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, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, 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-D3J7IDTF.js';
2
- export { dI as AccessPolicyOperations, dJ as AccessPolicyUnsupportedError, am as ActionCallback, b6 as AmazonPayCredentialUploadInput, b7 as AmazonPayIdentityAttestationOutput, aR as ApiDeposit, aY as ApiIntentStatus, bz as AttestationServiceSellerCredentialProbeResponse, ak as AuthorizationTokenProvider, dF as BatchResult, ax as BestByPlatformResponseObject, bA as BuyerTeePaymentParams, bB as BuyerTeePaymentProofInput, bC as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, aw as CancelIntentParams, bh as CashAppCredentialUploadInput, b9 as CashAppSessionMaterial, aq as CreateDepositConversionRate, ap as CreateDepositParams, bD as CuratorSellerCredentialStatusResponse, bE as CuratorSellerVerifyResponse, cZ as Currency, d4 as CurrencyData, df as DISPUTE_PROTECTION_POLICY_ABI, dE as DelegationDepositTarget, dC as DelegationRoute, dD as DelegationState, dq as Deposit, ds as DepositCurrency, bY as DepositIntentStatistics, aU as DepositStatus, aS as DepositVerifier, aT as DepositVerifierCurrency, bV as DepositVerifierData, dp as DepositView, aa as DisputeAttestationConfig, ct as DisputeProtectionIntentPage, cu as DisputeProtectionIntentPageParams, ab as DisputeProtectionReadinessOptions, ac as DisputeProtectionReadinessResult, aN as FiatResponse, by as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, au as FulfillIntentParams, ay as GetBestByPlatformResponse, az as GetBestByPlatformResponseObject, aV as GetDepositByIdRequest, aW as GetDepositByIdResponse, b1 as GetIntentByHashRequest, b2 as GetIntentByHashResponse, a$ as GetIntentsByDepositRequest, b0 as GetIntentsByDepositResponse, aD as GetNearbyQuote, aE as GetNearbySuggestions, aZ as GetOwnerIntentsRequest, a_ as GetOwnerIntentsResponse, aA as GetPlatformQuote, aF as GetQuoteResponse, aG as GetQuoteResponseObject, aH as GetQuoteSingleResponse, bJ as GetSellerCredentialStatusParams, bO as IdentityAttestationActionType, bP as IdentityAttestationOutput, bQ as IdentityAttestationOutputFor, bR as IdentityAttestationParams, cv as IndexedDisputeProtectionIntent, cw as IndexedPage, cx as IndexedPageAsOf, cy as IndexedRiskWindow, cz as IndexedStakeActivity, cA as IndexedStakeLock, cB as IndexedStakingRowFreshness, cC as IndexedStakingState, cD as IndexedStakingStateParams, cE as IndexedTakerAuthorization, cF as IndexedTakerStakeAuthorization, c2 as IndexerClient, cT as IndexerDeploymentEnv, ca as IndexerDeposit, cr as IndexerDepositDailySnapshot, cK as IndexerDepositFilter, cq as IndexerDepositFundActivity, cs as IndexerDepositFundActivityType, cN as IndexerDepositOrderDirection, cM as IndexerDepositOrderField, cL as IndexerDepositPagination, cd as IndexerDepositPaymentMethod, c4 as IndexerDepositService, cW as IndexerFulfillmentAndPaymentResponse, cU as IndexerFulfillmentRecord, cb as IndexerIntentFulfilled, cc as IndexerIntentFulfillmentAmounts, cf as IndexerIntentStatus, cj as IndexerManagerAggregateStats, cl as IndexerManagerDailySnapshot, ck as IndexerManagerStats, co as IndexerManualRateUpdate, ce as IndexerMethodCurrency, cp as IndexerOracleConfigUpdate, cV as IndexerPaymentVerifiedRecord, cg as IndexerRateManager, ci as IndexerRateManagerDelegation, cQ as IndexerRateManagerDelegationPagination, cn as IndexerRateManagerDetail, cO as IndexerRateManagerFilter, cm as IndexerRateManagerListItem, cS as IndexerRateManagerOrderDirection, cR as IndexerRateManagerOrderField, cP as IndexerRateManagerPagination, ch as IndexerRateManagerRate, c5 as IndexerRateManagerService, c8 as IndexerStakingService, aX as Intent, ai as IntentGuardianErrorCode, ae as IntentGuardianPolicy, af as IntentGuardianQuote, ag as IntentGuardianWriteFunction, ah as IntentGuardianWriteParams, du as IntentView, bS as MakerIdentityAttestationRequestBody, bT as MakerIdentityPlatform, aP as NearbyQuote, aQ as NearbySuggestions, de as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bU as OnchainCurrency, dv as OnchainIntent, bX as OrderStats, c0 as OrderbookEntry, c1 as OrderbookTableRow, cX as PAYMENT_PLATFORMS, be as PayPalGoogleOAuthSellerCredentialUploadBody, dr as PaymentMethodData, cY as PaymentPlatformType, aB as PlatformQuote, bW as PreparedTransaction, aM as QuoteFeesResponse, aL as QuoteIntentResponse, aJ as QuoteMakerIdentity, aC as QuotePreference, aI as QuoteResponseObject, aK as QuoteSingleResponse, ar as Range, ad as ReadDisputeAttestationConfigParams, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, dt as ReferralFee, Y as ReferralReadOptions, an as ReferralRedemption, ao as ReferralSignatureBody, _ as ReferralSignatureOptions, b3 as RegisterPayeeDetailsRequest, b4 as RegisterPayeeDetailsResponse, bF as RegisteredSellerCredentialPlatform, bH as RegisteredUploadSellerCredentialParams, av as ReleaseFundsToPayerParams, dh as RuntimeEnv, dg as STAKE_VAULT_ABI, bw as SellerAttestationOutput, bk as SellerCiphertextBundle, bp as SellerCredentialBundleUpload, bx as SellerCredentialProbeResponse, br as SellerCredentialStatus, bq as SellerCredentialStatusValue, bj as SellerCredentialUploadInputByPlatform, bv as SellerPaymentTypedDataValue, b5 as SellerPlatform, bo as SellerProbeInput, bl as SellerSignedCiphertextBundle, bt as SellerTypedDataField, bu as SellerTypedDataSpec, bn as SellerVerifyInput, bm as SellerVerifyIntentDetails, bs as SellerVerifyProxyBody, dH as SendBatchFn, dG as SendTransactionFn, a1 as SignalIntentMethodParams, at as SignalIntentParams, a0 as SignalIntentReferralFee, cG as StakeActivityPageParams, b_ as StakeEnvironment, cH as StakeLockPageParams, a6 as StakeVaultState, a7 as StakeVaultWriteFunction, a8 as StakeVaultWriteParams, cI as StakingEntityIds, cJ as TakerStakeAuthorizationPageParams, b$ as TakerStakeBalances, al as TimeoutConfig, aO as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bM as UploadGoogleOAuthSellerCredentialParams, bK as UploadPayPalGoogleOAuthSellerCredentialParams, bI as UploadSellerCredentialOptions, bG as UploadSellerCredentialParams, bL as UploadVenmoGoogleOAuthSellerCredentialParams, bZ as UsdcAmount, dj as V2ContractAbis, di as V2ContractAddresses, bg as VenmoCredentialUploadInput, bf as VenmoGoogleOAuthSellerCredentialUploadBody, b8 as VenmoSessionMaterial, bN as VerifySellerPaymentParams, bi as WiseCredentialUploadInput, bb as WiseProfileInfo, bd as WiseProfileNotFound, bc as WiseProfileSelectionRequired, ba as WiseSessionMaterial, as as WithdrawDepositParams, dw as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, c7 as buildStakingEntityIds, dB as classifyDelegationState, aj as classifyIntentGuardianError, c6 as compareEventCursorIdsByRecency, c_ as currencyInfo, c3 as defaultIndexerEndpoint, dm as enrichPvDepositView, dn as enrichPvIntentView, c9 as fetchIndexerFulfillmentAndPayment, d5 as getContracts, d1 as getCurrencyCodeFromHash, d0 as getCurrencyInfoFromCountryCode, c$ as getCurrencyInfoFromHash, dA as getDelegationRoute, db as getDisputeProtectionPolicyContract, dd as getGatingServiceAddress, d6 as getIntentGuardianContract, da as getOrchestratorV3Contract, dc as getPaymentMethodsCatalog, d8 as getRateManagerContracts, d9 as getStakeVaultContract, d7 as hasIntentGuardian, d2 as isSupportedCurrencyHash, dx as isZeroRateManagerId, d3 as mapConversionRatesToOnchainMinRate, dy as normalizeRateManagerId, dz as normalizeRegistry, dk as parseDepositView, dl as parseIntentView, a9 as readDisputeAttestationConfig } from './vaultUtils-D3J7IDTF.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, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as GetOrderbookTableResponse, N as QuoteRequest, O as QuoteResponse, T as CuratorMetadata, W as CurrencyType, X as PaymentMethodCatalog, Y as TxOverrides } from './vaultUtils-DVps_hg9.js';
2
+ export { dI as AccessPolicyOperations, dJ as AccessPolicyUnsupportedError, ao as ActionCallback, b7 as AmazonPayCredentialUploadInput, b8 as AmazonPayIdentityAttestationOutput, aT as ApiDeposit, a_ as ApiIntentStatus, bA as AttestationServiceSellerCredentialProbeResponse, am as AuthorizationTokenProvider, dF as BatchResult, az as BestByPlatformResponseObject, bB as BuyerTeePaymentParams, bC as BuyerTeePaymentProofInput, bD as BuyerTeeSessionMaterial, a5 as CancelIntentMethodParams, ay as CancelIntentParams, bi as CashAppCredentialUploadInput, ba as CashAppSessionMaterial, as as CreateDepositConversionRate, ar as CreateDepositParams, bE as CuratorSellerVerifyResponse, cZ as Currency, d4 as CurrencyData, df as DISPUTE_PROTECTION_POLICY_ABI, dE as DelegationDepositTarget, dC as DelegationRoute, dD as DelegationState, dq as Deposit, ds as DepositCurrency, bY as DepositIntentStatistics, aW as DepositStatus, aU as DepositVerifier, aV as DepositVerifierCurrency, bV as DepositVerifierData, dp as DepositView, ac as DisputeAttestationConfig, ct as DisputeProtectionIntentPage, cu as DisputeProtectionIntentPageParams, ad as DisputeProtectionReadinessOptions, ae as DisputeProtectionReadinessResult, aP as FiatResponse, bz as FulfillIntentAttestationResponse, a4 as FulfillIntentMethodParams, aw as FulfillIntentParams, aA as GetBestByPlatformResponse, aB as GetBestByPlatformResponseObject, aX as GetDepositByIdRequest, aY as GetDepositByIdResponse, b3 as GetIntentByHashRequest, b4 as GetIntentByHashResponse, b1 as GetIntentsByDepositRequest, b2 as GetIntentsByDepositResponse, aF as GetNearbyQuote, aG as GetNearbySuggestions, a$ as GetOwnerIntentsRequest, b0 as GetOwnerIntentsResponse, aC as GetPlatformQuote, aH as GetQuoteResponse, aI as GetQuoteResponseObject, aJ as GetQuoteSingleResponse, bJ as GetSellerCredentialStatusParams, bO as IdentityAttestationActionType, bP as IdentityAttestationOutput, bQ as IdentityAttestationOutputFor, bR as IdentityAttestationParams, cv as IndexedDisputeProtectionIntent, cw as IndexedPage, cx as IndexedPageAsOf, cy as IndexedRiskWindow, cz as IndexedStakeActivity, cA as IndexedStakeLock, cB as IndexedStakingRowFreshness, cC as IndexedStakingState, cD as IndexedStakingStateParams, cE as IndexedTakerAuthorization, cF as IndexedTakerStakeAuthorization, c2 as IndexerClient, cT as IndexerDeploymentEnv, ca as IndexerDeposit, cr as IndexerDepositDailySnapshot, cK as IndexerDepositFilter, cq as IndexerDepositFundActivity, cs as IndexerDepositFundActivityType, cN as IndexerDepositOrderDirection, cM as IndexerDepositOrderField, cL as IndexerDepositPagination, cd as IndexerDepositPaymentMethod, c4 as IndexerDepositService, cW as IndexerFulfillmentAndPaymentResponse, cU as IndexerFulfillmentRecord, cb as IndexerIntentFulfilled, cc as IndexerIntentFulfillmentAmounts, cf as IndexerIntentStatus, cj as IndexerManagerAggregateStats, cl as IndexerManagerDailySnapshot, ck as IndexerManagerStats, co as IndexerManualRateUpdate, ce as IndexerMethodCurrency, cp as IndexerOracleConfigUpdate, cV as IndexerPaymentVerifiedRecord, cg as IndexerRateManager, ci as IndexerRateManagerDelegation, cQ as IndexerRateManagerDelegationPagination, cn as IndexerRateManagerDetail, cO as IndexerRateManagerFilter, cm as IndexerRateManagerListItem, cS as IndexerRateManagerOrderDirection, cR as IndexerRateManagerOrderField, cP as IndexerRateManagerPagination, ch as IndexerRateManagerRate, c5 as IndexerRateManagerService, c8 as IndexerStakingService, aZ as Intent, ak as IntentGuardianErrorCode, ag as IntentGuardianPolicy, ah as IntentGuardianQuote, ai as IntentGuardianWriteFunction, aj as IntentGuardianWriteParams, du as IntentView, bS as MakerIdentityAttestationRequestBody, bT as MakerIdentityPlatform, aR as NearbyQuote, aS as NearbySuggestions, de as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bU as OnchainCurrency, dv as OnchainIntent, bX as OrderStats, c0 as OrderbookEntry, c1 as OrderbookTableRow, cX as PAYMENT_PLATFORMS, bf as PayPalGoogleOAuthSellerCredentialUploadBody, dr as PaymentMethodData, cY as PaymentPlatformType, aD as PlatformQuote, bW as PreparedTransaction, aO as QuoteFeesResponse, aN as QuoteIntentResponse, aL as QuoteMakerIdentity, aE as QuotePreference, aK as QuoteResponseObject, aM as QuoteSingleResponse, at as Range, af as ReadDisputeAttestationConfigParams, a1 as RedeemReferralCodeSignatureOptions, _ as ReferralBearerWriteOptions, dt as ReferralFee, $ as ReferralReadOptions, ap as ReferralRedemption, aq as ReferralSignatureBody, a0 as ReferralSignatureOptions, b5 as RegisterPayeeDetailsRequest, b6 as RegisterPayeeDetailsResponse, bF as RegisteredSellerCredentialPlatform, bH as RegisteredUploadSellerCredentialParams, ax as ReleaseFundsToPayerParams, dh as RuntimeEnv, dg as STAKE_VAULT_ABI, bx as SellerAttestationOutput, bl as SellerCiphertextBundle, bq as SellerCredentialBundleUpload, by as SellerCredentialProbeResponse, bs as SellerCredentialStatus, br as SellerCredentialStatusValue, bk as SellerCredentialUploadInputByPlatform, bw as SellerPaymentTypedDataValue, bp as SellerProbeInput, bm as SellerSignedCiphertextBundle, bu as SellerTypedDataField, bv as SellerTypedDataSpec, bo as SellerVerifyInput, bn as SellerVerifyIntentDetails, bt as SellerVerifyProxyBody, dH as SendBatchFn, dG as SendTransactionFn, a3 as SignalIntentMethodParams, av as SignalIntentParams, a2 as SignalIntentReferralFee, cG as StakeActivityPageParams, b_ as StakeEnvironment, cH as StakeLockPageParams, a8 as StakeVaultState, a9 as StakeVaultWriteFunction, aa as StakeVaultWriteParams, cI as StakingEntityIds, cJ as TakerStakeAuthorizationPageParams, b$ as TakerStakeBalances, an as TimeoutConfig, aQ as TokenResponse, a6 as UpdateReferralCodeSignatureOptions, bM as UploadGoogleOAuthSellerCredentialParams, bK as UploadPayPalGoogleOAuthSellerCredentialParams, bI as UploadSellerCredentialOptions, bG as UploadSellerCredentialParams, bL as UploadVenmoGoogleOAuthSellerCredentialParams, bZ as UsdcAmount, dj as V2ContractAbis, di as V2ContractAddresses, bh as VenmoCredentialUploadInput, bg as VenmoGoogleOAuthSellerCredentialUploadBody, b9 as VenmoSessionMaterial, bN as VerifySellerPaymentParams, bj as WiseCredentialUploadInput, bc as WiseProfileInfo, be as WiseProfileNotFound, bd as WiseProfileSelectionRequired, bb as WiseSessionMaterial, au as WithdrawDepositParams, dw as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a7 as Zkp2pClientOptions, c7 as buildStakingEntityIds, dB as classifyDelegationState, al as classifyIntentGuardianError, c6 as compareEventCursorIdsByRecency, c_ as currencyInfo, c3 as defaultIndexerEndpoint, dm as enrichPvDepositView, dn as enrichPvIntentView, c9 as fetchIndexerFulfillmentAndPayment, d5 as getContracts, d1 as getCurrencyCodeFromHash, d0 as getCurrencyInfoFromCountryCode, c$ as getCurrencyInfoFromHash, dA as getDelegationRoute, db as getDisputeProtectionPolicyContract, dd as getGatingServiceAddress, d6 as getIntentGuardianContract, da as getOrchestratorV3Contract, dc as getPaymentMethodsCatalog, d8 as getRateManagerContracts, d9 as getStakeVaultContract, d7 as hasIntentGuardian, d2 as isSupportedCurrencyHash, dx as isZeroRateManagerId, d3 as mapConversionRatesToOnchainMinRate, dy as normalizeRateManagerId, dz as normalizeRegistry, dk as parseDepositView, dl as parseIntentView, ab as readDisputeAttestationConfig } from './vaultUtils-DVps_hg9.js';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
5
  export { DisputeActionTypeByPlatform, DisputeAttestationOutput, DisputeAttestationOutputFor, DisputeDetails, DisputePlatform, IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient, verifyDisputeAttestation } from '@zkp2p/zkp2p-attestation';
@@ -320,6 +320,7 @@ declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSelle
320
320
  authorizationToken?: string;
321
321
  signal?: AbortSignal;
322
322
  }): Promise<CuratorSellerCredentialUploadResponse>;
323
+ declare function apiGetSellerCredentialStatus(processorName: SellerPlatform, payeeDetails: Hash, baseApiUrl: string, timeoutMs?: number): Promise<CuratorSellerCredentialStatusResponse>;
323
324
  declare function apiGetOrderbook(params: GetOrderbookParams, opts: ApiAdapterOptions): Promise<GetOrderbookResponse>;
324
325
  declare function apiGetOrderbook(params: GetOrderbookParams, baseApiUrl: string, timeoutMs?: number): Promise<GetOrderbookResponse>;
325
326
  declare function apiGetOrderbookTable(params: GetOrderbookParams, opts: ApiAdapterOptions): Promise<GetOrderbookTableResponse>;
@@ -952,4 +953,20 @@ declare class ContractError extends ZKP2PError {
952
953
  constructor(message: string, details?: unknown);
953
954
  }
954
955
 
955
- 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, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, 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, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
956
+ declare class VenmoGmailConnectError extends Error {
957
+ readonly code: string;
958
+ constructor(code: string, message: string);
959
+ }
960
+ type VenmoGmailConnectResult = {
961
+ payeeDetails: Hash;
962
+ };
963
+ /** Build a Peer-hosted link for an already-registered Venmo maker. */
964
+ declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, }: {
965
+ payeeDetails: Hash;
966
+ /** Matching Peer web origin. HTTP is allowed only on localhost for development. */
967
+ peerOrigin?: string;
968
+ }): string;
969
+ /** Call from a click handler. Rejects on cancellation or verification failure, including missing Venmo receipts. */
970
+ declare function openVenmoGmailConnect(options: Parameters<typeof getVenmoGmailConnectUrl>[0]): Promise<VenmoGmailConnectResult>;
971
+
972
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialStatusResponse, 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, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, SellerPlatform, 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, VenmoGmailConnectError, type VenmoGmailConnectResult, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetSellerCredentialStatus, 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, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
package/dist/index.mjs CHANGED
@@ -2,11 +2,11 @@ import { IntentGuardianOperations } from './chunk-YA67SM3A.mjs';
2
2
  export { ZERO_RATE_MANAGER_ID, classifyDelegationState, classifyIntentGuardianError, getDelegationRoute, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-YA67SM3A.mjs';
3
3
  import { NetworkError, ValidationError, APIError } from './chunk-3J4FPMPW.mjs';
4
4
  export { APIError, ContractError, ErrorCode, NetworkError, ValidationError, ZKP2PError } from './chunk-3J4FPMPW.mjs';
5
- import { OrchestratorRegistry_default, DISPUTE_PROTECTION_POLICY_ABI, DisputeProtectionPolicy_default, METHOD_NAME_TO_HASH, matchesQuotePaymentMethod, matchesPaymentMethodNameAndHash, MultiAttestationVerifier_default, getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, SUPPORTED_PAYMENT_METHOD_HASHES, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash, OrchestratorV3_default, DisputeNullifierRegistry_default, DisputeVerifier_default, WhitelistPolicy_default, StakeVault_default, IntentLifecycleHookV1_default } from './chunk-DPMEQLSY.mjs';
6
- export { DISPUTE_PROTECTION_POLICY_ABI2 as DISPUTE_PROTECTION_POLICY_ABI, ORCHESTRATOR_V3_ABI, PAYMENT_PLATFORMS, STAKE_VAULT_ABI, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getDisputeProtectionPolicyContract, getGatingServiceAddress, getIntentGuardianContract, getOrchestratorV3Contract, getPaymentMethodsCatalog, getRateManagerContracts, getStakeVaultContract, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-DPMEQLSY.mjs';
5
+ import { OrchestratorRegistry_default, DISPUTE_PROTECTION_POLICY_ABI, DisputeProtectionPolicy_default, METHOD_NAME_TO_HASH, matchesQuotePaymentMethod, matchesPaymentMethodNameAndHash, MultiAttestationVerifier_default, getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, SUPPORTED_PAYMENT_METHOD_HASHES, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash, OrchestratorV3_default, DisputeNullifierRegistry_default, DisputeVerifier_default, WhitelistPolicy_default, StakeVault_default, IntentLifecycleHookV1_default } from './chunk-4SDRVKB5.mjs';
6
+ export { DISPUTE_PROTECTION_POLICY_ABI2 as DISPUTE_PROTECTION_POLICY_ABI, ORCHESTRATOR_V3_ABI, PAYMENT_PLATFORMS, STAKE_VAULT_ABI, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getDisputeProtectionPolicyContract, getGatingServiceAddress, getIntentGuardianContract, getOrchestratorV3Contract, getPaymentMethodsCatalog, getRateManagerContracts, getStakeVaultContract, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-4SDRVKB5.mjs';
7
7
  import { Currency, currencyKeccak256 } from './chunk-ZB22BZLZ.mjs';
8
8
  export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-ZB22BZLZ.mjs';
9
- import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-EDYYWCCJ.mjs';
9
+ import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-U555K2CU.mjs';
10
10
  import { keccak256, concatHex, encodeFunctionData, encodeAbiParameters, createPublicClient, http, isAddress, zeroAddress, formatUnits } from 'viem';
11
11
  import { hardhat, base } from 'viem/chains';
12
12
  import { createEncryptedBuyerTeeSessionMaterial as createEncryptedBuyerTeeSessionMaterial$1, createEncryptedSellerCredentialUpload } from '@zkp2p/zkp2p-attestation';
@@ -357,7 +357,7 @@ async function withRetry(fn, maxRetries = 3, delayMs = 1e3, timeoutMs, shouldRet
357
357
  for (let i = 0; i < maxRetries; i++) {
358
358
  try {
359
359
  if (timeoutMs) {
360
- const { withTimeout } = await import('./timeout-QRO3IS4N.mjs');
360
+ const { withTimeout } = await import('./timeout-N6XHXQRU.mjs');
361
361
  return await withTimeout(fn(), timeoutMs, `Operation timed out after ${timeoutMs}ms`);
362
362
  }
363
363
  return await fn();
@@ -1927,7 +1927,7 @@ var ProtocolViewerReader = class {
1927
1927
  if (inputCount === null) {
1928
1928
  throw new Error("Configured ProtocolViewer ABI does not expose getDeposit");
1929
1929
  }
1930
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-4BJOG6JG.mjs');
1930
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-EOX3VQES.mjs');
1931
1931
  if (inputCount >= 3) {
1932
1932
  return tryContexts(
1933
1933
  protocolViewerContexts,
@@ -2013,7 +2013,7 @@ var ProtocolViewerReader = class {
2013
2013
  return Promise.all(ids.map((id) => this.config.host.getPvDepositById(id)));
2014
2014
  }
2015
2015
  const bn = ids.map((id) => typeof id === "bigint" ? id : parseRawDepositId(id));
2016
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-4BJOG6JG.mjs');
2016
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-EOX3VQES.mjs');
2017
2017
  if (inputCount >= 2) {
2018
2018
  const requests = ids.map((id, index) => ({
2019
2019
  index,
@@ -2118,7 +2118,7 @@ var ProtocolViewerReader = class {
2118
2118
  if (!protocolViewerAddress || !protocolViewerAbi || inputCount === null) {
2119
2119
  return this.config.host.getPvAccountDepositsFromIndexer(owner);
2120
2120
  }
2121
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-4BJOG6JG.mjs');
2121
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-EOX3VQES.mjs');
2122
2122
  const { address, abi } = this.config.host.requireProtocolViewer();
2123
2123
  if (inputCount >= 2) {
2124
2124
  const readAndFilter = async (raw2) => {
@@ -2189,7 +2189,7 @@ var ProtocolViewerReader = class {
2189
2189
  if (protocolViewerEntries.length === 0) {
2190
2190
  throw new Error("ProtocolViewer not available for this network");
2191
2191
  }
2192
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-4BJOG6JG.mjs');
2192
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-EOX3VQES.mjs');
2193
2193
  const intentsByHash = /* @__PURE__ */ new Map();
2194
2194
  let attemptedRead = false;
2195
2195
  let hadSuccessfulRead = false;
@@ -2297,7 +2297,7 @@ var ProtocolViewerReader = class {
2297
2297
  if (protocolViewerEntries.length === 0) {
2298
2298
  throw new Error("ProtocolViewer not available for this network");
2299
2299
  }
2300
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-4BJOG6JG.mjs');
2300
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-EOX3VQES.mjs');
2301
2301
  let lastError;
2302
2302
  for (const pvEntry of protocolViewerEntries) {
2303
2303
  const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");
@@ -5457,7 +5457,9 @@ async function apiUploadGoogleOAuthSellerCredential(processorName, payeeDetails,
5457
5457
  method: "POST",
5458
5458
  body,
5459
5459
  authorizationToken: opts?.authorizationToken,
5460
- signal: controller.signal
5460
+ signal: controller.signal,
5461
+ // A lost response may already have consumed the one-time Google code.
5462
+ retryCount: 1
5461
5463
  });
5462
5464
  } catch (error) {
5463
5465
  if (timedOut) throw new Error("Google OAuth upload timed out.");
@@ -11539,7 +11541,7 @@ var Zkp2pClient = class {
11539
11541
  }
11540
11542
  }
11541
11543
  });
11542
- const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-C5E6NVSR.mjs');
11544
+ const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-54OSWCWH.mjs');
11543
11545
  currencies = mapConversionRatesToOnchainMinRate2(
11544
11546
  params.conversionRates,
11545
11547
  paymentMethods.length
@@ -11976,19 +11978,7 @@ var Zkp2pClient = class {
11976
11978
  opts?.baseApiUrl ?? this.baseApiUrl ?? DEFAULT_BASE_API_URL
11977
11979
  );
11978
11980
  const timeoutMs = opts?.timeoutMs ?? this.apiTimeoutMs;
11979
- const getUploadOptions = async () => {
11980
- let authorizationToken;
11981
- try {
11982
- authorizationToken = await this.resolveAuthorizationToken();
11983
- } catch {
11984
- authorizationToken = void 0;
11985
- }
11986
- return {
11987
- timeoutMs,
11988
- ...opts?.signal ? { signal: opts.signal } : {},
11989
- ...authorizationToken ? { authorizationToken } : {}
11990
- };
11991
- };
11981
+ const authorizationToken = await this.resolveAuthorizationToken();
11992
11982
  const body = {
11993
11983
  authorizationCode: params.authorizationCode,
11994
11984
  redirectUri: params.redirectUri
@@ -11998,7 +11988,11 @@ var Zkp2pClient = class {
11998
11988
  params.payeeDetails,
11999
11989
  params.platform === "paypal" ? { ...body, payeeEmail: params.payeeEmail } : body,
12000
11990
  baseApiUrl,
12001
- await getUploadOptions()
11991
+ {
11992
+ timeoutMs,
11993
+ ...opts?.signal ? { signal: opts.signal } : {},
11994
+ ...authorizationToken ? { authorizationToken } : {}
11995
+ }
12002
11996
  );
12003
11997
  }
12004
11998
  /**
@@ -12257,6 +12251,97 @@ function selectRiskMode(amount, freeStake, disputeProtected) {
12257
12251
  throw new RangeError("insufficient free stake for dispute-protected admission");
12258
12252
  }
12259
12253
 
12260
- export { AccessPolicyOperations, AccessPolicyUnsupportedError, BASE_BUILDER_CODE, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractRouter, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, IndexerClient, IndexerDepositService, IndexerRateManagerService, IndexerStakingService, Zkp2pClient as OfframpClient, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, TOKEN_METADATA, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, Zkp2pClient, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, assertValidReferrerFeeConfig, buildStakingEntityIds, calculateRequiredCoverage, calculateStakeBackedCapacity, compareEventCursorIdsByRecency, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, defaultIndexerEndpoint, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, fetchFulfillmentAndPayment as fetchIndexerFulfillmentAndPayment, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, readDisputeAttestationConfig, referrerFeeConfigToPreciseUnits, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
12254
+ // src/venmoGmail.ts
12255
+ var VenmoGmailConnectError = class extends Error {
12256
+ constructor(code, message) {
12257
+ super(message);
12258
+ this.code = code;
12259
+ this.name = "VenmoGmailConnectError";
12260
+ }
12261
+ };
12262
+ function getVenmoGmailConnectUrl({
12263
+ payeeDetails,
12264
+ peerOrigin = "https://app.peer.xyz"
12265
+ }) {
12266
+ if (!/^0x[0-9a-f]{64}$/i.test(payeeDetails)) {
12267
+ throw new ValidationError("Expected a Venmo payee hash", "payeeDetails");
12268
+ }
12269
+ let origin;
12270
+ try {
12271
+ origin = new URL(peerOrigin);
12272
+ } catch {
12273
+ throw new ValidationError("Expected an HTTPS Peer web origin", "peerOrigin");
12274
+ }
12275
+ if (origin.protocol !== "https:" && !(origin.protocol === "http:" && origin.hostname === "localhost") || origin.pathname !== "/" || origin.search || origin.hash || origin.username || origin.password) {
12276
+ throw new ValidationError("Expected an HTTPS Peer web origin", "peerOrigin");
12277
+ }
12278
+ const url = new URL("/connect/venmo", origin);
12279
+ url.hash = payeeDetails;
12280
+ return url.toString();
12281
+ }
12282
+ function openVenmoGmailConnect(options) {
12283
+ const url = new URL(getVenmoGmailConnectUrl(options));
12284
+ const requestId = window.crypto.randomUUID();
12285
+ url.searchParams.set("requestId", requestId);
12286
+ url.searchParams.set("hostOrigin", window.location.origin);
12287
+ return new Promise((resolve, reject) => {
12288
+ let popup;
12289
+ try {
12290
+ const features = window.matchMedia("(max-width: 600px)").matches ? void 0 : "popup,width=500,height=700";
12291
+ popup = window.open(url.toString(), "_blank", features);
12292
+ } catch {
12293
+ popup = null;
12294
+ }
12295
+ if (!popup) {
12296
+ reject(
12297
+ new VenmoGmailConnectError(
12298
+ "popup_blocked",
12299
+ "Allow popups for this site, then link Venmo again."
12300
+ )
12301
+ );
12302
+ return;
12303
+ }
12304
+ const finish = (error) => {
12305
+ window.removeEventListener("message", onMessage);
12306
+ window.clearTimeout(timeout);
12307
+ window.clearInterval(closedCheck);
12308
+ if (error) reject(error);
12309
+ else resolve({ payeeDetails: options.payeeDetails });
12310
+ };
12311
+ const onMessage = (event) => {
12312
+ if (event.origin !== url.origin || event.source !== popup) return;
12313
+ const data3 = event.data;
12314
+ if (typeof data3 !== "object" || !data3) return;
12315
+ const result = data3;
12316
+ if (result.type !== "peer:venmo-connect" || result.requestId !== requestId) return;
12317
+ if (result.status === "connected" && typeof result.payeeDetails === "string" && result.payeeDetails.toLowerCase() === options.payeeDetails.toLowerCase()) {
12318
+ finish();
12319
+ } else if (result.status === "error" && typeof result.code === "string" && typeof result.message === "string") {
12320
+ finish(new VenmoGmailConnectError(result.code, result.message));
12321
+ }
12322
+ };
12323
+ const timeout = window.setTimeout(
12324
+ () => finish(
12325
+ new VenmoGmailConnectError(
12326
+ "connection_timeout",
12327
+ "Venmo linking timed out. Check the connection status before trying again."
12328
+ )
12329
+ ),
12330
+ 10 * 60 * 1e3
12331
+ );
12332
+ const closedCheck = window.setInterval(() => {
12333
+ if (popup.closed)
12334
+ finish(
12335
+ new VenmoGmailConnectError(
12336
+ "connection_closed",
12337
+ "The linking window closed or became unavailable. Check the connection status before trying again."
12338
+ )
12339
+ );
12340
+ }, 500);
12341
+ window.addEventListener("message", onMessage);
12342
+ });
12343
+ }
12344
+
12345
+ export { AccessPolicyOperations, AccessPolicyUnsupportedError, BASE_BUILDER_CODE, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractRouter, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, IndexerClient, IndexerDepositService, IndexerRateManagerService, IndexerStakingService, Zkp2pClient as OfframpClient, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, TOKEN_METADATA, VenmoGmailConnectError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, Zkp2pClient, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetSellerCredentialStatus, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, assertValidReferrerFeeConfig, buildStakingEntityIds, calculateRequiredCoverage, calculateStakeBackedCapacity, compareEventCursorIdsByRecency, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, defaultIndexerEndpoint, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, fetchFulfillmentAndPayment as fetchIndexerFulfillmentAndPayment, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, peerExtensionSdk, readDisputeAttestationConfig, referrerFeeConfigToPreciseUnits, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
12261
12346
  //# sourceMappingURL=index.mjs.map
12262
12347
  //# sourceMappingURL=index.mjs.map