@se-uulm/snowballr-grpc-client 0.2.1-alpha.ccfe440 → 0.2.1-alpha.cd5bc05
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/main.client.d.ts +0 -460
- package/dist/main.client.js +55 -321
- package/dist/main.js +1 -20
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -5,3 +5,7 @@ For communication between the backend and frontend, [gRPC](https://grpc.io) is
|
|
|
5
5
|
used, whereas the services are defined by Protocol Buffers
|
|
6
6
|
(see [/proto](./proto/) for the service definition
|
|
7
7
|
(in [main.proto](./proto/main.proto)) and all required `.proto` files).
|
|
8
|
+
|
|
9
|
+
The API documentation is generated from the `.proto` files with
|
|
10
|
+
[sabledocs](https://github.com/markvincze/sabledocs) (templates in [/docs](./docs/), patches in
|
|
11
|
+
[/patches](./patches/)) as a stage of the backend `Dockerfile`, and served by the backend under `/grpc-docs/`.
|
package/dist/main.client.d.ts
CHANGED
|
@@ -6,16 +6,12 @@
|
|
|
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";
|
|
11
9
|
import type { Paper_Update } from "./paper.js";
|
|
12
10
|
import type { Project_Paper_SearchQuery } from "./project.js";
|
|
13
11
|
import type { Paper } from "./paper.js";
|
|
14
|
-
import type { Review_Update } from "./review.js";
|
|
15
12
|
import type { Review_Create } from "./review.js";
|
|
16
13
|
import type { Review_List } from "./review.js";
|
|
17
14
|
import type { Review } from "./review.js";
|
|
18
|
-
import type { Project_Paper_Update } from "./project.js";
|
|
19
15
|
import type { Project_Paper_Add } from "./project.js";
|
|
20
16
|
import type { Project_Paper_Get } from "./project.js";
|
|
21
17
|
import type { Criterion_Update } from "./criterion.js";
|
|
@@ -51,8 +47,6 @@ import type { Id } from "./base.js";
|
|
|
51
47
|
import type { User } from "./user.js";
|
|
52
48
|
import type { User_List } from "./user.js";
|
|
53
49
|
import type { PasswordChangeRequest } from "./authentication.js";
|
|
54
|
-
import type { PasswordResetRequest } from "./authentication.js";
|
|
55
|
-
import type { RequestPasswordResetRequest } from "./authentication.js";
|
|
56
50
|
import type { AuthenticationStatusResponse } from "./authentication.js";
|
|
57
51
|
import type { LoginRequest } from "./authentication.js";
|
|
58
52
|
import type { VerifyEmailRequest } from "./authentication.js";
|
|
@@ -286,40 +280,6 @@ export interface ISnowballRClient {
|
|
|
286
280
|
* @generated from protobuf rpc: RenewSession
|
|
287
281
|
*/
|
|
288
282
|
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>;
|
|
323
283
|
/**
|
|
324
284
|
* Set a new password using the old password.
|
|
325
285
|
* The new password must follow the same rules as during
|
|
@@ -437,24 +397,6 @@ export interface ISnowballRClient {
|
|
|
437
397
|
* @generated from protobuf rpc: SoftDeleteUser
|
|
438
398
|
*/
|
|
439
399
|
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>;
|
|
458
400
|
/**
|
|
459
401
|
* Get the user-specific settings for the calling user. The user settings are returned and **guaranteed to be specified**.
|
|
460
402
|
*
|
|
@@ -487,21 +429,6 @@ export interface ISnowballRClient {
|
|
|
487
429
|
* @generated from protobuf rpc: UpdateUserSettings
|
|
488
430
|
*/
|
|
489
431
|
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>;
|
|
505
432
|
/**
|
|
506
433
|
* Get all project papers from the project identified by its ID that
|
|
507
434
|
* the calling user can review.
|
|
@@ -781,20 +708,6 @@ export interface ISnowballRClient {
|
|
|
781
708
|
* @generated from protobuf rpc: GetAllProjects
|
|
782
709
|
*/
|
|
783
710
|
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>;
|
|
798
711
|
/**
|
|
799
712
|
* Get a list of all projects the specified user is a member of and that are
|
|
800
713
|
* marked as deleted.
|
|
@@ -812,20 +725,6 @@ export interface ISnowballRClient {
|
|
|
812
725
|
* @generated from protobuf rpc: GetAllDeletedProjectsForUser
|
|
813
726
|
*/
|
|
814
727
|
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>;
|
|
829
728
|
/**
|
|
830
729
|
* Get a list of all active projects the specified user is a member of.
|
|
831
730
|
* Projects that the user is invited to are excluded.
|
|
@@ -973,24 +872,6 @@ export interface ISnowballRClient {
|
|
|
973
872
|
* @generated from protobuf rpc: SoftDeleteProject
|
|
974
873
|
*/
|
|
975
874
|
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>;
|
|
994
875
|
/**
|
|
995
876
|
* Get information about the specified project.
|
|
996
877
|
* The response only includes attributes specified in the field mask or all attributes when the field mask is not
|
|
@@ -1196,45 +1077,6 @@ export interface ISnowballRClient {
|
|
|
1196
1077
|
* @generated from protobuf rpc: AddPaperToProject
|
|
1197
1078
|
*/
|
|
1198
1079
|
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>;
|
|
1238
1080
|
/**
|
|
1239
1081
|
* Get a review by its ID.
|
|
1240
1082
|
*
|
|
@@ -1290,47 +1132,6 @@ export interface ISnowballRClient {
|
|
|
1290
1132
|
* @generated from protobuf rpc: CreateReview
|
|
1291
1133
|
*/
|
|
1292
1134
|
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>;
|
|
1334
1135
|
/**
|
|
1335
1136
|
* Get a paper by its ID.
|
|
1336
1137
|
*
|
|
@@ -1481,40 +1282,6 @@ export interface ISnowballRClient {
|
|
|
1481
1282
|
* @generated from protobuf rpc: GetBackwardReferencedPapers
|
|
1482
1283
|
*/
|
|
1483
1284
|
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>;
|
|
1518
1285
|
}
|
|
1519
1286
|
/**
|
|
1520
1287
|
* This service contains the complete set of API calls that the SnowballR web application uses to
|
|
@@ -1746,40 +1513,6 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
|
|
|
1746
1513
|
* @generated from protobuf rpc: RenewSession
|
|
1747
1514
|
*/
|
|
1748
1515
|
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>;
|
|
1783
1516
|
/**
|
|
1784
1517
|
* Set a new password using the old password.
|
|
1785
1518
|
* The new password must follow the same rules as during
|
|
@@ -1897,24 +1630,6 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
|
|
|
1897
1630
|
* @generated from protobuf rpc: SoftDeleteUser
|
|
1898
1631
|
*/
|
|
1899
1632
|
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>;
|
|
1918
1633
|
/**
|
|
1919
1634
|
* Get the user-specific settings for the calling user. The user settings are returned and **guaranteed to be specified**.
|
|
1920
1635
|
*
|
|
@@ -1947,21 +1662,6 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
|
|
|
1947
1662
|
* @generated from protobuf rpc: UpdateUserSettings
|
|
1948
1663
|
*/
|
|
1949
1664
|
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>;
|
|
1965
1665
|
/**
|
|
1966
1666
|
* Get all project papers from the project identified by its ID that
|
|
1967
1667
|
* the calling user can review.
|
|
@@ -2241,20 +1941,6 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
|
|
|
2241
1941
|
* @generated from protobuf rpc: GetAllProjects
|
|
2242
1942
|
*/
|
|
2243
1943
|
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>;
|
|
2258
1944
|
/**
|
|
2259
1945
|
* Get a list of all projects the specified user is a member of and that are
|
|
2260
1946
|
* marked as deleted.
|
|
@@ -2272,20 +1958,6 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
|
|
|
2272
1958
|
* @generated from protobuf rpc: GetAllDeletedProjectsForUser
|
|
2273
1959
|
*/
|
|
2274
1960
|
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>;
|
|
2289
1961
|
/**
|
|
2290
1962
|
* Get a list of all active projects the specified user is a member of.
|
|
2291
1963
|
* Projects that the user is invited to are excluded.
|
|
@@ -2433,24 +2105,6 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
|
|
|
2433
2105
|
* @generated from protobuf rpc: SoftDeleteProject
|
|
2434
2106
|
*/
|
|
2435
2107
|
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>;
|
|
2454
2108
|
/**
|
|
2455
2109
|
* Get information about the specified project.
|
|
2456
2110
|
* The response only includes attributes specified in the field mask or all attributes when the field mask is not
|
|
@@ -2656,45 +2310,6 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
|
|
|
2656
2310
|
* @generated from protobuf rpc: AddPaperToProject
|
|
2657
2311
|
*/
|
|
2658
2312
|
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>;
|
|
2698
2313
|
/**
|
|
2699
2314
|
* Get a review by its ID.
|
|
2700
2315
|
*
|
|
@@ -2750,47 +2365,6 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
|
|
|
2750
2365
|
* @generated from protobuf rpc: CreateReview
|
|
2751
2366
|
*/
|
|
2752
2367
|
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>;
|
|
2794
2368
|
/**
|
|
2795
2369
|
* Get a paper by its ID.
|
|
2796
2370
|
*
|
|
@@ -2941,38 +2515,4 @@ export declare class SnowballRClient implements ISnowballRClient, ServiceInfo {
|
|
|
2941
2515
|
* @generated from protobuf rpc: GetBackwardReferencedPapers
|
|
2942
2516
|
*/
|
|
2943
2517
|
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>;
|
|
2978
2518
|
}
|