@zkp2p/sdk 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +165 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.mjs +165 -28
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-CyPf4QGT.d.mts → vaultUtils-Dt7ZOITQ.d.mts} +56 -7
- package/dist/{vaultUtils-CyPf4QGT.d.ts → vaultUtils-Dt7ZOITQ.d.ts} +56 -7
- package/package.json +2 -2
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest,
|
|
2
|
-
export {
|
|
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';
|
|
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,
|
|
2
|
-
export {
|
|
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';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
|
@@ -1001,8 +1001,8 @@ type CuratorPayeeDataInput = {
|
|
|
1001
1001
|
type FulfillIntentParams = {
|
|
1002
1002
|
/** Hash of the intent to fulfill */
|
|
1003
1003
|
intentHash: Hash;
|
|
1004
|
-
/**
|
|
1005
|
-
proof: Record<string, unknown> | string;
|
|
1004
|
+
/** Payment proof from Reclaim (object or JSON string) or buyer TEE proof input */
|
|
1005
|
+
proof: Record<string, unknown> | string | BuyerTeePaymentProofInput;
|
|
1006
1006
|
/** Optional attestation timestamp buffer override in milliseconds */
|
|
1007
1007
|
timestampBufferMs?: number | string;
|
|
1008
1008
|
/** Override the attestation service base URL */
|
|
@@ -1082,6 +1082,10 @@ type PostDepositDetailsResponse = {
|
|
|
1082
1082
|
metadata: Record<string, string> | null;
|
|
1083
1083
|
hashedOnchainId: string;
|
|
1084
1084
|
createdAt: string;
|
|
1085
|
+
/** Per-merchant forwarding alias (PayPal multi-merchant flow) */
|
|
1086
|
+
forwardingMailboxAlias?: string | null;
|
|
1087
|
+
/** Alias surfaced by curator maker lookup (alternative field name from GET /v1/makers/paypal/<hash>) */
|
|
1088
|
+
paypalForwardingAlias?: string | null;
|
|
1085
1089
|
};
|
|
1086
1090
|
statusCode: number;
|
|
1087
1091
|
};
|
|
@@ -1125,7 +1129,8 @@ type WiseProfileNotFound = {
|
|
|
1125
1129
|
};
|
|
1126
1130
|
type PayPalSessionMaterial = {
|
|
1127
1131
|
payeeEmail: string;
|
|
1128
|
-
|
|
1132
|
+
forwardingBaseMailbox: string;
|
|
1133
|
+
forwardingMailboxAlias: string;
|
|
1129
1134
|
};
|
|
1130
1135
|
type VenmoCredentialUploadInput = {
|
|
1131
1136
|
payeeId: string;
|
|
@@ -1199,6 +1204,21 @@ type SellerVerifyProxyBody = {
|
|
|
1199
1204
|
intent: SellerVerifyIntentDetails;
|
|
1200
1205
|
metadata?: Record<string, unknown>;
|
|
1201
1206
|
};
|
|
1207
|
+
type BuyerTeePaymentParams = Record<string, string | number | boolean>;
|
|
1208
|
+
type BuyerTeePaymentProofInput = {
|
|
1209
|
+
proofType: 'buyerTee';
|
|
1210
|
+
encryptedSessionMaterial: string;
|
|
1211
|
+
params: BuyerTeePaymentParams;
|
|
1212
|
+
};
|
|
1213
|
+
type BuyerTeeSessionMaterial = Record<string, string>;
|
|
1214
|
+
type BuyerTeeSessionMaterialEncryptionInput = {
|
|
1215
|
+
actionType: string;
|
|
1216
|
+
attestationRuntime?: SellerCredentialAttestationRuntime;
|
|
1217
|
+
attestationServiceUrl: string;
|
|
1218
|
+
platform: string;
|
|
1219
|
+
sessionMaterial: BuyerTeeSessionMaterial;
|
|
1220
|
+
timeoutMs?: number | null;
|
|
1221
|
+
};
|
|
1202
1222
|
type SellerTypedDataField = {
|
|
1203
1223
|
name: string;
|
|
1204
1224
|
type: string;
|
|
@@ -1294,6 +1314,21 @@ type GetSellerCredentialStatusParams = {
|
|
|
1294
1314
|
processorName: SellerPlatform;
|
|
1295
1315
|
payeeDetails: Hash;
|
|
1296
1316
|
};
|
|
1317
|
+
type PayPalForwardingConfirmationErrorCode = 'paypal_forwarding_confirmation_not_found' | 'paypal_forwarding_initiator_email_mismatch' | 'paypal_forwarding_confirmation_expired' | 'paypal_forwarding_confirmation_rejected';
|
|
1318
|
+
type ConfirmPayPalForwardingRequest = {
|
|
1319
|
+
payeeDetails: Hash;
|
|
1320
|
+
payeeEmail: string;
|
|
1321
|
+
forwardingInitiatorEmail: string;
|
|
1322
|
+
};
|
|
1323
|
+
type ConfirmPayPalForwardingStatus = Omit<SellerCredentialStatus, 'payeeIdHash'> & {
|
|
1324
|
+
payeeIdHash?: Hash;
|
|
1325
|
+
};
|
|
1326
|
+
type ConfirmPayPalForwardingResponse = {
|
|
1327
|
+
success: boolean;
|
|
1328
|
+
message: string;
|
|
1329
|
+
responseObject: ConfirmPayPalForwardingStatus;
|
|
1330
|
+
statusCode: number;
|
|
1331
|
+
};
|
|
1297
1332
|
type VerifySellerPaymentParams = {
|
|
1298
1333
|
platform: SellerPlatform;
|
|
1299
1334
|
} & SellerVerifyProxyBody;
|
|
@@ -1516,6 +1551,8 @@ type GetPayeeDetailsResponse = {
|
|
|
1516
1551
|
metadata: Record<string, string> | null;
|
|
1517
1552
|
hashedOnchainId: string;
|
|
1518
1553
|
createdAt: string;
|
|
1554
|
+
/** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
|
|
1555
|
+
paypalForwardingAlias?: string | null;
|
|
1519
1556
|
};
|
|
1520
1557
|
statusCode: number;
|
|
1521
1558
|
};
|
|
@@ -1798,6 +1835,7 @@ type GetOrderbookParams = {
|
|
|
1798
1835
|
token?: string;
|
|
1799
1836
|
};
|
|
1800
1837
|
type OrderbookEntry = {
|
|
1838
|
+
depositIdOnContract?: string;
|
|
1801
1839
|
depositId: string;
|
|
1802
1840
|
depositor: string;
|
|
1803
1841
|
price: string;
|
|
@@ -1943,8 +1981,8 @@ type CancelIntentMethodParams = {
|
|
|
1943
1981
|
type FulfillIntentMethodParams = {
|
|
1944
1982
|
/** The intent hash to fulfill (0x-prefixed, 32 bytes) */
|
|
1945
1983
|
intentHash: `0x${string}`;
|
|
1946
|
-
/** Payment proof from Reclaim (object or JSON string) */
|
|
1947
|
-
proof: Record<string, unknown> | string;
|
|
1984
|
+
/** Payment proof from Reclaim (object or JSON string) or buyer TEE proof input */
|
|
1985
|
+
proof: Record<string, unknown> | string | BuyerTeePaymentProofInput;
|
|
1948
1986
|
/** Allowed timestamp variance in ms (default: 300000ms) */
|
|
1949
1987
|
timestampBufferMs?: string;
|
|
1950
1988
|
/** Override attestation service URL */
|
|
@@ -3244,7 +3282,7 @@ declare class Zkp2pClient {
|
|
|
3244
3282
|
* ```
|
|
3245
3283
|
*
|
|
3246
3284
|
* @param params.intentHash - The intent hash to fulfill (0x-prefixed, 32 bytes)
|
|
3247
|
-
* @param params.proof - Payment proof from Reclaim (object or JSON string)
|
|
3285
|
+
* @param params.proof - Payment proof from Reclaim (object or JSON string) or buyer TEE proof input
|
|
3248
3286
|
* @param params.timestampBufferMs - Allowed timestamp variance (default: 300000ms)
|
|
3249
3287
|
* @param params.attestationServiceUrl - Override attestation service URL
|
|
3250
3288
|
* @param params.postIntentHookData - Data to pass to post-intent hook
|
|
@@ -3360,6 +3398,17 @@ declare class Zkp2pClient {
|
|
|
3360
3398
|
* from the submitted Personal API Token.
|
|
3361
3399
|
*/
|
|
3362
3400
|
uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3401
|
+
/**
|
|
3402
|
+
* Confirms the PayPal Gmail-forwarding setup for an existing maker payee hash.
|
|
3403
|
+
*
|
|
3404
|
+
* Uses curator's `/forwarding-confirmation` route and forwards both API key and
|
|
3405
|
+
* bearer token so either auth strategy can satisfy the hybrid gate. The endpoint
|
|
3406
|
+
* is rate-limited server-side; callers should surface retry guidance from APIError.
|
|
3407
|
+
*/
|
|
3408
|
+
confirmPayPalForwarding(params: ConfirmPayPalForwardingRequest, opts?: {
|
|
3409
|
+
baseApiUrl?: string;
|
|
3410
|
+
timeoutMs?: number;
|
|
3411
|
+
}): Promise<ConfirmPayPalForwardingResponse>;
|
|
3363
3412
|
/**
|
|
3364
3413
|
* Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
|
|
3365
3414
|
* omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
|
|
@@ -3546,4 +3595,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3546
3595
|
value?: bigint;
|
|
3547
3596
|
}>) => Promise<string>;
|
|
3548
3597
|
|
|
3549
|
-
export { type
|
|
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 };
|
|
@@ -1001,8 +1001,8 @@ type CuratorPayeeDataInput = {
|
|
|
1001
1001
|
type FulfillIntentParams = {
|
|
1002
1002
|
/** Hash of the intent to fulfill */
|
|
1003
1003
|
intentHash: Hash;
|
|
1004
|
-
/**
|
|
1005
|
-
proof: Record<string, unknown> | string;
|
|
1004
|
+
/** Payment proof from Reclaim (object or JSON string) or buyer TEE proof input */
|
|
1005
|
+
proof: Record<string, unknown> | string | BuyerTeePaymentProofInput;
|
|
1006
1006
|
/** Optional attestation timestamp buffer override in milliseconds */
|
|
1007
1007
|
timestampBufferMs?: number | string;
|
|
1008
1008
|
/** Override the attestation service base URL */
|
|
@@ -1082,6 +1082,10 @@ type PostDepositDetailsResponse = {
|
|
|
1082
1082
|
metadata: Record<string, string> | null;
|
|
1083
1083
|
hashedOnchainId: string;
|
|
1084
1084
|
createdAt: string;
|
|
1085
|
+
/** Per-merchant forwarding alias (PayPal multi-merchant flow) */
|
|
1086
|
+
forwardingMailboxAlias?: string | null;
|
|
1087
|
+
/** Alias surfaced by curator maker lookup (alternative field name from GET /v1/makers/paypal/<hash>) */
|
|
1088
|
+
paypalForwardingAlias?: string | null;
|
|
1085
1089
|
};
|
|
1086
1090
|
statusCode: number;
|
|
1087
1091
|
};
|
|
@@ -1125,7 +1129,8 @@ type WiseProfileNotFound = {
|
|
|
1125
1129
|
};
|
|
1126
1130
|
type PayPalSessionMaterial = {
|
|
1127
1131
|
payeeEmail: string;
|
|
1128
|
-
|
|
1132
|
+
forwardingBaseMailbox: string;
|
|
1133
|
+
forwardingMailboxAlias: string;
|
|
1129
1134
|
};
|
|
1130
1135
|
type VenmoCredentialUploadInput = {
|
|
1131
1136
|
payeeId: string;
|
|
@@ -1199,6 +1204,21 @@ type SellerVerifyProxyBody = {
|
|
|
1199
1204
|
intent: SellerVerifyIntentDetails;
|
|
1200
1205
|
metadata?: Record<string, unknown>;
|
|
1201
1206
|
};
|
|
1207
|
+
type BuyerTeePaymentParams = Record<string, string | number | boolean>;
|
|
1208
|
+
type BuyerTeePaymentProofInput = {
|
|
1209
|
+
proofType: 'buyerTee';
|
|
1210
|
+
encryptedSessionMaterial: string;
|
|
1211
|
+
params: BuyerTeePaymentParams;
|
|
1212
|
+
};
|
|
1213
|
+
type BuyerTeeSessionMaterial = Record<string, string>;
|
|
1214
|
+
type BuyerTeeSessionMaterialEncryptionInput = {
|
|
1215
|
+
actionType: string;
|
|
1216
|
+
attestationRuntime?: SellerCredentialAttestationRuntime;
|
|
1217
|
+
attestationServiceUrl: string;
|
|
1218
|
+
platform: string;
|
|
1219
|
+
sessionMaterial: BuyerTeeSessionMaterial;
|
|
1220
|
+
timeoutMs?: number | null;
|
|
1221
|
+
};
|
|
1202
1222
|
type SellerTypedDataField = {
|
|
1203
1223
|
name: string;
|
|
1204
1224
|
type: string;
|
|
@@ -1294,6 +1314,21 @@ type GetSellerCredentialStatusParams = {
|
|
|
1294
1314
|
processorName: SellerPlatform;
|
|
1295
1315
|
payeeDetails: Hash;
|
|
1296
1316
|
};
|
|
1317
|
+
type PayPalForwardingConfirmationErrorCode = 'paypal_forwarding_confirmation_not_found' | 'paypal_forwarding_initiator_email_mismatch' | 'paypal_forwarding_confirmation_expired' | 'paypal_forwarding_confirmation_rejected';
|
|
1318
|
+
type ConfirmPayPalForwardingRequest = {
|
|
1319
|
+
payeeDetails: Hash;
|
|
1320
|
+
payeeEmail: string;
|
|
1321
|
+
forwardingInitiatorEmail: string;
|
|
1322
|
+
};
|
|
1323
|
+
type ConfirmPayPalForwardingStatus = Omit<SellerCredentialStatus, 'payeeIdHash'> & {
|
|
1324
|
+
payeeIdHash?: Hash;
|
|
1325
|
+
};
|
|
1326
|
+
type ConfirmPayPalForwardingResponse = {
|
|
1327
|
+
success: boolean;
|
|
1328
|
+
message: string;
|
|
1329
|
+
responseObject: ConfirmPayPalForwardingStatus;
|
|
1330
|
+
statusCode: number;
|
|
1331
|
+
};
|
|
1297
1332
|
type VerifySellerPaymentParams = {
|
|
1298
1333
|
platform: SellerPlatform;
|
|
1299
1334
|
} & SellerVerifyProxyBody;
|
|
@@ -1516,6 +1551,8 @@ type GetPayeeDetailsResponse = {
|
|
|
1516
1551
|
metadata: Record<string, string> | null;
|
|
1517
1552
|
hashedOnchainId: string;
|
|
1518
1553
|
createdAt: string;
|
|
1554
|
+
/** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
|
|
1555
|
+
paypalForwardingAlias?: string | null;
|
|
1519
1556
|
};
|
|
1520
1557
|
statusCode: number;
|
|
1521
1558
|
};
|
|
@@ -1798,6 +1835,7 @@ type GetOrderbookParams = {
|
|
|
1798
1835
|
token?: string;
|
|
1799
1836
|
};
|
|
1800
1837
|
type OrderbookEntry = {
|
|
1838
|
+
depositIdOnContract?: string;
|
|
1801
1839
|
depositId: string;
|
|
1802
1840
|
depositor: string;
|
|
1803
1841
|
price: string;
|
|
@@ -1943,8 +1981,8 @@ type CancelIntentMethodParams = {
|
|
|
1943
1981
|
type FulfillIntentMethodParams = {
|
|
1944
1982
|
/** The intent hash to fulfill (0x-prefixed, 32 bytes) */
|
|
1945
1983
|
intentHash: `0x${string}`;
|
|
1946
|
-
/** Payment proof from Reclaim (object or JSON string) */
|
|
1947
|
-
proof: Record<string, unknown> | string;
|
|
1984
|
+
/** Payment proof from Reclaim (object or JSON string) or buyer TEE proof input */
|
|
1985
|
+
proof: Record<string, unknown> | string | BuyerTeePaymentProofInput;
|
|
1948
1986
|
/** Allowed timestamp variance in ms (default: 300000ms) */
|
|
1949
1987
|
timestampBufferMs?: string;
|
|
1950
1988
|
/** Override attestation service URL */
|
|
@@ -3244,7 +3282,7 @@ declare class Zkp2pClient {
|
|
|
3244
3282
|
* ```
|
|
3245
3283
|
*
|
|
3246
3284
|
* @param params.intentHash - The intent hash to fulfill (0x-prefixed, 32 bytes)
|
|
3247
|
-
* @param params.proof - Payment proof from Reclaim (object or JSON string)
|
|
3285
|
+
* @param params.proof - Payment proof from Reclaim (object or JSON string) or buyer TEE proof input
|
|
3248
3286
|
* @param params.timestampBufferMs - Allowed timestamp variance (default: 300000ms)
|
|
3249
3287
|
* @param params.attestationServiceUrl - Override attestation service URL
|
|
3250
3288
|
* @param params.postIntentHookData - Data to pass to post-intent hook
|
|
@@ -3360,6 +3398,17 @@ declare class Zkp2pClient {
|
|
|
3360
3398
|
* from the submitted Personal API Token.
|
|
3361
3399
|
*/
|
|
3362
3400
|
uploadSellerCredential(params: UploadSellerCredentialParams, opts?: UploadSellerCredentialOptions): Promise<CuratorSellerCredentialUploadResponse>;
|
|
3401
|
+
/**
|
|
3402
|
+
* Confirms the PayPal Gmail-forwarding setup for an existing maker payee hash.
|
|
3403
|
+
*
|
|
3404
|
+
* Uses curator's `/forwarding-confirmation` route and forwards both API key and
|
|
3405
|
+
* bearer token so either auth strategy can satisfy the hybrid gate. The endpoint
|
|
3406
|
+
* is rate-limited server-side; callers should surface retry guidance from APIError.
|
|
3407
|
+
*/
|
|
3408
|
+
confirmPayPalForwarding(params: ConfirmPayPalForwardingRequest, opts?: {
|
|
3409
|
+
baseApiUrl?: string;
|
|
3410
|
+
timeoutMs?: number;
|
|
3411
|
+
}): Promise<ConfirmPayPalForwardingResponse>;
|
|
3363
3412
|
/**
|
|
3364
3413
|
* Status is a coarse curator-owned signal (`active` / `inactive` / `missing`) and intentionally
|
|
3365
3414
|
* omits low-level diagnostics. Curator may still re-probe stale credentials during verify, so callers
|
|
@@ -3546,4 +3595,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3546
3595
|
value?: bigint;
|
|
3547
3596
|
}>) => Promise<string>;
|
|
3548
3597
|
|
|
3549
|
-
export { type
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkp2p/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
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.1
|
|
92
|
+
"@zkp2p/zkp2p-attestation": "1.3.1",
|
|
93
93
|
"ethers": "^6.0.0",
|
|
94
94
|
"ox": "^0.11.1"
|
|
95
95
|
},
|