import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { HttpMethodEnum } from "./httpmethodenum.js"; import { HttpRequestKeyValuePairDto, HttpRequestKeyValuePairDto$Outbound } from "./httprequestkeyvaluepairdto.js"; /** * Request body as a raw JSON string. Key-value arrays are supported for legacy workflows. */ export type Body = string | Array; export type HttpRequestControlDto = { /** * HTTP method */ method: HttpMethodEnum; /** * Target URL for the HTTP request */ url: string; /** * Request headers as key-value pairs */ headers?: Array | undefined; /** * Request body as a raw JSON string. Key-value arrays are supported for legacy workflows. */ body?: string | Array | undefined; /** * JSON schema to validate response body against */ responseBodySchema?: { [k: string]: any; } | undefined; /** * Whether to enforce response body schema validation */ enforceSchemaValidation?: boolean | undefined; /** * Whether to continue workflow execution on failure */ continueOnFailure?: boolean | undefined; }; /** @internal */ export declare const Body$inboundSchema: z.ZodType; /** @internal */ export type Body$Outbound = string | Array; /** @internal */ export declare const Body$outboundSchema: z.ZodType; export declare function bodyToJSON(body: Body): string; export declare function bodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const HttpRequestControlDto$inboundSchema: z.ZodType; /** @internal */ export type HttpRequestControlDto$Outbound = { method: string; url: string; headers?: Array | undefined; body?: string | Array | undefined; responseBodySchema?: { [k: string]: any; } | undefined; enforceSchemaValidation?: boolean | undefined; continueOnFailure?: boolean | undefined; }; /** @internal */ export declare const HttpRequestControlDto$outboundSchema: z.ZodType; export declare function httpRequestControlDtoToJSON(httpRequestControlDto: HttpRequestControlDto): string; export declare function httpRequestControlDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=httprequestcontroldto.d.ts.map