@getpara/core-sdk 2.0.0-alpha.15 → 2.0.0-alpha.16

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.
@@ -1495,15 +1495,13 @@ const _ParaCore = class _ParaCore {
1495
1495
  });
1496
1496
  }
1497
1497
  /**
1498
- * Initiates a Farcaster login attempt and return the URI for the user to connect.
1498
+ * Initiates a Farcaster login attempt and returns the URL for the user to connect.
1499
1499
  * You can create a QR code with this URI that works with Farcaster's mobile app.
1500
1500
  * @return {string} the Farcaster connect URI
1501
1501
  */
1502
1502
  getFarcasterConnectUri() {
1503
- return __async(this, null, function* () {
1504
- const {
1505
- data: { connect_uri: connectUri }
1506
- } = yield this.ctx.client.initializeFarcasterLogin();
1503
+ return __async(this, arguments, function* ({ appScheme } = {}) {
1504
+ const { connect_uri: connectUri } = yield this.ctx.client.initializeFarcasterLogin({ appScheme });
1507
1505
  return connectUri;
1508
1506
  });
1509
1507
  }
@@ -1566,13 +1564,6 @@ const _ParaCore = class _ParaCore {
1566
1564
  return __async(this, null, function* () {
1567
1565
  var _j = _i, { method, deeplinkUrl } = _j, params = __objRest(_j, ["method", "deeplinkUrl"]);
1568
1566
  var _a;
1569
- if (deeplinkUrl) {
1570
- try {
1571
- new URL(deeplinkUrl);
1572
- } catch (e) {
1573
- throw new Error("Invalid deeplink URL");
1574
- }
1575
- }
1576
1567
  const sessionLookupId = (_a = params.sessionLookupId) != null ? _a : yield __privateMethod(this, _ParaCore_instances, prepareLogin_fn).call(this);
1577
1568
  return (0, import_utils2.constructUrl)({
1578
1569
  base: (0, import_userManagementClient.getBaseOAuthUrl)(this.ctx.env),
@@ -39,7 +39,7 @@ __export(constants_exports, {
39
39
  SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
40
40
  });
41
41
  module.exports = __toCommonJS(constants_exports);
42
- const PARA_CORE_VERSION = "2.0.0-alpha.13";
42
+ const PARA_CORE_VERSION = "2.0.0-alpha.16";
43
43
  const PREFIX = "@CAPSULE/";
44
44
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
45
45
  const LOCAL_STORAGE_EMAIL = `${PREFIX}e-mail`;
@@ -1458,15 +1458,13 @@ const _ParaCore = class _ParaCore {
1458
1458
  });
1459
1459
  }
1460
1460
  /**
1461
- * Initiates a Farcaster login attempt and return the URI for the user to connect.
1461
+ * Initiates a Farcaster login attempt and returns the URL for the user to connect.
1462
1462
  * You can create a QR code with this URI that works with Farcaster's mobile app.
1463
1463
  * @return {string} the Farcaster connect URI
1464
1464
  */
1465
1465
  getFarcasterConnectUri() {
1466
- return __async(this, null, function* () {
1467
- const {
1468
- data: { connect_uri: connectUri }
1469
- } = yield this.ctx.client.initializeFarcasterLogin();
1466
+ return __async(this, arguments, function* ({ appScheme } = {}) {
1467
+ const { connect_uri: connectUri } = yield this.ctx.client.initializeFarcasterLogin({ appScheme });
1470
1468
  return connectUri;
1471
1469
  });
1472
1470
  }
@@ -1529,13 +1527,6 @@ const _ParaCore = class _ParaCore {
1529
1527
  return __async(this, null, function* () {
1530
1528
  var _j = _i, { method, deeplinkUrl } = _j, params = __objRest(_j, ["method", "deeplinkUrl"]);
1531
1529
  var _a;
1532
- if (deeplinkUrl) {
1533
- try {
1534
- new URL(deeplinkUrl);
1535
- } catch (e) {
1536
- throw new Error("Invalid deeplink URL");
1537
- }
1538
- }
1539
1530
  const sessionLookupId = (_a = params.sessionLookupId) != null ? _a : yield __privateMethod(this, _ParaCore_instances, prepareLogin_fn).call(this);
1540
1531
  return constructUrl({
1541
1532
  base: getBaseOAuthUrl(this.ctx.env),
@@ -1,5 +1,5 @@
1
1
  import "./chunk-7B52C2XE.js";
2
- const PARA_CORE_VERSION = "2.0.0-alpha.13";
2
+ const PARA_CORE_VERSION = "2.0.0-alpha.16";
3
3
  const PREFIX = "@CAPSULE/";
4
4
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
5
5
  const LOCAL_STORAGE_EMAIL = `${PREFIX}e-mail`;
@@ -397,11 +397,13 @@ export declare abstract class ParaCore implements CoreInterface {
397
397
  waitForSignup({ isCanceled, onCancel, onPoll, }: CoreMethodParams<'waitForSignup'>): CoreMethodResponse<'waitForSignup'>;
398
398
  waitForWalletCreation({ isCanceled, onCancel, }?: CoreMethodParams<'waitForWalletCreation'>): CoreMethodResponse<'waitForWalletCreation'>;
399
399
  /**
400
- * Initiates a Farcaster login attempt and return the URI for the user to connect.
400
+ * Initiates a Farcaster login attempt and returns the URL for the user to connect.
401
401
  * You can create a QR code with this URI that works with Farcaster's mobile app.
402
402
  * @return {string} the Farcaster connect URI
403
403
  */
404
- getFarcasterConnectUri(): CoreMethodResponse<'getFarcasterConnectUri'>;
404
+ getFarcasterConnectUri({ appScheme }?: {
405
+ appScheme?: string;
406
+ }): CoreMethodResponse<'getFarcasterConnectUri'>;
405
407
  /**
406
408
  * Awaits the response from a user's attempt to log in with Farcaster.
407
409
  * If successful, this returns the user's Farcaster username and profile picture and indicates whether the user already exists.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/core-sdk",
3
- "version": "2.0.0-alpha.15",
3
+ "version": "2.0.0-alpha.16",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "@celo/utils": "^8.0.2",
11
11
  "@cosmjs/encoding": "^0.32.4",
12
12
  "@ethereumjs/util": "^9.1.0",
13
- "@getpara/user-management-client": "2.0.0-alpha.15",
13
+ "@getpara/user-management-client": "2.0.0-alpha.16",
14
14
  "@noble/hashes": "^1.5.0",
15
15
  "base64url": "^3.0.1",
16
16
  "libphonenumber-js": "1.11.2",
@@ -41,5 +41,5 @@
41
41
  "require": "./dist/cjs/index.js"
42
42
  }
43
43
  },
44
- "gitHead": "f837a1584f2a0b5d61c9b7a91cd74a68c01d5161"
44
+ "gitHead": "84eb1a14fa8918c449ae4b163fe173d34688cdcd"
45
45
  }