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 { HttpRequestControlsMetadataResponseDto } from "./httprequestcontrolsmetadataresponsedto.js"; import { HttpRequestKeyValuePairDto } from "./httprequestkeyvaluepairdto.js"; import { ResourceOriginEnum } from "./resourceoriginenum.js"; import { StepIssuesDto } from "./stepissuesdto.js"; /** * Request body as a raw JSON string. Key-value arrays are supported for legacy workflows. */ export type HttpRequestStepResponseDtoBody = string | Array; /** * Control values for the HTTP request step */ export type HttpRequestStepResponseDtoControlValues = { /** * 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; additionalProperties?: { [k: string]: any; } | undefined; }; export type HttpRequestStepResponseDto = { /** * Controls metadata for the HTTP request step */ controls: HttpRequestControlsMetadataResponseDto; /** * Control values for the HTTP request step */ controlValues?: HttpRequestStepResponseDtoControlValues | undefined; /** * JSON Schema for variables, follows the JSON Schema standard */ variables: { [k: string]: any; }; /** * Unique identifier of the step */ stepId: string; /** * Database identifier of the step */ id: string; /** * Name of the step */ name: string; /** * Slug of the step */ slug: string; /** * Type of the step */ type: "http_request"; /** * Origin of the layout */ origin: ResourceOriginEnum; /** * Workflow identifier */ workflowId: string; /** * Workflow database identifier */ workflowDatabaseId: string; /** * Issues associated with the step */ issues?: StepIssuesDto | undefined; /** * Hash identifying the deployed Cloudflare Worker for this step */ stepResolverHash?: string | undefined; }; /** @internal */ export declare const HttpRequestStepResponseDtoBody$inboundSchema: z.ZodType; export declare function httpRequestStepResponseDtoBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const HttpRequestStepResponseDtoControlValues$inboundSchema: z.ZodType; export declare function httpRequestStepResponseDtoControlValuesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const HttpRequestStepResponseDto$inboundSchema: z.ZodType; export declare function httpRequestStepResponseDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=httprequeststepresponsedto.d.ts.map