@zkp2p/sdk 0.4.2 → 0.5.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/react.d.mts CHANGED
@@ -1,8 +1,9 @@
1
- import { Z as Zkp2pClient, P as PostDepositDetailsRequest, v as SignalIntentMethodParams, bf as PreparedTransaction, bi as TakerTier, l as GetTakerTierRequest, m as GetTakerTierResponse, F as FulfillIntentMethodParams, cy as SendTransactionFn, cz as SendBatchFn, cw as DelegationDepositTarget, cx as BatchResult } from './vaultUtils-Bi2uldoa.mjs';
2
- export { cu as DelegationRoute, cv as DelegationState, cA as VAULT_ZERO_ADDRESS, co as ZERO_RATE_MANAGER_ID, cB as asErrorMessage, cC as assertDelegationMethodSupport, ct as classifyDelegationState, cs as getDelegationRoute, cp as isZeroRateManagerId, cq as normalizeRateManagerId, cr as normalizeRegistry } from './vaultUtils-Bi2uldoa.mjs';
1
+ import { Z as Zkp2pClient, P as PostDepositDetailsRequest, y as SignalIntentMethodParams, bo as PreparedTransaction, br as TakerTier, o as GetTakerTierRequest, p as GetTakerTierResponse, F as FulfillIntentMethodParams, cH as SendTransactionFn, cI as SendBatchFn, cF as DelegationDepositTarget, cG as BatchResult } from './vaultUtils-BL8tzsmH.mjs';
2
+ export { cD as DelegationRoute, cE as DelegationState, cJ as VAULT_ZERO_ADDRESS, cx as ZERO_RATE_MANAGER_ID, cK as asErrorMessage, cL as assertDelegationMethodSupport, cC as classifyDelegationState, cB as getDelegationRoute, cy as isZeroRateManagerId, cz as normalizeRateManagerId, cA as normalizeRegistry } from './vaultUtils-BL8tzsmH.mjs';
3
3
  import { Hash, Address, Hex } from 'viem';
4
4
  import '@zkp2p/indexer-schema';
5
5
  import 'abitype';
6
+ import '@zkp2p/zkp2p-attestation';
6
7
 
7
8
  interface UseCreateDepositOptions {
8
9
  client: Zkp2pClient | null;
package/dist/react.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { Z as Zkp2pClient, P as PostDepositDetailsRequest, v as SignalIntentMethodParams, bf as PreparedTransaction, bi as TakerTier, l as GetTakerTierRequest, m as GetTakerTierResponse, F as FulfillIntentMethodParams, cy as SendTransactionFn, cz as SendBatchFn, cw as DelegationDepositTarget, cx as BatchResult } from './vaultUtils-Bi2uldoa.js';
2
- export { cu as DelegationRoute, cv as DelegationState, cA as VAULT_ZERO_ADDRESS, co as ZERO_RATE_MANAGER_ID, cB as asErrorMessage, cC as assertDelegationMethodSupport, ct as classifyDelegationState, cs as getDelegationRoute, cp as isZeroRateManagerId, cq as normalizeRateManagerId, cr as normalizeRegistry } from './vaultUtils-Bi2uldoa.js';
1
+ import { Z as Zkp2pClient, P as PostDepositDetailsRequest, y as SignalIntentMethodParams, bo as PreparedTransaction, br as TakerTier, o as GetTakerTierRequest, p as GetTakerTierResponse, F as FulfillIntentMethodParams, cH as SendTransactionFn, cI as SendBatchFn, cF as DelegationDepositTarget, cG as BatchResult } from './vaultUtils-BL8tzsmH.js';
2
+ export { cD as DelegationRoute, cE as DelegationState, cJ as VAULT_ZERO_ADDRESS, cx as ZERO_RATE_MANAGER_ID, cK as asErrorMessage, cL as assertDelegationMethodSupport, cC as classifyDelegationState, cB as getDelegationRoute, cy as isZeroRateManagerId, cz as normalizeRateManagerId, cA as normalizeRegistry } from './vaultUtils-BL8tzsmH.js';
3
3
  import { Hash, Address, Hex } from 'viem';
4
4
  import '@zkp2p/indexer-schema';
5
5
  import 'abitype';
6
+ import '@zkp2p/zkp2p-attestation';
6
7
 
7
8
  interface UseCreateDepositOptions {
8
9
  client: Zkp2pClient | null;
@@ -2,6 +2,7 @@ import * as _zkp2p_indexer_schema from '@zkp2p/indexer-schema';
2
2
  import { Deposit, DepositStatus as DepositStatus$2, IntentStatus as IntentStatus$1, DepositPaymentMethod, MethodCurrency, Intent as Intent$1, MakerProfitSnapshot, RateManager, ManagerAggregateStats, RateManagerRate, ManagerStats, DepositFundActivity, DepositDailySnapshot, ManagerDailySnapshot } from '@zkp2p/indexer-schema';
3
3
  import { Address, Hex, AccessList, AuthorizationList, Hash, WalletClient, PublicClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
+ import { IdentityPlatform, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityAttestationOutput } from '@zkp2p/zkp2p-attestation';
5
6
 
6
7
  /**
7
8
  * Supported fiat currency codes.
@@ -461,6 +462,7 @@ interface DepositEventsResponse$1 {
461
462
  }
462
463
  interface IntentFulfilledEntity {
463
464
  intentHash: string;
465
+ amount: string;
464
466
  isManualRelease: boolean;
465
467
  fundsTransferredTo?: string | null;
466
468
  }
@@ -985,15 +987,16 @@ type ReferrerFeeConfig = {
985
987
  recipient: `0x${string}`;
986
988
  feeBps: number;
987
989
  };
990
+ type CuratorMetadata = Record<string, any>;
988
991
  type CuratorPayeeData = {
989
992
  offchainId: string;
990
993
  telegramUsername: string | null;
991
- metadata: Record<string, string> | null;
994
+ metadata: CuratorMetadata | null;
992
995
  };
993
996
  type CuratorPayeeDataInput = {
994
997
  offchainId: string;
995
998
  telegramUsername?: string | null;
996
- metadata?: Record<string, string> | null;
999
+ metadata?: CuratorMetadata | null;
997
1000
  };
998
1001
  /**
999
1002
  * Parameters for fulfilling an intent with payment attestation
@@ -1014,6 +1017,7 @@ type FulfillIntentParams = {
1014
1017
  /** Optional lifecycle callbacks */
1015
1018
  callbacks?: {
1016
1019
  onAttestationStart?: () => void;
1020
+ onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
1017
1021
  onTxSent?: (hash: Hash) => void;
1018
1022
  onTxMined?: (hash: Hash) => void;
1019
1023
  };
@@ -1063,7 +1067,7 @@ type PostDepositDetailsRequest = {
1063
1067
  /** Optional Telegram username associated with the payee */
1064
1068
  telegramUsername?: string | null;
1065
1069
  /** Optional processor-specific metadata */
1066
- metadata?: Record<string, string> | null;
1070
+ metadata?: CuratorMetadata | null;
1067
1071
  /** Payment processor name */
1068
1072
  processorName: string;
1069
1073
  };
@@ -1079,7 +1083,7 @@ type PostDepositDetailsResponse = {
1079
1083
  processorName: string;
1080
1084
  offchainId: string;
1081
1085
  telegramUsername: string | null;
1082
- metadata: Record<string, string> | null;
1086
+ metadata: CuratorMetadata | null;
1083
1087
  hashedOnchainId: string;
1084
1088
  createdAt: string;
1085
1089
  /** Per-merchant forwarding alias (PayPal multi-merchant flow) */
@@ -1224,8 +1228,8 @@ type BuyerTeePaymentProofInput = {
1224
1228
  proofType: 'buyerTee';
1225
1229
  encryptedSessionMaterial: string;
1226
1230
  params: BuyerTeePaymentParams;
1227
- actionType?: string;
1228
1231
  actionPlatform?: string;
1232
+ actionType?: string;
1229
1233
  };
1230
1234
  type BuyerTeeSessionMaterial = Record<string, string>;
1231
1235
  type BuyerTeeSessionMaterialEncryptionInput = {
@@ -1236,6 +1240,23 @@ type BuyerTeeSessionMaterialEncryptionInput = {
1236
1240
  sessionMaterial: BuyerTeeSessionMaterial;
1237
1241
  timeoutMs?: number | null;
1238
1242
  };
1243
+ type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
1244
+ type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
1245
+ type IdentityAttestationRequestBody = {
1246
+ encryptedSessionMaterial: string;
1247
+ params: IdentityAttestationParams;
1248
+ };
1249
+ type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
1250
+ encryptedSessionMaterial: string;
1251
+ params: IdentityParamsByPlatform[P];
1252
+ };
1253
+ type IdentityAttestationActionType<P extends IdentityPlatform> = IdentityActionTypeByPlatform[P];
1254
+ type AttestationServiceIdentityResponse = {
1255
+ success: boolean;
1256
+ message: string;
1257
+ responseObject: IdentityAttestationOutput;
1258
+ statusCode: number;
1259
+ };
1239
1260
  type SellerTypedDataField = {
1240
1261
  name: string;
1241
1262
  type: string;
@@ -1278,6 +1299,7 @@ type AttestationServiceSellerVerifyResponse = {
1278
1299
  responseObject: SellerAttestationOutput;
1279
1300
  statusCode: number;
1280
1301
  };
1302
+ type FulfillIntentAttestationResponse = AttestationServiceSellerVerifyResponse;
1281
1303
  type AttestationServiceSellerCredentialProbeResponse = {
1282
1304
  success: boolean;
1283
1305
  message: string;
@@ -1309,7 +1331,7 @@ type UploadSellerCredentialParams = ({
1309
1331
  [P in RegisteredSellerCredentialPlatform]: {
1310
1332
  offchainId: string;
1311
1333
  telegramUsername?: string | null;
1312
- metadata?: Record<string, string> | null;
1334
+ metadata?: CuratorMetadata | null;
1313
1335
  platform: P;
1314
1336
  } & SellerCredentialUploadInputByPlatform[P];
1315
1337
  }[RegisteredSellerCredentialPlatform];
@@ -1317,10 +1339,22 @@ type RegisteredUploadSellerCredentialParams = {
1317
1339
  [P in RegisteredSellerCredentialPlatform]: {
1318
1340
  offchainId: string;
1319
1341
  telegramUsername?: string | null;
1320
- metadata?: Record<string, string> | null;
1342
+ metadata?: CuratorMetadata | null;
1321
1343
  platform: P;
1322
1344
  } & SellerCredentialUploadInputByPlatform[P];
1323
1345
  }[RegisteredSellerCredentialPlatform];
1346
+ type UploadSellerCredentialBundleParams = {
1347
+ bundle: SellerCredentialBundleUpload;
1348
+ platform: 'wise';
1349
+ } | {
1350
+ [P in RegisteredSellerCredentialPlatform]: {
1351
+ bundle: SellerCredentialBundleUpload;
1352
+ offchainId: string;
1353
+ telegramUsername?: string | null;
1354
+ metadata?: CuratorMetadata | null;
1355
+ platform: P;
1356
+ };
1357
+ }[RegisteredSellerCredentialPlatform];
1324
1358
  type UploadSellerCredentialOptions = {
1325
1359
  baseApiUrl?: string;
1326
1360
  attestationServiceUrl?: string;
@@ -1579,7 +1613,7 @@ type GetPayeeDetailsResponse = {
1579
1613
  processorName: string;
1580
1614
  offchainId: string;
1581
1615
  telegramUsername: string | null;
1582
- metadata: Record<string, string> | null;
1616
+ metadata: CuratorMetadata | null;
1583
1617
  hashedOnchainId: string;
1584
1618
  createdAt: string;
1585
1619
  /** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
@@ -1591,7 +1625,7 @@ type ValidatePayeeDetailsRequest = {
1591
1625
  processorName: string;
1592
1626
  offchainId: string;
1593
1627
  telegramUsername?: string | null;
1594
- metadata?: Record<string, string> | null;
1628
+ metadata?: CuratorMetadata | null;
1595
1629
  };
1596
1630
  type ValidatePayeeDetailsResponse = {
1597
1631
  success: boolean;
@@ -2027,6 +2061,7 @@ type FulfillIntentMethodParams = {
2027
2061
  /** Lifecycle callbacks for UI updates */
2028
2062
  callbacks?: {
2029
2063
  onAttestationStart?: () => void;
2064
+ onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
2030
2065
  onTxSent?: (hash: Hash) => void;
2031
2066
  onTxMined?: (hash: Hash) => void;
2032
2067
  };
@@ -2370,7 +2405,9 @@ declare class Zkp2pClient {
2370
2405
  * { limit: 50, orderBy: 'remainingDeposits', orderDirection: 'desc' }
2371
2406
  * );
2372
2407
  *
2373
- * // Get historical fulfillment data
2408
+ * // Get historical fulfillment event data. Use `amount` for net USDC
2409
+ * // transferred to the taker; use getIntentFulfillmentAmounts() when you
2410
+ * // also need gross released USDC.
2374
2411
  * const fulfillments = await client.indexer.getFulfilledIntentEvents(['0x...']);
2375
2412
  * ```
2376
2413
  */
@@ -2422,11 +2459,13 @@ declare class Zkp2pClient {
2422
2459
  limit?: number;
2423
2460
  }) => Promise<IntentEntity$1[]>;
2424
2461
  /**
2425
- * Fetches fulfillment events for completed intents.
2462
+ * Fetches fulfillment events for completed intents. `amount` is the net
2463
+ * USDC transferred to the taker after protocol/referrer fees.
2426
2464
  */
2427
2465
  getFulfilledIntentEvents: (intentHashes: string[]) => Promise<IntentFulfilledEntity[]>;
2428
2466
  /**
2429
- * Fetches gross and net fulfillment amounts for an intent.
2467
+ * Fetches gross and net fulfillment amounts for an intent. Use
2468
+ * `takerAmountNetFees` as the buyer/taker received USDC amount.
2430
2469
  */
2431
2470
  getIntentFulfillmentAmounts: (intentHash: string) => Promise<IntentFulfillmentAmountsEntity | null>;
2432
2471
  /**
@@ -3429,6 +3468,13 @@ declare class Zkp2pClient {
3429
3468
  * from the submitted Personal API Token.
3430
3469
  */
3431
3470
  uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
3471
+ /**
3472
+ * Store an already-encrypted seller credential bundle with curator.
3473
+ */
3474
+ uploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, opts?: {
3475
+ baseApiUrl?: string;
3476
+ timeoutMs?: number;
3477
+ }): Promise<CuratorSellerCredentialUploadResponse>;
3432
3478
  /**
3433
3479
  * Confirms the PayPal Gmail-forwarding setup for an existing maker payee hash.
3434
3480
  *
@@ -3636,4 +3682,4 @@ type SendBatchFn = (txs: Array<{
3636
3682
  value?: bigint;
3637
3683
  }>) => Promise<string>;
3638
3684
 
3639
- export { type PlatformQuote as $, type AttestationServiceSellerCredentialUploadResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type ConfirmPayPalForwardingResponse as C, type DepositWithRelations as D, type ActionCallback as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type CreateDepositParams as H, type IntentEntity$1 as I, type CreateDepositConversionRate as J, type Range as K, type SignalIntentParams as L, type FulfillIntentParams as M, type ReleaseFundsToPayerParams as N, type CancelIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type BestByPlatformResponseObject as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetBestByPlatformResponse as X, type GetBestByPlatformResponseObject as Y, Zkp2pClient as Z, type GetPlatformQuote as _, type SellerPlatform as a, type BuyerTeePaymentProofInput as a$, type QuoteRequest as a0, type GetNearbyQuote as a1, type GetNearbySuggestions as a2, type GetQuoteResponse as a3, type GetQuoteResponseObject as a4, type GetQuoteSingleResponse as a5, type QuoteResponse as a6, type QuoteResponseObject as a7, type QuoteSingleResponse as a8, type QuoteIntentResponse as a9, type WiseProfileNotFound as aA, type PayPalSessionMaterial as aB, type PayPalGoogleOAuthSellerCredentialUploadBody as aC, type VenmoGoogleOAuthSellerCredentialUploadBody as aD, type VenmoCredentialUploadInput as aE, type CashAppCredentialUploadInput as aF, type WiseCredentialUploadInput as aG, type PayPalCredentialUploadInput as aH, type SellerCredentialUploadInputByPlatform as aI, type SellerCiphertextBundle as aJ, type SellerSignedCiphertextBundle as aK, type SellerVerifyIntentDetails as aL, type SellerVerifyInput as aM, type SellerProbeInput as aN, type SellerCredentialBundle as aO, type SellerCredentialBundleUpload as aP, type SellerCredentialStatusValue as aQ, type SellerCredentialStatus as aR, type SellerVerifyProxyBody as aS, type SellerTypedDataField as aT, type SellerTypedDataSpec as aU, type SellerPaymentTypedDataValue as aV, type SellerAttestationOutput as aW, type SellerCredentialProbeResponse as aX, type AttestationServiceSellerVerifyResponse as aY, type AttestationServiceSellerCredentialProbeResponse as aZ, type BuyerTeePaymentParams as a_, type QuoteFeesResponse as aa, type FiatResponse as ab, type TokenResponse as ac, type NearbyQuote as ad, type NearbySuggestions as ae, type ApiDeposit as af, type DepositVerifier as ag, type DepositVerifierCurrency as ah, type DepositStatus as ai, type GetDepositByIdRequest as aj, type GetDepositByIdResponse as ak, type Intent as al, type ApiIntentStatus as am, type GetOwnerIntentsRequest as an, type GetOwnerIntentsResponse as ao, type GetIntentsByDepositRequest as ap, type GetIntentsByDepositResponse as aq, type GetIntentByHashRequest as ar, type GetIntentByHashResponse as as, type RegisterPayeeDetailsRequest as at, type RegisterPayeeDetailsResponse as au, type VenmoSessionMaterial as av, type CashAppSessionMaterial as aw, type WiseSessionMaterial as ax, type WiseProfileInfo as ay, type WiseProfileSelectionRequired as az, type SellerCredentialAttestationRuntime as b, type PaymentPlatformType as b$, type BuyerTeeSessionMaterial as b0, type CuratorSellerCredentialStatusResponse as b1, type CuratorSellerVerifyResponse as b2, type UploadSellerCredentialParams as b3, type RegisteredUploadSellerCredentialParams as b4, type UploadSellerCredentialOptions as b5, type GetSellerCredentialStatusParams as b6, type ConfirmPayPalForwardingRequest as b7, type PayPalForwardingConfirmationErrorCode as b8, type UploadPayPalGoogleOAuthSellerCredentialParams as b9, type RateManagerEntity as bA, type RateManagerRateEntity as bB, type RateManagerDelegationEntity as bC, type ManagerAggregateStatsEntity as bD, type ManagerStatsEntity as bE, type ManagerDailySnapshotEntity as bF, type RateManagerListItem as bG, type RateManagerDetail as bH, type ManualRateUpdateEntity as bI, type OracleConfigUpdateEntity as bJ, type DepositFundActivityEntity$1 as bK, type DepositDailySnapshotEntity$1 as bL, type DepositFundActivityType$1 as bM, type DepositFilter as bN, type PaginationOptions as bO, type DepositOrderField as bP, type OrderDirection$1 as bQ, type RateManagerFilter as bR, type RateManagerPaginationOptions as bS, type RateManagerDelegationPaginationOptions as bT, type RateManagerOrderField as bU, type OrderDirection as bV, type DeploymentEnv as bW, type FulfillmentRecord as bX, type PaymentVerifiedRecord as bY, type FulfillmentAndPaymentResponse as bZ, PAYMENT_PLATFORMS as b_, type UploadVenmoGoogleOAuthSellerCredentialParams as ba, type UploadGoogleOAuthSellerCredentialParams as bb, type VerifySellerPaymentParams as bc, type OnchainCurrency as bd, type DepositVerifierData as be, type PreparedTransaction as bf, type OrderStats as bg, type DepositIntentStatistics as bh, type TakerTier as bi, type TakerTierStats as bj, type TakerTierLevel as bk, type PlatformLimit as bl, type PlatformRiskLevel as bm, type OrderbookEntry as bn, IndexerClient as bo, defaultIndexerEndpoint as bp, IndexerDepositService as bq, IndexerRateManagerService as br, compareEventCursorIdsByRecency as bs, fetchFulfillmentAndPayment as bt, type DepositEntity$1 as bu, type IntentFulfilledEntity as bv, type IntentFulfillmentAmountsEntity as bw, type DepositPaymentMethodEntity$1 as bx, type MethodCurrencyEntity$1 as by, type IntentStatus as bz, type GoogleOAuthSellerCredentialUploadBodyByPlatform as c, Currency as c0, currencyInfo as c1, getCurrencyInfoFromHash as c2, getCurrencyInfoFromCountryCode as c3, getCurrencyCodeFromHash as c4, isSupportedCurrencyHash as c5, mapConversionRatesToOnchainMinRate as c6, type CurrencyData as c7, getContracts as c8, getRateManagerContracts as c9, ZERO_ADDRESS as cA, asErrorMessage as cB, assertDelegationMethodSupport as cC, getPaymentMethodsCatalog as ca, getGatingServiceAddress as cb, type RuntimeEnv as cc, parseDepositView as cd, parseIntentView as ce, enrichPvDepositView as cf, enrichPvIntentView as cg, type PV_DepositView as ch, type PV_Deposit as ci, type PV_PaymentMethodData as cj, type PV_Currency as ck, type PV_ReferralFee as cl, type PV_IntentView as cm, type PV_Intent as cn, ZERO_RATE_MANAGER_ID as co, isZeroRateManagerId as cp, normalizeRateManagerId as cq, normalizeRegistry as cr, getDelegationRoute as cs, classifyDelegationState as ct, type DelegationRoute as cu, type DelegationState as cv, type DelegationDepositTarget as cw, type BatchResult as cx, type SendTransactionFn as cy, type SendBatchFn as cz, type CuratorSellerCredentialUploadResponse as d, type BestByPlatformResponse as e, type ValidatePayeeDetailsResponse as f, type PostDepositDetailsResponse as g, type GetPayeeDetailsRequest as h, type GetPayeeDetailsResponse as i, type GetOwnerDepositsRequest as j, type GetOwnerDepositsResponse as k, type GetTakerTierRequest as l, type GetTakerTierResponse as m, type GetDepositBundleParams as n, type ApiAdapterOptions as o, type GetDepositBundleResponse as p, type GetOrderbookParams as q, type GetOrderbookResponse as r, type CurrencyType as s, type PaymentMethodCatalog as t, type SignalIntentReferralFee as u, type SignalIntentMethodParams as v, type CancelIntentMethodParams as w, type Zkp2pNextOptions as x, type AuthorizationTokenProvider as y, type TimeoutConfig as z };
3685
+ export { type BestByPlatformResponseObject as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type Zkp2pNextOptions as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type AuthorizationTokenProvider as H, type IntentEntity$1 as I, type TimeoutConfig as J, type ActionCallback as K, type CreateDepositParams as L, type CreateDepositConversionRate as M, type Range as N, type SignalIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type TxOverrides as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type FulfillIntentParams as X, type ReleaseFundsToPayerParams as Y, Zkp2pClient as Z, type CancelIntentParams as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerVerifyResponse as a$, type GetBestByPlatformResponse as a0, type GetBestByPlatformResponseObject as a1, type GetPlatformQuote as a2, type PlatformQuote as a3, type QuoteRequest as a4, type GetNearbyQuote as a5, type GetNearbySuggestions as a6, type GetQuoteResponse as a7, type GetQuoteResponseObject as a8, type GetQuoteSingleResponse as a9, type CashAppSessionMaterial as aA, type WiseSessionMaterial as aB, type WiseProfileInfo as aC, type WiseProfileSelectionRequired as aD, type WiseProfileNotFound as aE, type PayPalSessionMaterial as aF, type PayPalGoogleOAuthSellerCredentialUploadBody as aG, type VenmoGoogleOAuthSellerCredentialUploadBody as aH, type VenmoCredentialUploadInput as aI, type CashAppCredentialUploadInput as aJ, type WiseCredentialUploadInput as aK, type PayPalCredentialUploadInput as aL, type SellerCredentialUploadInputByPlatform as aM, type SellerCiphertextBundle as aN, type SellerSignedCiphertextBundle as aO, type SellerVerifyIntentDetails as aP, type SellerVerifyInput as aQ, type SellerProbeInput as aR, type SellerCredentialBundleUpload as aS, type SellerCredentialStatusValue as aT, type SellerCredentialStatus as aU, type SellerVerifyProxyBody as aV, type SellerTypedDataField as aW, type SellerTypedDataSpec as aX, type SellerPaymentTypedDataValue as aY, type SellerAttestationOutput as aZ, type SellerCredentialProbeResponse as a_, type QuoteResponse as aa, type QuoteResponseObject as ab, type QuoteSingleResponse as ac, type QuoteIntentResponse as ad, type QuoteFeesResponse as ae, type FiatResponse as af, type TokenResponse as ag, type NearbyQuote as ah, type NearbySuggestions as ai, type ApiDeposit as aj, type DepositVerifier as ak, type DepositVerifierCurrency as al, type DepositStatus as am, type GetDepositByIdRequest as an, type GetDepositByIdResponse as ao, type Intent as ap, type ApiIntentStatus as aq, type GetOwnerIntentsRequest as ar, type GetOwnerIntentsResponse as as, type GetIntentsByDepositRequest as at, type GetIntentsByDepositResponse as au, type GetIntentByHashRequest as av, type GetIntentByHashResponse as aw, type RegisterPayeeDetailsRequest as ax, type RegisterPayeeDetailsResponse as ay, type VenmoSessionMaterial as az, type SellerCredentialUploadInput as b, type RateManagerPaginationOptions as b$, type FulfillIntentAttestationResponse as b0, type AttestationServiceSellerCredentialProbeResponse as b1, type BuyerTeePaymentParams as b2, type BuyerTeePaymentProofInput as b3, type BuyerTeeSessionMaterial as b4, type CuratorSellerCredentialStatusResponse as b5, type CuratorSellerVerifyResponse as b6, type RegisteredSellerCredentialPlatform as b7, type UploadSellerCredentialParams as b8, type RegisteredUploadSellerCredentialParams as b9, IndexerRateManagerService as bA, compareEventCursorIdsByRecency as bB, fetchFulfillmentAndPayment as bC, type DepositEntity$1 as bD, type IntentFulfilledEntity as bE, type IntentFulfillmentAmountsEntity as bF, type DepositPaymentMethodEntity$1 as bG, type MethodCurrencyEntity$1 as bH, type IntentStatus as bI, type RateManagerEntity as bJ, type RateManagerRateEntity as bK, type RateManagerDelegationEntity as bL, type ManagerAggregateStatsEntity as bM, type ManagerStatsEntity as bN, type ManagerDailySnapshotEntity as bO, type RateManagerListItem as bP, type RateManagerDetail as bQ, type ManualRateUpdateEntity as bR, type OracleConfigUpdateEntity as bS, type DepositFundActivityEntity$1 as bT, type DepositDailySnapshotEntity$1 as bU, type DepositFundActivityType$1 as bV, type DepositFilter as bW, type PaginationOptions as bX, type DepositOrderField as bY, type OrderDirection$1 as bZ, type RateManagerFilter as b_, type UploadSellerCredentialOptions as ba, type GetSellerCredentialStatusParams as bb, type ConfirmPayPalForwardingRequest as bc, type PayPalForwardingConfirmationErrorCode as bd, type UploadPayPalGoogleOAuthSellerCredentialParams as be, type UploadVenmoGoogleOAuthSellerCredentialParams as bf, type UploadGoogleOAuthSellerCredentialParams as bg, type VerifySellerPaymentParams as bh, type IdentityAttestationActionType as bi, type IdentityAttestationParams as bj, type MakerIdentityAttestationRequestBody as bk, type MakerIdentityPlatform as bl, type OnchainCurrency as bm, type DepositVerifierData as bn, type PreparedTransaction as bo, type OrderStats as bp, type DepositIntentStatistics as bq, type TakerTier as br, type TakerTierStats as bs, type TakerTierLevel as bt, type PlatformLimit as bu, type PlatformRiskLevel as bv, type OrderbookEntry as bw, IndexerClient as bx, defaultIndexerEndpoint as by, IndexerDepositService as bz, type SellerPlatform as c, type RateManagerDelegationPaginationOptions as c0, type RateManagerOrderField as c1, type OrderDirection as c2, type DeploymentEnv as c3, type FulfillmentRecord as c4, type PaymentVerifiedRecord as c5, type FulfillmentAndPaymentResponse as c6, PAYMENT_PLATFORMS as c7, type PaymentPlatformType as c8, Currency as c9, normalizeRegistry as cA, getDelegationRoute as cB, classifyDelegationState as cC, type DelegationRoute as cD, type DelegationState as cE, type DelegationDepositTarget as cF, type BatchResult as cG, type SendTransactionFn as cH, type SendBatchFn as cI, ZERO_ADDRESS as cJ, asErrorMessage as cK, assertDelegationMethodSupport as cL, currencyInfo as ca, getCurrencyInfoFromHash as cb, getCurrencyInfoFromCountryCode as cc, getCurrencyCodeFromHash as cd, isSupportedCurrencyHash as ce, mapConversionRatesToOnchainMinRate as cf, type CurrencyData as cg, getContracts as ch, getRateManagerContracts as ci, getPaymentMethodsCatalog as cj, getGatingServiceAddress as ck, type RuntimeEnv as cl, parseDepositView as cm, parseIntentView as cn, enrichPvDepositView as co, enrichPvIntentView as cp, type PV_DepositView as cq, type PV_Deposit as cr, type PV_PaymentMethodData as cs, type PV_Currency as ct, type PV_ReferralFee as cu, type PV_IntentView as cv, type PV_Intent as cw, ZERO_RATE_MANAGER_ID as cx, isZeroRateManagerId as cy, normalizeRateManagerId as cz, type SellerCredentialAttestationRuntime as d, type AttestationServiceSellerCredentialUploadResponse as e, type ConfirmPayPalForwardingResponse as f, type GoogleOAuthSellerCredentialUploadBodyByPlatform as g, type BestByPlatformResponse as h, type ValidatePayeeDetailsResponse as i, type PostDepositDetailsResponse as j, type GetPayeeDetailsRequest as k, type GetPayeeDetailsResponse as l, type GetOwnerDepositsRequest as m, type GetOwnerDepositsResponse as n, type GetTakerTierRequest as o, type GetTakerTierResponse as p, type GetDepositBundleParams as q, type ApiAdapterOptions as r, type GetDepositBundleResponse as s, type GetOrderbookParams as t, type GetOrderbookResponse as u, type CurrencyType as v, type PaymentMethodCatalog as w, type SignalIntentReferralFee as x, type SignalIntentMethodParams as y, type CancelIntentMethodParams as z };
@@ -2,6 +2,7 @@ import * as _zkp2p_indexer_schema from '@zkp2p/indexer-schema';
2
2
  import { Deposit, DepositStatus as DepositStatus$2, IntentStatus as IntentStatus$1, DepositPaymentMethod, MethodCurrency, Intent as Intent$1, MakerProfitSnapshot, RateManager, ManagerAggregateStats, RateManagerRate, ManagerStats, DepositFundActivity, DepositDailySnapshot, ManagerDailySnapshot } from '@zkp2p/indexer-schema';
3
3
  import { Address, Hex, AccessList, AuthorizationList, Hash, WalletClient, PublicClient } from 'viem';
4
4
  import { Abi } from 'abitype';
5
+ import { IdentityPlatform, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityAttestationOutput } from '@zkp2p/zkp2p-attestation';
5
6
 
6
7
  /**
7
8
  * Supported fiat currency codes.
@@ -461,6 +462,7 @@ interface DepositEventsResponse$1 {
461
462
  }
462
463
  interface IntentFulfilledEntity {
463
464
  intentHash: string;
465
+ amount: string;
464
466
  isManualRelease: boolean;
465
467
  fundsTransferredTo?: string | null;
466
468
  }
@@ -985,15 +987,16 @@ type ReferrerFeeConfig = {
985
987
  recipient: `0x${string}`;
986
988
  feeBps: number;
987
989
  };
990
+ type CuratorMetadata = Record<string, any>;
988
991
  type CuratorPayeeData = {
989
992
  offchainId: string;
990
993
  telegramUsername: string | null;
991
- metadata: Record<string, string> | null;
994
+ metadata: CuratorMetadata | null;
992
995
  };
993
996
  type CuratorPayeeDataInput = {
994
997
  offchainId: string;
995
998
  telegramUsername?: string | null;
996
- metadata?: Record<string, string> | null;
999
+ metadata?: CuratorMetadata | null;
997
1000
  };
998
1001
  /**
999
1002
  * Parameters for fulfilling an intent with payment attestation
@@ -1014,6 +1017,7 @@ type FulfillIntentParams = {
1014
1017
  /** Optional lifecycle callbacks */
1015
1018
  callbacks?: {
1016
1019
  onAttestationStart?: () => void;
1020
+ onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
1017
1021
  onTxSent?: (hash: Hash) => void;
1018
1022
  onTxMined?: (hash: Hash) => void;
1019
1023
  };
@@ -1063,7 +1067,7 @@ type PostDepositDetailsRequest = {
1063
1067
  /** Optional Telegram username associated with the payee */
1064
1068
  telegramUsername?: string | null;
1065
1069
  /** Optional processor-specific metadata */
1066
- metadata?: Record<string, string> | null;
1070
+ metadata?: CuratorMetadata | null;
1067
1071
  /** Payment processor name */
1068
1072
  processorName: string;
1069
1073
  };
@@ -1079,7 +1083,7 @@ type PostDepositDetailsResponse = {
1079
1083
  processorName: string;
1080
1084
  offchainId: string;
1081
1085
  telegramUsername: string | null;
1082
- metadata: Record<string, string> | null;
1086
+ metadata: CuratorMetadata | null;
1083
1087
  hashedOnchainId: string;
1084
1088
  createdAt: string;
1085
1089
  /** Per-merchant forwarding alias (PayPal multi-merchant flow) */
@@ -1224,8 +1228,8 @@ type BuyerTeePaymentProofInput = {
1224
1228
  proofType: 'buyerTee';
1225
1229
  encryptedSessionMaterial: string;
1226
1230
  params: BuyerTeePaymentParams;
1227
- actionType?: string;
1228
1231
  actionPlatform?: string;
1232
+ actionType?: string;
1229
1233
  };
1230
1234
  type BuyerTeeSessionMaterial = Record<string, string>;
1231
1235
  type BuyerTeeSessionMaterialEncryptionInput = {
@@ -1236,6 +1240,23 @@ type BuyerTeeSessionMaterialEncryptionInput = {
1236
1240
  sessionMaterial: BuyerTeeSessionMaterial;
1237
1241
  timeoutMs?: number | null;
1238
1242
  };
1243
+ type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
1244
+ type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
1245
+ type IdentityAttestationRequestBody = {
1246
+ encryptedSessionMaterial: string;
1247
+ params: IdentityAttestationParams;
1248
+ };
1249
+ type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
1250
+ encryptedSessionMaterial: string;
1251
+ params: IdentityParamsByPlatform[P];
1252
+ };
1253
+ type IdentityAttestationActionType<P extends IdentityPlatform> = IdentityActionTypeByPlatform[P];
1254
+ type AttestationServiceIdentityResponse = {
1255
+ success: boolean;
1256
+ message: string;
1257
+ responseObject: IdentityAttestationOutput;
1258
+ statusCode: number;
1259
+ };
1239
1260
  type SellerTypedDataField = {
1240
1261
  name: string;
1241
1262
  type: string;
@@ -1278,6 +1299,7 @@ type AttestationServiceSellerVerifyResponse = {
1278
1299
  responseObject: SellerAttestationOutput;
1279
1300
  statusCode: number;
1280
1301
  };
1302
+ type FulfillIntentAttestationResponse = AttestationServiceSellerVerifyResponse;
1281
1303
  type AttestationServiceSellerCredentialProbeResponse = {
1282
1304
  success: boolean;
1283
1305
  message: string;
@@ -1309,7 +1331,7 @@ type UploadSellerCredentialParams = ({
1309
1331
  [P in RegisteredSellerCredentialPlatform]: {
1310
1332
  offchainId: string;
1311
1333
  telegramUsername?: string | null;
1312
- metadata?: Record<string, string> | null;
1334
+ metadata?: CuratorMetadata | null;
1313
1335
  platform: P;
1314
1336
  } & SellerCredentialUploadInputByPlatform[P];
1315
1337
  }[RegisteredSellerCredentialPlatform];
@@ -1317,10 +1339,22 @@ type RegisteredUploadSellerCredentialParams = {
1317
1339
  [P in RegisteredSellerCredentialPlatform]: {
1318
1340
  offchainId: string;
1319
1341
  telegramUsername?: string | null;
1320
- metadata?: Record<string, string> | null;
1342
+ metadata?: CuratorMetadata | null;
1321
1343
  platform: P;
1322
1344
  } & SellerCredentialUploadInputByPlatform[P];
1323
1345
  }[RegisteredSellerCredentialPlatform];
1346
+ type UploadSellerCredentialBundleParams = {
1347
+ bundle: SellerCredentialBundleUpload;
1348
+ platform: 'wise';
1349
+ } | {
1350
+ [P in RegisteredSellerCredentialPlatform]: {
1351
+ bundle: SellerCredentialBundleUpload;
1352
+ offchainId: string;
1353
+ telegramUsername?: string | null;
1354
+ metadata?: CuratorMetadata | null;
1355
+ platform: P;
1356
+ };
1357
+ }[RegisteredSellerCredentialPlatform];
1324
1358
  type UploadSellerCredentialOptions = {
1325
1359
  baseApiUrl?: string;
1326
1360
  attestationServiceUrl?: string;
@@ -1579,7 +1613,7 @@ type GetPayeeDetailsResponse = {
1579
1613
  processorName: string;
1580
1614
  offchainId: string;
1581
1615
  telegramUsername: string | null;
1582
- metadata: Record<string, string> | null;
1616
+ metadata: CuratorMetadata | null;
1583
1617
  hashedOnchainId: string;
1584
1618
  createdAt: string;
1585
1619
  /** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
@@ -1591,7 +1625,7 @@ type ValidatePayeeDetailsRequest = {
1591
1625
  processorName: string;
1592
1626
  offchainId: string;
1593
1627
  telegramUsername?: string | null;
1594
- metadata?: Record<string, string> | null;
1628
+ metadata?: CuratorMetadata | null;
1595
1629
  };
1596
1630
  type ValidatePayeeDetailsResponse = {
1597
1631
  success: boolean;
@@ -2027,6 +2061,7 @@ type FulfillIntentMethodParams = {
2027
2061
  /** Lifecycle callbacks for UI updates */
2028
2062
  callbacks?: {
2029
2063
  onAttestationStart?: () => void;
2064
+ onAttestationComplete?: (attestation: FulfillIntentAttestationResponse) => void;
2030
2065
  onTxSent?: (hash: Hash) => void;
2031
2066
  onTxMined?: (hash: Hash) => void;
2032
2067
  };
@@ -2370,7 +2405,9 @@ declare class Zkp2pClient {
2370
2405
  * { limit: 50, orderBy: 'remainingDeposits', orderDirection: 'desc' }
2371
2406
  * );
2372
2407
  *
2373
- * // Get historical fulfillment data
2408
+ * // Get historical fulfillment event data. Use `amount` for net USDC
2409
+ * // transferred to the taker; use getIntentFulfillmentAmounts() when you
2410
+ * // also need gross released USDC.
2374
2411
  * const fulfillments = await client.indexer.getFulfilledIntentEvents(['0x...']);
2375
2412
  * ```
2376
2413
  */
@@ -2422,11 +2459,13 @@ declare class Zkp2pClient {
2422
2459
  limit?: number;
2423
2460
  }) => Promise<IntentEntity$1[]>;
2424
2461
  /**
2425
- * Fetches fulfillment events for completed intents.
2462
+ * Fetches fulfillment events for completed intents. `amount` is the net
2463
+ * USDC transferred to the taker after protocol/referrer fees.
2426
2464
  */
2427
2465
  getFulfilledIntentEvents: (intentHashes: string[]) => Promise<IntentFulfilledEntity[]>;
2428
2466
  /**
2429
- * Fetches gross and net fulfillment amounts for an intent.
2467
+ * Fetches gross and net fulfillment amounts for an intent. Use
2468
+ * `takerAmountNetFees` as the buyer/taker received USDC amount.
2430
2469
  */
2431
2470
  getIntentFulfillmentAmounts: (intentHash: string) => Promise<IntentFulfillmentAmountsEntity | null>;
2432
2471
  /**
@@ -3429,6 +3468,13 @@ declare class Zkp2pClient {
3429
3468
  * from the submitted Personal API Token.
3430
3469
  */
3431
3470
  uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
3471
+ /**
3472
+ * Store an already-encrypted seller credential bundle with curator.
3473
+ */
3474
+ uploadSellerCredentialBundle(params: UploadSellerCredentialBundleParams, opts?: {
3475
+ baseApiUrl?: string;
3476
+ timeoutMs?: number;
3477
+ }): Promise<CuratorSellerCredentialUploadResponse>;
3432
3478
  /**
3433
3479
  * Confirms the PayPal Gmail-forwarding setup for an existing maker payee hash.
3434
3480
  *
@@ -3636,4 +3682,4 @@ type SendBatchFn = (txs: Array<{
3636
3682
  value?: bigint;
3637
3683
  }>) => Promise<string>;
3638
3684
 
3639
- export { type PlatformQuote as $, type AttestationServiceSellerCredentialUploadResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type ConfirmPayPalForwardingResponse as C, type DepositWithRelations as D, type ActionCallback as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type CreateDepositParams as H, type IntentEntity$1 as I, type CreateDepositConversionRate as J, type Range as K, type SignalIntentParams as L, type FulfillIntentParams as M, type ReleaseFundsToPayerParams as N, type CancelIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type BestByPlatformResponseObject as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetBestByPlatformResponse as X, type GetBestByPlatformResponseObject as Y, Zkp2pClient as Z, type GetPlatformQuote as _, type SellerPlatform as a, type BuyerTeePaymentProofInput as a$, type QuoteRequest as a0, type GetNearbyQuote as a1, type GetNearbySuggestions as a2, type GetQuoteResponse as a3, type GetQuoteResponseObject as a4, type GetQuoteSingleResponse as a5, type QuoteResponse as a6, type QuoteResponseObject as a7, type QuoteSingleResponse as a8, type QuoteIntentResponse as a9, type WiseProfileNotFound as aA, type PayPalSessionMaterial as aB, type PayPalGoogleOAuthSellerCredentialUploadBody as aC, type VenmoGoogleOAuthSellerCredentialUploadBody as aD, type VenmoCredentialUploadInput as aE, type CashAppCredentialUploadInput as aF, type WiseCredentialUploadInput as aG, type PayPalCredentialUploadInput as aH, type SellerCredentialUploadInputByPlatform as aI, type SellerCiphertextBundle as aJ, type SellerSignedCiphertextBundle as aK, type SellerVerifyIntentDetails as aL, type SellerVerifyInput as aM, type SellerProbeInput as aN, type SellerCredentialBundle as aO, type SellerCredentialBundleUpload as aP, type SellerCredentialStatusValue as aQ, type SellerCredentialStatus as aR, type SellerVerifyProxyBody as aS, type SellerTypedDataField as aT, type SellerTypedDataSpec as aU, type SellerPaymentTypedDataValue as aV, type SellerAttestationOutput as aW, type SellerCredentialProbeResponse as aX, type AttestationServiceSellerVerifyResponse as aY, type AttestationServiceSellerCredentialProbeResponse as aZ, type BuyerTeePaymentParams as a_, type QuoteFeesResponse as aa, type FiatResponse as ab, type TokenResponse as ac, type NearbyQuote as ad, type NearbySuggestions as ae, type ApiDeposit as af, type DepositVerifier as ag, type DepositVerifierCurrency as ah, type DepositStatus as ai, type GetDepositByIdRequest as aj, type GetDepositByIdResponse as ak, type Intent as al, type ApiIntentStatus as am, type GetOwnerIntentsRequest as an, type GetOwnerIntentsResponse as ao, type GetIntentsByDepositRequest as ap, type GetIntentsByDepositResponse as aq, type GetIntentByHashRequest as ar, type GetIntentByHashResponse as as, type RegisterPayeeDetailsRequest as at, type RegisterPayeeDetailsResponse as au, type VenmoSessionMaterial as av, type CashAppSessionMaterial as aw, type WiseSessionMaterial as ax, type WiseProfileInfo as ay, type WiseProfileSelectionRequired as az, type SellerCredentialAttestationRuntime as b, type PaymentPlatformType as b$, type BuyerTeeSessionMaterial as b0, type CuratorSellerCredentialStatusResponse as b1, type CuratorSellerVerifyResponse as b2, type UploadSellerCredentialParams as b3, type RegisteredUploadSellerCredentialParams as b4, type UploadSellerCredentialOptions as b5, type GetSellerCredentialStatusParams as b6, type ConfirmPayPalForwardingRequest as b7, type PayPalForwardingConfirmationErrorCode as b8, type UploadPayPalGoogleOAuthSellerCredentialParams as b9, type RateManagerEntity as bA, type RateManagerRateEntity as bB, type RateManagerDelegationEntity as bC, type ManagerAggregateStatsEntity as bD, type ManagerStatsEntity as bE, type ManagerDailySnapshotEntity as bF, type RateManagerListItem as bG, type RateManagerDetail as bH, type ManualRateUpdateEntity as bI, type OracleConfigUpdateEntity as bJ, type DepositFundActivityEntity$1 as bK, type DepositDailySnapshotEntity$1 as bL, type DepositFundActivityType$1 as bM, type DepositFilter as bN, type PaginationOptions as bO, type DepositOrderField as bP, type OrderDirection$1 as bQ, type RateManagerFilter as bR, type RateManagerPaginationOptions as bS, type RateManagerDelegationPaginationOptions as bT, type RateManagerOrderField as bU, type OrderDirection as bV, type DeploymentEnv as bW, type FulfillmentRecord as bX, type PaymentVerifiedRecord as bY, type FulfillmentAndPaymentResponse as bZ, PAYMENT_PLATFORMS as b_, type UploadVenmoGoogleOAuthSellerCredentialParams as ba, type UploadGoogleOAuthSellerCredentialParams as bb, type VerifySellerPaymentParams as bc, type OnchainCurrency as bd, type DepositVerifierData as be, type PreparedTransaction as bf, type OrderStats as bg, type DepositIntentStatistics as bh, type TakerTier as bi, type TakerTierStats as bj, type TakerTierLevel as bk, type PlatformLimit as bl, type PlatformRiskLevel as bm, type OrderbookEntry as bn, IndexerClient as bo, defaultIndexerEndpoint as bp, IndexerDepositService as bq, IndexerRateManagerService as br, compareEventCursorIdsByRecency as bs, fetchFulfillmentAndPayment as bt, type DepositEntity$1 as bu, type IntentFulfilledEntity as bv, type IntentFulfillmentAmountsEntity as bw, type DepositPaymentMethodEntity$1 as bx, type MethodCurrencyEntity$1 as by, type IntentStatus as bz, type GoogleOAuthSellerCredentialUploadBodyByPlatform as c, Currency as c0, currencyInfo as c1, getCurrencyInfoFromHash as c2, getCurrencyInfoFromCountryCode as c3, getCurrencyCodeFromHash as c4, isSupportedCurrencyHash as c5, mapConversionRatesToOnchainMinRate as c6, type CurrencyData as c7, getContracts as c8, getRateManagerContracts as c9, ZERO_ADDRESS as cA, asErrorMessage as cB, assertDelegationMethodSupport as cC, getPaymentMethodsCatalog as ca, getGatingServiceAddress as cb, type RuntimeEnv as cc, parseDepositView as cd, parseIntentView as ce, enrichPvDepositView as cf, enrichPvIntentView as cg, type PV_DepositView as ch, type PV_Deposit as ci, type PV_PaymentMethodData as cj, type PV_Currency as ck, type PV_ReferralFee as cl, type PV_IntentView as cm, type PV_Intent as cn, ZERO_RATE_MANAGER_ID as co, isZeroRateManagerId as cp, normalizeRateManagerId as cq, normalizeRegistry as cr, getDelegationRoute as cs, classifyDelegationState as ct, type DelegationRoute as cu, type DelegationState as cv, type DelegationDepositTarget as cw, type BatchResult as cx, type SendTransactionFn as cy, type SendBatchFn as cz, type CuratorSellerCredentialUploadResponse as d, type BestByPlatformResponse as e, type ValidatePayeeDetailsResponse as f, type PostDepositDetailsResponse as g, type GetPayeeDetailsRequest as h, type GetPayeeDetailsResponse as i, type GetOwnerDepositsRequest as j, type GetOwnerDepositsResponse as k, type GetTakerTierRequest as l, type GetTakerTierResponse as m, type GetDepositBundleParams as n, type ApiAdapterOptions as o, type GetDepositBundleResponse as p, type GetOrderbookParams as q, type GetOrderbookResponse as r, type CurrencyType as s, type PaymentMethodCatalog as t, type SignalIntentReferralFee as u, type SignalIntentMethodParams as v, type CancelIntentMethodParams as w, type Zkp2pNextOptions as x, type AuthorizationTokenProvider as y, type TimeoutConfig as z };
3685
+ export { type BestByPlatformResponseObject as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type Zkp2pNextOptions as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type AuthorizationTokenProvider as H, type IntentEntity$1 as I, type TimeoutConfig as J, type ActionCallback as K, type CreateDepositParams as L, type CreateDepositConversionRate as M, type Range as N, type SignalIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type TxOverrides as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type FulfillIntentParams as X, type ReleaseFundsToPayerParams as Y, Zkp2pClient as Z, type CancelIntentParams as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerVerifyResponse as a$, type GetBestByPlatformResponse as a0, type GetBestByPlatformResponseObject as a1, type GetPlatformQuote as a2, type PlatformQuote as a3, type QuoteRequest as a4, type GetNearbyQuote as a5, type GetNearbySuggestions as a6, type GetQuoteResponse as a7, type GetQuoteResponseObject as a8, type GetQuoteSingleResponse as a9, type CashAppSessionMaterial as aA, type WiseSessionMaterial as aB, type WiseProfileInfo as aC, type WiseProfileSelectionRequired as aD, type WiseProfileNotFound as aE, type PayPalSessionMaterial as aF, type PayPalGoogleOAuthSellerCredentialUploadBody as aG, type VenmoGoogleOAuthSellerCredentialUploadBody as aH, type VenmoCredentialUploadInput as aI, type CashAppCredentialUploadInput as aJ, type WiseCredentialUploadInput as aK, type PayPalCredentialUploadInput as aL, type SellerCredentialUploadInputByPlatform as aM, type SellerCiphertextBundle as aN, type SellerSignedCiphertextBundle as aO, type SellerVerifyIntentDetails as aP, type SellerVerifyInput as aQ, type SellerProbeInput as aR, type SellerCredentialBundleUpload as aS, type SellerCredentialStatusValue as aT, type SellerCredentialStatus as aU, type SellerVerifyProxyBody as aV, type SellerTypedDataField as aW, type SellerTypedDataSpec as aX, type SellerPaymentTypedDataValue as aY, type SellerAttestationOutput as aZ, type SellerCredentialProbeResponse as a_, type QuoteResponse as aa, type QuoteResponseObject as ab, type QuoteSingleResponse as ac, type QuoteIntentResponse as ad, type QuoteFeesResponse as ae, type FiatResponse as af, type TokenResponse as ag, type NearbyQuote as ah, type NearbySuggestions as ai, type ApiDeposit as aj, type DepositVerifier as ak, type DepositVerifierCurrency as al, type DepositStatus as am, type GetDepositByIdRequest as an, type GetDepositByIdResponse as ao, type Intent as ap, type ApiIntentStatus as aq, type GetOwnerIntentsRequest as ar, type GetOwnerIntentsResponse as as, type GetIntentsByDepositRequest as at, type GetIntentsByDepositResponse as au, type GetIntentByHashRequest as av, type GetIntentByHashResponse as aw, type RegisterPayeeDetailsRequest as ax, type RegisterPayeeDetailsResponse as ay, type VenmoSessionMaterial as az, type SellerCredentialUploadInput as b, type RateManagerPaginationOptions as b$, type FulfillIntentAttestationResponse as b0, type AttestationServiceSellerCredentialProbeResponse as b1, type BuyerTeePaymentParams as b2, type BuyerTeePaymentProofInput as b3, type BuyerTeeSessionMaterial as b4, type CuratorSellerCredentialStatusResponse as b5, type CuratorSellerVerifyResponse as b6, type RegisteredSellerCredentialPlatform as b7, type UploadSellerCredentialParams as b8, type RegisteredUploadSellerCredentialParams as b9, IndexerRateManagerService as bA, compareEventCursorIdsByRecency as bB, fetchFulfillmentAndPayment as bC, type DepositEntity$1 as bD, type IntentFulfilledEntity as bE, type IntentFulfillmentAmountsEntity as bF, type DepositPaymentMethodEntity$1 as bG, type MethodCurrencyEntity$1 as bH, type IntentStatus as bI, type RateManagerEntity as bJ, type RateManagerRateEntity as bK, type RateManagerDelegationEntity as bL, type ManagerAggregateStatsEntity as bM, type ManagerStatsEntity as bN, type ManagerDailySnapshotEntity as bO, type RateManagerListItem as bP, type RateManagerDetail as bQ, type ManualRateUpdateEntity as bR, type OracleConfigUpdateEntity as bS, type DepositFundActivityEntity$1 as bT, type DepositDailySnapshotEntity$1 as bU, type DepositFundActivityType$1 as bV, type DepositFilter as bW, type PaginationOptions as bX, type DepositOrderField as bY, type OrderDirection$1 as bZ, type RateManagerFilter as b_, type UploadSellerCredentialOptions as ba, type GetSellerCredentialStatusParams as bb, type ConfirmPayPalForwardingRequest as bc, type PayPalForwardingConfirmationErrorCode as bd, type UploadPayPalGoogleOAuthSellerCredentialParams as be, type UploadVenmoGoogleOAuthSellerCredentialParams as bf, type UploadGoogleOAuthSellerCredentialParams as bg, type VerifySellerPaymentParams as bh, type IdentityAttestationActionType as bi, type IdentityAttestationParams as bj, type MakerIdentityAttestationRequestBody as bk, type MakerIdentityPlatform as bl, type OnchainCurrency as bm, type DepositVerifierData as bn, type PreparedTransaction as bo, type OrderStats as bp, type DepositIntentStatistics as bq, type TakerTier as br, type TakerTierStats as bs, type TakerTierLevel as bt, type PlatformLimit as bu, type PlatformRiskLevel as bv, type OrderbookEntry as bw, IndexerClient as bx, defaultIndexerEndpoint as by, IndexerDepositService as bz, type SellerPlatform as c, type RateManagerDelegationPaginationOptions as c0, type RateManagerOrderField as c1, type OrderDirection as c2, type DeploymentEnv as c3, type FulfillmentRecord as c4, type PaymentVerifiedRecord as c5, type FulfillmentAndPaymentResponse as c6, PAYMENT_PLATFORMS as c7, type PaymentPlatformType as c8, Currency as c9, normalizeRegistry as cA, getDelegationRoute as cB, classifyDelegationState as cC, type DelegationRoute as cD, type DelegationState as cE, type DelegationDepositTarget as cF, type BatchResult as cG, type SendTransactionFn as cH, type SendBatchFn as cI, ZERO_ADDRESS as cJ, asErrorMessage as cK, assertDelegationMethodSupport as cL, currencyInfo as ca, getCurrencyInfoFromHash as cb, getCurrencyInfoFromCountryCode as cc, getCurrencyCodeFromHash as cd, isSupportedCurrencyHash as ce, mapConversionRatesToOnchainMinRate as cf, type CurrencyData as cg, getContracts as ch, getRateManagerContracts as ci, getPaymentMethodsCatalog as cj, getGatingServiceAddress as ck, type RuntimeEnv as cl, parseDepositView as cm, parseIntentView as cn, enrichPvDepositView as co, enrichPvIntentView as cp, type PV_DepositView as cq, type PV_Deposit as cr, type PV_PaymentMethodData as cs, type PV_Currency as ct, type PV_ReferralFee as cu, type PV_IntentView as cv, type PV_Intent as cw, ZERO_RATE_MANAGER_ID as cx, isZeroRateManagerId as cy, normalizeRateManagerId as cz, type SellerCredentialAttestationRuntime as d, type AttestationServiceSellerCredentialUploadResponse as e, type ConfirmPayPalForwardingResponse as f, type GoogleOAuthSellerCredentialUploadBodyByPlatform as g, type BestByPlatformResponse as h, type ValidatePayeeDetailsResponse as i, type PostDepositDetailsResponse as j, type GetPayeeDetailsRequest as k, type GetPayeeDetailsResponse as l, type GetOwnerDepositsRequest as m, type GetOwnerDepositsResponse as n, type GetTakerTierRequest as o, type GetTakerTierResponse as p, type GetDepositBundleParams as q, type ApiAdapterOptions as r, type GetDepositBundleResponse as s, type GetOrderbookParams as t, type GetOrderbookResponse as u, type CurrencyType as v, type PaymentMethodCatalog as w, type SignalIntentReferralFee as x, type SignalIntentMethodParams as y, type CancelIntentMethodParams as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/sdk",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "ZKP2P Client SDK - TypeScript SDK for deposit management, liquidity provision, and onramping",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.cjs",
@@ -89,7 +89,7 @@
89
89
  "dependencies": {
90
90
  "@zkp2p/indexer-schema": "0.2.3",
91
91
  "@zkp2p/contracts-v2": "0.2.2",
92
- "@zkp2p/zkp2p-attestation": "1.3.1",
92
+ "@zkp2p/zkp2p-attestation": "1.4.0",
93
93
  "ethers": "^6.0.0",
94
94
  "ox": "^0.11.1"
95
95
  },