@coinbase/cdp-api-client 0.0.119 → 0.0.121
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 +73 -70
- package/dist/esm/index10.js +1 -1
- package/dist/esm/index12.js +7 -38
- package/dist/esm/index14.js +358 -67
- package/dist/esm/index15.js +852 -34
- package/dist/esm/index16.js +38 -14
- package/dist/esm/index17.js +2 -8
- package/dist/esm/index18.js +70 -2
- package/dist/esm/index19.js +29 -355
- package/dist/esm/index20.js +14 -852
- package/dist/esm/index3.js +1 -1
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index6.js +186 -171
- package/dist/esm/index7.js +31 -8
- package/dist/types/index.d.ts +63 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 { CapabilityName as s, CreateEndUserBtcAccountBodyAddressType as c, CreateEndUserBtcAccountBodyNetwork as E, DeveloperJWTAuthenticationType as d, EmailAuthenticationType as A, EndUserBtcAccountAddressType as u, EndUserBtcAccountNetwork as p, EndUserOnrampFeeType as m, EndUserOnrampOrderStatus as h, ErrorType as
|
|
4
|
+
import { CapabilityName as s, CreateEndUserBtcAccountBodyAddressType as c, CreateEndUserBtcAccountBodyNetwork as E, DeveloperJWTAuthenticationType as d, EmailAuthenticationType as A, EndUserBtcAccountAddressType as u, EndUserBtcAccountNetwork as p, EndUserOnrampFeeType as m, EndUserOnrampOrderStatus as h, ErrorType as l, EvmEip7702DelegationNetwork as U, EvmEip7702DelegationOperationStatus as g, EvmSwapsNetwork as S, EvmUserOperationNetwork as y, EvmUserOperationStatus as v, InitiateEmailAuthenticationNextStepType as T, InitiateEmailAuthenticationRequestType as f, InitiateSiweAuthenticationRequestType as W, InitiateSmsAuthenticationNextStepType as k, InitiateSmsAuthenticationRequestType as O, InitiateSmsMfaEnrollmentType as w, InitiateTotpMfaEnrollmentType as B, IosAttestationRegistrationResponsePlatform as M, MfaMethod as N, Network as P, OAuth2ProviderType as C, OtpEmailLogoModerationStatus as I, RefreshAccessTokenBodyGrantType as D, SendEvmAssetWithEndUserAccountBodyNetwork as R, SendEvmTransactionWithEndUserAccountBodyNetwork as b, SendSolanaAssetWithEndUserAccountBodyNetwork as x, SendSolanaTransactionWithEndUserAccountBodyNetwork as F, SignBtcHashWithEndUserAccountBodyChange as H, SiweAuthenticationType as V, SmsAuthenticationType as q, SpendPermissionNetwork as j } from "./index5.js";
|
|
5
5
|
import { configureCdpApiClient as J, setAuthManager as L } from "./index6.js";
|
|
6
|
-
import { APIError as z, HttpErrorType as K,
|
|
7
|
-
import { authenticateUserWithCustomAuth as
|
|
6
|
+
import { APIError as z, HttpErrorType as K, RefreshTokenUnavailableError as Q, UnknownApiError as X, UnknownError as Y, isOpenAPIError as Z, isRefreshTokenUnavailableError as $, isTransientTokenReadError as ee } from "./index7.js";
|
|
7
|
+
import { authenticateUserWithCustomAuth as ne, createDelegationForEndUser as re, createDelegationForEndUserAccount as ie, createEndUserApplePayOnrampOrder as oe, createEndUserBtcAccount as ae, createEndUserEvmAccount as se, createEndUserEvmSmartAccount as ce, createEndUserEvmSwap as Ee, createEndUserSolanaAccount as de, createEvmEip7702DelegationWithEndUserAccount as Ae, createSpendPermissionWithEndUserAccount as ue, enableSpendPermissionWithEndUserAccount as pe, exportEndUserEvmAccount as me, exportEndUserSolanaAccount as he, generateAttestationChallenge as le, getAuthenticatedEndUser as Ue, getDelegationForEndUser as ge, getDelegationForEndUserAccount as Se, getEndUserEvmSwapPrice as ye, getEvmEip7702DelegationOperationByIdWithEndUserAccount as ve, getMfaConfig as Te, getProjectConfig as fe, getUserOperationWithEndUserAccount as We, initiateAuthentication as ke, initiateMfaEnrollment as Oe, initiateMfaEnrollment2 as we, initiateMfaVerification as Be, listSpendPermissionsWithEndUserAccount as Me, logOutEndUser as Ne, receiveOAuthCallback as Pe, receiveOAuthCallbackPost as Ce, recordMfaEnrollmentPrompted as Ie, refreshAccessToken as De, registerAttestation as Re, registerTemporaryWalletSecret as be, revokeDelegationForEndUser as xe, revokeDelegationForEndUserAccount as Fe, revokeSpendPermissionWithEndUserAccount as He, sendEvmAssetWithEndUserAccount as Ve, sendEvmTransactionWithEndUserAccount as qe, sendSolanaAssetWithEndUserAccount as je, sendSolanaTransactionWithEndUserAccount as Ge, sendUserOperationWithEndUserAccount as Je, signBtcHashWithEndUserAccount as Le, signEvmHashWithEndUserAccount as _e, signEvmMessageWithEndUserAccount as ze, signEvmTransactionWithEndUserAccount as Ke, signEvmTypedDataWithEndUserAccount as Qe, signSolanaHashWithEndUserAccount as Xe, signSolanaMessageWithEndUserAccount as Ye, signSolanaTransactionWithEndUserAccount as Ze, submitMfaEnrollment as $e, submitMfaVerification as et, verifyEmailAuthentication as tt, verifyOAuthCode as nt, verifyOAuthEndUserIdentity as rt, verifySiweAuthentication as it, verifySmsAuthentication as ot } from "./index8.js";
|
|
8
8
|
e.registerPackageVersion("api_client", t);
|
|
9
9
|
export {
|
|
10
10
|
z as APIError,
|
|
@@ -17,8 +17,8 @@ export {
|
|
|
17
17
|
p as EndUserBtcAccountNetwork,
|
|
18
18
|
m as EndUserOnrampFeeType,
|
|
19
19
|
h as EndUserOnrampOrderStatus,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
l as ErrorType,
|
|
21
|
+
U as EvmEip7702DelegationNetwork,
|
|
22
22
|
g as EvmEip7702DelegationOperationStatus,
|
|
23
23
|
S as EvmSwapsNetwork,
|
|
24
24
|
y as EvmUserOperationNetwork,
|
|
@@ -37,75 +37,78 @@ export {
|
|
|
37
37
|
C as OAuth2ProviderType,
|
|
38
38
|
I as OtpEmailLogoModerationStatus,
|
|
39
39
|
D as RefreshAccessTokenBodyGrantType,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
Q as RefreshTokenUnavailableError,
|
|
41
|
+
R as SendEvmAssetWithEndUserAccountBodyNetwork,
|
|
42
|
+
b as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
43
|
+
x as SendSolanaAssetWithEndUserAccountBodyNetwork,
|
|
44
|
+
F as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
44
45
|
H as SignBtcHashWithEndUserAccountBodyChange,
|
|
45
46
|
V as SiweAuthenticationType,
|
|
46
47
|
q as SmsAuthenticationType,
|
|
47
48
|
j as SpendPermissionNetwork,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
X as UnknownApiError,
|
|
50
|
+
Y as UnknownError,
|
|
51
|
+
ne as authenticateUserWithCustomAuth,
|
|
51
52
|
J as configureCdpApiClient,
|
|
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
|
-
|
|
53
|
+
re as createDelegationForEndUser,
|
|
54
|
+
ie as createDelegationForEndUserAccount,
|
|
55
|
+
oe as createEndUserApplePayOnrampOrder,
|
|
56
|
+
ae as createEndUserBtcAccount,
|
|
57
|
+
se as createEndUserEvmAccount,
|
|
58
|
+
ce as createEndUserEvmSmartAccount,
|
|
59
|
+
Ee as createEndUserEvmSwap,
|
|
60
|
+
de as createEndUserSolanaAccount,
|
|
61
|
+
Ae as createEvmEip7702DelegationWithEndUserAccount,
|
|
62
|
+
ue as createSpendPermissionWithEndUserAccount,
|
|
63
|
+
pe as enableSpendPermissionWithEndUserAccount,
|
|
64
|
+
me as exportEndUserEvmAccount,
|
|
65
|
+
he as exportEndUserSolanaAccount,
|
|
66
|
+
le as generateAttestationChallenge,
|
|
67
|
+
Ue as getAuthenticatedEndUser,
|
|
68
|
+
ge as getDelegationForEndUser,
|
|
69
|
+
Se as getDelegationForEndUserAccount,
|
|
70
|
+
ye as getEndUserEvmSwapPrice,
|
|
71
|
+
ve as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
|
|
72
|
+
Te as getMfaConfig,
|
|
73
|
+
fe as getProjectConfig,
|
|
74
|
+
We as getUserOperationWithEndUserAccount,
|
|
75
|
+
ke as initiateAuthentication,
|
|
76
|
+
Oe as initiateMfaEnrollment,
|
|
77
|
+
we as initiateMfaEnrollment2,
|
|
78
|
+
Be as initiateMfaVerification,
|
|
79
|
+
Z as isOpenAPIError,
|
|
80
|
+
$ as isRefreshTokenUnavailableError,
|
|
81
|
+
ee as isTransientTokenReadError,
|
|
82
|
+
Me as listSpendPermissionsWithEndUserAccount,
|
|
83
|
+
Ne as logOutEndUser,
|
|
84
|
+
Pe as receiveOAuthCallback,
|
|
85
|
+
Ce as receiveOAuthCallbackPost,
|
|
86
|
+
Ie as recordMfaEnrollmentPrompted,
|
|
87
|
+
De as refreshAccessToken,
|
|
88
|
+
Re as registerAttestation,
|
|
89
|
+
be as registerTemporaryWalletSecret,
|
|
90
|
+
xe as revokeDelegationForEndUser,
|
|
91
|
+
Fe as revokeDelegationForEndUserAccount,
|
|
92
|
+
He as revokeSpendPermissionWithEndUserAccount,
|
|
93
|
+
Ve as sendEvmAssetWithEndUserAccount,
|
|
94
|
+
qe as sendEvmTransactionWithEndUserAccount,
|
|
95
|
+
je as sendSolanaAssetWithEndUserAccount,
|
|
96
|
+
Ge as sendSolanaTransactionWithEndUserAccount,
|
|
97
|
+
Je as sendUserOperationWithEndUserAccount,
|
|
95
98
|
L as setAuthManager,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
99
|
+
Le as signBtcHashWithEndUserAccount,
|
|
100
|
+
_e as signEvmHashWithEndUserAccount,
|
|
101
|
+
ze as signEvmMessageWithEndUserAccount,
|
|
102
|
+
Ke as signEvmTransactionWithEndUserAccount,
|
|
103
|
+
Qe as signEvmTypedDataWithEndUserAccount,
|
|
104
|
+
Xe as signSolanaHashWithEndUserAccount,
|
|
105
|
+
Ye as signSolanaMessageWithEndUserAccount,
|
|
106
|
+
Ze as signSolanaTransactionWithEndUserAccount,
|
|
107
|
+
$e as submitMfaEnrollment,
|
|
108
|
+
et as submitMfaVerification,
|
|
109
|
+
tt as verifyEmailAuthentication,
|
|
110
|
+
nt as verifyOAuthCode,
|
|
111
|
+
rt as verifyOAuthEndUserIdentity,
|
|
112
|
+
it as verifySiweAuthentication,
|
|
113
|
+
ot as verifySmsAuthentication
|
|
111
114
|
};
|
package/dist/esm/index10.js
CHANGED
package/dist/esm/index12.js
CHANGED
|
@@ -1,41 +1,10 @@
|
|
|
1
|
-
import { __module as
|
|
2
|
-
import { __require as
|
|
3
|
-
import { __require as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return x ? h.exports : (x = 1, (function() {
|
|
8
|
-
var v = S(), p = q().utf8, B = w(), F = q().bin, d = function(o, f) {
|
|
9
|
-
o.constructor == String ? f && f.encoding === "binary" ? o = F.stringToBytes(o) : o = p.stringToBytes(o) : B(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
|
|
10
|
-
for (var u = v.bytesToWords(o), a = o.length * 8, n = 1732584193, r = -271733879, i = -1732584194, t = 271733878, e = 0; e < u.length; e++)
|
|
11
|
-
u[e] = (u[e] << 8 | u[e] >>> 24) & 16711935 | (u[e] << 24 | u[e] >>> 8) & 4278255360;
|
|
12
|
-
u[a >>> 5] |= 128 << a % 32, u[(a + 64 >>> 9 << 4) + 14] = a;
|
|
13
|
-
for (var _ = d._ff, c = d._gg, l = d._hh, y = d._ii, e = 0; e < u.length; e += 16) {
|
|
14
|
-
var T = n, b = r, A = i, I = t;
|
|
15
|
-
n = _(n, r, i, t, u[e + 0], 7, -680876936), t = _(t, n, r, i, u[e + 1], 12, -389564586), i = _(i, t, n, r, u[e + 2], 17, 606105819), r = _(r, i, t, n, u[e + 3], 22, -1044525330), n = _(n, r, i, t, u[e + 4], 7, -176418897), t = _(t, n, r, i, u[e + 5], 12, 1200080426), i = _(i, t, n, r, u[e + 6], 17, -1473231341), r = _(r, i, t, n, u[e + 7], 22, -45705983), n = _(n, r, i, t, u[e + 8], 7, 1770035416), t = _(t, n, r, i, u[e + 9], 12, -1958414417), i = _(i, t, n, r, u[e + 10], 17, -42063), r = _(r, i, t, n, u[e + 11], 22, -1990404162), n = _(n, r, i, t, u[e + 12], 7, 1804603682), t = _(t, n, r, i, u[e + 13], 12, -40341101), i = _(i, t, n, r, u[e + 14], 17, -1502002290), r = _(r, i, t, n, u[e + 15], 22, 1236535329), n = c(n, r, i, t, u[e + 1], 5, -165796510), t = c(t, n, r, i, u[e + 6], 9, -1069501632), i = c(i, t, n, r, u[e + 11], 14, 643717713), r = c(r, i, t, n, u[e + 0], 20, -373897302), n = c(n, r, i, t, u[e + 5], 5, -701558691), t = c(t, n, r, i, u[e + 10], 9, 38016083), i = c(i, t, n, r, u[e + 15], 14, -660478335), r = c(r, i, t, n, u[e + 4], 20, -405537848), n = c(n, r, i, t, u[e + 9], 5, 568446438), t = c(t, n, r, i, u[e + 14], 9, -1019803690), i = c(i, t, n, r, u[e + 3], 14, -187363961), r = c(r, i, t, n, u[e + 8], 20, 1163531501), n = c(n, r, i, t, u[e + 13], 5, -1444681467), t = c(t, n, r, i, u[e + 2], 9, -51403784), i = c(i, t, n, r, u[e + 7], 14, 1735328473), r = c(r, i, t, n, u[e + 12], 20, -1926607734), n = l(n, r, i, t, u[e + 5], 4, -378558), t = l(t, n, r, i, u[e + 8], 11, -2022574463), i = l(i, t, n, r, u[e + 11], 16, 1839030562), r = l(r, i, t, n, u[e + 14], 23, -35309556), n = l(n, r, i, t, u[e + 1], 4, -1530992060), t = l(t, n, r, i, u[e + 4], 11, 1272893353), i = l(i, t, n, r, u[e + 7], 16, -155497632), r = l(r, i, t, n, u[e + 10], 23, -1094730640), n = l(n, r, i, t, u[e + 13], 4, 681279174), t = l(t, n, r, i, u[e + 0], 11, -358537222), i = l(i, t, n, r, u[e + 3], 16, -722521979), r = l(r, i, t, n, u[e + 6], 23, 76029189), n = l(n, r, i, t, u[e + 9], 4, -640364487), t = l(t, n, r, i, u[e + 12], 11, -421815835), i = l(i, t, n, r, u[e + 15], 16, 530742520), r = l(r, i, t, n, u[e + 2], 23, -995338651), n = y(n, r, i, t, u[e + 0], 6, -198630844), t = y(t, n, r, i, u[e + 7], 10, 1126891415), i = y(i, t, n, r, u[e + 14], 15, -1416354905), r = y(r, i, t, n, u[e + 5], 21, -57434055), n = y(n, r, i, t, u[e + 12], 6, 1700485571), t = y(t, n, r, i, u[e + 3], 10, -1894986606), i = y(i, t, n, r, u[e + 10], 15, -1051523), r = y(r, i, t, n, u[e + 1], 21, -2054922799), n = y(n, r, i, t, u[e + 8], 6, 1873313359), t = y(t, n, r, i, u[e + 15], 10, -30611744), i = y(i, t, n, r, u[e + 6], 15, -1560198380), r = y(r, i, t, n, u[e + 13], 21, 1309151649), n = y(n, r, i, t, u[e + 4], 6, -145523070), t = y(t, n, r, i, u[e + 11], 10, -1120210379), i = y(i, t, n, r, u[e + 2], 15, 718787259), r = y(r, i, t, n, u[e + 9], 21, -343485551), n = n + T >>> 0, r = r + b >>> 0, i = i + A >>> 0, t = t + I >>> 0;
|
|
16
|
-
}
|
|
17
|
-
return v.endian([n, r, i, t]);
|
|
18
|
-
};
|
|
19
|
-
d._ff = function(o, f, u, a, n, r, i) {
|
|
20
|
-
var t = o + (f & u | ~f & a) + (n >>> 0) + i;
|
|
21
|
-
return (t << r | t >>> 32 - r) + f;
|
|
22
|
-
}, d._gg = function(o, f, u, a, n, r, i) {
|
|
23
|
-
var t = o + (f & a | u & ~a) + (n >>> 0) + i;
|
|
24
|
-
return (t << r | t >>> 32 - r) + f;
|
|
25
|
-
}, d._hh = function(o, f, u, a, n, r, i) {
|
|
26
|
-
var t = o + (f ^ u ^ a) + (n >>> 0) + i;
|
|
27
|
-
return (t << r | t >>> 32 - r) + f;
|
|
28
|
-
}, d._ii = function(o, f, u, a, n, r, i) {
|
|
29
|
-
var t = o + (u ^ (f | ~a)) + (n >>> 0) + i;
|
|
30
|
-
return (t << r | t >>> 32 - r) + f;
|
|
31
|
-
}, d._blocksize = 16, d._digestsize = 16, h.exports = function(o, f) {
|
|
32
|
-
if (o == null)
|
|
33
|
-
throw new Error("Illegal argument " + o);
|
|
34
|
-
var u = v.wordsToBytes(d(o, f));
|
|
35
|
-
return f && f.asBytes ? u : f && f.asString ? F.bytesToString(u) : v.bytesToHex(u);
|
|
36
|
-
};
|
|
37
|
-
})(), h.exports);
|
|
1
|
+
import { __module as e } from "./index13.js";
|
|
2
|
+
import { __require as o } from "./index14.js";
|
|
3
|
+
import { __require as t } from "./index15.js";
|
|
4
|
+
var r;
|
|
5
|
+
function s() {
|
|
6
|
+
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
|
|
38
7
|
}
|
|
39
8
|
export {
|
|
40
|
-
|
|
9
|
+
s as __require
|
|
41
10
|
};
|