syntax = "proto3";

import "wix/api/validations.proto";
import "wix/common/spi.proto";
import "wix/api/annotations.proto";
import "google/protobuf/wrappers.proto";

package com.wixpress.appservice.api.upstream.wix.forms.v4.moderation_spi;

message FormSubmissionModerationSpiConfig {
    option (.wix.api.decomposite_of) = "wix.forms.v4.moderation_spi.FormSubmissionModerationSpiConfig";
  // URI where the SPI Implementer is deployed
  .wix.common.spi.SpiBaseUri deployment_uri = 1;
  reserved 2;
  // Namespace names.
  repeated FormSubmissionModerationSpiNamespaceConfig namespace_configs = 3 [(.wix.api.maxSize) = 10];
}

message FormSubmissionModerationSpiNamespaceConfig {
    option (.wix.api.decomposite_of) = "wix.forms.v4.moderation_spi.FormSubmissionModerationSpiNamespaceConfig";
  /*
  The app which the form submissions belong to. For example, the namespace for the Wix Forms app is `wix.form_app.form`.

  Call `Get Submission` to retrieve the namespace.
  */
  string namespace = 1 [(.wix.api.minLength) = 10, (.wix.api.maxLength) = 50];
  // The ID of the specific form that will trigger form moderation.
  // This field is optional. If not provided, submissions from all forms will trigger the moderation.
  google.protobuf.StringValue form_id = 2 [(.wix.api.format) = GUID];
  // Enable submission moderation.
  bool submission_moderation_enabled = 3;
}
