@coinbase/cdp-api-client 0.0.100 → 0.0.101

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 CHANGED
@@ -1,13 +1,13 @@
1
1
  import { Analytics as e } from "./index2.js";
2
2
  import "./index3.js";
3
3
  import { VERSION as t } from "./index4.js";
4
- import { DeveloperJWTAuthenticationType as s, EmailAuthenticationType as c, EndUserOnrampFeeType as E, EndUserOnrampOrderStatus as d, ErrorType as p, EvmEip7702DelegationNetwork as A, EvmEip7702DelegationOperationStatus as m, EvmSwapsNetwork as u, EvmUserOperationNetwork as h, EvmUserOperationStatus as U, InitiateEmailAuthenticationNextStepType as l, InitiateEmailAuthenticationRequestType as S, InitiateSiweAuthenticationRequestType as g, InitiateSmsAuthenticationNextStepType as y, InitiateSmsAuthenticationRequestType as f, InitiateSmsMfaEnrollmentType as v, InitiateTotpMfaEnrollmentType as T, IosAttestationRegistrationResponsePlatform as W, MfaMethod as w, Network as O, OAuth2ProviderType as k, RefreshAccessTokenBodyGrantType as M, SendEvmAssetWithEndUserAccountBodyNetwork as I, SendEvmTransactionWithEndUserAccountBodyNetwork as P, SendSolanaAssetWithEndUserAccountBodyNetwork as N, SendSolanaTransactionWithEndUserAccountBodyNetwork as x, SiweAuthenticationType as D, SmsAuthenticationType as C, SpendPermissionNetwork as R } from "./index5.js";
5
- import { authenticateUserWithCustomAuth as V, createDelegationForEndUser as q, createEndUserApplePayOnrampOrder as F, createEndUserEvmAccount as H, createEndUserEvmSmartAccount as b, createEndUserEvmSwap as j, createEndUserSolanaAccount as G, createEvmEip7702DelegationWithEndUserAccount as J, createSpendPermissionWithEndUserAccount as _, exportEndUserEvmAccount as z, exportEndUserSolanaAccount as K, generateAttestationChallenge as L, getAuthenticatedEndUser as Q, getEndUserEvmSwapPrice as X, getEvmEip7702DelegationOperationByIdWithEndUserAccount as Y, getMfaConfig as Z, getProjectConfig as $, getUserOperationWithEndUserAccount as ee, initiateAuthentication as te, initiateMfaEnrollment as ne, initiateMfaEnrollment2 as ie, initiateMfaVerification as re, listSpendPermissionsWithEndUserAccount as oe, logOutEndUser as ae, recordMfaEnrollmentPrompted as se, refreshAccessToken as ce, registerAttestation as Ee, registerTemporaryWalletSecret as de, revokeDelegationForEndUser as pe, revokeSpendPermissionWithEndUserAccount as Ae, sendEvmAssetWithEndUserAccount as me, sendEvmTransactionWithEndUserAccount as ue, sendSolanaAssetWithEndUserAccount as he, sendSolanaTransactionWithEndUserAccount as Ue, sendUserOperationWithEndUserAccount as le, signEvmHashWithEndUserAccount as Se, signEvmMessageWithEndUserAccount as ge, signEvmTransactionWithEndUserAccount as ye, signEvmTypedDataWithEndUserAccount as fe, signSolanaHashWithEndUserAccount as ve, signSolanaMessageWithEndUserAccount as Te, signSolanaTransactionWithEndUserAccount as We, submitMfaEnrollment as we, submitMfaVerification as Oe, verifyEmailAuthentication as ke, verifyOAuthCode as Me, verifyOAuthEndUserIdentity as Ie, verifySiweAuthentication as Pe, verifySmsAuthentication as Ne } from "./index6.js";
6
- import { configureCdpApiClient as De, setAuthManager as Ce } from "./index7.js";
7
- import { APIError as Be, HttpErrorType as Ve, UnknownApiError as qe, UnknownError as Fe, isOpenAPIError as He } from "./index8.js";
4
+ import { DeveloperJWTAuthenticationType as s, EmailAuthenticationType as c, EndUserOnrampFeeType as E, EndUserOnrampOrderStatus as d, ErrorType as p, EvmEip7702DelegationNetwork as A, EvmEip7702DelegationOperationStatus as m, EvmSwapsNetwork as u, EvmUserOperationNetwork as h, EvmUserOperationStatus as U, InitiateEmailAuthenticationNextStepType as l, InitiateEmailAuthenticationRequestType as S, InitiateSiweAuthenticationRequestType as g, InitiateSmsAuthenticationNextStepType as y, InitiateSmsAuthenticationRequestType as f, InitiateSmsMfaEnrollmentType as v, InitiateTotpMfaEnrollmentType as T, IosAttestationRegistrationResponsePlatform as W, MfaMethod as w, Network as O, OAuth2ProviderType as k, RefreshAccessTokenBodyGrantType as M, SendEvmAssetWithEndUserAccountBodyNetwork as I, SendEvmTransactionWithEndUserAccountBodyNetwork as P, SendSolanaAssetWithEndUserAccountBodyNetwork as N, SendSolanaTransactionWithEndUserAccountBodyNetwork as D, SiweAuthenticationType as x, SmsAuthenticationType as C, SpendPermissionNetwork as R } from "./index5.js";
5
+ import { authenticateUserWithCustomAuth as F, createDelegationForEndUser as V, createEndUserApplePayOnrampOrder as q, createEndUserEvmAccount as H, createEndUserEvmSmartAccount as b, createEndUserEvmSwap as j, createEndUserSolanaAccount as G, createEvmEip7702DelegationWithEndUserAccount as J, createSpendPermissionWithEndUserAccount as _, exportEndUserEvmAccount as z, exportEndUserSolanaAccount as K, generateAttestationChallenge as L, getAuthenticatedEndUser as Q, getDelegationForEndUser as X, getEndUserEvmSwapPrice as Y, getEvmEip7702DelegationOperationByIdWithEndUserAccount as Z, getMfaConfig as $, getProjectConfig as ee, getUserOperationWithEndUserAccount as te, initiateAuthentication as ne, initiateMfaEnrollment as re, initiateMfaEnrollment2 as ie, initiateMfaVerification as oe, listSpendPermissionsWithEndUserAccount as ae, logOutEndUser as se, recordMfaEnrollmentPrompted as ce, refreshAccessToken as Ee, registerAttestation as de, registerTemporaryWalletSecret as pe, revokeDelegationForEndUser as Ae, revokeSpendPermissionWithEndUserAccount as me, sendEvmAssetWithEndUserAccount as ue, sendEvmTransactionWithEndUserAccount as he, sendSolanaAssetWithEndUserAccount as Ue, sendSolanaTransactionWithEndUserAccount as le, sendUserOperationWithEndUserAccount as Se, signEvmHashWithEndUserAccount as ge, signEvmMessageWithEndUserAccount as ye, signEvmTransactionWithEndUserAccount as fe, signEvmTypedDataWithEndUserAccount as ve, signSolanaHashWithEndUserAccount as Te, signSolanaMessageWithEndUserAccount as We, signSolanaTransactionWithEndUserAccount as we, submitMfaEnrollment as Oe, submitMfaVerification as ke, verifyEmailAuthentication as Me, verifyOAuthCode as Ie, verifyOAuthEndUserIdentity as Pe, verifySiweAuthentication as Ne, verifySmsAuthentication as De } from "./index6.js";
6
+ import { configureCdpApiClient as Ce, setAuthManager as Re } from "./index7.js";
7
+ import { APIError as Fe, HttpErrorType as Ve, UnknownApiError as qe, UnknownError as He, isOpenAPIError as be } from "./index8.js";
8
8
  e.registerPackageVersion("api_client", t);
9
9
  export {
10
- Be as APIError,
10
+ Fe as APIError,
11
11
  s as DeveloperJWTAuthenticationType,
12
12
  c as EmailAuthenticationType,
13
13
  E as EndUserOnrampFeeType,
@@ -34,16 +34,16 @@ export {
34
34
  I as SendEvmAssetWithEndUserAccountBodyNetwork,
35
35
  P as SendEvmTransactionWithEndUserAccountBodyNetwork,
36
36
  N as SendSolanaAssetWithEndUserAccountBodyNetwork,
37
- x as SendSolanaTransactionWithEndUserAccountBodyNetwork,
38
- D as SiweAuthenticationType,
37
+ D as SendSolanaTransactionWithEndUserAccountBodyNetwork,
38
+ x as SiweAuthenticationType,
39
39
  C as SmsAuthenticationType,
40
40
  R as SpendPermissionNetwork,
41
41
  qe as UnknownApiError,
42
- Fe as UnknownError,
43
- V as authenticateUserWithCustomAuth,
44
- De as configureCdpApiClient,
45
- q as createDelegationForEndUser,
46
- F as createEndUserApplePayOnrampOrder,
42
+ He as UnknownError,
43
+ F as authenticateUserWithCustomAuth,
44
+ Ce as configureCdpApiClient,
45
+ V as createDelegationForEndUser,
46
+ q as createEndUserApplePayOnrampOrder,
47
47
  H as createEndUserEvmAccount,
48
48
  b as createEndUserEvmSmartAccount,
49
49
  j as createEndUserEvmSwap,
@@ -54,42 +54,43 @@ export {
54
54
  K as exportEndUserSolanaAccount,
55
55
  L as generateAttestationChallenge,
56
56
  Q as getAuthenticatedEndUser,
57
- X as getEndUserEvmSwapPrice,
58
- Y as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
59
- Z as getMfaConfig,
60
- $ as getProjectConfig,
61
- ee as getUserOperationWithEndUserAccount,
62
- te as initiateAuthentication,
63
- ne as initiateMfaEnrollment,
57
+ X as getDelegationForEndUser,
58
+ Y as getEndUserEvmSwapPrice,
59
+ Z as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
60
+ $ as getMfaConfig,
61
+ ee as getProjectConfig,
62
+ te as getUserOperationWithEndUserAccount,
63
+ ne as initiateAuthentication,
64
+ re as initiateMfaEnrollment,
64
65
  ie as initiateMfaEnrollment2,
65
- re as initiateMfaVerification,
66
- He as isOpenAPIError,
67
- oe as listSpendPermissionsWithEndUserAccount,
68
- ae as logOutEndUser,
69
- se as recordMfaEnrollmentPrompted,
70
- ce as refreshAccessToken,
71
- Ee as registerAttestation,
72
- de as registerTemporaryWalletSecret,
73
- pe as revokeDelegationForEndUser,
74
- Ae as revokeSpendPermissionWithEndUserAccount,
75
- me as sendEvmAssetWithEndUserAccount,
76
- ue as sendEvmTransactionWithEndUserAccount,
77
- he as sendSolanaAssetWithEndUserAccount,
78
- Ue as sendSolanaTransactionWithEndUserAccount,
79
- le as sendUserOperationWithEndUserAccount,
80
- Ce as setAuthManager,
81
- Se as signEvmHashWithEndUserAccount,
82
- ge as signEvmMessageWithEndUserAccount,
83
- ye as signEvmTransactionWithEndUserAccount,
84
- fe as signEvmTypedDataWithEndUserAccount,
85
- ve as signSolanaHashWithEndUserAccount,
86
- Te as signSolanaMessageWithEndUserAccount,
87
- We as signSolanaTransactionWithEndUserAccount,
88
- we as submitMfaEnrollment,
89
- Oe as submitMfaVerification,
90
- ke as verifyEmailAuthentication,
91
- Me as verifyOAuthCode,
92
- Ie as verifyOAuthEndUserIdentity,
93
- Pe as verifySiweAuthentication,
94
- Ne as verifySmsAuthentication
66
+ oe as initiateMfaVerification,
67
+ be as isOpenAPIError,
68
+ ae as listSpendPermissionsWithEndUserAccount,
69
+ se as logOutEndUser,
70
+ ce as recordMfaEnrollmentPrompted,
71
+ Ee as refreshAccessToken,
72
+ de as registerAttestation,
73
+ pe as registerTemporaryWalletSecret,
74
+ Ae as revokeDelegationForEndUser,
75
+ me as revokeSpendPermissionWithEndUserAccount,
76
+ ue as sendEvmAssetWithEndUserAccount,
77
+ he as sendEvmTransactionWithEndUserAccount,
78
+ Ue as sendSolanaAssetWithEndUserAccount,
79
+ le as sendSolanaTransactionWithEndUserAccount,
80
+ Se as sendUserOperationWithEndUserAccount,
81
+ Re as setAuthManager,
82
+ ge as signEvmHashWithEndUserAccount,
83
+ ye as signEvmMessageWithEndUserAccount,
84
+ fe as signEvmTransactionWithEndUserAccount,
85
+ ve as signEvmTypedDataWithEndUserAccount,
86
+ Te as signSolanaHashWithEndUserAccount,
87
+ We as signSolanaMessageWithEndUserAccount,
88
+ we as signSolanaTransactionWithEndUserAccount,
89
+ Oe as submitMfaEnrollment,
90
+ ke as submitMfaVerification,
91
+ Me as verifyEmailAuthentication,
92
+ Ie as verifyOAuthCode,
93
+ Pe as verifyOAuthEndUserIdentity,
94
+ Ne as verifySiweAuthentication,
95
+ De as verifySmsAuthentication
95
96
  };
@@ -1,4 +1,4 @@
1
- const o = "0.0.100";
1
+ const o = "0.0.101";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -1,6 +1,8 @@
1
1
  const e = {
2
2
  already_exists: "already_exists",
3
+ authorization_expired: "authorization_expired",
3
4
  bad_gateway: "bad_gateway",
5
+ capture_expired: "capture_expired",
4
6
  client_closed_request: "client_closed_request",
5
7
  faucet_limit_exceeded: "faucet_limit_exceeded",
6
8
  forbidden: "forbidden",
@@ -31,6 +33,7 @@ const e = {
31
33
  document_verification_failed: "document_verification_failed",
32
34
  recipient_allowlist_violation: "recipient_allowlist_violation",
33
35
  recipient_allowlist_pending: "recipient_allowlist_pending",
36
+ refund_expired: "refund_expired",
34
37
  travel_rules_recipient_violation: "travel_rules_recipient_violation",
35
38
  source_account_invalid: "source_account_invalid",
36
39
  target_account_invalid: "target_account_invalid",
@@ -74,11 +77,11 @@ const e = {
74
77
  github: "github"
75
78
  }, n = {
76
79
  siwe: "siwe"
77
- }, _ = {
80
+ }, r = {
78
81
  "verify-otp": "verify-otp"
79
82
  }, s = {
80
83
  "verify-otp": "verify-otp"
81
- }, r = {
84
+ }, _ = {
82
85
  email: "email"
83
86
  }, l = {
84
87
  sms: "sms"
@@ -86,7 +89,7 @@ const e = {
86
89
  jwt: "jwt"
87
90
  }, m = {
88
91
  siwe: "siwe"
89
- }, c = {
92
+ }, u = {
90
93
  "base-sepolia": "base-sepolia",
91
94
  base: "base",
92
95
  arbitrum: "arbitrum",
@@ -94,7 +97,7 @@ const e = {
94
97
  polygon: "polygon",
95
98
  ethereum: "ethereum",
96
99
  "ethereum-sepolia": "ethereum-sepolia"
97
- }, u = {
100
+ }, c = {
98
101
  UNSPECIFIED: "UNSPECIFIED",
99
102
  PENDING: "PENDING",
100
103
  SUBMITTED: "SUBMITTED",
@@ -133,24 +136,27 @@ const e = {
133
136
  arbitrum: "arbitrum",
134
137
  optimism: "optimism",
135
138
  polygon: "polygon"
136
- }, v = {
139
+ }, b = {
137
140
  base: "base",
138
141
  ethereum: "ethereum",
139
142
  solana: "solana",
140
143
  aptos: "aptos",
141
144
  arbitrum: "arbitrum",
145
+ "arbitrum-sepolia": "arbitrum-sepolia",
142
146
  optimism: "optimism",
143
- polygon: "polygon"
144
- }, h = {
147
+ polygon: "polygon",
148
+ world: "world",
149
+ "world-sepolia": "world-sepolia"
150
+ }, v = {
145
151
  FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK",
146
152
  FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE"
147
- }, g = {
153
+ }, h = {
148
154
  ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH",
149
155
  ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
150
156
  ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING",
151
157
  ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED",
152
158
  ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED"
153
- }, b = {
159
+ }, g = {
154
160
  totp: "totp",
155
161
  sms: "sms"
156
162
  }, T = {
@@ -167,8 +173,11 @@ const e = {
167
173
  avalanche: "avalanche",
168
174
  polygon: "polygon",
169
175
  optimism: "optimism",
170
- arbitrum: "arbitrum"
171
- }, R = {
176
+ arbitrum: "arbitrum",
177
+ "arbitrum-sepolia": "arbitrum-sepolia",
178
+ world: "world",
179
+ "world-sepolia": "world-sepolia"
180
+ }, w = {
172
181
  base: "base",
173
182
  "base-sepolia": "base-sepolia",
174
183
  ethereum: "ethereum",
@@ -176,26 +185,29 @@ const e = {
176
185
  avalanche: "avalanche",
177
186
  polygon: "polygon",
178
187
  optimism: "optimism",
179
- arbitrum: "arbitrum"
180
- }, O = {
188
+ arbitrum: "arbitrum",
189
+ "arbitrum-sepolia": "arbitrum-sepolia",
190
+ world: "world",
191
+ "world-sepolia": "world-sepolia"
192
+ }, R = {
181
193
  solana: "solana",
182
194
  "solana-devnet": "solana-devnet"
183
- }, P = {
195
+ }, O = {
184
196
  solana: "solana",
185
197
  "solana-devnet": "solana-devnet"
186
198
  };
187
199
  export {
188
200
  d as DeveloperJWTAuthenticationType,
189
- r as EmailAuthenticationType,
190
- h as EndUserOnrampFeeType,
191
- g as EndUserOnrampOrderStatus,
201
+ _ as EmailAuthenticationType,
202
+ v as EndUserOnrampFeeType,
203
+ h as EndUserOnrampOrderStatus,
192
204
  e as ErrorType,
193
- c as EvmEip7702DelegationNetwork,
194
- u as EvmEip7702DelegationOperationStatus,
205
+ u as EvmEip7702DelegationNetwork,
206
+ c as EvmEip7702DelegationOperationStatus,
195
207
  y as EvmSwapsNetwork,
196
208
  p as EvmUserOperationNetwork,
197
209
  E as EvmUserOperationStatus,
198
- _ as InitiateEmailAuthenticationNextStepType,
210
+ r as InitiateEmailAuthenticationNextStepType,
199
211
  a as InitiateEmailAuthenticationRequestType,
200
212
  n as InitiateSiweAuthenticationRequestType,
201
213
  s as InitiateSmsAuthenticationNextStepType,
@@ -203,14 +215,14 @@ export {
203
215
  A as InitiateSmsMfaEnrollmentType,
204
216
  T as InitiateTotpMfaEnrollmentType,
205
217
  t as IosAttestationRegistrationResponsePlatform,
206
- b as MfaMethod,
207
- v as Network,
218
+ g as MfaMethod,
219
+ b as Network,
208
220
  o as OAuth2ProviderType,
209
221
  S as RefreshAccessTokenBodyGrantType,
210
- R as SendEvmAssetWithEndUserAccountBodyNetwork,
222
+ w as SendEvmAssetWithEndUserAccountBodyNetwork,
211
223
  N as SendEvmTransactionWithEndUserAccountBodyNetwork,
212
- P as SendSolanaAssetWithEndUserAccountBodyNetwork,
213
- O as SendSolanaTransactionWithEndUserAccountBodyNetwork,
224
+ O as SendSolanaAssetWithEndUserAccountBodyNetwork,
225
+ R as SendSolanaTransactionWithEndUserAccountBodyNetwork,
214
226
  m as SiweAuthenticationType,
215
227
  l as SmsAuthenticationType,
216
228
  f as SpendPermissionNetwork