import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { DebugData, DebugData$Outbound } from "./debugdata.js"; import { TestContextSnapshot, TestContextSnapshot$Outbound } from "./testcontextsnapshot.js"; import { TestFailureDetails, TestFailureDetails$Outbound } from "./testfailuredetails.js"; export declare const GetRunResponseStatus: { readonly Pending: "PENDING"; readonly Running: "RUNNING"; readonly Passed: "PASSED"; readonly Failed: "FAILED"; readonly Cancelled: "CANCELLED"; readonly Retrying: "RETRYING"; readonly WaitingForUser: "WAITING_FOR_USER"; }; export type GetRunResponseStatus = ClosedEnum; export declare const Trigger: { readonly Webhook: "WEBHOOK"; readonly Cron: "CRON"; readonly Manual: "MANUAL"; readonly Cli: "CLI"; }; export type Trigger = ClosedEnum; export declare const GetRunResponseRunAttemptsStatus: { readonly Pending: "PENDING"; readonly Running: "RUNNING"; readonly Passed: "PASSED"; readonly Failed: "FAILED"; readonly Cancelled: "CANCELLED"; readonly Retrying: "RETRYING"; readonly WaitingForUser: "WAITING_FOR_USER"; }; export type GetRunResponseRunAttemptsStatus = ClosedEnum; export type RunAttempts = { id: string; status: GetRunResponseRunAttemptsStatus; startedAt: string | null; finishedAt: string | null; }; export declare const GetRunResponseFailureReason: { readonly AIProviderError: "AIProviderError"; readonly ActionFailureError: "ActionFailureError"; readonly AssertionFailureError: "AssertionFailureError"; readonly UserConfigurationError: "UserConfigurationError"; readonly JobTimeoutError: "JobTimeoutError"; readonly InternalWebAgentError: "InternalWebAgentError"; readonly InternalPlatformError: "InternalPlatformError"; readonly UnknownError: "UnknownError"; }; export type GetRunResponseFailureReason = ClosedEnum; export type GetRunResponseViewport = { width: number; height: number; }; export declare const GetRunResponseBrowserType: { readonly Chromium: "Chromium"; readonly GoogleChrome: "Google Chrome"; }; export type GetRunResponseBrowserType = ClosedEnum; export type GetRunResponseBasicAuthorization = { username: string; password: string; }; export type GetRunResponseAdvanced = { disableAICaching?: boolean | undefined; viewport?: GetRunResponseViewport | undefined; browserType?: GetRunResponseBrowserType | undefined; pageLoadTimeoutMs?: number | undefined; smartWaitingTimeoutMs?: number | undefined; /** * HTTP headers to be sent on every request */ extraHeaders?: { [k: string]: string; } | undefined; userAgent?: string | undefined; basicAuthorization?: GetRunResponseBasicAuthorization | undefined; localChromeExtensionPaths?: Array | undefined; }; export type GetRunResponseTest = { name: string; id: string; baseUrl?: string | null | undefined; advanced?: GetRunResponseAdvanced | null | undefined; }; export declare const GetRunResponseResultsStatus: { readonly Success: "SUCCESS"; readonly Failed: "FAILED"; readonly Running: "RUNNING"; readonly Idle: "IDLE"; readonly Cancelled: "CANCELLED"; }; export type GetRunResponseResultsStatus = ClosedEnum; export declare const GetRunResponseResultsFailureReason: { readonly AIProviderError: "AIProviderError"; readonly ActionFailureError: "ActionFailureError"; readonly AssertionFailureError: "AssertionFailureError"; readonly UserConfigurationError: "UserConfigurationError"; readonly JobTimeoutError: "JobTimeoutError"; readonly InternalWebAgentError: "InternalWebAgentError"; readonly InternalPlatformError: "InternalPlatformError"; readonly UnknownError: "UnknownError"; }; export type GetRunResponseResultsFailureReason = ClosedEnum; export type Results = { beforeUrl?: string | undefined; afterUrl?: string | undefined; beforeScreenshot?: string | undefined; afterScreenshot?: string | undefined; startedAt: string; finishedAt: string; status: GetRunResponseResultsStatus; message?: string | undefined; data?: any | undefined; beforeTestContext?: TestContextSnapshot | undefined; afterTestContext?: TestContextSnapshot | undefined; failureReason?: GetRunResponseResultsFailureReason | undefined; /** * Parse using StepExecutionLogSchema.array() to get type safety. We don't explicitly type it because it's non-critical information. */ details?: any | undefined; results: Array<{ [k: string]: any; }>; }; export type GetRunResponse = { id: string; runKey: string; organizationId: string; createdAt: string; createdBy: string; flake?: boolean | null | undefined; scheduledAt: string | null; startedAt: string | null; updatedAt?: string | null | undefined; finishedAt: string | null; resolvedBaseUrl?: string | null | undefined; status: GetRunResponseStatus; trigger: Trigger; attempts: number; runAttempts?: Array | undefined; videos?: Array | undefined; failureReason?: GetRunResponseFailureReason | null | undefined; failureDetails?: TestFailureDetails | null | undefined; testId: string | null; testName?: string | null | undefined; test?: GetRunResponseTest | null | undefined; suiteId?: string | null | undefined; results: Array; debugData?: DebugData | null | undefined; resolvedInputs?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const GetRunResponseStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetRunResponseStatus$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseStatus$ { /** @deprecated use `GetRunResponseStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Pending: "PENDING"; readonly Running: "RUNNING"; readonly Passed: "PASSED"; readonly Failed: "FAILED"; readonly Cancelled: "CANCELLED"; readonly Retrying: "RETRYING"; readonly WaitingForUser: "WAITING_FOR_USER"; }>; /** @deprecated use `GetRunResponseStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Pending: "PENDING"; readonly Running: "RUNNING"; readonly Passed: "PASSED"; readonly Failed: "FAILED"; readonly Cancelled: "CANCELLED"; readonly Retrying: "RETRYING"; readonly WaitingForUser: "WAITING_FOR_USER"; }>; } /** @internal */ export declare const Trigger$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Trigger$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Trigger$ { /** @deprecated use `Trigger$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Webhook: "WEBHOOK"; readonly Cron: "CRON"; readonly Manual: "MANUAL"; readonly Cli: "CLI"; }>; /** @deprecated use `Trigger$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Webhook: "WEBHOOK"; readonly Cron: "CRON"; readonly Manual: "MANUAL"; readonly Cli: "CLI"; }>; } /** @internal */ export declare const GetRunResponseRunAttemptsStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetRunResponseRunAttemptsStatus$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseRunAttemptsStatus$ { /** @deprecated use `GetRunResponseRunAttemptsStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Pending: "PENDING"; readonly Running: "RUNNING"; readonly Passed: "PASSED"; readonly Failed: "FAILED"; readonly Cancelled: "CANCELLED"; readonly Retrying: "RETRYING"; readonly WaitingForUser: "WAITING_FOR_USER"; }>; /** @deprecated use `GetRunResponseRunAttemptsStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Pending: "PENDING"; readonly Running: "RUNNING"; readonly Passed: "PASSED"; readonly Failed: "FAILED"; readonly Cancelled: "CANCELLED"; readonly Retrying: "RETRYING"; readonly WaitingForUser: "WAITING_FOR_USER"; }>; } /** @internal */ export declare const RunAttempts$inboundSchema: z.ZodType; /** @internal */ export type RunAttempts$Outbound = { id: string; status: string; startedAt: string | null; finishedAt: string | null; }; /** @internal */ export declare const RunAttempts$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace RunAttempts$ { /** @deprecated use `RunAttempts$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RunAttempts$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RunAttempts$Outbound` instead. */ type Outbound = RunAttempts$Outbound; } /** @internal */ export declare const GetRunResponseFailureReason$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetRunResponseFailureReason$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseFailureReason$ { /** @deprecated use `GetRunResponseFailureReason$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly AIProviderError: "AIProviderError"; readonly ActionFailureError: "ActionFailureError"; readonly AssertionFailureError: "AssertionFailureError"; readonly UserConfigurationError: "UserConfigurationError"; readonly JobTimeoutError: "JobTimeoutError"; readonly InternalWebAgentError: "InternalWebAgentError"; readonly InternalPlatformError: "InternalPlatformError"; readonly UnknownError: "UnknownError"; }>; /** @deprecated use `GetRunResponseFailureReason$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly AIProviderError: "AIProviderError"; readonly ActionFailureError: "ActionFailureError"; readonly AssertionFailureError: "AssertionFailureError"; readonly UserConfigurationError: "UserConfigurationError"; readonly JobTimeoutError: "JobTimeoutError"; readonly InternalWebAgentError: "InternalWebAgentError"; readonly InternalPlatformError: "InternalPlatformError"; readonly UnknownError: "UnknownError"; }>; } /** @internal */ export declare const GetRunResponseViewport$inboundSchema: z.ZodType; /** @internal */ export type GetRunResponseViewport$Outbound = { width: number; height: number; }; /** @internal */ export declare const GetRunResponseViewport$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseViewport$ { /** @deprecated use `GetRunResponseViewport$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GetRunResponseViewport$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GetRunResponseViewport$Outbound` instead. */ type Outbound = GetRunResponseViewport$Outbound; } /** @internal */ export declare const GetRunResponseBrowserType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetRunResponseBrowserType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseBrowserType$ { /** @deprecated use `GetRunResponseBrowserType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Chromium: "Chromium"; readonly GoogleChrome: "Google Chrome"; }>; /** @deprecated use `GetRunResponseBrowserType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Chromium: "Chromium"; readonly GoogleChrome: "Google Chrome"; }>; } /** @internal */ export declare const GetRunResponseBasicAuthorization$inboundSchema: z.ZodType; /** @internal */ export type GetRunResponseBasicAuthorization$Outbound = { username: string; password: string; }; /** @internal */ export declare const GetRunResponseBasicAuthorization$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseBasicAuthorization$ { /** @deprecated use `GetRunResponseBasicAuthorization$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GetRunResponseBasicAuthorization$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GetRunResponseBasicAuthorization$Outbound` instead. */ type Outbound = GetRunResponseBasicAuthorization$Outbound; } /** @internal */ export declare const GetRunResponseAdvanced$inboundSchema: z.ZodType; /** @internal */ export type GetRunResponseAdvanced$Outbound = { disableAICaching: boolean; viewport?: GetRunResponseViewport$Outbound | undefined; browserType: string; pageLoadTimeoutMs?: number | undefined; smartWaitingTimeoutMs?: number | undefined; extraHeaders?: { [k: string]: string; } | undefined; userAgent?: string | undefined; basicAuthorization?: GetRunResponseBasicAuthorization$Outbound | undefined; localChromeExtensionPaths?: Array | undefined; }; /** @internal */ export declare const GetRunResponseAdvanced$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseAdvanced$ { /** @deprecated use `GetRunResponseAdvanced$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GetRunResponseAdvanced$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GetRunResponseAdvanced$Outbound` instead. */ type Outbound = GetRunResponseAdvanced$Outbound; } /** @internal */ export declare const GetRunResponseTest$inboundSchema: z.ZodType; /** @internal */ export type GetRunResponseTest$Outbound = { name: string; id: string; baseUrl?: string | null | undefined; advanced?: GetRunResponseAdvanced$Outbound | null | undefined; }; /** @internal */ export declare const GetRunResponseTest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseTest$ { /** @deprecated use `GetRunResponseTest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GetRunResponseTest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GetRunResponseTest$Outbound` instead. */ type Outbound = GetRunResponseTest$Outbound; } /** @internal */ export declare const GetRunResponseResultsStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetRunResponseResultsStatus$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseResultsStatus$ { /** @deprecated use `GetRunResponseResultsStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Success: "SUCCESS"; readonly Failed: "FAILED"; readonly Running: "RUNNING"; readonly Idle: "IDLE"; readonly Cancelled: "CANCELLED"; }>; /** @deprecated use `GetRunResponseResultsStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Success: "SUCCESS"; readonly Failed: "FAILED"; readonly Running: "RUNNING"; readonly Idle: "IDLE"; readonly Cancelled: "CANCELLED"; }>; } /** @internal */ export declare const GetRunResponseResultsFailureReason$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetRunResponseResultsFailureReason$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponseResultsFailureReason$ { /** @deprecated use `GetRunResponseResultsFailureReason$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly AIProviderError: "AIProviderError"; readonly ActionFailureError: "ActionFailureError"; readonly AssertionFailureError: "AssertionFailureError"; readonly UserConfigurationError: "UserConfigurationError"; readonly JobTimeoutError: "JobTimeoutError"; readonly InternalWebAgentError: "InternalWebAgentError"; readonly InternalPlatformError: "InternalPlatformError"; readonly UnknownError: "UnknownError"; }>; /** @deprecated use `GetRunResponseResultsFailureReason$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly AIProviderError: "AIProviderError"; readonly ActionFailureError: "ActionFailureError"; readonly AssertionFailureError: "AssertionFailureError"; readonly UserConfigurationError: "UserConfigurationError"; readonly JobTimeoutError: "JobTimeoutError"; readonly InternalWebAgentError: "InternalWebAgentError"; readonly InternalPlatformError: "InternalPlatformError"; readonly UnknownError: "UnknownError"; }>; } /** @internal */ export declare const Results$inboundSchema: z.ZodType; /** @internal */ export type Results$Outbound = { beforeUrl?: string | undefined; afterUrl?: string | undefined; beforeScreenshot?: string | undefined; afterScreenshot?: string | undefined; startedAt: string; finishedAt: string; status: string; message?: string | undefined; data?: any | undefined; beforeTestContext?: TestContextSnapshot$Outbound | undefined; afterTestContext?: TestContextSnapshot$Outbound | undefined; failureReason?: string | undefined; details?: any | undefined; results: Array<{ [k: string]: any; }>; }; /** @internal */ export declare const Results$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Results$ { /** @deprecated use `Results$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Results$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Results$Outbound` instead. */ type Outbound = Results$Outbound; } /** @internal */ export declare const GetRunResponse$inboundSchema: z.ZodType; /** @internal */ export type GetRunResponse$Outbound = { id: string; runKey: string; organizationId: string; createdAt: string; createdBy: string; flake?: boolean | null | undefined; scheduledAt: string | null; startedAt: string | null; updatedAt?: string | null | undefined; finishedAt: string | null; resolvedBaseUrl?: string | null | undefined; status: string; trigger: string; attempts: number; runAttempts?: Array | undefined; videos?: Array | undefined; failureReason?: string | null | undefined; failureDetails?: TestFailureDetails$Outbound | null | undefined; testId: string | null; testName?: string | null | undefined; test?: GetRunResponseTest$Outbound | null | undefined; suiteId?: string | null | undefined; results: Array; debugData?: DebugData$Outbound | null | undefined; resolvedInputs?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const GetRunResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetRunResponse$ { /** @deprecated use `GetRunResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GetRunResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GetRunResponse$Outbound` instead. */ type Outbound = GetRunResponse$Outbound; } //# sourceMappingURL=getrunresponse.d.ts.map