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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/commonjs/logger.js +2 -0
  2. package/dist/commonjs/logger.js.map +1 -1
  3. package/dist/commonjs/v3/apiClient/core.js +0 -3
  4. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  5. package/dist/commonjs/v3/config.d.ts +48 -36
  6. package/dist/commonjs/v3/index.d.ts +1 -0
  7. package/dist/commonjs/v3/index.js +1 -0
  8. package/dist/commonjs/v3/index.js.map +1 -1
  9. package/dist/commonjs/v3/isomorphic/index.d.ts +1 -0
  10. package/dist/commonjs/v3/isomorphic/index.js +1 -0
  11. package/dist/commonjs/v3/isomorphic/index.js.map +1 -1
  12. package/dist/commonjs/v3/isomorphic/traceContext.d.ts +6 -0
  13. package/dist/commonjs/v3/isomorphic/traceContext.js +25 -0
  14. package/dist/commonjs/v3/isomorphic/traceContext.js.map +1 -0
  15. package/dist/commonjs/v3/otel/tracingSDK.d.ts +1 -14
  16. package/dist/commonjs/v3/otel/tracingSDK.js +148 -86
  17. package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
  18. package/dist/commonjs/v3/resource-catalog/catalog.d.ts +2 -1
  19. package/dist/commonjs/v3/resource-catalog/index.d.ts +2 -1
  20. package/dist/commonjs/v3/resource-catalog/index.js +3 -0
  21. package/dist/commonjs/v3/resource-catalog/index.js.map +1 -1
  22. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.d.ts +2 -1
  23. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js +3 -0
  24. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  25. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.d.ts +3 -1
  26. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js +11 -3
  27. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  28. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +17 -0
  29. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +361 -246
  30. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +13 -0
  31. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +343 -246
  32. package/dist/commonjs/v3/schemas/api.d.ts +183 -80
  33. package/dist/commonjs/v3/schemas/api.js +2 -0
  34. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  35. package/dist/commonjs/v3/schemas/build.d.ts +52 -40
  36. package/dist/commonjs/v3/schemas/checkpoints.d.ts +18 -0
  37. package/dist/commonjs/v3/schemas/common.d.ts +945 -684
  38. package/dist/commonjs/v3/schemas/common.js +6 -0
  39. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  40. package/dist/commonjs/v3/schemas/fetch.d.ts +12 -12
  41. package/dist/commonjs/v3/schemas/messages.d.ts +4600 -3885
  42. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +18 -18
  43. package/dist/commonjs/v3/schemas/resources.d.ts +34 -28
  44. package/dist/commonjs/v3/schemas/resources.js +2 -0
  45. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  46. package/dist/commonjs/v3/schemas/runEngine.d.ts +120 -12
  47. package/dist/commonjs/v3/schemas/runEngine.js +6 -1
  48. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  49. package/dist/commonjs/v3/schemas/schemas.d.ts +206 -130
  50. package/dist/commonjs/v3/schemas/schemas.js +12 -1
  51. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  52. package/dist/commonjs/v3/serverOnly/index.d.ts +1 -0
  53. package/dist/commonjs/v3/serverOnly/index.js +1 -0
  54. package/dist/commonjs/v3/serverOnly/index.js.map +1 -1
  55. package/dist/commonjs/v3/serverOnly/placementTags.d.ts +20 -0
  56. package/dist/commonjs/v3/serverOnly/placementTags.js +49 -0
  57. package/dist/commonjs/v3/serverOnly/placementTags.js.map +1 -0
  58. package/dist/commonjs/v3/taskContext/otelProcessors.d.ts +4 -5
  59. package/dist/commonjs/v3/taskContext/otelProcessors.js +4 -3
  60. package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
  61. package/dist/commonjs/v3/trace-context-api.d.ts +3 -0
  62. package/dist/commonjs/v3/trace-context-api.js +9 -0
  63. package/dist/commonjs/v3/trace-context-api.js.map +1 -0
  64. package/dist/commonjs/v3/traceContext/api.d.ts +20 -0
  65. package/dist/commonjs/v3/traceContext/api.js +59 -0
  66. package/dist/commonjs/v3/traceContext/api.js.map +1 -0
  67. package/dist/commonjs/v3/traceContext/manager.d.ts +15 -0
  68. package/dist/commonjs/v3/traceContext/manager.js +62 -0
  69. package/dist/commonjs/v3/traceContext/manager.js.map +1 -0
  70. package/dist/commonjs/v3/traceContext/types.d.ts +13 -0
  71. package/dist/commonjs/v3/traceContext/types.js +3 -0
  72. package/dist/commonjs/v3/traceContext/types.js.map +1 -0
  73. package/dist/commonjs/v3/tracer.d.ts +0 -1
  74. package/dist/commonjs/v3/tracer.js +0 -3
  75. package/dist/commonjs/v3/tracer.js.map +1 -1
  76. package/dist/commonjs/v3/types/index.d.ts +1 -0
  77. package/dist/commonjs/v3/types/index.js +1 -0
  78. package/dist/commonjs/v3/types/index.js.map +1 -1
  79. package/dist/commonjs/v3/types/jsonSchema.d.ts +51 -0
  80. package/dist/commonjs/v3/types/jsonSchema.js +3 -0
  81. package/dist/commonjs/v3/types/jsonSchema.js.map +1 -0
  82. package/dist/commonjs/v3/types/tasks.d.ts +25 -0
  83. package/dist/commonjs/v3/types/tasks.js.map +1 -1
  84. package/dist/commonjs/v3/utils/globals.d.ts +2 -0
  85. package/dist/commonjs/v3/utils/globals.js.map +1 -1
  86. package/dist/commonjs/v3/workers/index.d.ts +1 -0
  87. package/dist/commonjs/v3/workers/index.js +3 -1
  88. package/dist/commonjs/v3/workers/index.js.map +1 -1
  89. package/dist/commonjs/v3/workers/taskExecutor.d.ts +2 -2
  90. package/dist/commonjs/v3/workers/taskExecutor.js +3 -15
  91. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  92. package/dist/commonjs/version.js +1 -1
  93. package/dist/esm/logger.js +2 -0
  94. package/dist/esm/logger.js.map +1 -1
  95. package/dist/esm/v3/apiClient/core.js +0 -3
  96. package/dist/esm/v3/apiClient/core.js.map +1 -1
  97. package/dist/esm/v3/config.d.ts +48 -36
  98. package/dist/esm/v3/index.d.ts +1 -0
  99. package/dist/esm/v3/index.js +1 -0
  100. package/dist/esm/v3/index.js.map +1 -1
  101. package/dist/esm/v3/isomorphic/index.d.ts +1 -0
  102. package/dist/esm/v3/isomorphic/index.js +1 -0
  103. package/dist/esm/v3/isomorphic/index.js.map +1 -1
  104. package/dist/esm/v3/isomorphic/traceContext.d.ts +6 -0
  105. package/dist/esm/v3/isomorphic/traceContext.js +21 -0
  106. package/dist/esm/v3/isomorphic/traceContext.js.map +1 -0
  107. package/dist/esm/v3/otel/tracingSDK.d.ts +1 -14
  108. package/dist/esm/v3/otel/tracingSDK.js +151 -89
  109. package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
  110. package/dist/esm/v3/resource-catalog/catalog.d.ts +2 -1
  111. package/dist/esm/v3/resource-catalog/index.d.ts +2 -1
  112. package/dist/esm/v3/resource-catalog/index.js +3 -0
  113. package/dist/esm/v3/resource-catalog/index.js.map +1 -1
  114. package/dist/esm/v3/resource-catalog/noopResourceCatalog.d.ts +2 -1
  115. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js +3 -0
  116. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  117. package/dist/esm/v3/resource-catalog/standardResourceCatalog.d.ts +3 -1
  118. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js +11 -3
  119. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  120. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +17 -0
  121. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +361 -246
  122. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +13 -0
  123. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +343 -246
  124. package/dist/esm/v3/schemas/api.d.ts +183 -80
  125. package/dist/esm/v3/schemas/api.js +2 -0
  126. package/dist/esm/v3/schemas/api.js.map +1 -1
  127. package/dist/esm/v3/schemas/build.d.ts +52 -40
  128. package/dist/esm/v3/schemas/checkpoints.d.ts +18 -0
  129. package/dist/esm/v3/schemas/common.d.ts +945 -684
  130. package/dist/esm/v3/schemas/common.js +6 -0
  131. package/dist/esm/v3/schemas/common.js.map +1 -1
  132. package/dist/esm/v3/schemas/fetch.d.ts +12 -12
  133. package/dist/esm/v3/schemas/messages.d.ts +4600 -3885
  134. package/dist/esm/v3/schemas/openTelemetry.d.ts +18 -18
  135. package/dist/esm/v3/schemas/resources.d.ts +34 -28
  136. package/dist/esm/v3/schemas/resources.js +2 -0
  137. package/dist/esm/v3/schemas/resources.js.map +1 -1
  138. package/dist/esm/v3/schemas/runEngine.d.ts +120 -12
  139. package/dist/esm/v3/schemas/runEngine.js +5 -0
  140. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  141. package/dist/esm/v3/schemas/schemas.d.ts +206 -130
  142. package/dist/esm/v3/schemas/schemas.js +11 -0
  143. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  144. package/dist/esm/v3/serverOnly/index.d.ts +1 -0
  145. package/dist/esm/v3/serverOnly/index.js +1 -0
  146. package/dist/esm/v3/serverOnly/index.js.map +1 -1
  147. package/dist/esm/v3/serverOnly/placementTags.d.ts +20 -0
  148. package/dist/esm/v3/serverOnly/placementTags.js +44 -0
  149. package/dist/esm/v3/serverOnly/placementTags.js.map +1 -0
  150. package/dist/esm/v3/taskContext/otelProcessors.d.ts +4 -5
  151. package/dist/esm/v3/taskContext/otelProcessors.js +4 -3
  152. package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
  153. package/dist/esm/v3/trace-context-api.d.ts +3 -0
  154. package/dist/esm/v3/trace-context-api.js +6 -0
  155. package/dist/esm/v3/trace-context-api.js.map +1 -0
  156. package/dist/esm/v3/traceContext/api.d.ts +20 -0
  157. package/dist/esm/v3/traceContext/api.js +55 -0
  158. package/dist/esm/v3/traceContext/api.js.map +1 -0
  159. package/dist/esm/v3/traceContext/manager.d.ts +15 -0
  160. package/dist/esm/v3/traceContext/manager.js +58 -0
  161. package/dist/esm/v3/traceContext/manager.js.map +1 -0
  162. package/dist/esm/v3/traceContext/types.d.ts +13 -0
  163. package/dist/esm/v3/traceContext/types.js +2 -0
  164. package/dist/esm/v3/traceContext/types.js.map +1 -0
  165. package/dist/esm/v3/tracer.d.ts +0 -1
  166. package/dist/esm/v3/tracer.js +1 -4
  167. package/dist/esm/v3/tracer.js.map +1 -1
  168. package/dist/esm/v3/types/index.d.ts +1 -0
  169. package/dist/esm/v3/types/index.js +1 -0
  170. package/dist/esm/v3/types/index.js.map +1 -1
  171. package/dist/esm/v3/types/jsonSchema.d.ts +51 -0
  172. package/dist/esm/v3/types/jsonSchema.js +2 -0
  173. package/dist/esm/v3/types/jsonSchema.js.map +1 -0
  174. package/dist/esm/v3/types/tasks.d.ts +25 -0
  175. package/dist/esm/v3/types/tasks.js.map +1 -1
  176. package/dist/esm/v3/utils/globals.d.ts +2 -0
  177. package/dist/esm/v3/utils/globals.js.map +1 -1
  178. package/dist/esm/v3/workers/index.d.ts +1 -0
  179. package/dist/esm/v3/workers/index.js +1 -0
  180. package/dist/esm/v3/workers/index.js.map +1 -1
  181. package/dist/esm/v3/workers/taskExecutor.d.ts +2 -2
  182. package/dist/esm/v3/workers/taskExecutor.js +5 -17
  183. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  184. package/dist/esm/version.js +1 -1
  185. package/package.json +12 -13
@@ -468,6 +468,16 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
468
468
  }, {
469
469
  id: string;
470
470
  }>;
471
+ placementTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
472
+ key: z.ZodString;
473
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ key: string;
476
+ values?: string[] | undefined;
477
+ }, {
478
+ key: string;
479
+ values?: string[] | undefined;
480
+ }>, "many">>;
471
481
  }, "strip", z.ZodTypeAny, {
472
482
  version: "1";
473
483
  environment: {
@@ -544,6 +554,10 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
544
554
  reason?: string | null | undefined;
545
555
  } | undefined;
546
556
  image?: string | undefined;
557
+ placementTags?: {
558
+ key: string;
559
+ values?: string[] | undefined;
560
+ }[] | undefined;
547
561
  }, {
548
562
  version: "1";
549
563
  environment: {
@@ -620,6 +634,10 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
620
634
  reason?: string | null | undefined;
621
635
  } | undefined;
622
636
  image?: string | undefined;
637
+ placementTags?: {
638
+ key: string;
639
+ values?: string[] | undefined;
640
+ }[] | undefined;
623
641
  }>, "many">;
624
642
  export type WorkerApiDequeueResponseBody = z.infer<typeof WorkerApiDequeueResponseBody>;
625
643
  export declare const WorkerApiRunHeartbeatRequestBody: z.ZodObject<{
@@ -741,6 +759,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
741
759
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
742
760
  branchName: z.ZodOptional<z.ZodString>;
743
761
  git: z.ZodOptional<z.ZodObject<{
762
+ provider: z.ZodOptional<z.ZodString>;
763
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
764
+ ghUsername: z.ZodOptional<z.ZodString>;
765
+ ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
744
766
  commitAuthorName: z.ZodOptional<z.ZodString>;
745
767
  commitMessage: z.ZodOptional<z.ZodString>;
746
768
  commitRef: z.ZodOptional<z.ZodString>;
@@ -752,6 +774,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
752
774
  pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
753
775
  }, "strip", z.ZodTypeAny, {
754
776
  dirty?: boolean | undefined;
777
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
778
+ provider?: string | undefined;
779
+ ghUsername?: string | undefined;
780
+ ghUserAvatarUrl?: string | undefined;
755
781
  commitAuthorName?: string | undefined;
756
782
  commitMessage?: string | undefined;
757
783
  commitRef?: string | undefined;
@@ -762,6 +788,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
762
788
  pullRequestState?: "open" | "closed" | "merged" | undefined;
763
789
  }, {
764
790
  dirty?: boolean | undefined;
791
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
792
+ provider?: string | undefined;
793
+ ghUsername?: string | undefined;
794
+ ghUserAvatarUrl?: string | undefined;
765
795
  commitAuthorName?: string | undefined;
766
796
  commitMessage?: string | undefined;
767
797
  commitRef?: string | undefined;
@@ -778,6 +808,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
778
808
  branchName?: string | undefined;
779
809
  git?: {
780
810
  dirty?: boolean | undefined;
811
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
812
+ provider?: string | undefined;
813
+ ghUsername?: string | undefined;
814
+ ghUserAvatarUrl?: string | undefined;
781
815
  commitAuthorName?: string | undefined;
782
816
  commitMessage?: string | undefined;
783
817
  commitRef?: string | undefined;
@@ -794,6 +828,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
794
828
  branchName?: string | undefined;
795
829
  git?: {
796
830
  dirty?: boolean | undefined;
831
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
832
+ provider?: string | undefined;
833
+ ghUsername?: string | undefined;
834
+ ghUserAvatarUrl?: string | undefined;
797
835
  commitAuthorName?: string | undefined;
798
836
  commitMessage?: string | undefined;
799
837
  commitRef?: string | undefined;
@@ -863,6 +901,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
863
901
  runtime: z.ZodString;
864
902
  runtimeVersion: z.ZodString;
865
903
  git: z.ZodOptional<z.ZodObject<{
904
+ provider: z.ZodOptional<z.ZodString>;
905
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
906
+ ghUsername: z.ZodOptional<z.ZodString>;
907
+ ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
866
908
  commitAuthorName: z.ZodOptional<z.ZodString>;
867
909
  commitMessage: z.ZodOptional<z.ZodString>;
868
910
  commitRef: z.ZodOptional<z.ZodString>;
@@ -874,6 +916,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
874
916
  pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
875
917
  }, "strip", z.ZodTypeAny, {
876
918
  dirty?: boolean | undefined;
919
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
920
+ provider?: string | undefined;
921
+ ghUsername?: string | undefined;
922
+ ghUserAvatarUrl?: string | undefined;
877
923
  commitAuthorName?: string | undefined;
878
924
  commitMessage?: string | undefined;
879
925
  commitRef?: string | undefined;
@@ -884,6 +930,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
884
930
  pullRequestState?: "open" | "closed" | "merged" | undefined;
885
931
  }, {
886
932
  dirty?: boolean | undefined;
933
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
934
+ provider?: string | undefined;
935
+ ghUsername?: string | undefined;
936
+ ghUserAvatarUrl?: string | undefined;
887
937
  commitAuthorName?: string | undefined;
888
938
  commitMessage?: string | undefined;
889
939
  commitRef?: string | undefined;
@@ -901,6 +951,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
901
951
  runtimeVersion: string;
902
952
  git?: {
903
953
  dirty?: boolean | undefined;
954
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
955
+ provider?: string | undefined;
956
+ ghUsername?: string | undefined;
957
+ ghUserAvatarUrl?: string | undefined;
904
958
  commitAuthorName?: string | undefined;
905
959
  commitMessage?: string | undefined;
906
960
  commitRef?: string | undefined;
@@ -918,6 +972,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
918
972
  runtimeVersion: string;
919
973
  git?: {
920
974
  dirty?: boolean | undefined;
975
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
976
+ provider?: string | undefined;
977
+ ghUsername?: string | undefined;
978
+ ghUserAvatarUrl?: string | undefined;
921
979
  commitAuthorName?: string | undefined;
922
980
  commitMessage?: string | undefined;
923
981
  commitRef?: string | undefined;
@@ -957,6 +1015,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
957
1015
  rootTaskRunId: z.ZodOptional<z.ZodString>;
958
1016
  durationMs: z.ZodOptional<z.ZodNumber>;
959
1017
  costInCents: z.ZodOptional<z.ZodNumber>;
1018
+ region: z.ZodOptional<z.ZodString>;
960
1019
  }, "strip", z.ZodTypeAny, {
961
1020
  payload: string;
962
1021
  id: string;
@@ -976,6 +1035,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
976
1035
  rootTaskRunId?: string | undefined;
977
1036
  durationMs?: number | undefined;
978
1037
  costInCents?: number | undefined;
1038
+ region?: string | undefined;
979
1039
  }, {
980
1040
  payload: string;
981
1041
  id: string;
@@ -995,6 +1055,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
995
1055
  rootTaskRunId?: string | undefined;
996
1056
  durationMs?: number | undefined;
997
1057
  costInCents?: number | undefined;
1058
+ region?: string | undefined;
998
1059
  }>, z.ZodObject<{
999
1060
  traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1000
1061
  }, "strip", z.ZodTypeAny, {
@@ -1020,6 +1081,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1020
1081
  branchName?: string | undefined;
1021
1082
  git?: {
1022
1083
  dirty?: boolean | undefined;
1084
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1085
+ provider?: string | undefined;
1086
+ ghUsername?: string | undefined;
1087
+ ghUserAvatarUrl?: string | undefined;
1023
1088
  commitAuthorName?: string | undefined;
1024
1089
  commitMessage?: string | undefined;
1025
1090
  commitRef?: string | undefined;
@@ -1072,6 +1137,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1072
1137
  rootTaskRunId?: string | undefined;
1073
1138
  durationMs?: number | undefined;
1074
1139
  costInCents?: number | undefined;
1140
+ region?: string | undefined;
1075
1141
  } & {
1076
1142
  traceContext?: Record<string, unknown> | undefined;
1077
1143
  };
@@ -1086,6 +1152,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1086
1152
  runtimeVersion: string;
1087
1153
  git?: {
1088
1154
  dirty?: boolean | undefined;
1155
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1156
+ provider?: string | undefined;
1157
+ ghUsername?: string | undefined;
1158
+ ghUserAvatarUrl?: string | undefined;
1089
1159
  commitAuthorName?: string | undefined;
1090
1160
  commitMessage?: string | undefined;
1091
1161
  commitRef?: string | undefined;
@@ -1114,6 +1184,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1114
1184
  branchName?: string | undefined;
1115
1185
  git?: {
1116
1186
  dirty?: boolean | undefined;
1187
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1188
+ provider?: string | undefined;
1189
+ ghUsername?: string | undefined;
1190
+ ghUserAvatarUrl?: string | undefined;
1117
1191
  commitAuthorName?: string | undefined;
1118
1192
  commitMessage?: string | undefined;
1119
1193
  commitRef?: string | undefined;
@@ -1166,6 +1240,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1166
1240
  rootTaskRunId?: string | undefined;
1167
1241
  durationMs?: number | undefined;
1168
1242
  costInCents?: number | undefined;
1243
+ region?: string | undefined;
1169
1244
  } & {
1170
1245
  traceContext?: Record<string, unknown> | undefined;
1171
1246
  };
@@ -1180,6 +1255,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1180
1255
  runtimeVersion: string;
1181
1256
  git?: {
1182
1257
  dirty?: boolean | undefined;
1258
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1259
+ provider?: string | undefined;
1260
+ ghUsername?: string | undefined;
1261
+ ghUserAvatarUrl?: string | undefined;
1183
1262
  commitAuthorName?: string | undefined;
1184
1263
  commitMessage?: string | undefined;
1185
1264
  commitRef?: string | undefined;
@@ -1210,6 +1289,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1210
1289
  branchName?: string | undefined;
1211
1290
  git?: {
1212
1291
  dirty?: boolean | undefined;
1292
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1293
+ provider?: string | undefined;
1294
+ ghUsername?: string | undefined;
1295
+ ghUserAvatarUrl?: string | undefined;
1213
1296
  commitAuthorName?: string | undefined;
1214
1297
  commitMessage?: string | undefined;
1215
1298
  commitRef?: string | undefined;
@@ -1262,6 +1345,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1262
1345
  rootTaskRunId?: string | undefined;
1263
1346
  durationMs?: number | undefined;
1264
1347
  costInCents?: number | undefined;
1348
+ region?: string | undefined;
1265
1349
  } & {
1266
1350
  traceContext?: Record<string, unknown> | undefined;
1267
1351
  };
@@ -1276,6 +1360,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1276
1360
  runtimeVersion: string;
1277
1361
  git?: {
1278
1362
  dirty?: boolean | undefined;
1363
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1364
+ provider?: string | undefined;
1365
+ ghUsername?: string | undefined;
1366
+ ghUserAvatarUrl?: string | undefined;
1279
1367
  commitAuthorName?: string | undefined;
1280
1368
  commitMessage?: string | undefined;
1281
1369
  commitRef?: string | undefined;
@@ -1306,6 +1394,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1306
1394
  branchName?: string | undefined;
1307
1395
  git?: {
1308
1396
  dirty?: boolean | undefined;
1397
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1398
+ provider?: string | undefined;
1399
+ ghUsername?: string | undefined;
1400
+ ghUserAvatarUrl?: string | undefined;
1309
1401
  commitAuthorName?: string | undefined;
1310
1402
  commitMessage?: string | undefined;
1311
1403
  commitRef?: string | undefined;
@@ -1358,6 +1450,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1358
1450
  rootTaskRunId?: string | undefined;
1359
1451
  durationMs?: number | undefined;
1360
1452
  costInCents?: number | undefined;
1453
+ region?: string | undefined;
1361
1454
  } & {
1362
1455
  traceContext?: Record<string, unknown> | undefined;
1363
1456
  };
@@ -1372,6 +1465,10 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1372
1465
  runtimeVersion: string;
1373
1466
  git?: {
1374
1467
  dirty?: boolean | undefined;
1468
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1469
+ provider?: string | undefined;
1470
+ ghUsername?: string | undefined;
1471
+ ghUserAvatarUrl?: string | undefined;
1375
1472
  commitAuthorName?: string | undefined;
1376
1473
  commitMessage?: string | undefined;
1377
1474
  commitRef?: string | undefined;
@@ -1411,22 +1508,22 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1411
1508
  type: z.ZodLiteral<"update">;
1412
1509
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1413
1510
  }, "strip", z.ZodTypeAny, {
1414
- type: "update";
1415
1511
  value: Record<string, unknown>;
1416
- }, {
1417
1512
  type: "update";
1513
+ }, {
1418
1514
  value: Record<string, unknown>;
1515
+ type: "update";
1419
1516
  }>, z.ZodObject<{
1420
1517
  type: z.ZodLiteral<"set">;
1421
1518
  key: z.ZodString;
1422
1519
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1423
1520
  }, "strip", z.ZodTypeAny, {
1424
- type: "set";
1425
1521
  value: import("../../../index.js").DeserializedJson;
1522
+ type: "set";
1426
1523
  key: string;
1427
1524
  }, {
1428
- type: "set";
1429
1525
  value: import("../../../index.js").DeserializedJson;
1526
+ type: "set";
1430
1527
  key: string;
1431
1528
  }>, z.ZodObject<{
1432
1529
  type: z.ZodLiteral<"delete">;
@@ -1442,58 +1539,58 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1442
1539
  key: z.ZodString;
1443
1540
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1444
1541
  }, "strip", z.ZodTypeAny, {
1445
- type: "append";
1446
1542
  value: import("../../../index.js").DeserializedJson;
1543
+ type: "append";
1447
1544
  key: string;
1448
1545
  }, {
1449
- type: "append";
1450
1546
  value: import("../../../index.js").DeserializedJson;
1547
+ type: "append";
1451
1548
  key: string;
1452
1549
  }>, z.ZodObject<{
1453
1550
  type: z.ZodLiteral<"remove">;
1454
1551
  key: z.ZodString;
1455
1552
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1456
1553
  }, "strip", z.ZodTypeAny, {
1457
- type: "remove";
1458
1554
  value: import("../../../index.js").DeserializedJson;
1555
+ type: "remove";
1459
1556
  key: string;
1460
1557
  }, {
1461
- type: "remove";
1462
1558
  value: import("../../../index.js").DeserializedJson;
1559
+ type: "remove";
1463
1560
  key: string;
1464
1561
  }>, z.ZodObject<{
1465
1562
  type: z.ZodLiteral<"increment">;
1466
1563
  key: z.ZodString;
1467
1564
  value: z.ZodNumber;
1468
1565
  }, "strip", z.ZodTypeAny, {
1469
- type: "increment";
1470
1566
  value: number;
1567
+ type: "increment";
1471
1568
  key: string;
1472
1569
  }, {
1473
- type: "increment";
1474
1570
  value: number;
1571
+ type: "increment";
1475
1572
  key: string;
1476
1573
  }>]>, "many">>;
1477
1574
  parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1478
1575
  type: z.ZodLiteral<"update">;
1479
1576
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1480
1577
  }, "strip", z.ZodTypeAny, {
1481
- type: "update";
1482
1578
  value: Record<string, unknown>;
1483
- }, {
1484
1579
  type: "update";
1580
+ }, {
1485
1581
  value: Record<string, unknown>;
1582
+ type: "update";
1486
1583
  }>, z.ZodObject<{
1487
1584
  type: z.ZodLiteral<"set">;
1488
1585
  key: z.ZodString;
1489
1586
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1490
1587
  }, "strip", z.ZodTypeAny, {
1491
- type: "set";
1492
1588
  value: import("../../../index.js").DeserializedJson;
1589
+ type: "set";
1493
1590
  key: string;
1494
1591
  }, {
1495
- type: "set";
1496
1592
  value: import("../../../index.js").DeserializedJson;
1593
+ type: "set";
1497
1594
  key: string;
1498
1595
  }>, z.ZodObject<{
1499
1596
  type: z.ZodLiteral<"delete">;
@@ -1509,58 +1606,58 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1509
1606
  key: z.ZodString;
1510
1607
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1511
1608
  }, "strip", z.ZodTypeAny, {
1512
- type: "append";
1513
1609
  value: import("../../../index.js").DeserializedJson;
1610
+ type: "append";
1514
1611
  key: string;
1515
1612
  }, {
1516
- type: "append";
1517
1613
  value: import("../../../index.js").DeserializedJson;
1614
+ type: "append";
1518
1615
  key: string;
1519
1616
  }>, z.ZodObject<{
1520
1617
  type: z.ZodLiteral<"remove">;
1521
1618
  key: z.ZodString;
1522
1619
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1523
1620
  }, "strip", z.ZodTypeAny, {
1524
- type: "remove";
1525
1621
  value: import("../../../index.js").DeserializedJson;
1622
+ type: "remove";
1526
1623
  key: string;
1527
1624
  }, {
1528
- type: "remove";
1529
1625
  value: import("../../../index.js").DeserializedJson;
1626
+ type: "remove";
1530
1627
  key: string;
1531
1628
  }>, z.ZodObject<{
1532
1629
  type: z.ZodLiteral<"increment">;
1533
1630
  key: z.ZodString;
1534
1631
  value: z.ZodNumber;
1535
1632
  }, "strip", z.ZodTypeAny, {
1536
- type: "increment";
1537
1633
  value: number;
1634
+ type: "increment";
1538
1635
  key: string;
1539
1636
  }, {
1540
- type: "increment";
1541
1637
  value: number;
1638
+ type: "increment";
1542
1639
  key: string;
1543
1640
  }>]>, "many">>;
1544
1641
  rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1545
1642
  type: z.ZodLiteral<"update">;
1546
1643
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1547
1644
  }, "strip", z.ZodTypeAny, {
1548
- type: "update";
1549
1645
  value: Record<string, unknown>;
1550
- }, {
1551
1646
  type: "update";
1647
+ }, {
1552
1648
  value: Record<string, unknown>;
1649
+ type: "update";
1553
1650
  }>, z.ZodObject<{
1554
1651
  type: z.ZodLiteral<"set">;
1555
1652
  key: z.ZodString;
1556
1653
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1557
1654
  }, "strip", z.ZodTypeAny, {
1558
- type: "set";
1559
1655
  value: import("../../../index.js").DeserializedJson;
1656
+ type: "set";
1560
1657
  key: string;
1561
1658
  }, {
1562
- type: "set";
1563
1659
  value: import("../../../index.js").DeserializedJson;
1660
+ type: "set";
1564
1661
  key: string;
1565
1662
  }>, z.ZodObject<{
1566
1663
  type: z.ZodLiteral<"delete">;
@@ -1576,178 +1673,178 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1576
1673
  key: z.ZodString;
1577
1674
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1578
1675
  }, "strip", z.ZodTypeAny, {
1579
- type: "append";
1580
1676
  value: import("../../../index.js").DeserializedJson;
1677
+ type: "append";
1581
1678
  key: string;
1582
1679
  }, {
1583
- type: "append";
1584
1680
  value: import("../../../index.js").DeserializedJson;
1681
+ type: "append";
1585
1682
  key: string;
1586
1683
  }>, z.ZodObject<{
1587
1684
  type: z.ZodLiteral<"remove">;
1588
1685
  key: z.ZodString;
1589
1686
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1590
1687
  }, "strip", z.ZodTypeAny, {
1591
- type: "remove";
1592
1688
  value: import("../../../index.js").DeserializedJson;
1689
+ type: "remove";
1593
1690
  key: string;
1594
1691
  }, {
1595
- type: "remove";
1596
1692
  value: import("../../../index.js").DeserializedJson;
1693
+ type: "remove";
1597
1694
  key: string;
1598
1695
  }>, z.ZodObject<{
1599
1696
  type: z.ZodLiteral<"increment">;
1600
1697
  key: z.ZodString;
1601
1698
  value: z.ZodNumber;
1602
1699
  }, "strip", z.ZodTypeAny, {
1603
- type: "increment";
1604
1700
  value: number;
1701
+ type: "increment";
1605
1702
  key: string;
1606
1703
  }, {
1607
- type: "increment";
1608
1704
  value: number;
1705
+ type: "increment";
1609
1706
  key: string;
1610
1707
  }>]>, "many">>;
1611
1708
  }, "strip", z.ZodTypeAny, {
1612
1709
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1613
1710
  operations?: ({
1614
- type: "update";
1615
1711
  value: Record<string, unknown>;
1712
+ type: "update";
1616
1713
  } | {
1617
- type: "set";
1618
1714
  value: import("../../../index.js").DeserializedJson;
1715
+ type: "set";
1619
1716
  key: string;
1620
1717
  } | {
1621
1718
  type: "delete";
1622
1719
  key: string;
1623
1720
  } | {
1624
- type: "append";
1625
1721
  value: import("../../../index.js").DeserializedJson;
1722
+ type: "append";
1626
1723
  key: string;
1627
1724
  } | {
1628
- type: "remove";
1629
1725
  value: import("../../../index.js").DeserializedJson;
1726
+ type: "remove";
1630
1727
  key: string;
1631
1728
  } | {
1632
- type: "increment";
1633
1729
  value: number;
1730
+ type: "increment";
1634
1731
  key: string;
1635
1732
  })[] | undefined;
1636
1733
  parentOperations?: ({
1637
- type: "update";
1638
1734
  value: Record<string, unknown>;
1735
+ type: "update";
1639
1736
  } | {
1640
- type: "set";
1641
1737
  value: import("../../../index.js").DeserializedJson;
1738
+ type: "set";
1642
1739
  key: string;
1643
1740
  } | {
1644
1741
  type: "delete";
1645
1742
  key: string;
1646
1743
  } | {
1647
- type: "append";
1648
1744
  value: import("../../../index.js").DeserializedJson;
1745
+ type: "append";
1649
1746
  key: string;
1650
1747
  } | {
1651
- type: "remove";
1652
1748
  value: import("../../../index.js").DeserializedJson;
1749
+ type: "remove";
1653
1750
  key: string;
1654
1751
  } | {
1655
- type: "increment";
1656
1752
  value: number;
1753
+ type: "increment";
1657
1754
  key: string;
1658
1755
  })[] | undefined;
1659
1756
  rootOperations?: ({
1660
- type: "update";
1661
1757
  value: Record<string, unknown>;
1758
+ type: "update";
1662
1759
  } | {
1663
- type: "set";
1664
1760
  value: import("../../../index.js").DeserializedJson;
1761
+ type: "set";
1665
1762
  key: string;
1666
1763
  } | {
1667
1764
  type: "delete";
1668
1765
  key: string;
1669
1766
  } | {
1670
- type: "append";
1671
1767
  value: import("../../../index.js").DeserializedJson;
1768
+ type: "append";
1672
1769
  key: string;
1673
1770
  } | {
1674
- type: "remove";
1675
1771
  value: import("../../../index.js").DeserializedJson;
1772
+ type: "remove";
1676
1773
  key: string;
1677
1774
  } | {
1678
- type: "increment";
1679
1775
  value: number;
1776
+ type: "increment";
1680
1777
  key: string;
1681
1778
  })[] | undefined;
1682
1779
  }, {
1683
1780
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1684
1781
  operations?: ({
1685
- type: "update";
1686
1782
  value: Record<string, unknown>;
1783
+ type: "update";
1687
1784
  } | {
1688
- type: "set";
1689
1785
  value: import("../../../index.js").DeserializedJson;
1786
+ type: "set";
1690
1787
  key: string;
1691
1788
  } | {
1692
1789
  type: "delete";
1693
1790
  key: string;
1694
1791
  } | {
1695
- type: "append";
1696
1792
  value: import("../../../index.js").DeserializedJson;
1793
+ type: "append";
1697
1794
  key: string;
1698
1795
  } | {
1699
- type: "remove";
1700
1796
  value: import("../../../index.js").DeserializedJson;
1797
+ type: "remove";
1701
1798
  key: string;
1702
1799
  } | {
1703
- type: "increment";
1704
1800
  value: number;
1801
+ type: "increment";
1705
1802
  key: string;
1706
1803
  })[] | undefined;
1707
1804
  parentOperations?: ({
1708
- type: "update";
1709
1805
  value: Record<string, unknown>;
1806
+ type: "update";
1710
1807
  } | {
1711
- type: "set";
1712
1808
  value: import("../../../index.js").DeserializedJson;
1809
+ type: "set";
1713
1810
  key: string;
1714
1811
  } | {
1715
1812
  type: "delete";
1716
1813
  key: string;
1717
1814
  } | {
1718
- type: "append";
1719
1815
  value: import("../../../index.js").DeserializedJson;
1816
+ type: "append";
1720
1817
  key: string;
1721
1818
  } | {
1722
- type: "remove";
1723
1819
  value: import("../../../index.js").DeserializedJson;
1820
+ type: "remove";
1724
1821
  key: string;
1725
1822
  } | {
1726
- type: "increment";
1727
1823
  value: number;
1824
+ type: "increment";
1728
1825
  key: string;
1729
1826
  })[] | undefined;
1730
1827
  rootOperations?: ({
1731
- type: "update";
1732
1828
  value: Record<string, unknown>;
1829
+ type: "update";
1733
1830
  } | {
1734
- type: "set";
1735
1831
  value: import("../../../index.js").DeserializedJson;
1832
+ type: "set";
1736
1833
  key: string;
1737
1834
  } | {
1738
1835
  type: "delete";
1739
1836
  key: string;
1740
1837
  } | {
1741
- type: "append";
1742
1838
  value: import("../../../index.js").DeserializedJson;
1839
+ type: "append";
1743
1840
  key: string;
1744
1841
  } | {
1745
- type: "remove";
1746
1842
  value: import("../../../index.js").DeserializedJson;
1843
+ type: "remove";
1747
1844
  key: string;
1748
1845
  } | {
1749
- type: "increment";
1750
1846
  value: number;
1847
+ type: "increment";
1751
1848
  key: string;
1752
1849
  })[] | undefined;
1753
1850
  }>>;
@@ -1768,72 +1865,72 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1768
1865
  metadata?: {
1769
1866
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1770
1867
  operations?: ({
1771
- type: "update";
1772
1868
  value: Record<string, unknown>;
1869
+ type: "update";
1773
1870
  } | {
1774
- type: "set";
1775
1871
  value: import("../../../index.js").DeserializedJson;
1872
+ type: "set";
1776
1873
  key: string;
1777
1874
  } | {
1778
1875
  type: "delete";
1779
1876
  key: string;
1780
1877
  } | {
1781
- type: "append";
1782
1878
  value: import("../../../index.js").DeserializedJson;
1879
+ type: "append";
1783
1880
  key: string;
1784
1881
  } | {
1785
- type: "remove";
1786
1882
  value: import("../../../index.js").DeserializedJson;
1883
+ type: "remove";
1787
1884
  key: string;
1788
1885
  } | {
1789
- type: "increment";
1790
1886
  value: number;
1887
+ type: "increment";
1791
1888
  key: string;
1792
1889
  })[] | undefined;
1793
1890
  parentOperations?: ({
1794
- type: "update";
1795
1891
  value: Record<string, unknown>;
1892
+ type: "update";
1796
1893
  } | {
1797
- type: "set";
1798
1894
  value: import("../../../index.js").DeserializedJson;
1895
+ type: "set";
1799
1896
  key: string;
1800
1897
  } | {
1801
1898
  type: "delete";
1802
1899
  key: string;
1803
1900
  } | {
1804
- type: "append";
1805
1901
  value: import("../../../index.js").DeserializedJson;
1902
+ type: "append";
1806
1903
  key: string;
1807
1904
  } | {
1808
- type: "remove";
1809
1905
  value: import("../../../index.js").DeserializedJson;
1906
+ type: "remove";
1810
1907
  key: string;
1811
1908
  } | {
1812
- type: "increment";
1813
1909
  value: number;
1910
+ type: "increment";
1814
1911
  key: string;
1815
1912
  })[] | undefined;
1816
1913
  rootOperations?: ({
1817
- type: "update";
1818
1914
  value: Record<string, unknown>;
1915
+ type: "update";
1819
1916
  } | {
1820
- type: "set";
1821
1917
  value: import("../../../index.js").DeserializedJson;
1918
+ type: "set";
1822
1919
  key: string;
1823
1920
  } | {
1824
1921
  type: "delete";
1825
1922
  key: string;
1826
1923
  } | {
1827
- type: "append";
1828
1924
  value: import("../../../index.js").DeserializedJson;
1925
+ type: "append";
1829
1926
  key: string;
1830
1927
  } | {
1831
- type: "remove";
1832
1928
  value: import("../../../index.js").DeserializedJson;
1929
+ type: "remove";
1833
1930
  key: string;
1834
1931
  } | {
1835
- type: "increment";
1836
1932
  value: number;
1933
+ type: "increment";
1837
1934
  key: string;
1838
1935
  })[] | undefined;
1839
1936
  } | undefined;
@@ -1853,72 +1950,72 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1853
1950
  metadata?: {
1854
1951
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1855
1952
  operations?: ({
1856
- type: "update";
1857
1953
  value: Record<string, unknown>;
1954
+ type: "update";
1858
1955
  } | {
1859
- type: "set";
1860
1956
  value: import("../../../index.js").DeserializedJson;
1957
+ type: "set";
1861
1958
  key: string;
1862
1959
  } | {
1863
1960
  type: "delete";
1864
1961
  key: string;
1865
1962
  } | {
1866
- type: "append";
1867
1963
  value: import("../../../index.js").DeserializedJson;
1964
+ type: "append";
1868
1965
  key: string;
1869
1966
  } | {
1870
- type: "remove";
1871
1967
  value: import("../../../index.js").DeserializedJson;
1968
+ type: "remove";
1872
1969
  key: string;
1873
1970
  } | {
1874
- type: "increment";
1875
1971
  value: number;
1972
+ type: "increment";
1876
1973
  key: string;
1877
1974
  })[] | undefined;
1878
1975
  parentOperations?: ({
1879
- type: "update";
1880
1976
  value: Record<string, unknown>;
1977
+ type: "update";
1881
1978
  } | {
1882
- type: "set";
1883
1979
  value: import("../../../index.js").DeserializedJson;
1980
+ type: "set";
1884
1981
  key: string;
1885
1982
  } | {
1886
1983
  type: "delete";
1887
1984
  key: string;
1888
1985
  } | {
1889
- type: "append";
1890
1986
  value: import("../../../index.js").DeserializedJson;
1987
+ type: "append";
1891
1988
  key: string;
1892
1989
  } | {
1893
- type: "remove";
1894
1990
  value: import("../../../index.js").DeserializedJson;
1991
+ type: "remove";
1895
1992
  key: string;
1896
1993
  } | {
1897
- type: "increment";
1898
1994
  value: number;
1995
+ type: "increment";
1899
1996
  key: string;
1900
1997
  })[] | undefined;
1901
1998
  rootOperations?: ({
1902
- type: "update";
1903
1999
  value: Record<string, unknown>;
2000
+ type: "update";
1904
2001
  } | {
1905
- type: "set";
1906
2002
  value: import("../../../index.js").DeserializedJson;
2003
+ type: "set";
1907
2004
  key: string;
1908
2005
  } | {
1909
2006
  type: "delete";
1910
2007
  key: string;
1911
2008
  } | {
1912
- type: "append";
1913
2009
  value: import("../../../index.js").DeserializedJson;
2010
+ type: "append";
1914
2011
  key: string;
1915
2012
  } | {
1916
- type: "remove";
1917
2013
  value: import("../../../index.js").DeserializedJson;
2014
+ type: "remove";
1918
2015
  key: string;
1919
2016
  } | {
1920
- type: "increment";
1921
2017
  value: number;
2018
+ type: "increment";
1922
2019
  key: string;
1923
2020
  })[] | undefined;
1924
2021
  } | undefined;
@@ -2011,22 +2108,22 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2011
2108
  type: z.ZodLiteral<"update">;
2012
2109
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2013
2110
  }, "strip", z.ZodTypeAny, {
2014
- type: "update";
2015
2111
  value: Record<string, unknown>;
2016
- }, {
2017
2112
  type: "update";
2113
+ }, {
2018
2114
  value: Record<string, unknown>;
2115
+ type: "update";
2019
2116
  }>, z.ZodObject<{
2020
2117
  type: z.ZodLiteral<"set">;
2021
2118
  key: z.ZodString;
2022
2119
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2023
2120
  }, "strip", z.ZodTypeAny, {
2024
- type: "set";
2025
2121
  value: import("../../../index.js").DeserializedJson;
2122
+ type: "set";
2026
2123
  key: string;
2027
2124
  }, {
2028
- type: "set";
2029
2125
  value: import("../../../index.js").DeserializedJson;
2126
+ type: "set";
2030
2127
  key: string;
2031
2128
  }>, z.ZodObject<{
2032
2129
  type: z.ZodLiteral<"delete">;
@@ -2042,58 +2139,58 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2042
2139
  key: z.ZodString;
2043
2140
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2044
2141
  }, "strip", z.ZodTypeAny, {
2045
- type: "append";
2046
2142
  value: import("../../../index.js").DeserializedJson;
2143
+ type: "append";
2047
2144
  key: string;
2048
2145
  }, {
2049
- type: "append";
2050
2146
  value: import("../../../index.js").DeserializedJson;
2147
+ type: "append";
2051
2148
  key: string;
2052
2149
  }>, z.ZodObject<{
2053
2150
  type: z.ZodLiteral<"remove">;
2054
2151
  key: z.ZodString;
2055
2152
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2056
2153
  }, "strip", z.ZodTypeAny, {
2057
- type: "remove";
2058
2154
  value: import("../../../index.js").DeserializedJson;
2155
+ type: "remove";
2059
2156
  key: string;
2060
2157
  }, {
2061
- type: "remove";
2062
2158
  value: import("../../../index.js").DeserializedJson;
2159
+ type: "remove";
2063
2160
  key: string;
2064
2161
  }>, z.ZodObject<{
2065
2162
  type: z.ZodLiteral<"increment">;
2066
2163
  key: z.ZodString;
2067
2164
  value: z.ZodNumber;
2068
2165
  }, "strip", z.ZodTypeAny, {
2069
- type: "increment";
2070
2166
  value: number;
2167
+ type: "increment";
2071
2168
  key: string;
2072
2169
  }, {
2073
- type: "increment";
2074
2170
  value: number;
2171
+ type: "increment";
2075
2172
  key: string;
2076
2173
  }>]>, "many">>;
2077
2174
  parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2078
2175
  type: z.ZodLiteral<"update">;
2079
2176
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2080
2177
  }, "strip", z.ZodTypeAny, {
2081
- type: "update";
2082
2178
  value: Record<string, unknown>;
2083
- }, {
2084
2179
  type: "update";
2180
+ }, {
2085
2181
  value: Record<string, unknown>;
2182
+ type: "update";
2086
2183
  }>, z.ZodObject<{
2087
2184
  type: z.ZodLiteral<"set">;
2088
2185
  key: z.ZodString;
2089
2186
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2090
2187
  }, "strip", z.ZodTypeAny, {
2091
- type: "set";
2092
2188
  value: import("../../../index.js").DeserializedJson;
2189
+ type: "set";
2093
2190
  key: string;
2094
2191
  }, {
2095
- type: "set";
2096
2192
  value: import("../../../index.js").DeserializedJson;
2193
+ type: "set";
2097
2194
  key: string;
2098
2195
  }>, z.ZodObject<{
2099
2196
  type: z.ZodLiteral<"delete">;
@@ -2109,58 +2206,58 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2109
2206
  key: z.ZodString;
2110
2207
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2111
2208
  }, "strip", z.ZodTypeAny, {
2112
- type: "append";
2113
2209
  value: import("../../../index.js").DeserializedJson;
2210
+ type: "append";
2114
2211
  key: string;
2115
2212
  }, {
2116
- type: "append";
2117
2213
  value: import("../../../index.js").DeserializedJson;
2214
+ type: "append";
2118
2215
  key: string;
2119
2216
  }>, z.ZodObject<{
2120
2217
  type: z.ZodLiteral<"remove">;
2121
2218
  key: z.ZodString;
2122
2219
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2123
2220
  }, "strip", z.ZodTypeAny, {
2124
- type: "remove";
2125
2221
  value: import("../../../index.js").DeserializedJson;
2222
+ type: "remove";
2126
2223
  key: string;
2127
2224
  }, {
2128
- type: "remove";
2129
2225
  value: import("../../../index.js").DeserializedJson;
2226
+ type: "remove";
2130
2227
  key: string;
2131
2228
  }>, z.ZodObject<{
2132
2229
  type: z.ZodLiteral<"increment">;
2133
2230
  key: z.ZodString;
2134
2231
  value: z.ZodNumber;
2135
2232
  }, "strip", z.ZodTypeAny, {
2136
- type: "increment";
2137
2233
  value: number;
2234
+ type: "increment";
2138
2235
  key: string;
2139
2236
  }, {
2140
- type: "increment";
2141
2237
  value: number;
2238
+ type: "increment";
2142
2239
  key: string;
2143
2240
  }>]>, "many">>;
2144
2241
  rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2145
2242
  type: z.ZodLiteral<"update">;
2146
2243
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2147
2244
  }, "strip", z.ZodTypeAny, {
2148
- type: "update";
2149
2245
  value: Record<string, unknown>;
2150
- }, {
2151
2246
  type: "update";
2247
+ }, {
2152
2248
  value: Record<string, unknown>;
2249
+ type: "update";
2153
2250
  }>, z.ZodObject<{
2154
2251
  type: z.ZodLiteral<"set">;
2155
2252
  key: z.ZodString;
2156
2253
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2157
2254
  }, "strip", z.ZodTypeAny, {
2158
- type: "set";
2159
2255
  value: import("../../../index.js").DeserializedJson;
2256
+ type: "set";
2160
2257
  key: string;
2161
2258
  }, {
2162
- type: "set";
2163
2259
  value: import("../../../index.js").DeserializedJson;
2260
+ type: "set";
2164
2261
  key: string;
2165
2262
  }>, z.ZodObject<{
2166
2263
  type: z.ZodLiteral<"delete">;
@@ -2176,178 +2273,178 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2176
2273
  key: z.ZodString;
2177
2274
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2178
2275
  }, "strip", z.ZodTypeAny, {
2179
- type: "append";
2180
2276
  value: import("../../../index.js").DeserializedJson;
2277
+ type: "append";
2181
2278
  key: string;
2182
2279
  }, {
2183
- type: "append";
2184
2280
  value: import("../../../index.js").DeserializedJson;
2281
+ type: "append";
2185
2282
  key: string;
2186
2283
  }>, z.ZodObject<{
2187
2284
  type: z.ZodLiteral<"remove">;
2188
2285
  key: z.ZodString;
2189
2286
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2190
2287
  }, "strip", z.ZodTypeAny, {
2191
- type: "remove";
2192
2288
  value: import("../../../index.js").DeserializedJson;
2289
+ type: "remove";
2193
2290
  key: string;
2194
2291
  }, {
2195
- type: "remove";
2196
2292
  value: import("../../../index.js").DeserializedJson;
2293
+ type: "remove";
2197
2294
  key: string;
2198
2295
  }>, z.ZodObject<{
2199
2296
  type: z.ZodLiteral<"increment">;
2200
2297
  key: z.ZodString;
2201
2298
  value: z.ZodNumber;
2202
2299
  }, "strip", z.ZodTypeAny, {
2203
- type: "increment";
2204
2300
  value: number;
2301
+ type: "increment";
2205
2302
  key: string;
2206
2303
  }, {
2207
- type: "increment";
2208
2304
  value: number;
2305
+ type: "increment";
2209
2306
  key: string;
2210
2307
  }>]>, "many">>;
2211
2308
  }, "strip", z.ZodTypeAny, {
2212
2309
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2213
2310
  operations?: ({
2214
- type: "update";
2215
2311
  value: Record<string, unknown>;
2312
+ type: "update";
2216
2313
  } | {
2217
- type: "set";
2218
2314
  value: import("../../../index.js").DeserializedJson;
2315
+ type: "set";
2219
2316
  key: string;
2220
2317
  } | {
2221
2318
  type: "delete";
2222
2319
  key: string;
2223
2320
  } | {
2224
- type: "append";
2225
2321
  value: import("../../../index.js").DeserializedJson;
2322
+ type: "append";
2226
2323
  key: string;
2227
2324
  } | {
2228
- type: "remove";
2229
2325
  value: import("../../../index.js").DeserializedJson;
2326
+ type: "remove";
2230
2327
  key: string;
2231
2328
  } | {
2232
- type: "increment";
2233
2329
  value: number;
2330
+ type: "increment";
2234
2331
  key: string;
2235
2332
  })[] | undefined;
2236
2333
  parentOperations?: ({
2237
- type: "update";
2238
2334
  value: Record<string, unknown>;
2335
+ type: "update";
2239
2336
  } | {
2240
- type: "set";
2241
2337
  value: import("../../../index.js").DeserializedJson;
2338
+ type: "set";
2242
2339
  key: string;
2243
2340
  } | {
2244
2341
  type: "delete";
2245
2342
  key: string;
2246
2343
  } | {
2247
- type: "append";
2248
2344
  value: import("../../../index.js").DeserializedJson;
2345
+ type: "append";
2249
2346
  key: string;
2250
2347
  } | {
2251
- type: "remove";
2252
2348
  value: import("../../../index.js").DeserializedJson;
2349
+ type: "remove";
2253
2350
  key: string;
2254
2351
  } | {
2255
- type: "increment";
2256
2352
  value: number;
2353
+ type: "increment";
2257
2354
  key: string;
2258
2355
  })[] | undefined;
2259
2356
  rootOperations?: ({
2260
- type: "update";
2261
2357
  value: Record<string, unknown>;
2358
+ type: "update";
2262
2359
  } | {
2263
- type: "set";
2264
2360
  value: import("../../../index.js").DeserializedJson;
2361
+ type: "set";
2265
2362
  key: string;
2266
2363
  } | {
2267
2364
  type: "delete";
2268
2365
  key: string;
2269
2366
  } | {
2270
- type: "append";
2271
2367
  value: import("../../../index.js").DeserializedJson;
2368
+ type: "append";
2272
2369
  key: string;
2273
2370
  } | {
2274
- type: "remove";
2275
2371
  value: import("../../../index.js").DeserializedJson;
2372
+ type: "remove";
2276
2373
  key: string;
2277
2374
  } | {
2278
- type: "increment";
2279
2375
  value: number;
2376
+ type: "increment";
2280
2377
  key: string;
2281
2378
  })[] | undefined;
2282
2379
  }, {
2283
2380
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2284
2381
  operations?: ({
2285
- type: "update";
2286
2382
  value: Record<string, unknown>;
2383
+ type: "update";
2287
2384
  } | {
2288
- type: "set";
2289
2385
  value: import("../../../index.js").DeserializedJson;
2386
+ type: "set";
2290
2387
  key: string;
2291
2388
  } | {
2292
2389
  type: "delete";
2293
2390
  key: string;
2294
2391
  } | {
2295
- type: "append";
2296
2392
  value: import("../../../index.js").DeserializedJson;
2393
+ type: "append";
2297
2394
  key: string;
2298
2395
  } | {
2299
- type: "remove";
2300
2396
  value: import("../../../index.js").DeserializedJson;
2397
+ type: "remove";
2301
2398
  key: string;
2302
2399
  } | {
2303
- type: "increment";
2304
2400
  value: number;
2401
+ type: "increment";
2305
2402
  key: string;
2306
2403
  })[] | undefined;
2307
2404
  parentOperations?: ({
2308
- type: "update";
2309
2405
  value: Record<string, unknown>;
2406
+ type: "update";
2310
2407
  } | {
2311
- type: "set";
2312
2408
  value: import("../../../index.js").DeserializedJson;
2409
+ type: "set";
2313
2410
  key: string;
2314
2411
  } | {
2315
2412
  type: "delete";
2316
2413
  key: string;
2317
2414
  } | {
2318
- type: "append";
2319
2415
  value: import("../../../index.js").DeserializedJson;
2416
+ type: "append";
2320
2417
  key: string;
2321
2418
  } | {
2322
- type: "remove";
2323
2419
  value: import("../../../index.js").DeserializedJson;
2420
+ type: "remove";
2324
2421
  key: string;
2325
2422
  } | {
2326
- type: "increment";
2327
2423
  value: number;
2424
+ type: "increment";
2328
2425
  key: string;
2329
2426
  })[] | undefined;
2330
2427
  rootOperations?: ({
2331
- type: "update";
2332
2428
  value: Record<string, unknown>;
2429
+ type: "update";
2333
2430
  } | {
2334
- type: "set";
2335
2431
  value: import("../../../index.js").DeserializedJson;
2432
+ type: "set";
2336
2433
  key: string;
2337
2434
  } | {
2338
2435
  type: "delete";
2339
2436
  key: string;
2340
2437
  } | {
2341
- type: "append";
2342
2438
  value: import("../../../index.js").DeserializedJson;
2439
+ type: "append";
2343
2440
  key: string;
2344
2441
  } | {
2345
- type: "remove";
2346
2442
  value: import("../../../index.js").DeserializedJson;
2443
+ type: "remove";
2347
2444
  key: string;
2348
2445
  } | {
2349
- type: "increment";
2350
2446
  value: number;
2447
+ type: "increment";
2351
2448
  key: string;
2352
2449
  })[] | undefined;
2353
2450
  }>>;
@@ -2384,72 +2481,72 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2384
2481
  metadata?: {
2385
2482
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2386
2483
  operations?: ({
2387
- type: "update";
2388
2484
  value: Record<string, unknown>;
2485
+ type: "update";
2389
2486
  } | {
2390
- type: "set";
2391
2487
  value: import("../../../index.js").DeserializedJson;
2488
+ type: "set";
2392
2489
  key: string;
2393
2490
  } | {
2394
2491
  type: "delete";
2395
2492
  key: string;
2396
2493
  } | {
2397
- type: "append";
2398
2494
  value: import("../../../index.js").DeserializedJson;
2495
+ type: "append";
2399
2496
  key: string;
2400
2497
  } | {
2401
- type: "remove";
2402
2498
  value: import("../../../index.js").DeserializedJson;
2499
+ type: "remove";
2403
2500
  key: string;
2404
2501
  } | {
2405
- type: "increment";
2406
2502
  value: number;
2503
+ type: "increment";
2407
2504
  key: string;
2408
2505
  })[] | undefined;
2409
2506
  parentOperations?: ({
2410
- type: "update";
2411
2507
  value: Record<string, unknown>;
2508
+ type: "update";
2412
2509
  } | {
2413
- type: "set";
2414
2510
  value: import("../../../index.js").DeserializedJson;
2511
+ type: "set";
2415
2512
  key: string;
2416
2513
  } | {
2417
2514
  type: "delete";
2418
2515
  key: string;
2419
2516
  } | {
2420
- type: "append";
2421
2517
  value: import("../../../index.js").DeserializedJson;
2518
+ type: "append";
2422
2519
  key: string;
2423
2520
  } | {
2424
- type: "remove";
2425
2521
  value: import("../../../index.js").DeserializedJson;
2522
+ type: "remove";
2426
2523
  key: string;
2427
2524
  } | {
2428
- type: "increment";
2429
2525
  value: number;
2526
+ type: "increment";
2430
2527
  key: string;
2431
2528
  })[] | undefined;
2432
2529
  rootOperations?: ({
2433
- type: "update";
2434
2530
  value: Record<string, unknown>;
2531
+ type: "update";
2435
2532
  } | {
2436
- type: "set";
2437
2533
  value: import("../../../index.js").DeserializedJson;
2534
+ type: "set";
2438
2535
  key: string;
2439
2536
  } | {
2440
2537
  type: "delete";
2441
2538
  key: string;
2442
2539
  } | {
2443
- type: "append";
2444
2540
  value: import("../../../index.js").DeserializedJson;
2541
+ type: "append";
2445
2542
  key: string;
2446
2543
  } | {
2447
- type: "remove";
2448
2544
  value: import("../../../index.js").DeserializedJson;
2545
+ type: "remove";
2449
2546
  key: string;
2450
2547
  } | {
2451
- type: "increment";
2452
2548
  value: number;
2549
+ type: "increment";
2453
2550
  key: string;
2454
2551
  })[] | undefined;
2455
2552
  } | undefined;
@@ -2490,72 +2587,72 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2490
2587
  metadata?: {
2491
2588
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2492
2589
  operations?: ({
2493
- type: "update";
2494
2590
  value: Record<string, unknown>;
2591
+ type: "update";
2495
2592
  } | {
2496
- type: "set";
2497
2593
  value: import("../../../index.js").DeserializedJson;
2594
+ type: "set";
2498
2595
  key: string;
2499
2596
  } | {
2500
2597
  type: "delete";
2501
2598
  key: string;
2502
2599
  } | {
2503
- type: "append";
2504
2600
  value: import("../../../index.js").DeserializedJson;
2601
+ type: "append";
2505
2602
  key: string;
2506
2603
  } | {
2507
- type: "remove";
2508
2604
  value: import("../../../index.js").DeserializedJson;
2605
+ type: "remove";
2509
2606
  key: string;
2510
2607
  } | {
2511
- type: "increment";
2512
2608
  value: number;
2609
+ type: "increment";
2513
2610
  key: string;
2514
2611
  })[] | undefined;
2515
2612
  parentOperations?: ({
2516
- type: "update";
2517
2613
  value: Record<string, unknown>;
2614
+ type: "update";
2518
2615
  } | {
2519
- type: "set";
2520
2616
  value: import("../../../index.js").DeserializedJson;
2617
+ type: "set";
2521
2618
  key: string;
2522
2619
  } | {
2523
2620
  type: "delete";
2524
2621
  key: string;
2525
2622
  } | {
2526
- type: "append";
2527
2623
  value: import("../../../index.js").DeserializedJson;
2624
+ type: "append";
2528
2625
  key: string;
2529
2626
  } | {
2530
- type: "remove";
2531
2627
  value: import("../../../index.js").DeserializedJson;
2628
+ type: "remove";
2532
2629
  key: string;
2533
2630
  } | {
2534
- type: "increment";
2535
2631
  value: number;
2632
+ type: "increment";
2536
2633
  key: string;
2537
2634
  })[] | undefined;
2538
2635
  rootOperations?: ({
2539
- type: "update";
2540
2636
  value: Record<string, unknown>;
2637
+ type: "update";
2541
2638
  } | {
2542
- type: "set";
2543
2639
  value: import("../../../index.js").DeserializedJson;
2640
+ type: "set";
2544
2641
  key: string;
2545
2642
  } | {
2546
2643
  type: "delete";
2547
2644
  key: string;
2548
2645
  } | {
2549
- type: "append";
2550
2646
  value: import("../../../index.js").DeserializedJson;
2647
+ type: "append";
2551
2648
  key: string;
2552
2649
  } | {
2553
- type: "remove";
2554
2650
  value: import("../../../index.js").DeserializedJson;
2651
+ type: "remove";
2555
2652
  key: string;
2556
2653
  } | {
2557
- type: "increment";
2558
2654
  value: number;
2655
+ type: "increment";
2559
2656
  key: string;
2560
2657
  })[] | undefined;
2561
2658
  } | undefined;
@@ -2598,72 +2695,72 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2598
2695
  metadata?: {
2599
2696
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2600
2697
  operations?: ({
2601
- type: "update";
2602
2698
  value: Record<string, unknown>;
2699
+ type: "update";
2603
2700
  } | {
2604
- type: "set";
2605
2701
  value: import("../../../index.js").DeserializedJson;
2702
+ type: "set";
2606
2703
  key: string;
2607
2704
  } | {
2608
2705
  type: "delete";
2609
2706
  key: string;
2610
2707
  } | {
2611
- type: "append";
2612
2708
  value: import("../../../index.js").DeserializedJson;
2709
+ type: "append";
2613
2710
  key: string;
2614
2711
  } | {
2615
- type: "remove";
2616
2712
  value: import("../../../index.js").DeserializedJson;
2713
+ type: "remove";
2617
2714
  key: string;
2618
2715
  } | {
2619
- type: "increment";
2620
2716
  value: number;
2717
+ type: "increment";
2621
2718
  key: string;
2622
2719
  })[] | undefined;
2623
2720
  parentOperations?: ({
2624
- type: "update";
2625
2721
  value: Record<string, unknown>;
2722
+ type: "update";
2626
2723
  } | {
2627
- type: "set";
2628
2724
  value: import("../../../index.js").DeserializedJson;
2725
+ type: "set";
2629
2726
  key: string;
2630
2727
  } | {
2631
2728
  type: "delete";
2632
2729
  key: string;
2633
2730
  } | {
2634
- type: "append";
2635
2731
  value: import("../../../index.js").DeserializedJson;
2732
+ type: "append";
2636
2733
  key: string;
2637
2734
  } | {
2638
- type: "remove";
2639
2735
  value: import("../../../index.js").DeserializedJson;
2736
+ type: "remove";
2640
2737
  key: string;
2641
2738
  } | {
2642
- type: "increment";
2643
2739
  value: number;
2740
+ type: "increment";
2644
2741
  key: string;
2645
2742
  })[] | undefined;
2646
2743
  rootOperations?: ({
2647
- type: "update";
2648
2744
  value: Record<string, unknown>;
2745
+ type: "update";
2649
2746
  } | {
2650
- type: "set";
2651
2747
  value: import("../../../index.js").DeserializedJson;
2748
+ type: "set";
2652
2749
  key: string;
2653
2750
  } | {
2654
2751
  type: "delete";
2655
2752
  key: string;
2656
2753
  } | {
2657
- type: "append";
2658
2754
  value: import("../../../index.js").DeserializedJson;
2755
+ type: "append";
2659
2756
  key: string;
2660
2757
  } | {
2661
- type: "remove";
2662
2758
  value: import("../../../index.js").DeserializedJson;
2759
+ type: "remove";
2663
2760
  key: string;
2664
2761
  } | {
2665
- type: "increment";
2666
2762
  value: number;
2763
+ type: "increment";
2667
2764
  key: string;
2668
2765
  })[] | undefined;
2669
2766
  } | undefined;
@@ -2688,72 +2785,72 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2688
2785
  metadata?: {
2689
2786
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2690
2787
  operations?: ({
2691
- type: "update";
2692
2788
  value: Record<string, unknown>;
2789
+ type: "update";
2693
2790
  } | {
2694
- type: "set";
2695
2791
  value: import("../../../index.js").DeserializedJson;
2792
+ type: "set";
2696
2793
  key: string;
2697
2794
  } | {
2698
2795
  type: "delete";
2699
2796
  key: string;
2700
2797
  } | {
2701
- type: "append";
2702
2798
  value: import("../../../index.js").DeserializedJson;
2799
+ type: "append";
2703
2800
  key: string;
2704
2801
  } | {
2705
- type: "remove";
2706
2802
  value: import("../../../index.js").DeserializedJson;
2803
+ type: "remove";
2707
2804
  key: string;
2708
2805
  } | {
2709
- type: "increment";
2710
2806
  value: number;
2807
+ type: "increment";
2711
2808
  key: string;
2712
2809
  })[] | undefined;
2713
2810
  parentOperations?: ({
2714
- type: "update";
2715
2811
  value: Record<string, unknown>;
2812
+ type: "update";
2716
2813
  } | {
2717
- type: "set";
2718
2814
  value: import("../../../index.js").DeserializedJson;
2815
+ type: "set";
2719
2816
  key: string;
2720
2817
  } | {
2721
2818
  type: "delete";
2722
2819
  key: string;
2723
2820
  } | {
2724
- type: "append";
2725
2821
  value: import("../../../index.js").DeserializedJson;
2822
+ type: "append";
2726
2823
  key: string;
2727
2824
  } | {
2728
- type: "remove";
2729
2825
  value: import("../../../index.js").DeserializedJson;
2826
+ type: "remove";
2730
2827
  key: string;
2731
2828
  } | {
2732
- type: "increment";
2733
2829
  value: number;
2830
+ type: "increment";
2734
2831
  key: string;
2735
2832
  })[] | undefined;
2736
2833
  rootOperations?: ({
2737
- type: "update";
2738
2834
  value: Record<string, unknown>;
2835
+ type: "update";
2739
2836
  } | {
2740
- type: "set";
2741
2837
  value: import("../../../index.js").DeserializedJson;
2838
+ type: "set";
2742
2839
  key: string;
2743
2840
  } | {
2744
2841
  type: "delete";
2745
2842
  key: string;
2746
2843
  } | {
2747
- type: "append";
2748
2844
  value: import("../../../index.js").DeserializedJson;
2845
+ type: "append";
2749
2846
  key: string;
2750
2847
  } | {
2751
- type: "remove";
2752
2848
  value: import("../../../index.js").DeserializedJson;
2849
+ type: "remove";
2753
2850
  key: string;
2754
2851
  } | {
2755
- type: "increment";
2756
2852
  value: number;
2853
+ type: "increment";
2757
2854
  key: string;
2758
2855
  })[] | undefined;
2759
2856
  } | undefined;
@@ -2791,72 +2888,72 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2791
2888
  metadata?: {
2792
2889
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2793
2890
  operations?: ({
2794
- type: "update";
2795
2891
  value: Record<string, unknown>;
2892
+ type: "update";
2796
2893
  } | {
2797
- type: "set";
2798
2894
  value: import("../../../index.js").DeserializedJson;
2895
+ type: "set";
2799
2896
  key: string;
2800
2897
  } | {
2801
2898
  type: "delete";
2802
2899
  key: string;
2803
2900
  } | {
2804
- type: "append";
2805
2901
  value: import("../../../index.js").DeserializedJson;
2902
+ type: "append";
2806
2903
  key: string;
2807
2904
  } | {
2808
- type: "remove";
2809
2905
  value: import("../../../index.js").DeserializedJson;
2906
+ type: "remove";
2810
2907
  key: string;
2811
2908
  } | {
2812
- type: "increment";
2813
2909
  value: number;
2910
+ type: "increment";
2814
2911
  key: string;
2815
2912
  })[] | undefined;
2816
2913
  parentOperations?: ({
2817
- type: "update";
2818
2914
  value: Record<string, unknown>;
2915
+ type: "update";
2819
2916
  } | {
2820
- type: "set";
2821
2917
  value: import("../../../index.js").DeserializedJson;
2918
+ type: "set";
2822
2919
  key: string;
2823
2920
  } | {
2824
2921
  type: "delete";
2825
2922
  key: string;
2826
2923
  } | {
2827
- type: "append";
2828
2924
  value: import("../../../index.js").DeserializedJson;
2925
+ type: "append";
2829
2926
  key: string;
2830
2927
  } | {
2831
- type: "remove";
2832
2928
  value: import("../../../index.js").DeserializedJson;
2929
+ type: "remove";
2833
2930
  key: string;
2834
2931
  } | {
2835
- type: "increment";
2836
2932
  value: number;
2933
+ type: "increment";
2837
2934
  key: string;
2838
2935
  })[] | undefined;
2839
2936
  rootOperations?: ({
2840
- type: "update";
2841
2937
  value: Record<string, unknown>;
2938
+ type: "update";
2842
2939
  } | {
2843
- type: "set";
2844
2940
  value: import("../../../index.js").DeserializedJson;
2941
+ type: "set";
2845
2942
  key: string;
2846
2943
  } | {
2847
2944
  type: "delete";
2848
2945
  key: string;
2849
2946
  } | {
2850
- type: "append";
2851
2947
  value: import("../../../index.js").DeserializedJson;
2948
+ type: "append";
2852
2949
  key: string;
2853
2950
  } | {
2854
- type: "remove";
2855
2951
  value: import("../../../index.js").DeserializedJson;
2952
+ type: "remove";
2856
2953
  key: string;
2857
2954
  } | {
2858
- type: "increment";
2859
2955
  value: number;
2956
+ type: "increment";
2860
2957
  key: string;
2861
2958
  })[] | undefined;
2862
2959
  } | undefined;
@@ -2881,72 +2978,72 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2881
2978
  metadata?: {
2882
2979
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2883
2980
  operations?: ({
2884
- type: "update";
2885
2981
  value: Record<string, unknown>;
2982
+ type: "update";
2886
2983
  } | {
2887
- type: "set";
2888
2984
  value: import("../../../index.js").DeserializedJson;
2985
+ type: "set";
2889
2986
  key: string;
2890
2987
  } | {
2891
2988
  type: "delete";
2892
2989
  key: string;
2893
2990
  } | {
2894
- type: "append";
2895
2991
  value: import("../../../index.js").DeserializedJson;
2992
+ type: "append";
2896
2993
  key: string;
2897
2994
  } | {
2898
- type: "remove";
2899
2995
  value: import("../../../index.js").DeserializedJson;
2996
+ type: "remove";
2900
2997
  key: string;
2901
2998
  } | {
2902
- type: "increment";
2903
2999
  value: number;
3000
+ type: "increment";
2904
3001
  key: string;
2905
3002
  })[] | undefined;
2906
3003
  parentOperations?: ({
2907
- type: "update";
2908
3004
  value: Record<string, unknown>;
3005
+ type: "update";
2909
3006
  } | {
2910
- type: "set";
2911
3007
  value: import("../../../index.js").DeserializedJson;
3008
+ type: "set";
2912
3009
  key: string;
2913
3010
  } | {
2914
3011
  type: "delete";
2915
3012
  key: string;
2916
3013
  } | {
2917
- type: "append";
2918
3014
  value: import("../../../index.js").DeserializedJson;
3015
+ type: "append";
2919
3016
  key: string;
2920
3017
  } | {
2921
- type: "remove";
2922
3018
  value: import("../../../index.js").DeserializedJson;
3019
+ type: "remove";
2923
3020
  key: string;
2924
3021
  } | {
2925
- type: "increment";
2926
3022
  value: number;
3023
+ type: "increment";
2927
3024
  key: string;
2928
3025
  })[] | undefined;
2929
3026
  rootOperations?: ({
2930
- type: "update";
2931
3027
  value: Record<string, unknown>;
3028
+ type: "update";
2932
3029
  } | {
2933
- type: "set";
2934
3030
  value: import("../../../index.js").DeserializedJson;
3031
+ type: "set";
2935
3032
  key: string;
2936
3033
  } | {
2937
3034
  type: "delete";
2938
3035
  key: string;
2939
3036
  } | {
2940
- type: "append";
2941
3037
  value: import("../../../index.js").DeserializedJson;
3038
+ type: "append";
2942
3039
  key: string;
2943
3040
  } | {
2944
- type: "remove";
2945
3041
  value: import("../../../index.js").DeserializedJson;
3042
+ type: "remove";
2946
3043
  key: string;
2947
3044
  } | {
2948
- type: "increment";
2949
3045
  value: number;
3046
+ type: "increment";
2950
3047
  key: string;
2951
3048
  })[] | undefined;
2952
3049
  } | undefined;
@@ -3120,15 +3217,15 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3120
3217
  id: string;
3121
3218
  friendlyId: string;
3122
3219
  }>>;
3123
- checkpoint: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
3220
+ checkpoint: z.ZodOptional<z.ZodObject<{
3124
3221
  type: z.ZodEnum<[import("../../schemas/runEngine.js").CheckpointTypeEnum]>;
3125
3222
  location: z.ZodString;
3126
3223
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3127
3224
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3128
- }, {
3225
+ } & {
3129
3226
  id: z.ZodString;
3130
3227
  friendlyId: z.ZodString;
3131
- }>, "strip", z.ZodTypeAny, {
3228
+ }, "strip", z.ZodTypeAny, {
3132
3229
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3133
3230
  id: string;
3134
3231
  friendlyId: string;
@@ -3688,6 +3785,16 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3688
3785
  }, {
3689
3786
  id: string;
3690
3787
  }>;
3788
+ placementTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
3789
+ key: z.ZodString;
3790
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3791
+ }, "strip", z.ZodTypeAny, {
3792
+ key: string;
3793
+ values?: string[] | undefined;
3794
+ }, {
3795
+ key: string;
3796
+ values?: string[] | undefined;
3797
+ }>, "many">>;
3691
3798
  }, "strip", z.ZodTypeAny, {
3692
3799
  version: "1";
3693
3800
  environment: {
@@ -3764,6 +3871,10 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3764
3871
  reason?: string | null | undefined;
3765
3872
  } | undefined;
3766
3873
  image?: string | undefined;
3874
+ placementTags?: {
3875
+ key: string;
3876
+ values?: string[] | undefined;
3877
+ }[] | undefined;
3767
3878
  }, {
3768
3879
  version: "1";
3769
3880
  environment: {
@@ -3840,6 +3951,10 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3840
3951
  reason?: string | null | undefined;
3841
3952
  } | undefined;
3842
3953
  image?: string | undefined;
3954
+ placementTags?: {
3955
+ key: string;
3956
+ values?: string[] | undefined;
3957
+ }[] | undefined;
3843
3958
  }>, "many">;
3844
3959
  export type WorkerApiDequeueFromVersionResponseBody = z.infer<typeof WorkerApiDequeueFromVersionResponseBody>;
3845
3960
  export declare const DebugLogPropertiesValue: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, "many">]>;
@@ -3934,15 +4049,15 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
3934
4049
  id: string;
3935
4050
  friendlyId: string;
3936
4051
  }>>;
3937
- checkpoint: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
4052
+ checkpoint: z.ZodOptional<z.ZodObject<{
3938
4053
  type: z.ZodEnum<[import("../../schemas/runEngine.js").CheckpointTypeEnum]>;
3939
4054
  location: z.ZodString;
3940
4055
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3941
4056
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3942
- }, {
4057
+ } & {
3943
4058
  id: z.ZodString;
3944
4059
  friendlyId: z.ZodString;
3945
- }>, "strip", z.ZodTypeAny, {
4060
+ }, "strip", z.ZodTypeAny, {
3946
4061
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3947
4062
  id: string;
3948
4063
  friendlyId: string;