mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-25 19:15:48 +01:00
681817ceae
GitOrigin-RevId: 83514338be1d662518bab9fe5ab6eefef98f229f
30 lines
586 B
Protocol Buffer
30 lines
586 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 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) {}
|
|
}
|