@coinbase/cdp-api-client 0.0.123 → 0.0.125
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/esm/index.js +149 -134
- package/dist/esm/index11.js +1 -1
- package/dist/esm/index13.js +7 -38
- package/dist/esm/index15.js +358 -67
- package/dist/esm/index16.js +852 -34
- package/dist/esm/index17.js +38 -14
- package/dist/esm/index18.js +2 -8
- package/dist/esm/index19.js +70 -2
- package/dist/esm/index20.js +29 -355
- package/dist/esm/index21.js +14 -852
- package/dist/esm/index22.js +2 -2
- package/dist/esm/index23.js +2 -2
- package/dist/esm/index24.js +2 -2
- package/dist/esm/index3.js +1 -1
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +115 -85
- package/dist/esm/index6.js +220 -199
- package/dist/esm/index7.js +22 -15
- package/dist/esm/index8.js +184 -124
- package/dist/types/index.d.ts +699 -17
- package/package.json +1 -1
package/dist/esm/index22.js
CHANGED
package/dist/esm/index23.js
CHANGED
package/dist/esm/index24.js
CHANGED
package/dist/esm/index3.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { __require as r } from "./
|
|
1
|
+
import { __require as r } from "./index13.js";
|
|
2
2
|
r();
|
package/dist/esm/index4.js
CHANGED
package/dist/esm/index5.js
CHANGED
|
@@ -69,6 +69,7 @@ const e = {
|
|
|
69
69
|
asset_mismatch: "asset_mismatch",
|
|
70
70
|
mfa_already_enrolled: "mfa_already_enrolled",
|
|
71
71
|
mfa_invalid_code: "mfa_invalid_code",
|
|
72
|
+
mfa_challenge_not_found: "mfa_challenge_not_found",
|
|
72
73
|
mfa_flow_expired: "mfa_flow_expired",
|
|
73
74
|
mfa_required: "mfa_required",
|
|
74
75
|
mfa_not_enrolled: "mfa_not_enrolled",
|
|
@@ -98,17 +99,17 @@ const e = {
|
|
|
98
99
|
stale_attestation: "stale_attestation",
|
|
99
100
|
moderation_rejected: "moderation_rejected"
|
|
100
101
|
}, a = {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}, i = {
|
|
110
|
-
ios: "ios"
|
|
102
|
+
CustodyCrypto: "custodyCrypto",
|
|
103
|
+
CustodyFiat: "custodyFiat",
|
|
104
|
+
CustodyStablecoin: "custodyStablecoin",
|
|
105
|
+
TradeCrypto: "tradeCrypto",
|
|
106
|
+
TradeStablecoin: "tradeStablecoin",
|
|
107
|
+
TransferCrypto: "transferCrypto",
|
|
108
|
+
TransferFiat: "transferFiat",
|
|
109
|
+
TransferStablecoin: "transferStablecoin"
|
|
111
110
|
}, o = {
|
|
111
|
+
ios: "ios"
|
|
112
|
+
}, i = {
|
|
112
113
|
email: "email"
|
|
113
114
|
}, n = {
|
|
114
115
|
sms: "sms"
|
|
@@ -140,6 +141,15 @@ const e = {
|
|
|
140
141
|
bitcoin: "bitcoin",
|
|
141
142
|
"bitcoin-testnet": "bitcoin-testnet"
|
|
142
143
|
}, b = {
|
|
144
|
+
base: "base"
|
|
145
|
+
}, f = {
|
|
146
|
+
morpho_blue: "morpho_blue"
|
|
147
|
+
}, h = {
|
|
148
|
+
collateral: "collateral",
|
|
149
|
+
debt: "debt"
|
|
150
|
+
}, v = {
|
|
151
|
+
morpho_blue: "morpho_blue"
|
|
152
|
+
}, E = {
|
|
143
153
|
"base-sepolia": "base-sepolia",
|
|
144
154
|
base: "base",
|
|
145
155
|
arbitrum: "arbitrum",
|
|
@@ -150,15 +160,18 @@ const e = {
|
|
|
150
160
|
avalanche: "avalanche",
|
|
151
161
|
ethereum: "ethereum",
|
|
152
162
|
"ethereum-sepolia": "ethereum-sepolia"
|
|
153
|
-
},
|
|
163
|
+
}, g = {
|
|
154
164
|
approved: "approved",
|
|
155
165
|
pending: "pending",
|
|
156
166
|
rejected: "rejected"
|
|
157
|
-
},
|
|
167
|
+
}, T = {
|
|
158
168
|
required: "required",
|
|
159
169
|
preferred: "preferred",
|
|
160
170
|
discouraged: "discouraged"
|
|
161
|
-
},
|
|
171
|
+
}, A = {
|
|
172
|
+
MfaVerificationScopeSession: "session",
|
|
173
|
+
MfaVerificationScopeRequest: "request"
|
|
174
|
+
}, S = {
|
|
162
175
|
"base-sepolia": "base-sepolia",
|
|
163
176
|
base: "base",
|
|
164
177
|
arbitrum: "arbitrum",
|
|
@@ -166,20 +179,26 @@ const e = {
|
|
|
166
179
|
polygon: "polygon",
|
|
167
180
|
ethereum: "ethereum",
|
|
168
181
|
"ethereum-sepolia": "ethereum-sepolia"
|
|
169
|
-
},
|
|
182
|
+
}, P = {
|
|
170
183
|
UNSPECIFIED: "UNSPECIFIED",
|
|
171
184
|
PENDING: "PENDING",
|
|
172
185
|
SUBMITTED: "SUBMITTED",
|
|
173
186
|
COMPLETED: "COMPLETED",
|
|
174
187
|
FAILED: "FAILED"
|
|
175
|
-
},
|
|
188
|
+
}, R = {
|
|
176
189
|
pending: "pending",
|
|
177
190
|
signed: "signed",
|
|
178
191
|
broadcast: "broadcast",
|
|
179
192
|
complete: "complete",
|
|
180
193
|
dropped: "dropped",
|
|
181
194
|
failed: "failed"
|
|
182
|
-
},
|
|
195
|
+
}, w = {
|
|
196
|
+
no_debt: "no_debt",
|
|
197
|
+
healthy: "healthy",
|
|
198
|
+
undercollateralized: "undercollateralized"
|
|
199
|
+
}, N = {
|
|
200
|
+
morpho_blue: "morpho_blue"
|
|
201
|
+
}, x = {
|
|
183
202
|
base: "base",
|
|
184
203
|
"base-sepolia": "base-sepolia",
|
|
185
204
|
ethereum: "ethereum",
|
|
@@ -188,16 +207,16 @@ const e = {
|
|
|
188
207
|
arbitrum: "arbitrum",
|
|
189
208
|
avalanche: "avalanche",
|
|
190
209
|
polygon: "polygon"
|
|
191
|
-
},
|
|
210
|
+
}, k = {
|
|
192
211
|
base: "base",
|
|
193
212
|
ethereum: "ethereum",
|
|
194
213
|
arbitrum: "arbitrum",
|
|
195
214
|
optimism: "optimism",
|
|
196
215
|
polygon: "polygon"
|
|
197
|
-
},
|
|
216
|
+
}, q = {
|
|
198
217
|
NUMBER_1: 1,
|
|
199
218
|
NUMBER_2: 2
|
|
200
|
-
},
|
|
219
|
+
}, O = {
|
|
201
220
|
"eip155:8453": "eip155:8453",
|
|
202
221
|
"eip155:84532": "eip155:84532",
|
|
203
222
|
"eip155:137": "eip155:137",
|
|
@@ -206,30 +225,30 @@ const e = {
|
|
|
206
225
|
"eip155:4801": "eip155:4801",
|
|
207
226
|
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
208
227
|
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
|
|
209
|
-
},
|
|
228
|
+
}, U = {
|
|
210
229
|
exact: "exact",
|
|
211
230
|
upto: "upto",
|
|
212
231
|
"batch-settlement": "batch-settlement"
|
|
213
|
-
},
|
|
232
|
+
}, D = {
|
|
214
233
|
base: "base",
|
|
215
234
|
"base-sepolia": "base-sepolia",
|
|
216
235
|
solana: "solana",
|
|
217
236
|
"solana-devnet": "solana-devnet"
|
|
218
|
-
},
|
|
237
|
+
}, M = {
|
|
219
238
|
exact: "exact"
|
|
220
|
-
},
|
|
239
|
+
}, B = {
|
|
221
240
|
deposit: "deposit"
|
|
222
|
-
},
|
|
241
|
+
}, C = {
|
|
223
242
|
voucher: "voucher"
|
|
224
|
-
},
|
|
243
|
+
}, I = {
|
|
225
244
|
refund: "refund"
|
|
226
|
-
},
|
|
245
|
+
}, L = {
|
|
227
246
|
claim: "claim"
|
|
228
|
-
},
|
|
247
|
+
}, F = {
|
|
229
248
|
settle: "settle"
|
|
230
|
-
},
|
|
249
|
+
}, Y = {
|
|
231
250
|
exact: "exact"
|
|
232
|
-
},
|
|
251
|
+
}, z = {
|
|
233
252
|
base: "base",
|
|
234
253
|
ethereum: "ethereum",
|
|
235
254
|
solana: "solana",
|
|
@@ -240,39 +259,39 @@ const e = {
|
|
|
240
259
|
polygon: "polygon",
|
|
241
260
|
world: "world",
|
|
242
261
|
"world-sepolia": "world-sepolia"
|
|
243
|
-
},
|
|
262
|
+
}, W = {
|
|
244
263
|
FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK",
|
|
245
264
|
FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE"
|
|
246
|
-
},
|
|
265
|
+
}, V = {
|
|
247
266
|
ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH",
|
|
248
267
|
ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
|
|
249
268
|
ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING",
|
|
250
269
|
ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED",
|
|
251
270
|
ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED"
|
|
252
|
-
},
|
|
271
|
+
}, X = {
|
|
253
272
|
totp: "totp",
|
|
254
273
|
sms: "sms",
|
|
255
274
|
passkey: "passkey"
|
|
256
|
-
},
|
|
275
|
+
}, G = {
|
|
257
276
|
totp: "totp"
|
|
258
|
-
},
|
|
277
|
+
}, H = {
|
|
259
278
|
sms: "sms"
|
|
260
|
-
},
|
|
279
|
+
}, K = {
|
|
261
280
|
passkey: "passkey"
|
|
262
|
-
},
|
|
281
|
+
}, j = {
|
|
263
282
|
passkey: "passkey"
|
|
264
|
-
},
|
|
283
|
+
}, Z = {
|
|
265
284
|
passkey: "passkey"
|
|
266
|
-
},
|
|
285
|
+
}, J = {
|
|
267
286
|
CARD: "CARD",
|
|
268
287
|
ACH: "ACH",
|
|
269
288
|
APPLE_PAY: "APPLE_PAY",
|
|
270
289
|
PAYPAL: "PAYPAL",
|
|
271
290
|
FIAT_WALLET: "FIAT_WALLET",
|
|
272
291
|
CRYPTO_WALLET: "CRYPTO_WALLET"
|
|
273
|
-
},
|
|
292
|
+
}, Q = {
|
|
274
293
|
refresh_token: "refresh_token"
|
|
275
|
-
},
|
|
294
|
+
}, $ = {
|
|
276
295
|
base: "base",
|
|
277
296
|
"base-sepolia": "base-sepolia",
|
|
278
297
|
ethereum: "ethereum",
|
|
@@ -284,7 +303,7 @@ const e = {
|
|
|
284
303
|
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
285
304
|
world: "world",
|
|
286
305
|
"world-sepolia": "world-sepolia"
|
|
287
|
-
},
|
|
306
|
+
}, ee = {
|
|
288
307
|
base: "base",
|
|
289
308
|
"base-sepolia": "base-sepolia",
|
|
290
309
|
ethereum: "ethereum",
|
|
@@ -296,73 +315,84 @@ const e = {
|
|
|
296
315
|
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
297
316
|
world: "world",
|
|
298
317
|
"world-sepolia": "world-sepolia"
|
|
299
|
-
},
|
|
318
|
+
}, te = {
|
|
300
319
|
solana: "solana",
|
|
301
320
|
"solana-devnet": "solana-devnet"
|
|
302
|
-
},
|
|
321
|
+
}, ae = {
|
|
303
322
|
solana: "solana",
|
|
304
323
|
"solana-devnet": "solana-devnet"
|
|
305
|
-
},
|
|
324
|
+
}, oe = {
|
|
325
|
+
solana: "solana",
|
|
326
|
+
"solana-devnet": "solana-devnet"
|
|
327
|
+
}, ie = {
|
|
306
328
|
segwit: "segwit"
|
|
307
|
-
},
|
|
329
|
+
}, ne = {
|
|
308
330
|
bitcoin: "bitcoin",
|
|
309
331
|
"bitcoin-testnet": "bitcoin-testnet"
|
|
310
|
-
},
|
|
332
|
+
}, re = {
|
|
311
333
|
NUMBER_0: 0,
|
|
312
334
|
NUMBER_1: 1
|
|
313
335
|
};
|
|
314
336
|
export {
|
|
337
|
+
w as BorrowPositionHealthStatus,
|
|
338
|
+
h as BorrowProductAssetCapabilityType,
|
|
339
|
+
b as BorrowProductNetwork,
|
|
340
|
+
f as BorrowProductProtocol,
|
|
315
341
|
a as CapabilityName,
|
|
316
|
-
|
|
317
|
-
|
|
342
|
+
ie as CreateEndUserBtcAccountBodyAddressType,
|
|
343
|
+
ne as CreateEndUserBtcAccountBodyNetwork,
|
|
318
344
|
c as DeveloperJWTAuthenticationType,
|
|
319
345
|
l as EmailAuthenticationType,
|
|
320
346
|
m as EndUserBtcAccountAddressType,
|
|
321
347
|
y as EndUserBtcAccountNetwork,
|
|
322
|
-
|
|
323
|
-
|
|
348
|
+
W as EndUserOnrampFeeType,
|
|
349
|
+
V as EndUserOnrampOrderStatus,
|
|
324
350
|
t as ErrorType,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
351
|
+
S as EvmEip7702DelegationNetwork,
|
|
352
|
+
P as EvmEip7702DelegationOperationStatus,
|
|
353
|
+
k as EvmSwapsNetwork,
|
|
354
|
+
E as EvmUserOperationNetwork,
|
|
355
|
+
R as EvmUserOperationStatus,
|
|
330
356
|
s as InitiateEmailAuthenticationNextStepType,
|
|
331
|
-
|
|
332
|
-
|
|
357
|
+
i as InitiateEmailAuthenticationRequestType,
|
|
358
|
+
K as InitiatePasskeyMfaEnrollmentType,
|
|
333
359
|
r as InitiateSiweAuthenticationRequestType,
|
|
334
360
|
_ as InitiateSmsAuthenticationNextStepType,
|
|
335
361
|
n as InitiateSmsAuthenticationRequestType,
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
362
|
+
H as InitiateSmsMfaEnrollmentType,
|
|
363
|
+
G as InitiateTotpMfaEnrollmentType,
|
|
364
|
+
o as IosAttestationRegistrationResponsePlatform,
|
|
365
|
+
X as MfaMethod,
|
|
366
|
+
A as MfaVerificationScope,
|
|
367
|
+
N as MorphoBlueOnchainStateType,
|
|
368
|
+
v as MorphoBlueProtocolDetailsType,
|
|
369
|
+
z as Network,
|
|
341
370
|
e as OAuth2ProviderType,
|
|
342
|
-
|
|
343
|
-
|
|
371
|
+
J as OnrampQuotePaymentMethodTypeId,
|
|
372
|
+
g as OtpEmailLogoStatus,
|
|
344
373
|
u as PasskeySummaryTransportsItem,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
374
|
+
T as PasskeyUserVerification,
|
|
375
|
+
Q as RefreshAccessTokenBodyGrantType,
|
|
376
|
+
ee as SendEvmAssetWithEndUserAccountBodyNetwork,
|
|
377
|
+
$ as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
378
|
+
oe as SendSolanaAssetWithEndUserAccountBodyNetwork,
|
|
379
|
+
ae as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
380
|
+
re as SignBtcHashWithEndUserAccountBodyChange,
|
|
381
|
+
te as SignSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
352
382
|
p as SiweAuthenticationType,
|
|
353
383
|
d as SmsAuthenticationType,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
384
|
+
x as SpendPermissionNetwork,
|
|
385
|
+
j as SubmitPasskeyRegistrationType,
|
|
386
|
+
Z as SubmitPasskeyVerificationType,
|
|
387
|
+
L as X402BatchSettlementClaimPayloadType,
|
|
388
|
+
B as X402BatchSettlementDepositPayloadType,
|
|
389
|
+
I as X402BatchSettlementRefundPayloadType,
|
|
390
|
+
F as X402BatchSettlementSettlePayloadType,
|
|
391
|
+
C as X402BatchSettlementVoucherPayloadType,
|
|
392
|
+
D as X402V1Network,
|
|
393
|
+
Y as X402V1PaymentPayloadScheme,
|
|
394
|
+
M as X402V1PaymentRequirementsScheme,
|
|
395
|
+
O as X402V2Network,
|
|
396
|
+
U as X402V2PaymentRequirementsScheme,
|
|
397
|
+
q as X402Version
|
|
368
398
|
};
|