@evermore.work/shared 2026.509.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/dist/adapter-type.d.ts +4 -0
  2. package/dist/adapter-type.d.ts.map +1 -0
  3. package/dist/adapter-type.js +14 -0
  4. package/dist/adapter-type.js.map +1 -0
  5. package/dist/adapter-types.test.d.ts +2 -0
  6. package/dist/adapter-types.test.d.ts.map +1 -0
  7. package/dist/adapter-types.test.js +46 -0
  8. package/dist/adapter-types.test.js.map +1 -0
  9. package/dist/agent-url-key.d.ts +4 -0
  10. package/dist/agent-url-key.d.ts.map +1 -0
  11. package/dist/agent-url-key.js +22 -0
  12. package/dist/agent-url-key.js.map +1 -0
  13. package/dist/api.d.ts +23 -0
  14. package/dist/api.d.ts.map +1 -0
  15. package/dist/api.js +23 -0
  16. package/dist/api.js.map +1 -0
  17. package/dist/config-schema.d.ts +725 -0
  18. package/dist/config-schema.d.ts.map +1 -0
  19. package/dist/config-schema.js +160 -0
  20. package/dist/config-schema.js.map +1 -0
  21. package/dist/constants.d.ts +323 -0
  22. package/dist/constants.d.ts.map +1 -0
  23. package/dist/constants.js +761 -0
  24. package/dist/constants.js.map +1 -0
  25. package/dist/environment-support.d.ts +37 -0
  26. package/dist/environment-support.d.ts.map +1 -0
  27. package/dist/environment-support.js +92 -0
  28. package/dist/environment-support.js.map +1 -0
  29. package/dist/environment-support.test.d.ts +2 -0
  30. package/dist/environment-support.test.d.ts.map +1 -0
  31. package/dist/environment-support.test.js +11 -0
  32. package/dist/environment-support.test.js.map +1 -0
  33. package/dist/execution-workspace-guards.d.ts +6 -0
  34. package/dist/execution-workspace-guards.d.ts.map +1 -0
  35. package/dist/execution-workspace-guards.js +12 -0
  36. package/dist/execution-workspace-guards.js.map +1 -0
  37. package/dist/index.d.ts +23 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +21 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/issue-references.d.ts +16 -0
  42. package/dist/issue-references.d.ts.map +1 -0
  43. package/dist/issue-references.js +160 -0
  44. package/dist/issue-references.js.map +1 -0
  45. package/dist/issue-references.test.d.ts +2 -0
  46. package/dist/issue-references.test.d.ts.map +1 -0
  47. package/dist/issue-references.test.js +56 -0
  48. package/dist/issue-references.test.js.map +1 -0
  49. package/dist/issue-thread-interactions.test.d.ts +2 -0
  50. package/dist/issue-thread-interactions.test.d.ts.map +1 -0
  51. package/dist/issue-thread-interactions.test.js +118 -0
  52. package/dist/issue-thread-interactions.test.js.map +1 -0
  53. package/dist/network-bind.d.ts +27 -0
  54. package/dist/network-bind.d.ts.map +1 -0
  55. package/dist/network-bind.js +75 -0
  56. package/dist/network-bind.js.map +1 -0
  57. package/dist/project-mentions.d.ts +32 -0
  58. package/dist/project-mentions.d.ts.map +1 -0
  59. package/dist/project-mentions.js +210 -0
  60. package/dist/project-mentions.js.map +1 -0
  61. package/dist/project-mentions.test.d.ts +2 -0
  62. package/dist/project-mentions.test.d.ts.map +1 -0
  63. package/dist/project-mentions.test.js +36 -0
  64. package/dist/project-mentions.test.js.map +1 -0
  65. package/dist/project-url-key.d.ts +5 -0
  66. package/dist/project-url-key.d.ts.map +1 -0
  67. package/dist/project-url-key.js +39 -0
  68. package/dist/project-url-key.js.map +1 -0
  69. package/dist/routine-variables.d.ts +21 -0
  70. package/dist/routine-variables.d.ts.map +1 -0
  71. package/dist/routine-variables.js +91 -0
  72. package/dist/routine-variables.js.map +1 -0
  73. package/dist/routine-variables.test.d.ts +2 -0
  74. package/dist/routine-variables.test.d.ts.map +1 -0
  75. package/dist/routine-variables.test.js +58 -0
  76. package/dist/routine-variables.test.js.map +1 -0
  77. package/dist/telemetry/client.d.ts +18 -0
  78. package/dist/telemetry/client.d.ts.map +1 -0
  79. package/dist/telemetry/client.js +105 -0
  80. package/dist/telemetry/client.js.map +1 -0
  81. package/dist/telemetry/config.d.ts +5 -0
  82. package/dist/telemetry/config.d.ts.map +1 -0
  83. package/dist/telemetry/config.js +21 -0
  84. package/dist/telemetry/config.js.map +1 -0
  85. package/dist/telemetry/events.d.ts +41 -0
  86. package/dist/telemetry/events.d.ts.map +1 -0
  87. package/dist/telemetry/events.js +59 -0
  88. package/dist/telemetry/events.js.map +1 -0
  89. package/dist/telemetry/index.d.ts +6 -0
  90. package/dist/telemetry/index.d.ts.map +1 -0
  91. package/dist/telemetry/index.js +5 -0
  92. package/dist/telemetry/index.js.map +1 -0
  93. package/dist/telemetry/state.d.ts +3 -0
  94. package/dist/telemetry/state.d.ts.map +1 -0
  95. package/dist/telemetry/state.js +28 -0
  96. package/dist/telemetry/state.js.map +1 -0
  97. package/dist/telemetry/types.d.ts +28 -0
  98. package/dist/telemetry/types.d.ts.map +1 -0
  99. package/dist/telemetry/types.js +2 -0
  100. package/dist/telemetry/types.js.map +1 -0
  101. package/dist/types/access.d.ts +142 -0
  102. package/dist/types/access.d.ts.map +1 -0
  103. package/dist/types/access.js +2 -0
  104. package/dist/types/access.js.map +1 -0
  105. package/dist/types/activity.d.ts +14 -0
  106. package/dist/types/activity.d.ts.map +1 -0
  107. package/dist/types/activity.js +2 -0
  108. package/dist/types/activity.js.map +1 -0
  109. package/dist/types/adapter-skills.d.ts +31 -0
  110. package/dist/types/adapter-skills.d.ts.map +1 -0
  111. package/dist/types/adapter-skills.js +2 -0
  112. package/dist/types/adapter-skills.js.map +1 -0
  113. package/dist/types/agent.d.ts +117 -0
  114. package/dist/types/agent.d.ts.map +1 -0
  115. package/dist/types/agent.js +2 -0
  116. package/dist/types/agent.js.map +1 -0
  117. package/dist/types/approval.d.ts +26 -0
  118. package/dist/types/approval.d.ts.map +1 -0
  119. package/dist/types/approval.js +2 -0
  120. package/dist/types/approval.js.map +1 -0
  121. package/dist/types/asset.d.ts +16 -0
  122. package/dist/types/asset.d.ts.map +1 -0
  123. package/dist/types/asset.js +2 -0
  124. package/dist/types/asset.js.map +1 -0
  125. package/dist/types/budget.d.ts +86 -0
  126. package/dist/types/budget.d.ts.map +1 -0
  127. package/dist/types/budget.js +2 -0
  128. package/dist/types/budget.js.map +1 -0
  129. package/dist/types/company-portability.d.ts +298 -0
  130. package/dist/types/company-portability.d.ts.map +1 -0
  131. package/dist/types/company-portability.js +2 -0
  132. package/dist/types/company-portability.js.map +1 -0
  133. package/dist/types/company-skill.d.ts +140 -0
  134. package/dist/types/company-skill.d.ts.map +1 -0
  135. package/dist/types/company-skill.js +2 -0
  136. package/dist/types/company-skill.js.map +1 -0
  137. package/dist/types/company.d.ts +25 -0
  138. package/dist/types/company.d.ts.map +1 -0
  139. package/dist/types/company.js +2 -0
  140. package/dist/types/company.js.map +1 -0
  141. package/dist/types/cost.d.ts +120 -0
  142. package/dist/types/cost.d.ts.map +1 -0
  143. package/dist/types/cost.js +2 -0
  144. package/dist/types/cost.js.map +1 -0
  145. package/dist/types/dashboard.d.ts +36 -0
  146. package/dist/types/dashboard.d.ts.map +1 -0
  147. package/dist/types/dashboard.js +2 -0
  148. package/dist/types/dashboard.js.map +1 -0
  149. package/dist/types/environment.d.ts +73 -0
  150. package/dist/types/environment.d.ts.map +1 -0
  151. package/dist/types/environment.js +2 -0
  152. package/dist/types/environment.js.map +1 -0
  153. package/dist/types/feedback.d.ts +95 -0
  154. package/dist/types/feedback.d.ts.map +1 -0
  155. package/dist/types/feedback.js +7 -0
  156. package/dist/types/feedback.js.map +1 -0
  157. package/dist/types/finance.d.ts +57 -0
  158. package/dist/types/finance.d.ts.map +1 -0
  159. package/dist/types/finance.js +2 -0
  160. package/dist/types/finance.js.map +1 -0
  161. package/dist/types/goal.d.ts +14 -0
  162. package/dist/types/goal.d.ts.map +1 -0
  163. package/dist/types/goal.js +2 -0
  164. package/dist/types/goal.js.map +1 -0
  165. package/dist/types/heartbeat.d.ts +158 -0
  166. package/dist/types/heartbeat.d.ts.map +1 -0
  167. package/dist/types/heartbeat.js +2 -0
  168. package/dist/types/heartbeat.js.map +1 -0
  169. package/dist/types/inbox-dismissal.d.ts +10 -0
  170. package/dist/types/inbox-dismissal.d.ts.map +1 -0
  171. package/dist/types/inbox-dismissal.js +2 -0
  172. package/dist/types/inbox-dismissal.js.map +1 -0
  173. package/dist/types/index.d.ts +37 -0
  174. package/dist/types/index.d.ts.map +1 -0
  175. package/dist/types/index.js +3 -0
  176. package/dist/types/index.js.map +1 -0
  177. package/dist/types/instance.d.ts +63 -0
  178. package/dist/types/instance.d.ts.map +1 -0
  179. package/dist/types/instance.js +12 -0
  180. package/dist/types/instance.js.map +1 -0
  181. package/dist/types/issue-tree-control.d.ts +102 -0
  182. package/dist/types/issue-tree-control.d.ts.map +1 -0
  183. package/dist/types/issue-tree-control.js +2 -0
  184. package/dist/types/issue-tree-control.js.map +1 -0
  185. package/dist/types/issue.d.ts +527 -0
  186. package/dist/types/issue.d.ts.map +1 -0
  187. package/dist/types/issue.js +2 -0
  188. package/dist/types/issue.js.map +1 -0
  189. package/dist/types/live.d.ts +9 -0
  190. package/dist/types/live.d.ts.map +1 -0
  191. package/dist/types/live.js +2 -0
  192. package/dist/types/live.js.map +1 -0
  193. package/dist/types/plugin.d.ts +686 -0
  194. package/dist/types/plugin.d.ts.map +1 -0
  195. package/dist/types/plugin.js +2 -0
  196. package/dist/types/plugin.js.map +1 -0
  197. package/dist/types/project.d.ts +82 -0
  198. package/dist/types/project.d.ts.map +1 -0
  199. package/dist/types/project.js +2 -0
  200. package/dist/types/project.js.map +1 -0
  201. package/dist/types/quota.d.ts +26 -0
  202. package/dist/types/quota.d.ts.map +1 -0
  203. package/dist/types/quota.js +2 -0
  204. package/dist/types/quota.js.map +1 -0
  205. package/dist/types/routine.d.ts +185 -0
  206. package/dist/types/routine.d.ts.map +1 -0
  207. package/dist/types/routine.js +2 -0
  208. package/dist/types/routine.js.map +1 -0
  209. package/dist/types/search.d.ts +50 -0
  210. package/dist/types/search.d.ts.map +1 -0
  211. package/dist/types/search.js +2 -0
  212. package/dist/types/search.js.map +1 -0
  213. package/dist/types/secrets.d.ts +32 -0
  214. package/dist/types/secrets.d.ts.map +1 -0
  215. package/dist/types/secrets.js +2 -0
  216. package/dist/types/secrets.js.map +1 -0
  217. package/dist/types/sidebar-badges.d.ts +7 -0
  218. package/dist/types/sidebar-badges.d.ts.map +1 -0
  219. package/dist/types/sidebar-badges.js +2 -0
  220. package/dist/types/sidebar-badges.js.map +1 -0
  221. package/dist/types/sidebar-preferences.d.ts +5 -0
  222. package/dist/types/sidebar-preferences.d.ts.map +1 -0
  223. package/dist/types/sidebar-preferences.js +2 -0
  224. package/dist/types/sidebar-preferences.js.map +1 -0
  225. package/dist/types/user-profile.d.ts +81 -0
  226. package/dist/types/user-profile.d.ts.map +1 -0
  227. package/dist/types/user-profile.js +2 -0
  228. package/dist/types/user-profile.js.map +1 -0
  229. package/dist/types/work-product.d.ts +27 -0
  230. package/dist/types/work-product.d.ts.map +1 -0
  231. package/dist/types/work-product.js +2 -0
  232. package/dist/types/work-product.js.map +1 -0
  233. package/dist/types/workspace-operation.d.ts +26 -0
  234. package/dist/types/workspace-operation.d.ts.map +1 -0
  235. package/dist/types/workspace-operation.js +2 -0
  236. package/dist/types/workspace-operation.js.map +1 -0
  237. package/dist/types/workspace-runtime.d.ts +252 -0
  238. package/dist/types/workspace-runtime.d.ts.map +1 -0
  239. package/dist/types/workspace-runtime.js +2 -0
  240. package/dist/types/workspace-runtime.js.map +1 -0
  241. package/dist/validators/access.d.ts +333 -0
  242. package/dist/validators/access.d.ts.map +1 -0
  243. package/dist/validators/access.js +132 -0
  244. package/dist/validators/access.js.map +1 -0
  245. package/dist/validators/adapter-skills.d.ts +156 -0
  246. package/dist/validators/adapter-skills.d.ts.map +1 -0
  247. package/dist/validators/adapter-skills.js +48 -0
  248. package/dist/validators/adapter-skills.js.map +1 -0
  249. package/dist/validators/agent.d.ts +841 -0
  250. package/dist/validators/agent.d.ts.map +1 -0
  251. package/dist/validators/agent.js +115 -0
  252. package/dist/validators/agent.js.map +1 -0
  253. package/dist/validators/approval.d.ts +51 -0
  254. package/dist/validators/approval.d.ts.map +1 -0
  255. package/dist/validators/approval.js +22 -0
  256. package/dist/validators/approval.js.map +1 -0
  257. package/dist/validators/approval.test.d.ts +2 -0
  258. package/dist/validators/approval.test.d.ts.map +1 -0
  259. package/dist/validators/approval.test.js +25 -0
  260. package/dist/validators/approval.test.js.map +1 -0
  261. package/dist/validators/asset.d.ts +10 -0
  262. package/dist/validators/asset.d.ts.map +1 -0
  263. package/dist/validators/asset.js +11 -0
  264. package/dist/validators/asset.js.map +1 -0
  265. package/dist/validators/budget.d.ts +56 -0
  266. package/dist/validators/budget.d.ts.map +1 -0
  267. package/dist/validators/budget.js +27 -0
  268. package/dist/validators/budget.js.map +1 -0
  269. package/dist/validators/company-portability.d.ts +3453 -0
  270. package/dist/validators/company-portability.d.ts.map +1 -0
  271. package/dist/validators/company-portability.js +231 -0
  272. package/dist/validators/company-portability.js.map +1 -0
  273. package/dist/validators/company-skill.d.ts +797 -0
  274. package/dist/validators/company-skill.d.ts.map +1 -0
  275. package/dist/validators/company-skill.js +116 -0
  276. package/dist/validators/company-skill.js.map +1 -0
  277. package/dist/validators/company.d.ts +91 -0
  278. package/dist/validators/company.d.ts.map +1 -0
  279. package/dist/validators/company.js +43 -0
  280. package/dist/validators/company.js.map +1 -0
  281. package/dist/validators/cost.d.ts +92 -0
  282. package/dist/validators/cost.d.ts.map +1 -0
  283. package/dist/validators/cost.js +26 -0
  284. package/dist/validators/cost.js.map +1 -0
  285. package/dist/validators/environment.d.ts +72 -0
  286. package/dist/validators/environment.d.ts.map +1 -0
  287. package/dist/validators/environment.js +31 -0
  288. package/dist/validators/environment.js.map +1 -0
  289. package/dist/validators/execution-workspace.d.ts +586 -0
  290. package/dist/validators/execution-workspace.d.ts.map +1 -0
  291. package/dist/validators/execution-workspace.js +120 -0
  292. package/dist/validators/execution-workspace.js.map +1 -0
  293. package/dist/validators/feedback.d.ts +26 -0
  294. package/dist/validators/feedback.d.ts.map +1 -0
  295. package/dist/validators/feedback.js +14 -0
  296. package/dist/validators/feedback.js.map +1 -0
  297. package/dist/validators/finance.d.ts +129 -0
  298. package/dist/validators/finance.d.ts.map +1 -0
  299. package/dist/validators/finance.js +32 -0
  300. package/dist/validators/finance.js.map +1 -0
  301. package/dist/validators/goal.d.ts +48 -0
  302. package/dist/validators/goal.d.ts.map +1 -0
  303. package/dist/validators/goal.js +12 -0
  304. package/dist/validators/goal.js.map +1 -0
  305. package/dist/validators/index.d.ts +26 -0
  306. package/dist/validators/index.d.ts.map +1 -0
  307. package/dist/validators/index.js +26 -0
  308. package/dist/validators/index.js.map +1 -0
  309. package/dist/validators/instance.d.ts +137 -0
  310. package/dist/validators/instance.d.ts.map +1 -0
  311. package/dist/validators/instance.js +41 -0
  312. package/dist/validators/instance.js.map +1 -0
  313. package/dist/validators/issue-tree-control.d.ts +100 -0
  314. package/dist/validators/issue-tree-control.d.ts.map +1 -0
  315. package/dist/validators/issue-tree-control.js +31 -0
  316. package/dist/validators/issue-tree-control.js.map +1 -0
  317. package/dist/validators/issue.d.ts +4292 -0
  318. package/dist/validators/issue.d.ts.map +1 -0
  319. package/dist/validators/issue.js +506 -0
  320. package/dist/validators/issue.js.map +1 -0
  321. package/dist/validators/issue.test.d.ts +2 -0
  322. package/dist/validators/issue.test.d.ts.map +1 -0
  323. package/dist/validators/issue.test.js +203 -0
  324. package/dist/validators/issue.test.js.map +1 -0
  325. package/dist/validators/plugin.d.ts +2426 -0
  326. package/dist/validators/plugin.d.ts.map +1 -0
  327. package/dist/validators/plugin.js +837 -0
  328. package/dist/validators/plugin.js.map +1 -0
  329. package/dist/validators/plugin.test.d.ts +2 -0
  330. package/dist/validators/plugin.test.d.ts.map +1 -0
  331. package/dist/validators/plugin.test.js +64 -0
  332. package/dist/validators/plugin.test.js.map +1 -0
  333. package/dist/validators/project.d.ts +784 -0
  334. package/dist/validators/project.d.ts.map +1 -0
  335. package/dist/validators/project.js +102 -0
  336. package/dist/validators/project.js.map +1 -0
  337. package/dist/validators/routine.d.ts +920 -0
  338. package/dist/validators/routine.d.ts.map +1 -0
  339. package/dist/validators/routine.js +125 -0
  340. package/dist/validators/routine.js.map +1 -0
  341. package/dist/validators/routine.test.d.ts +2 -0
  342. package/dist/validators/routine.test.d.ts.map +1 -0
  343. package/dist/validators/routine.test.js +79 -0
  344. package/dist/validators/routine.test.js.map +1 -0
  345. package/dist/validators/search.d.ts +24 -0
  346. package/dist/validators/search.d.ts.map +1 -0
  347. package/dist/validators/search.js +33 -0
  348. package/dist/validators/search.js.map +1 -0
  349. package/dist/validators/secret.d.ts +114 -0
  350. package/dist/validators/secret.d.ts.map +1 -0
  351. package/dist/validators/secret.js +35 -0
  352. package/dist/validators/secret.js.map +1 -0
  353. package/dist/validators/sidebar-preferences.d.ts +20 -0
  354. package/dist/validators/sidebar-preferences.d.ts.map +1 -0
  355. package/dist/validators/sidebar-preferences.js +10 -0
  356. package/dist/validators/sidebar-preferences.js.map +1 -0
  357. package/dist/validators/text.d.ts +4 -0
  358. package/dist/validators/text.d.ts.map +1 -0
  359. package/dist/validators/text.js +9 -0
  360. package/dist/validators/text.js.map +1 -0
  361. package/dist/validators/work-product.d.ts +105 -0
  362. package/dist/validators/work-product.d.ts.map +1 -0
  363. package/dist/validators/work-product.js +46 -0
  364. package/dist/validators/work-product.js.map +1 -0
  365. package/dist/workspace-commands.d.ts +7 -0
  366. package/dist/workspace-commands.d.ts.map +1 -0
  367. package/dist/workspace-commands.js +150 -0
  368. package/dist/workspace-commands.js.map +1 -0
  369. package/dist/workspace-commands.test.d.ts +2 -0
  370. package/dist/workspace-commands.test.d.ts.map +1 -0
  371. package/dist/workspace-commands.test.js +65 -0
  372. package/dist/workspace-commands.test.js.map +1 -0
  373. package/package.json +47 -0
@@ -0,0 +1,3453 @@
1
+ import { z } from "zod";
2
+ export declare const portabilityIncludeSchema: z.ZodObject<{
3
+ company: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4
+ agents: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5
+ projects: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
6
+ issues: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
7
+ skills: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ company?: boolean | undefined;
10
+ projects?: boolean | undefined;
11
+ agents?: boolean | undefined;
12
+ issues?: boolean | undefined;
13
+ skills?: boolean | undefined;
14
+ }, {
15
+ company?: boolean | undefined;
16
+ projects?: boolean | undefined;
17
+ agents?: boolean | undefined;
18
+ issues?: boolean | undefined;
19
+ skills?: boolean | undefined;
20
+ }>;
21
+ export declare const portabilityEnvInputSchema: z.ZodObject<{
22
+ key: z.ZodString;
23
+ description: z.ZodNullable<z.ZodString>;
24
+ agentSlug: z.ZodNullable<z.ZodString>;
25
+ projectSlug: z.ZodNullable<z.ZodString>;
26
+ kind: z.ZodEnum<["secret", "plain"]>;
27
+ requirement: z.ZodEnum<["required", "optional"]>;
28
+ defaultValue: z.ZodNullable<z.ZodString>;
29
+ portability: z.ZodEnum<["portable", "system_dependent"]>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ description: string | null;
32
+ kind: "plain" | "secret";
33
+ key: string;
34
+ defaultValue: string | null;
35
+ agentSlug: string | null;
36
+ projectSlug: string | null;
37
+ requirement: "required" | "optional";
38
+ portability: "portable" | "system_dependent";
39
+ }, {
40
+ description: string | null;
41
+ kind: "plain" | "secret";
42
+ key: string;
43
+ defaultValue: string | null;
44
+ agentSlug: string | null;
45
+ projectSlug: string | null;
46
+ requirement: "required" | "optional";
47
+ portability: "portable" | "system_dependent";
48
+ }>;
49
+ export declare const portabilityFileEntrySchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
50
+ encoding: z.ZodLiteral<"base64">;
51
+ data: z.ZodString;
52
+ contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ encoding: "base64";
55
+ data: string;
56
+ contentType?: string | null | undefined;
57
+ }, {
58
+ encoding: "base64";
59
+ data: string;
60
+ contentType?: string | null | undefined;
61
+ }>]>;
62
+ export declare const portabilityCompanyManifestEntrySchema: z.ZodObject<{
63
+ path: z.ZodString;
64
+ name: z.ZodString;
65
+ description: z.ZodNullable<z.ZodString>;
66
+ brandColor: z.ZodNullable<z.ZodString>;
67
+ logoPath: z.ZodNullable<z.ZodString>;
68
+ attachmentMaxBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
69
+ requireBoardApprovalForNewAgents: z.ZodBoolean;
70
+ feedbackDataSharingEnabled: z.ZodDefault<z.ZodBoolean>;
71
+ feedbackDataSharingConsentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
72
+ feedbackDataSharingConsentByUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
73
+ feedbackDataSharingTermsVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ description: string | null;
76
+ path: string;
77
+ name: string;
78
+ attachmentMaxBytes: number | null;
79
+ requireBoardApprovalForNewAgents: boolean;
80
+ feedbackDataSharingEnabled: boolean;
81
+ feedbackDataSharingConsentAt: string | null;
82
+ feedbackDataSharingConsentByUserId: string | null;
83
+ feedbackDataSharingTermsVersion: string | null;
84
+ brandColor: string | null;
85
+ logoPath: string | null;
86
+ }, {
87
+ description: string | null;
88
+ path: string;
89
+ name: string;
90
+ requireBoardApprovalForNewAgents: boolean;
91
+ brandColor: string | null;
92
+ logoPath: string | null;
93
+ attachmentMaxBytes?: number | null | undefined;
94
+ feedbackDataSharingEnabled?: boolean | undefined;
95
+ feedbackDataSharingConsentAt?: string | null | undefined;
96
+ feedbackDataSharingConsentByUserId?: string | null | undefined;
97
+ feedbackDataSharingTermsVersion?: string | null | undefined;
98
+ }>;
99
+ export declare const portabilitySidebarOrderSchema: z.ZodObject<{
100
+ agents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
101
+ projects: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ projects: string[];
104
+ agents: string[];
105
+ }, {
106
+ projects?: string[] | undefined;
107
+ agents?: string[] | undefined;
108
+ }>;
109
+ export declare const portabilityAgentManifestEntrySchema: z.ZodObject<{
110
+ slug: z.ZodString;
111
+ name: z.ZodString;
112
+ path: z.ZodString;
113
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
114
+ role: z.ZodString;
115
+ title: z.ZodNullable<z.ZodString>;
116
+ icon: z.ZodNullable<z.ZodString>;
117
+ capabilities: z.ZodNullable<z.ZodString>;
118
+ reportsToSlug: z.ZodNullable<z.ZodString>;
119
+ adapterType: z.ZodString;
120
+ adapterConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
121
+ runtimeConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
122
+ permissions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
123
+ budgetMonthlyCents: z.ZodNumber;
124
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ title: string | null;
127
+ path: string;
128
+ name: string;
129
+ metadata: Record<string, unknown> | null;
130
+ budgetMonthlyCents: number;
131
+ slug: string;
132
+ adapterType: string;
133
+ adapterConfig: Record<string, unknown>;
134
+ skills: string[];
135
+ role: string;
136
+ icon: string | null;
137
+ capabilities: string | null;
138
+ reportsToSlug: string | null;
139
+ runtimeConfig: Record<string, unknown>;
140
+ permissions: Record<string, unknown>;
141
+ }, {
142
+ title: string | null;
143
+ path: string;
144
+ name: string;
145
+ metadata: Record<string, unknown> | null;
146
+ budgetMonthlyCents: number;
147
+ slug: string;
148
+ adapterType: string;
149
+ adapterConfig: Record<string, unknown>;
150
+ role: string;
151
+ icon: string | null;
152
+ capabilities: string | null;
153
+ reportsToSlug: string | null;
154
+ runtimeConfig: Record<string, unknown>;
155
+ permissions: Record<string, unknown>;
156
+ skills?: string[] | undefined;
157
+ }>;
158
+ export declare const portabilitySkillManifestEntrySchema: z.ZodObject<{
159
+ key: z.ZodString;
160
+ slug: z.ZodString;
161
+ name: z.ZodString;
162
+ path: z.ZodString;
163
+ description: z.ZodNullable<z.ZodString>;
164
+ sourceType: z.ZodString;
165
+ sourceLocator: z.ZodNullable<z.ZodString>;
166
+ sourceRef: z.ZodNullable<z.ZodString>;
167
+ trustLevel: z.ZodNullable<z.ZodString>;
168
+ compatibility: z.ZodNullable<z.ZodString>;
169
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
170
+ fileInventory: z.ZodDefault<z.ZodArray<z.ZodObject<{
171
+ path: z.ZodString;
172
+ kind: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ kind: string;
175
+ path: string;
176
+ }, {
177
+ kind: string;
178
+ path: string;
179
+ }>, "many">>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ description: string | null;
182
+ path: string;
183
+ name: string;
184
+ metadata: Record<string, unknown> | null;
185
+ key: string;
186
+ slug: string;
187
+ sourceType: string;
188
+ sourceLocator: string | null;
189
+ sourceRef: string | null;
190
+ trustLevel: string | null;
191
+ compatibility: string | null;
192
+ fileInventory: {
193
+ kind: string;
194
+ path: string;
195
+ }[];
196
+ }, {
197
+ description: string | null;
198
+ path: string;
199
+ name: string;
200
+ metadata: Record<string, unknown> | null;
201
+ key: string;
202
+ slug: string;
203
+ sourceType: string;
204
+ sourceLocator: string | null;
205
+ sourceRef: string | null;
206
+ trustLevel: string | null;
207
+ compatibility: string | null;
208
+ fileInventory?: {
209
+ kind: string;
210
+ path: string;
211
+ }[] | undefined;
212
+ }>;
213
+ export declare const portabilityProjectManifestEntrySchema: z.ZodObject<{
214
+ slug: z.ZodString;
215
+ name: z.ZodString;
216
+ path: z.ZodString;
217
+ description: z.ZodNullable<z.ZodString>;
218
+ ownerAgentSlug: z.ZodNullable<z.ZodString>;
219
+ leadAgentSlug: z.ZodNullable<z.ZodString>;
220
+ targetDate: z.ZodNullable<z.ZodString>;
221
+ color: z.ZodNullable<z.ZodString>;
222
+ status: z.ZodNullable<z.ZodString>;
223
+ executionWorkspacePolicy: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
224
+ workspaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
225
+ key: z.ZodString;
226
+ name: z.ZodString;
227
+ sourceType: z.ZodNullable<z.ZodString>;
228
+ repoUrl: z.ZodNullable<z.ZodString>;
229
+ repoRef: z.ZodNullable<z.ZodString>;
230
+ defaultRef: z.ZodNullable<z.ZodString>;
231
+ visibility: z.ZodNullable<z.ZodString>;
232
+ setupCommand: z.ZodNullable<z.ZodString>;
233
+ cleanupCommand: z.ZodNullable<z.ZodString>;
234
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
235
+ isPrimary: z.ZodBoolean;
236
+ }, "strip", z.ZodTypeAny, {
237
+ cleanupCommand: string | null;
238
+ name: string;
239
+ repoUrl: string | null;
240
+ metadata: Record<string, unknown> | null;
241
+ key: string;
242
+ sourceType: string | null;
243
+ repoRef: string | null;
244
+ defaultRef: string | null;
245
+ visibility: string | null;
246
+ setupCommand: string | null;
247
+ isPrimary: boolean;
248
+ }, {
249
+ cleanupCommand: string | null;
250
+ name: string;
251
+ repoUrl: string | null;
252
+ metadata: Record<string, unknown> | null;
253
+ key: string;
254
+ sourceType: string | null;
255
+ repoRef: string | null;
256
+ defaultRef: string | null;
257
+ visibility: string | null;
258
+ setupCommand: string | null;
259
+ isPrimary: boolean;
260
+ }>, "many">>;
261
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ description: string | null;
264
+ status: string | null;
265
+ path: string;
266
+ name: string;
267
+ metadata: Record<string, unknown> | null;
268
+ slug: string;
269
+ color: string | null;
270
+ ownerAgentSlug: string | null;
271
+ leadAgentSlug: string | null;
272
+ targetDate: string | null;
273
+ executionWorkspacePolicy: Record<string, unknown> | null;
274
+ workspaces: {
275
+ cleanupCommand: string | null;
276
+ name: string;
277
+ repoUrl: string | null;
278
+ metadata: Record<string, unknown> | null;
279
+ key: string;
280
+ sourceType: string | null;
281
+ repoRef: string | null;
282
+ defaultRef: string | null;
283
+ visibility: string | null;
284
+ setupCommand: string | null;
285
+ isPrimary: boolean;
286
+ }[];
287
+ }, {
288
+ description: string | null;
289
+ status: string | null;
290
+ path: string;
291
+ name: string;
292
+ metadata: Record<string, unknown> | null;
293
+ slug: string;
294
+ color: string | null;
295
+ ownerAgentSlug: string | null;
296
+ leadAgentSlug: string | null;
297
+ targetDate: string | null;
298
+ executionWorkspacePolicy: Record<string, unknown> | null;
299
+ workspaces?: {
300
+ cleanupCommand: string | null;
301
+ name: string;
302
+ repoUrl: string | null;
303
+ metadata: Record<string, unknown> | null;
304
+ key: string;
305
+ sourceType: string | null;
306
+ repoRef: string | null;
307
+ defaultRef: string | null;
308
+ visibility: string | null;
309
+ setupCommand: string | null;
310
+ isPrimary: boolean;
311
+ }[] | undefined;
312
+ }>;
313
+ export declare const portabilityIssueRoutineTriggerManifestEntrySchema: z.ZodObject<{
314
+ kind: z.ZodString;
315
+ label: z.ZodNullable<z.ZodString>;
316
+ enabled: z.ZodBoolean;
317
+ cronExpression: z.ZodNullable<z.ZodString>;
318
+ timezone: z.ZodNullable<z.ZodString>;
319
+ signingMode: z.ZodNullable<z.ZodString>;
320
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ kind: string;
323
+ label: string | null;
324
+ enabled: boolean;
325
+ cronExpression: string | null;
326
+ timezone: string | null;
327
+ signingMode: string | null;
328
+ replayWindowSec: number | null;
329
+ }, {
330
+ kind: string;
331
+ label: string | null;
332
+ enabled: boolean;
333
+ cronExpression: string | null;
334
+ timezone: string | null;
335
+ signingMode: string | null;
336
+ replayWindowSec: number | null;
337
+ }>;
338
+ export declare const portabilityIssueRoutineManifestEntrySchema: z.ZodObject<{
339
+ concurrencyPolicy: z.ZodNullable<z.ZodString>;
340
+ catchUpPolicy: z.ZodNullable<z.ZodString>;
341
+ variables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
342
+ name: z.ZodString;
343
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
344
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select"]>>>;
345
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
346
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
347
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ required: boolean;
350
+ options: string[];
351
+ type: "number" | "boolean" | "text" | "textarea" | "select";
352
+ name: string;
353
+ label?: string | null | undefined;
354
+ defaultValue?: string | number | boolean | null | undefined;
355
+ }, {
356
+ name: string;
357
+ required?: boolean | undefined;
358
+ label?: string | null | undefined;
359
+ options?: string[] | undefined;
360
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
361
+ defaultValue?: string | number | boolean | null | undefined;
362
+ }>, {
363
+ required: boolean;
364
+ options: string[];
365
+ type: "number" | "boolean" | "text" | "textarea" | "select";
366
+ name: string;
367
+ label?: string | null | undefined;
368
+ defaultValue?: string | number | boolean | null | undefined;
369
+ }, {
370
+ name: string;
371
+ required?: boolean | undefined;
372
+ label?: string | null | undefined;
373
+ options?: string[] | undefined;
374
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
375
+ defaultValue?: string | number | boolean | null | undefined;
376
+ }>, "many">>>;
377
+ triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
378
+ kind: z.ZodString;
379
+ label: z.ZodNullable<z.ZodString>;
380
+ enabled: z.ZodBoolean;
381
+ cronExpression: z.ZodNullable<z.ZodString>;
382
+ timezone: z.ZodNullable<z.ZodString>;
383
+ signingMode: z.ZodNullable<z.ZodString>;
384
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ kind: string;
387
+ label: string | null;
388
+ enabled: boolean;
389
+ cronExpression: string | null;
390
+ timezone: string | null;
391
+ signingMode: string | null;
392
+ replayWindowSec: number | null;
393
+ }, {
394
+ kind: string;
395
+ label: string | null;
396
+ enabled: boolean;
397
+ cronExpression: string | null;
398
+ timezone: string | null;
399
+ signingMode: string | null;
400
+ replayWindowSec: number | null;
401
+ }>, "many">>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ concurrencyPolicy: string | null;
404
+ catchUpPolicy: string | null;
405
+ triggers: {
406
+ kind: string;
407
+ label: string | null;
408
+ enabled: boolean;
409
+ cronExpression: string | null;
410
+ timezone: string | null;
411
+ signingMode: string | null;
412
+ replayWindowSec: number | null;
413
+ }[];
414
+ variables?: {
415
+ required: boolean;
416
+ options: string[];
417
+ type: "number" | "boolean" | "text" | "textarea" | "select";
418
+ name: string;
419
+ label?: string | null | undefined;
420
+ defaultValue?: string | number | boolean | null | undefined;
421
+ }[] | null | undefined;
422
+ }, {
423
+ concurrencyPolicy: string | null;
424
+ catchUpPolicy: string | null;
425
+ variables?: {
426
+ name: string;
427
+ required?: boolean | undefined;
428
+ label?: string | null | undefined;
429
+ options?: string[] | undefined;
430
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
431
+ defaultValue?: string | number | boolean | null | undefined;
432
+ }[] | null | undefined;
433
+ triggers?: {
434
+ kind: string;
435
+ label: string | null;
436
+ enabled: boolean;
437
+ cronExpression: string | null;
438
+ timezone: string | null;
439
+ signingMode: string | null;
440
+ replayWindowSec: number | null;
441
+ }[] | undefined;
442
+ }>;
443
+ export declare const portabilityIssueCommentManifestEntrySchema: z.ZodObject<{
444
+ body: z.ZodString;
445
+ authorType: z.ZodEnum<["user", "agent", "system"]>;
446
+ authorAgentSlug: z.ZodNullable<z.ZodString>;
447
+ authorUserId: z.ZodNullable<z.ZodString>;
448
+ presentation: z.ZodNullable<z.ZodObject<{
449
+ kind: z.ZodDefault<z.ZodEnum<["message", "system_notice"]>>;
450
+ tone: z.ZodDefault<z.ZodEnum<["neutral", "info", "success", "warning", "danger"]>>;
451
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ detailsDefaultOpen: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
453
+ }, "strict", z.ZodTypeAny, {
454
+ kind: "message" | "system_notice";
455
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
456
+ detailsDefaultOpen: boolean;
457
+ title?: string | null | undefined;
458
+ }, {
459
+ title?: string | null | undefined;
460
+ kind?: "message" | "system_notice" | undefined;
461
+ tone?: "neutral" | "info" | "success" | "warning" | "danger" | undefined;
462
+ detailsDefaultOpen?: boolean | undefined;
463
+ }>>;
464
+ metadata: z.ZodNullable<z.ZodObject<{
465
+ version: z.ZodLiteral<1>;
466
+ sourceRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
467
+ sections: z.ZodArray<z.ZodObject<{
468
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ rows: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
470
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ } & {
472
+ type: z.ZodLiteral<"text">;
473
+ text: z.ZodString;
474
+ }, "strict", z.ZodTypeAny, {
475
+ text: string;
476
+ type: "text";
477
+ label?: string | null | undefined;
478
+ }, {
479
+ text: string;
480
+ type: "text";
481
+ label?: string | null | undefined;
482
+ }>, z.ZodObject<{
483
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
+ } & {
485
+ type: z.ZodLiteral<"code">;
486
+ code: z.ZodString;
487
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ }, "strict", z.ZodTypeAny, {
489
+ code: string;
490
+ type: "code";
491
+ label?: string | null | undefined;
492
+ language?: string | null | undefined;
493
+ }, {
494
+ code: string;
495
+ type: "code";
496
+ label?: string | null | undefined;
497
+ language?: string | null | undefined;
498
+ }>, z.ZodObject<{} & {
499
+ type: z.ZodLiteral<"key_value">;
500
+ label: z.ZodString;
501
+ value: z.ZodString;
502
+ }, "strict", z.ZodTypeAny, {
503
+ label: string;
504
+ value: string;
505
+ type: "key_value";
506
+ }, {
507
+ label: string;
508
+ value: string;
509
+ type: "key_value";
510
+ }>, z.ZodObject<{
511
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
512
+ } & {
513
+ type: z.ZodLiteral<"issue_link">;
514
+ issueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
515
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
517
+ }, "strict", z.ZodTypeAny, {
518
+ type: "issue_link";
519
+ title?: string | null | undefined;
520
+ issueId?: string | null | undefined;
521
+ label?: string | null | undefined;
522
+ identifier?: string | null | undefined;
523
+ }, {
524
+ type: "issue_link";
525
+ title?: string | null | undefined;
526
+ issueId?: string | null | undefined;
527
+ label?: string | null | undefined;
528
+ identifier?: string | null | undefined;
529
+ }>, z.ZodObject<{
530
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
531
+ } & {
532
+ type: z.ZodLiteral<"agent_link">;
533
+ agentId: z.ZodString;
534
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ }, "strict", z.ZodTypeAny, {
536
+ type: "agent_link";
537
+ agentId: string;
538
+ label?: string | null | undefined;
539
+ name?: string | null | undefined;
540
+ }, {
541
+ type: "agent_link";
542
+ agentId: string;
543
+ label?: string | null | undefined;
544
+ name?: string | null | undefined;
545
+ }>, z.ZodObject<{
546
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
+ } & {
548
+ type: z.ZodLiteral<"run_link">;
549
+ runId: z.ZodString;
550
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
+ }, "strict", z.ZodTypeAny, {
552
+ type: "run_link";
553
+ runId: string;
554
+ title?: string | null | undefined;
555
+ label?: string | null | undefined;
556
+ }, {
557
+ type: "run_link";
558
+ runId: string;
559
+ title?: string | null | undefined;
560
+ label?: string | null | undefined;
561
+ }>]>, {
562
+ text: string;
563
+ type: "text";
564
+ label?: string | null | undefined;
565
+ } | {
566
+ code: string;
567
+ type: "code";
568
+ label?: string | null | undefined;
569
+ language?: string | null | undefined;
570
+ } | {
571
+ label: string;
572
+ value: string;
573
+ type: "key_value";
574
+ } | {
575
+ type: "issue_link";
576
+ title?: string | null | undefined;
577
+ issueId?: string | null | undefined;
578
+ label?: string | null | undefined;
579
+ identifier?: string | null | undefined;
580
+ } | {
581
+ type: "agent_link";
582
+ agentId: string;
583
+ label?: string | null | undefined;
584
+ name?: string | null | undefined;
585
+ } | {
586
+ type: "run_link";
587
+ runId: string;
588
+ title?: string | null | undefined;
589
+ label?: string | null | undefined;
590
+ }, {
591
+ text: string;
592
+ type: "text";
593
+ label?: string | null | undefined;
594
+ } | {
595
+ code: string;
596
+ type: "code";
597
+ label?: string | null | undefined;
598
+ language?: string | null | undefined;
599
+ } | {
600
+ label: string;
601
+ value: string;
602
+ type: "key_value";
603
+ } | {
604
+ type: "issue_link";
605
+ title?: string | null | undefined;
606
+ issueId?: string | null | undefined;
607
+ label?: string | null | undefined;
608
+ identifier?: string | null | undefined;
609
+ } | {
610
+ type: "agent_link";
611
+ agentId: string;
612
+ label?: string | null | undefined;
613
+ name?: string | null | undefined;
614
+ } | {
615
+ type: "run_link";
616
+ runId: string;
617
+ title?: string | null | undefined;
618
+ label?: string | null | undefined;
619
+ }>, "many">;
620
+ }, "strict", z.ZodTypeAny, {
621
+ rows: ({
622
+ text: string;
623
+ type: "text";
624
+ label?: string | null | undefined;
625
+ } | {
626
+ code: string;
627
+ type: "code";
628
+ label?: string | null | undefined;
629
+ language?: string | null | undefined;
630
+ } | {
631
+ label: string;
632
+ value: string;
633
+ type: "key_value";
634
+ } | {
635
+ type: "issue_link";
636
+ title?: string | null | undefined;
637
+ issueId?: string | null | undefined;
638
+ label?: string | null | undefined;
639
+ identifier?: string | null | undefined;
640
+ } | {
641
+ type: "agent_link";
642
+ agentId: string;
643
+ label?: string | null | undefined;
644
+ name?: string | null | undefined;
645
+ } | {
646
+ type: "run_link";
647
+ runId: string;
648
+ title?: string | null | undefined;
649
+ label?: string | null | undefined;
650
+ })[];
651
+ title?: string | null | undefined;
652
+ }, {
653
+ rows: ({
654
+ text: string;
655
+ type: "text";
656
+ label?: string | null | undefined;
657
+ } | {
658
+ code: string;
659
+ type: "code";
660
+ label?: string | null | undefined;
661
+ language?: string | null | undefined;
662
+ } | {
663
+ label: string;
664
+ value: string;
665
+ type: "key_value";
666
+ } | {
667
+ type: "issue_link";
668
+ title?: string | null | undefined;
669
+ issueId?: string | null | undefined;
670
+ label?: string | null | undefined;
671
+ identifier?: string | null | undefined;
672
+ } | {
673
+ type: "agent_link";
674
+ agentId: string;
675
+ label?: string | null | undefined;
676
+ name?: string | null | undefined;
677
+ } | {
678
+ type: "run_link";
679
+ runId: string;
680
+ title?: string | null | undefined;
681
+ label?: string | null | undefined;
682
+ })[];
683
+ title?: string | null | undefined;
684
+ }>, "many">;
685
+ }, "strict", z.ZodTypeAny, {
686
+ version: 1;
687
+ sections: {
688
+ rows: ({
689
+ text: string;
690
+ type: "text";
691
+ label?: string | null | undefined;
692
+ } | {
693
+ code: string;
694
+ type: "code";
695
+ label?: string | null | undefined;
696
+ language?: string | null | undefined;
697
+ } | {
698
+ label: string;
699
+ value: string;
700
+ type: "key_value";
701
+ } | {
702
+ type: "issue_link";
703
+ title?: string | null | undefined;
704
+ issueId?: string | null | undefined;
705
+ label?: string | null | undefined;
706
+ identifier?: string | null | undefined;
707
+ } | {
708
+ type: "agent_link";
709
+ agentId: string;
710
+ label?: string | null | undefined;
711
+ name?: string | null | undefined;
712
+ } | {
713
+ type: "run_link";
714
+ runId: string;
715
+ title?: string | null | undefined;
716
+ label?: string | null | undefined;
717
+ })[];
718
+ title?: string | null | undefined;
719
+ }[];
720
+ sourceRunId?: string | null | undefined;
721
+ }, {
722
+ version: 1;
723
+ sections: {
724
+ rows: ({
725
+ text: string;
726
+ type: "text";
727
+ label?: string | null | undefined;
728
+ } | {
729
+ code: string;
730
+ type: "code";
731
+ label?: string | null | undefined;
732
+ language?: string | null | undefined;
733
+ } | {
734
+ label: string;
735
+ value: string;
736
+ type: "key_value";
737
+ } | {
738
+ type: "issue_link";
739
+ title?: string | null | undefined;
740
+ issueId?: string | null | undefined;
741
+ label?: string | null | undefined;
742
+ identifier?: string | null | undefined;
743
+ } | {
744
+ type: "agent_link";
745
+ agentId: string;
746
+ label?: string | null | undefined;
747
+ name?: string | null | undefined;
748
+ } | {
749
+ type: "run_link";
750
+ runId: string;
751
+ title?: string | null | undefined;
752
+ label?: string | null | undefined;
753
+ })[];
754
+ title?: string | null | undefined;
755
+ }[];
756
+ sourceRunId?: string | null | undefined;
757
+ }>>;
758
+ createdAt: z.ZodNullable<z.ZodString>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ createdAt: string | null;
761
+ body: string;
762
+ metadata: {
763
+ version: 1;
764
+ sections: {
765
+ rows: ({
766
+ text: string;
767
+ type: "text";
768
+ label?: string | null | undefined;
769
+ } | {
770
+ code: string;
771
+ type: "code";
772
+ label?: string | null | undefined;
773
+ language?: string | null | undefined;
774
+ } | {
775
+ label: string;
776
+ value: string;
777
+ type: "key_value";
778
+ } | {
779
+ type: "issue_link";
780
+ title?: string | null | undefined;
781
+ issueId?: string | null | undefined;
782
+ label?: string | null | undefined;
783
+ identifier?: string | null | undefined;
784
+ } | {
785
+ type: "agent_link";
786
+ agentId: string;
787
+ label?: string | null | undefined;
788
+ name?: string | null | undefined;
789
+ } | {
790
+ type: "run_link";
791
+ runId: string;
792
+ title?: string | null | undefined;
793
+ label?: string | null | undefined;
794
+ })[];
795
+ title?: string | null | undefined;
796
+ }[];
797
+ sourceRunId?: string | null | undefined;
798
+ } | null;
799
+ authorType: "user" | "agent" | "system";
800
+ presentation: {
801
+ kind: "message" | "system_notice";
802
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
803
+ detailsDefaultOpen: boolean;
804
+ title?: string | null | undefined;
805
+ } | null;
806
+ authorAgentSlug: string | null;
807
+ authorUserId: string | null;
808
+ }, {
809
+ createdAt: string | null;
810
+ body: string;
811
+ metadata: {
812
+ version: 1;
813
+ sections: {
814
+ rows: ({
815
+ text: string;
816
+ type: "text";
817
+ label?: string | null | undefined;
818
+ } | {
819
+ code: string;
820
+ type: "code";
821
+ label?: string | null | undefined;
822
+ language?: string | null | undefined;
823
+ } | {
824
+ label: string;
825
+ value: string;
826
+ type: "key_value";
827
+ } | {
828
+ type: "issue_link";
829
+ title?: string | null | undefined;
830
+ issueId?: string | null | undefined;
831
+ label?: string | null | undefined;
832
+ identifier?: string | null | undefined;
833
+ } | {
834
+ type: "agent_link";
835
+ agentId: string;
836
+ label?: string | null | undefined;
837
+ name?: string | null | undefined;
838
+ } | {
839
+ type: "run_link";
840
+ runId: string;
841
+ title?: string | null | undefined;
842
+ label?: string | null | undefined;
843
+ })[];
844
+ title?: string | null | undefined;
845
+ }[];
846
+ sourceRunId?: string | null | undefined;
847
+ } | null;
848
+ authorType: "user" | "agent" | "system";
849
+ presentation: {
850
+ title?: string | null | undefined;
851
+ kind?: "message" | "system_notice" | undefined;
852
+ tone?: "neutral" | "info" | "success" | "warning" | "danger" | undefined;
853
+ detailsDefaultOpen?: boolean | undefined;
854
+ } | null;
855
+ authorAgentSlug: string | null;
856
+ authorUserId: string | null;
857
+ }>;
858
+ export declare const portabilityIssueManifestEntrySchema: z.ZodObject<{
859
+ slug: z.ZodString;
860
+ identifier: z.ZodNullable<z.ZodString>;
861
+ title: z.ZodString;
862
+ path: z.ZodString;
863
+ projectSlug: z.ZodNullable<z.ZodString>;
864
+ projectWorkspaceKey: z.ZodNullable<z.ZodString>;
865
+ assigneeAgentSlug: z.ZodNullable<z.ZodString>;
866
+ description: z.ZodNullable<z.ZodString>;
867
+ recurring: z.ZodDefault<z.ZodBoolean>;
868
+ routine: z.ZodNullable<z.ZodObject<{
869
+ concurrencyPolicy: z.ZodNullable<z.ZodString>;
870
+ catchUpPolicy: z.ZodNullable<z.ZodString>;
871
+ variables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
872
+ name: z.ZodString;
873
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
874
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select"]>>>;
875
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
876
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
877
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
878
+ }, "strip", z.ZodTypeAny, {
879
+ required: boolean;
880
+ options: string[];
881
+ type: "number" | "boolean" | "text" | "textarea" | "select";
882
+ name: string;
883
+ label?: string | null | undefined;
884
+ defaultValue?: string | number | boolean | null | undefined;
885
+ }, {
886
+ name: string;
887
+ required?: boolean | undefined;
888
+ label?: string | null | undefined;
889
+ options?: string[] | undefined;
890
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
891
+ defaultValue?: string | number | boolean | null | undefined;
892
+ }>, {
893
+ required: boolean;
894
+ options: string[];
895
+ type: "number" | "boolean" | "text" | "textarea" | "select";
896
+ name: string;
897
+ label?: string | null | undefined;
898
+ defaultValue?: string | number | boolean | null | undefined;
899
+ }, {
900
+ name: string;
901
+ required?: boolean | undefined;
902
+ label?: string | null | undefined;
903
+ options?: string[] | undefined;
904
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
905
+ defaultValue?: string | number | boolean | null | undefined;
906
+ }>, "many">>>;
907
+ triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
908
+ kind: z.ZodString;
909
+ label: z.ZodNullable<z.ZodString>;
910
+ enabled: z.ZodBoolean;
911
+ cronExpression: z.ZodNullable<z.ZodString>;
912
+ timezone: z.ZodNullable<z.ZodString>;
913
+ signingMode: z.ZodNullable<z.ZodString>;
914
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
915
+ }, "strip", z.ZodTypeAny, {
916
+ kind: string;
917
+ label: string | null;
918
+ enabled: boolean;
919
+ cronExpression: string | null;
920
+ timezone: string | null;
921
+ signingMode: string | null;
922
+ replayWindowSec: number | null;
923
+ }, {
924
+ kind: string;
925
+ label: string | null;
926
+ enabled: boolean;
927
+ cronExpression: string | null;
928
+ timezone: string | null;
929
+ signingMode: string | null;
930
+ replayWindowSec: number | null;
931
+ }>, "many">>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ concurrencyPolicy: string | null;
934
+ catchUpPolicy: string | null;
935
+ triggers: {
936
+ kind: string;
937
+ label: string | null;
938
+ enabled: boolean;
939
+ cronExpression: string | null;
940
+ timezone: string | null;
941
+ signingMode: string | null;
942
+ replayWindowSec: number | null;
943
+ }[];
944
+ variables?: {
945
+ required: boolean;
946
+ options: string[];
947
+ type: "number" | "boolean" | "text" | "textarea" | "select";
948
+ name: string;
949
+ label?: string | null | undefined;
950
+ defaultValue?: string | number | boolean | null | undefined;
951
+ }[] | null | undefined;
952
+ }, {
953
+ concurrencyPolicy: string | null;
954
+ catchUpPolicy: string | null;
955
+ variables?: {
956
+ name: string;
957
+ required?: boolean | undefined;
958
+ label?: string | null | undefined;
959
+ options?: string[] | undefined;
960
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
961
+ defaultValue?: string | number | boolean | null | undefined;
962
+ }[] | null | undefined;
963
+ triggers?: {
964
+ kind: string;
965
+ label: string | null;
966
+ enabled: boolean;
967
+ cronExpression: string | null;
968
+ timezone: string | null;
969
+ signingMode: string | null;
970
+ replayWindowSec: number | null;
971
+ }[] | undefined;
972
+ }>>;
973
+ legacyRecurrence: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
974
+ status: z.ZodNullable<z.ZodString>;
975
+ priority: z.ZodNullable<z.ZodString>;
976
+ labelIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
977
+ billingCode: z.ZodNullable<z.ZodString>;
978
+ executionWorkspaceSettings: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
979
+ assigneeAdapterOverrides: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
980
+ comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
981
+ body: z.ZodString;
982
+ authorType: z.ZodEnum<["user", "agent", "system"]>;
983
+ authorAgentSlug: z.ZodNullable<z.ZodString>;
984
+ authorUserId: z.ZodNullable<z.ZodString>;
985
+ presentation: z.ZodNullable<z.ZodObject<{
986
+ kind: z.ZodDefault<z.ZodEnum<["message", "system_notice"]>>;
987
+ tone: z.ZodDefault<z.ZodEnum<["neutral", "info", "success", "warning", "danger"]>>;
988
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
989
+ detailsDefaultOpen: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
990
+ }, "strict", z.ZodTypeAny, {
991
+ kind: "message" | "system_notice";
992
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
993
+ detailsDefaultOpen: boolean;
994
+ title?: string | null | undefined;
995
+ }, {
996
+ title?: string | null | undefined;
997
+ kind?: "message" | "system_notice" | undefined;
998
+ tone?: "neutral" | "info" | "success" | "warning" | "danger" | undefined;
999
+ detailsDefaultOpen?: boolean | undefined;
1000
+ }>>;
1001
+ metadata: z.ZodNullable<z.ZodObject<{
1002
+ version: z.ZodLiteral<1>;
1003
+ sourceRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1004
+ sections: z.ZodArray<z.ZodObject<{
1005
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1006
+ rows: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1007
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1008
+ } & {
1009
+ type: z.ZodLiteral<"text">;
1010
+ text: z.ZodString;
1011
+ }, "strict", z.ZodTypeAny, {
1012
+ text: string;
1013
+ type: "text";
1014
+ label?: string | null | undefined;
1015
+ }, {
1016
+ text: string;
1017
+ type: "text";
1018
+ label?: string | null | undefined;
1019
+ }>, z.ZodObject<{
1020
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1021
+ } & {
1022
+ type: z.ZodLiteral<"code">;
1023
+ code: z.ZodString;
1024
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1025
+ }, "strict", z.ZodTypeAny, {
1026
+ code: string;
1027
+ type: "code";
1028
+ label?: string | null | undefined;
1029
+ language?: string | null | undefined;
1030
+ }, {
1031
+ code: string;
1032
+ type: "code";
1033
+ label?: string | null | undefined;
1034
+ language?: string | null | undefined;
1035
+ }>, z.ZodObject<{} & {
1036
+ type: z.ZodLiteral<"key_value">;
1037
+ label: z.ZodString;
1038
+ value: z.ZodString;
1039
+ }, "strict", z.ZodTypeAny, {
1040
+ label: string;
1041
+ value: string;
1042
+ type: "key_value";
1043
+ }, {
1044
+ label: string;
1045
+ value: string;
1046
+ type: "key_value";
1047
+ }>, z.ZodObject<{
1048
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1049
+ } & {
1050
+ type: z.ZodLiteral<"issue_link">;
1051
+ issueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1052
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1053
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
+ }, "strict", z.ZodTypeAny, {
1055
+ type: "issue_link";
1056
+ title?: string | null | undefined;
1057
+ issueId?: string | null | undefined;
1058
+ label?: string | null | undefined;
1059
+ identifier?: string | null | undefined;
1060
+ }, {
1061
+ type: "issue_link";
1062
+ title?: string | null | undefined;
1063
+ issueId?: string | null | undefined;
1064
+ label?: string | null | undefined;
1065
+ identifier?: string | null | undefined;
1066
+ }>, z.ZodObject<{
1067
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1068
+ } & {
1069
+ type: z.ZodLiteral<"agent_link">;
1070
+ agentId: z.ZodString;
1071
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1072
+ }, "strict", z.ZodTypeAny, {
1073
+ type: "agent_link";
1074
+ agentId: string;
1075
+ label?: string | null | undefined;
1076
+ name?: string | null | undefined;
1077
+ }, {
1078
+ type: "agent_link";
1079
+ agentId: string;
1080
+ label?: string | null | undefined;
1081
+ name?: string | null | undefined;
1082
+ }>, z.ZodObject<{
1083
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1084
+ } & {
1085
+ type: z.ZodLiteral<"run_link">;
1086
+ runId: z.ZodString;
1087
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1088
+ }, "strict", z.ZodTypeAny, {
1089
+ type: "run_link";
1090
+ runId: string;
1091
+ title?: string | null | undefined;
1092
+ label?: string | null | undefined;
1093
+ }, {
1094
+ type: "run_link";
1095
+ runId: string;
1096
+ title?: string | null | undefined;
1097
+ label?: string | null | undefined;
1098
+ }>]>, {
1099
+ text: string;
1100
+ type: "text";
1101
+ label?: string | null | undefined;
1102
+ } | {
1103
+ code: string;
1104
+ type: "code";
1105
+ label?: string | null | undefined;
1106
+ language?: string | null | undefined;
1107
+ } | {
1108
+ label: string;
1109
+ value: string;
1110
+ type: "key_value";
1111
+ } | {
1112
+ type: "issue_link";
1113
+ title?: string | null | undefined;
1114
+ issueId?: string | null | undefined;
1115
+ label?: string | null | undefined;
1116
+ identifier?: string | null | undefined;
1117
+ } | {
1118
+ type: "agent_link";
1119
+ agentId: string;
1120
+ label?: string | null | undefined;
1121
+ name?: string | null | undefined;
1122
+ } | {
1123
+ type: "run_link";
1124
+ runId: string;
1125
+ title?: string | null | undefined;
1126
+ label?: string | null | undefined;
1127
+ }, {
1128
+ text: string;
1129
+ type: "text";
1130
+ label?: string | null | undefined;
1131
+ } | {
1132
+ code: string;
1133
+ type: "code";
1134
+ label?: string | null | undefined;
1135
+ language?: string | null | undefined;
1136
+ } | {
1137
+ label: string;
1138
+ value: string;
1139
+ type: "key_value";
1140
+ } | {
1141
+ type: "issue_link";
1142
+ title?: string | null | undefined;
1143
+ issueId?: string | null | undefined;
1144
+ label?: string | null | undefined;
1145
+ identifier?: string | null | undefined;
1146
+ } | {
1147
+ type: "agent_link";
1148
+ agentId: string;
1149
+ label?: string | null | undefined;
1150
+ name?: string | null | undefined;
1151
+ } | {
1152
+ type: "run_link";
1153
+ runId: string;
1154
+ title?: string | null | undefined;
1155
+ label?: string | null | undefined;
1156
+ }>, "many">;
1157
+ }, "strict", z.ZodTypeAny, {
1158
+ rows: ({
1159
+ text: string;
1160
+ type: "text";
1161
+ label?: string | null | undefined;
1162
+ } | {
1163
+ code: string;
1164
+ type: "code";
1165
+ label?: string | null | undefined;
1166
+ language?: string | null | undefined;
1167
+ } | {
1168
+ label: string;
1169
+ value: string;
1170
+ type: "key_value";
1171
+ } | {
1172
+ type: "issue_link";
1173
+ title?: string | null | undefined;
1174
+ issueId?: string | null | undefined;
1175
+ label?: string | null | undefined;
1176
+ identifier?: string | null | undefined;
1177
+ } | {
1178
+ type: "agent_link";
1179
+ agentId: string;
1180
+ label?: string | null | undefined;
1181
+ name?: string | null | undefined;
1182
+ } | {
1183
+ type: "run_link";
1184
+ runId: string;
1185
+ title?: string | null | undefined;
1186
+ label?: string | null | undefined;
1187
+ })[];
1188
+ title?: string | null | undefined;
1189
+ }, {
1190
+ rows: ({
1191
+ text: string;
1192
+ type: "text";
1193
+ label?: string | null | undefined;
1194
+ } | {
1195
+ code: string;
1196
+ type: "code";
1197
+ label?: string | null | undefined;
1198
+ language?: string | null | undefined;
1199
+ } | {
1200
+ label: string;
1201
+ value: string;
1202
+ type: "key_value";
1203
+ } | {
1204
+ type: "issue_link";
1205
+ title?: string | null | undefined;
1206
+ issueId?: string | null | undefined;
1207
+ label?: string | null | undefined;
1208
+ identifier?: string | null | undefined;
1209
+ } | {
1210
+ type: "agent_link";
1211
+ agentId: string;
1212
+ label?: string | null | undefined;
1213
+ name?: string | null | undefined;
1214
+ } | {
1215
+ type: "run_link";
1216
+ runId: string;
1217
+ title?: string | null | undefined;
1218
+ label?: string | null | undefined;
1219
+ })[];
1220
+ title?: string | null | undefined;
1221
+ }>, "many">;
1222
+ }, "strict", z.ZodTypeAny, {
1223
+ version: 1;
1224
+ sections: {
1225
+ rows: ({
1226
+ text: string;
1227
+ type: "text";
1228
+ label?: string | null | undefined;
1229
+ } | {
1230
+ code: string;
1231
+ type: "code";
1232
+ label?: string | null | undefined;
1233
+ language?: string | null | undefined;
1234
+ } | {
1235
+ label: string;
1236
+ value: string;
1237
+ type: "key_value";
1238
+ } | {
1239
+ type: "issue_link";
1240
+ title?: string | null | undefined;
1241
+ issueId?: string | null | undefined;
1242
+ label?: string | null | undefined;
1243
+ identifier?: string | null | undefined;
1244
+ } | {
1245
+ type: "agent_link";
1246
+ agentId: string;
1247
+ label?: string | null | undefined;
1248
+ name?: string | null | undefined;
1249
+ } | {
1250
+ type: "run_link";
1251
+ runId: string;
1252
+ title?: string | null | undefined;
1253
+ label?: string | null | undefined;
1254
+ })[];
1255
+ title?: string | null | undefined;
1256
+ }[];
1257
+ sourceRunId?: string | null | undefined;
1258
+ }, {
1259
+ version: 1;
1260
+ sections: {
1261
+ rows: ({
1262
+ text: string;
1263
+ type: "text";
1264
+ label?: string | null | undefined;
1265
+ } | {
1266
+ code: string;
1267
+ type: "code";
1268
+ label?: string | null | undefined;
1269
+ language?: string | null | undefined;
1270
+ } | {
1271
+ label: string;
1272
+ value: string;
1273
+ type: "key_value";
1274
+ } | {
1275
+ type: "issue_link";
1276
+ title?: string | null | undefined;
1277
+ issueId?: string | null | undefined;
1278
+ label?: string | null | undefined;
1279
+ identifier?: string | null | undefined;
1280
+ } | {
1281
+ type: "agent_link";
1282
+ agentId: string;
1283
+ label?: string | null | undefined;
1284
+ name?: string | null | undefined;
1285
+ } | {
1286
+ type: "run_link";
1287
+ runId: string;
1288
+ title?: string | null | undefined;
1289
+ label?: string | null | undefined;
1290
+ })[];
1291
+ title?: string | null | undefined;
1292
+ }[];
1293
+ sourceRunId?: string | null | undefined;
1294
+ }>>;
1295
+ createdAt: z.ZodNullable<z.ZodString>;
1296
+ }, "strip", z.ZodTypeAny, {
1297
+ createdAt: string | null;
1298
+ body: string;
1299
+ metadata: {
1300
+ version: 1;
1301
+ sections: {
1302
+ rows: ({
1303
+ text: string;
1304
+ type: "text";
1305
+ label?: string | null | undefined;
1306
+ } | {
1307
+ code: string;
1308
+ type: "code";
1309
+ label?: string | null | undefined;
1310
+ language?: string | null | undefined;
1311
+ } | {
1312
+ label: string;
1313
+ value: string;
1314
+ type: "key_value";
1315
+ } | {
1316
+ type: "issue_link";
1317
+ title?: string | null | undefined;
1318
+ issueId?: string | null | undefined;
1319
+ label?: string | null | undefined;
1320
+ identifier?: string | null | undefined;
1321
+ } | {
1322
+ type: "agent_link";
1323
+ agentId: string;
1324
+ label?: string | null | undefined;
1325
+ name?: string | null | undefined;
1326
+ } | {
1327
+ type: "run_link";
1328
+ runId: string;
1329
+ title?: string | null | undefined;
1330
+ label?: string | null | undefined;
1331
+ })[];
1332
+ title?: string | null | undefined;
1333
+ }[];
1334
+ sourceRunId?: string | null | undefined;
1335
+ } | null;
1336
+ authorType: "user" | "agent" | "system";
1337
+ presentation: {
1338
+ kind: "message" | "system_notice";
1339
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
1340
+ detailsDefaultOpen: boolean;
1341
+ title?: string | null | undefined;
1342
+ } | null;
1343
+ authorAgentSlug: string | null;
1344
+ authorUserId: string | null;
1345
+ }, {
1346
+ createdAt: string | null;
1347
+ body: string;
1348
+ metadata: {
1349
+ version: 1;
1350
+ sections: {
1351
+ rows: ({
1352
+ text: string;
1353
+ type: "text";
1354
+ label?: string | null | undefined;
1355
+ } | {
1356
+ code: string;
1357
+ type: "code";
1358
+ label?: string | null | undefined;
1359
+ language?: string | null | undefined;
1360
+ } | {
1361
+ label: string;
1362
+ value: string;
1363
+ type: "key_value";
1364
+ } | {
1365
+ type: "issue_link";
1366
+ title?: string | null | undefined;
1367
+ issueId?: string | null | undefined;
1368
+ label?: string | null | undefined;
1369
+ identifier?: string | null | undefined;
1370
+ } | {
1371
+ type: "agent_link";
1372
+ agentId: string;
1373
+ label?: string | null | undefined;
1374
+ name?: string | null | undefined;
1375
+ } | {
1376
+ type: "run_link";
1377
+ runId: string;
1378
+ title?: string | null | undefined;
1379
+ label?: string | null | undefined;
1380
+ })[];
1381
+ title?: string | null | undefined;
1382
+ }[];
1383
+ sourceRunId?: string | null | undefined;
1384
+ } | null;
1385
+ authorType: "user" | "agent" | "system";
1386
+ presentation: {
1387
+ title?: string | null | undefined;
1388
+ kind?: "message" | "system_notice" | undefined;
1389
+ tone?: "neutral" | "info" | "success" | "warning" | "danger" | undefined;
1390
+ detailsDefaultOpen?: boolean | undefined;
1391
+ } | null;
1392
+ authorAgentSlug: string | null;
1393
+ authorUserId: string | null;
1394
+ }>, "many">>;
1395
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ title: string;
1398
+ description: string | null;
1399
+ comments: {
1400
+ createdAt: string | null;
1401
+ body: string;
1402
+ metadata: {
1403
+ version: 1;
1404
+ sections: {
1405
+ rows: ({
1406
+ text: string;
1407
+ type: "text";
1408
+ label?: string | null | undefined;
1409
+ } | {
1410
+ code: string;
1411
+ type: "code";
1412
+ label?: string | null | undefined;
1413
+ language?: string | null | undefined;
1414
+ } | {
1415
+ label: string;
1416
+ value: string;
1417
+ type: "key_value";
1418
+ } | {
1419
+ type: "issue_link";
1420
+ title?: string | null | undefined;
1421
+ issueId?: string | null | undefined;
1422
+ label?: string | null | undefined;
1423
+ identifier?: string | null | undefined;
1424
+ } | {
1425
+ type: "agent_link";
1426
+ agentId: string;
1427
+ label?: string | null | undefined;
1428
+ name?: string | null | undefined;
1429
+ } | {
1430
+ type: "run_link";
1431
+ runId: string;
1432
+ title?: string | null | undefined;
1433
+ label?: string | null | undefined;
1434
+ })[];
1435
+ title?: string | null | undefined;
1436
+ }[];
1437
+ sourceRunId?: string | null | undefined;
1438
+ } | null;
1439
+ authorType: "user" | "agent" | "system";
1440
+ presentation: {
1441
+ kind: "message" | "system_notice";
1442
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
1443
+ detailsDefaultOpen: boolean;
1444
+ title?: string | null | undefined;
1445
+ } | null;
1446
+ authorAgentSlug: string | null;
1447
+ authorUserId: string | null;
1448
+ }[];
1449
+ status: string | null;
1450
+ routine: {
1451
+ concurrencyPolicy: string | null;
1452
+ catchUpPolicy: string | null;
1453
+ triggers: {
1454
+ kind: string;
1455
+ label: string | null;
1456
+ enabled: boolean;
1457
+ cronExpression: string | null;
1458
+ timezone: string | null;
1459
+ signingMode: string | null;
1460
+ replayWindowSec: number | null;
1461
+ }[];
1462
+ variables?: {
1463
+ required: boolean;
1464
+ options: string[];
1465
+ type: "number" | "boolean" | "text" | "textarea" | "select";
1466
+ name: string;
1467
+ label?: string | null | undefined;
1468
+ defaultValue?: string | number | boolean | null | undefined;
1469
+ }[] | null | undefined;
1470
+ } | null;
1471
+ identifier: string | null;
1472
+ path: string;
1473
+ metadata: Record<string, unknown> | null;
1474
+ slug: string;
1475
+ priority: string | null;
1476
+ billingCode: string | null;
1477
+ assigneeAdapterOverrides: Record<string, unknown> | null;
1478
+ executionWorkspaceSettings: Record<string, unknown> | null;
1479
+ labelIds: string[];
1480
+ projectSlug: string | null;
1481
+ projectWorkspaceKey: string | null;
1482
+ assigneeAgentSlug: string | null;
1483
+ recurring: boolean;
1484
+ legacyRecurrence: Record<string, unknown> | null;
1485
+ }, {
1486
+ title: string;
1487
+ description: string | null;
1488
+ status: string | null;
1489
+ routine: {
1490
+ concurrencyPolicy: string | null;
1491
+ catchUpPolicy: string | null;
1492
+ variables?: {
1493
+ name: string;
1494
+ required?: boolean | undefined;
1495
+ label?: string | null | undefined;
1496
+ options?: string[] | undefined;
1497
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
1498
+ defaultValue?: string | number | boolean | null | undefined;
1499
+ }[] | null | undefined;
1500
+ triggers?: {
1501
+ kind: string;
1502
+ label: string | null;
1503
+ enabled: boolean;
1504
+ cronExpression: string | null;
1505
+ timezone: string | null;
1506
+ signingMode: string | null;
1507
+ replayWindowSec: number | null;
1508
+ }[] | undefined;
1509
+ } | null;
1510
+ identifier: string | null;
1511
+ path: string;
1512
+ metadata: Record<string, unknown> | null;
1513
+ slug: string;
1514
+ priority: string | null;
1515
+ billingCode: string | null;
1516
+ assigneeAdapterOverrides: Record<string, unknown> | null;
1517
+ executionWorkspaceSettings: Record<string, unknown> | null;
1518
+ projectSlug: string | null;
1519
+ projectWorkspaceKey: string | null;
1520
+ assigneeAgentSlug: string | null;
1521
+ legacyRecurrence: Record<string, unknown> | null;
1522
+ comments?: {
1523
+ createdAt: string | null;
1524
+ body: string;
1525
+ metadata: {
1526
+ version: 1;
1527
+ sections: {
1528
+ rows: ({
1529
+ text: string;
1530
+ type: "text";
1531
+ label?: string | null | undefined;
1532
+ } | {
1533
+ code: string;
1534
+ type: "code";
1535
+ label?: string | null | undefined;
1536
+ language?: string | null | undefined;
1537
+ } | {
1538
+ label: string;
1539
+ value: string;
1540
+ type: "key_value";
1541
+ } | {
1542
+ type: "issue_link";
1543
+ title?: string | null | undefined;
1544
+ issueId?: string | null | undefined;
1545
+ label?: string | null | undefined;
1546
+ identifier?: string | null | undefined;
1547
+ } | {
1548
+ type: "agent_link";
1549
+ agentId: string;
1550
+ label?: string | null | undefined;
1551
+ name?: string | null | undefined;
1552
+ } | {
1553
+ type: "run_link";
1554
+ runId: string;
1555
+ title?: string | null | undefined;
1556
+ label?: string | null | undefined;
1557
+ })[];
1558
+ title?: string | null | undefined;
1559
+ }[];
1560
+ sourceRunId?: string | null | undefined;
1561
+ } | null;
1562
+ authorType: "user" | "agent" | "system";
1563
+ presentation: {
1564
+ title?: string | null | undefined;
1565
+ kind?: "message" | "system_notice" | undefined;
1566
+ tone?: "neutral" | "info" | "success" | "warning" | "danger" | undefined;
1567
+ detailsDefaultOpen?: boolean | undefined;
1568
+ } | null;
1569
+ authorAgentSlug: string | null;
1570
+ authorUserId: string | null;
1571
+ }[] | undefined;
1572
+ labelIds?: string[] | undefined;
1573
+ recurring?: boolean | undefined;
1574
+ }>;
1575
+ export declare const portabilityManifestSchema: z.ZodObject<{
1576
+ schemaVersion: z.ZodNumber;
1577
+ generatedAt: z.ZodString;
1578
+ source: z.ZodNullable<z.ZodObject<{
1579
+ companyId: z.ZodString;
1580
+ companyName: z.ZodString;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ companyId: string;
1583
+ companyName: string;
1584
+ }, {
1585
+ companyId: string;
1586
+ companyName: string;
1587
+ }>>;
1588
+ includes: z.ZodObject<{
1589
+ company: z.ZodBoolean;
1590
+ agents: z.ZodBoolean;
1591
+ projects: z.ZodBoolean;
1592
+ issues: z.ZodBoolean;
1593
+ skills: z.ZodBoolean;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ company: boolean;
1596
+ projects: boolean;
1597
+ agents: boolean;
1598
+ issues: boolean;
1599
+ skills: boolean;
1600
+ }, {
1601
+ company: boolean;
1602
+ projects: boolean;
1603
+ agents: boolean;
1604
+ issues: boolean;
1605
+ skills: boolean;
1606
+ }>;
1607
+ company: z.ZodNullable<z.ZodObject<{
1608
+ path: z.ZodString;
1609
+ name: z.ZodString;
1610
+ description: z.ZodNullable<z.ZodString>;
1611
+ brandColor: z.ZodNullable<z.ZodString>;
1612
+ logoPath: z.ZodNullable<z.ZodString>;
1613
+ attachmentMaxBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1614
+ requireBoardApprovalForNewAgents: z.ZodBoolean;
1615
+ feedbackDataSharingEnabled: z.ZodDefault<z.ZodBoolean>;
1616
+ feedbackDataSharingConsentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1617
+ feedbackDataSharingConsentByUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1618
+ feedbackDataSharingTermsVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ description: string | null;
1621
+ path: string;
1622
+ name: string;
1623
+ attachmentMaxBytes: number | null;
1624
+ requireBoardApprovalForNewAgents: boolean;
1625
+ feedbackDataSharingEnabled: boolean;
1626
+ feedbackDataSharingConsentAt: string | null;
1627
+ feedbackDataSharingConsentByUserId: string | null;
1628
+ feedbackDataSharingTermsVersion: string | null;
1629
+ brandColor: string | null;
1630
+ logoPath: string | null;
1631
+ }, {
1632
+ description: string | null;
1633
+ path: string;
1634
+ name: string;
1635
+ requireBoardApprovalForNewAgents: boolean;
1636
+ brandColor: string | null;
1637
+ logoPath: string | null;
1638
+ attachmentMaxBytes?: number | null | undefined;
1639
+ feedbackDataSharingEnabled?: boolean | undefined;
1640
+ feedbackDataSharingConsentAt?: string | null | undefined;
1641
+ feedbackDataSharingConsentByUserId?: string | null | undefined;
1642
+ feedbackDataSharingTermsVersion?: string | null | undefined;
1643
+ }>>;
1644
+ sidebar: z.ZodNullable<z.ZodObject<{
1645
+ agents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1646
+ projects: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ projects: string[];
1649
+ agents: string[];
1650
+ }, {
1651
+ projects?: string[] | undefined;
1652
+ agents?: string[] | undefined;
1653
+ }>>;
1654
+ agents: z.ZodArray<z.ZodObject<{
1655
+ slug: z.ZodString;
1656
+ name: z.ZodString;
1657
+ path: z.ZodString;
1658
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1659
+ role: z.ZodString;
1660
+ title: z.ZodNullable<z.ZodString>;
1661
+ icon: z.ZodNullable<z.ZodString>;
1662
+ capabilities: z.ZodNullable<z.ZodString>;
1663
+ reportsToSlug: z.ZodNullable<z.ZodString>;
1664
+ adapterType: z.ZodString;
1665
+ adapterConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1666
+ runtimeConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1667
+ permissions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1668
+ budgetMonthlyCents: z.ZodNumber;
1669
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ title: string | null;
1672
+ path: string;
1673
+ name: string;
1674
+ metadata: Record<string, unknown> | null;
1675
+ budgetMonthlyCents: number;
1676
+ slug: string;
1677
+ adapterType: string;
1678
+ adapterConfig: Record<string, unknown>;
1679
+ skills: string[];
1680
+ role: string;
1681
+ icon: string | null;
1682
+ capabilities: string | null;
1683
+ reportsToSlug: string | null;
1684
+ runtimeConfig: Record<string, unknown>;
1685
+ permissions: Record<string, unknown>;
1686
+ }, {
1687
+ title: string | null;
1688
+ path: string;
1689
+ name: string;
1690
+ metadata: Record<string, unknown> | null;
1691
+ budgetMonthlyCents: number;
1692
+ slug: string;
1693
+ adapterType: string;
1694
+ adapterConfig: Record<string, unknown>;
1695
+ role: string;
1696
+ icon: string | null;
1697
+ capabilities: string | null;
1698
+ reportsToSlug: string | null;
1699
+ runtimeConfig: Record<string, unknown>;
1700
+ permissions: Record<string, unknown>;
1701
+ skills?: string[] | undefined;
1702
+ }>, "many">;
1703
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
1704
+ key: z.ZodString;
1705
+ slug: z.ZodString;
1706
+ name: z.ZodString;
1707
+ path: z.ZodString;
1708
+ description: z.ZodNullable<z.ZodString>;
1709
+ sourceType: z.ZodString;
1710
+ sourceLocator: z.ZodNullable<z.ZodString>;
1711
+ sourceRef: z.ZodNullable<z.ZodString>;
1712
+ trustLevel: z.ZodNullable<z.ZodString>;
1713
+ compatibility: z.ZodNullable<z.ZodString>;
1714
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1715
+ fileInventory: z.ZodDefault<z.ZodArray<z.ZodObject<{
1716
+ path: z.ZodString;
1717
+ kind: z.ZodString;
1718
+ }, "strip", z.ZodTypeAny, {
1719
+ kind: string;
1720
+ path: string;
1721
+ }, {
1722
+ kind: string;
1723
+ path: string;
1724
+ }>, "many">>;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ description: string | null;
1727
+ path: string;
1728
+ name: string;
1729
+ metadata: Record<string, unknown> | null;
1730
+ key: string;
1731
+ slug: string;
1732
+ sourceType: string;
1733
+ sourceLocator: string | null;
1734
+ sourceRef: string | null;
1735
+ trustLevel: string | null;
1736
+ compatibility: string | null;
1737
+ fileInventory: {
1738
+ kind: string;
1739
+ path: string;
1740
+ }[];
1741
+ }, {
1742
+ description: string | null;
1743
+ path: string;
1744
+ name: string;
1745
+ metadata: Record<string, unknown> | null;
1746
+ key: string;
1747
+ slug: string;
1748
+ sourceType: string;
1749
+ sourceLocator: string | null;
1750
+ sourceRef: string | null;
1751
+ trustLevel: string | null;
1752
+ compatibility: string | null;
1753
+ fileInventory?: {
1754
+ kind: string;
1755
+ path: string;
1756
+ }[] | undefined;
1757
+ }>, "many">>;
1758
+ projects: z.ZodDefault<z.ZodArray<z.ZodObject<{
1759
+ slug: z.ZodString;
1760
+ name: z.ZodString;
1761
+ path: z.ZodString;
1762
+ description: z.ZodNullable<z.ZodString>;
1763
+ ownerAgentSlug: z.ZodNullable<z.ZodString>;
1764
+ leadAgentSlug: z.ZodNullable<z.ZodString>;
1765
+ targetDate: z.ZodNullable<z.ZodString>;
1766
+ color: z.ZodNullable<z.ZodString>;
1767
+ status: z.ZodNullable<z.ZodString>;
1768
+ executionWorkspacePolicy: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1769
+ workspaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
1770
+ key: z.ZodString;
1771
+ name: z.ZodString;
1772
+ sourceType: z.ZodNullable<z.ZodString>;
1773
+ repoUrl: z.ZodNullable<z.ZodString>;
1774
+ repoRef: z.ZodNullable<z.ZodString>;
1775
+ defaultRef: z.ZodNullable<z.ZodString>;
1776
+ visibility: z.ZodNullable<z.ZodString>;
1777
+ setupCommand: z.ZodNullable<z.ZodString>;
1778
+ cleanupCommand: z.ZodNullable<z.ZodString>;
1779
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1780
+ isPrimary: z.ZodBoolean;
1781
+ }, "strip", z.ZodTypeAny, {
1782
+ cleanupCommand: string | null;
1783
+ name: string;
1784
+ repoUrl: string | null;
1785
+ metadata: Record<string, unknown> | null;
1786
+ key: string;
1787
+ sourceType: string | null;
1788
+ repoRef: string | null;
1789
+ defaultRef: string | null;
1790
+ visibility: string | null;
1791
+ setupCommand: string | null;
1792
+ isPrimary: boolean;
1793
+ }, {
1794
+ cleanupCommand: string | null;
1795
+ name: string;
1796
+ repoUrl: string | null;
1797
+ metadata: Record<string, unknown> | null;
1798
+ key: string;
1799
+ sourceType: string | null;
1800
+ repoRef: string | null;
1801
+ defaultRef: string | null;
1802
+ visibility: string | null;
1803
+ setupCommand: string | null;
1804
+ isPrimary: boolean;
1805
+ }>, "many">>;
1806
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1807
+ }, "strip", z.ZodTypeAny, {
1808
+ description: string | null;
1809
+ status: string | null;
1810
+ path: string;
1811
+ name: string;
1812
+ metadata: Record<string, unknown> | null;
1813
+ slug: string;
1814
+ color: string | null;
1815
+ ownerAgentSlug: string | null;
1816
+ leadAgentSlug: string | null;
1817
+ targetDate: string | null;
1818
+ executionWorkspacePolicy: Record<string, unknown> | null;
1819
+ workspaces: {
1820
+ cleanupCommand: string | null;
1821
+ name: string;
1822
+ repoUrl: string | null;
1823
+ metadata: Record<string, unknown> | null;
1824
+ key: string;
1825
+ sourceType: string | null;
1826
+ repoRef: string | null;
1827
+ defaultRef: string | null;
1828
+ visibility: string | null;
1829
+ setupCommand: string | null;
1830
+ isPrimary: boolean;
1831
+ }[];
1832
+ }, {
1833
+ description: string | null;
1834
+ status: string | null;
1835
+ path: string;
1836
+ name: string;
1837
+ metadata: Record<string, unknown> | null;
1838
+ slug: string;
1839
+ color: string | null;
1840
+ ownerAgentSlug: string | null;
1841
+ leadAgentSlug: string | null;
1842
+ targetDate: string | null;
1843
+ executionWorkspacePolicy: Record<string, unknown> | null;
1844
+ workspaces?: {
1845
+ cleanupCommand: string | null;
1846
+ name: string;
1847
+ repoUrl: string | null;
1848
+ metadata: Record<string, unknown> | null;
1849
+ key: string;
1850
+ sourceType: string | null;
1851
+ repoRef: string | null;
1852
+ defaultRef: string | null;
1853
+ visibility: string | null;
1854
+ setupCommand: string | null;
1855
+ isPrimary: boolean;
1856
+ }[] | undefined;
1857
+ }>, "many">>;
1858
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1859
+ slug: z.ZodString;
1860
+ identifier: z.ZodNullable<z.ZodString>;
1861
+ title: z.ZodString;
1862
+ path: z.ZodString;
1863
+ projectSlug: z.ZodNullable<z.ZodString>;
1864
+ projectWorkspaceKey: z.ZodNullable<z.ZodString>;
1865
+ assigneeAgentSlug: z.ZodNullable<z.ZodString>;
1866
+ description: z.ZodNullable<z.ZodString>;
1867
+ recurring: z.ZodDefault<z.ZodBoolean>;
1868
+ routine: z.ZodNullable<z.ZodObject<{
1869
+ concurrencyPolicy: z.ZodNullable<z.ZodString>;
1870
+ catchUpPolicy: z.ZodNullable<z.ZodString>;
1871
+ variables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodObject<{
1872
+ name: z.ZodString;
1873
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1874
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select"]>>>;
1875
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1876
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1877
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ required: boolean;
1880
+ options: string[];
1881
+ type: "number" | "boolean" | "text" | "textarea" | "select";
1882
+ name: string;
1883
+ label?: string | null | undefined;
1884
+ defaultValue?: string | number | boolean | null | undefined;
1885
+ }, {
1886
+ name: string;
1887
+ required?: boolean | undefined;
1888
+ label?: string | null | undefined;
1889
+ options?: string[] | undefined;
1890
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
1891
+ defaultValue?: string | number | boolean | null | undefined;
1892
+ }>, {
1893
+ required: boolean;
1894
+ options: string[];
1895
+ type: "number" | "boolean" | "text" | "textarea" | "select";
1896
+ name: string;
1897
+ label?: string | null | undefined;
1898
+ defaultValue?: string | number | boolean | null | undefined;
1899
+ }, {
1900
+ name: string;
1901
+ required?: boolean | undefined;
1902
+ label?: string | null | undefined;
1903
+ options?: string[] | undefined;
1904
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
1905
+ defaultValue?: string | number | boolean | null | undefined;
1906
+ }>, "many">>>;
1907
+ triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1908
+ kind: z.ZodString;
1909
+ label: z.ZodNullable<z.ZodString>;
1910
+ enabled: z.ZodBoolean;
1911
+ cronExpression: z.ZodNullable<z.ZodString>;
1912
+ timezone: z.ZodNullable<z.ZodString>;
1913
+ signingMode: z.ZodNullable<z.ZodString>;
1914
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ kind: string;
1917
+ label: string | null;
1918
+ enabled: boolean;
1919
+ cronExpression: string | null;
1920
+ timezone: string | null;
1921
+ signingMode: string | null;
1922
+ replayWindowSec: number | null;
1923
+ }, {
1924
+ kind: string;
1925
+ label: string | null;
1926
+ enabled: boolean;
1927
+ cronExpression: string | null;
1928
+ timezone: string | null;
1929
+ signingMode: string | null;
1930
+ replayWindowSec: number | null;
1931
+ }>, "many">>;
1932
+ }, "strip", z.ZodTypeAny, {
1933
+ concurrencyPolicy: string | null;
1934
+ catchUpPolicy: string | null;
1935
+ triggers: {
1936
+ kind: string;
1937
+ label: string | null;
1938
+ enabled: boolean;
1939
+ cronExpression: string | null;
1940
+ timezone: string | null;
1941
+ signingMode: string | null;
1942
+ replayWindowSec: number | null;
1943
+ }[];
1944
+ variables?: {
1945
+ required: boolean;
1946
+ options: string[];
1947
+ type: "number" | "boolean" | "text" | "textarea" | "select";
1948
+ name: string;
1949
+ label?: string | null | undefined;
1950
+ defaultValue?: string | number | boolean | null | undefined;
1951
+ }[] | null | undefined;
1952
+ }, {
1953
+ concurrencyPolicy: string | null;
1954
+ catchUpPolicy: string | null;
1955
+ variables?: {
1956
+ name: string;
1957
+ required?: boolean | undefined;
1958
+ label?: string | null | undefined;
1959
+ options?: string[] | undefined;
1960
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
1961
+ defaultValue?: string | number | boolean | null | undefined;
1962
+ }[] | null | undefined;
1963
+ triggers?: {
1964
+ kind: string;
1965
+ label: string | null;
1966
+ enabled: boolean;
1967
+ cronExpression: string | null;
1968
+ timezone: string | null;
1969
+ signingMode: string | null;
1970
+ replayWindowSec: number | null;
1971
+ }[] | undefined;
1972
+ }>>;
1973
+ legacyRecurrence: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1974
+ status: z.ZodNullable<z.ZodString>;
1975
+ priority: z.ZodNullable<z.ZodString>;
1976
+ labelIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1977
+ billingCode: z.ZodNullable<z.ZodString>;
1978
+ executionWorkspaceSettings: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1979
+ assigneeAdapterOverrides: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1980
+ comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1981
+ body: z.ZodString;
1982
+ authorType: z.ZodEnum<["user", "agent", "system"]>;
1983
+ authorAgentSlug: z.ZodNullable<z.ZodString>;
1984
+ authorUserId: z.ZodNullable<z.ZodString>;
1985
+ presentation: z.ZodNullable<z.ZodObject<{
1986
+ kind: z.ZodDefault<z.ZodEnum<["message", "system_notice"]>>;
1987
+ tone: z.ZodDefault<z.ZodEnum<["neutral", "info", "success", "warning", "danger"]>>;
1988
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1989
+ detailsDefaultOpen: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1990
+ }, "strict", z.ZodTypeAny, {
1991
+ kind: "message" | "system_notice";
1992
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
1993
+ detailsDefaultOpen: boolean;
1994
+ title?: string | null | undefined;
1995
+ }, {
1996
+ title?: string | null | undefined;
1997
+ kind?: "message" | "system_notice" | undefined;
1998
+ tone?: "neutral" | "info" | "success" | "warning" | "danger" | undefined;
1999
+ detailsDefaultOpen?: boolean | undefined;
2000
+ }>>;
2001
+ metadata: z.ZodNullable<z.ZodObject<{
2002
+ version: z.ZodLiteral<1>;
2003
+ sourceRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2004
+ sections: z.ZodArray<z.ZodObject<{
2005
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2006
+ rows: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2007
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2008
+ } & {
2009
+ type: z.ZodLiteral<"text">;
2010
+ text: z.ZodString;
2011
+ }, "strict", z.ZodTypeAny, {
2012
+ text: string;
2013
+ type: "text";
2014
+ label?: string | null | undefined;
2015
+ }, {
2016
+ text: string;
2017
+ type: "text";
2018
+ label?: string | null | undefined;
2019
+ }>, z.ZodObject<{
2020
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2021
+ } & {
2022
+ type: z.ZodLiteral<"code">;
2023
+ code: z.ZodString;
2024
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2025
+ }, "strict", z.ZodTypeAny, {
2026
+ code: string;
2027
+ type: "code";
2028
+ label?: string | null | undefined;
2029
+ language?: string | null | undefined;
2030
+ }, {
2031
+ code: string;
2032
+ type: "code";
2033
+ label?: string | null | undefined;
2034
+ language?: string | null | undefined;
2035
+ }>, z.ZodObject<{} & {
2036
+ type: z.ZodLiteral<"key_value">;
2037
+ label: z.ZodString;
2038
+ value: z.ZodString;
2039
+ }, "strict", z.ZodTypeAny, {
2040
+ label: string;
2041
+ value: string;
2042
+ type: "key_value";
2043
+ }, {
2044
+ label: string;
2045
+ value: string;
2046
+ type: "key_value";
2047
+ }>, z.ZodObject<{
2048
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2049
+ } & {
2050
+ type: z.ZodLiteral<"issue_link">;
2051
+ issueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2052
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2053
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2054
+ }, "strict", z.ZodTypeAny, {
2055
+ type: "issue_link";
2056
+ title?: string | null | undefined;
2057
+ issueId?: string | null | undefined;
2058
+ label?: string | null | undefined;
2059
+ identifier?: string | null | undefined;
2060
+ }, {
2061
+ type: "issue_link";
2062
+ title?: string | null | undefined;
2063
+ issueId?: string | null | undefined;
2064
+ label?: string | null | undefined;
2065
+ identifier?: string | null | undefined;
2066
+ }>, z.ZodObject<{
2067
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2068
+ } & {
2069
+ type: z.ZodLiteral<"agent_link">;
2070
+ agentId: z.ZodString;
2071
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2072
+ }, "strict", z.ZodTypeAny, {
2073
+ type: "agent_link";
2074
+ agentId: string;
2075
+ label?: string | null | undefined;
2076
+ name?: string | null | undefined;
2077
+ }, {
2078
+ type: "agent_link";
2079
+ agentId: string;
2080
+ label?: string | null | undefined;
2081
+ name?: string | null | undefined;
2082
+ }>, z.ZodObject<{
2083
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2084
+ } & {
2085
+ type: z.ZodLiteral<"run_link">;
2086
+ runId: z.ZodString;
2087
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2088
+ }, "strict", z.ZodTypeAny, {
2089
+ type: "run_link";
2090
+ runId: string;
2091
+ title?: string | null | undefined;
2092
+ label?: string | null | undefined;
2093
+ }, {
2094
+ type: "run_link";
2095
+ runId: string;
2096
+ title?: string | null | undefined;
2097
+ label?: string | null | undefined;
2098
+ }>]>, {
2099
+ text: string;
2100
+ type: "text";
2101
+ label?: string | null | undefined;
2102
+ } | {
2103
+ code: string;
2104
+ type: "code";
2105
+ label?: string | null | undefined;
2106
+ language?: string | null | undefined;
2107
+ } | {
2108
+ label: string;
2109
+ value: string;
2110
+ type: "key_value";
2111
+ } | {
2112
+ type: "issue_link";
2113
+ title?: string | null | undefined;
2114
+ issueId?: string | null | undefined;
2115
+ label?: string | null | undefined;
2116
+ identifier?: string | null | undefined;
2117
+ } | {
2118
+ type: "agent_link";
2119
+ agentId: string;
2120
+ label?: string | null | undefined;
2121
+ name?: string | null | undefined;
2122
+ } | {
2123
+ type: "run_link";
2124
+ runId: string;
2125
+ title?: string | null | undefined;
2126
+ label?: string | null | undefined;
2127
+ }, {
2128
+ text: string;
2129
+ type: "text";
2130
+ label?: string | null | undefined;
2131
+ } | {
2132
+ code: string;
2133
+ type: "code";
2134
+ label?: string | null | undefined;
2135
+ language?: string | null | undefined;
2136
+ } | {
2137
+ label: string;
2138
+ value: string;
2139
+ type: "key_value";
2140
+ } | {
2141
+ type: "issue_link";
2142
+ title?: string | null | undefined;
2143
+ issueId?: string | null | undefined;
2144
+ label?: string | null | undefined;
2145
+ identifier?: string | null | undefined;
2146
+ } | {
2147
+ type: "agent_link";
2148
+ agentId: string;
2149
+ label?: string | null | undefined;
2150
+ name?: string | null | undefined;
2151
+ } | {
2152
+ type: "run_link";
2153
+ runId: string;
2154
+ title?: string | null | undefined;
2155
+ label?: string | null | undefined;
2156
+ }>, "many">;
2157
+ }, "strict", z.ZodTypeAny, {
2158
+ rows: ({
2159
+ text: string;
2160
+ type: "text";
2161
+ label?: string | null | undefined;
2162
+ } | {
2163
+ code: string;
2164
+ type: "code";
2165
+ label?: string | null | undefined;
2166
+ language?: string | null | undefined;
2167
+ } | {
2168
+ label: string;
2169
+ value: string;
2170
+ type: "key_value";
2171
+ } | {
2172
+ type: "issue_link";
2173
+ title?: string | null | undefined;
2174
+ issueId?: string | null | undefined;
2175
+ label?: string | null | undefined;
2176
+ identifier?: string | null | undefined;
2177
+ } | {
2178
+ type: "agent_link";
2179
+ agentId: string;
2180
+ label?: string | null | undefined;
2181
+ name?: string | null | undefined;
2182
+ } | {
2183
+ type: "run_link";
2184
+ runId: string;
2185
+ title?: string | null | undefined;
2186
+ label?: string | null | undefined;
2187
+ })[];
2188
+ title?: string | null | undefined;
2189
+ }, {
2190
+ rows: ({
2191
+ text: string;
2192
+ type: "text";
2193
+ label?: string | null | undefined;
2194
+ } | {
2195
+ code: string;
2196
+ type: "code";
2197
+ label?: string | null | undefined;
2198
+ language?: string | null | undefined;
2199
+ } | {
2200
+ label: string;
2201
+ value: string;
2202
+ type: "key_value";
2203
+ } | {
2204
+ type: "issue_link";
2205
+ title?: string | null | undefined;
2206
+ issueId?: string | null | undefined;
2207
+ label?: string | null | undefined;
2208
+ identifier?: string | null | undefined;
2209
+ } | {
2210
+ type: "agent_link";
2211
+ agentId: string;
2212
+ label?: string | null | undefined;
2213
+ name?: string | null | undefined;
2214
+ } | {
2215
+ type: "run_link";
2216
+ runId: string;
2217
+ title?: string | null | undefined;
2218
+ label?: string | null | undefined;
2219
+ })[];
2220
+ title?: string | null | undefined;
2221
+ }>, "many">;
2222
+ }, "strict", z.ZodTypeAny, {
2223
+ version: 1;
2224
+ sections: {
2225
+ rows: ({
2226
+ text: string;
2227
+ type: "text";
2228
+ label?: string | null | undefined;
2229
+ } | {
2230
+ code: string;
2231
+ type: "code";
2232
+ label?: string | null | undefined;
2233
+ language?: string | null | undefined;
2234
+ } | {
2235
+ label: string;
2236
+ value: string;
2237
+ type: "key_value";
2238
+ } | {
2239
+ type: "issue_link";
2240
+ title?: string | null | undefined;
2241
+ issueId?: string | null | undefined;
2242
+ label?: string | null | undefined;
2243
+ identifier?: string | null | undefined;
2244
+ } | {
2245
+ type: "agent_link";
2246
+ agentId: string;
2247
+ label?: string | null | undefined;
2248
+ name?: string | null | undefined;
2249
+ } | {
2250
+ type: "run_link";
2251
+ runId: string;
2252
+ title?: string | null | undefined;
2253
+ label?: string | null | undefined;
2254
+ })[];
2255
+ title?: string | null | undefined;
2256
+ }[];
2257
+ sourceRunId?: string | null | undefined;
2258
+ }, {
2259
+ version: 1;
2260
+ sections: {
2261
+ rows: ({
2262
+ text: string;
2263
+ type: "text";
2264
+ label?: string | null | undefined;
2265
+ } | {
2266
+ code: string;
2267
+ type: "code";
2268
+ label?: string | null | undefined;
2269
+ language?: string | null | undefined;
2270
+ } | {
2271
+ label: string;
2272
+ value: string;
2273
+ type: "key_value";
2274
+ } | {
2275
+ type: "issue_link";
2276
+ title?: string | null | undefined;
2277
+ issueId?: string | null | undefined;
2278
+ label?: string | null | undefined;
2279
+ identifier?: string | null | undefined;
2280
+ } | {
2281
+ type: "agent_link";
2282
+ agentId: string;
2283
+ label?: string | null | undefined;
2284
+ name?: string | null | undefined;
2285
+ } | {
2286
+ type: "run_link";
2287
+ runId: string;
2288
+ title?: string | null | undefined;
2289
+ label?: string | null | undefined;
2290
+ })[];
2291
+ title?: string | null | undefined;
2292
+ }[];
2293
+ sourceRunId?: string | null | undefined;
2294
+ }>>;
2295
+ createdAt: z.ZodNullable<z.ZodString>;
2296
+ }, "strip", z.ZodTypeAny, {
2297
+ createdAt: string | null;
2298
+ body: string;
2299
+ metadata: {
2300
+ version: 1;
2301
+ sections: {
2302
+ rows: ({
2303
+ text: string;
2304
+ type: "text";
2305
+ label?: string | null | undefined;
2306
+ } | {
2307
+ code: string;
2308
+ type: "code";
2309
+ label?: string | null | undefined;
2310
+ language?: string | null | undefined;
2311
+ } | {
2312
+ label: string;
2313
+ value: string;
2314
+ type: "key_value";
2315
+ } | {
2316
+ type: "issue_link";
2317
+ title?: string | null | undefined;
2318
+ issueId?: string | null | undefined;
2319
+ label?: string | null | undefined;
2320
+ identifier?: string | null | undefined;
2321
+ } | {
2322
+ type: "agent_link";
2323
+ agentId: string;
2324
+ label?: string | null | undefined;
2325
+ name?: string | null | undefined;
2326
+ } | {
2327
+ type: "run_link";
2328
+ runId: string;
2329
+ title?: string | null | undefined;
2330
+ label?: string | null | undefined;
2331
+ })[];
2332
+ title?: string | null | undefined;
2333
+ }[];
2334
+ sourceRunId?: string | null | undefined;
2335
+ } | null;
2336
+ authorType: "user" | "agent" | "system";
2337
+ presentation: {
2338
+ kind: "message" | "system_notice";
2339
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
2340
+ detailsDefaultOpen: boolean;
2341
+ title?: string | null | undefined;
2342
+ } | null;
2343
+ authorAgentSlug: string | null;
2344
+ authorUserId: string | null;
2345
+ }, {
2346
+ createdAt: string | null;
2347
+ body: string;
2348
+ metadata: {
2349
+ version: 1;
2350
+ sections: {
2351
+ rows: ({
2352
+ text: string;
2353
+ type: "text";
2354
+ label?: string | null | undefined;
2355
+ } | {
2356
+ code: string;
2357
+ type: "code";
2358
+ label?: string | null | undefined;
2359
+ language?: string | null | undefined;
2360
+ } | {
2361
+ label: string;
2362
+ value: string;
2363
+ type: "key_value";
2364
+ } | {
2365
+ type: "issue_link";
2366
+ title?: string | null | undefined;
2367
+ issueId?: string | null | undefined;
2368
+ label?: string | null | undefined;
2369
+ identifier?: string | null | undefined;
2370
+ } | {
2371
+ type: "agent_link";
2372
+ agentId: string;
2373
+ label?: string | null | undefined;
2374
+ name?: string | null | undefined;
2375
+ } | {
2376
+ type: "run_link";
2377
+ runId: string;
2378
+ title?: string | null | undefined;
2379
+ label?: string | null | undefined;
2380
+ })[];
2381
+ title?: string | null | undefined;
2382
+ }[];
2383
+ sourceRunId?: string | null | undefined;
2384
+ } | null;
2385
+ authorType: "user" | "agent" | "system";
2386
+ presentation: {
2387
+ title?: string | null | undefined;
2388
+ kind?: "message" | "system_notice" | undefined;
2389
+ tone?: "neutral" | "info" | "success" | "warning" | "danger" | undefined;
2390
+ detailsDefaultOpen?: boolean | undefined;
2391
+ } | null;
2392
+ authorAgentSlug: string | null;
2393
+ authorUserId: string | null;
2394
+ }>, "many">>;
2395
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2396
+ }, "strip", z.ZodTypeAny, {
2397
+ title: string;
2398
+ description: string | null;
2399
+ comments: {
2400
+ createdAt: string | null;
2401
+ body: string;
2402
+ metadata: {
2403
+ version: 1;
2404
+ sections: {
2405
+ rows: ({
2406
+ text: string;
2407
+ type: "text";
2408
+ label?: string | null | undefined;
2409
+ } | {
2410
+ code: string;
2411
+ type: "code";
2412
+ label?: string | null | undefined;
2413
+ language?: string | null | undefined;
2414
+ } | {
2415
+ label: string;
2416
+ value: string;
2417
+ type: "key_value";
2418
+ } | {
2419
+ type: "issue_link";
2420
+ title?: string | null | undefined;
2421
+ issueId?: string | null | undefined;
2422
+ label?: string | null | undefined;
2423
+ identifier?: string | null | undefined;
2424
+ } | {
2425
+ type: "agent_link";
2426
+ agentId: string;
2427
+ label?: string | null | undefined;
2428
+ name?: string | null | undefined;
2429
+ } | {
2430
+ type: "run_link";
2431
+ runId: string;
2432
+ title?: string | null | undefined;
2433
+ label?: string | null | undefined;
2434
+ })[];
2435
+ title?: string | null | undefined;
2436
+ }[];
2437
+ sourceRunId?: string | null | undefined;
2438
+ } | null;
2439
+ authorType: "user" | "agent" | "system";
2440
+ presentation: {
2441
+ kind: "message" | "system_notice";
2442
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
2443
+ detailsDefaultOpen: boolean;
2444
+ title?: string | null | undefined;
2445
+ } | null;
2446
+ authorAgentSlug: string | null;
2447
+ authorUserId: string | null;
2448
+ }[];
2449
+ status: string | null;
2450
+ routine: {
2451
+ concurrencyPolicy: string | null;
2452
+ catchUpPolicy: string | null;
2453
+ triggers: {
2454
+ kind: string;
2455
+ label: string | null;
2456
+ enabled: boolean;
2457
+ cronExpression: string | null;
2458
+ timezone: string | null;
2459
+ signingMode: string | null;
2460
+ replayWindowSec: number | null;
2461
+ }[];
2462
+ variables?: {
2463
+ required: boolean;
2464
+ options: string[];
2465
+ type: "number" | "boolean" | "text" | "textarea" | "select";
2466
+ name: string;
2467
+ label?: string | null | undefined;
2468
+ defaultValue?: string | number | boolean | null | undefined;
2469
+ }[] | null | undefined;
2470
+ } | null;
2471
+ identifier: string | null;
2472
+ path: string;
2473
+ metadata: Record<string, unknown> | null;
2474
+ slug: string;
2475
+ priority: string | null;
2476
+ billingCode: string | null;
2477
+ assigneeAdapterOverrides: Record<string, unknown> | null;
2478
+ executionWorkspaceSettings: Record<string, unknown> | null;
2479
+ labelIds: string[];
2480
+ projectSlug: string | null;
2481
+ projectWorkspaceKey: string | null;
2482
+ assigneeAgentSlug: string | null;
2483
+ recurring: boolean;
2484
+ legacyRecurrence: Record<string, unknown> | null;
2485
+ }, {
2486
+ title: string;
2487
+ description: string | null;
2488
+ status: string | null;
2489
+ routine: {
2490
+ concurrencyPolicy: string | null;
2491
+ catchUpPolicy: string | null;
2492
+ variables?: {
2493
+ name: string;
2494
+ required?: boolean | undefined;
2495
+ label?: string | null | undefined;
2496
+ options?: string[] | undefined;
2497
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
2498
+ defaultValue?: string | number | boolean | null | undefined;
2499
+ }[] | null | undefined;
2500
+ triggers?: {
2501
+ kind: string;
2502
+ label: string | null;
2503
+ enabled: boolean;
2504
+ cronExpression: string | null;
2505
+ timezone: string | null;
2506
+ signingMode: string | null;
2507
+ replayWindowSec: number | null;
2508
+ }[] | undefined;
2509
+ } | null;
2510
+ identifier: string | null;
2511
+ path: string;
2512
+ metadata: Record<string, unknown> | null;
2513
+ slug: string;
2514
+ priority: string | null;
2515
+ billingCode: string | null;
2516
+ assigneeAdapterOverrides: Record<string, unknown> | null;
2517
+ executionWorkspaceSettings: Record<string, unknown> | null;
2518
+ projectSlug: string | null;
2519
+ projectWorkspaceKey: string | null;
2520
+ assigneeAgentSlug: string | null;
2521
+ legacyRecurrence: Record<string, unknown> | null;
2522
+ comments?: {
2523
+ createdAt: string | null;
2524
+ body: string;
2525
+ metadata: {
2526
+ version: 1;
2527
+ sections: {
2528
+ rows: ({
2529
+ text: string;
2530
+ type: "text";
2531
+ label?: string | null | undefined;
2532
+ } | {
2533
+ code: string;
2534
+ type: "code";
2535
+ label?: string | null | undefined;
2536
+ language?: string | null | undefined;
2537
+ } | {
2538
+ label: string;
2539
+ value: string;
2540
+ type: "key_value";
2541
+ } | {
2542
+ type: "issue_link";
2543
+ title?: string | null | undefined;
2544
+ issueId?: string | null | undefined;
2545
+ label?: string | null | undefined;
2546
+ identifier?: string | null | undefined;
2547
+ } | {
2548
+ type: "agent_link";
2549
+ agentId: string;
2550
+ label?: string | null | undefined;
2551
+ name?: string | null | undefined;
2552
+ } | {
2553
+ type: "run_link";
2554
+ runId: string;
2555
+ title?: string | null | undefined;
2556
+ label?: string | null | undefined;
2557
+ })[];
2558
+ title?: string | null | undefined;
2559
+ }[];
2560
+ sourceRunId?: string | null | undefined;
2561
+ } | null;
2562
+ authorType: "user" | "agent" | "system";
2563
+ presentation: {
2564
+ title?: string | null | undefined;
2565
+ kind?: "message" | "system_notice" | undefined;
2566
+ tone?: "neutral" | "info" | "success" | "warning" | "danger" | undefined;
2567
+ detailsDefaultOpen?: boolean | undefined;
2568
+ } | null;
2569
+ authorAgentSlug: string | null;
2570
+ authorUserId: string | null;
2571
+ }[] | undefined;
2572
+ labelIds?: string[] | undefined;
2573
+ recurring?: boolean | undefined;
2574
+ }>, "many">>;
2575
+ envInputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2576
+ key: z.ZodString;
2577
+ description: z.ZodNullable<z.ZodString>;
2578
+ agentSlug: z.ZodNullable<z.ZodString>;
2579
+ projectSlug: z.ZodNullable<z.ZodString>;
2580
+ kind: z.ZodEnum<["secret", "plain"]>;
2581
+ requirement: z.ZodEnum<["required", "optional"]>;
2582
+ defaultValue: z.ZodNullable<z.ZodString>;
2583
+ portability: z.ZodEnum<["portable", "system_dependent"]>;
2584
+ }, "strip", z.ZodTypeAny, {
2585
+ description: string | null;
2586
+ kind: "plain" | "secret";
2587
+ key: string;
2588
+ defaultValue: string | null;
2589
+ agentSlug: string | null;
2590
+ projectSlug: string | null;
2591
+ requirement: "required" | "optional";
2592
+ portability: "portable" | "system_dependent";
2593
+ }, {
2594
+ description: string | null;
2595
+ kind: "plain" | "secret";
2596
+ key: string;
2597
+ defaultValue: string | null;
2598
+ agentSlug: string | null;
2599
+ projectSlug: string | null;
2600
+ requirement: "required" | "optional";
2601
+ portability: "portable" | "system_dependent";
2602
+ }>, "many">>;
2603
+ }, "strip", z.ZodTypeAny, {
2604
+ company: {
2605
+ description: string | null;
2606
+ path: string;
2607
+ name: string;
2608
+ attachmentMaxBytes: number | null;
2609
+ requireBoardApprovalForNewAgents: boolean;
2610
+ feedbackDataSharingEnabled: boolean;
2611
+ feedbackDataSharingConsentAt: string | null;
2612
+ feedbackDataSharingConsentByUserId: string | null;
2613
+ feedbackDataSharingTermsVersion: string | null;
2614
+ brandColor: string | null;
2615
+ logoPath: string | null;
2616
+ } | null;
2617
+ projects: {
2618
+ description: string | null;
2619
+ status: string | null;
2620
+ path: string;
2621
+ name: string;
2622
+ metadata: Record<string, unknown> | null;
2623
+ slug: string;
2624
+ color: string | null;
2625
+ ownerAgentSlug: string | null;
2626
+ leadAgentSlug: string | null;
2627
+ targetDate: string | null;
2628
+ executionWorkspacePolicy: Record<string, unknown> | null;
2629
+ workspaces: {
2630
+ cleanupCommand: string | null;
2631
+ name: string;
2632
+ repoUrl: string | null;
2633
+ metadata: Record<string, unknown> | null;
2634
+ key: string;
2635
+ sourceType: string | null;
2636
+ repoRef: string | null;
2637
+ defaultRef: string | null;
2638
+ visibility: string | null;
2639
+ setupCommand: string | null;
2640
+ isPrimary: boolean;
2641
+ }[];
2642
+ }[];
2643
+ agents: {
2644
+ title: string | null;
2645
+ path: string;
2646
+ name: string;
2647
+ metadata: Record<string, unknown> | null;
2648
+ budgetMonthlyCents: number;
2649
+ slug: string;
2650
+ adapterType: string;
2651
+ adapterConfig: Record<string, unknown>;
2652
+ skills: string[];
2653
+ role: string;
2654
+ icon: string | null;
2655
+ capabilities: string | null;
2656
+ reportsToSlug: string | null;
2657
+ runtimeConfig: Record<string, unknown>;
2658
+ permissions: Record<string, unknown>;
2659
+ }[];
2660
+ issues: {
2661
+ title: string;
2662
+ description: string | null;
2663
+ comments: {
2664
+ createdAt: string | null;
2665
+ body: string;
2666
+ metadata: {
2667
+ version: 1;
2668
+ sections: {
2669
+ rows: ({
2670
+ text: string;
2671
+ type: "text";
2672
+ label?: string | null | undefined;
2673
+ } | {
2674
+ code: string;
2675
+ type: "code";
2676
+ label?: string | null | undefined;
2677
+ language?: string | null | undefined;
2678
+ } | {
2679
+ label: string;
2680
+ value: string;
2681
+ type: "key_value";
2682
+ } | {
2683
+ type: "issue_link";
2684
+ title?: string | null | undefined;
2685
+ issueId?: string | null | undefined;
2686
+ label?: string | null | undefined;
2687
+ identifier?: string | null | undefined;
2688
+ } | {
2689
+ type: "agent_link";
2690
+ agentId: string;
2691
+ label?: string | null | undefined;
2692
+ name?: string | null | undefined;
2693
+ } | {
2694
+ type: "run_link";
2695
+ runId: string;
2696
+ title?: string | null | undefined;
2697
+ label?: string | null | undefined;
2698
+ })[];
2699
+ title?: string | null | undefined;
2700
+ }[];
2701
+ sourceRunId?: string | null | undefined;
2702
+ } | null;
2703
+ authorType: "user" | "agent" | "system";
2704
+ presentation: {
2705
+ kind: "message" | "system_notice";
2706
+ tone: "neutral" | "info" | "success" | "warning" | "danger";
2707
+ detailsDefaultOpen: boolean;
2708
+ title?: string | null | undefined;
2709
+ } | null;
2710
+ authorAgentSlug: string | null;
2711
+ authorUserId: string | null;
2712
+ }[];
2713
+ status: string | null;
2714
+ routine: {
2715
+ concurrencyPolicy: string | null;
2716
+ catchUpPolicy: string | null;
2717
+ triggers: {
2718
+ kind: string;
2719
+ label: string | null;
2720
+ enabled: boolean;
2721
+ cronExpression: string | null;
2722
+ timezone: string | null;
2723
+ signingMode: string | null;
2724
+ replayWindowSec: number | null;
2725
+ }[];
2726
+ variables?: {
2727
+ required: boolean;
2728
+ options: string[];
2729
+ type: "number" | "boolean" | "text" | "textarea" | "select";
2730
+ name: string;
2731
+ label?: string | null | undefined;
2732
+ defaultValue?: string | number | boolean | null | undefined;
2733
+ }[] | null | undefined;
2734
+ } | null;
2735
+ identifier: string | null;
2736
+ path: string;
2737
+ metadata: Record<string, unknown> | null;
2738
+ slug: string;
2739
+ priority: string | null;
2740
+ billingCode: string | null;
2741
+ assigneeAdapterOverrides: Record<string, unknown> | null;
2742
+ executionWorkspaceSettings: Record<string, unknown> | null;
2743
+ labelIds: string[];
2744
+ projectSlug: string | null;
2745
+ projectWorkspaceKey: string | null;
2746
+ assigneeAgentSlug: string | null;
2747
+ recurring: boolean;
2748
+ legacyRecurrence: Record<string, unknown> | null;
2749
+ }[];
2750
+ sidebar: {
2751
+ projects: string[];
2752
+ agents: string[];
2753
+ } | null;
2754
+ source: {
2755
+ companyId: string;
2756
+ companyName: string;
2757
+ } | null;
2758
+ includes: {
2759
+ company: boolean;
2760
+ projects: boolean;
2761
+ agents: boolean;
2762
+ issues: boolean;
2763
+ skills: boolean;
2764
+ };
2765
+ skills: {
2766
+ description: string | null;
2767
+ path: string;
2768
+ name: string;
2769
+ metadata: Record<string, unknown> | null;
2770
+ key: string;
2771
+ slug: string;
2772
+ sourceType: string;
2773
+ sourceLocator: string | null;
2774
+ sourceRef: string | null;
2775
+ trustLevel: string | null;
2776
+ compatibility: string | null;
2777
+ fileInventory: {
2778
+ kind: string;
2779
+ path: string;
2780
+ }[];
2781
+ }[];
2782
+ schemaVersion: number;
2783
+ generatedAt: string;
2784
+ envInputs: {
2785
+ description: string | null;
2786
+ kind: "plain" | "secret";
2787
+ key: string;
2788
+ defaultValue: string | null;
2789
+ agentSlug: string | null;
2790
+ projectSlug: string | null;
2791
+ requirement: "required" | "optional";
2792
+ portability: "portable" | "system_dependent";
2793
+ }[];
2794
+ }, {
2795
+ company: {
2796
+ description: string | null;
2797
+ path: string;
2798
+ name: string;
2799
+ requireBoardApprovalForNewAgents: boolean;
2800
+ brandColor: string | null;
2801
+ logoPath: string | null;
2802
+ attachmentMaxBytes?: number | null | undefined;
2803
+ feedbackDataSharingEnabled?: boolean | undefined;
2804
+ feedbackDataSharingConsentAt?: string | null | undefined;
2805
+ feedbackDataSharingConsentByUserId?: string | null | undefined;
2806
+ feedbackDataSharingTermsVersion?: string | null | undefined;
2807
+ } | null;
2808
+ agents: {
2809
+ title: string | null;
2810
+ path: string;
2811
+ name: string;
2812
+ metadata: Record<string, unknown> | null;
2813
+ budgetMonthlyCents: number;
2814
+ slug: string;
2815
+ adapterType: string;
2816
+ adapterConfig: Record<string, unknown>;
2817
+ role: string;
2818
+ icon: string | null;
2819
+ capabilities: string | null;
2820
+ reportsToSlug: string | null;
2821
+ runtimeConfig: Record<string, unknown>;
2822
+ permissions: Record<string, unknown>;
2823
+ skills?: string[] | undefined;
2824
+ }[];
2825
+ sidebar: {
2826
+ projects?: string[] | undefined;
2827
+ agents?: string[] | undefined;
2828
+ } | null;
2829
+ source: {
2830
+ companyId: string;
2831
+ companyName: string;
2832
+ } | null;
2833
+ includes: {
2834
+ company: boolean;
2835
+ projects: boolean;
2836
+ agents: boolean;
2837
+ issues: boolean;
2838
+ skills: boolean;
2839
+ };
2840
+ schemaVersion: number;
2841
+ generatedAt: string;
2842
+ projects?: {
2843
+ description: string | null;
2844
+ status: string | null;
2845
+ path: string;
2846
+ name: string;
2847
+ metadata: Record<string, unknown> | null;
2848
+ slug: string;
2849
+ color: string | null;
2850
+ ownerAgentSlug: string | null;
2851
+ leadAgentSlug: string | null;
2852
+ targetDate: string | null;
2853
+ executionWorkspacePolicy: Record<string, unknown> | null;
2854
+ workspaces?: {
2855
+ cleanupCommand: string | null;
2856
+ name: string;
2857
+ repoUrl: string | null;
2858
+ metadata: Record<string, unknown> | null;
2859
+ key: string;
2860
+ sourceType: string | null;
2861
+ repoRef: string | null;
2862
+ defaultRef: string | null;
2863
+ visibility: string | null;
2864
+ setupCommand: string | null;
2865
+ isPrimary: boolean;
2866
+ }[] | undefined;
2867
+ }[] | undefined;
2868
+ issues?: {
2869
+ title: string;
2870
+ description: string | null;
2871
+ status: string | null;
2872
+ routine: {
2873
+ concurrencyPolicy: string | null;
2874
+ catchUpPolicy: string | null;
2875
+ variables?: {
2876
+ name: string;
2877
+ required?: boolean | undefined;
2878
+ label?: string | null | undefined;
2879
+ options?: string[] | undefined;
2880
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
2881
+ defaultValue?: string | number | boolean | null | undefined;
2882
+ }[] | null | undefined;
2883
+ triggers?: {
2884
+ kind: string;
2885
+ label: string | null;
2886
+ enabled: boolean;
2887
+ cronExpression: string | null;
2888
+ timezone: string | null;
2889
+ signingMode: string | null;
2890
+ replayWindowSec: number | null;
2891
+ }[] | undefined;
2892
+ } | null;
2893
+ identifier: string | null;
2894
+ path: string;
2895
+ metadata: Record<string, unknown> | null;
2896
+ slug: string;
2897
+ priority: string | null;
2898
+ billingCode: string | null;
2899
+ assigneeAdapterOverrides: Record<string, unknown> | null;
2900
+ executionWorkspaceSettings: Record<string, unknown> | null;
2901
+ projectSlug: string | null;
2902
+ projectWorkspaceKey: string | null;
2903
+ assigneeAgentSlug: string | null;
2904
+ legacyRecurrence: Record<string, unknown> | null;
2905
+ comments?: {
2906
+ createdAt: string | null;
2907
+ body: string;
2908
+ metadata: {
2909
+ version: 1;
2910
+ sections: {
2911
+ rows: ({
2912
+ text: string;
2913
+ type: "text";
2914
+ label?: string | null | undefined;
2915
+ } | {
2916
+ code: string;
2917
+ type: "code";
2918
+ label?: string | null | undefined;
2919
+ language?: string | null | undefined;
2920
+ } | {
2921
+ label: string;
2922
+ value: string;
2923
+ type: "key_value";
2924
+ } | {
2925
+ type: "issue_link";
2926
+ title?: string | null | undefined;
2927
+ issueId?: string | null | undefined;
2928
+ label?: string | null | undefined;
2929
+ identifier?: string | null | undefined;
2930
+ } | {
2931
+ type: "agent_link";
2932
+ agentId: string;
2933
+ label?: string | null | undefined;
2934
+ name?: string | null | undefined;
2935
+ } | {
2936
+ type: "run_link";
2937
+ runId: string;
2938
+ title?: string | null | undefined;
2939
+ label?: string | null | undefined;
2940
+ })[];
2941
+ title?: string | null | undefined;
2942
+ }[];
2943
+ sourceRunId?: string | null | undefined;
2944
+ } | null;
2945
+ authorType: "user" | "agent" | "system";
2946
+ presentation: {
2947
+ title?: string | null | undefined;
2948
+ kind?: "message" | "system_notice" | undefined;
2949
+ tone?: "neutral" | "info" | "success" | "warning" | "danger" | undefined;
2950
+ detailsDefaultOpen?: boolean | undefined;
2951
+ } | null;
2952
+ authorAgentSlug: string | null;
2953
+ authorUserId: string | null;
2954
+ }[] | undefined;
2955
+ labelIds?: string[] | undefined;
2956
+ recurring?: boolean | undefined;
2957
+ }[] | undefined;
2958
+ skills?: {
2959
+ description: string | null;
2960
+ path: string;
2961
+ name: string;
2962
+ metadata: Record<string, unknown> | null;
2963
+ key: string;
2964
+ slug: string;
2965
+ sourceType: string;
2966
+ sourceLocator: string | null;
2967
+ sourceRef: string | null;
2968
+ trustLevel: string | null;
2969
+ compatibility: string | null;
2970
+ fileInventory?: {
2971
+ kind: string;
2972
+ path: string;
2973
+ }[] | undefined;
2974
+ }[] | undefined;
2975
+ envInputs?: {
2976
+ description: string | null;
2977
+ kind: "plain" | "secret";
2978
+ key: string;
2979
+ defaultValue: string | null;
2980
+ agentSlug: string | null;
2981
+ projectSlug: string | null;
2982
+ requirement: "required" | "optional";
2983
+ portability: "portable" | "system_dependent";
2984
+ }[] | undefined;
2985
+ }>;
2986
+ export declare const portabilitySourceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2987
+ type: z.ZodLiteral<"inline">;
2988
+ rootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2989
+ files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
2990
+ encoding: z.ZodLiteral<"base64">;
2991
+ data: z.ZodString;
2992
+ contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2993
+ }, "strip", z.ZodTypeAny, {
2994
+ encoding: "base64";
2995
+ data: string;
2996
+ contentType?: string | null | undefined;
2997
+ }, {
2998
+ encoding: "base64";
2999
+ data: string;
3000
+ contentType?: string | null | undefined;
3001
+ }>]>>;
3002
+ }, "strip", z.ZodTypeAny, {
3003
+ type: "inline";
3004
+ files: Record<string, string | {
3005
+ encoding: "base64";
3006
+ data: string;
3007
+ contentType?: string | null | undefined;
3008
+ }>;
3009
+ rootPath?: string | null | undefined;
3010
+ }, {
3011
+ type: "inline";
3012
+ files: Record<string, string | {
3013
+ encoding: "base64";
3014
+ data: string;
3015
+ contentType?: string | null | undefined;
3016
+ }>;
3017
+ rootPath?: string | null | undefined;
3018
+ }>, z.ZodObject<{
3019
+ type: z.ZodLiteral<"github">;
3020
+ url: z.ZodString;
3021
+ }, "strip", z.ZodTypeAny, {
3022
+ url: string;
3023
+ type: "github";
3024
+ }, {
3025
+ url: string;
3026
+ type: "github";
3027
+ }>]>;
3028
+ export declare const portabilityTargetSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3029
+ mode: z.ZodLiteral<"new_company">;
3030
+ newCompanyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3031
+ }, "strip", z.ZodTypeAny, {
3032
+ mode: "new_company";
3033
+ newCompanyName?: string | null | undefined;
3034
+ }, {
3035
+ mode: "new_company";
3036
+ newCompanyName?: string | null | undefined;
3037
+ }>, z.ZodObject<{
3038
+ mode: z.ZodLiteral<"existing_company">;
3039
+ companyId: z.ZodString;
3040
+ }, "strip", z.ZodTypeAny, {
3041
+ companyId: string;
3042
+ mode: "existing_company";
3043
+ }, {
3044
+ companyId: string;
3045
+ mode: "existing_company";
3046
+ }>]>;
3047
+ export declare const portabilityAgentSelectionSchema: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodString, "many">]>;
3048
+ export declare const portabilityCollisionStrategySchema: z.ZodEnum<["rename", "skip", "replace"]>;
3049
+ export declare const companyPortabilityExportSchema: z.ZodObject<{
3050
+ include: z.ZodOptional<z.ZodObject<{
3051
+ company: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3052
+ agents: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3053
+ projects: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3054
+ issues: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3055
+ skills: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3056
+ }, "strip", z.ZodTypeAny, {
3057
+ company?: boolean | undefined;
3058
+ projects?: boolean | undefined;
3059
+ agents?: boolean | undefined;
3060
+ issues?: boolean | undefined;
3061
+ skills?: boolean | undefined;
3062
+ }, {
3063
+ company?: boolean | undefined;
3064
+ projects?: boolean | undefined;
3065
+ agents?: boolean | undefined;
3066
+ issues?: boolean | undefined;
3067
+ skills?: boolean | undefined;
3068
+ }>>;
3069
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3070
+ skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3071
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3072
+ issues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3073
+ projectIssues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3074
+ selectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3075
+ expandReferencedSkills: z.ZodOptional<z.ZodBoolean>;
3076
+ sidebarOrder: z.ZodOptional<z.ZodObject<{
3077
+ agents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
3078
+ projects: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
3079
+ }, "strip", z.ZodTypeAny, {
3080
+ projects?: string[] | undefined;
3081
+ agents?: string[] | undefined;
3082
+ }, {
3083
+ projects?: string[] | undefined;
3084
+ agents?: string[] | undefined;
3085
+ }>>;
3086
+ }, "strip", z.ZodTypeAny, {
3087
+ projects?: string[] | undefined;
3088
+ agents?: string[] | undefined;
3089
+ issues?: string[] | undefined;
3090
+ skills?: string[] | undefined;
3091
+ include?: {
3092
+ company?: boolean | undefined;
3093
+ projects?: boolean | undefined;
3094
+ agents?: boolean | undefined;
3095
+ issues?: boolean | undefined;
3096
+ skills?: boolean | undefined;
3097
+ } | undefined;
3098
+ projectIssues?: string[] | undefined;
3099
+ selectedFiles?: string[] | undefined;
3100
+ expandReferencedSkills?: boolean | undefined;
3101
+ sidebarOrder?: {
3102
+ projects?: string[] | undefined;
3103
+ agents?: string[] | undefined;
3104
+ } | undefined;
3105
+ }, {
3106
+ projects?: string[] | undefined;
3107
+ agents?: string[] | undefined;
3108
+ issues?: string[] | undefined;
3109
+ skills?: string[] | undefined;
3110
+ include?: {
3111
+ company?: boolean | undefined;
3112
+ projects?: boolean | undefined;
3113
+ agents?: boolean | undefined;
3114
+ issues?: boolean | undefined;
3115
+ skills?: boolean | undefined;
3116
+ } | undefined;
3117
+ projectIssues?: string[] | undefined;
3118
+ selectedFiles?: string[] | undefined;
3119
+ expandReferencedSkills?: boolean | undefined;
3120
+ sidebarOrder?: {
3121
+ projects?: string[] | undefined;
3122
+ agents?: string[] | undefined;
3123
+ } | undefined;
3124
+ }>;
3125
+ export type CompanyPortabilityExport = z.infer<typeof companyPortabilityExportSchema>;
3126
+ export declare const companyPortabilityPreviewSchema: z.ZodObject<{
3127
+ source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3128
+ type: z.ZodLiteral<"inline">;
3129
+ rootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3130
+ files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
3131
+ encoding: z.ZodLiteral<"base64">;
3132
+ data: z.ZodString;
3133
+ contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3134
+ }, "strip", z.ZodTypeAny, {
3135
+ encoding: "base64";
3136
+ data: string;
3137
+ contentType?: string | null | undefined;
3138
+ }, {
3139
+ encoding: "base64";
3140
+ data: string;
3141
+ contentType?: string | null | undefined;
3142
+ }>]>>;
3143
+ }, "strip", z.ZodTypeAny, {
3144
+ type: "inline";
3145
+ files: Record<string, string | {
3146
+ encoding: "base64";
3147
+ data: string;
3148
+ contentType?: string | null | undefined;
3149
+ }>;
3150
+ rootPath?: string | null | undefined;
3151
+ }, {
3152
+ type: "inline";
3153
+ files: Record<string, string | {
3154
+ encoding: "base64";
3155
+ data: string;
3156
+ contentType?: string | null | undefined;
3157
+ }>;
3158
+ rootPath?: string | null | undefined;
3159
+ }>, z.ZodObject<{
3160
+ type: z.ZodLiteral<"github">;
3161
+ url: z.ZodString;
3162
+ }, "strip", z.ZodTypeAny, {
3163
+ url: string;
3164
+ type: "github";
3165
+ }, {
3166
+ url: string;
3167
+ type: "github";
3168
+ }>]>;
3169
+ include: z.ZodOptional<z.ZodObject<{
3170
+ company: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3171
+ agents: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3172
+ projects: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3173
+ issues: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3174
+ skills: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3175
+ }, "strip", z.ZodTypeAny, {
3176
+ company?: boolean | undefined;
3177
+ projects?: boolean | undefined;
3178
+ agents?: boolean | undefined;
3179
+ issues?: boolean | undefined;
3180
+ skills?: boolean | undefined;
3181
+ }, {
3182
+ company?: boolean | undefined;
3183
+ projects?: boolean | undefined;
3184
+ agents?: boolean | undefined;
3185
+ issues?: boolean | undefined;
3186
+ skills?: boolean | undefined;
3187
+ }>>;
3188
+ target: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3189
+ mode: z.ZodLiteral<"new_company">;
3190
+ newCompanyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3191
+ }, "strip", z.ZodTypeAny, {
3192
+ mode: "new_company";
3193
+ newCompanyName?: string | null | undefined;
3194
+ }, {
3195
+ mode: "new_company";
3196
+ newCompanyName?: string | null | undefined;
3197
+ }>, z.ZodObject<{
3198
+ mode: z.ZodLiteral<"existing_company">;
3199
+ companyId: z.ZodString;
3200
+ }, "strip", z.ZodTypeAny, {
3201
+ companyId: string;
3202
+ mode: "existing_company";
3203
+ }, {
3204
+ companyId: string;
3205
+ mode: "existing_company";
3206
+ }>]>;
3207
+ agents: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodString, "many">]>>;
3208
+ collisionStrategy: z.ZodOptional<z.ZodEnum<["rename", "skip", "replace"]>>;
3209
+ nameOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3210
+ selectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3211
+ }, "strip", z.ZodTypeAny, {
3212
+ target: {
3213
+ mode: "new_company";
3214
+ newCompanyName?: string | null | undefined;
3215
+ } | {
3216
+ companyId: string;
3217
+ mode: "existing_company";
3218
+ };
3219
+ source: {
3220
+ type: "inline";
3221
+ files: Record<string, string | {
3222
+ encoding: "base64";
3223
+ data: string;
3224
+ contentType?: string | null | undefined;
3225
+ }>;
3226
+ rootPath?: string | null | undefined;
3227
+ } | {
3228
+ url: string;
3229
+ type: "github";
3230
+ };
3231
+ agents?: string[] | "all" | undefined;
3232
+ include?: {
3233
+ company?: boolean | undefined;
3234
+ projects?: boolean | undefined;
3235
+ agents?: boolean | undefined;
3236
+ issues?: boolean | undefined;
3237
+ skills?: boolean | undefined;
3238
+ } | undefined;
3239
+ selectedFiles?: string[] | undefined;
3240
+ collisionStrategy?: "rename" | "skip" | "replace" | undefined;
3241
+ nameOverrides?: Record<string, string> | undefined;
3242
+ }, {
3243
+ target: {
3244
+ mode: "new_company";
3245
+ newCompanyName?: string | null | undefined;
3246
+ } | {
3247
+ companyId: string;
3248
+ mode: "existing_company";
3249
+ };
3250
+ source: {
3251
+ type: "inline";
3252
+ files: Record<string, string | {
3253
+ encoding: "base64";
3254
+ data: string;
3255
+ contentType?: string | null | undefined;
3256
+ }>;
3257
+ rootPath?: string | null | undefined;
3258
+ } | {
3259
+ url: string;
3260
+ type: "github";
3261
+ };
3262
+ agents?: string[] | "all" | undefined;
3263
+ include?: {
3264
+ company?: boolean | undefined;
3265
+ projects?: boolean | undefined;
3266
+ agents?: boolean | undefined;
3267
+ issues?: boolean | undefined;
3268
+ skills?: boolean | undefined;
3269
+ } | undefined;
3270
+ selectedFiles?: string[] | undefined;
3271
+ collisionStrategy?: "rename" | "skip" | "replace" | undefined;
3272
+ nameOverrides?: Record<string, string> | undefined;
3273
+ }>;
3274
+ export type CompanyPortabilityPreview = z.infer<typeof companyPortabilityPreviewSchema>;
3275
+ export declare const portabilityAdapterOverrideSchema: z.ZodObject<{
3276
+ adapterType: z.ZodString;
3277
+ adapterConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3278
+ }, "strip", z.ZodTypeAny, {
3279
+ adapterType: string;
3280
+ adapterConfig?: Record<string, unknown> | undefined;
3281
+ }, {
3282
+ adapterType: string;
3283
+ adapterConfig?: Record<string, unknown> | undefined;
3284
+ }>;
3285
+ export declare const companyPortabilityImportSchema: z.ZodObject<{
3286
+ source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3287
+ type: z.ZodLiteral<"inline">;
3288
+ rootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3289
+ files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
3290
+ encoding: z.ZodLiteral<"base64">;
3291
+ data: z.ZodString;
3292
+ contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3293
+ }, "strip", z.ZodTypeAny, {
3294
+ encoding: "base64";
3295
+ data: string;
3296
+ contentType?: string | null | undefined;
3297
+ }, {
3298
+ encoding: "base64";
3299
+ data: string;
3300
+ contentType?: string | null | undefined;
3301
+ }>]>>;
3302
+ }, "strip", z.ZodTypeAny, {
3303
+ type: "inline";
3304
+ files: Record<string, string | {
3305
+ encoding: "base64";
3306
+ data: string;
3307
+ contentType?: string | null | undefined;
3308
+ }>;
3309
+ rootPath?: string | null | undefined;
3310
+ }, {
3311
+ type: "inline";
3312
+ files: Record<string, string | {
3313
+ encoding: "base64";
3314
+ data: string;
3315
+ contentType?: string | null | undefined;
3316
+ }>;
3317
+ rootPath?: string | null | undefined;
3318
+ }>, z.ZodObject<{
3319
+ type: z.ZodLiteral<"github">;
3320
+ url: z.ZodString;
3321
+ }, "strip", z.ZodTypeAny, {
3322
+ url: string;
3323
+ type: "github";
3324
+ }, {
3325
+ url: string;
3326
+ type: "github";
3327
+ }>]>;
3328
+ include: z.ZodOptional<z.ZodObject<{
3329
+ company: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3330
+ agents: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3331
+ projects: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3332
+ issues: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3333
+ skills: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3334
+ }, "strip", z.ZodTypeAny, {
3335
+ company?: boolean | undefined;
3336
+ projects?: boolean | undefined;
3337
+ agents?: boolean | undefined;
3338
+ issues?: boolean | undefined;
3339
+ skills?: boolean | undefined;
3340
+ }, {
3341
+ company?: boolean | undefined;
3342
+ projects?: boolean | undefined;
3343
+ agents?: boolean | undefined;
3344
+ issues?: boolean | undefined;
3345
+ skills?: boolean | undefined;
3346
+ }>>;
3347
+ target: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3348
+ mode: z.ZodLiteral<"new_company">;
3349
+ newCompanyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3350
+ }, "strip", z.ZodTypeAny, {
3351
+ mode: "new_company";
3352
+ newCompanyName?: string | null | undefined;
3353
+ }, {
3354
+ mode: "new_company";
3355
+ newCompanyName?: string | null | undefined;
3356
+ }>, z.ZodObject<{
3357
+ mode: z.ZodLiteral<"existing_company">;
3358
+ companyId: z.ZodString;
3359
+ }, "strip", z.ZodTypeAny, {
3360
+ companyId: string;
3361
+ mode: "existing_company";
3362
+ }, {
3363
+ companyId: string;
3364
+ mode: "existing_company";
3365
+ }>]>;
3366
+ agents: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodString, "many">]>>;
3367
+ collisionStrategy: z.ZodOptional<z.ZodEnum<["rename", "skip", "replace"]>>;
3368
+ nameOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3369
+ selectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3370
+ } & {
3371
+ adapterOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3372
+ adapterType: z.ZodString;
3373
+ adapterConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3374
+ }, "strip", z.ZodTypeAny, {
3375
+ adapterType: string;
3376
+ adapterConfig?: Record<string, unknown> | undefined;
3377
+ }, {
3378
+ adapterType: string;
3379
+ adapterConfig?: Record<string, unknown> | undefined;
3380
+ }>>>;
3381
+ }, "strip", z.ZodTypeAny, {
3382
+ target: {
3383
+ mode: "new_company";
3384
+ newCompanyName?: string | null | undefined;
3385
+ } | {
3386
+ companyId: string;
3387
+ mode: "existing_company";
3388
+ };
3389
+ source: {
3390
+ type: "inline";
3391
+ files: Record<string, string | {
3392
+ encoding: "base64";
3393
+ data: string;
3394
+ contentType?: string | null | undefined;
3395
+ }>;
3396
+ rootPath?: string | null | undefined;
3397
+ } | {
3398
+ url: string;
3399
+ type: "github";
3400
+ };
3401
+ agents?: string[] | "all" | undefined;
3402
+ include?: {
3403
+ company?: boolean | undefined;
3404
+ projects?: boolean | undefined;
3405
+ agents?: boolean | undefined;
3406
+ issues?: boolean | undefined;
3407
+ skills?: boolean | undefined;
3408
+ } | undefined;
3409
+ selectedFiles?: string[] | undefined;
3410
+ collisionStrategy?: "rename" | "skip" | "replace" | undefined;
3411
+ nameOverrides?: Record<string, string> | undefined;
3412
+ adapterOverrides?: Record<string, {
3413
+ adapterType: string;
3414
+ adapterConfig?: Record<string, unknown> | undefined;
3415
+ }> | undefined;
3416
+ }, {
3417
+ target: {
3418
+ mode: "new_company";
3419
+ newCompanyName?: string | null | undefined;
3420
+ } | {
3421
+ companyId: string;
3422
+ mode: "existing_company";
3423
+ };
3424
+ source: {
3425
+ type: "inline";
3426
+ files: Record<string, string | {
3427
+ encoding: "base64";
3428
+ data: string;
3429
+ contentType?: string | null | undefined;
3430
+ }>;
3431
+ rootPath?: string | null | undefined;
3432
+ } | {
3433
+ url: string;
3434
+ type: "github";
3435
+ };
3436
+ agents?: string[] | "all" | undefined;
3437
+ include?: {
3438
+ company?: boolean | undefined;
3439
+ projects?: boolean | undefined;
3440
+ agents?: boolean | undefined;
3441
+ issues?: boolean | undefined;
3442
+ skills?: boolean | undefined;
3443
+ } | undefined;
3444
+ selectedFiles?: string[] | undefined;
3445
+ collisionStrategy?: "rename" | "skip" | "replace" | undefined;
3446
+ nameOverrides?: Record<string, string> | undefined;
3447
+ adapterOverrides?: Record<string, {
3448
+ adapterType: string;
3449
+ adapterConfig?: Record<string, unknown> | undefined;
3450
+ }> | undefined;
3451
+ }>;
3452
+ export type CompanyPortabilityImport = z.infer<typeof companyPortabilityImportSchema>;
3453
+ //# sourceMappingURL=company-portability.d.ts.map