syntax = "proto3";

package devvit.data.api.admin;

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

message ResearchOrganization {
  int64 id = 1;
  string name = 2;
  bool is_internal = 3;
}

message CreateResearchOrganizationRequest {
  string name = 1;
  bool is_internal = 2;
}

message CreateResearchOrganizationResponse {
  ResearchOrganization organization = 1;
}

message DeleteResearchOrganizationRequest {
  int64 id = 1;
}

message DeleteResearchOrganizationResponse {
  ResearchOrganization organization = 1;
}

message GetResearchOrganizationByIdRequest {
  int64 id = 1;
}

message GetResearchOrganizationByIdResponse {
  ResearchOrganization organization = 1;
}

message GetResearchOrganizationsRequest {}

message GetResearchOrganizationsResponse {
  repeated ResearchOrganization organizations = 1;
}

message UpdateResearchOrganizationByIdRequest {
  int64 id = 1;
  string name = 2;
  bool is_internal = 3;
}

message UpdateResearchOrganizationResponse {
  ResearchOrganization organization = 1;
}
