@upstash/qstash 2.7.8 → 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/README.md +2 -1
- package/{chunk-SFN2PBFB.mjs → chunk-HIWMJGFU.mjs} +24 -11
- package/{chunk-XY54CU56.js → chunk-KZOQ64Z6.js} +51 -38
- package/{chunk-HS75QP5Z.mjs → chunk-O2RN672L.mjs} +1 -1
- package/{chunk-5OXFLS25.js → chunk-Q6JW7JKT.js} +3 -3
- package/{client-BsCzCprQ.d.mts → client-orcgOcAm.d.mts} +20 -29
- package/{client-BsCzCprQ.d.ts → client-orcgOcAm.d.ts} +20 -29
- 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
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
> [!NOTE]
|
|
5
|
+
> [!NOTE]
|
|
6
|
+
> **This project is in GA Stage.**
|
|
6
7
|
> The Upstash Professional Support fully covers this project. It receives regular updates, and bug fixes.
|
|
7
8
|
> The Upstash team is committed to maintaining and improving its functionality.
|
|
8
9
|
|
|
@@ -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",
|
|
@@ -481,7 +492,7 @@ var Chat = class _Chat {
|
|
|
481
492
|
// Helper method to get the authorization token
|
|
482
493
|
getAuthorizationToken() {
|
|
483
494
|
const authHeader = String(this.http.authorization);
|
|
484
|
-
const match =
|
|
495
|
+
const match = /Bearer (.+)/.exec(authHeader);
|
|
485
496
|
if (!match) {
|
|
486
497
|
throw new Error("Invalid authorization header format");
|
|
487
498
|
}
|
|
@@ -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
|
}
|
|
@@ -1141,8 +1152,10 @@ var Client = class {
|
|
|
1141
1152
|
*/
|
|
1142
1153
|
async events(request) {
|
|
1143
1154
|
const query = {};
|
|
1144
|
-
if (request?.cursor && request.cursor > 0) {
|
|
1155
|
+
if (typeof request?.cursor === "number" && request.cursor > 0) {
|
|
1145
1156
|
query.cursor = request.cursor.toString();
|
|
1157
|
+
} else if (typeof request?.cursor === "string" && request.cursor !== "") {
|
|
1158
|
+
query.cursor = request.cursor;
|
|
1146
1159
|
}
|
|
1147
1160
|
for (const [key, value] of Object.entries(request?.filter ?? {})) {
|
|
1148
1161
|
if (typeof value === "number" && value < 0) {
|
|
@@ -1628,11 +1641,11 @@ var handleThirdPartyCallResult = async (request, requestPayload, client, workflo
|
|
|
1628
1641
|
if (!(callbackMessage.status >= 200 && callbackMessage.status < 300)) {
|
|
1629
1642
|
await debug?.log("WARN", "SUBMIT_THIRD_PARTY_RESULT", {
|
|
1630
1643
|
status: callbackMessage.status,
|
|
1631
|
-
body:
|
|
1644
|
+
body: atob(callbackMessage.body)
|
|
1632
1645
|
});
|
|
1633
1646
|
console.warn(
|
|
1634
1647
|
`Workflow Warning: "context.call" failed with status ${callbackMessage.status} and will retry (if there are retries remaining). Error Message:
|
|
1635
|
-
${
|
|
1648
|
+
${atob(callbackMessage.body)}`
|
|
1636
1649
|
);
|
|
1637
1650
|
return ok("call-will-retry");
|
|
1638
1651
|
}
|
|
@@ -1668,7 +1681,7 @@ ${decodeBase64(callbackMessage.body)}`
|
|
|
1668
1681
|
stepId: Number(stepIdString),
|
|
1669
1682
|
stepName,
|
|
1670
1683
|
stepType,
|
|
1671
|
-
out:
|
|
1684
|
+
out: atob(callbackMessage.body),
|
|
1672
1685
|
concurrent: Number(concurrentString)
|
|
1673
1686
|
};
|
|
1674
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",
|
|
@@ -481,7 +492,7 @@ var Chat = (_class2 = class _Chat {
|
|
|
481
492
|
// Helper method to get the authorization token
|
|
482
493
|
getAuthorizationToken() {
|
|
483
494
|
const authHeader = String(this.http.authorization);
|
|
484
|
-
const match =
|
|
495
|
+
const match = /Bearer (.+)/.exec(authHeader);
|
|
485
496
|
if (!match) {
|
|
486
497
|
throw new Error("Invalid authorization header format");
|
|
487
498
|
}
|
|
@@ -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
|
}
|
|
@@ -1141,10 +1152,12 @@ var Client = class {
|
|
|
1141
1152
|
*/
|
|
1142
1153
|
async events(request) {
|
|
1143
1154
|
const query = {};
|
|
1144
|
-
if (_optionalChain([request, 'optionalAccess', _31 => _31.cursor]) && request.cursor > 0) {
|
|
1155
|
+
if (typeof _optionalChain([request, 'optionalAccess', _31 => _31.cursor]) === "number" && request.cursor > 0) {
|
|
1145
1156
|
query.cursor = request.cursor.toString();
|
|
1157
|
+
} else if (typeof _optionalChain([request, 'optionalAccess', _32 => _32.cursor]) === "string" && request.cursor !== "") {
|
|
1158
|
+
query.cursor = request.cursor;
|
|
1146
1159
|
}
|
|
1147
|
-
for (const [key, value] of Object.entries(_nullishCoalesce(_optionalChain([request, 'optionalAccess',
|
|
1160
|
+
for (const [key, value] of Object.entries(_nullishCoalesce(_optionalChain([request, 'optionalAccess', _33 => _33.filter]), () => ( {})))) {
|
|
1148
1161
|
if (typeof value === "number" && value < 0) {
|
|
1149
1162
|
continue;
|
|
1150
1163
|
}
|
|
@@ -1568,7 +1581,7 @@ var triggerFirstInvocation = async (workflowContext, retries, debug) => {
|
|
|
1568
1581
|
workflowContext.failureUrl,
|
|
1569
1582
|
retries
|
|
1570
1583
|
);
|
|
1571
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
1584
|
+
await _optionalChain([debug, 'optionalAccess', _34 => _34.log, 'call', _35 => _35("SUBMIT", "SUBMIT_FIRST_INVOCATION", {
|
|
1572
1585
|
headers,
|
|
1573
1586
|
requestPayload: workflowContext.requestPayload,
|
|
1574
1587
|
url: workflowContext.url
|
|
@@ -1600,7 +1613,7 @@ var triggerRouteFunction = async ({
|
|
|
1600
1613
|
}
|
|
1601
1614
|
};
|
|
1602
1615
|
var triggerWorkflowDelete = async (workflowContext, debug, cancel = false) => {
|
|
1603
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
1616
|
+
await _optionalChain([debug, 'optionalAccess', _36 => _36.log, 'call', _37 => _37("SUBMIT", "SUBMIT_CLEANUP", {
|
|
1604
1617
|
deletedWorkflowRunId: workflowContext.workflowRunId
|
|
1605
1618
|
})]);
|
|
1606
1619
|
const result = await workflowContext.qstashClient.http.request({
|
|
@@ -1608,7 +1621,7 @@ var triggerWorkflowDelete = async (workflowContext, debug, cancel = false) => {
|
|
|
1608
1621
|
method: "DELETE",
|
|
1609
1622
|
parseResponseAsJson: false
|
|
1610
1623
|
});
|
|
1611
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
1624
|
+
await _optionalChain([debug, 'optionalAccess', _38 => _38.log, 'call', _39 => _39("SUBMIT", "SUBMIT_CLEANUP", result)]);
|
|
1612
1625
|
};
|
|
1613
1626
|
var recreateUserHeaders = (headers) => {
|
|
1614
1627
|
const filteredHeaders = new Headers();
|
|
@@ -1626,13 +1639,13 @@ var handleThirdPartyCallResult = async (request, requestPayload, client, workflo
|
|
|
1626
1639
|
if (request.headers.get("Upstash-Workflow-Callback")) {
|
|
1627
1640
|
const callbackMessage = JSON.parse(requestPayload);
|
|
1628
1641
|
if (!(callbackMessage.status >= 200 && callbackMessage.status < 300)) {
|
|
1629
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
1642
|
+
await _optionalChain([debug, 'optionalAccess', _40 => _40.log, 'call', _41 => _41("WARN", "SUBMIT_THIRD_PARTY_RESULT", {
|
|
1630
1643
|
status: callbackMessage.status,
|
|
1631
|
-
body:
|
|
1644
|
+
body: atob(callbackMessage.body)
|
|
1632
1645
|
})]);
|
|
1633
1646
|
console.warn(
|
|
1634
1647
|
`Workflow Warning: "context.call" failed with status ${callbackMessage.status} and will retry (if there are retries remaining). Error Message:
|
|
1635
|
-
${
|
|
1648
|
+
${atob(callbackMessage.body)}`
|
|
1636
1649
|
);
|
|
1637
1650
|
return ok("call-will-retry");
|
|
1638
1651
|
}
|
|
@@ -1668,10 +1681,10 @@ ${decodeBase64(callbackMessage.body)}`
|
|
|
1668
1681
|
stepId: Number(stepIdString),
|
|
1669
1682
|
stepName,
|
|
1670
1683
|
stepType,
|
|
1671
|
-
out:
|
|
1684
|
+
out: atob(callbackMessage.body),
|
|
1672
1685
|
concurrent: Number(concurrentString)
|
|
1673
1686
|
};
|
|
1674
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
1687
|
+
await _optionalChain([debug, 'optionalAccess', _42 => _42.log, 'call', _43 => _43("SUBMIT", "SUBMIT_THIRD_PARTY_RESULT", {
|
|
1675
1688
|
step: callResultStep,
|
|
1676
1689
|
headers: requestHeaders,
|
|
1677
1690
|
url: workflowUrl
|
|
@@ -1682,7 +1695,7 @@ ${decodeBase64(callbackMessage.body)}`
|
|
|
1682
1695
|
body: callResultStep,
|
|
1683
1696
|
url: workflowUrl
|
|
1684
1697
|
});
|
|
1685
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
1698
|
+
await _optionalChain([debug, 'optionalAccess', _44 => _44.log, 'call', _45 => _45("SUBMIT", "SUBMIT_THIRD_PARTY_RESULT", {
|
|
1686
1699
|
messageId: result.messageId
|
|
1687
1700
|
})]);
|
|
1688
1701
|
return ok("is-call-return");
|
|
@@ -1714,14 +1727,14 @@ var getHeaders = (initHeaderValue, workflowRunId, workflowUrl, userHeaders, step
|
|
|
1714
1727
|
};
|
|
1715
1728
|
if (userHeaders) {
|
|
1716
1729
|
for (const header of userHeaders.keys()) {
|
|
1717
|
-
if (_optionalChain([step, 'optionalAccess',
|
|
1730
|
+
if (_optionalChain([step, 'optionalAccess', _46 => _46.callHeaders])) {
|
|
1718
1731
|
baseHeaders[`Upstash-Callback-Forward-${header}`] = userHeaders.get(header);
|
|
1719
1732
|
} else {
|
|
1720
1733
|
baseHeaders[`Upstash-Forward-${header}`] = userHeaders.get(header);
|
|
1721
1734
|
}
|
|
1722
1735
|
}
|
|
1723
1736
|
}
|
|
1724
|
-
if (_optionalChain([step, 'optionalAccess',
|
|
1737
|
+
if (_optionalChain([step, 'optionalAccess', _47 => _47.callHeaders])) {
|
|
1725
1738
|
const forwardedHeaders = Object.fromEntries(
|
|
1726
1739
|
Object.entries(step.callHeaders).map(([header, value]) => [
|
|
1727
1740
|
`Upstash-Forward-${header}`,
|
|
@@ -1867,7 +1880,7 @@ var AutoExecutor = (_class3 = class _AutoExecutor {
|
|
|
1867
1880
|
if (this.stepCount < this.nonPlanStepCount) {
|
|
1868
1881
|
const step = this.steps[this.stepCount + this.planStepCount];
|
|
1869
1882
|
validateStep(lazyStep, step);
|
|
1870
|
-
await _optionalChain([this, 'access',
|
|
1883
|
+
await _optionalChain([this, 'access', _48 => _48.debug, 'optionalAccess', _49 => _49.log, 'call', _50 => _50("INFO", "RUN_SINGLE", {
|
|
1871
1884
|
fromRequest: true,
|
|
1872
1885
|
step,
|
|
1873
1886
|
stepCount: this.stepCount
|
|
@@ -1875,7 +1888,7 @@ var AutoExecutor = (_class3 = class _AutoExecutor {
|
|
|
1875
1888
|
return step.out;
|
|
1876
1889
|
}
|
|
1877
1890
|
const resultStep = await lazyStep.getResultStep(NO_CONCURRENCY, this.stepCount);
|
|
1878
|
-
await _optionalChain([this, 'access',
|
|
1891
|
+
await _optionalChain([this, 'access', _51 => _51.debug, 'optionalAccess', _52 => _52.log, 'call', _53 => _53("INFO", "RUN_SINGLE", {
|
|
1879
1892
|
fromRequest: false,
|
|
1880
1893
|
step: resultStep,
|
|
1881
1894
|
stepCount: this.stepCount
|
|
@@ -1894,13 +1907,13 @@ var AutoExecutor = (_class3 = class _AutoExecutor {
|
|
|
1894
1907
|
const initialStepCount = this.stepCount - (parallelSteps.length - 1);
|
|
1895
1908
|
const parallelCallState = this.getParallelCallState(parallelSteps.length, initialStepCount);
|
|
1896
1909
|
const sortedSteps = sortSteps(this.steps);
|
|
1897
|
-
const plannedParallelStepCount = _optionalChain([sortedSteps, 'access',
|
|
1910
|
+
const plannedParallelStepCount = _optionalChain([sortedSteps, 'access', _54 => _54[initialStepCount + this.planStepCount], 'optionalAccess', _55 => _55.concurrent]);
|
|
1898
1911
|
if (parallelCallState !== "first" && plannedParallelStepCount !== parallelSteps.length) {
|
|
1899
1912
|
throw new QStashWorkflowError(
|
|
1900
1913
|
`Incompatible number of parallel steps when call state was '${parallelCallState}'. Expected ${parallelSteps.length}, got ${plannedParallelStepCount} from the request.`
|
|
1901
1914
|
);
|
|
1902
1915
|
}
|
|
1903
|
-
await _optionalChain([this, 'access',
|
|
1916
|
+
await _optionalChain([this, 'access', _56 => _56.debug, 'optionalAccess', _57 => _57.log, 'call', _58 => _58("INFO", "RUN_PARALLEL", {
|
|
1904
1917
|
parallelCallState,
|
|
1905
1918
|
initialStepCount,
|
|
1906
1919
|
plannedParallelStepCount,
|
|
@@ -1979,7 +1992,7 @@ var AutoExecutor = (_class3 = class _AutoExecutor {
|
|
|
1979
1992
|
return "first";
|
|
1980
1993
|
} else if (remainingSteps.length >= 2 * parallelStepCount) {
|
|
1981
1994
|
return "last";
|
|
1982
|
-
} else if (_optionalChain([remainingSteps, 'access',
|
|
1995
|
+
} else if (_optionalChain([remainingSteps, 'access', _59 => _59.at, 'call', _60 => _60(-1), 'optionalAccess', _61 => _61.targetStep])) {
|
|
1983
1996
|
return "partial";
|
|
1984
1997
|
} else {
|
|
1985
1998
|
return "discard";
|
|
@@ -1996,7 +2009,7 @@ var AutoExecutor = (_class3 = class _AutoExecutor {
|
|
|
1996
2009
|
`Unable to submit steps to QStash. Provided list is empty. Current step: ${this.stepCount}`
|
|
1997
2010
|
);
|
|
1998
2011
|
}
|
|
1999
|
-
await _optionalChain([this, 'access',
|
|
2012
|
+
await _optionalChain([this, 'access', _62 => _62.debug, 'optionalAccess', _63 => _63.log, 'call', _64 => _64("SUBMIT", "SUBMIT_STEP", { length: steps.length, steps })]);
|
|
2000
2013
|
const result = await this.context.qstashClient.batchJSON(
|
|
2001
2014
|
steps.map((singleStep) => {
|
|
2002
2015
|
const headers = getHeaders(
|
|
@@ -2037,7 +2050,7 @@ var AutoExecutor = (_class3 = class _AutoExecutor {
|
|
|
2037
2050
|
);
|
|
2038
2051
|
})
|
|
2039
2052
|
);
|
|
2040
|
-
await _optionalChain([this, 'access',
|
|
2053
|
+
await _optionalChain([this, 'access', _65 => _65.debug, 'optionalAccess', _66 => _66.log, 'call', _67 => _67("INFO", "SUBMIT_STEP", {
|
|
2041
2054
|
messageIds: result.map((message) => {
|
|
2042
2055
|
return {
|
|
2043
2056
|
message: message.messageId
|
|
@@ -2659,7 +2672,7 @@ var checkIfLastOneIsDuplicate = async (steps, debug) => {
|
|
|
2659
2672
|
const step = steps[index];
|
|
2660
2673
|
if (step.stepId === lastStepId && step.targetStep === lastTargetStepId) {
|
|
2661
2674
|
const message = `QStash Workflow: The step '${step.stepName}' with id '${step.stepId}' has run twice during workflow execution. Rest of the workflow will continue running as usual.`;
|
|
2662
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
2675
|
+
await _optionalChain([debug, 'optionalAccess', _68 => _68.log, 'call', _69 => _69("WARN", "RESPONSE_DEFAULT", message)]);
|
|
2663
2676
|
console.warn(message);
|
|
2664
2677
|
return true;
|
|
2665
2678
|
}
|
|
@@ -2746,7 +2759,7 @@ var handleFailure = async (request, requestPayload, qstashClient, initialPayload
|
|
|
2746
2759
|
|
|
2747
2760
|
// src/client/workflow/serve.ts
|
|
2748
2761
|
var processOptions = (options) => {
|
|
2749
|
-
const environment = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2762
|
+
const environment = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _70 => _70.env]), () => ( (typeof process === "undefined" ? {} : process.env)));
|
|
2750
2763
|
const receiverEnvironmentVariablesSet = Boolean(
|
|
2751
2764
|
environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
|
|
2752
2765
|
);
|
|
@@ -2802,7 +2815,7 @@ var serve = (routeFunction, options) => {
|
|
|
2802
2815
|
return baseUrl + (path || "");
|
|
2803
2816
|
}) : initialWorkflowUrl;
|
|
2804
2817
|
if (workflowUrl !== initialWorkflowUrl) {
|
|
2805
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
2818
|
+
await _optionalChain([debug, 'optionalAccess', _71 => _71.log, 'call', _72 => _72("WARN", "ENDPOINT_START", {
|
|
2806
2819
|
warning: `QStash Workflow: replacing the base of the url with "${baseUrl}" and using it as workflow endpoint.`,
|
|
2807
2820
|
originalURL: initialWorkflowUrl,
|
|
2808
2821
|
updatedURL: workflowUrl
|
|
@@ -2811,7 +2824,7 @@ var serve = (routeFunction, options) => {
|
|
|
2811
2824
|
const workflowFailureUrl = failureFunction ? workflowUrl : failureUrl;
|
|
2812
2825
|
const requestPayload = await _asyncNullishCoalesce(await getPayload(request), async () => ( ""));
|
|
2813
2826
|
await verifyRequest(requestPayload, request.headers.get("upstash-signature"), receiver);
|
|
2814
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
2827
|
+
await _optionalChain([debug, 'optionalAccess', _73 => _73.log, 'call', _74 => _74("INFO", "ENDPOINT_START")]);
|
|
2815
2828
|
const failureCheck = await handleFailure(
|
|
2816
2829
|
request,
|
|
2817
2830
|
requestPayload,
|
|
@@ -2822,11 +2835,11 @@ var serve = (routeFunction, options) => {
|
|
|
2822
2835
|
if (failureCheck.isErr()) {
|
|
2823
2836
|
throw failureCheck.error;
|
|
2824
2837
|
} else if (failureCheck.value === "is-failure-callback") {
|
|
2825
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
2838
|
+
await _optionalChain([debug, 'optionalAccess', _75 => _75.log, 'call', _76 => _76("WARN", "RESPONSE_DEFAULT", "failureFunction executed")]);
|
|
2826
2839
|
return onStepFinish("no-workflow-id", "failure-callback");
|
|
2827
2840
|
}
|
|
2828
2841
|
const { isFirstInvocation, workflowRunId } = validateRequest(request);
|
|
2829
|
-
_optionalChain([debug, 'optionalAccess',
|
|
2842
|
+
_optionalChain([debug, 'optionalAccess', _77 => _77.setWorkflowRunId, 'call', _78 => _78(workflowRunId)]);
|
|
2830
2843
|
const { rawInitialPayload, steps, isLastDuplicate } = await parseRequest(
|
|
2831
2844
|
requestPayload,
|
|
2832
2845
|
isFirstInvocation,
|
|
@@ -2852,7 +2865,7 @@ var serve = (routeFunction, options) => {
|
|
|
2852
2865
|
workflowContext
|
|
2853
2866
|
);
|
|
2854
2867
|
if (authCheck.isErr()) {
|
|
2855
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
2868
|
+
await _optionalChain([debug, 'optionalAccess', _79 => _79.log, 'call', _80 => _80("ERROR", "ERROR", { error: authCheck.error.message })]);
|
|
2856
2869
|
throw authCheck.error;
|
|
2857
2870
|
} else if (authCheck.value === "run-ended") {
|
|
2858
2871
|
return onStepFinish("no-workflow-id", "auth-fail");
|
|
@@ -2867,7 +2880,7 @@ var serve = (routeFunction, options) => {
|
|
|
2867
2880
|
debug
|
|
2868
2881
|
);
|
|
2869
2882
|
if (callReturnCheck.isErr()) {
|
|
2870
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
2883
|
+
await _optionalChain([debug, 'optionalAccess', _81 => _81.log, 'call', _82 => _82("ERROR", "SUBMIT_THIRD_PARTY_RESULT", {
|
|
2871
2884
|
error: callReturnCheck.error.message
|
|
2872
2885
|
})]);
|
|
2873
2886
|
throw callReturnCheck.error;
|
|
@@ -2879,13 +2892,13 @@ var serve = (routeFunction, options) => {
|
|
|
2879
2892
|
}
|
|
2880
2893
|
});
|
|
2881
2894
|
if (result.isErr()) {
|
|
2882
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
2895
|
+
await _optionalChain([debug, 'optionalAccess', _83 => _83.log, 'call', _84 => _84("ERROR", "ERROR", { error: result.error.message })]);
|
|
2883
2896
|
throw result.error;
|
|
2884
2897
|
}
|
|
2885
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
2898
|
+
await _optionalChain([debug, 'optionalAccess', _85 => _85.log, 'call', _86 => _86("INFO", "RESPONSE_WORKFLOW")]);
|
|
2886
2899
|
return onStepFinish(workflowContext.workflowRunId, "success");
|
|
2887
2900
|
}
|
|
2888
|
-
await _optionalChain([debug, 'optionalAccess',
|
|
2901
|
+
await _optionalChain([debug, 'optionalAccess', _87 => _87.log, 'call', _88 => _88("INFO", "RESPONSE_DEFAULT")]);
|
|
2889
2902
|
return onStepFinish("no-workflow-id", "fromCallback");
|
|
2890
2903
|
};
|
|
2891
2904
|
return async (request) => {
|
|
@@ -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;
|
|
@@ -80,7 +80,7 @@ type EventPayload = Omit<Event, "urlGroup"> & {
|
|
|
80
80
|
topicName: string;
|
|
81
81
|
};
|
|
82
82
|
type GetEventsPayload = {
|
|
83
|
-
cursor?:
|
|
83
|
+
cursor?: string;
|
|
84
84
|
events: EventPayload[];
|
|
85
85
|
};
|
|
86
86
|
type WithCursor<T> = T & {
|
|
@@ -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;
|
|
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, }: {
|
|
136
130
|
baseUrl: string;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
baseUrl: string;
|
|
140
|
-
token: string;
|
|
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";
|
|
@@ -1668,7 +1659,7 @@ type PublishJsonRequest = Omit<PublishRequest, "body"> & {
|
|
|
1668
1659
|
body: unknown;
|
|
1669
1660
|
};
|
|
1670
1661
|
type EventsRequest = {
|
|
1671
|
-
cursor?: number;
|
|
1662
|
+
cursor?: string | number;
|
|
1672
1663
|
filter?: EventsRequestFilter;
|
|
1673
1664
|
};
|
|
1674
1665
|
type EventsRequestFilter = {
|
|
@@ -1685,7 +1676,7 @@ type EventsRequestFilter = {
|
|
|
1685
1676
|
count?: number;
|
|
1686
1677
|
};
|
|
1687
1678
|
type GetEventsResponse = {
|
|
1688
|
-
cursor?:
|
|
1679
|
+
cursor?: string;
|
|
1689
1680
|
events: Event[];
|
|
1690
1681
|
};
|
|
1691
1682
|
type QueueRequest = {
|
|
@@ -80,7 +80,7 @@ type EventPayload = Omit<Event, "urlGroup"> & {
|
|
|
80
80
|
topicName: string;
|
|
81
81
|
};
|
|
82
82
|
type GetEventsPayload = {
|
|
83
|
-
cursor?:
|
|
83
|
+
cursor?: string;
|
|
84
84
|
events: EventPayload[];
|
|
85
85
|
};
|
|
86
86
|
type WithCursor<T> = T & {
|
|
@@ -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;
|
|
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, }: {
|
|
136
130
|
baseUrl: string;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
baseUrl: string;
|
|
140
|
-
token: string;
|
|
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";
|
|
@@ -1668,7 +1659,7 @@ type PublishJsonRequest = Omit<PublishRequest, "body"> & {
|
|
|
1668
1659
|
body: unknown;
|
|
1669
1660
|
};
|
|
1670
1661
|
type EventsRequest = {
|
|
1671
|
-
cursor?: number;
|
|
1662
|
+
cursor?: string | number;
|
|
1672
1663
|
filter?: EventsRequestFilter;
|
|
1673
1664
|
};
|
|
1674
1665
|
type EventsRequestFilter = {
|
|
@@ -1685,7 +1676,7 @@ type EventsRequestFilter = {
|
|
|
1685
1676
|
count?: number;
|
|
1686
1677
|
};
|
|
1687
1678
|
type GetEventsResponse = {
|
|
1688
|
-
cursor?:
|
|
1679
|
+
cursor?: string;
|
|
1689
1680
|
events: Event[];
|
|
1690
1681
|
};
|
|
1691
1682
|
type QueueRequest = {
|
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 _chunkXY54CU56js = require('./chunk-XY54CU56.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 _chunkXY54CU56js = require('./chunk-XY54CU56.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;
|