@coinbase/cdp-core 0.0.80 → 0.0.81
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.native.js +15 -13
- package/dist/esm/index.native10.js +1 -1
- package/dist/esm/index.native11.js +1 -1
- package/dist/esm/index.native12.js +1 -1
- package/dist/esm/index.native122.js +1 -1
- package/dist/esm/index.native123.js +1 -1
- package/dist/esm/index.native125.js +6 -6
- package/dist/esm/index.native13.js +1 -1
- package/dist/esm/index.native14.js +1 -1
- package/dist/esm/index.native155.js +1 -1
- package/dist/esm/index.native16.js +1 -1
- package/dist/esm/index.native162.js +20 -4
- package/dist/esm/index.native163.js +10 -21
- package/dist/esm/index.native164.js +19 -9
- package/dist/esm/index.native165.js +89 -15
- package/dist/esm/index.native166.js +19 -92
- package/dist/esm/index.native167.js +115 -18
- package/dist/esm/index.native168.js +5 -118
- package/dist/esm/index.native17.js +1 -1
- package/dist/esm/index.native172.js +38 -7
- package/dist/esm/index.native174.js +67 -375
- package/dist/esm/index.native175.js +34 -835
- package/dist/esm/index.native176.js +20 -38
- package/dist/esm/index.native177.js +8 -2
- package/dist/esm/index.native178.js +2 -70
- package/dist/esm/index.native179.js +373 -30
- package/dist/esm/index.native18.js +1 -1
- package/dist/esm/index.native180.js +835 -20
- package/dist/esm/index.native182.js +18 -2
- package/dist/esm/index.native183.js +28 -109
- package/dist/esm/index.native184.js +8 -2
- package/dist/esm/index.native185.js +11 -18
- package/dist/esm/index.native186.js +13 -28
- package/dist/esm/index.native187.js +10 -8
- package/dist/esm/index.native188.js +17 -11
- package/dist/esm/index.native189.js +80 -12
- package/dist/esm/index.native19.js +1 -1
- package/dist/esm/index.native190.js +2 -10
- package/dist/esm/index.native191.js +108 -16
- package/dist/esm/index.native192.js +2 -81
- package/dist/esm/index.native194.js +2 -2
- package/dist/esm/index.native195.js +2 -2
- package/dist/esm/index.native196.js +2 -2
- package/dist/esm/index.native20.js +1 -1
- package/dist/esm/index.native21.js +1 -1
- package/dist/esm/index.native22.js +1 -1
- package/dist/esm/index.native23.js +1 -1
- package/dist/esm/index.native24.js +1 -1
- package/dist/esm/index.native25.js +1 -1
- package/dist/esm/index.native26.js +1 -1
- package/dist/esm/index.native28.js +1 -1
- package/dist/esm/index.native29.js +1 -1
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native30.js +1 -1
- package/dist/esm/index.native31.js +1 -1
- package/dist/esm/index.native32.js +1 -1
- package/dist/esm/index.native33.js +1 -1
- package/dist/esm/index.native37.js +1 -1
- package/dist/esm/index.native39.js +1 -1
- package/dist/esm/index.native4.js +1 -1
- package/dist/esm/index.native46.js +27 -31
- package/dist/esm/index.native47.js +31 -27
- package/dist/esm/index.native49.js +1 -1
- package/dist/esm/index.native5.js +1 -1
- package/dist/esm/index.native50.js +1 -1
- package/dist/esm/index.native60.js +1 -1
- package/dist/esm/index.native69.js +3 -3
- package/dist/esm/index.native72.js +1 -1
- package/dist/esm/index.native73.js +1 -1
- package/dist/esm/index.native74.js +1 -1
- package/dist/esm/index.native78.js +377 -2
- package/dist/esm/index.native79.js +29 -2
- package/dist/esm/index.native80.js +26 -374
- package/dist/esm/index.native81.js +2 -29
- package/dist/esm/index.native82.js +2 -29
- package/dist/esm/index.native9.js +1 -1
- package/dist/esm/index.web.js +9 -7
- package/dist/esm/index.web10.js +2 -2
- package/dist/esm/index.web11.js +2 -2
- package/dist/esm/index.web12.js +2 -2
- package/dist/esm/index.web13.js +1 -1
- package/dist/esm/index.web15.js +1 -1
- package/dist/esm/index.web154.js +1 -1
- package/dist/esm/index.web16.js +1 -1
- package/dist/esm/index.web17.js +1 -1
- package/dist/esm/index.web171.js +38 -7
- package/dist/esm/index.web173.js +67 -375
- package/dist/esm/index.web174.js +34 -835
- package/dist/esm/index.web175.js +20 -38
- package/dist/esm/index.web176.js +8 -2
- package/dist/esm/index.web177.js +2 -70
- package/dist/esm/index.web178.js +373 -30
- package/dist/esm/index.web179.js +835 -20
- package/dist/esm/index.web18.js +1 -1
- package/dist/esm/index.web19.js +1 -1
- package/dist/esm/index.web193.js +2 -2
- package/dist/esm/index.web194.js +2 -2
- package/dist/esm/index.web195.js +2 -2
- package/dist/esm/index.web20.js +2 -2
- package/dist/esm/index.web21.js +2 -2
- package/dist/esm/index.web22.js +2 -2
- package/dist/esm/index.web23.js +2 -2
- package/dist/esm/index.web24.js +2 -2
- package/dist/esm/index.web25.js +2 -2
- package/dist/esm/index.web27.js +1 -1
- package/dist/esm/index.web28.js +2 -2
- package/dist/esm/index.web29.js +2 -2
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web30.js +3 -3
- package/dist/esm/index.web31.js +2 -2
- package/dist/esm/index.web32.js +2 -2
- package/dist/esm/index.web36.js +1 -1
- package/dist/esm/index.web38.js +2 -2
- package/dist/esm/index.web47.js +1 -1
- package/dist/esm/index.web48.js +27 -31
- package/dist/esm/index.web49.js +32 -3
- package/dist/esm/index.web5.js +1 -1
- package/dist/esm/index.web50.js +3 -9
- package/dist/esm/index.web51.js +8 -64
- package/dist/esm/index.web52.js +47 -70
- package/dist/esm/index.web53.js +87 -23
- package/dist/esm/index.web54.js +23 -17
- package/dist/esm/index.web55.js +16 -26
- package/dist/esm/index.web62.js +1 -1
- package/dist/esm/index.web70.js +1 -1
- package/dist/esm/index.web8.js +1 -1
- package/dist/esm/index.web9.js +7 -7
- package/dist/native/index.native.js +15 -13
- package/dist/native/index.native10.js +1 -1
- package/dist/native/index.native11.js +1 -1
- package/dist/native/index.native12.js +1 -1
- package/dist/native/index.native122.js +1 -1
- package/dist/native/index.native123.js +1 -1
- package/dist/native/index.native125.js +6 -6
- package/dist/native/index.native13.js +1 -1
- package/dist/native/index.native14.js +1 -1
- package/dist/native/index.native155.js +1 -1
- package/dist/native/index.native16.js +1 -1
- package/dist/native/index.native162.js +20 -4
- package/dist/native/index.native163.js +10 -21
- package/dist/native/index.native164.js +19 -9
- package/dist/native/index.native165.js +89 -15
- package/dist/native/index.native166.js +19 -92
- package/dist/native/index.native167.js +115 -18
- package/dist/native/index.native168.js +5 -118
- package/dist/native/index.native17.js +1 -1
- package/dist/native/index.native172.js +38 -7
- package/dist/native/index.native174.js +67 -375
- package/dist/native/index.native175.js +34 -835
- package/dist/native/index.native176.js +20 -38
- package/dist/native/index.native177.js +8 -2
- package/dist/native/index.native178.js +2 -70
- package/dist/native/index.native179.js +373 -30
- package/dist/native/index.native18.js +1 -1
- package/dist/native/index.native180.js +835 -20
- package/dist/native/index.native182.js +18 -2
- package/dist/native/index.native183.js +28 -109
- package/dist/native/index.native184.js +8 -2
- package/dist/native/index.native185.js +11 -18
- package/dist/native/index.native186.js +13 -28
- package/dist/native/index.native187.js +10 -8
- package/dist/native/index.native188.js +17 -11
- package/dist/native/index.native189.js +80 -12
- package/dist/native/index.native19.js +1 -1
- package/dist/native/index.native190.js +2 -10
- package/dist/native/index.native191.js +108 -16
- package/dist/native/index.native192.js +2 -81
- package/dist/native/index.native194.js +2 -2
- package/dist/native/index.native195.js +2 -2
- package/dist/native/index.native196.js +2 -2
- package/dist/native/index.native20.js +1 -1
- package/dist/native/index.native21.js +1 -1
- package/dist/native/index.native22.js +1 -1
- package/dist/native/index.native23.js +1 -1
- package/dist/native/index.native24.js +1 -1
- package/dist/native/index.native25.js +1 -1
- package/dist/native/index.native26.js +1 -1
- package/dist/native/index.native28.js +1 -1
- package/dist/native/index.native29.js +1 -1
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native30.js +1 -1
- package/dist/native/index.native31.js +1 -1
- package/dist/native/index.native32.js +1 -1
- package/dist/native/index.native33.js +1 -1
- package/dist/native/index.native37.js +1 -1
- package/dist/native/index.native39.js +1 -1
- package/dist/native/index.native4.js +1 -1
- package/dist/native/index.native46.js +27 -31
- package/dist/native/index.native47.js +31 -27
- package/dist/native/index.native49.js +1 -1
- package/dist/native/index.native5.js +1 -1
- package/dist/native/index.native50.js +1 -1
- package/dist/native/index.native60.js +1 -1
- package/dist/native/index.native69.js +3 -3
- package/dist/native/index.native72.js +1 -1
- package/dist/native/index.native73.js +1 -1
- package/dist/native/index.native74.js +1 -1
- package/dist/native/index.native78.js +377 -2
- package/dist/native/index.native79.js +29 -2
- package/dist/native/index.native80.js +26 -374
- package/dist/native/index.native81.js +2 -29
- package/dist/native/index.native82.js +2 -29
- package/dist/native/index.native9.js +1 -1
- package/dist/native-types/index.d.ts +1 -0
- package/dist/native-types/index.native.d.ts +1 -0
- package/dist/native-types/index.web.d.ts +1 -0
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.native.d.ts +1 -0
- package/dist/types/index.web.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web.js +9 -7
- package/dist/web/index.web10.js +2 -2
- package/dist/web/index.web11.js +2 -2
- package/dist/web/index.web12.js +2 -2
- package/dist/web/index.web13.js +1 -1
- package/dist/web/index.web15.js +1 -1
- package/dist/web/index.web154.js +1 -1
- package/dist/web/index.web16.js +1 -1
- package/dist/web/index.web17.js +1 -1
- package/dist/web/index.web171.js +38 -7
- package/dist/web/index.web173.js +67 -375
- package/dist/web/index.web174.js +34 -835
- package/dist/web/index.web175.js +20 -38
- package/dist/web/index.web176.js +8 -2
- package/dist/web/index.web177.js +2 -70
- package/dist/web/index.web178.js +373 -30
- package/dist/web/index.web179.js +835 -20
- package/dist/web/index.web18.js +1 -1
- package/dist/web/index.web19.js +1 -1
- package/dist/web/index.web193.js +2 -2
- package/dist/web/index.web194.js +2 -2
- package/dist/web/index.web195.js +2 -2
- package/dist/web/index.web20.js +2 -2
- package/dist/web/index.web21.js +2 -2
- package/dist/web/index.web22.js +2 -2
- package/dist/web/index.web23.js +2 -2
- package/dist/web/index.web24.js +2 -2
- package/dist/web/index.web25.js +2 -2
- package/dist/web/index.web27.js +1 -1
- package/dist/web/index.web28.js +2 -2
- package/dist/web/index.web29.js +2 -2
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web30.js +3 -3
- package/dist/web/index.web31.js +2 -2
- package/dist/web/index.web32.js +2 -2
- package/dist/web/index.web36.js +1 -1
- package/dist/web/index.web38.js +2 -2
- package/dist/web/index.web47.js +1 -1
- package/dist/web/index.web48.js +27 -31
- package/dist/web/index.web49.js +32 -3
- package/dist/web/index.web5.js +1 -1
- package/dist/web/index.web50.js +3 -9
- package/dist/web/index.web51.js +8 -64
- package/dist/web/index.web52.js +47 -70
- package/dist/web/index.web53.js +87 -23
- package/dist/web/index.web54.js +23 -17
- package/dist/web/index.web55.js +16 -26
- package/dist/web/index.web62.js +1 -1
- package/dist/web/index.web70.js +1 -1
- package/dist/web/index.web8.js +1 -1
- package/dist/web/index.web9.js +7 -7
- package/dist/web-types/index.d.ts +1 -0
- package/dist/web-types/index.native.d.ts +1 -0
- package/dist/web-types/index.web.d.ts +1 -0
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/web/index.web18.js
CHANGED
|
@@ -2,7 +2,7 @@ import { initiateAuthentication as e } from "@coinbase/cdp-api-client";
|
|
|
2
2
|
import { Analytics as o } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
4
|
import { getPlatformOAuth as n } from "./index.web4.js";
|
|
5
|
-
import { getCoreAuthManager as r, getConfig as a } from "./index.
|
|
5
|
+
import { getCoreAuthManager as r, getConfig as a } from "./index.web48.js";
|
|
6
6
|
async function g(t) {
|
|
7
7
|
if (o.sendActionCallEvent({ name: "link_oauth" }), !await r().isSignedIn())
|
|
8
8
|
throw new Error("User must be signed in to link an OAuth account");
|
package/dist/web/index.web19.js
CHANGED
|
@@ -2,7 +2,7 @@ import { initiateAuthentication as e } from "@coinbase/cdp-api-client";
|
|
|
2
2
|
import { Analytics as n } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
4
|
import { getPlatformOAuth as i } from "./index.web4.js";
|
|
5
|
-
import { getCoreAuthManager as r, getConfig as o } from "./index.
|
|
5
|
+
import { getCoreAuthManager as r, getConfig as o } from "./index.web48.js";
|
|
6
6
|
async function g() {
|
|
7
7
|
if (n.sendActionCallEvent({ name: "link_apple" }), !await r().isSignedIn())
|
|
8
8
|
throw new Error("User must be signed in to link an Apple account");
|
package/dist/web/index.web193.js
CHANGED
package/dist/web/index.web194.js
CHANGED
package/dist/web/index.web195.js
CHANGED
package/dist/web/index.web20.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createEndUserEvmAccount as u } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as i } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { toAuthStateUser as m } from "./index.
|
|
4
|
+
import { toAuthStateUser as m } from "./index.web54.js";
|
|
5
5
|
import { InternalError as A } from "./index.web41.js";
|
|
6
6
|
import { validateUserAuthState as d } from "./index.web63.js";
|
|
7
|
-
import { getCoreAuthManager as h, getConfig as f } from "./index.
|
|
7
|
+
import { getCoreAuthManager as h, getConfig as f } from "./index.web48.js";
|
|
8
8
|
async function U() {
|
|
9
9
|
i.sendActionCallEvent({ name: "create_evm_eoa_account" });
|
|
10
10
|
const t = h(), { user: e, authState: a } = d(
|
package/dist/web/index.web21.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { APIError as w, createEndUserEvmSmartAccount as A } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as h } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { toAuthStateUser as f } from "./index.
|
|
4
|
+
import { toAuthStateUser as f } from "./index.web54.js";
|
|
5
5
|
import { InternalError as l } from "./index.web41.js";
|
|
6
|
-
import { getCoreAuthManager as S, getConfig as E } from "./index.
|
|
6
|
+
import { getCoreAuthManager as S, getConfig as E } from "./index.web48.js";
|
|
7
7
|
import { createEvmEoaAccount as g } from "./index.web20.js";
|
|
8
8
|
import { validateUserAuthState as v } from "./index.web63.js";
|
|
9
9
|
async function _(r) {
|
package/dist/web/index.web22.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createEndUserSolanaAccount as u } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as i } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { toAuthStateUser as l } from "./index.
|
|
4
|
+
import { toAuthStateUser as l } from "./index.web54.js";
|
|
5
5
|
import { InternalError as m } from "./index.web41.js";
|
|
6
6
|
import { validateUserAuthState as A } from "./index.web63.js";
|
|
7
|
-
import { getCoreAuthManager as d, getConfig as h } from "./index.
|
|
7
|
+
import { getCoreAuthManager as d, getConfig as h } from "./index.web48.js";
|
|
8
8
|
async function C() {
|
|
9
9
|
i.sendActionCallEvent({ name: "create_solana_account" });
|
|
10
10
|
const t = d(), { user: e, authState: r } = A(
|
package/dist/web/index.web23.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { sendEvmAssetWithEndUserAccount as o } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as s } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { withAuth as c } from "./index.
|
|
5
|
-
import { getConfig as n, getCoreAuthManager as m } from "./index.
|
|
4
|
+
import { withAuth as c } from "./index.web55.js";
|
|
5
|
+
import { getConfig as n, getCoreAuthManager as m } from "./index.web48.js";
|
|
6
6
|
const A = async (t) => (s.sendActionCallEvent({ name: "send_evm_eoa_usdc" }), n().useMock ? {
|
|
7
7
|
transactionHash: "0x0"
|
|
8
8
|
} : c(t, m(), async ({ user: a, walletSecretId: e }) => {
|
package/dist/web/index.web24.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { sendEvmAssetWithEndUserAccount as m } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as n } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { withAuth as u } from "./index.
|
|
5
|
-
import { getConfig as t, getCoreAuthManager as c } from "./index.
|
|
4
|
+
import { withAuth as u } from "./index.web55.js";
|
|
5
|
+
import { getConfig as t, getCoreAuthManager as c } from "./index.web48.js";
|
|
6
6
|
const f = async (r) => (n.sendActionCallEvent({ name: "send_evm_smart_account_usdc" }), t().useMock ? {
|
|
7
7
|
userOpHash: "0x0"
|
|
8
8
|
} : u(r, c(), async ({ user: a, walletSecretId: s }) => {
|
package/dist/web/index.web25.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { sendSolanaAssetWithEndUserAccount as o } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as s } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { withAuth as c } from "./index.
|
|
5
|
-
import { getConfig as n, getCoreAuthManager as i } from "./index.
|
|
4
|
+
import { withAuth as c } from "./index.web55.js";
|
|
5
|
+
import { getConfig as n, getCoreAuthManager as i } from "./index.web48.js";
|
|
6
6
|
const f = async (t) => {
|
|
7
7
|
s.sendActionCallEvent({ name: "send_solana_usdc" });
|
|
8
8
|
const e = t.network ?? "solana";
|
package/dist/web/index.web27.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMfaConfig as t } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as n } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { getConfig as e } from "./index.
|
|
4
|
+
import { getConfig as e } from "./index.web48.js";
|
|
5
5
|
const s = async () => (n.sendActionCallEvent({ name: "get_mfa_config" }), e().useMock ? {
|
|
6
6
|
projectId: e().projectId,
|
|
7
7
|
enabled: !1,
|
package/dist/web/index.web28.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { recordMfaEnrollmentPrompted as m } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as s } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { withAuth as l } from "./index.
|
|
4
|
+
import { withAuth as l } from "./index.web55.js";
|
|
5
5
|
import { validateUserAuthState as d } from "./index.web63.js";
|
|
6
|
-
import { getConfig as o, getCoreAuthManager as p } from "./index.
|
|
6
|
+
import { getConfig as o, getCoreAuthManager as p } from "./index.web48.js";
|
|
7
7
|
const g = async () => {
|
|
8
8
|
if (s.sendActionCallEvent({ name: "record_mfa_enrollment_prompted" }), o().useMock)
|
|
9
9
|
return {
|
package/dist/web/index.web29.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { initiateMfaEnrollment2 as s } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as u } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { withAuth as i } from "./index.
|
|
4
|
+
import { withAuth as i } from "./index.web55.js";
|
|
5
5
|
import { validateUserAuthState as c } from "./index.web63.js";
|
|
6
|
-
import { getConfig as o, getCoreAuthManager as p } from "./index.
|
|
6
|
+
import { getConfig as o, getCoreAuthManager as p } from "./index.web48.js";
|
|
7
7
|
import { validatePhoneNumber as h } from "./index.web42.js";
|
|
8
8
|
async function l(t) {
|
|
9
9
|
const e = await s(
|
package/dist/web/index.web3.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { __require as r } from "./index.
|
|
1
|
+
import { __require as r } from "./index.web176.js";
|
|
2
2
|
r();
|
package/dist/web/index.web30.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { submitMfaEnrollment as s } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as u } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { toAuthStateUser as i } from "./index.
|
|
5
|
-
import { withAuth as f } from "./index.
|
|
4
|
+
import { toAuthStateUser as i } from "./index.web54.js";
|
|
5
|
+
import { withAuth as f } from "./index.web55.js";
|
|
6
6
|
import { mockUser as l } from "./index.web58.js";
|
|
7
7
|
import { validateUserAuthState as c } from "./index.web63.js";
|
|
8
|
-
import { getConfig as o, getCoreAuthManager as h } from "./index.
|
|
8
|
+
import { getConfig as o, getCoreAuthManager as h } from "./index.web48.js";
|
|
9
9
|
const S = async (e) => {
|
|
10
10
|
if (u.sendActionCallEvent({ name: "submit_mfa_enrollment" }), o().useMock)
|
|
11
11
|
return {
|
package/dist/web/index.web31.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { initiateMfaVerification as e } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as r } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { withAuth as o } from "./index.
|
|
5
|
-
import { getConfig as i, getCoreAuthManager as n } from "./index.
|
|
4
|
+
import { withAuth as o } from "./index.web55.js";
|
|
5
|
+
import { getConfig as i, getCoreAuthManager as n } from "./index.web48.js";
|
|
6
6
|
const u = async (t) => {
|
|
7
7
|
if (r.sendActionCallEvent({ name: "initiate_mfa_verification" }), !i().useMock)
|
|
8
8
|
return o({}, n(), async ({ user: a }) => {
|
package/dist/web/index.web32.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { submitMfaVerification as o } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as f } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { withAuth as m } from "./index.
|
|
4
|
+
import { withAuth as m } from "./index.web55.js";
|
|
5
5
|
import { resolvePendingMfaVerification as t } from "./index.web34.js";
|
|
6
|
-
import { getConfig as e, getCoreAuthManager as a } from "./index.
|
|
6
|
+
import { getConfig as e, getCoreAuthManager as a } from "./index.web48.js";
|
|
7
7
|
const g = async (i) => {
|
|
8
8
|
if (f.sendActionCallEvent({ name: "submit_mfa_verification" }), e().useMock) {
|
|
9
9
|
t();
|
package/dist/web/index.web36.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIError as u, ErrorType as l } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { MfaError as m } from "./index.web41.js";
|
|
3
|
-
import { getCoreAuthManager as a } from "./index.
|
|
3
|
+
import { getCoreAuthManager as a } from "./index.web48.js";
|
|
4
4
|
import { hasRegisteredMfaListeners as i, triggerMfaVerification as o } from "./index.web34.js";
|
|
5
5
|
import { isEnrolledInMfa as M, getEnrolledMfaMethods as E } from "./index.web35.js";
|
|
6
6
|
const h = 300, n = () => {
|
package/dist/web/index.web38.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { logOutEndUser as u, refreshAccessToken as c, registerTemporaryWalletSecret as f } from "@coinbase/cdp-api-client";
|
|
2
2
|
import "jose";
|
|
3
3
|
import { SignJWT as S } from "./index.web64.js";
|
|
4
|
-
import { toAuthState as d } from "./index.
|
|
4
|
+
import { toAuthState as d } from "./index.web54.js";
|
|
5
5
|
import "viem";
|
|
6
6
|
import { getPlatformCrypto as l } from "./index.web4.js";
|
|
7
7
|
import { sortKeys as w } from "./index.web59.js";
|
|
8
|
-
import { getCoreOAuthManager as m } from "./index.
|
|
8
|
+
import { getCoreOAuthManager as m } from "./index.web48.js";
|
|
9
9
|
const h = 60 * 1e3, y = {
|
|
10
10
|
maxRetries: 3,
|
|
11
11
|
baseDelayMs: 1e3,
|
package/dist/web/index.web47.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getAccessTokenExpiration as I, getAccessToken as S } from "./index.web9
|
|
|
5
5
|
import { ensureMfaVerified as p } from "./index.web36.js";
|
|
6
6
|
import { DEFAULT_SECURE_IFRAME_BASE_PATH as A, SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE as n, DEFAULT_SECURE_IFRAME_THEME as k } from "./index.web46.js";
|
|
7
7
|
import { validateSecureIframeEnvironment as y, createIframe as x, calculateSecureIframeHeight as U, buildKeyExportIframeUrl as w, getSecureIframeOrigin as v, isSecureIframeKeyExportMessage as R, sendSecureIframeMessage as u } from "./index.web45.js";
|
|
8
|
-
import { getConfig as b } from "./index.
|
|
8
|
+
import { getConfig as b } from "./index.web48.js";
|
|
9
9
|
let s = null;
|
|
10
10
|
const C = async () => (s || (s = S({ forceRefresh: !0 }).finally(() => {
|
|
11
11
|
s = null;
|
package/dist/web/index.web48.js
CHANGED
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const h = e[t], n = t + 1 < e.length ? e[t + 1] : 0, s = t + 2 < e.length ? e[t + 2] : 0, o = h << 16 | n << 8 | s;
|
|
10
|
-
r += c.charAt(o >> 18 & 63), r += c.charAt(o >> 12 & 63), r += t + 1 < e.length ? c.charAt(o >> 6 & 63) : "=", r += t + 2 < e.length ? c.charAt(o & 63) : "=";
|
|
11
|
-
}
|
|
1
|
+
import "@coinbase/cdp-api-client";
|
|
2
|
+
import "viem";
|
|
3
|
+
let r = null, n = null, e = null;
|
|
4
|
+
const a = (t) => {
|
|
5
|
+
r = t;
|
|
6
|
+
}, g = () => {
|
|
7
|
+
if (!r)
|
|
8
|
+
throw new Error("SDK not initialized");
|
|
12
9
|
return r;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const s = r[t[n]] || 0, o = r[t[n + 1]] || 0, l = r[t[n + 2]] || 0, f = r[t[n + 3]] || 0, i = s << 18 | o << 12 | l << 6 | f;
|
|
27
|
-
h.push(i >> 16 & 255), n + 2 < t.length && h.push(i >> 8 & 255), n + 3 < t.length && h.push(i & 255);
|
|
28
|
-
}
|
|
29
|
-
return new Uint8Array(h);
|
|
30
|
-
}
|
|
10
|
+
}, l = (t) => {
|
|
11
|
+
n = t;
|
|
12
|
+
}, u = () => {
|
|
13
|
+
if (!n)
|
|
14
|
+
throw new Error("SDK not initialized");
|
|
15
|
+
return n;
|
|
16
|
+
}, h = (t) => {
|
|
17
|
+
e = t;
|
|
18
|
+
}, s = () => {
|
|
19
|
+
if (!e)
|
|
20
|
+
throw new Error("SDK not initialized");
|
|
21
|
+
return e;
|
|
22
|
+
};
|
|
31
23
|
export {
|
|
32
|
-
g as
|
|
33
|
-
|
|
24
|
+
g as getConfig,
|
|
25
|
+
u as getCoreAuthManager,
|
|
26
|
+
s as getCoreOAuthManager,
|
|
27
|
+
a as setConfig,
|
|
28
|
+
l as setCoreAuthManager,
|
|
29
|
+
h as setCoreOAuthManager
|
|
34
30
|
};
|
package/dist/web/index.web49.js
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
function a(e) {
|
|
2
|
+
if (typeof btoa < "u")
|
|
3
|
+
return btoa(
|
|
4
|
+
Array.from(e).map((t) => String.fromCharCode(t)).join("")
|
|
5
|
+
);
|
|
6
|
+
const c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
7
|
+
let r = "";
|
|
8
|
+
for (let t = 0; t < e.length; t += 3) {
|
|
9
|
+
const h = e[t], n = t + 1 < e.length ? e[t + 1] : 0, s = t + 2 < e.length ? e[t + 2] : 0, o = h << 16 | n << 8 | s;
|
|
10
|
+
r += c.charAt(o >> 18 & 63), r += c.charAt(o >> 12 & 63), r += t + 1 < e.length ? c.charAt(o >> 6 & 63) : "=", r += t + 2 < e.length ? c.charAt(o & 63) : "=";
|
|
11
|
+
}
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
function g(e) {
|
|
15
|
+
if (typeof atob < "u") {
|
|
16
|
+
const n = atob(e), s = new Uint8Array(n.length);
|
|
17
|
+
for (let o = 0; o < n.length; o++)
|
|
18
|
+
s[o] = n.charCodeAt(o);
|
|
19
|
+
return s;
|
|
20
|
+
}
|
|
21
|
+
const c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = {};
|
|
22
|
+
for (let n = 0; n < c.length; n++)
|
|
23
|
+
r[c[n]] = n;
|
|
24
|
+
const t = e.replace(/[^A-Za-z0-9+/]/g, ""), h = [];
|
|
25
|
+
for (let n = 0; n < t.length; n += 4) {
|
|
26
|
+
const s = r[t[n]] || 0, o = r[t[n + 1]] || 0, l = r[t[n + 2]] || 0, f = r[t[n + 3]] || 0, i = s << 18 | o << 12 | l << 6 | f;
|
|
27
|
+
h.push(i >> 16 & 255), n + 2 < t.length && h.push(i >> 8 & 255), n + 3 < t.length && h.push(i & 255);
|
|
28
|
+
}
|
|
29
|
+
return new Uint8Array(h);
|
|
30
|
+
}
|
|
3
31
|
export {
|
|
4
|
-
|
|
32
|
+
g as decodeBase64,
|
|
33
|
+
a as encodeBase64
|
|
5
34
|
};
|
package/dist/web/index.web5.js
CHANGED
package/dist/web/index.web50.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import "@coinbase/cdp-api-client";
|
|
4
|
-
import "viem";
|
|
5
|
-
import { getConfig as n } from "./index.web55.js";
|
|
6
|
-
function a(t) {
|
|
7
|
-
return n().customAuth?.getJwt ? new o(t) : new r(t);
|
|
8
|
-
}
|
|
1
|
+
import { __require as r } from "./index.web72.js";
|
|
2
|
+
var f = r();
|
|
9
3
|
export {
|
|
10
|
-
|
|
4
|
+
f as b
|
|
11
5
|
};
|
package/dist/web/index.web51.js
CHANGED
|
@@ -1,67 +1,11 @@
|
|
|
1
|
-
import { AuthManager as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* For custom auth, we only clear local state without calling the CDP logout API,
|
|
9
|
-
* as authentication is managed by the external identity provider.
|
|
10
|
-
*/
|
|
11
|
-
async signOut() {
|
|
12
|
-
await this.clearAuthState();
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Gets the access token by calling the customAuth.getJwt callback.
|
|
16
|
-
* Returns null if the user is not signed in.
|
|
17
|
-
*
|
|
18
|
-
* @returns The access token from the custom auth provider.
|
|
19
|
-
*/
|
|
20
|
-
async getToken() {
|
|
21
|
-
const e = o();
|
|
22
|
-
if (!e.customAuth)
|
|
23
|
-
return console.error("Custom auth configuration not found"), await this.clearAuthState(), null;
|
|
24
|
-
try {
|
|
25
|
-
const t = await e.customAuth.getJwt();
|
|
26
|
-
return t ? (this.authState && (this.authState.accessToken = t, this.authState.expiresAt = Date.now() + n), t) : (await this.clearAuthState(), null);
|
|
27
|
-
} catch (t) {
|
|
28
|
-
const r = new s(
|
|
29
|
-
t instanceof Error ? t.message : "Failed to get custom auth JWT"
|
|
30
|
-
);
|
|
31
|
-
return console.error(r), await this.clearAuthState(), null;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Internal async initialization logic for custom auth.
|
|
36
|
-
* No-op for custom auth since tokens are provided via customAuth.getJwt callback.
|
|
37
|
-
* Unlike standard CDP auth, custom auth doesn't need token refresh or OAuth handling.
|
|
38
|
-
*/
|
|
39
|
-
async _doInitialize() {
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Custom auth always fetches fresh tokens, so never needs to "refresh" in the traditional sense.
|
|
43
|
-
*
|
|
44
|
-
* @returns Always false since custom auth doesn't use token refresh logic.
|
|
45
|
-
*/
|
|
46
|
-
shouldRefreshToken() {
|
|
47
|
-
return !1;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Custom auth doesn't use CDP's token refresh mechanism.
|
|
51
|
-
* Tokens are always provided fresh from the customAuth.getJwt callback.
|
|
52
|
-
* This method should never be called, but we override it as a defensive measure.
|
|
53
|
-
*/
|
|
54
|
-
async refreshAccessToken() {
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Custom auth provides fresh tokens on each request via customAuth.getJwt,
|
|
58
|
-
* so no scheduled refresh is needed. This method is a no-op for custom auth.
|
|
59
|
-
*/
|
|
60
|
-
scheduleTokenRefresh() {
|
|
61
|
-
this.cancelTokenRefresh();
|
|
62
|
-
}
|
|
1
|
+
import { AuthManager as r } from "./index.web38.js";
|
|
2
|
+
import { CustomAuthManager as o } from "./index.web52.js";
|
|
3
|
+
import "@coinbase/cdp-api-client";
|
|
4
|
+
import "viem";
|
|
5
|
+
import { getConfig as n } from "./index.web48.js";
|
|
6
|
+
function a(t) {
|
|
7
|
+
return n().customAuth?.getJwt ? new o(t) : new r(t);
|
|
63
8
|
}
|
|
64
9
|
export {
|
|
65
|
-
|
|
66
|
-
l as CustomAuthManager
|
|
10
|
+
a as createAuthManager
|
|
67
11
|
};
|
package/dist/web/index.web52.js
CHANGED
|
@@ -1,90 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
class
|
|
6
|
-
oauthFlowState = null;
|
|
7
|
-
oauthStateChangeCallbacks = [];
|
|
1
|
+
import { AuthManager as a } from "./index.web38.js";
|
|
2
|
+
import { getConfig as o } from "./index.web48.js";
|
|
3
|
+
import { CustomAuthError as s } from "./index.web39.js";
|
|
4
|
+
const n = 60 * 60 * 1e3;
|
|
5
|
+
class l extends a {
|
|
8
6
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
7
|
+
* Signs out the user, clearing all authentication state.
|
|
8
|
+
* For custom auth, we only clear local state without calling the CDP logout API,
|
|
9
|
+
* as authentication is managed by the external identity provider.
|
|
12
10
|
*/
|
|
13
|
-
async
|
|
14
|
-
this.
|
|
11
|
+
async signOut() {
|
|
12
|
+
await this.clearAuthState();
|
|
15
13
|
}
|
|
16
14
|
/**
|
|
17
|
-
*
|
|
15
|
+
* Gets the access token by calling the customAuth.getJwt callback.
|
|
16
|
+
* Returns null if the user is not signed in.
|
|
18
17
|
*
|
|
19
|
-
* @
|
|
18
|
+
* @returns The access token from the custom auth provider.
|
|
20
19
|
*/
|
|
21
|
-
async
|
|
22
|
-
|
|
20
|
+
async getToken() {
|
|
21
|
+
const e = o();
|
|
22
|
+
if (!e.customAuth)
|
|
23
|
+
return console.error("Custom auth configuration not found"), await this.clearAuthState(), null;
|
|
24
|
+
try {
|
|
25
|
+
const t = await e.customAuth.getJwt();
|
|
26
|
+
return t ? (this.authState && (this.authState.accessToken = t, this.authState.expiresAt = Date.now() + n), t) : (await this.clearAuthState(), null);
|
|
27
|
+
} catch (t) {
|
|
28
|
+
const r = new s(
|
|
29
|
+
t instanceof Error ? t.message : "Failed to get custom auth JWT"
|
|
30
|
+
);
|
|
31
|
+
return console.error(r), await this.clearAuthState(), null;
|
|
32
|
+
}
|
|
23
33
|
}
|
|
24
34
|
/**
|
|
25
|
-
*
|
|
35
|
+
* Internal async initialization logic for custom auth.
|
|
36
|
+
* No-op for custom auth since tokens are provided via customAuth.getJwt callback.
|
|
37
|
+
* Unlike standard CDP auth, custom auth doesn't need token refresh or OAuth handling.
|
|
26
38
|
*/
|
|
27
|
-
async
|
|
28
|
-
this.oauthFlowState = null, this.oauthStateChangeCallbacks.forEach((t) => t(null));
|
|
39
|
+
async _doInitialize() {
|
|
29
40
|
}
|
|
30
41
|
/**
|
|
31
|
-
*
|
|
42
|
+
* Custom auth always fetches fresh tokens, so never needs to "refresh" in the traditional sense.
|
|
32
43
|
*
|
|
33
|
-
* @returns
|
|
44
|
+
* @returns Always false since custom auth doesn't use token refresh logic.
|
|
34
45
|
*/
|
|
35
|
-
|
|
36
|
-
return
|
|
46
|
+
shouldRefreshToken() {
|
|
47
|
+
return !1;
|
|
37
48
|
}
|
|
38
49
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* @returns A promise that resolves when the OAuth code is handled.
|
|
43
|
-
* @throws An error if the URL is required and not provided.
|
|
50
|
+
* Custom auth doesn't use CDP's token refresh mechanism.
|
|
51
|
+
* Tokens are always provided fresh from the customAuth.getJwt callback.
|
|
52
|
+
* This method should never be called, but we override it as a defensive measure.
|
|
44
53
|
*/
|
|
45
|
-
async
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
providerType: e,
|
|
54
|
-
status: "error",
|
|
55
|
-
errorDescription: s ?? u,
|
|
56
|
-
code: r,
|
|
57
|
-
flowId: o,
|
|
58
|
-
error: s
|
|
59
|
-
});
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (!r || !e || !o)
|
|
63
|
-
return;
|
|
64
|
-
await this.setOAuthFlowState({
|
|
65
|
-
providerType: e,
|
|
66
|
-
status: "pending",
|
|
67
|
-
code: r,
|
|
68
|
-
flowId: o
|
|
69
|
-
}), await i({
|
|
70
|
-
code: r,
|
|
71
|
-
providerType: e,
|
|
72
|
-
flowId: o
|
|
73
|
-
}), await this.setOAuthFlowState({
|
|
74
|
-
providerType: e,
|
|
75
|
-
status: "success",
|
|
76
|
-
code: r,
|
|
77
|
-
flowId: o
|
|
78
|
-
});
|
|
79
|
-
} catch (a) {
|
|
80
|
-
const e = a instanceof Error ? a.message : "Unknown error";
|
|
81
|
-
await h().cleanupOAuthParams(), await this.setOAuthFlowState({
|
|
82
|
-
status: "error",
|
|
83
|
-
errorDescription: e
|
|
84
|
-
});
|
|
85
|
-
}
|
|
54
|
+
async refreshAccessToken() {
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Custom auth provides fresh tokens on each request via customAuth.getJwt,
|
|
58
|
+
* so no scheduled refresh is needed. This method is a no-op for custom auth.
|
|
59
|
+
*/
|
|
60
|
+
scheduleTokenRefresh() {
|
|
61
|
+
this.cancelTokenRefresh();
|
|
86
62
|
}
|
|
87
63
|
}
|
|
88
64
|
export {
|
|
89
|
-
|
|
65
|
+
n as CUSTOM_AUTH_REFRESH_BUFFER_MS,
|
|
66
|
+
l as CustomAuthManager
|
|
90
67
|
};
|