@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/index.cjs +121 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +121 -32
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-CSwo6wIa.d.mts → vaultUtils-CyPf4QGT.d.mts} +48 -12
- package/dist/{vaultUtils-CSwo6wIa.d.ts → vaultUtils-CyPf4QGT.d.ts} +48 -12
- package/package.json +2 -2
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, q as SignalIntentMethodParams,
|
|
2
|
-
export {
|
|
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,
|
|
2
|
-
export {
|
|
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
|
-
|
|
1111
|
-
|
|
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
|
|
1247
|
-
|
|
1248
|
-
|
|
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
|
-
}[
|
|
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
|
-
*
|
|
3323
|
-
*
|
|
3324
|
-
*
|
|
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
|
|
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
|
-
|
|
1111
|
-
|
|
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
|
|
1247
|
-
|
|
1248
|
-
|
|
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
|
-
}[
|
|
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
|
-
*
|
|
3323
|
-
*
|
|
3324
|
-
*
|
|
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
|
|
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
|
|
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.
|
|
92
|
+
"@zkp2p/zkp2p-attestation": "1.1.0",
|
|
93
93
|
"ethers": "^6.0.0",
|
|
94
94
|
"ox": "^0.11.1"
|
|
95
95
|
},
|