@trigger.dev/core 2.1.7 → 2.1.8
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/dist/index.d.ts +440 -1
- package/dist/index.js +125 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -194,6 +194,7 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
194
194
|
variant?: string | undefined;
|
|
195
195
|
}>>>;
|
|
196
196
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
197
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
197
198
|
}, "strip", z.ZodTypeAny, {
|
|
198
199
|
name: string;
|
|
199
200
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -223,6 +224,7 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
223
224
|
variant?: string | undefined;
|
|
224
225
|
} | null | undefined;
|
|
225
226
|
operation?: string | null | undefined;
|
|
227
|
+
callbackUrl?: string | null | undefined;
|
|
226
228
|
}, {
|
|
227
229
|
name: string;
|
|
228
230
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -252,6 +254,7 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
252
254
|
variant?: string | undefined;
|
|
253
255
|
} | null | undefined;
|
|
254
256
|
operation?: string | null | undefined;
|
|
257
|
+
callbackUrl?: string | null | undefined;
|
|
255
258
|
}>;
|
|
256
259
|
declare const ServerTaskSchema: z.ZodObject<{
|
|
257
260
|
error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -304,6 +307,7 @@ declare const ServerTaskSchema: z.ZodObject<{
|
|
|
304
307
|
output: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
|
|
305
308
|
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
306
309
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
310
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
307
311
|
idempotencyKey: z.ZodString;
|
|
308
312
|
attempts: z.ZodNumber;
|
|
309
313
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -337,6 +341,7 @@ declare const ServerTaskSchema: z.ZodObject<{
|
|
|
337
341
|
output?: DeserializedJson | undefined;
|
|
338
342
|
parentId?: string | null | undefined;
|
|
339
343
|
operation?: string | null | undefined;
|
|
344
|
+
callbackUrl?: string | null | undefined;
|
|
340
345
|
}, {
|
|
341
346
|
name: string;
|
|
342
347
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -368,6 +373,7 @@ declare const ServerTaskSchema: z.ZodObject<{
|
|
|
368
373
|
output?: DeserializedJson | undefined;
|
|
369
374
|
parentId?: string | null | undefined;
|
|
370
375
|
operation?: string | null | undefined;
|
|
376
|
+
callbackUrl?: string | null | undefined;
|
|
371
377
|
}>;
|
|
372
378
|
type ServerTask = z.infer<typeof ServerTaskSchema>;
|
|
373
379
|
declare const CachedTaskSchema: z.ZodObject<{
|
|
@@ -1012,76 +1018,100 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
|
|
|
1012
1018
|
type HttpSourceRequestHeaders = z.output<typeof HttpSourceRequestHeadersSchema>;
|
|
1013
1019
|
declare const PongSuccessResponseSchema: z.ZodObject<{
|
|
1014
1020
|
ok: z.ZodLiteral<true>;
|
|
1021
|
+
triggerVersion: z.ZodOptional<z.ZodString>;
|
|
1015
1022
|
}, "strip", z.ZodTypeAny, {
|
|
1016
1023
|
ok: true;
|
|
1024
|
+
triggerVersion?: string | undefined;
|
|
1017
1025
|
}, {
|
|
1018
1026
|
ok: true;
|
|
1027
|
+
triggerVersion?: string | undefined;
|
|
1019
1028
|
}>;
|
|
1020
1029
|
declare const PongErrorResponseSchema: z.ZodObject<{
|
|
1021
1030
|
ok: z.ZodLiteral<false>;
|
|
1022
1031
|
error: z.ZodString;
|
|
1032
|
+
triggerVersion: z.ZodOptional<z.ZodString>;
|
|
1023
1033
|
}, "strip", z.ZodTypeAny, {
|
|
1024
1034
|
error: string;
|
|
1025
1035
|
ok: false;
|
|
1036
|
+
triggerVersion?: string | undefined;
|
|
1026
1037
|
}, {
|
|
1027
1038
|
error: string;
|
|
1028
1039
|
ok: false;
|
|
1040
|
+
triggerVersion?: string | undefined;
|
|
1029
1041
|
}>;
|
|
1030
1042
|
declare const PongResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
1031
1043
|
ok: z.ZodLiteral<true>;
|
|
1044
|
+
triggerVersion: z.ZodOptional<z.ZodString>;
|
|
1032
1045
|
}, "strip", z.ZodTypeAny, {
|
|
1033
1046
|
ok: true;
|
|
1047
|
+
triggerVersion?: string | undefined;
|
|
1034
1048
|
}, {
|
|
1035
1049
|
ok: true;
|
|
1050
|
+
triggerVersion?: string | undefined;
|
|
1036
1051
|
}>, z.ZodObject<{
|
|
1037
1052
|
ok: z.ZodLiteral<false>;
|
|
1038
1053
|
error: z.ZodString;
|
|
1054
|
+
triggerVersion: z.ZodOptional<z.ZodString>;
|
|
1039
1055
|
}, "strip", z.ZodTypeAny, {
|
|
1040
1056
|
error: string;
|
|
1041
1057
|
ok: false;
|
|
1058
|
+
triggerVersion?: string | undefined;
|
|
1042
1059
|
}, {
|
|
1043
1060
|
error: string;
|
|
1044
1061
|
ok: false;
|
|
1062
|
+
triggerVersion?: string | undefined;
|
|
1045
1063
|
}>]>;
|
|
1046
1064
|
type PongResponse = z.infer<typeof PongResponseSchema>;
|
|
1047
1065
|
declare const ValidateSuccessResponseSchema: z.ZodObject<{
|
|
1048
1066
|
ok: z.ZodLiteral<true>;
|
|
1049
1067
|
endpointId: z.ZodString;
|
|
1068
|
+
triggerVersion: z.ZodOptional<z.ZodString>;
|
|
1050
1069
|
}, "strip", z.ZodTypeAny, {
|
|
1051
1070
|
ok: true;
|
|
1052
1071
|
endpointId: string;
|
|
1072
|
+
triggerVersion?: string | undefined;
|
|
1053
1073
|
}, {
|
|
1054
1074
|
ok: true;
|
|
1055
1075
|
endpointId: string;
|
|
1076
|
+
triggerVersion?: string | undefined;
|
|
1056
1077
|
}>;
|
|
1057
1078
|
declare const ValidateErrorResponseSchema: z.ZodObject<{
|
|
1058
1079
|
ok: z.ZodLiteral<false>;
|
|
1059
1080
|
error: z.ZodString;
|
|
1081
|
+
triggerVersion: z.ZodOptional<z.ZodString>;
|
|
1060
1082
|
}, "strip", z.ZodTypeAny, {
|
|
1061
1083
|
error: string;
|
|
1062
1084
|
ok: false;
|
|
1085
|
+
triggerVersion?: string | undefined;
|
|
1063
1086
|
}, {
|
|
1064
1087
|
error: string;
|
|
1065
1088
|
ok: false;
|
|
1089
|
+
triggerVersion?: string | undefined;
|
|
1066
1090
|
}>;
|
|
1067
1091
|
declare const ValidateResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
1068
1092
|
ok: z.ZodLiteral<true>;
|
|
1069
1093
|
endpointId: z.ZodString;
|
|
1094
|
+
triggerVersion: z.ZodOptional<z.ZodString>;
|
|
1070
1095
|
}, "strip", z.ZodTypeAny, {
|
|
1071
1096
|
ok: true;
|
|
1072
1097
|
endpointId: string;
|
|
1098
|
+
triggerVersion?: string | undefined;
|
|
1073
1099
|
}, {
|
|
1074
1100
|
ok: true;
|
|
1075
1101
|
endpointId: string;
|
|
1102
|
+
triggerVersion?: string | undefined;
|
|
1076
1103
|
}>, z.ZodObject<{
|
|
1077
1104
|
ok: z.ZodLiteral<false>;
|
|
1078
1105
|
error: z.ZodString;
|
|
1106
|
+
triggerVersion: z.ZodOptional<z.ZodString>;
|
|
1079
1107
|
}, "strip", z.ZodTypeAny, {
|
|
1080
1108
|
error: string;
|
|
1081
1109
|
ok: false;
|
|
1110
|
+
triggerVersion?: string | undefined;
|
|
1082
1111
|
}, {
|
|
1083
1112
|
error: string;
|
|
1084
1113
|
ok: false;
|
|
1114
|
+
triggerVersion?: string | undefined;
|
|
1085
1115
|
}>]>;
|
|
1086
1116
|
type ValidateResponse = z.infer<typeof ValidateResponseSchema>;
|
|
1087
1117
|
declare const QueueOptionsSchema: z.ZodObject<{
|
|
@@ -3188,6 +3218,13 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
3188
3218
|
}[];
|
|
3189
3219
|
}>;
|
|
3190
3220
|
type IndexEndpointResponse = z.infer<typeof IndexEndpointResponseSchema>;
|
|
3221
|
+
declare const EndpointHeadersSchema: z.ZodObject<{
|
|
3222
|
+
"trigger-version": z.ZodOptional<z.ZodString>;
|
|
3223
|
+
}, "strip", z.ZodTypeAny, {
|
|
3224
|
+
"trigger-version"?: string | undefined;
|
|
3225
|
+
}, {
|
|
3226
|
+
"trigger-version"?: string | undefined;
|
|
3227
|
+
}>;
|
|
3191
3228
|
declare const RawEventSchema: z.ZodObject<{
|
|
3192
3229
|
/** The `name` property must exactly match any subscriptions you want to
|
|
3193
3230
|
trigger. */
|
|
@@ -3416,6 +3453,7 @@ declare const RunSourceContextSchema: z.ZodObject<{
|
|
|
3416
3453
|
id: string;
|
|
3417
3454
|
metadata?: any;
|
|
3418
3455
|
}>;
|
|
3456
|
+
type RunSourceContext = z.infer<typeof RunSourceContextSchema>;
|
|
3419
3457
|
declare const RunJobBodySchema: z.ZodObject<{
|
|
3420
3458
|
event: z.ZodObject<{
|
|
3421
3459
|
/** The `id` of the event that was sent.
|
|
@@ -3561,6 +3599,8 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
3561
3599
|
output?: DeserializedJson | undefined;
|
|
3562
3600
|
parentId?: string | null | undefined;
|
|
3563
3601
|
}>, "many">>;
|
|
3602
|
+
cachedTaskCursor: z.ZodOptional<z.ZodString>;
|
|
3603
|
+
noopTasksSet: z.ZodOptional<z.ZodString>;
|
|
3564
3604
|
connections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3565
3605
|
type: z.ZodEnum<["oauth2", "apiKey"]>;
|
|
3566
3606
|
accessToken: z.ZodString;
|
|
@@ -3577,6 +3617,7 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
3577
3617
|
scopes?: string[] | undefined;
|
|
3578
3618
|
additionalFields?: Record<string, string> | undefined;
|
|
3579
3619
|
}>>>;
|
|
3620
|
+
yieldedExecutions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3580
3621
|
}, "strip", z.ZodTypeAny, {
|
|
3581
3622
|
event: {
|
|
3582
3623
|
name: string;
|
|
@@ -3628,12 +3669,15 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
3628
3669
|
output?: DeserializedJson | undefined;
|
|
3629
3670
|
parentId?: string | null | undefined;
|
|
3630
3671
|
}[] | undefined;
|
|
3672
|
+
cachedTaskCursor?: string | undefined;
|
|
3673
|
+
noopTasksSet?: string | undefined;
|
|
3631
3674
|
connections?: Record<string, {
|
|
3632
3675
|
type: "oauth2" | "apiKey";
|
|
3633
3676
|
accessToken: string;
|
|
3634
3677
|
scopes?: string[] | undefined;
|
|
3635
3678
|
additionalFields?: Record<string, string> | undefined;
|
|
3636
3679
|
}> | undefined;
|
|
3680
|
+
yieldedExecutions?: string[] | undefined;
|
|
3637
3681
|
}, {
|
|
3638
3682
|
event: {
|
|
3639
3683
|
name: string;
|
|
@@ -3685,12 +3729,15 @@ declare const RunJobBodySchema: z.ZodObject<{
|
|
|
3685
3729
|
output?: DeserializedJson | undefined;
|
|
3686
3730
|
parentId?: string | null | undefined;
|
|
3687
3731
|
}[] | undefined;
|
|
3732
|
+
cachedTaskCursor?: string | undefined;
|
|
3733
|
+
noopTasksSet?: string | undefined;
|
|
3688
3734
|
connections?: Record<string, {
|
|
3689
3735
|
type: "oauth2" | "apiKey";
|
|
3690
3736
|
accessToken: string;
|
|
3691
3737
|
scopes?: string[] | undefined;
|
|
3692
3738
|
additionalFields?: Record<string, string> | undefined;
|
|
3693
3739
|
}> | undefined;
|
|
3740
|
+
yieldedExecutions?: string[] | undefined;
|
|
3694
3741
|
}>;
|
|
3695
3742
|
type RunJobBody = z.infer<typeof RunJobBodySchema>;
|
|
3696
3743
|
declare const RunJobErrorSchema: z.ZodObject<{
|
|
@@ -3759,6 +3806,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
|
|
|
3759
3806
|
variant?: string | undefined;
|
|
3760
3807
|
}>>>;
|
|
3761
3808
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3809
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3762
3810
|
}, "strip", z.ZodTypeAny, {
|
|
3763
3811
|
name: string;
|
|
3764
3812
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -3788,6 +3836,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
|
|
|
3788
3836
|
variant?: string | undefined;
|
|
3789
3837
|
} | null | undefined;
|
|
3790
3838
|
operation?: string | null | undefined;
|
|
3839
|
+
callbackUrl?: string | null | undefined;
|
|
3791
3840
|
}, {
|
|
3792
3841
|
name: string;
|
|
3793
3842
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -3817,6 +3866,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
|
|
|
3817
3866
|
variant?: string | undefined;
|
|
3818
3867
|
} | null | undefined;
|
|
3819
3868
|
operation?: string | null | undefined;
|
|
3869
|
+
callbackUrl?: string | null | undefined;
|
|
3820
3870
|
}>>;
|
|
3821
3871
|
}, "strip", z.ZodTypeAny, {
|
|
3822
3872
|
error: {
|
|
@@ -3854,6 +3904,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
|
|
|
3854
3904
|
variant?: string | undefined;
|
|
3855
3905
|
} | null | undefined;
|
|
3856
3906
|
operation?: string | null | undefined;
|
|
3907
|
+
callbackUrl?: string | null | undefined;
|
|
3857
3908
|
} | undefined;
|
|
3858
3909
|
}, {
|
|
3859
3910
|
error: {
|
|
@@ -3891,9 +3942,21 @@ declare const RunJobErrorSchema: z.ZodObject<{
|
|
|
3891
3942
|
variant?: string | undefined;
|
|
3892
3943
|
} | null | undefined;
|
|
3893
3944
|
operation?: string | null | undefined;
|
|
3945
|
+
callbackUrl?: string | null | undefined;
|
|
3894
3946
|
} | undefined;
|
|
3895
3947
|
}>;
|
|
3896
3948
|
type RunJobError = z.infer<typeof RunJobErrorSchema>;
|
|
3949
|
+
declare const RunJobYieldExecutionErrorSchema: z.ZodObject<{
|
|
3950
|
+
status: z.ZodLiteral<"YIELD_EXECUTION">;
|
|
3951
|
+
key: z.ZodString;
|
|
3952
|
+
}, "strip", z.ZodTypeAny, {
|
|
3953
|
+
key: string;
|
|
3954
|
+
status: "YIELD_EXECUTION";
|
|
3955
|
+
}, {
|
|
3956
|
+
key: string;
|
|
3957
|
+
status: "YIELD_EXECUTION";
|
|
3958
|
+
}>;
|
|
3959
|
+
type RunJobYieldExecutionError = z.infer<typeof RunJobYieldExecutionErrorSchema>;
|
|
3897
3960
|
declare const RunJobInvalidPayloadErrorSchema: z.ZodObject<{
|
|
3898
3961
|
status: z.ZodLiteral<"INVALID_PAYLOAD">;
|
|
3899
3962
|
errors: z.ZodArray<z.ZodObject<{
|
|
@@ -3999,6 +4062,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
|
|
|
3999
4062
|
variant?: string | undefined;
|
|
4000
4063
|
}>>>;
|
|
4001
4064
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4065
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4002
4066
|
}, "strip", z.ZodTypeAny, {
|
|
4003
4067
|
name: string;
|
|
4004
4068
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4028,6 +4092,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
|
|
|
4028
4092
|
variant?: string | undefined;
|
|
4029
4093
|
} | null | undefined;
|
|
4030
4094
|
operation?: string | null | undefined;
|
|
4095
|
+
callbackUrl?: string | null | undefined;
|
|
4031
4096
|
}, {
|
|
4032
4097
|
name: string;
|
|
4033
4098
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4057,6 +4122,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
|
|
|
4057
4122
|
variant?: string | undefined;
|
|
4058
4123
|
} | null | undefined;
|
|
4059
4124
|
operation?: string | null | undefined;
|
|
4125
|
+
callbackUrl?: string | null | undefined;
|
|
4060
4126
|
}>;
|
|
4061
4127
|
}, "strip", z.ZodTypeAny, {
|
|
4062
4128
|
status: "RESUME_WITH_TASK";
|
|
@@ -4089,6 +4155,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
|
|
|
4089
4155
|
variant?: string | undefined;
|
|
4090
4156
|
} | null | undefined;
|
|
4091
4157
|
operation?: string | null | undefined;
|
|
4158
|
+
callbackUrl?: string | null | undefined;
|
|
4092
4159
|
};
|
|
4093
4160
|
}, {
|
|
4094
4161
|
status: "RESUME_WITH_TASK";
|
|
@@ -4121,6 +4188,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
|
|
|
4121
4188
|
variant?: string | undefined;
|
|
4122
4189
|
} | null | undefined;
|
|
4123
4190
|
operation?: string | null | undefined;
|
|
4191
|
+
callbackUrl?: string | null | undefined;
|
|
4124
4192
|
};
|
|
4125
4193
|
}>;
|
|
4126
4194
|
type RunJobResumeWithTask = z.infer<typeof RunJobResumeWithTaskSchema>;
|
|
@@ -4177,6 +4245,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
|
|
|
4177
4245
|
variant?: string | undefined;
|
|
4178
4246
|
}>>>;
|
|
4179
4247
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4248
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4180
4249
|
}, "strip", z.ZodTypeAny, {
|
|
4181
4250
|
name: string;
|
|
4182
4251
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4206,6 +4275,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
|
|
|
4206
4275
|
variant?: string | undefined;
|
|
4207
4276
|
} | null | undefined;
|
|
4208
4277
|
operation?: string | null | undefined;
|
|
4278
|
+
callbackUrl?: string | null | undefined;
|
|
4209
4279
|
}, {
|
|
4210
4280
|
name: string;
|
|
4211
4281
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4235,6 +4305,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
|
|
|
4235
4305
|
variant?: string | undefined;
|
|
4236
4306
|
} | null | undefined;
|
|
4237
4307
|
operation?: string | null | undefined;
|
|
4308
|
+
callbackUrl?: string | null | undefined;
|
|
4238
4309
|
}>;
|
|
4239
4310
|
error: z.ZodObject<{
|
|
4240
4311
|
message: z.ZodString;
|
|
@@ -4286,6 +4357,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
|
|
|
4286
4357
|
variant?: string | undefined;
|
|
4287
4358
|
} | null | undefined;
|
|
4288
4359
|
operation?: string | null | undefined;
|
|
4360
|
+
callbackUrl?: string | null | undefined;
|
|
4289
4361
|
};
|
|
4290
4362
|
retryAt: Date;
|
|
4291
4363
|
}, {
|
|
@@ -4324,6 +4396,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
|
|
|
4324
4396
|
variant?: string | undefined;
|
|
4325
4397
|
} | null | undefined;
|
|
4326
4398
|
operation?: string | null | undefined;
|
|
4399
|
+
callbackUrl?: string | null | undefined;
|
|
4327
4400
|
};
|
|
4328
4401
|
retryAt: Date;
|
|
4329
4402
|
}>;
|
|
@@ -4381,6 +4454,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
|
|
|
4381
4454
|
variant?: string | undefined;
|
|
4382
4455
|
}>>>;
|
|
4383
4456
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4457
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4384
4458
|
}, "strip", z.ZodTypeAny, {
|
|
4385
4459
|
name: string;
|
|
4386
4460
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4410,6 +4484,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
|
|
|
4410
4484
|
variant?: string | undefined;
|
|
4411
4485
|
} | null | undefined;
|
|
4412
4486
|
operation?: string | null | undefined;
|
|
4487
|
+
callbackUrl?: string | null | undefined;
|
|
4413
4488
|
}, {
|
|
4414
4489
|
name: string;
|
|
4415
4490
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4439,6 +4514,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
|
|
|
4439
4514
|
variant?: string | undefined;
|
|
4440
4515
|
} | null | undefined;
|
|
4441
4516
|
operation?: string | null | undefined;
|
|
4517
|
+
callbackUrl?: string | null | undefined;
|
|
4442
4518
|
}>;
|
|
4443
4519
|
}, "strip", z.ZodTypeAny, {
|
|
4444
4520
|
status: "CANCELED";
|
|
@@ -4471,6 +4547,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
|
|
|
4471
4547
|
variant?: string | undefined;
|
|
4472
4548
|
} | null | undefined;
|
|
4473
4549
|
operation?: string | null | undefined;
|
|
4550
|
+
callbackUrl?: string | null | undefined;
|
|
4474
4551
|
};
|
|
4475
4552
|
}, {
|
|
4476
4553
|
status: "CANCELED";
|
|
@@ -4503,6 +4580,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
|
|
|
4503
4580
|
variant?: string | undefined;
|
|
4504
4581
|
} | null | undefined;
|
|
4505
4582
|
operation?: string | null | undefined;
|
|
4583
|
+
callbackUrl?: string | null | undefined;
|
|
4506
4584
|
};
|
|
4507
4585
|
}>;
|
|
4508
4586
|
type RunJobCanceledWithTask = z.infer<typeof RunJobCanceledWithTaskSchema>;
|
|
@@ -4518,6 +4596,15 @@ declare const RunJobSuccessSchema: z.ZodObject<{
|
|
|
4518
4596
|
}>;
|
|
4519
4597
|
type RunJobSuccess = z.infer<typeof RunJobSuccessSchema>;
|
|
4520
4598
|
declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
4599
|
+
status: z.ZodLiteral<"YIELD_EXECUTION">;
|
|
4600
|
+
key: z.ZodString;
|
|
4601
|
+
}, "strip", z.ZodTypeAny, {
|
|
4602
|
+
key: string;
|
|
4603
|
+
status: "YIELD_EXECUTION";
|
|
4604
|
+
}, {
|
|
4605
|
+
key: string;
|
|
4606
|
+
status: "YIELD_EXECUTION";
|
|
4607
|
+
}>, z.ZodObject<{
|
|
4521
4608
|
status: z.ZodLiteral<"ERROR">;
|
|
4522
4609
|
error: z.ZodObject<{
|
|
4523
4610
|
message: z.ZodString;
|
|
@@ -4583,6 +4670,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4583
4670
|
variant?: string | undefined;
|
|
4584
4671
|
}>>>;
|
|
4585
4672
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4673
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4586
4674
|
}, "strip", z.ZodTypeAny, {
|
|
4587
4675
|
name: string;
|
|
4588
4676
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4612,6 +4700,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4612
4700
|
variant?: string | undefined;
|
|
4613
4701
|
} | null | undefined;
|
|
4614
4702
|
operation?: string | null | undefined;
|
|
4703
|
+
callbackUrl?: string | null | undefined;
|
|
4615
4704
|
}, {
|
|
4616
4705
|
name: string;
|
|
4617
4706
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4641,6 +4730,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4641
4730
|
variant?: string | undefined;
|
|
4642
4731
|
} | null | undefined;
|
|
4643
4732
|
operation?: string | null | undefined;
|
|
4733
|
+
callbackUrl?: string | null | undefined;
|
|
4644
4734
|
}>>;
|
|
4645
4735
|
}, "strip", z.ZodTypeAny, {
|
|
4646
4736
|
error: {
|
|
@@ -4678,6 +4768,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4678
4768
|
variant?: string | undefined;
|
|
4679
4769
|
} | null | undefined;
|
|
4680
4770
|
operation?: string | null | undefined;
|
|
4771
|
+
callbackUrl?: string | null | undefined;
|
|
4681
4772
|
} | undefined;
|
|
4682
4773
|
}, {
|
|
4683
4774
|
error: {
|
|
@@ -4715,6 +4806,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4715
4806
|
variant?: string | undefined;
|
|
4716
4807
|
} | null | undefined;
|
|
4717
4808
|
operation?: string | null | undefined;
|
|
4809
|
+
callbackUrl?: string | null | undefined;
|
|
4718
4810
|
} | undefined;
|
|
4719
4811
|
}>, z.ZodObject<{
|
|
4720
4812
|
status: z.ZodLiteral<"UNRESOLVED_AUTH_ERROR">;
|
|
@@ -4817,6 +4909,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4817
4909
|
variant?: string | undefined;
|
|
4818
4910
|
}>>>;
|
|
4819
4911
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4912
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4820
4913
|
}, "strip", z.ZodTypeAny, {
|
|
4821
4914
|
name: string;
|
|
4822
4915
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4846,6 +4939,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4846
4939
|
variant?: string | undefined;
|
|
4847
4940
|
} | null | undefined;
|
|
4848
4941
|
operation?: string | null | undefined;
|
|
4942
|
+
callbackUrl?: string | null | undefined;
|
|
4849
4943
|
}, {
|
|
4850
4944
|
name: string;
|
|
4851
4945
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -4875,6 +4969,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4875
4969
|
variant?: string | undefined;
|
|
4876
4970
|
} | null | undefined;
|
|
4877
4971
|
operation?: string | null | undefined;
|
|
4972
|
+
callbackUrl?: string | null | undefined;
|
|
4878
4973
|
}>;
|
|
4879
4974
|
}, "strip", z.ZodTypeAny, {
|
|
4880
4975
|
status: "RESUME_WITH_TASK";
|
|
@@ -4907,6 +5002,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4907
5002
|
variant?: string | undefined;
|
|
4908
5003
|
} | null | undefined;
|
|
4909
5004
|
operation?: string | null | undefined;
|
|
5005
|
+
callbackUrl?: string | null | undefined;
|
|
4910
5006
|
};
|
|
4911
5007
|
}, {
|
|
4912
5008
|
status: "RESUME_WITH_TASK";
|
|
@@ -4939,6 +5035,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4939
5035
|
variant?: string | undefined;
|
|
4940
5036
|
} | null | undefined;
|
|
4941
5037
|
operation?: string | null | undefined;
|
|
5038
|
+
callbackUrl?: string | null | undefined;
|
|
4942
5039
|
};
|
|
4943
5040
|
}>, z.ZodObject<{
|
|
4944
5041
|
status: z.ZodLiteral<"RETRY_WITH_TASK">;
|
|
@@ -4993,6 +5090,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
4993
5090
|
variant?: string | undefined;
|
|
4994
5091
|
}>>>;
|
|
4995
5092
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5093
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4996
5094
|
}, "strip", z.ZodTypeAny, {
|
|
4997
5095
|
name: string;
|
|
4998
5096
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -5022,6 +5120,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
5022
5120
|
variant?: string | undefined;
|
|
5023
5121
|
} | null | undefined;
|
|
5024
5122
|
operation?: string | null | undefined;
|
|
5123
|
+
callbackUrl?: string | null | undefined;
|
|
5025
5124
|
}, {
|
|
5026
5125
|
name: string;
|
|
5027
5126
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -5051,6 +5150,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
5051
5150
|
variant?: string | undefined;
|
|
5052
5151
|
} | null | undefined;
|
|
5053
5152
|
operation?: string | null | undefined;
|
|
5153
|
+
callbackUrl?: string | null | undefined;
|
|
5054
5154
|
}>;
|
|
5055
5155
|
error: z.ZodObject<{
|
|
5056
5156
|
message: z.ZodString;
|
|
@@ -5102,6 +5202,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
5102
5202
|
variant?: string | undefined;
|
|
5103
5203
|
} | null | undefined;
|
|
5104
5204
|
operation?: string | null | undefined;
|
|
5205
|
+
callbackUrl?: string | null | undefined;
|
|
5105
5206
|
};
|
|
5106
5207
|
retryAt: Date;
|
|
5107
5208
|
}, {
|
|
@@ -5140,6 +5241,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
5140
5241
|
variant?: string | undefined;
|
|
5141
5242
|
} | null | undefined;
|
|
5142
5243
|
operation?: string | null | undefined;
|
|
5244
|
+
callbackUrl?: string | null | undefined;
|
|
5143
5245
|
};
|
|
5144
5246
|
retryAt: Date;
|
|
5145
5247
|
}>, z.ZodObject<{
|
|
@@ -5195,6 +5297,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
5195
5297
|
variant?: string | undefined;
|
|
5196
5298
|
}>>>;
|
|
5197
5299
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5300
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5198
5301
|
}, "strip", z.ZodTypeAny, {
|
|
5199
5302
|
name: string;
|
|
5200
5303
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -5224,6 +5327,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
5224
5327
|
variant?: string | undefined;
|
|
5225
5328
|
} | null | undefined;
|
|
5226
5329
|
operation?: string | null | undefined;
|
|
5330
|
+
callbackUrl?: string | null | undefined;
|
|
5227
5331
|
}, {
|
|
5228
5332
|
name: string;
|
|
5229
5333
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
@@ -5253,6 +5357,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
5253
5357
|
variant?: string | undefined;
|
|
5254
5358
|
} | null | undefined;
|
|
5255
5359
|
operation?: string | null | undefined;
|
|
5360
|
+
callbackUrl?: string | null | undefined;
|
|
5256
5361
|
}>;
|
|
5257
5362
|
}, "strip", z.ZodTypeAny, {
|
|
5258
5363
|
status: "CANCELED";
|
|
@@ -5285,6 +5390,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
5285
5390
|
variant?: string | undefined;
|
|
5286
5391
|
} | null | undefined;
|
|
5287
5392
|
operation?: string | null | undefined;
|
|
5393
|
+
callbackUrl?: string | null | undefined;
|
|
5288
5394
|
};
|
|
5289
5395
|
}, {
|
|
5290
5396
|
status: "CANCELED";
|
|
@@ -5317,6 +5423,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
|
|
|
5317
5423
|
variant?: string | undefined;
|
|
5318
5424
|
} | null | undefined;
|
|
5319
5425
|
operation?: string | null | undefined;
|
|
5426
|
+
callbackUrl?: string | null | undefined;
|
|
5320
5427
|
};
|
|
5321
5428
|
}>, z.ZodObject<{
|
|
5322
5429
|
status: z.ZodLiteral<"SUCCESS">;
|
|
@@ -5700,6 +5807,17 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
|
|
|
5700
5807
|
style: "normal" | "minimal";
|
|
5701
5808
|
variant?: string | undefined;
|
|
5702
5809
|
}>>;
|
|
5810
|
+
/** Allows you to expose a `task.callbackUrl` to use in your tasks. Enabling this feature will cause the task to return the data sent to the callbackUrl instead of the usual async callback result. */
|
|
5811
|
+
callback: z.ZodOptional<z.ZodObject<{
|
|
5812
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5813
|
+
timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
5814
|
+
}, "strip", z.ZodTypeAny, {
|
|
5815
|
+
enabled?: boolean | undefined;
|
|
5816
|
+
timeoutInSeconds?: number | undefined;
|
|
5817
|
+
}, {
|
|
5818
|
+
enabled?: boolean | undefined;
|
|
5819
|
+
timeoutInSeconds?: number | undefined;
|
|
5820
|
+
}>>;
|
|
5703
5821
|
/** Allows you to link the Integration connection in the logs. This is handled automatically in integrations. */
|
|
5704
5822
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
5705
5823
|
/** An operation you want to perform on the Trigger.dev platform, current only "fetch" is supported. If you wish to `fetch` use [`io.backgroundFetch()`](https://trigger.dev/docs/sdk/io/backgroundfetch) instead. */
|
|
@@ -5894,6 +6012,10 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
|
|
|
5894
6012
|
style: "normal" | "minimal";
|
|
5895
6013
|
variant?: string | undefined;
|
|
5896
6014
|
} | undefined;
|
|
6015
|
+
callback?: {
|
|
6016
|
+
enabled?: boolean | undefined;
|
|
6017
|
+
timeoutInSeconds?: number | undefined;
|
|
6018
|
+
} | undefined;
|
|
5897
6019
|
connectionKey?: string | undefined;
|
|
5898
6020
|
operation?: "fetch" | undefined;
|
|
5899
6021
|
redact?: {
|
|
@@ -5957,6 +6079,10 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
|
|
|
5957
6079
|
style: "normal" | "minimal";
|
|
5958
6080
|
variant?: string | undefined;
|
|
5959
6081
|
} | undefined;
|
|
6082
|
+
callback?: {
|
|
6083
|
+
enabled?: boolean | undefined;
|
|
6084
|
+
timeoutInSeconds?: number | undefined;
|
|
6085
|
+
} | undefined;
|
|
5960
6086
|
connectionKey?: string | undefined;
|
|
5961
6087
|
operation?: "fetch" | undefined;
|
|
5962
6088
|
noop?: boolean | undefined;
|
|
@@ -6214,6 +6340,16 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
|
|
|
6214
6340
|
maxTimeoutInMs?: number | undefined;
|
|
6215
6341
|
randomize?: boolean | undefined;
|
|
6216
6342
|
}>>;
|
|
6343
|
+
callback: z.ZodOptional<z.ZodObject<{
|
|
6344
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
6345
|
+
timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
6346
|
+
}, "strip", z.ZodTypeAny, {
|
|
6347
|
+
enabled?: boolean | undefined;
|
|
6348
|
+
timeoutInSeconds?: number | undefined;
|
|
6349
|
+
}, {
|
|
6350
|
+
enabled?: boolean | undefined;
|
|
6351
|
+
timeoutInSeconds?: number | undefined;
|
|
6352
|
+
}>>;
|
|
6217
6353
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
6218
6354
|
redact: z.ZodOptional<z.ZodObject<{
|
|
6219
6355
|
paths: z.ZodArray<z.ZodString, "many">;
|
|
@@ -6285,6 +6421,10 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
|
|
|
6285
6421
|
maxTimeoutInMs?: number | undefined;
|
|
6286
6422
|
randomize?: boolean | undefined;
|
|
6287
6423
|
} | undefined;
|
|
6424
|
+
callback?: {
|
|
6425
|
+
enabled?: boolean | undefined;
|
|
6426
|
+
timeoutInSeconds?: number | undefined;
|
|
6427
|
+
} | undefined;
|
|
6288
6428
|
connectionKey?: string | undefined;
|
|
6289
6429
|
redact?: {
|
|
6290
6430
|
paths: string[];
|
|
@@ -6351,6 +6491,10 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
|
|
|
6351
6491
|
maxTimeoutInMs?: number | undefined;
|
|
6352
6492
|
randomize?: boolean | undefined;
|
|
6353
6493
|
} | undefined;
|
|
6494
|
+
callback?: {
|
|
6495
|
+
enabled?: boolean | undefined;
|
|
6496
|
+
timeoutInSeconds?: number | undefined;
|
|
6497
|
+
} | undefined;
|
|
6354
6498
|
connectionKey?: string | undefined;
|
|
6355
6499
|
redact?: {
|
|
6356
6500
|
paths: string[];
|
|
@@ -6581,6 +6725,16 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
|
|
|
6581
6725
|
paths: string[];
|
|
6582
6726
|
}>>;
|
|
6583
6727
|
params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
|
|
6728
|
+
callback: z.ZodOptional<z.ZodObject<{
|
|
6729
|
+
enabled: z.ZodBoolean;
|
|
6730
|
+
timeoutInSeconds: z.ZodDefault<z.ZodNumber>;
|
|
6731
|
+
}, "strip", z.ZodTypeAny, {
|
|
6732
|
+
enabled: boolean;
|
|
6733
|
+
timeoutInSeconds: number;
|
|
6734
|
+
}, {
|
|
6735
|
+
enabled: boolean;
|
|
6736
|
+
timeoutInSeconds?: number | undefined;
|
|
6737
|
+
}>>;
|
|
6584
6738
|
}, "strip", z.ZodTypeAny, {
|
|
6585
6739
|
noop: boolean;
|
|
6586
6740
|
idempotencyKey: string;
|
|
@@ -6647,6 +6801,10 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
|
|
|
6647
6801
|
paths: string[];
|
|
6648
6802
|
} | undefined;
|
|
6649
6803
|
params?: DeserializedJson | undefined;
|
|
6804
|
+
callback?: {
|
|
6805
|
+
enabled: boolean;
|
|
6806
|
+
timeoutInSeconds: number;
|
|
6807
|
+
} | undefined;
|
|
6650
6808
|
}, {
|
|
6651
6809
|
idempotencyKey: string;
|
|
6652
6810
|
name?: string | undefined;
|
|
@@ -6713,8 +6871,269 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
|
|
|
6713
6871
|
paths: string[];
|
|
6714
6872
|
} | undefined;
|
|
6715
6873
|
params?: DeserializedJson | undefined;
|
|
6874
|
+
callback?: {
|
|
6875
|
+
enabled: boolean;
|
|
6876
|
+
timeoutInSeconds?: number | undefined;
|
|
6877
|
+
} | undefined;
|
|
6716
6878
|
}>;
|
|
6717
6879
|
type RunTaskBodyOutput = z.infer<typeof RunTaskBodyOutputSchema>;
|
|
6880
|
+
declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
|
|
6881
|
+
task: z.ZodObject<{
|
|
6882
|
+
error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6883
|
+
name: z.ZodString;
|
|
6884
|
+
params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
|
|
6885
|
+
status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
|
|
6886
|
+
id: z.ZodString;
|
|
6887
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6888
|
+
style: z.ZodEnum<["normal", "minimal"]>;
|
|
6889
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
6890
|
+
}, "strip", z.ZodTypeAny, {
|
|
6891
|
+
style: "normal" | "minimal";
|
|
6892
|
+
variant?: string | undefined;
|
|
6893
|
+
}, {
|
|
6894
|
+
style: "normal" | "minimal";
|
|
6895
|
+
variant?: string | undefined;
|
|
6896
|
+
}>>>;
|
|
6897
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6898
|
+
noop: z.ZodBoolean;
|
|
6899
|
+
startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
6900
|
+
completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
6901
|
+
delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
6902
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6903
|
+
properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6904
|
+
label: z.ZodString;
|
|
6905
|
+
text: z.ZodString;
|
|
6906
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6907
|
+
}, "strip", z.ZodTypeAny, {
|
|
6908
|
+
label: string;
|
|
6909
|
+
text: string;
|
|
6910
|
+
url?: string | undefined;
|
|
6911
|
+
}, {
|
|
6912
|
+
label: string;
|
|
6913
|
+
text: string;
|
|
6914
|
+
url?: string | undefined;
|
|
6915
|
+
}>, "many">>>;
|
|
6916
|
+
outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6917
|
+
label: z.ZodString;
|
|
6918
|
+
text: z.ZodString;
|
|
6919
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6920
|
+
}, "strip", z.ZodTypeAny, {
|
|
6921
|
+
label: string;
|
|
6922
|
+
text: string;
|
|
6923
|
+
url?: string | undefined;
|
|
6924
|
+
}, {
|
|
6925
|
+
label: string;
|
|
6926
|
+
text: string;
|
|
6927
|
+
url?: string | undefined;
|
|
6928
|
+
}>, "many">>>;
|
|
6929
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
|
|
6930
|
+
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6931
|
+
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6932
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6933
|
+
idempotencyKey: z.ZodString;
|
|
6934
|
+
attempts: z.ZodNumber;
|
|
6935
|
+
}, "strip", z.ZodTypeAny, {
|
|
6936
|
+
name: string;
|
|
6937
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
6938
|
+
id: string;
|
|
6939
|
+
noop: boolean;
|
|
6940
|
+
idempotencyKey: string;
|
|
6941
|
+
attempts: number;
|
|
6942
|
+
error?: string | null | undefined;
|
|
6943
|
+
params?: DeserializedJson | undefined;
|
|
6944
|
+
style?: {
|
|
6945
|
+
style: "normal" | "minimal";
|
|
6946
|
+
variant?: string | undefined;
|
|
6947
|
+
} | null | undefined;
|
|
6948
|
+
icon?: string | null | undefined;
|
|
6949
|
+
startedAt?: Date | null | undefined;
|
|
6950
|
+
completedAt?: Date | null | undefined;
|
|
6951
|
+
delayUntil?: Date | null | undefined;
|
|
6952
|
+
description?: string | null | undefined;
|
|
6953
|
+
properties?: {
|
|
6954
|
+
label: string;
|
|
6955
|
+
text: string;
|
|
6956
|
+
url?: string | undefined;
|
|
6957
|
+
}[] | null | undefined;
|
|
6958
|
+
outputProperties?: {
|
|
6959
|
+
label: string;
|
|
6960
|
+
text: string;
|
|
6961
|
+
url?: string | undefined;
|
|
6962
|
+
}[] | null | undefined;
|
|
6963
|
+
output?: DeserializedJson | undefined;
|
|
6964
|
+
parentId?: string | null | undefined;
|
|
6965
|
+
operation?: string | null | undefined;
|
|
6966
|
+
callbackUrl?: string | null | undefined;
|
|
6967
|
+
}, {
|
|
6968
|
+
name: string;
|
|
6969
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
6970
|
+
id: string;
|
|
6971
|
+
noop: boolean;
|
|
6972
|
+
idempotencyKey: string;
|
|
6973
|
+
attempts: number;
|
|
6974
|
+
error?: string | null | undefined;
|
|
6975
|
+
params?: DeserializedJson | undefined;
|
|
6976
|
+
style?: {
|
|
6977
|
+
style: "normal" | "minimal";
|
|
6978
|
+
variant?: string | undefined;
|
|
6979
|
+
} | null | undefined;
|
|
6980
|
+
icon?: string | null | undefined;
|
|
6981
|
+
startedAt?: Date | null | undefined;
|
|
6982
|
+
completedAt?: Date | null | undefined;
|
|
6983
|
+
delayUntil?: Date | null | undefined;
|
|
6984
|
+
description?: string | null | undefined;
|
|
6985
|
+
properties?: {
|
|
6986
|
+
label: string;
|
|
6987
|
+
text: string;
|
|
6988
|
+
url?: string | undefined;
|
|
6989
|
+
}[] | null | undefined;
|
|
6990
|
+
outputProperties?: {
|
|
6991
|
+
label: string;
|
|
6992
|
+
text: string;
|
|
6993
|
+
url?: string | undefined;
|
|
6994
|
+
}[] | null | undefined;
|
|
6995
|
+
output?: DeserializedJson | undefined;
|
|
6996
|
+
parentId?: string | null | undefined;
|
|
6997
|
+
operation?: string | null | undefined;
|
|
6998
|
+
callbackUrl?: string | null | undefined;
|
|
6999
|
+
}>;
|
|
7000
|
+
cachedTasks: z.ZodOptional<z.ZodObject<{
|
|
7001
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
7002
|
+
id: z.ZodString;
|
|
7003
|
+
idempotencyKey: z.ZodString;
|
|
7004
|
+
status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
|
|
7005
|
+
noop: z.ZodDefault<z.ZodBoolean>;
|
|
7006
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
|
|
7007
|
+
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7008
|
+
}, "strip", z.ZodTypeAny, {
|
|
7009
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
7010
|
+
id: string;
|
|
7011
|
+
noop: boolean;
|
|
7012
|
+
idempotencyKey: string;
|
|
7013
|
+
output?: DeserializedJson | undefined;
|
|
7014
|
+
parentId?: string | null | undefined;
|
|
7015
|
+
}, {
|
|
7016
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
7017
|
+
id: string;
|
|
7018
|
+
idempotencyKey: string;
|
|
7019
|
+
noop?: boolean | undefined;
|
|
7020
|
+
output?: DeserializedJson | undefined;
|
|
7021
|
+
parentId?: string | null | undefined;
|
|
7022
|
+
}>, "many">;
|
|
7023
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7024
|
+
}, "strip", z.ZodTypeAny, {
|
|
7025
|
+
tasks: {
|
|
7026
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
7027
|
+
id: string;
|
|
7028
|
+
noop: boolean;
|
|
7029
|
+
idempotencyKey: string;
|
|
7030
|
+
output?: DeserializedJson | undefined;
|
|
7031
|
+
parentId?: string | null | undefined;
|
|
7032
|
+
}[];
|
|
7033
|
+
cursor?: string | undefined;
|
|
7034
|
+
}, {
|
|
7035
|
+
tasks: {
|
|
7036
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
7037
|
+
id: string;
|
|
7038
|
+
idempotencyKey: string;
|
|
7039
|
+
noop?: boolean | undefined;
|
|
7040
|
+
output?: DeserializedJson | undefined;
|
|
7041
|
+
parentId?: string | null | undefined;
|
|
7042
|
+
}[];
|
|
7043
|
+
cursor?: string | undefined;
|
|
7044
|
+
}>>;
|
|
7045
|
+
}, "strip", z.ZodTypeAny, {
|
|
7046
|
+
task: {
|
|
7047
|
+
name: string;
|
|
7048
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
7049
|
+
id: string;
|
|
7050
|
+
noop: boolean;
|
|
7051
|
+
idempotencyKey: string;
|
|
7052
|
+
attempts: number;
|
|
7053
|
+
error?: string | null | undefined;
|
|
7054
|
+
params?: DeserializedJson | undefined;
|
|
7055
|
+
style?: {
|
|
7056
|
+
style: "normal" | "minimal";
|
|
7057
|
+
variant?: string | undefined;
|
|
7058
|
+
} | null | undefined;
|
|
7059
|
+
icon?: string | null | undefined;
|
|
7060
|
+
startedAt?: Date | null | undefined;
|
|
7061
|
+
completedAt?: Date | null | undefined;
|
|
7062
|
+
delayUntil?: Date | null | undefined;
|
|
7063
|
+
description?: string | null | undefined;
|
|
7064
|
+
properties?: {
|
|
7065
|
+
label: string;
|
|
7066
|
+
text: string;
|
|
7067
|
+
url?: string | undefined;
|
|
7068
|
+
}[] | null | undefined;
|
|
7069
|
+
outputProperties?: {
|
|
7070
|
+
label: string;
|
|
7071
|
+
text: string;
|
|
7072
|
+
url?: string | undefined;
|
|
7073
|
+
}[] | null | undefined;
|
|
7074
|
+
output?: DeserializedJson | undefined;
|
|
7075
|
+
parentId?: string | null | undefined;
|
|
7076
|
+
operation?: string | null | undefined;
|
|
7077
|
+
callbackUrl?: string | null | undefined;
|
|
7078
|
+
};
|
|
7079
|
+
cachedTasks?: {
|
|
7080
|
+
tasks: {
|
|
7081
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
7082
|
+
id: string;
|
|
7083
|
+
noop: boolean;
|
|
7084
|
+
idempotencyKey: string;
|
|
7085
|
+
output?: DeserializedJson | undefined;
|
|
7086
|
+
parentId?: string | null | undefined;
|
|
7087
|
+
}[];
|
|
7088
|
+
cursor?: string | undefined;
|
|
7089
|
+
} | undefined;
|
|
7090
|
+
}, {
|
|
7091
|
+
task: {
|
|
7092
|
+
name: string;
|
|
7093
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
7094
|
+
id: string;
|
|
7095
|
+
noop: boolean;
|
|
7096
|
+
idempotencyKey: string;
|
|
7097
|
+
attempts: number;
|
|
7098
|
+
error?: string | null | undefined;
|
|
7099
|
+
params?: DeserializedJson | undefined;
|
|
7100
|
+
style?: {
|
|
7101
|
+
style: "normal" | "minimal";
|
|
7102
|
+
variant?: string | undefined;
|
|
7103
|
+
} | null | undefined;
|
|
7104
|
+
icon?: string | null | undefined;
|
|
7105
|
+
startedAt?: Date | null | undefined;
|
|
7106
|
+
completedAt?: Date | null | undefined;
|
|
7107
|
+
delayUntil?: Date | null | undefined;
|
|
7108
|
+
description?: string | null | undefined;
|
|
7109
|
+
properties?: {
|
|
7110
|
+
label: string;
|
|
7111
|
+
text: string;
|
|
7112
|
+
url?: string | undefined;
|
|
7113
|
+
}[] | null | undefined;
|
|
7114
|
+
outputProperties?: {
|
|
7115
|
+
label: string;
|
|
7116
|
+
text: string;
|
|
7117
|
+
url?: string | undefined;
|
|
7118
|
+
}[] | null | undefined;
|
|
7119
|
+
output?: DeserializedJson | undefined;
|
|
7120
|
+
parentId?: string | null | undefined;
|
|
7121
|
+
operation?: string | null | undefined;
|
|
7122
|
+
callbackUrl?: string | null | undefined;
|
|
7123
|
+
};
|
|
7124
|
+
cachedTasks?: {
|
|
7125
|
+
tasks: {
|
|
7126
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
7127
|
+
id: string;
|
|
7128
|
+
idempotencyKey: string;
|
|
7129
|
+
noop?: boolean | undefined;
|
|
7130
|
+
output?: DeserializedJson | undefined;
|
|
7131
|
+
parentId?: string | null | undefined;
|
|
7132
|
+
}[];
|
|
7133
|
+
cursor?: string | undefined;
|
|
7134
|
+
} | undefined;
|
|
7135
|
+
}>;
|
|
7136
|
+
type RunTaskResponseWithCachedTasksBody = z.infer<typeof RunTaskResponseWithCachedTasksBodySchema>;
|
|
6718
7137
|
declare const CompleteTaskBodyInputSchema: z.ZodObject<{
|
|
6719
7138
|
params: z.ZodAny;
|
|
6720
7139
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -9578,4 +9997,24 @@ declare function urlWithSearchParams(url: string, params: Record<string, string
|
|
|
9578
9997
|
|
|
9579
9998
|
declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
|
|
9580
9999
|
|
|
9581
|
-
|
|
10000
|
+
declare class BloomFilter {
|
|
10001
|
+
private size;
|
|
10002
|
+
private bitArray;
|
|
10003
|
+
constructor(size: number);
|
|
10004
|
+
add(item: string): void;
|
|
10005
|
+
test(item: string): boolean;
|
|
10006
|
+
serialize(): string;
|
|
10007
|
+
static deserialize(str: string, size: number): BloomFilter;
|
|
10008
|
+
static NOOP_TASK_SET_SIZE: number;
|
|
10009
|
+
}
|
|
10010
|
+
|
|
10011
|
+
declare const API_VERSIONS: {
|
|
10012
|
+
readonly LAZY_LOADED_CACHED_TASKS: "2023-09-29";
|
|
10013
|
+
};
|
|
10014
|
+
declare const PLATFORM_FEATURES: {
|
|
10015
|
+
yieldExecution: "2023-09-29";
|
|
10016
|
+
lazyLoadedCachedTasks: "2023-09-29";
|
|
10017
|
+
};
|
|
10018
|
+
declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
|
|
10019
|
+
|
|
10020
|
+
export { API_VERSIONS, ApiEventLog, ApiEventLogSchema, BloomFilter, 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, EndpointHeadersSchema, 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, GetRunStatuses, GetRunStatusesSchema, GetRunsOptions, GetRunsSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpSourceRequest, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceRequestSchema, HttpSourceResponseMetadata, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, InitialStatusUpdate, InitializeCronScheduleBodySchema, InitializeTriggerBody, InitializeTriggerBodySchema, IntegrationConfig, IntegrationConfigSchema, IntegrationMetadata, IntegrationMetadataSchema, IntervalMetadata, IntervalMetadataSchema, IntervalOptions, IntervalOptionsSchema, JobMetadata, JobMetadataSchema, JobRunStatusRecordSchema, LogLevel, LogMessage, LogMessageSchema, Logger, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequest, NormalizedRequestSchema, NormalizedResponse, NormalizedResponseSchema, OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, PongResponse, PongResponseSchema, PongSuccessResponseSchema, PreprocessRunBody, PreprocessRunBodySchema, PreprocessRunResponse, PreprocessRunResponseSchema, Prettify, QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, RawEvent, RawEventSchema, RedactSchema, RedactString, RedactStringSchema, RegisterCronScheduleBody, RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, RegisterScheduleBody, RegisterScheduleBodySchema, RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, RegisterSourceEventV1, RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, RegisterTriggerBodyV1, RegisterTriggerBodyV2, RegisterTriggerSource, RegisterTriggerSourceSchema, RegisteredOptionsDiff, RetryOptions, RetryOptionsSchema, RunJobBody, RunJobBodySchema, RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, RunJobError, RunJobErrorSchema, RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, RunJobResponse, RunJobResponseSchema, RunJobResumeWithTask, RunJobResumeWithTaskSchema, RunJobRetryWithTask, RunJobRetryWithTaskSchema, RunJobSuccess, RunJobSuccessSchema, RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, RunSourceContext, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, RunTaskWithSubtasks, RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadata, ScheduleMetadataSchema, ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SchemaError, SchemaErrorSchema, SendEvent, SendEventBody, SendEventBodySchema, SendEventOptions, SendEventOptionsSchema, SerializableJson, SerializableJsonSchema, ServerTask, ServerTaskSchema, SourceEventOption, SourceMetadataV1, SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, StatusHistory, StatusHistorySchema, StatusUpdate, StatusUpdateData, StatusUpdateSchema, StatusUpdateState, StatusUpdateStateSchema, Style, StyleName, StyleSchema, TaskSchema, TaskStatus, TaskStatusSchema, TriggerMetadata, TriggerMetadataSchema, TriggerSource, TriggerSourceSchema, UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, ValidateErrorResponseSchema, ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, addMissingVersionField, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, replacements, supportsFeature, urlWithSearchParams };
|