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.
- package/api.d.ts +93 -98
- package/constants/{command-groups.contant.d.ts → command-groups.d.ts} +2 -1
- package/constants/{command-groups.contant.js → command-groups.js} +2 -0
- package/constants/extension-errors.d.ts +9 -0
- package/constants/extension-errors.js +18 -0
- package/constants/file-guard-errors.d.ts +8 -0
- package/constants/file-guard-errors.js +18 -0
- package/constants/git-errors.d.ts +9 -0
- package/constants/git-errors.js +18 -0
- package/constants/i18n-keys.d.ts +371 -0
- package/constants/i18n-keys.js +158 -0
- package/constants/index.d.ts +9 -1
- package/constants/index.js +9 -1
- package/constants/oauth-providers.d.ts +1 -0
- package/constants/oauth-providers.js +1 -0
- package/constants/route-names.d.ts +36 -0
- package/constants/route-names.js +37 -0
- package/constants/route-paths.d.ts +5 -0
- package/constants/route-paths.js +4 -0
- package/constants/style-sizes.d.ts +1 -0
- package/constants/style-sizes.js +1 -0
- package/encryption/__tests__/encryption.spec.js +4 -5
- package/encryption/__tests__/note-encryption.spec.js +46 -348
- package/encryption/encryption.d.ts +9 -4
- package/encryption/encryption.js +25 -5
- package/encryption/note-encryption.d.ts +1 -1
- package/encryption/note-encryption.js +6 -6
- package/files-api.d.ts +0 -1
- package/index.d.ts +4 -1
- package/index.js +4 -1
- package/mappers/orgnode-to-note.d.ts +2 -2
- package/mappers/orgnode-to-note.js +3 -2
- package/models/auth-store.d.ts +3 -3
- package/models/buffer-store.d.ts +14 -0
- package/models/buffer.d.ts +24 -0
- package/models/colors.d.ts +1 -0
- package/models/command.d.ts +13 -8
- package/models/commands-group-store.d.ts +11 -0
- package/models/commands-store.d.ts +13 -0
- package/models/completion-store.d.ts +14 -0
- package/models/completion.d.ts +16 -7
- package/models/config-store.d.ts +9 -0
- package/models/confirmation-modal.d.ts +11 -0
- package/models/context-menu-store.d.ts +10 -0
- package/models/cron-store.d.ts +21 -0
- package/models/cron-task.d.ts +30 -0
- package/models/css-utils.d.ts +17 -0
- package/models/default-commands.d.ts +52 -3
- package/models/default-commands.js +59 -2
- package/models/encryption-store.d.ts +10 -0
- package/models/encryption-store.js +1 -0
- package/models/encryption.d.ts +54 -11
- package/models/encryption.js +28 -1
- package/models/extension-registry-store.d.ts +9 -0
- package/models/extension-registry-store.js +1 -0
- package/models/extension-store.d.ts +18 -0
- package/models/extension-store.js +1 -0
- package/models/extension.d.ts +96 -24
- package/models/extension.js +88 -1
- package/models/file-guard-store.d.ts +14 -0
- package/models/file-guard-store.js +1 -0
- package/models/file-guard.d.ts +27 -0
- package/models/file-guard.js +1 -0
- package/models/{file-cache.d.ts → file-info.d.ts} +1 -1
- package/models/file-info.js +1 -0
- package/models/file-manager-store.d.ts +10 -12
- package/models/file-opener-store.d.ts +6 -4
- package/models/file-system-manager-store.d.ts +13 -0
- package/models/file-system-manager-store.js +1 -0
- package/models/file-system-store.d.ts +19 -0
- package/models/file-system-store.js +1 -0
- package/models/file-system.d.ts +32 -5
- package/models/file-system.js +2 -0
- package/models/file-upload.d.ts +6 -0
- package/models/file-upload.js +1 -0
- package/models/file-watcher-store.d.ts +18 -0
- package/models/file-watcher-store.js +1 -0
- package/models/files-store.d.ts +2 -2
- package/models/git-store.d.ts +12 -0
- package/models/git-store.js +1 -0
- package/models/git.d.ts +47 -0
- package/models/git.js +1 -0
- package/models/i18n-keys.d.ts +2 -0
- package/models/i18n-keys.js +1 -0
- package/models/index.d.ts +56 -2
- package/models/index.js +59 -2
- package/models/layout-snapshot-repository.d.ts +14 -0
- package/models/layout-snapshot-repository.js +1 -0
- package/models/layout-store.d.ts +17 -0
- package/models/layout-store.js +1 -0
- package/models/layout.d.ts +16 -0
- package/models/layout.js +1 -0
- package/models/log-repository.d.ts +17 -0
- package/models/log-repository.js +1 -0
- package/models/log-store.d.ts +15 -0
- package/models/log-store.js +1 -0
- package/models/log.d.ts +12 -0
- package/models/log.js +1 -0
- package/models/logger.d.ts +8 -0
- package/models/logger.js +1 -0
- package/models/menu-action.d.ts +18 -0
- package/models/menu-action.js +1 -0
- package/models/modal-store.d.ts +16 -0
- package/models/modal-store.js +1 -0
- package/models/modal.d.ts +10 -2
- package/models/note.d.ts +30 -13
- package/models/notification-config.d.ts +14 -0
- package/models/notification-config.js +1 -0
- package/models/notifications-store.d.ts +20 -0
- package/models/notifications-store.js +1 -0
- package/models/oauth-provider.d.ts +2 -1
- package/models/orgnote-config.d.ts +80 -0
- package/models/orgnote-config.js +42 -0
- package/models/orgnote-url.d.ts +6 -0
- package/models/orgnote-url.js +1 -0
- package/models/pane-snapshot-repository.d.ts +0 -0
- package/models/pane-snapshot-repository.js +0 -0
- package/models/pane.d.ts +38 -0
- package/models/pane.js +1 -0
- package/models/panes-store.d.ts +30 -0
- package/models/panes-store.js +1 -0
- package/models/platform-detection.d.ts +11 -0
- package/models/platform-detection.js +1 -0
- package/models/platform-specific.d.ts +1 -0
- package/models/platform-specific.js +1 -0
- package/models/platform.d.ts +2 -0
- package/models/platform.js +1 -0
- package/models/queue-store.d.ts +49 -0
- package/models/queue-store.js +1 -0
- package/models/queue-task.d.ts +15 -0
- package/models/queue-task.js +1 -0
- package/models/repositories.d.ts +58 -38
- package/models/screen-detection.d.ts +10 -0
- package/models/screen-detection.js +1 -0
- package/models/settings-store.d.ts +12 -0
- package/models/settings-store.js +1 -0
- package/models/settings-ui-store.d.ts +7 -0
- package/models/settings-ui-store.js +1 -0
- package/models/sidebar-store.d.ts +22 -0
- package/models/sidebar-store.js +1 -0
- package/models/splash-screen.d.ts +13 -0
- package/models/splash-screen.js +1 -0
- package/models/store.d.ts +1 -1
- package/models/style-size.d.ts +2 -0
- package/models/style-size.js +1 -0
- package/models/style-variant.d.ts +1 -0
- package/models/style-variant.js +1 -0
- package/models/sync-store.d.ts +8 -6
- package/models/sync.d.ts +0 -5
- package/models/system-info.d.ts +47 -0
- package/models/system-info.js +1 -0
- package/models/theme-store.d.ts +16 -0
- package/models/theme-store.js +1 -0
- package/models/theme-variables.d.ts +4 -189
- package/models/theme-variables.js +2 -191
- package/models/toolbar-store.d.ts +9 -0
- package/models/toolbar-store.js +1 -0
- package/models/ui-store.d.ts +6 -0
- package/models/ui-store.js +1 -0
- package/models/user.d.ts +3 -4
- package/models/vue-component.d.ts +4 -2
- package/package-lock.json +5553 -0
- package/package.json +37 -26
- package/remote-api/api.d.ts +288 -669
- package/remote-api/api.js +199 -485
- package/remote-api/base.js +1 -1
- package/remote-api/common.d.ts +1 -1
- package/sync/__tests__/memory-state.spec.d.ts +1 -0
- package/sync/__tests__/memory-state.spec.js +49 -0
- package/sync/__tests__/plan.spec.d.ts +1 -0
- package/sync/__tests__/plan.spec.js +116 -0
- package/sync/create-sync-plan.d.ts +2 -0
- package/sync/create-sync-plan.js +13 -0
- package/sync/fetch.d.ts +8 -0
- package/sync/fetch.js +32 -0
- package/sync/index.d.ts +10 -0
- package/sync/index.js +9 -0
- package/sync/memory-state.d.ts +2 -0
- package/sync/memory-state.js +22 -0
- package/sync/operations/conflict.d.ts +10 -0
- package/sync/operations/conflict.js +56 -0
- package/sync/operations/delete-local.d.ts +2 -0
- package/sync/operations/delete-local.js +17 -0
- package/sync/operations/delete-remote.d.ts +2 -0
- package/sync/operations/delete-remote.js +26 -0
- package/sync/operations/download.d.ts +2 -0
- package/sync/operations/download.js +20 -0
- package/sync/operations/index.d.ts +5 -0
- package/sync/operations/index.js +5 -0
- package/sync/operations/synced-file.d.ts +14 -0
- package/sync/operations/synced-file.js +5 -0
- package/sync/operations/upload.d.ts +2 -0
- package/sync/operations/upload.js +30 -0
- package/sync/plan.d.ts +9 -0
- package/sync/plan.js +57 -0
- package/sync/recovery.d.ts +2 -0
- package/sync/recovery.js +6 -0
- package/sync/scan.d.ts +4 -0
- package/sync/scan.js +40 -0
- package/sync/types.d.ts +74 -0
- package/sync/types.js +7 -0
- package/sync/utils/__tests__/oldest-synced-at.spec.d.ts +1 -0
- package/sync/utils/__tests__/oldest-synced-at.spec.js +38 -0
- package/sync/utils/oldest-synced-at.d.ts +2 -0
- package/sync/utils/oldest-synced-at.js +9 -0
- package/types/index.d.ts +0 -0
- package/types/index.js +0 -0
- package/utils/__tests__/find-files-diff.spec.d.ts +1 -0
- package/{tools → utils}/__tests__/find-files-diff.spec.js +3 -3
- package/utils/__tests__/find-note-files-diff.spec.d.ts +1 -0
- package/{tools → utils}/__tests__/find-note-files-diff.spec.js +5 -5
- package/utils/__tests__/get-file-name.spec.d.ts +1 -0
- package/utils/__tests__/get-string-path.spec.d.ts +1 -0
- package/utils/__tests__/is-gpg-encrypted.spec.d.ts +1 -0
- package/utils/__tests__/is-org-file.spec.d.ts +1 -0
- package/utils/__tests__/join.spec.d.ts +1 -0
- package/utils/__tests__/join.spec.js +32 -0
- package/utils/__tests__/nullable-guards.spec.d.ts +1 -0
- package/utils/__tests__/nullable-guards.spec.js +44 -0
- package/utils/__tests__/parent-folder.spec.d.ts +1 -0
- package/utils/__tests__/read-org-files-recursively.spec.d.ts +1 -0
- package/utils/__tests__/split-path.spec.d.ts +1 -0
- package/utils/__tests__/to-absolute-path.spec.d.ts +1 -0
- package/utils/__tests__/to-absolute-path.spec.js +26 -0
- package/utils/__tests__/to-error.spec.d.ts +1 -0
- package/utils/__tests__/to-error.spec.js +112 -0
- package/utils/__tests__/with-root.spec.d.ts +1 -0
- package/utils/__tests__/with-root.spec.js +20 -0
- package/{tools → utils}/find-notes-files-diff.js +6 -3
- package/{tools → utils}/index.d.ts +4 -1
- package/{tools → utils}/index.js +4 -1
- package/utils/join-path.d.ts +1 -0
- package/utils/join-path.js +13 -0
- package/utils/nullable-guards.d.ts +2 -0
- package/utils/nullable-guards.js +6 -0
- package/utils/to-absolute-path.d.ts +2 -0
- package/utils/to-absolute-path.js +2 -0
- package/utils/to-error.d.ts +6 -0
- package/utils/to-error.js +33 -0
- package/utils/toml.d.ts +3 -0
- package/utils/toml.js +31 -0
- package/utils/with-root.d.ts +1 -0
- package/utils/with-root.js +6 -0
- package/websocket/client.d.ts +24 -0
- package/websocket/client.js +83 -0
- package/models/file-tree.d.ts +0 -12
- package/tools/__tests__/join.spec.js +0 -24
- package/tools/join-path.d.ts +0 -1
- package/tools/join-path.js +0 -7
- package/tools/mock-server.d.ts +0 -1
- package/tools/mock-server.js +0 -12
- /package/models/{file-cache.js → buffer-store.js} +0 -0
- /package/models/{file-tree.js → buffer.js} +0 -0
- /package/{tools/__tests__/find-files-diff.spec.d.ts → models/colors.js} +0 -0
- /package/{tools/__tests__/find-note-files-diff.spec.d.ts → models/commands-group-store.js} +0 -0
- /package/{tools/__tests__/get-file-name.spec.d.ts → models/commands-store.js} +0 -0
- /package/{tools/__tests__/get-string-path.spec.d.ts → models/completion-store.js} +0 -0
- /package/{tools/__tests__/is-gpg-encrypted.spec.d.ts → models/config-store.js} +0 -0
- /package/{tools/__tests__/is-org-file.spec.d.ts → models/confirmation-modal.js} +0 -0
- /package/{tools/__tests__/join.spec.d.ts → models/context-menu-store.js} +0 -0
- /package/{tools/__tests__/parent-folder.spec.d.ts → models/cron-store.js} +0 -0
- /package/{tools/__tests__/read-org-files-recursively.spec.d.ts → models/cron-task.js} +0 -0
- /package/{tools/__tests__/split-path.spec.d.ts → models/css-utils.js} +0 -0
- /package/{tools → utils}/__tests__/get-file-name.spec.js +0 -0
- /package/{tools → utils}/__tests__/get-string-path.spec.js +0 -0
- /package/{tools → utils}/__tests__/is-gpg-encrypted.spec.js +0 -0
- /package/{tools → utils}/__tests__/is-org-file.spec.js +0 -0
- /package/{tools → utils}/__tests__/parent-folder.spec.js +0 -0
- /package/{tools → utils}/__tests__/read-org-files-recursively.spec.js +0 -0
- /package/{tools → utils}/__tests__/split-path.spec.js +0 -0
- /package/{tools → utils}/find-notes-files-diff.d.ts +0 -0
- /package/{tools → utils}/get-file-name.d.ts +0 -0
- /package/{tools → utils}/get-file-name.js +0 -0
- /package/{tools → utils}/get-parent-dir.d.ts +0 -0
- /package/{tools → utils}/get-parent-dir.js +0 -0
- /package/{tools → utils}/get-string-path.d.ts +0 -0
- /package/{tools → utils}/get-string-path.js +0 -0
- /package/{tools → utils}/is-gpg-encrypted.d.ts +0 -0
- /package/{tools → utils}/is-gpg-encrypted.js +0 -0
- /package/{tools → utils}/is-org-file.d.ts +0 -0
- /package/{tools → utils}/is-org-file.js +0 -0
- /package/{tools → utils}/split-path.d.ts +0 -0
- /package/{tools → utils}/split-path.js +0 -0
package/remote-api/api.d.ts
CHANGED
|
@@ -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
|
|
19
|
+
* @interface FileChange
|
|
33
20
|
*/
|
|
34
|
-
export interface
|
|
21
|
+
export interface FileChange {
|
|
35
22
|
/**
|
|
36
23
|
*
|
|
37
24
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
25
|
+
* @memberof FileChange
|
|
39
26
|
*/
|
|
40
|
-
'
|
|
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
|
|
31
|
+
* @memberof FileChange
|
|
51
32
|
*/
|
|
52
|
-
'
|
|
33
|
+
'deleted': boolean;
|
|
53
34
|
/**
|
|
54
35
|
*
|
|
55
36
|
* @type {string}
|
|
56
|
-
* @memberof
|
|
37
|
+
* @memberof FileChange
|
|
57
38
|
*/
|
|
58
|
-
'
|
|
39
|
+
'deletedAt'?: string;
|
|
59
40
|
/**
|
|
60
41
|
*
|
|
61
|
-
* @type {
|
|
62
|
-
* @memberof
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof FileChange
|
|
63
44
|
*/
|
|
64
|
-
'
|
|
45
|
+
'id': string;
|
|
65
46
|
/**
|
|
66
47
|
*
|
|
67
48
|
* @type {string}
|
|
68
|
-
* @memberof
|
|
49
|
+
* @memberof FileChange
|
|
69
50
|
*/
|
|
70
|
-
'
|
|
51
|
+
'path': string;
|
|
71
52
|
/**
|
|
72
53
|
*
|
|
73
|
-
* @type {
|
|
74
|
-
* @memberof
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof FileChange
|
|
75
56
|
*/
|
|
76
|
-
'
|
|
57
|
+
'size'?: number;
|
|
77
58
|
/**
|
|
78
59
|
*
|
|
79
60
|
* @type {string}
|
|
80
|
-
* @memberof
|
|
61
|
+
* @memberof FileChange
|
|
81
62
|
*/
|
|
82
|
-
'
|
|
63
|
+
'updatedAt': string;
|
|
83
64
|
/**
|
|
84
65
|
*
|
|
85
|
-
* @type {
|
|
86
|
-
* @memberof
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof FileChange
|
|
87
68
|
*/
|
|
88
|
-
'
|
|
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
|
|
74
|
+
* @interface FileUploadResponse
|
|
100
75
|
*/
|
|
101
|
-
export interface
|
|
76
|
+
export interface FileUploadResponse {
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof FileUploadResponse
|
|
81
|
+
*/
|
|
82
|
+
'contentHash': string;
|
|
102
83
|
/**
|
|
103
84
|
*
|
|
104
|
-
* @type {
|
|
105
|
-
* @memberof
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof FileUploadResponse
|
|
106
87
|
*/
|
|
107
|
-
'
|
|
88
|
+
'id': string;
|
|
108
89
|
/**
|
|
109
90
|
*
|
|
110
91
|
* @type {string}
|
|
111
|
-
* @memberof
|
|
92
|
+
* @memberof FileUploadResponse
|
|
112
93
|
*/
|
|
113
|
-
'
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
*
|
|
117
|
-
* @export
|
|
118
|
-
* @interface HandlersHttpErrorAny
|
|
119
|
-
*/
|
|
120
|
-
export interface HandlersHttpErrorAny {
|
|
94
|
+
'path': string;
|
|
121
95
|
/**
|
|
122
96
|
*
|
|
123
|
-
* @type {
|
|
124
|
-
* @memberof
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof FileUploadResponse
|
|
125
99
|
*/
|
|
126
|
-
'
|
|
100
|
+
'size': number;
|
|
127
101
|
/**
|
|
128
102
|
*
|
|
129
103
|
* @type {string}
|
|
130
|
-
* @memberof
|
|
104
|
+
* @memberof FileUploadResponse
|
|
131
105
|
*/
|
|
132
|
-
'
|
|
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
|
|
123
|
+
* @interface HandlersHttpErrorAny
|
|
138
124
|
*/
|
|
139
|
-
export interface
|
|
125
|
+
export interface HandlersHttpErrorAny {
|
|
140
126
|
/**
|
|
141
127
|
*
|
|
142
128
|
* @type {object}
|
|
143
|
-
* @memberof
|
|
129
|
+
* @memberof HandlersHttpErrorAny
|
|
144
130
|
*/
|
|
145
131
|
'data'?: object;
|
|
146
132
|
/**
|
|
147
133
|
*
|
|
148
|
-
* @type {
|
|
149
|
-
* @memberof
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof HandlersHttpErrorAny
|
|
150
136
|
*/
|
|
151
|
-
'
|
|
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
|
|
161
|
+
* @interface HandlersHttpResponseFileUploadResponseAny
|
|
176
162
|
*/
|
|
177
|
-
export interface
|
|
163
|
+
export interface HandlersHttpResponseFileUploadResponseAny {
|
|
178
164
|
/**
|
|
179
165
|
*
|
|
180
|
-
* @type {
|
|
181
|
-
* @memberof
|
|
166
|
+
* @type {FileUploadResponse}
|
|
167
|
+
* @memberof HandlersHttpResponseFileUploadResponseAny
|
|
182
168
|
*/
|
|
183
|
-
'data'?:
|
|
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
|
|
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
|
|
199
|
+
* @interface HandlersHttpResponseModelsAPITokenAny
|
|
233
200
|
*/
|
|
234
|
-
export interface
|
|
201
|
+
export interface HandlersHttpResponseModelsAPITokenAny {
|
|
235
202
|
/**
|
|
236
203
|
*
|
|
237
|
-
* @type {
|
|
238
|
-
* @memberof
|
|
204
|
+
* @type {ModelsAPIToken}
|
|
205
|
+
* @memberof HandlersHttpResponseModelsAPITokenAny
|
|
239
206
|
*/
|
|
240
|
-
'data'?:
|
|
207
|
+
'data'?: ModelsAPIToken;
|
|
241
208
|
/**
|
|
242
209
|
*
|
|
243
210
|
* @type {object}
|
|
244
|
-
* @memberof
|
|
211
|
+
* @memberof HandlersHttpResponseModelsAPITokenAny
|
|
245
212
|
*/
|
|
246
213
|
'meta'?: object;
|
|
247
214
|
}
|
|
248
215
|
/**
|
|
249
216
|
*
|
|
250
217
|
* @export
|
|
251
|
-
* @interface
|
|
218
|
+
* @interface HandlersHttpResponseModelsFileMetadataAny
|
|
252
219
|
*/
|
|
253
|
-
export interface
|
|
220
|
+
export interface HandlersHttpResponseModelsFileMetadataAny {
|
|
254
221
|
/**
|
|
255
222
|
*
|
|
256
|
-
* @type {
|
|
257
|
-
* @memberof
|
|
223
|
+
* @type {ModelsFileMetadata}
|
|
224
|
+
* @memberof HandlersHttpResponseModelsFileMetadataAny
|
|
258
225
|
*/
|
|
259
|
-
'data'?:
|
|
226
|
+
'data'?: ModelsFileMetadata;
|
|
260
227
|
/**
|
|
261
228
|
*
|
|
262
229
|
* @type {object}
|
|
263
|
-
* @memberof
|
|
230
|
+
* @memberof HandlersHttpResponseModelsFileMetadataAny
|
|
264
231
|
*/
|
|
265
232
|
'meta'?: object;
|
|
266
233
|
}
|
|
267
234
|
/**
|
|
268
235
|
*
|
|
269
236
|
* @export
|
|
270
|
-
* @interface
|
|
237
|
+
* @interface HandlersHttpResponseModelsUserPersonalInfoAny
|
|
271
238
|
*/
|
|
272
|
-
export interface
|
|
239
|
+
export interface HandlersHttpResponseModelsUserPersonalInfoAny {
|
|
273
240
|
/**
|
|
274
241
|
*
|
|
275
|
-
* @type {
|
|
276
|
-
* @memberof
|
|
242
|
+
* @type {ModelsUserPersonalInfo}
|
|
243
|
+
* @memberof HandlersHttpResponseModelsUserPersonalInfoAny
|
|
277
244
|
*/
|
|
278
|
-
'data'?:
|
|
245
|
+
'data'?: ModelsUserPersonalInfo;
|
|
279
246
|
/**
|
|
280
247
|
*
|
|
281
248
|
* @type {object}
|
|
282
|
-
* @memberof
|
|
249
|
+
* @memberof HandlersHttpResponseModelsUserPersonalInfoAny
|
|
283
250
|
*/
|
|
284
251
|
'meta'?: object;
|
|
285
252
|
}
|
|
286
253
|
/**
|
|
287
254
|
*
|
|
288
255
|
* @export
|
|
289
|
-
* @interface
|
|
256
|
+
* @interface HandlersHttpResponseSyncChangesResponseAny
|
|
290
257
|
*/
|
|
291
|
-
export interface
|
|
258
|
+
export interface HandlersHttpResponseSyncChangesResponseAny {
|
|
292
259
|
/**
|
|
293
260
|
*
|
|
294
|
-
* @type {
|
|
295
|
-
* @memberof
|
|
261
|
+
* @type {SyncChangesResponse}
|
|
262
|
+
* @memberof HandlersHttpResponseSyncChangesResponseAny
|
|
296
263
|
*/
|
|
297
|
-
'data'?:
|
|
264
|
+
'data'?: SyncChangesResponse;
|
|
298
265
|
/**
|
|
299
266
|
*
|
|
300
267
|
* @type {object}
|
|
301
|
-
* @memberof
|
|
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
|
|
364
|
+
* @interface ModelsFileMetadata
|
|
453
365
|
*/
|
|
454
|
-
export interface
|
|
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
|
|
370
|
+
* @memberof ModelsFileMetadata
|
|
465
371
|
*/
|
|
466
|
-
'
|
|
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
|
|
376
|
+
* @memberof ModelsFileMetadata
|
|
478
377
|
*/
|
|
479
|
-
'
|
|
378
|
+
'createdAt'?: string;
|
|
480
379
|
/**
|
|
481
380
|
*
|
|
482
381
|
* @type {string}
|
|
483
|
-
* @memberof
|
|
382
|
+
* @memberof ModelsFileMetadata
|
|
484
383
|
*/
|
|
485
|
-
'
|
|
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
|
|
511
|
-
*/
|
|
512
|
-
'description'?: string;
|
|
513
|
-
/**
|
|
514
|
-
*
|
|
515
|
-
* @type {Array<ModelsNoteLink>}
|
|
516
|
-
* @memberof ModelsNoteMeta
|
|
388
|
+
* @memberof ModelsFileMetadata
|
|
517
389
|
*/
|
|
518
|
-
'
|
|
519
|
-
/**
|
|
520
|
-
*
|
|
521
|
-
* @type {Array<string>}
|
|
522
|
-
* @memberof ModelsNoteMeta
|
|
523
|
-
*/
|
|
524
|
-
'fileTags'?: Array<string>;
|
|
390
|
+
'id'?: string;
|
|
525
391
|
/**
|
|
526
392
|
*
|
|
527
|
-
* @type {
|
|
528
|
-
* @memberof
|
|
393
|
+
* @type {string}
|
|
394
|
+
* @memberof ModelsFileMetadata
|
|
529
395
|
*/
|
|
530
|
-
'
|
|
396
|
+
'path'?: string;
|
|
531
397
|
/**
|
|
532
398
|
*
|
|
533
|
-
* @type {
|
|
534
|
-
* @memberof
|
|
399
|
+
* @type {number}
|
|
400
|
+
* @memberof ModelsFileMetadata
|
|
535
401
|
*/
|
|
536
|
-
'
|
|
402
|
+
'size'?: number;
|
|
537
403
|
/**
|
|
538
404
|
*
|
|
539
405
|
* @type {string}
|
|
540
|
-
* @memberof
|
|
541
|
-
*/
|
|
542
|
-
'previewImg'?: string;
|
|
543
|
-
/**
|
|
544
|
-
*
|
|
545
|
-
* @type {boolean}
|
|
546
|
-
* @memberof ModelsNoteMeta
|
|
406
|
+
* @memberof ModelsFileMetadata
|
|
547
407
|
*/
|
|
548
|
-
'
|
|
408
|
+
'updatedAt'?: string;
|
|
549
409
|
/**
|
|
550
410
|
*
|
|
551
411
|
* @type {string}
|
|
552
|
-
* @memberof
|
|
412
|
+
* @memberof ModelsFileMetadata
|
|
553
413
|
*/
|
|
554
|
-
'
|
|
414
|
+
'userId'?: string;
|
|
555
415
|
/**
|
|
556
416
|
*
|
|
557
|
-
* @type {
|
|
558
|
-
* @memberof
|
|
417
|
+
* @type {number}
|
|
418
|
+
* @memberof ModelsFileMetadata
|
|
559
419
|
*/
|
|
560
|
-
'
|
|
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
|
|
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
|
|
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
|
|
456
|
+
* @memberof ModelsUserPersonalInfo
|
|
688
457
|
*/
|
|
689
|
-
'
|
|
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
|
|
462
|
+
* @memberof ModelsUserPersonalInfo
|
|
707
463
|
*/
|
|
708
464
|
'avatarUrl'?: string;
|
|
709
465
|
/**
|
|
710
466
|
*
|
|
711
467
|
* @type {string}
|
|
712
|
-
* @memberof
|
|
468
|
+
* @memberof ModelsUserPersonalInfo
|
|
713
469
|
*/
|
|
714
470
|
'email'?: string;
|
|
715
471
|
/**
|
|
716
472
|
*
|
|
717
473
|
* @type {string}
|
|
718
|
-
* @memberof
|
|
474
|
+
* @memberof ModelsUserPersonalInfo
|
|
719
475
|
*/
|
|
720
476
|
'id'?: string;
|
|
721
477
|
/**
|
|
722
478
|
*
|
|
723
479
|
* @type {string}
|
|
724
|
-
* @memberof
|
|
480
|
+
* @memberof ModelsUserPersonalInfo
|
|
725
481
|
*/
|
|
726
482
|
'name'?: string;
|
|
727
483
|
/**
|
|
728
484
|
*
|
|
729
485
|
* @type {string}
|
|
730
|
-
* @memberof
|
|
486
|
+
* @memberof ModelsUserPersonalInfo
|
|
731
487
|
*/
|
|
732
488
|
'nickName'?: string;
|
|
733
489
|
/**
|
|
734
490
|
*
|
|
735
491
|
* @type {string}
|
|
736
|
-
* @memberof
|
|
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
|
-
'
|
|
500
|
+
'provider'?: string;
|
|
752
501
|
/**
|
|
753
502
|
*
|
|
754
|
-
* @type {
|
|
503
|
+
* @type {number}
|
|
755
504
|
* @memberof ModelsUserPersonalInfo
|
|
756
505
|
*/
|
|
757
|
-
'
|
|
506
|
+
'spaceLimit'?: number;
|
|
758
507
|
/**
|
|
759
508
|
*
|
|
760
|
-
* @type {
|
|
509
|
+
* @type {number}
|
|
761
510
|
* @memberof ModelsUserPersonalInfo
|
|
762
511
|
*/
|
|
763
|
-
'
|
|
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 {
|
|
767
|
-
* @memberof
|
|
522
|
+
* @type {Array<FileChange>}
|
|
523
|
+
* @memberof SyncChangesResponse
|
|
768
524
|
*/
|
|
769
|
-
'
|
|
525
|
+
'changes': Array<FileChange>;
|
|
770
526
|
/**
|
|
771
527
|
*
|
|
772
528
|
* @type {string}
|
|
773
|
-
* @memberof
|
|
529
|
+
* @memberof SyncChangesResponse
|
|
774
530
|
*/
|
|
775
|
-
'
|
|
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
|
|
541
|
+
* @memberof SyncChangesResponse
|
|
780
542
|
*/
|
|
781
|
-
'
|
|
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
|
|
554
|
+
* @memberof VersionConflictResponse
|
|
786
555
|
*/
|
|
787
|
-
'
|
|
556
|
+
'error': string;
|
|
788
557
|
/**
|
|
789
558
|
*
|
|
790
|
-
* @type {
|
|
791
|
-
* @memberof
|
|
559
|
+
* @type {string}
|
|
560
|
+
* @memberof VersionConflictResponse
|
|
792
561
|
*/
|
|
793
|
-
'
|
|
562
|
+
'path': string;
|
|
794
563
|
/**
|
|
795
564
|
*
|
|
796
565
|
* @type {number}
|
|
797
|
-
* @memberof
|
|
566
|
+
* @memberof VersionConflictResponse
|
|
798
567
|
*/
|
|
799
|
-
'
|
|
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
|
-
*
|
|
878
|
+
* EventsApi - axios parameter creator
|
|
1110
879
|
* @export
|
|
1111
880
|
*/
|
|
1112
|
-
export declare const
|
|
881
|
+
export declare const EventsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1113
882
|
/**
|
|
1114
|
-
*
|
|
1115
|
-
* @summary
|
|
1116
|
-
* @param {
|
|
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
|
-
|
|
889
|
+
wsV1EventsGet: (token?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1121
890
|
};
|
|
1122
891
|
/**
|
|
1123
|
-
*
|
|
892
|
+
* EventsApi - functional programming interface
|
|
1124
893
|
* @export
|
|
1125
894
|
*/
|
|
1126
|
-
export declare const
|
|
895
|
+
export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
1127
896
|
/**
|
|
1128
|
-
*
|
|
1129
|
-
* @summary
|
|
1130
|
-
* @param {
|
|
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
|
-
|
|
903
|
+
wsV1EventsGet(token?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1135
904
|
};
|
|
1136
905
|
/**
|
|
1137
|
-
*
|
|
906
|
+
* EventsApi - factory interface
|
|
1138
907
|
* @export
|
|
1139
908
|
*/
|
|
1140
|
-
export declare const
|
|
909
|
+
export declare const EventsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1141
910
|
/**
|
|
1142
|
-
*
|
|
1143
|
-
* @summary
|
|
1144
|
-
* @param {
|
|
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
|
-
|
|
917
|
+
wsV1EventsGet(token?: string, options?: any): AxiosPromise<void>;
|
|
1149
918
|
};
|
|
1150
919
|
/**
|
|
1151
|
-
*
|
|
920
|
+
* EventsApi - object-oriented interface
|
|
1152
921
|
* @export
|
|
1153
|
-
* @class
|
|
922
|
+
* @class EventsApi
|
|
1154
923
|
* @extends {BaseAPI}
|
|
1155
924
|
*/
|
|
1156
|
-
export declare class
|
|
925
|
+
export declare class EventsApi extends BaseAPI {
|
|
1157
926
|
/**
|
|
1158
|
-
*
|
|
1159
|
-
* @summary
|
|
1160
|
-
* @param {
|
|
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
|
|
932
|
+
* @memberof EventsApi
|
|
1164
933
|
*/
|
|
1165
|
-
|
|
934
|
+
wsV1EventsGet(token?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1166
935
|
}
|
|
1167
936
|
/**
|
|
1168
|
-
*
|
|
937
|
+
* SyncApi - axios parameter creator
|
|
1169
938
|
* @export
|
|
1170
939
|
*/
|
|
1171
|
-
export declare const
|
|
940
|
+
export declare const SyncApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1172
941
|
/**
|
|
1173
|
-
*
|
|
1174
|
-
* @summary
|
|
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
|
-
|
|
950
|
+
syncChangesGet: (since?: number, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1179
951
|
/**
|
|
1180
|
-
*
|
|
1181
|
-
* @summary
|
|
1182
|
-
* @param {
|
|
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
|
-
|
|
959
|
+
syncFilesDelete: (path: string, version?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1187
960
|
/**
|
|
1188
|
-
*
|
|
1189
|
-
* @summary
|
|
1190
|
-
* @param {
|
|
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
|
-
|
|
967
|
+
syncFilesGet: (path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1195
968
|
/**
|
|
1196
|
-
*
|
|
1197
|
-
* @summary
|
|
1198
|
-
* @param {
|
|
1199
|
-
* @param {
|
|
1200
|
-
* @param {string} [
|
|
1201
|
-
* @param {
|
|
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
|
-
|
|
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
|
-
*
|
|
981
|
+
* SyncApi - functional programming interface
|
|
1236
982
|
* @export
|
|
1237
983
|
*/
|
|
1238
|
-
export declare const
|
|
984
|
+
export declare const SyncApiFp: (configuration?: Configuration) => {
|
|
1239
985
|
/**
|
|
1240
|
-
*
|
|
1241
|
-
* @summary
|
|
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
|
-
|
|
994
|
+
syncChangesGet(since?: number, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseSyncChangesResponseAny>>;
|
|
1246
995
|
/**
|
|
1247
|
-
*
|
|
1248
|
-
* @summary
|
|
1249
|
-
* @param {
|
|
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
|
-
|
|
1003
|
+
syncFilesDelete(path: string, version?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsFileMetadataAny>>;
|
|
1254
1004
|
/**
|
|
1255
|
-
*
|
|
1256
|
-
* @summary
|
|
1257
|
-
* @param {
|
|
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
|
-
|
|
1011
|
+
syncFilesGet(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
1262
1012
|
/**
|
|
1263
|
-
*
|
|
1264
|
-
* @summary
|
|
1265
|
-
* @param {
|
|
1266
|
-
* @param {
|
|
1267
|
-
* @param {string} [
|
|
1268
|
-
* @param {
|
|
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
|
-
|
|
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
|
-
*
|
|
1025
|
+
* SyncApi - factory interface
|
|
1303
1026
|
* @export
|
|
1304
1027
|
*/
|
|
1305
|
-
export declare const
|
|
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
|
-
*
|
|
1331
|
-
* @summary Get
|
|
1332
|
-
* @param {number} [
|
|
1333
|
-
* @param {number} [
|
|
1334
|
-
* @param {string} [
|
|
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
|
-
|
|
1038
|
+
syncChangesGet(since?: number, limit?: number, cursor?: string, options?: any): AxiosPromise<HandlersHttpResponseSyncChangesResponseAny>;
|
|
1343
1039
|
/**
|
|
1344
|
-
*
|
|
1345
|
-
* @summary
|
|
1346
|
-
* @param {string}
|
|
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
|
-
|
|
1047
|
+
syncFilesDelete(path: string, version?: number, options?: any): AxiosPromise<HandlersHttpResponseModelsFileMetadataAny>;
|
|
1351
1048
|
/**
|
|
1352
|
-
*
|
|
1353
|
-
* @summary
|
|
1354
|
-
* @param {
|
|
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
|
-
|
|
1055
|
+
syncFilesGet(path: string, options?: any): AxiosPromise<File>;
|
|
1359
1056
|
/**
|
|
1360
|
-
*
|
|
1361
|
-
* @summary
|
|
1362
|
-
* @param {
|
|
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
|
-
|
|
1066
|
+
syncFilesPut(filePath: string, file: File, xContentHash?: string, expectedVersion?: number, options?: any): AxiosPromise<HandlersHttpResponseFileUploadResponseAny>;
|
|
1367
1067
|
};
|
|
1368
1068
|
/**
|
|
1369
|
-
*
|
|
1069
|
+
* SyncApi - object-oriented interface
|
|
1370
1070
|
* @export
|
|
1371
|
-
* @class
|
|
1071
|
+
* @class SyncApi
|
|
1372
1072
|
* @extends {BaseAPI}
|
|
1373
1073
|
*/
|
|
1374
|
-
export declare class
|
|
1074
|
+
export declare class SyncApi extends BaseAPI {
|
|
1375
1075
|
/**
|
|
1376
|
-
*
|
|
1377
|
-
* @summary
|
|
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
|
|
1083
|
+
* @memberof SyncApi
|
|
1381
1084
|
*/
|
|
1382
|
-
|
|
1085
|
+
syncChangesGet(since?: number, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseSyncChangesResponseAny, any>>;
|
|
1383
1086
|
/**
|
|
1384
|
-
*
|
|
1385
|
-
* @summary
|
|
1386
|
-
* @param {
|
|
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
|
|
1093
|
+
* @memberof SyncApi
|
|
1390
1094
|
*/
|
|
1391
|
-
|
|
1095
|
+
syncFilesDelete(path: string, version?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersHttpResponseModelsFileMetadataAny, any>>;
|
|
1392
1096
|
/**
|
|
1393
|
-
*
|
|
1394
|
-
* @summary
|
|
1395
|
-
* @param {
|
|
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
|
|
1102
|
+
* @memberof SyncApi
|
|
1399
1103
|
*/
|
|
1400
|
-
|
|
1104
|
+
syncFilesGet(path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
1401
1105
|
/**
|
|
1402
|
-
*
|
|
1403
|
-
* @summary
|
|
1404
|
-
* @param {
|
|
1405
|
-
* @param {
|
|
1406
|
-
* @param {string} [
|
|
1407
|
-
* @param {
|
|
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
|
|
1114
|
+
* @memberof SyncApi
|
|
1414
1115
|
*/
|
|
1415
|
-
|
|
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
|
-
}
|