/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; export type RequestCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; type?: "REQUEST" | undefined; url: string; method?: "GET" | undefined; headers?: { [k: string]: string } | undefined; params?: { [k: string]: string } | undefined; body?: string | undefined; /** * Max seconds to wait for the request to complete */ timeout?: number | undefined; }; /** @internal */ export const RequestCommand$inboundSchema: z.ZodType< RequestCommand, z.ZodTypeDef, unknown > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("REQUEST").optional(), url: z.string(), method: z.literal("GET").optional(), headers: z.record(z.string()).optional(), params: z.record(z.string()).optional(), body: z.string().optional(), timeout: z.number().int().optional(), }); /** @internal */ export type RequestCommand$Outbound = { thoughts?: string | undefined; id: string; type: "REQUEST"; url: string; method: "GET"; headers?: { [k: string]: string } | undefined; params?: { [k: string]: string } | undefined; body?: string | undefined; timeout?: number | undefined; }; /** @internal */ export const RequestCommand$outboundSchema: z.ZodType< RequestCommand$Outbound, z.ZodTypeDef, RequestCommand > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("REQUEST").default("REQUEST" as const), url: z.string(), method: z.literal("GET").default("GET" as const), headers: z.record(z.string()).optional(), params: z.record(z.string()).optional(), body: z.string().optional(), timeout: z.number().int().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace RequestCommand$ { /** @deprecated use `RequestCommand$inboundSchema` instead. */ export const inboundSchema = RequestCommand$inboundSchema; /** @deprecated use `RequestCommand$outboundSchema` instead. */ export const outboundSchema = RequestCommand$outboundSchema; /** @deprecated use `RequestCommand$Outbound` instead. */ export type Outbound = RequestCommand$Outbound; }