@upstash/workflow 0.2.8-rc-invoke → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/astro.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { APIContext, APIRoute } from 'astro';
2
- import { b as WorkflowContext, j as PublicServeOptions, t as InvokableWorkflow } from './types-C7Y7WUQd.mjs';
3
- import { s as serveManyBase } from './serve-many-BlBvXfBS.mjs';
2
+ import { e as WorkflowContext, k as PublicServeOptions, t as InvokableWorkflow } from './types-CYhDXnf8.mjs';
3
+ import { s as serveManyBase } from './serve-many-BVDpPsF-.mjs';
4
4
  import '@upstash/qstash';
5
5
  import 'zod';
6
6
  import 'ai';
@@ -9,8 +9,8 @@ import '@ai-sdk/openai';
9
9
  declare function serve<TInitialPayload = unknown, TResult = unknown>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<TResult>, options?: PublicServeOptions<TInitialPayload>): {
10
10
  POST: APIRoute;
11
11
  };
12
- declare const createWorkflow: <TInitialPayload, TResult>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<TResult>, options?: PublicServeOptions<TInitialPayload> | undefined) => InvokableWorkflow<TInitialPayload, TResult, Parameters<ReturnType<typeof serve<TInitialPayload, TResult>>["POST"]>>;
13
- declare const serveMany: (workflows: Parameters<typeof serveManyBase>[0]["workflows"]) => {
12
+ declare const createWorkflow: <TInitialPayload, TResult>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<TResult>, options?: PublicServeOptions<TInitialPayload> | undefined) => InvokableWorkflow<TInitialPayload, TResult>;
13
+ declare const serveMany: (workflows: Parameters<typeof serveManyBase>[0]["workflows"], options?: Parameters<typeof serveManyBase>[0]["options"]) => {
14
14
  POST: (context: APIContext<Record<string, any>, Record<string, string | undefined>>) => Promise<any>;
15
15
  };
16
16
 
package/astro.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { APIContext, APIRoute } from 'astro';
2
- import { b as WorkflowContext, j as PublicServeOptions, t as InvokableWorkflow } from './types-C7Y7WUQd.js';
3
- import { s as serveManyBase } from './serve-many-Dw-UUnH6.js';
2
+ import { e as WorkflowContext, k as PublicServeOptions, t as InvokableWorkflow } from './types-CYhDXnf8.js';
3
+ import { s as serveManyBase } from './serve-many-e4zufyXN.js';
4
4
  import '@upstash/qstash';
5
5
  import 'zod';
6
6
  import 'ai';
@@ -9,8 +9,8 @@ import '@ai-sdk/openai';
9
9
  declare function serve<TInitialPayload = unknown, TResult = unknown>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<TResult>, options?: PublicServeOptions<TInitialPayload>): {
10
10
  POST: APIRoute;
11
11
  };
12
- declare const createWorkflow: <TInitialPayload, TResult>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<TResult>, options?: PublicServeOptions<TInitialPayload> | undefined) => InvokableWorkflow<TInitialPayload, TResult, Parameters<ReturnType<typeof serve<TInitialPayload, TResult>>["POST"]>>;
13
- declare const serveMany: (workflows: Parameters<typeof serveManyBase>[0]["workflows"]) => {
12
+ declare const createWorkflow: <TInitialPayload, TResult>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<TResult>, options?: PublicServeOptions<TInitialPayload> | undefined) => InvokableWorkflow<TInitialPayload, TResult>;
13
+ declare const serveMany: (workflows: Parameters<typeof serveManyBase>[0]["workflows"], options?: Parameters<typeof serveManyBase>[0]["options"]) => {
14
14
  POST: (context: APIContext<Record<string, any>, Record<string, string | undefined>>) => Promise<any>;
15
15
  };
16
16