@internxt/sdk 1.11.26 → 1.12.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.
@@ -1,7 +1,7 @@
1
1
  import { ApiSecurity, ApiUrl, AppDetails } from '../shared';
2
2
  import { TeamsSettings } from '../shared/types/teams';
3
3
  import { UserSettings, UUID } from '../shared/types/userSettings';
4
- import { ChangePasswordWithLinkPayload, CryptoProvider, Keys, LoginDetails, PrivateKeys, RegisterDetails, RegisterOpaqueDetails, RegisterPreCreatedUser, RegisterPreCreatedUserResponse, SecurityDetails, Token, TwoFactorAuthQR } from './types';
4
+ import { ChangePasswordWithLinkPayload, CryptoProvider, Keys, LoginDetails, PrivateKeys, RecoveryKeys, RegisterDetails, RegisterOpaqueDetails, RegisterPreCreatedUser, RegisterPreCreatedUserResponse, SecurityDetails, Token, TwoFactorAuthQR } from './types';
5
5
  import { paths } from '../schema';
6
6
  export * from './types';
7
7
  export declare class Auth {
@@ -208,7 +208,7 @@ export declare class Auth {
208
208
  * @param mnemonic
209
209
  * @param keys
210
210
  */
211
- changePasswordWithLinkV2(token: string | undefined, password: string, salt: string, mnemonic: string, keys?: PrivateKeys): Promise<void>;
211
+ changePasswordWithLinkV2(token: string | undefined, password: string, salt: string, mnemonic: string, keys?: RecoveryKeys): Promise<void>;
212
212
  legacyRecoverAccount({ token, encryptedPassword, encryptedSalt, encryptedMnemonic, eccEncryptedMnemonic, kyberEncryptedMnemonic, keys, }: ChangePasswordWithLinkPayload): Promise<void>;
213
213
  /**
214
214
  * Reset account with token
@@ -555,7 +555,8 @@ var Auth = /** @class */ (function () {
555
555
  password: password,
556
556
  salt: salt,
557
557
  mnemonic: mnemonic,
558
- privateKeys: keys,
558
+ privateKeys: keys === null || keys === void 0 ? void 0 : keys.private,
559
+ publicKeys: keys === null || keys === void 0 ? void 0 : keys.public,
559
560
  }, this.basicHeaders());
560
561
  };
561
562
  Auth.prototype.legacyRecoverAccount = function (_a) {
@@ -86,6 +86,14 @@ export interface PrivateKeys {
86
86
  ecc?: string;
87
87
  kyber?: string;
88
88
  }
89
+ export interface PublicKeys {
90
+ ecc?: string;
91
+ kyber?: string;
92
+ }
93
+ export interface RecoveryKeys {
94
+ private?: PrivateKeys;
95
+ public?: PublicKeys;
96
+ }
89
97
  export interface PrivateKeysExtended {
90
98
  ecc: {
91
99
  public: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@internxt/sdk",
3
3
  "author": "Internxt <hello@internxt.com>",
4
- "version": "1.11.26",
4
+ "version": "1.12.0",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",