@zkp2p/sdk 0.7.1 → 0.8.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/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 ApiAdapterOptions, i as ReferralDashboardResponse, j as ReferralEarningsResponse, k as RedeemReferralCodeRequest, l as RedeemReferralCodeResponse, m as UpdateReferralCodeRequest, n as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, o as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, p as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, q as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, r as PostDepositDetailsResponse, s as GetPayeeDetailsRequest, t as GetPayeeDetailsResponse, u as GetOwnerDepositsRequest, v as GetOwnerDepositsResponse, w as GetTakerTierRequest, x as GetTakerTierResponse, y as GetDepositBundleParams, z as GetDepositBundleResponse, E as GetOrderbookParams, F as GetOrderbookResponse, H as CurrencyType, T as TakerTierLevel, J as PaymentMethodCatalog, K as TxOverrides } from './vaultUtils-DI-r1LAg.mjs';
2
- export { _ as ActionCallback, ar as ApiDeposit, ay as ApiIntentStatus, b7 as AttestationServiceSellerCredentialProbeResponse, X as AuthorizationTokenProvider, cN as BatchResult, a7 as BestByPlatformResponseObject, b8 as BuyerTeePaymentParams, b9 as BuyerTeePaymentProofInput, ba as BuyerTeeSessionMaterial, O as CancelIntentMethodParams, a6 as CancelIntentParams, aR as CashAppCredentialUploadInput, aJ as CashAppSessionMaterial, a0 as CreateDepositConversionRate, $ as CreateDepositParams, bb as CuratorSellerCredentialStatusResponse, bc as CuratorSellerVerifyResponse, cg as Currency, cn as CurrencyData, cM as DelegationDepositTarget, cK as DelegationRoute, cL as DelegationState, cy as Deposit, cA as DepositCurrency, bw as DepositIntentStatistics, au as DepositStatus, as as DepositVerifier, at as DepositVerifierCurrency, bt as DepositVerifierData, cx as DepositView, an as FiatResponse, b6 as FulfillIntentAttestationResponse, N as FulfillIntentMethodParams, a4 as FulfillIntentParams, a8 as GetBestByPlatformResponse, a9 as GetBestByPlatformResponseObject, av as GetDepositByIdRequest, aw as GetDepositByIdResponse, aD as GetIntentByHashRequest, aE as GetIntentByHashResponse, aB as GetIntentsByDepositRequest, aC as GetIntentsByDepositResponse, ad as GetNearbyQuote, ae as GetNearbySuggestions, az as GetOwnerIntentsRequest, aA as GetOwnerIntentsResponse, aa as GetPlatformQuote, af as GetQuoteResponse, ag as GetQuoteResponseObject, ah as GetQuoteSingleResponse, bh as GetSellerCredentialStatusParams, bm as IdentityAttestationActionType, bn as IdentityAttestationOutput, bo as IdentityAttestationOutputFor, bp as IdentityAttestationParams, bE as IndexerClient, ca as IndexerDeploymentEnv, bK as IndexerDeposit, b$ as IndexerDepositDailySnapshot, c1 as IndexerDepositFilter, b_ as IndexerDepositFundActivity, c0 as IndexerDepositFundActivityType, c4 as IndexerDepositOrderDirection, c3 as IndexerDepositOrderField, c2 as IndexerDepositPagination, bN as IndexerDepositPaymentMethod, bG as IndexerDepositService, cd as IndexerFulfillmentAndPaymentResponse, cb as IndexerFulfillmentRecord, bL as IndexerIntentFulfilled, bM as IndexerIntentFulfillmentAmounts, bP as IndexerIntentStatus, bT as IndexerManagerAggregateStats, bV as IndexerManagerDailySnapshot, bU as IndexerManagerStats, bY as IndexerManualRateUpdate, bO as IndexerMethodCurrency, bZ as IndexerOracleConfigUpdate, cc as IndexerPaymentVerifiedRecord, bQ as IndexerRateManager, bS as IndexerRateManagerDelegation, c7 as IndexerRateManagerDelegationPagination, bX as IndexerRateManagerDetail, c5 as IndexerRateManagerFilter, bW as IndexerRateManagerListItem, c9 as IndexerRateManagerOrderDirection, c8 as IndexerRateManagerOrderField, c6 as IndexerRateManagerPagination, bR as IndexerRateManagerRate, bH as IndexerRateManagerService, ax as Intent, cC as IntentView, bq as MakerIdentityAttestationRequestBody, br as MakerIdentityPlatform, ap as NearbyQuote, aq as NearbySuggestions, Z as OfframpClient, bs as OnchainCurrency, cD as OnchainIntent, bv as OrderStats, bD as OrderbookEntry, ce as PAYMENT_PLATFORMS, aO as PayPalGoogleOAuthSellerCredentialUploadBody, cz as PaymentMethodData, cf as PaymentPlatformType, bB as PlatformLimit, ab as PlatformQuote, bC as PlatformRiskLevel, bu as PreparedTransaction, am as QuoteFeesResponse, al as QuoteIntentResponse, ac as QuoteRequest, ai as QuoteResponse, aj as QuoteResponseObject, ak as QuoteSingleResponse, a1 as Range, cB as ReferralFee, aF as RegisterPayeeDetailsRequest, aG as RegisterPayeeDetailsResponse, bd as RegisteredSellerCredentialPlatform, bf as RegisteredUploadSellerCredentialParams, a5 as ReleaseFundsToPayerParams, cs as RuntimeEnv, b4 as SellerAttestationOutput, aU as SellerCiphertextBundle, aZ as SellerCredentialBundleUpload, b5 as SellerCredentialProbeResponse, a$ as SellerCredentialStatus, a_ as SellerCredentialStatusValue, aT as SellerCredentialUploadInputByPlatform, b3 as SellerPaymentTypedDataValue, aH as SellerPlatform, aY as SellerProbeInput, aV as SellerSignedCiphertextBundle, b1 as SellerTypedDataField, b2 as SellerTypedDataSpec, aX as SellerVerifyInput, aW as SellerVerifyIntentDetails, b0 as SellerVerifyProxyBody, cP as SendBatchFn, cO as SendTransactionFn, M as SignalIntentMethodParams, a3 as SignalIntentParams, L as SignalIntentReferralFee, bx as TakerTier, bA as TakerTierSource, bz as TakerTierStats, by as TakerTierVolumeBreakdown, Y as TimeoutConfig, ao as TokenResponse, bk as UploadGoogleOAuthSellerCredentialParams, bi as UploadPayPalGoogleOAuthSellerCredentialParams, bg as UploadSellerCredentialOptions, be as UploadSellerCredentialParams, bj as UploadVenmoGoogleOAuthSellerCredentialParams, aQ as VenmoCredentialUploadInput, aP as VenmoGoogleOAuthSellerCredentialUploadBody, aI as VenmoSessionMaterial, bl as VerifySellerPaymentParams, aS as WiseCredentialUploadInput, aL as WiseProfileInfo, aN as WiseProfileNotFound, aM as WiseProfileSelectionRequired, aK as WiseSessionMaterial, a2 as WithdrawDepositParams, cE as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, W as Zkp2pClientOptions, cJ as classifyDelegationState, bI as compareEventCursorIdsByRecency, ch as currencyInfo, bF as defaultIndexerEndpoint, cv as enrichPvDepositView, cw as enrichPvIntentView, bJ as fetchIndexerFulfillmentAndPayment, co as getContracts, ck as getCurrencyCodeFromHash, cj as getCurrencyInfoFromCountryCode, ci as getCurrencyInfoFromHash, cI as getDelegationRoute, cr as getGatingServiceAddress, cq as getPaymentMethodsCatalog, cp as getRateManagerContracts, cl as isSupportedCurrencyHash, cF as isZeroRateManagerId, cm as mapConversionRatesToOnchainMinRate, cG as normalizeRateManagerId, cH as normalizeRegistry, ct as parseDepositView, cu as parseIntentView } from './vaultUtils-DI-r1LAg.mjs';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetTakerTierRequest, F as GetTakerTierResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as CurrencyType, T as TakerTierLevel, N as PaymentMethodCatalog, O as TxOverrides } from './vaultUtils-BGDsoxAv.mjs';
2
+ export { a7 as ActionCallback, aC as ApiDeposit, aJ as ApiIntentStatus, bi as AttestationServiceSellerCredentialProbeResponse, a5 as AuthorizationTokenProvider, cY as BatchResult, ai as BestByPlatformResponseObject, bj as BuyerTeePaymentParams, bk as BuyerTeePaymentProofInput, bl as BuyerTeeSessionMaterial, a2 as CancelIntentMethodParams, ah as CancelIntentParams, b0 as CashAppCredentialUploadInput, aU as CashAppSessionMaterial, ab as CreateDepositConversionRate, aa as CreateDepositParams, bm as CuratorSellerCredentialStatusResponse, bn as CuratorSellerVerifyResponse, cr as Currency, cy as CurrencyData, cX as DelegationDepositTarget, cV as DelegationRoute, cW as DelegationState, cJ as Deposit, cL as DepositCurrency, bH as DepositIntentStatistics, aF as DepositStatus, aD as DepositVerifier, aE as DepositVerifierCurrency, bE as DepositVerifierData, cI as DepositView, ay as FiatResponse, bh as FulfillIntentAttestationResponse, a1 as FulfillIntentMethodParams, af as FulfillIntentParams, aj as GetBestByPlatformResponse, ak as GetBestByPlatformResponseObject, aG as GetDepositByIdRequest, aH as GetDepositByIdResponse, aO as GetIntentByHashRequest, aP as GetIntentByHashResponse, aM as GetIntentsByDepositRequest, aN as GetIntentsByDepositResponse, ao as GetNearbyQuote, ap as GetNearbySuggestions, aK as GetOwnerIntentsRequest, aL as GetOwnerIntentsResponse, al as GetPlatformQuote, aq as GetQuoteResponse, ar as GetQuoteResponseObject, as as GetQuoteSingleResponse, bs as GetSellerCredentialStatusParams, bx as IdentityAttestationActionType, by as IdentityAttestationOutput, bz as IdentityAttestationOutputFor, bA as IdentityAttestationParams, bP as IndexerClient, cl as IndexerDeploymentEnv, bV as IndexerDeposit, ca as IndexerDepositDailySnapshot, cc as IndexerDepositFilter, c9 as IndexerDepositFundActivity, cb as IndexerDepositFundActivityType, cf as IndexerDepositOrderDirection, ce as IndexerDepositOrderField, cd as IndexerDepositPagination, bY as IndexerDepositPaymentMethod, bR as IndexerDepositService, co as IndexerFulfillmentAndPaymentResponse, cm as IndexerFulfillmentRecord, bW as IndexerIntentFulfilled, bX as IndexerIntentFulfillmentAmounts, b_ as IndexerIntentStatus, c2 as IndexerManagerAggregateStats, c4 as IndexerManagerDailySnapshot, c3 as IndexerManagerStats, c7 as IndexerManualRateUpdate, bZ as IndexerMethodCurrency, c8 as IndexerOracleConfigUpdate, cn as IndexerPaymentVerifiedRecord, b$ as IndexerRateManager, c1 as IndexerRateManagerDelegation, ci as IndexerRateManagerDelegationPagination, c6 as IndexerRateManagerDetail, cg as IndexerRateManagerFilter, c5 as IndexerRateManagerListItem, ck as IndexerRateManagerOrderDirection, cj as IndexerRateManagerOrderField, ch as IndexerRateManagerPagination, c0 as IndexerRateManagerRate, bS as IndexerRateManagerService, aI as Intent, cN as IntentView, bB as MakerIdentityAttestationRequestBody, bC as MakerIdentityPlatform, aA as NearbyQuote, aB as NearbySuggestions, Z as OfframpClient, bD as OnchainCurrency, cO as OnchainIntent, bG as OrderStats, bO as OrderbookEntry, cp as PAYMENT_PLATFORMS, aZ as PayPalGoogleOAuthSellerCredentialUploadBody, cK as PaymentMethodData, cq as PaymentPlatformType, bM as PlatformLimit, am as PlatformQuote, bN as PlatformRiskLevel, bF as PreparedTransaction, ax as QuoteFeesResponse, aw as QuoteIntentResponse, an as QuoteRequest, at as QuoteResponse, au as QuoteResponseObject, av as QuoteSingleResponse, ac as Range, _ as RedeemReferralCodeSignatureOptions, W as ReferralBearerWriteOptions, cM as ReferralFee, X as ReferralReadOptions, a8 as ReferralRedemption, a9 as ReferralSignatureBody, Y as ReferralSignatureOptions, aQ as RegisterPayeeDetailsRequest, aR as RegisterPayeeDetailsResponse, bo as RegisteredSellerCredentialPlatform, bq as RegisteredUploadSellerCredentialParams, ag as ReleaseFundsToPayerParams, cD as RuntimeEnv, bf as SellerAttestationOutput, b3 as SellerCiphertextBundle, b8 as SellerCredentialBundleUpload, bg as SellerCredentialProbeResponse, ba as SellerCredentialStatus, b9 as SellerCredentialStatusValue, b2 as SellerCredentialUploadInputByPlatform, be as SellerPaymentTypedDataValue, aS as SellerPlatform, b7 as SellerProbeInput, b4 as SellerSignedCiphertextBundle, bc as SellerTypedDataField, bd as SellerTypedDataSpec, b6 as SellerVerifyInput, b5 as SellerVerifyIntentDetails, bb as SellerVerifyProxyBody, c_ as SendBatchFn, cZ as SendTransactionFn, a0 as SignalIntentMethodParams, ae as SignalIntentParams, $ as SignalIntentReferralFee, bI as TakerTier, bL as TakerTierSource, bK as TakerTierStats, bJ as TakerTierVolumeBreakdown, a6 as TimeoutConfig, az as TokenResponse, a3 as UpdateReferralCodeSignatureOptions, bv as UploadGoogleOAuthSellerCredentialParams, bt as UploadPayPalGoogleOAuthSellerCredentialParams, br as UploadSellerCredentialOptions, bp as UploadSellerCredentialParams, bu as UploadVenmoGoogleOAuthSellerCredentialParams, a$ as VenmoCredentialUploadInput, a_ as VenmoGoogleOAuthSellerCredentialUploadBody, aT as VenmoSessionMaterial, bw as VerifySellerPaymentParams, b1 as WiseCredentialUploadInput, aW as WiseProfileInfo, aY as WiseProfileNotFound, aX as WiseProfileSelectionRequired, aV as WiseSessionMaterial, ad as WithdrawDepositParams, cP as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a4 as Zkp2pClientOptions, cU as classifyDelegationState, bT as compareEventCursorIdsByRecency, cs as currencyInfo, bQ as defaultIndexerEndpoint, cG as enrichPvDepositView, cH as enrichPvIntentView, bU as fetchIndexerFulfillmentAndPayment, cz as getContracts, cv as getCurrencyCodeFromHash, cu as getCurrencyInfoFromCountryCode, ct as getCurrencyInfoFromHash, cT as getDelegationRoute, cC as getGatingServiceAddress, cB as getPaymentMethodsCatalog, cA as getRateManagerContracts, cw as isSupportedCurrencyHash, cQ as isZeroRateManagerId, cx as mapConversionRatesToOnchainMinRate, cR as normalizeRateManagerId, cS as normalizeRegistry, cE as parseDepositView, cF as parseIntentView } from './vaultUtils-BGDsoxAv.mjs';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
5
  export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
@@ -72,6 +72,54 @@ declare const referrerFeeConfigToPreciseUnits: (config: ReferrerFeeConfig) => bi
72
72
 
73
73
  declare const normalizeReferralCode: (code: string) => string;
74
74
  declare const isValidReferralCode: (code: string) => boolean;
75
+ declare const REFERRAL_SIGNATURE_DOMAIN: {
76
+ readonly name: "ZKP2PReferral";
77
+ readonly version: "1";
78
+ };
79
+ declare const REFERRAL_SIGNATURE_TYPES: {
80
+ readonly CreateCode: readonly [{
81
+ readonly name: "wallet";
82
+ readonly type: "address";
83
+ }, {
84
+ readonly name: "audience";
85
+ readonly type: "string";
86
+ }, {
87
+ readonly name: "issuedAt";
88
+ readonly type: "uint256";
89
+ }];
90
+ readonly RedeemCode: readonly [{
91
+ readonly name: "wallet";
92
+ readonly type: "address";
93
+ }, {
94
+ readonly name: "code";
95
+ readonly type: "string";
96
+ }, {
97
+ readonly name: "referrer";
98
+ readonly type: "address";
99
+ }, {
100
+ readonly name: "audience";
101
+ readonly type: "string";
102
+ }, {
103
+ readonly name: "issuedAt";
104
+ readonly type: "uint256";
105
+ }];
106
+ readonly RenameCode: readonly [{
107
+ readonly name: "wallet";
108
+ readonly type: "address";
109
+ }, {
110
+ readonly name: "oldCode";
111
+ readonly type: "string";
112
+ }, {
113
+ readonly name: "newCode";
114
+ readonly type: "string";
115
+ }, {
116
+ readonly name: "audience";
117
+ readonly type: "string";
118
+ }, {
119
+ readonly name: "issuedAt";
120
+ readonly type: "uint256";
121
+ }];
122
+ };
75
123
 
76
124
  interface EscrowContractContext {
77
125
  address: Address;
@@ -137,6 +185,7 @@ type PeerAuthenticateParams = {
137
185
  attestationActionType?: string | null;
138
186
  attestationPlatform?: string | null;
139
187
  attestationServiceUrl?: string | null;
188
+ callerAddress?: string | null;
140
189
  captureMode?: PeerMetadataCaptureMode;
141
190
  platform: string;
142
191
  providerConfig?: PeerMetadataProviderConfig;
@@ -221,7 +270,7 @@ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUpload
221
270
  /**
222
271
  * Store an already-encrypted seller credential bundle with curator.
223
272
  */
224
- declare function apiUploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, baseApiUrl?: string | null, timeoutMs?: number): Promise<CuratorSellerCredentialUploadResponse>;
273
+ declare function apiUploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, baseApiUrl?: string | null, timeoutMs?: number, authorizationToken?: string): Promise<CuratorSellerCredentialUploadResponse>;
225
274
 
226
275
  declare function apiPostDepositDetails(req: PostDepositDetailsRequest, baseApiUrl: string, timeoutMs?: number): Promise<PostDepositDetailsResponse>;
227
276
  declare function apiGetQuotesBestByPlatform(req: QuotesBestByPlatformRequest, baseApiUrl: string, timeoutMs?: number, apiKey?: string): Promise<BestByPlatformResponse>;
@@ -232,8 +281,10 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
232
281
  * Get taker tier information for a specific address.
233
282
  */
234
283
  declare function apiGetTakerTier(req: GetTakerTierRequest, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
235
- declare function apiGetReferralDashboard(opts: ApiAdapterOptions): Promise<ReferralDashboardResponse>;
236
- declare function apiGetReferralEarnings(opts: ApiAdapterOptions): Promise<ReferralEarningsResponse>;
284
+ declare function apiGetReferralDashboard(opts: ApiAdapterOptions & ReferralReadRequest): Promise<ReferralDashboardResponse>;
285
+ declare function apiGetReferralEarnings(opts: ApiAdapterOptions & ReferralReadRequest): Promise<ReferralEarningsResponse>;
286
+ declare function apiLookupReferralCode(code: string, opts: ApiAdapterOptions): Promise<ReferralCodeLookupResponse>;
287
+ declare function apiCreateReferralCode(req: CreateReferralCodeRequest, opts: ApiAdapterOptions): Promise<CreateReferralCodeResponse>;
237
288
  declare function apiRedeemReferralCode(req: RedeemReferralCodeRequest, opts: ApiAdapterOptions): Promise<RedeemReferralCodeResponse>;
238
289
  declare function apiUpdateReferralCode(req: UpdateReferralCodeRequest, opts: ApiAdapterOptions): Promise<UpdateReferralCodeResponse>;
239
290
  declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSellerCredentialPlatform>(processorName: P, payeeDetails: Hash, body: GoogleOAuthSellerCredentialUploadBodyByPlatform[P], baseApiUrl: string, opts?: {
@@ -487,7 +538,6 @@ declare const TOKEN_METADATA: {
487
538
  * inputs behind the compatibility fields without changing this reference table.
488
539
  *
489
540
  * Ordered highest tier → lowest (PLATINUM first) to match UI display order.
490
- * PEER_PRESIDENT is invite-only and excluded from the volume ladder.
491
541
  */
492
542
  interface TakerTierScheduleEntry {
493
543
  tier: TakerTierLevel;
@@ -797,4 +847,4 @@ declare class ContractError extends ZKP2PError {
797
847
  constructor(message: string, details?: unknown);
798
848
  }
799
849
 
800
- export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, 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 PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, TOKEN_METADATA, TakerTierLevel, type TakerTierScheduleEntry, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetTakerTier, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, getTakerTierFeeDiscountBps, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
850
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, 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 PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, TOKEN_METADATA, TakerTierLevel, type TakerTierScheduleEntry, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetTakerTier, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, getTakerTierFeeDiscountBps, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, 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 ApiAdapterOptions, i as ReferralDashboardResponse, j as ReferralEarningsResponse, k as RedeemReferralCodeRequest, l as RedeemReferralCodeResponse, m as UpdateReferralCodeRequest, n as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, o as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, p as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, q as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, r as PostDepositDetailsResponse, s as GetPayeeDetailsRequest, t as GetPayeeDetailsResponse, u as GetOwnerDepositsRequest, v as GetOwnerDepositsResponse, w as GetTakerTierRequest, x as GetTakerTierResponse, y as GetDepositBundleParams, z as GetDepositBundleResponse, E as GetOrderbookParams, F as GetOrderbookResponse, H as CurrencyType, T as TakerTierLevel, J as PaymentMethodCatalog, K as TxOverrides } from './vaultUtils-DI-r1LAg.js';
2
- export { _ as ActionCallback, ar as ApiDeposit, ay as ApiIntentStatus, b7 as AttestationServiceSellerCredentialProbeResponse, X as AuthorizationTokenProvider, cN as BatchResult, a7 as BestByPlatformResponseObject, b8 as BuyerTeePaymentParams, b9 as BuyerTeePaymentProofInput, ba as BuyerTeeSessionMaterial, O as CancelIntentMethodParams, a6 as CancelIntentParams, aR as CashAppCredentialUploadInput, aJ as CashAppSessionMaterial, a0 as CreateDepositConversionRate, $ as CreateDepositParams, bb as CuratorSellerCredentialStatusResponse, bc as CuratorSellerVerifyResponse, cg as Currency, cn as CurrencyData, cM as DelegationDepositTarget, cK as DelegationRoute, cL as DelegationState, cy as Deposit, cA as DepositCurrency, bw as DepositIntentStatistics, au as DepositStatus, as as DepositVerifier, at as DepositVerifierCurrency, bt as DepositVerifierData, cx as DepositView, an as FiatResponse, b6 as FulfillIntentAttestationResponse, N as FulfillIntentMethodParams, a4 as FulfillIntentParams, a8 as GetBestByPlatformResponse, a9 as GetBestByPlatformResponseObject, av as GetDepositByIdRequest, aw as GetDepositByIdResponse, aD as GetIntentByHashRequest, aE as GetIntentByHashResponse, aB as GetIntentsByDepositRequest, aC as GetIntentsByDepositResponse, ad as GetNearbyQuote, ae as GetNearbySuggestions, az as GetOwnerIntentsRequest, aA as GetOwnerIntentsResponse, aa as GetPlatformQuote, af as GetQuoteResponse, ag as GetQuoteResponseObject, ah as GetQuoteSingleResponse, bh as GetSellerCredentialStatusParams, bm as IdentityAttestationActionType, bn as IdentityAttestationOutput, bo as IdentityAttestationOutputFor, bp as IdentityAttestationParams, bE as IndexerClient, ca as IndexerDeploymentEnv, bK as IndexerDeposit, b$ as IndexerDepositDailySnapshot, c1 as IndexerDepositFilter, b_ as IndexerDepositFundActivity, c0 as IndexerDepositFundActivityType, c4 as IndexerDepositOrderDirection, c3 as IndexerDepositOrderField, c2 as IndexerDepositPagination, bN as IndexerDepositPaymentMethod, bG as IndexerDepositService, cd as IndexerFulfillmentAndPaymentResponse, cb as IndexerFulfillmentRecord, bL as IndexerIntentFulfilled, bM as IndexerIntentFulfillmentAmounts, bP as IndexerIntentStatus, bT as IndexerManagerAggregateStats, bV as IndexerManagerDailySnapshot, bU as IndexerManagerStats, bY as IndexerManualRateUpdate, bO as IndexerMethodCurrency, bZ as IndexerOracleConfigUpdate, cc as IndexerPaymentVerifiedRecord, bQ as IndexerRateManager, bS as IndexerRateManagerDelegation, c7 as IndexerRateManagerDelegationPagination, bX as IndexerRateManagerDetail, c5 as IndexerRateManagerFilter, bW as IndexerRateManagerListItem, c9 as IndexerRateManagerOrderDirection, c8 as IndexerRateManagerOrderField, c6 as IndexerRateManagerPagination, bR as IndexerRateManagerRate, bH as IndexerRateManagerService, ax as Intent, cC as IntentView, bq as MakerIdentityAttestationRequestBody, br as MakerIdentityPlatform, ap as NearbyQuote, aq as NearbySuggestions, Z as OfframpClient, bs as OnchainCurrency, cD as OnchainIntent, bv as OrderStats, bD as OrderbookEntry, ce as PAYMENT_PLATFORMS, aO as PayPalGoogleOAuthSellerCredentialUploadBody, cz as PaymentMethodData, cf as PaymentPlatformType, bB as PlatformLimit, ab as PlatformQuote, bC as PlatformRiskLevel, bu as PreparedTransaction, am as QuoteFeesResponse, al as QuoteIntentResponse, ac as QuoteRequest, ai as QuoteResponse, aj as QuoteResponseObject, ak as QuoteSingleResponse, a1 as Range, cB as ReferralFee, aF as RegisterPayeeDetailsRequest, aG as RegisterPayeeDetailsResponse, bd as RegisteredSellerCredentialPlatform, bf as RegisteredUploadSellerCredentialParams, a5 as ReleaseFundsToPayerParams, cs as RuntimeEnv, b4 as SellerAttestationOutput, aU as SellerCiphertextBundle, aZ as SellerCredentialBundleUpload, b5 as SellerCredentialProbeResponse, a$ as SellerCredentialStatus, a_ as SellerCredentialStatusValue, aT as SellerCredentialUploadInputByPlatform, b3 as SellerPaymentTypedDataValue, aH as SellerPlatform, aY as SellerProbeInput, aV as SellerSignedCiphertextBundle, b1 as SellerTypedDataField, b2 as SellerTypedDataSpec, aX as SellerVerifyInput, aW as SellerVerifyIntentDetails, b0 as SellerVerifyProxyBody, cP as SendBatchFn, cO as SendTransactionFn, M as SignalIntentMethodParams, a3 as SignalIntentParams, L as SignalIntentReferralFee, bx as TakerTier, bA as TakerTierSource, bz as TakerTierStats, by as TakerTierVolumeBreakdown, Y as TimeoutConfig, ao as TokenResponse, bk as UploadGoogleOAuthSellerCredentialParams, bi as UploadPayPalGoogleOAuthSellerCredentialParams, bg as UploadSellerCredentialOptions, be as UploadSellerCredentialParams, bj as UploadVenmoGoogleOAuthSellerCredentialParams, aQ as VenmoCredentialUploadInput, aP as VenmoGoogleOAuthSellerCredentialUploadBody, aI as VenmoSessionMaterial, bl as VerifySellerPaymentParams, aS as WiseCredentialUploadInput, aL as WiseProfileInfo, aN as WiseProfileNotFound, aM as WiseProfileSelectionRequired, aK as WiseSessionMaterial, a2 as WithdrawDepositParams, cE as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, W as Zkp2pClientOptions, cJ as classifyDelegationState, bI as compareEventCursorIdsByRecency, ch as currencyInfo, bF as defaultIndexerEndpoint, cv as enrichPvDepositView, cw as enrichPvIntentView, bJ as fetchIndexerFulfillmentAndPayment, co as getContracts, ck as getCurrencyCodeFromHash, cj as getCurrencyInfoFromCountryCode, ci as getCurrencyInfoFromHash, cI as getDelegationRoute, cr as getGatingServiceAddress, cq as getPaymentMethodsCatalog, cp as getRateManagerContracts, cl as isSupportedCurrencyHash, cF as isZeroRateManagerId, cm as mapConversionRatesToOnchainMinRate, cG as normalizeRateManagerId, cH as normalizeRegistry, ct as parseDepositView, cu as parseIntentView } from './vaultUtils-DI-r1LAg.js';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetTakerTierRequest, F as GetTakerTierResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, M as CurrencyType, T as TakerTierLevel, N as PaymentMethodCatalog, O as TxOverrides } from './vaultUtils-BGDsoxAv.js';
2
+ export { a7 as ActionCallback, aC as ApiDeposit, aJ as ApiIntentStatus, bi as AttestationServiceSellerCredentialProbeResponse, a5 as AuthorizationTokenProvider, cY as BatchResult, ai as BestByPlatformResponseObject, bj as BuyerTeePaymentParams, bk as BuyerTeePaymentProofInput, bl as BuyerTeeSessionMaterial, a2 as CancelIntentMethodParams, ah as CancelIntentParams, b0 as CashAppCredentialUploadInput, aU as CashAppSessionMaterial, ab as CreateDepositConversionRate, aa as CreateDepositParams, bm as CuratorSellerCredentialStatusResponse, bn as CuratorSellerVerifyResponse, cr as Currency, cy as CurrencyData, cX as DelegationDepositTarget, cV as DelegationRoute, cW as DelegationState, cJ as Deposit, cL as DepositCurrency, bH as DepositIntentStatistics, aF as DepositStatus, aD as DepositVerifier, aE as DepositVerifierCurrency, bE as DepositVerifierData, cI as DepositView, ay as FiatResponse, bh as FulfillIntentAttestationResponse, a1 as FulfillIntentMethodParams, af as FulfillIntentParams, aj as GetBestByPlatformResponse, ak as GetBestByPlatformResponseObject, aG as GetDepositByIdRequest, aH as GetDepositByIdResponse, aO as GetIntentByHashRequest, aP as GetIntentByHashResponse, aM as GetIntentsByDepositRequest, aN as GetIntentsByDepositResponse, ao as GetNearbyQuote, ap as GetNearbySuggestions, aK as GetOwnerIntentsRequest, aL as GetOwnerIntentsResponse, al as GetPlatformQuote, aq as GetQuoteResponse, ar as GetQuoteResponseObject, as as GetQuoteSingleResponse, bs as GetSellerCredentialStatusParams, bx as IdentityAttestationActionType, by as IdentityAttestationOutput, bz as IdentityAttestationOutputFor, bA as IdentityAttestationParams, bP as IndexerClient, cl as IndexerDeploymentEnv, bV as IndexerDeposit, ca as IndexerDepositDailySnapshot, cc as IndexerDepositFilter, c9 as IndexerDepositFundActivity, cb as IndexerDepositFundActivityType, cf as IndexerDepositOrderDirection, ce as IndexerDepositOrderField, cd as IndexerDepositPagination, bY as IndexerDepositPaymentMethod, bR as IndexerDepositService, co as IndexerFulfillmentAndPaymentResponse, cm as IndexerFulfillmentRecord, bW as IndexerIntentFulfilled, bX as IndexerIntentFulfillmentAmounts, b_ as IndexerIntentStatus, c2 as IndexerManagerAggregateStats, c4 as IndexerManagerDailySnapshot, c3 as IndexerManagerStats, c7 as IndexerManualRateUpdate, bZ as IndexerMethodCurrency, c8 as IndexerOracleConfigUpdate, cn as IndexerPaymentVerifiedRecord, b$ as IndexerRateManager, c1 as IndexerRateManagerDelegation, ci as IndexerRateManagerDelegationPagination, c6 as IndexerRateManagerDetail, cg as IndexerRateManagerFilter, c5 as IndexerRateManagerListItem, ck as IndexerRateManagerOrderDirection, cj as IndexerRateManagerOrderField, ch as IndexerRateManagerPagination, c0 as IndexerRateManagerRate, bS as IndexerRateManagerService, aI as Intent, cN as IntentView, bB as MakerIdentityAttestationRequestBody, bC as MakerIdentityPlatform, aA as NearbyQuote, aB as NearbySuggestions, Z as OfframpClient, bD as OnchainCurrency, cO as OnchainIntent, bG as OrderStats, bO as OrderbookEntry, cp as PAYMENT_PLATFORMS, aZ as PayPalGoogleOAuthSellerCredentialUploadBody, cK as PaymentMethodData, cq as PaymentPlatformType, bM as PlatformLimit, am as PlatformQuote, bN as PlatformRiskLevel, bF as PreparedTransaction, ax as QuoteFeesResponse, aw as QuoteIntentResponse, an as QuoteRequest, at as QuoteResponse, au as QuoteResponseObject, av as QuoteSingleResponse, ac as Range, _ as RedeemReferralCodeSignatureOptions, W as ReferralBearerWriteOptions, cM as ReferralFee, X as ReferralReadOptions, a8 as ReferralRedemption, a9 as ReferralSignatureBody, Y as ReferralSignatureOptions, aQ as RegisterPayeeDetailsRequest, aR as RegisterPayeeDetailsResponse, bo as RegisteredSellerCredentialPlatform, bq as RegisteredUploadSellerCredentialParams, ag as ReleaseFundsToPayerParams, cD as RuntimeEnv, bf as SellerAttestationOutput, b3 as SellerCiphertextBundle, b8 as SellerCredentialBundleUpload, bg as SellerCredentialProbeResponse, ba as SellerCredentialStatus, b9 as SellerCredentialStatusValue, b2 as SellerCredentialUploadInputByPlatform, be as SellerPaymentTypedDataValue, aS as SellerPlatform, b7 as SellerProbeInput, b4 as SellerSignedCiphertextBundle, bc as SellerTypedDataField, bd as SellerTypedDataSpec, b6 as SellerVerifyInput, b5 as SellerVerifyIntentDetails, bb as SellerVerifyProxyBody, c_ as SendBatchFn, cZ as SendTransactionFn, a0 as SignalIntentMethodParams, ae as SignalIntentParams, $ as SignalIntentReferralFee, bI as TakerTier, bL as TakerTierSource, bK as TakerTierStats, bJ as TakerTierVolumeBreakdown, a6 as TimeoutConfig, az as TokenResponse, a3 as UpdateReferralCodeSignatureOptions, bv as UploadGoogleOAuthSellerCredentialParams, bt as UploadPayPalGoogleOAuthSellerCredentialParams, br as UploadSellerCredentialOptions, bp as UploadSellerCredentialParams, bu as UploadVenmoGoogleOAuthSellerCredentialParams, a$ as VenmoCredentialUploadInput, a_ as VenmoGoogleOAuthSellerCredentialUploadBody, aT as VenmoSessionMaterial, bw as VerifySellerPaymentParams, b1 as WiseCredentialUploadInput, aW as WiseProfileInfo, aY as WiseProfileNotFound, aX as WiseProfileSelectionRequired, aV as WiseSessionMaterial, ad as WithdrawDepositParams, cP as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a4 as Zkp2pClientOptions, cU as classifyDelegationState, bT as compareEventCursorIdsByRecency, cs as currencyInfo, bQ as defaultIndexerEndpoint, cG as enrichPvDepositView, cH as enrichPvIntentView, bU as fetchIndexerFulfillmentAndPayment, cz as getContracts, cv as getCurrencyCodeFromHash, cu as getCurrencyInfoFromCountryCode, ct as getCurrencyInfoFromHash, cT as getDelegationRoute, cC as getGatingServiceAddress, cB as getPaymentMethodsCatalog, cA as getRateManagerContracts, cw as isSupportedCurrencyHash, cQ as isZeroRateManagerId, cx as mapConversionRatesToOnchainMinRate, cR as normalizeRateManagerId, cS as normalizeRegistry, cE as parseDepositView, cF as parseIntentView } from './vaultUtils-BGDsoxAv.js';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
5
  export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
@@ -72,6 +72,54 @@ declare const referrerFeeConfigToPreciseUnits: (config: ReferrerFeeConfig) => bi
72
72
 
73
73
  declare const normalizeReferralCode: (code: string) => string;
74
74
  declare const isValidReferralCode: (code: string) => boolean;
75
+ declare const REFERRAL_SIGNATURE_DOMAIN: {
76
+ readonly name: "ZKP2PReferral";
77
+ readonly version: "1";
78
+ };
79
+ declare const REFERRAL_SIGNATURE_TYPES: {
80
+ readonly CreateCode: readonly [{
81
+ readonly name: "wallet";
82
+ readonly type: "address";
83
+ }, {
84
+ readonly name: "audience";
85
+ readonly type: "string";
86
+ }, {
87
+ readonly name: "issuedAt";
88
+ readonly type: "uint256";
89
+ }];
90
+ readonly RedeemCode: readonly [{
91
+ readonly name: "wallet";
92
+ readonly type: "address";
93
+ }, {
94
+ readonly name: "code";
95
+ readonly type: "string";
96
+ }, {
97
+ readonly name: "referrer";
98
+ readonly type: "address";
99
+ }, {
100
+ readonly name: "audience";
101
+ readonly type: "string";
102
+ }, {
103
+ readonly name: "issuedAt";
104
+ readonly type: "uint256";
105
+ }];
106
+ readonly RenameCode: readonly [{
107
+ readonly name: "wallet";
108
+ readonly type: "address";
109
+ }, {
110
+ readonly name: "oldCode";
111
+ readonly type: "string";
112
+ }, {
113
+ readonly name: "newCode";
114
+ readonly type: "string";
115
+ }, {
116
+ readonly name: "audience";
117
+ readonly type: "string";
118
+ }, {
119
+ readonly name: "issuedAt";
120
+ readonly type: "uint256";
121
+ }];
122
+ };
75
123
 
76
124
  interface EscrowContractContext {
77
125
  address: Address;
@@ -137,6 +185,7 @@ type PeerAuthenticateParams = {
137
185
  attestationActionType?: string | null;
138
186
  attestationPlatform?: string | null;
139
187
  attestationServiceUrl?: string | null;
188
+ callerAddress?: string | null;
140
189
  captureMode?: PeerMetadataCaptureMode;
141
190
  platform: string;
142
191
  providerConfig?: PeerMetadataProviderConfig;
@@ -221,7 +270,7 @@ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUpload
221
270
  /**
222
271
  * Store an already-encrypted seller credential bundle with curator.
223
272
  */
224
- declare function apiUploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, baseApiUrl?: string | null, timeoutMs?: number): Promise<CuratorSellerCredentialUploadResponse>;
273
+ declare function apiUploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, baseApiUrl?: string | null, timeoutMs?: number, authorizationToken?: string): Promise<CuratorSellerCredentialUploadResponse>;
225
274
 
226
275
  declare function apiPostDepositDetails(req: PostDepositDetailsRequest, baseApiUrl: string, timeoutMs?: number): Promise<PostDepositDetailsResponse>;
227
276
  declare function apiGetQuotesBestByPlatform(req: QuotesBestByPlatformRequest, baseApiUrl: string, timeoutMs?: number, apiKey?: string): Promise<BestByPlatformResponse>;
@@ -232,8 +281,10 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
232
281
  * Get taker tier information for a specific address.
233
282
  */
234
283
  declare function apiGetTakerTier(req: GetTakerTierRequest, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
235
- declare function apiGetReferralDashboard(opts: ApiAdapterOptions): Promise<ReferralDashboardResponse>;
236
- declare function apiGetReferralEarnings(opts: ApiAdapterOptions): Promise<ReferralEarningsResponse>;
284
+ declare function apiGetReferralDashboard(opts: ApiAdapterOptions & ReferralReadRequest): Promise<ReferralDashboardResponse>;
285
+ declare function apiGetReferralEarnings(opts: ApiAdapterOptions & ReferralReadRequest): Promise<ReferralEarningsResponse>;
286
+ declare function apiLookupReferralCode(code: string, opts: ApiAdapterOptions): Promise<ReferralCodeLookupResponse>;
287
+ declare function apiCreateReferralCode(req: CreateReferralCodeRequest, opts: ApiAdapterOptions): Promise<CreateReferralCodeResponse>;
237
288
  declare function apiRedeemReferralCode(req: RedeemReferralCodeRequest, opts: ApiAdapterOptions): Promise<RedeemReferralCodeResponse>;
238
289
  declare function apiUpdateReferralCode(req: UpdateReferralCodeRequest, opts: ApiAdapterOptions): Promise<UpdateReferralCodeResponse>;
239
290
  declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSellerCredentialPlatform>(processorName: P, payeeDetails: Hash, body: GoogleOAuthSellerCredentialUploadBodyByPlatform[P], baseApiUrl: string, opts?: {
@@ -487,7 +538,6 @@ declare const TOKEN_METADATA: {
487
538
  * inputs behind the compatibility fields without changing this reference table.
488
539
  *
489
540
  * Ordered highest tier → lowest (PLATINUM first) to match UI display order.
490
- * PEER_PRESIDENT is invite-only and excluded from the volume ladder.
491
541
  */
492
542
  interface TakerTierScheduleEntry {
493
543
  tier: TakerTierLevel;
@@ -797,4 +847,4 @@ declare class ContractError extends ZKP2PError {
797
847
  constructor(message: string, details?: unknown);
798
848
  }
799
849
 
800
- export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, 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 PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, TOKEN_METADATA, TakerTierLevel, type TakerTierScheduleEntry, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetTakerTier, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, getTakerTierFeeDiscountBps, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
850
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, 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 PeerMetadataProviderConfig, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, TOKEN_METADATA, TakerTierLevel, type TakerTierScheduleEntry, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetTakerTier, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getNextTakerTier, getPeerExtensionState, getSpreadOracleConfig, getTakerTierFeeDiscountBps, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };