@internxt/sdk 1.4.77 → 1.5.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 +122 -122
- package/dist/auth/index.js +310 -310
- package/dist/auth/types.d.ts +54 -54
- package/dist/auth/types.js +26 -26
- package/dist/drive/backups/index.d.ts +18 -18
- package/dist/drive/backups/index.js +40 -40
- package/dist/drive/backups/types.d.ts +27 -27
- package/dist/drive/backups/types.js +2 -2
- package/dist/drive/index.d.ts +7 -7
- package/dist/drive/index.js +19 -19
- package/dist/drive/payments/index.d.ts +71 -53
- package/dist/drive/payments/index.js +208 -153
- package/dist/drive/payments/types.d.ts +176 -114
- package/dist/drive/payments/types.js +37 -32
- package/dist/drive/referrals/index.d.ts +19 -19
- package/dist/drive/referrals/index.js +50 -50
- package/dist/drive/referrals/types.d.ts +21 -21
- package/dist/drive/referrals/types.js +18 -18
- package/dist/drive/share/index.d.ts +319 -319
- package/dist/drive/share/index.js +540 -539
- package/dist/drive/share/types.d.ts +360 -358
- package/dist/drive/share/types.js +2 -2
- package/dist/drive/storage/index.d.ts +315 -195
- package/dist/drive/storage/index.js +630 -434
- package/dist/drive/storage/types.d.ts +473 -394
- package/dist/drive/storage/types.js +13 -13
- package/dist/drive/trash/index.d.ts +75 -55
- package/dist/drive/trash/index.js +180 -149
- package/dist/drive/trash/types.d.ts +29 -20
- package/dist/drive/trash/types.js +2 -2
- package/dist/drive/users/index.d.ts +135 -108
- package/dist/drive/users/index.js +204 -174
- package/dist/drive/users/types.d.ts +51 -43
- package/dist/drive/users/types.js +2 -2
- package/dist/index.d.ts +6 -5
- package/dist/index.js +31 -30
- package/dist/network/download.d.ts +8 -8
- package/dist/network/download.js +123 -123
- package/dist/network/errors/codes.d.ts +24 -24
- package/dist/network/errors/codes.js +48 -48
- package/dist/network/errors/context.d.ts +35 -35
- package/dist/network/errors/context.js +39 -39
- package/dist/network/errors/download.d.ts +4 -4
- package/dist/network/errors/download.js +48 -48
- package/dist/network/errors/index.d.ts +3 -3
- package/dist/network/errors/index.js +15 -15
- package/dist/network/errors/upload.d.ts +13 -13
- package/dist/network/errors/upload.js +78 -78
- package/dist/network/index.d.ts +70 -71
- package/dist/network/index.js +311 -310
- package/dist/network/types.d.ts +102 -102
- package/dist/network/types.js +18 -18
- package/dist/network/upload.d.ts +4 -4
- package/dist/network/upload.js +159 -159
- package/dist/photos/devices/index.d.ts +10 -10
- package/dist/photos/devices/index.js +79 -79
- package/dist/photos/index.d.ts +17 -17
- package/dist/photos/index.js +52 -52
- package/dist/photos/photos/index.d.ts +60 -60
- package/dist/photos/photos/index.js +225 -225
- package/dist/photos/shares/index.d.ts +8 -8
- package/dist/photos/shares/index.js +34 -34
- package/dist/photos/types.d.ts +154 -154
- package/dist/photos/types.js +19 -19
- package/dist/photos/users/index.d.ts +7 -7
- package/dist/photos/users/index.js +46 -46
- package/dist/shared/headers/index.d.ts +21 -18
- package/dist/shared/headers/index.js +79 -69
- package/dist/shared/http/client.d.ts +85 -85
- package/dist/shared/http/client.js +172 -181
- package/dist/shared/http/types.d.ts +7 -7
- package/dist/shared/http/types.js +2 -2
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.js +13 -13
- package/dist/shared/types/apiConnection.d.ts +12 -11
- package/dist/shared/types/apiConnection.js +2 -2
- package/dist/shared/types/appsumo.d.ts +16 -16
- package/dist/shared/types/appsumo.js +12 -12
- package/dist/shared/types/errors.d.ts +5 -4
- package/dist/shared/types/errors.js +28 -27
- package/dist/shared/types/teams.d.ts +9 -9
- package/dist/shared/types/teams.js +2 -2
- package/dist/shared/types/userSettings.d.ts +29 -27
- package/dist/shared/types/userSettings.js +2 -2
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +25 -25
- package/dist/workspaces/index.d.ts +176 -0
- package/dist/workspaces/index.js +415 -0
- package/dist/workspaces/index.test.d.ts +1 -0
- package/dist/workspaces/index.test.js +903 -0
- package/dist/workspaces/types.d.ts +291 -0
- package/dist/workspaces/types.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { SharedFiles, SharedFolders } from '../drive/share/types';
|
|
2
|
+
export interface WorkspaceUser {
|
|
3
|
+
backupsUsage: string;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
deactivated: boolean;
|
|
6
|
+
driveUsage: string;
|
|
7
|
+
freeSpace: string;
|
|
8
|
+
id: string;
|
|
9
|
+
isManager: boolean;
|
|
10
|
+
isOwner: boolean;
|
|
11
|
+
key: string;
|
|
12
|
+
member: Member;
|
|
13
|
+
memberId: string;
|
|
14
|
+
rootFolderId: string;
|
|
15
|
+
spaceLimit: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
usedSpace: string;
|
|
18
|
+
workspaceId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface Workspace {
|
|
21
|
+
id: string;
|
|
22
|
+
ownerId: string;
|
|
23
|
+
address: string;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
defaultTeamId: string;
|
|
27
|
+
workspaceUserId: string;
|
|
28
|
+
setupCompleted: boolean;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
avatar: null | string;
|
|
32
|
+
rootFolderId: string;
|
|
33
|
+
phoneNumber: null | string;
|
|
34
|
+
}
|
|
35
|
+
export interface WorkspaceData {
|
|
36
|
+
workspaceUser: WorkspaceUser;
|
|
37
|
+
workspace: Workspace;
|
|
38
|
+
}
|
|
39
|
+
export interface WorkspaceUsage {
|
|
40
|
+
totalWorkspaceSpace: number;
|
|
41
|
+
spaceAssigned: number;
|
|
42
|
+
spaceUsed: number;
|
|
43
|
+
}
|
|
44
|
+
export declare type WorkspaceSetupInfo = {
|
|
45
|
+
workspaceId: string;
|
|
46
|
+
name: string;
|
|
47
|
+
address: string;
|
|
48
|
+
description: string;
|
|
49
|
+
encryptedMnemonic: string;
|
|
50
|
+
};
|
|
51
|
+
export declare type PendingWorkspace = {
|
|
52
|
+
address: string | null;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
defaultTeamId: string;
|
|
55
|
+
description: string | null;
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
ownerId: string;
|
|
59
|
+
setupCompleted: boolean;
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
workspaceUserId: string;
|
|
62
|
+
};
|
|
63
|
+
export declare type WorkspacesResponse = {
|
|
64
|
+
availableWorkspaces: WorkspaceData[];
|
|
65
|
+
pendingWorkspaces: PendingWorkspace[];
|
|
66
|
+
};
|
|
67
|
+
export interface CreateTeamData {
|
|
68
|
+
workspaceId: string;
|
|
69
|
+
name: string;
|
|
70
|
+
managerId: string;
|
|
71
|
+
}
|
|
72
|
+
export declare type Team = {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
managerId: string;
|
|
76
|
+
workspaceId: string;
|
|
77
|
+
createdAt: string;
|
|
78
|
+
updatedAt: string;
|
|
79
|
+
};
|
|
80
|
+
export declare type WorkspaceMembers = {
|
|
81
|
+
activatedUsers: WorkspaceUser[];
|
|
82
|
+
disabledUsers: WorkspaceUser[];
|
|
83
|
+
};
|
|
84
|
+
export declare type TeamMember = {
|
|
85
|
+
name: string;
|
|
86
|
+
lastname: string;
|
|
87
|
+
email: string;
|
|
88
|
+
id: number;
|
|
89
|
+
uuid: string;
|
|
90
|
+
avatar: string | null;
|
|
91
|
+
};
|
|
92
|
+
export declare type TeamMembers = TeamMember[];
|
|
93
|
+
export declare type Member = {
|
|
94
|
+
avatar: string | null;
|
|
95
|
+
backupsBucket: string | null;
|
|
96
|
+
bridgeUser: string;
|
|
97
|
+
credit: number;
|
|
98
|
+
email: string;
|
|
99
|
+
errorLoginCount: number;
|
|
100
|
+
id: number;
|
|
101
|
+
isEmailActivitySended: boolean;
|
|
102
|
+
lastPasswordChangedAt: string | null;
|
|
103
|
+
lastResend: string | null;
|
|
104
|
+
lastname: string;
|
|
105
|
+
name: string;
|
|
106
|
+
referralCode: string;
|
|
107
|
+
referrer: string | null;
|
|
108
|
+
registerCompleted: boolean;
|
|
109
|
+
rootFolderId: number;
|
|
110
|
+
sharedWorkspace: boolean;
|
|
111
|
+
syncDate: string | null;
|
|
112
|
+
userId: string;
|
|
113
|
+
username: string;
|
|
114
|
+
uuid: string;
|
|
115
|
+
welcomePack: boolean;
|
|
116
|
+
};
|
|
117
|
+
export declare type ActivatedUser = {
|
|
118
|
+
isOwner: boolean;
|
|
119
|
+
isManager: boolean;
|
|
120
|
+
usedSpace: string;
|
|
121
|
+
freeSpace: string;
|
|
122
|
+
id: string;
|
|
123
|
+
memberId: string;
|
|
124
|
+
key: string;
|
|
125
|
+
workspaceId: string;
|
|
126
|
+
spaceLimit: string;
|
|
127
|
+
driveUsage: string;
|
|
128
|
+
backupsUsage: string;
|
|
129
|
+
deactivated: boolean;
|
|
130
|
+
member: Member;
|
|
131
|
+
createdAt: string;
|
|
132
|
+
updatedAt: string;
|
|
133
|
+
};
|
|
134
|
+
export declare type WorkspaceTeam = {
|
|
135
|
+
membersCount: number;
|
|
136
|
+
team: Team;
|
|
137
|
+
};
|
|
138
|
+
export declare type WorkspaceTeamResponse = WorkspaceTeam[];
|
|
139
|
+
export declare type InviteMemberBody = {
|
|
140
|
+
workspaceId: string;
|
|
141
|
+
invitedUserEmail: string;
|
|
142
|
+
spaceLimitBytes?: number;
|
|
143
|
+
encryptedMnemonicInBase64: string;
|
|
144
|
+
encryptionAlgorithm: string;
|
|
145
|
+
message: string;
|
|
146
|
+
};
|
|
147
|
+
interface Invite {
|
|
148
|
+
id: string;
|
|
149
|
+
workspaceId: string;
|
|
150
|
+
invitedUser: string;
|
|
151
|
+
encryptionAlgorithm: string;
|
|
152
|
+
encryptionKey: string;
|
|
153
|
+
spaceLimit: number;
|
|
154
|
+
createdAt: Date;
|
|
155
|
+
updatedAt: Date;
|
|
156
|
+
}
|
|
157
|
+
export declare type PendingInvitesResponse = (Invite & {
|
|
158
|
+
workspace: Workspace;
|
|
159
|
+
})[];
|
|
160
|
+
export declare type EditWorkspaceDetailsBody = {
|
|
161
|
+
workspaceId: string;
|
|
162
|
+
name?: string;
|
|
163
|
+
description?: string;
|
|
164
|
+
};
|
|
165
|
+
export declare type GetMemberDetailsResponse = {
|
|
166
|
+
user: {
|
|
167
|
+
name: string;
|
|
168
|
+
lastname: string;
|
|
169
|
+
email: string;
|
|
170
|
+
uuid: string;
|
|
171
|
+
id: number;
|
|
172
|
+
avatar: string | null;
|
|
173
|
+
memberId: string;
|
|
174
|
+
workspaceId: string;
|
|
175
|
+
spaceLimit: string;
|
|
176
|
+
driveUsage: string;
|
|
177
|
+
backupsUsage: string;
|
|
178
|
+
deactivated: boolean;
|
|
179
|
+
};
|
|
180
|
+
teams: (Team & {
|
|
181
|
+
isManager: boolean;
|
|
182
|
+
})[];
|
|
183
|
+
};
|
|
184
|
+
export declare type FileEntry = {
|
|
185
|
+
name: string;
|
|
186
|
+
bucket: string;
|
|
187
|
+
fileId: string;
|
|
188
|
+
encryptVersion: string;
|
|
189
|
+
folderUuid: string;
|
|
190
|
+
size: number;
|
|
191
|
+
plainName: string;
|
|
192
|
+
type: string;
|
|
193
|
+
modificationTime: string;
|
|
194
|
+
date: string;
|
|
195
|
+
};
|
|
196
|
+
export interface WorkspaceCredentials {
|
|
197
|
+
networkPass: string;
|
|
198
|
+
networkUser: string;
|
|
199
|
+
}
|
|
200
|
+
export interface WorkspaceCredentialsDetails {
|
|
201
|
+
workspaceId: string;
|
|
202
|
+
bucket: string;
|
|
203
|
+
workspaceUserId: string;
|
|
204
|
+
email: string;
|
|
205
|
+
credentials: WorkspaceCredentials;
|
|
206
|
+
tokenHeader: string;
|
|
207
|
+
}
|
|
208
|
+
export interface CreateFolderPayload {
|
|
209
|
+
workspaceId: string;
|
|
210
|
+
plainName: string;
|
|
211
|
+
parentFolderUuid: string;
|
|
212
|
+
}
|
|
213
|
+
export declare type WorkspacePendingInvitations = {
|
|
214
|
+
id: string;
|
|
215
|
+
workspaceId: string;
|
|
216
|
+
invitedUser: string;
|
|
217
|
+
encryptionAlgorithm: string;
|
|
218
|
+
encryptionKey: string;
|
|
219
|
+
spaceLimit: string;
|
|
220
|
+
createdAt: Date;
|
|
221
|
+
updatedAt: Date;
|
|
222
|
+
user: {
|
|
223
|
+
name: string;
|
|
224
|
+
lastname: string;
|
|
225
|
+
email: string;
|
|
226
|
+
uuid: string;
|
|
227
|
+
avatar: string | null;
|
|
228
|
+
};
|
|
229
|
+
isGuessInvite: boolean;
|
|
230
|
+
};
|
|
231
|
+
export declare type ItemType = 'file' | 'folder';
|
|
232
|
+
export interface CreateWorkspaceSharingPayload {
|
|
233
|
+
workspaceId: string;
|
|
234
|
+
itemId: string;
|
|
235
|
+
itemType: ItemType;
|
|
236
|
+
teamUUID: string;
|
|
237
|
+
roleId: string;
|
|
238
|
+
}
|
|
239
|
+
export declare type ListWorkspaceSharedItemsResponse = {
|
|
240
|
+
items: SharedFiles[] | SharedFolders[];
|
|
241
|
+
token: string;
|
|
242
|
+
role: string;
|
|
243
|
+
parent: Parent;
|
|
244
|
+
bucket: string;
|
|
245
|
+
encryptionKey: null | string;
|
|
246
|
+
};
|
|
247
|
+
export declare type Parent = {
|
|
248
|
+
uuid: string;
|
|
249
|
+
name: string;
|
|
250
|
+
};
|
|
251
|
+
export declare type usersWithRoles = {
|
|
252
|
+
name: string;
|
|
253
|
+
lastname: string;
|
|
254
|
+
email: string;
|
|
255
|
+
sharingId: string | null;
|
|
256
|
+
avatar: string | null;
|
|
257
|
+
uuid: string;
|
|
258
|
+
role: {
|
|
259
|
+
id: string;
|
|
260
|
+
name: string;
|
|
261
|
+
createdAt: string;
|
|
262
|
+
updatedAt: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
export declare type teamsWithRoles = {
|
|
266
|
+
id: string;
|
|
267
|
+
workspaceId: string;
|
|
268
|
+
managerId: string;
|
|
269
|
+
name: string | null;
|
|
270
|
+
createdAt: string;
|
|
271
|
+
updatedAt: string;
|
|
272
|
+
membersCount: number;
|
|
273
|
+
sharingId: string;
|
|
274
|
+
role: {
|
|
275
|
+
id: string;
|
|
276
|
+
name: string;
|
|
277
|
+
createdAt: string;
|
|
278
|
+
updatedAt: string;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
export declare type UsersAndTeamsAnItemIsShareWidthResponse = {
|
|
282
|
+
usersWithRoles: usersWithRoles[];
|
|
283
|
+
teamsWithRoles: teamsWithRoles[];
|
|
284
|
+
};
|
|
285
|
+
export declare type OrderByOptions = 'views:ASC' | 'views:DESC' | 'createdAt:ASC' | 'createdAt:DESC';
|
|
286
|
+
export declare type GetMemberUsageResponse = {
|
|
287
|
+
backupsUsage: number;
|
|
288
|
+
driveUsage: number;
|
|
289
|
+
spaceLimit: number;
|
|
290
|
+
};
|
|
291
|
+
export {};
|