import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ActionDto } from "./actiondto.js"; import { InAppControlsMetadataResponseDto } from "./inappcontrolsmetadataresponsedto.js"; import { RedirectDto } from "./redirectdto.js"; import { ResourceOriginEnum } from "./resourceoriginenum.js"; import { StepIssuesDto } from "./stepissuesdto.js"; /** * Control values for the in-app step */ export type InAppStepResponseDtoControlValues = { /** * JSONLogic filter conditions for conditionally skipping the step execution. Supports complex logical operations with AND, OR, and comparison operators. See https://jsonlogic.com/ for full typing reference. */ skip?: { [k: string]: any; } | undefined; /** * Content/body of the in-app message. Required if subject is empty. */ body?: string | undefined; /** * Subject/title of the in-app message. Required if body is empty. */ subject?: string | undefined; /** * URL for an avatar image. Must be a valid URL or start with / or {{ variable }}. */ avatar?: string | undefined; /** * Primary action button details. */ primaryAction?: ActionDto | undefined; /** * Secondary action button details. */ secondaryAction?: ActionDto | undefined; /** * Redirection URL configuration for the main content click (if no actions defined/clicked).. */ redirect?: RedirectDto | undefined; /** * Disable sanitization of the output. */ disableOutputSanitization: boolean; /** * Additional data payload for the step. */ data?: { [k: string]: any; } | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; export type InAppStepResponseDto = { /** * Controls metadata for the in-app step */ controls: InAppControlsMetadataResponseDto; /** * Control values for the in-app step */ controlValues?: InAppStepResponseDtoControlValues | 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: "in_app"; /** * 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 InAppStepResponseDtoControlValues$inboundSchema: z.ZodType; export declare function inAppStepResponseDtoControlValuesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const InAppStepResponseDto$inboundSchema: z.ZodType; export declare function inAppStepResponseDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=inappstepresponsedto.d.ts.map