@paperclipai/shared 2026.824.1 → 2026.825.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/dist/adapter-auth-check-code.d.ts +13 -0
  2. package/dist/adapter-auth-check-code.d.ts.map +1 -0
  3. package/dist/adapter-auth-check-code.js +13 -0
  4. package/dist/adapter-auth-check-code.js.map +1 -0
  5. package/dist/adapter-auth-check-code.test.d.ts +2 -0
  6. package/dist/adapter-auth-check-code.test.d.ts.map +1 -0
  7. package/dist/adapter-auth-check-code.test.js +8 -0
  8. package/dist/adapter-auth-check-code.test.js.map +1 -0
  9. package/dist/company-import-transfer.d.ts +3 -37
  10. package/dist/company-import-transfer.d.ts.map +1 -1
  11. package/dist/config-schema.d.ts +130 -1570
  12. package/dist/config-schema.d.ts.map +1 -1
  13. package/dist/config-schema.js +3 -7
  14. package/dist/config-schema.js.map +1 -1
  15. package/dist/constants.d.ts +3 -2
  16. package/dist/constants.d.ts.map +1 -1
  17. package/dist/constants.js +3 -0
  18. package/dist/constants.js.map +1 -1
  19. package/dist/environment-support.d.ts +1 -1
  20. package/dist/environment-support.d.ts.map +1 -1
  21. package/dist/environment-support.js +3 -2
  22. package/dist/environment-support.js.map +1 -1
  23. package/dist/environment-support.test.js +19 -0
  24. package/dist/environment-support.test.js.map +1 -1
  25. package/dist/feature-catalog.d.ts +7 -17
  26. package/dist/feature-catalog.d.ts.map +1 -1
  27. package/dist/feature-catalog.js +9 -2
  28. package/dist/feature-catalog.js.map +1 -1
  29. package/dist/frontmatter.d.ts +3 -13
  30. package/dist/frontmatter.d.ts.map +1 -1
  31. package/dist/frontmatter.js +2 -2
  32. package/dist/frontmatter.js.map +1 -1
  33. package/dist/index.d.ts +7 -3
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +6 -2
  36. package/dist/index.js.map +1 -1
  37. package/dist/markdown-work-products.d.ts +26 -0
  38. package/dist/markdown-work-products.d.ts.map +1 -0
  39. package/dist/markdown-work-products.js +70 -0
  40. package/dist/markdown-work-products.js.map +1 -0
  41. package/dist/markdown-work-products.test.d.ts +2 -0
  42. package/dist/markdown-work-products.test.d.ts.map +1 -0
  43. package/dist/markdown-work-products.test.js +122 -0
  44. package/dist/markdown-work-products.test.js.map +1 -0
  45. package/dist/node-version.d.ts +6 -0
  46. package/dist/node-version.d.ts.map +1 -0
  47. package/dist/node-version.js +46 -0
  48. package/dist/node-version.js.map +1 -0
  49. package/dist/runtime-exposure/loopback-bind.d.ts +2 -2
  50. package/dist/runtime-exposure/loopback-bind.d.ts.map +1 -1
  51. package/dist/runtime-exposure/loopback-bind.js +3 -3
  52. package/dist/runtime-exposure/loopback-bind.js.map +1 -1
  53. package/dist/runtime-exposure/loopback-bind.test.js +11 -10
  54. package/dist/runtime-exposure/loopback-bind.test.js.map +1 -1
  55. package/dist/settings-visibility.d.ts +62 -0
  56. package/dist/settings-visibility.d.ts.map +1 -0
  57. package/dist/settings-visibility.js +102 -0
  58. package/dist/settings-visibility.js.map +1 -0
  59. package/dist/settings-visibility.test.d.ts +2 -0
  60. package/dist/settings-visibility.test.d.ts.map +1 -0
  61. package/dist/settings-visibility.test.js +51 -0
  62. package/dist/settings-visibility.test.js.map +1 -0
  63. package/dist/telemetry/generated/paperclip-telemetry.d.ts +4 -2
  64. package/dist/telemetry/generated/paperclip-telemetry.d.ts.map +1 -1
  65. package/dist/telemetry/generated/paperclip-telemetry.js +2 -0
  66. package/dist/telemetry/generated/paperclip-telemetry.js.map +1 -1
  67. package/dist/types/environment.d.ts +20 -0
  68. package/dist/types/environment.d.ts.map +1 -1
  69. package/dist/types/index.d.ts +5 -3
  70. package/dist/types/index.d.ts.map +1 -1
  71. package/dist/types/index.js +1 -0
  72. package/dist/types/index.js.map +1 -1
  73. package/dist/types/instance.d.ts +7 -0
  74. package/dist/types/instance.d.ts.map +1 -1
  75. package/dist/types/instance.js.map +1 -1
  76. package/dist/types/issue.d.ts +19 -0
  77. package/dist/types/issue.d.ts.map +1 -1
  78. package/dist/types/plugin.d.ts +36 -4
  79. package/dist/types/plugin.d.ts.map +1 -1
  80. package/dist/types/workspace-operation.d.ts +1 -1
  81. package/dist/types/workspace-operation.d.ts.map +1 -1
  82. package/dist/types/workspace-readiness.d.ts +62 -0
  83. package/dist/types/workspace-readiness.d.ts.map +1 -0
  84. package/dist/types/workspace-readiness.js +28 -0
  85. package/dist/types/workspace-readiness.js.map +1 -0
  86. package/dist/types/workspace-runtime.d.ts +6 -8
  87. package/dist/types/workspace-runtime.d.ts.map +1 -1
  88. package/dist/validators/access.d.ts +143 -277
  89. package/dist/validators/access.d.ts.map +1 -1
  90. package/dist/validators/access.js +5 -5
  91. package/dist/validators/adapter-auth-session.d.ts +50 -97
  92. package/dist/validators/adapter-auth-session.d.ts.map +1 -1
  93. package/dist/validators/adapter-auth-session.js +3 -3
  94. package/dist/validators/adapter-registry.d.ts +8 -40
  95. package/dist/validators/adapter-registry.d.ts.map +1 -1
  96. package/dist/validators/adapter-registry.js +1 -1
  97. package/dist/validators/adapter-registry.js.map +1 -1
  98. package/dist/validators/adapter-skills.d.ts +71 -170
  99. package/dist/validators/adapter-skills.d.ts.map +1 -1
  100. package/dist/validators/adapter-skills.js +3 -3
  101. package/dist/validators/agent.d.ts +412 -4798
  102. package/dist/validators/agent.d.ts.map +1 -1
  103. package/dist/validators/agent.js +13 -13
  104. package/dist/validators/agent.js.map +1 -1
  105. package/dist/validators/app-definition.d.ts +270 -2315
  106. package/dist/validators/app-definition.d.ts.map +1 -1
  107. package/dist/validators/approval.d.ts +15 -36
  108. package/dist/validators/approval.d.ts.map +1 -1
  109. package/dist/validators/approval.js +2 -2
  110. package/dist/validators/artifact.d.ts +162 -893
  111. package/dist/validators/artifact.d.ts.map +1 -1
  112. package/dist/validators/artifact.js +6 -6
  113. package/dist/validators/asset.d.ts +1 -5
  114. package/dist/validators/asset.d.ts.map +1 -1
  115. package/dist/validators/budget.d.ts +19 -43
  116. package/dist/validators/budget.d.ts.map +1 -1
  117. package/dist/validators/budget.js +1 -1
  118. package/dist/validators/claude-setup-token-session.d.ts +61 -181
  119. package/dist/validators/claude-setup-token-session.d.ts.map +1 -1
  120. package/dist/validators/claude-setup-token-session.js +4 -4
  121. package/dist/validators/company-portability.d.ts +318 -3616
  122. package/dist/validators/company-portability.d.ts.map +1 -1
  123. package/dist/validators/company-portability.js +2 -2
  124. package/dist/validators/company-skill.d.ts +722 -2934
  125. package/dist/validators/company-skill.d.ts.map +1 -1
  126. package/dist/validators/company-skill.js +63 -63
  127. package/dist/validators/company.d.ts +162 -289
  128. package/dist/validators/company.d.ts.map +1 -1
  129. package/dist/validators/company.js +4 -3
  130. package/dist/validators/company.js.map +1 -1
  131. package/dist/validators/cost.d.ts +29 -57
  132. package/dist/validators/cost.d.ts.map +1 -1
  133. package/dist/validators/cost.js +5 -5
  134. package/dist/validators/decision-queue.d.ts +60 -108
  135. package/dist/validators/decision-queue.d.ts.map +1 -1
  136. package/dist/validators/decision.d.ts +230 -1884
  137. package/dist/validators/decision.d.ts.map +1 -1
  138. package/dist/validators/decision.js +9 -9
  139. package/dist/validators/document-annotation.d.ts +37 -203
  140. package/dist/validators/document-annotation.d.ts.map +1 -1
  141. package/dist/validators/document-annotation.js +3 -3
  142. package/dist/validators/environment-custom-images.d.ts +79 -173
  143. package/dist/validators/environment-custom-images.d.ts.map +1 -1
  144. package/dist/validators/environment-custom-images.js +14 -11
  145. package/dist/validators/environment-custom-images.js.map +1 -1
  146. package/dist/validators/environment.d.ts +82 -259
  147. package/dist/validators/environment.d.ts.map +1 -1
  148. package/dist/validators/execution-workspace.d.ts +173 -513
  149. package/dist/validators/execution-workspace.d.ts.map +1 -1
  150. package/dist/validators/execution-workspace.js +13 -13
  151. package/dist/validators/execution-workspace.js.map +1 -1
  152. package/dist/validators/external-object.d.ts +55 -27
  153. package/dist/validators/external-object.d.ts.map +1 -1
  154. package/dist/validators/external-object.js +1 -1
  155. package/dist/validators/external-object.js.map +1 -1
  156. package/dist/validators/feedback.d.ts +28 -19
  157. package/dist/validators/feedback.d.ts.map +1 -1
  158. package/dist/validators/feedback.js +1 -1
  159. package/dist/validators/finance.d.ts +69 -74
  160. package/dist/validators/finance.d.ts.map +1 -1
  161. package/dist/validators/finance.js +6 -6
  162. package/dist/validators/folder.d.ts +44 -205
  163. package/dist/validators/folder.d.ts.map +1 -1
  164. package/dist/validators/folder.js +7 -7
  165. package/dist/validators/goal.d.ts +26 -34
  166. package/dist/validators/goal.d.ts.map +1 -1
  167. package/dist/validators/goal.js +4 -3
  168. package/dist/validators/goal.js.map +1 -1
  169. package/dist/validators/inbox-agent-policy.d.ts +12 -16
  170. package/dist/validators/inbox-agent-policy.d.ts.map +1 -1
  171. package/dist/validators/inbox-agent-policy.js +1 -1
  172. package/dist/validators/index.d.ts +2 -2
  173. package/dist/validators/index.d.ts.map +1 -1
  174. package/dist/validators/index.js +2 -2
  175. package/dist/validators/index.js.map +1 -1
  176. package/dist/validators/instance.d.ts +50 -563
  177. package/dist/validators/instance.d.ts.map +1 -1
  178. package/dist/validators/instance.js +16 -6
  179. package/dist/validators/instance.js.map +1 -1
  180. package/dist/validators/instance.test.js +13 -0
  181. package/dist/validators/instance.test.js.map +1 -1
  182. package/dist/validators/issue-tree-control.d.ts +41 -80
  183. package/dist/validators/issue-tree-control.d.ts.map +1 -1
  184. package/dist/validators/issue.d.ts +1772 -12251
  185. package/dist/validators/issue.d.ts.map +1 -1
  186. package/dist/validators/issue.js +150 -84
  187. package/dist/validators/issue.js.map +1 -1
  188. package/dist/validators/onboarding-seed.d.ts +3 -37
  189. package/dist/validators/onboarding-seed.d.ts.map +1 -1
  190. package/dist/validators/partial.d.ts +4 -0
  191. package/dist/validators/partial.d.ts.map +1 -0
  192. package/dist/validators/partial.js +35 -0
  193. package/dist/validators/partial.js.map +1 -0
  194. package/dist/validators/pipeline.d.ts +218 -3882
  195. package/dist/validators/pipeline.d.ts.map +1 -1
  196. package/dist/validators/pipeline.js +11 -11
  197. package/dist/validators/plugin.d.ts +725 -2597
  198. package/dist/validators/plugin.d.ts.map +1 -1
  199. package/dist/validators/plugin.js +38 -6
  200. package/dist/validators/plugin.js.map +1 -1
  201. package/dist/validators/plugin.test.js +54 -10
  202. package/dist/validators/plugin.test.js.map +1 -1
  203. package/dist/validators/project.d.ts +345 -2406
  204. package/dist/validators/project.d.ts.map +1 -1
  205. package/dist/validators/project.js +8 -7
  206. package/dist/validators/project.js.map +1 -1
  207. package/dist/validators/resource-memberships.d.ts +11 -27
  208. package/dist/validators/resource-memberships.d.ts.map +1 -1
  209. package/dist/validators/routine.d.ts +362 -1297
  210. package/dist/validators/routine.d.ts.map +1 -1
  211. package/dist/validators/routine.js +21 -20
  212. package/dist/validators/routine.js.map +1 -1
  213. package/dist/validators/runtime-exposure.d.ts +31 -80
  214. package/dist/validators/runtime-exposure.d.ts.map +1 -1
  215. package/dist/validators/search.d.ts +25 -93
  216. package/dist/validators/search.d.ts.map +1 -1
  217. package/dist/validators/secret.d.ts +174 -655
  218. package/dist/validators/secret.d.ts.map +1 -1
  219. package/dist/validators/secret.js +14 -14
  220. package/dist/validators/secret.js.map +1 -1
  221. package/dist/validators/sidebar-preferences.d.ts +5 -15
  222. package/dist/validators/sidebar-preferences.d.ts.map +1 -1
  223. package/dist/validators/sidebar-preferences.js +1 -1
  224. package/dist/validators/skill-policy.d.ts +184 -561
  225. package/dist/validators/skill-policy.d.ts.map +1 -1
  226. package/dist/validators/skill-policy.js +4 -4
  227. package/dist/validators/smoke-lab.d.ts +53 -37
  228. package/dist/validators/smoke-lab.d.ts.map +1 -1
  229. package/dist/validators/status-card.d.ts +139 -994
  230. package/dist/validators/status-card.d.ts.map +1 -1
  231. package/dist/validators/status-card.js +21 -21
  232. package/dist/validators/status-card.js.map +1 -1
  233. package/dist/validators/summary-slot.d.ts +28 -50
  234. package/dist/validators/summary-slot.d.ts.map +1 -1
  235. package/dist/validators/summary-slot.js +3 -3
  236. package/dist/validators/teams-catalog.d.ts +209 -472
  237. package/dist/validators/teams-catalog.d.ts.map +1 -1
  238. package/dist/validators/text.d.ts +1 -1
  239. package/dist/validators/text.d.ts.map +1 -1
  240. package/dist/validators/tool-access.d.ts +1088 -4670
  241. package/dist/validators/tool-access.d.ts.map +1 -1
  242. package/dist/validators/tool-access.js +96 -95
  243. package/dist/validators/tool-access.js.map +1 -1
  244. package/dist/validators/trust-policy.d.ts +62 -358
  245. package/dist/validators/trust-policy.d.ts.map +1 -1
  246. package/dist/validators/trust-policy.js +12 -12
  247. package/dist/validators/work-product.d.ts +110 -536
  248. package/dist/validators/work-product.d.ts.map +1 -1
  249. package/dist/validators/work-product.js +7 -6
  250. package/dist/validators/work-product.js.map +1 -1
  251. package/dist/validators/workspace-file-resource.d.ts +163 -618
  252. package/dist/validators/workspace-file-resource.d.ts.map +1 -1
  253. package/dist/validators/workspace-file-resource.js +11 -11
  254. package/dist/workspace-commands.d.ts +4 -2
  255. package/dist/workspace-commands.d.ts.map +1 -1
  256. package/dist/workspace-commands.js +9 -1
  257. package/dist/workspace-commands.js.map +1 -1
  258. package/dist/workspace-commands.test.js +45 -0
  259. package/dist/workspace-commands.test.js.map +1 -1
  260. package/dist/worktree-port-registry.d.ts +5 -0
  261. package/dist/worktree-port-registry.d.ts.map +1 -0
  262. package/dist/worktree-port-registry.js +382 -0
  263. package/dist/worktree-port-registry.js.map +1 -0
  264. package/dist/worktree-port-registry.test.d.ts +2 -0
  265. package/dist/worktree-port-registry.test.d.ts.map +1 -0
  266. package/dist/worktree-port-registry.test.js +118 -0
  267. package/dist/worktree-port-registry.test.js.map +1 -0
  268. package/dist/worktree-seed-source.d.ts +43 -0
  269. package/dist/worktree-seed-source.d.ts.map +1 -0
  270. package/dist/worktree-seed-source.js +180 -0
  271. package/dist/worktree-seed-source.js.map +1 -0
  272. package/dist/worktree-seed-source.test.d.ts +2 -0
  273. package/dist/worktree-seed-source.test.d.ts.map +1 -0
  274. package/dist/worktree-seed-source.test.js +166 -0
  275. package/dist/worktree-seed-source.test.js.map +1 -0
  276. package/package.json +6 -3
@@ -1,22 +1,22 @@
1
1
  import { z } from "zod";
2
- export declare const decisionEffectStalenessSchema: z.ZodEnum<["strict", "lenient"]>;
3
- export declare const decisionOptionStyleSchema: z.ZodEnum<["default", "primary", "destructive"]>;
2
+ export declare const decisionEffectStalenessSchema: z.ZodEnum<{
3
+ strict: "strict";
4
+ lenient: "lenient";
5
+ }>;
6
+ export declare const decisionOptionStyleSchema: z.ZodEnum<{
7
+ default: "default";
8
+ destructive: "destructive";
9
+ primary: "primary";
10
+ }>;
4
11
  export declare const commentOnIssueDecisionEffectSchema: z.ZodObject<{
5
12
  bodyMarkdown: z.ZodString;
6
13
  targetIssueId: z.ZodString;
7
- staleness: z.ZodEnum<["strict", "lenient"]>;
14
+ staleness: z.ZodEnum<{
15
+ strict: "strict";
16
+ lenient: "lenient";
17
+ }>;
8
18
  type: z.ZodLiteral<"comment_on_issue">;
9
- }, "strip", z.ZodTypeAny, {
10
- type: "comment_on_issue";
11
- bodyMarkdown: string;
12
- targetIssueId: string;
13
- staleness: "strict" | "lenient";
14
- }, {
15
- type: "comment_on_issue";
16
- bodyMarkdown: string;
17
- targetIssueId: string;
18
- staleness: "strict" | "lenient";
19
- }>;
19
+ }, z.core.$strip>;
20
20
  export declare const createIssueDecisionEffectSchema: z.ZodObject<{
21
21
  draft: z.ZodObject<{
22
22
  title: z.ZodString;
@@ -26,147 +26,68 @@ export declare const createIssueDecisionEffectSchema: z.ZodObject<{
26
26
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
- }, "strip", z.ZodTypeAny, {
31
- title: string;
32
- description?: string | null | undefined;
33
- projectId?: string | null | undefined;
34
- parentId?: string | null | undefined;
35
- assigneeAgentId?: string | null | undefined;
36
- assigneeUserId?: string | null | undefined;
37
- goalId?: string | null | undefined;
38
- blockedByIssueIds?: string[] | undefined;
39
- }, {
40
- title: string;
41
- description?: string | null | undefined;
42
- projectId?: string | null | undefined;
43
- parentId?: string | null | undefined;
44
- assigneeAgentId?: string | null | undefined;
45
- assigneeUserId?: string | null | undefined;
46
- goalId?: string | null | undefined;
47
- blockedByIssueIds?: string[] | undefined;
48
- }>;
29
+ blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ }, z.core.$strip>;
49
31
  targetIssueId: z.ZodString;
50
- staleness: z.ZodEnum<["strict", "lenient"]>;
32
+ staleness: z.ZodEnum<{
33
+ strict: "strict";
34
+ lenient: "lenient";
35
+ }>;
51
36
  type: z.ZodLiteral<"create_issue">;
52
- }, "strip", z.ZodTypeAny, {
53
- draft: {
54
- title: string;
55
- description?: string | null | undefined;
56
- projectId?: string | null | undefined;
57
- parentId?: string | null | undefined;
58
- assigneeAgentId?: string | null | undefined;
59
- assigneeUserId?: string | null | undefined;
60
- goalId?: string | null | undefined;
61
- blockedByIssueIds?: string[] | undefined;
62
- };
63
- type: "create_issue";
64
- targetIssueId: string;
65
- staleness: "strict" | "lenient";
66
- }, {
67
- draft: {
68
- title: string;
69
- description?: string | null | undefined;
70
- projectId?: string | null | undefined;
71
- parentId?: string | null | undefined;
72
- assigneeAgentId?: string | null | undefined;
73
- assigneeUserId?: string | null | undefined;
74
- goalId?: string | null | undefined;
75
- blockedByIssueIds?: string[] | undefined;
76
- };
77
- type: "create_issue";
78
- targetIssueId: string;
79
- staleness: "strict" | "lenient";
80
- }>;
37
+ }, z.core.$strip>;
81
38
  export declare const updateIssueStatusDecisionEffectSchema: z.ZodObject<{
82
- status: z.ZodEnum<["backlog", "todo", "in_progress", "in_review", "done", "blocked", "cancelled"]>;
39
+ status: z.ZodEnum<{
40
+ backlog: "backlog";
41
+ todo: "todo";
42
+ in_progress: "in_progress";
43
+ in_review: "in_review";
44
+ done: "done";
45
+ blocked: "blocked";
46
+ cancelled: "cancelled";
47
+ }>;
83
48
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
49
  targetIssueId: z.ZodString;
85
- staleness: z.ZodEnum<["strict", "lenient"]>;
50
+ staleness: z.ZodEnum<{
51
+ strict: "strict";
52
+ lenient: "lenient";
53
+ }>;
86
54
  type: z.ZodLiteral<"update_issue_status">;
87
- }, "strip", z.ZodTypeAny, {
88
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
89
- type: "update_issue_status";
90
- targetIssueId: string;
91
- staleness: "strict" | "lenient";
92
- comment?: string | null | undefined;
93
- }, {
94
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
95
- type: "update_issue_status";
96
- targetIssueId: string;
97
- staleness: "strict" | "lenient";
98
- comment?: string | null | undefined;
99
- }>;
55
+ }, z.core.$strip>;
100
56
  export declare const assignIssueDecisionEffectSchema: z.ZodObject<{
101
57
  assigneeAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
58
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
59
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
60
  targetIssueId: z.ZodString;
105
- staleness: z.ZodEnum<["strict", "lenient"]>;
61
+ staleness: z.ZodEnum<{
62
+ strict: "strict";
63
+ lenient: "lenient";
64
+ }>;
106
65
  type: z.ZodLiteral<"assign_issue">;
107
- }, "strip", z.ZodTypeAny, {
108
- type: "assign_issue";
109
- targetIssueId: string;
110
- staleness: "strict" | "lenient";
111
- comment?: string | null | undefined;
112
- assigneeAgentId?: string | null | undefined;
113
- assigneeUserId?: string | null | undefined;
114
- }, {
115
- type: "assign_issue";
116
- targetIssueId: string;
117
- staleness: "strict" | "lenient";
118
- comment?: string | null | undefined;
119
- assigneeAgentId?: string | null | undefined;
120
- assigneeUserId?: string | null | undefined;
121
- }>;
66
+ }, z.core.$strip>;
122
67
  export declare const cancelIssueTreeDecisionEffectSchema: z.ZodObject<{
123
68
  type: z.ZodLiteral<"cancel_issue_tree">;
124
69
  targetIssueId: z.ZodString;
125
70
  staleness: z.ZodLiteral<"strict">;
126
71
  reasonComment: z.ZodString;
127
- }, "strip", z.ZodTypeAny, {
128
- type: "cancel_issue_tree";
129
- targetIssueId: string;
130
- staleness: "strict";
131
- reasonComment: string;
132
- }, {
133
- type: "cancel_issue_tree";
134
- targetIssueId: string;
135
- staleness: "strict";
136
- reasonComment: string;
137
- }>;
72
+ }, z.core.$strip>;
138
73
  export declare const resolveBlockerDecisionEffectSchema: z.ZodObject<{
139
- removeBlockedByIssueIds: z.ZodArray<z.ZodString, "many">;
74
+ removeBlockedByIssueIds: z.ZodArray<z.ZodString>;
140
75
  targetIssueId: z.ZodString;
141
- staleness: z.ZodEnum<["strict", "lenient"]>;
76
+ staleness: z.ZodEnum<{
77
+ strict: "strict";
78
+ lenient: "lenient";
79
+ }>;
142
80
  type: z.ZodLiteral<"resolve_blocker">;
143
- }, "strip", z.ZodTypeAny, {
144
- type: "resolve_blocker";
145
- targetIssueId: string;
146
- staleness: "strict" | "lenient";
147
- removeBlockedByIssueIds: string[];
148
- }, {
149
- type: "resolve_blocker";
150
- targetIssueId: string;
151
- staleness: "strict" | "lenient";
152
- removeBlockedByIssueIds: string[];
153
- }>;
154
- export declare const decisionEffectSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
81
+ }, z.core.$strip>;
82
+ export declare const decisionEffectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
155
83
  bodyMarkdown: z.ZodString;
156
84
  targetIssueId: z.ZodString;
157
- staleness: z.ZodEnum<["strict", "lenient"]>;
85
+ staleness: z.ZodEnum<{
86
+ strict: "strict";
87
+ lenient: "lenient";
88
+ }>;
158
89
  type: z.ZodLiteral<"comment_on_issue">;
159
- }, "strip", z.ZodTypeAny, {
160
- type: "comment_on_issue";
161
- bodyMarkdown: string;
162
- targetIssueId: string;
163
- staleness: "strict" | "lenient";
164
- }, {
165
- type: "comment_on_issue";
166
- bodyMarkdown: string;
167
- targetIssueId: string;
168
- staleness: "strict" | "lenient";
169
- }>, z.ZodObject<{
90
+ }, z.core.$strip>, z.ZodObject<{
170
91
  draft: z.ZodObject<{
171
92
  title: z.ZodString;
172
93
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -175,251 +96,80 @@ export declare const decisionEffectSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
175
96
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
97
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
98
  goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
- blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
179
- }, "strip", z.ZodTypeAny, {
180
- title: string;
181
- description?: string | null | undefined;
182
- projectId?: string | null | undefined;
183
- parentId?: string | null | undefined;
184
- assigneeAgentId?: string | null | undefined;
185
- assigneeUserId?: string | null | undefined;
186
- goalId?: string | null | undefined;
187
- blockedByIssueIds?: string[] | undefined;
188
- }, {
189
- title: string;
190
- description?: string | null | undefined;
191
- projectId?: string | null | undefined;
192
- parentId?: string | null | undefined;
193
- assigneeAgentId?: string | null | undefined;
194
- assigneeUserId?: string | null | undefined;
195
- goalId?: string | null | undefined;
196
- blockedByIssueIds?: string[] | undefined;
197
- }>;
99
+ blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
100
+ }, z.core.$strip>;
198
101
  targetIssueId: z.ZodString;
199
- staleness: z.ZodEnum<["strict", "lenient"]>;
102
+ staleness: z.ZodEnum<{
103
+ strict: "strict";
104
+ lenient: "lenient";
105
+ }>;
200
106
  type: z.ZodLiteral<"create_issue">;
201
- }, "strip", z.ZodTypeAny, {
202
- draft: {
203
- title: string;
204
- description?: string | null | undefined;
205
- projectId?: string | null | undefined;
206
- parentId?: string | null | undefined;
207
- assigneeAgentId?: string | null | undefined;
208
- assigneeUserId?: string | null | undefined;
209
- goalId?: string | null | undefined;
210
- blockedByIssueIds?: string[] | undefined;
211
- };
212
- type: "create_issue";
213
- targetIssueId: string;
214
- staleness: "strict" | "lenient";
215
- }, {
216
- draft: {
217
- title: string;
218
- description?: string | null | undefined;
219
- projectId?: string | null | undefined;
220
- parentId?: string | null | undefined;
221
- assigneeAgentId?: string | null | undefined;
222
- assigneeUserId?: string | null | undefined;
223
- goalId?: string | null | undefined;
224
- blockedByIssueIds?: string[] | undefined;
225
- };
226
- type: "create_issue";
227
- targetIssueId: string;
228
- staleness: "strict" | "lenient";
229
- }>, z.ZodObject<{
230
- status: z.ZodEnum<["backlog", "todo", "in_progress", "in_review", "done", "blocked", "cancelled"]>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ status: z.ZodEnum<{
109
+ backlog: "backlog";
110
+ todo: "todo";
111
+ in_progress: "in_progress";
112
+ in_review: "in_review";
113
+ done: "done";
114
+ blocked: "blocked";
115
+ cancelled: "cancelled";
116
+ }>;
231
117
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
118
  targetIssueId: z.ZodString;
233
- staleness: z.ZodEnum<["strict", "lenient"]>;
119
+ staleness: z.ZodEnum<{
120
+ strict: "strict";
121
+ lenient: "lenient";
122
+ }>;
234
123
  type: z.ZodLiteral<"update_issue_status">;
235
- }, "strip", z.ZodTypeAny, {
236
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
237
- type: "update_issue_status";
238
- targetIssueId: string;
239
- staleness: "strict" | "lenient";
240
- comment?: string | null | undefined;
241
- }, {
242
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
243
- type: "update_issue_status";
244
- targetIssueId: string;
245
- staleness: "strict" | "lenient";
246
- comment?: string | null | undefined;
247
- }>, z.ZodObject<{
124
+ }, z.core.$strip>, z.ZodObject<{
248
125
  assigneeAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
126
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
127
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
128
  targetIssueId: z.ZodString;
252
- staleness: z.ZodEnum<["strict", "lenient"]>;
129
+ staleness: z.ZodEnum<{
130
+ strict: "strict";
131
+ lenient: "lenient";
132
+ }>;
253
133
  type: z.ZodLiteral<"assign_issue">;
254
- }, "strip", z.ZodTypeAny, {
255
- type: "assign_issue";
256
- targetIssueId: string;
257
- staleness: "strict" | "lenient";
258
- comment?: string | null | undefined;
259
- assigneeAgentId?: string | null | undefined;
260
- assigneeUserId?: string | null | undefined;
261
- }, {
262
- type: "assign_issue";
263
- targetIssueId: string;
264
- staleness: "strict" | "lenient";
265
- comment?: string | null | undefined;
266
- assigneeAgentId?: string | null | undefined;
267
- assigneeUserId?: string | null | undefined;
268
- }>, z.ZodObject<{
134
+ }, z.core.$strip>, z.ZodObject<{
269
135
  type: z.ZodLiteral<"cancel_issue_tree">;
270
136
  targetIssueId: z.ZodString;
271
137
  staleness: z.ZodLiteral<"strict">;
272
138
  reasonComment: z.ZodString;
273
- }, "strip", z.ZodTypeAny, {
274
- type: "cancel_issue_tree";
275
- targetIssueId: string;
276
- staleness: "strict";
277
- reasonComment: string;
278
- }, {
279
- type: "cancel_issue_tree";
280
- targetIssueId: string;
281
- staleness: "strict";
282
- reasonComment: string;
283
- }>, z.ZodObject<{
284
- removeBlockedByIssueIds: z.ZodArray<z.ZodString, "many">;
139
+ }, z.core.$strip>, z.ZodObject<{
140
+ removeBlockedByIssueIds: z.ZodArray<z.ZodString>;
285
141
  targetIssueId: z.ZodString;
286
- staleness: z.ZodEnum<["strict", "lenient"]>;
142
+ staleness: z.ZodEnum<{
143
+ strict: "strict";
144
+ lenient: "lenient";
145
+ }>;
287
146
  type: z.ZodLiteral<"resolve_blocker">;
288
- }, "strip", z.ZodTypeAny, {
289
- type: "resolve_blocker";
290
- targetIssueId: string;
291
- staleness: "strict" | "lenient";
292
- removeBlockedByIssueIds: string[];
293
- }, {
294
- type: "resolve_blocker";
295
- targetIssueId: string;
296
- staleness: "strict" | "lenient";
297
- removeBlockedByIssueIds: string[];
298
- }>]>, {
299
- type: "comment_on_issue";
300
- bodyMarkdown: string;
301
- targetIssueId: string;
302
- staleness: "strict" | "lenient";
303
- } | {
304
- draft: {
305
- title: string;
306
- description?: string | null | undefined;
307
- projectId?: string | null | undefined;
308
- parentId?: string | null | undefined;
309
- assigneeAgentId?: string | null | undefined;
310
- assigneeUserId?: string | null | undefined;
311
- goalId?: string | null | undefined;
312
- blockedByIssueIds?: string[] | undefined;
313
- };
314
- type: "create_issue";
315
- targetIssueId: string;
316
- staleness: "strict" | "lenient";
317
- } | {
318
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
319
- type: "update_issue_status";
320
- targetIssueId: string;
321
- staleness: "strict" | "lenient";
322
- comment?: string | null | undefined;
323
- } | {
324
- type: "assign_issue";
325
- targetIssueId: string;
326
- staleness: "strict" | "lenient";
327
- comment?: string | null | undefined;
328
- assigneeAgentId?: string | null | undefined;
329
- assigneeUserId?: string | null | undefined;
330
- } | {
331
- type: "cancel_issue_tree";
332
- targetIssueId: string;
333
- staleness: "strict";
334
- reasonComment: string;
335
- } | {
336
- type: "resolve_blocker";
337
- targetIssueId: string;
338
- staleness: "strict" | "lenient";
339
- removeBlockedByIssueIds: string[];
340
- }, {
341
- type: "comment_on_issue";
342
- bodyMarkdown: string;
343
- targetIssueId: string;
344
- staleness: "strict" | "lenient";
345
- } | {
346
- draft: {
347
- title: string;
348
- description?: string | null | undefined;
349
- projectId?: string | null | undefined;
350
- parentId?: string | null | undefined;
351
- assigneeAgentId?: string | null | undefined;
352
- assigneeUserId?: string | null | undefined;
353
- goalId?: string | null | undefined;
354
- blockedByIssueIds?: string[] | undefined;
355
- };
356
- type: "create_issue";
357
- targetIssueId: string;
358
- staleness: "strict" | "lenient";
359
- } | {
360
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
361
- type: "update_issue_status";
362
- targetIssueId: string;
363
- staleness: "strict" | "lenient";
364
- comment?: string | null | undefined;
365
- } | {
366
- type: "assign_issue";
367
- targetIssueId: string;
368
- staleness: "strict" | "lenient";
369
- comment?: string | null | undefined;
370
- assigneeAgentId?: string | null | undefined;
371
- assigneeUserId?: string | null | undefined;
372
- } | {
373
- type: "cancel_issue_tree";
374
- targetIssueId: string;
375
- staleness: "strict";
376
- reasonComment: string;
377
- } | {
378
- type: "resolve_blocker";
379
- targetIssueId: string;
380
- staleness: "strict" | "lenient";
381
- removeBlockedByIssueIds: string[];
382
- }>;
147
+ }, z.core.$strip>], "type">;
383
148
  export declare const decisionInputSchema: z.ZodObject<{
384
149
  id: z.ZodString;
385
150
  label: z.ZodString;
386
151
  placeholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
387
152
  required: z.ZodOptional<z.ZodBoolean>;
388
153
  maxLength: z.ZodOptional<z.ZodNumber>;
389
- }, "strip", z.ZodTypeAny, {
390
- label: string;
391
- id: string;
392
- required?: boolean | undefined;
393
- maxLength?: number | undefined;
394
- placeholder?: string | null | undefined;
395
- }, {
396
- label: string;
397
- id: string;
398
- required?: boolean | undefined;
399
- maxLength?: number | undefined;
400
- placeholder?: string | null | undefined;
401
- }>;
402
- export declare const decisionOptionSchema: z.ZodEffects<z.ZodObject<{
154
+ }, z.core.$strip>;
155
+ export declare const decisionOptionSchema: z.ZodObject<{
403
156
  id: z.ZodString;
404
157
  label: z.ZodString;
405
158
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
- style: z.ZodOptional<z.ZodEnum<["default", "primary", "destructive"]>>;
407
- effects: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
159
+ style: z.ZodOptional<z.ZodEnum<{
160
+ default: "default";
161
+ destructive: "destructive";
162
+ primary: "primary";
163
+ }>>;
164
+ effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
408
165
  bodyMarkdown: z.ZodString;
409
166
  targetIssueId: z.ZodString;
410
- staleness: z.ZodEnum<["strict", "lenient"]>;
167
+ staleness: z.ZodEnum<{
168
+ strict: "strict";
169
+ lenient: "lenient";
170
+ }>;
411
171
  type: z.ZodLiteral<"comment_on_issue">;
412
- }, "strip", z.ZodTypeAny, {
413
- type: "comment_on_issue";
414
- bodyMarkdown: string;
415
- targetIssueId: string;
416
- staleness: "strict" | "lenient";
417
- }, {
418
- type: "comment_on_issue";
419
- bodyMarkdown: string;
420
- targetIssueId: string;
421
- staleness: "strict" | "lenient";
422
- }>, z.ZodObject<{
172
+ }, z.core.$strip>, z.ZodObject<{
423
173
  draft: z.ZodObject<{
424
174
  title: z.ZodString;
425
175
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -428,425 +178,74 @@ export declare const decisionOptionSchema: z.ZodEffects<z.ZodObject<{
428
178
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
429
179
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
180
  goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
- blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
432
- }, "strip", z.ZodTypeAny, {
433
- title: string;
434
- description?: string | null | undefined;
435
- projectId?: string | null | undefined;
436
- parentId?: string | null | undefined;
437
- assigneeAgentId?: string | null | undefined;
438
- assigneeUserId?: string | null | undefined;
439
- goalId?: string | null | undefined;
440
- blockedByIssueIds?: string[] | undefined;
441
- }, {
442
- title: string;
443
- description?: string | null | undefined;
444
- projectId?: string | null | undefined;
445
- parentId?: string | null | undefined;
446
- assigneeAgentId?: string | null | undefined;
447
- assigneeUserId?: string | null | undefined;
448
- goalId?: string | null | undefined;
449
- blockedByIssueIds?: string[] | undefined;
450
- }>;
181
+ blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
+ }, z.core.$strip>;
451
183
  targetIssueId: z.ZodString;
452
- staleness: z.ZodEnum<["strict", "lenient"]>;
184
+ staleness: z.ZodEnum<{
185
+ strict: "strict";
186
+ lenient: "lenient";
187
+ }>;
453
188
  type: z.ZodLiteral<"create_issue">;
454
- }, "strip", z.ZodTypeAny, {
455
- draft: {
456
- title: string;
457
- description?: string | null | undefined;
458
- projectId?: string | null | undefined;
459
- parentId?: string | null | undefined;
460
- assigneeAgentId?: string | null | undefined;
461
- assigneeUserId?: string | null | undefined;
462
- goalId?: string | null | undefined;
463
- blockedByIssueIds?: string[] | undefined;
464
- };
465
- type: "create_issue";
466
- targetIssueId: string;
467
- staleness: "strict" | "lenient";
468
- }, {
469
- draft: {
470
- title: string;
471
- description?: string | null | undefined;
472
- projectId?: string | null | undefined;
473
- parentId?: string | null | undefined;
474
- assigneeAgentId?: string | null | undefined;
475
- assigneeUserId?: string | null | undefined;
476
- goalId?: string | null | undefined;
477
- blockedByIssueIds?: string[] | undefined;
478
- };
479
- type: "create_issue";
480
- targetIssueId: string;
481
- staleness: "strict" | "lenient";
482
- }>, z.ZodObject<{
483
- status: z.ZodEnum<["backlog", "todo", "in_progress", "in_review", "done", "blocked", "cancelled"]>;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ status: z.ZodEnum<{
191
+ backlog: "backlog";
192
+ todo: "todo";
193
+ in_progress: "in_progress";
194
+ in_review: "in_review";
195
+ done: "done";
196
+ blocked: "blocked";
197
+ cancelled: "cancelled";
198
+ }>;
484
199
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
485
200
  targetIssueId: z.ZodString;
486
- staleness: z.ZodEnum<["strict", "lenient"]>;
201
+ staleness: z.ZodEnum<{
202
+ strict: "strict";
203
+ lenient: "lenient";
204
+ }>;
487
205
  type: z.ZodLiteral<"update_issue_status">;
488
- }, "strip", z.ZodTypeAny, {
489
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
490
- type: "update_issue_status";
491
- targetIssueId: string;
492
- staleness: "strict" | "lenient";
493
- comment?: string | null | undefined;
494
- }, {
495
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
496
- type: "update_issue_status";
497
- targetIssueId: string;
498
- staleness: "strict" | "lenient";
499
- comment?: string | null | undefined;
500
- }>, z.ZodObject<{
206
+ }, z.core.$strip>, z.ZodObject<{
501
207
  assigneeAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
502
208
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
209
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
210
  targetIssueId: z.ZodString;
505
- staleness: z.ZodEnum<["strict", "lenient"]>;
211
+ staleness: z.ZodEnum<{
212
+ strict: "strict";
213
+ lenient: "lenient";
214
+ }>;
506
215
  type: z.ZodLiteral<"assign_issue">;
507
- }, "strip", z.ZodTypeAny, {
508
- type: "assign_issue";
509
- targetIssueId: string;
510
- staleness: "strict" | "lenient";
511
- comment?: string | null | undefined;
512
- assigneeAgentId?: string | null | undefined;
513
- assigneeUserId?: string | null | undefined;
514
- }, {
515
- type: "assign_issue";
516
- targetIssueId: string;
517
- staleness: "strict" | "lenient";
518
- comment?: string | null | undefined;
519
- assigneeAgentId?: string | null | undefined;
520
- assigneeUserId?: string | null | undefined;
521
- }>, z.ZodObject<{
216
+ }, z.core.$strip>, z.ZodObject<{
522
217
  type: z.ZodLiteral<"cancel_issue_tree">;
523
218
  targetIssueId: z.ZodString;
524
219
  staleness: z.ZodLiteral<"strict">;
525
220
  reasonComment: z.ZodString;
526
- }, "strip", z.ZodTypeAny, {
527
- type: "cancel_issue_tree";
528
- targetIssueId: string;
529
- staleness: "strict";
530
- reasonComment: string;
531
- }, {
532
- type: "cancel_issue_tree";
533
- targetIssueId: string;
534
- staleness: "strict";
535
- reasonComment: string;
536
- }>, z.ZodObject<{
537
- removeBlockedByIssueIds: z.ZodArray<z.ZodString, "many">;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ removeBlockedByIssueIds: z.ZodArray<z.ZodString>;
538
223
  targetIssueId: z.ZodString;
539
- staleness: z.ZodEnum<["strict", "lenient"]>;
224
+ staleness: z.ZodEnum<{
225
+ strict: "strict";
226
+ lenient: "lenient";
227
+ }>;
540
228
  type: z.ZodLiteral<"resolve_blocker">;
541
- }, "strip", z.ZodTypeAny, {
542
- type: "resolve_blocker";
543
- targetIssueId: string;
544
- staleness: "strict" | "lenient";
545
- removeBlockedByIssueIds: string[];
546
- }, {
547
- type: "resolve_blocker";
548
- targetIssueId: string;
549
- staleness: "strict" | "lenient";
550
- removeBlockedByIssueIds: string[];
551
- }>]>, {
552
- type: "comment_on_issue";
553
- bodyMarkdown: string;
554
- targetIssueId: string;
555
- staleness: "strict" | "lenient";
556
- } | {
557
- draft: {
558
- title: string;
559
- description?: string | null | undefined;
560
- projectId?: string | null | undefined;
561
- parentId?: string | null | undefined;
562
- assigneeAgentId?: string | null | undefined;
563
- assigneeUserId?: string | null | undefined;
564
- goalId?: string | null | undefined;
565
- blockedByIssueIds?: string[] | undefined;
566
- };
567
- type: "create_issue";
568
- targetIssueId: string;
569
- staleness: "strict" | "lenient";
570
- } | {
571
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
572
- type: "update_issue_status";
573
- targetIssueId: string;
574
- staleness: "strict" | "lenient";
575
- comment?: string | null | undefined;
576
- } | {
577
- type: "assign_issue";
578
- targetIssueId: string;
579
- staleness: "strict" | "lenient";
580
- comment?: string | null | undefined;
581
- assigneeAgentId?: string | null | undefined;
582
- assigneeUserId?: string | null | undefined;
583
- } | {
584
- type: "cancel_issue_tree";
585
- targetIssueId: string;
586
- staleness: "strict";
587
- reasonComment: string;
588
- } | {
589
- type: "resolve_blocker";
590
- targetIssueId: string;
591
- staleness: "strict" | "lenient";
592
- removeBlockedByIssueIds: string[];
593
- }, {
594
- type: "comment_on_issue";
595
- bodyMarkdown: string;
596
- targetIssueId: string;
597
- staleness: "strict" | "lenient";
598
- } | {
599
- draft: {
600
- title: string;
601
- description?: string | null | undefined;
602
- projectId?: string | null | undefined;
603
- parentId?: string | null | undefined;
604
- assigneeAgentId?: string | null | undefined;
605
- assigneeUserId?: string | null | undefined;
606
- goalId?: string | null | undefined;
607
- blockedByIssueIds?: string[] | undefined;
608
- };
609
- type: "create_issue";
610
- targetIssueId: string;
611
- staleness: "strict" | "lenient";
612
- } | {
613
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
614
- type: "update_issue_status";
615
- targetIssueId: string;
616
- staleness: "strict" | "lenient";
617
- comment?: string | null | undefined;
618
- } | {
619
- type: "assign_issue";
620
- targetIssueId: string;
621
- staleness: "strict" | "lenient";
622
- comment?: string | null | undefined;
623
- assigneeAgentId?: string | null | undefined;
624
- assigneeUserId?: string | null | undefined;
625
- } | {
626
- type: "cancel_issue_tree";
627
- targetIssueId: string;
628
- staleness: "strict";
629
- reasonComment: string;
630
- } | {
631
- type: "resolve_blocker";
632
- targetIssueId: string;
633
- staleness: "strict" | "lenient";
634
- removeBlockedByIssueIds: string[];
635
- }>, "many">;
636
- }, "strip", z.ZodTypeAny, {
637
- label: string;
638
- id: string;
639
- effects: ({
640
- type: "comment_on_issue";
641
- bodyMarkdown: string;
642
- targetIssueId: string;
643
- staleness: "strict" | "lenient";
644
- } | {
645
- draft: {
646
- title: string;
647
- description?: string | null | undefined;
648
- projectId?: string | null | undefined;
649
- parentId?: string | null | undefined;
650
- assigneeAgentId?: string | null | undefined;
651
- assigneeUserId?: string | null | undefined;
652
- goalId?: string | null | undefined;
653
- blockedByIssueIds?: string[] | undefined;
654
- };
655
- type: "create_issue";
656
- targetIssueId: string;
657
- staleness: "strict" | "lenient";
658
- } | {
659
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
660
- type: "update_issue_status";
661
- targetIssueId: string;
662
- staleness: "strict" | "lenient";
663
- comment?: string | null | undefined;
664
- } | {
665
- type: "assign_issue";
666
- targetIssueId: string;
667
- staleness: "strict" | "lenient";
668
- comment?: string | null | undefined;
669
- assigneeAgentId?: string | null | undefined;
670
- assigneeUserId?: string | null | undefined;
671
- } | {
672
- type: "cancel_issue_tree";
673
- targetIssueId: string;
674
- staleness: "strict";
675
- reasonComment: string;
676
- } | {
677
- type: "resolve_blocker";
678
- targetIssueId: string;
679
- staleness: "strict" | "lenient";
680
- removeBlockedByIssueIds: string[];
681
- })[];
682
- description?: string | null | undefined;
683
- style?: "default" | "destructive" | "primary" | undefined;
684
- }, {
685
- label: string;
686
- id: string;
687
- effects: ({
688
- type: "comment_on_issue";
689
- bodyMarkdown: string;
690
- targetIssueId: string;
691
- staleness: "strict" | "lenient";
692
- } | {
693
- draft: {
694
- title: string;
695
- description?: string | null | undefined;
696
- projectId?: string | null | undefined;
697
- parentId?: string | null | undefined;
698
- assigneeAgentId?: string | null | undefined;
699
- assigneeUserId?: string | null | undefined;
700
- goalId?: string | null | undefined;
701
- blockedByIssueIds?: string[] | undefined;
702
- };
703
- type: "create_issue";
704
- targetIssueId: string;
705
- staleness: "strict" | "lenient";
706
- } | {
707
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
708
- type: "update_issue_status";
709
- targetIssueId: string;
710
- staleness: "strict" | "lenient";
711
- comment?: string | null | undefined;
712
- } | {
713
- type: "assign_issue";
714
- targetIssueId: string;
715
- staleness: "strict" | "lenient";
716
- comment?: string | null | undefined;
717
- assigneeAgentId?: string | null | undefined;
718
- assigneeUserId?: string | null | undefined;
719
- } | {
720
- type: "cancel_issue_tree";
721
- targetIssueId: string;
722
- staleness: "strict";
723
- reasonComment: string;
724
- } | {
725
- type: "resolve_blocker";
726
- targetIssueId: string;
727
- staleness: "strict" | "lenient";
728
- removeBlockedByIssueIds: string[];
729
- })[];
730
- description?: string | null | undefined;
731
- style?: "default" | "destructive" | "primary" | undefined;
732
- }>, {
733
- label: string;
734
- id: string;
735
- effects: ({
736
- type: "comment_on_issue";
737
- bodyMarkdown: string;
738
- targetIssueId: string;
739
- staleness: "strict" | "lenient";
740
- } | {
741
- draft: {
742
- title: string;
743
- description?: string | null | undefined;
744
- projectId?: string | null | undefined;
745
- parentId?: string | null | undefined;
746
- assigneeAgentId?: string | null | undefined;
747
- assigneeUserId?: string | null | undefined;
748
- goalId?: string | null | undefined;
749
- blockedByIssueIds?: string[] | undefined;
750
- };
751
- type: "create_issue";
752
- targetIssueId: string;
753
- staleness: "strict" | "lenient";
754
- } | {
755
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
756
- type: "update_issue_status";
757
- targetIssueId: string;
758
- staleness: "strict" | "lenient";
759
- comment?: string | null | undefined;
760
- } | {
761
- type: "assign_issue";
762
- targetIssueId: string;
763
- staleness: "strict" | "lenient";
764
- comment?: string | null | undefined;
765
- assigneeAgentId?: string | null | undefined;
766
- assigneeUserId?: string | null | undefined;
767
- } | {
768
- type: "cancel_issue_tree";
769
- targetIssueId: string;
770
- staleness: "strict";
771
- reasonComment: string;
772
- } | {
773
- type: "resolve_blocker";
774
- targetIssueId: string;
775
- staleness: "strict" | "lenient";
776
- removeBlockedByIssueIds: string[];
777
- })[];
778
- description?: string | null | undefined;
779
- style?: "default" | "destructive" | "primary" | undefined;
780
- }, {
781
- label: string;
782
- id: string;
783
- effects: ({
784
- type: "comment_on_issue";
785
- bodyMarkdown: string;
786
- targetIssueId: string;
787
- staleness: "strict" | "lenient";
788
- } | {
789
- draft: {
790
- title: string;
791
- description?: string | null | undefined;
792
- projectId?: string | null | undefined;
793
- parentId?: string | null | undefined;
794
- assigneeAgentId?: string | null | undefined;
795
- assigneeUserId?: string | null | undefined;
796
- goalId?: string | null | undefined;
797
- blockedByIssueIds?: string[] | undefined;
798
- };
799
- type: "create_issue";
800
- targetIssueId: string;
801
- staleness: "strict" | "lenient";
802
- } | {
803
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
804
- type: "update_issue_status";
805
- targetIssueId: string;
806
- staleness: "strict" | "lenient";
807
- comment?: string | null | undefined;
808
- } | {
809
- type: "assign_issue";
810
- targetIssueId: string;
811
- staleness: "strict" | "lenient";
812
- comment?: string | null | undefined;
813
- assigneeAgentId?: string | null | undefined;
814
- assigneeUserId?: string | null | undefined;
815
- } | {
816
- type: "cancel_issue_tree";
817
- targetIssueId: string;
818
- staleness: "strict";
819
- reasonComment: string;
820
- } | {
821
- type: "resolve_blocker";
822
- targetIssueId: string;
823
- staleness: "strict" | "lenient";
824
- removeBlockedByIssueIds: string[];
825
- })[];
826
- description?: string | null | undefined;
827
- style?: "default" | "destructive" | "primary" | undefined;
828
- }>;
829
- export declare const decisionOptionsSchema: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
229
+ }, z.core.$strip>], "type">>;
230
+ }, z.core.$strip>;
231
+ export declare const decisionOptionsSchema: z.ZodArray<z.ZodObject<{
830
232
  id: z.ZodString;
831
233
  label: z.ZodString;
832
234
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
833
- style: z.ZodOptional<z.ZodEnum<["default", "primary", "destructive"]>>;
834
- effects: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
235
+ style: z.ZodOptional<z.ZodEnum<{
236
+ default: "default";
237
+ destructive: "destructive";
238
+ primary: "primary";
239
+ }>>;
240
+ effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
835
241
  bodyMarkdown: z.ZodString;
836
242
  targetIssueId: z.ZodString;
837
- staleness: z.ZodEnum<["strict", "lenient"]>;
243
+ staleness: z.ZodEnum<{
244
+ strict: "strict";
245
+ lenient: "lenient";
246
+ }>;
838
247
  type: z.ZodLiteral<"comment_on_issue">;
839
- }, "strip", z.ZodTypeAny, {
840
- type: "comment_on_issue";
841
- bodyMarkdown: string;
842
- targetIssueId: string;
843
- staleness: "strict" | "lenient";
844
- }, {
845
- type: "comment_on_issue";
846
- bodyMarkdown: string;
847
- targetIssueId: string;
848
- staleness: "strict" | "lenient";
849
- }>, z.ZodObject<{
248
+ }, z.core.$strip>, z.ZodObject<{
850
249
  draft: z.ZodObject<{
851
250
  title: z.ZodString;
852
251
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -855,553 +254,82 @@ export declare const decisionOptionsSchema: z.ZodEffects<z.ZodArray<z.ZodEffects
855
254
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
856
255
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
256
  goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
- blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
859
- }, "strip", z.ZodTypeAny, {
860
- title: string;
861
- description?: string | null | undefined;
862
- projectId?: string | null | undefined;
863
- parentId?: string | null | undefined;
864
- assigneeAgentId?: string | null | undefined;
865
- assigneeUserId?: string | null | undefined;
866
- goalId?: string | null | undefined;
867
- blockedByIssueIds?: string[] | undefined;
868
- }, {
869
- title: string;
870
- description?: string | null | undefined;
871
- projectId?: string | null | undefined;
872
- parentId?: string | null | undefined;
873
- assigneeAgentId?: string | null | undefined;
874
- assigneeUserId?: string | null | undefined;
875
- goalId?: string | null | undefined;
876
- blockedByIssueIds?: string[] | undefined;
877
- }>;
257
+ blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
+ }, z.core.$strip>;
878
259
  targetIssueId: z.ZodString;
879
- staleness: z.ZodEnum<["strict", "lenient"]>;
260
+ staleness: z.ZodEnum<{
261
+ strict: "strict";
262
+ lenient: "lenient";
263
+ }>;
880
264
  type: z.ZodLiteral<"create_issue">;
881
- }, "strip", z.ZodTypeAny, {
882
- draft: {
883
- title: string;
884
- description?: string | null | undefined;
885
- projectId?: string | null | undefined;
886
- parentId?: string | null | undefined;
887
- assigneeAgentId?: string | null | undefined;
888
- assigneeUserId?: string | null | undefined;
889
- goalId?: string | null | undefined;
890
- blockedByIssueIds?: string[] | undefined;
891
- };
892
- type: "create_issue";
893
- targetIssueId: string;
894
- staleness: "strict" | "lenient";
895
- }, {
896
- draft: {
897
- title: string;
898
- description?: string | null | undefined;
899
- projectId?: string | null | undefined;
900
- parentId?: string | null | undefined;
901
- assigneeAgentId?: string | null | undefined;
902
- assigneeUserId?: string | null | undefined;
903
- goalId?: string | null | undefined;
904
- blockedByIssueIds?: string[] | undefined;
905
- };
906
- type: "create_issue";
907
- targetIssueId: string;
908
- staleness: "strict" | "lenient";
909
- }>, z.ZodObject<{
910
- status: z.ZodEnum<["backlog", "todo", "in_progress", "in_review", "done", "blocked", "cancelled"]>;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ status: z.ZodEnum<{
267
+ backlog: "backlog";
268
+ todo: "todo";
269
+ in_progress: "in_progress";
270
+ in_review: "in_review";
271
+ done: "done";
272
+ blocked: "blocked";
273
+ cancelled: "cancelled";
274
+ }>;
911
275
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
912
276
  targetIssueId: z.ZodString;
913
- staleness: z.ZodEnum<["strict", "lenient"]>;
277
+ staleness: z.ZodEnum<{
278
+ strict: "strict";
279
+ lenient: "lenient";
280
+ }>;
914
281
  type: z.ZodLiteral<"update_issue_status">;
915
- }, "strip", z.ZodTypeAny, {
916
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
917
- type: "update_issue_status";
918
- targetIssueId: string;
919
- staleness: "strict" | "lenient";
920
- comment?: string | null | undefined;
921
- }, {
922
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
923
- type: "update_issue_status";
924
- targetIssueId: string;
925
- staleness: "strict" | "lenient";
926
- comment?: string | null | undefined;
927
- }>, z.ZodObject<{
282
+ }, z.core.$strip>, z.ZodObject<{
928
283
  assigneeAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
284
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
285
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
286
  targetIssueId: z.ZodString;
932
- staleness: z.ZodEnum<["strict", "lenient"]>;
287
+ staleness: z.ZodEnum<{
288
+ strict: "strict";
289
+ lenient: "lenient";
290
+ }>;
933
291
  type: z.ZodLiteral<"assign_issue">;
934
- }, "strip", z.ZodTypeAny, {
935
- type: "assign_issue";
936
- targetIssueId: string;
937
- staleness: "strict" | "lenient";
938
- comment?: string | null | undefined;
939
- assigneeAgentId?: string | null | undefined;
940
- assigneeUserId?: string | null | undefined;
941
- }, {
942
- type: "assign_issue";
943
- targetIssueId: string;
944
- staleness: "strict" | "lenient";
945
- comment?: string | null | undefined;
946
- assigneeAgentId?: string | null | undefined;
947
- assigneeUserId?: string | null | undefined;
948
- }>, z.ZodObject<{
292
+ }, z.core.$strip>, z.ZodObject<{
949
293
  type: z.ZodLiteral<"cancel_issue_tree">;
950
294
  targetIssueId: z.ZodString;
951
295
  staleness: z.ZodLiteral<"strict">;
952
296
  reasonComment: z.ZodString;
953
- }, "strip", z.ZodTypeAny, {
954
- type: "cancel_issue_tree";
955
- targetIssueId: string;
956
- staleness: "strict";
957
- reasonComment: string;
958
- }, {
959
- type: "cancel_issue_tree";
960
- targetIssueId: string;
961
- staleness: "strict";
962
- reasonComment: string;
963
- }>, z.ZodObject<{
964
- removeBlockedByIssueIds: z.ZodArray<z.ZodString, "many">;
297
+ }, z.core.$strip>, z.ZodObject<{
298
+ removeBlockedByIssueIds: z.ZodArray<z.ZodString>;
965
299
  targetIssueId: z.ZodString;
966
- staleness: z.ZodEnum<["strict", "lenient"]>;
300
+ staleness: z.ZodEnum<{
301
+ strict: "strict";
302
+ lenient: "lenient";
303
+ }>;
967
304
  type: z.ZodLiteral<"resolve_blocker">;
968
- }, "strip", z.ZodTypeAny, {
969
- type: "resolve_blocker";
970
- targetIssueId: string;
971
- staleness: "strict" | "lenient";
972
- removeBlockedByIssueIds: string[];
973
- }, {
974
- type: "resolve_blocker";
975
- targetIssueId: string;
976
- staleness: "strict" | "lenient";
977
- removeBlockedByIssueIds: string[];
978
- }>]>, {
979
- type: "comment_on_issue";
980
- bodyMarkdown: string;
981
- targetIssueId: string;
982
- staleness: "strict" | "lenient";
983
- } | {
984
- draft: {
985
- title: string;
986
- description?: string | null | undefined;
987
- projectId?: string | null | undefined;
988
- parentId?: string | null | undefined;
989
- assigneeAgentId?: string | null | undefined;
990
- assigneeUserId?: string | null | undefined;
991
- goalId?: string | null | undefined;
992
- blockedByIssueIds?: string[] | undefined;
993
- };
994
- type: "create_issue";
995
- targetIssueId: string;
996
- staleness: "strict" | "lenient";
997
- } | {
998
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
999
- type: "update_issue_status";
1000
- targetIssueId: string;
1001
- staleness: "strict" | "lenient";
1002
- comment?: string | null | undefined;
1003
- } | {
1004
- type: "assign_issue";
1005
- targetIssueId: string;
1006
- staleness: "strict" | "lenient";
1007
- comment?: string | null | undefined;
1008
- assigneeAgentId?: string | null | undefined;
1009
- assigneeUserId?: string | null | undefined;
1010
- } | {
1011
- type: "cancel_issue_tree";
1012
- targetIssueId: string;
1013
- staleness: "strict";
1014
- reasonComment: string;
1015
- } | {
1016
- type: "resolve_blocker";
1017
- targetIssueId: string;
1018
- staleness: "strict" | "lenient";
1019
- removeBlockedByIssueIds: string[];
1020
- }, {
1021
- type: "comment_on_issue";
1022
- bodyMarkdown: string;
1023
- targetIssueId: string;
1024
- staleness: "strict" | "lenient";
1025
- } | {
1026
- draft: {
1027
- title: string;
1028
- description?: string | null | undefined;
1029
- projectId?: string | null | undefined;
1030
- parentId?: string | null | undefined;
1031
- assigneeAgentId?: string | null | undefined;
1032
- assigneeUserId?: string | null | undefined;
1033
- goalId?: string | null | undefined;
1034
- blockedByIssueIds?: string[] | undefined;
1035
- };
1036
- type: "create_issue";
1037
- targetIssueId: string;
1038
- staleness: "strict" | "lenient";
1039
- } | {
1040
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1041
- type: "update_issue_status";
1042
- targetIssueId: string;
1043
- staleness: "strict" | "lenient";
1044
- comment?: string | null | undefined;
1045
- } | {
1046
- type: "assign_issue";
1047
- targetIssueId: string;
1048
- staleness: "strict" | "lenient";
1049
- comment?: string | null | undefined;
1050
- assigneeAgentId?: string | null | undefined;
1051
- assigneeUserId?: string | null | undefined;
1052
- } | {
1053
- type: "cancel_issue_tree";
1054
- targetIssueId: string;
1055
- staleness: "strict";
1056
- reasonComment: string;
1057
- } | {
1058
- type: "resolve_blocker";
1059
- targetIssueId: string;
1060
- staleness: "strict" | "lenient";
1061
- removeBlockedByIssueIds: string[];
1062
- }>, "many">;
1063
- }, "strip", z.ZodTypeAny, {
1064
- label: string;
1065
- id: string;
1066
- effects: ({
1067
- type: "comment_on_issue";
1068
- bodyMarkdown: string;
1069
- targetIssueId: string;
1070
- staleness: "strict" | "lenient";
1071
- } | {
1072
- draft: {
1073
- title: string;
1074
- description?: string | null | undefined;
1075
- projectId?: string | null | undefined;
1076
- parentId?: string | null | undefined;
1077
- assigneeAgentId?: string | null | undefined;
1078
- assigneeUserId?: string | null | undefined;
1079
- goalId?: string | null | undefined;
1080
- blockedByIssueIds?: string[] | undefined;
1081
- };
1082
- type: "create_issue";
1083
- targetIssueId: string;
1084
- staleness: "strict" | "lenient";
1085
- } | {
1086
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1087
- type: "update_issue_status";
1088
- targetIssueId: string;
1089
- staleness: "strict" | "lenient";
1090
- comment?: string | null | undefined;
1091
- } | {
1092
- type: "assign_issue";
1093
- targetIssueId: string;
1094
- staleness: "strict" | "lenient";
1095
- comment?: string | null | undefined;
1096
- assigneeAgentId?: string | null | undefined;
1097
- assigneeUserId?: string | null | undefined;
1098
- } | {
1099
- type: "cancel_issue_tree";
1100
- targetIssueId: string;
1101
- staleness: "strict";
1102
- reasonComment: string;
1103
- } | {
1104
- type: "resolve_blocker";
1105
- targetIssueId: string;
1106
- staleness: "strict" | "lenient";
1107
- removeBlockedByIssueIds: string[];
1108
- })[];
1109
- description?: string | null | undefined;
1110
- style?: "default" | "destructive" | "primary" | undefined;
1111
- }, {
1112
- label: string;
1113
- id: string;
1114
- effects: ({
1115
- type: "comment_on_issue";
1116
- bodyMarkdown: string;
1117
- targetIssueId: string;
1118
- staleness: "strict" | "lenient";
1119
- } | {
1120
- draft: {
1121
- title: string;
1122
- description?: string | null | undefined;
1123
- projectId?: string | null | undefined;
1124
- parentId?: string | null | undefined;
1125
- assigneeAgentId?: string | null | undefined;
1126
- assigneeUserId?: string | null | undefined;
1127
- goalId?: string | null | undefined;
1128
- blockedByIssueIds?: string[] | undefined;
1129
- };
1130
- type: "create_issue";
1131
- targetIssueId: string;
1132
- staleness: "strict" | "lenient";
1133
- } | {
1134
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1135
- type: "update_issue_status";
1136
- targetIssueId: string;
1137
- staleness: "strict" | "lenient";
1138
- comment?: string | null | undefined;
1139
- } | {
1140
- type: "assign_issue";
1141
- targetIssueId: string;
1142
- staleness: "strict" | "lenient";
1143
- comment?: string | null | undefined;
1144
- assigneeAgentId?: string | null | undefined;
1145
- assigneeUserId?: string | null | undefined;
1146
- } | {
1147
- type: "cancel_issue_tree";
1148
- targetIssueId: string;
1149
- staleness: "strict";
1150
- reasonComment: string;
1151
- } | {
1152
- type: "resolve_blocker";
1153
- targetIssueId: string;
1154
- staleness: "strict" | "lenient";
1155
- removeBlockedByIssueIds: string[];
1156
- })[];
1157
- description?: string | null | undefined;
1158
- style?: "default" | "destructive" | "primary" | undefined;
1159
- }>, {
1160
- label: string;
1161
- id: string;
1162
- effects: ({
1163
- type: "comment_on_issue";
1164
- bodyMarkdown: string;
1165
- targetIssueId: string;
1166
- staleness: "strict" | "lenient";
1167
- } | {
1168
- draft: {
1169
- title: string;
1170
- description?: string | null | undefined;
1171
- projectId?: string | null | undefined;
1172
- parentId?: string | null | undefined;
1173
- assigneeAgentId?: string | null | undefined;
1174
- assigneeUserId?: string | null | undefined;
1175
- goalId?: string | null | undefined;
1176
- blockedByIssueIds?: string[] | undefined;
1177
- };
1178
- type: "create_issue";
1179
- targetIssueId: string;
1180
- staleness: "strict" | "lenient";
1181
- } | {
1182
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1183
- type: "update_issue_status";
1184
- targetIssueId: string;
1185
- staleness: "strict" | "lenient";
1186
- comment?: string | null | undefined;
1187
- } | {
1188
- type: "assign_issue";
1189
- targetIssueId: string;
1190
- staleness: "strict" | "lenient";
1191
- comment?: string | null | undefined;
1192
- assigneeAgentId?: string | null | undefined;
1193
- assigneeUserId?: string | null | undefined;
1194
- } | {
1195
- type: "cancel_issue_tree";
1196
- targetIssueId: string;
1197
- staleness: "strict";
1198
- reasonComment: string;
1199
- } | {
1200
- type: "resolve_blocker";
1201
- targetIssueId: string;
1202
- staleness: "strict" | "lenient";
1203
- removeBlockedByIssueIds: string[];
1204
- })[];
1205
- description?: string | null | undefined;
1206
- style?: "default" | "destructive" | "primary" | undefined;
1207
- }, {
1208
- label: string;
1209
- id: string;
1210
- effects: ({
1211
- type: "comment_on_issue";
1212
- bodyMarkdown: string;
1213
- targetIssueId: string;
1214
- staleness: "strict" | "lenient";
1215
- } | {
1216
- draft: {
1217
- title: string;
1218
- description?: string | null | undefined;
1219
- projectId?: string | null | undefined;
1220
- parentId?: string | null | undefined;
1221
- assigneeAgentId?: string | null | undefined;
1222
- assigneeUserId?: string | null | undefined;
1223
- goalId?: string | null | undefined;
1224
- blockedByIssueIds?: string[] | undefined;
1225
- };
1226
- type: "create_issue";
1227
- targetIssueId: string;
1228
- staleness: "strict" | "lenient";
1229
- } | {
1230
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1231
- type: "update_issue_status";
1232
- targetIssueId: string;
1233
- staleness: "strict" | "lenient";
1234
- comment?: string | null | undefined;
1235
- } | {
1236
- type: "assign_issue";
1237
- targetIssueId: string;
1238
- staleness: "strict" | "lenient";
1239
- comment?: string | null | undefined;
1240
- assigneeAgentId?: string | null | undefined;
1241
- assigneeUserId?: string | null | undefined;
1242
- } | {
1243
- type: "cancel_issue_tree";
1244
- targetIssueId: string;
1245
- staleness: "strict";
1246
- reasonComment: string;
1247
- } | {
1248
- type: "resolve_blocker";
1249
- targetIssueId: string;
1250
- staleness: "strict" | "lenient";
1251
- removeBlockedByIssueIds: string[];
1252
- })[];
1253
- description?: string | null | undefined;
1254
- style?: "default" | "destructive" | "primary" | undefined;
1255
- }>, "many">, {
1256
- label: string;
1257
- id: string;
1258
- effects: ({
1259
- type: "comment_on_issue";
1260
- bodyMarkdown: string;
1261
- targetIssueId: string;
1262
- staleness: "strict" | "lenient";
1263
- } | {
1264
- draft: {
1265
- title: string;
1266
- description?: string | null | undefined;
1267
- projectId?: string | null | undefined;
1268
- parentId?: string | null | undefined;
1269
- assigneeAgentId?: string | null | undefined;
1270
- assigneeUserId?: string | null | undefined;
1271
- goalId?: string | null | undefined;
1272
- blockedByIssueIds?: string[] | undefined;
1273
- };
1274
- type: "create_issue";
1275
- targetIssueId: string;
1276
- staleness: "strict" | "lenient";
1277
- } | {
1278
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1279
- type: "update_issue_status";
1280
- targetIssueId: string;
1281
- staleness: "strict" | "lenient";
1282
- comment?: string | null | undefined;
1283
- } | {
1284
- type: "assign_issue";
1285
- targetIssueId: string;
1286
- staleness: "strict" | "lenient";
1287
- comment?: string | null | undefined;
1288
- assigneeAgentId?: string | null | undefined;
1289
- assigneeUserId?: string | null | undefined;
1290
- } | {
1291
- type: "cancel_issue_tree";
1292
- targetIssueId: string;
1293
- staleness: "strict";
1294
- reasonComment: string;
1295
- } | {
1296
- type: "resolve_blocker";
1297
- targetIssueId: string;
1298
- staleness: "strict" | "lenient";
1299
- removeBlockedByIssueIds: string[];
1300
- })[];
1301
- description?: string | null | undefined;
1302
- style?: "default" | "destructive" | "primary" | undefined;
1303
- }[], {
1304
- label: string;
1305
- id: string;
1306
- effects: ({
1307
- type: "comment_on_issue";
1308
- bodyMarkdown: string;
1309
- targetIssueId: string;
1310
- staleness: "strict" | "lenient";
1311
- } | {
1312
- draft: {
1313
- title: string;
1314
- description?: string | null | undefined;
1315
- projectId?: string | null | undefined;
1316
- parentId?: string | null | undefined;
1317
- assigneeAgentId?: string | null | undefined;
1318
- assigneeUserId?: string | null | undefined;
1319
- goalId?: string | null | undefined;
1320
- blockedByIssueIds?: string[] | undefined;
1321
- };
1322
- type: "create_issue";
1323
- targetIssueId: string;
1324
- staleness: "strict" | "lenient";
1325
- } | {
1326
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1327
- type: "update_issue_status";
1328
- targetIssueId: string;
1329
- staleness: "strict" | "lenient";
1330
- comment?: string | null | undefined;
1331
- } | {
1332
- type: "assign_issue";
1333
- targetIssueId: string;
1334
- staleness: "strict" | "lenient";
1335
- comment?: string | null | undefined;
1336
- assigneeAgentId?: string | null | undefined;
1337
- assigneeUserId?: string | null | undefined;
1338
- } | {
1339
- type: "cancel_issue_tree";
1340
- targetIssueId: string;
1341
- staleness: "strict";
1342
- reasonComment: string;
1343
- } | {
1344
- type: "resolve_blocker";
1345
- targetIssueId: string;
1346
- staleness: "strict" | "lenient";
1347
- removeBlockedByIssueIds: string[];
1348
- })[];
1349
- description?: string | null | undefined;
1350
- style?: "default" | "destructive" | "primary" | undefined;
1351
- }[]>;
1352
- export declare const decisionInputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
305
+ }, z.core.$strip>], "type">>;
306
+ }, z.core.$strip>>;
307
+ export declare const decisionInputsSchema: z.ZodArray<z.ZodObject<{
1353
308
  id: z.ZodString;
1354
309
  label: z.ZodString;
1355
310
  placeholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1356
311
  required: z.ZodOptional<z.ZodBoolean>;
1357
312
  maxLength: z.ZodOptional<z.ZodNumber>;
1358
- }, "strip", z.ZodTypeAny, {
1359
- label: string;
1360
- id: string;
1361
- required?: boolean | undefined;
1362
- maxLength?: number | undefined;
1363
- placeholder?: string | null | undefined;
1364
- }, {
1365
- label: string;
1366
- id: string;
1367
- required?: boolean | undefined;
1368
- maxLength?: number | undefined;
1369
- placeholder?: string | null | undefined;
1370
- }>, "many">, {
1371
- label: string;
1372
- id: string;
1373
- required?: boolean | undefined;
1374
- maxLength?: number | undefined;
1375
- placeholder?: string | null | undefined;
1376
- }[], {
1377
- label: string;
1378
- id: string;
1379
- required?: boolean | undefined;
1380
- maxLength?: number | undefined;
1381
- placeholder?: string | null | undefined;
1382
- }[]>;
313
+ }, z.core.$strip>>;
1383
314
  export declare const decisionSpecSchema: z.ZodObject<{
1384
- options: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
315
+ options: z.ZodArray<z.ZodObject<{
1385
316
  id: z.ZodString;
1386
317
  label: z.ZodString;
1387
318
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1388
- style: z.ZodOptional<z.ZodEnum<["default", "primary", "destructive"]>>;
1389
- effects: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
319
+ style: z.ZodOptional<z.ZodEnum<{
320
+ default: "default";
321
+ destructive: "destructive";
322
+ primary: "primary";
323
+ }>>;
324
+ effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1390
325
  bodyMarkdown: z.ZodString;
1391
326
  targetIssueId: z.ZodString;
1392
- staleness: z.ZodEnum<["strict", "lenient"]>;
327
+ staleness: z.ZodEnum<{
328
+ strict: "strict";
329
+ lenient: "lenient";
330
+ }>;
1393
331
  type: z.ZodLiteral<"comment_on_issue">;
1394
- }, "strip", z.ZodTypeAny, {
1395
- type: "comment_on_issue";
1396
- bodyMarkdown: string;
1397
- targetIssueId: string;
1398
- staleness: "strict" | "lenient";
1399
- }, {
1400
- type: "comment_on_issue";
1401
- bodyMarkdown: string;
1402
- targetIssueId: string;
1403
- staleness: "strict" | "lenient";
1404
- }>, z.ZodObject<{
332
+ }, z.core.$strip>, z.ZodObject<{
1405
333
  draft: z.ZodObject<{
1406
334
  title: z.ZodString;
1407
335
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1410,646 +338,64 @@ export declare const decisionSpecSchema: z.ZodObject<{
1410
338
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1411
339
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1412
340
  goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1413
- blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1414
- }, "strip", z.ZodTypeAny, {
1415
- title: string;
1416
- description?: string | null | undefined;
1417
- projectId?: string | null | undefined;
1418
- parentId?: string | null | undefined;
1419
- assigneeAgentId?: string | null | undefined;
1420
- assigneeUserId?: string | null | undefined;
1421
- goalId?: string | null | undefined;
1422
- blockedByIssueIds?: string[] | undefined;
1423
- }, {
1424
- title: string;
1425
- description?: string | null | undefined;
1426
- projectId?: string | null | undefined;
1427
- parentId?: string | null | undefined;
1428
- assigneeAgentId?: string | null | undefined;
1429
- assigneeUserId?: string | null | undefined;
1430
- goalId?: string | null | undefined;
1431
- blockedByIssueIds?: string[] | undefined;
1432
- }>;
341
+ blockedByIssueIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
342
+ }, z.core.$strip>;
1433
343
  targetIssueId: z.ZodString;
1434
- staleness: z.ZodEnum<["strict", "lenient"]>;
344
+ staleness: z.ZodEnum<{
345
+ strict: "strict";
346
+ lenient: "lenient";
347
+ }>;
1435
348
  type: z.ZodLiteral<"create_issue">;
1436
- }, "strip", z.ZodTypeAny, {
1437
- draft: {
1438
- title: string;
1439
- description?: string | null | undefined;
1440
- projectId?: string | null | undefined;
1441
- parentId?: string | null | undefined;
1442
- assigneeAgentId?: string | null | undefined;
1443
- assigneeUserId?: string | null | undefined;
1444
- goalId?: string | null | undefined;
1445
- blockedByIssueIds?: string[] | undefined;
1446
- };
1447
- type: "create_issue";
1448
- targetIssueId: string;
1449
- staleness: "strict" | "lenient";
1450
- }, {
1451
- draft: {
1452
- title: string;
1453
- description?: string | null | undefined;
1454
- projectId?: string | null | undefined;
1455
- parentId?: string | null | undefined;
1456
- assigneeAgentId?: string | null | undefined;
1457
- assigneeUserId?: string | null | undefined;
1458
- goalId?: string | null | undefined;
1459
- blockedByIssueIds?: string[] | undefined;
1460
- };
1461
- type: "create_issue";
1462
- targetIssueId: string;
1463
- staleness: "strict" | "lenient";
1464
- }>, z.ZodObject<{
1465
- status: z.ZodEnum<["backlog", "todo", "in_progress", "in_review", "done", "blocked", "cancelled"]>;
349
+ }, z.core.$strip>, z.ZodObject<{
350
+ status: z.ZodEnum<{
351
+ backlog: "backlog";
352
+ todo: "todo";
353
+ in_progress: "in_progress";
354
+ in_review: "in_review";
355
+ done: "done";
356
+ blocked: "blocked";
357
+ cancelled: "cancelled";
358
+ }>;
1466
359
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1467
360
  targetIssueId: z.ZodString;
1468
- staleness: z.ZodEnum<["strict", "lenient"]>;
361
+ staleness: z.ZodEnum<{
362
+ strict: "strict";
363
+ lenient: "lenient";
364
+ }>;
1469
365
  type: z.ZodLiteral<"update_issue_status">;
1470
- }, "strip", z.ZodTypeAny, {
1471
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1472
- type: "update_issue_status";
1473
- targetIssueId: string;
1474
- staleness: "strict" | "lenient";
1475
- comment?: string | null | undefined;
1476
- }, {
1477
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1478
- type: "update_issue_status";
1479
- targetIssueId: string;
1480
- staleness: "strict" | "lenient";
1481
- comment?: string | null | undefined;
1482
- }>, z.ZodObject<{
366
+ }, z.core.$strip>, z.ZodObject<{
1483
367
  assigneeAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1484
368
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1485
369
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1486
370
  targetIssueId: z.ZodString;
1487
- staleness: z.ZodEnum<["strict", "lenient"]>;
371
+ staleness: z.ZodEnum<{
372
+ strict: "strict";
373
+ lenient: "lenient";
374
+ }>;
1488
375
  type: z.ZodLiteral<"assign_issue">;
1489
- }, "strip", z.ZodTypeAny, {
1490
- type: "assign_issue";
1491
- targetIssueId: string;
1492
- staleness: "strict" | "lenient";
1493
- comment?: string | null | undefined;
1494
- assigneeAgentId?: string | null | undefined;
1495
- assigneeUserId?: string | null | undefined;
1496
- }, {
1497
- type: "assign_issue";
1498
- targetIssueId: string;
1499
- staleness: "strict" | "lenient";
1500
- comment?: string | null | undefined;
1501
- assigneeAgentId?: string | null | undefined;
1502
- assigneeUserId?: string | null | undefined;
1503
- }>, z.ZodObject<{
376
+ }, z.core.$strip>, z.ZodObject<{
1504
377
  type: z.ZodLiteral<"cancel_issue_tree">;
1505
378
  targetIssueId: z.ZodString;
1506
379
  staleness: z.ZodLiteral<"strict">;
1507
380
  reasonComment: z.ZodString;
1508
- }, "strip", z.ZodTypeAny, {
1509
- type: "cancel_issue_tree";
1510
- targetIssueId: string;
1511
- staleness: "strict";
1512
- reasonComment: string;
1513
- }, {
1514
- type: "cancel_issue_tree";
1515
- targetIssueId: string;
1516
- staleness: "strict";
1517
- reasonComment: string;
1518
- }>, z.ZodObject<{
1519
- removeBlockedByIssueIds: z.ZodArray<z.ZodString, "many">;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ removeBlockedByIssueIds: z.ZodArray<z.ZodString>;
1520
383
  targetIssueId: z.ZodString;
1521
- staleness: z.ZodEnum<["strict", "lenient"]>;
384
+ staleness: z.ZodEnum<{
385
+ strict: "strict";
386
+ lenient: "lenient";
387
+ }>;
1522
388
  type: z.ZodLiteral<"resolve_blocker">;
1523
- }, "strip", z.ZodTypeAny, {
1524
- type: "resolve_blocker";
1525
- targetIssueId: string;
1526
- staleness: "strict" | "lenient";
1527
- removeBlockedByIssueIds: string[];
1528
- }, {
1529
- type: "resolve_blocker";
1530
- targetIssueId: string;
1531
- staleness: "strict" | "lenient";
1532
- removeBlockedByIssueIds: string[];
1533
- }>]>, {
1534
- type: "comment_on_issue";
1535
- bodyMarkdown: string;
1536
- targetIssueId: string;
1537
- staleness: "strict" | "lenient";
1538
- } | {
1539
- draft: {
1540
- title: string;
1541
- description?: string | null | undefined;
1542
- projectId?: string | null | undefined;
1543
- parentId?: string | null | undefined;
1544
- assigneeAgentId?: string | null | undefined;
1545
- assigneeUserId?: string | null | undefined;
1546
- goalId?: string | null | undefined;
1547
- blockedByIssueIds?: string[] | undefined;
1548
- };
1549
- type: "create_issue";
1550
- targetIssueId: string;
1551
- staleness: "strict" | "lenient";
1552
- } | {
1553
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1554
- type: "update_issue_status";
1555
- targetIssueId: string;
1556
- staleness: "strict" | "lenient";
1557
- comment?: string | null | undefined;
1558
- } | {
1559
- type: "assign_issue";
1560
- targetIssueId: string;
1561
- staleness: "strict" | "lenient";
1562
- comment?: string | null | undefined;
1563
- assigneeAgentId?: string | null | undefined;
1564
- assigneeUserId?: string | null | undefined;
1565
- } | {
1566
- type: "cancel_issue_tree";
1567
- targetIssueId: string;
1568
- staleness: "strict";
1569
- reasonComment: string;
1570
- } | {
1571
- type: "resolve_blocker";
1572
- targetIssueId: string;
1573
- staleness: "strict" | "lenient";
1574
- removeBlockedByIssueIds: string[];
1575
- }, {
1576
- type: "comment_on_issue";
1577
- bodyMarkdown: string;
1578
- targetIssueId: string;
1579
- staleness: "strict" | "lenient";
1580
- } | {
1581
- draft: {
1582
- title: string;
1583
- description?: string | null | undefined;
1584
- projectId?: string | null | undefined;
1585
- parentId?: string | null | undefined;
1586
- assigneeAgentId?: string | null | undefined;
1587
- assigneeUserId?: string | null | undefined;
1588
- goalId?: string | null | undefined;
1589
- blockedByIssueIds?: string[] | undefined;
1590
- };
1591
- type: "create_issue";
1592
- targetIssueId: string;
1593
- staleness: "strict" | "lenient";
1594
- } | {
1595
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1596
- type: "update_issue_status";
1597
- targetIssueId: string;
1598
- staleness: "strict" | "lenient";
1599
- comment?: string | null | undefined;
1600
- } | {
1601
- type: "assign_issue";
1602
- targetIssueId: string;
1603
- staleness: "strict" | "lenient";
1604
- comment?: string | null | undefined;
1605
- assigneeAgentId?: string | null | undefined;
1606
- assigneeUserId?: string | null | undefined;
1607
- } | {
1608
- type: "cancel_issue_tree";
1609
- targetIssueId: string;
1610
- staleness: "strict";
1611
- reasonComment: string;
1612
- } | {
1613
- type: "resolve_blocker";
1614
- targetIssueId: string;
1615
- staleness: "strict" | "lenient";
1616
- removeBlockedByIssueIds: string[];
1617
- }>, "many">;
1618
- }, "strip", z.ZodTypeAny, {
1619
- label: string;
1620
- id: string;
1621
- effects: ({
1622
- type: "comment_on_issue";
1623
- bodyMarkdown: string;
1624
- targetIssueId: string;
1625
- staleness: "strict" | "lenient";
1626
- } | {
1627
- draft: {
1628
- title: string;
1629
- description?: string | null | undefined;
1630
- projectId?: string | null | undefined;
1631
- parentId?: string | null | undefined;
1632
- assigneeAgentId?: string | null | undefined;
1633
- assigneeUserId?: string | null | undefined;
1634
- goalId?: string | null | undefined;
1635
- blockedByIssueIds?: string[] | undefined;
1636
- };
1637
- type: "create_issue";
1638
- targetIssueId: string;
1639
- staleness: "strict" | "lenient";
1640
- } | {
1641
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1642
- type: "update_issue_status";
1643
- targetIssueId: string;
1644
- staleness: "strict" | "lenient";
1645
- comment?: string | null | undefined;
1646
- } | {
1647
- type: "assign_issue";
1648
- targetIssueId: string;
1649
- staleness: "strict" | "lenient";
1650
- comment?: string | null | undefined;
1651
- assigneeAgentId?: string | null | undefined;
1652
- assigneeUserId?: string | null | undefined;
1653
- } | {
1654
- type: "cancel_issue_tree";
1655
- targetIssueId: string;
1656
- staleness: "strict";
1657
- reasonComment: string;
1658
- } | {
1659
- type: "resolve_blocker";
1660
- targetIssueId: string;
1661
- staleness: "strict" | "lenient";
1662
- removeBlockedByIssueIds: string[];
1663
- })[];
1664
- description?: string | null | undefined;
1665
- style?: "default" | "destructive" | "primary" | undefined;
1666
- }, {
1667
- label: string;
1668
- id: string;
1669
- effects: ({
1670
- type: "comment_on_issue";
1671
- bodyMarkdown: string;
1672
- targetIssueId: string;
1673
- staleness: "strict" | "lenient";
1674
- } | {
1675
- draft: {
1676
- title: string;
1677
- description?: string | null | undefined;
1678
- projectId?: string | null | undefined;
1679
- parentId?: string | null | undefined;
1680
- assigneeAgentId?: string | null | undefined;
1681
- assigneeUserId?: string | null | undefined;
1682
- goalId?: string | null | undefined;
1683
- blockedByIssueIds?: string[] | undefined;
1684
- };
1685
- type: "create_issue";
1686
- targetIssueId: string;
1687
- staleness: "strict" | "lenient";
1688
- } | {
1689
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1690
- type: "update_issue_status";
1691
- targetIssueId: string;
1692
- staleness: "strict" | "lenient";
1693
- comment?: string | null | undefined;
1694
- } | {
1695
- type: "assign_issue";
1696
- targetIssueId: string;
1697
- staleness: "strict" | "lenient";
1698
- comment?: string | null | undefined;
1699
- assigneeAgentId?: string | null | undefined;
1700
- assigneeUserId?: string | null | undefined;
1701
- } | {
1702
- type: "cancel_issue_tree";
1703
- targetIssueId: string;
1704
- staleness: "strict";
1705
- reasonComment: string;
1706
- } | {
1707
- type: "resolve_blocker";
1708
- targetIssueId: string;
1709
- staleness: "strict" | "lenient";
1710
- removeBlockedByIssueIds: string[];
1711
- })[];
1712
- description?: string | null | undefined;
1713
- style?: "default" | "destructive" | "primary" | undefined;
1714
- }>, {
1715
- label: string;
1716
- id: string;
1717
- effects: ({
1718
- type: "comment_on_issue";
1719
- bodyMarkdown: string;
1720
- targetIssueId: string;
1721
- staleness: "strict" | "lenient";
1722
- } | {
1723
- draft: {
1724
- title: string;
1725
- description?: string | null | undefined;
1726
- projectId?: string | null | undefined;
1727
- parentId?: string | null | undefined;
1728
- assigneeAgentId?: string | null | undefined;
1729
- assigneeUserId?: string | null | undefined;
1730
- goalId?: string | null | undefined;
1731
- blockedByIssueIds?: string[] | undefined;
1732
- };
1733
- type: "create_issue";
1734
- targetIssueId: string;
1735
- staleness: "strict" | "lenient";
1736
- } | {
1737
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1738
- type: "update_issue_status";
1739
- targetIssueId: string;
1740
- staleness: "strict" | "lenient";
1741
- comment?: string | null | undefined;
1742
- } | {
1743
- type: "assign_issue";
1744
- targetIssueId: string;
1745
- staleness: "strict" | "lenient";
1746
- comment?: string | null | undefined;
1747
- assigneeAgentId?: string | null | undefined;
1748
- assigneeUserId?: string | null | undefined;
1749
- } | {
1750
- type: "cancel_issue_tree";
1751
- targetIssueId: string;
1752
- staleness: "strict";
1753
- reasonComment: string;
1754
- } | {
1755
- type: "resolve_blocker";
1756
- targetIssueId: string;
1757
- staleness: "strict" | "lenient";
1758
- removeBlockedByIssueIds: string[];
1759
- })[];
1760
- description?: string | null | undefined;
1761
- style?: "default" | "destructive" | "primary" | undefined;
1762
- }, {
1763
- label: string;
1764
- id: string;
1765
- effects: ({
1766
- type: "comment_on_issue";
1767
- bodyMarkdown: string;
1768
- targetIssueId: string;
1769
- staleness: "strict" | "lenient";
1770
- } | {
1771
- draft: {
1772
- title: string;
1773
- description?: string | null | undefined;
1774
- projectId?: string | null | undefined;
1775
- parentId?: string | null | undefined;
1776
- assigneeAgentId?: string | null | undefined;
1777
- assigneeUserId?: string | null | undefined;
1778
- goalId?: string | null | undefined;
1779
- blockedByIssueIds?: string[] | undefined;
1780
- };
1781
- type: "create_issue";
1782
- targetIssueId: string;
1783
- staleness: "strict" | "lenient";
1784
- } | {
1785
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1786
- type: "update_issue_status";
1787
- targetIssueId: string;
1788
- staleness: "strict" | "lenient";
1789
- comment?: string | null | undefined;
1790
- } | {
1791
- type: "assign_issue";
1792
- targetIssueId: string;
1793
- staleness: "strict" | "lenient";
1794
- comment?: string | null | undefined;
1795
- assigneeAgentId?: string | null | undefined;
1796
- assigneeUserId?: string | null | undefined;
1797
- } | {
1798
- type: "cancel_issue_tree";
1799
- targetIssueId: string;
1800
- staleness: "strict";
1801
- reasonComment: string;
1802
- } | {
1803
- type: "resolve_blocker";
1804
- targetIssueId: string;
1805
- staleness: "strict" | "lenient";
1806
- removeBlockedByIssueIds: string[];
1807
- })[];
1808
- description?: string | null | undefined;
1809
- style?: "default" | "destructive" | "primary" | undefined;
1810
- }>, "many">, {
1811
- label: string;
1812
- id: string;
1813
- effects: ({
1814
- type: "comment_on_issue";
1815
- bodyMarkdown: string;
1816
- targetIssueId: string;
1817
- staleness: "strict" | "lenient";
1818
- } | {
1819
- draft: {
1820
- title: string;
1821
- description?: string | null | undefined;
1822
- projectId?: string | null | undefined;
1823
- parentId?: string | null | undefined;
1824
- assigneeAgentId?: string | null | undefined;
1825
- assigneeUserId?: string | null | undefined;
1826
- goalId?: string | null | undefined;
1827
- blockedByIssueIds?: string[] | undefined;
1828
- };
1829
- type: "create_issue";
1830
- targetIssueId: string;
1831
- staleness: "strict" | "lenient";
1832
- } | {
1833
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1834
- type: "update_issue_status";
1835
- targetIssueId: string;
1836
- staleness: "strict" | "lenient";
1837
- comment?: string | null | undefined;
1838
- } | {
1839
- type: "assign_issue";
1840
- targetIssueId: string;
1841
- staleness: "strict" | "lenient";
1842
- comment?: string | null | undefined;
1843
- assigneeAgentId?: string | null | undefined;
1844
- assigneeUserId?: string | null | undefined;
1845
- } | {
1846
- type: "cancel_issue_tree";
1847
- targetIssueId: string;
1848
- staleness: "strict";
1849
- reasonComment: string;
1850
- } | {
1851
- type: "resolve_blocker";
1852
- targetIssueId: string;
1853
- staleness: "strict" | "lenient";
1854
- removeBlockedByIssueIds: string[];
1855
- })[];
1856
- description?: string | null | undefined;
1857
- style?: "default" | "destructive" | "primary" | undefined;
1858
- }[], {
1859
- label: string;
1860
- id: string;
1861
- effects: ({
1862
- type: "comment_on_issue";
1863
- bodyMarkdown: string;
1864
- targetIssueId: string;
1865
- staleness: "strict" | "lenient";
1866
- } | {
1867
- draft: {
1868
- title: string;
1869
- description?: string | null | undefined;
1870
- projectId?: string | null | undefined;
1871
- parentId?: string | null | undefined;
1872
- assigneeAgentId?: string | null | undefined;
1873
- assigneeUserId?: string | null | undefined;
1874
- goalId?: string | null | undefined;
1875
- blockedByIssueIds?: string[] | undefined;
1876
- };
1877
- type: "create_issue";
1878
- targetIssueId: string;
1879
- staleness: "strict" | "lenient";
1880
- } | {
1881
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1882
- type: "update_issue_status";
1883
- targetIssueId: string;
1884
- staleness: "strict" | "lenient";
1885
- comment?: string | null | undefined;
1886
- } | {
1887
- type: "assign_issue";
1888
- targetIssueId: string;
1889
- staleness: "strict" | "lenient";
1890
- comment?: string | null | undefined;
1891
- assigneeAgentId?: string | null | undefined;
1892
- assigneeUserId?: string | null | undefined;
1893
- } | {
1894
- type: "cancel_issue_tree";
1895
- targetIssueId: string;
1896
- staleness: "strict";
1897
- reasonComment: string;
1898
- } | {
1899
- type: "resolve_blocker";
1900
- targetIssueId: string;
1901
- staleness: "strict" | "lenient";
1902
- removeBlockedByIssueIds: string[];
1903
- })[];
1904
- description?: string | null | undefined;
1905
- style?: "default" | "destructive" | "primary" | undefined;
1906
- }[]>;
1907
- inputs: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodObject<{
389
+ }, z.core.$strip>], "type">>;
390
+ }, z.core.$strip>>;
391
+ inputs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1908
392
  id: z.ZodString;
1909
393
  label: z.ZodString;
1910
394
  placeholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1911
395
  required: z.ZodOptional<z.ZodBoolean>;
1912
396
  maxLength: z.ZodOptional<z.ZodNumber>;
1913
- }, "strip", z.ZodTypeAny, {
1914
- label: string;
1915
- id: string;
1916
- required?: boolean | undefined;
1917
- maxLength?: number | undefined;
1918
- placeholder?: string | null | undefined;
1919
- }, {
1920
- label: string;
1921
- id: string;
1922
- required?: boolean | undefined;
1923
- maxLength?: number | undefined;
1924
- placeholder?: string | null | undefined;
1925
- }>, "many">, {
1926
- label: string;
1927
- id: string;
1928
- required?: boolean | undefined;
1929
- maxLength?: number | undefined;
1930
- placeholder?: string | null | undefined;
1931
- }[], {
1932
- label: string;
1933
- id: string;
1934
- required?: boolean | undefined;
1935
- maxLength?: number | undefined;
1936
- placeholder?: string | null | undefined;
1937
- }[]>>>;
1938
- }, "strip", z.ZodTypeAny, {
1939
- options: {
1940
- label: string;
1941
- id: string;
1942
- effects: ({
1943
- type: "comment_on_issue";
1944
- bodyMarkdown: string;
1945
- targetIssueId: string;
1946
- staleness: "strict" | "lenient";
1947
- } | {
1948
- draft: {
1949
- title: string;
1950
- description?: string | null | undefined;
1951
- projectId?: string | null | undefined;
1952
- parentId?: string | null | undefined;
1953
- assigneeAgentId?: string | null | undefined;
1954
- assigneeUserId?: string | null | undefined;
1955
- goalId?: string | null | undefined;
1956
- blockedByIssueIds?: string[] | undefined;
1957
- };
1958
- type: "create_issue";
1959
- targetIssueId: string;
1960
- staleness: "strict" | "lenient";
1961
- } | {
1962
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
1963
- type: "update_issue_status";
1964
- targetIssueId: string;
1965
- staleness: "strict" | "lenient";
1966
- comment?: string | null | undefined;
1967
- } | {
1968
- type: "assign_issue";
1969
- targetIssueId: string;
1970
- staleness: "strict" | "lenient";
1971
- comment?: string | null | undefined;
1972
- assigneeAgentId?: string | null | undefined;
1973
- assigneeUserId?: string | null | undefined;
1974
- } | {
1975
- type: "cancel_issue_tree";
1976
- targetIssueId: string;
1977
- staleness: "strict";
1978
- reasonComment: string;
1979
- } | {
1980
- type: "resolve_blocker";
1981
- targetIssueId: string;
1982
- staleness: "strict" | "lenient";
1983
- removeBlockedByIssueIds: string[];
1984
- })[];
1985
- description?: string | null | undefined;
1986
- style?: "default" | "destructive" | "primary" | undefined;
1987
- }[];
1988
- inputs?: {
1989
- label: string;
1990
- id: string;
1991
- required?: boolean | undefined;
1992
- maxLength?: number | undefined;
1993
- placeholder?: string | null | undefined;
1994
- }[] | null | undefined;
1995
- }, {
1996
- options: {
1997
- label: string;
1998
- id: string;
1999
- effects: ({
2000
- type: "comment_on_issue";
2001
- bodyMarkdown: string;
2002
- targetIssueId: string;
2003
- staleness: "strict" | "lenient";
2004
- } | {
2005
- draft: {
2006
- title: string;
2007
- description?: string | null | undefined;
2008
- projectId?: string | null | undefined;
2009
- parentId?: string | null | undefined;
2010
- assigneeAgentId?: string | null | undefined;
2011
- assigneeUserId?: string | null | undefined;
2012
- goalId?: string | null | undefined;
2013
- blockedByIssueIds?: string[] | undefined;
2014
- };
2015
- type: "create_issue";
2016
- targetIssueId: string;
2017
- staleness: "strict" | "lenient";
2018
- } | {
2019
- status: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
2020
- type: "update_issue_status";
2021
- targetIssueId: string;
2022
- staleness: "strict" | "lenient";
2023
- comment?: string | null | undefined;
2024
- } | {
2025
- type: "assign_issue";
2026
- targetIssueId: string;
2027
- staleness: "strict" | "lenient";
2028
- comment?: string | null | undefined;
2029
- assigneeAgentId?: string | null | undefined;
2030
- assigneeUserId?: string | null | undefined;
2031
- } | {
2032
- type: "cancel_issue_tree";
2033
- targetIssueId: string;
2034
- staleness: "strict";
2035
- reasonComment: string;
2036
- } | {
2037
- type: "resolve_blocker";
2038
- targetIssueId: string;
2039
- staleness: "strict" | "lenient";
2040
- removeBlockedByIssueIds: string[];
2041
- })[];
2042
- description?: string | null | undefined;
2043
- style?: "default" | "destructive" | "primary" | undefined;
2044
- }[];
2045
- inputs?: {
2046
- label: string;
2047
- id: string;
2048
- required?: boolean | undefined;
2049
- maxLength?: number | undefined;
2050
- placeholder?: string | null | undefined;
2051
- }[] | null | undefined;
2052
- }>;
397
+ }, z.core.$strip>>>>;
398
+ }, z.core.$strip>;
2053
399
  export type DecisionEffectInput = z.input<typeof decisionEffectSchema>;
2054
400
  export type DecisionOptionInput = z.input<typeof decisionOptionSchema>;
2055
401
  export type DecisionInputInput = z.input<typeof decisionInputSchema>;