paperus 0.0.0-stage → 0.0.8

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 (36) hide show
  1. package/README.md +16 -2
  2. package/dist/generated/client/client.gen.d.ts +2 -0
  3. package/dist/generated/client/client.gen.js +216 -0
  4. package/dist/generated/client/index.d.ts +10 -0
  5. package/dist/generated/client/index.js +6 -0
  6. package/dist/generated/client/types.gen.d.ts +120 -0
  7. package/dist/generated/client/types.gen.js +2 -0
  8. package/dist/generated/client/utils.gen.d.ts +37 -0
  9. package/dist/generated/client/utils.gen.js +228 -0
  10. package/dist/generated/client.gen.d.ts +12 -0
  11. package/dist/generated/client.gen.js +3 -0
  12. package/dist/generated/core/auth.gen.d.ts +25 -0
  13. package/dist/generated/core/auth.gen.js +14 -0
  14. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  15. package/dist/generated/core/bodySerializer.gen.js +57 -0
  16. package/dist/generated/core/params.gen.d.ts +43 -0
  17. package/dist/generated/core/params.gen.js +109 -0
  18. package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
  19. package/dist/generated/core/pathSerializer.gen.js +106 -0
  20. package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
  21. package/dist/generated/core/queryKeySerializer.gen.js +92 -0
  22. package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
  23. package/dist/generated/core/serverSentEvents.gen.js +132 -0
  24. package/dist/generated/core/types.gen.d.ts +83 -0
  25. package/dist/generated/core/types.gen.js +2 -0
  26. package/dist/generated/core/utils.gen.d.ts +19 -0
  27. package/dist/generated/core/utils.gen.js +87 -0
  28. package/dist/generated/index.d.ts +2 -0
  29. package/dist/generated/index.js +2 -0
  30. package/dist/generated/sdk.gen.d.ts +718 -0
  31. package/dist/generated/sdk.gen.js +991 -0
  32. package/dist/generated/types.gen.d.ts +4999 -0
  33. package/dist/generated/types.gen.js +2 -0
  34. package/dist/index.d.ts +20 -0
  35. package/dist/index.js +19 -0
  36. package/package.json +38 -5
@@ -0,0 +1,718 @@
1
+ import { type Client, type ClientMeta, type Options as Options2, type RequestResult, type TDataShape } from './client/index.js';
2
+ import type { AddItemData, AddItemErrors, AddItemResponses, AddItemsData, AddItemsErrors, AddItemsResponses, AddNotesData, AddNotesErrors, AddNotesResponses, AddTagData, AddTagErrors, AddTagResponses, AddVersionData, AddVersionErrors, AddVersionResponses, AuthenticationData, AuthenticationResponses, ChangeCollectionData, ChangeCollectionErrors, ChangeCollectionResponses, ChangeGroupData, ChangeGroupErrors, ChangeGroupResponses, ChangeNoteData, ChangeNoteErrors, ChangeNoteResponses, ChangePasswordData, ChangePasswordErrors, ChangePasswordResponses, ChangeTagData, ChangeTagErrors, ChangeTagResponses, ChangeUserData, ChangeUserErrors, ChangeUserResponses, CheckProviderData, CheckProviderErrors, CheckProviderResponses, CheckRestoreData, CheckRestoreErrors, CheckRestoreResponses, CreateCollectionData, CreateCollectionErrors, CreateCollectionResponses, CreateFirstAdminData, CreateFirstAdminErrors, CreateFirstAdminResponses, CreateGroupData, CreateGroupErrors, CreateGroupResponses, CreateNoteData, CreateNoteErrors, CreateNoteResponses, CreateTagData, CreateTagErrors, CreateTagResponses, CreateTokenData, CreateTokenErrors, CreateTokenResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeleteBackupData, DeleteBackupErrors, DeleteBackupResponses, DeleteCollectionData, DeleteCollectionErrors, DeleteCollectionResponses, DeleteGroupData, DeleteGroupErrors, DeleteGroupResponses, DeleteMlModelData, DeleteMlModelErrors, DeleteMlModelResponses, DeleteTagData, DeleteTagErrors, DeleteTagResponses, DownloadFileData, DownloadFileErrors, DownloadFileResponses, EmptyTrashData, EmptyTrashResponses, EndAllSessionsData, EndAllSessionsResponses, ExportCitationsData, ExportCitationsErrors, ExportCitationsResponses, FindUploadData, FindUploadErrors, FindUploadResponses, FindUsersData, FindUsersErrors, FindUsersResponses, GetAvatarData, GetAvatarErrors, GetAvatarResponses, GetConfigData, GetConfigResponses, GetImportData, GetImportErrors, GetImportResponses, GetItemData, GetItemErrors, GetItemResponses, HandOverData, HandOverErrors, HandOverResponses, HealthData, HealthDbData, HealthDbResponses, HealthResponses, IntegrityReportData, IntegrityReportResponses, LeaveGroupData, LeaveGroupErrors, LeaveGroupResponses, LinkItemData, LinkItemErrors, LinkItemResponses, ListBackupsData, ListBackupsResponses, ListCollectionsData, ListCollectionsResponses, ListDuplicatesData, ListDuplicatesErrors, ListDuplicatesEverywhereData, ListDuplicatesEverywhereResponses, ListDuplicatesResponses, ListGroupsData, ListGroupsResponses, ListImportsData, ListImportsResponses, ListItemsData, ListItemsErrors, ListItemsResponses, ListLibrariesData, ListLibrariesResponses, ListMembersData, ListMembersErrors, ListMembersResponses, ListNotesData, ListNotesErrors, ListNotesResponses, ListTagsData, ListTagsResponses, ListTokensData, ListTokensResponses, ListUsersData, ListUsersResponses, LoginData, LoginErrors, LoginMethodsData, LoginMethodsResponses, LoginResponses, LogoutData, LogoutResponses, MarkDifferentData, MarkDifferentErrors, MarkDifferentResponses, MarkHintSeenData, MarkHintSeenErrors, MarkHintSeenResponses, MarkViewedData, MarkViewedErrors, MarkViewedResponses, MeasureMlSpeedData, MeasureMlSpeedErrors, MeasureMlSpeedResponses, MeData, MeResponses, MergeItemData, MergeItemErrors, MergeItemResponses, MlStatusData, MlStatusResponses, NoteHistoryData, NoteHistoryErrors, NoteHistoryResponses, NoteMarkdownData, NoteMarkdownErrors, NoteMarkdownResponses, OidcCallbackData, OidcCallbackErrors, OidcCallbackResponses, OidcStartData, OidcStartErrors, OidcStartResponses, PinCollectionData, PinCollectionErrors, PinCollectionResponses, PinVersionData, PinVersionErrors, PinVersionResponses, PreviewMergeData, PreviewMergeErrors, PreviewMergeResponses, PreviewMoveData, PreviewMoveErrors, PreviewMoveResponses, PreviewTemplateData, PreviewTemplateErrors, PreviewTemplateResponses, PrivateThingsData, PrivateThingsErrors, PrivateThingsResponses, ReadableCopyData, ReadableCopyResponses, ReadNoteData, ReadNoteErrors, ReadNoteResponses, RemoveAvatarData, RemoveAvatarResponses, RemoveItemData, RemoveItemErrors, RemoveItemResponses, RemoveMemberData, RemoveMemberErrors, RemoveMemberResponses, RemoveNoteData, RemoveNoteErrors, RemoveNoteResponses, RemoveTagData, RemoveTagErrors, RemoveTagResponses, RestoreFileData, RestoreFileErrors, RestoreFileResponses, RestoreItemData, RestoreItemErrors, RestoreItemResponses, RestoreNoteData, RestoreNoteErrors, RestoreNoteResponses, RestoreOnFirstStartData, RestoreOnFirstStartErrors, RestoreOnFirstStartResponses, RevokeTokenData, RevokeTokenErrors, RevokeTokenResponses, RunJobData, RunJobErrors, RunJobResponses, SearchData, SearchErrors, SearchResponses, SetAvatarData, SetAvatarErrors, SetAvatarResponses, SetBackupConfigData, SetBackupConfigErrors, SetBackupConfigResponses, SetConfigData, SetConfigErrors, SetConfigResponses, SetDefaultLibraryData, SetDefaultLibraryErrors, SetDefaultLibraryResponses, SetMemberData, SetMemberErrors, SetMemberResponses, SetNoteOwnerData, SetNoteOwnerErrors, SetNoteOwnerResponses, SetOidcSecretData, SetOidcSecretErrors, SetOidcSecretResponses, SetOverridesData, SetOverridesErrors, SetOverridesResponses, SetOwnerData, SetOwnerErrors, SetOwnerResponses, SetupStateData, SetupStateResponses, StarItemData, StarItemErrors, StarItemResponses, StartBackupData, StartBackupErrors, StartBackupResponses, StartImportData, StartImportErrors, StartImportResponses, StatsData, StatsResponses, StorageData, StorageResponses, TrashFileData, TrashFileErrors, TrashFileResponses, TrashItemData, TrashItemErrors, TrashItemResponses, TrashNoteData, TrashNoteErrors, TrashNoteResponses, UnlinkItemData, UnlinkItemErrors, UnlinkItemResponses, UnlinkOidcData, UnlinkOidcResponses, UnpinCollectionData, UnpinCollectionErrors, UnpinCollectionResponses, UnstarItemData, UnstarItemErrors, UnstarItemResponses, UploadNewItemData, UploadNewItemErrors, UploadNewItemResponses, UploadToItemData, UploadToItemErrors, UploadToItemResponses, UploadToVersionData, UploadToVersionErrors, UploadToVersionResponses } from './types.gen.js';
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client?: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
15
+ };
16
+ /**
17
+ * Health
18
+ */
19
+ export declare const health: <ThrowOnError extends boolean = false>(options?: Options<HealthData, ThrowOnError>) => RequestResult<HealthResponses, unknown, ThrowOnError>;
20
+ /**
21
+ * Health Db
22
+ */
23
+ export declare const healthDb: <ThrowOnError extends boolean = false>(options?: Options<HealthDbData, ThrowOnError>) => RequestResult<HealthDbResponses, unknown, ThrowOnError>;
24
+ /**
25
+ * Login
26
+ */
27
+ export declare const login: <ThrowOnError extends boolean = false>(options: Options<LoginData, ThrowOnError>) => RequestResult<LoginResponses, LoginErrors, ThrowOnError>;
28
+ /**
29
+ * Login Methods
30
+ *
31
+ * How one may log in (for the login page).
32
+ */
33
+ export declare const loginMethods: <ThrowOnError extends boolean = false>(options?: Options<LoginMethodsData, ThrowOnError>) => RequestResult<LoginMethodsResponses, unknown, ThrowOnError>;
34
+ /**
35
+ * Oidc Start
36
+ *
37
+ * Off to the identity provider; it sends the browser back to
38
+ * ``/api/auth/oidc/callback``. With ``link``, the OIDC login is
39
+ * linked to the account logged in now instead (whatever its name).
40
+ */
41
+ export declare const oidcStart: <ThrowOnError extends boolean = false>(options?: Options<OidcStartData, ThrowOnError>) => RequestResult<OidcStartResponses, OidcStartErrors, ThrowOnError>;
42
+ /**
43
+ * Oidc Callback
44
+ *
45
+ * Back from the identity provider: log the person in.
46
+ */
47
+ export declare const oidcCallback: <ThrowOnError extends boolean = false>(options?: Options<OidcCallbackData, ThrowOnError>) => RequestResult<OidcCallbackResponses, OidcCallbackErrors, ThrowOnError>;
48
+ /**
49
+ * Unlink Oidc
50
+ *
51
+ * Unlink one's account from the OIDC login (the password stays).
52
+ */
53
+ export declare const unlinkOidc: <ThrowOnError extends boolean = false>(options?: Options<UnlinkOidcData, ThrowOnError>) => RequestResult<UnlinkOidcResponses, unknown, ThrowOnError>;
54
+ /**
55
+ * Logout
56
+ */
57
+ export declare const logout: <ThrowOnError extends boolean = false>(options?: Options<LogoutData, ThrowOnError>) => RequestResult<LogoutResponses, unknown, ThrowOnError>;
58
+ /**
59
+ * Me
60
+ */
61
+ export declare const me: <ThrowOnError extends boolean = false>(options?: Options<MeData, ThrowOnError>) => RequestResult<MeResponses, unknown, ThrowOnError>;
62
+ /**
63
+ * Change Password
64
+ *
65
+ * Change one's password (the current one is needed); other devices are
66
+ * logged out, this one stays logged in.
67
+ */
68
+ export declare const changePassword: <ThrowOnError extends boolean = false>(options: Options<ChangePasswordData, ThrowOnError>) => RequestResult<ChangePasswordResponses, ChangePasswordErrors, ThrowOnError>;
69
+ /**
70
+ * Mark Hint Seen
71
+ *
72
+ * Remember that the person has seen a tutorial hint.
73
+ */
74
+ export declare const markHintSeen: <ThrowOnError extends boolean = false>(options: Options<MarkHintSeenData, ThrowOnError>) => RequestResult<MarkHintSeenResponses, MarkHintSeenErrors, ThrowOnError>;
75
+ /**
76
+ * Remove Avatar
77
+ */
78
+ export declare const removeAvatar: <ThrowOnError extends boolean = false>(options?: Options<RemoveAvatarData, ThrowOnError>) => RequestResult<RemoveAvatarResponses, unknown, ThrowOnError>;
79
+ /**
80
+ * Set Avatar
81
+ *
82
+ * One's profile picture: PNG, JPEG or WebP, up to 256 KB (the website
83
+ * sends it square, 256 pixels wide).
84
+ */
85
+ export declare const setAvatar: <ThrowOnError extends boolean = false>(options: Options<SetAvatarData, ThrowOnError>) => RequestResult<SetAvatarResponses, SetAvatarErrors, ThrowOnError>;
86
+ /**
87
+ * Get Avatar
88
+ *
89
+ * A person's profile picture (404 without one). Its address carries
90
+ * the picture's version, so it may be kept for long.
91
+ */
92
+ export declare const getAvatar: <ThrowOnError extends boolean = false>(options: Options<GetAvatarData, ThrowOnError>) => RequestResult<GetAvatarResponses, GetAvatarErrors, ThrowOnError>;
93
+ /**
94
+ * List Items
95
+ *
96
+ * Items the person can read, newest first; ``before`` = last ``id`` for
97
+ * the next page. ``library`` shows one library only. ``sort=recent``:
98
+ * by the latest of the item's last change and the reader's last opening,
99
+ * newest first, paged with ``offset`` instead of ``before``;
100
+ * ``sort=opened``: only items the reader opened, by when.
101
+ *
102
+ * ``trashed=true`` lists the trash instead. ``unsorted=true``: only papers
103
+ * with a PDF whose details could not be found (all guessed from the file;
104
+ * papers still being read, and notes or other files without a DOI to
105
+ * find, are left out). ``tag`` (repeatable: items
106
+ * with all of them) and ``collection`` (with its subcollections unless
107
+ * ``nested=false``) filter the list, and ``title`` to items with all of its
108
+ * words in their title (any case). ``X-Total-Count`` is the number of
109
+ * matching items, for showing the total while paging.
110
+ * ``since=N`` is for syncing:
111
+ * every item changed after change number N, trashed or not, in change
112
+ * order; ``limit`` and ``before`` do not apply. The ``Last-Change`` header
113
+ * is the number to pass as ``since`` next time.
114
+ */
115
+ export declare const listItems: <ThrowOnError extends boolean = false>(options?: Options<ListItemsData, ThrowOnError>) => RequestResult<ListItemsResponses, ListItemsErrors, ThrowOnError>;
116
+ /**
117
+ * Add Item
118
+ *
119
+ * A new item; if one of its identifiers is known among the items the
120
+ * person can see, the existing item (200).
121
+ */
122
+ export declare const addItem: <ThrowOnError extends boolean = false>(options: Options<AddItemData, ThrowOnError>) => RequestResult<AddItemResponses, AddItemErrors, ThrowOnError>;
123
+ /**
124
+ * Add Version
125
+ *
126
+ * Another version of an item, e.g. the published one of a preprint.
127
+ */
128
+ export declare const addVersion: <ThrowOnError extends boolean = false>(options: Options<AddVersionData, ThrowOnError>) => RequestResult<AddVersionResponses, AddVersionErrors, ThrowOnError>;
129
+ /**
130
+ * Pin Version
131
+ *
132
+ * Cite this version, whatever its kind.
133
+ */
134
+ export declare const pinVersion: <ThrowOnError extends boolean = false>(options: Options<PinVersionData, ThrowOnError>) => RequestResult<PinVersionResponses, PinVersionErrors, ThrowOnError>;
135
+ /**
136
+ * Set Overrides
137
+ *
138
+ * Replace the manual edits to the metadata for citing.
139
+ *
140
+ * Fields set here win over every version's metadata and survive new
141
+ * lookups; ``null`` hides a field. Needs ``If-Match`` with the ETag from the
142
+ * last read, so concurrent edits are not lost (412 if the item changed).
143
+ */
144
+ export declare const setOverrides: <ThrowOnError extends boolean = false>(options: Options<SetOverridesData, ThrowOnError>) => RequestResult<SetOverridesResponses, SetOverridesErrors, ThrowOnError>;
145
+ /**
146
+ * Trash Item
147
+ *
148
+ * Move to the trash; restorable with ``POST …/restore``.
149
+ */
150
+ export declare const trashItem: <ThrowOnError extends boolean = false>(options: Options<TrashItemData, ThrowOnError>) => RequestResult<TrashItemResponses, TrashItemErrors, ThrowOnError>;
151
+ /**
152
+ * Get Item
153
+ */
154
+ export declare const getItem: <ThrowOnError extends boolean = false>(options: Options<GetItemData, ThrowOnError>) => RequestResult<GetItemResponses, GetItemErrors, ThrowOnError>;
155
+ /**
156
+ * Set Owner
157
+ *
158
+ * Give the item to another owner the person may add to: share it with a
159
+ * group, or take a group's paper for oneself (members may delete it
160
+ * anyway). Tags and collections of the group that gave it up come off.
161
+ */
162
+ export declare const setOwner: <ThrowOnError extends boolean = false>(options: Options<SetOwnerData, ThrowOnError>) => RequestResult<SetOwnerResponses, SetOwnerErrors, ThrowOnError>;
163
+ /**
164
+ * Restore Item
165
+ */
166
+ export declare const restoreItem: <ThrowOnError extends boolean = false>(options: Options<RestoreItemData, ThrowOnError>) => RequestResult<RestoreItemResponses, RestoreItemErrors, ThrowOnError>;
167
+ /**
168
+ * Unstar Item
169
+ */
170
+ export declare const unstarItem: <ThrowOnError extends boolean = false>(options: Options<UnstarItemData, ThrowOnError>) => RequestResult<UnstarItemResponses, UnstarItemErrors, ThrowOnError>;
171
+ /**
172
+ * Star Item
173
+ *
174
+ * Star the paper (for the person only; any paper they can see).
175
+ */
176
+ export declare const starItem: <ThrowOnError extends boolean = false>(options: Options<StarItemData, ThrowOnError>) => RequestResult<StarItemResponses, StarItemErrors, ThrowOnError>;
177
+ /**
178
+ * Mark Viewed
179
+ *
180
+ * Remember that the person opened the item (for their recent papers).
181
+ */
182
+ export declare const markViewed: <ThrowOnError extends boolean = false>(options: Options<MarkViewedData, ThrowOnError>) => RequestResult<MarkViewedResponses, MarkViewedErrors, ThrowOnError>;
183
+ /**
184
+ * List Duplicates
185
+ *
186
+ * Papers the person can see that share an identifier or a file with
187
+ * this one: candidates for merging.
188
+ */
189
+ export declare const listDuplicates: <ThrowOnError extends boolean = false>(options: Options<ListDuplicatesData, ThrowOnError>) => RequestResult<ListDuplicatesResponses, ListDuplicatesErrors, ThrowOnError>;
190
+ /**
191
+ * Preview Merge
192
+ *
193
+ * What merging this paper into ``into`` would move and leave behind.
194
+ */
195
+ export declare const previewMerge: <ThrowOnError extends boolean = false>(options: Options<PreviewMergeData, ThrowOnError>) => RequestResult<PreviewMergeResponses, PreviewMergeErrors, ThrowOnError>;
196
+ /**
197
+ * Merge Item
198
+ *
199
+ * Merge this paper into another one (the same paper twice). Needs the
200
+ * right to change this one; what may move to the other depends on the
201
+ * person's rights there (see docs/permissions.md).
202
+ */
203
+ export declare const mergeItem: <ThrowOnError extends boolean = false>(options: Options<MergeItemData, ThrowOnError>) => RequestResult<MergeItemResponses, MergeItemErrors, ThrowOnError>;
204
+ /**
205
+ * Find Upload
206
+ *
207
+ * The item in a library the person can read that already has a file
208
+ * with this SHA-256 (hex), so a client can skip uploading it again; 404 if
209
+ * there is none.
210
+ */
211
+ export declare const findUpload: <ThrowOnError extends boolean = false>(options: Options<FindUploadData, ThrowOnError>) => RequestResult<FindUploadResponses, FindUploadErrors, ThrowOnError>;
212
+ /**
213
+ * Upload New Item
214
+ *
215
+ * A new item from a file, titled after the file until its text tells more.
216
+ *
217
+ * The background job looks for a DOI or arXiv ID in the file and replaces
218
+ * the placeholder metadata (see ``paperus.identify``). A file that is
219
+ * already in a library the person can read makes no new item: the answer
220
+ * (200, ``existing``) names the item that has it. ``library_id`` (the
221
+ * owner): the person's default if not given.
222
+ */
223
+ export declare const uploadNewItem: <ThrowOnError extends boolean = false>(options: Options<UploadNewItemData, ThrowOnError>) => RequestResult<UploadNewItemResponses, UploadNewItemErrors, ThrowOnError>;
224
+ /**
225
+ * Upload To Version
226
+ */
227
+ export declare const uploadToVersion: <ThrowOnError extends boolean = false>(options: Options<UploadToVersionData, ThrowOnError>) => RequestResult<UploadToVersionResponses, UploadToVersionErrors, ThrowOnError>;
228
+ /**
229
+ * Upload To Item
230
+ *
231
+ * Upload to the item's preferred version.
232
+ */
233
+ export declare const uploadToItem: <ThrowOnError extends boolean = false>(options: Options<UploadToItemData, ThrowOnError>) => RequestResult<UploadToItemResponses, UploadToItemErrors, ThrowOnError>;
234
+ /**
235
+ * Download File
236
+ */
237
+ export declare const downloadFile: <ThrowOnError extends boolean = false>(options: Options<DownloadFileData, ThrowOnError>) => RequestResult<DownloadFileResponses, DownloadFileErrors, ThrowOnError>;
238
+ /**
239
+ * Trash File
240
+ *
241
+ * Move to the trash; restorable with ``POST …/restore``.
242
+ */
243
+ export declare const trashFile: <ThrowOnError extends boolean = false>(options: Options<TrashFileData, ThrowOnError>) => RequestResult<TrashFileResponses, TrashFileErrors, ThrowOnError>;
244
+ /**
245
+ * Restore File
246
+ */
247
+ export declare const restoreFile: <ThrowOnError extends boolean = false>(options: Options<RestoreFileData, ThrowOnError>) => RequestResult<RestoreFileResponses, RestoreFileErrors, ThrowOnError>;
248
+ /**
249
+ * Search
250
+ *
251
+ * Passages for ``q`` in the libraries the person can read (or one
252
+ * ``library``): its words (quotes for phrases, ``-`` to exclude), its
253
+ * meaning, or both; ``type`` (repeatable, CSL types) limits the items.
254
+ * ``per_item`` keeps the best few per paper or note, so more papers fit;
255
+ * ``item`` searches within one paper. The ``X-Search-Mode`` header says
256
+ * what was used: without the ML service, hybrid search falls back to
257
+ * keywords.
258
+ */
259
+ export declare const search: <ThrowOnError extends boolean = false>(options: Options<SearchData, ThrowOnError>) => RequestResult<SearchResponses, SearchErrors, ThrowOnError>;
260
+ /**
261
+ * Export Citations
262
+ *
263
+ * Citations for the given papers (``item``, repeatable), a collection
264
+ * (with its subcollections unless ``nested=false``) or, with neither,
265
+ * everything the person can read. ``download=true`` offers it as a file
266
+ * (``.bib`` or ``.json``).
267
+ */
268
+ export declare const exportCitations: <ThrowOnError extends boolean = false>(options?: Options<ExportCitationsData, ThrowOnError>) => RequestResult<ExportCitationsResponses, ExportCitationsErrors, ThrowOnError>;
269
+ /**
270
+ * List Notes
271
+ *
272
+ * Notes the person can read, last changed first: all of them, those
273
+ * about a paper (``item``) or in a collection (with its subcollections
274
+ * unless ``nested=false``); ``trashed=true`` lists the trash instead.
275
+ * ``X-Total-Count`` is the number of matching notes.
276
+ */
277
+ export declare const listNotes: <ThrowOnError extends boolean = false>(options?: Options<ListNotesData, ThrowOnError>) => RequestResult<ListNotesResponses, ListNotesErrors, ThrowOnError>;
278
+ /**
279
+ * Create Note
280
+ *
281
+ * A new note for the given owner (or the person's default owner), about
282
+ * the given papers, optionally put into a collection.
283
+ */
284
+ export declare const createNote: <ThrowOnError extends boolean = false>(options: Options<CreateNoteData, ThrowOnError>) => RequestResult<CreateNoteResponses, CreateNoteErrors, ThrowOnError>;
285
+ /**
286
+ * Trash Note
287
+ */
288
+ export declare const trashNote: <ThrowOnError extends boolean = false>(options: Options<TrashNoteData, ThrowOnError>) => RequestResult<TrashNoteResponses, TrashNoteErrors, ThrowOnError>;
289
+ /**
290
+ * Read Note
291
+ *
292
+ * The note with its text; the ``ETag`` goes into ``If-Match`` when saving.
293
+ */
294
+ export declare const readNote: <ThrowOnError extends boolean = false>(options: Options<ReadNoteData, ThrowOnError>) => RequestResult<ReadNoteResponses, ReadNoteErrors, ThrowOnError>;
295
+ /**
296
+ * Change Note
297
+ *
298
+ * Save the text. Needs ``If-Match`` with the ETag the editor started
299
+ * from: 412 if someone else saved in between (then reload and merge).
300
+ */
301
+ export declare const changeNote: <ThrowOnError extends boolean = false>(options: Options<ChangeNoteData, ThrowOnError>) => RequestResult<ChangeNoteResponses, ChangeNoteErrors, ThrowOnError>;
302
+ /**
303
+ * Unlink Item
304
+ */
305
+ export declare const unlinkItem: <ThrowOnError extends boolean = false>(options: Options<UnlinkItemData, ThrowOnError>) => RequestResult<UnlinkItemResponses, UnlinkItemErrors, ThrowOnError>;
306
+ /**
307
+ * Link Item
308
+ *
309
+ * Say the note is about the paper (at a page); changes the page if it
310
+ * is linked already.
311
+ */
312
+ export declare const linkItem: <ThrowOnError extends boolean = false>(options: Options<LinkItemData, ThrowOnError>) => RequestResult<LinkItemResponses, LinkItemErrors, ThrowOnError>;
313
+ /**
314
+ * Set Note Owner
315
+ *
316
+ * Give the note to another owner the person may add to. Collections of a
317
+ * group that no longer owns it let it go.
318
+ */
319
+ export declare const setNoteOwner: <ThrowOnError extends boolean = false>(options: Options<SetNoteOwnerData, ThrowOnError>) => RequestResult<SetNoteOwnerResponses, SetNoteOwnerErrors, ThrowOnError>;
320
+ /**
321
+ * Restore Note
322
+ */
323
+ export declare const restoreNote: <ThrowOnError extends boolean = false>(options: Options<RestoreNoteData, ThrowOnError>) => RequestResult<RestoreNoteResponses, RestoreNoteErrors, ThrowOnError>;
324
+ /**
325
+ * Note History
326
+ *
327
+ * Earlier texts of the note, newest first.
328
+ */
329
+ export declare const noteHistory: <ThrowOnError extends boolean = false>(options: Options<NoteHistoryData, ThrowOnError>) => RequestResult<NoteHistoryResponses, NoteHistoryErrors, ThrowOnError>;
330
+ /**
331
+ * Note Markdown
332
+ *
333
+ * The note as a Markdown file.
334
+ */
335
+ export declare const noteMarkdown: <ThrowOnError extends boolean = false>(options: Options<NoteMarkdownData, ThrowOnError>) => RequestResult<NoteMarkdownResponses, NoteMarkdownErrors, ThrowOnError>;
336
+ /**
337
+ * Add Notes
338
+ *
339
+ * Put notes into a collection; those it may not hold (a group's
340
+ * collection holds only the group's notes) or unknown ones are skipped.
341
+ */
342
+ export declare const addNotes: <ThrowOnError extends boolean = false>(options: Options<AddNotesData, ThrowOnError>) => RequestResult<AddNotesResponses, AddNotesErrors, ThrowOnError>;
343
+ /**
344
+ * Remove Note
345
+ */
346
+ export declare const removeNote: <ThrowOnError extends boolean = false>(options: Options<RemoveNoteData, ThrowOnError>) => RequestResult<RemoveNoteResponses, RemoveNoteErrors, ThrowOnError>;
347
+ /**
348
+ * List Imports
349
+ *
350
+ * The person's imports, newest first.
351
+ */
352
+ export declare const listImports: <ThrowOnError extends boolean = false>(options?: Options<ListImportsData, ThrowOnError>) => RequestResult<ListImportsResponses, unknown, ThrowOnError>;
353
+ /**
354
+ * Start Import
355
+ *
356
+ * Import an export: BibTeX, RIS or CSL-JSON, alone or zipped with its
357
+ * files. Everything new belongs to ``library_id`` (default: the person's
358
+ * default owner). Runs in the background; poll ``GET /api/imports/{id}``.
359
+ */
360
+ export declare const startImport: <ThrowOnError extends boolean = false>(options: Options<StartImportData, ThrowOnError>) => RequestResult<StartImportResponses, StartImportErrors, ThrowOnError>;
361
+ /**
362
+ * Get Import
363
+ */
364
+ export declare const getImport: <ThrowOnError extends boolean = false>(options: Options<GetImportData, ThrowOnError>) => RequestResult<GetImportResponses, GetImportErrors, ThrowOnError>;
365
+ /**
366
+ * List Duplicates Everywhere
367
+ *
368
+ * Pairs of papers that look like the same paper (same identifier or
369
+ * file first, then the same title), with a recommendation which to keep;
370
+ * pairs marked as different are left out.
371
+ */
372
+ export declare const listDuplicatesEverywhere: <ThrowOnError extends boolean = false>(options?: Options<ListDuplicatesEverywhereData, ThrowOnError>) => RequestResult<ListDuplicatesEverywhereResponses, unknown, ThrowOnError>;
373
+ /**
374
+ * Mark Different
375
+ *
376
+ * The two are different papers: do not suggest them again (for everyone
377
+ * who sees both). Needs the right to change at least one of them.
378
+ */
379
+ export declare const markDifferent: <ThrowOnError extends boolean = false>(options: Options<MarkDifferentData, ThrowOnError>) => RequestResult<MarkDifferentResponses, MarkDifferentErrors, ThrowOnError>;
380
+ /**
381
+ * Empty Trash
382
+ *
383
+ * Delete for good everything in the trash the person may change: their
384
+ * own and that of groups where they are a member or admin.
385
+ */
386
+ export declare const emptyTrash: <ThrowOnError extends boolean = false>(options?: Options<EmptyTrashData, ThrowOnError>) => RequestResult<EmptyTrashResponses, unknown, ThrowOnError>;
387
+ /**
388
+ * Storage
389
+ *
390
+ * How full the storage is (for the bar at the bottom of the menu).
391
+ */
392
+ export declare const storage: <ThrowOnError extends boolean = false>(options?: Options<StorageData, ThrowOnError>) => RequestResult<StorageResponses, unknown, ThrowOnError>;
393
+ /**
394
+ * Get Config
395
+ */
396
+ export declare const getConfig: <ThrowOnError extends boolean = false>(options?: Options<GetConfigData, ThrowOnError>) => RequestResult<GetConfigResponses, unknown, ThrowOnError>;
397
+ /**
398
+ * Set Config
399
+ *
400
+ * Save settings. A new embedding model must be one the ML service
401
+ * offers; the library is then re-embedded in the background, while keyword
402
+ * search keeps working and search by meaning covers more and more.
403
+ */
404
+ export declare const setConfig: <ThrowOnError extends boolean = false>(options: Options<SetConfigData, ThrowOnError>) => RequestResult<SetConfigResponses, SetConfigErrors, ThrowOnError>;
405
+ /**
406
+ * Ml Status
407
+ */
408
+ export declare const mlStatus: <ThrowOnError extends boolean = false>(options?: Options<MlStatusData, ThrowOnError>) => RequestResult<MlStatusResponses, unknown, ThrowOnError>;
409
+ /**
410
+ * Measure Ml Speed
411
+ *
412
+ * Time a model on this installation's ML service with sample passages.
413
+ * A model not downloaded yet starts downloading: the answer then says
414
+ * ``loading``; ask again in a while.
415
+ */
416
+ export declare const measureMlSpeed: <ThrowOnError extends boolean = false>(options: Options<MeasureMlSpeedData, ThrowOnError>) => RequestResult<MeasureMlSpeedResponses, MeasureMlSpeedErrors, ThrowOnError>;
417
+ /**
418
+ * Delete Ml Model
419
+ *
420
+ * Remove a downloaded model from the ML service (not the one in use).
421
+ */
422
+ export declare const deleteMlModel: <ThrowOnError extends boolean = false>(options: Options<DeleteMlModelData, ThrowOnError>) => RequestResult<DeleteMlModelResponses, DeleteMlModelErrors, ThrowOnError>;
423
+ /**
424
+ * Stats
425
+ */
426
+ export declare const stats: <ThrowOnError extends boolean = false>(options?: Options<StatsData, ThrowOnError>) => RequestResult<StatsResponses, unknown, ThrowOnError>;
427
+ /**
428
+ * Run Job
429
+ *
430
+ * Start a sweep now: ``embeddings`` (embed what is missing), ``text``
431
+ * (read files still pending), ``text-all`` (read every file again),
432
+ * ``trash`` (delete what is older than the trash days), ``integrity``
433
+ * (check stored contents), ``integrity-deep`` (also their SHA-256) or
434
+ * ``integrity-clean`` (check and remove unused stored contents), ``copy``
435
+ * (update the readable copy) or ``copy-remove`` (delete it).
436
+ */
437
+ export declare const runJob: <ThrowOnError extends boolean = false>(options: Options<RunJobData, ThrowOnError>) => RequestResult<RunJobResponses, RunJobErrors, ThrowOnError>;
438
+ /**
439
+ * Integrity Report
440
+ *
441
+ * The last integrity check's report (None before the first).
442
+ */
443
+ export declare const integrityReport: <ThrowOnError extends boolean = false>(options?: Options<IntegrityReportData, ThrowOnError>) => RequestResult<IntegrityReportResponses, unknown, ThrowOnError>;
444
+ /**
445
+ * Authentication
446
+ *
447
+ * What the Authentication settings show besides the settings.
448
+ */
449
+ export declare const authentication: <ThrowOnError extends boolean = false>(options?: Options<AuthenticationData, ThrowOnError>) => RequestResult<AuthenticationResponses, unknown, ThrowOnError>;
450
+ /**
451
+ * Set Oidc Secret
452
+ *
453
+ * The OIDC login's client secret; never sent back.
454
+ */
455
+ export declare const setOidcSecret: <ThrowOnError extends boolean = false>(options: Options<SetOidcSecretData, ThrowOnError>) => RequestResult<SetOidcSecretResponses, SetOidcSecretErrors, ThrowOnError>;
456
+ /**
457
+ * Check Provider
458
+ *
459
+ * Whether the identity provider answers at this address.
460
+ */
461
+ export declare const checkProvider: <ThrowOnError extends boolean = false>(options: Options<CheckProviderData, ThrowOnError>) => RequestResult<CheckProviderResponses, CheckProviderErrors, ThrowOnError>;
462
+ /**
463
+ * End All Sessions
464
+ *
465
+ * Log everyone out on every device, except this one.
466
+ */
467
+ export declare const endAllSessions: <ThrowOnError extends boolean = false>(options?: Options<EndAllSessionsData, ThrowOnError>) => RequestResult<EndAllSessionsResponses, unknown, ThrowOnError>;
468
+ /**
469
+ * Readable Copy
470
+ */
471
+ export declare const readableCopy: <ThrowOnError extends boolean = false>(options?: Options<ReadableCopyData, ThrowOnError>) => RequestResult<ReadableCopyResponses, unknown, ThrowOnError>;
472
+ /**
473
+ * Preview Template
474
+ */
475
+ export declare const previewTemplate: <ThrowOnError extends boolean = false>(options: Options<PreviewTemplateData, ThrowOnError>) => RequestResult<PreviewTemplateResponses, PreviewTemplateErrors, ThrowOnError>;
476
+ /**
477
+ * List Tags
478
+ *
479
+ * The tags of the libraries the person can read, with how they are used
480
+ * (items in the trash do not count).
481
+ */
482
+ export declare const listTags: <ThrowOnError extends boolean = false>(options?: Options<ListTagsData, ThrowOnError>) => RequestResult<ListTagsResponses, unknown, ThrowOnError>;
483
+ /**
484
+ * Create Tag
485
+ *
486
+ * A tag not on any item yet (409 if the library has one of that name).
487
+ */
488
+ export declare const createTag: <ThrowOnError extends boolean = false>(options: Options<CreateTagData, ThrowOnError>) => RequestResult<CreateTagResponses, CreateTagErrors, ThrowOnError>;
489
+ /**
490
+ * Add Tag
491
+ *
492
+ * Tag an item with its owner's, the person's or one of their groups' tag
493
+ * (see ``Access.may_tag``); the tag is created if that owner has none of
494
+ * that name (any case), which for a group needs member rights there.
495
+ */
496
+ export declare const addTag: <ThrowOnError extends boolean = false>(options: Options<AddTagData, ThrowOnError>) => RequestResult<AddTagResponses, AddTagErrors, ThrowOnError>;
497
+ /**
498
+ * Remove Tag
499
+ */
500
+ export declare const removeTag: <ThrowOnError extends boolean = false>(options: Options<RemoveTagData, ThrowOnError>) => RequestResult<RemoveTagResponses, RemoveTagErrors, ThrowOnError>;
501
+ /**
502
+ * Delete Tag
503
+ *
504
+ * Remove a tag from every item and delete it.
505
+ */
506
+ export declare const deleteTag: <ThrowOnError extends boolean = false>(options: Options<DeleteTagData, ThrowOnError>) => RequestResult<DeleteTagResponses, DeleteTagErrors, ThrowOnError>;
507
+ /**
508
+ * Change Tag
509
+ *
510
+ * Rename a tag everywhere (409 if another tag of its owner has that
511
+ * name), set its colour or description, or give it to another owner.
512
+ */
513
+ export declare const changeTag: <ThrowOnError extends boolean = false>(options: Options<ChangeTagData, ThrowOnError>) => RequestResult<ChangeTagResponses, ChangeTagErrors, ThrowOnError>;
514
+ /**
515
+ * List Collections
516
+ *
517
+ * The collections of the libraries the person can read, flat;
518
+ * ``parent_id`` gives the tree.
519
+ */
520
+ export declare const listCollections: <ThrowOnError extends boolean = false>(options?: Options<ListCollectionsData, ThrowOnError>) => RequestResult<ListCollectionsResponses, unknown, ThrowOnError>;
521
+ /**
522
+ * Create Collection
523
+ */
524
+ export declare const createCollection: <ThrowOnError extends boolean = false>(options: Options<CreateCollectionData, ThrowOnError>) => RequestResult<CreateCollectionResponses, CreateCollectionErrors, ThrowOnError>;
525
+ /**
526
+ * Delete Collection
527
+ *
528
+ * Delete a collection and its subcollections; items stay in the library.
529
+ */
530
+ export declare const deleteCollection: <ThrowOnError extends boolean = false>(options: Options<DeleteCollectionData, ThrowOnError>) => RequestResult<DeleteCollectionResponses, DeleteCollectionErrors, ThrowOnError>;
531
+ /**
532
+ * Change Collection
533
+ *
534
+ * Rename, describe or move a collection (not into itself), also into
535
+ * another library the person may change.
536
+ */
537
+ export declare const changeCollection: <ThrowOnError extends boolean = false>(options: Options<ChangeCollectionData, ThrowOnError>) => RequestResult<ChangeCollectionResponses, ChangeCollectionErrors, ThrowOnError>;
538
+ /**
539
+ * Preview Move
540
+ *
541
+ * Before moving a collection into another library: how many of its
542
+ * papers are not in that library yet.
543
+ */
544
+ export declare const previewMove: <ThrowOnError extends boolean = false>(options: Options<PreviewMoveData, ThrowOnError>) => RequestResult<PreviewMoveResponses, PreviewMoveErrors, ThrowOnError>;
545
+ /**
546
+ * Unpin Collection
547
+ */
548
+ export declare const unpinCollection: <ThrowOnError extends boolean = false>(options: Options<UnpinCollectionData, ThrowOnError>) => RequestResult<UnpinCollectionResponses, UnpinCollectionErrors, ThrowOnError>;
549
+ /**
550
+ * Pin Collection
551
+ *
552
+ * Pin the collection to the person's sidebar (readers may too).
553
+ */
554
+ export declare const pinCollection: <ThrowOnError extends boolean = false>(options: Options<PinCollectionData, ThrowOnError>) => RequestResult<PinCollectionResponses, PinCollectionErrors, ThrowOnError>;
555
+ /**
556
+ * Add Items
557
+ *
558
+ * Add items; those the collection may not hold (a group's collection
559
+ * holds only that group's items) or the person cannot read are skipped.
560
+ */
561
+ export declare const addItems: <ThrowOnError extends boolean = false>(options: Options<AddItemsData, ThrowOnError>) => RequestResult<AddItemsResponses, AddItemsErrors, ThrowOnError>;
562
+ /**
563
+ * Remove Item
564
+ */
565
+ export declare const removeItem: <ThrowOnError extends boolean = false>(options: Options<RemoveItemData, ThrowOnError>) => RequestResult<RemoveItemResponses, RemoveItemErrors, ThrowOnError>;
566
+ /**
567
+ * List Libraries
568
+ *
569
+ * The libraries the person can read: their own first, then their groups'.
570
+ */
571
+ export declare const listLibraries: <ThrowOnError extends boolean = false>(options?: Options<ListLibrariesData, ThrowOnError>) => RequestResult<ListLibrariesResponses, unknown, ThrowOnError>;
572
+ /**
573
+ * Set Default Library
574
+ *
575
+ * Where new items go unless another library is chosen.
576
+ */
577
+ export declare const setDefaultLibrary: <ThrowOnError extends boolean = false>(options: Options<SetDefaultLibraryData, ThrowOnError>) => RequestResult<SetDefaultLibraryResponses, SetDefaultLibraryErrors, ThrowOnError>;
578
+ /**
579
+ * List Groups
580
+ *
581
+ * The groups the person belongs to (directly or through a group above);
582
+ * site administrators see every group. Flat; ``parent_id`` gives the tree.
583
+ */
584
+ export declare const listGroups: <ThrowOnError extends boolean = false>(options?: Options<ListGroupsData, ThrowOnError>) => RequestResult<ListGroupsResponses, unknown, ThrowOnError>;
585
+ /**
586
+ * Create Group
587
+ *
588
+ * A group with its library. Top-level groups: site administrators only,
589
+ * with a first admin. Subgroups: the parent's admins (who are then admins
590
+ * of the subgroup too).
591
+ */
592
+ export declare const createGroup: <ThrowOnError extends boolean = false>(options: Options<CreateGroupData, ThrowOnError>) => RequestResult<CreateGroupResponses, CreateGroupErrors, ThrowOnError>;
593
+ /**
594
+ * Delete Group
595
+ *
596
+ * Delete an empty group: no groups inside and no items or notes (not
597
+ * even in its trash). Its tags, collections and memberships go with it.
598
+ */
599
+ export declare const deleteGroup: <ThrowOnError extends boolean = false>(options: Options<DeleteGroupData, ThrowOnError>) => RequestResult<DeleteGroupResponses, DeleteGroupErrors, ThrowOnError>;
600
+ /**
601
+ * Change Group
602
+ */
603
+ export declare const changeGroup: <ThrowOnError extends boolean = false>(options: Options<ChangeGroupData, ThrowOnError>) => RequestResult<ChangeGroupResponses, ChangeGroupErrors, ThrowOnError>;
604
+ /**
605
+ * List Members
606
+ *
607
+ * Everyone in the group: given a role here or in a group above.
608
+ */
609
+ export declare const listMembers: <ThrowOnError extends boolean = false>(options: Options<ListMembersData, ThrowOnError>) => RequestResult<ListMembersResponses, ListMembersErrors, ThrowOnError>;
610
+ /**
611
+ * Remove Member
612
+ *
613
+ * Remove someone's membership here (inherited ones stay).
614
+ */
615
+ export declare const removeMember: <ThrowOnError extends boolean = false>(options: Options<RemoveMemberData, ThrowOnError>) => RequestResult<RemoveMemberResponses, RemoveMemberErrors, ThrowOnError>;
616
+ /**
617
+ * Set Member
618
+ *
619
+ * Add someone to the group, or change their role here. A role lower than
620
+ * one inherited from a group above has no effect (inherited roles win).
621
+ */
622
+ export declare const setMember: <ThrowOnError extends boolean = false>(options: Options<SetMemberData, ThrowOnError>) => RequestResult<SetMemberResponses, SetMemberErrors, ThrowOnError>;
623
+ /**
624
+ * Leave Group
625
+ *
626
+ * Leave a group one was added to. Membership through a group above can
627
+ * only be left there.
628
+ */
629
+ export declare const leaveGroup: <ThrowOnError extends boolean = false>(options: Options<LeaveGroupData, ThrowOnError>) => RequestResult<LeaveGroupResponses, LeaveGroupErrors, ThrowOnError>;
630
+ /**
631
+ * Find Users
632
+ *
633
+ * People to add to a group, by username; for site administrators and
634
+ * group admins.
635
+ */
636
+ export declare const findUsers: <ThrowOnError extends boolean = false>(options?: Options<FindUsersData, ThrowOnError>) => RequestResult<FindUsersResponses, FindUsersErrors, ThrowOnError>;
637
+ /**
638
+ * List Users
639
+ */
640
+ export declare const listUsers: <ThrowOnError extends boolean = false>(options?: Options<ListUsersData, ThrowOnError>) => RequestResult<ListUsersResponses, unknown, ThrowOnError>;
641
+ /**
642
+ * Create User
643
+ *
644
+ * A new account (with its private space); 409 if the name is taken.
645
+ */
646
+ export declare const createUser: <ThrowOnError extends boolean = false>(options: Options<CreateUserData, ThrowOnError>) => RequestResult<CreateUserResponses, CreateUserErrors, ThrowOnError>;
647
+ /**
648
+ * Change User
649
+ *
650
+ * Reset a password, grant or take admin rights, (de)activate. The last
651
+ * active administrator cannot lose those rights, and nobody deactivates
652
+ * themselves.
653
+ */
654
+ export declare const changeUser: <ThrowOnError extends boolean = false>(options: Options<ChangeUserData, ThrowOnError>) => RequestResult<ChangeUserResponses, ChangeUserErrors, ThrowOnError>;
655
+ /**
656
+ * Private Things
657
+ */
658
+ export declare const privateThings: <ThrowOnError extends boolean = false>(options: Options<PrivateThingsData, ThrowOnError>) => RequestResult<PrivateThingsResponses, PrivateThingsErrors, ThrowOnError>;
659
+ /**
660
+ * Hand Over
661
+ *
662
+ * Give a deactivated person's papers, notes, tags and collections to a
663
+ * group or another person.
664
+ */
665
+ export declare const handOver: <ThrowOnError extends boolean = false>(options: Options<HandOverData, ThrowOnError>) => RequestResult<HandOverResponses, HandOverErrors, ThrowOnError>;
666
+ /**
667
+ * List Backups
668
+ */
669
+ export declare const listBackups: <ThrowOnError extends boolean = false>(options?: Options<ListBackupsData, ThrowOnError>) => RequestResult<ListBackupsResponses, unknown, ThrowOnError>;
670
+ /**
671
+ * Start Backup
672
+ *
673
+ * Queue a backup now (the worker writes it); 409 if one is running.
674
+ */
675
+ export declare const startBackup: <ThrowOnError extends boolean = false>(options: Options<StartBackupData, ThrowOnError>) => RequestResult<StartBackupResponses, StartBackupErrors, ThrowOnError>;
676
+ /**
677
+ * Set Backup Config
678
+ */
679
+ export declare const setBackupConfig: <ThrowOnError extends boolean = false>(options: Options<SetBackupConfigData, ThrowOnError>) => RequestResult<SetBackupConfigResponses, SetBackupConfigErrors, ThrowOnError>;
680
+ /**
681
+ * Delete Backup
682
+ */
683
+ export declare const deleteBackup: <ThrowOnError extends boolean = false>(options: Options<DeleteBackupData, ThrowOnError>) => RequestResult<DeleteBackupResponses, DeleteBackupErrors, ThrowOnError>;
684
+ /**
685
+ * Check Restore
686
+ */
687
+ export declare const checkRestore: <ThrowOnError extends boolean = false>(options: Options<CheckRestoreData, ThrowOnError>) => RequestResult<CheckRestoreResponses, CheckRestoreErrors, ThrowOnError>;
688
+ /**
689
+ * Setup State
690
+ */
691
+ export declare const setupState: <ThrowOnError extends boolean = false>(options?: Options<SetupStateData, ThrowOnError>) => RequestResult<SetupStateResponses, unknown, ThrowOnError>;
692
+ /**
693
+ * Create First Admin
694
+ *
695
+ * The first administrator, logged in right away.
696
+ */
697
+ export declare const createFirstAdmin: <ThrowOnError extends boolean = false>(options: Options<CreateFirstAdminData, ThrowOnError>) => RequestResult<CreateFirstAdminResponses, CreateFirstAdminErrors, ThrowOnError>;
698
+ /**
699
+ * Restore On First Start
700
+ *
701
+ * Restore a backup from the backup folder into the empty database; then
702
+ * people log in with their accounts from the backup.
703
+ */
704
+ export declare const restoreOnFirstStart: <ThrowOnError extends boolean = false>(options: Options<RestoreOnFirstStartData, ThrowOnError>) => RequestResult<RestoreOnFirstStartResponses, RestoreOnFirstStartErrors, ThrowOnError>;
705
+ /**
706
+ * List Tokens
707
+ */
708
+ export declare const listTokens: <ThrowOnError extends boolean = false>(options?: Options<ListTokensData, ThrowOnError>) => RequestResult<ListTokensResponses, unknown, ThrowOnError>;
709
+ /**
710
+ * Create Token
711
+ *
712
+ * A token acting as you, narrowed to its scopes (and owners).
713
+ */
714
+ export declare const createToken: <ThrowOnError extends boolean = false>(options: Options<CreateTokenData, ThrowOnError>) => RequestResult<CreateTokenResponses, CreateTokenErrors, ThrowOnError>;
715
+ /**
716
+ * Revoke Token
717
+ */
718
+ export declare const revokeToken: <ThrowOnError extends boolean = false>(options: Options<RevokeTokenData, ThrowOnError>) => RequestResult<RevokeTokenResponses, RevokeTokenErrors, ThrowOnError>;