UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

37 lines 1.77 kB
import type { ElementHandle } from 'playwright'; import { z } from 'zod/v4'; import type { ToolCallContext } from '../models/ToolCallContext'; import { ReplayableInteraction } from './ReplayableInteraction'; export declare const InputRandomizedEmailAddressCoreSchema: z.ZodObject<{ baseEmail: z.ZodString; finalizeWithSubmit: z.ZodOptional<z.ZodBoolean>; }, z.core.$strip>; export declare const InputRandomizedEmailAddressNonGptSchema: z.ZodObject<{ baseEmail: z.ZodString; finalizeWithSubmit: z.ZodOptional<z.ZodBoolean>; selector: z.ZodObject<{ element: z.ZodArray<z.ZodString>; frame: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.core.$strip>; }, z.core.$strip>; export declare const InputRandomizedEmailAddressGptSchema: z.ZodObject<{ baseEmail: z.ZodString; finalizeWithSubmit: z.ZodOptional<z.ZodBoolean>; whyThisAnnotation: z.ZodString; annotation: z.ZodString; rationale: z.ZodString; }, z.core.$strip>; export declare class InputRandomizedEmailAddressTool extends ReplayableInteraction<typeof InputRandomizedEmailAddressCoreSchema, typeof InputRandomizedEmailAddressNonGptSchema, typeof InputRandomizedEmailAddressGptSchema> { static readonly NAME = "inputRandomizedEmailAddress"; private static readonly CHARACTERS; private static readonly RANDOM_STRING_LENGTH; constructor(); invoke(context: ToolCallContext, parameters: z.infer<typeof InputRandomizedEmailAddressCoreSchema>, handles: { target: ElementHandle<HTMLElement | SVGElement>; label?: ElementHandle<HTMLElement | SVGElement>; }): Promise<string>; private randomizeEmail; private generateRandomString; private clearField; } //# sourceMappingURL=InputRandomizedEmailAddressTool.d.ts.map