@zkp2p/sdk 0.4.3 → 0.5.2

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,8 +1,8 @@
1
- import { R as ReferrerFeeConfig, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, S as SellerCredentialUploadInput, b as SellerPlatform, c as SellerCredentialAttestationRuntime, d as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, C as ConfirmPayPalForwardingResponse, G as GoogleOAuthSellerCredentialPlatform, e as GoogleOAuthSellerCredentialUploadBodyByPlatform, f as CuratorSellerCredentialUploadResponse, Q as QuotesBestByPlatformRequest, g as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, h as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, i as PostDepositDetailsResponse, j as GetPayeeDetailsRequest, k as GetPayeeDetailsResponse, l as GetOwnerDepositsRequest, m as GetOwnerDepositsResponse, n as GetTakerTierRequest, o as GetTakerTierResponse, p as GetDepositBundleParams, q as ApiAdapterOptions, r as GetDepositBundleResponse, s as GetOrderbookParams, t as GetOrderbookResponse, u as CurrencyType, v as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-BZU2bc0T.mjs';
2
- export { J as ActionCallback, ah as ApiDeposit, ao as ApiIntentStatus, a$ as AttestationServiceSellerCredentialProbeResponse, a_ as AttestationServiceSellerVerifyResponse, E as AuthorizationTokenProvider, cD as BatchResult, Y as BestByPlatformResponseObject, b0 as BuyerTeePaymentParams, b1 as BuyerTeePaymentProofInput, b2 as BuyerTeeSessionMaterial, y as CancelIntentMethodParams, X as CancelIntentParams, aH as CashAppCredentialUploadInput, ay as CashAppSessionMaterial, b9 as ConfirmPayPalForwardingRequest, L as CreateDepositConversionRate, K as CreateDepositParams, b3 as CuratorSellerCredentialStatusResponse, b4 as CuratorSellerVerifyResponse, c6 as Currency, cd as CurrencyData, cC as DelegationDepositTarget, cA as DelegationRoute, cB as DelegationState, co as Deposit, cq as DepositCurrency, bn as DepositIntentStatistics, ak as DepositStatus, ai as DepositVerifier, aj as DepositVerifierCurrency, bk as DepositVerifierData, cn as DepositView, ad as FiatResponse, F as FulfillIntentMethodParams, O as FulfillIntentParams, _ as GetBestByPlatformResponse, $ as GetBestByPlatformResponseObject, al as GetDepositByIdRequest, am as GetDepositByIdResponse, at as GetIntentByHashRequest, au as GetIntentByHashResponse, ar as GetIntentsByDepositRequest, as as GetIntentsByDepositResponse, a3 as GetNearbyQuote, a4 as GetNearbySuggestions, ap as GetOwnerIntentsRequest, aq as GetOwnerIntentsResponse, a0 as GetPlatformQuote, a5 as GetQuoteResponse, a6 as GetQuoteResponseObject, a7 as GetQuoteSingleResponse, b8 as GetSellerCredentialStatusParams, bf as IdentityAttestationActionType, bg as IdentityAttestationParams, bu as IndexerClient, c0 as IndexerDeploymentEnv, bA as IndexerDeposit, bR as IndexerDepositDailySnapshot, bT as IndexerDepositFilter, bQ as IndexerDepositFundActivity, bS as IndexerDepositFundActivityType, bW as IndexerDepositOrderDirection, bV as IndexerDepositOrderField, bU as IndexerDepositPagination, bD as IndexerDepositPaymentMethod, bw as IndexerDepositService, c3 as IndexerFulfillmentAndPaymentResponse, c1 as IndexerFulfillmentRecord, bB as IndexerIntentFulfilled, bC as IndexerIntentFulfillmentAmounts, bF as IndexerIntentStatus, bJ as IndexerManagerAggregateStats, bL as IndexerManagerDailySnapshot, bK as IndexerManagerStats, bO as IndexerManualRateUpdate, bE as IndexerMethodCurrency, bP as IndexerOracleConfigUpdate, c2 as IndexerPaymentVerifiedRecord, bG as IndexerRateManager, bI as IndexerRateManagerDelegation, bZ as IndexerRateManagerDelegationPagination, bN as IndexerRateManagerDetail, bX as IndexerRateManagerFilter, bM as IndexerRateManagerListItem, b$ as IndexerRateManagerOrderDirection, b_ as IndexerRateManagerOrderField, bY as IndexerRateManagerPagination, bH as IndexerRateManagerRate, bx as IndexerRateManagerService, an as Intent, cs as IntentView, bh as MakerIdentityAttestationRequestBody, bi as MakerIdentityPlatform, af as NearbyQuote, ag as NearbySuggestions, Z as OfframpClient, bj as OnchainCurrency, ct as OnchainIntent, bm as OrderStats, bt as OrderbookEntry, c4 as PAYMENT_PLATFORMS, aJ as PayPalCredentialUploadInput, ba as PayPalForwardingConfirmationErrorCode, aE as PayPalGoogleOAuthSellerCredentialUploadBody, aD as PayPalSessionMaterial, cp as PaymentMethodData, c5 as PaymentPlatformType, br as PlatformLimit, a1 as PlatformQuote, bs as PlatformRiskLevel, bl as PreparedTransaction, ac as QuoteFeesResponse, ab as QuoteIntentResponse, a2 as QuoteRequest, a8 as QuoteResponse, a9 as QuoteResponseObject, aa as QuoteSingleResponse, M as Range, cr as ReferralFee, av as RegisterPayeeDetailsRequest, aw as RegisterPayeeDetailsResponse, b6 as RegisteredUploadSellerCredentialParams, U as ReleaseFundsToPayerParams, ci as RuntimeEnv, aY as SellerAttestationOutput, aL as SellerCiphertextBundle, aQ as SellerCredentialBundle, aR as SellerCredentialBundleUpload, aZ as SellerCredentialProbeResponse, aT as SellerCredentialStatus, aS as SellerCredentialStatusValue, aK as SellerCredentialUploadInputByPlatform, aX as SellerPaymentTypedDataValue, aP as SellerProbeInput, aM as SellerSignedCiphertextBundle, aV as SellerTypedDataField, aW as SellerTypedDataSpec, aO as SellerVerifyInput, aN as SellerVerifyIntentDetails, aU as SellerVerifyProxyBody, cF as SendBatchFn, cE as SendTransactionFn, x as SignalIntentMethodParams, N as SignalIntentParams, w as SignalIntentReferralFee, bo as TakerTier, bq as TakerTierLevel, bp as TakerTierStats, H as TimeoutConfig, ae as TokenResponse, bd as UploadGoogleOAuthSellerCredentialParams, bb as UploadPayPalGoogleOAuthSellerCredentialParams, b7 as UploadSellerCredentialOptions, b5 as UploadSellerCredentialParams, bc as UploadVenmoGoogleOAuthSellerCredentialParams, aG as VenmoCredentialUploadInput, aF as VenmoGoogleOAuthSellerCredentialUploadBody, ax as VenmoSessionMaterial, be as VerifySellerPaymentParams, aI as WiseCredentialUploadInput, aA as WiseProfileInfo, aC as WiseProfileNotFound, aB as WiseProfileSelectionRequired, az as WiseSessionMaterial, W as WithdrawDepositParams, cu as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, z as Zkp2pClientOptions, cz as classifyDelegationState, by as compareEventCursorIdsByRecency, c7 as currencyInfo, bv as defaultIndexerEndpoint, cl as enrichPvDepositView, cm as enrichPvIntentView, bz as fetchIndexerFulfillmentAndPayment, ce as getContracts, ca as getCurrencyCodeFromHash, c9 as getCurrencyInfoFromCountryCode, c8 as getCurrencyInfoFromHash, cy as getDelegationRoute, ch as getGatingServiceAddress, cg as getPaymentMethodsCatalog, cf as getRateManagerContracts, cb as isSupportedCurrencyHash, cv as isZeroRateManagerId, cc as mapConversionRatesToOnchainMinRate, cw as normalizeRateManagerId, cx as normalizeRegistry, cj as parseDepositView, ck as parseIntentView } from './vaultUtils-BZU2bc0T.mjs';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, b as SellerCredentialUploadInput, c as SellerCredentialUploadPlatform, d as SellerCredentialAttestationRuntime, e as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, G as GoogleOAuthSellerCredentialPlatform, f as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, g as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, h as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, i as PostDepositDetailsResponse, j as GetPayeeDetailsRequest, k as GetPayeeDetailsResponse, l as GetOwnerDepositsRequest, m as GetOwnerDepositsResponse, n as GetTakerTierRequest, o as GetTakerTierResponse, p as GetDepositBundleParams, q as ApiAdapterOptions, r as GetDepositBundleResponse, s as GetOrderbookParams, t as GetOrderbookResponse, u as CurrencyType, v as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-CtNcKlpg.mjs';
2
+ export { J as ActionCallback, ai as ApiDeposit, ap as ApiIntentStatus, a$ as AttestationServiceSellerCredentialProbeResponse, aZ as AttestationServiceSellerVerifyResponse, E as AuthorizationTokenProvider, cE as BatchResult, _ as BestByPlatformResponseObject, b0 as BuyerTeePaymentParams, b1 as BuyerTeePaymentProofInput, b2 as BuyerTeeSessionMaterial, y as CancelIntentMethodParams, Y as CancelIntentParams, aI as CashAppCredentialUploadInput, aA as CashAppSessionMaterial, L as CreateDepositConversionRate, K as CreateDepositParams, b3 as CuratorSellerCredentialStatusResponse, b4 as CuratorSellerVerifyResponse, c7 as Currency, ce as CurrencyData, cD as DelegationDepositTarget, cB as DelegationRoute, cC as DelegationState, cp as Deposit, cr as DepositCurrency, bo as DepositIntentStatistics, al as DepositStatus, aj as DepositVerifier, ak as DepositVerifierCurrency, bl as DepositVerifierData, co as DepositView, ae as FiatResponse, a_ as FulfillIntentAttestationResponse, F as FulfillIntentMethodParams, O as FulfillIntentParams, $ as GetBestByPlatformResponse, a0 as GetBestByPlatformResponseObject, am as GetDepositByIdRequest, an as GetDepositByIdResponse, au as GetIntentByHashRequest, av as GetIntentByHashResponse, as as GetIntentsByDepositRequest, at as GetIntentsByDepositResponse, a4 as GetNearbyQuote, a5 as GetNearbySuggestions, aq as GetOwnerIntentsRequest, ar as GetOwnerIntentsResponse, a1 as GetPlatformQuote, a6 as GetQuoteResponse, a7 as GetQuoteResponseObject, a8 as GetQuoteSingleResponse, b9 as GetSellerCredentialStatusParams, be as IdentityAttestationActionType, bf as IdentityAttestationOutput, bg as IdentityAttestationOutputFor, bh as IdentityAttestationParams, bv as IndexerClient, c1 as IndexerDeploymentEnv, bB as IndexerDeposit, bS as IndexerDepositDailySnapshot, bU as IndexerDepositFilter, bR as IndexerDepositFundActivity, bT as IndexerDepositFundActivityType, bX as IndexerDepositOrderDirection, bW as IndexerDepositOrderField, bV as IndexerDepositPagination, bE as IndexerDepositPaymentMethod, bx as IndexerDepositService, c4 as IndexerFulfillmentAndPaymentResponse, c2 as IndexerFulfillmentRecord, bC as IndexerIntentFulfilled, bD as IndexerIntentFulfillmentAmounts, bG as IndexerIntentStatus, bK as IndexerManagerAggregateStats, bM as IndexerManagerDailySnapshot, bL as IndexerManagerStats, bP as IndexerManualRateUpdate, bF as IndexerMethodCurrency, bQ as IndexerOracleConfigUpdate, c3 as IndexerPaymentVerifiedRecord, bH as IndexerRateManager, bJ as IndexerRateManagerDelegation, b_ as IndexerRateManagerDelegationPagination, bO as IndexerRateManagerDetail, bY as IndexerRateManagerFilter, bN as IndexerRateManagerListItem, c0 as IndexerRateManagerOrderDirection, b$ as IndexerRateManagerOrderField, bZ as IndexerRateManagerPagination, bI as IndexerRateManagerRate, by as IndexerRateManagerService, ao as Intent, ct as IntentView, bi as MakerIdentityAttestationRequestBody, bj as MakerIdentityPlatform, ag as NearbyQuote, ah as NearbySuggestions, Z as OfframpClient, bk as OnchainCurrency, cu as OnchainIntent, bn as OrderStats, bu as OrderbookEntry, c5 as PAYMENT_PLATFORMS, aF as PayPalGoogleOAuthSellerCredentialUploadBody, cq as PaymentMethodData, c6 as PaymentPlatformType, bs as PlatformLimit, a2 as PlatformQuote, bt as PlatformRiskLevel, bm as PreparedTransaction, ad as QuoteFeesResponse, ac as QuoteIntentResponse, a3 as QuoteRequest, a9 as QuoteResponse, aa as QuoteResponseObject, ab as QuoteSingleResponse, M as Range, cs as ReferralFee, aw as RegisterPayeeDetailsRequest, ax as RegisterPayeeDetailsResponse, b5 as RegisteredSellerCredentialPlatform, b7 as RegisteredUploadSellerCredentialParams, X as ReleaseFundsToPayerParams, cj as RuntimeEnv, aX as SellerAttestationOutput, aL as SellerCiphertextBundle, aQ as SellerCredentialBundleUpload, aY as SellerCredentialProbeResponse, aS as SellerCredentialStatus, aR as SellerCredentialStatusValue, aK as SellerCredentialUploadInputByPlatform, aW as SellerPaymentTypedDataValue, ay as SellerPlatform, aP as SellerProbeInput, aM as SellerSignedCiphertextBundle, aU as SellerTypedDataField, aV as SellerTypedDataSpec, aO as SellerVerifyInput, aN as SellerVerifyIntentDetails, aT as SellerVerifyProxyBody, cG as SendBatchFn, cF as SendTransactionFn, x as SignalIntentMethodParams, N as SignalIntentParams, w as SignalIntentReferralFee, bp as TakerTier, br as TakerTierLevel, bq as TakerTierStats, H as TimeoutConfig, af as TokenResponse, bc as UploadGoogleOAuthSellerCredentialParams, ba as UploadPayPalGoogleOAuthSellerCredentialParams, b8 as UploadSellerCredentialOptions, b6 as UploadSellerCredentialParams, bb as UploadVenmoGoogleOAuthSellerCredentialParams, aH as VenmoCredentialUploadInput, aG as VenmoGoogleOAuthSellerCredentialUploadBody, az as VenmoSessionMaterial, bd as VerifySellerPaymentParams, aJ as WiseCredentialUploadInput, aC as WiseProfileInfo, aE as WiseProfileNotFound, aD as WiseProfileSelectionRequired, aB as WiseSessionMaterial, W as WithdrawDepositParams, cv as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, z as Zkp2pClientOptions, cA as classifyDelegationState, bz as compareEventCursorIdsByRecency, c8 as currencyInfo, bw as defaultIndexerEndpoint, cm as enrichPvDepositView, cn as enrichPvIntentView, bA as fetchIndexerFulfillmentAndPayment, cf as getContracts, cb as getCurrencyCodeFromHash, ca as getCurrencyInfoFromCountryCode, c9 as getCurrencyInfoFromHash, cz as getDelegationRoute, ci as getGatingServiceAddress, ch as getPaymentMethodsCatalog, cg as getRateManagerContracts, cc as isSupportedCurrencyHash, cw as isZeroRateManagerId, cd as mapConversionRatesToOnchainMinRate, cx as normalizeRateManagerId, cy as normalizeRegistry, ck as parseDepositView, cl as parseIntentView } from './vaultUtils-CtNcKlpg.mjs';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
- export { IdentityActionType, IdentityActionTypeByPlatform, IdentityAttestationOutput, IdentityAttestationOutputFor, IdentityParamsByPlatform, IdentityPlatform } from '@zkp2p/zkp2p-attestation';
5
+ export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
6
6
  import '@zkp2p/indexer-schema';
7
7
 
8
8
  interface EscrowRange {
@@ -127,36 +127,52 @@ declare class ContractRouter {
127
127
  }
128
128
 
129
129
  type PeerConnectionStatus = 'connected' | 'disconnected' | 'pending';
130
- type PeerOnrampPreparedTransactionResult = {
131
- intentHash: `0x${string}`;
132
- status: 'calldata_ready';
133
- transaction: {
134
- to: `0x${string}`;
135
- data: `0x${string}`;
136
- value: string;
137
- chainId: number;
138
- };
130
+ type PeerMetadataCaptureMode = 'buyerTee' | 'sellerCredential';
131
+ type PeerMetadataProviderConfig = Record<string, unknown>;
132
+ type PeerAuthenticateParams = {
133
+ actionType: string;
134
+ attestationActionType?: string | null;
135
+ attestationServiceUrl?: string | null;
136
+ captureMode?: PeerMetadataCaptureMode;
137
+ platform: string;
138
+ providerConfig?: PeerMetadataProviderConfig;
139
+ };
140
+ type PeerBuyerTeePaymentParams = Record<string, string | number | boolean>;
141
+ type PeerBuyerTeePaymentCapture = {
142
+ encryptedSessionMaterial: string;
143
+ params?: PeerBuyerTeePaymentParams[];
144
+ };
145
+ type PeerSarCredentialCapture = {
146
+ credentialBundle: SellerCredentialBundle;
147
+ offchainId: string;
148
+ };
149
+ type PeerMetadataRow = {
150
+ amount?: string;
151
+ currency?: string;
152
+ date?: string;
153
+ hidden: boolean;
154
+ originalIndex: number;
155
+ params?: PeerBuyerTeePaymentParams;
156
+ paymentId?: string;
157
+ recipient?: string;
158
+ [key: string]: unknown;
139
159
  };
140
- type PeerOnrampPreparedTransactionCallback = (result: PeerOnrampPreparedTransactionResult) => void;
160
+ type PeerMetadataMessage = {
161
+ buyerTeeCapture?: PeerBuyerTeePaymentCapture | null;
162
+ errorMessage?: string;
163
+ expiresAt: number;
164
+ metadata: PeerMetadataRow[];
165
+ platform: string;
166
+ requestId: string;
167
+ sarCredentialCapture?: PeerSarCredentialCapture | null;
168
+ };
169
+ type PeerMetadataMessageCallback = (message: PeerMetadataMessage) => void;
141
170
  type PeerExtensionApi = {
142
171
  requestConnection(): Promise<boolean>;
143
172
  checkConnectionStatus(): Promise<PeerConnectionStatus>;
144
- openSidebar(route: string): void;
145
- onramp(queryString: string, callback: PeerOnrampPreparedTransactionCallback): void;
146
- getOnrampTransaction(intentHash: string): Promise<PeerOnrampPreparedTransactionResult | null>;
147
173
  getVersion(): Promise<string>;
148
- };
149
- type PeerExtensionOnrampParams = {
150
- intentHash: string;
151
- referrer?: string;
152
- referrerLogo?: string;
153
- inputCurrency?: string;
154
- inputAmount?: string | number;
155
- paymentPlatform?: string;
156
- depositId?: string | number | bigint;
157
- toToken?: string;
158
- amountUsdc?: string | number | bigint;
159
- recipientAddress?: string;
174
+ authenticate(params: PeerAuthenticateParams): void;
175
+ onMetadataMessage(callback: PeerMetadataMessageCallback): () => void;
160
176
  };
161
177
  type PeerExtensionWindow = Window & {
162
178
  peer?: PeerExtensionApi;
@@ -167,10 +183,9 @@ type PeerExtensionSdkOptions = {
167
183
  type PeerExtensionSdk = {
168
184
  requestConnection(): Promise<boolean>;
169
185
  checkConnectionStatus(): Promise<PeerConnectionStatus>;
170
- openSidebar(route: string): void;
171
- onramp(params: PeerExtensionOnrampParams, callback: PeerOnrampPreparedTransactionCallback): void;
172
- getOnrampTransaction(intentHash: string): Promise<PeerOnrampPreparedTransactionResult | null>;
173
186
  getVersion(): Promise<string>;
187
+ authenticate(params: PeerAuthenticateParams): void;
188
+ onMetadataMessage(callback: PeerMetadataMessageCallback): () => void;
174
189
  isAvailable(): boolean;
175
190
  openInstallPage(): void;
176
191
  getState(): Promise<PeerExtensionState>;
@@ -193,7 +208,12 @@ declare function convertIndexerIntentsToEscrowViews(intents: IntentEntity[], dep
193
208
 
194
209
  declare function apiRequestIdentityAttestation(payload: IdentityAttestationRequestBody, attestationServiceUrl: string, platform: string, actionType: string): Promise<AttestationServiceIdentityResponse>;
195
210
  declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
196
- declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
211
+ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerCredentialUploadPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
212
+
213
+ /**
214
+ * Store an already-encrypted seller credential bundle with curator.
215
+ */
216
+ declare function apiUploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, baseApiUrl?: string | null, timeoutMs?: number): Promise<CuratorSellerCredentialUploadResponse>;
197
217
 
198
218
  declare function apiPostDepositDetails(req: PostDepositDetailsRequest, baseApiUrl: string, timeoutMs?: number, _apiKey?: string, _authToken?: string): Promise<PostDepositDetailsResponse>;
199
219
  declare function apiGetQuotesBestByPlatform(req: QuotesBestByPlatformRequest, baseApiUrl: string, timeoutMs?: number, apiKey?: string, authToken?: string): Promise<BestByPlatformResponse>;
@@ -204,14 +224,6 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
204
224
  * Get taker tier information for a specific address.
205
225
  */
206
226
  declare function apiGetTakerTier(req: GetTakerTierRequest, apiKey: string | undefined, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
207
- declare function apiConfirmPayPalForwarding(payeeDetails: Hash, body: {
208
- payeeEmail: string;
209
- forwardingInitiatorEmail: string;
210
- }, baseApiUrl: string, opts?: {
211
- apiKey?: string;
212
- authToken?: string;
213
- timeoutMs?: number;
214
- }): Promise<ConfirmPayPalForwardingResponse>;
215
227
  declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSellerCredentialPlatform>(processorName: P, payeeDetails: Hash, body: GoogleOAuthSellerCredentialUploadBodyByPlatform[P], baseApiUrl: string, opts?: {
216
228
  apiKey?: string;
217
229
  authToken?: string;
@@ -719,4 +731,4 @@ declare class ContractError extends ZKP2PError {
719
731
  constructor(message: string, details?: unknown);
720
732
  }
721
733
 
722
- export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ConfirmPayPalForwardingResponse, 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 PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionOnrampParams, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerOnrampPreparedTransactionCallback, type PeerOnrampPreparedTransactionResult, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialUploadInput, SellerPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiConfirmPayPalForwarding, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
734
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, 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, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { R as ReferrerFeeConfig, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, S as SellerCredentialUploadInput, b as SellerPlatform, c as SellerCredentialAttestationRuntime, d as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, C as ConfirmPayPalForwardingResponse, G as GoogleOAuthSellerCredentialPlatform, e as GoogleOAuthSellerCredentialUploadBodyByPlatform, f as CuratorSellerCredentialUploadResponse, Q as QuotesBestByPlatformRequest, g as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, h as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, i as PostDepositDetailsResponse, j as GetPayeeDetailsRequest, k as GetPayeeDetailsResponse, l as GetOwnerDepositsRequest, m as GetOwnerDepositsResponse, n as GetTakerTierRequest, o as GetTakerTierResponse, p as GetDepositBundleParams, q as ApiAdapterOptions, r as GetDepositBundleResponse, s as GetOrderbookParams, t as GetOrderbookResponse, u as CurrencyType, v as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-BZU2bc0T.js';
2
- export { J as ActionCallback, ah as ApiDeposit, ao as ApiIntentStatus, a$ as AttestationServiceSellerCredentialProbeResponse, a_ as AttestationServiceSellerVerifyResponse, E as AuthorizationTokenProvider, cD as BatchResult, Y as BestByPlatformResponseObject, b0 as BuyerTeePaymentParams, b1 as BuyerTeePaymentProofInput, b2 as BuyerTeeSessionMaterial, y as CancelIntentMethodParams, X as CancelIntentParams, aH as CashAppCredentialUploadInput, ay as CashAppSessionMaterial, b9 as ConfirmPayPalForwardingRequest, L as CreateDepositConversionRate, K as CreateDepositParams, b3 as CuratorSellerCredentialStatusResponse, b4 as CuratorSellerVerifyResponse, c6 as Currency, cd as CurrencyData, cC as DelegationDepositTarget, cA as DelegationRoute, cB as DelegationState, co as Deposit, cq as DepositCurrency, bn as DepositIntentStatistics, ak as DepositStatus, ai as DepositVerifier, aj as DepositVerifierCurrency, bk as DepositVerifierData, cn as DepositView, ad as FiatResponse, F as FulfillIntentMethodParams, O as FulfillIntentParams, _ as GetBestByPlatformResponse, $ as GetBestByPlatformResponseObject, al as GetDepositByIdRequest, am as GetDepositByIdResponse, at as GetIntentByHashRequest, au as GetIntentByHashResponse, ar as GetIntentsByDepositRequest, as as GetIntentsByDepositResponse, a3 as GetNearbyQuote, a4 as GetNearbySuggestions, ap as GetOwnerIntentsRequest, aq as GetOwnerIntentsResponse, a0 as GetPlatformQuote, a5 as GetQuoteResponse, a6 as GetQuoteResponseObject, a7 as GetQuoteSingleResponse, b8 as GetSellerCredentialStatusParams, bf as IdentityAttestationActionType, bg as IdentityAttestationParams, bu as IndexerClient, c0 as IndexerDeploymentEnv, bA as IndexerDeposit, bR as IndexerDepositDailySnapshot, bT as IndexerDepositFilter, bQ as IndexerDepositFundActivity, bS as IndexerDepositFundActivityType, bW as IndexerDepositOrderDirection, bV as IndexerDepositOrderField, bU as IndexerDepositPagination, bD as IndexerDepositPaymentMethod, bw as IndexerDepositService, c3 as IndexerFulfillmentAndPaymentResponse, c1 as IndexerFulfillmentRecord, bB as IndexerIntentFulfilled, bC as IndexerIntentFulfillmentAmounts, bF as IndexerIntentStatus, bJ as IndexerManagerAggregateStats, bL as IndexerManagerDailySnapshot, bK as IndexerManagerStats, bO as IndexerManualRateUpdate, bE as IndexerMethodCurrency, bP as IndexerOracleConfigUpdate, c2 as IndexerPaymentVerifiedRecord, bG as IndexerRateManager, bI as IndexerRateManagerDelegation, bZ as IndexerRateManagerDelegationPagination, bN as IndexerRateManagerDetail, bX as IndexerRateManagerFilter, bM as IndexerRateManagerListItem, b$ as IndexerRateManagerOrderDirection, b_ as IndexerRateManagerOrderField, bY as IndexerRateManagerPagination, bH as IndexerRateManagerRate, bx as IndexerRateManagerService, an as Intent, cs as IntentView, bh as MakerIdentityAttestationRequestBody, bi as MakerIdentityPlatform, af as NearbyQuote, ag as NearbySuggestions, Z as OfframpClient, bj as OnchainCurrency, ct as OnchainIntent, bm as OrderStats, bt as OrderbookEntry, c4 as PAYMENT_PLATFORMS, aJ as PayPalCredentialUploadInput, ba as PayPalForwardingConfirmationErrorCode, aE as PayPalGoogleOAuthSellerCredentialUploadBody, aD as PayPalSessionMaterial, cp as PaymentMethodData, c5 as PaymentPlatformType, br as PlatformLimit, a1 as PlatformQuote, bs as PlatformRiskLevel, bl as PreparedTransaction, ac as QuoteFeesResponse, ab as QuoteIntentResponse, a2 as QuoteRequest, a8 as QuoteResponse, a9 as QuoteResponseObject, aa as QuoteSingleResponse, M as Range, cr as ReferralFee, av as RegisterPayeeDetailsRequest, aw as RegisterPayeeDetailsResponse, b6 as RegisteredUploadSellerCredentialParams, U as ReleaseFundsToPayerParams, ci as RuntimeEnv, aY as SellerAttestationOutput, aL as SellerCiphertextBundle, aQ as SellerCredentialBundle, aR as SellerCredentialBundleUpload, aZ as SellerCredentialProbeResponse, aT as SellerCredentialStatus, aS as SellerCredentialStatusValue, aK as SellerCredentialUploadInputByPlatform, aX as SellerPaymentTypedDataValue, aP as SellerProbeInput, aM as SellerSignedCiphertextBundle, aV as SellerTypedDataField, aW as SellerTypedDataSpec, aO as SellerVerifyInput, aN as SellerVerifyIntentDetails, aU as SellerVerifyProxyBody, cF as SendBatchFn, cE as SendTransactionFn, x as SignalIntentMethodParams, N as SignalIntentParams, w as SignalIntentReferralFee, bo as TakerTier, bq as TakerTierLevel, bp as TakerTierStats, H as TimeoutConfig, ae as TokenResponse, bd as UploadGoogleOAuthSellerCredentialParams, bb as UploadPayPalGoogleOAuthSellerCredentialParams, b7 as UploadSellerCredentialOptions, b5 as UploadSellerCredentialParams, bc as UploadVenmoGoogleOAuthSellerCredentialParams, aG as VenmoCredentialUploadInput, aF as VenmoGoogleOAuthSellerCredentialUploadBody, ax as VenmoSessionMaterial, be as VerifySellerPaymentParams, aI as WiseCredentialUploadInput, aA as WiseProfileInfo, aC as WiseProfileNotFound, aB as WiseProfileSelectionRequired, az as WiseSessionMaterial, W as WithdrawDepositParams, cu as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, z as Zkp2pClientOptions, cz as classifyDelegationState, by as compareEventCursorIdsByRecency, c7 as currencyInfo, bv as defaultIndexerEndpoint, cl as enrichPvDepositView, cm as enrichPvIntentView, bz as fetchIndexerFulfillmentAndPayment, ce as getContracts, ca as getCurrencyCodeFromHash, c9 as getCurrencyInfoFromCountryCode, c8 as getCurrencyInfoFromHash, cy as getDelegationRoute, ch as getGatingServiceAddress, cg as getPaymentMethodsCatalog, cf as getRateManagerContracts, cb as isSupportedCurrencyHash, cv as isZeroRateManagerId, cc as mapConversionRatesToOnchainMinRate, cw as normalizeRateManagerId, cx as normalizeRegistry, cj as parseDepositView, ck as parseIntentView } from './vaultUtils-BZU2bc0T.js';
1
+ import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, b as SellerCredentialUploadInput, c as SellerCredentialUploadPlatform, d as SellerCredentialAttestationRuntime, e as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, G as GoogleOAuthSellerCredentialPlatform, f as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, g as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, h as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, i as PostDepositDetailsResponse, j as GetPayeeDetailsRequest, k as GetPayeeDetailsResponse, l as GetOwnerDepositsRequest, m as GetOwnerDepositsResponse, n as GetTakerTierRequest, o as GetTakerTierResponse, p as GetDepositBundleParams, q as ApiAdapterOptions, r as GetDepositBundleResponse, s as GetOrderbookParams, t as GetOrderbookResponse, u as CurrencyType, v as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-CtNcKlpg.js';
2
+ export { J as ActionCallback, ai as ApiDeposit, ap as ApiIntentStatus, a$ as AttestationServiceSellerCredentialProbeResponse, aZ as AttestationServiceSellerVerifyResponse, E as AuthorizationTokenProvider, cE as BatchResult, _ as BestByPlatformResponseObject, b0 as BuyerTeePaymentParams, b1 as BuyerTeePaymentProofInput, b2 as BuyerTeeSessionMaterial, y as CancelIntentMethodParams, Y as CancelIntentParams, aI as CashAppCredentialUploadInput, aA as CashAppSessionMaterial, L as CreateDepositConversionRate, K as CreateDepositParams, b3 as CuratorSellerCredentialStatusResponse, b4 as CuratorSellerVerifyResponse, c7 as Currency, ce as CurrencyData, cD as DelegationDepositTarget, cB as DelegationRoute, cC as DelegationState, cp as Deposit, cr as DepositCurrency, bo as DepositIntentStatistics, al as DepositStatus, aj as DepositVerifier, ak as DepositVerifierCurrency, bl as DepositVerifierData, co as DepositView, ae as FiatResponse, a_ as FulfillIntentAttestationResponse, F as FulfillIntentMethodParams, O as FulfillIntentParams, $ as GetBestByPlatformResponse, a0 as GetBestByPlatformResponseObject, am as GetDepositByIdRequest, an as GetDepositByIdResponse, au as GetIntentByHashRequest, av as GetIntentByHashResponse, as as GetIntentsByDepositRequest, at as GetIntentsByDepositResponse, a4 as GetNearbyQuote, a5 as GetNearbySuggestions, aq as GetOwnerIntentsRequest, ar as GetOwnerIntentsResponse, a1 as GetPlatformQuote, a6 as GetQuoteResponse, a7 as GetQuoteResponseObject, a8 as GetQuoteSingleResponse, b9 as GetSellerCredentialStatusParams, be as IdentityAttestationActionType, bf as IdentityAttestationOutput, bg as IdentityAttestationOutputFor, bh as IdentityAttestationParams, bv as IndexerClient, c1 as IndexerDeploymentEnv, bB as IndexerDeposit, bS as IndexerDepositDailySnapshot, bU as IndexerDepositFilter, bR as IndexerDepositFundActivity, bT as IndexerDepositFundActivityType, bX as IndexerDepositOrderDirection, bW as IndexerDepositOrderField, bV as IndexerDepositPagination, bE as IndexerDepositPaymentMethod, bx as IndexerDepositService, c4 as IndexerFulfillmentAndPaymentResponse, c2 as IndexerFulfillmentRecord, bC as IndexerIntentFulfilled, bD as IndexerIntentFulfillmentAmounts, bG as IndexerIntentStatus, bK as IndexerManagerAggregateStats, bM as IndexerManagerDailySnapshot, bL as IndexerManagerStats, bP as IndexerManualRateUpdate, bF as IndexerMethodCurrency, bQ as IndexerOracleConfigUpdate, c3 as IndexerPaymentVerifiedRecord, bH as IndexerRateManager, bJ as IndexerRateManagerDelegation, b_ as IndexerRateManagerDelegationPagination, bO as IndexerRateManagerDetail, bY as IndexerRateManagerFilter, bN as IndexerRateManagerListItem, c0 as IndexerRateManagerOrderDirection, b$ as IndexerRateManagerOrderField, bZ as IndexerRateManagerPagination, bI as IndexerRateManagerRate, by as IndexerRateManagerService, ao as Intent, ct as IntentView, bi as MakerIdentityAttestationRequestBody, bj as MakerIdentityPlatform, ag as NearbyQuote, ah as NearbySuggestions, Z as OfframpClient, bk as OnchainCurrency, cu as OnchainIntent, bn as OrderStats, bu as OrderbookEntry, c5 as PAYMENT_PLATFORMS, aF as PayPalGoogleOAuthSellerCredentialUploadBody, cq as PaymentMethodData, c6 as PaymentPlatformType, bs as PlatformLimit, a2 as PlatformQuote, bt as PlatformRiskLevel, bm as PreparedTransaction, ad as QuoteFeesResponse, ac as QuoteIntentResponse, a3 as QuoteRequest, a9 as QuoteResponse, aa as QuoteResponseObject, ab as QuoteSingleResponse, M as Range, cs as ReferralFee, aw as RegisterPayeeDetailsRequest, ax as RegisterPayeeDetailsResponse, b5 as RegisteredSellerCredentialPlatform, b7 as RegisteredUploadSellerCredentialParams, X as ReleaseFundsToPayerParams, cj as RuntimeEnv, aX as SellerAttestationOutput, aL as SellerCiphertextBundle, aQ as SellerCredentialBundleUpload, aY as SellerCredentialProbeResponse, aS as SellerCredentialStatus, aR as SellerCredentialStatusValue, aK as SellerCredentialUploadInputByPlatform, aW as SellerPaymentTypedDataValue, ay as SellerPlatform, aP as SellerProbeInput, aM as SellerSignedCiphertextBundle, aU as SellerTypedDataField, aV as SellerTypedDataSpec, aO as SellerVerifyInput, aN as SellerVerifyIntentDetails, aT as SellerVerifyProxyBody, cG as SendBatchFn, cF as SendTransactionFn, x as SignalIntentMethodParams, N as SignalIntentParams, w as SignalIntentReferralFee, bp as TakerTier, br as TakerTierLevel, bq as TakerTierStats, H as TimeoutConfig, af as TokenResponse, bc as UploadGoogleOAuthSellerCredentialParams, ba as UploadPayPalGoogleOAuthSellerCredentialParams, b8 as UploadSellerCredentialOptions, b6 as UploadSellerCredentialParams, bb as UploadVenmoGoogleOAuthSellerCredentialParams, aH as VenmoCredentialUploadInput, aG as VenmoGoogleOAuthSellerCredentialUploadBody, az as VenmoSessionMaterial, bd as VerifySellerPaymentParams, aJ as WiseCredentialUploadInput, aC as WiseProfileInfo, aE as WiseProfileNotFound, aD as WiseProfileSelectionRequired, aB as WiseSessionMaterial, W as WithdrawDepositParams, cv as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, z as Zkp2pClientOptions, cA as classifyDelegationState, bz as compareEventCursorIdsByRecency, c8 as currencyInfo, bw as defaultIndexerEndpoint, cm as enrichPvDepositView, cn as enrichPvIntentView, bA as fetchIndexerFulfillmentAndPayment, cf as getContracts, cb as getCurrencyCodeFromHash, ca as getCurrencyInfoFromCountryCode, c9 as getCurrencyInfoFromHash, cz as getDelegationRoute, ci as getGatingServiceAddress, ch as getPaymentMethodsCatalog, cg as getRateManagerContracts, cc as isSupportedCurrencyHash, cw as isZeroRateManagerId, cd as mapConversionRatesToOnchainMinRate, cx as normalizeRateManagerId, cy as normalizeRegistry, ck as parseDepositView, cl as parseIntentView } from './vaultUtils-CtNcKlpg.js';
3
3
  import { Address, Hash, Hex, WalletClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
- export { IdentityActionType, IdentityActionTypeByPlatform, IdentityAttestationOutput, IdentityAttestationOutputFor, IdentityParamsByPlatform, IdentityPlatform } from '@zkp2p/zkp2p-attestation';
5
+ export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
6
6
  import '@zkp2p/indexer-schema';
7
7
 
8
8
  interface EscrowRange {
@@ -127,36 +127,52 @@ declare class ContractRouter {
127
127
  }
128
128
 
129
129
  type PeerConnectionStatus = 'connected' | 'disconnected' | 'pending';
130
- type PeerOnrampPreparedTransactionResult = {
131
- intentHash: `0x${string}`;
132
- status: 'calldata_ready';
133
- transaction: {
134
- to: `0x${string}`;
135
- data: `0x${string}`;
136
- value: string;
137
- chainId: number;
138
- };
130
+ type PeerMetadataCaptureMode = 'buyerTee' | 'sellerCredential';
131
+ type PeerMetadataProviderConfig = Record<string, unknown>;
132
+ type PeerAuthenticateParams = {
133
+ actionType: string;
134
+ attestationActionType?: string | null;
135
+ attestationServiceUrl?: string | null;
136
+ captureMode?: PeerMetadataCaptureMode;
137
+ platform: string;
138
+ providerConfig?: PeerMetadataProviderConfig;
139
+ };
140
+ type PeerBuyerTeePaymentParams = Record<string, string | number | boolean>;
141
+ type PeerBuyerTeePaymentCapture = {
142
+ encryptedSessionMaterial: string;
143
+ params?: PeerBuyerTeePaymentParams[];
144
+ };
145
+ type PeerSarCredentialCapture = {
146
+ credentialBundle: SellerCredentialBundle;
147
+ offchainId: string;
148
+ };
149
+ type PeerMetadataRow = {
150
+ amount?: string;
151
+ currency?: string;
152
+ date?: string;
153
+ hidden: boolean;
154
+ originalIndex: number;
155
+ params?: PeerBuyerTeePaymentParams;
156
+ paymentId?: string;
157
+ recipient?: string;
158
+ [key: string]: unknown;
139
159
  };
140
- type PeerOnrampPreparedTransactionCallback = (result: PeerOnrampPreparedTransactionResult) => void;
160
+ type PeerMetadataMessage = {
161
+ buyerTeeCapture?: PeerBuyerTeePaymentCapture | null;
162
+ errorMessage?: string;
163
+ expiresAt: number;
164
+ metadata: PeerMetadataRow[];
165
+ platform: string;
166
+ requestId: string;
167
+ sarCredentialCapture?: PeerSarCredentialCapture | null;
168
+ };
169
+ type PeerMetadataMessageCallback = (message: PeerMetadataMessage) => void;
141
170
  type PeerExtensionApi = {
142
171
  requestConnection(): Promise<boolean>;
143
172
  checkConnectionStatus(): Promise<PeerConnectionStatus>;
144
- openSidebar(route: string): void;
145
- onramp(queryString: string, callback: PeerOnrampPreparedTransactionCallback): void;
146
- getOnrampTransaction(intentHash: string): Promise<PeerOnrampPreparedTransactionResult | null>;
147
173
  getVersion(): Promise<string>;
148
- };
149
- type PeerExtensionOnrampParams = {
150
- intentHash: string;
151
- referrer?: string;
152
- referrerLogo?: string;
153
- inputCurrency?: string;
154
- inputAmount?: string | number;
155
- paymentPlatform?: string;
156
- depositId?: string | number | bigint;
157
- toToken?: string;
158
- amountUsdc?: string | number | bigint;
159
- recipientAddress?: string;
174
+ authenticate(params: PeerAuthenticateParams): void;
175
+ onMetadataMessage(callback: PeerMetadataMessageCallback): () => void;
160
176
  };
161
177
  type PeerExtensionWindow = Window & {
162
178
  peer?: PeerExtensionApi;
@@ -167,10 +183,9 @@ type PeerExtensionSdkOptions = {
167
183
  type PeerExtensionSdk = {
168
184
  requestConnection(): Promise<boolean>;
169
185
  checkConnectionStatus(): Promise<PeerConnectionStatus>;
170
- openSidebar(route: string): void;
171
- onramp(params: PeerExtensionOnrampParams, callback: PeerOnrampPreparedTransactionCallback): void;
172
- getOnrampTransaction(intentHash: string): Promise<PeerOnrampPreparedTransactionResult | null>;
173
186
  getVersion(): Promise<string>;
187
+ authenticate(params: PeerAuthenticateParams): void;
188
+ onMetadataMessage(callback: PeerMetadataMessageCallback): () => void;
174
189
  isAvailable(): boolean;
175
190
  openInstallPage(): void;
176
191
  getState(): Promise<PeerExtensionState>;
@@ -193,7 +208,12 @@ declare function convertIndexerIntentsToEscrowViews(intents: IntentEntity[], dep
193
208
 
194
209
  declare function apiRequestIdentityAttestation(payload: IdentityAttestationRequestBody, attestationServiceUrl: string, platform: string, actionType: string): Promise<AttestationServiceIdentityResponse>;
195
210
  declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
196
- declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
211
+ declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerCredentialUploadPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
212
+
213
+ /**
214
+ * Store an already-encrypted seller credential bundle with curator.
215
+ */
216
+ declare function apiUploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, baseApiUrl?: string | null, timeoutMs?: number): Promise<CuratorSellerCredentialUploadResponse>;
197
217
 
198
218
  declare function apiPostDepositDetails(req: PostDepositDetailsRequest, baseApiUrl: string, timeoutMs?: number, _apiKey?: string, _authToken?: string): Promise<PostDepositDetailsResponse>;
199
219
  declare function apiGetQuotesBestByPlatform(req: QuotesBestByPlatformRequest, baseApiUrl: string, timeoutMs?: number, apiKey?: string, authToken?: string): Promise<BestByPlatformResponse>;
@@ -204,14 +224,6 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
204
224
  * Get taker tier information for a specific address.
205
225
  */
206
226
  declare function apiGetTakerTier(req: GetTakerTierRequest, apiKey: string | undefined, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
207
- declare function apiConfirmPayPalForwarding(payeeDetails: Hash, body: {
208
- payeeEmail: string;
209
- forwardingInitiatorEmail: string;
210
- }, baseApiUrl: string, opts?: {
211
- apiKey?: string;
212
- authToken?: string;
213
- timeoutMs?: number;
214
- }): Promise<ConfirmPayPalForwardingResponse>;
215
227
  declare function apiUploadGoogleOAuthSellerCredential<P extends GoogleOAuthSellerCredentialPlatform>(processorName: P, payeeDetails: Hash, body: GoogleOAuthSellerCredentialUploadBodyByPlatform[P], baseApiUrl: string, opts?: {
216
228
  apiKey?: string;
217
229
  authToken?: string;
@@ -719,4 +731,4 @@ declare class ContractError extends ZKP2PError {
719
731
  constructor(message: string, details?: unknown);
720
732
  }
721
733
 
722
- export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ConfirmPayPalForwardingResponse, 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 PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionOnrampParams, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerOnrampPreparedTransactionCallback, type PeerOnrampPreparedTransactionResult, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialUploadInput, SellerPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiConfirmPayPalForwarding, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
734
+ export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, 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, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiRequestIdentityAttestation, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };