@zkp2p/sdk 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +34 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.mjs +34 -5
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +3 -2
- package/dist/react.d.ts +3 -2
- package/dist/{vaultUtils-Bi2uldoa.d.mts → vaultUtils-BZU2bc0T.d.mts} +29 -10
- package/dist/{vaultUtils-Bi2uldoa.d.ts → vaultUtils-BZU2bc0T.d.ts} +29 -10
- package/package.json +2 -2
package/dist/react.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, x as SignalIntentMethodParams, bl as PreparedTransaction, bo as TakerTier, n as GetTakerTierRequest, o as GetTakerTierResponse, F as FulfillIntentMethodParams, cE as SendTransactionFn, cF as SendBatchFn, cC as DelegationDepositTarget, cD as BatchResult } from './vaultUtils-BZU2bc0T.mjs';
|
|
2
|
+
export { cA as DelegationRoute, cB as DelegationState, cG as VAULT_ZERO_ADDRESS, cu as ZERO_RATE_MANAGER_ID, cH as asErrorMessage, cI as assertDelegationMethodSupport, cz as classifyDelegationState, cy as getDelegationRoute, cv as isZeroRateManagerId, cw as normalizeRateManagerId, cx as normalizeRegistry } from './vaultUtils-BZU2bc0T.mjs';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
|
6
|
+
import '@zkp2p/zkp2p-attestation';
|
|
6
7
|
|
|
7
8
|
interface UseCreateDepositOptions {
|
|
8
9
|
client: Zkp2pClient | null;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Z as Zkp2pClient, P as PostDepositDetailsRequest,
|
|
2
|
-
export {
|
|
1
|
+
import { Z as Zkp2pClient, P as PostDepositDetailsRequest, x as SignalIntentMethodParams, bl as PreparedTransaction, bo as TakerTier, n as GetTakerTierRequest, o as GetTakerTierResponse, F as FulfillIntentMethodParams, cE as SendTransactionFn, cF as SendBatchFn, cC as DelegationDepositTarget, cD as BatchResult } from './vaultUtils-BZU2bc0T.js';
|
|
2
|
+
export { cA as DelegationRoute, cB as DelegationState, cG as VAULT_ZERO_ADDRESS, cu as ZERO_RATE_MANAGER_ID, cH as asErrorMessage, cI as assertDelegationMethodSupport, cz as classifyDelegationState, cy as getDelegationRoute, cv as isZeroRateManagerId, cw as normalizeRateManagerId, cx as normalizeRegistry } from './vaultUtils-BZU2bc0T.js';
|
|
3
3
|
import { Hash, Address, Hex } from 'viem';
|
|
4
4
|
import '@zkp2p/indexer-schema';
|
|
5
5
|
import 'abitype';
|
|
6
|
+
import '@zkp2p/zkp2p-attestation';
|
|
6
7
|
|
|
7
8
|
interface UseCreateDepositOptions {
|
|
8
9
|
client: Zkp2pClient | null;
|
|
@@ -2,6 +2,7 @@ import * as _zkp2p_indexer_schema from '@zkp2p/indexer-schema';
|
|
|
2
2
|
import { Deposit, DepositStatus as DepositStatus$2, IntentStatus as IntentStatus$1, DepositPaymentMethod, MethodCurrency, Intent as Intent$1, MakerProfitSnapshot, RateManager, ManagerAggregateStats, RateManagerRate, ManagerStats, DepositFundActivity, DepositDailySnapshot, ManagerDailySnapshot } from '@zkp2p/indexer-schema';
|
|
3
3
|
import { Address, Hex, AccessList, AuthorizationList, Hash, WalletClient, PublicClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
|
+
import { IdentityPlatform, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityAttestationOutput } from '@zkp2p/zkp2p-attestation';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Supported fiat currency codes.
|
|
@@ -985,15 +986,16 @@ type ReferrerFeeConfig = {
|
|
|
985
986
|
recipient: `0x${string}`;
|
|
986
987
|
feeBps: number;
|
|
987
988
|
};
|
|
989
|
+
type CuratorMetadata = Record<string, any>;
|
|
988
990
|
type CuratorPayeeData = {
|
|
989
991
|
offchainId: string;
|
|
990
992
|
telegramUsername: string | null;
|
|
991
|
-
metadata:
|
|
993
|
+
metadata: CuratorMetadata | null;
|
|
992
994
|
};
|
|
993
995
|
type CuratorPayeeDataInput = {
|
|
994
996
|
offchainId: string;
|
|
995
997
|
telegramUsername?: string | null;
|
|
996
|
-
metadata?:
|
|
998
|
+
metadata?: CuratorMetadata | null;
|
|
997
999
|
};
|
|
998
1000
|
/**
|
|
999
1001
|
* Parameters for fulfilling an intent with payment attestation
|
|
@@ -1063,7 +1065,7 @@ type PostDepositDetailsRequest = {
|
|
|
1063
1065
|
/** Optional Telegram username associated with the payee */
|
|
1064
1066
|
telegramUsername?: string | null;
|
|
1065
1067
|
/** Optional processor-specific metadata */
|
|
1066
|
-
metadata?:
|
|
1068
|
+
metadata?: CuratorMetadata | null;
|
|
1067
1069
|
/** Payment processor name */
|
|
1068
1070
|
processorName: string;
|
|
1069
1071
|
};
|
|
@@ -1079,7 +1081,7 @@ type PostDepositDetailsResponse = {
|
|
|
1079
1081
|
processorName: string;
|
|
1080
1082
|
offchainId: string;
|
|
1081
1083
|
telegramUsername: string | null;
|
|
1082
|
-
metadata:
|
|
1084
|
+
metadata: CuratorMetadata | null;
|
|
1083
1085
|
hashedOnchainId: string;
|
|
1084
1086
|
createdAt: string;
|
|
1085
1087
|
/** Per-merchant forwarding alias (PayPal multi-merchant flow) */
|
|
@@ -1224,8 +1226,8 @@ type BuyerTeePaymentProofInput = {
|
|
|
1224
1226
|
proofType: 'buyerTee';
|
|
1225
1227
|
encryptedSessionMaterial: string;
|
|
1226
1228
|
params: BuyerTeePaymentParams;
|
|
1227
|
-
actionType?: string;
|
|
1228
1229
|
actionPlatform?: string;
|
|
1230
|
+
actionType?: string;
|
|
1229
1231
|
};
|
|
1230
1232
|
type BuyerTeeSessionMaterial = Record<string, string>;
|
|
1231
1233
|
type BuyerTeeSessionMaterialEncryptionInput = {
|
|
@@ -1236,6 +1238,23 @@ type BuyerTeeSessionMaterialEncryptionInput = {
|
|
|
1236
1238
|
sessionMaterial: BuyerTeeSessionMaterial;
|
|
1237
1239
|
timeoutMs?: number | null;
|
|
1238
1240
|
};
|
|
1241
|
+
type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
|
|
1242
|
+
type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
|
|
1243
|
+
type IdentityAttestationRequestBody = {
|
|
1244
|
+
encryptedSessionMaterial: string;
|
|
1245
|
+
params: IdentityAttestationParams;
|
|
1246
|
+
};
|
|
1247
|
+
type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
|
|
1248
|
+
encryptedSessionMaterial: string;
|
|
1249
|
+
params: IdentityParamsByPlatform[P];
|
|
1250
|
+
};
|
|
1251
|
+
type IdentityAttestationActionType<P extends IdentityPlatform> = IdentityActionTypeByPlatform[P];
|
|
1252
|
+
type AttestationServiceIdentityResponse = {
|
|
1253
|
+
success: boolean;
|
|
1254
|
+
message: string;
|
|
1255
|
+
responseObject: IdentityAttestationOutput;
|
|
1256
|
+
statusCode: number;
|
|
1257
|
+
};
|
|
1239
1258
|
type SellerTypedDataField = {
|
|
1240
1259
|
name: string;
|
|
1241
1260
|
type: string;
|
|
@@ -1309,7 +1328,7 @@ type UploadSellerCredentialParams = ({
|
|
|
1309
1328
|
[P in RegisteredSellerCredentialPlatform]: {
|
|
1310
1329
|
offchainId: string;
|
|
1311
1330
|
telegramUsername?: string | null;
|
|
1312
|
-
metadata?:
|
|
1331
|
+
metadata?: CuratorMetadata | null;
|
|
1313
1332
|
platform: P;
|
|
1314
1333
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1315
1334
|
}[RegisteredSellerCredentialPlatform];
|
|
@@ -1317,7 +1336,7 @@ type RegisteredUploadSellerCredentialParams = {
|
|
|
1317
1336
|
[P in RegisteredSellerCredentialPlatform]: {
|
|
1318
1337
|
offchainId: string;
|
|
1319
1338
|
telegramUsername?: string | null;
|
|
1320
|
-
metadata?:
|
|
1339
|
+
metadata?: CuratorMetadata | null;
|
|
1321
1340
|
platform: P;
|
|
1322
1341
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1323
1342
|
}[RegisteredSellerCredentialPlatform];
|
|
@@ -1579,7 +1598,7 @@ type GetPayeeDetailsResponse = {
|
|
|
1579
1598
|
processorName: string;
|
|
1580
1599
|
offchainId: string;
|
|
1581
1600
|
telegramUsername: string | null;
|
|
1582
|
-
metadata:
|
|
1601
|
+
metadata: CuratorMetadata | null;
|
|
1583
1602
|
hashedOnchainId: string;
|
|
1584
1603
|
createdAt: string;
|
|
1585
1604
|
/** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
|
|
@@ -1591,7 +1610,7 @@ type ValidatePayeeDetailsRequest = {
|
|
|
1591
1610
|
processorName: string;
|
|
1592
1611
|
offchainId: string;
|
|
1593
1612
|
telegramUsername?: string | null;
|
|
1594
|
-
metadata?:
|
|
1613
|
+
metadata?: CuratorMetadata | null;
|
|
1595
1614
|
};
|
|
1596
1615
|
type ValidatePayeeDetailsResponse = {
|
|
1597
1616
|
success: boolean;
|
|
@@ -3636,4 +3655,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3636
3655
|
value?: bigint;
|
|
3637
3656
|
}>) => Promise<string>;
|
|
3638
3657
|
|
|
3639
|
-
export { type
|
|
3658
|
+
export { type GetBestByPlatformResponseObject as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type ConfirmPayPalForwardingResponse as C, type DepositWithRelations as D, type AuthorizationTokenProvider as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type TimeoutConfig as H, type IntentEntity$1 as I, type ActionCallback as J, type CreateDepositParams as K, type CreateDepositConversionRate as L, type Range as M, type SignalIntentParams as N, type FulfillIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type ReleaseFundsToPayerParams as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type CancelIntentParams as X, type BestByPlatformResponseObject as Y, Zkp2pClient as Z, type GetBestByPlatformResponse as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerCredentialProbeResponse as a$, type GetPlatformQuote as a0, type PlatformQuote as a1, type QuoteRequest as a2, type GetNearbyQuote as a3, type GetNearbySuggestions as a4, type GetQuoteResponse as a5, type GetQuoteResponseObject as a6, type GetQuoteSingleResponse as a7, type QuoteResponse as a8, type QuoteResponseObject as a9, type WiseProfileInfo as aA, type WiseProfileSelectionRequired as aB, type WiseProfileNotFound as aC, type PayPalSessionMaterial as aD, type PayPalGoogleOAuthSellerCredentialUploadBody as aE, type VenmoGoogleOAuthSellerCredentialUploadBody as aF, type VenmoCredentialUploadInput as aG, type CashAppCredentialUploadInput as aH, type WiseCredentialUploadInput as aI, type PayPalCredentialUploadInput as aJ, type SellerCredentialUploadInputByPlatform as aK, type SellerCiphertextBundle as aL, type SellerSignedCiphertextBundle as aM, type SellerVerifyIntentDetails as aN, type SellerVerifyInput as aO, type SellerProbeInput as aP, type SellerCredentialBundle as aQ, type SellerCredentialBundleUpload as aR, type SellerCredentialStatusValue as aS, type SellerCredentialStatus as aT, type SellerVerifyProxyBody as aU, type SellerTypedDataField as aV, type SellerTypedDataSpec as aW, type SellerPaymentTypedDataValue as aX, type SellerAttestationOutput as aY, type SellerCredentialProbeResponse as aZ, type AttestationServiceSellerVerifyResponse as a_, type QuoteSingleResponse as aa, type QuoteIntentResponse as ab, type QuoteFeesResponse as ac, type FiatResponse as ad, type TokenResponse as ae, type NearbyQuote as af, type NearbySuggestions as ag, type ApiDeposit as ah, type DepositVerifier as ai, type DepositVerifierCurrency as aj, type DepositStatus as ak, type GetDepositByIdRequest as al, type GetDepositByIdResponse as am, type Intent as an, type ApiIntentStatus as ao, type GetOwnerIntentsRequest as ap, type GetOwnerIntentsResponse as aq, type GetIntentsByDepositRequest as ar, type GetIntentsByDepositResponse as as, type GetIntentByHashRequest as at, type GetIntentByHashResponse as au, type RegisterPayeeDetailsRequest as av, type RegisterPayeeDetailsResponse as aw, type VenmoSessionMaterial as ax, type CashAppSessionMaterial as ay, type WiseSessionMaterial as az, type SellerPlatform as b, type OrderDirection as b$, type BuyerTeePaymentParams as b0, type BuyerTeePaymentProofInput as b1, type BuyerTeeSessionMaterial as b2, type CuratorSellerCredentialStatusResponse as b3, type CuratorSellerVerifyResponse as b4, type UploadSellerCredentialParams as b5, type RegisteredUploadSellerCredentialParams as b6, type UploadSellerCredentialOptions as b7, type GetSellerCredentialStatusParams as b8, type ConfirmPayPalForwardingRequest as b9, type DepositEntity$1 as bA, type IntentFulfilledEntity as bB, type IntentFulfillmentAmountsEntity as bC, type DepositPaymentMethodEntity$1 as bD, type MethodCurrencyEntity$1 as bE, type IntentStatus as bF, type RateManagerEntity as bG, type RateManagerRateEntity as bH, type RateManagerDelegationEntity as bI, type ManagerAggregateStatsEntity as bJ, type ManagerStatsEntity as bK, type ManagerDailySnapshotEntity as bL, type RateManagerListItem as bM, type RateManagerDetail as bN, type ManualRateUpdateEntity as bO, type OracleConfigUpdateEntity as bP, type DepositFundActivityEntity$1 as bQ, type DepositDailySnapshotEntity$1 as bR, type DepositFundActivityType$1 as bS, type DepositFilter as bT, type PaginationOptions as bU, type DepositOrderField as bV, type OrderDirection$1 as bW, type RateManagerFilter as bX, type RateManagerPaginationOptions as bY, type RateManagerDelegationPaginationOptions as bZ, type RateManagerOrderField as b_, type PayPalForwardingConfirmationErrorCode as ba, type UploadPayPalGoogleOAuthSellerCredentialParams as bb, type UploadVenmoGoogleOAuthSellerCredentialParams as bc, type UploadGoogleOAuthSellerCredentialParams as bd, type VerifySellerPaymentParams as be, type IdentityAttestationActionType as bf, type IdentityAttestationParams as bg, type MakerIdentityAttestationRequestBody as bh, type MakerIdentityPlatform as bi, type OnchainCurrency as bj, type DepositVerifierData as bk, type PreparedTransaction as bl, type OrderStats as bm, type DepositIntentStatistics as bn, type TakerTier as bo, type TakerTierStats as bp, type TakerTierLevel as bq, type PlatformLimit as br, type PlatformRiskLevel as bs, type OrderbookEntry as bt, IndexerClient as bu, defaultIndexerEndpoint as bv, IndexerDepositService as bw, IndexerRateManagerService as bx, compareEventCursorIdsByRecency as by, fetchFulfillmentAndPayment as bz, type SellerCredentialAttestationRuntime as c, type DeploymentEnv as c0, type FulfillmentRecord as c1, type PaymentVerifiedRecord as c2, type FulfillmentAndPaymentResponse as c3, PAYMENT_PLATFORMS as c4, type PaymentPlatformType as c5, Currency as c6, currencyInfo as c7, getCurrencyInfoFromHash as c8, getCurrencyInfoFromCountryCode as c9, type DelegationRoute as cA, type DelegationState as cB, type DelegationDepositTarget as cC, type BatchResult as cD, type SendTransactionFn as cE, type SendBatchFn as cF, ZERO_ADDRESS as cG, asErrorMessage as cH, assertDelegationMethodSupport as cI, getCurrencyCodeFromHash as ca, isSupportedCurrencyHash as cb, mapConversionRatesToOnchainMinRate as cc, type CurrencyData as cd, getContracts as ce, getRateManagerContracts as cf, getPaymentMethodsCatalog as cg, getGatingServiceAddress as ch, type RuntimeEnv as ci, parseDepositView as cj, parseIntentView as ck, enrichPvDepositView as cl, enrichPvIntentView as cm, type PV_DepositView as cn, type PV_Deposit as co, type PV_PaymentMethodData as cp, type PV_Currency as cq, type PV_ReferralFee as cr, type PV_IntentView as cs, type PV_Intent as ct, ZERO_RATE_MANAGER_ID as cu, isZeroRateManagerId as cv, normalizeRateManagerId as cw, normalizeRegistry as cx, getDelegationRoute as cy, classifyDelegationState as cz, type AttestationServiceSellerCredentialUploadResponse as d, type GoogleOAuthSellerCredentialUploadBodyByPlatform as e, type CuratorSellerCredentialUploadResponse as f, type BestByPlatformResponse as g, type ValidatePayeeDetailsResponse as h, type PostDepositDetailsResponse as i, type GetPayeeDetailsRequest as j, type GetPayeeDetailsResponse as k, type GetOwnerDepositsRequest as l, type GetOwnerDepositsResponse as m, type GetTakerTierRequest as n, type GetTakerTierResponse as o, type GetDepositBundleParams as p, type ApiAdapterOptions as q, type GetDepositBundleResponse as r, type GetOrderbookParams as s, type GetOrderbookResponse as t, type CurrencyType as u, type PaymentMethodCatalog as v, type SignalIntentReferralFee as w, type SignalIntentMethodParams as x, type CancelIntentMethodParams as y, type Zkp2pNextOptions as z };
|
|
@@ -2,6 +2,7 @@ import * as _zkp2p_indexer_schema from '@zkp2p/indexer-schema';
|
|
|
2
2
|
import { Deposit, DepositStatus as DepositStatus$2, IntentStatus as IntentStatus$1, DepositPaymentMethod, MethodCurrency, Intent as Intent$1, MakerProfitSnapshot, RateManager, ManagerAggregateStats, RateManagerRate, ManagerStats, DepositFundActivity, DepositDailySnapshot, ManagerDailySnapshot } from '@zkp2p/indexer-schema';
|
|
3
3
|
import { Address, Hex, AccessList, AuthorizationList, Hash, WalletClient, PublicClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
|
+
import { IdentityPlatform, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityAttestationOutput } from '@zkp2p/zkp2p-attestation';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Supported fiat currency codes.
|
|
@@ -985,15 +986,16 @@ type ReferrerFeeConfig = {
|
|
|
985
986
|
recipient: `0x${string}`;
|
|
986
987
|
feeBps: number;
|
|
987
988
|
};
|
|
989
|
+
type CuratorMetadata = Record<string, any>;
|
|
988
990
|
type CuratorPayeeData = {
|
|
989
991
|
offchainId: string;
|
|
990
992
|
telegramUsername: string | null;
|
|
991
|
-
metadata:
|
|
993
|
+
metadata: CuratorMetadata | null;
|
|
992
994
|
};
|
|
993
995
|
type CuratorPayeeDataInput = {
|
|
994
996
|
offchainId: string;
|
|
995
997
|
telegramUsername?: string | null;
|
|
996
|
-
metadata?:
|
|
998
|
+
metadata?: CuratorMetadata | null;
|
|
997
999
|
};
|
|
998
1000
|
/**
|
|
999
1001
|
* Parameters for fulfilling an intent with payment attestation
|
|
@@ -1063,7 +1065,7 @@ type PostDepositDetailsRequest = {
|
|
|
1063
1065
|
/** Optional Telegram username associated with the payee */
|
|
1064
1066
|
telegramUsername?: string | null;
|
|
1065
1067
|
/** Optional processor-specific metadata */
|
|
1066
|
-
metadata?:
|
|
1068
|
+
metadata?: CuratorMetadata | null;
|
|
1067
1069
|
/** Payment processor name */
|
|
1068
1070
|
processorName: string;
|
|
1069
1071
|
};
|
|
@@ -1079,7 +1081,7 @@ type PostDepositDetailsResponse = {
|
|
|
1079
1081
|
processorName: string;
|
|
1080
1082
|
offchainId: string;
|
|
1081
1083
|
telegramUsername: string | null;
|
|
1082
|
-
metadata:
|
|
1084
|
+
metadata: CuratorMetadata | null;
|
|
1083
1085
|
hashedOnchainId: string;
|
|
1084
1086
|
createdAt: string;
|
|
1085
1087
|
/** Per-merchant forwarding alias (PayPal multi-merchant flow) */
|
|
@@ -1224,8 +1226,8 @@ type BuyerTeePaymentProofInput = {
|
|
|
1224
1226
|
proofType: 'buyerTee';
|
|
1225
1227
|
encryptedSessionMaterial: string;
|
|
1226
1228
|
params: BuyerTeePaymentParams;
|
|
1227
|
-
actionType?: string;
|
|
1228
1229
|
actionPlatform?: string;
|
|
1230
|
+
actionType?: string;
|
|
1229
1231
|
};
|
|
1230
1232
|
type BuyerTeeSessionMaterial = Record<string, string>;
|
|
1231
1233
|
type BuyerTeeSessionMaterialEncryptionInput = {
|
|
@@ -1236,6 +1238,23 @@ type BuyerTeeSessionMaterialEncryptionInput = {
|
|
|
1236
1238
|
sessionMaterial: BuyerTeeSessionMaterial;
|
|
1237
1239
|
timeoutMs?: number | null;
|
|
1238
1240
|
};
|
|
1241
|
+
type MakerIdentityPlatform = Extract<IdentityPlatform, 'paypal' | 'wise'>;
|
|
1242
|
+
type IdentityAttestationParams = IdentityParamsByPlatform[IdentityPlatform] | Record<string, string | number | boolean>;
|
|
1243
|
+
type IdentityAttestationRequestBody = {
|
|
1244
|
+
encryptedSessionMaterial: string;
|
|
1245
|
+
params: IdentityAttestationParams;
|
|
1246
|
+
};
|
|
1247
|
+
type MakerIdentityAttestationRequestBody<P extends MakerIdentityPlatform> = {
|
|
1248
|
+
encryptedSessionMaterial: string;
|
|
1249
|
+
params: IdentityParamsByPlatform[P];
|
|
1250
|
+
};
|
|
1251
|
+
type IdentityAttestationActionType<P extends IdentityPlatform> = IdentityActionTypeByPlatform[P];
|
|
1252
|
+
type AttestationServiceIdentityResponse = {
|
|
1253
|
+
success: boolean;
|
|
1254
|
+
message: string;
|
|
1255
|
+
responseObject: IdentityAttestationOutput;
|
|
1256
|
+
statusCode: number;
|
|
1257
|
+
};
|
|
1239
1258
|
type SellerTypedDataField = {
|
|
1240
1259
|
name: string;
|
|
1241
1260
|
type: string;
|
|
@@ -1309,7 +1328,7 @@ type UploadSellerCredentialParams = ({
|
|
|
1309
1328
|
[P in RegisteredSellerCredentialPlatform]: {
|
|
1310
1329
|
offchainId: string;
|
|
1311
1330
|
telegramUsername?: string | null;
|
|
1312
|
-
metadata?:
|
|
1331
|
+
metadata?: CuratorMetadata | null;
|
|
1313
1332
|
platform: P;
|
|
1314
1333
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1315
1334
|
}[RegisteredSellerCredentialPlatform];
|
|
@@ -1317,7 +1336,7 @@ type RegisteredUploadSellerCredentialParams = {
|
|
|
1317
1336
|
[P in RegisteredSellerCredentialPlatform]: {
|
|
1318
1337
|
offchainId: string;
|
|
1319
1338
|
telegramUsername?: string | null;
|
|
1320
|
-
metadata?:
|
|
1339
|
+
metadata?: CuratorMetadata | null;
|
|
1321
1340
|
platform: P;
|
|
1322
1341
|
} & SellerCredentialUploadInputByPlatform[P];
|
|
1323
1342
|
}[RegisteredSellerCredentialPlatform];
|
|
@@ -1579,7 +1598,7 @@ type GetPayeeDetailsResponse = {
|
|
|
1579
1598
|
processorName: string;
|
|
1580
1599
|
offchainId: string;
|
|
1581
1600
|
telegramUsername: string | null;
|
|
1582
|
-
metadata:
|
|
1601
|
+
metadata: CuratorMetadata | null;
|
|
1583
1602
|
hashedOnchainId: string;
|
|
1584
1603
|
createdAt: string;
|
|
1585
1604
|
/** Per-merchant forwarding alias surfaced on maker lookup (PayPal multi-merchant flow) */
|
|
@@ -1591,7 +1610,7 @@ type ValidatePayeeDetailsRequest = {
|
|
|
1591
1610
|
processorName: string;
|
|
1592
1611
|
offchainId: string;
|
|
1593
1612
|
telegramUsername?: string | null;
|
|
1594
|
-
metadata?:
|
|
1613
|
+
metadata?: CuratorMetadata | null;
|
|
1595
1614
|
};
|
|
1596
1615
|
type ValidatePayeeDetailsResponse = {
|
|
1597
1616
|
success: boolean;
|
|
@@ -3636,4 +3655,4 @@ type SendBatchFn = (txs: Array<{
|
|
|
3636
3655
|
value?: bigint;
|
|
3637
3656
|
}>) => Promise<string>;
|
|
3638
3657
|
|
|
3639
|
-
export { type
|
|
3658
|
+
export { type GetBestByPlatformResponseObject as $, type AttestationServiceIdentityResponse as A, type BuyerTeeSessionMaterialEncryptionInput as B, type ConfirmPayPalForwardingResponse as C, type DepositWithRelations as D, type AuthorizationTokenProvider as E, type FulfillIntentMethodParams as F, type GoogleOAuthSellerCredentialPlatform as G, type TimeoutConfig as H, type IntentEntity$1 as I, type ActionCallback as J, type CreateDepositParams as K, type CreateDepositConversionRate as L, type Range as M, type SignalIntentParams as N, type FulfillIntentParams as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialUploadInput as S, type TxOverrides as T, type ReleaseFundsToPayerParams as U, type ValidatePayeeDetailsRequest as V, type WithdrawDepositParams as W, type CancelIntentParams as X, type BestByPlatformResponseObject as Y, Zkp2pClient as Z, type GetBestByPlatformResponse as _, type IdentityAttestationRequestBody as a, type AttestationServiceSellerCredentialProbeResponse as a$, type GetPlatformQuote as a0, type PlatformQuote as a1, type QuoteRequest as a2, type GetNearbyQuote as a3, type GetNearbySuggestions as a4, type GetQuoteResponse as a5, type GetQuoteResponseObject as a6, type GetQuoteSingleResponse as a7, type QuoteResponse as a8, type QuoteResponseObject as a9, type WiseProfileInfo as aA, type WiseProfileSelectionRequired as aB, type WiseProfileNotFound as aC, type PayPalSessionMaterial as aD, type PayPalGoogleOAuthSellerCredentialUploadBody as aE, type VenmoGoogleOAuthSellerCredentialUploadBody as aF, type VenmoCredentialUploadInput as aG, type CashAppCredentialUploadInput as aH, type WiseCredentialUploadInput as aI, type PayPalCredentialUploadInput as aJ, type SellerCredentialUploadInputByPlatform as aK, type SellerCiphertextBundle as aL, type SellerSignedCiphertextBundle as aM, type SellerVerifyIntentDetails as aN, type SellerVerifyInput as aO, type SellerProbeInput as aP, type SellerCredentialBundle as aQ, type SellerCredentialBundleUpload as aR, type SellerCredentialStatusValue as aS, type SellerCredentialStatus as aT, type SellerVerifyProxyBody as aU, type SellerTypedDataField as aV, type SellerTypedDataSpec as aW, type SellerPaymentTypedDataValue as aX, type SellerAttestationOutput as aY, type SellerCredentialProbeResponse as aZ, type AttestationServiceSellerVerifyResponse as a_, type QuoteSingleResponse as aa, type QuoteIntentResponse as ab, type QuoteFeesResponse as ac, type FiatResponse as ad, type TokenResponse as ae, type NearbyQuote as af, type NearbySuggestions as ag, type ApiDeposit as ah, type DepositVerifier as ai, type DepositVerifierCurrency as aj, type DepositStatus as ak, type GetDepositByIdRequest as al, type GetDepositByIdResponse as am, type Intent as an, type ApiIntentStatus as ao, type GetOwnerIntentsRequest as ap, type GetOwnerIntentsResponse as aq, type GetIntentsByDepositRequest as ar, type GetIntentsByDepositResponse as as, type GetIntentByHashRequest as at, type GetIntentByHashResponse as au, type RegisterPayeeDetailsRequest as av, type RegisterPayeeDetailsResponse as aw, type VenmoSessionMaterial as ax, type CashAppSessionMaterial as ay, type WiseSessionMaterial as az, type SellerPlatform as b, type OrderDirection as b$, type BuyerTeePaymentParams as b0, type BuyerTeePaymentProofInput as b1, type BuyerTeeSessionMaterial as b2, type CuratorSellerCredentialStatusResponse as b3, type CuratorSellerVerifyResponse as b4, type UploadSellerCredentialParams as b5, type RegisteredUploadSellerCredentialParams as b6, type UploadSellerCredentialOptions as b7, type GetSellerCredentialStatusParams as b8, type ConfirmPayPalForwardingRequest as b9, type DepositEntity$1 as bA, type IntentFulfilledEntity as bB, type IntentFulfillmentAmountsEntity as bC, type DepositPaymentMethodEntity$1 as bD, type MethodCurrencyEntity$1 as bE, type IntentStatus as bF, type RateManagerEntity as bG, type RateManagerRateEntity as bH, type RateManagerDelegationEntity as bI, type ManagerAggregateStatsEntity as bJ, type ManagerStatsEntity as bK, type ManagerDailySnapshotEntity as bL, type RateManagerListItem as bM, type RateManagerDetail as bN, type ManualRateUpdateEntity as bO, type OracleConfigUpdateEntity as bP, type DepositFundActivityEntity$1 as bQ, type DepositDailySnapshotEntity$1 as bR, type DepositFundActivityType$1 as bS, type DepositFilter as bT, type PaginationOptions as bU, type DepositOrderField as bV, type OrderDirection$1 as bW, type RateManagerFilter as bX, type RateManagerPaginationOptions as bY, type RateManagerDelegationPaginationOptions as bZ, type RateManagerOrderField as b_, type PayPalForwardingConfirmationErrorCode as ba, type UploadPayPalGoogleOAuthSellerCredentialParams as bb, type UploadVenmoGoogleOAuthSellerCredentialParams as bc, type UploadGoogleOAuthSellerCredentialParams as bd, type VerifySellerPaymentParams as be, type IdentityAttestationActionType as bf, type IdentityAttestationParams as bg, type MakerIdentityAttestationRequestBody as bh, type MakerIdentityPlatform as bi, type OnchainCurrency as bj, type DepositVerifierData as bk, type PreparedTransaction as bl, type OrderStats as bm, type DepositIntentStatistics as bn, type TakerTier as bo, type TakerTierStats as bp, type TakerTierLevel as bq, type PlatformLimit as br, type PlatformRiskLevel as bs, type OrderbookEntry as bt, IndexerClient as bu, defaultIndexerEndpoint as bv, IndexerDepositService as bw, IndexerRateManagerService as bx, compareEventCursorIdsByRecency as by, fetchFulfillmentAndPayment as bz, type SellerCredentialAttestationRuntime as c, type DeploymentEnv as c0, type FulfillmentRecord as c1, type PaymentVerifiedRecord as c2, type FulfillmentAndPaymentResponse as c3, PAYMENT_PLATFORMS as c4, type PaymentPlatformType as c5, Currency as c6, currencyInfo as c7, getCurrencyInfoFromHash as c8, getCurrencyInfoFromCountryCode as c9, type DelegationRoute as cA, type DelegationState as cB, type DelegationDepositTarget as cC, type BatchResult as cD, type SendTransactionFn as cE, type SendBatchFn as cF, ZERO_ADDRESS as cG, asErrorMessage as cH, assertDelegationMethodSupport as cI, getCurrencyCodeFromHash as ca, isSupportedCurrencyHash as cb, mapConversionRatesToOnchainMinRate as cc, type CurrencyData as cd, getContracts as ce, getRateManagerContracts as cf, getPaymentMethodsCatalog as cg, getGatingServiceAddress as ch, type RuntimeEnv as ci, parseDepositView as cj, parseIntentView as ck, enrichPvDepositView as cl, enrichPvIntentView as cm, type PV_DepositView as cn, type PV_Deposit as co, type PV_PaymentMethodData as cp, type PV_Currency as cq, type PV_ReferralFee as cr, type PV_IntentView as cs, type PV_Intent as ct, ZERO_RATE_MANAGER_ID as cu, isZeroRateManagerId as cv, normalizeRateManagerId as cw, normalizeRegistry as cx, getDelegationRoute as cy, classifyDelegationState as cz, type AttestationServiceSellerCredentialUploadResponse as d, type GoogleOAuthSellerCredentialUploadBodyByPlatform as e, type CuratorSellerCredentialUploadResponse as f, type BestByPlatformResponse as g, type ValidatePayeeDetailsResponse as h, type PostDepositDetailsResponse as i, type GetPayeeDetailsRequest as j, type GetPayeeDetailsResponse as k, type GetOwnerDepositsRequest as l, type GetOwnerDepositsResponse as m, type GetTakerTierRequest as n, type GetTakerTierResponse as o, type GetDepositBundleParams as p, type ApiAdapterOptions as q, type GetDepositBundleResponse as r, type GetOrderbookParams as s, type GetOrderbookResponse as t, type CurrencyType as u, type PaymentMethodCatalog as v, type SignalIntentReferralFee as w, type SignalIntentMethodParams as x, type CancelIntentMethodParams as y, type Zkp2pNextOptions as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkp2p/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "ZKP2P Client SDK - TypeScript SDK for deposit management, liquidity provision, and onramping",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@zkp2p/indexer-schema": "0.2.3",
|
|
91
91
|
"@zkp2p/contracts-v2": "0.2.2",
|
|
92
|
-
"@zkp2p/zkp2p-attestation": "1.
|
|
92
|
+
"@zkp2p/zkp2p-attestation": "1.4.0",
|
|
93
93
|
"ethers": "^6.0.0",
|
|
94
94
|
"ox": "^0.11.1"
|
|
95
95
|
},
|