@filen/sdk-rs 0.3.8 → 0.3.9
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 +189 -173
- package/browser/sdk-rs.js +234 -225
- package/browser/sdk-rs_bg.wasm +0 -0
- package/browser/sdk-rs_bg.wasm.d.ts +54 -53
- package/package.json +2 -1
package/browser/sdk-rs.d.ts
CHANGED
|
@@ -1,80 +1,83 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function fromStringified(serialized: StringifiedClient): Client;
|
|
4
|
-
export function login(email: string, password: string, twoFactorCode?: string | null): Promise<Client>;
|
|
5
4
|
export function main_js(): void;
|
|
5
|
+
export function login(email: string, password: string, twoFactorCode?: string | null): Promise<Client>;
|
|
6
6
|
/**
|
|
7
7
|
* The `ReadableStreamType` enum.
|
|
8
8
|
*
|
|
9
9
|
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
10
10
|
*/
|
|
11
11
|
type ReadableStreamType = "bytes";
|
|
12
|
-
export
|
|
12
|
+
export type FileEnum = File | RootFile;
|
|
13
|
+
|
|
14
|
+
export interface RootFile {
|
|
13
15
|
uuid: UuidStr;
|
|
16
|
+
size: number;
|
|
17
|
+
chunks: number;
|
|
18
|
+
region: string;
|
|
19
|
+
bucket: string;
|
|
20
|
+
meta?: DecryptedDirMeta;
|
|
21
|
+
canMakeThumbnail: boolean;
|
|
14
22
|
}
|
|
15
23
|
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
export interface Dir {
|
|
24
|
+
export interface File {
|
|
19
25
|
uuid: UuidStr;
|
|
26
|
+
meta?: DecryptedFileMeta;
|
|
20
27
|
parent: ParentUuid;
|
|
21
|
-
|
|
28
|
+
size: bigint;
|
|
22
29
|
favorited: boolean;
|
|
23
|
-
|
|
30
|
+
region: string;
|
|
31
|
+
bucket: string;
|
|
32
|
+
chunks: bigint;
|
|
33
|
+
canMakeThumbnail: boolean;
|
|
24
34
|
}
|
|
25
35
|
|
|
26
|
-
export interface
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
meta?: DecryptedDirMeta;
|
|
36
|
+
export interface SharedFile {
|
|
37
|
+
file: RootFile;
|
|
38
|
+
sharingRole: SharingRole;
|
|
30
39
|
}
|
|
31
40
|
|
|
32
|
-
export interface
|
|
41
|
+
export interface DecryptedFileMeta {
|
|
33
42
|
name: string;
|
|
43
|
+
mime: string;
|
|
34
44
|
created?: bigint;
|
|
45
|
+
modified: bigint;
|
|
46
|
+
hash?: Uint8Array;
|
|
47
|
+
size: bigint;
|
|
48
|
+
key: string;
|
|
49
|
+
version: FileEncryptionVersion;
|
|
35
50
|
}
|
|
36
51
|
|
|
37
|
-
export type
|
|
38
|
-
|
|
39
|
-
export type DirEnum = Dir | Root;
|
|
40
|
-
|
|
41
|
-
export interface SharedDir {
|
|
42
|
-
dir: DirWithMetaEnum;
|
|
43
|
-
sharingRole: SharingRole;
|
|
44
|
-
writeAccess: boolean;
|
|
45
|
-
}
|
|
52
|
+
export type Item = File | RootFile | Dir | RootWithMeta | Root;
|
|
46
53
|
|
|
47
|
-
export interface
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
avatar?: string;
|
|
52
|
-
nickName: string;
|
|
53
|
-
lastActive: DateTime<Utc>;
|
|
54
|
-
timestamp: DateTime<Utc>;
|
|
54
|
+
export interface MakeThumbnailInMemoryResult {
|
|
55
|
+
imageData: Uint8Array;
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
|
-
export interface
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
nickName: string;
|
|
60
|
+
export interface MakeThumbnailInMemoryParams {
|
|
61
|
+
file: File;
|
|
62
|
+
maxWidth: number;
|
|
63
|
+
maxHeight: number;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
export interface
|
|
65
|
-
uuid: UuidStr;
|
|
66
|
-
userId: bigint;
|
|
66
|
+
export interface StringifiedClient {
|
|
67
67
|
email: string;
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
rootUuid: string;
|
|
69
|
+
authInfo: string;
|
|
70
|
+
privateKey: string;
|
|
71
|
+
apiKey: string;
|
|
72
|
+
authVersion: number;
|
|
73
|
+
maxParallelRequests?: number;
|
|
74
|
+
maxIoMemoryUsage?: number;
|
|
70
75
|
}
|
|
71
76
|
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
files: bigint;
|
|
77
|
-
dirs: bigint;
|
|
77
|
+
export interface UploadFileStreamParams extends UploadFileParams {
|
|
78
|
+
reader: ReadableStream<Uint8Array>;
|
|
79
|
+
knownSize: bigint | undefined;
|
|
80
|
+
progress?: (bytes: bigint) => void;
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
export interface DownloadFileToZipParams {
|
|
@@ -84,6 +87,8 @@ export interface DownloadFileToZipParams {
|
|
|
84
87
|
abortSignal?: AbortSignal;
|
|
85
88
|
}
|
|
86
89
|
|
|
90
|
+
export type AbortSignal = AbortSignal;
|
|
91
|
+
|
|
87
92
|
export interface UploadFileParams {
|
|
88
93
|
parent: DirEnum;
|
|
89
94
|
name: string;
|
|
@@ -93,8 +98,6 @@ export interface UploadFileParams {
|
|
|
93
98
|
abortSignal?: AbortSignal;
|
|
94
99
|
}
|
|
95
100
|
|
|
96
|
-
export type AbortSignal = AbortSignal;
|
|
97
|
-
|
|
98
101
|
export interface DownloadFileStreamParams {
|
|
99
102
|
file: FileEnum;
|
|
100
103
|
writer: WritableStream<Uint8Array>;
|
|
@@ -104,51 +107,48 @@ export interface DownloadFileStreamParams {
|
|
|
104
107
|
end?: bigint;
|
|
105
108
|
}
|
|
106
109
|
|
|
107
|
-
export interface
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
progress?: (bytes: bigint) => void;
|
|
110
|
+
export interface DecryptedDirMeta {
|
|
111
|
+
name: string;
|
|
112
|
+
created?: bigint;
|
|
111
113
|
}
|
|
112
114
|
|
|
113
|
-
export interface
|
|
115
|
+
export interface SharedDir {
|
|
116
|
+
dir: DirWithMetaEnum;
|
|
117
|
+
sharingRole: SharingRole;
|
|
118
|
+
writeAccess: boolean;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type DirWithMetaEnum = Dir | RootWithMeta;
|
|
122
|
+
|
|
123
|
+
export interface Dir {
|
|
114
124
|
uuid: UuidStr;
|
|
115
|
-
meta?: DecryptedFileMeta;
|
|
116
125
|
parent: ParentUuid;
|
|
117
|
-
|
|
126
|
+
color?: string;
|
|
118
127
|
favorited: boolean;
|
|
119
|
-
|
|
120
|
-
bucket: string;
|
|
121
|
-
chunks: bigint;
|
|
128
|
+
meta?: DecryptedDirMeta;
|
|
122
129
|
}
|
|
123
130
|
|
|
124
|
-
export interface
|
|
125
|
-
|
|
126
|
-
sharingRole: SharingRole;
|
|
131
|
+
export interface Root {
|
|
132
|
+
uuid: UuidStr;
|
|
127
133
|
}
|
|
128
134
|
|
|
129
|
-
export type
|
|
135
|
+
export type DirEnum = Dir | Root;
|
|
130
136
|
|
|
131
|
-
export
|
|
137
|
+
export type AnyDirEnum = Dir | RootWithMeta | Root;
|
|
138
|
+
|
|
139
|
+
export interface RootWithMeta {
|
|
132
140
|
uuid: UuidStr;
|
|
133
|
-
|
|
134
|
-
chunks: number;
|
|
135
|
-
region: string;
|
|
136
|
-
bucket: string;
|
|
141
|
+
color?: string;
|
|
137
142
|
meta?: DecryptedDirMeta;
|
|
138
143
|
}
|
|
139
144
|
|
|
140
|
-
export interface
|
|
141
|
-
name: string;
|
|
142
|
-
mime: string;
|
|
143
|
-
created?: bigint;
|
|
144
|
-
modified: bigint;
|
|
145
|
-
hash?: Uint8Array;
|
|
145
|
+
export interface DirSizeResponse {
|
|
146
146
|
size: bigint;
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
files: bigint;
|
|
148
|
+
dirs: bigint;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
export type
|
|
151
|
+
export type NonRootObject = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
|
|
152
152
|
|
|
153
153
|
export interface User {
|
|
154
154
|
email: string;
|
|
@@ -173,15 +173,29 @@ export interface FilePublicLink {
|
|
|
173
173
|
salt: Uint8Array;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
export interface
|
|
176
|
+
export interface ContactRequestOut {
|
|
177
|
+
uuid: UuidStr;
|
|
177
178
|
email: string;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
avatar?: string;
|
|
180
|
+
nickName: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface ContactRequestIn {
|
|
184
|
+
uuid: UuidStr;
|
|
185
|
+
userId: bigint;
|
|
186
|
+
email: string;
|
|
187
|
+
avatar?: string;
|
|
188
|
+
nickName: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface Contact {
|
|
192
|
+
uuid: UuidStr;
|
|
193
|
+
userId: bigint;
|
|
194
|
+
email: string;
|
|
195
|
+
avatar?: string;
|
|
196
|
+
nickName: string;
|
|
197
|
+
lastActive: DateTime<Utc>;
|
|
198
|
+
timestamp: DateTime<Utc>;
|
|
185
199
|
}
|
|
186
200
|
|
|
187
201
|
export type ParentUuid = UuidStr | "trash" | "recents" | "favorites" | "links";
|
|
@@ -195,64 +209,65 @@ export type FileEncryptionVersion = 1 | 2 | 3;
|
|
|
195
209
|
export class Client {
|
|
196
210
|
private constructor();
|
|
197
211
|
free(): void;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
denyContactRequest(contact_uuid: string): Promise<void>;
|
|
201
|
-
getContacts(): Promise<Contact[]>;
|
|
202
|
-
listOutShared(dir?: DirWithMetaEnum | null, user?: User | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
203
|
-
deleteContact(contact_uuid: string): Promise<void>;
|
|
204
|
-
removeDirLink(link: DirPublicLink): Promise<void>;
|
|
205
|
-
listInShared(dir?: DirWithMetaEnum | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
206
|
-
publicLinkDir(dir: Dir): Promise<DirPublicLink>;
|
|
207
|
-
shareFile(file: File, user: User): Promise<void>;
|
|
208
|
-
updateFileLink(file: File, link: FilePublicLink): Promise<void>;
|
|
209
|
-
makeUserFromContact(contact: Contact): Promise<User>;
|
|
210
|
-
updateDirLink(dir: Dir, link: DirPublicLink): Promise<void>;
|
|
211
|
-
removeSharedLinkIn(link_uuid: string): Promise<void>;
|
|
212
|
-
publicLinkFile(file: File): Promise<FilePublicLink>;
|
|
213
|
-
getDirLinkStatus(dir: Dir): Promise<DirPublicLink | undefined>;
|
|
214
|
-
listIncomingContactRequests(): Promise<ContactRequestIn[]>;
|
|
215
|
-
shareDir(dir: Dir, user: User): Promise<void>;
|
|
216
|
-
removeSharedLinkOut(link_uuid: string, receiver_id: bigint): Promise<void>;
|
|
217
|
-
listLinkedDir(dir: DirWithMetaEnum, link: DirPublicLink): Promise<[Dir[], File[]]>;
|
|
218
|
-
sendContactRequest(email: string): Promise<string>;
|
|
219
|
-
acceptContactRequest(contact_uuid: string): Promise<string>;
|
|
220
|
-
cancelContactRequest(contact_uuid: string): Promise<void>;
|
|
221
|
-
deleteFilePermanently(file: File): Promise<void>;
|
|
212
|
+
makeThumbnailInMemory(params: MakeThumbnailInMemoryParams): Promise<MakeThumbnailInMemoryResult | undefined>;
|
|
213
|
+
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
222
214
|
trashFile(file: File): Promise<File>;
|
|
223
|
-
|
|
215
|
+
deleteFilePermanently(file: File): Promise<void>;
|
|
224
216
|
downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
|
|
225
|
-
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
226
217
|
uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
|
|
227
|
-
|
|
228
|
-
|
|
218
|
+
downloadFile(file: FileEnum): Promise<Uint8Array>;
|
|
219
|
+
toStringified(): StringifiedClient;
|
|
229
220
|
listFavorites(): Promise<[Dir[], File[]]>;
|
|
230
|
-
|
|
221
|
+
root(): Root;
|
|
231
222
|
trashDir(dir: Dir): Promise<Dir>;
|
|
223
|
+
findItemInDir(dir: AnyDirEnum, nameOrUuid: string): Promise<NonRootObject | undefined>;
|
|
224
|
+
listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
|
|
232
225
|
deleteDirPermanently(dir: Dir): Promise<void>;
|
|
233
|
-
|
|
226
|
+
listRecents(): Promise<[Dir[], File[]]>;
|
|
234
227
|
dirExists(parent: AnyDirEnum, name: string): Promise<void>;
|
|
235
|
-
findItemInDir(dir: AnyDirEnum, nameOrUuid: string): Promise<NonRootObject | undefined>;
|
|
236
|
-
root(): Root;
|
|
237
228
|
getDirSize(dir: Dir): Promise<DirSizeResponse>;
|
|
238
229
|
listDirRecursive(dir: DirEnum): Promise<[Dir[], File[]]>;
|
|
239
|
-
|
|
230
|
+
createDir(parent: DirEnum, name: string): Promise<Dir>;
|
|
231
|
+
downloadItemsToZip(params: DownloadFileToZipParams): Promise<void>;
|
|
232
|
+
acceptContactRequest(contact_uuid: string): Promise<string>;
|
|
233
|
+
removeDirLink(link: DirPublicLink): Promise<void>;
|
|
234
|
+
deleteContact(contact_uuid: string): Promise<void>;
|
|
235
|
+
getContacts(): Promise<Contact[]>;
|
|
236
|
+
removeSharedLinkIn(link_uuid: string): Promise<void>;
|
|
237
|
+
listInShared(dir?: DirWithMetaEnum | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
238
|
+
makeUserFromContact(contact: Contact): Promise<User>;
|
|
239
|
+
listIncomingContactRequests(): Promise<ContactRequestIn[]>;
|
|
240
|
+
listLinkedDir(dir: DirWithMetaEnum, link: DirPublicLink): Promise<[Dir[], File[]]>;
|
|
241
|
+
getFileLinkStatus(file: File): Promise<FilePublicLink | undefined>;
|
|
242
|
+
sendContactRequest(email: string): Promise<string>;
|
|
243
|
+
updateDirLink(dir: Dir, link: DirPublicLink): Promise<void>;
|
|
244
|
+
getDirLinkStatus(dir: Dir): Promise<DirPublicLink | undefined>;
|
|
245
|
+
publicLinkFile(file: File): Promise<FilePublicLink>;
|
|
246
|
+
publicLinkDir(dir: Dir): Promise<DirPublicLink>;
|
|
247
|
+
removeSharedLinkOut(link_uuid: string, receiver_id: bigint): Promise<void>;
|
|
248
|
+
listOutShared(dir?: DirWithMetaEnum | null, user?: User | null): Promise<[SharedDirectory[], SharedFile[]]>;
|
|
249
|
+
shareDir(dir: Dir, user: User): Promise<void>;
|
|
250
|
+
cancelContactRequest(contact_uuid: string): Promise<void>;
|
|
251
|
+
denyContactRequest(contact_uuid: string): Promise<void>;
|
|
252
|
+
listOutgoingContactRequests(): Promise<ContactRequestOut[]>;
|
|
253
|
+
updateFileLink(file: File, link: FilePublicLink): Promise<void>;
|
|
254
|
+
shareFile(file: File, user: User): Promise<void>;
|
|
240
255
|
}
|
|
241
256
|
export class IntoUnderlyingByteSource {
|
|
242
257
|
private constructor();
|
|
243
258
|
free(): void;
|
|
244
|
-
start(controller: ReadableByteStreamController): void;
|
|
245
|
-
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
246
259
|
cancel(): void;
|
|
247
|
-
|
|
260
|
+
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
261
|
+
start(controller: ReadableByteStreamController): void;
|
|
248
262
|
readonly autoAllocateChunkSize: number;
|
|
263
|
+
readonly type: ReadableStreamType;
|
|
249
264
|
}
|
|
250
265
|
export class IntoUnderlyingSink {
|
|
251
266
|
private constructor();
|
|
252
267
|
free(): void;
|
|
253
268
|
write(chunk: any): Promise<any>;
|
|
254
|
-
abort(reason: any): Promise<any>;
|
|
255
269
|
close(): Promise<any>;
|
|
270
|
+
abort(reason: any): Promise<any>;
|
|
256
271
|
}
|
|
257
272
|
export class IntoUnderlyingSource {
|
|
258
273
|
private constructor();
|
|
@@ -265,65 +280,66 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
265
280
|
|
|
266
281
|
export interface InitOutput {
|
|
267
282
|
readonly memory: WebAssembly.Memory;
|
|
268
|
-
readonly
|
|
269
|
-
readonly
|
|
283
|
+
readonly client_makeThumbnailInMemory: (a: number, b: any) => any;
|
|
284
|
+
readonly client_trashFile: (a: number, b: any) => any;
|
|
285
|
+
readonly client_uploadFileFromReader: (a: number, b: any) => any;
|
|
286
|
+
readonly client_downloadFile: (a: number, b: any) => any;
|
|
287
|
+
readonly client_downloadFileToWriter: (a: number, b: any) => any;
|
|
288
|
+
readonly client_deleteFilePermanently: (a: number, b: any) => any;
|
|
289
|
+
readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
290
|
+
readonly client_toStringified: (a: number) => any;
|
|
291
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
292
|
+
readonly client_createDir: (a: number, b: any, c: number, d: number) => any;
|
|
293
|
+
readonly client_listFavorites: (a: number) => any;
|
|
294
|
+
readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
|
|
295
|
+
readonly client_getDirSize: (a: number, b: any) => any;
|
|
296
|
+
readonly client_listRecents: (a: number) => any;
|
|
297
|
+
readonly client_trashDir: (a: number, b: any) => any;
|
|
298
|
+
readonly client_listDirRecursive: (a: number, b: any) => any;
|
|
299
|
+
readonly client_listDir: (a: number, b: any) => any;
|
|
300
|
+
readonly client_deleteDirPermanently: (a: number, b: any) => any;
|
|
301
|
+
readonly client_root: (a: number) => any;
|
|
302
|
+
readonly client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
|
|
303
|
+
readonly client_downloadItemsToZip: (a: number, b: any) => any;
|
|
304
|
+
readonly main_js: () => void;
|
|
305
|
+
readonly fromStringified: (a: any) => [number, number, number];
|
|
306
|
+
readonly login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
270
307
|
readonly client_removeSharedLinkIn: (a: number, b: number, c: number) => any;
|
|
271
|
-
readonly
|
|
308
|
+
readonly client_getDirLinkStatus: (a: number, b: any) => any;
|
|
309
|
+
readonly client_publicLinkDir: (a: number, b: any) => any;
|
|
310
|
+
readonly client_getFileLinkStatus: (a: number, b: any) => any;
|
|
311
|
+
readonly client_cancelContactRequest: (a: number, b: number, c: number) => any;
|
|
312
|
+
readonly client_updateFileLink: (a: number, b: any, c: any) => any;
|
|
313
|
+
readonly client_removeDirLink: (a: number, b: any) => any;
|
|
272
314
|
readonly client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
|
|
273
|
-
readonly
|
|
315
|
+
readonly client_denyContactRequest: (a: number, b: number, c: number) => any;
|
|
316
|
+
readonly client_publicLinkFile: (a: number, b: any) => any;
|
|
317
|
+
readonly client_shareDir: (a: number, b: any, c: any) => any;
|
|
318
|
+
readonly client_listIncomingContactRequests: (a: number) => any;
|
|
319
|
+
readonly client_listOutgoingContactRequests: (a: number) => any;
|
|
274
320
|
readonly client_listOutShared: (a: number, b: number, c: number) => any;
|
|
275
|
-
readonly client_cancelContactRequest: (a: number, b: number, c: number) => any;
|
|
276
321
|
readonly client_makeUserFromContact: (a: number, b: any) => any;
|
|
277
|
-
readonly client_removeDirLink: (a: number, b: any) => any;
|
|
278
|
-
readonly client_updateFileLink: (a: number, b: any, c: any) => any;
|
|
279
322
|
readonly client_deleteContact: (a: number, b: number, c: number) => any;
|
|
280
|
-
readonly client_shareDir: (a: number, b: any, c: any) => any;
|
|
281
|
-
readonly client_acceptContactRequest: (a: number, b: number, c: number) => any;
|
|
282
323
|
readonly client_listLinkedDir: (a: number, b: any, c: any) => any;
|
|
283
|
-
readonly
|
|
284
|
-
readonly
|
|
285
|
-
readonly client_denyContactRequest: (a: number, b: number, c: number) => any;
|
|
286
|
-
readonly client_publicLinkDir: (a: number, b: any) => any;
|
|
287
|
-
readonly client_listOutgoingContactRequests: (a: number) => any;
|
|
288
|
-
readonly client_getDirLinkStatus: (a: number, b: any) => any;
|
|
289
|
-
readonly client_updateDirLink: (a: number, b: any, c: any) => any;
|
|
324
|
+
readonly client_acceptContactRequest: (a: number, b: number, c: number) => any;
|
|
325
|
+
readonly client_sendContactRequest: (a: number, b: number, c: number) => any;
|
|
290
326
|
readonly client_listInShared: (a: number, b: number) => any;
|
|
291
|
-
readonly
|
|
292
|
-
readonly
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
295
|
-
readonly
|
|
296
|
-
readonly client_trashFile: (a: number, b: any) => any;
|
|
297
|
-
readonly client_uploadFileFromReader: (a: number, b: any) => any;
|
|
298
|
-
readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
299
|
-
readonly client_downloadFileToWriter: (a: number, b: any) => any;
|
|
300
|
-
readonly client_downloadItemsToZip: (a: number, b: any) => any;
|
|
301
|
-
readonly client_trashDir: (a: number, b: any) => any;
|
|
302
|
-
readonly client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
|
|
303
|
-
readonly client_listRecents: (a: number) => any;
|
|
304
|
-
readonly client_listDir: (a: number, b: any) => any;
|
|
305
|
-
readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
|
|
306
|
-
readonly client_getDirSize: (a: number, b: any) => any;
|
|
307
|
-
readonly client_createDir: (a: number, b: any, c: number, d: number) => any;
|
|
308
|
-
readonly client_listFavorites: (a: number) => any;
|
|
309
|
-
readonly client_root: (a: number) => any;
|
|
310
|
-
readonly client_deleteDirPermanently: (a: number, b: any) => any;
|
|
311
|
-
readonly client_listDirRecursive: (a: number, b: any) => any;
|
|
312
|
-
readonly client_toStringified: (a: number) => any;
|
|
313
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
314
|
-
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
315
|
-
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
316
|
-
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
317
|
-
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
318
|
-
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
319
|
-
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
320
|
-
readonly intounderlyingsink_close: (a: number) => any;
|
|
327
|
+
readonly client_getContacts: (a: number) => any;
|
|
328
|
+
readonly client_updateDirLink: (a: number, b: any, c: any) => any;
|
|
329
|
+
readonly client_shareFile: (a: number, b: any, c: any) => any;
|
|
330
|
+
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
331
|
+
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
321
332
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
322
333
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
323
|
-
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
324
|
-
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
325
|
-
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
326
334
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
335
|
+
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
336
|
+
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
337
|
+
readonly intounderlyingsink_close: (a: number) => any;
|
|
338
|
+
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
339
|
+
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
340
|
+
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
341
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
342
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
327
343
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
328
344
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
329
345
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -332,10 +348,10 @@ export interface InitOutput {
|
|
|
332
348
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
333
349
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
334
350
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
335
|
-
readonly
|
|
336
|
-
readonly
|
|
337
|
-
readonly
|
|
338
|
-
readonly
|
|
351
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc5d531eab69f2018: (a: number, b: number) => void;
|
|
352
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7a4fb4e79b1372c1: (a: number, b: number) => void;
|
|
353
|
+
readonly closure1463_externref_shim: (a: number, b: number, c: any) => void;
|
|
354
|
+
readonly closure1626_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
339
355
|
readonly __wbindgen_start: () => void;
|
|
340
356
|
}
|
|
341
357
|
|