@trigger.dev/core 0.0.0-v3-prerelease-20240923150540 → 0.0.0-v3-prerelease-20241009112547

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 (170) hide show
  1. package/dist/commonjs/schemas/api.d.ts +8 -8
  2. package/dist/commonjs/v3/apiClient/core.js +18 -1
  3. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/index.d.ts +78 -67
  5. package/dist/commonjs/v3/apiClient/index.js +7 -2
  6. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  7. package/dist/commonjs/v3/apiClientManager/index.d.ts +5 -0
  8. package/dist/commonjs/v3/apiClientManager/index.js +28 -1
  9. package/dist/commonjs/v3/apiClientManager/index.js.map +1 -1
  10. package/dist/commonjs/v3/apps/duration.d.ts +1 -0
  11. package/dist/commonjs/v3/apps/duration.js +51 -0
  12. package/dist/commonjs/v3/apps/duration.js.map +1 -0
  13. package/dist/commonjs/v3/apps/friendlyId.d.ts +1 -0
  14. package/dist/commonjs/v3/apps/friendlyId.js +9 -0
  15. package/dist/commonjs/v3/apps/friendlyId.js.map +1 -0
  16. package/dist/commonjs/v3/apps/index.d.ts +2 -0
  17. package/dist/commonjs/v3/apps/index.js +2 -0
  18. package/dist/commonjs/v3/apps/index.js.map +1 -1
  19. package/dist/commonjs/v3/config.d.ts +8 -0
  20. package/dist/commonjs/v3/errors.d.ts +12 -2
  21. package/dist/commonjs/v3/errors.js +107 -24
  22. package/dist/commonjs/v3/errors.js.map +1 -1
  23. package/dist/commonjs/v3/index.d.ts +3 -0
  24. package/dist/commonjs/v3/index.js +5 -1
  25. package/dist/commonjs/v3/index.js.map +1 -1
  26. package/dist/commonjs/v3/links.d.ts +17 -0
  27. package/dist/commonjs/v3/links.js +21 -0
  28. package/dist/commonjs/v3/links.js.map +1 -0
  29. package/dist/commonjs/v3/run-metadata-api.d.ts +2 -0
  30. package/dist/commonjs/v3/run-metadata-api.js +8 -0
  31. package/dist/commonjs/v3/run-metadata-api.js.map +1 -0
  32. package/dist/commonjs/v3/runMetadata/index.d.ts +15 -0
  33. package/dist/commonjs/v3/runMetadata/index.js +67 -0
  34. package/dist/commonjs/v3/runMetadata/index.js.map +1 -0
  35. package/dist/commonjs/v3/schemas/api.d.ts +387 -290
  36. package/dist/commonjs/v3/schemas/api.js +15 -1
  37. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  38. package/dist/commonjs/v3/schemas/build.d.ts +90 -76
  39. package/dist/commonjs/v3/schemas/common.d.ts +151 -123
  40. package/dist/commonjs/v3/schemas/common.js +16 -1
  41. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  42. package/dist/commonjs/v3/schemas/messages.d.ts +2710 -2442
  43. package/dist/commonjs/v3/schemas/messages.js +1 -0
  44. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  45. package/dist/commonjs/v3/schemas/resources.d.ts +36 -28
  46. package/dist/commonjs/v3/schemas/resources.js +1 -0
  47. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  48. package/dist/commonjs/v3/schemas/schemas.d.ts +307 -263
  49. package/dist/commonjs/v3/schemas/schemas.js +1 -0
  50. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  51. package/dist/commonjs/v3/timeout/api.d.ts +11 -0
  52. package/dist/commonjs/v3/timeout/api.js +38 -0
  53. package/dist/commonjs/v3/timeout/api.js.map +1 -0
  54. package/dist/commonjs/v3/timeout/types.d.ts +9 -0
  55. package/dist/commonjs/v3/timeout/types.js +15 -0
  56. package/dist/commonjs/v3/timeout/types.js.map +1 -0
  57. package/dist/commonjs/v3/timeout/usageTimeoutManager.d.ts +10 -0
  58. package/dist/commonjs/v3/timeout/usageTimeoutManager.js +32 -0
  59. package/dist/commonjs/v3/timeout/usageTimeoutManager.js.map +1 -0
  60. package/dist/commonjs/v3/timeout-api.d.ts +3 -0
  61. package/dist/commonjs/v3/timeout-api.js +9 -0
  62. package/dist/commonjs/v3/timeout-api.js.map +1 -0
  63. package/dist/commonjs/v3/tracer.d.ts +1 -1
  64. package/dist/commonjs/v3/tracer.js +28 -14
  65. package/dist/commonjs/v3/tracer.js.map +1 -1
  66. package/dist/commonjs/v3/types/index.d.ts +10 -0
  67. package/dist/commonjs/v3/utils/globals.d.ts +4 -0
  68. package/dist/commonjs/v3/utils/globals.js.map +1 -1
  69. package/dist/commonjs/v3/utils/structuredLogger.d.ts +1 -0
  70. package/dist/commonjs/v3/utils/structuredLogger.js +10 -4
  71. package/dist/commonjs/v3/utils/structuredLogger.js.map +1 -1
  72. package/dist/commonjs/v3/workers/index.d.ts +1 -0
  73. package/dist/commonjs/v3/workers/index.js +3 -1
  74. package/dist/commonjs/v3/workers/index.js.map +1 -1
  75. package/dist/commonjs/v3/workers/taskExecutor.d.ts +1 -1
  76. package/dist/commonjs/v3/workers/taskExecutor.js +53 -43
  77. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  78. package/dist/commonjs/v3/zodNamespace.d.ts +1 -0
  79. package/dist/commonjs/v3/zodNamespace.js +6 -1
  80. package/dist/commonjs/v3/zodNamespace.js.map +1 -1
  81. package/dist/commonjs/v3/zodSocket.d.ts +2 -0
  82. package/dist/commonjs/v3/zodSocket.js +15 -5
  83. package/dist/commonjs/v3/zodSocket.js.map +1 -1
  84. package/dist/commonjs/version.js +1 -1
  85. package/dist/esm/schemas/api.d.ts +8 -8
  86. package/dist/esm/v3/apiClient/core.js +18 -1
  87. package/dist/esm/v3/apiClient/core.js.map +1 -1
  88. package/dist/esm/v3/apiClient/index.d.ts +78 -67
  89. package/dist/esm/v3/apiClient/index.js +8 -3
  90. package/dist/esm/v3/apiClient/index.js.map +1 -1
  91. package/dist/esm/v3/apiClientManager/index.d.ts +5 -0
  92. package/dist/esm/v3/apiClientManager/index.js +26 -0
  93. package/dist/esm/v3/apiClientManager/index.js.map +1 -1
  94. package/dist/esm/v3/apps/duration.d.ts +1 -0
  95. package/dist/esm/v3/apps/duration.js +48 -0
  96. package/dist/esm/v3/apps/duration.js.map +1 -0
  97. package/dist/esm/v3/apps/friendlyId.d.ts +1 -0
  98. package/dist/esm/v3/apps/friendlyId.js +6 -0
  99. package/dist/esm/v3/apps/friendlyId.js.map +1 -0
  100. package/dist/esm/v3/apps/index.d.ts +2 -0
  101. package/dist/esm/v3/apps/index.js +2 -0
  102. package/dist/esm/v3/apps/index.js.map +1 -1
  103. package/dist/esm/v3/config.d.ts +8 -0
  104. package/dist/esm/v3/errors.d.ts +12 -2
  105. package/dist/esm/v3/errors.js +104 -23
  106. package/dist/esm/v3/errors.js.map +1 -1
  107. package/dist/esm/v3/index.d.ts +3 -0
  108. package/dist/esm/v3/index.js +3 -0
  109. package/dist/esm/v3/index.js.map +1 -1
  110. package/dist/esm/v3/links.d.ts +17 -0
  111. package/dist/esm/v3/links.js +18 -0
  112. package/dist/esm/v3/links.js.map +1 -0
  113. package/dist/esm/v3/run-metadata-api.d.ts +2 -0
  114. package/dist/esm/v3/run-metadata-api.js +5 -0
  115. package/dist/esm/v3/run-metadata-api.js.map +1 -0
  116. package/dist/esm/v3/runMetadata/index.d.ts +15 -0
  117. package/dist/esm/v3/runMetadata/index.js +63 -0
  118. package/dist/esm/v3/runMetadata/index.js.map +1 -0
  119. package/dist/esm/v3/schemas/api.d.ts +317 -220
  120. package/dist/esm/v3/schemas/api.js +14 -0
  121. package/dist/esm/v3/schemas/api.js.map +1 -1
  122. package/dist/esm/v3/schemas/build.d.ts +160 -146
  123. package/dist/esm/v3/schemas/common.d.ts +151 -123
  124. package/dist/esm/v3/schemas/common.js +16 -1
  125. package/dist/esm/v3/schemas/common.js.map +1 -1
  126. package/dist/esm/v3/schemas/fetch.d.ts +14 -14
  127. package/dist/esm/v3/schemas/messages.d.ts +2909 -2641
  128. package/dist/esm/v3/schemas/messages.js +2 -1
  129. package/dist/esm/v3/schemas/messages.js.map +1 -1
  130. package/dist/esm/v3/schemas/resources.d.ts +30 -22
  131. package/dist/esm/v3/schemas/resources.js +1 -0
  132. package/dist/esm/v3/schemas/resources.js.map +1 -1
  133. package/dist/esm/v3/schemas/schemas.d.ts +387 -343
  134. package/dist/esm/v3/schemas/schemas.js +1 -0
  135. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  136. package/dist/esm/v3/timeout/api.d.ts +11 -0
  137. package/dist/esm/v3/timeout/api.js +34 -0
  138. package/dist/esm/v3/timeout/api.js.map +1 -0
  139. package/dist/esm/v3/timeout/types.d.ts +9 -0
  140. package/dist/esm/v3/timeout/types.js +11 -0
  141. package/dist/esm/v3/timeout/types.js.map +1 -0
  142. package/dist/esm/v3/timeout/usageTimeoutManager.d.ts +10 -0
  143. package/dist/esm/v3/timeout/usageTimeoutManager.js +28 -0
  144. package/dist/esm/v3/timeout/usageTimeoutManager.js.map +1 -0
  145. package/dist/esm/v3/timeout-api.d.ts +3 -0
  146. package/dist/esm/v3/timeout-api.js +6 -0
  147. package/dist/esm/v3/timeout-api.js.map +1 -0
  148. package/dist/esm/v3/tracer.d.ts +1 -1
  149. package/dist/esm/v3/tracer.js +28 -14
  150. package/dist/esm/v3/tracer.js.map +1 -1
  151. package/dist/esm/v3/types/index.d.ts +10 -0
  152. package/dist/esm/v3/utils/globals.d.ts +4 -0
  153. package/dist/esm/v3/utils/globals.js.map +1 -1
  154. package/dist/esm/v3/utils/structuredLogger.d.ts +1 -0
  155. package/dist/esm/v3/utils/structuredLogger.js +10 -4
  156. package/dist/esm/v3/utils/structuredLogger.js.map +1 -1
  157. package/dist/esm/v3/workers/index.d.ts +1 -0
  158. package/dist/esm/v3/workers/index.js +1 -0
  159. package/dist/esm/v3/workers/index.js.map +1 -1
  160. package/dist/esm/v3/workers/taskExecutor.d.ts +1 -1
  161. package/dist/esm/v3/workers/taskExecutor.js +45 -35
  162. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  163. package/dist/esm/v3/zodNamespace.d.ts +1 -0
  164. package/dist/esm/v3/zodNamespace.js +6 -1
  165. package/dist/esm/v3/zodNamespace.js.map +1 -1
  166. package/dist/esm/v3/zodSocket.d.ts +2 -0
  167. package/dist/esm/v3/zodSocket.js +15 -5
  168. package/dist/esm/v3/zodSocket.js.map +1 -1
  169. package/dist/esm/version.js +1 -1
  170. package/package.json +2 -1
@@ -26,39 +26,39 @@ export declare const GetProjectResponseBody: z.ZodObject<{
26
26
  createdAt: z.ZodDate;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  id: string;
29
- slug: string;
30
29
  createdAt: Date;
30
+ slug: string;
31
31
  title: string;
32
32
  }, {
33
33
  id: string;
34
- slug: string;
35
34
  createdAt: Date;
35
+ slug: string;
36
36
  title: string;
37
37
  }>;
38
38
  }, "strip", z.ZodTypeAny, {
39
- id: string;
40
- externalRef: string;
41
39
  name: string;
42
- slug: string;
40
+ id: string;
43
41
  createdAt: Date;
42
+ slug: string;
44
43
  organization: {
45
44
  id: string;
46
- slug: string;
47
45
  createdAt: Date;
46
+ slug: string;
48
47
  title: string;
49
48
  };
50
- }, {
51
- id: string;
52
49
  externalRef: string;
50
+ }, {
53
51
  name: string;
54
- slug: string;
52
+ id: string;
55
53
  createdAt: Date;
54
+ slug: string;
56
55
  organization: {
57
56
  id: string;
58
- slug: string;
59
57
  createdAt: Date;
58
+ slug: string;
60
59
  title: string;
61
60
  };
61
+ externalRef: string;
62
62
  }>;
63
63
  export type GetProjectResponseBody = z.infer<typeof GetProjectResponseBody>;
64
64
  export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
@@ -74,39 +74,39 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
74
74
  createdAt: z.ZodDate;
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  id: string;
77
- slug: string;
78
77
  createdAt: Date;
78
+ slug: string;
79
79
  title: string;
80
80
  }, {
81
81
  id: string;
82
- slug: string;
83
82
  createdAt: Date;
83
+ slug: string;
84
84
  title: string;
85
85
  }>;
86
86
  }, "strip", z.ZodTypeAny, {
87
- id: string;
88
- externalRef: string;
89
87
  name: string;
90
- slug: string;
88
+ id: string;
91
89
  createdAt: Date;
90
+ slug: string;
92
91
  organization: {
93
92
  id: string;
94
- slug: string;
95
93
  createdAt: Date;
94
+ slug: string;
96
95
  title: string;
97
96
  };
98
- }, {
99
- id: string;
100
97
  externalRef: string;
98
+ }, {
101
99
  name: string;
102
- slug: string;
100
+ id: string;
103
101
  createdAt: Date;
102
+ slug: string;
104
103
  organization: {
105
104
  id: string;
106
- slug: string;
107
105
  createdAt: Date;
106
+ slug: string;
108
107
  title: string;
109
108
  };
109
+ externalRef: string;
110
110
  }>, "many">;
111
111
  export type GetProjectsResponseBody = z.infer<typeof GetProjectsResponseBody>;
112
112
  export declare const GetProjectEnvResponse: z.ZodObject<{
@@ -116,14 +116,14 @@ export declare const GetProjectEnvResponse: z.ZodObject<{
116
116
  projectId: z.ZodString;
117
117
  }, "strip", z.ZodTypeAny, {
118
118
  name: string;
119
+ projectId: string;
119
120
  apiKey: string;
120
121
  apiUrl: string;
121
- projectId: string;
122
122
  }, {
123
123
  name: string;
124
+ projectId: string;
124
125
  apiKey: string;
125
126
  apiUrl: string;
126
- projectId: string;
127
127
  }>;
128
128
  export type GetProjectEnvResponse = z.infer<typeof GetProjectEnvResponse>;
129
129
  export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
@@ -345,12 +345,12 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
345
345
  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>]>>;
346
346
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
347
347
  }, "strip", z.ZodTypeAny, {
348
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
349
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
348
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
349
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
350
350
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
351
351
  }, {
352
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
353
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
352
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
353
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
354
354
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
355
355
  }>>;
356
356
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -364,6 +364,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
364
364
  cron: string;
365
365
  timezone: string;
366
366
  }>>;
367
+ maxDuration: z.ZodOptional<z.ZodNumber>;
367
368
  }, "strip", z.ZodTypeAny, {
368
369
  id: string;
369
370
  filePath: string;
@@ -413,8 +414,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
413
414
  randomize?: boolean | undefined;
414
415
  } | undefined;
415
416
  machine?: {
416
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
417
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
417
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
418
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
418
419
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
419
420
  } | undefined;
420
421
  triggerSource?: string | undefined;
@@ -422,6 +423,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
422
423
  cron: string;
423
424
  timezone: string;
424
425
  } | undefined;
426
+ maxDuration?: number | undefined;
425
427
  }, {
426
428
  id: string;
427
429
  filePath: string;
@@ -471,8 +473,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
471
473
  randomize?: boolean | undefined;
472
474
  } | undefined;
473
475
  machine?: {
474
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
475
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
476
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
477
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
476
478
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
477
479
  } | undefined;
478
480
  triggerSource?: string | undefined;
@@ -480,6 +482,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
480
482
  cron: string;
481
483
  timezone: string;
482
484
  } | undefined;
485
+ maxDuration?: number | undefined;
483
486
  }>, "many">;
484
487
  sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
485
488
  filePath: z.ZodString;
@@ -487,18 +490,17 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
487
490
  contentHash: z.ZodString;
488
491
  taskIds: z.ZodArray<z.ZodString, "many">;
489
492
  }, "strip", z.ZodTypeAny, {
490
- contentHash: string;
491
493
  filePath: string;
494
+ contentHash: string;
492
495
  contents: string;
493
496
  taskIds: string[];
494
497
  }, {
495
- contentHash: string;
496
498
  filePath: string;
499
+ contentHash: string;
497
500
  contents: string;
498
501
  taskIds: string[];
499
502
  }>, "many">>;
500
503
  }, "strip", z.ZodTypeAny, {
501
- packageVersion: string;
502
504
  contentHash: string;
503
505
  tasks: {
504
506
  id: string;
@@ -549,8 +551,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
549
551
  randomize?: boolean | undefined;
550
552
  } | undefined;
551
553
  machine?: {
552
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
553
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
554
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
555
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
554
556
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
555
557
  } | undefined;
556
558
  triggerSource?: string | undefined;
@@ -558,16 +560,17 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
558
560
  cron: string;
559
561
  timezone: string;
560
562
  } | undefined;
563
+ maxDuration?: number | undefined;
561
564
  }[];
565
+ packageVersion: string;
562
566
  cliPackageVersion?: string | undefined;
563
567
  sourceFiles?: {
564
- contentHash: string;
565
568
  filePath: string;
569
+ contentHash: string;
566
570
  contents: string;
567
571
  taskIds: string[];
568
572
  }[] | undefined;
569
573
  }, {
570
- packageVersion: string;
571
574
  contentHash: string;
572
575
  tasks: {
573
576
  id: string;
@@ -618,8 +621,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
618
621
  randomize?: boolean | undefined;
619
622
  } | undefined;
620
623
  machine?: {
621
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
622
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
624
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
625
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
623
626
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
624
627
  } | undefined;
625
628
  triggerSource?: string | undefined;
@@ -627,20 +630,20 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
627
630
  cron: string;
628
631
  timezone: string;
629
632
  } | undefined;
633
+ maxDuration?: number | undefined;
630
634
  }[];
635
+ packageVersion: string;
631
636
  cliPackageVersion?: string | undefined;
632
637
  sourceFiles?: {
633
- contentHash: string;
634
638
  filePath: string;
639
+ contentHash: string;
635
640
  contents: string;
636
641
  taskIds: string[];
637
642
  }[] | undefined;
638
643
  }>;
639
644
  supportsLazyAttempts: z.ZodOptional<z.ZodBoolean>;
640
645
  }, "strip", z.ZodTypeAny, {
641
- localOnly: boolean;
642
646
  metadata: {
643
- packageVersion: string;
644
647
  contentHash: string;
645
648
  tasks: {
646
649
  id: string;
@@ -691,8 +694,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
691
694
  randomize?: boolean | undefined;
692
695
  } | undefined;
693
696
  machine?: {
694
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
695
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
697
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
698
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
696
699
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
697
700
  } | undefined;
698
701
  triggerSource?: string | undefined;
@@ -700,20 +703,21 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
700
703
  cron: string;
701
704
  timezone: string;
702
705
  } | undefined;
706
+ maxDuration?: number | undefined;
703
707
  }[];
708
+ packageVersion: string;
704
709
  cliPackageVersion?: string | undefined;
705
710
  sourceFiles?: {
706
- contentHash: string;
707
711
  filePath: string;
712
+ contentHash: string;
708
713
  contents: string;
709
714
  taskIds: string[];
710
715
  }[] | undefined;
711
716
  };
717
+ localOnly: boolean;
712
718
  supportsLazyAttempts?: boolean | undefined;
713
719
  }, {
714
- localOnly: boolean;
715
720
  metadata: {
716
- packageVersion: string;
717
721
  contentHash: string;
718
722
  tasks: {
719
723
  id: string;
@@ -764,8 +768,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
764
768
  randomize?: boolean | undefined;
765
769
  } | undefined;
766
770
  machine?: {
767
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
768
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
771
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
772
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
769
773
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
770
774
  } | undefined;
771
775
  triggerSource?: string | undefined;
@@ -773,15 +777,18 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
773
777
  cron: string;
774
778
  timezone: string;
775
779
  } | undefined;
780
+ maxDuration?: number | undefined;
776
781
  }[];
782
+ packageVersion: string;
777
783
  cliPackageVersion?: string | undefined;
778
784
  sourceFiles?: {
779
- contentHash: string;
780
785
  filePath: string;
786
+ contentHash: string;
781
787
  contents: string;
782
788
  taskIds: string[];
783
789
  }[] | undefined;
784
790
  };
791
+ localOnly: boolean;
785
792
  supportsLazyAttempts?: boolean | undefined;
786
793
  }>;
787
794
  export type CreateBackgroundWorkerRequestBody = z.infer<typeof CreateBackgroundWorkerRequestBody>;
@@ -791,12 +798,12 @@ export declare const CreateBackgroundWorkerResponse: z.ZodObject<{
791
798
  contentHash: z.ZodString;
792
799
  }, "strip", z.ZodTypeAny, {
793
800
  id: string;
794
- contentHash: string;
795
801
  version: string;
802
+ contentHash: string;
796
803
  }, {
797
804
  id: string;
798
- contentHash: string;
799
805
  version: string;
806
+ contentHash: string;
800
807
  }>;
801
808
  export type CreateBackgroundWorkerResponse = z.infer<typeof CreateBackgroundWorkerResponse>;
802
809
  export declare const RunTags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -1003,6 +1010,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1003
1010
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1004
1011
  tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1005
1012
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1013
+ metadata: z.ZodAny;
1014
+ metadataType: z.ZodOptional<z.ZodString>;
1015
+ maxDuration: z.ZodOptional<z.ZodNumber>;
1006
1016
  }, "strip", z.ZodTypeAny, {
1007
1017
  dependentAttempt?: string | undefined;
1008
1018
  parentAttempt?: string | undefined;
@@ -1054,6 +1064,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1054
1064
  ttl?: string | number | undefined;
1055
1065
  tags?: string | string[] | undefined;
1056
1066
  maxAttempts?: number | undefined;
1067
+ metadata?: any;
1068
+ metadataType?: string | undefined;
1069
+ maxDuration?: number | undefined;
1057
1070
  }, {
1058
1071
  dependentAttempt?: string | undefined;
1059
1072
  parentAttempt?: string | undefined;
@@ -1105,6 +1118,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1105
1118
  ttl?: string | number | undefined;
1106
1119
  tags?: string | string[] | undefined;
1107
1120
  maxAttempts?: number | undefined;
1121
+ metadata?: any;
1122
+ metadataType?: string | undefined;
1123
+ maxDuration?: number | undefined;
1108
1124
  }>>;
1109
1125
  }, "strip", z.ZodTypeAny, {
1110
1126
  payload?: any;
@@ -1160,6 +1176,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1160
1176
  ttl?: string | number | undefined;
1161
1177
  tags?: string | string[] | undefined;
1162
1178
  maxAttempts?: number | undefined;
1179
+ metadata?: any;
1180
+ metadataType?: string | undefined;
1181
+ maxDuration?: number | undefined;
1163
1182
  } | undefined;
1164
1183
  }, {
1165
1184
  payload?: any;
@@ -1215,6 +1234,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1215
1234
  ttl?: string | number | undefined;
1216
1235
  tags?: string | string[] | undefined;
1217
1236
  maxAttempts?: number | undefined;
1237
+ metadata?: any;
1238
+ metadataType?: string | undefined;
1239
+ maxDuration?: number | undefined;
1218
1240
  } | undefined;
1219
1241
  }>;
1220
1242
  export type TriggerTaskRequestBody = z.infer<typeof TriggerTaskRequestBody>;
@@ -1429,6 +1451,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1429
1451
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1430
1452
  tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1431
1453
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1454
+ metadata: z.ZodAny;
1455
+ metadataType: z.ZodOptional<z.ZodString>;
1456
+ maxDuration: z.ZodOptional<z.ZodNumber>;
1432
1457
  }, "strip", z.ZodTypeAny, {
1433
1458
  dependentAttempt?: string | undefined;
1434
1459
  parentAttempt?: string | undefined;
@@ -1480,6 +1505,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1480
1505
  ttl?: string | number | undefined;
1481
1506
  tags?: string | string[] | undefined;
1482
1507
  maxAttempts?: number | undefined;
1508
+ metadata?: any;
1509
+ metadataType?: string | undefined;
1510
+ maxDuration?: number | undefined;
1483
1511
  }, {
1484
1512
  dependentAttempt?: string | undefined;
1485
1513
  parentAttempt?: string | undefined;
@@ -1531,6 +1559,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1531
1559
  ttl?: string | number | undefined;
1532
1560
  tags?: string | string[] | undefined;
1533
1561
  maxAttempts?: number | undefined;
1562
+ metadata?: any;
1563
+ metadataType?: string | undefined;
1564
+ maxDuration?: number | undefined;
1534
1565
  }>>;
1535
1566
  }, "strip", z.ZodTypeAny, {
1536
1567
  payload?: any;
@@ -1586,6 +1617,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1586
1617
  ttl?: string | number | undefined;
1587
1618
  tags?: string | string[] | undefined;
1588
1619
  maxAttempts?: number | undefined;
1620
+ metadata?: any;
1621
+ metadataType?: string | undefined;
1622
+ maxDuration?: number | undefined;
1589
1623
  } | undefined;
1590
1624
  }, {
1591
1625
  payload?: any;
@@ -1641,6 +1675,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1641
1675
  ttl?: string | number | undefined;
1642
1676
  tags?: string | string[] | undefined;
1643
1677
  maxAttempts?: number | undefined;
1678
+ metadata?: any;
1679
+ metadataType?: string | undefined;
1680
+ maxDuration?: number | undefined;
1644
1681
  } | undefined;
1645
1682
  }>, "many">;
1646
1683
  dependentAttempt: z.ZodOptional<z.ZodString>;
@@ -1699,6 +1736,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1699
1736
  ttl?: string | number | undefined;
1700
1737
  tags?: string | string[] | undefined;
1701
1738
  maxAttempts?: number | undefined;
1739
+ metadata?: any;
1740
+ metadataType?: string | undefined;
1741
+ maxDuration?: number | undefined;
1702
1742
  } | undefined;
1703
1743
  }[];
1704
1744
  dependentAttempt?: string | undefined;
@@ -1757,6 +1797,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1757
1797
  ttl?: string | number | undefined;
1758
1798
  tags?: string | string[] | undefined;
1759
1799
  maxAttempts?: number | undefined;
1800
+ metadata?: any;
1801
+ metadataType?: string | undefined;
1802
+ maxDuration?: number | undefined;
1760
1803
  } | undefined;
1761
1804
  }[];
1762
1805
  dependentAttempt?: string | undefined;
@@ -1897,10 +1940,10 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
1897
1940
  registryHost: z.ZodOptional<z.ZodString>;
1898
1941
  }, "strip", z.ZodTypeAny, {
1899
1942
  id: string;
1900
- contentHash: string;
1901
1943
  version: string;
1902
- shortCode: string;
1944
+ contentHash: string;
1903
1945
  imageTag: string;
1946
+ shortCode: string;
1904
1947
  externalBuildData?: {
1905
1948
  projectId: string;
1906
1949
  buildId: string;
@@ -1909,10 +1952,10 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
1909
1952
  registryHost?: string | undefined;
1910
1953
  }, {
1911
1954
  id: string;
1912
- contentHash: string;
1913
1955
  version: string;
1914
- shortCode: string;
1956
+ contentHash: string;
1915
1957
  imageTag: string;
1958
+ shortCode: string;
1916
1959
  externalBuildData?: {
1917
1960
  projectId: string;
1918
1961
  buildId: string;
@@ -2032,39 +2075,39 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2032
2075
  exportName: z.ZodString;
2033
2076
  }, "strip", z.ZodTypeAny, {
2034
2077
  id: string;
2035
- slug: string;
2036
2078
  filePath: string;
2037
2079
  exportName: string;
2080
+ slug: string;
2038
2081
  }, {
2039
2082
  id: string;
2040
- slug: string;
2041
2083
  filePath: string;
2042
2084
  exportName: string;
2085
+ slug: string;
2043
2086
  }>, "many">;
2044
2087
  }, "strip", z.ZodTypeAny, {
2045
2088
  id: string;
2089
+ version: string;
2046
2090
  tasks: {
2047
2091
  id: string;
2048
- slug: string;
2049
2092
  filePath: string;
2050
2093
  exportName: string;
2094
+ slug: string;
2051
2095
  }[];
2052
- version: string;
2053
2096
  }, {
2054
2097
  id: string;
2098
+ version: string;
2055
2099
  tasks: {
2056
2100
  id: string;
2057
- slug: string;
2058
2101
  filePath: string;
2059
2102
  exportName: string;
2103
+ slug: string;
2060
2104
  }[];
2061
- version: string;
2062
2105
  }>>;
2063
2106
  }, "strip", z.ZodTypeAny, {
2064
2107
  status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
2065
2108
  id: string;
2066
- contentHash: string;
2067
2109
  version: string;
2110
+ contentHash: string;
2068
2111
  shortCode: string;
2069
2112
  imageReference?: string | null | undefined;
2070
2113
  errorData?: {
@@ -2075,19 +2118,19 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2075
2118
  } | null | undefined;
2076
2119
  worker?: {
2077
2120
  id: string;
2121
+ version: string;
2078
2122
  tasks: {
2079
2123
  id: string;
2080
- slug: string;
2081
2124
  filePath: string;
2082
2125
  exportName: string;
2126
+ slug: string;
2083
2127
  }[];
2084
- version: string;
2085
2128
  } | undefined;
2086
2129
  }, {
2087
2130
  status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
2088
2131
  id: string;
2089
- contentHash: string;
2090
2132
  version: string;
2133
+ contentHash: string;
2091
2134
  shortCode: string;
2092
2135
  imageReference?: string | null | undefined;
2093
2136
  errorData?: {
@@ -2098,13 +2141,13 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2098
2141
  } | null | undefined;
2099
2142
  worker?: {
2100
2143
  id: string;
2144
+ version: string;
2101
2145
  tasks: {
2102
2146
  id: string;
2103
- slug: string;
2104
2147
  filePath: string;
2105
2148
  exportName: string;
2149
+ slug: string;
2106
2150
  }[];
2107
- version: string;
2108
2151
  } | undefined;
2109
2152
  }>;
2110
2153
  export type GetDeploymentResponseBody = z.infer<typeof GetDeploymentResponseBody>;
@@ -2169,17 +2212,17 @@ export declare const ScheduledTaskPayload: z.ZodObject<{
2169
2212
  upcoming: z.ZodArray<z.ZodDate, "many">;
2170
2213
  }, "strip", z.ZodTypeAny, {
2171
2214
  type: "DECLARATIVE" | "IMPERATIVE";
2215
+ timestamp: Date;
2172
2216
  timezone: string;
2173
2217
  scheduleId: string;
2174
- timestamp: Date;
2175
2218
  upcoming: Date[];
2176
2219
  lastTimestamp?: Date | undefined;
2177
2220
  externalId?: string | undefined;
2178
2221
  }, {
2179
2222
  type: "DECLARATIVE" | "IMPERATIVE";
2223
+ timestamp: Date;
2180
2224
  timezone: string;
2181
2225
  scheduleId: string;
2182
- timestamp: Date;
2183
2226
  upcoming: Date[];
2184
2227
  lastTimestamp?: Date | undefined;
2185
2228
  externalId?: string | undefined;
@@ -2226,14 +2269,14 @@ export declare const CreateScheduleOptions: z.ZodObject<{
2226
2269
  */
2227
2270
  timezone: z.ZodOptional<z.ZodString>;
2228
2271
  }, "strip", z.ZodTypeAny, {
2229
- cron: string;
2230
2272
  task: string;
2273
+ cron: string;
2231
2274
  deduplicationKey: string;
2232
2275
  externalId?: string | undefined;
2233
2276
  timezone?: string | undefined;
2234
2277
  }, {
2235
- cron: string;
2236
2278
  task: string;
2279
+ cron: string;
2237
2280
  deduplicationKey: string;
2238
2281
  externalId?: string | undefined;
2239
2282
  timezone?: string | undefined;
@@ -2280,13 +2323,13 @@ export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
2280
2323
  */
2281
2324
  timezone: z.ZodOptional<z.ZodString>;
2282
2325
  }, "deduplicationKey">, "strip", z.ZodTypeAny, {
2283
- cron: string;
2284
2326
  task: string;
2327
+ cron: string;
2285
2328
  timezone?: string | undefined;
2286
2329
  externalId?: string | undefined;
2287
2330
  }, {
2288
- cron: string;
2289
2331
  task: string;
2332
+ cron: string;
2290
2333
  timezone?: string | undefined;
2291
2334
  externalId?: string | undefined;
2292
2335
  }>;
@@ -2297,12 +2340,12 @@ export declare const ScheduleGenerator: z.ZodObject<{
2297
2340
  description: z.ZodString;
2298
2341
  }, "strip", z.ZodTypeAny, {
2299
2342
  type: "CRON";
2300
- expression: string;
2301
2343
  description: string;
2344
+ expression: string;
2302
2345
  }, {
2303
2346
  type: "CRON";
2304
- expression: string;
2305
2347
  description: string;
2348
+ expression: string;
2306
2349
  }>;
2307
2350
  export type ScheduleGenerator = z.infer<typeof ScheduleGenerator>;
2308
2351
  export declare const ScheduleObject: z.ZodObject<{
@@ -2318,12 +2361,12 @@ export declare const ScheduleObject: z.ZodObject<{
2318
2361
  description: z.ZodString;
2319
2362
  }, "strip", z.ZodTypeAny, {
2320
2363
  type: "CRON";
2321
- expression: string;
2322
2364
  description: string;
2365
+ expression: string;
2323
2366
  }, {
2324
2367
  type: "CRON";
2325
- expression: string;
2326
2368
  description: string;
2369
+ expression: string;
2327
2370
  }>;
2328
2371
  timezone: z.ZodString;
2329
2372
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -2343,13 +2386,13 @@ export declare const ScheduleObject: z.ZodObject<{
2343
2386
  }, "strip", z.ZodTypeAny, {
2344
2387
  type: "DECLARATIVE" | "IMPERATIVE";
2345
2388
  id: string;
2346
- timezone: string;
2347
2389
  task: string;
2390
+ timezone: string;
2348
2391
  active: boolean;
2349
2392
  generator: {
2350
2393
  type: "CRON";
2351
- expression: string;
2352
2394
  description: string;
2395
+ expression: string;
2353
2396
  };
2354
2397
  environments: {
2355
2398
  type: string;
@@ -2362,13 +2405,13 @@ export declare const ScheduleObject: z.ZodObject<{
2362
2405
  }, {
2363
2406
  type: "DECLARATIVE" | "IMPERATIVE";
2364
2407
  id: string;
2365
- timezone: string;
2366
2408
  task: string;
2409
+ timezone: string;
2367
2410
  active: boolean;
2368
2411
  generator: {
2369
2412
  type: "CRON";
2370
- expression: string;
2371
2413
  description: string;
2414
+ expression: string;
2372
2415
  };
2373
2416
  environments: {
2374
2417
  type: string;
@@ -2402,12 +2445,12 @@ export declare const ListSchedulesResult: z.ZodObject<{
2402
2445
  description: z.ZodString;
2403
2446
  }, "strip", z.ZodTypeAny, {
2404
2447
  type: "CRON";
2405
- expression: string;
2406
2448
  description: string;
2449
+ expression: string;
2407
2450
  }, {
2408
2451
  type: "CRON";
2409
- expression: string;
2410
2452
  description: string;
2453
+ expression: string;
2411
2454
  }>;
2412
2455
  timezone: z.ZodString;
2413
2456
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -2427,13 +2470,13 @@ export declare const ListSchedulesResult: z.ZodObject<{
2427
2470
  }, "strip", z.ZodTypeAny, {
2428
2471
  type: "DECLARATIVE" | "IMPERATIVE";
2429
2472
  id: string;
2430
- timezone: string;
2431
2473
  task: string;
2474
+ timezone: string;
2432
2475
  active: boolean;
2433
2476
  generator: {
2434
2477
  type: "CRON";
2435
- expression: string;
2436
2478
  description: string;
2479
+ expression: string;
2437
2480
  };
2438
2481
  environments: {
2439
2482
  type: string;
@@ -2446,13 +2489,13 @@ export declare const ListSchedulesResult: z.ZodObject<{
2446
2489
  }, {
2447
2490
  type: "DECLARATIVE" | "IMPERATIVE";
2448
2491
  id: string;
2449
- timezone: string;
2450
2492
  task: string;
2493
+ timezone: string;
2451
2494
  active: boolean;
2452
2495
  generator: {
2453
2496
  type: "CRON";
2454
- expression: string;
2455
2497
  description: string;
2498
+ expression: string;
2456
2499
  };
2457
2500
  environments: {
2458
2501
  type: string;
@@ -2480,13 +2523,13 @@ export declare const ListSchedulesResult: z.ZodObject<{
2480
2523
  data: {
2481
2524
  type: "DECLARATIVE" | "IMPERATIVE";
2482
2525
  id: string;
2483
- timezone: string;
2484
2526
  task: string;
2527
+ timezone: string;
2485
2528
  active: boolean;
2486
2529
  generator: {
2487
2530
  type: "CRON";
2488
- expression: string;
2489
2531
  description: string;
2532
+ expression: string;
2490
2533
  };
2491
2534
  environments: {
2492
2535
  type: string;
@@ -2506,13 +2549,13 @@ export declare const ListSchedulesResult: z.ZodObject<{
2506
2549
  data: {
2507
2550
  type: "DECLARATIVE" | "IMPERATIVE";
2508
2551
  id: string;
2509
- timezone: string;
2510
2552
  task: string;
2553
+ timezone: string;
2511
2554
  active: boolean;
2512
2555
  generator: {
2513
2556
  type: "CRON";
2514
- expression: string;
2515
2557
  description: string;
2558
+ expression: string;
2516
2559
  };
2517
2560
  environments: {
2518
2561
  type: string;
@@ -2549,7 +2592,7 @@ export declare const TimezonesResult: z.ZodObject<{
2549
2592
  timezones: string[];
2550
2593
  }>;
2551
2594
  export type TimezonesResult = z.infer<typeof TimezonesResult>;
2552
- export declare const RunStatus: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2595
+ export declare const RunStatus: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED", "TIMED_OUT"]>;
2553
2596
  export type RunStatus = z.infer<typeof RunStatus>;
2554
2597
  export declare const AttemptStatus: z.ZodEnum<["PENDING", "EXECUTING", "PAUSED", "COMPLETED", "FAILED", "CANCELED"]>;
2555
2598
  export type AttemptStatus = z.infer<typeof AttemptStatus>;
@@ -2558,12 +2601,12 @@ export declare const RunEnvironmentDetails: z.ZodObject<{
2558
2601
  name: z.ZodString;
2559
2602
  user: z.ZodOptional<z.ZodString>;
2560
2603
  }, "strip", z.ZodTypeAny, {
2561
- id: string;
2562
2604
  name: string;
2605
+ id: string;
2563
2606
  user?: string | undefined;
2564
2607
  }, {
2565
- id: string;
2566
2608
  name: string;
2609
+ id: string;
2567
2610
  user?: string | undefined;
2568
2611
  }>;
2569
2612
  export type RunEnvironmentDetails = z.infer<typeof RunEnvironmentDetails>;
@@ -2577,19 +2620,19 @@ export declare const RunScheduleDetails: z.ZodObject<{
2577
2620
  description: z.ZodString;
2578
2621
  }, "strip", z.ZodTypeAny, {
2579
2622
  type: "CRON";
2580
- expression: string;
2581
2623
  description: string;
2624
+ expression: string;
2582
2625
  }, {
2583
2626
  type: "CRON";
2584
- expression: string;
2585
2627
  description: string;
2628
+ expression: string;
2586
2629
  }>;
2587
2630
  }, "strip", z.ZodTypeAny, {
2588
2631
  id: string;
2589
2632
  generator: {
2590
2633
  type: "CRON";
2591
- expression: string;
2592
2634
  description: string;
2635
+ expression: string;
2593
2636
  };
2594
2637
  externalId?: string | undefined;
2595
2638
  deduplicationKey?: string | undefined;
@@ -2597,8 +2640,8 @@ export declare const RunScheduleDetails: z.ZodObject<{
2597
2640
  id: string;
2598
2641
  generator: {
2599
2642
  type: "CRON";
2600
- expression: string;
2601
2643
  description: string;
2644
+ expression: string;
2602
2645
  };
2603
2646
  externalId?: string | undefined;
2604
2647
  deduplicationKey?: string | undefined;
@@ -2611,7 +2654,7 @@ export declare const RelatedRunDetails: z.ZodObject<{
2611
2654
  triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
2612
2655
  batchId: z.ZodOptional<z.ZodString>;
2613
2656
  id: z.ZodString;
2614
- status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2657
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED", "TIMED_OUT"]>;
2615
2658
  taskIdentifier: z.ZodString;
2616
2659
  idempotencyKey: z.ZodOptional<z.ZodString>;
2617
2660
  version: z.ZodOptional<z.ZodString>;
@@ -2633,11 +2676,16 @@ export declare const RelatedRunDetails: z.ZodObject<{
2633
2676
  costInCents: z.ZodNumber;
2634
2677
  baseCostInCents: z.ZodNumber;
2635
2678
  durationMs: z.ZodNumber;
2679
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2636
2680
  }, "strip", z.ZodTypeAny, {
2637
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2681
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2638
2682
  id: string;
2639
- createdAt: Date;
2640
2683
  tags: string[];
2684
+ isTest: boolean;
2685
+ createdAt: Date;
2686
+ durationMs: number;
2687
+ costInCents: number;
2688
+ baseCostInCents: number;
2641
2689
  depth: number;
2642
2690
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2643
2691
  taskIdentifier: string;
@@ -2647,11 +2695,7 @@ export declare const RelatedRunDetails: z.ZodObject<{
2647
2695
  isSuccess: boolean;
2648
2696
  isFailed: boolean;
2649
2697
  isCancelled: boolean;
2650
- isTest: boolean;
2651
2698
  updatedAt: Date;
2652
- costInCents: number;
2653
- baseCostInCents: number;
2654
- durationMs: number;
2655
2699
  batchId?: string | undefined;
2656
2700
  idempotencyKey?: string | undefined;
2657
2701
  version?: string | undefined;
@@ -2660,11 +2704,16 @@ export declare const RelatedRunDetails: z.ZodObject<{
2660
2704
  delayedUntil?: Date | undefined;
2661
2705
  ttl?: string | undefined;
2662
2706
  expiredAt?: Date | undefined;
2707
+ metadata?: Record<string, any> | undefined;
2663
2708
  }, {
2664
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2709
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2665
2710
  id: string;
2666
- createdAt: Date;
2667
2711
  tags: string[];
2712
+ isTest: boolean;
2713
+ createdAt: Date;
2714
+ durationMs: number;
2715
+ costInCents: number;
2716
+ baseCostInCents: number;
2668
2717
  depth: number;
2669
2718
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2670
2719
  taskIdentifier: string;
@@ -2674,11 +2723,7 @@ export declare const RelatedRunDetails: z.ZodObject<{
2674
2723
  isSuccess: boolean;
2675
2724
  isFailed: boolean;
2676
2725
  isCancelled: boolean;
2677
- isTest: boolean;
2678
2726
  updatedAt: Date;
2679
- costInCents: number;
2680
- baseCostInCents: number;
2681
- durationMs: number;
2682
2727
  batchId?: string | undefined;
2683
2728
  idempotencyKey?: string | undefined;
2684
2729
  version?: string | undefined;
@@ -2687,6 +2732,7 @@ export declare const RelatedRunDetails: z.ZodObject<{
2687
2732
  delayedUntil?: Date | undefined;
2688
2733
  ttl?: string | undefined;
2689
2734
  expiredAt?: Date | undefined;
2735
+ metadata?: Record<string, any> | undefined;
2690
2736
  }>;
2691
2737
  export declare const RetrieveRunResponse: z.ZodObject<{
2692
2738
  payload: z.ZodOptional<z.ZodAny>;
@@ -2703,19 +2749,19 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2703
2749
  description: z.ZodString;
2704
2750
  }, "strip", z.ZodTypeAny, {
2705
2751
  type: "CRON";
2706
- expression: string;
2707
2752
  description: string;
2753
+ expression: string;
2708
2754
  }, {
2709
2755
  type: "CRON";
2710
- expression: string;
2711
2756
  description: string;
2757
+ expression: string;
2712
2758
  }>;
2713
2759
  }, "strip", z.ZodTypeAny, {
2714
2760
  id: string;
2715
2761
  generator: {
2716
2762
  type: "CRON";
2717
- expression: string;
2718
2763
  description: string;
2764
+ expression: string;
2719
2765
  };
2720
2766
  externalId?: string | undefined;
2721
2767
  deduplicationKey?: string | undefined;
@@ -2723,8 +2769,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2723
2769
  id: string;
2724
2770
  generator: {
2725
2771
  type: "CRON";
2726
- expression: string;
2727
2772
  description: string;
2773
+ expression: string;
2728
2774
  };
2729
2775
  externalId?: string | undefined;
2730
2776
  deduplicationKey?: string | undefined;
@@ -2735,7 +2781,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2735
2781
  triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
2736
2782
  batchId: z.ZodOptional<z.ZodString>;
2737
2783
  id: z.ZodString;
2738
- status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2784
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED", "TIMED_OUT"]>;
2739
2785
  taskIdentifier: z.ZodString;
2740
2786
  idempotencyKey: z.ZodOptional<z.ZodString>;
2741
2787
  version: z.ZodOptional<z.ZodString>;
@@ -2757,11 +2803,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2757
2803
  costInCents: z.ZodNumber;
2758
2804
  baseCostInCents: z.ZodNumber;
2759
2805
  durationMs: z.ZodNumber;
2806
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2760
2807
  }, "strip", z.ZodTypeAny, {
2761
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2808
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2762
2809
  id: string;
2763
- createdAt: Date;
2764
2810
  tags: string[];
2811
+ isTest: boolean;
2812
+ createdAt: Date;
2813
+ durationMs: number;
2814
+ costInCents: number;
2815
+ baseCostInCents: number;
2765
2816
  depth: number;
2766
2817
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2767
2818
  taskIdentifier: string;
@@ -2771,11 +2822,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2771
2822
  isSuccess: boolean;
2772
2823
  isFailed: boolean;
2773
2824
  isCancelled: boolean;
2774
- isTest: boolean;
2775
2825
  updatedAt: Date;
2776
- costInCents: number;
2777
- baseCostInCents: number;
2778
- durationMs: number;
2779
2826
  batchId?: string | undefined;
2780
2827
  idempotencyKey?: string | undefined;
2781
2828
  version?: string | undefined;
@@ -2784,11 +2831,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2784
2831
  delayedUntil?: Date | undefined;
2785
2832
  ttl?: string | undefined;
2786
2833
  expiredAt?: Date | undefined;
2834
+ metadata?: Record<string, any> | undefined;
2787
2835
  }, {
2788
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2836
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2789
2837
  id: string;
2790
- createdAt: Date;
2791
2838
  tags: string[];
2839
+ isTest: boolean;
2840
+ createdAt: Date;
2841
+ durationMs: number;
2842
+ costInCents: number;
2843
+ baseCostInCents: number;
2792
2844
  depth: number;
2793
2845
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2794
2846
  taskIdentifier: string;
@@ -2798,11 +2850,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2798
2850
  isSuccess: boolean;
2799
2851
  isFailed: boolean;
2800
2852
  isCancelled: boolean;
2801
- isTest: boolean;
2802
2853
  updatedAt: Date;
2803
- costInCents: number;
2804
- baseCostInCents: number;
2805
- durationMs: number;
2806
2854
  batchId?: string | undefined;
2807
2855
  idempotencyKey?: string | undefined;
2808
2856
  version?: string | undefined;
@@ -2811,13 +2859,14 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2811
2859
  delayedUntil?: Date | undefined;
2812
2860
  ttl?: string | undefined;
2813
2861
  expiredAt?: Date | undefined;
2862
+ metadata?: Record<string, any> | undefined;
2814
2863
  }>>;
2815
2864
  parent: z.ZodOptional<z.ZodObject<{
2816
2865
  depth: z.ZodNumber;
2817
2866
  triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
2818
2867
  batchId: z.ZodOptional<z.ZodString>;
2819
2868
  id: z.ZodString;
2820
- status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2869
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED", "TIMED_OUT"]>;
2821
2870
  taskIdentifier: z.ZodString;
2822
2871
  idempotencyKey: z.ZodOptional<z.ZodString>;
2823
2872
  version: z.ZodOptional<z.ZodString>;
@@ -2839,11 +2888,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2839
2888
  costInCents: z.ZodNumber;
2840
2889
  baseCostInCents: z.ZodNumber;
2841
2890
  durationMs: z.ZodNumber;
2891
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2842
2892
  }, "strip", z.ZodTypeAny, {
2843
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2893
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2844
2894
  id: string;
2845
- createdAt: Date;
2846
2895
  tags: string[];
2896
+ isTest: boolean;
2897
+ createdAt: Date;
2898
+ durationMs: number;
2899
+ costInCents: number;
2900
+ baseCostInCents: number;
2847
2901
  depth: number;
2848
2902
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2849
2903
  taskIdentifier: string;
@@ -2853,11 +2907,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2853
2907
  isSuccess: boolean;
2854
2908
  isFailed: boolean;
2855
2909
  isCancelled: boolean;
2856
- isTest: boolean;
2857
2910
  updatedAt: Date;
2858
- costInCents: number;
2859
- baseCostInCents: number;
2860
- durationMs: number;
2861
2911
  batchId?: string | undefined;
2862
2912
  idempotencyKey?: string | undefined;
2863
2913
  version?: string | undefined;
@@ -2866,11 +2916,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2866
2916
  delayedUntil?: Date | undefined;
2867
2917
  ttl?: string | undefined;
2868
2918
  expiredAt?: Date | undefined;
2919
+ metadata?: Record<string, any> | undefined;
2869
2920
  }, {
2870
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2921
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2871
2922
  id: string;
2872
- createdAt: Date;
2873
2923
  tags: string[];
2924
+ isTest: boolean;
2925
+ createdAt: Date;
2926
+ durationMs: number;
2927
+ costInCents: number;
2928
+ baseCostInCents: number;
2874
2929
  depth: number;
2875
2930
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2876
2931
  taskIdentifier: string;
@@ -2880,11 +2935,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2880
2935
  isSuccess: boolean;
2881
2936
  isFailed: boolean;
2882
2937
  isCancelled: boolean;
2883
- isTest: boolean;
2884
2938
  updatedAt: Date;
2885
- costInCents: number;
2886
- baseCostInCents: number;
2887
- durationMs: number;
2888
2939
  batchId?: string | undefined;
2889
2940
  idempotencyKey?: string | undefined;
2890
2941
  version?: string | undefined;
@@ -2893,13 +2944,14 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2893
2944
  delayedUntil?: Date | undefined;
2894
2945
  ttl?: string | undefined;
2895
2946
  expiredAt?: Date | undefined;
2947
+ metadata?: Record<string, any> | undefined;
2896
2948
  }>>;
2897
2949
  children: z.ZodOptional<z.ZodArray<z.ZodObject<{
2898
2950
  depth: z.ZodNumber;
2899
2951
  triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
2900
2952
  batchId: z.ZodOptional<z.ZodString>;
2901
2953
  id: z.ZodString;
2902
- status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2954
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED", "TIMED_OUT"]>;
2903
2955
  taskIdentifier: z.ZodString;
2904
2956
  idempotencyKey: z.ZodOptional<z.ZodString>;
2905
2957
  version: z.ZodOptional<z.ZodString>;
@@ -2921,11 +2973,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2921
2973
  costInCents: z.ZodNumber;
2922
2974
  baseCostInCents: z.ZodNumber;
2923
2975
  durationMs: z.ZodNumber;
2976
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2924
2977
  }, "strip", z.ZodTypeAny, {
2925
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2978
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2926
2979
  id: string;
2927
- createdAt: Date;
2928
2980
  tags: string[];
2981
+ isTest: boolean;
2982
+ createdAt: Date;
2983
+ durationMs: number;
2984
+ costInCents: number;
2985
+ baseCostInCents: number;
2929
2986
  depth: number;
2930
2987
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2931
2988
  taskIdentifier: string;
@@ -2935,11 +2992,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2935
2992
  isSuccess: boolean;
2936
2993
  isFailed: boolean;
2937
2994
  isCancelled: boolean;
2938
- isTest: boolean;
2939
2995
  updatedAt: Date;
2940
- costInCents: number;
2941
- baseCostInCents: number;
2942
- durationMs: number;
2943
2996
  batchId?: string | undefined;
2944
2997
  idempotencyKey?: string | undefined;
2945
2998
  version?: string | undefined;
@@ -2948,11 +3001,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2948
3001
  delayedUntil?: Date | undefined;
2949
3002
  ttl?: string | undefined;
2950
3003
  expiredAt?: Date | undefined;
3004
+ metadata?: Record<string, any> | undefined;
2951
3005
  }, {
2952
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3006
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2953
3007
  id: string;
2954
- createdAt: Date;
2955
3008
  tags: string[];
3009
+ isTest: boolean;
3010
+ createdAt: Date;
3011
+ durationMs: number;
3012
+ costInCents: number;
3013
+ baseCostInCents: number;
2956
3014
  depth: number;
2957
3015
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2958
3016
  taskIdentifier: string;
@@ -2962,11 +3020,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2962
3020
  isSuccess: boolean;
2963
3021
  isFailed: boolean;
2964
3022
  isCancelled: boolean;
2965
- isTest: boolean;
2966
3023
  updatedAt: Date;
2967
- costInCents: number;
2968
- baseCostInCents: number;
2969
- durationMs: number;
2970
3024
  batchId?: string | undefined;
2971
3025
  idempotencyKey?: string | undefined;
2972
3026
  version?: string | undefined;
@@ -2975,13 +3029,18 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2975
3029
  delayedUntil?: Date | undefined;
2976
3030
  ttl?: string | undefined;
2977
3031
  expiredAt?: Date | undefined;
3032
+ metadata?: Record<string, any> | undefined;
2978
3033
  }>, "many">>;
2979
3034
  }, "strip", z.ZodTypeAny, {
2980
3035
  root?: {
2981
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3036
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2982
3037
  id: string;
2983
- createdAt: Date;
2984
3038
  tags: string[];
3039
+ isTest: boolean;
3040
+ createdAt: Date;
3041
+ durationMs: number;
3042
+ costInCents: number;
3043
+ baseCostInCents: number;
2985
3044
  depth: number;
2986
3045
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2987
3046
  taskIdentifier: string;
@@ -2991,11 +3050,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2991
3050
  isSuccess: boolean;
2992
3051
  isFailed: boolean;
2993
3052
  isCancelled: boolean;
2994
- isTest: boolean;
2995
3053
  updatedAt: Date;
2996
- costInCents: number;
2997
- baseCostInCents: number;
2998
- durationMs: number;
2999
3054
  batchId?: string | undefined;
3000
3055
  idempotencyKey?: string | undefined;
3001
3056
  version?: string | undefined;
@@ -3004,12 +3059,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3004
3059
  delayedUntil?: Date | undefined;
3005
3060
  ttl?: string | undefined;
3006
3061
  expiredAt?: Date | undefined;
3062
+ metadata?: Record<string, any> | undefined;
3007
3063
  } | undefined;
3008
3064
  parent?: {
3009
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3065
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3010
3066
  id: string;
3011
- createdAt: Date;
3012
3067
  tags: string[];
3068
+ isTest: boolean;
3069
+ createdAt: Date;
3070
+ durationMs: number;
3071
+ costInCents: number;
3072
+ baseCostInCents: number;
3013
3073
  depth: number;
3014
3074
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3015
3075
  taskIdentifier: string;
@@ -3019,11 +3079,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3019
3079
  isSuccess: boolean;
3020
3080
  isFailed: boolean;
3021
3081
  isCancelled: boolean;
3022
- isTest: boolean;
3023
3082
  updatedAt: Date;
3024
- costInCents: number;
3025
- baseCostInCents: number;
3026
- durationMs: number;
3027
3083
  batchId?: string | undefined;
3028
3084
  idempotencyKey?: string | undefined;
3029
3085
  version?: string | undefined;
@@ -3032,12 +3088,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3032
3088
  delayedUntil?: Date | undefined;
3033
3089
  ttl?: string | undefined;
3034
3090
  expiredAt?: Date | undefined;
3091
+ metadata?: Record<string, any> | undefined;
3035
3092
  } | undefined;
3036
3093
  children?: {
3037
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3094
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3038
3095
  id: string;
3039
- createdAt: Date;
3040
3096
  tags: string[];
3097
+ isTest: boolean;
3098
+ createdAt: Date;
3099
+ durationMs: number;
3100
+ costInCents: number;
3101
+ baseCostInCents: number;
3041
3102
  depth: number;
3042
3103
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3043
3104
  taskIdentifier: string;
@@ -3047,11 +3108,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3047
3108
  isSuccess: boolean;
3048
3109
  isFailed: boolean;
3049
3110
  isCancelled: boolean;
3050
- isTest: boolean;
3051
3111
  updatedAt: Date;
3052
- costInCents: number;
3053
- baseCostInCents: number;
3054
- durationMs: number;
3055
3112
  batchId?: string | undefined;
3056
3113
  idempotencyKey?: string | undefined;
3057
3114
  version?: string | undefined;
@@ -3060,13 +3117,18 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3060
3117
  delayedUntil?: Date | undefined;
3061
3118
  ttl?: string | undefined;
3062
3119
  expiredAt?: Date | undefined;
3120
+ metadata?: Record<string, any> | undefined;
3063
3121
  }[] | undefined;
3064
3122
  }, {
3065
3123
  root?: {
3066
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3124
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3067
3125
  id: string;
3068
- createdAt: Date;
3069
3126
  tags: string[];
3127
+ isTest: boolean;
3128
+ createdAt: Date;
3129
+ durationMs: number;
3130
+ costInCents: number;
3131
+ baseCostInCents: number;
3070
3132
  depth: number;
3071
3133
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3072
3134
  taskIdentifier: string;
@@ -3076,11 +3138,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3076
3138
  isSuccess: boolean;
3077
3139
  isFailed: boolean;
3078
3140
  isCancelled: boolean;
3079
- isTest: boolean;
3080
3141
  updatedAt: Date;
3081
- costInCents: number;
3082
- baseCostInCents: number;
3083
- durationMs: number;
3084
3142
  batchId?: string | undefined;
3085
3143
  idempotencyKey?: string | undefined;
3086
3144
  version?: string | undefined;
@@ -3089,12 +3147,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3089
3147
  delayedUntil?: Date | undefined;
3090
3148
  ttl?: string | undefined;
3091
3149
  expiredAt?: Date | undefined;
3150
+ metadata?: Record<string, any> | undefined;
3092
3151
  } | undefined;
3093
3152
  parent?: {
3094
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3153
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3095
3154
  id: string;
3096
- createdAt: Date;
3097
3155
  tags: string[];
3156
+ isTest: boolean;
3157
+ createdAt: Date;
3158
+ durationMs: number;
3159
+ costInCents: number;
3160
+ baseCostInCents: number;
3098
3161
  depth: number;
3099
3162
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3100
3163
  taskIdentifier: string;
@@ -3104,11 +3167,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3104
3167
  isSuccess: boolean;
3105
3168
  isFailed: boolean;
3106
3169
  isCancelled: boolean;
3107
- isTest: boolean;
3108
3170
  updatedAt: Date;
3109
- costInCents: number;
3110
- baseCostInCents: number;
3111
- durationMs: number;
3112
3171
  batchId?: string | undefined;
3113
3172
  idempotencyKey?: string | undefined;
3114
3173
  version?: string | undefined;
@@ -3117,12 +3176,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3117
3176
  delayedUntil?: Date | undefined;
3118
3177
  ttl?: string | undefined;
3119
3178
  expiredAt?: Date | undefined;
3179
+ metadata?: Record<string, any> | undefined;
3120
3180
  } | undefined;
3121
3181
  children?: {
3122
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3182
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3123
3183
  id: string;
3124
- createdAt: Date;
3125
3184
  tags: string[];
3185
+ isTest: boolean;
3186
+ createdAt: Date;
3187
+ durationMs: number;
3188
+ costInCents: number;
3189
+ baseCostInCents: number;
3126
3190
  depth: number;
3127
3191
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3128
3192
  taskIdentifier: string;
@@ -3132,11 +3196,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3132
3196
  isSuccess: boolean;
3133
3197
  isFailed: boolean;
3134
3198
  isCancelled: boolean;
3135
- isTest: boolean;
3136
3199
  updatedAt: Date;
3137
- costInCents: number;
3138
- baseCostInCents: number;
3139
- durationMs: number;
3140
3200
  batchId?: string | undefined;
3141
3201
  idempotencyKey?: string | undefined;
3142
3202
  version?: string | undefined;
@@ -3145,6 +3205,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3145
3205
  delayedUntil?: Date | undefined;
3146
3206
  ttl?: string | undefined;
3147
3207
  expiredAt?: Date | undefined;
3208
+ metadata?: Record<string, any> | undefined;
3148
3209
  }[] | undefined;
3149
3210
  }>;
3150
3211
  attempts: z.ZodArray<z.ZodOptional<z.ZodObject<{
@@ -3196,7 +3257,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3196
3257
  triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
3197
3258
  batchId: z.ZodOptional<z.ZodString>;
3198
3259
  id: z.ZodString;
3199
- status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
3260
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED", "TIMED_OUT"]>;
3200
3261
  taskIdentifier: z.ZodString;
3201
3262
  idempotencyKey: z.ZodOptional<z.ZodString>;
3202
3263
  version: z.ZodOptional<z.ZodString>;
@@ -3218,11 +3279,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3218
3279
  costInCents: z.ZodNumber;
3219
3280
  baseCostInCents: z.ZodNumber;
3220
3281
  durationMs: z.ZodNumber;
3282
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3221
3283
  }, "strip", z.ZodTypeAny, {
3222
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3284
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3223
3285
  id: string;
3224
- createdAt: Date;
3225
3286
  tags: string[];
3287
+ isTest: boolean;
3288
+ createdAt: Date;
3289
+ durationMs: number;
3290
+ costInCents: number;
3291
+ baseCostInCents: number;
3226
3292
  depth: number;
3227
3293
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3228
3294
  taskIdentifier: string;
@@ -3232,17 +3298,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3232
3298
  isSuccess: boolean;
3233
3299
  isFailed: boolean;
3234
3300
  isCancelled: boolean;
3235
- isTest: boolean;
3236
3301
  updatedAt: Date;
3237
- costInCents: number;
3238
- baseCostInCents: number;
3239
- durationMs: number;
3240
3302
  relatedRuns: {
3241
3303
  root?: {
3242
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3304
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3243
3305
  id: string;
3244
- createdAt: Date;
3245
3306
  tags: string[];
3307
+ isTest: boolean;
3308
+ createdAt: Date;
3309
+ durationMs: number;
3310
+ costInCents: number;
3311
+ baseCostInCents: number;
3246
3312
  depth: number;
3247
3313
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3248
3314
  taskIdentifier: string;
@@ -3252,11 +3318,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3252
3318
  isSuccess: boolean;
3253
3319
  isFailed: boolean;
3254
3320
  isCancelled: boolean;
3255
- isTest: boolean;
3256
3321
  updatedAt: Date;
3257
- costInCents: number;
3258
- baseCostInCents: number;
3259
- durationMs: number;
3260
3322
  batchId?: string | undefined;
3261
3323
  idempotencyKey?: string | undefined;
3262
3324
  version?: string | undefined;
@@ -3265,12 +3327,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3265
3327
  delayedUntil?: Date | undefined;
3266
3328
  ttl?: string | undefined;
3267
3329
  expiredAt?: Date | undefined;
3330
+ metadata?: Record<string, any> | undefined;
3268
3331
  } | undefined;
3269
3332
  parent?: {
3270
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3333
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3271
3334
  id: string;
3272
- createdAt: Date;
3273
3335
  tags: string[];
3336
+ isTest: boolean;
3337
+ createdAt: Date;
3338
+ durationMs: number;
3339
+ costInCents: number;
3340
+ baseCostInCents: number;
3274
3341
  depth: number;
3275
3342
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3276
3343
  taskIdentifier: string;
@@ -3280,11 +3347,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3280
3347
  isSuccess: boolean;
3281
3348
  isFailed: boolean;
3282
3349
  isCancelled: boolean;
3283
- isTest: boolean;
3284
3350
  updatedAt: Date;
3285
- costInCents: number;
3286
- baseCostInCents: number;
3287
- durationMs: number;
3288
3351
  batchId?: string | undefined;
3289
3352
  idempotencyKey?: string | undefined;
3290
3353
  version?: string | undefined;
@@ -3293,12 +3356,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3293
3356
  delayedUntil?: Date | undefined;
3294
3357
  ttl?: string | undefined;
3295
3358
  expiredAt?: Date | undefined;
3359
+ metadata?: Record<string, any> | undefined;
3296
3360
  } | undefined;
3297
3361
  children?: {
3298
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3362
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3299
3363
  id: string;
3300
- createdAt: Date;
3301
3364
  tags: string[];
3365
+ isTest: boolean;
3366
+ createdAt: Date;
3367
+ durationMs: number;
3368
+ costInCents: number;
3369
+ baseCostInCents: number;
3302
3370
  depth: number;
3303
3371
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3304
3372
  taskIdentifier: string;
@@ -3308,11 +3376,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3308
3376
  isSuccess: boolean;
3309
3377
  isFailed: boolean;
3310
3378
  isCancelled: boolean;
3311
- isTest: boolean;
3312
3379
  updatedAt: Date;
3313
- costInCents: number;
3314
- baseCostInCents: number;
3315
- durationMs: number;
3316
3380
  batchId?: string | undefined;
3317
3381
  idempotencyKey?: string | undefined;
3318
3382
  version?: string | undefined;
@@ -3321,6 +3385,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3321
3385
  delayedUntil?: Date | undefined;
3322
3386
  ttl?: string | undefined;
3323
3387
  expiredAt?: Date | undefined;
3388
+ metadata?: Record<string, any> | undefined;
3324
3389
  }[] | undefined;
3325
3390
  };
3326
3391
  attempts: ({
@@ -3344,8 +3409,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3344
3409
  id: string;
3345
3410
  generator: {
3346
3411
  type: "CRON";
3347
- expression: string;
3348
3412
  description: string;
3413
+ expression: string;
3349
3414
  };
3350
3415
  externalId?: string | undefined;
3351
3416
  deduplicationKey?: string | undefined;
@@ -3358,11 +3423,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3358
3423
  delayedUntil?: Date | undefined;
3359
3424
  ttl?: string | undefined;
3360
3425
  expiredAt?: Date | undefined;
3426
+ metadata?: Record<string, any> | undefined;
3361
3427
  }, {
3362
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3428
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3363
3429
  id: string;
3364
- createdAt: Date;
3365
3430
  tags: string[];
3431
+ isTest: boolean;
3432
+ createdAt: Date;
3433
+ durationMs: number;
3434
+ costInCents: number;
3435
+ baseCostInCents: number;
3366
3436
  depth: number;
3367
3437
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3368
3438
  taskIdentifier: string;
@@ -3372,17 +3442,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3372
3442
  isSuccess: boolean;
3373
3443
  isFailed: boolean;
3374
3444
  isCancelled: boolean;
3375
- isTest: boolean;
3376
3445
  updatedAt: Date;
3377
- costInCents: number;
3378
- baseCostInCents: number;
3379
- durationMs: number;
3380
3446
  relatedRuns: {
3381
3447
  root?: {
3382
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3448
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3383
3449
  id: string;
3384
- createdAt: Date;
3385
3450
  tags: string[];
3451
+ isTest: boolean;
3452
+ createdAt: Date;
3453
+ durationMs: number;
3454
+ costInCents: number;
3455
+ baseCostInCents: number;
3386
3456
  depth: number;
3387
3457
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3388
3458
  taskIdentifier: string;
@@ -3392,11 +3462,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3392
3462
  isSuccess: boolean;
3393
3463
  isFailed: boolean;
3394
3464
  isCancelled: boolean;
3395
- isTest: boolean;
3396
3465
  updatedAt: Date;
3397
- costInCents: number;
3398
- baseCostInCents: number;
3399
- durationMs: number;
3400
3466
  batchId?: string | undefined;
3401
3467
  idempotencyKey?: string | undefined;
3402
3468
  version?: string | undefined;
@@ -3405,12 +3471,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3405
3471
  delayedUntil?: Date | undefined;
3406
3472
  ttl?: string | undefined;
3407
3473
  expiredAt?: Date | undefined;
3474
+ metadata?: Record<string, any> | undefined;
3408
3475
  } | undefined;
3409
3476
  parent?: {
3410
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3477
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3411
3478
  id: string;
3412
- createdAt: Date;
3413
3479
  tags: string[];
3480
+ isTest: boolean;
3481
+ createdAt: Date;
3482
+ durationMs: number;
3483
+ costInCents: number;
3484
+ baseCostInCents: number;
3414
3485
  depth: number;
3415
3486
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3416
3487
  taskIdentifier: string;
@@ -3420,11 +3491,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3420
3491
  isSuccess: boolean;
3421
3492
  isFailed: boolean;
3422
3493
  isCancelled: boolean;
3423
- isTest: boolean;
3424
3494
  updatedAt: Date;
3425
- costInCents: number;
3426
- baseCostInCents: number;
3427
- durationMs: number;
3428
3495
  batchId?: string | undefined;
3429
3496
  idempotencyKey?: string | undefined;
3430
3497
  version?: string | undefined;
@@ -3433,12 +3500,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3433
3500
  delayedUntil?: Date | undefined;
3434
3501
  ttl?: string | undefined;
3435
3502
  expiredAt?: Date | undefined;
3503
+ metadata?: Record<string, any> | undefined;
3436
3504
  } | undefined;
3437
3505
  children?: {
3438
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3506
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3439
3507
  id: string;
3440
- createdAt: Date;
3441
3508
  tags: string[];
3509
+ isTest: boolean;
3510
+ createdAt: Date;
3511
+ durationMs: number;
3512
+ costInCents: number;
3513
+ baseCostInCents: number;
3442
3514
  depth: number;
3443
3515
  triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3444
3516
  taskIdentifier: string;
@@ -3448,11 +3520,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3448
3520
  isSuccess: boolean;
3449
3521
  isFailed: boolean;
3450
3522
  isCancelled: boolean;
3451
- isTest: boolean;
3452
3523
  updatedAt: Date;
3453
- costInCents: number;
3454
- baseCostInCents: number;
3455
- durationMs: number;
3456
3524
  batchId?: string | undefined;
3457
3525
  idempotencyKey?: string | undefined;
3458
3526
  version?: string | undefined;
@@ -3461,6 +3529,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3461
3529
  delayedUntil?: Date | undefined;
3462
3530
  ttl?: string | undefined;
3463
3531
  expiredAt?: Date | undefined;
3532
+ metadata?: Record<string, any> | undefined;
3464
3533
  }[] | undefined;
3465
3534
  };
3466
3535
  attempts: ({
@@ -3484,8 +3553,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3484
3553
  id: string;
3485
3554
  generator: {
3486
3555
  type: "CRON";
3487
- expression: string;
3488
3556
  description: string;
3557
+ expression: string;
3489
3558
  };
3490
3559
  externalId?: string | undefined;
3491
3560
  deduplicationKey?: string | undefined;
@@ -3498,6 +3567,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3498
3567
  delayedUntil?: Date | undefined;
3499
3568
  ttl?: string | undefined;
3500
3569
  expiredAt?: Date | undefined;
3570
+ metadata?: Record<string, any> | undefined;
3501
3571
  }>;
3502
3572
  export type RetrieveRunResponse = z.infer<typeof RetrieveRunResponse>;
3503
3573
  export declare const ListRunResponseItem: z.ZodObject<{
@@ -3506,16 +3576,16 @@ export declare const ListRunResponseItem: z.ZodObject<{
3506
3576
  name: z.ZodString;
3507
3577
  user: z.ZodOptional<z.ZodString>;
3508
3578
  }, "strip", z.ZodTypeAny, {
3509
- id: string;
3510
3579
  name: string;
3580
+ id: string;
3511
3581
  user?: string | undefined;
3512
3582
  }, {
3513
- id: string;
3514
3583
  name: string;
3584
+ id: string;
3515
3585
  user?: string | undefined;
3516
3586
  }>;
3517
3587
  id: z.ZodString;
3518
- status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
3588
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED", "TIMED_OUT"]>;
3519
3589
  taskIdentifier: z.ZodString;
3520
3590
  idempotencyKey: z.ZodOptional<z.ZodString>;
3521
3591
  version: z.ZodOptional<z.ZodString>;
@@ -3537,11 +3607,16 @@ export declare const ListRunResponseItem: z.ZodObject<{
3537
3607
  costInCents: z.ZodNumber;
3538
3608
  baseCostInCents: z.ZodNumber;
3539
3609
  durationMs: z.ZodNumber;
3610
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3540
3611
  }, "strip", z.ZodTypeAny, {
3541
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3612
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3542
3613
  id: string;
3543
- createdAt: Date;
3544
3614
  tags: string[];
3615
+ isTest: boolean;
3616
+ createdAt: Date;
3617
+ durationMs: number;
3618
+ costInCents: number;
3619
+ baseCostInCents: number;
3545
3620
  taskIdentifier: string;
3546
3621
  isQueued: boolean;
3547
3622
  isExecuting: boolean;
@@ -3549,14 +3624,10 @@ export declare const ListRunResponseItem: z.ZodObject<{
3549
3624
  isSuccess: boolean;
3550
3625
  isFailed: boolean;
3551
3626
  isCancelled: boolean;
3552
- isTest: boolean;
3553
3627
  updatedAt: Date;
3554
- costInCents: number;
3555
- baseCostInCents: number;
3556
- durationMs: number;
3557
3628
  env: {
3558
- id: string;
3559
3629
  name: string;
3630
+ id: string;
3560
3631
  user?: string | undefined;
3561
3632
  };
3562
3633
  idempotencyKey?: string | undefined;
@@ -3566,11 +3637,16 @@ export declare const ListRunResponseItem: z.ZodObject<{
3566
3637
  delayedUntil?: Date | undefined;
3567
3638
  ttl?: string | undefined;
3568
3639
  expiredAt?: Date | undefined;
3640
+ metadata?: Record<string, any> | undefined;
3569
3641
  }, {
3570
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3642
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3571
3643
  id: string;
3572
- createdAt: Date;
3573
3644
  tags: string[];
3645
+ isTest: boolean;
3646
+ createdAt: Date;
3647
+ durationMs: number;
3648
+ costInCents: number;
3649
+ baseCostInCents: number;
3574
3650
  taskIdentifier: string;
3575
3651
  isQueued: boolean;
3576
3652
  isExecuting: boolean;
@@ -3578,14 +3654,10 @@ export declare const ListRunResponseItem: z.ZodObject<{
3578
3654
  isSuccess: boolean;
3579
3655
  isFailed: boolean;
3580
3656
  isCancelled: boolean;
3581
- isTest: boolean;
3582
3657
  updatedAt: Date;
3583
- costInCents: number;
3584
- baseCostInCents: number;
3585
- durationMs: number;
3586
3658
  env: {
3587
- id: string;
3588
3659
  name: string;
3660
+ id: string;
3589
3661
  user?: string | undefined;
3590
3662
  };
3591
3663
  idempotencyKey?: string | undefined;
@@ -3595,6 +3667,7 @@ export declare const ListRunResponseItem: z.ZodObject<{
3595
3667
  delayedUntil?: Date | undefined;
3596
3668
  ttl?: string | undefined;
3597
3669
  expiredAt?: Date | undefined;
3670
+ metadata?: Record<string, any> | undefined;
3598
3671
  }>;
3599
3672
  export type ListRunResponseItem = z.infer<typeof ListRunResponseItem>;
3600
3673
  export declare const ListRunResponse: z.ZodObject<{
@@ -3604,16 +3677,16 @@ export declare const ListRunResponse: z.ZodObject<{
3604
3677
  name: z.ZodString;
3605
3678
  user: z.ZodOptional<z.ZodString>;
3606
3679
  }, "strip", z.ZodTypeAny, {
3607
- id: string;
3608
3680
  name: string;
3681
+ id: string;
3609
3682
  user?: string | undefined;
3610
3683
  }, {
3611
- id: string;
3612
3684
  name: string;
3685
+ id: string;
3613
3686
  user?: string | undefined;
3614
3687
  }>;
3615
3688
  id: z.ZodString;
3616
- status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
3689
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED", "TIMED_OUT"]>;
3617
3690
  taskIdentifier: z.ZodString;
3618
3691
  idempotencyKey: z.ZodOptional<z.ZodString>;
3619
3692
  version: z.ZodOptional<z.ZodString>;
@@ -3635,11 +3708,16 @@ export declare const ListRunResponse: z.ZodObject<{
3635
3708
  costInCents: z.ZodNumber;
3636
3709
  baseCostInCents: z.ZodNumber;
3637
3710
  durationMs: z.ZodNumber;
3711
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3638
3712
  }, "strip", z.ZodTypeAny, {
3639
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3713
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3640
3714
  id: string;
3641
- createdAt: Date;
3642
3715
  tags: string[];
3716
+ isTest: boolean;
3717
+ createdAt: Date;
3718
+ durationMs: number;
3719
+ costInCents: number;
3720
+ baseCostInCents: number;
3643
3721
  taskIdentifier: string;
3644
3722
  isQueued: boolean;
3645
3723
  isExecuting: boolean;
@@ -3647,14 +3725,10 @@ export declare const ListRunResponse: z.ZodObject<{
3647
3725
  isSuccess: boolean;
3648
3726
  isFailed: boolean;
3649
3727
  isCancelled: boolean;
3650
- isTest: boolean;
3651
3728
  updatedAt: Date;
3652
- costInCents: number;
3653
- baseCostInCents: number;
3654
- durationMs: number;
3655
3729
  env: {
3656
- id: string;
3657
3730
  name: string;
3731
+ id: string;
3658
3732
  user?: string | undefined;
3659
3733
  };
3660
3734
  idempotencyKey?: string | undefined;
@@ -3664,11 +3738,16 @@ export declare const ListRunResponse: z.ZodObject<{
3664
3738
  delayedUntil?: Date | undefined;
3665
3739
  ttl?: string | undefined;
3666
3740
  expiredAt?: Date | undefined;
3741
+ metadata?: Record<string, any> | undefined;
3667
3742
  }, {
3668
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3743
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3669
3744
  id: string;
3670
- createdAt: Date;
3671
3745
  tags: string[];
3746
+ isTest: boolean;
3747
+ createdAt: Date;
3748
+ durationMs: number;
3749
+ costInCents: number;
3750
+ baseCostInCents: number;
3672
3751
  taskIdentifier: string;
3673
3752
  isQueued: boolean;
3674
3753
  isExecuting: boolean;
@@ -3676,14 +3755,10 @@ export declare const ListRunResponse: z.ZodObject<{
3676
3755
  isSuccess: boolean;
3677
3756
  isFailed: boolean;
3678
3757
  isCancelled: boolean;
3679
- isTest: boolean;
3680
3758
  updatedAt: Date;
3681
- costInCents: number;
3682
- baseCostInCents: number;
3683
- durationMs: number;
3684
3759
  env: {
3685
- id: string;
3686
3760
  name: string;
3761
+ id: string;
3687
3762
  user?: string | undefined;
3688
3763
  };
3689
3764
  idempotencyKey?: string | undefined;
@@ -3693,6 +3768,7 @@ export declare const ListRunResponse: z.ZodObject<{
3693
3768
  delayedUntil?: Date | undefined;
3694
3769
  ttl?: string | undefined;
3695
3770
  expiredAt?: Date | undefined;
3771
+ metadata?: Record<string, any> | undefined;
3696
3772
  }>, "many">;
3697
3773
  pagination: z.ZodObject<{
3698
3774
  next: z.ZodOptional<z.ZodString>;
@@ -3706,10 +3782,14 @@ export declare const ListRunResponse: z.ZodObject<{
3706
3782
  }>;
3707
3783
  }, "strip", z.ZodTypeAny, {
3708
3784
  data: {
3709
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3785
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3710
3786
  id: string;
3711
- createdAt: Date;
3712
3787
  tags: string[];
3788
+ isTest: boolean;
3789
+ createdAt: Date;
3790
+ durationMs: number;
3791
+ costInCents: number;
3792
+ baseCostInCents: number;
3713
3793
  taskIdentifier: string;
3714
3794
  isQueued: boolean;
3715
3795
  isExecuting: boolean;
@@ -3717,14 +3797,10 @@ export declare const ListRunResponse: z.ZodObject<{
3717
3797
  isSuccess: boolean;
3718
3798
  isFailed: boolean;
3719
3799
  isCancelled: boolean;
3720
- isTest: boolean;
3721
3800
  updatedAt: Date;
3722
- costInCents: number;
3723
- baseCostInCents: number;
3724
- durationMs: number;
3725
3801
  env: {
3726
- id: string;
3727
3802
  name: string;
3803
+ id: string;
3728
3804
  user?: string | undefined;
3729
3805
  };
3730
3806
  idempotencyKey?: string | undefined;
@@ -3734,6 +3810,7 @@ export declare const ListRunResponse: z.ZodObject<{
3734
3810
  delayedUntil?: Date | undefined;
3735
3811
  ttl?: string | undefined;
3736
3812
  expiredAt?: Date | undefined;
3813
+ metadata?: Record<string, any> | undefined;
3737
3814
  }[];
3738
3815
  pagination: {
3739
3816
  next?: string | undefined;
@@ -3741,10 +3818,14 @@ export declare const ListRunResponse: z.ZodObject<{
3741
3818
  };
3742
3819
  }, {
3743
3820
  data: {
3744
- status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3821
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3745
3822
  id: string;
3746
- createdAt: Date;
3747
3823
  tags: string[];
3824
+ isTest: boolean;
3825
+ createdAt: Date;
3826
+ durationMs: number;
3827
+ costInCents: number;
3828
+ baseCostInCents: number;
3748
3829
  taskIdentifier: string;
3749
3830
  isQueued: boolean;
3750
3831
  isExecuting: boolean;
@@ -3752,14 +3833,10 @@ export declare const ListRunResponse: z.ZodObject<{
3752
3833
  isSuccess: boolean;
3753
3834
  isFailed: boolean;
3754
3835
  isCancelled: boolean;
3755
- isTest: boolean;
3756
3836
  updatedAt: Date;
3757
- costInCents: number;
3758
- baseCostInCents: number;
3759
- durationMs: number;
3760
3837
  env: {
3761
- id: string;
3762
3838
  name: string;
3839
+ id: string;
3763
3840
  user?: string | undefined;
3764
3841
  };
3765
3842
  idempotencyKey?: string | undefined;
@@ -3769,6 +3846,7 @@ export declare const ListRunResponse: z.ZodObject<{
3769
3846
  delayedUntil?: Date | undefined;
3770
3847
  ttl?: string | undefined;
3771
3848
  expiredAt?: Date | undefined;
3849
+ metadata?: Record<string, any> | undefined;
3772
3850
  }[];
3773
3851
  pagination: {
3774
3852
  next?: string | undefined;
@@ -3843,3 +3921,22 @@ export declare const EnvironmentVariables: z.ZodArray<z.ZodObject<{
3843
3921
  name: string;
3844
3922
  }>, "many">;
3845
3923
  export type EnvironmentVariables = z.infer<typeof EnvironmentVariables>;
3924
+ export declare const UpdateMetadataRequestBody: z.ZodObject<{
3925
+ metadata: z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>;
3926
+ metadataType: z.ZodOptional<z.ZodString>;
3927
+ }, "strip", z.ZodTypeAny, {
3928
+ metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3929
+ metadataType?: string | undefined;
3930
+ }, {
3931
+ metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3932
+ metadataType?: string | undefined;
3933
+ }>;
3934
+ export type UpdateMetadataRequestBody = z.infer<typeof UpdateMetadataRequestBody>;
3935
+ export declare const UpdateMetadataResponseBody: z.ZodObject<{
3936
+ metadata: z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>;
3937
+ }, "strip", z.ZodTypeAny, {
3938
+ metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3939
+ }, {
3940
+ metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3941
+ }>;
3942
+ export type UpdateMetadataResponseBody = z.infer<typeof UpdateMetadataResponseBody>;