syntax = "proto3";

package devvit.gateway.playtest_subreddit;

option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/gateway/playtestsubreddit";

service PlaytestSubreddit {
  // Create a playtest subreddit for an app
  rpc CreatePlaytestSubreddit(CreatePlaytestSubredditRequest) returns (CreatePlaytestSubredditResponse);
}

message CreatePlaytestSubredditRequest {
  // Name of the app for which to create the playtest subreddit
  string app_name = 1;
  // T2 of the developer's reddit account to add them as a moderator
  string dev_user_id = 2;
}

message CreatePlaytestSubredditResponse {
  // ID of the subreddit created
  string subreddit_id = 1;
  // Name of the subreddit created
  string subreddit_name = 2;
}
