@coinbase/cdp-api-client 0.0.50 → 0.0.52
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 +147 -164
- package/dist/esm/index3.js +259 -360
- package/dist/esm/index4.js +110 -110
- package/dist/types/index.d.ts +72 -421
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,155 +1,138 @@
|
|
|
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
|
|
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 m, logOutEndUser as u, refreshAccessToken as y, registerTemporaryWalletSecret as l, revokeSpendPermissionWithEndUserAccount as T, sendEvmTransactionWithEndUserAccount as S, sendSolanaTransactionWithEndUserAccount as E, sendUserOperationWithEndUserAccount as A, signEvmHashWithEndUserAccount as C, signEvmMessageWithEndUserAccount as h, signEvmTransactionWithEndUserAccount as O, signEvmTypedDataWithEndUserAccount as v, signSolanaHashWithEndUserAccount as g, signSolanaMessageWithEndUserAccount as R, signSolanaTransactionWithEndUserAccount as P, verifyEmailAuthentication as U, verifyOAuthCode as k, verifySmsAuthentication as w } from "./index2.js";
|
|
2
|
+
import { AbiFunctionType as f, AbiInputType as D, AbiStateMutability as I, AccountType as M, AchDetailsAccountType as W, AddressRiskNetwork as b, AddressRiskRiskLevel as V, AssetType as L, CapabilityStatus as X, CoolPaymentMethodType as q, CreateAccountRequestType as x, CreatePaymentMethodRequestAchType as B, CreatePaymentMethodRequestFedwireType as F, CustomerType as H, DeveloperJWTAuthenticationType as K, EmailAuthenticationType as j, ErrorType as G, EthValueCriterionOperator as J, EthValueCriterionType as Q, EvmAddressCriterionOperator as z, EvmAddressCriterionType as Y, EvmDataCriterionType as Z, EvmDataParameterConditionListOperator as _, EvmDataParameterConditionOperator as $, EvmMessageCriterionType as ee, EvmNetworkCriterionNetworksItem as te, EvmNetworkCriterionOperator as re, EvmNetworkCriterionType as ne, EvmSwapsNetwork as ie, EvmTypedAddressConditionOperator as oe, EvmTypedNumericalConditionOperator as ae, EvmUserOperationNetwork as se, EvmUserOperationStatus as pe, InitiateEmailAuthenticationNextStepType as ce, InitiateEmailAuthenticationRequestType as de, InitiateSmsAuthenticationNextStepType as me, InitiateSmsAuthenticationRequestType as ue, InvitationStatus as ye, KnownAbiType as le, KnownIdlType as Te, LimitPeriod as Se, LinkAccountType as Ee, LinkableEntityRole as Ae, LinkableEntityType as Ce, ListEvmTokenBalancesNetwork as he, ListSolanaTokenBalancesNetwork as Oe, MintAddressCriterionOperator as ve, MintAddressCriterionType as ge, NetUSDChangeCriterionOperator as Re, NetUSDChangeCriterionType as Pe, Network as Ue, OAuth2ProviderType as ke, OnchainDataResultSchemaColumnsItemType as we, OnrampOrderFeeType as Ne, OnrampOrderPaymentMethodTypeId as fe, OnrampOrderStatus as De, OnrampPaymentLinkType as Ie, OnrampQuotePaymentMethodTypeId as Me, PermissionCatalogObjectsItemType as We, PermissionSubjectType as be, PermissionVerb as Ve, PolicyScope as Le, PrepareUserOperationRuleAction as Xe, PrepareUserOperationRuleOperation as qe, ProgramIdCriterionOperator as xe, ProgramIdCriterionType as Be, RefreshAccessTokenBodyGrantType as Fe, RequirementErrorCode as He, SendEvmTransactionRuleAction as Ke, SendEvmTransactionRuleOperation as je, SendEvmTransactionWithEndUserAccountBodyNetwork as Ge, SendSolTransactionRuleAction as Je, SendSolTransactionRuleOperation as Qe, SendSolanaTransactionWithEndUserAccountBodyNetwork as ze, SendUserOperationRuleAction as Ye, SendUserOperationRuleOperation as Ze, SignEvmHashRuleAction as _e, SignEvmHashRuleOperation as $e, SignEvmMessageRuleAction as et, SignEvmMessageRuleOperation as tt, SignEvmTransactionRuleAction as rt, SignEvmTransactionRuleOperation as nt, SignEvmTypedDataFieldCriterionType as it, SignEvmTypedDataRuleAction as ot, SignEvmTypedDataRuleOperation as at, SignEvmTypedDataVerifyingContractCriterionOperator as st, SignEvmTypedDataVerifyingContractCriterionType as pt, SignSolMessageRuleAction as ct, SignSolMessageRuleOperation as dt, SignSolTransactionRuleAction as mt, SignSolTransactionRuleOperation as ut, SmsAuthenticationType as yt, SolAddressCriterionOperator as lt, SolAddressCriterionType as Tt, SolDataCriterionType as St, SolDataParameterConditionListOperator as Et, SolDataParameterConditionOperator as At, SolMessageCriterionType as Ct, SolNetworkCriterionNetworksItem as ht, SolNetworkCriterionOperator as Ot, SolNetworkCriterionType as vt, SolValueCriterionOperator as gt, SolValueCriterionType as Rt, SpendPermissionNetwork as Pt, SplAddressCriterionOperator as Ut, SplAddressCriterionType as kt, SplValueCriterionOperator as wt, SplValueCriterionType as Nt, TransferCancellationReason as ft, TransferFeeName as Dt, TransferRequestAmountType as It, TransferReversalReason as Mt, TransferSourceDepositsInstructionsAsset as Wt, TransferSourceDepositsInstructionsPaymentMethodType as bt, TransferStatus as Vt, X402DiscoveryResourceType as Lt, X402PaymentPayloadNetwork as Xt, X402PaymentPayloadScheme as qt, X402PaymentRequirementsNetwork as xt, X402PaymentRequirementsScheme as Bt, X402SettleErrorReason as Ft, X402SupportedPaymentKindNetwork as Ht, X402SupportedPaymentKindScheme as Kt, X402VerifyInvalidReason as jt, X402Version as Gt } from "./index3.js";
|
|
3
|
+
import { configureCdpApiClient as Qt, setAuthManager as zt } from "./index4.js";
|
|
4
|
+
import { APIError as Zt, HttpErrorType as _t, UnknownApiError as $t, UnknownError as er, isOpenAPIError as tr } from "./index5.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
Zt as APIError,
|
|
7
|
+
f as AbiFunctionType,
|
|
8
|
+
D as AbiInputType,
|
|
9
|
+
I as AbiStateMutability,
|
|
10
10
|
M as AccountType,
|
|
11
11
|
W as AchDetailsAccountType,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
H as
|
|
21
|
-
K as
|
|
22
|
-
j as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
z as
|
|
27
|
-
Y as
|
|
28
|
-
Z as
|
|
29
|
-
_ as
|
|
30
|
-
$ as
|
|
31
|
-
ee as
|
|
32
|
-
te as
|
|
33
|
-
re as
|
|
34
|
-
ne as
|
|
35
|
-
ie as
|
|
36
|
-
oe as
|
|
37
|
-
ae as
|
|
38
|
-
se as
|
|
39
|
-
pe as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
Se as
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Ce as
|
|
52
|
-
he as
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Ue as
|
|
59
|
-
ke as
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Me as
|
|
66
|
-
We as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
He as
|
|
76
|
-
Ke as
|
|
77
|
-
je as
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
ze as
|
|
82
|
-
Ye as
|
|
83
|
-
Ze as
|
|
84
|
-
_e as
|
|
85
|
-
$e as
|
|
86
|
-
et as
|
|
87
|
-
tt as
|
|
88
|
-
rt as
|
|
89
|
-
nt as
|
|
90
|
-
it as
|
|
91
|
-
ot as
|
|
92
|
-
at as
|
|
93
|
-
st as
|
|
94
|
-
pt as
|
|
95
|
-
ct as
|
|
96
|
-
dt as
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
St as
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Ct as
|
|
106
|
-
ht as
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
Ut as
|
|
113
|
-
kt as
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
Mt as
|
|
120
|
-
Wt as
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Lt as
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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,
|
|
12
|
+
b as AddressRiskNetwork,
|
|
13
|
+
V as AddressRiskRiskLevel,
|
|
14
|
+
L as AssetType,
|
|
15
|
+
X as CapabilityStatus,
|
|
16
|
+
q as CoolPaymentMethodType,
|
|
17
|
+
x as CreateAccountRequestType,
|
|
18
|
+
B as CreatePaymentMethodRequestAchType,
|
|
19
|
+
F as CreatePaymentMethodRequestFedwireType,
|
|
20
|
+
H as CustomerType,
|
|
21
|
+
K as DeveloperJWTAuthenticationType,
|
|
22
|
+
j as EmailAuthenticationType,
|
|
23
|
+
G as ErrorType,
|
|
24
|
+
J as EthValueCriterionOperator,
|
|
25
|
+
Q as EthValueCriterionType,
|
|
26
|
+
z as EvmAddressCriterionOperator,
|
|
27
|
+
Y as EvmAddressCriterionType,
|
|
28
|
+
Z as EvmDataCriterionType,
|
|
29
|
+
_ as EvmDataParameterConditionListOperator,
|
|
30
|
+
$ as EvmDataParameterConditionOperator,
|
|
31
|
+
ee as EvmMessageCriterionType,
|
|
32
|
+
te as EvmNetworkCriterionNetworksItem,
|
|
33
|
+
re as EvmNetworkCriterionOperator,
|
|
34
|
+
ne as EvmNetworkCriterionType,
|
|
35
|
+
ie as EvmSwapsNetwork,
|
|
36
|
+
oe as EvmTypedAddressConditionOperator,
|
|
37
|
+
ae as EvmTypedNumericalConditionOperator,
|
|
38
|
+
se as EvmUserOperationNetwork,
|
|
39
|
+
pe as EvmUserOperationStatus,
|
|
40
|
+
_t as HttpErrorType,
|
|
41
|
+
ce as InitiateEmailAuthenticationNextStepType,
|
|
42
|
+
de as InitiateEmailAuthenticationRequestType,
|
|
43
|
+
me as InitiateSmsAuthenticationNextStepType,
|
|
44
|
+
ue as InitiateSmsAuthenticationRequestType,
|
|
45
|
+
ye as InvitationStatus,
|
|
46
|
+
le as KnownAbiType,
|
|
47
|
+
Te as KnownIdlType,
|
|
48
|
+
Se as LimitPeriod,
|
|
49
|
+
Ee as LinkAccountType,
|
|
50
|
+
Ae as LinkableEntityRole,
|
|
51
|
+
Ce as LinkableEntityType,
|
|
52
|
+
he as ListEvmTokenBalancesNetwork,
|
|
53
|
+
Oe as ListSolanaTokenBalancesNetwork,
|
|
54
|
+
ve as MintAddressCriterionOperator,
|
|
55
|
+
ge as MintAddressCriterionType,
|
|
56
|
+
Re as NetUSDChangeCriterionOperator,
|
|
57
|
+
Pe as NetUSDChangeCriterionType,
|
|
58
|
+
Ue as Network,
|
|
59
|
+
ke as OAuth2ProviderType,
|
|
60
|
+
we as OnchainDataResultSchemaColumnsItemType,
|
|
61
|
+
Ne as OnrampOrderFeeType,
|
|
62
|
+
fe as OnrampOrderPaymentMethodTypeId,
|
|
63
|
+
De as OnrampOrderStatus,
|
|
64
|
+
Ie as OnrampPaymentLinkType,
|
|
65
|
+
Me as OnrampQuotePaymentMethodTypeId,
|
|
66
|
+
We as PermissionCatalogObjectsItemType,
|
|
67
|
+
be as PermissionSubjectType,
|
|
68
|
+
Ve as PermissionVerb,
|
|
69
|
+
Le as PolicyScope,
|
|
70
|
+
Xe as PrepareUserOperationRuleAction,
|
|
71
|
+
qe as PrepareUserOperationRuleOperation,
|
|
72
|
+
xe as ProgramIdCriterionOperator,
|
|
73
|
+
Be as ProgramIdCriterionType,
|
|
74
|
+
Fe as RefreshAccessTokenBodyGrantType,
|
|
75
|
+
He as RequirementErrorCode,
|
|
76
|
+
Ke as SendEvmTransactionRuleAction,
|
|
77
|
+
je as SendEvmTransactionRuleOperation,
|
|
78
|
+
Ge as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
79
|
+
Je as SendSolTransactionRuleAction,
|
|
80
|
+
Qe as SendSolTransactionRuleOperation,
|
|
81
|
+
ze as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
82
|
+
Ye as SendUserOperationRuleAction,
|
|
83
|
+
Ze as SendUserOperationRuleOperation,
|
|
84
|
+
_e as SignEvmHashRuleAction,
|
|
85
|
+
$e as SignEvmHashRuleOperation,
|
|
86
|
+
et as SignEvmMessageRuleAction,
|
|
87
|
+
tt as SignEvmMessageRuleOperation,
|
|
88
|
+
rt as SignEvmTransactionRuleAction,
|
|
89
|
+
nt as SignEvmTransactionRuleOperation,
|
|
90
|
+
it as SignEvmTypedDataFieldCriterionType,
|
|
91
|
+
ot as SignEvmTypedDataRuleAction,
|
|
92
|
+
at as SignEvmTypedDataRuleOperation,
|
|
93
|
+
st as SignEvmTypedDataVerifyingContractCriterionOperator,
|
|
94
|
+
pt as SignEvmTypedDataVerifyingContractCriterionType,
|
|
95
|
+
ct as SignSolMessageRuleAction,
|
|
96
|
+
dt as SignSolMessageRuleOperation,
|
|
97
|
+
mt as SignSolTransactionRuleAction,
|
|
98
|
+
ut as SignSolTransactionRuleOperation,
|
|
99
|
+
yt as SmsAuthenticationType,
|
|
100
|
+
lt as SolAddressCriterionOperator,
|
|
101
|
+
Tt as SolAddressCriterionType,
|
|
102
|
+
St as SolDataCriterionType,
|
|
103
|
+
Et as SolDataParameterConditionListOperator,
|
|
104
|
+
At as SolDataParameterConditionOperator,
|
|
105
|
+
Ct as SolMessageCriterionType,
|
|
106
|
+
ht as SolNetworkCriterionNetworksItem,
|
|
107
|
+
Ot as SolNetworkCriterionOperator,
|
|
108
|
+
vt as SolNetworkCriterionType,
|
|
109
|
+
gt as SolValueCriterionOperator,
|
|
110
|
+
Rt as SolValueCriterionType,
|
|
111
|
+
Pt as SpendPermissionNetwork,
|
|
112
|
+
Ut as SplAddressCriterionOperator,
|
|
113
|
+
kt as SplAddressCriterionType,
|
|
114
|
+
wt as SplValueCriterionOperator,
|
|
115
|
+
Nt as SplValueCriterionType,
|
|
116
|
+
ft as TransferCancellationReason,
|
|
117
|
+
Dt as TransferFeeName,
|
|
118
|
+
It as TransferRequestAmountType,
|
|
119
|
+
Mt as TransferReversalReason,
|
|
120
|
+
Wt as TransferSourceDepositsInstructionsAsset,
|
|
121
|
+
bt as TransferSourceDepositsInstructionsPaymentMethodType,
|
|
122
|
+
Vt as TransferStatus,
|
|
123
|
+
$t as UnknownApiError,
|
|
124
|
+
er as UnknownError,
|
|
125
|
+
Lt as X402DiscoveryResourceType,
|
|
126
|
+
Xt as X402PaymentPayloadNetwork,
|
|
127
|
+
qt as X402PaymentPayloadScheme,
|
|
128
|
+
xt as X402PaymentRequirementsNetwork,
|
|
129
|
+
Bt as X402PaymentRequirementsScheme,
|
|
130
|
+
Ft as X402SettleErrorReason,
|
|
131
|
+
Ht as X402SupportedPaymentKindNetwork,
|
|
132
|
+
Kt as X402SupportedPaymentKindScheme,
|
|
133
|
+
jt as X402VerifyInvalidReason,
|
|
134
|
+
Gt as X402Version,
|
|
135
|
+
Qt as configureCdpApiClient,
|
|
153
136
|
r as createEndUserEvmAccount,
|
|
154
137
|
n as createEndUserEvmSmartAccount,
|
|
155
138
|
i as createEndUserSolanaAccount,
|
|
@@ -159,24 +142,24 @@ export {
|
|
|
159
142
|
p as getAuthenticatedEndUser,
|
|
160
143
|
c as getUserOperationWithEndUserAccount,
|
|
161
144
|
d as initiateAuthentication,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
145
|
+
tr as isOpenAPIError,
|
|
146
|
+
m as listSpendPermissionsWithEndUserAccount,
|
|
147
|
+
u as logOutEndUser,
|
|
148
|
+
y as refreshAccessToken,
|
|
149
|
+
l as registerTemporaryWalletSecret,
|
|
150
|
+
T as revokeSpendPermissionWithEndUserAccount,
|
|
168
151
|
S as sendEvmTransactionWithEndUserAccount,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
152
|
+
E as sendSolanaTransactionWithEndUserAccount,
|
|
153
|
+
A as sendUserOperationWithEndUserAccount,
|
|
154
|
+
zt as setAuthManager,
|
|
172
155
|
C as signEvmHashWithEndUserAccount,
|
|
173
156
|
h as signEvmMessageWithEndUserAccount,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
157
|
+
O as signEvmTransactionWithEndUserAccount,
|
|
158
|
+
v as signEvmTypedDataWithEndUserAccount,
|
|
159
|
+
g as signSolanaHashWithEndUserAccount,
|
|
160
|
+
R as signSolanaMessageWithEndUserAccount,
|
|
161
|
+
P as signSolanaTransactionWithEndUserAccount,
|
|
179
162
|
U as verifyEmailAuthentication,
|
|
180
163
|
k as verifyOAuthCode,
|
|
181
|
-
|
|
164
|
+
w as verifySmsAuthentication
|
|
182
165
|
};
|