syntax = "proto3";

import "wix/api/annotations.proto";
import "wix/api/validations.proto";
import "wix/common/spi.proto";
import "wix/spi/definitions.proto";
import "components_catalog_data/forms_spam_submission_reports_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_spam_submission_report_permissions.proto";

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

message FormSpamSubmissionReportSpiConfig {
  option (.wix.api.decomposite_of) = "wix.forms.v4.FormSpamSubmissionReportSpiConfig";
  // URI where the SPI Implementer is deployed
  .wix.common.spi.SpiBaseUri base_uri = 1;
  // Configuration of namespaces known by implementer
  repeated FormSpamSubmissionReportsNamespaceConfig namespace_configs = 2 [(.wix.api.maxSize) = 3];
}

message FormSpamSubmissionReportsNamespaceConfig {
  option (.wix.api.decomposite_of) = "wix.forms.v4.FormSpamSubmissionReportsNamespaceConfig";
  // Namespace name.
  string namespace = 1 [(.wix.api.minLength) = 10, (.wix.api.maxLength) = 50];
  // Permissions associated with this namespace.
  FormSpamSubmissionReportPermissions permissions = 2;
}
