@upstash/qstash 2.7.9 → 2.7.10
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/{chunk-QK55BUNQ.mjs → chunk-HIWMJGFU.mjs} +20 -9
- package/{chunk-R5CZPV7H.js → chunk-KZOQ64Z6.js} +20 -9
- package/{chunk-UPFTIDSI.mjs → chunk-O2RN672L.mjs} +1 -1
- package/{chunk-YBZBGHDQ.js → chunk-Q6JW7JKT.js} +3 -3
- package/{client-DkrYCqaq.d.mts → client-orcgOcAm.d.mts} +17 -26
- package/{client-DkrYCqaq.d.ts → client-orcgOcAm.d.ts} +17 -26
- package/cloudflare.d.mts +1 -1
- package/cloudflare.d.ts +1 -1
- package/cloudflare.js +2 -2
- package/cloudflare.mjs +1 -1
- package/h3.d.mts +1 -1
- package/h3.d.ts +1 -1
- package/h3.js +3 -3
- package/h3.mjs +2 -2
- package/hono.d.mts +1 -1
- package/hono.d.ts +1 -1
- package/hono.js +2 -2
- package/hono.mjs +1 -1
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/index.mjs +1 -1
- package/nextjs.d.mts +1 -1
- package/nextjs.d.ts +1 -1
- package/nextjs.js +6 -6
- package/nextjs.mjs +1 -1
- package/nuxt.js +3 -3
- package/nuxt.mjs +2 -2
- package/package.json +1 -1
- package/solidjs.d.mts +1 -1
- package/solidjs.d.ts +1 -1
- package/solidjs.js +3 -3
- package/solidjs.mjs +1 -1
- package/svelte.d.mts +1 -1
- package/svelte.d.ts +1 -1
- package/svelte.js +3 -3
- package/svelte.mjs +1 -1
- package/workflow.d.mts +1 -1
- package/workflow.d.ts +1 -1
- package/workflow.js +2 -2
- package/workflow.mjs +1 -1
|
@@ -352,13 +352,20 @@ var upstash = () => {
|
|
|
352
352
|
return {
|
|
353
353
|
owner: "upstash",
|
|
354
354
|
baseUrl: "https://qstash.upstash.io/llm",
|
|
355
|
-
token: ""
|
|
355
|
+
token: "",
|
|
356
|
+
organization: void 0
|
|
356
357
|
};
|
|
357
358
|
};
|
|
358
359
|
var openai = ({
|
|
359
|
-
token
|
|
360
|
+
token,
|
|
361
|
+
organization
|
|
360
362
|
}) => {
|
|
361
|
-
return {
|
|
363
|
+
return {
|
|
364
|
+
token,
|
|
365
|
+
owner: "openai",
|
|
366
|
+
baseUrl: "https://api.openai.com",
|
|
367
|
+
organization
|
|
368
|
+
};
|
|
362
369
|
};
|
|
363
370
|
var custom = ({
|
|
364
371
|
baseUrl,
|
|
@@ -368,7 +375,8 @@ var custom = ({
|
|
|
368
375
|
return {
|
|
369
376
|
token,
|
|
370
377
|
owner: "custom",
|
|
371
|
-
baseUrl: trimmedBaseUrl
|
|
378
|
+
baseUrl: trimmedBaseUrl,
|
|
379
|
+
organization: void 0
|
|
372
380
|
};
|
|
373
381
|
};
|
|
374
382
|
|
|
@@ -448,7 +456,7 @@ var Chat = class _Chat {
|
|
|
448
456
|
*/
|
|
449
457
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
450
458
|
createThirdParty = async (request) => {
|
|
451
|
-
const { baseUrl, token, owner } = request.provider;
|
|
459
|
+
const { baseUrl, token, owner, organization } = request.provider;
|
|
452
460
|
if (owner === "upstash")
|
|
453
461
|
throw new Error("Upstash is not 3rd party provider!");
|
|
454
462
|
delete request.provider;
|
|
@@ -462,6 +470,9 @@ var Chat = class _Chat {
|
|
|
462
470
|
const headers = {
|
|
463
471
|
"Content-Type": "application/json",
|
|
464
472
|
Authorization: `Bearer ${token}`,
|
|
473
|
+
...organization ? {
|
|
474
|
+
"OpenAI-Organization": organization
|
|
475
|
+
} : {},
|
|
465
476
|
...isStream ? {
|
|
466
477
|
Connection: "keep-alive",
|
|
467
478
|
Accept: "text/event-stream",
|
|
@@ -677,7 +688,7 @@ function decodeBase64(base64) {
|
|
|
677
688
|
return new TextDecoder().decode(intArray);
|
|
678
689
|
} catch (error) {
|
|
679
690
|
console.warn(
|
|
680
|
-
`Upstash Qstash: Failed while decoding base64 "${base64}". Decoding with atob and returning it instead.
|
|
691
|
+
`Upstash Qstash: Failed while decoding base64 "${base64}". Decoding with atob and returning it instead. ${error}`
|
|
681
692
|
);
|
|
682
693
|
return atob(base64);
|
|
683
694
|
}
|
|
@@ -1630,11 +1641,11 @@ var handleThirdPartyCallResult = async (request, requestPayload, client, workflo
|
|
|
1630
1641
|
if (!(callbackMessage.status >= 200 && callbackMessage.status < 300)) {
|
|
1631
1642
|
await debug?.log("WARN", "SUBMIT_THIRD_PARTY_RESULT", {
|
|
1632
1643
|
status: callbackMessage.status,
|
|
1633
|
-
body:
|
|
1644
|
+
body: atob(callbackMessage.body)
|
|
1634
1645
|
});
|
|
1635
1646
|
console.warn(
|
|
1636
1647
|
`Workflow Warning: "context.call" failed with status ${callbackMessage.status} and will retry (if there are retries remaining). Error Message:
|
|
1637
|
-
${
|
|
1648
|
+
${atob(callbackMessage.body)}`
|
|
1638
1649
|
);
|
|
1639
1650
|
return ok("call-will-retry");
|
|
1640
1651
|
}
|
|
@@ -1670,7 +1681,7 @@ ${decodeBase64(callbackMessage.body)}`
|
|
|
1670
1681
|
stepId: Number(stepIdString),
|
|
1671
1682
|
stepName,
|
|
1672
1683
|
stepType,
|
|
1673
|
-
out:
|
|
1684
|
+
out: atob(callbackMessage.body),
|
|
1674
1685
|
concurrent: Number(concurrentString)
|
|
1675
1686
|
};
|
|
1676
1687
|
await debug?.log("SUBMIT", "SUBMIT_THIRD_PARTY_RESULT", {
|
|
@@ -352,13 +352,20 @@ var upstash = () => {
|
|
|
352
352
|
return {
|
|
353
353
|
owner: "upstash",
|
|
354
354
|
baseUrl: "https://qstash.upstash.io/llm",
|
|
355
|
-
token: ""
|
|
355
|
+
token: "",
|
|
356
|
+
organization: void 0
|
|
356
357
|
};
|
|
357
358
|
};
|
|
358
359
|
var openai = ({
|
|
359
|
-
token
|
|
360
|
+
token,
|
|
361
|
+
organization
|
|
360
362
|
}) => {
|
|
361
|
-
return {
|
|
363
|
+
return {
|
|
364
|
+
token,
|
|
365
|
+
owner: "openai",
|
|
366
|
+
baseUrl: "https://api.openai.com",
|
|
367
|
+
organization
|
|
368
|
+
};
|
|
362
369
|
};
|
|
363
370
|
var custom = ({
|
|
364
371
|
baseUrl,
|
|
@@ -368,7 +375,8 @@ var custom = ({
|
|
|
368
375
|
return {
|
|
369
376
|
token,
|
|
370
377
|
owner: "custom",
|
|
371
|
-
baseUrl: trimmedBaseUrl
|
|
378
|
+
baseUrl: trimmedBaseUrl,
|
|
379
|
+
organization: void 0
|
|
372
380
|
};
|
|
373
381
|
};
|
|
374
382
|
|
|
@@ -448,7 +456,7 @@ var Chat = (_class2 = class _Chat {
|
|
|
448
456
|
*/
|
|
449
457
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
450
458
|
__init4() {this.createThirdParty = async (request) => {
|
|
451
|
-
const { baseUrl, token, owner } = request.provider;
|
|
459
|
+
const { baseUrl, token, owner, organization } = request.provider;
|
|
452
460
|
if (owner === "upstash")
|
|
453
461
|
throw new Error("Upstash is not 3rd party provider!");
|
|
454
462
|
delete request.provider;
|
|
@@ -462,6 +470,9 @@ var Chat = (_class2 = class _Chat {
|
|
|
462
470
|
const headers = {
|
|
463
471
|
"Content-Type": "application/json",
|
|
464
472
|
Authorization: `Bearer ${token}`,
|
|
473
|
+
...organization ? {
|
|
474
|
+
"OpenAI-Organization": organization
|
|
475
|
+
} : {},
|
|
465
476
|
...isStream ? {
|
|
466
477
|
Connection: "keep-alive",
|
|
467
478
|
Accept: "text/event-stream",
|
|
@@ -677,7 +688,7 @@ function decodeBase64(base64) {
|
|
|
677
688
|
return new TextDecoder().decode(intArray);
|
|
678
689
|
} catch (error) {
|
|
679
690
|
console.warn(
|
|
680
|
-
`Upstash Qstash: Failed while decoding base64 "${base64}". Decoding with atob and returning it instead.
|
|
691
|
+
`Upstash Qstash: Failed while decoding base64 "${base64}". Decoding with atob and returning it instead. ${error}`
|
|
681
692
|
);
|
|
682
693
|
return atob(base64);
|
|
683
694
|
}
|
|
@@ -1630,11 +1641,11 @@ var handleThirdPartyCallResult = async (request, requestPayload, client, workflo
|
|
|
1630
1641
|
if (!(callbackMessage.status >= 200 && callbackMessage.status < 300)) {
|
|
1631
1642
|
await _optionalChain([debug, 'optionalAccess', _40 => _40.log, 'call', _41 => _41("WARN", "SUBMIT_THIRD_PARTY_RESULT", {
|
|
1632
1643
|
status: callbackMessage.status,
|
|
1633
|
-
body:
|
|
1644
|
+
body: atob(callbackMessage.body)
|
|
1634
1645
|
})]);
|
|
1635
1646
|
console.warn(
|
|
1636
1647
|
`Workflow Warning: "context.call" failed with status ${callbackMessage.status} and will retry (if there are retries remaining). Error Message:
|
|
1637
|
-
${
|
|
1648
|
+
${atob(callbackMessage.body)}`
|
|
1638
1649
|
);
|
|
1639
1650
|
return ok("call-will-retry");
|
|
1640
1651
|
}
|
|
@@ -1670,7 +1681,7 @@ ${decodeBase64(callbackMessage.body)}`
|
|
|
1670
1681
|
stepId: Number(stepIdString),
|
|
1671
1682
|
stepName,
|
|
1672
1683
|
stepType,
|
|
1673
|
-
out:
|
|
1684
|
+
out: atob(callbackMessage.body),
|
|
1674
1685
|
concurrent: Number(concurrentString)
|
|
1675
1686
|
};
|
|
1676
1687
|
await _optionalChain([debug, 'optionalAccess', _42 => _42.log, 'call', _43 => _43("SUBMIT", "SUBMIT_THIRD_PARTY_RESULT", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKZOQ64Z6js = require('./chunk-KZOQ64Z6.js');
|
|
5
5
|
|
|
6
6
|
// node_modules/defu/dist/defu.mjs
|
|
7
7
|
function isPlainObject(value) {
|
|
@@ -340,7 +340,7 @@ var verifySignatureH3 = (handler, config) => {
|
|
|
340
340
|
"nextSigningKey is required, either in the config or as env variable QSTASH_NEXT_SIGNING_KEY"
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
|
-
const receiver = new (0,
|
|
343
|
+
const receiver = new (0, _chunkKZOQ64Z6js.Receiver)({
|
|
344
344
|
currentSigningKey,
|
|
345
345
|
nextSigningKey
|
|
346
346
|
});
|
|
@@ -391,7 +391,7 @@ var serve2 = (routeFunction, options) => {
|
|
|
391
391
|
body: await readRawBody(event),
|
|
392
392
|
method: "POST"
|
|
393
393
|
});
|
|
394
|
-
const serveHandler =
|
|
394
|
+
const serveHandler = _chunkKZOQ64Z6js.serve.call(void 0, routeFunction, options);
|
|
395
395
|
return await serveHandler(request);
|
|
396
396
|
});
|
|
397
397
|
return handler;
|
|
@@ -105,10 +105,12 @@ type RateLimit = {
|
|
|
105
105
|
reset: string | null;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
type
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
type Owner = "upstash" | "openai" | "custom";
|
|
109
|
+
type ProviderReturnType<TOwner extends Owner = Owner, TBaseUrl extends string = string, TToken extends string = string, TOrganization extends string | undefined = string | undefined> = {
|
|
110
|
+
owner: TOwner;
|
|
111
|
+
baseUrl: TBaseUrl;
|
|
112
|
+
token: TToken;
|
|
113
|
+
organization: TOrganization;
|
|
112
114
|
};
|
|
113
115
|
type AnalyticsConfig = {
|
|
114
116
|
name: "helicone";
|
|
@@ -119,26 +121,15 @@ type AnalyticsSetup = {
|
|
|
119
121
|
defaultHeaders?: Record<string, string | undefined>;
|
|
120
122
|
};
|
|
121
123
|
declare const setupAnalytics: (analytics: AnalyticsConfig | undefined, providerApiKey: string, providerBaseUrl?: string, provider?: "openai" | "upstash" | "custom") => AnalyticsSetup;
|
|
122
|
-
declare const upstash: () =>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
declare const
|
|
128
|
-
token: string;
|
|
129
|
-
}) => {
|
|
130
|
-
owner: "openai";
|
|
131
|
-
baseUrl: "https://api.openai.com";
|
|
132
|
-
token: string;
|
|
133
|
-
};
|
|
134
|
-
declare const custom: ({ baseUrl, token, }: {
|
|
135
|
-
token: string;
|
|
136
|
-
baseUrl: string;
|
|
137
|
-
}) => {
|
|
138
|
-
owner: "custom";
|
|
124
|
+
declare const upstash: () => ProviderReturnType<"upstash", "https://qstash.upstash.io/llm", "">;
|
|
125
|
+
declare const openai: <TToken extends string = string, TOrganization extends string | undefined = undefined>({ token, organization, }: {
|
|
126
|
+
token: TToken;
|
|
127
|
+
organization?: TOrganization;
|
|
128
|
+
}) => ProviderReturnType<"openai", "https://api.openai.com", TToken, TOrganization extends string ? TOrganization : undefined>;
|
|
129
|
+
declare const custom: <TToken extends string = string>({ baseUrl, token, }: {
|
|
139
130
|
baseUrl: string;
|
|
140
|
-
token:
|
|
141
|
-
}
|
|
131
|
+
token: TToken;
|
|
132
|
+
}) => ProviderReturnType<"custom", string, TToken>;
|
|
142
133
|
|
|
143
134
|
type ChatCompletionMessage = {
|
|
144
135
|
role: "system" | "assistant" | "user";
|
|
@@ -227,21 +218,21 @@ type ChatRequestFields = ChatRequestCommonFields & {
|
|
|
227
218
|
messages: ChatCompletionMessage[];
|
|
228
219
|
};
|
|
229
220
|
type ChatRequestProviders = {
|
|
230
|
-
provider: ProviderReturnType
|
|
221
|
+
provider: ProviderReturnType<"openai">;
|
|
231
222
|
model: OpenAIChatModel;
|
|
232
223
|
analytics?: {
|
|
233
224
|
name: "helicone";
|
|
234
225
|
token: string;
|
|
235
226
|
};
|
|
236
227
|
} | {
|
|
237
|
-
provider: ProviderReturnType
|
|
228
|
+
provider: ProviderReturnType<"custom">;
|
|
238
229
|
model: string;
|
|
239
230
|
analytics?: {
|
|
240
231
|
name: "helicone";
|
|
241
232
|
token: string;
|
|
242
233
|
};
|
|
243
234
|
} | {
|
|
244
|
-
provider: ProviderReturnType
|
|
235
|
+
provider: ProviderReturnType<"upstash">;
|
|
245
236
|
model: ChatModel;
|
|
246
237
|
analytics?: {
|
|
247
238
|
name: "helicone";
|
|
@@ -105,10 +105,12 @@ type RateLimit = {
|
|
|
105
105
|
reset: string | null;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
type
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
type Owner = "upstash" | "openai" | "custom";
|
|
109
|
+
type ProviderReturnType<TOwner extends Owner = Owner, TBaseUrl extends string = string, TToken extends string = string, TOrganization extends string | undefined = string | undefined> = {
|
|
110
|
+
owner: TOwner;
|
|
111
|
+
baseUrl: TBaseUrl;
|
|
112
|
+
token: TToken;
|
|
113
|
+
organization: TOrganization;
|
|
112
114
|
};
|
|
113
115
|
type AnalyticsConfig = {
|
|
114
116
|
name: "helicone";
|
|
@@ -119,26 +121,15 @@ type AnalyticsSetup = {
|
|
|
119
121
|
defaultHeaders?: Record<string, string | undefined>;
|
|
120
122
|
};
|
|
121
123
|
declare const setupAnalytics: (analytics: AnalyticsConfig | undefined, providerApiKey: string, providerBaseUrl?: string, provider?: "openai" | "upstash" | "custom") => AnalyticsSetup;
|
|
122
|
-
declare const upstash: () =>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
declare const
|
|
128
|
-
token: string;
|
|
129
|
-
}) => {
|
|
130
|
-
owner: "openai";
|
|
131
|
-
baseUrl: "https://api.openai.com";
|
|
132
|
-
token: string;
|
|
133
|
-
};
|
|
134
|
-
declare const custom: ({ baseUrl, token, }: {
|
|
135
|
-
token: string;
|
|
136
|
-
baseUrl: string;
|
|
137
|
-
}) => {
|
|
138
|
-
owner: "custom";
|
|
124
|
+
declare const upstash: () => ProviderReturnType<"upstash", "https://qstash.upstash.io/llm", "">;
|
|
125
|
+
declare const openai: <TToken extends string = string, TOrganization extends string | undefined = undefined>({ token, organization, }: {
|
|
126
|
+
token: TToken;
|
|
127
|
+
organization?: TOrganization;
|
|
128
|
+
}) => ProviderReturnType<"openai", "https://api.openai.com", TToken, TOrganization extends string ? TOrganization : undefined>;
|
|
129
|
+
declare const custom: <TToken extends string = string>({ baseUrl, token, }: {
|
|
139
130
|
baseUrl: string;
|
|
140
|
-
token:
|
|
141
|
-
}
|
|
131
|
+
token: TToken;
|
|
132
|
+
}) => ProviderReturnType<"custom", string, TToken>;
|
|
142
133
|
|
|
143
134
|
type ChatCompletionMessage = {
|
|
144
135
|
role: "system" | "assistant" | "user";
|
|
@@ -227,21 +218,21 @@ type ChatRequestFields = ChatRequestCommonFields & {
|
|
|
227
218
|
messages: ChatCompletionMessage[];
|
|
228
219
|
};
|
|
229
220
|
type ChatRequestProviders = {
|
|
230
|
-
provider: ProviderReturnType
|
|
221
|
+
provider: ProviderReturnType<"openai">;
|
|
231
222
|
model: OpenAIChatModel;
|
|
232
223
|
analytics?: {
|
|
233
224
|
name: "helicone";
|
|
234
225
|
token: string;
|
|
235
226
|
};
|
|
236
227
|
} | {
|
|
237
|
-
provider: ProviderReturnType
|
|
228
|
+
provider: ProviderReturnType<"custom">;
|
|
238
229
|
model: string;
|
|
239
230
|
analytics?: {
|
|
240
231
|
name: "helicone";
|
|
241
232
|
token: string;
|
|
242
233
|
};
|
|
243
234
|
} | {
|
|
244
|
-
provider: ProviderReturnType
|
|
235
|
+
provider: ProviderReturnType<"upstash">;
|
|
245
236
|
model: ChatModel;
|
|
246
237
|
analytics?: {
|
|
247
238
|
name: "helicone";
|
package/cloudflare.d.mts
CHANGED
package/cloudflare.d.ts
CHANGED
package/cloudflare.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKZOQ64Z6js = require('./chunk-KZOQ64Z6.js');
|
|
4
4
|
|
|
5
5
|
// platforms/cloudflare.ts
|
|
6
6
|
var getArgs = (args) => {
|
|
@@ -24,7 +24,7 @@ var getArgs = (args) => {
|
|
|
24
24
|
var serve2 = (routeFunction, options) => {
|
|
25
25
|
const handler = async (...args) => {
|
|
26
26
|
const { request, env } = getArgs(args);
|
|
27
|
-
const serveHandler =
|
|
27
|
+
const serveHandler = _chunkKZOQ64Z6js.serve.call(void 0, routeFunction, {
|
|
28
28
|
env,
|
|
29
29
|
...options
|
|
30
30
|
});
|
package/cloudflare.mjs
CHANGED
package/h3.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as h3 from 'h3';
|
|
2
2
|
import { H3Event } from 'h3';
|
|
3
|
-
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-
|
|
3
|
+
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-orcgOcAm.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 { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-
|
|
3
|
+
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-orcgOcAm.js';
|
|
4
4
|
import 'neverthrow';
|
|
5
5
|
|
|
6
6
|
type VerifySignatureConfig = {
|
package/h3.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkQ6JW7JKTjs = require('./chunk-Q6JW7JKT.js');
|
|
5
5
|
require('./chunk-VN7YQ2UN.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-KZOQ64Z6.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.serve =
|
|
10
|
+
exports.serve = _chunkQ6JW7JKTjs.serve; exports.verifySignatureH3 = _chunkQ6JW7JKTjs.verifySignatureH3;
|
package/h3.mjs
CHANGED
package/hono.d.mts
CHANGED
package/hono.d.ts
CHANGED
package/hono.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKZOQ64Z6js = require('./chunk-KZOQ64Z6.js');
|
|
4
4
|
|
|
5
5
|
// platforms/hono.ts
|
|
6
6
|
var serve2 = (routeFunction, options) => {
|
|
7
7
|
const handler = async (context) => {
|
|
8
8
|
const environment = context.env;
|
|
9
9
|
const request = context.req.raw;
|
|
10
|
-
const serveHandler =
|
|
10
|
+
const serveHandler = _chunkKZOQ64Z6js.serve.call(void 0, routeFunction, {
|
|
11
11
|
// when hono is used without cf workers, it sends a DebugHTTPServer
|
|
12
12
|
// object in `context.env`. don't pass env if this is the case:
|
|
13
13
|
env: "QSTASH_TOKEN" in environment ? environment : void 0,
|
package/hono.mjs
CHANGED
package/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload } from './client-
|
|
2
|
-
export { A as AddEndpointsRequest, $ as AnalyticsConfig, a0 as AnalyticsSetup, B as BodyInit, y as Chat, D as ChatCompletion, I as ChatCompletionChunk, z as ChatCompletionMessage, T as ChatRequest, f as Client, n as CreateScheduleRequest, p as Endpoint, t as Event, u as EventPayload, E as EventsRequest, v as GetEventsPayload, G as GetEventsResponse, H as HTTPMethods, w as HeadersInit, M as Message, k as MessagePayload, l as Messages, O as OpenAIChatModel, N as PromptChatRequest, _ as ProviderReturnType, P as PublishBatchRequest, e as PublishJsonRequest, d as PublishRequest, j as PublishResponse, g as PublishToApiResponse, i as PublishToUrlGroupsResponse, h as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, q as RemoveEndpointsRequest, x as RequestOptions, m as Schedule, o as Schedules, b as SignatureError, s as State, K as StreamDisabled, J as StreamEnabled, L as StreamParameter, U as UrlGroup, r as UrlGroups, V as VerifyRequest, W as WithCursor, X as custom, Y as openai, a1 as setupAnalytics, Z as upstash } from './client-
|
|
1
|
+
import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload } from './client-orcgOcAm.mjs';
|
|
2
|
+
export { A as AddEndpointsRequest, $ as AnalyticsConfig, a0 as AnalyticsSetup, B as BodyInit, y as Chat, D as ChatCompletion, I as ChatCompletionChunk, z as ChatCompletionMessage, T as ChatRequest, f as Client, n as CreateScheduleRequest, p as Endpoint, t as Event, u as EventPayload, E as EventsRequest, v as GetEventsPayload, G as GetEventsResponse, H as HTTPMethods, w as HeadersInit, M as Message, k as MessagePayload, l as Messages, O as OpenAIChatModel, N as PromptChatRequest, _ as ProviderReturnType, P as PublishBatchRequest, e as PublishJsonRequest, d as PublishRequest, j as PublishResponse, g as PublishToApiResponse, i as PublishToUrlGroupsResponse, h as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, q as RemoveEndpointsRequest, x as RequestOptions, m as Schedule, o as Schedules, b as SignatureError, s as State, K as StreamDisabled, J as StreamEnabled, L as StreamParameter, U as UrlGroup, r as UrlGroups, V as VerifyRequest, W as WithCursor, X as custom, Y as openai, a1 as setupAnalytics, Z as upstash } from './client-orcgOcAm.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 } from './client-
|
|
2
|
-
export { A as AddEndpointsRequest, $ as AnalyticsConfig, a0 as AnalyticsSetup, B as BodyInit, y as Chat, D as ChatCompletion, I as ChatCompletionChunk, z as ChatCompletionMessage, T as ChatRequest, f as Client, n as CreateScheduleRequest, p as Endpoint, t as Event, u as EventPayload, E as EventsRequest, v as GetEventsPayload, G as GetEventsResponse, H as HTTPMethods, w as HeadersInit, M as Message, k as MessagePayload, l as Messages, O as OpenAIChatModel, N as PromptChatRequest, _ as ProviderReturnType, P as PublishBatchRequest, e as PublishJsonRequest, d as PublishRequest, j as PublishResponse, g as PublishToApiResponse, i as PublishToUrlGroupsResponse, h as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, q as RemoveEndpointsRequest, x as RequestOptions, m as Schedule, o as Schedules, b as SignatureError, s as State, K as StreamDisabled, J as StreamEnabled, L as StreamParameter, U as UrlGroup, r as UrlGroups, V as VerifyRequest, W as WithCursor, X as custom, Y as openai, a1 as setupAnalytics, Z as upstash } from './client-
|
|
1
|
+
import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload } from './client-orcgOcAm.js';
|
|
2
|
+
export { A as AddEndpointsRequest, $ as AnalyticsConfig, a0 as AnalyticsSetup, B as BodyInit, y as Chat, D as ChatCompletion, I as ChatCompletionChunk, z as ChatCompletionMessage, T as ChatRequest, f as Client, n as CreateScheduleRequest, p as Endpoint, t as Event, u as EventPayload, E as EventsRequest, v as GetEventsPayload, G as GetEventsResponse, H as HTTPMethods, w as HeadersInit, M as Message, k as MessagePayload, l as Messages, O as OpenAIChatModel, N as PromptChatRequest, _ as ProviderReturnType, P as PublishBatchRequest, e as PublishJsonRequest, d as PublishRequest, j as PublishResponse, g as PublishToApiResponse, i as PublishToUrlGroupsResponse, h as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, q as RemoveEndpointsRequest, x as RequestOptions, m as Schedule, o as Schedules, b as SignatureError, s as State, K as StreamDisabled, J as StreamEnabled, L as StreamParameter, U as UrlGroup, r as UrlGroups, V as VerifyRequest, W as WithCursor, X as custom, Y as openai, a1 as setupAnalytics, Z as upstash } from './client-orcgOcAm.js';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
|
|
5
5
|
/**
|
package/index.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkKZOQ64Z6js = require('./chunk-KZOQ64Z6.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -40,4 +40,4 @@ var _chunkR5CZPV7Hjs = require('./chunk-R5CZPV7H.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
exports.Chat =
|
|
43
|
+
exports.Chat = _chunkKZOQ64Z6js.Chat; exports.Client = _chunkKZOQ64Z6js.Client; exports.Messages = _chunkKZOQ64Z6js.Messages; exports.QStashWorkflowAbort = _chunkKZOQ64Z6js.QStashWorkflowAbort; exports.QStashWorkflowError = _chunkKZOQ64Z6js.QStashWorkflowError; exports.QstashChatRatelimitError = _chunkKZOQ64Z6js.QstashChatRatelimitError; exports.QstashDailyRatelimitError = _chunkKZOQ64Z6js.QstashDailyRatelimitError; exports.QstashError = _chunkKZOQ64Z6js.QstashError; exports.QstashRatelimitError = _chunkKZOQ64Z6js.QstashRatelimitError; exports.Receiver = _chunkKZOQ64Z6js.Receiver; exports.Schedules = _chunkKZOQ64Z6js.Schedules; exports.SignatureError = _chunkKZOQ64Z6js.SignatureError; exports.UrlGroups = _chunkKZOQ64Z6js.UrlGroups; exports.custom = _chunkKZOQ64Z6js.custom; exports.decodeBase64 = _chunkKZOQ64Z6js.decodeBase64; exports.formatWorkflowError = _chunkKZOQ64Z6js.formatWorkflowError; exports.openai = _chunkKZOQ64Z6js.openai; exports.setupAnalytics = _chunkKZOQ64Z6js.setupAnalytics; exports.upstash = _chunkKZOQ64Z6js.upstash;
|
package/index.mjs
CHANGED
package/nextjs.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextApiHandler } from 'next';
|
|
2
2
|
import { NextRequest, NextFetchEvent, NextResponse } from 'next/server';
|
|
3
|
-
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-
|
|
3
|
+
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-orcgOcAm.mjs';
|
|
4
4
|
import 'neverthrow';
|
|
5
5
|
|
|
6
6
|
type VerifySignatureConfig = {
|
package/nextjs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextApiHandler } from 'next';
|
|
2
2
|
import { NextRequest, NextFetchEvent, NextResponse } from 'next/server';
|
|
3
|
-
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-
|
|
3
|
+
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-orcgOcAm.js';
|
|
4
4
|
import 'neverthrow';
|
|
5
5
|
|
|
6
6
|
type VerifySignatureConfig = {
|
package/nextjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKZOQ64Z6js = require('./chunk-KZOQ64Z6.js');
|
|
5
5
|
|
|
6
6
|
// platforms/nextjs.ts
|
|
7
7
|
var _server = require('next/server');
|
|
@@ -19,7 +19,7 @@ function verifySignature(handler, config) {
|
|
|
19
19
|
"nextSigningKey is required, either in the config or as env variable QSTASH_NEXT_SIGNING_KEY"
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
|
-
const receiver = new (0,
|
|
22
|
+
const receiver = new (0, _chunkKZOQ64Z6js.Receiver)({
|
|
23
23
|
currentSigningKey,
|
|
24
24
|
nextSigningKey
|
|
25
25
|
});
|
|
@@ -71,7 +71,7 @@ function verifySignatureEdge(handler, config) {
|
|
|
71
71
|
"nextSigningKey is required, either in the config or as env variable QSTASH_NEXT_SIGNING_KEY"
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
|
-
const receiver = new (0,
|
|
74
|
+
const receiver = new (0, _chunkKZOQ64Z6js.Receiver)({
|
|
75
75
|
currentSigningKey,
|
|
76
76
|
nextSigningKey
|
|
77
77
|
});
|
|
@@ -111,7 +111,7 @@ function verifySignatureAppRouter(handler, config) {
|
|
|
111
111
|
"nextSigningKey is required, either in the config or as env variable QSTASH_NEXT_SIGNING_KEY"
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
|
-
const receiver = new (0,
|
|
114
|
+
const receiver = new (0, _chunkKZOQ64Z6js.Receiver)({
|
|
115
115
|
currentSigningKey,
|
|
116
116
|
nextSigningKey
|
|
117
117
|
});
|
|
@@ -139,7 +139,7 @@ function verifySignatureAppRouter(handler, config) {
|
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
var serve2 = (routeFunction, options) => {
|
|
142
|
-
const handler =
|
|
142
|
+
const handler = _chunkKZOQ64Z6js.serve.call(void 0, routeFunction, {
|
|
143
143
|
onStepFinish: (workflowRunId) => new (0, _server.NextResponse)(JSON.stringify({ workflowRunId }), { status: 200 }),
|
|
144
144
|
...options
|
|
145
145
|
});
|
|
@@ -148,7 +148,7 @@ var serve2 = (routeFunction, options) => {
|
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
150
|
var servePagesRouter = (routeFunction, options) => {
|
|
151
|
-
const handler =
|
|
151
|
+
const handler = _chunkKZOQ64Z6js.serve.call(void 0, routeFunction, options);
|
|
152
152
|
return async (req, res) => {
|
|
153
153
|
if (_optionalChain([req, 'access', _10 => _10.method, 'optionalAccess', _11 => _11.toUpperCase, 'call', _12 => _12()]) !== "POST") {
|
|
154
154
|
res.status(405).json("Only POST requests are allowed in worklfows");
|
package/nextjs.mjs
CHANGED
package/nuxt.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQ6JW7JKTjs = require('./chunk-Q6JW7JKT.js');
|
|
4
4
|
require('./chunk-VN7YQ2UN.js');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-KZOQ64Z6.js');
|
|
6
6
|
|
|
7
7
|
// platforms/nuxt.ts
|
|
8
|
-
var verifySignatureNuxt =
|
|
8
|
+
var verifySignatureNuxt = _chunkQ6JW7JKTjs.verifySignatureH3;
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
exports.verifySignatureNuxt = verifySignatureNuxt;
|
package/nuxt.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
verifySignatureH3
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O2RN672L.mjs";
|
|
4
4
|
import "./chunk-CIVGPRQN.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-HIWMJGFU.mjs";
|
|
6
6
|
|
|
7
7
|
// platforms/nuxt.ts
|
|
8
8
|
var verifySignatureNuxt = verifySignatureH3;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"v2.7.
|
|
1
|
+
{"version":"v2.7.10","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"},"./nextjs":{"import":"./nextjs.js","require":"./nextjs.js"},"./dist/nextjs":{"import":"./nextjs.js","require":"./nextjs.js"},"./h3":{"types":"./h3.d.ts","import":"./h3.mjs","require":"./h3.js"},"./nuxt":{"types":"./nuxt.d.ts","import":"./nuxt.mjs","require":"./nuxt.js"},"./svelte":{"types":"./svelte.d.ts","import":"./svelte.mjs","require":"./svelte.js"},"./solidjs":{"types":"./solidjs.d.ts","import":"./solidjs.mjs","require":"./solidjs.js"},"./workflow":{"types":"./workflow.d.ts","import":"./workflow.mjs","require":"./workflow.js"},"./hono":{"types":"./hono.d.ts","import":"./hono.mjs","require":"./hono.js"},"./cloudflare":{"types":"./cloudflare.d.ts","import":"./cloudflare.mjs","require":"./cloudflare.js"}},"typesVersions":{"*":{"nextjs":["./nextjs.d.ts"]}},"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/**/*.{js,ts,tsx}\" --quiet --fix"},"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","neverthrow":"^7.0.1","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"}}
|
package/solidjs.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIHandler, APIEvent } from '@solidjs/start/server';
|
|
2
|
-
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-
|
|
2
|
+
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-orcgOcAm.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 { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-
|
|
2
|
+
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-orcgOcAm.js';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
|
|
5
5
|
type VerifySignatureConfig = {
|
package/solidjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkKZOQ64Z6js = require('./chunk-KZOQ64Z6.js');
|
|
6
6
|
|
|
7
7
|
// platforms/solidjs.ts
|
|
8
8
|
var verifySignatureSolidjs = (handler, config) => {
|
|
@@ -14,7 +14,7 @@ var verifySignatureSolidjs = (handler, config) => {
|
|
|
14
14
|
if (!nextSigningKey) {
|
|
15
15
|
throw new Error("nextSigningKey is required, either in the config or from the env");
|
|
16
16
|
}
|
|
17
|
-
const receiver = new (0,
|
|
17
|
+
const receiver = new (0, _chunkKZOQ64Z6js.Receiver)({
|
|
18
18
|
currentSigningKey,
|
|
19
19
|
nextSigningKey
|
|
20
20
|
});
|
|
@@ -45,7 +45,7 @@ var serve2 = (routeFunction, options) => {
|
|
|
45
45
|
if (method.toUpperCase() !== "POST") {
|
|
46
46
|
return new Response("Only POST requests are allowed in worklfows", { status: 405 });
|
|
47
47
|
}
|
|
48
|
-
const serveHandler =
|
|
48
|
+
const serveHandler = _chunkKZOQ64Z6js.serve.call(void 0, routeFunction, options);
|
|
49
49
|
return await serveHandler(event.request);
|
|
50
50
|
};
|
|
51
51
|
return handler;
|
package/solidjs.mjs
CHANGED
package/svelte.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestHandler } from '@sveltejs/kit';
|
|
2
|
-
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-
|
|
2
|
+
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-orcgOcAm.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 { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-
|
|
2
|
+
import { a2 as RouteFunction, a3 as WorkflowServeOptions } from './client-orcgOcAm.js';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
|
|
5
5
|
type VerifySignatureConfig = {
|
package/svelte.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkKZOQ64Z6js = require('./chunk-KZOQ64Z6.js');
|
|
6
6
|
|
|
7
7
|
// platforms/svelte.ts
|
|
8
8
|
var verifySignatureSvelte = (handler, config) => {
|
|
@@ -14,7 +14,7 @@ var verifySignatureSvelte = (handler, config) => {
|
|
|
14
14
|
if (!nextSigningKey) {
|
|
15
15
|
throw new Error("nextSigningKey is required, either in the config or from the env");
|
|
16
16
|
}
|
|
17
|
-
const receiver = new (0,
|
|
17
|
+
const receiver = new (0, _chunkKZOQ64Z6js.Receiver)({
|
|
18
18
|
currentSigningKey,
|
|
19
19
|
nextSigningKey
|
|
20
20
|
});
|
|
@@ -42,7 +42,7 @@ var verifySignatureSvelte = (handler, config) => {
|
|
|
42
42
|
};
|
|
43
43
|
var serve2 = (routeFunction, options) => {
|
|
44
44
|
const handler = async ({ request }) => {
|
|
45
|
-
const serveMethod =
|
|
45
|
+
const serveMethod = _chunkKZOQ64Z6js.serve.call(void 0, routeFunction, options);
|
|
46
46
|
return await serveMethod(request);
|
|
47
47
|
};
|
|
48
48
|
return handler;
|
package/svelte.mjs
CHANGED
package/workflow.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { af as AsyncStepFunction, a8 as DisabledWorkflowContext, F as FailureFunctionPayload, ai as FinishCondition, ak as LogLevel, ah as ParallelCallState, ad as RawStep, aj as RequiredExceptFields, a2 as RouteFunction, S as Step, ag as StepFunction, ac as StepType, ab as StepTypes, ae as SyncStepFunction, a4 as Workflow, a9 as WorkflowClient, a7 as WorkflowContext, am as WorkflowLogger, al as WorkflowLoggerOptions, aa as WorkflowReceiver, a3 as WorkflowServeOptions, a5 as processOptions, a6 as serve } from './client-
|
|
1
|
+
export { af as AsyncStepFunction, a8 as DisabledWorkflowContext, F as FailureFunctionPayload, ai as FinishCondition, ak as LogLevel, ah as ParallelCallState, ad as RawStep, aj as RequiredExceptFields, a2 as RouteFunction, S as Step, ag as StepFunction, ac as StepType, ab as StepTypes, ae as SyncStepFunction, a4 as Workflow, a9 as WorkflowClient, a7 as WorkflowContext, am as WorkflowLogger, al as WorkflowLoggerOptions, aa as WorkflowReceiver, a3 as WorkflowServeOptions, a5 as processOptions, a6 as serve } from './client-orcgOcAm.mjs';
|
|
2
2
|
import 'neverthrow';
|
package/workflow.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { af as AsyncStepFunction, a8 as DisabledWorkflowContext, F as FailureFunctionPayload, ai as FinishCondition, ak as LogLevel, ah as ParallelCallState, ad as RawStep, aj as RequiredExceptFields, a2 as RouteFunction, S as Step, ag as StepFunction, ac as StepType, ab as StepTypes, ae as SyncStepFunction, a4 as Workflow, a9 as WorkflowClient, a7 as WorkflowContext, am as WorkflowLogger, al as WorkflowLoggerOptions, aa as WorkflowReceiver, a3 as WorkflowServeOptions, a5 as processOptions, a6 as serve } from './client-
|
|
1
|
+
export { af as AsyncStepFunction, a8 as DisabledWorkflowContext, F as FailureFunctionPayload, ai as FinishCondition, ak as LogLevel, ah as ParallelCallState, ad as RawStep, aj as RequiredExceptFields, a2 as RouteFunction, S as Step, ag as StepFunction, ac as StepType, ab as StepTypes, ae as SyncStepFunction, a4 as Workflow, a9 as WorkflowClient, a7 as WorkflowContext, am as WorkflowLogger, al as WorkflowLoggerOptions, aa as WorkflowReceiver, a3 as WorkflowServeOptions, a5 as processOptions, a6 as serve } from './client-orcgOcAm.js';
|
|
2
2
|
import 'neverthrow';
|
package/workflow.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkKZOQ64Z6js = require('./chunk-KZOQ64Z6.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,4 +15,4 @@ var _chunkR5CZPV7Hjs = require('./chunk-R5CZPV7H.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.DisabledWorkflowContext =
|
|
18
|
+
exports.DisabledWorkflowContext = _chunkKZOQ64Z6js.DisabledWorkflowContext; exports.StepTypes = _chunkKZOQ64Z6js.StepTypes; exports.Workflow = _chunkKZOQ64Z6js.Workflow; exports.WorkflowContext = _chunkKZOQ64Z6js.WorkflowContext; exports.WorkflowLogger = _chunkKZOQ64Z6js.WorkflowLogger; exports.processOptions = _chunkKZOQ64Z6js.processOptions; exports.serve = _chunkKZOQ64Z6js.serve;
|