@zkp2p/sdk 0.14.6 → 0.14.7-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/dist/build-metadata.json +2 -2
- package/dist/chunk-35IHGX4I.mjs +12 -0
- package/dist/chunk-35IHGX4I.mjs.map +1 -0
- package/dist/{chunk-PT56GEQ4.mjs → chunk-UQ4YSOEL.mjs} +3 -3
- package/dist/{chunk-PT56GEQ4.mjs.map → chunk-UQ4YSOEL.mjs.map} +1 -1
- package/dist/{currency-OXHRXRZK.mjs → currency-5JVD64RX.mjs} +3 -3
- package/dist/{currency-OXHRXRZK.mjs.map → currency-5JVD64RX.mjs.map} +1 -1
- package/dist/index.cjs +275 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +280 -14
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-MQMGKRVV.mjs +5 -0
- package/dist/{protocolViewerParsers-L64CKN7P.mjs.map → protocolViewerParsers-MQMGKRVV.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-5R4PPJPO.mjs → timeout-3KQIWN2D.mjs} +3 -3
- package/dist/{timeout-5R4PPJPO.mjs.map → timeout-3KQIWN2D.mjs.map} +1 -1
- package/dist/{vaultUtils-Cg9_7sMz.d.mts → vaultUtils-D-vYN77-.d.mts} +75 -1
- package/dist/{vaultUtils-Cg9_7sMz.d.ts → vaultUtils-D-vYN77-.d.ts} +75 -1
- package/package.json +1 -1
- package/dist/chunk-BBPE3X6U.mjs +0 -12
- package/dist/chunk-BBPE3X6U.mjs.map +0 -1
- package/dist/protocolViewerParsers-L64CKN7P.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, 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-
|
|
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, 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, 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, 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-
|
|
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-D-vYN77-.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-D-vYN77-.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';
|
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-
|
|
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, 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, 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, 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-
|
|
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-D-vYN77-.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-D-vYN77-.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';
|
package/dist/index.mjs
CHANGED
|
@@ -2,14 +2,14 @@ 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-
|
|
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-UQ4YSOEL.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-UQ4YSOEL.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-
|
|
9
|
+
import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-35IHGX4I.mjs';
|
|
10
10
|
import { keccak256, concatHex, encodeFunctionData, encodeAbiParameters, createPublicClient, http, parseEventLogs, isAddressEqual, isAddress, zeroAddress, formatUnits } from 'viem';
|
|
11
11
|
import { hardhat, base } from 'viem/chains';
|
|
12
|
-
import { createEncryptedBuyerTeeSessionMaterial as createEncryptedBuyerTeeSessionMaterial$1, createEncryptedSellerCredentialUpload } from '@zkp2p/zkp2p-attestation';
|
|
12
|
+
import { hashUtf8, createNitroAttestationClient, verifySellerCredentialBundle, NitroAttestationError, createEncryptedBuyerTeeSessionMaterial as createEncryptedBuyerTeeSessionMaterial$1, createEncryptedSellerCredentialUpload } from '@zkp2p/zkp2p-attestation';
|
|
13
13
|
export { createNitroAttestationClient, verifyDisputeAttestation } from '@zkp2p/zkp2p-attestation';
|
|
14
14
|
import { AbiCoder } from 'ethers';
|
|
15
15
|
import { Attribution } from 'ox/erc8021';
|
|
@@ -978,7 +978,7 @@ async function withRetry(fn, maxRetries = 3, delayMs = 1e3, timeoutMs, shouldRet
|
|
|
978
978
|
for (let i = 0; i < maxRetries; i++) {
|
|
979
979
|
try {
|
|
980
980
|
if (timeoutMs) {
|
|
981
|
-
const { withTimeout } = await import('./timeout-
|
|
981
|
+
const { withTimeout } = await import('./timeout-3KQIWN2D.mjs');
|
|
982
982
|
return await withTimeout(fn(), timeoutMs, `Operation timed out after ${timeoutMs}ms`);
|
|
983
983
|
}
|
|
984
984
|
return await fn();
|
|
@@ -2597,7 +2597,7 @@ var ProtocolViewerReader = class {
|
|
|
2597
2597
|
if (inputCount === null) {
|
|
2598
2598
|
throw new Error("Configured ProtocolViewer ABI does not expose getDeposit");
|
|
2599
2599
|
}
|
|
2600
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2600
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-MQMGKRVV.mjs');
|
|
2601
2601
|
if (inputCount >= 3) {
|
|
2602
2602
|
return tryContexts(
|
|
2603
2603
|
protocolViewerContexts,
|
|
@@ -2683,7 +2683,7 @@ var ProtocolViewerReader = class {
|
|
|
2683
2683
|
return Promise.all(ids.map((id) => this.config.host.getPvDepositById(id)));
|
|
2684
2684
|
}
|
|
2685
2685
|
const bn = ids.map((id) => typeof id === "bigint" ? id : parseRawDepositId(id));
|
|
2686
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2686
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-MQMGKRVV.mjs');
|
|
2687
2687
|
if (inputCount >= 2) {
|
|
2688
2688
|
const requests = ids.map((id, index) => ({
|
|
2689
2689
|
index,
|
|
@@ -2788,7 +2788,7 @@ var ProtocolViewerReader = class {
|
|
|
2788
2788
|
if (!protocolViewerAddress || !protocolViewerAbi || inputCount === null) {
|
|
2789
2789
|
return this.config.host.getPvAccountDepositsFromIndexer(owner);
|
|
2790
2790
|
}
|
|
2791
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2791
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-MQMGKRVV.mjs');
|
|
2792
2792
|
const { address, abi } = this.config.host.requireProtocolViewer();
|
|
2793
2793
|
if (inputCount >= 2) {
|
|
2794
2794
|
const readAndFilter = async (raw2) => {
|
|
@@ -2859,7 +2859,7 @@ var ProtocolViewerReader = class {
|
|
|
2859
2859
|
if (protocolViewerEntries.length === 0) {
|
|
2860
2860
|
throw new Error("ProtocolViewer not available for this network");
|
|
2861
2861
|
}
|
|
2862
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
2862
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-MQMGKRVV.mjs');
|
|
2863
2863
|
const intentsByHash = /* @__PURE__ */ new Map();
|
|
2864
2864
|
let attemptedRead = false;
|
|
2865
2865
|
let hadSuccessfulRead = false;
|
|
@@ -2967,7 +2967,7 @@ var ProtocolViewerReader = class {
|
|
|
2967
2967
|
if (protocolViewerEntries.length === 0) {
|
|
2968
2968
|
throw new Error("ProtocolViewer not available for this network");
|
|
2969
2969
|
}
|
|
2970
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
2970
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-MQMGKRVV.mjs');
|
|
2971
2971
|
let lastError;
|
|
2972
2972
|
for (const pvEntry of protocolViewerEntries) {
|
|
2973
2973
|
const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");
|
|
@@ -5497,7 +5497,7 @@ async function apiUpdateReferralCode(req, opts) {
|
|
|
5497
5497
|
});
|
|
5498
5498
|
return unwrapResponseObject(response);
|
|
5499
5499
|
}
|
|
5500
|
-
async function apiUploadSellerCredential(processorName, payeeDetails, bundle, baseApiUrl, timeoutMs, authorizationToken) {
|
|
5500
|
+
async function apiUploadSellerCredential(processorName, payeeDetails, bundle, baseApiUrl, timeoutMs, authorizationToken, retryCount) {
|
|
5501
5501
|
const endpoint = `/v2/makers/${encodeURIComponent(processorName)}/${encodeURIComponent(
|
|
5502
5502
|
payeeDetails
|
|
5503
5503
|
)}/seller-credential`;
|
|
@@ -5506,7 +5506,8 @@ async function apiUploadSellerCredential(processorName, payeeDetails, bundle, ba
|
|
|
5506
5506
|
method: "POST",
|
|
5507
5507
|
body: bundle,
|
|
5508
5508
|
timeoutMs,
|
|
5509
|
-
authorizationToken
|
|
5509
|
+
authorizationToken,
|
|
5510
|
+
retryCount
|
|
5510
5511
|
});
|
|
5511
5512
|
}
|
|
5512
5513
|
async function apiUploadGoogleOAuthSellerCredential(processorName, payeeDetails, body, baseApiUrl, opts) {
|
|
@@ -5577,6 +5578,15 @@ async function apiGetSellerCredentialStatus(processorName, payeeDetails, baseApi
|
|
|
5577
5578
|
timeoutMs
|
|
5578
5579
|
});
|
|
5579
5580
|
}
|
|
5581
|
+
async function apiGetVenmoPayeeId(payeeDetails, baseApiUrl, timeoutMs) {
|
|
5582
|
+
return apiFetch({
|
|
5583
|
+
url: `${withApiBase(baseApiUrl)}/v2/makers/venmo/${encodeURIComponent(payeeDetails)}/payee-id`,
|
|
5584
|
+
method: "GET",
|
|
5585
|
+
timeoutMs,
|
|
5586
|
+
// Shares Curator's seller-credential limit with the upload; a 429 returns to the user.
|
|
5587
|
+
retryCount: 1
|
|
5588
|
+
});
|
|
5589
|
+
}
|
|
5580
5590
|
async function apiVerifySellerPayment(platform, req, baseApiUrl, timeoutMs, apiKey) {
|
|
5581
5591
|
const body = {
|
|
5582
5592
|
txId: req.txId,
|
|
@@ -8972,6 +8982,236 @@ async function fetchFulfillmentAndPayment(client, intentHash) {
|
|
|
8972
8982
|
variables: { intentHash }
|
|
8973
8983
|
});
|
|
8974
8984
|
}
|
|
8985
|
+
var ICloudMailCredentialError = class extends Error {
|
|
8986
|
+
constructor(reason, message, options = {}) {
|
|
8987
|
+
super(message);
|
|
8988
|
+
this.reason = reason;
|
|
8989
|
+
this.name = "ICloudMailCredentialError";
|
|
8990
|
+
this.retryAfterMs = options.retryAfterMs;
|
|
8991
|
+
this.cause = options.cause;
|
|
8992
|
+
}
|
|
8993
|
+
};
|
|
8994
|
+
var MAILBOX_SELLER_CREDENTIAL_TYPES = /* @__PURE__ */ new Set([
|
|
8995
|
+
"google_oauth",
|
|
8996
|
+
"microsoft_oauth",
|
|
8997
|
+
"icloud_mail"
|
|
8998
|
+
]);
|
|
8999
|
+
var isMailboxSellerCredentialType = (credentialType) => typeof credentialType === "string" && MAILBOX_SELLER_CREDENTIAL_TYPES.has(credentialType);
|
|
9000
|
+
var ATTESTOR_ENVIRONMENTS = {
|
|
9001
|
+
"attestation-service.zkp2p.xyz": "production",
|
|
9002
|
+
"attestation-service-staging.zkp2p.xyz": "staging"
|
|
9003
|
+
};
|
|
9004
|
+
var SELLER_CREDENTIAL_SIGNERS = {
|
|
9005
|
+
production: "0xe078d93bfdd87a8c5c5cca5905dcba0dd7a1f0bd",
|
|
9006
|
+
staging: "0x66649f896521b0fb487fe2077b4fbda283d7f19a"
|
|
9007
|
+
};
|
|
9008
|
+
var ATTESTOR_TIMEOUT_MS = 2e4;
|
|
9009
|
+
var DEFAULT_RETRY_AFTER_MS = 6e4;
|
|
9010
|
+
var mailboxesInFlight = /* @__PURE__ */ new Set();
|
|
9011
|
+
var mailboxRetryAt = /* @__PURE__ */ new Map();
|
|
9012
|
+
var asRecord = (value) => typeof value === "object" && value !== null ? value : null;
|
|
9013
|
+
function rateLimited(mailboxEmail, responseObject, cause) {
|
|
9014
|
+
const seconds = responseObject?.retryAfterSeconds;
|
|
9015
|
+
const retryAfterMs = typeof seconds === "string" && /^\d+$/.test(seconds) ? Number(seconds) * 1e3 : DEFAULT_RETRY_AFTER_MS;
|
|
9016
|
+
mailboxRetryAt.set(mailboxEmail, Date.now() + retryAfterMs);
|
|
9017
|
+
return new ICloudMailCredentialError("rate_limited", "iCloud Mail is rate limited", {
|
|
9018
|
+
retryAfterMs,
|
|
9019
|
+
cause
|
|
9020
|
+
});
|
|
9021
|
+
}
|
|
9022
|
+
function toAttestorError(error, platform, mailboxEmail) {
|
|
9023
|
+
if (!(error instanceof NitroAttestationError)) {
|
|
9024
|
+
return new ICloudMailCredentialError("unavailable", "iCloud Mail upload failed", {
|
|
9025
|
+
cause: error
|
|
9026
|
+
});
|
|
9027
|
+
}
|
|
9028
|
+
if (error.code === "TIMEOUT" || error.code === "ATTESTATION_FETCH_FAILED") {
|
|
9029
|
+
return new ICloudMailCredentialError("unavailable", error.message, { cause: error });
|
|
9030
|
+
}
|
|
9031
|
+
if (error.code !== "SERVICE_RESPONSE_ERROR") {
|
|
9032
|
+
return new ICloudMailCredentialError("bundle_unverified", error.message, {
|
|
9033
|
+
cause: error
|
|
9034
|
+
});
|
|
9035
|
+
}
|
|
9036
|
+
const status = error.details?.status;
|
|
9037
|
+
const responseObject = asRecord(error.details?.responseObject);
|
|
9038
|
+
if (status === 429) return rateLimited(mailboxEmail, responseObject, error);
|
|
9039
|
+
if (status === 400 && responseObject?.code === `${platform.toUpperCase()}_ICLOUD_RECEIPT_NOT_FOUND`) {
|
|
9040
|
+
return new ICloudMailCredentialError("receipt_not_found", error.message, {
|
|
9041
|
+
cause: error
|
|
9042
|
+
});
|
|
9043
|
+
}
|
|
9044
|
+
if (status === 410) {
|
|
9045
|
+
return new ICloudMailCredentialError("app_password_rejected", error.message, {
|
|
9046
|
+
cause: error
|
|
9047
|
+
});
|
|
9048
|
+
}
|
|
9049
|
+
return new ICloudMailCredentialError(
|
|
9050
|
+
typeof status === "number" && status >= 500 ? "unavailable" : "upload_rejected",
|
|
9051
|
+
error.message,
|
|
9052
|
+
{ cause: error }
|
|
9053
|
+
);
|
|
9054
|
+
}
|
|
9055
|
+
var curatorResponseBody = (error) => asRecord(asRecord(error.details)?.responseBody);
|
|
9056
|
+
var VENMO_PAYEE_LOOKUP_ERRORS = /* @__PURE__ */ new Map([
|
|
9057
|
+
["maker_not_found", "maker_not_found"],
|
|
9058
|
+
["venmo_user_not_found", "payee_not_found"],
|
|
9059
|
+
["venmo_account_id_mismatch", "payee_mismatch"]
|
|
9060
|
+
]);
|
|
9061
|
+
function toVenmoPayeeLookupError(error, mailboxEmail) {
|
|
9062
|
+
if (error instanceof APIError) {
|
|
9063
|
+
const responseBody = curatorResponseBody(error);
|
|
9064
|
+
const reason = VENMO_PAYEE_LOOKUP_ERRORS.get(responseBody?.errorCode);
|
|
9065
|
+
if (reason) return new ICloudMailCredentialError(reason, error.message, { cause: error });
|
|
9066
|
+
if (error.status === 429) {
|
|
9067
|
+
return rateLimited(mailboxEmail, asRecord(responseBody?.responseObject), error);
|
|
9068
|
+
}
|
|
9069
|
+
}
|
|
9070
|
+
return new ICloudMailCredentialError("unavailable", "Venmo account lookup failed", {
|
|
9071
|
+
cause: error
|
|
9072
|
+
});
|
|
9073
|
+
}
|
|
9074
|
+
function toCuratorError(error, mailboxEmail) {
|
|
9075
|
+
if (error instanceof APIError) {
|
|
9076
|
+
if (error.status === 404) {
|
|
9077
|
+
return new ICloudMailCredentialError("maker_not_found", error.message, {
|
|
9078
|
+
cause: error
|
|
9079
|
+
});
|
|
9080
|
+
}
|
|
9081
|
+
if (error.status === 401 || error.status === 403) {
|
|
9082
|
+
return new ICloudMailCredentialError("auth_required", error.message, {
|
|
9083
|
+
cause: error
|
|
9084
|
+
});
|
|
9085
|
+
}
|
|
9086
|
+
if (error.status === 429) {
|
|
9087
|
+
const responseObject = asRecord(curatorResponseBody(error)?.responseObject);
|
|
9088
|
+
return rateLimited(mailboxEmail, responseObject, error);
|
|
9089
|
+
}
|
|
9090
|
+
}
|
|
9091
|
+
if (error instanceof NetworkError) {
|
|
9092
|
+
return new ICloudMailCredentialError("unavailable", error.message, { cause: error });
|
|
9093
|
+
}
|
|
9094
|
+
return new ICloudMailCredentialError(
|
|
9095
|
+
"store_failed",
|
|
9096
|
+
"Curator did not store the iCloud credential",
|
|
9097
|
+
{
|
|
9098
|
+
cause: error
|
|
9099
|
+
}
|
|
9100
|
+
);
|
|
9101
|
+
}
|
|
9102
|
+
async function resolveVenmoPayeeId(payeeDetails, mailboxEmail, context) {
|
|
9103
|
+
let payeeId;
|
|
9104
|
+
try {
|
|
9105
|
+
const response = await apiGetVenmoPayeeId(payeeDetails, context.baseApiUrl, context.timeoutMs);
|
|
9106
|
+
payeeId = response.responseObject?.payeeId;
|
|
9107
|
+
} catch (error) {
|
|
9108
|
+
throw toVenmoPayeeLookupError(error, mailboxEmail);
|
|
9109
|
+
}
|
|
9110
|
+
if (typeof payeeId !== "string" || hashUtf8(payeeId) !== payeeDetails) {
|
|
9111
|
+
throw new ICloudMailCredentialError(
|
|
9112
|
+
"payee_mismatch",
|
|
9113
|
+
"Curator returned a Venmo account that does not match the registered maker"
|
|
9114
|
+
);
|
|
9115
|
+
}
|
|
9116
|
+
return payeeId;
|
|
9117
|
+
}
|
|
9118
|
+
function resolveAttestorEnvironment(attestationServiceUrl) {
|
|
9119
|
+
const environment = ATTESTOR_ENVIRONMENTS[new URL(attestationServiceUrl).hostname];
|
|
9120
|
+
if (!environment) {
|
|
9121
|
+
throw new Error(`Unsupported iCloud Mail attestor: ${attestationServiceUrl}`);
|
|
9122
|
+
}
|
|
9123
|
+
return environment;
|
|
9124
|
+
}
|
|
9125
|
+
async function uploadICloudMailSellerCredential(params, context) {
|
|
9126
|
+
const { appSpecificPassword, platform } = params;
|
|
9127
|
+
const mailboxEmail = params.mailboxEmail.trim().toLowerCase();
|
|
9128
|
+
if (!mailboxEmail) throw new ValidationError("mailboxEmail is required", "mailboxEmail");
|
|
9129
|
+
if (!appSpecificPassword) {
|
|
9130
|
+
throw new ValidationError("appSpecificPassword is required", "appSpecificPassword");
|
|
9131
|
+
}
|
|
9132
|
+
const payeeDetails = params.payeeDetails.toLowerCase();
|
|
9133
|
+
const payeeEmail = params.platform === "paypal" ? params.payeeEmail.trim().toLowerCase() : null;
|
|
9134
|
+
if (payeeEmail !== null && hashUtf8(payeeEmail) !== payeeDetails) {
|
|
9135
|
+
throw new ICloudMailCredentialError(
|
|
9136
|
+
"payee_mismatch",
|
|
9137
|
+
"The PayPal email does not match the registered maker"
|
|
9138
|
+
);
|
|
9139
|
+
}
|
|
9140
|
+
const retryAt = mailboxRetryAt.get(mailboxEmail);
|
|
9141
|
+
if (retryAt !== void 0 && retryAt > Date.now()) {
|
|
9142
|
+
throw new ICloudMailCredentialError("rate_limited", "iCloud Mail is rate limited", {
|
|
9143
|
+
retryAfterMs: retryAt - Date.now()
|
|
9144
|
+
});
|
|
9145
|
+
}
|
|
9146
|
+
if (mailboxesInFlight.has(mailboxEmail)) {
|
|
9147
|
+
throw new ICloudMailCredentialError("mailbox_busy", "This mailbox is already connecting");
|
|
9148
|
+
}
|
|
9149
|
+
const environment = resolveAttestorEnvironment(context.attestationServiceUrl);
|
|
9150
|
+
mailboxesInFlight.add(mailboxEmail);
|
|
9151
|
+
try {
|
|
9152
|
+
const payeeId = payeeEmail ?? await resolveVenmoPayeeId(payeeDetails, mailboxEmail, context);
|
|
9153
|
+
let bundle;
|
|
9154
|
+
try {
|
|
9155
|
+
const nitro = createNitroAttestationClient({
|
|
9156
|
+
environment,
|
|
9157
|
+
attestationServiceUrl: context.attestationServiceUrl,
|
|
9158
|
+
timeoutMs: ATTESTOR_TIMEOUT_MS,
|
|
9159
|
+
...context.attestationRuntime
|
|
9160
|
+
});
|
|
9161
|
+
bundle = await nitro.uploadSellerCredential({
|
|
9162
|
+
platform,
|
|
9163
|
+
payeeId,
|
|
9164
|
+
sessionMaterial: { credentialSource: "icloud_mail", mailboxEmail, appSpecificPassword }
|
|
9165
|
+
});
|
|
9166
|
+
} catch (error) {
|
|
9167
|
+
throw toAttestorError(error, platform, mailboxEmail);
|
|
9168
|
+
}
|
|
9169
|
+
try {
|
|
9170
|
+
verifySellerCredentialBundle(bundle, {
|
|
9171
|
+
trustedSigners: [SELLER_CREDENTIAL_SIGNERS[environment]],
|
|
9172
|
+
expectedPlatform: platform,
|
|
9173
|
+
expectedPayeeIdHash: payeeDetails
|
|
9174
|
+
});
|
|
9175
|
+
} catch (error) {
|
|
9176
|
+
throw new ICloudMailCredentialError(
|
|
9177
|
+
"bundle_unverified",
|
|
9178
|
+
"Seller credential bundle failed verification",
|
|
9179
|
+
{ cause: error }
|
|
9180
|
+
);
|
|
9181
|
+
}
|
|
9182
|
+
if (bundle.credentialType !== "icloud_mail") {
|
|
9183
|
+
throw new ICloudMailCredentialError(
|
|
9184
|
+
"bundle_unverified",
|
|
9185
|
+
`Attestor returned credential type ${bundle.credentialType}`
|
|
9186
|
+
);
|
|
9187
|
+
}
|
|
9188
|
+
let stored;
|
|
9189
|
+
try {
|
|
9190
|
+
const response = await apiUploadSellerCredential(
|
|
9191
|
+
platform,
|
|
9192
|
+
payeeDetails,
|
|
9193
|
+
bundle,
|
|
9194
|
+
context.baseApiUrl,
|
|
9195
|
+
context.timeoutMs,
|
|
9196
|
+
context.authorizationToken,
|
|
9197
|
+
// Send once: a 429 or lost response returns to the user, who retries.
|
|
9198
|
+
1
|
|
9199
|
+
);
|
|
9200
|
+
stored = response.success ? response.responseObject : null;
|
|
9201
|
+
} catch (error) {
|
|
9202
|
+
throw toCuratorError(error, mailboxEmail);
|
|
9203
|
+
}
|
|
9204
|
+
if (stored?.status !== "active" || stored.credentialType !== "icloud_mail" || stored.platform !== platform || stored.payeeIdHash.toLowerCase() !== payeeDetails) {
|
|
9205
|
+
throw new ICloudMailCredentialError(
|
|
9206
|
+
"store_failed",
|
|
9207
|
+
"Curator did not store an active iCloud credential"
|
|
9208
|
+
);
|
|
9209
|
+
}
|
|
9210
|
+
return stored;
|
|
9211
|
+
} finally {
|
|
9212
|
+
mailboxesInFlight.delete(mailboxEmail);
|
|
9213
|
+
}
|
|
9214
|
+
}
|
|
8975
9215
|
|
|
8976
9216
|
// src/sellerCredentials.ts
|
|
8977
9217
|
function normalizeBaseApiUrl(value) {
|
|
@@ -11784,7 +12024,7 @@ var Zkp2pClient = class {
|
|
|
11784
12024
|
}
|
|
11785
12025
|
}
|
|
11786
12026
|
});
|
|
11787
|
-
const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-
|
|
12027
|
+
const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-5JVD64RX.mjs');
|
|
11788
12028
|
currencies = mapConversionRatesToOnchainMinRate2(
|
|
11789
12029
|
params.conversionRates,
|
|
11790
12030
|
paymentMethods.length
|
|
@@ -12253,6 +12493,32 @@ var Zkp2pClient = class {
|
|
|
12253
12493
|
uploadOptions
|
|
12254
12494
|
);
|
|
12255
12495
|
}
|
|
12496
|
+
/**
|
|
12497
|
+
* Connect an iCloud Mail receipt inbox for PayPal or Venmo seller automated
|
|
12498
|
+
* release. The app-specific password is encrypted to the attested enclave and
|
|
12499
|
+
* posted directly to the attestor (no proxy, no retry). The returned bundle is
|
|
12500
|
+
* verified against the pinned enclave signer, platform and registered maker,
|
|
12501
|
+
* then stored unchanged for that maker; the maker is not re-registered.
|
|
12502
|
+
*
|
|
12503
|
+
* Rejects with `ICloudMailCredentialError` (`reason` names the failure)
|
|
12504
|
+
* before any mailbox work when `payeeId` does not hash to `payeeDetails`,
|
|
12505
|
+
* while another connection for the mailbox runs, or during a rate-limit
|
|
12506
|
+
* delay. The attestor defaults to the one paired with `baseApiUrl`.
|
|
12507
|
+
*/
|
|
12508
|
+
async uploadICloudMailSellerCredential(params, opts) {
|
|
12509
|
+
const baseApiUrl = this.stripTrailingSlash(
|
|
12510
|
+
opts?.baseApiUrl ?? this.baseApiUrl ?? DEFAULT_BASE_API_URL
|
|
12511
|
+
);
|
|
12512
|
+
return uploadICloudMailSellerCredential(params, {
|
|
12513
|
+
attestationServiceUrl: this.stripTrailingSlash(
|
|
12514
|
+
opts?.attestationServiceUrl ?? this.defaultAttestationServiceForBaseApiUrl(baseApiUrl)
|
|
12515
|
+
),
|
|
12516
|
+
attestationRuntime: opts?.attestationRuntime,
|
|
12517
|
+
baseApiUrl,
|
|
12518
|
+
timeoutMs: this.apiTimeoutMs,
|
|
12519
|
+
authorizationToken: await this.resolveAuthorizationToken()
|
|
12520
|
+
});
|
|
12521
|
+
}
|
|
12256
12522
|
/**
|
|
12257
12523
|
* Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
|
|
12258
12524
|
* omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
|
|
@@ -12680,6 +12946,6 @@ function openVenmoGmailConnect(options) {
|
|
|
12680
12946
|
});
|
|
12681
12947
|
}
|
|
12682
12948
|
|
|
12683
|
-
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, 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, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, peerExtensionSdk, readDisputeAttestationConfig, referrerFeeConfigToPreciseUnits, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
12949
|
+
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 };
|
|
12684
12950
|
//# sourceMappingURL=index.mjs.map
|
|
12685
12951
|
//# sourceMappingURL=index.mjs.map
|