@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 +50 -49
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +37 -25
- package/dist/esm/index6.js +205 -176
- package/dist/esm/index7.js +1 -1
- package/dist/types/index.d.ts +326 -43
- package/package.json +1 -1
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
|
|
5
|
-
import { authenticateUserWithCustomAuth as
|
|
6
|
-
import { configureCdpApiClient as
|
|
7
|
-
import { APIError as
|
|
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
|
-
|
|
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
|
-
|
|
38
|
-
|
|
37
|
+
D as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
38
|
+
x as SiweAuthenticationType,
|
|
39
39
|
C as SmsAuthenticationType,
|
|
40
40
|
R as SpendPermissionNetwork,
|
|
41
41
|
qe as UnknownApiError,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
|
58
|
-
Y as
|
|
59
|
-
Z as
|
|
60
|
-
$ as
|
|
61
|
-
ee as
|
|
62
|
-
te as
|
|
63
|
-
ne as
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
};
|
package/dist/esm/index4.js
CHANGED
package/dist/esm/index5.js
CHANGED
|
@@ -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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
},
|
|
195
|
+
}, O = {
|
|
184
196
|
solana: "solana",
|
|
185
197
|
"solana-devnet": "solana-devnet"
|
|
186
198
|
};
|
|
187
199
|
export {
|
|
188
200
|
d as DeveloperJWTAuthenticationType,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
201
|
+
_ as EmailAuthenticationType,
|
|
202
|
+
v as EndUserOnrampFeeType,
|
|
203
|
+
h as EndUserOnrampOrderStatus,
|
|
192
204
|
e as ErrorType,
|
|
193
|
-
|
|
194
|
-
|
|
205
|
+
u as EvmEip7702DelegationNetwork,
|
|
206
|
+
c as EvmEip7702DelegationOperationStatus,
|
|
195
207
|
y as EvmSwapsNetwork,
|
|
196
208
|
p as EvmUserOperationNetwork,
|
|
197
209
|
E as EvmUserOperationStatus,
|
|
198
|
-
|
|
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
|
-
|
|
207
|
-
|
|
218
|
+
g as MfaMethod,
|
|
219
|
+
b as Network,
|
|
208
220
|
o as OAuth2ProviderType,
|
|
209
221
|
S as RefreshAccessTokenBodyGrantType,
|
|
210
|
-
|
|
222
|
+
w as SendEvmAssetWithEndUserAccountBodyNetwork,
|
|
211
223
|
N as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
212
|
-
|
|
213
|
-
|
|
224
|
+
O as SendSolanaAssetWithEndUserAccountBodyNetwork,
|
|
225
|
+
R as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
214
226
|
m as SiweAuthenticationType,
|
|
215
227
|
l as SmsAuthenticationType,
|
|
216
228
|
f as SpendPermissionNetwork
|