@internxt/sdk 1.11.23 → 1.11.25
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
CHANGED
|
@@ -87,7 +87,7 @@ export declare class Auth {
|
|
|
87
87
|
* @param tfa - The two factor auth code.
|
|
88
88
|
* @returns The opaque login response.
|
|
89
89
|
*/
|
|
90
|
-
loginOpaqueStart(email: string, startLoginRequest: string
|
|
90
|
+
loginOpaqueStart(email: string, startLoginRequest: string): Promise<{
|
|
91
91
|
loginResponse: string;
|
|
92
92
|
}>;
|
|
93
93
|
/**
|
|
@@ -95,9 +95,10 @@ export declare class Auth {
|
|
|
95
95
|
* @param email
|
|
96
96
|
* @param finishLoginRequest
|
|
97
97
|
*/
|
|
98
|
-
loginOpaqueFinish(email: string, finishLoginRequest: string): Promise<{
|
|
98
|
+
loginOpaqueFinish(email: string, finishLoginRequest: string, tfa: string | undefined): Promise<{
|
|
99
99
|
sessionID: string;
|
|
100
100
|
user: UserSettings;
|
|
101
|
+
token: string;
|
|
101
102
|
}>;
|
|
102
103
|
/**
|
|
103
104
|
* Tries to log in a user given its login details
|
package/dist/auth/index.js
CHANGED
|
@@ -234,13 +234,12 @@ var Auth = /** @class */ (function () {
|
|
|
234
234
|
* @param tfa - The two factor auth code.
|
|
235
235
|
* @returns The opaque login response.
|
|
236
236
|
*/
|
|
237
|
-
Auth.prototype.loginOpaqueStart = function (email, startLoginRequest
|
|
237
|
+
Auth.prototype.loginOpaqueStart = function (email, startLoginRequest) {
|
|
238
238
|
return __awaiter(this, void 0, void 0, function () {
|
|
239
239
|
return __generator(this, function (_a) {
|
|
240
240
|
return [2 /*return*/, this.client.post('/auth/login-opaque/start', {
|
|
241
241
|
email: email,
|
|
242
242
|
startLoginRequest: startLoginRequest,
|
|
243
|
-
tfa: tfa,
|
|
244
243
|
}, this.basicHeaders())];
|
|
245
244
|
});
|
|
246
245
|
});
|
|
@@ -250,12 +249,13 @@ var Auth = /** @class */ (function () {
|
|
|
250
249
|
* @param email
|
|
251
250
|
* @param finishLoginRequest
|
|
252
251
|
*/
|
|
253
|
-
Auth.prototype.loginOpaqueFinish = function (email, finishLoginRequest) {
|
|
252
|
+
Auth.prototype.loginOpaqueFinish = function (email, finishLoginRequest, tfa) {
|
|
254
253
|
return __awaiter(this, void 0, void 0, function () {
|
|
255
254
|
return __generator(this, function (_a) {
|
|
256
255
|
return [2 /*return*/, this.client.post('/auth/login-opaque/finish', {
|
|
257
256
|
email: email,
|
|
258
257
|
finishLoginRequest: finishLoginRequest,
|
|
258
|
+
tfa: tfa,
|
|
259
259
|
}, this.basicHeaders())];
|
|
260
260
|
});
|
|
261
261
|
});
|
|
@@ -3,7 +3,7 @@ import { ApiSecurity, ApiUrl, AppDetails } from '../../shared';
|
|
|
3
3
|
import { RequestCanceler } from '../../shared/http/client';
|
|
4
4
|
import { UUID } from '../../shared/types/userSettings';
|
|
5
5
|
import { ItemType } from './../../workspaces/types';
|
|
6
|
-
import { AddItemsToTrashPayload, CheckDuplicatedFilesPayload, CheckDuplicatedFilesResponse, CheckDuplicatedFolderPayload, CheckDuplicatedFoldersResponse, CreateFolderByUuidPayload, CreateFolderPayload, CreateFolderResponse, CreateThumbnailEntryPayload, DeleteFilePayload, DriveFileData, FetchFolderContentResponse, FetchLimitResponse, FetchPaginatedFilesContent, FetchPaginatedFolderContentResponse, FetchPaginatedFoldersContent, FileEntry, FileEntryByUuid, FileMeta, FileVersion, FolderAncestor, FolderAncestorWorkspace, FolderMeta, FolderTreeResponse,
|
|
6
|
+
import { AddItemsToTrashPayload, CheckDuplicatedFilesPayload, CheckDuplicatedFilesResponse, CheckDuplicatedFolderPayload, CheckDuplicatedFoldersResponse, CreateFolderByUuidPayload, CreateFolderPayload, CreateFolderResponse, CreateThumbnailEntryPayload, DeleteFilePayload, DriveFileData, FetchFolderContentResponse, FetchLimitResponse, FetchPaginatedFilesContent, FetchPaginatedFolderContentResponse, FetchPaginatedFoldersContent, FileEntry, FileEntryByUuid, FileMeta, FileVersion, FolderAncestor, FolderAncestorWorkspace, FolderMeta, FolderTreeResponse, FileLimitsResponse, MoveFilePayload, MoveFileResponse, MoveFileUuidPayload, MoveFolderPayload, MoveFolderResponse, MoveFolderUuidPayload, ReplaceFile, RestoreFileVersionResponse, SearchResultData, Thumbnail, ThumbnailEntry, UpdateFilePayload, UpdateFolderMetadataPayload, UsageResponse, UsageResponseV2 } from './types';
|
|
7
7
|
export * as StorageTypes from './types';
|
|
8
8
|
export declare class Storage {
|
|
9
9
|
private readonly client;
|
|
@@ -390,7 +390,7 @@ export declare class Storage {
|
|
|
390
390
|
/**
|
|
391
391
|
* Gets the file version limits for the user
|
|
392
392
|
*
|
|
393
|
-
* @returns {Promise<
|
|
393
|
+
* @returns {Promise<FileLimitsResponse>} A promise that resolves with the file limits.
|
|
394
394
|
*/
|
|
395
|
-
getFileVersionLimits(): Promise<
|
|
395
|
+
getFileVersionLimits(): Promise<FileLimitsResponse>;
|
|
396
396
|
}
|
|
@@ -734,7 +734,7 @@ var Storage = /** @class */ (function () {
|
|
|
734
734
|
/**
|
|
735
735
|
* Gets the file version limits for the user
|
|
736
736
|
*
|
|
737
|
-
* @returns {Promise<
|
|
737
|
+
* @returns {Promise<FileLimitsResponse>} A promise that resolves with the file limits.
|
|
738
738
|
*/
|
|
739
739
|
Storage.prototype.getFileVersionLimits = function () {
|
|
740
740
|
return this.client.get('/files/limits', this.headers());
|
|
@@ -421,4 +421,4 @@ export interface CheckDuplicatedFoldersResponse {
|
|
|
421
421
|
}
|
|
422
422
|
export type FileVersion = paths['/files/{uuid}/versions']['get']['responses']['200']['content']['application/json'][0];
|
|
423
423
|
export type RestoreFileVersionResponse = paths['/files/{uuid}/versions/{versionId}/restore']['post']['responses']['200']['content']['application/json'];
|
|
424
|
-
export type
|
|
424
|
+
export type FileLimitsResponse = paths['/files/limits']['get']['responses']['200']['content']['application/json'];
|