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