/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; export type GraphQLRequestCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; type?: "GRAPHQL_REQUEST" | undefined; url: string; headers?: { [k: string]: string } | undefined; query: string; variables?: { [k: string]: string } | undefined; /** * Max seconds to wait for the request to complete */ timeout?: number | undefined; }; /** @internal */ export const GraphQLRequestCommand$inboundSchema: z.ZodType< GraphQLRequestCommand, z.ZodTypeDef, unknown > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("GRAPHQL_REQUEST").optional(), url: z.string(), headers: z.record(z.string()).optional(), query: z.string(), variables: z.record(z.string()).optional(), timeout: z.number().int().optional(), }); /** @internal */ export type GraphQLRequestCommand$Outbound = { thoughts?: string | undefined; id: string; type: "GRAPHQL_REQUEST"; url: string; headers?: { [k: string]: string } | undefined; query: string; variables?: { [k: string]: string } | undefined; timeout?: number | undefined; }; /** @internal */ export const GraphQLRequestCommand$outboundSchema: z.ZodType< GraphQLRequestCommand$Outbound, z.ZodTypeDef, GraphQLRequestCommand > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("GRAPHQL_REQUEST").default("GRAPHQL_REQUEST" as const), url: z.string(), headers: z.record(z.string()).optional(), query: z.string(), variables: z.record(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 GraphQLRequestCommand$ { /** @deprecated use `GraphQLRequestCommand$inboundSchema` instead. */ export const inboundSchema = GraphQLRequestCommand$inboundSchema; /** @deprecated use `GraphQLRequestCommand$outboundSchema` instead. */ export const outboundSchema = GraphQLRequestCommand$outboundSchema; /** @deprecated use `GraphQLRequestCommand$Outbound` instead. */ export type Outbound = GraphQLRequestCommand$Outbound; }