@getpara/user-management-client 2.23.0 → 2.25.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.
@@ -468,6 +468,10 @@ class Client {
468
468
  });
469
469
  return res.data;
470
470
  });
471
+ this.requestFaucet = (_0) => __async(this, [_0], function* ({ walletId, chain }) {
472
+ const res = yield this.baseRequest.post("/faucet", { walletId, chain });
473
+ return res.data;
474
+ });
471
475
  this.issueJwt = (..._0) => __async(this, [..._0], function* ({ keyIndex = 0 } = {}) {
472
476
  const res = yield this.baseRequest.post(`/auth/jwt`, { keyIndex });
473
477
  return res.data;
@@ -396,6 +396,10 @@ class Client {
396
396
  });
397
397
  return res.data;
398
398
  });
399
+ this.requestFaucet = (_0) => __async(this, [_0], function* ({ walletId, chain }) {
400
+ const res = yield this.baseRequest.post("/faucet", { walletId, chain });
401
+ return res.data;
402
+ });
399
403
  this.issueJwt = (..._0) => __async(this, [..._0], function* ({ keyIndex = 0 } = {}) {
400
404
  const res = yield this.baseRequest.post(`/auth/jwt`, { keyIndex });
401
405
  return res.data;
@@ -89,6 +89,17 @@ interface createWalletRes {
89
89
  interface GetWalletBalanceRes {
90
90
  balance: string;
91
91
  }
92
+ interface RequestFaucetBody {
93
+ walletId: string;
94
+ chain?: string;
95
+ }
96
+ interface RequestFaucetRes {
97
+ transactionHash: string;
98
+ amount: string;
99
+ chain: string;
100
+ walletId: string;
101
+ address: string;
102
+ }
92
103
  interface createPregenWalletBody {
93
104
  pregenIdentifier: string;
94
105
  pregenIdentifierType: TPregenIdentifierType;
@@ -437,6 +448,7 @@ declare class Client {
437
448
  walletId: string;
438
449
  rpcUrl?: string;
439
450
  }) => Promise<GetWalletBalanceRes>;
451
+ requestFaucet: ({ walletId, chain }: RequestFaucetBody) => Promise<RequestFaucetRes>;
440
452
  issueJwt: ({ keyIndex }?: IssueJwtParams) => Promise<IssueJwtResponse>;
441
453
  getProfileBalance: ({ config, wallets, refetch, }: GetProfileBalanceParams) => Promise<{
442
454
  balance: ProfileBalance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/user-management-client",
3
- "version": "2.23.0",
3
+ "version": "2.25.0",
4
4
  "dependencies": {
5
5
  "@getpara/shared": "^1.14.0",
6
6
  "axios": "^1.8.4",
@@ -21,7 +21,7 @@
21
21
  "dist",
22
22
  "package.json"
23
23
  ],
24
- "gitHead": "6e7d16e0f5ac1d63ba89f023919dee5c9eddda47",
24
+ "gitHead": "f84342134a0634491c88b9c5a2117121978db6bf",
25
25
  "main": "dist/cjs/index.js",
26
26
  "module": "dist/esm/index.js",
27
27
  "scripts": {