@secrecy/lib 1.0.0-dev.23 → 1.0.0-dev.26
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/CHANGELOG.md +178 -0
- package/__tests__/client/client.test.ts +81 -0
- package/__tests__/client/folder.test.ts +302 -0
- package/__tests__/client/mail.test.ts +476 -0
- package/__tests__/client/timing.test.ts +35 -0
- package/__tests__/client/utils.ts +41 -0
- package/__tests__/client/vFile.test.ts +207 -0
- package/__tests__/index.test.ts +171 -0
- package/commitlint.config.cjs +3 -0
- package/{lib/zeus → dist}/index.d.ts +1347 -1416
- package/dist/index.js +255 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +255 -0
- package/dist/index.mjs.map +1 -0
- package/docs/assets/css/main.css +2660 -0
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +248 -0
- package/docs/assets/js/search.js +1 -0
- package/docs/classes/baseclient.baseclient-1.html +1165 -0
- package/docs/classes/client.secrecyclient.html +2527 -0
- package/docs/enums/index.sodium.base64_variants.html +205 -0
- package/docs/index.html +198 -0
- package/docs/interfaces/client_types.draftmail.html +335 -0
- package/docs/interfaces/client_types.filecontentbase.html +231 -0
- package/docs/interfaces/client_types.filecontentcloud.html +244 -0
- package/docs/interfaces/client_types.filecontentreceivedmail.html +244 -0
- package/docs/interfaces/client_types.filecontentsentmail.html +230 -0
- package/docs/interfaces/client_types.receivedmail.html +363 -0
- package/docs/interfaces/client_types.sentmail.html +335 -0
- package/docs/interfaces/crypto.keypair.html +202 -0
- package/docs/interfaces/index.sodium.cryptobox.html +185 -0
- package/docs/interfaces/index.sodium.cryptokx.html +185 -0
- package/docs/interfaces/index.sodium.keypair.html +199 -0
- package/docs/interfaces/index.sodium.messagetag.html +185 -0
- package/docs/interfaces/index.sodium.secretbox.html +185 -0
- package/docs/interfaces/index.sodium.stateaddress.html +171 -0
- package/docs/interfaces/index.sodium.stringcryptobox.html +185 -0
- package/docs/interfaces/index.sodium.stringcryptokx.html +185 -0
- package/docs/interfaces/index.sodium.stringkeypair.html +199 -0
- package/docs/interfaces/index.sodium.stringmessagetag.html +185 -0
- package/docs/interfaces/index.sodium.stringsecretbox.html +185 -0
- package/docs/interfaces/utils_store_buddy.storebuddy.html +333 -0
- package/docs/modules/baseclient.html +929 -0
- package/docs/modules/cache.html +185 -0
- package/docs/modules/client.html +207 -0
- package/docs/modules/client_convert_file.html +216 -0
- package/docs/modules/client_convert_folder.html +303 -0
- package/docs/modules/client_convert_vfile.html +216 -0
- package/docs/modules/client_helpers.html +311 -0
- package/docs/modules/client_storage.html +167 -0
- package/docs/modules/client_types.html +1227 -0
- package/docs/modules/client_types_file.html +233 -0
- package/docs/modules/client_types_filesonusersonapplications.html +168 -0
- package/docs/modules/client_types_folder.html +383 -0
- package/docs/modules/client_types_inputs.html +263 -0
- package/docs/modules/client_types_mail.html +181 -0
- package/docs/modules/client_types_queries.html +199 -0
- package/docs/modules/client_types_userappsettings.html +163 -0
- package/docs/modules/client_types_vfile.html +364 -0
- package/docs/modules/crypto.html +366 -0
- package/docs/modules/crypto_file.html +344 -0
- package/docs/modules/index.html +779 -0
- package/docs/modules/index.sodium.html +6039 -0
- package/docs/modules/minify.html +183 -0
- package/docs/modules/minify_lz4.html +279 -0
- package/docs/modules/popuptools.html +259 -0
- package/docs/modules/sodium.html +167 -0
- package/docs/modules/utils.html +219 -0
- package/docs/modules/utils_store_buddy.html +208 -0
- package/docs/modules/utils_time.html +330 -0
- package/docs/modules/worker_md5.html +156 -0
- package/docs/modules/worker_sodium.html +231 -0
- package/docs/modules/worker_workercodes.html +157 -0
- package/docs/modules.html +235 -0
- package/index.html +21 -0
- package/jest.config.ts +27 -0
- package/jest.setup.ts +6 -0
- package/package.json +39 -47
- package/release.config.cjs +15 -0
- package/tsup.config.ts +23 -0
- package/lib/BaseClient.d.ts +0 -274
- package/lib/BaseClient.js +0 -2228
- package/lib/PopupTools.d.ts +0 -17
- package/lib/PopupTools.js +0 -213
- package/lib/ZeusThunder.d.ts +0 -2
- package/lib/ZeusThunder.js +0 -113
- package/lib/cache.d.ts +0 -7
- package/lib/cache.js +0 -5
- package/lib/client/admin/index.d.ts +0 -11
- package/lib/client/admin/index.js +0 -198
- package/lib/client/convert/file.d.ts +0 -5
- package/lib/client/convert/file.js +0 -39
- package/lib/client/convert/folder.d.ts +0 -8
- package/lib/client/convert/folder.js +0 -264
- package/lib/client/convert/mail.d.ts +0 -3
- package/lib/client/convert/mail.js +0 -46
- package/lib/client/convert/vFile.d.ts +0 -5
- package/lib/client/convert/vFile.js +0 -164
- package/lib/client/helpers.d.ts +0 -23
- package/lib/client/helpers.js +0 -116
- package/lib/client/index.d.ts +0 -172
- package/lib/client/index.js +0 -6178
- package/lib/client/storage.d.ts +0 -7
- package/lib/client/storage.js +0 -12
- package/lib/client/types/File.d.ts +0 -21
- package/lib/client/types/File.js +0 -3
- package/lib/client/types/FilesOnUsersOnApplications.d.ts +0 -9
- package/lib/client/types/FilesOnUsersOnApplications.js +0 -3
- package/lib/client/types/Folder.d.ts +0 -68
- package/lib/client/types/Folder.js +0 -7
- package/lib/client/types/Inputs.d.ts +0 -21
- package/lib/client/types/Inputs.js +0 -3
- package/lib/client/types/UserAppNotifications.d.ts +0 -6
- package/lib/client/types/UserAppNotifications.js +0 -3
- package/lib/client/types/UserAppSettings.d.ts +0 -7
- package/lib/client/types/UserAppSettings.js +0 -3
- package/lib/client/types/VFile.d.ts +0 -62
- package/lib/client/types/VFile.js +0 -4
- package/lib/client/types/index.d.ts +0 -154
- package/lib/client/types/index.js +0 -10
- package/lib/client/types/queries.d.ts +0 -535
- package/lib/client/types/queries.js +0 -192
- package/lib/crypto/file.d.ts +0 -14
- package/lib/crypto/file.js +0 -291
- package/lib/crypto/index.d.ts +0 -12
- package/lib/crypto/index.js +0 -37
- package/lib/error.d.ts +0 -30
- package/lib/error.js +0 -3
- package/lib/index.d.ts +0 -13
- package/lib/index.js +0 -42
- package/lib/minify/index.d.ts +0 -2
- package/lib/minify/index.js +0 -28
- package/lib/minify/lz4.d.ts +0 -5
- package/lib/minify/lz4.js +0 -633
- package/lib/sodium.d.ts +0 -3
- package/lib/sodium.js +0 -28
- package/lib/utils/store-buddy.d.ts +0 -14
- package/lib/utils/store-buddy.js +0 -69
- package/lib/utils/time.d.ts +0 -10
- package/lib/utils/time.js +0 -22
- package/lib/utils.d.ts +0 -4
- package/lib/utils.js +0 -188
- package/lib/worker/__mock__/sodium.worker.d.ts +0 -19
- package/lib/worker/__mock__/sodium.worker.js +0 -46
- package/lib/worker/md5.d.ts +0 -1
- package/lib/worker/md5.js +0 -43
- package/lib/worker/sodium.d.ts +0 -3
- package/lib/worker/sodium.js +0 -155
- package/lib/worker/workerCodes.d.ts +0 -2
- package/lib/worker/workerCodes.js +0 -3
- package/lib/zeus/const.d.ts +0 -2
- package/lib/zeus/const.js +0 -2267
- package/lib/zeus/index.js +0 -549
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { DownloadProgress as DownloadProgress$1 } from 'ky';
|
|
2
|
+
import { Document } from 'bson';
|
|
3
|
+
export { default as sodium } from 'libsodium-wrappers';
|
|
4
|
+
|
|
1
5
|
declare type ZEUS_INTERFACES = GraphQLTypes["ErrorBase"] | GraphQLTypes["FileContentBase"];
|
|
2
6
|
declare type ZEUS_UNIONS = GraphQLTypes["AppNotificationsResult"] | GraphQLTypes["BlogResult"] | GraphQLTypes["DbConfigResult"] | GraphQLTypes["DbGetResult"] | GraphQLTypes["DbSearchResult"] | GraphQLTypes["DeletedFoldersResult"] | GraphQLTypes["DeletedMailsResult"] | GraphQLTypes["DeletedVFilesResult"] | GraphQLTypes["FaqResult"] | GraphQLTypes["FileResult"] | GraphQLTypes["FileContentResult"] | GraphQLTypes["FolderResult"] | GraphQLTypes["FolderSizeResult"] | GraphQLTypes["FoldersSharedWithMeResult"] | GraphQLTypes["LimitsResult"] | GraphQLTypes["MailResult"] | GraphQLTypes["PaymentInfosResult"] | GraphQLTypes["PlansResult"] | GraphQLTypes["SharedFoldersResult"] | GraphQLTypes["SharedVFilesResult"] | GraphQLTypes["UnreadReceivedMailsCountResult"] | GraphQLTypes["UserResult"] | GraphQLTypes["VFileResult"] | GraphQLTypes["VFilesSharedWithMeResult"] | GraphQLTypes["UserListResult"] | GraphQLTypes["AddFileToHistoryResult"] | GraphQLTypes["CancelPaymentResult"] | GraphQLTypes["CreateApplicationResult"] | GraphQLTypes["CreateDraftMailResult"] | GraphQLTypes["CreateFolderResult"] | GraphQLTypes["DbConfigMutationResult"] | GraphQLTypes["DbSetResult"] | GraphQLTypes["DeleteDraftMailResult"] | GraphQLTypes["DeleteFileResult"] | GraphQLTypes["DeleteFolderResult"] | GraphQLTypes["DeleteFolderCloudTrashResult"] | GraphQLTypes["DeleteFolderSharingResult"] | GraphQLTypes["DeleteMailResult"] | GraphQLTypes["DeleteMailTrashResult"] | GraphQLTypes["DeleteUserResult"] | GraphQLTypes["DeleteVFileResult"] | GraphQLTypes["DeleteVFileCloudTrashResult"] | GraphQLTypes["DeleteVFileSharingResult"] | GraphQLTypes["DuplicateVFileResult"] | GraphQLTypes["EmptyCloudTrashResult"] | GraphQLTypes["EmptyMailTrashResult"] | GraphQLTypes["LogoutResult"] | GraphQLTypes["MoveFilesResult"] | GraphQLTypes["MoveFoldersResult"] | GraphQLTypes["PayResult"] | GraphQLTypes["ReadMailResult"] | GraphQLTypes["RecoverFolderResult"] | GraphQLTypes["RecoverMailResult"] | GraphQLTypes["RecoverVFileResult"] | GraphQLTypes["SaveInCloudResult"] | GraphQLTypes["SendDraftMailResult"] | GraphQLTypes["SendOneMailResult"] | GraphQLTypes["SendReportResult"] | GraphQLTypes["ShareFileInHistoryResult"] | GraphQLTypes["ShareFolderResult"] | GraphQLTypes["ShareFolderFinishResult"] | GraphQLTypes["ShareVFileResult"] | GraphQLTypes["UnreadMailResult"] | GraphQLTypes["UpdateAppNotificationsResult"] | GraphQLTypes["UpdateAppSettingsResult"] | GraphQLTypes["UpdateDraftMailResult"] | GraphQLTypes["UpdateFileResult"] | GraphQLTypes["UpdateFolderResult"] | GraphQLTypes["UpdateProfileResult"] | GraphQLTypes["UploadFileResult"] | GraphQLTypes["UploadFileEndResult"] | GraphQLTypes["UploadFilePartEndResult"] | GraphQLTypes["ChangeUserPlanResult"] | GraphQLTypes["Error"] | GraphQLTypes["FileContent"];
|
|
3
|
-
|
|
7
|
+
declare type ValueTypes = {
|
|
4
8
|
["BigInt"]: unknown;
|
|
5
9
|
["Bytes"]: unknown;
|
|
6
10
|
["DateTime"]: unknown;
|
|
@@ -9,7 +13,7 @@ export declare type ValueTypes = {
|
|
|
9
13
|
["Lang"]: Lang;
|
|
10
14
|
["PlanKind"]: PlanKind;
|
|
11
15
|
["UserRole"]: UserRole;
|
|
12
|
-
["MailType"]: MailType;
|
|
16
|
+
["MailType"]: MailType$1;
|
|
13
17
|
["Rights"]: Rights;
|
|
14
18
|
["AppNotificationsResult"]: AliasType<{
|
|
15
19
|
["...on UserAppNotifications"]: ValueTypes["UserAppNotifications"];
|
|
@@ -506,13 +510,13 @@ export declare type ValueTypes = {
|
|
|
506
510
|
}>;
|
|
507
511
|
["ErrorBase"]: AliasType<{
|
|
508
512
|
message?: boolean;
|
|
509
|
-
[
|
|
510
|
-
[
|
|
511
|
-
[
|
|
512
|
-
[
|
|
513
|
-
[
|
|
514
|
-
[
|
|
515
|
-
[
|
|
513
|
+
["...on ErrorAccessDenied"]?: Omit<ValueTypes["ErrorAccessDenied"], keyof ValueTypes["ErrorBase"]>;
|
|
514
|
+
["...on ErrorBasic"]?: Omit<ValueTypes["ErrorBasic"], keyof ValueTypes["ErrorBase"]>;
|
|
515
|
+
["...on ErrorLangNotExist"]?: Omit<ValueTypes["ErrorLangNotExist"], keyof ValueTypes["ErrorBase"]>;
|
|
516
|
+
["...on ErrorLimit"]?: Omit<ValueTypes["ErrorLimit"], keyof ValueTypes["ErrorBase"]>;
|
|
517
|
+
["...on ErrorNotExist"]?: Omit<ValueTypes["ErrorNotExist"], keyof ValueTypes["ErrorBase"]>;
|
|
518
|
+
["...on ErrorNotFound"]?: Omit<ValueTypes["ErrorNotFound"], keyof ValueTypes["ErrorBase"]>;
|
|
519
|
+
["...on ErrorUpgradePlan"]?: Omit<ValueTypes["ErrorUpgradePlan"], keyof ValueTypes["ErrorBase"]>;
|
|
516
520
|
__typename?: boolean;
|
|
517
521
|
}>;
|
|
518
522
|
["ErrorBasic"]: AliasType<{
|
|
@@ -592,9 +596,9 @@ export declare type ValueTypes = {
|
|
|
592
596
|
md5Encrypted?: boolean;
|
|
593
597
|
totalSize?: boolean;
|
|
594
598
|
type?: boolean;
|
|
595
|
-
[
|
|
596
|
-
[
|
|
597
|
-
[
|
|
599
|
+
["...on FileContentCloud"]?: Omit<ValueTypes["FileContentCloud"], keyof ValueTypes["FileContentBase"]>;
|
|
600
|
+
["...on FileContentReceivedMail"]?: Omit<ValueTypes["FileContentReceivedMail"], keyof ValueTypes["FileContentBase"]>;
|
|
601
|
+
["...on FileContentSentMail"]?: Omit<ValueTypes["FileContentSentMail"], keyof ValueTypes["FileContentBase"]>;
|
|
598
602
|
__typename?: boolean;
|
|
599
603
|
}>;
|
|
600
604
|
["FileContentCloud"]: AliasType<{
|
|
@@ -1293,1115 +1297,401 @@ export declare type ValueTypes = {
|
|
|
1293
1297
|
dbConfig?: [{
|
|
1294
1298
|
appCode: string;
|
|
1295
1299
|
}, ValueTypes["DbConfigResult"]];
|
|
1296
|
-
dbGet?: [
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
}, ValueTypes["
|
|
1321
|
-
|
|
1322
|
-
id
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
addFileToHistory?: [{
|
|
1353
|
-
vFileId: string;
|
|
1354
|
-
fileId: string;
|
|
1355
|
-
}, ValueTypes["AddFileToHistoryResult"]];
|
|
1356
|
-
cancelPayment?: ValueTypes["CancelPaymentResult"];
|
|
1357
|
-
createApplication?: [{
|
|
1358
|
-
name: string;
|
|
1359
|
-
origin: string;
|
|
1360
|
-
developerId: string;
|
|
1361
|
-
}, ValueTypes["CreateApplicationResult"]];
|
|
1362
|
-
createDraftMail?: [{
|
|
1363
|
-
hash: string;
|
|
1364
|
-
hashKey: string;
|
|
1365
|
-
body: string;
|
|
1366
|
-
subject: string;
|
|
1367
|
-
replyTo?: string | null;
|
|
1368
|
-
senderFiles: ValueTypes["MailFileInput"][];
|
|
1369
|
-
recipients: string[];
|
|
1370
|
-
}, ValueTypes["CreateDraftMailResult"]];
|
|
1371
|
-
createFolder?: [{
|
|
1372
|
-
name: string;
|
|
1373
|
-
key: string;
|
|
1374
|
-
parentFolderId?: string | null;
|
|
1375
|
-
}, ValueTypes["CreateFolderResult"]];
|
|
1376
|
-
dbConfigMutation?: [{
|
|
1377
|
-
appCode: string;
|
|
1378
|
-
config: string;
|
|
1379
|
-
}, ValueTypes["DbConfigMutationResult"]];
|
|
1380
|
-
dbSet?: [{
|
|
1381
|
-
value: string;
|
|
1382
|
-
userId?: string | null;
|
|
1383
|
-
}, ValueTypes["DbSetResult"]];
|
|
1384
|
-
deleteDraftMail?: [{
|
|
1385
|
-
draftId: string;
|
|
1386
|
-
}, ValueTypes["DeleteDraftMailResult"]];
|
|
1387
|
-
deleteFile?: [{
|
|
1388
|
-
fileId: string;
|
|
1389
|
-
vFileId: string;
|
|
1390
|
-
}, ValueTypes["DeleteFileResult"]];
|
|
1391
|
-
deleteFolder?: [{
|
|
1392
|
-
id: string;
|
|
1393
|
-
}, ValueTypes["DeleteFolderResult"]];
|
|
1394
|
-
deleteFolderCloudTrash?: [{
|
|
1395
|
-
ids: string[];
|
|
1396
|
-
}, ValueTypes["DeleteFolderCloudTrashResult"]];
|
|
1397
|
-
deleteFolderSharing?: [{
|
|
1398
|
-
folderId: string;
|
|
1399
|
-
userId: string;
|
|
1400
|
-
}, ValueTypes["DeleteFolderSharingResult"]];
|
|
1401
|
-
deleteMail?: [{
|
|
1402
|
-
mailId: string;
|
|
1403
|
-
}, ValueTypes["DeleteMailResult"]];
|
|
1404
|
-
deleteMailTrash?: [{
|
|
1405
|
-
ids: string[];
|
|
1406
|
-
}, ValueTypes["DeleteMailTrashResult"]];
|
|
1407
|
-
deleteUser?: [{
|
|
1408
|
-
userId?: string | null;
|
|
1409
|
-
}, ValueTypes["DeleteUserResult"]];
|
|
1410
|
-
deleteVFile?: [{
|
|
1411
|
-
fileId: string;
|
|
1412
|
-
}, ValueTypes["DeleteVFileResult"]];
|
|
1413
|
-
deleteVFileCloudTrash?: [{
|
|
1414
|
-
ids: string[];
|
|
1415
|
-
}, ValueTypes["DeleteVFileCloudTrashResult"]];
|
|
1416
|
-
deleteVFileSharing?: [{
|
|
1417
|
-
vFileId: string;
|
|
1418
|
-
userId: string;
|
|
1419
|
-
}, ValueTypes["DeleteVFileSharingResult"]];
|
|
1420
|
-
duplicateVFile?: [{
|
|
1421
|
-
vFileId: string;
|
|
1422
|
-
folderId?: string | null;
|
|
1423
|
-
customName?: string | null;
|
|
1424
|
-
}, ValueTypes["DuplicateVFileResult"]];
|
|
1425
|
-
emptyCloudTrash?: ValueTypes["EmptyCloudTrashResult"];
|
|
1426
|
-
emptyMailTrash?: ValueTypes["EmptyMailTrashResult"];
|
|
1427
|
-
logout?: [{
|
|
1428
|
-
sessionId?: string | null;
|
|
1429
|
-
}, ValueTypes["LogoutResult"]];
|
|
1430
|
-
moveFiles?: [{
|
|
1431
|
-
filesId: string[];
|
|
1432
|
-
parentFolderId?: string | null;
|
|
1433
|
-
}, ValueTypes["MoveFilesResult"]];
|
|
1434
|
-
moveFolders?: [{
|
|
1435
|
-
foldersId: string[];
|
|
1436
|
-
parentFolderId?: string | null;
|
|
1437
|
-
}, ValueTypes["MoveFoldersResult"]];
|
|
1438
|
-
pay?: [{
|
|
1439
|
-
planCode: string;
|
|
1440
|
-
input: ValueTypes["PayInput"];
|
|
1441
|
-
autoRenew?: boolean | null;
|
|
1442
|
-
}, ValueTypes["PayResult"]];
|
|
1443
|
-
readMail?: [{
|
|
1444
|
-
mailId: string;
|
|
1445
|
-
}, ValueTypes["ReadMailResult"]];
|
|
1446
|
-
recoverFolder?: [{
|
|
1447
|
-
id: string;
|
|
1448
|
-
}, ValueTypes["RecoverFolderResult"]];
|
|
1449
|
-
recoverMail?: [{
|
|
1450
|
-
mailId: string;
|
|
1451
|
-
}, ValueTypes["RecoverMailResult"]];
|
|
1452
|
-
recoverVFile?: [{
|
|
1453
|
-
vFileId: string;
|
|
1454
|
-
}, ValueTypes["RecoverVFileResult"]];
|
|
1455
|
-
saveInCloud?: [{
|
|
1456
|
-
fileId: string;
|
|
1457
|
-
key: string;
|
|
1458
|
-
folderId?: string | null;
|
|
1459
|
-
filename: string;
|
|
1460
|
-
nameKey: string;
|
|
1461
|
-
}, ValueTypes["SaveInCloudResult"]];
|
|
1462
|
-
sendDraftMail?: [{
|
|
1463
|
-
draftMailId: string;
|
|
1464
|
-
temporaryRecipients: string[];
|
|
1465
|
-
recipients: ValueTypes["MailRecipientInput"][];
|
|
1466
|
-
customMessage?: string | null;
|
|
1467
|
-
}, ValueTypes["SendDraftMailResult"]];
|
|
1468
|
-
sendOneMail?: [{
|
|
1469
|
-
mailIntegrityId: string;
|
|
1470
|
-
recipient: ValueTypes["MailRecipientInput"];
|
|
1471
|
-
}, ValueTypes["SendOneMailResult"]];
|
|
1472
|
-
sendReport?: [{
|
|
1473
|
-
reportedUserId: string;
|
|
1474
|
-
customMessage?: string | null;
|
|
1475
|
-
}, ValueTypes["SendReportResult"]];
|
|
1476
|
-
shareFileInHistory?: [{
|
|
1477
|
-
input: ValueTypes["ShareFileInHistoryInput"];
|
|
1478
|
-
vFileId: string;
|
|
1479
|
-
}, ValueTypes["ShareFileInHistoryResult"]];
|
|
1480
|
-
shareFolder?: [{
|
|
1481
|
-
folderId: string;
|
|
1482
|
-
userId: string;
|
|
1483
|
-
}, ValueTypes["ShareFolderResult"]];
|
|
1484
|
-
shareFolderFinish?: [{
|
|
1485
|
-
shareFolders: ValueTypes["ShareFoldersInput"];
|
|
1486
|
-
userId: string;
|
|
1487
|
-
rights: ValueTypes["Rights"];
|
|
1488
|
-
}, ValueTypes["ShareFolderFinishResult"]];
|
|
1489
|
-
shareVFile?: [{
|
|
1490
|
-
vFileId: string;
|
|
1491
|
-
userId: string;
|
|
1492
|
-
nameKey: string;
|
|
1493
|
-
rights: ValueTypes["Rights"];
|
|
1494
|
-
history: ValueTypes["ShareFileKeyInput"][];
|
|
1495
|
-
}, ValueTypes["ShareVFileResult"]];
|
|
1496
|
-
unreadMail?: [{
|
|
1497
|
-
mailId: string;
|
|
1498
|
-
}, ValueTypes["UnreadMailResult"]];
|
|
1499
|
-
updateAppNotifications?: [{
|
|
1500
|
-
enableAll?: boolean | null;
|
|
1501
|
-
mail?: boolean | null;
|
|
1502
|
-
cloud?: boolean | null;
|
|
1503
|
-
disableAllUntil?: ValueTypes["DateTime"] | null;
|
|
1504
|
-
}, ValueTypes["UpdateAppNotificationsResult"]];
|
|
1505
|
-
updateAppSettings?: [{
|
|
1506
|
-
cloudFileDaysForDelete?: number | null;
|
|
1507
|
-
cloudFolderDaysForDelete?: number | null;
|
|
1508
|
-
historyFileDaysForDelete?: number | null;
|
|
1509
|
-
historyMaxFileCount?: number | null;
|
|
1510
|
-
autoDisconnectDelay?: number | null;
|
|
1511
|
-
}, ValueTypes["UpdateAppSettingsResult"]];
|
|
1512
|
-
updateDraftMail?: [{
|
|
1513
|
-
draftId: string;
|
|
1514
|
-
hash?: string | null;
|
|
1515
|
-
hashKey?: string | null;
|
|
1516
|
-
body?: string | null;
|
|
1517
|
-
subject?: string | null;
|
|
1518
|
-
replyTo?: string | null;
|
|
1519
|
-
senderFiles?: ValueTypes["MailFileInput"][];
|
|
1520
|
-
recipients?: string[];
|
|
1521
|
-
}, ValueTypes["UpdateDraftMailResult"]];
|
|
1522
|
-
updateFile?: [{
|
|
1523
|
-
fileId: string;
|
|
1524
|
-
isFavorite?: boolean | null;
|
|
1525
|
-
filename?: string | null;
|
|
1526
|
-
deletedAt?: ValueTypes["DateTime"] | null;
|
|
1527
|
-
}, ValueTypes["UpdateFileResult"]];
|
|
1528
|
-
updateFolder?: [{
|
|
1529
|
-
folderId: string;
|
|
1530
|
-
name?: string | null;
|
|
1531
|
-
isFavorite?: boolean | null;
|
|
1532
|
-
deletedAt?: ValueTypes["DateTime"] | null;
|
|
1533
|
-
}, ValueTypes["UpdateFolderResult"]];
|
|
1534
|
-
updateProfile?: [{
|
|
1535
|
-
firstname?: string | null;
|
|
1536
|
-
lastname?: string | null;
|
|
1537
|
-
lang?: ValueTypes["Lang"] | null;
|
|
1538
|
-
}, ValueTypes["UpdateProfileResult"]];
|
|
1539
|
-
uploadAnonymous?: [{
|
|
1540
|
-
fileName: string;
|
|
1541
|
-
fileSize: number;
|
|
1542
|
-
fileSizeBefore: number;
|
|
1543
|
-
message?: string | null;
|
|
1544
|
-
pubKey: string;
|
|
1545
|
-
token: string;
|
|
1546
|
-
}, ValueTypes["FileResponse"]];
|
|
1547
|
-
uploadFile?: [{
|
|
1548
|
-
fileSize: ValueTypes["BigInt"];
|
|
1549
|
-
fileSizeBefore: ValueTypes["BigInt"];
|
|
1550
|
-
fileKey: string;
|
|
1551
|
-
md5: string;
|
|
1552
|
-
md5Encrypted: string;
|
|
1553
|
-
}, ValueTypes["UploadFileResult"]];
|
|
1554
|
-
uploadFileEnd?: [{
|
|
1555
|
-
fileId: string;
|
|
1556
|
-
}, ValueTypes["UploadFileEndResult"]];
|
|
1557
|
-
uploadFilePartEnd?: [{
|
|
1558
|
-
fileId: string;
|
|
1559
|
-
md5: string;
|
|
1560
|
-
order: number;
|
|
1561
|
-
}, ValueTypes["UploadFilePartEndResult"]];
|
|
1562
|
-
changeUserPlan?: [{
|
|
1563
|
-
userId: string;
|
|
1564
|
-
plan: ValueTypes["PlanKind"];
|
|
1565
|
-
}, ValueTypes["ChangeUserPlanResult"]];
|
|
1566
|
-
__typename?: boolean;
|
|
1567
|
-
}>;
|
|
1568
|
-
["Subscription"]: AliasType<{
|
|
1569
|
-
test?: boolean;
|
|
1570
|
-
__typename?: boolean;
|
|
1571
|
-
}>;
|
|
1572
|
-
};
|
|
1573
|
-
export declare type ModelTypes = {
|
|
1574
|
-
["BigInt"]: any;
|
|
1575
|
-
["Bytes"]: any;
|
|
1576
|
-
["DateTime"]: any;
|
|
1577
|
-
["Decimal"]: any;
|
|
1578
|
-
["Json"]: any;
|
|
1579
|
-
["Lang"]: GraphQLTypes["Lang"];
|
|
1580
|
-
["PlanKind"]: GraphQLTypes["PlanKind"];
|
|
1581
|
-
["UserRole"]: GraphQLTypes["UserRole"];
|
|
1582
|
-
["MailType"]: GraphQLTypes["MailType"];
|
|
1583
|
-
["Rights"]: GraphQLTypes["Rights"];
|
|
1584
|
-
["AppNotificationsResult"]: ModelTypes["UserAppNotifications"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1585
|
-
["BlogResult"]: ModelTypes["BlogResponse"] | ModelTypes["ErrorLangNotExist"];
|
|
1586
|
-
["DbConfigResult"]: ModelTypes["DbConfigResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorNotFound"];
|
|
1587
|
-
["DbGetResult"]: ModelTypes["DbGetResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorNotExist"];
|
|
1588
|
-
["DbSearchResult"]: ModelTypes["DbSearchResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorBasic"];
|
|
1589
|
-
["DeletedFoldersResult"]: ModelTypes["DeletedFoldersResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1590
|
-
["DeletedMailsResult"]: ModelTypes["DeletedMailsResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1591
|
-
["DeletedVFilesResult"]: ModelTypes["DeletedVFilesResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1592
|
-
["FaqResult"]: ModelTypes["FaqResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1593
|
-
["FileResult"]: ModelTypes["FileQueryResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1594
|
-
["FileContentResult"]: ModelTypes["FileContentResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1595
|
-
["FolderResult"]: ModelTypes["FolderResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1596
|
-
["FolderSizeResult"]: ModelTypes["FolderSizeResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1597
|
-
["FoldersSharedWithMeResult"]: ModelTypes["FolderSharedWithMeResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1598
|
-
["LimitsResult"]: ModelTypes["QueryLimits"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorLimit"];
|
|
1599
|
-
["MailResult"]: ModelTypes["QueryMailResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1600
|
-
["PaymentInfosResult"]: ModelTypes["PaymentInfosResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1601
|
-
["PlansResult"]: ModelTypes["PlanResponse"];
|
|
1602
|
-
["SharedFoldersResult"]: ModelTypes["SharedFoldersResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1603
|
-
["SharedVFilesResult"]: ModelTypes["SharedVFilesResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1604
|
-
["UnreadReceivedMailsCountResult"]: ModelTypes["UnreadReceivedMailsCountResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1605
|
-
["UserResult"]: ModelTypes["UserResponse"] | ModelTypes["ErrorNotFound"];
|
|
1606
|
-
["VFileResult"]: ModelTypes["VFileResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1607
|
-
["VFilesSharedWithMeResult"]: ModelTypes["VFilesSharedWithMeResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1608
|
-
["UserListResult"]: ModelTypes["UserListResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1609
|
-
["AddFileToHistoryResult"]: ModelTypes["AddFileToHistoryResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1610
|
-
["CancelPaymentResult"]: ModelTypes["CancelPaymentResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1611
|
-
["CreateApplicationResult"]: ModelTypes["CreateApplicationResponse"] | ModelTypes["ErrorNotExist"];
|
|
1612
|
-
["CreateDraftMailResult"]: ModelTypes["CreateDraftMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1613
|
-
["CreateFolderResult"]: ModelTypes["CreateFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1614
|
-
["DbConfigMutationResult"]: ModelTypes["DbConfigMutationResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1615
|
-
["DbSetResult"]: ModelTypes["DbSetResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1616
|
-
["DeleteDraftMailResult"]: ModelTypes["DeleteDraftMailResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1617
|
-
["DeleteFileResult"]: ModelTypes["DeleteFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1618
|
-
["DeleteFolderResult"]: ModelTypes["DeleteFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1619
|
-
["DeleteFolderCloudTrashResult"]: ModelTypes["DeleteFolderCloudTrashResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1620
|
-
["DeleteFolderSharingResult"]: ModelTypes["DeleteFolderSharingResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1621
|
-
["DeleteMailResult"]: ModelTypes["DeleteMailResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1622
|
-
["DeleteMailTrashResult"]: ModelTypes["DeleteMailTrashResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1623
|
-
["DeleteUserResult"]: ModelTypes["DeleteUserResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1624
|
-
["DeleteVFileResult"]: ModelTypes["DeleteVFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1625
|
-
["DeleteVFileCloudTrashResult"]: ModelTypes["DeleteVFileCloudTrashResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1626
|
-
["DeleteVFileSharingResult"]: ModelTypes["DeleteVFileSharingResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1627
|
-
["DuplicateVFileResult"]: ModelTypes["DuplicateVFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1628
|
-
["EmptyCloudTrashResult"]: ModelTypes["DeleteMailResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1629
|
-
["EmptyMailTrashResult"]: ModelTypes["EmptyMailTrashResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1630
|
-
["LogoutResult"]: ModelTypes["LogoutResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1631
|
-
["MoveFilesResult"]: ModelTypes["MoveFilesResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1632
|
-
["MoveFoldersResult"]: ModelTypes["MoveFoldersResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1633
|
-
["PayResult"]: ModelTypes["PayResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1634
|
-
["ReadMailResult"]: ModelTypes["ReadMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"] | ModelTypes["ErrorNotFound"];
|
|
1635
|
-
["RecoverFolderResult"]: ModelTypes["RecoverFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1636
|
-
["RecoverMailResult"]: ModelTypes["RecoverMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1637
|
-
["RecoverVFileResult"]: ModelTypes["RecoverVFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1638
|
-
["SaveInCloudResult"]: ModelTypes["SaveInCloudResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorBasic"];
|
|
1639
|
-
["SendDraftMailResult"]: ModelTypes["SendDraftMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1640
|
-
["SendOneMailResult"]: ModelTypes["RecoverFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1641
|
-
["SendReportResult"]: ModelTypes["SendReportResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1642
|
-
["ShareFileInHistoryResult"]: ModelTypes["ShareFileInHistoryResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1643
|
-
["ShareFolderResult"]: ModelTypes["ShareFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1644
|
-
["ShareFolderFinishResult"]: ModelTypes["ShareFolderFinishResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1645
|
-
["ShareVFileResult"]: ModelTypes["ShareVFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorNotFound"];
|
|
1646
|
-
["UnreadMailResult"]: ModelTypes["UnreadMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorBasic"];
|
|
1647
|
-
["UpdateAppNotificationsResult"]: ModelTypes["UpdateAppNotificationsResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1648
|
-
["UpdateAppSettingsResult"]: ModelTypes["UpdateAppSettingsResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1649
|
-
["UpdateDraftMailResult"]: ModelTypes["UpdateDraftMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1650
|
-
["UpdateFileResult"]: ModelTypes["UpdateFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorBasic"];
|
|
1651
|
-
["UpdateFolderResult"]: ModelTypes["UpdateFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1652
|
-
["UpdateProfileResult"]: ModelTypes["UpdateProfileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1653
|
-
["UploadFileResult"]: ModelTypes["UploadFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorLimit"];
|
|
1654
|
-
["UploadFileEndResult"]: ModelTypes["UploadFileEndResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1655
|
-
["UploadFilePartEndResult"]: ModelTypes["UploadFilePartEndResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1656
|
-
["ChangeUserPlanResult"]: ModelTypes["ChangeUserPlanResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1657
|
-
["AppKeyPair"]: {
|
|
1658
|
-
pub: string;
|
|
1659
|
-
};
|
|
1660
|
-
["AppSession"]: {
|
|
1661
|
-
id: string;
|
|
1662
|
-
lastActivity?: ModelTypes["DateTime"];
|
|
1663
|
-
userAgent?: string;
|
|
1664
|
-
ip?: string;
|
|
1665
|
-
city?: string;
|
|
1666
|
-
country?: string;
|
|
1667
|
-
userSession: ModelTypes["UserSession"];
|
|
1668
|
-
userApp?: ModelTypes["ApplicationsOnUsers"];
|
|
1669
|
-
createdAt: ModelTypes["DateTime"];
|
|
1670
|
-
};
|
|
1671
|
-
["Application"]: {
|
|
1672
|
-
id: string;
|
|
1673
|
-
name: string;
|
|
1674
|
-
};
|
|
1675
|
-
["ApplicationsOnUsers"]: {
|
|
1676
|
-
fakeUserId: string;
|
|
1677
|
-
keyPair?: ModelTypes["AppKeyPair"];
|
|
1678
|
-
sessions: ModelTypes["AppSession"][];
|
|
1679
|
-
app: ModelTypes["Application"];
|
|
1680
|
-
user: ModelTypes["User"];
|
|
1681
|
-
folders: ModelTypes["FoldersOnUsersOnApplications"][];
|
|
1682
|
-
settings: ModelTypes["UserAppSettings"];
|
|
1683
|
-
};
|
|
1684
|
-
["Blog"]: {
|
|
1685
|
-
id: string;
|
|
1686
|
-
order: number;
|
|
1687
|
-
entries: ModelTypes["BlogEntry"][];
|
|
1688
|
-
};
|
|
1689
|
-
["BlogEntry"]: {
|
|
1690
|
-
id: string;
|
|
1691
|
-
lang: ModelTypes["Lang"];
|
|
1692
|
-
author: string;
|
|
1693
|
-
body: string;
|
|
1694
|
-
date: ModelTypes["DateTime"];
|
|
1695
|
-
image: string;
|
|
1696
|
-
summary: string;
|
|
1697
|
-
title: string;
|
|
1698
|
-
};
|
|
1699
|
-
["BlogItem"]: {
|
|
1700
|
-
id: string;
|
|
1701
|
-
blogId: string;
|
|
1702
|
-
order: number;
|
|
1703
|
-
title: string;
|
|
1704
|
-
body: string;
|
|
1705
|
-
author: string;
|
|
1706
|
-
image: string;
|
|
1707
|
-
imageAlt: string;
|
|
1708
|
-
summary: string;
|
|
1709
|
-
date: ModelTypes["DateTime"];
|
|
1710
|
-
};
|
|
1711
|
-
["CloudLimits"]: {
|
|
1712
|
-
size: ModelTypes["BigInt"];
|
|
1713
|
-
maxSize?: ModelTypes["BigInt"];
|
|
1714
|
-
count: ModelTypes["BigInt"];
|
|
1715
|
-
maxCount?: ModelTypes["BigInt"];
|
|
1716
|
-
};
|
|
1717
|
-
["Error"]: ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorUpgradePlan"] | ModelTypes["ErrorLangNotExist"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorLimit"] | ModelTypes["ErrorBasic"];
|
|
1718
|
-
["ErrorAccessDenied"]: {
|
|
1719
|
-
message: string;
|
|
1720
|
-
};
|
|
1721
|
-
["ErrorBase"]: ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"] | ModelTypes["ErrorLangNotExist"] | ModelTypes["ErrorLimit"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorUpgradePlan"];
|
|
1722
|
-
["ErrorBasic"]: {
|
|
1723
|
-
message: string;
|
|
1724
|
-
};
|
|
1725
|
-
["ErrorLangNotExist"]: {
|
|
1726
|
-
message: string;
|
|
1727
|
-
};
|
|
1728
|
-
["ErrorLimit"]: {
|
|
1729
|
-
message: string;
|
|
1730
|
-
field?: string;
|
|
1731
|
-
};
|
|
1732
|
-
["ErrorNotExist"]: {
|
|
1733
|
-
message: string;
|
|
1734
|
-
field?: string;
|
|
1735
|
-
};
|
|
1736
|
-
["ErrorNotFound"]: {
|
|
1737
|
-
message: string;
|
|
1738
|
-
field?: string;
|
|
1739
|
-
};
|
|
1740
|
-
["ErrorUpgradePlan"]: {
|
|
1741
|
-
message: string;
|
|
1742
|
-
};
|
|
1743
|
-
["Faq"]: {
|
|
1744
|
-
id: string;
|
|
1745
|
-
order: number;
|
|
1746
|
-
entries: ModelTypes["FaqEntry"][];
|
|
1747
|
-
};
|
|
1748
|
-
["FaqEntry"]: {
|
|
1749
|
-
id: string;
|
|
1750
|
-
lang: ModelTypes["Lang"];
|
|
1751
|
-
question: string;
|
|
1752
|
-
answer: string;
|
|
1753
|
-
faq: ModelTypes["Faq"];
|
|
1754
|
-
};
|
|
1755
|
-
["FaqItem"]: {
|
|
1756
|
-
order: number;
|
|
1757
|
-
question: string;
|
|
1758
|
-
answer: string;
|
|
1759
|
-
};
|
|
1760
|
-
["File"]: {
|
|
1761
|
-
id: string;
|
|
1762
|
-
size: ModelTypes["BigInt"];
|
|
1763
|
-
sizeBefore: ModelTypes["BigInt"];
|
|
1764
|
-
createdAt: ModelTypes["DateTime"];
|
|
1765
|
-
vFiles: ModelTypes["VFile"][];
|
|
1766
|
-
vFilesCurrent: ModelTypes["VFile"][];
|
|
1767
|
-
users: ModelTypes["FilesOnUsersOnApplications"][];
|
|
1768
|
-
md5: string;
|
|
1769
|
-
md5Encrypted: string;
|
|
1770
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
1771
|
-
userApp: ModelTypes["ApplicationsOnUsers"];
|
|
1772
|
-
mails: ModelTypes["FilesOnMails"][];
|
|
1773
|
-
validatedAt?: ModelTypes["DateTime"];
|
|
1774
|
-
user?: ModelTypes["FilesOnUsersOnApplications"];
|
|
1775
|
-
};
|
|
1776
|
-
["FileContent"]: ModelTypes["FileContentCloud"] | ModelTypes["FileContentReceivedMail"] | ModelTypes["FileContentSentMail"];
|
|
1777
|
-
["FileContentBase"]: ModelTypes["FileContentCloud"] | ModelTypes["FileContentReceivedMail"] | ModelTypes["FileContentSentMail"];
|
|
1778
|
-
["FileContentCloud"]: {
|
|
1779
|
-
parts: ModelTypes["FileContentPart"][];
|
|
1780
|
-
key: string;
|
|
1781
|
-
md5: string;
|
|
1782
|
-
md5Encrypted: string;
|
|
1783
|
-
totalSize: ModelTypes["BigInt"];
|
|
1784
|
-
type: ModelTypes["FileContentType"];
|
|
1785
|
-
publicKey: string;
|
|
1786
|
-
};
|
|
1787
|
-
["FileContentPart"]: {
|
|
1788
|
-
contentUrl: string;
|
|
1789
|
-
order: number;
|
|
1790
|
-
md5: string;
|
|
1791
|
-
};
|
|
1792
|
-
["FileContentReceivedMail"]: {
|
|
1793
|
-
parts: ModelTypes["FileContentPart"][];
|
|
1794
|
-
key: string;
|
|
1795
|
-
md5: string;
|
|
1796
|
-
md5Encrypted: string;
|
|
1797
|
-
totalSize: ModelTypes["BigInt"];
|
|
1798
|
-
type: ModelTypes["FileContentType"];
|
|
1799
|
-
senderPublicKey: string;
|
|
1800
|
-
};
|
|
1801
|
-
["FileContentSentMail"]: {
|
|
1802
|
-
parts: ModelTypes["FileContentPart"][];
|
|
1803
|
-
key: string;
|
|
1804
|
-
md5: string;
|
|
1805
|
-
md5Encrypted: string;
|
|
1806
|
-
totalSize: ModelTypes["BigInt"];
|
|
1807
|
-
type: ModelTypes["FileContentType"];
|
|
1808
|
-
};
|
|
1809
|
-
["FileContentType"]: GraphQLTypes["FileContentType"];
|
|
1810
|
-
["FilePart"]: {
|
|
1811
|
-
id: string;
|
|
1812
|
-
file: ModelTypes["File"];
|
|
1813
|
-
fileId: string;
|
|
1814
|
-
size: ModelTypes["BigInt"];
|
|
1815
|
-
order: number;
|
|
1816
|
-
md5: string;
|
|
1817
|
-
validatedAt?: ModelTypes["DateTime"];
|
|
1818
|
-
};
|
|
1819
|
-
["FilePartResponse"]: {
|
|
1820
|
-
fields: ModelTypes["Json"];
|
|
1821
|
-
url: string;
|
|
1822
|
-
order: number;
|
|
1823
|
-
};
|
|
1824
|
-
["FileResponse"]: {
|
|
1825
|
-
fileId: string;
|
|
1826
|
-
parts: ModelTypes["FilePartResponse"][];
|
|
1827
|
-
filePartSize: ModelTypes["BigInt"];
|
|
1828
|
-
};
|
|
1829
|
-
["FileShared"]: {
|
|
1830
|
-
userId: string;
|
|
1831
|
-
message?: string;
|
|
1832
|
-
appId: string;
|
|
1833
|
-
id: string;
|
|
1834
|
-
filename: string;
|
|
1835
|
-
size: number;
|
|
1836
|
-
sizeBefore: number;
|
|
1837
|
-
};
|
|
1838
|
-
["FileSharedContent"]: {
|
|
1839
|
-
ownerId?: string;
|
|
1840
|
-
pubKey?: string;
|
|
1841
|
-
message?: string;
|
|
1842
|
-
appId: string;
|
|
1843
|
-
id: string;
|
|
1844
|
-
type: string;
|
|
1845
|
-
filename: string;
|
|
1846
|
-
contentUrl: string;
|
|
1847
|
-
key: string;
|
|
1848
|
-
size: number;
|
|
1849
|
-
sizeBefore: number;
|
|
1850
|
-
};
|
|
1851
|
-
["FilesOnMails"]: {
|
|
1852
|
-
file: ModelTypes["File"];
|
|
1853
|
-
fileKey: string;
|
|
1854
|
-
filename: string;
|
|
1855
|
-
mail: ModelTypes["Mail"];
|
|
1856
|
-
};
|
|
1857
|
-
["FilesOnUsersOnApplications"]: {
|
|
1858
|
-
file: ModelTypes["File"];
|
|
1859
|
-
userApp: ModelTypes["ApplicationsOnUsers"];
|
|
1860
|
-
key: string;
|
|
1861
|
-
};
|
|
1862
|
-
["Folder"]: {
|
|
1863
|
-
id: string;
|
|
1864
|
-
isFavorite: boolean;
|
|
1865
|
-
createdAt: ModelTypes["DateTime"];
|
|
1866
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
1867
|
-
updatedAt: ModelTypes["DateTime"];
|
|
1868
|
-
createdBy: ModelTypes["ApplicationsOnUsers"];
|
|
1869
|
-
userApps: ModelTypes["FoldersOnUsersOnApplications"][];
|
|
1870
|
-
userApp?: ModelTypes["FoldersOnUsersOnApplications"];
|
|
1871
|
-
name: string;
|
|
1872
|
-
parentFolder?: ModelTypes["Folder"];
|
|
1873
|
-
subfolders: ModelTypes["Folder"][];
|
|
1874
|
-
vFiles: ModelTypes["VFile"][];
|
|
1875
|
-
breadcrumb: ModelTypes["FolderBreadcrumbItem"][];
|
|
1876
|
-
};
|
|
1877
|
-
["FolderBreadcrumbItem"]: {
|
|
1878
|
-
id: string;
|
|
1879
|
-
name: string;
|
|
1880
|
-
pubKey: string;
|
|
1881
|
-
nameKey?: string;
|
|
1882
|
-
};
|
|
1883
|
-
["FolderSize"]: {
|
|
1884
|
-
size: ModelTypes["BigInt"];
|
|
1885
|
-
sizeBefore: ModelTypes["BigInt"];
|
|
1886
|
-
};
|
|
1887
|
-
["FoldersOnUsersOnApplications"]: {
|
|
1888
|
-
folder: ModelTypes["Folder"];
|
|
1889
|
-
userApp: ModelTypes["ApplicationsOnUsers"];
|
|
1890
|
-
rights: ModelTypes["Rights"];
|
|
1891
|
-
nameKey?: string;
|
|
1892
|
-
isRoot: boolean;
|
|
1893
|
-
};
|
|
1894
|
-
["MailFileInput"]: GraphQLTypes["MailFileInput"];
|
|
1895
|
-
["MailRecipientInput"]: GraphQLTypes["MailRecipientInput"];
|
|
1896
|
-
["NameKeyInput"]: GraphQLTypes["NameKeyInput"];
|
|
1897
|
-
["NameKeyInputFolders"]: GraphQLTypes["NameKeyInputFolders"];
|
|
1898
|
-
["PayInput"]: GraphQLTypes["PayInput"];
|
|
1899
|
-
["PayInputType"]: GraphQLTypes["PayInputType"];
|
|
1900
|
-
["ShareFileInHistoryInput"]: GraphQLTypes["ShareFileInHistoryInput"];
|
|
1901
|
-
["ShareFileKeyInput"]: GraphQLTypes["ShareFileKeyInput"];
|
|
1902
|
-
["ShareFoldersInput"]: GraphQLTypes["ShareFoldersInput"];
|
|
1903
|
-
["Limits"]: {
|
|
1904
|
-
downloadBandwidth?: ModelTypes["BigInt"];
|
|
1905
|
-
downloadCount?: ModelTypes["BigInt"];
|
|
1906
|
-
hardFileCount?: ModelTypes["BigInt"];
|
|
1907
|
-
hardFileSize?: ModelTypes["BigInt"];
|
|
1908
|
-
perFileSize?: ModelTypes["BigInt"];
|
|
1909
|
-
receivedMails: ModelTypes["MailLimits"];
|
|
1910
|
-
sentMails: ModelTypes["MailLimits"];
|
|
1911
|
-
uploadBandwidth?: ModelTypes["BigInt"];
|
|
1912
|
-
uploadCount?: ModelTypes["BigInt"];
|
|
1913
|
-
};
|
|
1914
|
-
["MailLimits"]: {
|
|
1915
|
-
count?: ModelTypes["BigInt"];
|
|
1916
|
-
fileCount?: ModelTypes["BigInt"];
|
|
1917
|
-
fileSize?: ModelTypes["BigInt"];
|
|
1918
|
-
hardCount?: ModelTypes["BigInt"];
|
|
1919
|
-
hardFileCount?: ModelTypes["BigInt"];
|
|
1920
|
-
hardFileSize?: ModelTypes["BigInt"];
|
|
1921
|
-
perFileSize?: ModelTypes["BigInt"];
|
|
1922
|
-
};
|
|
1923
|
-
["MailLimitsValues"]: {
|
|
1924
|
-
count: ModelTypes["BigInt"];
|
|
1925
|
-
maxCount?: ModelTypes["BigInt"];
|
|
1926
|
-
fileCount: ModelTypes["BigInt"];
|
|
1927
|
-
maxFileCount?: ModelTypes["BigInt"];
|
|
1928
|
-
fileSize: ModelTypes["BigInt"];
|
|
1929
|
-
maxFileSize?: ModelTypes["BigInt"];
|
|
1930
|
-
};
|
|
1931
|
-
["QueryLimits"]: {
|
|
1932
|
-
cloud: ModelTypes["CloudLimits"];
|
|
1933
|
-
mail: ModelTypes["UserMailLimits"];
|
|
1934
|
-
};
|
|
1935
|
-
["UserMailLimits"]: {
|
|
1936
|
-
sent: ModelTypes["MailLimitsValues"];
|
|
1937
|
-
received: ModelTypes["MailLimitsValues"];
|
|
1938
|
-
};
|
|
1939
|
-
["Mail"]: {
|
|
1940
|
-
id: string;
|
|
1941
|
-
app: ModelTypes["Application"];
|
|
1942
|
-
body: string;
|
|
1943
|
-
createdAt: ModelTypes["DateTime"];
|
|
1944
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
1945
|
-
files: ModelTypes["FilesOnMails"][];
|
|
1946
|
-
mailIntegrity?: ModelTypes["MailIntegrity"];
|
|
1947
|
-
mailIntegrityDraft?: ModelTypes["MailIntegrityDraft"];
|
|
1948
|
-
openedAt?: ModelTypes["DateTime"];
|
|
1949
|
-
recipient: ModelTypes["User"];
|
|
1950
|
-
sender: ModelTypes["User"];
|
|
1951
|
-
subject: string;
|
|
1952
|
-
type: ModelTypes["MailType"];
|
|
1953
|
-
recipients: ModelTypes["User"][];
|
|
1954
|
-
};
|
|
1955
|
-
["MailIntegrity"]: {
|
|
1956
|
-
id: string;
|
|
1957
|
-
hash: string;
|
|
1958
|
-
hashKey: string;
|
|
1959
|
-
answers: ModelTypes["MailIntegrity"][];
|
|
1960
|
-
app: ModelTypes["Application"];
|
|
1961
|
-
mails: ModelTypes["Mail"][];
|
|
1962
|
-
recipients: ModelTypes["User"][];
|
|
1963
|
-
temporaryRecipients: ModelTypes["TemporaryUser"][];
|
|
1964
|
-
replyTo?: ModelTypes["MailIntegrity"];
|
|
1965
|
-
};
|
|
1966
|
-
["MailIntegrityDraft"]: {
|
|
1967
|
-
id: string;
|
|
1968
|
-
hash: string;
|
|
1969
|
-
hashKey: string;
|
|
1970
|
-
app: ModelTypes["Application"];
|
|
1971
|
-
mail: ModelTypes["Mail"];
|
|
1972
|
-
recipients: ModelTypes["User"][];
|
|
1973
|
-
temporaryRecipients: ModelTypes["TemporaryUser"][];
|
|
1974
|
-
replyTo?: ModelTypes["MailIntegrity"];
|
|
1975
|
-
};
|
|
1976
|
-
["Plan"]: {
|
|
1977
|
-
id: string;
|
|
1978
|
-
kind: ModelTypes["PlanKind"];
|
|
1979
|
-
codes: string[];
|
|
1980
|
-
limits: ModelTypes["Limits"];
|
|
1981
|
-
};
|
|
1982
|
-
["Report"]: {
|
|
1983
|
-
id: string;
|
|
1984
|
-
user: ModelTypes["User"];
|
|
1985
|
-
reportedUser: ModelTypes["User"];
|
|
1986
|
-
customMessage?: string;
|
|
1987
|
-
};
|
|
1988
|
-
["AddFileToHistoryResponse"]: {
|
|
1989
|
-
addFileToHistory: ModelTypes["VFile"];
|
|
1990
|
-
};
|
|
1991
|
-
["CancelPaymentResponse"]: {
|
|
1992
|
-
cancelPayment?: boolean;
|
|
1993
|
-
};
|
|
1994
|
-
["ChangeUserPlanResponse"]: {
|
|
1995
|
-
changeUserPlan?: ModelTypes["User"];
|
|
1996
|
-
};
|
|
1997
|
-
["CreateApplicationResponse"]: {
|
|
1998
|
-
createApplication?: string;
|
|
1999
|
-
};
|
|
2000
|
-
["CreateDraftMailResponse"]: {
|
|
2001
|
-
createDraftMail?: ModelTypes["Mail"];
|
|
2002
|
-
};
|
|
2003
|
-
["CreateFolderResponse"]: {
|
|
2004
|
-
createFolder?: ModelTypes["Folder"];
|
|
2005
|
-
};
|
|
2006
|
-
["DbConfigMutationResponse"]: {
|
|
2007
|
-
dbConfigMutation: ModelTypes["Json"];
|
|
2008
|
-
};
|
|
2009
|
-
["DbSetResponse"]: {
|
|
2010
|
-
dbSet?: ModelTypes["Json"];
|
|
2011
|
-
};
|
|
2012
|
-
["DeleteDraftMailResponse"]: {
|
|
2013
|
-
deleteDraftMail?: boolean;
|
|
2014
|
-
};
|
|
2015
|
-
["DeleteFileResponse"]: {
|
|
2016
|
-
deleteFile: boolean;
|
|
2017
|
-
};
|
|
2018
|
-
["DeleteFolderResponse"]: {
|
|
2019
|
-
deleteFolder?: boolean;
|
|
2020
|
-
};
|
|
2021
|
-
["DeleteFolderCloudTrashResponse"]: {
|
|
2022
|
-
deleteFolderCloudTrash?: boolean;
|
|
2023
|
-
};
|
|
2024
|
-
["DeleteFolderSharingResponse"]: {
|
|
2025
|
-
deleteFolderSharing: boolean;
|
|
2026
|
-
};
|
|
2027
|
-
["DeleteMailResponse"]: {
|
|
2028
|
-
deleteMail: boolean;
|
|
2029
|
-
};
|
|
2030
|
-
["DeleteMailTrashResponse"]: {
|
|
2031
|
-
deleteMailTrash: boolean;
|
|
2032
|
-
};
|
|
2033
|
-
["DeleteUserResponse"]: {
|
|
2034
|
-
deleteUser?: boolean;
|
|
2035
|
-
};
|
|
2036
|
-
["DeleteVFileResponse"]: {
|
|
2037
|
-
deleteVFile: boolean;
|
|
2038
|
-
};
|
|
2039
|
-
["DeleteVFileCloudTrashResponse"]: {
|
|
2040
|
-
deleteVFileCloudTrash?: boolean;
|
|
2041
|
-
};
|
|
2042
|
-
["DeleteVFileSharingResponse"]: {
|
|
2043
|
-
deleteVFileSharing: boolean;
|
|
2044
|
-
};
|
|
2045
|
-
["DuplicateVFileResponse"]: {
|
|
2046
|
-
duplicateVFile: boolean;
|
|
2047
|
-
};
|
|
2048
|
-
["EmptyCloudTrashResponse"]: {
|
|
2049
|
-
emptyCloudTrash?: boolean;
|
|
2050
|
-
};
|
|
2051
|
-
["EmptyMailTrashResponse"]: {
|
|
2052
|
-
emptyMailTrash?: boolean;
|
|
2053
|
-
};
|
|
2054
|
-
["LogoutResponse"]: {
|
|
2055
|
-
logout?: boolean;
|
|
2056
|
-
};
|
|
2057
|
-
["MoveFilesResponse"]: {
|
|
2058
|
-
moveFiles?: boolean;
|
|
2059
|
-
};
|
|
2060
|
-
["MoveFoldersResponse"]: {
|
|
2061
|
-
moveFolders?: boolean;
|
|
2062
|
-
};
|
|
2063
|
-
["PayResponse"]: {
|
|
2064
|
-
pay: boolean;
|
|
2065
|
-
};
|
|
2066
|
-
["ReadMailResponse"]: {
|
|
2067
|
-
readMail?: boolean;
|
|
2068
|
-
};
|
|
2069
|
-
["RecoverFolderResponse"]: {
|
|
2070
|
-
recoverFolder?: boolean;
|
|
2071
|
-
};
|
|
2072
|
-
["RecoverMailResponse"]: {
|
|
2073
|
-
recoverMail: boolean;
|
|
2074
|
-
};
|
|
2075
|
-
["RecoverVFileResponse"]: {
|
|
2076
|
-
recoverVFile: boolean;
|
|
2077
|
-
};
|
|
2078
|
-
["SaveInCloudResponse"]: {
|
|
2079
|
-
saveInCloud?: ModelTypes["VFile"];
|
|
2080
|
-
};
|
|
2081
|
-
["SendDraftMailResponse"]: {
|
|
2082
|
-
sendDraftMail?: boolean;
|
|
2083
|
-
};
|
|
2084
|
-
["SendOneMailResponse"]: {
|
|
2085
|
-
sendOneMail?: boolean;
|
|
2086
|
-
};
|
|
2087
|
-
["SendReportResponse"]: {
|
|
2088
|
-
sendReport?: ModelTypes["Report"];
|
|
2089
|
-
};
|
|
2090
|
-
["ShareFileInHistoryResponse"]: {
|
|
2091
|
-
shareFileInHistory: boolean;
|
|
2092
|
-
};
|
|
2093
|
-
["ShareFolderFinishResponse"]: {
|
|
2094
|
-
shareFolderFinish?: boolean;
|
|
2095
|
-
};
|
|
2096
|
-
["ShareVFileResponse"]: {
|
|
2097
|
-
shareVFile?: boolean;
|
|
2098
|
-
};
|
|
2099
|
-
["UnreadMailResponse"]: {
|
|
2100
|
-
unreadMail?: boolean;
|
|
2101
|
-
};
|
|
2102
|
-
["UpdateAppNotificationsResponse"]: {
|
|
2103
|
-
updateAppNotifications?: ModelTypes["UserAppNotifications"];
|
|
2104
|
-
};
|
|
2105
|
-
["UpdateAppSettingsResponse"]: {
|
|
2106
|
-
updateAppSettings: ModelTypes["UserAppSettings"];
|
|
2107
|
-
};
|
|
2108
|
-
["UpdateDraftMailResponse"]: {
|
|
2109
|
-
updateDraftMail?: ModelTypes["Mail"];
|
|
2110
|
-
};
|
|
2111
|
-
["UpdateFileResponse"]: {
|
|
2112
|
-
updateFile?: ModelTypes["VFile"];
|
|
2113
|
-
};
|
|
2114
|
-
["UpdateFolderResponse"]: {
|
|
2115
|
-
updateFolder?: ModelTypes["Folder"];
|
|
2116
|
-
};
|
|
2117
|
-
["UpdateProfileResponse"]: {
|
|
2118
|
-
updateProfile?: ModelTypes["User"];
|
|
2119
|
-
};
|
|
2120
|
-
["UploadAnonymousResponse"]: {
|
|
2121
|
-
uploadAnonymous?: ModelTypes["FileResponse"];
|
|
2122
|
-
};
|
|
2123
|
-
["UploadFileResponse"]: {
|
|
2124
|
-
uploadFile?: ModelTypes["FileResponse"];
|
|
2125
|
-
};
|
|
2126
|
-
["UploadFileEndResponse"]: {
|
|
2127
|
-
uploadFileEnd?: string;
|
|
2128
|
-
};
|
|
2129
|
-
["UploadFilePartEndResponse"]: {
|
|
2130
|
-
uploadFilePartEnd: boolean;
|
|
2131
|
-
};
|
|
2132
|
-
["BlogResponse"]: {
|
|
2133
|
-
blogItems: ModelTypes["BlogItem"][];
|
|
2134
|
-
};
|
|
2135
|
-
["DbConfigResponse"]: {
|
|
2136
|
-
json: ModelTypes["Json"];
|
|
2137
|
-
};
|
|
2138
|
-
["DbGetResponse"]: {
|
|
2139
|
-
json?: ModelTypes["Json"];
|
|
2140
|
-
};
|
|
2141
|
-
["DbSearchResponse"]: {
|
|
2142
|
-
json?: ModelTypes["Json"];
|
|
2143
|
-
};
|
|
2144
|
-
["DeletedFoldersResponse"]: {
|
|
2145
|
-
deletedFolders: ModelTypes["Folder"][];
|
|
2146
|
-
};
|
|
2147
|
-
["DeletedMailsResponse"]: {
|
|
2148
|
-
deletedMails: ModelTypes["Mail"][];
|
|
2149
|
-
};
|
|
2150
|
-
["DeletedVFilesResponse"]: {
|
|
2151
|
-
deletedVFiles: ModelTypes["VFile"][];
|
|
2152
|
-
};
|
|
2153
|
-
["FaqResponse"]: {
|
|
2154
|
-
faq: ModelTypes["FaqItem"][];
|
|
2155
|
-
};
|
|
2156
|
-
["FileQueryResponse"]: {
|
|
2157
|
-
file?: ModelTypes["File"];
|
|
2158
|
-
};
|
|
2159
|
-
["FileContentResponse"]: {
|
|
2160
|
-
file?: ModelTypes["FileContent"];
|
|
2161
|
-
};
|
|
2162
|
-
["FolderResponse"]: {
|
|
2163
|
-
folder?: ModelTypes["Folder"];
|
|
2164
|
-
};
|
|
2165
|
-
["FolderSharedWithMeResponse"]: {
|
|
2166
|
-
foldersSharedWithMe: ModelTypes["Folder"][];
|
|
2167
|
-
};
|
|
2168
|
-
["FolderSizeResponse"]: {
|
|
2169
|
-
size: ModelTypes["BigInt"];
|
|
2170
|
-
sizeBefore: ModelTypes["BigInt"];
|
|
2171
|
-
};
|
|
2172
|
-
["QueryMailResponse"]: {
|
|
2173
|
-
mail?: ModelTypes["Mail"];
|
|
2174
|
-
};
|
|
2175
|
-
["PaymentInfosResponse"]: {
|
|
2176
|
-
paymentInfos?: ModelTypes["PaymentInfos"];
|
|
2177
|
-
};
|
|
2178
|
-
["PlanResponse"]: {
|
|
2179
|
-
plan: ModelTypes["Plan"][];
|
|
2180
|
-
};
|
|
2181
|
-
["SharedFoldersResponse"]: {
|
|
2182
|
-
sharedFolders: ModelTypes["Folder"][];
|
|
2183
|
-
};
|
|
2184
|
-
["SharedVFilesResponse"]: {
|
|
2185
|
-
sharedVFiles: ModelTypes["VFile"][];
|
|
2186
|
-
};
|
|
2187
|
-
["UnreadReceivedMailsCountResponse"]: {
|
|
2188
|
-
count: number;
|
|
2189
|
-
};
|
|
2190
|
-
["UserResponse"]: {
|
|
2191
|
-
user?: ModelTypes["User"];
|
|
2192
|
-
};
|
|
2193
|
-
["UserListResponse"]: {
|
|
2194
|
-
userList: ModelTypes["User"][];
|
|
2195
|
-
};
|
|
2196
|
-
["VFileResponse"]: {
|
|
2197
|
-
vFile?: ModelTypes["VFile"];
|
|
2198
|
-
};
|
|
2199
|
-
["VFilesSharedWithMeResponse"]: {
|
|
2200
|
-
vFilesSharedWithMe: ModelTypes["VFile"][];
|
|
2201
|
-
};
|
|
2202
|
-
["TemporaryUser"]: {
|
|
2203
|
-
id: string;
|
|
2204
|
-
mails: ModelTypes["MailIntegrity"][];
|
|
2205
|
-
draftMails: ModelTypes["MailIntegrityDraft"][];
|
|
2206
|
-
email?: string;
|
|
2207
|
-
};
|
|
2208
|
-
["User"]: {
|
|
2209
|
-
id: string;
|
|
2210
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
2211
|
-
lang: ModelTypes["Lang"];
|
|
2212
|
-
reportSent: ModelTypes["Report"][];
|
|
2213
|
-
godFather?: ModelTypes["User"];
|
|
2214
|
-
godChildren: ModelTypes["User"][];
|
|
2215
|
-
firstname: string;
|
|
2216
|
-
lastname: string;
|
|
2217
|
-
email: string;
|
|
2218
|
-
phone: string;
|
|
2219
|
-
lastLogin: ModelTypes["DateTime"];
|
|
2220
|
-
role: ModelTypes["UserRole"];
|
|
2221
|
-
sessions: ModelTypes["UserSession"][];
|
|
2222
|
-
createdAt: ModelTypes["DateTime"];
|
|
2223
|
-
receivedMails: ModelTypes["Mail"][];
|
|
2224
|
-
waitingReceivedMails: ModelTypes["WaitingReceivedMail"][];
|
|
2225
|
-
sentMails: ModelTypes["Mail"][];
|
|
2226
|
-
draftMails: ModelTypes["Mail"][];
|
|
2227
|
-
appSettings?: ModelTypes["UserAppSettings"];
|
|
2228
|
-
applications: ModelTypes["ApplicationsOnUsers"][];
|
|
2229
|
-
publicKey: string;
|
|
2230
|
-
};
|
|
2231
|
-
["UserAppNotifications"]: {
|
|
2232
|
-
id: string;
|
|
2233
|
-
enableAll: boolean;
|
|
2234
|
-
mail: boolean;
|
|
2235
|
-
cloud: boolean;
|
|
2236
|
-
disableAllUntil?: ModelTypes["DateTime"];
|
|
2237
|
-
};
|
|
2238
|
-
["UserAppSettings"]: {
|
|
2239
|
-
id: string;
|
|
2240
|
-
cloudFileDaysForDelete: number;
|
|
2241
|
-
cloudFolderDaysForDelete: number;
|
|
2242
|
-
historyFileDaysForDelete?: number;
|
|
2243
|
-
historyMaxFileCount: number;
|
|
2244
|
-
autoDisconnectDelay?: number;
|
|
2245
|
-
};
|
|
2246
|
-
["UserSession"]: {
|
|
2247
|
-
id: string;
|
|
2248
|
-
appSessions: ModelTypes["AppSession"][];
|
|
2249
|
-
lastActivity?: ModelTypes["DateTime"];
|
|
2250
|
-
userAgent?: string;
|
|
2251
|
-
ip?: string;
|
|
2252
|
-
city?: string;
|
|
2253
|
-
country?: string;
|
|
2254
|
-
createdAt: ModelTypes["DateTime"];
|
|
2255
|
-
};
|
|
2256
|
-
["VFile"]: {
|
|
2257
|
-
id: string;
|
|
2258
|
-
isFavorite: boolean;
|
|
2259
|
-
createdAt: ModelTypes["DateTime"];
|
|
2260
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
2261
|
-
filename: string;
|
|
2262
|
-
userApps: ModelTypes["VFilesOnUsersOnApplications"][];
|
|
2263
|
-
createdBy: ModelTypes["ApplicationsOnUsers"];
|
|
2264
|
-
userApp?: ModelTypes["VFilesOnUsersOnApplications"];
|
|
2265
|
-
folder: ModelTypes["Folder"];
|
|
2266
|
-
history: ModelTypes["File"][];
|
|
2267
|
-
current?: ModelTypes["File"];
|
|
2268
|
-
updatedAt: ModelTypes["DateTime"];
|
|
2269
|
-
};
|
|
2270
|
-
["VFilesOnUsersOnApplications"]: {
|
|
2271
|
-
vFile: ModelTypes["VFile"];
|
|
2272
|
-
userApp: ModelTypes["ApplicationsOnUsers"];
|
|
2273
|
-
rights: ModelTypes["Rights"];
|
|
2274
|
-
nameKey: string;
|
|
2275
|
-
isRoot: boolean;
|
|
2276
|
-
};
|
|
2277
|
-
["WaitingReceivedMail"]: {
|
|
2278
|
-
sender: ModelTypes["User"];
|
|
2279
|
-
date: ModelTypes["DateTime"];
|
|
2280
|
-
recipients: ModelTypes["User"][];
|
|
2281
|
-
temporaryRecipients: ModelTypes["TemporaryUser"][];
|
|
2282
|
-
attachmentsCount: number;
|
|
2283
|
-
};
|
|
2284
|
-
["PaymentInfos"]: {
|
|
2285
|
-
hostedUrl: string;
|
|
2286
|
-
currentSubscription: ModelTypes["RecurlySubscription"];
|
|
2287
|
-
invoices: ModelTypes["RecurlyInvoices"][];
|
|
2288
|
-
};
|
|
2289
|
-
["RecurlyInvoices"]: {
|
|
2290
|
-
pdf: string;
|
|
2291
|
-
date: ModelTypes["DateTime"];
|
|
2292
|
-
due: ModelTypes["DateTime"];
|
|
2293
|
-
status: string;
|
|
2294
|
-
total: number;
|
|
2295
|
-
name: string;
|
|
2296
|
-
currency: string;
|
|
2297
|
-
};
|
|
2298
|
-
["RecurlySubscription"]: {
|
|
2299
|
-
autorenew: boolean;
|
|
2300
|
-
activatedAt?: ModelTypes["DateTime"];
|
|
2301
|
-
currentPeriodEndsAt?: ModelTypes["DateTime"];
|
|
2302
|
-
currentPeriodStartedAt?: ModelTypes["DateTime"];
|
|
2303
|
-
canceledAt?: ModelTypes["DateTime"];
|
|
2304
|
-
createdAt?: ModelTypes["DateTime"];
|
|
2305
|
-
expiresAt?: ModelTypes["DateTime"];
|
|
2306
|
-
pausedAt?: ModelTypes["DateTime"];
|
|
2307
|
-
trialEndsAt?: ModelTypes["DateTime"];
|
|
2308
|
-
trialStartedAt?: ModelTypes["DateTime"];
|
|
2309
|
-
updatedAt?: ModelTypes["DateTime"];
|
|
2310
|
-
state: string;
|
|
2311
|
-
collectionMethod: string;
|
|
2312
|
-
plan?: string;
|
|
2313
|
-
planCode?: string;
|
|
2314
|
-
total?: number;
|
|
2315
|
-
};
|
|
2316
|
-
["ShareFolderResponse"]: {
|
|
2317
|
-
folders: string[];
|
|
2318
|
-
vFiles: string[];
|
|
2319
|
-
};
|
|
2320
|
-
["Query"]: {
|
|
2321
|
-
appNotifications?: ModelTypes["AppNotificationsResult"];
|
|
2322
|
-
blog?: ModelTypes["BlogResult"];
|
|
2323
|
-
dbConfig?: ModelTypes["DbConfigResult"];
|
|
2324
|
-
dbGet?: ModelTypes["DbGetResult"];
|
|
2325
|
-
dbSearch?: ModelTypes["DbSearchResult"];
|
|
2326
|
-
deletedFolders?: ModelTypes["DeletedFoldersResult"];
|
|
2327
|
-
deletedMails?: ModelTypes["DeletedMailsResult"];
|
|
2328
|
-
deletedVFiles?: ModelTypes["DeletedVFilesResult"];
|
|
2329
|
-
faq?: ModelTypes["FaqResult"];
|
|
2330
|
-
file?: ModelTypes["FileResult"];
|
|
2331
|
-
fileContent?: ModelTypes["FileContentResult"];
|
|
2332
|
-
filesSharedWithMe: ModelTypes["FileSharedContent"][];
|
|
2333
|
-
folder?: ModelTypes["FolderResult"];
|
|
2334
|
-
folderSize?: ModelTypes["FolderSizeResult"];
|
|
2335
|
-
foldersSharedWithMe?: ModelTypes["FoldersSharedWithMeResult"];
|
|
2336
|
-
limits?: ModelTypes["LimitsResult"];
|
|
2337
|
-
mail?: ModelTypes["MailResult"];
|
|
2338
|
-
paymentInfos?: ModelTypes["PaymentInfosResult"];
|
|
2339
|
-
plans?: ModelTypes["PlansResult"];
|
|
2340
|
-
sharedFolders?: ModelTypes["SharedFoldersResult"];
|
|
2341
|
-
sharedVFiles?: ModelTypes["SharedVFilesResult"];
|
|
1300
|
+
dbGet?: [
|
|
1301
|
+
{
|
|
1302
|
+
field: string;
|
|
1303
|
+
userId?: string | null;
|
|
1304
|
+
},
|
|
1305
|
+
ValueTypes["DbGetResult"]
|
|
1306
|
+
];
|
|
1307
|
+
dbSearch?: [
|
|
1308
|
+
{
|
|
1309
|
+
search: string;
|
|
1310
|
+
field: string;
|
|
1311
|
+
},
|
|
1312
|
+
ValueTypes["DbSearchResult"]
|
|
1313
|
+
];
|
|
1314
|
+
deletedFolders?: ValueTypes["DeletedFoldersResult"];
|
|
1315
|
+
deletedMails?: [
|
|
1316
|
+
{
|
|
1317
|
+
mailType: ValueTypes["MailType"];
|
|
1318
|
+
},
|
|
1319
|
+
ValueTypes["DeletedMailsResult"]
|
|
1320
|
+
];
|
|
1321
|
+
deletedVFiles?: ValueTypes["DeletedVFilesResult"];
|
|
1322
|
+
faq?: [{
|
|
1323
|
+
lang?: ValueTypes["Lang"] | null;
|
|
1324
|
+
}, ValueTypes["FaqResult"]];
|
|
1325
|
+
file?: [{
|
|
1326
|
+
id: string;
|
|
1327
|
+
}, ValueTypes["FileResult"]];
|
|
1328
|
+
fileContent?: [{
|
|
1329
|
+
fileId: string;
|
|
1330
|
+
}, ValueTypes["FileContentResult"]];
|
|
1331
|
+
filesSharedWithMe?: [
|
|
1332
|
+
{
|
|
1333
|
+
accepted?: boolean | null;
|
|
1334
|
+
},
|
|
1335
|
+
ValueTypes["FileSharedContent"]
|
|
1336
|
+
];
|
|
1337
|
+
folder?: [
|
|
1338
|
+
{
|
|
1339
|
+
id?: string | null;
|
|
1340
|
+
deleted?: boolean | null;
|
|
1341
|
+
},
|
|
1342
|
+
ValueTypes["FolderResult"]
|
|
1343
|
+
];
|
|
1344
|
+
folderSize?: [{
|
|
1345
|
+
folderId?: string | null;
|
|
1346
|
+
}, ValueTypes["FolderSizeResult"]];
|
|
1347
|
+
foldersSharedWithMe?: ValueTypes["FoldersSharedWithMeResult"];
|
|
1348
|
+
limits?: ValueTypes["LimitsResult"];
|
|
1349
|
+
mail?: [{
|
|
1350
|
+
id: string;
|
|
1351
|
+
}, ValueTypes["MailResult"]];
|
|
1352
|
+
paymentInfos?: ValueTypes["PaymentInfosResult"];
|
|
1353
|
+
plans?: ValueTypes["PlansResult"];
|
|
1354
|
+
sharedFolders?: ValueTypes["SharedFoldersResult"];
|
|
1355
|
+
sharedVFiles?: ValueTypes["SharedVFilesResult"];
|
|
2342
1356
|
test?: boolean;
|
|
2343
|
-
unreadReceivedMailsCount?:
|
|
2344
|
-
user?:
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
1357
|
+
unreadReceivedMailsCount?: ValueTypes["UnreadReceivedMailsCountResult"];
|
|
1358
|
+
user?: [{
|
|
1359
|
+
userId?: string | null;
|
|
1360
|
+
}, ValueTypes["UserResult"]];
|
|
1361
|
+
vFile?: [{
|
|
1362
|
+
id: string;
|
|
1363
|
+
}, ValueTypes["VFileResult"]];
|
|
1364
|
+
vFilesSharedWithMe?: ValueTypes["VFilesSharedWithMeResult"];
|
|
1365
|
+
userList?: [{
|
|
1366
|
+
search?: string | null;
|
|
1367
|
+
}, ValueTypes["UserListResult"]];
|
|
1368
|
+
__typename?: boolean;
|
|
1369
|
+
}>;
|
|
1370
|
+
["Mutation"]: AliasType<{
|
|
1371
|
+
addFileToHistory?: [
|
|
1372
|
+
{
|
|
1373
|
+
vFileId: string;
|
|
1374
|
+
fileId: string;
|
|
1375
|
+
},
|
|
1376
|
+
ValueTypes["AddFileToHistoryResult"]
|
|
1377
|
+
];
|
|
1378
|
+
cancelPayment?: ValueTypes["CancelPaymentResult"];
|
|
1379
|
+
createApplication?: [
|
|
1380
|
+
{
|
|
1381
|
+
name: string;
|
|
1382
|
+
origin: string;
|
|
1383
|
+
developerId: string;
|
|
1384
|
+
},
|
|
1385
|
+
ValueTypes["CreateApplicationResult"]
|
|
1386
|
+
];
|
|
1387
|
+
createDraftMail?: [
|
|
1388
|
+
{
|
|
1389
|
+
hash: string;
|
|
1390
|
+
hashKey: string;
|
|
1391
|
+
body: string;
|
|
1392
|
+
subject: string;
|
|
1393
|
+
replyTo?: string | null;
|
|
1394
|
+
senderFiles: ValueTypes["MailFileInput"][];
|
|
1395
|
+
recipients: string[];
|
|
1396
|
+
},
|
|
1397
|
+
ValueTypes["CreateDraftMailResult"]
|
|
1398
|
+
];
|
|
1399
|
+
createFolder?: [
|
|
1400
|
+
{
|
|
1401
|
+
name: string;
|
|
1402
|
+
key: string;
|
|
1403
|
+
parentFolderId?: string | null;
|
|
1404
|
+
},
|
|
1405
|
+
ValueTypes["CreateFolderResult"]
|
|
1406
|
+
];
|
|
1407
|
+
dbConfigMutation?: [
|
|
1408
|
+
{
|
|
1409
|
+
appCode: string;
|
|
1410
|
+
config: string;
|
|
1411
|
+
},
|
|
1412
|
+
ValueTypes["DbConfigMutationResult"]
|
|
1413
|
+
];
|
|
1414
|
+
dbSet?: [
|
|
1415
|
+
{
|
|
1416
|
+
value: string;
|
|
1417
|
+
userId?: string | null;
|
|
1418
|
+
},
|
|
1419
|
+
ValueTypes["DbSetResult"]
|
|
1420
|
+
];
|
|
1421
|
+
deleteDraftMail?: [
|
|
1422
|
+
{
|
|
1423
|
+
draftId: string;
|
|
1424
|
+
},
|
|
1425
|
+
ValueTypes["DeleteDraftMailResult"]
|
|
1426
|
+
];
|
|
1427
|
+
deleteFile?: [
|
|
1428
|
+
{
|
|
1429
|
+
fileId: string;
|
|
1430
|
+
vFileId: string;
|
|
1431
|
+
},
|
|
1432
|
+
ValueTypes["DeleteFileResult"]
|
|
1433
|
+
];
|
|
1434
|
+
deleteFolder?: [{
|
|
1435
|
+
id: string;
|
|
1436
|
+
}, ValueTypes["DeleteFolderResult"]];
|
|
1437
|
+
deleteFolderCloudTrash?: [
|
|
1438
|
+
{
|
|
1439
|
+
ids: string[];
|
|
1440
|
+
},
|
|
1441
|
+
ValueTypes["DeleteFolderCloudTrashResult"]
|
|
1442
|
+
];
|
|
1443
|
+
deleteFolderSharing?: [
|
|
1444
|
+
{
|
|
1445
|
+
folderId: string;
|
|
1446
|
+
userId: string;
|
|
1447
|
+
},
|
|
1448
|
+
ValueTypes["DeleteFolderSharingResult"]
|
|
1449
|
+
];
|
|
1450
|
+
deleteMail?: [{
|
|
1451
|
+
mailId: string;
|
|
1452
|
+
}, ValueTypes["DeleteMailResult"]];
|
|
1453
|
+
deleteMailTrash?: [{
|
|
1454
|
+
ids: string[];
|
|
1455
|
+
}, ValueTypes["DeleteMailTrashResult"]];
|
|
1456
|
+
deleteUser?: [{
|
|
1457
|
+
userId?: string | null;
|
|
1458
|
+
}, ValueTypes["DeleteUserResult"]];
|
|
1459
|
+
deleteVFile?: [{
|
|
1460
|
+
fileId: string;
|
|
1461
|
+
}, ValueTypes["DeleteVFileResult"]];
|
|
1462
|
+
deleteVFileCloudTrash?: [
|
|
1463
|
+
{
|
|
1464
|
+
ids: string[];
|
|
1465
|
+
},
|
|
1466
|
+
ValueTypes["DeleteVFileCloudTrashResult"]
|
|
1467
|
+
];
|
|
1468
|
+
deleteVFileSharing?: [
|
|
1469
|
+
{
|
|
1470
|
+
vFileId: string;
|
|
1471
|
+
userId: string;
|
|
1472
|
+
},
|
|
1473
|
+
ValueTypes["DeleteVFileSharingResult"]
|
|
1474
|
+
];
|
|
1475
|
+
duplicateVFile?: [
|
|
1476
|
+
{
|
|
1477
|
+
vFileId: string;
|
|
1478
|
+
folderId?: string | null;
|
|
1479
|
+
customName?: string | null;
|
|
1480
|
+
},
|
|
1481
|
+
ValueTypes["DuplicateVFileResult"]
|
|
1482
|
+
];
|
|
1483
|
+
emptyCloudTrash?: ValueTypes["EmptyCloudTrashResult"];
|
|
1484
|
+
emptyMailTrash?: ValueTypes["EmptyMailTrashResult"];
|
|
1485
|
+
logout?: [{
|
|
1486
|
+
sessionId?: string | null;
|
|
1487
|
+
}, ValueTypes["LogoutResult"]];
|
|
1488
|
+
moveFiles?: [
|
|
1489
|
+
{
|
|
1490
|
+
filesId: string[];
|
|
1491
|
+
parentFolderId?: string | null;
|
|
1492
|
+
},
|
|
1493
|
+
ValueTypes["MoveFilesResult"]
|
|
1494
|
+
];
|
|
1495
|
+
moveFolders?: [
|
|
1496
|
+
{
|
|
1497
|
+
foldersId: string[];
|
|
1498
|
+
parentFolderId?: string | null;
|
|
1499
|
+
},
|
|
1500
|
+
ValueTypes["MoveFoldersResult"]
|
|
1501
|
+
];
|
|
1502
|
+
pay?: [
|
|
1503
|
+
{
|
|
1504
|
+
planCode: string;
|
|
1505
|
+
input: ValueTypes["PayInput"];
|
|
1506
|
+
autoRenew?: boolean | null;
|
|
1507
|
+
},
|
|
1508
|
+
ValueTypes["PayResult"]
|
|
1509
|
+
];
|
|
1510
|
+
readMail?: [{
|
|
1511
|
+
mailId: string;
|
|
1512
|
+
}, ValueTypes["ReadMailResult"]];
|
|
1513
|
+
recoverFolder?: [{
|
|
1514
|
+
id: string;
|
|
1515
|
+
}, ValueTypes["RecoverFolderResult"]];
|
|
1516
|
+
recoverMail?: [{
|
|
1517
|
+
mailId: string;
|
|
1518
|
+
}, ValueTypes["RecoverMailResult"]];
|
|
1519
|
+
recoverVFile?: [{
|
|
1520
|
+
vFileId: string;
|
|
1521
|
+
}, ValueTypes["RecoverVFileResult"]];
|
|
1522
|
+
saveInCloud?: [
|
|
1523
|
+
{
|
|
1524
|
+
fileId: string;
|
|
1525
|
+
key: string;
|
|
1526
|
+
folderId?: string | null;
|
|
1527
|
+
filename: string;
|
|
1528
|
+
nameKey: string;
|
|
1529
|
+
},
|
|
1530
|
+
ValueTypes["SaveInCloudResult"]
|
|
1531
|
+
];
|
|
1532
|
+
sendDraftMail?: [
|
|
1533
|
+
{
|
|
1534
|
+
draftMailId: string;
|
|
1535
|
+
temporaryRecipients: string[];
|
|
1536
|
+
recipients: ValueTypes["MailRecipientInput"][];
|
|
1537
|
+
customMessage?: string | null;
|
|
1538
|
+
},
|
|
1539
|
+
ValueTypes["SendDraftMailResult"]
|
|
1540
|
+
];
|
|
1541
|
+
sendOneMail?: [
|
|
1542
|
+
{
|
|
1543
|
+
mailIntegrityId: string;
|
|
1544
|
+
recipient: ValueTypes["MailRecipientInput"];
|
|
1545
|
+
},
|
|
1546
|
+
ValueTypes["SendOneMailResult"]
|
|
1547
|
+
];
|
|
1548
|
+
sendReport?: [
|
|
1549
|
+
{
|
|
1550
|
+
reportedUserId: string;
|
|
1551
|
+
customMessage?: string | null;
|
|
1552
|
+
},
|
|
1553
|
+
ValueTypes["SendReportResult"]
|
|
1554
|
+
];
|
|
1555
|
+
shareFileInHistory?: [
|
|
1556
|
+
{
|
|
1557
|
+
input: ValueTypes["ShareFileInHistoryInput"];
|
|
1558
|
+
vFileId: string;
|
|
1559
|
+
},
|
|
1560
|
+
ValueTypes["ShareFileInHistoryResult"]
|
|
1561
|
+
];
|
|
1562
|
+
shareFolder?: [
|
|
1563
|
+
{
|
|
1564
|
+
folderId: string;
|
|
1565
|
+
userId: string;
|
|
1566
|
+
},
|
|
1567
|
+
ValueTypes["ShareFolderResult"]
|
|
1568
|
+
];
|
|
1569
|
+
shareFolderFinish?: [
|
|
1570
|
+
{
|
|
1571
|
+
shareFolders: ValueTypes["ShareFoldersInput"];
|
|
1572
|
+
userId: string;
|
|
1573
|
+
rights: ValueTypes["Rights"];
|
|
1574
|
+
},
|
|
1575
|
+
ValueTypes["ShareFolderFinishResult"]
|
|
1576
|
+
];
|
|
1577
|
+
shareVFile?: [
|
|
1578
|
+
{
|
|
1579
|
+
vFileId: string;
|
|
1580
|
+
userId: string;
|
|
1581
|
+
nameKey: string;
|
|
1582
|
+
rights: ValueTypes["Rights"];
|
|
1583
|
+
history: ValueTypes["ShareFileKeyInput"][];
|
|
1584
|
+
},
|
|
1585
|
+
ValueTypes["ShareVFileResult"]
|
|
1586
|
+
];
|
|
1587
|
+
unreadMail?: [{
|
|
1588
|
+
mailId: string;
|
|
1589
|
+
}, ValueTypes["UnreadMailResult"]];
|
|
1590
|
+
updateAppNotifications?: [
|
|
1591
|
+
{
|
|
1592
|
+
enableAll?: boolean | null;
|
|
1593
|
+
mail?: boolean | null;
|
|
1594
|
+
cloud?: boolean | null;
|
|
1595
|
+
disableAllUntil?: ValueTypes["DateTime"] | null;
|
|
1596
|
+
},
|
|
1597
|
+
ValueTypes["UpdateAppNotificationsResult"]
|
|
1598
|
+
];
|
|
1599
|
+
updateAppSettings?: [
|
|
1600
|
+
{
|
|
1601
|
+
cloudFileDaysForDelete?: number | null;
|
|
1602
|
+
cloudFolderDaysForDelete?: number | null;
|
|
1603
|
+
historyFileDaysForDelete?: number | null;
|
|
1604
|
+
historyMaxFileCount?: number | null;
|
|
1605
|
+
autoDisconnectDelay?: number | null;
|
|
1606
|
+
},
|
|
1607
|
+
ValueTypes["UpdateAppSettingsResult"]
|
|
1608
|
+
];
|
|
1609
|
+
updateDraftMail?: [
|
|
1610
|
+
{
|
|
1611
|
+
draftId: string;
|
|
1612
|
+
hash?: string | null;
|
|
1613
|
+
hashKey?: string | null;
|
|
1614
|
+
body?: string | null;
|
|
1615
|
+
subject?: string | null;
|
|
1616
|
+
replyTo?: string | null;
|
|
1617
|
+
senderFiles?: ValueTypes["MailFileInput"][];
|
|
1618
|
+
recipients?: string[];
|
|
1619
|
+
},
|
|
1620
|
+
ValueTypes["UpdateDraftMailResult"]
|
|
1621
|
+
];
|
|
1622
|
+
updateFile?: [
|
|
1623
|
+
{
|
|
1624
|
+
fileId: string;
|
|
1625
|
+
isFavorite?: boolean | null;
|
|
1626
|
+
filename?: string | null;
|
|
1627
|
+
deletedAt?: ValueTypes["DateTime"] | null;
|
|
1628
|
+
},
|
|
1629
|
+
ValueTypes["UpdateFileResult"]
|
|
1630
|
+
];
|
|
1631
|
+
updateFolder?: [
|
|
1632
|
+
{
|
|
1633
|
+
folderId: string;
|
|
1634
|
+
name?: string | null;
|
|
1635
|
+
isFavorite?: boolean | null;
|
|
1636
|
+
deletedAt?: ValueTypes["DateTime"] | null;
|
|
1637
|
+
},
|
|
1638
|
+
ValueTypes["UpdateFolderResult"]
|
|
1639
|
+
];
|
|
1640
|
+
updateProfile?: [
|
|
1641
|
+
{
|
|
1642
|
+
firstname?: string | null;
|
|
1643
|
+
lastname?: string | null;
|
|
1644
|
+
lang?: ValueTypes["Lang"] | null;
|
|
1645
|
+
},
|
|
1646
|
+
ValueTypes["UpdateProfileResult"]
|
|
1647
|
+
];
|
|
1648
|
+
uploadAnonymous?: [
|
|
1649
|
+
{
|
|
1650
|
+
fileName: string;
|
|
1651
|
+
fileSize: number;
|
|
1652
|
+
fileSizeBefore: number;
|
|
1653
|
+
message?: string | null;
|
|
1654
|
+
pubKey: string;
|
|
1655
|
+
token: string;
|
|
1656
|
+
},
|
|
1657
|
+
ValueTypes["FileResponse"]
|
|
1658
|
+
];
|
|
1659
|
+
uploadFile?: [
|
|
1660
|
+
{
|
|
1661
|
+
fileSize: ValueTypes["BigInt"];
|
|
1662
|
+
fileSizeBefore: ValueTypes["BigInt"];
|
|
1663
|
+
fileKey: string;
|
|
1664
|
+
md5: string;
|
|
1665
|
+
md5Encrypted: string;
|
|
1666
|
+
},
|
|
1667
|
+
ValueTypes["UploadFileResult"]
|
|
1668
|
+
];
|
|
1669
|
+
uploadFileEnd?: [{
|
|
1670
|
+
fileId: string;
|
|
1671
|
+
}, ValueTypes["UploadFileEndResult"]];
|
|
1672
|
+
uploadFilePartEnd?: [
|
|
1673
|
+
{
|
|
1674
|
+
fileId: string;
|
|
1675
|
+
md5: string;
|
|
1676
|
+
order: number;
|
|
1677
|
+
},
|
|
1678
|
+
ValueTypes["UploadFilePartEndResult"]
|
|
1679
|
+
];
|
|
1680
|
+
changeUserPlan?: [
|
|
1681
|
+
{
|
|
1682
|
+
userId: string;
|
|
1683
|
+
plan: ValueTypes["PlanKind"];
|
|
1684
|
+
},
|
|
1685
|
+
ValueTypes["ChangeUserPlanResult"]
|
|
1686
|
+
];
|
|
1687
|
+
__typename?: boolean;
|
|
1688
|
+
}>;
|
|
1689
|
+
["Subscription"]: AliasType<{
|
|
1690
|
+
test?: boolean;
|
|
1691
|
+
__typename?: boolean;
|
|
1692
|
+
}>;
|
|
2403
1693
|
};
|
|
2404
|
-
|
|
1694
|
+
declare type GraphQLTypes = {
|
|
2405
1695
|
["BigInt"]: any;
|
|
2406
1696
|
["Bytes"]: any;
|
|
2407
1697
|
["DateTime"]: any;
|
|
@@ -2410,418 +1700,418 @@ export declare type GraphQLTypes = {
|
|
|
2410
1700
|
["Lang"]: Lang;
|
|
2411
1701
|
["PlanKind"]: PlanKind;
|
|
2412
1702
|
["UserRole"]: UserRole;
|
|
2413
|
-
["MailType"]: MailType;
|
|
1703
|
+
["MailType"]: MailType$1;
|
|
2414
1704
|
["Rights"]: Rights;
|
|
2415
1705
|
["AppNotificationsResult"]: {
|
|
2416
1706
|
__typename: "UserAppNotifications" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
2417
|
-
[
|
|
2418
|
-
[
|
|
2419
|
-
[
|
|
1707
|
+
["...on UserAppNotifications"]: "__union" & GraphQLTypes["UserAppNotifications"];
|
|
1708
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1709
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2420
1710
|
};
|
|
2421
1711
|
["BlogResult"]: {
|
|
2422
1712
|
__typename: "BlogResponse" | "ErrorLangNotExist";
|
|
2423
|
-
[
|
|
2424
|
-
[
|
|
1713
|
+
["...on BlogResponse"]: "__union" & GraphQLTypes["BlogResponse"];
|
|
1714
|
+
["...on ErrorLangNotExist"]: "__union" & GraphQLTypes["ErrorLangNotExist"];
|
|
2425
1715
|
};
|
|
2426
1716
|
["DbConfigResult"]: {
|
|
2427
1717
|
__typename: "DbConfigResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorNotFound";
|
|
2428
|
-
[
|
|
2429
|
-
[
|
|
2430
|
-
[
|
|
2431
|
-
[
|
|
1718
|
+
["...on DbConfigResponse"]: "__union" & GraphQLTypes["DbConfigResponse"];
|
|
1719
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1720
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
1721
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2432
1722
|
};
|
|
2433
1723
|
["DbGetResult"]: {
|
|
2434
1724
|
__typename: "DbGetResponse" | "ErrorAccessDenied" | "ErrorNotFound" | "ErrorNotExist";
|
|
2435
|
-
[
|
|
2436
|
-
[
|
|
2437
|
-
[
|
|
2438
|
-
[
|
|
1725
|
+
["...on DbGetResponse"]: "__union" & GraphQLTypes["DbGetResponse"];
|
|
1726
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1727
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
1728
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2439
1729
|
};
|
|
2440
1730
|
["DbSearchResult"]: {
|
|
2441
1731
|
__typename: "DbSearchResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorBasic";
|
|
2442
|
-
[
|
|
2443
|
-
[
|
|
2444
|
-
[
|
|
2445
|
-
[
|
|
1732
|
+
["...on DbSearchResponse"]: "__union" & GraphQLTypes["DbSearchResponse"];
|
|
1733
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1734
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
1735
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2446
1736
|
};
|
|
2447
1737
|
["DeletedFoldersResult"]: {
|
|
2448
1738
|
__typename: "DeletedFoldersResponse" | "ErrorAccessDenied";
|
|
2449
|
-
[
|
|
2450
|
-
[
|
|
1739
|
+
["...on DeletedFoldersResponse"]: "__union" & GraphQLTypes["DeletedFoldersResponse"];
|
|
1740
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2451
1741
|
};
|
|
2452
1742
|
["DeletedMailsResult"]: {
|
|
2453
1743
|
__typename: "DeletedMailsResponse" | "ErrorAccessDenied";
|
|
2454
|
-
[
|
|
2455
|
-
[
|
|
1744
|
+
["...on DeletedMailsResponse"]: "__union" & GraphQLTypes["DeletedMailsResponse"];
|
|
1745
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2456
1746
|
};
|
|
2457
1747
|
["DeletedVFilesResult"]: {
|
|
2458
1748
|
__typename: "DeletedVFilesResponse" | "ErrorAccessDenied";
|
|
2459
|
-
[
|
|
2460
|
-
[
|
|
1749
|
+
["...on DeletedVFilesResponse"]: "__union" & GraphQLTypes["DeletedVFilesResponse"];
|
|
1750
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2461
1751
|
};
|
|
2462
1752
|
["FaqResult"]: {
|
|
2463
1753
|
__typename: "FaqResponse" | "ErrorAccessDenied";
|
|
2464
|
-
[
|
|
2465
|
-
[
|
|
1754
|
+
["...on FaqResponse"]: "__union" & GraphQLTypes["FaqResponse"];
|
|
1755
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2466
1756
|
};
|
|
2467
1757
|
["FileResult"]: {
|
|
2468
1758
|
__typename: "FileQueryResponse" | "ErrorAccessDenied";
|
|
2469
|
-
[
|
|
2470
|
-
[
|
|
1759
|
+
["...on FileQueryResponse"]: "__union" & GraphQLTypes["FileQueryResponse"];
|
|
1760
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2471
1761
|
};
|
|
2472
1762
|
["FileContentResult"]: {
|
|
2473
1763
|
__typename: "FileContentResponse" | "ErrorAccessDenied" | "ErrorBasic";
|
|
2474
|
-
[
|
|
2475
|
-
[
|
|
2476
|
-
[
|
|
1764
|
+
["...on FileContentResponse"]: "__union" & GraphQLTypes["FileContentResponse"];
|
|
1765
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1766
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2477
1767
|
};
|
|
2478
1768
|
["FolderResult"]: {
|
|
2479
1769
|
__typename: "FolderResponse" | "ErrorAccessDenied";
|
|
2480
|
-
[
|
|
2481
|
-
[
|
|
1770
|
+
["...on FolderResponse"]: "__union" & GraphQLTypes["FolderResponse"];
|
|
1771
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2482
1772
|
};
|
|
2483
1773
|
["FolderSizeResult"]: {
|
|
2484
1774
|
__typename: "FolderSizeResponse" | "ErrorAccessDenied";
|
|
2485
|
-
[
|
|
2486
|
-
[
|
|
1775
|
+
["...on FolderSizeResponse"]: "__union" & GraphQLTypes["FolderSizeResponse"];
|
|
1776
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2487
1777
|
};
|
|
2488
1778
|
["FoldersSharedWithMeResult"]: {
|
|
2489
1779
|
__typename: "FolderSharedWithMeResponse" | "ErrorAccessDenied";
|
|
2490
|
-
[
|
|
2491
|
-
[
|
|
1780
|
+
["...on FolderSharedWithMeResponse"]: "__union" & GraphQLTypes["FolderSharedWithMeResponse"];
|
|
1781
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2492
1782
|
};
|
|
2493
1783
|
["LimitsResult"]: {
|
|
2494
1784
|
__typename: "QueryLimits" | "ErrorAccessDenied" | "ErrorNotFound" | "ErrorNotExist" | "ErrorLimit";
|
|
2495
|
-
[
|
|
2496
|
-
[
|
|
2497
|
-
[
|
|
2498
|
-
[
|
|
2499
|
-
[
|
|
1785
|
+
["...on QueryLimits"]: "__union" & GraphQLTypes["QueryLimits"];
|
|
1786
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1787
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
1788
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
1789
|
+
["...on ErrorLimit"]: "__union" & GraphQLTypes["ErrorLimit"];
|
|
2500
1790
|
};
|
|
2501
1791
|
["MailResult"]: {
|
|
2502
1792
|
__typename: "QueryMailResponse" | "ErrorAccessDenied";
|
|
2503
|
-
[
|
|
2504
|
-
[
|
|
1793
|
+
["...on QueryMailResponse"]: "__union" & GraphQLTypes["QueryMailResponse"];
|
|
1794
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2505
1795
|
};
|
|
2506
1796
|
["PaymentInfosResult"]: {
|
|
2507
1797
|
__typename: "PaymentInfosResponse" | "ErrorAccessDenied";
|
|
2508
|
-
[
|
|
2509
|
-
[
|
|
1798
|
+
["...on PaymentInfosResponse"]: "__union" & GraphQLTypes["PaymentInfosResponse"];
|
|
1799
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2510
1800
|
};
|
|
2511
1801
|
["PlansResult"]: {
|
|
2512
1802
|
__typename: "PlanResponse";
|
|
2513
|
-
[
|
|
1803
|
+
["...on PlanResponse"]: "__union" & GraphQLTypes["PlanResponse"];
|
|
2514
1804
|
};
|
|
2515
1805
|
["SharedFoldersResult"]: {
|
|
2516
1806
|
__typename: "SharedFoldersResponse" | "ErrorAccessDenied";
|
|
2517
|
-
[
|
|
2518
|
-
[
|
|
1807
|
+
["...on SharedFoldersResponse"]: "__union" & GraphQLTypes["SharedFoldersResponse"];
|
|
1808
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2519
1809
|
};
|
|
2520
1810
|
["SharedVFilesResult"]: {
|
|
2521
1811
|
__typename: "SharedVFilesResponse" | "ErrorAccessDenied";
|
|
2522
|
-
[
|
|
2523
|
-
[
|
|
1812
|
+
["...on SharedVFilesResponse"]: "__union" & GraphQLTypes["SharedVFilesResponse"];
|
|
1813
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2524
1814
|
};
|
|
2525
1815
|
["UnreadReceivedMailsCountResult"]: {
|
|
2526
1816
|
__typename: "UnreadReceivedMailsCountResponse" | "ErrorAccessDenied";
|
|
2527
|
-
[
|
|
2528
|
-
[
|
|
1817
|
+
["...on UnreadReceivedMailsCountResponse"]: "__union" & GraphQLTypes["UnreadReceivedMailsCountResponse"];
|
|
1818
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2529
1819
|
};
|
|
2530
1820
|
["UserResult"]: {
|
|
2531
1821
|
__typename: "UserResponse" | "ErrorNotFound";
|
|
2532
|
-
[
|
|
2533
|
-
[
|
|
1822
|
+
["...on UserResponse"]: "__union" & GraphQLTypes["UserResponse"];
|
|
1823
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2534
1824
|
};
|
|
2535
1825
|
["VFileResult"]: {
|
|
2536
1826
|
__typename: "VFileResponse" | "ErrorAccessDenied";
|
|
2537
|
-
[
|
|
2538
|
-
[
|
|
1827
|
+
["...on VFileResponse"]: "__union" & GraphQLTypes["VFileResponse"];
|
|
1828
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2539
1829
|
};
|
|
2540
1830
|
["VFilesSharedWithMeResult"]: {
|
|
2541
1831
|
__typename: "VFilesSharedWithMeResponse" | "ErrorAccessDenied";
|
|
2542
|
-
[
|
|
2543
|
-
[
|
|
1832
|
+
["...on VFilesSharedWithMeResponse"]: "__union" & GraphQLTypes["VFilesSharedWithMeResponse"];
|
|
1833
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2544
1834
|
};
|
|
2545
1835
|
["UserListResult"]: {
|
|
2546
1836
|
__typename: "UserListResponse" | "ErrorAccessDenied";
|
|
2547
|
-
[
|
|
2548
|
-
[
|
|
1837
|
+
["...on UserListResponse"]: "__union" & GraphQLTypes["UserListResponse"];
|
|
1838
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2549
1839
|
};
|
|
2550
1840
|
["AddFileToHistoryResult"]: {
|
|
2551
1841
|
__typename: "AddFileToHistoryResponse" | "ErrorAccessDenied" | "ErrorNotExist";
|
|
2552
|
-
[
|
|
2553
|
-
[
|
|
2554
|
-
[
|
|
1842
|
+
["...on AddFileToHistoryResponse"]: "__union" & GraphQLTypes["AddFileToHistoryResponse"];
|
|
1843
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1844
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2555
1845
|
};
|
|
2556
1846
|
["CancelPaymentResult"]: {
|
|
2557
1847
|
__typename: "CancelPaymentResponse" | "ErrorAccessDenied";
|
|
2558
|
-
[
|
|
2559
|
-
[
|
|
1848
|
+
["...on CancelPaymentResponse"]: "__union" & GraphQLTypes["CancelPaymentResponse"];
|
|
1849
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2560
1850
|
};
|
|
2561
1851
|
["CreateApplicationResult"]: {
|
|
2562
1852
|
__typename: "CreateApplicationResponse" | "ErrorNotExist";
|
|
2563
|
-
[
|
|
2564
|
-
[
|
|
1853
|
+
["...on CreateApplicationResponse"]: "__union" & GraphQLTypes["CreateApplicationResponse"];
|
|
1854
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2565
1855
|
};
|
|
2566
1856
|
["CreateDraftMailResult"]: {
|
|
2567
1857
|
__typename: "CreateDraftMailResponse" | "ErrorAccessDenied" | "ErrorBasic";
|
|
2568
|
-
[
|
|
2569
|
-
[
|
|
2570
|
-
[
|
|
1858
|
+
["...on CreateDraftMailResponse"]: "__union" & GraphQLTypes["CreateDraftMailResponse"];
|
|
1859
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1860
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2571
1861
|
};
|
|
2572
1862
|
["CreateFolderResult"]: {
|
|
2573
1863
|
__typename: "CreateFolderResponse" | "ErrorAccessDenied" | "ErrorNotExist";
|
|
2574
|
-
[
|
|
2575
|
-
[
|
|
2576
|
-
[
|
|
1864
|
+
["...on CreateFolderResponse"]: "__union" & GraphQLTypes["CreateFolderResponse"];
|
|
1865
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1866
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2577
1867
|
};
|
|
2578
1868
|
["DbConfigMutationResult"]: {
|
|
2579
1869
|
__typename: "DbConfigMutationResponse" | "ErrorAccessDenied";
|
|
2580
|
-
[
|
|
2581
|
-
[
|
|
1870
|
+
["...on DbConfigMutationResponse"]: "__union" & GraphQLTypes["DbConfigMutationResponse"];
|
|
1871
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2582
1872
|
};
|
|
2583
1873
|
["DbSetResult"]: {
|
|
2584
1874
|
__typename: "DbSetResponse" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
2585
|
-
[
|
|
2586
|
-
[
|
|
2587
|
-
[
|
|
1875
|
+
["...on DbSetResponse"]: "__union" & GraphQLTypes["DbSetResponse"];
|
|
1876
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1877
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2588
1878
|
};
|
|
2589
1879
|
["DeleteDraftMailResult"]: {
|
|
2590
1880
|
__typename: "DeleteDraftMailResponse" | "ErrorAccessDenied";
|
|
2591
|
-
[
|
|
2592
|
-
[
|
|
1881
|
+
["...on DeleteDraftMailResponse"]: "__union" & GraphQLTypes["DeleteDraftMailResponse"];
|
|
1882
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2593
1883
|
};
|
|
2594
1884
|
["DeleteFileResult"]: {
|
|
2595
1885
|
__typename: "DeleteFileResponse" | "ErrorAccessDenied" | "ErrorNotExist";
|
|
2596
|
-
[
|
|
2597
|
-
[
|
|
2598
|
-
[
|
|
1886
|
+
["...on DeleteFileResponse"]: "__union" & GraphQLTypes["DeleteFileResponse"];
|
|
1887
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1888
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2599
1889
|
};
|
|
2600
1890
|
["DeleteFolderResult"]: {
|
|
2601
1891
|
__typename: "DeleteFolderResponse" | "ErrorAccessDenied" | "ErrorNotExist";
|
|
2602
|
-
[
|
|
2603
|
-
[
|
|
2604
|
-
[
|
|
1892
|
+
["...on DeleteFolderResponse"]: "__union" & GraphQLTypes["DeleteFolderResponse"];
|
|
1893
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1894
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2605
1895
|
};
|
|
2606
1896
|
["DeleteFolderCloudTrashResult"]: {
|
|
2607
1897
|
__typename: "DeleteFolderCloudTrashResponse" | "ErrorAccessDenied";
|
|
2608
|
-
[
|
|
2609
|
-
[
|
|
1898
|
+
["...on DeleteFolderCloudTrashResponse"]: "__union" & GraphQLTypes["DeleteFolderCloudTrashResponse"];
|
|
1899
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2610
1900
|
};
|
|
2611
1901
|
["DeleteFolderSharingResult"]: {
|
|
2612
1902
|
__typename: "DeleteFolderSharingResponse" | "ErrorAccessDenied";
|
|
2613
|
-
[
|
|
2614
|
-
[
|
|
1903
|
+
["...on DeleteFolderSharingResponse"]: "__union" & GraphQLTypes["DeleteFolderSharingResponse"];
|
|
1904
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2615
1905
|
};
|
|
2616
1906
|
["DeleteMailResult"]: {
|
|
2617
1907
|
__typename: "DeleteMailResponse" | "ErrorAccessDenied";
|
|
2618
|
-
[
|
|
2619
|
-
[
|
|
1908
|
+
["...on DeleteMailResponse"]: "__union" & GraphQLTypes["DeleteMailResponse"];
|
|
1909
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2620
1910
|
};
|
|
2621
1911
|
["DeleteMailTrashResult"]: {
|
|
2622
1912
|
__typename: "DeleteMailTrashResponse" | "ErrorAccessDenied";
|
|
2623
|
-
[
|
|
2624
|
-
[
|
|
1913
|
+
["...on DeleteMailTrashResponse"]: "__union" & GraphQLTypes["DeleteMailTrashResponse"];
|
|
1914
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2625
1915
|
};
|
|
2626
1916
|
["DeleteUserResult"]: {
|
|
2627
1917
|
__typename: "DeleteUserResponse" | "ErrorAccessDenied";
|
|
2628
|
-
[
|
|
2629
|
-
[
|
|
1918
|
+
["...on DeleteUserResponse"]: "__union" & GraphQLTypes["DeleteUserResponse"];
|
|
1919
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2630
1920
|
};
|
|
2631
1921
|
["DeleteVFileResult"]: {
|
|
2632
1922
|
__typename: "DeleteVFileResponse" | "ErrorAccessDenied" | "ErrorNotExist";
|
|
2633
|
-
[
|
|
2634
|
-
[
|
|
2635
|
-
[
|
|
1923
|
+
["...on DeleteVFileResponse"]: "__union" & GraphQLTypes["DeleteVFileResponse"];
|
|
1924
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1925
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2636
1926
|
};
|
|
2637
1927
|
["DeleteVFileCloudTrashResult"]: {
|
|
2638
1928
|
__typename: "DeleteVFileCloudTrashResponse" | "ErrorAccessDenied";
|
|
2639
|
-
[
|
|
2640
|
-
[
|
|
1929
|
+
["...on DeleteVFileCloudTrashResponse"]: "__union" & GraphQLTypes["DeleteVFileCloudTrashResponse"];
|
|
1930
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2641
1931
|
};
|
|
2642
1932
|
["DeleteVFileSharingResult"]: {
|
|
2643
1933
|
__typename: "DeleteVFileSharingResponse" | "ErrorAccessDenied" | "ErrorNotExist";
|
|
2644
|
-
[
|
|
2645
|
-
[
|
|
2646
|
-
[
|
|
1934
|
+
["...on DeleteVFileSharingResponse"]: "__union" & GraphQLTypes["DeleteVFileSharingResponse"];
|
|
1935
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1936
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2647
1937
|
};
|
|
2648
1938
|
["DuplicateVFileResult"]: {
|
|
2649
1939
|
__typename: "DuplicateVFileResponse" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
2650
|
-
[
|
|
2651
|
-
[
|
|
2652
|
-
[
|
|
1940
|
+
["...on DuplicateVFileResponse"]: "__union" & GraphQLTypes["DuplicateVFileResponse"];
|
|
1941
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1942
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2653
1943
|
};
|
|
2654
1944
|
["EmptyCloudTrashResult"]: {
|
|
2655
1945
|
__typename: "DeleteMailResponse" | "ErrorAccessDenied";
|
|
2656
|
-
[
|
|
2657
|
-
[
|
|
1946
|
+
["...on DeleteMailResponse"]: "__union" & GraphQLTypes["DeleteMailResponse"];
|
|
1947
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2658
1948
|
};
|
|
2659
1949
|
["EmptyMailTrashResult"]: {
|
|
2660
1950
|
__typename: "EmptyMailTrashResponse" | "ErrorAccessDenied";
|
|
2661
|
-
[
|
|
2662
|
-
[
|
|
1951
|
+
["...on EmptyMailTrashResponse"]: "__union" & GraphQLTypes["EmptyMailTrashResponse"];
|
|
1952
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2663
1953
|
};
|
|
2664
1954
|
["LogoutResult"]: {
|
|
2665
1955
|
__typename: "LogoutResponse" | "ErrorAccessDenied" | "ErrorBasic";
|
|
2666
|
-
[
|
|
2667
|
-
[
|
|
2668
|
-
[
|
|
1956
|
+
["...on LogoutResponse"]: "__union" & GraphQLTypes["LogoutResponse"];
|
|
1957
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1958
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2669
1959
|
};
|
|
2670
1960
|
["MoveFilesResult"]: {
|
|
2671
1961
|
__typename: "MoveFilesResponse" | "ErrorAccessDenied";
|
|
2672
|
-
[
|
|
2673
|
-
[
|
|
1962
|
+
["...on MoveFilesResponse"]: "__union" & GraphQLTypes["MoveFilesResponse"];
|
|
1963
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2674
1964
|
};
|
|
2675
1965
|
["MoveFoldersResult"]: {
|
|
2676
1966
|
__typename: "MoveFoldersResponse" | "ErrorAccessDenied";
|
|
2677
|
-
[
|
|
2678
|
-
[
|
|
1967
|
+
["...on MoveFoldersResponse"]: "__union" & GraphQLTypes["MoveFoldersResponse"];
|
|
1968
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2679
1969
|
};
|
|
2680
1970
|
["PayResult"]: {
|
|
2681
1971
|
__typename: "PayResponse" | "ErrorAccessDenied";
|
|
2682
|
-
[
|
|
2683
|
-
[
|
|
1972
|
+
["...on PayResponse"]: "__union" & GraphQLTypes["PayResponse"];
|
|
1973
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2684
1974
|
};
|
|
2685
1975
|
["ReadMailResult"]: {
|
|
2686
1976
|
__typename: "ReadMailResponse" | "ErrorAccessDenied" | "ErrorBasic" | "ErrorNotFound";
|
|
2687
|
-
[
|
|
2688
|
-
[
|
|
2689
|
-
[
|
|
2690
|
-
[
|
|
1977
|
+
["...on ReadMailResponse"]: "__union" & GraphQLTypes["ReadMailResponse"];
|
|
1978
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1979
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
1980
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2691
1981
|
};
|
|
2692
1982
|
["RecoverFolderResult"]: {
|
|
2693
1983
|
__typename: "RecoverFolderResponse" | "ErrorAccessDenied" | "ErrorNotExist";
|
|
2694
|
-
[
|
|
2695
|
-
[
|
|
2696
|
-
[
|
|
1984
|
+
["...on RecoverFolderResponse"]: "__union" & GraphQLTypes["RecoverFolderResponse"];
|
|
1985
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1986
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2697
1987
|
};
|
|
2698
1988
|
["RecoverMailResult"]: {
|
|
2699
1989
|
__typename: "RecoverMailResponse" | "ErrorAccessDenied" | "ErrorBasic";
|
|
2700
|
-
[
|
|
2701
|
-
[
|
|
2702
|
-
[
|
|
1990
|
+
["...on RecoverMailResponse"]: "__union" & GraphQLTypes["RecoverMailResponse"];
|
|
1991
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1992
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2703
1993
|
};
|
|
2704
1994
|
["RecoverVFileResult"]: {
|
|
2705
1995
|
__typename: "RecoverVFileResponse" | "ErrorAccessDenied" | "ErrorNotExist";
|
|
2706
|
-
[
|
|
2707
|
-
[
|
|
2708
|
-
[
|
|
1996
|
+
["...on RecoverVFileResponse"]: "__union" & GraphQLTypes["RecoverVFileResponse"];
|
|
1997
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
1998
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2709
1999
|
};
|
|
2710
2000
|
["SaveInCloudResult"]: {
|
|
2711
2001
|
__typename: "SaveInCloudResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorBasic";
|
|
2712
|
-
[
|
|
2713
|
-
[
|
|
2714
|
-
[
|
|
2715
|
-
[
|
|
2002
|
+
["...on SaveInCloudResponse"]: "__union" & GraphQLTypes["SaveInCloudResponse"];
|
|
2003
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2004
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2005
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2716
2006
|
};
|
|
2717
2007
|
["SendDraftMailResult"]: {
|
|
2718
2008
|
__typename: "SendDraftMailResponse" | "ErrorAccessDenied" | "ErrorBasic";
|
|
2719
|
-
[
|
|
2720
|
-
[
|
|
2721
|
-
[
|
|
2009
|
+
["...on SendDraftMailResponse"]: "__union" & GraphQLTypes["SendDraftMailResponse"];
|
|
2010
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2011
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2722
2012
|
};
|
|
2723
2013
|
["SendOneMailResult"]: {
|
|
2724
2014
|
__typename: "RecoverFolderResponse" | "ErrorAccessDenied" | "ErrorBasic";
|
|
2725
|
-
[
|
|
2726
|
-
[
|
|
2727
|
-
[
|
|
2015
|
+
["...on RecoverFolderResponse"]: "__union" & GraphQLTypes["RecoverFolderResponse"];
|
|
2016
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2017
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2728
2018
|
};
|
|
2729
2019
|
["SendReportResult"]: {
|
|
2730
2020
|
__typename: "SendReportResponse" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
2731
|
-
[
|
|
2732
|
-
[
|
|
2733
|
-
[
|
|
2021
|
+
["...on SendReportResponse"]: "__union" & GraphQLTypes["SendReportResponse"];
|
|
2022
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2023
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2734
2024
|
};
|
|
2735
2025
|
["ShareFileInHistoryResult"]: {
|
|
2736
2026
|
__typename: "ShareFileInHistoryResponse" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
2737
|
-
[
|
|
2738
|
-
[
|
|
2739
|
-
[
|
|
2027
|
+
["...on ShareFileInHistoryResponse"]: "__union" & GraphQLTypes["ShareFileInHistoryResponse"];
|
|
2028
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2029
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2740
2030
|
};
|
|
2741
2031
|
["ShareFolderResult"]: {
|
|
2742
2032
|
__typename: "ShareFolderResponse" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
2743
|
-
[
|
|
2744
|
-
[
|
|
2745
|
-
[
|
|
2033
|
+
["...on ShareFolderResponse"]: "__union" & GraphQLTypes["ShareFolderResponse"];
|
|
2034
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2035
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2746
2036
|
};
|
|
2747
2037
|
["ShareFolderFinishResult"]: {
|
|
2748
2038
|
__typename: "ShareFolderFinishResponse" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
2749
|
-
[
|
|
2750
|
-
[
|
|
2751
|
-
[
|
|
2039
|
+
["...on ShareFolderFinishResponse"]: "__union" & GraphQLTypes["ShareFolderFinishResponse"];
|
|
2040
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2041
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2752
2042
|
};
|
|
2753
2043
|
["ShareVFileResult"]: {
|
|
2754
2044
|
__typename: "ShareVFileResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorNotFound";
|
|
2755
|
-
[
|
|
2756
|
-
[
|
|
2757
|
-
[
|
|
2758
|
-
[
|
|
2045
|
+
["...on ShareVFileResponse"]: "__union" & GraphQLTypes["ShareVFileResponse"];
|
|
2046
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2047
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2048
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2759
2049
|
};
|
|
2760
2050
|
["UnreadMailResult"]: {
|
|
2761
2051
|
__typename: "UnreadMailResponse" | "ErrorAccessDenied" | "ErrorNotFound" | "ErrorBasic";
|
|
2762
|
-
[
|
|
2763
|
-
[
|
|
2764
|
-
[
|
|
2765
|
-
[
|
|
2052
|
+
["...on UnreadMailResponse"]: "__union" & GraphQLTypes["UnreadMailResponse"];
|
|
2053
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2054
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2055
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2766
2056
|
};
|
|
2767
2057
|
["UpdateAppNotificationsResult"]: {
|
|
2768
2058
|
__typename: "UpdateAppNotificationsResponse" | "ErrorAccessDenied";
|
|
2769
|
-
[
|
|
2770
|
-
[
|
|
2059
|
+
["...on UpdateAppNotificationsResponse"]: "__union" & GraphQLTypes["UpdateAppNotificationsResponse"];
|
|
2060
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2771
2061
|
};
|
|
2772
2062
|
["UpdateAppSettingsResult"]: {
|
|
2773
2063
|
__typename: "UpdateAppSettingsResponse" | "ErrorAccessDenied" | "ErrorBasic";
|
|
2774
|
-
[
|
|
2775
|
-
[
|
|
2776
|
-
[
|
|
2064
|
+
["...on UpdateAppSettingsResponse"]: "__union" & GraphQLTypes["UpdateAppSettingsResponse"];
|
|
2065
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2066
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2777
2067
|
};
|
|
2778
2068
|
["UpdateDraftMailResult"]: {
|
|
2779
2069
|
__typename: "UpdateDraftMailResponse" | "ErrorAccessDenied" | "ErrorBasic";
|
|
2780
|
-
[
|
|
2781
|
-
[
|
|
2782
|
-
[
|
|
2070
|
+
["...on UpdateDraftMailResponse"]: "__union" & GraphQLTypes["UpdateDraftMailResponse"];
|
|
2071
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2072
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2783
2073
|
};
|
|
2784
2074
|
["UpdateFileResult"]: {
|
|
2785
2075
|
__typename: "UpdateFileResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorBasic";
|
|
2786
|
-
[
|
|
2787
|
-
[
|
|
2788
|
-
[
|
|
2789
|
-
[
|
|
2076
|
+
["...on UpdateFileResponse"]: "__union" & GraphQLTypes["UpdateFileResponse"];
|
|
2077
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2078
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2079
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2790
2080
|
};
|
|
2791
2081
|
["UpdateFolderResult"]: {
|
|
2792
2082
|
__typename: "UpdateFolderResponse" | "ErrorAccessDenied" | "ErrorNotExist";
|
|
2793
|
-
[
|
|
2794
|
-
[
|
|
2795
|
-
[
|
|
2083
|
+
["...on UpdateFolderResponse"]: "__union" & GraphQLTypes["UpdateFolderResponse"];
|
|
2084
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2085
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2796
2086
|
};
|
|
2797
2087
|
["UpdateProfileResult"]: {
|
|
2798
2088
|
__typename: "UpdateProfileResponse" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
2799
|
-
[
|
|
2800
|
-
[
|
|
2801
|
-
[
|
|
2089
|
+
["...on UpdateProfileResponse"]: "__union" & GraphQLTypes["UpdateProfileResponse"];
|
|
2090
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2091
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2802
2092
|
};
|
|
2803
2093
|
["UploadFileResult"]: {
|
|
2804
2094
|
__typename: "UploadFileResponse" | "ErrorAccessDenied" | "ErrorNotFound" | "ErrorLimit";
|
|
2805
|
-
[
|
|
2806
|
-
[
|
|
2807
|
-
[
|
|
2808
|
-
[
|
|
2095
|
+
["...on UploadFileResponse"]: "__union" & GraphQLTypes["UploadFileResponse"];
|
|
2096
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2097
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2098
|
+
["...on ErrorLimit"]: "__union" & GraphQLTypes["ErrorLimit"];
|
|
2809
2099
|
};
|
|
2810
2100
|
["UploadFileEndResult"]: {
|
|
2811
2101
|
__typename: "UploadFileEndResponse" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
2812
|
-
[
|
|
2813
|
-
[
|
|
2814
|
-
[
|
|
2102
|
+
["...on UploadFileEndResponse"]: "__union" & GraphQLTypes["UploadFileEndResponse"];
|
|
2103
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2104
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2815
2105
|
};
|
|
2816
2106
|
["UploadFilePartEndResult"]: {
|
|
2817
2107
|
__typename: "UploadFilePartEndResponse" | "ErrorAccessDenied";
|
|
2818
|
-
[
|
|
2819
|
-
[
|
|
2108
|
+
["...on UploadFilePartEndResponse"]: "__union" & GraphQLTypes["UploadFilePartEndResponse"];
|
|
2109
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2820
2110
|
};
|
|
2821
2111
|
["ChangeUserPlanResult"]: {
|
|
2822
2112
|
__typename: "ChangeUserPlanResponse" | "ErrorAccessDenied";
|
|
2823
|
-
[
|
|
2824
|
-
[
|
|
2113
|
+
["...on ChangeUserPlanResponse"]: "__union" & GraphQLTypes["ChangeUserPlanResponse"];
|
|
2114
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2825
2115
|
};
|
|
2826
2116
|
["AppKeyPair"]: {
|
|
2827
2117
|
__typename: "AppKeyPair";
|
|
@@ -2893,13 +2183,13 @@ export declare type GraphQLTypes = {
|
|
|
2893
2183
|
};
|
|
2894
2184
|
["Error"]: {
|
|
2895
2185
|
__typename: "ErrorAccessDenied" | "ErrorNotFound" | "ErrorUpgradePlan" | "ErrorLangNotExist" | "ErrorNotExist" | "ErrorLimit" | "ErrorBasic";
|
|
2896
|
-
[
|
|
2897
|
-
[
|
|
2898
|
-
[
|
|
2899
|
-
[
|
|
2900
|
-
[
|
|
2901
|
-
[
|
|
2902
|
-
[
|
|
2186
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2187
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2188
|
+
["...on ErrorUpgradePlan"]: "__union" & GraphQLTypes["ErrorUpgradePlan"];
|
|
2189
|
+
["...on ErrorLangNotExist"]: "__union" & GraphQLTypes["ErrorLangNotExist"];
|
|
2190
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2191
|
+
["...on ErrorLimit"]: "__union" & GraphQLTypes["ErrorLimit"];
|
|
2192
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2903
2193
|
};
|
|
2904
2194
|
["ErrorAccessDenied"]: {
|
|
2905
2195
|
__typename: "ErrorAccessDenied";
|
|
@@ -2908,13 +2198,13 @@ export declare type GraphQLTypes = {
|
|
|
2908
2198
|
["ErrorBase"]: {
|
|
2909
2199
|
__typename: "ErrorAccessDenied" | "ErrorBasic" | "ErrorLangNotExist" | "ErrorLimit" | "ErrorNotExist" | "ErrorNotFound" | "ErrorUpgradePlan";
|
|
2910
2200
|
message: string;
|
|
2911
|
-
[
|
|
2912
|
-
[
|
|
2913
|
-
[
|
|
2914
|
-
[
|
|
2915
|
-
[
|
|
2916
|
-
[
|
|
2917
|
-
[
|
|
2201
|
+
["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
|
|
2202
|
+
["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
|
|
2203
|
+
["...on ErrorLangNotExist"]: "__union" & GraphQLTypes["ErrorLangNotExist"];
|
|
2204
|
+
["...on ErrorLimit"]: "__union" & GraphQLTypes["ErrorLimit"];
|
|
2205
|
+
["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
|
|
2206
|
+
["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
|
|
2207
|
+
["...on ErrorUpgradePlan"]: "__union" & GraphQLTypes["ErrorUpgradePlan"];
|
|
2918
2208
|
};
|
|
2919
2209
|
["ErrorBasic"]: {
|
|
2920
2210
|
__typename: "ErrorBasic";
|
|
@@ -2982,9 +2272,9 @@ export declare type GraphQLTypes = {
|
|
|
2982
2272
|
};
|
|
2983
2273
|
["FileContent"]: {
|
|
2984
2274
|
__typename: "FileContentCloud" | "FileContentReceivedMail" | "FileContentSentMail";
|
|
2985
|
-
[
|
|
2986
|
-
[
|
|
2987
|
-
[
|
|
2275
|
+
["...on FileContentCloud"]: "__union" & GraphQLTypes["FileContentCloud"];
|
|
2276
|
+
["...on FileContentReceivedMail"]: "__union" & GraphQLTypes["FileContentReceivedMail"];
|
|
2277
|
+
["...on FileContentSentMail"]: "__union" & GraphQLTypes["FileContentSentMail"];
|
|
2988
2278
|
};
|
|
2989
2279
|
["FileContentBase"]: {
|
|
2990
2280
|
__typename: "FileContentCloud" | "FileContentReceivedMail" | "FileContentSentMail";
|
|
@@ -2994,9 +2284,9 @@ export declare type GraphQLTypes = {
|
|
|
2994
2284
|
md5Encrypted: string;
|
|
2995
2285
|
totalSize: GraphQLTypes["BigInt"];
|
|
2996
2286
|
type: GraphQLTypes["FileContentType"];
|
|
2997
|
-
[
|
|
2998
|
-
[
|
|
2999
|
-
[
|
|
2287
|
+
["...on FileContentCloud"]: "__union" & GraphQLTypes["FileContentCloud"];
|
|
2288
|
+
["...on FileContentReceivedMail"]: "__union" & GraphQLTypes["FileContentReceivedMail"];
|
|
2289
|
+
["...on FileContentSentMail"]: "__union" & GraphQLTypes["FileContentSentMail"];
|
|
3000
2290
|
};
|
|
3001
2291
|
["FileContentCloud"]: {
|
|
3002
2292
|
__typename: "FileContentCloud";
|
|
@@ -3773,7 +3063,7 @@ export declare type GraphQLTypes = {
|
|
|
3773
3063
|
test: boolean;
|
|
3774
3064
|
};
|
|
3775
3065
|
};
|
|
3776
|
-
|
|
3066
|
+
declare enum Lang {
|
|
3777
3067
|
fr = "fr",
|
|
3778
3068
|
en = "en",
|
|
3779
3069
|
it = "it",
|
|
@@ -3790,54 +3080,40 @@ export declare const enum Lang {
|
|
|
3790
3080
|
hi = "hi",
|
|
3791
3081
|
ko = "ko"
|
|
3792
3082
|
}
|
|
3793
|
-
|
|
3083
|
+
declare enum PlanKind {
|
|
3794
3084
|
free = "free",
|
|
3795
3085
|
basic = "basic",
|
|
3796
3086
|
advanced = "advanced",
|
|
3797
3087
|
pro = "pro"
|
|
3798
3088
|
}
|
|
3799
|
-
|
|
3089
|
+
declare enum UserRole {
|
|
3800
3090
|
user = "user",
|
|
3801
3091
|
admin = "admin"
|
|
3802
3092
|
}
|
|
3803
|
-
|
|
3093
|
+
declare enum MailType$1 {
|
|
3804
3094
|
sent = "sent",
|
|
3805
3095
|
received = "received"
|
|
3806
3096
|
}
|
|
3807
|
-
|
|
3097
|
+
declare enum Rights {
|
|
3808
3098
|
admin = "admin",
|
|
3809
3099
|
write = "write",
|
|
3810
3100
|
read = "read"
|
|
3811
3101
|
}
|
|
3812
|
-
|
|
3102
|
+
declare enum FileContentType {
|
|
3813
3103
|
cloud = "cloud",
|
|
3814
3104
|
sent_mail = "sent_mail",
|
|
3815
3105
|
received_mail = "received_mail"
|
|
3816
3106
|
}
|
|
3817
|
-
|
|
3107
|
+
declare enum PayInputType {
|
|
3818
3108
|
secure = "secure",
|
|
3819
3109
|
classic = "classic"
|
|
3820
3110
|
}
|
|
3821
|
-
export declare class GraphQLError extends Error {
|
|
3822
|
-
response: GraphQLResponse;
|
|
3823
|
-
constructor(response: GraphQLResponse);
|
|
3824
|
-
toString(): string;
|
|
3825
|
-
}
|
|
3826
|
-
export declare type UnwrapPromise<T> = T extends Promise<infer R> ? R : T;
|
|
3827
|
-
export declare type ZeusState<T extends (...args: any[]) => Promise<any>> = NonNullable<UnwrapPromise<ReturnType<T>>>;
|
|
3828
|
-
export declare type ZeusHook<T extends (...args: any[]) => Record<string, (...args: any[]) => Promise<any>>, N extends keyof ReturnType<T>> = ZeusState<ReturnType<T>[N]>;
|
|
3829
3111
|
declare type WithTypeNameValue<T> = T & {
|
|
3830
3112
|
__typename?: boolean;
|
|
3831
3113
|
};
|
|
3832
3114
|
declare type AliasType<T> = WithTypeNameValue<T> & {
|
|
3833
3115
|
__alias?: Record<string, WithTypeNameValue<T>>;
|
|
3834
3116
|
};
|
|
3835
|
-
export interface GraphQLResponse {
|
|
3836
|
-
data?: Record<string, any>;
|
|
3837
|
-
errors?: Array<{
|
|
3838
|
-
message: string;
|
|
3839
|
-
}>;
|
|
3840
|
-
}
|
|
3841
3117
|
declare type DeepAnify<T> = {
|
|
3842
3118
|
[P in keyof T]?: any;
|
|
3843
3119
|
};
|
|
@@ -3845,82 +3121,737 @@ declare type IsPayLoad<T> = T extends [any, infer PayLoad] ? PayLoad : T;
|
|
|
3845
3121
|
declare type IsArray<T, U> = T extends Array<infer R> ? InputType<R, U>[] : InputType<T, U>;
|
|
3846
3122
|
declare type FlattenArray<T> = T extends Array<infer R> ? R : T;
|
|
3847
3123
|
declare type IsInterfaced<SRC extends DeepAnify<DST>, DST> = FlattenArray<SRC> extends ZEUS_INTERFACES | ZEUS_UNIONS ? {
|
|
3848
|
-
[P in keyof SRC]: SRC[P] extends
|
|
3124
|
+
[P in keyof SRC]: SRC[P] extends "__union" & infer R ? P extends keyof DST ? IsArray<R, "__typename" extends keyof DST ? DST[P] & {
|
|
3849
3125
|
__typename: true;
|
|
3850
3126
|
} : DST[P]> : {} : never;
|
|
3851
3127
|
}[keyof DST] & {
|
|
3852
3128
|
[P in keyof Omit<Pick<SRC, {
|
|
3853
|
-
[P in keyof DST]: SRC[P] extends
|
|
3854
|
-
}[keyof DST]>,
|
|
3129
|
+
[P in keyof DST]: SRC[P] extends "__union" ? never : P;
|
|
3130
|
+
}[keyof DST]>, "__typename">]: IsPayLoad<DST[P]> extends boolean ? SRC[P] : IsArray<SRC[P], DST[P]>;
|
|
3855
3131
|
} : {
|
|
3856
3132
|
[P in keyof Pick<SRC, keyof DST>]: IsPayLoad<DST[P]> extends boolean ? SRC[P] : IsArray<SRC[P], DST[P]>;
|
|
3857
3133
|
};
|
|
3858
|
-
|
|
3859
|
-
|
|
3134
|
+
declare type MapType<SRC, DST> = SRC extends DeepAnify<DST> ? IsInterfaced<SRC, DST> : never;
|
|
3135
|
+
declare type InputType<SRC, DST> = IsPayLoad<DST> extends {
|
|
3860
3136
|
__alias: infer R;
|
|
3861
3137
|
} ? {
|
|
3862
3138
|
[P in keyof R]: MapType<SRC, R[P]>;
|
|
3863
|
-
} & MapType<SRC, Omit<IsPayLoad<DST>,
|
|
3864
|
-
declare type
|
|
3865
|
-
declare type AnyFunc = Func<any, any>;
|
|
3866
|
-
export declare type ArgsType<F extends AnyFunc> = F extends Func<infer P, any> ? P : never;
|
|
3867
|
-
export declare type OperationOptions = {
|
|
3139
|
+
} & MapType<SRC, Omit<IsPayLoad<DST>, "__alias">> : MapType<SRC, IsPayLoad<DST>>;
|
|
3140
|
+
declare type OperationOptions = {
|
|
3868
3141
|
variables?: Record<string, any>;
|
|
3869
3142
|
operationName?: string;
|
|
3870
3143
|
};
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3144
|
+
declare type FetchFunction = (query: string, variables?: Record<string, any>) => Promise<any>;
|
|
3145
|
+
declare type GenericOperation<O> = O extends "query" ? "Query" : O extends "mutation" ? "Mutation" : "Subscription";
|
|
3146
|
+
declare const Thunder: (fn: FetchFunction) => <O extends "query" | "mutation" | "subscription", R extends keyof ValueTypes = GenericOperation<O>>(operation: O) => <Z extends ValueTypes[R]>(o: Z | ValueTypes[R], ops?: OperationOptions | undefined) => Promise<InputType<GraphQLTypes[R], Z>>;
|
|
3147
|
+
|
|
3148
|
+
declare type File = {
|
|
3149
|
+
id: string;
|
|
3150
|
+
size: bigint;
|
|
3151
|
+
sizeBefore: bigint;
|
|
3152
|
+
md5: string;
|
|
3153
|
+
md5Encrypted: string;
|
|
3154
|
+
createdAt: Date;
|
|
3155
|
+
};
|
|
3156
|
+
|
|
3157
|
+
declare type VFile<T extends File = File, U extends Record<string, unknown> = Record<string, unknown>> = {
|
|
3158
|
+
id: string;
|
|
3159
|
+
isFavorite: boolean;
|
|
3160
|
+
createdAt: Date;
|
|
3161
|
+
updatedAt: Date;
|
|
3162
|
+
deletedAt: Date | null;
|
|
3163
|
+
filename: string;
|
|
3164
|
+
current: T;
|
|
3165
|
+
history: T[];
|
|
3166
|
+
createdBy: PublicUser;
|
|
3167
|
+
userApp: VFilesOnUsersOnApplications<U>;
|
|
3168
|
+
users: [PublicUser, Rights][];
|
|
3169
|
+
};
|
|
3170
|
+
declare type VFileWithFolder<T extends File = File> = VFile<T> & {
|
|
3171
|
+
folder: Folder;
|
|
3172
|
+
};
|
|
3173
|
+
declare type VFilesOnUsersOnApplications<T extends Record<string, unknown> = Record<string, unknown>> = T & {
|
|
3174
|
+
rights: Rights;
|
|
3175
|
+
isRoot: boolean;
|
|
3176
|
+
userApp: {
|
|
3177
|
+
user: {
|
|
3178
|
+
id: string;
|
|
3179
|
+
};
|
|
3180
|
+
};
|
|
3181
|
+
};
|
|
3182
|
+
declare function isVFile(obj: Folder | VFile): obj is VFile;
|
|
3183
|
+
|
|
3184
|
+
declare type FoldersOnUsersOnApplications<T extends Record<string, unknown> = Record<string, unknown>> = T & {
|
|
3185
|
+
rights: Rights;
|
|
3186
|
+
isRoot: boolean;
|
|
3187
|
+
userApp: {
|
|
3188
|
+
user: {
|
|
3189
|
+
id: string;
|
|
3190
|
+
};
|
|
3191
|
+
};
|
|
3192
|
+
};
|
|
3193
|
+
declare type FolderBreadcrumbItem = {
|
|
3194
|
+
id: string;
|
|
3195
|
+
name: string;
|
|
3196
|
+
pubKey: string;
|
|
3197
|
+
};
|
|
3198
|
+
declare type Folder<T extends FolderBreadcrumbItem = FolderBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>> = {
|
|
3199
|
+
id: string;
|
|
3200
|
+
isFavorite: boolean;
|
|
3201
|
+
createdAt: Date;
|
|
3202
|
+
deletedAt: Date | null;
|
|
3203
|
+
updatedAt: Date;
|
|
3204
|
+
name: string;
|
|
3205
|
+
breadcrumb: T[];
|
|
3206
|
+
createdBy: PublicUser;
|
|
3207
|
+
userApp?: FoldersOnUsersOnApplications<U>;
|
|
3208
|
+
users: [PublicUser, Rights][];
|
|
3209
|
+
};
|
|
3210
|
+
declare type FolderFull<T extends FolderBreadcrumbItem = FolderBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>, V extends Record<string, unknown> = VFile> = Folder<T, U> & {
|
|
3211
|
+
vFiles: V[];
|
|
3212
|
+
parentFolder: Folder<T, U> | null;
|
|
3213
|
+
subfolders: Folder<T, U>[];
|
|
3214
|
+
};
|
|
3215
|
+
declare function isFolder(obj: Folder | VFile): obj is Folder;
|
|
3216
|
+
|
|
3217
|
+
declare type UserAppSettings = {
|
|
3218
|
+
cloudFileDaysForDelete: number;
|
|
3219
|
+
cloudFolderDaysForDelete: number;
|
|
3220
|
+
historyFileDaysForDelete?: number;
|
|
3221
|
+
historyMaxFileCount: number;
|
|
3222
|
+
autoDisconnectDelay?: number;
|
|
3223
|
+
};
|
|
3224
|
+
|
|
3225
|
+
declare type UserAppNotifications = {
|
|
3226
|
+
enableAll: boolean;
|
|
3227
|
+
mail: boolean;
|
|
3228
|
+
cloud: boolean;
|
|
3229
|
+
disableAllUntil: Date | null;
|
|
3230
|
+
};
|
|
3231
|
+
|
|
3232
|
+
declare type SecrecyUserApp = {
|
|
3233
|
+
keys: KeyPair;
|
|
3234
|
+
jwt: string;
|
|
3235
|
+
uaSession: string;
|
|
3236
|
+
};
|
|
3237
|
+
declare type MailFileInput = {
|
|
3238
|
+
id: string;
|
|
3239
|
+
name: string;
|
|
3240
|
+
fileKey: string;
|
|
3241
|
+
};
|
|
3242
|
+
declare type MailIntegrity = {
|
|
3243
|
+
id: string;
|
|
3244
|
+
hash: string;
|
|
3245
|
+
hashKey: string;
|
|
3246
|
+
replyTo?: {
|
|
3247
|
+
id: string;
|
|
3248
|
+
};
|
|
3249
|
+
temporaryRecipients: TemporaryMailUser[];
|
|
3250
|
+
recipients: PublicUser[];
|
|
3251
|
+
};
|
|
3252
|
+
declare type TemporaryMailUser = {
|
|
3253
|
+
email?: string;
|
|
3254
|
+
};
|
|
3255
|
+
declare type WaitingReceivedMail = {
|
|
3256
|
+
id: string;
|
|
3257
|
+
sender: PublicUser;
|
|
3258
|
+
date: Date;
|
|
3259
|
+
attachmentsCount: number;
|
|
3260
|
+
recipients: PublicUser[];
|
|
3261
|
+
temporaryRecipients: TemporaryMailUser[];
|
|
3262
|
+
};
|
|
3263
|
+
declare type MailFile = {
|
|
3264
|
+
fileKey: string;
|
|
3265
|
+
filename: string;
|
|
3266
|
+
file: {
|
|
3267
|
+
id: string;
|
|
3268
|
+
};
|
|
3269
|
+
};
|
|
3270
|
+
declare type MailType = "sent" | "received" | "draft";
|
|
3271
|
+
declare type BaseMail = {
|
|
3272
|
+
type: MailType;
|
|
3273
|
+
id: string;
|
|
3274
|
+
mailIntegrityId: string;
|
|
3275
|
+
replyTo?: string;
|
|
3276
|
+
body: string;
|
|
3277
|
+
subject: string;
|
|
3278
|
+
createdAt: Date;
|
|
3279
|
+
deletedAt: Date | null;
|
|
3280
|
+
openedAt: Date | null;
|
|
3281
|
+
isAltered: boolean;
|
|
3282
|
+
recipients: PublicUser[];
|
|
3283
|
+
temporaryRecipients: TemporaryMailUser[];
|
|
3284
|
+
files: {
|
|
3285
|
+
id: string;
|
|
3286
|
+
name: string;
|
|
3287
|
+
key: string;
|
|
3288
|
+
}[];
|
|
3289
|
+
};
|
|
3290
|
+
declare type PublicUser = {
|
|
3291
|
+
id: string;
|
|
3292
|
+
firstname: string;
|
|
3293
|
+
lastname: string;
|
|
3294
|
+
email: string;
|
|
3295
|
+
publicKey: string;
|
|
3296
|
+
};
|
|
3297
|
+
interface ReceivedMail extends BaseMail {
|
|
3298
|
+
type: "received";
|
|
3299
|
+
sender: PublicUser;
|
|
3300
|
+
}
|
|
3301
|
+
interface SentMail extends BaseMail {
|
|
3302
|
+
type: "sent";
|
|
3303
|
+
}
|
|
3304
|
+
interface DraftMail extends BaseMail {
|
|
3305
|
+
type: "draft";
|
|
3306
|
+
}
|
|
3307
|
+
declare type Mail = DraftMail | SentMail | ReceivedMail;
|
|
3308
|
+
declare type Session = {
|
|
3309
|
+
id: string;
|
|
3310
|
+
lastActivity: Date | undefined;
|
|
3311
|
+
userAgent: string | undefined;
|
|
3312
|
+
ip: string | undefined;
|
|
3313
|
+
city: string | undefined;
|
|
3314
|
+
country: string | undefined;
|
|
3315
|
+
};
|
|
3316
|
+
declare type AppSession = Session & {
|
|
3317
|
+
app: string;
|
|
3318
|
+
};
|
|
3319
|
+
declare type UserSession = Session & {
|
|
3320
|
+
appSessions: AppSession[];
|
|
3321
|
+
};
|
|
3322
|
+
declare type MailRecipientInput = {
|
|
3323
|
+
body: string;
|
|
3324
|
+
subject: string;
|
|
3325
|
+
recipientId: string;
|
|
3326
|
+
files: MailFileInput[];
|
|
3327
|
+
};
|
|
3328
|
+
|
|
3329
|
+
declare function parseInfos(): SecrecyUserApp | null;
|
|
3330
|
+
declare type HashInfos = {
|
|
3331
|
+
appUrl: string;
|
|
3332
|
+
backPath?: string;
|
|
3333
|
+
appCode?: string | null | undefined;
|
|
3334
|
+
path?: string | null | undefined;
|
|
3335
|
+
redirect?: boolean;
|
|
3336
|
+
scopes?: {
|
|
3337
|
+
email: boolean;
|
|
3338
|
+
};
|
|
3339
|
+
};
|
|
3340
|
+
declare type SecrecyEnv = "dev" | "prod";
|
|
3341
|
+
declare type UseSecrecyParams = Omit<HashInfos, "appUrl"> & {
|
|
3342
|
+
env: SecrecyEnv;
|
|
3343
|
+
session?: boolean | undefined;
|
|
3344
|
+
};
|
|
3345
|
+
declare type Value<T extends UseSecrecyParams> = T extends {
|
|
3346
|
+
redirect: true;
|
|
3347
|
+
} ? SecrecyClient | null : SecrecyClient;
|
|
3348
|
+
declare function getSecrecyClient(env: SecrecyEnv, session?: boolean | undefined): SecrecyClient | null;
|
|
3349
|
+
declare function login<T extends UseSecrecyParams>({ appCode, path, redirect, scopes, backPath, env, session }?: T): Promise<Value<T>>;
|
|
3350
|
+
|
|
3351
|
+
declare type ErrorType = "ErrorUpgradePlan" | "ErrorNotFound" | "ErrorNotExist" | "ErrorAccessDenied" | "ErrorLangNotExist" | "ErrorLimit" | "ErrorBasic";
|
|
3352
|
+
interface ErrorBase {
|
|
3353
|
+
message: string;
|
|
3354
|
+
__typename: ErrorType;
|
|
3355
|
+
}
|
|
3356
|
+
interface ErrorUpgradePlan extends ErrorBase {
|
|
3357
|
+
__typename: "ErrorUpgradePlan";
|
|
3358
|
+
}
|
|
3359
|
+
interface ErrorNotFound extends ErrorBase {
|
|
3360
|
+
__typename: "ErrorNotFound";
|
|
3361
|
+
field?: string | undefined;
|
|
3362
|
+
}
|
|
3363
|
+
interface ErrorNotExist extends ErrorBase {
|
|
3364
|
+
__typename: "ErrorNotExist";
|
|
3365
|
+
field?: string | undefined;
|
|
3366
|
+
}
|
|
3367
|
+
interface ErrorAccessDenied extends ErrorBase {
|
|
3368
|
+
__typename: "ErrorAccessDenied";
|
|
3369
|
+
}
|
|
3370
|
+
interface ErrorLangNotExist extends ErrorBase {
|
|
3371
|
+
__typename: "ErrorLangNotExist";
|
|
3372
|
+
}
|
|
3373
|
+
interface ErrorLimit extends ErrorBase {
|
|
3374
|
+
__typename: "ErrorLimit";
|
|
3375
|
+
field?: string | undefined;
|
|
3376
|
+
}
|
|
3377
|
+
interface ErrorBasic extends ErrorBase {
|
|
3378
|
+
__typename: "ErrorBasic";
|
|
3379
|
+
}
|
|
3380
|
+
declare type SecrecyError = ErrorUpgradePlan | ErrorNotFound | ErrorNotExist | ErrorAccessDenied | ErrorLangNotExist | ErrorLimit | ErrorBasic;
|
|
3381
|
+
|
|
3382
|
+
declare type SuccessResponse<T> = {
|
|
3383
|
+
__typename: "SuccessResponse";
|
|
3384
|
+
data: T;
|
|
3385
|
+
};
|
|
3386
|
+
declare type DownloadProgress = DownloadProgress$1;
|
|
3387
|
+
declare type PayInput = {
|
|
3388
|
+
type: PayInputType;
|
|
3389
|
+
token: string;
|
|
3390
|
+
firstName: string;
|
|
3391
|
+
lastName: string;
|
|
3392
|
+
street: string;
|
|
3393
|
+
postalCode: string;
|
|
3394
|
+
city: string;
|
|
3395
|
+
country: string;
|
|
3396
|
+
month: string;
|
|
3397
|
+
year: string;
|
|
3398
|
+
cvv: string;
|
|
3399
|
+
number: string;
|
|
3400
|
+
};
|
|
3401
|
+
declare type MailLimits = {
|
|
3402
|
+
count?: string | undefined;
|
|
3403
|
+
fileCount?: string | undefined;
|
|
3404
|
+
fileSize?: string | undefined;
|
|
3405
|
+
hardCount?: string | undefined;
|
|
3406
|
+
hardFileCount?: string | undefined;
|
|
3407
|
+
hardFileSize?: string | undefined;
|
|
3408
|
+
perFileSize?: string | undefined;
|
|
3409
|
+
};
|
|
3410
|
+
declare type Limits = {
|
|
3411
|
+
downloadBandwidth?: string | undefined;
|
|
3412
|
+
downloadCount?: string | undefined;
|
|
3413
|
+
hardFileCount?: string | undefined;
|
|
3414
|
+
hardFileSize?: string | undefined;
|
|
3415
|
+
perFileSize?: string | undefined;
|
|
3416
|
+
receivedMails: MailLimits;
|
|
3417
|
+
sentMails: MailLimits;
|
|
3418
|
+
uploadBandwidth?: string | undefined;
|
|
3419
|
+
uploadCount?: string | undefined;
|
|
3420
|
+
};
|
|
3421
|
+
declare type GodUser = {
|
|
3422
|
+
id: string;
|
|
3423
|
+
firstname: string;
|
|
3424
|
+
lastname: string;
|
|
3425
|
+
email: string;
|
|
3426
|
+
phone: string;
|
|
3427
|
+
};
|
|
3428
|
+
declare type GodFatherAndChildren = {
|
|
3429
|
+
godFather: GodUser | null;
|
|
3430
|
+
godChildren: GodUser[];
|
|
3431
|
+
};
|
|
3432
|
+
declare type Plan = {
|
|
3433
|
+
codes: string[];
|
|
3434
|
+
kind: PlanKind;
|
|
3435
|
+
limits: Limits;
|
|
3436
|
+
};
|
|
3437
|
+
declare type SubscriptionState = "active" | "canceled" | "paused" | "expired" | "future" | "in_trial" | "live" | "past_due";
|
|
3438
|
+
declare type SubscriptionCollectionMethod = "automatic" | "manual";
|
|
3439
|
+
declare type RecurlyInvoiceStatus = "pending" | "paid" | "failed" | "past_due" | "open" | "closed" | "voided" | "processing";
|
|
3440
|
+
declare type Subscription = {
|
|
3441
|
+
autorenew: boolean;
|
|
3442
|
+
activatedAt?: Date | null | undefined;
|
|
3443
|
+
currentPeriodEndsAt?: Date | null | undefined;
|
|
3444
|
+
currentPeriodStartedAt?: Date | null | undefined;
|
|
3445
|
+
canceledAt?: Date | null | undefined;
|
|
3446
|
+
createdAt?: Date | null | undefined;
|
|
3447
|
+
expiresAt?: Date | null | undefined;
|
|
3448
|
+
pausedAt?: Date | null | undefined;
|
|
3449
|
+
trialEndsAt?: Date | null | undefined;
|
|
3450
|
+
trialStartedAt?: Date | null | undefined;
|
|
3451
|
+
updatedAt?: Date | null | undefined;
|
|
3452
|
+
collectionMethod: SubscriptionCollectionMethod;
|
|
3453
|
+
state: SubscriptionState;
|
|
3454
|
+
plan?: string | null | undefined;
|
|
3455
|
+
planCode?: string | null | undefined;
|
|
3456
|
+
total?: number | null | undefined;
|
|
3457
|
+
};
|
|
3458
|
+
declare type RecurlyInvoices = {
|
|
3459
|
+
pdf: string;
|
|
3460
|
+
date: Date;
|
|
3461
|
+
due: Date;
|
|
3462
|
+
status: RecurlyInvoiceStatus;
|
|
3463
|
+
total: number;
|
|
3464
|
+
name: string;
|
|
3465
|
+
currency: string;
|
|
3466
|
+
};
|
|
3467
|
+
declare type PaymentInfos = {
|
|
3468
|
+
hostedUrl: string;
|
|
3469
|
+
currentSubscription: Subscription;
|
|
3470
|
+
invoices: RecurlyInvoices[];
|
|
3471
|
+
};
|
|
3472
|
+
declare type SendReport = {
|
|
3473
|
+
id: string;
|
|
3474
|
+
user: {
|
|
3475
|
+
id: string;
|
|
3476
|
+
firstname: string;
|
|
3477
|
+
lastname: string;
|
|
3478
|
+
email: string;
|
|
3479
|
+
};
|
|
3480
|
+
reportedUser: {
|
|
3481
|
+
id: string;
|
|
3482
|
+
firstname: string;
|
|
3483
|
+
lastname: string;
|
|
3484
|
+
email: string;
|
|
3485
|
+
};
|
|
3486
|
+
customMessage?: string | undefined;
|
|
3885
3487
|
};
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
declare
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
export declare const TypesPropsResolver: ({ value, type, name, key, blockArrays }: {
|
|
3899
|
-
value: any;
|
|
3900
|
-
type: string;
|
|
3488
|
+
declare const plansCodes: readonly ["basic_month", "advanced_month", "pro_month", "basic_year", "advanced_year", "pro_year"];
|
|
3489
|
+
declare type SecrecyPlansCodes = typeof plansCodes[number];
|
|
3490
|
+
declare function isValidPlan(planCode: string): planCode is SecrecyPlansCodes;
|
|
3491
|
+
declare type UserData<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
3492
|
+
isSuperuser: boolean;
|
|
3493
|
+
isSearchable: boolean;
|
|
3494
|
+
} & T;
|
|
3495
|
+
declare type FolderSize = {
|
|
3496
|
+
size: bigint;
|
|
3497
|
+
sizeBefore: bigint;
|
|
3498
|
+
};
|
|
3499
|
+
declare type AppDBConfigField = {
|
|
3901
3500
|
name: string;
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3501
|
+
type: "string" | "number" | "boolean" | "object";
|
|
3502
|
+
isArray?: boolean | undefined;
|
|
3503
|
+
isNullable?: boolean | undefined;
|
|
3504
|
+
isEditable?: boolean | undefined;
|
|
3505
|
+
isKey?: boolean | undefined;
|
|
3506
|
+
default?: unknown;
|
|
3507
|
+
};
|
|
3508
|
+
declare type AppDBConfig = {
|
|
3509
|
+
fields: AppDBConfigField[];
|
|
3510
|
+
};
|
|
3511
|
+
declare type FaqItem = {
|
|
3512
|
+
order: number;
|
|
3513
|
+
question: string;
|
|
3514
|
+
answer: string;
|
|
3515
|
+
};
|
|
3516
|
+
declare type BlogItem = {
|
|
3517
|
+
id: string;
|
|
3518
|
+
blogId: string;
|
|
3519
|
+
order: number;
|
|
3520
|
+
author: string;
|
|
3521
|
+
body: string;
|
|
3522
|
+
date: Date;
|
|
3523
|
+
image: string;
|
|
3524
|
+
imageAlt: string;
|
|
3525
|
+
summary: string;
|
|
3526
|
+
title: string;
|
|
3527
|
+
};
|
|
3528
|
+
declare type UserBase = {
|
|
3529
|
+
email: string;
|
|
3530
|
+
phone: string;
|
|
3531
|
+
lastname: string;
|
|
3532
|
+
role: UserRole;
|
|
3533
|
+
firstname: string;
|
|
3534
|
+
id: string;
|
|
3535
|
+
deletedAt: Date | null;
|
|
3536
|
+
lastLogin: Date;
|
|
3537
|
+
lang: Lang;
|
|
3538
|
+
};
|
|
3539
|
+
declare type WithPublicKey = {
|
|
3540
|
+
withPublicKey?: boolean;
|
|
3541
|
+
};
|
|
3542
|
+
declare type User<T extends WithPublicKey = WithPublicKey> = T extends {
|
|
3543
|
+
withPublicKey: true;
|
|
3544
|
+
} ? UserBase & {
|
|
3545
|
+
publicKey: string;
|
|
3546
|
+
} : UserBase;
|
|
3547
|
+
declare type ClassGetUserParams = WithPublicKey & {
|
|
3548
|
+
userId?: string;
|
|
3549
|
+
};
|
|
3550
|
+
declare type StaticGetUserParams = ClassGetUserParams & {
|
|
3551
|
+
env: SecrecyEnv;
|
|
3917
3552
|
};
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3553
|
+
declare type CloudLimits = {
|
|
3554
|
+
count: bigint;
|
|
3555
|
+
maxCount: bigint | null;
|
|
3556
|
+
size: bigint;
|
|
3557
|
+
maxSize: bigint | null;
|
|
3558
|
+
};
|
|
3559
|
+
declare type MailLimitsValues = {
|
|
3560
|
+
count: bigint;
|
|
3561
|
+
maxCount: bigint | null;
|
|
3562
|
+
fileSize: bigint;
|
|
3563
|
+
maxFileSize: bigint | null;
|
|
3564
|
+
fileCount: bigint;
|
|
3565
|
+
maxFileCount: bigint | null;
|
|
3566
|
+
};
|
|
3567
|
+
declare type QueryLimits = {
|
|
3568
|
+
cloud: CloudLimits;
|
|
3569
|
+
mail: {
|
|
3570
|
+
sent: MailLimitsValues;
|
|
3571
|
+
received: MailLimitsValues;
|
|
3572
|
+
};
|
|
3573
|
+
};
|
|
3574
|
+
declare class BaseClient {
|
|
3575
|
+
static readonly getBaseUrl: (env?: SecrecyEnv, graphcdn?: boolean) => string;
|
|
3576
|
+
private static readonly _getBaseClient;
|
|
3577
|
+
protected client: ReturnType<typeof Thunder>;
|
|
3578
|
+
sessionId: string;
|
|
3579
|
+
constructor(session: string, env: SecrecyEnv);
|
|
3580
|
+
sessions(): Promise<SuccessResponse<UserSession[]> | ErrorNotFound | null>;
|
|
3581
|
+
logout(sessionId?: string | null | undefined): Promise<void>;
|
|
3582
|
+
me<T extends WithPublicKey = WithPublicKey>(params?: T): Promise<SuccessResponse<User<T>> | ErrorNotFound | null>;
|
|
3583
|
+
static user<T extends StaticGetUserParams>(params: T, sessionId?: string | null | undefined): Promise<SuccessResponse<User<T>> | ErrorNotFound | null>;
|
|
3584
|
+
user<T extends ClassGetUserParams>(params: T): Promise<SuccessResponse<User<T>> | ErrorNotFound | null>;
|
|
3585
|
+
updateProfile({ firstname, lastname, lang }: {
|
|
3586
|
+
firstname: string | null;
|
|
3587
|
+
lastname: string | null;
|
|
3588
|
+
lang: Lang | null;
|
|
3589
|
+
}): Promise<SuccessResponse<User> | ErrorNotFound | ErrorAccessDenied | null>;
|
|
3590
|
+
static plans(env: SecrecyEnv, sessionId?: string | null | undefined): Promise<SuccessResponse<Plan[]> | null>;
|
|
3591
|
+
pay(planCode: SecrecyPlansCodes, input: PayInput, autoRenew?: boolean | null | undefined): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3592
|
+
cancelPayment(): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3593
|
+
paymentInfos(): Promise<SuccessResponse<PaymentInfos> | ErrorAccessDenied | null>;
|
|
3594
|
+
limits(): Promise<SuccessResponse<QueryLimits> | ErrorAccessDenied | ErrorNotExist | ErrorLimit | ErrorNotFound | null>;
|
|
3595
|
+
godFatherAndChildren(): Promise<SuccessResponse<GodFatherAndChildren> | ErrorNotFound | null>;
|
|
3596
|
+
static updateAppDBConfig({ appCode, config, env, sessionId }: {
|
|
3597
|
+
appCode: string;
|
|
3598
|
+
config: AppDBConfig;
|
|
3599
|
+
env: SecrecyEnv;
|
|
3600
|
+
sessionId?: string | null | undefined;
|
|
3601
|
+
}): Promise<SuccessResponse<AppDBConfig> | ErrorAccessDenied | null>;
|
|
3602
|
+
static getAppDBConfig(appCode: string, env: SecrecyEnv, sessionId?: string | null | undefined): Promise<SuccessResponse<AppDBConfig> | ErrorAccessDenied | ErrorNotFound | ErrorNotExist | null>;
|
|
3603
|
+
static getFAQ({ lang, env, sessionId }: {
|
|
3604
|
+
lang?: Lang;
|
|
3605
|
+
env: SecrecyEnv;
|
|
3606
|
+
sessionId?: string | null | undefined;
|
|
3607
|
+
}): Promise<SuccessResponse<FaqItem[]> | ErrorAccessDenied | null>;
|
|
3608
|
+
static getBlog({ env, lang, sessionId }: {
|
|
3609
|
+
env: SecrecyEnv;
|
|
3610
|
+
lang?: Lang | null | undefined;
|
|
3611
|
+
sessionId?: string | null | undefined;
|
|
3612
|
+
}): Promise<SuccessResponse<BlogItem[]> | ErrorLangNotExist | null>;
|
|
3613
|
+
reportUser(reportedUserId: string, customMessage?: string): Promise<SuccessResponse<SendReport> | ErrorAccessDenied | ErrorNotFound | null>;
|
|
3614
|
+
static deleteUser({ sessionId, userId, env }: {
|
|
3615
|
+
sessionId: string;
|
|
3616
|
+
userId?: string;
|
|
3617
|
+
env: SecrecyEnv;
|
|
3618
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3619
|
+
dbGet<U>({ field, userId }: {
|
|
3620
|
+
field: string;
|
|
3621
|
+
userId?: string | null | undefined;
|
|
3622
|
+
}): Promise<SuccessResponse<U> | ErrorAccessDenied | ErrorNotExist | ErrorNotFound | null>;
|
|
3623
|
+
dbSet<T extends UserData, U extends Document>({ value, userId }: {
|
|
3624
|
+
value: U;
|
|
3625
|
+
userId?: string | null | undefined;
|
|
3626
|
+
}): Promise<SuccessResponse<T> | ErrorAccessDenied | ErrorNotFound | null>;
|
|
3627
|
+
dbSearch<T>({ search, field }: {
|
|
3628
|
+
field: string;
|
|
3629
|
+
search: string;
|
|
3630
|
+
}): Promise<SuccessResponse<T[]> | ErrorAccessDenied | ErrorBasic | ErrorNotExist | null>;
|
|
3631
|
+
deleteFolder({ id }: {
|
|
3632
|
+
id: string;
|
|
3633
|
+
}): Promise<SuccessResponse<boolean> | ErrorNotExist | ErrorAccessDenied | null>;
|
|
3634
|
+
moveFolders({ foldersId, parentFolderId }: {
|
|
3635
|
+
foldersId: string[];
|
|
3636
|
+
parentFolderId?: string | null | undefined;
|
|
3637
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3638
|
+
moveFiles({ filesId, parentFolderId }: {
|
|
3639
|
+
filesId: string[];
|
|
3640
|
+
parentFolderId?: string | null | undefined;
|
|
3641
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3642
|
+
folderSize({ folderId }: {
|
|
3643
|
+
folderId?: string | null | undefined;
|
|
3644
|
+
}): Promise<SuccessResponse<FolderSize> | ErrorAccessDenied | null>;
|
|
3645
|
+
getSponsorshipLink({ backUrl }: {
|
|
3646
|
+
backUrl: string;
|
|
3647
|
+
}): Promise<string | null>;
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3650
|
+
declare type Progress = {
|
|
3651
|
+
percent: number;
|
|
3652
|
+
total: number;
|
|
3653
|
+
current: number;
|
|
3654
|
+
};
|
|
3655
|
+
|
|
3656
|
+
interface KeyPair {
|
|
3657
|
+
publicKey: string;
|
|
3658
|
+
privateKey: string;
|
|
3659
|
+
}
|
|
3660
|
+
declare function encryptCryptoBox(data: Uint8Array, publicKeyBob: string, privateKeyAlice: string): Uint8Array;
|
|
3661
|
+
declare function generateCryptoBoxKeyPair(): KeyPair;
|
|
3662
|
+
declare function decryptCryptoBox(data: Uint8Array, publicKeyAlice: string, privateKeyBob: string): Uint8Array;
|
|
3663
|
+
declare function generateSecretBoxKey(): string;
|
|
3664
|
+
declare function encryptSecretBox(data: Uint8Array, key: string): Uint8Array;
|
|
3665
|
+
declare function decryptSecretBox(data: Uint8Array, key: string): Uint8Array;
|
|
3666
|
+
declare function encryptAnonymous(data: Uint8Array, receiverPublicKey: string): Uint8Array;
|
|
3667
|
+
declare function decryptAnonymous(data: Uint8Array, { privateKey, publicKey }: KeyPair): Uint8Array;
|
|
3668
|
+
|
|
3669
|
+
declare type NewMail = {
|
|
3670
|
+
body: string;
|
|
3671
|
+
subject: string;
|
|
3672
|
+
files: {
|
|
3673
|
+
id: string;
|
|
3674
|
+
name: string;
|
|
3675
|
+
}[];
|
|
3676
|
+
recipientsIds: string[];
|
|
3677
|
+
replyTo?: string | null | undefined;
|
|
3678
|
+
};
|
|
3679
|
+
declare type ProgressCallback = (progress: Progress) => Promise<void>;
|
|
3680
|
+
declare class SecrecyClient extends BaseClient {
|
|
3681
|
+
#private;
|
|
3682
|
+
jwt: string;
|
|
3683
|
+
constructor(uaSession: string, uaKeys: KeyPair, uaJwt: string, env: SecrecyEnv);
|
|
3684
|
+
get publicKey(): string;
|
|
3685
|
+
addFileToHistory({ fileId, vFileId }: {
|
|
3686
|
+
fileId: string;
|
|
3687
|
+
vFileId: string;
|
|
3688
|
+
}): Promise<SuccessResponse<VFile> | ErrorAccessDenied | ErrorNotExist | null>;
|
|
3689
|
+
uploadFile({ file, encryptProgress, uploadProgress, signal }: {
|
|
3690
|
+
file: globalThis.File | Uint8Array;
|
|
3691
|
+
encryptProgress?: ProgressCallback;
|
|
3692
|
+
uploadProgress?: ProgressCallback;
|
|
3693
|
+
signal?: AbortSignal;
|
|
3694
|
+
}): Promise<SuccessResponse<string> | ErrorAccessDenied | ErrorLimit | ErrorNotFound | null>;
|
|
3695
|
+
uploadFileInCloud({ file, name, folderId, encryptProgress, uploadProgress, signal }: {
|
|
3696
|
+
file: globalThis.File | Uint8Array;
|
|
3697
|
+
name: string;
|
|
3698
|
+
folderId?: string;
|
|
3699
|
+
encryptProgress?: ProgressCallback;
|
|
3700
|
+
uploadProgress?: ProgressCallback;
|
|
3701
|
+
signal?: AbortSignal;
|
|
3702
|
+
}): Promise<SuccessResponse<VFileWithFolder<File>> | ErrorAccessDenied | ErrorLimit | ErrorNotFound | ErrorBasic | ErrorNotExist | null>;
|
|
3703
|
+
logout(sessionId?: string | null | undefined): Promise<void>;
|
|
3704
|
+
createFolder({ name, parentFolderId }: {
|
|
3705
|
+
name: string;
|
|
3706
|
+
parentFolderId?: string | null;
|
|
3707
|
+
}): Promise<SuccessResponse<FolderFull> | ErrorAccessDenied | ErrorNotExist | null>;
|
|
3708
|
+
folder({ id, deleted }?: {
|
|
3709
|
+
id?: string | null | undefined;
|
|
3710
|
+
deleted?: boolean | null | undefined;
|
|
3711
|
+
}): Promise<SuccessResponse<FolderFull> | ErrorAccessDenied | null>;
|
|
3712
|
+
file({ id }: {
|
|
3713
|
+
id: string;
|
|
3714
|
+
}): Promise<SuccessResponse<File> | ErrorAccessDenied | null>;
|
|
3715
|
+
vFile({ id }: {
|
|
3716
|
+
id: string;
|
|
3717
|
+
}): Promise<SuccessResponse<VFileWithFolder> | ErrorAccessDenied | null>;
|
|
3718
|
+
mail({ id }: {
|
|
3719
|
+
id: string;
|
|
3720
|
+
}): Promise<SuccessResponse<Mail> | ErrorAccessDenied | null>;
|
|
3721
|
+
shareVFile({ vFileId, userId, rights }: {
|
|
3722
|
+
vFileId: string;
|
|
3723
|
+
userId: string;
|
|
3724
|
+
rights: Rights;
|
|
3725
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorNotExist | ErrorNotFound | null>;
|
|
3726
|
+
sharedVFiles(): Promise<SuccessResponse<VFileWithFolder[]> | ErrorAccessDenied | null>;
|
|
3727
|
+
vFilesSharedWithMe(): Promise<SuccessResponse<VFileWithFolder[]> | ErrorAccessDenied | null>;
|
|
3728
|
+
deletedVFiles(): Promise<SuccessResponse<VFile[]> | ErrorAccessDenied | null>;
|
|
3729
|
+
sharedFolders(): Promise<SuccessResponse<Folder[]> | ErrorAccessDenied | null>;
|
|
3730
|
+
foldersSharedWithMe(): Promise<SuccessResponse<Folder[]> | ErrorAccessDenied | null>;
|
|
3731
|
+
deletedFolders(): Promise<SuccessResponse<Folder[]> | ErrorAccessDenied | null>;
|
|
3732
|
+
deletedMails({ mailType }: {
|
|
3733
|
+
mailType: MailType$1;
|
|
3734
|
+
}): Promise<SuccessResponse<Mail[]> | ErrorAccessDenied | null>;
|
|
3735
|
+
shareFolder({ folderId, userId, rights }: {
|
|
3736
|
+
folderId: string;
|
|
3737
|
+
userId: string;
|
|
3738
|
+
rights: Rights;
|
|
3739
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorNotFound | null>;
|
|
3740
|
+
updateFolder({ folderId, name, isFavorite, deletedAt }: {
|
|
3741
|
+
folderId: string;
|
|
3742
|
+
name?: string | null | undefined;
|
|
3743
|
+
isFavorite?: boolean | null | undefined;
|
|
3744
|
+
deletedAt?: Date | null | undefined;
|
|
3745
|
+
}): Promise<SuccessResponse<FolderFull> | ErrorAccessDenied | ErrorNotExist | null>;
|
|
3746
|
+
updateAppNotifications(notifications: Partial<UserAppNotifications>): Promise<SuccessResponse<UserAppNotifications> | ErrorAccessDenied | null>;
|
|
3747
|
+
appNotifications(): Promise<SuccessResponse<UserAppNotifications> | ErrorAccessDenied | ErrorNotFound | null>;
|
|
3748
|
+
createMail(data: NewMail, customMessage?: string | null | undefined): Promise<SuccessResponse<boolean> | ErrorBasic | ErrorAccessDenied | null>;
|
|
3749
|
+
waitingReceivedMails(): Promise<SuccessResponse<WaitingReceivedMail[]> | ErrorNotFound | null>;
|
|
3750
|
+
updateDraftMail(draftId: string, { body, subject, files, recipientsIds, replyTo }: Partial<NewMail>): Promise<SuccessResponse<DraftMail> | ErrorNotFound | ErrorAccessDenied | ErrorBasic | null>;
|
|
3751
|
+
deleteDraftMail(draftId: string): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3752
|
+
deleteVFileSharing({ vFileId, userId }: {
|
|
3753
|
+
vFileId: string;
|
|
3754
|
+
userId: string;
|
|
3755
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorNotExist | null>;
|
|
3756
|
+
deleteFolderSharing({ folderId, userId }: {
|
|
3757
|
+
folderId: string;
|
|
3758
|
+
userId: string;
|
|
3759
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3760
|
+
duplicateVFile({ vFileId, folderId, customName }: {
|
|
3761
|
+
vFileId: string;
|
|
3762
|
+
folderId?: string | null | undefined;
|
|
3763
|
+
customName?: string | null | undefined;
|
|
3764
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorNotFound | null>;
|
|
3765
|
+
deleteFolderCloudTrash({ ids }: {
|
|
3766
|
+
ids: Array<string>;
|
|
3767
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3768
|
+
deleteVFileCloudTrash({ ids }: {
|
|
3769
|
+
ids: Array<string>;
|
|
3770
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3771
|
+
deleteMailTrash({ ids }: {
|
|
3772
|
+
ids: Array<string>;
|
|
3773
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3774
|
+
emptyMailTrash(): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3775
|
+
emptyCloudTrash(): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3776
|
+
recoverVFile({ vFileId }: {
|
|
3777
|
+
vFileId: string;
|
|
3778
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorNotExist | null>;
|
|
3779
|
+
recoverFolder({ id }: {
|
|
3780
|
+
id: string;
|
|
3781
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorNotExist | null>;
|
|
3782
|
+
recoverMail({ mailId }: {
|
|
3783
|
+
mailId: string;
|
|
3784
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorBasic | null>;
|
|
3785
|
+
deleteFile({ fileId, vFileId }: {
|
|
3786
|
+
fileId: string;
|
|
3787
|
+
vFileId: string;
|
|
3788
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorNotExist | null>;
|
|
3789
|
+
deleteVFile({ fileId }: {
|
|
3790
|
+
fileId: string;
|
|
3791
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorNotExist | null>;
|
|
3792
|
+
deleteMail({ mailId }: {
|
|
3793
|
+
mailId: string;
|
|
3794
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | null>;
|
|
3795
|
+
saveInCloud({ fileId, name, folderId }: {
|
|
3796
|
+
fileId: string;
|
|
3797
|
+
name: string;
|
|
3798
|
+
folderId?: string;
|
|
3799
|
+
}): Promise<SuccessResponse<VFileWithFolder> | ErrorAccessDenied | ErrorBasic | ErrorNotExist | null>;
|
|
3800
|
+
sendDraftMail(draftId: string, customMessage?: string | null | undefined): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorBasic | null>;
|
|
3801
|
+
sendWaitingEmails(): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorBasic | null>;
|
|
3802
|
+
createDraftMail({ body, subject, files, recipientsIds, replyTo }: NewMail): Promise<SuccessResponse<DraftMail> | ErrorAccessDenied | ErrorBasic | null>;
|
|
3803
|
+
fileContent({ fileId, onDownloadProgress, progressDecrypt, signal }: {
|
|
3804
|
+
fileId: string;
|
|
3805
|
+
onDownloadProgress?: (progress: DownloadProgress$1) => void;
|
|
3806
|
+
progressDecrypt?: ProgressCallback;
|
|
3807
|
+
signal?: AbortSignal;
|
|
3808
|
+
}): Promise<SuccessResponse<Uint8Array> | ErrorAccessDenied | ErrorBasic | null>;
|
|
3809
|
+
updateFile({ fileId, filename, isFavorite, deletedAt }: {
|
|
3810
|
+
fileId: string;
|
|
3811
|
+
filename?: string | null | undefined;
|
|
3812
|
+
isFavorite?: boolean | null | undefined;
|
|
3813
|
+
deletedAt?: Date | null | undefined;
|
|
3814
|
+
}): Promise<SuccessResponse<VFile> | ErrorAccessDenied | ErrorBasic | ErrorNotExist | null>;
|
|
3815
|
+
readMail({ mailId }: {
|
|
3816
|
+
mailId: string;
|
|
3817
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorBasic | ErrorNotFound | null>;
|
|
3818
|
+
unreadMail({ mailId }: {
|
|
3819
|
+
mailId: string;
|
|
3820
|
+
}): Promise<SuccessResponse<boolean> | ErrorAccessDenied | ErrorBasic | ErrorNotFound | null>;
|
|
3821
|
+
appSettings(): Promise<SuccessResponse<UserAppSettings> | ErrorNotFound | null>;
|
|
3822
|
+
updateAppSettings(settings: Partial<UserAppSettings>): Promise<SuccessResponse<UserAppSettings> | ErrorAccessDenied | ErrorBasic | null>;
|
|
3823
|
+
receivedMails(): Promise<SuccessResponse<ReceivedMail[]> | ErrorNotFound | null>;
|
|
3824
|
+
sentMails(): Promise<SuccessResponse<SentMail[]> | ErrorNotFound | null>;
|
|
3825
|
+
draftMails(): Promise<SuccessResponse<DraftMail[]> | ErrorNotFound | null>;
|
|
3826
|
+
private perFolder;
|
|
3827
|
+
private perVFile;
|
|
3828
|
+
unreadReceivedMailsCount(): Promise<SuccessResponse<number> | ErrorAccessDenied | null>;
|
|
3829
|
+
private _eachUser;
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
declare type UserAdminPanel = User<{
|
|
3833
|
+
withPublicKey: false;
|
|
3834
|
+
}>;
|
|
3835
|
+
declare class AdminSecrecyClient extends BaseClient {
|
|
3836
|
+
userList(search?: string | null | undefined): Promise<SuccessResponse<UserAdminPanel[]> | ErrorAccessDenied | null>;
|
|
3837
|
+
changeUserPlan(userId: string, plan: PlanKind): Promise<SuccessResponse<UserAdminPanel> | ErrorAccessDenied | null>;
|
|
3838
|
+
}
|
|
3839
|
+
declare function getSecrecyAdminClient(env: SecrecyEnv, session?: boolean | undefined): AdminSecrecyClient | null;
|
|
3840
|
+
|
|
3841
|
+
declare function setup(): Promise<void>;
|
|
3842
|
+
|
|
3843
|
+
declare type IsEmptyObject<O> = O extends {
|
|
3844
|
+
[key: string]: never;
|
|
3845
|
+
} ? Record<string, unknown> : O;
|
|
3846
|
+
interface StoreBuddyInit<T> {
|
|
3847
|
+
init(data: IsEmptyObject<T>): StoreBuddy<T>;
|
|
3848
|
+
}
|
|
3849
|
+
interface StoreBuddy<T> {
|
|
3850
|
+
load(): IsEmptyObject<T>;
|
|
3851
|
+
save(data: IsEmptyObject<T>): void;
|
|
3852
|
+
reset(): void;
|
|
3853
|
+
clear(): void;
|
|
3854
|
+
}
|
|
3855
|
+
declare function storeBuddy<T>(key: string, session?: boolean): StoreBuddyInit<T>;
|
|
3856
|
+
|
|
3857
|
+
export { AdminSecrecyClient, AppSession, BaseClient, BaseMail, BlogItem, CloudLimits, DownloadProgress, DraftMail, ErrorAccessDenied, ErrorBase, ErrorBasic, ErrorLangNotExist, ErrorLimit, ErrorNotExist, ErrorNotFound, ErrorType, ErrorUpgradePlan, FaqItem, File, FileContentType, Folder, FolderBreadcrumbItem, FolderFull, FolderSize, HashInfos, KeyPair, Lang, Limits, Mail, MailFile, MailIntegrity, MailLimits, MailLimitsValues, MailRecipientInput, MailType$1 as MailType, NewMail, PayInput, PayInputType, PaymentInfos, Plan, PlanKind, Progress, ProgressCallback, PublicUser, QueryLimits, ReceivedMail, RecurlyInvoices, Rights, SecrecyClient, SecrecyEnv, SecrecyError, SecrecyPlansCodes, SecrecyUserApp, SendReport, SentMail, Session, StoreBuddy, Subscription, SubscriptionCollectionMethod, SubscriptionState, SuccessResponse, UseSecrecyParams, User, UserAdminPanel, UserAppNotifications, UserAppSettings, UserData, UserRole, UserSession, VFile, VFileWithFolder, Value, WaitingReceivedMail, decryptAnonymous, decryptCryptoBox, decryptSecretBox, encryptAnonymous, encryptCryptoBox, encryptSecretBox, generateCryptoBoxKeyPair, generateSecretBoxKey, getSecrecyAdminClient, getSecrecyClient, isFolder, isVFile, isValidPlan, login, parseInfos, setup, storeBuddy };
|