mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-11 20:27:50 +01:00
6de3fb1250
- feat(bot): Refactor referencing handler - fix(bot): Refactor DocumentListWidget 1 internal commit(s) GitOrigin-RevId: 9f388e98c7039711927abf4a048b5c45ea7a2fc3
43 lines
889 B
Protocol Buffer
43 lines
889 B
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 {}
|
|
|
|
service Documents {
|
|
rpc get (TypedDocumentRequest) returns (nexus.models.proto.TypedDocument) {}
|
|
rpc roll (RollRequest) returns (RollResponse) {}
|
|
rpc top_missed (TopMissedRequest) returns (TopMissedResponse) {}
|
|
}
|