MCPcopy
hub / github.com/triggerdotdev/trigger.dev / waitForEventSchema

Function waitForEventSchema

packages/trigger-sdk/src/types.ts:165–175  ·  view source on GitHub ↗
(schema: z.ZodTypeAny)

Source from the content-addressed store, hash-verified

163};
164
165export function waitForEventSchema(schema: z.ZodTypeAny) {
166 return z.object({
167 id: z.string(),
168 name: z.string(),
169 source: z.string(),
170 payload: schema,
171 timestamp: z.coerce.date(),
172 context: z.any().optional(),
173 accountId: z.string().optional(),
174 });
175}
176
177export type NotificationEvents = {
178 runSucceeeded: (notification: SuccessfulRunNotification<any>) => void;

Callers 1

waitForEventMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…