@trigger.dev/core 3.0.0-beta.49 → 3.0.0-beta.50

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.
Files changed (39) hide show
  1. package/dist/{catalog-U7_q4XsM.d.mts → catalog-H7yFiZ60.d.mts} +1 -1
  2. package/dist/{catalog-bSnBE19I.d.ts → catalog-h79CG5Wy.d.ts} +1 -1
  3. package/dist/{messages-I-h-zZN9.d.mts → messages-JvHJ83wv.d.mts} +172 -0
  4. package/dist/{messages-I-h-zZN9.d.ts → messages-JvHJ83wv.d.ts} +172 -0
  5. package/dist/{schemas-WHkFakb3.d.mts → schemas-C9ssfehv.d.mts} +47 -1
  6. package/dist/{schemas-WHkFakb3.d.ts → schemas-C9ssfehv.d.ts} +47 -1
  7. package/dist/v3/index.d.mts +15 -7
  8. package/dist/v3/index.d.ts +15 -7
  9. package/dist/v3/index.js +24 -3
  10. package/dist/v3/index.js.map +1 -1
  11. package/dist/v3/index.mjs +23 -4
  12. package/dist/v3/index.mjs.map +1 -1
  13. package/dist/v3/otel/index.js +1 -1
  14. package/dist/v3/otel/index.js.map +1 -1
  15. package/dist/v3/otel/index.mjs +1 -1
  16. package/dist/v3/otel/index.mjs.map +1 -1
  17. package/dist/v3/prod/index.d.mts +1 -1
  18. package/dist/v3/prod/index.d.ts +1 -1
  19. package/dist/v3/schemas/index.d.mts +100 -4
  20. package/dist/v3/schemas/index.d.ts +100 -4
  21. package/dist/v3/schemas/index.js +23 -2
  22. package/dist/v3/schemas/index.js.map +1 -1
  23. package/dist/v3/schemas/index.mjs +22 -3
  24. package/dist/v3/schemas/index.mjs.map +1 -1
  25. package/dist/v3/utils/ioSerialization.js +22 -3
  26. package/dist/v3/utils/ioSerialization.js.map +1 -1
  27. package/dist/v3/utils/ioSerialization.mjs +22 -3
  28. package/dist/v3/utils/ioSerialization.mjs.map +1 -1
  29. package/dist/v3/utils/retries.d.mts +1 -1
  30. package/dist/v3/utils/retries.d.ts +1 -1
  31. package/dist/v3/workers/index.d.mts +4 -4
  32. package/dist/v3/workers/index.d.ts +4 -4
  33. package/dist/v3/workers/index.js +22 -3
  34. package/dist/v3/workers/index.js.map +1 -1
  35. package/dist/v3/workers/index.mjs +22 -3
  36. package/dist/v3/workers/index.mjs.map +1 -1
  37. package/dist/v3/zodfetch.d.mts +1 -1
  38. package/dist/v3/zodfetch.d.ts +1 -1
  39. package/package.json +1 -1
@@ -400,7 +400,7 @@ function getEnvVar(name) {
400
400
  __name(getEnvVar, "getEnvVar");
401
401
 
402
402
  // package.json
403
- var version = "3.0.0-beta.49";
403
+ var version = "3.0.0-beta.50";
404
404
 
405
405
  // src/v3/otel/tracingSDK.ts
406
406
  var _a;
@@ -886,13 +886,18 @@ var QueueOptions = z.object({
886
886
  /** @deprecated This feature is coming soon */
887
887
  rateLimit: RateLimitOptions.optional()
888
888
  });
889
+ var ScheduleMetadata = z.object({
890
+ cron: z.string(),
891
+ timezone: z.string()
892
+ });
889
893
  z.object({
890
894
  id: z.string(),
891
895
  packageVersion: z.string(),
892
896
  queue: QueueOptions.optional(),
893
897
  retry: RetryOptions.optional(),
894
898
  machine: MachineConfig.optional(),
895
- triggerSource: z.string().optional()
899
+ triggerSource: z.string().optional(),
900
+ schedule: ScheduleMetadata.optional()
896
901
  });
897
902
  z.object({
898
903
  filePath: z.string(),
@@ -905,6 +910,7 @@ z.object({
905
910
  retry: RetryOptions.optional(),
906
911
  machine: MachineConfig.optional(),
907
912
  triggerSource: z.string().optional(),
913
+ schedule: ScheduleMetadata.optional(),
908
914
  filePath: z.string(),
909
915
  exportName: z.string()
910
916
  });
@@ -966,7 +972,8 @@ var TaskResource = z.object({
966
972
  queue: QueueOptions.optional(),
967
973
  retry: RetryOptions.optional(),
968
974
  machine: MachineConfig.optional(),
969
- triggerSource: z.string().optional()
975
+ triggerSource: z.string().optional(),
976
+ schedule: ScheduleMetadata.optional()
970
977
  });
971
978
  var BackgroundWorkerMetadata = z.object({
972
979
  packageVersion: z.string(),
@@ -1129,10 +1136,21 @@ var ReplayRunResponse = z.object({
1129
1136
  var CanceledRunResponse = z.object({
1130
1137
  id: z.string()
1131
1138
  });
1139
+ var ScheduleType = z.union([
1140
+ z.literal("DECLARATIVE"),
1141
+ z.literal("IMPERATIVE")
1142
+ ]);
1132
1143
  z.object({
1133
1144
  /** The schedule id associated with this run (you can have many schedules for the same task).
1134
1145
  You can use this to remove the schedule, update it, etc */
1135
1146
  scheduleId: z.string(),
1147
+ /** The type of schedule – `"DECLARATIVE"` or `"IMPERATIVE"`.
1148
+ *
1149
+ * **DECLARATIVE** – defined inline on your `schedules.task` using the `cron` property. They can only be created, updated or deleted by modifying the `cron` property on your task.
1150
+ *
1151
+ * **IMPERATIVE** – created using the `schedules.create` functions or in the dashboard.
1152
+ */
1153
+ type: ScheduleType,
1136
1154
  /** When the task was scheduled to run.
1137
1155
  * Note this will be slightly different from `new Date()` because it takes a few ms to run the task.
1138
1156
  *
@@ -1208,6 +1226,7 @@ var ScheduleGenerator = z.object({
1208
1226
  });
1209
1227
  var ScheduleObject = z.object({
1210
1228
  id: z.string(),
1229
+ type: ScheduleType,
1211
1230
  task: z.string(),
1212
1231
  active: z.boolean(),
1213
1232
  deduplicationKey: z.string().nullish(),