@getpara/user-management-client 2.30.0 → 2.32.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.
@@ -354,19 +354,17 @@ class Client {
354
354
  const res = yield this.baseRequest.post(`/users/${userId}/wallets`, body);
355
355
  return res.data;
356
356
  });
357
- /** @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
357
+ // POST /wallets/pregen
358
358
  this.createPregenWallet = (body) => __async(this, null, function* () {
359
359
  const res = yield this.baseRequest.post(`/wallets/pregen`, body);
360
360
  return res.data;
361
361
  });
362
- /** @deprecated Use the REST API (`GET /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
363
362
  this.getPregenWallets = (pregenIds, isPortal = false, userId) => __async(this, null, function* () {
364
363
  const res = yield this.baseRequest.get("/wallets/pregen", {
365
364
  params: { ids: pregenIds, expand: isPortal, userId }
366
365
  });
367
366
  return res.data;
368
367
  });
369
- /** @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
370
368
  this.claimPregenWallets = (body) => __async(this, null, function* () {
371
369
  const res = yield this.baseRequest.post(`/wallets/pregen/claim`, body);
372
370
  return res.data;
@@ -388,7 +386,7 @@ class Client {
388
386
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/refresh`, body);
389
387
  return res;
390
388
  });
391
- /** @deprecated Use the REST API (`PATCH /v1/wallets/:id`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
389
+ // PATCH /wallets/pregen/:walletId
392
390
  this.updatePregenWallet = (walletId, body) => __async(this, null, function* () {
393
391
  const res = yield this.baseRequest.patch(`/wallets/pregen/${walletId}`, body);
394
392
  return res.data;
@@ -284,19 +284,17 @@ class Client {
284
284
  const res = yield this.baseRequest.post(`/users/${userId}/wallets`, body);
285
285
  return res.data;
286
286
  });
287
- /** @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
287
+ // POST /wallets/pregen
288
288
  this.createPregenWallet = (body) => __async(this, null, function* () {
289
289
  const res = yield this.baseRequest.post(`/wallets/pregen`, body);
290
290
  return res.data;
291
291
  });
292
- /** @deprecated Use the REST API (`GET /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
293
292
  this.getPregenWallets = (pregenIds, isPortal = false, userId) => __async(this, null, function* () {
294
293
  const res = yield this.baseRequest.get("/wallets/pregen", {
295
294
  params: { ids: pregenIds, expand: isPortal, userId }
296
295
  });
297
296
  return res.data;
298
297
  });
299
- /** @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
300
298
  this.claimPregenWallets = (body) => __async(this, null, function* () {
301
299
  const res = yield this.baseRequest.post(`/wallets/pregen/claim`, body);
302
300
  return res.data;
@@ -318,7 +316,7 @@ class Client {
318
316
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/refresh`, body);
319
317
  return res;
320
318
  });
321
- /** @deprecated Use the REST API (`PATCH /v1/wallets/:id`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
319
+ // PATCH /wallets/pregen/:walletId
322
320
  this.updatePregenWallet = (walletId, body) => __async(this, null, function* () {
323
321
  const res = yield this.baseRequest.patch(`/wallets/pregen/${walletId}`, body);
324
322
  return res.data;
@@ -257,20 +257,16 @@ declare class Client {
257
257
  getSessionChallenge: (userId: string) => Promise<any>;
258
258
  verifySessionChallenge: (userId: string, body: verifySessionChallengeBody) => Promise<any>;
259
259
  createWallet: (userId: string, body?: createWalletBody) => Promise<createWalletRes>;
260
- /** @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
261
260
  createPregenWallet: (body?: createPregenWalletBody) => Promise<createWalletRes>;
262
- /** @deprecated Use the REST API (`GET /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
263
261
  getPregenWallets: (pregenIds: PregenIds, isPortal?: boolean, userId?: string) => Promise<{
264
262
  wallets: WalletEntity[];
265
263
  }>;
266
- /** @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
267
264
  claimPregenWallets: (body?: claimPreGenWalletsBody) => Promise<{
268
265
  walletIds: string[];
269
266
  }>;
270
267
  sendTransaction: (userId: string, walletId: string, body: sendTransactionBody) => Promise<any>;
271
268
  signTransaction: (userId: string, walletId: string, body: signTransactionBody) => Promise<any>;
272
269
  refreshKeys: (userId: string, walletId: string, oldPartnerId?: string, newPartnerId?: string, keyShareProtocolId?: string) => Promise<any>;
273
- /** @deprecated Use the REST API (`PATCH /v1/wallets/:id`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
274
270
  updatePregenWallet: (walletId: string, body: updatePregenWalletBody) => Promise<any>;
275
271
  getWallets: (userId: string, includePartnerData?: boolean) => Promise<AxiosResponse<GetWalletsRes, any>>;
276
272
  getAllWallets: (userId: string) => Promise<AxiosResponse<GetWalletsRes, any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/user-management-client",
3
- "version": "2.30.0",
3
+ "version": "2.32.0",
4
4
  "dependencies": {
5
5
  "@getpara/shared": "^1.17.0",
6
6
  "axios": "^1.8.4",
@@ -21,7 +21,7 @@
21
21
  "dist",
22
22
  "package.json"
23
23
  ],
24
- "gitHead": "0651d1b4bc47de9bfc91939cc5c887a44dd9b2e4",
24
+ "gitHead": "35634005629d40f7c4423127799c63d3f73b825c",
25
25
  "main": "dist/cjs/index.js",
26
26
  "module": "dist/esm/index.js",
27
27
  "scripts": {