@se-uulm/snowballr-grpc-client 0.0.0-stage → 0.2.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.
@@ -0,0 +1,3197 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
2
+ // @generated from protobuf file "main.proto" (package "snowballr", syntax proto3)
3
+ // tslint:disable
4
+ //
5
+ /// Main file of the SnowballR service. Contains all RPCs.
6
+ //
7
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
8
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
9
+ import { SnowballR } from "./main";
10
+ import type { Paper_PdfUpdate } from "./paper";
11
+ import type { Blob } from "./base";
12
+ import type { Paper_Update } from "./paper";
13
+ import type { Project_Paper_SearchQuery } from "./project";
14
+ import type { Paper } from "./paper";
15
+ import type { Review_Update } from "./review";
16
+ import type { Review_Create } from "./review";
17
+ import type { Review_List } from "./review";
18
+ import type { Review } from "./review";
19
+ import type { Project_Paper_Update } from "./project";
20
+ import type { Project_Paper_Add } from "./project";
21
+ import type { Project_Paper_Get } from "./project";
22
+ import type { Criterion_Update } from "./criterion";
23
+ import type { Criterion_Create } from "./criterion";
24
+ import type { Criterion_List } from "./criterion";
25
+ import type { Criterion } from "./criterion";
26
+ import type { Project_Information_DecisionStatistics } from "./project";
27
+ import type { Project_Information_DecisionStatistics_Get } from "./project";
28
+ import type { Project_Information } from "./project";
29
+ import type { Project_Information_Get } from "./project";
30
+ import type { ExportResponse } from "./export";
31
+ import type { ExportRequest } from "./export";
32
+ import type { AvailableExportFormatsResponse } from "./export";
33
+ import type { Project_Update } from "./project";
34
+ import type { Project } from "./project";
35
+ import type { Project_Create } from "./project";
36
+ import type { Project_List } from "./project";
37
+ import type { Project_Member_Update } from "./project";
38
+ import type { Project_Member_Remove } from "./project";
39
+ import type { Project_Member_List } from "./project";
40
+ import type { Project_Member_Accept } from "./project";
41
+ import type { Project_Member_Invite } from "./project";
42
+ import type { Project_InviteCandidatesRequest } from "./project";
43
+ import type { BoolValue } from "./base";
44
+ import type { Paper_List } from "./paper";
45
+ import type { Project_Paper } from "./project";
46
+ import type { Project_Paper_List } from "./project";
47
+ import type { UserSettings_Update } from "./user_settings";
48
+ import type { UserSettings } from "./user_settings";
49
+ import type { User_Update } from "./user";
50
+ import type { Email } from "./base";
51
+ import type { Id } from "./base";
52
+ import type { User } from "./user";
53
+ import type { User_List } from "./user";
54
+ import type { PasswordChangeRequest } from "./authentication";
55
+ import type { PasswordResetRequest } from "./authentication";
56
+ import type { RequestPasswordResetRequest } from "./authentication";
57
+ import type { AuthenticationStatusResponse } from "./authentication";
58
+ import type { LoginRequest } from "./authentication";
59
+ import type { VerifyEmailRequest } from "./authentication";
60
+ import type { RegisterRequest } from "./authentication";
61
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
62
+ import type { AvailableFetchers } from "./fetcher";
63
+ import type { Nothing } from "./base";
64
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
65
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
66
+ /**
67
+ * This service contains the complete set of API calls that the SnowballR web application uses to
68
+ * communicate with the backend.
69
+ *
70
+ * ## Overview
71
+ *
72
+ * SnowballR is a tool designed to assist with scientific research by organizing
73
+ * and managing structured literature reviews (SLRs). The application is split into
74
+ * a web frontend and a backend on a central server.
75
+ * The frontend is a web application that runs in the user's browser.
76
+ * The backend runs on a server and contains most, if not all, of the application logic.
77
+ * It tracks all data by accessing a database and makes requests to external resources like paper databases.
78
+ *
79
+ * ~~~mermaid
80
+ * architecture-beta
81
+ * group frontend(internet)[Frontend]
82
+ * service browser(internet)[Browser] in frontend
83
+ *
84
+ * group backend(server)[Backend]
85
+ * service server(server)[SnowballR Server] in backend
86
+ * service db(database)[Database] in backend
87
+ *
88
+ * group external(internet)[External Resources]
89
+ * service fetcher1(internet)[External Paper Database 1] in external
90
+ * service fetcher2(internet)[External Paper Database 2] in external
91
+ *
92
+ * junction j1 in external
93
+ * junction j2 in external
94
+ *
95
+ * browser:R --> L:server
96
+ *
97
+ * server:B --> T:db
98
+ * server:R -- L:j1
99
+ *
100
+ * j1:R -- L:j2
101
+ * j1:B --> T:fetcher1
102
+ * j2:B --> T:fetcher2
103
+ * ~~~
104
+ *
105
+ * ## Authentication
106
+ *
107
+ * A padlock icon in the top-right of a service method description indicates
108
+ * whether a call **requires** the user to be **authenticated**. This will
109
+ * happen automatically using an HTTP-only cookie set by the server during
110
+ * registration or login. If the authentication fails, an `UNAUTHENTICATED` error will
111
+ * be returned in all cases.
112
+ *
113
+ * ## Error Handling
114
+ *
115
+ * Furthermore, the server **may** respond with the `UNAVAILABLE` error
116
+ * code at any time if it is unable to process a request. It **may** also
117
+ * respond with the `INTERNAL` error code if some unknown server-side errors occur.
118
+ * If the [field mask](https://protobuf.dev/reference/java/api-docs/com/google/protobuf/FieldMask)
119
+ * is empty or contains an invalid format the server returns an `INVALID_ARGUMENT` error.
120
+ * This includes cases where the mask specifies fields that are not defined in the target object type.
121
+ * The error description provides additional details.
122
+ *
123
+ * Each error **should** come with a meaningful description, detailing the nature
124
+ * of the error that occurred.
125
+ *
126
+ * ## Update Semantics
127
+ *
128
+ * Updates are applied atomically. If one part of an update request cannot
129
+ * be fulfilled, the entire update fails and no changes are persisted.
130
+ * If the field mask specifies a field that is not allowed to be updated, the update request is rejected.
131
+ * In this case, the server responds with an `INVALID_ARGUMENT` error.
132
+ *
133
+ * ## Enums and Guarantees
134
+ *
135
+ * Each enum contains an `_UNSPECIFIED` variant to indicate that no meaningful value was set.
136
+ * If any other variant is present, the field is considered to be **specified**.
137
+ *
138
+ * The word **guaranteed** may only convey meaning in the context of this
139
+ * contract. Due to the nature of the underlying network communication, results
140
+ * can never really be **guaranteed**, so proper error handling is advised anyway. In the
141
+ * following context, **guaranteed** denotes a situation in which the client shall
142
+ * be able to safely make assumptions about a successfully received message.
143
+ *
144
+ * ## Entities and Relationships
145
+ *
146
+ * The following figure shows the relationships between the entities/concepts of the
147
+ * SnowballR application. It does not depict the actual database schema used by SnowballR's
148
+ * backend; rather, it provides a broader understanding.
149
+ *
150
+ * ~~~mermaid
151
+ * erDiagram
152
+ * direction LR
153
+ *
154
+ * Project 0+ -- 0+ User : "member of"
155
+ * Project 1 -- 1 ProjectSettings : has
156
+ * Project 1 -- 0+ ProjectPaper : contains
157
+ * Project 1 -- 0+ Criterion : contains
158
+ *
159
+ * ProjectSettings 0+ -- 1+ Fetcher : "fetches from"
160
+ *
161
+ * ProjectPaper 1 -- 0+ Review : has
162
+ * ProjectPaper 1 -- 1 Paper : "refers to"
163
+ *
164
+ * Review 0+ -- 1 User : by
165
+ * Review 0+ -- 0+ Criterion : "ticks off"
166
+ *
167
+ * User 1 -- 1 UserSettings : has
168
+ * User 0+ -- 0+ Paper : "on reading-list of"
169
+ * ~~~
170
+ *
171
+ * **Disclaimer:**
172
+ *
173
+ * Access control for these calls has not yet been fully worked out. Consequently,
174
+ * the required role for any call may change at any time.
175
+ *
176
+ *
177
+ * @generated from protobuf service snowballr.SnowballR
178
+ */
179
+ export interface ISnowballRClient {
180
+ /**
181
+ * Get all available fetchers from which a paper may be sourced by the backend.
182
+ * Each source is identified by a unique ID and is later used to specify
183
+ * which APIs will be used by a project to collect papers. The list is
184
+ * **guaranteed to be non-empty** but **may change** at any time.
185
+ *
186
+ * ## Errors
187
+ * | Error Code | Description |
188
+ * | :--- | :--- |
189
+ * | `UNAUTHENTICATED` | The user is not signed in. |
190
+ *
191
+ * @auth
192
+ *
193
+ * @generated from protobuf rpc: GetAvailableFetchers
194
+ */
195
+ getAvailableFetchers(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, AvailableFetchers>;
196
+ /**
197
+ * Create an account. The provided email address **must not already be registered**,
198
+ * and no field may be blank. If successful, login tokens are
199
+ * provided, which are used automatically for subsequent calls.
200
+ *
201
+ * The password string is **required** to
202
+ *
203
+ * - be at least **eight characters long**,
204
+ * - contain at least **two lower-case letters**,
205
+ * - contain at least **two upper-case letters**,
206
+ * - contain at least **two digits**,
207
+ * - and contain at least **two special characters**.
208
+ *
209
+ * ## Errors
210
+ * | Error Code | Description |
211
+ * | :--- | :--- |
212
+ * | `INVALID_ARGUMENT` | At least one input did not meet the requirements: The `email` must be a valid email address, the `password` must meet the previously stated criteria, and the `first_name` and `last_name` must not be left blank. |
213
+ * | `ALREADY_EXISTS` | An account with the provided email address is already registered. |
214
+ * | `INTERNAL` | The verification email could not be sent. |
215
+ *
216
+ * @generated from protobuf rpc: Register
217
+ */
218
+ register(input: RegisterRequest, options?: RpcOptions): UnaryCall<RegisterRequest, Nothing>;
219
+ /**
220
+ * After registering, a user receives a verification token via email.
221
+ * This call is then used to submit that token, confirming the ownership of the
222
+ * email address and activating the user account.
223
+ *
224
+ * ## Errors
225
+ * | Error Code | Description |
226
+ * | :--- | :--- |
227
+ * | `INVALID_ARGUMENT` | No token was provided. |
228
+ * | `NOT_FOUND` | The provided token is invalid, could not be found, or has expired. |
229
+ *
230
+ * @generated from protobuf rpc: VerifyEmail
231
+ */
232
+ verifyEmail(input: VerifyEmailRequest, options?: RpcOptions): UnaryCall<VerifyEmailRequest, Nothing>;
233
+ /**
234
+ * If the provided email address and password exactly match those of a user in the server's database and
235
+ * the user's email address has been verified, a new set of login tokens is
236
+ * provided to authenticate as that user. Old access and refresh tokens will remain valid.
237
+ * These credentials are handled automatically and do not require any further attention.
238
+ *
239
+ * ## Errors
240
+ * | Error Code | Description |
241
+ * | :--- | :--- |
242
+ * | `INVALID_ARGUMENT` | The email address is not a valid email address or no password was provided. |
243
+ * | `UNAUTHENTICATED` | The email address is not registered (anymore) or verified, or the password is incorrect. |
244
+ *
245
+ * @generated from protobuf rpc: Login
246
+ */
247
+ login(input: LoginRequest, options?: RpcOptions): UnaryCall<LoginRequest, Nothing>;
248
+ /**
249
+ * Revoke access through the currently used set of access and refresh tokens.
250
+ * Other token pairs may not be affected.
251
+ *
252
+ * ## Errors
253
+ * | Error Code | Description |
254
+ * | :--- | :--- |
255
+ * | `UNAUTHENTICATED` | The user is not signed in. |
256
+ *
257
+ * @auth
258
+ *
259
+ * @generated from protobuf rpc: Logout
260
+ */
261
+ logout(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Nothing>;
262
+ /**
263
+ * Acquire the client's authentication status. The result is **guaranteed to
264
+ * be specified**.
265
+ *
266
+ * ## Errors
267
+ * No additional errors may occur.
268
+ *
269
+ * @generated from protobuf rpc: GetAuthenticationStatus
270
+ */
271
+ getAuthenticationStatus(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, AuthenticationStatusResponse>;
272
+ /**
273
+ * Upon presentation of a valid refresh token, a new set of login tokens
274
+ * is issued, authenticating the owner of the token. This new pair is
275
+ * **guaranteed to contain valid credentials**. The refresh token **may
276
+ * change** too. These credentials are handled automatically and do not require any
277
+ * further attention.
278
+ *
279
+ * Use this call if the access token has expired, as it does not require the user to be authenticated using an access
280
+ * token. Instead, the validity of the accompanying refresh token — which is
281
+ * also set by [Register](#service-snowballr.SnowballR-Register) and [Login](#service-snowballr.SnowballR-Login) — is confirmed.
282
+ *
283
+ * ## Errors
284
+ * | Error Code | Description |
285
+ * | :--- | :--- |
286
+ * | `UNAUTHENTICATED` | The refresh token is invalid. |
287
+ *
288
+ * @auth
289
+ *
290
+ * @generated from protobuf rpc: RenewSession
291
+ */
292
+ renewSession(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Nothing>;
293
+ /**
294
+ * If the provided email address belongs to an active user, the server sends a
295
+ * challenge/token to that address. This token must then be sent
296
+ * alongside a new password
297
+ * (see [ResetPassword](#service-snowballr.SnowballR-ResetPassword)) in order
298
+ * to update a lost or forgotten password.
299
+ *
300
+ * ## Errors
301
+ * | Error Code | Description |
302
+ * | :--- | :--- |
303
+ * | `INVALID_ARGUMENT` | The email address is not a valid email address. If the email address is valid, but has not yet been registered, this error does not occur. |
304
+ * | `INTERNAL` | The verification email could not be sent. |
305
+ *
306
+ * @generated from protobuf rpc: RequestPasswordReset
307
+ */
308
+ requestPasswordReset(input: RequestPasswordResetRequest, options?: RpcOptions): UnaryCall<RequestPasswordResetRequest, Nothing>;
309
+ /**
310
+ * After requesting a password reset email using
311
+ * [RequestPasswordReset](#service-snowballr.SnowballR-RequestPasswordReset),
312
+ * this call may be used to actually set the new password. To verify the
313
+ * ownership of the account, the token sent via email must also be provided
314
+ * and valid. The new password must follow the same rules as during
315
+ * [registration](#service-snowballr.SnowballR-Register).
316
+ *
317
+ * ## Errors
318
+ * | Error Code | Description |
319
+ * | :--- | :--- |
320
+ * | `INVALID_ARGUMENT` | Either the provided token is invalid, or the new password does not meet the rules specified in [Register](#service-snowballr.SnowballR-Register). |
321
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
322
+ * | `UNAUTHENTICATED` | The provided token could not be found or has expired. |
323
+ *
324
+ * @generated from protobuf rpc: ResetPassword
325
+ */
326
+ resetPassword(input: PasswordResetRequest, options?: RpcOptions): UnaryCall<PasswordResetRequest, Nothing>;
327
+ /**
328
+ * Set a new password using the old password.
329
+ * The new password must follow the same rules as during
330
+ * [registration](#service-snowballr.SnowballR-Register). This serves no
331
+ * recovery purpose and is for user convenience only.
332
+ *
333
+ * ## Errors
334
+ * | Error Code | Description |
335
+ * | :--- | :--- |
336
+ * | `INVALID_ARGUMENT` | Either the provided old password is incorrect, or the new password does not meet the rules specified in [Register](#service-snowballr.SnowballR-Register). |
337
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
338
+ * | `UNAUTHENTICATED` | The user is not signed in. |
339
+ *
340
+ * @auth
341
+ *
342
+ * @generated from protobuf rpc: ChangePassword
343
+ */
344
+ changePassword(input: PasswordChangeRequest, options?: RpcOptions): UnaryCall<PasswordChangeRequest, Nothing>;
345
+ /**
346
+ * Get all registered users.
347
+ *
348
+ * ## Errors
349
+ * | Error Code | Description |
350
+ * | :--- | :--- |
351
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
352
+ * | `UNAUTHENTICATED` | The user is not signed in. |
353
+ *
354
+ * @auth
355
+ *
356
+ * @generated from protobuf rpc: GetAllUsers
357
+ */
358
+ getAllUsers(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, User_List>;
359
+ /**
360
+ * Get the user who is currently logged in by looking up the provided access
361
+ * token. **If the user is properly authenticated, this call is guaranteed to return a valid
362
+ * user.**
363
+ *
364
+ * ## Errors
365
+ * | Error Code | Description |
366
+ * | :--- | :--- |
367
+ * | `UNAUTHENTICATED` | The user is not signed in. |
368
+ *
369
+ * @auth
370
+ *
371
+ * @generated from protobuf rpc: GetCurrentUser
372
+ */
373
+ getCurrentUser(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, User>;
374
+ /**
375
+ * Get a user by their ID.
376
+ *
377
+ * ## Errors
378
+ * | Error Code | Description |
379
+ * | :--- | :--- |
380
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
381
+ * | `NOT_FOUND` | No user with the provided ID was found. |
382
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the same project as the requested user. |
383
+ * | `UNAUTHENTICATED` | The user is not signed in. |
384
+ *
385
+ * @auth
386
+ *
387
+ * @generated from protobuf rpc: GetUserById
388
+ */
389
+ getUserById(input: Id, options?: RpcOptions): UnaryCall<Id, User>;
390
+ /**
391
+ * Get the user with the specified email address.
392
+ *
393
+ * ## Errors
394
+ * | Error Code | Description |
395
+ * | :--- | :--- |
396
+ * | `INVALID_ARGUMENT` | The email address is not a valid email address. |
397
+ * | `NOT_FOUND` | No user with the provided email address was found. |
398
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the same project as the requested user. |
399
+ * | `UNAUTHENTICATED` | The user is not signed in. |
400
+ *
401
+ * @auth
402
+ *
403
+ * @generated from protobuf rpc: GetUserByEmail
404
+ */
405
+ getUserByEmail(input: Email, options?: RpcOptions): UnaryCall<Email, User>;
406
+ /**
407
+ * Update all attributes specified in the field mask for the user with the
408
+ * provided ID, except the `status` field. A server admin may update the `role` field using this call.
409
+ * The updated user is returned and **guaranteed to be specified**.
410
+ *
411
+ * ## Errors
412
+ * | Error Code | Description |
413
+ * | :--- | :--- |
414
+ * | `INVALID_ARGUMENT` | At least one (updated) user detail did not meet the requirements: The `id` must be a valid UUID, the `email` must be a valid email address, the `first_name` and `last_name` must not be left blank, and the `role` must be specified. |
415
+ * | `NOT_FOUND` | No user with the provided ID was found. |
416
+ * | `ALREADY_EXISTS` | Another user with the provided email address already exists. |
417
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the requested user themselves. |
418
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
419
+ * | `UNAUTHENTICATED` | The user is not signed in. |
420
+ *
421
+ * @auth
422
+ *
423
+ * @generated from protobuf rpc: UpdateUser
424
+ */
425
+ updateUser(input: User_Update, options?: RpcOptions): UnaryCall<User_Update, User>;
426
+ /**
427
+ * Prevent the user with the provided ID from logging in. They are not fully
428
+ * deleted from the database but are no longer considered an **active** user.
429
+ *
430
+ * ## Errors
431
+ * | Error Code | Description |
432
+ * | :--- | :--- |
433
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
434
+ * | `NOT_FOUND` | No user with the provided ID was found. |
435
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the requested user themselves. |
436
+ * | `FAILED_PRECONDITION` | The user to be deleted is a server admin or the last project admin in any non-deleted project. |
437
+ * | `UNAUTHENTICATED` | The user is not signed in. |
438
+ *
439
+ * @auth
440
+ *
441
+ * @generated from protobuf rpc: SoftDeleteUser
442
+ */
443
+ softDeleteUser(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
444
+ /**
445
+ * Allow a previously soft-deleted user to log in again.
446
+ * The calling user is **required to be an admin**.
447
+ *
448
+ * ## Errors
449
+ * | Error Code | Description |
450
+ * | :--- | :--- |
451
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
452
+ * | `NOT_FOUND` | No user with the provided ID was found. |
453
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
454
+ * | `FAILED_PRECONDITION` | The user to be restored is not deleted (i.e., not in state `USER_STATUS_DELETED`). |
455
+ * | `UNAUTHENTICATED` | The user is not signed in. |
456
+ *
457
+ * @auth
458
+ *
459
+ * @generated from protobuf rpc: SoftUndeleteUser
460
+ */
461
+ softUndeleteUser(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
462
+ /**
463
+ * Get the user-specific settings for the calling user. The user settings are returned and **guaranteed to be specified**.
464
+ *
465
+ * ## Errors
466
+ * | Error Code | Description |
467
+ * | :--- | :--- |
468
+ * | `NOT_FOUND` | No user settings were found for the calling user. |
469
+ * | `UNAUTHENTICATED` | The user is not signed in. |
470
+ *
471
+ * @auth
472
+ *
473
+ * @generated from protobuf rpc: GetUserSettings
474
+ */
475
+ getUserSettings(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, UserSettings>;
476
+ /**
477
+ * Update all attributes specified in the field mask for the user settings of the calling user.
478
+ * The updated user settings are returned and **guaranteed to be specified**.
479
+ *
480
+ * ## Errors
481
+ * | Error Code | Description |
482
+ * | :--- | :--- |
483
+ * | `INVALID_ARGUMENT` | At least one updated setting did not meet the requirements. |
484
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
485
+ * | `UNAUTHENTICATED` | The user is not signed in. |
486
+ *
487
+ * @auth
488
+ *
489
+ * @generated from protobuf rpc: UpdateUserSettings
490
+ */
491
+ updateUserSettings(input: UserSettings_Update, options?: RpcOptions): UnaryCall<UserSettings_Update, UserSettings>;
492
+ /**
493
+ * Get all project papers that the calling user can review. It is not
494
+ * guaranteed that the returned papers belong to the same project.
495
+ * The returned paper list **may be empty** if no papers can be reviewed.
496
+ *
497
+ * ## Errors
498
+ * | Error Code | Description |
499
+ * | :--- | :--- |
500
+ * | `UNAUTHENTICATED` | The user is not signed in. |
501
+ *
502
+ * @auth
503
+ *
504
+ * @generated from protobuf rpc: GetAllPapersToReview
505
+ */
506
+ getAllPapersToReview(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_Paper_List>;
507
+ /**
508
+ * Get all project papers from the project identified by its ID that
509
+ * the calling user can review.
510
+ * The returned paper list **may be empty** if no papers can be reviewed.
511
+ *
512
+ * ## Errors
513
+ * | Error Code | Description |
514
+ * | :--- | :--- |
515
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
516
+ * | `NOT_FOUND` | No project with the provided ID was found. |
517
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
518
+ * | `UNAUTHENTICATED` | The user is not signed in. |
519
+ *
520
+ * @auth
521
+ *
522
+ * @generated from protobuf rpc: GetPapersToReviewForProject
523
+ */
524
+ getPapersToReviewForProject(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper_List>;
525
+ /**
526
+ * Get the project paper with the succeeding local ID (`local_id`) of the project paper
527
+ * identified by the provided global ID (`id`). It is **guaranteed** that the
528
+ * returned paper is in the same project as the provided one.
529
+ *
530
+ * ## Errors
531
+ * | Error Code | Description |
532
+ * | :--- | :--- |
533
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
534
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
535
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
536
+ * | `FAILED_PRECONDITION` | There is no next project paper in the project. |
537
+ * | `UNAUTHENTICATED` | The user is not signed in. |
538
+ *
539
+ * @auth
540
+ *
541
+ * @generated from protobuf rpc: GetNextPaper
542
+ */
543
+ getNextPaper(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper>;
544
+ /**
545
+ * Get the next project paper that the calling user can review. Papers with
546
+ * lower local IDs are preferred. It is **guaranteed** that the returned paper
547
+ * is in the same project as the provided one.
548
+ *
549
+ * ## Errors
550
+ * | Error Code | Description |
551
+ * | :--- | :--- |
552
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
553
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
554
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
555
+ * | `FAILED_PRECONDITION` | There is no next project paper available to review in the project. |
556
+ * | `UNAUTHENTICATED` | The user is not signed in. |
557
+ *
558
+ * @auth
559
+ *
560
+ * @generated from protobuf rpc: GetNextPaperToReview
561
+ */
562
+ getNextPaperToReview(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper>;
563
+ /**
564
+ * Get the project paper with the previous local ID (`local_id`) of the project paper
565
+ * identified by the provided global ID (`id`). It is **guaranteed** that the
566
+ * returned paper is in the same project as the provided one.
567
+ *
568
+ * ## Errors
569
+ * | Error Code | Description |
570
+ * | :--- | :--- |
571
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
572
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
573
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
574
+ * | `FAILED_PRECONDITION` | There is no previous project paper in the project. |
575
+ * | `UNAUTHENTICATED` | The user is not signed in. |
576
+ *
577
+ * @auth
578
+ *
579
+ * @generated from protobuf rpc: GetPreviousPaper
580
+ */
581
+ getPreviousPaper(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper>;
582
+ /**
583
+ * Get the list of papers on the reading list of the calling user.
584
+ *
585
+ * ## Errors
586
+ * | Error Code | Description |
587
+ * | :--- | :--- |
588
+ * | `UNAUTHENTICATED` | The user is not signed in. |
589
+ *
590
+ * @auth
591
+ *
592
+ * @generated from protobuf rpc: GetReadingList
593
+ */
594
+ getReadingList(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Paper_List>;
595
+ /**
596
+ * Return whether the paper with the provided ID is on the calling
597
+ * user's reading list.
598
+ *
599
+ * ## Errors
600
+ * | Error Code | Description |
601
+ * | :--- | :--- |
602
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
603
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
604
+ * | `UNAUTHENTICATED` | The user is not signed in. |
605
+ *
606
+ * @auth
607
+ *
608
+ * @generated from protobuf rpc: IsPaperOnReadingList
609
+ */
610
+ isPaperOnReadingList(input: Id, options?: RpcOptions): UnaryCall<Id, BoolValue>;
611
+ /**
612
+ * Add the paper with the provided ID to the calling user's reading list. If
613
+ * the paper is already on the reading list, nothing will be changed
614
+ * and no error will be returned.
615
+ *
616
+ * ## Errors
617
+ * | Error Code | Description |
618
+ * | :--- | :--- |
619
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
620
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
621
+ * | `UNAUTHENTICATED` | The user is not signed in. |
622
+ *
623
+ * @auth
624
+ *
625
+ * @generated from protobuf rpc: AddPaperToReadingList
626
+ */
627
+ addPaperToReadingList(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
628
+ /**
629
+ * Remove the paper with the provided ID from the calling user's reading
630
+ * list.
631
+ *
632
+ * ## Errors
633
+ * | Error Code | Description |
634
+ * | :--- | :--- |
635
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
636
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
637
+ * | `UNAUTHENTICATED` | The user is not signed in. |
638
+ *
639
+ * @auth
640
+ *
641
+ * @generated from protobuf rpc: RemovePaperFromReadingList
642
+ */
643
+ removePaperFromReadingList(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
644
+ /**
645
+ * Get a list of users that match the search query and can be invited.
646
+ * If the query is too short or no users match, an empty list is returned.
647
+ * If a project is specified, i.e., a project ID is given, all current members
648
+ * of that project are excluded from the candidate list. In case no project with the given ID exists,
649
+ * no project members are filtered out from the candidate list. The calling user is always excluded
650
+ * from the candidate list.
651
+ *
652
+ * ## Errors
653
+ * | Error Code | Description |
654
+ * | :--- | :--- |
655
+ * | `UNAUTHENTICATED` | The user is not signed in. |
656
+ *
657
+ * @auth
658
+ *
659
+ * @generated from protobuf rpc: GetInviteCandidates
660
+ */
661
+ getInviteCandidates(input: Project_InviteCandidatesRequest, options?: RpcOptions): UnaryCall<Project_InviteCandidatesRequest, User_List>;
662
+ /**
663
+ * Invite a user to a project. If the user is already a project member or invitee, nothing happens.
664
+ * The provided project must be active, meaning it is neither deleted nor archived.
665
+ * An invitation email is sent to the specified email address.
666
+ * The recipient may need to register first and then accept the invitation.
667
+ * The calling user is **required to be a project admin**.
668
+ *
669
+ * ## Errors
670
+ * | Error Code | Description |
671
+ * | :--- | :--- |
672
+ * | `INVALID_ARGUMENT` | The email address is not a valid email address, or the project ID is not a valid UUID. |
673
+ * | `NOT_FOUND` | No project with the provided ID was found. |
674
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
675
+ * | `FAILED_PRECONDITION` | The project is not active (i.e., archived or deleted). |
676
+ * | `INTERNAL` | The invitation email could not be sent. |
677
+ * | `UNAUTHENTICATED` | The user is not signed in. |
678
+ *
679
+ * @auth
680
+ *
681
+ * @generated from protobuf rpc: InviteUserToProject
682
+ */
683
+ inviteUserToProject(input: Project_Member_Invite, options?: RpcOptions): UnaryCall<Project_Member_Invite, Nothing>;
684
+ /**
685
+ * Accept a project invitation. After inviting a user to a project, the invited user
686
+ * receives an email containing the link to accept the invitation. This call is used to
687
+ * accept that invitation.
688
+ *
689
+ * ## Errors
690
+ * | Error Code | Description |
691
+ * | :--- | :--- |
692
+ * | `INVALID_ARGUMENT` | No token was provided. |
693
+ * | `NOT_FOUND` | The provided token is invalid, could not be found, or has expired. |
694
+ * | `FAILED_PRECONDITION` | The user is not registered or not active (i.e., not in state `USER_STATUS_ACTIVE`). |
695
+ *
696
+ * @generated from protobuf rpc: AcceptProjectInvitation
697
+ */
698
+ acceptProjectInvitation(input: Project_Member_Accept, options?: RpcOptions): UnaryCall<Project_Member_Accept, Nothing>;
699
+ /**
700
+ * Get a list of all users with a pending invitation to the specified project.
701
+ * If the `id` field of the returned user is specified, it is **guaranteed** that the user exists.
702
+ * If the field is blank, the user was invited by email and has not yet registered.
703
+ *
704
+ * ## Errors
705
+ * | Error Code | Description |
706
+ * | :--- | :--- |
707
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
708
+ * | `NOT_FOUND` | No project with the provided ID was found. |
709
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
710
+ * | `UNAUTHENTICATED` | The user is not signed in. |
711
+ *
712
+ * @auth
713
+ *
714
+ * @generated from protobuf rpc: GetPendingInvitationsForProject
715
+ */
716
+ getPendingInvitationsForProject(input: Id, options?: RpcOptions): UnaryCall<Id, User_List>;
717
+ /**
718
+ * Get a list of all members of the specified project. The calling user is
719
+ * included. Pending invitations are excluded.
720
+ *
721
+ * ## Errors
722
+ * | Error Code | Description |
723
+ * | :--- | :--- |
724
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
725
+ * | `NOT_FOUND` | No project with the provided ID was found. |
726
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
727
+ * | `UNAUTHENTICATED` | The user is not signed in. |
728
+ *
729
+ * @auth
730
+ *
731
+ * @generated from protobuf rpc: GetProjectMembers
732
+ */
733
+ getProjectMembers(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Member_List>;
734
+ /**
735
+ * Remove the specified user or invitee from the specified project. If the user is not part
736
+ * of the project, nothing happens. The calling user is **required to be a
737
+ * project admin**. If there is only one project admin, then the user cannot be removed from the project.
738
+ *
739
+ * ## Errors
740
+ * | Error Code | Description |
741
+ * | :--- | :--- |
742
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the user's email address is not a valid email address. |
743
+ * | `NOT_FOUND` | No project with the provided project ID or user with the provided user ID was found. |
744
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project, nor the project member themselves. |
745
+ * | `FAILED_PRECONDITION` | The project member to be removed is the last project admin in the project. |
746
+ * | `UNAUTHENTICATED` | The user is not signed in. |
747
+ *
748
+ * @auth
749
+ *
750
+ * @generated from protobuf rpc: RemoveProjectMember
751
+ */
752
+ removeProjectMember(input: Project_Member_Remove, options?: RpcOptions): UnaryCall<Project_Member_Remove, Nothing>;
753
+ /**
754
+ * Change the role of the user with the provided ID within the specified project.
755
+ * The new role **must be specified**.
756
+ * The calling user is **required to be a project admin**.
757
+ *
758
+ * ## Errors
759
+ * | Error Code | Description |
760
+ * | :--- | :--- |
761
+ * | `INVALID_ARGUMENT` | The project ID or the user ID is not a valid UUID, or the provided new role is not specified. |
762
+ * | `NOT_FOUND` | No project with the provided ID or user with the provided ID was found. |
763
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
764
+ * | `FAILED_PRECONDITION` | The user to be updated is not a member of the specified project or is the last project admin and should be demoted to a project member. |
765
+ * | `UNAUTHENTICATED` | The user is not signed in. |
766
+ *
767
+ * @auth
768
+ *
769
+ * @generated from protobuf rpc: UpdateProjectMemberRole
770
+ */
771
+ updateProjectMemberRole(input: Project_Member_Update, options?: RpcOptions): UnaryCall<Project_Member_Update, Nothing>;
772
+ /**
773
+ * Get a list of all active projects.
774
+ *
775
+ * ## Errors
776
+ * | Error Code | Description |
777
+ * | :--- | :--- |
778
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
779
+ * | `UNAUTHENTICATED` | The user is not signed in. |
780
+ *
781
+ * @auth
782
+ *
783
+ * @generated from protobuf rpc: GetAllProjects
784
+ */
785
+ getAllProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List>;
786
+ /**
787
+ * Get a list of all projects that are marked as deleted.
788
+ *
789
+ * ## Errors
790
+ * | Error Code | Description |
791
+ * | :--- | :--- |
792
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
793
+ * | `UNAUTHENTICATED` | The user is not signed in. |
794
+ *
795
+ * @auth
796
+ *
797
+ * @generated from protobuf rpc: GetAllDeletedProjects
798
+ */
799
+ getAllDeletedProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List>;
800
+ /**
801
+ * Get a list of all projects the specified user is a member of and that are
802
+ * marked as deleted.
803
+ *
804
+ * ## Errors
805
+ * | Error Code | Description |
806
+ * | :--- | :--- |
807
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
808
+ * | `NOT_FOUND` | No user with the provided ID was found. |
809
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the calling user. |
810
+ * | `UNAUTHENTICATED` | The user is not signed in. |
811
+ *
812
+ * @auth
813
+ *
814
+ * @generated from protobuf rpc: GetAllDeletedProjectsForUser
815
+ */
816
+ getAllDeletedProjectsForUser(input: Id, options?: RpcOptions): UnaryCall<Id, Project_List>;
817
+ /**
818
+ * Get a list of all projects that are marked as archived.
819
+ *
820
+ * ## Errors
821
+ * | Error Code | Description |
822
+ * | :--- | :--- |
823
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
824
+ * | `UNAUTHENTICATED` | The user is not signed in. |
825
+ *
826
+ * @auth
827
+ *
828
+ * @generated from protobuf rpc: GetAllArchivedProjects
829
+ */
830
+ getAllArchivedProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List>;
831
+ /**
832
+ * Get a list of all active projects the specified user is a member of.
833
+ * Projects that the user is invited to are excluded.
834
+ *
835
+ * ## Errors
836
+ * | Error Code | Description |
837
+ * | :--- | :--- |
838
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
839
+ * | `NOT_FOUND` | No user with the provided ID was found. |
840
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the calling user. |
841
+ * | `UNAUTHENTICATED` | The user is not signed in. |
842
+ *
843
+ * @auth
844
+ *
845
+ * @generated from protobuf rpc: GetAllProjectsForUser
846
+ */
847
+ getAllProjectsForUser(input: Id, options?: RpcOptions): UnaryCall<Id, Project_List>;
848
+ /**
849
+ * Get a list of all projects the specified user is a member of and that are
850
+ * marked as archived.
851
+ *
852
+ * ## Errors
853
+ * | Error Code | Description |
854
+ * | :--- | :--- |
855
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
856
+ * | `NOT_FOUND` | No user with the provided ID was found. |
857
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the calling user. |
858
+ * | `UNAUTHENTICATED` | The user is not signed in. |
859
+ *
860
+ * @auth
861
+ *
862
+ * @generated from protobuf rpc: GetAllArchivedProjectsForUser
863
+ */
864
+ getAllArchivedProjectsForUser(input: Id, options?: RpcOptions): UnaryCall<Id, Project_List>;
865
+ /**
866
+ * Create a new project. All fields **must be specified** and **non-blank**.
867
+ * The calling user is automatically a member of that project with the
868
+ * **project admin** role (`MEMBER_ROLE_ADMIN`).
869
+ * The project is created with the initial settings defined in the
870
+ * [user settings](#service-snowballr.SnowballR-GetUserSettings) of the calling user.
871
+ * If the project was successfully created, it is returned and **guaranteed to be specified**.
872
+ *
873
+ * ## Errors
874
+ * | Error Code | Description |
875
+ * | :--- | :--- |
876
+ * | `INVALID_ARGUMENT` | The provided project name was blank. |
877
+ * | `NOT_FOUND` | No user settings were found for the calling user. |
878
+ * | `UNAUTHENTICATED` | The user is not signed in. |
879
+ *
880
+ * @auth
881
+ *
882
+ * @generated from protobuf rpc: CreateProject
883
+ */
884
+ createProject(input: Project_Create, options?: RpcOptions): UnaryCall<Project_Create, Project>;
885
+ /**
886
+ * Get a project by its ID.
887
+ *
888
+ * ## Errors
889
+ * | Error Code | Description |
890
+ * | :--- | :--- |
891
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
892
+ * | `NOT_FOUND` | No project with the provided ID was found. |
893
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
894
+ * | `UNAUTHENTICATED` | The user is not signed in. |
895
+ *
896
+ * @auth
897
+ *
898
+ * @generated from protobuf rpc: GetProjectById
899
+ */
900
+ getProjectById(input: Id, options?: RpcOptions): UnaryCall<Id, Project>;
901
+ /**
902
+ * Update all attributes specified in the field mask for the project with the provided ID,
903
+ * except the fields `current_stage` and `max_stage`. The updated project
904
+ * is returned and **guaranteed to be specified**. The calling user is
905
+ * **required to be a project admin**.
906
+ *
907
+ * The following rules apply:
908
+ *
909
+ * - If `status` = `PROJECT_STATUS_DELETED`: No updates are allowed.
910
+ * - If `status` = `PROJECT_STATUS_ARCHIVED`: Only update of the `status` field is allowed.
911
+ * - If `status` = `PROJECT_STATUS_ACTIVE`: All non-immutable fields may be updated.
912
+ * - If `status` = `PROJECT_STATUS_ACTIVE_LOCKED`: All non-immutable fields, except the slr (project) settings, may be updated.
913
+ * - The value `PROJECT_STATUS_DELETED` is not allowed when updating a project, as the [SoftDeleteProject](#service-snowballr.SnowballR-SoftDeleteProject) call must be used instead.
914
+ *
915
+ * >**Note:** If the project is locked and the request sets `status` to `PROJECT_STATUS_ACTIVE`, no error is returned and the server keeps the state as `PROJECT_STATUS_ACTIVE_LOCKED`.
916
+ * Similarly, if the project is active and the request sets `status` to `PROJECT_STATUS_ACTIVE_LOCKED`, no error is returned and the server keeps the state as `PROJECT_STATUS_ACTIVE`.
917
+ *
918
+ * ## Errors
919
+ * | Error Code | Description |
920
+ * | :--- | :--- |
921
+ * | `INVALID_ARGUMENT` | At least one (updated) project detail did not meet the requirements: The `id` must be a valid UUID, the `name` must not be left blank, the `status` must be specified and the project settings must be valid. The `status` needs to follow the rules outlined above. |
922
+ * | `NOT_FOUND` | No project with the provided ID was found. |
923
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
924
+ * | `FAILED_PRECONDITION` | The project is not in the appropriate state for the requested change. |
925
+ * | `UNAUTHENTICATED` | The user is not signed in. |
926
+ *
927
+ * @auth
928
+ *
929
+ * @generated from protobuf rpc: UpdateProject
930
+ */
931
+ updateProject(input: Project_Update, options?: RpcOptions): UnaryCall<Project_Update, Project>;
932
+ /**
933
+ * Get all available export formats that the backend supports.
934
+ * Each export format is identified by a unique string and can be used to specify the format
935
+ * for the [ExportProject](#service-snowballr.SnowballR-ExportProject) call. The list is
936
+ * **guaranteed to be non-empty** but **may change** at any time.
937
+ *
938
+ * @generated from protobuf rpc: GetAvailableExportFormats
939
+ */
940
+ getAvailableExportFormats(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, AvailableExportFormatsResponse>;
941
+ /**
942
+ * Export the specified project in the specified format. A blob and a file name is returned.
943
+ * This includes everything necessary for the project to be reimported and remain indistinguishable from the original.
944
+ *
945
+ * The filename includes the file extension so that the client doesn't have to figure out the file format. This could be
946
+ * e.g. "demo_project-2025-11-10-00-25-31.json".
947
+ *
948
+ * ## Errors
949
+ * | Error Code | Description |
950
+ * | :--- | :--- |
951
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the format is not a valid export format. |
952
+ * | `NOT_FOUND` | No project with the provided ID was found. |
953
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
954
+ * | `UNAUTHENTICATED` | The user is not signed in. |
955
+ *
956
+ * @auth
957
+ *
958
+ * @generated from protobuf rpc: ExportProject
959
+ */
960
+ exportProject(input: ExportRequest, options?: RpcOptions): UnaryCall<ExportRequest, ExportResponse>;
961
+ /**
962
+ * Mark the specified project as deleted. It is not permanently removed from the database and can be restored later.
963
+ * The calling user is **required to be a project admin**.
964
+ *
965
+ * ## Errors
966
+ * | Error Code | Description |
967
+ * | :--- | :--- |
968
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
969
+ * | `NOT_FOUND` | No project with the provided ID was found. |
970
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
971
+ * | `UNAUTHENTICATED` | The user is not signed in. |
972
+ *
973
+ * @auth
974
+ *
975
+ * @generated from protobuf rpc: SoftDeleteProject
976
+ */
977
+ softDeleteProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
978
+ /**
979
+ * Restore a previously deleted project to the **active** state.
980
+ * The calling user is **required to be a project admin**.
981
+ *
982
+ * ## Errors
983
+ * | Error Code | Description |
984
+ * | :--- | :--- |
985
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
986
+ * | `NOT_FOUND` | No project with the provided ID was found. |
987
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
988
+ * | `FAILED_PRECONDITION` | The project to be restored is not deleted (i.e., not in state `PROJECT_STATUS_DELETED`). |
989
+ * | `UNAUTHENTICATED` | The user is not signed in. |
990
+ *
991
+ * @auth
992
+ *
993
+ * @generated from protobuf rpc: SoftUndeleteProject
994
+ */
995
+ softUndeleteProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
996
+ /**
997
+ * Get information about the specified project.
998
+ * The response only includes attributes specified in the field mask or all attributes when the field mask is not
999
+ * specified or has an empty path list.
1000
+ *
1001
+ * ## Errors
1002
+ * | Error Code | Description |
1003
+ * | :--- | :--- |
1004
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
1005
+ * | `NOT_FOUND` | No project with the provided ID was found. |
1006
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
1007
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1008
+ *
1009
+ * @auth
1010
+ *
1011
+ * @generated from protobuf rpc: GetProjectInformation
1012
+ */
1013
+ getProjectInformation(input: Project_Information_Get, options?: RpcOptions): UnaryCall<Project_Information_Get, Project_Information>;
1014
+ /**
1015
+ * Get the distribution of paper decisions within a project's stage, meaning
1016
+ * it returns the number of papers for each possible `PaperDecision` in the
1017
+ * specified stage.
1018
+ *
1019
+ * ## Errors
1020
+ * | Error Code | Description |
1021
+ * | :--- | :--- |
1022
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
1023
+ * | `NOT_FOUND` | No project with the provided ID was found or the specified stage does not exist. |
1024
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
1025
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1026
+ *
1027
+ * @auth
1028
+ *
1029
+ * @generated from protobuf rpc: GetDecisionStatisticsForStage
1030
+ */
1031
+ getDecisionStatisticsForStage(input: Project_Information_DecisionStatistics_Get, options?: RpcOptions): UnaryCall<Project_Information_DecisionStatistics_Get, Project_Information_DecisionStatistics>;
1032
+ /**
1033
+ * Get a criterion by its ID.
1034
+ *
1035
+ * ## Errors
1036
+ * | Error Code | Description |
1037
+ * | :--- | :--- |
1038
+ * | `INVALID_ARGUMENT` | The criterion ID is not a valid UUID. |
1039
+ * | `NOT_FOUND` | No criterion with the provided ID was found. |
1040
+ * | `PERMISSION_DENIED` | If the criterion is a user-criterion, the calling user is not the original creator of the criterion. If the criterion is a project-criterion, the user is not a member of the project the criterion belongs to. |
1041
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1042
+ *
1043
+ * @auth
1044
+ *
1045
+ * @generated from protobuf rpc: GetCriterionById
1046
+ */
1047
+ getCriterionById(input: Id, options?: RpcOptions): UnaryCall<Id, Criterion>;
1048
+ /**
1049
+ * Get all criteria associated with a given project.
1050
+ *
1051
+ * ## Errors
1052
+ * | Error Code | Description |
1053
+ * | :--- | :--- |
1054
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
1055
+ * | `NOT_FOUND` | No project with the provided ID was found. |
1056
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
1057
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1058
+ *
1059
+ * @auth
1060
+ *
1061
+ * @generated from protobuf rpc: GetAllCriteriaForProject
1062
+ */
1063
+ getAllCriteriaForProject(input: Id, options?: RpcOptions): UnaryCall<Id, Criterion_List>;
1064
+ /**
1065
+ * Create a new criterion. All fields **must be specified** and
1066
+ * **non-blank**. If the criterion is successfully created, it is returned and **guaranteed to be specified**.
1067
+ *
1068
+ * A user-criterion is created by leaving the `project_id` empty. For a project-criterion,
1069
+ * this field must be set and refer to a valid project in the **active** state.
1070
+ * When creating a project-criterion, the calling user is **required to be a project admin**.
1071
+ *
1072
+ * ## Errors
1073
+ * | Error Code | Description |
1074
+ * | :--- | :--- |
1075
+ * | `INVALID_ARGUMENT` | At least one input did not meet the requirements: All fields (except `project_id`) must not be blank and if the `project_id` is given, it must be a valid UUID. |
1076
+ * | `NOT_FOUND` | A project ID is given but does not refer to an existing project. |
1077
+ * | `PERMISSION_DENIED` | A project ID is given but the calling user is neither a server admin nor a project admin of the project the criterion should belong to. |
1078
+ * | `FAILED_PRECONDITION` | A project ID is given but does not refer to an active project (i.e., it is archived or deleted). |
1079
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1080
+ *
1081
+ * @auth
1082
+ *
1083
+ * @generated from protobuf rpc: CreateCriterion
1084
+ */
1085
+ createCriterion(input: Criterion_Create, options?: RpcOptions): UnaryCall<Criterion_Create, Criterion>;
1086
+ /**
1087
+ * Update all attributes specified in the field mask for the criterion with the given ID.
1088
+ * The updated criterion is returned and **guaranteed to be specified**.
1089
+ * If the updated criterion is a user-criterion, the calling user
1090
+ * is **required to be the creator of the criterion**. If it is a
1091
+ * project-criterion, the calling user is **required to be a project admin**.
1092
+ *
1093
+ * ## Errors
1094
+ * | Error Code | Description |
1095
+ * | :--- | :--- |
1096
+ * | `INVALID_ARGUMENT` | At least one (updated) criterion detail did not meet the requirements: All fields (except `project_id`) must not be blank and if the `project_id` is given, it must be a valid UUID. |
1097
+ * | `NOT_FOUND` | No criterion with the provided ID was found or a project ID is given but does not refer to an existing project. |
1098
+ * | `PERMISSION_DENIED` | If the criterion is a user-criterion, the calling user is not the original creator of the criterion. If the criterion is a project-criterion, the calling user is neither a server admin nor a project admin of the project the criterion belongs to. |
1099
+ * | `FAILED_PRECONDITION` | A project ID is given but does not refer to an active project (i.e., it is archived or deleted). |
1100
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1101
+ *
1102
+ * @auth
1103
+ *
1104
+ * @generated from protobuf rpc: UpdateCriterion
1105
+ */
1106
+ updateCriterion(input: Criterion_Update, options?: RpcOptions): UnaryCall<Criterion_Update, Criterion>;
1107
+ /**
1108
+ * Permanently delete the specified criterion. All references to it will also
1109
+ * be removed. **This cannot be undone**.
1110
+ * If the deleted criterion is a user-criterion, the calling user
1111
+ * is **required to be the creator of the criterion**. If it is a
1112
+ * project-criterion, the calling user is **required to be a project admin**.
1113
+ *
1114
+ * ## Errors
1115
+ * | Error Code | Description |
1116
+ * | :--- | :--- |
1117
+ * | `INVALID_ARGUMENT` | If the criterion is a project-criterion, the project ID is not a valid UUID. |
1118
+ * | `NOT_FOUND` | No criterion with the provided ID was found. |
1119
+ * | `PERMISSION_DENIED` | If the criterion is a user-criterion, the calling user is not the original creator of the criterion. If the criterion is a project-criterion, the calling user is neither a server admin nor a project admin of the project the criterion belongs to. |
1120
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1121
+ *
1122
+ * @auth
1123
+ *
1124
+ * @generated from protobuf rpc: DeleteCriterion
1125
+ */
1126
+ deleteCriterion(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
1127
+ /**
1128
+ * Get a project paper by its ID.
1129
+ *
1130
+ * ## Errors
1131
+ * | Error Code | Description |
1132
+ * | :--- | :--- |
1133
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
1134
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
1135
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
1136
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1137
+ *
1138
+ * @auth
1139
+ *
1140
+ * @generated from protobuf rpc: GetProjectPaperById
1141
+ */
1142
+ getProjectPaperById(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper>;
1143
+ /**
1144
+ * Get a project paper using the project ID and the relative ID (`local_id`) within that
1145
+ * project. The relative ID is only **unique within its project**, not globally.
1146
+ * Prefer [GetProjectPaperById](#service-snowballr.SnowballR-GetProjectPaperById) wherever possible.
1147
+ *
1148
+ * ## Errors
1149
+ * | Error Code | Description |
1150
+ * | :--- | :--- |
1151
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the relative ID is not a non-negative Long number. |
1152
+ * | `NOT_FOUND` | No project paper with the provided relative ID was found. Either the project does not exist or the relative ID was not found within the project. |
1153
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
1154
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1155
+ *
1156
+ * @auth
1157
+ *
1158
+ * @generated from protobuf rpc: GetProjectPaperByRelativeId
1159
+ */
1160
+ getProjectPaperByRelativeId(input: Project_Paper_Get, options?: RpcOptions): UnaryCall<Project_Paper_Get, Project_Paper>;
1161
+ /**
1162
+ * Get all project papers associated with the given project.
1163
+ *
1164
+ * ## Errors
1165
+ * | Error Code | Description |
1166
+ * | :--- | :--- |
1167
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
1168
+ * | `NOT_FOUND` | No project with the provided ID was found. |
1169
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
1170
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1171
+ *
1172
+ * @auth
1173
+ *
1174
+ * @generated from protobuf rpc: GetAllProjectPapersForProject
1175
+ */
1176
+ getAllProjectPapersForProject(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper_List>;
1177
+ /**
1178
+ * Add the provided paper to the given project at the specified stage.
1179
+ * The stage must be non-negative and less than or equal to the project's `max_stage`.
1180
+ * The calling user is **required to be a project admin**.
1181
+ *
1182
+ * ## Errors
1183
+ * | Error Code | Description |
1184
+ * | :--- | :--- |
1185
+ * | `INVALID_ARGUMENT` | The project ID or paper ID is not a valid UUID, or the provided stage either is not a valid number or does not exist in the project, i.e., the stage was less than zero or greater than `max_stage`. |
1186
+ * | `NOT_FOUND` | No project with the provided project ID or paper with the provided paper ID was found. |
1187
+ * | `ALREADY_EXISTS` | The provided paper already exists within the project. |
1188
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
1189
+ * | `FAILED_PRECONDITION` | The project is not active (i.e., archived or deleted). |
1190
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1191
+ *
1192
+ * @auth
1193
+ *
1194
+ * @generated from protobuf rpc: AddPaperToProject
1195
+ */
1196
+ addPaperToProject(input: Project_Paper_Add, options?: RpcOptions): UnaryCall<Project_Paper_Add, Project_Paper>;
1197
+ /**
1198
+ * Update all attributes specified in the field mask for the project paper with the provided ID,
1199
+ * except the fields `local_id`, `decision`, `stage`, and `reviews`. Furthermore, the underlying paper
1200
+ * cannot be modified; use the [UpdatePaper](#service-snowballr.SnowballR-UpdatePaper) call for this. The updated
1201
+ * project paper is returned and **guaranteed to be specified**.
1202
+ * The calling user is **required to be a project admin**.
1203
+ *
1204
+ * ## Errors
1205
+ * | Error Code | Description |
1206
+ * | :--- | :--- |
1207
+ * | `INVALID_ARGUMENT` | The project paper ID or paper ID is not a valid UUID. |
1208
+ * | `NOT_FOUND` | No project paper with the provided ID or paper with the provided ID was found. |
1209
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project the project paper belongs to. |
1210
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1211
+ *
1212
+ * @auth
1213
+ *
1214
+ * @generated from protobuf rpc: UpdateProjectPaper
1215
+ */
1216
+ updateProjectPaper(input: Project_Paper_Update, options?: RpcOptions): UnaryCall<Project_Paper_Update, Project_Paper>;
1217
+ /**
1218
+ * Permanently remove the specified project paper from the project. All
1219
+ * references to this project paper will also be deleted. **This cannot be
1220
+ * undone**.
1221
+ * The calling user is **required to be a project admin**.
1222
+ *
1223
+ * ## Errors
1224
+ * | Error Code | Description |
1225
+ * | :--- | :--- |
1226
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
1227
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
1228
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project the project paper belongs to. |
1229
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1230
+ *
1231
+ * @auth
1232
+ *
1233
+ * @generated from protobuf rpc: RemovePaperFromProject
1234
+ */
1235
+ removePaperFromProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
1236
+ /**
1237
+ * Get a review by its ID.
1238
+ *
1239
+ * ## Errors
1240
+ * | Error Code | Description |
1241
+ * | :--- | :--- |
1242
+ * | `INVALID_ARGUMENT` | The review ID is not a valid UUID. |
1243
+ * | `NOT_FOUND` | No review with the provided ID was found. |
1244
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the review belongs to. |
1245
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1246
+ *
1247
+ * @auth
1248
+ *
1249
+ * @generated from protobuf rpc: GetReviewById
1250
+ */
1251
+ getReviewById(input: Id, options?: RpcOptions): UnaryCall<Id, Review>;
1252
+ /**
1253
+ * Get all reviews for the specific project paper.
1254
+ *
1255
+ * ## Errors
1256
+ * | Error Code | Description |
1257
+ * | :--- | :--- |
1258
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
1259
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
1260
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
1261
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1262
+ *
1263
+ * @auth
1264
+ *
1265
+ * @generated from protobuf rpc: GetAllReviewsForProjectPaper
1266
+ */
1267
+ getAllReviewsForProjectPaper(input: Id, options?: RpcOptions): UnaryCall<Id, Review_List>;
1268
+ /**
1269
+ * Create a new review for the specific project paper. All fields **must be
1270
+ * specified** and **non-blank**. The field `selected_criteria_ids` **may be empty**. The
1271
+ * calling user must not currently have another review for this project paper.
1272
+ * The paper must also be currently `UNREVIEWED` or `IN_REVIEW`, i.e., not finally decided. The user also
1273
+ * has to be a member of the same project the project paper belongs to. If the review is successfully created,
1274
+ * it is returned and **guaranteed to be specified**.
1275
+ *
1276
+ * ## Errors
1277
+ * | Error Code | Description |
1278
+ * | :--- | :--- |
1279
+ * | `INVALID_ARGUMENT` | At least one input did not meet the requirements: The project paper ID must be a valid UUID, the decision must be specified, and if given, the selected criteria IDs must be a list of valid UUIDs. |
1280
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
1281
+ * | `ALREADY_EXISTS` | The user has already created a review for the specified project paper. |
1282
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
1283
+ * | `FAILED_PRECONDITION` | The project paper is not in the `PAPER_DECISION_UNREVIEWED` or `PAPER_DECISION_IN_REVIEW` state, or the project is not active (i.e., it is archived or deleted). |
1284
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1285
+ *
1286
+ * @auth
1287
+ *
1288
+ * @generated from protobuf rpc: CreateReview
1289
+ */
1290
+ createReview(input: Review_Create, options?: RpcOptions): UnaryCall<Review_Create, Review>;
1291
+ /**
1292
+ * Update all attributes specified in the field mask for the review with the given ID, except the `user_id` field.
1293
+ * The updated review is returned and **guaranteed to be specified**. Only the
1294
+ * owner of a review is allowed to update a review and must be a member of the project the review is in.
1295
+ * A user is the owner of a review if the review's `user_id` matches the user's `id`.
1296
+ *
1297
+ * ## Errors
1298
+ * | Error Code | Description |
1299
+ * | :--- | :--- |
1300
+ * | `INVALID_ARGUMENT` | At least one (updated) review detail did not meet the requirements: The review ID must be a valid UUID, the decision must be specified, and if given, the selected criteria IDs must be a list of valid UUIDs. |
1301
+ * | `NOT_FOUND` | No review with the provided ID was found. |
1302
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin, the owner of the review, nor in the same project as the review. |
1303
+ * | `FAILED_PRECONDITION` | The project paper is in a state in which no further modifications to the review are allowed, or the project is not active (i.e., it is archived or deleted). |
1304
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1305
+ *
1306
+ * @auth
1307
+ *
1308
+ * @generated from protobuf rpc: UpdateReview
1309
+ */
1310
+ updateReview(input: Review_Update, options?: RpcOptions): UnaryCall<Review_Update, Review>;
1311
+ /**
1312
+ * Permanently remove the specified review from the project paper. **This
1313
+ * cannot be undone**. Only the owner of a review is allowed to delete a
1314
+ * review. The owner of the review must be a member of the project the
1315
+ * review is in, in order to remove it. A user is the owner of a review if the
1316
+ * review's `user_id` matches the user's `id`.
1317
+ *
1318
+ * ## Errors
1319
+ * | Error Code | Description |
1320
+ * | :--- | :--- |
1321
+ * | `INVALID_ARGUMENT` | The review ID is not a valid UUID. |
1322
+ * | `NOT_FOUND` | No review with the provided ID was found. |
1323
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin, the owner of the review, nor in the same project as the review. |
1324
+ * | `FAILED_PRECONDITION` | The project paper is in a state in which no deletions of reviews are allowed anymore, or the project is not active (i.e., it is archived or deleted). |
1325
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1326
+ *
1327
+ * @auth
1328
+ *
1329
+ * @generated from protobuf rpc: DeleteReview
1330
+ */
1331
+ deleteReview(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
1332
+ /**
1333
+ * Get a paper by its ID.
1334
+ *
1335
+ * ## Errors
1336
+ * | Error Code | Description |
1337
+ * | :--- | :--- |
1338
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
1339
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
1340
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1341
+ *
1342
+ * @auth
1343
+ *
1344
+ * @generated from protobuf rpc: GetPaperById
1345
+ */
1346
+ getPaperById(input: Id, options?: RpcOptions): UnaryCall<Id, Paper>;
1347
+ /**
1348
+ * Search the local database for papers using a search string in order to find
1349
+ * candidates for addition to the specified project. The search is performed
1350
+ * only within the papers that are already in the local database and not yet
1351
+ * added to the specified project.
1352
+ *
1353
+ * The client can use these search results to add papers to the project using
1354
+ * the [AddPaperToProject](#service-snowballr.SnowballR-AddPaperToProject)
1355
+ * call.
1356
+ *
1357
+ * There are no restrictions on the search query in terms of valid values,
1358
+ * except the length.
1359
+ * The backend is fully responsible for deciding which paper attributes the
1360
+ * query is matched against and is supposed to provide the best results for
1361
+ * the given query.
1362
+ *
1363
+ * ## Errors
1364
+ * | Error Code | Description |
1365
+ * | :--- | :--- |
1366
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the search query is either blank or exceeds its maximum length. |
1367
+ * | `NOT_FOUND` | No project with the provided ID was found. |
1368
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the specified project. |
1369
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1370
+ *
1371
+ * @auth
1372
+ *
1373
+ * @generated from protobuf rpc: SearchLocalProjectPaperCandidates
1374
+ */
1375
+ searchLocalProjectPaperCandidates(input: Project_Paper_SearchQuery, options?: RpcOptions): UnaryCall<Project_Paper_SearchQuery, Paper_List>;
1376
+ /**
1377
+ * Search for papers that match the search query using all available fetchers
1378
+ * of the specified project in order to find candidates for addition to the
1379
+ * project. The search is performed only on papers that are found by the
1380
+ * fetchers, but not yet added to the specified project.
1381
+ *
1382
+ * Fetcher papers that already exist in the local database include their
1383
+ * respective IDs, while papers that do not exist have an empty `id` field in
1384
+ * the search results. The client can use this information to first add papers
1385
+ * that do not exist in the local database to the database using the
1386
+ * [CreatePaper](#service-snowballr.SnowballR-CreatePaper) call and then add
1387
+ * them to the project using the
1388
+ * [AddPaperToProject](#service-snowballr.SnowballR-AddPaperToProject) call.
1389
+ *
1390
+ * There are no restrictions on the search query in terms of valid values,
1391
+ * except the length.
1392
+ * The backend is fully responsible for deciding which paper attributes the
1393
+ * query is matched against and is supposed to provide the best results for
1394
+ * the given query.
1395
+ *
1396
+ * ## Errors
1397
+ * | Error Code | Description |
1398
+ * | :--- | :--- |
1399
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the search query is either blank or exceeds its maximum length. |
1400
+ * | `NOT_FOUND` | No project with the provided ID was found. |
1401
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the specified project. |
1402
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1403
+ *
1404
+ * @auth
1405
+ *
1406
+ * @generated from protobuf rpc: SearchFetcherProjectPaperCandidates
1407
+ */
1408
+ searchFetcherProjectPaperCandidates(input: Project_Paper_SearchQuery, options?: RpcOptions): UnaryCall<Project_Paper_SearchQuery, Paper_List>;
1409
+ /**
1410
+ * Create a new paper. The `id` field will be ignored and set by
1411
+ * the server. The created paper is returned and **guaranteed to be specified**.
1412
+ *
1413
+ * Validation details:
1414
+ *
1415
+ * - only the `title` is required, in the sense that it must not be blank
1416
+ * - text fields: `external_id`, `title`, `abstrakt`, `publisher`, `publication_name` and `publication_type`
1417
+ * - valid year range: 0 to this year + 1, i.e., if this year is 2025, the maximum year value is 2026
1418
+ * - valid author list: each author must be valid and the list must not exceed its maximum length
1419
+ * - valid author: `first_name` and `last_name` must both be non-blank and must not exceed their maximum length.
1420
+ *
1421
+ * ## Errors
1422
+ * | Error Code | Description |
1423
+ * | :--- | :--- |
1424
+ * | `INVALID_ARGUMENT` | At least one of the text fields exceeds its maximum length, the title is blank, the year is invalid, or the author list is invalid. For more details, see above. |
1425
+ * | `ALREADY_EXISTS` | The paper with the provided information already exists or is too similar to an existing paper. |
1426
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1427
+ *
1428
+ * @auth
1429
+ *
1430
+ * @generated from protobuf rpc: CreatePaper
1431
+ */
1432
+ createPaper(input: Paper, options?: RpcOptions): UnaryCall<Paper, Paper>;
1433
+ /**
1434
+ * Update all attributes specified in the field mask for the paper with the given ID, except the field `has_pdf`.
1435
+ * The updated paper is returned and **guaranteed to be specified**.
1436
+ *
1437
+ * For validation details, see [CreatePaper](#service-snowballr.SnowballR-CreatePaper).
1438
+ *
1439
+ * ## Errors
1440
+ * | Error Code | Description |
1441
+ * | :--- | :--- |
1442
+ * | `INVALID_ARGUMENT` | At least one of the text fields exceeds its maximum length, the title is blank, the paper ID is not a valid UUID, the year is invalid, or the author list is invalid. For more details, see [CreatePaper](#service-snowballr.SnowballR-CreatePaper). |
1443
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
1444
+ * | `ALREADY_EXISTS` | The paper with the provided information already exists or is too similar to an existing paper. |
1445
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1446
+ *
1447
+ * @auth
1448
+ *
1449
+ * @generated from protobuf rpc: UpdatePaper
1450
+ */
1451
+ updatePaper(input: Paper_Update, options?: RpcOptions): UnaryCall<Paper_Update, Paper>;
1452
+ /**
1453
+ * Get a list of papers that are referring to the provided paper, i.e., the papers that cite this paper.
1454
+ *
1455
+ * ## Errors
1456
+ * | Error Code | Description |
1457
+ * | :--- | :--- |
1458
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
1459
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
1460
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1461
+ *
1462
+ * @auth
1463
+ *
1464
+ * @generated from protobuf rpc: GetForwardReferencedPapers
1465
+ */
1466
+ getForwardReferencedPapers(input: Id, options?: RpcOptions): UnaryCall<Id, Paper_List>;
1467
+ /**
1468
+ * Get a list of papers that are referred to by the provided paper, i.e., the references of this paper.
1469
+ *
1470
+ * ## Errors
1471
+ * | Error Code | Description |
1472
+ * | :--- | :--- |
1473
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
1474
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
1475
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1476
+ *
1477
+ * @auth
1478
+ *
1479
+ * @generated from protobuf rpc: GetBackwardReferencedPapers
1480
+ */
1481
+ getBackwardReferencedPapers(input: Id, options?: RpcOptions): UnaryCall<Id, Paper_List>;
1482
+ /**
1483
+ * Get a paper's PDF as a blob.
1484
+ *
1485
+ * ## Errors
1486
+ * | Error Code | Description |
1487
+ * | :--- | :--- |
1488
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
1489
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
1490
+ * | `FAILED_PRECONDITION` | The paper has no attached PDF (see [Paper.has_pdf](#message-snowballr.Paper)). |
1491
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1492
+ *
1493
+ * @auth
1494
+ *
1495
+ * @generated from protobuf rpc: GetPaperPdf
1496
+ */
1497
+ getPaperPdf(input: Id, options?: RpcOptions): UnaryCall<Id, Blob>;
1498
+ /**
1499
+ * Set or overwrite the PDF for the specified paper. This call may also be
1500
+ * used to remove the PDF of a paper by omitting the `pdf` field.
1501
+ * The paper's `has_pdf` field is automatically updated by the server.
1502
+ *
1503
+ * ## Errors
1504
+ * | Error Code | Description |
1505
+ * | :--- | :--- |
1506
+ * | `INVALID_ARGUMENT` | The PDF is not in the correct format, or the paper ID is not a valid UUID. |
1507
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
1508
+ * | `RESOURCE_EXHAUSTED` | The PDF was rejected by the server, e.g., because it is too large. |
1509
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1510
+ *
1511
+ * @auth
1512
+ *
1513
+ * @generated from protobuf rpc: SetPaperPdf
1514
+ */
1515
+ setPaperPdf(input: Paper_PdfUpdate, options?: RpcOptions): UnaryCall<Paper_PdfUpdate, Nothing>;
1516
+ }
1517
+ /**
1518
+ * This service contains the complete set of API calls that the SnowballR web application uses to
1519
+ * communicate with the backend.
1520
+ *
1521
+ * ## Overview
1522
+ *
1523
+ * SnowballR is a tool designed to assist with scientific research by organizing
1524
+ * and managing structured literature reviews (SLRs). The application is split into
1525
+ * a web frontend and a backend on a central server.
1526
+ * The frontend is a web application that runs in the user's browser.
1527
+ * The backend runs on a server and contains most, if not all, of the application logic.
1528
+ * It tracks all data by accessing a database and makes requests to external resources like paper databases.
1529
+ *
1530
+ * ~~~mermaid
1531
+ * architecture-beta
1532
+ * group frontend(internet)[Frontend]
1533
+ * service browser(internet)[Browser] in frontend
1534
+ *
1535
+ * group backend(server)[Backend]
1536
+ * service server(server)[SnowballR Server] in backend
1537
+ * service db(database)[Database] in backend
1538
+ *
1539
+ * group external(internet)[External Resources]
1540
+ * service fetcher1(internet)[External Paper Database 1] in external
1541
+ * service fetcher2(internet)[External Paper Database 2] in external
1542
+ *
1543
+ * junction j1 in external
1544
+ * junction j2 in external
1545
+ *
1546
+ * browser:R --> L:server
1547
+ *
1548
+ * server:B --> T:db
1549
+ * server:R -- L:j1
1550
+ *
1551
+ * j1:R -- L:j2
1552
+ * j1:B --> T:fetcher1
1553
+ * j2:B --> T:fetcher2
1554
+ * ~~~
1555
+ *
1556
+ * ## Authentication
1557
+ *
1558
+ * A padlock icon in the top-right of a service method description indicates
1559
+ * whether a call **requires** the user to be **authenticated**. This will
1560
+ * happen automatically using an HTTP-only cookie set by the server during
1561
+ * registration or login. If the authentication fails, an `UNAUTHENTICATED` error will
1562
+ * be returned in all cases.
1563
+ *
1564
+ * ## Error Handling
1565
+ *
1566
+ * Furthermore, the server **may** respond with the `UNAVAILABLE` error
1567
+ * code at any time if it is unable to process a request. It **may** also
1568
+ * respond with the `INTERNAL` error code if some unknown server-side errors occur.
1569
+ * If the [field mask](https://protobuf.dev/reference/java/api-docs/com/google/protobuf/FieldMask)
1570
+ * is empty or contains an invalid format the server returns an `INVALID_ARGUMENT` error.
1571
+ * This includes cases where the mask specifies fields that are not defined in the target object type.
1572
+ * The error description provides additional details.
1573
+ *
1574
+ * Each error **should** come with a meaningful description, detailing the nature
1575
+ * of the error that occurred.
1576
+ *
1577
+ * ## Update Semantics
1578
+ *
1579
+ * Updates are applied atomically. If one part of an update request cannot
1580
+ * be fulfilled, the entire update fails and no changes are persisted.
1581
+ * If the field mask specifies a field that is not allowed to be updated, the update request is rejected.
1582
+ * In this case, the server responds with an `INVALID_ARGUMENT` error.
1583
+ *
1584
+ * ## Enums and Guarantees
1585
+ *
1586
+ * Each enum contains an `_UNSPECIFIED` variant to indicate that no meaningful value was set.
1587
+ * If any other variant is present, the field is considered to be **specified**.
1588
+ *
1589
+ * The word **guaranteed** may only convey meaning in the context of this
1590
+ * contract. Due to the nature of the underlying network communication, results
1591
+ * can never really be **guaranteed**, so proper error handling is advised anyway. In the
1592
+ * following context, **guaranteed** denotes a situation in which the client shall
1593
+ * be able to safely make assumptions about a successfully received message.
1594
+ *
1595
+ * ## Entities and Relationships
1596
+ *
1597
+ * The following figure shows the relationships between the entities/concepts of the
1598
+ * SnowballR application. It does not depict the actual database schema used by SnowballR's
1599
+ * backend; rather, it provides a broader understanding.
1600
+ *
1601
+ * ~~~mermaid
1602
+ * erDiagram
1603
+ * direction LR
1604
+ *
1605
+ * Project 0+ -- 0+ User : "member of"
1606
+ * Project 1 -- 1 ProjectSettings : has
1607
+ * Project 1 -- 0+ ProjectPaper : contains
1608
+ * Project 1 -- 0+ Criterion : contains
1609
+ *
1610
+ * ProjectSettings 0+ -- 1+ Fetcher : "fetches from"
1611
+ *
1612
+ * ProjectPaper 1 -- 0+ Review : has
1613
+ * ProjectPaper 1 -- 1 Paper : "refers to"
1614
+ *
1615
+ * Review 0+ -- 1 User : by
1616
+ * Review 0+ -- 0+ Criterion : "ticks off"
1617
+ *
1618
+ * User 1 -- 1 UserSettings : has
1619
+ * User 0+ -- 0+ Paper : "on reading-list of"
1620
+ * ~~~
1621
+ *
1622
+ * **Disclaimer:**
1623
+ *
1624
+ * Access control for these calls has not yet been fully worked out. Consequently,
1625
+ * the required role for any call may change at any time.
1626
+ *
1627
+ *
1628
+ * @generated from protobuf service snowballr.SnowballR
1629
+ */
1630
+ export class SnowballRClient implements ISnowballRClient, ServiceInfo {
1631
+ typeName = SnowballR.typeName;
1632
+ methods = SnowballR.methods;
1633
+ options = SnowballR.options;
1634
+ constructor(private readonly _transport: RpcTransport) {
1635
+ }
1636
+ /**
1637
+ * Get all available fetchers from which a paper may be sourced by the backend.
1638
+ * Each source is identified by a unique ID and is later used to specify
1639
+ * which APIs will be used by a project to collect papers. The list is
1640
+ * **guaranteed to be non-empty** but **may change** at any time.
1641
+ *
1642
+ * ## Errors
1643
+ * | Error Code | Description |
1644
+ * | :--- | :--- |
1645
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1646
+ *
1647
+ * @auth
1648
+ *
1649
+ * @generated from protobuf rpc: GetAvailableFetchers
1650
+ */
1651
+ getAvailableFetchers(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, AvailableFetchers> {
1652
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
1653
+ return stackIntercept<Nothing, AvailableFetchers>("unary", this._transport, method, opt, input);
1654
+ }
1655
+ /**
1656
+ * Create an account. The provided email address **must not already be registered**,
1657
+ * and no field may be blank. If successful, login tokens are
1658
+ * provided, which are used automatically for subsequent calls.
1659
+ *
1660
+ * The password string is **required** to
1661
+ *
1662
+ * - be at least **eight characters long**,
1663
+ * - contain at least **two lower-case letters**,
1664
+ * - contain at least **two upper-case letters**,
1665
+ * - contain at least **two digits**,
1666
+ * - and contain at least **two special characters**.
1667
+ *
1668
+ * ## Errors
1669
+ * | Error Code | Description |
1670
+ * | :--- | :--- |
1671
+ * | `INVALID_ARGUMENT` | At least one input did not meet the requirements: The `email` must be a valid email address, the `password` must meet the previously stated criteria, and the `first_name` and `last_name` must not be left blank. |
1672
+ * | `ALREADY_EXISTS` | An account with the provided email address is already registered. |
1673
+ * | `INTERNAL` | The verification email could not be sent. |
1674
+ *
1675
+ * @generated from protobuf rpc: Register
1676
+ */
1677
+ register(input: RegisterRequest, options?: RpcOptions): UnaryCall<RegisterRequest, Nothing> {
1678
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
1679
+ return stackIntercept<RegisterRequest, Nothing>("unary", this._transport, method, opt, input);
1680
+ }
1681
+ /**
1682
+ * After registering, a user receives a verification token via email.
1683
+ * This call is then used to submit that token, confirming the ownership of the
1684
+ * email address and activating the user account.
1685
+ *
1686
+ * ## Errors
1687
+ * | Error Code | Description |
1688
+ * | :--- | :--- |
1689
+ * | `INVALID_ARGUMENT` | No token was provided. |
1690
+ * | `NOT_FOUND` | The provided token is invalid, could not be found, or has expired. |
1691
+ *
1692
+ * @generated from protobuf rpc: VerifyEmail
1693
+ */
1694
+ verifyEmail(input: VerifyEmailRequest, options?: RpcOptions): UnaryCall<VerifyEmailRequest, Nothing> {
1695
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
1696
+ return stackIntercept<VerifyEmailRequest, Nothing>("unary", this._transport, method, opt, input);
1697
+ }
1698
+ /**
1699
+ * If the provided email address and password exactly match those of a user in the server's database and
1700
+ * the user's email address has been verified, a new set of login tokens is
1701
+ * provided to authenticate as that user. Old access and refresh tokens will remain valid.
1702
+ * These credentials are handled automatically and do not require any further attention.
1703
+ *
1704
+ * ## Errors
1705
+ * | Error Code | Description |
1706
+ * | :--- | :--- |
1707
+ * | `INVALID_ARGUMENT` | The email address is not a valid email address or no password was provided. |
1708
+ * | `UNAUTHENTICATED` | The email address is not registered (anymore) or verified, or the password is incorrect. |
1709
+ *
1710
+ * @generated from protobuf rpc: Login
1711
+ */
1712
+ login(input: LoginRequest, options?: RpcOptions): UnaryCall<LoginRequest, Nothing> {
1713
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
1714
+ return stackIntercept<LoginRequest, Nothing>("unary", this._transport, method, opt, input);
1715
+ }
1716
+ /**
1717
+ * Revoke access through the currently used set of access and refresh tokens.
1718
+ * Other token pairs may not be affected.
1719
+ *
1720
+ * ## Errors
1721
+ * | Error Code | Description |
1722
+ * | :--- | :--- |
1723
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1724
+ *
1725
+ * @auth
1726
+ *
1727
+ * @generated from protobuf rpc: Logout
1728
+ */
1729
+ logout(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Nothing> {
1730
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
1731
+ return stackIntercept<Nothing, Nothing>("unary", this._transport, method, opt, input);
1732
+ }
1733
+ /**
1734
+ * Acquire the client's authentication status. The result is **guaranteed to
1735
+ * be specified**.
1736
+ *
1737
+ * ## Errors
1738
+ * No additional errors may occur.
1739
+ *
1740
+ * @generated from protobuf rpc: GetAuthenticationStatus
1741
+ */
1742
+ getAuthenticationStatus(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, AuthenticationStatusResponse> {
1743
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
1744
+ return stackIntercept<Nothing, AuthenticationStatusResponse>("unary", this._transport, method, opt, input);
1745
+ }
1746
+ /**
1747
+ * Upon presentation of a valid refresh token, a new set of login tokens
1748
+ * is issued, authenticating the owner of the token. This new pair is
1749
+ * **guaranteed to contain valid credentials**. The refresh token **may
1750
+ * change** too. These credentials are handled automatically and do not require any
1751
+ * further attention.
1752
+ *
1753
+ * Use this call if the access token has expired, as it does not require the user to be authenticated using an access
1754
+ * token. Instead, the validity of the accompanying refresh token — which is
1755
+ * also set by [Register](#service-snowballr.SnowballR-Register) and [Login](#service-snowballr.SnowballR-Login) — is confirmed.
1756
+ *
1757
+ * ## Errors
1758
+ * | Error Code | Description |
1759
+ * | :--- | :--- |
1760
+ * | `UNAUTHENTICATED` | The refresh token is invalid. |
1761
+ *
1762
+ * @auth
1763
+ *
1764
+ * @generated from protobuf rpc: RenewSession
1765
+ */
1766
+ renewSession(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Nothing> {
1767
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
1768
+ return stackIntercept<Nothing, Nothing>("unary", this._transport, method, opt, input);
1769
+ }
1770
+ /**
1771
+ * If the provided email address belongs to an active user, the server sends a
1772
+ * challenge/token to that address. This token must then be sent
1773
+ * alongside a new password
1774
+ * (see [ResetPassword](#service-snowballr.SnowballR-ResetPassword)) in order
1775
+ * to update a lost or forgotten password.
1776
+ *
1777
+ * ## Errors
1778
+ * | Error Code | Description |
1779
+ * | :--- | :--- |
1780
+ * | `INVALID_ARGUMENT` | The email address is not a valid email address. If the email address is valid, but has not yet been registered, this error does not occur. |
1781
+ * | `INTERNAL` | The verification email could not be sent. |
1782
+ *
1783
+ * @generated from protobuf rpc: RequestPasswordReset
1784
+ */
1785
+ requestPasswordReset(input: RequestPasswordResetRequest, options?: RpcOptions): UnaryCall<RequestPasswordResetRequest, Nothing> {
1786
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
1787
+ return stackIntercept<RequestPasswordResetRequest, Nothing>("unary", this._transport, method, opt, input);
1788
+ }
1789
+ /**
1790
+ * After requesting a password reset email using
1791
+ * [RequestPasswordReset](#service-snowballr.SnowballR-RequestPasswordReset),
1792
+ * this call may be used to actually set the new password. To verify the
1793
+ * ownership of the account, the token sent via email must also be provided
1794
+ * and valid. The new password must follow the same rules as during
1795
+ * [registration](#service-snowballr.SnowballR-Register).
1796
+ *
1797
+ * ## Errors
1798
+ * | Error Code | Description |
1799
+ * | :--- | :--- |
1800
+ * | `INVALID_ARGUMENT` | Either the provided token is invalid, or the new password does not meet the rules specified in [Register](#service-snowballr.SnowballR-Register). |
1801
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
1802
+ * | `UNAUTHENTICATED` | The provided token could not be found or has expired. |
1803
+ *
1804
+ * @generated from protobuf rpc: ResetPassword
1805
+ */
1806
+ resetPassword(input: PasswordResetRequest, options?: RpcOptions): UnaryCall<PasswordResetRequest, Nothing> {
1807
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
1808
+ return stackIntercept<PasswordResetRequest, Nothing>("unary", this._transport, method, opt, input);
1809
+ }
1810
+ /**
1811
+ * Set a new password using the old password.
1812
+ * The new password must follow the same rules as during
1813
+ * [registration](#service-snowballr.SnowballR-Register). This serves no
1814
+ * recovery purpose and is for user convenience only.
1815
+ *
1816
+ * ## Errors
1817
+ * | Error Code | Description |
1818
+ * | :--- | :--- |
1819
+ * | `INVALID_ARGUMENT` | Either the provided old password is incorrect, or the new password does not meet the rules specified in [Register](#service-snowballr.SnowballR-Register). |
1820
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
1821
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1822
+ *
1823
+ * @auth
1824
+ *
1825
+ * @generated from protobuf rpc: ChangePassword
1826
+ */
1827
+ changePassword(input: PasswordChangeRequest, options?: RpcOptions): UnaryCall<PasswordChangeRequest, Nothing> {
1828
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
1829
+ return stackIntercept<PasswordChangeRequest, Nothing>("unary", this._transport, method, opt, input);
1830
+ }
1831
+ /**
1832
+ * Get all registered users.
1833
+ *
1834
+ * ## Errors
1835
+ * | Error Code | Description |
1836
+ * | :--- | :--- |
1837
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
1838
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1839
+ *
1840
+ * @auth
1841
+ *
1842
+ * @generated from protobuf rpc: GetAllUsers
1843
+ */
1844
+ getAllUsers(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, User_List> {
1845
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
1846
+ return stackIntercept<Nothing, User_List>("unary", this._transport, method, opt, input);
1847
+ }
1848
+ /**
1849
+ * Get the user who is currently logged in by looking up the provided access
1850
+ * token. **If the user is properly authenticated, this call is guaranteed to return a valid
1851
+ * user.**
1852
+ *
1853
+ * ## Errors
1854
+ * | Error Code | Description |
1855
+ * | :--- | :--- |
1856
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1857
+ *
1858
+ * @auth
1859
+ *
1860
+ * @generated from protobuf rpc: GetCurrentUser
1861
+ */
1862
+ getCurrentUser(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, User> {
1863
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
1864
+ return stackIntercept<Nothing, User>("unary", this._transport, method, opt, input);
1865
+ }
1866
+ /**
1867
+ * Get a user by their ID.
1868
+ *
1869
+ * ## Errors
1870
+ * | Error Code | Description |
1871
+ * | :--- | :--- |
1872
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
1873
+ * | `NOT_FOUND` | No user with the provided ID was found. |
1874
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the same project as the requested user. |
1875
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1876
+ *
1877
+ * @auth
1878
+ *
1879
+ * @generated from protobuf rpc: GetUserById
1880
+ */
1881
+ getUserById(input: Id, options?: RpcOptions): UnaryCall<Id, User> {
1882
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
1883
+ return stackIntercept<Id, User>("unary", this._transport, method, opt, input);
1884
+ }
1885
+ /**
1886
+ * Get the user with the specified email address.
1887
+ *
1888
+ * ## Errors
1889
+ * | Error Code | Description |
1890
+ * | :--- | :--- |
1891
+ * | `INVALID_ARGUMENT` | The email address is not a valid email address. |
1892
+ * | `NOT_FOUND` | No user with the provided email address was found. |
1893
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the same project as the requested user. |
1894
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1895
+ *
1896
+ * @auth
1897
+ *
1898
+ * @generated from protobuf rpc: GetUserByEmail
1899
+ */
1900
+ getUserByEmail(input: Email, options?: RpcOptions): UnaryCall<Email, User> {
1901
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
1902
+ return stackIntercept<Email, User>("unary", this._transport, method, opt, input);
1903
+ }
1904
+ /**
1905
+ * Update all attributes specified in the field mask for the user with the
1906
+ * provided ID, except the `status` field. A server admin may update the `role` field using this call.
1907
+ * The updated user is returned and **guaranteed to be specified**.
1908
+ *
1909
+ * ## Errors
1910
+ * | Error Code | Description |
1911
+ * | :--- | :--- |
1912
+ * | `INVALID_ARGUMENT` | At least one (updated) user detail did not meet the requirements: The `id` must be a valid UUID, the `email` must be a valid email address, the `first_name` and `last_name` must not be left blank, and the `role` must be specified. |
1913
+ * | `NOT_FOUND` | No user with the provided ID was found. |
1914
+ * | `ALREADY_EXISTS` | Another user with the provided email address already exists. |
1915
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the requested user themselves. |
1916
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
1917
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1918
+ *
1919
+ * @auth
1920
+ *
1921
+ * @generated from protobuf rpc: UpdateUser
1922
+ */
1923
+ updateUser(input: User_Update, options?: RpcOptions): UnaryCall<User_Update, User> {
1924
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
1925
+ return stackIntercept<User_Update, User>("unary", this._transport, method, opt, input);
1926
+ }
1927
+ /**
1928
+ * Prevent the user with the provided ID from logging in. They are not fully
1929
+ * deleted from the database but are no longer considered an **active** user.
1930
+ *
1931
+ * ## Errors
1932
+ * | Error Code | Description |
1933
+ * | :--- | :--- |
1934
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
1935
+ * | `NOT_FOUND` | No user with the provided ID was found. |
1936
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the requested user themselves. |
1937
+ * | `FAILED_PRECONDITION` | The user to be deleted is a server admin or the last project admin in any non-deleted project. |
1938
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1939
+ *
1940
+ * @auth
1941
+ *
1942
+ * @generated from protobuf rpc: SoftDeleteUser
1943
+ */
1944
+ softDeleteUser(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing> {
1945
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
1946
+ return stackIntercept<Id, Nothing>("unary", this._transport, method, opt, input);
1947
+ }
1948
+ /**
1949
+ * Allow a previously soft-deleted user to log in again.
1950
+ * The calling user is **required to be an admin**.
1951
+ *
1952
+ * ## Errors
1953
+ * | Error Code | Description |
1954
+ * | :--- | :--- |
1955
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
1956
+ * | `NOT_FOUND` | No user with the provided ID was found. |
1957
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
1958
+ * | `FAILED_PRECONDITION` | The user to be restored is not deleted (i.e., not in state `USER_STATUS_DELETED`). |
1959
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1960
+ *
1961
+ * @auth
1962
+ *
1963
+ * @generated from protobuf rpc: SoftUndeleteUser
1964
+ */
1965
+ softUndeleteUser(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing> {
1966
+ const method = this.methods[16], opt = this._transport.mergeOptions(options);
1967
+ return stackIntercept<Id, Nothing>("unary", this._transport, method, opt, input);
1968
+ }
1969
+ /**
1970
+ * Get the user-specific settings for the calling user. The user settings are returned and **guaranteed to be specified**.
1971
+ *
1972
+ * ## Errors
1973
+ * | Error Code | Description |
1974
+ * | :--- | :--- |
1975
+ * | `NOT_FOUND` | No user settings were found for the calling user. |
1976
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1977
+ *
1978
+ * @auth
1979
+ *
1980
+ * @generated from protobuf rpc: GetUserSettings
1981
+ */
1982
+ getUserSettings(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, UserSettings> {
1983
+ const method = this.methods[17], opt = this._transport.mergeOptions(options);
1984
+ return stackIntercept<Nothing, UserSettings>("unary", this._transport, method, opt, input);
1985
+ }
1986
+ /**
1987
+ * Update all attributes specified in the field mask for the user settings of the calling user.
1988
+ * The updated user settings are returned and **guaranteed to be specified**.
1989
+ *
1990
+ * ## Errors
1991
+ * | Error Code | Description |
1992
+ * | :--- | :--- |
1993
+ * | `INVALID_ARGUMENT` | At least one updated setting did not meet the requirements. |
1994
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
1995
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1996
+ *
1997
+ * @auth
1998
+ *
1999
+ * @generated from protobuf rpc: UpdateUserSettings
2000
+ */
2001
+ updateUserSettings(input: UserSettings_Update, options?: RpcOptions): UnaryCall<UserSettings_Update, UserSettings> {
2002
+ const method = this.methods[18], opt = this._transport.mergeOptions(options);
2003
+ return stackIntercept<UserSettings_Update, UserSettings>("unary", this._transport, method, opt, input);
2004
+ }
2005
+ /**
2006
+ * Get all project papers that the calling user can review. It is not
2007
+ * guaranteed that the returned papers belong to the same project.
2008
+ * The returned paper list **may be empty** if no papers can be reviewed.
2009
+ *
2010
+ * ## Errors
2011
+ * | Error Code | Description |
2012
+ * | :--- | :--- |
2013
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2014
+ *
2015
+ * @auth
2016
+ *
2017
+ * @generated from protobuf rpc: GetAllPapersToReview
2018
+ */
2019
+ getAllPapersToReview(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_Paper_List> {
2020
+ const method = this.methods[19], opt = this._transport.mergeOptions(options);
2021
+ return stackIntercept<Nothing, Project_Paper_List>("unary", this._transport, method, opt, input);
2022
+ }
2023
+ /**
2024
+ * Get all project papers from the project identified by its ID that
2025
+ * the calling user can review.
2026
+ * The returned paper list **may be empty** if no papers can be reviewed.
2027
+ *
2028
+ * ## Errors
2029
+ * | Error Code | Description |
2030
+ * | :--- | :--- |
2031
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2032
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2033
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
2034
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2035
+ *
2036
+ * @auth
2037
+ *
2038
+ * @generated from protobuf rpc: GetPapersToReviewForProject
2039
+ */
2040
+ getPapersToReviewForProject(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper_List> {
2041
+ const method = this.methods[20], opt = this._transport.mergeOptions(options);
2042
+ return stackIntercept<Id, Project_Paper_List>("unary", this._transport, method, opt, input);
2043
+ }
2044
+ /**
2045
+ * Get the project paper with the succeeding local ID (`local_id`) of the project paper
2046
+ * identified by the provided global ID (`id`). It is **guaranteed** that the
2047
+ * returned paper is in the same project as the provided one.
2048
+ *
2049
+ * ## Errors
2050
+ * | Error Code | Description |
2051
+ * | :--- | :--- |
2052
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
2053
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
2054
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
2055
+ * | `FAILED_PRECONDITION` | There is no next project paper in the project. |
2056
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2057
+ *
2058
+ * @auth
2059
+ *
2060
+ * @generated from protobuf rpc: GetNextPaper
2061
+ */
2062
+ getNextPaper(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper> {
2063
+ const method = this.methods[21], opt = this._transport.mergeOptions(options);
2064
+ return stackIntercept<Id, Project_Paper>("unary", this._transport, method, opt, input);
2065
+ }
2066
+ /**
2067
+ * Get the next project paper that the calling user can review. Papers with
2068
+ * lower local IDs are preferred. It is **guaranteed** that the returned paper
2069
+ * is in the same project as the provided one.
2070
+ *
2071
+ * ## Errors
2072
+ * | Error Code | Description |
2073
+ * | :--- | :--- |
2074
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
2075
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
2076
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
2077
+ * | `FAILED_PRECONDITION` | There is no next project paper available to review in the project. |
2078
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2079
+ *
2080
+ * @auth
2081
+ *
2082
+ * @generated from protobuf rpc: GetNextPaperToReview
2083
+ */
2084
+ getNextPaperToReview(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper> {
2085
+ const method = this.methods[22], opt = this._transport.mergeOptions(options);
2086
+ return stackIntercept<Id, Project_Paper>("unary", this._transport, method, opt, input);
2087
+ }
2088
+ /**
2089
+ * Get the project paper with the previous local ID (`local_id`) of the project paper
2090
+ * identified by the provided global ID (`id`). It is **guaranteed** that the
2091
+ * returned paper is in the same project as the provided one.
2092
+ *
2093
+ * ## Errors
2094
+ * | Error Code | Description |
2095
+ * | :--- | :--- |
2096
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
2097
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
2098
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
2099
+ * | `FAILED_PRECONDITION` | There is no previous project paper in the project. |
2100
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2101
+ *
2102
+ * @auth
2103
+ *
2104
+ * @generated from protobuf rpc: GetPreviousPaper
2105
+ */
2106
+ getPreviousPaper(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper> {
2107
+ const method = this.methods[23], opt = this._transport.mergeOptions(options);
2108
+ return stackIntercept<Id, Project_Paper>("unary", this._transport, method, opt, input);
2109
+ }
2110
+ /**
2111
+ * Get the list of papers on the reading list of the calling user.
2112
+ *
2113
+ * ## Errors
2114
+ * | Error Code | Description |
2115
+ * | :--- | :--- |
2116
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2117
+ *
2118
+ * @auth
2119
+ *
2120
+ * @generated from protobuf rpc: GetReadingList
2121
+ */
2122
+ getReadingList(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Paper_List> {
2123
+ const method = this.methods[24], opt = this._transport.mergeOptions(options);
2124
+ return stackIntercept<Nothing, Paper_List>("unary", this._transport, method, opt, input);
2125
+ }
2126
+ /**
2127
+ * Return whether the paper with the provided ID is on the calling
2128
+ * user's reading list.
2129
+ *
2130
+ * ## Errors
2131
+ * | Error Code | Description |
2132
+ * | :--- | :--- |
2133
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
2134
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
2135
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2136
+ *
2137
+ * @auth
2138
+ *
2139
+ * @generated from protobuf rpc: IsPaperOnReadingList
2140
+ */
2141
+ isPaperOnReadingList(input: Id, options?: RpcOptions): UnaryCall<Id, BoolValue> {
2142
+ const method = this.methods[25], opt = this._transport.mergeOptions(options);
2143
+ return stackIntercept<Id, BoolValue>("unary", this._transport, method, opt, input);
2144
+ }
2145
+ /**
2146
+ * Add the paper with the provided ID to the calling user's reading list. If
2147
+ * the paper is already on the reading list, nothing will be changed
2148
+ * and no error will be returned.
2149
+ *
2150
+ * ## Errors
2151
+ * | Error Code | Description |
2152
+ * | :--- | :--- |
2153
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
2154
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
2155
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2156
+ *
2157
+ * @auth
2158
+ *
2159
+ * @generated from protobuf rpc: AddPaperToReadingList
2160
+ */
2161
+ addPaperToReadingList(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing> {
2162
+ const method = this.methods[26], opt = this._transport.mergeOptions(options);
2163
+ return stackIntercept<Id, Nothing>("unary", this._transport, method, opt, input);
2164
+ }
2165
+ /**
2166
+ * Remove the paper with the provided ID from the calling user's reading
2167
+ * list.
2168
+ *
2169
+ * ## Errors
2170
+ * | Error Code | Description |
2171
+ * | :--- | :--- |
2172
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
2173
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
2174
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2175
+ *
2176
+ * @auth
2177
+ *
2178
+ * @generated from protobuf rpc: RemovePaperFromReadingList
2179
+ */
2180
+ removePaperFromReadingList(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing> {
2181
+ const method = this.methods[27], opt = this._transport.mergeOptions(options);
2182
+ return stackIntercept<Id, Nothing>("unary", this._transport, method, opt, input);
2183
+ }
2184
+ /**
2185
+ * Get a list of users that match the search query and can be invited.
2186
+ * If the query is too short or no users match, an empty list is returned.
2187
+ * If a project is specified, i.e., a project ID is given, all current members
2188
+ * of that project are excluded from the candidate list. In case no project with the given ID exists,
2189
+ * no project members are filtered out from the candidate list. The calling user is always excluded
2190
+ * from the candidate list.
2191
+ *
2192
+ * ## Errors
2193
+ * | Error Code | Description |
2194
+ * | :--- | :--- |
2195
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2196
+ *
2197
+ * @auth
2198
+ *
2199
+ * @generated from protobuf rpc: GetInviteCandidates
2200
+ */
2201
+ getInviteCandidates(input: Project_InviteCandidatesRequest, options?: RpcOptions): UnaryCall<Project_InviteCandidatesRequest, User_List> {
2202
+ const method = this.methods[28], opt = this._transport.mergeOptions(options);
2203
+ return stackIntercept<Project_InviteCandidatesRequest, User_List>("unary", this._transport, method, opt, input);
2204
+ }
2205
+ /**
2206
+ * Invite a user to a project. If the user is already a project member or invitee, nothing happens.
2207
+ * The provided project must be active, meaning it is neither deleted nor archived.
2208
+ * An invitation email is sent to the specified email address.
2209
+ * The recipient may need to register first and then accept the invitation.
2210
+ * The calling user is **required to be a project admin**.
2211
+ *
2212
+ * ## Errors
2213
+ * | Error Code | Description |
2214
+ * | :--- | :--- |
2215
+ * | `INVALID_ARGUMENT` | The email address is not a valid email address, or the project ID is not a valid UUID. |
2216
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2217
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
2218
+ * | `FAILED_PRECONDITION` | The project is not active (i.e., archived or deleted). |
2219
+ * | `INTERNAL` | The invitation email could not be sent. |
2220
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2221
+ *
2222
+ * @auth
2223
+ *
2224
+ * @generated from protobuf rpc: InviteUserToProject
2225
+ */
2226
+ inviteUserToProject(input: Project_Member_Invite, options?: RpcOptions): UnaryCall<Project_Member_Invite, Nothing> {
2227
+ const method = this.methods[29], opt = this._transport.mergeOptions(options);
2228
+ return stackIntercept<Project_Member_Invite, Nothing>("unary", this._transport, method, opt, input);
2229
+ }
2230
+ /**
2231
+ * Accept a project invitation. After inviting a user to a project, the invited user
2232
+ * receives an email containing the link to accept the invitation. This call is used to
2233
+ * accept that invitation.
2234
+ *
2235
+ * ## Errors
2236
+ * | Error Code | Description |
2237
+ * | :--- | :--- |
2238
+ * | `INVALID_ARGUMENT` | No token was provided. |
2239
+ * | `NOT_FOUND` | The provided token is invalid, could not be found, or has expired. |
2240
+ * | `FAILED_PRECONDITION` | The user is not registered or not active (i.e., not in state `USER_STATUS_ACTIVE`). |
2241
+ *
2242
+ * @generated from protobuf rpc: AcceptProjectInvitation
2243
+ */
2244
+ acceptProjectInvitation(input: Project_Member_Accept, options?: RpcOptions): UnaryCall<Project_Member_Accept, Nothing> {
2245
+ const method = this.methods[30], opt = this._transport.mergeOptions(options);
2246
+ return stackIntercept<Project_Member_Accept, Nothing>("unary", this._transport, method, opt, input);
2247
+ }
2248
+ /**
2249
+ * Get a list of all users with a pending invitation to the specified project.
2250
+ * If the `id` field of the returned user is specified, it is **guaranteed** that the user exists.
2251
+ * If the field is blank, the user was invited by email and has not yet registered.
2252
+ *
2253
+ * ## Errors
2254
+ * | Error Code | Description |
2255
+ * | :--- | :--- |
2256
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2257
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2258
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
2259
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2260
+ *
2261
+ * @auth
2262
+ *
2263
+ * @generated from protobuf rpc: GetPendingInvitationsForProject
2264
+ */
2265
+ getPendingInvitationsForProject(input: Id, options?: RpcOptions): UnaryCall<Id, User_List> {
2266
+ const method = this.methods[31], opt = this._transport.mergeOptions(options);
2267
+ return stackIntercept<Id, User_List>("unary", this._transport, method, opt, input);
2268
+ }
2269
+ /**
2270
+ * Get a list of all members of the specified project. The calling user is
2271
+ * included. Pending invitations are excluded.
2272
+ *
2273
+ * ## Errors
2274
+ * | Error Code | Description |
2275
+ * | :--- | :--- |
2276
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2277
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2278
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
2279
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2280
+ *
2281
+ * @auth
2282
+ *
2283
+ * @generated from protobuf rpc: GetProjectMembers
2284
+ */
2285
+ getProjectMembers(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Member_List> {
2286
+ const method = this.methods[32], opt = this._transport.mergeOptions(options);
2287
+ return stackIntercept<Id, Project_Member_List>("unary", this._transport, method, opt, input);
2288
+ }
2289
+ /**
2290
+ * Remove the specified user or invitee from the specified project. If the user is not part
2291
+ * of the project, nothing happens. The calling user is **required to be a
2292
+ * project admin**. If there is only one project admin, then the user cannot be removed from the project.
2293
+ *
2294
+ * ## Errors
2295
+ * | Error Code | Description |
2296
+ * | :--- | :--- |
2297
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the user's email address is not a valid email address. |
2298
+ * | `NOT_FOUND` | No project with the provided project ID or user with the provided user ID was found. |
2299
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project, nor the project member themselves. |
2300
+ * | `FAILED_PRECONDITION` | The project member to be removed is the last project admin in the project. |
2301
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2302
+ *
2303
+ * @auth
2304
+ *
2305
+ * @generated from protobuf rpc: RemoveProjectMember
2306
+ */
2307
+ removeProjectMember(input: Project_Member_Remove, options?: RpcOptions): UnaryCall<Project_Member_Remove, Nothing> {
2308
+ const method = this.methods[33], opt = this._transport.mergeOptions(options);
2309
+ return stackIntercept<Project_Member_Remove, Nothing>("unary", this._transport, method, opt, input);
2310
+ }
2311
+ /**
2312
+ * Change the role of the user with the provided ID within the specified project.
2313
+ * The new role **must be specified**.
2314
+ * The calling user is **required to be a project admin**.
2315
+ *
2316
+ * ## Errors
2317
+ * | Error Code | Description |
2318
+ * | :--- | :--- |
2319
+ * | `INVALID_ARGUMENT` | The project ID or the user ID is not a valid UUID, or the provided new role is not specified. |
2320
+ * | `NOT_FOUND` | No project with the provided ID or user with the provided ID was found. |
2321
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
2322
+ * | `FAILED_PRECONDITION` | The user to be updated is not a member of the specified project or is the last project admin and should be demoted to a project member. |
2323
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2324
+ *
2325
+ * @auth
2326
+ *
2327
+ * @generated from protobuf rpc: UpdateProjectMemberRole
2328
+ */
2329
+ updateProjectMemberRole(input: Project_Member_Update, options?: RpcOptions): UnaryCall<Project_Member_Update, Nothing> {
2330
+ const method = this.methods[34], opt = this._transport.mergeOptions(options);
2331
+ return stackIntercept<Project_Member_Update, Nothing>("unary", this._transport, method, opt, input);
2332
+ }
2333
+ /**
2334
+ * Get a list of all active projects.
2335
+ *
2336
+ * ## Errors
2337
+ * | Error Code | Description |
2338
+ * | :--- | :--- |
2339
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
2340
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2341
+ *
2342
+ * @auth
2343
+ *
2344
+ * @generated from protobuf rpc: GetAllProjects
2345
+ */
2346
+ getAllProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List> {
2347
+ const method = this.methods[35], opt = this._transport.mergeOptions(options);
2348
+ return stackIntercept<Nothing, Project_List>("unary", this._transport, method, opt, input);
2349
+ }
2350
+ /**
2351
+ * Get a list of all projects that are marked as deleted.
2352
+ *
2353
+ * ## Errors
2354
+ * | Error Code | Description |
2355
+ * | :--- | :--- |
2356
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
2357
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2358
+ *
2359
+ * @auth
2360
+ *
2361
+ * @generated from protobuf rpc: GetAllDeletedProjects
2362
+ */
2363
+ getAllDeletedProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List> {
2364
+ const method = this.methods[36], opt = this._transport.mergeOptions(options);
2365
+ return stackIntercept<Nothing, Project_List>("unary", this._transport, method, opt, input);
2366
+ }
2367
+ /**
2368
+ * Get a list of all projects the specified user is a member of and that are
2369
+ * marked as deleted.
2370
+ *
2371
+ * ## Errors
2372
+ * | Error Code | Description |
2373
+ * | :--- | :--- |
2374
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
2375
+ * | `NOT_FOUND` | No user with the provided ID was found. |
2376
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the calling user. |
2377
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2378
+ *
2379
+ * @auth
2380
+ *
2381
+ * @generated from protobuf rpc: GetAllDeletedProjectsForUser
2382
+ */
2383
+ getAllDeletedProjectsForUser(input: Id, options?: RpcOptions): UnaryCall<Id, Project_List> {
2384
+ const method = this.methods[37], opt = this._transport.mergeOptions(options);
2385
+ return stackIntercept<Id, Project_List>("unary", this._transport, method, opt, input);
2386
+ }
2387
+ /**
2388
+ * Get a list of all projects that are marked as archived.
2389
+ *
2390
+ * ## Errors
2391
+ * | Error Code | Description |
2392
+ * | :--- | :--- |
2393
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
2394
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2395
+ *
2396
+ * @auth
2397
+ *
2398
+ * @generated from protobuf rpc: GetAllArchivedProjects
2399
+ */
2400
+ getAllArchivedProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List> {
2401
+ const method = this.methods[38], opt = this._transport.mergeOptions(options);
2402
+ return stackIntercept<Nothing, Project_List>("unary", this._transport, method, opt, input);
2403
+ }
2404
+ /**
2405
+ * Get a list of all active projects the specified user is a member of.
2406
+ * Projects that the user is invited to are excluded.
2407
+ *
2408
+ * ## Errors
2409
+ * | Error Code | Description |
2410
+ * | :--- | :--- |
2411
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
2412
+ * | `NOT_FOUND` | No user with the provided ID was found. |
2413
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the calling user. |
2414
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2415
+ *
2416
+ * @auth
2417
+ *
2418
+ * @generated from protobuf rpc: GetAllProjectsForUser
2419
+ */
2420
+ getAllProjectsForUser(input: Id, options?: RpcOptions): UnaryCall<Id, Project_List> {
2421
+ const method = this.methods[39], opt = this._transport.mergeOptions(options);
2422
+ return stackIntercept<Id, Project_List>("unary", this._transport, method, opt, input);
2423
+ }
2424
+ /**
2425
+ * Get a list of all projects the specified user is a member of and that are
2426
+ * marked as archived.
2427
+ *
2428
+ * ## Errors
2429
+ * | Error Code | Description |
2430
+ * | :--- | :--- |
2431
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
2432
+ * | `NOT_FOUND` | No user with the provided ID was found. |
2433
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor the calling user. |
2434
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2435
+ *
2436
+ * @auth
2437
+ *
2438
+ * @generated from protobuf rpc: GetAllArchivedProjectsForUser
2439
+ */
2440
+ getAllArchivedProjectsForUser(input: Id, options?: RpcOptions): UnaryCall<Id, Project_List> {
2441
+ const method = this.methods[40], opt = this._transport.mergeOptions(options);
2442
+ return stackIntercept<Id, Project_List>("unary", this._transport, method, opt, input);
2443
+ }
2444
+ /**
2445
+ * Create a new project. All fields **must be specified** and **non-blank**.
2446
+ * The calling user is automatically a member of that project with the
2447
+ * **project admin** role (`MEMBER_ROLE_ADMIN`).
2448
+ * The project is created with the initial settings defined in the
2449
+ * [user settings](#service-snowballr.SnowballR-GetUserSettings) of the calling user.
2450
+ * If the project was successfully created, it is returned and **guaranteed to be specified**.
2451
+ *
2452
+ * ## Errors
2453
+ * | Error Code | Description |
2454
+ * | :--- | :--- |
2455
+ * | `INVALID_ARGUMENT` | The provided project name was blank. |
2456
+ * | `NOT_FOUND` | No user settings were found for the calling user. |
2457
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2458
+ *
2459
+ * @auth
2460
+ *
2461
+ * @generated from protobuf rpc: CreateProject
2462
+ */
2463
+ createProject(input: Project_Create, options?: RpcOptions): UnaryCall<Project_Create, Project> {
2464
+ const method = this.methods[41], opt = this._transport.mergeOptions(options);
2465
+ return stackIntercept<Project_Create, Project>("unary", this._transport, method, opt, input);
2466
+ }
2467
+ /**
2468
+ * Get a project by its ID.
2469
+ *
2470
+ * ## Errors
2471
+ * | Error Code | Description |
2472
+ * | :--- | :--- |
2473
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2474
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2475
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
2476
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2477
+ *
2478
+ * @auth
2479
+ *
2480
+ * @generated from protobuf rpc: GetProjectById
2481
+ */
2482
+ getProjectById(input: Id, options?: RpcOptions): UnaryCall<Id, Project> {
2483
+ const method = this.methods[42], opt = this._transport.mergeOptions(options);
2484
+ return stackIntercept<Id, Project>("unary", this._transport, method, opt, input);
2485
+ }
2486
+ /**
2487
+ * Update all attributes specified in the field mask for the project with the provided ID,
2488
+ * except the fields `current_stage` and `max_stage`. The updated project
2489
+ * is returned and **guaranteed to be specified**. The calling user is
2490
+ * **required to be a project admin**.
2491
+ *
2492
+ * The following rules apply:
2493
+ *
2494
+ * - If `status` = `PROJECT_STATUS_DELETED`: No updates are allowed.
2495
+ * - If `status` = `PROJECT_STATUS_ARCHIVED`: Only update of the `status` field is allowed.
2496
+ * - If `status` = `PROJECT_STATUS_ACTIVE`: All non-immutable fields may be updated.
2497
+ * - If `status` = `PROJECT_STATUS_ACTIVE_LOCKED`: All non-immutable fields, except the slr (project) settings, may be updated.
2498
+ * - The value `PROJECT_STATUS_DELETED` is not allowed when updating a project, as the [SoftDeleteProject](#service-snowballr.SnowballR-SoftDeleteProject) call must be used instead.
2499
+ *
2500
+ * >**Note:** If the project is locked and the request sets `status` to `PROJECT_STATUS_ACTIVE`, no error is returned and the server keeps the state as `PROJECT_STATUS_ACTIVE_LOCKED`.
2501
+ * Similarly, if the project is active and the request sets `status` to `PROJECT_STATUS_ACTIVE_LOCKED`, no error is returned and the server keeps the state as `PROJECT_STATUS_ACTIVE`.
2502
+ *
2503
+ * ## Errors
2504
+ * | Error Code | Description |
2505
+ * | :--- | :--- |
2506
+ * | `INVALID_ARGUMENT` | At least one (updated) project detail did not meet the requirements: The `id` must be a valid UUID, the `name` must not be left blank, the `status` must be specified and the project settings must be valid. The `status` needs to follow the rules outlined above. |
2507
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2508
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
2509
+ * | `FAILED_PRECONDITION` | The project is not in the appropriate state for the requested change. |
2510
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2511
+ *
2512
+ * @auth
2513
+ *
2514
+ * @generated from protobuf rpc: UpdateProject
2515
+ */
2516
+ updateProject(input: Project_Update, options?: RpcOptions): UnaryCall<Project_Update, Project> {
2517
+ const method = this.methods[43], opt = this._transport.mergeOptions(options);
2518
+ return stackIntercept<Project_Update, Project>("unary", this._transport, method, opt, input);
2519
+ }
2520
+ /**
2521
+ * Get all available export formats that the backend supports.
2522
+ * Each export format is identified by a unique string and can be used to specify the format
2523
+ * for the [ExportProject](#service-snowballr.SnowballR-ExportProject) call. The list is
2524
+ * **guaranteed to be non-empty** but **may change** at any time.
2525
+ *
2526
+ * @generated from protobuf rpc: GetAvailableExportFormats
2527
+ */
2528
+ getAvailableExportFormats(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, AvailableExportFormatsResponse> {
2529
+ const method = this.methods[44], opt = this._transport.mergeOptions(options);
2530
+ return stackIntercept<Nothing, AvailableExportFormatsResponse>("unary", this._transport, method, opt, input);
2531
+ }
2532
+ /**
2533
+ * Export the specified project in the specified format. A blob and a file name is returned.
2534
+ * This includes everything necessary for the project to be reimported and remain indistinguishable from the original.
2535
+ *
2536
+ * The filename includes the file extension so that the client doesn't have to figure out the file format. This could be
2537
+ * e.g. "demo_project-2025-11-10-00-25-31.json".
2538
+ *
2539
+ * ## Errors
2540
+ * | Error Code | Description |
2541
+ * | :--- | :--- |
2542
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the format is not a valid export format. |
2543
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2544
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
2545
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2546
+ *
2547
+ * @auth
2548
+ *
2549
+ * @generated from protobuf rpc: ExportProject
2550
+ */
2551
+ exportProject(input: ExportRequest, options?: RpcOptions): UnaryCall<ExportRequest, ExportResponse> {
2552
+ const method = this.methods[45], opt = this._transport.mergeOptions(options);
2553
+ return stackIntercept<ExportRequest, ExportResponse>("unary", this._transport, method, opt, input);
2554
+ }
2555
+ /**
2556
+ * Mark the specified project as deleted. It is not permanently removed from the database and can be restored later.
2557
+ * The calling user is **required to be a project admin**.
2558
+ *
2559
+ * ## Errors
2560
+ * | Error Code | Description |
2561
+ * | :--- | :--- |
2562
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2563
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2564
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
2565
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2566
+ *
2567
+ * @auth
2568
+ *
2569
+ * @generated from protobuf rpc: SoftDeleteProject
2570
+ */
2571
+ softDeleteProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing> {
2572
+ const method = this.methods[46], opt = this._transport.mergeOptions(options);
2573
+ return stackIntercept<Id, Nothing>("unary", this._transport, method, opt, input);
2574
+ }
2575
+ /**
2576
+ * Restore a previously deleted project to the **active** state.
2577
+ * The calling user is **required to be a project admin**.
2578
+ *
2579
+ * ## Errors
2580
+ * | Error Code | Description |
2581
+ * | :--- | :--- |
2582
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2583
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2584
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
2585
+ * | `FAILED_PRECONDITION` | The project to be restored is not deleted (i.e., not in state `PROJECT_STATUS_DELETED`). |
2586
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2587
+ *
2588
+ * @auth
2589
+ *
2590
+ * @generated from protobuf rpc: SoftUndeleteProject
2591
+ */
2592
+ softUndeleteProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing> {
2593
+ const method = this.methods[47], opt = this._transport.mergeOptions(options);
2594
+ return stackIntercept<Id, Nothing>("unary", this._transport, method, opt, input);
2595
+ }
2596
+ /**
2597
+ * Get information about the specified project.
2598
+ * The response only includes attributes specified in the field mask or all attributes when the field mask is not
2599
+ * specified or has an empty path list.
2600
+ *
2601
+ * ## Errors
2602
+ * | Error Code | Description |
2603
+ * | :--- | :--- |
2604
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2605
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2606
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
2607
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2608
+ *
2609
+ * @auth
2610
+ *
2611
+ * @generated from protobuf rpc: GetProjectInformation
2612
+ */
2613
+ getProjectInformation(input: Project_Information_Get, options?: RpcOptions): UnaryCall<Project_Information_Get, Project_Information> {
2614
+ const method = this.methods[48], opt = this._transport.mergeOptions(options);
2615
+ return stackIntercept<Project_Information_Get, Project_Information>("unary", this._transport, method, opt, input);
2616
+ }
2617
+ /**
2618
+ * Get the distribution of paper decisions within a project's stage, meaning
2619
+ * it returns the number of papers for each possible `PaperDecision` in the
2620
+ * specified stage.
2621
+ *
2622
+ * ## Errors
2623
+ * | Error Code | Description |
2624
+ * | :--- | :--- |
2625
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2626
+ * | `NOT_FOUND` | No project with the provided ID was found or the specified stage does not exist. |
2627
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
2628
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2629
+ *
2630
+ * @auth
2631
+ *
2632
+ * @generated from protobuf rpc: GetDecisionStatisticsForStage
2633
+ */
2634
+ getDecisionStatisticsForStage(input: Project_Information_DecisionStatistics_Get, options?: RpcOptions): UnaryCall<Project_Information_DecisionStatistics_Get, Project_Information_DecisionStatistics> {
2635
+ const method = this.methods[49], opt = this._transport.mergeOptions(options);
2636
+ return stackIntercept<Project_Information_DecisionStatistics_Get, Project_Information_DecisionStatistics>("unary", this._transport, method, opt, input);
2637
+ }
2638
+ /**
2639
+ * Get a criterion by its ID.
2640
+ *
2641
+ * ## Errors
2642
+ * | Error Code | Description |
2643
+ * | :--- | :--- |
2644
+ * | `INVALID_ARGUMENT` | The criterion ID is not a valid UUID. |
2645
+ * | `NOT_FOUND` | No criterion with the provided ID was found. |
2646
+ * | `PERMISSION_DENIED` | If the criterion is a user-criterion, the calling user is not the original creator of the criterion. If the criterion is a project-criterion, the user is not a member of the project the criterion belongs to. |
2647
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2648
+ *
2649
+ * @auth
2650
+ *
2651
+ * @generated from protobuf rpc: GetCriterionById
2652
+ */
2653
+ getCriterionById(input: Id, options?: RpcOptions): UnaryCall<Id, Criterion> {
2654
+ const method = this.methods[50], opt = this._transport.mergeOptions(options);
2655
+ return stackIntercept<Id, Criterion>("unary", this._transport, method, opt, input);
2656
+ }
2657
+ /**
2658
+ * Get all criteria associated with a given project.
2659
+ *
2660
+ * ## Errors
2661
+ * | Error Code | Description |
2662
+ * | :--- | :--- |
2663
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2664
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2665
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
2666
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2667
+ *
2668
+ * @auth
2669
+ *
2670
+ * @generated from protobuf rpc: GetAllCriteriaForProject
2671
+ */
2672
+ getAllCriteriaForProject(input: Id, options?: RpcOptions): UnaryCall<Id, Criterion_List> {
2673
+ const method = this.methods[51], opt = this._transport.mergeOptions(options);
2674
+ return stackIntercept<Id, Criterion_List>("unary", this._transport, method, opt, input);
2675
+ }
2676
+ /**
2677
+ * Create a new criterion. All fields **must be specified** and
2678
+ * **non-blank**. If the criterion is successfully created, it is returned and **guaranteed to be specified**.
2679
+ *
2680
+ * A user-criterion is created by leaving the `project_id` empty. For a project-criterion,
2681
+ * this field must be set and refer to a valid project in the **active** state.
2682
+ * When creating a project-criterion, the calling user is **required to be a project admin**.
2683
+ *
2684
+ * ## Errors
2685
+ * | Error Code | Description |
2686
+ * | :--- | :--- |
2687
+ * | `INVALID_ARGUMENT` | At least one input did not meet the requirements: All fields (except `project_id`) must not be blank and if the `project_id` is given, it must be a valid UUID. |
2688
+ * | `NOT_FOUND` | A project ID is given but does not refer to an existing project. |
2689
+ * | `PERMISSION_DENIED` | A project ID is given but the calling user is neither a server admin nor a project admin of the project the criterion should belong to. |
2690
+ * | `FAILED_PRECONDITION` | A project ID is given but does not refer to an active project (i.e., it is archived or deleted). |
2691
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2692
+ *
2693
+ * @auth
2694
+ *
2695
+ * @generated from protobuf rpc: CreateCriterion
2696
+ */
2697
+ createCriterion(input: Criterion_Create, options?: RpcOptions): UnaryCall<Criterion_Create, Criterion> {
2698
+ const method = this.methods[52], opt = this._transport.mergeOptions(options);
2699
+ return stackIntercept<Criterion_Create, Criterion>("unary", this._transport, method, opt, input);
2700
+ }
2701
+ /**
2702
+ * Update all attributes specified in the field mask for the criterion with the given ID.
2703
+ * The updated criterion is returned and **guaranteed to be specified**.
2704
+ * If the updated criterion is a user-criterion, the calling user
2705
+ * is **required to be the creator of the criterion**. If it is a
2706
+ * project-criterion, the calling user is **required to be a project admin**.
2707
+ *
2708
+ * ## Errors
2709
+ * | Error Code | Description |
2710
+ * | :--- | :--- |
2711
+ * | `INVALID_ARGUMENT` | At least one (updated) criterion detail did not meet the requirements: All fields (except `project_id`) must not be blank and if the `project_id` is given, it must be a valid UUID. |
2712
+ * | `NOT_FOUND` | No criterion with the provided ID was found or a project ID is given but does not refer to an existing project. |
2713
+ * | `PERMISSION_DENIED` | If the criterion is a user-criterion, the calling user is not the original creator of the criterion. If the criterion is a project-criterion, the calling user is neither a server admin nor a project admin of the project the criterion belongs to. |
2714
+ * | `FAILED_PRECONDITION` | A project ID is given but does not refer to an active project (i.e., it is archived or deleted). |
2715
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2716
+ *
2717
+ * @auth
2718
+ *
2719
+ * @generated from protobuf rpc: UpdateCriterion
2720
+ */
2721
+ updateCriterion(input: Criterion_Update, options?: RpcOptions): UnaryCall<Criterion_Update, Criterion> {
2722
+ const method = this.methods[53], opt = this._transport.mergeOptions(options);
2723
+ return stackIntercept<Criterion_Update, Criterion>("unary", this._transport, method, opt, input);
2724
+ }
2725
+ /**
2726
+ * Permanently delete the specified criterion. All references to it will also
2727
+ * be removed. **This cannot be undone**.
2728
+ * If the deleted criterion is a user-criterion, the calling user
2729
+ * is **required to be the creator of the criterion**. If it is a
2730
+ * project-criterion, the calling user is **required to be a project admin**.
2731
+ *
2732
+ * ## Errors
2733
+ * | Error Code | Description |
2734
+ * | :--- | :--- |
2735
+ * | `INVALID_ARGUMENT` | If the criterion is a project-criterion, the project ID is not a valid UUID. |
2736
+ * | `NOT_FOUND` | No criterion with the provided ID was found. |
2737
+ * | `PERMISSION_DENIED` | If the criterion is a user-criterion, the calling user is not the original creator of the criterion. If the criterion is a project-criterion, the calling user is neither a server admin nor a project admin of the project the criterion belongs to. |
2738
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2739
+ *
2740
+ * @auth
2741
+ *
2742
+ * @generated from protobuf rpc: DeleteCriterion
2743
+ */
2744
+ deleteCriterion(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing> {
2745
+ const method = this.methods[54], opt = this._transport.mergeOptions(options);
2746
+ return stackIntercept<Id, Nothing>("unary", this._transport, method, opt, input);
2747
+ }
2748
+ /**
2749
+ * Get a project paper by its ID.
2750
+ *
2751
+ * ## Errors
2752
+ * | Error Code | Description |
2753
+ * | :--- | :--- |
2754
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
2755
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
2756
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
2757
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2758
+ *
2759
+ * @auth
2760
+ *
2761
+ * @generated from protobuf rpc: GetProjectPaperById
2762
+ */
2763
+ getProjectPaperById(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper> {
2764
+ const method = this.methods[55], opt = this._transport.mergeOptions(options);
2765
+ return stackIntercept<Id, Project_Paper>("unary", this._transport, method, opt, input);
2766
+ }
2767
+ /**
2768
+ * Get a project paper using the project ID and the relative ID (`local_id`) within that
2769
+ * project. The relative ID is only **unique within its project**, not globally.
2770
+ * Prefer [GetProjectPaperById](#service-snowballr.SnowballR-GetProjectPaperById) wherever possible.
2771
+ *
2772
+ * ## Errors
2773
+ * | Error Code | Description |
2774
+ * | :--- | :--- |
2775
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the relative ID is not a non-negative Long number. |
2776
+ * | `NOT_FOUND` | No project paper with the provided relative ID was found. Either the project does not exist or the relative ID was not found within the project. |
2777
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
2778
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2779
+ *
2780
+ * @auth
2781
+ *
2782
+ * @generated from protobuf rpc: GetProjectPaperByRelativeId
2783
+ */
2784
+ getProjectPaperByRelativeId(input: Project_Paper_Get, options?: RpcOptions): UnaryCall<Project_Paper_Get, Project_Paper> {
2785
+ const method = this.methods[56], opt = this._transport.mergeOptions(options);
2786
+ return stackIntercept<Project_Paper_Get, Project_Paper>("unary", this._transport, method, opt, input);
2787
+ }
2788
+ /**
2789
+ * Get all project papers associated with the given project.
2790
+ *
2791
+ * ## Errors
2792
+ * | Error Code | Description |
2793
+ * | :--- | :--- |
2794
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2795
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2796
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project. |
2797
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2798
+ *
2799
+ * @auth
2800
+ *
2801
+ * @generated from protobuf rpc: GetAllProjectPapersForProject
2802
+ */
2803
+ getAllProjectPapersForProject(input: Id, options?: RpcOptions): UnaryCall<Id, Project_Paper_List> {
2804
+ const method = this.methods[57], opt = this._transport.mergeOptions(options);
2805
+ return stackIntercept<Id, Project_Paper_List>("unary", this._transport, method, opt, input);
2806
+ }
2807
+ /**
2808
+ * Add the provided paper to the given project at the specified stage.
2809
+ * The stage must be non-negative and less than or equal to the project's `max_stage`.
2810
+ * The calling user is **required to be a project admin**.
2811
+ *
2812
+ * ## Errors
2813
+ * | Error Code | Description |
2814
+ * | :--- | :--- |
2815
+ * | `INVALID_ARGUMENT` | The project ID or paper ID is not a valid UUID, or the provided stage either is not a valid number or does not exist in the project, i.e., the stage was less than zero or greater than `max_stage`. |
2816
+ * | `NOT_FOUND` | No project with the provided project ID or paper with the provided paper ID was found. |
2817
+ * | `ALREADY_EXISTS` | The provided paper already exists within the project. |
2818
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
2819
+ * | `FAILED_PRECONDITION` | The project is not active (i.e., archived or deleted). |
2820
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2821
+ *
2822
+ * @auth
2823
+ *
2824
+ * @generated from protobuf rpc: AddPaperToProject
2825
+ */
2826
+ addPaperToProject(input: Project_Paper_Add, options?: RpcOptions): UnaryCall<Project_Paper_Add, Project_Paper> {
2827
+ const method = this.methods[58], opt = this._transport.mergeOptions(options);
2828
+ return stackIntercept<Project_Paper_Add, Project_Paper>("unary", this._transport, method, opt, input);
2829
+ }
2830
+ /**
2831
+ * Update all attributes specified in the field mask for the project paper with the provided ID,
2832
+ * except the fields `local_id`, `decision`, `stage`, and `reviews`. Furthermore, the underlying paper
2833
+ * cannot be modified; use the [UpdatePaper](#service-snowballr.SnowballR-UpdatePaper) call for this. The updated
2834
+ * project paper is returned and **guaranteed to be specified**.
2835
+ * The calling user is **required to be a project admin**.
2836
+ *
2837
+ * ## Errors
2838
+ * | Error Code | Description |
2839
+ * | :--- | :--- |
2840
+ * | `INVALID_ARGUMENT` | The project paper ID or paper ID is not a valid UUID. |
2841
+ * | `NOT_FOUND` | No project paper with the provided ID or paper with the provided ID was found. |
2842
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project the project paper belongs to. |
2843
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2844
+ *
2845
+ * @auth
2846
+ *
2847
+ * @generated from protobuf rpc: UpdateProjectPaper
2848
+ */
2849
+ updateProjectPaper(input: Project_Paper_Update, options?: RpcOptions): UnaryCall<Project_Paper_Update, Project_Paper> {
2850
+ const method = this.methods[59], opt = this._transport.mergeOptions(options);
2851
+ return stackIntercept<Project_Paper_Update, Project_Paper>("unary", this._transport, method, opt, input);
2852
+ }
2853
+ /**
2854
+ * Permanently remove the specified project paper from the project. All
2855
+ * references to this project paper will also be deleted. **This cannot be
2856
+ * undone**.
2857
+ * The calling user is **required to be a project admin**.
2858
+ *
2859
+ * ## Errors
2860
+ * | Error Code | Description |
2861
+ * | :--- | :--- |
2862
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
2863
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
2864
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project the project paper belongs to. |
2865
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2866
+ *
2867
+ * @auth
2868
+ *
2869
+ * @generated from protobuf rpc: RemovePaperFromProject
2870
+ */
2871
+ removePaperFromProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing> {
2872
+ const method = this.methods[60], opt = this._transport.mergeOptions(options);
2873
+ return stackIntercept<Id, Nothing>("unary", this._transport, method, opt, input);
2874
+ }
2875
+ /**
2876
+ * Get a review by its ID.
2877
+ *
2878
+ * ## Errors
2879
+ * | Error Code | Description |
2880
+ * | :--- | :--- |
2881
+ * | `INVALID_ARGUMENT` | The review ID is not a valid UUID. |
2882
+ * | `NOT_FOUND` | No review with the provided ID was found. |
2883
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the review belongs to. |
2884
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2885
+ *
2886
+ * @auth
2887
+ *
2888
+ * @generated from protobuf rpc: GetReviewById
2889
+ */
2890
+ getReviewById(input: Id, options?: RpcOptions): UnaryCall<Id, Review> {
2891
+ const method = this.methods[61], opt = this._transport.mergeOptions(options);
2892
+ return stackIntercept<Id, Review>("unary", this._transport, method, opt, input);
2893
+ }
2894
+ /**
2895
+ * Get all reviews for the specific project paper.
2896
+ *
2897
+ * ## Errors
2898
+ * | Error Code | Description |
2899
+ * | :--- | :--- |
2900
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
2901
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
2902
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
2903
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2904
+ *
2905
+ * @auth
2906
+ *
2907
+ * @generated from protobuf rpc: GetAllReviewsForProjectPaper
2908
+ */
2909
+ getAllReviewsForProjectPaper(input: Id, options?: RpcOptions): UnaryCall<Id, Review_List> {
2910
+ const method = this.methods[62], opt = this._transport.mergeOptions(options);
2911
+ return stackIntercept<Id, Review_List>("unary", this._transport, method, opt, input);
2912
+ }
2913
+ /**
2914
+ * Create a new review for the specific project paper. All fields **must be
2915
+ * specified** and **non-blank**. The field `selected_criteria_ids` **may be empty**. The
2916
+ * calling user must not currently have another review for this project paper.
2917
+ * The paper must also be currently `UNREVIEWED` or `IN_REVIEW`, i.e., not finally decided. The user also
2918
+ * has to be a member of the same project the project paper belongs to. If the review is successfully created,
2919
+ * it is returned and **guaranteed to be specified**.
2920
+ *
2921
+ * ## Errors
2922
+ * | Error Code | Description |
2923
+ * | :--- | :--- |
2924
+ * | `INVALID_ARGUMENT` | At least one input did not meet the requirements: The project paper ID must be a valid UUID, the decision must be specified, and if given, the selected criteria IDs must be a list of valid UUIDs. |
2925
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
2926
+ * | `ALREADY_EXISTS` | The user has already created a review for the specified project paper. |
2927
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the project the project paper belongs to. |
2928
+ * | `FAILED_PRECONDITION` | The project paper is not in the `PAPER_DECISION_UNREVIEWED` or `PAPER_DECISION_IN_REVIEW` state, or the project is not active (i.e., it is archived or deleted). |
2929
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2930
+ *
2931
+ * @auth
2932
+ *
2933
+ * @generated from protobuf rpc: CreateReview
2934
+ */
2935
+ createReview(input: Review_Create, options?: RpcOptions): UnaryCall<Review_Create, Review> {
2936
+ const method = this.methods[63], opt = this._transport.mergeOptions(options);
2937
+ return stackIntercept<Review_Create, Review>("unary", this._transport, method, opt, input);
2938
+ }
2939
+ /**
2940
+ * Update all attributes specified in the field mask for the review with the given ID, except the `user_id` field.
2941
+ * The updated review is returned and **guaranteed to be specified**. Only the
2942
+ * owner of a review is allowed to update a review and must be a member of the project the review is in.
2943
+ * A user is the owner of a review if the review's `user_id` matches the user's `id`.
2944
+ *
2945
+ * ## Errors
2946
+ * | Error Code | Description |
2947
+ * | :--- | :--- |
2948
+ * | `INVALID_ARGUMENT` | At least one (updated) review detail did not meet the requirements: The review ID must be a valid UUID, the decision must be specified, and if given, the selected criteria IDs must be a list of valid UUIDs. |
2949
+ * | `NOT_FOUND` | No review with the provided ID was found. |
2950
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin, the owner of the review, nor in the same project as the review. |
2951
+ * | `FAILED_PRECONDITION` | The project paper is in a state in which no further modifications to the review are allowed, or the project is not active (i.e., it is archived or deleted). |
2952
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2953
+ *
2954
+ * @auth
2955
+ *
2956
+ * @generated from protobuf rpc: UpdateReview
2957
+ */
2958
+ updateReview(input: Review_Update, options?: RpcOptions): UnaryCall<Review_Update, Review> {
2959
+ const method = this.methods[64], opt = this._transport.mergeOptions(options);
2960
+ return stackIntercept<Review_Update, Review>("unary", this._transport, method, opt, input);
2961
+ }
2962
+ /**
2963
+ * Permanently remove the specified review from the project paper. **This
2964
+ * cannot be undone**. Only the owner of a review is allowed to delete a
2965
+ * review. The owner of the review must be a member of the project the
2966
+ * review is in, in order to remove it. A user is the owner of a review if the
2967
+ * review's `user_id` matches the user's `id`.
2968
+ *
2969
+ * ## Errors
2970
+ * | Error Code | Description |
2971
+ * | :--- | :--- |
2972
+ * | `INVALID_ARGUMENT` | The review ID is not a valid UUID. |
2973
+ * | `NOT_FOUND` | No review with the provided ID was found. |
2974
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin, the owner of the review, nor in the same project as the review. |
2975
+ * | `FAILED_PRECONDITION` | The project paper is in a state in which no deletions of reviews are allowed anymore, or the project is not active (i.e., it is archived or deleted). |
2976
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2977
+ *
2978
+ * @auth
2979
+ *
2980
+ * @generated from protobuf rpc: DeleteReview
2981
+ */
2982
+ deleteReview(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing> {
2983
+ const method = this.methods[65], opt = this._transport.mergeOptions(options);
2984
+ return stackIntercept<Id, Nothing>("unary", this._transport, method, opt, input);
2985
+ }
2986
+ /**
2987
+ * Get a paper by its ID.
2988
+ *
2989
+ * ## Errors
2990
+ * | Error Code | Description |
2991
+ * | :--- | :--- |
2992
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
2993
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
2994
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2995
+ *
2996
+ * @auth
2997
+ *
2998
+ * @generated from protobuf rpc: GetPaperById
2999
+ */
3000
+ getPaperById(input: Id, options?: RpcOptions): UnaryCall<Id, Paper> {
3001
+ const method = this.methods[66], opt = this._transport.mergeOptions(options);
3002
+ return stackIntercept<Id, Paper>("unary", this._transport, method, opt, input);
3003
+ }
3004
+ /**
3005
+ * Search the local database for papers using a search string in order to find
3006
+ * candidates for addition to the specified project. The search is performed
3007
+ * only within the papers that are already in the local database and not yet
3008
+ * added to the specified project.
3009
+ *
3010
+ * The client can use these search results to add papers to the project using
3011
+ * the [AddPaperToProject](#service-snowballr.SnowballR-AddPaperToProject)
3012
+ * call.
3013
+ *
3014
+ * There are no restrictions on the search query in terms of valid values,
3015
+ * except the length.
3016
+ * The backend is fully responsible for deciding which paper attributes the
3017
+ * query is matched against and is supposed to provide the best results for
3018
+ * the given query.
3019
+ *
3020
+ * ## Errors
3021
+ * | Error Code | Description |
3022
+ * | :--- | :--- |
3023
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the search query is either blank or exceeds its maximum length. |
3024
+ * | `NOT_FOUND` | No project with the provided ID was found. |
3025
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the specified project. |
3026
+ * | `UNAUTHENTICATED` | The user is not signed in. |
3027
+ *
3028
+ * @auth
3029
+ *
3030
+ * @generated from protobuf rpc: SearchLocalProjectPaperCandidates
3031
+ */
3032
+ searchLocalProjectPaperCandidates(input: Project_Paper_SearchQuery, options?: RpcOptions): UnaryCall<Project_Paper_SearchQuery, Paper_List> {
3033
+ const method = this.methods[67], opt = this._transport.mergeOptions(options);
3034
+ return stackIntercept<Project_Paper_SearchQuery, Paper_List>("unary", this._transport, method, opt, input);
3035
+ }
3036
+ /**
3037
+ * Search for papers that match the search query using all available fetchers
3038
+ * of the specified project in order to find candidates for addition to the
3039
+ * project. The search is performed only on papers that are found by the
3040
+ * fetchers, but not yet added to the specified project.
3041
+ *
3042
+ * Fetcher papers that already exist in the local database include their
3043
+ * respective IDs, while papers that do not exist have an empty `id` field in
3044
+ * the search results. The client can use this information to first add papers
3045
+ * that do not exist in the local database to the database using the
3046
+ * [CreatePaper](#service-snowballr.SnowballR-CreatePaper) call and then add
3047
+ * them to the project using the
3048
+ * [AddPaperToProject](#service-snowballr.SnowballR-AddPaperToProject) call.
3049
+ *
3050
+ * There are no restrictions on the search query in terms of valid values,
3051
+ * except the length.
3052
+ * The backend is fully responsible for deciding which paper attributes the
3053
+ * query is matched against and is supposed to provide the best results for
3054
+ * the given query.
3055
+ *
3056
+ * ## Errors
3057
+ * | Error Code | Description |
3058
+ * | :--- | :--- |
3059
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID or the search query is either blank or exceeds its maximum length. |
3060
+ * | `NOT_FOUND` | No project with the provided ID was found. |
3061
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a member of the specified project. |
3062
+ * | `UNAUTHENTICATED` | The user is not signed in. |
3063
+ *
3064
+ * @auth
3065
+ *
3066
+ * @generated from protobuf rpc: SearchFetcherProjectPaperCandidates
3067
+ */
3068
+ searchFetcherProjectPaperCandidates(input: Project_Paper_SearchQuery, options?: RpcOptions): UnaryCall<Project_Paper_SearchQuery, Paper_List> {
3069
+ const method = this.methods[68], opt = this._transport.mergeOptions(options);
3070
+ return stackIntercept<Project_Paper_SearchQuery, Paper_List>("unary", this._transport, method, opt, input);
3071
+ }
3072
+ /**
3073
+ * Create a new paper. The `id` field will be ignored and set by
3074
+ * the server. The created paper is returned and **guaranteed to be specified**.
3075
+ *
3076
+ * Validation details:
3077
+ *
3078
+ * - only the `title` is required, in the sense that it must not be blank
3079
+ * - text fields: `external_id`, `title`, `abstrakt`, `publisher`, `publication_name` and `publication_type`
3080
+ * - valid year range: 0 to this year + 1, i.e., if this year is 2025, the maximum year value is 2026
3081
+ * - valid author list: each author must be valid and the list must not exceed its maximum length
3082
+ * - valid author: `first_name` and `last_name` must both be non-blank and must not exceed their maximum length.
3083
+ *
3084
+ * ## Errors
3085
+ * | Error Code | Description |
3086
+ * | :--- | :--- |
3087
+ * | `INVALID_ARGUMENT` | At least one of the text fields exceeds its maximum length, the title is blank, the year is invalid, or the author list is invalid. For more details, see above. |
3088
+ * | `ALREADY_EXISTS` | The paper with the provided information already exists or is too similar to an existing paper. |
3089
+ * | `UNAUTHENTICATED` | The user is not signed in. |
3090
+ *
3091
+ * @auth
3092
+ *
3093
+ * @generated from protobuf rpc: CreatePaper
3094
+ */
3095
+ createPaper(input: Paper, options?: RpcOptions): UnaryCall<Paper, Paper> {
3096
+ const method = this.methods[69], opt = this._transport.mergeOptions(options);
3097
+ return stackIntercept<Paper, Paper>("unary", this._transport, method, opt, input);
3098
+ }
3099
+ /**
3100
+ * Update all attributes specified in the field mask for the paper with the given ID, except the field `has_pdf`.
3101
+ * The updated paper is returned and **guaranteed to be specified**.
3102
+ *
3103
+ * For validation details, see [CreatePaper](#service-snowballr.SnowballR-CreatePaper).
3104
+ *
3105
+ * ## Errors
3106
+ * | Error Code | Description |
3107
+ * | :--- | :--- |
3108
+ * | `INVALID_ARGUMENT` | At least one of the text fields exceeds its maximum length, the title is blank, the paper ID is not a valid UUID, the year is invalid, or the author list is invalid. For more details, see [CreatePaper](#service-snowballr.SnowballR-CreatePaper). |
3109
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
3110
+ * | `ALREADY_EXISTS` | The paper with the provided information already exists or is too similar to an existing paper. |
3111
+ * | `UNAUTHENTICATED` | The user is not signed in. |
3112
+ *
3113
+ * @auth
3114
+ *
3115
+ * @generated from protobuf rpc: UpdatePaper
3116
+ */
3117
+ updatePaper(input: Paper_Update, options?: RpcOptions): UnaryCall<Paper_Update, Paper> {
3118
+ const method = this.methods[70], opt = this._transport.mergeOptions(options);
3119
+ return stackIntercept<Paper_Update, Paper>("unary", this._transport, method, opt, input);
3120
+ }
3121
+ /**
3122
+ * Get a list of papers that are referring to the provided paper, i.e., the papers that cite this paper.
3123
+ *
3124
+ * ## Errors
3125
+ * | Error Code | Description |
3126
+ * | :--- | :--- |
3127
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
3128
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
3129
+ * | `UNAUTHENTICATED` | The user is not signed in. |
3130
+ *
3131
+ * @auth
3132
+ *
3133
+ * @generated from protobuf rpc: GetForwardReferencedPapers
3134
+ */
3135
+ getForwardReferencedPapers(input: Id, options?: RpcOptions): UnaryCall<Id, Paper_List> {
3136
+ const method = this.methods[71], opt = this._transport.mergeOptions(options);
3137
+ return stackIntercept<Id, Paper_List>("unary", this._transport, method, opt, input);
3138
+ }
3139
+ /**
3140
+ * Get a list of papers that are referred to by the provided paper, i.e., the references of this paper.
3141
+ *
3142
+ * ## Errors
3143
+ * | Error Code | Description |
3144
+ * | :--- | :--- |
3145
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
3146
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
3147
+ * | `UNAUTHENTICATED` | The user is not signed in. |
3148
+ *
3149
+ * @auth
3150
+ *
3151
+ * @generated from protobuf rpc: GetBackwardReferencedPapers
3152
+ */
3153
+ getBackwardReferencedPapers(input: Id, options?: RpcOptions): UnaryCall<Id, Paper_List> {
3154
+ const method = this.methods[72], opt = this._transport.mergeOptions(options);
3155
+ return stackIntercept<Id, Paper_List>("unary", this._transport, method, opt, input);
3156
+ }
3157
+ /**
3158
+ * Get a paper's PDF as a blob.
3159
+ *
3160
+ * ## Errors
3161
+ * | Error Code | Description |
3162
+ * | :--- | :--- |
3163
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
3164
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
3165
+ * | `FAILED_PRECONDITION` | The paper has no attached PDF (see [Paper.has_pdf](#message-snowballr.Paper)). |
3166
+ * | `UNAUTHENTICATED` | The user is not signed in. |
3167
+ *
3168
+ * @auth
3169
+ *
3170
+ * @generated from protobuf rpc: GetPaperPdf
3171
+ */
3172
+ getPaperPdf(input: Id, options?: RpcOptions): UnaryCall<Id, Blob> {
3173
+ const method = this.methods[73], opt = this._transport.mergeOptions(options);
3174
+ return stackIntercept<Id, Blob>("unary", this._transport, method, opt, input);
3175
+ }
3176
+ /**
3177
+ * Set or overwrite the PDF for the specified paper. This call may also be
3178
+ * used to remove the PDF of a paper by omitting the `pdf` field.
3179
+ * The paper's `has_pdf` field is automatically updated by the server.
3180
+ *
3181
+ * ## Errors
3182
+ * | Error Code | Description |
3183
+ * | :--- | :--- |
3184
+ * | `INVALID_ARGUMENT` | The PDF is not in the correct format, or the paper ID is not a valid UUID. |
3185
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
3186
+ * | `RESOURCE_EXHAUSTED` | The PDF was rejected by the server, e.g., because it is too large. |
3187
+ * | `UNAUTHENTICATED` | The user is not signed in. |
3188
+ *
3189
+ * @auth
3190
+ *
3191
+ * @generated from protobuf rpc: SetPaperPdf
3192
+ */
3193
+ setPaperPdf(input: Paper_PdfUpdate, options?: RpcOptions): UnaryCall<Paper_PdfUpdate, Nothing> {
3194
+ const method = this.methods[74], opt = this._transport.mergeOptions(options);
3195
+ return stackIntercept<Paper_PdfUpdate, Nothing>("unary", this._transport, method, opt, input);
3196
+ }
3197
+ }