@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.
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +2 -1
- package/dist/auth/types.d.ts +8 -0
- package/package.json +1 -1
package/dist/auth/index.d.ts
CHANGED
|
@@ -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?:
|
|
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
|
package/dist/auth/index.js
CHANGED
|
@@ -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) {
|
package/dist/auth/types.d.ts
CHANGED
|
@@ -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;
|