@zkp2p/sdk 0.14.8 → 0.14.10

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, M as MicrosoftOAuthSellerCredentialUploadBodyByPlatform, 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, N as GetOrderbookTableResponse, O as QuoteRequest, T as QuoteResponse, W as CuratorMetadata, X as CurrencyType, Y as PaymentMethodCatalog, Z as TxOverrides } from './vaultUtils-C8yL2H-O.mjs';
2
- export { dL as AccessPolicyOperations, dM as AccessPolicyUnsupportedError, ap as ActionCallback, b8 as AmazonPayCredentialUploadInput, b9 as AmazonPayIdentityAttestationOutput, aU as ApiDeposit, a$ as ApiIntentStatus, bB as AttestationServiceSellerCredentialProbeResponse, an as AuthorizationTokenProvider, dI as BatchResult, aA as BestByPlatformResponseObject, bC as BuyerTeePaymentParams, bD as BuyerTeePaymentProofInput, bE as BuyerTeeSessionMaterial, a6 as CancelIntentMethodParams, az as CancelIntentParams, bj as CashAppCredentialUploadInput, bb as CashAppSessionMaterial, at as CreateDepositConversionRate, as as CreateDepositParams, bF as CuratorSellerVerifyResponse, d0 as Currency, d7 as CurrencyData, di as DISPUTE_PROTECTION_POLICY_ABI, dH as DelegationDepositTarget, dF as DelegationRoute, dG as DelegationState, dt as Deposit, dv as DepositCurrency, b_ as DepositIntentStatistics, aX as DepositStatus, aV as DepositVerifier, aW as DepositVerifierCurrency, bX as DepositVerifierData, ds as DepositView, ad as DisputeAttestationConfig, cv as DisputeProtectionIntentPage, cw as DisputeProtectionIntentPageParams, ae as DisputeProtectionReadinessOptions, af as DisputeProtectionReadinessResult, aQ as FiatResponse, bA as FulfillIntentAttestationResponse, a5 as FulfillIntentMethodParams, ax as FulfillIntentParams, aB as GetBestByPlatformResponse, aC as GetBestByPlatformResponseObject, aY as GetDepositByIdRequest, aZ as GetDepositByIdResponse, b4 as GetIntentByHashRequest, b5 as GetIntentByHashResponse, b2 as GetIntentsByDepositRequest, b3 as GetIntentsByDepositResponse, aG as GetNearbyQuote, aH as GetNearbySuggestions, b0 as GetOwnerIntentsRequest, b1 as GetOwnerIntentsResponse, aD as GetPlatformQuote, aI as GetQuoteResponse, aJ as GetQuoteResponseObject, aK as GetQuoteSingleResponse, bK as GetSellerCredentialStatusParams, dN as ICloudMailCredentialError, dP as ICloudMailCredentialErrorReason, dQ as ICloudMailSellerPlatform, bQ as IdentityAttestationActionType, bR as IdentityAttestationOutput, bS as IdentityAttestationOutputFor, bT as IdentityAttestationParams, cx as IndexedDisputeProtectionIntent, cy as IndexedPage, cz as IndexedPageAsOf, cA as IndexedRiskWindow, cB as IndexedStakeActivity, cD as IndexedStakeLock, cC as IndexedStakeTotals, cE as IndexedStakingRowFreshness, cF as IndexedStakingState, cG as IndexedStakingStateParams, cH as IndexedTakerAuthorization, cI as IndexedTakerStakeAuthorization, c4 as IndexerClient, cW as IndexerDeploymentEnv, cc as IndexerDeposit, ct as IndexerDepositDailySnapshot, cN as IndexerDepositFilter, cs as IndexerDepositFundActivity, cu as IndexerDepositFundActivityType, cQ as IndexerDepositOrderDirection, cP as IndexerDepositOrderField, cO as IndexerDepositPagination, cf as IndexerDepositPaymentMethod, c6 as IndexerDepositService, cZ as IndexerFulfillmentAndPaymentResponse, cX as IndexerFulfillmentRecord, cd as IndexerIntentFulfilled, ce as IndexerIntentFulfillmentAmounts, ch as IndexerIntentStatus, cl as IndexerManagerAggregateStats, cn as IndexerManagerDailySnapshot, cm as IndexerManagerStats, cq as IndexerManualRateUpdate, cg as IndexerMethodCurrency, cr as IndexerOracleConfigUpdate, cY as IndexerPaymentVerifiedRecord, ci as IndexerRateManager, ck as IndexerRateManagerDelegation, cT as IndexerRateManagerDelegationPagination, cp as IndexerRateManagerDetail, cR as IndexerRateManagerFilter, co as IndexerRateManagerListItem, cV as IndexerRateManagerOrderDirection, cU as IndexerRateManagerOrderField, cS as IndexerRateManagerPagination, cj as IndexerRateManagerRate, c7 as IndexerRateManagerService, ca as IndexerStakingService, a_ as Intent, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote, aj as IntentGuardianWriteFunction, ak as IntentGuardianWriteParams, dx as IntentView, bU as MakerIdentityAttestationRequestBody, bV as MakerIdentityPlatform, aS as NearbyQuote, aT as NearbySuggestions, dh as ORCHESTRATOR_V3_ABI, _ as OfframpClient, bW as OnchainCurrency, dy as OnchainIntent, bZ as OrderStats, c2 as OrderbookEntry, c3 as OrderbookTableRow, c_ as PAYMENT_PLATFORMS, bg as PayPalGoogleOAuthSellerCredentialUploadBody, du as PaymentMethodData, c$ as PaymentPlatformType, aE as PlatformQuote, bY as PreparedTransaction, aP as QuoteFeesResponse, aO as QuoteIntentResponse, aM as QuoteMakerIdentity, aF as QuotePreference, aL as QuoteResponseObject, aN as QuoteSingleResponse, au as Range, ag as ReadDisputeAttestationConfigParams, a2 as RedeemReferralCodeSignatureOptions, $ as ReferralBearerWriteOptions, dw as ReferralFee, a0 as ReferralReadOptions, aq as ReferralRedemption, ar as ReferralSignatureBody, a1 as ReferralSignatureOptions, b6 as RegisterPayeeDetailsRequest, b7 as RegisterPayeeDetailsResponse, bG as RegisteredSellerCredentialPlatform, bI as RegisteredUploadSellerCredentialParams, ay as ReleaseFundsToPayerParams, dk as RuntimeEnv, dj as STAKE_VAULT_ABI, by as SellerAttestationOutput, bm as SellerCiphertextBundle, br as SellerCredentialBundleUpload, bz as SellerCredentialProbeResponse, bt as SellerCredentialStatus, bs as SellerCredentialStatusValue, bl as SellerCredentialUploadInputByPlatform, bx as SellerPaymentTypedDataValue, bq as SellerProbeInput, bn as SellerSignedCiphertextBundle, bv as SellerTypedDataField, bw as SellerTypedDataSpec, bp as SellerVerifyInput, bo as SellerVerifyIntentDetails, bu as SellerVerifyProxyBody, dK as SendBatchFn, dJ as SendTransactionFn, a4 as SignalIntentMethodParams, aw as SignalIntentParams, a3 as SignalIntentReferralFee, cJ as StakeActivityPageParams, c0 as StakeEnvironment, cK as StakeLockPageParams, a9 as StakeVaultState, aa as StakeVaultWriteFunction, ab as StakeVaultWriteParams, cL as StakingEntityIds, cM as TakerStakeAuthorizationPageParams, c1 as TakerStakeBalances, ao as TimeoutConfig, aR as TokenResponse, a7 as UpdateReferralCodeSignatureOptions, bN as UploadGoogleOAuthSellerCredentialParams, dR as UploadICloudMailSellerCredentialOptions, dS as UploadICloudMailSellerCredentialParams, bO as UploadMicrosoftOAuthSellerCredentialParams, bL as UploadPayPalGoogleOAuthSellerCredentialParams, bJ as UploadSellerCredentialOptions, bH as UploadSellerCredentialParams, bM as UploadVenmoGoogleOAuthSellerCredentialParams, b$ as UsdcAmount, dm as V2ContractAbis, dl as V2ContractAddresses, bi as VenmoCredentialUploadInput, bh as VenmoGoogleOAuthSellerCredentialUploadBody, ba as VenmoSessionMaterial, bP as VerifySellerPaymentParams, bk as WiseCredentialUploadInput, bd as WiseProfileInfo, bf as WiseProfileNotFound, be as WiseProfileSelectionRequired, bc as WiseSessionMaterial, av as WithdrawDepositParams, dz as ZERO_RATE_MANAGER_ID, _ as Zkp2pClient, a8 as Zkp2pClientOptions, c9 as buildStakingEntityIds, dE as classifyDelegationState, am as classifyIntentGuardianError, c8 as compareEventCursorIdsByRecency, d1 as currencyInfo, c5 as defaultIndexerEndpoint, dq as enrichPvDepositView, dr as enrichPvIntentView, cb as fetchIndexerFulfillmentAndPayment, d8 as getContracts, d4 as getCurrencyCodeFromHash, d3 as getCurrencyInfoFromCountryCode, d2 as getCurrencyInfoFromHash, dD as getDelegationRoute, de as getDisputeProtectionPolicyContract, dg as getGatingServiceAddress, d9 as getIntentGuardianContract, dd as getOrchestratorV3Contract, df as getPaymentMethodsCatalog, db as getRateManagerContracts, dc as getStakeVaultContract, da as hasIntentGuardian, dO as isMailboxSellerCredentialType, d5 as isSupportedCurrencyHash, dA as isZeroRateManagerId, d6 as mapConversionRatesToOnchainMinRate, dB as normalizeRateManagerId, dC as normalizeRegistry, dn as parseDepositView, dp as parseIntentView, ac as readDisputeAttestationConfig } from './vaultUtils-C8yL2H-O.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, M as MicrosoftOAuthSellerCredentialUploadBodyByPlatform, 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, N as GetOrderbookTableResponse, O as QuoteRequest, T as QuoteResponse, W as CuratorMetadata, X as CurrencyType, Y as PaymentMethodCatalog, Z as TxOverrides } from './vaultUtils-PRhZBjwX.mjs';
2
+ export { dN as AccessPolicyOperations, dO as AccessPolicyUnsupportedError, ap as ActionCallback, b8 as AmazonPayCredentialUploadInput, b9 as AmazonPayIdentityAttestationOutput, aU as ApiDeposit, a$ as ApiIntentStatus, bC as AttestationServiceSellerCredentialProbeResponse, an as AuthorizationTokenProvider, dK as BatchResult, aA as BestByPlatformResponseObject, bD as BuyerTeePaymentParams, bE as BuyerTeePaymentProofInput, bF as BuyerTeeSessionMaterial, a6 as CancelIntentMethodParams, az as CancelIntentParams, bk as CashAppCredentialUploadInput, bb as CashAppSessionMaterial, at as CreateDepositConversionRate, as as CreateDepositParams, bG as CuratorSellerVerifyResponse, d2 as Currency, d9 as CurrencyData, dk as DISPUTE_PROTECTION_POLICY_ABI, dJ as DelegationDepositTarget, dH as DelegationRoute, dI as DelegationState, dv as Deposit, dx as DepositCurrency, c0 as DepositIntentStatistics, aX as DepositStatus, aV as DepositVerifier, aW as DepositVerifierCurrency, bZ as DepositVerifierData, du as DepositView, ad as DisputeAttestationConfig, cx as DisputeProtectionIntentPage, cy as DisputeProtectionIntentPageParams, ae as DisputeProtectionReadinessOptions, af as DisputeProtectionReadinessResult, aQ as FiatResponse, bB as FulfillIntentAttestationResponse, a5 as FulfillIntentMethodParams, ax as FulfillIntentParams, aB as GetBestByPlatformResponse, aC as GetBestByPlatformResponseObject, aY as GetDepositByIdRequest, aZ as GetDepositByIdResponse, b4 as GetIntentByHashRequest, b5 as GetIntentByHashResponse, b2 as GetIntentsByDepositRequest, b3 as GetIntentsByDepositResponse, aG as GetNearbyQuote, aH as GetNearbySuggestions, b0 as GetOwnerIntentsRequest, b1 as GetOwnerIntentsResponse, aD as GetPlatformQuote, aI as GetQuoteResponse, aJ as GetQuoteResponseObject, aK as GetQuoteSingleResponse, bL as GetSellerCredentialStatusParams, dP as ICloudMailCredentialError, dR as ICloudMailCredentialErrorReason, dS as ICloudMailSellerPlatform, bS as IdentityAttestationActionType, bT as IdentityAttestationOutput, bU as IdentityAttestationOutputFor, bV as IdentityAttestationParams, cz as IndexedDisputeProtectionIntent, cA as IndexedPage, cB as IndexedPageAsOf, cC as IndexedRiskWindow, cD as IndexedStakeActivity, cF as IndexedStakeLock, cE as IndexedStakeTotals, cG as IndexedStakingRowFreshness, cH as IndexedStakingState, cI as IndexedStakingStateParams, cJ as IndexedTakerAuthorization, cK as IndexedTakerStakeAuthorization, c6 as IndexerClient, cY as IndexerDeploymentEnv, ce as IndexerDeposit, cv as IndexerDepositDailySnapshot, cP as IndexerDepositFilter, cu as IndexerDepositFundActivity, cw as IndexerDepositFundActivityType, cS as IndexerDepositOrderDirection, cR as IndexerDepositOrderField, cQ as IndexerDepositPagination, ch as IndexerDepositPaymentMethod, c8 as IndexerDepositService, c$ as IndexerFulfillmentAndPaymentResponse, cZ as IndexerFulfillmentRecord, cf as IndexerIntentFulfilled, cg as IndexerIntentFulfillmentAmounts, cj as IndexerIntentStatus, cn as IndexerManagerAggregateStats, cp as IndexerManagerDailySnapshot, co as IndexerManagerStats, cs as IndexerManualRateUpdate, ci as IndexerMethodCurrency, ct as IndexerOracleConfigUpdate, c_ as IndexerPaymentVerifiedRecord, ck as IndexerRateManager, cm as IndexerRateManagerDelegation, cV as IndexerRateManagerDelegationPagination, cr as IndexerRateManagerDetail, cT as IndexerRateManagerFilter, cq as IndexerRateManagerListItem, cX as IndexerRateManagerOrderDirection, cW as IndexerRateManagerOrderField, cU as IndexerRateManagerPagination, cl as IndexerRateManagerRate, c9 as IndexerRateManagerService, cc as IndexerStakingService, a_ as Intent, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote, aj as IntentGuardianWriteFunction, ak as IntentGuardianWriteParams, dz as IntentView, bW as MakerIdentityAttestationRequestBody, bX as MakerIdentityPlatform, aS as NearbyQuote, aT as NearbySuggestions, dj as ORCHESTRATOR_V3_ABI, _ as OfframpClient, bY as OnchainCurrency, dA as OnchainIntent, b$ as OrderStats, c4 as OrderbookEntry, c5 as OrderbookTableRow, d0 as PAYMENT_PLATFORMS, bg as PayPalGoogleOAuthSellerCredentialUploadBody, dw as PaymentMethodData, d1 as PaymentPlatformType, aE as PlatformQuote, b_ as PreparedTransaction, aP as QuoteFeesResponse, aO as QuoteIntentResponse, aM as QuoteMakerIdentity, aF as QuotePreference, aL as QuoteResponseObject, aN as QuoteSingleResponse, au as Range, ag as ReadDisputeAttestationConfigParams, a2 as RedeemReferralCodeSignatureOptions, $ as ReferralBearerWriteOptions, dy as ReferralFee, a0 as ReferralReadOptions, aq as ReferralRedemption, ar as ReferralSignatureBody, a1 as ReferralSignatureOptions, b6 as RegisterPayeeDetailsRequest, b7 as RegisterPayeeDetailsResponse, bH as RegisteredSellerCredentialPlatform, bJ as RegisteredUploadSellerCredentialParams, ay as ReleaseFundsToPayerParams, dm as RuntimeEnv, dl as STAKE_VAULT_ABI, bz as SellerAttestationOutput, bn as SellerCiphertextBundle, bs as SellerCredentialBundleUpload, bA as SellerCredentialProbeResponse, bu as SellerCredentialStatus, bt as SellerCredentialStatusValue, bm as SellerCredentialUploadInputByPlatform, by as SellerPaymentTypedDataValue, br as SellerProbeInput, bo as SellerSignedCiphertextBundle, bw as SellerTypedDataField, bx as SellerTypedDataSpec, bq as SellerVerifyInput, bp as SellerVerifyIntentDetails, bv as SellerVerifyProxyBody, dM as SendBatchFn, dL as SendTransactionFn, a4 as SignalIntentMethodParams, aw as SignalIntentParams, a3 as SignalIntentReferralFee, cL as StakeActivityPageParams, c2 as StakeEnvironment, cM as StakeLockPageParams, a9 as StakeVaultState, aa as StakeVaultWriteFunction, ab as StakeVaultWriteParams, cN as StakingEntityIds, cO as TakerStakeAuthorizationPageParams, c3 as TakerStakeBalances, ao as TimeoutConfig, aR as TokenResponse, a7 as UpdateReferralCodeSignatureOptions, bP as UploadGoogleOAuthSellerCredentialParams, dT as UploadICloudMailSellerCredentialOptions, dU as UploadICloudMailSellerCredentialParams, bQ as UploadMicrosoftOAuthSellerCredentialParams, bM as UploadPayPalGoogleOAuthSellerCredentialParams, bK as UploadSellerCredentialOptions, bI as UploadSellerCredentialParams, bN as UploadVenmoGoogleOAuthSellerCredentialParams, bO as UploadXMoneyGoogleOAuthSellerCredentialParams, c1 as UsdcAmount, dp as V2ContractAbis, dn as V2ContractAddresses, bj as VenmoCredentialUploadInput, bh as VenmoGoogleOAuthSellerCredentialUploadBody, ba as VenmoSessionMaterial, bR as VerifySellerPaymentParams, bl as WiseCredentialUploadInput, bd as WiseProfileInfo, bf as WiseProfileNotFound, be as WiseProfileSelectionRequired, bc as WiseSessionMaterial, av as WithdrawDepositParams, bi as XMoneyGoogleOAuthSellerCredentialUploadBody, dB as ZERO_RATE_MANAGER_ID, _ as Zkp2pClient, a8 as Zkp2pClientOptions, cb as buildStakingEntityIds, dG as classifyDelegationState, am as classifyIntentGuardianError, ca as compareEventCursorIdsByRecency, d3 as currencyInfo, c7 as defaultIndexerEndpoint, ds as enrichPvDepositView, dt as enrichPvIntentView, cd as fetchIndexerFulfillmentAndPayment, da as getContracts, d6 as getCurrencyCodeFromHash, d5 as getCurrencyInfoFromCountryCode, d4 as getCurrencyInfoFromHash, dF as getDelegationRoute, dg as getDisputeProtectionPolicyContract, di as getGatingServiceAddress, db as getIntentGuardianContract, df as getOrchestratorV3Contract, dh as getPaymentMethodsCatalog, dd as getRateManagerContracts, de as getStakeVaultContract, dc as hasIntentGuardian, dQ as isMailboxSellerCredentialType, d7 as isSupportedCurrencyHash, dC as isZeroRateManagerId, d8 as mapConversionRatesToOnchainMinRate, dD as normalizeRateManagerId, dE as normalizeRegistry, dq as parseDepositView, dr as parseIntentView, ac as readDisputeAttestationConfig } from './vaultUtils-PRhZBjwX.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';
@@ -1018,17 +1018,37 @@ type VenmoGmailConnectResult = {
1018
1018
  payeeDetails: Hash;
1019
1019
  };
1020
1020
  /** Build a Peer-hosted link for an already-registered Venmo maker. */
1021
- declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, appearance, returnUrl, }: {
1021
+ declare function getVenmoGmailConnectUrl(options: {
1022
1022
  payeeDetails: Hash;
1023
- /** Matching Peer web origin. HTTP is allowed only on localhost for development. */
1024
1023
  peerOrigin?: string;
1025
1024
  appearance?: VenmoGmailAppearance;
1026
- /** Optional app callback URI. Native hosts open the URL themselves; empty means no redirect. */
1027
1025
  returnUrl?: string;
1028
1026
  }): string;
1029
- /** Call from a click handler. Rejects on cancellation or verification failure, including missing Venmo receipts. */
1027
+ /** Call from a click handler; verifies receipts through Gmail, Outlook or iCloud. */
1030
1028
  declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoGmailConnectUrl>[0], 'returnUrl'> & {
1031
1029
  popup?: VenmoGmailPopupOptions;
1032
1030
  }): Promise<VenmoGmailConnectResult>;
1033
1031
 
1034
- 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, MicrosoftOAuthSellerCredentialUploadBodyByPlatform, 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, type VenmoGmailAppearance, VenmoGmailConnectError, type VenmoGmailConnectResult, type VenmoGmailPopupOptions, 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, apiUploadMicrosoftOAuthSellerCredential, 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, parseVenmoGmailAppearance, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
1032
+ declare class XMoneyConnectError extends Error {
1033
+ readonly code: string;
1034
+ constructor(code: string, message: string);
1035
+ }
1036
+ type XMoneyConnectResult = {
1037
+ payeeDetails: Hash;
1038
+ };
1039
+ type XMoneyConnectOptions = {
1040
+ payeeDetails: Hash;
1041
+ /** Registered X username, required to bind iCloud uploads to this account. */
1042
+ payeeUsername: string;
1043
+ peerOrigin?: string;
1044
+ appearance?: VenmoGmailAppearance;
1045
+ returnUrl?: string;
1046
+ };
1047
+ /** The account identity stays in the fragment, outside HTTP requests. */
1048
+ declare function getXMoneyConnectUrl(options: XMoneyConnectOptions): string;
1049
+ /** Call from a click handler; resolves only after a verified receipt connects the account. */
1050
+ declare function openXMoneyConnect(options: Omit<XMoneyConnectOptions, 'returnUrl'> & {
1051
+ popup?: VenmoGmailPopupOptions;
1052
+ }): Promise<XMoneyConnectResult>;
1053
+
1054
+ 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, MicrosoftOAuthSellerCredentialUploadBodyByPlatform, 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, type VenmoGmailAppearance, VenmoGmailConnectError, type VenmoGmailConnectResult, type VenmoGmailPopupOptions, XMoneyConnectError, type XMoneyConnectOptions, type XMoneyConnectResult, 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, apiUploadMicrosoftOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, getXMoneyConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, openXMoneyConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, 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, M as MicrosoftOAuthSellerCredentialUploadBodyByPlatform, 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, N as GetOrderbookTableResponse, O as QuoteRequest, T as QuoteResponse, W as CuratorMetadata, X as CurrencyType, Y as PaymentMethodCatalog, Z as TxOverrides } from './vaultUtils-C8yL2H-O.js';
2
- export { dL as AccessPolicyOperations, dM as AccessPolicyUnsupportedError, ap as ActionCallback, b8 as AmazonPayCredentialUploadInput, b9 as AmazonPayIdentityAttestationOutput, aU as ApiDeposit, a$ as ApiIntentStatus, bB as AttestationServiceSellerCredentialProbeResponse, an as AuthorizationTokenProvider, dI as BatchResult, aA as BestByPlatformResponseObject, bC as BuyerTeePaymentParams, bD as BuyerTeePaymentProofInput, bE as BuyerTeeSessionMaterial, a6 as CancelIntentMethodParams, az as CancelIntentParams, bj as CashAppCredentialUploadInput, bb as CashAppSessionMaterial, at as CreateDepositConversionRate, as as CreateDepositParams, bF as CuratorSellerVerifyResponse, d0 as Currency, d7 as CurrencyData, di as DISPUTE_PROTECTION_POLICY_ABI, dH as DelegationDepositTarget, dF as DelegationRoute, dG as DelegationState, dt as Deposit, dv as DepositCurrency, b_ as DepositIntentStatistics, aX as DepositStatus, aV as DepositVerifier, aW as DepositVerifierCurrency, bX as DepositVerifierData, ds as DepositView, ad as DisputeAttestationConfig, cv as DisputeProtectionIntentPage, cw as DisputeProtectionIntentPageParams, ae as DisputeProtectionReadinessOptions, af as DisputeProtectionReadinessResult, aQ as FiatResponse, bA as FulfillIntentAttestationResponse, a5 as FulfillIntentMethodParams, ax as FulfillIntentParams, aB as GetBestByPlatformResponse, aC as GetBestByPlatformResponseObject, aY as GetDepositByIdRequest, aZ as GetDepositByIdResponse, b4 as GetIntentByHashRequest, b5 as GetIntentByHashResponse, b2 as GetIntentsByDepositRequest, b3 as GetIntentsByDepositResponse, aG as GetNearbyQuote, aH as GetNearbySuggestions, b0 as GetOwnerIntentsRequest, b1 as GetOwnerIntentsResponse, aD as GetPlatformQuote, aI as GetQuoteResponse, aJ as GetQuoteResponseObject, aK as GetQuoteSingleResponse, bK as GetSellerCredentialStatusParams, dN as ICloudMailCredentialError, dP as ICloudMailCredentialErrorReason, dQ as ICloudMailSellerPlatform, bQ as IdentityAttestationActionType, bR as IdentityAttestationOutput, bS as IdentityAttestationOutputFor, bT as IdentityAttestationParams, cx as IndexedDisputeProtectionIntent, cy as IndexedPage, cz as IndexedPageAsOf, cA as IndexedRiskWindow, cB as IndexedStakeActivity, cD as IndexedStakeLock, cC as IndexedStakeTotals, cE as IndexedStakingRowFreshness, cF as IndexedStakingState, cG as IndexedStakingStateParams, cH as IndexedTakerAuthorization, cI as IndexedTakerStakeAuthorization, c4 as IndexerClient, cW as IndexerDeploymentEnv, cc as IndexerDeposit, ct as IndexerDepositDailySnapshot, cN as IndexerDepositFilter, cs as IndexerDepositFundActivity, cu as IndexerDepositFundActivityType, cQ as IndexerDepositOrderDirection, cP as IndexerDepositOrderField, cO as IndexerDepositPagination, cf as IndexerDepositPaymentMethod, c6 as IndexerDepositService, cZ as IndexerFulfillmentAndPaymentResponse, cX as IndexerFulfillmentRecord, cd as IndexerIntentFulfilled, ce as IndexerIntentFulfillmentAmounts, ch as IndexerIntentStatus, cl as IndexerManagerAggregateStats, cn as IndexerManagerDailySnapshot, cm as IndexerManagerStats, cq as IndexerManualRateUpdate, cg as IndexerMethodCurrency, cr as IndexerOracleConfigUpdate, cY as IndexerPaymentVerifiedRecord, ci as IndexerRateManager, ck as IndexerRateManagerDelegation, cT as IndexerRateManagerDelegationPagination, cp as IndexerRateManagerDetail, cR as IndexerRateManagerFilter, co as IndexerRateManagerListItem, cV as IndexerRateManagerOrderDirection, cU as IndexerRateManagerOrderField, cS as IndexerRateManagerPagination, cj as IndexerRateManagerRate, c7 as IndexerRateManagerService, ca as IndexerStakingService, a_ as Intent, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote, aj as IntentGuardianWriteFunction, ak as IntentGuardianWriteParams, dx as IntentView, bU as MakerIdentityAttestationRequestBody, bV as MakerIdentityPlatform, aS as NearbyQuote, aT as NearbySuggestions, dh as ORCHESTRATOR_V3_ABI, _ as OfframpClient, bW as OnchainCurrency, dy as OnchainIntent, bZ as OrderStats, c2 as OrderbookEntry, c3 as OrderbookTableRow, c_ as PAYMENT_PLATFORMS, bg as PayPalGoogleOAuthSellerCredentialUploadBody, du as PaymentMethodData, c$ as PaymentPlatformType, aE as PlatformQuote, bY as PreparedTransaction, aP as QuoteFeesResponse, aO as QuoteIntentResponse, aM as QuoteMakerIdentity, aF as QuotePreference, aL as QuoteResponseObject, aN as QuoteSingleResponse, au as Range, ag as ReadDisputeAttestationConfigParams, a2 as RedeemReferralCodeSignatureOptions, $ as ReferralBearerWriteOptions, dw as ReferralFee, a0 as ReferralReadOptions, aq as ReferralRedemption, ar as ReferralSignatureBody, a1 as ReferralSignatureOptions, b6 as RegisterPayeeDetailsRequest, b7 as RegisterPayeeDetailsResponse, bG as RegisteredSellerCredentialPlatform, bI as RegisteredUploadSellerCredentialParams, ay as ReleaseFundsToPayerParams, dk as RuntimeEnv, dj as STAKE_VAULT_ABI, by as SellerAttestationOutput, bm as SellerCiphertextBundle, br as SellerCredentialBundleUpload, bz as SellerCredentialProbeResponse, bt as SellerCredentialStatus, bs as SellerCredentialStatusValue, bl as SellerCredentialUploadInputByPlatform, bx as SellerPaymentTypedDataValue, bq as SellerProbeInput, bn as SellerSignedCiphertextBundle, bv as SellerTypedDataField, bw as SellerTypedDataSpec, bp as SellerVerifyInput, bo as SellerVerifyIntentDetails, bu as SellerVerifyProxyBody, dK as SendBatchFn, dJ as SendTransactionFn, a4 as SignalIntentMethodParams, aw as SignalIntentParams, a3 as SignalIntentReferralFee, cJ as StakeActivityPageParams, c0 as StakeEnvironment, cK as StakeLockPageParams, a9 as StakeVaultState, aa as StakeVaultWriteFunction, ab as StakeVaultWriteParams, cL as StakingEntityIds, cM as TakerStakeAuthorizationPageParams, c1 as TakerStakeBalances, ao as TimeoutConfig, aR as TokenResponse, a7 as UpdateReferralCodeSignatureOptions, bN as UploadGoogleOAuthSellerCredentialParams, dR as UploadICloudMailSellerCredentialOptions, dS as UploadICloudMailSellerCredentialParams, bO as UploadMicrosoftOAuthSellerCredentialParams, bL as UploadPayPalGoogleOAuthSellerCredentialParams, bJ as UploadSellerCredentialOptions, bH as UploadSellerCredentialParams, bM as UploadVenmoGoogleOAuthSellerCredentialParams, b$ as UsdcAmount, dm as V2ContractAbis, dl as V2ContractAddresses, bi as VenmoCredentialUploadInput, bh as VenmoGoogleOAuthSellerCredentialUploadBody, ba as VenmoSessionMaterial, bP as VerifySellerPaymentParams, bk as WiseCredentialUploadInput, bd as WiseProfileInfo, bf as WiseProfileNotFound, be as WiseProfileSelectionRequired, bc as WiseSessionMaterial, av as WithdrawDepositParams, dz as ZERO_RATE_MANAGER_ID, _ as Zkp2pClient, a8 as Zkp2pClientOptions, c9 as buildStakingEntityIds, dE as classifyDelegationState, am as classifyIntentGuardianError, c8 as compareEventCursorIdsByRecency, d1 as currencyInfo, c5 as defaultIndexerEndpoint, dq as enrichPvDepositView, dr as enrichPvIntentView, cb as fetchIndexerFulfillmentAndPayment, d8 as getContracts, d4 as getCurrencyCodeFromHash, d3 as getCurrencyInfoFromCountryCode, d2 as getCurrencyInfoFromHash, dD as getDelegationRoute, de as getDisputeProtectionPolicyContract, dg as getGatingServiceAddress, d9 as getIntentGuardianContract, dd as getOrchestratorV3Contract, df as getPaymentMethodsCatalog, db as getRateManagerContracts, dc as getStakeVaultContract, da as hasIntentGuardian, dO as isMailboxSellerCredentialType, d5 as isSupportedCurrencyHash, dA as isZeroRateManagerId, d6 as mapConversionRatesToOnchainMinRate, dB as normalizeRateManagerId, dC as normalizeRegistry, dn as parseDepositView, dp as parseIntentView, ac as readDisputeAttestationConfig } from './vaultUtils-C8yL2H-O.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, M as MicrosoftOAuthSellerCredentialUploadBodyByPlatform, 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, N as GetOrderbookTableResponse, O as QuoteRequest, T as QuoteResponse, W as CuratorMetadata, X as CurrencyType, Y as PaymentMethodCatalog, Z as TxOverrides } from './vaultUtils-PRhZBjwX.js';
2
+ export { dN as AccessPolicyOperations, dO as AccessPolicyUnsupportedError, ap as ActionCallback, b8 as AmazonPayCredentialUploadInput, b9 as AmazonPayIdentityAttestationOutput, aU as ApiDeposit, a$ as ApiIntentStatus, bC as AttestationServiceSellerCredentialProbeResponse, an as AuthorizationTokenProvider, dK as BatchResult, aA as BestByPlatformResponseObject, bD as BuyerTeePaymentParams, bE as BuyerTeePaymentProofInput, bF as BuyerTeeSessionMaterial, a6 as CancelIntentMethodParams, az as CancelIntentParams, bk as CashAppCredentialUploadInput, bb as CashAppSessionMaterial, at as CreateDepositConversionRate, as as CreateDepositParams, bG as CuratorSellerVerifyResponse, d2 as Currency, d9 as CurrencyData, dk as DISPUTE_PROTECTION_POLICY_ABI, dJ as DelegationDepositTarget, dH as DelegationRoute, dI as DelegationState, dv as Deposit, dx as DepositCurrency, c0 as DepositIntentStatistics, aX as DepositStatus, aV as DepositVerifier, aW as DepositVerifierCurrency, bZ as DepositVerifierData, du as DepositView, ad as DisputeAttestationConfig, cx as DisputeProtectionIntentPage, cy as DisputeProtectionIntentPageParams, ae as DisputeProtectionReadinessOptions, af as DisputeProtectionReadinessResult, aQ as FiatResponse, bB as FulfillIntentAttestationResponse, a5 as FulfillIntentMethodParams, ax as FulfillIntentParams, aB as GetBestByPlatformResponse, aC as GetBestByPlatformResponseObject, aY as GetDepositByIdRequest, aZ as GetDepositByIdResponse, b4 as GetIntentByHashRequest, b5 as GetIntentByHashResponse, b2 as GetIntentsByDepositRequest, b3 as GetIntentsByDepositResponse, aG as GetNearbyQuote, aH as GetNearbySuggestions, b0 as GetOwnerIntentsRequest, b1 as GetOwnerIntentsResponse, aD as GetPlatformQuote, aI as GetQuoteResponse, aJ as GetQuoteResponseObject, aK as GetQuoteSingleResponse, bL as GetSellerCredentialStatusParams, dP as ICloudMailCredentialError, dR as ICloudMailCredentialErrorReason, dS as ICloudMailSellerPlatform, bS as IdentityAttestationActionType, bT as IdentityAttestationOutput, bU as IdentityAttestationOutputFor, bV as IdentityAttestationParams, cz as IndexedDisputeProtectionIntent, cA as IndexedPage, cB as IndexedPageAsOf, cC as IndexedRiskWindow, cD as IndexedStakeActivity, cF as IndexedStakeLock, cE as IndexedStakeTotals, cG as IndexedStakingRowFreshness, cH as IndexedStakingState, cI as IndexedStakingStateParams, cJ as IndexedTakerAuthorization, cK as IndexedTakerStakeAuthorization, c6 as IndexerClient, cY as IndexerDeploymentEnv, ce as IndexerDeposit, cv as IndexerDepositDailySnapshot, cP as IndexerDepositFilter, cu as IndexerDepositFundActivity, cw as IndexerDepositFundActivityType, cS as IndexerDepositOrderDirection, cR as IndexerDepositOrderField, cQ as IndexerDepositPagination, ch as IndexerDepositPaymentMethod, c8 as IndexerDepositService, c$ as IndexerFulfillmentAndPaymentResponse, cZ as IndexerFulfillmentRecord, cf as IndexerIntentFulfilled, cg as IndexerIntentFulfillmentAmounts, cj as IndexerIntentStatus, cn as IndexerManagerAggregateStats, cp as IndexerManagerDailySnapshot, co as IndexerManagerStats, cs as IndexerManualRateUpdate, ci as IndexerMethodCurrency, ct as IndexerOracleConfigUpdate, c_ as IndexerPaymentVerifiedRecord, ck as IndexerRateManager, cm as IndexerRateManagerDelegation, cV as IndexerRateManagerDelegationPagination, cr as IndexerRateManagerDetail, cT as IndexerRateManagerFilter, cq as IndexerRateManagerListItem, cX as IndexerRateManagerOrderDirection, cW as IndexerRateManagerOrderField, cU as IndexerRateManagerPagination, cl as IndexerRateManagerRate, c9 as IndexerRateManagerService, cc as IndexerStakingService, a_ as Intent, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote, aj as IntentGuardianWriteFunction, ak as IntentGuardianWriteParams, dz as IntentView, bW as MakerIdentityAttestationRequestBody, bX as MakerIdentityPlatform, aS as NearbyQuote, aT as NearbySuggestions, dj as ORCHESTRATOR_V3_ABI, _ as OfframpClient, bY as OnchainCurrency, dA as OnchainIntent, b$ as OrderStats, c4 as OrderbookEntry, c5 as OrderbookTableRow, d0 as PAYMENT_PLATFORMS, bg as PayPalGoogleOAuthSellerCredentialUploadBody, dw as PaymentMethodData, d1 as PaymentPlatformType, aE as PlatformQuote, b_ as PreparedTransaction, aP as QuoteFeesResponse, aO as QuoteIntentResponse, aM as QuoteMakerIdentity, aF as QuotePreference, aL as QuoteResponseObject, aN as QuoteSingleResponse, au as Range, ag as ReadDisputeAttestationConfigParams, a2 as RedeemReferralCodeSignatureOptions, $ as ReferralBearerWriteOptions, dy as ReferralFee, a0 as ReferralReadOptions, aq as ReferralRedemption, ar as ReferralSignatureBody, a1 as ReferralSignatureOptions, b6 as RegisterPayeeDetailsRequest, b7 as RegisterPayeeDetailsResponse, bH as RegisteredSellerCredentialPlatform, bJ as RegisteredUploadSellerCredentialParams, ay as ReleaseFundsToPayerParams, dm as RuntimeEnv, dl as STAKE_VAULT_ABI, bz as SellerAttestationOutput, bn as SellerCiphertextBundle, bs as SellerCredentialBundleUpload, bA as SellerCredentialProbeResponse, bu as SellerCredentialStatus, bt as SellerCredentialStatusValue, bm as SellerCredentialUploadInputByPlatform, by as SellerPaymentTypedDataValue, br as SellerProbeInput, bo as SellerSignedCiphertextBundle, bw as SellerTypedDataField, bx as SellerTypedDataSpec, bq as SellerVerifyInput, bp as SellerVerifyIntentDetails, bv as SellerVerifyProxyBody, dM as SendBatchFn, dL as SendTransactionFn, a4 as SignalIntentMethodParams, aw as SignalIntentParams, a3 as SignalIntentReferralFee, cL as StakeActivityPageParams, c2 as StakeEnvironment, cM as StakeLockPageParams, a9 as StakeVaultState, aa as StakeVaultWriteFunction, ab as StakeVaultWriteParams, cN as StakingEntityIds, cO as TakerStakeAuthorizationPageParams, c3 as TakerStakeBalances, ao as TimeoutConfig, aR as TokenResponse, a7 as UpdateReferralCodeSignatureOptions, bP as UploadGoogleOAuthSellerCredentialParams, dT as UploadICloudMailSellerCredentialOptions, dU as UploadICloudMailSellerCredentialParams, bQ as UploadMicrosoftOAuthSellerCredentialParams, bM as UploadPayPalGoogleOAuthSellerCredentialParams, bK as UploadSellerCredentialOptions, bI as UploadSellerCredentialParams, bN as UploadVenmoGoogleOAuthSellerCredentialParams, bO as UploadXMoneyGoogleOAuthSellerCredentialParams, c1 as UsdcAmount, dp as V2ContractAbis, dn as V2ContractAddresses, bj as VenmoCredentialUploadInput, bh as VenmoGoogleOAuthSellerCredentialUploadBody, ba as VenmoSessionMaterial, bR as VerifySellerPaymentParams, bl as WiseCredentialUploadInput, bd as WiseProfileInfo, bf as WiseProfileNotFound, be as WiseProfileSelectionRequired, bc as WiseSessionMaterial, av as WithdrawDepositParams, bi as XMoneyGoogleOAuthSellerCredentialUploadBody, dB as ZERO_RATE_MANAGER_ID, _ as Zkp2pClient, a8 as Zkp2pClientOptions, cb as buildStakingEntityIds, dG as classifyDelegationState, am as classifyIntentGuardianError, ca as compareEventCursorIdsByRecency, d3 as currencyInfo, c7 as defaultIndexerEndpoint, ds as enrichPvDepositView, dt as enrichPvIntentView, cd as fetchIndexerFulfillmentAndPayment, da as getContracts, d6 as getCurrencyCodeFromHash, d5 as getCurrencyInfoFromCountryCode, d4 as getCurrencyInfoFromHash, dF as getDelegationRoute, dg as getDisputeProtectionPolicyContract, di as getGatingServiceAddress, db as getIntentGuardianContract, df as getOrchestratorV3Contract, dh as getPaymentMethodsCatalog, dd as getRateManagerContracts, de as getStakeVaultContract, dc as hasIntentGuardian, dQ as isMailboxSellerCredentialType, d7 as isSupportedCurrencyHash, dC as isZeroRateManagerId, d8 as mapConversionRatesToOnchainMinRate, dD as normalizeRateManagerId, dE as normalizeRegistry, dq as parseDepositView, dr as parseIntentView, ac as readDisputeAttestationConfig } from './vaultUtils-PRhZBjwX.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';
@@ -1018,17 +1018,37 @@ type VenmoGmailConnectResult = {
1018
1018
  payeeDetails: Hash;
1019
1019
  };
1020
1020
  /** Build a Peer-hosted link for an already-registered Venmo maker. */
1021
- declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, appearance, returnUrl, }: {
1021
+ declare function getVenmoGmailConnectUrl(options: {
1022
1022
  payeeDetails: Hash;
1023
- /** Matching Peer web origin. HTTP is allowed only on localhost for development. */
1024
1023
  peerOrigin?: string;
1025
1024
  appearance?: VenmoGmailAppearance;
1026
- /** Optional app callback URI. Native hosts open the URL themselves; empty means no redirect. */
1027
1025
  returnUrl?: string;
1028
1026
  }): string;
1029
- /** Call from a click handler. Rejects on cancellation or verification failure, including missing Venmo receipts. */
1027
+ /** Call from a click handler; verifies receipts through Gmail, Outlook or iCloud. */
1030
1028
  declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoGmailConnectUrl>[0], 'returnUrl'> & {
1031
1029
  popup?: VenmoGmailPopupOptions;
1032
1030
  }): Promise<VenmoGmailConnectResult>;
1033
1031
 
1034
- 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, MicrosoftOAuthSellerCredentialUploadBodyByPlatform, 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, type VenmoGmailAppearance, VenmoGmailConnectError, type VenmoGmailConnectResult, type VenmoGmailPopupOptions, 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, apiUploadMicrosoftOAuthSellerCredential, 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, parseVenmoGmailAppearance, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
1032
+ declare class XMoneyConnectError extends Error {
1033
+ readonly code: string;
1034
+ constructor(code: string, message: string);
1035
+ }
1036
+ type XMoneyConnectResult = {
1037
+ payeeDetails: Hash;
1038
+ };
1039
+ type XMoneyConnectOptions = {
1040
+ payeeDetails: Hash;
1041
+ /** Registered X username, required to bind iCloud uploads to this account. */
1042
+ payeeUsername: string;
1043
+ peerOrigin?: string;
1044
+ appearance?: VenmoGmailAppearance;
1045
+ returnUrl?: string;
1046
+ };
1047
+ /** The account identity stays in the fragment, outside HTTP requests. */
1048
+ declare function getXMoneyConnectUrl(options: XMoneyConnectOptions): string;
1049
+ /** Call from a click handler; resolves only after a verified receipt connects the account. */
1050
+ declare function openXMoneyConnect(options: Omit<XMoneyConnectOptions, 'returnUrl'> & {
1051
+ popup?: VenmoGmailPopupOptions;
1052
+ }): Promise<XMoneyConnectResult>;
1053
+
1054
+ 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, MicrosoftOAuthSellerCredentialUploadBodyByPlatform, 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, type VenmoGmailAppearance, VenmoGmailConnectError, type VenmoGmailConnectResult, type VenmoGmailPopupOptions, XMoneyConnectError, type XMoneyConnectOptions, type XMoneyConnectResult, 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, apiUploadMicrosoftOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, getXMoneyConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, openXMoneyConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
package/dist/index.mjs CHANGED
@@ -2,12 +2,12 @@ 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, ContractError, 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-Q33OEQMR.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-Q33OEQMR.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-PLUTAOT5.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-PLUTAOT5.mjs';
7
7
  import { Currency, currencyKeccak256 } from './chunk-WDEEWFEU.mjs';
8
8
  export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-WDEEWFEU.mjs';
9
- import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-HG27KAGT.mjs';
10
- import { keccak256, parseUnits, concatHex, encodeFunctionData, encodeAbiParameters, createPublicClient, http, parseEventLogs, isAddressEqual, isAddress, zeroAddress, formatUnits } from 'viem';
9
+ import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-DIHRDN2W.mjs';
10
+ import { keccak256, parseUnits, concatHex, encodeFunctionData, encodeAbiParameters, createPublicClient, http, parseEventLogs, isAddressEqual, isAddress, zeroAddress, stringToBytes, formatUnits } from 'viem';
11
11
  import { hardhat, base } from 'viem/chains';
12
12
  import { hashUtf8, createNitroAttestationClient, verifySellerCredentialBundle, NitroAttestationError, createEncryptedBuyerTeeSessionMaterial as createEncryptedBuyerTeeSessionMaterial$1, createEncryptedSellerCredentialUpload } from '@zkp2p/zkp2p-attestation';
13
13
  export { createNitroAttestationClient, verifyDisputeAttestation } from '@zkp2p/zkp2p-attestation';
@@ -684,8 +684,9 @@ var usdcUnits = (amount) => {
684
684
  return parseUnits(amount.toString(), 6);
685
685
  };
686
686
  ({
687
- singleOrderDeposit: {
688
- minDeposit: usdcUnits(10)}});
687
+ orderCapDeposit: {
688
+ minOrder: usdcUnits(5),
689
+ maxOrder: usdcUnits(500)}});
689
690
  var DISPUTE_PROTECTION_STAKE_PLATFORMS = [
690
691
  PaymentPlatform.VENMO,
691
692
  PaymentPlatform.PAYPAL
@@ -1038,7 +1039,7 @@ async function withRetry(fn, maxRetries = 3, delayMs = 1e3, timeoutMs, shouldRet
1038
1039
  for (let i = 0; i < maxRetries; i++) {
1039
1040
  try {
1040
1041
  if (timeoutMs) {
1041
- const { withTimeout } = await import('./timeout-GGK4EEKQ.mjs');
1042
+ const { withTimeout } = await import('./timeout-WX76D6NU.mjs');
1042
1043
  return await withTimeout(fn(), timeoutMs, `Operation timed out after ${timeoutMs}ms`);
1043
1044
  }
1044
1045
  return await fn();
@@ -2658,7 +2659,7 @@ var ProtocolViewerReader = class {
2658
2659
  if (inputCount === null) {
2659
2660
  throw new Error("Configured ProtocolViewer ABI does not expose getDeposit");
2660
2661
  }
2661
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-6IAP5ZIJ.mjs');
2662
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-6BOFKH3F.mjs');
2662
2663
  if (inputCount >= 3) {
2663
2664
  return tryContexts(
2664
2665
  protocolViewerContexts,
@@ -2744,7 +2745,7 @@ var ProtocolViewerReader = class {
2744
2745
  return Promise.all(ids.map((id) => this.config.host.getPvDepositById(id)));
2745
2746
  }
2746
2747
  const bn = ids.map((id) => typeof id === "bigint" ? id : parseRawDepositId(id));
2747
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-6IAP5ZIJ.mjs');
2748
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-6BOFKH3F.mjs');
2748
2749
  if (inputCount >= 2) {
2749
2750
  const requests = ids.map((id, index) => ({
2750
2751
  index,
@@ -2849,7 +2850,7 @@ var ProtocolViewerReader = class {
2849
2850
  if (!protocolViewerAddress || !protocolViewerAbi || inputCount === null) {
2850
2851
  return this.config.host.getPvAccountDepositsFromIndexer(owner);
2851
2852
  }
2852
- const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-6IAP5ZIJ.mjs');
2853
+ const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-6BOFKH3F.mjs');
2853
2854
  const { address, abi } = this.config.host.requireProtocolViewer();
2854
2855
  if (inputCount >= 2) {
2855
2856
  const readAndFilter = async (raw2) => {
@@ -2920,7 +2921,7 @@ var ProtocolViewerReader = class {
2920
2921
  if (protocolViewerEntries.length === 0) {
2921
2922
  throw new Error("ProtocolViewer not available for this network");
2922
2923
  }
2923
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-6IAP5ZIJ.mjs');
2924
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-6BOFKH3F.mjs');
2924
2925
  const intentsByHash = /* @__PURE__ */ new Map();
2925
2926
  let attemptedRead = false;
2926
2927
  let hadSuccessfulRead = false;
@@ -3028,7 +3029,7 @@ var ProtocolViewerReader = class {
3028
3029
  if (protocolViewerEntries.length === 0) {
3029
3030
  throw new Error("ProtocolViewer not available for this network");
3030
3031
  }
3031
- const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-6IAP5ZIJ.mjs');
3032
+ const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-6BOFKH3F.mjs');
3032
3033
  let lastError;
3033
3034
  for (const pvEntry of protocolViewerEntries) {
3034
3035
  const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");
@@ -5593,7 +5594,7 @@ async function apiUploadMicrosoftOAuthSellerCredential(processorName, payeeDetai
5593
5594
  }
5594
5595
  async function apiUploadEmailOAuthSellerCredential(provider, processorName, payeeDetails, body, baseApiUrl, opts) {
5595
5596
  const providerName = provider === "google" ? "Google" : "Microsoft";
5596
- if (processorName !== "paypal" && processorName !== "venmo") {
5597
+ if (processorName !== "paypal" && processorName !== "venmo" && processorName !== "xmoney") {
5597
5598
  throw new ValidationError(
5598
5599
  `Unsupported ${providerName} OAuth seller credential platform: ${String(processorName)}`,
5599
5600
  "processorName"
@@ -8528,15 +8529,15 @@ var DisputeProtectionReadinessReader = class {
8528
8529
  async verifyRuntimeIdentities(names, blockNumber) {
8529
8530
  await Promise.all(
8530
8531
  names.map(async (name) => {
8531
- const identity = this.config.manifest.runtimeIdentities[name];
8532
+ const identity2 = this.config.manifest.runtimeIdentities[name];
8532
8533
  const bytecode = await this.config.publicClient.getBytecode({
8533
- address: identity.address,
8534
+ address: identity2.address,
8534
8535
  blockNumber
8535
8536
  });
8536
8537
  if (!bytecode || bytecode === "0x") {
8537
8538
  throw new ReadinessMismatch(`${name} runtime bytecode unavailable`);
8538
8539
  }
8539
- if (keccak256(bytecode).toLowerCase() !== identity.runtimeCodeHash.toLowerCase()) {
8540
+ if (keccak256(bytecode).toLowerCase() !== identity2.runtimeCodeHash.toLowerCase()) {
8540
8541
  throw new ReadinessMismatch(`${name} runtime code hash mismatch`);
8541
8542
  }
8542
8543
  })
@@ -9097,7 +9098,7 @@ function toAttestorError(error, platform, mailboxEmail) {
9097
9098
  const status = error.details?.status;
9098
9099
  const responseObject = asRecord(error.details?.responseObject);
9099
9100
  if (status === 429) return rateLimited(mailboxEmail, responseObject, error);
9100
- if (status === 400 && responseObject?.code === `${platform.toUpperCase()}_ICLOUD_RECEIPT_NOT_FOUND`) {
9101
+ if (status === 400 && responseObject?.code === (platform === "xmoney" ? "XMONEY_EMAIL_RECEIPT_NOT_FOUND" : `${platform.toUpperCase()}_ICLOUD_RECEIPT_NOT_FOUND`)) {
9101
9102
  return new ICloudMailCredentialError("receipt_not_found", error.message, {
9102
9103
  cause: error
9103
9104
  });
@@ -9191,11 +9192,11 @@ async function uploadICloudMailSellerCredential(params, context) {
9191
9192
  throw new ValidationError("appSpecificPassword is required", "appSpecificPassword");
9192
9193
  }
9193
9194
  const payeeDetails = params.payeeDetails.toLowerCase();
9194
- const payeeEmail = params.platform === "paypal" ? params.payeeEmail.trim().toLowerCase() : null;
9195
- if (payeeEmail !== null && hashUtf8(payeeEmail) !== payeeDetails) {
9195
+ const suppliedPayeeId = params.platform === "paypal" ? params.payeeEmail.trim().toLowerCase() : params.platform === "xmoney" ? params.payeeUsername.trim().replace(/^@/u, "").toLowerCase() : null;
9196
+ if (suppliedPayeeId !== null && hashUtf8(suppliedPayeeId) !== payeeDetails) {
9196
9197
  throw new ICloudMailCredentialError(
9197
9198
  "payee_mismatch",
9198
- "The PayPal email does not match the registered maker"
9199
+ params.platform === "paypal" ? "The PayPal email does not match the registered maker" : "The X username does not match the registered maker"
9199
9200
  );
9200
9201
  }
9201
9202
  const retryAt = mailboxRetryAt.get(mailboxEmail);
@@ -9210,7 +9211,7 @@ async function uploadICloudMailSellerCredential(params, context) {
9210
9211
  const environment = resolveAttestorEnvironment(context.attestationServiceUrl);
9211
9212
  mailboxesInFlight.add(mailboxEmail);
9212
9213
  try {
9213
- const payeeId = payeeEmail ?? await resolveVenmoPayeeId(payeeDetails, mailboxEmail, context);
9214
+ const payeeId = suppliedPayeeId ?? await resolveVenmoPayeeId(payeeDetails, mailboxEmail, context);
9214
9215
  let bundle;
9215
9216
  try {
9216
9217
  const nitro = createNitroAttestationClient({
@@ -12085,7 +12086,7 @@ var Zkp2pClient = class {
12085
12086
  }
12086
12087
  }
12087
12088
  });
12088
- const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-ELLII4P5.mjs');
12089
+ const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-74LZHM6Q.mjs');
12089
12090
  currencies = mapConversionRatesToOnchainMinRate2(
12090
12091
  params.conversionRates,
12091
12092
  paymentMethods.length
@@ -12519,7 +12520,7 @@ var Zkp2pClient = class {
12519
12520
  const providerName = params.provider === "google" ? "Google" : "Microsoft";
12520
12521
  if (opts?.signal?.aborted) throw new Error(`${providerName} OAuth upload cancelled.`);
12521
12522
  const platform = params.platform;
12522
- if (platform !== "paypal" && platform !== "venmo") {
12523
+ if (platform !== "paypal" && platform !== "venmo" && platform !== "xmoney") {
12523
12524
  throw new ValidationError(
12524
12525
  `Unsupported ${providerName} OAuth seller credential platform: ${String(platform)}`,
12525
12526
  "platform"
@@ -12555,7 +12556,7 @@ var Zkp2pClient = class {
12555
12556
  );
12556
12557
  }
12557
12558
  /**
12558
- * Connect an iCloud Mail receipt inbox for PayPal or Venmo seller automated
12559
+ * Connect an iCloud Mail receipt inbox for PayPal, Venmo or X Money seller automated
12559
12560
  * release. The app-specific password is encrypted to the attested enclave and
12560
12561
  * posted directly to the attestor (no proxy, no retry). The returned bundle is
12561
12562
  * verified against the pinned enclave signer, platform and registered maker,
@@ -12903,22 +12904,18 @@ function getVenmoGmailPopupSize(popup = {}) {
12903
12904
  return { width, height };
12904
12905
  }
12905
12906
 
12906
- // src/venmoGmail.ts
12907
- var VenmoGmailConnectError = class extends Error {
12908
- constructor(code, message) {
12909
- super(message);
12910
- this.code = code;
12911
- this.name = "VenmoGmailConnectError";
12912
- }
12913
- };
12914
- function getVenmoGmailConnectUrl({
12907
+ // src/mailboxConnect.ts
12908
+ function getMailboxConnectUrl({
12915
12909
  payeeDetails,
12910
+ platform,
12911
+ label,
12912
+ payeeUsername,
12916
12913
  peerOrigin = "https://app.peer.xyz",
12917
12914
  appearance,
12918
12915
  returnUrl
12919
12916
  }) {
12920
12917
  if (!/^0x[0-9a-f]{64}$/i.test(payeeDetails)) {
12921
- throw new ValidationError("Expected a Venmo payee hash", "payeeDetails");
12918
+ throw new ValidationError(`Expected a ${label} payee hash`, "payeeDetails");
12922
12919
  }
12923
12920
  let origin;
12924
12921
  try {
@@ -12929,7 +12926,7 @@ function getVenmoGmailConnectUrl({
12929
12926
  if (origin.protocol !== "https:" && !(origin.protocol === "http:" && origin.hostname === "localhost") || origin.pathname !== "/" || origin.search || origin.hash || origin.username || origin.password) {
12930
12927
  throw new ValidationError("Expected an HTTPS Peer web origin", "peerOrigin");
12931
12928
  }
12932
- const url = new URL("/connect/venmo", origin);
12929
+ const url = new URL(`/connect/${platform}`, origin);
12933
12930
  if (returnUrl) {
12934
12931
  try {
12935
12932
  new URL(returnUrl);
@@ -12940,11 +12937,11 @@ function getVenmoGmailConnectUrl({
12940
12937
  }
12941
12938
  if (appearance)
12942
12939
  url.searchParams.set("appearance", JSON.stringify(parseVenmoGmailAppearance(appearance)));
12943
- url.hash = payeeDetails;
12940
+ url.hash = payeeUsername === void 0 ? payeeDetails : new URLSearchParams({ payeeDetails, payeeUsername }).toString();
12944
12941
  return url.toString();
12945
12942
  }
12946
- function openVenmoGmailConnect(options) {
12947
- const url = new URL(getVenmoGmailConnectUrl(options));
12943
+ function openMailboxConnect(options) {
12944
+ const url = new URL(getMailboxConnectUrl(options));
12948
12945
  const { width, height } = getVenmoGmailPopupSize(options.popup);
12949
12946
  const requestId = window.crypto.randomUUID();
12950
12947
  url.searchParams.set("requestId", requestId);
@@ -12959,9 +12956,9 @@ function openVenmoGmailConnect(options) {
12959
12956
  }
12960
12957
  if (!popup) {
12961
12958
  reject(
12962
- new VenmoGmailConnectError(
12959
+ new options.ErrorClass(
12963
12960
  "popup_blocked",
12964
- "Allow popups for this site, then link Venmo again."
12961
+ `Allow popups for this site, then link ${options.label} again.`
12965
12962
  )
12966
12963
  );
12967
12964
  return;
@@ -12978,18 +12975,19 @@ function openVenmoGmailConnect(options) {
12978
12975
  const data3 = event.data;
12979
12976
  if (typeof data3 !== "object" || !data3) return;
12980
12977
  const result = data3;
12981
- if (result.type !== "peer:venmo-connect" || result.requestId !== requestId) return;
12978
+ if (result.type !== `peer:${options.platform}-connect` || result.requestId !== requestId)
12979
+ return;
12982
12980
  if (result.status === "connected" && typeof result.payeeDetails === "string" && result.payeeDetails.toLowerCase() === options.payeeDetails.toLowerCase()) {
12983
12981
  finish();
12984
12982
  } else if (result.status === "error" && typeof result.code === "string" && typeof result.message === "string") {
12985
- finish(new VenmoGmailConnectError(result.code, result.message));
12983
+ finish(new options.ErrorClass(result.code, result.message));
12986
12984
  }
12987
12985
  };
12988
12986
  const timeout = window.setTimeout(
12989
12987
  () => finish(
12990
- new VenmoGmailConnectError(
12988
+ new options.ErrorClass(
12991
12989
  "connection_timeout",
12992
- "Venmo linking timed out. Check the connection status before trying again."
12990
+ `${options.label} linking timed out. Check the connection status before trying again.`
12993
12991
  )
12994
12992
  ),
12995
12993
  10 * 60 * 1e3
@@ -12997,7 +12995,7 @@ function openVenmoGmailConnect(options) {
12997
12995
  const closedCheck = window.setInterval(() => {
12998
12996
  if (popup.closed)
12999
12997
  finish(
13000
- new VenmoGmailConnectError(
12998
+ new options.ErrorClass(
13001
12999
  "connection_closed",
13002
13000
  "The linking window closed or became unavailable. Check the connection status before trying again."
13003
13001
  )
@@ -13007,6 +13005,50 @@ function openVenmoGmailConnect(options) {
13007
13005
  });
13008
13006
  }
13009
13007
 
13010
- export { AccessPolicyOperations, AccessPolicyUnsupportedError, BASE_BUILDER_CODE, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractRouter, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ICloudMailCredentialError, 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, apiUploadMicrosoftOAuthSellerCredential, 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, isMailboxSellerCredentialType, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, peerExtensionSdk, readDisputeAttestationConfig, referrerFeeConfigToPreciseUnits, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
13008
+ // src/venmoGmail.ts
13009
+ var VenmoGmailConnectError = class extends Error {
13010
+ constructor(code, message) {
13011
+ super(message);
13012
+ this.code = code;
13013
+ this.name = "VenmoGmailConnectError";
13014
+ }
13015
+ };
13016
+ function getVenmoGmailConnectUrl(options) {
13017
+ return getMailboxConnectUrl({ ...options, platform: "venmo", label: "Venmo" });
13018
+ }
13019
+ function openVenmoGmailConnect(options) {
13020
+ return openMailboxConnect({
13021
+ ...options,
13022
+ platform: "venmo",
13023
+ label: "Venmo",
13024
+ ErrorClass: VenmoGmailConnectError
13025
+ });
13026
+ }
13027
+ var XMoneyConnectError = class extends Error {
13028
+ constructor(code, message) {
13029
+ super(message);
13030
+ this.code = code;
13031
+ this.name = "XMoneyConnectError";
13032
+ }
13033
+ };
13034
+ function identity(options) {
13035
+ const payeeUsername = options.payeeUsername.trim().replace(/^@/u, "").toLowerCase();
13036
+ if (!payeeUsername || keccak256(stringToBytes(payeeUsername)) !== options.payeeDetails.toLowerCase()) {
13037
+ throw new ValidationError("X username must match the registered payee hash", "payeeUsername");
13038
+ }
13039
+ return { ...options, payeeUsername, platform: "xmoney", label: "X Money" };
13040
+ }
13041
+ function getXMoneyConnectUrl(options) {
13042
+ return getMailboxConnectUrl(identity(options));
13043
+ }
13044
+ function openXMoneyConnect(options) {
13045
+ return openMailboxConnect({
13046
+ ...identity(options),
13047
+ popup: options.popup,
13048
+ ErrorClass: XMoneyConnectError
13049
+ });
13050
+ }
13051
+
13052
+ export { AccessPolicyOperations, AccessPolicyUnsupportedError, BASE_BUILDER_CODE, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractRouter, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ICloudMailCredentialError, 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, XMoneyConnectError, 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, apiUploadMicrosoftOAuthSellerCredential, 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, getXMoneyConnectUrl, isMailboxSellerCredentialType, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, openXMoneyConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, peerExtensionSdk, readDisputeAttestationConfig, referrerFeeConfigToPreciseUnits, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
13011
13053
  //# sourceMappingURL=index.mjs.map
13012
13054
  //# sourceMappingURL=index.mjs.map