1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-2916 App | Tech | Prepare staging release (#1666)

Co-authored-by: Konstantin Ivanov <54908981+konstantiniiv@users.noreply.github.com>
This commit is contained in:
Evgenii Kozlov 2024-10-22 12:17:11 +02:00
parent 14af7b40c1
commit b78e3e4d0d
203 changed files with 2606 additions and 1726 deletions

View file

@ -180,3 +180,52 @@ message Change {
string name = 2;
}
}
message StoreChange {
repeated StoreChangeContent changeSet = 1;
}
message StoreChangeContent {
oneof change {
DocumentCreate create = 1;
DocumentModify modify = 2;
DocumentDelete delete = 3;
}
}
message DocumentCreate {
string collection = 1;
string documentId = 2;
// json
string value = 3;
}
message DocumentModify {
string collection = 1;
string documentId = 2;
repeated KeyModify keys = 4;
}
message KeyModify {
// key path; example: [user, email]
repeated string keyPath = 1;
// modify op: set, unset, inc, etc.
ModifyOp modifyOp = 3;
// json value; example: '"new@email.com"'
string modifyValue = 4;
}
enum ModifyOp {
Set = 0;
Unset = 1;
Inc = 2;
AddToSet = 3;
Pull = 4;
}
message DocumentDelete {
string collection = 1;
string documentId = 2;
}

View file

@ -1413,6 +1413,7 @@ message Rpc {
string templateId = 3;
string spaceId = 4;
string objectTypeUniqueKey = 5;
bool withChat = 6;
}
message Response {
@ -1439,6 +1440,7 @@ message Rpc {
message Request {
google.protobuf.Struct details = 1;
string spaceId = 2;
bool withChat = 3;
}
message Response {
@ -1516,6 +1518,7 @@ message Rpc {
string templateId = 3; // optional template id for creating from template
repeated anytype.model.InternalFlag internalFlags = 4;
string spaceId = 5;
bool withChat = 6;
}
message Response {
@ -1571,12 +1574,14 @@ message Rpc {
string url = 3;
google.protobuf.Struct details = 4;
bool addPageContent = 5;
bool withChat = 6;
}
message Response {
Error error = 1;
string objectId = 2;
google.protobuf.Struct details = 3;
string chatId = 4;
message Error {
Code code = 1;
@ -1604,6 +1609,7 @@ message Rpc {
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
@ -1762,6 +1768,7 @@ message Rpc {
// deprecated in favor of SearchWithMeta
message Search {
message Request {
string spaceId = 8;
repeated anytype.model.Block.Content.Dataview.Filter filters = 1;
repeated anytype.model.Block.Content.Dataview.Sort sorts = 2;
string fullText = 3;
@ -1790,6 +1797,7 @@ message Rpc {
}
message SearchWithMeta {
message Request {
string spaceId = 11;
repeated anytype.model.Block.Content.Dataview.Filter filters = 1;
repeated anytype.model.Block.Content.Dataview.Sort sorts = 2;
string fullText = 3;
@ -1868,6 +1876,7 @@ message Rpc {
message SearchSubscribe {
message Request {
string spaceId = 15;
// (optional) subscription identifier
// client can provide some string or middleware will generate it automatically
// if subId is already registered on middleware, the new query will replace previous subscription
@ -1890,7 +1899,6 @@ message Rpc {
repeated string source = 10;
string ignoreWorkspace = 12;
// disable dependent subscription
bool noDepSubscription = 13;
string collectionId = 14;
@ -1920,6 +1928,72 @@ message Rpc {
}
}
message CrossSpaceSearchSubscribe {
message Request {
// (optional) subscription identifier
// client can provide some string or middleware will generate it automatically
// if subId is already registered on middleware, the new query will replace previous subscription
string subId = 1;
// filters
repeated anytype.model.Block.Content.Dataview.Filter filters = 2;
// sorts
repeated anytype.model.Block.Content.Dataview.Sort sorts = 3;
// (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent
repeated string keys = 7;
repeated string source = 10;
// disable dependent subscription
bool noDepSubscription = 13;
string collectionId = 14;
}
message Response {
Error error = 1;
repeated google.protobuf.Struct records = 2;
repeated google.protobuf.Struct dependencies = 3;
string subId = 4;
Event.Object.Subscription.Counters counters = 5;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
// ...
}
}
}
}
message CrossSpaceSearchUnsubscribe {
message Request {
string subId = 1;
}
message Response {
Error error = 1;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
// ...
}
}
}
}
message GroupsSubscribe {
message Request {
string spaceId = 6;
@ -1952,6 +2026,7 @@ message Rpc {
message SubscribeIds {
message Request {
string spaceId = 13;
// (optional) subscription identifier
// client can provide some string or middleware will generate it automatically
// if subId is already registered on middleware, the new query will replace previous subscription
@ -1962,7 +2037,6 @@ message Rpc {
// (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent
repeated string keys = 3;
string ignoreWorkspace = 11;
// disable dependent subscription
bool noDepSubscription = 12;
}
@ -6471,6 +6545,42 @@ message Rpc {
}
}
}
message AnystoreObjectChanges {
message Request {
string objectId = 1;
OrderBy orderBy = 2;
enum OrderBy {
ORDER_ID = 0;
ITERATION_ORDER = 1;
}
}
message Response {
Error error = 1;
repeated Change changes = 2;
bool wrongOrder = 3;
message Change {
string changeId = 1;
string orderId = 2;
string error = 3;
google.protobuf.Struct change = 4;
}
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
}
}
}
}
}
message Metrics {
@ -6894,6 +7004,11 @@ message Rpc {
string email = 1;
bool subscribeToNewsletter = 2;
bool insiderTipsAndTutorials = 3;
// if we are coming from the onboarding list
bool isOnboardingList = 4;
}
message Response {

View file

@ -51,9 +51,9 @@ enum SmartBlockType {
NotificationObject = 0x217;
DevicesObject = 0x218;
ChatObject = 0x219; // Container for any-store based chats
ChatDerivedObject = 0x220; // Any-store based object for chat
AccountObject = 0x221; // Container for account data in tech space
}
message Search {
@ -805,7 +805,7 @@ message Relation {
string description = 14;
// on-store fields, injected only locally
Scope scope = 20; // scope from which this relation have been aggregated
Scope scope = 20; // deprecated, to be removed
string creator = 21; // creator profile id
int64 revision = 22; // revision of system relation. Used to check if we should change relation content or not
@ -1359,4 +1359,4 @@ message ChatMessage {
repeated string ids = 1; // List of user IDs
}
}
}
}