@coinbase/cdp-api-client 0.0.105 → 0.0.107

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,2 +1,2 @@
1
- import { __require as r } from "./index12.js";
1
+ import { __require as r } from "./index17.js";
2
2
  r();
@@ -1,4 +1,4 @@
1
- const o = "0.0.105";
1
+ const o = "0.0.106";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -4,6 +4,7 @@ const e = {
4
4
  bad_gateway: "bad_gateway",
5
5
  capture_expired: "capture_expired",
6
6
  client_closed_request: "client_closed_request",
7
+ endpoint_unavailable: "endpoint_unavailable",
7
8
  faucet_limit_exceeded: "faucet_limit_exceeded",
8
9
  forbidden: "forbidden",
9
10
  idempotency_error: "idempotency_error",
@@ -21,6 +22,7 @@ const e = {
21
22
  service_unavailable: "service_unavailable",
22
23
  timed_out: "timed_out",
23
24
  unauthorized: "unauthorized",
25
+ unsupported_tos_language: "unsupported_tos_language",
24
26
  policy_violation: "policy_violation",
25
27
  policy_in_use: "policy_in_use",
26
28
  account_limit_exceeded: "account_limit_exceeded",
@@ -45,6 +47,7 @@ const e = {
45
47
  target_onchain_address_invalid: "target_onchain_address_invalid",
46
48
  transfer_amount_invalid: "transfer_amount_invalid",
47
49
  transfer_asset_not_supported: "transfer_asset_not_supported",
50
+ transfer_quote_expired: "transfer_quote_expired",
48
51
  insufficient_balance: "insufficient_balance",
49
52
  metadata_too_many_entries: "metadata_too_many_entries",
50
53
  metadata_key_too_long: "metadata_key_too_long",
@@ -62,14 +65,19 @@ const e = {
62
65
  account_not_ready: "account_not_ready",
63
66
  insufficient_liquidity: "insufficient_liquidity",
64
67
  insufficient_allowance: "insufficient_allowance",
65
- transaction_simulation_failed: "transaction_simulation_failed"
68
+ transaction_simulation_failed: "transaction_simulation_failed",
69
+ delegation_not_found: "delegation_not_found",
70
+ delegation_expired: "delegation_expired",
71
+ delegation_revoked: "delegation_revoked",
72
+ delegation_not_authorized: "delegation_not_authorized",
73
+ delegation_not_enabled: "delegation_not_enabled"
66
74
  }, t = {
67
75
  ios: "ios"
68
- }, a = {
69
- email: "email"
70
76
  }, i = {
71
- sms: "sms"
77
+ email: "email"
72
78
  }, o = {
79
+ sms: "sms"
80
+ }, a = {
73
81
  google: "google",
74
82
  apple: "apple",
75
83
  x: "x",
@@ -87,9 +95,14 @@ const e = {
87
95
  sms: "sms"
88
96
  }, d = {
89
97
  jwt: "jwt"
90
- }, m = {
98
+ }, c = {
91
99
  siwe: "siwe"
92
100
  }, u = {
101
+ segwit: "segwit"
102
+ }, p = {
103
+ bitcoin: "bitcoin",
104
+ "bitcoin-testnet": "bitcoin-testnet"
105
+ }, m = {
93
106
  "base-sepolia": "base-sepolia",
94
107
  base: "base",
95
108
  arbitrum: "arbitrum",
@@ -97,13 +110,13 @@ const e = {
97
110
  polygon: "polygon",
98
111
  ethereum: "ethereum",
99
112
  "ethereum-sepolia": "ethereum-sepolia"
100
- }, c = {
113
+ }, E = {
101
114
  UNSPECIFIED: "UNSPECIFIED",
102
115
  PENDING: "PENDING",
103
116
  SUBMITTED: "SUBMITTED",
104
117
  COMPLETED: "COMPLETED",
105
118
  FAILED: "FAILED"
106
- }, p = {
119
+ }, g = {
107
120
  "base-sepolia": "base-sepolia",
108
121
  base: "base",
109
122
  arbitrum: "arbitrum",
@@ -114,14 +127,14 @@ const e = {
114
127
  avalanche: "avalanche",
115
128
  ethereum: "ethereum",
116
129
  "ethereum-sepolia": "ethereum-sepolia"
117
- }, E = {
130
+ }, b = {
118
131
  pending: "pending",
119
132
  signed: "signed",
120
133
  broadcast: "broadcast",
121
134
  complete: "complete",
122
135
  dropped: "dropped",
123
136
  failed: "failed"
124
- }, f = {
137
+ }, y = {
125
138
  base: "base",
126
139
  "base-sepolia": "base-sepolia",
127
140
  ethereum: "ethereum",
@@ -130,13 +143,13 @@ const e = {
130
143
  arbitrum: "arbitrum",
131
144
  avalanche: "avalanche",
132
145
  polygon: "polygon"
133
- }, y = {
146
+ }, f = {
134
147
  base: "base",
135
148
  ethereum: "ethereum",
136
149
  arbitrum: "arbitrum",
137
150
  optimism: "optimism",
138
151
  polygon: "polygon"
139
- }, b = {
152
+ }, h = {
140
153
  base: "base",
141
154
  ethereum: "ethereum",
142
155
  solana: "solana",
@@ -150,22 +163,22 @@ const e = {
150
163
  }, v = {
151
164
  FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK",
152
165
  FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE"
153
- }, h = {
166
+ }, T = {
154
167
  ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH",
155
168
  ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
156
169
  ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING",
157
170
  ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED",
158
171
  ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED"
159
- }, g = {
172
+ }, A = {
160
173
  totp: "totp",
161
174
  sms: "sms"
162
- }, T = {
175
+ }, w = {
163
176
  totp: "totp"
164
- }, A = {
165
- sms: "sms"
166
177
  }, S = {
167
- refresh_token: "refresh_token"
178
+ sms: "sms"
168
179
  }, N = {
180
+ refresh_token: "refresh_token"
181
+ }, R = {
169
182
  base: "base",
170
183
  "base-sepolia": "base-sepolia",
171
184
  ethereum: "ethereum",
@@ -177,7 +190,7 @@ const e = {
177
190
  "arbitrum-sepolia": "arbitrum-sepolia",
178
191
  world: "world",
179
192
  "world-sepolia": "world-sepolia"
180
- }, w = {
193
+ }, O = {
181
194
  base: "base",
182
195
  "base-sepolia": "base-sepolia",
183
196
  ethereum: "ethereum",
@@ -189,41 +202,61 @@ const e = {
189
202
  "arbitrum-sepolia": "arbitrum-sepolia",
190
203
  world: "world",
191
204
  "world-sepolia": "world-sepolia"
192
- }, R = {
205
+ }, P = {
193
206
  solana: "solana",
194
207
  "solana-devnet": "solana-devnet"
195
- }, O = {
208
+ }, U = {
196
209
  solana: "solana",
197
210
  "solana-devnet": "solana-devnet"
211
+ }, D = {
212
+ segwit: "segwit"
213
+ }, x = {
214
+ bitcoin: "bitcoin",
215
+ "bitcoin-testnet": "bitcoin-testnet"
216
+ }, I = {
217
+ segwit: "segwit"
218
+ }, q = {
219
+ bitcoin: "bitcoin",
220
+ "bitcoin-testnet": "bitcoin-testnet"
221
+ }, M = {
222
+ NUMBER_0: 0,
223
+ NUMBER_1: 1
198
224
  };
199
225
  export {
226
+ D as CreateEndUserBtcAccountBodyAddressType,
227
+ x as CreateEndUserBtcAccountBodyNetwork,
200
228
  d as DeveloperJWTAuthenticationType,
201
229
  _ as EmailAuthenticationType,
230
+ u as EndUserBtcAccountAddressType,
231
+ p as EndUserBtcAccountNetwork,
202
232
  v as EndUserOnrampFeeType,
203
- h as EndUserOnrampOrderStatus,
233
+ T as EndUserOnrampOrderStatus,
204
234
  e as ErrorType,
205
- u as EvmEip7702DelegationNetwork,
206
- c as EvmEip7702DelegationOperationStatus,
207
- y as EvmSwapsNetwork,
208
- p as EvmUserOperationNetwork,
209
- E as EvmUserOperationStatus,
235
+ m as EvmEip7702DelegationNetwork,
236
+ E as EvmEip7702DelegationOperationStatus,
237
+ f as EvmSwapsNetwork,
238
+ g as EvmUserOperationNetwork,
239
+ b as EvmUserOperationStatus,
210
240
  r as InitiateEmailAuthenticationNextStepType,
211
- a as InitiateEmailAuthenticationRequestType,
241
+ i as InitiateEmailAuthenticationRequestType,
212
242
  n as InitiateSiweAuthenticationRequestType,
213
243
  s as InitiateSmsAuthenticationNextStepType,
214
- i as InitiateSmsAuthenticationRequestType,
215
- A as InitiateSmsMfaEnrollmentType,
216
- T as InitiateTotpMfaEnrollmentType,
244
+ o as InitiateSmsAuthenticationRequestType,
245
+ S as InitiateSmsMfaEnrollmentType,
246
+ w as InitiateTotpMfaEnrollmentType,
217
247
  t as IosAttestationRegistrationResponsePlatform,
218
- g as MfaMethod,
219
- b as Network,
220
- o as OAuth2ProviderType,
221
- S as RefreshAccessTokenBodyGrantType,
222
- w as SendEvmAssetWithEndUserAccountBodyNetwork,
223
- N as SendEvmTransactionWithEndUserAccountBodyNetwork,
224
- O as SendSolanaAssetWithEndUserAccountBodyNetwork,
225
- R as SendSolanaTransactionWithEndUserAccountBodyNetwork,
226
- m as SiweAuthenticationType,
248
+ A as MfaMethod,
249
+ h as Network,
250
+ a as OAuth2ProviderType,
251
+ N as RefreshAccessTokenBodyGrantType,
252
+ O as SendEvmAssetWithEndUserAccountBodyNetwork,
253
+ R as SendEvmTransactionWithEndUserAccountBodyNetwork,
254
+ U as SendSolanaAssetWithEndUserAccountBodyNetwork,
255
+ P as SendSolanaTransactionWithEndUserAccountBodyNetwork,
256
+ I as SignBtcHashWithEndUserAccountBodyAddressType,
257
+ M as SignBtcHashWithEndUserAccountBodyChange,
258
+ q as SignBtcHashWithEndUserAccountBodyNetwork,
259
+ c as SiweAuthenticationType,
227
260
  l as SmsAuthenticationType,
228
- f as SpendPermissionNetwork
261
+ y as SpendPermissionNetwork
229
262
  };
@@ -18,7 +18,7 @@ const i = (e, t) => d(
18
18
  data: t
19
19
  },
20
20
  n
21
- ), u = (e, t, n) => d(
21
+ ), c = (e, t, n) => d(
22
22
  {
23
23
  url: `/v2/embedded-wallet-api/projects/${e}/auth/verify/email`,
24
24
  method: "POST",
@@ -26,7 +26,7 @@ const i = (e, t) => d(
26
26
  data: t
27
27
  },
28
28
  n
29
- ), c = (e, t, n) => d(
29
+ ), u = (e, t, n) => d(
30
30
  {
31
31
  url: `/v2/embedded-wallet-api/projects/${e}/auth/verify/sms`,
32
32
  method: "POST",
@@ -50,7 +50,7 @@ const i = (e, t) => d(
50
50
  data: n
51
51
  },
52
52
  a
53
- ), v = (e, t, n) => d(
53
+ ), T = (e, t, n) => d(
54
54
  {
55
55
  url: `/v2/embedded-wallet-api/projects/${e}/auth/verify/siwe`,
56
56
  method: "POST",
@@ -58,7 +58,7 @@ const i = (e, t) => d(
58
58
  data: t
59
59
  },
60
60
  n
61
- ), T = (e, t, n) => d(
61
+ ), v = (e, t, n) => d(
62
62
  {
63
63
  url: `/v2/embedded-wallet-api/projects/${e}/auth/refresh`,
64
64
  method: "POST",
@@ -225,14 +225,14 @@ const i = (e, t) => d(
225
225
  params: n
226
226
  },
227
227
  a
228
- ), H = (e, t, n, a) => d(
228
+ ), B = (e, t, n, a) => d(
229
229
  {
230
230
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/eip7702/delegation-operations/${t}`,
231
231
  method: "GET",
232
232
  params: n
233
233
  },
234
234
  a
235
- ), I = (e, t, n, a) => d(
235
+ ), H = (e, t, n, a) => d(
236
236
  {
237
237
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts`,
238
238
  method: "POST",
@@ -241,14 +241,14 @@ const i = (e, t) => d(
241
241
  params: n
242
242
  },
243
243
  a
244
- ), L = (e, t, n, a, r) => d(
244
+ ), I = (e, t, n, a, r) => d(
245
245
  {
246
246
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts/${t}/user-operations/${n}`,
247
247
  method: "GET",
248
248
  params: a
249
249
  },
250
250
  r
251
- ), V = (e, t, n, a, r) => d(
251
+ ), L = (e, t, n, a, r) => d(
252
252
  {
253
253
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts/${t}/send`,
254
254
  method: "POST",
@@ -257,7 +257,7 @@ const i = (e, t) => d(
257
257
  params: a
258
258
  },
259
259
  r
260
- ), B = (e, t, n, a, r) => d(
260
+ ), V = (e, t, n, a, r) => d(
261
261
  {
262
262
  url: `/v2/embedded-wallet-api/end-users/${e}/evm/smart-accounts/${t}/spend-permissions`,
263
263
  method: "POST",
@@ -359,7 +359,7 @@ const i = (e, t) => d(
359
359
  s
360
360
  ), ee = (e, t, n, a) => d(
361
361
  {
362
- url: `/v2/embedded-wallet-api/end-users/${e}/onramp/orders`,
362
+ url: `/v2/embedded-wallet-api/end-users/${e}/btc`,
363
363
  method: "POST",
364
364
  headers: { "Content-Type": "application/json" },
365
365
  data: t,
@@ -367,13 +367,31 @@ const i = (e, t) => d(
367
367
  },
368
368
  a
369
369
  ), te = (e, t, n, a) => d(
370
+ {
371
+ url: `/v2/embedded-wallet-api/end-users/${e}/btc/sign`,
372
+ method: "POST",
373
+ headers: { "Content-Type": "application/json" },
374
+ data: t,
375
+ params: n
376
+ },
377
+ a
378
+ ), ne = (e, t, n, a) => d(
379
+ {
380
+ url: `/v2/embedded-wallet-api/end-users/${e}/onramp/orders`,
381
+ method: "POST",
382
+ headers: { "Content-Type": "application/json" },
383
+ data: t,
384
+ params: n
385
+ },
386
+ a
387
+ ), ae = (e, t, n, a) => d(
370
388
  {
371
389
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/enroll/${t}/init`,
372
390
  method: "POST",
373
391
  params: n
374
392
  },
375
393
  a
376
- ), ne = (e, t, n, a, r) => d(
394
+ ), de = (e, t, n, a, r) => d(
377
395
  {
378
396
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/enroll/${t}/initiate`,
379
397
  method: "POST",
@@ -382,7 +400,7 @@ const i = (e, t) => d(
382
400
  params: a
383
401
  },
384
402
  r
385
- ), ae = (e, t, n, a, r) => d(
403
+ ), re = (e, t, n, a, r) => d(
386
404
  {
387
405
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/enroll/${t}/submit`,
388
406
  method: "POST",
@@ -391,14 +409,14 @@ const i = (e, t) => d(
391
409
  params: a
392
410
  },
393
411
  r
394
- ), de = (e, t, n, a) => d(
412
+ ), se = (e, t, n, a) => d(
395
413
  {
396
414
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/verify/${t}/init`,
397
415
  method: "POST",
398
416
  params: n
399
417
  },
400
418
  a
401
- ), re = (e, t, n, a, r) => d(
419
+ ), oe = (e, t, n, a, r) => d(
402
420
  {
403
421
  url: `/v2/embedded-wallet-api/end-users/${e}/mfa/verify/${t}/submit`,
404
422
  method: "POST",
@@ -407,7 +425,7 @@ const i = (e, t) => d(
407
425
  params: a
408
426
  },
409
427
  r
410
- ), se = (e, t, n) => d(
428
+ ), ie = (e, t, n) => d(
411
429
  { url: `/v2/embedded-wallet-api/end-users/${e}/mfa/prompt`, method: "PUT", params: t },
412
430
  n
413
431
  );
@@ -415,13 +433,14 @@ export {
415
433
  E as authenticateUserWithCustomAuth,
416
434
  W as createDelegationForEndUser,
417
435
  M as createDelegationForEndUserAccount,
418
- ee as createEndUserApplePayOnrampOrder,
436
+ ne as createEndUserApplePayOnrampOrder,
437
+ ee as createEndUserBtcAccount,
419
438
  g as createEndUserEvmAccount,
420
- I as createEndUserEvmSmartAccount,
439
+ H as createEndUserEvmSmartAccount,
421
440
  K as createEndUserEvmSwap,
422
441
  N as createEndUserSolanaAccount,
423
442
  x as createEvmEip7702DelegationWithEndUserAccount,
424
- B as createSpendPermissionWithEndUserAccount,
443
+ V as createSpendPermissionWithEndUserAccount,
425
444
  f as exportEndUserEvmAccount,
426
445
  Q as exportEndUserSolanaAccount,
427
446
  i as generateAttestationChallenge,
@@ -429,18 +448,18 @@ export {
429
448
  D as getDelegationForEndUser,
430
449
  F as getDelegationForEndUserAccount,
431
450
  J as getEndUserEvmSwapPrice,
432
- H as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
451
+ B as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
433
452
  b as getMfaConfig,
434
453
  w as getProjectConfig,
435
- L as getUserOperationWithEndUserAccount,
454
+ I as getUserOperationWithEndUserAccount,
436
455
  p as initiateAuthentication,
437
- te as initiateMfaEnrollment,
438
- ne as initiateMfaEnrollment2,
439
- de as initiateMfaVerification,
456
+ ae as initiateMfaEnrollment,
457
+ de as initiateMfaEnrollment2,
458
+ se as initiateMfaVerification,
440
459
  q as listSpendPermissionsWithEndUserAccount,
441
460
  $ as logOutEndUser,
442
- se as recordMfaEnrollmentPrompted,
443
- T as refreshAccessToken,
461
+ ie as recordMfaEnrollmentPrompted,
462
+ v as refreshAccessToken,
444
463
  l as registerAttestation,
445
464
  S as registerTemporaryWalletSecret,
446
465
  G as revokeDelegationForEndUser,
@@ -450,7 +469,8 @@ export {
450
469
  O as sendEvmTransactionWithEndUserAccount,
451
470
  _ as sendSolanaAssetWithEndUserAccount,
452
471
  Z as sendSolanaTransactionWithEndUserAccount,
453
- V as sendUserOperationWithEndUserAccount,
472
+ L as sendUserOperationWithEndUserAccount,
473
+ te as signBtcHashWithEndUserAccount,
454
474
  j as signEvmHashWithEndUserAccount,
455
475
  A as signEvmMessageWithEndUserAccount,
456
476
  P as signEvmTransactionWithEndUserAccount,
@@ -458,11 +478,11 @@ export {
458
478
  R as signSolanaHashWithEndUserAccount,
459
479
  X as signSolanaMessageWithEndUserAccount,
460
480
  Y as signSolanaTransactionWithEndUserAccount,
461
- ae as submitMfaEnrollment,
462
- re as submitMfaVerification,
463
- u as verifyEmailAuthentication,
481
+ re as submitMfaEnrollment,
482
+ oe as submitMfaVerification,
483
+ c as verifyEmailAuthentication,
464
484
  m as verifyOAuthCode,
465
485
  h as verifyOAuthEndUserIdentity,
466
- v as verifySiweAuthentication,
467
- c as verifySmsAuthentication
486
+ T as verifySiweAuthentication,
487
+ u as verifySmsAuthentication
468
488
  };