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