mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-13 05:07:47 +01:00
fff80cd4e7
- fix(nexus): Preparing configs to be published - feat(nexus): Various fixes for opening left sources - fix(nexus): Fine-tune versions 1 internal commit(s) GitOrigin-RevId: 6c834cd3f4f5f18109a159a73503700dac63b0bb
53 lines
1.1 KiB
Protocol Buffer
53 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package nexus.meta_api.proto;
|
|
|
|
import "nexus/models/proto/typed_document.proto";
|
|
|
|
message RollRequest {
|
|
string language = 1;
|
|
string session_id = 2;
|
|
int64 user_id = 3;
|
|
}
|
|
|
|
message RollResponse {
|
|
uint64 document_id = 1;
|
|
}
|
|
|
|
message TopMissedRequest {
|
|
uint32 page = 1;
|
|
uint32 page_size = 2;
|
|
string session_id = 3;
|
|
int64 user_id = 4;
|
|
}
|
|
|
|
message TopMissedResponse {
|
|
repeated nexus.models.proto.TypedDocument typed_documents = 1;
|
|
bool has_next = 2;
|
|
}
|
|
|
|
message TypedDocumentRequest {
|
|
string schema = 1;
|
|
uint64 document_id = 2;
|
|
uint32 position = 3;
|
|
string session_id = 4;
|
|
int64 user_id = 5;
|
|
}
|
|
|
|
message PutTypedDocumentResponse {}
|
|
|
|
message GetViewResponse {
|
|
nexus.models.proto.TypedDocument typed_document = 1;
|
|
string filedata = 2;
|
|
string filename = 3;
|
|
string filesize = 4;
|
|
string first_authors = 5;
|
|
string locator = 6;
|
|
}
|
|
|
|
service Documents {
|
|
rpc get (TypedDocumentRequest) returns (nexus.models.proto.TypedDocument) {}
|
|
rpc get_view (TypedDocumentRequest) returns (GetViewResponse) {}
|
|
rpc roll (RollRequest) returns (RollResponse) {}
|
|
rpc top_missed (TopMissedRequest) returns (TopMissedResponse) {}
|
|
}
|