@filen/sdk-rs 0.3.7 → 0.3.8
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 +196 -68
- package/browser/sdk-rs.js +271 -65
- package/browser/sdk-rs_bg.wasm +0 -0
- package/browser/sdk-rs_bg.wasm.d.ts +37 -14
- package/package.json +1 -1
package/browser/sdk-rs.d.ts
CHANGED
|
@@ -1,15 +1,81 @@
|
|
|
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
|
*
|
|
9
9
|
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
10
10
|
*/
|
|
11
11
|
type ReadableStreamType = "bytes";
|
|
12
|
-
export
|
|
12
|
+
export interface Root {
|
|
13
|
+
uuid: UuidStr;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type DirWithMetaEnum = Dir | RootWithMeta;
|
|
17
|
+
|
|
18
|
+
export interface Dir {
|
|
19
|
+
uuid: UuidStr;
|
|
20
|
+
parent: ParentUuid;
|
|
21
|
+
color?: string;
|
|
22
|
+
favorited: boolean;
|
|
23
|
+
meta?: DecryptedDirMeta;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface RootWithMeta {
|
|
27
|
+
uuid: UuidStr;
|
|
28
|
+
color?: string;
|
|
29
|
+
meta?: DecryptedDirMeta;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface DecryptedDirMeta {
|
|
33
|
+
name: string;
|
|
34
|
+
created?: bigint;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type AnyDirEnum = Dir | RootWithMeta | Root;
|
|
38
|
+
|
|
39
|
+
export type DirEnum = Dir | Root;
|
|
40
|
+
|
|
41
|
+
export interface SharedDir {
|
|
42
|
+
dir: DirWithMetaEnum;
|
|
43
|
+
sharingRole: SharingRole;
|
|
44
|
+
writeAccess: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface Contact {
|
|
48
|
+
uuid: UuidStr;
|
|
49
|
+
userId: bigint;
|
|
50
|
+
email: string;
|
|
51
|
+
avatar?: string;
|
|
52
|
+
nickName: string;
|
|
53
|
+
lastActive: DateTime<Utc>;
|
|
54
|
+
timestamp: DateTime<Utc>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface ContactRequestOut {
|
|
58
|
+
uuid: UuidStr;
|
|
59
|
+
email: string;
|
|
60
|
+
avatar?: string;
|
|
61
|
+
nickName: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ContactRequestIn {
|
|
65
|
+
uuid: UuidStr;
|
|
66
|
+
userId: bigint;
|
|
67
|
+
email: string;
|
|
68
|
+
avatar?: string;
|
|
69
|
+
nickName: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type NonRootObject = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
|
|
73
|
+
|
|
74
|
+
export interface DirSizeResponse {
|
|
75
|
+
size: bigint;
|
|
76
|
+
files: bigint;
|
|
77
|
+
dirs: bigint;
|
|
78
|
+
}
|
|
13
79
|
|
|
14
80
|
export interface DownloadFileToZipParams {
|
|
15
81
|
items: Item[];
|
|
@@ -18,49 +84,30 @@ export interface DownloadFileToZipParams {
|
|
|
18
84
|
abortSignal?: AbortSignal;
|
|
19
85
|
}
|
|
20
86
|
|
|
21
|
-
export type AbortSignal = AbortSignal;
|
|
22
|
-
|
|
23
|
-
export interface UploadFileStreamParams extends UploadFileParams {
|
|
24
|
-
reader: ReadableStream<Uint8Array>;
|
|
25
|
-
knownSize: bigint | undefined;
|
|
26
|
-
progress?: (bytes: bigint) => void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
87
|
export interface UploadFileParams {
|
|
30
88
|
parent: DirEnum;
|
|
31
89
|
name: string;
|
|
32
90
|
created?: bigint;
|
|
33
91
|
modified?: bigint;
|
|
34
|
-
mime?: string
|
|
92
|
+
mime?: string;
|
|
35
93
|
abortSignal?: AbortSignal;
|
|
36
94
|
}
|
|
37
95
|
|
|
96
|
+
export type AbortSignal = AbortSignal;
|
|
97
|
+
|
|
38
98
|
export interface DownloadFileStreamParams {
|
|
39
|
-
file:
|
|
99
|
+
file: FileEnum;
|
|
40
100
|
writer: WritableStream<Uint8Array>;
|
|
41
101
|
progress?: (bytes: bigint) => void;
|
|
42
102
|
abortSignal?: AbortSignal;
|
|
43
|
-
start?: bigint
|
|
44
|
-
end?: bigint
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface DecryptedDirMeta {
|
|
48
|
-
name: string;
|
|
49
|
-
created?: bigint;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface Root {
|
|
53
|
-
uuid: UuidStr;
|
|
103
|
+
start?: bigint;
|
|
104
|
+
end?: bigint;
|
|
54
105
|
}
|
|
55
106
|
|
|
56
|
-
export
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
parent: ParentUuid;
|
|
61
|
-
color?: string;
|
|
62
|
-
favorited: boolean;
|
|
63
|
-
meta?: DecryptedDirMeta;
|
|
107
|
+
export interface UploadFileStreamParams extends UploadFileParams {
|
|
108
|
+
reader: ReadableStream<Uint8Array>;
|
|
109
|
+
knownSize: bigint | undefined;
|
|
110
|
+
progress?: (bytes: bigint) => void;
|
|
64
111
|
}
|
|
65
112
|
|
|
66
113
|
export interface File {
|
|
@@ -74,6 +121,22 @@ export interface File {
|
|
|
74
121
|
chunks: bigint;
|
|
75
122
|
}
|
|
76
123
|
|
|
124
|
+
export interface SharedFile {
|
|
125
|
+
file: RootFile;
|
|
126
|
+
sharingRole: SharingRole;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type FileEnum = File | RootFile;
|
|
130
|
+
|
|
131
|
+
export interface RootFile {
|
|
132
|
+
uuid: UuidStr;
|
|
133
|
+
size: number;
|
|
134
|
+
chunks: number;
|
|
135
|
+
region: string;
|
|
136
|
+
bucket: string;
|
|
137
|
+
meta?: DecryptedDirMeta;
|
|
138
|
+
}
|
|
139
|
+
|
|
77
140
|
export interface DecryptedFileMeta {
|
|
78
141
|
name: string;
|
|
79
142
|
mime: string;
|
|
@@ -85,6 +148,31 @@ export interface DecryptedFileMeta {
|
|
|
85
148
|
version: FileEncryptionVersion;
|
|
86
149
|
}
|
|
87
150
|
|
|
151
|
+
export type Item = File | RootFile | Dir | RootWithMeta | Root;
|
|
152
|
+
|
|
153
|
+
export interface User {
|
|
154
|
+
email: string;
|
|
155
|
+
publicKey: Uint8Array;
|
|
156
|
+
id: bigint;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface DirPublicLink {
|
|
160
|
+
linkUuid: UuidStr;
|
|
161
|
+
linkKey?: MetaKey;
|
|
162
|
+
password?: string | Uint8Array;
|
|
163
|
+
expiration: PublicLinkExpiration;
|
|
164
|
+
enableDownload: boolean;
|
|
165
|
+
salt?: Uint8Array;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface FilePublicLink {
|
|
169
|
+
linkUuid: UuidStr;
|
|
170
|
+
password?: string | Uint8Array;
|
|
171
|
+
expiration: PublicLinkExpiration;
|
|
172
|
+
downloadable: boolean;
|
|
173
|
+
salt: Uint8Array;
|
|
174
|
+
}
|
|
175
|
+
|
|
88
176
|
export interface StringifiedClient {
|
|
89
177
|
email: string;
|
|
90
178
|
rootUuid: string;
|
|
@@ -92,46 +180,63 @@ export interface StringifiedClient {
|
|
|
92
180
|
privateKey: string;
|
|
93
181
|
apiKey: string;
|
|
94
182
|
authVersion: number;
|
|
95
|
-
maxParallelRequests?: number
|
|
96
|
-
maxIoMemoryUsage?: number
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface DirSizeResponse {
|
|
100
|
-
size: bigint;
|
|
101
|
-
files: bigint;
|
|
102
|
-
dirs: bigint;
|
|
183
|
+
maxParallelRequests?: number;
|
|
184
|
+
maxIoMemoryUsage?: number;
|
|
103
185
|
}
|
|
104
186
|
|
|
105
|
-
export type NonRootObject = ({ type: "dir" } & Dir) | ({ type: "file" } & File);
|
|
106
|
-
|
|
107
187
|
export type ParentUuid = UuidStr | "trash" | "recents" | "favorites" | "links";
|
|
108
188
|
|
|
109
|
-
export type
|
|
189
|
+
export type PublicLinkExpiration = "never" | "1h" | "6h" | "1d" | "3d" | "7d" | "14d" | "30d";
|
|
110
190
|
|
|
111
191
|
export type UuidStr = string;
|
|
112
192
|
|
|
193
|
+
export type FileEncryptionVersion = 1 | 2 | 3;
|
|
194
|
+
|
|
113
195
|
export class Client {
|
|
114
196
|
private constructor();
|
|
115
197
|
free(): void;
|
|
116
|
-
|
|
117
|
-
|
|
198
|
+
listOutgoingContactRequests(): Promise<ContactRequestOut[]>;
|
|
199
|
+
getFileLinkStatus(file: File): Promise<FilePublicLink | undefined>;
|
|
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>;
|
|
118
221
|
deleteFilePermanently(file: File): Promise<void>;
|
|
119
|
-
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
120
|
-
downloadFile(file: File): Promise<Uint8Array>;
|
|
121
222
|
trashFile(file: File): Promise<File>;
|
|
223
|
+
downloadFile(file: FileEnum): Promise<Uint8Array>;
|
|
122
224
|
downloadFileToWriter(params: DownloadFileStreamParams): Promise<void>;
|
|
225
|
+
uploadFileFromReader(params: UploadFileStreamParams): Promise<File>;
|
|
123
226
|
uploadFile(data: Uint8Array, params: UploadFileParams): Promise<File>;
|
|
124
|
-
|
|
125
|
-
root(): Root;
|
|
126
|
-
createDir(parent: DirEnum, name: string): Promise<Dir>;
|
|
127
|
-
deleteDirPermanently(dir: Dir): Promise<void>;
|
|
128
|
-
dirExists(parent: DirEnum, name: string): Promise<void>;
|
|
129
|
-
trashDir(dir: Dir): Promise<Dir>;
|
|
130
|
-
listRecents(): Promise<[Dir[], File[]]>;
|
|
131
|
-
findItemInDir(dir: DirEnum, nameOrUuid: string): Promise<NonRootObject | undefined>;
|
|
227
|
+
downloadItemsToZip(params: DownloadFileToZipParams): Promise<void>;
|
|
132
228
|
listDir(dir: DirEnum): Promise<[Dir[], File[]]>;
|
|
133
229
|
listFavorites(): Promise<[Dir[], File[]]>;
|
|
230
|
+
listRecents(): Promise<[Dir[], File[]]>;
|
|
231
|
+
trashDir(dir: Dir): Promise<Dir>;
|
|
232
|
+
deleteDirPermanently(dir: Dir): Promise<void>;
|
|
233
|
+
createDir(parent: DirEnum, name: string): Promise<Dir>;
|
|
234
|
+
dirExists(parent: AnyDirEnum, name: string): Promise<void>;
|
|
235
|
+
findItemInDir(dir: AnyDirEnum, nameOrUuid: string): Promise<NonRootObject | undefined>;
|
|
236
|
+
root(): Root;
|
|
237
|
+
getDirSize(dir: Dir): Promise<DirSizeResponse>;
|
|
134
238
|
listDirRecursive(dir: DirEnum): Promise<[Dir[], File[]]>;
|
|
239
|
+
toStringified(): StringifiedClient;
|
|
135
240
|
}
|
|
136
241
|
export class IntoUnderlyingByteSource {
|
|
137
242
|
private constructor();
|
|
@@ -160,29 +265,52 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
160
265
|
|
|
161
266
|
export interface InitOutput {
|
|
162
267
|
readonly memory: WebAssembly.Memory;
|
|
268
|
+
readonly client_listIncomingContactRequests: (a: number) => any;
|
|
269
|
+
readonly client_getContacts: (a: number) => any;
|
|
270
|
+
readonly client_removeSharedLinkIn: (a: number, b: number, c: number) => any;
|
|
271
|
+
readonly client_publicLinkFile: (a: number, b: any) => any;
|
|
272
|
+
readonly client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
|
|
273
|
+
readonly client_sendContactRequest: (a: number, b: number, c: number) => any;
|
|
274
|
+
readonly client_listOutShared: (a: number, b: number, c: number) => any;
|
|
275
|
+
readonly client_cancelContactRequest: (a: number, b: number, c: number) => any;
|
|
276
|
+
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
|
+
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
|
+
readonly client_listLinkedDir: (a: number, b: any, c: any) => any;
|
|
283
|
+
readonly client_getFileLinkStatus: (a: number, b: any) => any;
|
|
284
|
+
readonly client_shareFile: (a: number, b: any, c: any) => any;
|
|
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;
|
|
290
|
+
readonly client_listInShared: (a: number, b: number) => any;
|
|
163
291
|
readonly login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
164
|
-
readonly fromStringified: (a: any) => [number, number, number];
|
|
165
292
|
readonly main_js: () => void;
|
|
166
|
-
readonly
|
|
167
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
168
|
-
readonly client_toStringified: (a: number) => any;
|
|
293
|
+
readonly fromStringified: (a: any) => [number, number, number];
|
|
169
294
|
readonly client_downloadFile: (a: number, b: any) => any;
|
|
170
|
-
readonly client_uploadFileFromReader: (a: number, b: any) => any;
|
|
171
|
-
readonly client_downloadFileToWriter: (a: number, b: any) => any;
|
|
172
|
-
readonly client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
173
295
|
readonly client_deleteFilePermanently: (a: number, b: any) => any;
|
|
174
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;
|
|
175
302
|
readonly client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
|
|
303
|
+
readonly client_listRecents: (a: number) => any;
|
|
176
304
|
readonly client_listDir: (a: number, b: any) => any;
|
|
177
|
-
readonly client_deleteDirPermanently: (a: number, b: any) => any;
|
|
178
|
-
readonly client_trashDir: (a: number, b: any) => any;
|
|
179
305
|
readonly client_dirExists: (a: number, b: any, c: number, d: number) => any;
|
|
180
|
-
readonly
|
|
306
|
+
readonly client_getDirSize: (a: number, b: any) => any;
|
|
181
307
|
readonly client_createDir: (a: number, b: any, c: number, d: number) => any;
|
|
182
308
|
readonly client_listFavorites: (a: number) => any;
|
|
183
|
-
readonly
|
|
309
|
+
readonly client_root: (a: number) => any;
|
|
310
|
+
readonly client_deleteDirPermanently: (a: number, b: any) => any;
|
|
184
311
|
readonly client_listDirRecursive: (a: number, b: any) => any;
|
|
185
|
-
readonly
|
|
312
|
+
readonly client_toStringified: (a: number) => any;
|
|
313
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
186
314
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
187
315
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
188
316
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
@@ -206,8 +334,8 @@ export interface InitOutput {
|
|
|
206
334
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
207
335
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad07d0627257b45: (a: number, b: number) => void;
|
|
208
336
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h96ccbfe273ba439a: (a: number, b: number) => void;
|
|
209
|
-
readonly
|
|
210
|
-
readonly
|
|
337
|
+
readonly closure937_externref_shim: (a: number, b: number, c: any) => void;
|
|
338
|
+
readonly closure1103_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
211
339
|
readonly __wbindgen_start: () => void;
|
|
212
340
|
}
|
|
213
341
|
|
package/browser/sdk-rs.js
CHANGED
|
@@ -220,10 +220,6 @@ export function fromStringified(serialized) {
|
|
|
220
220
|
return Client.__wrap(ret[0]);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
export function main_js() {
|
|
224
|
-
wasm.main_js();
|
|
225
|
-
}
|
|
226
|
-
|
|
227
223
|
/**
|
|
228
224
|
* @param {string} email
|
|
229
225
|
* @param {string} password
|
|
@@ -241,6 +237,10 @@ export function login(email, password, twoFactorCode) {
|
|
|
241
237
|
return ret;
|
|
242
238
|
}
|
|
243
239
|
|
|
240
|
+
export function main_js() {
|
|
241
|
+
wasm.main_js();
|
|
242
|
+
}
|
|
243
|
+
|
|
244
244
|
function passArray8ToWasm0(arg, malloc) {
|
|
245
245
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
246
246
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -256,11 +256,11 @@ function __wbg_adapter_63(arg0, arg1) {
|
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
function __wbg_adapter_66(arg0, arg1, arg2) {
|
|
259
|
-
wasm.
|
|
259
|
+
wasm.closure937_externref_shim(arg0, arg1, arg2);
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
function
|
|
263
|
-
wasm.
|
|
262
|
+
function __wbg_adapter_334(arg0, arg1, arg2, arg3) {
|
|
263
|
+
wasm.closure1103_externref_shim(arg0, arg1, arg2, arg3);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
const __wbindgen_enum_ReadableStreamReaderMode = ["byob"];
|
|
@@ -297,42 +297,213 @@ export class Client {
|
|
|
297
297
|
wasm.__wbg_client_free(ptr, 0);
|
|
298
298
|
}
|
|
299
299
|
/**
|
|
300
|
-
* @
|
|
300
|
+
* @returns {ContactRequestOut[]}
|
|
301
|
+
*/
|
|
302
|
+
listOutgoingContactRequests() {
|
|
303
|
+
const ret = wasm.client_listOutgoingContactRequests(this.__wbg_ptr);
|
|
304
|
+
return ret;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @param {File} file
|
|
308
|
+
* @returns {Promise<FilePublicLink | undefined>}
|
|
309
|
+
*/
|
|
310
|
+
getFileLinkStatus(file) {
|
|
311
|
+
const ret = wasm.client_getFileLinkStatus(this.__wbg_ptr, file);
|
|
312
|
+
return ret;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* @param {string} contact_uuid
|
|
301
316
|
* @returns {Promise<void>}
|
|
302
317
|
*/
|
|
303
|
-
|
|
304
|
-
const
|
|
318
|
+
denyContactRequest(contact_uuid) {
|
|
319
|
+
const ptr0 = passStringToWasm0(contact_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
320
|
+
const len0 = WASM_VECTOR_LEN;
|
|
321
|
+
const ret = wasm.client_denyContactRequest(this.__wbg_ptr, ptr0, len0);
|
|
305
322
|
return ret;
|
|
306
323
|
}
|
|
307
324
|
/**
|
|
308
|
-
* @returns {
|
|
325
|
+
* @returns {Contact[]}
|
|
309
326
|
*/
|
|
310
|
-
|
|
311
|
-
const ret = wasm.
|
|
327
|
+
getContacts() {
|
|
328
|
+
const ret = wasm.client_getContacts(this.__wbg_ptr);
|
|
329
|
+
return ret;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* @param {DirWithMetaEnum | null} [dir]
|
|
333
|
+
* @param {User | null} [user]
|
|
334
|
+
* @returns {[SharedDirectory[], SharedFile[]]}
|
|
335
|
+
*/
|
|
336
|
+
listOutShared(dir, user) {
|
|
337
|
+
const ret = wasm.client_listOutShared(this.__wbg_ptr, isLikeNone(dir) ? 0 : addToExternrefTable0(dir), isLikeNone(user) ? 0 : addToExternrefTable0(user));
|
|
338
|
+
return ret;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* @param {string} contact_uuid
|
|
342
|
+
* @returns {Promise<void>}
|
|
343
|
+
*/
|
|
344
|
+
deleteContact(contact_uuid) {
|
|
345
|
+
const ptr0 = passStringToWasm0(contact_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
346
|
+
const len0 = WASM_VECTOR_LEN;
|
|
347
|
+
const ret = wasm.client_deleteContact(this.__wbg_ptr, ptr0, len0);
|
|
348
|
+
return ret;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* @param {DirPublicLink} link
|
|
352
|
+
* @returns {Promise<void>}
|
|
353
|
+
*/
|
|
354
|
+
removeDirLink(link) {
|
|
355
|
+
const ret = wasm.client_removeDirLink(this.__wbg_ptr, link);
|
|
356
|
+
return ret;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* @param {DirWithMetaEnum | null} [dir]
|
|
360
|
+
* @returns {[SharedDirectory[], SharedFile[]]}
|
|
361
|
+
*/
|
|
362
|
+
listInShared(dir) {
|
|
363
|
+
const ret = wasm.client_listInShared(this.__wbg_ptr, isLikeNone(dir) ? 0 : addToExternrefTable0(dir));
|
|
364
|
+
return ret;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* @param {Dir} dir
|
|
368
|
+
* @returns {Promise<DirPublicLink>}
|
|
369
|
+
*/
|
|
370
|
+
publicLinkDir(dir) {
|
|
371
|
+
const ret = wasm.client_publicLinkDir(this.__wbg_ptr, dir);
|
|
312
372
|
return ret;
|
|
313
373
|
}
|
|
314
374
|
/**
|
|
315
375
|
* @param {File} file
|
|
376
|
+
* @param {User} user
|
|
316
377
|
* @returns {Promise<void>}
|
|
317
378
|
*/
|
|
318
|
-
|
|
319
|
-
const ret = wasm.
|
|
379
|
+
shareFile(file, user) {
|
|
380
|
+
const ret = wasm.client_shareFile(this.__wbg_ptr, file, user);
|
|
320
381
|
return ret;
|
|
321
382
|
}
|
|
322
383
|
/**
|
|
323
|
-
* @param {
|
|
324
|
-
* @
|
|
384
|
+
* @param {File} file
|
|
385
|
+
* @param {FilePublicLink} link
|
|
386
|
+
* @returns {Promise<void>}
|
|
325
387
|
*/
|
|
326
|
-
|
|
327
|
-
const ret = wasm.
|
|
388
|
+
updateFileLink(file, link) {
|
|
389
|
+
const ret = wasm.client_updateFileLink(this.__wbg_ptr, file, link);
|
|
390
|
+
return ret;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* @param {Contact} contact
|
|
394
|
+
* @returns {Promise<User>}
|
|
395
|
+
*/
|
|
396
|
+
makeUserFromContact(contact) {
|
|
397
|
+
const ret = wasm.client_makeUserFromContact(this.__wbg_ptr, contact);
|
|
398
|
+
return ret;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* @param {Dir} dir
|
|
402
|
+
* @param {DirPublicLink} link
|
|
403
|
+
* @returns {Promise<void>}
|
|
404
|
+
*/
|
|
405
|
+
updateDirLink(dir, link) {
|
|
406
|
+
const ret = wasm.client_updateDirLink(this.__wbg_ptr, dir, link);
|
|
407
|
+
return ret;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @param {string} link_uuid
|
|
411
|
+
* @returns {Promise<void>}
|
|
412
|
+
*/
|
|
413
|
+
removeSharedLinkIn(link_uuid) {
|
|
414
|
+
const ptr0 = passStringToWasm0(link_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
415
|
+
const len0 = WASM_VECTOR_LEN;
|
|
416
|
+
const ret = wasm.client_removeSharedLinkIn(this.__wbg_ptr, ptr0, len0);
|
|
328
417
|
return ret;
|
|
329
418
|
}
|
|
330
419
|
/**
|
|
331
420
|
* @param {File} file
|
|
332
|
-
* @returns {Promise<
|
|
421
|
+
* @returns {Promise<FilePublicLink>}
|
|
333
422
|
*/
|
|
334
|
-
|
|
335
|
-
const ret = wasm.
|
|
423
|
+
publicLinkFile(file) {
|
|
424
|
+
const ret = wasm.client_publicLinkFile(this.__wbg_ptr, file);
|
|
425
|
+
return ret;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* @param {Dir} dir
|
|
429
|
+
* @returns {Promise<DirPublicLink | undefined>}
|
|
430
|
+
*/
|
|
431
|
+
getDirLinkStatus(dir) {
|
|
432
|
+
const ret = wasm.client_getDirLinkStatus(this.__wbg_ptr, dir);
|
|
433
|
+
return ret;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* @returns {ContactRequestIn[]}
|
|
437
|
+
*/
|
|
438
|
+
listIncomingContactRequests() {
|
|
439
|
+
const ret = wasm.client_listIncomingContactRequests(this.__wbg_ptr);
|
|
440
|
+
return ret;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* @param {Dir} dir
|
|
444
|
+
* @param {User} user
|
|
445
|
+
* @returns {Promise<void>}
|
|
446
|
+
*/
|
|
447
|
+
shareDir(dir, user) {
|
|
448
|
+
const ret = wasm.client_shareDir(this.__wbg_ptr, dir, user);
|
|
449
|
+
return ret;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* @param {string} link_uuid
|
|
453
|
+
* @param {bigint} receiver_id
|
|
454
|
+
* @returns {Promise<void>}
|
|
455
|
+
*/
|
|
456
|
+
removeSharedLinkOut(link_uuid, receiver_id) {
|
|
457
|
+
const ptr0 = passStringToWasm0(link_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
458
|
+
const len0 = WASM_VECTOR_LEN;
|
|
459
|
+
const ret = wasm.client_removeSharedLinkOut(this.__wbg_ptr, ptr0, len0, receiver_id);
|
|
460
|
+
return ret;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* @param {DirWithMetaEnum} dir
|
|
464
|
+
* @param {DirPublicLink} link
|
|
465
|
+
* @returns {[Dir[], File[]]}
|
|
466
|
+
*/
|
|
467
|
+
listLinkedDir(dir, link) {
|
|
468
|
+
const ret = wasm.client_listLinkedDir(this.__wbg_ptr, dir, link);
|
|
469
|
+
return ret;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* @param {string} email
|
|
473
|
+
* @returns {Promise<string>}
|
|
474
|
+
*/
|
|
475
|
+
sendContactRequest(email) {
|
|
476
|
+
const ptr0 = passStringToWasm0(email, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
477
|
+
const len0 = WASM_VECTOR_LEN;
|
|
478
|
+
const ret = wasm.client_sendContactRequest(this.__wbg_ptr, ptr0, len0);
|
|
479
|
+
return ret;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* @param {string} contact_uuid
|
|
483
|
+
* @returns {Promise<string>}
|
|
484
|
+
*/
|
|
485
|
+
acceptContactRequest(contact_uuid) {
|
|
486
|
+
const ptr0 = passStringToWasm0(contact_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
487
|
+
const len0 = WASM_VECTOR_LEN;
|
|
488
|
+
const ret = wasm.client_acceptContactRequest(this.__wbg_ptr, ptr0, len0);
|
|
489
|
+
return ret;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* @param {string} contact_uuid
|
|
493
|
+
* @returns {Promise<void>}
|
|
494
|
+
*/
|
|
495
|
+
cancelContactRequest(contact_uuid) {
|
|
496
|
+
const ptr0 = passStringToWasm0(contact_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
497
|
+
const len0 = WASM_VECTOR_LEN;
|
|
498
|
+
const ret = wasm.client_cancelContactRequest(this.__wbg_ptr, ptr0, len0);
|
|
499
|
+
return ret;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* @param {File} file
|
|
503
|
+
* @returns {Promise<void>}
|
|
504
|
+
*/
|
|
505
|
+
deleteFilePermanently(file) {
|
|
506
|
+
const ret = wasm.client_deleteFilePermanently(this.__wbg_ptr, file);
|
|
336
507
|
return ret;
|
|
337
508
|
}
|
|
338
509
|
/**
|
|
@@ -343,6 +514,14 @@ export class Client {
|
|
|
343
514
|
const ret = wasm.client_trashFile(this.__wbg_ptr, file);
|
|
344
515
|
return ret;
|
|
345
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* @param {FileEnum} file
|
|
519
|
+
* @returns {Promise<Uint8Array>}
|
|
520
|
+
*/
|
|
521
|
+
downloadFile(file) {
|
|
522
|
+
const ret = wasm.client_downloadFile(this.__wbg_ptr, file);
|
|
523
|
+
return ret;
|
|
524
|
+
}
|
|
346
525
|
/**
|
|
347
526
|
* @param {DownloadFileStreamParams} params
|
|
348
527
|
* @returns {Promise<void>}
|
|
@@ -351,6 +530,14 @@ export class Client {
|
|
|
351
530
|
const ret = wasm.client_downloadFileToWriter(this.__wbg_ptr, params);
|
|
352
531
|
return ret;
|
|
353
532
|
}
|
|
533
|
+
/**
|
|
534
|
+
* @param {UploadFileStreamParams} params
|
|
535
|
+
* @returns {Promise<File>}
|
|
536
|
+
*/
|
|
537
|
+
uploadFileFromReader(params) {
|
|
538
|
+
const ret = wasm.client_uploadFileFromReader(this.__wbg_ptr, params);
|
|
539
|
+
return ret;
|
|
540
|
+
}
|
|
354
541
|
/**
|
|
355
542
|
* @param {Uint8Array} data
|
|
356
543
|
* @param {UploadFileParams} params
|
|
@@ -363,29 +550,41 @@ export class Client {
|
|
|
363
550
|
return ret;
|
|
364
551
|
}
|
|
365
552
|
/**
|
|
366
|
-
* @param {
|
|
367
|
-
* @returns {Promise<
|
|
553
|
+
* @param {DownloadFileToZipParams} params
|
|
554
|
+
* @returns {Promise<void>}
|
|
368
555
|
*/
|
|
369
|
-
|
|
370
|
-
const ret = wasm.
|
|
556
|
+
downloadItemsToZip(params) {
|
|
557
|
+
const ret = wasm.client_downloadItemsToZip(this.__wbg_ptr, params);
|
|
371
558
|
return ret;
|
|
372
559
|
}
|
|
373
560
|
/**
|
|
374
|
-
* @
|
|
561
|
+
* @param {DirEnum} dir
|
|
562
|
+
* @returns {[Dir[], File[]]}
|
|
375
563
|
*/
|
|
376
|
-
|
|
377
|
-
const ret = wasm.
|
|
564
|
+
listDir(dir) {
|
|
565
|
+
const ret = wasm.client_listDir(this.__wbg_ptr, dir);
|
|
378
566
|
return ret;
|
|
379
567
|
}
|
|
380
568
|
/**
|
|
381
|
-
* @
|
|
382
|
-
|
|
569
|
+
* @returns {[Dir[], File[]]}
|
|
570
|
+
*/
|
|
571
|
+
listFavorites() {
|
|
572
|
+
const ret = wasm.client_listFavorites(this.__wbg_ptr);
|
|
573
|
+
return ret;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @returns {[Dir[], File[]]}
|
|
577
|
+
*/
|
|
578
|
+
listRecents() {
|
|
579
|
+
const ret = wasm.client_listRecents(this.__wbg_ptr);
|
|
580
|
+
return ret;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* @param {Dir} dir
|
|
383
584
|
* @returns {Promise<Dir>}
|
|
384
585
|
*/
|
|
385
|
-
|
|
386
|
-
const
|
|
387
|
-
const len0 = WASM_VECTOR_LEN;
|
|
388
|
-
const ret = wasm.client_createDir(this.__wbg_ptr, parent, ptr0, len0);
|
|
586
|
+
trashDir(dir) {
|
|
587
|
+
const ret = wasm.client_trashDir(this.__wbg_ptr, dir);
|
|
389
588
|
return ret;
|
|
390
589
|
}
|
|
391
590
|
/**
|
|
@@ -399,31 +598,27 @@ export class Client {
|
|
|
399
598
|
/**
|
|
400
599
|
* @param {DirEnum} parent
|
|
401
600
|
* @param {string} name
|
|
402
|
-
* @returns {Promise<
|
|
601
|
+
* @returns {Promise<Dir>}
|
|
403
602
|
*/
|
|
404
|
-
|
|
603
|
+
createDir(parent, name) {
|
|
405
604
|
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
406
605
|
const len0 = WASM_VECTOR_LEN;
|
|
407
|
-
const ret = wasm.
|
|
408
|
-
return ret;
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* @param {Dir} dir
|
|
412
|
-
* @returns {Promise<Dir>}
|
|
413
|
-
*/
|
|
414
|
-
trashDir(dir) {
|
|
415
|
-
const ret = wasm.client_trashDir(this.__wbg_ptr, dir);
|
|
606
|
+
const ret = wasm.client_createDir(this.__wbg_ptr, parent, ptr0, len0);
|
|
416
607
|
return ret;
|
|
417
608
|
}
|
|
418
609
|
/**
|
|
419
|
-
* @
|
|
610
|
+
* @param {AnyDirEnum} parent
|
|
611
|
+
* @param {string} name
|
|
612
|
+
* @returns {Promise<void>}
|
|
420
613
|
*/
|
|
421
|
-
|
|
422
|
-
const
|
|
614
|
+
dirExists(parent, name) {
|
|
615
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
616
|
+
const len0 = WASM_VECTOR_LEN;
|
|
617
|
+
const ret = wasm.client_dirExists(this.__wbg_ptr, parent, ptr0, len0);
|
|
423
618
|
return ret;
|
|
424
619
|
}
|
|
425
620
|
/**
|
|
426
|
-
* @param {
|
|
621
|
+
* @param {AnyDirEnum} dir
|
|
427
622
|
* @param {string} nameOrUuid
|
|
428
623
|
* @returns {Promise<NonRootObject | undefined>}
|
|
429
624
|
*/
|
|
@@ -434,18 +629,18 @@ export class Client {
|
|
|
434
629
|
return ret;
|
|
435
630
|
}
|
|
436
631
|
/**
|
|
437
|
-
* @
|
|
438
|
-
* @returns {[Dir[], File[]]}
|
|
632
|
+
* @returns {Root}
|
|
439
633
|
*/
|
|
440
|
-
|
|
441
|
-
const ret = wasm.
|
|
634
|
+
root() {
|
|
635
|
+
const ret = wasm.client_root(this.__wbg_ptr);
|
|
442
636
|
return ret;
|
|
443
637
|
}
|
|
444
638
|
/**
|
|
445
|
-
* @
|
|
639
|
+
* @param {Dir} dir
|
|
640
|
+
* @returns {Promise<DirSizeResponse>}
|
|
446
641
|
*/
|
|
447
|
-
|
|
448
|
-
const ret = wasm.
|
|
642
|
+
getDirSize(dir) {
|
|
643
|
+
const ret = wasm.client_getDirSize(this.__wbg_ptr, dir);
|
|
449
644
|
return ret;
|
|
450
645
|
}
|
|
451
646
|
/**
|
|
@@ -456,6 +651,13 @@ export class Client {
|
|
|
456
651
|
const ret = wasm.client_listDirRecursive(this.__wbg_ptr, dir);
|
|
457
652
|
return ret;
|
|
458
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* @returns {StringifiedClient}
|
|
656
|
+
*/
|
|
657
|
+
toStringified() {
|
|
658
|
+
const ret = wasm.client_toStringified(this.__wbg_ptr);
|
|
659
|
+
return ret;
|
|
660
|
+
}
|
|
459
661
|
}
|
|
460
662
|
|
|
461
663
|
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -674,7 +876,7 @@ function __wbg_get_imports() {
|
|
|
674
876
|
const ret = arg0.call(arg1, arg2);
|
|
675
877
|
return ret;
|
|
676
878
|
}, arguments) };
|
|
677
|
-
imports.wbg.
|
|
879
|
+
imports.wbg.__wbg_call_efbfaf560bee7c99 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
678
880
|
const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
|
|
679
881
|
return ret;
|
|
680
882
|
}, arguments) };
|
|
@@ -751,6 +953,10 @@ function __wbg_get_imports() {
|
|
|
751
953
|
const ret = arg0.fetch(arg1);
|
|
752
954
|
return ret;
|
|
753
955
|
};
|
|
956
|
+
imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
|
|
957
|
+
const ret = Array.from(arg0);
|
|
958
|
+
return ret;
|
|
959
|
+
};
|
|
754
960
|
imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
|
|
755
961
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
756
962
|
}, arguments) };
|
|
@@ -916,7 +1122,7 @@ function __wbg_get_imports() {
|
|
|
916
1122
|
const a = state0.a;
|
|
917
1123
|
state0.a = 0;
|
|
918
1124
|
try {
|
|
919
|
-
return
|
|
1125
|
+
return __wbg_adapter_334(a, state0.b, arg0, arg1);
|
|
920
1126
|
} finally {
|
|
921
1127
|
state0.a = a;
|
|
922
1128
|
}
|
|
@@ -1194,16 +1400,16 @@ function __wbg_get_imports() {
|
|
|
1194
1400
|
const ret = false;
|
|
1195
1401
|
return ret;
|
|
1196
1402
|
};
|
|
1197
|
-
imports.wbg.
|
|
1198
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1403
|
+
imports.wbg.__wbindgen_closure_wrapper2281 = function(arg0, arg1, arg2) {
|
|
1404
|
+
const ret = makeMutClosure(arg0, arg1, 834, __wbg_adapter_60);
|
|
1199
1405
|
return ret;
|
|
1200
1406
|
};
|
|
1201
|
-
imports.wbg.
|
|
1202
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1407
|
+
imports.wbg.__wbindgen_closure_wrapper2502 = function(arg0, arg1, arg2) {
|
|
1408
|
+
const ret = makeMutClosure(arg0, arg1, 898, __wbg_adapter_63);
|
|
1203
1409
|
return ret;
|
|
1204
1410
|
};
|
|
1205
|
-
imports.wbg.
|
|
1206
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1411
|
+
imports.wbg.__wbindgen_closure_wrapper2618 = function(arg0, arg1, arg2) {
|
|
1412
|
+
const ret = makeMutClosure(arg0, arg1, 938, __wbg_adapter_66);
|
|
1207
1413
|
return ret;
|
|
1208
1414
|
};
|
|
1209
1415
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/browser/sdk-rs_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,29 +1,52 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const client_listIncomingContactRequests: (a: number) => any;
|
|
5
|
+
export const client_getContacts: (a: number) => any;
|
|
6
|
+
export const client_removeSharedLinkIn: (a: number, b: number, c: number) => any;
|
|
7
|
+
export const client_publicLinkFile: (a: number, b: any) => any;
|
|
8
|
+
export const client_removeSharedLinkOut: (a: number, b: number, c: number, d: bigint) => any;
|
|
9
|
+
export const client_sendContactRequest: (a: number, b: number, c: number) => any;
|
|
10
|
+
export const client_listOutShared: (a: number, b: number, c: number) => any;
|
|
11
|
+
export const client_cancelContactRequest: (a: number, b: number, c: number) => any;
|
|
12
|
+
export const client_makeUserFromContact: (a: number, b: any) => any;
|
|
13
|
+
export const client_removeDirLink: (a: number, b: any) => any;
|
|
14
|
+
export const client_updateFileLink: (a: number, b: any, c: any) => any;
|
|
15
|
+
export const client_deleteContact: (a: number, b: number, c: number) => any;
|
|
16
|
+
export const client_shareDir: (a: number, b: any, c: any) => any;
|
|
17
|
+
export const client_acceptContactRequest: (a: number, b: number, c: number) => any;
|
|
18
|
+
export const client_listLinkedDir: (a: number, b: any, c: any) => any;
|
|
19
|
+
export const client_getFileLinkStatus: (a: number, b: any) => any;
|
|
20
|
+
export const client_shareFile: (a: number, b: any, c: any) => any;
|
|
21
|
+
export const client_denyContactRequest: (a: number, b: number, c: number) => any;
|
|
22
|
+
export const client_publicLinkDir: (a: number, b: any) => any;
|
|
23
|
+
export const client_listOutgoingContactRequests: (a: number) => any;
|
|
24
|
+
export const client_getDirLinkStatus: (a: number, b: any) => any;
|
|
25
|
+
export const client_updateDirLink: (a: number, b: any, c: any) => any;
|
|
26
|
+
export const client_listInShared: (a: number, b: number) => any;
|
|
4
27
|
export const login: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
5
|
-
export const fromStringified: (a: any) => [number, number, number];
|
|
6
28
|
export const main_js: () => void;
|
|
7
|
-
export const
|
|
8
|
-
export const __wbg_client_free: (a: number, b: number) => void;
|
|
9
|
-
export const client_toStringified: (a: number) => any;
|
|
29
|
+
export const fromStringified: (a: any) => [number, number, number];
|
|
10
30
|
export const client_downloadFile: (a: number, b: any) => any;
|
|
11
|
-
export const client_uploadFileFromReader: (a: number, b: any) => any;
|
|
12
|
-
export const client_downloadFileToWriter: (a: number, b: any) => any;
|
|
13
|
-
export const client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
14
31
|
export const client_deleteFilePermanently: (a: number, b: any) => any;
|
|
15
32
|
export const client_trashFile: (a: number, b: any) => any;
|
|
33
|
+
export const client_uploadFileFromReader: (a: number, b: any) => any;
|
|
34
|
+
export const client_uploadFile: (a: number, b: number, c: number, d: any) => any;
|
|
35
|
+
export const client_downloadFileToWriter: (a: number, b: any) => any;
|
|
36
|
+
export const client_downloadItemsToZip: (a: number, b: any) => any;
|
|
37
|
+
export const client_trashDir: (a: number, b: any) => any;
|
|
16
38
|
export const client_findItemInDir: (a: number, b: any, c: number, d: number) => any;
|
|
39
|
+
export const client_listRecents: (a: number) => any;
|
|
17
40
|
export const client_listDir: (a: number, b: any) => any;
|
|
18
|
-
export const client_deleteDirPermanently: (a: number, b: any) => any;
|
|
19
|
-
export const client_trashDir: (a: number, b: any) => any;
|
|
20
41
|
export const client_dirExists: (a: number, b: any, c: number, d: number) => any;
|
|
21
|
-
export const
|
|
42
|
+
export const client_getDirSize: (a: number, b: any) => any;
|
|
22
43
|
export const client_createDir: (a: number, b: any, c: number, d: number) => any;
|
|
23
44
|
export const client_listFavorites: (a: number) => any;
|
|
24
|
-
export const
|
|
45
|
+
export const client_root: (a: number) => any;
|
|
46
|
+
export const client_deleteDirPermanently: (a: number, b: any) => any;
|
|
25
47
|
export const client_listDirRecursive: (a: number, b: any) => any;
|
|
26
|
-
export const
|
|
48
|
+
export const client_toStringified: (a: number) => any;
|
|
49
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
27
50
|
export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
28
51
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
29
52
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
@@ -47,6 +70,6 @@ export const __wbindgen_export_6: WebAssembly.Table;
|
|
|
47
70
|
export const __externref_table_dealloc: (a: number) => void;
|
|
48
71
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad07d0627257b45: (a: number, b: number) => void;
|
|
49
72
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h96ccbfe273ba439a: (a: number, b: number) => void;
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
73
|
+
export const closure937_externref_shim: (a: number, b: number, c: any) => void;
|
|
74
|
+
export const closure1103_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
52
75
|
export const __wbindgen_start: () => void;
|