orgnote-api 0.20.2 → 0.40.0

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 (283) hide show
  1. package/api.d.ts +93 -98
  2. package/constants/{command-groups.contant.d.ts → command-groups.d.ts} +2 -1
  3. package/constants/{command-groups.contant.js → command-groups.js} +2 -0
  4. package/constants/extension-errors.d.ts +9 -0
  5. package/constants/extension-errors.js +18 -0
  6. package/constants/file-guard-errors.d.ts +8 -0
  7. package/constants/file-guard-errors.js +18 -0
  8. package/constants/git-errors.d.ts +9 -0
  9. package/constants/git-errors.js +18 -0
  10. package/constants/i18n-keys.d.ts +371 -0
  11. package/constants/i18n-keys.js +158 -0
  12. package/constants/index.d.ts +9 -1
  13. package/constants/index.js +9 -1
  14. package/constants/oauth-providers.d.ts +1 -0
  15. package/constants/oauth-providers.js +1 -0
  16. package/constants/route-names.d.ts +36 -0
  17. package/constants/route-names.js +37 -0
  18. package/constants/route-paths.d.ts +5 -0
  19. package/constants/route-paths.js +4 -0
  20. package/constants/style-sizes.d.ts +1 -0
  21. package/constants/style-sizes.js +1 -0
  22. package/encryption/__tests__/encryption.spec.js +4 -5
  23. package/encryption/__tests__/note-encryption.spec.js +46 -348
  24. package/encryption/encryption.d.ts +9 -4
  25. package/encryption/encryption.js +25 -5
  26. package/encryption/note-encryption.d.ts +1 -1
  27. package/encryption/note-encryption.js +6 -6
  28. package/files-api.d.ts +0 -1
  29. package/index.d.ts +4 -1
  30. package/index.js +4 -1
  31. package/mappers/orgnode-to-note.d.ts +2 -2
  32. package/mappers/orgnode-to-note.js +3 -2
  33. package/models/auth-store.d.ts +3 -3
  34. package/models/buffer-store.d.ts +14 -0
  35. package/models/buffer.d.ts +24 -0
  36. package/models/colors.d.ts +1 -0
  37. package/models/command.d.ts +13 -8
  38. package/models/commands-group-store.d.ts +11 -0
  39. package/models/commands-store.d.ts +13 -0
  40. package/models/completion-store.d.ts +14 -0
  41. package/models/completion.d.ts +16 -7
  42. package/models/config-store.d.ts +9 -0
  43. package/models/confirmation-modal.d.ts +11 -0
  44. package/models/context-menu-store.d.ts +10 -0
  45. package/models/cron-store.d.ts +21 -0
  46. package/models/cron-task.d.ts +30 -0
  47. package/models/css-utils.d.ts +17 -0
  48. package/models/default-commands.d.ts +52 -3
  49. package/models/default-commands.js +59 -2
  50. package/models/encryption-store.d.ts +10 -0
  51. package/models/encryption-store.js +1 -0
  52. package/models/encryption.d.ts +54 -11
  53. package/models/encryption.js +28 -1
  54. package/models/extension-registry-store.d.ts +9 -0
  55. package/models/extension-registry-store.js +1 -0
  56. package/models/extension-store.d.ts +18 -0
  57. package/models/extension-store.js +1 -0
  58. package/models/extension.d.ts +96 -24
  59. package/models/extension.js +88 -1
  60. package/models/file-guard-store.d.ts +14 -0
  61. package/models/file-guard-store.js +1 -0
  62. package/models/file-guard.d.ts +27 -0
  63. package/models/file-guard.js +1 -0
  64. package/models/{file-cache.d.ts → file-info.d.ts} +1 -1
  65. package/models/file-info.js +1 -0
  66. package/models/file-manager-store.d.ts +10 -12
  67. package/models/file-opener-store.d.ts +6 -4
  68. package/models/file-system-manager-store.d.ts +13 -0
  69. package/models/file-system-manager-store.js +1 -0
  70. package/models/file-system-store.d.ts +19 -0
  71. package/models/file-system-store.js +1 -0
  72. package/models/file-system.d.ts +32 -5
  73. package/models/file-system.js +2 -0
  74. package/models/file-upload.d.ts +6 -0
  75. package/models/file-upload.js +1 -0
  76. package/models/file-watcher-store.d.ts +18 -0
  77. package/models/file-watcher-store.js +1 -0
  78. package/models/files-store.d.ts +2 -2
  79. package/models/git-store.d.ts +12 -0
  80. package/models/git-store.js +1 -0
  81. package/models/git.d.ts +47 -0
  82. package/models/git.js +1 -0
  83. package/models/i18n-keys.d.ts +2 -0
  84. package/models/i18n-keys.js +1 -0
  85. package/models/index.d.ts +56 -2
  86. package/models/index.js +59 -2
  87. package/models/layout-snapshot-repository.d.ts +14 -0
  88. package/models/layout-snapshot-repository.js +1 -0
  89. package/models/layout-store.d.ts +17 -0
  90. package/models/layout-store.js +1 -0
  91. package/models/layout.d.ts +16 -0
  92. package/models/layout.js +1 -0
  93. package/models/log-repository.d.ts +17 -0
  94. package/models/log-repository.js +1 -0
  95. package/models/log-store.d.ts +15 -0
  96. package/models/log-store.js +1 -0
  97. package/models/log.d.ts +12 -0
  98. package/models/log.js +1 -0
  99. package/models/logger.d.ts +8 -0
  100. package/models/logger.js +1 -0
  101. package/models/menu-action.d.ts +18 -0
  102. package/models/menu-action.js +1 -0
  103. package/models/modal-store.d.ts +16 -0
  104. package/models/modal-store.js +1 -0
  105. package/models/modal.d.ts +10 -2
  106. package/models/note.d.ts +30 -13
  107. package/models/notification-config.d.ts +14 -0
  108. package/models/notification-config.js +1 -0
  109. package/models/notifications-store.d.ts +20 -0
  110. package/models/notifications-store.js +1 -0
  111. package/models/oauth-provider.d.ts +2 -1
  112. package/models/orgnote-config.d.ts +80 -0
  113. package/models/orgnote-config.js +42 -0
  114. package/models/orgnote-url.d.ts +6 -0
  115. package/models/orgnote-url.js +1 -0
  116. package/models/pane-snapshot-repository.d.ts +0 -0
  117. package/models/pane-snapshot-repository.js +0 -0
  118. package/models/pane.d.ts +38 -0
  119. package/models/pane.js +1 -0
  120. package/models/panes-store.d.ts +30 -0
  121. package/models/panes-store.js +1 -0
  122. package/models/platform-detection.d.ts +11 -0
  123. package/models/platform-detection.js +1 -0
  124. package/models/platform-specific.d.ts +1 -0
  125. package/models/platform-specific.js +1 -0
  126. package/models/platform.d.ts +2 -0
  127. package/models/platform.js +1 -0
  128. package/models/queue-store.d.ts +49 -0
  129. package/models/queue-store.js +1 -0
  130. package/models/queue-task.d.ts +15 -0
  131. package/models/queue-task.js +1 -0
  132. package/models/repositories.d.ts +58 -38
  133. package/models/screen-detection.d.ts +10 -0
  134. package/models/screen-detection.js +1 -0
  135. package/models/settings-store.d.ts +12 -0
  136. package/models/settings-store.js +1 -0
  137. package/models/settings-ui-store.d.ts +7 -0
  138. package/models/settings-ui-store.js +1 -0
  139. package/models/sidebar-store.d.ts +22 -0
  140. package/models/sidebar-store.js +1 -0
  141. package/models/splash-screen.d.ts +13 -0
  142. package/models/splash-screen.js +1 -0
  143. package/models/store.d.ts +1 -1
  144. package/models/style-size.d.ts +2 -0
  145. package/models/style-size.js +1 -0
  146. package/models/style-variant.d.ts +1 -0
  147. package/models/style-variant.js +1 -0
  148. package/models/sync-store.d.ts +8 -6
  149. package/models/sync.d.ts +0 -5
  150. package/models/system-info.d.ts +47 -0
  151. package/models/system-info.js +1 -0
  152. package/models/theme-store.d.ts +16 -0
  153. package/models/theme-store.js +1 -0
  154. package/models/theme-variables.d.ts +4 -189
  155. package/models/theme-variables.js +2 -191
  156. package/models/toolbar-store.d.ts +9 -0
  157. package/models/toolbar-store.js +1 -0
  158. package/models/ui-store.d.ts +6 -0
  159. package/models/ui-store.js +1 -0
  160. package/models/user.d.ts +3 -4
  161. package/models/vue-component.d.ts +4 -2
  162. package/package-lock.json +5553 -0
  163. package/package.json +37 -26
  164. package/remote-api/api.d.ts +288 -669
  165. package/remote-api/api.js +199 -485
  166. package/remote-api/base.js +1 -1
  167. package/remote-api/common.d.ts +1 -1
  168. package/sync/__tests__/memory-state.spec.d.ts +1 -0
  169. package/sync/__tests__/memory-state.spec.js +49 -0
  170. package/sync/__tests__/plan.spec.d.ts +1 -0
  171. package/sync/__tests__/plan.spec.js +116 -0
  172. package/sync/create-sync-plan.d.ts +2 -0
  173. package/sync/create-sync-plan.js +13 -0
  174. package/sync/fetch.d.ts +8 -0
  175. package/sync/fetch.js +32 -0
  176. package/sync/index.d.ts +10 -0
  177. package/sync/index.js +9 -0
  178. package/sync/memory-state.d.ts +2 -0
  179. package/sync/memory-state.js +22 -0
  180. package/sync/operations/conflict.d.ts +10 -0
  181. package/sync/operations/conflict.js +56 -0
  182. package/sync/operations/delete-local.d.ts +2 -0
  183. package/sync/operations/delete-local.js +17 -0
  184. package/sync/operations/delete-remote.d.ts +2 -0
  185. package/sync/operations/delete-remote.js +26 -0
  186. package/sync/operations/download.d.ts +2 -0
  187. package/sync/operations/download.js +20 -0
  188. package/sync/operations/index.d.ts +5 -0
  189. package/sync/operations/index.js +5 -0
  190. package/sync/operations/synced-file.d.ts +14 -0
  191. package/sync/operations/synced-file.js +5 -0
  192. package/sync/operations/upload.d.ts +2 -0
  193. package/sync/operations/upload.js +30 -0
  194. package/sync/plan.d.ts +9 -0
  195. package/sync/plan.js +57 -0
  196. package/sync/recovery.d.ts +2 -0
  197. package/sync/recovery.js +6 -0
  198. package/sync/scan.d.ts +4 -0
  199. package/sync/scan.js +40 -0
  200. package/sync/types.d.ts +74 -0
  201. package/sync/types.js +7 -0
  202. package/sync/utils/__tests__/oldest-synced-at.spec.d.ts +1 -0
  203. package/sync/utils/__tests__/oldest-synced-at.spec.js +38 -0
  204. package/sync/utils/oldest-synced-at.d.ts +2 -0
  205. package/sync/utils/oldest-synced-at.js +9 -0
  206. package/types/index.d.ts +0 -0
  207. package/types/index.js +0 -0
  208. package/utils/__tests__/find-files-diff.spec.d.ts +1 -0
  209. package/{tools → utils}/__tests__/find-files-diff.spec.js +3 -3
  210. package/utils/__tests__/find-note-files-diff.spec.d.ts +1 -0
  211. package/{tools → utils}/__tests__/find-note-files-diff.spec.js +5 -5
  212. package/utils/__tests__/get-file-name.spec.d.ts +1 -0
  213. package/utils/__tests__/get-string-path.spec.d.ts +1 -0
  214. package/utils/__tests__/is-gpg-encrypted.spec.d.ts +1 -0
  215. package/utils/__tests__/is-org-file.spec.d.ts +1 -0
  216. package/utils/__tests__/join.spec.d.ts +1 -0
  217. package/utils/__tests__/join.spec.js +32 -0
  218. package/utils/__tests__/nullable-guards.spec.d.ts +1 -0
  219. package/utils/__tests__/nullable-guards.spec.js +44 -0
  220. package/utils/__tests__/parent-folder.spec.d.ts +1 -0
  221. package/utils/__tests__/read-org-files-recursively.spec.d.ts +1 -0
  222. package/utils/__tests__/split-path.spec.d.ts +1 -0
  223. package/utils/__tests__/to-absolute-path.spec.d.ts +1 -0
  224. package/utils/__tests__/to-absolute-path.spec.js +26 -0
  225. package/utils/__tests__/to-error.spec.d.ts +1 -0
  226. package/utils/__tests__/to-error.spec.js +112 -0
  227. package/utils/__tests__/with-root.spec.d.ts +1 -0
  228. package/utils/__tests__/with-root.spec.js +20 -0
  229. package/{tools → utils}/find-notes-files-diff.js +6 -3
  230. package/{tools → utils}/index.d.ts +4 -1
  231. package/{tools → utils}/index.js +4 -1
  232. package/utils/join-path.d.ts +1 -0
  233. package/utils/join-path.js +13 -0
  234. package/utils/nullable-guards.d.ts +2 -0
  235. package/utils/nullable-guards.js +6 -0
  236. package/utils/to-absolute-path.d.ts +2 -0
  237. package/utils/to-absolute-path.js +2 -0
  238. package/utils/to-error.d.ts +6 -0
  239. package/utils/to-error.js +33 -0
  240. package/utils/toml.d.ts +3 -0
  241. package/utils/toml.js +31 -0
  242. package/utils/with-root.d.ts +1 -0
  243. package/utils/with-root.js +6 -0
  244. package/websocket/client.d.ts +24 -0
  245. package/websocket/client.js +83 -0
  246. package/models/file-tree.d.ts +0 -12
  247. package/tools/__tests__/join.spec.js +0 -24
  248. package/tools/join-path.d.ts +0 -1
  249. package/tools/join-path.js +0 -7
  250. package/tools/mock-server.d.ts +0 -1
  251. package/tools/mock-server.js +0 -12
  252. /package/models/{file-cache.js → buffer-store.js} +0 -0
  253. /package/models/{file-tree.js → buffer.js} +0 -0
  254. /package/{tools/__tests__/find-files-diff.spec.d.ts → models/colors.js} +0 -0
  255. /package/{tools/__tests__/find-note-files-diff.spec.d.ts → models/commands-group-store.js} +0 -0
  256. /package/{tools/__tests__/get-file-name.spec.d.ts → models/commands-store.js} +0 -0
  257. /package/{tools/__tests__/get-string-path.spec.d.ts → models/completion-store.js} +0 -0
  258. /package/{tools/__tests__/is-gpg-encrypted.spec.d.ts → models/config-store.js} +0 -0
  259. /package/{tools/__tests__/is-org-file.spec.d.ts → models/confirmation-modal.js} +0 -0
  260. /package/{tools/__tests__/join.spec.d.ts → models/context-menu-store.js} +0 -0
  261. /package/{tools/__tests__/parent-folder.spec.d.ts → models/cron-store.js} +0 -0
  262. /package/{tools/__tests__/read-org-files-recursively.spec.d.ts → models/cron-task.js} +0 -0
  263. /package/{tools/__tests__/split-path.spec.d.ts → models/css-utils.js} +0 -0
  264. /package/{tools → utils}/__tests__/get-file-name.spec.js +0 -0
  265. /package/{tools → utils}/__tests__/get-string-path.spec.js +0 -0
  266. /package/{tools → utils}/__tests__/is-gpg-encrypted.spec.js +0 -0
  267. /package/{tools → utils}/__tests__/is-org-file.spec.js +0 -0
  268. /package/{tools → utils}/__tests__/parent-folder.spec.js +0 -0
  269. /package/{tools → utils}/__tests__/read-org-files-recursively.spec.js +0 -0
  270. /package/{tools → utils}/__tests__/split-path.spec.js +0 -0
  271. /package/{tools → utils}/find-notes-files-diff.d.ts +0 -0
  272. /package/{tools → utils}/get-file-name.d.ts +0 -0
  273. /package/{tools → utils}/get-file-name.js +0 -0
  274. /package/{tools → utils}/get-parent-dir.d.ts +0 -0
  275. /package/{tools → utils}/get-parent-dir.js +0 -0
  276. /package/{tools → utils}/get-string-path.d.ts +0 -0
  277. /package/{tools → utils}/get-string-path.js +0 -0
  278. /package/{tools → utils}/is-gpg-encrypted.d.ts +0 -0
  279. /package/{tools → utils}/is-gpg-encrypted.js +0 -0
  280. /package/{tools → utils}/is-org-file.d.ts +0 -0
  281. /package/{tools → utils}/is-org-file.js +0 -0
  282. /package/{tools → utils}/split-path.d.ts +0 -0
  283. /package/{tools → utils}/split-path.js +0 -0
@@ -14,141 +14,127 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base.js';
15
15
  import { BaseAPI } from './base.js';
16
16
  /**
17
- *
18
- * @export
19
- * @interface FilesUploadPostRequest
20
- */
21
- export interface FilesUploadPostRequest {
22
- /**
23
- * files
24
- * @type {Array<string>}
25
- * @memberof FilesUploadPostRequest
26
- */
27
- 'files': Array<string>;
28
- }
29
- /**
30
- *
17
+ * File change information for synchronization
31
18
  * @export
32
- * @interface HandlersCreatingNote
19
+ * @interface FileChange
33
20
  */
34
- export interface HandlersCreatingNote {
21
+ export interface FileChange {
35
22
  /**
36
23
  *
37
24
  * @type {string}
38
- * @memberof HandlersCreatingNote
25
+ * @memberof FileChange
39
26
  */
40
- 'content': string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof HandlersCreatingNote
45
- */
46
- 'createdAt'?: string;
27
+ 'contentHash'?: string;
47
28
  /**
48
29
  *
49
30
  * @type {boolean}
50
- * @memberof HandlersCreatingNote
31
+ * @memberof FileChange
51
32
  */
52
- 'encrypted'?: boolean;
33
+ 'deleted': boolean;
53
34
  /**
54
35
  *
55
36
  * @type {string}
56
- * @memberof HandlersCreatingNote
37
+ * @memberof FileChange
57
38
  */
58
- 'encryptionType'?: HandlersCreatingNoteEncryptionTypeEnum;
39
+ 'deletedAt'?: string;
59
40
  /**
60
41
  *
61
- * @type {Array<string>}
62
- * @memberof HandlersCreatingNote
42
+ * @type {string}
43
+ * @memberof FileChange
63
44
  */
64
- 'filePath'?: Array<string>;
45
+ 'id': string;
65
46
  /**
66
47
  *
67
48
  * @type {string}
68
- * @memberof HandlersCreatingNote
49
+ * @memberof FileChange
69
50
  */
70
- 'id'?: string;
51
+ 'path': string;
71
52
  /**
72
53
  *
73
- * @type {ModelsNoteMeta}
74
- * @memberof HandlersCreatingNote
54
+ * @type {number}
55
+ * @memberof FileChange
75
56
  */
76
- 'meta'?: ModelsNoteMeta;
57
+ 'size'?: number;
77
58
  /**
78
59
  *
79
60
  * @type {string}
80
- * @memberof HandlersCreatingNote
61
+ * @memberof FileChange
81
62
  */
82
- 'touchedAt'?: string;
63
+ 'updatedAt': string;
83
64
  /**
84
65
  *
85
- * @type {string}
86
- * @memberof HandlersCreatingNote
66
+ * @type {number}
67
+ * @memberof FileChange
87
68
  */
88
- 'updatedAt'?: string;
69
+ 'version': number;
89
70
  }
90
- export declare const HandlersCreatingNoteEncryptionTypeEnum: {
91
- readonly GpgKeys: "gpgKeys";
92
- readonly GpgPassword: "gpgPassword";
93
- readonly Disabled: "disabled";
94
- };
95
- export type HandlersCreatingNoteEncryptionTypeEnum = typeof HandlersCreatingNoteEncryptionTypeEnum[keyof typeof HandlersCreatingNoteEncryptionTypeEnum];
96
71
  /**
97
- *
72
+ * Response after successful file upload
98
73
  * @export
99
- * @interface HandlersDeletedNote
74
+ * @interface FileUploadResponse
100
75
  */
101
- export interface HandlersDeletedNote {
76
+ export interface FileUploadResponse {
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof FileUploadResponse
81
+ */
82
+ 'contentHash': string;
102
83
  /**
103
84
  *
104
- * @type {Array<string>}
105
- * @memberof HandlersDeletedNote
85
+ * @type {string}
86
+ * @memberof FileUploadResponse
106
87
  */
107
- 'filePath'?: Array<string>;
88
+ 'id': string;
108
89
  /**
109
90
  *
110
91
  * @type {string}
111
- * @memberof HandlersDeletedNote
92
+ * @memberof FileUploadResponse
112
93
  */
113
- 'id'?: string;
114
- }
115
- /**
116
- *
117
- * @export
118
- * @interface HandlersHttpErrorAny
119
- */
120
- export interface HandlersHttpErrorAny {
94
+ 'path': string;
121
95
  /**
122
96
  *
123
- * @type {object}
124
- * @memberof HandlersHttpErrorAny
97
+ * @type {number}
98
+ * @memberof FileUploadResponse
125
99
  */
126
- 'data'?: object;
100
+ 'size': number;
127
101
  /**
128
102
  *
129
103
  * @type {string}
130
- * @memberof HandlersHttpErrorAny
104
+ * @memberof FileUploadResponse
131
105
  */
132
- 'message'?: string;
106
+ 'updatedAt': string;
107
+ /**
108
+ *
109
+ * @type {boolean}
110
+ * @memberof FileUploadResponse
111
+ */
112
+ 'uploaded': boolean;
113
+ /**
114
+ *
115
+ * @type {number}
116
+ * @memberof FileUploadResponse
117
+ */
118
+ 'version': number;
133
119
  }
134
120
  /**
135
121
  *
136
122
  * @export
137
- * @interface HandlersHttpResponseAnyAny
123
+ * @interface HandlersHttpErrorAny
138
124
  */
139
- export interface HandlersHttpResponseAnyAny {
125
+ export interface HandlersHttpErrorAny {
140
126
  /**
141
127
  *
142
128
  * @type {object}
143
- * @memberof HandlersHttpResponseAnyAny
129
+ * @memberof HandlersHttpErrorAny
144
130
  */
145
131
  'data'?: object;
146
132
  /**
147
133
  *
148
- * @type {object}
149
- * @memberof HandlersHttpResponseAnyAny
134
+ * @type {string}
135
+ * @memberof HandlersHttpErrorAny
150
136
  */
151
- 'meta'?: object;
137
+ 'message'?: string;
152
138
  }
153
139
  /**
154
140
  *
@@ -172,38 +158,19 @@ export interface HandlersHttpResponseArrayModelsAPITokenAny {
172
158
  /**
173
159
  *
174
160
  * @export
175
- * @interface HandlersHttpResponseArrayModelsPublicNoteModelsPagination
161
+ * @interface HandlersHttpResponseFileUploadResponseAny
176
162
  */
177
- export interface HandlersHttpResponseArrayModelsPublicNoteModelsPagination {
163
+ export interface HandlersHttpResponseFileUploadResponseAny {
178
164
  /**
179
165
  *
180
- * @type {Array<ModelsPublicNote>}
181
- * @memberof HandlersHttpResponseArrayModelsPublicNoteModelsPagination
166
+ * @type {FileUploadResponse}
167
+ * @memberof HandlersHttpResponseFileUploadResponseAny
182
168
  */
183
- 'data'?: Array<ModelsPublicNote>;
184
- /**
185
- *
186
- * @type {ModelsPagination}
187
- * @memberof HandlersHttpResponseArrayModelsPublicNoteModelsPagination
188
- */
189
- 'meta'?: ModelsPagination;
190
- }
191
- /**
192
- *
193
- * @export
194
- * @interface HandlersHttpResponseArrayStringAny
195
- */
196
- export interface HandlersHttpResponseArrayStringAny {
197
- /**
198
- *
199
- * @type {Array<string>}
200
- * @memberof HandlersHttpResponseArrayStringAny
201
- */
202
- 'data'?: Array<string>;
169
+ 'data'?: FileUploadResponse;
203
170
  /**
204
171
  *
205
172
  * @type {object}
206
- * @memberof HandlersHttpResponseArrayStringAny
173
+ * @memberof HandlersHttpResponseFileUploadResponseAny
207
174
  */
208
175
  'meta'?: object;
209
176
  }
@@ -229,76 +196,76 @@ export interface HandlersHttpResponseHandlersOAuthRedirectDataAny {
229
196
  /**
230
197
  *
231
198
  * @export
232
- * @interface HandlersHttpResponseHandlersSyncNotesResponseAny
199
+ * @interface HandlersHttpResponseModelsAPITokenAny
233
200
  */
234
- export interface HandlersHttpResponseHandlersSyncNotesResponseAny {
201
+ export interface HandlersHttpResponseModelsAPITokenAny {
235
202
  /**
236
203
  *
237
- * @type {HandlersSyncNotesResponse}
238
- * @memberof HandlersHttpResponseHandlersSyncNotesResponseAny
204
+ * @type {ModelsAPIToken}
205
+ * @memberof HandlersHttpResponseModelsAPITokenAny
239
206
  */
240
- 'data'?: HandlersSyncNotesResponse;
207
+ 'data'?: ModelsAPIToken;
241
208
  /**
242
209
  *
243
210
  * @type {object}
244
- * @memberof HandlersHttpResponseHandlersSyncNotesResponseAny
211
+ * @memberof HandlersHttpResponseModelsAPITokenAny
245
212
  */
246
213
  'meta'?: object;
247
214
  }
248
215
  /**
249
216
  *
250
217
  * @export
251
- * @interface HandlersHttpResponseModelsAPITokenAny
218
+ * @interface HandlersHttpResponseModelsFileMetadataAny
252
219
  */
253
- export interface HandlersHttpResponseModelsAPITokenAny {
220
+ export interface HandlersHttpResponseModelsFileMetadataAny {
254
221
  /**
255
222
  *
256
- * @type {ModelsAPIToken}
257
- * @memberof HandlersHttpResponseModelsAPITokenAny
223
+ * @type {ModelsFileMetadata}
224
+ * @memberof HandlersHttpResponseModelsFileMetadataAny
258
225
  */
259
- 'data'?: ModelsAPIToken;
226
+ 'data'?: ModelsFileMetadata;
260
227
  /**
261
228
  *
262
229
  * @type {object}
263
- * @memberof HandlersHttpResponseModelsAPITokenAny
230
+ * @memberof HandlersHttpResponseModelsFileMetadataAny
264
231
  */
265
232
  'meta'?: object;
266
233
  }
267
234
  /**
268
235
  *
269
236
  * @export
270
- * @interface HandlersHttpResponseModelsPublicNoteAny
237
+ * @interface HandlersHttpResponseModelsUserPersonalInfoAny
271
238
  */
272
- export interface HandlersHttpResponseModelsPublicNoteAny {
239
+ export interface HandlersHttpResponseModelsUserPersonalInfoAny {
273
240
  /**
274
241
  *
275
- * @type {ModelsPublicNote}
276
- * @memberof HandlersHttpResponseModelsPublicNoteAny
242
+ * @type {ModelsUserPersonalInfo}
243
+ * @memberof HandlersHttpResponseModelsUserPersonalInfoAny
277
244
  */
278
- 'data'?: ModelsPublicNote;
245
+ 'data'?: ModelsUserPersonalInfo;
279
246
  /**
280
247
  *
281
248
  * @type {object}
282
- * @memberof HandlersHttpResponseModelsPublicNoteAny
249
+ * @memberof HandlersHttpResponseModelsUserPersonalInfoAny
283
250
  */
284
251
  'meta'?: object;
285
252
  }
286
253
  /**
287
254
  *
288
255
  * @export
289
- * @interface HandlersHttpResponseModelsUserPersonalInfoAny
256
+ * @interface HandlersHttpResponseSyncChangesResponseAny
290
257
  */
291
- export interface HandlersHttpResponseModelsUserPersonalInfoAny {
258
+ export interface HandlersHttpResponseSyncChangesResponseAny {
292
259
  /**
293
260
  *
294
- * @type {ModelsUserPersonalInfo}
295
- * @memberof HandlersHttpResponseModelsUserPersonalInfoAny
261
+ * @type {SyncChangesResponse}
262
+ * @memberof HandlersHttpResponseSyncChangesResponseAny
296
263
  */
297
- 'data'?: ModelsUserPersonalInfo;
264
+ 'data'?: SyncChangesResponse;
298
265
  /**
299
266
  *
300
267
  * @type {object}
301
- * @memberof HandlersHttpResponseModelsUserPersonalInfoAny
268
+ * @memberof HandlersHttpResponseSyncChangesResponseAny
302
269
  */
303
270
  'meta'?: object;
304
271
  }
@@ -334,50 +301,6 @@ export interface HandlersSubscribeBody {
334
301
  */
335
302
  'token'?: string;
336
303
  }
337
- /**
338
- *
339
- * @export
340
- * @interface HandlersSyncNotesRequest
341
- */
342
- export interface HandlersSyncNotesRequest {
343
- /**
344
- *
345
- * @type {Array<string>}
346
- * @memberof HandlersSyncNotesRequest
347
- */
348
- 'deletedNotesIds'?: Array<string>;
349
- /**
350
- *
351
- * @type {Array<HandlersCreatingNote>}
352
- * @memberof HandlersSyncNotesRequest
353
- */
354
- 'notes'?: Array<HandlersCreatingNote>;
355
- /**
356
- *
357
- * @type {string}
358
- * @memberof HandlersSyncNotesRequest
359
- */
360
- 'timestamp'?: string;
361
- }
362
- /**
363
- *
364
- * @export
365
- * @interface HandlersSyncNotesResponse
366
- */
367
- export interface HandlersSyncNotesResponse {
368
- /**
369
- *
370
- * @type {Array<HandlersDeletedNote>}
371
- * @memberof HandlersSyncNotesResponse
372
- */
373
- 'deletedNotes'?: Array<HandlersDeletedNote>;
374
- /**
375
- *
376
- * @type {Array<ModelsPublicNote>}
377
- * @memberof HandlersSyncNotesResponse
378
- */
379
- 'notes'?: Array<ModelsPublicNote>;
380
- }
381
304
  /**
382
305
  *
383
306
  * @export
@@ -422,17 +345,6 @@ export interface ModelsAPIToken {
422
345
  */
423
346
  'token'?: string;
424
347
  }
425
- /**
426
- *
427
- * @export
428
- * @enum {string}
429
- */
430
- export declare const ModelsCategory: {
431
- readonly CategoryArticle: "article";
432
- readonly CategoryBook: "book";
433
- readonly CategorySchedule: "schedule";
434
- };
435
- export type ModelsCategory = typeof ModelsCategory[keyof typeof ModelsCategory];
436
348
  /**
437
349
  *
438
350
  * @export
@@ -449,115 +361,63 @@ export interface ModelsEnvironmentInfo {
449
361
  /**
450
362
  *
451
363
  * @export
452
- * @interface ModelsNoteHeading
364
+ * @interface ModelsFileMetadata
453
365
  */
454
- export interface ModelsNoteHeading {
455
- /**
456
- *
457
- * @type {number}
458
- * @memberof ModelsNoteHeading
459
- */
460
- 'level'?: number;
366
+ export interface ModelsFileMetadata {
461
367
  /**
462
368
  *
463
369
  * @type {string}
464
- * @memberof ModelsNoteHeading
370
+ * @memberof ModelsFileMetadata
465
371
  */
466
- 'text'?: string;
467
- }
468
- /**
469
- *
470
- * @export
471
- * @interface ModelsNoteLink
472
- */
473
- export interface ModelsNoteLink {
372
+ 'contentHash'?: string;
474
373
  /**
475
374
  *
476
375
  * @type {string}
477
- * @memberof ModelsNoteLink
376
+ * @memberof ModelsFileMetadata
478
377
  */
479
- 'name'?: string;
378
+ 'createdAt'?: string;
480
379
  /**
481
380
  *
482
381
  * @type {string}
483
- * @memberof ModelsNoteLink
382
+ * @memberof ModelsFileMetadata
484
383
  */
485
- 'url'?: string;
486
- }
487
- /**
488
- *
489
- * @export
490
- * @interface ModelsNoteMeta
491
- */
492
- export interface ModelsNoteMeta {
493
- /**
494
- *
495
- * @type {ModelsCategory}
496
- * @memberof ModelsNoteMeta
497
- */
498
- 'category'?: ModelsCategory;
499
- /**
500
- *
501
- * @type {{ [key: string]: string; }}
502
- * @memberof ModelsNoteMeta
503
- */
504
- 'connectedNotes'?: {
505
- [key: string]: string;
506
- };
384
+ 'deletedAt'?: string;
507
385
  /**
508
386
  *
509
387
  * @type {string}
510
- * @memberof ModelsNoteMeta
511
- */
512
- 'description'?: string;
513
- /**
514
- *
515
- * @type {Array<ModelsNoteLink>}
516
- * @memberof ModelsNoteMeta
388
+ * @memberof ModelsFileMetadata
517
389
  */
518
- 'externalLinks'?: Array<ModelsNoteLink>;
519
- /**
520
- *
521
- * @type {Array<string>}
522
- * @memberof ModelsNoteMeta
523
- */
524
- 'fileTags'?: Array<string>;
390
+ 'id'?: string;
525
391
  /**
526
392
  *
527
- * @type {Array<ModelsNoteHeading>}
528
- * @memberof ModelsNoteMeta
393
+ * @type {string}
394
+ * @memberof ModelsFileMetadata
529
395
  */
530
- 'headings'?: Array<ModelsNoteHeading>;
396
+ 'path'?: string;
531
397
  /**
532
398
  *
533
- * @type {Array<string>}
534
- * @memberof ModelsNoteMeta
399
+ * @type {number}
400
+ * @memberof ModelsFileMetadata
535
401
  */
536
- 'images'?: Array<string>;
402
+ 'size'?: number;
537
403
  /**
538
404
  *
539
405
  * @type {string}
540
- * @memberof ModelsNoteMeta
541
- */
542
- 'previewImg'?: string;
543
- /**
544
- *
545
- * @type {boolean}
546
- * @memberof ModelsNoteMeta
406
+ * @memberof ModelsFileMetadata
547
407
  */
548
- 'published'?: boolean;
408
+ 'updatedAt'?: string;
549
409
  /**
550
410
  *
551
411
  * @type {string}
552
- * @memberof ModelsNoteMeta
412
+ * @memberof ModelsFileMetadata
553
413
  */
554
- 'startup'?: string;
414
+ 'userId'?: string;
555
415
  /**
556
416
  *
557
- * @type {string}
558
- * @memberof ModelsNoteMeta
417
+ * @type {number}
418
+ * @memberof ModelsFileMetadata
559
419
  */
560
- 'title'?: string;
420
+ 'version'?: number;
561
421
  }
562
422
  /**
563
423
  *
@@ -587,216 +447,125 @@ export interface ModelsOrgNoteClientUpdateInfo {
587
447
  /**
588
448
  *
589
449
  * @export
590
- * @interface ModelsPagination
591
- */
592
- export interface ModelsPagination {
593
- /**
594
- *
595
- * @type {number}
596
- * @memberof ModelsPagination
597
- */
598
- 'limit'?: number;
599
- /**
600
- *
601
- * @type {number}
602
- * @memberof ModelsPagination
603
- */
604
- 'offset'?: number;
605
- /**
606
- *
607
- * @type {number}
608
- * @memberof ModelsPagination
609
- */
610
- 'total'?: number;
611
- }
612
- /**
613
- *
614
- * @export
615
- * @interface ModelsPublicNote
450
+ * @interface ModelsUserPersonalInfo
616
451
  */
617
- export interface ModelsPublicNote {
618
- /**
619
- *
620
- * @type {ModelsPublicUser}
621
- * @memberof ModelsPublicNote
622
- */
623
- 'author'?: ModelsPublicUser;
624
- /**
625
- *
626
- * @type {string}
627
- * @memberof ModelsPublicNote
628
- */
629
- 'content': string;
630
- /**
631
- *
632
- * @type {string}
633
- * @memberof ModelsPublicNote
634
- */
635
- 'createdAt'?: string;
636
- /**
637
- *
638
- * @type {boolean}
639
- * @memberof ModelsPublicNote
640
- */
641
- 'encrypted'?: boolean;
642
- /**
643
- * Encrypted note content
644
- * @type {string}
645
- * @memberof ModelsPublicNote
646
- */
647
- 'encryptionType'?: ModelsPublicNoteEncryptionTypeEnum;
648
- /**
649
- *
650
- * @type {Array<string>}
651
- * @memberof ModelsPublicNote
652
- */
653
- 'filePath'?: Array<string>;
654
- /**
655
- * It\'s externalID from original note
656
- * @type {string}
657
- * @memberof ModelsPublicNote
658
- */
659
- 'id'?: string;
660
- /**
661
- *
662
- * @type {boolean}
663
- * @memberof ModelsPublicNote
664
- */
665
- 'isMy'?: boolean;
666
- /**
667
- *
668
- * @type {ModelsNoteMeta}
669
- * @memberof ModelsPublicNote
670
- */
671
- 'meta': ModelsNoteMeta;
672
- /**
673
- *
674
- * @type {number}
675
- * @memberof ModelsPublicNote
676
- */
677
- 'size'?: number;
678
- /**
679
- *
680
- * @type {string}
681
- * @memberof ModelsPublicNote
682
- */
683
- 'touchedAt'?: string;
452
+ export interface ModelsUserPersonalInfo {
684
453
  /**
685
454
  *
686
455
  * @type {string}
687
- * @memberof ModelsPublicNote
456
+ * @memberof ModelsUserPersonalInfo
688
457
  */
689
- 'updatedAt'?: string;
690
- }
691
- export declare const ModelsPublicNoteEncryptionTypeEnum: {
692
- readonly GpgKeys: "gpgKeys";
693
- readonly GpgPassword: "gpgPassword";
694
- readonly Disabled: "disabled";
695
- };
696
- export type ModelsPublicNoteEncryptionTypeEnum = typeof ModelsPublicNoteEncryptionTypeEnum[keyof typeof ModelsPublicNoteEncryptionTypeEnum];
697
- /**
698
- *
699
- * @export
700
- * @interface ModelsPublicUser
701
- */
702
- export interface ModelsPublicUser {
458
+ 'active'?: string;
703
459
  /**
704
460
  *
705
461
  * @type {string}
706
- * @memberof ModelsPublicUser
462
+ * @memberof ModelsUserPersonalInfo
707
463
  */
708
464
  'avatarUrl'?: string;
709
465
  /**
710
466
  *
711
467
  * @type {string}
712
- * @memberof ModelsPublicUser
468
+ * @memberof ModelsUserPersonalInfo
713
469
  */
714
470
  'email'?: string;
715
471
  /**
716
472
  *
717
473
  * @type {string}
718
- * @memberof ModelsPublicUser
474
+ * @memberof ModelsUserPersonalInfo
719
475
  */
720
476
  'id'?: string;
721
477
  /**
722
478
  *
723
479
  * @type {string}
724
- * @memberof ModelsPublicUser
480
+ * @memberof ModelsUserPersonalInfo
725
481
  */
726
482
  'name'?: string;
727
483
  /**
728
484
  *
729
485
  * @type {string}
730
- * @memberof ModelsPublicUser
486
+ * @memberof ModelsUserPersonalInfo
731
487
  */
732
488
  'nickName'?: string;
733
489
  /**
734
490
  *
735
491
  * @type {string}
736
- * @memberof ModelsPublicUser
492
+ * @memberof ModelsUserPersonalInfo
737
493
  */
738
494
  'profileUrl'?: string;
739
- }
740
- /**
741
- *
742
- * @export
743
- * @interface ModelsUserPersonalInfo
744
- */
745
- export interface ModelsUserPersonalInfo {
746
495
  /**
747
496
  *
748
497
  * @type {string}
749
498
  * @memberof ModelsUserPersonalInfo
750
499
  */
751
- 'active'?: string;
500
+ 'provider'?: string;
752
501
  /**
753
502
  *
754
- * @type {string}
503
+ * @type {number}
755
504
  * @memberof ModelsUserPersonalInfo
756
505
  */
757
- 'avatarUrl'?: string;
506
+ 'spaceLimit'?: number;
758
507
  /**
759
508
  *
760
- * @type {string}
509
+ * @type {number}
761
510
  * @memberof ModelsUserPersonalInfo
762
511
  */
763
- 'email'?: string;
512
+ 'usedSpace'?: number;
513
+ }
514
+ /**
515
+ * Response containing file changes since last sync
516
+ * @export
517
+ * @interface SyncChangesResponse
518
+ */
519
+ export interface SyncChangesResponse {
764
520
  /**
765
521
  *
766
- * @type {string}
767
- * @memberof ModelsUserPersonalInfo
522
+ * @type {Array<FileChange>}
523
+ * @memberof SyncChangesResponse
768
524
  */
769
- 'id'?: string;
525
+ 'changes': Array<FileChange>;
770
526
  /**
771
527
  *
772
528
  * @type {string}
773
- * @memberof ModelsUserPersonalInfo
529
+ * @memberof SyncChangesResponse
774
530
  */
775
- 'name'?: string;
531
+ 'cursor'?: string;
532
+ /**
533
+ *
534
+ * @type {boolean}
535
+ * @memberof SyncChangesResponse
536
+ */
537
+ 'hasMore': boolean;
776
538
  /**
777
539
  *
778
540
  * @type {string}
779
- * @memberof ModelsUserPersonalInfo
541
+ * @memberof SyncChangesResponse
780
542
  */
781
- 'nickName'?: string;
543
+ 'serverTime': string;
544
+ }
545
+ /**
546
+ * Response when optimistic locking fails due to version mismatch
547
+ * @export
548
+ * @interface VersionConflictResponse
549
+ */
550
+ export interface VersionConflictResponse {
782
551
  /**
783
552
  *
784
553
  * @type {string}
785
- * @memberof ModelsUserPersonalInfo
554
+ * @memberof VersionConflictResponse
786
555
  */
787
- 'profileUrl'?: string;
556
+ 'error': string;
788
557
  /**
789
558
  *
790
- * @type {number}
791
- * @memberof ModelsUserPersonalInfo
559
+ * @type {string}
560
+ * @memberof VersionConflictResponse
792
561
  */
793
- 'spaceLimit'?: number;
562
+ 'path': string;
794
563
  /**
795
564
  *
796
565
  * @type {number}
797
- * @memberof ModelsUserPersonalInfo
566
+ * @memberof VersionConflictResponse
798
567
  */
799
- 'usedSpace'?: number;
568
+ 'serverVersion': number;
800
569
  }
801
570
  /**
802
571
  * AuthApi - axios parameter creator
@@ -1106,340 +875,245 @@ export declare class AuthApi extends BaseAPI {
1106
875
  authVerifyGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseModelsUserPersonalInfoAny, any>>;
1107
876
  }
1108
877
  /**
1109
- * FilesApi - axios parameter creator
878
+ * EventsApi - axios parameter creator
1110
879
  * @export
1111
880
  */
1112
- export declare const FilesApiAxiosParamCreator: (configuration?: Configuration) => {
881
+ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration) => {
1113
882
  /**
1114
- * Upload files.
1115
- * @summary Upload files
1116
- * @param {FilesUploadPostRequest} filesUploadPostRequest
883
+ * Generic WebSocket endpoint for real-time user events (sync, notifications, etc). Requires `Upgrade: websocket` header.
884
+ * @summary WebSocket Events Channel
885
+ * @param {string} [token] Auth token (alternative to Authorization header)
1117
886
  * @param {*} [options] Override http request option.
1118
887
  * @throws {RequiredError}
1119
888
  */
1120
- filesUploadPost: (filesUploadPostRequest: FilesUploadPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
889
+ wsV1EventsGet: (token?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1121
890
  };
1122
891
  /**
1123
- * FilesApi - functional programming interface
892
+ * EventsApi - functional programming interface
1124
893
  * @export
1125
894
  */
1126
- export declare const FilesApiFp: (configuration?: Configuration) => {
895
+ export declare const EventsApiFp: (configuration?: Configuration) => {
1127
896
  /**
1128
- * Upload files.
1129
- * @summary Upload files
1130
- * @param {FilesUploadPostRequest} filesUploadPostRequest
897
+ * Generic WebSocket endpoint for real-time user events (sync, notifications, etc). Requires `Upgrade: websocket` header.
898
+ * @summary WebSocket Events Channel
899
+ * @param {string} [token] Auth token (alternative to Authorization header)
1131
900
  * @param {*} [options] Override http request option.
1132
901
  * @throws {RequiredError}
1133
902
  */
1134
- filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
903
+ wsV1EventsGet(token?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1135
904
  };
1136
905
  /**
1137
- * FilesApi - factory interface
906
+ * EventsApi - factory interface
1138
907
  * @export
1139
908
  */
1140
- export declare const FilesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
909
+ export declare const EventsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1141
910
  /**
1142
- * Upload files.
1143
- * @summary Upload files
1144
- * @param {FilesUploadPostRequest} filesUploadPostRequest
911
+ * Generic WebSocket endpoint for real-time user events (sync, notifications, etc). Requires `Upgrade: websocket` header.
912
+ * @summary WebSocket Events Channel
913
+ * @param {string} [token] Auth token (alternative to Authorization header)
1145
914
  * @param {*} [options] Override http request option.
1146
915
  * @throws {RequiredError}
1147
916
  */
1148
- filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: any): AxiosPromise<object>;
917
+ wsV1EventsGet(token?: string, options?: any): AxiosPromise<void>;
1149
918
  };
1150
919
  /**
1151
- * FilesApi - object-oriented interface
920
+ * EventsApi - object-oriented interface
1152
921
  * @export
1153
- * @class FilesApi
922
+ * @class EventsApi
1154
923
  * @extends {BaseAPI}
1155
924
  */
1156
- export declare class FilesApi extends BaseAPI {
925
+ export declare class EventsApi extends BaseAPI {
1157
926
  /**
1158
- * Upload files.
1159
- * @summary Upload files
1160
- * @param {FilesUploadPostRequest} filesUploadPostRequest
927
+ * Generic WebSocket endpoint for real-time user events (sync, notifications, etc). Requires `Upgrade: websocket` header.
928
+ * @summary WebSocket Events Channel
929
+ * @param {string} [token] Auth token (alternative to Authorization header)
1161
930
  * @param {*} [options] Override http request option.
1162
931
  * @throws {RequiredError}
1163
- * @memberof FilesApi
932
+ * @memberof EventsApi
1164
933
  */
1165
- filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
934
+ wsV1EventsGet(token?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1166
935
  }
1167
936
  /**
1168
- * NotesApi - axios parameter creator
937
+ * SyncApi - axios parameter creator
1169
938
  * @export
1170
939
  */
1171
- export declare const NotesApiAxiosParamCreator: (configuration?: Configuration) => {
940
+ export declare const SyncApiAxiosParamCreator: (configuration?: Configuration) => {
1172
941
  /**
1173
- * Force delete all user notes. This operation is irreversible
1174
- * @summary Drop all user notes
942
+ * Returns file changes since the specified timestamp
943
+ * @summary Get file changes
944
+ * @param {number} [since] Unix timestamp in milliseconds for incremental sync
945
+ * @param {number} [limit] Maximum number of changes to return (default: 100, max: 500)
946
+ * @param {string} [cursor] Pagination cursor
1175
947
  * @param {*} [options] Override http request option.
1176
948
  * @throws {RequiredError}
1177
949
  */
1178
- allNotesDelete: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
950
+ syncChangesGet: (since?: number, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1179
951
  /**
1180
- * Bulk update or insert notes
1181
- * @summary Upsert notes
1182
- * @param {Array<HandlersCreatingNote>} notes List of crated notes
952
+ * Soft delete a file (creates tombstone for sync)
953
+ * @summary Delete a file
954
+ * @param {string} path File path
955
+ * @param {number} [version] Expected version for optimistic locking
1183
956
  * @param {*} [options] Override http request option.
1184
957
  * @throws {RequiredError}
1185
958
  */
1186
- notesBulkUpsertPut: (notes: Array<HandlersCreatingNote>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
959
+ syncFilesDelete: (path: string, version?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1187
960
  /**
1188
- * Mark notes as deleted by provided list of ids
1189
- * @summary Delete notes
1190
- * @param {Array<string>} ids List of ids of deleted notes
961
+ * Download file content by path
962
+ * @summary Download a file
963
+ * @param {string} path File path
1191
964
  * @param {*} [options] Override http request option.
1192
965
  * @throws {RequiredError}
1193
966
  */
1194
- notesDelete: (ids: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
967
+ syncFilesGet: (path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1195
968
  /**
1196
- * Get all notes with optional filter
1197
- * @summary Get notes
1198
- * @param {number} [limit]
1199
- * @param {number} [offset]
1200
- * @param {string} [userId] User id of which notes to load
1201
- * @param {string} [searchText]
1202
- * @param {boolean} [my] Load all my own notes (user will be used from provided token)
1203
- * @param {string} [from]
1204
- * @param {boolean} [includeDeleted]
969
+ * Upload a file to sync storage with content-addressable deduplication
970
+ * @summary Upload a file
971
+ * @param {string} filePath Relative file path
972
+ * @param {File} file File content
973
+ * @param {string} [xContentHash] SHA-256 hash for verification
974
+ * @param {number} [expectedVersion] Expected version for optimistic locking
1205
975
  * @param {*} [options] Override http request option.
1206
976
  * @throws {RequiredError}
1207
977
  */
1208
- notesGet: (limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1209
- /**
1210
- * get note by id
1211
- * @summary Get note
1212
- * @param {string} id Note ID
1213
- * @param {*} [options] Override http request option.
1214
- * @throws {RequiredError}
1215
- */
1216
- notesIdGet: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1217
- /**
1218
- * Create note
1219
- * @summary Create note
1220
- * @param {HandlersCreatingNote} note Note model
1221
- * @param {*} [options] Override http request option.
1222
- * @throws {RequiredError}
1223
- */
1224
- notesPost: (note: HandlersCreatingNote, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1225
- /**
1226
- * Synchronize notes with specific timestamp
1227
- * @summary Synchronize notes
1228
- * @param {HandlersSyncNotesRequest} data Sync notes request
1229
- * @param {*} [options] Override http request option.
1230
- * @throws {RequiredError}
1231
- */
1232
- notesSyncPost: (data: HandlersSyncNotesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
978
+ syncFilesPut: (filePath: string, file: File, xContentHash?: string, expectedVersion?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1233
979
  };
1234
980
  /**
1235
- * NotesApi - functional programming interface
981
+ * SyncApi - functional programming interface
1236
982
  * @export
1237
983
  */
1238
- export declare const NotesApiFp: (configuration?: Configuration) => {
984
+ export declare const SyncApiFp: (configuration?: Configuration) => {
1239
985
  /**
1240
- * Force delete all user notes. This operation is irreversible
1241
- * @summary Drop all user notes
986
+ * Returns file changes since the specified timestamp
987
+ * @summary Get file changes
988
+ * @param {number} [since] Unix timestamp in milliseconds for incremental sync
989
+ * @param {number} [limit] Maximum number of changes to return (default: 100, max: 500)
990
+ * @param {string} [cursor] Pagination cursor
1242
991
  * @param {*} [options] Override http request option.
1243
992
  * @throws {RequiredError}
1244
993
  */
1245
- allNotesDelete(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
994
+ syncChangesGet(since?: number, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseSyncChangesResponseAny>>;
1246
995
  /**
1247
- * Bulk update or insert notes
1248
- * @summary Upsert notes
1249
- * @param {Array<HandlersCreatingNote>} notes List of crated notes
996
+ * Soft delete a file (creates tombstone for sync)
997
+ * @summary Delete a file
998
+ * @param {string} path File path
999
+ * @param {number} [version] Expected version for optimistic locking
1250
1000
  * @param {*} [options] Override http request option.
1251
1001
  * @throws {RequiredError}
1252
1002
  */
1253
- notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
1003
+ syncFilesDelete(path: string, version?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsFileMetadataAny>>;
1254
1004
  /**
1255
- * Mark notes as deleted by provided list of ids
1256
- * @summary Delete notes
1257
- * @param {Array<string>} ids List of ids of deleted notes
1005
+ * Download file content by path
1006
+ * @summary Download a file
1007
+ * @param {string} path File path
1258
1008
  * @param {*} [options] Override http request option.
1259
1009
  * @throws {RequiredError}
1260
1010
  */
1261
- notesDelete(ids: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseAnyAny>>;
1011
+ syncFilesGet(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
1262
1012
  /**
1263
- * Get all notes with optional filter
1264
- * @summary Get notes
1265
- * @param {number} [limit]
1266
- * @param {number} [offset]
1267
- * @param {string} [userId] User id of which notes to load
1268
- * @param {string} [searchText]
1269
- * @param {boolean} [my] Load all my own notes (user will be used from provided token)
1270
- * @param {string} [from]
1271
- * @param {boolean} [includeDeleted]
1013
+ * Upload a file to sync storage with content-addressable deduplication
1014
+ * @summary Upload a file
1015
+ * @param {string} filePath Relative file path
1016
+ * @param {File} file File content
1017
+ * @param {string} [xContentHash] SHA-256 hash for verification
1018
+ * @param {number} [expectedVersion] Expected version for optimistic locking
1272
1019
  * @param {*} [options] Override http request option.
1273
1020
  * @throws {RequiredError}
1274
1021
  */
1275
- notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayModelsPublicNoteModelsPagination>>;
1276
- /**
1277
- * get note by id
1278
- * @summary Get note
1279
- * @param {string} id Note ID
1280
- * @param {*} [options] Override http request option.
1281
- * @throws {RequiredError}
1282
- */
1283
- notesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsPublicNoteAny>>;
1284
- /**
1285
- * Create note
1286
- * @summary Create note
1287
- * @param {HandlersCreatingNote} note Note model
1288
- * @param {*} [options] Override http request option.
1289
- * @throws {RequiredError}
1290
- */
1291
- notesPost(note: HandlersCreatingNote, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
1292
- /**
1293
- * Synchronize notes with specific timestamp
1294
- * @summary Synchronize notes
1295
- * @param {HandlersSyncNotesRequest} data Sync notes request
1296
- * @param {*} [options] Override http request option.
1297
- * @throws {RequiredError}
1298
- */
1299
- notesSyncPost(data: HandlersSyncNotesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseHandlersSyncNotesResponseAny>>;
1022
+ syncFilesPut(filePath: string, file: File, xContentHash?: string, expectedVersion?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseFileUploadResponseAny>>;
1300
1023
  };
1301
1024
  /**
1302
- * NotesApi - factory interface
1025
+ * SyncApi - factory interface
1303
1026
  * @export
1304
1027
  */
1305
- export declare const NotesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1306
- /**
1307
- * Force delete all user notes. This operation is irreversible
1308
- * @summary Drop all user notes
1309
- * @param {*} [options] Override http request option.
1310
- * @throws {RequiredError}
1311
- */
1312
- allNotesDelete(options?: any): AxiosPromise<void>;
1313
- /**
1314
- * Bulk update or insert notes
1315
- * @summary Upsert notes
1316
- * @param {Array<HandlersCreatingNote>} notes List of crated notes
1317
- * @param {*} [options] Override http request option.
1318
- * @throws {RequiredError}
1319
- */
1320
- notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: any): AxiosPromise<object>;
1321
- /**
1322
- * Mark notes as deleted by provided list of ids
1323
- * @summary Delete notes
1324
- * @param {Array<string>} ids List of ids of deleted notes
1325
- * @param {*} [options] Override http request option.
1326
- * @throws {RequiredError}
1327
- */
1328
- notesDelete(ids: Array<string>, options?: any): AxiosPromise<HandlersHttpResponseAnyAny>;
1028
+ export declare const SyncApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1329
1029
  /**
1330
- * Get all notes with optional filter
1331
- * @summary Get notes
1332
- * @param {number} [limit]
1333
- * @param {number} [offset]
1334
- * @param {string} [userId] User id of which notes to load
1335
- * @param {string} [searchText]
1336
- * @param {boolean} [my] Load all my own notes (user will be used from provided token)
1337
- * @param {string} [from]
1338
- * @param {boolean} [includeDeleted]
1030
+ * Returns file changes since the specified timestamp
1031
+ * @summary Get file changes
1032
+ * @param {number} [since] Unix timestamp in milliseconds for incremental sync
1033
+ * @param {number} [limit] Maximum number of changes to return (default: 100, max: 500)
1034
+ * @param {string} [cursor] Pagination cursor
1339
1035
  * @param {*} [options] Override http request option.
1340
1036
  * @throws {RequiredError}
1341
1037
  */
1342
- notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: any): AxiosPromise<HandlersHttpResponseArrayModelsPublicNoteModelsPagination>;
1038
+ syncChangesGet(since?: number, limit?: number, cursor?: string, options?: any): AxiosPromise<HandlersHttpResponseSyncChangesResponseAny>;
1343
1039
  /**
1344
- * get note by id
1345
- * @summary Get note
1346
- * @param {string} id Note ID
1040
+ * Soft delete a file (creates tombstone for sync)
1041
+ * @summary Delete a file
1042
+ * @param {string} path File path
1043
+ * @param {number} [version] Expected version for optimistic locking
1347
1044
  * @param {*} [options] Override http request option.
1348
1045
  * @throws {RequiredError}
1349
1046
  */
1350
- notesIdGet(id: string, options?: any): AxiosPromise<HandlersHttpResponseModelsPublicNoteAny>;
1047
+ syncFilesDelete(path: string, version?: number, options?: any): AxiosPromise<HandlersHttpResponseModelsFileMetadataAny>;
1351
1048
  /**
1352
- * Create note
1353
- * @summary Create note
1354
- * @param {HandlersCreatingNote} note Note model
1049
+ * Download file content by path
1050
+ * @summary Download a file
1051
+ * @param {string} path File path
1355
1052
  * @param {*} [options] Override http request option.
1356
1053
  * @throws {RequiredError}
1357
1054
  */
1358
- notesPost(note: HandlersCreatingNote, options?: any): AxiosPromise<object>;
1055
+ syncFilesGet(path: string, options?: any): AxiosPromise<File>;
1359
1056
  /**
1360
- * Synchronize notes with specific timestamp
1361
- * @summary Synchronize notes
1362
- * @param {HandlersSyncNotesRequest} data Sync notes request
1057
+ * Upload a file to sync storage with content-addressable deduplication
1058
+ * @summary Upload a file
1059
+ * @param {string} filePath Relative file path
1060
+ * @param {File} file File content
1061
+ * @param {string} [xContentHash] SHA-256 hash for verification
1062
+ * @param {number} [expectedVersion] Expected version for optimistic locking
1363
1063
  * @param {*} [options] Override http request option.
1364
1064
  * @throws {RequiredError}
1365
1065
  */
1366
- notesSyncPost(data: HandlersSyncNotesRequest, options?: any): AxiosPromise<HandlersHttpResponseHandlersSyncNotesResponseAny>;
1066
+ syncFilesPut(filePath: string, file: File, xContentHash?: string, expectedVersion?: number, options?: any): AxiosPromise<HandlersHttpResponseFileUploadResponseAny>;
1367
1067
  };
1368
1068
  /**
1369
- * NotesApi - object-oriented interface
1069
+ * SyncApi - object-oriented interface
1370
1070
  * @export
1371
- * @class NotesApi
1071
+ * @class SyncApi
1372
1072
  * @extends {BaseAPI}
1373
1073
  */
1374
- export declare class NotesApi extends BaseAPI {
1074
+ export declare class SyncApi extends BaseAPI {
1375
1075
  /**
1376
- * Force delete all user notes. This operation is irreversible
1377
- * @summary Drop all user notes
1076
+ * Returns file changes since the specified timestamp
1077
+ * @summary Get file changes
1078
+ * @param {number} [since] Unix timestamp in milliseconds for incremental sync
1079
+ * @param {number} [limit] Maximum number of changes to return (default: 100, max: 500)
1080
+ * @param {string} [cursor] Pagination cursor
1378
1081
  * @param {*} [options] Override http request option.
1379
1082
  * @throws {RequiredError}
1380
- * @memberof NotesApi
1083
+ * @memberof SyncApi
1381
1084
  */
1382
- allNotesDelete(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1085
+ syncChangesGet(since?: number, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseSyncChangesResponseAny, any>>;
1383
1086
  /**
1384
- * Bulk update or insert notes
1385
- * @summary Upsert notes
1386
- * @param {Array<HandlersCreatingNote>} notes List of crated notes
1087
+ * Soft delete a file (creates tombstone for sync)
1088
+ * @summary Delete a file
1089
+ * @param {string} path File path
1090
+ * @param {number} [version] Expected version for optimistic locking
1387
1091
  * @param {*} [options] Override http request option.
1388
1092
  * @throws {RequiredError}
1389
- * @memberof NotesApi
1093
+ * @memberof SyncApi
1390
1094
  */
1391
- notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
1095
+ syncFilesDelete(path: string, version?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseModelsFileMetadataAny, any>>;
1392
1096
  /**
1393
- * Mark notes as deleted by provided list of ids
1394
- * @summary Delete notes
1395
- * @param {Array<string>} ids List of ids of deleted notes
1097
+ * Download file content by path
1098
+ * @summary Download a file
1099
+ * @param {string} path File path
1396
1100
  * @param {*} [options] Override http request option.
1397
1101
  * @throws {RequiredError}
1398
- * @memberof NotesApi
1102
+ * @memberof SyncApi
1399
1103
  */
1400
- notesDelete(ids: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseAnyAny, any>>;
1104
+ syncFilesGet(path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
1401
1105
  /**
1402
- * Get all notes with optional filter
1403
- * @summary Get notes
1404
- * @param {number} [limit]
1405
- * @param {number} [offset]
1406
- * @param {string} [userId] User id of which notes to load
1407
- * @param {string} [searchText]
1408
- * @param {boolean} [my] Load all my own notes (user will be used from provided token)
1409
- * @param {string} [from]
1410
- * @param {boolean} [includeDeleted]
1106
+ * Upload a file to sync storage with content-addressable deduplication
1107
+ * @summary Upload a file
1108
+ * @param {string} filePath Relative file path
1109
+ * @param {File} file File content
1110
+ * @param {string} [xContentHash] SHA-256 hash for verification
1111
+ * @param {number} [expectedVersion] Expected version for optimistic locking
1411
1112
  * @param {*} [options] Override http request option.
1412
1113
  * @throws {RequiredError}
1413
- * @memberof NotesApi
1114
+ * @memberof SyncApi
1414
1115
  */
1415
- notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseArrayModelsPublicNoteModelsPagination, any>>;
1416
- /**
1417
- * get note by id
1418
- * @summary Get note
1419
- * @param {string} id Note ID
1420
- * @param {*} [options] Override http request option.
1421
- * @throws {RequiredError}
1422
- * @memberof NotesApi
1423
- */
1424
- notesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseModelsPublicNoteAny, any>>;
1425
- /**
1426
- * Create note
1427
- * @summary Create note
1428
- * @param {HandlersCreatingNote} note Note model
1429
- * @param {*} [options] Override http request option.
1430
- * @throws {RequiredError}
1431
- * @memberof NotesApi
1432
- */
1433
- notesPost(note: HandlersCreatingNote, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
1434
- /**
1435
- * Synchronize notes with specific timestamp
1436
- * @summary Synchronize notes
1437
- * @param {HandlersSyncNotesRequest} data Sync notes request
1438
- * @param {*} [options] Override http request option.
1439
- * @throws {RequiredError}
1440
- * @memberof NotesApi
1441
- */
1442
- notesSyncPost(data: HandlersSyncNotesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseHandlersSyncNotesResponseAny, any>>;
1116
+ syncFilesPut(filePath: string, file: File, xContentHash?: string, expectedVersion?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseFileUploadResponseAny, any>>;
1443
1117
  }
1444
1118
  /**
1445
1119
  * SystemInfoApi - axios parameter creator
@@ -1533,58 +1207,3 @@ export declare class SystemInfoApi extends BaseAPI {
1533
1207
  */
1534
1208
  systemInfoVersionGet(version: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersSystemInfo, any>>;
1535
1209
  }
1536
- /**
1537
- * TagsApi - axios parameter creator
1538
- * @export
1539
- */
1540
- export declare const TagsApiAxiosParamCreator: (configuration?: Configuration) => {
1541
- /**
1542
- * Return list of al registered tags
1543
- * @summary Get tags
1544
- * @param {*} [options] Override http request option.
1545
- * @throws {RequiredError}
1546
- */
1547
- tagsGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1548
- };
1549
- /**
1550
- * TagsApi - functional programming interface
1551
- * @export
1552
- */
1553
- export declare const TagsApiFp: (configuration?: Configuration) => {
1554
- /**
1555
- * Return list of al registered tags
1556
- * @summary Get tags
1557
- * @param {*} [options] Override http request option.
1558
- * @throws {RequiredError}
1559
- */
1560
- tagsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayStringAny>>;
1561
- };
1562
- /**
1563
- * TagsApi - factory interface
1564
- * @export
1565
- */
1566
- export declare const TagsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1567
- /**
1568
- * Return list of al registered tags
1569
- * @summary Get tags
1570
- * @param {*} [options] Override http request option.
1571
- * @throws {RequiredError}
1572
- */
1573
- tagsGet(options?: any): AxiosPromise<HandlersHttpResponseArrayStringAny>;
1574
- };
1575
- /**
1576
- * TagsApi - object-oriented interface
1577
- * @export
1578
- * @class TagsApi
1579
- * @extends {BaseAPI}
1580
- */
1581
- export declare class TagsApi extends BaseAPI {
1582
- /**
1583
- * Return list of al registered tags
1584
- * @summary Get tags
1585
- * @param {*} [options] Override http request option.
1586
- * @throws {RequiredError}
1587
- * @memberof TagsApi
1588
- */
1589
- tagsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseArrayStringAny, any>>;
1590
- }