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

Function zodfetch

packages/core/src/v3/apiClient/core.ts:37–44  ·  view source on GitHub ↗
(
  schema: TResponseBodySchema,
  url: string,
  requestInit?: RequestInit,
  options?: ZodFetchOptions
)

Source from the content-addressed store, hash-verified

35}
36
37export function zodfetch<TResponseBodySchema extends z.ZodTypeAny>(
38 schema: TResponseBodySchema,
39 url: string,
40 requestInit?: RequestInit,
41 options?: ZodFetchOptions
42): ApiPromise<z.output<TResponseBodySchema>> {
43 return new ApiPromise(_doZodFetch(schema, url, requestInit, options));
44}
45
46export function zodfetchCursorPage<TItemSchema extends z.ZodTypeAny>(
47 schema: TItemSchema,

Callers 15

getRunResultMethod · 0.90
getBatchResultsMethod · 0.90
triggerTaskMethod · 0.90
batchTriggerTaskMethod · 0.90
getPayloadUrlMethod · 0.90
retrieveRunMethod · 0.90
replayRunMethod · 0.90
cancelRunMethod · 0.90
createScheduleMethod · 0.90
retrieveScheduleMethod · 0.90
updateScheduleMethod · 0.90

Calls 1

_doZodFetchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…