@getpara/server-sdk 1.4.4 → 1.5.1

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
@@ -1,5 +1,20 @@
1
- import ParaCore, { PlatformUtils, ConstructorOpts, Environment } from '@getpara/core-sdk';
1
+ import ParaCore, { PlatformUtils, ConstructorOpts, Environment, TPregenIdentifierType } from '@getpara/core-sdk';
2
2
  export declare class Para extends ParaCore {
3
3
  constructor(env: Environment, apiKey?: string, opts?: ConstructorOpts);
4
4
  protected getPlatformUtils(): PlatformUtils;
5
+ /**
6
+ * Claims a pregenerated wallet.
7
+ *
8
+ * NOTE: This function is only available on the client side.
9
+ * When called from the server SDK, it throws an error.
10
+ *
11
+ * @param {Object} opts the options object.
12
+ * @param {string} opts.pregenIdentifier - the identifier of the user claiming the wallet.
13
+ * @param {TPregenIdentifierType} opts.pregenIdentifierType - the type of the identifier.
14
+ * @returns {Promise<string | undefined>} A promise that rejects with an error.
15
+ */
16
+ claimPregenWallets({}?: {
17
+ pregenIdentifier?: string;
18
+ pregenIdentifierType?: TPregenIdentifierType;
19
+ }): Promise<string | undefined>;
5
20
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import type { Ctx, SignatureRes, PlatformUtils, TPregenIdentifierType, WalletType } from '@getpara/core-sdk';
3
4
  import { BackupKitEmailProps } from '@getpara/user-management-client';
4
5
  import { ServerLocalStorage } from './ServerLocalStorage.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/server-sdk",
3
- "version": "1.4.4",
3
+ "version": "1.5.1",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -9,8 +9,8 @@
9
9
  "wasm_exec.js"
10
10
  ],
11
11
  "dependencies": {
12
- "@getpara/core-sdk": "1.4.4",
13
- "@getpara/user-management-client": "1.4.4",
12
+ "@getpara/core-sdk": "1.5.1",
13
+ "@getpara/user-management-client": "1.5.1",
14
14
  "@sentry/node": "^9.1.0",
15
15
  "uuid": "^9.0.1",
16
16
  "ws": "^8.14.2"
@@ -31,5 +31,5 @@
31
31
  "dist",
32
32
  "package.json"
33
33
  ],
34
- "gitHead": "9a4086c4b352fff2143d3b931d288c5ebaf127fb"
34
+ "gitHead": "f77e0f5e162a1672219b01dbf7c06a3baadd2f35"
35
35
  }