@se-uulm/snowballr-grpc-client 0.2.1-alpha.cd5bc05 → 0.2.1-alpha.e8cc484

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.
@@ -6,12 +6,16 @@
6
6
  //
7
7
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
8
8
  import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
9
+ import type { Paper_PdfUpdate } from "./paper.js";
10
+ import type { Blob } from "./base.js";
9
11
  import type { Paper_Update } from "./paper.js";
10
12
  import type { Project_Paper_SearchQuery } from "./project.js";
11
13
  import type { Paper } from "./paper.js";
14
+ import type { Review_Update } from "./review.js";
12
15
  import type { Review_Create } from "./review.js";
13
16
  import type { Review_List } from "./review.js";
14
17
  import type { Review } from "./review.js";
18
+ import type { Project_Paper_Update } from "./project.js";
15
19
  import type { Project_Paper_Add } from "./project.js";
16
20
  import type { Project_Paper_Get } from "./project.js";
17
21
  import type { Criterion_Update } from "./criterion.js";
@@ -47,6 +51,8 @@ import type { Id } from "./base.js";
47
51
  import type { User } from "./user.js";
48
52
  import type { User_List } from "./user.js";
49
53
  import type { PasswordChangeRequest } from "./authentication.js";
54
+ import type { PasswordResetRequest } from "./authentication.js";
55
+ import type { RequestPasswordResetRequest } from "./authentication.js";
50
56
  import type { AuthenticationStatusResponse } from "./authentication.js";
51
57
  import type { LoginRequest } from "./authentication.js";
52
58
  import type { VerifyEmailRequest } from "./authentication.js";
@@ -280,6 +286,40 @@ export interface ISnowballRClient {
280
286
  * @generated from protobuf rpc: RenewSession
281
287
  */
282
288
  renewSession(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Nothing>;
289
+ /**
290
+ * If the provided email address belongs to an active user, the server sends a
291
+ * challenge/token to that address. This token must then be sent
292
+ * alongside a new password
293
+ * (see [ResetPassword](#service-snowballr.SnowballR-ResetPassword)) in order
294
+ * to update a lost or forgotten password.
295
+ *
296
+ * ## Errors
297
+ * | Error Code | Description |
298
+ * | :--- | :--- |
299
+ * | `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. |
300
+ * | `INTERNAL` | The verification email could not be sent. |
301
+ *
302
+ * @generated from protobuf rpc: RequestPasswordReset
303
+ */
304
+ requestPasswordReset(input: RequestPasswordResetRequest, options?: RpcOptions): UnaryCall<RequestPasswordResetRequest, Nothing>;
305
+ /**
306
+ * After requesting a password reset email using
307
+ * [RequestPasswordReset](#service-snowballr.SnowballR-RequestPasswordReset),
308
+ * this call may be used to actually set the new password. To verify the
309
+ * ownership of the account, the token sent via email must also be provided
310
+ * and valid. The new password must follow the same rules as during
311
+ * [registration](#service-snowballr.SnowballR-Register).
312
+ *
313
+ * ## Errors
314
+ * | Error Code | Description |
315
+ * | :--- | :--- |
316
+ * | `INVALID_ARGUMENT` | Either the provided token is invalid, or the new password does not meet the rules specified in [Register](#service-snowballr.SnowballR-Register). |
317
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
318
+ * | `UNAUTHENTICATED` | The provided token could not be found or has expired. |
319
+ *
320
+ * @generated from protobuf rpc: ResetPassword
321
+ */
322
+ resetPassword(input: PasswordResetRequest, options?: RpcOptions): UnaryCall<PasswordResetRequest, Nothing>;
283
323
  /**
284
324
  * Set a new password using the old password.
285
325
  * The new password must follow the same rules as during
@@ -397,6 +437,24 @@ export interface ISnowballRClient {
397
437
  * @generated from protobuf rpc: SoftDeleteUser
398
438
  */
399
439
  softDeleteUser(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
440
+ /**
441
+ * Allow a previously soft-deleted user to log in again.
442
+ * The calling user is **required to be an admin**.
443
+ *
444
+ * ## Errors
445
+ * | Error Code | Description |
446
+ * | :--- | :--- |
447
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
448
+ * | `NOT_FOUND` | No user with the provided ID was found. |
449
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
450
+ * | `FAILED_PRECONDITION` | The user to be restored is not deleted (i.e., not in state `USER_STATUS_DELETED`). |
451
+ * | `UNAUTHENTICATED` | The user is not signed in. |
452
+ *
453
+ * @auth
454
+ *
455
+ * @generated from protobuf rpc: SoftUndeleteUser
456
+ */
457
+ softUndeleteUser(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
400
458
  /**
401
459
  * Get the user-specific settings for the calling user. The user settings are returned and **guaranteed to be specified**.
402
460
  *
@@ -429,6 +487,21 @@ export interface ISnowballRClient {
429
487
  * @generated from protobuf rpc: UpdateUserSettings
430
488
  */
431
489
  updateUserSettings(input: UserSettings_Update, options?: RpcOptions): UnaryCall<UserSettings_Update, UserSettings>;
490
+ /**
491
+ * Get all project papers that the calling user can review. It is not
492
+ * guaranteed that the returned papers belong to the same project.
493
+ * The returned paper list **may be empty** if no papers can be reviewed.
494
+ *
495
+ * ## Errors
496
+ * | Error Code | Description |
497
+ * | :--- | :--- |
498
+ * | `UNAUTHENTICATED` | The user is not signed in. |
499
+ *
500
+ * @auth
501
+ *
502
+ * @generated from protobuf rpc: GetAllPapersToReview
503
+ */
504
+ getAllPapersToReview(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_Paper_List>;
432
505
  /**
433
506
  * Get all project papers from the project identified by its ID that
434
507
  * the calling user can review.
@@ -708,6 +781,20 @@ export interface ISnowballRClient {
708
781
  * @generated from protobuf rpc: GetAllProjects
709
782
  */
710
783
  getAllProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List>;
784
+ /**
785
+ * Get a list of all projects that are marked as deleted.
786
+ *
787
+ * ## Errors
788
+ * | Error Code | Description |
789
+ * | :--- | :--- |
790
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
791
+ * | `UNAUTHENTICATED` | The user is not signed in. |
792
+ *
793
+ * @auth
794
+ *
795
+ * @generated from protobuf rpc: GetAllDeletedProjects
796
+ */
797
+ getAllDeletedProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List>;
711
798
  /**
712
799
  * Get a list of all projects the specified user is a member of and that are
713
800
  * marked as deleted.
@@ -725,6 +812,20 @@ export interface ISnowballRClient {
725
812
  * @generated from protobuf rpc: GetAllDeletedProjectsForUser
726
813
  */
727
814
  getAllDeletedProjectsForUser(input: Id, options?: RpcOptions): UnaryCall<Id, Project_List>;
815
+ /**
816
+ * Get a list of all projects that are marked as archived.
817
+ *
818
+ * ## Errors
819
+ * | Error Code | Description |
820
+ * | :--- | :--- |
821
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
822
+ * | `UNAUTHENTICATED` | The user is not signed in. |
823
+ *
824
+ * @auth
825
+ *
826
+ * @generated from protobuf rpc: GetAllArchivedProjects
827
+ */
828
+ getAllArchivedProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List>;
728
829
  /**
729
830
  * Get a list of all active projects the specified user is a member of.
730
831
  * Projects that the user is invited to are excluded.
@@ -872,6 +973,24 @@ export interface ISnowballRClient {
872
973
  * @generated from protobuf rpc: SoftDeleteProject
873
974
  */
874
975
  softDeleteProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
976
+ /**
977
+ * Restore a previously deleted project to the **active** state.
978
+ * The calling user is **required to be a project admin**.
979
+ *
980
+ * ## Errors
981
+ * | Error Code | Description |
982
+ * | :--- | :--- |
983
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
984
+ * | `NOT_FOUND` | No project with the provided ID was found. |
985
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
986
+ * | `FAILED_PRECONDITION` | The project to be restored is not deleted (i.e., not in state `PROJECT_STATUS_DELETED`). |
987
+ * | `UNAUTHENTICATED` | The user is not signed in. |
988
+ *
989
+ * @auth
990
+ *
991
+ * @generated from protobuf rpc: SoftUndeleteProject
992
+ */
993
+ softUndeleteProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
875
994
  /**
876
995
  * Get information about the specified project.
877
996
  * The response only includes attributes specified in the field mask or all attributes when the field mask is not
@@ -1077,6 +1196,45 @@ export interface ISnowballRClient {
1077
1196
  * @generated from protobuf rpc: AddPaperToProject
1078
1197
  */
1079
1198
  addPaperToProject(input: Project_Paper_Add, options?: RpcOptions): UnaryCall<Project_Paper_Add, Project_Paper>;
1199
+ /**
1200
+ * Update all attributes specified in the field mask for the project paper with the provided ID,
1201
+ * except the fields `local_id`, `decision`, `stage`, and `reviews`. Furthermore, the underlying paper
1202
+ * cannot be modified; use the [UpdatePaper](#service-snowballr.SnowballR-UpdatePaper) call for this. The updated
1203
+ * project paper is returned and **guaranteed to be specified**.
1204
+ * The calling user is **required to be a project admin**.
1205
+ *
1206
+ * ## Errors
1207
+ * | Error Code | Description |
1208
+ * | :--- | :--- |
1209
+ * | `INVALID_ARGUMENT` | The project paper ID or paper ID is not a valid UUID. |
1210
+ * | `NOT_FOUND` | No project paper with the provided ID or paper with the provided ID was found. |
1211
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project the project paper belongs to. |
1212
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1213
+ *
1214
+ * @auth
1215
+ *
1216
+ * @generated from protobuf rpc: UpdateProjectPaper
1217
+ */
1218
+ updateProjectPaper(input: Project_Paper_Update, options?: RpcOptions): UnaryCall<Project_Paper_Update, Project_Paper>;
1219
+ /**
1220
+ * Permanently remove the specified project paper from the project. All
1221
+ * references to this project paper will also be deleted. **This cannot be
1222
+ * undone**.
1223
+ * The calling user is **required to be a project admin**.
1224
+ *
1225
+ * ## Errors
1226
+ * | Error Code | Description |
1227
+ * | :--- | :--- |
1228
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
1229
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
1230
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project the project paper belongs to. |
1231
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1232
+ *
1233
+ * @auth
1234
+ *
1235
+ * @generated from protobuf rpc: RemovePaperFromProject
1236
+ */
1237
+ removePaperFromProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
1080
1238
  /**
1081
1239
  * Get a review by its ID.
1082
1240
  *
@@ -1132,6 +1290,47 @@ export interface ISnowballRClient {
1132
1290
  * @generated from protobuf rpc: CreateReview
1133
1291
  */
1134
1292
  createReview(input: Review_Create, options?: RpcOptions): UnaryCall<Review_Create, Review>;
1293
+ /**
1294
+ * Update all attributes specified in the field mask for the review with the given ID, except the `user_id` field.
1295
+ * The updated review is returned and **guaranteed to be specified**. Only the
1296
+ * owner of a review is allowed to update a review and must be a member of the project the review is in.
1297
+ * A user is the owner of a review if the review's `user_id` matches the user's `id`.
1298
+ *
1299
+ * ## Errors
1300
+ * | Error Code | Description |
1301
+ * | :--- | :--- |
1302
+ * | `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. |
1303
+ * | `NOT_FOUND` | No review with the provided ID was found. |
1304
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin, the owner of the review, nor in the same project as the review. |
1305
+ * | `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). |
1306
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1307
+ *
1308
+ * @auth
1309
+ *
1310
+ * @generated from protobuf rpc: UpdateReview
1311
+ */
1312
+ updateReview(input: Review_Update, options?: RpcOptions): UnaryCall<Review_Update, Review>;
1313
+ /**
1314
+ * Permanently remove the specified review from the project paper. **This
1315
+ * cannot be undone**. Only the owner of a review is allowed to delete a
1316
+ * review. The owner of the review must be a member of the project the
1317
+ * review is in, in order to remove it. A user is the owner of a review if the
1318
+ * review's `user_id` matches the user's `id`.
1319
+ *
1320
+ * ## Errors
1321
+ * | Error Code | Description |
1322
+ * | :--- | :--- |
1323
+ * | `INVALID_ARGUMENT` | The review ID is not a valid UUID. |
1324
+ * | `NOT_FOUND` | No review with the provided ID was found. |
1325
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin, the owner of the review, nor in the same project as the review. |
1326
+ * | `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). |
1327
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1328
+ *
1329
+ * @auth
1330
+ *
1331
+ * @generated from protobuf rpc: DeleteReview
1332
+ */
1333
+ deleteReview(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
1135
1334
  /**
1136
1335
  * Get a paper by its ID.
1137
1336
  *
@@ -1282,6 +1481,40 @@ export interface ISnowballRClient {
1282
1481
  * @generated from protobuf rpc: GetBackwardReferencedPapers
1283
1482
  */
1284
1483
  getBackwardReferencedPapers(input: Id, options?: RpcOptions): UnaryCall<Id, Paper_List>;
1484
+ /**
1485
+ * Get a paper's PDF as a blob.
1486
+ *
1487
+ * ## Errors
1488
+ * | Error Code | Description |
1489
+ * | :--- | :--- |
1490
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
1491
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
1492
+ * | `FAILED_PRECONDITION` | The paper has no attached PDF (see [Paper.has_pdf](#message-snowballr.Paper)). |
1493
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1494
+ *
1495
+ * @auth
1496
+ *
1497
+ * @generated from protobuf rpc: GetPaperPdf
1498
+ */
1499
+ getPaperPdf(input: Id, options?: RpcOptions): UnaryCall<Id, Blob>;
1500
+ /**
1501
+ * Set or overwrite the PDF for the specified paper. This call may also be
1502
+ * used to remove the PDF of a paper by omitting the `pdf` field.
1503
+ * The paper's `has_pdf` field is automatically updated by the server.
1504
+ *
1505
+ * ## Errors
1506
+ * | Error Code | Description |
1507
+ * | :--- | :--- |
1508
+ * | `INVALID_ARGUMENT` | The PDF is not in the correct format, or the paper ID is not a valid UUID. |
1509
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
1510
+ * | `RESOURCE_EXHAUSTED` | The PDF was rejected by the server, e.g., because it is too large. |
1511
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1512
+ *
1513
+ * @auth
1514
+ *
1515
+ * @generated from protobuf rpc: SetPaperPdf
1516
+ */
1517
+ setPaperPdf(input: Paper_PdfUpdate, options?: RpcOptions): UnaryCall<Paper_PdfUpdate, Nothing>;
1285
1518
  }
1286
1519
  /**
1287
1520
  * This service contains the complete set of API calls that the SnowballR web application uses to
@@ -1513,6 +1746,40 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
1513
1746
  * @generated from protobuf rpc: RenewSession
1514
1747
  */
1515
1748
  renewSession(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Nothing>;
1749
+ /**
1750
+ * If the provided email address belongs to an active user, the server sends a
1751
+ * challenge/token to that address. This token must then be sent
1752
+ * alongside a new password
1753
+ * (see [ResetPassword](#service-snowballr.SnowballR-ResetPassword)) in order
1754
+ * to update a lost or forgotten password.
1755
+ *
1756
+ * ## Errors
1757
+ * | Error Code | Description |
1758
+ * | :--- | :--- |
1759
+ * | `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. |
1760
+ * | `INTERNAL` | The verification email could not be sent. |
1761
+ *
1762
+ * @generated from protobuf rpc: RequestPasswordReset
1763
+ */
1764
+ requestPasswordReset(input: RequestPasswordResetRequest, options?: RpcOptions): UnaryCall<RequestPasswordResetRequest, Nothing>;
1765
+ /**
1766
+ * After requesting a password reset email using
1767
+ * [RequestPasswordReset](#service-snowballr.SnowballR-RequestPasswordReset),
1768
+ * this call may be used to actually set the new password. To verify the
1769
+ * ownership of the account, the token sent via email must also be provided
1770
+ * and valid. The new password must follow the same rules as during
1771
+ * [registration](#service-snowballr.SnowballR-Register).
1772
+ *
1773
+ * ## Errors
1774
+ * | Error Code | Description |
1775
+ * | :--- | :--- |
1776
+ * | `INVALID_ARGUMENT` | Either the provided token is invalid, or the new password does not meet the rules specified in [Register](#service-snowballr.SnowballR-Register). |
1777
+ * | `FAILED_PRECONDITION` | The user is not active (i.e., in state `USER_STATUS_ACTIVE`). |
1778
+ * | `UNAUTHENTICATED` | The provided token could not be found or has expired. |
1779
+ *
1780
+ * @generated from protobuf rpc: ResetPassword
1781
+ */
1782
+ resetPassword(input: PasswordResetRequest, options?: RpcOptions): UnaryCall<PasswordResetRequest, Nothing>;
1516
1783
  /**
1517
1784
  * Set a new password using the old password.
1518
1785
  * The new password must follow the same rules as during
@@ -1630,6 +1897,24 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
1630
1897
  * @generated from protobuf rpc: SoftDeleteUser
1631
1898
  */
1632
1899
  softDeleteUser(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
1900
+ /**
1901
+ * Allow a previously soft-deleted user to log in again.
1902
+ * The calling user is **required to be an admin**.
1903
+ *
1904
+ * ## Errors
1905
+ * | Error Code | Description |
1906
+ * | :--- | :--- |
1907
+ * | `INVALID_ARGUMENT` | The user ID is not a valid UUID. |
1908
+ * | `NOT_FOUND` | No user with the provided ID was found. |
1909
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
1910
+ * | `FAILED_PRECONDITION` | The user to be restored is not deleted (i.e., not in state `USER_STATUS_DELETED`). |
1911
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1912
+ *
1913
+ * @auth
1914
+ *
1915
+ * @generated from protobuf rpc: SoftUndeleteUser
1916
+ */
1917
+ softUndeleteUser(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
1633
1918
  /**
1634
1919
  * Get the user-specific settings for the calling user. The user settings are returned and **guaranteed to be specified**.
1635
1920
  *
@@ -1662,6 +1947,21 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
1662
1947
  * @generated from protobuf rpc: UpdateUserSettings
1663
1948
  */
1664
1949
  updateUserSettings(input: UserSettings_Update, options?: RpcOptions): UnaryCall<UserSettings_Update, UserSettings>;
1950
+ /**
1951
+ * Get all project papers that the calling user can review. It is not
1952
+ * guaranteed that the returned papers belong to the same project.
1953
+ * The returned paper list **may be empty** if no papers can be reviewed.
1954
+ *
1955
+ * ## Errors
1956
+ * | Error Code | Description |
1957
+ * | :--- | :--- |
1958
+ * | `UNAUTHENTICATED` | The user is not signed in. |
1959
+ *
1960
+ * @auth
1961
+ *
1962
+ * @generated from protobuf rpc: GetAllPapersToReview
1963
+ */
1964
+ getAllPapersToReview(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_Paper_List>;
1665
1965
  /**
1666
1966
  * Get all project papers from the project identified by its ID that
1667
1967
  * the calling user can review.
@@ -1941,6 +2241,20 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
1941
2241
  * @generated from protobuf rpc: GetAllProjects
1942
2242
  */
1943
2243
  getAllProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List>;
2244
+ /**
2245
+ * Get a list of all projects that are marked as deleted.
2246
+ *
2247
+ * ## Errors
2248
+ * | Error Code | Description |
2249
+ * | :--- | :--- |
2250
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
2251
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2252
+ *
2253
+ * @auth
2254
+ *
2255
+ * @generated from protobuf rpc: GetAllDeletedProjects
2256
+ */
2257
+ getAllDeletedProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List>;
1944
2258
  /**
1945
2259
  * Get a list of all projects the specified user is a member of and that are
1946
2260
  * marked as deleted.
@@ -1958,6 +2272,20 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
1958
2272
  * @generated from protobuf rpc: GetAllDeletedProjectsForUser
1959
2273
  */
1960
2274
  getAllDeletedProjectsForUser(input: Id, options?: RpcOptions): UnaryCall<Id, Project_List>;
2275
+ /**
2276
+ * Get a list of all projects that are marked as archived.
2277
+ *
2278
+ * ## Errors
2279
+ * | Error Code | Description |
2280
+ * | :--- | :--- |
2281
+ * | `PERMISSION_DENIED` | The calling user is not a server admin. |
2282
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2283
+ *
2284
+ * @auth
2285
+ *
2286
+ * @generated from protobuf rpc: GetAllArchivedProjects
2287
+ */
2288
+ getAllArchivedProjects(input: Nothing, options?: RpcOptions): UnaryCall<Nothing, Project_List>;
1961
2289
  /**
1962
2290
  * Get a list of all active projects the specified user is a member of.
1963
2291
  * Projects that the user is invited to are excluded.
@@ -2105,6 +2433,24 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
2105
2433
  * @generated from protobuf rpc: SoftDeleteProject
2106
2434
  */
2107
2435
  softDeleteProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
2436
+ /**
2437
+ * Restore a previously deleted project to the **active** state.
2438
+ * The calling user is **required to be a project admin**.
2439
+ *
2440
+ * ## Errors
2441
+ * | Error Code | Description |
2442
+ * | :--- | :--- |
2443
+ * | `INVALID_ARGUMENT` | The project ID is not a valid UUID. |
2444
+ * | `NOT_FOUND` | No project with the provided ID was found. |
2445
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project. |
2446
+ * | `FAILED_PRECONDITION` | The project to be restored is not deleted (i.e., not in state `PROJECT_STATUS_DELETED`). |
2447
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2448
+ *
2449
+ * @auth
2450
+ *
2451
+ * @generated from protobuf rpc: SoftUndeleteProject
2452
+ */
2453
+ softUndeleteProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
2108
2454
  /**
2109
2455
  * Get information about the specified project.
2110
2456
  * The response only includes attributes specified in the field mask or all attributes when the field mask is not
@@ -2310,6 +2656,45 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
2310
2656
  * @generated from protobuf rpc: AddPaperToProject
2311
2657
  */
2312
2658
  addPaperToProject(input: Project_Paper_Add, options?: RpcOptions): UnaryCall<Project_Paper_Add, Project_Paper>;
2659
+ /**
2660
+ * Update all attributes specified in the field mask for the project paper with the provided ID,
2661
+ * except the fields `local_id`, `decision`, `stage`, and `reviews`. Furthermore, the underlying paper
2662
+ * cannot be modified; use the [UpdatePaper](#service-snowballr.SnowballR-UpdatePaper) call for this. The updated
2663
+ * project paper is returned and **guaranteed to be specified**.
2664
+ * The calling user is **required to be a project admin**.
2665
+ *
2666
+ * ## Errors
2667
+ * | Error Code | Description |
2668
+ * | :--- | :--- |
2669
+ * | `INVALID_ARGUMENT` | The project paper ID or paper ID is not a valid UUID. |
2670
+ * | `NOT_FOUND` | No project paper with the provided ID or paper with the provided ID was found. |
2671
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project the project paper belongs to. |
2672
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2673
+ *
2674
+ * @auth
2675
+ *
2676
+ * @generated from protobuf rpc: UpdateProjectPaper
2677
+ */
2678
+ updateProjectPaper(input: Project_Paper_Update, options?: RpcOptions): UnaryCall<Project_Paper_Update, Project_Paper>;
2679
+ /**
2680
+ * Permanently remove the specified project paper from the project. All
2681
+ * references to this project paper will also be deleted. **This cannot be
2682
+ * undone**.
2683
+ * The calling user is **required to be a project admin**.
2684
+ *
2685
+ * ## Errors
2686
+ * | Error Code | Description |
2687
+ * | :--- | :--- |
2688
+ * | `INVALID_ARGUMENT` | The project paper ID is not a valid UUID. |
2689
+ * | `NOT_FOUND` | No project paper with the provided ID was found. |
2690
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin nor a project admin of the project the project paper belongs to. |
2691
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2692
+ *
2693
+ * @auth
2694
+ *
2695
+ * @generated from protobuf rpc: RemovePaperFromProject
2696
+ */
2697
+ removePaperFromProject(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
2313
2698
  /**
2314
2699
  * Get a review by its ID.
2315
2700
  *
@@ -2365,6 +2750,47 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
2365
2750
  * @generated from protobuf rpc: CreateReview
2366
2751
  */
2367
2752
  createReview(input: Review_Create, options?: RpcOptions): UnaryCall<Review_Create, Review>;
2753
+ /**
2754
+ * Update all attributes specified in the field mask for the review with the given ID, except the `user_id` field.
2755
+ * The updated review is returned and **guaranteed to be specified**. Only the
2756
+ * owner of a review is allowed to update a review and must be a member of the project the review is in.
2757
+ * A user is the owner of a review if the review's `user_id` matches the user's `id`.
2758
+ *
2759
+ * ## Errors
2760
+ * | Error Code | Description |
2761
+ * | :--- | :--- |
2762
+ * | `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. |
2763
+ * | `NOT_FOUND` | No review with the provided ID was found. |
2764
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin, the owner of the review, nor in the same project as the review. |
2765
+ * | `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). |
2766
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2767
+ *
2768
+ * @auth
2769
+ *
2770
+ * @generated from protobuf rpc: UpdateReview
2771
+ */
2772
+ updateReview(input: Review_Update, options?: RpcOptions): UnaryCall<Review_Update, Review>;
2773
+ /**
2774
+ * Permanently remove the specified review from the project paper. **This
2775
+ * cannot be undone**. Only the owner of a review is allowed to delete a
2776
+ * review. The owner of the review must be a member of the project the
2777
+ * review is in, in order to remove it. A user is the owner of a review if the
2778
+ * review's `user_id` matches the user's `id`.
2779
+ *
2780
+ * ## Errors
2781
+ * | Error Code | Description |
2782
+ * | :--- | :--- |
2783
+ * | `INVALID_ARGUMENT` | The review ID is not a valid UUID. |
2784
+ * | `NOT_FOUND` | No review with the provided ID was found. |
2785
+ * | `PERMISSION_DENIED` | The calling user is neither a server admin, the owner of the review, nor in the same project as the review. |
2786
+ * | `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). |
2787
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2788
+ *
2789
+ * @auth
2790
+ *
2791
+ * @generated from protobuf rpc: DeleteReview
2792
+ */
2793
+ deleteReview(input: Id, options?: RpcOptions): UnaryCall<Id, Nothing>;
2368
2794
  /**
2369
2795
  * Get a paper by its ID.
2370
2796
  *
@@ -2515,4 +2941,38 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
2515
2941
  * @generated from protobuf rpc: GetBackwardReferencedPapers
2516
2942
  */
2517
2943
  getBackwardReferencedPapers(input: Id, options?: RpcOptions): UnaryCall<Id, Paper_List>;
2944
+ /**
2945
+ * Get a paper's PDF as a blob.
2946
+ *
2947
+ * ## Errors
2948
+ * | Error Code | Description |
2949
+ * | :--- | :--- |
2950
+ * | `INVALID_ARGUMENT` | The paper ID is not a valid UUID. |
2951
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
2952
+ * | `FAILED_PRECONDITION` | The paper has no attached PDF (see [Paper.has_pdf](#message-snowballr.Paper)). |
2953
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2954
+ *
2955
+ * @auth
2956
+ *
2957
+ * @generated from protobuf rpc: GetPaperPdf
2958
+ */
2959
+ getPaperPdf(input: Id, options?: RpcOptions): UnaryCall<Id, Blob>;
2960
+ /**
2961
+ * Set or overwrite the PDF for the specified paper. This call may also be
2962
+ * used to remove the PDF of a paper by omitting the `pdf` field.
2963
+ * The paper's `has_pdf` field is automatically updated by the server.
2964
+ *
2965
+ * ## Errors
2966
+ * | Error Code | Description |
2967
+ * | :--- | :--- |
2968
+ * | `INVALID_ARGUMENT` | The PDF is not in the correct format, or the paper ID is not a valid UUID. |
2969
+ * | `NOT_FOUND` | No paper with the provided ID was found. |
2970
+ * | `RESOURCE_EXHAUSTED` | The PDF was rejected by the server, e.g., because it is too large. |
2971
+ * | `UNAUTHENTICATED` | The user is not signed in. |
2972
+ *
2973
+ * @auth
2974
+ *
2975
+ * @generated from protobuf rpc: SetPaperPdf
2976
+ */
2977
+ setPaperPdf(input: Paper_PdfUpdate, options?: RpcOptions): UnaryCall<Paper_PdfUpdate, Nothing>;
2518
2978
  }