@paperclipai/shared 2026.824.0 → 2026.825.0-beta.0

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 (276) hide show
  1. package/dist/adapter-auth-check-code.d.ts +13 -0
  2. package/dist/adapter-auth-check-code.d.ts.map +1 -0
  3. package/dist/adapter-auth-check-code.js +13 -0
  4. package/dist/adapter-auth-check-code.js.map +1 -0
  5. package/dist/adapter-auth-check-code.test.d.ts +2 -0
  6. package/dist/adapter-auth-check-code.test.d.ts.map +1 -0
  7. package/dist/adapter-auth-check-code.test.js +8 -0
  8. package/dist/adapter-auth-check-code.test.js.map +1 -0
  9. package/dist/company-import-transfer.d.ts +3 -37
  10. package/dist/company-import-transfer.d.ts.map +1 -1
  11. package/dist/config-schema.d.ts +130 -1570
  12. package/dist/config-schema.d.ts.map +1 -1
  13. package/dist/config-schema.js +3 -7
  14. package/dist/config-schema.js.map +1 -1
  15. package/dist/constants.d.ts +3 -2
  16. package/dist/constants.d.ts.map +1 -1
  17. package/dist/constants.js +3 -0
  18. package/dist/constants.js.map +1 -1
  19. package/dist/environment-support.d.ts +1 -1
  20. package/dist/environment-support.d.ts.map +1 -1
  21. package/dist/environment-support.js +3 -2
  22. package/dist/environment-support.js.map +1 -1
  23. package/dist/environment-support.test.js +19 -0
  24. package/dist/environment-support.test.js.map +1 -1
  25. package/dist/feature-catalog.d.ts +7 -17
  26. package/dist/feature-catalog.d.ts.map +1 -1
  27. package/dist/feature-catalog.js +9 -2
  28. package/dist/feature-catalog.js.map +1 -1
  29. package/dist/frontmatter.d.ts +3 -13
  30. package/dist/frontmatter.d.ts.map +1 -1
  31. package/dist/frontmatter.js +2 -2
  32. package/dist/frontmatter.js.map +1 -1
  33. package/dist/index.d.ts +7 -3
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +6 -2
  36. package/dist/index.js.map +1 -1
  37. package/dist/markdown-work-products.d.ts +26 -0
  38. package/dist/markdown-work-products.d.ts.map +1 -0
  39. package/dist/markdown-work-products.js +70 -0
  40. package/dist/markdown-work-products.js.map +1 -0
  41. package/dist/markdown-work-products.test.d.ts +2 -0
  42. package/dist/markdown-work-products.test.d.ts.map +1 -0
  43. package/dist/markdown-work-products.test.js +122 -0
  44. package/dist/markdown-work-products.test.js.map +1 -0
  45. package/dist/node-version.d.ts +6 -0
  46. package/dist/node-version.d.ts.map +1 -0
  47. package/dist/node-version.js +46 -0
  48. package/dist/node-version.js.map +1 -0
  49. package/dist/runtime-exposure/loopback-bind.d.ts +2 -2
  50. package/dist/runtime-exposure/loopback-bind.d.ts.map +1 -1
  51. package/dist/runtime-exposure/loopback-bind.js +3 -3
  52. package/dist/runtime-exposure/loopback-bind.js.map +1 -1
  53. package/dist/runtime-exposure/loopback-bind.test.js +11 -10
  54. package/dist/runtime-exposure/loopback-bind.test.js.map +1 -1
  55. package/dist/settings-visibility.d.ts +62 -0
  56. package/dist/settings-visibility.d.ts.map +1 -0
  57. package/dist/settings-visibility.js +102 -0
  58. package/dist/settings-visibility.js.map +1 -0
  59. package/dist/settings-visibility.test.d.ts +2 -0
  60. package/dist/settings-visibility.test.d.ts.map +1 -0
  61. package/dist/settings-visibility.test.js +51 -0
  62. package/dist/settings-visibility.test.js.map +1 -0
  63. package/dist/telemetry/generated/paperclip-telemetry.d.ts +4 -2
  64. package/dist/telemetry/generated/paperclip-telemetry.d.ts.map +1 -1
  65. package/dist/telemetry/generated/paperclip-telemetry.js +2 -0
  66. package/dist/telemetry/generated/paperclip-telemetry.js.map +1 -1
  67. package/dist/types/environment.d.ts +20 -0
  68. package/dist/types/environment.d.ts.map +1 -1
  69. package/dist/types/index.d.ts +5 -3
  70. package/dist/types/index.d.ts.map +1 -1
  71. package/dist/types/index.js +1 -0
  72. package/dist/types/index.js.map +1 -1
  73. package/dist/types/instance.d.ts +7 -0
  74. package/dist/types/instance.d.ts.map +1 -1
  75. package/dist/types/instance.js.map +1 -1
  76. package/dist/types/issue.d.ts +19 -0
  77. package/dist/types/issue.d.ts.map +1 -1
  78. package/dist/types/plugin.d.ts +34 -4
  79. package/dist/types/plugin.d.ts.map +1 -1
  80. package/dist/types/workspace-operation.d.ts +1 -1
  81. package/dist/types/workspace-operation.d.ts.map +1 -1
  82. package/dist/types/workspace-readiness.d.ts +62 -0
  83. package/dist/types/workspace-readiness.d.ts.map +1 -0
  84. package/dist/types/workspace-readiness.js +28 -0
  85. package/dist/types/workspace-readiness.js.map +1 -0
  86. package/dist/types/workspace-runtime.d.ts +6 -8
  87. package/dist/types/workspace-runtime.d.ts.map +1 -1
  88. package/dist/validators/access.d.ts +143 -277
  89. package/dist/validators/access.d.ts.map +1 -1
  90. package/dist/validators/access.js +5 -5
  91. package/dist/validators/adapter-auth-session.d.ts +50 -97
  92. package/dist/validators/adapter-auth-session.d.ts.map +1 -1
  93. package/dist/validators/adapter-auth-session.js +3 -3
  94. package/dist/validators/adapter-registry.d.ts +8 -40
  95. package/dist/validators/adapter-registry.d.ts.map +1 -1
  96. package/dist/validators/adapter-registry.js +1 -1
  97. package/dist/validators/adapter-registry.js.map +1 -1
  98. package/dist/validators/adapter-skills.d.ts +71 -170
  99. package/dist/validators/adapter-skills.d.ts.map +1 -1
  100. package/dist/validators/adapter-skills.js +3 -3
  101. package/dist/validators/agent.d.ts +412 -4798
  102. package/dist/validators/agent.d.ts.map +1 -1
  103. package/dist/validators/agent.js +13 -13
  104. package/dist/validators/agent.js.map +1 -1
  105. package/dist/validators/app-definition.d.ts +270 -2315
  106. package/dist/validators/app-definition.d.ts.map +1 -1
  107. package/dist/validators/approval.d.ts +15 -36
  108. package/dist/validators/approval.d.ts.map +1 -1
  109. package/dist/validators/approval.js +2 -2
  110. package/dist/validators/artifact.d.ts +162 -893
  111. package/dist/validators/artifact.d.ts.map +1 -1
  112. package/dist/validators/artifact.js +6 -6
  113. package/dist/validators/asset.d.ts +1 -5
  114. package/dist/validators/asset.d.ts.map +1 -1
  115. package/dist/validators/budget.d.ts +19 -43
  116. package/dist/validators/budget.d.ts.map +1 -1
  117. package/dist/validators/budget.js +1 -1
  118. package/dist/validators/claude-setup-token-session.d.ts +61 -181
  119. package/dist/validators/claude-setup-token-session.d.ts.map +1 -1
  120. package/dist/validators/claude-setup-token-session.js +4 -4
  121. package/dist/validators/company-portability.d.ts +318 -3616
  122. package/dist/validators/company-portability.d.ts.map +1 -1
  123. package/dist/validators/company-portability.js +2 -2
  124. package/dist/validators/company-skill.d.ts +722 -2934
  125. package/dist/validators/company-skill.d.ts.map +1 -1
  126. package/dist/validators/company-skill.js +63 -63
  127. package/dist/validators/company.d.ts +162 -289
  128. package/dist/validators/company.d.ts.map +1 -1
  129. package/dist/validators/company.js +4 -3
  130. package/dist/validators/company.js.map +1 -1
  131. package/dist/validators/cost.d.ts +29 -57
  132. package/dist/validators/cost.d.ts.map +1 -1
  133. package/dist/validators/cost.js +5 -5
  134. package/dist/validators/decision-queue.d.ts +60 -108
  135. package/dist/validators/decision-queue.d.ts.map +1 -1
  136. package/dist/validators/decision.d.ts +230 -1884
  137. package/dist/validators/decision.d.ts.map +1 -1
  138. package/dist/validators/decision.js +9 -9
  139. package/dist/validators/document-annotation.d.ts +37 -203
  140. package/dist/validators/document-annotation.d.ts.map +1 -1
  141. package/dist/validators/document-annotation.js +3 -3
  142. package/dist/validators/environment-custom-images.d.ts +79 -173
  143. package/dist/validators/environment-custom-images.d.ts.map +1 -1
  144. package/dist/validators/environment-custom-images.js +14 -11
  145. package/dist/validators/environment-custom-images.js.map +1 -1
  146. package/dist/validators/environment.d.ts +82 -259
  147. package/dist/validators/environment.d.ts.map +1 -1
  148. package/dist/validators/execution-workspace.d.ts +173 -513
  149. package/dist/validators/execution-workspace.d.ts.map +1 -1
  150. package/dist/validators/execution-workspace.js +13 -13
  151. package/dist/validators/execution-workspace.js.map +1 -1
  152. package/dist/validators/external-object.d.ts +55 -27
  153. package/dist/validators/external-object.d.ts.map +1 -1
  154. package/dist/validators/external-object.js +1 -1
  155. package/dist/validators/external-object.js.map +1 -1
  156. package/dist/validators/feedback.d.ts +28 -19
  157. package/dist/validators/feedback.d.ts.map +1 -1
  158. package/dist/validators/feedback.js +1 -1
  159. package/dist/validators/finance.d.ts +69 -74
  160. package/dist/validators/finance.d.ts.map +1 -1
  161. package/dist/validators/finance.js +6 -6
  162. package/dist/validators/folder.d.ts +44 -205
  163. package/dist/validators/folder.d.ts.map +1 -1
  164. package/dist/validators/folder.js +7 -7
  165. package/dist/validators/goal.d.ts +26 -34
  166. package/dist/validators/goal.d.ts.map +1 -1
  167. package/dist/validators/goal.js +4 -3
  168. package/dist/validators/goal.js.map +1 -1
  169. package/dist/validators/inbox-agent-policy.d.ts +12 -16
  170. package/dist/validators/inbox-agent-policy.d.ts.map +1 -1
  171. package/dist/validators/inbox-agent-policy.js +1 -1
  172. package/dist/validators/index.d.ts +2 -2
  173. package/dist/validators/index.d.ts.map +1 -1
  174. package/dist/validators/index.js +2 -2
  175. package/dist/validators/index.js.map +1 -1
  176. package/dist/validators/instance.d.ts +50 -563
  177. package/dist/validators/instance.d.ts.map +1 -1
  178. package/dist/validators/instance.js +16 -6
  179. package/dist/validators/instance.js.map +1 -1
  180. package/dist/validators/instance.test.js +13 -0
  181. package/dist/validators/instance.test.js.map +1 -1
  182. package/dist/validators/issue-tree-control.d.ts +41 -80
  183. package/dist/validators/issue-tree-control.d.ts.map +1 -1
  184. package/dist/validators/issue.d.ts +1772 -12251
  185. package/dist/validators/issue.d.ts.map +1 -1
  186. package/dist/validators/issue.js +150 -84
  187. package/dist/validators/issue.js.map +1 -1
  188. package/dist/validators/onboarding-seed.d.ts +3 -37
  189. package/dist/validators/onboarding-seed.d.ts.map +1 -1
  190. package/dist/validators/partial.d.ts +4 -0
  191. package/dist/validators/partial.d.ts.map +1 -0
  192. package/dist/validators/partial.js +35 -0
  193. package/dist/validators/partial.js.map +1 -0
  194. package/dist/validators/pipeline.d.ts +218 -3882
  195. package/dist/validators/pipeline.d.ts.map +1 -1
  196. package/dist/validators/pipeline.js +11 -11
  197. package/dist/validators/plugin.d.ts +725 -2597
  198. package/dist/validators/plugin.d.ts.map +1 -1
  199. package/dist/validators/plugin.js +38 -6
  200. package/dist/validators/plugin.js.map +1 -1
  201. package/dist/validators/plugin.test.js +54 -10
  202. package/dist/validators/plugin.test.js.map +1 -1
  203. package/dist/validators/project.d.ts +345 -2406
  204. package/dist/validators/project.d.ts.map +1 -1
  205. package/dist/validators/project.js +8 -7
  206. package/dist/validators/project.js.map +1 -1
  207. package/dist/validators/resource-memberships.d.ts +11 -27
  208. package/dist/validators/resource-memberships.d.ts.map +1 -1
  209. package/dist/validators/routine.d.ts +362 -1297
  210. package/dist/validators/routine.d.ts.map +1 -1
  211. package/dist/validators/routine.js +21 -20
  212. package/dist/validators/routine.js.map +1 -1
  213. package/dist/validators/runtime-exposure.d.ts +31 -80
  214. package/dist/validators/runtime-exposure.d.ts.map +1 -1
  215. package/dist/validators/search.d.ts +25 -93
  216. package/dist/validators/search.d.ts.map +1 -1
  217. package/dist/validators/secret.d.ts +174 -655
  218. package/dist/validators/secret.d.ts.map +1 -1
  219. package/dist/validators/secret.js +14 -14
  220. package/dist/validators/secret.js.map +1 -1
  221. package/dist/validators/sidebar-preferences.d.ts +5 -15
  222. package/dist/validators/sidebar-preferences.d.ts.map +1 -1
  223. package/dist/validators/sidebar-preferences.js +1 -1
  224. package/dist/validators/skill-policy.d.ts +184 -561
  225. package/dist/validators/skill-policy.d.ts.map +1 -1
  226. package/dist/validators/skill-policy.js +4 -4
  227. package/dist/validators/smoke-lab.d.ts +53 -37
  228. package/dist/validators/smoke-lab.d.ts.map +1 -1
  229. package/dist/validators/status-card.d.ts +139 -994
  230. package/dist/validators/status-card.d.ts.map +1 -1
  231. package/dist/validators/status-card.js +21 -21
  232. package/dist/validators/status-card.js.map +1 -1
  233. package/dist/validators/summary-slot.d.ts +28 -50
  234. package/dist/validators/summary-slot.d.ts.map +1 -1
  235. package/dist/validators/summary-slot.js +3 -3
  236. package/dist/validators/teams-catalog.d.ts +209 -472
  237. package/dist/validators/teams-catalog.d.ts.map +1 -1
  238. package/dist/validators/text.d.ts +1 -1
  239. package/dist/validators/text.d.ts.map +1 -1
  240. package/dist/validators/tool-access.d.ts +1088 -4670
  241. package/dist/validators/tool-access.d.ts.map +1 -1
  242. package/dist/validators/tool-access.js +96 -95
  243. package/dist/validators/tool-access.js.map +1 -1
  244. package/dist/validators/trust-policy.d.ts +62 -358
  245. package/dist/validators/trust-policy.d.ts.map +1 -1
  246. package/dist/validators/trust-policy.js +12 -12
  247. package/dist/validators/work-product.d.ts +110 -536
  248. package/dist/validators/work-product.d.ts.map +1 -1
  249. package/dist/validators/work-product.js +7 -6
  250. package/dist/validators/work-product.js.map +1 -1
  251. package/dist/validators/workspace-file-resource.d.ts +163 -618
  252. package/dist/validators/workspace-file-resource.d.ts.map +1 -1
  253. package/dist/validators/workspace-file-resource.js +11 -11
  254. package/dist/workspace-commands.d.ts +4 -2
  255. package/dist/workspace-commands.d.ts.map +1 -1
  256. package/dist/workspace-commands.js +9 -1
  257. package/dist/workspace-commands.js.map +1 -1
  258. package/dist/workspace-commands.test.js +45 -0
  259. package/dist/workspace-commands.test.js.map +1 -1
  260. package/dist/worktree-port-registry.d.ts +5 -0
  261. package/dist/worktree-port-registry.d.ts.map +1 -0
  262. package/dist/worktree-port-registry.js +382 -0
  263. package/dist/worktree-port-registry.js.map +1 -0
  264. package/dist/worktree-port-registry.test.d.ts +2 -0
  265. package/dist/worktree-port-registry.test.d.ts.map +1 -0
  266. package/dist/worktree-port-registry.test.js +118 -0
  267. package/dist/worktree-port-registry.test.js.map +1 -0
  268. package/dist/worktree-seed-source.d.ts +43 -0
  269. package/dist/worktree-seed-source.d.ts.map +1 -0
  270. package/dist/worktree-seed-source.js +180 -0
  271. package/dist/worktree-seed-source.js.map +1 -0
  272. package/dist/worktree-seed-source.test.d.ts +2 -0
  273. package/dist/worktree-seed-source.test.d.ts.map +1 -0
  274. package/dist/worktree-seed-source.test.js +166 -0
  275. package/dist/worktree-seed-source.test.js.map +1 -0
  276. package/package.json +6 -3
@@ -1,725 +1,196 @@
1
1
  import { z } from "zod";
2
- export declare const pipelineStageKindSchema: z.ZodEnum<["working", "review", "done", "cancelled"]>;
3
- export declare const legacyPipelineStageKindSchema: z.ZodEnum<["open", "working", "review", "done", "cancelled"]>;
4
- export declare const pipelineStageApproverSchema: z.ZodEffects<z.ZodObject<{
5
- kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["any_human", "user", "agent"]>>>;
6
- id: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- kind: "user" | "agent" | "any_human";
9
- id?: string | undefined;
10
- }, {
11
- id?: string | undefined;
12
- kind?: "user" | "agent" | "any_human" | undefined;
13
- }>, {
14
- kind: "user" | "agent" | "any_human";
15
- id?: string | undefined;
16
- }, {
17
- id?: string | undefined;
18
- kind?: "user" | "agent" | "any_human" | undefined;
2
+ export declare const pipelineStageKindSchema: z.ZodEnum<{
3
+ done: "done";
4
+ cancelled: "cancelled";
5
+ review: "review";
6
+ working: "working";
19
7
  }>;
20
- export declare const pipelineStageOnEnterSchema: z.ZodObject<{
21
- type: z.ZodLiteral<"run_routine">;
22
- routineId: z.ZodString;
23
- id: z.ZodOptional<z.ZodString>;
24
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
25
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
28
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
29
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
30
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
31
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
33
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
34
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
35
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
- }, "strict", z.ZodTypeAny, {
41
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
42
- baseRef?: string | null | undefined;
43
- branchTemplate?: string | null | undefined;
44
- worktreeParentDir?: string | null | undefined;
45
- provisionCommand?: string | null | undefined;
46
- runtimeProvisionCommand?: string | null | undefined;
47
- teardownCommand?: string | null | undefined;
48
- }, {
49
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
50
- baseRef?: string | null | undefined;
51
- branchTemplate?: string | null | undefined;
52
- worktreeParentDir?: string | null | undefined;
53
- provisionCommand?: string | null | undefined;
54
- runtimeProvisionCommand?: string | null | undefined;
55
- teardownCommand?: string | null | undefined;
56
- }>>>;
57
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
58
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
59
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
60
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
61
- }, "strict", z.ZodTypeAny, {
62
- allowFqdns?: string[] | undefined;
63
- allowCidrs?: string[] | undefined;
64
- }, {
65
- allowFqdns?: string[] | undefined;
66
- allowCidrs?: string[] | undefined;
67
- }>>>;
68
- }, "strict", z.ZodTypeAny, {
69
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
70
- environmentId?: string | null | undefined;
71
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
72
- workspaceStrategy?: {
73
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
74
- baseRef?: string | null | undefined;
75
- branchTemplate?: string | null | undefined;
76
- worktreeParentDir?: string | null | undefined;
77
- provisionCommand?: string | null | undefined;
78
- runtimeProvisionCommand?: string | null | undefined;
79
- teardownCommand?: string | null | undefined;
80
- } | null | undefined;
81
- workspaceRuntime?: Record<string, unknown> | null | undefined;
82
- networkEgress?: {
83
- allowFqdns?: string[] | undefined;
84
- allowCidrs?: string[] | undefined;
85
- } | null | undefined;
86
- }, {
87
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
88
- environmentId?: string | null | undefined;
89
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
90
- workspaceStrategy?: {
91
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
92
- baseRef?: string | null | undefined;
93
- branchTemplate?: string | null | undefined;
94
- worktreeParentDir?: string | null | undefined;
95
- provisionCommand?: string | null | undefined;
96
- runtimeProvisionCommand?: string | null | undefined;
97
- teardownCommand?: string | null | undefined;
98
- } | null | undefined;
99
- workspaceRuntime?: Record<string, unknown> | null | undefined;
100
- networkEgress?: {
101
- allowFqdns?: string[] | undefined;
102
- allowCidrs?: string[] | undefined;
103
- } | null | undefined;
8
+ export declare const legacyPipelineStageKindSchema: z.ZodEnum<{
9
+ done: "done";
10
+ cancelled: "cancelled";
11
+ open: "open";
12
+ review: "review";
13
+ working: "working";
14
+ }>;
15
+ export declare const pipelineStageApproverSchema: z.ZodObject<{
16
+ kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
17
+ user: "user";
18
+ agent: "agent";
19
+ any_human: "any_human";
104
20
  }>>>;
105
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
106
- type: z.ZodLiteral<"run_routine">;
107
- routineId: z.ZodString;
108
21
  id: z.ZodOptional<z.ZodString>;
109
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
110
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
111
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
112
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
113
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
114
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
115
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
116
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
117
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
118
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
119
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
120
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
121
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
122
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
123
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
124
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
- }, "strict", z.ZodTypeAny, {
126
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
127
- baseRef?: string | null | undefined;
128
- branchTemplate?: string | null | undefined;
129
- worktreeParentDir?: string | null | undefined;
130
- provisionCommand?: string | null | undefined;
131
- runtimeProvisionCommand?: string | null | undefined;
132
- teardownCommand?: string | null | undefined;
133
- }, {
134
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
135
- baseRef?: string | null | undefined;
136
- branchTemplate?: string | null | undefined;
137
- worktreeParentDir?: string | null | undefined;
138
- provisionCommand?: string | null | undefined;
139
- runtimeProvisionCommand?: string | null | undefined;
140
- teardownCommand?: string | null | undefined;
141
- }>>>;
142
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
143
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
144
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
145
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
146
- }, "strict", z.ZodTypeAny, {
147
- allowFqdns?: string[] | undefined;
148
- allowCidrs?: string[] | undefined;
149
- }, {
150
- allowFqdns?: string[] | undefined;
151
- allowCidrs?: string[] | undefined;
152
- }>>>;
153
- }, "strict", z.ZodTypeAny, {
154
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
155
- environmentId?: string | null | undefined;
156
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
157
- workspaceStrategy?: {
158
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
159
- baseRef?: string | null | undefined;
160
- branchTemplate?: string | null | undefined;
161
- worktreeParentDir?: string | null | undefined;
162
- provisionCommand?: string | null | undefined;
163
- runtimeProvisionCommand?: string | null | undefined;
164
- teardownCommand?: string | null | undefined;
165
- } | null | undefined;
166
- workspaceRuntime?: Record<string, unknown> | null | undefined;
167
- networkEgress?: {
168
- allowFqdns?: string[] | undefined;
169
- allowCidrs?: string[] | undefined;
170
- } | null | undefined;
171
- }, {
172
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
173
- environmentId?: string | null | undefined;
174
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
175
- workspaceStrategy?: {
176
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
177
- baseRef?: string | null | undefined;
178
- branchTemplate?: string | null | undefined;
179
- worktreeParentDir?: string | null | undefined;
180
- provisionCommand?: string | null | undefined;
181
- runtimeProvisionCommand?: string | null | undefined;
182
- teardownCommand?: string | null | undefined;
183
- } | null | undefined;
184
- workspaceRuntime?: Record<string, unknown> | null | undefined;
185
- networkEgress?: {
186
- allowFqdns?: string[] | undefined;
187
- allowCidrs?: string[] | undefined;
188
- } | null | undefined;
189
- }>>>;
190
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
22
+ }, z.core.$strip>;
23
+ export declare const pipelineStageOnEnterSchema: z.ZodObject<{
191
24
  type: z.ZodLiteral<"run_routine">;
192
25
  routineId: z.ZodString;
193
26
  id: z.ZodOptional<z.ZodString>;
194
27
  projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
195
28
  projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
196
29
  executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
197
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
198
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
199
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
200
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
201
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
202
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
203
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
204
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
205
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
206
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
207
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
208
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
209
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
210
- }, "strict", z.ZodTypeAny, {
211
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
212
- baseRef?: string | null | undefined;
213
- branchTemplate?: string | null | undefined;
214
- worktreeParentDir?: string | null | undefined;
215
- provisionCommand?: string | null | undefined;
216
- runtimeProvisionCommand?: string | null | undefined;
217
- teardownCommand?: string | null | undefined;
218
- }, {
219
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
220
- baseRef?: string | null | undefined;
221
- branchTemplate?: string | null | undefined;
222
- worktreeParentDir?: string | null | undefined;
223
- provisionCommand?: string | null | undefined;
224
- runtimeProvisionCommand?: string | null | undefined;
225
- teardownCommand?: string | null | undefined;
226
- }>>>;
227
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
228
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
229
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
230
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
231
- }, "strict", z.ZodTypeAny, {
232
- allowFqdns?: string[] | undefined;
233
- allowCidrs?: string[] | undefined;
234
- }, {
235
- allowFqdns?: string[] | undefined;
236
- allowCidrs?: string[] | undefined;
237
- }>>>;
238
- }, "strict", z.ZodTypeAny, {
239
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
240
- environmentId?: string | null | undefined;
241
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
242
- workspaceStrategy?: {
243
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
244
- baseRef?: string | null | undefined;
245
- branchTemplate?: string | null | undefined;
246
- worktreeParentDir?: string | null | undefined;
247
- provisionCommand?: string | null | undefined;
248
- runtimeProvisionCommand?: string | null | undefined;
249
- teardownCommand?: string | null | undefined;
250
- } | null | undefined;
251
- workspaceRuntime?: Record<string, unknown> | null | undefined;
252
- networkEgress?: {
253
- allowFqdns?: string[] | undefined;
254
- allowCidrs?: string[] | undefined;
255
- } | null | undefined;
256
- }, {
257
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
258
- environmentId?: string | null | undefined;
259
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
260
- workspaceStrategy?: {
261
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
262
- baseRef?: string | null | undefined;
263
- branchTemplate?: string | null | undefined;
264
- worktreeParentDir?: string | null | undefined;
265
- provisionCommand?: string | null | undefined;
266
- runtimeProvisionCommand?: string | null | undefined;
267
- teardownCommand?: string | null | undefined;
268
- } | null | undefined;
269
- workspaceRuntime?: Record<string, unknown> | null | undefined;
270
- networkEgress?: {
271
- allowFqdns?: string[] | undefined;
272
- allowCidrs?: string[] | undefined;
273
- } | null | undefined;
30
+ executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
31
+ shared_workspace: "shared_workspace";
32
+ isolated_workspace: "isolated_workspace";
33
+ operator_branch: "operator_branch";
34
+ inherit: "inherit";
35
+ reuse_existing: "reuse_existing";
36
+ agent_default: "agent_default";
274
37
  }>>>;
275
- }, z.ZodTypeAny, "passthrough">>;
276
- export declare const pipelineStageAutomationSchema: z.ZodObject<{
277
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
278
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
279
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
280
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
281
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
282
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
283
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
284
38
  executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
285
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
286
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
39
+ mode: z.ZodOptional<z.ZodEnum<{
40
+ shared_workspace: "shared_workspace";
41
+ isolated_workspace: "isolated_workspace";
42
+ operator_branch: "operator_branch";
43
+ inherit: "inherit";
44
+ reuse_existing: "reuse_existing";
45
+ agent_default: "agent_default";
46
+ }>>;
47
+ sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<{
48
+ auto: "auto";
49
+ allow: "allow";
50
+ serialize: "serialize";
51
+ }>>;
287
52
  environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
288
53
  workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
289
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
54
+ type: z.ZodOptional<z.ZodEnum<{
55
+ project_primary: "project_primary";
56
+ git_worktree: "git_worktree";
57
+ adapter_managed: "adapter_managed";
58
+ cloud_sandbox: "cloud_sandbox";
59
+ }>>;
290
60
  baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
291
61
  branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
+ existingBranch: z.ZodNullable<z.ZodOptional<z.ZodString>>;
292
63
  worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
293
64
  provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
294
65
  runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
295
66
  teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
296
- }, "strict", z.ZodTypeAny, {
297
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
298
- baseRef?: string | null | undefined;
299
- branchTemplate?: string | null | undefined;
300
- worktreeParentDir?: string | null | undefined;
301
- provisionCommand?: string | null | undefined;
302
- runtimeProvisionCommand?: string | null | undefined;
303
- teardownCommand?: string | null | undefined;
304
- }, {
305
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
306
- baseRef?: string | null | undefined;
307
- branchTemplate?: string | null | undefined;
308
- worktreeParentDir?: string | null | undefined;
309
- provisionCommand?: string | null | undefined;
310
- runtimeProvisionCommand?: string | null | undefined;
311
- teardownCommand?: string | null | undefined;
312
- }>>>;
67
+ }, z.core.$strict>>>;
313
68
  workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
314
69
  networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
315
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
316
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
317
- }, "strict", z.ZodTypeAny, {
318
- allowFqdns?: string[] | undefined;
319
- allowCidrs?: string[] | undefined;
320
- }, {
321
- allowFqdns?: string[] | undefined;
322
- allowCidrs?: string[] | undefined;
323
- }>>>;
324
- }, "strict", z.ZodTypeAny, {
325
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
326
- environmentId?: string | null | undefined;
327
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
328
- workspaceStrategy?: {
329
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
330
- baseRef?: string | null | undefined;
331
- branchTemplate?: string | null | undefined;
332
- worktreeParentDir?: string | null | undefined;
333
- provisionCommand?: string | null | undefined;
334
- runtimeProvisionCommand?: string | null | undefined;
335
- teardownCommand?: string | null | undefined;
336
- } | null | undefined;
337
- workspaceRuntime?: Record<string, unknown> | null | undefined;
338
- networkEgress?: {
339
- allowFqdns?: string[] | undefined;
340
- allowCidrs?: string[] | undefined;
341
- } | null | undefined;
342
- }, {
343
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
344
- environmentId?: string | null | undefined;
345
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
346
- workspaceStrategy?: {
347
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
348
- baseRef?: string | null | undefined;
349
- branchTemplate?: string | null | undefined;
350
- worktreeParentDir?: string | null | undefined;
351
- provisionCommand?: string | null | undefined;
352
- runtimeProvisionCommand?: string | null | undefined;
353
- teardownCommand?: string | null | undefined;
354
- } | null | undefined;
355
- workspaceRuntime?: Record<string, unknown> | null | undefined;
356
- networkEgress?: {
357
- allowFqdns?: string[] | undefined;
358
- allowCidrs?: string[] | undefined;
359
- } | null | undefined;
360
- }>>>;
361
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
70
+ allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
+ allowCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
+ }, z.core.$strict>>>;
73
+ }, z.core.$strict>>>;
74
+ }, z.core.$loose>;
75
+ export declare const pipelineStageAutomationSchema: z.ZodObject<{
362
76
  routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
363
77
  assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
364
78
  instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
365
79
  projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
366
80
  projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
367
81
  executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
368
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
369
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
370
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
371
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
372
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
373
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
374
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
375
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
376
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
377
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
378
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
379
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
380
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
381
- }, "strict", z.ZodTypeAny, {
382
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
383
- baseRef?: string | null | undefined;
384
- branchTemplate?: string | null | undefined;
385
- worktreeParentDir?: string | null | undefined;
386
- provisionCommand?: string | null | undefined;
387
- runtimeProvisionCommand?: string | null | undefined;
388
- teardownCommand?: string | null | undefined;
389
- }, {
390
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
391
- baseRef?: string | null | undefined;
392
- branchTemplate?: string | null | undefined;
393
- worktreeParentDir?: string | null | undefined;
394
- provisionCommand?: string | null | undefined;
395
- runtimeProvisionCommand?: string | null | undefined;
396
- teardownCommand?: string | null | undefined;
397
- }>>>;
398
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
399
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
400
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
401
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
402
- }, "strict", z.ZodTypeAny, {
403
- allowFqdns?: string[] | undefined;
404
- allowCidrs?: string[] | undefined;
405
- }, {
406
- allowFqdns?: string[] | undefined;
407
- allowCidrs?: string[] | undefined;
408
- }>>>;
409
- }, "strict", z.ZodTypeAny, {
410
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
411
- environmentId?: string | null | undefined;
412
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
413
- workspaceStrategy?: {
414
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
415
- baseRef?: string | null | undefined;
416
- branchTemplate?: string | null | undefined;
417
- worktreeParentDir?: string | null | undefined;
418
- provisionCommand?: string | null | undefined;
419
- runtimeProvisionCommand?: string | null | undefined;
420
- teardownCommand?: string | null | undefined;
421
- } | null | undefined;
422
- workspaceRuntime?: Record<string, unknown> | null | undefined;
423
- networkEgress?: {
424
- allowFqdns?: string[] | undefined;
425
- allowCidrs?: string[] | undefined;
426
- } | null | undefined;
427
- }, {
428
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
429
- environmentId?: string | null | undefined;
430
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
431
- workspaceStrategy?: {
432
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
433
- baseRef?: string | null | undefined;
434
- branchTemplate?: string | null | undefined;
435
- worktreeParentDir?: string | null | undefined;
436
- provisionCommand?: string | null | undefined;
437
- runtimeProvisionCommand?: string | null | undefined;
438
- teardownCommand?: string | null | undefined;
439
- } | null | undefined;
440
- workspaceRuntime?: Record<string, unknown> | null | undefined;
441
- networkEgress?: {
442
- allowFqdns?: string[] | undefined;
443
- allowCidrs?: string[] | undefined;
444
- } | null | undefined;
82
+ executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
83
+ shared_workspace: "shared_workspace";
84
+ isolated_workspace: "isolated_workspace";
85
+ operator_branch: "operator_branch";
86
+ inherit: "inherit";
87
+ reuse_existing: "reuse_existing";
88
+ agent_default: "agent_default";
445
89
  }>>>;
446
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
447
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
448
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
449
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
450
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
451
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
452
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
453
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
454
90
  executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
455
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
456
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
91
+ mode: z.ZodOptional<z.ZodEnum<{
92
+ shared_workspace: "shared_workspace";
93
+ isolated_workspace: "isolated_workspace";
94
+ operator_branch: "operator_branch";
95
+ inherit: "inherit";
96
+ reuse_existing: "reuse_existing";
97
+ agent_default: "agent_default";
98
+ }>>;
99
+ sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<{
100
+ auto: "auto";
101
+ allow: "allow";
102
+ serialize: "serialize";
103
+ }>>;
457
104
  environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
458
105
  workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
459
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
106
+ type: z.ZodOptional<z.ZodEnum<{
107
+ project_primary: "project_primary";
108
+ git_worktree: "git_worktree";
109
+ adapter_managed: "adapter_managed";
110
+ cloud_sandbox: "cloud_sandbox";
111
+ }>>;
460
112
  baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
461
113
  branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
114
+ existingBranch: z.ZodNullable<z.ZodOptional<z.ZodString>>;
462
115
  worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
463
116
  provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
464
117
  runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
465
118
  teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
466
- }, "strict", z.ZodTypeAny, {
467
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
468
- baseRef?: string | null | undefined;
469
- branchTemplate?: string | null | undefined;
470
- worktreeParentDir?: string | null | undefined;
471
- provisionCommand?: string | null | undefined;
472
- runtimeProvisionCommand?: string | null | undefined;
473
- teardownCommand?: string | null | undefined;
474
- }, {
475
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
476
- baseRef?: string | null | undefined;
477
- branchTemplate?: string | null | undefined;
478
- worktreeParentDir?: string | null | undefined;
479
- provisionCommand?: string | null | undefined;
480
- runtimeProvisionCommand?: string | null | undefined;
481
- teardownCommand?: string | null | undefined;
482
- }>>>;
119
+ }, z.core.$strict>>>;
483
120
  workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
484
121
  networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
485
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
486
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
487
- }, "strict", z.ZodTypeAny, {
488
- allowFqdns?: string[] | undefined;
489
- allowCidrs?: string[] | undefined;
490
- }, {
491
- allowFqdns?: string[] | undefined;
492
- allowCidrs?: string[] | undefined;
493
- }>>>;
494
- }, "strict", z.ZodTypeAny, {
495
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
496
- environmentId?: string | null | undefined;
497
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
498
- workspaceStrategy?: {
499
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
500
- baseRef?: string | null | undefined;
501
- branchTemplate?: string | null | undefined;
502
- worktreeParentDir?: string | null | undefined;
503
- provisionCommand?: string | null | undefined;
504
- runtimeProvisionCommand?: string | null | undefined;
505
- teardownCommand?: string | null | undefined;
506
- } | null | undefined;
507
- workspaceRuntime?: Record<string, unknown> | null | undefined;
508
- networkEgress?: {
509
- allowFqdns?: string[] | undefined;
510
- allowCidrs?: string[] | undefined;
511
- } | null | undefined;
512
- }, {
513
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
514
- environmentId?: string | null | undefined;
515
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
516
- workspaceStrategy?: {
517
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
518
- baseRef?: string | null | undefined;
519
- branchTemplate?: string | null | undefined;
520
- worktreeParentDir?: string | null | undefined;
521
- provisionCommand?: string | null | undefined;
522
- runtimeProvisionCommand?: string | null | undefined;
523
- teardownCommand?: string | null | undefined;
524
- } | null | undefined;
525
- workspaceRuntime?: Record<string, unknown> | null | undefined;
526
- networkEgress?: {
527
- allowFqdns?: string[] | undefined;
528
- allowCidrs?: string[] | undefined;
529
- } | null | undefined;
530
- }>>>;
531
- }, z.ZodTypeAny, "passthrough">>;
122
+ allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
+ allowCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
124
+ }, z.core.$strict>>>;
125
+ }, z.core.$strict>>>;
126
+ }, z.core.$loose>;
532
127
  export declare const pipelineStageCarryOverPolicySchema: z.ZodObject<{
533
128
  version: z.ZodDefault<z.ZodLiteral<1>>;
534
- mode: z.ZodDefault<z.ZodEnum<["all_except", "only"]>>;
535
- includeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
536
- excludeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
537
- }, "strip", z.ZodTypeAny, {
538
- mode: "only" | "all_except";
539
- version: 1;
540
- includeFields: string[];
541
- excludeFields: string[];
542
- }, {
543
- mode?: "only" | "all_except" | undefined;
544
- version?: 1 | undefined;
545
- includeFields?: string[] | undefined;
546
- excludeFields?: string[] | undefined;
547
- }>;
548
- export declare const pipelineStageBreakdownSchema: z.ZodEffects<z.ZodObject<{
129
+ mode: z.ZodDefault<z.ZodEnum<{
130
+ only: "only";
131
+ all_except: "all_except";
132
+ }>>;
133
+ includeFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
134
+ excludeFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
135
+ }, z.core.$strip>;
136
+ export declare const pipelineStageBreakdownSchema: z.ZodObject<{
549
137
  targetPipelineId: z.ZodString;
550
138
  targetStageKey: z.ZodString;
551
139
  pieceNoun: z.ZodDefault<z.ZodString>;
552
140
  carryOverPolicy: z.ZodOptional<z.ZodObject<{
553
141
  version: z.ZodDefault<z.ZodLiteral<1>>;
554
- mode: z.ZodDefault<z.ZodEnum<["all_except", "only"]>>;
555
- includeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
556
- excludeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
557
- }, "strip", z.ZodTypeAny, {
558
- mode: "only" | "all_except";
559
- version: 1;
560
- includeFields: string[];
561
- excludeFields: string[];
562
- }, {
563
- mode?: "only" | "all_except" | undefined;
564
- version?: 1 | undefined;
565
- includeFields?: string[] | undefined;
566
- excludeFields?: string[] | undefined;
567
- }>>;
568
- inheritFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
142
+ mode: z.ZodDefault<z.ZodEnum<{
143
+ only: "only";
144
+ all_except: "all_except";
145
+ }>>;
146
+ includeFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
147
+ excludeFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
148
+ }, z.core.$strip>>;
149
+ inheritFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
569
150
  advanceTo: z.ZodOptional<z.ZodString>;
570
151
  waitForPieces: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
571
152
  whenFinishedMoveTo: z.ZodOptional<z.ZodString>;
572
- }, "strip", z.ZodTypeAny, {
573
- targetPipelineId: string;
574
- targetStageKey: string;
575
- pieceNoun: string;
576
- inheritFields: string[];
577
- waitForPieces: boolean;
578
- whenFinishedMoveTo?: string | undefined;
579
- carryOverPolicy?: {
580
- mode: "only" | "all_except";
581
- version: 1;
582
- includeFields: string[];
583
- excludeFields: string[];
584
- } | undefined;
585
- advanceTo?: string | undefined;
586
- }, {
587
- targetPipelineId: string;
588
- targetStageKey: string;
589
- pieceNoun?: string | undefined;
590
- inheritFields?: string[] | undefined;
591
- waitForPieces?: boolean | undefined;
592
- whenFinishedMoveTo?: string | undefined;
593
- carryOverPolicy?: {
594
- mode?: "only" | "all_except" | undefined;
595
- version?: 1 | undefined;
596
- includeFields?: string[] | undefined;
597
- excludeFields?: string[] | undefined;
598
- } | undefined;
599
- advanceTo?: string | undefined;
600
- }>, {
601
- targetPipelineId: string;
602
- targetStageKey: string;
603
- pieceNoun: string;
604
- inheritFields: string[];
605
- waitForPieces: boolean;
606
- whenFinishedMoveTo?: string | undefined;
607
- carryOverPolicy?: {
608
- mode: "only" | "all_except";
609
- version: 1;
610
- includeFields: string[];
611
- excludeFields: string[];
612
- } | undefined;
613
- advanceTo?: string | undefined;
614
- }, {
615
- targetPipelineId: string;
616
- targetStageKey: string;
617
- pieceNoun?: string | undefined;
618
- inheritFields?: string[] | undefined;
619
- waitForPieces?: boolean | undefined;
620
- whenFinishedMoveTo?: string | undefined;
621
- carryOverPolicy?: {
622
- mode?: "only" | "all_except" | undefined;
623
- version?: 1 | undefined;
624
- includeFields?: string[] | undefined;
625
- excludeFields?: string[] | undefined;
626
- } | undefined;
627
- advanceTo?: string | undefined;
628
- }>;
629
- export declare const pipelineStageVariableSchema: z.ZodEffects<z.ZodObject<{
153
+ }, z.core.$strip>;
154
+ export declare const pipelineStageVariableSchema: z.ZodObject<{
630
155
  key: z.ZodString;
631
156
  label: z.ZodString;
632
- type: z.ZodDefault<z.ZodEnum<["select", "text", "multiline"]>>;
633
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
157
+ type: z.ZodDefault<z.ZodEnum<{
158
+ text: "text";
159
+ select: "select";
160
+ multiline: "multiline";
161
+ }>>;
162
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
634
163
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
635
164
  showInAddForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
636
- }, "strip", z.ZodTypeAny, {
637
- key: string;
638
- required: boolean;
639
- options: string[];
640
- type: "text" | "select" | "multiline";
641
- label: string;
642
- showInAddForm: boolean;
643
- }, {
644
- key: string;
645
- label: string;
646
- required?: boolean | undefined;
647
- options?: string[] | undefined;
648
- type?: "text" | "select" | "multiline" | undefined;
649
- showInAddForm?: boolean | undefined;
650
- }>, {
651
- key: string;
652
- required: boolean;
653
- options: string[];
654
- type: "text" | "select" | "multiline";
655
- label: string;
656
- showInAddForm: boolean;
657
- }, {
658
- key: string;
659
- label: string;
660
- required?: boolean | undefined;
661
- options?: string[] | undefined;
662
- type?: "text" | "select" | "multiline" | undefined;
663
- showInAddForm?: boolean | undefined;
664
- }>;
665
- export declare const pipelineStageConfigSchema: z.ZodEffects<z.ZodObject<{
666
- variables: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
165
+ }, z.core.$strip>;
166
+ export declare const pipelineStageConfigSchema: z.ZodObject<{
167
+ variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
667
168
  key: z.ZodString;
668
169
  label: z.ZodString;
669
- type: z.ZodDefault<z.ZodEnum<["select", "text", "multiline"]>>;
670
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
170
+ type: z.ZodDefault<z.ZodEnum<{
171
+ text: "text";
172
+ select: "select";
173
+ multiline: "multiline";
174
+ }>>;
175
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
671
176
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
672
177
  showInAddForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
673
- }, "strip", z.ZodTypeAny, {
674
- key: string;
675
- required: boolean;
676
- options: string[];
677
- type: "text" | "select" | "multiline";
678
- label: string;
679
- showInAddForm: boolean;
680
- }, {
681
- key: string;
682
- label: string;
683
- required?: boolean | undefined;
684
- options?: string[] | undefined;
685
- type?: "text" | "select" | "multiline" | undefined;
686
- showInAddForm?: boolean | undefined;
687
- }>, {
688
- key: string;
689
- required: boolean;
690
- options: string[];
691
- type: "text" | "select" | "multiline";
692
- label: string;
693
- showInAddForm: boolean;
694
- }, {
695
- key: string;
696
- label: string;
697
- required?: boolean | undefined;
698
- options?: string[] | undefined;
699
- type?: "text" | "select" | "multiline" | undefined;
700
- showInAddForm?: boolean | undefined;
701
- }>, "many">>;
178
+ }, z.core.$strip>>>;
702
179
  disabled: z.ZodOptional<z.ZodBoolean>;
703
180
  disabledReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
704
181
  requireApproval: z.ZodOptional<z.ZodBoolean>;
705
- approver: z.ZodOptional<z.ZodEffects<z.ZodObject<{
706
- kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["any_human", "user", "agent"]>>>;
182
+ approver: z.ZodOptional<z.ZodObject<{
183
+ kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
184
+ user: "user";
185
+ agent: "agent";
186
+ any_human: "any_human";
187
+ }>>>;
707
188
  id: z.ZodOptional<z.ZodString>;
708
- }, "strip", z.ZodTypeAny, {
709
- kind: "user" | "agent" | "any_human";
710
- id?: string | undefined;
711
- }, {
712
- id?: string | undefined;
713
- kind?: "user" | "agent" | "any_human" | undefined;
714
- }>, {
715
- kind: "user" | "agent" | "any_human";
716
- id?: string | undefined;
717
- }, {
718
- id?: string | undefined;
719
- kind?: "user" | "agent" | "any_human" | undefined;
189
+ }, z.core.$strip>>;
190
+ reviewerKind: z.ZodOptional<z.ZodEnum<{
191
+ human: "human";
192
+ any: "any";
720
193
  }>>;
721
- /** Legacy input only; the server migrates it to requireApproval/approver. */
722
- reviewerKind: z.ZodOptional<z.ZodEnum<["human", "any"]>>;
723
194
  whatHappensHere: z.ZodOptional<z.ZodString>;
724
195
  onEnter: z.ZodOptional<z.ZodObject<{
725
196
  type: z.ZodLiteral<"run_routine">;
@@ -728,255 +199,51 @@ export declare const pipelineStageConfigSchema: z.ZodEffects<z.ZodObject<{
728
199
  projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
729
200
  projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
730
201
  executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
731
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
732
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
733
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
734
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
735
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
736
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
737
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
738
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
739
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
740
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
741
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
742
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
743
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
744
- }, "strict", z.ZodTypeAny, {
745
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
746
- baseRef?: string | null | undefined;
747
- branchTemplate?: string | null | undefined;
748
- worktreeParentDir?: string | null | undefined;
749
- provisionCommand?: string | null | undefined;
750
- runtimeProvisionCommand?: string | null | undefined;
751
- teardownCommand?: string | null | undefined;
752
- }, {
753
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
754
- baseRef?: string | null | undefined;
755
- branchTemplate?: string | null | undefined;
756
- worktreeParentDir?: string | null | undefined;
757
- provisionCommand?: string | null | undefined;
758
- runtimeProvisionCommand?: string | null | undefined;
759
- teardownCommand?: string | null | undefined;
760
- }>>>;
761
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
762
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
763
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
764
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
765
- }, "strict", z.ZodTypeAny, {
766
- allowFqdns?: string[] | undefined;
767
- allowCidrs?: string[] | undefined;
768
- }, {
769
- allowFqdns?: string[] | undefined;
770
- allowCidrs?: string[] | undefined;
771
- }>>>;
772
- }, "strict", z.ZodTypeAny, {
773
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
774
- environmentId?: string | null | undefined;
775
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
776
- workspaceStrategy?: {
777
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
778
- baseRef?: string | null | undefined;
779
- branchTemplate?: string | null | undefined;
780
- worktreeParentDir?: string | null | undefined;
781
- provisionCommand?: string | null | undefined;
782
- runtimeProvisionCommand?: string | null | undefined;
783
- teardownCommand?: string | null | undefined;
784
- } | null | undefined;
785
- workspaceRuntime?: Record<string, unknown> | null | undefined;
786
- networkEgress?: {
787
- allowFqdns?: string[] | undefined;
788
- allowCidrs?: string[] | undefined;
789
- } | null | undefined;
790
- }, {
791
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
792
- environmentId?: string | null | undefined;
793
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
794
- workspaceStrategy?: {
795
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
796
- baseRef?: string | null | undefined;
797
- branchTemplate?: string | null | undefined;
798
- worktreeParentDir?: string | null | undefined;
799
- provisionCommand?: string | null | undefined;
800
- runtimeProvisionCommand?: string | null | undefined;
801
- teardownCommand?: string | null | undefined;
802
- } | null | undefined;
803
- workspaceRuntime?: Record<string, unknown> | null | undefined;
804
- networkEgress?: {
805
- allowFqdns?: string[] | undefined;
806
- allowCidrs?: string[] | undefined;
807
- } | null | undefined;
808
- }>>>;
809
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
810
- type: z.ZodLiteral<"run_routine">;
811
- routineId: z.ZodString;
812
- id: z.ZodOptional<z.ZodString>;
813
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
814
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
815
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
816
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
817
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
818
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
819
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
820
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
821
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
822
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
823
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
824
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
825
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
826
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
827
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
828
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
829
- }, "strict", z.ZodTypeAny, {
830
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
831
- baseRef?: string | null | undefined;
832
- branchTemplate?: string | null | undefined;
833
- worktreeParentDir?: string | null | undefined;
834
- provisionCommand?: string | null | undefined;
835
- runtimeProvisionCommand?: string | null | undefined;
836
- teardownCommand?: string | null | undefined;
837
- }, {
838
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
839
- baseRef?: string | null | undefined;
840
- branchTemplate?: string | null | undefined;
841
- worktreeParentDir?: string | null | undefined;
842
- provisionCommand?: string | null | undefined;
843
- runtimeProvisionCommand?: string | null | undefined;
844
- teardownCommand?: string | null | undefined;
845
- }>>>;
846
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
847
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
848
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
849
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
850
- }, "strict", z.ZodTypeAny, {
851
- allowFqdns?: string[] | undefined;
852
- allowCidrs?: string[] | undefined;
853
- }, {
854
- allowFqdns?: string[] | undefined;
855
- allowCidrs?: string[] | undefined;
856
- }>>>;
857
- }, "strict", z.ZodTypeAny, {
858
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
859
- environmentId?: string | null | undefined;
860
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
861
- workspaceStrategy?: {
862
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
863
- baseRef?: string | null | undefined;
864
- branchTemplate?: string | null | undefined;
865
- worktreeParentDir?: string | null | undefined;
866
- provisionCommand?: string | null | undefined;
867
- runtimeProvisionCommand?: string | null | undefined;
868
- teardownCommand?: string | null | undefined;
869
- } | null | undefined;
870
- workspaceRuntime?: Record<string, unknown> | null | undefined;
871
- networkEgress?: {
872
- allowFqdns?: string[] | undefined;
873
- allowCidrs?: string[] | undefined;
874
- } | null | undefined;
875
- }, {
876
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
877
- environmentId?: string | null | undefined;
878
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
879
- workspaceStrategy?: {
880
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
881
- baseRef?: string | null | undefined;
882
- branchTemplate?: string | null | undefined;
883
- worktreeParentDir?: string | null | undefined;
884
- provisionCommand?: string | null | undefined;
885
- runtimeProvisionCommand?: string | null | undefined;
886
- teardownCommand?: string | null | undefined;
887
- } | null | undefined;
888
- workspaceRuntime?: Record<string, unknown> | null | undefined;
889
- networkEgress?: {
890
- allowFqdns?: string[] | undefined;
891
- allowCidrs?: string[] | undefined;
892
- } | null | undefined;
202
+ executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
203
+ shared_workspace: "shared_workspace";
204
+ isolated_workspace: "isolated_workspace";
205
+ operator_branch: "operator_branch";
206
+ inherit: "inherit";
207
+ reuse_existing: "reuse_existing";
208
+ agent_default: "agent_default";
893
209
  }>>>;
894
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
895
- type: z.ZodLiteral<"run_routine">;
896
- routineId: z.ZodString;
897
- id: z.ZodOptional<z.ZodString>;
898
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
899
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
900
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
901
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
902
210
  executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
903
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
904
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
211
+ mode: z.ZodOptional<z.ZodEnum<{
212
+ shared_workspace: "shared_workspace";
213
+ isolated_workspace: "isolated_workspace";
214
+ operator_branch: "operator_branch";
215
+ inherit: "inherit";
216
+ reuse_existing: "reuse_existing";
217
+ agent_default: "agent_default";
218
+ }>>;
219
+ sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<{
220
+ auto: "auto";
221
+ allow: "allow";
222
+ serialize: "serialize";
223
+ }>>;
905
224
  environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
906
225
  workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
907
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
226
+ type: z.ZodOptional<z.ZodEnum<{
227
+ project_primary: "project_primary";
228
+ git_worktree: "git_worktree";
229
+ adapter_managed: "adapter_managed";
230
+ cloud_sandbox: "cloud_sandbox";
231
+ }>>;
908
232
  baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
909
233
  branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
234
+ existingBranch: z.ZodNullable<z.ZodOptional<z.ZodString>>;
910
235
  worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
911
236
  provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
912
237
  runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
913
238
  teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
914
- }, "strict", z.ZodTypeAny, {
915
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
916
- baseRef?: string | null | undefined;
917
- branchTemplate?: string | null | undefined;
918
- worktreeParentDir?: string | null | undefined;
919
- provisionCommand?: string | null | undefined;
920
- runtimeProvisionCommand?: string | null | undefined;
921
- teardownCommand?: string | null | undefined;
922
- }, {
923
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
924
- baseRef?: string | null | undefined;
925
- branchTemplate?: string | null | undefined;
926
- worktreeParentDir?: string | null | undefined;
927
- provisionCommand?: string | null | undefined;
928
- runtimeProvisionCommand?: string | null | undefined;
929
- teardownCommand?: string | null | undefined;
930
- }>>>;
239
+ }, z.core.$strict>>>;
931
240
  workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
932
241
  networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
933
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
934
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
935
- }, "strict", z.ZodTypeAny, {
936
- allowFqdns?: string[] | undefined;
937
- allowCidrs?: string[] | undefined;
938
- }, {
939
- allowFqdns?: string[] | undefined;
940
- allowCidrs?: string[] | undefined;
941
- }>>>;
942
- }, "strict", z.ZodTypeAny, {
943
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
944
- environmentId?: string | null | undefined;
945
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
946
- workspaceStrategy?: {
947
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
948
- baseRef?: string | null | undefined;
949
- branchTemplate?: string | null | undefined;
950
- worktreeParentDir?: string | null | undefined;
951
- provisionCommand?: string | null | undefined;
952
- runtimeProvisionCommand?: string | null | undefined;
953
- teardownCommand?: string | null | undefined;
954
- } | null | undefined;
955
- workspaceRuntime?: Record<string, unknown> | null | undefined;
956
- networkEgress?: {
957
- allowFqdns?: string[] | undefined;
958
- allowCidrs?: string[] | undefined;
959
- } | null | undefined;
960
- }, {
961
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
962
- environmentId?: string | null | undefined;
963
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
964
- workspaceStrategy?: {
965
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
966
- baseRef?: string | null | undefined;
967
- branchTemplate?: string | null | undefined;
968
- worktreeParentDir?: string | null | undefined;
969
- provisionCommand?: string | null | undefined;
970
- runtimeProvisionCommand?: string | null | undefined;
971
- teardownCommand?: string | null | undefined;
972
- } | null | undefined;
973
- workspaceRuntime?: Record<string, unknown> | null | undefined;
974
- networkEgress?: {
975
- allowFqdns?: string[] | undefined;
976
- allowCidrs?: string[] | undefined;
977
- } | null | undefined;
978
- }>>>;
979
- }, z.ZodTypeAny, "passthrough">>>;
242
+ allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString>>;
243
+ allowCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
244
+ }, z.core.$strict>>>;
245
+ }, z.core.$strict>>>;
246
+ }, z.core.$loose>>;
980
247
  automation: z.ZodOptional<z.ZodObject<{
981
248
  routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
982
249
  assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -984,336 +251,69 @@ export declare const pipelineStageConfigSchema: z.ZodEffects<z.ZodObject<{
984
251
  projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
985
252
  projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
986
253
  executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
987
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
988
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
989
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
990
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
991
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
992
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
993
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
994
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
995
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
996
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
997
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
998
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
999
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1000
- }, "strict", z.ZodTypeAny, {
1001
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1002
- baseRef?: string | null | undefined;
1003
- branchTemplate?: string | null | undefined;
1004
- worktreeParentDir?: string | null | undefined;
1005
- provisionCommand?: string | null | undefined;
1006
- runtimeProvisionCommand?: string | null | undefined;
1007
- teardownCommand?: string | null | undefined;
1008
- }, {
1009
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1010
- baseRef?: string | null | undefined;
1011
- branchTemplate?: string | null | undefined;
1012
- worktreeParentDir?: string | null | undefined;
1013
- provisionCommand?: string | null | undefined;
1014
- runtimeProvisionCommand?: string | null | undefined;
1015
- teardownCommand?: string | null | undefined;
1016
- }>>>;
1017
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1018
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1019
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1020
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1021
- }, "strict", z.ZodTypeAny, {
1022
- allowFqdns?: string[] | undefined;
1023
- allowCidrs?: string[] | undefined;
1024
- }, {
1025
- allowFqdns?: string[] | undefined;
1026
- allowCidrs?: string[] | undefined;
1027
- }>>>;
1028
- }, "strict", z.ZodTypeAny, {
1029
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1030
- environmentId?: string | null | undefined;
1031
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1032
- workspaceStrategy?: {
1033
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1034
- baseRef?: string | null | undefined;
1035
- branchTemplate?: string | null | undefined;
1036
- worktreeParentDir?: string | null | undefined;
1037
- provisionCommand?: string | null | undefined;
1038
- runtimeProvisionCommand?: string | null | undefined;
1039
- teardownCommand?: string | null | undefined;
1040
- } | null | undefined;
1041
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1042
- networkEgress?: {
1043
- allowFqdns?: string[] | undefined;
1044
- allowCidrs?: string[] | undefined;
1045
- } | null | undefined;
1046
- }, {
1047
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1048
- environmentId?: string | null | undefined;
1049
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1050
- workspaceStrategy?: {
1051
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1052
- baseRef?: string | null | undefined;
1053
- branchTemplate?: string | null | undefined;
1054
- worktreeParentDir?: string | null | undefined;
1055
- provisionCommand?: string | null | undefined;
1056
- runtimeProvisionCommand?: string | null | undefined;
1057
- teardownCommand?: string | null | undefined;
1058
- } | null | undefined;
1059
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1060
- networkEgress?: {
1061
- allowFqdns?: string[] | undefined;
1062
- allowCidrs?: string[] | undefined;
1063
- } | null | undefined;
1064
- }>>>;
1065
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1066
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1067
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1068
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1069
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1070
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1071
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1072
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
1073
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1074
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
1075
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
1076
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1077
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1078
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
1079
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1080
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1081
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1082
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1083
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1084
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1085
- }, "strict", z.ZodTypeAny, {
1086
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1087
- baseRef?: string | null | undefined;
1088
- branchTemplate?: string | null | undefined;
1089
- worktreeParentDir?: string | null | undefined;
1090
- provisionCommand?: string | null | undefined;
1091
- runtimeProvisionCommand?: string | null | undefined;
1092
- teardownCommand?: string | null | undefined;
1093
- }, {
1094
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1095
- baseRef?: string | null | undefined;
1096
- branchTemplate?: string | null | undefined;
1097
- worktreeParentDir?: string | null | undefined;
1098
- provisionCommand?: string | null | undefined;
1099
- runtimeProvisionCommand?: string | null | undefined;
1100
- teardownCommand?: string | null | undefined;
1101
- }>>>;
1102
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1103
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1104
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1105
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1106
- }, "strict", z.ZodTypeAny, {
1107
- allowFqdns?: string[] | undefined;
1108
- allowCidrs?: string[] | undefined;
1109
- }, {
1110
- allowFqdns?: string[] | undefined;
1111
- allowCidrs?: string[] | undefined;
1112
- }>>>;
1113
- }, "strict", z.ZodTypeAny, {
1114
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1115
- environmentId?: string | null | undefined;
1116
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1117
- workspaceStrategy?: {
1118
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1119
- baseRef?: string | null | undefined;
1120
- branchTemplate?: string | null | undefined;
1121
- worktreeParentDir?: string | null | undefined;
1122
- provisionCommand?: string | null | undefined;
1123
- runtimeProvisionCommand?: string | null | undefined;
1124
- teardownCommand?: string | null | undefined;
1125
- } | null | undefined;
1126
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1127
- networkEgress?: {
1128
- allowFqdns?: string[] | undefined;
1129
- allowCidrs?: string[] | undefined;
1130
- } | null | undefined;
1131
- }, {
1132
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1133
- environmentId?: string | null | undefined;
1134
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1135
- workspaceStrategy?: {
1136
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1137
- baseRef?: string | null | undefined;
1138
- branchTemplate?: string | null | undefined;
1139
- worktreeParentDir?: string | null | undefined;
1140
- provisionCommand?: string | null | undefined;
1141
- runtimeProvisionCommand?: string | null | undefined;
1142
- teardownCommand?: string | null | undefined;
1143
- } | null | undefined;
1144
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1145
- networkEgress?: {
1146
- allowFqdns?: string[] | undefined;
1147
- allowCidrs?: string[] | undefined;
1148
- } | null | undefined;
254
+ executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
255
+ shared_workspace: "shared_workspace";
256
+ isolated_workspace: "isolated_workspace";
257
+ operator_branch: "operator_branch";
258
+ inherit: "inherit";
259
+ reuse_existing: "reuse_existing";
260
+ agent_default: "agent_default";
1149
261
  }>>>;
1150
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1151
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1152
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1153
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1154
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1155
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1156
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1157
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
1158
262
  executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1159
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
1160
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
263
+ mode: z.ZodOptional<z.ZodEnum<{
264
+ shared_workspace: "shared_workspace";
265
+ isolated_workspace: "isolated_workspace";
266
+ operator_branch: "operator_branch";
267
+ inherit: "inherit";
268
+ reuse_existing: "reuse_existing";
269
+ agent_default: "agent_default";
270
+ }>>;
271
+ sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<{
272
+ auto: "auto";
273
+ allow: "allow";
274
+ serialize: "serialize";
275
+ }>>;
1161
276
  environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1162
277
  workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1163
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
278
+ type: z.ZodOptional<z.ZodEnum<{
279
+ project_primary: "project_primary";
280
+ git_worktree: "git_worktree";
281
+ adapter_managed: "adapter_managed";
282
+ cloud_sandbox: "cloud_sandbox";
283
+ }>>;
1164
284
  baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1165
285
  branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
286
+ existingBranch: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1166
287
  worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1167
288
  provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1168
289
  runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1169
290
  teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1170
- }, "strict", z.ZodTypeAny, {
1171
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1172
- baseRef?: string | null | undefined;
1173
- branchTemplate?: string | null | undefined;
1174
- worktreeParentDir?: string | null | undefined;
1175
- provisionCommand?: string | null | undefined;
1176
- runtimeProvisionCommand?: string | null | undefined;
1177
- teardownCommand?: string | null | undefined;
1178
- }, {
1179
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1180
- baseRef?: string | null | undefined;
1181
- branchTemplate?: string | null | undefined;
1182
- worktreeParentDir?: string | null | undefined;
1183
- provisionCommand?: string | null | undefined;
1184
- runtimeProvisionCommand?: string | null | undefined;
1185
- teardownCommand?: string | null | undefined;
1186
- }>>>;
291
+ }, z.core.$strict>>>;
1187
292
  workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1188
293
  networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1189
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1190
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1191
- }, "strict", z.ZodTypeAny, {
1192
- allowFqdns?: string[] | undefined;
1193
- allowCidrs?: string[] | undefined;
1194
- }, {
1195
- allowFqdns?: string[] | undefined;
1196
- allowCidrs?: string[] | undefined;
1197
- }>>>;
1198
- }, "strict", z.ZodTypeAny, {
1199
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1200
- environmentId?: string | null | undefined;
1201
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1202
- workspaceStrategy?: {
1203
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1204
- baseRef?: string | null | undefined;
1205
- branchTemplate?: string | null | undefined;
1206
- worktreeParentDir?: string | null | undefined;
1207
- provisionCommand?: string | null | undefined;
1208
- runtimeProvisionCommand?: string | null | undefined;
1209
- teardownCommand?: string | null | undefined;
1210
- } | null | undefined;
1211
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1212
- networkEgress?: {
1213
- allowFqdns?: string[] | undefined;
1214
- allowCidrs?: string[] | undefined;
1215
- } | null | undefined;
1216
- }, {
1217
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1218
- environmentId?: string | null | undefined;
1219
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1220
- workspaceStrategy?: {
1221
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1222
- baseRef?: string | null | undefined;
1223
- branchTemplate?: string | null | undefined;
1224
- worktreeParentDir?: string | null | undefined;
1225
- provisionCommand?: string | null | undefined;
1226
- runtimeProvisionCommand?: string | null | undefined;
1227
- teardownCommand?: string | null | undefined;
1228
- } | null | undefined;
1229
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1230
- networkEgress?: {
1231
- allowFqdns?: string[] | undefined;
1232
- allowCidrs?: string[] | undefined;
1233
- } | null | undefined;
1234
- }>>>;
1235
- }, z.ZodTypeAny, "passthrough">>>;
1236
- breakdown: z.ZodOptional<z.ZodEffects<z.ZodObject<{
294
+ allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString>>;
295
+ allowCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
296
+ }, z.core.$strict>>>;
297
+ }, z.core.$strict>>>;
298
+ }, z.core.$loose>>;
299
+ breakdown: z.ZodOptional<z.ZodObject<{
1237
300
  targetPipelineId: z.ZodString;
1238
301
  targetStageKey: z.ZodString;
1239
302
  pieceNoun: z.ZodDefault<z.ZodString>;
1240
303
  carryOverPolicy: z.ZodOptional<z.ZodObject<{
1241
304
  version: z.ZodDefault<z.ZodLiteral<1>>;
1242
- mode: z.ZodDefault<z.ZodEnum<["all_except", "only"]>>;
1243
- includeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1244
- excludeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1245
- }, "strip", z.ZodTypeAny, {
1246
- mode: "only" | "all_except";
1247
- version: 1;
1248
- includeFields: string[];
1249
- excludeFields: string[];
1250
- }, {
1251
- mode?: "only" | "all_except" | undefined;
1252
- version?: 1 | undefined;
1253
- includeFields?: string[] | undefined;
1254
- excludeFields?: string[] | undefined;
1255
- }>>;
1256
- inheritFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
305
+ mode: z.ZodDefault<z.ZodEnum<{
306
+ only: "only";
307
+ all_except: "all_except";
308
+ }>>;
309
+ includeFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
310
+ excludeFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
311
+ }, z.core.$strip>>;
312
+ inheritFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
1257
313
  advanceTo: z.ZodOptional<z.ZodString>;
1258
314
  waitForPieces: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1259
315
  whenFinishedMoveTo: z.ZodOptional<z.ZodString>;
1260
- }, "strip", z.ZodTypeAny, {
1261
- targetPipelineId: string;
1262
- targetStageKey: string;
1263
- pieceNoun: string;
1264
- inheritFields: string[];
1265
- waitForPieces: boolean;
1266
- whenFinishedMoveTo?: string | undefined;
1267
- carryOverPolicy?: {
1268
- mode: "only" | "all_except";
1269
- version: 1;
1270
- includeFields: string[];
1271
- excludeFields: string[];
1272
- } | undefined;
1273
- advanceTo?: string | undefined;
1274
- }, {
1275
- targetPipelineId: string;
1276
- targetStageKey: string;
1277
- pieceNoun?: string | undefined;
1278
- inheritFields?: string[] | undefined;
1279
- waitForPieces?: boolean | undefined;
1280
- whenFinishedMoveTo?: string | undefined;
1281
- carryOverPolicy?: {
1282
- mode?: "only" | "all_except" | undefined;
1283
- version?: 1 | undefined;
1284
- includeFields?: string[] | undefined;
1285
- excludeFields?: string[] | undefined;
1286
- } | undefined;
1287
- advanceTo?: string | undefined;
1288
- }>, {
1289
- targetPipelineId: string;
1290
- targetStageKey: string;
1291
- pieceNoun: string;
1292
- inheritFields: string[];
1293
- waitForPieces: boolean;
1294
- whenFinishedMoveTo?: string | undefined;
1295
- carryOverPolicy?: {
1296
- mode: "only" | "all_except";
1297
- version: 1;
1298
- includeFields: string[];
1299
- excludeFields: string[];
1300
- } | undefined;
1301
- advanceTo?: string | undefined;
1302
- }, {
1303
- targetPipelineId: string;
1304
- targetStageKey: string;
1305
- pieceNoun?: string | undefined;
1306
- inheritFields?: string[] | undefined;
1307
- waitForPieces?: boolean | undefined;
1308
- whenFinishedMoveTo?: string | undefined;
1309
- carryOverPolicy?: {
1310
- mode?: "only" | "all_except" | undefined;
1311
- version?: 1 | undefined;
1312
- includeFields?: string[] | undefined;
1313
- excludeFields?: string[] | undefined;
1314
- } | undefined;
1315
- advanceTo?: string | undefined;
1316
- }>>;
316
+ }, z.core.$strip>>;
1317
317
  approveToStageKey: z.ZodOptional<z.ZodString>;
1318
318
  rejectToStageKey: z.ZodOptional<z.ZodString>;
1319
319
  requestChangesToStageKey: z.ZodOptional<z.ZodString>;
@@ -1321,2693 +321,29 @@ export declare const pipelineStageConfigSchema: z.ZodEffects<z.ZodObject<{
1321
321
  requireRequestChangesReason: z.ZodOptional<z.ZodBoolean>;
1322
322
  requireChildrenTerminal: z.ZodOptional<z.ZodBoolean>;
1323
323
  requireNoUnresolvedDrift: z.ZodOptional<z.ZodBoolean>;
1324
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1325
- variables: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
1326
- key: z.ZodString;
1327
- label: z.ZodString;
1328
- type: z.ZodDefault<z.ZodEnum<["select", "text", "multiline"]>>;
1329
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1330
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1331
- showInAddForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1332
- }, "strip", z.ZodTypeAny, {
1333
- key: string;
1334
- required: boolean;
1335
- options: string[];
1336
- type: "text" | "select" | "multiline";
1337
- label: string;
1338
- showInAddForm: boolean;
1339
- }, {
1340
- key: string;
1341
- label: string;
1342
- required?: boolean | undefined;
1343
- options?: string[] | undefined;
1344
- type?: "text" | "select" | "multiline" | undefined;
1345
- showInAddForm?: boolean | undefined;
1346
- }>, {
1347
- key: string;
1348
- required: boolean;
1349
- options: string[];
1350
- type: "text" | "select" | "multiline";
1351
- label: string;
1352
- showInAddForm: boolean;
1353
- }, {
1354
- key: string;
1355
- label: string;
1356
- required?: boolean | undefined;
1357
- options?: string[] | undefined;
1358
- type?: "text" | "select" | "multiline" | undefined;
1359
- showInAddForm?: boolean | undefined;
1360
- }>, "many">>;
1361
- disabled: z.ZodOptional<z.ZodBoolean>;
1362
- disabledReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1363
- requireApproval: z.ZodOptional<z.ZodBoolean>;
1364
- approver: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1365
- kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["any_human", "user", "agent"]>>>;
1366
- id: z.ZodOptional<z.ZodString>;
1367
- }, "strip", z.ZodTypeAny, {
1368
- kind: "user" | "agent" | "any_human";
1369
- id?: string | undefined;
1370
- }, {
1371
- id?: string | undefined;
1372
- kind?: "user" | "agent" | "any_human" | undefined;
1373
- }>, {
1374
- kind: "user" | "agent" | "any_human";
1375
- id?: string | undefined;
1376
- }, {
1377
- id?: string | undefined;
1378
- kind?: "user" | "agent" | "any_human" | undefined;
1379
- }>>;
1380
- /** Legacy input only; the server migrates it to requireApproval/approver. */
1381
- reviewerKind: z.ZodOptional<z.ZodEnum<["human", "any"]>>;
1382
- whatHappensHere: z.ZodOptional<z.ZodString>;
1383
- onEnter: z.ZodOptional<z.ZodObject<{
1384
- type: z.ZodLiteral<"run_routine">;
1385
- routineId: z.ZodString;
1386
- id: z.ZodOptional<z.ZodString>;
1387
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1388
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1389
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1390
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
1391
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1392
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
1393
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
1394
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1395
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1396
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
1397
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1398
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1399
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1400
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1401
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1402
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1403
- }, "strict", z.ZodTypeAny, {
1404
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1405
- baseRef?: string | null | undefined;
1406
- branchTemplate?: string | null | undefined;
1407
- worktreeParentDir?: string | null | undefined;
1408
- provisionCommand?: string | null | undefined;
1409
- runtimeProvisionCommand?: string | null | undefined;
1410
- teardownCommand?: string | null | undefined;
1411
- }, {
1412
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1413
- baseRef?: string | null | undefined;
1414
- branchTemplate?: string | null | undefined;
1415
- worktreeParentDir?: string | null | undefined;
1416
- provisionCommand?: string | null | undefined;
1417
- runtimeProvisionCommand?: string | null | undefined;
1418
- teardownCommand?: string | null | undefined;
1419
- }>>>;
1420
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1421
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1422
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1423
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1424
- }, "strict", z.ZodTypeAny, {
1425
- allowFqdns?: string[] | undefined;
1426
- allowCidrs?: string[] | undefined;
1427
- }, {
1428
- allowFqdns?: string[] | undefined;
1429
- allowCidrs?: string[] | undefined;
1430
- }>>>;
1431
- }, "strict", z.ZodTypeAny, {
1432
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1433
- environmentId?: string | null | undefined;
1434
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1435
- workspaceStrategy?: {
1436
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1437
- baseRef?: string | null | undefined;
1438
- branchTemplate?: string | null | undefined;
1439
- worktreeParentDir?: string | null | undefined;
1440
- provisionCommand?: string | null | undefined;
1441
- runtimeProvisionCommand?: string | null | undefined;
1442
- teardownCommand?: string | null | undefined;
1443
- } | null | undefined;
1444
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1445
- networkEgress?: {
1446
- allowFqdns?: string[] | undefined;
1447
- allowCidrs?: string[] | undefined;
1448
- } | null | undefined;
1449
- }, {
1450
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1451
- environmentId?: string | null | undefined;
1452
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1453
- workspaceStrategy?: {
1454
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1455
- baseRef?: string | null | undefined;
1456
- branchTemplate?: string | null | undefined;
1457
- worktreeParentDir?: string | null | undefined;
1458
- provisionCommand?: string | null | undefined;
1459
- runtimeProvisionCommand?: string | null | undefined;
1460
- teardownCommand?: string | null | undefined;
1461
- } | null | undefined;
1462
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1463
- networkEgress?: {
1464
- allowFqdns?: string[] | undefined;
1465
- allowCidrs?: string[] | undefined;
1466
- } | null | undefined;
1467
- }>>>;
1468
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1469
- type: z.ZodLiteral<"run_routine">;
1470
- routineId: z.ZodString;
1471
- id: z.ZodOptional<z.ZodString>;
1472
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1473
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1474
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1475
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
1476
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1477
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
1478
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
1479
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1480
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1481
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
1482
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1483
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1484
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1485
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1486
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1487
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1488
- }, "strict", z.ZodTypeAny, {
1489
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1490
- baseRef?: string | null | undefined;
1491
- branchTemplate?: string | null | undefined;
1492
- worktreeParentDir?: string | null | undefined;
1493
- provisionCommand?: string | null | undefined;
1494
- runtimeProvisionCommand?: string | null | undefined;
1495
- teardownCommand?: string | null | undefined;
1496
- }, {
1497
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1498
- baseRef?: string | null | undefined;
1499
- branchTemplate?: string | null | undefined;
1500
- worktreeParentDir?: string | null | undefined;
1501
- provisionCommand?: string | null | undefined;
1502
- runtimeProvisionCommand?: string | null | undefined;
1503
- teardownCommand?: string | null | undefined;
1504
- }>>>;
1505
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1506
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1507
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1508
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1509
- }, "strict", z.ZodTypeAny, {
1510
- allowFqdns?: string[] | undefined;
1511
- allowCidrs?: string[] | undefined;
1512
- }, {
1513
- allowFqdns?: string[] | undefined;
1514
- allowCidrs?: string[] | undefined;
1515
- }>>>;
1516
- }, "strict", z.ZodTypeAny, {
1517
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1518
- environmentId?: string | null | undefined;
1519
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1520
- workspaceStrategy?: {
1521
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1522
- baseRef?: string | null | undefined;
1523
- branchTemplate?: string | null | undefined;
1524
- worktreeParentDir?: string | null | undefined;
1525
- provisionCommand?: string | null | undefined;
1526
- runtimeProvisionCommand?: string | null | undefined;
1527
- teardownCommand?: string | null | undefined;
1528
- } | null | undefined;
1529
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1530
- networkEgress?: {
1531
- allowFqdns?: string[] | undefined;
1532
- allowCidrs?: string[] | undefined;
1533
- } | null | undefined;
1534
- }, {
1535
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1536
- environmentId?: string | null | undefined;
1537
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1538
- workspaceStrategy?: {
1539
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1540
- baseRef?: string | null | undefined;
1541
- branchTemplate?: string | null | undefined;
1542
- worktreeParentDir?: string | null | undefined;
1543
- provisionCommand?: string | null | undefined;
1544
- runtimeProvisionCommand?: string | null | undefined;
1545
- teardownCommand?: string | null | undefined;
1546
- } | null | undefined;
1547
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1548
- networkEgress?: {
1549
- allowFqdns?: string[] | undefined;
1550
- allowCidrs?: string[] | undefined;
1551
- } | null | undefined;
1552
- }>>>;
1553
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1554
- type: z.ZodLiteral<"run_routine">;
1555
- routineId: z.ZodString;
1556
- id: z.ZodOptional<z.ZodString>;
1557
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1558
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1559
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1560
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
1561
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1562
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
1563
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
1564
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1565
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1566
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
1567
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1568
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1569
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1570
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1571
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1572
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1573
- }, "strict", z.ZodTypeAny, {
1574
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1575
- baseRef?: string | null | undefined;
1576
- branchTemplate?: string | null | undefined;
1577
- worktreeParentDir?: string | null | undefined;
1578
- provisionCommand?: string | null | undefined;
1579
- runtimeProvisionCommand?: string | null | undefined;
1580
- teardownCommand?: string | null | undefined;
1581
- }, {
1582
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1583
- baseRef?: string | null | undefined;
1584
- branchTemplate?: string | null | undefined;
1585
- worktreeParentDir?: string | null | undefined;
1586
- provisionCommand?: string | null | undefined;
1587
- runtimeProvisionCommand?: string | null | undefined;
1588
- teardownCommand?: string | null | undefined;
1589
- }>>>;
1590
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1591
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1592
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1593
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1594
- }, "strict", z.ZodTypeAny, {
1595
- allowFqdns?: string[] | undefined;
1596
- allowCidrs?: string[] | undefined;
1597
- }, {
1598
- allowFqdns?: string[] | undefined;
1599
- allowCidrs?: string[] | undefined;
1600
- }>>>;
1601
- }, "strict", z.ZodTypeAny, {
1602
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1603
- environmentId?: string | null | undefined;
1604
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1605
- workspaceStrategy?: {
1606
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1607
- baseRef?: string | null | undefined;
1608
- branchTemplate?: string | null | undefined;
1609
- worktreeParentDir?: string | null | undefined;
1610
- provisionCommand?: string | null | undefined;
1611
- runtimeProvisionCommand?: string | null | undefined;
1612
- teardownCommand?: string | null | undefined;
1613
- } | null | undefined;
1614
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1615
- networkEgress?: {
1616
- allowFqdns?: string[] | undefined;
1617
- allowCidrs?: string[] | undefined;
1618
- } | null | undefined;
1619
- }, {
1620
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1621
- environmentId?: string | null | undefined;
1622
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1623
- workspaceStrategy?: {
1624
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1625
- baseRef?: string | null | undefined;
1626
- branchTemplate?: string | null | undefined;
1627
- worktreeParentDir?: string | null | undefined;
1628
- provisionCommand?: string | null | undefined;
1629
- runtimeProvisionCommand?: string | null | undefined;
1630
- teardownCommand?: string | null | undefined;
1631
- } | null | undefined;
1632
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1633
- networkEgress?: {
1634
- allowFqdns?: string[] | undefined;
1635
- allowCidrs?: string[] | undefined;
1636
- } | null | undefined;
1637
- }>>>;
1638
- }, z.ZodTypeAny, "passthrough">>>;
1639
- automation: z.ZodOptional<z.ZodObject<{
1640
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1641
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1642
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1643
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1644
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1645
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1646
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
1647
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1648
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
1649
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
1650
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1651
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1652
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
1653
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1654
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1655
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1656
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1657
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1658
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1659
- }, "strict", z.ZodTypeAny, {
1660
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1661
- baseRef?: string | null | undefined;
1662
- branchTemplate?: string | null | undefined;
1663
- worktreeParentDir?: string | null | undefined;
1664
- provisionCommand?: string | null | undefined;
1665
- runtimeProvisionCommand?: string | null | undefined;
1666
- teardownCommand?: string | null | undefined;
1667
- }, {
1668
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1669
- baseRef?: string | null | undefined;
1670
- branchTemplate?: string | null | undefined;
1671
- worktreeParentDir?: string | null | undefined;
1672
- provisionCommand?: string | null | undefined;
1673
- runtimeProvisionCommand?: string | null | undefined;
1674
- teardownCommand?: string | null | undefined;
1675
- }>>>;
1676
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1677
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1678
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1679
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1680
- }, "strict", z.ZodTypeAny, {
1681
- allowFqdns?: string[] | undefined;
1682
- allowCidrs?: string[] | undefined;
1683
- }, {
1684
- allowFqdns?: string[] | undefined;
1685
- allowCidrs?: string[] | undefined;
1686
- }>>>;
1687
- }, "strict", z.ZodTypeAny, {
1688
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1689
- environmentId?: string | null | undefined;
1690
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1691
- workspaceStrategy?: {
1692
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1693
- baseRef?: string | null | undefined;
1694
- branchTemplate?: string | null | undefined;
1695
- worktreeParentDir?: string | null | undefined;
1696
- provisionCommand?: string | null | undefined;
1697
- runtimeProvisionCommand?: string | null | undefined;
1698
- teardownCommand?: string | null | undefined;
1699
- } | null | undefined;
1700
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1701
- networkEgress?: {
1702
- allowFqdns?: string[] | undefined;
1703
- allowCidrs?: string[] | undefined;
1704
- } | null | undefined;
1705
- }, {
1706
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1707
- environmentId?: string | null | undefined;
1708
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1709
- workspaceStrategy?: {
1710
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1711
- baseRef?: string | null | undefined;
1712
- branchTemplate?: string | null | undefined;
1713
- worktreeParentDir?: string | null | undefined;
1714
- provisionCommand?: string | null | undefined;
1715
- runtimeProvisionCommand?: string | null | undefined;
1716
- teardownCommand?: string | null | undefined;
1717
- } | null | undefined;
1718
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1719
- networkEgress?: {
1720
- allowFqdns?: string[] | undefined;
1721
- allowCidrs?: string[] | undefined;
1722
- } | null | undefined;
1723
- }>>>;
1724
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1725
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1726
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1727
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1728
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1729
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1730
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1731
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
1732
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1733
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
1734
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
1735
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1736
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1737
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
1738
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1739
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1740
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1741
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1742
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1743
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1744
- }, "strict", z.ZodTypeAny, {
1745
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1746
- baseRef?: string | null | undefined;
1747
- branchTemplate?: string | null | undefined;
1748
- worktreeParentDir?: string | null | undefined;
1749
- provisionCommand?: string | null | undefined;
1750
- runtimeProvisionCommand?: string | null | undefined;
1751
- teardownCommand?: string | null | undefined;
1752
- }, {
1753
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1754
- baseRef?: string | null | undefined;
1755
- branchTemplate?: string | null | undefined;
1756
- worktreeParentDir?: string | null | undefined;
1757
- provisionCommand?: string | null | undefined;
1758
- runtimeProvisionCommand?: string | null | undefined;
1759
- teardownCommand?: string | null | undefined;
1760
- }>>>;
1761
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1762
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1763
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1764
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1765
- }, "strict", z.ZodTypeAny, {
1766
- allowFqdns?: string[] | undefined;
1767
- allowCidrs?: string[] | undefined;
1768
- }, {
1769
- allowFqdns?: string[] | undefined;
1770
- allowCidrs?: string[] | undefined;
1771
- }>>>;
1772
- }, "strict", z.ZodTypeAny, {
1773
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1774
- environmentId?: string | null | undefined;
1775
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1776
- workspaceStrategy?: {
1777
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1778
- baseRef?: string | null | undefined;
1779
- branchTemplate?: string | null | undefined;
1780
- worktreeParentDir?: string | null | undefined;
1781
- provisionCommand?: string | null | undefined;
1782
- runtimeProvisionCommand?: string | null | undefined;
1783
- teardownCommand?: string | null | undefined;
1784
- } | null | undefined;
1785
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1786
- networkEgress?: {
1787
- allowFqdns?: string[] | undefined;
1788
- allowCidrs?: string[] | undefined;
1789
- } | null | undefined;
1790
- }, {
1791
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1792
- environmentId?: string | null | undefined;
1793
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1794
- workspaceStrategy?: {
1795
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1796
- baseRef?: string | null | undefined;
1797
- branchTemplate?: string | null | undefined;
1798
- worktreeParentDir?: string | null | undefined;
1799
- provisionCommand?: string | null | undefined;
1800
- runtimeProvisionCommand?: string | null | undefined;
1801
- teardownCommand?: string | null | undefined;
1802
- } | null | undefined;
1803
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1804
- networkEgress?: {
1805
- allowFqdns?: string[] | undefined;
1806
- allowCidrs?: string[] | undefined;
1807
- } | null | undefined;
1808
- }>>>;
1809
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1810
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1811
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1812
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1813
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1814
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1815
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1816
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
1817
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1818
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
1819
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
1820
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1821
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1822
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
1823
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1824
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1825
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1826
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1827
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1828
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1829
- }, "strict", z.ZodTypeAny, {
1830
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1831
- baseRef?: string | null | undefined;
1832
- branchTemplate?: string | null | undefined;
1833
- worktreeParentDir?: string | null | undefined;
1834
- provisionCommand?: string | null | undefined;
1835
- runtimeProvisionCommand?: string | null | undefined;
1836
- teardownCommand?: string | null | undefined;
1837
- }, {
1838
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1839
- baseRef?: string | null | undefined;
1840
- branchTemplate?: string | null | undefined;
1841
- worktreeParentDir?: string | null | undefined;
1842
- provisionCommand?: string | null | undefined;
1843
- runtimeProvisionCommand?: string | null | undefined;
1844
- teardownCommand?: string | null | undefined;
1845
- }>>>;
1846
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1847
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1848
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1849
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1850
- }, "strict", z.ZodTypeAny, {
1851
- allowFqdns?: string[] | undefined;
1852
- allowCidrs?: string[] | undefined;
1853
- }, {
1854
- allowFqdns?: string[] | undefined;
1855
- allowCidrs?: string[] | undefined;
1856
- }>>>;
1857
- }, "strict", z.ZodTypeAny, {
1858
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1859
- environmentId?: string | null | undefined;
1860
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1861
- workspaceStrategy?: {
1862
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1863
- baseRef?: string | null | undefined;
1864
- branchTemplate?: string | null | undefined;
1865
- worktreeParentDir?: string | null | undefined;
1866
- provisionCommand?: string | null | undefined;
1867
- runtimeProvisionCommand?: string | null | undefined;
1868
- teardownCommand?: string | null | undefined;
1869
- } | null | undefined;
1870
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1871
- networkEgress?: {
1872
- allowFqdns?: string[] | undefined;
1873
- allowCidrs?: string[] | undefined;
1874
- } | null | undefined;
1875
- }, {
1876
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1877
- environmentId?: string | null | undefined;
1878
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1879
- workspaceStrategy?: {
1880
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1881
- baseRef?: string | null | undefined;
1882
- branchTemplate?: string | null | undefined;
1883
- worktreeParentDir?: string | null | undefined;
1884
- provisionCommand?: string | null | undefined;
1885
- runtimeProvisionCommand?: string | null | undefined;
1886
- teardownCommand?: string | null | undefined;
1887
- } | null | undefined;
1888
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1889
- networkEgress?: {
1890
- allowFqdns?: string[] | undefined;
1891
- allowCidrs?: string[] | undefined;
1892
- } | null | undefined;
1893
- }>>>;
1894
- }, z.ZodTypeAny, "passthrough">>>;
1895
- breakdown: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1896
- targetPipelineId: z.ZodString;
1897
- targetStageKey: z.ZodString;
1898
- pieceNoun: z.ZodDefault<z.ZodString>;
1899
- carryOverPolicy: z.ZodOptional<z.ZodObject<{
1900
- version: z.ZodDefault<z.ZodLiteral<1>>;
1901
- mode: z.ZodDefault<z.ZodEnum<["all_except", "only"]>>;
1902
- includeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1903
- excludeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1904
- }, "strip", z.ZodTypeAny, {
1905
- mode: "only" | "all_except";
1906
- version: 1;
1907
- includeFields: string[];
1908
- excludeFields: string[];
1909
- }, {
1910
- mode?: "only" | "all_except" | undefined;
1911
- version?: 1 | undefined;
1912
- includeFields?: string[] | undefined;
1913
- excludeFields?: string[] | undefined;
1914
- }>>;
1915
- inheritFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1916
- advanceTo: z.ZodOptional<z.ZodString>;
1917
- waitForPieces: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1918
- whenFinishedMoveTo: z.ZodOptional<z.ZodString>;
1919
- }, "strip", z.ZodTypeAny, {
1920
- targetPipelineId: string;
1921
- targetStageKey: string;
1922
- pieceNoun: string;
1923
- inheritFields: string[];
1924
- waitForPieces: boolean;
1925
- whenFinishedMoveTo?: string | undefined;
1926
- carryOverPolicy?: {
1927
- mode: "only" | "all_except";
1928
- version: 1;
1929
- includeFields: string[];
1930
- excludeFields: string[];
1931
- } | undefined;
1932
- advanceTo?: string | undefined;
1933
- }, {
1934
- targetPipelineId: string;
1935
- targetStageKey: string;
1936
- pieceNoun?: string | undefined;
1937
- inheritFields?: string[] | undefined;
1938
- waitForPieces?: boolean | undefined;
1939
- whenFinishedMoveTo?: string | undefined;
1940
- carryOverPolicy?: {
1941
- mode?: "only" | "all_except" | undefined;
1942
- version?: 1 | undefined;
1943
- includeFields?: string[] | undefined;
1944
- excludeFields?: string[] | undefined;
1945
- } | undefined;
1946
- advanceTo?: string | undefined;
1947
- }>, {
1948
- targetPipelineId: string;
1949
- targetStageKey: string;
1950
- pieceNoun: string;
1951
- inheritFields: string[];
1952
- waitForPieces: boolean;
1953
- whenFinishedMoveTo?: string | undefined;
1954
- carryOverPolicy?: {
1955
- mode: "only" | "all_except";
1956
- version: 1;
1957
- includeFields: string[];
1958
- excludeFields: string[];
1959
- } | undefined;
1960
- advanceTo?: string | undefined;
1961
- }, {
1962
- targetPipelineId: string;
1963
- targetStageKey: string;
1964
- pieceNoun?: string | undefined;
1965
- inheritFields?: string[] | undefined;
1966
- waitForPieces?: boolean | undefined;
1967
- whenFinishedMoveTo?: string | undefined;
1968
- carryOverPolicy?: {
1969
- mode?: "only" | "all_except" | undefined;
1970
- version?: 1 | undefined;
1971
- includeFields?: string[] | undefined;
1972
- excludeFields?: string[] | undefined;
1973
- } | undefined;
1974
- advanceTo?: string | undefined;
1975
- }>>;
1976
- approveToStageKey: z.ZodOptional<z.ZodString>;
1977
- rejectToStageKey: z.ZodOptional<z.ZodString>;
1978
- requestChangesToStageKey: z.ZodOptional<z.ZodString>;
1979
- requireRejectReason: z.ZodOptional<z.ZodBoolean>;
1980
- requireRequestChangesReason: z.ZodOptional<z.ZodBoolean>;
1981
- requireChildrenTerminal: z.ZodOptional<z.ZodBoolean>;
1982
- requireNoUnresolvedDrift: z.ZodOptional<z.ZodBoolean>;
1983
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1984
- variables: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
1985
- key: z.ZodString;
1986
- label: z.ZodString;
1987
- type: z.ZodDefault<z.ZodEnum<["select", "text", "multiline"]>>;
1988
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1989
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1990
- showInAddForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1991
- }, "strip", z.ZodTypeAny, {
1992
- key: string;
1993
- required: boolean;
1994
- options: string[];
1995
- type: "text" | "select" | "multiline";
1996
- label: string;
1997
- showInAddForm: boolean;
1998
- }, {
1999
- key: string;
2000
- label: string;
2001
- required?: boolean | undefined;
2002
- options?: string[] | undefined;
2003
- type?: "text" | "select" | "multiline" | undefined;
2004
- showInAddForm?: boolean | undefined;
2005
- }>, {
2006
- key: string;
2007
- required: boolean;
2008
- options: string[];
2009
- type: "text" | "select" | "multiline";
2010
- label: string;
2011
- showInAddForm: boolean;
2012
- }, {
2013
- key: string;
2014
- label: string;
2015
- required?: boolean | undefined;
2016
- options?: string[] | undefined;
2017
- type?: "text" | "select" | "multiline" | undefined;
2018
- showInAddForm?: boolean | undefined;
2019
- }>, "many">>;
2020
- disabled: z.ZodOptional<z.ZodBoolean>;
2021
- disabledReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2022
- requireApproval: z.ZodOptional<z.ZodBoolean>;
2023
- approver: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2024
- kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["any_human", "user", "agent"]>>>;
2025
- id: z.ZodOptional<z.ZodString>;
2026
- }, "strip", z.ZodTypeAny, {
2027
- kind: "user" | "agent" | "any_human";
2028
- id?: string | undefined;
2029
- }, {
2030
- id?: string | undefined;
2031
- kind?: "user" | "agent" | "any_human" | undefined;
2032
- }>, {
2033
- kind: "user" | "agent" | "any_human";
2034
- id?: string | undefined;
2035
- }, {
2036
- id?: string | undefined;
2037
- kind?: "user" | "agent" | "any_human" | undefined;
2038
- }>>;
2039
- /** Legacy input only; the server migrates it to requireApproval/approver. */
2040
- reviewerKind: z.ZodOptional<z.ZodEnum<["human", "any"]>>;
2041
- whatHappensHere: z.ZodOptional<z.ZodString>;
2042
- onEnter: z.ZodOptional<z.ZodObject<{
2043
- type: z.ZodLiteral<"run_routine">;
2044
- routineId: z.ZodString;
2045
- id: z.ZodOptional<z.ZodString>;
2046
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2047
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2048
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2049
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2050
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2051
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2052
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2053
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2054
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2055
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2056
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2057
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2058
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2059
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2060
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2061
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2062
- }, "strict", z.ZodTypeAny, {
2063
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2064
- baseRef?: string | null | undefined;
2065
- branchTemplate?: string | null | undefined;
2066
- worktreeParentDir?: string | null | undefined;
2067
- provisionCommand?: string | null | undefined;
2068
- runtimeProvisionCommand?: string | null | undefined;
2069
- teardownCommand?: string | null | undefined;
2070
- }, {
2071
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2072
- baseRef?: string | null | undefined;
2073
- branchTemplate?: string | null | undefined;
2074
- worktreeParentDir?: string | null | undefined;
2075
- provisionCommand?: string | null | undefined;
2076
- runtimeProvisionCommand?: string | null | undefined;
2077
- teardownCommand?: string | null | undefined;
2078
- }>>>;
2079
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2080
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2081
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2082
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2083
- }, "strict", z.ZodTypeAny, {
2084
- allowFqdns?: string[] | undefined;
2085
- allowCidrs?: string[] | undefined;
2086
- }, {
2087
- allowFqdns?: string[] | undefined;
2088
- allowCidrs?: string[] | undefined;
2089
- }>>>;
2090
- }, "strict", z.ZodTypeAny, {
2091
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2092
- environmentId?: string | null | undefined;
2093
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2094
- workspaceStrategy?: {
2095
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2096
- baseRef?: string | null | undefined;
2097
- branchTemplate?: string | null | undefined;
2098
- worktreeParentDir?: string | null | undefined;
2099
- provisionCommand?: string | null | undefined;
2100
- runtimeProvisionCommand?: string | null | undefined;
2101
- teardownCommand?: string | null | undefined;
2102
- } | null | undefined;
2103
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2104
- networkEgress?: {
2105
- allowFqdns?: string[] | undefined;
2106
- allowCidrs?: string[] | undefined;
2107
- } | null | undefined;
2108
- }, {
2109
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2110
- environmentId?: string | null | undefined;
2111
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2112
- workspaceStrategy?: {
2113
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2114
- baseRef?: string | null | undefined;
2115
- branchTemplate?: string | null | undefined;
2116
- worktreeParentDir?: string | null | undefined;
2117
- provisionCommand?: string | null | undefined;
2118
- runtimeProvisionCommand?: string | null | undefined;
2119
- teardownCommand?: string | null | undefined;
2120
- } | null | undefined;
2121
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2122
- networkEgress?: {
2123
- allowFqdns?: string[] | undefined;
2124
- allowCidrs?: string[] | undefined;
2125
- } | null | undefined;
2126
- }>>>;
2127
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2128
- type: z.ZodLiteral<"run_routine">;
2129
- routineId: z.ZodString;
2130
- id: z.ZodOptional<z.ZodString>;
2131
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2132
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2133
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2134
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2135
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2136
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2137
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2138
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2139
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2140
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2141
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2142
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2143
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2144
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2145
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2146
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2147
- }, "strict", z.ZodTypeAny, {
2148
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2149
- baseRef?: string | null | undefined;
2150
- branchTemplate?: string | null | undefined;
2151
- worktreeParentDir?: string | null | undefined;
2152
- provisionCommand?: string | null | undefined;
2153
- runtimeProvisionCommand?: string | null | undefined;
2154
- teardownCommand?: string | null | undefined;
2155
- }, {
2156
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2157
- baseRef?: string | null | undefined;
2158
- branchTemplate?: string | null | undefined;
2159
- worktreeParentDir?: string | null | undefined;
2160
- provisionCommand?: string | null | undefined;
2161
- runtimeProvisionCommand?: string | null | undefined;
2162
- teardownCommand?: string | null | undefined;
2163
- }>>>;
2164
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2165
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2166
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2167
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2168
- }, "strict", z.ZodTypeAny, {
2169
- allowFqdns?: string[] | undefined;
2170
- allowCidrs?: string[] | undefined;
2171
- }, {
2172
- allowFqdns?: string[] | undefined;
2173
- allowCidrs?: string[] | undefined;
2174
- }>>>;
2175
- }, "strict", z.ZodTypeAny, {
2176
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2177
- environmentId?: string | null | undefined;
2178
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2179
- workspaceStrategy?: {
2180
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2181
- baseRef?: string | null | undefined;
2182
- branchTemplate?: string | null | undefined;
2183
- worktreeParentDir?: string | null | undefined;
2184
- provisionCommand?: string | null | undefined;
2185
- runtimeProvisionCommand?: string | null | undefined;
2186
- teardownCommand?: string | null | undefined;
2187
- } | null | undefined;
2188
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2189
- networkEgress?: {
2190
- allowFqdns?: string[] | undefined;
2191
- allowCidrs?: string[] | undefined;
2192
- } | null | undefined;
2193
- }, {
2194
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2195
- environmentId?: string | null | undefined;
2196
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2197
- workspaceStrategy?: {
2198
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2199
- baseRef?: string | null | undefined;
2200
- branchTemplate?: string | null | undefined;
2201
- worktreeParentDir?: string | null | undefined;
2202
- provisionCommand?: string | null | undefined;
2203
- runtimeProvisionCommand?: string | null | undefined;
2204
- teardownCommand?: string | null | undefined;
2205
- } | null | undefined;
2206
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2207
- networkEgress?: {
2208
- allowFqdns?: string[] | undefined;
2209
- allowCidrs?: string[] | undefined;
2210
- } | null | undefined;
2211
- }>>>;
2212
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2213
- type: z.ZodLiteral<"run_routine">;
2214
- routineId: z.ZodString;
2215
- id: z.ZodOptional<z.ZodString>;
2216
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2217
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2218
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2219
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2220
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2221
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2222
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2223
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2224
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2225
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2226
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2227
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2228
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2229
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2230
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2231
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2232
- }, "strict", z.ZodTypeAny, {
2233
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2234
- baseRef?: string | null | undefined;
2235
- branchTemplate?: string | null | undefined;
2236
- worktreeParentDir?: string | null | undefined;
2237
- provisionCommand?: string | null | undefined;
2238
- runtimeProvisionCommand?: string | null | undefined;
2239
- teardownCommand?: string | null | undefined;
2240
- }, {
2241
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2242
- baseRef?: string | null | undefined;
2243
- branchTemplate?: string | null | undefined;
2244
- worktreeParentDir?: string | null | undefined;
2245
- provisionCommand?: string | null | undefined;
2246
- runtimeProvisionCommand?: string | null | undefined;
2247
- teardownCommand?: string | null | undefined;
2248
- }>>>;
2249
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2250
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2251
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2252
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2253
- }, "strict", z.ZodTypeAny, {
2254
- allowFqdns?: string[] | undefined;
2255
- allowCidrs?: string[] | undefined;
2256
- }, {
2257
- allowFqdns?: string[] | undefined;
2258
- allowCidrs?: string[] | undefined;
2259
- }>>>;
2260
- }, "strict", z.ZodTypeAny, {
2261
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2262
- environmentId?: string | null | undefined;
2263
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2264
- workspaceStrategy?: {
2265
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2266
- baseRef?: string | null | undefined;
2267
- branchTemplate?: string | null | undefined;
2268
- worktreeParentDir?: string | null | undefined;
2269
- provisionCommand?: string | null | undefined;
2270
- runtimeProvisionCommand?: string | null | undefined;
2271
- teardownCommand?: string | null | undefined;
2272
- } | null | undefined;
2273
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2274
- networkEgress?: {
2275
- allowFqdns?: string[] | undefined;
2276
- allowCidrs?: string[] | undefined;
2277
- } | null | undefined;
2278
- }, {
2279
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2280
- environmentId?: string | null | undefined;
2281
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2282
- workspaceStrategy?: {
2283
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2284
- baseRef?: string | null | undefined;
2285
- branchTemplate?: string | null | undefined;
2286
- worktreeParentDir?: string | null | undefined;
2287
- provisionCommand?: string | null | undefined;
2288
- runtimeProvisionCommand?: string | null | undefined;
2289
- teardownCommand?: string | null | undefined;
2290
- } | null | undefined;
2291
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2292
- networkEgress?: {
2293
- allowFqdns?: string[] | undefined;
2294
- allowCidrs?: string[] | undefined;
2295
- } | null | undefined;
2296
- }>>>;
2297
- }, z.ZodTypeAny, "passthrough">>>;
2298
- automation: z.ZodOptional<z.ZodObject<{
2299
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2300
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2301
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2302
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2303
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2304
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2305
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2306
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2307
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2308
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2309
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2310
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2311
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2312
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2313
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2314
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2315
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2316
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2317
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2318
- }, "strict", z.ZodTypeAny, {
2319
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2320
- baseRef?: string | null | undefined;
2321
- branchTemplate?: string | null | undefined;
2322
- worktreeParentDir?: string | null | undefined;
2323
- provisionCommand?: string | null | undefined;
2324
- runtimeProvisionCommand?: string | null | undefined;
2325
- teardownCommand?: string | null | undefined;
2326
- }, {
2327
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2328
- baseRef?: string | null | undefined;
2329
- branchTemplate?: string | null | undefined;
2330
- worktreeParentDir?: string | null | undefined;
2331
- provisionCommand?: string | null | undefined;
2332
- runtimeProvisionCommand?: string | null | undefined;
2333
- teardownCommand?: string | null | undefined;
2334
- }>>>;
2335
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2336
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2337
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2338
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2339
- }, "strict", z.ZodTypeAny, {
2340
- allowFqdns?: string[] | undefined;
2341
- allowCidrs?: string[] | undefined;
2342
- }, {
2343
- allowFqdns?: string[] | undefined;
2344
- allowCidrs?: string[] | undefined;
2345
- }>>>;
2346
- }, "strict", z.ZodTypeAny, {
2347
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2348
- environmentId?: string | null | undefined;
2349
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2350
- workspaceStrategy?: {
2351
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2352
- baseRef?: string | null | undefined;
2353
- branchTemplate?: string | null | undefined;
2354
- worktreeParentDir?: string | null | undefined;
2355
- provisionCommand?: string | null | undefined;
2356
- runtimeProvisionCommand?: string | null | undefined;
2357
- teardownCommand?: string | null | undefined;
2358
- } | null | undefined;
2359
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2360
- networkEgress?: {
2361
- allowFqdns?: string[] | undefined;
2362
- allowCidrs?: string[] | undefined;
2363
- } | null | undefined;
2364
- }, {
2365
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2366
- environmentId?: string | null | undefined;
2367
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2368
- workspaceStrategy?: {
2369
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2370
- baseRef?: string | null | undefined;
2371
- branchTemplate?: string | null | undefined;
2372
- worktreeParentDir?: string | null | undefined;
2373
- provisionCommand?: string | null | undefined;
2374
- runtimeProvisionCommand?: string | null | undefined;
2375
- teardownCommand?: string | null | undefined;
2376
- } | null | undefined;
2377
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2378
- networkEgress?: {
2379
- allowFqdns?: string[] | undefined;
2380
- allowCidrs?: string[] | undefined;
2381
- } | null | undefined;
2382
- }>>>;
2383
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2384
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2385
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2386
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2387
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2388
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2389
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2390
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2391
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2392
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2393
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2394
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2395
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2396
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2397
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2398
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2399
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2400
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2401
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2402
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2403
- }, "strict", z.ZodTypeAny, {
2404
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2405
- baseRef?: string | null | undefined;
2406
- branchTemplate?: string | null | undefined;
2407
- worktreeParentDir?: string | null | undefined;
2408
- provisionCommand?: string | null | undefined;
2409
- runtimeProvisionCommand?: string | null | undefined;
2410
- teardownCommand?: string | null | undefined;
2411
- }, {
2412
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2413
- baseRef?: string | null | undefined;
2414
- branchTemplate?: string | null | undefined;
2415
- worktreeParentDir?: string | null | undefined;
2416
- provisionCommand?: string | null | undefined;
2417
- runtimeProvisionCommand?: string | null | undefined;
2418
- teardownCommand?: string | null | undefined;
2419
- }>>>;
2420
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2421
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2422
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2423
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2424
- }, "strict", z.ZodTypeAny, {
2425
- allowFqdns?: string[] | undefined;
2426
- allowCidrs?: string[] | undefined;
2427
- }, {
2428
- allowFqdns?: string[] | undefined;
2429
- allowCidrs?: string[] | undefined;
2430
- }>>>;
2431
- }, "strict", z.ZodTypeAny, {
2432
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2433
- environmentId?: string | null | undefined;
2434
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2435
- workspaceStrategy?: {
2436
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2437
- baseRef?: string | null | undefined;
2438
- branchTemplate?: string | null | undefined;
2439
- worktreeParentDir?: string | null | undefined;
2440
- provisionCommand?: string | null | undefined;
2441
- runtimeProvisionCommand?: string | null | undefined;
2442
- teardownCommand?: string | null | undefined;
2443
- } | null | undefined;
2444
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2445
- networkEgress?: {
2446
- allowFqdns?: string[] | undefined;
2447
- allowCidrs?: string[] | undefined;
2448
- } | null | undefined;
2449
- }, {
2450
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2451
- environmentId?: string | null | undefined;
2452
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2453
- workspaceStrategy?: {
2454
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2455
- baseRef?: string | null | undefined;
2456
- branchTemplate?: string | null | undefined;
2457
- worktreeParentDir?: string | null | undefined;
2458
- provisionCommand?: string | null | undefined;
2459
- runtimeProvisionCommand?: string | null | undefined;
2460
- teardownCommand?: string | null | undefined;
2461
- } | null | undefined;
2462
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2463
- networkEgress?: {
2464
- allowFqdns?: string[] | undefined;
2465
- allowCidrs?: string[] | undefined;
2466
- } | null | undefined;
2467
- }>>>;
2468
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2469
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2470
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2471
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2472
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2473
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2474
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2475
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2476
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2477
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2478
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2479
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2480
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2481
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2482
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2483
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2484
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2485
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2486
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2487
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2488
- }, "strict", z.ZodTypeAny, {
2489
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2490
- baseRef?: string | null | undefined;
2491
- branchTemplate?: string | null | undefined;
2492
- worktreeParentDir?: string | null | undefined;
2493
- provisionCommand?: string | null | undefined;
2494
- runtimeProvisionCommand?: string | null | undefined;
2495
- teardownCommand?: string | null | undefined;
2496
- }, {
2497
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2498
- baseRef?: string | null | undefined;
2499
- branchTemplate?: string | null | undefined;
2500
- worktreeParentDir?: string | null | undefined;
2501
- provisionCommand?: string | null | undefined;
2502
- runtimeProvisionCommand?: string | null | undefined;
2503
- teardownCommand?: string | null | undefined;
2504
- }>>>;
2505
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2506
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2507
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2508
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2509
- }, "strict", z.ZodTypeAny, {
2510
- allowFqdns?: string[] | undefined;
2511
- allowCidrs?: string[] | undefined;
2512
- }, {
2513
- allowFqdns?: string[] | undefined;
2514
- allowCidrs?: string[] | undefined;
2515
- }>>>;
2516
- }, "strict", z.ZodTypeAny, {
2517
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2518
- environmentId?: string | null | undefined;
2519
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2520
- workspaceStrategy?: {
2521
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2522
- baseRef?: string | null | undefined;
2523
- branchTemplate?: string | null | undefined;
2524
- worktreeParentDir?: string | null | undefined;
2525
- provisionCommand?: string | null | undefined;
2526
- runtimeProvisionCommand?: string | null | undefined;
2527
- teardownCommand?: string | null | undefined;
2528
- } | null | undefined;
2529
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2530
- networkEgress?: {
2531
- allowFqdns?: string[] | undefined;
2532
- allowCidrs?: string[] | undefined;
2533
- } | null | undefined;
2534
- }, {
2535
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2536
- environmentId?: string | null | undefined;
2537
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2538
- workspaceStrategy?: {
2539
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2540
- baseRef?: string | null | undefined;
2541
- branchTemplate?: string | null | undefined;
2542
- worktreeParentDir?: string | null | undefined;
2543
- provisionCommand?: string | null | undefined;
2544
- runtimeProvisionCommand?: string | null | undefined;
2545
- teardownCommand?: string | null | undefined;
2546
- } | null | undefined;
2547
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2548
- networkEgress?: {
2549
- allowFqdns?: string[] | undefined;
2550
- allowCidrs?: string[] | undefined;
2551
- } | null | undefined;
2552
- }>>>;
2553
- }, z.ZodTypeAny, "passthrough">>>;
2554
- breakdown: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2555
- targetPipelineId: z.ZodString;
2556
- targetStageKey: z.ZodString;
2557
- pieceNoun: z.ZodDefault<z.ZodString>;
2558
- carryOverPolicy: z.ZodOptional<z.ZodObject<{
2559
- version: z.ZodDefault<z.ZodLiteral<1>>;
2560
- mode: z.ZodDefault<z.ZodEnum<["all_except", "only"]>>;
2561
- includeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2562
- excludeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2563
- }, "strip", z.ZodTypeAny, {
2564
- mode: "only" | "all_except";
2565
- version: 1;
2566
- includeFields: string[];
2567
- excludeFields: string[];
2568
- }, {
2569
- mode?: "only" | "all_except" | undefined;
2570
- version?: 1 | undefined;
2571
- includeFields?: string[] | undefined;
2572
- excludeFields?: string[] | undefined;
2573
- }>>;
2574
- inheritFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2575
- advanceTo: z.ZodOptional<z.ZodString>;
2576
- waitForPieces: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2577
- whenFinishedMoveTo: z.ZodOptional<z.ZodString>;
2578
- }, "strip", z.ZodTypeAny, {
2579
- targetPipelineId: string;
2580
- targetStageKey: string;
2581
- pieceNoun: string;
2582
- inheritFields: string[];
2583
- waitForPieces: boolean;
2584
- whenFinishedMoveTo?: string | undefined;
2585
- carryOverPolicy?: {
2586
- mode: "only" | "all_except";
2587
- version: 1;
2588
- includeFields: string[];
2589
- excludeFields: string[];
2590
- } | undefined;
2591
- advanceTo?: string | undefined;
2592
- }, {
2593
- targetPipelineId: string;
2594
- targetStageKey: string;
2595
- pieceNoun?: string | undefined;
2596
- inheritFields?: string[] | undefined;
2597
- waitForPieces?: boolean | undefined;
2598
- whenFinishedMoveTo?: string | undefined;
2599
- carryOverPolicy?: {
2600
- mode?: "only" | "all_except" | undefined;
2601
- version?: 1 | undefined;
2602
- includeFields?: string[] | undefined;
2603
- excludeFields?: string[] | undefined;
2604
- } | undefined;
2605
- advanceTo?: string | undefined;
2606
- }>, {
2607
- targetPipelineId: string;
2608
- targetStageKey: string;
2609
- pieceNoun: string;
2610
- inheritFields: string[];
2611
- waitForPieces: boolean;
2612
- whenFinishedMoveTo?: string | undefined;
2613
- carryOverPolicy?: {
2614
- mode: "only" | "all_except";
2615
- version: 1;
2616
- includeFields: string[];
2617
- excludeFields: string[];
2618
- } | undefined;
2619
- advanceTo?: string | undefined;
2620
- }, {
2621
- targetPipelineId: string;
2622
- targetStageKey: string;
2623
- pieceNoun?: string | undefined;
2624
- inheritFields?: string[] | undefined;
2625
- waitForPieces?: boolean | undefined;
2626
- whenFinishedMoveTo?: string | undefined;
2627
- carryOverPolicy?: {
2628
- mode?: "only" | "all_except" | undefined;
2629
- version?: 1 | undefined;
2630
- includeFields?: string[] | undefined;
2631
- excludeFields?: string[] | undefined;
2632
- } | undefined;
2633
- advanceTo?: string | undefined;
2634
- }>>;
2635
- approveToStageKey: z.ZodOptional<z.ZodString>;
2636
- rejectToStageKey: z.ZodOptional<z.ZodString>;
2637
- requestChangesToStageKey: z.ZodOptional<z.ZodString>;
2638
- requireRejectReason: z.ZodOptional<z.ZodBoolean>;
2639
- requireRequestChangesReason: z.ZodOptional<z.ZodBoolean>;
2640
- requireChildrenTerminal: z.ZodOptional<z.ZodBoolean>;
2641
- requireNoUnresolvedDrift: z.ZodOptional<z.ZodBoolean>;
2642
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
2643
- variables: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
2644
- key: z.ZodString;
2645
- label: z.ZodString;
2646
- type: z.ZodDefault<z.ZodEnum<["select", "text", "multiline"]>>;
2647
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2648
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2649
- showInAddForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2650
- }, "strip", z.ZodTypeAny, {
2651
- key: string;
2652
- required: boolean;
2653
- options: string[];
2654
- type: "text" | "select" | "multiline";
2655
- label: string;
2656
- showInAddForm: boolean;
2657
- }, {
2658
- key: string;
2659
- label: string;
2660
- required?: boolean | undefined;
2661
- options?: string[] | undefined;
2662
- type?: "text" | "select" | "multiline" | undefined;
2663
- showInAddForm?: boolean | undefined;
2664
- }>, {
2665
- key: string;
2666
- required: boolean;
2667
- options: string[];
2668
- type: "text" | "select" | "multiline";
2669
- label: string;
2670
- showInAddForm: boolean;
2671
- }, {
2672
- key: string;
2673
- label: string;
2674
- required?: boolean | undefined;
2675
- options?: string[] | undefined;
2676
- type?: "text" | "select" | "multiline" | undefined;
2677
- showInAddForm?: boolean | undefined;
2678
- }>, "many">>;
2679
- disabled: z.ZodOptional<z.ZodBoolean>;
2680
- disabledReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2681
- requireApproval: z.ZodOptional<z.ZodBoolean>;
2682
- approver: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2683
- kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["any_human", "user", "agent"]>>>;
2684
- id: z.ZodOptional<z.ZodString>;
2685
- }, "strip", z.ZodTypeAny, {
2686
- kind: "user" | "agent" | "any_human";
2687
- id?: string | undefined;
2688
- }, {
2689
- id?: string | undefined;
2690
- kind?: "user" | "agent" | "any_human" | undefined;
2691
- }>, {
2692
- kind: "user" | "agent" | "any_human";
2693
- id?: string | undefined;
2694
- }, {
2695
- id?: string | undefined;
2696
- kind?: "user" | "agent" | "any_human" | undefined;
2697
- }>>;
2698
- /** Legacy input only; the server migrates it to requireApproval/approver. */
2699
- reviewerKind: z.ZodOptional<z.ZodEnum<["human", "any"]>>;
2700
- whatHappensHere: z.ZodOptional<z.ZodString>;
2701
- onEnter: z.ZodOptional<z.ZodObject<{
2702
- type: z.ZodLiteral<"run_routine">;
2703
- routineId: z.ZodString;
2704
- id: z.ZodOptional<z.ZodString>;
2705
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2706
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2707
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2708
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2709
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2710
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2711
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2712
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2713
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2714
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2715
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2716
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2717
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2718
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2719
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2720
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2721
- }, "strict", z.ZodTypeAny, {
2722
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2723
- baseRef?: string | null | undefined;
2724
- branchTemplate?: string | null | undefined;
2725
- worktreeParentDir?: string | null | undefined;
2726
- provisionCommand?: string | null | undefined;
2727
- runtimeProvisionCommand?: string | null | undefined;
2728
- teardownCommand?: string | null | undefined;
2729
- }, {
2730
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2731
- baseRef?: string | null | undefined;
2732
- branchTemplate?: string | null | undefined;
2733
- worktreeParentDir?: string | null | undefined;
2734
- provisionCommand?: string | null | undefined;
2735
- runtimeProvisionCommand?: string | null | undefined;
2736
- teardownCommand?: string | null | undefined;
2737
- }>>>;
2738
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2739
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2740
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2741
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2742
- }, "strict", z.ZodTypeAny, {
2743
- allowFqdns?: string[] | undefined;
2744
- allowCidrs?: string[] | undefined;
2745
- }, {
2746
- allowFqdns?: string[] | undefined;
2747
- allowCidrs?: string[] | undefined;
2748
- }>>>;
2749
- }, "strict", z.ZodTypeAny, {
2750
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2751
- environmentId?: string | null | undefined;
2752
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2753
- workspaceStrategy?: {
2754
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2755
- baseRef?: string | null | undefined;
2756
- branchTemplate?: string | null | undefined;
2757
- worktreeParentDir?: string | null | undefined;
2758
- provisionCommand?: string | null | undefined;
2759
- runtimeProvisionCommand?: string | null | undefined;
2760
- teardownCommand?: string | null | undefined;
2761
- } | null | undefined;
2762
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2763
- networkEgress?: {
2764
- allowFqdns?: string[] | undefined;
2765
- allowCidrs?: string[] | undefined;
2766
- } | null | undefined;
2767
- }, {
2768
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2769
- environmentId?: string | null | undefined;
2770
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2771
- workspaceStrategy?: {
2772
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2773
- baseRef?: string | null | undefined;
2774
- branchTemplate?: string | null | undefined;
2775
- worktreeParentDir?: string | null | undefined;
2776
- provisionCommand?: string | null | undefined;
2777
- runtimeProvisionCommand?: string | null | undefined;
2778
- teardownCommand?: string | null | undefined;
2779
- } | null | undefined;
2780
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2781
- networkEgress?: {
2782
- allowFqdns?: string[] | undefined;
2783
- allowCidrs?: string[] | undefined;
2784
- } | null | undefined;
2785
- }>>>;
2786
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2787
- type: z.ZodLiteral<"run_routine">;
2788
- routineId: z.ZodString;
2789
- id: z.ZodOptional<z.ZodString>;
2790
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2791
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2792
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2793
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2794
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2795
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2796
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2797
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2798
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2799
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2800
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2801
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2802
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2803
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2804
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2805
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2806
- }, "strict", z.ZodTypeAny, {
2807
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2808
- baseRef?: string | null | undefined;
2809
- branchTemplate?: string | null | undefined;
2810
- worktreeParentDir?: string | null | undefined;
2811
- provisionCommand?: string | null | undefined;
2812
- runtimeProvisionCommand?: string | null | undefined;
2813
- teardownCommand?: string | null | undefined;
2814
- }, {
2815
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2816
- baseRef?: string | null | undefined;
2817
- branchTemplate?: string | null | undefined;
2818
- worktreeParentDir?: string | null | undefined;
2819
- provisionCommand?: string | null | undefined;
2820
- runtimeProvisionCommand?: string | null | undefined;
2821
- teardownCommand?: string | null | undefined;
2822
- }>>>;
2823
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2824
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2825
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2826
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2827
- }, "strict", z.ZodTypeAny, {
2828
- allowFqdns?: string[] | undefined;
2829
- allowCidrs?: string[] | undefined;
2830
- }, {
2831
- allowFqdns?: string[] | undefined;
2832
- allowCidrs?: string[] | undefined;
2833
- }>>>;
2834
- }, "strict", z.ZodTypeAny, {
2835
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2836
- environmentId?: string | null | undefined;
2837
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2838
- workspaceStrategy?: {
2839
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2840
- baseRef?: string | null | undefined;
2841
- branchTemplate?: string | null | undefined;
2842
- worktreeParentDir?: string | null | undefined;
2843
- provisionCommand?: string | null | undefined;
2844
- runtimeProvisionCommand?: string | null | undefined;
2845
- teardownCommand?: string | null | undefined;
2846
- } | null | undefined;
2847
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2848
- networkEgress?: {
2849
- allowFqdns?: string[] | undefined;
2850
- allowCidrs?: string[] | undefined;
2851
- } | null | undefined;
2852
- }, {
2853
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2854
- environmentId?: string | null | undefined;
2855
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2856
- workspaceStrategy?: {
2857
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2858
- baseRef?: string | null | undefined;
2859
- branchTemplate?: string | null | undefined;
2860
- worktreeParentDir?: string | null | undefined;
2861
- provisionCommand?: string | null | undefined;
2862
- runtimeProvisionCommand?: string | null | undefined;
2863
- teardownCommand?: string | null | undefined;
2864
- } | null | undefined;
2865
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2866
- networkEgress?: {
2867
- allowFqdns?: string[] | undefined;
2868
- allowCidrs?: string[] | undefined;
2869
- } | null | undefined;
2870
- }>>>;
2871
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2872
- type: z.ZodLiteral<"run_routine">;
2873
- routineId: z.ZodString;
2874
- id: z.ZodOptional<z.ZodString>;
2875
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2876
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2877
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2878
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2879
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2880
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2881
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2882
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2883
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2884
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2885
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2886
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2887
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2888
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2889
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2890
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2891
- }, "strict", z.ZodTypeAny, {
2892
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2893
- baseRef?: string | null | undefined;
2894
- branchTemplate?: string | null | undefined;
2895
- worktreeParentDir?: string | null | undefined;
2896
- provisionCommand?: string | null | undefined;
2897
- runtimeProvisionCommand?: string | null | undefined;
2898
- teardownCommand?: string | null | undefined;
2899
- }, {
2900
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2901
- baseRef?: string | null | undefined;
2902
- branchTemplate?: string | null | undefined;
2903
- worktreeParentDir?: string | null | undefined;
2904
- provisionCommand?: string | null | undefined;
2905
- runtimeProvisionCommand?: string | null | undefined;
2906
- teardownCommand?: string | null | undefined;
2907
- }>>>;
2908
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2909
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2910
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2911
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2912
- }, "strict", z.ZodTypeAny, {
2913
- allowFqdns?: string[] | undefined;
2914
- allowCidrs?: string[] | undefined;
2915
- }, {
2916
- allowFqdns?: string[] | undefined;
2917
- allowCidrs?: string[] | undefined;
2918
- }>>>;
2919
- }, "strict", z.ZodTypeAny, {
2920
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2921
- environmentId?: string | null | undefined;
2922
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2923
- workspaceStrategy?: {
2924
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2925
- baseRef?: string | null | undefined;
2926
- branchTemplate?: string | null | undefined;
2927
- worktreeParentDir?: string | null | undefined;
2928
- provisionCommand?: string | null | undefined;
2929
- runtimeProvisionCommand?: string | null | undefined;
2930
- teardownCommand?: string | null | undefined;
2931
- } | null | undefined;
2932
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2933
- networkEgress?: {
2934
- allowFqdns?: string[] | undefined;
2935
- allowCidrs?: string[] | undefined;
2936
- } | null | undefined;
2937
- }, {
2938
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
2939
- environmentId?: string | null | undefined;
2940
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
2941
- workspaceStrategy?: {
2942
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2943
- baseRef?: string | null | undefined;
2944
- branchTemplate?: string | null | undefined;
2945
- worktreeParentDir?: string | null | undefined;
2946
- provisionCommand?: string | null | undefined;
2947
- runtimeProvisionCommand?: string | null | undefined;
2948
- teardownCommand?: string | null | undefined;
2949
- } | null | undefined;
2950
- workspaceRuntime?: Record<string, unknown> | null | undefined;
2951
- networkEgress?: {
2952
- allowFqdns?: string[] | undefined;
2953
- allowCidrs?: string[] | undefined;
2954
- } | null | undefined;
2955
- }>>>;
2956
- }, z.ZodTypeAny, "passthrough">>>;
2957
- automation: z.ZodOptional<z.ZodObject<{
2958
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2959
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2960
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2961
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2962
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2963
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2964
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
2965
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2966
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
2967
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
2968
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2969
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2970
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
2971
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2972
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2973
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2974
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2975
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2976
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2977
- }, "strict", z.ZodTypeAny, {
2978
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2979
- baseRef?: string | null | undefined;
2980
- branchTemplate?: string | null | undefined;
2981
- worktreeParentDir?: string | null | undefined;
2982
- provisionCommand?: string | null | undefined;
2983
- runtimeProvisionCommand?: string | null | undefined;
2984
- teardownCommand?: string | null | undefined;
2985
- }, {
2986
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
2987
- baseRef?: string | null | undefined;
2988
- branchTemplate?: string | null | undefined;
2989
- worktreeParentDir?: string | null | undefined;
2990
- provisionCommand?: string | null | undefined;
2991
- runtimeProvisionCommand?: string | null | undefined;
2992
- teardownCommand?: string | null | undefined;
2993
- }>>>;
2994
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2995
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2996
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2997
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2998
- }, "strict", z.ZodTypeAny, {
2999
- allowFqdns?: string[] | undefined;
3000
- allowCidrs?: string[] | undefined;
3001
- }, {
3002
- allowFqdns?: string[] | undefined;
3003
- allowCidrs?: string[] | undefined;
3004
- }>>>;
3005
- }, "strict", z.ZodTypeAny, {
3006
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3007
- environmentId?: string | null | undefined;
3008
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3009
- workspaceStrategy?: {
3010
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3011
- baseRef?: string | null | undefined;
3012
- branchTemplate?: string | null | undefined;
3013
- worktreeParentDir?: string | null | undefined;
3014
- provisionCommand?: string | null | undefined;
3015
- runtimeProvisionCommand?: string | null | undefined;
3016
- teardownCommand?: string | null | undefined;
3017
- } | null | undefined;
3018
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3019
- networkEgress?: {
3020
- allowFqdns?: string[] | undefined;
3021
- allowCidrs?: string[] | undefined;
3022
- } | null | undefined;
3023
- }, {
3024
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3025
- environmentId?: string | null | undefined;
3026
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3027
- workspaceStrategy?: {
3028
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3029
- baseRef?: string | null | undefined;
3030
- branchTemplate?: string | null | undefined;
3031
- worktreeParentDir?: string | null | undefined;
3032
- provisionCommand?: string | null | undefined;
3033
- runtimeProvisionCommand?: string | null | undefined;
3034
- teardownCommand?: string | null | undefined;
3035
- } | null | undefined;
3036
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3037
- networkEgress?: {
3038
- allowFqdns?: string[] | undefined;
3039
- allowCidrs?: string[] | undefined;
3040
- } | null | undefined;
3041
- }>>>;
3042
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3043
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3044
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3045
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3046
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3047
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3048
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3049
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
3050
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3051
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
3052
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
3053
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3054
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3055
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
3056
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3057
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3058
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3059
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3060
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3061
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3062
- }, "strict", z.ZodTypeAny, {
3063
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3064
- baseRef?: string | null | undefined;
3065
- branchTemplate?: string | null | undefined;
3066
- worktreeParentDir?: string | null | undefined;
3067
- provisionCommand?: string | null | undefined;
3068
- runtimeProvisionCommand?: string | null | undefined;
3069
- teardownCommand?: string | null | undefined;
3070
- }, {
3071
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3072
- baseRef?: string | null | undefined;
3073
- branchTemplate?: string | null | undefined;
3074
- worktreeParentDir?: string | null | undefined;
3075
- provisionCommand?: string | null | undefined;
3076
- runtimeProvisionCommand?: string | null | undefined;
3077
- teardownCommand?: string | null | undefined;
3078
- }>>>;
3079
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3080
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3081
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3082
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3083
- }, "strict", z.ZodTypeAny, {
3084
- allowFqdns?: string[] | undefined;
3085
- allowCidrs?: string[] | undefined;
3086
- }, {
3087
- allowFqdns?: string[] | undefined;
3088
- allowCidrs?: string[] | undefined;
3089
- }>>>;
3090
- }, "strict", z.ZodTypeAny, {
3091
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3092
- environmentId?: string | null | undefined;
3093
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3094
- workspaceStrategy?: {
3095
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3096
- baseRef?: string | null | undefined;
3097
- branchTemplate?: string | null | undefined;
3098
- worktreeParentDir?: string | null | undefined;
3099
- provisionCommand?: string | null | undefined;
3100
- runtimeProvisionCommand?: string | null | undefined;
3101
- teardownCommand?: string | null | undefined;
3102
- } | null | undefined;
3103
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3104
- networkEgress?: {
3105
- allowFqdns?: string[] | undefined;
3106
- allowCidrs?: string[] | undefined;
3107
- } | null | undefined;
3108
- }, {
3109
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3110
- environmentId?: string | null | undefined;
3111
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3112
- workspaceStrategy?: {
3113
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3114
- baseRef?: string | null | undefined;
3115
- branchTemplate?: string | null | undefined;
3116
- worktreeParentDir?: string | null | undefined;
3117
- provisionCommand?: string | null | undefined;
3118
- runtimeProvisionCommand?: string | null | undefined;
3119
- teardownCommand?: string | null | undefined;
3120
- } | null | undefined;
3121
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3122
- networkEgress?: {
3123
- allowFqdns?: string[] | undefined;
3124
- allowCidrs?: string[] | undefined;
3125
- } | null | undefined;
3126
- }>>>;
3127
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3128
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3129
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3130
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3131
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3132
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3133
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3134
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
3135
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3136
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
3137
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
3138
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3139
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3140
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
3141
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3142
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3143
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3144
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3145
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3146
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3147
- }, "strict", z.ZodTypeAny, {
3148
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3149
- baseRef?: string | null | undefined;
3150
- branchTemplate?: string | null | undefined;
3151
- worktreeParentDir?: string | null | undefined;
3152
- provisionCommand?: string | null | undefined;
3153
- runtimeProvisionCommand?: string | null | undefined;
3154
- teardownCommand?: string | null | undefined;
3155
- }, {
3156
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3157
- baseRef?: string | null | undefined;
3158
- branchTemplate?: string | null | undefined;
3159
- worktreeParentDir?: string | null | undefined;
3160
- provisionCommand?: string | null | undefined;
3161
- runtimeProvisionCommand?: string | null | undefined;
3162
- teardownCommand?: string | null | undefined;
3163
- }>>>;
3164
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3165
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3166
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3167
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3168
- }, "strict", z.ZodTypeAny, {
3169
- allowFqdns?: string[] | undefined;
3170
- allowCidrs?: string[] | undefined;
3171
- }, {
3172
- allowFqdns?: string[] | undefined;
3173
- allowCidrs?: string[] | undefined;
3174
- }>>>;
3175
- }, "strict", z.ZodTypeAny, {
3176
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3177
- environmentId?: string | null | undefined;
3178
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3179
- workspaceStrategy?: {
3180
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3181
- baseRef?: string | null | undefined;
3182
- branchTemplate?: string | null | undefined;
3183
- worktreeParentDir?: string | null | undefined;
3184
- provisionCommand?: string | null | undefined;
3185
- runtimeProvisionCommand?: string | null | undefined;
3186
- teardownCommand?: string | null | undefined;
3187
- } | null | undefined;
3188
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3189
- networkEgress?: {
3190
- allowFqdns?: string[] | undefined;
3191
- allowCidrs?: string[] | undefined;
3192
- } | null | undefined;
3193
- }, {
3194
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3195
- environmentId?: string | null | undefined;
3196
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3197
- workspaceStrategy?: {
3198
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3199
- baseRef?: string | null | undefined;
3200
- branchTemplate?: string | null | undefined;
3201
- worktreeParentDir?: string | null | undefined;
3202
- provisionCommand?: string | null | undefined;
3203
- runtimeProvisionCommand?: string | null | undefined;
3204
- teardownCommand?: string | null | undefined;
3205
- } | null | undefined;
3206
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3207
- networkEgress?: {
3208
- allowFqdns?: string[] | undefined;
3209
- allowCidrs?: string[] | undefined;
3210
- } | null | undefined;
3211
- }>>>;
3212
- }, z.ZodTypeAny, "passthrough">>>;
3213
- breakdown: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3214
- targetPipelineId: z.ZodString;
3215
- targetStageKey: z.ZodString;
3216
- pieceNoun: z.ZodDefault<z.ZodString>;
3217
- carryOverPolicy: z.ZodOptional<z.ZodObject<{
3218
- version: z.ZodDefault<z.ZodLiteral<1>>;
3219
- mode: z.ZodDefault<z.ZodEnum<["all_except", "only"]>>;
3220
- includeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3221
- excludeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3222
- }, "strip", z.ZodTypeAny, {
3223
- mode: "only" | "all_except";
3224
- version: 1;
3225
- includeFields: string[];
3226
- excludeFields: string[];
3227
- }, {
3228
- mode?: "only" | "all_except" | undefined;
3229
- version?: 1 | undefined;
3230
- includeFields?: string[] | undefined;
3231
- excludeFields?: string[] | undefined;
3232
- }>>;
3233
- inheritFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3234
- advanceTo: z.ZodOptional<z.ZodString>;
3235
- waitForPieces: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3236
- whenFinishedMoveTo: z.ZodOptional<z.ZodString>;
3237
- }, "strip", z.ZodTypeAny, {
3238
- targetPipelineId: string;
3239
- targetStageKey: string;
3240
- pieceNoun: string;
3241
- inheritFields: string[];
3242
- waitForPieces: boolean;
3243
- whenFinishedMoveTo?: string | undefined;
3244
- carryOverPolicy?: {
3245
- mode: "only" | "all_except";
3246
- version: 1;
3247
- includeFields: string[];
3248
- excludeFields: string[];
3249
- } | undefined;
3250
- advanceTo?: string | undefined;
3251
- }, {
3252
- targetPipelineId: string;
3253
- targetStageKey: string;
3254
- pieceNoun?: string | undefined;
3255
- inheritFields?: string[] | undefined;
3256
- waitForPieces?: boolean | undefined;
3257
- whenFinishedMoveTo?: string | undefined;
3258
- carryOverPolicy?: {
3259
- mode?: "only" | "all_except" | undefined;
3260
- version?: 1 | undefined;
3261
- includeFields?: string[] | undefined;
3262
- excludeFields?: string[] | undefined;
3263
- } | undefined;
3264
- advanceTo?: string | undefined;
3265
- }>, {
3266
- targetPipelineId: string;
3267
- targetStageKey: string;
3268
- pieceNoun: string;
3269
- inheritFields: string[];
3270
- waitForPieces: boolean;
3271
- whenFinishedMoveTo?: string | undefined;
3272
- carryOverPolicy?: {
3273
- mode: "only" | "all_except";
3274
- version: 1;
3275
- includeFields: string[];
3276
- excludeFields: string[];
3277
- } | undefined;
3278
- advanceTo?: string | undefined;
3279
- }, {
3280
- targetPipelineId: string;
3281
- targetStageKey: string;
3282
- pieceNoun?: string | undefined;
3283
- inheritFields?: string[] | undefined;
3284
- waitForPieces?: boolean | undefined;
3285
- whenFinishedMoveTo?: string | undefined;
3286
- carryOverPolicy?: {
3287
- mode?: "only" | "all_except" | undefined;
3288
- version?: 1 | undefined;
3289
- includeFields?: string[] | undefined;
3290
- excludeFields?: string[] | undefined;
3291
- } | undefined;
3292
- advanceTo?: string | undefined;
3293
- }>>;
3294
- approveToStageKey: z.ZodOptional<z.ZodString>;
3295
- rejectToStageKey: z.ZodOptional<z.ZodString>;
3296
- requestChangesToStageKey: z.ZodOptional<z.ZodString>;
3297
- requireRejectReason: z.ZodOptional<z.ZodBoolean>;
3298
- requireRequestChangesReason: z.ZodOptional<z.ZodBoolean>;
3299
- requireChildrenTerminal: z.ZodOptional<z.ZodBoolean>;
3300
- requireNoUnresolvedDrift: z.ZodOptional<z.ZodBoolean>;
3301
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3302
- variables: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
3303
- key: z.ZodString;
3304
- label: z.ZodString;
3305
- type: z.ZodDefault<z.ZodEnum<["select", "text", "multiline"]>>;
3306
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
3307
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3308
- showInAddForm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3309
- }, "strip", z.ZodTypeAny, {
3310
- key: string;
3311
- required: boolean;
3312
- options: string[];
3313
- type: "text" | "select" | "multiline";
3314
- label: string;
3315
- showInAddForm: boolean;
3316
- }, {
3317
- key: string;
3318
- label: string;
3319
- required?: boolean | undefined;
3320
- options?: string[] | undefined;
3321
- type?: "text" | "select" | "multiline" | undefined;
3322
- showInAddForm?: boolean | undefined;
3323
- }>, {
3324
- key: string;
3325
- required: boolean;
3326
- options: string[];
3327
- type: "text" | "select" | "multiline";
3328
- label: string;
3329
- showInAddForm: boolean;
3330
- }, {
3331
- key: string;
3332
- label: string;
3333
- required?: boolean | undefined;
3334
- options?: string[] | undefined;
3335
- type?: "text" | "select" | "multiline" | undefined;
3336
- showInAddForm?: boolean | undefined;
3337
- }>, "many">>;
3338
- disabled: z.ZodOptional<z.ZodBoolean>;
3339
- disabledReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3340
- requireApproval: z.ZodOptional<z.ZodBoolean>;
3341
- approver: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3342
- kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["any_human", "user", "agent"]>>>;
3343
- id: z.ZodOptional<z.ZodString>;
3344
- }, "strip", z.ZodTypeAny, {
3345
- kind: "user" | "agent" | "any_human";
3346
- id?: string | undefined;
3347
- }, {
3348
- id?: string | undefined;
3349
- kind?: "user" | "agent" | "any_human" | undefined;
3350
- }>, {
3351
- kind: "user" | "agent" | "any_human";
3352
- id?: string | undefined;
3353
- }, {
3354
- id?: string | undefined;
3355
- kind?: "user" | "agent" | "any_human" | undefined;
3356
- }>>;
3357
- /** Legacy input only; the server migrates it to requireApproval/approver. */
3358
- reviewerKind: z.ZodOptional<z.ZodEnum<["human", "any"]>>;
3359
- whatHappensHere: z.ZodOptional<z.ZodString>;
3360
- onEnter: z.ZodOptional<z.ZodObject<{
3361
- type: z.ZodLiteral<"run_routine">;
3362
- routineId: z.ZodString;
3363
- id: z.ZodOptional<z.ZodString>;
3364
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3365
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3366
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3367
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
3368
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3369
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
3370
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
3371
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3372
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3373
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
3374
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3375
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3376
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3377
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3378
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3379
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3380
- }, "strict", z.ZodTypeAny, {
3381
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3382
- baseRef?: string | null | undefined;
3383
- branchTemplate?: string | null | undefined;
3384
- worktreeParentDir?: string | null | undefined;
3385
- provisionCommand?: string | null | undefined;
3386
- runtimeProvisionCommand?: string | null | undefined;
3387
- teardownCommand?: string | null | undefined;
3388
- }, {
3389
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3390
- baseRef?: string | null | undefined;
3391
- branchTemplate?: string | null | undefined;
3392
- worktreeParentDir?: string | null | undefined;
3393
- provisionCommand?: string | null | undefined;
3394
- runtimeProvisionCommand?: string | null | undefined;
3395
- teardownCommand?: string | null | undefined;
3396
- }>>>;
3397
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3398
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3399
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3400
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3401
- }, "strict", z.ZodTypeAny, {
3402
- allowFqdns?: string[] | undefined;
3403
- allowCidrs?: string[] | undefined;
3404
- }, {
3405
- allowFqdns?: string[] | undefined;
3406
- allowCidrs?: string[] | undefined;
3407
- }>>>;
3408
- }, "strict", z.ZodTypeAny, {
3409
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3410
- environmentId?: string | null | undefined;
3411
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3412
- workspaceStrategy?: {
3413
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3414
- baseRef?: string | null | undefined;
3415
- branchTemplate?: string | null | undefined;
3416
- worktreeParentDir?: string | null | undefined;
3417
- provisionCommand?: string | null | undefined;
3418
- runtimeProvisionCommand?: string | null | undefined;
3419
- teardownCommand?: string | null | undefined;
3420
- } | null | undefined;
3421
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3422
- networkEgress?: {
3423
- allowFqdns?: string[] | undefined;
3424
- allowCidrs?: string[] | undefined;
3425
- } | null | undefined;
3426
- }, {
3427
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3428
- environmentId?: string | null | undefined;
3429
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3430
- workspaceStrategy?: {
3431
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3432
- baseRef?: string | null | undefined;
3433
- branchTemplate?: string | null | undefined;
3434
- worktreeParentDir?: string | null | undefined;
3435
- provisionCommand?: string | null | undefined;
3436
- runtimeProvisionCommand?: string | null | undefined;
3437
- teardownCommand?: string | null | undefined;
3438
- } | null | undefined;
3439
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3440
- networkEgress?: {
3441
- allowFqdns?: string[] | undefined;
3442
- allowCidrs?: string[] | undefined;
3443
- } | null | undefined;
3444
- }>>>;
3445
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3446
- type: z.ZodLiteral<"run_routine">;
3447
- routineId: z.ZodString;
3448
- id: z.ZodOptional<z.ZodString>;
3449
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3450
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3451
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3452
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
3453
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3454
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
3455
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
3456
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3457
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3458
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
3459
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3460
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3461
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3462
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3463
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3464
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3465
- }, "strict", z.ZodTypeAny, {
3466
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3467
- baseRef?: string | null | undefined;
3468
- branchTemplate?: string | null | undefined;
3469
- worktreeParentDir?: string | null | undefined;
3470
- provisionCommand?: string | null | undefined;
3471
- runtimeProvisionCommand?: string | null | undefined;
3472
- teardownCommand?: string | null | undefined;
3473
- }, {
3474
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3475
- baseRef?: string | null | undefined;
3476
- branchTemplate?: string | null | undefined;
3477
- worktreeParentDir?: string | null | undefined;
3478
- provisionCommand?: string | null | undefined;
3479
- runtimeProvisionCommand?: string | null | undefined;
3480
- teardownCommand?: string | null | undefined;
3481
- }>>>;
3482
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3483
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3484
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3485
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3486
- }, "strict", z.ZodTypeAny, {
3487
- allowFqdns?: string[] | undefined;
3488
- allowCidrs?: string[] | undefined;
3489
- }, {
3490
- allowFqdns?: string[] | undefined;
3491
- allowCidrs?: string[] | undefined;
3492
- }>>>;
3493
- }, "strict", z.ZodTypeAny, {
3494
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3495
- environmentId?: string | null | undefined;
3496
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3497
- workspaceStrategy?: {
3498
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3499
- baseRef?: string | null | undefined;
3500
- branchTemplate?: string | null | undefined;
3501
- worktreeParentDir?: string | null | undefined;
3502
- provisionCommand?: string | null | undefined;
3503
- runtimeProvisionCommand?: string | null | undefined;
3504
- teardownCommand?: string | null | undefined;
3505
- } | null | undefined;
3506
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3507
- networkEgress?: {
3508
- allowFqdns?: string[] | undefined;
3509
- allowCidrs?: string[] | undefined;
3510
- } | null | undefined;
3511
- }, {
3512
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3513
- environmentId?: string | null | undefined;
3514
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3515
- workspaceStrategy?: {
3516
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3517
- baseRef?: string | null | undefined;
3518
- branchTemplate?: string | null | undefined;
3519
- worktreeParentDir?: string | null | undefined;
3520
- provisionCommand?: string | null | undefined;
3521
- runtimeProvisionCommand?: string | null | undefined;
3522
- teardownCommand?: string | null | undefined;
3523
- } | null | undefined;
3524
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3525
- networkEgress?: {
3526
- allowFqdns?: string[] | undefined;
3527
- allowCidrs?: string[] | undefined;
3528
- } | null | undefined;
3529
- }>>>;
3530
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3531
- type: z.ZodLiteral<"run_routine">;
3532
- routineId: z.ZodString;
3533
- id: z.ZodOptional<z.ZodString>;
3534
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3535
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3536
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3537
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
3538
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3539
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
3540
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
3541
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3542
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3543
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
3544
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3545
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3546
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3547
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3548
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3549
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3550
- }, "strict", z.ZodTypeAny, {
3551
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3552
- baseRef?: string | null | undefined;
3553
- branchTemplate?: string | null | undefined;
3554
- worktreeParentDir?: string | null | undefined;
3555
- provisionCommand?: string | null | undefined;
3556
- runtimeProvisionCommand?: string | null | undefined;
3557
- teardownCommand?: string | null | undefined;
3558
- }, {
3559
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3560
- baseRef?: string | null | undefined;
3561
- branchTemplate?: string | null | undefined;
3562
- worktreeParentDir?: string | null | undefined;
3563
- provisionCommand?: string | null | undefined;
3564
- runtimeProvisionCommand?: string | null | undefined;
3565
- teardownCommand?: string | null | undefined;
3566
- }>>>;
3567
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3568
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3569
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3570
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3571
- }, "strict", z.ZodTypeAny, {
3572
- allowFqdns?: string[] | undefined;
3573
- allowCidrs?: string[] | undefined;
3574
- }, {
3575
- allowFqdns?: string[] | undefined;
3576
- allowCidrs?: string[] | undefined;
3577
- }>>>;
3578
- }, "strict", z.ZodTypeAny, {
3579
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3580
- environmentId?: string | null | undefined;
3581
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3582
- workspaceStrategy?: {
3583
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3584
- baseRef?: string | null | undefined;
3585
- branchTemplate?: string | null | undefined;
3586
- worktreeParentDir?: string | null | undefined;
3587
- provisionCommand?: string | null | undefined;
3588
- runtimeProvisionCommand?: string | null | undefined;
3589
- teardownCommand?: string | null | undefined;
3590
- } | null | undefined;
3591
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3592
- networkEgress?: {
3593
- allowFqdns?: string[] | undefined;
3594
- allowCidrs?: string[] | undefined;
3595
- } | null | undefined;
3596
- }, {
3597
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3598
- environmentId?: string | null | undefined;
3599
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3600
- workspaceStrategy?: {
3601
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3602
- baseRef?: string | null | undefined;
3603
- branchTemplate?: string | null | undefined;
3604
- worktreeParentDir?: string | null | undefined;
3605
- provisionCommand?: string | null | undefined;
3606
- runtimeProvisionCommand?: string | null | undefined;
3607
- teardownCommand?: string | null | undefined;
3608
- } | null | undefined;
3609
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3610
- networkEgress?: {
3611
- allowFqdns?: string[] | undefined;
3612
- allowCidrs?: string[] | undefined;
3613
- } | null | undefined;
3614
- }>>>;
3615
- }, z.ZodTypeAny, "passthrough">>>;
3616
- automation: z.ZodOptional<z.ZodObject<{
3617
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3618
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3619
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3620
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3621
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3622
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3623
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
3624
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3625
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
3626
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
3627
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3628
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3629
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
3630
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3631
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3632
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3633
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3634
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3635
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3636
- }, "strict", z.ZodTypeAny, {
3637
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3638
- baseRef?: string | null | undefined;
3639
- branchTemplate?: string | null | undefined;
3640
- worktreeParentDir?: string | null | undefined;
3641
- provisionCommand?: string | null | undefined;
3642
- runtimeProvisionCommand?: string | null | undefined;
3643
- teardownCommand?: string | null | undefined;
3644
- }, {
3645
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3646
- baseRef?: string | null | undefined;
3647
- branchTemplate?: string | null | undefined;
3648
- worktreeParentDir?: string | null | undefined;
3649
- provisionCommand?: string | null | undefined;
3650
- runtimeProvisionCommand?: string | null | undefined;
3651
- teardownCommand?: string | null | undefined;
3652
- }>>>;
3653
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3654
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3655
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3656
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3657
- }, "strict", z.ZodTypeAny, {
3658
- allowFqdns?: string[] | undefined;
3659
- allowCidrs?: string[] | undefined;
3660
- }, {
3661
- allowFqdns?: string[] | undefined;
3662
- allowCidrs?: string[] | undefined;
3663
- }>>>;
3664
- }, "strict", z.ZodTypeAny, {
3665
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3666
- environmentId?: string | null | undefined;
3667
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3668
- workspaceStrategy?: {
3669
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3670
- baseRef?: string | null | undefined;
3671
- branchTemplate?: string | null | undefined;
3672
- worktreeParentDir?: string | null | undefined;
3673
- provisionCommand?: string | null | undefined;
3674
- runtimeProvisionCommand?: string | null | undefined;
3675
- teardownCommand?: string | null | undefined;
3676
- } | null | undefined;
3677
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3678
- networkEgress?: {
3679
- allowFqdns?: string[] | undefined;
3680
- allowCidrs?: string[] | undefined;
3681
- } | null | undefined;
3682
- }, {
3683
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3684
- environmentId?: string | null | undefined;
3685
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3686
- workspaceStrategy?: {
3687
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3688
- baseRef?: string | null | undefined;
3689
- branchTemplate?: string | null | undefined;
3690
- worktreeParentDir?: string | null | undefined;
3691
- provisionCommand?: string | null | undefined;
3692
- runtimeProvisionCommand?: string | null | undefined;
3693
- teardownCommand?: string | null | undefined;
3694
- } | null | undefined;
3695
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3696
- networkEgress?: {
3697
- allowFqdns?: string[] | undefined;
3698
- allowCidrs?: string[] | undefined;
3699
- } | null | undefined;
3700
- }>>>;
3701
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3702
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3703
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3704
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3705
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3706
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3707
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3708
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
3709
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3710
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
3711
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
3712
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3713
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3714
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
3715
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3716
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3717
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3718
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3719
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3720
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3721
- }, "strict", z.ZodTypeAny, {
3722
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3723
- baseRef?: string | null | undefined;
3724
- branchTemplate?: string | null | undefined;
3725
- worktreeParentDir?: string | null | undefined;
3726
- provisionCommand?: string | null | undefined;
3727
- runtimeProvisionCommand?: string | null | undefined;
3728
- teardownCommand?: string | null | undefined;
3729
- }, {
3730
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3731
- baseRef?: string | null | undefined;
3732
- branchTemplate?: string | null | undefined;
3733
- worktreeParentDir?: string | null | undefined;
3734
- provisionCommand?: string | null | undefined;
3735
- runtimeProvisionCommand?: string | null | undefined;
3736
- teardownCommand?: string | null | undefined;
3737
- }>>>;
3738
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3739
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3740
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3741
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3742
- }, "strict", z.ZodTypeAny, {
3743
- allowFqdns?: string[] | undefined;
3744
- allowCidrs?: string[] | undefined;
3745
- }, {
3746
- allowFqdns?: string[] | undefined;
3747
- allowCidrs?: string[] | undefined;
3748
- }>>>;
3749
- }, "strict", z.ZodTypeAny, {
3750
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3751
- environmentId?: string | null | undefined;
3752
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3753
- workspaceStrategy?: {
3754
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3755
- baseRef?: string | null | undefined;
3756
- branchTemplate?: string | null | undefined;
3757
- worktreeParentDir?: string | null | undefined;
3758
- provisionCommand?: string | null | undefined;
3759
- runtimeProvisionCommand?: string | null | undefined;
3760
- teardownCommand?: string | null | undefined;
3761
- } | null | undefined;
3762
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3763
- networkEgress?: {
3764
- allowFqdns?: string[] | undefined;
3765
- allowCidrs?: string[] | undefined;
3766
- } | null | undefined;
3767
- }, {
3768
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3769
- environmentId?: string | null | undefined;
3770
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3771
- workspaceStrategy?: {
3772
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3773
- baseRef?: string | null | undefined;
3774
- branchTemplate?: string | null | undefined;
3775
- worktreeParentDir?: string | null | undefined;
3776
- provisionCommand?: string | null | undefined;
3777
- runtimeProvisionCommand?: string | null | undefined;
3778
- teardownCommand?: string | null | undefined;
3779
- } | null | undefined;
3780
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3781
- networkEgress?: {
3782
- allowFqdns?: string[] | undefined;
3783
- allowCidrs?: string[] | undefined;
3784
- } | null | undefined;
3785
- }>>>;
3786
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3787
- routineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3788
- assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3789
- instructionsBody: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3790
- projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3791
- projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3792
- executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3793
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
3794
- executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3795
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
3796
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
3797
- environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3798
- workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3799
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
3800
- baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3801
- branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3802
- worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3803
- provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3804
- runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3805
- teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3806
- }, "strict", z.ZodTypeAny, {
3807
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3808
- baseRef?: string | null | undefined;
3809
- branchTemplate?: string | null | undefined;
3810
- worktreeParentDir?: string | null | undefined;
3811
- provisionCommand?: string | null | undefined;
3812
- runtimeProvisionCommand?: string | null | undefined;
3813
- teardownCommand?: string | null | undefined;
3814
- }, {
3815
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3816
- baseRef?: string | null | undefined;
3817
- branchTemplate?: string | null | undefined;
3818
- worktreeParentDir?: string | null | undefined;
3819
- provisionCommand?: string | null | undefined;
3820
- runtimeProvisionCommand?: string | null | undefined;
3821
- teardownCommand?: string | null | undefined;
3822
- }>>>;
3823
- workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3824
- networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3825
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3826
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
3827
- }, "strict", z.ZodTypeAny, {
3828
- allowFqdns?: string[] | undefined;
3829
- allowCidrs?: string[] | undefined;
3830
- }, {
3831
- allowFqdns?: string[] | undefined;
3832
- allowCidrs?: string[] | undefined;
3833
- }>>>;
3834
- }, "strict", z.ZodTypeAny, {
3835
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3836
- environmentId?: string | null | undefined;
3837
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3838
- workspaceStrategy?: {
3839
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3840
- baseRef?: string | null | undefined;
3841
- branchTemplate?: string | null | undefined;
3842
- worktreeParentDir?: string | null | undefined;
3843
- provisionCommand?: string | null | undefined;
3844
- runtimeProvisionCommand?: string | null | undefined;
3845
- teardownCommand?: string | null | undefined;
3846
- } | null | undefined;
3847
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3848
- networkEgress?: {
3849
- allowFqdns?: string[] | undefined;
3850
- allowCidrs?: string[] | undefined;
3851
- } | null | undefined;
3852
- }, {
3853
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
3854
- environmentId?: string | null | undefined;
3855
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
3856
- workspaceStrategy?: {
3857
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
3858
- baseRef?: string | null | undefined;
3859
- branchTemplate?: string | null | undefined;
3860
- worktreeParentDir?: string | null | undefined;
3861
- provisionCommand?: string | null | undefined;
3862
- runtimeProvisionCommand?: string | null | undefined;
3863
- teardownCommand?: string | null | undefined;
3864
- } | null | undefined;
3865
- workspaceRuntime?: Record<string, unknown> | null | undefined;
3866
- networkEgress?: {
3867
- allowFqdns?: string[] | undefined;
3868
- allowCidrs?: string[] | undefined;
3869
- } | null | undefined;
3870
- }>>>;
3871
- }, z.ZodTypeAny, "passthrough">>>;
3872
- breakdown: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3873
- targetPipelineId: z.ZodString;
3874
- targetStageKey: z.ZodString;
3875
- pieceNoun: z.ZodDefault<z.ZodString>;
3876
- carryOverPolicy: z.ZodOptional<z.ZodObject<{
3877
- version: z.ZodDefault<z.ZodLiteral<1>>;
3878
- mode: z.ZodDefault<z.ZodEnum<["all_except", "only"]>>;
3879
- includeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3880
- excludeFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3881
- }, "strip", z.ZodTypeAny, {
3882
- mode: "only" | "all_except";
3883
- version: 1;
3884
- includeFields: string[];
3885
- excludeFields: string[];
3886
- }, {
3887
- mode?: "only" | "all_except" | undefined;
3888
- version?: 1 | undefined;
3889
- includeFields?: string[] | undefined;
3890
- excludeFields?: string[] | undefined;
3891
- }>>;
3892
- inheritFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3893
- advanceTo: z.ZodOptional<z.ZodString>;
3894
- waitForPieces: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3895
- whenFinishedMoveTo: z.ZodOptional<z.ZodString>;
3896
- }, "strip", z.ZodTypeAny, {
3897
- targetPipelineId: string;
3898
- targetStageKey: string;
3899
- pieceNoun: string;
3900
- inheritFields: string[];
3901
- waitForPieces: boolean;
3902
- whenFinishedMoveTo?: string | undefined;
3903
- carryOverPolicy?: {
3904
- mode: "only" | "all_except";
3905
- version: 1;
3906
- includeFields: string[];
3907
- excludeFields: string[];
3908
- } | undefined;
3909
- advanceTo?: string | undefined;
3910
- }, {
3911
- targetPipelineId: string;
3912
- targetStageKey: string;
3913
- pieceNoun?: string | undefined;
3914
- inheritFields?: string[] | undefined;
3915
- waitForPieces?: boolean | undefined;
3916
- whenFinishedMoveTo?: string | undefined;
3917
- carryOverPolicy?: {
3918
- mode?: "only" | "all_except" | undefined;
3919
- version?: 1 | undefined;
3920
- includeFields?: string[] | undefined;
3921
- excludeFields?: string[] | undefined;
3922
- } | undefined;
3923
- advanceTo?: string | undefined;
3924
- }>, {
3925
- targetPipelineId: string;
3926
- targetStageKey: string;
3927
- pieceNoun: string;
3928
- inheritFields: string[];
3929
- waitForPieces: boolean;
3930
- whenFinishedMoveTo?: string | undefined;
3931
- carryOverPolicy?: {
3932
- mode: "only" | "all_except";
3933
- version: 1;
3934
- includeFields: string[];
3935
- excludeFields: string[];
3936
- } | undefined;
3937
- advanceTo?: string | undefined;
3938
- }, {
3939
- targetPipelineId: string;
3940
- targetStageKey: string;
3941
- pieceNoun?: string | undefined;
3942
- inheritFields?: string[] | undefined;
3943
- waitForPieces?: boolean | undefined;
3944
- whenFinishedMoveTo?: string | undefined;
3945
- carryOverPolicy?: {
3946
- mode?: "only" | "all_except" | undefined;
3947
- version?: 1 | undefined;
3948
- includeFields?: string[] | undefined;
3949
- excludeFields?: string[] | undefined;
3950
- } | undefined;
3951
- advanceTo?: string | undefined;
3952
- }>>;
3953
- approveToStageKey: z.ZodOptional<z.ZodString>;
3954
- rejectToStageKey: z.ZodOptional<z.ZodString>;
3955
- requestChangesToStageKey: z.ZodOptional<z.ZodString>;
3956
- requireRejectReason: z.ZodOptional<z.ZodBoolean>;
3957
- requireRequestChangesReason: z.ZodOptional<z.ZodBoolean>;
3958
- requireChildrenTerminal: z.ZodOptional<z.ZodBoolean>;
3959
- requireNoUnresolvedDrift: z.ZodOptional<z.ZodBoolean>;
3960
- }, z.ZodTypeAny, "passthrough">>;
3961
- export declare const pipelineAutomationRetryScopeSchema: z.ZodEnum<["current_stage", "previous_stage"]>;
324
+ }, z.core.$loose>;
325
+ export declare const pipelineAutomationRetryScopeSchema: z.ZodEnum<{
326
+ current_stage: "current_stage";
327
+ previous_stage: "previous_stage";
328
+ }>;
3962
329
  export declare const pipelineAutomationRetryCleanupOptionsSchema: z.ZodObject<{
3963
330
  retireDirectChildren: z.ZodDefault<z.ZodBoolean>;
3964
331
  retireDescendants: z.ZodDefault<z.ZodBoolean>;
3965
332
  cancelLinkedAutomationIssues: z.ZodDefault<z.ZodBoolean>;
3966
- }, "strip", z.ZodTypeAny, {
3967
- retireDirectChildren: boolean;
3968
- retireDescendants: boolean;
3969
- cancelLinkedAutomationIssues: boolean;
3970
- }, {
3971
- retireDirectChildren?: boolean | undefined;
3972
- retireDescendants?: boolean | undefined;
3973
- cancelLinkedAutomationIssues?: boolean | undefined;
3974
- }>;
333
+ }, z.core.$strip>;
3975
334
  export declare const pipelineAutomationRetryRequestSchema: z.ZodObject<{
3976
- scope: z.ZodEnum<["current_stage", "previous_stage"]>;
335
+ scope: z.ZodEnum<{
336
+ current_stage: "current_stage";
337
+ previous_stage: "previous_stage";
338
+ }>;
3977
339
  targetStageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3978
340
  expectedVersion: z.ZodNumber;
3979
341
  cleanup: z.ZodDefault<z.ZodObject<{
3980
342
  retireDirectChildren: z.ZodDefault<z.ZodBoolean>;
3981
343
  retireDescendants: z.ZodDefault<z.ZodBoolean>;
3982
344
  cancelLinkedAutomationIssues: z.ZodDefault<z.ZodBoolean>;
3983
- }, "strip", z.ZodTypeAny, {
3984
- retireDirectChildren: boolean;
3985
- retireDescendants: boolean;
3986
- cancelLinkedAutomationIssues: boolean;
3987
- }, {
3988
- retireDirectChildren?: boolean | undefined;
3989
- retireDescendants?: boolean | undefined;
3990
- cancelLinkedAutomationIssues?: boolean | undefined;
3991
- }>>;
3992
- }, "strip", z.ZodTypeAny, {
3993
- scope: "current_stage" | "previous_stage";
3994
- expectedVersion: number;
3995
- cleanup: {
3996
- retireDirectChildren: boolean;
3997
- retireDescendants: boolean;
3998
- cancelLinkedAutomationIssues: boolean;
3999
- };
4000
- targetStageId?: string | null | undefined;
4001
- }, {
4002
- scope: "current_stage" | "previous_stage";
4003
- expectedVersion: number;
4004
- targetStageId?: string | null | undefined;
4005
- cleanup?: {
4006
- retireDirectChildren?: boolean | undefined;
4007
- retireDescendants?: boolean | undefined;
4008
- cancelLinkedAutomationIssues?: boolean | undefined;
4009
- } | undefined;
4010
- }>;
345
+ }, z.core.$strip>>;
346
+ }, z.core.$strip>;
4011
347
  export type PipelineStageKind = z.infer<typeof pipelineStageKindSchema>;
4012
348
  export type PipelineStageApprover = z.infer<typeof pipelineStageApproverSchema>;
4013
349
  export type PipelineStageOnEnter = z.infer<typeof pipelineStageOnEnterSchema>;