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