@internxt/sdk 1.11.20 → 1.11.22

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, GetFileLimitsResponse, MoveFilePayload, MoveFileResponse, MoveFileUuidPayload, MoveFolderPayload, MoveFolderResponse, MoveFolderUuidPayload, ReplaceFile, SearchResultData, Thumbnail, ThumbnailEntry, UpdateFilePayload, UpdateFolderMetadataPayload, UsageResponse, UsageResponseV2 } from './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, GetFileLimitsResponse, 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;
@@ -384,9 +384,9 @@ export declare class Storage {
384
384
  *
385
385
  * @param {string} uuid - The UUID of the file.
386
386
  * @param {string} versionId - The UUID of the version to restore.
387
- * @returns {Promise<FileVersion>} A promise that resolves with the restored version.
387
+ * @returns {Promise<RestoreFileVersionResponse>} A promise that resolves with the restored file.
388
388
  */
389
- restoreFileVersion(uuid: string, versionId: string): Promise<FileVersion>;
389
+ restoreFileVersion(uuid: string, versionId: string): Promise<RestoreFileVersionResponse>;
390
390
  /**
391
391
  * Gets the file version limits for the user
392
392
  *
@@ -726,7 +726,7 @@ var Storage = /** @class */ (function () {
726
726
  *
727
727
  * @param {string} uuid - The UUID of the file.
728
728
  * @param {string} versionId - The UUID of the version to restore.
729
- * @returns {Promise<FileVersion>} A promise that resolves with the restored version.
729
+ * @returns {Promise<RestoreFileVersionResponse>} A promise that resolves with the restored file.
730
730
  */
731
731
  Storage.prototype.restoreFileVersion = function (uuid, versionId) {
732
732
  return this.client.post("/files/".concat(uuid, "/versions/").concat(versionId, "/restore"), {}, this.headers());
@@ -737,7 +737,7 @@ var Storage = /** @class */ (function () {
737
737
  * @returns {Promise<GetFileLimitsResponse>} A promise that resolves with the file limits.
738
738
  */
739
739
  Storage.prototype.getFileVersionLimits = function () {
740
- return this.client.get('/api/files/limits', this.headers());
740
+ return this.client.get('/files/limits', this.headers());
741
741
  };
742
742
  return Storage;
743
743
  }());
@@ -420,4 +420,5 @@ export interface CheckDuplicatedFoldersResponse {
420
420
  existentFolders: DriveFolderData[];
421
421
  }
422
422
  export type FileVersion = paths['/files/{uuid}/versions']['get']['responses']['200']['content']['application/json'][0];
423
+ export type RestoreFileVersionResponse = paths['/files/{uuid}/versions/{versionId}/restore']['post']['responses']['200']['content']['application/json'];
423
424
  export type GetFileLimitsResponse = paths['/files/limits']['get']['responses']['200']['content']['application/json'];
package/dist/schema.d.ts CHANGED
@@ -3159,6 +3159,11 @@ export interface components {
3159
3159
  createdAt: string;
3160
3160
  /** Format: date-time */
3161
3161
  updatedAt: string;
3162
+ /**
3163
+ * Format: date-time
3164
+ * @description Date when this version expires based on retention policy
3165
+ */
3166
+ expiresAt: string;
3162
3167
  };
3163
3168
  ReplaceFileDto: {
3164
3169
  /**
@@ -5298,7 +5303,7 @@ export interface operations {
5298
5303
  [name: string]: unknown;
5299
5304
  };
5300
5305
  content: {
5301
- 'application/json': components['schemas']['FileVersionDto'];
5306
+ 'application/json': components['schemas']['FileDto'];
5302
5307
  };
5303
5308
  };
5304
5309
  };
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.20",
4
+ "version": "1.11.22",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",