syntax = "proto3";

package devvit.data.api.admin.v1alpha;

option go_package = "github.snooguts.net/reddit/devplatform-api/go/grpc/devvit/data/api/admin/v1alpha";

message User {
  string t2id = 1;
  string org_id = 2;
  string username = 3;
}

message CreateUserRequest {
  string t2id = 1;
  string org_id = 2;
  string username = 3;
}

message CreateUserResponse {
  User user = 1;
}

message GetUsersByOrgIdRequest {
  string id = 1;
}

message GetUsersByOrgIdResponse {
  repeated User users = 1;
}

message GetUserByIdRequest {
  string t2id = 1;
}

message GetUserByIdResponse {
  User user = 1;
}

message DeleteUserRequest {
  string t2id = 1;
}

message DeleteUserResponse {
  User user = 1;
}
