// Copyright 2026 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Do not edit this file manually. See README.chromium for details on
// how to edit this file.

syntax = 'proto3';

option optimize_for = LITE_RUNTIME;
option java_package = 'org.chromium.components.omnibox';
option java_outer_classname = 'SearchboxConfigProto';

package omnibox;
import "rule_set.proto";
import "input_type_config.proto";
import "model_config.proto";
import "section_config.proto";
import "tool_config.proto";

// Configuration for the AI searchbox (e.g. input plate and fusebox)
// Next ID: 15
message SearchboxConfig {
  // The rule set to use for the searchbox.
  // This is deprecated (only used for legacy xGA client and Chrome)
  // For validation use *_config.rule instead.
  // For allowed primitives use presence of the *_configs instead.
  optional RuleSet rule_set = 1;


  // Configurations for server allowed input types.
  // This is the source of truth for what input types are allowed.
  // Client should render input types in the same order.
  repeated InputTypeConfig input_type_configs = 4;
  // Configurations for server allowed tools.
  // This is the source of truth for what tools are allowed.
  // Client should render tools in the same order.
  repeated ToolConfig tool_configs = 5;
  // Configurations for server allowed models.
  // This is the source of truth for what models are allowed.
  // Client should render models in the same order.
  repeated ModelConfig model_configs = 6;

  // Configuration for the tools section in menu.
  optional SectionConfig tools_section_config = 7;
  // Configuration for the model section in menu.
  optional SectionConfig model_section_config = 8;
  // Default Searchbox input text field hint text.
  // Current active tools/models takes precedence
  optional string hint_text = 9;



  // Account check token and timestamp for Safari-to-iGA redirect
  // reconciliation.
  string account_check_token = 13;
  string account_check_timestamp = 14;
}
