@aikirun/types 0.8.0 → 0.9.0

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.
Files changed (2) hide show
  1. package/dist/client.d.ts +3 -3
  2. package/package.json +1 -1
package/dist/client.d.ts CHANGED
@@ -15,7 +15,7 @@ interface ClientParams<AppContext = unknown> {
15
15
  url: string;
16
16
  redis: RedisConfig;
17
17
  logger?: Logger;
18
- contextFactory?: (run: Readonly<WorkflowRun>) => AppContext | Promise<AppContext>;
18
+ createContext?: (run: Readonly<WorkflowRun>) => AppContext | Promise<AppContext>;
19
19
  }
20
20
  interface Client<AppContext = unknown> {
21
21
  api: ApiClient;
@@ -26,7 +26,7 @@ interface Client<AppContext = unknown> {
26
26
  create: (strategy: SubscriberStrategy, workflows: WorkflowMeta[], workerShards?: string[]) => SubscriberStrategyBuilder;
27
27
  };
28
28
  redis: RedisConnection;
29
- contextFactory?: (run: WorkflowRun) => AppContext | Promise<AppContext>;
29
+ createContext?: (run: WorkflowRun) => AppContext | Promise<AppContext>;
30
30
  };
31
31
  }
32
32
  interface Logger {
@@ -107,7 +107,7 @@ interface AdaptivePollingSubscriberStrategy {
107
107
  atCapacityIntervalMs?: number;
108
108
  }
109
109
  interface RedisStreamsSubscriberStrategy {
110
- type: "redis_streams";
110
+ type: "redis";
111
111
  intervalMs?: number;
112
112
  maxRetryIntervalMs?: number;
113
113
  atCapacityIntervalMs?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikirun/types",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Core type definitions for Aiki - including workflow, task, client, and trigger types",
5
5
  "type": "module",
6
6
  "exports": {