/** * Copyright 2026 Google LLC. * Copyright (c) Microsoft Corporation. * * Licensed 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 AUTOGENERATED by cddlconv 0.2.0. * Run `tools/update_bidi_types.py` to regenerate. * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs */ import type { BrowsingContext, Script } from './webdriver-bidi.js'; export type AutofillCommand = Autofill.Trigger; export declare namespace Autofill { type Trigger = { method: 'autofill.trigger'; params: Autofill.TriggerParameters; }; } export declare namespace Autofill { type TriggerParameters = { context: BrowsingContext.BrowsingContext; element: Script.SharedReference; card?: Autofill.Card; address?: Autofill.Address; }; } export declare namespace Autofill { type Card = { number: string; name: string; expiryMonth: string; expiryYear: string; cvc: string; }; } export declare namespace Autofill { type Address = { fields: [...Autofill.Field[]]; }; } export declare namespace Autofill { type Field = { name: Autofill.FieldName; value: string; }; } export declare namespace Autofill { const FieldName: { readonly Name: 'name'; readonly HonorificPrefix: 'honorific-prefix'; readonly GivenName: 'given-name'; readonly AdditionalName: 'additional-name'; readonly FamilyName: 'family-name'; readonly HonorificSuffix: 'honorific-suffix'; readonly Nickname: 'nickname'; readonly Organization: 'organization'; readonly StreetAddress: 'street-address'; readonly AddressLine1: 'address-line1'; readonly AddressLine2: 'address-line2'; readonly AddressLine3: 'address-line3'; readonly AddressLevel4: 'address-level4'; readonly AddressLevel3: 'address-level3'; readonly AddressLevel2: 'address-level2'; readonly AddressLevel1: 'address-level1'; readonly Country: 'country'; readonly CountryName: 'country-name'; readonly PostalCode: 'postal-code'; readonly Tel: 'tel'; readonly TelCountryCode: 'tel-country-code'; readonly TelNational: 'tel-national'; readonly TelAreaCode: 'tel-area-code'; readonly TelLocal: 'tel-local'; readonly Email: 'email'; }; type FieldName = (typeof FieldName)[keyof typeof FieldName]; }