@coinbase/cdp-api-client 0.0.73 → 0.0.74
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 +162 -161
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +52 -48
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
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 { authenticateUserWithCustomAuth as s, createEndUserEvmAccount as p, createEndUserEvmSmartAccount as c, createEndUserSolanaAccount as d, createSpendPermissionWithEndUserAccount as m, exportEndUserEvmAccount as u, exportEndUserSolanaAccount as l, getAuthenticatedEndUser as y,
|
|
5
|
-
import { AbiFunctionType as
|
|
6
|
-
import { configureCdpApiClient as
|
|
7
|
-
import { APIError as
|
|
4
|
+
import { authenticateUserWithCustomAuth as s, createEndUserEvmAccount as p, createEndUserEvmSmartAccount as c, createEndUserSolanaAccount as d, createSpendPermissionWithEndUserAccount as m, exportEndUserEvmAccount as u, exportEndUserSolanaAccount as l, getAuthenticatedEndUser as y, getMfaConfig as T, getUserOperationWithEndUserAccount as S, initiateAuthentication as E, initiateMfaEnrollment as A, initiateMfaVerification as h, listSpendPermissionsWithEndUserAccount as C, logOutEndUser as O, recordMfaEnrollmentPrompted as v, refreshAccessToken as g, registerTemporaryWalletSecret as R, revokeSpendPermissionWithEndUserAccount as k, sendEvmTransactionWithEndUserAccount as P, sendSolanaTransactionWithEndUserAccount as U, sendUserOperationWithEndUserAccount as f, signEvmHashWithEndUserAccount as w, signEvmMessageWithEndUserAccount as N, signEvmTransactionWithEndUserAccount as M, signEvmTypedDataWithEndUserAccount as D, signSolanaHashWithEndUserAccount as W, signSolanaMessageWithEndUserAccount as I, signSolanaTransactionWithEndUserAccount as V, submitMfaEnrollment as b, submitMfaVerification as q, verifyEmailAuthentication as L, verifyOAuthCode as X, verifySmsAuthentication as x } from "./index5.js";
|
|
5
|
+
import { AbiFunctionType as B, AbiInputType as H, AbiStateMutability as K, AccountType as j, AchDetailsAccountType as G, AddressRiskNetwork as J, AddressRiskRiskLevel as Q, AssetType as _, CapabilityStatus as z, CoolPaymentMethodType as Y, CreateDepositDestinationRequestType as Z, CreatePaymentMethodRequestAchType as $, CreatePaymentMethodRequestFedwireType as ee, CryptoDepositDestinationType as te, CustomerType as re, DepositDestinationType as ne, DeveloperJWTAuthenticationType as ie, EmailAuthenticationType as oe, ErrorType as ae, EthValueCriterionOperator as se, EthValueCriterionType as pe, EvmAddressCriterionOperator as ce, EvmAddressCriterionType as de, EvmDataCriterionType as me, EvmDataParameterConditionListOperator as ue, EvmDataParameterConditionOperator as le, EvmMessageCriterionType as ye, EvmNetworkCriterionNetworksItem as Te, EvmNetworkCriterionOperator as Se, EvmNetworkCriterionType as Ee, EvmSwapsNetwork as Ae, EvmTypedAddressConditionOperator as he, EvmTypedNumericalConditionOperator as Ce, EvmUserOperationNetwork as Oe, EvmUserOperationStatus as ve, InitiateEmailAuthenticationNextStepType as ge, InitiateEmailAuthenticationRequestType as Re, InitiateSmsAuthenticationNextStepType as ke, InitiateSmsAuthenticationRequestType as Pe, InvitationStatus as Ue, KnownAbiType as fe, KnownIdlType as we, LimitPeriod as Ne, LinkAccountType as Me, LinkableEntityRole as De, LinkableEntityType as We, ListEvmTokenBalancesNetwork as Ie, ListSolanaTokenBalancesNetwork as Ve, MfaMethod as be, MintAddressCriterionOperator as qe, MintAddressCriterionType as Le, NetUSDChangeCriterionOperator as Xe, NetUSDChangeCriterionType as xe, Network as Fe, OAuth2ProviderType as Be, OnchainDataResultSchemaColumnsItemType as He, OnrampOrderFeeType as Ke, OnrampOrderPaymentMethodTypeId as je, OnrampOrderStatus as Ge, OnrampPaymentLinkType as Je, OnrampQuotePaymentMethodTypeId as Qe, PermissionCatalogObjectsItemType as _e, PermissionSubjectType as ze, PermissionVerb as Ye, PolicyScope as Ze, PrepareUserOperationRuleAction as $e, PrepareUserOperationRuleOperation as et, ProgramIdCriterionOperator as tt, ProgramIdCriterionType as rt, RefreshAccessTokenBodyGrantType as nt, RequirementErrorCode as it, RequirementField as ot, SendEvmTransactionRuleAction as at, SendEvmTransactionRuleOperation as st, SendEvmTransactionWithEndUserAccountBodyNetwork as pt, SendSolTransactionRuleAction as ct, SendSolTransactionRuleOperation as dt, SendSolanaTransactionWithEndUserAccountBodyNetwork as mt, SendUserOperationRuleAction as ut, SendUserOperationRuleOperation as lt, SignEvmHashRuleAction as yt, SignEvmHashRuleOperation as Tt, SignEvmMessageRuleAction as St, SignEvmMessageRuleOperation as Et, SignEvmTransactionRuleAction as At, SignEvmTransactionRuleOperation as ht, SignEvmTypedDataFieldCriterionType as Ct, SignEvmTypedDataRuleAction as Ot, SignEvmTypedDataRuleOperation as vt, SignEvmTypedDataVerifyingContractCriterionOperator as gt, SignEvmTypedDataVerifyingContractCriterionType as Rt, SignSolMessageRuleAction as kt, SignSolMessageRuleOperation as Pt, SignSolTransactionRuleAction as Ut, SignSolTransactionRuleOperation as ft, SmsAuthenticationType as wt, SolAddressCriterionOperator as Nt, SolAddressCriterionType as Mt, SolDataCriterionType as Dt, SolDataParameterConditionListOperator as Wt, SolDataParameterConditionOperator as It, SolMessageCriterionType as Vt, SolNetworkCriterionNetworksItem as bt, SolNetworkCriterionOperator as qt, SolNetworkCriterionType as Lt, SolValueCriterionOperator as Xt, SolValueCriterionType as xt, SpendPermissionNetwork as Ft, SplAddressCriterionOperator as Bt, SplAddressCriterionType as Ht, SplValueCriterionOperator as Kt, SplValueCriterionType as jt, TransferCancellationReason as Gt, TransferFeeType as Jt, TransferRequestAmountType as Qt, TransferReversalReason as _t, TransferStatus as zt, TransferStatusChangedWebhookEventEventType as Yt, X402DiscoveryResourceType as Zt, X402PaymentPayloadNetwork as $t, X402PaymentPayloadScheme as er, X402PaymentRequirementsNetwork as tr, X402PaymentRequirementsScheme as rr, X402SettleErrorReason as nr, X402SupportedPaymentKindNetwork as ir, X402SupportedPaymentKindScheme as or, X402VerifyInvalidReason as ar, X402Version as sr } from "./index6.js";
|
|
6
|
+
import { configureCdpApiClient as cr, setAuthManager as dr } from "./index7.js";
|
|
7
|
+
import { APIError as ur, HttpErrorType as lr, UnknownApiError as yr, UnknownError as Tr, isOpenAPIError as Sr } from "./index8.js";
|
|
8
8
|
e.registerPackageVersion("api_client", t);
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
10
|
+
ur as APIError,
|
|
11
|
+
B as AbiFunctionType,
|
|
12
|
+
H as AbiInputType,
|
|
13
|
+
K as AbiStateMutability,
|
|
14
|
+
j as AccountType,
|
|
15
|
+
G as AchDetailsAccountType,
|
|
16
|
+
J as AddressRiskNetwork,
|
|
17
|
+
Q as AddressRiskRiskLevel,
|
|
18
|
+
_ as AssetType,
|
|
19
|
+
z as CapabilityStatus,
|
|
20
|
+
Y as CoolPaymentMethodType,
|
|
21
|
+
Z as CreateDepositDestinationRequestType,
|
|
22
|
+
$ as CreatePaymentMethodRequestAchType,
|
|
23
|
+
ee as CreatePaymentMethodRequestFedwireType,
|
|
24
|
+
te as CryptoDepositDestinationType,
|
|
25
|
+
re as CustomerType,
|
|
26
|
+
ne as DepositDestinationType,
|
|
27
|
+
ie as DeveloperJWTAuthenticationType,
|
|
28
|
+
oe as EmailAuthenticationType,
|
|
29
|
+
ae as ErrorType,
|
|
30
|
+
se as EthValueCriterionOperator,
|
|
31
|
+
pe as EthValueCriterionType,
|
|
32
|
+
ce as EvmAddressCriterionOperator,
|
|
33
|
+
de as EvmAddressCriterionType,
|
|
34
|
+
me as EvmDataCriterionType,
|
|
35
|
+
ue as EvmDataParameterConditionListOperator,
|
|
36
|
+
le as EvmDataParameterConditionOperator,
|
|
37
|
+
ye as EvmMessageCriterionType,
|
|
38
|
+
Te as EvmNetworkCriterionNetworksItem,
|
|
39
|
+
Se as EvmNetworkCriterionOperator,
|
|
40
|
+
Ee as EvmNetworkCriterionType,
|
|
41
|
+
Ae as EvmSwapsNetwork,
|
|
42
|
+
he as EvmTypedAddressConditionOperator,
|
|
43
|
+
Ce as EvmTypedNumericalConditionOperator,
|
|
44
|
+
Oe as EvmUserOperationNetwork,
|
|
45
|
+
ve as EvmUserOperationStatus,
|
|
46
|
+
lr as HttpErrorType,
|
|
47
|
+
ge as InitiateEmailAuthenticationNextStepType,
|
|
48
|
+
Re as InitiateEmailAuthenticationRequestType,
|
|
49
|
+
ke as InitiateSmsAuthenticationNextStepType,
|
|
50
|
+
Pe as InitiateSmsAuthenticationRequestType,
|
|
51
|
+
Ue as InvitationStatus,
|
|
52
|
+
fe as KnownAbiType,
|
|
53
|
+
we as KnownIdlType,
|
|
54
|
+
Ne as LimitPeriod,
|
|
55
|
+
Me as LinkAccountType,
|
|
56
56
|
De as LinkableEntityRole,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
57
|
+
We as LinkableEntityType,
|
|
58
|
+
Ie as ListEvmTokenBalancesNetwork,
|
|
59
|
+
Ve as ListSolanaTokenBalancesNetwork,
|
|
60
|
+
be as MfaMethod,
|
|
61
|
+
qe as MintAddressCriterionOperator,
|
|
62
|
+
Le as MintAddressCriterionType,
|
|
63
|
+
Xe as NetUSDChangeCriterionOperator,
|
|
64
|
+
xe as NetUSDChangeCriterionType,
|
|
65
|
+
Fe as Network,
|
|
66
|
+
Be as OAuth2ProviderType,
|
|
67
|
+
He as OnchainDataResultSchemaColumnsItemType,
|
|
68
|
+
Ke as OnrampOrderFeeType,
|
|
69
|
+
je as OnrampOrderPaymentMethodTypeId,
|
|
70
|
+
Ge as OnrampOrderStatus,
|
|
71
|
+
Je as OnrampPaymentLinkType,
|
|
72
|
+
Qe as OnrampQuotePaymentMethodTypeId,
|
|
73
|
+
_e as PermissionCatalogObjectsItemType,
|
|
74
|
+
ze as PermissionSubjectType,
|
|
75
|
+
Ye as PermissionVerb,
|
|
76
|
+
Ze as PolicyScope,
|
|
77
|
+
$e as PrepareUserOperationRuleAction,
|
|
78
|
+
et as PrepareUserOperationRuleOperation,
|
|
79
|
+
tt as ProgramIdCriterionOperator,
|
|
80
|
+
rt as ProgramIdCriterionType,
|
|
81
|
+
nt as RefreshAccessTokenBodyGrantType,
|
|
82
|
+
it as RequirementErrorCode,
|
|
83
|
+
ot as RequirementField,
|
|
84
|
+
at as SendEvmTransactionRuleAction,
|
|
85
|
+
st as SendEvmTransactionRuleOperation,
|
|
86
|
+
pt as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
87
|
+
ct as SendSolTransactionRuleAction,
|
|
88
|
+
dt as SendSolTransactionRuleOperation,
|
|
89
|
+
mt as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
90
|
+
ut as SendUserOperationRuleAction,
|
|
91
|
+
lt as SendUserOperationRuleOperation,
|
|
92
|
+
yt as SignEvmHashRuleAction,
|
|
93
|
+
Tt as SignEvmHashRuleOperation,
|
|
94
|
+
St as SignEvmMessageRuleAction,
|
|
95
|
+
Et as SignEvmMessageRuleOperation,
|
|
96
|
+
At as SignEvmTransactionRuleAction,
|
|
97
|
+
ht as SignEvmTransactionRuleOperation,
|
|
98
|
+
Ct as SignEvmTypedDataFieldCriterionType,
|
|
99
|
+
Ot as SignEvmTypedDataRuleAction,
|
|
100
|
+
vt as SignEvmTypedDataRuleOperation,
|
|
101
|
+
gt as SignEvmTypedDataVerifyingContractCriterionOperator,
|
|
102
|
+
Rt as SignEvmTypedDataVerifyingContractCriterionType,
|
|
103
|
+
kt as SignSolMessageRuleAction,
|
|
104
|
+
Pt as SignSolMessageRuleOperation,
|
|
105
|
+
Ut as SignSolTransactionRuleAction,
|
|
106
|
+
ft as SignSolTransactionRuleOperation,
|
|
107
|
+
wt as SmsAuthenticationType,
|
|
108
|
+
Nt as SolAddressCriterionOperator,
|
|
109
|
+
Mt as SolAddressCriterionType,
|
|
110
110
|
Dt as SolDataCriterionType,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
111
|
+
Wt as SolDataParameterConditionListOperator,
|
|
112
|
+
It as SolDataParameterConditionOperator,
|
|
113
|
+
Vt as SolMessageCriterionType,
|
|
114
|
+
bt as SolNetworkCriterionNetworksItem,
|
|
115
|
+
qt as SolNetworkCriterionOperator,
|
|
116
|
+
Lt as SolNetworkCriterionType,
|
|
117
|
+
Xt as SolValueCriterionOperator,
|
|
118
|
+
xt as SolValueCriterionType,
|
|
119
|
+
Ft as SpendPermissionNetwork,
|
|
120
|
+
Bt as SplAddressCriterionOperator,
|
|
121
|
+
Ht as SplAddressCriterionType,
|
|
122
|
+
Kt as SplValueCriterionOperator,
|
|
123
|
+
jt as SplValueCriterionType,
|
|
124
|
+
Gt as TransferCancellationReason,
|
|
125
|
+
Jt as TransferFeeType,
|
|
126
|
+
Qt as TransferRequestAmountType,
|
|
127
|
+
_t as TransferReversalReason,
|
|
128
|
+
zt as TransferStatus,
|
|
129
|
+
Yt as TransferStatusChangedWebhookEventEventType,
|
|
130
|
+
yr as UnknownApiError,
|
|
131
|
+
Tr as UnknownError,
|
|
132
|
+
Zt as X402DiscoveryResourceType,
|
|
133
|
+
$t as X402PaymentPayloadNetwork,
|
|
134
|
+
er as X402PaymentPayloadScheme,
|
|
135
|
+
tr as X402PaymentRequirementsNetwork,
|
|
136
|
+
rr as X402PaymentRequirementsScheme,
|
|
137
|
+
nr as X402SettleErrorReason,
|
|
138
|
+
ir as X402SupportedPaymentKindNetwork,
|
|
139
|
+
or as X402SupportedPaymentKindScheme,
|
|
140
|
+
ar as X402VerifyInvalidReason,
|
|
141
|
+
sr as X402Version,
|
|
142
142
|
s as authenticateUserWithCustomAuth,
|
|
143
|
-
|
|
143
|
+
cr as configureCdpApiClient,
|
|
144
144
|
p as createEndUserEvmAccount,
|
|
145
145
|
c as createEndUserEvmSmartAccount,
|
|
146
146
|
d as createEndUserSolanaAccount,
|
|
@@ -148,31 +148,32 @@ export {
|
|
|
148
148
|
u as exportEndUserEvmAccount,
|
|
149
149
|
l as exportEndUserSolanaAccount,
|
|
150
150
|
y as getAuthenticatedEndUser,
|
|
151
|
-
T as
|
|
152
|
-
S as
|
|
153
|
-
E as
|
|
154
|
-
A as
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
C as
|
|
158
|
-
O as
|
|
159
|
-
v as
|
|
160
|
-
g as
|
|
161
|
-
R as
|
|
162
|
-
k as
|
|
163
|
-
P as
|
|
164
|
-
U as
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
w as
|
|
168
|
-
N as
|
|
151
|
+
T as getMfaConfig,
|
|
152
|
+
S as getUserOperationWithEndUserAccount,
|
|
153
|
+
E as initiateAuthentication,
|
|
154
|
+
A as initiateMfaEnrollment,
|
|
155
|
+
h as initiateMfaVerification,
|
|
156
|
+
Sr as isOpenAPIError,
|
|
157
|
+
C as listSpendPermissionsWithEndUserAccount,
|
|
158
|
+
O as logOutEndUser,
|
|
159
|
+
v as recordMfaEnrollmentPrompted,
|
|
160
|
+
g as refreshAccessToken,
|
|
161
|
+
R as registerTemporaryWalletSecret,
|
|
162
|
+
k as revokeSpendPermissionWithEndUserAccount,
|
|
163
|
+
P as sendEvmTransactionWithEndUserAccount,
|
|
164
|
+
U as sendSolanaTransactionWithEndUserAccount,
|
|
165
|
+
f as sendUserOperationWithEndUserAccount,
|
|
166
|
+
dr as setAuthManager,
|
|
167
|
+
w as signEvmHashWithEndUserAccount,
|
|
168
|
+
N as signEvmMessageWithEndUserAccount,
|
|
169
|
+
M as signEvmTransactionWithEndUserAccount,
|
|
169
170
|
D as signEvmTypedDataWithEndUserAccount,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
171
|
+
W as signSolanaHashWithEndUserAccount,
|
|
172
|
+
I as signSolanaMessageWithEndUserAccount,
|
|
173
|
+
V as signSolanaTransactionWithEndUserAccount,
|
|
174
|
+
b as submitMfaEnrollment,
|
|
175
|
+
q as submitMfaVerification,
|
|
176
|
+
L as verifyEmailAuthentication,
|
|
177
|
+
X as verifyOAuthCode,
|
|
178
|
+
x as verifySmsAuthentication
|
|
178
179
|
};
|
package/dist/esm/index4.js
CHANGED
package/dist/esm/index5.js
CHANGED
|
@@ -53,10 +53,13 @@ const d = (e, t, n) => s(
|
|
|
53
53
|
method: "POST"
|
|
54
54
|
},
|
|
55
55
|
t
|
|
56
|
-
), h = (e, t
|
|
56
|
+
), h = (e, t) => s(
|
|
57
|
+
{ url: `/v2/embedded-wallet-api/projects/${e}/auth/mfa`, method: "GET" },
|
|
58
|
+
t
|
|
59
|
+
), $ = (e, t, n) => s(
|
|
57
60
|
{ url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}`, method: "GET" },
|
|
58
61
|
n
|
|
59
|
-
),
|
|
62
|
+
), T = (e, t, n, a) => s(
|
|
60
63
|
{
|
|
61
64
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/wallet-secrets`,
|
|
62
65
|
method: "PUT",
|
|
@@ -64,7 +67,7 @@ const d = (e, t, n) => s(
|
|
|
64
67
|
data: n
|
|
65
68
|
},
|
|
66
69
|
a
|
|
67
|
-
),
|
|
70
|
+
), v = (e, t, n, a) => s(
|
|
68
71
|
{
|
|
69
72
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm`,
|
|
70
73
|
method: "POST",
|
|
@@ -72,7 +75,7 @@ const d = (e, t, n) => s(
|
|
|
72
75
|
data: n
|
|
73
76
|
},
|
|
74
77
|
a
|
|
75
|
-
),
|
|
78
|
+
), j = (e, t, n, a) => s(
|
|
76
79
|
{
|
|
77
80
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign`,
|
|
78
81
|
method: "POST",
|
|
@@ -80,7 +83,7 @@ const d = (e, t, n) => s(
|
|
|
80
83
|
data: n
|
|
81
84
|
},
|
|
82
85
|
a
|
|
83
|
-
),
|
|
86
|
+
), S = (e, t, n, a) => s(
|
|
84
87
|
{
|
|
85
88
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/transaction`,
|
|
86
89
|
method: "POST",
|
|
@@ -88,7 +91,7 @@ const d = (e, t, n) => s(
|
|
|
88
91
|
data: n
|
|
89
92
|
},
|
|
90
93
|
a
|
|
91
|
-
),
|
|
94
|
+
), b = (e, t, n, a) => s(
|
|
92
95
|
{
|
|
93
96
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/send/transaction`,
|
|
94
97
|
method: "POST",
|
|
@@ -96,7 +99,7 @@ const d = (e, t, n) => s(
|
|
|
96
99
|
data: n
|
|
97
100
|
},
|
|
98
101
|
a
|
|
99
|
-
),
|
|
102
|
+
), y = (e, t, n, a) => s(
|
|
100
103
|
{
|
|
101
104
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/message`,
|
|
102
105
|
method: "POST",
|
|
@@ -104,7 +107,7 @@ const d = (e, t, n) => s(
|
|
|
104
107
|
data: n
|
|
105
108
|
},
|
|
106
109
|
a
|
|
107
|
-
),
|
|
110
|
+
), E = (e, t, n, a) => s(
|
|
108
111
|
{
|
|
109
112
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/typed-data`,
|
|
110
113
|
method: "POST",
|
|
@@ -112,7 +115,7 @@ const d = (e, t, n) => s(
|
|
|
112
115
|
data: n
|
|
113
116
|
},
|
|
114
117
|
a
|
|
115
|
-
),
|
|
118
|
+
), w = (e, t, n, a) => s(
|
|
116
119
|
{
|
|
117
120
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/export`,
|
|
118
121
|
method: "POST",
|
|
@@ -120,7 +123,7 @@ const d = (e, t, n) => s(
|
|
|
120
123
|
data: n
|
|
121
124
|
},
|
|
122
125
|
a
|
|
123
|
-
),
|
|
126
|
+
), P = (e, t, n, a) => s(
|
|
124
127
|
{
|
|
125
128
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts`,
|
|
126
129
|
method: "POST",
|
|
@@ -128,13 +131,13 @@ const d = (e, t, n) => s(
|
|
|
128
131
|
data: n
|
|
129
132
|
},
|
|
130
133
|
a
|
|
131
|
-
),
|
|
134
|
+
), O = (e, t, n, a, r) => s(
|
|
132
135
|
{
|
|
133
136
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/user-operations/${a}`,
|
|
134
137
|
method: "GET"
|
|
135
138
|
},
|
|
136
139
|
r
|
|
137
|
-
),
|
|
140
|
+
), C = (e, t, n, a, r) => s(
|
|
138
141
|
{
|
|
139
142
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/send`,
|
|
140
143
|
method: "POST",
|
|
@@ -142,7 +145,7 @@ const d = (e, t, n) => s(
|
|
|
142
145
|
data: a
|
|
143
146
|
},
|
|
144
147
|
r
|
|
145
|
-
),
|
|
148
|
+
), A = (e, t, n, a, r) => s(
|
|
146
149
|
{
|
|
147
150
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/spend-permissions`,
|
|
148
151
|
method: "POST",
|
|
@@ -150,7 +153,7 @@ const d = (e, t, n) => s(
|
|
|
150
153
|
data: a
|
|
151
154
|
},
|
|
152
155
|
r
|
|
153
|
-
),
|
|
156
|
+
), f = (e, t, n, a, r) => s(
|
|
154
157
|
{
|
|
155
158
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/spend-permissions/list`,
|
|
156
159
|
method: "GET",
|
|
@@ -165,7 +168,7 @@ const d = (e, t, n) => s(
|
|
|
165
168
|
data: a
|
|
166
169
|
},
|
|
167
170
|
r
|
|
168
|
-
),
|
|
171
|
+
), g = (e, t, n, a) => s(
|
|
169
172
|
{
|
|
170
173
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana`,
|
|
171
174
|
method: "POST",
|
|
@@ -173,7 +176,7 @@ const d = (e, t, n) => s(
|
|
|
173
176
|
data: n
|
|
174
177
|
},
|
|
175
178
|
a
|
|
176
|
-
),
|
|
179
|
+
), W = (e, t, n, a) => s(
|
|
177
180
|
{
|
|
178
181
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/export`,
|
|
179
182
|
method: "POST",
|
|
@@ -181,7 +184,7 @@ const d = (e, t, n) => s(
|
|
|
181
184
|
data: n
|
|
182
185
|
},
|
|
183
186
|
a
|
|
184
|
-
),
|
|
187
|
+
), M = (e, t, n, a) => s(
|
|
185
188
|
{
|
|
186
189
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/sign`,
|
|
187
190
|
method: "POST",
|
|
@@ -189,7 +192,7 @@ const d = (e, t, n) => s(
|
|
|
189
192
|
data: n
|
|
190
193
|
},
|
|
191
194
|
a
|
|
192
|
-
),
|
|
195
|
+
), x = (e, t, n, a) => s(
|
|
193
196
|
{
|
|
194
197
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/sign/message`,
|
|
195
198
|
method: "POST",
|
|
@@ -197,7 +200,7 @@ const d = (e, t, n) => s(
|
|
|
197
200
|
data: n
|
|
198
201
|
},
|
|
199
202
|
a
|
|
200
|
-
),
|
|
203
|
+
), G = (e, t, n, a) => s(
|
|
201
204
|
{
|
|
202
205
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/sign/transaction`,
|
|
203
206
|
method: "POST",
|
|
@@ -213,13 +216,13 @@ const d = (e, t, n) => s(
|
|
|
213
216
|
data: n
|
|
214
217
|
},
|
|
215
218
|
a
|
|
216
|
-
),
|
|
219
|
+
), H = (e, t, n, a) => s(
|
|
217
220
|
{
|
|
218
221
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/enroll/${n}/init`,
|
|
219
222
|
method: "POST"
|
|
220
223
|
},
|
|
221
224
|
a
|
|
222
|
-
),
|
|
225
|
+
), V = (e, t, n, a, r) => s(
|
|
223
226
|
{
|
|
224
227
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/enroll/${n}/submit`,
|
|
225
228
|
method: "POST",
|
|
@@ -227,13 +230,13 @@ const d = (e, t, n) => s(
|
|
|
227
230
|
data: a
|
|
228
231
|
},
|
|
229
232
|
r
|
|
230
|
-
),
|
|
233
|
+
), D = (e, t, n, a) => s(
|
|
231
234
|
{
|
|
232
235
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/verify/${n}/init`,
|
|
233
236
|
method: "POST"
|
|
234
237
|
},
|
|
235
238
|
a
|
|
236
|
-
),
|
|
239
|
+
), q = (e, t, n, a, r) => s(
|
|
237
240
|
{
|
|
238
241
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/verify/${n}/submit`,
|
|
239
242
|
method: "POST",
|
|
@@ -241,7 +244,7 @@ const d = (e, t, n) => s(
|
|
|
241
244
|
data: a
|
|
242
245
|
},
|
|
243
246
|
r
|
|
244
|
-
),
|
|
247
|
+
), z = (e, t, n) => s(
|
|
245
248
|
{
|
|
246
249
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/prompt`,
|
|
247
250
|
method: "PUT"
|
|
@@ -250,35 +253,36 @@ const d = (e, t, n) => s(
|
|
|
250
253
|
);
|
|
251
254
|
export {
|
|
252
255
|
m as authenticateUserWithCustomAuth,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
v as createEndUserEvmAccount,
|
|
257
|
+
P as createEndUserEvmSmartAccount,
|
|
258
|
+
g as createEndUserSolanaAccount,
|
|
259
|
+
A as createSpendPermissionWithEndUserAccount,
|
|
260
|
+
w as exportEndUserEvmAccount,
|
|
261
|
+
W as exportEndUserSolanaAccount,
|
|
262
|
+
$ as getAuthenticatedEndUser,
|
|
263
|
+
h as getMfaConfig,
|
|
264
|
+
O as getUserOperationWithEndUserAccount,
|
|
261
265
|
d as initiateAuthentication,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
H as initiateMfaEnrollment,
|
|
267
|
+
D as initiateMfaVerification,
|
|
268
|
+
f as listSpendPermissionsWithEndUserAccount,
|
|
265
269
|
u as logOutEndUser,
|
|
266
|
-
|
|
270
|
+
z as recordMfaEnrollmentPrompted,
|
|
267
271
|
l as refreshAccessToken,
|
|
268
|
-
|
|
272
|
+
T as registerTemporaryWalletSecret,
|
|
269
273
|
U as revokeSpendPermissionWithEndUserAccount,
|
|
270
|
-
|
|
274
|
+
b as sendEvmTransactionWithEndUserAccount,
|
|
271
275
|
k as sendSolanaTransactionWithEndUserAccount,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
276
|
+
C as sendUserOperationWithEndUserAccount,
|
|
277
|
+
j as signEvmHashWithEndUserAccount,
|
|
278
|
+
y as signEvmMessageWithEndUserAccount,
|
|
279
|
+
S as signEvmTransactionWithEndUserAccount,
|
|
280
|
+
E as signEvmTypedDataWithEndUserAccount,
|
|
281
|
+
M as signSolanaHashWithEndUserAccount,
|
|
282
|
+
x as signSolanaMessageWithEndUserAccount,
|
|
283
|
+
G as signSolanaTransactionWithEndUserAccount,
|
|
284
|
+
V as submitMfaEnrollment,
|
|
285
|
+
q as submitMfaVerification,
|
|
282
286
|
i as verifyEmailAuthentication,
|
|
283
287
|
c as verifyOAuthCode,
|
|
284
288
|
p as verifySmsAuthentication
|
package/dist/types/index.d.ts
CHANGED
|
@@ -968,6 +968,10 @@ export declare const getAuthenticatedEndUser: (projectId: string, userId: string
|
|
|
968
968
|
|
|
969
969
|
export declare type GetAuthenticatedEndUserResult = NonNullable<Awaited<ReturnType<typeof getAuthenticatedEndUser>>>;
|
|
970
970
|
|
|
971
|
+
export declare const getMfaConfig: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<MfaConfig>;
|
|
972
|
+
|
|
973
|
+
export declare type GetMfaConfigResult = NonNullable<Awaited<ReturnType<typeof getMfaConfig>>>;
|
|
974
|
+
|
|
971
975
|
export declare type GetSwapPriceResponse = CommonSwapResponse & GetSwapPriceResponseAllOf;
|
|
972
976
|
|
|
973
977
|
export declare type GetSwapPriceResponseAllOf = {
|