@internxt/sdk 1.9.23 → 1.9.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.
@@ -83,21 +83,30 @@ export interface FolderChild {
83
83
  plainName?: string;
84
84
  }
85
85
  export interface FetchFolderContentResponse {
86
- bucket: string;
87
- children: FolderChild[];
88
- color: string;
89
- createdAt: string;
90
- encrypt_version: string;
91
- files: DriveFileData[];
92
- icon: string;
86
+ type: string;
93
87
  id: number;
88
+ parentId: number | null;
89
+ parentUuid: string | null;
94
90
  name: string;
95
- plain_name: string;
96
- parentId: number;
97
- parent_id: number;
98
- updatedAt: string;
91
+ parent: string | null;
92
+ bucket: string;
99
93
  userId: number;
100
- user_id: number;
94
+ user: any | null;
95
+ encryptVersion: string;
96
+ deleted: boolean;
97
+ deletedAt: string | null;
98
+ createdAt: string;
99
+ updatedAt: string;
100
+ uuid: string;
101
+ plainName: string | null;
102
+ size: number;
103
+ removed: boolean;
104
+ removedAt: string | null;
105
+ creationTime: string;
106
+ modificationTime: string;
107
+ status: string;
108
+ children: FolderChild[];
109
+ files: DriveFileData[];
101
110
  }
102
111
  export interface FileMeta {
103
112
  bucket: string;
@@ -152,6 +152,13 @@ export declare class Users {
152
152
  getPublicKeyByEmail({ email }: {
153
153
  email: string;
154
154
  }): Promise<UserPublicKeyResponse>;
155
+ /**
156
+ * Generate mnemonic
157
+ */
158
+ generateMnemonic(): Promise<{
159
+ mnemonic: string;
160
+ }>;
161
+ private basicHeaders;
155
162
  private headers;
156
163
  private headersWithToken;
157
164
  }
@@ -230,6 +230,15 @@ var Users = /** @class */ (function () {
230
230
  var email = _a.email;
231
231
  return this.client.get("/users/public-key/".concat(email), this.headers());
232
232
  };
233
+ /**
234
+ * Generate mnemonic
235
+ */
236
+ Users.prototype.generateMnemonic = function () {
237
+ return this.client.get('/users/generate-mnemonic', this.basicHeaders());
238
+ };
239
+ Users.prototype.basicHeaders = function () {
240
+ return (0, headers_1.basicHeaders)(this.appDetails.clientName, this.appDetails.clientVersion);
241
+ };
233
242
  Users.prototype.headers = function () {
234
243
  return (0, headers_1.headersWithToken)(this.appDetails.clientName, this.appDetails.clientVersion, this.apiSecurity.token);
235
244
  };
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.9.23",
4
+ "version": "1.9.24",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",