@internxt/sdk 1.11.6 → 1.11.7

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.
@@ -51,6 +51,8 @@ export interface DriveFileData {
51
51
  }[];
52
52
  uuid: string;
53
53
  user?: UserResumeData;
54
+ creationTime?: string;
55
+ modificationTime?: string;
54
56
  }
55
57
  export interface Thumbnail {
56
58
  id: number;
@@ -109,30 +111,7 @@ export interface FetchFolderContentResponse {
109
111
  children: FolderChild[];
110
112
  files: DriveFileData[];
111
113
  }
112
- export interface FileMeta {
113
- bucket: string;
114
- createdAt: string;
115
- created_at: string;
116
- deleted: boolean;
117
- deletedAt: null;
118
- encrypt_version: string;
119
- fileId: string;
120
- folderId: number;
121
- folder_id: number;
122
- folderUuid: string;
123
- id: number;
124
- name: string;
125
- plain_name: string | null;
126
- plainName?: string | null;
127
- size: number;
128
- type: string;
129
- updatedAt: string;
130
- status: string;
131
- thumbnails: Array<Thumbnail>;
132
- currentThumbnail: Thumbnail | null;
133
- shares?: Array<ShareLink>;
134
- uuid: string;
135
- }
114
+ export type FileMeta = paths['/files/{uuid}/meta']['get']['responses']['200']['content']['application/json'];
136
115
  export interface ShareLink {
137
116
  id: string;
138
117
  token: string;
@@ -1,3 +1,4 @@
1
+ import { paths } from '../../schema';
1
2
  import { ApiSecurity, ApiUrl, AppDetails } from '../../shared';
2
3
  import { UserSettings } from '../../shared/types/userSettings';
3
4
  import { ChangePasswordPayload, ChangePasswordPayloadNew, CheckChangeEmailExpirationResponse, FriendInvite, InitializeUserResponse, PreCreateUserResponse, Token, UpdateProfilePayload, UserPublicKeyResponse, UserPublicKeyWithCreationResponse, VerifyEmailChangeResponse } from './types';
@@ -22,10 +23,7 @@ export declare class Users {
22
23
  /**
23
24
  * Returns fresh data of the user
24
25
  */
25
- refreshUser(): Promise<{
26
- user: UserSettings;
27
- token: string;
28
- }>;
26
+ refreshUser(): Promise<paths['/users/refresh']['get']['responses']['200']['content']['application/json']>;
29
27
  /**
30
28
  * Returns fresh avatar URL of the user
31
29
  */
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.6",
4
+ "version": "1.11.7",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",