# Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

# This file is automatically generated. DO NOT EDIT!
# Regenerate with: bazel run //rb/lib/selenium/webdriver:bidi-generate

module Selenium
  module WebDriver
    class BiDi
      module Protocol
        class Bluetooth < ::Selenium::WebDriver::BiDi::Protocol::Domain
          EVENTS: Hash[Symbol, String]

          SIMULATE_ADAPTER_PARAMETERS_STATE: Hash[Symbol, String]

          SIMULATE_SERVICE_PARAMETERS_TYPE: Hash[Symbol, String]

          SIMULATE_CHARACTERISTIC_PARAMETERS_TYPE: Hash[Symbol, String]

          SIMULATE_CHARACTERISTIC_RESPONSE_PARAMETERS_TYPE: Hash[Symbol, String]

          SIMULATE_DESCRIPTOR_PARAMETERS_TYPE: Hash[Symbol, String]

          SIMULATE_DESCRIPTOR_RESPONSE_PARAMETERS_TYPE: Hash[Symbol, String]

          CHARACTERISTIC_EVENT_GENERATED_PARAMETERS_TYPE: Hash[Symbol, String]

          DESCRIPTOR_EVENT_GENERATED_PARAMETERS_TYPE: Hash[Symbol, String]

          class BluetoothManufacturerData < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader key: Integer
            attr_reader data: String
            def self.new: (key: Integer, data: String) -> instance
          end

          class CharacteristicProperties < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader broadcast: untyped
            attr_reader read: untyped
            attr_reader write_without_response: untyped
            attr_reader write: untyped
            attr_reader notify: untyped
            attr_reader indicate: untyped
            attr_reader authenticated_signed_writes: untyped
            attr_reader extended_properties: untyped
            def self.new: (?broadcast: bool, ?read: bool, ?write_without_response: bool, ?write: bool, ?notify: bool, ?indicate: bool, ?authenticated_signed_writes: bool, ?extended_properties: bool) -> instance
          end

          class RequestDeviceInfo < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader id: String
            attr_reader name: String?
            def self.new: (id: String, name: String?) -> instance
          end

          class ScanRecord < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader name: untyped
            attr_reader uuids: untyped
            attr_reader appearance: untyped
            attr_reader manufacturer_data: untyped
            def self.new: (?name: String, ?uuids: Array[String], ?appearance: Numeric, ?manufacturer_data: Array[::Selenium::WebDriver::BiDi::Protocol::Bluetooth::BluetoothManufacturerData]) -> instance
          end

          class HandleRequestDevicePromptParameters < ::Selenium::WebDriver::BiDi::Serialization::Union
            class AcceptParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
              attr_reader accept: bool
              attr_reader context: String
              attr_reader prompt: String
              attr_reader device: String
              def self.new: (?accept: bool, context: String, prompt: String, device: String) -> instance
            end
            class CancelParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
              attr_reader accept: bool
              attr_reader context: String
              attr_reader prompt: String
              def self.new: (?accept: bool, context: String, prompt: String) -> instance
            end
          end

          class SimulateAdapterParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader le_supported: untyped
            attr_reader state: Symbol
            def self.new: (context: String, ?le_supported: bool, state: Symbol) -> instance
          end

          class DisableSimulationParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            def self.new: (context: String) -> instance
          end

          class SimulatePreconnectedPeripheralParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            attr_reader name: String
            attr_reader manufacturer_data: Array[::Selenium::WebDriver::BiDi::Protocol::Bluetooth::BluetoothManufacturerData]
            attr_reader known_service_uuids: Array[String]
            def self.new: (context: String, address: String, name: String, manufacturer_data: Array[::Selenium::WebDriver::BiDi::Protocol::Bluetooth::BluetoothManufacturerData], known_service_uuids: Array[String]) -> instance
          end

          class SimulateAdvertisementParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader scan_entry: ::Selenium::WebDriver::BiDi::Protocol::Bluetooth::SimulateAdvertisementScanEntryParameters
            def self.new: (context: String, scan_entry: ::Selenium::WebDriver::BiDi::Protocol::Bluetooth::SimulateAdvertisementScanEntryParameters) -> instance
          end

          class SimulateAdvertisementScanEntryParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader device_address: String
            attr_reader rssi: Numeric
            attr_reader scan_record: ::Selenium::WebDriver::BiDi::Protocol::Bluetooth::ScanRecord
            def self.new: (device_address: String, rssi: Numeric, scan_record: ::Selenium::WebDriver::BiDi::Protocol::Bluetooth::ScanRecord) -> instance
          end

          class SimulateGattConnectionResponseParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            attr_reader code: Integer
            def self.new: (context: String, address: String, code: Integer) -> instance
          end

          class SimulateGattDisconnectionParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            def self.new: (context: String, address: String) -> instance
          end

          class SimulateServiceParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            attr_reader uuid: String
            attr_reader type: Symbol
            def self.new: (context: String, address: String, uuid: String, type: Symbol) -> instance
          end

          class SimulateCharacteristicParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            attr_reader service_uuid: String
            attr_reader characteristic_uuid: String
            attr_reader characteristic_properties: untyped
            attr_reader type: Symbol
            def self.new: (context: String, address: String, service_uuid: String, characteristic_uuid: String, ?characteristic_properties: ::Selenium::WebDriver::BiDi::Protocol::Bluetooth::CharacteristicProperties, type: Symbol) -> instance
          end

          class SimulateCharacteristicResponseParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            attr_reader service_uuid: String
            attr_reader characteristic_uuid: String
            attr_reader type: Symbol
            attr_reader code: Integer
            attr_reader data: untyped
            def self.new: (context: String, address: String, service_uuid: String, characteristic_uuid: String, type: Symbol, code: Integer, ?data: Array[Integer]) -> instance
          end

          class SimulateDescriptorParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            attr_reader service_uuid: String
            attr_reader characteristic_uuid: String
            attr_reader descriptor_uuid: String
            attr_reader type: Symbol
            def self.new: (context: String, address: String, service_uuid: String, characteristic_uuid: String, descriptor_uuid: String, type: Symbol) -> instance
          end

          class SimulateDescriptorResponseParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            attr_reader service_uuid: String
            attr_reader characteristic_uuid: String
            attr_reader descriptor_uuid: String
            attr_reader type: Symbol
            attr_reader code: Integer
            attr_reader data: untyped
            def self.new: (context: String, address: String, service_uuid: String, characteristic_uuid: String, descriptor_uuid: String, type: Symbol, code: Integer, ?data: Array[Integer]) -> instance
          end

          class RequestDevicePromptUpdatedParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader prompt: String
            attr_reader devices: Array[::Selenium::WebDriver::BiDi::Protocol::Bluetooth::RequestDeviceInfo]
            def self.new: (context: String, prompt: String, devices: Array[::Selenium::WebDriver::BiDi::Protocol::Bluetooth::RequestDeviceInfo]) -> instance
          end

          class GattConnectionAttemptedParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            def self.new: (context: String, address: String) -> instance
          end

          class CharacteristicEventGeneratedParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            attr_reader service_uuid: String
            attr_reader characteristic_uuid: String
            attr_reader type: Symbol
            attr_reader data: untyped
            def self.new: (context: String, address: String, service_uuid: String, characteristic_uuid: String, type: Symbol, ?data: Array[Integer]) -> instance
          end

          class DescriptorEventGeneratedParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader context: String
            attr_reader address: String
            attr_reader service_uuid: String
            attr_reader characteristic_uuid: String
            attr_reader descriptor_uuid: String
            attr_reader type: Symbol
            attr_reader data: untyped
            def self.new: (context: String, address: String, service_uuid: String, characteristic_uuid: String, descriptor_uuid: String, type: Symbol, ?data: Array[Integer]) -> instance
          end

          EVENT_TYPES: Hash[String, untyped]

          def handle_request_device_prompt: (context: String, prompt: String, accept: bool, ?device: String) -> untyped
          def simulate_adapter: (context: String, state: Symbol, ?le_supported: bool) -> untyped
          def disable_simulation: (context: String) -> untyped
          def simulate_preconnected_peripheral: (context: String, address: String, name: String, manufacturer_data: Array[::Selenium::WebDriver::BiDi::Protocol::Bluetooth::BluetoothManufacturerData], known_service_uuids: Array[String]) -> untyped
          def simulate_advertisement: (context: String, scan_entry: ::Selenium::WebDriver::BiDi::Protocol::Bluetooth::SimulateAdvertisementScanEntryParameters) -> untyped
          def simulate_gatt_connection_response: (context: String, address: String, code: Integer) -> untyped
          def simulate_gatt_disconnection: (context: String, address: String) -> untyped
          def simulate_service: (context: String, address: String, uuid: String, type: Symbol) -> untyped
          def simulate_characteristic: (context: String, address: String, service_uuid: String, characteristic_uuid: String, type: Symbol, ?characteristic_properties: ::Selenium::WebDriver::BiDi::Protocol::Bluetooth::CharacteristicProperties) -> untyped
          def simulate_characteristic_response: (context: String, address: String, service_uuid: String, characteristic_uuid: String, type: Symbol, code: Integer, ?data: Array[Integer]) -> untyped
          def simulate_descriptor: (context: String, address: String, service_uuid: String, characteristic_uuid: String, descriptor_uuid: String, type: Symbol) -> untyped
          def simulate_descriptor_response: (context: String, address: String, service_uuid: String, characteristic_uuid: String, descriptor_uuid: String, type: Symbol, code: Integer, ?data: Array[Integer]) -> untyped
        end
      end
    end
  end
end
