@zkp2p/sdk 0.14.2 → 0.14.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, 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';
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-CK4ph-vu.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-CK4ph-vu.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';
@@ -1001,14 +1001,16 @@ type VenmoGmailConnectResult = {
1001
1001
  payeeDetails: Hash;
1002
1002
  };
1003
1003
  /** Build a Peer-hosted link for an already-registered Venmo maker. */
1004
- declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, appearance, }: {
1004
+ declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, appearance, returnUrl, }: {
1005
1005
  payeeDetails: Hash;
1006
1006
  /** Matching Peer web origin. HTTP is allowed only on localhost for development. */
1007
1007
  peerOrigin?: string;
1008
1008
  appearance?: VenmoGmailAppearance;
1009
+ /** Optional app callback URI. Native hosts open the URL themselves; empty means no redirect. */
1010
+ returnUrl?: string;
1009
1011
  }): string;
1010
1012
  /** Call from a click handler. Rejects on cancellation or verification failure, including missing Venmo receipts. */
1011
- declare function openVenmoGmailConnect(options: Parameters<typeof getVenmoGmailConnectUrl>[0] & {
1013
+ declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoGmailConnectUrl>[0], 'returnUrl'> & {
1012
1014
  popup?: VenmoGmailPopupOptions;
1013
1015
  }): Promise<VenmoGmailConnectResult>;
1014
1016
 
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, 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';
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-CK4ph-vu.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-CK4ph-vu.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';
@@ -1001,14 +1001,16 @@ type VenmoGmailConnectResult = {
1001
1001
  payeeDetails: Hash;
1002
1002
  };
1003
1003
  /** Build a Peer-hosted link for an already-registered Venmo maker. */
1004
- declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, appearance, }: {
1004
+ declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, appearance, returnUrl, }: {
1005
1005
  payeeDetails: Hash;
1006
1006
  /** Matching Peer web origin. HTTP is allowed only on localhost for development. */
1007
1007
  peerOrigin?: string;
1008
1008
  appearance?: VenmoGmailAppearance;
1009
+ /** Optional app callback URI. Native hosts open the URL themselves; empty means no redirect. */
1010
+ returnUrl?: string;
1009
1011
  }): string;
1010
1012
  /** Call from a click handler. Rejects on cancellation or verification failure, including missing Venmo receipts. */
1011
- declare function openVenmoGmailConnect(options: Parameters<typeof getVenmoGmailConnectUrl>[0] & {
1013
+ declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoGmailConnectUrl>[0], 'returnUrl'> & {
1012
1014
  popup?: VenmoGmailPopupOptions;
1013
1015
  }): Promise<VenmoGmailConnectResult>;
1014
1016
 
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-OP2REHNS.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-OP2REHNS.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-JU7CL4RJ.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-JU7CL4RJ.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-BVBHBKX7.mjs';
9
+ import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-HQACV3RF.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-WPD7KDNF.mjs');
360
+ const { withTimeout } = await import('./timeout-TYWTCDEG.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-Y2LKEF6H.mjs');
1930
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OLQPDNPL.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-Y2LKEF6H.mjs');
2016
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OLQPDNPL.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-Y2LKEF6H.mjs');
2121
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-OLQPDNPL.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-Y2LKEF6H.mjs');
2192
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-OLQPDNPL.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-Y2LKEF6H.mjs');
2300
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-OLQPDNPL.mjs');
2301
2301
  let lastError;
2302
2302
  for (const pvEntry of protocolViewerEntries) {
2303
2303
  const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");
@@ -6093,7 +6093,7 @@ var getRateManagerReadFunction = (abi, functionName) => Array.isArray(abi) && ab
6093
6093
  );
6094
6094
 
6095
6095
  // src/client/AccessPolicyOperations.ts
6096
- var PEER_PAY_MERCHANT_GROUP_ID_BY_ENVIRONMENT = {
6096
+ var DEPOSIT_WHITELIST_GROUP_ID_BY_ENVIRONMENT = {
6097
6097
  production: "0x174b8a29536721a3eae290bfd55651b85a53fc334b971d993fa93ed8dde15e48",
6098
6098
  preproduction: "0x174b8a29536721a3eae290bfd55651b85a53fc334b971d993fa93ed8dde15e48",
6099
6099
  staging: "0xc82c20c00033046a2f017b65532d7148a337282f17c73296663a530e49ba00f7"
@@ -6125,6 +6125,13 @@ var AccessPolicyOperations = class {
6125
6125
  if (!address || !abi) throw new AccessPolicyUnsupportedError("AddressGroupRegistry");
6126
6126
  return { address, abi };
6127
6127
  }
6128
+ depositWhitelistGroupId() {
6129
+ const runtimeEnv = this.config.getRuntimeEnv?.();
6130
+ if (!runtimeEnv) {
6131
+ throw new Error("Runtime environment is required for the Peer Pay deposit whitelist.");
6132
+ }
6133
+ return DEPOSIT_WHITELIST_GROUP_ID_BY_ENVIRONMENT[runtimeEnv];
6134
+ }
6128
6135
  /* ============ Reads ============ */
6129
6136
  async isEnabled(params) {
6130
6137
  const { address, abi } = this.requirePolicy();
@@ -6135,6 +6142,15 @@ var AccessPolicyOperations = class {
6135
6142
  args: [params.escrow, params.depositId, params.paymentMethod]
6136
6143
  });
6137
6144
  }
6145
+ /** True only when this deposit enables the current environment's whitelist group. */
6146
+ async isDepositWhitelistConfigured(params) {
6147
+ const depositWhitelistGroupId = this.depositWhitelistGroupId();
6148
+ const [enabled, groups] = await Promise.all([
6149
+ this.isEnabled(params),
6150
+ this.getAllowedGroups(params)
6151
+ ]);
6152
+ return enabled && groups.some((group) => group.toLowerCase() === depositWhitelistGroupId);
6153
+ }
6138
6154
  /** Groups are enumerable onchain; direct addresses deliberately are not. */
6139
6155
  async getAllowedGroups(params) {
6140
6156
  const { address, abi } = this.requirePolicy();
@@ -6196,16 +6212,12 @@ var AccessPolicyOperations = class {
6196
6212
  txOverrides
6197
6213
  });
6198
6214
  }
6199
- /** Configure the fixed Peer Pay merchant default while creating a sell deposit. */
6215
+ /** Configure the fixed Peer Pay deposit whitelist for a sell deposit. */
6200
6216
  prepareConfigurePeerPayMerchantDeposit(params) {
6201
- const runtimeEnv = this.config.getRuntimeEnv?.();
6202
- if (!runtimeEnv) {
6203
- throw new Error("Runtime environment is required to configure the Peer Pay merchant policy.");
6204
- }
6205
- const merchantGroupId = PEER_PAY_MERCHANT_GROUP_ID_BY_ENVIRONMENT[runtimeEnv];
6217
+ const depositWhitelistGroupId = this.depositWhitelistGroupId();
6206
6218
  return this.preparePolicyCall(
6207
6219
  "configureDeposit",
6208
- [params.escrow, params.depositId, params.paymentMethod, true, [merchantGroupId], []],
6220
+ [params.escrow, params.depositId, params.paymentMethod, true, [depositWhitelistGroupId], []],
6209
6221
  params.txOverrides
6210
6222
  );
6211
6223
  }
@@ -11442,6 +11454,25 @@ var Zkp2pClient = class {
11442
11454
  };
11443
11455
  }
11444
11456
  async prepareCreateDepositInternal(params) {
11457
+ let txOverrides = params.txOverrides;
11458
+ if (params.referralCode !== void 0) {
11459
+ if (!isValidReferralCode(params.referralCode)) {
11460
+ throw new Error("createDeposit referralCode must be six alphanumeric characters");
11461
+ }
11462
+ const referrer = params.txOverrides?.referrer;
11463
+ const referrers = referrer === void 0 ? [] : Array.isArray(referrer) ? referrer : [referrer];
11464
+ if (referrers.some(
11465
+ (code) => code.split(",").some((part) => part.trim().toLowerCase().startsWith("peer-ref-"))
11466
+ )) {
11467
+ throw new Error(
11468
+ "createDeposit referralCode cannot be combined with a peer-ref- marker in txOverrides.referrer"
11469
+ );
11470
+ }
11471
+ txOverrides = {
11472
+ ...params.txOverrides,
11473
+ referrer: [`peer-ref-${normalizeReferralCode(params.referralCode)}`, ...referrers]
11474
+ };
11475
+ }
11445
11476
  const hasOverrides = Boolean(
11446
11477
  params.paymentMethodsOverride || params.paymentMethodDataOverride || params.currenciesOverride
11447
11478
  );
@@ -11541,7 +11572,7 @@ var Zkp2pClient = class {
11541
11572
  }
11542
11573
  }
11543
11574
  });
11544
- const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-GBDKE3OV.mjs');
11575
+ const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-Y5AB4CKQ.mjs');
11545
11576
  currencies = mapConversionRatesToOnchainMinRate2(
11546
11577
  params.conversionRates,
11547
11578
  paymentMethods.length
@@ -11569,7 +11600,7 @@ var Zkp2pClient = class {
11569
11600
  const prepared = this.prepareEscrowTransaction({
11570
11601
  functionName: "createDeposit",
11571
11602
  args,
11572
- txOverrides: params.txOverrides,
11603
+ txOverrides,
11573
11604
  escrowAddress: escrowContext.address,
11574
11605
  escrowAbi: escrowContext.abi
11575
11606
  });
@@ -12329,7 +12360,8 @@ var VenmoGmailConnectError = class extends Error {
12329
12360
  function getVenmoGmailConnectUrl({
12330
12361
  payeeDetails,
12331
12362
  peerOrigin = "https://app.peer.xyz",
12332
- appearance
12363
+ appearance,
12364
+ returnUrl
12333
12365
  }) {
12334
12366
  if (!/^0x[0-9a-f]{64}$/i.test(payeeDetails)) {
12335
12367
  throw new ValidationError("Expected a Venmo payee hash", "payeeDetails");
@@ -12344,6 +12376,14 @@ function getVenmoGmailConnectUrl({
12344
12376
  throw new ValidationError("Expected an HTTPS Peer web origin", "peerOrigin");
12345
12377
  }
12346
12378
  const url = new URL("/connect/venmo", origin);
12379
+ if (returnUrl) {
12380
+ try {
12381
+ new URL(returnUrl);
12382
+ } catch {
12383
+ throw new ValidationError("Expected an absolute app callback URI", "returnUrl");
12384
+ }
12385
+ url.searchParams.set("returnUrl", returnUrl);
12386
+ }
12347
12387
  if (appearance)
12348
12388
  url.searchParams.set("appearance", JSON.stringify(parseVenmoGmailAppearance(appearance)));
12349
12389
  url.hash = payeeDetails;