@coinbase/cdp-api-client 0.0.122 → 0.0.124

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.
@@ -1,4 +1,37 @@
1
- var r = {};
1
+ var o, u;
2
+ function c() {
3
+ if (u) return o;
4
+ u = 1;
5
+ var t = {
6
+ // UTF-8 encoding
7
+ utf8: {
8
+ // Convert a string to a byte array
9
+ stringToBytes: function(n) {
10
+ return t.bin.stringToBytes(unescape(encodeURIComponent(n)));
11
+ },
12
+ // Convert a byte array to a string
13
+ bytesToString: function(n) {
14
+ return decodeURIComponent(escape(t.bin.bytesToString(n)));
15
+ }
16
+ },
17
+ // Binary encoding
18
+ bin: {
19
+ // Convert a string to a byte array
20
+ stringToBytes: function(n) {
21
+ for (var e = [], r = 0; r < n.length; r++)
22
+ e.push(n.charCodeAt(r) & 255);
23
+ return e;
24
+ },
25
+ // Convert a byte array to a string
26
+ bytesToString: function(n) {
27
+ for (var e = [], r = 0; r < n.length; r++)
28
+ e.push(String.fromCharCode(n[r]));
29
+ return e.join("");
30
+ }
31
+ }
32
+ };
33
+ return o = t, o;
34
+ }
2
35
  export {
3
- r as __exports
36
+ c as __require
4
37
  };
@@ -1,4 +1,17 @@
1
- var e = { exports: {} };
1
+ var f, e;
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
+ }
2
15
  export {
3
- e as __module
16
+ t as __require
4
17
  };
@@ -1,4 +1,4 @@
1
- const o = "0.0.122";
1
+ const o = "0.0.124";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -106,9 +106,9 @@ const e = {
106
106
  transferCrypto: "transferCrypto",
107
107
  transferFiat: "transferFiat",
108
108
  transferStablecoin: "transferStablecoin"
109
- }, i = {
110
- ios: "ios"
111
109
  }, o = {
110
+ ios: "ios"
111
+ }, i = {
112
112
  email: "email"
113
113
  }, n = {
114
114
  sms: "sms"
@@ -154,11 +154,11 @@ const e = {
154
154
  approved: "approved",
155
155
  pending: "pending",
156
156
  rejected: "rejected"
157
- }, v = {
157
+ }, h = {
158
158
  required: "required",
159
159
  preferred: "preferred",
160
160
  discouraged: "discouraged"
161
- }, E = {
161
+ }, v = {
162
162
  "base-sepolia": "base-sepolia",
163
163
  base: "base",
164
164
  arbitrum: "arbitrum",
@@ -166,7 +166,7 @@ const e = {
166
166
  polygon: "polygon",
167
167
  ethereum: "ethereum",
168
168
  "ethereum-sepolia": "ethereum-sepolia"
169
- }, h = {
169
+ }, E = {
170
170
  UNSPECIFIED: "UNSPECIFIED",
171
171
  PENDING: "PENDING",
172
172
  SUBMITTED: "SUBMITTED",
@@ -189,15 +189,30 @@ const e = {
189
189
  avalanche: "avalanche",
190
190
  polygon: "polygon"
191
191
  }, A = {
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 = {
192
207
  base: "base",
193
208
  ethereum: "ethereum",
194
209
  arbitrum: "arbitrum",
195
210
  optimism: "optimism",
196
211
  polygon: "polygon"
197
- }, S = {
212
+ }, k = {
198
213
  NUMBER_1: 1,
199
214
  NUMBER_2: 2
200
- }, P = {
215
+ }, O = {
201
216
  "eip155:8453": "eip155:8453",
202
217
  "eip155:84532": "eip155:84532",
203
218
  "eip155:137": "eip155:137",
@@ -206,30 +221,30 @@ const e = {
206
221
  "eip155:4801": "eip155:4801",
207
222
  "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
208
223
  "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
209
- }, R = {
224
+ }, q = {
210
225
  exact: "exact",
211
226
  upto: "upto",
212
227
  "batch-settlement": "batch-settlement"
213
- }, N = {
228
+ }, U = {
214
229
  base: "base",
215
230
  "base-sepolia": "base-sepolia",
216
231
  solana: "solana",
217
232
  "solana-devnet": "solana-devnet"
218
- }, w = {
233
+ }, D = {
219
234
  exact: "exact"
220
- }, x = {
235
+ }, B = {
221
236
  deposit: "deposit"
222
- }, k = {
237
+ }, M = {
223
238
  voucher: "voucher"
224
- }, q = {
239
+ }, I = {
225
240
  refund: "refund"
226
- }, O = {
241
+ }, C = {
227
242
  claim: "claim"
228
- }, U = {
243
+ }, L = {
229
244
  settle: "settle"
230
- }, D = {
245
+ }, F = {
231
246
  exact: "exact"
232
- }, I = {
247
+ }, Y = {
233
248
  base: "base",
234
249
  ethereum: "ethereum",
235
250
  solana: "solana",
@@ -240,39 +255,39 @@ const e = {
240
255
  polygon: "polygon",
241
256
  world: "world",
242
257
  "world-sepolia": "world-sepolia"
243
- }, M = {
258
+ }, z = {
244
259
  FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK",
245
260
  FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE"
246
- }, C = {
261
+ }, W = {
247
262
  ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH",
248
263
  ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
249
264
  ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING",
250
265
  ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED",
251
266
  ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED"
252
- }, B = {
267
+ }, X = {
253
268
  totp: "totp",
254
269
  sms: "sms",
255
270
  passkey: "passkey"
256
- }, L = {
271
+ }, G = {
257
272
  totp: "totp"
258
- }, F = {
273
+ }, V = {
259
274
  sms: "sms"
260
- }, Y = {
275
+ }, H = {
261
276
  passkey: "passkey"
262
- }, z = {
277
+ }, K = {
263
278
  passkey: "passkey"
264
- }, W = {
279
+ }, j = {
265
280
  passkey: "passkey"
266
- }, X = {
281
+ }, Z = {
267
282
  CARD: "CARD",
268
283
  ACH: "ACH",
269
284
  APPLE_PAY: "APPLE_PAY",
270
285
  PAYPAL: "PAYPAL",
271
286
  FIAT_WALLET: "FIAT_WALLET",
272
287
  CRYPTO_WALLET: "CRYPTO_WALLET"
273
- }, G = {
288
+ }, J = {
274
289
  refresh_token: "refresh_token"
275
- }, V = {
290
+ }, Q = {
276
291
  base: "base",
277
292
  "base-sepolia": "base-sepolia",
278
293
  ethereum: "ethereum",
@@ -284,7 +299,7 @@ const e = {
284
299
  "arbitrum-sepolia": "arbitrum-sepolia",
285
300
  world: "world",
286
301
  "world-sepolia": "world-sepolia"
287
- }, K = {
302
+ }, $ = {
288
303
  base: "base",
289
304
  "base-sepolia": "base-sepolia",
290
305
  ethereum: "ethereum",
@@ -296,73 +311,79 @@ const e = {
296
311
  "arbitrum-sepolia": "arbitrum-sepolia",
297
312
  world: "world",
298
313
  "world-sepolia": "world-sepolia"
299
- }, H = {
314
+ }, ee = {
300
315
  solana: "solana",
301
316
  "solana-devnet": "solana-devnet"
302
- }, j = {
317
+ }, te = {
303
318
  solana: "solana",
304
319
  "solana-devnet": "solana-devnet"
305
- }, Z = {
320
+ }, ae = {
306
321
  segwit: "segwit"
307
- }, J = {
322
+ }, oe = {
308
323
  bitcoin: "bitcoin",
309
324
  "bitcoin-testnet": "bitcoin-testnet"
310
- }, Q = {
325
+ }, ie = {
311
326
  NUMBER_0: 0,
312
327
  NUMBER_1: 1
313
328
  };
314
329
  export {
330
+ A as BorrowPositionHealthStatus,
331
+ w as BorrowProductAssetCapabilityType,
332
+ P as BorrowProductNetwork,
333
+ R as BorrowProductProtocol,
315
334
  a as CapabilityName,
316
- Z as CreateEndUserBtcAccountBodyAddressType,
317
- J as CreateEndUserBtcAccountBodyNetwork,
335
+ ae as CreateEndUserBtcAccountBodyAddressType,
336
+ oe as CreateEndUserBtcAccountBodyNetwork,
318
337
  c as DeveloperJWTAuthenticationType,
319
338
  l as EmailAuthenticationType,
320
339
  m as EndUserBtcAccountAddressType,
321
340
  y as EndUserBtcAccountNetwork,
322
- M as EndUserOnrampFeeType,
323
- C as EndUserOnrampOrderStatus,
341
+ z as EndUserOnrampFeeType,
342
+ W as EndUserOnrampOrderStatus,
324
343
  t as ErrorType,
325
- E as EvmEip7702DelegationNetwork,
326
- h as EvmEip7702DelegationOperationStatus,
327
- A as EvmSwapsNetwork,
344
+ v as EvmEip7702DelegationNetwork,
345
+ E as EvmEip7702DelegationOperationStatus,
346
+ x as EvmSwapsNetwork,
328
347
  b as EvmUserOperationNetwork,
329
348
  g as EvmUserOperationStatus,
330
349
  s as InitiateEmailAuthenticationNextStepType,
331
- o as InitiateEmailAuthenticationRequestType,
332
- Y as InitiatePasskeyMfaEnrollmentType,
350
+ i as InitiateEmailAuthenticationRequestType,
351
+ H as InitiatePasskeyMfaEnrollmentType,
333
352
  r as InitiateSiweAuthenticationRequestType,
334
353
  _ as InitiateSmsAuthenticationNextStepType,
335
354
  n as InitiateSmsAuthenticationRequestType,
336
- F as InitiateSmsMfaEnrollmentType,
337
- L as InitiateTotpMfaEnrollmentType,
338
- i as IosAttestationRegistrationResponsePlatform,
339
- B as MfaMethod,
340
- I as Network,
355
+ V as InitiateSmsMfaEnrollmentType,
356
+ G as InitiateTotpMfaEnrollmentType,
357
+ o as IosAttestationRegistrationResponsePlatform,
358
+ X as MfaMethod,
359
+ S as MorphoBlueOnchainStateType,
360
+ N as MorphoBlueProtocolDetailsType,
361
+ Y as Network,
341
362
  e as OAuth2ProviderType,
342
- X as OnrampQuotePaymentMethodTypeId,
363
+ Z as OnrampQuotePaymentMethodTypeId,
343
364
  f as OtpEmailLogoStatus,
344
365
  u as PasskeySummaryTransportsItem,
345
- v as PasskeyUserVerification,
346
- G as RefreshAccessTokenBodyGrantType,
347
- K as SendEvmAssetWithEndUserAccountBodyNetwork,
348
- V as SendEvmTransactionWithEndUserAccountBodyNetwork,
349
- j as SendSolanaAssetWithEndUserAccountBodyNetwork,
350
- H as SendSolanaTransactionWithEndUserAccountBodyNetwork,
351
- Q as SignBtcHashWithEndUserAccountBodyChange,
366
+ h as PasskeyUserVerification,
367
+ J as RefreshAccessTokenBodyGrantType,
368
+ $ as SendEvmAssetWithEndUserAccountBodyNetwork,
369
+ Q as SendEvmTransactionWithEndUserAccountBodyNetwork,
370
+ te as SendSolanaAssetWithEndUserAccountBodyNetwork,
371
+ ee as SendSolanaTransactionWithEndUserAccountBodyNetwork,
372
+ ie as SignBtcHashWithEndUserAccountBodyChange,
352
373
  p as SiweAuthenticationType,
353
374
  d as SmsAuthenticationType,
354
375
  T as SpendPermissionNetwork,
355
- z as SubmitPasskeyRegistrationType,
356
- W as SubmitPasskeyVerificationType,
357
- O as X402BatchSettlementClaimPayloadType,
358
- x as X402BatchSettlementDepositPayloadType,
359
- q as X402BatchSettlementRefundPayloadType,
360
- U as X402BatchSettlementSettlePayloadType,
361
- k as X402BatchSettlementVoucherPayloadType,
362
- N as X402V1Network,
363
- D as X402V1PaymentPayloadScheme,
364
- w as X402V1PaymentRequirementsScheme,
365
- P as X402V2Network,
366
- R as X402V2PaymentRequirementsScheme,
367
- S as X402Version
376
+ K as SubmitPasskeyRegistrationType,
377
+ j as SubmitPasskeyVerificationType,
378
+ C as X402BatchSettlementClaimPayloadType,
379
+ B as X402BatchSettlementDepositPayloadType,
380
+ I as X402BatchSettlementRefundPayloadType,
381
+ L as X402BatchSettlementSettlePayloadType,
382
+ M as X402BatchSettlementVoucherPayloadType,
383
+ U as X402V1Network,
384
+ F as X402V1PaymentPayloadScheme,
385
+ D as X402V1PaymentRequirementsScheme,
386
+ O as X402V2Network,
387
+ q as X402V2PaymentRequirementsScheme,
388
+ k as X402Version
368
389
  };