@getpara/user-management-client 2.0.0-alpha.68 → 2.0.0-alpha.69

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.
@@ -499,8 +499,11 @@ class Client {
499
499
  * Persist encrypted key shares to the enclave
500
500
  * @param encryptedPayload JSON string containing the encrypted ECIES payload
501
501
  */
502
- this.persistEnclaveShares = (encryptedPayload) => __async(this, null, function* () {
503
- const body = { encryptedPayload };
502
+ this.persistEnclaveShares = (_0) => __async(this, [_0], function* ({
503
+ encryptedPayload,
504
+ hasNoShares
505
+ }) {
506
+ const body = { encryptedPayload, hasNoShares };
504
507
  const res = yield this.baseRequest.post("/enclave/key-shares", body);
505
508
  return res.data;
506
509
  });
@@ -422,8 +422,11 @@ class Client {
422
422
  * Persist encrypted key shares to the enclave
423
423
  * @param encryptedPayload JSON string containing the encrypted ECIES payload
424
424
  */
425
- this.persistEnclaveShares = (encryptedPayload) => __async(this, null, function* () {
426
- const body = { encryptedPayload };
425
+ this.persistEnclaveShares = (_0) => __async(this, [_0], function* ({
426
+ encryptedPayload,
427
+ hasNoShares
428
+ }) {
429
+ const body = { encryptedPayload, hasNoShares };
427
430
  const res = yield this.baseRequest.post("/enclave/key-shares", body);
428
431
  return res.data;
429
432
  });
@@ -459,7 +459,10 @@ declare class Client {
459
459
  * Persist encrypted key shares to the enclave
460
460
  * @param encryptedPayload JSON string containing the encrypted ECIES payload
461
461
  */
462
- persistEnclaveShares: (encryptedPayload: string) => Promise<{
462
+ persistEnclaveShares: ({ encryptedPayload, hasNoShares, }: {
463
+ encryptedPayload?: string;
464
+ hasNoShares?: boolean;
465
+ }) => Promise<{
463
466
  payload: any;
464
467
  }>;
465
468
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/user-management-client",
3
- "version": "2.0.0-alpha.68",
3
+ "version": "2.0.0-alpha.69",
4
4
  "dependencies": {
5
5
  "@getpara/shared": "1.5.0",
6
6
  "axios": "^1.8.4",
@@ -20,7 +20,7 @@
20
20
  "dist",
21
21
  "package.json"
22
22
  ],
23
- "gitHead": "98955203281606201609bb4674f5984acb63d3bf",
23
+ "gitHead": "956310e0ff58cc8e2736625d221245ab68304855",
24
24
  "main": "dist/cjs/index.js",
25
25
  "module": "dist/esm/index.js",
26
26
  "scripts": {