@coinbase/cdp-api-client 0.0.124 → 0.0.126
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 +124 -121
- package/dist/esm/index11.js +1 -1
- package/dist/esm/index15.js +1 -1
- package/dist/esm/index16.js +1 -1
- package/dist/esm/index17.js +39 -2
- package/dist/esm/index19.js +67 -36
- package/dist/esm/index20.js +35 -2
- package/dist/esm/index21.js +14 -69
- package/dist/esm/index22.js +2 -35
- package/dist/esm/index23.js +2 -15
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +99 -90
- package/dist/esm/index6.js +220 -199
- package/dist/esm/index7.js +22 -15
- package/dist/esm/index8.js +116 -106
- package/dist/types/index.d.ts +202 -23
- package/package.json +1 -1
package/dist/esm/index23.js
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
var
|
|
2
|
-
function t() {
|
|
3
|
-
if (e) return f;
|
|
4
|
-
e = 1, f = function(r) {
|
|
5
|
-
return r != null && (u(r) || n(r) || !!r._isBuffer);
|
|
6
|
-
};
|
|
7
|
-
function u(r) {
|
|
8
|
-
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
9
|
-
}
|
|
10
|
-
function n(r) {
|
|
11
|
-
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && u(r.slice(0, 0));
|
|
12
|
-
}
|
|
13
|
-
return f;
|
|
14
|
-
}
|
|
1
|
+
var e = { exports: {} };
|
|
15
2
|
export {
|
|
16
|
-
|
|
3
|
+
e as __module
|
|
17
4
|
};
|
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,14 +99,14 @@ 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
|
-
|
|
102
|
+
CustodyCrypto: "custodyCrypto",
|
|
103
|
+
CustodyFiat: "custodyFiat",
|
|
104
|
+
CustodyStablecoin: "custodyStablecoin",
|
|
105
|
+
TradeCrypto: "tradeCrypto",
|
|
106
|
+
TradeStablecoin: "tradeStablecoin",
|
|
107
|
+
TransferCrypto: "transferCrypto",
|
|
108
|
+
TransferFiat: "transferFiat",
|
|
109
|
+
TransferStablecoin: "transferStablecoin"
|
|
109
110
|
}, o = {
|
|
110
111
|
ios: "ios"
|
|
111
112
|
}, i = {
|
|
@@ -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,28 +207,13 @@ const e = {
|
|
|
188
207
|
arbitrum: "arbitrum",
|
|
189
208
|
avalanche: "avalanche",
|
|
190
209
|
polygon: "polygon"
|
|
191
|
-
},
|
|
192
|
-
no_debt: "no_debt",
|
|
193
|
-
healthy: "healthy",
|
|
194
|
-
undercollateralized: "undercollateralized"
|
|
195
|
-
}, S = {
|
|
196
|
-
morpho_blue: "morpho_blue"
|
|
197
|
-
}, P = {
|
|
198
|
-
base: "base"
|
|
199
|
-
}, R = {
|
|
200
|
-
morpho_blue: "morpho_blue"
|
|
201
|
-
}, w = {
|
|
202
|
-
collateral: "collateral",
|
|
203
|
-
debt: "debt"
|
|
204
|
-
}, N = {
|
|
205
|
-
morpho_blue: "morpho_blue"
|
|
206
|
-
}, x = {
|
|
210
|
+
}, k = {
|
|
207
211
|
base: "base",
|
|
208
212
|
ethereum: "ethereum",
|
|
209
213
|
arbitrum: "arbitrum",
|
|
210
214
|
optimism: "optimism",
|
|
211
215
|
polygon: "polygon"
|
|
212
|
-
},
|
|
216
|
+
}, q = {
|
|
213
217
|
NUMBER_1: 1,
|
|
214
218
|
NUMBER_2: 2
|
|
215
219
|
}, O = {
|
|
@@ -221,30 +225,30 @@ const e = {
|
|
|
221
225
|
"eip155:4801": "eip155:4801",
|
|
222
226
|
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
223
227
|
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
|
|
224
|
-
},
|
|
228
|
+
}, U = {
|
|
225
229
|
exact: "exact",
|
|
226
230
|
upto: "upto",
|
|
227
231
|
"batch-settlement": "batch-settlement"
|
|
228
|
-
},
|
|
232
|
+
}, D = {
|
|
229
233
|
base: "base",
|
|
230
234
|
"base-sepolia": "base-sepolia",
|
|
231
235
|
solana: "solana",
|
|
232
236
|
"solana-devnet": "solana-devnet"
|
|
233
|
-
},
|
|
237
|
+
}, M = {
|
|
234
238
|
exact: "exact"
|
|
235
239
|
}, B = {
|
|
236
240
|
deposit: "deposit"
|
|
237
|
-
},
|
|
241
|
+
}, C = {
|
|
238
242
|
voucher: "voucher"
|
|
239
243
|
}, I = {
|
|
240
244
|
refund: "refund"
|
|
241
|
-
}, C = {
|
|
242
|
-
claim: "claim"
|
|
243
245
|
}, L = {
|
|
244
|
-
|
|
246
|
+
claim: "claim"
|
|
245
247
|
}, F = {
|
|
246
|
-
|
|
248
|
+
settle: "settle"
|
|
247
249
|
}, Y = {
|
|
250
|
+
exact: "exact"
|
|
251
|
+
}, z = {
|
|
248
252
|
base: "base",
|
|
249
253
|
ethereum: "ethereum",
|
|
250
254
|
solana: "solana",
|
|
@@ -255,10 +259,10 @@ const e = {
|
|
|
255
259
|
polygon: "polygon",
|
|
256
260
|
world: "world",
|
|
257
261
|
"world-sepolia": "world-sepolia"
|
|
258
|
-
},
|
|
262
|
+
}, W = {
|
|
259
263
|
FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK",
|
|
260
264
|
FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE"
|
|
261
|
-
},
|
|
265
|
+
}, V = {
|
|
262
266
|
ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH",
|
|
263
267
|
ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
|
|
264
268
|
ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING",
|
|
@@ -270,24 +274,24 @@ const e = {
|
|
|
270
274
|
passkey: "passkey"
|
|
271
275
|
}, G = {
|
|
272
276
|
totp: "totp"
|
|
273
|
-
}, V = {
|
|
274
|
-
sms: "sms"
|
|
275
277
|
}, H = {
|
|
276
|
-
|
|
278
|
+
sms: "sms"
|
|
277
279
|
}, K = {
|
|
278
280
|
passkey: "passkey"
|
|
279
281
|
}, j = {
|
|
280
282
|
passkey: "passkey"
|
|
281
283
|
}, Z = {
|
|
284
|
+
passkey: "passkey"
|
|
285
|
+
}, J = {
|
|
282
286
|
CARD: "CARD",
|
|
283
287
|
ACH: "ACH",
|
|
284
288
|
APPLE_PAY: "APPLE_PAY",
|
|
285
289
|
PAYPAL: "PAYPAL",
|
|
286
290
|
FIAT_WALLET: "FIAT_WALLET",
|
|
287
291
|
CRYPTO_WALLET: "CRYPTO_WALLET"
|
|
288
|
-
}, J = {
|
|
289
|
-
refresh_token: "refresh_token"
|
|
290
292
|
}, Q = {
|
|
293
|
+
refresh_token: "refresh_token"
|
|
294
|
+
}, $ = {
|
|
291
295
|
base: "base",
|
|
292
296
|
"base-sepolia": "base-sepolia",
|
|
293
297
|
ethereum: "ethereum",
|
|
@@ -299,7 +303,7 @@ const e = {
|
|
|
299
303
|
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
300
304
|
world: "world",
|
|
301
305
|
"world-sepolia": "world-sepolia"
|
|
302
|
-
},
|
|
306
|
+
}, ee = {
|
|
303
307
|
base: "base",
|
|
304
308
|
"base-sepolia": "base-sepolia",
|
|
305
309
|
ethereum: "ethereum",
|
|
@@ -311,79 +315,84 @@ const e = {
|
|
|
311
315
|
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
312
316
|
world: "world",
|
|
313
317
|
"world-sepolia": "world-sepolia"
|
|
314
|
-
}, ee = {
|
|
315
|
-
solana: "solana",
|
|
316
|
-
"solana-devnet": "solana-devnet"
|
|
317
318
|
}, te = {
|
|
318
319
|
solana: "solana",
|
|
319
320
|
"solana-devnet": "solana-devnet"
|
|
320
321
|
}, ae = {
|
|
321
|
-
|
|
322
|
+
solana: "solana",
|
|
323
|
+
"solana-devnet": "solana-devnet"
|
|
322
324
|
}, oe = {
|
|
325
|
+
solana: "solana",
|
|
326
|
+
"solana-devnet": "solana-devnet"
|
|
327
|
+
}, ie = {
|
|
328
|
+
segwit: "segwit"
|
|
329
|
+
}, ne = {
|
|
323
330
|
bitcoin: "bitcoin",
|
|
324
331
|
"bitcoin-testnet": "bitcoin-testnet"
|
|
325
|
-
},
|
|
332
|
+
}, re = {
|
|
326
333
|
NUMBER_0: 0,
|
|
327
334
|
NUMBER_1: 1
|
|
328
335
|
};
|
|
329
336
|
export {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
337
|
+
w as BorrowPositionHealthStatus,
|
|
338
|
+
h as BorrowProductAssetCapabilityType,
|
|
339
|
+
b as BorrowProductNetwork,
|
|
340
|
+
f as BorrowProductProtocol,
|
|
334
341
|
a as CapabilityName,
|
|
335
|
-
|
|
336
|
-
|
|
342
|
+
ie as CreateEndUserBtcAccountBodyAddressType,
|
|
343
|
+
ne as CreateEndUserBtcAccountBodyNetwork,
|
|
337
344
|
c as DeveloperJWTAuthenticationType,
|
|
338
345
|
l as EmailAuthenticationType,
|
|
339
346
|
m as EndUserBtcAccountAddressType,
|
|
340
347
|
y as EndUserBtcAccountNetwork,
|
|
341
|
-
|
|
342
|
-
|
|
348
|
+
W as EndUserOnrampFeeType,
|
|
349
|
+
V as EndUserOnrampOrderStatus,
|
|
343
350
|
t as ErrorType,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
351
|
+
S as EvmEip7702DelegationNetwork,
|
|
352
|
+
P as EvmEip7702DelegationOperationStatus,
|
|
353
|
+
k as EvmSwapsNetwork,
|
|
354
|
+
E as EvmUserOperationNetwork,
|
|
355
|
+
R as EvmUserOperationStatus,
|
|
349
356
|
s as InitiateEmailAuthenticationNextStepType,
|
|
350
357
|
i as InitiateEmailAuthenticationRequestType,
|
|
351
|
-
|
|
358
|
+
K as InitiatePasskeyMfaEnrollmentType,
|
|
352
359
|
r as InitiateSiweAuthenticationRequestType,
|
|
353
360
|
_ as InitiateSmsAuthenticationNextStepType,
|
|
354
361
|
n as InitiateSmsAuthenticationRequestType,
|
|
355
|
-
|
|
362
|
+
H as InitiateSmsMfaEnrollmentType,
|
|
356
363
|
G as InitiateTotpMfaEnrollmentType,
|
|
357
364
|
o as IosAttestationRegistrationResponsePlatform,
|
|
358
365
|
X as MfaMethod,
|
|
359
|
-
|
|
360
|
-
N as
|
|
361
|
-
|
|
366
|
+
A as MfaVerificationScope,
|
|
367
|
+
N as MorphoBlueOnchainStateType,
|
|
368
|
+
v as MorphoBlueProtocolDetailsType,
|
|
369
|
+
z as Network,
|
|
362
370
|
e as OAuth2ProviderType,
|
|
363
|
-
|
|
364
|
-
|
|
371
|
+
J as OnrampQuotePaymentMethodTypeId,
|
|
372
|
+
g as OtpEmailLogoStatus,
|
|
365
373
|
u as PasskeySummaryTransportsItem,
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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,
|
|
373
382
|
p as SiweAuthenticationType,
|
|
374
383
|
d as SmsAuthenticationType,
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
384
|
+
x as SpendPermissionNetwork,
|
|
385
|
+
j as SubmitPasskeyRegistrationType,
|
|
386
|
+
Z as SubmitPasskeyVerificationType,
|
|
387
|
+
L as X402BatchSettlementClaimPayloadType,
|
|
379
388
|
B as X402BatchSettlementDepositPayloadType,
|
|
380
389
|
I as X402BatchSettlementRefundPayloadType,
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
390
|
+
F as X402BatchSettlementSettlePayloadType,
|
|
391
|
+
C as X402BatchSettlementVoucherPayloadType,
|
|
392
|
+
D as X402V1Network,
|
|
393
|
+
Y as X402V1PaymentPayloadScheme,
|
|
394
|
+
M as X402V1PaymentRequirementsScheme,
|
|
386
395
|
O as X402V2Network,
|
|
387
|
-
|
|
388
|
-
|
|
396
|
+
U as X402V2PaymentRequirementsScheme,
|
|
397
|
+
q as X402Version
|
|
389
398
|
};
|