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