@upstash/workflow 0.2.22-rc → 0.2.23-rc

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/index.mjs CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  WorkflowError,
8
8
  WorkflowLogger,
9
9
  WorkflowNonRetryableError,
10
+ WorkflowRetryAfterError,
10
11
  WorkflowTool,
11
12
  getWorkflowRunId,
12
13
  makeGetWaitersRequest,
@@ -14,7 +15,7 @@ import {
14
15
  prepareFlowControl,
15
16
  serve,
16
17
  triggerFirstInvocation
17
- } from "./chunk-CAQSUCHB.mjs";
18
+ } from "./chunk-KAGTWBLF.mjs";
18
19
 
19
20
  // src/client/index.ts
20
21
  import { Client as QStashClient } from "@upstash/qstash";
@@ -257,14 +258,14 @@ var Client = class {
257
258
  workflowRunId: finalWorkflowRunId,
258
259
  retries: option.retries,
259
260
  retryDelay: option.retryDelay,
260
- telemetry: { sdk: SDK_TELEMETRY },
261
+ telemetry: option.disableTelemetry ? void 0 : { sdk: SDK_TELEMETRY },
261
262
  flowControl: option.flowControl,
262
263
  failureUrl,
263
264
  label: option.label
264
265
  });
265
266
  return {
266
267
  workflowContext: context,
267
- telemetry: { sdk: SDK_TELEMETRY },
268
+ telemetry: option.disableTelemetry ? void 0 : { sdk: SDK_TELEMETRY },
268
269
  delay: option.delay,
269
270
  notBefore: option.notBefore,
270
271
  keepTriggerConfig: option.keepTriggerConfig
@@ -348,6 +349,7 @@ export {
348
349
  WorkflowError,
349
350
  WorkflowLogger,
350
351
  WorkflowNonRetryableError,
352
+ WorkflowRetryAfterError,
351
353
  WorkflowTool,
352
354
  serve
353
355
  };
package/nextjs.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
2
- import { R as RouteFunction, n as PublicServeOptions, y as InvokableWorkflow } from './types-Q3dM0UlR.mjs';
3
- import { s as serveManyBase } from './serve-many-BNusWYgt.mjs';
2
+ import { R as RouteFunction, o as PublicServeOptions, z as InvokableWorkflow } from './types-BD06btU6.mjs';
3
+ import { s as serveManyBase } from './serve-many-B5Vbacm6.mjs';
4
4
  import '@upstash/qstash';
5
5
  import 'zod';
6
6
  import 'ai';
package/nextjs.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
2
- import { R as RouteFunction, n as PublicServeOptions, y as InvokableWorkflow } from './types-Q3dM0UlR.js';
3
- import { s as serveManyBase } from './serve-many-CXqQP3RI.js';
2
+ import { R as RouteFunction, o as PublicServeOptions, z as InvokableWorkflow } from './types-BD06btU6.js';
3
+ import { s as serveManyBase } from './serve-many-BCV7INWe.js';
4
4
  import '@upstash/qstash';
5
5
  import 'zod';
6
6
  import 'ai';