@coinbase/cdp-api-client 0.0.36 → 0.0.38
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 +154 -144
- package/dist/esm/index2.js +62 -43
- package/dist/esm/index3.js +124 -97
- package/dist/types/index.d.ts +184 -27
- package/package.json +1 -1
package/dist/esm/index3.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
email: "email"
|
|
3
|
-
}, a = {
|
|
4
|
-
sms: "sms"
|
|
5
3
|
}, t = {
|
|
4
|
+
sms: "sms"
|
|
5
|
+
}, a = {
|
|
6
6
|
jwt: "jwt"
|
|
7
7
|
}, n = {
|
|
8
8
|
already_exists: "already_exists",
|
|
@@ -39,10 +39,10 @@ const e = {
|
|
|
39
39
|
email: "email"
|
|
40
40
|
}, o = {
|
|
41
41
|
sms: "sms"
|
|
42
|
-
}, _ = {
|
|
43
|
-
"verify-otp": "verify-otp"
|
|
44
42
|
}, r = {
|
|
45
43
|
"verify-otp": "verify-otp"
|
|
44
|
+
}, _ = {
|
|
45
|
+
"verify-otp": "verify-otp"
|
|
46
46
|
}, s = {
|
|
47
47
|
"base-sepolia": "base-sepolia",
|
|
48
48
|
base: "base",
|
|
@@ -61,7 +61,7 @@ const e = {
|
|
|
61
61
|
complete: "complete",
|
|
62
62
|
dropped: "dropped",
|
|
63
63
|
failed: "failed"
|
|
64
|
-
},
|
|
64
|
+
}, d = {
|
|
65
65
|
base: "base",
|
|
66
66
|
"base-sepolia": "base-sepolia",
|
|
67
67
|
ethereum: "ethereum",
|
|
@@ -70,7 +70,7 @@ const e = {
|
|
|
70
70
|
arbitrum: "arbitrum",
|
|
71
71
|
avalanche: "avalanche",
|
|
72
72
|
polygon: "polygon"
|
|
73
|
-
},
|
|
73
|
+
}, l = {
|
|
74
74
|
base: "base",
|
|
75
75
|
ethereum: "ethereum",
|
|
76
76
|
arbitrum: "arbitrum",
|
|
@@ -109,20 +109,20 @@ const e = {
|
|
|
109
109
|
event: "event",
|
|
110
110
|
fallback: "fallback",
|
|
111
111
|
receive: "receive"
|
|
112
|
-
},
|
|
112
|
+
}, A = {
|
|
113
113
|
">": ">",
|
|
114
114
|
">=": ">=",
|
|
115
115
|
"<": "<",
|
|
116
116
|
"<=": "<=",
|
|
117
117
|
"==": "=="
|
|
118
|
-
},
|
|
118
|
+
}, E = {
|
|
119
119
|
in: "in",
|
|
120
120
|
not_in: "not in"
|
|
121
|
-
},
|
|
121
|
+
}, f = {
|
|
122
122
|
evmData: "evmData"
|
|
123
|
-
},
|
|
123
|
+
}, x = {
|
|
124
124
|
netUSDChange: "netUSDChange"
|
|
125
|
-
},
|
|
125
|
+
}, b = {
|
|
126
126
|
">": ">",
|
|
127
127
|
">=": ">=",
|
|
128
128
|
"<": "<",
|
|
@@ -149,14 +149,14 @@ const e = {
|
|
|
149
149
|
}, C = {
|
|
150
150
|
in: "in",
|
|
151
151
|
not_in: "not in"
|
|
152
|
-
},
|
|
152
|
+
}, w = {
|
|
153
153
|
reject: "reject",
|
|
154
154
|
accept: "accept"
|
|
155
155
|
}, D = {
|
|
156
156
|
sendEvmTransaction: "sendEvmTransaction"
|
|
157
|
-
},
|
|
157
|
+
}, N = {
|
|
158
158
|
evmMessage: "evmMessage"
|
|
159
|
-
},
|
|
159
|
+
}, I = {
|
|
160
160
|
reject: "reject",
|
|
161
161
|
accept: "accept"
|
|
162
162
|
}, U = {
|
|
@@ -174,13 +174,13 @@ const e = {
|
|
|
174
174
|
evmTypedDataField: "evmTypedDataField"
|
|
175
175
|
}, j = {
|
|
176
176
|
evmTypedDataVerifyingContract: "evmTypedDataVerifyingContract"
|
|
177
|
-
},
|
|
177
|
+
}, q = {
|
|
178
178
|
in: "in",
|
|
179
179
|
not_in: "not in"
|
|
180
|
-
},
|
|
180
|
+
}, F = {
|
|
181
181
|
reject: "reject",
|
|
182
182
|
accept: "accept"
|
|
183
|
-
},
|
|
183
|
+
}, Y = {
|
|
184
184
|
signEvmTypedData: "signEvmTypedData"
|
|
185
185
|
}, V = {
|
|
186
186
|
solAddress: "solAddress"
|
|
@@ -223,10 +223,10 @@ const e = {
|
|
|
223
223
|
"<": "<",
|
|
224
224
|
"<=": "<=",
|
|
225
225
|
"==": "=="
|
|
226
|
-
},
|
|
226
|
+
}, te = {
|
|
227
227
|
in: "in",
|
|
228
228
|
not_in: "not in"
|
|
229
|
-
},
|
|
229
|
+
}, ae = {
|
|
230
230
|
solData: "solData"
|
|
231
231
|
}, ne = {
|
|
232
232
|
programId: "programId"
|
|
@@ -236,9 +236,9 @@ const e = {
|
|
|
236
236
|
}, oe = {
|
|
237
237
|
reject: "reject",
|
|
238
238
|
accept: "accept"
|
|
239
|
-
}, _e = {
|
|
240
|
-
signSolTransaction: "signSolTransaction"
|
|
241
239
|
}, re = {
|
|
240
|
+
signSolTransaction: "signSolTransaction"
|
|
241
|
+
}, _e = {
|
|
242
242
|
solNetwork: "solNetwork"
|
|
243
243
|
}, se = {
|
|
244
244
|
"solana-devnet": "solana-devnet",
|
|
@@ -246,10 +246,10 @@ const e = {
|
|
|
246
246
|
}, ce = {
|
|
247
247
|
in: "in",
|
|
248
248
|
not_in: "not in"
|
|
249
|
-
},
|
|
249
|
+
}, de = {
|
|
250
250
|
reject: "reject",
|
|
251
251
|
accept: "accept"
|
|
252
|
-
},
|
|
252
|
+
}, le = {
|
|
253
253
|
sendSolTransaction: "sendSolTransaction"
|
|
254
254
|
}, pe = {
|
|
255
255
|
solMessage: "solMessage"
|
|
@@ -273,13 +273,13 @@ const e = {
|
|
|
273
273
|
accept: "accept"
|
|
274
274
|
}, Se = {
|
|
275
275
|
sendUserOperation: "sendUserOperation"
|
|
276
|
-
},
|
|
276
|
+
}, Ae = {
|
|
277
277
|
project: "project",
|
|
278
278
|
account: "account"
|
|
279
|
-
},
|
|
279
|
+
}, Ee = {
|
|
280
280
|
solana: "solana",
|
|
281
281
|
"solana-devnet": "solana-devnet"
|
|
282
|
-
},
|
|
282
|
+
}, fe = {
|
|
283
283
|
String: "String",
|
|
284
284
|
UInt8: "UInt8",
|
|
285
285
|
UInt16: "UInt16",
|
|
@@ -300,9 +300,9 @@ const e = {
|
|
|
300
300
|
DateTime: "DateTime",
|
|
301
301
|
DateTime64: "DateTime64",
|
|
302
302
|
UUID: "UUID"
|
|
303
|
-
},
|
|
303
|
+
}, xe = {
|
|
304
304
|
NUMBER_1: 1
|
|
305
|
-
},
|
|
305
|
+
}, be = {
|
|
306
306
|
exact: "exact"
|
|
307
307
|
}, Pe = {
|
|
308
308
|
"base-sepolia": "base-sepolia",
|
|
@@ -365,16 +365,16 @@ const e = {
|
|
|
365
365
|
invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address",
|
|
366
366
|
settle_exact_svm_block_height_exceeded: "settle_exact_svm_block_height_exceeded",
|
|
367
367
|
settle_exact_svm_transaction_confirmation_timed_out: "settle_exact_svm_transaction_confirmation_timed_out"
|
|
368
|
-
},
|
|
368
|
+
}, we = {
|
|
369
369
|
exact: "exact"
|
|
370
370
|
}, De = {
|
|
371
371
|
"base-sepolia": "base-sepolia",
|
|
372
372
|
base: "base",
|
|
373
373
|
"solana-devnet": "solana-devnet",
|
|
374
374
|
solana: "solana"
|
|
375
|
-
},
|
|
375
|
+
}, Ne = {
|
|
376
376
|
http: "http"
|
|
377
|
-
},
|
|
377
|
+
}, Ie = {
|
|
378
378
|
source: "source",
|
|
379
379
|
target: "target"
|
|
380
380
|
}, Ue = {
|
|
@@ -393,12 +393,12 @@ const e = {
|
|
|
393
393
|
started: "started",
|
|
394
394
|
completed: "completed",
|
|
395
395
|
failed: "failed"
|
|
396
|
-
}, Ye = {
|
|
397
|
-
GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY"
|
|
398
396
|
}, qe = {
|
|
397
|
+
GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY"
|
|
398
|
+
}, Fe = {
|
|
399
399
|
FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK",
|
|
400
400
|
FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE"
|
|
401
|
-
},
|
|
401
|
+
}, Ye = {
|
|
402
402
|
ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH",
|
|
403
403
|
ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
|
|
404
404
|
ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING",
|
|
@@ -414,15 +414,13 @@ const e = {
|
|
|
414
414
|
FIAT_WALLET: "FIAT_WALLET",
|
|
415
415
|
CRYPTO_WALLET: "CRYPTO_WALLET"
|
|
416
416
|
}, Xe = {
|
|
417
|
-
outbound: "outbound"
|
|
418
|
-
}, Ge = {
|
|
419
417
|
account: "account",
|
|
420
418
|
payment_method: "payment_method"
|
|
421
|
-
},
|
|
419
|
+
}, Ge = {
|
|
422
420
|
account: "account"
|
|
423
|
-
},
|
|
421
|
+
}, Be = {
|
|
424
422
|
payment_method: "payment_method"
|
|
425
|
-
},
|
|
423
|
+
}, Ke = {
|
|
426
424
|
base: "base",
|
|
427
425
|
ethereum: "ethereum",
|
|
428
426
|
algorand: "algorand",
|
|
@@ -436,33 +434,55 @@ const e = {
|
|
|
436
434
|
stellar: "stellar",
|
|
437
435
|
sui: "sui",
|
|
438
436
|
unichain: "unichain"
|
|
437
|
+
}, We = {
|
|
438
|
+
target: "target",
|
|
439
|
+
source: "source"
|
|
439
440
|
}, Qe = {
|
|
440
|
-
target_amount: "target_amount",
|
|
441
|
-
source_amount: "source_amount"
|
|
442
|
-
}, Je = {
|
|
443
441
|
pending: "pending",
|
|
442
|
+
awaiting_funds: "awaiting_funds",
|
|
444
443
|
in_progress: "in_progress",
|
|
445
444
|
completed: "completed",
|
|
446
445
|
failed: "failed"
|
|
447
|
-
},
|
|
446
|
+
}, Je = {
|
|
448
447
|
conversion: "conversion",
|
|
449
448
|
settlement: "settlement",
|
|
450
|
-
deposit: "deposit"
|
|
449
|
+
deposit: "deposit",
|
|
450
|
+
wire_fee: "wire_fee"
|
|
451
|
+
}, Ze = {
|
|
452
|
+
fedwire: "fedwire"
|
|
451
453
|
}, $e = {
|
|
454
|
+
USD: "USD"
|
|
455
|
+
}, et = {
|
|
456
|
+
ach: "ach",
|
|
457
|
+
fedwire: "fedwire"
|
|
458
|
+
}, tt = {
|
|
452
459
|
unknown: "unknown",
|
|
453
460
|
daily: "daily",
|
|
454
461
|
weekly: "weekly",
|
|
455
462
|
monthly: "monthly",
|
|
456
463
|
biweekly: "biweekly"
|
|
457
|
-
},
|
|
464
|
+
}, at = {
|
|
465
|
+
checking: "checking",
|
|
466
|
+
savings: "savings"
|
|
467
|
+
}, nt = {
|
|
468
|
+
ach: "ach"
|
|
469
|
+
}, it = {
|
|
470
|
+
fedwire: "fedwire"
|
|
471
|
+
}, ot = {
|
|
472
|
+
crypto: "crypto",
|
|
473
|
+
fiat: "fiat"
|
|
474
|
+
}, rt = {
|
|
458
475
|
base: "base",
|
|
459
476
|
ethereum: "ethereum"
|
|
460
|
-
},
|
|
477
|
+
}, _t = {
|
|
461
478
|
risk_indicated: "risk_indicated",
|
|
462
479
|
no_risk_indicated: "no_risk_indicated"
|
|
463
|
-
},
|
|
480
|
+
}, st = {
|
|
481
|
+
"createdAt=asc": "createdAt=asc",
|
|
482
|
+
"createdAt=desc": "createdAt=desc"
|
|
483
|
+
}, ct = {
|
|
464
484
|
refresh_token: "refresh_token"
|
|
465
|
-
},
|
|
485
|
+
}, dt = {
|
|
466
486
|
base: "base",
|
|
467
487
|
"base-sepolia": "base-sepolia",
|
|
468
488
|
ethereum: "ethereum",
|
|
@@ -471,7 +491,7 @@ const e = {
|
|
|
471
491
|
polygon: "polygon",
|
|
472
492
|
optimism: "optimism",
|
|
473
493
|
arbitrum: "arbitrum"
|
|
474
|
-
},
|
|
494
|
+
}, lt = {
|
|
475
495
|
solana: "solana",
|
|
476
496
|
"solana-devnet": "solana-devnet"
|
|
477
497
|
};
|
|
@@ -479,99 +499,106 @@ export {
|
|
|
479
499
|
g as AbiFunctionType,
|
|
480
500
|
S as AbiInputType,
|
|
481
501
|
h as AbiStateMutability,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
502
|
+
Ge as AccountSourceType,
|
|
503
|
+
ot as AccountType,
|
|
504
|
+
at as AchDetailsAccountType,
|
|
505
|
+
rt as AddressRiskNetwork,
|
|
506
|
+
_t as AddressRiskRiskLevel,
|
|
507
|
+
et as CoolPaymentMethodType,
|
|
508
|
+
nt as CreatePaymentMethodRequestAchType,
|
|
509
|
+
it as CreatePaymentMethodRequestFedwireType,
|
|
510
|
+
We as CreateTransferQuoteAmountType,
|
|
511
|
+
a as DeveloperJWTAuthenticationType,
|
|
487
512
|
e as EmailAuthenticationType,
|
|
488
513
|
n as ErrorType,
|
|
489
514
|
v as EthValueCriterionOperator,
|
|
490
515
|
m as EthValueCriterionType,
|
|
491
516
|
y as EvmAddressCriterionOperator,
|
|
492
517
|
u as EvmAddressCriterionType,
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
518
|
+
f as EvmDataCriterionType,
|
|
519
|
+
E as EvmDataParameterConditionListOperator,
|
|
520
|
+
A as EvmDataParameterConditionOperator,
|
|
521
|
+
N as EvmMessageCriterionType,
|
|
497
522
|
R as EvmNetworkCriterionNetworksItem,
|
|
498
523
|
C as EvmNetworkCriterionOperator,
|
|
499
524
|
k as EvmNetworkCriterionType,
|
|
500
|
-
|
|
525
|
+
l as EvmSwapsNetwork,
|
|
501
526
|
M as EvmTypedAddressConditionOperator,
|
|
502
527
|
z as EvmTypedNumericalConditionOperator,
|
|
503
528
|
s as EvmUserOperationNetwork,
|
|
504
529
|
c as EvmUserOperationStatus,
|
|
505
|
-
|
|
530
|
+
Je as FeeDetailsType,
|
|
506
531
|
Me as FeeType,
|
|
507
|
-
|
|
532
|
+
r as InitiateEmailAuthenticationNextStepType,
|
|
508
533
|
i as InitiateEmailAuthenticationRequestType,
|
|
509
|
-
|
|
534
|
+
_ as InitiateSmsAuthenticationNextStepType,
|
|
510
535
|
o as InitiateSmsAuthenticationRequestType,
|
|
511
536
|
T as KnownAbiType,
|
|
512
537
|
$ as KnownIdlType,
|
|
513
|
-
|
|
538
|
+
tt as LimitPeriod,
|
|
539
|
+
st as ListEndUsersSortItem,
|
|
514
540
|
p as ListEvmTokenBalancesNetwork,
|
|
515
|
-
|
|
541
|
+
Ee as ListSolanaTokenBalancesNetwork,
|
|
516
542
|
Z as MintAddressCriterionOperator,
|
|
517
543
|
J as MintAddressCriterionType,
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
544
|
+
b as NetUSDChangeCriterionOperator,
|
|
545
|
+
x as NetUSDChangeCriterionType,
|
|
546
|
+
Ke as Network,
|
|
547
|
+
fe as OnchainDataResultSchemaColumnsItemType,
|
|
548
|
+
Fe as OnrampOrderFeeType,
|
|
549
|
+
qe as OnrampOrderPaymentMethodTypeId,
|
|
550
|
+
Ye as OnrampOrderStatus,
|
|
525
551
|
Ve as OnrampPaymentLinkType,
|
|
526
552
|
He as OnrampQuotePaymentMethodTypeId,
|
|
527
|
-
|
|
528
|
-
Ke as PaymentMethodSourceType,
|
|
553
|
+
Be as PaymentMethodSourceType,
|
|
529
554
|
Ue as PaymentMethodType,
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
555
|
+
Ie as PaymentRailAction,
|
|
556
|
+
Qe as PaymentStatus,
|
|
557
|
+
Ae as PolicyScope,
|
|
533
558
|
Te as PrepareUserOperationRuleAction,
|
|
534
559
|
he as PrepareUserOperationRuleOperation,
|
|
535
560
|
ie as ProgramIdCriterionOperator,
|
|
536
561
|
ne as ProgramIdCriterionType,
|
|
537
|
-
|
|
538
|
-
|
|
562
|
+
ct as RefreshAccessTokenBodyGrantType,
|
|
563
|
+
w as SendEvmTransactionRuleAction,
|
|
539
564
|
D as SendEvmTransactionRuleOperation,
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
565
|
+
dt as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
566
|
+
de as SendSolTransactionRuleAction,
|
|
567
|
+
le as SendSolTransactionRuleOperation,
|
|
568
|
+
lt as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
544
569
|
ge as SendUserOperationRuleAction,
|
|
545
570
|
Se as SendUserOperationRuleOperation,
|
|
546
571
|
ue as SignEvmHashRuleAction,
|
|
547
572
|
ye as SignEvmHashRuleOperation,
|
|
548
|
-
|
|
573
|
+
I as SignEvmMessageRuleAction,
|
|
549
574
|
U as SignEvmMessageRuleOperation,
|
|
550
575
|
P as SignEvmTransactionRuleAction,
|
|
551
576
|
O as SignEvmTransactionRuleOperation,
|
|
552
577
|
L as SignEvmTypedDataFieldCriterionType,
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
578
|
+
F as SignEvmTypedDataRuleAction,
|
|
579
|
+
Y as SignEvmTypedDataRuleOperation,
|
|
580
|
+
q as SignEvmTypedDataVerifyingContractCriterionOperator,
|
|
556
581
|
j as SignEvmTypedDataVerifyingContractCriterionType,
|
|
557
582
|
me as SignSolMessageRuleAction,
|
|
558
583
|
ve as SignSolMessageRuleOperation,
|
|
559
584
|
oe as SignSolTransactionRuleAction,
|
|
560
|
-
|
|
561
|
-
|
|
585
|
+
re as SignSolTransactionRuleOperation,
|
|
586
|
+
t as SmsAuthenticationType,
|
|
562
587
|
H as SolAddressCriterionOperator,
|
|
563
588
|
V as SolAddressCriterionType,
|
|
564
|
-
|
|
565
|
-
|
|
589
|
+
ae as SolDataCriterionType,
|
|
590
|
+
te as SolDataParameterConditionListOperator,
|
|
566
591
|
ee as SolDataParameterConditionOperator,
|
|
567
592
|
pe as SolMessageCriterionType,
|
|
568
593
|
se as SolNetworkCriterionNetworksItem,
|
|
569
594
|
ce as SolNetworkCriterionOperator,
|
|
570
|
-
|
|
595
|
+
_e as SolNetworkCriterionType,
|
|
571
596
|
G as SolValueCriterionOperator,
|
|
572
597
|
X as SolValueCriterionType,
|
|
573
|
-
|
|
574
|
-
|
|
598
|
+
$e as SourceDepositInstructionsCurrency,
|
|
599
|
+
Ze as SourceDepositInstructionsPaymentMethodType,
|
|
600
|
+
Xe as SourceType,
|
|
601
|
+
d as SpendPermissionNetwork,
|
|
575
602
|
K as SplAddressCriterionOperator,
|
|
576
603
|
B as SplAddressCriterionType,
|
|
577
604
|
Q as SplValueCriterionOperator,
|
|
@@ -579,14 +606,14 @@ export {
|
|
|
579
606
|
ze as TransferSourceType,
|
|
580
607
|
je as TransferStatus,
|
|
581
608
|
Le as TransferTargetType,
|
|
582
|
-
|
|
609
|
+
Ne as X402DiscoveryResourceType,
|
|
583
610
|
Pe as X402PaymentPayloadNetwork,
|
|
584
|
-
|
|
611
|
+
be as X402PaymentPayloadScheme,
|
|
585
612
|
ke as X402PaymentRequirementsNetwork,
|
|
586
613
|
Oe as X402PaymentRequirementsScheme,
|
|
587
614
|
Ce as X402SettleErrorReason,
|
|
588
615
|
De as X402SupportedPaymentKindNetwork,
|
|
589
|
-
|
|
616
|
+
we as X402SupportedPaymentKindScheme,
|
|
590
617
|
Re as X402VerifyInvalidReason,
|
|
591
|
-
|
|
618
|
+
xe as X402Version
|
|
592
619
|
};
|