UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

369 lines (368 loc) • 12.9 kB
import { z } from "zod"; export declare const getCurrentWorker: { name: string; title: string; description: string; inputSchema: { projectRef: z.ZodOptional<z.ZodString>; configPath: z.ZodOptional<z.ZodString>; environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>; branch: z.ZodOptional<z.ZodString>; }; handler: (input: unknown, extra: import("../types.js").ToolMeta) => Promise<{ [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; "io.modelcontextprotocol/related-task"?: { taskId: string; } | undefined; } | undefined; content: ({ type: "text"; text: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; } | { type: "image"; data: string; mimeType: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; } | { type: "audio"; data: string; mimeType: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; } | { uri: string; description?: string | undefined; mimeType?: string | undefined; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; icons?: { src: string; mimeType?: string | undefined; sizes?: string[] | undefined; theme?: "dark" | "light" | undefined; }[] | undefined; name: string; title?: string | undefined; type: "resource_link"; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; _meta?: { [x: string]: unknown; } | undefined; text: string; } | { uri: string; mimeType?: string | undefined; _meta?: { [x: string]: unknown; } | undefined; blob: string; }; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; })[]; structuredContent?: { [x: string]: unknown; } | undefined; isError?: boolean | undefined; }>; }; export declare const triggerTaskTool: { name: string; title: string; description: string; inputSchema: { projectRef: z.ZodOptional<z.ZodString>; configPath: z.ZodOptional<z.ZodString>; environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>; branch: z.ZodOptional<z.ZodString>; } & { taskId: z.ZodString; payload: z.ZodAny; options: z.ZodOptional<z.ZodObject<{ queue: z.ZodOptional<z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>>; delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>; idempotencyKey: z.ZodOptional<z.ZodString>; machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>; maxAttempts: z.ZodOptional<z.ZodNumber>; maxDuration: z.ZodOptional<z.ZodNumber>; region: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; ttl: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber]>>; }, "strip", z.ZodTypeAny, { queue?: { name: string; } | undefined; delay?: string | Date | undefined; idempotencyKey?: string | undefined; machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined; maxAttempts?: number | undefined; maxDuration?: number | undefined; region?: string | undefined; tags?: string[] | undefined; ttl: string | number; }, { queue?: { name: string; } | undefined; delay?: string | Date | undefined; idempotencyKey?: string | undefined; machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined; maxAttempts?: number | undefined; maxDuration?: number | undefined; region?: string | undefined; tags?: string[] | undefined; ttl?: string | number | undefined; }>>; }; handler: (input: unknown, extra: import("../types.js").ToolMeta) => Promise<{ [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; "io.modelcontextprotocol/related-task"?: { taskId: string; } | undefined; } | undefined; content: ({ type: "text"; text: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; } | { type: "image"; data: string; mimeType: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; } | { type: "audio"; data: string; mimeType: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; } | { uri: string; description?: string | undefined; mimeType?: string | undefined; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; icons?: { src: string; mimeType?: string | undefined; sizes?: string[] | undefined; theme?: "dark" | "light" | undefined; }[] | undefined; name: string; title?: string | undefined; type: "resource_link"; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; _meta?: { [x: string]: unknown; } | undefined; text: string; } | { uri: string; mimeType?: string | undefined; _meta?: { [x: string]: unknown; } | undefined; blob: string; }; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; })[]; structuredContent?: { [x: string]: unknown; } | undefined; isError?: boolean | undefined; }>; }; export declare const getTaskSchemaTool: { name: string; title: string; description: string; inputSchema: { projectRef: z.ZodOptional<z.ZodString>; configPath: z.ZodOptional<z.ZodString>; environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod", "preview"]>>; branch: z.ZodOptional<z.ZodString>; } & { taskSlug: z.ZodString; }; handler: (input: unknown, extra: import("../types.js").ToolMeta) => Promise<{ [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; "io.modelcontextprotocol/related-task"?: { taskId: string; } | undefined; } | undefined; content: ({ type: "text"; text: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; } | { type: "image"; data: string; mimeType: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; } | { type: "audio"; data: string; mimeType: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; } | { uri: string; description?: string | undefined; mimeType?: string | undefined; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; icons?: { src: string; mimeType?: string | undefined; sizes?: string[] | undefined; theme?: "dark" | "light" | undefined; }[] | undefined; name: string; title?: string | undefined; type: "resource_link"; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; _meta?: { [x: string]: unknown; } | undefined; text: string; } | { uri: string; mimeType?: string | undefined; _meta?: { [x: string]: unknown; } | undefined; blob: string; }; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; })[]; structuredContent?: { [x: string]: unknown; } | undefined; isError?: boolean | undefined; }>; };