@trigger.dev/core 4.0.0-v4-beta.26 → 4.0.0-v4-beta.28

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 (185) hide show
  1. package/dist/commonjs/logger.js +2 -0
  2. package/dist/commonjs/logger.js.map +1 -1
  3. package/dist/commonjs/v3/apiClient/core.js +0 -3
  4. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  5. package/dist/commonjs/v3/config.d.ts +48 -36
  6. package/dist/commonjs/v3/index.d.ts +1 -0
  7. package/dist/commonjs/v3/index.js +1 -0
  8. package/dist/commonjs/v3/index.js.map +1 -1
  9. package/dist/commonjs/v3/isomorphic/index.d.ts +1 -0
  10. package/dist/commonjs/v3/isomorphic/index.js +1 -0
  11. package/dist/commonjs/v3/isomorphic/index.js.map +1 -1
  12. package/dist/commonjs/v3/isomorphic/traceContext.d.ts +6 -0
  13. package/dist/commonjs/v3/isomorphic/traceContext.js +25 -0
  14. package/dist/commonjs/v3/isomorphic/traceContext.js.map +1 -0
  15. package/dist/commonjs/v3/otel/tracingSDK.d.ts +1 -14
  16. package/dist/commonjs/v3/otel/tracingSDK.js +148 -86
  17. package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
  18. package/dist/commonjs/v3/resource-catalog/catalog.d.ts +2 -1
  19. package/dist/commonjs/v3/resource-catalog/index.d.ts +2 -1
  20. package/dist/commonjs/v3/resource-catalog/index.js +3 -0
  21. package/dist/commonjs/v3/resource-catalog/index.js.map +1 -1
  22. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.d.ts +2 -1
  23. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js +3 -0
  24. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  25. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.d.ts +3 -1
  26. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js +11 -3
  27. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  28. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +17 -0
  29. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +361 -246
  30. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +13 -0
  31. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +343 -246
  32. package/dist/commonjs/v3/schemas/api.d.ts +183 -80
  33. package/dist/commonjs/v3/schemas/api.js +2 -0
  34. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  35. package/dist/commonjs/v3/schemas/build.d.ts +52 -40
  36. package/dist/commonjs/v3/schemas/checkpoints.d.ts +18 -0
  37. package/dist/commonjs/v3/schemas/common.d.ts +945 -684
  38. package/dist/commonjs/v3/schemas/common.js +6 -0
  39. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  40. package/dist/commonjs/v3/schemas/fetch.d.ts +12 -12
  41. package/dist/commonjs/v3/schemas/messages.d.ts +4600 -3885
  42. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +18 -18
  43. package/dist/commonjs/v3/schemas/resources.d.ts +34 -28
  44. package/dist/commonjs/v3/schemas/resources.js +2 -0
  45. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  46. package/dist/commonjs/v3/schemas/runEngine.d.ts +120 -12
  47. package/dist/commonjs/v3/schemas/runEngine.js +6 -1
  48. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  49. package/dist/commonjs/v3/schemas/schemas.d.ts +206 -130
  50. package/dist/commonjs/v3/schemas/schemas.js +12 -1
  51. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  52. package/dist/commonjs/v3/serverOnly/index.d.ts +1 -0
  53. package/dist/commonjs/v3/serverOnly/index.js +1 -0
  54. package/dist/commonjs/v3/serverOnly/index.js.map +1 -1
  55. package/dist/commonjs/v3/serverOnly/placementTags.d.ts +20 -0
  56. package/dist/commonjs/v3/serverOnly/placementTags.js +49 -0
  57. package/dist/commonjs/v3/serverOnly/placementTags.js.map +1 -0
  58. package/dist/commonjs/v3/taskContext/otelProcessors.d.ts +4 -5
  59. package/dist/commonjs/v3/taskContext/otelProcessors.js +4 -3
  60. package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
  61. package/dist/commonjs/v3/trace-context-api.d.ts +3 -0
  62. package/dist/commonjs/v3/trace-context-api.js +9 -0
  63. package/dist/commonjs/v3/trace-context-api.js.map +1 -0
  64. package/dist/commonjs/v3/traceContext/api.d.ts +20 -0
  65. package/dist/commonjs/v3/traceContext/api.js +59 -0
  66. package/dist/commonjs/v3/traceContext/api.js.map +1 -0
  67. package/dist/commonjs/v3/traceContext/manager.d.ts +15 -0
  68. package/dist/commonjs/v3/traceContext/manager.js +62 -0
  69. package/dist/commonjs/v3/traceContext/manager.js.map +1 -0
  70. package/dist/commonjs/v3/traceContext/types.d.ts +13 -0
  71. package/dist/commonjs/v3/traceContext/types.js +3 -0
  72. package/dist/commonjs/v3/traceContext/types.js.map +1 -0
  73. package/dist/commonjs/v3/tracer.d.ts +0 -1
  74. package/dist/commonjs/v3/tracer.js +0 -3
  75. package/dist/commonjs/v3/tracer.js.map +1 -1
  76. package/dist/commonjs/v3/types/index.d.ts +1 -0
  77. package/dist/commonjs/v3/types/index.js +1 -0
  78. package/dist/commonjs/v3/types/index.js.map +1 -1
  79. package/dist/commonjs/v3/types/jsonSchema.d.ts +51 -0
  80. package/dist/commonjs/v3/types/jsonSchema.js +3 -0
  81. package/dist/commonjs/v3/types/jsonSchema.js.map +1 -0
  82. package/dist/commonjs/v3/types/tasks.d.ts +25 -0
  83. package/dist/commonjs/v3/types/tasks.js.map +1 -1
  84. package/dist/commonjs/v3/utils/globals.d.ts +2 -0
  85. package/dist/commonjs/v3/utils/globals.js.map +1 -1
  86. package/dist/commonjs/v3/workers/index.d.ts +1 -0
  87. package/dist/commonjs/v3/workers/index.js +3 -1
  88. package/dist/commonjs/v3/workers/index.js.map +1 -1
  89. package/dist/commonjs/v3/workers/taskExecutor.d.ts +2 -2
  90. package/dist/commonjs/v3/workers/taskExecutor.js +3 -15
  91. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  92. package/dist/commonjs/version.js +1 -1
  93. package/dist/esm/logger.js +2 -0
  94. package/dist/esm/logger.js.map +1 -1
  95. package/dist/esm/v3/apiClient/core.js +0 -3
  96. package/dist/esm/v3/apiClient/core.js.map +1 -1
  97. package/dist/esm/v3/config.d.ts +48 -36
  98. package/dist/esm/v3/index.d.ts +1 -0
  99. package/dist/esm/v3/index.js +1 -0
  100. package/dist/esm/v3/index.js.map +1 -1
  101. package/dist/esm/v3/isomorphic/index.d.ts +1 -0
  102. package/dist/esm/v3/isomorphic/index.js +1 -0
  103. package/dist/esm/v3/isomorphic/index.js.map +1 -1
  104. package/dist/esm/v3/isomorphic/traceContext.d.ts +6 -0
  105. package/dist/esm/v3/isomorphic/traceContext.js +21 -0
  106. package/dist/esm/v3/isomorphic/traceContext.js.map +1 -0
  107. package/dist/esm/v3/otel/tracingSDK.d.ts +1 -14
  108. package/dist/esm/v3/otel/tracingSDK.js +151 -89
  109. package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
  110. package/dist/esm/v3/resource-catalog/catalog.d.ts +2 -1
  111. package/dist/esm/v3/resource-catalog/index.d.ts +2 -1
  112. package/dist/esm/v3/resource-catalog/index.js +3 -0
  113. package/dist/esm/v3/resource-catalog/index.js.map +1 -1
  114. package/dist/esm/v3/resource-catalog/noopResourceCatalog.d.ts +2 -1
  115. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js +3 -0
  116. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  117. package/dist/esm/v3/resource-catalog/standardResourceCatalog.d.ts +3 -1
  118. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js +11 -3
  119. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  120. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +17 -0
  121. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +361 -246
  122. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +13 -0
  123. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +343 -246
  124. package/dist/esm/v3/schemas/api.d.ts +183 -80
  125. package/dist/esm/v3/schemas/api.js +2 -0
  126. package/dist/esm/v3/schemas/api.js.map +1 -1
  127. package/dist/esm/v3/schemas/build.d.ts +52 -40
  128. package/dist/esm/v3/schemas/checkpoints.d.ts +18 -0
  129. package/dist/esm/v3/schemas/common.d.ts +945 -684
  130. package/dist/esm/v3/schemas/common.js +6 -0
  131. package/dist/esm/v3/schemas/common.js.map +1 -1
  132. package/dist/esm/v3/schemas/fetch.d.ts +12 -12
  133. package/dist/esm/v3/schemas/messages.d.ts +4600 -3885
  134. package/dist/esm/v3/schemas/openTelemetry.d.ts +18 -18
  135. package/dist/esm/v3/schemas/resources.d.ts +34 -28
  136. package/dist/esm/v3/schemas/resources.js +2 -0
  137. package/dist/esm/v3/schemas/resources.js.map +1 -1
  138. package/dist/esm/v3/schemas/runEngine.d.ts +120 -12
  139. package/dist/esm/v3/schemas/runEngine.js +5 -0
  140. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  141. package/dist/esm/v3/schemas/schemas.d.ts +206 -130
  142. package/dist/esm/v3/schemas/schemas.js +11 -0
  143. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  144. package/dist/esm/v3/serverOnly/index.d.ts +1 -0
  145. package/dist/esm/v3/serverOnly/index.js +1 -0
  146. package/dist/esm/v3/serverOnly/index.js.map +1 -1
  147. package/dist/esm/v3/serverOnly/placementTags.d.ts +20 -0
  148. package/dist/esm/v3/serverOnly/placementTags.js +44 -0
  149. package/dist/esm/v3/serverOnly/placementTags.js.map +1 -0
  150. package/dist/esm/v3/taskContext/otelProcessors.d.ts +4 -5
  151. package/dist/esm/v3/taskContext/otelProcessors.js +4 -3
  152. package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
  153. package/dist/esm/v3/trace-context-api.d.ts +3 -0
  154. package/dist/esm/v3/trace-context-api.js +6 -0
  155. package/dist/esm/v3/trace-context-api.js.map +1 -0
  156. package/dist/esm/v3/traceContext/api.d.ts +20 -0
  157. package/dist/esm/v3/traceContext/api.js +55 -0
  158. package/dist/esm/v3/traceContext/api.js.map +1 -0
  159. package/dist/esm/v3/traceContext/manager.d.ts +15 -0
  160. package/dist/esm/v3/traceContext/manager.js +58 -0
  161. package/dist/esm/v3/traceContext/manager.js.map +1 -0
  162. package/dist/esm/v3/traceContext/types.d.ts +13 -0
  163. package/dist/esm/v3/traceContext/types.js +2 -0
  164. package/dist/esm/v3/traceContext/types.js.map +1 -0
  165. package/dist/esm/v3/tracer.d.ts +0 -1
  166. package/dist/esm/v3/tracer.js +1 -4
  167. package/dist/esm/v3/tracer.js.map +1 -1
  168. package/dist/esm/v3/types/index.d.ts +1 -0
  169. package/dist/esm/v3/types/index.js +1 -0
  170. package/dist/esm/v3/types/index.js.map +1 -1
  171. package/dist/esm/v3/types/jsonSchema.d.ts +51 -0
  172. package/dist/esm/v3/types/jsonSchema.js +2 -0
  173. package/dist/esm/v3/types/jsonSchema.js.map +1 -0
  174. package/dist/esm/v3/types/tasks.d.ts +25 -0
  175. package/dist/esm/v3/types/tasks.js.map +1 -1
  176. package/dist/esm/v3/utils/globals.d.ts +2 -0
  177. package/dist/esm/v3/utils/globals.js.map +1 -1
  178. package/dist/esm/v3/workers/index.d.ts +1 -0
  179. package/dist/esm/v3/workers/index.js +1 -0
  180. package/dist/esm/v3/workers/index.js.map +1 -1
  181. package/dist/esm/v3/workers/taskExecutor.d.ts +2 -2
  182. package/dist/esm/v3/workers/taskExecutor.js +5 -17
  183. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  184. package/dist/esm/version.js +1 -1
  185. package/package.json +12 -13
@@ -65,6 +65,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
65
65
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
66
66
  branchName: z.ZodOptional<z.ZodString>;
67
67
  git: z.ZodOptional<z.ZodObject<{
68
+ provider: z.ZodOptional<z.ZodString>;
69
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
70
+ ghUsername: z.ZodOptional<z.ZodString>;
71
+ ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
68
72
  commitAuthorName: z.ZodOptional<z.ZodString>;
69
73
  commitMessage: z.ZodOptional<z.ZodString>;
70
74
  commitRef: z.ZodOptional<z.ZodString>;
@@ -76,6 +80,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
76
80
  pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
77
81
  }, "strip", z.ZodTypeAny, {
78
82
  dirty?: boolean | undefined;
83
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
84
+ provider?: string | undefined;
85
+ ghUsername?: string | undefined;
86
+ ghUserAvatarUrl?: string | undefined;
79
87
  commitAuthorName?: string | undefined;
80
88
  commitMessage?: string | undefined;
81
89
  commitRef?: string | undefined;
@@ -86,6 +94,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
86
94
  pullRequestState?: "open" | "closed" | "merged" | undefined;
87
95
  }, {
88
96
  dirty?: boolean | undefined;
97
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
98
+ provider?: string | undefined;
99
+ ghUsername?: string | undefined;
100
+ ghUserAvatarUrl?: string | undefined;
89
101
  commitAuthorName?: string | undefined;
90
102
  commitMessage?: string | undefined;
91
103
  commitRef?: string | undefined;
@@ -102,6 +114,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
102
114
  branchName?: string | undefined;
103
115
  git?: {
104
116
  dirty?: boolean | undefined;
117
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
118
+ provider?: string | undefined;
119
+ ghUsername?: string | undefined;
120
+ ghUserAvatarUrl?: string | undefined;
105
121
  commitAuthorName?: string | undefined;
106
122
  commitMessage?: string | undefined;
107
123
  commitRef?: string | undefined;
@@ -118,6 +134,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
118
134
  branchName?: string | undefined;
119
135
  git?: {
120
136
  dirty?: boolean | undefined;
137
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
138
+ provider?: string | undefined;
139
+ ghUsername?: string | undefined;
140
+ ghUserAvatarUrl?: string | undefined;
121
141
  commitAuthorName?: string | undefined;
122
142
  commitMessage?: string | undefined;
123
143
  commitRef?: string | undefined;
@@ -187,6 +207,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
187
207
  runtime: z.ZodString;
188
208
  runtimeVersion: z.ZodString;
189
209
  git: z.ZodOptional<z.ZodObject<{
210
+ provider: z.ZodOptional<z.ZodString>;
211
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
212
+ ghUsername: z.ZodOptional<z.ZodString>;
213
+ ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
190
214
  commitAuthorName: z.ZodOptional<z.ZodString>;
191
215
  commitMessage: z.ZodOptional<z.ZodString>;
192
216
  commitRef: z.ZodOptional<z.ZodString>;
@@ -198,6 +222,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
198
222
  pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
199
223
  }, "strip", z.ZodTypeAny, {
200
224
  dirty?: boolean | undefined;
225
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
226
+ provider?: string | undefined;
227
+ ghUsername?: string | undefined;
228
+ ghUserAvatarUrl?: string | undefined;
201
229
  commitAuthorName?: string | undefined;
202
230
  commitMessage?: string | undefined;
203
231
  commitRef?: string | undefined;
@@ -208,6 +236,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
208
236
  pullRequestState?: "open" | "closed" | "merged" | undefined;
209
237
  }, {
210
238
  dirty?: boolean | undefined;
239
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
240
+ provider?: string | undefined;
241
+ ghUsername?: string | undefined;
242
+ ghUserAvatarUrl?: string | undefined;
211
243
  commitAuthorName?: string | undefined;
212
244
  commitMessage?: string | undefined;
213
245
  commitRef?: string | undefined;
@@ -225,6 +257,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
225
257
  runtimeVersion: string;
226
258
  git?: {
227
259
  dirty?: boolean | undefined;
260
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
261
+ provider?: string | undefined;
262
+ ghUsername?: string | undefined;
263
+ ghUserAvatarUrl?: string | undefined;
228
264
  commitAuthorName?: string | undefined;
229
265
  commitMessage?: string | undefined;
230
266
  commitRef?: string | undefined;
@@ -242,6 +278,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
242
278
  runtimeVersion: string;
243
279
  git?: {
244
280
  dirty?: boolean | undefined;
281
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
282
+ provider?: string | undefined;
283
+ ghUsername?: string | undefined;
284
+ ghUserAvatarUrl?: string | undefined;
245
285
  commitAuthorName?: string | undefined;
246
286
  commitMessage?: string | undefined;
247
287
  commitRef?: string | undefined;
@@ -281,6 +321,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
281
321
  rootTaskRunId: z.ZodOptional<z.ZodString>;
282
322
  durationMs: z.ZodOptional<z.ZodNumber>;
283
323
  costInCents: z.ZodOptional<z.ZodNumber>;
324
+ region: z.ZodOptional<z.ZodString>;
284
325
  }, "strip", z.ZodTypeAny, {
285
326
  payload: string;
286
327
  id: string;
@@ -300,6 +341,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
300
341
  rootTaskRunId?: string | undefined;
301
342
  durationMs?: number | undefined;
302
343
  costInCents?: number | undefined;
344
+ region?: string | undefined;
303
345
  }, {
304
346
  payload: string;
305
347
  id: string;
@@ -319,6 +361,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
319
361
  rootTaskRunId?: string | undefined;
320
362
  durationMs?: number | undefined;
321
363
  costInCents?: number | undefined;
364
+ region?: string | undefined;
322
365
  }>, z.ZodObject<{
323
366
  traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
324
367
  }, "strip", z.ZodTypeAny, {
@@ -344,6 +387,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
344
387
  branchName?: string | undefined;
345
388
  git?: {
346
389
  dirty?: boolean | undefined;
390
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
391
+ provider?: string | undefined;
392
+ ghUsername?: string | undefined;
393
+ ghUserAvatarUrl?: string | undefined;
347
394
  commitAuthorName?: string | undefined;
348
395
  commitMessage?: string | undefined;
349
396
  commitRef?: string | undefined;
@@ -396,6 +443,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
396
443
  rootTaskRunId?: string | undefined;
397
444
  durationMs?: number | undefined;
398
445
  costInCents?: number | undefined;
446
+ region?: string | undefined;
399
447
  } & {
400
448
  traceContext?: Record<string, unknown> | undefined;
401
449
  };
@@ -410,6 +458,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
410
458
  runtimeVersion: string;
411
459
  git?: {
412
460
  dirty?: boolean | undefined;
461
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
462
+ provider?: string | undefined;
463
+ ghUsername?: string | undefined;
464
+ ghUserAvatarUrl?: string | undefined;
413
465
  commitAuthorName?: string | undefined;
414
466
  commitMessage?: string | undefined;
415
467
  commitRef?: string | undefined;
@@ -438,6 +490,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
438
490
  branchName?: string | undefined;
439
491
  git?: {
440
492
  dirty?: boolean | undefined;
493
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
494
+ provider?: string | undefined;
495
+ ghUsername?: string | undefined;
496
+ ghUserAvatarUrl?: string | undefined;
441
497
  commitAuthorName?: string | undefined;
442
498
  commitMessage?: string | undefined;
443
499
  commitRef?: string | undefined;
@@ -490,6 +546,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
490
546
  rootTaskRunId?: string | undefined;
491
547
  durationMs?: number | undefined;
492
548
  costInCents?: number | undefined;
549
+ region?: string | undefined;
493
550
  } & {
494
551
  traceContext?: Record<string, unknown> | undefined;
495
552
  };
@@ -504,6 +561,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
504
561
  runtimeVersion: string;
505
562
  git?: {
506
563
  dirty?: boolean | undefined;
564
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
565
+ provider?: string | undefined;
566
+ ghUsername?: string | undefined;
567
+ ghUserAvatarUrl?: string | undefined;
507
568
  commitAuthorName?: string | undefined;
508
569
  commitMessage?: string | undefined;
509
570
  commitRef?: string | undefined;
@@ -553,6 +614,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
553
614
  branchName?: string | undefined;
554
615
  git?: {
555
616
  dirty?: boolean | undefined;
617
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
618
+ provider?: string | undefined;
619
+ ghUsername?: string | undefined;
620
+ ghUserAvatarUrl?: string | undefined;
556
621
  commitAuthorName?: string | undefined;
557
622
  commitMessage?: string | undefined;
558
623
  commitRef?: string | undefined;
@@ -605,6 +670,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
605
670
  rootTaskRunId?: string | undefined;
606
671
  durationMs?: number | undefined;
607
672
  costInCents?: number | undefined;
673
+ region?: string | undefined;
608
674
  } & {
609
675
  traceContext?: Record<string, unknown> | undefined;
610
676
  };
@@ -619,6 +685,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
619
685
  runtimeVersion: string;
620
686
  git?: {
621
687
  dirty?: boolean | undefined;
688
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
689
+ provider?: string | undefined;
690
+ ghUsername?: string | undefined;
691
+ ghUserAvatarUrl?: string | undefined;
622
692
  commitAuthorName?: string | undefined;
623
693
  commitMessage?: string | undefined;
624
694
  commitRef?: string | undefined;
@@ -657,6 +727,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
657
727
  branchName?: string | undefined;
658
728
  git?: {
659
729
  dirty?: boolean | undefined;
730
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
731
+ provider?: string | undefined;
732
+ ghUsername?: string | undefined;
733
+ ghUserAvatarUrl?: string | undefined;
660
734
  commitAuthorName?: string | undefined;
661
735
  commitMessage?: string | undefined;
662
736
  commitRef?: string | undefined;
@@ -709,6 +783,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
709
783
  rootTaskRunId?: string | undefined;
710
784
  durationMs?: number | undefined;
711
785
  costInCents?: number | undefined;
786
+ region?: string | undefined;
712
787
  } & {
713
788
  traceContext?: Record<string, unknown> | undefined;
714
789
  };
@@ -723,6 +798,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
723
798
  runtimeVersion: string;
724
799
  git?: {
725
800
  dirty?: boolean | undefined;
801
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
802
+ provider?: string | undefined;
803
+ ghUsername?: string | undefined;
804
+ ghUserAvatarUrl?: string | undefined;
726
805
  commitAuthorName?: string | undefined;
727
806
  commitMessage?: string | undefined;
728
807
  commitRef?: string | undefined;
@@ -743,7 +822,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
743
822
  }[] | undefined;
744
823
  }>;
745
824
  export type TaskRunExecutionPayload = z.infer<typeof TaskRunExecutionPayload>;
746
- export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<{
825
+ export declare const V3ProdTaskRunExecution: z.ZodObject<{
747
826
  task: z.ZodObject<{
748
827
  id: z.ZodString;
749
828
  filePath: z.ZodString;
@@ -853,6 +932,10 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
853
932
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
854
933
  branchName: z.ZodOptional<z.ZodString>;
855
934
  git: z.ZodOptional<z.ZodObject<{
935
+ provider: z.ZodOptional<z.ZodString>;
936
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
937
+ ghUsername: z.ZodOptional<z.ZodString>;
938
+ ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
856
939
  commitAuthorName: z.ZodOptional<z.ZodString>;
857
940
  commitMessage: z.ZodOptional<z.ZodString>;
858
941
  commitRef: z.ZodOptional<z.ZodString>;
@@ -864,6 +947,10 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
864
947
  pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
865
948
  }, "strip", z.ZodTypeAny, {
866
949
  dirty?: boolean | undefined;
950
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
951
+ provider?: string | undefined;
952
+ ghUsername?: string | undefined;
953
+ ghUserAvatarUrl?: string | undefined;
867
954
  commitAuthorName?: string | undefined;
868
955
  commitMessage?: string | undefined;
869
956
  commitRef?: string | undefined;
@@ -874,6 +961,10 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
874
961
  pullRequestState?: "open" | "closed" | "merged" | undefined;
875
962
  }, {
876
963
  dirty?: boolean | undefined;
964
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
965
+ provider?: string | undefined;
966
+ ghUsername?: string | undefined;
967
+ ghUserAvatarUrl?: string | undefined;
877
968
  commitAuthorName?: string | undefined;
878
969
  commitMessage?: string | undefined;
879
970
  commitRef?: string | undefined;
@@ -890,6 +981,10 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
890
981
  branchName?: string | undefined;
891
982
  git?: {
892
983
  dirty?: boolean | undefined;
984
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
985
+ provider?: string | undefined;
986
+ ghUsername?: string | undefined;
987
+ ghUserAvatarUrl?: string | undefined;
893
988
  commitAuthorName?: string | undefined;
894
989
  commitMessage?: string | undefined;
895
990
  commitRef?: string | undefined;
@@ -906,6 +1001,10 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
906
1001
  branchName?: string | undefined;
907
1002
  git?: {
908
1003
  dirty?: boolean | undefined;
1004
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1005
+ provider?: string | undefined;
1006
+ ghUsername?: string | undefined;
1007
+ ghUserAvatarUrl?: string | undefined;
909
1008
  commitAuthorName?: string | undefined;
910
1009
  commitMessage?: string | undefined;
911
1010
  commitRef?: string | undefined;
@@ -945,22 +1044,6 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
945
1044
  slug: string;
946
1045
  ref: string;
947
1046
  }>;
948
- machine: z.ZodObject<{
949
- name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
950
- cpu: z.ZodNumber;
951
- memory: z.ZodNumber;
952
- centsPerMs: z.ZodNumber;
953
- }, "strip", z.ZodTypeAny, {
954
- cpu: number;
955
- memory: number;
956
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
957
- centsPerMs: number;
958
- }, {
959
- cpu: number;
960
- memory: number;
961
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
962
- centsPerMs: number;
963
- }>;
964
1047
  batch: z.ZodOptional<z.ZodObject<{
965
1048
  id: z.ZodString;
966
1049
  }, "strip", z.ZodTypeAny, {
@@ -968,7 +1051,7 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
968
1051
  }, {
969
1052
  id: string;
970
1053
  }>>;
971
- }, {
1054
+ } & {
972
1055
  worker: z.ZodObject<{
973
1056
  id: z.ZodString;
974
1057
  contentHash: z.ZodString;
@@ -1001,7 +1084,7 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
1001
1084
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1002
1085
  centsPerMs: number;
1003
1086
  }>>;
1004
- }>, "strip", z.ZodTypeAny, {
1087
+ }, "strip", z.ZodTypeAny, {
1005
1088
  task: {
1006
1089
  id: string;
1007
1090
  filePath: string;
@@ -1018,6 +1101,10 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
1018
1101
  branchName?: string | undefined;
1019
1102
  git?: {
1020
1103
  dirty?: boolean | undefined;
1104
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1105
+ provider?: string | undefined;
1106
+ ghUsername?: string | undefined;
1107
+ ghUserAvatarUrl?: string | undefined;
1021
1108
  commitAuthorName?: string | undefined;
1022
1109
  commitMessage?: string | undefined;
1023
1110
  commitRef?: string | undefined;
@@ -1099,6 +1186,10 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
1099
1186
  branchName?: string | undefined;
1100
1187
  git?: {
1101
1188
  dirty?: boolean | undefined;
1189
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1190
+ provider?: string | undefined;
1191
+ ghUsername?: string | undefined;
1192
+ ghUserAvatarUrl?: string | undefined;
1102
1193
  commitAuthorName?: string | undefined;
1103
1194
  commitMessage?: string | undefined;
1104
1195
  commitRef?: string | undefined;
@@ -1166,7 +1257,7 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShap
1166
1257
  }>;
1167
1258
  export type V3ProdTaskRunExecution = z.infer<typeof V3ProdTaskRunExecution>;
1168
1259
  export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1169
- execution: z.ZodObject<z.objectUtil.extendShape<{
1260
+ execution: z.ZodObject<{
1170
1261
  task: z.ZodObject<{
1171
1262
  id: z.ZodString;
1172
1263
  filePath: z.ZodString;
@@ -1276,6 +1367,10 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1276
1367
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
1277
1368
  branchName: z.ZodOptional<z.ZodString>;
1278
1369
  git: z.ZodOptional<z.ZodObject<{
1370
+ provider: z.ZodOptional<z.ZodString>;
1371
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
1372
+ ghUsername: z.ZodOptional<z.ZodString>;
1373
+ ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
1279
1374
  commitAuthorName: z.ZodOptional<z.ZodString>;
1280
1375
  commitMessage: z.ZodOptional<z.ZodString>;
1281
1376
  commitRef: z.ZodOptional<z.ZodString>;
@@ -1287,6 +1382,10 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1287
1382
  pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
1288
1383
  }, "strip", z.ZodTypeAny, {
1289
1384
  dirty?: boolean | undefined;
1385
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1386
+ provider?: string | undefined;
1387
+ ghUsername?: string | undefined;
1388
+ ghUserAvatarUrl?: string | undefined;
1290
1389
  commitAuthorName?: string | undefined;
1291
1390
  commitMessage?: string | undefined;
1292
1391
  commitRef?: string | undefined;
@@ -1297,6 +1396,10 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1297
1396
  pullRequestState?: "open" | "closed" | "merged" | undefined;
1298
1397
  }, {
1299
1398
  dirty?: boolean | undefined;
1399
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1400
+ provider?: string | undefined;
1401
+ ghUsername?: string | undefined;
1402
+ ghUserAvatarUrl?: string | undefined;
1300
1403
  commitAuthorName?: string | undefined;
1301
1404
  commitMessage?: string | undefined;
1302
1405
  commitRef?: string | undefined;
@@ -1313,6 +1416,10 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1313
1416
  branchName?: string | undefined;
1314
1417
  git?: {
1315
1418
  dirty?: boolean | undefined;
1419
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1420
+ provider?: string | undefined;
1421
+ ghUsername?: string | undefined;
1422
+ ghUserAvatarUrl?: string | undefined;
1316
1423
  commitAuthorName?: string | undefined;
1317
1424
  commitMessage?: string | undefined;
1318
1425
  commitRef?: string | undefined;
@@ -1329,6 +1436,10 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1329
1436
  branchName?: string | undefined;
1330
1437
  git?: {
1331
1438
  dirty?: boolean | undefined;
1439
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1440
+ provider?: string | undefined;
1441
+ ghUsername?: string | undefined;
1442
+ ghUserAvatarUrl?: string | undefined;
1332
1443
  commitAuthorName?: string | undefined;
1333
1444
  commitMessage?: string | undefined;
1334
1445
  commitRef?: string | undefined;
@@ -1368,22 +1479,6 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1368
1479
  slug: string;
1369
1480
  ref: string;
1370
1481
  }>;
1371
- machine: z.ZodObject<{
1372
- name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
1373
- cpu: z.ZodNumber;
1374
- memory: z.ZodNumber;
1375
- centsPerMs: z.ZodNumber;
1376
- }, "strip", z.ZodTypeAny, {
1377
- cpu: number;
1378
- memory: number;
1379
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1380
- centsPerMs: number;
1381
- }, {
1382
- cpu: number;
1383
- memory: number;
1384
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1385
- centsPerMs: number;
1386
- }>;
1387
1482
  batch: z.ZodOptional<z.ZodObject<{
1388
1483
  id: z.ZodString;
1389
1484
  }, "strip", z.ZodTypeAny, {
@@ -1391,7 +1486,7 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1391
1486
  }, {
1392
1487
  id: string;
1393
1488
  }>>;
1394
- }, {
1489
+ } & {
1395
1490
  worker: z.ZodObject<{
1396
1491
  id: z.ZodString;
1397
1492
  contentHash: z.ZodString;
@@ -1424,7 +1519,7 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1424
1519
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1425
1520
  centsPerMs: number;
1426
1521
  }>>;
1427
- }>, "strip", z.ZodTypeAny, {
1522
+ }, "strip", z.ZodTypeAny, {
1428
1523
  task: {
1429
1524
  id: string;
1430
1525
  filePath: string;
@@ -1441,6 +1536,10 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1441
1536
  branchName?: string | undefined;
1442
1537
  git?: {
1443
1538
  dirty?: boolean | undefined;
1539
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1540
+ provider?: string | undefined;
1541
+ ghUsername?: string | undefined;
1542
+ ghUserAvatarUrl?: string | undefined;
1444
1543
  commitAuthorName?: string | undefined;
1445
1544
  commitMessage?: string | undefined;
1446
1545
  commitRef?: string | undefined;
@@ -1522,6 +1621,10 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1522
1621
  branchName?: string | undefined;
1523
1622
  git?: {
1524
1623
  dirty?: boolean | undefined;
1624
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1625
+ provider?: string | undefined;
1626
+ ghUsername?: string | undefined;
1627
+ ghUserAvatarUrl?: string | undefined;
1525
1628
  commitAuthorName?: string | undefined;
1526
1629
  commitMessage?: string | undefined;
1527
1630
  commitRef?: string | undefined;
@@ -1624,6 +1727,10 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1624
1727
  branchName?: string | undefined;
1625
1728
  git?: {
1626
1729
  dirty?: boolean | undefined;
1730
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1731
+ provider?: string | undefined;
1732
+ ghUsername?: string | undefined;
1733
+ ghUserAvatarUrl?: string | undefined;
1627
1734
  commitAuthorName?: string | undefined;
1628
1735
  commitMessage?: string | undefined;
1629
1736
  commitRef?: string | undefined;
@@ -1715,6 +1822,10 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1715
1822
  branchName?: string | undefined;
1716
1823
  git?: {
1717
1824
  dirty?: boolean | undefined;
1825
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1826
+ provider?: string | undefined;
1827
+ ghUsername?: string | undefined;
1828
+ ghUserAvatarUrl?: string | undefined;
1718
1829
  commitAuthorName?: string | undefined;
1719
1830
  commitMessage?: string | undefined;
1720
1831
  commitRef?: string | undefined;
@@ -2070,46 +2181,11 @@ export declare const ScheduleMetadata: z.ZodObject<{
2070
2181
  export declare const TaskMetadata: z.ZodObject<{
2071
2182
  id: z.ZodString;
2072
2183
  description: z.ZodOptional<z.ZodString>;
2073
- queue: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
2074
- /** You can define a shared queue and then pass the name in to your task.
2075
- *
2076
- * @example
2077
- *
2078
- * ```ts
2079
- * const myQueue = queue({
2080
- name: "my-queue",
2081
- concurrencyLimit: 1,
2082
- });
2083
-
2084
- export const task1 = task({
2085
- id: "task-1",
2086
- queue: {
2087
- name: "my-queue",
2088
- },
2089
- run: async (payload: { message: string }) => {
2090
- // ...
2091
- },
2092
- });
2093
-
2094
- export const task2 = task({
2095
- id: "task-2",
2096
- queue: {
2097
- name: "my-queue",
2098
- },
2099
- run: async (payload: { message: string }) => {
2100
- // ...
2101
- },
2102
- });
2103
- * ```
2104
- */
2105
- name: z.ZodString;
2106
- /** An optional property that specifies the maximum number of concurrent run executions.
2107
- *
2108
- * If this property is omitted, the task can potentially use up the full concurrency of an environment */
2184
+ queue: z.ZodOptional<z.ZodObject<{
2109
2185
  concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2110
- }, {
2186
+ } & {
2111
2187
  name: z.ZodOptional<z.ZodString>;
2112
- }>, "strip", z.ZodTypeAny, {
2188
+ }, "strip", z.ZodTypeAny, {
2113
2189
  name?: string | undefined;
2114
2190
  concurrencyLimit?: number | null | undefined;
2115
2191
  }, {
@@ -2168,12 +2244,12 @@ export declare const TaskMetadata: z.ZodObject<{
2168
2244
  memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
2169
2245
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
2170
2246
  }, "strip", z.ZodTypeAny, {
2171
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2172
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2247
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2248
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2173
2249
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2174
2250
  }, {
2175
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2176
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2251
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2252
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2177
2253
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2178
2254
  }>>;
2179
2255
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -2191,6 +2267,7 @@ export declare const TaskMetadata: z.ZodObject<{
2191
2267
  environments?: ("PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW")[] | undefined;
2192
2268
  }>>;
2193
2269
  maxDuration: z.ZodOptional<z.ZodNumber>;
2270
+ payloadSchema: z.ZodOptional<z.ZodUnknown>;
2194
2271
  }, "strip", z.ZodTypeAny, {
2195
2272
  id: string;
2196
2273
  maxDuration?: number | undefined;
@@ -2199,8 +2276,8 @@ export declare const TaskMetadata: z.ZodObject<{
2199
2276
  concurrencyLimit?: number | null | undefined;
2200
2277
  } | undefined;
2201
2278
  machine?: {
2202
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2203
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2279
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2280
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2204
2281
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2205
2282
  } | undefined;
2206
2283
  retry?: {
@@ -2220,6 +2297,7 @@ export declare const TaskMetadata: z.ZodObject<{
2220
2297
  timezone: string;
2221
2298
  environments?: ("PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW")[] | undefined;
2222
2299
  } | undefined;
2300
+ payloadSchema?: unknown;
2223
2301
  }, {
2224
2302
  id: string;
2225
2303
  maxDuration?: number | undefined;
@@ -2228,8 +2306,8 @@ export declare const TaskMetadata: z.ZodObject<{
2228
2306
  concurrencyLimit?: number | null | undefined;
2229
2307
  } | undefined;
2230
2308
  machine?: {
2231
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2232
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2309
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2310
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2233
2311
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2234
2312
  } | undefined;
2235
2313
  retry?: {
@@ -2249,6 +2327,7 @@ export declare const TaskMetadata: z.ZodObject<{
2249
2327
  timezone: string;
2250
2328
  environments?: ("PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW")[] | undefined;
2251
2329
  } | undefined;
2330
+ payloadSchema?: unknown;
2252
2331
  }>;
2253
2332
  export type TaskMetadata = z.infer<typeof TaskMetadata>;
2254
2333
  export declare const TaskFile: z.ZodObject<{
@@ -2282,46 +2361,11 @@ export declare const TaskManifest: z.ZodObject<{
2282
2361
  entryPoint: z.ZodString;
2283
2362
  id: z.ZodString;
2284
2363
  description: z.ZodOptional<z.ZodString>;
2285
- queue: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
2286
- /** You can define a shared queue and then pass the name in to your task.
2287
- *
2288
- * @example
2289
- *
2290
- * ```ts
2291
- * const myQueue = queue({
2292
- name: "my-queue",
2293
- concurrencyLimit: 1,
2294
- });
2295
-
2296
- export const task1 = task({
2297
- id: "task-1",
2298
- queue: {
2299
- name: "my-queue",
2300
- },
2301
- run: async (payload: { message: string }) => {
2302
- // ...
2303
- },
2304
- });
2305
-
2306
- export const task2 = task({
2307
- id: "task-2",
2308
- queue: {
2309
- name: "my-queue",
2310
- },
2311
- run: async (payload: { message: string }) => {
2312
- // ...
2313
- },
2314
- });
2315
- * ```
2316
- */
2317
- name: z.ZodString;
2318
- /** An optional property that specifies the maximum number of concurrent run executions.
2319
- *
2320
- * If this property is omitted, the task can potentially use up the full concurrency of an environment */
2364
+ queue: z.ZodOptional<z.ZodObject<{
2321
2365
  concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2322
- }, {
2366
+ } & {
2323
2367
  name: z.ZodOptional<z.ZodString>;
2324
- }>, "strip", z.ZodTypeAny, {
2368
+ }, "strip", z.ZodTypeAny, {
2325
2369
  name?: string | undefined;
2326
2370
  concurrencyLimit?: number | null | undefined;
2327
2371
  }, {
@@ -2380,12 +2424,12 @@ export declare const TaskManifest: z.ZodObject<{
2380
2424
  memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
2381
2425
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
2382
2426
  }, "strip", z.ZodTypeAny, {
2383
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2384
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2427
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2428
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2385
2429
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2386
2430
  }, {
2387
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2388
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2431
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2432
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2389
2433
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2390
2434
  }>>;
2391
2435
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -2403,6 +2447,7 @@ export declare const TaskManifest: z.ZodObject<{
2403
2447
  environments?: ("PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW")[] | undefined;
2404
2448
  }>>;
2405
2449
  maxDuration: z.ZodOptional<z.ZodNumber>;
2450
+ payloadSchema: z.ZodOptional<z.ZodUnknown>;
2406
2451
  }, "strip", z.ZodTypeAny, {
2407
2452
  id: string;
2408
2453
  filePath: string;
@@ -2413,8 +2458,8 @@ export declare const TaskManifest: z.ZodObject<{
2413
2458
  concurrencyLimit?: number | null | undefined;
2414
2459
  } | undefined;
2415
2460
  machine?: {
2416
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2417
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2461
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2462
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2418
2463
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2419
2464
  } | undefined;
2420
2465
  exportName?: string | undefined;
@@ -2435,6 +2480,7 @@ export declare const TaskManifest: z.ZodObject<{
2435
2480
  timezone: string;
2436
2481
  environments?: ("PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW")[] | undefined;
2437
2482
  } | undefined;
2483
+ payloadSchema?: unknown;
2438
2484
  }, {
2439
2485
  id: string;
2440
2486
  filePath: string;
@@ -2445,8 +2491,8 @@ export declare const TaskManifest: z.ZodObject<{
2445
2491
  concurrencyLimit?: number | null | undefined;
2446
2492
  } | undefined;
2447
2493
  machine?: {
2448
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2449
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2494
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2495
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2450
2496
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2451
2497
  } | undefined;
2452
2498
  exportName?: string | undefined;
@@ -2467,6 +2513,7 @@ export declare const TaskManifest: z.ZodObject<{
2467
2513
  timezone: string;
2468
2514
  environments?: ("PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW")[] | undefined;
2469
2515
  } | undefined;
2516
+ payloadSchema?: unknown;
2470
2517
  }>;
2471
2518
  export type TaskManifest = z.infer<typeof TaskManifest>;
2472
2519
  export declare const PostStartCauses: z.ZodEnum<["index", "create", "restore"]>;
@@ -2734,3 +2781,32 @@ export declare const RunChainState: z.ZodObject<{
2734
2781
  } | undefined;
2735
2782
  }>;
2736
2783
  export type RunChainState = z.infer<typeof RunChainState>;
2784
+ export declare const TriggerTraceContext: z.ZodObject<{
2785
+ traceparent: z.ZodOptional<z.ZodString>;
2786
+ tracestate: z.ZodOptional<z.ZodString>;
2787
+ external: z.ZodOptional<z.ZodObject<{
2788
+ traceparent: z.ZodOptional<z.ZodString>;
2789
+ tracestate: z.ZodOptional<z.ZodString>;
2790
+ }, "strip", z.ZodTypeAny, {
2791
+ traceparent?: string | undefined;
2792
+ tracestate?: string | undefined;
2793
+ }, {
2794
+ traceparent?: string | undefined;
2795
+ tracestate?: string | undefined;
2796
+ }>>;
2797
+ }, "strip", z.ZodTypeAny, {
2798
+ traceparent?: string | undefined;
2799
+ tracestate?: string | undefined;
2800
+ external?: {
2801
+ traceparent?: string | undefined;
2802
+ tracestate?: string | undefined;
2803
+ } | undefined;
2804
+ }, {
2805
+ traceparent?: string | undefined;
2806
+ tracestate?: string | undefined;
2807
+ external?: {
2808
+ traceparent?: string | undefined;
2809
+ tracestate?: string | undefined;
2810
+ } | undefined;
2811
+ }>;
2812
+ export type TriggerTraceContext = z.infer<typeof TriggerTraceContext>;