@trigger.dev/core 2.1.9 → 2.2.1

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 CHANGED
@@ -310,6 +310,7 @@ declare const ServerTaskSchema: z.ZodObject<{
310
310
  callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
311
311
  idempotencyKey: z.ZodString;
312
312
  attempts: z.ZodNumber;
313
+ forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
313
314
  }, "strip", z.ZodTypeAny, {
314
315
  name: string;
315
316
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -342,6 +343,7 @@ declare const ServerTaskSchema: z.ZodObject<{
342
343
  parentId?: string | null | undefined;
343
344
  operation?: string | null | undefined;
344
345
  callbackUrl?: string | null | undefined;
346
+ forceYield?: boolean | null | undefined;
345
347
  }, {
346
348
  name: string;
347
349
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -374,6 +376,7 @@ declare const ServerTaskSchema: z.ZodObject<{
374
376
  parentId?: string | null | undefined;
375
377
  operation?: string | null | undefined;
376
378
  callbackUrl?: string | null | undefined;
379
+ forceYield?: boolean | null | undefined;
377
380
  }>;
378
381
  type ServerTask = z.infer<typeof ServerTaskSchema>;
379
382
  declare const CachedTaskSchema: z.ZodObject<{
@@ -1019,47 +1022,59 @@ type HttpSourceRequestHeaders = z.output<typeof HttpSourceRequestHeadersSchema>;
1019
1022
  declare const PongSuccessResponseSchema: z.ZodObject<{
1020
1023
  ok: z.ZodLiteral<true>;
1021
1024
  triggerVersion: z.ZodOptional<z.ZodString>;
1025
+ triggerSdkVersion: z.ZodOptional<z.ZodString>;
1022
1026
  }, "strip", z.ZodTypeAny, {
1023
1027
  ok: true;
1024
1028
  triggerVersion?: string | undefined;
1029
+ triggerSdkVersion?: string | undefined;
1025
1030
  }, {
1026
1031
  ok: true;
1027
1032
  triggerVersion?: string | undefined;
1033
+ triggerSdkVersion?: string | undefined;
1028
1034
  }>;
1029
1035
  declare const PongErrorResponseSchema: z.ZodObject<{
1030
1036
  ok: z.ZodLiteral<false>;
1031
1037
  error: z.ZodString;
1032
1038
  triggerVersion: z.ZodOptional<z.ZodString>;
1039
+ triggerSdkVersion: z.ZodOptional<z.ZodString>;
1033
1040
  }, "strip", z.ZodTypeAny, {
1034
1041
  error: string;
1035
1042
  ok: false;
1036
1043
  triggerVersion?: string | undefined;
1044
+ triggerSdkVersion?: string | undefined;
1037
1045
  }, {
1038
1046
  error: string;
1039
1047
  ok: false;
1040
1048
  triggerVersion?: string | undefined;
1049
+ triggerSdkVersion?: string | undefined;
1041
1050
  }>;
1042
1051
  declare const PongResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1043
1052
  ok: z.ZodLiteral<true>;
1044
1053
  triggerVersion: z.ZodOptional<z.ZodString>;
1054
+ triggerSdkVersion: z.ZodOptional<z.ZodString>;
1045
1055
  }, "strip", z.ZodTypeAny, {
1046
1056
  ok: true;
1047
1057
  triggerVersion?: string | undefined;
1058
+ triggerSdkVersion?: string | undefined;
1048
1059
  }, {
1049
1060
  ok: true;
1050
1061
  triggerVersion?: string | undefined;
1062
+ triggerSdkVersion?: string | undefined;
1051
1063
  }>, z.ZodObject<{
1052
1064
  ok: z.ZodLiteral<false>;
1053
1065
  error: z.ZodString;
1054
1066
  triggerVersion: z.ZodOptional<z.ZodString>;
1067
+ triggerSdkVersion: z.ZodOptional<z.ZodString>;
1055
1068
  }, "strip", z.ZodTypeAny, {
1056
1069
  error: string;
1057
1070
  ok: false;
1058
1071
  triggerVersion?: string | undefined;
1072
+ triggerSdkVersion?: string | undefined;
1059
1073
  }, {
1060
1074
  error: string;
1061
1075
  ok: false;
1062
1076
  triggerVersion?: string | undefined;
1077
+ triggerSdkVersion?: string | undefined;
1063
1078
  }>]>;
1064
1079
  type PongResponse = z.infer<typeof PongResponseSchema>;
1065
1080
  declare const ValidateSuccessResponseSchema: z.ZodObject<{
@@ -3218,12 +3233,136 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3218
3233
  }[];
3219
3234
  }>;
3220
3235
  type IndexEndpointResponse = z.infer<typeof IndexEndpointResponseSchema>;
3236
+ declare const EndpointIndexErrorSchema: z.ZodObject<{
3237
+ message: z.ZodString;
3238
+ raw: z.ZodOptional<z.ZodAny>;
3239
+ }, "strip", z.ZodTypeAny, {
3240
+ message: string;
3241
+ raw?: any;
3242
+ }, {
3243
+ message: string;
3244
+ raw?: any;
3245
+ }>;
3246
+ type EndpointIndexError = z.infer<typeof EndpointIndexErrorSchema>;
3247
+ declare const IndexEndpointStatsSchema: z.ZodObject<{
3248
+ jobs: z.ZodNumber;
3249
+ sources: z.ZodNumber;
3250
+ dynamicTriggers: z.ZodNumber;
3251
+ dynamicSchedules: z.ZodNumber;
3252
+ disabledJobs: z.ZodDefault<z.ZodNumber>;
3253
+ }, "strip", z.ZodTypeAny, {
3254
+ jobs: number;
3255
+ sources: number;
3256
+ dynamicTriggers: number;
3257
+ dynamicSchedules: number;
3258
+ disabledJobs: number;
3259
+ }, {
3260
+ jobs: number;
3261
+ sources: number;
3262
+ dynamicTriggers: number;
3263
+ dynamicSchedules: number;
3264
+ disabledJobs?: number | undefined;
3265
+ }>;
3266
+ type IndexEndpointStats = z.infer<typeof IndexEndpointStatsSchema>;
3267
+ declare function parseEndpointIndexStats(stats: unknown): IndexEndpointStats | undefined;
3268
+ declare const GetEndpointIndexResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3269
+ status: z.ZodLiteral<"PENDING">;
3270
+ updatedAt: z.ZodDate;
3271
+ }, "strip", z.ZodTypeAny, {
3272
+ status: "PENDING";
3273
+ updatedAt: Date;
3274
+ }, {
3275
+ status: "PENDING";
3276
+ updatedAt: Date;
3277
+ }>, z.ZodObject<{
3278
+ status: z.ZodLiteral<"STARTED">;
3279
+ updatedAt: z.ZodDate;
3280
+ }, "strip", z.ZodTypeAny, {
3281
+ status: "STARTED";
3282
+ updatedAt: Date;
3283
+ }, {
3284
+ status: "STARTED";
3285
+ updatedAt: Date;
3286
+ }>, z.ZodObject<{
3287
+ status: z.ZodLiteral<"SUCCESS">;
3288
+ stats: z.ZodObject<{
3289
+ jobs: z.ZodNumber;
3290
+ sources: z.ZodNumber;
3291
+ dynamicTriggers: z.ZodNumber;
3292
+ dynamicSchedules: z.ZodNumber;
3293
+ disabledJobs: z.ZodDefault<z.ZodNumber>;
3294
+ }, "strip", z.ZodTypeAny, {
3295
+ jobs: number;
3296
+ sources: number;
3297
+ dynamicTriggers: number;
3298
+ dynamicSchedules: number;
3299
+ disabledJobs: number;
3300
+ }, {
3301
+ jobs: number;
3302
+ sources: number;
3303
+ dynamicTriggers: number;
3304
+ dynamicSchedules: number;
3305
+ disabledJobs?: number | undefined;
3306
+ }>;
3307
+ updatedAt: z.ZodDate;
3308
+ }, "strip", z.ZodTypeAny, {
3309
+ status: "SUCCESS";
3310
+ updatedAt: Date;
3311
+ stats: {
3312
+ jobs: number;
3313
+ sources: number;
3314
+ dynamicTriggers: number;
3315
+ dynamicSchedules: number;
3316
+ disabledJobs: number;
3317
+ };
3318
+ }, {
3319
+ status: "SUCCESS";
3320
+ updatedAt: Date;
3321
+ stats: {
3322
+ jobs: number;
3323
+ sources: number;
3324
+ dynamicTriggers: number;
3325
+ dynamicSchedules: number;
3326
+ disabledJobs?: number | undefined;
3327
+ };
3328
+ }>, z.ZodObject<{
3329
+ status: z.ZodLiteral<"FAILURE">;
3330
+ error: z.ZodObject<{
3331
+ message: z.ZodString;
3332
+ raw: z.ZodOptional<z.ZodAny>;
3333
+ }, "strip", z.ZodTypeAny, {
3334
+ message: string;
3335
+ raw?: any;
3336
+ }, {
3337
+ message: string;
3338
+ raw?: any;
3339
+ }>;
3340
+ updatedAt: z.ZodDate;
3341
+ }, "strip", z.ZodTypeAny, {
3342
+ error: {
3343
+ message: string;
3344
+ raw?: any;
3345
+ };
3346
+ status: "FAILURE";
3347
+ updatedAt: Date;
3348
+ }, {
3349
+ error: {
3350
+ message: string;
3351
+ raw?: any;
3352
+ };
3353
+ status: "FAILURE";
3354
+ updatedAt: Date;
3355
+ }>]>;
3356
+ type GetEndpointIndexResponse = z.infer<typeof GetEndpointIndexResponseSchema>;
3221
3357
  declare const EndpointHeadersSchema: z.ZodObject<{
3222
3358
  "trigger-version": z.ZodOptional<z.ZodString>;
3359
+ "trigger-sdk-version": z.ZodOptional<z.ZodString>;
3223
3360
  }, "strip", z.ZodTypeAny, {
3224
3361
  "trigger-version"?: string | undefined;
3362
+ "trigger-sdk-version"?: string | undefined;
3225
3363
  }, {
3226
3364
  "trigger-version"?: string | undefined;
3365
+ "trigger-sdk-version"?: string | undefined;
3227
3366
  }>;
3228
3367
  declare const RawEventSchema: z.ZodObject<{
3229
3368
  /** The `name` property must exactly match any subscriptions you want to
@@ -3454,6 +3593,23 @@ declare const RunSourceContextSchema: z.ZodObject<{
3454
3593
  metadata?: any;
3455
3594
  }>;
3456
3595
  type RunSourceContext = z.infer<typeof RunSourceContextSchema>;
3596
+ declare const AutoYieldConfigSchema: z.ZodObject<{
3597
+ startTaskThreshold: z.ZodNumber;
3598
+ beforeExecuteTaskThreshold: z.ZodNumber;
3599
+ beforeCompleteTaskThreshold: z.ZodNumber;
3600
+ afterCompleteTaskThreshold: z.ZodNumber;
3601
+ }, "strip", z.ZodTypeAny, {
3602
+ startTaskThreshold: number;
3603
+ beforeExecuteTaskThreshold: number;
3604
+ beforeCompleteTaskThreshold: number;
3605
+ afterCompleteTaskThreshold: number;
3606
+ }, {
3607
+ startTaskThreshold: number;
3608
+ beforeExecuteTaskThreshold: number;
3609
+ beforeCompleteTaskThreshold: number;
3610
+ afterCompleteTaskThreshold: number;
3611
+ }>;
3612
+ type AutoYieldConfig = z.infer<typeof AutoYieldConfigSchema>;
3457
3613
  declare const RunJobBodySchema: z.ZodObject<{
3458
3614
  event: z.ZodObject<{
3459
3615
  /** The `id` of the event that was sent.
@@ -3618,6 +3774,23 @@ declare const RunJobBodySchema: z.ZodObject<{
3618
3774
  additionalFields?: Record<string, string> | undefined;
3619
3775
  }>>>;
3620
3776
  yieldedExecutions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3777
+ runChunkExecutionLimit: z.ZodOptional<z.ZodNumber>;
3778
+ autoYieldConfig: z.ZodOptional<z.ZodObject<{
3779
+ startTaskThreshold: z.ZodNumber;
3780
+ beforeExecuteTaskThreshold: z.ZodNumber;
3781
+ beforeCompleteTaskThreshold: z.ZodNumber;
3782
+ afterCompleteTaskThreshold: z.ZodNumber;
3783
+ }, "strip", z.ZodTypeAny, {
3784
+ startTaskThreshold: number;
3785
+ beforeExecuteTaskThreshold: number;
3786
+ beforeCompleteTaskThreshold: number;
3787
+ afterCompleteTaskThreshold: number;
3788
+ }, {
3789
+ startTaskThreshold: number;
3790
+ beforeExecuteTaskThreshold: number;
3791
+ beforeCompleteTaskThreshold: number;
3792
+ afterCompleteTaskThreshold: number;
3793
+ }>>;
3621
3794
  }, "strip", z.ZodTypeAny, {
3622
3795
  event: {
3623
3796
  name: string;
@@ -3678,6 +3851,13 @@ declare const RunJobBodySchema: z.ZodObject<{
3678
3851
  additionalFields?: Record<string, string> | undefined;
3679
3852
  }> | undefined;
3680
3853
  yieldedExecutions?: string[] | undefined;
3854
+ runChunkExecutionLimit?: number | undefined;
3855
+ autoYieldConfig?: {
3856
+ startTaskThreshold: number;
3857
+ beforeExecuteTaskThreshold: number;
3858
+ beforeCompleteTaskThreshold: number;
3859
+ afterCompleteTaskThreshold: number;
3860
+ } | undefined;
3681
3861
  }, {
3682
3862
  event: {
3683
3863
  name: string;
@@ -3738,6 +3918,13 @@ declare const RunJobBodySchema: z.ZodObject<{
3738
3918
  additionalFields?: Record<string, string> | undefined;
3739
3919
  }> | undefined;
3740
3920
  yieldedExecutions?: string[] | undefined;
3921
+ runChunkExecutionLimit?: number | undefined;
3922
+ autoYieldConfig?: {
3923
+ startTaskThreshold: number;
3924
+ beforeExecuteTaskThreshold: number;
3925
+ beforeCompleteTaskThreshold: number;
3926
+ afterCompleteTaskThreshold: number;
3927
+ } | undefined;
3741
3928
  }>;
3742
3929
  type RunJobBody = z.infer<typeof RunJobBodySchema>;
3743
3930
  declare const RunJobErrorSchema: z.ZodObject<{
@@ -3957,6 +4144,91 @@ declare const RunJobYieldExecutionErrorSchema: z.ZodObject<{
3957
4144
  status: "YIELD_EXECUTION";
3958
4145
  }>;
3959
4146
  type RunJobYieldExecutionError = z.infer<typeof RunJobYieldExecutionErrorSchema>;
4147
+ declare const RunJobAutoYieldExecutionErrorSchema: z.ZodObject<{
4148
+ status: z.ZodLiteral<"AUTO_YIELD_EXECUTION">;
4149
+ location: z.ZodString;
4150
+ timeRemaining: z.ZodNumber;
4151
+ timeElapsed: z.ZodNumber;
4152
+ limit: z.ZodOptional<z.ZodNumber>;
4153
+ }, "strip", z.ZodTypeAny, {
4154
+ status: "AUTO_YIELD_EXECUTION";
4155
+ location: string;
4156
+ timeRemaining: number;
4157
+ timeElapsed: number;
4158
+ limit?: number | undefined;
4159
+ }, {
4160
+ status: "AUTO_YIELD_EXECUTION";
4161
+ location: string;
4162
+ timeRemaining: number;
4163
+ timeElapsed: number;
4164
+ limit?: number | undefined;
4165
+ }>;
4166
+ type RunJobAutoYieldExecutionError = z.infer<typeof RunJobAutoYieldExecutionErrorSchema>;
4167
+ declare const RunJobAutoYieldWithCompletedTaskExecutionErrorSchema: z.ZodObject<{
4168
+ status: z.ZodLiteral<"AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK">;
4169
+ id: z.ZodString;
4170
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
4171
+ label: z.ZodString;
4172
+ text: z.ZodString;
4173
+ url: z.ZodOptional<z.ZodString>;
4174
+ }, "strip", z.ZodTypeAny, {
4175
+ label: string;
4176
+ text: string;
4177
+ url?: string | undefined;
4178
+ }, {
4179
+ label: string;
4180
+ text: string;
4181
+ url?: string | undefined;
4182
+ }>, "many">>;
4183
+ output: z.ZodAny;
4184
+ data: z.ZodObject<{
4185
+ location: z.ZodString;
4186
+ timeRemaining: z.ZodNumber;
4187
+ timeElapsed: z.ZodNumber;
4188
+ limit: z.ZodOptional<z.ZodNumber>;
4189
+ }, "strip", z.ZodTypeAny, {
4190
+ location: string;
4191
+ timeRemaining: number;
4192
+ timeElapsed: number;
4193
+ limit?: number | undefined;
4194
+ }, {
4195
+ location: string;
4196
+ timeRemaining: number;
4197
+ timeElapsed: number;
4198
+ limit?: number | undefined;
4199
+ }>;
4200
+ }, "strip", z.ZodTypeAny, {
4201
+ status: "AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK";
4202
+ data: {
4203
+ location: string;
4204
+ timeRemaining: number;
4205
+ timeElapsed: number;
4206
+ limit?: number | undefined;
4207
+ };
4208
+ id: string;
4209
+ properties?: {
4210
+ label: string;
4211
+ text: string;
4212
+ url?: string | undefined;
4213
+ }[] | undefined;
4214
+ output?: any;
4215
+ }, {
4216
+ status: "AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK";
4217
+ data: {
4218
+ location: string;
4219
+ timeRemaining: number;
4220
+ timeElapsed: number;
4221
+ limit?: number | undefined;
4222
+ };
4223
+ id: string;
4224
+ properties?: {
4225
+ label: string;
4226
+ text: string;
4227
+ url?: string | undefined;
4228
+ }[] | undefined;
4229
+ output?: any;
4230
+ }>;
4231
+ type RunJobAutoYieldWithCompletedTaskExecutionError = z.infer<typeof RunJobAutoYieldWithCompletedTaskExecutionErrorSchema>;
3960
4232
  declare const RunJobInvalidPayloadErrorSchema: z.ZodObject<{
3961
4233
  status: z.ZodLiteral<"INVALID_PAYLOAD">;
3962
4234
  errors: z.ZodArray<z.ZodObject<{
@@ -4596,6 +4868,87 @@ declare const RunJobSuccessSchema: z.ZodObject<{
4596
4868
  }>;
4597
4869
  type RunJobSuccess = z.infer<typeof RunJobSuccessSchema>;
4598
4870
  declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
4871
+ status: z.ZodLiteral<"AUTO_YIELD_EXECUTION">;
4872
+ location: z.ZodString;
4873
+ timeRemaining: z.ZodNumber;
4874
+ timeElapsed: z.ZodNumber;
4875
+ limit: z.ZodOptional<z.ZodNumber>;
4876
+ }, "strip", z.ZodTypeAny, {
4877
+ status: "AUTO_YIELD_EXECUTION";
4878
+ location: string;
4879
+ timeRemaining: number;
4880
+ timeElapsed: number;
4881
+ limit?: number | undefined;
4882
+ }, {
4883
+ status: "AUTO_YIELD_EXECUTION";
4884
+ location: string;
4885
+ timeRemaining: number;
4886
+ timeElapsed: number;
4887
+ limit?: number | undefined;
4888
+ }>, z.ZodObject<{
4889
+ status: z.ZodLiteral<"AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK">;
4890
+ id: z.ZodString;
4891
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
4892
+ label: z.ZodString;
4893
+ text: z.ZodString;
4894
+ url: z.ZodOptional<z.ZodString>;
4895
+ }, "strip", z.ZodTypeAny, {
4896
+ label: string;
4897
+ text: string;
4898
+ url?: string | undefined;
4899
+ }, {
4900
+ label: string;
4901
+ text: string;
4902
+ url?: string | undefined;
4903
+ }>, "many">>;
4904
+ output: z.ZodAny;
4905
+ data: z.ZodObject<{
4906
+ location: z.ZodString;
4907
+ timeRemaining: z.ZodNumber;
4908
+ timeElapsed: z.ZodNumber;
4909
+ limit: z.ZodOptional<z.ZodNumber>;
4910
+ }, "strip", z.ZodTypeAny, {
4911
+ location: string;
4912
+ timeRemaining: number;
4913
+ timeElapsed: number;
4914
+ limit?: number | undefined;
4915
+ }, {
4916
+ location: string;
4917
+ timeRemaining: number;
4918
+ timeElapsed: number;
4919
+ limit?: number | undefined;
4920
+ }>;
4921
+ }, "strip", z.ZodTypeAny, {
4922
+ status: "AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK";
4923
+ data: {
4924
+ location: string;
4925
+ timeRemaining: number;
4926
+ timeElapsed: number;
4927
+ limit?: number | undefined;
4928
+ };
4929
+ id: string;
4930
+ properties?: {
4931
+ label: string;
4932
+ text: string;
4933
+ url?: string | undefined;
4934
+ }[] | undefined;
4935
+ output?: any;
4936
+ }, {
4937
+ status: "AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK";
4938
+ data: {
4939
+ location: string;
4940
+ timeRemaining: number;
4941
+ timeElapsed: number;
4942
+ limit?: number | undefined;
4943
+ };
4944
+ id: string;
4945
+ properties?: {
4946
+ label: string;
4947
+ text: string;
4948
+ url?: string | undefined;
4949
+ }[] | undefined;
4950
+ output?: any;
4951
+ }>, z.ZodObject<{
4599
4952
  status: z.ZodLiteral<"YIELD_EXECUTION">;
4600
4953
  key: z.ZodString;
4601
4954
  }, "strip", z.ZodTypeAny, {
@@ -5774,7 +6127,7 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5774
6127
  }>>;
5775
6128
  /** The icon for the Task, it will appear in the logs.
5776
6129
  * You can use the name of a company in lowercase, e.g. "github".
5777
- * Or any icon name that [Font Awesome](https://fontawesome.com/icons) supports. */
6130
+ * Or any icon name that [Tabler Icons](https://tabler-icons.io/) supports. */
5778
6131
  icon: z.ZodOptional<z.ZodString>;
5779
6132
  /** The key for the Task that you want to appear in the logs */
5780
6133
  displayKey: z.ZodOptional<z.ZodString>;
@@ -6518,19 +6871,6 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6518
6871
  noop: z.ZodDefault<z.ZodBoolean>;
6519
6872
  delayUntil: z.ZodOptional<z.ZodDate>;
6520
6873
  description: z.ZodOptional<z.ZodString>;
6521
- properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
6522
- label: z.ZodString;
6523
- text: z.ZodString;
6524
- url: z.ZodOptional<z.ZodString>;
6525
- }, "strip", z.ZodTypeAny, {
6526
- label: string;
6527
- text: string;
6528
- url?: string | undefined;
6529
- }, {
6530
- label: string;
6531
- text: string;
6532
- url?: string | undefined;
6533
- }>, "many">>;
6534
6874
  parentId: z.ZodOptional<z.ZodString>;
6535
6875
  operation: z.ZodOptional<z.ZodEnum<["fetch"]>>;
6536
6876
  idempotencyKey: z.ZodString;
@@ -6724,6 +7064,19 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6724
7064
  }, {
6725
7065
  paths: string[];
6726
7066
  }>>;
7067
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
7068
+ label: z.ZodOptional<z.ZodString>;
7069
+ text: z.ZodOptional<z.ZodString>;
7070
+ url: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7071
+ }, "strip", z.ZodTypeAny, {
7072
+ label?: string | undefined;
7073
+ text?: string | undefined;
7074
+ url?: string | undefined;
7075
+ }, {
7076
+ label?: string | undefined;
7077
+ text?: string | undefined;
7078
+ url?: string | undefined;
7079
+ }>, "many">>;
6727
7080
  params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
6728
7081
  callback: z.ZodOptional<z.ZodObject<{
6729
7082
  enabled: z.ZodBoolean;
@@ -6746,11 +7099,6 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6746
7099
  icon?: string | undefined;
6747
7100
  delayUntil?: Date | undefined;
6748
7101
  description?: string | undefined;
6749
- properties?: {
6750
- label: string;
6751
- text: string;
6752
- url?: string | undefined;
6753
- }[] | undefined;
6754
7102
  parentId?: string | undefined;
6755
7103
  operation?: "fetch" | undefined;
6756
7104
  displayKey?: string | undefined;
@@ -6800,6 +7148,11 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6800
7148
  redact?: {
6801
7149
  paths: string[];
6802
7150
  } | undefined;
7151
+ properties?: {
7152
+ label?: string | undefined;
7153
+ text?: string | undefined;
7154
+ url?: string | undefined;
7155
+ }[] | undefined;
6803
7156
  params?: DeserializedJson | undefined;
6804
7157
  callback?: {
6805
7158
  enabled: boolean;
@@ -6816,11 +7169,6 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6816
7169
  noop?: boolean | undefined;
6817
7170
  delayUntil?: Date | undefined;
6818
7171
  description?: string | undefined;
6819
- properties?: {
6820
- label: string;
6821
- text: string;
6822
- url?: string | undefined;
6823
- }[] | undefined;
6824
7172
  parentId?: string | undefined;
6825
7173
  operation?: "fetch" | undefined;
6826
7174
  displayKey?: string | undefined;
@@ -6870,6 +7218,11 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6870
7218
  redact?: {
6871
7219
  paths: string[];
6872
7220
  } | undefined;
7221
+ properties?: {
7222
+ label?: string | undefined;
7223
+ text?: string | undefined;
7224
+ url?: string | undefined;
7225
+ }[] | undefined;
6873
7226
  params?: DeserializedJson | undefined;
6874
7227
  callback?: {
6875
7228
  enabled: boolean;
@@ -6932,6 +7285,7 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
6932
7285
  callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6933
7286
  idempotencyKey: z.ZodString;
6934
7287
  attempts: z.ZodNumber;
7288
+ forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6935
7289
  }, "strip", z.ZodTypeAny, {
6936
7290
  name: string;
6937
7291
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6964,6 +7318,7 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
6964
7318
  parentId?: string | null | undefined;
6965
7319
  operation?: string | null | undefined;
6966
7320
  callbackUrl?: string | null | undefined;
7321
+ forceYield?: boolean | null | undefined;
6967
7322
  }, {
6968
7323
  name: string;
6969
7324
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6996,6 +7351,7 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
6996
7351
  parentId?: string | null | undefined;
6997
7352
  operation?: string | null | undefined;
6998
7353
  callbackUrl?: string | null | undefined;
7354
+ forceYield?: boolean | null | undefined;
6999
7355
  }>;
7000
7356
  cachedTasks: z.ZodOptional<z.ZodObject<{
7001
7357
  tasks: z.ZodArray<z.ZodObject<{
@@ -7075,6 +7431,7 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
7075
7431
  parentId?: string | null | undefined;
7076
7432
  operation?: string | null | undefined;
7077
7433
  callbackUrl?: string | null | undefined;
7434
+ forceYield?: boolean | null | undefined;
7078
7435
  };
7079
7436
  cachedTasks?: {
7080
7437
  tasks: {
@@ -7120,6 +7477,7 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
7120
7477
  parentId?: string | null | undefined;
7121
7478
  operation?: string | null | undefined;
7122
7479
  callbackUrl?: string | null | undefined;
7480
+ forceYield?: boolean | null | undefined;
7123
7481
  };
7124
7482
  cachedTasks?: {
7125
7483
  tasks: {
@@ -10017,4 +10375,4 @@ declare const PLATFORM_FEATURES: {
10017
10375
  };
10018
10376
  declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
10019
10377
 
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 };
10378
+ export { API_VERSIONS, ApiEventLog, ApiEventLogSchema, AutoYieldConfig, AutoYieldConfigSchema, 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, EndpointIndexError, EndpointIndexErrorSchema, ErrorWithStack, ErrorWithStackSchema, EventExample, EventExampleSchema, EventFilter, EventFilterSchema, EventRule, EventRuleSchema, EventSpecificationSchema, ExampleReplacement, FailTaskBodyInput, FailTaskBodyInputSchema, FetchOperation, FetchOperationSchema, FetchRequestInit, FetchRequestInitSchema, FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, FetchRetryOptions, FetchRetryOptionsSchema, FetchRetryStrategy, FetchRetryStrategySchema, GetEndpointIndexResponse, GetEndpointIndexResponseSchema, GetEvent, GetEventSchema, GetRun, GetRunOptions, GetRunOptionsWithTaskDetails, GetRunSchema, GetRunStatuses, GetRunStatusesSchema, GetRunsOptions, GetRunsSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpSourceRequest, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceRequestSchema, HttpSourceResponseMetadata, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, IndexEndpointStats, 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, RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, 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, parseEndpointIndexStats, replacements, supportsFeature, urlWithSearchParams };