@agentdock/wire 0.0.81 → 0.0.91

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 (136) hide show
  1. package/dist/activityPreferences.js +1 -2
  2. package/dist/agentCapabilities.d.ts +2 -0
  3. package/dist/agentCapabilities.js +1 -199
  4. package/dist/agentCommonEnv.js +1 -20
  5. package/dist/agentInstallGuide.js +1 -81
  6. package/dist/bgTask.js +1 -128
  7. package/dist/checkpointSchemas.d.ts +142 -98
  8. package/dist/checkpointSchemas.js +1 -46
  9. package/dist/controlLevel.js +1 -11
  10. package/dist/edition.js +1 -13
  11. package/dist/envelope.d.ts +5668 -563
  12. package/dist/envelope.js +1 -77
  13. package/dist/errorMessage.js +1 -6
  14. package/dist/events.d.ts +2053 -324
  15. package/dist/events.js +1 -107
  16. package/dist/features.js +1 -123
  17. package/dist/feedback.d.ts +2 -2
  18. package/dist/feedback.js +1 -61
  19. package/dist/fileWhitelist.js +1 -189
  20. package/dist/inboundEvents.d.ts +531 -0
  21. package/dist/inboundEvents.js +1 -0
  22. package/dist/index.d.ts +11 -5
  23. package/dist/index.js +1 -73
  24. package/dist/interactionEvents.d.ts +153 -106
  25. package/dist/interactionEvents.js +1 -111
  26. package/dist/legacyProtocol.d.ts +512 -272
  27. package/dist/legacyProtocol.js +1 -30
  28. package/dist/license.js +1 -28
  29. package/dist/machine.d.ts +108 -62
  30. package/dist/machine.js +1 -66
  31. package/dist/messageMeta.d.ts +34 -28
  32. package/dist/messageMeta.js +1 -60
  33. package/dist/messages.d.ts +34900 -1862
  34. package/dist/messages.js +1 -35
  35. package/dist/notification.d.ts +48 -0
  36. package/dist/notification.js +1 -0
  37. package/dist/ops.d.ts +165 -122
  38. package/dist/ops.js +1 -74
  39. package/dist/pairing.d.ts +4 -4
  40. package/dist/pairing.js +1 -150
  41. package/dist/permissionSubject.js +1 -68
  42. package/dist/protocol.js +1 -7
  43. package/dist/rpc.d.ts +749 -189
  44. package/dist/rpc.js +1 -269
  45. package/dist/scheduledTasks.d.ts +619 -304
  46. package/dist/scheduledTasks.js +1 -188
  47. package/dist/semver.js +1 -60
  48. package/dist/sessionResult.d.ts +31 -17
  49. package/dist/sessionResult.js +1 -23
  50. package/dist/socketEvents.d.ts +7 -0
  51. package/dist/socketEvents.js +1 -55
  52. package/dist/sourceMetadata.d.ts +44 -0
  53. package/dist/sourceMetadata.js +1 -0
  54. package/dist/spawnError.d.ts +21 -17
  55. package/dist/spawnError.js +1 -31
  56. package/dist/stats.d.ts +73 -73
  57. package/dist/stats.js +1 -117
  58. package/dist/sync.d.ts +2165 -819
  59. package/dist/sync.js +1 -99
  60. package/dist/taskResult.js +1 -113
  61. package/dist/telemetry.d.ts +120 -64
  62. package/dist/telemetry.js +1 -115
  63. package/dist/utils.js +1 -2
  64. package/package.json +3 -2
  65. package/dist/activityPreferences.d.ts.map +0 -1
  66. package/dist/activityPreferences.js.map +0 -1
  67. package/dist/agentCapabilities.d.ts.map +0 -1
  68. package/dist/agentCapabilities.js.map +0 -1
  69. package/dist/agentCommonEnv.d.ts.map +0 -1
  70. package/dist/agentCommonEnv.js.map +0 -1
  71. package/dist/agentInstallGuide.d.ts.map +0 -1
  72. package/dist/agentInstallGuide.js.map +0 -1
  73. package/dist/bgTask.d.ts.map +0 -1
  74. package/dist/bgTask.js.map +0 -1
  75. package/dist/checkpointSchemas.d.ts.map +0 -1
  76. package/dist/checkpointSchemas.js.map +0 -1
  77. package/dist/controlLevel.d.ts.map +0 -1
  78. package/dist/controlLevel.js.map +0 -1
  79. package/dist/edition.d.ts.map +0 -1
  80. package/dist/edition.js.map +0 -1
  81. package/dist/envelope.d.ts.map +0 -1
  82. package/dist/envelope.js.map +0 -1
  83. package/dist/errorMessage.d.ts.map +0 -1
  84. package/dist/errorMessage.js.map +0 -1
  85. package/dist/events.d.ts.map +0 -1
  86. package/dist/events.js.map +0 -1
  87. package/dist/features.d.ts.map +0 -1
  88. package/dist/features.js.map +0 -1
  89. package/dist/feedback.d.ts.map +0 -1
  90. package/dist/feedback.js.map +0 -1
  91. package/dist/fileWhitelist.d.ts.map +0 -1
  92. package/dist/fileWhitelist.js.map +0 -1
  93. package/dist/index.d.ts.map +0 -1
  94. package/dist/index.js.map +0 -1
  95. package/dist/interactionEvents.d.ts.map +0 -1
  96. package/dist/interactionEvents.js.map +0 -1
  97. package/dist/legacyProtocol.d.ts.map +0 -1
  98. package/dist/legacyProtocol.js.map +0 -1
  99. package/dist/license.d.ts.map +0 -1
  100. package/dist/license.js.map +0 -1
  101. package/dist/machine.d.ts.map +0 -1
  102. package/dist/machine.js.map +0 -1
  103. package/dist/messageMeta.d.ts.map +0 -1
  104. package/dist/messageMeta.js.map +0 -1
  105. package/dist/messages.d.ts.map +0 -1
  106. package/dist/messages.js.map +0 -1
  107. package/dist/ops.d.ts.map +0 -1
  108. package/dist/ops.js.map +0 -1
  109. package/dist/pairing.d.ts.map +0 -1
  110. package/dist/pairing.js.map +0 -1
  111. package/dist/permissionSubject.d.ts.map +0 -1
  112. package/dist/permissionSubject.js.map +0 -1
  113. package/dist/protocol.d.ts.map +0 -1
  114. package/dist/protocol.js.map +0 -1
  115. package/dist/rpc.d.ts.map +0 -1
  116. package/dist/rpc.js.map +0 -1
  117. package/dist/scheduledTasks.d.ts.map +0 -1
  118. package/dist/scheduledTasks.js.map +0 -1
  119. package/dist/semver.d.ts.map +0 -1
  120. package/dist/semver.js.map +0 -1
  121. package/dist/sessionResult.d.ts.map +0 -1
  122. package/dist/sessionResult.js.map +0 -1
  123. package/dist/socketEvents.d.ts.map +0 -1
  124. package/dist/socketEvents.js.map +0 -1
  125. package/dist/spawnError.d.ts.map +0 -1
  126. package/dist/spawnError.js.map +0 -1
  127. package/dist/stats.d.ts.map +0 -1
  128. package/dist/stats.js.map +0 -1
  129. package/dist/sync.d.ts.map +0 -1
  130. package/dist/sync.js.map +0 -1
  131. package/dist/taskResult.d.ts.map +0 -1
  132. package/dist/taskResult.js.map +0 -1
  133. package/dist/telemetry.d.ts.map +0 -1
  134. package/dist/telemetry.js.map +0 -1
  135. package/dist/utils.d.ts.map +0 -1
  136. package/dist/utils.js.map +0 -1
@@ -2,13 +2,13 @@ import { z } from 'zod';
2
2
  export declare const RetryPolicySchema: z.ZodObject<{
3
3
  maxRetries: z.ZodDefault<z.ZodNumber>;
4
4
  retryDelayMs: z.ZodDefault<z.ZodNumber>;
5
- }, "strip", z.ZodTypeAny, {
6
- maxRetries: number;
7
- retryDelayMs: number;
8
- }, {
9
- maxRetries?: number | undefined;
10
- retryDelayMs?: number | undefined;
11
- }>;
5
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6
+ maxRetries: z.ZodDefault<z.ZodNumber>;
7
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
8
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9
+ maxRetries: z.ZodDefault<z.ZodNumber>;
10
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
11
+ }, z.ZodTypeAny, "passthrough">>;
12
12
  export type RetryPolicy = z.infer<typeof RetryPolicySchema>;
13
13
  export declare const MissedRunPolicySchema: z.ZodEnum<["skip", "run-once"]>;
14
14
  export type MissedRunPolicy = z.infer<typeof MissedRunPolicySchema>;
@@ -24,16 +24,16 @@ export declare const ScheduledSpawnParamsSchema: z.ZodObject<{
24
24
  retryPolicy: z.ZodOptional<z.ZodObject<{
25
25
  maxRetries: z.ZodDefault<z.ZodNumber>;
26
26
  retryDelayMs: z.ZodDefault<z.ZodNumber>;
27
- }, "strip", z.ZodTypeAny, {
28
- maxRetries: number;
29
- retryDelayMs: number;
30
- }, {
31
- maxRetries?: number | undefined;
32
- retryDelayMs?: number | undefined;
33
- }>>;
27
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
28
+ maxRetries: z.ZodDefault<z.ZodNumber>;
29
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
30
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
31
+ maxRetries: z.ZodDefault<z.ZodNumber>;
32
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
33
+ }, z.ZodTypeAny, "passthrough">>>;
34
34
  missedRunPolicy: z.ZodOptional<z.ZodEnum<["skip", "run-once"]>>;
35
35
  circuitBreakerThreshold: z.ZodOptional<z.ZodNumber>;
36
- }, "strip", z.ZodTypeAny, {
36
+ }, "strict", z.ZodTypeAny, {
37
37
  prompt: string;
38
38
  model?: string | undefined;
39
39
  agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
@@ -41,10 +41,10 @@ export declare const ScheduledSpawnParamsSchema: z.ZodObject<{
41
41
  cwd?: string | undefined;
42
42
  startupScripts?: string[] | undefined;
43
43
  maxExecutionMs?: number | undefined;
44
- retryPolicy?: {
45
- maxRetries: number;
46
- retryDelayMs: number;
47
- } | undefined;
44
+ retryPolicy?: z.objectOutputType<{
45
+ maxRetries: z.ZodDefault<z.ZodNumber>;
46
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
47
+ }, z.ZodTypeAny, "passthrough"> | undefined;
48
48
  missedRunPolicy?: "skip" | "run-once" | undefined;
49
49
  circuitBreakerThreshold?: number | undefined;
50
50
  }, {
@@ -55,10 +55,10 @@ export declare const ScheduledSpawnParamsSchema: z.ZodObject<{
55
55
  cwd?: string | undefined;
56
56
  startupScripts?: string[] | undefined;
57
57
  maxExecutionMs?: number | undefined;
58
- retryPolicy?: {
59
- maxRetries?: number | undefined;
60
- retryDelayMs?: number | undefined;
61
- } | undefined;
58
+ retryPolicy?: z.objectInputType<{
59
+ maxRetries: z.ZodDefault<z.ZodNumber>;
60
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
61
+ }, z.ZodTypeAny, "passthrough"> | undefined;
62
62
  missedRunPolicy?: "skip" | "run-once" | undefined;
63
63
  circuitBreakerThreshold?: number | undefined;
64
64
  }>;
@@ -98,13 +98,13 @@ export type TaskResult = z.infer<typeof TaskResultSchema>;
98
98
  export declare const TaskExecutionBarSchema: z.ZodObject<{
99
99
  durationMs: z.ZodNullable<z.ZodNumber>;
100
100
  status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
101
- }, "strip", z.ZodTypeAny, {
102
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
103
- durationMs: number | null;
104
- }, {
105
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
106
- durationMs: number | null;
107
- }>;
101
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
102
+ durationMs: z.ZodNullable<z.ZodNumber>;
103
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
104
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
105
+ durationMs: z.ZodNullable<z.ZodNumber>;
106
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
107
+ }, z.ZodTypeAny, "passthrough">>;
108
108
  export type TaskExecutionBar = z.infer<typeof TaskExecutionBarSchema>;
109
109
  export declare const TaskStatsSchema: z.ZodObject<{
110
110
  successRate: z.ZodNumber;
@@ -114,32 +114,44 @@ export declare const TaskStatsSchema: z.ZodObject<{
114
114
  executions: z.ZodArray<z.ZodObject<{
115
115
  durationMs: z.ZodNullable<z.ZodNumber>;
116
116
  status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
117
- }, "strip", z.ZodTypeAny, {
118
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
119
- durationMs: number | null;
120
- }, {
121
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
122
- durationMs: number | null;
123
- }>, "many">;
124
- }, "strip", z.ZodTypeAny, {
125
- successRate: number;
126
- totalExecutions: number;
127
- avgDurationMs: number | null;
128
- maxDurationMs: number | null;
129
- executions: {
130
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
131
- durationMs: number | null;
132
- }[];
133
- }, {
134
- successRate: number;
135
- totalExecutions: number;
136
- avgDurationMs: number | null;
137
- maxDurationMs: number | null;
138
- executions: {
139
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
140
- durationMs: number | null;
141
- }[];
142
- }>;
117
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
118
+ durationMs: z.ZodNullable<z.ZodNumber>;
119
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
120
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
121
+ durationMs: z.ZodNullable<z.ZodNumber>;
122
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
123
+ }, z.ZodTypeAny, "passthrough">>, "many">;
124
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
125
+ successRate: z.ZodNumber;
126
+ totalExecutions: z.ZodNumber;
127
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
128
+ maxDurationMs: z.ZodNullable<z.ZodNumber>;
129
+ executions: z.ZodArray<z.ZodObject<{
130
+ durationMs: z.ZodNullable<z.ZodNumber>;
131
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
132
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
133
+ durationMs: z.ZodNullable<z.ZodNumber>;
134
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
135
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
136
+ durationMs: z.ZodNullable<z.ZodNumber>;
137
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
138
+ }, z.ZodTypeAny, "passthrough">>, "many">;
139
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
140
+ successRate: z.ZodNumber;
141
+ totalExecutions: z.ZodNumber;
142
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
143
+ maxDurationMs: z.ZodNullable<z.ZodNumber>;
144
+ executions: z.ZodArray<z.ZodObject<{
145
+ durationMs: z.ZodNullable<z.ZodNumber>;
146
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
147
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
148
+ durationMs: z.ZodNullable<z.ZodNumber>;
149
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
150
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
151
+ durationMs: z.ZodNullable<z.ZodNumber>;
152
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
153
+ }, z.ZodTypeAny, "passthrough">>, "many">;
154
+ }, z.ZodTypeAny, "passthrough">>;
143
155
  export type TaskStats = z.infer<typeof TaskStatsSchema>;
144
156
  export declare const TaskCardStatsSchema: z.ZodObject<{
145
157
  totalExecutions: z.ZodNumber;
@@ -148,30 +160,42 @@ export declare const TaskCardStatsSchema: z.ZodObject<{
148
160
  executions: z.ZodArray<z.ZodObject<{
149
161
  durationMs: z.ZodNullable<z.ZodNumber>;
150
162
  status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
151
- }, "strip", z.ZodTypeAny, {
152
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
153
- durationMs: number | null;
154
- }, {
155
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
156
- durationMs: number | null;
157
- }>, "many">;
158
- }, "strip", z.ZodTypeAny, {
159
- successRate: number;
160
- totalExecutions: number;
161
- avgDurationMs: number | null;
162
- executions: {
163
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
164
- durationMs: number | null;
165
- }[];
166
- }, {
167
- successRate: number;
168
- totalExecutions: number;
169
- avgDurationMs: number | null;
170
- executions: {
171
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
172
- durationMs: number | null;
173
- }[];
174
- }>;
163
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
164
+ durationMs: z.ZodNullable<z.ZodNumber>;
165
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
166
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
167
+ durationMs: z.ZodNullable<z.ZodNumber>;
168
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
169
+ }, z.ZodTypeAny, "passthrough">>, "many">;
170
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
171
+ totalExecutions: z.ZodNumber;
172
+ successRate: z.ZodNumber;
173
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
174
+ executions: z.ZodArray<z.ZodObject<{
175
+ durationMs: z.ZodNullable<z.ZodNumber>;
176
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
177
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
178
+ durationMs: z.ZodNullable<z.ZodNumber>;
179
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
180
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
181
+ durationMs: z.ZodNullable<z.ZodNumber>;
182
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
183
+ }, z.ZodTypeAny, "passthrough">>, "many">;
184
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
185
+ totalExecutions: z.ZodNumber;
186
+ successRate: z.ZodNumber;
187
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
188
+ executions: z.ZodArray<z.ZodObject<{
189
+ durationMs: z.ZodNullable<z.ZodNumber>;
190
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
191
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
192
+ durationMs: z.ZodNullable<z.ZodNumber>;
193
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
194
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
195
+ durationMs: z.ZodNullable<z.ZodNumber>;
196
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
197
+ }, z.ZodTypeAny, "passthrough">>, "many">;
198
+ }, z.ZodTypeAny, "passthrough">>;
175
199
  export type TaskCardStats = z.infer<typeof TaskCardStatsSchema>;
176
200
  export declare const CRON_RE: RegExp;
177
201
  export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
@@ -189,16 +213,16 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
189
213
  retryPolicy: z.ZodOptional<z.ZodObject<{
190
214
  maxRetries: z.ZodDefault<z.ZodNumber>;
191
215
  retryDelayMs: z.ZodDefault<z.ZodNumber>;
192
- }, "strip", z.ZodTypeAny, {
193
- maxRetries: number;
194
- retryDelayMs: number;
195
- }, {
196
- maxRetries?: number | undefined;
197
- retryDelayMs?: number | undefined;
198
- }>>;
216
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
217
+ maxRetries: z.ZodDefault<z.ZodNumber>;
218
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
219
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
220
+ maxRetries: z.ZodDefault<z.ZodNumber>;
221
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
222
+ }, z.ZodTypeAny, "passthrough">>>;
199
223
  missedRunPolicy: z.ZodOptional<z.ZodEnum<["skip", "run-once"]>>;
200
224
  circuitBreakerThreshold: z.ZodOptional<z.ZodNumber>;
201
- }, "strip", z.ZodTypeAny, {
225
+ }, "strict", z.ZodTypeAny, {
202
226
  prompt: string;
203
227
  model?: string | undefined;
204
228
  agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
@@ -206,10 +230,10 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
206
230
  cwd?: string | undefined;
207
231
  startupScripts?: string[] | undefined;
208
232
  maxExecutionMs?: number | undefined;
209
- retryPolicy?: {
210
- maxRetries: number;
211
- retryDelayMs: number;
212
- } | undefined;
233
+ retryPolicy?: z.objectOutputType<{
234
+ maxRetries: z.ZodDefault<z.ZodNumber>;
235
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
236
+ }, z.ZodTypeAny, "passthrough"> | undefined;
213
237
  missedRunPolicy?: "skip" | "run-once" | undefined;
214
238
  circuitBreakerThreshold?: number | undefined;
215
239
  }, {
@@ -220,10 +244,10 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
220
244
  cwd?: string | undefined;
221
245
  startupScripts?: string[] | undefined;
222
246
  maxExecutionMs?: number | undefined;
223
- retryPolicy?: {
224
- maxRetries?: number | undefined;
225
- retryDelayMs?: number | undefined;
226
- } | undefined;
247
+ retryPolicy?: z.objectInputType<{
248
+ maxRetries: z.ZodDefault<z.ZodNumber>;
249
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
250
+ }, z.ZodTypeAny, "passthrough"> | undefined;
227
251
  missedRunPolicy?: "skip" | "run-once" | undefined;
228
252
  circuitBreakerThreshold?: number | undefined;
229
253
  }>;
@@ -232,7 +256,7 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
232
256
  schedule: z.ZodOptional<z.ZodString>;
233
257
  machineId: z.ZodOptional<z.ZodString>;
234
258
  totalRuns: z.ZodOptional<z.ZodNumber>;
235
- }, "strip", z.ZodTypeAny, {
259
+ }, "strict", z.ZodTypeAny, {
236
260
  name: string;
237
261
  triggerType: "token" | "cron" | "continuous";
238
262
  enabled: boolean;
@@ -244,10 +268,10 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
244
268
  cwd?: string | undefined;
245
269
  startupScripts?: string[] | undefined;
246
270
  maxExecutionMs?: number | undefined;
247
- retryPolicy?: {
248
- maxRetries: number;
249
- retryDelayMs: number;
250
- } | undefined;
271
+ retryPolicy?: z.objectOutputType<{
272
+ maxRetries: z.ZodDefault<z.ZodNumber>;
273
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
274
+ }, z.ZodTypeAny, "passthrough"> | undefined;
251
275
  missedRunPolicy?: "skip" | "run-once" | undefined;
252
276
  circuitBreakerThreshold?: number | undefined;
253
277
  };
@@ -265,10 +289,10 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
265
289
  cwd?: string | undefined;
266
290
  startupScripts?: string[] | undefined;
267
291
  maxExecutionMs?: number | undefined;
268
- retryPolicy?: {
269
- maxRetries?: number | undefined;
270
- retryDelayMs?: number | undefined;
271
- } | undefined;
292
+ retryPolicy?: z.objectInputType<{
293
+ maxRetries: z.ZodDefault<z.ZodNumber>;
294
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
295
+ }, z.ZodTypeAny, "passthrough"> | undefined;
272
296
  missedRunPolicy?: "skip" | "run-once" | undefined;
273
297
  circuitBreakerThreshold?: number | undefined;
274
298
  };
@@ -290,10 +314,10 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
290
314
  cwd?: string | undefined;
291
315
  startupScripts?: string[] | undefined;
292
316
  maxExecutionMs?: number | undefined;
293
- retryPolicy?: {
294
- maxRetries: number;
295
- retryDelayMs: number;
296
- } | undefined;
317
+ retryPolicy?: z.objectOutputType<{
318
+ maxRetries: z.ZodDefault<z.ZodNumber>;
319
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
320
+ }, z.ZodTypeAny, "passthrough"> | undefined;
297
321
  missedRunPolicy?: "skip" | "run-once" | undefined;
298
322
  circuitBreakerThreshold?: number | undefined;
299
323
  };
@@ -311,10 +335,10 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
311
335
  cwd?: string | undefined;
312
336
  startupScripts?: string[] | undefined;
313
337
  maxExecutionMs?: number | undefined;
314
- retryPolicy?: {
315
- maxRetries?: number | undefined;
316
- retryDelayMs?: number | undefined;
317
- } | undefined;
338
+ retryPolicy?: z.objectInputType<{
339
+ maxRetries: z.ZodDefault<z.ZodNumber>;
340
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
341
+ }, z.ZodTypeAny, "passthrough"> | undefined;
318
342
  missedRunPolicy?: "skip" | "run-once" | undefined;
319
343
  circuitBreakerThreshold?: number | undefined;
320
344
  };
@@ -336,10 +360,10 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
336
360
  cwd?: string | undefined;
337
361
  startupScripts?: string[] | undefined;
338
362
  maxExecutionMs?: number | undefined;
339
- retryPolicy?: {
340
- maxRetries: number;
341
- retryDelayMs: number;
342
- } | undefined;
363
+ retryPolicy?: z.objectOutputType<{
364
+ maxRetries: z.ZodDefault<z.ZodNumber>;
365
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
366
+ }, z.ZodTypeAny, "passthrough"> | undefined;
343
367
  missedRunPolicy?: "skip" | "run-once" | undefined;
344
368
  circuitBreakerThreshold?: number | undefined;
345
369
  };
@@ -357,10 +381,10 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
357
381
  cwd?: string | undefined;
358
382
  startupScripts?: string[] | undefined;
359
383
  maxExecutionMs?: number | undefined;
360
- retryPolicy?: {
361
- maxRetries?: number | undefined;
362
- retryDelayMs?: number | undefined;
363
- } | undefined;
384
+ retryPolicy?: z.objectInputType<{
385
+ maxRetries: z.ZodDefault<z.ZodNumber>;
386
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
387
+ }, z.ZodTypeAny, "passthrough"> | undefined;
364
388
  missedRunPolicy?: "skip" | "run-once" | undefined;
365
389
  circuitBreakerThreshold?: number | undefined;
366
390
  };
@@ -372,8 +396,9 @@ export declare const CreateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodO
372
396
  totalRuns?: number | undefined;
373
397
  }>;
374
398
  export type CreateScheduledTask = z.infer<typeof CreateScheduledTaskSchema>;
375
- export declare const UpdateScheduledTaskSchema: z.ZodObject<{
399
+ export declare const UpdateScheduledTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
376
400
  name: z.ZodOptional<z.ZodString>;
401
+ triggerType: z.ZodOptional<z.ZodEnum<["cron", "token", "continuous"]>>;
377
402
  schedule: z.ZodOptional<z.ZodString>;
378
403
  enabled: z.ZodOptional<z.ZodBoolean>;
379
404
  machineId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -389,16 +414,16 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
389
414
  retryPolicy: z.ZodOptional<z.ZodObject<{
390
415
  maxRetries: z.ZodDefault<z.ZodNumber>;
391
416
  retryDelayMs: z.ZodDefault<z.ZodNumber>;
392
- }, "strip", z.ZodTypeAny, {
393
- maxRetries: number;
394
- retryDelayMs: number;
395
- }, {
396
- maxRetries?: number | undefined;
397
- retryDelayMs?: number | undefined;
398
- }>>;
417
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
418
+ maxRetries: z.ZodDefault<z.ZodNumber>;
419
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
420
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
421
+ maxRetries: z.ZodDefault<z.ZodNumber>;
422
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
423
+ }, z.ZodTypeAny, "passthrough">>>;
399
424
  missedRunPolicy: z.ZodOptional<z.ZodEnum<["skip", "run-once"]>>;
400
425
  circuitBreakerThreshold: z.ZodOptional<z.ZodNumber>;
401
- }, "strip", z.ZodTypeAny, {
426
+ }, "strict", z.ZodTypeAny, {
402
427
  prompt: string;
403
428
  model?: string | undefined;
404
429
  agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
@@ -406,10 +431,10 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
406
431
  cwd?: string | undefined;
407
432
  startupScripts?: string[] | undefined;
408
433
  maxExecutionMs?: number | undefined;
409
- retryPolicy?: {
410
- maxRetries: number;
411
- retryDelayMs: number;
412
- } | undefined;
434
+ retryPolicy?: z.objectOutputType<{
435
+ maxRetries: z.ZodDefault<z.ZodNumber>;
436
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
437
+ }, z.ZodTypeAny, "passthrough"> | undefined;
413
438
  missedRunPolicy?: "skip" | "run-once" | undefined;
414
439
  circuitBreakerThreshold?: number | undefined;
415
440
  }, {
@@ -420,18 +445,111 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
420
445
  cwd?: string | undefined;
421
446
  startupScripts?: string[] | undefined;
422
447
  maxExecutionMs?: number | undefined;
423
- retryPolicy?: {
424
- maxRetries?: number | undefined;
425
- retryDelayMs?: number | undefined;
426
- } | undefined;
448
+ retryPolicy?: z.objectInputType<{
449
+ maxRetries: z.ZodDefault<z.ZodNumber>;
450
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
451
+ }, z.ZodTypeAny, "passthrough"> | undefined;
427
452
  missedRunPolicy?: "skip" | "run-once" | undefined;
428
453
  circuitBreakerThreshold?: number | undefined;
429
454
  }>>;
430
455
  maxConcurrent: z.ZodOptional<z.ZodNumber>;
431
456
  totalRuns: z.ZodOptional<z.ZodNumber>;
432
- }, "strip", z.ZodTypeAny, {
457
+ }, "strict", z.ZodTypeAny, {
458
+ name?: string | undefined;
459
+ machineId?: string | null | undefined;
460
+ triggerType?: "token" | "cron" | "continuous" | undefined;
461
+ enabled?: boolean | undefined;
462
+ spawnParams?: {
463
+ prompt: string;
464
+ model?: string | undefined;
465
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
466
+ agent?: string | undefined;
467
+ cwd?: string | undefined;
468
+ startupScripts?: string[] | undefined;
469
+ maxExecutionMs?: number | undefined;
470
+ retryPolicy?: z.objectOutputType<{
471
+ maxRetries: z.ZodDefault<z.ZodNumber>;
472
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
473
+ }, z.ZodTypeAny, "passthrough"> | undefined;
474
+ missedRunPolicy?: "skip" | "run-once" | undefined;
475
+ circuitBreakerThreshold?: number | undefined;
476
+ } | undefined;
477
+ maxConcurrent?: number | undefined;
478
+ schedule?: string | undefined;
479
+ totalRuns?: number | undefined;
480
+ }, {
481
+ name?: string | undefined;
482
+ machineId?: string | null | undefined;
483
+ triggerType?: "token" | "cron" | "continuous" | undefined;
484
+ enabled?: boolean | undefined;
485
+ spawnParams?: {
486
+ prompt: string;
487
+ model?: string | undefined;
488
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
489
+ agent?: string | undefined;
490
+ cwd?: string | undefined;
491
+ startupScripts?: string[] | undefined;
492
+ maxExecutionMs?: number | undefined;
493
+ retryPolicy?: z.objectInputType<{
494
+ maxRetries: z.ZodDefault<z.ZodNumber>;
495
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
496
+ }, z.ZodTypeAny, "passthrough"> | undefined;
497
+ missedRunPolicy?: "skip" | "run-once" | undefined;
498
+ circuitBreakerThreshold?: number | undefined;
499
+ } | undefined;
500
+ maxConcurrent?: number | undefined;
501
+ schedule?: string | undefined;
502
+ totalRuns?: number | undefined;
503
+ }>, {
504
+ name?: string | undefined;
505
+ machineId?: string | null | undefined;
506
+ triggerType?: "token" | "cron" | "continuous" | undefined;
507
+ enabled?: boolean | undefined;
508
+ spawnParams?: {
509
+ prompt: string;
510
+ model?: string | undefined;
511
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
512
+ agent?: string | undefined;
513
+ cwd?: string | undefined;
514
+ startupScripts?: string[] | undefined;
515
+ maxExecutionMs?: number | undefined;
516
+ retryPolicy?: z.objectOutputType<{
517
+ maxRetries: z.ZodDefault<z.ZodNumber>;
518
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
519
+ }, z.ZodTypeAny, "passthrough"> | undefined;
520
+ missedRunPolicy?: "skip" | "run-once" | undefined;
521
+ circuitBreakerThreshold?: number | undefined;
522
+ } | undefined;
523
+ maxConcurrent?: number | undefined;
524
+ schedule?: string | undefined;
525
+ totalRuns?: number | undefined;
526
+ }, {
527
+ name?: string | undefined;
528
+ machineId?: string | null | undefined;
529
+ triggerType?: "token" | "cron" | "continuous" | undefined;
530
+ enabled?: boolean | undefined;
531
+ spawnParams?: {
532
+ prompt: string;
533
+ model?: string | undefined;
534
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
535
+ agent?: string | undefined;
536
+ cwd?: string | undefined;
537
+ startupScripts?: string[] | undefined;
538
+ maxExecutionMs?: number | undefined;
539
+ retryPolicy?: z.objectInputType<{
540
+ maxRetries: z.ZodDefault<z.ZodNumber>;
541
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
542
+ }, z.ZodTypeAny, "passthrough"> | undefined;
543
+ missedRunPolicy?: "skip" | "run-once" | undefined;
544
+ circuitBreakerThreshold?: number | undefined;
545
+ } | undefined;
546
+ maxConcurrent?: number | undefined;
547
+ schedule?: string | undefined;
548
+ totalRuns?: number | undefined;
549
+ }>, {
433
550
  name?: string | undefined;
434
551
  machineId?: string | null | undefined;
552
+ triggerType?: "token" | "cron" | "continuous" | undefined;
435
553
  enabled?: boolean | undefined;
436
554
  spawnParams?: {
437
555
  prompt: string;
@@ -441,10 +559,10 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
441
559
  cwd?: string | undefined;
442
560
  startupScripts?: string[] | undefined;
443
561
  maxExecutionMs?: number | undefined;
444
- retryPolicy?: {
445
- maxRetries: number;
446
- retryDelayMs: number;
447
- } | undefined;
562
+ retryPolicy?: z.objectOutputType<{
563
+ maxRetries: z.ZodDefault<z.ZodNumber>;
564
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
565
+ }, z.ZodTypeAny, "passthrough"> | undefined;
448
566
  missedRunPolicy?: "skip" | "run-once" | undefined;
449
567
  circuitBreakerThreshold?: number | undefined;
450
568
  } | undefined;
@@ -454,6 +572,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
454
572
  }, {
455
573
  name?: string | undefined;
456
574
  machineId?: string | null | undefined;
575
+ triggerType?: "token" | "cron" | "continuous" | undefined;
457
576
  enabled?: boolean | undefined;
458
577
  spawnParams?: {
459
578
  prompt: string;
@@ -463,10 +582,10 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
463
582
  cwd?: string | undefined;
464
583
  startupScripts?: string[] | undefined;
465
584
  maxExecutionMs?: number | undefined;
466
- retryPolicy?: {
467
- maxRetries?: number | undefined;
468
- retryDelayMs?: number | undefined;
469
- } | undefined;
585
+ retryPolicy?: z.objectInputType<{
586
+ maxRetries: z.ZodDefault<z.ZodNumber>;
587
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
588
+ }, z.ZodTypeAny, "passthrough"> | undefined;
470
589
  missedRunPolicy?: "skip" | "run-once" | undefined;
471
590
  circuitBreakerThreshold?: number | undefined;
472
591
  } | undefined;
@@ -552,109 +671,269 @@ export declare const ScheduledTaskSummarySchema: z.ZodObject<{
552
671
  executions: z.ZodArray<z.ZodObject<{
553
672
  durationMs: z.ZodNullable<z.ZodNumber>;
554
673
  status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
555
- }, "strip", z.ZodTypeAny, {
556
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
557
- durationMs: number | null;
558
- }, {
559
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
560
- durationMs: number | null;
561
- }>, "many">;
562
- }, "strip", z.ZodTypeAny, {
563
- successRate: number;
564
- totalExecutions: number;
565
- avgDurationMs: number | null;
566
- executions: {
567
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
568
- durationMs: number | null;
569
- }[];
570
- }, {
571
- successRate: number;
572
- totalExecutions: number;
573
- avgDurationMs: number | null;
574
- executions: {
575
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
576
- durationMs: number | null;
577
- }[];
578
- }>>;
579
- }, "strip", z.ZodTypeAny, {
580
- name: string;
581
- id: string;
582
- createdAt: string;
583
- updatedAt: string;
584
- machineId: string | null;
585
- stats: {
586
- successRate: number;
587
- totalExecutions: number;
588
- avgDurationMs: number | null;
589
- executions: {
590
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
591
- durationMs: number | null;
592
- }[];
593
- } | null;
594
- triggerType: "token" | "cron" | "continuous";
595
- enabled: boolean;
596
- schedule: string | null;
597
- totalRuns: number | null;
598
- triggerToken: string | null;
599
- completedRuns: number | null;
600
- nextRunAt: string | null;
601
- lastRunAt: string | null;
602
- lastExecution: {
603
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
604
- summary: string | null;
605
- resultData: {
606
- status: "failed" | "done";
607
- reason?: string | undefined;
608
- summary?: string | undefined;
609
- headline?: string | undefined;
610
- outcome?: string | undefined;
611
- suggestion?: string | undefined;
612
- unstructured?: boolean | undefined;
613
- } | null;
614
- } | null;
615
- consecutiveFailures: number;
616
- disabledReason: string | null;
617
- maxConcurrent?: number | undefined;
618
- }, {
619
- name: string;
620
- id: string;
621
- createdAt: string;
622
- updatedAt: string;
623
- machineId: string | null;
624
- stats: {
625
- successRate: number;
626
- totalExecutions: number;
627
- avgDurationMs: number | null;
628
- executions: {
629
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
630
- durationMs: number | null;
631
- }[];
632
- } | null;
633
- triggerType: "token" | "cron" | "continuous";
634
- enabled: boolean;
635
- schedule: string | null;
636
- totalRuns: number | null;
637
- triggerToken: string | null;
638
- completedRuns: number | null;
639
- nextRunAt: string | null;
640
- lastRunAt: string | null;
641
- lastExecution: {
642
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
643
- summary: string | null;
644
- resultData: {
645
- status: "failed" | "done";
646
- reason?: string | undefined;
647
- summary?: string | undefined;
648
- headline?: string | undefined;
674
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
675
+ durationMs: z.ZodNullable<z.ZodNumber>;
676
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
677
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
678
+ durationMs: z.ZodNullable<z.ZodNumber>;
679
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
680
+ }, z.ZodTypeAny, "passthrough">>, "many">;
681
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
682
+ totalExecutions: z.ZodNumber;
683
+ successRate: z.ZodNumber;
684
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
685
+ executions: z.ZodArray<z.ZodObject<{
686
+ durationMs: z.ZodNullable<z.ZodNumber>;
687
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
688
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
689
+ durationMs: z.ZodNullable<z.ZodNumber>;
690
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
691
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
692
+ durationMs: z.ZodNullable<z.ZodNumber>;
693
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
694
+ }, z.ZodTypeAny, "passthrough">>, "many">;
695
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
696
+ totalExecutions: z.ZodNumber;
697
+ successRate: z.ZodNumber;
698
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
699
+ executions: z.ZodArray<z.ZodObject<{
700
+ durationMs: z.ZodNullable<z.ZodNumber>;
701
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
702
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
703
+ durationMs: z.ZodNullable<z.ZodNumber>;
704
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
705
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
706
+ durationMs: z.ZodNullable<z.ZodNumber>;
707
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
708
+ }, z.ZodTypeAny, "passthrough">>, "many">;
709
+ }, z.ZodTypeAny, "passthrough">>>;
710
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
711
+ id: z.ZodString;
712
+ name: z.ZodString;
713
+ schedule: z.ZodNullable<z.ZodString>;
714
+ triggerType: z.ZodEnum<["cron", "token", "continuous"]>;
715
+ enabled: z.ZodBoolean;
716
+ machineId: z.ZodNullable<z.ZodString>;
717
+ triggerToken: z.ZodNullable<z.ZodString>;
718
+ maxConcurrent: z.ZodOptional<z.ZodNumber>;
719
+ totalRuns: z.ZodNullable<z.ZodNumber>;
720
+ completedRuns: z.ZodNullable<z.ZodNumber>;
721
+ nextRunAt: z.ZodNullable<z.ZodString>;
722
+ lastRunAt: z.ZodNullable<z.ZodString>;
723
+ lastExecution: z.ZodNullable<z.ZodObject<{
724
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
725
+ summary: z.ZodNullable<z.ZodString>;
726
+ resultData: z.ZodNullable<z.ZodObject<{
727
+ status: z.ZodEnum<["done", "failed"]>;
728
+ headline: z.ZodOptional<z.ZodString>;
729
+ summary: z.ZodOptional<z.ZodString>;
730
+ outcome: z.ZodOptional<z.ZodString>;
731
+ reason: z.ZodOptional<z.ZodString>;
732
+ suggestion: z.ZodOptional<z.ZodString>;
733
+ unstructured: z.ZodOptional<z.ZodBoolean>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ status: "failed" | "done";
736
+ reason?: string | undefined;
737
+ summary?: string | undefined;
738
+ headline?: string | undefined;
739
+ outcome?: string | undefined;
740
+ suggestion?: string | undefined;
741
+ unstructured?: boolean | undefined;
742
+ }, {
743
+ status: "failed" | "done";
744
+ reason?: string | undefined;
745
+ summary?: string | undefined;
746
+ headline?: string | undefined;
747
+ outcome?: string | undefined;
748
+ suggestion?: string | undefined;
749
+ unstructured?: boolean | undefined;
750
+ }>>;
751
+ }, "strip", z.ZodTypeAny, {
752
+ status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
753
+ summary: string | null;
754
+ resultData: {
755
+ status: "failed" | "done";
756
+ reason?: string | undefined;
757
+ summary?: string | undefined;
758
+ headline?: string | undefined;
649
759
  outcome?: string | undefined;
650
760
  suggestion?: string | undefined;
651
761
  unstructured?: boolean | undefined;
652
762
  } | null;
653
- } | null;
654
- consecutiveFailures: number;
655
- disabledReason: string | null;
656
- maxConcurrent?: number | undefined;
657
- }>;
763
+ }, {
764
+ status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
765
+ summary: string | null;
766
+ resultData: {
767
+ status: "failed" | "done";
768
+ reason?: string | undefined;
769
+ summary?: string | undefined;
770
+ headline?: string | undefined;
771
+ outcome?: string | undefined;
772
+ suggestion?: string | undefined;
773
+ unstructured?: boolean | undefined;
774
+ } | null;
775
+ }>>;
776
+ createdAt: z.ZodString;
777
+ updatedAt: z.ZodString;
778
+ consecutiveFailures: z.ZodNumber;
779
+ disabledReason: z.ZodNullable<z.ZodString>;
780
+ stats: z.ZodNullable<z.ZodObject<{
781
+ totalExecutions: z.ZodNumber;
782
+ successRate: z.ZodNumber;
783
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
784
+ executions: z.ZodArray<z.ZodObject<{
785
+ durationMs: z.ZodNullable<z.ZodNumber>;
786
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
787
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
788
+ durationMs: z.ZodNullable<z.ZodNumber>;
789
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
790
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
791
+ durationMs: z.ZodNullable<z.ZodNumber>;
792
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
793
+ }, z.ZodTypeAny, "passthrough">>, "many">;
794
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
795
+ totalExecutions: z.ZodNumber;
796
+ successRate: z.ZodNumber;
797
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
798
+ executions: z.ZodArray<z.ZodObject<{
799
+ durationMs: z.ZodNullable<z.ZodNumber>;
800
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
801
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
802
+ durationMs: z.ZodNullable<z.ZodNumber>;
803
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
804
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
805
+ durationMs: z.ZodNullable<z.ZodNumber>;
806
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
807
+ }, z.ZodTypeAny, "passthrough">>, "many">;
808
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
809
+ totalExecutions: z.ZodNumber;
810
+ successRate: z.ZodNumber;
811
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
812
+ executions: z.ZodArray<z.ZodObject<{
813
+ durationMs: z.ZodNullable<z.ZodNumber>;
814
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
815
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
816
+ durationMs: z.ZodNullable<z.ZodNumber>;
817
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
818
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
819
+ durationMs: z.ZodNullable<z.ZodNumber>;
820
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
821
+ }, z.ZodTypeAny, "passthrough">>, "many">;
822
+ }, z.ZodTypeAny, "passthrough">>>;
823
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
824
+ id: z.ZodString;
825
+ name: z.ZodString;
826
+ schedule: z.ZodNullable<z.ZodString>;
827
+ triggerType: z.ZodEnum<["cron", "token", "continuous"]>;
828
+ enabled: z.ZodBoolean;
829
+ machineId: z.ZodNullable<z.ZodString>;
830
+ triggerToken: z.ZodNullable<z.ZodString>;
831
+ maxConcurrent: z.ZodOptional<z.ZodNumber>;
832
+ totalRuns: z.ZodNullable<z.ZodNumber>;
833
+ completedRuns: z.ZodNullable<z.ZodNumber>;
834
+ nextRunAt: z.ZodNullable<z.ZodString>;
835
+ lastRunAt: z.ZodNullable<z.ZodString>;
836
+ lastExecution: z.ZodNullable<z.ZodObject<{
837
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
838
+ summary: z.ZodNullable<z.ZodString>;
839
+ resultData: z.ZodNullable<z.ZodObject<{
840
+ status: z.ZodEnum<["done", "failed"]>;
841
+ headline: z.ZodOptional<z.ZodString>;
842
+ summary: z.ZodOptional<z.ZodString>;
843
+ outcome: z.ZodOptional<z.ZodString>;
844
+ reason: z.ZodOptional<z.ZodString>;
845
+ suggestion: z.ZodOptional<z.ZodString>;
846
+ unstructured: z.ZodOptional<z.ZodBoolean>;
847
+ }, "strip", z.ZodTypeAny, {
848
+ status: "failed" | "done";
849
+ reason?: string | undefined;
850
+ summary?: string | undefined;
851
+ headline?: string | undefined;
852
+ outcome?: string | undefined;
853
+ suggestion?: string | undefined;
854
+ unstructured?: boolean | undefined;
855
+ }, {
856
+ status: "failed" | "done";
857
+ reason?: string | undefined;
858
+ summary?: string | undefined;
859
+ headline?: string | undefined;
860
+ outcome?: string | undefined;
861
+ suggestion?: string | undefined;
862
+ unstructured?: boolean | undefined;
863
+ }>>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
866
+ summary: string | null;
867
+ resultData: {
868
+ status: "failed" | "done";
869
+ reason?: string | undefined;
870
+ summary?: string | undefined;
871
+ headline?: string | undefined;
872
+ outcome?: string | undefined;
873
+ suggestion?: string | undefined;
874
+ unstructured?: boolean | undefined;
875
+ } | null;
876
+ }, {
877
+ status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
878
+ summary: string | null;
879
+ resultData: {
880
+ status: "failed" | "done";
881
+ reason?: string | undefined;
882
+ summary?: string | undefined;
883
+ headline?: string | undefined;
884
+ outcome?: string | undefined;
885
+ suggestion?: string | undefined;
886
+ unstructured?: boolean | undefined;
887
+ } | null;
888
+ }>>;
889
+ createdAt: z.ZodString;
890
+ updatedAt: z.ZodString;
891
+ consecutiveFailures: z.ZodNumber;
892
+ disabledReason: z.ZodNullable<z.ZodString>;
893
+ stats: z.ZodNullable<z.ZodObject<{
894
+ totalExecutions: z.ZodNumber;
895
+ successRate: z.ZodNumber;
896
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
897
+ executions: z.ZodArray<z.ZodObject<{
898
+ durationMs: z.ZodNullable<z.ZodNumber>;
899
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
900
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
901
+ durationMs: z.ZodNullable<z.ZodNumber>;
902
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
903
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
904
+ durationMs: z.ZodNullable<z.ZodNumber>;
905
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
906
+ }, z.ZodTypeAny, "passthrough">>, "many">;
907
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
908
+ totalExecutions: z.ZodNumber;
909
+ successRate: z.ZodNumber;
910
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
911
+ executions: z.ZodArray<z.ZodObject<{
912
+ durationMs: z.ZodNullable<z.ZodNumber>;
913
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
914
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
915
+ durationMs: z.ZodNullable<z.ZodNumber>;
916
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
917
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
918
+ durationMs: z.ZodNullable<z.ZodNumber>;
919
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
920
+ }, z.ZodTypeAny, "passthrough">>, "many">;
921
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
922
+ totalExecutions: z.ZodNumber;
923
+ successRate: z.ZodNumber;
924
+ avgDurationMs: z.ZodNullable<z.ZodNumber>;
925
+ executions: z.ZodArray<z.ZodObject<{
926
+ durationMs: z.ZodNullable<z.ZodNumber>;
927
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
928
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
929
+ durationMs: z.ZodNullable<z.ZodNumber>;
930
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
931
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
932
+ durationMs: z.ZodNullable<z.ZodNumber>;
933
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
934
+ }, z.ZodTypeAny, "passthrough">>, "many">;
935
+ }, z.ZodTypeAny, "passthrough">>>;
936
+ }, z.ZodTypeAny, "passthrough">>;
658
937
  export type ScheduledTaskSummary = z.infer<typeof ScheduledTaskSummarySchema>;
659
938
  export declare const TaskExecutionSchema: z.ZodObject<{
660
939
  id: z.ZodString;
@@ -699,16 +978,32 @@ export declare const TaskExecutionSchema: z.ZodObject<{
699
978
  unstructured?: boolean | undefined;
700
979
  }>>;
701
980
  createdAt: z.ZodString;
702
- }, "strip", z.ZodTypeAny, {
703
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
704
- sessionId: string | null;
705
- startedAt: string | null;
706
- error: string | null;
707
- taskId: string;
708
- id: string;
709
- createdAt: string;
710
- summary: string | null;
711
- resultData: {
981
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
982
+ id: z.ZodString;
983
+ taskId: z.ZodString;
984
+ sessionId: z.ZodNullable<z.ZodString>;
985
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
986
+ trigger: z.ZodEnum<["scheduled", "manual", "token", "chain"]>;
987
+ scheduledAt: z.ZodString;
988
+ startedAt: z.ZodNullable<z.ZodString>;
989
+ completedAt: z.ZodNullable<z.ZodString>;
990
+ error: z.ZodNullable<z.ZodString>;
991
+ retryCount: z.ZodNumber;
992
+ reworkCount: z.ZodNumber;
993
+ /** Takeover state (自动→人工介入): "none" | "pending" | "done". */
994
+ takeoverState: z.ZodOptional<z.ZodString>;
995
+ /** Managed session id produced by takeover (set when takeoverState='done'). */
996
+ takeoverSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
997
+ summary: z.ZodNullable<z.ZodString>;
998
+ resultData: z.ZodNullable<z.ZodObject<{
999
+ status: z.ZodEnum<["done", "failed"]>;
1000
+ headline: z.ZodOptional<z.ZodString>;
1001
+ summary: z.ZodOptional<z.ZodString>;
1002
+ outcome: z.ZodOptional<z.ZodString>;
1003
+ reason: z.ZodOptional<z.ZodString>;
1004
+ suggestion: z.ZodOptional<z.ZodString>;
1005
+ unstructured: z.ZodOptional<z.ZodBoolean>;
1006
+ }, "strip", z.ZodTypeAny, {
712
1007
  status: "failed" | "done";
713
1008
  reason?: string | undefined;
714
1009
  summary?: string | undefined;
@@ -716,24 +1011,7 @@ export declare const TaskExecutionSchema: z.ZodObject<{
716
1011
  outcome?: string | undefined;
717
1012
  suggestion?: string | undefined;
718
1013
  unstructured?: boolean | undefined;
719
- } | null;
720
- trigger: "scheduled" | "token" | "manual" | "chain";
721
- scheduledAt: string;
722
- completedAt: string | null;
723
- retryCount: number;
724
- reworkCount: number;
725
- takeoverState?: string | undefined;
726
- takeoverSessionId?: string | null | undefined;
727
- }, {
728
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
729
- sessionId: string | null;
730
- startedAt: string | null;
731
- error: string | null;
732
- taskId: string;
733
- id: string;
734
- createdAt: string;
735
- summary: string | null;
736
- resultData: {
1014
+ }, {
737
1015
  status: "failed" | "done";
738
1016
  reason?: string | undefined;
739
1017
  summary?: string | undefined;
@@ -741,20 +1019,57 @@ export declare const TaskExecutionSchema: z.ZodObject<{
741
1019
  outcome?: string | undefined;
742
1020
  suggestion?: string | undefined;
743
1021
  unstructured?: boolean | undefined;
744
- } | null;
745
- trigger: "scheduled" | "token" | "manual" | "chain";
746
- scheduledAt: string;
747
- completedAt: string | null;
748
- retryCount: number;
749
- reworkCount: number;
750
- takeoverState?: string | undefined;
751
- takeoverSessionId?: string | null | undefined;
752
- }>;
1022
+ }>>;
1023
+ createdAt: z.ZodString;
1024
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1025
+ id: z.ZodString;
1026
+ taskId: z.ZodString;
1027
+ sessionId: z.ZodNullable<z.ZodString>;
1028
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
1029
+ trigger: z.ZodEnum<["scheduled", "manual", "token", "chain"]>;
1030
+ scheduledAt: z.ZodString;
1031
+ startedAt: z.ZodNullable<z.ZodString>;
1032
+ completedAt: z.ZodNullable<z.ZodString>;
1033
+ error: z.ZodNullable<z.ZodString>;
1034
+ retryCount: z.ZodNumber;
1035
+ reworkCount: z.ZodNumber;
1036
+ /** Takeover state (自动→人工介入): "none" | "pending" | "done". */
1037
+ takeoverState: z.ZodOptional<z.ZodString>;
1038
+ /** Managed session id produced by takeover (set when takeoverState='done'). */
1039
+ takeoverSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1040
+ summary: z.ZodNullable<z.ZodString>;
1041
+ resultData: z.ZodNullable<z.ZodObject<{
1042
+ status: z.ZodEnum<["done", "failed"]>;
1043
+ headline: z.ZodOptional<z.ZodString>;
1044
+ summary: z.ZodOptional<z.ZodString>;
1045
+ outcome: z.ZodOptional<z.ZodString>;
1046
+ reason: z.ZodOptional<z.ZodString>;
1047
+ suggestion: z.ZodOptional<z.ZodString>;
1048
+ unstructured: z.ZodOptional<z.ZodBoolean>;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ status: "failed" | "done";
1051
+ reason?: string | undefined;
1052
+ summary?: string | undefined;
1053
+ headline?: string | undefined;
1054
+ outcome?: string | undefined;
1055
+ suggestion?: string | undefined;
1056
+ unstructured?: boolean | undefined;
1057
+ }, {
1058
+ status: "failed" | "done";
1059
+ reason?: string | undefined;
1060
+ summary?: string | undefined;
1061
+ headline?: string | undefined;
1062
+ outcome?: string | undefined;
1063
+ suggestion?: string | undefined;
1064
+ unstructured?: boolean | undefined;
1065
+ }>>;
1066
+ createdAt: z.ZodString;
1067
+ }, z.ZodTypeAny, "passthrough">>;
753
1068
  export type TaskExecution = z.infer<typeof TaskExecutionSchema>;
754
1069
  /** POST /v1/triggers/:token request body */
755
1070
  export declare const TriggerCallSchema: z.ZodObject<{
756
1071
  context: z.ZodOptional<z.ZodString>;
757
- }, "strip", z.ZodTypeAny, {
1072
+ }, "strict", z.ZodTypeAny, {
758
1073
  context?: string | undefined;
759
1074
  }, {
760
1075
  context?: string | undefined;
@@ -768,29 +1083,29 @@ export declare const TriggerExecutionSchema: z.ZodObject<{
768
1083
  completedAt: z.ZodNullable<z.ZodString>;
769
1084
  summary: z.ZodNullable<z.ZodString>;
770
1085
  error: z.ZodNullable<z.ZodString>;
771
- }, "strip", z.ZodTypeAny, {
772
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
773
- startedAt: string | null;
774
- error: string | null;
775
- summary: string | null;
776
- completedAt: string | null;
777
- executionId: string;
778
- }, {
779
- status: "running" | "completed" | "failed" | "cancelled" | "pending" | "lost" | "skipped";
780
- startedAt: string | null;
781
- error: string | null;
782
- summary: string | null;
783
- completedAt: string | null;
784
- executionId: string;
785
- }>;
1086
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1087
+ executionId: z.ZodString;
1088
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
1089
+ startedAt: z.ZodNullable<z.ZodString>;
1090
+ completedAt: z.ZodNullable<z.ZodString>;
1091
+ summary: z.ZodNullable<z.ZodString>;
1092
+ error: z.ZodNullable<z.ZodString>;
1093
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1094
+ executionId: z.ZodString;
1095
+ status: z.ZodEnum<["pending", "running", "completed", "failed", "lost", "skipped", "cancelled"]>;
1096
+ startedAt: z.ZodNullable<z.ZodString>;
1097
+ completedAt: z.ZodNullable<z.ZodString>;
1098
+ summary: z.ZodNullable<z.ZodString>;
1099
+ error: z.ZodNullable<z.ZodString>;
1100
+ }, z.ZodTypeAny, "passthrough">>;
786
1101
  export type TriggerExecution = z.infer<typeof TriggerExecutionSchema>;
787
1102
  /** POST /v1/scheduled-tasks/:id/regenerate-token response */
788
1103
  export declare const RegenerateTokenResponseSchema: z.ZodObject<{
789
1104
  triggerToken: z.ZodString;
790
- }, "strip", z.ZodTypeAny, {
791
- triggerToken: string;
792
- }, {
793
- triggerToken: string;
794
- }>;
1105
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1106
+ triggerToken: z.ZodString;
1107
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1108
+ triggerToken: z.ZodString;
1109
+ }, z.ZodTypeAny, "passthrough">>;
795
1110
  export type RegenerateTokenResponse = z.infer<typeof RegenerateTokenResponseSchema>;
796
1111
  //# sourceMappingURL=scheduledTasks.d.ts.map