@paperclipai/shared 2026.824.0 → 2026.825.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/dist/adapter-auth-check-code.d.ts +13 -0
  2. package/dist/adapter-auth-check-code.d.ts.map +1 -0
  3. package/dist/adapter-auth-check-code.js +13 -0
  4. package/dist/adapter-auth-check-code.js.map +1 -0
  5. package/dist/adapter-auth-check-code.test.d.ts +2 -0
  6. package/dist/adapter-auth-check-code.test.d.ts.map +1 -0
  7. package/dist/adapter-auth-check-code.test.js +8 -0
  8. package/dist/adapter-auth-check-code.test.js.map +1 -0
  9. package/dist/company-import-transfer.d.ts +3 -37
  10. package/dist/company-import-transfer.d.ts.map +1 -1
  11. package/dist/config-schema.d.ts +130 -1570
  12. package/dist/config-schema.d.ts.map +1 -1
  13. package/dist/config-schema.js +3 -7
  14. package/dist/config-schema.js.map +1 -1
  15. package/dist/constants.d.ts +3 -2
  16. package/dist/constants.d.ts.map +1 -1
  17. package/dist/constants.js +3 -0
  18. package/dist/constants.js.map +1 -1
  19. package/dist/environment-support.d.ts +1 -1
  20. package/dist/environment-support.d.ts.map +1 -1
  21. package/dist/environment-support.js +3 -2
  22. package/dist/environment-support.js.map +1 -1
  23. package/dist/environment-support.test.js +19 -0
  24. package/dist/environment-support.test.js.map +1 -1
  25. package/dist/feature-catalog.d.ts +7 -17
  26. package/dist/feature-catalog.d.ts.map +1 -1
  27. package/dist/feature-catalog.js +9 -2
  28. package/dist/feature-catalog.js.map +1 -1
  29. package/dist/frontmatter.d.ts +3 -13
  30. package/dist/frontmatter.d.ts.map +1 -1
  31. package/dist/frontmatter.js +2 -2
  32. package/dist/frontmatter.js.map +1 -1
  33. package/dist/index.d.ts +7 -3
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +6 -2
  36. package/dist/index.js.map +1 -1
  37. package/dist/markdown-work-products.d.ts +26 -0
  38. package/dist/markdown-work-products.d.ts.map +1 -0
  39. package/dist/markdown-work-products.js +70 -0
  40. package/dist/markdown-work-products.js.map +1 -0
  41. package/dist/markdown-work-products.test.d.ts +2 -0
  42. package/dist/markdown-work-products.test.d.ts.map +1 -0
  43. package/dist/markdown-work-products.test.js +122 -0
  44. package/dist/markdown-work-products.test.js.map +1 -0
  45. package/dist/node-version.d.ts +6 -0
  46. package/dist/node-version.d.ts.map +1 -0
  47. package/dist/node-version.js +46 -0
  48. package/dist/node-version.js.map +1 -0
  49. package/dist/runtime-exposure/loopback-bind.d.ts +2 -2
  50. package/dist/runtime-exposure/loopback-bind.d.ts.map +1 -1
  51. package/dist/runtime-exposure/loopback-bind.js +3 -3
  52. package/dist/runtime-exposure/loopback-bind.js.map +1 -1
  53. package/dist/runtime-exposure/loopback-bind.test.js +11 -10
  54. package/dist/runtime-exposure/loopback-bind.test.js.map +1 -1
  55. package/dist/settings-visibility.d.ts +62 -0
  56. package/dist/settings-visibility.d.ts.map +1 -0
  57. package/dist/settings-visibility.js +102 -0
  58. package/dist/settings-visibility.js.map +1 -0
  59. package/dist/settings-visibility.test.d.ts +2 -0
  60. package/dist/settings-visibility.test.d.ts.map +1 -0
  61. package/dist/settings-visibility.test.js +51 -0
  62. package/dist/settings-visibility.test.js.map +1 -0
  63. package/dist/telemetry/generated/paperclip-telemetry.d.ts +4 -2
  64. package/dist/telemetry/generated/paperclip-telemetry.d.ts.map +1 -1
  65. package/dist/telemetry/generated/paperclip-telemetry.js +2 -0
  66. package/dist/telemetry/generated/paperclip-telemetry.js.map +1 -1
  67. package/dist/types/environment.d.ts +20 -0
  68. package/dist/types/environment.d.ts.map +1 -1
  69. package/dist/types/index.d.ts +5 -3
  70. package/dist/types/index.d.ts.map +1 -1
  71. package/dist/types/index.js +1 -0
  72. package/dist/types/index.js.map +1 -1
  73. package/dist/types/instance.d.ts +7 -0
  74. package/dist/types/instance.d.ts.map +1 -1
  75. package/dist/types/instance.js.map +1 -1
  76. package/dist/types/issue.d.ts +19 -0
  77. package/dist/types/issue.d.ts.map +1 -1
  78. package/dist/types/plugin.d.ts +34 -4
  79. package/dist/types/plugin.d.ts.map +1 -1
  80. package/dist/types/workspace-operation.d.ts +1 -1
  81. package/dist/types/workspace-operation.d.ts.map +1 -1
  82. package/dist/types/workspace-readiness.d.ts +62 -0
  83. package/dist/types/workspace-readiness.d.ts.map +1 -0
  84. package/dist/types/workspace-readiness.js +28 -0
  85. package/dist/types/workspace-readiness.js.map +1 -0
  86. package/dist/types/workspace-runtime.d.ts +6 -8
  87. package/dist/types/workspace-runtime.d.ts.map +1 -1
  88. package/dist/validators/access.d.ts +143 -277
  89. package/dist/validators/access.d.ts.map +1 -1
  90. package/dist/validators/access.js +5 -5
  91. package/dist/validators/adapter-auth-session.d.ts +50 -97
  92. package/dist/validators/adapter-auth-session.d.ts.map +1 -1
  93. package/dist/validators/adapter-auth-session.js +3 -3
  94. package/dist/validators/adapter-registry.d.ts +8 -40
  95. package/dist/validators/adapter-registry.d.ts.map +1 -1
  96. package/dist/validators/adapter-registry.js +1 -1
  97. package/dist/validators/adapter-registry.js.map +1 -1
  98. package/dist/validators/adapter-skills.d.ts +71 -170
  99. package/dist/validators/adapter-skills.d.ts.map +1 -1
  100. package/dist/validators/adapter-skills.js +3 -3
  101. package/dist/validators/agent.d.ts +412 -4798
  102. package/dist/validators/agent.d.ts.map +1 -1
  103. package/dist/validators/agent.js +13 -13
  104. package/dist/validators/agent.js.map +1 -1
  105. package/dist/validators/app-definition.d.ts +270 -2315
  106. package/dist/validators/app-definition.d.ts.map +1 -1
  107. package/dist/validators/approval.d.ts +15 -36
  108. package/dist/validators/approval.d.ts.map +1 -1
  109. package/dist/validators/approval.js +2 -2
  110. package/dist/validators/artifact.d.ts +162 -893
  111. package/dist/validators/artifact.d.ts.map +1 -1
  112. package/dist/validators/artifact.js +6 -6
  113. package/dist/validators/asset.d.ts +1 -5
  114. package/dist/validators/asset.d.ts.map +1 -1
  115. package/dist/validators/budget.d.ts +19 -43
  116. package/dist/validators/budget.d.ts.map +1 -1
  117. package/dist/validators/budget.js +1 -1
  118. package/dist/validators/claude-setup-token-session.d.ts +61 -181
  119. package/dist/validators/claude-setup-token-session.d.ts.map +1 -1
  120. package/dist/validators/claude-setup-token-session.js +4 -4
  121. package/dist/validators/company-portability.d.ts +318 -3616
  122. package/dist/validators/company-portability.d.ts.map +1 -1
  123. package/dist/validators/company-portability.js +2 -2
  124. package/dist/validators/company-skill.d.ts +722 -2934
  125. package/dist/validators/company-skill.d.ts.map +1 -1
  126. package/dist/validators/company-skill.js +63 -63
  127. package/dist/validators/company.d.ts +162 -289
  128. package/dist/validators/company.d.ts.map +1 -1
  129. package/dist/validators/company.js +4 -3
  130. package/dist/validators/company.js.map +1 -1
  131. package/dist/validators/cost.d.ts +29 -57
  132. package/dist/validators/cost.d.ts.map +1 -1
  133. package/dist/validators/cost.js +5 -5
  134. package/dist/validators/decision-queue.d.ts +60 -108
  135. package/dist/validators/decision-queue.d.ts.map +1 -1
  136. package/dist/validators/decision.d.ts +230 -1884
  137. package/dist/validators/decision.d.ts.map +1 -1
  138. package/dist/validators/decision.js +9 -9
  139. package/dist/validators/document-annotation.d.ts +37 -203
  140. package/dist/validators/document-annotation.d.ts.map +1 -1
  141. package/dist/validators/document-annotation.js +3 -3
  142. package/dist/validators/environment-custom-images.d.ts +79 -173
  143. package/dist/validators/environment-custom-images.d.ts.map +1 -1
  144. package/dist/validators/environment-custom-images.js +14 -11
  145. package/dist/validators/environment-custom-images.js.map +1 -1
  146. package/dist/validators/environment.d.ts +82 -259
  147. package/dist/validators/environment.d.ts.map +1 -1
  148. package/dist/validators/execution-workspace.d.ts +173 -513
  149. package/dist/validators/execution-workspace.d.ts.map +1 -1
  150. package/dist/validators/execution-workspace.js +13 -13
  151. package/dist/validators/execution-workspace.js.map +1 -1
  152. package/dist/validators/external-object.d.ts +55 -27
  153. package/dist/validators/external-object.d.ts.map +1 -1
  154. package/dist/validators/external-object.js +1 -1
  155. package/dist/validators/external-object.js.map +1 -1
  156. package/dist/validators/feedback.d.ts +28 -19
  157. package/dist/validators/feedback.d.ts.map +1 -1
  158. package/dist/validators/feedback.js +1 -1
  159. package/dist/validators/finance.d.ts +69 -74
  160. package/dist/validators/finance.d.ts.map +1 -1
  161. package/dist/validators/finance.js +6 -6
  162. package/dist/validators/folder.d.ts +44 -205
  163. package/dist/validators/folder.d.ts.map +1 -1
  164. package/dist/validators/folder.js +7 -7
  165. package/dist/validators/goal.d.ts +26 -34
  166. package/dist/validators/goal.d.ts.map +1 -1
  167. package/dist/validators/goal.js +4 -3
  168. package/dist/validators/goal.js.map +1 -1
  169. package/dist/validators/inbox-agent-policy.d.ts +12 -16
  170. package/dist/validators/inbox-agent-policy.d.ts.map +1 -1
  171. package/dist/validators/inbox-agent-policy.js +1 -1
  172. package/dist/validators/index.d.ts +2 -2
  173. package/dist/validators/index.d.ts.map +1 -1
  174. package/dist/validators/index.js +2 -2
  175. package/dist/validators/index.js.map +1 -1
  176. package/dist/validators/instance.d.ts +50 -563
  177. package/dist/validators/instance.d.ts.map +1 -1
  178. package/dist/validators/instance.js +16 -6
  179. package/dist/validators/instance.js.map +1 -1
  180. package/dist/validators/instance.test.js +13 -0
  181. package/dist/validators/instance.test.js.map +1 -1
  182. package/dist/validators/issue-tree-control.d.ts +41 -80
  183. package/dist/validators/issue-tree-control.d.ts.map +1 -1
  184. package/dist/validators/issue.d.ts +1772 -12251
  185. package/dist/validators/issue.d.ts.map +1 -1
  186. package/dist/validators/issue.js +150 -84
  187. package/dist/validators/issue.js.map +1 -1
  188. package/dist/validators/onboarding-seed.d.ts +3 -37
  189. package/dist/validators/onboarding-seed.d.ts.map +1 -1
  190. package/dist/validators/partial.d.ts +4 -0
  191. package/dist/validators/partial.d.ts.map +1 -0
  192. package/dist/validators/partial.js +35 -0
  193. package/dist/validators/partial.js.map +1 -0
  194. package/dist/validators/pipeline.d.ts +218 -3882
  195. package/dist/validators/pipeline.d.ts.map +1 -1
  196. package/dist/validators/pipeline.js +11 -11
  197. package/dist/validators/plugin.d.ts +725 -2597
  198. package/dist/validators/plugin.d.ts.map +1 -1
  199. package/dist/validators/plugin.js +38 -6
  200. package/dist/validators/plugin.js.map +1 -1
  201. package/dist/validators/plugin.test.js +54 -10
  202. package/dist/validators/plugin.test.js.map +1 -1
  203. package/dist/validators/project.d.ts +345 -2406
  204. package/dist/validators/project.d.ts.map +1 -1
  205. package/dist/validators/project.js +8 -7
  206. package/dist/validators/project.js.map +1 -1
  207. package/dist/validators/resource-memberships.d.ts +11 -27
  208. package/dist/validators/resource-memberships.d.ts.map +1 -1
  209. package/dist/validators/routine.d.ts +362 -1297
  210. package/dist/validators/routine.d.ts.map +1 -1
  211. package/dist/validators/routine.js +21 -20
  212. package/dist/validators/routine.js.map +1 -1
  213. package/dist/validators/runtime-exposure.d.ts +31 -80
  214. package/dist/validators/runtime-exposure.d.ts.map +1 -1
  215. package/dist/validators/search.d.ts +25 -93
  216. package/dist/validators/search.d.ts.map +1 -1
  217. package/dist/validators/secret.d.ts +174 -655
  218. package/dist/validators/secret.d.ts.map +1 -1
  219. package/dist/validators/secret.js +14 -14
  220. package/dist/validators/secret.js.map +1 -1
  221. package/dist/validators/sidebar-preferences.d.ts +5 -15
  222. package/dist/validators/sidebar-preferences.d.ts.map +1 -1
  223. package/dist/validators/sidebar-preferences.js +1 -1
  224. package/dist/validators/skill-policy.d.ts +184 -561
  225. package/dist/validators/skill-policy.d.ts.map +1 -1
  226. package/dist/validators/skill-policy.js +4 -4
  227. package/dist/validators/smoke-lab.d.ts +53 -37
  228. package/dist/validators/smoke-lab.d.ts.map +1 -1
  229. package/dist/validators/status-card.d.ts +139 -994
  230. package/dist/validators/status-card.d.ts.map +1 -1
  231. package/dist/validators/status-card.js +21 -21
  232. package/dist/validators/status-card.js.map +1 -1
  233. package/dist/validators/summary-slot.d.ts +28 -50
  234. package/dist/validators/summary-slot.d.ts.map +1 -1
  235. package/dist/validators/summary-slot.js +3 -3
  236. package/dist/validators/teams-catalog.d.ts +209 -472
  237. package/dist/validators/teams-catalog.d.ts.map +1 -1
  238. package/dist/validators/text.d.ts +1 -1
  239. package/dist/validators/text.d.ts.map +1 -1
  240. package/dist/validators/tool-access.d.ts +1088 -4670
  241. package/dist/validators/tool-access.d.ts.map +1 -1
  242. package/dist/validators/tool-access.js +96 -95
  243. package/dist/validators/tool-access.js.map +1 -1
  244. package/dist/validators/trust-policy.d.ts +62 -358
  245. package/dist/validators/trust-policy.d.ts.map +1 -1
  246. package/dist/validators/trust-policy.js +12 -12
  247. package/dist/validators/work-product.d.ts +110 -536
  248. package/dist/validators/work-product.d.ts.map +1 -1
  249. package/dist/validators/work-product.js +7 -6
  250. package/dist/validators/work-product.js.map +1 -1
  251. package/dist/validators/workspace-file-resource.d.ts +163 -618
  252. package/dist/validators/workspace-file-resource.d.ts.map +1 -1
  253. package/dist/validators/workspace-file-resource.js +11 -11
  254. package/dist/workspace-commands.d.ts +4 -2
  255. package/dist/workspace-commands.d.ts.map +1 -1
  256. package/dist/workspace-commands.js +9 -1
  257. package/dist/workspace-commands.js.map +1 -1
  258. package/dist/workspace-commands.test.js +45 -0
  259. package/dist/workspace-commands.test.js.map +1 -1
  260. package/dist/worktree-port-registry.d.ts +5 -0
  261. package/dist/worktree-port-registry.d.ts.map +1 -0
  262. package/dist/worktree-port-registry.js +382 -0
  263. package/dist/worktree-port-registry.js.map +1 -0
  264. package/dist/worktree-port-registry.test.d.ts +2 -0
  265. package/dist/worktree-port-registry.test.d.ts.map +1 -0
  266. package/dist/worktree-port-registry.test.js +118 -0
  267. package/dist/worktree-port-registry.test.js.map +1 -0
  268. package/dist/worktree-seed-source.d.ts +43 -0
  269. package/dist/worktree-seed-source.d.ts.map +1 -0
  270. package/dist/worktree-seed-source.js +180 -0
  271. package/dist/worktree-seed-source.js.map +1 -0
  272. package/dist/worktree-seed-source.test.d.ts +2 -0
  273. package/dist/worktree-seed-source.test.d.ts.map +1 -0
  274. package/dist/worktree-seed-source.test.js +166 -0
  275. package/dist/worktree-seed-source.test.js.map +1 -0
  276. package/package.json +6 -3
@@ -1,40 +1,19 @@
1
1
  import { z } from "zod";
2
- export declare const routineVariableSchema: z.ZodEffects<z.ZodObject<{
2
+ export declare const routineVariableSchema: z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select", "date"]>>>;
6
- defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
5
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
6
+ number: "number";
7
+ boolean: "boolean";
8
+ text: "text";
9
+ textarea: "textarea";
10
+ select: "select";
11
+ date: "date";
12
+ }>>>;
13
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
7
14
  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" | "date";
13
- name: string;
14
- label?: string | null | undefined;
15
- defaultValue?: string | number | boolean | null | undefined;
16
- }, {
17
- name: string;
18
- required?: boolean | undefined;
19
- options?: string[] | undefined;
20
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
21
- label?: string | null | undefined;
22
- defaultValue?: string | number | boolean | null | undefined;
23
- }>, {
24
- required: boolean;
25
- options: string[];
26
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
27
- name: string;
28
- label?: string | null | undefined;
29
- defaultValue?: string | number | boolean | null | undefined;
30
- }, {
31
- name: string;
32
- required?: boolean | undefined;
33
- options?: string[] | undefined;
34
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
35
- label?: string | null | undefined;
36
- defaultValue?: string | number | boolean | null | undefined;
37
- }>;
15
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
16
+ }, z.core.$strip>;
38
17
  export declare const createRoutineSchema: z.ZodObject<{
39
18
  projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
19
  folderId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -43,171 +22,69 @@ export declare const createRoutineSchema: z.ZodObject<{
43
22
  title: z.ZodString;
44
23
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
24
  assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
46
- priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>>;
47
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["active", "paused", "archived"]>>>;
48
- concurrencyPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>>>;
49
- catchUpPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>>>;
50
- activityGatePolicy: z.ZodOptional<z.ZodEnum<["always", "require_external_activity"]>>;
51
- activityGateScope: z.ZodOptional<z.ZodEnum<["company", "project"]>>;
52
- variables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
25
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
26
+ critical: "critical";
27
+ high: "high";
28
+ medium: "medium";
29
+ low: "low";
30
+ }>>>;
31
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
32
+ active: "active";
33
+ paused: "paused";
34
+ archived: "archived";
35
+ }>>>;
36
+ concurrencyPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
37
+ coalesce_if_active: "coalesce_if_active";
38
+ always_enqueue: "always_enqueue";
39
+ skip_if_active: "skip_if_active";
40
+ }>>>;
41
+ catchUpPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
42
+ skip_missed: "skip_missed";
43
+ enqueue_missed_with_cap: "enqueue_missed_with_cap";
44
+ }>>>;
45
+ activityGatePolicy: z.ZodOptional<z.ZodEnum<{
46
+ always: "always";
47
+ require_external_activity: "require_external_activity";
48
+ }>>;
49
+ activityGateScope: z.ZodOptional<z.ZodEnum<{
50
+ project: "project";
51
+ company: "company";
52
+ }>>;
53
+ variables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
53
54
  name: z.ZodString;
54
55
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select", "date"]>>>;
56
- defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
56
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
57
+ number: "number";
58
+ boolean: "boolean";
59
+ text: "text";
60
+ textarea: "textarea";
61
+ select: "select";
62
+ date: "date";
63
+ }>>>;
64
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
57
65
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
58
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
59
- }, "strip", z.ZodTypeAny, {
60
- required: boolean;
61
- options: string[];
62
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
63
- name: string;
64
- label?: string | null | undefined;
65
- defaultValue?: string | number | boolean | null | undefined;
66
- }, {
67
- name: string;
68
- required?: boolean | undefined;
69
- options?: string[] | undefined;
70
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
71
- label?: string | null | undefined;
72
- defaultValue?: string | number | boolean | null | undefined;
73
- }>, {
74
- required: boolean;
75
- options: string[];
76
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
77
- name: string;
78
- label?: string | null | undefined;
79
- defaultValue?: string | number | boolean | null | undefined;
80
- }, {
81
- name: string;
82
- required?: boolean | undefined;
83
- options?: string[] | undefined;
84
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
85
- label?: string | null | undefined;
86
- defaultValue?: string | number | boolean | null | undefined;
87
- }>, "many">>>;
88
- env: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
66
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
67
+ }, z.core.$strip>>>>;
68
+ env: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
89
69
  type: z.ZodLiteral<"plain">;
90
70
  value: z.ZodString;
91
- }, "strip", z.ZodTypeAny, {
92
- value: string;
93
- type: "plain";
94
- }, {
95
- value: string;
96
- type: "plain";
97
- }>, z.ZodObject<{
71
+ }, z.core.$strip>, z.ZodObject<{
98
72
  type: z.ZodLiteral<"secret_ref">;
99
73
  secretId: z.ZodString;
100
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
101
- projectionClass: z.ZodOptional<z.ZodEnum<["unclassified", "class_3_static_lease"]>>;
74
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
75
+ projectionClass: z.ZodOptional<z.ZodEnum<{
76
+ unclassified: "unclassified";
77
+ class_3_static_lease: "class_3_static_lease";
78
+ }>>;
102
79
  projectionAllowlistKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
103
- }, "strip", z.ZodTypeAny, {
104
- type: "secret_ref";
105
- secretId: string;
106
- version?: number | "latest" | undefined;
107
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
108
- projectionAllowlistKey?: string | null | undefined;
109
- }, {
110
- type: "secret_ref";
111
- secretId: string;
112
- version?: number | "latest" | undefined;
113
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
114
- projectionAllowlistKey?: string | null | undefined;
115
- }>, z.ZodObject<{
80
+ }, z.core.$strip>, z.ZodObject<{
116
81
  type: z.ZodLiteral<"user_secret_ref">;
117
82
  key: z.ZodString;
118
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
83
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
119
84
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
120
85
  allowMissingOverride: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
121
- }, "strip", z.ZodTypeAny, {
122
- key: string;
123
- required: boolean;
124
- type: "user_secret_ref";
125
- allowMissingOverride: boolean;
126
- version?: number | "latest" | undefined;
127
- }, {
128
- key: string;
129
- type: "user_secret_ref";
130
- required?: boolean | undefined;
131
- version?: number | "latest" | undefined;
132
- allowMissingOverride?: boolean | undefined;
133
- }>]>>>>;
134
- }, "strip", z.ZodTypeAny, {
135
- title: string;
136
- status: "active" | "paused" | "archived";
137
- variables: {
138
- required: boolean;
139
- options: string[];
140
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
141
- name: string;
142
- label?: string | null | undefined;
143
- defaultValue?: string | number | boolean | null | undefined;
144
- }[];
145
- priority: "critical" | "high" | "medium" | "low";
146
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
147
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
148
- env?: Record<string, string | {
149
- value: string;
150
- type: "plain";
151
- } | {
152
- type: "secret_ref";
153
- secretId: string;
154
- version?: number | "latest" | undefined;
155
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
156
- projectionAllowlistKey?: string | null | undefined;
157
- } | {
158
- key: string;
159
- required: boolean;
160
- type: "user_secret_ref";
161
- allowMissingOverride: boolean;
162
- version?: number | "latest" | undefined;
163
- }> | null | undefined;
164
- description?: string | null | undefined;
165
- projectId?: string | null | undefined;
166
- parentIssueId?: string | null | undefined;
167
- assigneeAgentId?: string | null | undefined;
168
- goalId?: string | null | undefined;
169
- folderId?: string | null | undefined;
170
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
171
- activityGateScope?: "project" | "company" | undefined;
172
- }, {
173
- title: string;
174
- env?: Record<string, string | {
175
- value: string;
176
- type: "plain";
177
- } | {
178
- type: "secret_ref";
179
- secretId: string;
180
- version?: number | "latest" | undefined;
181
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
182
- projectionAllowlistKey?: string | null | undefined;
183
- } | {
184
- key: string;
185
- type: "user_secret_ref";
186
- required?: boolean | undefined;
187
- version?: number | "latest" | undefined;
188
- allowMissingOverride?: boolean | undefined;
189
- }> | null | undefined;
190
- description?: string | null | undefined;
191
- status?: "active" | "paused" | "archived" | undefined;
192
- projectId?: string | null | undefined;
193
- parentIssueId?: string | null | undefined;
194
- assigneeAgentId?: string | null | undefined;
195
- goalId?: string | null | undefined;
196
- variables?: {
197
- name: string;
198
- required?: boolean | undefined;
199
- options?: string[] | undefined;
200
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
201
- label?: string | null | undefined;
202
- defaultValue?: string | number | boolean | null | undefined;
203
- }[] | undefined;
204
- priority?: "critical" | "high" | "medium" | "low" | undefined;
205
- folderId?: string | null | undefined;
206
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
207
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
208
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
209
- activityGateScope?: "project" | "company" | undefined;
210
- }>;
86
+ }, z.core.$strip>]>>>>;
87
+ }, z.core.$strip>;
211
88
  export type CreateRoutine = z.infer<typeof createRoutineSchema>;
212
89
  export declare const updateRoutineSchema: z.ZodObject<{
213
90
  projectId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -217,175 +94,70 @@ export declare const updateRoutineSchema: z.ZodObject<{
217
94
  title: z.ZodOptional<z.ZodString>;
218
95
  description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
219
96
  assigneeAgentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
220
- priority: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>>>;
221
- status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["active", "paused", "archived"]>>>>;
222
- concurrencyPolicy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>>>>;
223
- catchUpPolicy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>>>>;
224
- activityGatePolicy: z.ZodOptional<z.ZodOptional<z.ZodEnum<["always", "require_external_activity"]>>>;
225
- activityGateScope: z.ZodOptional<z.ZodOptional<z.ZodEnum<["company", "project"]>>>;
226
- variables: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
97
+ priority: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
98
+ critical: "critical";
99
+ high: "high";
100
+ medium: "medium";
101
+ low: "low";
102
+ }>>>>;
103
+ status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
104
+ active: "active";
105
+ paused: "paused";
106
+ archived: "archived";
107
+ }>>>>;
108
+ concurrencyPolicy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
109
+ coalesce_if_active: "coalesce_if_active";
110
+ always_enqueue: "always_enqueue";
111
+ skip_if_active: "skip_if_active";
112
+ }>>>>;
113
+ catchUpPolicy: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
114
+ skip_missed: "skip_missed";
115
+ enqueue_missed_with_cap: "enqueue_missed_with_cap";
116
+ }>>>>;
117
+ activityGatePolicy: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
118
+ always: "always";
119
+ require_external_activity: "require_external_activity";
120
+ }>>>;
121
+ activityGateScope: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
122
+ project: "project";
123
+ company: "company";
124
+ }>>>;
125
+ variables: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
227
126
  name: z.ZodString;
228
127
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
229
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select", "date"]>>>;
230
- defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
128
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
129
+ number: "number";
130
+ boolean: "boolean";
131
+ text: "text";
132
+ textarea: "textarea";
133
+ select: "select";
134
+ date: "date";
135
+ }>>>;
136
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
231
137
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
232
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
233
- }, "strip", z.ZodTypeAny, {
234
- required: boolean;
235
- options: string[];
236
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
237
- name: string;
238
- label?: string | null | undefined;
239
- defaultValue?: string | number | boolean | null | undefined;
240
- }, {
241
- name: string;
242
- required?: boolean | undefined;
243
- options?: string[] | undefined;
244
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
245
- label?: string | null | undefined;
246
- defaultValue?: string | number | boolean | null | undefined;
247
- }>, {
248
- required: boolean;
249
- options: string[];
250
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
251
- name: string;
252
- label?: string | null | undefined;
253
- defaultValue?: string | number | boolean | null | undefined;
254
- }, {
255
- name: string;
256
- required?: boolean | undefined;
257
- options?: string[] | undefined;
258
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
259
- label?: string | null | undefined;
260
- defaultValue?: string | number | boolean | null | undefined;
261
- }>, "many">>>>;
262
- env: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
138
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
139
+ }, z.core.$strip>>>>>;
140
+ env: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
263
141
  type: z.ZodLiteral<"plain">;
264
142
  value: z.ZodString;
265
- }, "strip", z.ZodTypeAny, {
266
- value: string;
267
- type: "plain";
268
- }, {
269
- value: string;
270
- type: "plain";
271
- }>, z.ZodObject<{
143
+ }, z.core.$strip>, z.ZodObject<{
272
144
  type: z.ZodLiteral<"secret_ref">;
273
145
  secretId: z.ZodString;
274
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
275
- projectionClass: z.ZodOptional<z.ZodEnum<["unclassified", "class_3_static_lease"]>>;
146
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
147
+ projectionClass: z.ZodOptional<z.ZodEnum<{
148
+ unclassified: "unclassified";
149
+ class_3_static_lease: "class_3_static_lease";
150
+ }>>;
276
151
  projectionAllowlistKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
277
- }, "strip", z.ZodTypeAny, {
278
- type: "secret_ref";
279
- secretId: string;
280
- version?: number | "latest" | undefined;
281
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
282
- projectionAllowlistKey?: string | null | undefined;
283
- }, {
284
- type: "secret_ref";
285
- secretId: string;
286
- version?: number | "latest" | undefined;
287
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
288
- projectionAllowlistKey?: string | null | undefined;
289
- }>, z.ZodObject<{
152
+ }, z.core.$strip>, z.ZodObject<{
290
153
  type: z.ZodLiteral<"user_secret_ref">;
291
154
  key: z.ZodString;
292
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
155
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
293
156
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
294
157
  allowMissingOverride: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
295
- }, "strip", z.ZodTypeAny, {
296
- key: string;
297
- required: boolean;
298
- type: "user_secret_ref";
299
- allowMissingOverride: boolean;
300
- version?: number | "latest" | undefined;
301
- }, {
302
- key: string;
303
- type: "user_secret_ref";
304
- required?: boolean | undefined;
305
- version?: number | "latest" | undefined;
306
- allowMissingOverride?: boolean | undefined;
307
- }>]>>>>>;
308
- } & {
158
+ }, z.core.$strip>]>>>>>;
309
159
  baseRevisionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
310
- }, "strip", z.ZodTypeAny, {
311
- env?: Record<string, string | {
312
- value: string;
313
- type: "plain";
314
- } | {
315
- type: "secret_ref";
316
- secretId: string;
317
- version?: number | "latest" | undefined;
318
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
319
- projectionAllowlistKey?: string | null | undefined;
320
- } | {
321
- key: string;
322
- required: boolean;
323
- type: "user_secret_ref";
324
- allowMissingOverride: boolean;
325
- version?: number | "latest" | undefined;
326
- }> | null | undefined;
327
- title?: string | undefined;
328
- description?: string | null | undefined;
329
- status?: "active" | "paused" | "archived" | undefined;
330
- projectId?: string | null | undefined;
331
- parentIssueId?: string | null | undefined;
332
- assigneeAgentId?: string | null | undefined;
333
- goalId?: string | null | undefined;
334
- variables?: {
335
- required: boolean;
336
- options: string[];
337
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
338
- name: string;
339
- label?: string | null | undefined;
340
- defaultValue?: string | number | boolean | null | undefined;
341
- }[] | undefined;
342
- priority?: "critical" | "high" | "medium" | "low" | undefined;
343
- baseRevisionId?: string | null | undefined;
344
- folderId?: string | null | undefined;
345
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
346
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
347
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
348
- activityGateScope?: "project" | "company" | undefined;
349
- }, {
350
- env?: Record<string, string | {
351
- value: string;
352
- type: "plain";
353
- } | {
354
- type: "secret_ref";
355
- secretId: string;
356
- version?: number | "latest" | undefined;
357
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
358
- projectionAllowlistKey?: string | null | undefined;
359
- } | {
360
- key: string;
361
- type: "user_secret_ref";
362
- required?: boolean | undefined;
363
- version?: number | "latest" | undefined;
364
- allowMissingOverride?: boolean | undefined;
365
- }> | null | undefined;
366
- title?: string | undefined;
367
- description?: string | null | undefined;
368
- status?: "active" | "paused" | "archived" | undefined;
369
- projectId?: string | null | undefined;
370
- parentIssueId?: string | null | undefined;
371
- assigneeAgentId?: string | null | undefined;
372
- goalId?: string | null | undefined;
373
- variables?: {
374
- name: string;
375
- required?: boolean | undefined;
376
- options?: string[] | undefined;
377
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
378
- label?: string | null | undefined;
379
- defaultValue?: string | number | boolean | null | undefined;
380
- }[] | undefined;
381
- priority?: "critical" | "high" | "medium" | "low" | undefined;
382
- baseRevisionId?: string | null | undefined;
383
- folderId?: string | null | undefined;
384
- concurrencyPolicy?: "coalesce_if_active" | "always_enqueue" | "skip_if_active" | undefined;
385
- catchUpPolicy?: "skip_missed" | "enqueue_missed_with_cap" | undefined;
386
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
387
- activityGateScope?: "project" | "company" | undefined;
388
- }>;
160
+ }, z.core.$strip>;
389
161
  export type UpdateRoutine = z.infer<typeof updateRoutineSchema>;
390
162
  export declare const routineRevisionSnapshotRoutineV1Schema: z.ZodObject<{
391
163
  id: z.ZodString;
@@ -397,209 +169,90 @@ export declare const routineRevisionSnapshotRoutineV1Schema: z.ZodObject<{
397
169
  title: z.ZodString;
398
170
  description: z.ZodNullable<z.ZodString>;
399
171
  assigneeAgentId: z.ZodNullable<z.ZodString>;
400
- priority: z.ZodEnum<["critical", "high", "medium", "low"]>;
401
- status: z.ZodEnum<["active", "paused", "archived"]>;
402
- concurrencyPolicy: z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>;
403
- catchUpPolicy: z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>;
404
- activityGatePolicy: z.ZodDefault<z.ZodEnum<["always", "require_external_activity"]>>;
405
- activityGateScope: z.ZodDefault<z.ZodEnum<["company", "project"]>>;
406
- variables: z.ZodArray<z.ZodEffects<z.ZodObject<{
172
+ priority: z.ZodEnum<{
173
+ critical: "critical";
174
+ high: "high";
175
+ medium: "medium";
176
+ low: "low";
177
+ }>;
178
+ status: z.ZodEnum<{
179
+ active: "active";
180
+ paused: "paused";
181
+ archived: "archived";
182
+ }>;
183
+ concurrencyPolicy: z.ZodEnum<{
184
+ coalesce_if_active: "coalesce_if_active";
185
+ always_enqueue: "always_enqueue";
186
+ skip_if_active: "skip_if_active";
187
+ }>;
188
+ catchUpPolicy: z.ZodEnum<{
189
+ skip_missed: "skip_missed";
190
+ enqueue_missed_with_cap: "enqueue_missed_with_cap";
191
+ }>;
192
+ activityGatePolicy: z.ZodDefault<z.ZodEnum<{
193
+ always: "always";
194
+ require_external_activity: "require_external_activity";
195
+ }>>;
196
+ activityGateScope: z.ZodDefault<z.ZodEnum<{
197
+ project: "project";
198
+ company: "company";
199
+ }>>;
200
+ variables: z.ZodArray<z.ZodObject<{
407
201
  name: z.ZodString;
408
202
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
409
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select", "date"]>>>;
410
- defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
203
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
204
+ number: "number";
205
+ boolean: "boolean";
206
+ text: "text";
207
+ textarea: "textarea";
208
+ select: "select";
209
+ date: "date";
210
+ }>>>;
211
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
411
212
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
412
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
413
- }, "strip", z.ZodTypeAny, {
414
- required: boolean;
415
- options: string[];
416
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
417
- name: string;
418
- label?: string | null | undefined;
419
- defaultValue?: string | number | boolean | null | undefined;
420
- }, {
421
- name: string;
422
- required?: boolean | undefined;
423
- options?: string[] | undefined;
424
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
425
- label?: string | null | undefined;
426
- defaultValue?: string | number | boolean | null | undefined;
427
- }>, {
428
- required: boolean;
429
- options: string[];
430
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
431
- name: string;
432
- label?: string | null | undefined;
433
- defaultValue?: string | number | boolean | null | undefined;
434
- }, {
435
- name: string;
436
- required?: boolean | undefined;
437
- options?: string[] | undefined;
438
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
439
- label?: string | null | undefined;
440
- defaultValue?: string | number | boolean | null | undefined;
441
- }>, "many">;
442
- env: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
213
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
214
+ }, z.core.$strip>>;
215
+ env: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
443
216
  type: z.ZodLiteral<"plain">;
444
217
  value: z.ZodString;
445
- }, "strip", z.ZodTypeAny, {
446
- value: string;
447
- type: "plain";
448
- }, {
449
- value: string;
450
- type: "plain";
451
- }>, z.ZodObject<{
218
+ }, z.core.$strip>, z.ZodObject<{
452
219
  type: z.ZodLiteral<"secret_ref">;
453
220
  secretId: z.ZodString;
454
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
455
- projectionClass: z.ZodOptional<z.ZodEnum<["unclassified", "class_3_static_lease"]>>;
221
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
222
+ projectionClass: z.ZodOptional<z.ZodEnum<{
223
+ unclassified: "unclassified";
224
+ class_3_static_lease: "class_3_static_lease";
225
+ }>>;
456
226
  projectionAllowlistKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
457
- }, "strip", z.ZodTypeAny, {
458
- type: "secret_ref";
459
- secretId: string;
460
- version?: number | "latest" | undefined;
461
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
462
- projectionAllowlistKey?: string | null | undefined;
463
- }, {
464
- type: "secret_ref";
465
- secretId: string;
466
- version?: number | "latest" | undefined;
467
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
468
- projectionAllowlistKey?: string | null | undefined;
469
- }>, z.ZodObject<{
227
+ }, z.core.$strip>, z.ZodObject<{
470
228
  type: z.ZodLiteral<"user_secret_ref">;
471
229
  key: z.ZodString;
472
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
230
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
473
231
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
474
232
  allowMissingOverride: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
475
- }, "strip", z.ZodTypeAny, {
476
- key: string;
477
- required: boolean;
478
- type: "user_secret_ref";
479
- allowMissingOverride: boolean;
480
- version?: number | "latest" | undefined;
481
- }, {
482
- key: string;
483
- type: "user_secret_ref";
484
- required?: boolean | undefined;
485
- version?: number | "latest" | undefined;
486
- allowMissingOverride?: boolean | undefined;
487
- }>]>>>>;
233
+ }, z.core.$strip>]>>>>;
488
234
  responsibleUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
489
- }, "strict", z.ZodTypeAny, {
490
- env: Record<string, string | {
491
- value: string;
492
- type: "plain";
493
- } | {
494
- type: "secret_ref";
495
- secretId: string;
496
- version?: number | "latest" | undefined;
497
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
498
- projectionAllowlistKey?: string | null | undefined;
499
- } | {
500
- key: string;
501
- required: boolean;
502
- type: "user_secret_ref";
503
- allowMissingOverride: boolean;
504
- version?: number | "latest" | undefined;
505
- }> | null;
506
- title: string;
507
- description: string | null;
508
- companyId: string;
509
- status: "active" | "paused" | "archived";
510
- projectId: string | null;
511
- id: string;
512
- parentIssueId: string | null;
513
- assigneeAgentId: string | null;
514
- goalId: string | null;
515
- variables: {
516
- required: boolean;
517
- options: string[];
518
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
519
- name: string;
520
- label?: string | null | undefined;
521
- defaultValue?: string | number | boolean | null | undefined;
522
- }[];
523
- priority: "critical" | "high" | "medium" | "low";
524
- responsibleUserId: string | null;
525
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
526
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
527
- activityGatePolicy: "always" | "require_external_activity";
528
- activityGateScope: "project" | "company";
529
- folderId?: string | null | undefined;
530
- }, {
531
- title: string;
532
- description: string | null;
533
- companyId: string;
534
- status: "active" | "paused" | "archived";
535
- projectId: string | null;
536
- id: string;
537
- parentIssueId: string | null;
538
- assigneeAgentId: string | null;
539
- goalId: string | null;
540
- variables: {
541
- name: string;
542
- required?: boolean | undefined;
543
- options?: string[] | undefined;
544
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
545
- label?: string | null | undefined;
546
- defaultValue?: string | number | boolean | null | undefined;
547
- }[];
548
- priority: "critical" | "high" | "medium" | "low";
549
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
550
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
551
- env?: Record<string, string | {
552
- value: string;
553
- type: "plain";
554
- } | {
555
- type: "secret_ref";
556
- secretId: string;
557
- version?: number | "latest" | undefined;
558
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
559
- projectionAllowlistKey?: string | null | undefined;
560
- } | {
561
- key: string;
562
- type: "user_secret_ref";
563
- required?: boolean | undefined;
564
- version?: number | "latest" | undefined;
565
- allowMissingOverride?: boolean | undefined;
566
- }> | null | undefined;
567
- responsibleUserId?: string | null | undefined;
568
- folderId?: string | null | undefined;
569
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
570
- activityGateScope?: "project" | "company" | undefined;
571
- }>;
235
+ }, z.core.$strict>;
572
236
  export declare const routineRevisionSnapshotTriggerV1Schema: z.ZodObject<{
573
237
  id: z.ZodString;
574
- kind: z.ZodEnum<["schedule", "webhook", "api"]>;
238
+ kind: z.ZodEnum<{
239
+ schedule: "schedule";
240
+ webhook: "webhook";
241
+ api: "api";
242
+ }>;
575
243
  label: z.ZodNullable<z.ZodString>;
576
244
  enabled: z.ZodBoolean;
577
245
  cronExpression: z.ZodNullable<z.ZodString>;
578
246
  timezone: z.ZodNullable<z.ZodString>;
579
247
  publicId: z.ZodNullable<z.ZodString>;
580
- signingMode: z.ZodNullable<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>;
248
+ signingMode: z.ZodNullable<z.ZodEnum<{
249
+ none: "none";
250
+ bearer: "bearer";
251
+ hmac_sha256: "hmac_sha256";
252
+ github_hmac: "github_hmac";
253
+ }>>;
581
254
  replayWindowSec: z.ZodNullable<z.ZodNumber>;
582
- }, "strict", z.ZodTypeAny, {
583
- label: string | null;
584
- id: string;
585
- enabled: boolean;
586
- kind: "schedule" | "webhook" | "api";
587
- cronExpression: string | null;
588
- timezone: string | null;
589
- publicId: string | null;
590
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
591
- replayWindowSec: number | null;
592
- }, {
593
- label: string | null;
594
- id: string;
595
- enabled: boolean;
596
- kind: "schedule" | "webhook" | "api";
597
- cronExpression: string | null;
598
- timezone: string | null;
599
- publicId: string | null;
600
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
601
- replayWindowSec: number | null;
602
- }>;
255
+ }, z.core.$strict>;
603
256
  export declare const routineRevisionSnapshotV1Schema: z.ZodObject<{
604
257
  version: z.ZodLiteral<1>;
605
258
  routine: z.ZodObject<{
@@ -612,320 +265,91 @@ export declare const routineRevisionSnapshotV1Schema: z.ZodObject<{
612
265
  title: z.ZodString;
613
266
  description: z.ZodNullable<z.ZodString>;
614
267
  assigneeAgentId: z.ZodNullable<z.ZodString>;
615
- priority: z.ZodEnum<["critical", "high", "medium", "low"]>;
616
- status: z.ZodEnum<["active", "paused", "archived"]>;
617
- concurrencyPolicy: z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>;
618
- catchUpPolicy: z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>;
619
- activityGatePolicy: z.ZodDefault<z.ZodEnum<["always", "require_external_activity"]>>;
620
- activityGateScope: z.ZodDefault<z.ZodEnum<["company", "project"]>>;
621
- variables: z.ZodArray<z.ZodEffects<z.ZodObject<{
268
+ priority: z.ZodEnum<{
269
+ critical: "critical";
270
+ high: "high";
271
+ medium: "medium";
272
+ low: "low";
273
+ }>;
274
+ status: z.ZodEnum<{
275
+ active: "active";
276
+ paused: "paused";
277
+ archived: "archived";
278
+ }>;
279
+ concurrencyPolicy: z.ZodEnum<{
280
+ coalesce_if_active: "coalesce_if_active";
281
+ always_enqueue: "always_enqueue";
282
+ skip_if_active: "skip_if_active";
283
+ }>;
284
+ catchUpPolicy: z.ZodEnum<{
285
+ skip_missed: "skip_missed";
286
+ enqueue_missed_with_cap: "enqueue_missed_with_cap";
287
+ }>;
288
+ activityGatePolicy: z.ZodDefault<z.ZodEnum<{
289
+ always: "always";
290
+ require_external_activity: "require_external_activity";
291
+ }>>;
292
+ activityGateScope: z.ZodDefault<z.ZodEnum<{
293
+ project: "project";
294
+ company: "company";
295
+ }>>;
296
+ variables: z.ZodArray<z.ZodObject<{
622
297
  name: z.ZodString;
623
298
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
624
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select", "date"]>>>;
625
- defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
299
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
300
+ number: "number";
301
+ boolean: "boolean";
302
+ text: "text";
303
+ textarea: "textarea";
304
+ select: "select";
305
+ date: "date";
306
+ }>>>;
307
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
626
308
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
627
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
628
- }, "strip", z.ZodTypeAny, {
629
- required: boolean;
630
- options: string[];
631
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
632
- name: string;
633
- label?: string | null | undefined;
634
- defaultValue?: string | number | boolean | null | undefined;
635
- }, {
636
- name: string;
637
- required?: boolean | undefined;
638
- options?: string[] | undefined;
639
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
640
- label?: string | null | undefined;
641
- defaultValue?: string | number | boolean | null | undefined;
642
- }>, {
643
- required: boolean;
644
- options: string[];
645
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
646
- name: string;
647
- label?: string | null | undefined;
648
- defaultValue?: string | number | boolean | null | undefined;
649
- }, {
650
- name: string;
651
- required?: boolean | undefined;
652
- options?: string[] | undefined;
653
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
654
- label?: string | null | undefined;
655
- defaultValue?: string | number | boolean | null | undefined;
656
- }>, "many">;
657
- env: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
309
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
310
+ }, z.core.$strip>>;
311
+ env: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
658
312
  type: z.ZodLiteral<"plain">;
659
313
  value: z.ZodString;
660
- }, "strip", z.ZodTypeAny, {
661
- value: string;
662
- type: "plain";
663
- }, {
664
- value: string;
665
- type: "plain";
666
- }>, z.ZodObject<{
314
+ }, z.core.$strip>, z.ZodObject<{
667
315
  type: z.ZodLiteral<"secret_ref">;
668
316
  secretId: z.ZodString;
669
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
670
- projectionClass: z.ZodOptional<z.ZodEnum<["unclassified", "class_3_static_lease"]>>;
317
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
318
+ projectionClass: z.ZodOptional<z.ZodEnum<{
319
+ unclassified: "unclassified";
320
+ class_3_static_lease: "class_3_static_lease";
321
+ }>>;
671
322
  projectionAllowlistKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
672
- }, "strip", z.ZodTypeAny, {
673
- type: "secret_ref";
674
- secretId: string;
675
- version?: number | "latest" | undefined;
676
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
677
- projectionAllowlistKey?: string | null | undefined;
678
- }, {
679
- type: "secret_ref";
680
- secretId: string;
681
- version?: number | "latest" | undefined;
682
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
683
- projectionAllowlistKey?: string | null | undefined;
684
- }>, z.ZodObject<{
323
+ }, z.core.$strip>, z.ZodObject<{
685
324
  type: z.ZodLiteral<"user_secret_ref">;
686
325
  key: z.ZodString;
687
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
326
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
688
327
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
689
328
  allowMissingOverride: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
690
- }, "strip", z.ZodTypeAny, {
691
- key: string;
692
- required: boolean;
693
- type: "user_secret_ref";
694
- allowMissingOverride: boolean;
695
- version?: number | "latest" | undefined;
696
- }, {
697
- key: string;
698
- type: "user_secret_ref";
699
- required?: boolean | undefined;
700
- version?: number | "latest" | undefined;
701
- allowMissingOverride?: boolean | undefined;
702
- }>]>>>>;
329
+ }, z.core.$strip>]>>>>;
703
330
  responsibleUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
704
- }, "strict", z.ZodTypeAny, {
705
- env: Record<string, string | {
706
- value: string;
707
- type: "plain";
708
- } | {
709
- type: "secret_ref";
710
- secretId: string;
711
- version?: number | "latest" | undefined;
712
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
713
- projectionAllowlistKey?: string | null | undefined;
714
- } | {
715
- key: string;
716
- required: boolean;
717
- type: "user_secret_ref";
718
- allowMissingOverride: boolean;
719
- version?: number | "latest" | undefined;
720
- }> | null;
721
- title: string;
722
- description: string | null;
723
- companyId: string;
724
- status: "active" | "paused" | "archived";
725
- projectId: string | null;
726
- id: string;
727
- parentIssueId: string | null;
728
- assigneeAgentId: string | null;
729
- goalId: string | null;
730
- variables: {
731
- required: boolean;
732
- options: string[];
733
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
734
- name: string;
735
- label?: string | null | undefined;
736
- defaultValue?: string | number | boolean | null | undefined;
737
- }[];
738
- priority: "critical" | "high" | "medium" | "low";
739
- responsibleUserId: string | null;
740
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
741
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
742
- activityGatePolicy: "always" | "require_external_activity";
743
- activityGateScope: "project" | "company";
744
- folderId?: string | null | undefined;
745
- }, {
746
- title: string;
747
- description: string | null;
748
- companyId: string;
749
- status: "active" | "paused" | "archived";
750
- projectId: string | null;
751
- id: string;
752
- parentIssueId: string | null;
753
- assigneeAgentId: string | null;
754
- goalId: string | null;
755
- variables: {
756
- name: string;
757
- required?: boolean | undefined;
758
- options?: string[] | undefined;
759
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
760
- label?: string | null | undefined;
761
- defaultValue?: string | number | boolean | null | undefined;
762
- }[];
763
- priority: "critical" | "high" | "medium" | "low";
764
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
765
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
766
- env?: Record<string, string | {
767
- value: string;
768
- type: "plain";
769
- } | {
770
- type: "secret_ref";
771
- secretId: string;
772
- version?: number | "latest" | undefined;
773
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
774
- projectionAllowlistKey?: string | null | undefined;
775
- } | {
776
- key: string;
777
- type: "user_secret_ref";
778
- required?: boolean | undefined;
779
- version?: number | "latest" | undefined;
780
- allowMissingOverride?: boolean | undefined;
781
- }> | null | undefined;
782
- responsibleUserId?: string | null | undefined;
783
- folderId?: string | null | undefined;
784
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
785
- activityGateScope?: "project" | "company" | undefined;
786
- }>;
331
+ }, z.core.$strict>;
787
332
  triggers: z.ZodArray<z.ZodObject<{
788
333
  id: z.ZodString;
789
- kind: z.ZodEnum<["schedule", "webhook", "api"]>;
334
+ kind: z.ZodEnum<{
335
+ schedule: "schedule";
336
+ webhook: "webhook";
337
+ api: "api";
338
+ }>;
790
339
  label: z.ZodNullable<z.ZodString>;
791
340
  enabled: z.ZodBoolean;
792
341
  cronExpression: z.ZodNullable<z.ZodString>;
793
342
  timezone: z.ZodNullable<z.ZodString>;
794
343
  publicId: z.ZodNullable<z.ZodString>;
795
- signingMode: z.ZodNullable<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>;
344
+ signingMode: z.ZodNullable<z.ZodEnum<{
345
+ none: "none";
346
+ bearer: "bearer";
347
+ hmac_sha256: "hmac_sha256";
348
+ github_hmac: "github_hmac";
349
+ }>>;
796
350
  replayWindowSec: z.ZodNullable<z.ZodNumber>;
797
- }, "strict", z.ZodTypeAny, {
798
- label: string | null;
799
- id: string;
800
- enabled: boolean;
801
- kind: "schedule" | "webhook" | "api";
802
- cronExpression: string | null;
803
- timezone: string | null;
804
- publicId: string | null;
805
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
806
- replayWindowSec: number | null;
807
- }, {
808
- label: string | null;
809
- id: string;
810
- enabled: boolean;
811
- kind: "schedule" | "webhook" | "api";
812
- cronExpression: string | null;
813
- timezone: string | null;
814
- publicId: string | null;
815
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
816
- replayWindowSec: number | null;
817
- }>, "many">;
818
- }, "strict", z.ZodTypeAny, {
819
- routine: {
820
- env: Record<string, string | {
821
- value: string;
822
- type: "plain";
823
- } | {
824
- type: "secret_ref";
825
- secretId: string;
826
- version?: number | "latest" | undefined;
827
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
828
- projectionAllowlistKey?: string | null | undefined;
829
- } | {
830
- key: string;
831
- required: boolean;
832
- type: "user_secret_ref";
833
- allowMissingOverride: boolean;
834
- version?: number | "latest" | undefined;
835
- }> | null;
836
- title: string;
837
- description: string | null;
838
- companyId: string;
839
- status: "active" | "paused" | "archived";
840
- projectId: string | null;
841
- id: string;
842
- parentIssueId: string | null;
843
- assigneeAgentId: string | null;
844
- goalId: string | null;
845
- variables: {
846
- required: boolean;
847
- options: string[];
848
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
849
- name: string;
850
- label?: string | null | undefined;
851
- defaultValue?: string | number | boolean | null | undefined;
852
- }[];
853
- priority: "critical" | "high" | "medium" | "low";
854
- responsibleUserId: string | null;
855
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
856
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
857
- activityGatePolicy: "always" | "require_external_activity";
858
- activityGateScope: "project" | "company";
859
- folderId?: string | null | undefined;
860
- };
861
- version: 1;
862
- triggers: {
863
- label: string | null;
864
- id: string;
865
- enabled: boolean;
866
- kind: "schedule" | "webhook" | "api";
867
- cronExpression: string | null;
868
- timezone: string | null;
869
- publicId: string | null;
870
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
871
- replayWindowSec: number | null;
872
- }[];
873
- }, {
874
- routine: {
875
- title: string;
876
- description: string | null;
877
- companyId: string;
878
- status: "active" | "paused" | "archived";
879
- projectId: string | null;
880
- id: string;
881
- parentIssueId: string | null;
882
- assigneeAgentId: string | null;
883
- goalId: string | null;
884
- variables: {
885
- name: string;
886
- required?: boolean | undefined;
887
- options?: string[] | undefined;
888
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
889
- label?: string | null | undefined;
890
- defaultValue?: string | number | boolean | null | undefined;
891
- }[];
892
- priority: "critical" | "high" | "medium" | "low";
893
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
894
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
895
- env?: Record<string, string | {
896
- value: string;
897
- type: "plain";
898
- } | {
899
- type: "secret_ref";
900
- secretId: string;
901
- version?: number | "latest" | undefined;
902
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
903
- projectionAllowlistKey?: string | null | undefined;
904
- } | {
905
- key: string;
906
- type: "user_secret_ref";
907
- required?: boolean | undefined;
908
- version?: number | "latest" | undefined;
909
- allowMissingOverride?: boolean | undefined;
910
- }> | null | undefined;
911
- responsibleUserId?: string | null | undefined;
912
- folderId?: string | null | undefined;
913
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
914
- activityGateScope?: "project" | "company" | undefined;
915
- };
916
- version: 1;
917
- triggers: {
918
- label: string | null;
919
- id: string;
920
- enabled: boolean;
921
- kind: "schedule" | "webhook" | "api";
922
- cronExpression: string | null;
923
- timezone: string | null;
924
- publicId: string | null;
925
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
926
- replayWindowSec: number | null;
927
- }[];
928
- }>;
351
+ }, z.core.$strict>>;
352
+ }, z.core.$strict>;
929
353
  export declare const routineRevisionSnapshotSchema: z.ZodObject<{
930
354
  version: z.ZodLiteral<1>;
931
355
  routine: z.ZodObject<{
@@ -938,548 +362,189 @@ export declare const routineRevisionSnapshotSchema: z.ZodObject<{
938
362
  title: z.ZodString;
939
363
  description: z.ZodNullable<z.ZodString>;
940
364
  assigneeAgentId: z.ZodNullable<z.ZodString>;
941
- priority: z.ZodEnum<["critical", "high", "medium", "low"]>;
942
- status: z.ZodEnum<["active", "paused", "archived"]>;
943
- concurrencyPolicy: z.ZodEnum<["coalesce_if_active", "always_enqueue", "skip_if_active"]>;
944
- catchUpPolicy: z.ZodEnum<["skip_missed", "enqueue_missed_with_cap"]>;
945
- activityGatePolicy: z.ZodDefault<z.ZodEnum<["always", "require_external_activity"]>>;
946
- activityGateScope: z.ZodDefault<z.ZodEnum<["company", "project"]>>;
947
- variables: z.ZodArray<z.ZodEffects<z.ZodObject<{
365
+ priority: z.ZodEnum<{
366
+ critical: "critical";
367
+ high: "high";
368
+ medium: "medium";
369
+ low: "low";
370
+ }>;
371
+ status: z.ZodEnum<{
372
+ active: "active";
373
+ paused: "paused";
374
+ archived: "archived";
375
+ }>;
376
+ concurrencyPolicy: z.ZodEnum<{
377
+ coalesce_if_active: "coalesce_if_active";
378
+ always_enqueue: "always_enqueue";
379
+ skip_if_active: "skip_if_active";
380
+ }>;
381
+ catchUpPolicy: z.ZodEnum<{
382
+ skip_missed: "skip_missed";
383
+ enqueue_missed_with_cap: "enqueue_missed_with_cap";
384
+ }>;
385
+ activityGatePolicy: z.ZodDefault<z.ZodEnum<{
386
+ always: "always";
387
+ require_external_activity: "require_external_activity";
388
+ }>>;
389
+ activityGateScope: z.ZodDefault<z.ZodEnum<{
390
+ project: "project";
391
+ company: "company";
392
+ }>>;
393
+ variables: z.ZodArray<z.ZodObject<{
948
394
  name: z.ZodString;
949
395
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
950
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "boolean", "select", "date"]>>>;
951
- defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
396
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
397
+ number: "number";
398
+ boolean: "boolean";
399
+ text: "text";
400
+ textarea: "textarea";
401
+ select: "select";
402
+ date: "date";
403
+ }>>>;
404
+ defaultValue: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
952
405
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
953
- options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
954
- }, "strip", z.ZodTypeAny, {
955
- required: boolean;
956
- options: string[];
957
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
958
- name: string;
959
- label?: string | null | undefined;
960
- defaultValue?: string | number | boolean | null | undefined;
961
- }, {
962
- name: string;
963
- required?: boolean | undefined;
964
- options?: string[] | undefined;
965
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
966
- label?: string | null | undefined;
967
- defaultValue?: string | number | boolean | null | undefined;
968
- }>, {
969
- required: boolean;
970
- options: string[];
971
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
972
- name: string;
973
- label?: string | null | undefined;
974
- defaultValue?: string | number | boolean | null | undefined;
975
- }, {
976
- name: string;
977
- required?: boolean | undefined;
978
- options?: string[] | undefined;
979
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
980
- label?: string | null | undefined;
981
- defaultValue?: string | number | boolean | null | undefined;
982
- }>, "many">;
983
- env: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
406
+ options: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
407
+ }, z.core.$strip>>;
408
+ env: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
984
409
  type: z.ZodLiteral<"plain">;
985
410
  value: z.ZodString;
986
- }, "strip", z.ZodTypeAny, {
987
- value: string;
988
- type: "plain";
989
- }, {
990
- value: string;
991
- type: "plain";
992
- }>, z.ZodObject<{
411
+ }, z.core.$strip>, z.ZodObject<{
993
412
  type: z.ZodLiteral<"secret_ref">;
994
413
  secretId: z.ZodString;
995
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
996
- projectionClass: z.ZodOptional<z.ZodEnum<["unclassified", "class_3_static_lease"]>>;
414
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
415
+ projectionClass: z.ZodOptional<z.ZodEnum<{
416
+ unclassified: "unclassified";
417
+ class_3_static_lease: "class_3_static_lease";
418
+ }>>;
997
419
  projectionAllowlistKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
998
- }, "strip", z.ZodTypeAny, {
999
- type: "secret_ref";
1000
- secretId: string;
1001
- version?: number | "latest" | undefined;
1002
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
1003
- projectionAllowlistKey?: string | null | undefined;
1004
- }, {
1005
- type: "secret_ref";
1006
- secretId: string;
1007
- version?: number | "latest" | undefined;
1008
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
1009
- projectionAllowlistKey?: string | null | undefined;
1010
- }>, z.ZodObject<{
420
+ }, z.core.$strip>, z.ZodObject<{
1011
421
  type: z.ZodLiteral<"user_secret_ref">;
1012
422
  key: z.ZodString;
1013
- version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodNumber]>>;
423
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodNumber]>>;
1014
424
  required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1015
425
  allowMissingOverride: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1016
- }, "strip", z.ZodTypeAny, {
1017
- key: string;
1018
- required: boolean;
1019
- type: "user_secret_ref";
1020
- allowMissingOverride: boolean;
1021
- version?: number | "latest" | undefined;
1022
- }, {
1023
- key: string;
1024
- type: "user_secret_ref";
1025
- required?: boolean | undefined;
1026
- version?: number | "latest" | undefined;
1027
- allowMissingOverride?: boolean | undefined;
1028
- }>]>>>>;
426
+ }, z.core.$strip>]>>>>;
1029
427
  responsibleUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1030
- }, "strict", z.ZodTypeAny, {
1031
- env: Record<string, string | {
1032
- value: string;
1033
- type: "plain";
1034
- } | {
1035
- type: "secret_ref";
1036
- secretId: string;
1037
- version?: number | "latest" | undefined;
1038
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
1039
- projectionAllowlistKey?: string | null | undefined;
1040
- } | {
1041
- key: string;
1042
- required: boolean;
1043
- type: "user_secret_ref";
1044
- allowMissingOverride: boolean;
1045
- version?: number | "latest" | undefined;
1046
- }> | null;
1047
- title: string;
1048
- description: string | null;
1049
- companyId: string;
1050
- status: "active" | "paused" | "archived";
1051
- projectId: string | null;
1052
- id: string;
1053
- parentIssueId: string | null;
1054
- assigneeAgentId: string | null;
1055
- goalId: string | null;
1056
- variables: {
1057
- required: boolean;
1058
- options: string[];
1059
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
1060
- name: string;
1061
- label?: string | null | undefined;
1062
- defaultValue?: string | number | boolean | null | undefined;
1063
- }[];
1064
- priority: "critical" | "high" | "medium" | "low";
1065
- responsibleUserId: string | null;
1066
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
1067
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
1068
- activityGatePolicy: "always" | "require_external_activity";
1069
- activityGateScope: "project" | "company";
1070
- folderId?: string | null | undefined;
1071
- }, {
1072
- title: string;
1073
- description: string | null;
1074
- companyId: string;
1075
- status: "active" | "paused" | "archived";
1076
- projectId: string | null;
1077
- id: string;
1078
- parentIssueId: string | null;
1079
- assigneeAgentId: string | null;
1080
- goalId: string | null;
1081
- variables: {
1082
- name: string;
1083
- required?: boolean | undefined;
1084
- options?: string[] | undefined;
1085
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
1086
- label?: string | null | undefined;
1087
- defaultValue?: string | number | boolean | null | undefined;
1088
- }[];
1089
- priority: "critical" | "high" | "medium" | "low";
1090
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
1091
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
1092
- env?: Record<string, string | {
1093
- value: string;
1094
- type: "plain";
1095
- } | {
1096
- type: "secret_ref";
1097
- secretId: string;
1098
- version?: number | "latest" | undefined;
1099
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
1100
- projectionAllowlistKey?: string | null | undefined;
1101
- } | {
1102
- key: string;
1103
- type: "user_secret_ref";
1104
- required?: boolean | undefined;
1105
- version?: number | "latest" | undefined;
1106
- allowMissingOverride?: boolean | undefined;
1107
- }> | null | undefined;
1108
- responsibleUserId?: string | null | undefined;
1109
- folderId?: string | null | undefined;
1110
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
1111
- activityGateScope?: "project" | "company" | undefined;
1112
- }>;
428
+ }, z.core.$strict>;
1113
429
  triggers: z.ZodArray<z.ZodObject<{
1114
430
  id: z.ZodString;
1115
- kind: z.ZodEnum<["schedule", "webhook", "api"]>;
431
+ kind: z.ZodEnum<{
432
+ schedule: "schedule";
433
+ webhook: "webhook";
434
+ api: "api";
435
+ }>;
1116
436
  label: z.ZodNullable<z.ZodString>;
1117
437
  enabled: z.ZodBoolean;
1118
438
  cronExpression: z.ZodNullable<z.ZodString>;
1119
439
  timezone: z.ZodNullable<z.ZodString>;
1120
440
  publicId: z.ZodNullable<z.ZodString>;
1121
- signingMode: z.ZodNullable<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>;
441
+ signingMode: z.ZodNullable<z.ZodEnum<{
442
+ none: "none";
443
+ bearer: "bearer";
444
+ hmac_sha256: "hmac_sha256";
445
+ github_hmac: "github_hmac";
446
+ }>>;
1122
447
  replayWindowSec: z.ZodNullable<z.ZodNumber>;
1123
- }, "strict", z.ZodTypeAny, {
1124
- label: string | null;
1125
- id: string;
1126
- enabled: boolean;
1127
- kind: "schedule" | "webhook" | "api";
1128
- cronExpression: string | null;
1129
- timezone: string | null;
1130
- publicId: string | null;
1131
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
1132
- replayWindowSec: number | null;
1133
- }, {
1134
- label: string | null;
1135
- id: string;
1136
- enabled: boolean;
1137
- kind: "schedule" | "webhook" | "api";
1138
- cronExpression: string | null;
1139
- timezone: string | null;
1140
- publicId: string | null;
1141
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
1142
- replayWindowSec: number | null;
1143
- }>, "many">;
1144
- }, "strict", z.ZodTypeAny, {
1145
- routine: {
1146
- env: Record<string, string | {
1147
- value: string;
1148
- type: "plain";
1149
- } | {
1150
- type: "secret_ref";
1151
- secretId: string;
1152
- version?: number | "latest" | undefined;
1153
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
1154
- projectionAllowlistKey?: string | null | undefined;
1155
- } | {
1156
- key: string;
1157
- required: boolean;
1158
- type: "user_secret_ref";
1159
- allowMissingOverride: boolean;
1160
- version?: number | "latest" | undefined;
1161
- }> | null;
1162
- title: string;
1163
- description: string | null;
1164
- companyId: string;
1165
- status: "active" | "paused" | "archived";
1166
- projectId: string | null;
1167
- id: string;
1168
- parentIssueId: string | null;
1169
- assigneeAgentId: string | null;
1170
- goalId: string | null;
1171
- variables: {
1172
- required: boolean;
1173
- options: string[];
1174
- type: "number" | "boolean" | "text" | "textarea" | "select" | "date";
1175
- name: string;
1176
- label?: string | null | undefined;
1177
- defaultValue?: string | number | boolean | null | undefined;
1178
- }[];
1179
- priority: "critical" | "high" | "medium" | "low";
1180
- responsibleUserId: string | null;
1181
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
1182
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
1183
- activityGatePolicy: "always" | "require_external_activity";
1184
- activityGateScope: "project" | "company";
1185
- folderId?: string | null | undefined;
1186
- };
1187
- version: 1;
1188
- triggers: {
1189
- label: string | null;
1190
- id: string;
1191
- enabled: boolean;
1192
- kind: "schedule" | "webhook" | "api";
1193
- cronExpression: string | null;
1194
- timezone: string | null;
1195
- publicId: string | null;
1196
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
1197
- replayWindowSec: number | null;
1198
- }[];
1199
- }, {
1200
- routine: {
1201
- title: string;
1202
- description: string | null;
1203
- companyId: string;
1204
- status: "active" | "paused" | "archived";
1205
- projectId: string | null;
1206
- id: string;
1207
- parentIssueId: string | null;
1208
- assigneeAgentId: string | null;
1209
- goalId: string | null;
1210
- variables: {
1211
- name: string;
1212
- required?: boolean | undefined;
1213
- options?: string[] | undefined;
1214
- type?: "number" | "boolean" | "text" | "textarea" | "select" | "date" | undefined;
1215
- label?: string | null | undefined;
1216
- defaultValue?: string | number | boolean | null | undefined;
1217
- }[];
1218
- priority: "critical" | "high" | "medium" | "low";
1219
- concurrencyPolicy: "coalesce_if_active" | "always_enqueue" | "skip_if_active";
1220
- catchUpPolicy: "skip_missed" | "enqueue_missed_with_cap";
1221
- env?: Record<string, string | {
1222
- value: string;
1223
- type: "plain";
1224
- } | {
1225
- type: "secret_ref";
1226
- secretId: string;
1227
- version?: number | "latest" | undefined;
1228
- projectionClass?: "unclassified" | "class_3_static_lease" | undefined;
1229
- projectionAllowlistKey?: string | null | undefined;
1230
- } | {
1231
- key: string;
1232
- type: "user_secret_ref";
1233
- required?: boolean | undefined;
1234
- version?: number | "latest" | undefined;
1235
- allowMissingOverride?: boolean | undefined;
1236
- }> | null | undefined;
1237
- responsibleUserId?: string | null | undefined;
1238
- folderId?: string | null | undefined;
1239
- activityGatePolicy?: "always" | "require_external_activity" | undefined;
1240
- activityGateScope?: "project" | "company" | undefined;
1241
- };
1242
- version: 1;
1243
- triggers: {
1244
- label: string | null;
1245
- id: string;
1246
- enabled: boolean;
1247
- kind: "schedule" | "webhook" | "api";
1248
- cronExpression: string | null;
1249
- timezone: string | null;
1250
- publicId: string | null;
1251
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null;
1252
- replayWindowSec: number | null;
1253
- }[];
1254
- }>;
448
+ }, z.core.$strict>>;
449
+ }, z.core.$strict>;
1255
450
  export type RoutineRevisionSnapshotV1 = z.infer<typeof routineRevisionSnapshotV1Schema>;
1256
451
  export type RoutineRevisionSnapshot = z.infer<typeof routineRevisionSnapshotSchema>;
1257
- export declare const createRoutineTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
452
+ export declare const createRoutineTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1258
453
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1259
454
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1260
- } & {
1261
455
  kind: z.ZodLiteral<"schedule">;
1262
456
  cronExpression: z.ZodString;
1263
457
  timezone: z.ZodDefault<z.ZodString>;
1264
- }, "strip", z.ZodTypeAny, {
1265
- enabled: boolean;
1266
- kind: "schedule";
1267
- cronExpression: string;
1268
- timezone: string;
1269
- label?: string | null | undefined;
1270
- }, {
1271
- kind: "schedule";
1272
- cronExpression: string;
1273
- label?: string | null | undefined;
1274
- enabled?: boolean | undefined;
1275
- timezone?: string | undefined;
1276
- }>, z.ZodObject<{
458
+ }, z.core.$strip>, z.ZodObject<{
1277
459
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1278
460
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1279
- } & {
1280
461
  kind: z.ZodLiteral<"webhook">;
1281
- signingMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>>;
462
+ signingMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
463
+ none: "none";
464
+ bearer: "bearer";
465
+ hmac_sha256: "hmac_sha256";
466
+ github_hmac: "github_hmac";
467
+ }>>>;
1282
468
  replayWindowSec: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1283
- }, "strip", z.ZodTypeAny, {
1284
- enabled: boolean;
1285
- kind: "webhook";
1286
- signingMode: "none" | "bearer" | "hmac_sha256" | "github_hmac";
1287
- replayWindowSec: number;
1288
- label?: string | null | undefined;
1289
- }, {
1290
- kind: "webhook";
1291
- label?: string | null | undefined;
1292
- enabled?: boolean | undefined;
1293
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | undefined;
1294
- replayWindowSec?: number | undefined;
1295
- }>, z.ZodObject<{
469
+ }, z.core.$strip>, z.ZodObject<{
1296
470
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1297
471
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1298
- } & {
1299
472
  kind: z.ZodLiteral<"api">;
1300
- }, "strip", z.ZodTypeAny, {
1301
- enabled: boolean;
1302
- kind: "api";
1303
- label?: string | null | undefined;
1304
- }, {
1305
- kind: "api";
1306
- label?: string | null | undefined;
1307
- enabled?: boolean | undefined;
1308
- }>]>;
473
+ }, z.core.$strip>], "kind">;
1309
474
  export type CreateRoutineTrigger = z.infer<typeof createRoutineTriggerSchema>;
1310
475
  export declare const updateRoutineTriggerSchema: z.ZodObject<{
1311
476
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1312
477
  enabled: z.ZodOptional<z.ZodBoolean>;
1313
478
  cronExpression: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1314
479
  timezone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1315
- signingMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["bearer", "hmac_sha256", "github_hmac", "none"]>>>;
480
+ signingMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
481
+ none: "none";
482
+ bearer: "bearer";
483
+ hmac_sha256: "hmac_sha256";
484
+ github_hmac: "github_hmac";
485
+ }>>>;
1316
486
  replayWindowSec: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1317
- }, "strip", z.ZodTypeAny, {
1318
- label?: string | null | undefined;
1319
- enabled?: boolean | undefined;
1320
- cronExpression?: string | null | undefined;
1321
- timezone?: string | null | undefined;
1322
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
1323
- replayWindowSec?: number | null | undefined;
1324
- }, {
1325
- label?: string | null | undefined;
1326
- enabled?: boolean | undefined;
1327
- cronExpression?: string | null | undefined;
1328
- timezone?: string | null | undefined;
1329
- signingMode?: "none" | "bearer" | "hmac_sha256" | "github_hmac" | null | undefined;
1330
- replayWindowSec?: number | null | undefined;
1331
- }>;
487
+ }, z.core.$strip>;
1332
488
  export type UpdateRoutineTrigger = z.infer<typeof updateRoutineTriggerSchema>;
1333
489
  export declare const runRoutineSchema: z.ZodObject<{
1334
490
  triggerId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1335
491
  payload: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1336
- variables: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
492
+ variables: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
1337
493
  projectId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1338
494
  projectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1339
495
  assigneeAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1340
496
  idempotencyKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1341
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["manual", "api"]>>>;
497
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
498
+ manual: "manual";
499
+ api: "api";
500
+ }>>>;
1342
501
  executionWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1343
- executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>>;
502
+ executionWorkspacePreference: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
503
+ shared_workspace: "shared_workspace";
504
+ isolated_workspace: "isolated_workspace";
505
+ operator_branch: "operator_branch";
506
+ inherit: "inherit";
507
+ reuse_existing: "reuse_existing";
508
+ agent_default: "agent_default";
509
+ }>>>;
1344
510
  executionWorkspaceSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1345
- mode: z.ZodOptional<z.ZodEnum<["inherit", "shared_workspace", "isolated_workspace", "operator_branch", "reuse_existing", "agent_default"]>>;
1346
- sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<["auto", "serialize", "allow"]>>;
511
+ mode: z.ZodOptional<z.ZodEnum<{
512
+ shared_workspace: "shared_workspace";
513
+ isolated_workspace: "isolated_workspace";
514
+ operator_branch: "operator_branch";
515
+ inherit: "inherit";
516
+ reuse_existing: "reuse_existing";
517
+ agent_default: "agent_default";
518
+ }>>;
519
+ sharedWorkspaceConcurrency: z.ZodOptional<z.ZodEnum<{
520
+ auto: "auto";
521
+ allow: "allow";
522
+ serialize: "serialize";
523
+ }>>;
1347
524
  environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1348
525
  workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1349
- type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
526
+ type: z.ZodOptional<z.ZodEnum<{
527
+ project_primary: "project_primary";
528
+ git_worktree: "git_worktree";
529
+ adapter_managed: "adapter_managed";
530
+ cloud_sandbox: "cloud_sandbox";
531
+ }>>;
1350
532
  baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1351
533
  branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
534
+ existingBranch: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1352
535
  worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1353
536
  provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1354
537
  runtimeProvisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1355
538
  teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1356
- }, "strict", z.ZodTypeAny, {
1357
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1358
- baseRef?: string | null | undefined;
1359
- branchTemplate?: string | null | undefined;
1360
- worktreeParentDir?: string | null | undefined;
1361
- provisionCommand?: string | null | undefined;
1362
- runtimeProvisionCommand?: string | null | undefined;
1363
- teardownCommand?: string | null | undefined;
1364
- }, {
1365
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1366
- baseRef?: string | null | undefined;
1367
- branchTemplate?: string | null | undefined;
1368
- worktreeParentDir?: string | null | undefined;
1369
- provisionCommand?: string | null | undefined;
1370
- runtimeProvisionCommand?: string | null | undefined;
1371
- teardownCommand?: string | null | undefined;
1372
- }>>>;
539
+ }, z.core.$strict>>>;
1373
540
  workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1374
541
  networkEgress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1375
- allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1376
- allowCidrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1377
- }, "strict", z.ZodTypeAny, {
1378
- allowFqdns?: string[] | undefined;
1379
- allowCidrs?: string[] | undefined;
1380
- }, {
1381
- allowFqdns?: string[] | undefined;
1382
- allowCidrs?: string[] | undefined;
1383
- }>>>;
1384
- }, "strict", z.ZodTypeAny, {
1385
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1386
- environmentId?: string | null | undefined;
1387
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1388
- workspaceStrategy?: {
1389
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1390
- baseRef?: string | null | undefined;
1391
- branchTemplate?: string | null | undefined;
1392
- worktreeParentDir?: string | null | undefined;
1393
- provisionCommand?: string | null | undefined;
1394
- runtimeProvisionCommand?: string | null | undefined;
1395
- teardownCommand?: string | null | undefined;
1396
- } | null | undefined;
1397
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1398
- networkEgress?: {
1399
- allowFqdns?: string[] | undefined;
1400
- allowCidrs?: string[] | undefined;
1401
- } | null | undefined;
1402
- }, {
1403
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1404
- environmentId?: string | null | undefined;
1405
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1406
- workspaceStrategy?: {
1407
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1408
- baseRef?: string | null | undefined;
1409
- branchTemplate?: string | null | undefined;
1410
- worktreeParentDir?: string | null | undefined;
1411
- provisionCommand?: string | null | undefined;
1412
- runtimeProvisionCommand?: string | null | undefined;
1413
- teardownCommand?: string | null | undefined;
1414
- } | null | undefined;
1415
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1416
- networkEgress?: {
1417
- allowFqdns?: string[] | undefined;
1418
- allowCidrs?: string[] | undefined;
1419
- } | null | undefined;
1420
- }>>>;
1421
- }, "strip", z.ZodTypeAny, {
1422
- source: "manual" | "api";
1423
- projectId?: string | null | undefined;
1424
- payload?: Record<string, unknown> | null | undefined;
1425
- idempotencyKey?: string | null | undefined;
1426
- assigneeAgentId?: string | null | undefined;
1427
- variables?: Record<string, string | number | boolean> | null | undefined;
1428
- projectWorkspaceId?: string | null | undefined;
1429
- executionWorkspaceId?: string | null | undefined;
1430
- executionWorkspacePreference?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | null | undefined;
1431
- executionWorkspaceSettings?: {
1432
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1433
- environmentId?: string | null | undefined;
1434
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1435
- workspaceStrategy?: {
1436
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1437
- baseRef?: string | null | undefined;
1438
- branchTemplate?: string | null | undefined;
1439
- worktreeParentDir?: string | null | undefined;
1440
- provisionCommand?: string | null | undefined;
1441
- runtimeProvisionCommand?: string | null | undefined;
1442
- teardownCommand?: string | null | undefined;
1443
- } | null | undefined;
1444
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1445
- networkEgress?: {
1446
- allowFqdns?: string[] | undefined;
1447
- allowCidrs?: string[] | undefined;
1448
- } | null | undefined;
1449
- } | null | undefined;
1450
- triggerId?: string | null | undefined;
1451
- }, {
1452
- projectId?: string | null | undefined;
1453
- source?: "manual" | "api" | undefined;
1454
- payload?: Record<string, unknown> | null | undefined;
1455
- idempotencyKey?: string | null | undefined;
1456
- assigneeAgentId?: string | null | undefined;
1457
- variables?: Record<string, string | number | boolean> | null | undefined;
1458
- projectWorkspaceId?: string | null | undefined;
1459
- executionWorkspaceId?: string | null | undefined;
1460
- executionWorkspacePreference?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | null | undefined;
1461
- executionWorkspaceSettings?: {
1462
- mode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "inherit" | "reuse_existing" | "agent_default" | undefined;
1463
- environmentId?: string | null | undefined;
1464
- sharedWorkspaceConcurrency?: "auto" | "allow" | "serialize" | undefined;
1465
- workspaceStrategy?: {
1466
- type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
1467
- baseRef?: string | null | undefined;
1468
- branchTemplate?: string | null | undefined;
1469
- worktreeParentDir?: string | null | undefined;
1470
- provisionCommand?: string | null | undefined;
1471
- runtimeProvisionCommand?: string | null | undefined;
1472
- teardownCommand?: string | null | undefined;
1473
- } | null | undefined;
1474
- workspaceRuntime?: Record<string, unknown> | null | undefined;
1475
- networkEgress?: {
1476
- allowFqdns?: string[] | undefined;
1477
- allowCidrs?: string[] | undefined;
1478
- } | null | undefined;
1479
- } | null | undefined;
1480
- triggerId?: string | null | undefined;
1481
- }>;
542
+ allowFqdns: z.ZodOptional<z.ZodArray<z.ZodString>>;
543
+ allowCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
544
+ }, z.core.$strict>>>;
545
+ }, z.core.$strict>>>;
546
+ }, z.core.$strip>;
1482
547
  export type RunRoutine = z.infer<typeof runRoutineSchema>;
1483
- export declare const rotateRoutineTriggerSecretSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
548
+ export declare const rotateRoutineTriggerSecretSchema: z.ZodObject<{}, z.core.$strip>;
1484
549
  export type RotateRoutineTriggerSecret = z.infer<typeof rotateRoutineTriggerSecretSchema>;
1485
550
  //# sourceMappingURL=routine.d.ts.map