@coinbase/cdp-api-client 0.0.99 → 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 +90 -251
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +85 -944
- package/dist/esm/index6.js +218 -180
- package/dist/esm/index7.js +1 -1
- package/dist/types/index.d.ts +1249 -7620
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,257 +1,96 @@
|
|
|
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 {
|
|
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
|
-
|
|
11
|
-
s as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
g as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
k as
|
|
33
|
-
M as
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
N as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
H as
|
|
48
|
-
|
|
49
|
-
j as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
ce as
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Re as
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Ie as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
Fe as OrderStatus,
|
|
97
|
-
Le as OrderType,
|
|
98
|
-
Xe as PaymentActionStatus,
|
|
99
|
-
qe as PaymentExecutionBehavior,
|
|
100
|
-
Be as PaymentSessionStatus,
|
|
101
|
-
xe as PaymentSourceNetwork,
|
|
102
|
-
He as PaymentTargetNetwork,
|
|
103
|
-
Ke as PermissionCatalogObjectsItemType,
|
|
104
|
-
je as PermissionSubjectType,
|
|
105
|
-
Je as PermissionVerb,
|
|
106
|
-
Ge as Permit2PayloadType,
|
|
107
|
-
Qe as PolicyScope,
|
|
108
|
-
_e as PrepareUserOperationRuleAction,
|
|
109
|
-
ze as PrepareUserOperationRuleOperation,
|
|
110
|
-
Ye as ProgramIdCriterionOperator,
|
|
111
|
-
Ze as ProgramIdCriterionType,
|
|
112
|
-
$e as RateLimitingCriterionType,
|
|
113
|
-
et as RefreshAccessTokenBodyGrantType,
|
|
114
|
-
tt as ReportDestinationAllOfType,
|
|
115
|
-
nt as ReportStatus,
|
|
116
|
-
rt as RequirementStatus,
|
|
117
|
-
it as ResourceType,
|
|
118
|
-
ot as SSHKeyAlgorithm,
|
|
119
|
-
at as ScheduleType,
|
|
120
|
-
st as SendEndUserEvmAssetRuleAction,
|
|
121
|
-
pt as SendEndUserEvmAssetRuleOperation,
|
|
122
|
-
dt as SendEndUserEvmTransactionRuleAction,
|
|
123
|
-
lt as SendEndUserEvmTransactionRuleOperation,
|
|
124
|
-
ct as SendEndUserSolAssetRuleAction,
|
|
125
|
-
mt as SendEndUserSolAssetRuleOperation,
|
|
126
|
-
ut as SendEndUserSolTransactionRuleAction,
|
|
127
|
-
Et as SendEndUserSolTransactionRuleOperation,
|
|
128
|
-
yt as SendEvmAssetWithEndUserAccountBodyNetwork,
|
|
129
|
-
St as SendEvmTransactionRuleAction,
|
|
130
|
-
Tt as SendEvmTransactionRuleOperation,
|
|
131
|
-
At as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
132
|
-
Ot as SendSolTransactionRuleAction,
|
|
133
|
-
gt as SendSolTransactionRuleOperation,
|
|
134
|
-
vt as SendSolanaAssetWithEndUserAccountBodyNetwork,
|
|
135
|
-
Rt as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
136
|
-
Ut as SendUserOperationRuleAction,
|
|
137
|
-
ht as SendUserOperationRuleOperation,
|
|
138
|
-
Ct as SignEndUserEvmMessageRuleAction,
|
|
139
|
-
Pt as SignEndUserEvmMessageRuleOperation,
|
|
140
|
-
ft as SignEndUserEvmTransactionRuleAction,
|
|
141
|
-
kt as SignEndUserEvmTransactionRuleOperation,
|
|
142
|
-
Mt as SignEndUserEvmTypedDataRuleAction,
|
|
143
|
-
wt as SignEndUserEvmTypedDataRuleOperation,
|
|
144
|
-
Dt as SignEndUserSolMessageRuleAction,
|
|
145
|
-
Nt as SignEndUserSolMessageRuleOperation,
|
|
146
|
-
It as SignEndUserSolTransactionRuleAction,
|
|
147
|
-
Wt as SignEndUserSolTransactionRuleOperation,
|
|
148
|
-
Vt as SignEvmHashRuleAction,
|
|
149
|
-
bt as SignEvmHashRuleOperation,
|
|
150
|
-
Ft as SignEvmMessageRuleAction,
|
|
151
|
-
Lt as SignEvmMessageRuleOperation,
|
|
152
|
-
Xt as SignEvmTransactionRuleAction,
|
|
153
|
-
qt as SignEvmTransactionRuleOperation,
|
|
154
|
-
Bt as SignEvmTypedDataFieldCriterionType,
|
|
155
|
-
xt as SignEvmTypedDataRuleAction,
|
|
156
|
-
Ht as SignEvmTypedDataRuleOperation,
|
|
157
|
-
Kt as SignEvmTypedDataVerifyingContractCriterionOperator,
|
|
158
|
-
jt as SignEvmTypedDataVerifyingContractCriterionType,
|
|
159
|
-
Jt as SignSolMessageRuleAction,
|
|
160
|
-
Gt as SignSolMessageRuleOperation,
|
|
161
|
-
Qt as SignSolTransactionRuleAction,
|
|
162
|
-
_t as SignSolTransactionRuleOperation,
|
|
163
|
-
zt as SmsAuthenticationType,
|
|
164
|
-
Yt as SolAddressCriterionOperator,
|
|
165
|
-
Zt as SolAddressCriterionType,
|
|
166
|
-
$t as SolDataCriterionType,
|
|
167
|
-
en as SolDataParameterConditionListOperator,
|
|
168
|
-
tn as SolDataParameterConditionOperator,
|
|
169
|
-
nn as SolMessageCriterionType,
|
|
170
|
-
rn as SolNetworkCriterionNetworksItem,
|
|
171
|
-
on as SolNetworkCriterionOperator,
|
|
172
|
-
an as SolNetworkCriterionType,
|
|
173
|
-
sn as SolValueCriterionOperator,
|
|
174
|
-
pn as SolValueCriterionType,
|
|
175
|
-
dn as SpendPermissionNetwork,
|
|
176
|
-
ln as SplAddressCriterionOperator,
|
|
177
|
-
cn as SplAddressCriterionType,
|
|
178
|
-
mn as SplValueCriterionOperator,
|
|
179
|
-
un as SplValueCriterionType,
|
|
180
|
-
En as Status,
|
|
181
|
-
yn as SwiftPaymentMethodAllOfPaymentRail,
|
|
182
|
-
Sn as SwiftPaymentMethodPaymentRail,
|
|
183
|
-
Tn as TimeInForce,
|
|
184
|
-
An as TransferColumn,
|
|
185
|
-
On as TransferEventEventType,
|
|
186
|
-
gn as TransferFeeType,
|
|
187
|
-
vn as TransferRequestAmountType,
|
|
188
|
-
Rn as TransferStatus,
|
|
189
|
-
Un as TravelRuleBeneficiaryAllOfWalletType,
|
|
190
|
-
hn as TravelRuleStatus,
|
|
191
|
-
Xr as UnknownApiError,
|
|
192
|
-
qr as UnknownError,
|
|
193
|
-
Cn as X402DiscoveryResourceType,
|
|
194
|
-
Pn as X402McpRequestJsonrpc,
|
|
195
|
-
fn as X402McpResponseJsonrpc,
|
|
196
|
-
kn as X402SettleErrorReason,
|
|
197
|
-
Mn as X402SupportedPaymentKindNetwork,
|
|
198
|
-
wn as X402SupportedPaymentKindScheme,
|
|
199
|
-
Dn as X402V1PaymentPayloadNetwork,
|
|
200
|
-
Nn as X402V1PaymentPayloadScheme,
|
|
201
|
-
In as X402V1PaymentRequirementsNetwork,
|
|
202
|
-
Wn as X402V1PaymentRequirementsScheme,
|
|
203
|
-
Vn as X402V2PaymentRequirementsScheme,
|
|
204
|
-
bn as X402VerifyInvalidReason,
|
|
205
|
-
Fn as X402Version,
|
|
206
|
-
Xn as authenticateUserWithCustomAuth,
|
|
207
|
-
Wr as configureCdpApiClient,
|
|
208
|
-
qn as createDelegationForEndUser,
|
|
209
|
-
Bn as createEndUserApplePayOnrampOrder,
|
|
210
|
-
xn as createEndUserEvmAccount,
|
|
211
|
-
Hn as createEndUserEvmSmartAccount,
|
|
212
|
-
Kn as createEndUserEvmSwap,
|
|
213
|
-
jn as createEndUserSolanaAccount,
|
|
214
|
-
Jn as createEvmEip7702DelegationWithEndUserAccount,
|
|
215
|
-
Gn as createSpendPermissionWithEndUserAccount,
|
|
216
|
-
Qn as exportEndUserEvmAccount,
|
|
217
|
-
_n as exportEndUserSolanaAccount,
|
|
218
|
-
zn as generateAttestationChallenge,
|
|
219
|
-
Yn as getAuthenticatedEndUser,
|
|
220
|
-
Zn as getEndUserEvmSwapPrice,
|
|
221
|
-
$n as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
|
|
222
|
-
er as getMfaConfig,
|
|
223
|
-
tr as getProjectConfig,
|
|
224
|
-
nr as getUserOperationWithEndUserAccount,
|
|
225
|
-
rr as initiateAuthentication,
|
|
226
|
-
ir as initiateMfaEnrollment,
|
|
227
|
-
or as initiateMfaEnrollment2,
|
|
228
|
-
ar as initiateMfaVerification,
|
|
229
|
-
Br as isOpenAPIError,
|
|
230
|
-
sr as listSpendPermissionsWithEndUserAccount,
|
|
231
|
-
pr as logOutEndUser,
|
|
232
|
-
dr as recordMfaEnrollmentPrompted,
|
|
233
|
-
lr as refreshAccessToken,
|
|
234
|
-
cr as registerAttestation,
|
|
235
|
-
mr as registerTemporaryWalletSecret,
|
|
236
|
-
ur as revokeDelegationForEndUser,
|
|
237
|
-
Er as revokeSpendPermissionWithEndUserAccount,
|
|
238
|
-
yr as sendEvmAssetWithEndUserAccount,
|
|
239
|
-
Sr as sendEvmTransactionWithEndUserAccount,
|
|
240
|
-
Tr as sendSolanaAssetWithEndUserAccount,
|
|
241
|
-
Ar as sendSolanaTransactionWithEndUserAccount,
|
|
242
|
-
Or as sendUserOperationWithEndUserAccount,
|
|
243
|
-
Vr as setAuthManager,
|
|
244
|
-
gr as signEvmHashWithEndUserAccount,
|
|
245
|
-
vr as signEvmMessageWithEndUserAccount,
|
|
246
|
-
Rr as signEvmTransactionWithEndUserAccount,
|
|
247
|
-
Ur as signEvmTypedDataWithEndUserAccount,
|
|
248
|
-
hr as signSolanaHashWithEndUserAccount,
|
|
249
|
-
Cr as signSolanaMessageWithEndUserAccount,
|
|
250
|
-
Pr as signSolanaTransactionWithEndUserAccount,
|
|
251
|
-
fr as submitMfaEnrollment,
|
|
252
|
-
kr as submitMfaVerification,
|
|
253
|
-
Mr as verifyEmailAuthentication,
|
|
254
|
-
wr as verifyOAuthCode,
|
|
255
|
-
Dr as verifyOAuthEndUserIdentity,
|
|
256
|
-
Nr as verifySmsAuthentication
|
|
10
|
+
Fe as APIError,
|
|
11
|
+
s as DeveloperJWTAuthenticationType,
|
|
12
|
+
c as EmailAuthenticationType,
|
|
13
|
+
E as EndUserOnrampFeeType,
|
|
14
|
+
d as EndUserOnrampOrderStatus,
|
|
15
|
+
p as ErrorType,
|
|
16
|
+
A as EvmEip7702DelegationNetwork,
|
|
17
|
+
m as EvmEip7702DelegationOperationStatus,
|
|
18
|
+
u as EvmSwapsNetwork,
|
|
19
|
+
h as EvmUserOperationNetwork,
|
|
20
|
+
U as EvmUserOperationStatus,
|
|
21
|
+
Ve as HttpErrorType,
|
|
22
|
+
l as InitiateEmailAuthenticationNextStepType,
|
|
23
|
+
S as InitiateEmailAuthenticationRequestType,
|
|
24
|
+
g as InitiateSiweAuthenticationRequestType,
|
|
25
|
+
y as InitiateSmsAuthenticationNextStepType,
|
|
26
|
+
f as InitiateSmsAuthenticationRequestType,
|
|
27
|
+
v as InitiateSmsMfaEnrollmentType,
|
|
28
|
+
T as InitiateTotpMfaEnrollmentType,
|
|
29
|
+
W as IosAttestationRegistrationResponsePlatform,
|
|
30
|
+
w as MfaMethod,
|
|
31
|
+
O as Network,
|
|
32
|
+
k as OAuth2ProviderType,
|
|
33
|
+
M as RefreshAccessTokenBodyGrantType,
|
|
34
|
+
I as SendEvmAssetWithEndUserAccountBodyNetwork,
|
|
35
|
+
P as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
36
|
+
N as SendSolanaAssetWithEndUserAccountBodyNetwork,
|
|
37
|
+
D as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
38
|
+
x as SiweAuthenticationType,
|
|
39
|
+
C as SmsAuthenticationType,
|
|
40
|
+
R as SpendPermissionNetwork,
|
|
41
|
+
qe as UnknownApiError,
|
|
42
|
+
He as UnknownError,
|
|
43
|
+
F as authenticateUserWithCustomAuth,
|
|
44
|
+
Ce as configureCdpApiClient,
|
|
45
|
+
V as createDelegationForEndUser,
|
|
46
|
+
q as createEndUserApplePayOnrampOrder,
|
|
47
|
+
H as createEndUserEvmAccount,
|
|
48
|
+
b as createEndUserEvmSmartAccount,
|
|
49
|
+
j as createEndUserEvmSwap,
|
|
50
|
+
G as createEndUserSolanaAccount,
|
|
51
|
+
J as createEvmEip7702DelegationWithEndUserAccount,
|
|
52
|
+
_ as createSpendPermissionWithEndUserAccount,
|
|
53
|
+
z as exportEndUserEvmAccount,
|
|
54
|
+
K as exportEndUserSolanaAccount,
|
|
55
|
+
L as generateAttestationChallenge,
|
|
56
|
+
Q as getAuthenticatedEndUser,
|
|
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,
|
|
65
|
+
ie as initiateMfaEnrollment2,
|
|
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
|
|
257
96
|
};
|
package/dist/esm/index4.js
CHANGED