@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,920 @@
1
+ import { z } from "zod";
2
+ export declare const routineVariableSchema: z.ZodEffects<z.ZodObject<{
3
+ name: z.ZodString;
4
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select"]>>>;
6
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
7
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ required: boolean;
11
+ options: string[];
12
+ type: "number" | "boolean" | "text" | "textarea" | "select";
13
+ name: string;
14
+ label?: string | null | undefined;
15
+ defaultValue?: string | number | boolean | null | undefined;
16
+ }, {
17
+ name: string;
18
+ required?: boolean | undefined;
19
+ label?: string | null | undefined;
20
+ options?: string[] | undefined;
21
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
22
+ defaultValue?: string | number | boolean | null | undefined;
23
+ }>, {
24
+ required: boolean;
25
+ options: string[];
26
+ type: "number" | "boolean" | "text" | "textarea" | "select";
27
+ name: string;
28
+ label?: string | null | undefined;
29
+ defaultValue?: string | number | boolean | null | undefined;
30
+ }, {
31
+ name: string;
32
+ required?: boolean | undefined;
33
+ label?: string | null | undefined;
34
+ options?: string[] | undefined;
35
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
36
+ defaultValue?: string | number | boolean | null | undefined;
37
+ }>;
38
+ export declare const createRoutineSchema: z.ZodObject<{
39
+ projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ goalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41
+ parentIssueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
42
+ title: z.ZodString;
43
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
+ assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>>;
46
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["active", "paused", "archived"]>>>;
47
+ concurrencyPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>>>;
48
+ catchUpPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>>>;
49
+ variables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
50
+ name: z.ZodString;
51
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
52
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select"]>>>;
53
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
54
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
55
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ required: boolean;
58
+ options: string[];
59
+ type: "number" | "boolean" | "text" | "textarea" | "select";
60
+ name: string;
61
+ label?: string | null | undefined;
62
+ defaultValue?: string | number | boolean | null | undefined;
63
+ }, {
64
+ name: string;
65
+ required?: boolean | undefined;
66
+ label?: string | null | undefined;
67
+ options?: string[] | undefined;
68
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
69
+ defaultValue?: string | number | boolean | null | undefined;
70
+ }>, {
71
+ required: boolean;
72
+ options: string[];
73
+ type: "number" | "boolean" | "text" | "textarea" | "select";
74
+ name: string;
75
+ label?: string | null | undefined;
76
+ defaultValue?: string | number | boolean | null | undefined;
77
+ }, {
78
+ name: string;
79
+ required?: boolean | undefined;
80
+ label?: string | null | undefined;
81
+ options?: string[] | undefined;
82
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
83
+ defaultValue?: string | number | boolean | null | undefined;
84
+ }>, "many">>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ title: string;
87
+ status: "active" | "paused" | "archived";
88
+ priority: "critical" | "high" | "medium" | "low";
89
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
90
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
91
+ variables: {
92
+ required: boolean;
93
+ options: string[];
94
+ type: "number" | "boolean" | "text" | "textarea" | "select";
95
+ name: string;
96
+ label?: string | null | undefined;
97
+ defaultValue?: string | number | boolean | null | undefined;
98
+ }[];
99
+ description?: string | null | undefined;
100
+ projectId?: string | null | undefined;
101
+ goalId?: string | null | undefined;
102
+ assigneeAgentId?: string | null | undefined;
103
+ parentIssueId?: string | null | undefined;
104
+ }, {
105
+ title: string;
106
+ description?: string | null | undefined;
107
+ status?: "active" | "paused" | "archived" | undefined;
108
+ projectId?: string | null | undefined;
109
+ goalId?: string | null | undefined;
110
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
111
+ assigneeAgentId?: string | null | undefined;
112
+ parentIssueId?: string | null | undefined;
113
+ concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
114
+ catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
115
+ variables?: {
116
+ name: string;
117
+ required?: boolean | undefined;
118
+ label?: string | null | undefined;
119
+ options?: string[] | undefined;
120
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
121
+ defaultValue?: string | number | boolean | null | undefined;
122
+ }[] | undefined;
123
+ }>;
124
+ export type CreateRoutine = z.infer<typeof createRoutineSchema>;
125
+ export declare const updateRoutineSchema: z.ZodObject<{
126
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
127
+ goalId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
128
+ parentIssueId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
129
+ title: z.ZodOptional<z.ZodString>;
130
+ description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
131
+ assigneeAgentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
132
+ priority: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>>>;
133
+ status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["active", "paused", "archived"]>>>>;
134
+ concurrencyPolicy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>>>>;
135
+ catchUpPolicy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>>>>;
136
+ variables: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
137
+ name: z.ZodString;
138
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
139
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select"]>>>;
140
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
141
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
142
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ required: boolean;
145
+ options: string[];
146
+ type: "number" | "boolean" | "text" | "textarea" | "select";
147
+ name: string;
148
+ label?: string | null | undefined;
149
+ defaultValue?: string | number | boolean | null | undefined;
150
+ }, {
151
+ name: string;
152
+ required?: boolean | undefined;
153
+ label?: string | null | undefined;
154
+ options?: string[] | undefined;
155
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
156
+ defaultValue?: string | number | boolean | null | undefined;
157
+ }>, {
158
+ required: boolean;
159
+ options: string[];
160
+ type: "number" | "boolean" | "text" | "textarea" | "select";
161
+ name: string;
162
+ label?: string | null | undefined;
163
+ defaultValue?: string | number | boolean | null | undefined;
164
+ }, {
165
+ name: string;
166
+ required?: boolean | undefined;
167
+ label?: string | null | undefined;
168
+ options?: string[] | undefined;
169
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
170
+ defaultValue?: string | number | boolean | null | undefined;
171
+ }>, "many">>>>;
172
+ } & {
173
+ baseRevisionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ title?: string | undefined;
176
+ description?: string | null | undefined;
177
+ status?: "active" | "paused" | "archived" | undefined;
178
+ projectId?: string | null | undefined;
179
+ goalId?: string | null | undefined;
180
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
181
+ assigneeAgentId?: string | null | undefined;
182
+ parentIssueId?: string | null | undefined;
183
+ baseRevisionId?: string | null | undefined;
184
+ concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
185
+ catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
186
+ variables?: {
187
+ required: boolean;
188
+ options: string[];
189
+ type: "number" | "boolean" | "text" | "textarea" | "select";
190
+ name: string;
191
+ label?: string | null | undefined;
192
+ defaultValue?: string | number | boolean | null | undefined;
193
+ }[] | undefined;
194
+ }, {
195
+ title?: string | undefined;
196
+ description?: string | null | undefined;
197
+ status?: "active" | "paused" | "archived" | undefined;
198
+ projectId?: string | null | undefined;
199
+ goalId?: string | null | undefined;
200
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
201
+ assigneeAgentId?: string | null | undefined;
202
+ parentIssueId?: string | null | undefined;
203
+ baseRevisionId?: string | null | undefined;
204
+ concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
205
+ catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
206
+ variables?: {
207
+ name: string;
208
+ required?: boolean | undefined;
209
+ label?: string | null | undefined;
210
+ options?: string[] | undefined;
211
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
212
+ defaultValue?: string | number | boolean | null | undefined;
213
+ }[] | undefined;
214
+ }>;
215
+ export type UpdateRoutine = z.infer<typeof updateRoutineSchema>;
216
+ export declare const routineRevisionSnapshotRoutineV1Schema: z.ZodObject<{
217
+ id: z.ZodString;
218
+ companyId: z.ZodString;
219
+ projectId: z.ZodNullable<z.ZodString>;
220
+ goalId: z.ZodNullable<z.ZodString>;
221
+ parentIssueId: z.ZodNullable<z.ZodString>;
222
+ title: z.ZodString;
223
+ description: z.ZodNullable<z.ZodString>;
224
+ assigneeAgentId: z.ZodNullable<z.ZodString>;
225
+ priority: z.ZodEnum<["critical", "high", "medium", "low"]>;
226
+ status: z.ZodEnum<["active", "paused", "archived"]>;
227
+ concurrencyPolicy: z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>;
228
+ catchUpPolicy: z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>;
229
+ variables: z.ZodArray<z.ZodEffects<z.ZodObject<{
230
+ name: z.ZodString;
231
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
232
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select"]>>>;
233
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
234
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
235
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ required: boolean;
238
+ options: string[];
239
+ type: "number" | "boolean" | "text" | "textarea" | "select";
240
+ name: string;
241
+ label?: string | null | undefined;
242
+ defaultValue?: string | number | boolean | null | undefined;
243
+ }, {
244
+ name: string;
245
+ required?: boolean | undefined;
246
+ label?: string | null | undefined;
247
+ options?: string[] | undefined;
248
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
249
+ defaultValue?: string | number | boolean | null | undefined;
250
+ }>, {
251
+ required: boolean;
252
+ options: string[];
253
+ type: "number" | "boolean" | "text" | "textarea" | "select";
254
+ name: string;
255
+ label?: string | null | undefined;
256
+ defaultValue?: string | number | boolean | null | undefined;
257
+ }, {
258
+ name: string;
259
+ required?: boolean | undefined;
260
+ label?: string | null | undefined;
261
+ options?: string[] | undefined;
262
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
263
+ defaultValue?: string | number | boolean | null | undefined;
264
+ }>, "many">;
265
+ }, "strict", z.ZodTypeAny, {
266
+ title: string;
267
+ description: string | null;
268
+ id: string;
269
+ companyId: string;
270
+ status: "active" | "paused" | "archived";
271
+ projectId: string | null;
272
+ goalId: string | null;
273
+ priority: "critical" | "high" | "medium" | "low";
274
+ assigneeAgentId: string | null;
275
+ parentIssueId: string | null;
276
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
277
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
278
+ variables: {
279
+ required: boolean;
280
+ options: string[];
281
+ type: "number" | "boolean" | "text" | "textarea" | "select";
282
+ name: string;
283
+ label?: string | null | undefined;
284
+ defaultValue?: string | number | boolean | null | undefined;
285
+ }[];
286
+ }, {
287
+ title: string;
288
+ description: string | null;
289
+ id: string;
290
+ companyId: string;
291
+ status: "active" | "paused" | "archived";
292
+ projectId: string | null;
293
+ goalId: string | null;
294
+ priority: "critical" | "high" | "medium" | "low";
295
+ assigneeAgentId: string | null;
296
+ parentIssueId: string | null;
297
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
298
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
299
+ variables: {
300
+ name: string;
301
+ required?: boolean | undefined;
302
+ label?: string | null | undefined;
303
+ options?: string[] | undefined;
304
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
305
+ defaultValue?: string | number | boolean | null | undefined;
306
+ }[];
307
+ }>;
308
+ export declare const routineRevisionSnapshotTriggerV1Schema: z.ZodObject<{
309
+ id: z.ZodString;
310
+ kind: z.ZodEnum<["schedule", "webhook", "api"]>;
311
+ label: z.ZodNullable<z.ZodString>;
312
+ enabled: z.ZodBoolean;
313
+ cronExpression: z.ZodNullable<z.ZodString>;
314
+ timezone: z.ZodNullable<z.ZodString>;
315
+ publicId: z.ZodNullable<z.ZodString>;
316
+ signingMode: z.ZodNullable<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>;
317
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
318
+ }, "strict", z.ZodTypeAny, {
319
+ kind: "schedule" | "webhook" | "api";
320
+ id: string;
321
+ label: string | null;
322
+ enabled: boolean;
323
+ cronExpression: string | null;
324
+ timezone: string | null;
325
+ publicId: string | null;
326
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
327
+ replayWindowSec: number | null;
328
+ }, {
329
+ kind: "schedule" | "webhook" | "api";
330
+ id: string;
331
+ label: string | null;
332
+ enabled: boolean;
333
+ cronExpression: string | null;
334
+ timezone: string | null;
335
+ publicId: string | null;
336
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
337
+ replayWindowSec: number | null;
338
+ }>;
339
+ export declare const routineRevisionSnapshotV1Schema: z.ZodObject<{
340
+ version: z.ZodLiteral<1>;
341
+ routine: z.ZodObject<{
342
+ id: z.ZodString;
343
+ companyId: z.ZodString;
344
+ projectId: z.ZodNullable<z.ZodString>;
345
+ goalId: z.ZodNullable<z.ZodString>;
346
+ parentIssueId: z.ZodNullable<z.ZodString>;
347
+ title: z.ZodString;
348
+ description: z.ZodNullable<z.ZodString>;
349
+ assigneeAgentId: z.ZodNullable<z.ZodString>;
350
+ priority: z.ZodEnum<["critical", "high", "medium", "low"]>;
351
+ status: z.ZodEnum<["active", "paused", "archived"]>;
352
+ concurrencyPolicy: z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>;
353
+ catchUpPolicy: z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>;
354
+ variables: z.ZodArray<z.ZodEffects<z.ZodObject<{
355
+ name: z.ZodString;
356
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
357
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select"]>>>;
358
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
359
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
360
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ required: boolean;
363
+ options: string[];
364
+ type: "number" | "boolean" | "text" | "textarea" | "select";
365
+ name: string;
366
+ label?: string | null | undefined;
367
+ defaultValue?: string | number | boolean | null | undefined;
368
+ }, {
369
+ name: string;
370
+ required?: boolean | undefined;
371
+ label?: string | null | undefined;
372
+ options?: string[] | undefined;
373
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
374
+ defaultValue?: string | number | boolean | null | undefined;
375
+ }>, {
376
+ required: boolean;
377
+ options: string[];
378
+ type: "number" | "boolean" | "text" | "textarea" | "select";
379
+ name: string;
380
+ label?: string | null | undefined;
381
+ defaultValue?: string | number | boolean | null | undefined;
382
+ }, {
383
+ name: string;
384
+ required?: boolean | undefined;
385
+ label?: string | null | undefined;
386
+ options?: string[] | undefined;
387
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
388
+ defaultValue?: string | number | boolean | null | undefined;
389
+ }>, "many">;
390
+ }, "strict", z.ZodTypeAny, {
391
+ title: string;
392
+ description: string | null;
393
+ id: string;
394
+ companyId: string;
395
+ status: "active" | "paused" | "archived";
396
+ projectId: string | null;
397
+ goalId: string | null;
398
+ priority: "critical" | "high" | "medium" | "low";
399
+ assigneeAgentId: string | null;
400
+ parentIssueId: string | null;
401
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
402
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
403
+ variables: {
404
+ required: boolean;
405
+ options: string[];
406
+ type: "number" | "boolean" | "text" | "textarea" | "select";
407
+ name: string;
408
+ label?: string | null | undefined;
409
+ defaultValue?: string | number | boolean | null | undefined;
410
+ }[];
411
+ }, {
412
+ title: string;
413
+ description: string | null;
414
+ id: string;
415
+ companyId: string;
416
+ status: "active" | "paused" | "archived";
417
+ projectId: string | null;
418
+ goalId: string | null;
419
+ priority: "critical" | "high" | "medium" | "low";
420
+ assigneeAgentId: string | null;
421
+ parentIssueId: string | null;
422
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
423
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
424
+ variables: {
425
+ name: string;
426
+ required?: boolean | undefined;
427
+ label?: string | null | undefined;
428
+ options?: string[] | undefined;
429
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
430
+ defaultValue?: string | number | boolean | null | undefined;
431
+ }[];
432
+ }>;
433
+ triggers: z.ZodArray<z.ZodObject<{
434
+ id: z.ZodString;
435
+ kind: z.ZodEnum<["schedule", "webhook", "api"]>;
436
+ label: z.ZodNullable<z.ZodString>;
437
+ enabled: z.ZodBoolean;
438
+ cronExpression: z.ZodNullable<z.ZodString>;
439
+ timezone: z.ZodNullable<z.ZodString>;
440
+ publicId: z.ZodNullable<z.ZodString>;
441
+ signingMode: z.ZodNullable<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>;
442
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
443
+ }, "strict", z.ZodTypeAny, {
444
+ kind: "schedule" | "webhook" | "api";
445
+ id: string;
446
+ label: string | null;
447
+ enabled: boolean;
448
+ cronExpression: string | null;
449
+ timezone: string | null;
450
+ publicId: string | null;
451
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
452
+ replayWindowSec: number | null;
453
+ }, {
454
+ kind: "schedule" | "webhook" | "api";
455
+ id: string;
456
+ label: string | null;
457
+ enabled: boolean;
458
+ cronExpression: string | null;
459
+ timezone: string | null;
460
+ publicId: string | null;
461
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
462
+ replayWindowSec: number | null;
463
+ }>, "many">;
464
+ }, "strict", z.ZodTypeAny, {
465
+ routine: {
466
+ title: string;
467
+ description: string | null;
468
+ id: string;
469
+ companyId: string;
470
+ status: "active" | "paused" | "archived";
471
+ projectId: string | null;
472
+ goalId: string | null;
473
+ priority: "critical" | "high" | "medium" | "low";
474
+ assigneeAgentId: string | null;
475
+ parentIssueId: string | null;
476
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
477
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
478
+ variables: {
479
+ required: boolean;
480
+ options: string[];
481
+ type: "number" | "boolean" | "text" | "textarea" | "select";
482
+ name: string;
483
+ label?: string | null | undefined;
484
+ defaultValue?: string | number | boolean | null | undefined;
485
+ }[];
486
+ };
487
+ version: 1;
488
+ triggers: {
489
+ kind: "schedule" | "webhook" | "api";
490
+ id: string;
491
+ label: string | null;
492
+ enabled: boolean;
493
+ cronExpression: string | null;
494
+ timezone: string | null;
495
+ publicId: string | null;
496
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
497
+ replayWindowSec: number | null;
498
+ }[];
499
+ }, {
500
+ routine: {
501
+ title: string;
502
+ description: string | null;
503
+ id: string;
504
+ companyId: string;
505
+ status: "active" | "paused" | "archived";
506
+ projectId: string | null;
507
+ goalId: string | null;
508
+ priority: "critical" | "high" | "medium" | "low";
509
+ assigneeAgentId: string | null;
510
+ parentIssueId: string | null;
511
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
512
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
513
+ variables: {
514
+ name: string;
515
+ required?: boolean | undefined;
516
+ label?: string | null | undefined;
517
+ options?: string[] | undefined;
518
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
519
+ defaultValue?: string | number | boolean | null | undefined;
520
+ }[];
521
+ };
522
+ version: 1;
523
+ triggers: {
524
+ kind: "schedule" | "webhook" | "api";
525
+ id: string;
526
+ label: string | null;
527
+ enabled: boolean;
528
+ cronExpression: string | null;
529
+ timezone: string | null;
530
+ publicId: string | null;
531
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
532
+ replayWindowSec: number | null;
533
+ }[];
534
+ }>;
535
+ export declare const routineRevisionSnapshotSchema: z.ZodObject<{
536
+ version: z.ZodLiteral<1>;
537
+ routine: z.ZodObject<{
538
+ id: z.ZodString;
539
+ companyId: z.ZodString;
540
+ projectId: z.ZodNullable<z.ZodString>;
541
+ goalId: z.ZodNullable<z.ZodString>;
542
+ parentIssueId: z.ZodNullable<z.ZodString>;
543
+ title: z.ZodString;
544
+ description: z.ZodNullable<z.ZodString>;
545
+ assigneeAgentId: z.ZodNullable<z.ZodString>;
546
+ priority: z.ZodEnum<["critical", "high", "medium", "low"]>;
547
+ status: z.ZodEnum<["active", "paused", "archived"]>;
548
+ concurrencyPolicy: z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>;
549
+ catchUpPolicy: z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>;
550
+ variables: z.ZodArray<z.ZodEffects<z.ZodObject<{
551
+ name: z.ZodString;
552
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
553
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select"]>>>;
554
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
555
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
556
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
557
+ }, "strip", z.ZodTypeAny, {
558
+ required: boolean;
559
+ options: string[];
560
+ type: "number" | "boolean" | "text" | "textarea" | "select";
561
+ name: string;
562
+ label?: string | null | undefined;
563
+ defaultValue?: string | number | boolean | null | undefined;
564
+ }, {
565
+ name: string;
566
+ required?: boolean | undefined;
567
+ label?: string | null | undefined;
568
+ options?: string[] | undefined;
569
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
570
+ defaultValue?: string | number | boolean | null | undefined;
571
+ }>, {
572
+ required: boolean;
573
+ options: string[];
574
+ type: "number" | "boolean" | "text" | "textarea" | "select";
575
+ name: string;
576
+ label?: string | null | undefined;
577
+ defaultValue?: string | number | boolean | null | undefined;
578
+ }, {
579
+ name: string;
580
+ required?: boolean | undefined;
581
+ label?: string | null | undefined;
582
+ options?: string[] | undefined;
583
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
584
+ defaultValue?: string | number | boolean | null | undefined;
585
+ }>, "many">;
586
+ }, "strict", z.ZodTypeAny, {
587
+ title: string;
588
+ description: string | null;
589
+ id: string;
590
+ companyId: string;
591
+ status: "active" | "paused" | "archived";
592
+ projectId: string | null;
593
+ goalId: string | null;
594
+ priority: "critical" | "high" | "medium" | "low";
595
+ assigneeAgentId: string | null;
596
+ parentIssueId: string | null;
597
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
598
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
599
+ variables: {
600
+ required: boolean;
601
+ options: string[];
602
+ type: "number" | "boolean" | "text" | "textarea" | "select";
603
+ name: string;
604
+ label?: string | null | undefined;
605
+ defaultValue?: string | number | boolean | null | undefined;
606
+ }[];
607
+ }, {
608
+ title: string;
609
+ description: string | null;
610
+ id: string;
611
+ companyId: string;
612
+ status: "active" | "paused" | "archived";
613
+ projectId: string | null;
614
+ goalId: string | null;
615
+ priority: "critical" | "high" | "medium" | "low";
616
+ assigneeAgentId: string | null;
617
+ parentIssueId: string | null;
618
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
619
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
620
+ variables: {
621
+ name: string;
622
+ required?: boolean | undefined;
623
+ label?: string | null | undefined;
624
+ options?: string[] | undefined;
625
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
626
+ defaultValue?: string | number | boolean | null | undefined;
627
+ }[];
628
+ }>;
629
+ triggers: z.ZodArray<z.ZodObject<{
630
+ id: z.ZodString;
631
+ kind: z.ZodEnum<["schedule", "webhook", "api"]>;
632
+ label: z.ZodNullable<z.ZodString>;
633
+ enabled: z.ZodBoolean;
634
+ cronExpression: z.ZodNullable<z.ZodString>;
635
+ timezone: z.ZodNullable<z.ZodString>;
636
+ publicId: z.ZodNullable<z.ZodString>;
637
+ signingMode: z.ZodNullable<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>;
638
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
639
+ }, "strict", z.ZodTypeAny, {
640
+ kind: "schedule" | "webhook" | "api";
641
+ id: string;
642
+ label: string | null;
643
+ enabled: boolean;
644
+ cronExpression: string | null;
645
+ timezone: string | null;
646
+ publicId: string | null;
647
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
648
+ replayWindowSec: number | null;
649
+ }, {
650
+ kind: "schedule" | "webhook" | "api";
651
+ id: string;
652
+ label: string | null;
653
+ enabled: boolean;
654
+ cronExpression: string | null;
655
+ timezone: string | null;
656
+ publicId: string | null;
657
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
658
+ replayWindowSec: number | null;
659
+ }>, "many">;
660
+ }, "strict", z.ZodTypeAny, {
661
+ routine: {
662
+ title: string;
663
+ description: string | null;
664
+ id: string;
665
+ companyId: string;
666
+ status: "active" | "paused" | "archived";
667
+ projectId: string | null;
668
+ goalId: string | null;
669
+ priority: "critical" | "high" | "medium" | "low";
670
+ assigneeAgentId: string | null;
671
+ parentIssueId: string | null;
672
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
673
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
674
+ variables: {
675
+ required: boolean;
676
+ options: string[];
677
+ type: "number" | "boolean" | "text" | "textarea" | "select";
678
+ name: string;
679
+ label?: string | null | undefined;
680
+ defaultValue?: string | number | boolean | null | undefined;
681
+ }[];
682
+ };
683
+ version: 1;
684
+ triggers: {
685
+ kind: "schedule" | "webhook" | "api";
686
+ id: string;
687
+ label: string | null;
688
+ enabled: boolean;
689
+ cronExpression: string | null;
690
+ timezone: string | null;
691
+ publicId: string | null;
692
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
693
+ replayWindowSec: number | null;
694
+ }[];
695
+ }, {
696
+ routine: {
697
+ title: string;
698
+ description: string | null;
699
+ id: string;
700
+ companyId: string;
701
+ status: "active" | "paused" | "archived";
702
+ projectId: string | null;
703
+ goalId: string | null;
704
+ priority: "critical" | "high" | "medium" | "low";
705
+ assigneeAgentId: string | null;
706
+ parentIssueId: string | null;
707
+ concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
708
+ catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
709
+ variables: {
710
+ name: string;
711
+ required?: boolean | undefined;
712
+ label?: string | null | undefined;
713
+ options?: string[] | undefined;
714
+ type?: "number" | "boolean" | "text" | "textarea" | "select" | undefined;
715
+ defaultValue?: string | number | boolean | null | undefined;
716
+ }[];
717
+ };
718
+ version: 1;
719
+ triggers: {
720
+ kind: "schedule" | "webhook" | "api";
721
+ id: string;
722
+ label: string | null;
723
+ enabled: boolean;
724
+ cronExpression: string | null;
725
+ timezone: string | null;
726
+ publicId: string | null;
727
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
728
+ replayWindowSec: number | null;
729
+ }[];
730
+ }>;
731
+ export type RoutineRevisionSnapshotV1 = z.infer<typeof routineRevisionSnapshotV1Schema>;
732
+ export type RoutineRevisionSnapshot = z.infer<typeof routineRevisionSnapshotSchema>;
733
+ export declare const createRoutineTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
734
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
735
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
736
+ } & {
737
+ kind: z.ZodLiteral<"schedule">;
738
+ cronExpression: z.ZodString;
739
+ timezone: z.ZodDefault<z.ZodString>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ kind: "schedule";
742
+ enabled: boolean;
743
+ cronExpression: string;
744
+ timezone: string;
745
+ label?: string | null | undefined;
746
+ }, {
747
+ kind: "schedule";
748
+ cronExpression: string;
749
+ label?: string | null | undefined;
750
+ enabled?: boolean | undefined;
751
+ timezone?: string | undefined;
752
+ }>, z.ZodObject<{
753
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
754
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
755
+ } & {
756
+ kind: z.ZodLiteral<"webhook">;
757
+ signingMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>>;
758
+ replayWindowSec: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ kind: "webhook";
761
+ enabled: boolean;
762
+ signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac";
763
+ replayWindowSec: number;
764
+ label?: string | null | undefined;
765
+ }, {
766
+ kind: "webhook";
767
+ label?: string | null | undefined;
768
+ enabled?: boolean | undefined;
769
+ signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | undefined;
770
+ replayWindowSec?: number | undefined;
771
+ }>, z.ZodObject<{
772
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
773
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
774
+ } & {
775
+ kind: z.ZodLiteral<"api">;
776
+ }, "strip", z.ZodTypeAny, {
777
+ kind: "api";
778
+ enabled: boolean;
779
+ label?: string | null | undefined;
780
+ }, {
781
+ kind: "api";
782
+ label?: string | null | undefined;
783
+ enabled?: boolean | undefined;
784
+ }>]>;
785
+ export type CreateRoutineTrigger = z.infer<typeof createRoutineTriggerSchema>;
786
+ export declare const updateRoutineTriggerSchema: z.ZodObject<{
787
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
788
+ enabled: z.ZodOptional<z.ZodBoolean>;
789
+ cronExpression: z.ZodNullable<z.ZodOptional<z.ZodString>>;
790
+ timezone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
791
+ signingMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>>;
792
+ replayWindowSec: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
793
+ }, "strip", z.ZodTypeAny, {
794
+ label?: string | null | undefined;
795
+ enabled?: boolean | undefined;
796
+ cronExpression?: string | null | undefined;
797
+ timezone?: string | null | undefined;
798
+ signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
799
+ replayWindowSec?: number | null | undefined;
800
+ }, {
801
+ label?: string | null | undefined;
802
+ enabled?: boolean | undefined;
803
+ cronExpression?: string | null | undefined;
804
+ timezone?: string | null | undefined;
805
+ signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
806
+ replayWindowSec?: number | null | undefined;
807
+ }>;
808
+ export type UpdateRoutineTrigger = z.infer<typeof updateRoutineTriggerSchema>;
809
+ export declare const runRoutineSchema: z.ZodObject<{
810
+ triggerId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
811
+ payload: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
812
+ variables: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
813
+ projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
814
+ assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
815
+ idempotencyKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
816
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["manual", "api"]>>>;
817
+ executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
818
+ executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
819
+ executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
820
+ mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
821
+ environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
822
+ workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
823
+ type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
824
+ baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
825
+ branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
826
+ worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
827
+ provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
828
+ teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
829
+ }, "strict", z.ZodTypeAny, {
830
+ type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
831
+ provisionCommand?: string | null | undefined;
832
+ teardownCommand?: string | null | undefined;
833
+ baseRef?: string | null | undefined;
834
+ branchTemplate?: string | null | undefined;
835
+ worktreeParentDir?: string | null | undefined;
836
+ }, {
837
+ type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
838
+ provisionCommand?: string | null | undefined;
839
+ teardownCommand?: string | null | undefined;
840
+ baseRef?: string | null | undefined;
841
+ branchTemplate?: string | null | undefined;
842
+ worktreeParentDir?: string | null | undefined;
843
+ }>>>;
844
+ workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
845
+ }, "strict", z.ZodTypeAny, {
846
+ environmentId?: string | null | undefined;
847
+ workspaceRuntime?: Record<string, unknown> | null | undefined;
848
+ mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
849
+ workspaceStrategy?: {
850
+ type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
851
+ provisionCommand?: string | null | undefined;
852
+ teardownCommand?: string | null | undefined;
853
+ baseRef?: string | null | undefined;
854
+ branchTemplate?: string | null | undefined;
855
+ worktreeParentDir?: string | null | undefined;
856
+ } | null | undefined;
857
+ }, {
858
+ environmentId?: string | null | undefined;
859
+ workspaceRuntime?: Record<string, unknown> | null | undefined;
860
+ mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
861
+ workspaceStrategy?: {
862
+ type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
863
+ provisionCommand?: string | null | undefined;
864
+ teardownCommand?: string | null | undefined;
865
+ baseRef?: string | null | undefined;
866
+ branchTemplate?: string | null | undefined;
867
+ worktreeParentDir?: string | null | undefined;
868
+ } | null | undefined;
869
+ }>>>;
870
+ }, "strip", z.ZodTypeAny, {
871
+ source: "manual" | "api";
872
+ idempotencyKey?: string | null | undefined;
873
+ projectId?: string | null | undefined;
874
+ executionWorkspaceId?: string | null | undefined;
875
+ assigneeAgentId?: string | null | undefined;
876
+ executionWorkspacePreference?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | null | undefined;
877
+ executionWorkspaceSettings?: {
878
+ environmentId?: string | null | undefined;
879
+ workspaceRuntime?: Record<string, unknown> | null | undefined;
880
+ mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
881
+ workspaceStrategy?: {
882
+ type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
883
+ provisionCommand?: string | null | undefined;
884
+ teardownCommand?: string | null | undefined;
885
+ baseRef?: string | null | undefined;
886
+ branchTemplate?: string | null | undefined;
887
+ worktreeParentDir?: string | null | undefined;
888
+ } | null | undefined;
889
+ } | null | undefined;
890
+ payload?: Record<string, unknown> | null | undefined;
891
+ variables?: Record<string, string | number | boolean> | null | undefined;
892
+ triggerId?: string | null | undefined;
893
+ }, {
894
+ source?: "manual" | "api" | undefined;
895
+ idempotencyKey?: string | null | undefined;
896
+ projectId?: string | null | undefined;
897
+ executionWorkspaceId?: string | null | undefined;
898
+ assigneeAgentId?: string | null | undefined;
899
+ executionWorkspacePreference?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | null | undefined;
900
+ executionWorkspaceSettings?: {
901
+ environmentId?: string | null | undefined;
902
+ workspaceRuntime?: Record<string, unknown> | null | undefined;
903
+ mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
904
+ workspaceStrategy?: {
905
+ type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
906
+ provisionCommand?: string | null | undefined;
907
+ teardownCommand?: string | null | undefined;
908
+ baseRef?: string | null | undefined;
909
+ branchTemplate?: string | null | undefined;
910
+ worktreeParentDir?: string | null | undefined;
911
+ } | null | undefined;
912
+ } | null | undefined;
913
+ payload?: Record<string, unknown> | null | undefined;
914
+ variables?: Record<string, string | number | boolean> | null | undefined;
915
+ triggerId?: string | null | undefined;
916
+ }>;
917
+ export type RunRoutine = z.infer<typeof runRoutineSchema>;
918
+ export declare const rotateRoutineTriggerSecretSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
919
+ export type RotateRoutineTriggerSecret = z.infer<typeof rotateRoutineTriggerSecretSchema>;
920
+ //# sourceMappingURL=routine.d.ts.map