@upstash/qstash 2.8.1 → 2.8.3
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-CGY7C7LV.mjs → chunk-5ACKA46J.mjs} +1 -1
- package/{chunk-SSGARCU5.mjs → chunk-CR3B3DK3.mjs} +13 -1
- package/{chunk-IZPRR2F5.mjs → chunk-TLUU4FA7.mjs} +1 -1
- package/{client-CpYCcLg9.d.ts → client-BpQp_dGA.d.mts} +68 -1
- package/{client-CpYCcLg9.d.mts → client-BpQp_dGA.d.ts} +68 -1
- package/cloudflare.d.mts +1 -1
- package/cloudflare.d.ts +1 -1
- package/cloudflare.js +13 -1
- package/cloudflare.mjs +1 -1
- package/h3.d.mts +1 -1
- package/h3.d.ts +1 -1
- package/h3.js +13 -1
- package/h3.mjs +3 -3
- package/hono.d.mts +1 -1
- package/hono.d.ts +1 -1
- package/hono.js +13 -1
- package/hono.mjs +1 -1
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.js +13 -1
- package/index.mjs +2 -2
- package/nextjs.d.mts +1 -1
- package/nextjs.d.ts +1 -1
- package/nextjs.js +13 -1
- package/nextjs.mjs +1 -1
- package/nuxt.mjs +3 -3
- package/package.json +1 -1
- package/solidjs.d.mts +1 -1
- package/solidjs.d.ts +1 -1
- package/solidjs.js +13 -1
- package/solidjs.mjs +2 -2
- package/svelte.d.mts +1 -1
- package/svelte.d.ts +1 -1
- package/svelte.js +13 -1
- package/svelte.mjs +2 -2
- package/workflow.d.mts +1 -1
- package/workflow.d.ts +1 -1
- package/workflow.js +13 -1
- package/workflow.mjs +1 -1
|
@@ -768,6 +768,9 @@ function processHeaders(request) {
|
|
|
768
768
|
if (request.retries !== void 0) {
|
|
769
769
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
770
770
|
}
|
|
771
|
+
if (request.retryDelay !== void 0) {
|
|
772
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
773
|
+
}
|
|
771
774
|
if (request.callback !== void 0) {
|
|
772
775
|
headers.set("Upstash-Callback", request.callback);
|
|
773
776
|
}
|
|
@@ -796,6 +799,9 @@ function processHeaders(request) {
|
|
|
796
799
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
797
800
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
798
801
|
}
|
|
802
|
+
if (request.label !== void 0) {
|
|
803
|
+
headers.set("Upstash-Label", request.label);
|
|
804
|
+
}
|
|
799
805
|
return headers;
|
|
800
806
|
}
|
|
801
807
|
function getRequestPath(request) {
|
|
@@ -1003,6 +1009,9 @@ var Schedules = class {
|
|
|
1003
1009
|
if (request.retries !== void 0) {
|
|
1004
1010
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1005
1011
|
}
|
|
1012
|
+
if (request.retryDelay !== void 0) {
|
|
1013
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1014
|
+
}
|
|
1006
1015
|
if (request.callback !== void 0) {
|
|
1007
1016
|
headers.set("Upstash-Callback", request.callback);
|
|
1008
1017
|
}
|
|
@@ -1039,6 +1048,9 @@ var Schedules = class {
|
|
|
1039
1048
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1040
1049
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1041
1050
|
}
|
|
1051
|
+
if (request.label !== void 0) {
|
|
1052
|
+
headers.set("Upstash-Label", request.label);
|
|
1053
|
+
}
|
|
1042
1054
|
return await this.http.request({
|
|
1043
1055
|
method: "POST",
|
|
1044
1056
|
headers: wrapWithGlobalHeaders(headers, this.http.headers, this.http.telemetryHeaders),
|
|
@@ -1168,7 +1180,7 @@ var UrlGroups = class {
|
|
|
1168
1180
|
};
|
|
1169
1181
|
|
|
1170
1182
|
// version.ts
|
|
1171
|
-
var VERSION = "v2.8.
|
|
1183
|
+
var VERSION = "v2.8.3";
|
|
1172
1184
|
|
|
1173
1185
|
// src/client/client.ts
|
|
1174
1186
|
var Client = class {
|
|
@@ -79,6 +79,7 @@ type Log = {
|
|
|
79
79
|
endpointName?: string;
|
|
80
80
|
header?: Record<string, string>;
|
|
81
81
|
body?: string;
|
|
82
|
+
label?: string;
|
|
82
83
|
};
|
|
83
84
|
/**
|
|
84
85
|
* Deprecated. Use the `Log` type instead.
|
|
@@ -539,6 +540,11 @@ type Message = {
|
|
|
539
540
|
* Maxmimum number of retries.
|
|
540
541
|
*/
|
|
541
542
|
maxRetries?: number;
|
|
543
|
+
/**
|
|
544
|
+
* The retry delay expression for this message,
|
|
545
|
+
* if retry_delay was set when publishing the message.
|
|
546
|
+
*/
|
|
547
|
+
retryDelayExpression?: PublishRequest["retryDelay"];
|
|
542
548
|
/**
|
|
543
549
|
* A unix timestamp (milliseconds) after which this message may get delivered.
|
|
544
550
|
*/
|
|
@@ -593,6 +599,10 @@ type Message = {
|
|
|
593
599
|
* In seconds.
|
|
594
600
|
*/
|
|
595
601
|
period?: number;
|
|
602
|
+
/**
|
|
603
|
+
* The label assigned to the message for filtering purposes.
|
|
604
|
+
*/
|
|
605
|
+
label?: string;
|
|
596
606
|
};
|
|
597
607
|
type MessagePayload = Omit<Message, "urlGroup"> & {
|
|
598
608
|
topicName: string;
|
|
@@ -669,6 +679,10 @@ type DLQFilter = {
|
|
|
669
679
|
* Filter DLQ entries by ending time, in milliseconds
|
|
670
680
|
*/
|
|
671
681
|
toDate?: number;
|
|
682
|
+
/**
|
|
683
|
+
* Filter DLQ entries by label
|
|
684
|
+
*/
|
|
685
|
+
label?: string;
|
|
672
686
|
/**
|
|
673
687
|
* Filter DLQ entries by HTTP status of the response
|
|
674
688
|
*/
|
|
@@ -840,6 +854,15 @@ type Schedule = {
|
|
|
840
854
|
* In seconds.
|
|
841
855
|
*/
|
|
842
856
|
period?: number;
|
|
857
|
+
/**
|
|
858
|
+
* The retry delay expression for this schedule,
|
|
859
|
+
* if retry_delay was set when creating the schedule.
|
|
860
|
+
*/
|
|
861
|
+
retryDelayExpression?: PublishRequest["retryDelay"];
|
|
862
|
+
/**
|
|
863
|
+
* The label assigned to the schedule for filtering purposes.
|
|
864
|
+
*/
|
|
865
|
+
label?: string;
|
|
843
866
|
};
|
|
844
867
|
type CreateScheduleRequest = {
|
|
845
868
|
/**
|
|
@@ -933,7 +956,13 @@ type CreateScheduleRequest = {
|
|
|
933
956
|
* and number of requests per second with the same key.
|
|
934
957
|
*/
|
|
935
958
|
flowControl?: FlowControl;
|
|
936
|
-
|
|
959
|
+
/**
|
|
960
|
+
* Assign a label to the schedule to filter logs later.
|
|
961
|
+
*
|
|
962
|
+
* @default undefined
|
|
963
|
+
*/
|
|
964
|
+
label?: string;
|
|
965
|
+
} & Pick<PublishRequest, "retryDelay">;
|
|
937
966
|
declare class Schedules {
|
|
938
967
|
private readonly http;
|
|
939
968
|
constructor(http: Requester);
|
|
@@ -1823,6 +1852,37 @@ type PublishRequest<TBody = BodyInit> = {
|
|
|
1823
1852
|
* @default 3
|
|
1824
1853
|
*/
|
|
1825
1854
|
retries?: number;
|
|
1855
|
+
/**
|
|
1856
|
+
* Delay between retries.
|
|
1857
|
+
*
|
|
1858
|
+
* By default, the `retryDelay` is exponential backoff.
|
|
1859
|
+
* More details can be found in: https://upstash.com/docs/qstash/features/retry.
|
|
1860
|
+
*
|
|
1861
|
+
* The `retryDelay` option allows you to customize the delay (in milliseconds) between retry attempts when message delivery fails.
|
|
1862
|
+
*
|
|
1863
|
+
* You can use mathematical expressions and the following built-in functions to calculate the delay dynamically.
|
|
1864
|
+
* The special variable `retried` represents the current retry attempt count (starting from 0).
|
|
1865
|
+
*
|
|
1866
|
+
* Supported functions:
|
|
1867
|
+
* - `pow`
|
|
1868
|
+
* - `sqrt`
|
|
1869
|
+
* - `abs`
|
|
1870
|
+
* - `exp`
|
|
1871
|
+
* - `floor`
|
|
1872
|
+
* - `ceil`
|
|
1873
|
+
* - `round`
|
|
1874
|
+
* - `min`
|
|
1875
|
+
* - `max`
|
|
1876
|
+
*
|
|
1877
|
+
* Examples of valid `retryDelay` values:
|
|
1878
|
+
* ```ts
|
|
1879
|
+
* 1000 // 1 second
|
|
1880
|
+
* 1000 * (1 + retried) // 1 second multiplied by the current retry attempt
|
|
1881
|
+
* pow(2, retried) // 2 to the power of the current retry attempt
|
|
1882
|
+
* max(10, pow(2, retried)) // The greater of 10 or 2^retried
|
|
1883
|
+
* ```
|
|
1884
|
+
*/
|
|
1885
|
+
retryDelay?: string;
|
|
1826
1886
|
/**
|
|
1827
1887
|
* Use a failure callback url to handle messages that could not be delivered.
|
|
1828
1888
|
*
|
|
@@ -1853,6 +1913,12 @@ type PublishRequest<TBody = BodyInit> = {
|
|
|
1853
1913
|
* and number of requests per second with the same key.
|
|
1854
1914
|
*/
|
|
1855
1915
|
flowControl?: FlowControl;
|
|
1916
|
+
/**
|
|
1917
|
+
* Assign a label to the request to filter logs later.
|
|
1918
|
+
*
|
|
1919
|
+
* @default undefined
|
|
1920
|
+
*/
|
|
1921
|
+
label?: string;
|
|
1856
1922
|
} & ({
|
|
1857
1923
|
/**
|
|
1858
1924
|
* The url where the message should be sent to.
|
|
@@ -1958,6 +2024,7 @@ type LogsRequestFilter = {
|
|
|
1958
2024
|
fromDate?: number;
|
|
1959
2025
|
toDate?: number;
|
|
1960
2026
|
count?: number;
|
|
2027
|
+
label?: string;
|
|
1961
2028
|
};
|
|
1962
2029
|
type GetLogsResponse = {
|
|
1963
2030
|
cursor?: string;
|
|
@@ -79,6 +79,7 @@ type Log = {
|
|
|
79
79
|
endpointName?: string;
|
|
80
80
|
header?: Record<string, string>;
|
|
81
81
|
body?: string;
|
|
82
|
+
label?: string;
|
|
82
83
|
};
|
|
83
84
|
/**
|
|
84
85
|
* Deprecated. Use the `Log` type instead.
|
|
@@ -539,6 +540,11 @@ type Message = {
|
|
|
539
540
|
* Maxmimum number of retries.
|
|
540
541
|
*/
|
|
541
542
|
maxRetries?: number;
|
|
543
|
+
/**
|
|
544
|
+
* The retry delay expression for this message,
|
|
545
|
+
* if retry_delay was set when publishing the message.
|
|
546
|
+
*/
|
|
547
|
+
retryDelayExpression?: PublishRequest["retryDelay"];
|
|
542
548
|
/**
|
|
543
549
|
* A unix timestamp (milliseconds) after which this message may get delivered.
|
|
544
550
|
*/
|
|
@@ -593,6 +599,10 @@ type Message = {
|
|
|
593
599
|
* In seconds.
|
|
594
600
|
*/
|
|
595
601
|
period?: number;
|
|
602
|
+
/**
|
|
603
|
+
* The label assigned to the message for filtering purposes.
|
|
604
|
+
*/
|
|
605
|
+
label?: string;
|
|
596
606
|
};
|
|
597
607
|
type MessagePayload = Omit<Message, "urlGroup"> & {
|
|
598
608
|
topicName: string;
|
|
@@ -669,6 +679,10 @@ type DLQFilter = {
|
|
|
669
679
|
* Filter DLQ entries by ending time, in milliseconds
|
|
670
680
|
*/
|
|
671
681
|
toDate?: number;
|
|
682
|
+
/**
|
|
683
|
+
* Filter DLQ entries by label
|
|
684
|
+
*/
|
|
685
|
+
label?: string;
|
|
672
686
|
/**
|
|
673
687
|
* Filter DLQ entries by HTTP status of the response
|
|
674
688
|
*/
|
|
@@ -840,6 +854,15 @@ type Schedule = {
|
|
|
840
854
|
* In seconds.
|
|
841
855
|
*/
|
|
842
856
|
period?: number;
|
|
857
|
+
/**
|
|
858
|
+
* The retry delay expression for this schedule,
|
|
859
|
+
* if retry_delay was set when creating the schedule.
|
|
860
|
+
*/
|
|
861
|
+
retryDelayExpression?: PublishRequest["retryDelay"];
|
|
862
|
+
/**
|
|
863
|
+
* The label assigned to the schedule for filtering purposes.
|
|
864
|
+
*/
|
|
865
|
+
label?: string;
|
|
843
866
|
};
|
|
844
867
|
type CreateScheduleRequest = {
|
|
845
868
|
/**
|
|
@@ -933,7 +956,13 @@ type CreateScheduleRequest = {
|
|
|
933
956
|
* and number of requests per second with the same key.
|
|
934
957
|
*/
|
|
935
958
|
flowControl?: FlowControl;
|
|
936
|
-
|
|
959
|
+
/**
|
|
960
|
+
* Assign a label to the schedule to filter logs later.
|
|
961
|
+
*
|
|
962
|
+
* @default undefined
|
|
963
|
+
*/
|
|
964
|
+
label?: string;
|
|
965
|
+
} & Pick<PublishRequest, "retryDelay">;
|
|
937
966
|
declare class Schedules {
|
|
938
967
|
private readonly http;
|
|
939
968
|
constructor(http: Requester);
|
|
@@ -1823,6 +1852,37 @@ type PublishRequest<TBody = BodyInit> = {
|
|
|
1823
1852
|
* @default 3
|
|
1824
1853
|
*/
|
|
1825
1854
|
retries?: number;
|
|
1855
|
+
/**
|
|
1856
|
+
* Delay between retries.
|
|
1857
|
+
*
|
|
1858
|
+
* By default, the `retryDelay` is exponential backoff.
|
|
1859
|
+
* More details can be found in: https://upstash.com/docs/qstash/features/retry.
|
|
1860
|
+
*
|
|
1861
|
+
* The `retryDelay` option allows you to customize the delay (in milliseconds) between retry attempts when message delivery fails.
|
|
1862
|
+
*
|
|
1863
|
+
* You can use mathematical expressions and the following built-in functions to calculate the delay dynamically.
|
|
1864
|
+
* The special variable `retried` represents the current retry attempt count (starting from 0).
|
|
1865
|
+
*
|
|
1866
|
+
* Supported functions:
|
|
1867
|
+
* - `pow`
|
|
1868
|
+
* - `sqrt`
|
|
1869
|
+
* - `abs`
|
|
1870
|
+
* - `exp`
|
|
1871
|
+
* - `floor`
|
|
1872
|
+
* - `ceil`
|
|
1873
|
+
* - `round`
|
|
1874
|
+
* - `min`
|
|
1875
|
+
* - `max`
|
|
1876
|
+
*
|
|
1877
|
+
* Examples of valid `retryDelay` values:
|
|
1878
|
+
* ```ts
|
|
1879
|
+
* 1000 // 1 second
|
|
1880
|
+
* 1000 * (1 + retried) // 1 second multiplied by the current retry attempt
|
|
1881
|
+
* pow(2, retried) // 2 to the power of the current retry attempt
|
|
1882
|
+
* max(10, pow(2, retried)) // The greater of 10 or 2^retried
|
|
1883
|
+
* ```
|
|
1884
|
+
*/
|
|
1885
|
+
retryDelay?: string;
|
|
1826
1886
|
/**
|
|
1827
1887
|
* Use a failure callback url to handle messages that could not be delivered.
|
|
1828
1888
|
*
|
|
@@ -1853,6 +1913,12 @@ type PublishRequest<TBody = BodyInit> = {
|
|
|
1853
1913
|
* and number of requests per second with the same key.
|
|
1854
1914
|
*/
|
|
1855
1915
|
flowControl?: FlowControl;
|
|
1916
|
+
/**
|
|
1917
|
+
* Assign a label to the request to filter logs later.
|
|
1918
|
+
*
|
|
1919
|
+
* @default undefined
|
|
1920
|
+
*/
|
|
1921
|
+
label?: string;
|
|
1856
1922
|
} & ({
|
|
1857
1923
|
/**
|
|
1858
1924
|
* The url where the message should be sent to.
|
|
@@ -1958,6 +2024,7 @@ type LogsRequestFilter = {
|
|
|
1958
2024
|
fromDate?: number;
|
|
1959
2025
|
toDate?: number;
|
|
1960
2026
|
count?: number;
|
|
2027
|
+
label?: string;
|
|
1961
2028
|
};
|
|
1962
2029
|
type GetLogsResponse = {
|
|
1963
2030
|
cursor?: string;
|
package/cloudflare.d.mts
CHANGED
package/cloudflare.d.ts
CHANGED
package/cloudflare.js
CHANGED
|
@@ -788,6 +788,9 @@ function processHeaders(request) {
|
|
|
788
788
|
if (request.retries !== void 0) {
|
|
789
789
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
790
790
|
}
|
|
791
|
+
if (request.retryDelay !== void 0) {
|
|
792
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
793
|
+
}
|
|
791
794
|
if (request.callback !== void 0) {
|
|
792
795
|
headers.set("Upstash-Callback", request.callback);
|
|
793
796
|
}
|
|
@@ -816,6 +819,9 @@ function processHeaders(request) {
|
|
|
816
819
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
817
820
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
818
821
|
}
|
|
822
|
+
if (request.label !== void 0) {
|
|
823
|
+
headers.set("Upstash-Label", request.label);
|
|
824
|
+
}
|
|
819
825
|
return headers;
|
|
820
826
|
}
|
|
821
827
|
function getRequestPath(request) {
|
|
@@ -1023,6 +1029,9 @@ var Schedules = class {
|
|
|
1023
1029
|
if (request.retries !== void 0) {
|
|
1024
1030
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1025
1031
|
}
|
|
1032
|
+
if (request.retryDelay !== void 0) {
|
|
1033
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1034
|
+
}
|
|
1026
1035
|
if (request.callback !== void 0) {
|
|
1027
1036
|
headers.set("Upstash-Callback", request.callback);
|
|
1028
1037
|
}
|
|
@@ -1059,6 +1068,9 @@ var Schedules = class {
|
|
|
1059
1068
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1060
1069
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1061
1070
|
}
|
|
1071
|
+
if (request.label !== void 0) {
|
|
1072
|
+
headers.set("Upstash-Label", request.label);
|
|
1073
|
+
}
|
|
1062
1074
|
return await this.http.request({
|
|
1063
1075
|
method: "POST",
|
|
1064
1076
|
headers: wrapWithGlobalHeaders(headers, this.http.headers, this.http.telemetryHeaders),
|
|
@@ -1188,7 +1200,7 @@ var UrlGroups = class {
|
|
|
1188
1200
|
};
|
|
1189
1201
|
|
|
1190
1202
|
// version.ts
|
|
1191
|
-
var VERSION = "v2.8.
|
|
1203
|
+
var VERSION = "v2.8.3";
|
|
1192
1204
|
|
|
1193
1205
|
// src/client/client.ts
|
|
1194
1206
|
var Client = class {
|
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 { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-
|
|
3
|
+
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BpQp_dGA.mjs';
|
|
4
4
|
import 'neverthrow';
|
|
5
5
|
|
|
6
6
|
type VerifySignatureConfig = {
|
package/h3.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as h3 from 'h3';
|
|
2
2
|
import { H3Event } from 'h3';
|
|
3
|
-
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-
|
|
3
|
+
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BpQp_dGA.js';
|
|
4
4
|
import 'neverthrow';
|
|
5
5
|
|
|
6
6
|
type VerifySignatureConfig = {
|
package/h3.js
CHANGED
|
@@ -1112,6 +1112,9 @@ function processHeaders(request) {
|
|
|
1112
1112
|
if (request.retries !== void 0) {
|
|
1113
1113
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1114
1114
|
}
|
|
1115
|
+
if (request.retryDelay !== void 0) {
|
|
1116
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1117
|
+
}
|
|
1115
1118
|
if (request.callback !== void 0) {
|
|
1116
1119
|
headers.set("Upstash-Callback", request.callback);
|
|
1117
1120
|
}
|
|
@@ -1140,6 +1143,9 @@ function processHeaders(request) {
|
|
|
1140
1143
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1141
1144
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1142
1145
|
}
|
|
1146
|
+
if (request.label !== void 0) {
|
|
1147
|
+
headers.set("Upstash-Label", request.label);
|
|
1148
|
+
}
|
|
1143
1149
|
return headers;
|
|
1144
1150
|
}
|
|
1145
1151
|
function getRequestPath(request) {
|
|
@@ -1347,6 +1353,9 @@ var Schedules = class {
|
|
|
1347
1353
|
if (request.retries !== void 0) {
|
|
1348
1354
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1349
1355
|
}
|
|
1356
|
+
if (request.retryDelay !== void 0) {
|
|
1357
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1358
|
+
}
|
|
1350
1359
|
if (request.callback !== void 0) {
|
|
1351
1360
|
headers.set("Upstash-Callback", request.callback);
|
|
1352
1361
|
}
|
|
@@ -1383,6 +1392,9 @@ var Schedules = class {
|
|
|
1383
1392
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1384
1393
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1385
1394
|
}
|
|
1395
|
+
if (request.label !== void 0) {
|
|
1396
|
+
headers.set("Upstash-Label", request.label);
|
|
1397
|
+
}
|
|
1386
1398
|
return await this.http.request({
|
|
1387
1399
|
method: "POST",
|
|
1388
1400
|
headers: wrapWithGlobalHeaders(headers, this.http.headers, this.http.telemetryHeaders),
|
|
@@ -2898,7 +2910,7 @@ var Workflow = class {
|
|
|
2898
2910
|
};
|
|
2899
2911
|
|
|
2900
2912
|
// version.ts
|
|
2901
|
-
var VERSION = "v2.8.
|
|
2913
|
+
var VERSION = "v2.8.3";
|
|
2902
2914
|
|
|
2903
2915
|
// src/client/client.ts
|
|
2904
2916
|
var Client = class {
|
package/h3.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serve,
|
|
3
3
|
verifySignatureH3
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TLUU4FA7.mjs";
|
|
5
|
+
import "./chunk-5ACKA46J.mjs";
|
|
6
|
+
import "./chunk-CR3B3DK3.mjs";
|
|
7
7
|
export {
|
|
8
8
|
serve,
|
|
9
9
|
verifySignatureH3
|
package/hono.d.mts
CHANGED
package/hono.d.ts
CHANGED
package/hono.js
CHANGED
|
@@ -788,6 +788,9 @@ function processHeaders(request) {
|
|
|
788
788
|
if (request.retries !== void 0) {
|
|
789
789
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
790
790
|
}
|
|
791
|
+
if (request.retryDelay !== void 0) {
|
|
792
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
793
|
+
}
|
|
791
794
|
if (request.callback !== void 0) {
|
|
792
795
|
headers.set("Upstash-Callback", request.callback);
|
|
793
796
|
}
|
|
@@ -816,6 +819,9 @@ function processHeaders(request) {
|
|
|
816
819
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
817
820
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
818
821
|
}
|
|
822
|
+
if (request.label !== void 0) {
|
|
823
|
+
headers.set("Upstash-Label", request.label);
|
|
824
|
+
}
|
|
819
825
|
return headers;
|
|
820
826
|
}
|
|
821
827
|
function getRequestPath(request) {
|
|
@@ -1023,6 +1029,9 @@ var Schedules = class {
|
|
|
1023
1029
|
if (request.retries !== void 0) {
|
|
1024
1030
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1025
1031
|
}
|
|
1032
|
+
if (request.retryDelay !== void 0) {
|
|
1033
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1034
|
+
}
|
|
1026
1035
|
if (request.callback !== void 0) {
|
|
1027
1036
|
headers.set("Upstash-Callback", request.callback);
|
|
1028
1037
|
}
|
|
@@ -1059,6 +1068,9 @@ var Schedules = class {
|
|
|
1059
1068
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1060
1069
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1061
1070
|
}
|
|
1071
|
+
if (request.label !== void 0) {
|
|
1072
|
+
headers.set("Upstash-Label", request.label);
|
|
1073
|
+
}
|
|
1062
1074
|
return await this.http.request({
|
|
1063
1075
|
method: "POST",
|
|
1064
1076
|
headers: wrapWithGlobalHeaders(headers, this.http.headers, this.http.telemetryHeaders),
|
|
@@ -1188,7 +1200,7 @@ var UrlGroups = class {
|
|
|
1188
1200
|
};
|
|
1189
1201
|
|
|
1190
1202
|
// version.ts
|
|
1191
|
-
var VERSION = "v2.8.
|
|
1203
|
+
var VERSION = "v2.8.3";
|
|
1192
1204
|
|
|
1193
1205
|
// src/client/client.ts
|
|
1194
1206
|
var Client = class {
|
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, L as LLMOwner, B as BaseProvider, E as EmailOwner, P as ProviderInfo } from './client-
|
|
2
|
-
export { A as AddEndpointsRequest, K as BodyInit, X as Chat, Z as ChatCompletion, _ as ChatCompletionChunk, Y as ChatCompletionMessage, a4 as ChatRequest, j as Client, r as CreateScheduleRequest, t as Endpoint, y as Event, D as EventPayload, h as EventsRequest, T as FlowControl, J as GetEventsPayload, i as GetEventsResponse, I as GetLogsPayload, G as GetLogsResponse, H as HTTPMethods, N as HeadersInit, x as Log, z as LogPayload, g as LogsRequest, M as Message, o as MessagePayload, p as Messages, a2 as OpenAIChatModel, a3 as PromptChatRequest, d as PublishBatchRequest, f as PublishJsonRequest, e as PublishRequest, n as PublishResponse, k as PublishToApiResponse, m as PublishToUrlGroupsResponse, l as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, u as RemoveEndpointsRequest, O as RequestOptions, q as Schedule, s as Schedules, b as SignatureError, w as State, a0 as StreamDisabled, $ as StreamEnabled, a1 as StreamParameter, U as UrlGroup, v as UrlGroups, V as VerifyRequest, W as WithCursor, a7 as anthropic, a8 as custom, a6 as openai, a5 as upstash } from './client-
|
|
1
|
+
import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload, L as LLMOwner, B as BaseProvider, E as EmailOwner, P as ProviderInfo } from './client-BpQp_dGA.mjs';
|
|
2
|
+
export { A as AddEndpointsRequest, K as BodyInit, X as Chat, Z as ChatCompletion, _ as ChatCompletionChunk, Y as ChatCompletionMessage, a4 as ChatRequest, j as Client, r as CreateScheduleRequest, t as Endpoint, y as Event, D as EventPayload, h as EventsRequest, T as FlowControl, J as GetEventsPayload, i as GetEventsResponse, I as GetLogsPayload, G as GetLogsResponse, H as HTTPMethods, N as HeadersInit, x as Log, z as LogPayload, g as LogsRequest, M as Message, o as MessagePayload, p as Messages, a2 as OpenAIChatModel, a3 as PromptChatRequest, d as PublishBatchRequest, f as PublishJsonRequest, e as PublishRequest, n as PublishResponse, k as PublishToApiResponse, m as PublishToUrlGroupsResponse, l as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, u as RemoveEndpointsRequest, O as RequestOptions, q as Schedule, s as Schedules, b as SignatureError, w as State, a0 as StreamDisabled, $ as StreamEnabled, a1 as StreamParameter, U as UrlGroup, v as UrlGroups, V as VerifyRequest, W as WithCursor, a7 as anthropic, a8 as custom, a6 as openai, a5 as upstash } from './client-BpQp_dGA.mjs';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
|
|
5
5
|
/**
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload, L as LLMOwner, B as BaseProvider, E as EmailOwner, P as ProviderInfo } from './client-
|
|
2
|
-
export { A as AddEndpointsRequest, K as BodyInit, X as Chat, Z as ChatCompletion, _ as ChatCompletionChunk, Y as ChatCompletionMessage, a4 as ChatRequest, j as Client, r as CreateScheduleRequest, t as Endpoint, y as Event, D as EventPayload, h as EventsRequest, T as FlowControl, J as GetEventsPayload, i as GetEventsResponse, I as GetLogsPayload, G as GetLogsResponse, H as HTTPMethods, N as HeadersInit, x as Log, z as LogPayload, g as LogsRequest, M as Message, o as MessagePayload, p as Messages, a2 as OpenAIChatModel, a3 as PromptChatRequest, d as PublishBatchRequest, f as PublishJsonRequest, e as PublishRequest, n as PublishResponse, k as PublishToApiResponse, m as PublishToUrlGroupsResponse, l as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, u as RemoveEndpointsRequest, O as RequestOptions, q as Schedule, s as Schedules, b as SignatureError, w as State, a0 as StreamDisabled, $ as StreamEnabled, a1 as StreamParameter, U as UrlGroup, v as UrlGroups, V as VerifyRequest, W as WithCursor, a7 as anthropic, a8 as custom, a6 as openai, a5 as upstash } from './client-
|
|
1
|
+
import { R as RateLimit, C as ChatRateLimit, S as Step, F as FailureFunctionPayload, L as LLMOwner, B as BaseProvider, E as EmailOwner, P as ProviderInfo } from './client-BpQp_dGA.js';
|
|
2
|
+
export { A as AddEndpointsRequest, K as BodyInit, X as Chat, Z as ChatCompletion, _ as ChatCompletionChunk, Y as ChatCompletionMessage, a4 as ChatRequest, j as Client, r as CreateScheduleRequest, t as Endpoint, y as Event, D as EventPayload, h as EventsRequest, T as FlowControl, J as GetEventsPayload, i as GetEventsResponse, I as GetLogsPayload, G as GetLogsResponse, H as HTTPMethods, N as HeadersInit, x as Log, z as LogPayload, g as LogsRequest, M as Message, o as MessagePayload, p as Messages, a2 as OpenAIChatModel, a3 as PromptChatRequest, d as PublishBatchRequest, f as PublishJsonRequest, e as PublishRequest, n as PublishResponse, k as PublishToApiResponse, m as PublishToUrlGroupsResponse, l as PublishToUrlResponse, Q as QueueRequest, c as Receiver, a as ReceiverConfig, u as RemoveEndpointsRequest, O as RequestOptions, q as Schedule, s as Schedules, b as SignatureError, w as State, a0 as StreamDisabled, $ as StreamEnabled, a1 as StreamParameter, U as UrlGroup, v as UrlGroups, V as VerifyRequest, W as WithCursor, a7 as anthropic, a8 as custom, a6 as openai, a5 as upstash } from './client-BpQp_dGA.js';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
|
|
5
5
|
/**
|
package/index.js
CHANGED
|
@@ -824,6 +824,9 @@ function processHeaders(request) {
|
|
|
824
824
|
if (request.retries !== void 0) {
|
|
825
825
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
826
826
|
}
|
|
827
|
+
if (request.retryDelay !== void 0) {
|
|
828
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
829
|
+
}
|
|
827
830
|
if (request.callback !== void 0) {
|
|
828
831
|
headers.set("Upstash-Callback", request.callback);
|
|
829
832
|
}
|
|
@@ -852,6 +855,9 @@ function processHeaders(request) {
|
|
|
852
855
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
853
856
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
854
857
|
}
|
|
858
|
+
if (request.label !== void 0) {
|
|
859
|
+
headers.set("Upstash-Label", request.label);
|
|
860
|
+
}
|
|
855
861
|
return headers;
|
|
856
862
|
}
|
|
857
863
|
function getRequestPath(request) {
|
|
@@ -1054,6 +1060,9 @@ var Schedules = class {
|
|
|
1054
1060
|
if (request.retries !== void 0) {
|
|
1055
1061
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1056
1062
|
}
|
|
1063
|
+
if (request.retryDelay !== void 0) {
|
|
1064
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1065
|
+
}
|
|
1057
1066
|
if (request.callback !== void 0) {
|
|
1058
1067
|
headers.set("Upstash-Callback", request.callback);
|
|
1059
1068
|
}
|
|
@@ -1090,6 +1099,9 @@ var Schedules = class {
|
|
|
1090
1099
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1091
1100
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1092
1101
|
}
|
|
1102
|
+
if (request.label !== void 0) {
|
|
1103
|
+
headers.set("Upstash-Label", request.label);
|
|
1104
|
+
}
|
|
1093
1105
|
return await this.http.request({
|
|
1094
1106
|
method: "POST",
|
|
1095
1107
|
headers: wrapWithGlobalHeaders(headers, this.http.headers, this.http.telemetryHeaders),
|
|
@@ -1250,7 +1262,7 @@ var Workflow = class {
|
|
|
1250
1262
|
};
|
|
1251
1263
|
|
|
1252
1264
|
// version.ts
|
|
1253
|
-
var VERSION = "v2.8.
|
|
1265
|
+
var VERSION = "v2.8.3";
|
|
1254
1266
|
|
|
1255
1267
|
// src/client/client.ts
|
|
1256
1268
|
var Client = class {
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resend
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ACKA46J.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Chat,
|
|
6
6
|
Client,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
openai,
|
|
23
23
|
setupAnalytics,
|
|
24
24
|
upstash
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CR3B3DK3.mjs";
|
|
26
26
|
export {
|
|
27
27
|
Chat,
|
|
28
28
|
Client,
|
package/nextjs.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextApiHandler } from 'next';
|
|
2
2
|
import { NextRequest, NextFetchEvent } from 'next/server';
|
|
3
|
-
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-
|
|
3
|
+
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BpQp_dGA.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 } from 'next/server';
|
|
3
|
-
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-
|
|
3
|
+
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BpQp_dGA.js';
|
|
4
4
|
import 'neverthrow';
|
|
5
5
|
|
|
6
6
|
type VerifySignatureConfig = {
|
package/nextjs.js
CHANGED
|
@@ -792,6 +792,9 @@ function processHeaders(request) {
|
|
|
792
792
|
if (request.retries !== void 0) {
|
|
793
793
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
794
794
|
}
|
|
795
|
+
if (request.retryDelay !== void 0) {
|
|
796
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
797
|
+
}
|
|
795
798
|
if (request.callback !== void 0) {
|
|
796
799
|
headers.set("Upstash-Callback", request.callback);
|
|
797
800
|
}
|
|
@@ -820,6 +823,9 @@ function processHeaders(request) {
|
|
|
820
823
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
821
824
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
822
825
|
}
|
|
826
|
+
if (request.label !== void 0) {
|
|
827
|
+
headers.set("Upstash-Label", request.label);
|
|
828
|
+
}
|
|
823
829
|
return headers;
|
|
824
830
|
}
|
|
825
831
|
function getRequestPath(request) {
|
|
@@ -1027,6 +1033,9 @@ var Schedules = class {
|
|
|
1027
1033
|
if (request.retries !== void 0) {
|
|
1028
1034
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1029
1035
|
}
|
|
1036
|
+
if (request.retryDelay !== void 0) {
|
|
1037
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1038
|
+
}
|
|
1030
1039
|
if (request.callback !== void 0) {
|
|
1031
1040
|
headers.set("Upstash-Callback", request.callback);
|
|
1032
1041
|
}
|
|
@@ -1063,6 +1072,9 @@ var Schedules = class {
|
|
|
1063
1072
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1064
1073
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1065
1074
|
}
|
|
1075
|
+
if (request.label !== void 0) {
|
|
1076
|
+
headers.set("Upstash-Label", request.label);
|
|
1077
|
+
}
|
|
1066
1078
|
return await this.http.request({
|
|
1067
1079
|
method: "POST",
|
|
1068
1080
|
headers: wrapWithGlobalHeaders(headers, this.http.headers, this.http.telemetryHeaders),
|
|
@@ -1192,7 +1204,7 @@ var UrlGroups = class {
|
|
|
1192
1204
|
};
|
|
1193
1205
|
|
|
1194
1206
|
// version.ts
|
|
1195
|
-
var VERSION = "v2.8.
|
|
1207
|
+
var VERSION = "v2.8.3";
|
|
1196
1208
|
|
|
1197
1209
|
// src/client/client.ts
|
|
1198
1210
|
var Client = class {
|
package/nextjs.mjs
CHANGED
package/nuxt.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
verifySignatureH3
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TLUU4FA7.mjs";
|
|
4
|
+
import "./chunk-5ACKA46J.mjs";
|
|
5
|
+
import "./chunk-CR3B3DK3.mjs";
|
|
6
6
|
|
|
7
7
|
// platforms/nuxt.ts
|
|
8
8
|
var verifySignatureNuxt = verifySignatureH3;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"v2.8.
|
|
1
|
+
{"version":"v2.8.3","name":"@upstash/qstash","description":"Official Typescript client for QStash","author":"Andreas Thomas <dev@chronark.com>","license":"MIT","homepage":"https://github.com/upstash/sdk-qstash-ts#readme","repository":{"type":"git","url":"git+https://github.com/upstash/sdk-qstash-ts.git"},"bugs":{"url":"https://github.com/upstash/sdk-qstash-ts/issues"},"main":"./index.js","module":"./index.mjs","types":"./index.d.ts","files":["./*"],"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./dist/nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./h3":{"import":"./h3.mjs","require":"./h3.js"},"./nuxt":{"import":"./nuxt.mjs","require":"./nuxt.js"},"./svelte":{"import":"./svelte.mjs","require":"./svelte.js"},"./solidjs":{"import":"./solidjs.mjs","require":"./solidjs.js"},"./workflow":{"import":"./workflow.mjs","require":"./workflow.js"},"./hono":{"import":"./hono.mjs","require":"./hono.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"}},"keywords":["qstash","queue","events","serverless","upstash"],"scripts":{"build":"tsup && cp README.md ./dist/ && cp package.json ./dist/ && cp LICENSE ./dist/","test":"bun test src","fmt":"prettier --write .","lint":"tsc && eslint \"{src,platforms}/**/*.{js,ts,tsx}\" --quiet --fix","check-exports":"bun run build && cd dist && attw -P"},"devDependencies":{"@commitlint/cli":"^19.2.2","@commitlint/config-conventional":"^19.2.2","@eslint/eslintrc":"^3.1.0","@eslint/js":"^9.10.0","@solidjs/start":"^1.0.6","@sveltejs/kit":"^2.5.18","@types/bun":"^1.1.1","@types/crypto-js":"^4.2.0","@typescript-eslint/eslint-plugin":"^8.4.0","@typescript-eslint/parser":"^8.4.0","ai":"^3.1.28","bun-types":"^1.1.7","eslint":"^9.10.0","eslint-plugin-unicorn":"^51.0.1","h3":"^1.12.0","hono":"^4.5.8","husky":"^9.0.10","next":"^14.0.2","prettier":"^3.2.5","tsup":"latest","typescript":"^5.4.5","undici-types":"^6.16.0","vitest":"latest"},"dependencies":{"crypto-js":">=4.2.0","jose":"^5.2.3","neverthrow":"^7.0.1"}}
|
package/solidjs.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIHandler, APIEvent } from '@solidjs/start/server';
|
|
2
|
-
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-
|
|
2
|
+
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BpQp_dGA.mjs';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
|
|
5
5
|
type VerifySignatureConfig = {
|
package/solidjs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIHandler, APIEvent } from '@solidjs/start/server';
|
|
2
|
-
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-
|
|
2
|
+
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BpQp_dGA.js';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
|
|
5
5
|
type VerifySignatureConfig = {
|
package/solidjs.js
CHANGED
|
@@ -789,6 +789,9 @@ function processHeaders(request) {
|
|
|
789
789
|
if (request.retries !== void 0) {
|
|
790
790
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
791
791
|
}
|
|
792
|
+
if (request.retryDelay !== void 0) {
|
|
793
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
794
|
+
}
|
|
792
795
|
if (request.callback !== void 0) {
|
|
793
796
|
headers.set("Upstash-Callback", request.callback);
|
|
794
797
|
}
|
|
@@ -817,6 +820,9 @@ function processHeaders(request) {
|
|
|
817
820
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
818
821
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
819
822
|
}
|
|
823
|
+
if (request.label !== void 0) {
|
|
824
|
+
headers.set("Upstash-Label", request.label);
|
|
825
|
+
}
|
|
820
826
|
return headers;
|
|
821
827
|
}
|
|
822
828
|
function getRequestPath(request) {
|
|
@@ -1024,6 +1030,9 @@ var Schedules = class {
|
|
|
1024
1030
|
if (request.retries !== void 0) {
|
|
1025
1031
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1026
1032
|
}
|
|
1033
|
+
if (request.retryDelay !== void 0) {
|
|
1034
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1035
|
+
}
|
|
1027
1036
|
if (request.callback !== void 0) {
|
|
1028
1037
|
headers.set("Upstash-Callback", request.callback);
|
|
1029
1038
|
}
|
|
@@ -1060,6 +1069,9 @@ var Schedules = class {
|
|
|
1060
1069
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1061
1070
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1062
1071
|
}
|
|
1072
|
+
if (request.label !== void 0) {
|
|
1073
|
+
headers.set("Upstash-Label", request.label);
|
|
1074
|
+
}
|
|
1063
1075
|
return await this.http.request({
|
|
1064
1076
|
method: "POST",
|
|
1065
1077
|
headers: wrapWithGlobalHeaders(headers, this.http.headers, this.http.telemetryHeaders),
|
|
@@ -2575,7 +2587,7 @@ var Workflow = class {
|
|
|
2575
2587
|
};
|
|
2576
2588
|
|
|
2577
2589
|
// version.ts
|
|
2578
|
-
var VERSION = "v2.8.
|
|
2590
|
+
var VERSION = "v2.8.3";
|
|
2579
2591
|
|
|
2580
2592
|
// src/client/client.ts
|
|
2581
2593
|
var Client = class {
|
package/solidjs.mjs
CHANGED
package/svelte.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestHandler } from '@sveltejs/kit';
|
|
2
|
-
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-
|
|
2
|
+
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BpQp_dGA.mjs';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
|
|
5
5
|
type VerifySignatureConfig = {
|
package/svelte.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestHandler } from '@sveltejs/kit';
|
|
2
|
-
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-
|
|
2
|
+
import { a9 as RouteFunction, aa as WorkflowServeOptions } from './client-BpQp_dGA.js';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
|
|
5
5
|
type VerifySignatureConfig = {
|
package/svelte.js
CHANGED
|
@@ -789,6 +789,9 @@ function processHeaders(request) {
|
|
|
789
789
|
if (request.retries !== void 0) {
|
|
790
790
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
791
791
|
}
|
|
792
|
+
if (request.retryDelay !== void 0) {
|
|
793
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
794
|
+
}
|
|
792
795
|
if (request.callback !== void 0) {
|
|
793
796
|
headers.set("Upstash-Callback", request.callback);
|
|
794
797
|
}
|
|
@@ -817,6 +820,9 @@ function processHeaders(request) {
|
|
|
817
820
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
818
821
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
819
822
|
}
|
|
823
|
+
if (request.label !== void 0) {
|
|
824
|
+
headers.set("Upstash-Label", request.label);
|
|
825
|
+
}
|
|
820
826
|
return headers;
|
|
821
827
|
}
|
|
822
828
|
function getRequestPath(request) {
|
|
@@ -1024,6 +1030,9 @@ var Schedules = class {
|
|
|
1024
1030
|
if (request.retries !== void 0) {
|
|
1025
1031
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1026
1032
|
}
|
|
1033
|
+
if (request.retryDelay !== void 0) {
|
|
1034
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1035
|
+
}
|
|
1027
1036
|
if (request.callback !== void 0) {
|
|
1028
1037
|
headers.set("Upstash-Callback", request.callback);
|
|
1029
1038
|
}
|
|
@@ -1060,6 +1069,9 @@ var Schedules = class {
|
|
|
1060
1069
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1061
1070
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1062
1071
|
}
|
|
1072
|
+
if (request.label !== void 0) {
|
|
1073
|
+
headers.set("Upstash-Label", request.label);
|
|
1074
|
+
}
|
|
1063
1075
|
return await this.http.request({
|
|
1064
1076
|
method: "POST",
|
|
1065
1077
|
headers: wrapWithGlobalHeaders(headers, this.http.headers, this.http.telemetryHeaders),
|
|
@@ -2575,7 +2587,7 @@ var Workflow = class {
|
|
|
2575
2587
|
};
|
|
2576
2588
|
|
|
2577
2589
|
// version.ts
|
|
2578
|
-
var VERSION = "v2.8.
|
|
2590
|
+
var VERSION = "v2.8.3";
|
|
2579
2591
|
|
|
2580
2592
|
// src/client/client.ts
|
|
2581
2593
|
var Client = class {
|
package/svelte.mjs
CHANGED
package/workflow.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { am as AsyncStepFunction, af as DisabledWorkflowContext, F as FailureFunctionPayload, ap as FinishCondition, ar as LogLevel, ao as ParallelCallState, ak as RawStep, aq as RequiredExceptFields, a9 as RouteFunction, S as Step, an as StepFunction, aj as StepType, ai as StepTypes, al as SyncStepFunction, ab as Workflow, ag as WorkflowClient, ae as WorkflowContext, at as WorkflowLogger, as as WorkflowLoggerOptions, ah as WorkflowReceiver, aa as WorkflowServeOptions, ac as processOptions, ad as serve } from './client-
|
|
1
|
+
export { am as AsyncStepFunction, af as DisabledWorkflowContext, F as FailureFunctionPayload, ap as FinishCondition, ar as LogLevel, ao as ParallelCallState, ak as RawStep, aq as RequiredExceptFields, a9 as RouteFunction, S as Step, an as StepFunction, aj as StepType, ai as StepTypes, al as SyncStepFunction, ab as Workflow, ag as WorkflowClient, ae as WorkflowContext, at as WorkflowLogger, as as WorkflowLoggerOptions, ah as WorkflowReceiver, aa as WorkflowServeOptions, ac as processOptions, ad as serve } from './client-BpQp_dGA.mjs';
|
|
2
2
|
import 'neverthrow';
|
package/workflow.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { am as AsyncStepFunction, af as DisabledWorkflowContext, F as FailureFunctionPayload, ap as FinishCondition, ar as LogLevel, ao as ParallelCallState, ak as RawStep, aq as RequiredExceptFields, a9 as RouteFunction, S as Step, an as StepFunction, aj as StepType, ai as StepTypes, al as SyncStepFunction, ab as Workflow, ag as WorkflowClient, ae as WorkflowContext, at as WorkflowLogger, as as WorkflowLoggerOptions, ah as WorkflowReceiver, aa as WorkflowServeOptions, ac as processOptions, ad as serve } from './client-
|
|
1
|
+
export { am as AsyncStepFunction, af as DisabledWorkflowContext, F as FailureFunctionPayload, ap as FinishCondition, ar as LogLevel, ao as ParallelCallState, ak as RawStep, aq as RequiredExceptFields, a9 as RouteFunction, S as Step, an as StepFunction, aj as StepType, ai as StepTypes, al as SyncStepFunction, ab as Workflow, ag as WorkflowClient, ae as WorkflowContext, at as WorkflowLogger, as as WorkflowLoggerOptions, ah as WorkflowReceiver, aa as WorkflowServeOptions, ac as processOptions, ad as serve } from './client-BpQp_dGA.js';
|
|
2
2
|
import 'neverthrow';
|
package/workflow.js
CHANGED
|
@@ -794,6 +794,9 @@ function processHeaders(request) {
|
|
|
794
794
|
if (request.retries !== void 0) {
|
|
795
795
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
796
796
|
}
|
|
797
|
+
if (request.retryDelay !== void 0) {
|
|
798
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
799
|
+
}
|
|
797
800
|
if (request.callback !== void 0) {
|
|
798
801
|
headers.set("Upstash-Callback", request.callback);
|
|
799
802
|
}
|
|
@@ -822,6 +825,9 @@ function processHeaders(request) {
|
|
|
822
825
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
823
826
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
824
827
|
}
|
|
828
|
+
if (request.label !== void 0) {
|
|
829
|
+
headers.set("Upstash-Label", request.label);
|
|
830
|
+
}
|
|
825
831
|
return headers;
|
|
826
832
|
}
|
|
827
833
|
function getRequestPath(request) {
|
|
@@ -1029,6 +1035,9 @@ var Schedules = class {
|
|
|
1029
1035
|
if (request.retries !== void 0) {
|
|
1030
1036
|
headers.set("Upstash-Retries", request.retries.toFixed(0));
|
|
1031
1037
|
}
|
|
1038
|
+
if (request.retryDelay !== void 0) {
|
|
1039
|
+
headers.set("Upstash-Retry-Delay", request.retryDelay);
|
|
1040
|
+
}
|
|
1032
1041
|
if (request.callback !== void 0) {
|
|
1033
1042
|
headers.set("Upstash-Callback", request.callback);
|
|
1034
1043
|
}
|
|
@@ -1065,6 +1074,9 @@ var Schedules = class {
|
|
|
1065
1074
|
headers.set("Upstash-Flow-Control-Key", request.flowControl.key);
|
|
1066
1075
|
headers.set("Upstash-Flow-Control-Value", controlValue.join(", "));
|
|
1067
1076
|
}
|
|
1077
|
+
if (request.label !== void 0) {
|
|
1078
|
+
headers.set("Upstash-Label", request.label);
|
|
1079
|
+
}
|
|
1068
1080
|
return await this.http.request({
|
|
1069
1081
|
method: "POST",
|
|
1070
1082
|
headers: wrapWithGlobalHeaders(headers, this.http.headers, this.http.telemetryHeaders),
|
|
@@ -1194,7 +1206,7 @@ var UrlGroups = class {
|
|
|
1194
1206
|
};
|
|
1195
1207
|
|
|
1196
1208
|
// version.ts
|
|
1197
|
-
var VERSION = "v2.8.
|
|
1209
|
+
var VERSION = "v2.8.3";
|
|
1198
1210
|
|
|
1199
1211
|
// src/client/client.ts
|
|
1200
1212
|
var Client = class {
|