syntax = "proto3";

package devvit.gateway.v1alpha;

import "devvit/dev_portal/installation/installation.proto";
import "google/protobuf/empty.proto";

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

// These methods are a subset of the existing Triggers service
// (https://github.snooguts.net/reddit/reddit-devplatform-monorepo/blob/main/packages/protos/schema/devvit/gateway/v1alpha/triggers.proto),
// for use by the DevPortal.
// NOTE!!! The overlapping methods NEED to remain identical to the original service. !!!
service TriggersV2 {
  rpc OnInstall(devvit.dev_portal.installation.InstallationInfo) returns (google.protobuf.Empty);
  rpc OnInstallChanged(devvit.dev_portal.installation.InstallationInfo) returns (google.protobuf.Empty);
  rpc OnUninstall(devvit.dev_portal.installation.InstallationInfo) returns (google.protobuf.Empty);
  rpc OnInstallSettingsChanged(devvit.dev_portal.installation.InstallationInfo) returns (google.protobuf.Empty);
}
