@filen/sdk-rs 0.3.10 → 0.3.12
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/browser/sdk-rs.d.ts +211 -129
- package/browser/sdk-rs.js +306 -152
- package/browser/sdk-rs_bg.wasm +0 -0
- package/browser/sdk-rs_bg.wasm.d.ts +48 -34
- package/package.json +1 -1
package/browser/sdk-rs.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function fromStringified(serialized: StringifiedClient): Client;
|
|
4
|
-
export function main_js(): void;
|
|
5
4
|
export function login(email: string, password: string, twoFactorCode?: string | null): Promise<Client>;
|
|
5
|
+
export function main_js(): void;
|
|
6
6
|
/**
|
|
7
7
|
* The `ReadableStreamType` enum.
|
|
8
8
|
*
|
|
@@ -11,6 +11,7 @@ export function login(email: string, password: string, twoFactorCode?: string |
|
|
|
11
11
|
type ReadableStreamType = "bytes";
|
|
12
12
|
export interface StringifiedClient {
|
|
13
13
|
email: string;
|
|
14
|
+
userId: bigint;
|
|
14
15
|
rootUuid: string;
|
|
15
16
|
authInfo: string;
|
|
16
17
|
privateKey: string;
|
|
@@ -25,6 +26,14 @@ export interface ManagedFuture {
|
|
|
25
26
|
pauseSignal?: PauseSignal;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
export interface FilePublicLink {
|
|
30
|
+
linkUuid: UuidStr;
|
|
31
|
+
password?: string | Uint8Array;
|
|
32
|
+
expiration: PublicLinkExpiration;
|
|
33
|
+
downloadable: boolean;
|
|
34
|
+
salt: Uint8Array;
|
|
35
|
+
}
|
|
36
|
+
|
|
28
37
|
export interface DirPublicLink {
|
|
29
38
|
linkUuid: UuidStr;
|
|
30
39
|
linkKey?: MetaKey;
|
|
@@ -34,31 +43,53 @@ export interface DirPublicLink {
|
|
|
34
43
|
salt?: Uint8Array;
|
|
35
44
|
}
|
|
36
45
|
|
|
37
|
-
export interface
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
export interface FileMetaChanges {
|
|
47
|
+
name?: string;
|
|
48
|
+
mime?: string;
|
|
49
|
+
lastModified?: bigint;
|
|
50
|
+
created?: bigint | null;
|
|
41
51
|
}
|
|
42
52
|
|
|
43
|
-
export interface
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
expiration: PublicLinkExpiration;
|
|
47
|
-
downloadable: boolean;
|
|
48
|
-
salt: Uint8Array;
|
|
53
|
+
export interface DecryptedDirMeta {
|
|
54
|
+
name: string;
|
|
55
|
+
created?: bigint;
|
|
49
56
|
}
|
|
50
57
|
|
|
51
|
-
export
|
|
58
|
+
export type DirColor = "default" | "blue" | "green" | "purple" | "red" | "gray" | string;
|
|
59
|
+
|
|
60
|
+
export type DirWithMetaEnum = Dir | RootWithMeta;
|
|
61
|
+
|
|
62
|
+
export type DirEnum = Dir | Root;
|
|
63
|
+
|
|
64
|
+
export type AnyDirEnumWithShareInfo = Dir | SharedDir | Root;
|
|
65
|
+
|
|
66
|
+
export interface RootWithMeta {
|
|
52
67
|
uuid: UuidStr;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
region: string;
|
|
56
|
-
bucket: string;
|
|
68
|
+
color: DirColor;
|
|
69
|
+
timestamp: bigint;
|
|
57
70
|
meta?: DecryptedDirMeta;
|
|
58
|
-
canMakeThumbnail: boolean;
|
|
59
71
|
}
|
|
60
72
|
|
|
61
|
-
export type
|
|
73
|
+
export type AnyDirEnum = Dir | RootWithMeta | Root;
|
|
74
|
+
|
|
75
|
+
export interface SharedDir {
|
|
76
|
+
dir: DirWithMetaEnum;
|
|
77
|
+
sharingRole: SharingRole;
|
|
78
|
+
writeAccess: boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface Root {
|
|
82
|
+
uuid: UuidStr;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface Dir {
|
|
86
|
+
uuid: UuidStr;
|
|
87
|
+
parent: ParentUuid;
|
|
88
|
+
color: DirColor;
|
|
89
|
+
timestamp: bigint;
|
|
90
|
+
favorited: boolean;
|
|
91
|
+
meta?: DecryptedDirMeta;
|
|
92
|
+
}
|
|
62
93
|
|
|
63
94
|
export interface DecryptedFileMeta {
|
|
64
95
|
name: string;
|
|
@@ -76,58 +107,42 @@ export interface SharedFile {
|
|
|
76
107
|
sharingRole: SharingRole;
|
|
77
108
|
}
|
|
78
109
|
|
|
79
|
-
export interface
|
|
110
|
+
export interface RootFile {
|
|
80
111
|
uuid: UuidStr;
|
|
81
|
-
meta?: DecryptedFileMeta;
|
|
82
|
-
parent: ParentUuid;
|
|
83
112
|
size: bigint;
|
|
84
|
-
|
|
113
|
+
chunks: bigint;
|
|
85
114
|
region: string;
|
|
86
115
|
bucket: string;
|
|
87
|
-
|
|
116
|
+
timestamp: bigint;
|
|
117
|
+
meta?: DecryptedDirMeta;
|
|
88
118
|
canMakeThumbnail: boolean;
|
|
89
119
|
}
|
|
90
120
|
|
|
91
|
-
export interface
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
121
|
+
export interface FileMetaChanges {
|
|
122
|
+
name: string | undefined;
|
|
123
|
+
mime: string | undefined;
|
|
124
|
+
lastModified: DateTime<Utc> | undefined;
|
|
125
|
+
created: DateTime<Utc> | undefined | undefined;
|
|
95
126
|
}
|
|
96
127
|
|
|
97
|
-
export type
|
|
128
|
+
export type FileEnum = File | RootFile;
|
|
98
129
|
|
|
99
|
-
export interface
|
|
130
|
+
export interface File {
|
|
100
131
|
uuid: UuidStr;
|
|
132
|
+
meta?: DecryptedFileMeta;
|
|
101
133
|
parent: ParentUuid;
|
|
102
|
-
|
|
134
|
+
size: bigint;
|
|
103
135
|
favorited: boolean;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type AnyDirEnum = Dir | RootWithMeta | Root;
|
|
112
|
-
|
|
113
|
-
export interface DecryptedDirMeta {
|
|
114
|
-
name: string;
|
|
115
|
-
created?: bigint;
|
|
136
|
+
region: string;
|
|
137
|
+
bucket: string;
|
|
138
|
+
timestamp: bigint;
|
|
139
|
+
chunks: bigint;
|
|
140
|
+
canMakeThumbnail: boolean;
|
|
116
141
|
}
|
|
117
142
|
|
|
118
|
-
export interface
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
writeAccess: boolean;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export type DirEnum = Dir | Root;
|
|
125
|
-
|
|
126
|
-
export interface DownloadFileToZipParams {
|
|
127
|
-
items: Item[];
|
|
128
|
-
writer: WritableStream<Uint8Array>;
|
|
129
|
-
progress?: (bytesWritten: bigint, totalBytes: bigint, itemsProcessed: bigint, totalItems: bigint) => void;
|
|
130
|
-
managedFuture?: ManagedFuture;
|
|
143
|
+
export interface DirectoryMetaChanges {
|
|
144
|
+
name?: string;
|
|
145
|
+
created?: bigint | null;
|
|
131
146
|
}
|
|
132
147
|
|
|
133
148
|
export interface UploadFileStreamParams extends UploadFileParams {
|
|
@@ -145,10 +160,6 @@ export interface DownloadFileStreamParams {
|
|
|
145
160
|
managedFuture?: ManagedFuture;
|
|
146
161
|
}
|
|
147
162
|
|
|
148
|
-
export interface UploadFileParams extends FileBuilderParams {
|
|
149
|
-
managedFuture?: ManagedFuture;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
163
|
export interface FileBuilderParams {
|
|
153
164
|
parent: DirEnum;
|
|
154
165
|
name: string;
|
|
@@ -157,23 +168,46 @@ export interface FileBuilderParams {
|
|
|
157
168
|
mime?: string;
|
|
158
169
|
}
|
|
159
170
|
|
|
160
|
-
export
|
|
171
|
+
export interface UploadFileParams extends FileBuilderParams {
|
|
172
|
+
managedFuture?: ManagedFuture;
|
|
173
|
+
}
|
|
161
174
|
|
|
162
|
-
export
|
|
163
|
-
|
|
175
|
+
export type NonRootItem = File | Dir;
|
|
176
|
+
|
|
177
|
+
export interface DownloadFileToZipParams {
|
|
178
|
+
items: Item[];
|
|
179
|
+
writer: WritableStream<Uint8Array>;
|
|
180
|
+
progress?: (bytesWritten: bigint, totalBytes: bigint, itemsProcessed: bigint, totalItems: bigint) => void;
|
|
181
|
+
managedFuture?: ManagedFuture;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface AcquireLockParams {
|
|
185
|
+
resource: string;
|
|
186
|
+
maxSleepTime?: number;
|
|
187
|
+
attempts?: number;
|
|
164
188
|
}
|
|
165
189
|
|
|
190
|
+
export type Item = File | RootFile | Dir | RootWithMeta | Root;
|
|
191
|
+
|
|
166
192
|
export interface MakeThumbnailInMemoryParams {
|
|
167
193
|
file: File;
|
|
168
194
|
maxWidth: number;
|
|
169
195
|
maxHeight: number;
|
|
170
196
|
}
|
|
171
197
|
|
|
172
|
-
export interface
|
|
198
|
+
export interface MakeThumbnailInMemoryResult {
|
|
199
|
+
webpData: Uint8Array;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface Contact {
|
|
173
203
|
uuid: UuidStr;
|
|
204
|
+
userId: bigint;
|
|
174
205
|
email: string;
|
|
175
206
|
avatar?: string;
|
|
176
207
|
nickName: string;
|
|
208
|
+
lastActive: bigint;
|
|
209
|
+
timestamp: bigint;
|
|
210
|
+
publicKey: string;
|
|
177
211
|
}
|
|
178
212
|
|
|
179
213
|
export interface ContactRequestIn {
|
|
@@ -184,16 +218,22 @@ export interface ContactRequestIn {
|
|
|
184
218
|
nickName: string;
|
|
185
219
|
}
|
|
186
220
|
|
|
187
|
-
export interface
|
|
221
|
+
export interface BlockedContact {
|
|
188
222
|
uuid: UuidStr;
|
|
189
223
|
userId: bigint;
|
|
190
224
|
email: string;
|
|
191
225
|
avatar?: string;
|
|
192
226
|
nickName: string;
|
|
193
|
-
lastActive: bigint;
|
|
194
227
|
timestamp: bigint;
|
|
195
228
|
}
|
|
196
229
|
|
|
230
|
+
export interface ContactRequestOut {
|
|
231
|
+
uuid: UuidStr;
|
|
232
|
+
email: string;
|
|
233
|
+
avatar?: string;
|
|
234
|
+
nickName: string;
|
|
235
|
+
}
|
|
236
|
+
|
|
197
237
|
export interface ShareInfo {
|
|
198
238
|
email: string;
|
|
199
239
|
id: number;
|
|
@@ -201,14 +241,19 @@ export interface ShareInfo {
|
|
|
201
241
|
|
|
202
242
|
export type SharingRole = ({ role: "sharer" } & ShareInfo) | ({ role: "receiver" } & ShareInfo);
|
|
203
243
|
|
|
244
|
+
export interface ItemMatch {
|
|
245
|
+
item: NonRootItemTagged;
|
|
246
|
+
path: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export type NonRootItemTagged = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
|
|
250
|
+
|
|
204
251
|
export interface DirSizeResponse {
|
|
205
252
|
size: bigint;
|
|
206
253
|
files: bigint;
|
|
207
254
|
dirs: bigint;
|
|
208
255
|
}
|
|
209
256
|
|
|
210
|
-
export type NonRootObject = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
|
|
211
|
-
|
|
212
257
|
export type UuidStr = string;
|
|
213
258
|
|
|
214
259
|
export type ParentUuid = UuidStr | "trash" | "recents" | "favorites" | "links";
|
|
@@ -221,47 +266,58 @@ export class Client {
|
|
|
221
266
|
private constructor();
|
|
222
267
|
free(): void;
|
|
223
268
|
toStringified(): StringifiedClient;
|
|
269
|
+
lockDrive(): Promise<ResourceLock>;
|
|
270
|
+
acquireLock(params: AcquireLockParams): Promise<ResourceLock>;
|
|
224
271
|
makeThumbnailInMemory(params: MakeThumbnailInMemoryParams): Promise<MakeThumbnailInMemoryResult | undefined>;
|
|
225
|
-
|
|
226
|
-
updateDirLink(dir: Dir, link: DirPublicLink): Promise<void>;
|
|
227
|
-
shareDir(dir: Dir, user: User): Promise<void>;
|
|
228
|
-
removeSharedLinkIn(link_uuid: string): Promise<void>;
|
|
272
|
+
removeDirLink(link: DirPublicLink): Promise<void>;
|
|
229
273
|
denyContactRequest(contact_uuid: string): Promise<void>;
|
|
230
|
-
|
|
231
|
-
|
|
274
|
+
cancelContactRequest(contact_uuid: string): Promise<void>;
|
|
275
|
+
shareFile(file: File, contact: Contact): Promise<void>;
|
|
276
|
+
blockContact(email: string): Promise<string>;
|
|
232
277
|
listOutgoingContactRequests(): Promise<ContactRequestOut[]>;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
shareFile(file: File, user: User): Promise<void>;
|
|
236
|
-
getDirLinkStatus(dir: Dir): Promise<DirPublicLink | undefined>;
|
|
237
|
-
listIncomingContactRequests(): Promise<ContactRequestIn[]>;
|
|
278
|
+
sendContactRequest(email: string): Promise<string>;
|
|
279
|
+
acceptContactRequest(contact_uuid: string): Promise<string>;
|
|
238
280
|
listLinkedDir(dir: DirWithMetaEnum, link: DirPublicLink): Promise<[Dir[], File[]]>;
|
|
239
|
-
|
|
281
|
+
removeSharedLinkOut(link_uuid: string, receiver_id: bigint): Promise<void>;
|
|
282
|
+
listOutShared(dir?: DirWithMetaEnum | null, contact?: Contact | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
283
|
+
shareDir(dir: Dir, contact: Contact): Promise<void>;
|
|
284
|
+
publicLinkFile(file: File): Promise<FilePublicLink>;
|
|
285
|
+
getFileLinkStatus(file: File): Promise<FilePublicLink | undefined>;
|
|
286
|
+
getBlockedContacts(): Promise<BlockedContact[]>;
|
|
287
|
+
removeSharedLinkIn(link_uuid: string): Promise<void>;
|
|
288
|
+
listInShared(dir?: DirWithMetaEnum | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
289
|
+
deleteContact(contact_uuid: string): Promise<void>;
|
|
240
290
|
updateFileLink(file: File, link: FilePublicLink): Promise<void>;
|
|
241
|
-
|
|
242
|
-
|
|
291
|
+
listIncomingContactRequests(): Promise<ContactRequestIn[]>;
|
|
292
|
+
updateDirLink(dir: Dir, link: DirPublicLink): Promise<void>;
|
|
243
293
|
publicLinkDir(dir: Dir): Promise<DirPublicLink>;
|
|
244
|
-
deleteContact(contact_uuid: string): Promise<void>;
|
|
245
294
|
getContacts(): Promise<Contact[]>;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
createDir(parent: DirEnum, name: string): Promise<Dir>;
|
|
249
|
-
dirExists(parent: AnyDirEnum, name: string): Promise<void>;
|
|
250
|
-
getDirSize(dir: Dir): Promise<DirSizeResponse>;
|
|
251
|
-
listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
|
|
295
|
+
unblockContact(contact_uuid: string): Promise<void>;
|
|
296
|
+
getDirLinkStatus(dir: Dir): Promise<DirPublicLink | undefined>;
|
|
252
297
|
listDirRecursive(dir: DirEnum): Promise<[Dir[], File[]]>;
|
|
253
|
-
|
|
298
|
+
updateDirMetadata(dir: Dir, changes: DirectoryMetaChanges): Promise<Dir>;
|
|
254
299
|
listFavorites(): Promise<[Dir[], File[]]>;
|
|
255
|
-
|
|
256
|
-
|
|
300
|
+
getDirSize(dir: AnyDirEnumWithShareInfo): Promise<DirSizeResponse>;
|
|
301
|
+
dirExists(parent: AnyDirEnum, name: string): Promise<void>;
|
|
302
|
+
setDirColor(dir: Dir, color: DirColor): Promise<Dir>;
|
|
257
303
|
root(): Root;
|
|
258
|
-
findItemInDir(dir: AnyDirEnum, nameOrUuid: string): Promise<
|
|
304
|
+
findItemInDir(dir: AnyDirEnum, nameOrUuid: string): Promise<NonRootItemTagged | undefined>;
|
|
305
|
+
getDir(uuid: string): Promise<Dir>;
|
|
306
|
+
createDir(parent: DirEnum, name: string): Promise<Dir>;
|
|
307
|
+
trashDir(dir: Dir): Promise<Dir>;
|
|
308
|
+
deleteDirPermanently(dir: Dir): Promise<void>;
|
|
309
|
+
listRecents(): Promise<[Dir[], File[]]>;
|
|
310
|
+
listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
|
|
311
|
+
findItemMatchesForName(name: string): Promise<ItemMatch[]>;
|
|
312
|
+
getFile(uuid: string): Promise<File>;
|
|
259
313
|
downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
|
|
314
|
+
updateFileMetadata(file: File, changes: FileMetaChanges): Promise<File>;
|
|
315
|
+
downloadFile(file: FileEnum): Promise<Uint8Array>;
|
|
260
316
|
trashFile(file: File): Promise<File>;
|
|
261
317
|
uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
|
|
262
|
-
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
263
|
-
downloadFile(file: FileEnum): Promise<Uint8Array>;
|
|
264
318
|
deleteFilePermanently(file: File): Promise<void>;
|
|
319
|
+
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
320
|
+
setFavorite(item: NonRootItem, favorited: boolean): Promise<NonRootItemTagged>;
|
|
265
321
|
downloadItemsToZip(params: DownloadFileToZipParams): Promise<void>;
|
|
266
322
|
}
|
|
267
323
|
export class IntoUnderlyingByteSource {
|
|
@@ -289,66 +345,92 @@ export class IntoUnderlyingSource {
|
|
|
289
345
|
export class PauseSignal {
|
|
290
346
|
free(): void;
|
|
291
347
|
pause(): void;
|
|
292
|
-
isPaused(): boolean;
|
|
293
348
|
constructor();
|
|
294
349
|
resume(): void;
|
|
350
|
+
isPaused(): boolean;
|
|
351
|
+
}
|
|
352
|
+
export class ResourceLock {
|
|
353
|
+
private constructor();
|
|
354
|
+
free(): void;
|
|
355
|
+
/**
|
|
356
|
+
* The resource this lock is for
|
|
357
|
+
*/
|
|
358
|
+
resource(): string;
|
|
359
|
+
/**
|
|
360
|
+
* Utility function to be able to immediately drop the lock from JS
|
|
361
|
+
*/
|
|
362
|
+
drop(): void;
|
|
295
363
|
}
|
|
296
364
|
|
|
297
365
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
298
366
|
|
|
299
367
|
export interface InitOutput {
|
|
300
368
|
readonly memory: WebAssembly.Memory;
|
|
301
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
302
369
|
readonly client_toStringified: (a: number) => any;
|
|
303
|
-
readonly
|
|
370
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
304
371
|
readonly __wbg_pausesignal_free: (a: number, b: number) => void;
|
|
305
372
|
readonly pausesignal_new: () => number;
|
|
306
|
-
readonly pausesignal_isPaused: (a: number) => number;
|
|
307
373
|
readonly pausesignal_resume: (a: number) => void;
|
|
374
|
+
readonly pausesignal_isPaused: (a: number) => number;
|
|
375
|
+
readonly pausesignal_pause: (a: number) => void;
|
|
376
|
+
readonly __wbg_resourcelock_free: (a: number, b: number) => void;
|
|
377
|
+
readonly client_lockDrive: (a: number) => any;
|
|
378
|
+
readonly resourcelock_drop: (a: number) => void;
|
|
379
|
+
readonly resourcelock_resource: (a: number) => [number, number];
|
|
380
|
+
readonly client_acquireLock: (a: number, b: any) => any;
|
|
308
381
|
readonly client_makeThumbnailInMemory: (a: number, b: any) => any;
|
|
309
|
-
readonly client_listOutgoingContactRequests: (a: number) => any;
|
|
310
|
-
readonly client_publicLinkFile: (a: number, b: any) => any;
|
|
311
|
-
readonly client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
|
|
312
|
-
readonly client_listInShared: (a: number, b: number) => any;
|
|
313
|
-
readonly client_removeDirLink: (a: number, b: any) => any;
|
|
314
|
-
readonly client_makeUserFromContact: (a: number, b: any) => any;
|
|
315
|
-
readonly client_shareDir: (a: number, b: any, c: any) => any;
|
|
316
|
-
readonly client_removeSharedLinkIn: (a: number, b: number, c: number) => any;
|
|
317
|
-
readonly client_listIncomingContactRequests: (a: number) => any;
|
|
318
382
|
readonly client_getDirLinkStatus: (a: number, b: any) => any;
|
|
319
|
-
readonly client_acceptContactRequest: (a: number, b: number, c: number) => any;
|
|
320
|
-
readonly client_sendContactRequest: (a: number, b: number, c: number) => any;
|
|
321
|
-
readonly client_updateDirLink: (a: number, b: any, c: any) => any;
|
|
322
|
-
readonly client_publicLinkDir: (a: number, b: any) => any;
|
|
323
|
-
readonly client_listLinkedDir: (a: number, b: any, c: any) => any;
|
|
324
383
|
readonly client_listOutShared: (a: number, b: number, c: number) => any;
|
|
325
|
-
readonly
|
|
326
|
-
readonly client_shareFile: (a: number, b: any, c: any) => any;
|
|
384
|
+
readonly client_removeSharedLinkIn: (a: number, b: number, c: number) => any;
|
|
327
385
|
readonly client_cancelContactRequest: (a: number, b: number, c: number) => any;
|
|
328
|
-
readonly
|
|
386
|
+
readonly client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
|
|
387
|
+
readonly client_unblockContact: (a: number, b: number, c: number) => any;
|
|
329
388
|
readonly client_getFileLinkStatus: (a: number, b: any) => any;
|
|
389
|
+
readonly client_getBlockedContacts: (a: number) => any;
|
|
390
|
+
readonly client_publicLinkFile: (a: number, b: any) => any;
|
|
330
391
|
readonly client_updateFileLink: (a: number, b: any, c: any) => any;
|
|
392
|
+
readonly client_listLinkedDir: (a: number, b: any, c: any) => any;
|
|
331
393
|
readonly client_denyContactRequest: (a: number, b: number, c: number) => any;
|
|
332
|
-
readonly
|
|
333
|
-
readonly
|
|
394
|
+
readonly client_acceptContactRequest: (a: number, b: number, c: number) => any;
|
|
395
|
+
readonly client_listOutgoingContactRequests: (a: number) => any;
|
|
396
|
+
readonly client_deleteContact: (a: number, b: number, c: number) => any;
|
|
397
|
+
readonly client_publicLinkDir: (a: number, b: any) => any;
|
|
398
|
+
readonly client_removeDirLink: (a: number, b: any) => any;
|
|
399
|
+
readonly client_getContacts: (a: number) => any;
|
|
400
|
+
readonly client_shareFile: (a: number, b: any, c: any) => any;
|
|
401
|
+
readonly client_shareDir: (a: number, b: any, c: any) => any;
|
|
402
|
+
readonly client_updateDirLink: (a: number, b: any, c: any) => any;
|
|
403
|
+
readonly client_sendContactRequest: (a: number, b: number, c: number) => any;
|
|
404
|
+
readonly client_listIncomingContactRequests: (a: number) => any;
|
|
405
|
+
readonly client_blockContact: (a: number, b: number, c: number) => any;
|
|
406
|
+
readonly client_listInShared: (a: number, b: number) => any;
|
|
334
407
|
readonly login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
335
|
-
readonly
|
|
336
|
-
readonly
|
|
408
|
+
readonly main_js: () => void;
|
|
409
|
+
readonly fromStringified: (a: any) => [number, number, number];
|
|
337
410
|
readonly client_listDirRecursive: (a: number, b: any) => any;
|
|
338
|
-
readonly
|
|
339
|
-
readonly client_root: (a: number) => any;
|
|
340
|
-
readonly client_listFavorites: (a: number) => any;
|
|
341
|
-
readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
|
|
411
|
+
readonly client_setDirColor: (a: number, b: any, c: any) => any;
|
|
342
412
|
readonly client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
|
|
413
|
+
readonly client_deleteDirPermanently: (a: number, b: any) => any;
|
|
414
|
+
readonly client_getDir: (a: number, b: number, c: number) => any;
|
|
415
|
+
readonly client_listFavorites: (a: number) => any;
|
|
343
416
|
readonly client_createDir: (a: number, b: any, c: number, d: number) => any;
|
|
417
|
+
readonly client_root: (a: number) => any;
|
|
418
|
+
readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
|
|
419
|
+
readonly client_trashDir: (a: number, b: any) => any;
|
|
420
|
+
readonly client_getDirSize: (a: number, b: any) => any;
|
|
421
|
+
readonly client_updateDirMetadata: (a: number, b: any, c: any) => any;
|
|
344
422
|
readonly client_listRecents: (a: number) => any;
|
|
345
|
-
readonly
|
|
346
|
-
readonly
|
|
347
|
-
readonly
|
|
423
|
+
readonly client_listDir: (a: number, b: any) => any;
|
|
424
|
+
readonly client_findItemMatchesForName: (a: number, b: number, c: number) => any;
|
|
425
|
+
readonly client_getFile: (a: number, b: number, c: number) => any;
|
|
348
426
|
readonly client_downloadFile: (a: number, b: any) => any;
|
|
427
|
+
readonly client_trashFile: (a: number, b: any) => any;
|
|
428
|
+
readonly client_downloadFileToWriter: (a: number, b: any) => any;
|
|
349
429
|
readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
350
430
|
readonly client_uploadFileFromReader: (a: number, b: any) => any;
|
|
351
|
-
readonly
|
|
431
|
+
readonly client_deleteFilePermanently: (a: number, b: any) => any;
|
|
432
|
+
readonly client_updateFileMetadata: (a: number, b: any, c: any) => any;
|
|
433
|
+
readonly client_setFavorite: (a: number, b: any, c: number) => any;
|
|
352
434
|
readonly client_downloadItemsToZip: (a: number, b: any) => any;
|
|
353
435
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
354
436
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
@@ -373,8 +455,8 @@ export interface InitOutput {
|
|
|
373
455
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
374
456
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbd803380da322cda: (a: number, b: number) => void;
|
|
375
457
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h218a17164c1a612c: (a: number, b: number) => void;
|
|
376
|
-
readonly
|
|
377
|
-
readonly
|
|
458
|
+
readonly closure1193_externref_shim: (a: number, b: number, c: any) => void;
|
|
459
|
+
readonly closure1340_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
378
460
|
readonly __wbindgen_start: () => void;
|
|
379
461
|
}
|
|
380
462
|
|