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