inngest
Version:
Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.
70 lines (69 loc) • 1.97 kB
TypeScript
import { EventPayload, JsonError } from "../types.js";
import { z } from "zod/v3";
//#region src/api/schema.d.ts
declare const errorSchema: z.ZodObject<{
error: z.ZodString;
status: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
status: number;
error: string;
}, {
status: number;
error: string;
}>;
type ErrorResponse = z.infer<typeof errorSchema>;
declare const stepSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"data">>>;
data: z.ZodEffects<z.ZodAny, any, any>;
}, "strict", z.ZodTypeAny, {
type: "data";
data?: any;
}, {
type?: "data" | undefined;
data?: any;
}>, z.ZodObject<{
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"error">>>;
error: z.ZodType<JsonError, z.ZodTypeDef, JsonError>;
}, "strict", z.ZodTypeAny, {
error: {
name?: string | undefined;
error?: string | undefined;
message?: string | undefined;
stack?: string | undefined;
} & {
name: string;
message: string;
cause?: unknown;
};
type: "error";
}, {
error: {
name?: string | undefined;
error?: string | undefined;
message?: string | undefined;
stack?: string | undefined;
} & {
name: string;
message: string;
cause?: unknown;
};
type?: "error" | undefined;
}>]>, z.ZodObject<{
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"input">>>;
input: z.ZodEffects<z.ZodAny, any, any>;
}, "strict", z.ZodTypeAny, {
type: "input";
input?: any;
}, {
type?: "input" | undefined;
input?: any;
}>]>, z.ZodEffects<z.ZodAny, {
type: "data";
data: any;
}, any>]>>>;
type StepsResponse = z.infer<typeof stepSchema>;
declare const batchSchema: z.ZodArray<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, EventPayload<any>, Record<string, any>>, "many">;
type BatchResponse = z.infer<typeof batchSchema>;
//#endregion
export { BatchResponse, ErrorResponse, StepsResponse };
//# sourceMappingURL=schema.d.ts.map