@secrecy/lib 1.0.0-dev.24 → 1.0.0-dev.27
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/__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 +729 -915
- 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 +30 -39
- package/release.config.cjs +15 -0
- package/tsup.config.ts +26 -0
- package/lib/BaseClient.d.ts +0 -274
- package/lib/BaseClient.js +0 -2227
- 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 -114
- package/lib/client/index.d.ts +0 -172
- package/lib/client/index.js +0 -6171
- 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"];
|
|
@@ -1687,838 +1691,7 @@ export declare type ValueTypes = {
|
|
|
1687
1691
|
__typename?: boolean;
|
|
1688
1692
|
}>;
|
|
1689
1693
|
};
|
|
1690
|
-
|
|
1691
|
-
["BigInt"]: any;
|
|
1692
|
-
["Bytes"]: any;
|
|
1693
|
-
["DateTime"]: any;
|
|
1694
|
-
["Decimal"]: any;
|
|
1695
|
-
["Json"]: any;
|
|
1696
|
-
["Lang"]: GraphQLTypes["Lang"];
|
|
1697
|
-
["PlanKind"]: GraphQLTypes["PlanKind"];
|
|
1698
|
-
["UserRole"]: GraphQLTypes["UserRole"];
|
|
1699
|
-
["MailType"]: GraphQLTypes["MailType"];
|
|
1700
|
-
["Rights"]: GraphQLTypes["Rights"];
|
|
1701
|
-
["AppNotificationsResult"]: ModelTypes["UserAppNotifications"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1702
|
-
["BlogResult"]: ModelTypes["BlogResponse"] | ModelTypes["ErrorLangNotExist"];
|
|
1703
|
-
["DbConfigResult"]: ModelTypes["DbConfigResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorNotFound"];
|
|
1704
|
-
["DbGetResult"]: ModelTypes["DbGetResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorNotExist"];
|
|
1705
|
-
["DbSearchResult"]: ModelTypes["DbSearchResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorBasic"];
|
|
1706
|
-
["DeletedFoldersResult"]: ModelTypes["DeletedFoldersResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1707
|
-
["DeletedMailsResult"]: ModelTypes["DeletedMailsResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1708
|
-
["DeletedVFilesResult"]: ModelTypes["DeletedVFilesResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1709
|
-
["FaqResult"]: ModelTypes["FaqResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1710
|
-
["FileResult"]: ModelTypes["FileQueryResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1711
|
-
["FileContentResult"]: ModelTypes["FileContentResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1712
|
-
["FolderResult"]: ModelTypes["FolderResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1713
|
-
["FolderSizeResult"]: ModelTypes["FolderSizeResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1714
|
-
["FoldersSharedWithMeResult"]: ModelTypes["FolderSharedWithMeResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1715
|
-
["LimitsResult"]: ModelTypes["QueryLimits"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorLimit"];
|
|
1716
|
-
["MailResult"]: ModelTypes["QueryMailResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1717
|
-
["PaymentInfosResult"]: ModelTypes["PaymentInfosResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1718
|
-
["PlansResult"]: ModelTypes["PlanResponse"];
|
|
1719
|
-
["SharedFoldersResult"]: ModelTypes["SharedFoldersResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1720
|
-
["SharedVFilesResult"]: ModelTypes["SharedVFilesResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1721
|
-
["UnreadReceivedMailsCountResult"]: ModelTypes["UnreadReceivedMailsCountResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1722
|
-
["UserResult"]: ModelTypes["UserResponse"] | ModelTypes["ErrorNotFound"];
|
|
1723
|
-
["VFileResult"]: ModelTypes["VFileResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1724
|
-
["VFilesSharedWithMeResult"]: ModelTypes["VFilesSharedWithMeResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1725
|
-
["UserListResult"]: ModelTypes["UserListResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1726
|
-
["AddFileToHistoryResult"]: ModelTypes["AddFileToHistoryResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1727
|
-
["CancelPaymentResult"]: ModelTypes["CancelPaymentResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1728
|
-
["CreateApplicationResult"]: ModelTypes["CreateApplicationResponse"] | ModelTypes["ErrorNotExist"];
|
|
1729
|
-
["CreateDraftMailResult"]: ModelTypes["CreateDraftMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1730
|
-
["CreateFolderResult"]: ModelTypes["CreateFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1731
|
-
["DbConfigMutationResult"]: ModelTypes["DbConfigMutationResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1732
|
-
["DbSetResult"]: ModelTypes["DbSetResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1733
|
-
["DeleteDraftMailResult"]: ModelTypes["DeleteDraftMailResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1734
|
-
["DeleteFileResult"]: ModelTypes["DeleteFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1735
|
-
["DeleteFolderResult"]: ModelTypes["DeleteFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1736
|
-
["DeleteFolderCloudTrashResult"]: ModelTypes["DeleteFolderCloudTrashResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1737
|
-
["DeleteFolderSharingResult"]: ModelTypes["DeleteFolderSharingResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1738
|
-
["DeleteMailResult"]: ModelTypes["DeleteMailResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1739
|
-
["DeleteMailTrashResult"]: ModelTypes["DeleteMailTrashResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1740
|
-
["DeleteUserResult"]: ModelTypes["DeleteUserResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1741
|
-
["DeleteVFileResult"]: ModelTypes["DeleteVFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1742
|
-
["DeleteVFileCloudTrashResult"]: ModelTypes["DeleteVFileCloudTrashResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1743
|
-
["DeleteVFileSharingResult"]: ModelTypes["DeleteVFileSharingResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1744
|
-
["DuplicateVFileResult"]: ModelTypes["DuplicateVFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1745
|
-
["EmptyCloudTrashResult"]: ModelTypes["DeleteMailResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1746
|
-
["EmptyMailTrashResult"]: ModelTypes["EmptyMailTrashResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1747
|
-
["LogoutResult"]: ModelTypes["LogoutResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1748
|
-
["MoveFilesResult"]: ModelTypes["MoveFilesResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1749
|
-
["MoveFoldersResult"]: ModelTypes["MoveFoldersResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1750
|
-
["PayResult"]: ModelTypes["PayResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1751
|
-
["ReadMailResult"]: ModelTypes["ReadMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"] | ModelTypes["ErrorNotFound"];
|
|
1752
|
-
["RecoverFolderResult"]: ModelTypes["RecoverFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1753
|
-
["RecoverMailResult"]: ModelTypes["RecoverMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1754
|
-
["RecoverVFileResult"]: ModelTypes["RecoverVFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1755
|
-
["SaveInCloudResult"]: ModelTypes["SaveInCloudResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorBasic"];
|
|
1756
|
-
["SendDraftMailResult"]: ModelTypes["SendDraftMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1757
|
-
["SendOneMailResult"]: ModelTypes["RecoverFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1758
|
-
["SendReportResult"]: ModelTypes["SendReportResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1759
|
-
["ShareFileInHistoryResult"]: ModelTypes["ShareFileInHistoryResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1760
|
-
["ShareFolderResult"]: ModelTypes["ShareFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1761
|
-
["ShareFolderFinishResult"]: ModelTypes["ShareFolderFinishResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1762
|
-
["ShareVFileResult"]: ModelTypes["ShareVFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorNotFound"];
|
|
1763
|
-
["UnreadMailResult"]: ModelTypes["UnreadMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorBasic"];
|
|
1764
|
-
["UpdateAppNotificationsResult"]: ModelTypes["UpdateAppNotificationsResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1765
|
-
["UpdateAppSettingsResult"]: ModelTypes["UpdateAppSettingsResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1766
|
-
["UpdateDraftMailResult"]: ModelTypes["UpdateDraftMailResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"];
|
|
1767
|
-
["UpdateFileResult"]: ModelTypes["UpdateFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorBasic"];
|
|
1768
|
-
["UpdateFolderResult"]: ModelTypes["UpdateFolderResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotExist"];
|
|
1769
|
-
["UpdateProfileResult"]: ModelTypes["UpdateProfileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1770
|
-
["UploadFileResult"]: ModelTypes["UploadFileResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorLimit"];
|
|
1771
|
-
["UploadFileEndResult"]: ModelTypes["UploadFileEndResponse"] | ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"];
|
|
1772
|
-
["UploadFilePartEndResult"]: ModelTypes["UploadFilePartEndResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1773
|
-
["ChangeUserPlanResult"]: ModelTypes["ChangeUserPlanResponse"] | ModelTypes["ErrorAccessDenied"];
|
|
1774
|
-
["AppKeyPair"]: {
|
|
1775
|
-
pub: string;
|
|
1776
|
-
};
|
|
1777
|
-
["AppSession"]: {
|
|
1778
|
-
id: string;
|
|
1779
|
-
lastActivity?: ModelTypes["DateTime"];
|
|
1780
|
-
userAgent?: string;
|
|
1781
|
-
ip?: string;
|
|
1782
|
-
city?: string;
|
|
1783
|
-
country?: string;
|
|
1784
|
-
userSession: ModelTypes["UserSession"];
|
|
1785
|
-
userApp?: ModelTypes["ApplicationsOnUsers"];
|
|
1786
|
-
createdAt: ModelTypes["DateTime"];
|
|
1787
|
-
};
|
|
1788
|
-
["Application"]: {
|
|
1789
|
-
id: string;
|
|
1790
|
-
name: string;
|
|
1791
|
-
};
|
|
1792
|
-
["ApplicationsOnUsers"]: {
|
|
1793
|
-
fakeUserId: string;
|
|
1794
|
-
keyPair?: ModelTypes["AppKeyPair"];
|
|
1795
|
-
sessions: ModelTypes["AppSession"][];
|
|
1796
|
-
app: ModelTypes["Application"];
|
|
1797
|
-
user: ModelTypes["User"];
|
|
1798
|
-
folders: ModelTypes["FoldersOnUsersOnApplications"][];
|
|
1799
|
-
settings: ModelTypes["UserAppSettings"];
|
|
1800
|
-
};
|
|
1801
|
-
["Blog"]: {
|
|
1802
|
-
id: string;
|
|
1803
|
-
order: number;
|
|
1804
|
-
entries: ModelTypes["BlogEntry"][];
|
|
1805
|
-
};
|
|
1806
|
-
["BlogEntry"]: {
|
|
1807
|
-
id: string;
|
|
1808
|
-
lang: ModelTypes["Lang"];
|
|
1809
|
-
author: string;
|
|
1810
|
-
body: string;
|
|
1811
|
-
date: ModelTypes["DateTime"];
|
|
1812
|
-
image: string;
|
|
1813
|
-
summary: string;
|
|
1814
|
-
title: string;
|
|
1815
|
-
};
|
|
1816
|
-
["BlogItem"]: {
|
|
1817
|
-
id: string;
|
|
1818
|
-
blogId: string;
|
|
1819
|
-
order: number;
|
|
1820
|
-
title: string;
|
|
1821
|
-
body: string;
|
|
1822
|
-
author: string;
|
|
1823
|
-
image: string;
|
|
1824
|
-
imageAlt: string;
|
|
1825
|
-
summary: string;
|
|
1826
|
-
date: ModelTypes["DateTime"];
|
|
1827
|
-
};
|
|
1828
|
-
["CloudLimits"]: {
|
|
1829
|
-
size: ModelTypes["BigInt"];
|
|
1830
|
-
maxSize?: ModelTypes["BigInt"];
|
|
1831
|
-
count: ModelTypes["BigInt"];
|
|
1832
|
-
maxCount?: ModelTypes["BigInt"];
|
|
1833
|
-
};
|
|
1834
|
-
["Error"]: ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorUpgradePlan"] | ModelTypes["ErrorLangNotExist"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorLimit"] | ModelTypes["ErrorBasic"];
|
|
1835
|
-
["ErrorAccessDenied"]: {
|
|
1836
|
-
message: string;
|
|
1837
|
-
};
|
|
1838
|
-
["ErrorBase"]: ModelTypes["ErrorAccessDenied"] | ModelTypes["ErrorBasic"] | ModelTypes["ErrorLangNotExist"] | ModelTypes["ErrorLimit"] | ModelTypes["ErrorNotExist"] | ModelTypes["ErrorNotFound"] | ModelTypes["ErrorUpgradePlan"];
|
|
1839
|
-
["ErrorBasic"]: {
|
|
1840
|
-
message: string;
|
|
1841
|
-
};
|
|
1842
|
-
["ErrorLangNotExist"]: {
|
|
1843
|
-
message: string;
|
|
1844
|
-
};
|
|
1845
|
-
["ErrorLimit"]: {
|
|
1846
|
-
message: string;
|
|
1847
|
-
field?: string;
|
|
1848
|
-
};
|
|
1849
|
-
["ErrorNotExist"]: {
|
|
1850
|
-
message: string;
|
|
1851
|
-
field?: string;
|
|
1852
|
-
};
|
|
1853
|
-
["ErrorNotFound"]: {
|
|
1854
|
-
message: string;
|
|
1855
|
-
field?: string;
|
|
1856
|
-
};
|
|
1857
|
-
["ErrorUpgradePlan"]: {
|
|
1858
|
-
message: string;
|
|
1859
|
-
};
|
|
1860
|
-
["Faq"]: {
|
|
1861
|
-
id: string;
|
|
1862
|
-
order: number;
|
|
1863
|
-
entries: ModelTypes["FaqEntry"][];
|
|
1864
|
-
};
|
|
1865
|
-
["FaqEntry"]: {
|
|
1866
|
-
id: string;
|
|
1867
|
-
lang: ModelTypes["Lang"];
|
|
1868
|
-
question: string;
|
|
1869
|
-
answer: string;
|
|
1870
|
-
faq: ModelTypes["Faq"];
|
|
1871
|
-
};
|
|
1872
|
-
["FaqItem"]: {
|
|
1873
|
-
order: number;
|
|
1874
|
-
question: string;
|
|
1875
|
-
answer: string;
|
|
1876
|
-
};
|
|
1877
|
-
["File"]: {
|
|
1878
|
-
id: string;
|
|
1879
|
-
size: ModelTypes["BigInt"];
|
|
1880
|
-
sizeBefore: ModelTypes["BigInt"];
|
|
1881
|
-
createdAt: ModelTypes["DateTime"];
|
|
1882
|
-
vFiles: ModelTypes["VFile"][];
|
|
1883
|
-
vFilesCurrent: ModelTypes["VFile"][];
|
|
1884
|
-
users: ModelTypes["FilesOnUsersOnApplications"][];
|
|
1885
|
-
md5: string;
|
|
1886
|
-
md5Encrypted: string;
|
|
1887
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
1888
|
-
userApp: ModelTypes["ApplicationsOnUsers"];
|
|
1889
|
-
mails: ModelTypes["FilesOnMails"][];
|
|
1890
|
-
validatedAt?: ModelTypes["DateTime"];
|
|
1891
|
-
user?: ModelTypes["FilesOnUsersOnApplications"];
|
|
1892
|
-
};
|
|
1893
|
-
["FileContent"]: ModelTypes["FileContentCloud"] | ModelTypes["FileContentReceivedMail"] | ModelTypes["FileContentSentMail"];
|
|
1894
|
-
["FileContentBase"]: ModelTypes["FileContentCloud"] | ModelTypes["FileContentReceivedMail"] | ModelTypes["FileContentSentMail"];
|
|
1895
|
-
["FileContentCloud"]: {
|
|
1896
|
-
parts: ModelTypes["FileContentPart"][];
|
|
1897
|
-
key: string;
|
|
1898
|
-
md5: string;
|
|
1899
|
-
md5Encrypted: string;
|
|
1900
|
-
totalSize: ModelTypes["BigInt"];
|
|
1901
|
-
type: ModelTypes["FileContentType"];
|
|
1902
|
-
publicKey: string;
|
|
1903
|
-
};
|
|
1904
|
-
["FileContentPart"]: {
|
|
1905
|
-
contentUrl: string;
|
|
1906
|
-
order: number;
|
|
1907
|
-
md5: string;
|
|
1908
|
-
};
|
|
1909
|
-
["FileContentReceivedMail"]: {
|
|
1910
|
-
parts: ModelTypes["FileContentPart"][];
|
|
1911
|
-
key: string;
|
|
1912
|
-
md5: string;
|
|
1913
|
-
md5Encrypted: string;
|
|
1914
|
-
totalSize: ModelTypes["BigInt"];
|
|
1915
|
-
type: ModelTypes["FileContentType"];
|
|
1916
|
-
senderPublicKey: string;
|
|
1917
|
-
};
|
|
1918
|
-
["FileContentSentMail"]: {
|
|
1919
|
-
parts: ModelTypes["FileContentPart"][];
|
|
1920
|
-
key: string;
|
|
1921
|
-
md5: string;
|
|
1922
|
-
md5Encrypted: string;
|
|
1923
|
-
totalSize: ModelTypes["BigInt"];
|
|
1924
|
-
type: ModelTypes["FileContentType"];
|
|
1925
|
-
};
|
|
1926
|
-
["FileContentType"]: GraphQLTypes["FileContentType"];
|
|
1927
|
-
["FilePart"]: {
|
|
1928
|
-
id: string;
|
|
1929
|
-
file: ModelTypes["File"];
|
|
1930
|
-
fileId: string;
|
|
1931
|
-
size: ModelTypes["BigInt"];
|
|
1932
|
-
order: number;
|
|
1933
|
-
md5: string;
|
|
1934
|
-
validatedAt?: ModelTypes["DateTime"];
|
|
1935
|
-
};
|
|
1936
|
-
["FilePartResponse"]: {
|
|
1937
|
-
fields: ModelTypes["Json"];
|
|
1938
|
-
url: string;
|
|
1939
|
-
order: number;
|
|
1940
|
-
};
|
|
1941
|
-
["FileResponse"]: {
|
|
1942
|
-
fileId: string;
|
|
1943
|
-
parts: ModelTypes["FilePartResponse"][];
|
|
1944
|
-
filePartSize: ModelTypes["BigInt"];
|
|
1945
|
-
};
|
|
1946
|
-
["FileShared"]: {
|
|
1947
|
-
userId: string;
|
|
1948
|
-
message?: string;
|
|
1949
|
-
appId: string;
|
|
1950
|
-
id: string;
|
|
1951
|
-
filename: string;
|
|
1952
|
-
size: number;
|
|
1953
|
-
sizeBefore: number;
|
|
1954
|
-
};
|
|
1955
|
-
["FileSharedContent"]: {
|
|
1956
|
-
ownerId?: string;
|
|
1957
|
-
pubKey?: string;
|
|
1958
|
-
message?: string;
|
|
1959
|
-
appId: string;
|
|
1960
|
-
id: string;
|
|
1961
|
-
type: string;
|
|
1962
|
-
filename: string;
|
|
1963
|
-
contentUrl: string;
|
|
1964
|
-
key: string;
|
|
1965
|
-
size: number;
|
|
1966
|
-
sizeBefore: number;
|
|
1967
|
-
};
|
|
1968
|
-
["FilesOnMails"]: {
|
|
1969
|
-
file: ModelTypes["File"];
|
|
1970
|
-
fileKey: string;
|
|
1971
|
-
filename: string;
|
|
1972
|
-
mail: ModelTypes["Mail"];
|
|
1973
|
-
};
|
|
1974
|
-
["FilesOnUsersOnApplications"]: {
|
|
1975
|
-
file: ModelTypes["File"];
|
|
1976
|
-
userApp: ModelTypes["ApplicationsOnUsers"];
|
|
1977
|
-
key: string;
|
|
1978
|
-
};
|
|
1979
|
-
["Folder"]: {
|
|
1980
|
-
id: string;
|
|
1981
|
-
isFavorite: boolean;
|
|
1982
|
-
createdAt: ModelTypes["DateTime"];
|
|
1983
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
1984
|
-
updatedAt: ModelTypes["DateTime"];
|
|
1985
|
-
createdBy: ModelTypes["ApplicationsOnUsers"];
|
|
1986
|
-
userApps: ModelTypes["FoldersOnUsersOnApplications"][];
|
|
1987
|
-
userApp?: ModelTypes["FoldersOnUsersOnApplications"];
|
|
1988
|
-
name: string;
|
|
1989
|
-
parentFolder?: ModelTypes["Folder"];
|
|
1990
|
-
subfolders: ModelTypes["Folder"][];
|
|
1991
|
-
vFiles: ModelTypes["VFile"][];
|
|
1992
|
-
breadcrumb: ModelTypes["FolderBreadcrumbItem"][];
|
|
1993
|
-
};
|
|
1994
|
-
["FolderBreadcrumbItem"]: {
|
|
1995
|
-
id: string;
|
|
1996
|
-
name: string;
|
|
1997
|
-
pubKey: string;
|
|
1998
|
-
nameKey?: string;
|
|
1999
|
-
};
|
|
2000
|
-
["FolderSize"]: {
|
|
2001
|
-
size: ModelTypes["BigInt"];
|
|
2002
|
-
sizeBefore: ModelTypes["BigInt"];
|
|
2003
|
-
};
|
|
2004
|
-
["FoldersOnUsersOnApplications"]: {
|
|
2005
|
-
folder: ModelTypes["Folder"];
|
|
2006
|
-
userApp: ModelTypes["ApplicationsOnUsers"];
|
|
2007
|
-
rights: ModelTypes["Rights"];
|
|
2008
|
-
nameKey?: string;
|
|
2009
|
-
isRoot: boolean;
|
|
2010
|
-
};
|
|
2011
|
-
["MailFileInput"]: GraphQLTypes["MailFileInput"];
|
|
2012
|
-
["MailRecipientInput"]: GraphQLTypes["MailRecipientInput"];
|
|
2013
|
-
["NameKeyInput"]: GraphQLTypes["NameKeyInput"];
|
|
2014
|
-
["NameKeyInputFolders"]: GraphQLTypes["NameKeyInputFolders"];
|
|
2015
|
-
["PayInput"]: GraphQLTypes["PayInput"];
|
|
2016
|
-
["PayInputType"]: GraphQLTypes["PayInputType"];
|
|
2017
|
-
["ShareFileInHistoryInput"]: GraphQLTypes["ShareFileInHistoryInput"];
|
|
2018
|
-
["ShareFileKeyInput"]: GraphQLTypes["ShareFileKeyInput"];
|
|
2019
|
-
["ShareFoldersInput"]: GraphQLTypes["ShareFoldersInput"];
|
|
2020
|
-
["Limits"]: {
|
|
2021
|
-
downloadBandwidth?: ModelTypes["BigInt"];
|
|
2022
|
-
downloadCount?: ModelTypes["BigInt"];
|
|
2023
|
-
hardFileCount?: ModelTypes["BigInt"];
|
|
2024
|
-
hardFileSize?: ModelTypes["BigInt"];
|
|
2025
|
-
perFileSize?: ModelTypes["BigInt"];
|
|
2026
|
-
receivedMails: ModelTypes["MailLimits"];
|
|
2027
|
-
sentMails: ModelTypes["MailLimits"];
|
|
2028
|
-
uploadBandwidth?: ModelTypes["BigInt"];
|
|
2029
|
-
uploadCount?: ModelTypes["BigInt"];
|
|
2030
|
-
};
|
|
2031
|
-
["MailLimits"]: {
|
|
2032
|
-
count?: ModelTypes["BigInt"];
|
|
2033
|
-
fileCount?: ModelTypes["BigInt"];
|
|
2034
|
-
fileSize?: ModelTypes["BigInt"];
|
|
2035
|
-
hardCount?: ModelTypes["BigInt"];
|
|
2036
|
-
hardFileCount?: ModelTypes["BigInt"];
|
|
2037
|
-
hardFileSize?: ModelTypes["BigInt"];
|
|
2038
|
-
perFileSize?: ModelTypes["BigInt"];
|
|
2039
|
-
};
|
|
2040
|
-
["MailLimitsValues"]: {
|
|
2041
|
-
count: ModelTypes["BigInt"];
|
|
2042
|
-
maxCount?: ModelTypes["BigInt"];
|
|
2043
|
-
fileCount: ModelTypes["BigInt"];
|
|
2044
|
-
maxFileCount?: ModelTypes["BigInt"];
|
|
2045
|
-
fileSize: ModelTypes["BigInt"];
|
|
2046
|
-
maxFileSize?: ModelTypes["BigInt"];
|
|
2047
|
-
};
|
|
2048
|
-
["QueryLimits"]: {
|
|
2049
|
-
cloud: ModelTypes["CloudLimits"];
|
|
2050
|
-
mail: ModelTypes["UserMailLimits"];
|
|
2051
|
-
};
|
|
2052
|
-
["UserMailLimits"]: {
|
|
2053
|
-
sent: ModelTypes["MailLimitsValues"];
|
|
2054
|
-
received: ModelTypes["MailLimitsValues"];
|
|
2055
|
-
};
|
|
2056
|
-
["Mail"]: {
|
|
2057
|
-
id: string;
|
|
2058
|
-
app: ModelTypes["Application"];
|
|
2059
|
-
body: string;
|
|
2060
|
-
createdAt: ModelTypes["DateTime"];
|
|
2061
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
2062
|
-
files: ModelTypes["FilesOnMails"][];
|
|
2063
|
-
mailIntegrity?: ModelTypes["MailIntegrity"];
|
|
2064
|
-
mailIntegrityDraft?: ModelTypes["MailIntegrityDraft"];
|
|
2065
|
-
openedAt?: ModelTypes["DateTime"];
|
|
2066
|
-
recipient: ModelTypes["User"];
|
|
2067
|
-
sender: ModelTypes["User"];
|
|
2068
|
-
subject: string;
|
|
2069
|
-
type: ModelTypes["MailType"];
|
|
2070
|
-
recipients: ModelTypes["User"][];
|
|
2071
|
-
};
|
|
2072
|
-
["MailIntegrity"]: {
|
|
2073
|
-
id: string;
|
|
2074
|
-
hash: string;
|
|
2075
|
-
hashKey: string;
|
|
2076
|
-
answers: ModelTypes["MailIntegrity"][];
|
|
2077
|
-
app: ModelTypes["Application"];
|
|
2078
|
-
mails: ModelTypes["Mail"][];
|
|
2079
|
-
recipients: ModelTypes["User"][];
|
|
2080
|
-
temporaryRecipients: ModelTypes["TemporaryUser"][];
|
|
2081
|
-
replyTo?: ModelTypes["MailIntegrity"];
|
|
2082
|
-
};
|
|
2083
|
-
["MailIntegrityDraft"]: {
|
|
2084
|
-
id: string;
|
|
2085
|
-
hash: string;
|
|
2086
|
-
hashKey: string;
|
|
2087
|
-
app: ModelTypes["Application"];
|
|
2088
|
-
mail: ModelTypes["Mail"];
|
|
2089
|
-
recipients: ModelTypes["User"][];
|
|
2090
|
-
temporaryRecipients: ModelTypes["TemporaryUser"][];
|
|
2091
|
-
replyTo?: ModelTypes["MailIntegrity"];
|
|
2092
|
-
};
|
|
2093
|
-
["Plan"]: {
|
|
2094
|
-
id: string;
|
|
2095
|
-
kind: ModelTypes["PlanKind"];
|
|
2096
|
-
codes: string[];
|
|
2097
|
-
limits: ModelTypes["Limits"];
|
|
2098
|
-
};
|
|
2099
|
-
["Report"]: {
|
|
2100
|
-
id: string;
|
|
2101
|
-
user: ModelTypes["User"];
|
|
2102
|
-
reportedUser: ModelTypes["User"];
|
|
2103
|
-
customMessage?: string;
|
|
2104
|
-
};
|
|
2105
|
-
["AddFileToHistoryResponse"]: {
|
|
2106
|
-
addFileToHistory: ModelTypes["VFile"];
|
|
2107
|
-
};
|
|
2108
|
-
["CancelPaymentResponse"]: {
|
|
2109
|
-
cancelPayment?: boolean;
|
|
2110
|
-
};
|
|
2111
|
-
["ChangeUserPlanResponse"]: {
|
|
2112
|
-
changeUserPlan?: ModelTypes["User"];
|
|
2113
|
-
};
|
|
2114
|
-
["CreateApplicationResponse"]: {
|
|
2115
|
-
createApplication?: string;
|
|
2116
|
-
};
|
|
2117
|
-
["CreateDraftMailResponse"]: {
|
|
2118
|
-
createDraftMail?: ModelTypes["Mail"];
|
|
2119
|
-
};
|
|
2120
|
-
["CreateFolderResponse"]: {
|
|
2121
|
-
createFolder?: ModelTypes["Folder"];
|
|
2122
|
-
};
|
|
2123
|
-
["DbConfigMutationResponse"]: {
|
|
2124
|
-
dbConfigMutation: ModelTypes["Json"];
|
|
2125
|
-
};
|
|
2126
|
-
["DbSetResponse"]: {
|
|
2127
|
-
dbSet?: ModelTypes["Json"];
|
|
2128
|
-
};
|
|
2129
|
-
["DeleteDraftMailResponse"]: {
|
|
2130
|
-
deleteDraftMail?: boolean;
|
|
2131
|
-
};
|
|
2132
|
-
["DeleteFileResponse"]: {
|
|
2133
|
-
deleteFile: boolean;
|
|
2134
|
-
};
|
|
2135
|
-
["DeleteFolderResponse"]: {
|
|
2136
|
-
deleteFolder?: boolean;
|
|
2137
|
-
};
|
|
2138
|
-
["DeleteFolderCloudTrashResponse"]: {
|
|
2139
|
-
deleteFolderCloudTrash?: boolean;
|
|
2140
|
-
};
|
|
2141
|
-
["DeleteFolderSharingResponse"]: {
|
|
2142
|
-
deleteFolderSharing: boolean;
|
|
2143
|
-
};
|
|
2144
|
-
["DeleteMailResponse"]: {
|
|
2145
|
-
deleteMail: boolean;
|
|
2146
|
-
};
|
|
2147
|
-
["DeleteMailTrashResponse"]: {
|
|
2148
|
-
deleteMailTrash: boolean;
|
|
2149
|
-
};
|
|
2150
|
-
["DeleteUserResponse"]: {
|
|
2151
|
-
deleteUser?: boolean;
|
|
2152
|
-
};
|
|
2153
|
-
["DeleteVFileResponse"]: {
|
|
2154
|
-
deleteVFile: boolean;
|
|
2155
|
-
};
|
|
2156
|
-
["DeleteVFileCloudTrashResponse"]: {
|
|
2157
|
-
deleteVFileCloudTrash?: boolean;
|
|
2158
|
-
};
|
|
2159
|
-
["DeleteVFileSharingResponse"]: {
|
|
2160
|
-
deleteVFileSharing: boolean;
|
|
2161
|
-
};
|
|
2162
|
-
["DuplicateVFileResponse"]: {
|
|
2163
|
-
duplicateVFile: boolean;
|
|
2164
|
-
};
|
|
2165
|
-
["EmptyCloudTrashResponse"]: {
|
|
2166
|
-
emptyCloudTrash?: boolean;
|
|
2167
|
-
};
|
|
2168
|
-
["EmptyMailTrashResponse"]: {
|
|
2169
|
-
emptyMailTrash?: boolean;
|
|
2170
|
-
};
|
|
2171
|
-
["LogoutResponse"]: {
|
|
2172
|
-
logout?: boolean;
|
|
2173
|
-
};
|
|
2174
|
-
["MoveFilesResponse"]: {
|
|
2175
|
-
moveFiles?: boolean;
|
|
2176
|
-
};
|
|
2177
|
-
["MoveFoldersResponse"]: {
|
|
2178
|
-
moveFolders?: boolean;
|
|
2179
|
-
};
|
|
2180
|
-
["PayResponse"]: {
|
|
2181
|
-
pay: boolean;
|
|
2182
|
-
};
|
|
2183
|
-
["ReadMailResponse"]: {
|
|
2184
|
-
readMail?: boolean;
|
|
2185
|
-
};
|
|
2186
|
-
["RecoverFolderResponse"]: {
|
|
2187
|
-
recoverFolder?: boolean;
|
|
2188
|
-
};
|
|
2189
|
-
["RecoverMailResponse"]: {
|
|
2190
|
-
recoverMail: boolean;
|
|
2191
|
-
};
|
|
2192
|
-
["RecoverVFileResponse"]: {
|
|
2193
|
-
recoverVFile: boolean;
|
|
2194
|
-
};
|
|
2195
|
-
["SaveInCloudResponse"]: {
|
|
2196
|
-
saveInCloud?: ModelTypes["VFile"];
|
|
2197
|
-
};
|
|
2198
|
-
["SendDraftMailResponse"]: {
|
|
2199
|
-
sendDraftMail?: boolean;
|
|
2200
|
-
};
|
|
2201
|
-
["SendOneMailResponse"]: {
|
|
2202
|
-
sendOneMail?: boolean;
|
|
2203
|
-
};
|
|
2204
|
-
["SendReportResponse"]: {
|
|
2205
|
-
sendReport?: ModelTypes["Report"];
|
|
2206
|
-
};
|
|
2207
|
-
["ShareFileInHistoryResponse"]: {
|
|
2208
|
-
shareFileInHistory: boolean;
|
|
2209
|
-
};
|
|
2210
|
-
["ShareFolderFinishResponse"]: {
|
|
2211
|
-
shareFolderFinish?: boolean;
|
|
2212
|
-
};
|
|
2213
|
-
["ShareVFileResponse"]: {
|
|
2214
|
-
shareVFile?: boolean;
|
|
2215
|
-
};
|
|
2216
|
-
["UnreadMailResponse"]: {
|
|
2217
|
-
unreadMail?: boolean;
|
|
2218
|
-
};
|
|
2219
|
-
["UpdateAppNotificationsResponse"]: {
|
|
2220
|
-
updateAppNotifications?: ModelTypes["UserAppNotifications"];
|
|
2221
|
-
};
|
|
2222
|
-
["UpdateAppSettingsResponse"]: {
|
|
2223
|
-
updateAppSettings: ModelTypes["UserAppSettings"];
|
|
2224
|
-
};
|
|
2225
|
-
["UpdateDraftMailResponse"]: {
|
|
2226
|
-
updateDraftMail?: ModelTypes["Mail"];
|
|
2227
|
-
};
|
|
2228
|
-
["UpdateFileResponse"]: {
|
|
2229
|
-
updateFile?: ModelTypes["VFile"];
|
|
2230
|
-
};
|
|
2231
|
-
["UpdateFolderResponse"]: {
|
|
2232
|
-
updateFolder?: ModelTypes["Folder"];
|
|
2233
|
-
};
|
|
2234
|
-
["UpdateProfileResponse"]: {
|
|
2235
|
-
updateProfile?: ModelTypes["User"];
|
|
2236
|
-
};
|
|
2237
|
-
["UploadAnonymousResponse"]: {
|
|
2238
|
-
uploadAnonymous?: ModelTypes["FileResponse"];
|
|
2239
|
-
};
|
|
2240
|
-
["UploadFileResponse"]: {
|
|
2241
|
-
uploadFile?: ModelTypes["FileResponse"];
|
|
2242
|
-
};
|
|
2243
|
-
["UploadFileEndResponse"]: {
|
|
2244
|
-
uploadFileEnd?: string;
|
|
2245
|
-
};
|
|
2246
|
-
["UploadFilePartEndResponse"]: {
|
|
2247
|
-
uploadFilePartEnd: boolean;
|
|
2248
|
-
};
|
|
2249
|
-
["BlogResponse"]: {
|
|
2250
|
-
blogItems: ModelTypes["BlogItem"][];
|
|
2251
|
-
};
|
|
2252
|
-
["DbConfigResponse"]: {
|
|
2253
|
-
json: ModelTypes["Json"];
|
|
2254
|
-
};
|
|
2255
|
-
["DbGetResponse"]: {
|
|
2256
|
-
json?: ModelTypes["Json"];
|
|
2257
|
-
};
|
|
2258
|
-
["DbSearchResponse"]: {
|
|
2259
|
-
json?: ModelTypes["Json"];
|
|
2260
|
-
};
|
|
2261
|
-
["DeletedFoldersResponse"]: {
|
|
2262
|
-
deletedFolders: ModelTypes["Folder"][];
|
|
2263
|
-
};
|
|
2264
|
-
["DeletedMailsResponse"]: {
|
|
2265
|
-
deletedMails: ModelTypes["Mail"][];
|
|
2266
|
-
};
|
|
2267
|
-
["DeletedVFilesResponse"]: {
|
|
2268
|
-
deletedVFiles: ModelTypes["VFile"][];
|
|
2269
|
-
};
|
|
2270
|
-
["FaqResponse"]: {
|
|
2271
|
-
faq: ModelTypes["FaqItem"][];
|
|
2272
|
-
};
|
|
2273
|
-
["FileQueryResponse"]: {
|
|
2274
|
-
file?: ModelTypes["File"];
|
|
2275
|
-
};
|
|
2276
|
-
["FileContentResponse"]: {
|
|
2277
|
-
file?: ModelTypes["FileContent"];
|
|
2278
|
-
};
|
|
2279
|
-
["FolderResponse"]: {
|
|
2280
|
-
folder?: ModelTypes["Folder"];
|
|
2281
|
-
};
|
|
2282
|
-
["FolderSharedWithMeResponse"]: {
|
|
2283
|
-
foldersSharedWithMe: ModelTypes["Folder"][];
|
|
2284
|
-
};
|
|
2285
|
-
["FolderSizeResponse"]: {
|
|
2286
|
-
size: ModelTypes["BigInt"];
|
|
2287
|
-
sizeBefore: ModelTypes["BigInt"];
|
|
2288
|
-
};
|
|
2289
|
-
["QueryMailResponse"]: {
|
|
2290
|
-
mail?: ModelTypes["Mail"];
|
|
2291
|
-
};
|
|
2292
|
-
["PaymentInfosResponse"]: {
|
|
2293
|
-
paymentInfos?: ModelTypes["PaymentInfos"];
|
|
2294
|
-
};
|
|
2295
|
-
["PlanResponse"]: {
|
|
2296
|
-
plan: ModelTypes["Plan"][];
|
|
2297
|
-
};
|
|
2298
|
-
["SharedFoldersResponse"]: {
|
|
2299
|
-
sharedFolders: ModelTypes["Folder"][];
|
|
2300
|
-
};
|
|
2301
|
-
["SharedVFilesResponse"]: {
|
|
2302
|
-
sharedVFiles: ModelTypes["VFile"][];
|
|
2303
|
-
};
|
|
2304
|
-
["UnreadReceivedMailsCountResponse"]: {
|
|
2305
|
-
count: number;
|
|
2306
|
-
};
|
|
2307
|
-
["UserResponse"]: {
|
|
2308
|
-
user?: ModelTypes["User"];
|
|
2309
|
-
};
|
|
2310
|
-
["UserListResponse"]: {
|
|
2311
|
-
userList: ModelTypes["User"][];
|
|
2312
|
-
};
|
|
2313
|
-
["VFileResponse"]: {
|
|
2314
|
-
vFile?: ModelTypes["VFile"];
|
|
2315
|
-
};
|
|
2316
|
-
["VFilesSharedWithMeResponse"]: {
|
|
2317
|
-
vFilesSharedWithMe: ModelTypes["VFile"][];
|
|
2318
|
-
};
|
|
2319
|
-
["TemporaryUser"]: {
|
|
2320
|
-
id: string;
|
|
2321
|
-
mails: ModelTypes["MailIntegrity"][];
|
|
2322
|
-
draftMails: ModelTypes["MailIntegrityDraft"][];
|
|
2323
|
-
email?: string;
|
|
2324
|
-
};
|
|
2325
|
-
["User"]: {
|
|
2326
|
-
id: string;
|
|
2327
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
2328
|
-
lang: ModelTypes["Lang"];
|
|
2329
|
-
reportSent: ModelTypes["Report"][];
|
|
2330
|
-
godFather?: ModelTypes["User"];
|
|
2331
|
-
godChildren: ModelTypes["User"][];
|
|
2332
|
-
firstname: string;
|
|
2333
|
-
lastname: string;
|
|
2334
|
-
email: string;
|
|
2335
|
-
phone: string;
|
|
2336
|
-
lastLogin: ModelTypes["DateTime"];
|
|
2337
|
-
role: ModelTypes["UserRole"];
|
|
2338
|
-
sessions: ModelTypes["UserSession"][];
|
|
2339
|
-
createdAt: ModelTypes["DateTime"];
|
|
2340
|
-
receivedMails: ModelTypes["Mail"][];
|
|
2341
|
-
waitingReceivedMails: ModelTypes["WaitingReceivedMail"][];
|
|
2342
|
-
sentMails: ModelTypes["Mail"][];
|
|
2343
|
-
draftMails: ModelTypes["Mail"][];
|
|
2344
|
-
appSettings?: ModelTypes["UserAppSettings"];
|
|
2345
|
-
applications: ModelTypes["ApplicationsOnUsers"][];
|
|
2346
|
-
publicKey: string;
|
|
2347
|
-
};
|
|
2348
|
-
["UserAppNotifications"]: {
|
|
2349
|
-
id: string;
|
|
2350
|
-
enableAll: boolean;
|
|
2351
|
-
mail: boolean;
|
|
2352
|
-
cloud: boolean;
|
|
2353
|
-
disableAllUntil?: ModelTypes["DateTime"];
|
|
2354
|
-
};
|
|
2355
|
-
["UserAppSettings"]: {
|
|
2356
|
-
id: string;
|
|
2357
|
-
cloudFileDaysForDelete: number;
|
|
2358
|
-
cloudFolderDaysForDelete: number;
|
|
2359
|
-
historyFileDaysForDelete?: number;
|
|
2360
|
-
historyMaxFileCount: number;
|
|
2361
|
-
autoDisconnectDelay?: number;
|
|
2362
|
-
};
|
|
2363
|
-
["UserSession"]: {
|
|
2364
|
-
id: string;
|
|
2365
|
-
appSessions: ModelTypes["AppSession"][];
|
|
2366
|
-
lastActivity?: ModelTypes["DateTime"];
|
|
2367
|
-
userAgent?: string;
|
|
2368
|
-
ip?: string;
|
|
2369
|
-
city?: string;
|
|
2370
|
-
country?: string;
|
|
2371
|
-
createdAt: ModelTypes["DateTime"];
|
|
2372
|
-
};
|
|
2373
|
-
["VFile"]: {
|
|
2374
|
-
id: string;
|
|
2375
|
-
isFavorite: boolean;
|
|
2376
|
-
createdAt: ModelTypes["DateTime"];
|
|
2377
|
-
deletedAt?: ModelTypes["DateTime"];
|
|
2378
|
-
filename: string;
|
|
2379
|
-
userApps: ModelTypes["VFilesOnUsersOnApplications"][];
|
|
2380
|
-
createdBy: ModelTypes["ApplicationsOnUsers"];
|
|
2381
|
-
userApp?: ModelTypes["VFilesOnUsersOnApplications"];
|
|
2382
|
-
folder: ModelTypes["Folder"];
|
|
2383
|
-
history: ModelTypes["File"][];
|
|
2384
|
-
current?: ModelTypes["File"];
|
|
2385
|
-
updatedAt: ModelTypes["DateTime"];
|
|
2386
|
-
};
|
|
2387
|
-
["VFilesOnUsersOnApplications"]: {
|
|
2388
|
-
vFile: ModelTypes["VFile"];
|
|
2389
|
-
userApp: ModelTypes["ApplicationsOnUsers"];
|
|
2390
|
-
rights: ModelTypes["Rights"];
|
|
2391
|
-
nameKey: string;
|
|
2392
|
-
isRoot: boolean;
|
|
2393
|
-
};
|
|
2394
|
-
["WaitingReceivedMail"]: {
|
|
2395
|
-
sender: ModelTypes["User"];
|
|
2396
|
-
date: ModelTypes["DateTime"];
|
|
2397
|
-
recipients: ModelTypes["User"][];
|
|
2398
|
-
temporaryRecipients: ModelTypes["TemporaryUser"][];
|
|
2399
|
-
attachmentsCount: number;
|
|
2400
|
-
};
|
|
2401
|
-
["PaymentInfos"]: {
|
|
2402
|
-
hostedUrl: string;
|
|
2403
|
-
currentSubscription: ModelTypes["RecurlySubscription"];
|
|
2404
|
-
invoices: ModelTypes["RecurlyInvoices"][];
|
|
2405
|
-
};
|
|
2406
|
-
["RecurlyInvoices"]: {
|
|
2407
|
-
pdf: string;
|
|
2408
|
-
date: ModelTypes["DateTime"];
|
|
2409
|
-
due: ModelTypes["DateTime"];
|
|
2410
|
-
status: string;
|
|
2411
|
-
total: number;
|
|
2412
|
-
name: string;
|
|
2413
|
-
currency: string;
|
|
2414
|
-
};
|
|
2415
|
-
["RecurlySubscription"]: {
|
|
2416
|
-
autorenew: boolean;
|
|
2417
|
-
activatedAt?: ModelTypes["DateTime"];
|
|
2418
|
-
currentPeriodEndsAt?: ModelTypes["DateTime"];
|
|
2419
|
-
currentPeriodStartedAt?: ModelTypes["DateTime"];
|
|
2420
|
-
canceledAt?: ModelTypes["DateTime"];
|
|
2421
|
-
createdAt?: ModelTypes["DateTime"];
|
|
2422
|
-
expiresAt?: ModelTypes["DateTime"];
|
|
2423
|
-
pausedAt?: ModelTypes["DateTime"];
|
|
2424
|
-
trialEndsAt?: ModelTypes["DateTime"];
|
|
2425
|
-
trialStartedAt?: ModelTypes["DateTime"];
|
|
2426
|
-
updatedAt?: ModelTypes["DateTime"];
|
|
2427
|
-
state: string;
|
|
2428
|
-
collectionMethod: string;
|
|
2429
|
-
plan?: string;
|
|
2430
|
-
planCode?: string;
|
|
2431
|
-
total?: number;
|
|
2432
|
-
};
|
|
2433
|
-
["ShareFolderResponse"]: {
|
|
2434
|
-
folders: string[];
|
|
2435
|
-
vFiles: string[];
|
|
2436
|
-
};
|
|
2437
|
-
["Query"]: {
|
|
2438
|
-
appNotifications?: ModelTypes["AppNotificationsResult"];
|
|
2439
|
-
blog?: ModelTypes["BlogResult"];
|
|
2440
|
-
dbConfig?: ModelTypes["DbConfigResult"];
|
|
2441
|
-
dbGet?: ModelTypes["DbGetResult"];
|
|
2442
|
-
dbSearch?: ModelTypes["DbSearchResult"];
|
|
2443
|
-
deletedFolders?: ModelTypes["DeletedFoldersResult"];
|
|
2444
|
-
deletedMails?: ModelTypes["DeletedMailsResult"];
|
|
2445
|
-
deletedVFiles?: ModelTypes["DeletedVFilesResult"];
|
|
2446
|
-
faq?: ModelTypes["FaqResult"];
|
|
2447
|
-
file?: ModelTypes["FileResult"];
|
|
2448
|
-
fileContent?: ModelTypes["FileContentResult"];
|
|
2449
|
-
filesSharedWithMe: ModelTypes["FileSharedContent"][];
|
|
2450
|
-
folder?: ModelTypes["FolderResult"];
|
|
2451
|
-
folderSize?: ModelTypes["FolderSizeResult"];
|
|
2452
|
-
foldersSharedWithMe?: ModelTypes["FoldersSharedWithMeResult"];
|
|
2453
|
-
limits?: ModelTypes["LimitsResult"];
|
|
2454
|
-
mail?: ModelTypes["MailResult"];
|
|
2455
|
-
paymentInfos?: ModelTypes["PaymentInfosResult"];
|
|
2456
|
-
plans?: ModelTypes["PlansResult"];
|
|
2457
|
-
sharedFolders?: ModelTypes["SharedFoldersResult"];
|
|
2458
|
-
sharedVFiles?: ModelTypes["SharedVFilesResult"];
|
|
2459
|
-
test?: boolean;
|
|
2460
|
-
unreadReceivedMailsCount?: ModelTypes["UnreadReceivedMailsCountResult"];
|
|
2461
|
-
user?: ModelTypes["UserResult"];
|
|
2462
|
-
vFile?: ModelTypes["VFileResult"];
|
|
2463
|
-
vFilesSharedWithMe?: ModelTypes["VFilesSharedWithMeResult"];
|
|
2464
|
-
userList?: ModelTypes["UserListResult"];
|
|
2465
|
-
};
|
|
2466
|
-
["Mutation"]: {
|
|
2467
|
-
addFileToHistory?: ModelTypes["AddFileToHistoryResult"];
|
|
2468
|
-
cancelPayment?: ModelTypes["CancelPaymentResult"];
|
|
2469
|
-
createApplication?: ModelTypes["CreateApplicationResult"];
|
|
2470
|
-
createDraftMail?: ModelTypes["CreateDraftMailResult"];
|
|
2471
|
-
createFolder?: ModelTypes["CreateFolderResult"];
|
|
2472
|
-
dbConfigMutation?: ModelTypes["DbConfigMutationResult"];
|
|
2473
|
-
dbSet?: ModelTypes["DbSetResult"];
|
|
2474
|
-
deleteDraftMail?: ModelTypes["DeleteDraftMailResult"];
|
|
2475
|
-
deleteFile?: ModelTypes["DeleteFileResult"];
|
|
2476
|
-
deleteFolder?: ModelTypes["DeleteFolderResult"];
|
|
2477
|
-
deleteFolderCloudTrash?: ModelTypes["DeleteFolderCloudTrashResult"];
|
|
2478
|
-
deleteFolderSharing?: ModelTypes["DeleteFolderSharingResult"];
|
|
2479
|
-
deleteMail?: ModelTypes["DeleteMailResult"];
|
|
2480
|
-
deleteMailTrash?: ModelTypes["DeleteMailTrashResult"];
|
|
2481
|
-
deleteUser?: ModelTypes["DeleteUserResult"];
|
|
2482
|
-
deleteVFile?: ModelTypes["DeleteVFileResult"];
|
|
2483
|
-
deleteVFileCloudTrash?: ModelTypes["DeleteVFileCloudTrashResult"];
|
|
2484
|
-
deleteVFileSharing?: ModelTypes["DeleteVFileSharingResult"];
|
|
2485
|
-
duplicateVFile?: ModelTypes["DuplicateVFileResult"];
|
|
2486
|
-
emptyCloudTrash?: ModelTypes["EmptyCloudTrashResult"];
|
|
2487
|
-
emptyMailTrash?: ModelTypes["EmptyMailTrashResult"];
|
|
2488
|
-
logout?: ModelTypes["LogoutResult"];
|
|
2489
|
-
moveFiles?: ModelTypes["MoveFilesResult"];
|
|
2490
|
-
moveFolders?: ModelTypes["MoveFoldersResult"];
|
|
2491
|
-
pay?: ModelTypes["PayResult"];
|
|
2492
|
-
readMail?: ModelTypes["ReadMailResult"];
|
|
2493
|
-
recoverFolder?: ModelTypes["RecoverFolderResult"];
|
|
2494
|
-
recoverMail?: ModelTypes["RecoverMailResult"];
|
|
2495
|
-
recoverVFile?: ModelTypes["RecoverVFileResult"];
|
|
2496
|
-
saveInCloud?: ModelTypes["SaveInCloudResult"];
|
|
2497
|
-
sendDraftMail?: ModelTypes["SendDraftMailResult"];
|
|
2498
|
-
sendOneMail?: ModelTypes["SendOneMailResult"];
|
|
2499
|
-
sendReport?: ModelTypes["SendReportResult"];
|
|
2500
|
-
shareFileInHistory?: ModelTypes["ShareFileInHistoryResult"];
|
|
2501
|
-
shareFolder?: ModelTypes["ShareFolderResult"];
|
|
2502
|
-
shareFolderFinish?: ModelTypes["ShareFolderFinishResult"];
|
|
2503
|
-
shareVFile?: ModelTypes["ShareVFileResult"];
|
|
2504
|
-
unreadMail?: ModelTypes["UnreadMailResult"];
|
|
2505
|
-
updateAppNotifications?: ModelTypes["UpdateAppNotificationsResult"];
|
|
2506
|
-
updateAppSettings?: ModelTypes["UpdateAppSettingsResult"];
|
|
2507
|
-
updateDraftMail?: ModelTypes["UpdateDraftMailResult"];
|
|
2508
|
-
updateFile?: ModelTypes["UpdateFileResult"];
|
|
2509
|
-
updateFolder?: ModelTypes["UpdateFolderResult"];
|
|
2510
|
-
updateProfile?: ModelTypes["UpdateProfileResult"];
|
|
2511
|
-
uploadAnonymous?: ModelTypes["FileResponse"];
|
|
2512
|
-
uploadFile?: ModelTypes["UploadFileResult"];
|
|
2513
|
-
uploadFileEnd?: ModelTypes["UploadFileEndResult"];
|
|
2514
|
-
uploadFilePartEnd?: ModelTypes["UploadFilePartEndResult"];
|
|
2515
|
-
changeUserPlan?: ModelTypes["ChangeUserPlanResult"];
|
|
2516
|
-
};
|
|
2517
|
-
["Subscription"]: {
|
|
2518
|
-
test: boolean;
|
|
2519
|
-
};
|
|
2520
|
-
};
|
|
2521
|
-
export declare type GraphQLTypes = {
|
|
1694
|
+
declare type GraphQLTypes = {
|
|
2522
1695
|
["BigInt"]: any;
|
|
2523
1696
|
["Bytes"]: any;
|
|
2524
1697
|
["DateTime"]: any;
|
|
@@ -2527,7 +1700,7 @@ export declare type GraphQLTypes = {
|
|
|
2527
1700
|
["Lang"]: Lang;
|
|
2528
1701
|
["PlanKind"]: PlanKind;
|
|
2529
1702
|
["UserRole"]: UserRole;
|
|
2530
|
-
["MailType"]: MailType;
|
|
1703
|
+
["MailType"]: MailType$1;
|
|
2531
1704
|
["Rights"]: Rights;
|
|
2532
1705
|
["AppNotificationsResult"]: {
|
|
2533
1706
|
__typename: "UserAppNotifications" | "ErrorAccessDenied" | "ErrorNotFound";
|
|
@@ -3890,7 +3063,7 @@ export declare type GraphQLTypes = {
|
|
|
3890
3063
|
test: boolean;
|
|
3891
3064
|
};
|
|
3892
3065
|
};
|
|
3893
|
-
|
|
3066
|
+
declare enum Lang {
|
|
3894
3067
|
fr = "fr",
|
|
3895
3068
|
en = "en",
|
|
3896
3069
|
it = "it",
|
|
@@ -3907,54 +3080,40 @@ export declare enum Lang {
|
|
|
3907
3080
|
hi = "hi",
|
|
3908
3081
|
ko = "ko"
|
|
3909
3082
|
}
|
|
3910
|
-
|
|
3083
|
+
declare enum PlanKind {
|
|
3911
3084
|
free = "free",
|
|
3912
3085
|
basic = "basic",
|
|
3913
3086
|
advanced = "advanced",
|
|
3914
3087
|
pro = "pro"
|
|
3915
3088
|
}
|
|
3916
|
-
|
|
3089
|
+
declare enum UserRole {
|
|
3917
3090
|
user = "user",
|
|
3918
3091
|
admin = "admin"
|
|
3919
3092
|
}
|
|
3920
|
-
|
|
3093
|
+
declare enum MailType$1 {
|
|
3921
3094
|
sent = "sent",
|
|
3922
3095
|
received = "received"
|
|
3923
3096
|
}
|
|
3924
|
-
|
|
3097
|
+
declare enum Rights {
|
|
3925
3098
|
admin = "admin",
|
|
3926
3099
|
write = "write",
|
|
3927
3100
|
read = "read"
|
|
3928
3101
|
}
|
|
3929
|
-
|
|
3102
|
+
declare enum FileContentType {
|
|
3930
3103
|
cloud = "cloud",
|
|
3931
3104
|
sent_mail = "sent_mail",
|
|
3932
3105
|
received_mail = "received_mail"
|
|
3933
3106
|
}
|
|
3934
|
-
|
|
3107
|
+
declare enum PayInputType {
|
|
3935
3108
|
secure = "secure",
|
|
3936
3109
|
classic = "classic"
|
|
3937
3110
|
}
|
|
3938
|
-
export declare class GraphQLError extends Error {
|
|
3939
|
-
response: GraphQLResponse;
|
|
3940
|
-
constructor(response: GraphQLResponse);
|
|
3941
|
-
toString(): string;
|
|
3942
|
-
}
|
|
3943
|
-
export declare type UnwrapPromise<T> = T extends Promise<infer R> ? R : T;
|
|
3944
|
-
export declare type ZeusState<T extends (...args: any[]) => Promise<any>> = NonNullable<UnwrapPromise<ReturnType<T>>>;
|
|
3945
|
-
export declare type ZeusHook<T extends (...args: any[]) => Record<string, (...args: any[]) => Promise<any>>, N extends keyof ReturnType<T>> = ZeusState<ReturnType<T>[N]>;
|
|
3946
3111
|
declare type WithTypeNameValue<T> = T & {
|
|
3947
3112
|
__typename?: boolean;
|
|
3948
3113
|
};
|
|
3949
3114
|
declare type AliasType<T> = WithTypeNameValue<T> & {
|
|
3950
3115
|
__alias?: Record<string, WithTypeNameValue<T>>;
|
|
3951
3116
|
};
|
|
3952
|
-
export interface GraphQLResponse {
|
|
3953
|
-
data?: Record<string, any>;
|
|
3954
|
-
errors?: Array<{
|
|
3955
|
-
message: string;
|
|
3956
|
-
}>;
|
|
3957
|
-
}
|
|
3958
3117
|
declare type DeepAnify<T> = {
|
|
3959
3118
|
[P in keyof T]?: any;
|
|
3960
3119
|
};
|
|
@@ -3972,72 +3131,727 @@ declare type IsInterfaced<SRC extends DeepAnify<DST>, DST> = FlattenArray<SRC> e
|
|
|
3972
3131
|
} : {
|
|
3973
3132
|
[P in keyof Pick<SRC, keyof DST>]: IsPayLoad<DST[P]> extends boolean ? SRC[P] : IsArray<SRC[P], DST[P]>;
|
|
3974
3133
|
};
|
|
3975
|
-
|
|
3976
|
-
|
|
3134
|
+
declare type MapType<SRC, DST> = SRC extends DeepAnify<DST> ? IsInterfaced<SRC, DST> : never;
|
|
3135
|
+
declare type InputType<SRC, DST> = IsPayLoad<DST> extends {
|
|
3977
3136
|
__alias: infer R;
|
|
3978
3137
|
} ? {
|
|
3979
3138
|
[P in keyof R]: MapType<SRC, R[P]>;
|
|
3980
3139
|
} & MapType<SRC, Omit<IsPayLoad<DST>, "__alias">> : MapType<SRC, IsPayLoad<DST>>;
|
|
3981
|
-
declare type
|
|
3982
|
-
declare type AnyFunc = Func<any, any>;
|
|
3983
|
-
export declare type ArgsType<F extends AnyFunc> = F extends Func<infer P, any> ? P : never;
|
|
3984
|
-
export declare type OperationOptions = {
|
|
3140
|
+
declare type OperationOptions = {
|
|
3985
3141
|
variables?: Record<string, any>;
|
|
3986
3142
|
operationName?: string;
|
|
3987
3143
|
};
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
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;
|
|
4002
3487
|
};
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
declare
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
export declare const TypesPropsResolver: ({ value, type, name, key, blockArrays }: {
|
|
4016
|
-
value: any;
|
|
4017
|
-
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 = {
|
|
4018
3500
|
name: string;
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
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;
|
|
4034
3552
|
};
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
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 };
|