@zkp2p/sdk 0.4.0-rc.3 → 0.4.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,5 +1,5 @@
1
- import { Z as Zkp2pClient, P as PostDepositDetailsRequest, q as SignalIntentMethodParams, aX as PreparedTransaction, a_ as TakerTier, h as GetTakerTierRequest, i as GetTakerTierResponse, F as FulfillIntentMethodParams, ce as SendTransactionFn, cf as SendBatchFn, cc as DelegationDepositTarget, cd as BatchResult } from './vaultUtils-CSwo6wIa.mjs';
2
- export { ca as DelegationRoute, cb as DelegationState, cg as VAULT_ZERO_ADDRESS, c4 as ZERO_RATE_MANAGER_ID, ch as asErrorMessage, ci as assertDelegationMethodSupport, c9 as classifyDelegationState, c8 as getDelegationRoute, c5 as isZeroRateManagerId, c6 as normalizeRateManagerId, c7 as normalizeRegistry } from './vaultUtils-CSwo6wIa.mjs';
1
+ import { Z as Zkp2pClient, P as PostDepositDetailsRequest, q as SignalIntentMethodParams, b1 as PreparedTransaction, b4 as TakerTier, h as GetTakerTierRequest, i as GetTakerTierResponse, F as FulfillIntentMethodParams, ck as SendTransactionFn, cl as SendBatchFn, ci as DelegationDepositTarget, cj as BatchResult } from './vaultUtils-CyPf4QGT.mjs';
2
+ export { cg as DelegationRoute, ch as DelegationState, cm as VAULT_ZERO_ADDRESS, ca as ZERO_RATE_MANAGER_ID, cn as asErrorMessage, co as assertDelegationMethodSupport, cf as classifyDelegationState, ce as getDelegationRoute, cb as isZeroRateManagerId, cc as normalizeRateManagerId, cd as normalizeRegistry } from './vaultUtils-CyPf4QGT.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, q as SignalIntentMethodParams, aX as PreparedTransaction, a_ as TakerTier, h as GetTakerTierRequest, i as GetTakerTierResponse, F as FulfillIntentMethodParams, ce as SendTransactionFn, cf as SendBatchFn, cc as DelegationDepositTarget, cd as BatchResult } from './vaultUtils-CSwo6wIa.js';
2
- export { ca as DelegationRoute, cb as DelegationState, cg as VAULT_ZERO_ADDRESS, c4 as ZERO_RATE_MANAGER_ID, ch as asErrorMessage, ci as assertDelegationMethodSupport, c9 as classifyDelegationState, c8 as getDelegationRoute, c5 as isZeroRateManagerId, c6 as normalizeRateManagerId, c7 as normalizeRegistry } from './vaultUtils-CSwo6wIa.js';
1
+ import { Z as Zkp2pClient, P as PostDepositDetailsRequest, q as SignalIntentMethodParams, b1 as PreparedTransaction, b4 as TakerTier, h as GetTakerTierRequest, i as GetTakerTierResponse, F as FulfillIntentMethodParams, ck as SendTransactionFn, cl as SendBatchFn, ci as DelegationDepositTarget, cj as BatchResult } from './vaultUtils-CyPf4QGT.js';
2
+ export { cg as DelegationRoute, ch as DelegationState, cm as VAULT_ZERO_ADDRESS, ca as ZERO_RATE_MANAGER_ID, cn as asErrorMessage, co as assertDelegationMethodSupport, cf as classifyDelegationState, ce as getDelegationRoute, cb as isZeroRateManagerId, cc as normalizeRateManagerId, cd as normalizeRegistry } from './vaultUtils-CyPf4QGT.js';
3
3
  import { Hash, Address, Hex } from 'viem';
4
4
  import '@zkp2p/indexer-schema';
5
5
  import 'abitype';
@@ -1090,7 +1090,7 @@ type PostDepositDetailsResponse = {
1090
1090
  */
1091
1091
  type RegisterPayeeDetailsRequest = PostDepositDetailsRequest;
1092
1092
  type RegisterPayeeDetailsResponse = PostDepositDetailsResponse;
1093
- type SellerPlatform = 'venmo' | 'cashapp' | 'wise';
1093
+ type SellerPlatform = 'venmo' | 'cashapp' | 'wise' | 'paypal';
1094
1094
  type VenmoSessionMaterial = {
1095
1095
  recipientUsername: string;
1096
1096
  accountId: string;
@@ -1106,9 +1106,26 @@ type CashAppSessionMaterial = {
1106
1106
  };
1107
1107
  type WiseSessionMaterial = {
1108
1108
  apiToken: string;
1109
+ profileId?: string;
1110
+ };
1111
+ type WiseProfileInfo = {
1112
+ profileId: number | string;
1113
+ type: string;
1114
+ name?: string;
1115
+ currentState?: string;
1116
+ };
1117
+ type WiseProfileSelectionRequired = {
1118
+ code: 'WISE_PROFILE_SELECTION_REQUIRED';
1119
+ profiles: WiseProfileInfo[];
1120
+ };
1121
+ type WiseProfileNotFound = {
1122
+ code: 'WISE_PROFILE_NOT_FOUND';
1109
1123
  profileId: string;
1110
- balanceId: string;
1111
- currency: string;
1124
+ profiles: WiseProfileInfo[];
1125
+ };
1126
+ type PayPalSessionMaterial = {
1127
+ payeeEmail: string;
1128
+ forwardingMailboxAddress: string;
1112
1129
  };
1113
1130
  type VenmoCredentialUploadInput = {
1114
1131
  payeeId: string;
@@ -1119,13 +1136,17 @@ type CashAppCredentialUploadInput = {
1119
1136
  sessionMaterial: CashAppSessionMaterial;
1120
1137
  };
1121
1138
  type WiseCredentialUploadInput = {
1122
- payeeId: string;
1123
1139
  sessionMaterial: WiseSessionMaterial;
1124
1140
  };
1141
+ type PayPalCredentialUploadInput = {
1142
+ payeeId: string;
1143
+ sessionMaterial: PayPalSessionMaterial;
1144
+ };
1125
1145
  type SellerCredentialUploadInputByPlatform = {
1126
1146
  venmo: VenmoCredentialUploadInput;
1127
1147
  cashapp: CashAppCredentialUploadInput;
1128
1148
  wise: WiseCredentialUploadInput;
1149
+ paypal: PayPalCredentialUploadInput;
1129
1150
  };
1130
1151
  type SellerCredentialUploadInput = SellerCredentialUploadInputByPlatform[SellerPlatform];
1131
1152
  type SellerCiphertextBundle = {
@@ -1176,6 +1197,7 @@ type SellerVerifyProxyBody = {
1176
1197
  txId: string;
1177
1198
  chainId: number;
1178
1199
  intent: SellerVerifyIntentDetails;
1200
+ metadata?: Record<string, unknown>;
1179
1201
  };
1180
1202
  type SellerTypedDataField = {
1181
1203
  name: string;
@@ -1243,12 +1265,25 @@ type CuratorSellerVerifyResponse = {
1243
1265
  responseObject: SellerAttestationOutput;
1244
1266
  statusCode: number;
1245
1267
  };
1246
- type UploadSellerCredentialParams = {
1247
- [P in SellerPlatform]: {
1248
- makerId: number;
1268
+ type RegisteredSellerCredentialPlatform = Exclude<SellerPlatform, 'wise'>;
1269
+ type UploadSellerCredentialParams = ({
1270
+ platform: 'wise';
1271
+ } & WiseCredentialUploadInput) | {
1272
+ [P in RegisteredSellerCredentialPlatform]: {
1273
+ offchainId: string;
1274
+ telegramUsername?: string | null;
1275
+ metadata?: Record<string, string> | null;
1249
1276
  platform: P;
1250
1277
  } & SellerCredentialUploadInputByPlatform[P];
1251
- }[SellerPlatform];
1278
+ }[RegisteredSellerCredentialPlatform];
1279
+ type RegisteredUploadSellerCredentialParams = {
1280
+ [P in RegisteredSellerCredentialPlatform]: {
1281
+ offchainId: string;
1282
+ telegramUsername?: string | null;
1283
+ metadata?: Record<string, string> | null;
1284
+ platform: P;
1285
+ } & SellerCredentialUploadInputByPlatform[P];
1286
+ }[RegisteredSellerCredentialPlatform];
1252
1287
  type UploadSellerCredentialOptions = {
1253
1288
  baseApiUrl?: string;
1254
1289
  attestationServiceUrl?: string;
@@ -3319,9 +3354,10 @@ declare class Zkp2pClient {
3319
3354
  * seller-automated-release availability is governed by curator's probe/revalidation state
3320
3355
  * rather than these timestamps.
3321
3356
  *
3322
- * Curator accepts either a configured API key or bearer token for this endpoint.
3323
- *
3324
- * Create a signed seller credential bundle with attestation-service and store it on the maker via curator.
3357
+ * Create a signed seller credential bundle with attestation-service and store it via
3358
+ * curator's platform plus hashed payee-details route. Session-cookie platforms register
3359
+ * or recover the payee maker row before upload; Wise derives the payee hash inside the enclave
3360
+ * from the submitted Personal API Token.
3325
3361
  */
3326
3362
  uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
3327
3363
  /**
@@ -3510,4 +3546,4 @@ type SendBatchFn = (txs: Array<{
3510
3546
  value?: bigint;
3511
3547
  }>) => Promise<string>;
3512
3548
 
3513
- export { type GetQuoteResponseObject as $, type AttestationServiceSellerCredentialUploadResponse as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type FulfillIntentParams as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type ReleaseFundsToPayerParams as H, type IntentEntity$1 as I, type CancelIntentParams as J, type BestByPlatformResponseObject as K, type GetBestByPlatformResponse as L, type GetBestByPlatformResponseObject as M, type GetPlatformQuote as N, type PlatformQuote as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type QuoteRequest as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetNearbyQuote as X, type GetNearbySuggestions as Y, Zkp2pClient as Z, type GetQuoteResponse as _, type SellerPlatform as a, type TakerTierStats as a$, type GetQuoteSingleResponse as a0, type QuoteResponse as a1, type QuoteResponseObject as a2, type QuoteSingleResponse as a3, type QuoteIntentResponse as a4, type QuoteFeesResponse as a5, type FiatResponse as a6, type TokenResponse as a7, type NearbyQuote as a8, type NearbySuggestions as a9, type SellerVerifyInput as aA, type SellerProbeInput as aB, type SellerCredentialBundle as aC, type SellerCredentialBundleUpload as aD, type SellerCredentialStatusValue as aE, type SellerCredentialStatus as aF, type SellerVerifyProxyBody as aG, type SellerTypedDataField as aH, type SellerTypedDataSpec as aI, type SellerPaymentTypedDataValue as aJ, type SellerAttestationOutput as aK, type SellerCredentialProbeResponse as aL, type AttestationServiceSellerVerifyResponse as aM, type AttestationServiceSellerCredentialProbeResponse as aN, type CuratorSellerCredentialUploadResponse as aO, type CuratorSellerCredentialStatusResponse as aP, type CuratorSellerVerifyResponse as aQ, type UploadSellerCredentialParams as aR, type UploadSellerCredentialOptions as aS, type GetSellerCredentialStatusParams as aT, type VerifySellerPaymentParams as aU, type OnchainCurrency as aV, type DepositVerifierData as aW, type PreparedTransaction as aX, type OrderStats as aY, type DepositIntentStatistics as aZ, type TakerTier as a_, type ApiDeposit as aa, type DepositVerifier as ab, type DepositVerifierCurrency as ac, type DepositStatus as ad, type GetDepositByIdRequest as ae, type GetDepositByIdResponse as af, type Intent as ag, type ApiIntentStatus as ah, type GetOwnerIntentsRequest as ai, type GetOwnerIntentsResponse as aj, type GetIntentsByDepositRequest as ak, type GetIntentsByDepositResponse as al, type GetIntentByHashRequest as am, type GetIntentByHashResponse as an, type RegisterPayeeDetailsRequest as ao, type RegisterPayeeDetailsResponse as ap, type VenmoSessionMaterial as aq, type CashAppSessionMaterial as ar, type WiseSessionMaterial as as, type VenmoCredentialUploadInput as at, type CashAppCredentialUploadInput as au, type WiseCredentialUploadInput as av, type SellerCredentialUploadInputByPlatform as aw, type SellerCiphertextBundle as ax, type SellerSignedCiphertextBundle as ay, type SellerVerifyIntentDetails as az, type SellerCredentialAttestationRuntime as b, type PV_PaymentMethodData as b$, type TakerTierLevel as b0, type PlatformLimit as b1, type PlatformRiskLevel as b2, type OrderbookEntry as b3, IndexerClient as b4, defaultIndexerEndpoint as b5, IndexerDepositService as b6, IndexerRateManagerService as b7, compareEventCursorIdsByRecency as b8, fetchFulfillmentAndPayment as b9, type RateManagerOrderField as bA, type OrderDirection as bB, type DeploymentEnv as bC, type FulfillmentRecord as bD, type PaymentVerifiedRecord as bE, type FulfillmentAndPaymentResponse as bF, PAYMENT_PLATFORMS as bG, type PaymentPlatformType as bH, Currency as bI, currencyInfo as bJ, getCurrencyInfoFromHash as bK, getCurrencyInfoFromCountryCode as bL, getCurrencyCodeFromHash as bM, isSupportedCurrencyHash as bN, mapConversionRatesToOnchainMinRate as bO, type CurrencyData as bP, getContracts as bQ, getRateManagerContracts as bR, getPaymentMethodsCatalog as bS, getGatingServiceAddress as bT, type RuntimeEnv as bU, parseDepositView as bV, parseIntentView as bW, enrichPvDepositView as bX, enrichPvIntentView as bY, type PV_DepositView as bZ, type PV_Deposit as b_, 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 ValidatePayeeDetailsResponse as c, type PV_Currency as c0, type PV_ReferralFee as c1, type PV_IntentView as c2, type PV_Intent as c3, ZERO_RATE_MANAGER_ID as c4, isZeroRateManagerId as c5, normalizeRateManagerId as c6, normalizeRegistry as c7, getDelegationRoute as c8, classifyDelegationState 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, type PostDepositDetailsResponse as d, type GetPayeeDetailsResponse as e, type GetOwnerDepositsRequest as f, type GetOwnerDepositsResponse as g, type GetTakerTierRequest as h, type GetTakerTierResponse as i, type GetDepositBundleParams as j, type ApiAdapterOptions as k, type GetDepositBundleResponse as l, type GetOrderbookParams as m, type GetOrderbookResponse as n, type PaymentMethodCatalog as o, type SignalIntentReferralFee as p, type SignalIntentMethodParams as q, type CancelIntentMethodParams as r, type Zkp2pNextOptions as s, type AuthorizationTokenProvider as t, type TimeoutConfig as u, type ActionCallback as v, type CreateDepositParams as w, type CreateDepositConversionRate as x, type Range as y, type SignalIntentParams as z };
3549
+ export { type GetQuoteResponseObject as $, type AttestationServiceSellerCredentialUploadResponse as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type FulfillIntentParams as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type ReleaseFundsToPayerParams as H, type IntentEntity$1 as I, type CancelIntentParams as J, type BestByPlatformResponseObject as K, type GetBestByPlatformResponse as L, type GetBestByPlatformResponseObject as M, type GetPlatformQuote as N, type PlatformQuote as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type QuoteRequest as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetNearbyQuote as X, type GetNearbySuggestions as Y, Zkp2pClient as Z, type GetQuoteResponse as _, type SellerPlatform as a, type OnchainCurrency as a$, type GetQuoteSingleResponse as a0, type QuoteResponse as a1, type QuoteResponseObject as a2, type QuoteSingleResponse as a3, type QuoteIntentResponse as a4, type QuoteFeesResponse as a5, type FiatResponse as a6, type TokenResponse as a7, type NearbyQuote as a8, type NearbySuggestions as a9, type PayPalCredentialUploadInput as aA, type SellerCredentialUploadInputByPlatform as aB, type SellerCiphertextBundle as aC, type SellerSignedCiphertextBundle as aD, type SellerVerifyIntentDetails as aE, type SellerVerifyInput as aF, type SellerProbeInput as aG, type SellerCredentialBundle as aH, type SellerCredentialBundleUpload as aI, type SellerCredentialStatusValue as aJ, type SellerCredentialStatus as aK, type SellerVerifyProxyBody as aL, type SellerTypedDataField as aM, type SellerTypedDataSpec as aN, type SellerPaymentTypedDataValue as aO, type SellerAttestationOutput as aP, type SellerCredentialProbeResponse as aQ, type AttestationServiceSellerVerifyResponse as aR, type AttestationServiceSellerCredentialProbeResponse as aS, type CuratorSellerCredentialUploadResponse as aT, type CuratorSellerCredentialStatusResponse as aU, type CuratorSellerVerifyResponse as aV, type UploadSellerCredentialParams as aW, type RegisteredUploadSellerCredentialParams as aX, type UploadSellerCredentialOptions as aY, type GetSellerCredentialStatusParams as aZ, type VerifySellerPaymentParams as a_, type ApiDeposit as aa, type DepositVerifier as ab, type DepositVerifierCurrency as ac, type DepositStatus as ad, type GetDepositByIdRequest as ae, type GetDepositByIdResponse as af, type Intent as ag, type ApiIntentStatus as ah, type GetOwnerIntentsRequest as ai, type GetOwnerIntentsResponse as aj, type GetIntentsByDepositRequest as ak, type GetIntentsByDepositResponse as al, type GetIntentByHashRequest as am, type GetIntentByHashResponse as an, type RegisterPayeeDetailsRequest as ao, type RegisterPayeeDetailsResponse as ap, type VenmoSessionMaterial as aq, type CashAppSessionMaterial as ar, type WiseSessionMaterial as as, type WiseProfileInfo as at, type WiseProfileSelectionRequired as au, type WiseProfileNotFound as av, type PayPalSessionMaterial as aw, type VenmoCredentialUploadInput as ax, type CashAppCredentialUploadInput as ay, type WiseCredentialUploadInput as az, type SellerCredentialAttestationRuntime as b, parseDepositView as b$, type DepositVerifierData as b0, type PreparedTransaction as b1, type OrderStats as b2, type DepositIntentStatistics as b3, type TakerTier as b4, type TakerTierStats as b5, type TakerTierLevel as b6, type PlatformLimit as b7, type PlatformRiskLevel as b8, type OrderbookEntry as b9, type PaginationOptions as bA, type DepositOrderField as bB, type OrderDirection$1 as bC, type RateManagerFilter as bD, type RateManagerPaginationOptions as bE, type RateManagerDelegationPaginationOptions as bF, type RateManagerOrderField as bG, type OrderDirection as bH, type DeploymentEnv as bI, type FulfillmentRecord as bJ, type PaymentVerifiedRecord as bK, type FulfillmentAndPaymentResponse as bL, PAYMENT_PLATFORMS as bM, type PaymentPlatformType as bN, Currency as bO, currencyInfo as bP, getCurrencyInfoFromHash as bQ, getCurrencyInfoFromCountryCode as bR, getCurrencyCodeFromHash as bS, isSupportedCurrencyHash as bT, mapConversionRatesToOnchainMinRate as bU, type CurrencyData as bV, getContracts as bW, getRateManagerContracts as bX, getPaymentMethodsCatalog as bY, getGatingServiceAddress as bZ, type RuntimeEnv as b_, IndexerClient as ba, defaultIndexerEndpoint as bb, IndexerDepositService as bc, IndexerRateManagerService as bd, compareEventCursorIdsByRecency as be, fetchFulfillmentAndPayment as bf, type DepositEntity$1 as bg, type IntentFulfilledEntity as bh, type IntentFulfillmentAmountsEntity as bi, type DepositPaymentMethodEntity$1 as bj, type MethodCurrencyEntity$1 as bk, type IntentStatus as bl, type RateManagerEntity as bm, type RateManagerRateEntity as bn, type RateManagerDelegationEntity as bo, type ManagerAggregateStatsEntity as bp, type ManagerStatsEntity as bq, type ManagerDailySnapshotEntity as br, type RateManagerListItem as bs, type RateManagerDetail as bt, type ManualRateUpdateEntity as bu, type OracleConfigUpdateEntity as bv, type DepositFundActivityEntity$1 as bw, type DepositDailySnapshotEntity$1 as bx, type DepositFundActivityType$1 as by, type DepositFilter as bz, type ValidatePayeeDetailsResponse as c, parseIntentView as c0, enrichPvDepositView as c1, enrichPvIntentView as c2, type PV_DepositView as c3, type PV_Deposit as c4, type PV_PaymentMethodData as c5, type PV_Currency as c6, type PV_ReferralFee as c7, type PV_IntentView as c8, type PV_Intent as c9, ZERO_RATE_MANAGER_ID as ca, isZeroRateManagerId as cb, normalizeRateManagerId as cc, normalizeRegistry as cd, getDelegationRoute as ce, classifyDelegationState as cf, type DelegationRoute as cg, type DelegationState as ch, type DelegationDepositTarget as ci, type BatchResult as cj, type SendTransactionFn as ck, type SendBatchFn as cl, ZERO_ADDRESS as cm, asErrorMessage as cn, assertDelegationMethodSupport as co, type PostDepositDetailsResponse as d, type GetPayeeDetailsResponse as e, type GetOwnerDepositsRequest as f, type GetOwnerDepositsResponse as g, type GetTakerTierRequest as h, type GetTakerTierResponse as i, type GetDepositBundleParams as j, type ApiAdapterOptions as k, type GetDepositBundleResponse as l, type GetOrderbookParams as m, type GetOrderbookResponse as n, type PaymentMethodCatalog as o, type SignalIntentReferralFee as p, type SignalIntentMethodParams as q, type CancelIntentMethodParams as r, type Zkp2pNextOptions as s, type AuthorizationTokenProvider as t, type TimeoutConfig as u, type ActionCallback as v, type CreateDepositParams as w, type CreateDepositConversionRate as x, type Range as y, type SignalIntentParams as z };
@@ -1090,7 +1090,7 @@ type PostDepositDetailsResponse = {
1090
1090
  */
1091
1091
  type RegisterPayeeDetailsRequest = PostDepositDetailsRequest;
1092
1092
  type RegisterPayeeDetailsResponse = PostDepositDetailsResponse;
1093
- type SellerPlatform = 'venmo' | 'cashapp' | 'wise';
1093
+ type SellerPlatform = 'venmo' | 'cashapp' | 'wise' | 'paypal';
1094
1094
  type VenmoSessionMaterial = {
1095
1095
  recipientUsername: string;
1096
1096
  accountId: string;
@@ -1106,9 +1106,26 @@ type CashAppSessionMaterial = {
1106
1106
  };
1107
1107
  type WiseSessionMaterial = {
1108
1108
  apiToken: string;
1109
+ profileId?: string;
1110
+ };
1111
+ type WiseProfileInfo = {
1112
+ profileId: number | string;
1113
+ type: string;
1114
+ name?: string;
1115
+ currentState?: string;
1116
+ };
1117
+ type WiseProfileSelectionRequired = {
1118
+ code: 'WISE_PROFILE_SELECTION_REQUIRED';
1119
+ profiles: WiseProfileInfo[];
1120
+ };
1121
+ type WiseProfileNotFound = {
1122
+ code: 'WISE_PROFILE_NOT_FOUND';
1109
1123
  profileId: string;
1110
- balanceId: string;
1111
- currency: string;
1124
+ profiles: WiseProfileInfo[];
1125
+ };
1126
+ type PayPalSessionMaterial = {
1127
+ payeeEmail: string;
1128
+ forwardingMailboxAddress: string;
1112
1129
  };
1113
1130
  type VenmoCredentialUploadInput = {
1114
1131
  payeeId: string;
@@ -1119,13 +1136,17 @@ type CashAppCredentialUploadInput = {
1119
1136
  sessionMaterial: CashAppSessionMaterial;
1120
1137
  };
1121
1138
  type WiseCredentialUploadInput = {
1122
- payeeId: string;
1123
1139
  sessionMaterial: WiseSessionMaterial;
1124
1140
  };
1141
+ type PayPalCredentialUploadInput = {
1142
+ payeeId: string;
1143
+ sessionMaterial: PayPalSessionMaterial;
1144
+ };
1125
1145
  type SellerCredentialUploadInputByPlatform = {
1126
1146
  venmo: VenmoCredentialUploadInput;
1127
1147
  cashapp: CashAppCredentialUploadInput;
1128
1148
  wise: WiseCredentialUploadInput;
1149
+ paypal: PayPalCredentialUploadInput;
1129
1150
  };
1130
1151
  type SellerCredentialUploadInput = SellerCredentialUploadInputByPlatform[SellerPlatform];
1131
1152
  type SellerCiphertextBundle = {
@@ -1176,6 +1197,7 @@ type SellerVerifyProxyBody = {
1176
1197
  txId: string;
1177
1198
  chainId: number;
1178
1199
  intent: SellerVerifyIntentDetails;
1200
+ metadata?: Record<string, unknown>;
1179
1201
  };
1180
1202
  type SellerTypedDataField = {
1181
1203
  name: string;
@@ -1243,12 +1265,25 @@ type CuratorSellerVerifyResponse = {
1243
1265
  responseObject: SellerAttestationOutput;
1244
1266
  statusCode: number;
1245
1267
  };
1246
- type UploadSellerCredentialParams = {
1247
- [P in SellerPlatform]: {
1248
- makerId: number;
1268
+ type RegisteredSellerCredentialPlatform = Exclude<SellerPlatform, 'wise'>;
1269
+ type UploadSellerCredentialParams = ({
1270
+ platform: 'wise';
1271
+ } & WiseCredentialUploadInput) | {
1272
+ [P in RegisteredSellerCredentialPlatform]: {
1273
+ offchainId: string;
1274
+ telegramUsername?: string | null;
1275
+ metadata?: Record<string, string> | null;
1249
1276
  platform: P;
1250
1277
  } & SellerCredentialUploadInputByPlatform[P];
1251
- }[SellerPlatform];
1278
+ }[RegisteredSellerCredentialPlatform];
1279
+ type RegisteredUploadSellerCredentialParams = {
1280
+ [P in RegisteredSellerCredentialPlatform]: {
1281
+ offchainId: string;
1282
+ telegramUsername?: string | null;
1283
+ metadata?: Record<string, string> | null;
1284
+ platform: P;
1285
+ } & SellerCredentialUploadInputByPlatform[P];
1286
+ }[RegisteredSellerCredentialPlatform];
1252
1287
  type UploadSellerCredentialOptions = {
1253
1288
  baseApiUrl?: string;
1254
1289
  attestationServiceUrl?: string;
@@ -3319,9 +3354,10 @@ declare class Zkp2pClient {
3319
3354
  * seller-automated-release availability is governed by curator's probe/revalidation state
3320
3355
  * rather than these timestamps.
3321
3356
  *
3322
- * Curator accepts either a configured API key or bearer token for this endpoint.
3323
- *
3324
- * Create a signed seller credential bundle with attestation-service and store it on the maker via curator.
3357
+ * Create a signed seller credential bundle with attestation-service and store it via
3358
+ * curator's platform plus hashed payee-details route. Session-cookie platforms register
3359
+ * or recover the payee maker row before upload; Wise derives the payee hash inside the enclave
3360
+ * from the submitted Personal API Token.
3325
3361
  */
3326
3362
  uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
3327
3363
  /**
@@ -3510,4 +3546,4 @@ type SendBatchFn = (txs: Array<{
3510
3546
  value?: bigint;
3511
3547
  }>) => Promise<string>;
3512
3548
 
3513
- export { type GetQuoteResponseObject as $, type AttestationServiceSellerCredentialUploadResponse as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type FulfillIntentParams as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type ReleaseFundsToPayerParams as H, type IntentEntity$1 as I, type CancelIntentParams as J, type BestByPlatformResponseObject as K, type GetBestByPlatformResponse as L, type GetBestByPlatformResponseObject as M, type GetPlatformQuote as N, type PlatformQuote as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type QuoteRequest as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetNearbyQuote as X, type GetNearbySuggestions as Y, Zkp2pClient as Z, type GetQuoteResponse as _, type SellerPlatform as a, type TakerTierStats as a$, type GetQuoteSingleResponse as a0, type QuoteResponse as a1, type QuoteResponseObject as a2, type QuoteSingleResponse as a3, type QuoteIntentResponse as a4, type QuoteFeesResponse as a5, type FiatResponse as a6, type TokenResponse as a7, type NearbyQuote as a8, type NearbySuggestions as a9, type SellerVerifyInput as aA, type SellerProbeInput as aB, type SellerCredentialBundle as aC, type SellerCredentialBundleUpload as aD, type SellerCredentialStatusValue as aE, type SellerCredentialStatus as aF, type SellerVerifyProxyBody as aG, type SellerTypedDataField as aH, type SellerTypedDataSpec as aI, type SellerPaymentTypedDataValue as aJ, type SellerAttestationOutput as aK, type SellerCredentialProbeResponse as aL, type AttestationServiceSellerVerifyResponse as aM, type AttestationServiceSellerCredentialProbeResponse as aN, type CuratorSellerCredentialUploadResponse as aO, type CuratorSellerCredentialStatusResponse as aP, type CuratorSellerVerifyResponse as aQ, type UploadSellerCredentialParams as aR, type UploadSellerCredentialOptions as aS, type GetSellerCredentialStatusParams as aT, type VerifySellerPaymentParams as aU, type OnchainCurrency as aV, type DepositVerifierData as aW, type PreparedTransaction as aX, type OrderStats as aY, type DepositIntentStatistics as aZ, type TakerTier as a_, type ApiDeposit as aa, type DepositVerifier as ab, type DepositVerifierCurrency as ac, type DepositStatus as ad, type GetDepositByIdRequest as ae, type GetDepositByIdResponse as af, type Intent as ag, type ApiIntentStatus as ah, type GetOwnerIntentsRequest as ai, type GetOwnerIntentsResponse as aj, type GetIntentsByDepositRequest as ak, type GetIntentsByDepositResponse as al, type GetIntentByHashRequest as am, type GetIntentByHashResponse as an, type RegisterPayeeDetailsRequest as ao, type RegisterPayeeDetailsResponse as ap, type VenmoSessionMaterial as aq, type CashAppSessionMaterial as ar, type WiseSessionMaterial as as, type VenmoCredentialUploadInput as at, type CashAppCredentialUploadInput as au, type WiseCredentialUploadInput as av, type SellerCredentialUploadInputByPlatform as aw, type SellerCiphertextBundle as ax, type SellerSignedCiphertextBundle as ay, type SellerVerifyIntentDetails as az, type SellerCredentialAttestationRuntime as b, type PV_PaymentMethodData as b$, type TakerTierLevel as b0, type PlatformLimit as b1, type PlatformRiskLevel as b2, type OrderbookEntry as b3, IndexerClient as b4, defaultIndexerEndpoint as b5, IndexerDepositService as b6, IndexerRateManagerService as b7, compareEventCursorIdsByRecency as b8, fetchFulfillmentAndPayment as b9, type RateManagerOrderField as bA, type OrderDirection as bB, type DeploymentEnv as bC, type FulfillmentRecord as bD, type PaymentVerifiedRecord as bE, type FulfillmentAndPaymentResponse as bF, PAYMENT_PLATFORMS as bG, type PaymentPlatformType as bH, Currency as bI, currencyInfo as bJ, getCurrencyInfoFromHash as bK, getCurrencyInfoFromCountryCode as bL, getCurrencyCodeFromHash as bM, isSupportedCurrencyHash as bN, mapConversionRatesToOnchainMinRate as bO, type CurrencyData as bP, getContracts as bQ, getRateManagerContracts as bR, getPaymentMethodsCatalog as bS, getGatingServiceAddress as bT, type RuntimeEnv as bU, parseDepositView as bV, parseIntentView as bW, enrichPvDepositView as bX, enrichPvIntentView as bY, type PV_DepositView as bZ, type PV_Deposit as b_, 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 ValidatePayeeDetailsResponse as c, type PV_Currency as c0, type PV_ReferralFee as c1, type PV_IntentView as c2, type PV_Intent as c3, ZERO_RATE_MANAGER_ID as c4, isZeroRateManagerId as c5, normalizeRateManagerId as c6, normalizeRegistry as c7, getDelegationRoute as c8, classifyDelegationState 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, type PostDepositDetailsResponse as d, type GetPayeeDetailsResponse as e, type GetOwnerDepositsRequest as f, type GetOwnerDepositsResponse as g, type GetTakerTierRequest as h, type GetTakerTierResponse as i, type GetDepositBundleParams as j, type ApiAdapterOptions as k, type GetDepositBundleResponse as l, type GetOrderbookParams as m, type GetOrderbookResponse as n, type PaymentMethodCatalog as o, type SignalIntentReferralFee as p, type SignalIntentMethodParams as q, type CancelIntentMethodParams as r, type Zkp2pNextOptions as s, type AuthorizationTokenProvider as t, type TimeoutConfig as u, type ActionCallback as v, type CreateDepositParams as w, type CreateDepositConversionRate as x, type Range as y, type SignalIntentParams as z };
3549
+ export { type GetQuoteResponseObject as $, type AttestationServiceSellerCredentialUploadResponse as A, type BestByPlatformResponse as B, type CurrencyType as C, type DepositWithRelations as D, type FulfillIntentParams as E, type FulfillIntentMethodParams as F, type GetPayeeDetailsRequest as G, type ReleaseFundsToPayerParams as H, type IntentEntity$1 as I, type CancelIntentParams as J, type BestByPlatformResponseObject as K, type GetBestByPlatformResponse as L, type GetBestByPlatformResponseObject as M, type GetPlatformQuote as N, type PlatformQuote as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type QuoteRequest as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type GetNearbyQuote as X, type GetNearbySuggestions as Y, Zkp2pClient as Z, type GetQuoteResponse as _, type SellerPlatform as a, type OnchainCurrency as a$, type GetQuoteSingleResponse as a0, type QuoteResponse as a1, type QuoteResponseObject as a2, type QuoteSingleResponse as a3, type QuoteIntentResponse as a4, type QuoteFeesResponse as a5, type FiatResponse as a6, type TokenResponse as a7, type NearbyQuote as a8, type NearbySuggestions as a9, type PayPalCredentialUploadInput as aA, type SellerCredentialUploadInputByPlatform as aB, type SellerCiphertextBundle as aC, type SellerSignedCiphertextBundle as aD, type SellerVerifyIntentDetails as aE, type SellerVerifyInput as aF, type SellerProbeInput as aG, type SellerCredentialBundle as aH, type SellerCredentialBundleUpload as aI, type SellerCredentialStatusValue as aJ, type SellerCredentialStatus as aK, type SellerVerifyProxyBody as aL, type SellerTypedDataField as aM, type SellerTypedDataSpec as aN, type SellerPaymentTypedDataValue as aO, type SellerAttestationOutput as aP, type SellerCredentialProbeResponse as aQ, type AttestationServiceSellerVerifyResponse as aR, type AttestationServiceSellerCredentialProbeResponse as aS, type CuratorSellerCredentialUploadResponse as aT, type CuratorSellerCredentialStatusResponse as aU, type CuratorSellerVerifyResponse as aV, type UploadSellerCredentialParams as aW, type RegisteredUploadSellerCredentialParams as aX, type UploadSellerCredentialOptions as aY, type GetSellerCredentialStatusParams as aZ, type VerifySellerPaymentParams as a_, type ApiDeposit as aa, type DepositVerifier as ab, type DepositVerifierCurrency as ac, type DepositStatus as ad, type GetDepositByIdRequest as ae, type GetDepositByIdResponse as af, type Intent as ag, type ApiIntentStatus as ah, type GetOwnerIntentsRequest as ai, type GetOwnerIntentsResponse as aj, type GetIntentsByDepositRequest as ak, type GetIntentsByDepositResponse as al, type GetIntentByHashRequest as am, type GetIntentByHashResponse as an, type RegisterPayeeDetailsRequest as ao, type RegisterPayeeDetailsResponse as ap, type VenmoSessionMaterial as aq, type CashAppSessionMaterial as ar, type WiseSessionMaterial as as, type WiseProfileInfo as at, type WiseProfileSelectionRequired as au, type WiseProfileNotFound as av, type PayPalSessionMaterial as aw, type VenmoCredentialUploadInput as ax, type CashAppCredentialUploadInput as ay, type WiseCredentialUploadInput as az, type SellerCredentialAttestationRuntime as b, parseDepositView as b$, type DepositVerifierData as b0, type PreparedTransaction as b1, type OrderStats as b2, type DepositIntentStatistics as b3, type TakerTier as b4, type TakerTierStats as b5, type TakerTierLevel as b6, type PlatformLimit as b7, type PlatformRiskLevel as b8, type OrderbookEntry as b9, type PaginationOptions as bA, type DepositOrderField as bB, type OrderDirection$1 as bC, type RateManagerFilter as bD, type RateManagerPaginationOptions as bE, type RateManagerDelegationPaginationOptions as bF, type RateManagerOrderField as bG, type OrderDirection as bH, type DeploymentEnv as bI, type FulfillmentRecord as bJ, type PaymentVerifiedRecord as bK, type FulfillmentAndPaymentResponse as bL, PAYMENT_PLATFORMS as bM, type PaymentPlatformType as bN, Currency as bO, currencyInfo as bP, getCurrencyInfoFromHash as bQ, getCurrencyInfoFromCountryCode as bR, getCurrencyCodeFromHash as bS, isSupportedCurrencyHash as bT, mapConversionRatesToOnchainMinRate as bU, type CurrencyData as bV, getContracts as bW, getRateManagerContracts as bX, getPaymentMethodsCatalog as bY, getGatingServiceAddress as bZ, type RuntimeEnv as b_, IndexerClient as ba, defaultIndexerEndpoint as bb, IndexerDepositService as bc, IndexerRateManagerService as bd, compareEventCursorIdsByRecency as be, fetchFulfillmentAndPayment as bf, type DepositEntity$1 as bg, type IntentFulfilledEntity as bh, type IntentFulfillmentAmountsEntity as bi, type DepositPaymentMethodEntity$1 as bj, type MethodCurrencyEntity$1 as bk, type IntentStatus as bl, type RateManagerEntity as bm, type RateManagerRateEntity as bn, type RateManagerDelegationEntity as bo, type ManagerAggregateStatsEntity as bp, type ManagerStatsEntity as bq, type ManagerDailySnapshotEntity as br, type RateManagerListItem as bs, type RateManagerDetail as bt, type ManualRateUpdateEntity as bu, type OracleConfigUpdateEntity as bv, type DepositFundActivityEntity$1 as bw, type DepositDailySnapshotEntity$1 as bx, type DepositFundActivityType$1 as by, type DepositFilter as bz, type ValidatePayeeDetailsResponse as c, parseIntentView as c0, enrichPvDepositView as c1, enrichPvIntentView as c2, type PV_DepositView as c3, type PV_Deposit as c4, type PV_PaymentMethodData as c5, type PV_Currency as c6, type PV_ReferralFee as c7, type PV_IntentView as c8, type PV_Intent as c9, ZERO_RATE_MANAGER_ID as ca, isZeroRateManagerId as cb, normalizeRateManagerId as cc, normalizeRegistry as cd, getDelegationRoute as ce, classifyDelegationState as cf, type DelegationRoute as cg, type DelegationState as ch, type DelegationDepositTarget as ci, type BatchResult as cj, type SendTransactionFn as ck, type SendBatchFn as cl, ZERO_ADDRESS as cm, asErrorMessage as cn, assertDelegationMethodSupport as co, type PostDepositDetailsResponse as d, type GetPayeeDetailsResponse as e, type GetOwnerDepositsRequest as f, type GetOwnerDepositsResponse as g, type GetTakerTierRequest as h, type GetTakerTierResponse as i, type GetDepositBundleParams as j, type ApiAdapterOptions as k, type GetDepositBundleResponse as l, type GetOrderbookParams as m, type GetOrderbookResponse as n, type PaymentMethodCatalog as o, type SignalIntentReferralFee as p, type SignalIntentMethodParams as q, type CancelIntentMethodParams as r, type Zkp2pNextOptions as s, type AuthorizationTokenProvider as t, type TimeoutConfig as u, type ActionCallback as v, type CreateDepositParams as w, type CreateDepositConversionRate as x, type Range as y, type SignalIntentParams as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/sdk",
3
- "version": "0.4.0-rc.3",
3
+ "version": "0.4.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.0.0-rc.0",
92
+ "@zkp2p/zkp2p-attestation": "1.1.0",
93
93
  "ethers": "^6.0.0",
94
94
  "ox": "^0.11.1"
95
95
  },