@zkp2p/sdk 0.14.2-rc.4 → 0.14.3
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/README.md +89 -0
- package/dist/build-metadata.json +2 -2
- package/dist/{chunk-4SDRVKB5.mjs → chunk-2NJU3MGV.mjs} +3 -3
- package/dist/{chunk-4SDRVKB5.mjs.map → chunk-2NJU3MGV.mjs.map} +1 -1
- package/dist/chunk-BY77PPIP.mjs +12 -0
- package/dist/chunk-BY77PPIP.mjs.map +1 -0
- package/dist/{currency-54OSWCWH.mjs → currency-GXJH7J2W.mjs} +3 -3
- package/dist/{currency-54OSWCWH.mjs.map → currency-GXJH7J2W.mjs.map} +1 -1
- package/dist/index.cjs +108 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +50 -5
- package/dist/index.d.ts +50 -5
- package/dist/index.mjs +113 -21
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-2KR7YF7Z.mjs +5 -0
- package/dist/{protocolViewerParsers-EOX3VQES.mjs.map → protocolViewerParsers-2KR7YF7Z.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.mjs +1 -1
- package/dist/{timeout-N6XHXQRU.mjs → timeout-5O5AVII5.mjs} +3 -3
- package/dist/{timeout-N6XHXQRU.mjs.map → timeout-5O5AVII5.mjs.map} +1 -1
- package/dist/{vaultUtils-DVps_hg9.d.mts → vaultUtils-BmF7Ko7F.d.mts} +10 -3
- package/dist/{vaultUtils-DVps_hg9.d.ts → vaultUtils-BmF7Ko7F.d.ts} +10 -3
- package/package.json +1 -1
- package/dist/chunk-U555K2CU.mjs +0 -12
- package/dist/chunk-U555K2CU.mjs.map +0 -1
- package/dist/protocolViewerParsers-EOX3VQES.mjs +0 -5
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-
|
|
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-
|
|
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-BmF7Ko7F.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-BmF7Ko7F.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';
|
|
@@ -953,6 +953,46 @@ declare class ContractError extends ZKP2PError {
|
|
|
953
953
|
constructor(message: string, details?: unknown);
|
|
954
954
|
}
|
|
955
955
|
|
|
956
|
+
/** Styling for the Peer-hosted page. Colors are hex; dimensions are CSS pixels. */
|
|
957
|
+
interface VenmoGmailAppearance {
|
|
958
|
+
logoUrl?: string;
|
|
959
|
+
logoAlt?: string;
|
|
960
|
+
logoBackgroundColor?: string;
|
|
961
|
+
logoBorderColor?: string;
|
|
962
|
+
fontFamily?: string;
|
|
963
|
+
headingFontFamily?: string;
|
|
964
|
+
/** Optional hosted WOFF2/WOFF font, applied to body and heading. */
|
|
965
|
+
fontUrl?: string;
|
|
966
|
+
backgroundColor?: string;
|
|
967
|
+
cardBackgroundColor?: string;
|
|
968
|
+
textColor?: string;
|
|
969
|
+
secondaryTextColor?: string;
|
|
970
|
+
buttonColor?: string;
|
|
971
|
+
buttonTextColor?: string;
|
|
972
|
+
buttonHoverColor?: string;
|
|
973
|
+
focusColor?: string;
|
|
974
|
+
borderColor?: string;
|
|
975
|
+
successColor?: string;
|
|
976
|
+
errorColor?: string;
|
|
977
|
+
fontSize?: number;
|
|
978
|
+
headingFontSize?: number;
|
|
979
|
+
headingTextTransform?: 'none' | 'uppercase';
|
|
980
|
+
buttonTextTransform?: 'none' | 'uppercase';
|
|
981
|
+
buttonBorderRadius?: number;
|
|
982
|
+
buttonHeight?: number;
|
|
983
|
+
cardBorderRadius?: number;
|
|
984
|
+
contentWidth?: number;
|
|
985
|
+
padding?: number;
|
|
986
|
+
gap?: number;
|
|
987
|
+
logoHeight?: number;
|
|
988
|
+
}
|
|
989
|
+
interface VenmoGmailPopupOptions {
|
|
990
|
+
width?: number;
|
|
991
|
+
height?: number;
|
|
992
|
+
}
|
|
993
|
+
/** Validate both SDK input and untrusted hosted-page URL parameters. */
|
|
994
|
+
declare function parseVenmoGmailAppearance(value: unknown): VenmoGmailAppearance;
|
|
995
|
+
|
|
956
996
|
declare class VenmoGmailConnectError extends Error {
|
|
957
997
|
readonly code: string;
|
|
958
998
|
constructor(code: string, message: string);
|
|
@@ -961,12 +1001,17 @@ type VenmoGmailConnectResult = {
|
|
|
961
1001
|
payeeDetails: Hash;
|
|
962
1002
|
};
|
|
963
1003
|
/** Build a Peer-hosted link for an already-registered Venmo maker. */
|
|
964
|
-
declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, }: {
|
|
1004
|
+
declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, appearance, returnUrl, }: {
|
|
965
1005
|
payeeDetails: Hash;
|
|
966
1006
|
/** Matching Peer web origin. HTTP is allowed only on localhost for development. */
|
|
967
1007
|
peerOrigin?: string;
|
|
1008
|
+
appearance?: VenmoGmailAppearance;
|
|
1009
|
+
/** Optional app callback URI. Native hosts open the URL themselves; empty means no redirect. */
|
|
1010
|
+
returnUrl?: string;
|
|
968
1011
|
}): string;
|
|
969
1012
|
/** Call from a click handler. Rejects on cancellation or verification failure, including missing Venmo receipts. */
|
|
970
|
-
declare function openVenmoGmailConnect(options: Parameters<typeof getVenmoGmailConnectUrl>[0]
|
|
1013
|
+
declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoGmailConnectUrl>[0], 'returnUrl'> & {
|
|
1014
|
+
popup?: VenmoGmailPopupOptions;
|
|
1015
|
+
}): Promise<VenmoGmailConnectResult>;
|
|
971
1016
|
|
|
972
|
-
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialStatusResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, SellerPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, VenmoGmailConnectError, type VenmoGmailConnectResult, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetSellerCredentialStatus, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
1017
|
+
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialStatusResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, SellerPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, 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, 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 };
|
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-
|
|
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-
|
|
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-BmF7Ko7F.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-BmF7Ko7F.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';
|
|
@@ -953,6 +953,46 @@ declare class ContractError extends ZKP2PError {
|
|
|
953
953
|
constructor(message: string, details?: unknown);
|
|
954
954
|
}
|
|
955
955
|
|
|
956
|
+
/** Styling for the Peer-hosted page. Colors are hex; dimensions are CSS pixels. */
|
|
957
|
+
interface VenmoGmailAppearance {
|
|
958
|
+
logoUrl?: string;
|
|
959
|
+
logoAlt?: string;
|
|
960
|
+
logoBackgroundColor?: string;
|
|
961
|
+
logoBorderColor?: string;
|
|
962
|
+
fontFamily?: string;
|
|
963
|
+
headingFontFamily?: string;
|
|
964
|
+
/** Optional hosted WOFF2/WOFF font, applied to body and heading. */
|
|
965
|
+
fontUrl?: string;
|
|
966
|
+
backgroundColor?: string;
|
|
967
|
+
cardBackgroundColor?: string;
|
|
968
|
+
textColor?: string;
|
|
969
|
+
secondaryTextColor?: string;
|
|
970
|
+
buttonColor?: string;
|
|
971
|
+
buttonTextColor?: string;
|
|
972
|
+
buttonHoverColor?: string;
|
|
973
|
+
focusColor?: string;
|
|
974
|
+
borderColor?: string;
|
|
975
|
+
successColor?: string;
|
|
976
|
+
errorColor?: string;
|
|
977
|
+
fontSize?: number;
|
|
978
|
+
headingFontSize?: number;
|
|
979
|
+
headingTextTransform?: 'none' | 'uppercase';
|
|
980
|
+
buttonTextTransform?: 'none' | 'uppercase';
|
|
981
|
+
buttonBorderRadius?: number;
|
|
982
|
+
buttonHeight?: number;
|
|
983
|
+
cardBorderRadius?: number;
|
|
984
|
+
contentWidth?: number;
|
|
985
|
+
padding?: number;
|
|
986
|
+
gap?: number;
|
|
987
|
+
logoHeight?: number;
|
|
988
|
+
}
|
|
989
|
+
interface VenmoGmailPopupOptions {
|
|
990
|
+
width?: number;
|
|
991
|
+
height?: number;
|
|
992
|
+
}
|
|
993
|
+
/** Validate both SDK input and untrusted hosted-page URL parameters. */
|
|
994
|
+
declare function parseVenmoGmailAppearance(value: unknown): VenmoGmailAppearance;
|
|
995
|
+
|
|
956
996
|
declare class VenmoGmailConnectError extends Error {
|
|
957
997
|
readonly code: string;
|
|
958
998
|
constructor(code: string, message: string);
|
|
@@ -961,12 +1001,17 @@ type VenmoGmailConnectResult = {
|
|
|
961
1001
|
payeeDetails: Hash;
|
|
962
1002
|
};
|
|
963
1003
|
/** Build a Peer-hosted link for an already-registered Venmo maker. */
|
|
964
|
-
declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, }: {
|
|
1004
|
+
declare function getVenmoGmailConnectUrl({ payeeDetails, peerOrigin, appearance, returnUrl, }: {
|
|
965
1005
|
payeeDetails: Hash;
|
|
966
1006
|
/** Matching Peer web origin. HTTP is allowed only on localhost for development. */
|
|
967
1007
|
peerOrigin?: string;
|
|
1008
|
+
appearance?: VenmoGmailAppearance;
|
|
1009
|
+
/** Optional app callback URI. Native hosts open the URL themselves; empty means no redirect. */
|
|
1010
|
+
returnUrl?: string;
|
|
968
1011
|
}): string;
|
|
969
1012
|
/** Call from a click handler. Rejects on cancellation or verification failure, including missing Venmo receipts. */
|
|
970
|
-
declare function openVenmoGmailConnect(options: Parameters<typeof getVenmoGmailConnectUrl>[0]
|
|
1013
|
+
declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoGmailConnectUrl>[0], 'returnUrl'> & {
|
|
1014
|
+
popup?: VenmoGmailPopupOptions;
|
|
1015
|
+
}): Promise<VenmoGmailConnectResult>;
|
|
971
1016
|
|
|
972
|
-
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialStatusResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, SellerPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, VenmoGmailConnectError, type VenmoGmailConnectResult, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetSellerCredentialStatus, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
1017
|
+
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialStatusResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, SellerPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, 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, 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 };
|
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-
|
|
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-
|
|
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-2NJU3MGV.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-2NJU3MGV.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-
|
|
9
|
+
import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-BY77PPIP.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-
|
|
360
|
+
const { withTimeout } = await import('./timeout-5O5AVII5.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-
|
|
1930
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-2KR7YF7Z.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-
|
|
2016
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-2KR7YF7Z.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-
|
|
2121
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-2KR7YF7Z.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-
|
|
2192
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-2KR7YF7Z.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-
|
|
2300
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-2KR7YF7Z.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
|
|
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
|
|
6215
|
+
/** Configure the fixed Peer Pay deposit whitelist for a sell deposit. */
|
|
6200
6216
|
prepareConfigurePeerPayMerchantDeposit(params) {
|
|
6201
|
-
const
|
|
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, [
|
|
6220
|
+
[params.escrow, params.depositId, params.paymentMethod, true, [depositWhitelistGroupId], []],
|
|
6209
6221
|
params.txOverrides
|
|
6210
6222
|
);
|
|
6211
6223
|
}
|
|
@@ -11541,7 +11553,7 @@ var Zkp2pClient = class {
|
|
|
11541
11553
|
}
|
|
11542
11554
|
}
|
|
11543
11555
|
});
|
|
11544
|
-
const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-
|
|
11556
|
+
const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-GXJH7J2W.mjs');
|
|
11545
11557
|
currencies = mapConversionRatesToOnchainMinRate2(
|
|
11546
11558
|
params.conversionRates,
|
|
11547
11559
|
paymentMethods.length
|
|
@@ -12251,6 +12263,73 @@ function selectRiskMode(amount, freeStake, disputeProtected) {
|
|
|
12251
12263
|
throw new RangeError("insufficient free stake for dispute-protected admission");
|
|
12252
12264
|
}
|
|
12253
12265
|
|
|
12266
|
+
// src/venmoGmailAppearance.ts
|
|
12267
|
+
var color = (value) => typeof value === "string" && /^#(?:[\da-f]{3}|[\da-f]{6})$/i.test(value);
|
|
12268
|
+
var pixels = (min, max) => (value) => typeof value === "number" && Number.isFinite(value) && value >= min && value <= max;
|
|
12269
|
+
var font = (value) => typeof value === "string" && value.length <= 160 && /^[\w\s,"'-]+$/.test(value);
|
|
12270
|
+
var transform = (value) => value === "none" || value === "uppercase";
|
|
12271
|
+
var assetUrl = (value) => {
|
|
12272
|
+
if (typeof value !== "string" || value.length > 2048) return false;
|
|
12273
|
+
try {
|
|
12274
|
+
const url = new URL(value);
|
|
12275
|
+
return !url.username && !url.password && (url.protocol === "https:" || url.protocol === "http:" && url.hostname === "localhost");
|
|
12276
|
+
} catch {
|
|
12277
|
+
return false;
|
|
12278
|
+
}
|
|
12279
|
+
};
|
|
12280
|
+
var fields = {
|
|
12281
|
+
logoUrl: assetUrl,
|
|
12282
|
+
logoBackgroundColor: color,
|
|
12283
|
+
logoBorderColor: color,
|
|
12284
|
+
logoAlt: (value) => typeof value === "string" && value.length <= 80,
|
|
12285
|
+
fontUrl: assetUrl,
|
|
12286
|
+
fontFamily: font,
|
|
12287
|
+
headingFontFamily: font,
|
|
12288
|
+
backgroundColor: color,
|
|
12289
|
+
cardBackgroundColor: color,
|
|
12290
|
+
textColor: color,
|
|
12291
|
+
secondaryTextColor: color,
|
|
12292
|
+
buttonColor: color,
|
|
12293
|
+
buttonTextColor: color,
|
|
12294
|
+
buttonHoverColor: color,
|
|
12295
|
+
focusColor: color,
|
|
12296
|
+
borderColor: color,
|
|
12297
|
+
successColor: color,
|
|
12298
|
+
errorColor: color,
|
|
12299
|
+
fontSize: pixels(12, 24),
|
|
12300
|
+
headingFontSize: pixels(20, 48),
|
|
12301
|
+
headingTextTransform: transform,
|
|
12302
|
+
buttonTextTransform: transform,
|
|
12303
|
+
buttonBorderRadius: pixels(0, 40),
|
|
12304
|
+
buttonHeight: pixels(44, 80),
|
|
12305
|
+
cardBorderRadius: pixels(0, 40),
|
|
12306
|
+
contentWidth: pixels(280, 960),
|
|
12307
|
+
padding: pixels(16, 64),
|
|
12308
|
+
gap: pixels(12, 48),
|
|
12309
|
+
logoHeight: pixels(24, 80)
|
|
12310
|
+
};
|
|
12311
|
+
function parseVenmoGmailAppearance(value) {
|
|
12312
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
12313
|
+
throw new ValidationError("Expected a Venmo appearance object", "appearance");
|
|
12314
|
+
}
|
|
12315
|
+
const entries = Object.entries(value).filter(
|
|
12316
|
+
([key]) => Object.prototype.hasOwnProperty.call(fields, key)
|
|
12317
|
+
);
|
|
12318
|
+
for (const [key, item] of entries) {
|
|
12319
|
+
if (!fields[key](item)) {
|
|
12320
|
+
throw new ValidationError(`Invalid Venmo appearance option: ${key}`, `appearance.${key}`);
|
|
12321
|
+
}
|
|
12322
|
+
}
|
|
12323
|
+
return Object.fromEntries(entries);
|
|
12324
|
+
}
|
|
12325
|
+
function getVenmoGmailPopupSize(popup = {}) {
|
|
12326
|
+
const { width = 500, height = 700 } = popup;
|
|
12327
|
+
if (!pixels(320, 1200)(width) || !pixels(480, 1600)(height)) {
|
|
12328
|
+
throw new ValidationError("Popup width must be 320\u20131200 and height 480\u20131600 pixels", "popup");
|
|
12329
|
+
}
|
|
12330
|
+
return { width, height };
|
|
12331
|
+
}
|
|
12332
|
+
|
|
12254
12333
|
// src/venmoGmail.ts
|
|
12255
12334
|
var VenmoGmailConnectError = class extends Error {
|
|
12256
12335
|
constructor(code, message) {
|
|
@@ -12261,7 +12340,9 @@ var VenmoGmailConnectError = class extends Error {
|
|
|
12261
12340
|
};
|
|
12262
12341
|
function getVenmoGmailConnectUrl({
|
|
12263
12342
|
payeeDetails,
|
|
12264
|
-
peerOrigin = "https://app.peer.xyz"
|
|
12343
|
+
peerOrigin = "https://app.peer.xyz",
|
|
12344
|
+
appearance,
|
|
12345
|
+
returnUrl
|
|
12265
12346
|
}) {
|
|
12266
12347
|
if (!/^0x[0-9a-f]{64}$/i.test(payeeDetails)) {
|
|
12267
12348
|
throw new ValidationError("Expected a Venmo payee hash", "payeeDetails");
|
|
@@ -12276,18 +12357,29 @@ function getVenmoGmailConnectUrl({
|
|
|
12276
12357
|
throw new ValidationError("Expected an HTTPS Peer web origin", "peerOrigin");
|
|
12277
12358
|
}
|
|
12278
12359
|
const url = new URL("/connect/venmo", origin);
|
|
12360
|
+
if (returnUrl) {
|
|
12361
|
+
try {
|
|
12362
|
+
new URL(returnUrl);
|
|
12363
|
+
} catch {
|
|
12364
|
+
throw new ValidationError("Expected an absolute app callback URI", "returnUrl");
|
|
12365
|
+
}
|
|
12366
|
+
url.searchParams.set("returnUrl", returnUrl);
|
|
12367
|
+
}
|
|
12368
|
+
if (appearance)
|
|
12369
|
+
url.searchParams.set("appearance", JSON.stringify(parseVenmoGmailAppearance(appearance)));
|
|
12279
12370
|
url.hash = payeeDetails;
|
|
12280
12371
|
return url.toString();
|
|
12281
12372
|
}
|
|
12282
12373
|
function openVenmoGmailConnect(options) {
|
|
12283
12374
|
const url = new URL(getVenmoGmailConnectUrl(options));
|
|
12375
|
+
const { width, height } = getVenmoGmailPopupSize(options.popup);
|
|
12284
12376
|
const requestId = window.crypto.randomUUID();
|
|
12285
12377
|
url.searchParams.set("requestId", requestId);
|
|
12286
12378
|
url.searchParams.set("hostOrigin", window.location.origin);
|
|
12287
12379
|
return new Promise((resolve, reject) => {
|
|
12288
12380
|
let popup;
|
|
12289
12381
|
try {
|
|
12290
|
-
const features = window.matchMedia("(max-width: 600px)").matches ? void 0 :
|
|
12382
|
+
const features = window.matchMedia("(max-width: 600px)").matches ? void 0 : `popup,width=${width},height=${height}`;
|
|
12291
12383
|
popup = window.open(url.toString(), "_blank", features);
|
|
12292
12384
|
} catch {
|
|
12293
12385
|
popup = null;
|
|
@@ -12342,6 +12434,6 @@ function openVenmoGmailConnect(options) {
|
|
|
12342
12434
|
});
|
|
12343
12435
|
}
|
|
12344
12436
|
|
|
12345
|
-
export { AccessPolicyOperations, AccessPolicyUnsupportedError, BASE_BUILDER_CODE, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractRouter, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, IndexerClient, IndexerDepositService, IndexerRateManagerService, IndexerStakingService, Zkp2pClient as OfframpClient, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, TOKEN_METADATA, VenmoGmailConnectError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, Zkp2pClient, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetSellerCredentialStatus, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, assertValidReferrerFeeConfig, buildStakingEntityIds, calculateRequiredCoverage, calculateStakeBackedCapacity, compareEventCursorIdsByRecency, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, defaultIndexerEndpoint, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, fetchFulfillmentAndPayment as fetchIndexerFulfillmentAndPayment, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, peerExtensionSdk, readDisputeAttestationConfig, referrerFeeConfigToPreciseUnits, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
12437
|
+
export { AccessPolicyOperations, AccessPolicyUnsupportedError, BASE_BUILDER_CODE, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractRouter, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, IndexerClient, IndexerDepositService, IndexerRateManagerService, IndexerStakingService, Zkp2pClient as OfframpClient, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, TOKEN_METADATA, VenmoGmailConnectError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, Zkp2pClient, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetSellerCredentialStatus, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, assertValidReferrerFeeConfig, buildStakingEntityIds, calculateRequiredCoverage, calculateStakeBackedCapacity, compareEventCursorIdsByRecency, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, defaultIndexerEndpoint, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, fetchFulfillmentAndPayment as fetchIndexerFulfillmentAndPayment, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, peerExtensionSdk, readDisputeAttestationConfig, referrerFeeConfigToPreciseUnits, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
12346
12438
|
//# sourceMappingURL=index.mjs.map
|
|
12347
12439
|
//# sourceMappingURL=index.mjs.map
|