@zkp2p/sdk 0.4.1 → 0.4.3

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, s as SignalIntentMethodParams, b8 as PreparedTransaction, bb as TakerTier, i as GetTakerTierRequest, j as GetTakerTierResponse, F as FulfillIntentMethodParams, cr as SendTransactionFn, cs as SendBatchFn, cp as DelegationDepositTarget, cq as BatchResult } from './vaultUtils-Dt7ZOITQ.mjs';
2
- export { cn as DelegationRoute, co as DelegationState, ct as VAULT_ZERO_ADDRESS, ch as ZERO_RATE_MANAGER_ID, cu as asErrorMessage, cv as assertDelegationMethodSupport, cm as classifyDelegationState, cl as getDelegationRoute, ci as isZeroRateManagerId, cj as normalizeRateManagerId, ck as normalizeRegistry } from './vaultUtils-Dt7ZOITQ.mjs';
1
+ import { Z as Zkp2pClient, P as PostDepositDetailsRequest, x as SignalIntentMethodParams, bl as PreparedTransaction, bo as TakerTier, n as GetTakerTierRequest, o as GetTakerTierResponse, F as FulfillIntentMethodParams, cE as SendTransactionFn, cF as SendBatchFn, cC as DelegationDepositTarget, cD as BatchResult } from './vaultUtils-BZU2bc0T.mjs';
2
+ export { cA as DelegationRoute, cB as DelegationState, cG as VAULT_ZERO_ADDRESS, cu as ZERO_RATE_MANAGER_ID, cH as asErrorMessage, cI as assertDelegationMethodSupport, cz as classifyDelegationState, cy as getDelegationRoute, cv as isZeroRateManagerId, cw as normalizeRateManagerId, cx as normalizeRegistry } from './vaultUtils-BZU2bc0T.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, s as SignalIntentMethodParams, b8 as PreparedTransaction, bb as TakerTier, i as GetTakerTierRequest, j as GetTakerTierResponse, F as FulfillIntentMethodParams, cr as SendTransactionFn, cs as SendBatchFn, cp as DelegationDepositTarget, cq as BatchResult } from './vaultUtils-Dt7ZOITQ.js';
2
- export { cn as DelegationRoute, co as DelegationState, ct as VAULT_ZERO_ADDRESS, ch as ZERO_RATE_MANAGER_ID, cu as asErrorMessage, cv as assertDelegationMethodSupport, cm as classifyDelegationState, cl as getDelegationRoute, ci as isZeroRateManagerId, cj as normalizeRateManagerId, ck as normalizeRegistry } from './vaultUtils-Dt7ZOITQ.js';
1
+ import { Z as Zkp2pClient, P as PostDepositDetailsRequest, x as SignalIntentMethodParams, bl as PreparedTransaction, bo as TakerTier, n as GetTakerTierRequest, o as GetTakerTierResponse, F as FulfillIntentMethodParams, cE as SendTransactionFn, cF as SendBatchFn, cC as DelegationDepositTarget, cD as BatchResult } from './vaultUtils-BZU2bc0T.js';
2
+ export { cA as DelegationRoute, cB as DelegationState, cG as VAULT_ZERO_ADDRESS, cu as ZERO_RATE_MANAGER_ID, cH as asErrorMessage, cI as assertDelegationMethodSupport, cz as classifyDelegationState, cy as getDelegationRoute, cv as isZeroRateManagerId, cw as normalizeRateManagerId, cx as normalizeRegistry } from './vaultUtils-BZU2bc0T.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.
@@ -985,15 +986,16 @@ type ReferrerFeeConfig = {
985
986
  recipient: `0x${string}`;
986
987
  feeBps: number;
987
988
  };
989
+ type CuratorMetadata = Record<string, any>;
988
990
  type CuratorPayeeData = {
989
991
  offchainId: string;
990
992
  telegramUsername: string | null;
991
- metadata: Record<string, string> | null;
993
+ metadata: CuratorMetadata | null;
992
994
  };
993
995
  type CuratorPayeeDataInput = {
994
996
  offchainId: string;
995
997
  telegramUsername?: string | null;
996
- metadata?: Record<string, string> | null;
998
+ metadata?: CuratorMetadata | null;
997
999
  };
998
1000
  /**
999
1001
  * Parameters for fulfilling an intent with payment attestation
@@ -1063,7 +1065,7 @@ type PostDepositDetailsRequest = {
1063
1065
  /** Optional Telegram username associated with the payee */
1064
1066
  telegramUsername?: string | null;
1065
1067
  /** Optional processor-specific metadata */
1066
- metadata?: Record<string, string> | null;
1068
+ metadata?: CuratorMetadata | null;
1067
1069
  /** Payment processor name */
1068
1070
  processorName: string;
1069
1071
  };
@@ -1079,7 +1081,7 @@ type PostDepositDetailsResponse = {
1079
1081
  processorName: string;
1080
1082
  offchainId: string;
1081
1083
  telegramUsername: string | null;
1082
- metadata: Record<string, string> | null;
1084
+ metadata: CuratorMetadata | null;
1083
1085
  hashedOnchainId: string;
1084
1086
  createdAt: string;
1085
1087
  /** Per-merchant forwarding alias (PayPal multi-merchant flow) */
@@ -1132,6 +1134,21 @@ type PayPalSessionMaterial = {
1132
1134
  forwardingBaseMailbox: string;
1133
1135
  forwardingMailboxAlias: string;
1134
1136
  };
1137
+ type GoogleOAuthSellerCredentialPlatform = Extract<SellerPlatform, 'paypal' | 'venmo'>;
1138
+ type PayPalGoogleOAuthSellerCredentialUploadBody = {
1139
+ payeeEmail: string;
1140
+ authorizationCode: string;
1141
+ redirectUri: string;
1142
+ };
1143
+ type VenmoGoogleOAuthSellerCredentialUploadBody = {
1144
+ accountId: string;
1145
+ authorizationCode: string;
1146
+ redirectUri: string;
1147
+ };
1148
+ type GoogleOAuthSellerCredentialUploadBodyByPlatform = {
1149
+ paypal: PayPalGoogleOAuthSellerCredentialUploadBody;
1150
+ venmo: VenmoGoogleOAuthSellerCredentialUploadBody;
1151
+ };
1135
1152
  type VenmoCredentialUploadInput = {
1136
1153
  payeeId: string;
1137
1154
  sessionMaterial: VenmoSessionMaterial;
@@ -1209,6 +1226,8 @@ type BuyerTeePaymentProofInput = {
1209
1226
  proofType: 'buyerTee';
1210
1227
  encryptedSessionMaterial: string;
1211
1228
  params: BuyerTeePaymentParams;
1229
+ actionPlatform?: string;
1230
+ actionType?: string;
1212
1231
  };
1213
1232
  type BuyerTeeSessionMaterial = Record<string, string>;
1214
1233
  type BuyerTeeSessionMaterialEncryptionInput = {
@@ -1219,6 +1238,23 @@ type BuyerTeeSessionMaterialEncryptionInput = {
1219
1238
  sessionMaterial: BuyerTeeSessionMaterial;
1220
1239
  timeoutMs?: number | null;
1221
1240
  };
1241
+ type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
1242
+ type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
1243
+ type IdentityAttestationRequestBody = {
1244
+ encryptedSessionMaterial: string;
1245
+ params: IdentityAttestationParams;
1246
+ };
1247
+ type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
1248
+ encryptedSessionMaterial: string;
1249
+ params: IdentityParamsByPlatform[P];
1250
+ };
1251
+ type IdentityAttestationActionType<P extends IdentityPlatform> = IdentityActionTypeByPlatform[P];
1252
+ type AttestationServiceIdentityResponse = {
1253
+ success: boolean;
1254
+ message: string;
1255
+ responseObject: IdentityAttestationOutput;
1256
+ statusCode: number;
1257
+ };
1222
1258
  type SellerTypedDataField = {
1223
1259
  name: string;
1224
1260
  type: string;
@@ -1292,7 +1328,7 @@ type UploadSellerCredentialParams = ({
1292
1328
  [P in RegisteredSellerCredentialPlatform]: {
1293
1329
  offchainId: string;
1294
1330
  telegramUsername?: string | null;
1295
- metadata?: Record<string, string> | null;
1331
+ metadata?: CuratorMetadata | null;
1296
1332
  platform: P;
1297
1333
  } & SellerCredentialUploadInputByPlatform[P];
1298
1334
  }[RegisteredSellerCredentialPlatform];
@@ -1300,7 +1336,7 @@ type RegisteredUploadSellerCredentialParams = {
1300
1336
  [P in RegisteredSellerCredentialPlatform]: {
1301
1337
  offchainId: string;
1302
1338
  telegramUsername?: string | null;
1303
- metadata?: Record<string, string> | null;
1339
+ metadata?: CuratorMetadata | null;
1304
1340
  platform: P;
1305
1341
  } & SellerCredentialUploadInputByPlatform[P];
1306
1342
  }[RegisteredSellerCredentialPlatform];
@@ -1329,6 +1365,20 @@ type ConfirmPayPalForwardingResponse = {
1329
1365
  responseObject: ConfirmPayPalForwardingStatus;
1330
1366
  statusCode: number;
1331
1367
  };
1368
+ type GoogleOAuthSellerCredentialBaseParams = {
1369
+ authorizationCode: string;
1370
+ payeeDetails: Hash;
1371
+ redirectUri: string;
1372
+ };
1373
+ type UploadPayPalGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialBaseParams & {
1374
+ platform: 'paypal';
1375
+ payeeEmail: string;
1376
+ };
1377
+ type UploadVenmoGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialBaseParams & {
1378
+ platform: 'venmo';
1379
+ accountId: string;
1380
+ };
1381
+ type UploadGoogleOAuthSellerCredentialParams = UploadPayPalGoogleOAuthSellerCredentialParams | UploadVenmoGoogleOAuthSellerCredentialParams;
1332
1382
  type VerifySellerPaymentParams = {
1333
1383
  platform: SellerPlatform;
1334
1384
  } & SellerVerifyProxyBody;
@@ -1548,7 +1598,7 @@ type GetPayeeDetailsResponse = {
1548
1598
  processorName: string;
1549
1599
  offchainId: string;
1550
1600
  telegramUsername: string | null;
1551
- metadata: Record<string, string> | null;
1601
+ metadata: CuratorMetadata | null;
1552
1602
  hashedOnchainId: string;
1553
1603
  createdAt: string;
1554
1604
  /** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
@@ -1560,7 +1610,7 @@ type ValidatePayeeDetailsRequest = {
1560
1610
  processorName: string;
1561
1611
  offchainId: string;
1562
1612
  telegramUsername?: string | null;
1563
- metadata?: Record<string, string> | null;
1613
+ metadata?: CuratorMetadata | null;
1564
1614
  };
1565
1615
  type ValidatePayeeDetailsResponse = {
1566
1616
  success: boolean;
@@ -3409,6 +3459,16 @@ declare class Zkp2pClient {
3409
3459
  baseApiUrl?: string;
3410
3460
  timeoutMs?: number;
3411
3461
  }): Promise<ConfirmPayPalForwardingResponse>;
3462
+ /**
3463
+ * Upload a seller Gmail OAuth authorization code through curator.
3464
+ *
3465
+ * Curator owns the encryption hop to attestation-service for this flow, so
3466
+ * callers send the one-time Google code plus the stable seller identity.
3467
+ */
3468
+ uploadGoogleOAuthSellerCredential(params: UploadGoogleOAuthSellerCredentialParams, opts?: {
3469
+ baseApiUrl?: string;
3470
+ timeoutMs?: number;
3471
+ }): Promise<CuratorSellerCredentialUploadResponse>;
3412
3472
  /**
3413
3473
  * Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
3414
3474
  * omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
@@ -3595,4 +3655,4 @@ type SendBatchFn = (txs: Array<{
3595
3655
  value?: bigint;
3596
3656
  }>) => Promise<string>;
3597
3657
 
3598
- export { type GetNearbySuggestions as $, type AttestationServiceSellerCredentialUploadResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type ConfirmPayPalForwardingResponse as C, type DepositWithRelations as D, type Range as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type SignalIntentParams as H, type IntentEntity$1 as I, type FulfillIntentParams as J, type ReleaseFundsToPayerParams as K, type CancelIntentParams as L, type BestByPlatformResponseObject as M, type GetBestByPlatformResponse as N, type GetBestByPlatformResponseObject as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type GetPlatformQuote as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type PlatformQuote as X, type QuoteRequest as Y, Zkp2pClient as Z, type GetNearbyQuote as _, type SellerPlatform as a, type UploadSellerCredentialParams as a$, type GetQuoteResponse as a0, type GetQuoteResponseObject as a1, type GetQuoteSingleResponse as a2, type QuoteResponse as a3, type QuoteResponseObject as a4, type QuoteSingleResponse as a5, type QuoteIntentResponse as a6, type QuoteFeesResponse as a7, type FiatResponse as a8, type TokenResponse as a9, type CashAppCredentialUploadInput as aA, type WiseCredentialUploadInput as aB, type PayPalCredentialUploadInput as aC, type SellerCredentialUploadInputByPlatform as aD, type SellerCiphertextBundle as aE, type SellerSignedCiphertextBundle as aF, type SellerVerifyIntentDetails as aG, type SellerVerifyInput as aH, type SellerProbeInput as aI, type SellerCredentialBundle as aJ, type SellerCredentialBundleUpload as aK, type SellerCredentialStatusValue as aL, type SellerCredentialStatus as aM, type SellerVerifyProxyBody as aN, type SellerTypedDataField as aO, type SellerTypedDataSpec as aP, type SellerPaymentTypedDataValue as aQ, type SellerAttestationOutput as aR, type SellerCredentialProbeResponse as aS, type AttestationServiceSellerVerifyResponse as aT, type AttestationServiceSellerCredentialProbeResponse as aU, type BuyerTeePaymentParams as aV, type BuyerTeePaymentProofInput as aW, type BuyerTeeSessionMaterial as aX, type CuratorSellerCredentialUploadResponse as aY, type CuratorSellerCredentialStatusResponse as aZ, type CuratorSellerVerifyResponse as a_, type NearbyQuote as aa, type NearbySuggestions as ab, type ApiDeposit as ac, type DepositVerifier as ad, type DepositVerifierCurrency as ae, type DepositStatus as af, type GetDepositByIdRequest as ag, type GetDepositByIdResponse as ah, type Intent as ai, type ApiIntentStatus as aj, type GetOwnerIntentsRequest as ak, type GetOwnerIntentsResponse as al, type GetIntentsByDepositRequest as am, type GetIntentsByDepositResponse as an, type GetIntentByHashRequest as ao, type GetIntentByHashResponse as ap, type RegisterPayeeDetailsRequest as aq, type RegisterPayeeDetailsResponse as ar, type VenmoSessionMaterial as as, type CashAppSessionMaterial as at, type WiseSessionMaterial as au, type WiseProfileInfo as av, type WiseProfileSelectionRequired as aw, type WiseProfileNotFound as ax, type PayPalSessionMaterial as ay, type VenmoCredentialUploadInput as az, type SellerCredentialAttestationRuntime as b, mapConversionRatesToOnchainMinRate as b$, type RegisteredUploadSellerCredentialParams as b0, type UploadSellerCredentialOptions as b1, type GetSellerCredentialStatusParams as b2, type ConfirmPayPalForwardingRequest as b3, type PayPalForwardingConfirmationErrorCode as b4, type VerifySellerPaymentParams as b5, type OnchainCurrency as b6, type DepositVerifierData as b7, type PreparedTransaction as b8, type OrderStats as b9, type RateManagerDetail as bA, type ManualRateUpdateEntity as bB, type OracleConfigUpdateEntity as bC, type DepositFundActivityEntity$1 as bD, type DepositDailySnapshotEntity$1 as bE, type DepositFundActivityType$1 as bF, type DepositFilter as bG, type PaginationOptions as bH, type DepositOrderField as bI, type OrderDirection$1 as bJ, type RateManagerFilter as bK, type RateManagerPaginationOptions as bL, type RateManagerDelegationPaginationOptions as bM, type RateManagerOrderField as bN, type OrderDirection as bO, type DeploymentEnv as bP, type FulfillmentRecord as bQ, type PaymentVerifiedRecord as bR, type FulfillmentAndPaymentResponse as bS, PAYMENT_PLATFORMS as bT, type PaymentPlatformType as bU, Currency as bV, currencyInfo as bW, getCurrencyInfoFromHash as bX, getCurrencyInfoFromCountryCode as bY, getCurrencyCodeFromHash as bZ, isSupportedCurrencyHash as b_, type DepositIntentStatistics as ba, type TakerTier as bb, type TakerTierStats as bc, type TakerTierLevel as bd, type PlatformLimit as be, type PlatformRiskLevel as bf, type OrderbookEntry as bg, IndexerClient as bh, defaultIndexerEndpoint as bi, IndexerDepositService as bj, IndexerRateManagerService as bk, compareEventCursorIdsByRecency as bl, fetchFulfillmentAndPayment as bm, type DepositEntity$1 as bn, type IntentFulfilledEntity as bo, type IntentFulfillmentAmountsEntity as bp, type DepositPaymentMethodEntity$1 as bq, type MethodCurrencyEntity$1 as br, type IntentStatus as bs, type RateManagerEntity as bt, type RateManagerRateEntity as bu, type RateManagerDelegationEntity as bv, type ManagerAggregateStatsEntity as bw, type ManagerStatsEntity as bx, type ManagerDailySnapshotEntity as by, type RateManagerListItem as bz, type BestByPlatformResponse as c, type CurrencyData as c0, getContracts as c1, getRateManagerContracts as c2, getPaymentMethodsCatalog as c3, getGatingServiceAddress as c4, type RuntimeEnv as c5, parseDepositView as c6, parseIntentView as c7, enrichPvDepositView as c8, enrichPvIntentView as c9, type PV_DepositView as ca, type PV_Deposit as cb, type PV_PaymentMethodData as cc, type PV_Currency as cd, type PV_ReferralFee as ce, type PV_IntentView as cf, type PV_Intent as cg, ZERO_RATE_MANAGER_ID as ch, isZeroRateManagerId as ci, normalizeRateManagerId as cj, normalizeRegistry as ck, getDelegationRoute as cl, classifyDelegationState as cm, type DelegationRoute as cn, type DelegationState as co, type DelegationDepositTarget as cp, type BatchResult as cq, type SendTransactionFn as cr, type SendBatchFn as cs, ZERO_ADDRESS as ct, asErrorMessage as cu, assertDelegationMethodSupport as cv, type ValidatePayeeDetailsResponse as d, type PostDepositDetailsResponse as e, type GetPayeeDetailsResponse as f, type GetOwnerDepositsRequest as g, type GetOwnerDepositsResponse as h, type GetTakerTierRequest as i, type GetTakerTierResponse as j, type GetDepositBundleParams as k, type ApiAdapterOptions as l, type GetDepositBundleResponse as m, type GetOrderbookParams as n, type GetOrderbookResponse as o, type CurrencyType as p, type PaymentMethodCatalog as q, type SignalIntentReferralFee as r, type SignalIntentMethodParams as s, type CancelIntentMethodParams as t, type Zkp2pNextOptions as u, type AuthorizationTokenProvider as v, type TimeoutConfig as w, type ActionCallback as x, type CreateDepositParams as y, type CreateDepositConversionRate as z };
3658
+ export { type GetBestByPlatformResponseObject as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type ConfirmPayPalForwardingResponse as C, type DepositWithRelations as D, type AuthorizationTokenProvider as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type TimeoutConfig as H, type IntentEntity$1 as I, type ActionCallback as J, type CreateDepositParams as K, type CreateDepositConversionRate as L, type Range as M, type SignalIntentParams as N, type FulfillIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type ReleaseFundsToPayerParams as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type CancelIntentParams as X, type BestByPlatformResponseObject as Y, Zkp2pClient as Z, type GetBestByPlatformResponse as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerCredentialProbeResponse as a$, type GetPlatformQuote as a0, type PlatformQuote as a1, type QuoteRequest as a2, type GetNearbyQuote as a3, type GetNearbySuggestions as a4, type GetQuoteResponse as a5, type GetQuoteResponseObject as a6, type GetQuoteSingleResponse as a7, type QuoteResponse as a8, type QuoteResponseObject as a9, type WiseProfileInfo as aA, type WiseProfileSelectionRequired as aB, type WiseProfileNotFound as aC, type PayPalSessionMaterial as aD, type PayPalGoogleOAuthSellerCredentialUploadBody as aE, type VenmoGoogleOAuthSellerCredentialUploadBody as aF, type VenmoCredentialUploadInput as aG, type CashAppCredentialUploadInput as aH, type WiseCredentialUploadInput as aI, type PayPalCredentialUploadInput as aJ, type SellerCredentialUploadInputByPlatform as aK, type SellerCiphertextBundle as aL, type SellerSignedCiphertextBundle as aM, type SellerVerifyIntentDetails as aN, type SellerVerifyInput as aO, type SellerProbeInput as aP, type SellerCredentialBundle as aQ, type SellerCredentialBundleUpload as aR, type SellerCredentialStatusValue as aS, type SellerCredentialStatus as aT, type SellerVerifyProxyBody as aU, type SellerTypedDataField as aV, type SellerTypedDataSpec as aW, type SellerPaymentTypedDataValue as aX, type SellerAttestationOutput as aY, type SellerCredentialProbeResponse as aZ, type AttestationServiceSellerVerifyResponse as a_, type QuoteSingleResponse as aa, type QuoteIntentResponse as ab, type QuoteFeesResponse as ac, type FiatResponse as ad, type TokenResponse as ae, type NearbyQuote as af, type NearbySuggestions as ag, type ApiDeposit as ah, type DepositVerifier as ai, type DepositVerifierCurrency as aj, type DepositStatus as ak, type GetDepositByIdRequest as al, type GetDepositByIdResponse as am, type Intent as an, type ApiIntentStatus as ao, type GetOwnerIntentsRequest as ap, type GetOwnerIntentsResponse as aq, type GetIntentsByDepositRequest as ar, type GetIntentsByDepositResponse as as, type GetIntentByHashRequest as at, type GetIntentByHashResponse as au, type RegisterPayeeDetailsRequest as av, type RegisterPayeeDetailsResponse as aw, type VenmoSessionMaterial as ax, type CashAppSessionMaterial as ay, type WiseSessionMaterial as az, type SellerPlatform as b, type OrderDirection as b$, type BuyerTeePaymentParams as b0, type BuyerTeePaymentProofInput as b1, type BuyerTeeSessionMaterial as b2, type CuratorSellerCredentialStatusResponse as b3, type CuratorSellerVerifyResponse as b4, type UploadSellerCredentialParams as b5, type RegisteredUploadSellerCredentialParams as b6, type UploadSellerCredentialOptions as b7, type GetSellerCredentialStatusParams as b8, type ConfirmPayPalForwardingRequest as b9, type DepositEntity$1 as bA, type IntentFulfilledEntity as bB, type IntentFulfillmentAmountsEntity as bC, type DepositPaymentMethodEntity$1 as bD, type MethodCurrencyEntity$1 as bE, type IntentStatus as bF, type RateManagerEntity as bG, type RateManagerRateEntity as bH, type RateManagerDelegationEntity as bI, type ManagerAggregateStatsEntity as bJ, type ManagerStatsEntity as bK, type ManagerDailySnapshotEntity as bL, type RateManagerListItem as bM, type RateManagerDetail as bN, type ManualRateUpdateEntity as bO, type OracleConfigUpdateEntity as bP, type DepositFundActivityEntity$1 as bQ, type DepositDailySnapshotEntity$1 as bR, type DepositFundActivityType$1 as bS, type DepositFilter as bT, type PaginationOptions as bU, type DepositOrderField as bV, type OrderDirection$1 as bW, type RateManagerFilter as bX, type RateManagerPaginationOptions as bY, type RateManagerDelegationPaginationOptions as bZ, type RateManagerOrderField as b_, type PayPalForwardingConfirmationErrorCode as ba, type UploadPayPalGoogleOAuthSellerCredentialParams as bb, type UploadVenmoGoogleOAuthSellerCredentialParams as bc, type UploadGoogleOAuthSellerCredentialParams as bd, type VerifySellerPaymentParams as be, type IdentityAttestationActionType as bf, type IdentityAttestationParams as bg, type MakerIdentityAttestationRequestBody as bh, type MakerIdentityPlatform as bi, type OnchainCurrency as bj, type DepositVerifierData as bk, type PreparedTransaction as bl, type OrderStats as bm, type DepositIntentStatistics as bn, type TakerTier as bo, type TakerTierStats as bp, type TakerTierLevel as bq, type PlatformLimit as br, type PlatformRiskLevel as bs, type OrderbookEntry as bt, IndexerClient as bu, defaultIndexerEndpoint as bv, IndexerDepositService as bw, IndexerRateManagerService as bx, compareEventCursorIdsByRecency as by, fetchFulfillmentAndPayment as bz, type SellerCredentialAttestationRuntime as c, type DeploymentEnv as c0, type FulfillmentRecord as c1, type PaymentVerifiedRecord as c2, type FulfillmentAndPaymentResponse as c3, PAYMENT_PLATFORMS as c4, type PaymentPlatformType as c5, Currency as c6, currencyInfo as c7, getCurrencyInfoFromHash as c8, getCurrencyInfoFromCountryCode as c9, type DelegationRoute as cA, type DelegationState as cB, type DelegationDepositTarget as cC, type BatchResult as cD, type SendTransactionFn as cE, type SendBatchFn as cF, ZERO_ADDRESS as cG, asErrorMessage as cH, assertDelegationMethodSupport as cI, getCurrencyCodeFromHash as ca, isSupportedCurrencyHash as cb, mapConversionRatesToOnchainMinRate as cc, type CurrencyData as cd, getContracts as ce, getRateManagerContracts as cf, getPaymentMethodsCatalog as cg, getGatingServiceAddress as ch, type RuntimeEnv as ci, parseDepositView as cj, parseIntentView as ck, enrichPvDepositView as cl, enrichPvIntentView as cm, type PV_DepositView as cn, type PV_Deposit as co, type PV_PaymentMethodData as cp, type PV_Currency as cq, type PV_ReferralFee as cr, type PV_IntentView as cs, type PV_Intent as ct, ZERO_RATE_MANAGER_ID as cu, isZeroRateManagerId as cv, normalizeRateManagerId as cw, normalizeRegistry as cx, getDelegationRoute as cy, classifyDelegationState as cz, type AttestationServiceSellerCredentialUploadResponse as d, type GoogleOAuthSellerCredentialUploadBodyByPlatform as e, type CuratorSellerCredentialUploadResponse as f, type BestByPlatformResponse as g, type ValidatePayeeDetailsResponse as h, type PostDepositDetailsResponse as i, type GetPayeeDetailsRequest as j, type GetPayeeDetailsResponse as k, type GetOwnerDepositsRequest as l, type GetOwnerDepositsResponse as m, type GetTakerTierRequest as n, type GetTakerTierResponse as o, type GetDepositBundleParams as p, type ApiAdapterOptions as q, type GetDepositBundleResponse as r, type GetOrderbookParams as s, type GetOrderbookResponse as t, type CurrencyType as u, type PaymentMethodCatalog as v, type SignalIntentReferralFee as w, type SignalIntentMethodParams as x, type CancelIntentMethodParams as y, type Zkp2pNextOptions 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.
@@ -985,15 +986,16 @@ type ReferrerFeeConfig = {
985
986
  recipient: `0x${string}`;
986
987
  feeBps: number;
987
988
  };
989
+ type CuratorMetadata = Record<string, any>;
988
990
  type CuratorPayeeData = {
989
991
  offchainId: string;
990
992
  telegramUsername: string | null;
991
- metadata: Record<string, string> | null;
993
+ metadata: CuratorMetadata | null;
992
994
  };
993
995
  type CuratorPayeeDataInput = {
994
996
  offchainId: string;
995
997
  telegramUsername?: string | null;
996
- metadata?: Record<string, string> | null;
998
+ metadata?: CuratorMetadata | null;
997
999
  };
998
1000
  /**
999
1001
  * Parameters for fulfilling an intent with payment attestation
@@ -1063,7 +1065,7 @@ type PostDepositDetailsRequest = {
1063
1065
  /** Optional Telegram username associated with the payee */
1064
1066
  telegramUsername?: string | null;
1065
1067
  /** Optional processor-specific metadata */
1066
- metadata?: Record<string, string> | null;
1068
+ metadata?: CuratorMetadata | null;
1067
1069
  /** Payment processor name */
1068
1070
  processorName: string;
1069
1071
  };
@@ -1079,7 +1081,7 @@ type PostDepositDetailsResponse = {
1079
1081
  processorName: string;
1080
1082
  offchainId: string;
1081
1083
  telegramUsername: string | null;
1082
- metadata: Record<string, string> | null;
1084
+ metadata: CuratorMetadata | null;
1083
1085
  hashedOnchainId: string;
1084
1086
  createdAt: string;
1085
1087
  /** Per-merchant forwarding alias (PayPal multi-merchant flow) */
@@ -1132,6 +1134,21 @@ type PayPalSessionMaterial = {
1132
1134
  forwardingBaseMailbox: string;
1133
1135
  forwardingMailboxAlias: string;
1134
1136
  };
1137
+ type GoogleOAuthSellerCredentialPlatform = Extract<SellerPlatform, 'paypal' | 'venmo'>;
1138
+ type PayPalGoogleOAuthSellerCredentialUploadBody = {
1139
+ payeeEmail: string;
1140
+ authorizationCode: string;
1141
+ redirectUri: string;
1142
+ };
1143
+ type VenmoGoogleOAuthSellerCredentialUploadBody = {
1144
+ accountId: string;
1145
+ authorizationCode: string;
1146
+ redirectUri: string;
1147
+ };
1148
+ type GoogleOAuthSellerCredentialUploadBodyByPlatform = {
1149
+ paypal: PayPalGoogleOAuthSellerCredentialUploadBody;
1150
+ venmo: VenmoGoogleOAuthSellerCredentialUploadBody;
1151
+ };
1135
1152
  type VenmoCredentialUploadInput = {
1136
1153
  payeeId: string;
1137
1154
  sessionMaterial: VenmoSessionMaterial;
@@ -1209,6 +1226,8 @@ type BuyerTeePaymentProofInput = {
1209
1226
  proofType: 'buyerTee';
1210
1227
  encryptedSessionMaterial: string;
1211
1228
  params: BuyerTeePaymentParams;
1229
+ actionPlatform?: string;
1230
+ actionType?: string;
1212
1231
  };
1213
1232
  type BuyerTeeSessionMaterial = Record<string, string>;
1214
1233
  type BuyerTeeSessionMaterialEncryptionInput = {
@@ -1219,6 +1238,23 @@ type BuyerTeeSessionMaterialEncryptionInput = {
1219
1238
  sessionMaterial: BuyerTeeSessionMaterial;
1220
1239
  timeoutMs?: number | null;
1221
1240
  };
1241
+ type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
1242
+ type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
1243
+ type IdentityAttestationRequestBody = {
1244
+ encryptedSessionMaterial: string;
1245
+ params: IdentityAttestationParams;
1246
+ };
1247
+ type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
1248
+ encryptedSessionMaterial: string;
1249
+ params: IdentityParamsByPlatform[P];
1250
+ };
1251
+ type IdentityAttestationActionType<P extends IdentityPlatform> = IdentityActionTypeByPlatform[P];
1252
+ type AttestationServiceIdentityResponse = {
1253
+ success: boolean;
1254
+ message: string;
1255
+ responseObject: IdentityAttestationOutput;
1256
+ statusCode: number;
1257
+ };
1222
1258
  type SellerTypedDataField = {
1223
1259
  name: string;
1224
1260
  type: string;
@@ -1292,7 +1328,7 @@ type UploadSellerCredentialParams = ({
1292
1328
  [P in RegisteredSellerCredentialPlatform]: {
1293
1329
  offchainId: string;
1294
1330
  telegramUsername?: string | null;
1295
- metadata?: Record<string, string> | null;
1331
+ metadata?: CuratorMetadata | null;
1296
1332
  platform: P;
1297
1333
  } & SellerCredentialUploadInputByPlatform[P];
1298
1334
  }[RegisteredSellerCredentialPlatform];
@@ -1300,7 +1336,7 @@ type RegisteredUploadSellerCredentialParams = {
1300
1336
  [P in RegisteredSellerCredentialPlatform]: {
1301
1337
  offchainId: string;
1302
1338
  telegramUsername?: string | null;
1303
- metadata?: Record<string, string> | null;
1339
+ metadata?: CuratorMetadata | null;
1304
1340
  platform: P;
1305
1341
  } & SellerCredentialUploadInputByPlatform[P];
1306
1342
  }[RegisteredSellerCredentialPlatform];
@@ -1329,6 +1365,20 @@ type ConfirmPayPalForwardingResponse = {
1329
1365
  responseObject: ConfirmPayPalForwardingStatus;
1330
1366
  statusCode: number;
1331
1367
  };
1368
+ type GoogleOAuthSellerCredentialBaseParams = {
1369
+ authorizationCode: string;
1370
+ payeeDetails: Hash;
1371
+ redirectUri: string;
1372
+ };
1373
+ type UploadPayPalGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialBaseParams & {
1374
+ platform: 'paypal';
1375
+ payeeEmail: string;
1376
+ };
1377
+ type UploadVenmoGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialBaseParams & {
1378
+ platform: 'venmo';
1379
+ accountId: string;
1380
+ };
1381
+ type UploadGoogleOAuthSellerCredentialParams = UploadPayPalGoogleOAuthSellerCredentialParams | UploadVenmoGoogleOAuthSellerCredentialParams;
1332
1382
  type VerifySellerPaymentParams = {
1333
1383
  platform: SellerPlatform;
1334
1384
  } & SellerVerifyProxyBody;
@@ -1548,7 +1598,7 @@ type GetPayeeDetailsResponse = {
1548
1598
  processorName: string;
1549
1599
  offchainId: string;
1550
1600
  telegramUsername: string | null;
1551
- metadata: Record<string, string> | null;
1601
+ metadata: CuratorMetadata | null;
1552
1602
  hashedOnchainId: string;
1553
1603
  createdAt: string;
1554
1604
  /** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
@@ -1560,7 +1610,7 @@ type ValidatePayeeDetailsRequest = {
1560
1610
  processorName: string;
1561
1611
  offchainId: string;
1562
1612
  telegramUsername?: string | null;
1563
- metadata?: Record<string, string> | null;
1613
+ metadata?: CuratorMetadata | null;
1564
1614
  };
1565
1615
  type ValidatePayeeDetailsResponse = {
1566
1616
  success: boolean;
@@ -3409,6 +3459,16 @@ declare class Zkp2pClient {
3409
3459
  baseApiUrl?: string;
3410
3460
  timeoutMs?: number;
3411
3461
  }): Promise<ConfirmPayPalForwardingResponse>;
3462
+ /**
3463
+ * Upload a seller Gmail OAuth authorization code through curator.
3464
+ *
3465
+ * Curator owns the encryption hop to attestation-service for this flow, so
3466
+ * callers send the one-time Google code plus the stable seller identity.
3467
+ */
3468
+ uploadGoogleOAuthSellerCredential(params: UploadGoogleOAuthSellerCredentialParams, opts?: {
3469
+ baseApiUrl?: string;
3470
+ timeoutMs?: number;
3471
+ }): Promise<CuratorSellerCredentialUploadResponse>;
3412
3472
  /**
3413
3473
  * Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
3414
3474
  * omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
@@ -3595,4 +3655,4 @@ type SendBatchFn = (txs: Array<{
3595
3655
  value?: bigint;
3596
3656
  }>) => Promise<string>;
3597
3657
 
3598
- export { type GetNearbySuggestions as $, type AttestationServiceSellerCredentialUploadResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type ConfirmPayPalForwardingResponse as C, type DepositWithRelations as D, type Range as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type SignalIntentParams as H, type IntentEntity$1 as I, type FulfillIntentParams as J, type ReleaseFundsToPayerParams as K, type CancelIntentParams as L, type BestByPlatformResponseObject as M, type GetBestByPlatformResponse as N, type GetBestByPlatformResponseObject as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type GetPlatformQuote as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type PlatformQuote as X, type QuoteRequest as Y, Zkp2pClient as Z, type GetNearbyQuote as _, type SellerPlatform as a, type UploadSellerCredentialParams as a$, type GetQuoteResponse as a0, type GetQuoteResponseObject as a1, type GetQuoteSingleResponse as a2, type QuoteResponse as a3, type QuoteResponseObject as a4, type QuoteSingleResponse as a5, type QuoteIntentResponse as a6, type QuoteFeesResponse as a7, type FiatResponse as a8, type TokenResponse as a9, type CashAppCredentialUploadInput as aA, type WiseCredentialUploadInput as aB, type PayPalCredentialUploadInput as aC, type SellerCredentialUploadInputByPlatform as aD, type SellerCiphertextBundle as aE, type SellerSignedCiphertextBundle as aF, type SellerVerifyIntentDetails as aG, type SellerVerifyInput as aH, type SellerProbeInput as aI, type SellerCredentialBundle as aJ, type SellerCredentialBundleUpload as aK, type SellerCredentialStatusValue as aL, type SellerCredentialStatus as aM, type SellerVerifyProxyBody as aN, type SellerTypedDataField as aO, type SellerTypedDataSpec as aP, type SellerPaymentTypedDataValue as aQ, type SellerAttestationOutput as aR, type SellerCredentialProbeResponse as aS, type AttestationServiceSellerVerifyResponse as aT, type AttestationServiceSellerCredentialProbeResponse as aU, type BuyerTeePaymentParams as aV, type BuyerTeePaymentProofInput as aW, type BuyerTeeSessionMaterial as aX, type CuratorSellerCredentialUploadResponse as aY, type CuratorSellerCredentialStatusResponse as aZ, type CuratorSellerVerifyResponse as a_, type NearbyQuote as aa, type NearbySuggestions as ab, type ApiDeposit as ac, type DepositVerifier as ad, type DepositVerifierCurrency as ae, type DepositStatus as af, type GetDepositByIdRequest as ag, type GetDepositByIdResponse as ah, type Intent as ai, type ApiIntentStatus as aj, type GetOwnerIntentsRequest as ak, type GetOwnerIntentsResponse as al, type GetIntentsByDepositRequest as am, type GetIntentsByDepositResponse as an, type GetIntentByHashRequest as ao, type GetIntentByHashResponse as ap, type RegisterPayeeDetailsRequest as aq, type RegisterPayeeDetailsResponse as ar, type VenmoSessionMaterial as as, type CashAppSessionMaterial as at, type WiseSessionMaterial as au, type WiseProfileInfo as av, type WiseProfileSelectionRequired as aw, type WiseProfileNotFound as ax, type PayPalSessionMaterial as ay, type VenmoCredentialUploadInput as az, type SellerCredentialAttestationRuntime as b, mapConversionRatesToOnchainMinRate as b$, type RegisteredUploadSellerCredentialParams as b0, type UploadSellerCredentialOptions as b1, type GetSellerCredentialStatusParams as b2, type ConfirmPayPalForwardingRequest as b3, type PayPalForwardingConfirmationErrorCode as b4, type VerifySellerPaymentParams as b5, type OnchainCurrency as b6, type DepositVerifierData as b7, type PreparedTransaction as b8, type OrderStats as b9, type RateManagerDetail as bA, type ManualRateUpdateEntity as bB, type OracleConfigUpdateEntity as bC, type DepositFundActivityEntity$1 as bD, type DepositDailySnapshotEntity$1 as bE, type DepositFundActivityType$1 as bF, type DepositFilter as bG, type PaginationOptions as bH, type DepositOrderField as bI, type OrderDirection$1 as bJ, type RateManagerFilter as bK, type RateManagerPaginationOptions as bL, type RateManagerDelegationPaginationOptions as bM, type RateManagerOrderField as bN, type OrderDirection as bO, type DeploymentEnv as bP, type FulfillmentRecord as bQ, type PaymentVerifiedRecord as bR, type FulfillmentAndPaymentResponse as bS, PAYMENT_PLATFORMS as bT, type PaymentPlatformType as bU, Currency as bV, currencyInfo as bW, getCurrencyInfoFromHash as bX, getCurrencyInfoFromCountryCode as bY, getCurrencyCodeFromHash as bZ, isSupportedCurrencyHash as b_, type DepositIntentStatistics as ba, type TakerTier as bb, type TakerTierStats as bc, type TakerTierLevel as bd, type PlatformLimit as be, type PlatformRiskLevel as bf, type OrderbookEntry as bg, IndexerClient as bh, defaultIndexerEndpoint as bi, IndexerDepositService as bj, IndexerRateManagerService as bk, compareEventCursorIdsByRecency as bl, fetchFulfillmentAndPayment as bm, type DepositEntity$1 as bn, type IntentFulfilledEntity as bo, type IntentFulfillmentAmountsEntity as bp, type DepositPaymentMethodEntity$1 as bq, type MethodCurrencyEntity$1 as br, type IntentStatus as bs, type RateManagerEntity as bt, type RateManagerRateEntity as bu, type RateManagerDelegationEntity as bv, type ManagerAggregateStatsEntity as bw, type ManagerStatsEntity as bx, type ManagerDailySnapshotEntity as by, type RateManagerListItem as bz, type BestByPlatformResponse as c, type CurrencyData as c0, getContracts as c1, getRateManagerContracts as c2, getPaymentMethodsCatalog as c3, getGatingServiceAddress as c4, type RuntimeEnv as c5, parseDepositView as c6, parseIntentView as c7, enrichPvDepositView as c8, enrichPvIntentView as c9, type PV_DepositView as ca, type PV_Deposit as cb, type PV_PaymentMethodData as cc, type PV_Currency as cd, type PV_ReferralFee as ce, type PV_IntentView as cf, type PV_Intent as cg, ZERO_RATE_MANAGER_ID as ch, isZeroRateManagerId as ci, normalizeRateManagerId as cj, normalizeRegistry as ck, getDelegationRoute as cl, classifyDelegationState as cm, type DelegationRoute as cn, type DelegationState as co, type DelegationDepositTarget as cp, type BatchResult as cq, type SendTransactionFn as cr, type SendBatchFn as cs, ZERO_ADDRESS as ct, asErrorMessage as cu, assertDelegationMethodSupport as cv, type ValidatePayeeDetailsResponse as d, type PostDepositDetailsResponse as e, type GetPayeeDetailsResponse as f, type GetOwnerDepositsRequest as g, type GetOwnerDepositsResponse as h, type GetTakerTierRequest as i, type GetTakerTierResponse as j, type GetDepositBundleParams as k, type ApiAdapterOptions as l, type GetDepositBundleResponse as m, type GetOrderbookParams as n, type GetOrderbookResponse as o, type CurrencyType as p, type PaymentMethodCatalog as q, type SignalIntentReferralFee as r, type SignalIntentMethodParams as s, type CancelIntentMethodParams as t, type Zkp2pNextOptions as u, type AuthorizationTokenProvider as v, type TimeoutConfig as w, type ActionCallback as x, type CreateDepositParams as y, type CreateDepositConversionRate as z };
3658
+ export { type GetBestByPlatformResponseObject as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type ConfirmPayPalForwardingResponse as C, type DepositWithRelations as D, type AuthorizationTokenProvider as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type TimeoutConfig as H, type IntentEntity$1 as I, type ActionCallback as J, type CreateDepositParams as K, type CreateDepositConversionRate as L, type Range as M, type SignalIntentParams as N, type FulfillIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type ReleaseFundsToPayerParams as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type CancelIntentParams as X, type BestByPlatformResponseObject as Y, Zkp2pClient as Z, type GetBestByPlatformResponse as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerCredentialProbeResponse as a$, type GetPlatformQuote as a0, type PlatformQuote as a1, type QuoteRequest as a2, type GetNearbyQuote as a3, type GetNearbySuggestions as a4, type GetQuoteResponse as a5, type GetQuoteResponseObject as a6, type GetQuoteSingleResponse as a7, type QuoteResponse as a8, type QuoteResponseObject as a9, type WiseProfileInfo as aA, type WiseProfileSelectionRequired as aB, type WiseProfileNotFound as aC, type PayPalSessionMaterial as aD, type PayPalGoogleOAuthSellerCredentialUploadBody as aE, type VenmoGoogleOAuthSellerCredentialUploadBody as aF, type VenmoCredentialUploadInput as aG, type CashAppCredentialUploadInput as aH, type WiseCredentialUploadInput as aI, type PayPalCredentialUploadInput as aJ, type SellerCredentialUploadInputByPlatform as aK, type SellerCiphertextBundle as aL, type SellerSignedCiphertextBundle as aM, type SellerVerifyIntentDetails as aN, type SellerVerifyInput as aO, type SellerProbeInput as aP, type SellerCredentialBundle as aQ, type SellerCredentialBundleUpload as aR, type SellerCredentialStatusValue as aS, type SellerCredentialStatus as aT, type SellerVerifyProxyBody as aU, type SellerTypedDataField as aV, type SellerTypedDataSpec as aW, type SellerPaymentTypedDataValue as aX, type SellerAttestationOutput as aY, type SellerCredentialProbeResponse as aZ, type AttestationServiceSellerVerifyResponse as a_, type QuoteSingleResponse as aa, type QuoteIntentResponse as ab, type QuoteFeesResponse as ac, type FiatResponse as ad, type TokenResponse as ae, type NearbyQuote as af, type NearbySuggestions as ag, type ApiDeposit as ah, type DepositVerifier as ai, type DepositVerifierCurrency as aj, type DepositStatus as ak, type GetDepositByIdRequest as al, type GetDepositByIdResponse as am, type Intent as an, type ApiIntentStatus as ao, type GetOwnerIntentsRequest as ap, type GetOwnerIntentsResponse as aq, type GetIntentsByDepositRequest as ar, type GetIntentsByDepositResponse as as, type GetIntentByHashRequest as at, type GetIntentByHashResponse as au, type RegisterPayeeDetailsRequest as av, type RegisterPayeeDetailsResponse as aw, type VenmoSessionMaterial as ax, type CashAppSessionMaterial as ay, type WiseSessionMaterial as az, type SellerPlatform as b, type OrderDirection as b$, type BuyerTeePaymentParams as b0, type BuyerTeePaymentProofInput as b1, type BuyerTeeSessionMaterial as b2, type CuratorSellerCredentialStatusResponse as b3, type CuratorSellerVerifyResponse as b4, type UploadSellerCredentialParams as b5, type RegisteredUploadSellerCredentialParams as b6, type UploadSellerCredentialOptions as b7, type GetSellerCredentialStatusParams as b8, type ConfirmPayPalForwardingRequest as b9, type DepositEntity$1 as bA, type IntentFulfilledEntity as bB, type IntentFulfillmentAmountsEntity as bC, type DepositPaymentMethodEntity$1 as bD, type MethodCurrencyEntity$1 as bE, type IntentStatus as bF, type RateManagerEntity as bG, type RateManagerRateEntity as bH, type RateManagerDelegationEntity as bI, type ManagerAggregateStatsEntity as bJ, type ManagerStatsEntity as bK, type ManagerDailySnapshotEntity as bL, type RateManagerListItem as bM, type RateManagerDetail as bN, type ManualRateUpdateEntity as bO, type OracleConfigUpdateEntity as bP, type DepositFundActivityEntity$1 as bQ, type DepositDailySnapshotEntity$1 as bR, type DepositFundActivityType$1 as bS, type DepositFilter as bT, type PaginationOptions as bU, type DepositOrderField as bV, type OrderDirection$1 as bW, type RateManagerFilter as bX, type RateManagerPaginationOptions as bY, type RateManagerDelegationPaginationOptions as bZ, type RateManagerOrderField as b_, type PayPalForwardingConfirmationErrorCode as ba, type UploadPayPalGoogleOAuthSellerCredentialParams as bb, type UploadVenmoGoogleOAuthSellerCredentialParams as bc, type UploadGoogleOAuthSellerCredentialParams as bd, type VerifySellerPaymentParams as be, type IdentityAttestationActionType as bf, type IdentityAttestationParams as bg, type MakerIdentityAttestationRequestBody as bh, type MakerIdentityPlatform as bi, type OnchainCurrency as bj, type DepositVerifierData as bk, type PreparedTransaction as bl, type OrderStats as bm, type DepositIntentStatistics as bn, type TakerTier as bo, type TakerTierStats as bp, type TakerTierLevel as bq, type PlatformLimit as br, type PlatformRiskLevel as bs, type OrderbookEntry as bt, IndexerClient as bu, defaultIndexerEndpoint as bv, IndexerDepositService as bw, IndexerRateManagerService as bx, compareEventCursorIdsByRecency as by, fetchFulfillmentAndPayment as bz, type SellerCredentialAttestationRuntime as c, type DeploymentEnv as c0, type FulfillmentRecord as c1, type PaymentVerifiedRecord as c2, type FulfillmentAndPaymentResponse as c3, PAYMENT_PLATFORMS as c4, type PaymentPlatformType as c5, Currency as c6, currencyInfo as c7, getCurrencyInfoFromHash as c8, getCurrencyInfoFromCountryCode as c9, type DelegationRoute as cA, type DelegationState as cB, type DelegationDepositTarget as cC, type BatchResult as cD, type SendTransactionFn as cE, type SendBatchFn as cF, ZERO_ADDRESS as cG, asErrorMessage as cH, assertDelegationMethodSupport as cI, getCurrencyCodeFromHash as ca, isSupportedCurrencyHash as cb, mapConversionRatesToOnchainMinRate as cc, type CurrencyData as cd, getContracts as ce, getRateManagerContracts as cf, getPaymentMethodsCatalog as cg, getGatingServiceAddress as ch, type RuntimeEnv as ci, parseDepositView as cj, parseIntentView as ck, enrichPvDepositView as cl, enrichPvIntentView as cm, type PV_DepositView as cn, type PV_Deposit as co, type PV_PaymentMethodData as cp, type PV_Currency as cq, type PV_ReferralFee as cr, type PV_IntentView as cs, type PV_Intent as ct, ZERO_RATE_MANAGER_ID as cu, isZeroRateManagerId as cv, normalizeRateManagerId as cw, normalizeRegistry as cx, getDelegationRoute as cy, classifyDelegationState as cz, type AttestationServiceSellerCredentialUploadResponse as d, type GoogleOAuthSellerCredentialUploadBodyByPlatform as e, type CuratorSellerCredentialUploadResponse as f, type BestByPlatformResponse as g, type ValidatePayeeDetailsResponse as h, type PostDepositDetailsResponse as i, type GetPayeeDetailsRequest as j, type GetPayeeDetailsResponse as k, type GetOwnerDepositsRequest as l, type GetOwnerDepositsResponse as m, type GetTakerTierRequest as n, type GetTakerTierResponse as o, type GetDepositBundleParams as p, type ApiAdapterOptions as q, type GetDepositBundleResponse as r, type GetOrderbookParams as s, type GetOrderbookResponse as t, type CurrencyType as u, type PaymentMethodCatalog as v, type SignalIntentReferralFee as w, type SignalIntentMethodParams as x, type CancelIntentMethodParams as y, type Zkp2pNextOptions as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/sdk",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
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
  },