@coinbase/cdp-api-client 0.0.18 → 0.0.20

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,8 +1,10 @@
1
1
  const e = {
2
2
  email: "email"
3
+ }, t = {
4
+ sms: "sms"
3
5
  }, a = {
4
6
  jwt: "jwt"
5
- }, t = {
7
+ }, n = {
6
8
  already_exists: "already_exists",
7
9
  bad_gateway: "bad_gateway",
8
10
  faucet_limit_exceeded: "faucet_limit_exceeded",
@@ -10,6 +12,7 @@ const e = {
10
12
  idempotency_error: "idempotency_error",
11
13
  internal_server_error: "internal_server_error",
12
14
  invalid_request: "invalid_request",
15
+ invalid_sql_query: "invalid_sql_query",
13
16
  invalid_signature: "invalid_signature",
14
17
  malformed_transaction: "malformed_transaction",
15
18
  not_found: "not_found",
@@ -27,147 +30,245 @@ const e = {
27
30
  guest_region_forbidden: "guest_region_forbidden",
28
31
  guest_transaction_limit: "guest_transaction_limit",
29
32
  guest_transaction_count: "guest_transaction_count",
30
- guest_phone_number_verification_expired: "guest_phone_number_verification_expired"
31
- }, n = {
32
- email: "email"
33
+ phone_number_verification_expired: "phone_number_verification_expired",
34
+ document_verification_failed: "document_verification_failed",
35
+ recipient_allowlist_violation: "recipient_allowlist_violation",
36
+ recipient_allowlist_pending: "recipient_allowlist_pending",
37
+ travel_rules_recipient_violation: "travel_rules_recipient_violation"
33
38
  }, i = {
34
- "verify-otp": "verify-otp"
39
+ email: "email"
35
40
  }, o = {
36
- "base-sepolia": "base-sepolia",
37
- base: "base"
41
+ sms: "sms"
38
42
  }, r = {
43
+ "verify-otp": "verify-otp"
44
+ }, s = {
45
+ "verify-otp": "verify-otp"
46
+ }, _ = {
47
+ "base-sepolia": "base-sepolia",
48
+ base: "base",
49
+ arbitrum: "arbitrum",
50
+ optimism: "optimism",
51
+ zora: "zora",
52
+ polygon: "polygon",
53
+ bnb: "bnb",
54
+ avalanche: "avalanche",
55
+ ethereum: "ethereum",
56
+ "ethereum-sepolia": "ethereum-sepolia"
57
+ }, c = {
39
58
  pending: "pending",
40
59
  signed: "signed",
41
60
  broadcast: "broadcast",
42
61
  complete: "complete",
43
62
  dropped: "dropped",
44
63
  failed: "failed"
45
- }, _ = {
64
+ }, l = {
46
65
  base: "base",
47
- ethereum: "ethereum"
48
- }, s = {
66
+ "base-sepolia": "base-sepolia",
67
+ ethereum: "ethereum",
68
+ "ethereum-sepolia": "ethereum-sepolia",
69
+ optimism: "optimism",
70
+ arbitrum: "arbitrum",
71
+ avalanche: "avalanche",
72
+ polygon: "polygon"
73
+ }, d = {
74
+ base: "base",
75
+ ethereum: "ethereum",
76
+ arbitrum: "arbitrum",
77
+ optimism: "optimism"
78
+ }, p = {
49
79
  base: "base",
50
80
  "base-sepolia": "base-sepolia",
51
81
  ethereum: "ethereum"
52
- }, c = {
82
+ }, m = {
53
83
  ethValue: "ethValue"
54
- }, d = {
84
+ }, v = {
55
85
  ">": ">",
56
86
  ">=": ">=",
57
87
  "<": "<",
58
88
  "<=": "<=",
59
89
  "==": "=="
60
- }, l = {
90
+ }, u = {
61
91
  evmAddress: "evmAddress"
62
- }, p = {
92
+ }, y = {
63
93
  in: "in",
64
94
  not_in: "not in"
65
- }, v = {
95
+ }, T = {
66
96
  erc20: "erc20",
67
97
  erc721: "erc721",
68
98
  erc1155: "erc1155"
69
- }, m = {
99
+ }, g = {
70
100
  pure: "pure",
71
101
  view: "view",
72
102
  nonpayable: "nonpayable",
73
103
  payable: "payable"
74
- }, u = {
104
+ }, E = {
75
105
  function: "function"
76
- }, y = {
106
+ }, S = {
77
107
  constructor: "constructor",
78
108
  error: "error",
79
109
  event: "event",
80
110
  fallback: "fallback",
81
111
  receive: "receive"
82
- }, T = {
112
+ }, h = {
83
113
  ">": ">",
84
114
  ">=": ">=",
85
115
  "<": "<",
86
116
  "<=": "<=",
87
117
  "==": "=="
88
- }, E = {
118
+ }, A = {
89
119
  in: "in",
90
120
  not_in: "not in"
91
- }, g = {
121
+ }, b = {
92
122
  evmData: "evmData"
93
- }, S = {
123
+ }, O = {
124
+ netUSDChange: "netUSDChange"
125
+ }, f = {
126
+ ">": ">",
127
+ ">=": ">=",
128
+ "<": "<",
129
+ "<=": "<=",
130
+ "==": "=="
131
+ }, P = {
94
132
  reject: "reject",
95
133
  accept: "accept"
96
- }, A = {
134
+ }, R = {
97
135
  signEvmTransaction: "signEvmTransaction"
98
- }, h = {
136
+ }, x = {
99
137
  evmNetwork: "evmNetwork"
100
- }, P = {
138
+ }, D = {
101
139
  "base-sepolia": "base-sepolia",
102
- base: "base"
103
- }, f = {
140
+ base: "base",
141
+ ethereum: "ethereum",
142
+ "ethereum-sepolia": "ethereum-sepolia",
143
+ avalanche: "avalanche",
144
+ polygon: "polygon",
145
+ optimism: "optimism",
146
+ arbitrum: "arbitrum",
147
+ zora: "zora",
148
+ bnb: "bnb"
149
+ }, N = {
104
150
  in: "in",
105
151
  not_in: "not in"
106
- }, O = {
152
+ }, C = {
107
153
  reject: "reject",
108
154
  accept: "accept"
109
- }, R = {
155
+ }, U = {
110
156
  sendEvmTransaction: "sendEvmTransaction"
111
- }, b = {
157
+ }, I = {
112
158
  evmMessage: "evmMessage"
113
- }, x = {
159
+ }, k = {
114
160
  reject: "reject",
115
161
  accept: "accept"
116
- }, N = {
162
+ }, w = {
117
163
  signEvmMessage: "signEvmMessage"
118
- }, I = {
164
+ }, M = {
119
165
  in: "in",
120
166
  not_in: "not in"
121
- }, U = {
167
+ }, z = {
122
168
  ">": ">",
123
169
  ">=": ">=",
124
170
  "<": "<",
125
171
  "<=": "<=",
126
172
  "==": "=="
127
- }, D = {
173
+ }, j = {
128
174
  evmTypedDataField: "evmTypedDataField"
129
- }, k = {
175
+ }, q = {
130
176
  evmTypedDataVerifyingContract: "evmTypedDataVerifyingContract"
131
- }, C = {
177
+ }, V = {
132
178
  in: "in",
133
179
  not_in: "not in"
134
- }, w = {
180
+ }, F = {
135
181
  reject: "reject",
136
182
  accept: "accept"
137
- }, M = {
183
+ }, L = {
138
184
  signEvmTypedData: "signEvmTypedData"
139
- }, z = {
185
+ }, Y = {
140
186
  solAddress: "solAddress"
141
- }, j = {
187
+ }, X = {
142
188
  in: "in",
143
189
  not_in: "not in"
144
- }, F = {
190
+ }, G = {
191
+ solValue: "solValue"
192
+ }, H = {
193
+ ">": ">",
194
+ ">=": ">=",
195
+ "<": "<",
196
+ "<=": "<=",
197
+ "==": "=="
198
+ }, K = {
199
+ splAddress: "splAddress"
200
+ }, B = {
201
+ in: "in",
202
+ not_in: "not in"
203
+ }, W = {
204
+ splValue: "splValue"
205
+ }, J = {
206
+ ">": ">",
207
+ ">=": ">=",
208
+ "<": "<",
209
+ "<=": "<=",
210
+ "==": "=="
211
+ }, Q = {
212
+ mintAddress: "mintAddress"
213
+ }, Z = {
214
+ in: "in",
215
+ not_in: "not in"
216
+ }, $ = {
217
+ SystemProgram: "SystemProgram",
218
+ TokenProgram: "TokenProgram",
219
+ AssociatedTokenProgram: "AssociatedTokenProgram"
220
+ }, ee = {
221
+ ">": ">",
222
+ ">=": ">=",
223
+ "<": "<",
224
+ "<=": "<=",
225
+ "==": "=="
226
+ }, te = {
227
+ in: "in",
228
+ not_in: "not in"
229
+ }, ae = {
230
+ createAccount: "createAccount"
231
+ }, ne = {
232
+ solData: "solData"
233
+ }, ie = {
145
234
  reject: "reject",
146
235
  accept: "accept"
147
- }, L = {
236
+ }, oe = {
148
237
  signSolTransaction: "signSolTransaction"
149
- }, X = {
238
+ }, re = {
150
239
  reject: "reject",
151
240
  accept: "accept"
152
- }, Y = {
241
+ }, se = {
242
+ sendSolTransaction: "sendSolTransaction"
243
+ }, _e = {
244
+ solMessage: "solMessage"
245
+ }, ce = {
246
+ reject: "reject",
247
+ accept: "accept"
248
+ }, le = {
249
+ signSolMessage: "signSolMessage"
250
+ }, de = {
251
+ reject: "reject",
252
+ accept: "accept"
253
+ }, pe = {
153
254
  signEvmHash: "signEvmHash"
154
- }, q = {
255
+ }, me = {
155
256
  reject: "reject",
156
257
  accept: "accept"
157
- }, G = {
258
+ }, ve = {
158
259
  prepareUserOperation: "prepareUserOperation"
159
- }, V = {
260
+ }, ue = {
160
261
  reject: "reject",
161
262
  accept: "accept"
162
- }, B = {
263
+ }, ye = {
163
264
  sendUserOperation: "sendUserOperation"
164
- }, H = {
265
+ }, Te = {
165
266
  project: "project",
166
267
  account: "account"
167
- }, K = {
268
+ }, ge = {
168
269
  solana: "solana",
169
270
  "solana-devnet": "solana-devnet"
170
- }, W = {
271
+ }, Ee = {
171
272
  String: "String",
172
273
  UInt8: "UInt8",
173
274
  UInt16: "UInt16",
@@ -187,22 +288,20 @@ const e = {
187
288
  Date: "Date",
188
289
  DateTime: "DateTime",
189
290
  DateTime64: "DateTime64",
190
- UUID: "UUID",
191
- IPv4: "IPv4",
192
- IPv6: "IPv6"
193
- }, J = {
291
+ UUID: "UUID"
292
+ }, Se = {
194
293
  NUMBER_1: 1
195
- }, Q = {
294
+ }, he = {
196
295
  exact: "exact"
197
- }, Z = {
296
+ }, Ae = {
198
297
  "base-sepolia": "base-sepolia",
199
298
  base: "base"
200
- }, $ = {
299
+ }, be = {
201
300
  exact: "exact"
202
- }, ee = {
301
+ }, Oe = {
203
302
  "base-sepolia": "base-sepolia",
204
303
  base: "base"
205
- }, ae = {
304
+ }, fe = {
206
305
  insufficient_funds: "insufficient_funds",
207
306
  invalid_scheme: "invalid_scheme",
208
307
  invalid_network: "invalid_network",
@@ -217,7 +316,7 @@ const e = {
217
316
  invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt",
218
317
  invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature",
219
318
  invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address"
220
- }, te = {
319
+ }, Pe = {
221
320
  insufficient_funds: "insufficient_funds",
222
321
  invalid_scheme: "invalid_scheme",
223
322
  invalid_network: "invalid_network",
@@ -231,122 +330,152 @@ const e = {
231
330
  invalid_exact_evm_payload_authorization_from_address_kyt: "invalid_exact_evm_payload_authorization_from_address_kyt",
232
331
  invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt",
233
332
  invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address"
234
- }, ne = {
235
- NUMBER_1: 1
236
- }, ie = {
333
+ }, Re = {
237
334
  exact: "exact"
238
- }, oe = {
335
+ }, xe = {
239
336
  "base-sepolia": "base-sepolia",
240
337
  base: "base"
241
- }, re = {
338
+ }, De = {
339
+ http: "http"
340
+ }, Ne = {
242
341
  source: "source",
243
342
  target: "target"
244
- }, _e = {
343
+ }, Ce = {
245
344
  card: "card",
246
345
  fiat_account: "fiat_account"
247
- }, se = {
346
+ }, Ue = {
248
347
  exchange_fee: "exchange_fee",
249
348
  network_fee: "network_fee"
250
- }, ce = {
349
+ }, Ie = {
251
350
  payment_method: "payment_method"
252
- }, de = {
351
+ }, ke = {
253
352
  crypto_rail: "crypto_rail"
254
- }, le = {
353
+ }, we = {
255
354
  created: "created",
256
355
  pending: "pending",
257
356
  started: "started",
258
357
  completed: "completed",
259
358
  failed: "failed"
260
- }, pe = {
359
+ }, Me = {
261
360
  GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY"
262
- }, ve = {
361
+ }, ze = {
263
362
  FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK",
264
363
  FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE"
265
- }, me = {
364
+ }, je = {
266
365
  ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH",
267
366
  ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
268
367
  ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING",
269
368
  ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED",
270
369
  ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED"
271
- }, ue = {
370
+ }, qe = {
272
371
  PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON"
273
- }, ye = {
372
+ }, Ve = {
274
373
  refresh_token: "refresh_token"
275
- }, Te = {
374
+ }, Fe = {
276
375
  base: "base",
277
- "base-sepolia": "base-sepolia"
376
+ "base-sepolia": "base-sepolia",
377
+ ethereum: "ethereum",
378
+ "ethereum-sepolia": "ethereum-sepolia",
379
+ avalanche: "avalanche",
380
+ polygon: "polygon",
381
+ optimism: "optimism",
382
+ arbitrum: "arbitrum"
278
383
  };
279
384
  export {
280
- u as AbiFunctionType,
281
- y as AbiInputType,
282
- m as AbiStateMutability,
385
+ E as AbiFunctionType,
386
+ S as AbiInputType,
387
+ g as AbiStateMutability,
283
388
  a as DeveloperJWTAuthenticationType,
284
389
  e as EmailAuthenticationType,
285
- t as ErrorType,
286
- d as EthValueCriterionOperator,
287
- c as EthValueCriterionType,
288
- p as EvmAddressCriterionOperator,
289
- l as EvmAddressCriterionType,
290
- g as EvmDataCriterionType,
291
- E as EvmDataParameterConditionListOperator,
292
- T as EvmDataParameterConditionOperator,
293
- b as EvmMessageCriterionType,
294
- P as EvmNetworkCriterionNetworksItem,
295
- f as EvmNetworkCriterionOperator,
296
- h as EvmNetworkCriterionType,
297
- _ as EvmSwapsNetwork,
298
- I as EvmTypedAddressConditionOperator,
299
- U as EvmTypedNumericalConditionOperator,
300
- o as EvmUserOperationNetwork,
301
- r as EvmUserOperationStatus,
302
- se as FeeType,
303
- i as InitiateEmailAuthenticationNextStepType,
304
- n as InitiateEmailAuthenticationRequestType,
305
- v as KnownAbiType,
306
- s as ListEvmTokenBalancesNetwork,
307
- K as ListSolanaTokenBalancesNetwork,
308
- ve as OnrampOrderFeeType,
309
- me as OnrampOrderStatus,
310
- ue as OnrampPaymentLinkType,
311
- pe as OnrampPaymentMethodTypeId,
312
- _e as PaymentMethodType,
313
- re as PaymentRailAction,
314
- H as PolicyScope,
315
- q as PrepareUserOperationRuleAction,
316
- G as PrepareUserOperationRuleOperation,
317
- W as QueryResultSchemaColumnsItemType,
318
- ye as RefreshAccessTokenBodyGrantType,
319
- O as SendEvmTransactionRuleAction,
320
- R as SendEvmTransactionRuleOperation,
321
- Te as SendEvmTransactionWithEndUserAccountBodyNetwork,
322
- V as SendUserOperationRuleAction,
323
- B as SendUserOperationRuleOperation,
324
- X as SignEvmHashRuleAction,
325
- Y as SignEvmHashRuleOperation,
326
- x as SignEvmMessageRuleAction,
327
- N as SignEvmMessageRuleOperation,
328
- S as SignEvmTransactionRuleAction,
329
- A as SignEvmTransactionRuleOperation,
330
- D as SignEvmTypedDataFieldCriterionType,
331
- w as SignEvmTypedDataRuleAction,
332
- M as SignEvmTypedDataRuleOperation,
333
- C as SignEvmTypedDataVerifyingContractCriterionOperator,
334
- k as SignEvmTypedDataVerifyingContractCriterionType,
335
- F as SignSolTransactionRuleAction,
336
- L as SignSolTransactionRuleOperation,
337
- j as SolAddressCriterionOperator,
338
- z as SolAddressCriterionType,
339
- ce as TransferSourceType,
340
- le as TransferStatus,
341
- de as TransferTargetType,
342
- Z as X402PaymentPayloadNetwork,
343
- Q as X402PaymentPayloadScheme,
344
- J as X402PaymentPayloadX402Version,
345
- ee as X402PaymentRequirementsNetwork,
346
- $ as X402PaymentRequirementsScheme,
347
- te as X402SettleErrorReason,
348
- oe as X402SupportedPaymentKindNetwork,
349
- ie as X402SupportedPaymentKindScheme,
350
- ne as X402SupportedPaymentKindX402Version,
351
- ae as X402VerifyInvalidReason
390
+ n as ErrorType,
391
+ v as EthValueCriterionOperator,
392
+ m as EthValueCriterionType,
393
+ y as EvmAddressCriterionOperator,
394
+ u as EvmAddressCriterionType,
395
+ b as EvmDataCriterionType,
396
+ A as EvmDataParameterConditionListOperator,
397
+ h as EvmDataParameterConditionOperator,
398
+ I as EvmMessageCriterionType,
399
+ D as EvmNetworkCriterionNetworksItem,
400
+ N as EvmNetworkCriterionOperator,
401
+ x as EvmNetworkCriterionType,
402
+ d as EvmSwapsNetwork,
403
+ M as EvmTypedAddressConditionOperator,
404
+ z as EvmTypedNumericalConditionOperator,
405
+ _ as EvmUserOperationNetwork,
406
+ c as EvmUserOperationStatus,
407
+ Ue as FeeType,
408
+ r as InitiateEmailAuthenticationNextStepType,
409
+ i as InitiateEmailAuthenticationRequestType,
410
+ s as InitiateSmsAuthenticationNextStepType,
411
+ o as InitiateSmsAuthenticationRequestType,
412
+ T as KnownAbiType,
413
+ $ as KnownIdlType,
414
+ p as ListEvmTokenBalancesNetwork,
415
+ ge as ListSolanaTokenBalancesNetwork,
416
+ Z as MintAddressCriterionOperator,
417
+ Q as MintAddressCriterionType,
418
+ f as NetUSDChangeCriterionOperator,
419
+ O as NetUSDChangeCriterionType,
420
+ Ee as OnchainDataResultSchemaColumnsItemType,
421
+ ze as OnrampOrderFeeType,
422
+ je as OnrampOrderStatus,
423
+ qe as OnrampPaymentLinkType,
424
+ Me as OnrampPaymentMethodTypeId,
425
+ Ce as PaymentMethodType,
426
+ Ne as PaymentRailAction,
427
+ Te as PolicyScope,
428
+ me as PrepareUserOperationRuleAction,
429
+ ve as PrepareUserOperationRuleOperation,
430
+ Ve as RefreshAccessTokenBodyGrantType,
431
+ C as SendEvmTransactionRuleAction,
432
+ U as SendEvmTransactionRuleOperation,
433
+ Fe as SendEvmTransactionWithEndUserAccountBodyNetwork,
434
+ re as SendSolTransactionRuleAction,
435
+ se as SendSolTransactionRuleOperation,
436
+ ue as SendUserOperationRuleAction,
437
+ ye as SendUserOperationRuleOperation,
438
+ de as SignEvmHashRuleAction,
439
+ pe as SignEvmHashRuleOperation,
440
+ k as SignEvmMessageRuleAction,
441
+ w as SignEvmMessageRuleOperation,
442
+ P as SignEvmTransactionRuleAction,
443
+ R as SignEvmTransactionRuleOperation,
444
+ j as SignEvmTypedDataFieldCriterionType,
445
+ F as SignEvmTypedDataRuleAction,
446
+ L as SignEvmTypedDataRuleOperation,
447
+ V as SignEvmTypedDataVerifyingContractCriterionOperator,
448
+ q as SignEvmTypedDataVerifyingContractCriterionType,
449
+ ce as SignSolMessageRuleAction,
450
+ le as SignSolMessageRuleOperation,
451
+ ie as SignSolTransactionRuleAction,
452
+ oe as SignSolTransactionRuleOperation,
453
+ t as SmsAuthenticationType,
454
+ X as SolAddressCriterionOperator,
455
+ Y as SolAddressCriterionType,
456
+ ae as SolDataConditionInstruction,
457
+ ne as SolDataCriterionType,
458
+ te as SolDataParameterConditionListOperator,
459
+ ee as SolDataParameterConditionOperator,
460
+ _e as SolMessageCriterionType,
461
+ H as SolValueCriterionOperator,
462
+ G as SolValueCriterionType,
463
+ l as SpendPermissionNetwork,
464
+ B as SplAddressCriterionOperator,
465
+ K as SplAddressCriterionType,
466
+ J as SplValueCriterionOperator,
467
+ W as SplValueCriterionType,
468
+ Ie as TransferSourceType,
469
+ we as TransferStatus,
470
+ ke as TransferTargetType,
471
+ De as X402DiscoveryResourceType,
472
+ Ae as X402PaymentPayloadNetwork,
473
+ he as X402PaymentPayloadScheme,
474
+ Oe as X402PaymentRequirementsNetwork,
475
+ be as X402PaymentRequirementsScheme,
476
+ Pe as X402SettleErrorReason,
477
+ xe as X402SupportedPaymentKindNetwork,
478
+ Re as X402SupportedPaymentKindScheme,
479
+ fe as X402VerifyInvalidReason,
480
+ Se as X402Version
352
481
  };