@coinbase/cdp-api-client 0.0.102 → 0.0.104

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