@deepintel-ltd/farmpro-contracts 1.3.1 → 1.3.4

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 (55) hide show
  1. package/dist/index.d.ts +7 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +10 -1
  4. package/dist/routes/admin.routes.d.ts +747 -0
  5. package/dist/routes/admin.routes.d.ts.map +1 -0
  6. package/dist/routes/admin.routes.js +26 -0
  7. package/dist/routes/agent-workflows.routes.d.ts +2900 -0
  8. package/dist/routes/agent-workflows.routes.d.ts.map +1 -0
  9. package/dist/routes/agent-workflows.routes.js +160 -0
  10. package/dist/routes/documents.routes.d.ts +417 -0
  11. package/dist/routes/documents.routes.d.ts.map +1 -1
  12. package/dist/routes/documents.routes.js +16 -0
  13. package/dist/routes/field-monitoring.routes.d.ts +568 -23
  14. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  15. package/dist/routes/field-monitoring.routes.js +64 -0
  16. package/dist/routes/field-observations.routes.d.ts +130 -58
  17. package/dist/routes/field-observations.routes.d.ts.map +1 -1
  18. package/dist/routes/health.routes.d.ts +317 -0
  19. package/dist/routes/health.routes.d.ts.map +1 -0
  20. package/dist/routes/health.routes.js +18 -0
  21. package/dist/routes/index.d.ts +9 -0
  22. package/dist/routes/index.d.ts.map +1 -1
  23. package/dist/routes/index.js +6 -0
  24. package/dist/routes/tasks.routes.d.ts +408 -0
  25. package/dist/routes/tasks.routes.d.ts.map +1 -1
  26. package/dist/routes/weather.routes.d.ts +264 -17
  27. package/dist/routes/weather.routes.d.ts.map +1 -1
  28. package/dist/schemas/admin.schemas.d.ts +1063 -0
  29. package/dist/schemas/admin.schemas.d.ts.map +1 -0
  30. package/dist/schemas/admin.schemas.js +63 -0
  31. package/dist/schemas/agent-workflows.schemas.d.ts +2399 -0
  32. package/dist/schemas/agent-workflows.schemas.d.ts.map +1 -0
  33. package/dist/schemas/agent-workflows.schemas.js +70 -0
  34. package/dist/schemas/documents.schemas.d.ts +202 -0
  35. package/dist/schemas/documents.schemas.d.ts.map +1 -1
  36. package/dist/schemas/documents.schemas.js +10 -1
  37. package/dist/schemas/field-monitoring.schemas.d.ts +215 -9
  38. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  39. package/dist/schemas/field-monitoring.schemas.js +26 -2
  40. package/dist/schemas/field-observations.schemas.d.ts +100 -40
  41. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  42. package/dist/schemas/field-observations.schemas.js +2 -24
  43. package/dist/schemas/health.schemas.d.ts +176 -0
  44. package/dist/schemas/health.schemas.d.ts.map +1 -0
  45. package/dist/schemas/health.schemas.js +26 -0
  46. package/dist/schemas/recommendations.schemas.d.ts +112 -0
  47. package/dist/schemas/recommendations.schemas.d.ts.map +1 -0
  48. package/dist/schemas/recommendations.schemas.js +32 -0
  49. package/dist/schemas/tasks.schemas.d.ts +344 -0
  50. package/dist/schemas/tasks.schemas.d.ts.map +1 -1
  51. package/dist/schemas/tasks.schemas.js +9 -0
  52. package/dist/schemas/weather.schemas.d.ts +780 -44
  53. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  54. package/dist/schemas/weather.schemas.js +2 -1
  55. package/package.json +1 -1
@@ -0,0 +1,2399 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Agent Workflow Schemas
4
+ *
5
+ * Defines the data contracts for logging and tracking the autonomous,
6
+ * event-driven workflows performed by the system's agents, such as the
7
+ * process of turning a recommendation into a task.
8
+ */
9
+ export declare const agentWorkflowStatusSchema: z.ZodEnum<["in_progress", "completed", "failed"]>;
10
+ export declare const workflowOutcomeSchema: z.ZodEnum<["task_created", "task_updated", "no_action_needed", "error"]>;
11
+ export declare const recommendationOutcomeSchema: z.ZodEnum<["created", "updated", "skipped", "error"]>;
12
+ export declare const agentRecommendationResultSchema: z.ZodObject<{
13
+ recommendation: z.ZodObject<{
14
+ priority: z.ZodNumber;
15
+ action: z.ZodString;
16
+ details: z.ZodString;
17
+ timing: z.ZodString;
18
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
19
+ confidence: z.ZodOptional<z.ZodNumber>;
20
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
+ inventoryItemId: z.ZodOptional<z.ZodString>;
22
+ name: z.ZodString;
23
+ quantity: z.ZodNumber;
24
+ unit: z.ZodString;
25
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
26
+ totalCost: z.ZodOptional<z.ZodNumber>;
27
+ availability: z.ZodOptional<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ name: string;
30
+ unit: string;
31
+ quantity: number;
32
+ inventoryItemId?: string | undefined;
33
+ totalCost?: number | undefined;
34
+ costPerUnit?: number | undefined;
35
+ availability?: string | undefined;
36
+ }, {
37
+ name: string;
38
+ unit: string;
39
+ quantity: number;
40
+ inventoryItemId?: string | undefined;
41
+ totalCost?: number | undefined;
42
+ costPerUnit?: number | undefined;
43
+ availability?: string | undefined;
44
+ }>, "many">>;
45
+ applicationMethod: z.ZodOptional<z.ZodString>;
46
+ expectedOutcome: z.ZodOptional<z.ZodString>;
47
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
48
+ estimatedTime: z.ZodOptional<z.ZodString>;
49
+ riskLevel: z.ZodOptional<z.ZodString>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ priority: number;
52
+ action: string;
53
+ details: string;
54
+ timing: string;
55
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
56
+ confidence?: number | undefined;
57
+ materials?: {
58
+ name: string;
59
+ unit: string;
60
+ quantity: number;
61
+ inventoryItemId?: string | undefined;
62
+ totalCost?: number | undefined;
63
+ costPerUnit?: number | undefined;
64
+ availability?: string | undefined;
65
+ }[] | undefined;
66
+ applicationMethod?: string | undefined;
67
+ expectedOutcome?: string | undefined;
68
+ preventiveMeasures?: string[] | undefined;
69
+ estimatedTime?: string | undefined;
70
+ riskLevel?: string | undefined;
71
+ }, {
72
+ priority: number;
73
+ action: string;
74
+ details: string;
75
+ timing: string;
76
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
77
+ confidence?: number | undefined;
78
+ materials?: {
79
+ name: string;
80
+ unit: string;
81
+ quantity: number;
82
+ inventoryItemId?: string | undefined;
83
+ totalCost?: number | undefined;
84
+ costPerUnit?: number | undefined;
85
+ availability?: string | undefined;
86
+ }[] | undefined;
87
+ applicationMethod?: string | undefined;
88
+ expectedOutcome?: string | undefined;
89
+ preventiveMeasures?: string[] | undefined;
90
+ estimatedTime?: string | undefined;
91
+ riskLevel?: string | undefined;
92
+ }>;
93
+ outcome: z.ZodEnum<["created", "updated", "skipped", "error"]>;
94
+ taskId: z.ZodOptional<z.ZodString>;
95
+ reason: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ reason: string;
98
+ recommendation: {
99
+ priority: number;
100
+ action: string;
101
+ details: string;
102
+ timing: string;
103
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
104
+ confidence?: number | undefined;
105
+ materials?: {
106
+ name: string;
107
+ unit: string;
108
+ quantity: number;
109
+ inventoryItemId?: string | undefined;
110
+ totalCost?: number | undefined;
111
+ costPerUnit?: number | undefined;
112
+ availability?: string | undefined;
113
+ }[] | undefined;
114
+ applicationMethod?: string | undefined;
115
+ expectedOutcome?: string | undefined;
116
+ preventiveMeasures?: string[] | undefined;
117
+ estimatedTime?: string | undefined;
118
+ riskLevel?: string | undefined;
119
+ };
120
+ outcome: "error" | "created" | "updated" | "skipped";
121
+ taskId?: string | undefined;
122
+ }, {
123
+ reason: string;
124
+ recommendation: {
125
+ priority: number;
126
+ action: string;
127
+ details: string;
128
+ timing: string;
129
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
130
+ confidence?: number | undefined;
131
+ materials?: {
132
+ name: string;
133
+ unit: string;
134
+ quantity: number;
135
+ inventoryItemId?: string | undefined;
136
+ totalCost?: number | undefined;
137
+ costPerUnit?: number | undefined;
138
+ availability?: string | undefined;
139
+ }[] | undefined;
140
+ applicationMethod?: string | undefined;
141
+ expectedOutcome?: string | undefined;
142
+ preventiveMeasures?: string[] | undefined;
143
+ estimatedTime?: string | undefined;
144
+ riskLevel?: string | undefined;
145
+ };
146
+ outcome: "error" | "created" | "updated" | "skipped";
147
+ taskId?: string | undefined;
148
+ }>;
149
+ export declare const agentResultsSchema: z.ZodObject<{
150
+ summary: z.ZodObject<{
151
+ sourceType: z.ZodString;
152
+ tasksCreated: z.ZodNumber;
153
+ tasksUpdated: z.ZodNumber;
154
+ skipped: z.ZodNumber;
155
+ }, "strip", z.ZodTypeAny, {
156
+ skipped: number;
157
+ sourceType: string;
158
+ tasksCreated: number;
159
+ tasksUpdated: number;
160
+ }, {
161
+ skipped: number;
162
+ sourceType: string;
163
+ tasksCreated: number;
164
+ tasksUpdated: number;
165
+ }>;
166
+ results: z.ZodArray<z.ZodObject<{
167
+ recommendation: z.ZodObject<{
168
+ priority: z.ZodNumber;
169
+ action: z.ZodString;
170
+ details: z.ZodString;
171
+ timing: z.ZodString;
172
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
173
+ confidence: z.ZodOptional<z.ZodNumber>;
174
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
+ inventoryItemId: z.ZodOptional<z.ZodString>;
176
+ name: z.ZodString;
177
+ quantity: z.ZodNumber;
178
+ unit: z.ZodString;
179
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
180
+ totalCost: z.ZodOptional<z.ZodNumber>;
181
+ availability: z.ZodOptional<z.ZodString>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ name: string;
184
+ unit: string;
185
+ quantity: number;
186
+ inventoryItemId?: string | undefined;
187
+ totalCost?: number | undefined;
188
+ costPerUnit?: number | undefined;
189
+ availability?: string | undefined;
190
+ }, {
191
+ name: string;
192
+ unit: string;
193
+ quantity: number;
194
+ inventoryItemId?: string | undefined;
195
+ totalCost?: number | undefined;
196
+ costPerUnit?: number | undefined;
197
+ availability?: string | undefined;
198
+ }>, "many">>;
199
+ applicationMethod: z.ZodOptional<z.ZodString>;
200
+ expectedOutcome: z.ZodOptional<z.ZodString>;
201
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
202
+ estimatedTime: z.ZodOptional<z.ZodString>;
203
+ riskLevel: z.ZodOptional<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ priority: number;
206
+ action: string;
207
+ details: string;
208
+ timing: string;
209
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
210
+ confidence?: number | undefined;
211
+ materials?: {
212
+ name: string;
213
+ unit: string;
214
+ quantity: number;
215
+ inventoryItemId?: string | undefined;
216
+ totalCost?: number | undefined;
217
+ costPerUnit?: number | undefined;
218
+ availability?: string | undefined;
219
+ }[] | undefined;
220
+ applicationMethod?: string | undefined;
221
+ expectedOutcome?: string | undefined;
222
+ preventiveMeasures?: string[] | undefined;
223
+ estimatedTime?: string | undefined;
224
+ riskLevel?: string | undefined;
225
+ }, {
226
+ priority: number;
227
+ action: string;
228
+ details: string;
229
+ timing: string;
230
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
231
+ confidence?: number | undefined;
232
+ materials?: {
233
+ name: string;
234
+ unit: string;
235
+ quantity: number;
236
+ inventoryItemId?: string | undefined;
237
+ totalCost?: number | undefined;
238
+ costPerUnit?: number | undefined;
239
+ availability?: string | undefined;
240
+ }[] | undefined;
241
+ applicationMethod?: string | undefined;
242
+ expectedOutcome?: string | undefined;
243
+ preventiveMeasures?: string[] | undefined;
244
+ estimatedTime?: string | undefined;
245
+ riskLevel?: string | undefined;
246
+ }>;
247
+ outcome: z.ZodEnum<["created", "updated", "skipped", "error"]>;
248
+ taskId: z.ZodOptional<z.ZodString>;
249
+ reason: z.ZodString;
250
+ }, "strip", z.ZodTypeAny, {
251
+ reason: string;
252
+ recommendation: {
253
+ priority: number;
254
+ action: string;
255
+ details: string;
256
+ timing: string;
257
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
258
+ confidence?: number | undefined;
259
+ materials?: {
260
+ name: string;
261
+ unit: string;
262
+ quantity: number;
263
+ inventoryItemId?: string | undefined;
264
+ totalCost?: number | undefined;
265
+ costPerUnit?: number | undefined;
266
+ availability?: string | undefined;
267
+ }[] | undefined;
268
+ applicationMethod?: string | undefined;
269
+ expectedOutcome?: string | undefined;
270
+ preventiveMeasures?: string[] | undefined;
271
+ estimatedTime?: string | undefined;
272
+ riskLevel?: string | undefined;
273
+ };
274
+ outcome: "error" | "created" | "updated" | "skipped";
275
+ taskId?: string | undefined;
276
+ }, {
277
+ reason: string;
278
+ recommendation: {
279
+ priority: number;
280
+ action: string;
281
+ details: string;
282
+ timing: string;
283
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
284
+ confidence?: number | undefined;
285
+ materials?: {
286
+ name: string;
287
+ unit: string;
288
+ quantity: number;
289
+ inventoryItemId?: string | undefined;
290
+ totalCost?: number | undefined;
291
+ costPerUnit?: number | undefined;
292
+ availability?: string | undefined;
293
+ }[] | undefined;
294
+ applicationMethod?: string | undefined;
295
+ expectedOutcome?: string | undefined;
296
+ preventiveMeasures?: string[] | undefined;
297
+ estimatedTime?: string | undefined;
298
+ riskLevel?: string | undefined;
299
+ };
300
+ outcome: "error" | "created" | "updated" | "skipped";
301
+ taskId?: string | undefined;
302
+ }>, "many">;
303
+ taskReview: z.ZodOptional<z.ZodAny>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ summary: {
306
+ skipped: number;
307
+ sourceType: string;
308
+ tasksCreated: number;
309
+ tasksUpdated: number;
310
+ };
311
+ results: {
312
+ reason: string;
313
+ recommendation: {
314
+ priority: number;
315
+ action: string;
316
+ details: string;
317
+ timing: string;
318
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
319
+ confidence?: number | undefined;
320
+ materials?: {
321
+ name: string;
322
+ unit: string;
323
+ quantity: number;
324
+ inventoryItemId?: string | undefined;
325
+ totalCost?: number | undefined;
326
+ costPerUnit?: number | undefined;
327
+ availability?: string | undefined;
328
+ }[] | undefined;
329
+ applicationMethod?: string | undefined;
330
+ expectedOutcome?: string | undefined;
331
+ preventiveMeasures?: string[] | undefined;
332
+ estimatedTime?: string | undefined;
333
+ riskLevel?: string | undefined;
334
+ };
335
+ outcome: "error" | "created" | "updated" | "skipped";
336
+ taskId?: string | undefined;
337
+ }[];
338
+ taskReview?: any;
339
+ }, {
340
+ summary: {
341
+ skipped: number;
342
+ sourceType: string;
343
+ tasksCreated: number;
344
+ tasksUpdated: number;
345
+ };
346
+ results: {
347
+ reason: string;
348
+ recommendation: {
349
+ priority: number;
350
+ action: string;
351
+ details: string;
352
+ timing: string;
353
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
354
+ confidence?: number | undefined;
355
+ materials?: {
356
+ name: string;
357
+ unit: string;
358
+ quantity: number;
359
+ inventoryItemId?: string | undefined;
360
+ totalCost?: number | undefined;
361
+ costPerUnit?: number | undefined;
362
+ availability?: string | undefined;
363
+ }[] | undefined;
364
+ applicationMethod?: string | undefined;
365
+ expectedOutcome?: string | undefined;
366
+ preventiveMeasures?: string[] | undefined;
367
+ estimatedTime?: string | undefined;
368
+ riskLevel?: string | undefined;
369
+ };
370
+ outcome: "error" | "created" | "updated" | "skipped";
371
+ taskId?: string | undefined;
372
+ }[];
373
+ taskReview?: any;
374
+ }>;
375
+ export declare const agentWorkflowAttributesSchema: z.ZodObject<{
376
+ workflowType: z.ZodLiteral<"recommendation_to_task">;
377
+ triggerEvent: z.ZodString;
378
+ triggerId: z.ZodString;
379
+ fieldId: z.ZodString;
380
+ farmId: z.ZodString;
381
+ status: z.ZodEnum<["in_progress", "completed", "failed"]>;
382
+ outcome: z.ZodNullable<z.ZodEnum<["task_created", "task_updated", "no_action_needed", "error"]>>;
383
+ agentResults: z.ZodNullable<z.ZodObject<{
384
+ summary: z.ZodObject<{
385
+ sourceType: z.ZodString;
386
+ tasksCreated: z.ZodNumber;
387
+ tasksUpdated: z.ZodNumber;
388
+ skipped: z.ZodNumber;
389
+ }, "strip", z.ZodTypeAny, {
390
+ skipped: number;
391
+ sourceType: string;
392
+ tasksCreated: number;
393
+ tasksUpdated: number;
394
+ }, {
395
+ skipped: number;
396
+ sourceType: string;
397
+ tasksCreated: number;
398
+ tasksUpdated: number;
399
+ }>;
400
+ results: z.ZodArray<z.ZodObject<{
401
+ recommendation: z.ZodObject<{
402
+ priority: z.ZodNumber;
403
+ action: z.ZodString;
404
+ details: z.ZodString;
405
+ timing: z.ZodString;
406
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
407
+ confidence: z.ZodOptional<z.ZodNumber>;
408
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
409
+ inventoryItemId: z.ZodOptional<z.ZodString>;
410
+ name: z.ZodString;
411
+ quantity: z.ZodNumber;
412
+ unit: z.ZodString;
413
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
414
+ totalCost: z.ZodOptional<z.ZodNumber>;
415
+ availability: z.ZodOptional<z.ZodString>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ name: string;
418
+ unit: string;
419
+ quantity: number;
420
+ inventoryItemId?: string | undefined;
421
+ totalCost?: number | undefined;
422
+ costPerUnit?: number | undefined;
423
+ availability?: string | undefined;
424
+ }, {
425
+ name: string;
426
+ unit: string;
427
+ quantity: number;
428
+ inventoryItemId?: string | undefined;
429
+ totalCost?: number | undefined;
430
+ costPerUnit?: number | undefined;
431
+ availability?: string | undefined;
432
+ }>, "many">>;
433
+ applicationMethod: z.ZodOptional<z.ZodString>;
434
+ expectedOutcome: z.ZodOptional<z.ZodString>;
435
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
+ estimatedTime: z.ZodOptional<z.ZodString>;
437
+ riskLevel: z.ZodOptional<z.ZodString>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ priority: number;
440
+ action: string;
441
+ details: string;
442
+ timing: string;
443
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
444
+ confidence?: number | undefined;
445
+ materials?: {
446
+ name: string;
447
+ unit: string;
448
+ quantity: number;
449
+ inventoryItemId?: string | undefined;
450
+ totalCost?: number | undefined;
451
+ costPerUnit?: number | undefined;
452
+ availability?: string | undefined;
453
+ }[] | undefined;
454
+ applicationMethod?: string | undefined;
455
+ expectedOutcome?: string | undefined;
456
+ preventiveMeasures?: string[] | undefined;
457
+ estimatedTime?: string | undefined;
458
+ riskLevel?: string | undefined;
459
+ }, {
460
+ priority: number;
461
+ action: string;
462
+ details: string;
463
+ timing: string;
464
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
465
+ confidence?: number | undefined;
466
+ materials?: {
467
+ name: string;
468
+ unit: string;
469
+ quantity: number;
470
+ inventoryItemId?: string | undefined;
471
+ totalCost?: number | undefined;
472
+ costPerUnit?: number | undefined;
473
+ availability?: string | undefined;
474
+ }[] | undefined;
475
+ applicationMethod?: string | undefined;
476
+ expectedOutcome?: string | undefined;
477
+ preventiveMeasures?: string[] | undefined;
478
+ estimatedTime?: string | undefined;
479
+ riskLevel?: string | undefined;
480
+ }>;
481
+ outcome: z.ZodEnum<["created", "updated", "skipped", "error"]>;
482
+ taskId: z.ZodOptional<z.ZodString>;
483
+ reason: z.ZodString;
484
+ }, "strip", z.ZodTypeAny, {
485
+ reason: string;
486
+ recommendation: {
487
+ priority: number;
488
+ action: string;
489
+ details: string;
490
+ timing: string;
491
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
492
+ confidence?: number | undefined;
493
+ materials?: {
494
+ name: string;
495
+ unit: string;
496
+ quantity: number;
497
+ inventoryItemId?: string | undefined;
498
+ totalCost?: number | undefined;
499
+ costPerUnit?: number | undefined;
500
+ availability?: string | undefined;
501
+ }[] | undefined;
502
+ applicationMethod?: string | undefined;
503
+ expectedOutcome?: string | undefined;
504
+ preventiveMeasures?: string[] | undefined;
505
+ estimatedTime?: string | undefined;
506
+ riskLevel?: string | undefined;
507
+ };
508
+ outcome: "error" | "created" | "updated" | "skipped";
509
+ taskId?: string | undefined;
510
+ }, {
511
+ reason: string;
512
+ recommendation: {
513
+ priority: number;
514
+ action: string;
515
+ details: string;
516
+ timing: string;
517
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
518
+ confidence?: number | undefined;
519
+ materials?: {
520
+ name: string;
521
+ unit: string;
522
+ quantity: number;
523
+ inventoryItemId?: string | undefined;
524
+ totalCost?: number | undefined;
525
+ costPerUnit?: number | undefined;
526
+ availability?: string | undefined;
527
+ }[] | undefined;
528
+ applicationMethod?: string | undefined;
529
+ expectedOutcome?: string | undefined;
530
+ preventiveMeasures?: string[] | undefined;
531
+ estimatedTime?: string | undefined;
532
+ riskLevel?: string | undefined;
533
+ };
534
+ outcome: "error" | "created" | "updated" | "skipped";
535
+ taskId?: string | undefined;
536
+ }>, "many">;
537
+ taskReview: z.ZodOptional<z.ZodAny>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ summary: {
540
+ skipped: number;
541
+ sourceType: string;
542
+ tasksCreated: number;
543
+ tasksUpdated: number;
544
+ };
545
+ results: {
546
+ reason: string;
547
+ recommendation: {
548
+ priority: number;
549
+ action: string;
550
+ details: string;
551
+ timing: string;
552
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
553
+ confidence?: number | undefined;
554
+ materials?: {
555
+ name: string;
556
+ unit: string;
557
+ quantity: number;
558
+ inventoryItemId?: string | undefined;
559
+ totalCost?: number | undefined;
560
+ costPerUnit?: number | undefined;
561
+ availability?: string | undefined;
562
+ }[] | undefined;
563
+ applicationMethod?: string | undefined;
564
+ expectedOutcome?: string | undefined;
565
+ preventiveMeasures?: string[] | undefined;
566
+ estimatedTime?: string | undefined;
567
+ riskLevel?: string | undefined;
568
+ };
569
+ outcome: "error" | "created" | "updated" | "skipped";
570
+ taskId?: string | undefined;
571
+ }[];
572
+ taskReview?: any;
573
+ }, {
574
+ summary: {
575
+ skipped: number;
576
+ sourceType: string;
577
+ tasksCreated: number;
578
+ tasksUpdated: number;
579
+ };
580
+ results: {
581
+ reason: string;
582
+ recommendation: {
583
+ priority: number;
584
+ action: string;
585
+ details: string;
586
+ timing: string;
587
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
588
+ confidence?: number | undefined;
589
+ materials?: {
590
+ name: string;
591
+ unit: string;
592
+ quantity: number;
593
+ inventoryItemId?: string | undefined;
594
+ totalCost?: number | undefined;
595
+ costPerUnit?: number | undefined;
596
+ availability?: string | undefined;
597
+ }[] | undefined;
598
+ applicationMethod?: string | undefined;
599
+ expectedOutcome?: string | undefined;
600
+ preventiveMeasures?: string[] | undefined;
601
+ estimatedTime?: string | undefined;
602
+ riskLevel?: string | undefined;
603
+ };
604
+ outcome: "error" | "created" | "updated" | "skipped";
605
+ taskId?: string | undefined;
606
+ }[];
607
+ taskReview?: any;
608
+ }>>;
609
+ errorMessage: z.ZodNullable<z.ZodString>;
610
+ completedAt: z.ZodNullable<z.ZodDate>;
611
+ } & {
612
+ createdAt: z.ZodString;
613
+ updatedAt: z.ZodString;
614
+ }, "strip", z.ZodTypeAny, {
615
+ status: "completed" | "in_progress" | "failed";
616
+ createdAt: string;
617
+ updatedAt: string;
618
+ farmId: string;
619
+ fieldId: string;
620
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
621
+ workflowType: "recommendation_to_task";
622
+ triggerEvent: string;
623
+ triggerId: string;
624
+ agentResults: {
625
+ summary: {
626
+ skipped: number;
627
+ sourceType: string;
628
+ tasksCreated: number;
629
+ tasksUpdated: number;
630
+ };
631
+ results: {
632
+ reason: string;
633
+ recommendation: {
634
+ priority: number;
635
+ action: string;
636
+ details: string;
637
+ timing: string;
638
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
639
+ confidence?: number | undefined;
640
+ materials?: {
641
+ name: string;
642
+ unit: string;
643
+ quantity: number;
644
+ inventoryItemId?: string | undefined;
645
+ totalCost?: number | undefined;
646
+ costPerUnit?: number | undefined;
647
+ availability?: string | undefined;
648
+ }[] | undefined;
649
+ applicationMethod?: string | undefined;
650
+ expectedOutcome?: string | undefined;
651
+ preventiveMeasures?: string[] | undefined;
652
+ estimatedTime?: string | undefined;
653
+ riskLevel?: string | undefined;
654
+ };
655
+ outcome: "error" | "created" | "updated" | "skipped";
656
+ taskId?: string | undefined;
657
+ }[];
658
+ taskReview?: any;
659
+ } | null;
660
+ errorMessage: string | null;
661
+ completedAt: Date | null;
662
+ }, {
663
+ status: "completed" | "in_progress" | "failed";
664
+ createdAt: string;
665
+ updatedAt: string;
666
+ farmId: string;
667
+ fieldId: string;
668
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
669
+ workflowType: "recommendation_to_task";
670
+ triggerEvent: string;
671
+ triggerId: string;
672
+ agentResults: {
673
+ summary: {
674
+ skipped: number;
675
+ sourceType: string;
676
+ tasksCreated: number;
677
+ tasksUpdated: number;
678
+ };
679
+ results: {
680
+ reason: string;
681
+ recommendation: {
682
+ priority: number;
683
+ action: string;
684
+ details: string;
685
+ timing: string;
686
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
687
+ confidence?: number | undefined;
688
+ materials?: {
689
+ name: string;
690
+ unit: string;
691
+ quantity: number;
692
+ inventoryItemId?: string | undefined;
693
+ totalCost?: number | undefined;
694
+ costPerUnit?: number | undefined;
695
+ availability?: string | undefined;
696
+ }[] | undefined;
697
+ applicationMethod?: string | undefined;
698
+ expectedOutcome?: string | undefined;
699
+ preventiveMeasures?: string[] | undefined;
700
+ estimatedTime?: string | undefined;
701
+ riskLevel?: string | undefined;
702
+ };
703
+ outcome: "error" | "created" | "updated" | "skipped";
704
+ taskId?: string | undefined;
705
+ }[];
706
+ taskReview?: any;
707
+ } | null;
708
+ errorMessage: string | null;
709
+ completedAt: Date | null;
710
+ }>;
711
+ export declare const agentWorkflowResourceSchema: z.ZodObject<{
712
+ type: z.ZodLiteral<string>;
713
+ id: z.ZodString;
714
+ attributes: z.ZodObject<{
715
+ workflowType: z.ZodLiteral<"recommendation_to_task">;
716
+ triggerEvent: z.ZodString;
717
+ triggerId: z.ZodString;
718
+ fieldId: z.ZodString;
719
+ farmId: z.ZodString;
720
+ status: z.ZodEnum<["in_progress", "completed", "failed"]>;
721
+ outcome: z.ZodNullable<z.ZodEnum<["task_created", "task_updated", "no_action_needed", "error"]>>;
722
+ agentResults: z.ZodNullable<z.ZodObject<{
723
+ summary: z.ZodObject<{
724
+ sourceType: z.ZodString;
725
+ tasksCreated: z.ZodNumber;
726
+ tasksUpdated: z.ZodNumber;
727
+ skipped: z.ZodNumber;
728
+ }, "strip", z.ZodTypeAny, {
729
+ skipped: number;
730
+ sourceType: string;
731
+ tasksCreated: number;
732
+ tasksUpdated: number;
733
+ }, {
734
+ skipped: number;
735
+ sourceType: string;
736
+ tasksCreated: number;
737
+ tasksUpdated: number;
738
+ }>;
739
+ results: z.ZodArray<z.ZodObject<{
740
+ recommendation: z.ZodObject<{
741
+ priority: z.ZodNumber;
742
+ action: z.ZodString;
743
+ details: z.ZodString;
744
+ timing: z.ZodString;
745
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
746
+ confidence: z.ZodOptional<z.ZodNumber>;
747
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
748
+ inventoryItemId: z.ZodOptional<z.ZodString>;
749
+ name: z.ZodString;
750
+ quantity: z.ZodNumber;
751
+ unit: z.ZodString;
752
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
753
+ totalCost: z.ZodOptional<z.ZodNumber>;
754
+ availability: z.ZodOptional<z.ZodString>;
755
+ }, "strip", z.ZodTypeAny, {
756
+ name: string;
757
+ unit: string;
758
+ quantity: number;
759
+ inventoryItemId?: string | undefined;
760
+ totalCost?: number | undefined;
761
+ costPerUnit?: number | undefined;
762
+ availability?: string | undefined;
763
+ }, {
764
+ name: string;
765
+ unit: string;
766
+ quantity: number;
767
+ inventoryItemId?: string | undefined;
768
+ totalCost?: number | undefined;
769
+ costPerUnit?: number | undefined;
770
+ availability?: string | undefined;
771
+ }>, "many">>;
772
+ applicationMethod: z.ZodOptional<z.ZodString>;
773
+ expectedOutcome: z.ZodOptional<z.ZodString>;
774
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
775
+ estimatedTime: z.ZodOptional<z.ZodString>;
776
+ riskLevel: z.ZodOptional<z.ZodString>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ priority: number;
779
+ action: string;
780
+ details: string;
781
+ timing: string;
782
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
783
+ confidence?: number | undefined;
784
+ materials?: {
785
+ name: string;
786
+ unit: string;
787
+ quantity: number;
788
+ inventoryItemId?: string | undefined;
789
+ totalCost?: number | undefined;
790
+ costPerUnit?: number | undefined;
791
+ availability?: string | undefined;
792
+ }[] | undefined;
793
+ applicationMethod?: string | undefined;
794
+ expectedOutcome?: string | undefined;
795
+ preventiveMeasures?: string[] | undefined;
796
+ estimatedTime?: string | undefined;
797
+ riskLevel?: string | undefined;
798
+ }, {
799
+ priority: number;
800
+ action: string;
801
+ details: string;
802
+ timing: string;
803
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
804
+ confidence?: number | undefined;
805
+ materials?: {
806
+ name: string;
807
+ unit: string;
808
+ quantity: number;
809
+ inventoryItemId?: string | undefined;
810
+ totalCost?: number | undefined;
811
+ costPerUnit?: number | undefined;
812
+ availability?: string | undefined;
813
+ }[] | undefined;
814
+ applicationMethod?: string | undefined;
815
+ expectedOutcome?: string | undefined;
816
+ preventiveMeasures?: string[] | undefined;
817
+ estimatedTime?: string | undefined;
818
+ riskLevel?: string | undefined;
819
+ }>;
820
+ outcome: z.ZodEnum<["created", "updated", "skipped", "error"]>;
821
+ taskId: z.ZodOptional<z.ZodString>;
822
+ reason: z.ZodString;
823
+ }, "strip", z.ZodTypeAny, {
824
+ reason: string;
825
+ recommendation: {
826
+ priority: number;
827
+ action: string;
828
+ details: string;
829
+ timing: string;
830
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
831
+ confidence?: number | undefined;
832
+ materials?: {
833
+ name: string;
834
+ unit: string;
835
+ quantity: number;
836
+ inventoryItemId?: string | undefined;
837
+ totalCost?: number | undefined;
838
+ costPerUnit?: number | undefined;
839
+ availability?: string | undefined;
840
+ }[] | undefined;
841
+ applicationMethod?: string | undefined;
842
+ expectedOutcome?: string | undefined;
843
+ preventiveMeasures?: string[] | undefined;
844
+ estimatedTime?: string | undefined;
845
+ riskLevel?: string | undefined;
846
+ };
847
+ outcome: "error" | "created" | "updated" | "skipped";
848
+ taskId?: string | undefined;
849
+ }, {
850
+ reason: string;
851
+ recommendation: {
852
+ priority: number;
853
+ action: string;
854
+ details: string;
855
+ timing: string;
856
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
857
+ confidence?: number | undefined;
858
+ materials?: {
859
+ name: string;
860
+ unit: string;
861
+ quantity: number;
862
+ inventoryItemId?: string | undefined;
863
+ totalCost?: number | undefined;
864
+ costPerUnit?: number | undefined;
865
+ availability?: string | undefined;
866
+ }[] | undefined;
867
+ applicationMethod?: string | undefined;
868
+ expectedOutcome?: string | undefined;
869
+ preventiveMeasures?: string[] | undefined;
870
+ estimatedTime?: string | undefined;
871
+ riskLevel?: string | undefined;
872
+ };
873
+ outcome: "error" | "created" | "updated" | "skipped";
874
+ taskId?: string | undefined;
875
+ }>, "many">;
876
+ taskReview: z.ZodOptional<z.ZodAny>;
877
+ }, "strip", z.ZodTypeAny, {
878
+ summary: {
879
+ skipped: number;
880
+ sourceType: string;
881
+ tasksCreated: number;
882
+ tasksUpdated: number;
883
+ };
884
+ results: {
885
+ reason: string;
886
+ recommendation: {
887
+ priority: number;
888
+ action: string;
889
+ details: string;
890
+ timing: string;
891
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
892
+ confidence?: number | undefined;
893
+ materials?: {
894
+ name: string;
895
+ unit: string;
896
+ quantity: number;
897
+ inventoryItemId?: string | undefined;
898
+ totalCost?: number | undefined;
899
+ costPerUnit?: number | undefined;
900
+ availability?: string | undefined;
901
+ }[] | undefined;
902
+ applicationMethod?: string | undefined;
903
+ expectedOutcome?: string | undefined;
904
+ preventiveMeasures?: string[] | undefined;
905
+ estimatedTime?: string | undefined;
906
+ riskLevel?: string | undefined;
907
+ };
908
+ outcome: "error" | "created" | "updated" | "skipped";
909
+ taskId?: string | undefined;
910
+ }[];
911
+ taskReview?: any;
912
+ }, {
913
+ summary: {
914
+ skipped: number;
915
+ sourceType: string;
916
+ tasksCreated: number;
917
+ tasksUpdated: number;
918
+ };
919
+ results: {
920
+ reason: string;
921
+ recommendation: {
922
+ priority: number;
923
+ action: string;
924
+ details: string;
925
+ timing: string;
926
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
927
+ confidence?: number | undefined;
928
+ materials?: {
929
+ name: string;
930
+ unit: string;
931
+ quantity: number;
932
+ inventoryItemId?: string | undefined;
933
+ totalCost?: number | undefined;
934
+ costPerUnit?: number | undefined;
935
+ availability?: string | undefined;
936
+ }[] | undefined;
937
+ applicationMethod?: string | undefined;
938
+ expectedOutcome?: string | undefined;
939
+ preventiveMeasures?: string[] | undefined;
940
+ estimatedTime?: string | undefined;
941
+ riskLevel?: string | undefined;
942
+ };
943
+ outcome: "error" | "created" | "updated" | "skipped";
944
+ taskId?: string | undefined;
945
+ }[];
946
+ taskReview?: any;
947
+ }>>;
948
+ errorMessage: z.ZodNullable<z.ZodString>;
949
+ completedAt: z.ZodNullable<z.ZodDate>;
950
+ } & {
951
+ createdAt: z.ZodString;
952
+ updatedAt: z.ZodString;
953
+ }, "strip", z.ZodTypeAny, {
954
+ status: "completed" | "in_progress" | "failed";
955
+ createdAt: string;
956
+ updatedAt: string;
957
+ farmId: string;
958
+ fieldId: string;
959
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
960
+ workflowType: "recommendation_to_task";
961
+ triggerEvent: string;
962
+ triggerId: string;
963
+ agentResults: {
964
+ summary: {
965
+ skipped: number;
966
+ sourceType: string;
967
+ tasksCreated: number;
968
+ tasksUpdated: number;
969
+ };
970
+ results: {
971
+ reason: string;
972
+ recommendation: {
973
+ priority: number;
974
+ action: string;
975
+ details: string;
976
+ timing: string;
977
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
978
+ confidence?: number | undefined;
979
+ materials?: {
980
+ name: string;
981
+ unit: string;
982
+ quantity: number;
983
+ inventoryItemId?: string | undefined;
984
+ totalCost?: number | undefined;
985
+ costPerUnit?: number | undefined;
986
+ availability?: string | undefined;
987
+ }[] | undefined;
988
+ applicationMethod?: string | undefined;
989
+ expectedOutcome?: string | undefined;
990
+ preventiveMeasures?: string[] | undefined;
991
+ estimatedTime?: string | undefined;
992
+ riskLevel?: string | undefined;
993
+ };
994
+ outcome: "error" | "created" | "updated" | "skipped";
995
+ taskId?: string | undefined;
996
+ }[];
997
+ taskReview?: any;
998
+ } | null;
999
+ errorMessage: string | null;
1000
+ completedAt: Date | null;
1001
+ }, {
1002
+ status: "completed" | "in_progress" | "failed";
1003
+ createdAt: string;
1004
+ updatedAt: string;
1005
+ farmId: string;
1006
+ fieldId: string;
1007
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
1008
+ workflowType: "recommendation_to_task";
1009
+ triggerEvent: string;
1010
+ triggerId: string;
1011
+ agentResults: {
1012
+ summary: {
1013
+ skipped: number;
1014
+ sourceType: string;
1015
+ tasksCreated: number;
1016
+ tasksUpdated: number;
1017
+ };
1018
+ results: {
1019
+ reason: string;
1020
+ recommendation: {
1021
+ priority: number;
1022
+ action: string;
1023
+ details: string;
1024
+ timing: string;
1025
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1026
+ confidence?: number | undefined;
1027
+ materials?: {
1028
+ name: string;
1029
+ unit: string;
1030
+ quantity: number;
1031
+ inventoryItemId?: string | undefined;
1032
+ totalCost?: number | undefined;
1033
+ costPerUnit?: number | undefined;
1034
+ availability?: string | undefined;
1035
+ }[] | undefined;
1036
+ applicationMethod?: string | undefined;
1037
+ expectedOutcome?: string | undefined;
1038
+ preventiveMeasures?: string[] | undefined;
1039
+ estimatedTime?: string | undefined;
1040
+ riskLevel?: string | undefined;
1041
+ };
1042
+ outcome: "error" | "created" | "updated" | "skipped";
1043
+ taskId?: string | undefined;
1044
+ }[];
1045
+ taskReview?: any;
1046
+ } | null;
1047
+ errorMessage: string | null;
1048
+ completedAt: Date | null;
1049
+ }>;
1050
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1051
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1052
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ type: string;
1055
+ id: string;
1056
+ attributes: {
1057
+ status: "completed" | "in_progress" | "failed";
1058
+ createdAt: string;
1059
+ updatedAt: string;
1060
+ farmId: string;
1061
+ fieldId: string;
1062
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
1063
+ workflowType: "recommendation_to_task";
1064
+ triggerEvent: string;
1065
+ triggerId: string;
1066
+ agentResults: {
1067
+ summary: {
1068
+ skipped: number;
1069
+ sourceType: string;
1070
+ tasksCreated: number;
1071
+ tasksUpdated: number;
1072
+ };
1073
+ results: {
1074
+ reason: string;
1075
+ recommendation: {
1076
+ priority: number;
1077
+ action: string;
1078
+ details: string;
1079
+ timing: string;
1080
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1081
+ confidence?: number | undefined;
1082
+ materials?: {
1083
+ name: string;
1084
+ unit: string;
1085
+ quantity: number;
1086
+ inventoryItemId?: string | undefined;
1087
+ totalCost?: number | undefined;
1088
+ costPerUnit?: number | undefined;
1089
+ availability?: string | undefined;
1090
+ }[] | undefined;
1091
+ applicationMethod?: string | undefined;
1092
+ expectedOutcome?: string | undefined;
1093
+ preventiveMeasures?: string[] | undefined;
1094
+ estimatedTime?: string | undefined;
1095
+ riskLevel?: string | undefined;
1096
+ };
1097
+ outcome: "error" | "created" | "updated" | "skipped";
1098
+ taskId?: string | undefined;
1099
+ }[];
1100
+ taskReview?: any;
1101
+ } | null;
1102
+ errorMessage: string | null;
1103
+ completedAt: Date | null;
1104
+ };
1105
+ relationships?: Record<string, unknown> | undefined;
1106
+ links?: Record<string, string> | undefined;
1107
+ meta?: Record<string, unknown> | undefined;
1108
+ }, {
1109
+ type: string;
1110
+ id: string;
1111
+ attributes: {
1112
+ status: "completed" | "in_progress" | "failed";
1113
+ createdAt: string;
1114
+ updatedAt: string;
1115
+ farmId: string;
1116
+ fieldId: string;
1117
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
1118
+ workflowType: "recommendation_to_task";
1119
+ triggerEvent: string;
1120
+ triggerId: string;
1121
+ agentResults: {
1122
+ summary: {
1123
+ skipped: number;
1124
+ sourceType: string;
1125
+ tasksCreated: number;
1126
+ tasksUpdated: number;
1127
+ };
1128
+ results: {
1129
+ reason: string;
1130
+ recommendation: {
1131
+ priority: number;
1132
+ action: string;
1133
+ details: string;
1134
+ timing: string;
1135
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1136
+ confidence?: number | undefined;
1137
+ materials?: {
1138
+ name: string;
1139
+ unit: string;
1140
+ quantity: number;
1141
+ inventoryItemId?: string | undefined;
1142
+ totalCost?: number | undefined;
1143
+ costPerUnit?: number | undefined;
1144
+ availability?: string | undefined;
1145
+ }[] | undefined;
1146
+ applicationMethod?: string | undefined;
1147
+ expectedOutcome?: string | undefined;
1148
+ preventiveMeasures?: string[] | undefined;
1149
+ estimatedTime?: string | undefined;
1150
+ riskLevel?: string | undefined;
1151
+ };
1152
+ outcome: "error" | "created" | "updated" | "skipped";
1153
+ taskId?: string | undefined;
1154
+ }[];
1155
+ taskReview?: any;
1156
+ } | null;
1157
+ errorMessage: string | null;
1158
+ completedAt: Date | null;
1159
+ };
1160
+ relationships?: Record<string, unknown> | undefined;
1161
+ links?: Record<string, string> | undefined;
1162
+ meta?: Record<string, unknown> | undefined;
1163
+ }>;
1164
+ export declare const agentWorkflowResponseSchema: z.ZodObject<{
1165
+ data: z.ZodObject<{
1166
+ type: z.ZodLiteral<string>;
1167
+ id: z.ZodString;
1168
+ attributes: z.ZodObject<{
1169
+ workflowType: z.ZodLiteral<"recommendation_to_task">;
1170
+ triggerEvent: z.ZodString;
1171
+ triggerId: z.ZodString;
1172
+ fieldId: z.ZodString;
1173
+ farmId: z.ZodString;
1174
+ status: z.ZodEnum<["in_progress", "completed", "failed"]>;
1175
+ outcome: z.ZodNullable<z.ZodEnum<["task_created", "task_updated", "no_action_needed", "error"]>>;
1176
+ agentResults: z.ZodNullable<z.ZodObject<{
1177
+ summary: z.ZodObject<{
1178
+ sourceType: z.ZodString;
1179
+ tasksCreated: z.ZodNumber;
1180
+ tasksUpdated: z.ZodNumber;
1181
+ skipped: z.ZodNumber;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ skipped: number;
1184
+ sourceType: string;
1185
+ tasksCreated: number;
1186
+ tasksUpdated: number;
1187
+ }, {
1188
+ skipped: number;
1189
+ sourceType: string;
1190
+ tasksCreated: number;
1191
+ tasksUpdated: number;
1192
+ }>;
1193
+ results: z.ZodArray<z.ZodObject<{
1194
+ recommendation: z.ZodObject<{
1195
+ priority: z.ZodNumber;
1196
+ action: z.ZodString;
1197
+ details: z.ZodString;
1198
+ timing: z.ZodString;
1199
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
1200
+ confidence: z.ZodOptional<z.ZodNumber>;
1201
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
1202
+ inventoryItemId: z.ZodOptional<z.ZodString>;
1203
+ name: z.ZodString;
1204
+ quantity: z.ZodNumber;
1205
+ unit: z.ZodString;
1206
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
1207
+ totalCost: z.ZodOptional<z.ZodNumber>;
1208
+ availability: z.ZodOptional<z.ZodString>;
1209
+ }, "strip", z.ZodTypeAny, {
1210
+ name: string;
1211
+ unit: string;
1212
+ quantity: number;
1213
+ inventoryItemId?: string | undefined;
1214
+ totalCost?: number | undefined;
1215
+ costPerUnit?: number | undefined;
1216
+ availability?: string | undefined;
1217
+ }, {
1218
+ name: string;
1219
+ unit: string;
1220
+ quantity: number;
1221
+ inventoryItemId?: string | undefined;
1222
+ totalCost?: number | undefined;
1223
+ costPerUnit?: number | undefined;
1224
+ availability?: string | undefined;
1225
+ }>, "many">>;
1226
+ applicationMethod: z.ZodOptional<z.ZodString>;
1227
+ expectedOutcome: z.ZodOptional<z.ZodString>;
1228
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1229
+ estimatedTime: z.ZodOptional<z.ZodString>;
1230
+ riskLevel: z.ZodOptional<z.ZodString>;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ priority: number;
1233
+ action: string;
1234
+ details: string;
1235
+ timing: string;
1236
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1237
+ confidence?: number | undefined;
1238
+ materials?: {
1239
+ name: string;
1240
+ unit: string;
1241
+ quantity: number;
1242
+ inventoryItemId?: string | undefined;
1243
+ totalCost?: number | undefined;
1244
+ costPerUnit?: number | undefined;
1245
+ availability?: string | undefined;
1246
+ }[] | undefined;
1247
+ applicationMethod?: string | undefined;
1248
+ expectedOutcome?: string | undefined;
1249
+ preventiveMeasures?: string[] | undefined;
1250
+ estimatedTime?: string | undefined;
1251
+ riskLevel?: string | undefined;
1252
+ }, {
1253
+ priority: number;
1254
+ action: string;
1255
+ details: string;
1256
+ timing: string;
1257
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1258
+ confidence?: number | undefined;
1259
+ materials?: {
1260
+ name: string;
1261
+ unit: string;
1262
+ quantity: number;
1263
+ inventoryItemId?: string | undefined;
1264
+ totalCost?: number | undefined;
1265
+ costPerUnit?: number | undefined;
1266
+ availability?: string | undefined;
1267
+ }[] | undefined;
1268
+ applicationMethod?: string | undefined;
1269
+ expectedOutcome?: string | undefined;
1270
+ preventiveMeasures?: string[] | undefined;
1271
+ estimatedTime?: string | undefined;
1272
+ riskLevel?: string | undefined;
1273
+ }>;
1274
+ outcome: z.ZodEnum<["created", "updated", "skipped", "error"]>;
1275
+ taskId: z.ZodOptional<z.ZodString>;
1276
+ reason: z.ZodString;
1277
+ }, "strip", z.ZodTypeAny, {
1278
+ reason: string;
1279
+ recommendation: {
1280
+ priority: number;
1281
+ action: string;
1282
+ details: string;
1283
+ timing: string;
1284
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1285
+ confidence?: number | undefined;
1286
+ materials?: {
1287
+ name: string;
1288
+ unit: string;
1289
+ quantity: number;
1290
+ inventoryItemId?: string | undefined;
1291
+ totalCost?: number | undefined;
1292
+ costPerUnit?: number | undefined;
1293
+ availability?: string | undefined;
1294
+ }[] | undefined;
1295
+ applicationMethod?: string | undefined;
1296
+ expectedOutcome?: string | undefined;
1297
+ preventiveMeasures?: string[] | undefined;
1298
+ estimatedTime?: string | undefined;
1299
+ riskLevel?: string | undefined;
1300
+ };
1301
+ outcome: "error" | "created" | "updated" | "skipped";
1302
+ taskId?: string | undefined;
1303
+ }, {
1304
+ reason: string;
1305
+ recommendation: {
1306
+ priority: number;
1307
+ action: string;
1308
+ details: string;
1309
+ timing: string;
1310
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1311
+ confidence?: number | undefined;
1312
+ materials?: {
1313
+ name: string;
1314
+ unit: string;
1315
+ quantity: number;
1316
+ inventoryItemId?: string | undefined;
1317
+ totalCost?: number | undefined;
1318
+ costPerUnit?: number | undefined;
1319
+ availability?: string | undefined;
1320
+ }[] | undefined;
1321
+ applicationMethod?: string | undefined;
1322
+ expectedOutcome?: string | undefined;
1323
+ preventiveMeasures?: string[] | undefined;
1324
+ estimatedTime?: string | undefined;
1325
+ riskLevel?: string | undefined;
1326
+ };
1327
+ outcome: "error" | "created" | "updated" | "skipped";
1328
+ taskId?: string | undefined;
1329
+ }>, "many">;
1330
+ taskReview: z.ZodOptional<z.ZodAny>;
1331
+ }, "strip", z.ZodTypeAny, {
1332
+ summary: {
1333
+ skipped: number;
1334
+ sourceType: string;
1335
+ tasksCreated: number;
1336
+ tasksUpdated: number;
1337
+ };
1338
+ results: {
1339
+ reason: string;
1340
+ recommendation: {
1341
+ priority: number;
1342
+ action: string;
1343
+ details: string;
1344
+ timing: string;
1345
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1346
+ confidence?: number | undefined;
1347
+ materials?: {
1348
+ name: string;
1349
+ unit: string;
1350
+ quantity: number;
1351
+ inventoryItemId?: string | undefined;
1352
+ totalCost?: number | undefined;
1353
+ costPerUnit?: number | undefined;
1354
+ availability?: string | undefined;
1355
+ }[] | undefined;
1356
+ applicationMethod?: string | undefined;
1357
+ expectedOutcome?: string | undefined;
1358
+ preventiveMeasures?: string[] | undefined;
1359
+ estimatedTime?: string | undefined;
1360
+ riskLevel?: string | undefined;
1361
+ };
1362
+ outcome: "error" | "created" | "updated" | "skipped";
1363
+ taskId?: string | undefined;
1364
+ }[];
1365
+ taskReview?: any;
1366
+ }, {
1367
+ summary: {
1368
+ skipped: number;
1369
+ sourceType: string;
1370
+ tasksCreated: number;
1371
+ tasksUpdated: number;
1372
+ };
1373
+ results: {
1374
+ reason: string;
1375
+ recommendation: {
1376
+ priority: number;
1377
+ action: string;
1378
+ details: string;
1379
+ timing: string;
1380
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1381
+ confidence?: number | undefined;
1382
+ materials?: {
1383
+ name: string;
1384
+ unit: string;
1385
+ quantity: number;
1386
+ inventoryItemId?: string | undefined;
1387
+ totalCost?: number | undefined;
1388
+ costPerUnit?: number | undefined;
1389
+ availability?: string | undefined;
1390
+ }[] | undefined;
1391
+ applicationMethod?: string | undefined;
1392
+ expectedOutcome?: string | undefined;
1393
+ preventiveMeasures?: string[] | undefined;
1394
+ estimatedTime?: string | undefined;
1395
+ riskLevel?: string | undefined;
1396
+ };
1397
+ outcome: "error" | "created" | "updated" | "skipped";
1398
+ taskId?: string | undefined;
1399
+ }[];
1400
+ taskReview?: any;
1401
+ }>>;
1402
+ errorMessage: z.ZodNullable<z.ZodString>;
1403
+ completedAt: z.ZodNullable<z.ZodDate>;
1404
+ } & {
1405
+ createdAt: z.ZodString;
1406
+ updatedAt: z.ZodString;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ status: "completed" | "in_progress" | "failed";
1409
+ createdAt: string;
1410
+ updatedAt: string;
1411
+ farmId: string;
1412
+ fieldId: string;
1413
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
1414
+ workflowType: "recommendation_to_task";
1415
+ triggerEvent: string;
1416
+ triggerId: string;
1417
+ agentResults: {
1418
+ summary: {
1419
+ skipped: number;
1420
+ sourceType: string;
1421
+ tasksCreated: number;
1422
+ tasksUpdated: number;
1423
+ };
1424
+ results: {
1425
+ reason: string;
1426
+ recommendation: {
1427
+ priority: number;
1428
+ action: string;
1429
+ details: string;
1430
+ timing: string;
1431
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1432
+ confidence?: number | undefined;
1433
+ materials?: {
1434
+ name: string;
1435
+ unit: string;
1436
+ quantity: number;
1437
+ inventoryItemId?: string | undefined;
1438
+ totalCost?: number | undefined;
1439
+ costPerUnit?: number | undefined;
1440
+ availability?: string | undefined;
1441
+ }[] | undefined;
1442
+ applicationMethod?: string | undefined;
1443
+ expectedOutcome?: string | undefined;
1444
+ preventiveMeasures?: string[] | undefined;
1445
+ estimatedTime?: string | undefined;
1446
+ riskLevel?: string | undefined;
1447
+ };
1448
+ outcome: "error" | "created" | "updated" | "skipped";
1449
+ taskId?: string | undefined;
1450
+ }[];
1451
+ taskReview?: any;
1452
+ } | null;
1453
+ errorMessage: string | null;
1454
+ completedAt: Date | null;
1455
+ }, {
1456
+ status: "completed" | "in_progress" | "failed";
1457
+ createdAt: string;
1458
+ updatedAt: string;
1459
+ farmId: string;
1460
+ fieldId: string;
1461
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
1462
+ workflowType: "recommendation_to_task";
1463
+ triggerEvent: string;
1464
+ triggerId: string;
1465
+ agentResults: {
1466
+ summary: {
1467
+ skipped: number;
1468
+ sourceType: string;
1469
+ tasksCreated: number;
1470
+ tasksUpdated: number;
1471
+ };
1472
+ results: {
1473
+ reason: string;
1474
+ recommendation: {
1475
+ priority: number;
1476
+ action: string;
1477
+ details: string;
1478
+ timing: string;
1479
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1480
+ confidence?: number | undefined;
1481
+ materials?: {
1482
+ name: string;
1483
+ unit: string;
1484
+ quantity: number;
1485
+ inventoryItemId?: string | undefined;
1486
+ totalCost?: number | undefined;
1487
+ costPerUnit?: number | undefined;
1488
+ availability?: string | undefined;
1489
+ }[] | undefined;
1490
+ applicationMethod?: string | undefined;
1491
+ expectedOutcome?: string | undefined;
1492
+ preventiveMeasures?: string[] | undefined;
1493
+ estimatedTime?: string | undefined;
1494
+ riskLevel?: string | undefined;
1495
+ };
1496
+ outcome: "error" | "created" | "updated" | "skipped";
1497
+ taskId?: string | undefined;
1498
+ }[];
1499
+ taskReview?: any;
1500
+ } | null;
1501
+ errorMessage: string | null;
1502
+ completedAt: Date | null;
1503
+ }>;
1504
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1505
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1506
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ type: string;
1509
+ id: string;
1510
+ attributes: {
1511
+ status: "completed" | "in_progress" | "failed";
1512
+ createdAt: string;
1513
+ updatedAt: string;
1514
+ farmId: string;
1515
+ fieldId: string;
1516
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
1517
+ workflowType: "recommendation_to_task";
1518
+ triggerEvent: string;
1519
+ triggerId: string;
1520
+ agentResults: {
1521
+ summary: {
1522
+ skipped: number;
1523
+ sourceType: string;
1524
+ tasksCreated: number;
1525
+ tasksUpdated: number;
1526
+ };
1527
+ results: {
1528
+ reason: string;
1529
+ recommendation: {
1530
+ priority: number;
1531
+ action: string;
1532
+ details: string;
1533
+ timing: string;
1534
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1535
+ confidence?: number | undefined;
1536
+ materials?: {
1537
+ name: string;
1538
+ unit: string;
1539
+ quantity: number;
1540
+ inventoryItemId?: string | undefined;
1541
+ totalCost?: number | undefined;
1542
+ costPerUnit?: number | undefined;
1543
+ availability?: string | undefined;
1544
+ }[] | undefined;
1545
+ applicationMethod?: string | undefined;
1546
+ expectedOutcome?: string | undefined;
1547
+ preventiveMeasures?: string[] | undefined;
1548
+ estimatedTime?: string | undefined;
1549
+ riskLevel?: string | undefined;
1550
+ };
1551
+ outcome: "error" | "created" | "updated" | "skipped";
1552
+ taskId?: string | undefined;
1553
+ }[];
1554
+ taskReview?: any;
1555
+ } | null;
1556
+ errorMessage: string | null;
1557
+ completedAt: Date | null;
1558
+ };
1559
+ relationships?: Record<string, unknown> | undefined;
1560
+ links?: Record<string, string> | undefined;
1561
+ meta?: Record<string, unknown> | undefined;
1562
+ }, {
1563
+ type: string;
1564
+ id: string;
1565
+ attributes: {
1566
+ status: "completed" | "in_progress" | "failed";
1567
+ createdAt: string;
1568
+ updatedAt: string;
1569
+ farmId: string;
1570
+ fieldId: string;
1571
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
1572
+ workflowType: "recommendation_to_task";
1573
+ triggerEvent: string;
1574
+ triggerId: string;
1575
+ agentResults: {
1576
+ summary: {
1577
+ skipped: number;
1578
+ sourceType: string;
1579
+ tasksCreated: number;
1580
+ tasksUpdated: number;
1581
+ };
1582
+ results: {
1583
+ reason: string;
1584
+ recommendation: {
1585
+ priority: number;
1586
+ action: string;
1587
+ details: string;
1588
+ timing: string;
1589
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1590
+ confidence?: number | undefined;
1591
+ materials?: {
1592
+ name: string;
1593
+ unit: string;
1594
+ quantity: number;
1595
+ inventoryItemId?: string | undefined;
1596
+ totalCost?: number | undefined;
1597
+ costPerUnit?: number | undefined;
1598
+ availability?: string | undefined;
1599
+ }[] | undefined;
1600
+ applicationMethod?: string | undefined;
1601
+ expectedOutcome?: string | undefined;
1602
+ preventiveMeasures?: string[] | undefined;
1603
+ estimatedTime?: string | undefined;
1604
+ riskLevel?: string | undefined;
1605
+ };
1606
+ outcome: "error" | "created" | "updated" | "skipped";
1607
+ taskId?: string | undefined;
1608
+ }[];
1609
+ taskReview?: any;
1610
+ } | null;
1611
+ errorMessage: string | null;
1612
+ completedAt: Date | null;
1613
+ };
1614
+ relationships?: Record<string, unknown> | undefined;
1615
+ links?: Record<string, string> | undefined;
1616
+ meta?: Record<string, unknown> | undefined;
1617
+ }>;
1618
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1619
+ type: z.ZodString;
1620
+ id: z.ZodString;
1621
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1622
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1623
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1624
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1625
+ }, "strip", z.ZodTypeAny, {
1626
+ type: string;
1627
+ id: string;
1628
+ attributes?: Record<string, unknown> | undefined;
1629
+ relationships?: Record<string, unknown> | undefined;
1630
+ links?: Record<string, string> | undefined;
1631
+ meta?: Record<string, unknown> | undefined;
1632
+ }, {
1633
+ type: string;
1634
+ id: string;
1635
+ attributes?: Record<string, unknown> | undefined;
1636
+ relationships?: Record<string, unknown> | undefined;
1637
+ links?: Record<string, string> | undefined;
1638
+ meta?: Record<string, unknown> | undefined;
1639
+ }>, "many">>;
1640
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1641
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ data: {
1644
+ type: string;
1645
+ id: string;
1646
+ attributes: {
1647
+ status: "completed" | "in_progress" | "failed";
1648
+ createdAt: string;
1649
+ updatedAt: string;
1650
+ farmId: string;
1651
+ fieldId: string;
1652
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
1653
+ workflowType: "recommendation_to_task";
1654
+ triggerEvent: string;
1655
+ triggerId: string;
1656
+ agentResults: {
1657
+ summary: {
1658
+ skipped: number;
1659
+ sourceType: string;
1660
+ tasksCreated: number;
1661
+ tasksUpdated: number;
1662
+ };
1663
+ results: {
1664
+ reason: string;
1665
+ recommendation: {
1666
+ priority: number;
1667
+ action: string;
1668
+ details: string;
1669
+ timing: string;
1670
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1671
+ confidence?: number | undefined;
1672
+ materials?: {
1673
+ name: string;
1674
+ unit: string;
1675
+ quantity: number;
1676
+ inventoryItemId?: string | undefined;
1677
+ totalCost?: number | undefined;
1678
+ costPerUnit?: number | undefined;
1679
+ availability?: string | undefined;
1680
+ }[] | undefined;
1681
+ applicationMethod?: string | undefined;
1682
+ expectedOutcome?: string | undefined;
1683
+ preventiveMeasures?: string[] | undefined;
1684
+ estimatedTime?: string | undefined;
1685
+ riskLevel?: string | undefined;
1686
+ };
1687
+ outcome: "error" | "created" | "updated" | "skipped";
1688
+ taskId?: string | undefined;
1689
+ }[];
1690
+ taskReview?: any;
1691
+ } | null;
1692
+ errorMessage: string | null;
1693
+ completedAt: Date | null;
1694
+ };
1695
+ relationships?: Record<string, unknown> | undefined;
1696
+ links?: Record<string, string> | undefined;
1697
+ meta?: Record<string, unknown> | undefined;
1698
+ };
1699
+ links?: Record<string, string> | undefined;
1700
+ meta?: Record<string, unknown> | undefined;
1701
+ included?: {
1702
+ type: string;
1703
+ id: string;
1704
+ attributes?: Record<string, unknown> | undefined;
1705
+ relationships?: Record<string, unknown> | undefined;
1706
+ links?: Record<string, string> | undefined;
1707
+ meta?: Record<string, unknown> | undefined;
1708
+ }[] | undefined;
1709
+ }, {
1710
+ data: {
1711
+ type: string;
1712
+ id: string;
1713
+ attributes: {
1714
+ status: "completed" | "in_progress" | "failed";
1715
+ createdAt: string;
1716
+ updatedAt: string;
1717
+ farmId: string;
1718
+ fieldId: string;
1719
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
1720
+ workflowType: "recommendation_to_task";
1721
+ triggerEvent: string;
1722
+ triggerId: string;
1723
+ agentResults: {
1724
+ summary: {
1725
+ skipped: number;
1726
+ sourceType: string;
1727
+ tasksCreated: number;
1728
+ tasksUpdated: number;
1729
+ };
1730
+ results: {
1731
+ reason: string;
1732
+ recommendation: {
1733
+ priority: number;
1734
+ action: string;
1735
+ details: string;
1736
+ timing: string;
1737
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1738
+ confidence?: number | undefined;
1739
+ materials?: {
1740
+ name: string;
1741
+ unit: string;
1742
+ quantity: number;
1743
+ inventoryItemId?: string | undefined;
1744
+ totalCost?: number | undefined;
1745
+ costPerUnit?: number | undefined;
1746
+ availability?: string | undefined;
1747
+ }[] | undefined;
1748
+ applicationMethod?: string | undefined;
1749
+ expectedOutcome?: string | undefined;
1750
+ preventiveMeasures?: string[] | undefined;
1751
+ estimatedTime?: string | undefined;
1752
+ riskLevel?: string | undefined;
1753
+ };
1754
+ outcome: "error" | "created" | "updated" | "skipped";
1755
+ taskId?: string | undefined;
1756
+ }[];
1757
+ taskReview?: any;
1758
+ } | null;
1759
+ errorMessage: string | null;
1760
+ completedAt: Date | null;
1761
+ };
1762
+ relationships?: Record<string, unknown> | undefined;
1763
+ links?: Record<string, string> | undefined;
1764
+ meta?: Record<string, unknown> | undefined;
1765
+ };
1766
+ links?: Record<string, string> | undefined;
1767
+ meta?: Record<string, unknown> | undefined;
1768
+ included?: {
1769
+ type: string;
1770
+ id: string;
1771
+ attributes?: Record<string, unknown> | undefined;
1772
+ relationships?: Record<string, unknown> | undefined;
1773
+ links?: Record<string, string> | undefined;
1774
+ meta?: Record<string, unknown> | undefined;
1775
+ }[] | undefined;
1776
+ }>;
1777
+ export declare const agentWorkflowListResponseSchema: z.ZodObject<{
1778
+ data: z.ZodArray<z.ZodObject<{
1779
+ type: z.ZodLiteral<string>;
1780
+ id: z.ZodString;
1781
+ attributes: z.ZodObject<{
1782
+ workflowType: z.ZodLiteral<"recommendation_to_task">;
1783
+ triggerEvent: z.ZodString;
1784
+ triggerId: z.ZodString;
1785
+ fieldId: z.ZodString;
1786
+ farmId: z.ZodString;
1787
+ status: z.ZodEnum<["in_progress", "completed", "failed"]>;
1788
+ outcome: z.ZodNullable<z.ZodEnum<["task_created", "task_updated", "no_action_needed", "error"]>>;
1789
+ agentResults: z.ZodNullable<z.ZodObject<{
1790
+ summary: z.ZodObject<{
1791
+ sourceType: z.ZodString;
1792
+ tasksCreated: z.ZodNumber;
1793
+ tasksUpdated: z.ZodNumber;
1794
+ skipped: z.ZodNumber;
1795
+ }, "strip", z.ZodTypeAny, {
1796
+ skipped: number;
1797
+ sourceType: string;
1798
+ tasksCreated: number;
1799
+ tasksUpdated: number;
1800
+ }, {
1801
+ skipped: number;
1802
+ sourceType: string;
1803
+ tasksCreated: number;
1804
+ tasksUpdated: number;
1805
+ }>;
1806
+ results: z.ZodArray<z.ZodObject<{
1807
+ recommendation: z.ZodObject<{
1808
+ priority: z.ZodNumber;
1809
+ action: z.ZodString;
1810
+ details: z.ZodString;
1811
+ timing: z.ZodString;
1812
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
1813
+ confidence: z.ZodOptional<z.ZodNumber>;
1814
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
1815
+ inventoryItemId: z.ZodOptional<z.ZodString>;
1816
+ name: z.ZodString;
1817
+ quantity: z.ZodNumber;
1818
+ unit: z.ZodString;
1819
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
1820
+ totalCost: z.ZodOptional<z.ZodNumber>;
1821
+ availability: z.ZodOptional<z.ZodString>;
1822
+ }, "strip", z.ZodTypeAny, {
1823
+ name: string;
1824
+ unit: string;
1825
+ quantity: number;
1826
+ inventoryItemId?: string | undefined;
1827
+ totalCost?: number | undefined;
1828
+ costPerUnit?: number | undefined;
1829
+ availability?: string | undefined;
1830
+ }, {
1831
+ name: string;
1832
+ unit: string;
1833
+ quantity: number;
1834
+ inventoryItemId?: string | undefined;
1835
+ totalCost?: number | undefined;
1836
+ costPerUnit?: number | undefined;
1837
+ availability?: string | undefined;
1838
+ }>, "many">>;
1839
+ applicationMethod: z.ZodOptional<z.ZodString>;
1840
+ expectedOutcome: z.ZodOptional<z.ZodString>;
1841
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1842
+ estimatedTime: z.ZodOptional<z.ZodString>;
1843
+ riskLevel: z.ZodOptional<z.ZodString>;
1844
+ }, "strip", z.ZodTypeAny, {
1845
+ priority: number;
1846
+ action: string;
1847
+ details: string;
1848
+ timing: string;
1849
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1850
+ confidence?: number | undefined;
1851
+ materials?: {
1852
+ name: string;
1853
+ unit: string;
1854
+ quantity: number;
1855
+ inventoryItemId?: string | undefined;
1856
+ totalCost?: number | undefined;
1857
+ costPerUnit?: number | undefined;
1858
+ availability?: string | undefined;
1859
+ }[] | undefined;
1860
+ applicationMethod?: string | undefined;
1861
+ expectedOutcome?: string | undefined;
1862
+ preventiveMeasures?: string[] | undefined;
1863
+ estimatedTime?: string | undefined;
1864
+ riskLevel?: string | undefined;
1865
+ }, {
1866
+ priority: number;
1867
+ action: string;
1868
+ details: string;
1869
+ timing: string;
1870
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1871
+ confidence?: number | undefined;
1872
+ materials?: {
1873
+ name: string;
1874
+ unit: string;
1875
+ quantity: number;
1876
+ inventoryItemId?: string | undefined;
1877
+ totalCost?: number | undefined;
1878
+ costPerUnit?: number | undefined;
1879
+ availability?: string | undefined;
1880
+ }[] | undefined;
1881
+ applicationMethod?: string | undefined;
1882
+ expectedOutcome?: string | undefined;
1883
+ preventiveMeasures?: string[] | undefined;
1884
+ estimatedTime?: string | undefined;
1885
+ riskLevel?: string | undefined;
1886
+ }>;
1887
+ outcome: z.ZodEnum<["created", "updated", "skipped", "error"]>;
1888
+ taskId: z.ZodOptional<z.ZodString>;
1889
+ reason: z.ZodString;
1890
+ }, "strip", z.ZodTypeAny, {
1891
+ reason: string;
1892
+ recommendation: {
1893
+ priority: number;
1894
+ action: string;
1895
+ details: string;
1896
+ timing: string;
1897
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1898
+ confidence?: number | undefined;
1899
+ materials?: {
1900
+ name: string;
1901
+ unit: string;
1902
+ quantity: number;
1903
+ inventoryItemId?: string | undefined;
1904
+ totalCost?: number | undefined;
1905
+ costPerUnit?: number | undefined;
1906
+ availability?: string | undefined;
1907
+ }[] | undefined;
1908
+ applicationMethod?: string | undefined;
1909
+ expectedOutcome?: string | undefined;
1910
+ preventiveMeasures?: string[] | undefined;
1911
+ estimatedTime?: string | undefined;
1912
+ riskLevel?: string | undefined;
1913
+ };
1914
+ outcome: "error" | "created" | "updated" | "skipped";
1915
+ taskId?: string | undefined;
1916
+ }, {
1917
+ reason: string;
1918
+ recommendation: {
1919
+ priority: number;
1920
+ action: string;
1921
+ details: string;
1922
+ timing: string;
1923
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1924
+ confidence?: number | undefined;
1925
+ materials?: {
1926
+ name: string;
1927
+ unit: string;
1928
+ quantity: number;
1929
+ inventoryItemId?: string | undefined;
1930
+ totalCost?: number | undefined;
1931
+ costPerUnit?: number | undefined;
1932
+ availability?: string | undefined;
1933
+ }[] | undefined;
1934
+ applicationMethod?: string | undefined;
1935
+ expectedOutcome?: string | undefined;
1936
+ preventiveMeasures?: string[] | undefined;
1937
+ estimatedTime?: string | undefined;
1938
+ riskLevel?: string | undefined;
1939
+ };
1940
+ outcome: "error" | "created" | "updated" | "skipped";
1941
+ taskId?: string | undefined;
1942
+ }>, "many">;
1943
+ taskReview: z.ZodOptional<z.ZodAny>;
1944
+ }, "strip", z.ZodTypeAny, {
1945
+ summary: {
1946
+ skipped: number;
1947
+ sourceType: string;
1948
+ tasksCreated: number;
1949
+ tasksUpdated: number;
1950
+ };
1951
+ results: {
1952
+ reason: string;
1953
+ recommendation: {
1954
+ priority: number;
1955
+ action: string;
1956
+ details: string;
1957
+ timing: string;
1958
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1959
+ confidence?: number | undefined;
1960
+ materials?: {
1961
+ name: string;
1962
+ unit: string;
1963
+ quantity: number;
1964
+ inventoryItemId?: string | undefined;
1965
+ totalCost?: number | undefined;
1966
+ costPerUnit?: number | undefined;
1967
+ availability?: string | undefined;
1968
+ }[] | undefined;
1969
+ applicationMethod?: string | undefined;
1970
+ expectedOutcome?: string | undefined;
1971
+ preventiveMeasures?: string[] | undefined;
1972
+ estimatedTime?: string | undefined;
1973
+ riskLevel?: string | undefined;
1974
+ };
1975
+ outcome: "error" | "created" | "updated" | "skipped";
1976
+ taskId?: string | undefined;
1977
+ }[];
1978
+ taskReview?: any;
1979
+ }, {
1980
+ summary: {
1981
+ skipped: number;
1982
+ sourceType: string;
1983
+ tasksCreated: number;
1984
+ tasksUpdated: number;
1985
+ };
1986
+ results: {
1987
+ reason: string;
1988
+ recommendation: {
1989
+ priority: number;
1990
+ action: string;
1991
+ details: string;
1992
+ timing: string;
1993
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1994
+ confidence?: number | undefined;
1995
+ materials?: {
1996
+ name: string;
1997
+ unit: string;
1998
+ quantity: number;
1999
+ inventoryItemId?: string | undefined;
2000
+ totalCost?: number | undefined;
2001
+ costPerUnit?: number | undefined;
2002
+ availability?: string | undefined;
2003
+ }[] | undefined;
2004
+ applicationMethod?: string | undefined;
2005
+ expectedOutcome?: string | undefined;
2006
+ preventiveMeasures?: string[] | undefined;
2007
+ estimatedTime?: string | undefined;
2008
+ riskLevel?: string | undefined;
2009
+ };
2010
+ outcome: "error" | "created" | "updated" | "skipped";
2011
+ taskId?: string | undefined;
2012
+ }[];
2013
+ taskReview?: any;
2014
+ }>>;
2015
+ errorMessage: z.ZodNullable<z.ZodString>;
2016
+ completedAt: z.ZodNullable<z.ZodDate>;
2017
+ } & {
2018
+ createdAt: z.ZodString;
2019
+ updatedAt: z.ZodString;
2020
+ }, "strip", z.ZodTypeAny, {
2021
+ status: "completed" | "in_progress" | "failed";
2022
+ createdAt: string;
2023
+ updatedAt: string;
2024
+ farmId: string;
2025
+ fieldId: string;
2026
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
2027
+ workflowType: "recommendation_to_task";
2028
+ triggerEvent: string;
2029
+ triggerId: string;
2030
+ agentResults: {
2031
+ summary: {
2032
+ skipped: number;
2033
+ sourceType: string;
2034
+ tasksCreated: number;
2035
+ tasksUpdated: number;
2036
+ };
2037
+ results: {
2038
+ reason: string;
2039
+ recommendation: {
2040
+ priority: number;
2041
+ action: string;
2042
+ details: string;
2043
+ timing: string;
2044
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2045
+ confidence?: number | undefined;
2046
+ materials?: {
2047
+ name: string;
2048
+ unit: string;
2049
+ quantity: number;
2050
+ inventoryItemId?: string | undefined;
2051
+ totalCost?: number | undefined;
2052
+ costPerUnit?: number | undefined;
2053
+ availability?: string | undefined;
2054
+ }[] | undefined;
2055
+ applicationMethod?: string | undefined;
2056
+ expectedOutcome?: string | undefined;
2057
+ preventiveMeasures?: string[] | undefined;
2058
+ estimatedTime?: string | undefined;
2059
+ riskLevel?: string | undefined;
2060
+ };
2061
+ outcome: "error" | "created" | "updated" | "skipped";
2062
+ taskId?: string | undefined;
2063
+ }[];
2064
+ taskReview?: any;
2065
+ } | null;
2066
+ errorMessage: string | null;
2067
+ completedAt: Date | null;
2068
+ }, {
2069
+ status: "completed" | "in_progress" | "failed";
2070
+ createdAt: string;
2071
+ updatedAt: string;
2072
+ farmId: string;
2073
+ fieldId: string;
2074
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
2075
+ workflowType: "recommendation_to_task";
2076
+ triggerEvent: string;
2077
+ triggerId: string;
2078
+ agentResults: {
2079
+ summary: {
2080
+ skipped: number;
2081
+ sourceType: string;
2082
+ tasksCreated: number;
2083
+ tasksUpdated: number;
2084
+ };
2085
+ results: {
2086
+ reason: string;
2087
+ recommendation: {
2088
+ priority: number;
2089
+ action: string;
2090
+ details: string;
2091
+ timing: string;
2092
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2093
+ confidence?: number | undefined;
2094
+ materials?: {
2095
+ name: string;
2096
+ unit: string;
2097
+ quantity: number;
2098
+ inventoryItemId?: string | undefined;
2099
+ totalCost?: number | undefined;
2100
+ costPerUnit?: number | undefined;
2101
+ availability?: string | undefined;
2102
+ }[] | undefined;
2103
+ applicationMethod?: string | undefined;
2104
+ expectedOutcome?: string | undefined;
2105
+ preventiveMeasures?: string[] | undefined;
2106
+ estimatedTime?: string | undefined;
2107
+ riskLevel?: string | undefined;
2108
+ };
2109
+ outcome: "error" | "created" | "updated" | "skipped";
2110
+ taskId?: string | undefined;
2111
+ }[];
2112
+ taskReview?: any;
2113
+ } | null;
2114
+ errorMessage: string | null;
2115
+ completedAt: Date | null;
2116
+ }>;
2117
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2118
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2119
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2120
+ }, "strip", z.ZodTypeAny, {
2121
+ type: string;
2122
+ id: string;
2123
+ attributes: {
2124
+ status: "completed" | "in_progress" | "failed";
2125
+ createdAt: string;
2126
+ updatedAt: string;
2127
+ farmId: string;
2128
+ fieldId: string;
2129
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
2130
+ workflowType: "recommendation_to_task";
2131
+ triggerEvent: string;
2132
+ triggerId: string;
2133
+ agentResults: {
2134
+ summary: {
2135
+ skipped: number;
2136
+ sourceType: string;
2137
+ tasksCreated: number;
2138
+ tasksUpdated: number;
2139
+ };
2140
+ results: {
2141
+ reason: string;
2142
+ recommendation: {
2143
+ priority: number;
2144
+ action: string;
2145
+ details: string;
2146
+ timing: string;
2147
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2148
+ confidence?: number | undefined;
2149
+ materials?: {
2150
+ name: string;
2151
+ unit: string;
2152
+ quantity: number;
2153
+ inventoryItemId?: string | undefined;
2154
+ totalCost?: number | undefined;
2155
+ costPerUnit?: number | undefined;
2156
+ availability?: string | undefined;
2157
+ }[] | undefined;
2158
+ applicationMethod?: string | undefined;
2159
+ expectedOutcome?: string | undefined;
2160
+ preventiveMeasures?: string[] | undefined;
2161
+ estimatedTime?: string | undefined;
2162
+ riskLevel?: string | undefined;
2163
+ };
2164
+ outcome: "error" | "created" | "updated" | "skipped";
2165
+ taskId?: string | undefined;
2166
+ }[];
2167
+ taskReview?: any;
2168
+ } | null;
2169
+ errorMessage: string | null;
2170
+ completedAt: Date | null;
2171
+ };
2172
+ relationships?: Record<string, unknown> | undefined;
2173
+ links?: Record<string, string> | undefined;
2174
+ meta?: Record<string, unknown> | undefined;
2175
+ }, {
2176
+ type: string;
2177
+ id: string;
2178
+ attributes: {
2179
+ status: "completed" | "in_progress" | "failed";
2180
+ createdAt: string;
2181
+ updatedAt: string;
2182
+ farmId: string;
2183
+ fieldId: string;
2184
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
2185
+ workflowType: "recommendation_to_task";
2186
+ triggerEvent: string;
2187
+ triggerId: string;
2188
+ agentResults: {
2189
+ summary: {
2190
+ skipped: number;
2191
+ sourceType: string;
2192
+ tasksCreated: number;
2193
+ tasksUpdated: number;
2194
+ };
2195
+ results: {
2196
+ reason: string;
2197
+ recommendation: {
2198
+ priority: number;
2199
+ action: string;
2200
+ details: string;
2201
+ timing: string;
2202
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2203
+ confidence?: number | undefined;
2204
+ materials?: {
2205
+ name: string;
2206
+ unit: string;
2207
+ quantity: number;
2208
+ inventoryItemId?: string | undefined;
2209
+ totalCost?: number | undefined;
2210
+ costPerUnit?: number | undefined;
2211
+ availability?: string | undefined;
2212
+ }[] | undefined;
2213
+ applicationMethod?: string | undefined;
2214
+ expectedOutcome?: string | undefined;
2215
+ preventiveMeasures?: string[] | undefined;
2216
+ estimatedTime?: string | undefined;
2217
+ riskLevel?: string | undefined;
2218
+ };
2219
+ outcome: "error" | "created" | "updated" | "skipped";
2220
+ taskId?: string | undefined;
2221
+ }[];
2222
+ taskReview?: any;
2223
+ } | null;
2224
+ errorMessage: string | null;
2225
+ completedAt: Date | null;
2226
+ };
2227
+ relationships?: Record<string, unknown> | undefined;
2228
+ links?: Record<string, string> | undefined;
2229
+ meta?: Record<string, unknown> | undefined;
2230
+ }>, "many">;
2231
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2232
+ type: z.ZodString;
2233
+ id: z.ZodString;
2234
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2235
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2236
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2237
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2238
+ }, "strip", z.ZodTypeAny, {
2239
+ type: string;
2240
+ id: string;
2241
+ attributes?: Record<string, unknown> | undefined;
2242
+ relationships?: Record<string, unknown> | undefined;
2243
+ links?: Record<string, string> | undefined;
2244
+ meta?: Record<string, unknown> | undefined;
2245
+ }, {
2246
+ type: string;
2247
+ id: string;
2248
+ attributes?: Record<string, unknown> | undefined;
2249
+ relationships?: Record<string, unknown> | undefined;
2250
+ links?: Record<string, string> | undefined;
2251
+ meta?: Record<string, unknown> | undefined;
2252
+ }>, "many">>;
2253
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2254
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2255
+ }, "strip", z.ZodTypeAny, {
2256
+ data: {
2257
+ type: string;
2258
+ id: string;
2259
+ attributes: {
2260
+ status: "completed" | "in_progress" | "failed";
2261
+ createdAt: string;
2262
+ updatedAt: string;
2263
+ farmId: string;
2264
+ fieldId: string;
2265
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
2266
+ workflowType: "recommendation_to_task";
2267
+ triggerEvent: string;
2268
+ triggerId: string;
2269
+ agentResults: {
2270
+ summary: {
2271
+ skipped: number;
2272
+ sourceType: string;
2273
+ tasksCreated: number;
2274
+ tasksUpdated: number;
2275
+ };
2276
+ results: {
2277
+ reason: string;
2278
+ recommendation: {
2279
+ priority: number;
2280
+ action: string;
2281
+ details: string;
2282
+ timing: string;
2283
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2284
+ confidence?: number | undefined;
2285
+ materials?: {
2286
+ name: string;
2287
+ unit: string;
2288
+ quantity: number;
2289
+ inventoryItemId?: string | undefined;
2290
+ totalCost?: number | undefined;
2291
+ costPerUnit?: number | undefined;
2292
+ availability?: string | undefined;
2293
+ }[] | undefined;
2294
+ applicationMethod?: string | undefined;
2295
+ expectedOutcome?: string | undefined;
2296
+ preventiveMeasures?: string[] | undefined;
2297
+ estimatedTime?: string | undefined;
2298
+ riskLevel?: string | undefined;
2299
+ };
2300
+ outcome: "error" | "created" | "updated" | "skipped";
2301
+ taskId?: string | undefined;
2302
+ }[];
2303
+ taskReview?: any;
2304
+ } | null;
2305
+ errorMessage: string | null;
2306
+ completedAt: Date | null;
2307
+ };
2308
+ relationships?: Record<string, unknown> | undefined;
2309
+ links?: Record<string, string> | undefined;
2310
+ meta?: Record<string, unknown> | undefined;
2311
+ }[];
2312
+ links?: Record<string, string> | undefined;
2313
+ meta?: Record<string, unknown> | undefined;
2314
+ included?: {
2315
+ type: string;
2316
+ id: string;
2317
+ attributes?: Record<string, unknown> | undefined;
2318
+ relationships?: Record<string, unknown> | undefined;
2319
+ links?: Record<string, string> | undefined;
2320
+ meta?: Record<string, unknown> | undefined;
2321
+ }[] | undefined;
2322
+ }, {
2323
+ data: {
2324
+ type: string;
2325
+ id: string;
2326
+ attributes: {
2327
+ status: "completed" | "in_progress" | "failed";
2328
+ createdAt: string;
2329
+ updatedAt: string;
2330
+ farmId: string;
2331
+ fieldId: string;
2332
+ outcome: "task_created" | "task_updated" | "no_action_needed" | "error" | null;
2333
+ workflowType: "recommendation_to_task";
2334
+ triggerEvent: string;
2335
+ triggerId: string;
2336
+ agentResults: {
2337
+ summary: {
2338
+ skipped: number;
2339
+ sourceType: string;
2340
+ tasksCreated: number;
2341
+ tasksUpdated: number;
2342
+ };
2343
+ results: {
2344
+ reason: string;
2345
+ recommendation: {
2346
+ priority: number;
2347
+ action: string;
2348
+ details: string;
2349
+ timing: string;
2350
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2351
+ confidence?: number | undefined;
2352
+ materials?: {
2353
+ name: string;
2354
+ unit: string;
2355
+ quantity: number;
2356
+ inventoryItemId?: string | undefined;
2357
+ totalCost?: number | undefined;
2358
+ costPerUnit?: number | undefined;
2359
+ availability?: string | undefined;
2360
+ }[] | undefined;
2361
+ applicationMethod?: string | undefined;
2362
+ expectedOutcome?: string | undefined;
2363
+ preventiveMeasures?: string[] | undefined;
2364
+ estimatedTime?: string | undefined;
2365
+ riskLevel?: string | undefined;
2366
+ };
2367
+ outcome: "error" | "created" | "updated" | "skipped";
2368
+ taskId?: string | undefined;
2369
+ }[];
2370
+ taskReview?: any;
2371
+ } | null;
2372
+ errorMessage: string | null;
2373
+ completedAt: Date | null;
2374
+ };
2375
+ relationships?: Record<string, unknown> | undefined;
2376
+ links?: Record<string, string> | undefined;
2377
+ meta?: Record<string, unknown> | undefined;
2378
+ }[];
2379
+ links?: Record<string, string> | undefined;
2380
+ meta?: Record<string, unknown> | undefined;
2381
+ included?: {
2382
+ type: string;
2383
+ id: string;
2384
+ attributes?: Record<string, unknown> | undefined;
2385
+ relationships?: Record<string, unknown> | undefined;
2386
+ links?: Record<string, string> | undefined;
2387
+ meta?: Record<string, unknown> | undefined;
2388
+ }[] | undefined;
2389
+ }>;
2390
+ export type AgentWorkflowStatus = z.infer<typeof agentWorkflowStatusSchema>;
2391
+ export type WorkflowOutcome = z.infer<typeof workflowOutcomeSchema>;
2392
+ export type RecommendationOutcome = z.infer<typeof recommendationOutcomeSchema>;
2393
+ export type AgentRecommendationResult = z.infer<typeof agentRecommendationResultSchema>;
2394
+ export type AgentResults = z.infer<typeof agentResultsSchema>;
2395
+ export type AgentWorkflowAttributes = z.infer<typeof agentWorkflowAttributesSchema>;
2396
+ export type AgentWorkflowResource = z.infer<typeof agentWorkflowResourceSchema>;
2397
+ export type AgentWorkflowResponse = z.infer<typeof agentWorkflowResponseSchema>;
2398
+ export type AgentWorkflowListResponse = z.infer<typeof agentWorkflowListResponseSchema>;
2399
+ //# sourceMappingURL=agent-workflows.schemas.d.ts.map