import type { DistributedOmit } from "type-fest"; import * as z from "zod"; import { type ActionCallInput, type ActionObjectInput } from "../../automation/actions.js"; import { type AutomationDescriptor } from "../../automation/automation-descriptor.js"; import { type Signal } from "../../automation/signal-protocol.js"; declare const FETCH_HTTP_RESPONSE_SCHEMA: z.ZodIntersection]>>; ok: z.ZodBoolean; redirected: z.ZodBoolean; status: z.ZodNumber; statusText: z.ZodString; url: z.ZodString; }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{ body: z.ZodCustom; bodyType: z.ZodLiteral<"blob">; }, z.core.$strip>, z.ZodObject<{ body: z.ZodJSONSchema; bodyType: z.ZodLiteral<"json">; }, z.core.$strip>, z.ZodObject<{ body: z.ZodString; bodyType: z.ZodLiteral<"text">; }, z.core.$strip>, z.ZodObject<{ body: z.ZodNull; bodyType: z.ZodLiteral<"empty">; }, z.core.$strip>], "bodyType">>; declare const SCOPED_EMAIL_REPLY_TO_SCHEMA: z.ZodObject<{ plusPath: z.ZodOptional; scope: z.ZodEnum<{ automation: "automation"; project: "project"; }>; }, z.core.$strip>; declare const SEND_EMAIL_INPUT_SCHEMA: z.ZodIntersection>>; headers: z.ZodOptional>; replyTo: z.ZodOptional; subject: z.ZodString; to: z.ZodDefault]>>; }, z.core.$strip>, z.ZodUnion>; markdown: z.ZodOptional; text: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ html: z.ZodOptional; markdown: z.ZodNonOptional>; text: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ html: z.ZodOptional; markdown: z.ZodOptional; text: z.ZodNonOptional>; }, z.core.$strip>]>>; type InvocationInputValue = T | Signal; /** Result emitted by {@link fetchHttp}. */ export type FetchHttpResponse = z.output; /** Enforces mutually exclusive absolute and relative invocation scheduling. */ type InvocationTimingInput = { runAt: InvocationInputValue; runIn?: never; } | { runAt?: never; runIn: InvocationInputValue; } | { runAt?: never; runIn?: never; }; export type InvokeAutomationInput = { automation: AutomationDescriptor | InvocationInputValue; entrypoint?: InvocationInputValue; payload: InvocationInputValue; } & InvocationTimingInput; /** * Invokes one entrypoint immediately or after an absolute/relative delay. * * Pass an automation descriptor, description, or ID in the current project. * Omit `entrypoint` to use `"default"`. Entrypoints beginning with `__$` are * reserved by Automate.ax. * * @param input - Typed payload, target automation, and optional delivery time. */ export declare function invokeAutomation(input: InvokeAutomationInput): Signal<{ id: string; runAt: Date; }>; export type ScopedEmailReplyTo = Omit, "plusPath"> & { plusPath?: Signal | string; }; /** Inputs accepted by the built-in organization email action. */ export type SendEmailInput = DistributedOmit, "replyTo"> & { replyTo?: ScopedEmailReplyTo | string | Signal; }; /** * Sends an email to one or every member of the project's organization. * * Provide at least one of `html`, `markdown`, or `text`. The platform derives * missing HTML and plain-text alternatives before delivery. * * The result's `id` is Resend's internal email resource ID, not the RFC 5322 * Message-ID used for threading. To reply to a received mailhook message, use * its `messageId` for `In-Reply-To`. Build `References` from its `references`, * or its `inReplyTo` when references are empty, followed by its `messageId`. * * @param input - Recipient, subject, attachments, and one or more message * bodies. * @throws When a managed Reply-To scope or plus path is invalid. */ export declare function sendEmail(input: SendEmailInput): Signal<{ /** * Resend internal email resource ID, or `null` when unavailable. This is not * an RFC 5322 Message-ID and is not a valid threading target. */ id: string | null; }>; /** * Makes a durable HTTP request to an arbitrary HTTP or HTTPS endpoint. * * JSON request bodies are serialized automatically. The response body is read * according to `responseType`, or inferred from its Content-Type with `auto`. * HTTP error statuses are returned with `ok: false`; network and body parsing * failures throw through the ordinary action retry lifecycle. * * @param input - URL, request options, and response parsing behavior. */ export declare const fetchHttp: import("../..").DefinedAction, z.ZodJSONSchema]>>; headers: z.ZodDefault>; method: z.ZodDefault>>; query: z.ZodDefault, z.ZodArray>]>>>>>; redirect: z.ZodDefault>; responseType: z.ZodDefault>; url: z.ZodURL; }, z.core.$strip>, z.ZodIntersection]>>; ok: z.ZodBoolean; redirected: z.ZodBoolean; status: z.ZodNumber; statusText: z.ZodString; url: z.ZodString; }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{ body: z.ZodCustom; bodyType: z.ZodLiteral<"blob">; }, z.core.$strip>, z.ZodObject<{ body: z.ZodJSONSchema; bodyType: z.ZodLiteral<"json">; }, z.core.$strip>, z.ZodObject<{ body: z.ZodString; bodyType: z.ZodLiteral<"text">; }, z.core.$strip>, z.ZodObject<{ body: z.ZodNull; bodyType: z.ZodLiteral<"empty">; }, z.core.$strip>], "bodyType">>, never, false, never>; declare const RESPOND_TO_HTTP_REQUEST_INPUT_SCHEMA: z.ZodObject<{ body: z.ZodOptional, z.ZodJSONSchema]>>>; headers: z.ZodDefault>; requestId: z.ZodString; status: z.ZodOptional; }, z.core.$strip>; export type RespondToHttpRequestInput = ActionCallInput; /** * Responds for an HTTP request occurrence and emits its stable request ID. * * Omitting `waitForResponse` on the originating trigger enables waiting when * its request ID is passed directly or through a derived signal. * * @param input - Originating request ID and response fields. */ export declare const respondToHttpRequest: ((input: RespondToHttpRequestInput) => Signal) & { meta: import("../..").ActionMetadata; }; export {}; //# sourceMappingURL=actions.d.ts.map