@coinbase/cdp-api-client 0.0.99 → 0.0.100
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 +89 -251
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +71 -942
- package/dist/esm/index6.js +90 -81
- package/dist/types/index.d.ts +1024 -7678
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,257 +1,95 @@
|
|
|
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 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";
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Ie as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
be as OrderSide,
|
|
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
|
+
Be 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
|
+
x as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
38
|
+
D as SiweAuthenticationType,
|
|
39
|
+
C as SmsAuthenticationType,
|
|
40
|
+
R as SpendPermissionNetwork,
|
|
41
|
+
qe as UnknownApiError,
|
|
42
|
+
Fe as UnknownError,
|
|
43
|
+
V as authenticateUserWithCustomAuth,
|
|
44
|
+
De as configureCdpApiClient,
|
|
45
|
+
q as createDelegationForEndUser,
|
|
46
|
+
F 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 getEndUserEvmSwapPrice,
|
|
58
|
+
Y as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
|
|
59
|
+
Z as getMfaConfig,
|
|
60
|
+
$ as getProjectConfig,
|
|
61
|
+
ee as getUserOperationWithEndUserAccount,
|
|
62
|
+
te as initiateAuthentication,
|
|
63
|
+
ne as initiateMfaEnrollment,
|
|
64
|
+
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
|
|
257
95
|
};
|
package/dist/esm/index4.js
CHANGED