@internxt/sdk 1.11.22 → 1.11.24
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.
|
@@ -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());
|
|
@@ -29,7 +29,7 @@ export interface DriveFileData {
|
|
|
29
29
|
deleted: boolean;
|
|
30
30
|
deletedAt: null;
|
|
31
31
|
encrypt_version: string;
|
|
32
|
-
fileId: string;
|
|
32
|
+
fileId: string | null;
|
|
33
33
|
folderId: number;
|
|
34
34
|
folder_id: number;
|
|
35
35
|
folderUuid: string;
|
|
@@ -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'];
|
package/dist/schema.d.ts
CHANGED
|
@@ -3061,10 +3061,10 @@ export interface components {
|
|
|
3061
3061
|
*/
|
|
3062
3062
|
bucket: string;
|
|
3063
3063
|
/**
|
|
3064
|
-
* @description The ID of the file
|
|
3064
|
+
* @description The ID of the file (required when size > 0)
|
|
3065
3065
|
* @example file12345
|
|
3066
3066
|
*/
|
|
3067
|
-
fileId
|
|
3067
|
+
fileId?: string;
|
|
3068
3068
|
/**
|
|
3069
3069
|
* @description The encryption version used for the file
|
|
3070
3070
|
* @example 03-aes
|
|
@@ -3114,7 +3114,7 @@ export interface components {
|
|
|
3114
3114
|
FileDto: {
|
|
3115
3115
|
id: number;
|
|
3116
3116
|
uuid: string;
|
|
3117
|
-
fileId: string;
|
|
3117
|
+
fileId: string | null;
|
|
3118
3118
|
name: string;
|
|
3119
3119
|
type: string;
|
|
3120
3120
|
size: string;
|
|
@@ -3150,7 +3150,7 @@ export interface components {
|
|
|
3150
3150
|
};
|
|
3151
3151
|
FileVersionDto: {
|
|
3152
3152
|
id: string;
|
|
3153
|
-
fileId: string;
|
|
3153
|
+
fileId: string | null;
|
|
3154
3154
|
networkFileId: string;
|
|
3155
3155
|
size: string;
|
|
3156
3156
|
/** @enum {string} */
|
|
@@ -3167,10 +3167,10 @@ export interface components {
|
|
|
3167
3167
|
};
|
|
3168
3168
|
ReplaceFileDto: {
|
|
3169
3169
|
/**
|
|
3170
|
-
* @description File id
|
|
3170
|
+
* @description File id (required when size > 0)
|
|
3171
3171
|
* @example 651300a2da9b27001f63f384
|
|
3172
3172
|
*/
|
|
3173
|
-
fileId
|
|
3173
|
+
fileId?: string;
|
|
3174
3174
|
/**
|
|
3175
3175
|
* Format: int64
|
|
3176
3176
|
* @description New file size
|
|
@@ -3658,7 +3658,7 @@ export interface components {
|
|
|
3658
3658
|
FileInSharedFolderDto: {
|
|
3659
3659
|
id: number;
|
|
3660
3660
|
uuid: string;
|
|
3661
|
-
fileId: string;
|
|
3661
|
+
fileId: string | null;
|
|
3662
3662
|
name: string;
|
|
3663
3663
|
type: string;
|
|
3664
3664
|
size: string;
|
|
@@ -3903,10 +3903,10 @@ export interface components {
|
|
|
3903
3903
|
*/
|
|
3904
3904
|
bucket: string;
|
|
3905
3905
|
/**
|
|
3906
|
-
* @description The ID of the file
|
|
3906
|
+
* @description The ID of the file (required when size > 0)
|
|
3907
3907
|
* @example file12345
|
|
3908
3908
|
*/
|
|
3909
|
-
fileId
|
|
3909
|
+
fileId?: string;
|
|
3910
3910
|
/**
|
|
3911
3911
|
* @description The encryption version used for the file
|
|
3912
3912
|
* @example 03-aes
|
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.
|
|
4
|
+
"version": "1.11.24",
|
|
5
5
|
"description": "An sdk for interacting with Internxt's services",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"@internxt/eslint-config-internxt": "2.0.1",
|
|
31
31
|
"@internxt/prettier-config": "1.0.2",
|
|
32
32
|
"@types/jest": "30.0.0",
|
|
33
|
-
"@types/sinon": "
|
|
34
|
-
"eslint": "9.39.
|
|
33
|
+
"@types/sinon": "21.0.0",
|
|
34
|
+
"eslint": "9.39.2",
|
|
35
35
|
"husky": "9.1.7",
|
|
36
36
|
"jest": "30.2.0",
|
|
37
|
-
"lint-staged": "16.2.
|
|
37
|
+
"lint-staged": "16.2.7",
|
|
38
38
|
"openapi-typescript": "7.10.1",
|
|
39
|
-
"prettier": "3.
|
|
39
|
+
"prettier": "3.7.4",
|
|
40
40
|
"sinon": "21.0.0",
|
|
41
|
-
"ts-jest": "29.4.
|
|
41
|
+
"ts-jest": "29.4.6",
|
|
42
42
|
"typescript": "5.9.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|