@getpara/core-sdk 1.5.0 → 1.6.0

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.
Binary file
Binary file
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": false
4
+ }
@@ -1,4 +1,4 @@
1
- import Client, { AuthMethod, BackupKitEmailProps, CurrentWalletIds, EmailTheme, WalletEntity, WalletType, WalletParams, OAuthMethod, OnRampPurchaseCreateParams, OnRampPurchase, TPregenIdentifierType, PregenIds, BiometricLocationHint, TelegramAuthResponse, VerifyTelegramRes, Auth, ExternalWalletLoginRes } from '@getpara/user-management-client';
1
+ import Client, { AuthMethod, BackupKitEmailProps, CurrentWalletIds, EmailTheme, WalletEntity, WalletType, WalletParams, OAuthMethod, OnRampPurchaseCreateParams, OnRampPurchase, TPregenIdentifierType, PregenIds, BiometricLocationHint, TelegramAuthResponse, VerifyTelegramRes, Auth, ExternalWalletLoginRes, AccountMetadata } from '@getpara/user-management-client';
2
2
  import type { pki as pkiType } from 'node-forge';
3
3
  import { Ctx, Environment, Theme, FullSignatureRes, ExternalWalletInfo, GetWebAuthUrlForLoginParams, AccountSetupResponse, LoginResponse, WalletFilters, WalletTypeProp, Wallet, SupportedWalletTypes, PortalUrlOptions, ConstructorOpts, RecoveryStatus } from './types/index.js';
4
4
  import { PlatformUtils } from './PlatformUtils.js';
@@ -269,6 +269,12 @@ export declare abstract class ParaCore {
269
269
  sessionLookupId?: string;
270
270
  newDeviceSessionLookupId?: string;
271
271
  }): Promise<void>;
272
+ /**
273
+ * Fetches the most recent OAuth account metadata for the signed-in user.
274
+ * If applicable, this will include the user's most recent metadata from their Google, Apple, Facebook, X, Discord, Farcaster, or Telegram account, the last time they signed in to your app.
275
+ * @returns {Promise<AccountMetadata>} the user's account metadata.
276
+ */
277
+ getAccountMetadata(): Promise<AccountMetadata>;
272
278
  /**
273
279
  * The prefix for the instance's managed Cosmos wallets. Defaults to `'cosmos'`.
274
280
  */
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { BackupKitEmailProps, TPregenIdentifierType, WalletType } from '@getpara/user-management-client';
3
4
  import { Ctx, PopupType, SignatureRes } from './types/index.js';
4
5
  import { StorageUtils } from './StorageUtils.js';
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  export declare class KeyContainer {
3
4
  walletId: string;
4
5
  keyshare: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/core-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "@celo/utils": "^8.0.0",
11
11
  "@cosmjs/encoding": "^0.32.4",
12
- "@getpara/user-management-client": "1.5.0",
12
+ "@getpara/user-management-client": "1.6.0",
13
13
  "@noble/hashes": "^1.5.0",
14
14
  "base64url": "^3.0.1",
15
15
  "ethereumjs-util": "7.1.5",
@@ -40,5 +40,5 @@
40
40
  "require": "./dist/cjs/index.js"
41
41
  }
42
42
  },
43
- "gitHead": "0e3c1401b4f1da60b288cdde7695077c9bcbc48f"
43
+ "gitHead": "2dd6c8ea893d72d693804e5c5b0856d2ea6c3a7a"
44
44
  }