@zkp2p/sdk 0.7.2 → 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 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-CdYaZr3f.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-CdYaZr3f.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';
@@ -185,6 +185,7 @@ type PeerAuthenticateParams = {
185
185
  attestationActionType?: string | null;
186
186
  attestationPlatform?: string | null;
187
187
  attestationServiceUrl?: string | null;
188
+ callerAddress?: string | null;
188
189
  captureMode?: PeerMetadataCaptureMode;
189
190
  platform: string;
190
191
  providerConfig?: PeerMetadataProviderConfig;
@@ -269,7 +270,7 @@ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUpload
269
270
  /**
270
271
  * Store an already-encrypted seller credential bundle with curator.
271
272
  */
272
- 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>;
273
274
 
274
275
  declare function apiPostDepositDetails(req: PostDepositDetailsRequest, baseApiUrl: string, timeoutMs?: number): Promise<PostDepositDetailsResponse>;
275
276
  declare function apiGetQuotesBestByPlatform(req: QuotesBestByPlatformRequest, baseApiUrl: string, timeoutMs?: number, apiKey?: string): Promise<BestByPlatformResponse>;
@@ -537,7 +538,6 @@ declare const TOKEN_METADATA: {
537
538
  * inputs behind the compatibility fields without changing this reference table.
538
539
  *
539
540
  * Ordered highest tier → lowest (PLATINUM first) to match UI display order.
540
- * PEER_PRESIDENT is invite-only and excluded from the volume ladder.
541
541
  */
542
542
  interface TakerTierScheduleEntry {
543
543
  tier: TakerTierLevel;
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, 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-CdYaZr3f.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-CdYaZr3f.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';
@@ -185,6 +185,7 @@ type PeerAuthenticateParams = {
185
185
  attestationActionType?: string | null;
186
186
  attestationPlatform?: string | null;
187
187
  attestationServiceUrl?: string | null;
188
+ callerAddress?: string | null;
188
189
  captureMode?: PeerMetadataCaptureMode;
189
190
  platform: string;
190
191
  providerConfig?: PeerMetadataProviderConfig;
@@ -269,7 +270,7 @@ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUpload
269
270
  /**
270
271
  * Store an already-encrypted seller credential bundle with curator.
271
272
  */
272
- 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>;
273
274
 
274
275
  declare function apiPostDepositDetails(req: PostDepositDetailsRequest, baseApiUrl: string, timeoutMs?: number): Promise<PostDepositDetailsResponse>;
275
276
  declare function apiGetQuotesBestByPlatform(req: QuotesBestByPlatformRequest, baseApiUrl: string, timeoutMs?: number, apiKey?: string): Promise<BestByPlatformResponse>;
@@ -537,7 +538,6 @@ declare const TOKEN_METADATA: {
537
538
  * inputs behind the compatibility fields without changing this reference table.
538
539
  *
539
540
  * Ordered highest tier → lowest (PLATINUM first) to match UI display order.
540
- * PEER_PRESIDENT is invite-only and excluded from the volume ladder.
541
541
  */
542
542
  interface TakerTierScheduleEntry {
543
543
  tier: TakerTierLevel;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, ZERO_RATE_MANAGER_ID, classifyDelegationState, getDelegationRoute, getNextTakerTier, getTakerTierFeeDiscountBps, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-BQINCOSO.mjs';
1
+ export { TAKER_TIER_CAPS, TAKER_TIER_FEE_DISCOUNT_BPS, TAKER_TIER_ORDER, TAKER_TIER_SCHEDULE, ZERO_RATE_MANAGER_ID, classifyDelegationState, getDelegationRoute, getNextTakerTier, getTakerTierFeeDiscountBps, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-EIOXBVXP.mjs';
2
2
  import { ValidationError, APIError, NetworkError } from './chunk-GHQK65J2.mjs';
3
3
  export { APIError, ContractError, ErrorCode, NetworkError, ValidationError, ZKP2PError } from './chunk-GHQK65J2.mjs';
4
4
  import { getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash } from './chunk-ZM4ZP5GQ.mjs';
@@ -523,6 +523,7 @@ async function createEncryptedSellerCredentialUploadForPlatform({
523
523
  return createEncryptedSellerCredentialUpload({
524
524
  attestationServiceUrl,
525
525
  platform: "wise",
526
+ ...payload.callerAddress ? { callerAddress: payload.callerAddress } : {},
526
527
  sessionMaterial: payload.sessionMaterial,
527
528
  ...typeof timeoutMs === "number" ? { timeoutMs } : {},
528
529
  fetch: attestationTransport.fetch,
@@ -536,6 +537,7 @@ async function createEncryptedSellerCredentialUploadForPlatform({
536
537
  return createEncryptedSellerCredentialUpload({
537
538
  attestationServiceUrl,
538
539
  platform,
540
+ ...payload.callerAddress ? { callerAddress: payload.callerAddress } : {},
539
541
  payeeId: payload.payeeId,
540
542
  sessionMaterial: payload.sessionMaterial,
541
543
  ...typeof timeoutMs === "number" ? { timeoutMs } : {},
@@ -664,7 +666,10 @@ async function apiCreateSellerCredentialBundle(payload, attestationServiceUrl, p
664
666
  res = await attestationTransport.fetch(`${activeBaseUrl}${endpoint}`, {
665
667
  method: "POST",
666
668
  headers: headers(),
667
- body: JSON.stringify({ encryptedUpload })
669
+ body: JSON.stringify({
670
+ encryptedUpload,
671
+ ...payload.callerAddress ? { callerAddress: payload.callerAddress } : {}
672
+ })
668
673
  });
669
674
  } catch (error) {
670
675
  throw new NetworkError("Failed to connect to Attestation Service", {
@@ -4618,7 +4623,7 @@ async function apiUpdateReferralCode(req, opts) {
4618
4623
  });
4619
4624
  return unwrapResponseObject(response);
4620
4625
  }
4621
- async function apiUploadSellerCredential(processorName, payeeDetails, bundle, baseApiUrl, timeoutMs) {
4626
+ async function apiUploadSellerCredential(processorName, payeeDetails, bundle, baseApiUrl, timeoutMs, authorizationToken) {
4622
4627
  const endpoint = `/v2/makers/${encodeURIComponent(processorName)}/${encodeURIComponent(
4623
4628
  payeeDetails
4624
4629
  )}/seller-credential`;
@@ -4626,7 +4631,8 @@ async function apiUploadSellerCredential(processorName, payeeDetails, bundle, ba
4626
4631
  url: `${withApiBase(baseApiUrl)}${endpoint}`,
4627
4632
  method: "POST",
4628
4633
  body: bundle,
4629
- timeoutMs
4634
+ timeoutMs,
4635
+ authorizationToken
4630
4636
  });
4631
4637
  }
4632
4638
  async function apiUploadGoogleOAuthSellerCredential(processorName, payeeDetails, body, baseApiUrl, opts) {
@@ -5950,7 +5956,7 @@ function assertBundlePlatformMatches(params) {
5950
5956
  throw new Error("Seller credential bundle platform does not match upload platform");
5951
5957
  }
5952
5958
  }
5953
- async function apiUploadSellerCredentialBundle(params, baseApiUrl, timeoutMs) {
5959
+ async function apiUploadSellerCredentialBundle(params, baseApiUrl, timeoutMs, authorizationToken) {
5954
5960
  assertBundlePlatformMatches(params);
5955
5961
  const normalizedBaseApiUrl = normalizeBaseApiUrl(baseApiUrl);
5956
5962
  if (params.platform === "wise") {
@@ -5959,7 +5965,8 @@ async function apiUploadSellerCredentialBundle(params, baseApiUrl, timeoutMs) {
5959
5965
  params.bundle.payeeIdHash,
5960
5966
  params.bundle,
5961
5967
  normalizedBaseApiUrl,
5962
- timeoutMs
5968
+ timeoutMs,
5969
+ authorizationToken
5963
5970
  );
5964
5971
  }
5965
5972
  const registeredPayeePayload = {
@@ -5989,7 +5996,8 @@ async function apiUploadSellerCredentialBundle(params, baseApiUrl, timeoutMs) {
5989
5996
  registeredPayee.hashedOnchainId,
5990
5997
  params.bundle,
5991
5998
  normalizedBaseApiUrl,
5992
- timeoutMs
5999
+ timeoutMs,
6000
+ authorizationToken
5993
6001
  );
5994
6002
  }
5995
6003
  var formatTokenAmountForDisplay = (amount, decimals) => {
@@ -6190,10 +6198,23 @@ function normalizePayeeDataInputItem(raw) {
6190
6198
  if (!legacy) {
6191
6199
  return null;
6192
6200
  }
6201
+ const metadata = legacy.metadata && isObjectRecord(legacy.metadata) ? { ...legacy.metadata } : {};
6202
+ if (candidate.identityAttestation !== void 0 && candidate.identityAttestation !== null) {
6203
+ metadata.identityAttestation = candidate.identityAttestation;
6204
+ }
6193
6205
  return {
6194
6206
  offchainId: legacy.offchainId,
6195
6207
  telegramUsername: legacy.telegramUsername,
6196
- metadata: legacy.metadata
6208
+ metadata: Object.keys(metadata).length > 0 ? metadata : null
6209
+ };
6210
+ }
6211
+ function getPayeeRegistrationMetadata(payeeData) {
6212
+ if (payeeData.identityAttestation === void 0 || payeeData.identityAttestation === null) {
6213
+ return payeeData.metadata;
6214
+ }
6215
+ return {
6216
+ ...isObjectRecord(payeeData.metadata) ? payeeData.metadata : {},
6217
+ identityAttestation: payeeData.identityAttestation
6197
6218
  };
6198
6219
  }
6199
6220
  function resolvePayeeDataInput(params, methodName) {
@@ -6220,7 +6241,7 @@ function toPostDepositDetailsRequest(processorName, payeeData, index) {
6220
6241
  processorName,
6221
6242
  offchainId: payeeData.offchainId,
6222
6243
  telegramUsername: payeeData.telegramUsername,
6223
- metadata: payeeData.metadata
6244
+ metadata: getPayeeRegistrationMetadata(payeeData)
6224
6245
  };
6225
6246
  }
6226
6247
  var Zkp2pClient = class {
@@ -7266,6 +7287,12 @@ var Zkp2pClient = class {
7266
7287
  `attestationServiceUrl is required when baseApiUrl is not a supported zkp2p API host: ${baseApiUrl}`
7267
7288
  );
7268
7289
  }
7290
+ async resolveAuthorizationToken() {
7291
+ if (this.getAuthorizationToken) {
7292
+ return await this.getAuthorizationToken() ?? void 0;
7293
+ }
7294
+ return this.authorizationToken;
7295
+ }
7269
7296
  /**
7270
7297
  * Normalizes currency tuples by appending an empty `oracleRateConfig` when the ABI
7271
7298
  * requires it and the caller hasn't provided one.
@@ -8621,6 +8648,7 @@ var Zkp2pClient = class {
8621
8648
  );
8622
8649
  if (params.platform === "wise") {
8623
8650
  const bundleResponse2 = await createBundle({
8651
+ ...params.callerAddress ? { callerAddress: params.callerAddress } : {},
8624
8652
  sessionMaterial: params.sessionMaterial
8625
8653
  });
8626
8654
  if (!bundleResponse2.success || !bundleResponse2.responseObject) {
@@ -8635,6 +8663,7 @@ var Zkp2pClient = class {
8635
8663
  );
8636
8664
  }
8637
8665
  const bundlePayload = {
8666
+ ...params.callerAddress ? { callerAddress: params.callerAddress } : {},
8638
8667
  payeeId: params.payeeId,
8639
8668
  sessionMaterial: params.sessionMaterial
8640
8669
  };
@@ -8661,7 +8690,8 @@ var Zkp2pClient = class {
8661
8690
  opts?.baseApiUrl ?? this.baseApiUrl ?? DEFAULT_BASE_API_URL
8662
8691
  );
8663
8692
  const timeoutMs = opts?.timeoutMs ?? this.apiTimeoutMs;
8664
- return apiUploadSellerCredentialBundle(params, baseApiUrl, timeoutMs);
8693
+ const authorizationToken = await this.resolveAuthorizationToken();
8694
+ return apiUploadSellerCredentialBundle(params, baseApiUrl, timeoutMs, authorizationToken);
8665
8695
  }
8666
8696
  /**
8667
8697
  * Upload a seller Gmail OAuth authorization code through curator.