@trigger.dev/core 2.0.10 → 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 +20 -643
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -2691,6 +2691,9 @@ declare const ApiEventLogSchema: z.ZodObject<{
|
|
|
2691
2691
|
/** The timestamp when the event was delivered. Is `undefined` if `deliverAt`
|
|
2692
2692
|
or `deliverAfter` were set when sending the event. */
|
|
2693
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>>;
|
|
2694
2697
|
}, "strip", z.ZodTypeAny, {
|
|
2695
2698
|
name: string;
|
|
2696
2699
|
payload: ((string | number | boolean | {
|
|
@@ -2703,6 +2706,7 @@ declare const ApiEventLogSchema: z.ZodObject<{
|
|
|
2703
2706
|
context?: DeserializedJson | undefined;
|
|
2704
2707
|
deliverAt?: Date | null | undefined;
|
|
2705
2708
|
deliveredAt?: Date | null | undefined;
|
|
2709
|
+
cancelledAt?: Date | null | undefined;
|
|
2706
2710
|
}, {
|
|
2707
2711
|
name: string;
|
|
2708
2712
|
payload: ((string | number | boolean | {
|
|
@@ -2715,6 +2719,7 @@ declare const ApiEventLogSchema: z.ZodObject<{
|
|
|
2715
2719
|
context?: DeserializedJson | undefined;
|
|
2716
2720
|
deliverAt?: Date | null | undefined;
|
|
2717
2721
|
deliveredAt?: Date | null | undefined;
|
|
2722
|
+
cancelledAt?: Date | null | undefined;
|
|
2718
2723
|
}>;
|
|
2719
2724
|
type ApiEventLog = z.infer<typeof ApiEventLogSchema>;
|
|
2720
2725
|
/** Options to control the delivery of the event */
|
|
@@ -2872,6 +2877,9 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
2872
2877
|
/** The timestamp when the event was delivered. Is `undefined` if `deliverAt`
|
|
2873
2878
|
or `deliverAfter` were set when sending the event. */
|
|
2874
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>>;
|
|
2875
2883
|
}, "strip", z.ZodTypeAny, {
|
|
2876
2884
|
name: string;
|
|
2877
2885
|
payload: ((string | number | boolean | {
|
|
@@ -2884,6 +2892,7 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
2884
2892
|
context?: DeserializedJson | undefined;
|
|
2885
2893
|
deliverAt?: Date | null | undefined;
|
|
2886
2894
|
deliveredAt?: Date | null | undefined;
|
|
2895
|
+
cancelledAt?: Date | null | undefined;
|
|
2887
2896
|
}, {
|
|
2888
2897
|
name: string;
|
|
2889
2898
|
payload: ((string | number | boolean | {
|
|
@@ -2896,6 +2905,7 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
2896
2905
|
context?: DeserializedJson | undefined;
|
|
2897
2906
|
deliverAt?: Date | null | undefined;
|
|
2898
2907
|
deliveredAt?: Date | null | undefined;
|
|
2908
|
+
cancelledAt?: Date | null | undefined;
|
|
2899
2909
|
}>;
|
|
2900
2910
|
job: z.ZodObject<{
|
|
2901
2911
|
id: z.ZodString;
|
|
@@ -3020,6 +3030,7 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
3020
3030
|
context?: DeserializedJson | undefined;
|
|
3021
3031
|
deliverAt?: Date | null | undefined;
|
|
3022
3032
|
deliveredAt?: Date | null | undefined;
|
|
3033
|
+
cancelledAt?: Date | null | undefined;
|
|
3023
3034
|
};
|
|
3024
3035
|
job: {
|
|
3025
3036
|
id: string;
|
|
@@ -3076,6 +3087,7 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
3076
3087
|
context?: DeserializedJson | undefined;
|
|
3077
3088
|
deliverAt?: Date | null | undefined;
|
|
3078
3089
|
deliveredAt?: Date | null | undefined;
|
|
3090
|
+
cancelledAt?: Date | null | undefined;
|
|
3079
3091
|
};
|
|
3080
3092
|
job: {
|
|
3081
3093
|
id: string;
|
|
@@ -4678,6 +4690,9 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4678
4690
|
/** The timestamp when the event was delivered. Is `undefined` if `deliverAt`
|
|
4679
4691
|
or `deliverAfter` were set when sending the event. */
|
|
4680
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>>;
|
|
4681
4696
|
}, "strip", z.ZodTypeAny, {
|
|
4682
4697
|
name: string;
|
|
4683
4698
|
payload: ((string | number | boolean | {
|
|
@@ -4690,6 +4705,7 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4690
4705
|
context?: DeserializedJson | undefined;
|
|
4691
4706
|
deliverAt?: Date | null | undefined;
|
|
4692
4707
|
deliveredAt?: Date | null | undefined;
|
|
4708
|
+
cancelledAt?: Date | null | undefined;
|
|
4693
4709
|
}, {
|
|
4694
4710
|
name: string;
|
|
4695
4711
|
payload: ((string | number | boolean | {
|
|
@@ -4702,6 +4718,7 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4702
4718
|
context?: DeserializedJson | undefined;
|
|
4703
4719
|
deliverAt?: Date | null | undefined;
|
|
4704
4720
|
deliveredAt?: Date | null | undefined;
|
|
4721
|
+
cancelledAt?: Date | null | undefined;
|
|
4705
4722
|
}>;
|
|
4706
4723
|
job: z.ZodObject<{
|
|
4707
4724
|
id: z.ZodString;
|
|
@@ -4772,6 +4789,7 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4772
4789
|
context?: DeserializedJson | undefined;
|
|
4773
4790
|
deliverAt?: Date | null | undefined;
|
|
4774
4791
|
deliveredAt?: Date | null | undefined;
|
|
4792
|
+
cancelledAt?: Date | null | undefined;
|
|
4775
4793
|
};
|
|
4776
4794
|
job: {
|
|
4777
4795
|
id: string;
|
|
@@ -4808,6 +4826,7 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
|
|
|
4808
4826
|
context?: DeserializedJson | undefined;
|
|
4809
4827
|
deliverAt?: Date | null | undefined;
|
|
4810
4828
|
deliveredAt?: Date | null | undefined;
|
|
4829
|
+
cancelledAt?: Date | null | undefined;
|
|
4811
4830
|
};
|
|
4812
4831
|
job: {
|
|
4813
4832
|
id: string;
|
|
@@ -4864,648 +4883,6 @@ declare const PreprocessRunResponseSchema: z.ZodObject<{
|
|
|
4864
4883
|
}[] | undefined;
|
|
4865
4884
|
}>;
|
|
4866
4885
|
type PreprocessRunResponse = z.infer<typeof PreprocessRunResponseSchema>;
|
|
4867
|
-
declare const CreateRunBodySchema: z.ZodObject<{
|
|
4868
|
-
client: z.ZodString;
|
|
4869
|
-
job: z.ZodObject<{
|
|
4870
|
-
id: z.ZodString;
|
|
4871
|
-
name: z.ZodString;
|
|
4872
|
-
version: z.ZodString;
|
|
4873
|
-
event: z.ZodObject<{
|
|
4874
|
-
name: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
4875
|
-
title: z.ZodString;
|
|
4876
|
-
source: z.ZodString;
|
|
4877
|
-
icon: z.ZodString;
|
|
4878
|
-
filter: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
4879
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4880
|
-
label: z.ZodString;
|
|
4881
|
-
text: z.ZodString;
|
|
4882
|
-
url: z.ZodOptional<z.ZodString>;
|
|
4883
|
-
}, "strip", z.ZodTypeAny, {
|
|
4884
|
-
label: string;
|
|
4885
|
-
text: string;
|
|
4886
|
-
url?: string | undefined;
|
|
4887
|
-
}, {
|
|
4888
|
-
label: string;
|
|
4889
|
-
text: string;
|
|
4890
|
-
url?: string | undefined;
|
|
4891
|
-
}>, "many">>;
|
|
4892
|
-
schema: z.ZodOptional<z.ZodAny>;
|
|
4893
|
-
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4894
|
-
id: z.ZodString;
|
|
4895
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
4896
|
-
name: z.ZodString;
|
|
4897
|
-
payload: z.ZodAny;
|
|
4898
|
-
}, "strip", z.ZodTypeAny, {
|
|
4899
|
-
name: string;
|
|
4900
|
-
id: string;
|
|
4901
|
-
icon?: string | undefined;
|
|
4902
|
-
payload?: any;
|
|
4903
|
-
}, {
|
|
4904
|
-
name: string;
|
|
4905
|
-
id: string;
|
|
4906
|
-
icon?: string | undefined;
|
|
4907
|
-
payload?: any;
|
|
4908
|
-
}>, "many">>;
|
|
4909
|
-
}, "strip", z.ZodTypeAny, {
|
|
4910
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
4911
|
-
source: string;
|
|
4912
|
-
icon: string;
|
|
4913
|
-
title: string;
|
|
4914
|
-
filter?: EventFilter | undefined;
|
|
4915
|
-
properties?: {
|
|
4916
|
-
label: string;
|
|
4917
|
-
text: string;
|
|
4918
|
-
url?: string | undefined;
|
|
4919
|
-
}[] | undefined;
|
|
4920
|
-
schema?: any;
|
|
4921
|
-
examples?: {
|
|
4922
|
-
name: string;
|
|
4923
|
-
id: string;
|
|
4924
|
-
icon?: string | undefined;
|
|
4925
|
-
payload?: any;
|
|
4926
|
-
}[] | undefined;
|
|
4927
|
-
}, {
|
|
4928
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
4929
|
-
source: string;
|
|
4930
|
-
icon: string;
|
|
4931
|
-
title: string;
|
|
4932
|
-
filter?: EventFilter | undefined;
|
|
4933
|
-
properties?: {
|
|
4934
|
-
label: string;
|
|
4935
|
-
text: string;
|
|
4936
|
-
url?: string | undefined;
|
|
4937
|
-
}[] | undefined;
|
|
4938
|
-
schema?: any;
|
|
4939
|
-
examples?: {
|
|
4940
|
-
name: string;
|
|
4941
|
-
id: string;
|
|
4942
|
-
icon?: string | undefined;
|
|
4943
|
-
payload?: any;
|
|
4944
|
-
}[] | undefined;
|
|
4945
|
-
}>;
|
|
4946
|
-
trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4947
|
-
type: z.ZodLiteral<"dynamic">;
|
|
4948
|
-
id: z.ZodString;
|
|
4949
|
-
}, "strip", z.ZodTypeAny, {
|
|
4950
|
-
type: "dynamic";
|
|
4951
|
-
id: string;
|
|
4952
|
-
}, {
|
|
4953
|
-
type: "dynamic";
|
|
4954
|
-
id: string;
|
|
4955
|
-
}>, z.ZodObject<{
|
|
4956
|
-
type: z.ZodLiteral<"static">;
|
|
4957
|
-
title: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
4958
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4959
|
-
label: z.ZodString;
|
|
4960
|
-
text: z.ZodString;
|
|
4961
|
-
url: z.ZodOptional<z.ZodString>;
|
|
4962
|
-
}, "strip", z.ZodTypeAny, {
|
|
4963
|
-
label: string;
|
|
4964
|
-
text: string;
|
|
4965
|
-
url?: string | undefined;
|
|
4966
|
-
}, {
|
|
4967
|
-
label: string;
|
|
4968
|
-
text: string;
|
|
4969
|
-
url?: string | undefined;
|
|
4970
|
-
}>, "many">>;
|
|
4971
|
-
rule: z.ZodObject<{
|
|
4972
|
-
event: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
4973
|
-
source: z.ZodString;
|
|
4974
|
-
payload: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
4975
|
-
context: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
4976
|
-
}, "strip", z.ZodTypeAny, {
|
|
4977
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
4978
|
-
source: string;
|
|
4979
|
-
payload?: EventFilter | undefined;
|
|
4980
|
-
context?: EventFilter | undefined;
|
|
4981
|
-
}, {
|
|
4982
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
4983
|
-
source: string;
|
|
4984
|
-
payload?: EventFilter | undefined;
|
|
4985
|
-
context?: EventFilter | undefined;
|
|
4986
|
-
}>;
|
|
4987
|
-
}, "strip", z.ZodTypeAny, {
|
|
4988
|
-
type: "static";
|
|
4989
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
4990
|
-
rule: {
|
|
4991
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
4992
|
-
source: string;
|
|
4993
|
-
payload?: EventFilter | undefined;
|
|
4994
|
-
context?: EventFilter | undefined;
|
|
4995
|
-
};
|
|
4996
|
-
properties?: {
|
|
4997
|
-
label: string;
|
|
4998
|
-
text: string;
|
|
4999
|
-
url?: string | undefined;
|
|
5000
|
-
}[] | undefined;
|
|
5001
|
-
}, {
|
|
5002
|
-
type: "static";
|
|
5003
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5004
|
-
rule: {
|
|
5005
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5006
|
-
source: string;
|
|
5007
|
-
payload?: EventFilter | undefined;
|
|
5008
|
-
context?: EventFilter | undefined;
|
|
5009
|
-
};
|
|
5010
|
-
properties?: {
|
|
5011
|
-
label: string;
|
|
5012
|
-
text: string;
|
|
5013
|
-
url?: string | undefined;
|
|
5014
|
-
}[] | undefined;
|
|
5015
|
-
}>, z.ZodObject<{
|
|
5016
|
-
type: z.ZodLiteral<"scheduled">;
|
|
5017
|
-
schedule: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5018
|
-
type: z.ZodLiteral<"interval">;
|
|
5019
|
-
options: z.ZodObject<{
|
|
5020
|
-
seconds: z.ZodNumber;
|
|
5021
|
-
}, "strip", z.ZodTypeAny, {
|
|
5022
|
-
seconds: number;
|
|
5023
|
-
}, {
|
|
5024
|
-
seconds: number;
|
|
5025
|
-
}>;
|
|
5026
|
-
metadata: z.ZodAny;
|
|
5027
|
-
}, "strip", z.ZodTypeAny, {
|
|
5028
|
-
options: {
|
|
5029
|
-
seconds: number;
|
|
5030
|
-
};
|
|
5031
|
-
type: "interval";
|
|
5032
|
-
metadata?: any;
|
|
5033
|
-
}, {
|
|
5034
|
-
options: {
|
|
5035
|
-
seconds: number;
|
|
5036
|
-
};
|
|
5037
|
-
type: "interval";
|
|
5038
|
-
metadata?: any;
|
|
5039
|
-
}>, z.ZodObject<{
|
|
5040
|
-
type: z.ZodLiteral<"cron">;
|
|
5041
|
-
options: z.ZodObject<{
|
|
5042
|
-
cron: z.ZodString;
|
|
5043
|
-
}, "strip", z.ZodTypeAny, {
|
|
5044
|
-
cron: string;
|
|
5045
|
-
}, {
|
|
5046
|
-
cron: string;
|
|
5047
|
-
}>;
|
|
5048
|
-
metadata: z.ZodAny;
|
|
5049
|
-
}, "strip", z.ZodTypeAny, {
|
|
5050
|
-
options: {
|
|
5051
|
-
cron: string;
|
|
5052
|
-
};
|
|
5053
|
-
type: "cron";
|
|
5054
|
-
metadata?: any;
|
|
5055
|
-
}, {
|
|
5056
|
-
options: {
|
|
5057
|
-
cron: string;
|
|
5058
|
-
};
|
|
5059
|
-
type: "cron";
|
|
5060
|
-
metadata?: any;
|
|
5061
|
-
}>]>;
|
|
5062
|
-
}, "strip", z.ZodTypeAny, {
|
|
5063
|
-
type: "scheduled";
|
|
5064
|
-
schedule: {
|
|
5065
|
-
options: {
|
|
5066
|
-
cron: string;
|
|
5067
|
-
};
|
|
5068
|
-
type: "cron";
|
|
5069
|
-
metadata?: any;
|
|
5070
|
-
} | {
|
|
5071
|
-
options: {
|
|
5072
|
-
seconds: number;
|
|
5073
|
-
};
|
|
5074
|
-
type: "interval";
|
|
5075
|
-
metadata?: any;
|
|
5076
|
-
};
|
|
5077
|
-
}, {
|
|
5078
|
-
type: "scheduled";
|
|
5079
|
-
schedule: {
|
|
5080
|
-
options: {
|
|
5081
|
-
cron: string;
|
|
5082
|
-
};
|
|
5083
|
-
type: "cron";
|
|
5084
|
-
metadata?: any;
|
|
5085
|
-
} | {
|
|
5086
|
-
options: {
|
|
5087
|
-
seconds: number;
|
|
5088
|
-
};
|
|
5089
|
-
type: "interval";
|
|
5090
|
-
metadata?: any;
|
|
5091
|
-
};
|
|
5092
|
-
}>]>;
|
|
5093
|
-
integrations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5094
|
-
id: z.ZodString;
|
|
5095
|
-
metadata: z.ZodObject<{
|
|
5096
|
-
id: z.ZodString;
|
|
5097
|
-
name: z.ZodString;
|
|
5098
|
-
instructions: z.ZodOptional<z.ZodString>;
|
|
5099
|
-
}, "strip", z.ZodTypeAny, {
|
|
5100
|
-
name: string;
|
|
5101
|
-
id: string;
|
|
5102
|
-
instructions?: string | undefined;
|
|
5103
|
-
}, {
|
|
5104
|
-
name: string;
|
|
5105
|
-
id: string;
|
|
5106
|
-
instructions?: string | undefined;
|
|
5107
|
-
}>;
|
|
5108
|
-
authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
|
|
5109
|
-
}, "strip", z.ZodTypeAny, {
|
|
5110
|
-
id: string;
|
|
5111
|
-
metadata: {
|
|
5112
|
-
name: string;
|
|
5113
|
-
id: string;
|
|
5114
|
-
instructions?: string | undefined;
|
|
5115
|
-
};
|
|
5116
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5117
|
-
}, {
|
|
5118
|
-
id: string;
|
|
5119
|
-
metadata: {
|
|
5120
|
-
name: string;
|
|
5121
|
-
id: string;
|
|
5122
|
-
instructions?: string | undefined;
|
|
5123
|
-
};
|
|
5124
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5125
|
-
}>>;
|
|
5126
|
-
internal: z.ZodDefault<z.ZodBoolean>;
|
|
5127
|
-
enabled: z.ZodBoolean;
|
|
5128
|
-
startPosition: z.ZodEnum<["initial", "latest"]>;
|
|
5129
|
-
preprocessRuns: z.ZodBoolean;
|
|
5130
|
-
}, "strip", z.ZodTypeAny, {
|
|
5131
|
-
name: string;
|
|
5132
|
-
event: {
|
|
5133
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
5134
|
-
source: string;
|
|
5135
|
-
icon: string;
|
|
5136
|
-
title: string;
|
|
5137
|
-
filter?: EventFilter | undefined;
|
|
5138
|
-
properties?: {
|
|
5139
|
-
label: string;
|
|
5140
|
-
text: string;
|
|
5141
|
-
url?: string | undefined;
|
|
5142
|
-
}[] | undefined;
|
|
5143
|
-
schema?: any;
|
|
5144
|
-
examples?: {
|
|
5145
|
-
name: string;
|
|
5146
|
-
id: string;
|
|
5147
|
-
icon?: string | undefined;
|
|
5148
|
-
payload?: any;
|
|
5149
|
-
}[] | undefined;
|
|
5150
|
-
};
|
|
5151
|
-
id: string;
|
|
5152
|
-
version: string;
|
|
5153
|
-
trigger: {
|
|
5154
|
-
type: "dynamic";
|
|
5155
|
-
id: string;
|
|
5156
|
-
} | {
|
|
5157
|
-
type: "static";
|
|
5158
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5159
|
-
rule: {
|
|
5160
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5161
|
-
source: string;
|
|
5162
|
-
payload?: EventFilter | undefined;
|
|
5163
|
-
context?: EventFilter | undefined;
|
|
5164
|
-
};
|
|
5165
|
-
properties?: {
|
|
5166
|
-
label: string;
|
|
5167
|
-
text: string;
|
|
5168
|
-
url?: string | undefined;
|
|
5169
|
-
}[] | undefined;
|
|
5170
|
-
} | {
|
|
5171
|
-
type: "scheduled";
|
|
5172
|
-
schedule: {
|
|
5173
|
-
options: {
|
|
5174
|
-
cron: string;
|
|
5175
|
-
};
|
|
5176
|
-
type: "cron";
|
|
5177
|
-
metadata?: any;
|
|
5178
|
-
} | {
|
|
5179
|
-
options: {
|
|
5180
|
-
seconds: number;
|
|
5181
|
-
};
|
|
5182
|
-
type: "interval";
|
|
5183
|
-
metadata?: any;
|
|
5184
|
-
};
|
|
5185
|
-
};
|
|
5186
|
-
integrations: Record<string, {
|
|
5187
|
-
id: string;
|
|
5188
|
-
metadata: {
|
|
5189
|
-
name: string;
|
|
5190
|
-
id: string;
|
|
5191
|
-
instructions?: string | undefined;
|
|
5192
|
-
};
|
|
5193
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5194
|
-
}>;
|
|
5195
|
-
internal: boolean;
|
|
5196
|
-
enabled: boolean;
|
|
5197
|
-
startPosition: "initial" | "latest";
|
|
5198
|
-
preprocessRuns: boolean;
|
|
5199
|
-
}, {
|
|
5200
|
-
name: string;
|
|
5201
|
-
event: {
|
|
5202
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
5203
|
-
source: string;
|
|
5204
|
-
icon: string;
|
|
5205
|
-
title: string;
|
|
5206
|
-
filter?: EventFilter | undefined;
|
|
5207
|
-
properties?: {
|
|
5208
|
-
label: string;
|
|
5209
|
-
text: string;
|
|
5210
|
-
url?: string | undefined;
|
|
5211
|
-
}[] | undefined;
|
|
5212
|
-
schema?: any;
|
|
5213
|
-
examples?: {
|
|
5214
|
-
name: string;
|
|
5215
|
-
id: string;
|
|
5216
|
-
icon?: string | undefined;
|
|
5217
|
-
payload?: any;
|
|
5218
|
-
}[] | undefined;
|
|
5219
|
-
};
|
|
5220
|
-
id: string;
|
|
5221
|
-
version: string;
|
|
5222
|
-
trigger: {
|
|
5223
|
-
type: "dynamic";
|
|
5224
|
-
id: string;
|
|
5225
|
-
} | {
|
|
5226
|
-
type: "static";
|
|
5227
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5228
|
-
rule: {
|
|
5229
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5230
|
-
source: string;
|
|
5231
|
-
payload?: EventFilter | undefined;
|
|
5232
|
-
context?: EventFilter | undefined;
|
|
5233
|
-
};
|
|
5234
|
-
properties?: {
|
|
5235
|
-
label: string;
|
|
5236
|
-
text: string;
|
|
5237
|
-
url?: string | undefined;
|
|
5238
|
-
}[] | undefined;
|
|
5239
|
-
} | {
|
|
5240
|
-
type: "scheduled";
|
|
5241
|
-
schedule: {
|
|
5242
|
-
options: {
|
|
5243
|
-
cron: string;
|
|
5244
|
-
};
|
|
5245
|
-
type: "cron";
|
|
5246
|
-
metadata?: any;
|
|
5247
|
-
} | {
|
|
5248
|
-
options: {
|
|
5249
|
-
seconds: number;
|
|
5250
|
-
};
|
|
5251
|
-
type: "interval";
|
|
5252
|
-
metadata?: any;
|
|
5253
|
-
};
|
|
5254
|
-
};
|
|
5255
|
-
integrations: Record<string, {
|
|
5256
|
-
id: string;
|
|
5257
|
-
metadata: {
|
|
5258
|
-
name: string;
|
|
5259
|
-
id: string;
|
|
5260
|
-
instructions?: string | undefined;
|
|
5261
|
-
};
|
|
5262
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5263
|
-
}>;
|
|
5264
|
-
enabled: boolean;
|
|
5265
|
-
startPosition: "initial" | "latest";
|
|
5266
|
-
preprocessRuns: boolean;
|
|
5267
|
-
internal?: boolean | undefined;
|
|
5268
|
-
}>;
|
|
5269
|
-
event: z.ZodObject<{
|
|
5270
|
-
/** The `id` of the event that was sent.
|
|
5271
|
-
*/
|
|
5272
|
-
id: z.ZodString;
|
|
5273
|
-
/** The `name` of the event that was sent. */
|
|
5274
|
-
name: z.ZodString;
|
|
5275
|
-
/** The `payload` of the event that was sent */
|
|
5276
|
-
payload: z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>;
|
|
5277
|
-
/** The `context` of the event that was sent. Is `undefined` if no context was
|
|
5278
|
-
set when sending the event. */
|
|
5279
|
-
context: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
|
|
5280
|
-
/** The `timestamp` of the event that was sent */
|
|
5281
|
-
timestamp: z.ZodDate;
|
|
5282
|
-
/** The timestamp when the event will be delivered to any matching Jobs. Is
|
|
5283
|
-
`undefined` if `deliverAt` or `deliverAfter` wasn't set when sending the
|
|
5284
|
-
event. */
|
|
5285
|
-
deliverAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
5286
|
-
/** The timestamp when the event was delivered. Is `undefined` if `deliverAt`
|
|
5287
|
-
or `deliverAfter` were set when sending the event. */
|
|
5288
|
-
deliveredAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
5289
|
-
}, "strip", z.ZodTypeAny, {
|
|
5290
|
-
name: string;
|
|
5291
|
-
payload: ((string | number | boolean | {
|
|
5292
|
-
[key: string]: DeserializedJson;
|
|
5293
|
-
} | DeserializedJson[]) & (string | number | boolean | {
|
|
5294
|
-
[key: string]: DeserializedJson;
|
|
5295
|
-
} | DeserializedJson[] | undefined)) | null;
|
|
5296
|
-
id: string;
|
|
5297
|
-
timestamp: Date;
|
|
5298
|
-
context?: DeserializedJson | undefined;
|
|
5299
|
-
deliverAt?: Date | null | undefined;
|
|
5300
|
-
deliveredAt?: Date | null | undefined;
|
|
5301
|
-
}, {
|
|
5302
|
-
name: string;
|
|
5303
|
-
payload: ((string | number | boolean | {
|
|
5304
|
-
[key: string]: DeserializedJson;
|
|
5305
|
-
} | DeserializedJson[]) & (string | number | boolean | {
|
|
5306
|
-
[key: string]: DeserializedJson;
|
|
5307
|
-
} | DeserializedJson[] | undefined)) | null;
|
|
5308
|
-
id: string;
|
|
5309
|
-
timestamp: Date;
|
|
5310
|
-
context?: DeserializedJson | undefined;
|
|
5311
|
-
deliverAt?: Date | null | undefined;
|
|
5312
|
-
deliveredAt?: Date | null | undefined;
|
|
5313
|
-
}>;
|
|
5314
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5315
|
-
label: z.ZodString;
|
|
5316
|
-
text: z.ZodString;
|
|
5317
|
-
url: z.ZodOptional<z.ZodString>;
|
|
5318
|
-
}, "strip", z.ZodTypeAny, {
|
|
5319
|
-
label: string;
|
|
5320
|
-
text: string;
|
|
5321
|
-
url?: string | undefined;
|
|
5322
|
-
}, {
|
|
5323
|
-
label: string;
|
|
5324
|
-
text: string;
|
|
5325
|
-
url?: string | undefined;
|
|
5326
|
-
}>, "many">>;
|
|
5327
|
-
}, "strip", z.ZodTypeAny, {
|
|
5328
|
-
event: {
|
|
5329
|
-
name: string;
|
|
5330
|
-
payload: ((string | number | boolean | {
|
|
5331
|
-
[key: string]: DeserializedJson;
|
|
5332
|
-
} | DeserializedJson[]) & (string | number | boolean | {
|
|
5333
|
-
[key: string]: DeserializedJson;
|
|
5334
|
-
} | DeserializedJson[] | undefined)) | null;
|
|
5335
|
-
id: string;
|
|
5336
|
-
timestamp: Date;
|
|
5337
|
-
context?: DeserializedJson | undefined;
|
|
5338
|
-
deliverAt?: Date | null | undefined;
|
|
5339
|
-
deliveredAt?: Date | null | undefined;
|
|
5340
|
-
};
|
|
5341
|
-
job: {
|
|
5342
|
-
name: string;
|
|
5343
|
-
event: {
|
|
5344
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
5345
|
-
source: string;
|
|
5346
|
-
icon: string;
|
|
5347
|
-
title: string;
|
|
5348
|
-
filter?: EventFilter | undefined;
|
|
5349
|
-
properties?: {
|
|
5350
|
-
label: string;
|
|
5351
|
-
text: string;
|
|
5352
|
-
url?: string | undefined;
|
|
5353
|
-
}[] | undefined;
|
|
5354
|
-
schema?: any;
|
|
5355
|
-
examples?: {
|
|
5356
|
-
name: string;
|
|
5357
|
-
id: string;
|
|
5358
|
-
icon?: string | undefined;
|
|
5359
|
-
payload?: any;
|
|
5360
|
-
}[] | undefined;
|
|
5361
|
-
};
|
|
5362
|
-
id: string;
|
|
5363
|
-
version: string;
|
|
5364
|
-
trigger: {
|
|
5365
|
-
type: "dynamic";
|
|
5366
|
-
id: string;
|
|
5367
|
-
} | {
|
|
5368
|
-
type: "static";
|
|
5369
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5370
|
-
rule: {
|
|
5371
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5372
|
-
source: string;
|
|
5373
|
-
payload?: EventFilter | undefined;
|
|
5374
|
-
context?: EventFilter | undefined;
|
|
5375
|
-
};
|
|
5376
|
-
properties?: {
|
|
5377
|
-
label: string;
|
|
5378
|
-
text: string;
|
|
5379
|
-
url?: string | undefined;
|
|
5380
|
-
}[] | undefined;
|
|
5381
|
-
} | {
|
|
5382
|
-
type: "scheduled";
|
|
5383
|
-
schedule: {
|
|
5384
|
-
options: {
|
|
5385
|
-
cron: string;
|
|
5386
|
-
};
|
|
5387
|
-
type: "cron";
|
|
5388
|
-
metadata?: any;
|
|
5389
|
-
} | {
|
|
5390
|
-
options: {
|
|
5391
|
-
seconds: number;
|
|
5392
|
-
};
|
|
5393
|
-
type: "interval";
|
|
5394
|
-
metadata?: any;
|
|
5395
|
-
};
|
|
5396
|
-
};
|
|
5397
|
-
integrations: Record<string, {
|
|
5398
|
-
id: string;
|
|
5399
|
-
metadata: {
|
|
5400
|
-
name: string;
|
|
5401
|
-
id: string;
|
|
5402
|
-
instructions?: string | undefined;
|
|
5403
|
-
};
|
|
5404
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5405
|
-
}>;
|
|
5406
|
-
internal: boolean;
|
|
5407
|
-
enabled: boolean;
|
|
5408
|
-
startPosition: "initial" | "latest";
|
|
5409
|
-
preprocessRuns: boolean;
|
|
5410
|
-
};
|
|
5411
|
-
client: string;
|
|
5412
|
-
properties?: {
|
|
5413
|
-
label: string;
|
|
5414
|
-
text: string;
|
|
5415
|
-
url?: string | undefined;
|
|
5416
|
-
}[] | undefined;
|
|
5417
|
-
}, {
|
|
5418
|
-
event: {
|
|
5419
|
-
name: string;
|
|
5420
|
-
payload: ((string | number | boolean | {
|
|
5421
|
-
[key: string]: DeserializedJson;
|
|
5422
|
-
} | DeserializedJson[]) & (string | number | boolean | {
|
|
5423
|
-
[key: string]: DeserializedJson;
|
|
5424
|
-
} | DeserializedJson[] | undefined)) | null;
|
|
5425
|
-
id: string;
|
|
5426
|
-
timestamp: Date;
|
|
5427
|
-
context?: DeserializedJson | undefined;
|
|
5428
|
-
deliverAt?: Date | null | undefined;
|
|
5429
|
-
deliveredAt?: Date | null | undefined;
|
|
5430
|
-
};
|
|
5431
|
-
job: {
|
|
5432
|
-
name: string;
|
|
5433
|
-
event: {
|
|
5434
|
-
name: (string | string[]) & (string | string[] | undefined);
|
|
5435
|
-
source: string;
|
|
5436
|
-
icon: string;
|
|
5437
|
-
title: string;
|
|
5438
|
-
filter?: EventFilter | undefined;
|
|
5439
|
-
properties?: {
|
|
5440
|
-
label: string;
|
|
5441
|
-
text: string;
|
|
5442
|
-
url?: string | undefined;
|
|
5443
|
-
}[] | undefined;
|
|
5444
|
-
schema?: any;
|
|
5445
|
-
examples?: {
|
|
5446
|
-
name: string;
|
|
5447
|
-
id: string;
|
|
5448
|
-
icon?: string | undefined;
|
|
5449
|
-
payload?: any;
|
|
5450
|
-
}[] | undefined;
|
|
5451
|
-
};
|
|
5452
|
-
id: string;
|
|
5453
|
-
version: string;
|
|
5454
|
-
trigger: {
|
|
5455
|
-
type: "dynamic";
|
|
5456
|
-
id: string;
|
|
5457
|
-
} | {
|
|
5458
|
-
type: "static";
|
|
5459
|
-
title: (string | string[]) & (string | string[] | undefined);
|
|
5460
|
-
rule: {
|
|
5461
|
-
event: (string | string[]) & (string | string[] | undefined);
|
|
5462
|
-
source: string;
|
|
5463
|
-
payload?: EventFilter | undefined;
|
|
5464
|
-
context?: EventFilter | undefined;
|
|
5465
|
-
};
|
|
5466
|
-
properties?: {
|
|
5467
|
-
label: string;
|
|
5468
|
-
text: string;
|
|
5469
|
-
url?: string | undefined;
|
|
5470
|
-
}[] | undefined;
|
|
5471
|
-
} | {
|
|
5472
|
-
type: "scheduled";
|
|
5473
|
-
schedule: {
|
|
5474
|
-
options: {
|
|
5475
|
-
cron: string;
|
|
5476
|
-
};
|
|
5477
|
-
type: "cron";
|
|
5478
|
-
metadata?: any;
|
|
5479
|
-
} | {
|
|
5480
|
-
options: {
|
|
5481
|
-
seconds: number;
|
|
5482
|
-
};
|
|
5483
|
-
type: "interval";
|
|
5484
|
-
metadata?: any;
|
|
5485
|
-
};
|
|
5486
|
-
};
|
|
5487
|
-
integrations: Record<string, {
|
|
5488
|
-
id: string;
|
|
5489
|
-
metadata: {
|
|
5490
|
-
name: string;
|
|
5491
|
-
id: string;
|
|
5492
|
-
instructions?: string | undefined;
|
|
5493
|
-
};
|
|
5494
|
-
authSource: "HOSTED" | "LOCAL";
|
|
5495
|
-
}>;
|
|
5496
|
-
enabled: boolean;
|
|
5497
|
-
startPosition: "initial" | "latest";
|
|
5498
|
-
preprocessRuns: boolean;
|
|
5499
|
-
internal?: boolean | undefined;
|
|
5500
|
-
};
|
|
5501
|
-
client: string;
|
|
5502
|
-
properties?: {
|
|
5503
|
-
label: string;
|
|
5504
|
-
text: string;
|
|
5505
|
-
url?: string | undefined;
|
|
5506
|
-
}[] | undefined;
|
|
5507
|
-
}>;
|
|
5508
|
-
type CreateRunBody = z.infer<typeof CreateRunBodySchema>;
|
|
5509
4886
|
declare const CreateRunResponseBodySchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
5510
4887
|
ok: z.ZodLiteral<true>;
|
|
5511
4888
|
data: z.ZodObject<{
|
|
@@ -9031,4 +8408,4 @@ declare function urlWithSearchParams(url: string, params: Record<string, string
|
|
|
9031
8408
|
|
|
9032
8409
|
declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
|
|
9033
8410
|
|
|
9034
|
-
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 };
|