@secrecy/lib 1.0.0-dev.21 → 1.0.0-dev.25

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.
Files changed (158) hide show
  1. package/CHANGELOG.md +178 -0
  2. package/README.md +0 -1
  3. package/__tests__/client/client.test.ts +81 -0
  4. package/__tests__/client/folder.test.ts +302 -0
  5. package/__tests__/client/mail.test.ts +476 -0
  6. package/__tests__/client/timing.test.ts +35 -0
  7. package/__tests__/client/utils.ts +41 -0
  8. package/__tests__/client/vFile.test.ts +207 -0
  9. package/__tests__/index.test.ts +171 -0
  10. package/commitlint.config.cjs +3 -0
  11. package/dist/index.d.ts +3857 -0
  12. package/dist/index.js +255 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/index.mjs +255 -0
  15. package/dist/index.mjs.map +1 -0
  16. package/docs/assets/css/main.css +2660 -0
  17. package/docs/assets/images/icons.png +0 -0
  18. package/docs/assets/images/icons@2x.png +0 -0
  19. package/docs/assets/images/widgets.png +0 -0
  20. package/docs/assets/images/widgets@2x.png +0 -0
  21. package/docs/assets/js/main.js +248 -0
  22. package/docs/assets/js/search.js +1 -0
  23. package/docs/classes/baseclient.baseclient-1.html +1165 -0
  24. package/docs/classes/client.secrecyclient.html +2527 -0
  25. package/docs/enums/index.sodium.base64_variants.html +205 -0
  26. package/docs/index.html +198 -0
  27. package/docs/interfaces/client_types.draftmail.html +335 -0
  28. package/docs/interfaces/client_types.filecontentbase.html +231 -0
  29. package/docs/interfaces/client_types.filecontentcloud.html +244 -0
  30. package/docs/interfaces/client_types.filecontentreceivedmail.html +244 -0
  31. package/docs/interfaces/client_types.filecontentsentmail.html +230 -0
  32. package/docs/interfaces/client_types.receivedmail.html +363 -0
  33. package/docs/interfaces/client_types.sentmail.html +335 -0
  34. package/docs/interfaces/crypto.keypair.html +202 -0
  35. package/docs/interfaces/index.sodium.cryptobox.html +185 -0
  36. package/docs/interfaces/index.sodium.cryptokx.html +185 -0
  37. package/docs/interfaces/index.sodium.keypair.html +199 -0
  38. package/docs/interfaces/index.sodium.messagetag.html +185 -0
  39. package/docs/interfaces/index.sodium.secretbox.html +185 -0
  40. package/docs/interfaces/index.sodium.stateaddress.html +171 -0
  41. package/docs/interfaces/index.sodium.stringcryptobox.html +185 -0
  42. package/docs/interfaces/index.sodium.stringcryptokx.html +185 -0
  43. package/docs/interfaces/index.sodium.stringkeypair.html +199 -0
  44. package/docs/interfaces/index.sodium.stringmessagetag.html +185 -0
  45. package/docs/interfaces/index.sodium.stringsecretbox.html +185 -0
  46. package/docs/interfaces/utils_store_buddy.storebuddy.html +333 -0
  47. package/docs/modules/baseclient.html +929 -0
  48. package/docs/modules/cache.html +185 -0
  49. package/docs/modules/client.html +207 -0
  50. package/docs/modules/client_convert_file.html +216 -0
  51. package/docs/modules/client_convert_folder.html +303 -0
  52. package/docs/modules/client_convert_vfile.html +216 -0
  53. package/docs/modules/client_helpers.html +311 -0
  54. package/docs/modules/client_storage.html +167 -0
  55. package/docs/modules/client_types.html +1227 -0
  56. package/docs/modules/client_types_file.html +233 -0
  57. package/docs/modules/client_types_filesonusersonapplications.html +168 -0
  58. package/docs/modules/client_types_folder.html +383 -0
  59. package/docs/modules/client_types_inputs.html +263 -0
  60. package/docs/modules/client_types_mail.html +181 -0
  61. package/docs/modules/client_types_queries.html +199 -0
  62. package/docs/modules/client_types_userappsettings.html +163 -0
  63. package/docs/modules/client_types_vfile.html +364 -0
  64. package/docs/modules/crypto.html +366 -0
  65. package/docs/modules/crypto_file.html +344 -0
  66. package/docs/modules/index.html +779 -0
  67. package/docs/modules/index.sodium.html +6039 -0
  68. package/docs/modules/minify.html +183 -0
  69. package/docs/modules/minify_lz4.html +279 -0
  70. package/docs/modules/popuptools.html +259 -0
  71. package/docs/modules/sodium.html +167 -0
  72. package/docs/modules/utils.html +219 -0
  73. package/docs/modules/utils_store_buddy.html +208 -0
  74. package/docs/modules/utils_time.html +330 -0
  75. package/docs/modules/worker_md5.html +156 -0
  76. package/docs/modules/worker_sodium.html +231 -0
  77. package/docs/modules/worker_workercodes.html +157 -0
  78. package/docs/modules.html +235 -0
  79. package/index.html +21 -0
  80. package/jest.config.ts +27 -0
  81. package/jest.setup.ts +6 -0
  82. package/package.json +39 -47
  83. package/release.config.cjs +15 -0
  84. package/tsup.config.ts +23 -0
  85. package/lib/BaseClient.d.ts +0 -274
  86. package/lib/BaseClient.js +0 -1837
  87. package/lib/PopupTools.d.ts +0 -17
  88. package/lib/PopupTools.js +0 -213
  89. package/lib/ZeusThunder.d.ts +0 -2
  90. package/lib/ZeusThunder.js +0 -112
  91. package/lib/cache.d.ts +0 -7
  92. package/lib/cache.js +0 -5
  93. package/lib/client/admin/index.d.ts +0 -11
  94. package/lib/client/admin/index.js +0 -163
  95. package/lib/client/convert/file.d.ts +0 -5
  96. package/lib/client/convert/file.js +0 -39
  97. package/lib/client/convert/folder.d.ts +0 -8
  98. package/lib/client/convert/folder.js +0 -264
  99. package/lib/client/convert/mail.d.ts +0 -3
  100. package/lib/client/convert/mail.js +0 -46
  101. package/lib/client/convert/vFile.d.ts +0 -5
  102. package/lib/client/convert/vFile.js +0 -164
  103. package/lib/client/helpers.d.ts +0 -23
  104. package/lib/client/helpers.js +0 -116
  105. package/lib/client/index.d.ts +0 -172
  106. package/lib/client/index.js +0 -4501
  107. package/lib/client/storage.d.ts +0 -7
  108. package/lib/client/storage.js +0 -12
  109. package/lib/client/types/File.d.ts +0 -21
  110. package/lib/client/types/File.js +0 -3
  111. package/lib/client/types/FilesOnUsersOnApplications.d.ts +0 -9
  112. package/lib/client/types/FilesOnUsersOnApplications.js +0 -3
  113. package/lib/client/types/Folder.d.ts +0 -68
  114. package/lib/client/types/Folder.js +0 -7
  115. package/lib/client/types/Inputs.d.ts +0 -21
  116. package/lib/client/types/Inputs.js +0 -3
  117. package/lib/client/types/UserAppNotifications.d.ts +0 -6
  118. package/lib/client/types/UserAppNotifications.js +0 -3
  119. package/lib/client/types/UserAppSettings.d.ts +0 -7
  120. package/lib/client/types/UserAppSettings.js +0 -3
  121. package/lib/client/types/VFile.d.ts +0 -62
  122. package/lib/client/types/VFile.js +0 -4
  123. package/lib/client/types/index.d.ts +0 -154
  124. package/lib/client/types/index.js +0 -10
  125. package/lib/client/types/queries.d.ts +0 -535
  126. package/lib/client/types/queries.js +0 -192
  127. package/lib/crypto/file.d.ts +0 -14
  128. package/lib/crypto/file.js +0 -291
  129. package/lib/crypto/index.d.ts +0 -12
  130. package/lib/crypto/index.js +0 -37
  131. package/lib/error.d.ts +0 -30
  132. package/lib/error.js +0 -3
  133. package/lib/index.d.ts +0 -13
  134. package/lib/index.js +0 -42
  135. package/lib/minify/index.d.ts +0 -2
  136. package/lib/minify/index.js +0 -28
  137. package/lib/minify/lz4.d.ts +0 -5
  138. package/lib/minify/lz4.js +0 -633
  139. package/lib/sodium.d.ts +0 -3
  140. package/lib/sodium.js +0 -28
  141. package/lib/utils/store-buddy.d.ts +0 -14
  142. package/lib/utils/store-buddy.js +0 -69
  143. package/lib/utils/time.d.ts +0 -10
  144. package/lib/utils/time.js +0 -22
  145. package/lib/utils.d.ts +0 -4
  146. package/lib/utils.js +0 -188
  147. package/lib/worker/__mock__/sodium.worker.d.ts +0 -19
  148. package/lib/worker/__mock__/sodium.worker.js +0 -46
  149. package/lib/worker/md5.d.ts +0 -1
  150. package/lib/worker/md5.js +0 -43
  151. package/lib/worker/sodium.d.ts +0 -3
  152. package/lib/worker/sodium.js +0 -155
  153. package/lib/worker/workerCodes.d.ts +0 -2
  154. package/lib/worker/workerCodes.js +0 -3
  155. package/lib/zeus/const.d.ts +0 -2
  156. package/lib/zeus/const.js +0 -1895
  157. package/lib/zeus/index.d.ts +0 -2798
  158. package/lib/zeus/index.js +0 -549
@@ -0,0 +1,3857 @@
1
+ import { DownloadProgress as DownloadProgress$1 } from 'ky';
2
+ import { Document } from 'bson';
3
+ export { default as sodium } from 'libsodium-wrappers';
4
+
5
+ declare type ZEUS_INTERFACES = GraphQLTypes["ErrorBase"] | GraphQLTypes["FileContentBase"];
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"];
7
+ declare type ValueTypes = {
8
+ ["BigInt"]: unknown;
9
+ ["Bytes"]: unknown;
10
+ ["DateTime"]: unknown;
11
+ ["Decimal"]: unknown;
12
+ ["Json"]: unknown;
13
+ ["Lang"]: Lang;
14
+ ["PlanKind"]: PlanKind;
15
+ ["UserRole"]: UserRole;
16
+ ["MailType"]: MailType$1;
17
+ ["Rights"]: Rights;
18
+ ["AppNotificationsResult"]: AliasType<{
19
+ ["...on UserAppNotifications"]: ValueTypes["UserAppNotifications"];
20
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
21
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
22
+ __typename?: boolean;
23
+ }>;
24
+ ["BlogResult"]: AliasType<{
25
+ ["...on BlogResponse"]: ValueTypes["BlogResponse"];
26
+ ["...on ErrorLangNotExist"]: ValueTypes["ErrorLangNotExist"];
27
+ __typename?: boolean;
28
+ }>;
29
+ ["DbConfigResult"]: AliasType<{
30
+ ["...on DbConfigResponse"]: ValueTypes["DbConfigResponse"];
31
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
32
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
33
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
34
+ __typename?: boolean;
35
+ }>;
36
+ ["DbGetResult"]: AliasType<{
37
+ ["...on DbGetResponse"]: ValueTypes["DbGetResponse"];
38
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
39
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
40
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
41
+ __typename?: boolean;
42
+ }>;
43
+ ["DbSearchResult"]: AliasType<{
44
+ ["...on DbSearchResponse"]: ValueTypes["DbSearchResponse"];
45
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
46
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
47
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
48
+ __typename?: boolean;
49
+ }>;
50
+ ["DeletedFoldersResult"]: AliasType<{
51
+ ["...on DeletedFoldersResponse"]: ValueTypes["DeletedFoldersResponse"];
52
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
53
+ __typename?: boolean;
54
+ }>;
55
+ ["DeletedMailsResult"]: AliasType<{
56
+ ["...on DeletedMailsResponse"]: ValueTypes["DeletedMailsResponse"];
57
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
58
+ __typename?: boolean;
59
+ }>;
60
+ ["DeletedVFilesResult"]: AliasType<{
61
+ ["...on DeletedVFilesResponse"]: ValueTypes["DeletedVFilesResponse"];
62
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
63
+ __typename?: boolean;
64
+ }>;
65
+ ["FaqResult"]: AliasType<{
66
+ ["...on FaqResponse"]: ValueTypes["FaqResponse"];
67
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
68
+ __typename?: boolean;
69
+ }>;
70
+ ["FileResult"]: AliasType<{
71
+ ["...on FileQueryResponse"]: ValueTypes["FileQueryResponse"];
72
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
73
+ __typename?: boolean;
74
+ }>;
75
+ ["FileContentResult"]: AliasType<{
76
+ ["...on FileContentResponse"]: ValueTypes["FileContentResponse"];
77
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
78
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
79
+ __typename?: boolean;
80
+ }>;
81
+ ["FolderResult"]: AliasType<{
82
+ ["...on FolderResponse"]: ValueTypes["FolderResponse"];
83
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
84
+ __typename?: boolean;
85
+ }>;
86
+ ["FolderSizeResult"]: AliasType<{
87
+ ["...on FolderSizeResponse"]: ValueTypes["FolderSizeResponse"];
88
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
89
+ __typename?: boolean;
90
+ }>;
91
+ ["FoldersSharedWithMeResult"]: AliasType<{
92
+ ["...on FolderSharedWithMeResponse"]: ValueTypes["FolderSharedWithMeResponse"];
93
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
94
+ __typename?: boolean;
95
+ }>;
96
+ ["LimitsResult"]: AliasType<{
97
+ ["...on QueryLimits"]: ValueTypes["QueryLimits"];
98
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
99
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
100
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
101
+ ["...on ErrorLimit"]: ValueTypes["ErrorLimit"];
102
+ __typename?: boolean;
103
+ }>;
104
+ ["MailResult"]: AliasType<{
105
+ ["...on QueryMailResponse"]: ValueTypes["QueryMailResponse"];
106
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
107
+ __typename?: boolean;
108
+ }>;
109
+ ["PaymentInfosResult"]: AliasType<{
110
+ ["...on PaymentInfosResponse"]: ValueTypes["PaymentInfosResponse"];
111
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
112
+ __typename?: boolean;
113
+ }>;
114
+ ["PlansResult"]: AliasType<{
115
+ ["...on PlanResponse"]: ValueTypes["PlanResponse"];
116
+ __typename?: boolean;
117
+ }>;
118
+ ["SharedFoldersResult"]: AliasType<{
119
+ ["...on SharedFoldersResponse"]: ValueTypes["SharedFoldersResponse"];
120
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
121
+ __typename?: boolean;
122
+ }>;
123
+ ["SharedVFilesResult"]: AliasType<{
124
+ ["...on SharedVFilesResponse"]: ValueTypes["SharedVFilesResponse"];
125
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
126
+ __typename?: boolean;
127
+ }>;
128
+ ["UnreadReceivedMailsCountResult"]: AliasType<{
129
+ ["...on UnreadReceivedMailsCountResponse"]: ValueTypes["UnreadReceivedMailsCountResponse"];
130
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
131
+ __typename?: boolean;
132
+ }>;
133
+ ["UserResult"]: AliasType<{
134
+ ["...on UserResponse"]: ValueTypes["UserResponse"];
135
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
136
+ __typename?: boolean;
137
+ }>;
138
+ ["VFileResult"]: AliasType<{
139
+ ["...on VFileResponse"]: ValueTypes["VFileResponse"];
140
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
141
+ __typename?: boolean;
142
+ }>;
143
+ ["VFilesSharedWithMeResult"]: AliasType<{
144
+ ["...on VFilesSharedWithMeResponse"]: ValueTypes["VFilesSharedWithMeResponse"];
145
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
146
+ __typename?: boolean;
147
+ }>;
148
+ ["UserListResult"]: AliasType<{
149
+ ["...on UserListResponse"]: ValueTypes["UserListResponse"];
150
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
151
+ __typename?: boolean;
152
+ }>;
153
+ ["AddFileToHistoryResult"]: AliasType<{
154
+ ["...on AddFileToHistoryResponse"]: ValueTypes["AddFileToHistoryResponse"];
155
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
156
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
157
+ __typename?: boolean;
158
+ }>;
159
+ ["CancelPaymentResult"]: AliasType<{
160
+ ["...on CancelPaymentResponse"]: ValueTypes["CancelPaymentResponse"];
161
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
162
+ __typename?: boolean;
163
+ }>;
164
+ ["CreateApplicationResult"]: AliasType<{
165
+ ["...on CreateApplicationResponse"]: ValueTypes["CreateApplicationResponse"];
166
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
167
+ __typename?: boolean;
168
+ }>;
169
+ ["CreateDraftMailResult"]: AliasType<{
170
+ ["...on CreateDraftMailResponse"]: ValueTypes["CreateDraftMailResponse"];
171
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
172
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
173
+ __typename?: boolean;
174
+ }>;
175
+ ["CreateFolderResult"]: AliasType<{
176
+ ["...on CreateFolderResponse"]: ValueTypes["CreateFolderResponse"];
177
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
178
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
179
+ __typename?: boolean;
180
+ }>;
181
+ ["DbConfigMutationResult"]: AliasType<{
182
+ ["...on DbConfigMutationResponse"]: ValueTypes["DbConfigMutationResponse"];
183
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
184
+ __typename?: boolean;
185
+ }>;
186
+ ["DbSetResult"]: AliasType<{
187
+ ["...on DbSetResponse"]: ValueTypes["DbSetResponse"];
188
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
189
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
190
+ __typename?: boolean;
191
+ }>;
192
+ ["DeleteDraftMailResult"]: AliasType<{
193
+ ["...on DeleteDraftMailResponse"]: ValueTypes["DeleteDraftMailResponse"];
194
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
195
+ __typename?: boolean;
196
+ }>;
197
+ ["DeleteFileResult"]: AliasType<{
198
+ ["...on DeleteFileResponse"]: ValueTypes["DeleteFileResponse"];
199
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
200
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
201
+ __typename?: boolean;
202
+ }>;
203
+ ["DeleteFolderResult"]: AliasType<{
204
+ ["...on DeleteFolderResponse"]: ValueTypes["DeleteFolderResponse"];
205
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
206
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
207
+ __typename?: boolean;
208
+ }>;
209
+ ["DeleteFolderCloudTrashResult"]: AliasType<{
210
+ ["...on DeleteFolderCloudTrashResponse"]: ValueTypes["DeleteFolderCloudTrashResponse"];
211
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
212
+ __typename?: boolean;
213
+ }>;
214
+ ["DeleteFolderSharingResult"]: AliasType<{
215
+ ["...on DeleteFolderSharingResponse"]: ValueTypes["DeleteFolderSharingResponse"];
216
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
217
+ __typename?: boolean;
218
+ }>;
219
+ ["DeleteMailResult"]: AliasType<{
220
+ ["...on DeleteMailResponse"]: ValueTypes["DeleteMailResponse"];
221
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
222
+ __typename?: boolean;
223
+ }>;
224
+ ["DeleteMailTrashResult"]: AliasType<{
225
+ ["...on DeleteMailTrashResponse"]: ValueTypes["DeleteMailTrashResponse"];
226
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
227
+ __typename?: boolean;
228
+ }>;
229
+ ["DeleteUserResult"]: AliasType<{
230
+ ["...on DeleteUserResponse"]: ValueTypes["DeleteUserResponse"];
231
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
232
+ __typename?: boolean;
233
+ }>;
234
+ ["DeleteVFileResult"]: AliasType<{
235
+ ["...on DeleteVFileResponse"]: ValueTypes["DeleteVFileResponse"];
236
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
237
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
238
+ __typename?: boolean;
239
+ }>;
240
+ ["DeleteVFileCloudTrashResult"]: AliasType<{
241
+ ["...on DeleteVFileCloudTrashResponse"]: ValueTypes["DeleteVFileCloudTrashResponse"];
242
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
243
+ __typename?: boolean;
244
+ }>;
245
+ ["DeleteVFileSharingResult"]: AliasType<{
246
+ ["...on DeleteVFileSharingResponse"]: ValueTypes["DeleteVFileSharingResponse"];
247
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
248
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
249
+ __typename?: boolean;
250
+ }>;
251
+ ["DuplicateVFileResult"]: AliasType<{
252
+ ["...on DuplicateVFileResponse"]: ValueTypes["DuplicateVFileResponse"];
253
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
254
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
255
+ __typename?: boolean;
256
+ }>;
257
+ ["EmptyCloudTrashResult"]: AliasType<{
258
+ ["...on DeleteMailResponse"]: ValueTypes["DeleteMailResponse"];
259
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
260
+ __typename?: boolean;
261
+ }>;
262
+ ["EmptyMailTrashResult"]: AliasType<{
263
+ ["...on EmptyMailTrashResponse"]: ValueTypes["EmptyMailTrashResponse"];
264
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
265
+ __typename?: boolean;
266
+ }>;
267
+ ["LogoutResult"]: AliasType<{
268
+ ["...on LogoutResponse"]: ValueTypes["LogoutResponse"];
269
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
270
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
271
+ __typename?: boolean;
272
+ }>;
273
+ ["MoveFilesResult"]: AliasType<{
274
+ ["...on MoveFilesResponse"]: ValueTypes["MoveFilesResponse"];
275
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
276
+ __typename?: boolean;
277
+ }>;
278
+ ["MoveFoldersResult"]: AliasType<{
279
+ ["...on MoveFoldersResponse"]: ValueTypes["MoveFoldersResponse"];
280
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
281
+ __typename?: boolean;
282
+ }>;
283
+ ["PayResult"]: AliasType<{
284
+ ["...on PayResponse"]: ValueTypes["PayResponse"];
285
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
286
+ __typename?: boolean;
287
+ }>;
288
+ ["ReadMailResult"]: AliasType<{
289
+ ["...on ReadMailResponse"]: ValueTypes["ReadMailResponse"];
290
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
291
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
292
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
293
+ __typename?: boolean;
294
+ }>;
295
+ ["RecoverFolderResult"]: AliasType<{
296
+ ["...on RecoverFolderResponse"]: ValueTypes["RecoverFolderResponse"];
297
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
298
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
299
+ __typename?: boolean;
300
+ }>;
301
+ ["RecoverMailResult"]: AliasType<{
302
+ ["...on RecoverMailResponse"]: ValueTypes["RecoverMailResponse"];
303
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
304
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
305
+ __typename?: boolean;
306
+ }>;
307
+ ["RecoverVFileResult"]: AliasType<{
308
+ ["...on RecoverVFileResponse"]: ValueTypes["RecoverVFileResponse"];
309
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
310
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
311
+ __typename?: boolean;
312
+ }>;
313
+ ["SaveInCloudResult"]: AliasType<{
314
+ ["...on SaveInCloudResponse"]: ValueTypes["SaveInCloudResponse"];
315
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
316
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
317
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
318
+ __typename?: boolean;
319
+ }>;
320
+ ["SendDraftMailResult"]: AliasType<{
321
+ ["...on SendDraftMailResponse"]: ValueTypes["SendDraftMailResponse"];
322
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
323
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
324
+ __typename?: boolean;
325
+ }>;
326
+ ["SendOneMailResult"]: AliasType<{
327
+ ["...on RecoverFolderResponse"]: ValueTypes["RecoverFolderResponse"];
328
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
329
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
330
+ __typename?: boolean;
331
+ }>;
332
+ ["SendReportResult"]: AliasType<{
333
+ ["...on SendReportResponse"]: ValueTypes["SendReportResponse"];
334
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
335
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
336
+ __typename?: boolean;
337
+ }>;
338
+ ["ShareFileInHistoryResult"]: AliasType<{
339
+ ["...on ShareFileInHistoryResponse"]: ValueTypes["ShareFileInHistoryResponse"];
340
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
341
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
342
+ __typename?: boolean;
343
+ }>;
344
+ ["ShareFolderResult"]: AliasType<{
345
+ ["...on ShareFolderResponse"]: ValueTypes["ShareFolderResponse"];
346
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
347
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
348
+ __typename?: boolean;
349
+ }>;
350
+ ["ShareFolderFinishResult"]: AliasType<{
351
+ ["...on ShareFolderFinishResponse"]: ValueTypes["ShareFolderFinishResponse"];
352
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
353
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
354
+ __typename?: boolean;
355
+ }>;
356
+ ["ShareVFileResult"]: AliasType<{
357
+ ["...on ShareVFileResponse"]: ValueTypes["ShareVFileResponse"];
358
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
359
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
360
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
361
+ __typename?: boolean;
362
+ }>;
363
+ ["UnreadMailResult"]: AliasType<{
364
+ ["...on UnreadMailResponse"]: ValueTypes["UnreadMailResponse"];
365
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
366
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
367
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
368
+ __typename?: boolean;
369
+ }>;
370
+ ["UpdateAppNotificationsResult"]: AliasType<{
371
+ ["...on UpdateAppNotificationsResponse"]: ValueTypes["UpdateAppNotificationsResponse"];
372
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
373
+ __typename?: boolean;
374
+ }>;
375
+ ["UpdateAppSettingsResult"]: AliasType<{
376
+ ["...on UpdateAppSettingsResponse"]: ValueTypes["UpdateAppSettingsResponse"];
377
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
378
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
379
+ __typename?: boolean;
380
+ }>;
381
+ ["UpdateDraftMailResult"]: AliasType<{
382
+ ["...on UpdateDraftMailResponse"]: ValueTypes["UpdateDraftMailResponse"];
383
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
384
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
385
+ __typename?: boolean;
386
+ }>;
387
+ ["UpdateFileResult"]: AliasType<{
388
+ ["...on UpdateFileResponse"]: ValueTypes["UpdateFileResponse"];
389
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
390
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
391
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
392
+ __typename?: boolean;
393
+ }>;
394
+ ["UpdateFolderResult"]: AliasType<{
395
+ ["...on UpdateFolderResponse"]: ValueTypes["UpdateFolderResponse"];
396
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
397
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
398
+ __typename?: boolean;
399
+ }>;
400
+ ["UpdateProfileResult"]: AliasType<{
401
+ ["...on UpdateProfileResponse"]: ValueTypes["UpdateProfileResponse"];
402
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
403
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
404
+ __typename?: boolean;
405
+ }>;
406
+ ["UploadFileResult"]: AliasType<{
407
+ ["...on UploadFileResponse"]: ValueTypes["UploadFileResponse"];
408
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
409
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
410
+ ["...on ErrorLimit"]: ValueTypes["ErrorLimit"];
411
+ __typename?: boolean;
412
+ }>;
413
+ ["UploadFileEndResult"]: AliasType<{
414
+ ["...on UploadFileEndResponse"]: ValueTypes["UploadFileEndResponse"];
415
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
416
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
417
+ __typename?: boolean;
418
+ }>;
419
+ ["UploadFilePartEndResult"]: AliasType<{
420
+ ["...on UploadFilePartEndResponse"]: ValueTypes["UploadFilePartEndResponse"];
421
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
422
+ __typename?: boolean;
423
+ }>;
424
+ ["ChangeUserPlanResult"]: AliasType<{
425
+ ["...on ChangeUserPlanResponse"]: ValueTypes["ChangeUserPlanResponse"];
426
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
427
+ __typename?: boolean;
428
+ }>;
429
+ ["AppKeyPair"]: AliasType<{
430
+ pub?: boolean;
431
+ __typename?: boolean;
432
+ }>;
433
+ ["AppSession"]: AliasType<{
434
+ id?: boolean;
435
+ lastActivity?: boolean;
436
+ userAgent?: boolean;
437
+ ip?: boolean;
438
+ city?: boolean;
439
+ country?: boolean;
440
+ userSession?: ValueTypes["UserSession"];
441
+ userApp?: ValueTypes["ApplicationsOnUsers"];
442
+ createdAt?: boolean;
443
+ __typename?: boolean;
444
+ }>;
445
+ ["Application"]: AliasType<{
446
+ id?: boolean;
447
+ name?: boolean;
448
+ __typename?: boolean;
449
+ }>;
450
+ ["ApplicationsOnUsers"]: AliasType<{
451
+ fakeUserId?: boolean;
452
+ keyPair?: ValueTypes["AppKeyPair"];
453
+ sessions?: ValueTypes["AppSession"];
454
+ app?: ValueTypes["Application"];
455
+ user?: ValueTypes["User"];
456
+ folders?: ValueTypes["FoldersOnUsersOnApplications"];
457
+ settings?: ValueTypes["UserAppSettings"];
458
+ __typename?: boolean;
459
+ }>;
460
+ ["Blog"]: AliasType<{
461
+ id?: boolean;
462
+ order?: boolean;
463
+ entries?: ValueTypes["BlogEntry"];
464
+ __typename?: boolean;
465
+ }>;
466
+ ["BlogEntry"]: AliasType<{
467
+ id?: boolean;
468
+ lang?: boolean;
469
+ author?: boolean;
470
+ body?: boolean;
471
+ date?: boolean;
472
+ image?: boolean;
473
+ summary?: boolean;
474
+ title?: boolean;
475
+ __typename?: boolean;
476
+ }>;
477
+ ["BlogItem"]: AliasType<{
478
+ id?: boolean;
479
+ blogId?: boolean;
480
+ order?: boolean;
481
+ title?: boolean;
482
+ body?: boolean;
483
+ author?: boolean;
484
+ image?: boolean;
485
+ imageAlt?: boolean;
486
+ summary?: boolean;
487
+ date?: boolean;
488
+ __typename?: boolean;
489
+ }>;
490
+ ["CloudLimits"]: AliasType<{
491
+ size?: boolean;
492
+ maxSize?: boolean;
493
+ count?: boolean;
494
+ maxCount?: boolean;
495
+ __typename?: boolean;
496
+ }>;
497
+ ["Error"]: AliasType<{
498
+ ["...on ErrorAccessDenied"]: ValueTypes["ErrorAccessDenied"];
499
+ ["...on ErrorNotFound"]: ValueTypes["ErrorNotFound"];
500
+ ["...on ErrorUpgradePlan"]: ValueTypes["ErrorUpgradePlan"];
501
+ ["...on ErrorLangNotExist"]: ValueTypes["ErrorLangNotExist"];
502
+ ["...on ErrorNotExist"]: ValueTypes["ErrorNotExist"];
503
+ ["...on ErrorLimit"]: ValueTypes["ErrorLimit"];
504
+ ["...on ErrorBasic"]: ValueTypes["ErrorBasic"];
505
+ __typename?: boolean;
506
+ }>;
507
+ ["ErrorAccessDenied"]: AliasType<{
508
+ message?: boolean;
509
+ __typename?: boolean;
510
+ }>;
511
+ ["ErrorBase"]: AliasType<{
512
+ message?: boolean;
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"]>;
520
+ __typename?: boolean;
521
+ }>;
522
+ ["ErrorBasic"]: AliasType<{
523
+ message?: boolean;
524
+ __typename?: boolean;
525
+ }>;
526
+ ["ErrorLangNotExist"]: AliasType<{
527
+ message?: boolean;
528
+ __typename?: boolean;
529
+ }>;
530
+ ["ErrorLimit"]: AliasType<{
531
+ message?: boolean;
532
+ field?: boolean;
533
+ __typename?: boolean;
534
+ }>;
535
+ ["ErrorNotExist"]: AliasType<{
536
+ message?: boolean;
537
+ field?: boolean;
538
+ __typename?: boolean;
539
+ }>;
540
+ ["ErrorNotFound"]: AliasType<{
541
+ message?: boolean;
542
+ field?: boolean;
543
+ __typename?: boolean;
544
+ }>;
545
+ ["ErrorUpgradePlan"]: AliasType<{
546
+ message?: boolean;
547
+ __typename?: boolean;
548
+ }>;
549
+ ["Faq"]: AliasType<{
550
+ id?: boolean;
551
+ order?: boolean;
552
+ entries?: ValueTypes["FaqEntry"];
553
+ __typename?: boolean;
554
+ }>;
555
+ ["FaqEntry"]: AliasType<{
556
+ id?: boolean;
557
+ lang?: boolean;
558
+ question?: boolean;
559
+ answer?: boolean;
560
+ faq?: ValueTypes["Faq"];
561
+ __typename?: boolean;
562
+ }>;
563
+ ["FaqItem"]: AliasType<{
564
+ order?: boolean;
565
+ question?: boolean;
566
+ answer?: boolean;
567
+ __typename?: boolean;
568
+ }>;
569
+ ["File"]: AliasType<{
570
+ id?: boolean;
571
+ size?: boolean;
572
+ sizeBefore?: boolean;
573
+ createdAt?: boolean;
574
+ vFiles?: ValueTypes["VFile"];
575
+ vFilesCurrent?: ValueTypes["VFile"];
576
+ users?: ValueTypes["FilesOnUsersOnApplications"];
577
+ md5?: boolean;
578
+ md5Encrypted?: boolean;
579
+ deletedAt?: boolean;
580
+ userApp?: ValueTypes["ApplicationsOnUsers"];
581
+ mails?: ValueTypes["FilesOnMails"];
582
+ validatedAt?: boolean;
583
+ user?: ValueTypes["FilesOnUsersOnApplications"];
584
+ __typename?: boolean;
585
+ }>;
586
+ ["FileContent"]: AliasType<{
587
+ ["...on FileContentCloud"]: ValueTypes["FileContentCloud"];
588
+ ["...on FileContentReceivedMail"]: ValueTypes["FileContentReceivedMail"];
589
+ ["...on FileContentSentMail"]: ValueTypes["FileContentSentMail"];
590
+ __typename?: boolean;
591
+ }>;
592
+ ["FileContentBase"]: AliasType<{
593
+ parts?: ValueTypes["FileContentPart"];
594
+ key?: boolean;
595
+ md5?: boolean;
596
+ md5Encrypted?: boolean;
597
+ totalSize?: boolean;
598
+ type?: boolean;
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"]>;
602
+ __typename?: boolean;
603
+ }>;
604
+ ["FileContentCloud"]: AliasType<{
605
+ parts?: ValueTypes["FileContentPart"];
606
+ key?: boolean;
607
+ md5?: boolean;
608
+ md5Encrypted?: boolean;
609
+ totalSize?: boolean;
610
+ type?: boolean;
611
+ publicKey?: boolean;
612
+ __typename?: boolean;
613
+ }>;
614
+ ["FileContentPart"]: AliasType<{
615
+ contentUrl?: boolean;
616
+ order?: boolean;
617
+ md5?: boolean;
618
+ __typename?: boolean;
619
+ }>;
620
+ ["FileContentReceivedMail"]: AliasType<{
621
+ parts?: ValueTypes["FileContentPart"];
622
+ key?: boolean;
623
+ md5?: boolean;
624
+ md5Encrypted?: boolean;
625
+ totalSize?: boolean;
626
+ type?: boolean;
627
+ senderPublicKey?: boolean;
628
+ __typename?: boolean;
629
+ }>;
630
+ ["FileContentSentMail"]: AliasType<{
631
+ parts?: ValueTypes["FileContentPart"];
632
+ key?: boolean;
633
+ md5?: boolean;
634
+ md5Encrypted?: boolean;
635
+ totalSize?: boolean;
636
+ type?: boolean;
637
+ __typename?: boolean;
638
+ }>;
639
+ ["FileContentType"]: FileContentType;
640
+ ["FilePart"]: AliasType<{
641
+ id?: boolean;
642
+ file?: ValueTypes["File"];
643
+ fileId?: boolean;
644
+ size?: boolean;
645
+ order?: boolean;
646
+ md5?: boolean;
647
+ validatedAt?: boolean;
648
+ __typename?: boolean;
649
+ }>;
650
+ ["FilePartResponse"]: AliasType<{
651
+ fields?: boolean;
652
+ url?: boolean;
653
+ order?: boolean;
654
+ __typename?: boolean;
655
+ }>;
656
+ ["FileResponse"]: AliasType<{
657
+ fileId?: boolean;
658
+ parts?: ValueTypes["FilePartResponse"];
659
+ filePartSize?: boolean;
660
+ __typename?: boolean;
661
+ }>;
662
+ ["FileShared"]: AliasType<{
663
+ userId?: boolean;
664
+ message?: boolean;
665
+ appId?: boolean;
666
+ id?: boolean;
667
+ filename?: boolean;
668
+ size?: boolean;
669
+ sizeBefore?: boolean;
670
+ __typename?: boolean;
671
+ }>;
672
+ ["FileSharedContent"]: AliasType<{
673
+ ownerId?: boolean;
674
+ pubKey?: boolean;
675
+ message?: boolean;
676
+ appId?: boolean;
677
+ id?: boolean;
678
+ type?: boolean;
679
+ filename?: boolean;
680
+ contentUrl?: boolean;
681
+ key?: boolean;
682
+ size?: boolean;
683
+ sizeBefore?: boolean;
684
+ __typename?: boolean;
685
+ }>;
686
+ ["FilesOnMails"]: AliasType<{
687
+ file?: ValueTypes["File"];
688
+ fileKey?: boolean;
689
+ filename?: boolean;
690
+ mail?: ValueTypes["Mail"];
691
+ __typename?: boolean;
692
+ }>;
693
+ ["FilesOnUsersOnApplications"]: AliasType<{
694
+ file?: ValueTypes["File"];
695
+ userApp?: ValueTypes["ApplicationsOnUsers"];
696
+ key?: boolean;
697
+ __typename?: boolean;
698
+ }>;
699
+ ["Folder"]: AliasType<{
700
+ id?: boolean;
701
+ isFavorite?: boolean;
702
+ createdAt?: boolean;
703
+ deletedAt?: boolean;
704
+ updatedAt?: boolean;
705
+ createdBy?: ValueTypes["ApplicationsOnUsers"];
706
+ userApps?: ValueTypes["FoldersOnUsersOnApplications"];
707
+ userApp?: ValueTypes["FoldersOnUsersOnApplications"];
708
+ name?: boolean;
709
+ parentFolder?: ValueTypes["Folder"];
710
+ subfolders?: ValueTypes["Folder"];
711
+ vFiles?: ValueTypes["VFile"];
712
+ breadcrumb?: ValueTypes["FolderBreadcrumbItem"];
713
+ __typename?: boolean;
714
+ }>;
715
+ ["FolderBreadcrumbItem"]: AliasType<{
716
+ id?: boolean;
717
+ name?: boolean;
718
+ pubKey?: boolean;
719
+ nameKey?: boolean;
720
+ __typename?: boolean;
721
+ }>;
722
+ ["FolderSize"]: AliasType<{
723
+ size?: boolean;
724
+ sizeBefore?: boolean;
725
+ __typename?: boolean;
726
+ }>;
727
+ ["FoldersOnUsersOnApplications"]: AliasType<{
728
+ folder?: ValueTypes["Folder"];
729
+ userApp?: ValueTypes["ApplicationsOnUsers"];
730
+ rights?: boolean;
731
+ nameKey?: boolean;
732
+ isRoot?: boolean;
733
+ __typename?: boolean;
734
+ }>;
735
+ ["MailFileInput"]: {
736
+ id: string;
737
+ name: string;
738
+ fileKey: string;
739
+ };
740
+ ["MailRecipientInput"]: {
741
+ body: string;
742
+ subject: string;
743
+ recipientId: string;
744
+ files: ValueTypes["MailFileInput"][];
745
+ };
746
+ ["NameKeyInput"]: {
747
+ id: string;
748
+ nameKey: string;
749
+ files: ValueTypes["ShareFileKeyInput"][];
750
+ };
751
+ ["NameKeyInputFolders"]: {
752
+ id: string;
753
+ nameKey: string;
754
+ };
755
+ ["PayInput"]: {
756
+ type: ValueTypes["PayInputType"];
757
+ token: string;
758
+ firstName: string;
759
+ lastName: string;
760
+ street: string;
761
+ postalCode: string;
762
+ city: string;
763
+ country: string;
764
+ number: string;
765
+ month: string;
766
+ year: string;
767
+ cvv: string;
768
+ };
769
+ ["PayInputType"]: PayInputType;
770
+ ["ShareFileInHistoryInput"]: {
771
+ fileId: string;
772
+ users: ValueTypes["ShareFileKeyInput"][];
773
+ };
774
+ ["ShareFileKeyInput"]: {
775
+ id: string;
776
+ key: string;
777
+ };
778
+ ["ShareFoldersInput"]: {
779
+ folders: ValueTypes["NameKeyInputFolders"][];
780
+ vFiles: ValueTypes["NameKeyInput"][];
781
+ };
782
+ ["Limits"]: AliasType<{
783
+ downloadBandwidth?: boolean;
784
+ downloadCount?: boolean;
785
+ hardFileCount?: boolean;
786
+ hardFileSize?: boolean;
787
+ perFileSize?: boolean;
788
+ receivedMails?: ValueTypes["MailLimits"];
789
+ sentMails?: ValueTypes["MailLimits"];
790
+ uploadBandwidth?: boolean;
791
+ uploadCount?: boolean;
792
+ __typename?: boolean;
793
+ }>;
794
+ ["MailLimits"]: AliasType<{
795
+ count?: boolean;
796
+ fileCount?: boolean;
797
+ fileSize?: boolean;
798
+ hardCount?: boolean;
799
+ hardFileCount?: boolean;
800
+ hardFileSize?: boolean;
801
+ perFileSize?: boolean;
802
+ __typename?: boolean;
803
+ }>;
804
+ ["MailLimitsValues"]: AliasType<{
805
+ count?: boolean;
806
+ maxCount?: boolean;
807
+ fileCount?: boolean;
808
+ maxFileCount?: boolean;
809
+ fileSize?: boolean;
810
+ maxFileSize?: boolean;
811
+ __typename?: boolean;
812
+ }>;
813
+ ["QueryLimits"]: AliasType<{
814
+ cloud?: ValueTypes["CloudLimits"];
815
+ mail?: ValueTypes["UserMailLimits"];
816
+ __typename?: boolean;
817
+ }>;
818
+ ["UserMailLimits"]: AliasType<{
819
+ sent?: ValueTypes["MailLimitsValues"];
820
+ received?: ValueTypes["MailLimitsValues"];
821
+ __typename?: boolean;
822
+ }>;
823
+ ["Mail"]: AliasType<{
824
+ id?: boolean;
825
+ app?: ValueTypes["Application"];
826
+ body?: boolean;
827
+ createdAt?: boolean;
828
+ deletedAt?: boolean;
829
+ files?: ValueTypes["FilesOnMails"];
830
+ mailIntegrity?: ValueTypes["MailIntegrity"];
831
+ mailIntegrityDraft?: ValueTypes["MailIntegrityDraft"];
832
+ openedAt?: boolean;
833
+ recipient?: ValueTypes["User"];
834
+ sender?: ValueTypes["User"];
835
+ subject?: boolean;
836
+ type?: boolean;
837
+ recipients?: ValueTypes["User"];
838
+ __typename?: boolean;
839
+ }>;
840
+ ["MailIntegrity"]: AliasType<{
841
+ id?: boolean;
842
+ hash?: boolean;
843
+ hashKey?: boolean;
844
+ answers?: ValueTypes["MailIntegrity"];
845
+ app?: ValueTypes["Application"];
846
+ mails?: ValueTypes["Mail"];
847
+ recipients?: ValueTypes["User"];
848
+ temporaryRecipients?: ValueTypes["TemporaryUser"];
849
+ replyTo?: ValueTypes["MailIntegrity"];
850
+ __typename?: boolean;
851
+ }>;
852
+ ["MailIntegrityDraft"]: AliasType<{
853
+ id?: boolean;
854
+ hash?: boolean;
855
+ hashKey?: boolean;
856
+ app?: ValueTypes["Application"];
857
+ mail?: ValueTypes["Mail"];
858
+ recipients?: ValueTypes["User"];
859
+ temporaryRecipients?: ValueTypes["TemporaryUser"];
860
+ replyTo?: ValueTypes["MailIntegrity"];
861
+ __typename?: boolean;
862
+ }>;
863
+ ["Plan"]: AliasType<{
864
+ id?: boolean;
865
+ kind?: boolean;
866
+ codes?: boolean;
867
+ limits?: ValueTypes["Limits"];
868
+ __typename?: boolean;
869
+ }>;
870
+ ["Report"]: AliasType<{
871
+ id?: boolean;
872
+ user?: ValueTypes["User"];
873
+ reportedUser?: ValueTypes["User"];
874
+ customMessage?: boolean;
875
+ __typename?: boolean;
876
+ }>;
877
+ ["AddFileToHistoryResponse"]: AliasType<{
878
+ addFileToHistory?: ValueTypes["VFile"];
879
+ __typename?: boolean;
880
+ }>;
881
+ ["CancelPaymentResponse"]: AliasType<{
882
+ cancelPayment?: boolean;
883
+ __typename?: boolean;
884
+ }>;
885
+ ["ChangeUserPlanResponse"]: AliasType<{
886
+ changeUserPlan?: ValueTypes["User"];
887
+ __typename?: boolean;
888
+ }>;
889
+ ["CreateApplicationResponse"]: AliasType<{
890
+ createApplication?: boolean;
891
+ __typename?: boolean;
892
+ }>;
893
+ ["CreateDraftMailResponse"]: AliasType<{
894
+ createDraftMail?: ValueTypes["Mail"];
895
+ __typename?: boolean;
896
+ }>;
897
+ ["CreateFolderResponse"]: AliasType<{
898
+ createFolder?: ValueTypes["Folder"];
899
+ __typename?: boolean;
900
+ }>;
901
+ ["DbConfigMutationResponse"]: AliasType<{
902
+ dbConfigMutation?: boolean;
903
+ __typename?: boolean;
904
+ }>;
905
+ ["DbSetResponse"]: AliasType<{
906
+ dbSet?: boolean;
907
+ __typename?: boolean;
908
+ }>;
909
+ ["DeleteDraftMailResponse"]: AliasType<{
910
+ deleteDraftMail?: boolean;
911
+ __typename?: boolean;
912
+ }>;
913
+ ["DeleteFileResponse"]: AliasType<{
914
+ deleteFile?: boolean;
915
+ __typename?: boolean;
916
+ }>;
917
+ ["DeleteFolderResponse"]: AliasType<{
918
+ deleteFolder?: boolean;
919
+ __typename?: boolean;
920
+ }>;
921
+ ["DeleteFolderCloudTrashResponse"]: AliasType<{
922
+ deleteFolderCloudTrash?: boolean;
923
+ __typename?: boolean;
924
+ }>;
925
+ ["DeleteFolderSharingResponse"]: AliasType<{
926
+ deleteFolderSharing?: boolean;
927
+ __typename?: boolean;
928
+ }>;
929
+ ["DeleteMailResponse"]: AliasType<{
930
+ deleteMail?: boolean;
931
+ __typename?: boolean;
932
+ }>;
933
+ ["DeleteMailTrashResponse"]: AliasType<{
934
+ deleteMailTrash?: boolean;
935
+ __typename?: boolean;
936
+ }>;
937
+ ["DeleteUserResponse"]: AliasType<{
938
+ deleteUser?: boolean;
939
+ __typename?: boolean;
940
+ }>;
941
+ ["DeleteVFileResponse"]: AliasType<{
942
+ deleteVFile?: boolean;
943
+ __typename?: boolean;
944
+ }>;
945
+ ["DeleteVFileCloudTrashResponse"]: AliasType<{
946
+ deleteVFileCloudTrash?: boolean;
947
+ __typename?: boolean;
948
+ }>;
949
+ ["DeleteVFileSharingResponse"]: AliasType<{
950
+ deleteVFileSharing?: boolean;
951
+ __typename?: boolean;
952
+ }>;
953
+ ["DuplicateVFileResponse"]: AliasType<{
954
+ duplicateVFile?: boolean;
955
+ __typename?: boolean;
956
+ }>;
957
+ ["EmptyCloudTrashResponse"]: AliasType<{
958
+ emptyCloudTrash?: boolean;
959
+ __typename?: boolean;
960
+ }>;
961
+ ["EmptyMailTrashResponse"]: AliasType<{
962
+ emptyMailTrash?: boolean;
963
+ __typename?: boolean;
964
+ }>;
965
+ ["LogoutResponse"]: AliasType<{
966
+ logout?: boolean;
967
+ __typename?: boolean;
968
+ }>;
969
+ ["MoveFilesResponse"]: AliasType<{
970
+ moveFiles?: boolean;
971
+ __typename?: boolean;
972
+ }>;
973
+ ["MoveFoldersResponse"]: AliasType<{
974
+ moveFolders?: boolean;
975
+ __typename?: boolean;
976
+ }>;
977
+ ["PayResponse"]: AliasType<{
978
+ pay?: boolean;
979
+ __typename?: boolean;
980
+ }>;
981
+ ["ReadMailResponse"]: AliasType<{
982
+ readMail?: boolean;
983
+ __typename?: boolean;
984
+ }>;
985
+ ["RecoverFolderResponse"]: AliasType<{
986
+ recoverFolder?: boolean;
987
+ __typename?: boolean;
988
+ }>;
989
+ ["RecoverMailResponse"]: AliasType<{
990
+ recoverMail?: boolean;
991
+ __typename?: boolean;
992
+ }>;
993
+ ["RecoverVFileResponse"]: AliasType<{
994
+ recoverVFile?: boolean;
995
+ __typename?: boolean;
996
+ }>;
997
+ ["SaveInCloudResponse"]: AliasType<{
998
+ saveInCloud?: ValueTypes["VFile"];
999
+ __typename?: boolean;
1000
+ }>;
1001
+ ["SendDraftMailResponse"]: AliasType<{
1002
+ sendDraftMail?: boolean;
1003
+ __typename?: boolean;
1004
+ }>;
1005
+ ["SendOneMailResponse"]: AliasType<{
1006
+ sendOneMail?: boolean;
1007
+ __typename?: boolean;
1008
+ }>;
1009
+ ["SendReportResponse"]: AliasType<{
1010
+ sendReport?: ValueTypes["Report"];
1011
+ __typename?: boolean;
1012
+ }>;
1013
+ ["ShareFileInHistoryResponse"]: AliasType<{
1014
+ shareFileInHistory?: boolean;
1015
+ __typename?: boolean;
1016
+ }>;
1017
+ ["ShareFolderFinishResponse"]: AliasType<{
1018
+ shareFolderFinish?: boolean;
1019
+ __typename?: boolean;
1020
+ }>;
1021
+ ["ShareVFileResponse"]: AliasType<{
1022
+ shareVFile?: boolean;
1023
+ __typename?: boolean;
1024
+ }>;
1025
+ ["UnreadMailResponse"]: AliasType<{
1026
+ unreadMail?: boolean;
1027
+ __typename?: boolean;
1028
+ }>;
1029
+ ["UpdateAppNotificationsResponse"]: AliasType<{
1030
+ updateAppNotifications?: ValueTypes["UserAppNotifications"];
1031
+ __typename?: boolean;
1032
+ }>;
1033
+ ["UpdateAppSettingsResponse"]: AliasType<{
1034
+ updateAppSettings?: ValueTypes["UserAppSettings"];
1035
+ __typename?: boolean;
1036
+ }>;
1037
+ ["UpdateDraftMailResponse"]: AliasType<{
1038
+ updateDraftMail?: ValueTypes["Mail"];
1039
+ __typename?: boolean;
1040
+ }>;
1041
+ ["UpdateFileResponse"]: AliasType<{
1042
+ updateFile?: ValueTypes["VFile"];
1043
+ __typename?: boolean;
1044
+ }>;
1045
+ ["UpdateFolderResponse"]: AliasType<{
1046
+ updateFolder?: ValueTypes["Folder"];
1047
+ __typename?: boolean;
1048
+ }>;
1049
+ ["UpdateProfileResponse"]: AliasType<{
1050
+ updateProfile?: ValueTypes["User"];
1051
+ __typename?: boolean;
1052
+ }>;
1053
+ ["UploadAnonymousResponse"]: AliasType<{
1054
+ uploadAnonymous?: ValueTypes["FileResponse"];
1055
+ __typename?: boolean;
1056
+ }>;
1057
+ ["UploadFileResponse"]: AliasType<{
1058
+ uploadFile?: ValueTypes["FileResponse"];
1059
+ __typename?: boolean;
1060
+ }>;
1061
+ ["UploadFileEndResponse"]: AliasType<{
1062
+ uploadFileEnd?: boolean;
1063
+ __typename?: boolean;
1064
+ }>;
1065
+ ["UploadFilePartEndResponse"]: AliasType<{
1066
+ uploadFilePartEnd?: boolean;
1067
+ __typename?: boolean;
1068
+ }>;
1069
+ ["BlogResponse"]: AliasType<{
1070
+ blogItems?: ValueTypes["BlogItem"];
1071
+ __typename?: boolean;
1072
+ }>;
1073
+ ["DbConfigResponse"]: AliasType<{
1074
+ json?: boolean;
1075
+ __typename?: boolean;
1076
+ }>;
1077
+ ["DbGetResponse"]: AliasType<{
1078
+ json?: boolean;
1079
+ __typename?: boolean;
1080
+ }>;
1081
+ ["DbSearchResponse"]: AliasType<{
1082
+ json?: boolean;
1083
+ __typename?: boolean;
1084
+ }>;
1085
+ ["DeletedFoldersResponse"]: AliasType<{
1086
+ deletedFolders?: ValueTypes["Folder"];
1087
+ __typename?: boolean;
1088
+ }>;
1089
+ ["DeletedMailsResponse"]: AliasType<{
1090
+ deletedMails?: ValueTypes["Mail"];
1091
+ __typename?: boolean;
1092
+ }>;
1093
+ ["DeletedVFilesResponse"]: AliasType<{
1094
+ deletedVFiles?: ValueTypes["VFile"];
1095
+ __typename?: boolean;
1096
+ }>;
1097
+ ["FaqResponse"]: AliasType<{
1098
+ faq?: ValueTypes["FaqItem"];
1099
+ __typename?: boolean;
1100
+ }>;
1101
+ ["FileQueryResponse"]: AliasType<{
1102
+ file?: ValueTypes["File"];
1103
+ __typename?: boolean;
1104
+ }>;
1105
+ ["FileContentResponse"]: AliasType<{
1106
+ file?: ValueTypes["FileContent"];
1107
+ __typename?: boolean;
1108
+ }>;
1109
+ ["FolderResponse"]: AliasType<{
1110
+ folder?: ValueTypes["Folder"];
1111
+ __typename?: boolean;
1112
+ }>;
1113
+ ["FolderSharedWithMeResponse"]: AliasType<{
1114
+ foldersSharedWithMe?: ValueTypes["Folder"];
1115
+ __typename?: boolean;
1116
+ }>;
1117
+ ["FolderSizeResponse"]: AliasType<{
1118
+ size?: boolean;
1119
+ sizeBefore?: boolean;
1120
+ __typename?: boolean;
1121
+ }>;
1122
+ ["QueryMailResponse"]: AliasType<{
1123
+ mail?: ValueTypes["Mail"];
1124
+ __typename?: boolean;
1125
+ }>;
1126
+ ["PaymentInfosResponse"]: AliasType<{
1127
+ paymentInfos?: ValueTypes["PaymentInfos"];
1128
+ __typename?: boolean;
1129
+ }>;
1130
+ ["PlanResponse"]: AliasType<{
1131
+ plan?: ValueTypes["Plan"];
1132
+ __typename?: boolean;
1133
+ }>;
1134
+ ["SharedFoldersResponse"]: AliasType<{
1135
+ sharedFolders?: ValueTypes["Folder"];
1136
+ __typename?: boolean;
1137
+ }>;
1138
+ ["SharedVFilesResponse"]: AliasType<{
1139
+ sharedVFiles?: ValueTypes["VFile"];
1140
+ __typename?: boolean;
1141
+ }>;
1142
+ ["UnreadReceivedMailsCountResponse"]: AliasType<{
1143
+ count?: boolean;
1144
+ __typename?: boolean;
1145
+ }>;
1146
+ ["UserResponse"]: AliasType<{
1147
+ user?: ValueTypes["User"];
1148
+ __typename?: boolean;
1149
+ }>;
1150
+ ["UserListResponse"]: AliasType<{
1151
+ userList?: ValueTypes["User"];
1152
+ __typename?: boolean;
1153
+ }>;
1154
+ ["VFileResponse"]: AliasType<{
1155
+ vFile?: ValueTypes["VFile"];
1156
+ __typename?: boolean;
1157
+ }>;
1158
+ ["VFilesSharedWithMeResponse"]: AliasType<{
1159
+ vFilesSharedWithMe?: ValueTypes["VFile"];
1160
+ __typename?: boolean;
1161
+ }>;
1162
+ ["TemporaryUser"]: AliasType<{
1163
+ id?: boolean;
1164
+ mails?: ValueTypes["MailIntegrity"];
1165
+ draftMails?: ValueTypes["MailIntegrityDraft"];
1166
+ email?: boolean;
1167
+ __typename?: boolean;
1168
+ }>;
1169
+ ["User"]: AliasType<{
1170
+ id?: boolean;
1171
+ deletedAt?: boolean;
1172
+ lang?: boolean;
1173
+ reportSent?: ValueTypes["Report"];
1174
+ godFather?: ValueTypes["User"];
1175
+ godChildren?: ValueTypes["User"];
1176
+ firstname?: boolean;
1177
+ lastname?: boolean;
1178
+ email?: boolean;
1179
+ phone?: boolean;
1180
+ lastLogin?: boolean;
1181
+ role?: boolean;
1182
+ sessions?: ValueTypes["UserSession"];
1183
+ createdAt?: boolean;
1184
+ receivedMails?: ValueTypes["Mail"];
1185
+ waitingReceivedMails?: ValueTypes["WaitingReceivedMail"];
1186
+ sentMails?: ValueTypes["Mail"];
1187
+ draftMails?: ValueTypes["Mail"];
1188
+ appSettings?: ValueTypes["UserAppSettings"];
1189
+ applications?: ValueTypes["ApplicationsOnUsers"];
1190
+ publicKey?: boolean;
1191
+ __typename?: boolean;
1192
+ }>;
1193
+ ["UserAppNotifications"]: AliasType<{
1194
+ id?: boolean;
1195
+ enableAll?: boolean;
1196
+ mail?: boolean;
1197
+ cloud?: boolean;
1198
+ disableAllUntil?: boolean;
1199
+ __typename?: boolean;
1200
+ }>;
1201
+ ["UserAppSettings"]: AliasType<{
1202
+ id?: boolean;
1203
+ cloudFileDaysForDelete?: boolean;
1204
+ cloudFolderDaysForDelete?: boolean;
1205
+ historyFileDaysForDelete?: boolean;
1206
+ historyMaxFileCount?: boolean;
1207
+ autoDisconnectDelay?: boolean;
1208
+ __typename?: boolean;
1209
+ }>;
1210
+ ["UserSession"]: AliasType<{
1211
+ id?: boolean;
1212
+ appSessions?: ValueTypes["AppSession"];
1213
+ lastActivity?: boolean;
1214
+ userAgent?: boolean;
1215
+ ip?: boolean;
1216
+ city?: boolean;
1217
+ country?: boolean;
1218
+ createdAt?: boolean;
1219
+ __typename?: boolean;
1220
+ }>;
1221
+ ["VFile"]: AliasType<{
1222
+ id?: boolean;
1223
+ isFavorite?: boolean;
1224
+ createdAt?: boolean;
1225
+ deletedAt?: boolean;
1226
+ filename?: boolean;
1227
+ userApps?: ValueTypes["VFilesOnUsersOnApplications"];
1228
+ createdBy?: ValueTypes["ApplicationsOnUsers"];
1229
+ userApp?: ValueTypes["VFilesOnUsersOnApplications"];
1230
+ folder?: ValueTypes["Folder"];
1231
+ history?: ValueTypes["File"];
1232
+ current?: ValueTypes["File"];
1233
+ updatedAt?: boolean;
1234
+ __typename?: boolean;
1235
+ }>;
1236
+ ["VFilesOnUsersOnApplications"]: AliasType<{
1237
+ vFile?: ValueTypes["VFile"];
1238
+ userApp?: ValueTypes["ApplicationsOnUsers"];
1239
+ rights?: boolean;
1240
+ nameKey?: boolean;
1241
+ isRoot?: boolean;
1242
+ __typename?: boolean;
1243
+ }>;
1244
+ ["WaitingReceivedMail"]: AliasType<{
1245
+ sender?: ValueTypes["User"];
1246
+ date?: boolean;
1247
+ recipients?: ValueTypes["User"];
1248
+ temporaryRecipients?: ValueTypes["TemporaryUser"];
1249
+ attachmentsCount?: boolean;
1250
+ __typename?: boolean;
1251
+ }>;
1252
+ ["PaymentInfos"]: AliasType<{
1253
+ hostedUrl?: boolean;
1254
+ currentSubscription?: ValueTypes["RecurlySubscription"];
1255
+ invoices?: ValueTypes["RecurlyInvoices"];
1256
+ __typename?: boolean;
1257
+ }>;
1258
+ ["RecurlyInvoices"]: AliasType<{
1259
+ pdf?: boolean;
1260
+ date?: boolean;
1261
+ due?: boolean;
1262
+ status?: boolean;
1263
+ total?: boolean;
1264
+ name?: boolean;
1265
+ currency?: boolean;
1266
+ __typename?: boolean;
1267
+ }>;
1268
+ ["RecurlySubscription"]: AliasType<{
1269
+ autorenew?: boolean;
1270
+ activatedAt?: boolean;
1271
+ currentPeriodEndsAt?: boolean;
1272
+ currentPeriodStartedAt?: boolean;
1273
+ canceledAt?: boolean;
1274
+ createdAt?: boolean;
1275
+ expiresAt?: boolean;
1276
+ pausedAt?: boolean;
1277
+ trialEndsAt?: boolean;
1278
+ trialStartedAt?: boolean;
1279
+ updatedAt?: boolean;
1280
+ state?: boolean;
1281
+ collectionMethod?: boolean;
1282
+ plan?: boolean;
1283
+ planCode?: boolean;
1284
+ total?: boolean;
1285
+ __typename?: boolean;
1286
+ }>;
1287
+ ["ShareFolderResponse"]: AliasType<{
1288
+ folders?: boolean;
1289
+ vFiles?: boolean;
1290
+ __typename?: boolean;
1291
+ }>;
1292
+ ["Query"]: AliasType<{
1293
+ appNotifications?: ValueTypes["AppNotificationsResult"];
1294
+ blog?: [{
1295
+ lang?: ValueTypes["Lang"] | null;
1296
+ }, ValueTypes["BlogResult"]];
1297
+ dbConfig?: [{
1298
+ appCode: string;
1299
+ }, ValueTypes["DbConfigResult"]];
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"];
1356
+ test?: boolean;
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
+ }>;
1693
+ };
1694
+ declare type GraphQLTypes = {
1695
+ ["BigInt"]: any;
1696
+ ["Bytes"]: any;
1697
+ ["DateTime"]: any;
1698
+ ["Decimal"]: any;
1699
+ ["Json"]: any;
1700
+ ["Lang"]: Lang;
1701
+ ["PlanKind"]: PlanKind;
1702
+ ["UserRole"]: UserRole;
1703
+ ["MailType"]: MailType$1;
1704
+ ["Rights"]: Rights;
1705
+ ["AppNotificationsResult"]: {
1706
+ __typename: "UserAppNotifications" | "ErrorAccessDenied" | "ErrorNotFound";
1707
+ ["...on UserAppNotifications"]: "__union" & GraphQLTypes["UserAppNotifications"];
1708
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1709
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
1710
+ };
1711
+ ["BlogResult"]: {
1712
+ __typename: "BlogResponse" | "ErrorLangNotExist";
1713
+ ["...on BlogResponse"]: "__union" & GraphQLTypes["BlogResponse"];
1714
+ ["...on ErrorLangNotExist"]: "__union" & GraphQLTypes["ErrorLangNotExist"];
1715
+ };
1716
+ ["DbConfigResult"]: {
1717
+ __typename: "DbConfigResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorNotFound";
1718
+ ["...on DbConfigResponse"]: "__union" & GraphQLTypes["DbConfigResponse"];
1719
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1720
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1721
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
1722
+ };
1723
+ ["DbGetResult"]: {
1724
+ __typename: "DbGetResponse" | "ErrorAccessDenied" | "ErrorNotFound" | "ErrorNotExist";
1725
+ ["...on DbGetResponse"]: "__union" & GraphQLTypes["DbGetResponse"];
1726
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1727
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
1728
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1729
+ };
1730
+ ["DbSearchResult"]: {
1731
+ __typename: "DbSearchResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorBasic";
1732
+ ["...on DbSearchResponse"]: "__union" & GraphQLTypes["DbSearchResponse"];
1733
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1734
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1735
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
1736
+ };
1737
+ ["DeletedFoldersResult"]: {
1738
+ __typename: "DeletedFoldersResponse" | "ErrorAccessDenied";
1739
+ ["...on DeletedFoldersResponse"]: "__union" & GraphQLTypes["DeletedFoldersResponse"];
1740
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1741
+ };
1742
+ ["DeletedMailsResult"]: {
1743
+ __typename: "DeletedMailsResponse" | "ErrorAccessDenied";
1744
+ ["...on DeletedMailsResponse"]: "__union" & GraphQLTypes["DeletedMailsResponse"];
1745
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1746
+ };
1747
+ ["DeletedVFilesResult"]: {
1748
+ __typename: "DeletedVFilesResponse" | "ErrorAccessDenied";
1749
+ ["...on DeletedVFilesResponse"]: "__union" & GraphQLTypes["DeletedVFilesResponse"];
1750
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1751
+ };
1752
+ ["FaqResult"]: {
1753
+ __typename: "FaqResponse" | "ErrorAccessDenied";
1754
+ ["...on FaqResponse"]: "__union" & GraphQLTypes["FaqResponse"];
1755
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1756
+ };
1757
+ ["FileResult"]: {
1758
+ __typename: "FileQueryResponse" | "ErrorAccessDenied";
1759
+ ["...on FileQueryResponse"]: "__union" & GraphQLTypes["FileQueryResponse"];
1760
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1761
+ };
1762
+ ["FileContentResult"]: {
1763
+ __typename: "FileContentResponse" | "ErrorAccessDenied" | "ErrorBasic";
1764
+ ["...on FileContentResponse"]: "__union" & GraphQLTypes["FileContentResponse"];
1765
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1766
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
1767
+ };
1768
+ ["FolderResult"]: {
1769
+ __typename: "FolderResponse" | "ErrorAccessDenied";
1770
+ ["...on FolderResponse"]: "__union" & GraphQLTypes["FolderResponse"];
1771
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1772
+ };
1773
+ ["FolderSizeResult"]: {
1774
+ __typename: "FolderSizeResponse" | "ErrorAccessDenied";
1775
+ ["...on FolderSizeResponse"]: "__union" & GraphQLTypes["FolderSizeResponse"];
1776
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1777
+ };
1778
+ ["FoldersSharedWithMeResult"]: {
1779
+ __typename: "FolderSharedWithMeResponse" | "ErrorAccessDenied";
1780
+ ["...on FolderSharedWithMeResponse"]: "__union" & GraphQLTypes["FolderSharedWithMeResponse"];
1781
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1782
+ };
1783
+ ["LimitsResult"]: {
1784
+ __typename: "QueryLimits" | "ErrorAccessDenied" | "ErrorNotFound" | "ErrorNotExist" | "ErrorLimit";
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"];
1790
+ };
1791
+ ["MailResult"]: {
1792
+ __typename: "QueryMailResponse" | "ErrorAccessDenied";
1793
+ ["...on QueryMailResponse"]: "__union" & GraphQLTypes["QueryMailResponse"];
1794
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1795
+ };
1796
+ ["PaymentInfosResult"]: {
1797
+ __typename: "PaymentInfosResponse" | "ErrorAccessDenied";
1798
+ ["...on PaymentInfosResponse"]: "__union" & GraphQLTypes["PaymentInfosResponse"];
1799
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1800
+ };
1801
+ ["PlansResult"]: {
1802
+ __typename: "PlanResponse";
1803
+ ["...on PlanResponse"]: "__union" & GraphQLTypes["PlanResponse"];
1804
+ };
1805
+ ["SharedFoldersResult"]: {
1806
+ __typename: "SharedFoldersResponse" | "ErrorAccessDenied";
1807
+ ["...on SharedFoldersResponse"]: "__union" & GraphQLTypes["SharedFoldersResponse"];
1808
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1809
+ };
1810
+ ["SharedVFilesResult"]: {
1811
+ __typename: "SharedVFilesResponse" | "ErrorAccessDenied";
1812
+ ["...on SharedVFilesResponse"]: "__union" & GraphQLTypes["SharedVFilesResponse"];
1813
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1814
+ };
1815
+ ["UnreadReceivedMailsCountResult"]: {
1816
+ __typename: "UnreadReceivedMailsCountResponse" | "ErrorAccessDenied";
1817
+ ["...on UnreadReceivedMailsCountResponse"]: "__union" & GraphQLTypes["UnreadReceivedMailsCountResponse"];
1818
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1819
+ };
1820
+ ["UserResult"]: {
1821
+ __typename: "UserResponse" | "ErrorNotFound";
1822
+ ["...on UserResponse"]: "__union" & GraphQLTypes["UserResponse"];
1823
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
1824
+ };
1825
+ ["VFileResult"]: {
1826
+ __typename: "VFileResponse" | "ErrorAccessDenied";
1827
+ ["...on VFileResponse"]: "__union" & GraphQLTypes["VFileResponse"];
1828
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1829
+ };
1830
+ ["VFilesSharedWithMeResult"]: {
1831
+ __typename: "VFilesSharedWithMeResponse" | "ErrorAccessDenied";
1832
+ ["...on VFilesSharedWithMeResponse"]: "__union" & GraphQLTypes["VFilesSharedWithMeResponse"];
1833
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1834
+ };
1835
+ ["UserListResult"]: {
1836
+ __typename: "UserListResponse" | "ErrorAccessDenied";
1837
+ ["...on UserListResponse"]: "__union" & GraphQLTypes["UserListResponse"];
1838
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1839
+ };
1840
+ ["AddFileToHistoryResult"]: {
1841
+ __typename: "AddFileToHistoryResponse" | "ErrorAccessDenied" | "ErrorNotExist";
1842
+ ["...on AddFileToHistoryResponse"]: "__union" & GraphQLTypes["AddFileToHistoryResponse"];
1843
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1844
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1845
+ };
1846
+ ["CancelPaymentResult"]: {
1847
+ __typename: "CancelPaymentResponse" | "ErrorAccessDenied";
1848
+ ["...on CancelPaymentResponse"]: "__union" & GraphQLTypes["CancelPaymentResponse"];
1849
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1850
+ };
1851
+ ["CreateApplicationResult"]: {
1852
+ __typename: "CreateApplicationResponse" | "ErrorNotExist";
1853
+ ["...on CreateApplicationResponse"]: "__union" & GraphQLTypes["CreateApplicationResponse"];
1854
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1855
+ };
1856
+ ["CreateDraftMailResult"]: {
1857
+ __typename: "CreateDraftMailResponse" | "ErrorAccessDenied" | "ErrorBasic";
1858
+ ["...on CreateDraftMailResponse"]: "__union" & GraphQLTypes["CreateDraftMailResponse"];
1859
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1860
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
1861
+ };
1862
+ ["CreateFolderResult"]: {
1863
+ __typename: "CreateFolderResponse" | "ErrorAccessDenied" | "ErrorNotExist";
1864
+ ["...on CreateFolderResponse"]: "__union" & GraphQLTypes["CreateFolderResponse"];
1865
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1866
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1867
+ };
1868
+ ["DbConfigMutationResult"]: {
1869
+ __typename: "DbConfigMutationResponse" | "ErrorAccessDenied";
1870
+ ["...on DbConfigMutationResponse"]: "__union" & GraphQLTypes["DbConfigMutationResponse"];
1871
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1872
+ };
1873
+ ["DbSetResult"]: {
1874
+ __typename: "DbSetResponse" | "ErrorAccessDenied" | "ErrorNotFound";
1875
+ ["...on DbSetResponse"]: "__union" & GraphQLTypes["DbSetResponse"];
1876
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1877
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
1878
+ };
1879
+ ["DeleteDraftMailResult"]: {
1880
+ __typename: "DeleteDraftMailResponse" | "ErrorAccessDenied";
1881
+ ["...on DeleteDraftMailResponse"]: "__union" & GraphQLTypes["DeleteDraftMailResponse"];
1882
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1883
+ };
1884
+ ["DeleteFileResult"]: {
1885
+ __typename: "DeleteFileResponse" | "ErrorAccessDenied" | "ErrorNotExist";
1886
+ ["...on DeleteFileResponse"]: "__union" & GraphQLTypes["DeleteFileResponse"];
1887
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1888
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1889
+ };
1890
+ ["DeleteFolderResult"]: {
1891
+ __typename: "DeleteFolderResponse" | "ErrorAccessDenied" | "ErrorNotExist";
1892
+ ["...on DeleteFolderResponse"]: "__union" & GraphQLTypes["DeleteFolderResponse"];
1893
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1894
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1895
+ };
1896
+ ["DeleteFolderCloudTrashResult"]: {
1897
+ __typename: "DeleteFolderCloudTrashResponse" | "ErrorAccessDenied";
1898
+ ["...on DeleteFolderCloudTrashResponse"]: "__union" & GraphQLTypes["DeleteFolderCloudTrashResponse"];
1899
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1900
+ };
1901
+ ["DeleteFolderSharingResult"]: {
1902
+ __typename: "DeleteFolderSharingResponse" | "ErrorAccessDenied";
1903
+ ["...on DeleteFolderSharingResponse"]: "__union" & GraphQLTypes["DeleteFolderSharingResponse"];
1904
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1905
+ };
1906
+ ["DeleteMailResult"]: {
1907
+ __typename: "DeleteMailResponse" | "ErrorAccessDenied";
1908
+ ["...on DeleteMailResponse"]: "__union" & GraphQLTypes["DeleteMailResponse"];
1909
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1910
+ };
1911
+ ["DeleteMailTrashResult"]: {
1912
+ __typename: "DeleteMailTrashResponse" | "ErrorAccessDenied";
1913
+ ["...on DeleteMailTrashResponse"]: "__union" & GraphQLTypes["DeleteMailTrashResponse"];
1914
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1915
+ };
1916
+ ["DeleteUserResult"]: {
1917
+ __typename: "DeleteUserResponse" | "ErrorAccessDenied";
1918
+ ["...on DeleteUserResponse"]: "__union" & GraphQLTypes["DeleteUserResponse"];
1919
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1920
+ };
1921
+ ["DeleteVFileResult"]: {
1922
+ __typename: "DeleteVFileResponse" | "ErrorAccessDenied" | "ErrorNotExist";
1923
+ ["...on DeleteVFileResponse"]: "__union" & GraphQLTypes["DeleteVFileResponse"];
1924
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1925
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1926
+ };
1927
+ ["DeleteVFileCloudTrashResult"]: {
1928
+ __typename: "DeleteVFileCloudTrashResponse" | "ErrorAccessDenied";
1929
+ ["...on DeleteVFileCloudTrashResponse"]: "__union" & GraphQLTypes["DeleteVFileCloudTrashResponse"];
1930
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1931
+ };
1932
+ ["DeleteVFileSharingResult"]: {
1933
+ __typename: "DeleteVFileSharingResponse" | "ErrorAccessDenied" | "ErrorNotExist";
1934
+ ["...on DeleteVFileSharingResponse"]: "__union" & GraphQLTypes["DeleteVFileSharingResponse"];
1935
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1936
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1937
+ };
1938
+ ["DuplicateVFileResult"]: {
1939
+ __typename: "DuplicateVFileResponse" | "ErrorAccessDenied" | "ErrorNotFound";
1940
+ ["...on DuplicateVFileResponse"]: "__union" & GraphQLTypes["DuplicateVFileResponse"];
1941
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1942
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
1943
+ };
1944
+ ["EmptyCloudTrashResult"]: {
1945
+ __typename: "DeleteMailResponse" | "ErrorAccessDenied";
1946
+ ["...on DeleteMailResponse"]: "__union" & GraphQLTypes["DeleteMailResponse"];
1947
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1948
+ };
1949
+ ["EmptyMailTrashResult"]: {
1950
+ __typename: "EmptyMailTrashResponse" | "ErrorAccessDenied";
1951
+ ["...on EmptyMailTrashResponse"]: "__union" & GraphQLTypes["EmptyMailTrashResponse"];
1952
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1953
+ };
1954
+ ["LogoutResult"]: {
1955
+ __typename: "LogoutResponse" | "ErrorAccessDenied" | "ErrorBasic";
1956
+ ["...on LogoutResponse"]: "__union" & GraphQLTypes["LogoutResponse"];
1957
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1958
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
1959
+ };
1960
+ ["MoveFilesResult"]: {
1961
+ __typename: "MoveFilesResponse" | "ErrorAccessDenied";
1962
+ ["...on MoveFilesResponse"]: "__union" & GraphQLTypes["MoveFilesResponse"];
1963
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1964
+ };
1965
+ ["MoveFoldersResult"]: {
1966
+ __typename: "MoveFoldersResponse" | "ErrorAccessDenied";
1967
+ ["...on MoveFoldersResponse"]: "__union" & GraphQLTypes["MoveFoldersResponse"];
1968
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1969
+ };
1970
+ ["PayResult"]: {
1971
+ __typename: "PayResponse" | "ErrorAccessDenied";
1972
+ ["...on PayResponse"]: "__union" & GraphQLTypes["PayResponse"];
1973
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1974
+ };
1975
+ ["ReadMailResult"]: {
1976
+ __typename: "ReadMailResponse" | "ErrorAccessDenied" | "ErrorBasic" | "ErrorNotFound";
1977
+ ["...on ReadMailResponse"]: "__union" & GraphQLTypes["ReadMailResponse"];
1978
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1979
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
1980
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
1981
+ };
1982
+ ["RecoverFolderResult"]: {
1983
+ __typename: "RecoverFolderResponse" | "ErrorAccessDenied" | "ErrorNotExist";
1984
+ ["...on RecoverFolderResponse"]: "__union" & GraphQLTypes["RecoverFolderResponse"];
1985
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1986
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1987
+ };
1988
+ ["RecoverMailResult"]: {
1989
+ __typename: "RecoverMailResponse" | "ErrorAccessDenied" | "ErrorBasic";
1990
+ ["...on RecoverMailResponse"]: "__union" & GraphQLTypes["RecoverMailResponse"];
1991
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1992
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
1993
+ };
1994
+ ["RecoverVFileResult"]: {
1995
+ __typename: "RecoverVFileResponse" | "ErrorAccessDenied" | "ErrorNotExist";
1996
+ ["...on RecoverVFileResponse"]: "__union" & GraphQLTypes["RecoverVFileResponse"];
1997
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
1998
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
1999
+ };
2000
+ ["SaveInCloudResult"]: {
2001
+ __typename: "SaveInCloudResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorBasic";
2002
+ ["...on SaveInCloudResponse"]: "__union" & GraphQLTypes["SaveInCloudResponse"];
2003
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2004
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
2005
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
2006
+ };
2007
+ ["SendDraftMailResult"]: {
2008
+ __typename: "SendDraftMailResponse" | "ErrorAccessDenied" | "ErrorBasic";
2009
+ ["...on SendDraftMailResponse"]: "__union" & GraphQLTypes["SendDraftMailResponse"];
2010
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2011
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
2012
+ };
2013
+ ["SendOneMailResult"]: {
2014
+ __typename: "RecoverFolderResponse" | "ErrorAccessDenied" | "ErrorBasic";
2015
+ ["...on RecoverFolderResponse"]: "__union" & GraphQLTypes["RecoverFolderResponse"];
2016
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2017
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
2018
+ };
2019
+ ["SendReportResult"]: {
2020
+ __typename: "SendReportResponse" | "ErrorAccessDenied" | "ErrorNotFound";
2021
+ ["...on SendReportResponse"]: "__union" & GraphQLTypes["SendReportResponse"];
2022
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2023
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
2024
+ };
2025
+ ["ShareFileInHistoryResult"]: {
2026
+ __typename: "ShareFileInHistoryResponse" | "ErrorAccessDenied" | "ErrorNotFound";
2027
+ ["...on ShareFileInHistoryResponse"]: "__union" & GraphQLTypes["ShareFileInHistoryResponse"];
2028
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2029
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
2030
+ };
2031
+ ["ShareFolderResult"]: {
2032
+ __typename: "ShareFolderResponse" | "ErrorAccessDenied" | "ErrorNotFound";
2033
+ ["...on ShareFolderResponse"]: "__union" & GraphQLTypes["ShareFolderResponse"];
2034
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2035
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
2036
+ };
2037
+ ["ShareFolderFinishResult"]: {
2038
+ __typename: "ShareFolderFinishResponse" | "ErrorAccessDenied" | "ErrorNotFound";
2039
+ ["...on ShareFolderFinishResponse"]: "__union" & GraphQLTypes["ShareFolderFinishResponse"];
2040
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2041
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
2042
+ };
2043
+ ["ShareVFileResult"]: {
2044
+ __typename: "ShareVFileResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorNotFound";
2045
+ ["...on ShareVFileResponse"]: "__union" & GraphQLTypes["ShareVFileResponse"];
2046
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2047
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
2048
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
2049
+ };
2050
+ ["UnreadMailResult"]: {
2051
+ __typename: "UnreadMailResponse" | "ErrorAccessDenied" | "ErrorNotFound" | "ErrorBasic";
2052
+ ["...on UnreadMailResponse"]: "__union" & GraphQLTypes["UnreadMailResponse"];
2053
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2054
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
2055
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
2056
+ };
2057
+ ["UpdateAppNotificationsResult"]: {
2058
+ __typename: "UpdateAppNotificationsResponse" | "ErrorAccessDenied";
2059
+ ["...on UpdateAppNotificationsResponse"]: "__union" & GraphQLTypes["UpdateAppNotificationsResponse"];
2060
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2061
+ };
2062
+ ["UpdateAppSettingsResult"]: {
2063
+ __typename: "UpdateAppSettingsResponse" | "ErrorAccessDenied" | "ErrorBasic";
2064
+ ["...on UpdateAppSettingsResponse"]: "__union" & GraphQLTypes["UpdateAppSettingsResponse"];
2065
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2066
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
2067
+ };
2068
+ ["UpdateDraftMailResult"]: {
2069
+ __typename: "UpdateDraftMailResponse" | "ErrorAccessDenied" | "ErrorBasic";
2070
+ ["...on UpdateDraftMailResponse"]: "__union" & GraphQLTypes["UpdateDraftMailResponse"];
2071
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2072
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
2073
+ };
2074
+ ["UpdateFileResult"]: {
2075
+ __typename: "UpdateFileResponse" | "ErrorAccessDenied" | "ErrorNotExist" | "ErrorBasic";
2076
+ ["...on UpdateFileResponse"]: "__union" & GraphQLTypes["UpdateFileResponse"];
2077
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2078
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
2079
+ ["...on ErrorBasic"]: "__union" & GraphQLTypes["ErrorBasic"];
2080
+ };
2081
+ ["UpdateFolderResult"]: {
2082
+ __typename: "UpdateFolderResponse" | "ErrorAccessDenied" | "ErrorNotExist";
2083
+ ["...on UpdateFolderResponse"]: "__union" & GraphQLTypes["UpdateFolderResponse"];
2084
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2085
+ ["...on ErrorNotExist"]: "__union" & GraphQLTypes["ErrorNotExist"];
2086
+ };
2087
+ ["UpdateProfileResult"]: {
2088
+ __typename: "UpdateProfileResponse" | "ErrorAccessDenied" | "ErrorNotFound";
2089
+ ["...on UpdateProfileResponse"]: "__union" & GraphQLTypes["UpdateProfileResponse"];
2090
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2091
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
2092
+ };
2093
+ ["UploadFileResult"]: {
2094
+ __typename: "UploadFileResponse" | "ErrorAccessDenied" | "ErrorNotFound" | "ErrorLimit";
2095
+ ["...on UploadFileResponse"]: "__union" & GraphQLTypes["UploadFileResponse"];
2096
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2097
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
2098
+ ["...on ErrorLimit"]: "__union" & GraphQLTypes["ErrorLimit"];
2099
+ };
2100
+ ["UploadFileEndResult"]: {
2101
+ __typename: "UploadFileEndResponse" | "ErrorAccessDenied" | "ErrorNotFound";
2102
+ ["...on UploadFileEndResponse"]: "__union" & GraphQLTypes["UploadFileEndResponse"];
2103
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2104
+ ["...on ErrorNotFound"]: "__union" & GraphQLTypes["ErrorNotFound"];
2105
+ };
2106
+ ["UploadFilePartEndResult"]: {
2107
+ __typename: "UploadFilePartEndResponse" | "ErrorAccessDenied";
2108
+ ["...on UploadFilePartEndResponse"]: "__union" & GraphQLTypes["UploadFilePartEndResponse"];
2109
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2110
+ };
2111
+ ["ChangeUserPlanResult"]: {
2112
+ __typename: "ChangeUserPlanResponse" | "ErrorAccessDenied";
2113
+ ["...on ChangeUserPlanResponse"]: "__union" & GraphQLTypes["ChangeUserPlanResponse"];
2114
+ ["...on ErrorAccessDenied"]: "__union" & GraphQLTypes["ErrorAccessDenied"];
2115
+ };
2116
+ ["AppKeyPair"]: {
2117
+ __typename: "AppKeyPair";
2118
+ pub: string;
2119
+ };
2120
+ ["AppSession"]: {
2121
+ __typename: "AppSession";
2122
+ id: string;
2123
+ lastActivity?: GraphQLTypes["DateTime"];
2124
+ userAgent?: string;
2125
+ ip?: string;
2126
+ city?: string;
2127
+ country?: string;
2128
+ userSession: GraphQLTypes["UserSession"];
2129
+ userApp?: GraphQLTypes["ApplicationsOnUsers"];
2130
+ createdAt: GraphQLTypes["DateTime"];
2131
+ };
2132
+ ["Application"]: {
2133
+ __typename: "Application";
2134
+ id: string;
2135
+ name: string;
2136
+ };
2137
+ ["ApplicationsOnUsers"]: {
2138
+ __typename: "ApplicationsOnUsers";
2139
+ fakeUserId: string;
2140
+ keyPair?: GraphQLTypes["AppKeyPair"];
2141
+ sessions: Array<GraphQLTypes["AppSession"]>;
2142
+ app: GraphQLTypes["Application"];
2143
+ user: GraphQLTypes["User"];
2144
+ folders: Array<GraphQLTypes["FoldersOnUsersOnApplications"]>;
2145
+ settings: GraphQLTypes["UserAppSettings"];
2146
+ };
2147
+ ["Blog"]: {
2148
+ __typename: "Blog";
2149
+ id: string;
2150
+ order: number;
2151
+ entries: Array<GraphQLTypes["BlogEntry"]>;
2152
+ };
2153
+ ["BlogEntry"]: {
2154
+ __typename: "BlogEntry";
2155
+ id: string;
2156
+ lang: GraphQLTypes["Lang"];
2157
+ author: string;
2158
+ body: string;
2159
+ date: GraphQLTypes["DateTime"];
2160
+ image: string;
2161
+ summary: string;
2162
+ title: string;
2163
+ };
2164
+ ["BlogItem"]: {
2165
+ __typename: "BlogItem";
2166
+ id: string;
2167
+ blogId: string;
2168
+ order: number;
2169
+ title: string;
2170
+ body: string;
2171
+ author: string;
2172
+ image: string;
2173
+ imageAlt: string;
2174
+ summary: string;
2175
+ date: GraphQLTypes["DateTime"];
2176
+ };
2177
+ ["CloudLimits"]: {
2178
+ __typename: "CloudLimits";
2179
+ size: GraphQLTypes["BigInt"];
2180
+ maxSize?: GraphQLTypes["BigInt"];
2181
+ count: GraphQLTypes["BigInt"];
2182
+ maxCount?: GraphQLTypes["BigInt"];
2183
+ };
2184
+ ["Error"]: {
2185
+ __typename: "ErrorAccessDenied" | "ErrorNotFound" | "ErrorUpgradePlan" | "ErrorLangNotExist" | "ErrorNotExist" | "ErrorLimit" | "ErrorBasic";
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"];
2193
+ };
2194
+ ["ErrorAccessDenied"]: {
2195
+ __typename: "ErrorAccessDenied";
2196
+ message: string;
2197
+ };
2198
+ ["ErrorBase"]: {
2199
+ __typename: "ErrorAccessDenied" | "ErrorBasic" | "ErrorLangNotExist" | "ErrorLimit" | "ErrorNotExist" | "ErrorNotFound" | "ErrorUpgradePlan";
2200
+ message: string;
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"];
2208
+ };
2209
+ ["ErrorBasic"]: {
2210
+ __typename: "ErrorBasic";
2211
+ message: string;
2212
+ };
2213
+ ["ErrorLangNotExist"]: {
2214
+ __typename: "ErrorLangNotExist";
2215
+ message: string;
2216
+ };
2217
+ ["ErrorLimit"]: {
2218
+ __typename: "ErrorLimit";
2219
+ message: string;
2220
+ field?: string;
2221
+ };
2222
+ ["ErrorNotExist"]: {
2223
+ __typename: "ErrorNotExist";
2224
+ message: string;
2225
+ field?: string;
2226
+ };
2227
+ ["ErrorNotFound"]: {
2228
+ __typename: "ErrorNotFound";
2229
+ message: string;
2230
+ field?: string;
2231
+ };
2232
+ ["ErrorUpgradePlan"]: {
2233
+ __typename: "ErrorUpgradePlan";
2234
+ message: string;
2235
+ };
2236
+ ["Faq"]: {
2237
+ __typename: "Faq";
2238
+ id: string;
2239
+ order: number;
2240
+ entries: Array<GraphQLTypes["FaqEntry"]>;
2241
+ };
2242
+ ["FaqEntry"]: {
2243
+ __typename: "FaqEntry";
2244
+ id: string;
2245
+ lang: GraphQLTypes["Lang"];
2246
+ question: string;
2247
+ answer: string;
2248
+ faq: GraphQLTypes["Faq"];
2249
+ };
2250
+ ["FaqItem"]: {
2251
+ __typename: "FaqItem";
2252
+ order: number;
2253
+ question: string;
2254
+ answer: string;
2255
+ };
2256
+ ["File"]: {
2257
+ __typename: "File";
2258
+ id: string;
2259
+ size: GraphQLTypes["BigInt"];
2260
+ sizeBefore: GraphQLTypes["BigInt"];
2261
+ createdAt: GraphQLTypes["DateTime"];
2262
+ vFiles: Array<GraphQLTypes["VFile"]>;
2263
+ vFilesCurrent: Array<GraphQLTypes["VFile"]>;
2264
+ users: Array<GraphQLTypes["FilesOnUsersOnApplications"]>;
2265
+ md5: string;
2266
+ md5Encrypted: string;
2267
+ deletedAt?: GraphQLTypes["DateTime"];
2268
+ userApp: GraphQLTypes["ApplicationsOnUsers"];
2269
+ mails: Array<GraphQLTypes["FilesOnMails"]>;
2270
+ validatedAt?: GraphQLTypes["DateTime"];
2271
+ user?: GraphQLTypes["FilesOnUsersOnApplications"];
2272
+ };
2273
+ ["FileContent"]: {
2274
+ __typename: "FileContentCloud" | "FileContentReceivedMail" | "FileContentSentMail";
2275
+ ["...on FileContentCloud"]: "__union" & GraphQLTypes["FileContentCloud"];
2276
+ ["...on FileContentReceivedMail"]: "__union" & GraphQLTypes["FileContentReceivedMail"];
2277
+ ["...on FileContentSentMail"]: "__union" & GraphQLTypes["FileContentSentMail"];
2278
+ };
2279
+ ["FileContentBase"]: {
2280
+ __typename: "FileContentCloud" | "FileContentReceivedMail" | "FileContentSentMail";
2281
+ parts: Array<GraphQLTypes["FileContentPart"]>;
2282
+ key: string;
2283
+ md5: string;
2284
+ md5Encrypted: string;
2285
+ totalSize: GraphQLTypes["BigInt"];
2286
+ type: GraphQLTypes["FileContentType"];
2287
+ ["...on FileContentCloud"]: "__union" & GraphQLTypes["FileContentCloud"];
2288
+ ["...on FileContentReceivedMail"]: "__union" & GraphQLTypes["FileContentReceivedMail"];
2289
+ ["...on FileContentSentMail"]: "__union" & GraphQLTypes["FileContentSentMail"];
2290
+ };
2291
+ ["FileContentCloud"]: {
2292
+ __typename: "FileContentCloud";
2293
+ parts: Array<GraphQLTypes["FileContentPart"]>;
2294
+ key: string;
2295
+ md5: string;
2296
+ md5Encrypted: string;
2297
+ totalSize: GraphQLTypes["BigInt"];
2298
+ type: GraphQLTypes["FileContentType"];
2299
+ publicKey: string;
2300
+ };
2301
+ ["FileContentPart"]: {
2302
+ __typename: "FileContentPart";
2303
+ contentUrl: string;
2304
+ order: number;
2305
+ md5: string;
2306
+ };
2307
+ ["FileContentReceivedMail"]: {
2308
+ __typename: "FileContentReceivedMail";
2309
+ parts: Array<GraphQLTypes["FileContentPart"]>;
2310
+ key: string;
2311
+ md5: string;
2312
+ md5Encrypted: string;
2313
+ totalSize: GraphQLTypes["BigInt"];
2314
+ type: GraphQLTypes["FileContentType"];
2315
+ senderPublicKey: string;
2316
+ };
2317
+ ["FileContentSentMail"]: {
2318
+ __typename: "FileContentSentMail";
2319
+ parts: Array<GraphQLTypes["FileContentPart"]>;
2320
+ key: string;
2321
+ md5: string;
2322
+ md5Encrypted: string;
2323
+ totalSize: GraphQLTypes["BigInt"];
2324
+ type: GraphQLTypes["FileContentType"];
2325
+ };
2326
+ ["FileContentType"]: FileContentType;
2327
+ ["FilePart"]: {
2328
+ __typename: "FilePart";
2329
+ id: string;
2330
+ file: GraphQLTypes["File"];
2331
+ fileId: string;
2332
+ size: GraphQLTypes["BigInt"];
2333
+ order: number;
2334
+ md5: string;
2335
+ validatedAt?: GraphQLTypes["DateTime"];
2336
+ };
2337
+ ["FilePartResponse"]: {
2338
+ __typename: "FilePartResponse";
2339
+ fields: GraphQLTypes["Json"];
2340
+ url: string;
2341
+ order: number;
2342
+ };
2343
+ ["FileResponse"]: {
2344
+ __typename: "FileResponse";
2345
+ fileId: string;
2346
+ parts: Array<GraphQLTypes["FilePartResponse"]>;
2347
+ filePartSize: GraphQLTypes["BigInt"];
2348
+ };
2349
+ ["FileShared"]: {
2350
+ __typename: "FileShared";
2351
+ userId: string;
2352
+ message?: string;
2353
+ appId: string;
2354
+ id: string;
2355
+ filename: string;
2356
+ size: number;
2357
+ sizeBefore: number;
2358
+ };
2359
+ ["FileSharedContent"]: {
2360
+ __typename: "FileSharedContent";
2361
+ ownerId?: string;
2362
+ pubKey?: string;
2363
+ message?: string;
2364
+ appId: string;
2365
+ id: string;
2366
+ type: string;
2367
+ filename: string;
2368
+ contentUrl: string;
2369
+ key: string;
2370
+ size: number;
2371
+ sizeBefore: number;
2372
+ };
2373
+ ["FilesOnMails"]: {
2374
+ __typename: "FilesOnMails";
2375
+ file: GraphQLTypes["File"];
2376
+ fileKey: string;
2377
+ filename: string;
2378
+ mail: GraphQLTypes["Mail"];
2379
+ };
2380
+ ["FilesOnUsersOnApplications"]: {
2381
+ __typename: "FilesOnUsersOnApplications";
2382
+ file: GraphQLTypes["File"];
2383
+ userApp: GraphQLTypes["ApplicationsOnUsers"];
2384
+ key: string;
2385
+ };
2386
+ ["Folder"]: {
2387
+ __typename: "Folder";
2388
+ id: string;
2389
+ isFavorite: boolean;
2390
+ createdAt: GraphQLTypes["DateTime"];
2391
+ deletedAt?: GraphQLTypes["DateTime"];
2392
+ updatedAt: GraphQLTypes["DateTime"];
2393
+ createdBy: GraphQLTypes["ApplicationsOnUsers"];
2394
+ userApps: Array<GraphQLTypes["FoldersOnUsersOnApplications"]>;
2395
+ userApp?: GraphQLTypes["FoldersOnUsersOnApplications"];
2396
+ name: string;
2397
+ parentFolder?: GraphQLTypes["Folder"];
2398
+ subfolders: Array<GraphQLTypes["Folder"]>;
2399
+ vFiles: Array<GraphQLTypes["VFile"]>;
2400
+ breadcrumb: Array<GraphQLTypes["FolderBreadcrumbItem"]>;
2401
+ };
2402
+ ["FolderBreadcrumbItem"]: {
2403
+ __typename: "FolderBreadcrumbItem";
2404
+ id: string;
2405
+ name: string;
2406
+ pubKey: string;
2407
+ nameKey?: string;
2408
+ };
2409
+ ["FolderSize"]: {
2410
+ __typename: "FolderSize";
2411
+ size: GraphQLTypes["BigInt"];
2412
+ sizeBefore: GraphQLTypes["BigInt"];
2413
+ };
2414
+ ["FoldersOnUsersOnApplications"]: {
2415
+ __typename: "FoldersOnUsersOnApplications";
2416
+ folder: GraphQLTypes["Folder"];
2417
+ userApp: GraphQLTypes["ApplicationsOnUsers"];
2418
+ rights: GraphQLTypes["Rights"];
2419
+ nameKey?: string;
2420
+ isRoot: boolean;
2421
+ };
2422
+ ["MailFileInput"]: {
2423
+ id: string;
2424
+ name: string;
2425
+ fileKey: string;
2426
+ };
2427
+ ["MailRecipientInput"]: {
2428
+ body: string;
2429
+ subject: string;
2430
+ recipientId: string;
2431
+ files: Array<GraphQLTypes["MailFileInput"]>;
2432
+ };
2433
+ ["NameKeyInput"]: {
2434
+ id: string;
2435
+ nameKey: string;
2436
+ files: Array<GraphQLTypes["ShareFileKeyInput"]>;
2437
+ };
2438
+ ["NameKeyInputFolders"]: {
2439
+ id: string;
2440
+ nameKey: string;
2441
+ };
2442
+ ["PayInput"]: {
2443
+ type: GraphQLTypes["PayInputType"];
2444
+ token: string;
2445
+ firstName: string;
2446
+ lastName: string;
2447
+ street: string;
2448
+ postalCode: string;
2449
+ city: string;
2450
+ country: string;
2451
+ number: string;
2452
+ month: string;
2453
+ year: string;
2454
+ cvv: string;
2455
+ };
2456
+ ["PayInputType"]: PayInputType;
2457
+ ["ShareFileInHistoryInput"]: {
2458
+ fileId: string;
2459
+ users: Array<GraphQLTypes["ShareFileKeyInput"]>;
2460
+ };
2461
+ ["ShareFileKeyInput"]: {
2462
+ id: string;
2463
+ key: string;
2464
+ };
2465
+ ["ShareFoldersInput"]: {
2466
+ folders: Array<GraphQLTypes["NameKeyInputFolders"]>;
2467
+ vFiles: Array<GraphQLTypes["NameKeyInput"]>;
2468
+ };
2469
+ ["Limits"]: {
2470
+ __typename: "Limits";
2471
+ downloadBandwidth?: GraphQLTypes["BigInt"];
2472
+ downloadCount?: GraphQLTypes["BigInt"];
2473
+ hardFileCount?: GraphQLTypes["BigInt"];
2474
+ hardFileSize?: GraphQLTypes["BigInt"];
2475
+ perFileSize?: GraphQLTypes["BigInt"];
2476
+ receivedMails: GraphQLTypes["MailLimits"];
2477
+ sentMails: GraphQLTypes["MailLimits"];
2478
+ uploadBandwidth?: GraphQLTypes["BigInt"];
2479
+ uploadCount?: GraphQLTypes["BigInt"];
2480
+ };
2481
+ ["MailLimits"]: {
2482
+ __typename: "MailLimits";
2483
+ count?: GraphQLTypes["BigInt"];
2484
+ fileCount?: GraphQLTypes["BigInt"];
2485
+ fileSize?: GraphQLTypes["BigInt"];
2486
+ hardCount?: GraphQLTypes["BigInt"];
2487
+ hardFileCount?: GraphQLTypes["BigInt"];
2488
+ hardFileSize?: GraphQLTypes["BigInt"];
2489
+ perFileSize?: GraphQLTypes["BigInt"];
2490
+ };
2491
+ ["MailLimitsValues"]: {
2492
+ __typename: "MailLimitsValues";
2493
+ count: GraphQLTypes["BigInt"];
2494
+ maxCount?: GraphQLTypes["BigInt"];
2495
+ fileCount: GraphQLTypes["BigInt"];
2496
+ maxFileCount?: GraphQLTypes["BigInt"];
2497
+ fileSize: GraphQLTypes["BigInt"];
2498
+ maxFileSize?: GraphQLTypes["BigInt"];
2499
+ };
2500
+ ["QueryLimits"]: {
2501
+ __typename: "QueryLimits";
2502
+ cloud: GraphQLTypes["CloudLimits"];
2503
+ mail: GraphQLTypes["UserMailLimits"];
2504
+ };
2505
+ ["UserMailLimits"]: {
2506
+ __typename: "UserMailLimits";
2507
+ sent: GraphQLTypes["MailLimitsValues"];
2508
+ received: GraphQLTypes["MailLimitsValues"];
2509
+ };
2510
+ ["Mail"]: {
2511
+ __typename: "Mail";
2512
+ id: string;
2513
+ app: GraphQLTypes["Application"];
2514
+ body: string;
2515
+ createdAt: GraphQLTypes["DateTime"];
2516
+ deletedAt?: GraphQLTypes["DateTime"];
2517
+ files: Array<GraphQLTypes["FilesOnMails"]>;
2518
+ mailIntegrity?: GraphQLTypes["MailIntegrity"];
2519
+ mailIntegrityDraft?: GraphQLTypes["MailIntegrityDraft"];
2520
+ openedAt?: GraphQLTypes["DateTime"];
2521
+ recipient: GraphQLTypes["User"];
2522
+ sender: GraphQLTypes["User"];
2523
+ subject: string;
2524
+ type: GraphQLTypes["MailType"];
2525
+ recipients: Array<GraphQLTypes["User"]>;
2526
+ };
2527
+ ["MailIntegrity"]: {
2528
+ __typename: "MailIntegrity";
2529
+ id: string;
2530
+ hash: string;
2531
+ hashKey: string;
2532
+ answers: Array<GraphQLTypes["MailIntegrity"]>;
2533
+ app: GraphQLTypes["Application"];
2534
+ mails: Array<GraphQLTypes["Mail"]>;
2535
+ recipients: Array<GraphQLTypes["User"]>;
2536
+ temporaryRecipients: Array<GraphQLTypes["TemporaryUser"]>;
2537
+ replyTo?: GraphQLTypes["MailIntegrity"];
2538
+ };
2539
+ ["MailIntegrityDraft"]: {
2540
+ __typename: "MailIntegrityDraft";
2541
+ id: string;
2542
+ hash: string;
2543
+ hashKey: string;
2544
+ app: GraphQLTypes["Application"];
2545
+ mail: GraphQLTypes["Mail"];
2546
+ recipients: Array<GraphQLTypes["User"]>;
2547
+ temporaryRecipients: Array<GraphQLTypes["TemporaryUser"]>;
2548
+ replyTo?: GraphQLTypes["MailIntegrity"];
2549
+ };
2550
+ ["Plan"]: {
2551
+ __typename: "Plan";
2552
+ id: string;
2553
+ kind: GraphQLTypes["PlanKind"];
2554
+ codes: Array<string>;
2555
+ limits: GraphQLTypes["Limits"];
2556
+ };
2557
+ ["Report"]: {
2558
+ __typename: "Report";
2559
+ id: string;
2560
+ user: GraphQLTypes["User"];
2561
+ reportedUser: GraphQLTypes["User"];
2562
+ customMessage?: string;
2563
+ };
2564
+ ["AddFileToHistoryResponse"]: {
2565
+ __typename: "AddFileToHistoryResponse";
2566
+ addFileToHistory: GraphQLTypes["VFile"];
2567
+ };
2568
+ ["CancelPaymentResponse"]: {
2569
+ __typename: "CancelPaymentResponse";
2570
+ cancelPayment?: boolean;
2571
+ };
2572
+ ["ChangeUserPlanResponse"]: {
2573
+ __typename: "ChangeUserPlanResponse";
2574
+ changeUserPlan?: GraphQLTypes["User"];
2575
+ };
2576
+ ["CreateApplicationResponse"]: {
2577
+ __typename: "CreateApplicationResponse";
2578
+ createApplication?: string;
2579
+ };
2580
+ ["CreateDraftMailResponse"]: {
2581
+ __typename: "CreateDraftMailResponse";
2582
+ createDraftMail?: GraphQLTypes["Mail"];
2583
+ };
2584
+ ["CreateFolderResponse"]: {
2585
+ __typename: "CreateFolderResponse";
2586
+ createFolder?: GraphQLTypes["Folder"];
2587
+ };
2588
+ ["DbConfigMutationResponse"]: {
2589
+ __typename: "DbConfigMutationResponse";
2590
+ dbConfigMutation: GraphQLTypes["Json"];
2591
+ };
2592
+ ["DbSetResponse"]: {
2593
+ __typename: "DbSetResponse";
2594
+ dbSet?: GraphQLTypes["Json"];
2595
+ };
2596
+ ["DeleteDraftMailResponse"]: {
2597
+ __typename: "DeleteDraftMailResponse";
2598
+ deleteDraftMail?: boolean;
2599
+ };
2600
+ ["DeleteFileResponse"]: {
2601
+ __typename: "DeleteFileResponse";
2602
+ deleteFile: boolean;
2603
+ };
2604
+ ["DeleteFolderResponse"]: {
2605
+ __typename: "DeleteFolderResponse";
2606
+ deleteFolder?: boolean;
2607
+ };
2608
+ ["DeleteFolderCloudTrashResponse"]: {
2609
+ __typename: "DeleteFolderCloudTrashResponse";
2610
+ deleteFolderCloudTrash?: boolean;
2611
+ };
2612
+ ["DeleteFolderSharingResponse"]: {
2613
+ __typename: "DeleteFolderSharingResponse";
2614
+ deleteFolderSharing: boolean;
2615
+ };
2616
+ ["DeleteMailResponse"]: {
2617
+ __typename: "DeleteMailResponse";
2618
+ deleteMail: boolean;
2619
+ };
2620
+ ["DeleteMailTrashResponse"]: {
2621
+ __typename: "DeleteMailTrashResponse";
2622
+ deleteMailTrash: boolean;
2623
+ };
2624
+ ["DeleteUserResponse"]: {
2625
+ __typename: "DeleteUserResponse";
2626
+ deleteUser?: boolean;
2627
+ };
2628
+ ["DeleteVFileResponse"]: {
2629
+ __typename: "DeleteVFileResponse";
2630
+ deleteVFile: boolean;
2631
+ };
2632
+ ["DeleteVFileCloudTrashResponse"]: {
2633
+ __typename: "DeleteVFileCloudTrashResponse";
2634
+ deleteVFileCloudTrash?: boolean;
2635
+ };
2636
+ ["DeleteVFileSharingResponse"]: {
2637
+ __typename: "DeleteVFileSharingResponse";
2638
+ deleteVFileSharing: boolean;
2639
+ };
2640
+ ["DuplicateVFileResponse"]: {
2641
+ __typename: "DuplicateVFileResponse";
2642
+ duplicateVFile: boolean;
2643
+ };
2644
+ ["EmptyCloudTrashResponse"]: {
2645
+ __typename: "EmptyCloudTrashResponse";
2646
+ emptyCloudTrash?: boolean;
2647
+ };
2648
+ ["EmptyMailTrashResponse"]: {
2649
+ __typename: "EmptyMailTrashResponse";
2650
+ emptyMailTrash?: boolean;
2651
+ };
2652
+ ["LogoutResponse"]: {
2653
+ __typename: "LogoutResponse";
2654
+ logout?: boolean;
2655
+ };
2656
+ ["MoveFilesResponse"]: {
2657
+ __typename: "MoveFilesResponse";
2658
+ moveFiles?: boolean;
2659
+ };
2660
+ ["MoveFoldersResponse"]: {
2661
+ __typename: "MoveFoldersResponse";
2662
+ moveFolders?: boolean;
2663
+ };
2664
+ ["PayResponse"]: {
2665
+ __typename: "PayResponse";
2666
+ pay: boolean;
2667
+ };
2668
+ ["ReadMailResponse"]: {
2669
+ __typename: "ReadMailResponse";
2670
+ readMail?: boolean;
2671
+ };
2672
+ ["RecoverFolderResponse"]: {
2673
+ __typename: "RecoverFolderResponse";
2674
+ recoverFolder?: boolean;
2675
+ };
2676
+ ["RecoverMailResponse"]: {
2677
+ __typename: "RecoverMailResponse";
2678
+ recoverMail: boolean;
2679
+ };
2680
+ ["RecoverVFileResponse"]: {
2681
+ __typename: "RecoverVFileResponse";
2682
+ recoverVFile: boolean;
2683
+ };
2684
+ ["SaveInCloudResponse"]: {
2685
+ __typename: "SaveInCloudResponse";
2686
+ saveInCloud?: GraphQLTypes["VFile"];
2687
+ };
2688
+ ["SendDraftMailResponse"]: {
2689
+ __typename: "SendDraftMailResponse";
2690
+ sendDraftMail?: boolean;
2691
+ };
2692
+ ["SendOneMailResponse"]: {
2693
+ __typename: "SendOneMailResponse";
2694
+ sendOneMail?: boolean;
2695
+ };
2696
+ ["SendReportResponse"]: {
2697
+ __typename: "SendReportResponse";
2698
+ sendReport?: GraphQLTypes["Report"];
2699
+ };
2700
+ ["ShareFileInHistoryResponse"]: {
2701
+ __typename: "ShareFileInHistoryResponse";
2702
+ shareFileInHistory: boolean;
2703
+ };
2704
+ ["ShareFolderFinishResponse"]: {
2705
+ __typename: "ShareFolderFinishResponse";
2706
+ shareFolderFinish?: boolean;
2707
+ };
2708
+ ["ShareVFileResponse"]: {
2709
+ __typename: "ShareVFileResponse";
2710
+ shareVFile?: boolean;
2711
+ };
2712
+ ["UnreadMailResponse"]: {
2713
+ __typename: "UnreadMailResponse";
2714
+ unreadMail?: boolean;
2715
+ };
2716
+ ["UpdateAppNotificationsResponse"]: {
2717
+ __typename: "UpdateAppNotificationsResponse";
2718
+ updateAppNotifications?: GraphQLTypes["UserAppNotifications"];
2719
+ };
2720
+ ["UpdateAppSettingsResponse"]: {
2721
+ __typename: "UpdateAppSettingsResponse";
2722
+ updateAppSettings: GraphQLTypes["UserAppSettings"];
2723
+ };
2724
+ ["UpdateDraftMailResponse"]: {
2725
+ __typename: "UpdateDraftMailResponse";
2726
+ updateDraftMail?: GraphQLTypes["Mail"];
2727
+ };
2728
+ ["UpdateFileResponse"]: {
2729
+ __typename: "UpdateFileResponse";
2730
+ updateFile?: GraphQLTypes["VFile"];
2731
+ };
2732
+ ["UpdateFolderResponse"]: {
2733
+ __typename: "UpdateFolderResponse";
2734
+ updateFolder?: GraphQLTypes["Folder"];
2735
+ };
2736
+ ["UpdateProfileResponse"]: {
2737
+ __typename: "UpdateProfileResponse";
2738
+ updateProfile?: GraphQLTypes["User"];
2739
+ };
2740
+ ["UploadAnonymousResponse"]: {
2741
+ __typename: "UploadAnonymousResponse";
2742
+ uploadAnonymous?: GraphQLTypes["FileResponse"];
2743
+ };
2744
+ ["UploadFileResponse"]: {
2745
+ __typename: "UploadFileResponse";
2746
+ uploadFile?: GraphQLTypes["FileResponse"];
2747
+ };
2748
+ ["UploadFileEndResponse"]: {
2749
+ __typename: "UploadFileEndResponse";
2750
+ uploadFileEnd?: string;
2751
+ };
2752
+ ["UploadFilePartEndResponse"]: {
2753
+ __typename: "UploadFilePartEndResponse";
2754
+ uploadFilePartEnd: boolean;
2755
+ };
2756
+ ["BlogResponse"]: {
2757
+ __typename: "BlogResponse";
2758
+ blogItems: Array<GraphQLTypes["BlogItem"]>;
2759
+ };
2760
+ ["DbConfigResponse"]: {
2761
+ __typename: "DbConfigResponse";
2762
+ json: GraphQLTypes["Json"];
2763
+ };
2764
+ ["DbGetResponse"]: {
2765
+ __typename: "DbGetResponse";
2766
+ json?: GraphQLTypes["Json"];
2767
+ };
2768
+ ["DbSearchResponse"]: {
2769
+ __typename: "DbSearchResponse";
2770
+ json?: GraphQLTypes["Json"];
2771
+ };
2772
+ ["DeletedFoldersResponse"]: {
2773
+ __typename: "DeletedFoldersResponse";
2774
+ deletedFolders: Array<GraphQLTypes["Folder"]>;
2775
+ };
2776
+ ["DeletedMailsResponse"]: {
2777
+ __typename: "DeletedMailsResponse";
2778
+ deletedMails: Array<GraphQLTypes["Mail"]>;
2779
+ };
2780
+ ["DeletedVFilesResponse"]: {
2781
+ __typename: "DeletedVFilesResponse";
2782
+ deletedVFiles: Array<GraphQLTypes["VFile"]>;
2783
+ };
2784
+ ["FaqResponse"]: {
2785
+ __typename: "FaqResponse";
2786
+ faq: Array<GraphQLTypes["FaqItem"]>;
2787
+ };
2788
+ ["FileQueryResponse"]: {
2789
+ __typename: "FileQueryResponse";
2790
+ file?: GraphQLTypes["File"];
2791
+ };
2792
+ ["FileContentResponse"]: {
2793
+ __typename: "FileContentResponse";
2794
+ file?: GraphQLTypes["FileContent"];
2795
+ };
2796
+ ["FolderResponse"]: {
2797
+ __typename: "FolderResponse";
2798
+ folder?: GraphQLTypes["Folder"];
2799
+ };
2800
+ ["FolderSharedWithMeResponse"]: {
2801
+ __typename: "FolderSharedWithMeResponse";
2802
+ foldersSharedWithMe: Array<GraphQLTypes["Folder"]>;
2803
+ };
2804
+ ["FolderSizeResponse"]: {
2805
+ __typename: "FolderSizeResponse";
2806
+ size: GraphQLTypes["BigInt"];
2807
+ sizeBefore: GraphQLTypes["BigInt"];
2808
+ };
2809
+ ["QueryMailResponse"]: {
2810
+ __typename: "QueryMailResponse";
2811
+ mail?: GraphQLTypes["Mail"];
2812
+ };
2813
+ ["PaymentInfosResponse"]: {
2814
+ __typename: "PaymentInfosResponse";
2815
+ paymentInfos?: GraphQLTypes["PaymentInfos"];
2816
+ };
2817
+ ["PlanResponse"]: {
2818
+ __typename: "PlanResponse";
2819
+ plan: Array<GraphQLTypes["Plan"]>;
2820
+ };
2821
+ ["SharedFoldersResponse"]: {
2822
+ __typename: "SharedFoldersResponse";
2823
+ sharedFolders: Array<GraphQLTypes["Folder"]>;
2824
+ };
2825
+ ["SharedVFilesResponse"]: {
2826
+ __typename: "SharedVFilesResponse";
2827
+ sharedVFiles: Array<GraphQLTypes["VFile"]>;
2828
+ };
2829
+ ["UnreadReceivedMailsCountResponse"]: {
2830
+ __typename: "UnreadReceivedMailsCountResponse";
2831
+ count: number;
2832
+ };
2833
+ ["UserResponse"]: {
2834
+ __typename: "UserResponse";
2835
+ user?: GraphQLTypes["User"];
2836
+ };
2837
+ ["UserListResponse"]: {
2838
+ __typename: "UserListResponse";
2839
+ userList: Array<GraphQLTypes["User"]>;
2840
+ };
2841
+ ["VFileResponse"]: {
2842
+ __typename: "VFileResponse";
2843
+ vFile?: GraphQLTypes["VFile"];
2844
+ };
2845
+ ["VFilesSharedWithMeResponse"]: {
2846
+ __typename: "VFilesSharedWithMeResponse";
2847
+ vFilesSharedWithMe: Array<GraphQLTypes["VFile"]>;
2848
+ };
2849
+ ["TemporaryUser"]: {
2850
+ __typename: "TemporaryUser";
2851
+ id: string;
2852
+ mails: Array<GraphQLTypes["MailIntegrity"]>;
2853
+ draftMails: Array<GraphQLTypes["MailIntegrityDraft"]>;
2854
+ email?: string;
2855
+ };
2856
+ ["User"]: {
2857
+ __typename: "User";
2858
+ id: string;
2859
+ deletedAt?: GraphQLTypes["DateTime"];
2860
+ lang: GraphQLTypes["Lang"];
2861
+ reportSent: Array<GraphQLTypes["Report"]>;
2862
+ godFather?: GraphQLTypes["User"];
2863
+ godChildren: Array<GraphQLTypes["User"]>;
2864
+ firstname: string;
2865
+ lastname: string;
2866
+ email: string;
2867
+ phone: string;
2868
+ lastLogin: GraphQLTypes["DateTime"];
2869
+ role: GraphQLTypes["UserRole"];
2870
+ sessions: Array<GraphQLTypes["UserSession"]>;
2871
+ createdAt: GraphQLTypes["DateTime"];
2872
+ receivedMails: Array<GraphQLTypes["Mail"]>;
2873
+ waitingReceivedMails: Array<GraphQLTypes["WaitingReceivedMail"]>;
2874
+ sentMails: Array<GraphQLTypes["Mail"]>;
2875
+ draftMails: Array<GraphQLTypes["Mail"]>;
2876
+ appSettings?: GraphQLTypes["UserAppSettings"];
2877
+ applications: Array<GraphQLTypes["ApplicationsOnUsers"]>;
2878
+ publicKey: string;
2879
+ };
2880
+ ["UserAppNotifications"]: {
2881
+ __typename: "UserAppNotifications";
2882
+ id: string;
2883
+ enableAll: boolean;
2884
+ mail: boolean;
2885
+ cloud: boolean;
2886
+ disableAllUntil?: GraphQLTypes["DateTime"];
2887
+ };
2888
+ ["UserAppSettings"]: {
2889
+ __typename: "UserAppSettings";
2890
+ id: string;
2891
+ cloudFileDaysForDelete: number;
2892
+ cloudFolderDaysForDelete: number;
2893
+ historyFileDaysForDelete?: number;
2894
+ historyMaxFileCount: number;
2895
+ autoDisconnectDelay?: number;
2896
+ };
2897
+ ["UserSession"]: {
2898
+ __typename: "UserSession";
2899
+ id: string;
2900
+ appSessions: Array<GraphQLTypes["AppSession"]>;
2901
+ lastActivity?: GraphQLTypes["DateTime"];
2902
+ userAgent?: string;
2903
+ ip?: string;
2904
+ city?: string;
2905
+ country?: string;
2906
+ createdAt: GraphQLTypes["DateTime"];
2907
+ };
2908
+ ["VFile"]: {
2909
+ __typename: "VFile";
2910
+ id: string;
2911
+ isFavorite: boolean;
2912
+ createdAt: GraphQLTypes["DateTime"];
2913
+ deletedAt?: GraphQLTypes["DateTime"];
2914
+ filename: string;
2915
+ userApps: Array<GraphQLTypes["VFilesOnUsersOnApplications"]>;
2916
+ createdBy: GraphQLTypes["ApplicationsOnUsers"];
2917
+ userApp?: GraphQLTypes["VFilesOnUsersOnApplications"];
2918
+ folder: GraphQLTypes["Folder"];
2919
+ history: Array<GraphQLTypes["File"]>;
2920
+ current?: GraphQLTypes["File"];
2921
+ updatedAt: GraphQLTypes["DateTime"];
2922
+ };
2923
+ ["VFilesOnUsersOnApplications"]: {
2924
+ __typename: "VFilesOnUsersOnApplications";
2925
+ vFile: GraphQLTypes["VFile"];
2926
+ userApp: GraphQLTypes["ApplicationsOnUsers"];
2927
+ rights: GraphQLTypes["Rights"];
2928
+ nameKey: string;
2929
+ isRoot: boolean;
2930
+ };
2931
+ ["WaitingReceivedMail"]: {
2932
+ __typename: "WaitingReceivedMail";
2933
+ sender: GraphQLTypes["User"];
2934
+ date: GraphQLTypes["DateTime"];
2935
+ recipients: Array<GraphQLTypes["User"]>;
2936
+ temporaryRecipients: Array<GraphQLTypes["TemporaryUser"]>;
2937
+ attachmentsCount: number;
2938
+ };
2939
+ ["PaymentInfos"]: {
2940
+ __typename: "PaymentInfos";
2941
+ hostedUrl: string;
2942
+ currentSubscription: GraphQLTypes["RecurlySubscription"];
2943
+ invoices: Array<GraphQLTypes["RecurlyInvoices"]>;
2944
+ };
2945
+ ["RecurlyInvoices"]: {
2946
+ __typename: "RecurlyInvoices";
2947
+ pdf: string;
2948
+ date: GraphQLTypes["DateTime"];
2949
+ due: GraphQLTypes["DateTime"];
2950
+ status: string;
2951
+ total: number;
2952
+ name: string;
2953
+ currency: string;
2954
+ };
2955
+ ["RecurlySubscription"]: {
2956
+ __typename: "RecurlySubscription";
2957
+ autorenew: boolean;
2958
+ activatedAt?: GraphQLTypes["DateTime"];
2959
+ currentPeriodEndsAt?: GraphQLTypes["DateTime"];
2960
+ currentPeriodStartedAt?: GraphQLTypes["DateTime"];
2961
+ canceledAt?: GraphQLTypes["DateTime"];
2962
+ createdAt?: GraphQLTypes["DateTime"];
2963
+ expiresAt?: GraphQLTypes["DateTime"];
2964
+ pausedAt?: GraphQLTypes["DateTime"];
2965
+ trialEndsAt?: GraphQLTypes["DateTime"];
2966
+ trialStartedAt?: GraphQLTypes["DateTime"];
2967
+ updatedAt?: GraphQLTypes["DateTime"];
2968
+ state: string;
2969
+ collectionMethod: string;
2970
+ plan?: string;
2971
+ planCode?: string;
2972
+ total?: number;
2973
+ };
2974
+ ["ShareFolderResponse"]: {
2975
+ __typename: "ShareFolderResponse";
2976
+ folders: Array<string>;
2977
+ vFiles: Array<string>;
2978
+ };
2979
+ ["Query"]: {
2980
+ __typename: "Query";
2981
+ appNotifications?: GraphQLTypes["AppNotificationsResult"];
2982
+ blog?: GraphQLTypes["BlogResult"];
2983
+ dbConfig?: GraphQLTypes["DbConfigResult"];
2984
+ dbGet?: GraphQLTypes["DbGetResult"];
2985
+ dbSearch?: GraphQLTypes["DbSearchResult"];
2986
+ deletedFolders?: GraphQLTypes["DeletedFoldersResult"];
2987
+ deletedMails?: GraphQLTypes["DeletedMailsResult"];
2988
+ deletedVFiles?: GraphQLTypes["DeletedVFilesResult"];
2989
+ faq?: GraphQLTypes["FaqResult"];
2990
+ file?: GraphQLTypes["FileResult"];
2991
+ fileContent?: GraphQLTypes["FileContentResult"];
2992
+ filesSharedWithMe: Array<GraphQLTypes["FileSharedContent"]>;
2993
+ folder?: GraphQLTypes["FolderResult"];
2994
+ folderSize?: GraphQLTypes["FolderSizeResult"];
2995
+ foldersSharedWithMe?: GraphQLTypes["FoldersSharedWithMeResult"];
2996
+ limits?: GraphQLTypes["LimitsResult"];
2997
+ mail?: GraphQLTypes["MailResult"];
2998
+ paymentInfos?: GraphQLTypes["PaymentInfosResult"];
2999
+ plans?: GraphQLTypes["PlansResult"];
3000
+ sharedFolders?: GraphQLTypes["SharedFoldersResult"];
3001
+ sharedVFiles?: GraphQLTypes["SharedVFilesResult"];
3002
+ test?: boolean;
3003
+ unreadReceivedMailsCount?: GraphQLTypes["UnreadReceivedMailsCountResult"];
3004
+ user?: GraphQLTypes["UserResult"];
3005
+ vFile?: GraphQLTypes["VFileResult"];
3006
+ vFilesSharedWithMe?: GraphQLTypes["VFilesSharedWithMeResult"];
3007
+ userList?: GraphQLTypes["UserListResult"];
3008
+ };
3009
+ ["Mutation"]: {
3010
+ __typename: "Mutation";
3011
+ addFileToHistory?: GraphQLTypes["AddFileToHistoryResult"];
3012
+ cancelPayment?: GraphQLTypes["CancelPaymentResult"];
3013
+ createApplication?: GraphQLTypes["CreateApplicationResult"];
3014
+ createDraftMail?: GraphQLTypes["CreateDraftMailResult"];
3015
+ createFolder?: GraphQLTypes["CreateFolderResult"];
3016
+ dbConfigMutation?: GraphQLTypes["DbConfigMutationResult"];
3017
+ dbSet?: GraphQLTypes["DbSetResult"];
3018
+ deleteDraftMail?: GraphQLTypes["DeleteDraftMailResult"];
3019
+ deleteFile?: GraphQLTypes["DeleteFileResult"];
3020
+ deleteFolder?: GraphQLTypes["DeleteFolderResult"];
3021
+ deleteFolderCloudTrash?: GraphQLTypes["DeleteFolderCloudTrashResult"];
3022
+ deleteFolderSharing?: GraphQLTypes["DeleteFolderSharingResult"];
3023
+ deleteMail?: GraphQLTypes["DeleteMailResult"];
3024
+ deleteMailTrash?: GraphQLTypes["DeleteMailTrashResult"];
3025
+ deleteUser?: GraphQLTypes["DeleteUserResult"];
3026
+ deleteVFile?: GraphQLTypes["DeleteVFileResult"];
3027
+ deleteVFileCloudTrash?: GraphQLTypes["DeleteVFileCloudTrashResult"];
3028
+ deleteVFileSharing?: GraphQLTypes["DeleteVFileSharingResult"];
3029
+ duplicateVFile?: GraphQLTypes["DuplicateVFileResult"];
3030
+ emptyCloudTrash?: GraphQLTypes["EmptyCloudTrashResult"];
3031
+ emptyMailTrash?: GraphQLTypes["EmptyMailTrashResult"];
3032
+ logout?: GraphQLTypes["LogoutResult"];
3033
+ moveFiles?: GraphQLTypes["MoveFilesResult"];
3034
+ moveFolders?: GraphQLTypes["MoveFoldersResult"];
3035
+ pay?: GraphQLTypes["PayResult"];
3036
+ readMail?: GraphQLTypes["ReadMailResult"];
3037
+ recoverFolder?: GraphQLTypes["RecoverFolderResult"];
3038
+ recoverMail?: GraphQLTypes["RecoverMailResult"];
3039
+ recoverVFile?: GraphQLTypes["RecoverVFileResult"];
3040
+ saveInCloud?: GraphQLTypes["SaveInCloudResult"];
3041
+ sendDraftMail?: GraphQLTypes["SendDraftMailResult"];
3042
+ sendOneMail?: GraphQLTypes["SendOneMailResult"];
3043
+ sendReport?: GraphQLTypes["SendReportResult"];
3044
+ shareFileInHistory?: GraphQLTypes["ShareFileInHistoryResult"];
3045
+ shareFolder?: GraphQLTypes["ShareFolderResult"];
3046
+ shareFolderFinish?: GraphQLTypes["ShareFolderFinishResult"];
3047
+ shareVFile?: GraphQLTypes["ShareVFileResult"];
3048
+ unreadMail?: GraphQLTypes["UnreadMailResult"];
3049
+ updateAppNotifications?: GraphQLTypes["UpdateAppNotificationsResult"];
3050
+ updateAppSettings?: GraphQLTypes["UpdateAppSettingsResult"];
3051
+ updateDraftMail?: GraphQLTypes["UpdateDraftMailResult"];
3052
+ updateFile?: GraphQLTypes["UpdateFileResult"];
3053
+ updateFolder?: GraphQLTypes["UpdateFolderResult"];
3054
+ updateProfile?: GraphQLTypes["UpdateProfileResult"];
3055
+ uploadAnonymous?: GraphQLTypes["FileResponse"];
3056
+ uploadFile?: GraphQLTypes["UploadFileResult"];
3057
+ uploadFileEnd?: GraphQLTypes["UploadFileEndResult"];
3058
+ uploadFilePartEnd?: GraphQLTypes["UploadFilePartEndResult"];
3059
+ changeUserPlan?: GraphQLTypes["ChangeUserPlanResult"];
3060
+ };
3061
+ ["Subscription"]: {
3062
+ __typename: "Subscription";
3063
+ test: boolean;
3064
+ };
3065
+ };
3066
+ declare enum Lang {
3067
+ fr = "fr",
3068
+ en = "en",
3069
+ it = "it",
3070
+ de = "de",
3071
+ pt = "pt",
3072
+ ja = "ja",
3073
+ es = "es",
3074
+ nl = "nl",
3075
+ pl = "pl",
3076
+ ru = "ru",
3077
+ zh = "zh",
3078
+ ar = "ar",
3079
+ he = "he",
3080
+ hi = "hi",
3081
+ ko = "ko"
3082
+ }
3083
+ declare enum PlanKind {
3084
+ free = "free",
3085
+ basic = "basic",
3086
+ advanced = "advanced",
3087
+ pro = "pro"
3088
+ }
3089
+ declare enum UserRole {
3090
+ user = "user",
3091
+ admin = "admin"
3092
+ }
3093
+ declare enum MailType$1 {
3094
+ sent = "sent",
3095
+ received = "received"
3096
+ }
3097
+ declare enum Rights {
3098
+ admin = "admin",
3099
+ write = "write",
3100
+ read = "read"
3101
+ }
3102
+ declare enum FileContentType {
3103
+ cloud = "cloud",
3104
+ sent_mail = "sent_mail",
3105
+ received_mail = "received_mail"
3106
+ }
3107
+ declare enum PayInputType {
3108
+ secure = "secure",
3109
+ classic = "classic"
3110
+ }
3111
+ declare type WithTypeNameValue<T> = T & {
3112
+ __typename?: boolean;
3113
+ };
3114
+ declare type AliasType<T> = WithTypeNameValue<T> & {
3115
+ __alias?: Record<string, WithTypeNameValue<T>>;
3116
+ };
3117
+ declare type DeepAnify<T> = {
3118
+ [P in keyof T]?: any;
3119
+ };
3120
+ declare type IsPayLoad<T> = T extends [any, infer PayLoad] ? PayLoad : T;
3121
+ declare type IsArray<T, U> = T extends Array<infer R> ? InputType<R, U>[] : InputType<T, U>;
3122
+ declare type FlattenArray<T> = T extends Array<infer R> ? R : T;
3123
+ declare type IsInterfaced<SRC extends DeepAnify<DST>, DST> = FlattenArray<SRC> extends ZEUS_INTERFACES | ZEUS_UNIONS ? {
3124
+ [P in keyof SRC]: SRC[P] extends "__union" & infer R ? P extends keyof DST ? IsArray<R, "__typename" extends keyof DST ? DST[P] & {
3125
+ __typename: true;
3126
+ } : DST[P]> : {} : never;
3127
+ }[keyof DST] & {
3128
+ [P in keyof Omit<Pick<SRC, {
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]>;
3131
+ } : {
3132
+ [P in keyof Pick<SRC, keyof DST>]: IsPayLoad<DST[P]> extends boolean ? SRC[P] : IsArray<SRC[P], DST[P]>;
3133
+ };
3134
+ declare type MapType<SRC, DST> = SRC extends DeepAnify<DST> ? IsInterfaced<SRC, DST> : never;
3135
+ declare type InputType<SRC, DST> = IsPayLoad<DST> extends {
3136
+ __alias: infer R;
3137
+ } ? {
3138
+ [P in keyof R]: MapType<SRC, R[P]>;
3139
+ } & MapType<SRC, Omit<IsPayLoad<DST>, "__alias">> : MapType<SRC, IsPayLoad<DST>>;
3140
+ declare type OperationOptions = {
3141
+ variables?: Record<string, any>;
3142
+ operationName?: string;
3143
+ };
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;
3487
+ };
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 = {
3500
+ name: string;
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;
3552
+ };
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 };