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