workflow
Version:
Workflow SDK - Build durable, resilient, and observable workflows
26 lines • 1.24 kB
TypeScript
/**
* Built-in steps available in the workflow scope. Like a standard library,
* they are available alongside user-defined steps, but users do not import
* them. The runtime uses these steps internally.
*/
export declare function __builtin_response_array_buffer(this: Request | Response): Promise<ArrayBuffer>;
export declare function __builtin_response_json(this: Request | Response): Promise<unknown>;
export declare function __builtin_response_text(this: Request | Response): Promise<string>;
/**
* Step bridge for workflow-body `setAttributes` calls. The VM-side
* helper validates input and dispatches here via `useStep`. This step
* runs in normal Node context with full world access.
*
* The dispatch reads the world and current run id directly from
* `globalThis` symbols populated by the workflow/step runtime. This
* intentionally avoids importing `@workflow/core` so the Next.js
* deferred-entries discoverer can't walk a chain into world adapters
* and `@vercel/queue` from this step file.
*/
export declare function __builtin_set_attributes(changes: Array<{
key: string;
value: string | null;
}>, options?: {
allowReservedAttributes?: boolean;
}): Promise<void>;
//# sourceMappingURL=builtins.d.ts.map