syntax = "proto3";

package devvit.data.api.admin.v1alpha;

import "devvit/data/api/admin/v1alpha/auth.proto";
import "devvit/data/api/admin/v1alpha/organization.proto";
import "devvit/data/api/admin/v1alpha/subscription.proto";

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

message UIGetOrganizationsRequest {}

message UIGetOrganizationsResponse {
  message HydratedOrganization {
    Organization organization = 1;
    repeated Subscription subscriptions = 2;
    repeated AccessToken acccess_tokens = 3;
  }
  repeated HydratedOrganization organizations = 1;
}
