// flynt-disable field-type-breaking-change
// flynt-disable missing-entity-id-field
syntax = "proto3";

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

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

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

message FormsSubmissionsExtensionNamespaceConfig {
    option (.wix.api.decomposite_of) = "wix.forms.v4.FormsSubmissionsExtensionNamespaceConfig";
  // Targeted namespace, with what submissions should trigger defined methods.
  string namespace = 1 [(.wix.api.minLength) = 10, (.wix.api.maxLength) = 50];
  // The ID of the specific form that will trigger the defined methods when a submission is made.
  // This field is optional. If not provided, submissions from all forms will trigger the methods.
  google.protobuf.StringValue form_id = 2 [(.wix.api.format) = GUID];
  // Enable submission validation.
  bool submission_validation_enabled = 3;
}

