From 0dea2faf83f287db42355dd582f3350adb4495c5 Mon Sep 17 00:00:00 2001
From: Harpo Roeder <roederharpo@protonmail.ch>
Date: Wed, 12 Jul 2023 16:25:32 -0500
Subject: [PATCH] update protobuf spec

---
 .../futo/polycentric/protos/protocol.proto    | 21 +++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/app/src/main/proto/com/futo/polycentric/protos/protocol.proto b/app/src/main/proto/com/futo/polycentric/protos/protocol.proto
index c8edbb8..b858ad6 100644
--- a/app/src/main/proto/com/futo/polycentric/protos/protocol.proto
+++ b/app/src/main/proto/com/futo/polycentric/protos/protocol.proto
@@ -1,4 +1,5 @@
 syntax = "proto3";
+
 package userpackage;
 
 message PublicKey {
@@ -84,15 +85,21 @@ message Pointer {
 }
 
 message Delete {
-    Process process       = 1;
-    uint64  logical_clock = 2;
-    Indices indices       = 3;
+             Process process           = 1;
+             uint64  logical_clock     = 2;
+             Indices indices           = 3;
+    optional uint64  unix_milliseconds = 4;
+             uint64  content_type      = 5;
 }
 
 message Events {
     repeated SignedEvent events = 1;
 }
 
+message PublicKeys {
+    repeated PublicKey systems = 1;
+}
+
 message Range {
     uint64 low  = 1;
     uint64 high = 2;
@@ -234,6 +241,12 @@ message QueryReferencesResponse {
 
 // end /query_references API
 
+// /query_index
+message QueryIndexResponse {
+    repeated SignedEvent events = 1;
+    repeated SignedEvent proof = 2;
+}
+
 message URLInfo {
     // url_type 1 = URLInfoSystemLink
     // url_type 2 = URLInfoEventLink
@@ -252,4 +265,4 @@ message URLInfoEventLink {
              Process   process       = 2;
              uint64    logical_clock = 3;
     repeated string    servers       = 4;
-}
\ No newline at end of file
+}
-- 
GitLab