@coinbase/cdp-api-client 0.0.32 → 0.0.34
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 +146 -122
- package/dist/esm/index2.js +89 -36
- package/dist/esm/index3.js +261 -147
- package/dist/esm/index4.js +90 -55
- package/dist/types/index.d.ts +501 -25
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,126 +1,150 @@
|
|
|
1
|
-
import { createEndUserEvmAccount as r, createEndUserEvmSmartAccount as n,
|
|
2
|
-
import { AbiFunctionType as
|
|
3
|
-
import { configureCdpApiClient as
|
|
4
|
-
import { APIError as
|
|
1
|
+
import { createEndUserEvmAccount as r, createEndUserEvmSmartAccount as n, createEndUserSolanaAccount as i, createSpendPermissionWithEndUserAccount as o, exportEndUserEvmAccount as a, getAuthenticatedEndUser as s, getUserOperationWithEndUserAccount as p, initiateAuthentication as c, listSpendPermissionsWithEndUserAccount as d, logOutEndUser as m, refreshAccessToken as u, registerTemporaryWalletSecret as y, revokeSpendPermissionWithEndUserAccount as S, sendEvmTransactionWithEndUserAccount as l, sendSolanaTransactionWithEndUserAccount as T, sendUserOperationWithEndUserAccount as E, signEvmHashWithEndUserAccount as A, signEvmMessageWithEndUserAccount as O, signEvmTransactionWithEndUserAccount as h, signEvmTypedDataWithEndUserAccount as C, signSolanaHashWithEndUserAccount as v, signSolanaTransactionWithEndUserAccount as g, verifyEmailAuthentication as R, verifySmsAuthentication as U } from "./index2.js";
|
|
2
|
+
import { AbiFunctionType as k, AbiInputType as w, AbiStateMutability as N, AccountSourceType as D, AddressRiskNetwork as W, AddressRiskRiskLevel as f, CreateTransferQuoteRequestedAmountType as I, DeveloperJWTAuthenticationType as M, EmailAuthenticationType as V, ErrorType as X, EthValueCriterionOperator as x, EthValueCriterionType as L, EvmAddressCriterionOperator as b, EvmAddressCriterionType as q, EvmDataCriterionType as B, EvmDataParameterConditionListOperator as F, EvmDataParameterConditionOperator as H, EvmMessageCriterionType as K, EvmNetworkCriterionNetworksItem as Q, EvmNetworkCriterionOperator as G, EvmNetworkCriterionType as J, EvmSwapsNetwork as j, EvmTypedAddressConditionOperator as z, EvmTypedNumericalConditionOperator as Y, EvmUserOperationNetwork as Z, EvmUserOperationStatus as _, FeeDetailsType as $, FeeType as ee, InitiateEmailAuthenticationNextStepType as te, InitiateEmailAuthenticationRequestType as re, InitiateSmsAuthenticationNextStepType as ne, InitiateSmsAuthenticationRequestType as ie, KnownAbiType as oe, KnownIdlType as ae, LimitPeriod as se, ListEvmTokenBalancesNetwork as pe, ListSolanaTokenBalancesNetwork as ce, MintAddressCriterionOperator as de, MintAddressCriterionType as me, NetUSDChangeCriterionOperator as ue, NetUSDChangeCriterionType as ye, Network as Se, OnchainDataResultSchemaColumnsItemType as le, OnrampOrderFeeType as Te, OnrampOrderPaymentMethodTypeId as Ee, OnrampOrderStatus as Ae, OnrampPaymentLinkType as Oe, OnrampQuotePaymentMethodTypeId as he, PaymentDirection as Ce, PaymentMethodSourceType as ve, PaymentMethodType as ge, PaymentRailAction as Re, PaymentStatus as Ue, PolicyScope as Pe, PrepareUserOperationRuleAction as ke, PrepareUserOperationRuleOperation as we, ProgramIdCriterionOperator as Ne, ProgramIdCriterionType as De, RefreshAccessTokenBodyGrantType as We, SendEvmTransactionRuleAction as fe, SendEvmTransactionRuleOperation as Ie, SendEvmTransactionWithEndUserAccountBodyNetwork as Me, SendSolTransactionRuleAction as Ve, SendSolTransactionRuleOperation as Xe, SendSolanaTransactionWithEndUserAccountBodyNetwork as xe, SendUserOperationRuleAction as Le, SendUserOperationRuleOperation as be, SignEvmHashRuleAction as qe, SignEvmHashRuleOperation as Be, SignEvmMessageRuleAction as Fe, SignEvmMessageRuleOperation as He, SignEvmTransactionRuleAction as Ke, SignEvmTransactionRuleOperation as Qe, SignEvmTypedDataFieldCriterionType as Ge, SignEvmTypedDataRuleAction as Je, SignEvmTypedDataRuleOperation as je, SignEvmTypedDataVerifyingContractCriterionOperator as ze, SignEvmTypedDataVerifyingContractCriterionType as Ye, SignSolMessageRuleAction as Ze, SignSolMessageRuleOperation as _e, SignSolTransactionRuleAction as $e, SignSolTransactionRuleOperation as et, SmsAuthenticationType as tt, SolAddressCriterionOperator as rt, SolAddressCriterionType as nt, SolDataCriterionType as it, SolDataParameterConditionListOperator as ot, SolDataParameterConditionOperator as at, SolMessageCriterionType as st, SolNetworkCriterionNetworksItem as pt, SolNetworkCriterionOperator as ct, SolNetworkCriterionType as dt, SolValueCriterionOperator as mt, SolValueCriterionType as ut, SourceType as yt, SpendPermissionNetwork as St, SplAddressCriterionOperator as lt, SplAddressCriterionType as Tt, SplValueCriterionOperator as Et, SplValueCriterionType as At, TransferSourceType as Ot, TransferStatus as ht, TransferTargetType as Ct, X402DiscoveryResourceType as vt, X402PaymentPayloadNetwork as gt, X402PaymentPayloadScheme as Rt, X402PaymentRequirementsNetwork as Ut, X402PaymentRequirementsScheme as Pt, X402SettleErrorReason as kt, X402SupportedPaymentKindNetwork as wt, X402SupportedPaymentKindScheme as Nt, X402VerifyInvalidReason as Dt, X402Version as Wt } from "./index3.js";
|
|
3
|
+
import { configureCdpApiClient as It, setAuthManager as Mt } from "./index4.js";
|
|
4
|
+
import { APIError as Xt, HttpErrorType as xt, UnknownApiError as Lt, UnknownError as bt, isOpenAPIError as qt } from "./index5.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
6
|
+
Xt as APIError,
|
|
7
|
+
k as AbiFunctionType,
|
|
8
|
+
w as AbiInputType,
|
|
9
|
+
N as AbiStateMutability,
|
|
10
|
+
D as AccountSourceType,
|
|
11
|
+
W as AddressRiskNetwork,
|
|
12
|
+
f as AddressRiskRiskLevel,
|
|
13
|
+
I as CreateTransferQuoteRequestedAmountType,
|
|
14
|
+
M as DeveloperJWTAuthenticationType,
|
|
15
|
+
V as EmailAuthenticationType,
|
|
16
|
+
X as ErrorType,
|
|
17
|
+
x as EthValueCriterionOperator,
|
|
18
|
+
L as EthValueCriterionType,
|
|
19
|
+
b as EvmAddressCriterionOperator,
|
|
20
|
+
q as EvmAddressCriterionType,
|
|
21
|
+
B as EvmDataCriterionType,
|
|
22
|
+
F as EvmDataParameterConditionListOperator,
|
|
23
|
+
H as EvmDataParameterConditionOperator,
|
|
24
|
+
K as EvmMessageCriterionType,
|
|
25
|
+
Q as EvmNetworkCriterionNetworksItem,
|
|
26
|
+
G as EvmNetworkCriterionOperator,
|
|
27
|
+
J as EvmNetworkCriterionType,
|
|
28
|
+
j as EvmSwapsNetwork,
|
|
29
|
+
z as EvmTypedAddressConditionOperator,
|
|
30
|
+
Y as EvmTypedNumericalConditionOperator,
|
|
31
|
+
Z as EvmUserOperationNetwork,
|
|
32
|
+
_ as EvmUserOperationStatus,
|
|
33
|
+
$ as FeeDetailsType,
|
|
34
|
+
ee as FeeType,
|
|
35
|
+
xt as HttpErrorType,
|
|
36
|
+
te as InitiateEmailAuthenticationNextStepType,
|
|
37
|
+
re as InitiateEmailAuthenticationRequestType,
|
|
38
|
+
ne as InitiateSmsAuthenticationNextStepType,
|
|
39
|
+
ie as InitiateSmsAuthenticationRequestType,
|
|
40
|
+
oe as KnownAbiType,
|
|
41
|
+
ae as KnownIdlType,
|
|
42
|
+
se as LimitPeriod,
|
|
43
|
+
pe as ListEvmTokenBalancesNetwork,
|
|
44
|
+
ce as ListSolanaTokenBalancesNetwork,
|
|
45
|
+
de as MintAddressCriterionOperator,
|
|
46
|
+
me as MintAddressCriterionType,
|
|
47
|
+
ue as NetUSDChangeCriterionOperator,
|
|
48
|
+
ye as NetUSDChangeCriterionType,
|
|
49
|
+
Se as Network,
|
|
50
|
+
le as OnchainDataResultSchemaColumnsItemType,
|
|
51
|
+
Te as OnrampOrderFeeType,
|
|
52
|
+
Ee as OnrampOrderPaymentMethodTypeId,
|
|
53
|
+
Ae as OnrampOrderStatus,
|
|
54
|
+
Oe as OnrampPaymentLinkType,
|
|
55
|
+
he as OnrampQuotePaymentMethodTypeId,
|
|
56
|
+
Ce as PaymentDirection,
|
|
57
|
+
ve as PaymentMethodSourceType,
|
|
58
|
+
ge as PaymentMethodType,
|
|
59
|
+
Re as PaymentRailAction,
|
|
60
|
+
Ue as PaymentStatus,
|
|
61
|
+
Pe as PolicyScope,
|
|
62
|
+
ke as PrepareUserOperationRuleAction,
|
|
63
|
+
we as PrepareUserOperationRuleOperation,
|
|
64
|
+
Ne as ProgramIdCriterionOperator,
|
|
65
|
+
De as ProgramIdCriterionType,
|
|
66
|
+
We as RefreshAccessTokenBodyGrantType,
|
|
67
|
+
fe as SendEvmTransactionRuleAction,
|
|
68
|
+
Ie as SendEvmTransactionRuleOperation,
|
|
69
|
+
Me as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
70
|
+
Ve as SendSolTransactionRuleAction,
|
|
71
|
+
Xe as SendSolTransactionRuleOperation,
|
|
72
|
+
xe as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
73
|
+
Le as SendUserOperationRuleAction,
|
|
74
|
+
be as SendUserOperationRuleOperation,
|
|
75
|
+
qe as SignEvmHashRuleAction,
|
|
76
|
+
Be as SignEvmHashRuleOperation,
|
|
77
|
+
Fe as SignEvmMessageRuleAction,
|
|
78
|
+
He as SignEvmMessageRuleOperation,
|
|
79
|
+
Ke as SignEvmTransactionRuleAction,
|
|
80
|
+
Qe as SignEvmTransactionRuleOperation,
|
|
81
|
+
Ge as SignEvmTypedDataFieldCriterionType,
|
|
82
|
+
Je as SignEvmTypedDataRuleAction,
|
|
83
|
+
je as SignEvmTypedDataRuleOperation,
|
|
84
|
+
ze as SignEvmTypedDataVerifyingContractCriterionOperator,
|
|
85
|
+
Ye as SignEvmTypedDataVerifyingContractCriterionType,
|
|
86
|
+
Ze as SignSolMessageRuleAction,
|
|
87
|
+
_e as SignSolMessageRuleOperation,
|
|
88
|
+
$e as SignSolTransactionRuleAction,
|
|
89
|
+
et as SignSolTransactionRuleOperation,
|
|
90
|
+
tt as SmsAuthenticationType,
|
|
91
|
+
rt as SolAddressCriterionOperator,
|
|
92
|
+
nt as SolAddressCriterionType,
|
|
93
|
+
it as SolDataCriterionType,
|
|
94
|
+
ot as SolDataParameterConditionListOperator,
|
|
95
|
+
at as SolDataParameterConditionOperator,
|
|
96
|
+
st as SolMessageCriterionType,
|
|
97
|
+
pt as SolNetworkCriterionNetworksItem,
|
|
98
|
+
ct as SolNetworkCriterionOperator,
|
|
99
|
+
dt as SolNetworkCriterionType,
|
|
100
|
+
mt as SolValueCriterionOperator,
|
|
101
|
+
ut as SolValueCriterionType,
|
|
102
|
+
yt as SourceType,
|
|
103
|
+
St as SpendPermissionNetwork,
|
|
104
|
+
lt as SplAddressCriterionOperator,
|
|
105
|
+
Tt as SplAddressCriterionType,
|
|
106
|
+
Et as SplValueCriterionOperator,
|
|
107
|
+
At as SplValueCriterionType,
|
|
108
|
+
Ot as TransferSourceType,
|
|
109
|
+
ht as TransferStatus,
|
|
110
|
+
Ct as TransferTargetType,
|
|
111
|
+
Lt as UnknownApiError,
|
|
112
|
+
bt as UnknownError,
|
|
113
|
+
vt as X402DiscoveryResourceType,
|
|
114
|
+
gt as X402PaymentPayloadNetwork,
|
|
115
|
+
Rt as X402PaymentPayloadScheme,
|
|
116
|
+
Ut as X402PaymentRequirementsNetwork,
|
|
117
|
+
Pt as X402PaymentRequirementsScheme,
|
|
118
|
+
kt as X402SettleErrorReason,
|
|
119
|
+
wt as X402SupportedPaymentKindNetwork,
|
|
120
|
+
Nt as X402SupportedPaymentKindScheme,
|
|
121
|
+
Dt as X402VerifyInvalidReason,
|
|
122
|
+
Wt as X402Version,
|
|
123
|
+
It as configureCdpApiClient,
|
|
106
124
|
r as createEndUserEvmAccount,
|
|
107
125
|
n as createEndUserEvmSmartAccount,
|
|
108
|
-
i as
|
|
109
|
-
o as
|
|
110
|
-
a as
|
|
111
|
-
s as
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
A as
|
|
125
|
-
O as
|
|
126
|
+
i as createEndUserSolanaAccount,
|
|
127
|
+
o as createSpendPermissionWithEndUserAccount,
|
|
128
|
+
a as exportEndUserEvmAccount,
|
|
129
|
+
s as getAuthenticatedEndUser,
|
|
130
|
+
p as getUserOperationWithEndUserAccount,
|
|
131
|
+
c as initiateAuthentication,
|
|
132
|
+
qt as isOpenAPIError,
|
|
133
|
+
d as listSpendPermissionsWithEndUserAccount,
|
|
134
|
+
m as logOutEndUser,
|
|
135
|
+
u as refreshAccessToken,
|
|
136
|
+
y as registerTemporaryWalletSecret,
|
|
137
|
+
S as revokeSpendPermissionWithEndUserAccount,
|
|
138
|
+
l as sendEvmTransactionWithEndUserAccount,
|
|
139
|
+
T as sendSolanaTransactionWithEndUserAccount,
|
|
140
|
+
E as sendUserOperationWithEndUserAccount,
|
|
141
|
+
Mt as setAuthManager,
|
|
142
|
+
A as signEvmHashWithEndUserAccount,
|
|
143
|
+
O as signEvmMessageWithEndUserAccount,
|
|
144
|
+
h as signEvmTransactionWithEndUserAccount,
|
|
145
|
+
C as signEvmTypedDataWithEndUserAccount,
|
|
146
|
+
v as signSolanaHashWithEndUserAccount,
|
|
147
|
+
g as signSolanaTransactionWithEndUserAccount,
|
|
148
|
+
R as verifyEmailAuthentication,
|
|
149
|
+
U as verifySmsAuthentication
|
|
126
150
|
};
|
package/dist/esm/index2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cdpApiClient as
|
|
2
|
-
const
|
|
1
|
+
import { cdpApiClient as a } from "./index4.js";
|
|
2
|
+
const d = (e, t, n) => a(
|
|
3
3
|
{
|
|
4
4
|
url: `/v2/embedded-wallet-api/projects/${e}/auth/init`,
|
|
5
5
|
method: "POST",
|
|
@@ -7,7 +7,7 @@ const o = (e, t, n) => s(
|
|
|
7
7
|
data: t
|
|
8
8
|
},
|
|
9
9
|
n
|
|
10
|
-
), i = (e, t, n) =>
|
|
10
|
+
), i = (e, t, n) => a(
|
|
11
11
|
{
|
|
12
12
|
url: `/v2/embedded-wallet-api/projects/${e}/auth/verify/email`,
|
|
13
13
|
method: "POST",
|
|
@@ -15,7 +15,7 @@ const o = (e, t, n) => s(
|
|
|
15
15
|
data: t
|
|
16
16
|
},
|
|
17
17
|
n
|
|
18
|
-
), c = (e, t, n) =>
|
|
18
|
+
), c = (e, t, n) => a(
|
|
19
19
|
{
|
|
20
20
|
url: `/v2/embedded-wallet-api/projects/${e}/auth/verify/sms`,
|
|
21
21
|
method: "POST",
|
|
@@ -23,7 +23,7 @@ const o = (e, t, n) => s(
|
|
|
23
23
|
data: t
|
|
24
24
|
},
|
|
25
25
|
n
|
|
26
|
-
), p = (e, t, n) =>
|
|
26
|
+
), p = (e, t, n) => a(
|
|
27
27
|
{
|
|
28
28
|
url: `/v2/embedded-wallet-api/projects/${e}/auth/refresh`,
|
|
29
29
|
method: "POST",
|
|
@@ -31,124 +31,177 @@ const o = (e, t, n) => s(
|
|
|
31
31
|
data: t
|
|
32
32
|
},
|
|
33
33
|
n
|
|
34
|
-
), l = (e, t) =>
|
|
34
|
+
), l = (e, t) => a(
|
|
35
35
|
{ url: `/v2/embedded-wallet-api/projects/${e}/auth/logout`, method: "POST" },
|
|
36
36
|
t
|
|
37
|
-
), u = (e, t, n) =>
|
|
37
|
+
), u = (e, t, n) => a(
|
|
38
38
|
{ url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}`, method: "GET" },
|
|
39
39
|
n
|
|
40
|
-
), m = (e, t, n,
|
|
40
|
+
), m = (e, t, n, s) => a(
|
|
41
41
|
{
|
|
42
42
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/wallet-secrets`,
|
|
43
43
|
method: "PUT",
|
|
44
44
|
headers: { "Content-Type": "application/json" },
|
|
45
45
|
data: n
|
|
46
46
|
},
|
|
47
|
-
|
|
48
|
-
), h = (e, t, n,
|
|
47
|
+
s
|
|
48
|
+
), h = (e, t, n, s) => a(
|
|
49
49
|
{
|
|
50
50
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm`,
|
|
51
51
|
method: "POST",
|
|
52
52
|
headers: { "Content-Type": "application/json" },
|
|
53
53
|
data: n
|
|
54
54
|
},
|
|
55
|
-
|
|
56
|
-
), v = (e, t, n,
|
|
55
|
+
s
|
|
56
|
+
), v = (e, t, n, s) => a(
|
|
57
57
|
{
|
|
58
58
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign`,
|
|
59
59
|
method: "POST",
|
|
60
60
|
headers: { "Content-Type": "application/json" },
|
|
61
61
|
data: n
|
|
62
62
|
},
|
|
63
|
-
|
|
64
|
-
), T = (e, t, n,
|
|
63
|
+
s
|
|
64
|
+
), T = (e, t, n, s) => a(
|
|
65
65
|
{
|
|
66
66
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/transaction`,
|
|
67
67
|
method: "POST",
|
|
68
68
|
headers: { "Content-Type": "application/json" },
|
|
69
69
|
data: n
|
|
70
70
|
},
|
|
71
|
-
|
|
72
|
-
), $ = (e, t, n,
|
|
71
|
+
s
|
|
72
|
+
), $ = (e, t, n, s) => a(
|
|
73
73
|
{
|
|
74
74
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/send/transaction`,
|
|
75
75
|
method: "POST",
|
|
76
76
|
headers: { "Content-Type": "application/json" },
|
|
77
77
|
data: n
|
|
78
78
|
},
|
|
79
|
-
|
|
80
|
-
), j = (e, t, n,
|
|
79
|
+
s
|
|
80
|
+
), j = (e, t, n, s) => a(
|
|
81
81
|
{
|
|
82
82
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/message`,
|
|
83
83
|
method: "POST",
|
|
84
84
|
headers: { "Content-Type": "application/json" },
|
|
85
85
|
data: n
|
|
86
86
|
},
|
|
87
|
-
|
|
88
|
-
), E = (e, t, n,
|
|
87
|
+
s
|
|
88
|
+
), E = (e, t, n, s) => a(
|
|
89
89
|
{
|
|
90
90
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/typed-data`,
|
|
91
91
|
method: "POST",
|
|
92
92
|
headers: { "Content-Type": "application/json" },
|
|
93
93
|
data: n
|
|
94
94
|
},
|
|
95
|
-
|
|
96
|
-
),
|
|
95
|
+
s
|
|
96
|
+
), S = (e, t, n, s) => a(
|
|
97
97
|
{
|
|
98
98
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/export`,
|
|
99
99
|
method: "POST",
|
|
100
100
|
headers: { "Content-Type": "application/json" },
|
|
101
101
|
data: n
|
|
102
102
|
},
|
|
103
|
-
|
|
104
|
-
),
|
|
103
|
+
s
|
|
104
|
+
), y = (e, t, n, s) => a(
|
|
105
105
|
{
|
|
106
106
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts`,
|
|
107
107
|
method: "POST",
|
|
108
108
|
headers: { "Content-Type": "application/json" },
|
|
109
109
|
data: n
|
|
110
110
|
},
|
|
111
|
-
|
|
112
|
-
),
|
|
111
|
+
s
|
|
112
|
+
), w = (e, t, n, s, r) => a(
|
|
113
113
|
{
|
|
114
|
-
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/user-operations/${
|
|
114
|
+
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/user-operations/${s}`,
|
|
115
115
|
method: "GET"
|
|
116
116
|
},
|
|
117
117
|
r
|
|
118
|
-
), b = (e, t, n,
|
|
118
|
+
), b = (e, t, n, s, r) => a(
|
|
119
119
|
{
|
|
120
120
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/send`,
|
|
121
121
|
method: "POST",
|
|
122
122
|
headers: { "Content-Type": "application/json" },
|
|
123
|
-
data:
|
|
123
|
+
data: s
|
|
124
124
|
},
|
|
125
125
|
r
|
|
126
|
-
),
|
|
126
|
+
), P = (e, t, n, s, r) => a(
|
|
127
|
+
{
|
|
128
|
+
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/spend-permissions`,
|
|
129
|
+
method: "POST",
|
|
130
|
+
headers: { "Content-Type": "application/json" },
|
|
131
|
+
data: s
|
|
132
|
+
},
|
|
133
|
+
r
|
|
134
|
+
), A = (e, t, n, s, r) => a(
|
|
135
|
+
{
|
|
136
|
+
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/spend-permissions/list`,
|
|
137
|
+
method: "GET",
|
|
138
|
+
params: s
|
|
139
|
+
},
|
|
140
|
+
r
|
|
141
|
+
), O = (e, t, n, s, r) => a(
|
|
142
|
+
{
|
|
143
|
+
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/spend-permissions/revoke`,
|
|
144
|
+
method: "POST",
|
|
145
|
+
headers: { "Content-Type": "application/json" },
|
|
146
|
+
data: s
|
|
147
|
+
},
|
|
148
|
+
r
|
|
149
|
+
), U = (e, t, n, s) => a(
|
|
150
|
+
{
|
|
151
|
+
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana`,
|
|
152
|
+
method: "POST",
|
|
153
|
+
headers: { "Content-Type": "application/json" },
|
|
154
|
+
data: n
|
|
155
|
+
},
|
|
156
|
+
s
|
|
157
|
+
), C = (e, t, n, s) => a(
|
|
127
158
|
{
|
|
128
159
|
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/sign`,
|
|
129
160
|
method: "POST",
|
|
130
161
|
headers: { "Content-Type": "application/json" },
|
|
131
162
|
data: n
|
|
132
163
|
},
|
|
133
|
-
|
|
164
|
+
s
|
|
165
|
+
), g = (e, t, n, s) => a(
|
|
166
|
+
{
|
|
167
|
+
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/sign/transaction`,
|
|
168
|
+
method: "POST",
|
|
169
|
+
headers: { "Content-Type": "application/json" },
|
|
170
|
+
data: n
|
|
171
|
+
},
|
|
172
|
+
s
|
|
173
|
+
), W = (e, t, n, s) => a(
|
|
174
|
+
{
|
|
175
|
+
url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/send/transaction`,
|
|
176
|
+
method: "POST",
|
|
177
|
+
headers: { "Content-Type": "application/json" },
|
|
178
|
+
data: n
|
|
179
|
+
},
|
|
180
|
+
s
|
|
134
181
|
);
|
|
135
182
|
export {
|
|
136
183
|
h as createEndUserEvmAccount,
|
|
137
|
-
|
|
138
|
-
|
|
184
|
+
y as createEndUserEvmSmartAccount,
|
|
185
|
+
U as createEndUserSolanaAccount,
|
|
186
|
+
P as createSpendPermissionWithEndUserAccount,
|
|
187
|
+
S as exportEndUserEvmAccount,
|
|
139
188
|
u as getAuthenticatedEndUser,
|
|
140
|
-
|
|
141
|
-
|
|
189
|
+
w as getUserOperationWithEndUserAccount,
|
|
190
|
+
d as initiateAuthentication,
|
|
191
|
+
A as listSpendPermissionsWithEndUserAccount,
|
|
142
192
|
l as logOutEndUser,
|
|
143
193
|
p as refreshAccessToken,
|
|
144
194
|
m as registerTemporaryWalletSecret,
|
|
195
|
+
O as revokeSpendPermissionWithEndUserAccount,
|
|
145
196
|
$ as sendEvmTransactionWithEndUserAccount,
|
|
197
|
+
W as sendSolanaTransactionWithEndUserAccount,
|
|
146
198
|
b as sendUserOperationWithEndUserAccount,
|
|
147
199
|
v as signEvmHashWithEndUserAccount,
|
|
148
200
|
j as signEvmMessageWithEndUserAccount,
|
|
149
201
|
T as signEvmTransactionWithEndUserAccount,
|
|
150
202
|
E as signEvmTypedDataWithEndUserAccount,
|
|
151
|
-
|
|
203
|
+
C as signSolanaHashWithEndUserAccount,
|
|
204
|
+
g as signSolanaTransactionWithEndUserAccount,
|
|
152
205
|
i as verifyEmailAuthentication,
|
|
153
206
|
c as verifySmsAuthentication
|
|
154
207
|
};
|