@trigger.dev/core 2.0.9 → 2.0.11
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/LICENSE +21 -201
- package/dist/index.d.ts +30 -743
- package/dist/index.js +27 -13
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1067,18 +1067,8 @@ declare const JobMetadataSchema: z.ZodObject<{
|
|
|
1067
1067
|
authSource: "HOSTED" | "LOCAL";
|
|
1068
1068
|
}>>;
|
|
1069
1069
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
1070
|
-
queue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1071
|
-
name: z.ZodString;
|
|
1072
|
-
maxConcurrent: z.ZodOptional<z.ZodNumber>;
|
|
1073
|
-
}, "strip", z.ZodTypeAny, {
|
|
1074
|
-
name: string;
|
|
1075
|
-
maxConcurrent?: number | undefined;
|
|
1076
|
-
}, {
|
|
1077
|
-
name: string;
|
|
1078
|
-
maxConcurrent?: number | undefined;
|
|
1079
|
-
}>, z.ZodString]>>;
|
|
1080
|
-
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
1081
1070
|
enabled: z.ZodBoolean;
|
|
1071
|
+
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
1082
1072
|
preprocessRuns: z.ZodBoolean;
|
|
1083
1073
|
}, "strip", z.ZodTypeAny, {
|
|
1084
1074
|
name: string;
|
|
@@ -1146,13 +1136,9 @@ declare const JobMetadataSchema: z.ZodObject<{
|
|
|
1146
1136
|
authSource: "HOSTED" | "LOCAL";
|
|
1147
1137
|
}>;
|
|
1148
1138
|
internal: boolean;
|
|
1149
|
-
startPosition: "initial" | "latest";
|
|
1150
1139
|
enabled: boolean;
|
|
1140
|
+
startPosition: "initial" | "latest";
|
|
1151
1141
|
preprocessRuns: boolean;
|
|
1152
|
-
queue?: string | {
|
|
1153
|
-
name: string;
|
|
1154
|
-
maxConcurrent?: number | undefined;
|
|
1155
|
-
} | undefined;
|
|
1156
1142
|
}, {
|
|
1157
1143
|
name: string;
|
|
1158
1144
|
event: {
|
|
@@ -1218,14 +1204,10 @@ declare const JobMetadataSchema: z.ZodObject<{
|
|
|
1218
1204
|
};
|
|
1219
1205
|
authSource: "HOSTED" | "LOCAL";
|
|
1220
1206
|
}>;
|
|
1221
|
-
startPosition: "initial" | "latest";
|
|
1222
1207
|
enabled: boolean;
|
|
1208
|
+
startPosition: "initial" | "latest";
|
|
1223
1209
|
preprocessRuns: boolean;
|
|
1224
1210
|
internal?: boolean | undefined;
|
|
1225
|
-
queue?: string | {
|
|
1226
|
-
name: string;
|
|
1227
|
-
maxConcurrent?: number | undefined;
|
|
1228
|
-
} | undefined;
|
|
1229
1211
|
}>;
|
|
1230
1212
|
type JobMetadata = z.infer<typeof JobMetadataSchema>;
|
|
1231
1213
|
declare const SourceMetadataSchema: z.ZodObject<{
|
|
@@ -1574,18 +1556,8 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
|
|
|
1574
1556
|
authSource: "HOSTED" | "LOCAL";
|
|
1575
1557
|
}>>;
|
|
1576
1558
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
1577
|
-
queue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1578
|
-
name: z.ZodString;
|
|
1579
|
-
maxConcurrent: z.ZodOptional<z.ZodNumber>;
|
|
1580
|
-
}, "strip", z.ZodTypeAny, {
|
|
1581
|
-
name: string;
|
|
1582
|
-
maxConcurrent?: number | undefined;
|
|
1583
|
-
}, {
|
|
1584
|
-
name: string;
|
|
1585
|
-
maxConcurrent?: number | undefined;
|
|
1586
|
-
}>, z.ZodString]>>;
|
|
1587
|
-
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
1588
1559
|
enabled: z.ZodBoolean;
|
|
1560
|
+
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
1589
1561
|
preprocessRuns: z.ZodBoolean;
|
|
1590
1562
|
}, "id" | "version">, "strip", z.ZodTypeAny, {
|
|
1591
1563
|
id: string;
|
|
@@ -1885,18 +1857,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
1885
1857
|
authSource: "HOSTED" | "LOCAL";
|
|
1886
1858
|
}>>;
|
|
1887
1859
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
1888
|
-
queue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1889
|
-
name: z.ZodString;
|
|
1890
|
-
maxConcurrent: z.ZodOptional<z.ZodNumber>;
|
|
1891
|
-
}, "strip", z.ZodTypeAny, {
|
|
1892
|
-
name: string;
|
|
1893
|
-
maxConcurrent?: number | undefined;
|
|
1894
|
-
}, {
|
|
1895
|
-
name: string;
|
|
1896
|
-
maxConcurrent?: number | undefined;
|
|
1897
|
-
}>, z.ZodString]>>;
|
|
1898
|
-
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
1899
1860
|
enabled: z.ZodBoolean;
|
|
1861
|
+
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
1900
1862
|
preprocessRuns: z.ZodBoolean;
|
|
1901
1863
|
}, "strip", z.ZodTypeAny, {
|
|
1902
1864
|
name: string;
|
|
@@ -1964,13 +1926,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
1964
1926
|
authSource: "HOSTED" | "LOCAL";
|
|
1965
1927
|
}>;
|
|
1966
1928
|
internal: boolean;
|
|
1967
|
-
startPosition: "initial" | "latest";
|
|
1968
1929
|
enabled: boolean;
|
|
1930
|
+
startPosition: "initial" | "latest";
|
|
1969
1931
|
preprocessRuns: boolean;
|
|
1970
|
-
queue?: string | {
|
|
1971
|
-
name: string;
|
|
1972
|
-
maxConcurrent?: number | undefined;
|
|
1973
|
-
} | undefined;
|
|
1974
1932
|
}, {
|
|
1975
1933
|
name: string;
|
|
1976
1934
|
event: {
|
|
@@ -2036,14 +1994,10 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
2036
1994
|
};
|
|
2037
1995
|
authSource: "HOSTED" | "LOCAL";
|
|
2038
1996
|
}>;
|
|
2039
|
-
startPosition: "initial" | "latest";
|
|
2040
1997
|
enabled: boolean;
|
|
1998
|
+
startPosition: "initial" | "latest";
|
|
2041
1999
|
preprocessRuns: boolean;
|
|
2042
2000
|
internal?: boolean | undefined;
|
|
2043
|
-
queue?: string | {
|
|
2044
|
-
name: string;
|
|
2045
|
-
maxConcurrent?: number | undefined;
|
|
2046
|
-
} | undefined;
|
|
2047
2001
|
}>, "many">;
|
|
2048
2002
|
sources: z.ZodArray<z.ZodObject<{
|
|
2049
2003
|
channel: z.ZodEnum<["HTTP", "SQS", "SMTP"]>;
|
|
@@ -2390,18 +2344,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
2390
2344
|
authSource: "HOSTED" | "LOCAL";
|
|
2391
2345
|
}>>;
|
|
2392
2346
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
2393
|
-
queue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2394
|
-
name: z.ZodString;
|
|
2395
|
-
maxConcurrent: z.ZodOptional<z.ZodNumber>;
|
|
2396
|
-
}, "strip", z.ZodTypeAny, {
|
|
2397
|
-
name: string;
|
|
2398
|
-
maxConcurrent?: number | undefined;
|
|
2399
|
-
}, {
|
|
2400
|
-
name: string;
|
|
2401
|
-
maxConcurrent?: number | undefined;
|
|
2402
|
-
}>, z.ZodString]>>;
|
|
2403
|
-
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
2404
2347
|
enabled: z.ZodBoolean;
|
|
2348
|
+
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
2405
2349
|
preprocessRuns: z.ZodBoolean;
|
|
2406
2350
|
}, "id" | "version">, "strip", z.ZodTypeAny, {
|
|
2407
2351
|
id: string;
|
|
@@ -2533,13 +2477,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
2533
2477
|
authSource: "HOSTED" | "LOCAL";
|
|
2534
2478
|
}>;
|
|
2535
2479
|
internal: boolean;
|
|
2536
|
-
startPosition: "initial" | "latest";
|
|
2537
2480
|
enabled: boolean;
|
|
2481
|
+
startPosition: "initial" | "latest";
|
|
2538
2482
|
preprocessRuns: boolean;
|
|
2539
|
-
queue?: string | {
|
|
2540
|
-
name: string;
|
|
2541
|
-
maxConcurrent?: number | undefined;
|
|
2542
|
-
} | undefined;
|
|
2543
2483
|
}[];
|
|
2544
2484
|
sources: {
|
|
2545
2485
|
key: string;
|
|
@@ -2644,14 +2584,10 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
2644
2584
|
};
|
|
2645
2585
|
authSource: "HOSTED" | "LOCAL";
|
|
2646
2586
|
}>;
|
|
2647
|
-
startPosition: "initial" | "latest";
|
|
2648
2587
|
enabled: boolean;
|
|
2588
|
+
startPosition: "initial" | "latest";
|
|
2649
2589
|
preprocessRuns: boolean;
|
|
2650
2590
|
internal?: boolean | undefined;
|
|
2651
|
-
queue?: string | {
|
|
2652
|
-
name: string;
|
|
2653
|
-
maxConcurrent?: number | undefined;
|
|
2654
|
-
} | undefined;
|
|
2655
2591
|
}[];
|
|
2656
2592
|
sources: {
|
|
2657
2593
|
key: string;
|
|
@@ -2755,6 +2691,9 @@ declare const ApiEventLogSchema: z.ZodObject<{
|
|
|
2755
2691
|
/** The timestamp when the event was delivered. Is `undefined` if `deliverAt`
|
|
2756
2692
|
or `deliverAfter` were set when sending the event. */
|
|
2757
2693
|
deliveredAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
2694
|
+
/** The timestamp when the event was cancelled. Is `undefined` if the event
|
|
2695
|
+
* wasn't cancelled. */
|
|
2696
|
+
cancelledAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
2758
2697
|
}, "strip", z.ZodTypeAny, {
|
|
2759
2698
|
name: string;
|
|
2760
2699
|
payload: ((string | number | boolean | {
|
|
@@ -2767,6 +2706,7 @@ declare const ApiEventLogSchema: z.ZodObject<{
|
|
|
2767
2706
|
context?: DeserializedJson | undefined;
|
|
2768
2707
|
deliverAt?: Date | null | undefined;
|
|
2769
2708
|
deliveredAt?: Date | null | undefined;
|
|
2709
|
+
cancelledAt?: Date | null | undefined;
|
|
2770
2710
|
}, {
|
|
2771
2711
|
name: string;
|
|
2772
2712
|
payload: ((string | number | boolean | {
|
|
@@ -2779,6 +2719,7 @@ declare const ApiEventLogSchema: z.ZodObject<{
|
|
|
2779
2719
|
context?: DeserializedJson | undefined;
|
|
2780
2720
|
deliverAt?: Date | null | undefined;
|
|
2781
2721
|
deliveredAt?: Date | null | undefined;
|
|
2722
|
+
cancelledAt?: Date | null | undefined;
|
|
2782
2723
|
}>;
|
|
2783
2724
|
type ApiEventLog = z.infer<typeof ApiEventLogSchema>;
|
|
2784
2725
|
/** Options to control the delivery of the event */
|
|
@@ -2936,6 +2877,9 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
2936
2877
|
/** The timestamp when the event was delivered. Is `undefined` if `deliverAt`
|
|
2937
2878
|
or `deliverAfter` were set when sending the event. */
|
|
2938
2879
|
deliveredAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
2880
|
+
/** The timestamp when the event was cancelled. Is `undefined` if the event
|
|
2881
|
+
* wasn't cancelled. */
|
|
2882
|
+
cancelledAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
2939
2883
|
}, "strip", z.ZodTypeAny, {
|
|
2940
2884
|
name: string;
|
|
2941
2885
|
payload: ((string | number | boolean | {
|
|
@@ -2948,6 +2892,7 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
2948
2892
|
context?: DeserializedJson | undefined;
|
|
2949
2893
|
deliverAt?: Date | null | undefined;
|
|
2950
2894
|
deliveredAt?: Date | null | undefined;
|
|
2895
|
+
cancelledAt?: Date | null | undefined;
|
|
2951
2896
|
}, {
|
|
2952
2897
|
name: string;
|
|
2953
2898
|
payload: ((string | number | boolean | {
|
|
@@ -2960,6 +2905,7 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
2960
2905
|
context?: DeserializedJson | undefined;
|
|
2961
2906
|
deliverAt?: Date | null | undefined;
|
|
2962
2907
|
deliveredAt?: Date | null | undefined;
|
|
2908
|
+
cancelledAt?: Date | null | undefined;
|
|
2963
2909
|
}>;
|
|
2964
2910
|
job: z.ZodObject<{
|
|
2965
2911
|
id: z.ZodString;
|
|
@@ -3084,6 +3030,7 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
3084
3030
|
context?: DeserializedJson | undefined;
|
|
3085
3031
|
deliverAt?: Date | null | undefined;
|
|
3086
3032
|
deliveredAt?: Date | null | undefined;
|
|
3033
|
+
cancelledAt?: Date | null | undefined;
|
|
3087
3034
|
};
|
|
3088
3035
|
job: {
|
|
3089
3036
|
id: string;
|
|
@@ -3140,6 +3087,7 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
3140
3087
|
context?: DeserializedJson | undefined;
|
|
3141
3088
|
deliverAt?: Date | null | undefined;
|
|
3142
3089
|
deliveredAt?: Date | null | undefined;
|
|
3090
|
+
cancelledAt?: Date | null | undefined;
|
|
3143
3091
|
};
|
|
3144
3092
|
job: {
|
|
3145
3093
|
id: string;
|
|
@@ -4742,6 +4690,9 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4742
4690
|
/** The timestamp when the event was delivered. Is `undefined` if `deliverAt`
|
|
4743
4691
|
or `deliverAfter` were set when sending the event. */
|
|
4744
4692
|
deliveredAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
4693
|
+
/** The timestamp when the event was cancelled. Is `undefined` if the event
|
|
4694
|
+
* wasn't cancelled. */
|
|
4695
|
+
cancelledAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
4745
4696
|
}, "strip", z.ZodTypeAny, {
|
|
4746
4697
|
name: string;
|
|
4747
4698
|
payload: ((string | number | boolean | {
|
|
@@ -4754,6 +4705,7 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4754
4705
|
context?: DeserializedJson | undefined;
|
|
4755
4706
|
deliverAt?: Date | null | undefined;
|
|
4756
4707
|
deliveredAt?: Date | null | undefined;
|
|
4708
|
+
cancelledAt?: Date | null | undefined;
|
|
4757
4709
|
}, {
|
|
4758
4710
|
name: string;
|
|
4759
4711
|
payload: ((string | number | boolean | {
|
|
@@ -4766,6 +4718,7 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4766
4718
|
context?: DeserializedJson | undefined;
|
|
4767
4719
|
deliverAt?: Date | null | undefined;
|
|
4768
4720
|
deliveredAt?: Date | null | undefined;
|
|
4721
|
+
cancelledAt?: Date | null | undefined;
|
|
4769
4722
|
}>;
|
|
4770
4723
|
job: z.ZodObject<{
|
|
4771
4724
|
id: z.ZodString;
|
|
@@ -4836,6 +4789,7 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4836
4789
|
context?: DeserializedJson | undefined;
|
|
4837
4790
|
deliverAt?: Date | null | undefined;
|
|
4838
4791
|
deliveredAt?: Date | null | undefined;
|
|
4792
|
+
cancelledAt?: Date | null | undefined;
|
|
4839
4793
|
};
|
|
4840
4794
|
job: {
|
|
4841
4795
|
id: string;
|
|
@@ -4872,6 +4826,7 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4872
4826
|
context?: DeserializedJson | undefined;
|
|
4873
4827
|
deliverAt?: Date | null | undefined;
|
|
4874
4828
|
deliveredAt?: Date | null | undefined;
|
|
4829
|
+
cancelledAt?: Date | null | undefined;
|
|
4875
4830
|
};
|
|
4876
4831
|
job: {
|
|
4877
4832
|
id: string;
|
|
@@ -4928,674 +4883,6 @@ declare const PreprocessRunResponseSchema: z.ZodObject<{
|
|
|
4928
4883
|
}[] | undefined;
|
|
4929
4884
|
}>;
|
|
4930
4885
|
type PreprocessRunResponse = z.infer<typeof PreprocessRunResponseSchema>;
|
|
4931
|
-
declare const CreateRunBodySchema: z.ZodObject<{
|
|
4932
|
-
client: z.ZodString;
|
|
4933
|
-
job: z.ZodObject<{
|
|
4934
|
-
id: z.ZodString;
|
|
4935
|
-
name: z.ZodString;
|
|
4936
|
-
version: z.ZodString;
|
|
4937
|
-
event: z.ZodObject<{
|
|
4938
|
-
name: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
4939
|
-
title: z.ZodString;
|
|
4940
|
-
source: z.ZodString;
|
|
4941
|
-
icon: z.ZodString;
|
|
4942
|
-
filter: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
4943
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4944
|
-
label: z.ZodString;
|
|
4945
|
-
text: z.ZodString;
|
|
4946
|
-
url: z.ZodOptional<z.ZodString>;
|
|
4947
|
-
}, "strip", z.ZodTypeAny, {
|
|
4948
|
-
label: string;
|
|
4949
|
-
text: string;
|
|
4950
|
-
url?: string | undefined;
|
|
4951
|
-
}, {
|
|
4952
|
-
label: string;
|
|
4953
|
-
text: string;
|
|
4954
|
-
url?: string | undefined;
|
|
4955
|
-
}>, "many">>;
|
|
4956
|
-
schema: z.ZodOptional<z.ZodAny>;
|
|
4957
|
-
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4958
|
-
id: z.ZodString;
|
|
4959
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
4960
|
-
name: z.ZodString;
|
|
4961
|
-
payload: z.ZodAny;
|
|
4962
|
-
}, "strip", z.ZodTypeAny, {
|
|
4963
|
-
name: string;
|
|
4964
|
-
id: string;
|
|
4965
|
-
icon?: string | undefined;
|
|
4966
|
-
payload?: any;
|
|
4967
|
-
}, {
|
|
4968
|
-
name: string;
|
|
4969
|
-
id: string;
|
|
4970
|
-
icon?: string | undefined;
|
|
4971
|
-
payload?: any;
|
|
4972
|
-
}>, "many">>;
|
|
4973
|
-
}, "strip", z.ZodTypeAny, {
|
|
4974
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
4975
|
-
source: string;
|
|
4976
|
-
icon: string;
|
|
4977
|
-
title: string;
|
|
4978
|
-
filter?: EventFilter | undefined;
|
|
4979
|
-
properties?: {
|
|
4980
|
-
label: string;
|
|
4981
|
-
text: string;
|
|
4982
|
-
url?: string | undefined;
|
|
4983
|
-
}[] | undefined;
|
|
4984
|
-
schema?: any;
|
|
4985
|
-
examples?: {
|
|
4986
|
-
name: string;
|
|
4987
|
-
id: string;
|
|
4988
|
-
icon?: string | undefined;
|
|
4989
|
-
payload?: any;
|
|
4990
|
-
}[] | undefined;
|
|
4991
|
-
}, {
|
|
4992
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
4993
|
-
source: string;
|
|
4994
|
-
icon: string;
|
|
4995
|
-
title: string;
|
|
4996
|
-
filter?: EventFilter | undefined;
|
|
4997
|
-
properties?: {
|
|
4998
|
-
label: string;
|
|
4999
|
-
text: string;
|
|
5000
|
-
url?: string | undefined;
|
|
5001
|
-
}[] | undefined;
|
|
5002
|
-
schema?: any;
|
|
5003
|
-
examples?: {
|
|
5004
|
-
name: string;
|
|
5005
|
-
id: string;
|
|
5006
|
-
icon?: string | undefined;
|
|
5007
|
-
payload?: any;
|
|
5008
|
-
}[] | undefined;
|
|
5009
|
-
}>;
|
|
5010
|
-
trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5011
|
-
type: z.ZodLiteral<"dynamic">;
|
|
5012
|
-
id: z.ZodString;
|
|
5013
|
-
}, "strip", z.ZodTypeAny, {
|
|
5014
|
-
type: "dynamic";
|
|
5015
|
-
id: string;
|
|
5016
|
-
}, {
|
|
5017
|
-
type: "dynamic";
|
|
5018
|
-
id: string;
|
|
5019
|
-
}>, z.ZodObject<{
|
|
5020
|
-
type: z.ZodLiteral<"static">;
|
|
5021
|
-
title: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
5022
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5023
|
-
label: z.ZodString;
|
|
5024
|
-
text: z.ZodString;
|
|
5025
|
-
url: z.ZodOptional<z.ZodString>;
|
|
5026
|
-
}, "strip", z.ZodTypeAny, {
|
|
5027
|
-
label: string;
|
|
5028
|
-
text: string;
|
|
5029
|
-
url?: string | undefined;
|
|
5030
|
-
}, {
|
|
5031
|
-
label: string;
|
|
5032
|
-
text: string;
|
|
5033
|
-
url?: string | undefined;
|
|
5034
|
-
}>, "many">>;
|
|
5035
|
-
rule: z.ZodObject<{
|
|
5036
|
-
event: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
5037
|
-
source: z.ZodString;
|
|
5038
|
-
payload: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
5039
|
-
context: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
5040
|
-
}, "strip", z.ZodTypeAny, {
|
|
5041
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5042
|
-
source: string;
|
|
5043
|
-
payload?: EventFilter | undefined;
|
|
5044
|
-
context?: EventFilter | undefined;
|
|
5045
|
-
}, {
|
|
5046
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5047
|
-
source: string;
|
|
5048
|
-
payload?: EventFilter | undefined;
|
|
5049
|
-
context?: EventFilter | undefined;
|
|
5050
|
-
}>;
|
|
5051
|
-
}, "strip", z.ZodTypeAny, {
|
|
5052
|
-
type: "static";
|
|
5053
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5054
|
-
rule: {
|
|
5055
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5056
|
-
source: string;
|
|
5057
|
-
payload?: EventFilter | undefined;
|
|
5058
|
-
context?: EventFilter | undefined;
|
|
5059
|
-
};
|
|
5060
|
-
properties?: {
|
|
5061
|
-
label: string;
|
|
5062
|
-
text: string;
|
|
5063
|
-
url?: string | undefined;
|
|
5064
|
-
}[] | undefined;
|
|
5065
|
-
}, {
|
|
5066
|
-
type: "static";
|
|
5067
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5068
|
-
rule: {
|
|
5069
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5070
|
-
source: string;
|
|
5071
|
-
payload?: EventFilter | undefined;
|
|
5072
|
-
context?: EventFilter | undefined;
|
|
5073
|
-
};
|
|
5074
|
-
properties?: {
|
|
5075
|
-
label: string;
|
|
5076
|
-
text: string;
|
|
5077
|
-
url?: string | undefined;
|
|
5078
|
-
}[] | undefined;
|
|
5079
|
-
}>, z.ZodObject<{
|
|
5080
|
-
type: z.ZodLiteral<"scheduled">;
|
|
5081
|
-
schedule: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5082
|
-
type: z.ZodLiteral<"interval">;
|
|
5083
|
-
options: z.ZodObject<{
|
|
5084
|
-
seconds: z.ZodNumber;
|
|
5085
|
-
}, "strip", z.ZodTypeAny, {
|
|
5086
|
-
seconds: number;
|
|
5087
|
-
}, {
|
|
5088
|
-
seconds: number;
|
|
5089
|
-
}>;
|
|
5090
|
-
metadata: z.ZodAny;
|
|
5091
|
-
}, "strip", z.ZodTypeAny, {
|
|
5092
|
-
options: {
|
|
5093
|
-
seconds: number;
|
|
5094
|
-
};
|
|
5095
|
-
type: "interval";
|
|
5096
|
-
metadata?: any;
|
|
5097
|
-
}, {
|
|
5098
|
-
options: {
|
|
5099
|
-
seconds: number;
|
|
5100
|
-
};
|
|
5101
|
-
type: "interval";
|
|
5102
|
-
metadata?: any;
|
|
5103
|
-
}>, z.ZodObject<{
|
|
5104
|
-
type: z.ZodLiteral<"cron">;
|
|
5105
|
-
options: z.ZodObject<{
|
|
5106
|
-
cron: z.ZodString;
|
|
5107
|
-
}, "strip", z.ZodTypeAny, {
|
|
5108
|
-
cron: string;
|
|
5109
|
-
}, {
|
|
5110
|
-
cron: string;
|
|
5111
|
-
}>;
|
|
5112
|
-
metadata: z.ZodAny;
|
|
5113
|
-
}, "strip", z.ZodTypeAny, {
|
|
5114
|
-
options: {
|
|
5115
|
-
cron: string;
|
|
5116
|
-
};
|
|
5117
|
-
type: "cron";
|
|
5118
|
-
metadata?: any;
|
|
5119
|
-
}, {
|
|
5120
|
-
options: {
|
|
5121
|
-
cron: string;
|
|
5122
|
-
};
|
|
5123
|
-
type: "cron";
|
|
5124
|
-
metadata?: any;
|
|
5125
|
-
}>]>;
|
|
5126
|
-
}, "strip", z.ZodTypeAny, {
|
|
5127
|
-
type: "scheduled";
|
|
5128
|
-
schedule: {
|
|
5129
|
-
options: {
|
|
5130
|
-
cron: string;
|
|
5131
|
-
};
|
|
5132
|
-
type: "cron";
|
|
5133
|
-
metadata?: any;
|
|
5134
|
-
} | {
|
|
5135
|
-
options: {
|
|
5136
|
-
seconds: number;
|
|
5137
|
-
};
|
|
5138
|
-
type: "interval";
|
|
5139
|
-
metadata?: any;
|
|
5140
|
-
};
|
|
5141
|
-
}, {
|
|
5142
|
-
type: "scheduled";
|
|
5143
|
-
schedule: {
|
|
5144
|
-
options: {
|
|
5145
|
-
cron: string;
|
|
5146
|
-
};
|
|
5147
|
-
type: "cron";
|
|
5148
|
-
metadata?: any;
|
|
5149
|
-
} | {
|
|
5150
|
-
options: {
|
|
5151
|
-
seconds: number;
|
|
5152
|
-
};
|
|
5153
|
-
type: "interval";
|
|
5154
|
-
metadata?: any;
|
|
5155
|
-
};
|
|
5156
|
-
}>]>;
|
|
5157
|
-
integrations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5158
|
-
id: z.ZodString;
|
|
5159
|
-
metadata: z.ZodObject<{
|
|
5160
|
-
id: z.ZodString;
|
|
5161
|
-
name: z.ZodString;
|
|
5162
|
-
instructions: z.ZodOptional<z.ZodString>;
|
|
5163
|
-
}, "strip", z.ZodTypeAny, {
|
|
5164
|
-
name: string;
|
|
5165
|
-
id: string;
|
|
5166
|
-
instructions?: string | undefined;
|
|
5167
|
-
}, {
|
|
5168
|
-
name: string;
|
|
5169
|
-
id: string;
|
|
5170
|
-
instructions?: string | undefined;
|
|
5171
|
-
}>;
|
|
5172
|
-
authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
|
|
5173
|
-
}, "strip", z.ZodTypeAny, {
|
|
5174
|
-
id: string;
|
|
5175
|
-
metadata: {
|
|
5176
|
-
name: string;
|
|
5177
|
-
id: string;
|
|
5178
|
-
instructions?: string | undefined;
|
|
5179
|
-
};
|
|
5180
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5181
|
-
}, {
|
|
5182
|
-
id: string;
|
|
5183
|
-
metadata: {
|
|
5184
|
-
name: string;
|
|
5185
|
-
id: string;
|
|
5186
|
-
instructions?: string | undefined;
|
|
5187
|
-
};
|
|
5188
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5189
|
-
}>>;
|
|
5190
|
-
internal: z.ZodDefault<z.ZodBoolean>;
|
|
5191
|
-
queue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
5192
|
-
name: z.ZodString;
|
|
5193
|
-
maxConcurrent: z.ZodOptional<z.ZodNumber>;
|
|
5194
|
-
}, "strip", z.ZodTypeAny, {
|
|
5195
|
-
name: string;
|
|
5196
|
-
maxConcurrent?: number | undefined;
|
|
5197
|
-
}, {
|
|
5198
|
-
name: string;
|
|
5199
|
-
maxConcurrent?: number | undefined;
|
|
5200
|
-
}>, z.ZodString]>>;
|
|
5201
|
-
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
5202
|
-
enabled: z.ZodBoolean;
|
|
5203
|
-
preprocessRuns: z.ZodBoolean;
|
|
5204
|
-
}, "strip", z.ZodTypeAny, {
|
|
5205
|
-
name: string;
|
|
5206
|
-
event: {
|
|
5207
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
5208
|
-
source: string;
|
|
5209
|
-
icon: string;
|
|
5210
|
-
title: string;
|
|
5211
|
-
filter?: EventFilter | undefined;
|
|
5212
|
-
properties?: {
|
|
5213
|
-
label: string;
|
|
5214
|
-
text: string;
|
|
5215
|
-
url?: string | undefined;
|
|
5216
|
-
}[] | undefined;
|
|
5217
|
-
schema?: any;
|
|
5218
|
-
examples?: {
|
|
5219
|
-
name: string;
|
|
5220
|
-
id: string;
|
|
5221
|
-
icon?: string | undefined;
|
|
5222
|
-
payload?: any;
|
|
5223
|
-
}[] | undefined;
|
|
5224
|
-
};
|
|
5225
|
-
id: string;
|
|
5226
|
-
version: string;
|
|
5227
|
-
trigger: {
|
|
5228
|
-
type: "dynamic";
|
|
5229
|
-
id: string;
|
|
5230
|
-
} | {
|
|
5231
|
-
type: "static";
|
|
5232
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5233
|
-
rule: {
|
|
5234
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5235
|
-
source: string;
|
|
5236
|
-
payload?: EventFilter | undefined;
|
|
5237
|
-
context?: EventFilter | undefined;
|
|
5238
|
-
};
|
|
5239
|
-
properties?: {
|
|
5240
|
-
label: string;
|
|
5241
|
-
text: string;
|
|
5242
|
-
url?: string | undefined;
|
|
5243
|
-
}[] | undefined;
|
|
5244
|
-
} | {
|
|
5245
|
-
type: "scheduled";
|
|
5246
|
-
schedule: {
|
|
5247
|
-
options: {
|
|
5248
|
-
cron: string;
|
|
5249
|
-
};
|
|
5250
|
-
type: "cron";
|
|
5251
|
-
metadata?: any;
|
|
5252
|
-
} | {
|
|
5253
|
-
options: {
|
|
5254
|
-
seconds: number;
|
|
5255
|
-
};
|
|
5256
|
-
type: "interval";
|
|
5257
|
-
metadata?: any;
|
|
5258
|
-
};
|
|
5259
|
-
};
|
|
5260
|
-
integrations: Record<string, {
|
|
5261
|
-
id: string;
|
|
5262
|
-
metadata: {
|
|
5263
|
-
name: string;
|
|
5264
|
-
id: string;
|
|
5265
|
-
instructions?: string | undefined;
|
|
5266
|
-
};
|
|
5267
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5268
|
-
}>;
|
|
5269
|
-
internal: boolean;
|
|
5270
|
-
startPosition: "initial" | "latest";
|
|
5271
|
-
enabled: boolean;
|
|
5272
|
-
preprocessRuns: boolean;
|
|
5273
|
-
queue?: string | {
|
|
5274
|
-
name: string;
|
|
5275
|
-
maxConcurrent?: number | undefined;
|
|
5276
|
-
} | undefined;
|
|
5277
|
-
}, {
|
|
5278
|
-
name: string;
|
|
5279
|
-
event: {
|
|
5280
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
5281
|
-
source: string;
|
|
5282
|
-
icon: string;
|
|
5283
|
-
title: string;
|
|
5284
|
-
filter?: EventFilter | undefined;
|
|
5285
|
-
properties?: {
|
|
5286
|
-
label: string;
|
|
5287
|
-
text: string;
|
|
5288
|
-
url?: string | undefined;
|
|
5289
|
-
}[] | undefined;
|
|
5290
|
-
schema?: any;
|
|
5291
|
-
examples?: {
|
|
5292
|
-
name: string;
|
|
5293
|
-
id: string;
|
|
5294
|
-
icon?: string | undefined;
|
|
5295
|
-
payload?: any;
|
|
5296
|
-
}[] | undefined;
|
|
5297
|
-
};
|
|
5298
|
-
id: string;
|
|
5299
|
-
version: string;
|
|
5300
|
-
trigger: {
|
|
5301
|
-
type: "dynamic";
|
|
5302
|
-
id: string;
|
|
5303
|
-
} | {
|
|
5304
|
-
type: "static";
|
|
5305
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5306
|
-
rule: {
|
|
5307
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5308
|
-
source: string;
|
|
5309
|
-
payload?: EventFilter | undefined;
|
|
5310
|
-
context?: EventFilter | undefined;
|
|
5311
|
-
};
|
|
5312
|
-
properties?: {
|
|
5313
|
-
label: string;
|
|
5314
|
-
text: string;
|
|
5315
|
-
url?: string | undefined;
|
|
5316
|
-
}[] | undefined;
|
|
5317
|
-
} | {
|
|
5318
|
-
type: "scheduled";
|
|
5319
|
-
schedule: {
|
|
5320
|
-
options: {
|
|
5321
|
-
cron: string;
|
|
5322
|
-
};
|
|
5323
|
-
type: "cron";
|
|
5324
|
-
metadata?: any;
|
|
5325
|
-
} | {
|
|
5326
|
-
options: {
|
|
5327
|
-
seconds: number;
|
|
5328
|
-
};
|
|
5329
|
-
type: "interval";
|
|
5330
|
-
metadata?: any;
|
|
5331
|
-
};
|
|
5332
|
-
};
|
|
5333
|
-
integrations: Record<string, {
|
|
5334
|
-
id: string;
|
|
5335
|
-
metadata: {
|
|
5336
|
-
name: string;
|
|
5337
|
-
id: string;
|
|
5338
|
-
instructions?: string | undefined;
|
|
5339
|
-
};
|
|
5340
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5341
|
-
}>;
|
|
5342
|
-
startPosition: "initial" | "latest";
|
|
5343
|
-
enabled: boolean;
|
|
5344
|
-
preprocessRuns: boolean;
|
|
5345
|
-
internal?: boolean | undefined;
|
|
5346
|
-
queue?: string | {
|
|
5347
|
-
name: string;
|
|
5348
|
-
maxConcurrent?: number | undefined;
|
|
5349
|
-
} | undefined;
|
|
5350
|
-
}>;
|
|
5351
|
-
event: z.ZodObject<{
|
|
5352
|
-
/** The `id` of the event that was sent.
|
|
5353
|
-
*/
|
|
5354
|
-
id: z.ZodString;
|
|
5355
|
-
/** The `name` of the event that was sent. */
|
|
5356
|
-
name: z.ZodString;
|
|
5357
|
-
/** The `payload` of the event that was sent */
|
|
5358
|
-
payload: z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>;
|
|
5359
|
-
/** The `context` of the event that was sent. Is `undefined` if no context was
|
|
5360
|
-
set when sending the event. */
|
|
5361
|
-
context: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
|
|
5362
|
-
/** The `timestamp` of the event that was sent */
|
|
5363
|
-
timestamp: z.ZodDate;
|
|
5364
|
-
/** The timestamp when the event will be delivered to any matching Jobs. Is
|
|
5365
|
-
`undefined` if `deliverAt` or `deliverAfter` wasn't set when sending the
|
|
5366
|
-
event. */
|
|
5367
|
-
deliverAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
5368
|
-
/** The timestamp when the event was delivered. Is `undefined` if `deliverAt`
|
|
5369
|
-
or `deliverAfter` were set when sending the event. */
|
|
5370
|
-
deliveredAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
5371
|
-
}, "strip", z.ZodTypeAny, {
|
|
5372
|
-
name: string;
|
|
5373
|
-
payload: ((string | number | boolean | {
|
|
5374
|
-
[key: string]: DeserializedJson;
|
|
5375
|
-
} | DeserializedJson[]) & (string | number | boolean | {
|
|
5376
|
-
[key: string]: DeserializedJson;
|
|
5377
|
-
} | DeserializedJson[] | undefined)) | null;
|
|
5378
|
-
id: string;
|
|
5379
|
-
timestamp: Date;
|
|
5380
|
-
context?: DeserializedJson | undefined;
|
|
5381
|
-
deliverAt?: Date | null | undefined;
|
|
5382
|
-
deliveredAt?: Date | null | undefined;
|
|
5383
|
-
}, {
|
|
5384
|
-
name: string;
|
|
5385
|
-
payload: ((string | number | boolean | {
|
|
5386
|
-
[key: string]: DeserializedJson;
|
|
5387
|
-
} | DeserializedJson[]) & (string | number | boolean | {
|
|
5388
|
-
[key: string]: DeserializedJson;
|
|
5389
|
-
} | DeserializedJson[] | undefined)) | null;
|
|
5390
|
-
id: string;
|
|
5391
|
-
timestamp: Date;
|
|
5392
|
-
context?: DeserializedJson | undefined;
|
|
5393
|
-
deliverAt?: Date | null | undefined;
|
|
5394
|
-
deliveredAt?: Date | null | undefined;
|
|
5395
|
-
}>;
|
|
5396
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5397
|
-
label: z.ZodString;
|
|
5398
|
-
text: z.ZodString;
|
|
5399
|
-
url: z.ZodOptional<z.ZodString>;
|
|
5400
|
-
}, "strip", z.ZodTypeAny, {
|
|
5401
|
-
label: string;
|
|
5402
|
-
text: string;
|
|
5403
|
-
url?: string | undefined;
|
|
5404
|
-
}, {
|
|
5405
|
-
label: string;
|
|
5406
|
-
text: string;
|
|
5407
|
-
url?: string | undefined;
|
|
5408
|
-
}>, "many">>;
|
|
5409
|
-
}, "strip", z.ZodTypeAny, {
|
|
5410
|
-
event: {
|
|
5411
|
-
name: string;
|
|
5412
|
-
payload: ((string | number | boolean | {
|
|
5413
|
-
[key: string]: DeserializedJson;
|
|
5414
|
-
} | DeserializedJson[]) & (string | number | boolean | {
|
|
5415
|
-
[key: string]: DeserializedJson;
|
|
5416
|
-
} | DeserializedJson[] | undefined)) | null;
|
|
5417
|
-
id: string;
|
|
5418
|
-
timestamp: Date;
|
|
5419
|
-
context?: DeserializedJson | undefined;
|
|
5420
|
-
deliverAt?: Date | null | undefined;
|
|
5421
|
-
deliveredAt?: Date | null | undefined;
|
|
5422
|
-
};
|
|
5423
|
-
job: {
|
|
5424
|
-
name: string;
|
|
5425
|
-
event: {
|
|
5426
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
5427
|
-
source: string;
|
|
5428
|
-
icon: string;
|
|
5429
|
-
title: string;
|
|
5430
|
-
filter?: EventFilter | undefined;
|
|
5431
|
-
properties?: {
|
|
5432
|
-
label: string;
|
|
5433
|
-
text: string;
|
|
5434
|
-
url?: string | undefined;
|
|
5435
|
-
}[] | undefined;
|
|
5436
|
-
schema?: any;
|
|
5437
|
-
examples?: {
|
|
5438
|
-
name: string;
|
|
5439
|
-
id: string;
|
|
5440
|
-
icon?: string | undefined;
|
|
5441
|
-
payload?: any;
|
|
5442
|
-
}[] | undefined;
|
|
5443
|
-
};
|
|
5444
|
-
id: string;
|
|
5445
|
-
version: string;
|
|
5446
|
-
trigger: {
|
|
5447
|
-
type: "dynamic";
|
|
5448
|
-
id: string;
|
|
5449
|
-
} | {
|
|
5450
|
-
type: "static";
|
|
5451
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5452
|
-
rule: {
|
|
5453
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5454
|
-
source: string;
|
|
5455
|
-
payload?: EventFilter | undefined;
|
|
5456
|
-
context?: EventFilter | undefined;
|
|
5457
|
-
};
|
|
5458
|
-
properties?: {
|
|
5459
|
-
label: string;
|
|
5460
|
-
text: string;
|
|
5461
|
-
url?: string | undefined;
|
|
5462
|
-
}[] | undefined;
|
|
5463
|
-
} | {
|
|
5464
|
-
type: "scheduled";
|
|
5465
|
-
schedule: {
|
|
5466
|
-
options: {
|
|
5467
|
-
cron: string;
|
|
5468
|
-
};
|
|
5469
|
-
type: "cron";
|
|
5470
|
-
metadata?: any;
|
|
5471
|
-
} | {
|
|
5472
|
-
options: {
|
|
5473
|
-
seconds: number;
|
|
5474
|
-
};
|
|
5475
|
-
type: "interval";
|
|
5476
|
-
metadata?: any;
|
|
5477
|
-
};
|
|
5478
|
-
};
|
|
5479
|
-
integrations: Record<string, {
|
|
5480
|
-
id: string;
|
|
5481
|
-
metadata: {
|
|
5482
|
-
name: string;
|
|
5483
|
-
id: string;
|
|
5484
|
-
instructions?: string | undefined;
|
|
5485
|
-
};
|
|
5486
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5487
|
-
}>;
|
|
5488
|
-
internal: boolean;
|
|
5489
|
-
startPosition: "initial" | "latest";
|
|
5490
|
-
enabled: boolean;
|
|
5491
|
-
preprocessRuns: boolean;
|
|
5492
|
-
queue?: string | {
|
|
5493
|
-
name: string;
|
|
5494
|
-
maxConcurrent?: number | undefined;
|
|
5495
|
-
} | undefined;
|
|
5496
|
-
};
|
|
5497
|
-
client: string;
|
|
5498
|
-
properties?: {
|
|
5499
|
-
label: string;
|
|
5500
|
-
text: string;
|
|
5501
|
-
url?: string | undefined;
|
|
5502
|
-
}[] | undefined;
|
|
5503
|
-
}, {
|
|
5504
|
-
event: {
|
|
5505
|
-
name: string;
|
|
5506
|
-
payload: ((string | number | boolean | {
|
|
5507
|
-
[key: string]: DeserializedJson;
|
|
5508
|
-
} | DeserializedJson[]) & (string | number | boolean | {
|
|
5509
|
-
[key: string]: DeserializedJson;
|
|
5510
|
-
} | DeserializedJson[] | undefined)) | null;
|
|
5511
|
-
id: string;
|
|
5512
|
-
timestamp: Date;
|
|
5513
|
-
context?: DeserializedJson | undefined;
|
|
5514
|
-
deliverAt?: Date | null | undefined;
|
|
5515
|
-
deliveredAt?: Date | null | undefined;
|
|
5516
|
-
};
|
|
5517
|
-
job: {
|
|
5518
|
-
name: string;
|
|
5519
|
-
event: {
|
|
5520
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
5521
|
-
source: string;
|
|
5522
|
-
icon: string;
|
|
5523
|
-
title: string;
|
|
5524
|
-
filter?: EventFilter | undefined;
|
|
5525
|
-
properties?: {
|
|
5526
|
-
label: string;
|
|
5527
|
-
text: string;
|
|
5528
|
-
url?: string | undefined;
|
|
5529
|
-
}[] | undefined;
|
|
5530
|
-
schema?: any;
|
|
5531
|
-
examples?: {
|
|
5532
|
-
name: string;
|
|
5533
|
-
id: string;
|
|
5534
|
-
icon?: string | undefined;
|
|
5535
|
-
payload?: any;
|
|
5536
|
-
}[] | undefined;
|
|
5537
|
-
};
|
|
5538
|
-
id: string;
|
|
5539
|
-
version: string;
|
|
5540
|
-
trigger: {
|
|
5541
|
-
type: "dynamic";
|
|
5542
|
-
id: string;
|
|
5543
|
-
} | {
|
|
5544
|
-
type: "static";
|
|
5545
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5546
|
-
rule: {
|
|
5547
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5548
|
-
source: string;
|
|
5549
|
-
payload?: EventFilter | undefined;
|
|
5550
|
-
context?: EventFilter | undefined;
|
|
5551
|
-
};
|
|
5552
|
-
properties?: {
|
|
5553
|
-
label: string;
|
|
5554
|
-
text: string;
|
|
5555
|
-
url?: string | undefined;
|
|
5556
|
-
}[] | undefined;
|
|
5557
|
-
} | {
|
|
5558
|
-
type: "scheduled";
|
|
5559
|
-
schedule: {
|
|
5560
|
-
options: {
|
|
5561
|
-
cron: string;
|
|
5562
|
-
};
|
|
5563
|
-
type: "cron";
|
|
5564
|
-
metadata?: any;
|
|
5565
|
-
} | {
|
|
5566
|
-
options: {
|
|
5567
|
-
seconds: number;
|
|
5568
|
-
};
|
|
5569
|
-
type: "interval";
|
|
5570
|
-
metadata?: any;
|
|
5571
|
-
};
|
|
5572
|
-
};
|
|
5573
|
-
integrations: Record<string, {
|
|
5574
|
-
id: string;
|
|
5575
|
-
metadata: {
|
|
5576
|
-
name: string;
|
|
5577
|
-
id: string;
|
|
5578
|
-
instructions?: string | undefined;
|
|
5579
|
-
};
|
|
5580
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5581
|
-
}>;
|
|
5582
|
-
startPosition: "initial" | "latest";
|
|
5583
|
-
enabled: boolean;
|
|
5584
|
-
preprocessRuns: boolean;
|
|
5585
|
-
internal?: boolean | undefined;
|
|
5586
|
-
queue?: string | {
|
|
5587
|
-
name: string;
|
|
5588
|
-
maxConcurrent?: number | undefined;
|
|
5589
|
-
} | undefined;
|
|
5590
|
-
};
|
|
5591
|
-
client: string;
|
|
5592
|
-
properties?: {
|
|
5593
|
-
label: string;
|
|
5594
|
-
text: string;
|
|
5595
|
-
url?: string | undefined;
|
|
5596
|
-
}[] | undefined;
|
|
5597
|
-
}>;
|
|
5598
|
-
type CreateRunBody = z.infer<typeof CreateRunBodySchema>;
|
|
5599
4886
|
declare const CreateRunResponseBodySchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
5600
4887
|
ok: z.ZodLiteral<true>;
|
|
5601
4888
|
data: z.ZodObject<{
|
|
@@ -9121,4 +8408,4 @@ declare function urlWithSearchParams(url: string, params: Record<string, string
|
|
|
9121
8408
|
|
|
9122
8409
|
declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
|
|
9123
8410
|
|
|
9124
|
-
export { ApiEventLog, ApiEventLogSchema, CachedTask, CachedTaskSchema, ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInput, CompleteTaskBodyInputSchema, CompleteTaskBodyOutput, ConnectionAuth, ConnectionAuthSchema, CreateExternalConnectionBody, CreateExternalConnectionBodySchema,
|
|
8411
|
+
export { ApiEventLog, ApiEventLogSchema, CachedTask, CachedTaskSchema, ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInput, CompleteTaskBodyInputSchema, CompleteTaskBodyOutput, ConnectionAuth, ConnectionAuthSchema, CreateExternalConnectionBody, CreateExternalConnectionBodySchema, CreateRunResponseBody, CreateRunResponseBodySchema, CronMetadata, CronMetadataSchema, CronOptions, CronOptionsSchema, DeliverEventResponse, DeliverEventResponseSchema, DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayProperty, DisplayPropertySchema, DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, ErrorWithStack, ErrorWithStackSchema, EventExample, EventExampleSchema, EventFilter, EventFilterSchema, EventRule, EventRuleSchema, EventSpecificationSchema, ExampleReplacement, FailTaskBodyInput, FailTaskBodyInputSchema, FetchOperation, FetchOperationSchema, FetchRequestInit, FetchRequestInitSchema, FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, FetchRetryOptions, FetchRetryOptionsSchema, FetchRetryStrategy, FetchRetryStrategySchema, GetEvent, GetEventSchema, GetRun, GetRunOptions, GetRunOptionsWithTaskDetails, GetRunSchema, GetRunsOptions, GetRunsSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpEventSourceSchema, HttpSourceRequest, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceRequestSchema, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, InitializeCronScheduleBodySchema, InitializeTriggerBody, InitializeTriggerBodySchema, IntegrationConfig, IntegrationConfigSchema, IntegrationMetadata, IntegrationMetadataSchema, IntervalMetadata, IntervalMetadataSchema, IntervalOptions, IntervalOptionsSchema, JobMetadata, JobMetadataSchema, LogLevel, LogMessage, LogMessageSchema, Logger, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequest, NormalizedRequestSchema, NormalizedResponse, NormalizedResponseSchema, PongErrorResponseSchema, PongResponse, PongResponseSchema, PongSuccessResponseSchema, PreprocessRunBody, PreprocessRunBodySchema, PreprocessRunResponse, PreprocessRunResponseSchema, Prettify, QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT, RawEvent, RawEventSchema, RedactSchema, RedactString, RedactStringSchema, RegisterCronScheduleBody, RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, RegisterScheduleBody, RegisterScheduleBodySchema, RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, RegisterSourceEvent, RegisterSourceEventSchema, RegisterTriggerBody, RegisterTriggerBodySchema, RegisterTriggerSource, RegisterTriggerSourceSchema, RetryOptions, RetryOptionsSchema, RunJobBody, RunJobBodySchema, RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, RunJobError, RunJobErrorSchema, RunJobResponse, RunJobResponseSchema, RunJobResumeWithTask, RunJobResumeWithTaskSchema, RunJobRetryWithTask, RunJobRetryWithTaskSchema, RunJobSuccess, RunJobSuccessSchema, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, RunTaskSchema, RunTaskWithSubtasks, RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadata, ScheduleMetadataSchema, ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SendEvent, SendEventBody, SendEventBodySchema, SendEventOptions, SendEventOptionsSchema, SerializableJson, SerializableJsonSchema, ServerTask, ServerTaskSchema, SourceMetadata, SourceMetadataSchema, StaticTriggerMetadataSchema, Style, StyleName, StyleSchema, TaskSchema, TaskStatus, TaskStatusSchema, TriggerMetadata, TriggerMetadataSchema, TriggerSource, TriggerSourceSchema, UpdateTriggerSourceBody, UpdateTriggerSourceBodySchema, ValidateErrorResponseSchema, ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, replacements, urlWithSearchParams };
|