@zkp2p/sdk 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.d.mts CHANGED
@@ -1,5 +1,5 @@
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, 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';
3
3
  import { Hash, Address, Hex } from 'viem';
4
4
  import '@zkp2p/indexer-schema';
5
5
  import 'abitype';
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
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, 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';
3
3
  import { Hash, Address, Hex } from 'viem';
4
4
  import '@zkp2p/indexer-schema';
5
5
  import 'abitype';
@@ -1132,6 +1132,21 @@ type PayPalSessionMaterial = {
1132
1132
  forwardingBaseMailbox: string;
1133
1133
  forwardingMailboxAlias: string;
1134
1134
  };
1135
+ type GoogleOAuthSellerCredentialPlatform = Extract<SellerPlatform, 'paypal' | 'venmo'>;
1136
+ type PayPalGoogleOAuthSellerCredentialUploadBody = {
1137
+ payeeEmail: string;
1138
+ authorizationCode: string;
1139
+ redirectUri: string;
1140
+ };
1141
+ type VenmoGoogleOAuthSellerCredentialUploadBody = {
1142
+ accountId: string;
1143
+ authorizationCode: string;
1144
+ redirectUri: string;
1145
+ };
1146
+ type GoogleOAuthSellerCredentialUploadBodyByPlatform = {
1147
+ paypal: PayPalGoogleOAuthSellerCredentialUploadBody;
1148
+ venmo: VenmoGoogleOAuthSellerCredentialUploadBody;
1149
+ };
1135
1150
  type VenmoCredentialUploadInput = {
1136
1151
  payeeId: string;
1137
1152
  sessionMaterial: VenmoSessionMaterial;
@@ -1209,6 +1224,8 @@ type BuyerTeePaymentProofInput = {
1209
1224
  proofType: 'buyerTee';
1210
1225
  encryptedSessionMaterial: string;
1211
1226
  params: BuyerTeePaymentParams;
1227
+ actionType?: string;
1228
+ actionPlatform?: string;
1212
1229
  };
1213
1230
  type BuyerTeeSessionMaterial = Record<string, string>;
1214
1231
  type BuyerTeeSessionMaterialEncryptionInput = {
@@ -1329,6 +1346,20 @@ type ConfirmPayPalForwardingResponse = {
1329
1346
  responseObject: ConfirmPayPalForwardingStatus;
1330
1347
  statusCode: number;
1331
1348
  };
1349
+ type GoogleOAuthSellerCredentialBaseParams = {
1350
+ authorizationCode: string;
1351
+ payeeDetails: Hash;
1352
+ redirectUri: string;
1353
+ };
1354
+ type UploadPayPalGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialBaseParams & {
1355
+ platform: 'paypal';
1356
+ payeeEmail: string;
1357
+ };
1358
+ type UploadVenmoGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialBaseParams & {
1359
+ platform: 'venmo';
1360
+ accountId: string;
1361
+ };
1362
+ type UploadGoogleOAuthSellerCredentialParams = UploadPayPalGoogleOAuthSellerCredentialParams | UploadVenmoGoogleOAuthSellerCredentialParams;
1332
1363
  type VerifySellerPaymentParams = {
1333
1364
  platform: SellerPlatform;
1334
1365
  } & SellerVerifyProxyBody;
@@ -3409,6 +3440,16 @@ declare class Zkp2pClient {
3409
3440
  baseApiUrl?: string;
3410
3441
  timeoutMs?: number;
3411
3442
  }): Promise<ConfirmPayPalForwardingResponse>;
3443
+ /**
3444
+ * Upload a seller Gmail OAuth authorization code through curator.
3445
+ *
3446
+ * Curator owns the encryption hop to attestation-service for this flow, so
3447
+ * callers send the one-time Google code plus the stable seller identity.
3448
+ */
3449
+ uploadGoogleOAuthSellerCredential(params: UploadGoogleOAuthSellerCredentialParams, opts?: {
3450
+ baseApiUrl?: string;
3451
+ timeoutMs?: number;
3452
+ }): Promise<CuratorSellerCredentialUploadResponse>;
3412
3453
  /**
3413
3454
  * Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
3414
3455
  * omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
@@ -3595,4 +3636,4 @@ type SendBatchFn = (txs: Array<{
3595
3636
  value?: bigint;
3596
3637
  }>) => Promise<string>;
3597
3638
 
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 };
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 };
@@ -1132,6 +1132,21 @@ type PayPalSessionMaterial = {
1132
1132
  forwardingBaseMailbox: string;
1133
1133
  forwardingMailboxAlias: string;
1134
1134
  };
1135
+ type GoogleOAuthSellerCredentialPlatform = Extract<SellerPlatform, 'paypal' | 'venmo'>;
1136
+ type PayPalGoogleOAuthSellerCredentialUploadBody = {
1137
+ payeeEmail: string;
1138
+ authorizationCode: string;
1139
+ redirectUri: string;
1140
+ };
1141
+ type VenmoGoogleOAuthSellerCredentialUploadBody = {
1142
+ accountId: string;
1143
+ authorizationCode: string;
1144
+ redirectUri: string;
1145
+ };
1146
+ type GoogleOAuthSellerCredentialUploadBodyByPlatform = {
1147
+ paypal: PayPalGoogleOAuthSellerCredentialUploadBody;
1148
+ venmo: VenmoGoogleOAuthSellerCredentialUploadBody;
1149
+ };
1135
1150
  type VenmoCredentialUploadInput = {
1136
1151
  payeeId: string;
1137
1152
  sessionMaterial: VenmoSessionMaterial;
@@ -1209,6 +1224,8 @@ type BuyerTeePaymentProofInput = {
1209
1224
  proofType: 'buyerTee';
1210
1225
  encryptedSessionMaterial: string;
1211
1226
  params: BuyerTeePaymentParams;
1227
+ actionType?: string;
1228
+ actionPlatform?: string;
1212
1229
  };
1213
1230
  type BuyerTeeSessionMaterial = Record<string, string>;
1214
1231
  type BuyerTeeSessionMaterialEncryptionInput = {
@@ -1329,6 +1346,20 @@ type ConfirmPayPalForwardingResponse = {
1329
1346
  responseObject: ConfirmPayPalForwardingStatus;
1330
1347
  statusCode: number;
1331
1348
  };
1349
+ type GoogleOAuthSellerCredentialBaseParams = {
1350
+ authorizationCode: string;
1351
+ payeeDetails: Hash;
1352
+ redirectUri: string;
1353
+ };
1354
+ type UploadPayPalGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialBaseParams & {
1355
+ platform: 'paypal';
1356
+ payeeEmail: string;
1357
+ };
1358
+ type UploadVenmoGoogleOAuthSellerCredentialParams = GoogleOAuthSellerCredentialBaseParams & {
1359
+ platform: 'venmo';
1360
+ accountId: string;
1361
+ };
1362
+ type UploadGoogleOAuthSellerCredentialParams = UploadPayPalGoogleOAuthSellerCredentialParams | UploadVenmoGoogleOAuthSellerCredentialParams;
1332
1363
  type VerifySellerPaymentParams = {
1333
1364
  platform: SellerPlatform;
1334
1365
  } & SellerVerifyProxyBody;
@@ -3409,6 +3440,16 @@ declare class Zkp2pClient {
3409
3440
  baseApiUrl?: string;
3410
3441
  timeoutMs?: number;
3411
3442
  }): Promise<ConfirmPayPalForwardingResponse>;
3443
+ /**
3444
+ * Upload a seller Gmail OAuth authorization code through curator.
3445
+ *
3446
+ * Curator owns the encryption hop to attestation-service for this flow, so
3447
+ * callers send the one-time Google code plus the stable seller identity.
3448
+ */
3449
+ uploadGoogleOAuthSellerCredential(params: UploadGoogleOAuthSellerCredentialParams, opts?: {
3450
+ baseApiUrl?: string;
3451
+ timeoutMs?: number;
3452
+ }): Promise<CuratorSellerCredentialUploadResponse>;
3412
3453
  /**
3413
3454
  * Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
3414
3455
  * omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
@@ -3595,4 +3636,4 @@ type SendBatchFn = (txs: Array<{
3595
3636
  value?: bigint;
3596
3637
  }>) => Promise<string>;
3597
3638
 
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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/sdk",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
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",