Commit 88867911 authored by Mo Firouz's avatar Mo Firouz Committed by Andrei Mihu
Browse files

Add GetAccount, UpdateAccount and GetUsers. Update schema and gRPC names.

parent b6a96999
Loading
Loading
Loading
Loading
+186 −175

File changed.

Preview size limit exceeded, changes collapsed.

+11 −9
Original line number Diff line number Diff line
@@ -337,6 +337,8 @@ message Account {
  repeated AccountDevice devices = 4;
  // The custom id in the user's account.
  string custom_id = 5;
  // The UNIX time when the user's email was verified.
  google.protobuf.Timestamp verify_time = 6;
}

// Send a custom ID to the server. Used with authenticate/link/unlink.
@@ -513,7 +515,7 @@ message CreateGroupsRequest {
    // A description for the group.
    string description = 2;
    // The language expected to be a tag which follows the BCP-47 spec.
    string lang = 3;
    string lang_tag = 3;
    // Additional information stored as a JSON object.
    string metadata = 4;
    // A URL for an avatar image.
@@ -577,7 +579,7 @@ message Group {
  // A description for the group.
  string description = 4;
  // The language expected to be a tag which follows the BCP-47 spec.
  string lang = 5;
  string lang_tag = 5;
  // Additional information stored as a JSON object.
  string metadata = 6;
  // A URL for an avatar image.
@@ -644,12 +646,12 @@ message Session {
message UpdateAccountRequest {
  // The username of the user's account.
  google.protobuf.StringValue username = 1;
  // The fullname of the user.
  google.protobuf.StringValue fullname = 2;
  // The display name of the user.
  google.protobuf.StringValue display_name = 2;
  // A URL for an avatar image.
  google.protobuf.StringValue avatar_url = 3;
  // The language expected to be a tag which follows the BCP-47 spec.
  google.protobuf.StringValue lang = 4;
  google.protobuf.StringValue lang_tag = 4;
  // The location set by the user.
  google.protobuf.StringValue location = 5;
  // The timezone set by the user.
@@ -662,12 +664,12 @@ message User {
  string id = 1;
  // The username of the user's account.
  string username = 2;
  // The fullname of the user.
  string fullname = 3;
  // The display name of the user.
  string display_name = 3;
  // A URL for an avatar image.
  string avatar_url = 4;
  // The language expected to be a tag which follows the BCP-47 spec.
  string lang = 5;
  string lang_tag = 5;
  // The location set by the user.
  string location = 6;
  // The timezone set by the user.
@@ -679,7 +681,7 @@ message User {
  // The Google id in the user's account.
  string google_id = 10;
  // The Apple Game Center in of the user's account.
  string gamcenter_id = 11;
  string gamecenter_id = 11;
  // The Steam id in the user's account.
  string steam_id = 12;
  // Indicates whether the user is currently online.
+14 −9
Original line number Diff line number Diff line
@@ -905,7 +905,7 @@
          "type": "string",
          "description": "A description for the group."
        },
        "lang": {
        "lang_tag": {
          "type": "string",
          "description": "The language expected to be a tag which follows the BCP-47 spec."
        },
@@ -946,6 +946,11 @@
        "custom_id": {
          "type": "string",
          "description": "The custom id in the user's account."
        },
        "verify_time": {
          "type": "string",
          "format": "date-time",
          "description": "The UNIX time when the user's email was verified."
        }
      },
      "description": "A user with additional account details. Always the current user."
@@ -1125,7 +1130,7 @@
          "type": "string",
          "description": "A description for the group."
        },
        "lang": {
        "lang_tag": {
          "type": "string",
          "description": "The language expected to be a tag which follows the BCP-47 spec."
        },
@@ -1217,15 +1222,15 @@
          "type": "string",
          "description": "The username of the user's account."
        },
        "fullname": {
        "display_name": {
          "type": "string",
          "description": "The fullname of the user."
          "description": "The display name of the user."
        },
        "avatar_url": {
          "type": "string",
          "description": "A URL for an avatar image."
        },
        "lang": {
        "lang_tag": {
          "type": "string",
          "description": "The language expected to be a tag which follows the BCP-47 spec."
        },
@@ -1251,15 +1256,15 @@
          "type": "string",
          "description": "The username of the user's account."
        },
        "fullname": {
        "display_name": {
          "type": "string",
          "description": "The fullname of the user."
          "description": "The display name of the user."
        },
        "avatar_url": {
          "type": "string",
          "description": "A URL for an avatar image."
        },
        "lang": {
        "lang_tag": {
          "type": "string",
          "description": "The language expected to be a tag which follows the BCP-47 spec."
        },
@@ -1283,7 +1288,7 @@
          "type": "string",
          "description": "The Google id in the user's account."
        },
        "gamcenter_id": {
        "gamecenter_id": {
          "type": "string",
          "description": "The Apple Game Center in of the user's account."
        },
+10 −5
Original line number Diff line number Diff line
@@ -119,6 +119,11 @@
        "custom_id": {
          "type": "string",
          "description": "The custom id in the user's account."
        },
        "verify_time": {
          "type": "string",
          "format": "date-time",
          "description": "The UNIX time when the user's email was verified."
        }
      },
      "description": "A user with additional account details. Always the current user."
@@ -152,7 +157,7 @@
          "type": "string",
          "description": "A description for the group."
        },
        "lang": {
        "lang_tag": {
          "type": "string",
          "description": "The language expected to be a tag which follows the BCP-47 spec."
        },
@@ -203,15 +208,15 @@
          "type": "string",
          "description": "The username of the user's account."
        },
        "fullname": {
        "display_name": {
          "type": "string",
          "description": "The fullname of the user."
          "description": "The display name of the user."
        },
        "avatar_url": {
          "type": "string",
          "description": "A URL for an avatar image."
        },
        "lang": {
        "lang_tag": {
          "type": "string",
          "description": "The language expected to be a tag which follows the BCP-47 spec."
        },
@@ -235,7 +240,7 @@
          "type": "string",
          "description": "The Google id in the user's account."
        },
        "gamcenter_id": {
        "gamecenter_id": {
          "type": "string",
          "description": "The Apple Game Center in of the user's account."
        },
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ import (

var (
	version  string = "2.0.0"
	commitID string = "test"
	commitID string = "dev"
)

func main() {
Loading