@getpara/core-sdk 2.0.0-alpha.27 → 2.0.0-alpha.28

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.
@@ -1704,7 +1704,7 @@ const _ParaCore = class _ParaCore {
1704
1704
  return __async(this, null, function* () {
1705
1705
  var _l = _k, {
1706
1706
  method,
1707
- deeplinkUrl,
1707
+ appScheme,
1708
1708
  isCanceled = () => false,
1709
1709
  onCancel,
1710
1710
  onPoll,
@@ -1712,7 +1712,7 @@ const _ParaCore = class _ParaCore {
1712
1712
  isLinkAccount
1713
1713
  } = _l, urlOptions = __objRest(_l, [
1714
1714
  "method",
1715
- "deeplinkUrl",
1715
+ "appScheme",
1716
1716
  "isCanceled",
1717
1717
  "onCancel",
1718
1718
  "onPoll",
@@ -1727,7 +1727,7 @@ const _ParaCore = class _ParaCore {
1727
1727
  } else {
1728
1728
  sessionLookupId = yield __privateMethod(this, _ParaCore_instances, prepareLogin_fn).call(this);
1729
1729
  }
1730
- const oAuthUrl = yield __privateMethod(this, _ParaCore_instances, getOAuthUrl_fn).call(this, { method, deeplinkUrl, sessionLookupId, accountLinkInProgress });
1730
+ const oAuthUrl = yield __privateMethod(this, _ParaCore_instances, getOAuthUrl_fn).call(this, { method, appScheme, sessionLookupId, accountLinkInProgress });
1731
1731
  onOAuthUrl(oAuthUrl);
1732
1732
  } else {
1733
1733
  ({ sessionLookupId } = yield this.touchSession());
@@ -3142,11 +3142,11 @@ getOAuthUrl_fn = function(_i) {
3142
3142
  return __async(this, null, function* () {
3143
3143
  var _j = _i, {
3144
3144
  method,
3145
- deeplinkUrl,
3145
+ appScheme,
3146
3146
  accountLinkInProgress
3147
3147
  } = _j, params = __objRest(_j, [
3148
3148
  "method",
3149
- "deeplinkUrl",
3149
+ "appScheme",
3150
3150
  "accountLinkInProgress"
3151
3151
  ]);
3152
3152
  var _a;
@@ -3157,7 +3157,7 @@ getOAuthUrl_fn = function(_i) {
3157
3157
  params: __spreadValues({
3158
3158
  apiKey: this.ctx.apiKey,
3159
3159
  sessionLookupId,
3160
- deeplinkUrl
3160
+ appScheme
3161
3161
  }, accountLinkInProgress ? {
3162
3162
  linkedAccountId: this.accountLinkInProgress.id
3163
3163
  } : {})
@@ -40,7 +40,7 @@ __export(constants_exports, {
40
40
  SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
41
41
  });
42
42
  module.exports = __toCommonJS(constants_exports);
43
- const PARA_CORE_VERSION = "2.0.0-alpha.27";
43
+ const PARA_CORE_VERSION = "2.0.0-alpha.28";
44
44
  const PREFIX = "@CAPSULE/";
45
45
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
46
46
  const LOCAL_STORAGE_EMAIL = `${PREFIX}e-mail`;
@@ -1670,7 +1670,7 @@ const _ParaCore = class _ParaCore {
1670
1670
  return __async(this, null, function* () {
1671
1671
  var _l = _k, {
1672
1672
  method,
1673
- deeplinkUrl,
1673
+ appScheme,
1674
1674
  isCanceled = () => false,
1675
1675
  onCancel,
1676
1676
  onPoll,
@@ -1678,7 +1678,7 @@ const _ParaCore = class _ParaCore {
1678
1678
  isLinkAccount
1679
1679
  } = _l, urlOptions = __objRest(_l, [
1680
1680
  "method",
1681
- "deeplinkUrl",
1681
+ "appScheme",
1682
1682
  "isCanceled",
1683
1683
  "onCancel",
1684
1684
  "onPoll",
@@ -1693,7 +1693,7 @@ const _ParaCore = class _ParaCore {
1693
1693
  } else {
1694
1694
  sessionLookupId = yield __privateMethod(this, _ParaCore_instances, prepareLogin_fn).call(this);
1695
1695
  }
1696
- const oAuthUrl = yield __privateMethod(this, _ParaCore_instances, getOAuthUrl_fn).call(this, { method, deeplinkUrl, sessionLookupId, accountLinkInProgress });
1696
+ const oAuthUrl = yield __privateMethod(this, _ParaCore_instances, getOAuthUrl_fn).call(this, { method, appScheme, sessionLookupId, accountLinkInProgress });
1697
1697
  onOAuthUrl(oAuthUrl);
1698
1698
  } else {
1699
1699
  ({ sessionLookupId } = yield this.touchSession());
@@ -3108,11 +3108,11 @@ getOAuthUrl_fn = function(_i) {
3108
3108
  return __async(this, null, function* () {
3109
3109
  var _j = _i, {
3110
3110
  method,
3111
- deeplinkUrl,
3111
+ appScheme,
3112
3112
  accountLinkInProgress
3113
3113
  } = _j, params = __objRest(_j, [
3114
3114
  "method",
3115
- "deeplinkUrl",
3115
+ "appScheme",
3116
3116
  "accountLinkInProgress"
3117
3117
  ]);
3118
3118
  var _a;
@@ -3123,7 +3123,7 @@ getOAuthUrl_fn = function(_i) {
3123
3123
  params: __spreadValues({
3124
3124
  apiKey: this.ctx.apiKey,
3125
3125
  sessionLookupId,
3126
- deeplinkUrl
3126
+ appScheme
3127
3127
  }, accountLinkInProgress ? {
3128
3128
  linkedAccountId: this.accountLinkInProgress.id
3129
3129
  } : {})
@@ -1,5 +1,5 @@
1
1
  import "./chunk-7B52C2XE.js";
2
- const PARA_CORE_VERSION = "2.0.0-alpha.27";
2
+ const PARA_CORE_VERSION = "2.0.0-alpha.28";
3
3
  const PREFIX = "@CAPSULE/";
4
4
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
5
5
  const LOCAL_STORAGE_EMAIL = `${PREFIX}e-mail`;
@@ -308,7 +308,7 @@ export declare abstract class ParaCore implements CoreInterface {
308
308
  */
309
309
  findWalletByAddress(address: string, filter?: WalletFilters | undefined): any;
310
310
  findWallet(idOrAddress?: string, overrideType?: TWalletType, filter?: WalletFilters): Omit<Wallet, 'signer'> | undefined;
311
- get availableWallets(): Pick<Wallet, 'id' | 'type' | 'name' | 'address' | 'isExternal' | 'externalProviderId'>[];
311
+ get availableWallets(): Pick<Wallet, 'id' | 'type' | 'name' | 'address' | 'isExternal' | 'externalProviderId' | 'isExternalConnectionOnly'>[];
312
312
  /**
313
313
  * Retrieves all usable wallets with the provided type (`'EVM' | 'COSMOS' | 'SOLANA'`)
314
314
  * @param {string} type the wallet type to filter by.
@@ -98,9 +98,9 @@ export type OAuthUrlParams = {
98
98
  */
99
99
  method: Exclude<TOAuthMethod, 'TELEGRAM' | 'FARCASTER'>;
100
100
  /**
101
- * The deeplink URL to redirect to after OAuth is complete.
101
+ * The app scheme to redirect to after OAuth is complete.
102
102
  */
103
- deeplinkUrl?: string;
103
+ appScheme?: string;
104
104
  };
105
105
  export type OAuthParams = OAuthUrlParams & PollParams & {
106
106
  /**
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@getpara/core-sdk",
3
- "version": "2.0.0-alpha.27",
3
+ "version": "2.0.0-alpha.28",
4
4
  "dependencies": {
5
5
  "@celo/utils": "^8.0.2",
6
6
  "@cosmjs/encoding": "^0.32.4",
7
7
  "@ethereumjs/util": "^9.1.0",
8
- "@getpara/user-management-client": "2.0.0-alpha.27",
8
+ "@getpara/user-management-client": "2.0.0-alpha.28",
9
9
  "@noble/hashes": "^1.5.0",
10
10
  "base64url": "^3.0.1",
11
11
  "libphonenumber-js": "^1.11.7",
@@ -27,7 +27,7 @@
27
27
  "dist",
28
28
  "package.json"
29
29
  ],
30
- "gitHead": "a54f63445995abd13220eda3d63809728e4b5f7e",
30
+ "gitHead": "1da9f8663f58015a70686f45741fb76ddc671ac7",
31
31
  "main": "dist/cjs/index.js",
32
32
  "module": "dist/esm/index.js",
33
33
  "scripts": {