Add GetNotebook RPC for pulling complete notebook data

New RPC returns notebook metadata, all pages, and all strokes for
a given server-side notebook ID. Enables desktop and other clients
to download notebooks from the server (pull sync).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 15:06:20 -07:00
parent 651eabe995
commit f1b67b9909
4 changed files with 340 additions and 78 deletions

View File

@@ -9,6 +9,7 @@ import "google/protobuf/timestamp.proto";
service EngPadSyncService {
rpc SyncNotebook(SyncNotebookRequest) returns (SyncNotebookResponse);
rpc GetNotebook(GetNotebookRequest) returns (GetNotebookResponse);
rpc DeleteNotebook(DeleteNotebookRequest) returns (DeleteNotebookResponse);
rpc ListNotebooks(ListNotebooksRequest) returns (ListNotebooksResponse);
rpc CreateShareLink(CreateShareLinkRequest) returns (CreateShareLinkResponse);
@@ -42,6 +43,19 @@ message SyncNotebookResponse {
google.protobuf.Timestamp synced_at = 2;
}
message GetNotebookRequest {
int64 notebook_id = 1; // Server-side notebook ID
}
message GetNotebookResponse {
int64 server_notebook_id = 1;
int64 remote_id = 2;
string title = 3;
string page_size = 4;
repeated PageData pages = 5;
google.protobuf.Timestamp synced_at = 6;
}
message DeleteNotebookRequest {
int64 notebook_id = 1;
}