@upstash/qstash 2.7.23 → 2.8.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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Receiver,
3
3
  serve
4
- } from "./chunk-G7CVCBTL.mjs";
4
+ } from "./chunk-X3J2ACLT.mjs";
5
5
 
6
6
  // node_modules/defu/dist/defu.mjs
7
7
  function isPlainObject(value) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BaseProvider
3
- } from "./chunk-G7CVCBTL.mjs";
3
+ } from "./chunk-X3J2ACLT.mjs";
4
4
 
5
5
  // src/client/api/email.ts
6
6
  var EmailProvider = class extends BaseProvider {
@@ -1164,7 +1164,7 @@ var UrlGroups = class {
1164
1164
  };
1165
1165
 
1166
1166
  // version.ts
1167
- var VERSION = "v2.7.23";
1167
+ var VERSION = "v2.8.0";
1168
1168
 
1169
1169
  // src/client/client.ts
1170
1170
  var Client = class {
@@ -1265,9 +1265,11 @@ var Client = class {
1265
1265
  return new Queue(this.http, request?.queueName);
1266
1266
  }
1267
1267
  /**
1268
- * Access the Chat API
1268
+ * Access the Chat API.
1269
1269
  *
1270
- * Call the create or prompt methods
1270
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
1271
+ *
1272
+ * Use the create or prompt methods.
1271
1273
  */
1272
1274
  chat() {
1273
1275
  return new Chat(this.http, this.token);
@@ -62,7 +62,7 @@ declare class Receiver {
62
62
  private verifyBodyAndUrl;
63
63
  }
64
64
 
65
- type State = "CREATED" | "ACTIVE" | "DELIVERED" | "ERROR" | "RETRY" | "FAILED";
65
+ type State = "CREATED" | "ACTIVE" | "DELIVERED" | "ERROR" | "RETRY" | "FAILED" | "CANCELED" | "IN_PROGRESS";
66
66
  type HTTPMethods = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
67
67
  type Log = {
68
68
  time: number;
@@ -1942,9 +1942,11 @@ declare class Client {
1942
1942
  */
1943
1943
  queue(request?: QueueRequest): Queue;
1944
1944
  /**
1945
- * Access the Chat API
1945
+ * Access the Chat API.
1946
1946
  *
1947
- * Call the create or prompt methods
1947
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
1948
+ *
1949
+ * Use the create or prompt methods.
1948
1950
  */
1949
1951
  chat(): Chat;
1950
1952
  publish<TRequest extends PublishRequest>(request: TRequest): Promise<PublishResponse<TRequest>>;
@@ -62,7 +62,7 @@ declare class Receiver {
62
62
  private verifyBodyAndUrl;
63
63
  }
64
64
 
65
- type State = "CREATED" | "ACTIVE" | "DELIVERED" | "ERROR" | "RETRY" | "FAILED";
65
+ type State = "CREATED" | "ACTIVE" | "DELIVERED" | "ERROR" | "RETRY" | "FAILED" | "CANCELED" | "IN_PROGRESS";
66
66
  type HTTPMethods = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
67
67
  type Log = {
68
68
  time: number;
@@ -1942,9 +1942,11 @@ declare class Client {
1942
1942
  */
1943
1943
  queue(request?: QueueRequest): Queue;
1944
1944
  /**
1945
- * Access the Chat API
1945
+ * Access the Chat API.
1946
1946
  *
1947
- * Call the create or prompt methods
1947
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
1948
+ *
1949
+ * Use the create or prompt methods.
1948
1950
  */
1949
1951
  chat(): Chat;
1950
1952
  publish<TRequest extends PublishRequest>(request: TRequest): Promise<PublishResponse<TRequest>>;
package/cloudflare.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.mjs';
1
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.mjs';
2
2
  import 'neverthrow';
3
3
 
4
4
  type WorkflowBindings = {
package/cloudflare.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.js';
1
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.js';
2
2
  import 'neverthrow';
3
3
 
4
4
  type WorkflowBindings = {
package/cloudflare.js CHANGED
@@ -1184,7 +1184,7 @@ var UrlGroups = class {
1184
1184
  };
1185
1185
 
1186
1186
  // version.ts
1187
- var VERSION = "v2.7.23";
1187
+ var VERSION = "v2.8.0";
1188
1188
 
1189
1189
  // src/client/client.ts
1190
1190
  var Client = class {
@@ -1285,9 +1285,11 @@ var Client = class {
1285
1285
  return new Queue(this.http, request?.queueName);
1286
1286
  }
1287
1287
  /**
1288
- * Access the Chat API
1288
+ * Access the Chat API.
1289
1289
  *
1290
- * Call the create or prompt methods
1290
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
1291
+ *
1292
+ * Use the create or prompt methods.
1291
1293
  */
1292
1294
  chat() {
1293
1295
  return new Chat(this.http, this.token);
package/cloudflare.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  serve
3
- } from "./chunk-G7CVCBTL.mjs";
3
+ } from "./chunk-X3J2ACLT.mjs";
4
4
 
5
5
  // platforms/cloudflare.ts
6
6
  var getArgs = (args) => {
package/h3.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as h3 from 'h3';
2
2
  import { H3Event } from 'h3';
3
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.mjs';
3
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.mjs';
4
4
  import 'neverthrow';
5
5
 
6
6
  type VerifySignatureConfig = {
package/h3.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as h3 from 'h3';
2
2
  import { H3Event } from 'h3';
3
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.js';
3
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.js';
4
4
  import 'neverthrow';
5
5
 
6
6
  type VerifySignatureConfig = {
package/h3.js CHANGED
@@ -2894,7 +2894,7 @@ var Workflow = class {
2894
2894
  };
2895
2895
 
2896
2896
  // version.ts
2897
- var VERSION = "v2.7.23";
2897
+ var VERSION = "v2.8.0";
2898
2898
 
2899
2899
  // src/client/client.ts
2900
2900
  var Client = class {
@@ -2995,9 +2995,11 @@ var Client = class {
2995
2995
  return new Queue(this.http, request?.queueName);
2996
2996
  }
2997
2997
  /**
2998
- * Access the Chat API
2998
+ * Access the Chat API.
2999
2999
  *
3000
- * Call the create or prompt methods
3000
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
3001
+ *
3002
+ * Use the create or prompt methods.
3001
3003
  */
3002
3004
  chat() {
3003
3005
  return new Chat(this.http, this.token);
package/h3.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  serve,
3
3
  verifySignatureH3
4
- } from "./chunk-JZACTABH.mjs";
5
- import "./chunk-ODRYYMMA.mjs";
6
- import "./chunk-G7CVCBTL.mjs";
4
+ } from "./chunk-PWDZVKVD.mjs";
5
+ import "./chunk-UJ7YXITX.mjs";
6
+ import "./chunk-X3J2ACLT.mjs";
7
7
  export {
8
8
  serve,
9
9
  verifySignatureH3
package/hono.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Context } from 'hono';
2
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.mjs';
2
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.mjs';
3
3
  import 'neverthrow';
4
4
 
5
5
  type WorkflowBindings = {
package/hono.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Context } from 'hono';
2
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.js';
2
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.js';
3
3
  import 'neverthrow';
4
4
 
5
5
  type WorkflowBindings = {
package/hono.js CHANGED
@@ -1184,7 +1184,7 @@ var UrlGroups = class {
1184
1184
  };
1185
1185
 
1186
1186
  // version.ts
1187
- var VERSION = "v2.7.23";
1187
+ var VERSION = "v2.8.0";
1188
1188
 
1189
1189
  // src/client/client.ts
1190
1190
  var Client = class {
@@ -1285,9 +1285,11 @@ var Client = class {
1285
1285
  return new Queue(this.http, request?.queueName);
1286
1286
  }
1287
1287
  /**
1288
- * Access the Chat API
1288
+ * Access the Chat API.
1289
1289
  *
1290
- * Call the create or prompt methods
1290
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
1291
+ *
1292
+ * Use the create or prompt methods.
1291
1293
  */
1292
1294
  chat() {
1293
1295
  return new Chat(this.http, this.token);
package/hono.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  serve
3
- } from "./chunk-G7CVCBTL.mjs";
3
+ } from "./chunk-X3J2ACLT.mjs";
4
4
 
5
5
  // platforms/hono.ts
6
6
  var serve2 = (routeFunction, options) => {
package/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload, L as LLMOwner, B as BaseProvider, E as EmailOwner, P as ProviderInfo } from './client-CYwLcEcQ.mjs';
2
- export { A as AddEndpointsRequest, K as BodyInit, X as Chat, Z as ChatCompletion, _ as ChatCompletionChunk, Y as ChatCompletionMessage, a4 as ChatRequest, j as Client, r as CreateScheduleRequest, t as Endpoint, y as Event, D as EventPayload, h as EventsRequest, T as FlowControl, J as GetEventsPayload, i as GetEventsResponse, I as GetLogsPayload, G as GetLogsResponse, H as HTTPMethods, N as HeadersInit, x as Log, z as LogPayload, g as LogsRequest, M as Message, o as MessagePayload, p as Messages, a2 as OpenAIChatModel, a3 as PromptChatRequest, d as PublishBatchRequest, f as PublishJsonRequest, e as PublishRequest, n as PublishResponse, k as PublishToApiResponse, m as PublishToUrlGroupsResponse, l as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, u as RemoveEndpointsRequest, O as RequestOptions, q as Schedule, s as Schedules, b as SignatureError, w as State, a0 as StreamDisabled, $ as StreamEnabled, a1 as StreamParameter, U as UrlGroup, v as UrlGroups, V as VerifyRequest, W as WithCursor, a7 as anthropic, a8 as custom, a6 as openai, a5 as upstash } from './client-CYwLcEcQ.mjs';
1
+ import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload, L as LLMOwner, B as BaseProvider, E as EmailOwner, P as ProviderInfo } from './client-BQXugsxm.mjs';
2
+ export { A as AddEndpointsRequest, K as BodyInit, X as Chat, Z as ChatCompletion, _ as ChatCompletionChunk, Y as ChatCompletionMessage, a4 as ChatRequest, j as Client, r as CreateScheduleRequest, t as Endpoint, y as Event, D as EventPayload, h as EventsRequest, T as FlowControl, J as GetEventsPayload, i as GetEventsResponse, I as GetLogsPayload, G as GetLogsResponse, H as HTTPMethods, N as HeadersInit, x as Log, z as LogPayload, g as LogsRequest, M as Message, o as MessagePayload, p as Messages, a2 as OpenAIChatModel, a3 as PromptChatRequest, d as PublishBatchRequest, f as PublishJsonRequest, e as PublishRequest, n as PublishResponse, k as PublishToApiResponse, m as PublishToUrlGroupsResponse, l as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, u as RemoveEndpointsRequest, O as RequestOptions, q as Schedule, s as Schedules, b as SignatureError, w as State, a0 as StreamDisabled, $ as StreamEnabled, a1 as StreamParameter, U as UrlGroup, v as UrlGroups, V as VerifyRequest, W as WithCursor, a7 as anthropic, a8 as custom, a6 as openai, a5 as upstash } from './client-BQXugsxm.mjs';
3
3
  import 'neverthrow';
4
4
 
5
5
  /**
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload, L as LLMOwner, B as BaseProvider, E as EmailOwner, P as ProviderInfo } from './client-CYwLcEcQ.js';
2
- export { A as AddEndpointsRequest, K as BodyInit, X as Chat, Z as ChatCompletion, _ as ChatCompletionChunk, Y as ChatCompletionMessage, a4 as ChatRequest, j as Client, r as CreateScheduleRequest, t as Endpoint, y as Event, D as EventPayload, h as EventsRequest, T as FlowControl, J as GetEventsPayload, i as GetEventsResponse, I as GetLogsPayload, G as GetLogsResponse, H as HTTPMethods, N as HeadersInit, x as Log, z as LogPayload, g as LogsRequest, M as Message, o as MessagePayload, p as Messages, a2 as OpenAIChatModel, a3 as PromptChatRequest, d as PublishBatchRequest, f as PublishJsonRequest, e as PublishRequest, n as PublishResponse, k as PublishToApiResponse, m as PublishToUrlGroupsResponse, l as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, u as RemoveEndpointsRequest, O as RequestOptions, q as Schedule, s as Schedules, b as SignatureError, w as State, a0 as StreamDisabled, $ as StreamEnabled, a1 as StreamParameter, U as UrlGroup, v as UrlGroups, V as VerifyRequest, W as WithCursor, a7 as anthropic, a8 as custom, a6 as openai, a5 as upstash } from './client-CYwLcEcQ.js';
1
+ import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload, L as LLMOwner, B as BaseProvider, E as EmailOwner, P as ProviderInfo } from './client-BQXugsxm.js';
2
+ export { A as AddEndpointsRequest, K as BodyInit, X as Chat, Z as ChatCompletion, _ as ChatCompletionChunk, Y as ChatCompletionMessage, a4 as ChatRequest, j as Client, r as CreateScheduleRequest, t as Endpoint, y as Event, D as EventPayload, h as EventsRequest, T as FlowControl, J as GetEventsPayload, i as GetEventsResponse, I as GetLogsPayload, G as GetLogsResponse, H as HTTPMethods, N as HeadersInit, x as Log, z as LogPayload, g as LogsRequest, M as Message, o as MessagePayload, p as Messages, a2 as OpenAIChatModel, a3 as PromptChatRequest, d as PublishBatchRequest, f as PublishJsonRequest, e as PublishRequest, n as PublishResponse, k as PublishToApiResponse, m as PublishToUrlGroupsResponse, l as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, u as RemoveEndpointsRequest, O as RequestOptions, q as Schedule, s as Schedules, b as SignatureError, w as State, a0 as StreamDisabled, $ as StreamEnabled, a1 as StreamParameter, U as UrlGroup, v as UrlGroups, V as VerifyRequest, W as WithCursor, a7 as anthropic, a8 as custom, a6 as openai, a5 as upstash } from './client-BQXugsxm.js';
3
3
  import 'neverthrow';
4
4
 
5
5
  /**
package/index.js CHANGED
@@ -1246,7 +1246,7 @@ var Workflow = class {
1246
1246
  };
1247
1247
 
1248
1248
  // version.ts
1249
- var VERSION = "v2.7.23";
1249
+ var VERSION = "v2.8.0";
1250
1250
 
1251
1251
  // src/client/client.ts
1252
1252
  var Client = class {
@@ -1347,9 +1347,11 @@ var Client = class {
1347
1347
  return new Queue(this.http, request?.queueName);
1348
1348
  }
1349
1349
  /**
1350
- * Access the Chat API
1350
+ * Access the Chat API.
1351
1351
  *
1352
- * Call the create or prompt methods
1352
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
1353
+ *
1354
+ * Use the create or prompt methods.
1353
1355
  */
1354
1356
  chat() {
1355
1357
  return new Chat(this.http, this.token);
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resend
3
- } from "./chunk-ODRYYMMA.mjs";
3
+ } from "./chunk-UJ7YXITX.mjs";
4
4
  import {
5
5
  Chat,
6
6
  Client,
@@ -22,7 +22,7 @@ import {
22
22
  openai,
23
23
  setupAnalytics,
24
24
  upstash
25
- } from "./chunk-G7CVCBTL.mjs";
25
+ } from "./chunk-X3J2ACLT.mjs";
26
26
  export {
27
27
  Chat,
28
28
  Client,
package/nextjs.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NextApiHandler } from 'next';
2
2
  import { NextRequest, NextFetchEvent } from 'next/server';
3
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.mjs';
3
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.mjs';
4
4
  import 'neverthrow';
5
5
 
6
6
  type VerifySignatureConfig = {
@@ -22,7 +22,7 @@ type VerifySignatureConfig = {
22
22
  declare function verifySignature(handler: NextApiHandler, config?: VerifySignatureConfig): NextApiHandler;
23
23
  declare function verifySignatureEdge(handler: (request: NextRequest, nfe?: NextFetchEvent) => Response | Promise<Response>, config?: VerifySignatureConfig): (request: NextRequest, nfe: NextFetchEvent) => Promise<Response>;
24
24
  type VerifySignatureAppRouterResponse = Response | Promise<Response>;
25
- declare function verifySignatureAppRouter(handler: ((request: Request, params?: unknown) => VerifySignatureAppRouterResponse) | ((request: NextRequest, params?: unknown) => VerifySignatureAppRouterResponse), config?: VerifySignatureConfig): (request: NextRequest | Request, params?: unknown) => Promise<Response>;
25
+ declare function verifySignatureAppRouter(handler: ((request: Request, params?: any) => VerifySignatureAppRouterResponse) | ((request: NextRequest, params?: any) => VerifySignatureAppRouterResponse), config?: VerifySignatureConfig): (request: NextRequest | Request, params?: any) => Promise<Response>;
26
26
  /**
27
27
  * Serve method to serve a Upstash Workflow in a Nextjs project
28
28
  *
package/nextjs.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NextApiHandler } from 'next';
2
2
  import { NextRequest, NextFetchEvent } from 'next/server';
3
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.js';
3
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.js';
4
4
  import 'neverthrow';
5
5
 
6
6
  type VerifySignatureConfig = {
@@ -22,7 +22,7 @@ type VerifySignatureConfig = {
22
22
  declare function verifySignature(handler: NextApiHandler, config?: VerifySignatureConfig): NextApiHandler;
23
23
  declare function verifySignatureEdge(handler: (request: NextRequest, nfe?: NextFetchEvent) => Response | Promise<Response>, config?: VerifySignatureConfig): (request: NextRequest, nfe: NextFetchEvent) => Promise<Response>;
24
24
  type VerifySignatureAppRouterResponse = Response | Promise<Response>;
25
- declare function verifySignatureAppRouter(handler: ((request: Request, params?: unknown) => VerifySignatureAppRouterResponse) | ((request: NextRequest, params?: unknown) => VerifySignatureAppRouterResponse), config?: VerifySignatureConfig): (request: NextRequest | Request, params?: unknown) => Promise<Response>;
25
+ declare function verifySignatureAppRouter(handler: ((request: Request, params?: any) => VerifySignatureAppRouterResponse) | ((request: NextRequest, params?: any) => VerifySignatureAppRouterResponse), config?: VerifySignatureConfig): (request: NextRequest | Request, params?: any) => Promise<Response>;
26
26
  /**
27
27
  * Serve method to serve a Upstash Workflow in a Nextjs project
28
28
  *
package/nextjs.js CHANGED
@@ -1188,7 +1188,7 @@ var UrlGroups = class {
1188
1188
  };
1189
1189
 
1190
1190
  // version.ts
1191
- var VERSION = "v2.7.23";
1191
+ var VERSION = "v2.8.0";
1192
1192
 
1193
1193
  // src/client/client.ts
1194
1194
  var Client = class {
@@ -1289,9 +1289,11 @@ var Client = class {
1289
1289
  return new Queue(this.http, request?.queueName);
1290
1290
  }
1291
1291
  /**
1292
- * Access the Chat API
1292
+ * Access the Chat API.
1293
1293
  *
1294
- * Call the create or prompt methods
1294
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
1295
+ *
1296
+ * Use the create or prompt methods.
1295
1297
  */
1296
1298
  chat() {
1297
1299
  return new Chat(this.http, this.token);
package/nextjs.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Receiver,
3
3
  serve
4
- } from "./chunk-G7CVCBTL.mjs";
4
+ } from "./chunk-X3J2ACLT.mjs";
5
5
 
6
6
  // platforms/nextjs.ts
7
7
  var BAD_REQUEST = 400;
package/nuxt.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  verifySignatureH3
3
- } from "./chunk-JZACTABH.mjs";
4
- import "./chunk-ODRYYMMA.mjs";
5
- import "./chunk-G7CVCBTL.mjs";
3
+ } from "./chunk-PWDZVKVD.mjs";
4
+ import "./chunk-UJ7YXITX.mjs";
5
+ import "./chunk-X3J2ACLT.mjs";
6
6
 
7
7
  // platforms/nuxt.ts
8
8
  var verifySignatureNuxt = verifySignatureH3;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"version":"v2.7.23","name":"@upstash/qstash","description":"Official Typescript client for QStash","author":"Andreas Thomas <dev@chronark.com>","license":"MIT","homepage":"https://github.com/upstash/sdk-qstash-ts#readme","repository":{"type":"git","url":"git+https://github.com/upstash/sdk-qstash-ts.git"},"bugs":{"url":"https://github.com/upstash/sdk-qstash-ts/issues"},"main":"./index.js","module":"./index.mjs","types":"./index.d.ts","files":["./*"],"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./dist/nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./h3":{"import":"./h3.mjs","require":"./h3.js"},"./nuxt":{"import":"./nuxt.mjs","require":"./nuxt.js"},"./svelte":{"import":"./svelte.mjs","require":"./svelte.js"},"./solidjs":{"import":"./solidjs.mjs","require":"./solidjs.js"},"./workflow":{"import":"./workflow.mjs","require":"./workflow.js"},"./hono":{"import":"./hono.mjs","require":"./hono.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"}},"keywords":["qstash","queue","events","serverless","upstash"],"scripts":{"build":"tsup && cp README.md ./dist/ && cp package.json ./dist/ && cp LICENSE ./dist/","test":"bun test src","fmt":"prettier --write .","lint":"tsc && eslint \"{src,platforms}/**/*.{js,ts,tsx}\" --quiet --fix","check-exports":"bun run build && cd dist && attw -P"},"devDependencies":{"@commitlint/cli":"^19.2.2","@commitlint/config-conventional":"^19.2.2","@eslint/eslintrc":"^3.1.0","@eslint/js":"^9.10.0","@solidjs/start":"^1.0.6","@sveltejs/kit":"^2.5.18","@types/bun":"^1.1.1","@types/crypto-js":"^4.2.0","@typescript-eslint/eslint-plugin":"^8.4.0","@typescript-eslint/parser":"^8.4.0","ai":"^3.1.28","bun-types":"^1.1.7","eslint":"^9.10.0","eslint-plugin-unicorn":"^51.0.1","h3":"^1.12.0","hono":"^4.5.8","husky":"^9.0.10","next":"^14.0.2","prettier":"^3.2.5","tsup":"latest","typescript":"^5.4.5","undici-types":"^6.16.0","vitest":"latest"},"dependencies":{"crypto-js":">=4.2.0","jose":"^5.2.3","neverthrow":"^7.0.1"}}
1
+ {"version":"v2.8.0","name":"@upstash/qstash","description":"Official Typescript client for QStash","author":"Andreas Thomas <dev@chronark.com>","license":"MIT","homepage":"https://github.com/upstash/sdk-qstash-ts#readme","repository":{"type":"git","url":"git+https://github.com/upstash/sdk-qstash-ts.git"},"bugs":{"url":"https://github.com/upstash/sdk-qstash-ts/issues"},"main":"./index.js","module":"./index.mjs","types":"./index.d.ts","files":["./*"],"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./dist/nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./h3":{"import":"./h3.mjs","require":"./h3.js"},"./nuxt":{"import":"./nuxt.mjs","require":"./nuxt.js"},"./svelte":{"import":"./svelte.mjs","require":"./svelte.js"},"./solidjs":{"import":"./solidjs.mjs","require":"./solidjs.js"},"./workflow":{"import":"./workflow.mjs","require":"./workflow.js"},"./hono":{"import":"./hono.mjs","require":"./hono.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"}},"keywords":["qstash","queue","events","serverless","upstash"],"scripts":{"build":"tsup && cp README.md ./dist/ && cp package.json ./dist/ && cp LICENSE ./dist/","test":"bun test src","fmt":"prettier --write .","lint":"tsc && eslint \"{src,platforms}/**/*.{js,ts,tsx}\" --quiet --fix","check-exports":"bun run build && cd dist && attw -P"},"devDependencies":{"@commitlint/cli":"^19.2.2","@commitlint/config-conventional":"^19.2.2","@eslint/eslintrc":"^3.1.0","@eslint/js":"^9.10.0","@solidjs/start":"^1.0.6","@sveltejs/kit":"^2.5.18","@types/bun":"^1.1.1","@types/crypto-js":"^4.2.0","@typescript-eslint/eslint-plugin":"^8.4.0","@typescript-eslint/parser":"^8.4.0","ai":"^3.1.28","bun-types":"^1.1.7","eslint":"^9.10.0","eslint-plugin-unicorn":"^51.0.1","h3":"^1.12.0","hono":"^4.5.8","husky":"^9.0.10","next":"^14.0.2","prettier":"^3.2.5","tsup":"latest","typescript":"^5.4.5","undici-types":"^6.16.0","vitest":"latest"},"dependencies":{"crypto-js":">=4.2.0","jose":"^5.2.3","neverthrow":"^7.0.1"}}
package/solidjs.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { APIHandler, APIEvent } from '@solidjs/start/server';
2
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.mjs';
2
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.mjs';
3
3
  import 'neverthrow';
4
4
 
5
5
  type VerifySignatureConfig = {
package/solidjs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { APIHandler, APIEvent } from '@solidjs/start/server';
2
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.js';
2
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.js';
3
3
  import 'neverthrow';
4
4
 
5
5
  type VerifySignatureConfig = {
package/solidjs.js CHANGED
@@ -2571,7 +2571,7 @@ var Workflow = class {
2571
2571
  };
2572
2572
 
2573
2573
  // version.ts
2574
- var VERSION = "v2.7.23";
2574
+ var VERSION = "v2.8.0";
2575
2575
 
2576
2576
  // src/client/client.ts
2577
2577
  var Client = class {
@@ -2672,9 +2672,11 @@ var Client = class {
2672
2672
  return new Queue(this.http, request?.queueName);
2673
2673
  }
2674
2674
  /**
2675
- * Access the Chat API
2675
+ * Access the Chat API.
2676
2676
  *
2677
- * Call the create or prompt methods
2677
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
2678
+ *
2679
+ * Use the create or prompt methods.
2678
2680
  */
2679
2681
  chat() {
2680
2682
  return new Chat(this.http, this.token);
package/solidjs.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import "./chunk-ODRYYMMA.mjs";
1
+ import "./chunk-UJ7YXITX.mjs";
2
2
  import {
3
3
  Receiver,
4
4
  serve
5
- } from "./chunk-G7CVCBTL.mjs";
5
+ } from "./chunk-X3J2ACLT.mjs";
6
6
 
7
7
  // platforms/solidjs.ts
8
8
  var verifySignatureSolidjs = (handler, config) => {
package/svelte.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { RequestHandler } from '@sveltejs/kit';
2
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.mjs';
2
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.mjs';
3
3
  import 'neverthrow';
4
4
 
5
5
  type VerifySignatureConfig = {
package/svelte.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { RequestHandler } from '@sveltejs/kit';
2
- import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-CYwLcEcQ.js';
2
+ import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BQXugsxm.js';
3
3
  import 'neverthrow';
4
4
 
5
5
  type VerifySignatureConfig = {
package/svelte.js CHANGED
@@ -2571,7 +2571,7 @@ var Workflow = class {
2571
2571
  };
2572
2572
 
2573
2573
  // version.ts
2574
- var VERSION = "v2.7.23";
2574
+ var VERSION = "v2.8.0";
2575
2575
 
2576
2576
  // src/client/client.ts
2577
2577
  var Client = class {
@@ -2672,9 +2672,11 @@ var Client = class {
2672
2672
  return new Queue(this.http, request?.queueName);
2673
2673
  }
2674
2674
  /**
2675
- * Access the Chat API
2675
+ * Access the Chat API.
2676
2676
  *
2677
- * Call the create or prompt methods
2677
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
2678
+ *
2679
+ * Use the create or prompt methods.
2678
2680
  */
2679
2681
  chat() {
2680
2682
  return new Chat(this.http, this.token);
package/svelte.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import "./chunk-ODRYYMMA.mjs";
1
+ import "./chunk-UJ7YXITX.mjs";
2
2
  import {
3
3
  Receiver,
4
4
  serve
5
- } from "./chunk-G7CVCBTL.mjs";
5
+ } from "./chunk-X3J2ACLT.mjs";
6
6
 
7
7
  // platforms/svelte.ts
8
8
  var verifySignatureSvelte = (handler, config) => {
package/workflow.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export { am as AsyncStepFunction, af as DisabledWorkflowContext, F as FailureFunctionPayload, ap as FinishCondition, ar as LogLevel, ao as ParallelCallState, ak as RawStep, aq as RequiredExceptFields, a9 as RouteFunction, S as Step, an as StepFunction, aj as StepType, ai as StepTypes, al as SyncStepFunction, ab as Workflow, ag as WorkflowClient, ae as WorkflowContext, at as WorkflowLogger, as as WorkflowLoggerOptions, ah as WorkflowReceiver, aa as WorkflowServeOptions, ac as processOptions, ad as serve } from './client-CYwLcEcQ.mjs';
1
+ export { am as AsyncStepFunction, af as DisabledWorkflowContext, F as FailureFunctionPayload, ap as FinishCondition, ar as LogLevel, ao as ParallelCallState, ak as RawStep, aq as RequiredExceptFields, a9 as RouteFunction, S as Step, an as StepFunction, aj as StepType, ai as StepTypes, al as SyncStepFunction, ab as Workflow, ag as WorkflowClient, ae as WorkflowContext, at as WorkflowLogger, as as WorkflowLoggerOptions, ah as WorkflowReceiver, aa as WorkflowServeOptions, ac as processOptions, ad as serve } from './client-BQXugsxm.mjs';
2
2
  import 'neverthrow';
package/workflow.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { am as AsyncStepFunction, af as DisabledWorkflowContext, F as FailureFunctionPayload, ap as FinishCondition, ar as LogLevel, ao as ParallelCallState, ak as RawStep, aq as RequiredExceptFields, a9 as RouteFunction, S as Step, an as StepFunction, aj as StepType, ai as StepTypes, al as SyncStepFunction, ab as Workflow, ag as WorkflowClient, ae as WorkflowContext, at as WorkflowLogger, as as WorkflowLoggerOptions, ah as WorkflowReceiver, aa as WorkflowServeOptions, ac as processOptions, ad as serve } from './client-CYwLcEcQ.js';
1
+ export { am as AsyncStepFunction, af as DisabledWorkflowContext, F as FailureFunctionPayload, ap as FinishCondition, ar as LogLevel, ao as ParallelCallState, ak as RawStep, aq as RequiredExceptFields, a9 as RouteFunction, S as Step, an as StepFunction, aj as StepType, ai as StepTypes, al as SyncStepFunction, ab as Workflow, ag as WorkflowClient, ae as WorkflowContext, at as WorkflowLogger, as as WorkflowLoggerOptions, ah as WorkflowReceiver, aa as WorkflowServeOptions, ac as processOptions, ad as serve } from './client-BQXugsxm.js';
2
2
  import 'neverthrow';
package/workflow.js CHANGED
@@ -1190,7 +1190,7 @@ var UrlGroups = class {
1190
1190
  };
1191
1191
 
1192
1192
  // version.ts
1193
- var VERSION = "v2.7.23";
1193
+ var VERSION = "v2.8.0";
1194
1194
 
1195
1195
  // src/client/client.ts
1196
1196
  var Client = class {
@@ -1291,9 +1291,11 @@ var Client = class {
1291
1291
  return new Queue(this.http, request?.queueName);
1292
1292
  }
1293
1293
  /**
1294
- * Access the Chat API
1294
+ * Access the Chat API.
1295
1295
  *
1296
- * Call the create or prompt methods
1296
+ * @deprecated This will be removed in qstash-js 3.0.0. Please use an alternative SDK for interacting with LLMs.
1297
+ *
1298
+ * Use the create or prompt methods.
1297
1299
  */
1298
1300
  chat() {
1299
1301
  return new Chat(this.http, this.token);
package/workflow.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  WorkflowLogger,
7
7
  processOptions,
8
8
  serve
9
- } from "./chunk-G7CVCBTL.mjs";
9
+ } from "./chunk-X3J2ACLT.mjs";
10
10
  export {
11
11
  DisabledWorkflowContext,
12
12
  StepTypes,