@coinbase/cdp-api-client 0.0.108 → 0.0.110

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 CHANGED
@@ -1,13 +1,13 @@
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 { CreateEndUserBtcAccountBodyAddressType as a, CreateEndUserBtcAccountBodyNetwork as c, DeveloperJWTAuthenticationType as d, EmailAuthenticationType as E, EndUserBtcAccountAddressType as A, EndUserBtcAccountNetwork as u, EndUserOnrampFeeType as p, EndUserOnrampOrderStatus as h, ErrorType as m, EvmEip7702DelegationNetwork as U, EvmEip7702DelegationOperationStatus as l, EvmSwapsNetwork as g, EvmUserOperationNetwork as y, EvmUserOperationStatus as S, InitiateEmailAuthenticationNextStepType as T, InitiateEmailAuthenticationRequestType as v, InitiateSiweAuthenticationRequestType as f, InitiateSmsAuthenticationNextStepType as W, InitiateSmsAuthenticationRequestType as k, InitiateSmsMfaEnrollmentType as w, InitiateTotpMfaEnrollmentType as B, IosAttestationRegistrationResponsePlatform as O, MfaMethod as N, Network as M, OAuth2ProviderType as I, RefreshAccessTokenBodyGrantType as P, SendEvmAssetWithEndUserAccountBodyNetwork as D, SendEvmTransactionWithEndUserAccountBodyNetwork as C, SendSolanaAssetWithEndUserAccountBodyNetwork as x, SendSolanaTransactionWithEndUserAccountBodyNetwork as F, SignBtcHashWithEndUserAccountBodyAddressType as H, SignBtcHashWithEndUserAccountBodyChange as R, SignBtcHashWithEndUserAccountBodyNetwork as V, SiweAuthenticationType as q, SmsAuthenticationType as b, SpendPermissionNetwork as j } from "./index5.js";
5
- import { authenticateUserWithCustomAuth as J, createDelegationForEndUser as _, createDelegationForEndUserAccount as z, createEndUserApplePayOnrampOrder as K, createEndUserBtcAccount as L, createEndUserEvmAccount as Q, createEndUserEvmSmartAccount as X, createEndUserEvmSwap as Y, createEndUserSolanaAccount as Z, createEvmEip7702DelegationWithEndUserAccount as $, createSpendPermissionWithEndUserAccount as ee, exportEndUserEvmAccount as te, exportEndUserSolanaAccount as ne, generateAttestationChallenge as re, getAuthenticatedEndUser as oe, getDelegationForEndUser as ie, getDelegationForEndUserAccount as se, getEndUserEvmSwapPrice as ae, getEvmEip7702DelegationOperationByIdWithEndUserAccount as ce, getMfaConfig as de, getProjectConfig as Ee, getUserOperationWithEndUserAccount as Ae, initiateAuthentication as ue, initiateMfaEnrollment as pe, initiateMfaEnrollment2 as he, initiateMfaVerification as me, listSpendPermissionsWithEndUserAccount as Ue, logOutEndUser as le, recordMfaEnrollmentPrompted as ge, refreshAccessToken as ye, registerAttestation as Se, registerTemporaryWalletSecret as Te, revokeDelegationForEndUser as ve, revokeDelegationForEndUserAccount as fe, revokeSpendPermissionWithEndUserAccount as We, sendEvmAssetWithEndUserAccount as ke, sendEvmTransactionWithEndUserAccount as we, sendSolanaAssetWithEndUserAccount as Be, sendSolanaTransactionWithEndUserAccount as Oe, sendUserOperationWithEndUserAccount as Ne, signBtcHashWithEndUserAccount as Me, signEvmHashWithEndUserAccount as Ie, signEvmMessageWithEndUserAccount as Pe, signEvmTransactionWithEndUserAccount as De, signEvmTypedDataWithEndUserAccount as Ce, signSolanaHashWithEndUserAccount as xe, signSolanaMessageWithEndUserAccount as Fe, signSolanaTransactionWithEndUserAccount as He, submitMfaEnrollment as Re, submitMfaVerification as Ve, verifyEmailAuthentication as qe, verifyOAuthCode as be, verifyOAuthEndUserIdentity as je, verifySiweAuthentication as Ge, verifySmsAuthentication as Je } from "./index6.js";
6
- import { configureCdpApiClient as ze, setAuthManager as Ke } from "./index7.js";
7
- import { APIError as Qe, HttpErrorType as Xe, UnknownApiError as Ye, UnknownError as Ze, isOpenAPIError as $e } from "./index8.js";
4
+ import { CreateEndUserBtcAccountBodyAddressType as a, CreateEndUserBtcAccountBodyNetwork as c, DeveloperJWTAuthenticationType as d, EmailAuthenticationType as E, EndUserBtcAccountAddressType as A, EndUserBtcAccountNetwork as u, EndUserOnrampFeeType as p, EndUserOnrampOrderStatus as h, ErrorType as m, EvmEip7702DelegationNetwork as U, EvmEip7702DelegationOperationStatus as l, EvmSwapsNetwork as g, EvmUserOperationNetwork as y, EvmUserOperationStatus as S, InitiateEmailAuthenticationNextStepType as T, InitiateEmailAuthenticationRequestType as v, InitiateSiweAuthenticationRequestType as W, InitiateSmsAuthenticationNextStepType as f, InitiateSmsAuthenticationRequestType as k, InitiateSmsMfaEnrollmentType as w, InitiateTotpMfaEnrollmentType as B, IosAttestationRegistrationResponsePlatform as O, MfaMethod as N, Network as M, OAuth2ProviderType as P, RefreshAccessTokenBodyGrantType as I, SendEvmAssetWithEndUserAccountBodyNetwork as D, SendEvmTransactionWithEndUserAccountBodyNetwork as C, SendSolanaAssetWithEndUserAccountBodyNetwork as x, SendSolanaTransactionWithEndUserAccountBodyNetwork as F, SignBtcHashWithEndUserAccountBodyAddressType as H, SignBtcHashWithEndUserAccountBodyChange as R, SignBtcHashWithEndUserAccountBodyNetwork as V, SiweAuthenticationType as b, SmsAuthenticationType as q, SpendPermissionNetwork as j } from "./index5.js";
5
+ import { authenticateUserWithCustomAuth as J, createDelegationForEndUser as _, createDelegationForEndUserAccount as z, createEndUserApplePayOnrampOrder as K, createEndUserBtcAccount as L, createEndUserEvmAccount as Q, createEndUserEvmSmartAccount as X, createEndUserEvmSwap as Y, createEndUserSolanaAccount as Z, createEvmEip7702DelegationWithEndUserAccount as $, createSpendPermissionWithEndUserAccount as ee, enableSpendPermissionWithEndUserAccount as te, exportEndUserEvmAccount as ne, exportEndUserSolanaAccount as re, generateAttestationChallenge as ie, getAuthenticatedEndUser as oe, getDelegationForEndUser as se, getDelegationForEndUserAccount as ae, getEndUserEvmSwapPrice as ce, getEvmEip7702DelegationOperationByIdWithEndUserAccount as de, getMfaConfig as Ee, getProjectConfig as Ae, getUserOperationWithEndUserAccount as ue, initiateAuthentication as pe, initiateMfaEnrollment as he, initiateMfaEnrollment2 as me, initiateMfaVerification as Ue, listSpendPermissionsWithEndUserAccount as le, logOutEndUser as ge, recordMfaEnrollmentPrompted as ye, refreshAccessToken as Se, registerAttestation as Te, registerTemporaryWalletSecret as ve, revokeDelegationForEndUser as We, revokeDelegationForEndUserAccount as fe, revokeSpendPermissionWithEndUserAccount as ke, sendEvmAssetWithEndUserAccount as we, sendEvmTransactionWithEndUserAccount as Be, sendSolanaAssetWithEndUserAccount as Oe, sendSolanaTransactionWithEndUserAccount as Ne, sendUserOperationWithEndUserAccount as Me, signBtcHashWithEndUserAccount as Pe, signEvmHashWithEndUserAccount as Ie, signEvmMessageWithEndUserAccount as De, signEvmTransactionWithEndUserAccount as Ce, signEvmTypedDataWithEndUserAccount as xe, signSolanaHashWithEndUserAccount as Fe, signSolanaMessageWithEndUserAccount as He, signSolanaTransactionWithEndUserAccount as Re, submitMfaEnrollment as Ve, submitMfaVerification as be, verifyEmailAuthentication as qe, verifyOAuthCode as je, verifyOAuthEndUserIdentity as Ge, verifySiweAuthentication as Je, verifySmsAuthentication as _e } from "./index6.js";
6
+ import { configureCdpApiClient as Ke, setAuthManager as Le } from "./index7.js";
7
+ import { APIError as Xe, HttpErrorType as Ye, UnknownApiError as Ze, UnknownError as $e, isOpenAPIError as et } from "./index8.js";
8
8
  e.registerPackageVersion("api_client", t);
9
9
  export {
10
- Qe as APIError,
10
+ Xe as APIError,
11
11
  a as CreateEndUserBtcAccountBodyAddressType,
12
12
  c as CreateEndUserBtcAccountBodyNetwork,
13
13
  d as DeveloperJWTAuthenticationType,
@@ -22,19 +22,19 @@ export {
22
22
  g as EvmSwapsNetwork,
23
23
  y as EvmUserOperationNetwork,
24
24
  S as EvmUserOperationStatus,
25
- Xe as HttpErrorType,
25
+ Ye as HttpErrorType,
26
26
  T as InitiateEmailAuthenticationNextStepType,
27
27
  v as InitiateEmailAuthenticationRequestType,
28
- f as InitiateSiweAuthenticationRequestType,
29
- W as InitiateSmsAuthenticationNextStepType,
28
+ W as InitiateSiweAuthenticationRequestType,
29
+ f as InitiateSmsAuthenticationNextStepType,
30
30
  k as InitiateSmsAuthenticationRequestType,
31
31
  w as InitiateSmsMfaEnrollmentType,
32
32
  B as InitiateTotpMfaEnrollmentType,
33
33
  O as IosAttestationRegistrationResponsePlatform,
34
34
  N as MfaMethod,
35
35
  M as Network,
36
- I as OAuth2ProviderType,
37
- P as RefreshAccessTokenBodyGrantType,
36
+ P as OAuth2ProviderType,
37
+ I as RefreshAccessTokenBodyGrantType,
38
38
  D as SendEvmAssetWithEndUserAccountBodyNetwork,
39
39
  C as SendEvmTransactionWithEndUserAccountBodyNetwork,
40
40
  x as SendSolanaAssetWithEndUserAccountBodyNetwork,
@@ -42,13 +42,13 @@ export {
42
42
  H as SignBtcHashWithEndUserAccountBodyAddressType,
43
43
  R as SignBtcHashWithEndUserAccountBodyChange,
44
44
  V as SignBtcHashWithEndUserAccountBodyNetwork,
45
- q as SiweAuthenticationType,
46
- b as SmsAuthenticationType,
45
+ b as SiweAuthenticationType,
46
+ q as SmsAuthenticationType,
47
47
  j as SpendPermissionNetwork,
48
- Ye as UnknownApiError,
49
- Ze as UnknownError,
48
+ Ze as UnknownApiError,
49
+ $e as UnknownError,
50
50
  J as authenticateUserWithCustomAuth,
51
- ze as configureCdpApiClient,
51
+ Ke as configureCdpApiClient,
52
52
  _ as createDelegationForEndUser,
53
53
  z as createDelegationForEndUserAccount,
54
54
  K as createEndUserApplePayOnrampOrder,
@@ -59,50 +59,51 @@ export {
59
59
  Z as createEndUserSolanaAccount,
60
60
  $ as createEvmEip7702DelegationWithEndUserAccount,
61
61
  ee as createSpendPermissionWithEndUserAccount,
62
- te as exportEndUserEvmAccount,
63
- ne as exportEndUserSolanaAccount,
64
- re as generateAttestationChallenge,
62
+ te as enableSpendPermissionWithEndUserAccount,
63
+ ne as exportEndUserEvmAccount,
64
+ re as exportEndUserSolanaAccount,
65
+ ie as generateAttestationChallenge,
65
66
  oe as getAuthenticatedEndUser,
66
- ie as getDelegationForEndUser,
67
- se as getDelegationForEndUserAccount,
68
- ae as getEndUserEvmSwapPrice,
69
- ce as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
70
- de as getMfaConfig,
71
- Ee as getProjectConfig,
72
- Ae as getUserOperationWithEndUserAccount,
73
- ue as initiateAuthentication,
74
- pe as initiateMfaEnrollment,
75
- he as initiateMfaEnrollment2,
76
- me as initiateMfaVerification,
77
- $e as isOpenAPIError,
78
- Ue as listSpendPermissionsWithEndUserAccount,
79
- le as logOutEndUser,
80
- ge as recordMfaEnrollmentPrompted,
81
- ye as refreshAccessToken,
82
- Se as registerAttestation,
83
- Te as registerTemporaryWalletSecret,
84
- ve as revokeDelegationForEndUser,
67
+ se as getDelegationForEndUser,
68
+ ae as getDelegationForEndUserAccount,
69
+ ce as getEndUserEvmSwapPrice,
70
+ de as getEvmEip7702DelegationOperationByIdWithEndUserAccount,
71
+ Ee as getMfaConfig,
72
+ Ae as getProjectConfig,
73
+ ue as getUserOperationWithEndUserAccount,
74
+ pe as initiateAuthentication,
75
+ he as initiateMfaEnrollment,
76
+ me as initiateMfaEnrollment2,
77
+ Ue as initiateMfaVerification,
78
+ et as isOpenAPIError,
79
+ le as listSpendPermissionsWithEndUserAccount,
80
+ ge as logOutEndUser,
81
+ ye as recordMfaEnrollmentPrompted,
82
+ Se as refreshAccessToken,
83
+ Te as registerAttestation,
84
+ ve as registerTemporaryWalletSecret,
85
+ We as revokeDelegationForEndUser,
85
86
  fe as revokeDelegationForEndUserAccount,
86
- We as revokeSpendPermissionWithEndUserAccount,
87
- ke as sendEvmAssetWithEndUserAccount,
88
- we as sendEvmTransactionWithEndUserAccount,
89
- Be as sendSolanaAssetWithEndUserAccount,
90
- Oe as sendSolanaTransactionWithEndUserAccount,
91
- Ne as sendUserOperationWithEndUserAccount,
92
- Ke as setAuthManager,
93
- Me as signBtcHashWithEndUserAccount,
87
+ ke as revokeSpendPermissionWithEndUserAccount,
88
+ we as sendEvmAssetWithEndUserAccount,
89
+ Be as sendEvmTransactionWithEndUserAccount,
90
+ Oe as sendSolanaAssetWithEndUserAccount,
91
+ Ne as sendSolanaTransactionWithEndUserAccount,
92
+ Me as sendUserOperationWithEndUserAccount,
93
+ Le as setAuthManager,
94
+ Pe as signBtcHashWithEndUserAccount,
94
95
  Ie as signEvmHashWithEndUserAccount,
95
- Pe as signEvmMessageWithEndUserAccount,
96
- De as signEvmTransactionWithEndUserAccount,
97
- Ce as signEvmTypedDataWithEndUserAccount,
98
- xe as signSolanaHashWithEndUserAccount,
99
- Fe as signSolanaMessageWithEndUserAccount,
100
- He as signSolanaTransactionWithEndUserAccount,
101
- Re as submitMfaEnrollment,
102
- Ve as submitMfaVerification,
96
+ De as signEvmMessageWithEndUserAccount,
97
+ Ce as signEvmTransactionWithEndUserAccount,
98
+ xe as signEvmTypedDataWithEndUserAccount,
99
+ Fe as signSolanaHashWithEndUserAccount,
100
+ He as signSolanaMessageWithEndUserAccount,
101
+ Re as signSolanaTransactionWithEndUserAccount,
102
+ Ve as submitMfaEnrollment,
103
+ be as submitMfaVerification,
103
104
  qe as verifyEmailAuthentication,
104
- be as verifyOAuthCode,
105
- je as verifyOAuthEndUserIdentity,
106
- Ge as verifySiweAuthentication,
107
- Je as verifySmsAuthentication
105
+ je as verifyOAuthCode,
106
+ Ge as verifyOAuthEndUserIdentity,
107
+ Je as verifySiweAuthentication,
108
+ _e as verifySmsAuthentication
108
109
  };
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as r } from "./index24.js";
2
- import { __require as o } from "./index16.js";
2
+ import { __require as o } from "./index12.js";
3
3
  var t = o();
4
4
  const a = /* @__PURE__ */ r(t);
5
5
  export {
@@ -1,10 +1,41 @@
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);
1
+ import { __module as h } from "./index13.js";
2
+ import { __require as S } from "./index14.js";
3
+ import { __require as q } from "./index15.js";
4
+ import { __require as w } from "./index16.js";
5
+ var x;
6
+ function G() {
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);
7
38
  }
8
39
  export {
9
- s as __require
40
+ G as __require
10
41
  };