@deepintel-ltd/farmpro-contracts 1.19.1 → 1.20.1

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 (30) hide show
  1. package/dist/routes/agent-workflows.routes.d.ts +228 -48
  2. package/dist/routes/agent-workflows.routes.d.ts.map +1 -1
  3. package/dist/routes/commodity-deals.routes.d.ts +307 -0
  4. package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
  5. package/dist/routes/commodity-deals.routes.js +16 -1
  6. package/dist/routes/fertigation.routes.d.ts +80 -80
  7. package/dist/routes/field-monitoring.routes.d.ts +174 -30
  8. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  9. package/dist/routes/field-observations.routes.d.ts +1690 -156
  10. package/dist/routes/field-observations.routes.d.ts.map +1 -1
  11. package/dist/routes/field-observations.routes.js +13 -1
  12. package/dist/routes/weather.routes.d.ts +49 -10
  13. package/dist/routes/weather.routes.d.ts.map +1 -1
  14. package/dist/schemas/agent-workflows.schemas.d.ts +262 -52
  15. package/dist/schemas/agent-workflows.schemas.d.ts.map +1 -1
  16. package/dist/schemas/commodity-deals.schemas.d.ts +34 -0
  17. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  18. package/dist/schemas/commodity-deals.schemas.js +8 -0
  19. package/dist/schemas/fertigation.schemas.d.ts +36 -36
  20. package/dist/schemas/field-monitoring.schemas.d.ts +91 -16
  21. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  22. package/dist/schemas/field-observations.schemas.d.ts +623 -132
  23. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  24. package/dist/schemas/field-observations.schemas.js +32 -4
  25. package/dist/schemas/recommendations.schemas.d.ts +26 -2
  26. package/dist/schemas/recommendations.schemas.d.ts.map +1 -1
  27. package/dist/schemas/recommendations.schemas.js +3 -0
  28. package/dist/schemas/weather.schemas.d.ts +148 -28
  29. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  30. package/package.json +1 -1
@@ -39,36 +39,36 @@ export declare const observationAttributesSchema: z.ZodObject<{
39
39
  scientificName: z.ZodString;
40
40
  commonNames: z.ZodArray<z.ZodString, "many">;
41
41
  confidence: z.ZodNumber;
42
- provider: z.ZodString;
42
+ provider: z.ZodOptional<z.ZodString>;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  confidence: number;
45
- provider: string;
46
45
  scientificName: string;
47
46
  commonNames: string[];
47
+ provider?: string | undefined;
48
48
  }, {
49
49
  confidence: number;
50
- provider: string;
51
50
  scientificName: string;
52
51
  commonNames: string[];
52
+ provider?: string | undefined;
53
53
  }>>;
54
54
  primaryIssue: z.ZodOptional<z.ZodObject<{
55
55
  name: z.ZodString;
56
56
  category: z.ZodString;
57
57
  confidence: z.ZodNumber;
58
- provider: z.ZodString;
58
+ provider: z.ZodOptional<z.ZodString>;
59
59
  visualIndicators: z.ZodArray<z.ZodString, "many">;
60
60
  }, "strip", z.ZodTypeAny, {
61
61
  name: string;
62
62
  category: string;
63
63
  confidence: number;
64
- provider: string;
65
64
  visualIndicators: string[];
65
+ provider?: string | undefined;
66
66
  }, {
67
67
  name: string;
68
68
  category: string;
69
69
  confidence: number;
70
- provider: string;
71
70
  visualIndicators: string[];
71
+ provider?: string | undefined;
72
72
  }>>;
73
73
  secondaryIssues: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
74
  name: z.ZodString;
@@ -83,53 +83,84 @@ export declare const observationAttributesSchema: z.ZodObject<{
83
83
  confidence: number;
84
84
  reasoning: string;
85
85
  }>, "many">>;
86
- environmentalFactors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
86
+ environmentalFactors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
87
87
  satelliteCorrelation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
88
88
  historicalMatches: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
89
+ cropConflict: z.ZodOptional<z.ZodObject<{
90
+ expectedCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ photoCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ conflict: z.ZodBoolean;
93
+ reasoning: z.ZodOptional<z.ZodString>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ conflict: boolean;
96
+ reasoning?: string | undefined;
97
+ expectedCrop?: string | null | undefined;
98
+ photoCrop?: string | null | undefined;
99
+ }, {
100
+ conflict: boolean;
101
+ reasoning?: string | undefined;
102
+ expectedCrop?: string | null | undefined;
103
+ photoCrop?: string | null | undefined;
104
+ }>>;
105
+ contextSignalsUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
89
106
  }, "strip", z.ZodTypeAny, {
90
107
  plantIdentification?: {
91
108
  confidence: number;
92
- provider: string;
93
109
  scientificName: string;
94
110
  commonNames: string[];
111
+ provider?: string | undefined;
95
112
  } | undefined;
96
113
  primaryIssue?: {
97
114
  name: string;
98
115
  category: string;
99
116
  confidence: number;
100
- provider: string;
101
117
  visualIndicators: string[];
118
+ provider?: string | undefined;
102
119
  } | undefined;
103
120
  secondaryIssues?: {
104
121
  name: string;
105
122
  confidence: number;
106
123
  reasoning: string;
107
124
  }[] | undefined;
108
- environmentalFactors?: Record<string, string> | undefined;
125
+ environmentalFactors?: Record<string, string | number> | undefined;
109
126
  satelliteCorrelation?: Record<string, any> | undefined;
110
127
  historicalMatches?: any[] | undefined;
128
+ cropConflict?: {
129
+ conflict: boolean;
130
+ reasoning?: string | undefined;
131
+ expectedCrop?: string | null | undefined;
132
+ photoCrop?: string | null | undefined;
133
+ } | undefined;
134
+ contextSignalsUsed?: string[] | undefined;
111
135
  }, {
112
136
  plantIdentification?: {
113
137
  confidence: number;
114
- provider: string;
115
138
  scientificName: string;
116
139
  commonNames: string[];
140
+ provider?: string | undefined;
117
141
  } | undefined;
118
142
  primaryIssue?: {
119
143
  name: string;
120
144
  category: string;
121
145
  confidence: number;
122
- provider: string;
123
146
  visualIndicators: string[];
147
+ provider?: string | undefined;
124
148
  } | undefined;
125
149
  secondaryIssues?: {
126
150
  name: string;
127
151
  confidence: number;
128
152
  reasoning: string;
129
153
  }[] | undefined;
130
- environmentalFactors?: Record<string, string> | undefined;
154
+ environmentalFactors?: Record<string, string | number> | undefined;
131
155
  satelliteCorrelation?: Record<string, any> | undefined;
132
156
  historicalMatches?: any[] | undefined;
157
+ cropConflict?: {
158
+ conflict: boolean;
159
+ reasoning?: string | undefined;
160
+ expectedCrop?: string | null | undefined;
161
+ photoCrop?: string | null | undefined;
162
+ } | undefined;
163
+ contextSignalsUsed?: string[] | undefined;
133
164
  }>>;
134
165
  recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
135
166
  priority: z.ZodNumber;
@@ -146,6 +177,9 @@ export declare const observationAttributesSchema: z.ZodObject<{
146
177
  costPerUnit: z.ZodOptional<z.ZodNumber>;
147
178
  totalCost: z.ZodOptional<z.ZodNumber>;
148
179
  availability: z.ZodOptional<z.ZodString>;
180
+ inStock: z.ZodOptional<z.ZodBoolean>;
181
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
182
+ applicationMethod: z.ZodOptional<z.ZodString>;
149
183
  }, "strip", z.ZodTypeAny, {
150
184
  name: string;
151
185
  quantity: number;
@@ -154,6 +188,9 @@ export declare const observationAttributesSchema: z.ZodObject<{
154
188
  totalCost?: number | undefined;
155
189
  costPerUnit?: number | undefined;
156
190
  availability?: string | undefined;
191
+ inStock?: boolean | undefined;
192
+ stockQuantity?: number | undefined;
193
+ applicationMethod?: string | undefined;
157
194
  }, {
158
195
  name: string;
159
196
  quantity: number;
@@ -162,6 +199,9 @@ export declare const observationAttributesSchema: z.ZodObject<{
162
199
  totalCost?: number | undefined;
163
200
  costPerUnit?: number | undefined;
164
201
  availability?: string | undefined;
202
+ inStock?: boolean | undefined;
203
+ stockQuantity?: number | undefined;
204
+ applicationMethod?: string | undefined;
165
205
  }>, "many">>;
166
206
  applicationMethod: z.ZodOptional<z.ZodString>;
167
207
  expectedOutcome: z.ZodOptional<z.ZodString>;
@@ -174,6 +214,7 @@ export declare const observationAttributesSchema: z.ZodObject<{
174
214
  details: string;
175
215
  timing: string;
176
216
  confidence?: number | undefined;
217
+ applicationMethod?: string | undefined;
177
218
  severity?: "critical" | "low" | "medium" | "high" | undefined;
178
219
  materials?: {
179
220
  name: string;
@@ -183,8 +224,10 @@ export declare const observationAttributesSchema: z.ZodObject<{
183
224
  totalCost?: number | undefined;
184
225
  costPerUnit?: number | undefined;
185
226
  availability?: string | undefined;
227
+ inStock?: boolean | undefined;
228
+ stockQuantity?: number | undefined;
229
+ applicationMethod?: string | undefined;
186
230
  }[] | undefined;
187
- applicationMethod?: string | undefined;
188
231
  expectedOutcome?: string | undefined;
189
232
  preventiveMeasures?: string[] | undefined;
190
233
  estimatedTime?: string | undefined;
@@ -195,6 +238,7 @@ export declare const observationAttributesSchema: z.ZodObject<{
195
238
  details: string;
196
239
  timing: string;
197
240
  confidence?: number | undefined;
241
+ applicationMethod?: string | undefined;
198
242
  severity?: "critical" | "low" | "medium" | "high" | undefined;
199
243
  materials?: {
200
244
  name: string;
@@ -204,8 +248,10 @@ export declare const observationAttributesSchema: z.ZodObject<{
204
248
  totalCost?: number | undefined;
205
249
  costPerUnit?: number | undefined;
206
250
  availability?: string | undefined;
251
+ inStock?: boolean | undefined;
252
+ stockQuantity?: number | undefined;
253
+ applicationMethod?: string | undefined;
207
254
  }[] | undefined;
208
- applicationMethod?: string | undefined;
209
255
  expectedOutcome?: string | undefined;
210
256
  preventiveMeasures?: string[] | undefined;
211
257
  estimatedTime?: string | undefined;
@@ -217,6 +263,9 @@ export declare const observationAttributesSchema: z.ZodObject<{
217
263
  actionStatus: z.ZodEnum<["pending", "in_progress", "completed", "dismissed"]>;
218
264
  actionTakenAt: z.ZodNullable<z.ZodDate>;
219
265
  actionNotes: z.ZodNullable<z.ZodString>;
266
+ diagnosisFeedback: z.ZodNullable<z.ZodEnum<["confirmed", "incorrect"]>>;
267
+ correctedDiagnosisType: z.ZodNullable<z.ZodString>;
268
+ feedbackAt: z.ZodNullable<z.ZodDate>;
220
269
  generatedAlertId: z.ZodNullable<z.ZodString>;
221
270
  relatedTaskId: z.ZodNullable<z.ZodString>;
222
271
  analysisProvider: z.ZodNullable<z.ZodString>;
@@ -235,6 +284,7 @@ export declare const observationAttributesSchema: z.ZodObject<{
235
284
  details: string;
236
285
  timing: string;
237
286
  confidence?: number | undefined;
287
+ applicationMethod?: string | undefined;
238
288
  severity?: "critical" | "low" | "medium" | "high" | undefined;
239
289
  materials?: {
240
290
  name: string;
@@ -244,8 +294,10 @@ export declare const observationAttributesSchema: z.ZodObject<{
244
294
  totalCost?: number | undefined;
245
295
  costPerUnit?: number | undefined;
246
296
  availability?: string | undefined;
297
+ inStock?: boolean | undefined;
298
+ stockQuantity?: number | undefined;
299
+ applicationMethod?: string | undefined;
247
300
  }[] | undefined;
248
- applicationMethod?: string | undefined;
249
301
  expectedOutcome?: string | undefined;
250
302
  preventiveMeasures?: string[] | undefined;
251
303
  estimatedTime?: string | undefined;
@@ -278,31 +330,41 @@ export declare const observationAttributesSchema: z.ZodObject<{
278
330
  analysisDetails: {
279
331
  plantIdentification?: {
280
332
  confidence: number;
281
- provider: string;
282
333
  scientificName: string;
283
334
  commonNames: string[];
335
+ provider?: string | undefined;
284
336
  } | undefined;
285
337
  primaryIssue?: {
286
338
  name: string;
287
339
  category: string;
288
340
  confidence: number;
289
- provider: string;
290
341
  visualIndicators: string[];
342
+ provider?: string | undefined;
291
343
  } | undefined;
292
344
  secondaryIssues?: {
293
345
  name: string;
294
346
  confidence: number;
295
347
  reasoning: string;
296
348
  }[] | undefined;
297
- environmentalFactors?: Record<string, string> | undefined;
349
+ environmentalFactors?: Record<string, string | number> | undefined;
298
350
  satelliteCorrelation?: Record<string, any> | undefined;
299
351
  historicalMatches?: any[] | undefined;
352
+ cropConflict?: {
353
+ conflict: boolean;
354
+ reasoning?: string | undefined;
355
+ expectedCrop?: string | null | undefined;
356
+ photoCrop?: string | null | undefined;
357
+ } | undefined;
358
+ contextSignalsUsed?: string[] | undefined;
300
359
  } | null;
301
360
  urgencyScore: number | null;
302
361
  similarCasesCount: number | null;
303
362
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
304
363
  actionTakenAt: Date | null;
305
364
  actionNotes: string | null;
365
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
366
+ correctedDiagnosisType: string | null;
367
+ feedbackAt: Date | null;
306
368
  generatedAlertId: string | null;
307
369
  relatedTaskId: string | null;
308
370
  analysisProvider: string | null;
@@ -318,6 +380,7 @@ export declare const observationAttributesSchema: z.ZodObject<{
318
380
  details: string;
319
381
  timing: string;
320
382
  confidence?: number | undefined;
383
+ applicationMethod?: string | undefined;
321
384
  severity?: "critical" | "low" | "medium" | "high" | undefined;
322
385
  materials?: {
323
386
  name: string;
@@ -327,8 +390,10 @@ export declare const observationAttributesSchema: z.ZodObject<{
327
390
  totalCost?: number | undefined;
328
391
  costPerUnit?: number | undefined;
329
392
  availability?: string | undefined;
393
+ inStock?: boolean | undefined;
394
+ stockQuantity?: number | undefined;
395
+ applicationMethod?: string | undefined;
330
396
  }[] | undefined;
331
- applicationMethod?: string | undefined;
332
397
  expectedOutcome?: string | undefined;
333
398
  preventiveMeasures?: string[] | undefined;
334
399
  estimatedTime?: string | undefined;
@@ -361,31 +426,41 @@ export declare const observationAttributesSchema: z.ZodObject<{
361
426
  analysisDetails: {
362
427
  plantIdentification?: {
363
428
  confidence: number;
364
- provider: string;
365
429
  scientificName: string;
366
430
  commonNames: string[];
431
+ provider?: string | undefined;
367
432
  } | undefined;
368
433
  primaryIssue?: {
369
434
  name: string;
370
435
  category: string;
371
436
  confidence: number;
372
- provider: string;
373
437
  visualIndicators: string[];
438
+ provider?: string | undefined;
374
439
  } | undefined;
375
440
  secondaryIssues?: {
376
441
  name: string;
377
442
  confidence: number;
378
443
  reasoning: string;
379
444
  }[] | undefined;
380
- environmentalFactors?: Record<string, string> | undefined;
445
+ environmentalFactors?: Record<string, string | number> | undefined;
381
446
  satelliteCorrelation?: Record<string, any> | undefined;
382
447
  historicalMatches?: any[] | undefined;
448
+ cropConflict?: {
449
+ conflict: boolean;
450
+ reasoning?: string | undefined;
451
+ expectedCrop?: string | null | undefined;
452
+ photoCrop?: string | null | undefined;
453
+ } | undefined;
454
+ contextSignalsUsed?: string[] | undefined;
383
455
  } | null;
384
456
  urgencyScore: number | null;
385
457
  similarCasesCount: number | null;
386
458
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
387
459
  actionTakenAt: Date | null;
388
460
  actionNotes: string | null;
461
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
462
+ correctedDiagnosisType: string | null;
463
+ feedbackAt: Date | null;
389
464
  generatedAlertId: string | null;
390
465
  relatedTaskId: string | null;
391
466
  analysisProvider: string | null;
@@ -461,6 +536,22 @@ export declare const updateObservationActionAttributesSchema: z.ZodObject<{
461
536
  actionNotes?: string | undefined;
462
537
  relatedTaskId?: string | undefined;
463
538
  }>;
539
+ export declare const updateObservationFeedbackAttributesSchema: z.ZodEffects<z.ZodObject<{
540
+ diagnosisFeedback: z.ZodEnum<["confirmed", "incorrect"]>;
541
+ correctedDiagnosisType: z.ZodOptional<z.ZodString>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ diagnosisFeedback: "confirmed" | "incorrect";
544
+ correctedDiagnosisType?: string | undefined;
545
+ }, {
546
+ diagnosisFeedback: "confirmed" | "incorrect";
547
+ correctedDiagnosisType?: string | undefined;
548
+ }>, {
549
+ diagnosisFeedback: "confirmed" | "incorrect";
550
+ correctedDiagnosisType?: string | undefined;
551
+ }, {
552
+ diagnosisFeedback: "confirmed" | "incorrect";
553
+ correctedDiagnosisType?: string | undefined;
554
+ }>;
464
555
  export declare const observationResourceSchema: z.ZodObject<{
465
556
  type: z.ZodLiteral<string>;
466
557
  id: z.ZodString;
@@ -501,36 +592,36 @@ export declare const observationResourceSchema: z.ZodObject<{
501
592
  scientificName: z.ZodString;
502
593
  commonNames: z.ZodArray<z.ZodString, "many">;
503
594
  confidence: z.ZodNumber;
504
- provider: z.ZodString;
595
+ provider: z.ZodOptional<z.ZodString>;
505
596
  }, "strip", z.ZodTypeAny, {
506
597
  confidence: number;
507
- provider: string;
508
598
  scientificName: string;
509
599
  commonNames: string[];
600
+ provider?: string | undefined;
510
601
  }, {
511
602
  confidence: number;
512
- provider: string;
513
603
  scientificName: string;
514
604
  commonNames: string[];
605
+ provider?: string | undefined;
515
606
  }>>;
516
607
  primaryIssue: z.ZodOptional<z.ZodObject<{
517
608
  name: z.ZodString;
518
609
  category: z.ZodString;
519
610
  confidence: z.ZodNumber;
520
- provider: z.ZodString;
611
+ provider: z.ZodOptional<z.ZodString>;
521
612
  visualIndicators: z.ZodArray<z.ZodString, "many">;
522
613
  }, "strip", z.ZodTypeAny, {
523
614
  name: string;
524
615
  category: string;
525
616
  confidence: number;
526
- provider: string;
527
617
  visualIndicators: string[];
618
+ provider?: string | undefined;
528
619
  }, {
529
620
  name: string;
530
621
  category: string;
531
622
  confidence: number;
532
- provider: string;
533
623
  visualIndicators: string[];
624
+ provider?: string | undefined;
534
625
  }>>;
535
626
  secondaryIssues: z.ZodOptional<z.ZodArray<z.ZodObject<{
536
627
  name: z.ZodString;
@@ -545,53 +636,84 @@ export declare const observationResourceSchema: z.ZodObject<{
545
636
  confidence: number;
546
637
  reasoning: string;
547
638
  }>, "many">>;
548
- environmentalFactors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
639
+ environmentalFactors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
549
640
  satelliteCorrelation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
550
641
  historicalMatches: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
642
+ cropConflict: z.ZodOptional<z.ZodObject<{
643
+ expectedCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
+ photoCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
645
+ conflict: z.ZodBoolean;
646
+ reasoning: z.ZodOptional<z.ZodString>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ conflict: boolean;
649
+ reasoning?: string | undefined;
650
+ expectedCrop?: string | null | undefined;
651
+ photoCrop?: string | null | undefined;
652
+ }, {
653
+ conflict: boolean;
654
+ reasoning?: string | undefined;
655
+ expectedCrop?: string | null | undefined;
656
+ photoCrop?: string | null | undefined;
657
+ }>>;
658
+ contextSignalsUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
551
659
  }, "strip", z.ZodTypeAny, {
552
660
  plantIdentification?: {
553
661
  confidence: number;
554
- provider: string;
555
662
  scientificName: string;
556
663
  commonNames: string[];
664
+ provider?: string | undefined;
557
665
  } | undefined;
558
666
  primaryIssue?: {
559
667
  name: string;
560
668
  category: string;
561
669
  confidence: number;
562
- provider: string;
563
670
  visualIndicators: string[];
671
+ provider?: string | undefined;
564
672
  } | undefined;
565
673
  secondaryIssues?: {
566
674
  name: string;
567
675
  confidence: number;
568
676
  reasoning: string;
569
677
  }[] | undefined;
570
- environmentalFactors?: Record<string, string> | undefined;
678
+ environmentalFactors?: Record<string, string | number> | undefined;
571
679
  satelliteCorrelation?: Record<string, any> | undefined;
572
680
  historicalMatches?: any[] | undefined;
681
+ cropConflict?: {
682
+ conflict: boolean;
683
+ reasoning?: string | undefined;
684
+ expectedCrop?: string | null | undefined;
685
+ photoCrop?: string | null | undefined;
686
+ } | undefined;
687
+ contextSignalsUsed?: string[] | undefined;
573
688
  }, {
574
689
  plantIdentification?: {
575
690
  confidence: number;
576
- provider: string;
577
691
  scientificName: string;
578
692
  commonNames: string[];
693
+ provider?: string | undefined;
579
694
  } | undefined;
580
695
  primaryIssue?: {
581
696
  name: string;
582
697
  category: string;
583
698
  confidence: number;
584
- provider: string;
585
699
  visualIndicators: string[];
700
+ provider?: string | undefined;
586
701
  } | undefined;
587
702
  secondaryIssues?: {
588
703
  name: string;
589
704
  confidence: number;
590
705
  reasoning: string;
591
706
  }[] | undefined;
592
- environmentalFactors?: Record<string, string> | undefined;
707
+ environmentalFactors?: Record<string, string | number> | undefined;
593
708
  satelliteCorrelation?: Record<string, any> | undefined;
594
709
  historicalMatches?: any[] | undefined;
710
+ cropConflict?: {
711
+ conflict: boolean;
712
+ reasoning?: string | undefined;
713
+ expectedCrop?: string | null | undefined;
714
+ photoCrop?: string | null | undefined;
715
+ } | undefined;
716
+ contextSignalsUsed?: string[] | undefined;
595
717
  }>>;
596
718
  recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
597
719
  priority: z.ZodNumber;
@@ -608,6 +730,9 @@ export declare const observationResourceSchema: z.ZodObject<{
608
730
  costPerUnit: z.ZodOptional<z.ZodNumber>;
609
731
  totalCost: z.ZodOptional<z.ZodNumber>;
610
732
  availability: z.ZodOptional<z.ZodString>;
733
+ inStock: z.ZodOptional<z.ZodBoolean>;
734
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
735
+ applicationMethod: z.ZodOptional<z.ZodString>;
611
736
  }, "strip", z.ZodTypeAny, {
612
737
  name: string;
613
738
  quantity: number;
@@ -616,6 +741,9 @@ export declare const observationResourceSchema: z.ZodObject<{
616
741
  totalCost?: number | undefined;
617
742
  costPerUnit?: number | undefined;
618
743
  availability?: string | undefined;
744
+ inStock?: boolean | undefined;
745
+ stockQuantity?: number | undefined;
746
+ applicationMethod?: string | undefined;
619
747
  }, {
620
748
  name: string;
621
749
  quantity: number;
@@ -624,6 +752,9 @@ export declare const observationResourceSchema: z.ZodObject<{
624
752
  totalCost?: number | undefined;
625
753
  costPerUnit?: number | undefined;
626
754
  availability?: string | undefined;
755
+ inStock?: boolean | undefined;
756
+ stockQuantity?: number | undefined;
757
+ applicationMethod?: string | undefined;
627
758
  }>, "many">>;
628
759
  applicationMethod: z.ZodOptional<z.ZodString>;
629
760
  expectedOutcome: z.ZodOptional<z.ZodString>;
@@ -636,6 +767,7 @@ export declare const observationResourceSchema: z.ZodObject<{
636
767
  details: string;
637
768
  timing: string;
638
769
  confidence?: number | undefined;
770
+ applicationMethod?: string | undefined;
639
771
  severity?: "critical" | "low" | "medium" | "high" | undefined;
640
772
  materials?: {
641
773
  name: string;
@@ -645,8 +777,10 @@ export declare const observationResourceSchema: z.ZodObject<{
645
777
  totalCost?: number | undefined;
646
778
  costPerUnit?: number | undefined;
647
779
  availability?: string | undefined;
780
+ inStock?: boolean | undefined;
781
+ stockQuantity?: number | undefined;
782
+ applicationMethod?: string | undefined;
648
783
  }[] | undefined;
649
- applicationMethod?: string | undefined;
650
784
  expectedOutcome?: string | undefined;
651
785
  preventiveMeasures?: string[] | undefined;
652
786
  estimatedTime?: string | undefined;
@@ -657,6 +791,7 @@ export declare const observationResourceSchema: z.ZodObject<{
657
791
  details: string;
658
792
  timing: string;
659
793
  confidence?: number | undefined;
794
+ applicationMethod?: string | undefined;
660
795
  severity?: "critical" | "low" | "medium" | "high" | undefined;
661
796
  materials?: {
662
797
  name: string;
@@ -666,8 +801,10 @@ export declare const observationResourceSchema: z.ZodObject<{
666
801
  totalCost?: number | undefined;
667
802
  costPerUnit?: number | undefined;
668
803
  availability?: string | undefined;
804
+ inStock?: boolean | undefined;
805
+ stockQuantity?: number | undefined;
806
+ applicationMethod?: string | undefined;
669
807
  }[] | undefined;
670
- applicationMethod?: string | undefined;
671
808
  expectedOutcome?: string | undefined;
672
809
  preventiveMeasures?: string[] | undefined;
673
810
  estimatedTime?: string | undefined;
@@ -679,6 +816,9 @@ export declare const observationResourceSchema: z.ZodObject<{
679
816
  actionStatus: z.ZodEnum<["pending", "in_progress", "completed", "dismissed"]>;
680
817
  actionTakenAt: z.ZodNullable<z.ZodDate>;
681
818
  actionNotes: z.ZodNullable<z.ZodString>;
819
+ diagnosisFeedback: z.ZodNullable<z.ZodEnum<["confirmed", "incorrect"]>>;
820
+ correctedDiagnosisType: z.ZodNullable<z.ZodString>;
821
+ feedbackAt: z.ZodNullable<z.ZodDate>;
682
822
  generatedAlertId: z.ZodNullable<z.ZodString>;
683
823
  relatedTaskId: z.ZodNullable<z.ZodString>;
684
824
  analysisProvider: z.ZodNullable<z.ZodString>;
@@ -697,6 +837,7 @@ export declare const observationResourceSchema: z.ZodObject<{
697
837
  details: string;
698
838
  timing: string;
699
839
  confidence?: number | undefined;
840
+ applicationMethod?: string | undefined;
700
841
  severity?: "critical" | "low" | "medium" | "high" | undefined;
701
842
  materials?: {
702
843
  name: string;
@@ -706,8 +847,10 @@ export declare const observationResourceSchema: z.ZodObject<{
706
847
  totalCost?: number | undefined;
707
848
  costPerUnit?: number | undefined;
708
849
  availability?: string | undefined;
850
+ inStock?: boolean | undefined;
851
+ stockQuantity?: number | undefined;
852
+ applicationMethod?: string | undefined;
709
853
  }[] | undefined;
710
- applicationMethod?: string | undefined;
711
854
  expectedOutcome?: string | undefined;
712
855
  preventiveMeasures?: string[] | undefined;
713
856
  estimatedTime?: string | undefined;
@@ -740,31 +883,41 @@ export declare const observationResourceSchema: z.ZodObject<{
740
883
  analysisDetails: {
741
884
  plantIdentification?: {
742
885
  confidence: number;
743
- provider: string;
744
886
  scientificName: string;
745
887
  commonNames: string[];
888
+ provider?: string | undefined;
746
889
  } | undefined;
747
890
  primaryIssue?: {
748
891
  name: string;
749
892
  category: string;
750
893
  confidence: number;
751
- provider: string;
752
894
  visualIndicators: string[];
895
+ provider?: string | undefined;
753
896
  } | undefined;
754
897
  secondaryIssues?: {
755
898
  name: string;
756
899
  confidence: number;
757
900
  reasoning: string;
758
901
  }[] | undefined;
759
- environmentalFactors?: Record<string, string> | undefined;
902
+ environmentalFactors?: Record<string, string | number> | undefined;
760
903
  satelliteCorrelation?: Record<string, any> | undefined;
761
904
  historicalMatches?: any[] | undefined;
905
+ cropConflict?: {
906
+ conflict: boolean;
907
+ reasoning?: string | undefined;
908
+ expectedCrop?: string | null | undefined;
909
+ photoCrop?: string | null | undefined;
910
+ } | undefined;
911
+ contextSignalsUsed?: string[] | undefined;
762
912
  } | null;
763
913
  urgencyScore: number | null;
764
914
  similarCasesCount: number | null;
765
915
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
766
916
  actionTakenAt: Date | null;
767
917
  actionNotes: string | null;
918
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
919
+ correctedDiagnosisType: string | null;
920
+ feedbackAt: Date | null;
768
921
  generatedAlertId: string | null;
769
922
  relatedTaskId: string | null;
770
923
  analysisProvider: string | null;
@@ -780,6 +933,7 @@ export declare const observationResourceSchema: z.ZodObject<{
780
933
  details: string;
781
934
  timing: string;
782
935
  confidence?: number | undefined;
936
+ applicationMethod?: string | undefined;
783
937
  severity?: "critical" | "low" | "medium" | "high" | undefined;
784
938
  materials?: {
785
939
  name: string;
@@ -789,8 +943,10 @@ export declare const observationResourceSchema: z.ZodObject<{
789
943
  totalCost?: number | undefined;
790
944
  costPerUnit?: number | undefined;
791
945
  availability?: string | undefined;
946
+ inStock?: boolean | undefined;
947
+ stockQuantity?: number | undefined;
948
+ applicationMethod?: string | undefined;
792
949
  }[] | undefined;
793
- applicationMethod?: string | undefined;
794
950
  expectedOutcome?: string | undefined;
795
951
  preventiveMeasures?: string[] | undefined;
796
952
  estimatedTime?: string | undefined;
@@ -823,31 +979,41 @@ export declare const observationResourceSchema: z.ZodObject<{
823
979
  analysisDetails: {
824
980
  plantIdentification?: {
825
981
  confidence: number;
826
- provider: string;
827
982
  scientificName: string;
828
983
  commonNames: string[];
984
+ provider?: string | undefined;
829
985
  } | undefined;
830
986
  primaryIssue?: {
831
987
  name: string;
832
988
  category: string;
833
989
  confidence: number;
834
- provider: string;
835
990
  visualIndicators: string[];
991
+ provider?: string | undefined;
836
992
  } | undefined;
837
993
  secondaryIssues?: {
838
994
  name: string;
839
995
  confidence: number;
840
996
  reasoning: string;
841
997
  }[] | undefined;
842
- environmentalFactors?: Record<string, string> | undefined;
998
+ environmentalFactors?: Record<string, string | number> | undefined;
843
999
  satelliteCorrelation?: Record<string, any> | undefined;
844
1000
  historicalMatches?: any[] | undefined;
1001
+ cropConflict?: {
1002
+ conflict: boolean;
1003
+ reasoning?: string | undefined;
1004
+ expectedCrop?: string | null | undefined;
1005
+ photoCrop?: string | null | undefined;
1006
+ } | undefined;
1007
+ contextSignalsUsed?: string[] | undefined;
845
1008
  } | null;
846
1009
  urgencyScore: number | null;
847
1010
  similarCasesCount: number | null;
848
1011
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
849
1012
  actionTakenAt: Date | null;
850
1013
  actionNotes: string | null;
1014
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
1015
+ correctedDiagnosisType: string | null;
1016
+ feedbackAt: Date | null;
851
1017
  generatedAlertId: string | null;
852
1018
  relatedTaskId: string | null;
853
1019
  analysisProvider: string | null;
@@ -870,6 +1036,7 @@ export declare const observationResourceSchema: z.ZodObject<{
870
1036
  details: string;
871
1037
  timing: string;
872
1038
  confidence?: number | undefined;
1039
+ applicationMethod?: string | undefined;
873
1040
  severity?: "critical" | "low" | "medium" | "high" | undefined;
874
1041
  materials?: {
875
1042
  name: string;
@@ -879,8 +1046,10 @@ export declare const observationResourceSchema: z.ZodObject<{
879
1046
  totalCost?: number | undefined;
880
1047
  costPerUnit?: number | undefined;
881
1048
  availability?: string | undefined;
1049
+ inStock?: boolean | undefined;
1050
+ stockQuantity?: number | undefined;
1051
+ applicationMethod?: string | undefined;
882
1052
  }[] | undefined;
883
- applicationMethod?: string | undefined;
884
1053
  expectedOutcome?: string | undefined;
885
1054
  preventiveMeasures?: string[] | undefined;
886
1055
  estimatedTime?: string | undefined;
@@ -913,31 +1082,41 @@ export declare const observationResourceSchema: z.ZodObject<{
913
1082
  analysisDetails: {
914
1083
  plantIdentification?: {
915
1084
  confidence: number;
916
- provider: string;
917
1085
  scientificName: string;
918
1086
  commonNames: string[];
1087
+ provider?: string | undefined;
919
1088
  } | undefined;
920
1089
  primaryIssue?: {
921
1090
  name: string;
922
1091
  category: string;
923
1092
  confidence: number;
924
- provider: string;
925
1093
  visualIndicators: string[];
1094
+ provider?: string | undefined;
926
1095
  } | undefined;
927
1096
  secondaryIssues?: {
928
1097
  name: string;
929
1098
  confidence: number;
930
1099
  reasoning: string;
931
1100
  }[] | undefined;
932
- environmentalFactors?: Record<string, string> | undefined;
1101
+ environmentalFactors?: Record<string, string | number> | undefined;
933
1102
  satelliteCorrelation?: Record<string, any> | undefined;
934
1103
  historicalMatches?: any[] | undefined;
1104
+ cropConflict?: {
1105
+ conflict: boolean;
1106
+ reasoning?: string | undefined;
1107
+ expectedCrop?: string | null | undefined;
1108
+ photoCrop?: string | null | undefined;
1109
+ } | undefined;
1110
+ contextSignalsUsed?: string[] | undefined;
935
1111
  } | null;
936
1112
  urgencyScore: number | null;
937
1113
  similarCasesCount: number | null;
938
1114
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
939
1115
  actionTakenAt: Date | null;
940
1116
  actionNotes: string | null;
1117
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
1118
+ correctedDiagnosisType: string | null;
1119
+ feedbackAt: Date | null;
941
1120
  generatedAlertId: string | null;
942
1121
  relatedTaskId: string | null;
943
1122
  analysisProvider: string | null;
@@ -960,6 +1139,7 @@ export declare const observationResourceSchema: z.ZodObject<{
960
1139
  details: string;
961
1140
  timing: string;
962
1141
  confidence?: number | undefined;
1142
+ applicationMethod?: string | undefined;
963
1143
  severity?: "critical" | "low" | "medium" | "high" | undefined;
964
1144
  materials?: {
965
1145
  name: string;
@@ -969,8 +1149,10 @@ export declare const observationResourceSchema: z.ZodObject<{
969
1149
  totalCost?: number | undefined;
970
1150
  costPerUnit?: number | undefined;
971
1151
  availability?: string | undefined;
1152
+ inStock?: boolean | undefined;
1153
+ stockQuantity?: number | undefined;
1154
+ applicationMethod?: string | undefined;
972
1155
  }[] | undefined;
973
- applicationMethod?: string | undefined;
974
1156
  expectedOutcome?: string | undefined;
975
1157
  preventiveMeasures?: string[] | undefined;
976
1158
  estimatedTime?: string | undefined;
@@ -1003,31 +1185,41 @@ export declare const observationResourceSchema: z.ZodObject<{
1003
1185
  analysisDetails: {
1004
1186
  plantIdentification?: {
1005
1187
  confidence: number;
1006
- provider: string;
1007
1188
  scientificName: string;
1008
1189
  commonNames: string[];
1190
+ provider?: string | undefined;
1009
1191
  } | undefined;
1010
1192
  primaryIssue?: {
1011
1193
  name: string;
1012
1194
  category: string;
1013
1195
  confidence: number;
1014
- provider: string;
1015
1196
  visualIndicators: string[];
1197
+ provider?: string | undefined;
1016
1198
  } | undefined;
1017
1199
  secondaryIssues?: {
1018
1200
  name: string;
1019
1201
  confidence: number;
1020
1202
  reasoning: string;
1021
1203
  }[] | undefined;
1022
- environmentalFactors?: Record<string, string> | undefined;
1204
+ environmentalFactors?: Record<string, string | number> | undefined;
1023
1205
  satelliteCorrelation?: Record<string, any> | undefined;
1024
1206
  historicalMatches?: any[] | undefined;
1207
+ cropConflict?: {
1208
+ conflict: boolean;
1209
+ reasoning?: string | undefined;
1210
+ expectedCrop?: string | null | undefined;
1211
+ photoCrop?: string | null | undefined;
1212
+ } | undefined;
1213
+ contextSignalsUsed?: string[] | undefined;
1025
1214
  } | null;
1026
1215
  urgencyScore: number | null;
1027
1216
  similarCasesCount: number | null;
1028
1217
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
1029
1218
  actionTakenAt: Date | null;
1030
1219
  actionNotes: string | null;
1220
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
1221
+ correctedDiagnosisType: string | null;
1222
+ feedbackAt: Date | null;
1031
1223
  generatedAlertId: string | null;
1032
1224
  relatedTaskId: string | null;
1033
1225
  analysisProvider: string | null;
@@ -1225,6 +1417,49 @@ export declare const updateObservationActionInputSchema: z.ZodObject<{
1225
1417
  links?: Record<string, string> | undefined;
1226
1418
  meta?: Record<string, unknown> | undefined;
1227
1419
  }>;
1420
+ export declare const updateObservationFeedbackInputSchema: z.ZodObject<{
1421
+ type: z.ZodLiteral<string>;
1422
+ id: z.ZodString;
1423
+ attributes: z.ZodEffects<z.ZodObject<{
1424
+ diagnosisFeedback: z.ZodEnum<["confirmed", "incorrect"]>;
1425
+ correctedDiagnosisType: z.ZodOptional<z.ZodString>;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ diagnosisFeedback: "confirmed" | "incorrect";
1428
+ correctedDiagnosisType?: string | undefined;
1429
+ }, {
1430
+ diagnosisFeedback: "confirmed" | "incorrect";
1431
+ correctedDiagnosisType?: string | undefined;
1432
+ }>, {
1433
+ diagnosisFeedback: "confirmed" | "incorrect";
1434
+ correctedDiagnosisType?: string | undefined;
1435
+ }, {
1436
+ diagnosisFeedback: "confirmed" | "incorrect";
1437
+ correctedDiagnosisType?: string | undefined;
1438
+ }>;
1439
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1440
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1441
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ type: string;
1444
+ id: string;
1445
+ attributes: {
1446
+ diagnosisFeedback: "confirmed" | "incorrect";
1447
+ correctedDiagnosisType?: string | undefined;
1448
+ };
1449
+ relationships?: Record<string, unknown> | undefined;
1450
+ links?: Record<string, string> | undefined;
1451
+ meta?: Record<string, unknown> | undefined;
1452
+ }, {
1453
+ type: string;
1454
+ id: string;
1455
+ attributes: {
1456
+ diagnosisFeedback: "confirmed" | "incorrect";
1457
+ correctedDiagnosisType?: string | undefined;
1458
+ };
1459
+ relationships?: Record<string, unknown> | undefined;
1460
+ links?: Record<string, string> | undefined;
1461
+ meta?: Record<string, unknown> | undefined;
1462
+ }>;
1228
1463
  export declare const observationResponseSchema: z.ZodObject<{
1229
1464
  data: z.ZodObject<{
1230
1465
  type: z.ZodLiteral<string>;
@@ -1266,36 +1501,36 @@ export declare const observationResponseSchema: z.ZodObject<{
1266
1501
  scientificName: z.ZodString;
1267
1502
  commonNames: z.ZodArray<z.ZodString, "many">;
1268
1503
  confidence: z.ZodNumber;
1269
- provider: z.ZodString;
1504
+ provider: z.ZodOptional<z.ZodString>;
1270
1505
  }, "strip", z.ZodTypeAny, {
1271
1506
  confidence: number;
1272
- provider: string;
1273
1507
  scientificName: string;
1274
1508
  commonNames: string[];
1509
+ provider?: string | undefined;
1275
1510
  }, {
1276
1511
  confidence: number;
1277
- provider: string;
1278
1512
  scientificName: string;
1279
1513
  commonNames: string[];
1514
+ provider?: string | undefined;
1280
1515
  }>>;
1281
1516
  primaryIssue: z.ZodOptional<z.ZodObject<{
1282
1517
  name: z.ZodString;
1283
1518
  category: z.ZodString;
1284
1519
  confidence: z.ZodNumber;
1285
- provider: z.ZodString;
1520
+ provider: z.ZodOptional<z.ZodString>;
1286
1521
  visualIndicators: z.ZodArray<z.ZodString, "many">;
1287
1522
  }, "strip", z.ZodTypeAny, {
1288
1523
  name: string;
1289
1524
  category: string;
1290
1525
  confidence: number;
1291
- provider: string;
1292
1526
  visualIndicators: string[];
1527
+ provider?: string | undefined;
1293
1528
  }, {
1294
1529
  name: string;
1295
1530
  category: string;
1296
1531
  confidence: number;
1297
- provider: string;
1298
1532
  visualIndicators: string[];
1533
+ provider?: string | undefined;
1299
1534
  }>>;
1300
1535
  secondaryIssues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1301
1536
  name: z.ZodString;
@@ -1310,53 +1545,84 @@ export declare const observationResponseSchema: z.ZodObject<{
1310
1545
  confidence: number;
1311
1546
  reasoning: string;
1312
1547
  }>, "many">>;
1313
- environmentalFactors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1548
+ environmentalFactors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1314
1549
  satelliteCorrelation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1315
1550
  historicalMatches: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1551
+ cropConflict: z.ZodOptional<z.ZodObject<{
1552
+ expectedCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1553
+ photoCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
+ conflict: z.ZodBoolean;
1555
+ reasoning: z.ZodOptional<z.ZodString>;
1556
+ }, "strip", z.ZodTypeAny, {
1557
+ conflict: boolean;
1558
+ reasoning?: string | undefined;
1559
+ expectedCrop?: string | null | undefined;
1560
+ photoCrop?: string | null | undefined;
1561
+ }, {
1562
+ conflict: boolean;
1563
+ reasoning?: string | undefined;
1564
+ expectedCrop?: string | null | undefined;
1565
+ photoCrop?: string | null | undefined;
1566
+ }>>;
1567
+ contextSignalsUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1316
1568
  }, "strip", z.ZodTypeAny, {
1317
1569
  plantIdentification?: {
1318
1570
  confidence: number;
1319
- provider: string;
1320
1571
  scientificName: string;
1321
1572
  commonNames: string[];
1573
+ provider?: string | undefined;
1322
1574
  } | undefined;
1323
1575
  primaryIssue?: {
1324
1576
  name: string;
1325
1577
  category: string;
1326
1578
  confidence: number;
1327
- provider: string;
1328
1579
  visualIndicators: string[];
1580
+ provider?: string | undefined;
1329
1581
  } | undefined;
1330
1582
  secondaryIssues?: {
1331
1583
  name: string;
1332
1584
  confidence: number;
1333
1585
  reasoning: string;
1334
1586
  }[] | undefined;
1335
- environmentalFactors?: Record<string, string> | undefined;
1587
+ environmentalFactors?: Record<string, string | number> | undefined;
1336
1588
  satelliteCorrelation?: Record<string, any> | undefined;
1337
1589
  historicalMatches?: any[] | undefined;
1590
+ cropConflict?: {
1591
+ conflict: boolean;
1592
+ reasoning?: string | undefined;
1593
+ expectedCrop?: string | null | undefined;
1594
+ photoCrop?: string | null | undefined;
1595
+ } | undefined;
1596
+ contextSignalsUsed?: string[] | undefined;
1338
1597
  }, {
1339
1598
  plantIdentification?: {
1340
1599
  confidence: number;
1341
- provider: string;
1342
1600
  scientificName: string;
1343
1601
  commonNames: string[];
1602
+ provider?: string | undefined;
1344
1603
  } | undefined;
1345
1604
  primaryIssue?: {
1346
1605
  name: string;
1347
1606
  category: string;
1348
1607
  confidence: number;
1349
- provider: string;
1350
1608
  visualIndicators: string[];
1609
+ provider?: string | undefined;
1351
1610
  } | undefined;
1352
1611
  secondaryIssues?: {
1353
1612
  name: string;
1354
1613
  confidence: number;
1355
1614
  reasoning: string;
1356
1615
  }[] | undefined;
1357
- environmentalFactors?: Record<string, string> | undefined;
1616
+ environmentalFactors?: Record<string, string | number> | undefined;
1358
1617
  satelliteCorrelation?: Record<string, any> | undefined;
1359
1618
  historicalMatches?: any[] | undefined;
1619
+ cropConflict?: {
1620
+ conflict: boolean;
1621
+ reasoning?: string | undefined;
1622
+ expectedCrop?: string | null | undefined;
1623
+ photoCrop?: string | null | undefined;
1624
+ } | undefined;
1625
+ contextSignalsUsed?: string[] | undefined;
1360
1626
  }>>;
1361
1627
  recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
1362
1628
  priority: z.ZodNumber;
@@ -1373,6 +1639,9 @@ export declare const observationResponseSchema: z.ZodObject<{
1373
1639
  costPerUnit: z.ZodOptional<z.ZodNumber>;
1374
1640
  totalCost: z.ZodOptional<z.ZodNumber>;
1375
1641
  availability: z.ZodOptional<z.ZodString>;
1642
+ inStock: z.ZodOptional<z.ZodBoolean>;
1643
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
1644
+ applicationMethod: z.ZodOptional<z.ZodString>;
1376
1645
  }, "strip", z.ZodTypeAny, {
1377
1646
  name: string;
1378
1647
  quantity: number;
@@ -1381,6 +1650,9 @@ export declare const observationResponseSchema: z.ZodObject<{
1381
1650
  totalCost?: number | undefined;
1382
1651
  costPerUnit?: number | undefined;
1383
1652
  availability?: string | undefined;
1653
+ inStock?: boolean | undefined;
1654
+ stockQuantity?: number | undefined;
1655
+ applicationMethod?: string | undefined;
1384
1656
  }, {
1385
1657
  name: string;
1386
1658
  quantity: number;
@@ -1389,6 +1661,9 @@ export declare const observationResponseSchema: z.ZodObject<{
1389
1661
  totalCost?: number | undefined;
1390
1662
  costPerUnit?: number | undefined;
1391
1663
  availability?: string | undefined;
1664
+ inStock?: boolean | undefined;
1665
+ stockQuantity?: number | undefined;
1666
+ applicationMethod?: string | undefined;
1392
1667
  }>, "many">>;
1393
1668
  applicationMethod: z.ZodOptional<z.ZodString>;
1394
1669
  expectedOutcome: z.ZodOptional<z.ZodString>;
@@ -1401,6 +1676,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1401
1676
  details: string;
1402
1677
  timing: string;
1403
1678
  confidence?: number | undefined;
1679
+ applicationMethod?: string | undefined;
1404
1680
  severity?: "critical" | "low" | "medium" | "high" | undefined;
1405
1681
  materials?: {
1406
1682
  name: string;
@@ -1410,8 +1686,10 @@ export declare const observationResponseSchema: z.ZodObject<{
1410
1686
  totalCost?: number | undefined;
1411
1687
  costPerUnit?: number | undefined;
1412
1688
  availability?: string | undefined;
1689
+ inStock?: boolean | undefined;
1690
+ stockQuantity?: number | undefined;
1691
+ applicationMethod?: string | undefined;
1413
1692
  }[] | undefined;
1414
- applicationMethod?: string | undefined;
1415
1693
  expectedOutcome?: string | undefined;
1416
1694
  preventiveMeasures?: string[] | undefined;
1417
1695
  estimatedTime?: string | undefined;
@@ -1422,6 +1700,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1422
1700
  details: string;
1423
1701
  timing: string;
1424
1702
  confidence?: number | undefined;
1703
+ applicationMethod?: string | undefined;
1425
1704
  severity?: "critical" | "low" | "medium" | "high" | undefined;
1426
1705
  materials?: {
1427
1706
  name: string;
@@ -1431,8 +1710,10 @@ export declare const observationResponseSchema: z.ZodObject<{
1431
1710
  totalCost?: number | undefined;
1432
1711
  costPerUnit?: number | undefined;
1433
1712
  availability?: string | undefined;
1713
+ inStock?: boolean | undefined;
1714
+ stockQuantity?: number | undefined;
1715
+ applicationMethod?: string | undefined;
1434
1716
  }[] | undefined;
1435
- applicationMethod?: string | undefined;
1436
1717
  expectedOutcome?: string | undefined;
1437
1718
  preventiveMeasures?: string[] | undefined;
1438
1719
  estimatedTime?: string | undefined;
@@ -1444,6 +1725,9 @@ export declare const observationResponseSchema: z.ZodObject<{
1444
1725
  actionStatus: z.ZodEnum<["pending", "in_progress", "completed", "dismissed"]>;
1445
1726
  actionTakenAt: z.ZodNullable<z.ZodDate>;
1446
1727
  actionNotes: z.ZodNullable<z.ZodString>;
1728
+ diagnosisFeedback: z.ZodNullable<z.ZodEnum<["confirmed", "incorrect"]>>;
1729
+ correctedDiagnosisType: z.ZodNullable<z.ZodString>;
1730
+ feedbackAt: z.ZodNullable<z.ZodDate>;
1447
1731
  generatedAlertId: z.ZodNullable<z.ZodString>;
1448
1732
  relatedTaskId: z.ZodNullable<z.ZodString>;
1449
1733
  analysisProvider: z.ZodNullable<z.ZodString>;
@@ -1462,6 +1746,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1462
1746
  details: string;
1463
1747
  timing: string;
1464
1748
  confidence?: number | undefined;
1749
+ applicationMethod?: string | undefined;
1465
1750
  severity?: "critical" | "low" | "medium" | "high" | undefined;
1466
1751
  materials?: {
1467
1752
  name: string;
@@ -1471,8 +1756,10 @@ export declare const observationResponseSchema: z.ZodObject<{
1471
1756
  totalCost?: number | undefined;
1472
1757
  costPerUnit?: number | undefined;
1473
1758
  availability?: string | undefined;
1759
+ inStock?: boolean | undefined;
1760
+ stockQuantity?: number | undefined;
1761
+ applicationMethod?: string | undefined;
1474
1762
  }[] | undefined;
1475
- applicationMethod?: string | undefined;
1476
1763
  expectedOutcome?: string | undefined;
1477
1764
  preventiveMeasures?: string[] | undefined;
1478
1765
  estimatedTime?: string | undefined;
@@ -1505,31 +1792,41 @@ export declare const observationResponseSchema: z.ZodObject<{
1505
1792
  analysisDetails: {
1506
1793
  plantIdentification?: {
1507
1794
  confidence: number;
1508
- provider: string;
1509
1795
  scientificName: string;
1510
1796
  commonNames: string[];
1797
+ provider?: string | undefined;
1511
1798
  } | undefined;
1512
1799
  primaryIssue?: {
1513
1800
  name: string;
1514
1801
  category: string;
1515
1802
  confidence: number;
1516
- provider: string;
1517
1803
  visualIndicators: string[];
1804
+ provider?: string | undefined;
1518
1805
  } | undefined;
1519
1806
  secondaryIssues?: {
1520
1807
  name: string;
1521
1808
  confidence: number;
1522
1809
  reasoning: string;
1523
1810
  }[] | undefined;
1524
- environmentalFactors?: Record<string, string> | undefined;
1811
+ environmentalFactors?: Record<string, string | number> | undefined;
1525
1812
  satelliteCorrelation?: Record<string, any> | undefined;
1526
1813
  historicalMatches?: any[] | undefined;
1814
+ cropConflict?: {
1815
+ conflict: boolean;
1816
+ reasoning?: string | undefined;
1817
+ expectedCrop?: string | null | undefined;
1818
+ photoCrop?: string | null | undefined;
1819
+ } | undefined;
1820
+ contextSignalsUsed?: string[] | undefined;
1527
1821
  } | null;
1528
1822
  urgencyScore: number | null;
1529
1823
  similarCasesCount: number | null;
1530
1824
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
1531
1825
  actionTakenAt: Date | null;
1532
1826
  actionNotes: string | null;
1827
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
1828
+ correctedDiagnosisType: string | null;
1829
+ feedbackAt: Date | null;
1533
1830
  generatedAlertId: string | null;
1534
1831
  relatedTaskId: string | null;
1535
1832
  analysisProvider: string | null;
@@ -1545,6 +1842,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1545
1842
  details: string;
1546
1843
  timing: string;
1547
1844
  confidence?: number | undefined;
1845
+ applicationMethod?: string | undefined;
1548
1846
  severity?: "critical" | "low" | "medium" | "high" | undefined;
1549
1847
  materials?: {
1550
1848
  name: string;
@@ -1554,8 +1852,10 @@ export declare const observationResponseSchema: z.ZodObject<{
1554
1852
  totalCost?: number | undefined;
1555
1853
  costPerUnit?: number | undefined;
1556
1854
  availability?: string | undefined;
1855
+ inStock?: boolean | undefined;
1856
+ stockQuantity?: number | undefined;
1857
+ applicationMethod?: string | undefined;
1557
1858
  }[] | undefined;
1558
- applicationMethod?: string | undefined;
1559
1859
  expectedOutcome?: string | undefined;
1560
1860
  preventiveMeasures?: string[] | undefined;
1561
1861
  estimatedTime?: string | undefined;
@@ -1588,31 +1888,41 @@ export declare const observationResponseSchema: z.ZodObject<{
1588
1888
  analysisDetails: {
1589
1889
  plantIdentification?: {
1590
1890
  confidence: number;
1591
- provider: string;
1592
1891
  scientificName: string;
1593
1892
  commonNames: string[];
1893
+ provider?: string | undefined;
1594
1894
  } | undefined;
1595
1895
  primaryIssue?: {
1596
1896
  name: string;
1597
1897
  category: string;
1598
1898
  confidence: number;
1599
- provider: string;
1600
1899
  visualIndicators: string[];
1900
+ provider?: string | undefined;
1601
1901
  } | undefined;
1602
1902
  secondaryIssues?: {
1603
1903
  name: string;
1604
1904
  confidence: number;
1605
1905
  reasoning: string;
1606
1906
  }[] | undefined;
1607
- environmentalFactors?: Record<string, string> | undefined;
1907
+ environmentalFactors?: Record<string, string | number> | undefined;
1608
1908
  satelliteCorrelation?: Record<string, any> | undefined;
1609
1909
  historicalMatches?: any[] | undefined;
1910
+ cropConflict?: {
1911
+ conflict: boolean;
1912
+ reasoning?: string | undefined;
1913
+ expectedCrop?: string | null | undefined;
1914
+ photoCrop?: string | null | undefined;
1915
+ } | undefined;
1916
+ contextSignalsUsed?: string[] | undefined;
1610
1917
  } | null;
1611
1918
  urgencyScore: number | null;
1612
1919
  similarCasesCount: number | null;
1613
1920
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
1614
1921
  actionTakenAt: Date | null;
1615
1922
  actionNotes: string | null;
1923
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
1924
+ correctedDiagnosisType: string | null;
1925
+ feedbackAt: Date | null;
1616
1926
  generatedAlertId: string | null;
1617
1927
  relatedTaskId: string | null;
1618
1928
  analysisProvider: string | null;
@@ -1635,6 +1945,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1635
1945
  details: string;
1636
1946
  timing: string;
1637
1947
  confidence?: number | undefined;
1948
+ applicationMethod?: string | undefined;
1638
1949
  severity?: "critical" | "low" | "medium" | "high" | undefined;
1639
1950
  materials?: {
1640
1951
  name: string;
@@ -1644,8 +1955,10 @@ export declare const observationResponseSchema: z.ZodObject<{
1644
1955
  totalCost?: number | undefined;
1645
1956
  costPerUnit?: number | undefined;
1646
1957
  availability?: string | undefined;
1958
+ inStock?: boolean | undefined;
1959
+ stockQuantity?: number | undefined;
1960
+ applicationMethod?: string | undefined;
1647
1961
  }[] | undefined;
1648
- applicationMethod?: string | undefined;
1649
1962
  expectedOutcome?: string | undefined;
1650
1963
  preventiveMeasures?: string[] | undefined;
1651
1964
  estimatedTime?: string | undefined;
@@ -1678,31 +1991,41 @@ export declare const observationResponseSchema: z.ZodObject<{
1678
1991
  analysisDetails: {
1679
1992
  plantIdentification?: {
1680
1993
  confidence: number;
1681
- provider: string;
1682
1994
  scientificName: string;
1683
1995
  commonNames: string[];
1996
+ provider?: string | undefined;
1684
1997
  } | undefined;
1685
1998
  primaryIssue?: {
1686
1999
  name: string;
1687
2000
  category: string;
1688
2001
  confidence: number;
1689
- provider: string;
1690
2002
  visualIndicators: string[];
2003
+ provider?: string | undefined;
1691
2004
  } | undefined;
1692
2005
  secondaryIssues?: {
1693
2006
  name: string;
1694
2007
  confidence: number;
1695
2008
  reasoning: string;
1696
2009
  }[] | undefined;
1697
- environmentalFactors?: Record<string, string> | undefined;
2010
+ environmentalFactors?: Record<string, string | number> | undefined;
1698
2011
  satelliteCorrelation?: Record<string, any> | undefined;
1699
2012
  historicalMatches?: any[] | undefined;
2013
+ cropConflict?: {
2014
+ conflict: boolean;
2015
+ reasoning?: string | undefined;
2016
+ expectedCrop?: string | null | undefined;
2017
+ photoCrop?: string | null | undefined;
2018
+ } | undefined;
2019
+ contextSignalsUsed?: string[] | undefined;
1700
2020
  } | null;
1701
2021
  urgencyScore: number | null;
1702
2022
  similarCasesCount: number | null;
1703
2023
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
1704
2024
  actionTakenAt: Date | null;
1705
2025
  actionNotes: string | null;
2026
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
2027
+ correctedDiagnosisType: string | null;
2028
+ feedbackAt: Date | null;
1706
2029
  generatedAlertId: string | null;
1707
2030
  relatedTaskId: string | null;
1708
2031
  analysisProvider: string | null;
@@ -1725,6 +2048,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1725
2048
  details: string;
1726
2049
  timing: string;
1727
2050
  confidence?: number | undefined;
2051
+ applicationMethod?: string | undefined;
1728
2052
  severity?: "critical" | "low" | "medium" | "high" | undefined;
1729
2053
  materials?: {
1730
2054
  name: string;
@@ -1734,8 +2058,10 @@ export declare const observationResponseSchema: z.ZodObject<{
1734
2058
  totalCost?: number | undefined;
1735
2059
  costPerUnit?: number | undefined;
1736
2060
  availability?: string | undefined;
2061
+ inStock?: boolean | undefined;
2062
+ stockQuantity?: number | undefined;
2063
+ applicationMethod?: string | undefined;
1737
2064
  }[] | undefined;
1738
- applicationMethod?: string | undefined;
1739
2065
  expectedOutcome?: string | undefined;
1740
2066
  preventiveMeasures?: string[] | undefined;
1741
2067
  estimatedTime?: string | undefined;
@@ -1768,31 +2094,41 @@ export declare const observationResponseSchema: z.ZodObject<{
1768
2094
  analysisDetails: {
1769
2095
  plantIdentification?: {
1770
2096
  confidence: number;
1771
- provider: string;
1772
2097
  scientificName: string;
1773
2098
  commonNames: string[];
2099
+ provider?: string | undefined;
1774
2100
  } | undefined;
1775
2101
  primaryIssue?: {
1776
2102
  name: string;
1777
2103
  category: string;
1778
2104
  confidence: number;
1779
- provider: string;
1780
2105
  visualIndicators: string[];
2106
+ provider?: string | undefined;
1781
2107
  } | undefined;
1782
2108
  secondaryIssues?: {
1783
2109
  name: string;
1784
2110
  confidence: number;
1785
2111
  reasoning: string;
1786
2112
  }[] | undefined;
1787
- environmentalFactors?: Record<string, string> | undefined;
2113
+ environmentalFactors?: Record<string, string | number> | undefined;
1788
2114
  satelliteCorrelation?: Record<string, any> | undefined;
1789
2115
  historicalMatches?: any[] | undefined;
2116
+ cropConflict?: {
2117
+ conflict: boolean;
2118
+ reasoning?: string | undefined;
2119
+ expectedCrop?: string | null | undefined;
2120
+ photoCrop?: string | null | undefined;
2121
+ } | undefined;
2122
+ contextSignalsUsed?: string[] | undefined;
1790
2123
  } | null;
1791
2124
  urgencyScore: number | null;
1792
2125
  similarCasesCount: number | null;
1793
2126
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
1794
2127
  actionTakenAt: Date | null;
1795
2128
  actionNotes: string | null;
2129
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
2130
+ correctedDiagnosisType: string | null;
2131
+ feedbackAt: Date | null;
1796
2132
  generatedAlertId: string | null;
1797
2133
  relatedTaskId: string | null;
1798
2134
  analysisProvider: string | null;
@@ -1841,6 +2177,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1841
2177
  details: string;
1842
2178
  timing: string;
1843
2179
  confidence?: number | undefined;
2180
+ applicationMethod?: string | undefined;
1844
2181
  severity?: "critical" | "low" | "medium" | "high" | undefined;
1845
2182
  materials?: {
1846
2183
  name: string;
@@ -1850,8 +2187,10 @@ export declare const observationResponseSchema: z.ZodObject<{
1850
2187
  totalCost?: number | undefined;
1851
2188
  costPerUnit?: number | undefined;
1852
2189
  availability?: string | undefined;
2190
+ inStock?: boolean | undefined;
2191
+ stockQuantity?: number | undefined;
2192
+ applicationMethod?: string | undefined;
1853
2193
  }[] | undefined;
1854
- applicationMethod?: string | undefined;
1855
2194
  expectedOutcome?: string | undefined;
1856
2195
  preventiveMeasures?: string[] | undefined;
1857
2196
  estimatedTime?: string | undefined;
@@ -1884,31 +2223,41 @@ export declare const observationResponseSchema: z.ZodObject<{
1884
2223
  analysisDetails: {
1885
2224
  plantIdentification?: {
1886
2225
  confidence: number;
1887
- provider: string;
1888
2226
  scientificName: string;
1889
2227
  commonNames: string[];
2228
+ provider?: string | undefined;
1890
2229
  } | undefined;
1891
2230
  primaryIssue?: {
1892
2231
  name: string;
1893
2232
  category: string;
1894
2233
  confidence: number;
1895
- provider: string;
1896
2234
  visualIndicators: string[];
2235
+ provider?: string | undefined;
1897
2236
  } | undefined;
1898
2237
  secondaryIssues?: {
1899
2238
  name: string;
1900
2239
  confidence: number;
1901
2240
  reasoning: string;
1902
2241
  }[] | undefined;
1903
- environmentalFactors?: Record<string, string> | undefined;
2242
+ environmentalFactors?: Record<string, string | number> | undefined;
1904
2243
  satelliteCorrelation?: Record<string, any> | undefined;
1905
2244
  historicalMatches?: any[] | undefined;
2245
+ cropConflict?: {
2246
+ conflict: boolean;
2247
+ reasoning?: string | undefined;
2248
+ expectedCrop?: string | null | undefined;
2249
+ photoCrop?: string | null | undefined;
2250
+ } | undefined;
2251
+ contextSignalsUsed?: string[] | undefined;
1906
2252
  } | null;
1907
2253
  urgencyScore: number | null;
1908
2254
  similarCasesCount: number | null;
1909
2255
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
1910
2256
  actionTakenAt: Date | null;
1911
2257
  actionNotes: string | null;
2258
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
2259
+ correctedDiagnosisType: string | null;
2260
+ feedbackAt: Date | null;
1912
2261
  generatedAlertId: string | null;
1913
2262
  relatedTaskId: string | null;
1914
2263
  analysisProvider: string | null;
@@ -1943,6 +2292,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1943
2292
  details: string;
1944
2293
  timing: string;
1945
2294
  confidence?: number | undefined;
2295
+ applicationMethod?: string | undefined;
1946
2296
  severity?: "critical" | "low" | "medium" | "high" | undefined;
1947
2297
  materials?: {
1948
2298
  name: string;
@@ -1952,8 +2302,10 @@ export declare const observationResponseSchema: z.ZodObject<{
1952
2302
  totalCost?: number | undefined;
1953
2303
  costPerUnit?: number | undefined;
1954
2304
  availability?: string | undefined;
2305
+ inStock?: boolean | undefined;
2306
+ stockQuantity?: number | undefined;
2307
+ applicationMethod?: string | undefined;
1955
2308
  }[] | undefined;
1956
- applicationMethod?: string | undefined;
1957
2309
  expectedOutcome?: string | undefined;
1958
2310
  preventiveMeasures?: string[] | undefined;
1959
2311
  estimatedTime?: string | undefined;
@@ -1986,31 +2338,41 @@ export declare const observationResponseSchema: z.ZodObject<{
1986
2338
  analysisDetails: {
1987
2339
  plantIdentification?: {
1988
2340
  confidence: number;
1989
- provider: string;
1990
2341
  scientificName: string;
1991
2342
  commonNames: string[];
2343
+ provider?: string | undefined;
1992
2344
  } | undefined;
1993
2345
  primaryIssue?: {
1994
2346
  name: string;
1995
2347
  category: string;
1996
2348
  confidence: number;
1997
- provider: string;
1998
2349
  visualIndicators: string[];
2350
+ provider?: string | undefined;
1999
2351
  } | undefined;
2000
2352
  secondaryIssues?: {
2001
2353
  name: string;
2002
2354
  confidence: number;
2003
2355
  reasoning: string;
2004
2356
  }[] | undefined;
2005
- environmentalFactors?: Record<string, string> | undefined;
2357
+ environmentalFactors?: Record<string, string | number> | undefined;
2006
2358
  satelliteCorrelation?: Record<string, any> | undefined;
2007
2359
  historicalMatches?: any[] | undefined;
2360
+ cropConflict?: {
2361
+ conflict: boolean;
2362
+ reasoning?: string | undefined;
2363
+ expectedCrop?: string | null | undefined;
2364
+ photoCrop?: string | null | undefined;
2365
+ } | undefined;
2366
+ contextSignalsUsed?: string[] | undefined;
2008
2367
  } | null;
2009
2368
  urgencyScore: number | null;
2010
2369
  similarCasesCount: number | null;
2011
2370
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
2012
2371
  actionTakenAt: Date | null;
2013
2372
  actionNotes: string | null;
2373
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
2374
+ correctedDiagnosisType: string | null;
2375
+ feedbackAt: Date | null;
2014
2376
  generatedAlertId: string | null;
2015
2377
  relatedTaskId: string | null;
2016
2378
  analysisProvider: string | null;
@@ -2074,36 +2436,36 @@ export declare const observationListResponseSchema: z.ZodObject<{
2074
2436
  scientificName: z.ZodString;
2075
2437
  commonNames: z.ZodArray<z.ZodString, "many">;
2076
2438
  confidence: z.ZodNumber;
2077
- provider: z.ZodString;
2439
+ provider: z.ZodOptional<z.ZodString>;
2078
2440
  }, "strip", z.ZodTypeAny, {
2079
2441
  confidence: number;
2080
- provider: string;
2081
2442
  scientificName: string;
2082
2443
  commonNames: string[];
2444
+ provider?: string | undefined;
2083
2445
  }, {
2084
2446
  confidence: number;
2085
- provider: string;
2086
2447
  scientificName: string;
2087
2448
  commonNames: string[];
2449
+ provider?: string | undefined;
2088
2450
  }>>;
2089
2451
  primaryIssue: z.ZodOptional<z.ZodObject<{
2090
2452
  name: z.ZodString;
2091
2453
  category: z.ZodString;
2092
2454
  confidence: z.ZodNumber;
2093
- provider: z.ZodString;
2455
+ provider: z.ZodOptional<z.ZodString>;
2094
2456
  visualIndicators: z.ZodArray<z.ZodString, "many">;
2095
2457
  }, "strip", z.ZodTypeAny, {
2096
2458
  name: string;
2097
2459
  category: string;
2098
2460
  confidence: number;
2099
- provider: string;
2100
2461
  visualIndicators: string[];
2462
+ provider?: string | undefined;
2101
2463
  }, {
2102
2464
  name: string;
2103
2465
  category: string;
2104
2466
  confidence: number;
2105
- provider: string;
2106
2467
  visualIndicators: string[];
2468
+ provider?: string | undefined;
2107
2469
  }>>;
2108
2470
  secondaryIssues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2109
2471
  name: z.ZodString;
@@ -2118,53 +2480,84 @@ export declare const observationListResponseSchema: z.ZodObject<{
2118
2480
  confidence: number;
2119
2481
  reasoning: string;
2120
2482
  }>, "many">>;
2121
- environmentalFactors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2483
+ environmentalFactors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2122
2484
  satelliteCorrelation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2123
2485
  historicalMatches: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2486
+ cropConflict: z.ZodOptional<z.ZodObject<{
2487
+ expectedCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2488
+ photoCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2489
+ conflict: z.ZodBoolean;
2490
+ reasoning: z.ZodOptional<z.ZodString>;
2491
+ }, "strip", z.ZodTypeAny, {
2492
+ conflict: boolean;
2493
+ reasoning?: string | undefined;
2494
+ expectedCrop?: string | null | undefined;
2495
+ photoCrop?: string | null | undefined;
2496
+ }, {
2497
+ conflict: boolean;
2498
+ reasoning?: string | undefined;
2499
+ expectedCrop?: string | null | undefined;
2500
+ photoCrop?: string | null | undefined;
2501
+ }>>;
2502
+ contextSignalsUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2124
2503
  }, "strip", z.ZodTypeAny, {
2125
2504
  plantIdentification?: {
2126
2505
  confidence: number;
2127
- provider: string;
2128
2506
  scientificName: string;
2129
2507
  commonNames: string[];
2508
+ provider?: string | undefined;
2130
2509
  } | undefined;
2131
2510
  primaryIssue?: {
2132
2511
  name: string;
2133
2512
  category: string;
2134
2513
  confidence: number;
2135
- provider: string;
2136
2514
  visualIndicators: string[];
2515
+ provider?: string | undefined;
2137
2516
  } | undefined;
2138
2517
  secondaryIssues?: {
2139
2518
  name: string;
2140
2519
  confidence: number;
2141
2520
  reasoning: string;
2142
2521
  }[] | undefined;
2143
- environmentalFactors?: Record<string, string> | undefined;
2522
+ environmentalFactors?: Record<string, string | number> | undefined;
2144
2523
  satelliteCorrelation?: Record<string, any> | undefined;
2145
2524
  historicalMatches?: any[] | undefined;
2525
+ cropConflict?: {
2526
+ conflict: boolean;
2527
+ reasoning?: string | undefined;
2528
+ expectedCrop?: string | null | undefined;
2529
+ photoCrop?: string | null | undefined;
2530
+ } | undefined;
2531
+ contextSignalsUsed?: string[] | undefined;
2146
2532
  }, {
2147
2533
  plantIdentification?: {
2148
2534
  confidence: number;
2149
- provider: string;
2150
2535
  scientificName: string;
2151
2536
  commonNames: string[];
2537
+ provider?: string | undefined;
2152
2538
  } | undefined;
2153
2539
  primaryIssue?: {
2154
2540
  name: string;
2155
2541
  category: string;
2156
2542
  confidence: number;
2157
- provider: string;
2158
2543
  visualIndicators: string[];
2544
+ provider?: string | undefined;
2159
2545
  } | undefined;
2160
2546
  secondaryIssues?: {
2161
2547
  name: string;
2162
2548
  confidence: number;
2163
2549
  reasoning: string;
2164
2550
  }[] | undefined;
2165
- environmentalFactors?: Record<string, string> | undefined;
2551
+ environmentalFactors?: Record<string, string | number> | undefined;
2166
2552
  satelliteCorrelation?: Record<string, any> | undefined;
2167
2553
  historicalMatches?: any[] | undefined;
2554
+ cropConflict?: {
2555
+ conflict: boolean;
2556
+ reasoning?: string | undefined;
2557
+ expectedCrop?: string | null | undefined;
2558
+ photoCrop?: string | null | undefined;
2559
+ } | undefined;
2560
+ contextSignalsUsed?: string[] | undefined;
2168
2561
  }>>;
2169
2562
  recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
2170
2563
  priority: z.ZodNumber;
@@ -2181,6 +2574,9 @@ export declare const observationListResponseSchema: z.ZodObject<{
2181
2574
  costPerUnit: z.ZodOptional<z.ZodNumber>;
2182
2575
  totalCost: z.ZodOptional<z.ZodNumber>;
2183
2576
  availability: z.ZodOptional<z.ZodString>;
2577
+ inStock: z.ZodOptional<z.ZodBoolean>;
2578
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
2579
+ applicationMethod: z.ZodOptional<z.ZodString>;
2184
2580
  }, "strip", z.ZodTypeAny, {
2185
2581
  name: string;
2186
2582
  quantity: number;
@@ -2189,6 +2585,9 @@ export declare const observationListResponseSchema: z.ZodObject<{
2189
2585
  totalCost?: number | undefined;
2190
2586
  costPerUnit?: number | undefined;
2191
2587
  availability?: string | undefined;
2588
+ inStock?: boolean | undefined;
2589
+ stockQuantity?: number | undefined;
2590
+ applicationMethod?: string | undefined;
2192
2591
  }, {
2193
2592
  name: string;
2194
2593
  quantity: number;
@@ -2197,6 +2596,9 @@ export declare const observationListResponseSchema: z.ZodObject<{
2197
2596
  totalCost?: number | undefined;
2198
2597
  costPerUnit?: number | undefined;
2199
2598
  availability?: string | undefined;
2599
+ inStock?: boolean | undefined;
2600
+ stockQuantity?: number | undefined;
2601
+ applicationMethod?: string | undefined;
2200
2602
  }>, "many">>;
2201
2603
  applicationMethod: z.ZodOptional<z.ZodString>;
2202
2604
  expectedOutcome: z.ZodOptional<z.ZodString>;
@@ -2209,6 +2611,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2209
2611
  details: string;
2210
2612
  timing: string;
2211
2613
  confidence?: number | undefined;
2614
+ applicationMethod?: string | undefined;
2212
2615
  severity?: "critical" | "low" | "medium" | "high" | undefined;
2213
2616
  materials?: {
2214
2617
  name: string;
@@ -2218,8 +2621,10 @@ export declare const observationListResponseSchema: z.ZodObject<{
2218
2621
  totalCost?: number | undefined;
2219
2622
  costPerUnit?: number | undefined;
2220
2623
  availability?: string | undefined;
2624
+ inStock?: boolean | undefined;
2625
+ stockQuantity?: number | undefined;
2626
+ applicationMethod?: string | undefined;
2221
2627
  }[] | undefined;
2222
- applicationMethod?: string | undefined;
2223
2628
  expectedOutcome?: string | undefined;
2224
2629
  preventiveMeasures?: string[] | undefined;
2225
2630
  estimatedTime?: string | undefined;
@@ -2230,6 +2635,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2230
2635
  details: string;
2231
2636
  timing: string;
2232
2637
  confidence?: number | undefined;
2638
+ applicationMethod?: string | undefined;
2233
2639
  severity?: "critical" | "low" | "medium" | "high" | undefined;
2234
2640
  materials?: {
2235
2641
  name: string;
@@ -2239,8 +2645,10 @@ export declare const observationListResponseSchema: z.ZodObject<{
2239
2645
  totalCost?: number | undefined;
2240
2646
  costPerUnit?: number | undefined;
2241
2647
  availability?: string | undefined;
2648
+ inStock?: boolean | undefined;
2649
+ stockQuantity?: number | undefined;
2650
+ applicationMethod?: string | undefined;
2242
2651
  }[] | undefined;
2243
- applicationMethod?: string | undefined;
2244
2652
  expectedOutcome?: string | undefined;
2245
2653
  preventiveMeasures?: string[] | undefined;
2246
2654
  estimatedTime?: string | undefined;
@@ -2252,6 +2660,9 @@ export declare const observationListResponseSchema: z.ZodObject<{
2252
2660
  actionStatus: z.ZodEnum<["pending", "in_progress", "completed", "dismissed"]>;
2253
2661
  actionTakenAt: z.ZodNullable<z.ZodDate>;
2254
2662
  actionNotes: z.ZodNullable<z.ZodString>;
2663
+ diagnosisFeedback: z.ZodNullable<z.ZodEnum<["confirmed", "incorrect"]>>;
2664
+ correctedDiagnosisType: z.ZodNullable<z.ZodString>;
2665
+ feedbackAt: z.ZodNullable<z.ZodDate>;
2255
2666
  generatedAlertId: z.ZodNullable<z.ZodString>;
2256
2667
  relatedTaskId: z.ZodNullable<z.ZodString>;
2257
2668
  analysisProvider: z.ZodNullable<z.ZodString>;
@@ -2270,6 +2681,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2270
2681
  details: string;
2271
2682
  timing: string;
2272
2683
  confidence?: number | undefined;
2684
+ applicationMethod?: string | undefined;
2273
2685
  severity?: "critical" | "low" | "medium" | "high" | undefined;
2274
2686
  materials?: {
2275
2687
  name: string;
@@ -2279,8 +2691,10 @@ export declare const observationListResponseSchema: z.ZodObject<{
2279
2691
  totalCost?: number | undefined;
2280
2692
  costPerUnit?: number | undefined;
2281
2693
  availability?: string | undefined;
2694
+ inStock?: boolean | undefined;
2695
+ stockQuantity?: number | undefined;
2696
+ applicationMethod?: string | undefined;
2282
2697
  }[] | undefined;
2283
- applicationMethod?: string | undefined;
2284
2698
  expectedOutcome?: string | undefined;
2285
2699
  preventiveMeasures?: string[] | undefined;
2286
2700
  estimatedTime?: string | undefined;
@@ -2313,31 +2727,41 @@ export declare const observationListResponseSchema: z.ZodObject<{
2313
2727
  analysisDetails: {
2314
2728
  plantIdentification?: {
2315
2729
  confidence: number;
2316
- provider: string;
2317
2730
  scientificName: string;
2318
2731
  commonNames: string[];
2732
+ provider?: string | undefined;
2319
2733
  } | undefined;
2320
2734
  primaryIssue?: {
2321
2735
  name: string;
2322
2736
  category: string;
2323
2737
  confidence: number;
2324
- provider: string;
2325
2738
  visualIndicators: string[];
2739
+ provider?: string | undefined;
2326
2740
  } | undefined;
2327
2741
  secondaryIssues?: {
2328
2742
  name: string;
2329
2743
  confidence: number;
2330
2744
  reasoning: string;
2331
2745
  }[] | undefined;
2332
- environmentalFactors?: Record<string, string> | undefined;
2746
+ environmentalFactors?: Record<string, string | number> | undefined;
2333
2747
  satelliteCorrelation?: Record<string, any> | undefined;
2334
2748
  historicalMatches?: any[] | undefined;
2749
+ cropConflict?: {
2750
+ conflict: boolean;
2751
+ reasoning?: string | undefined;
2752
+ expectedCrop?: string | null | undefined;
2753
+ photoCrop?: string | null | undefined;
2754
+ } | undefined;
2755
+ contextSignalsUsed?: string[] | undefined;
2335
2756
  } | null;
2336
2757
  urgencyScore: number | null;
2337
2758
  similarCasesCount: number | null;
2338
2759
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
2339
2760
  actionTakenAt: Date | null;
2340
2761
  actionNotes: string | null;
2762
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
2763
+ correctedDiagnosisType: string | null;
2764
+ feedbackAt: Date | null;
2341
2765
  generatedAlertId: string | null;
2342
2766
  relatedTaskId: string | null;
2343
2767
  analysisProvider: string | null;
@@ -2353,6 +2777,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2353
2777
  details: string;
2354
2778
  timing: string;
2355
2779
  confidence?: number | undefined;
2780
+ applicationMethod?: string | undefined;
2356
2781
  severity?: "critical" | "low" | "medium" | "high" | undefined;
2357
2782
  materials?: {
2358
2783
  name: string;
@@ -2362,8 +2787,10 @@ export declare const observationListResponseSchema: z.ZodObject<{
2362
2787
  totalCost?: number | undefined;
2363
2788
  costPerUnit?: number | undefined;
2364
2789
  availability?: string | undefined;
2790
+ inStock?: boolean | undefined;
2791
+ stockQuantity?: number | undefined;
2792
+ applicationMethod?: string | undefined;
2365
2793
  }[] | undefined;
2366
- applicationMethod?: string | undefined;
2367
2794
  expectedOutcome?: string | undefined;
2368
2795
  preventiveMeasures?: string[] | undefined;
2369
2796
  estimatedTime?: string | undefined;
@@ -2396,31 +2823,41 @@ export declare const observationListResponseSchema: z.ZodObject<{
2396
2823
  analysisDetails: {
2397
2824
  plantIdentification?: {
2398
2825
  confidence: number;
2399
- provider: string;
2400
2826
  scientificName: string;
2401
2827
  commonNames: string[];
2828
+ provider?: string | undefined;
2402
2829
  } | undefined;
2403
2830
  primaryIssue?: {
2404
2831
  name: string;
2405
2832
  category: string;
2406
2833
  confidence: number;
2407
- provider: string;
2408
2834
  visualIndicators: string[];
2835
+ provider?: string | undefined;
2409
2836
  } | undefined;
2410
2837
  secondaryIssues?: {
2411
2838
  name: string;
2412
2839
  confidence: number;
2413
2840
  reasoning: string;
2414
2841
  }[] | undefined;
2415
- environmentalFactors?: Record<string, string> | undefined;
2842
+ environmentalFactors?: Record<string, string | number> | undefined;
2416
2843
  satelliteCorrelation?: Record<string, any> | undefined;
2417
2844
  historicalMatches?: any[] | undefined;
2845
+ cropConflict?: {
2846
+ conflict: boolean;
2847
+ reasoning?: string | undefined;
2848
+ expectedCrop?: string | null | undefined;
2849
+ photoCrop?: string | null | undefined;
2850
+ } | undefined;
2851
+ contextSignalsUsed?: string[] | undefined;
2418
2852
  } | null;
2419
2853
  urgencyScore: number | null;
2420
2854
  similarCasesCount: number | null;
2421
2855
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
2422
2856
  actionTakenAt: Date | null;
2423
2857
  actionNotes: string | null;
2858
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
2859
+ correctedDiagnosisType: string | null;
2860
+ feedbackAt: Date | null;
2424
2861
  generatedAlertId: string | null;
2425
2862
  relatedTaskId: string | null;
2426
2863
  analysisProvider: string | null;
@@ -2443,6 +2880,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2443
2880
  details: string;
2444
2881
  timing: string;
2445
2882
  confidence?: number | undefined;
2883
+ applicationMethod?: string | undefined;
2446
2884
  severity?: "critical" | "low" | "medium" | "high" | undefined;
2447
2885
  materials?: {
2448
2886
  name: string;
@@ -2452,8 +2890,10 @@ export declare const observationListResponseSchema: z.ZodObject<{
2452
2890
  totalCost?: number | undefined;
2453
2891
  costPerUnit?: number | undefined;
2454
2892
  availability?: string | undefined;
2893
+ inStock?: boolean | undefined;
2894
+ stockQuantity?: number | undefined;
2895
+ applicationMethod?: string | undefined;
2455
2896
  }[] | undefined;
2456
- applicationMethod?: string | undefined;
2457
2897
  expectedOutcome?: string | undefined;
2458
2898
  preventiveMeasures?: string[] | undefined;
2459
2899
  estimatedTime?: string | undefined;
@@ -2486,31 +2926,41 @@ export declare const observationListResponseSchema: z.ZodObject<{
2486
2926
  analysisDetails: {
2487
2927
  plantIdentification?: {
2488
2928
  confidence: number;
2489
- provider: string;
2490
2929
  scientificName: string;
2491
2930
  commonNames: string[];
2931
+ provider?: string | undefined;
2492
2932
  } | undefined;
2493
2933
  primaryIssue?: {
2494
2934
  name: string;
2495
2935
  category: string;
2496
2936
  confidence: number;
2497
- provider: string;
2498
2937
  visualIndicators: string[];
2938
+ provider?: string | undefined;
2499
2939
  } | undefined;
2500
2940
  secondaryIssues?: {
2501
2941
  name: string;
2502
2942
  confidence: number;
2503
2943
  reasoning: string;
2504
2944
  }[] | undefined;
2505
- environmentalFactors?: Record<string, string> | undefined;
2945
+ environmentalFactors?: Record<string, string | number> | undefined;
2506
2946
  satelliteCorrelation?: Record<string, any> | undefined;
2507
2947
  historicalMatches?: any[] | undefined;
2948
+ cropConflict?: {
2949
+ conflict: boolean;
2950
+ reasoning?: string | undefined;
2951
+ expectedCrop?: string | null | undefined;
2952
+ photoCrop?: string | null | undefined;
2953
+ } | undefined;
2954
+ contextSignalsUsed?: string[] | undefined;
2508
2955
  } | null;
2509
2956
  urgencyScore: number | null;
2510
2957
  similarCasesCount: number | null;
2511
2958
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
2512
2959
  actionTakenAt: Date | null;
2513
2960
  actionNotes: string | null;
2961
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
2962
+ correctedDiagnosisType: string | null;
2963
+ feedbackAt: Date | null;
2514
2964
  generatedAlertId: string | null;
2515
2965
  relatedTaskId: string | null;
2516
2966
  analysisProvider: string | null;
@@ -2533,6 +2983,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2533
2983
  details: string;
2534
2984
  timing: string;
2535
2985
  confidence?: number | undefined;
2986
+ applicationMethod?: string | undefined;
2536
2987
  severity?: "critical" | "low" | "medium" | "high" | undefined;
2537
2988
  materials?: {
2538
2989
  name: string;
@@ -2542,8 +2993,10 @@ export declare const observationListResponseSchema: z.ZodObject<{
2542
2993
  totalCost?: number | undefined;
2543
2994
  costPerUnit?: number | undefined;
2544
2995
  availability?: string | undefined;
2996
+ inStock?: boolean | undefined;
2997
+ stockQuantity?: number | undefined;
2998
+ applicationMethod?: string | undefined;
2545
2999
  }[] | undefined;
2546
- applicationMethod?: string | undefined;
2547
3000
  expectedOutcome?: string | undefined;
2548
3001
  preventiveMeasures?: string[] | undefined;
2549
3002
  estimatedTime?: string | undefined;
@@ -2576,31 +3029,41 @@ export declare const observationListResponseSchema: z.ZodObject<{
2576
3029
  analysisDetails: {
2577
3030
  plantIdentification?: {
2578
3031
  confidence: number;
2579
- provider: string;
2580
3032
  scientificName: string;
2581
3033
  commonNames: string[];
3034
+ provider?: string | undefined;
2582
3035
  } | undefined;
2583
3036
  primaryIssue?: {
2584
3037
  name: string;
2585
3038
  category: string;
2586
3039
  confidence: number;
2587
- provider: string;
2588
3040
  visualIndicators: string[];
3041
+ provider?: string | undefined;
2589
3042
  } | undefined;
2590
3043
  secondaryIssues?: {
2591
3044
  name: string;
2592
3045
  confidence: number;
2593
3046
  reasoning: string;
2594
3047
  }[] | undefined;
2595
- environmentalFactors?: Record<string, string> | undefined;
3048
+ environmentalFactors?: Record<string, string | number> | undefined;
2596
3049
  satelliteCorrelation?: Record<string, any> | undefined;
2597
3050
  historicalMatches?: any[] | undefined;
3051
+ cropConflict?: {
3052
+ conflict: boolean;
3053
+ reasoning?: string | undefined;
3054
+ expectedCrop?: string | null | undefined;
3055
+ photoCrop?: string | null | undefined;
3056
+ } | undefined;
3057
+ contextSignalsUsed?: string[] | undefined;
2598
3058
  } | null;
2599
3059
  urgencyScore: number | null;
2600
3060
  similarCasesCount: number | null;
2601
3061
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
2602
3062
  actionTakenAt: Date | null;
2603
3063
  actionNotes: string | null;
3064
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
3065
+ correctedDiagnosisType: string | null;
3066
+ feedbackAt: Date | null;
2604
3067
  generatedAlertId: string | null;
2605
3068
  relatedTaskId: string | null;
2606
3069
  analysisProvider: string | null;
@@ -2649,6 +3112,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2649
3112
  details: string;
2650
3113
  timing: string;
2651
3114
  confidence?: number | undefined;
3115
+ applicationMethod?: string | undefined;
2652
3116
  severity?: "critical" | "low" | "medium" | "high" | undefined;
2653
3117
  materials?: {
2654
3118
  name: string;
@@ -2658,8 +3122,10 @@ export declare const observationListResponseSchema: z.ZodObject<{
2658
3122
  totalCost?: number | undefined;
2659
3123
  costPerUnit?: number | undefined;
2660
3124
  availability?: string | undefined;
3125
+ inStock?: boolean | undefined;
3126
+ stockQuantity?: number | undefined;
3127
+ applicationMethod?: string | undefined;
2661
3128
  }[] | undefined;
2662
- applicationMethod?: string | undefined;
2663
3129
  expectedOutcome?: string | undefined;
2664
3130
  preventiveMeasures?: string[] | undefined;
2665
3131
  estimatedTime?: string | undefined;
@@ -2692,31 +3158,41 @@ export declare const observationListResponseSchema: z.ZodObject<{
2692
3158
  analysisDetails: {
2693
3159
  plantIdentification?: {
2694
3160
  confidence: number;
2695
- provider: string;
2696
3161
  scientificName: string;
2697
3162
  commonNames: string[];
3163
+ provider?: string | undefined;
2698
3164
  } | undefined;
2699
3165
  primaryIssue?: {
2700
3166
  name: string;
2701
3167
  category: string;
2702
3168
  confidence: number;
2703
- provider: string;
2704
3169
  visualIndicators: string[];
3170
+ provider?: string | undefined;
2705
3171
  } | undefined;
2706
3172
  secondaryIssues?: {
2707
3173
  name: string;
2708
3174
  confidence: number;
2709
3175
  reasoning: string;
2710
3176
  }[] | undefined;
2711
- environmentalFactors?: Record<string, string> | undefined;
3177
+ environmentalFactors?: Record<string, string | number> | undefined;
2712
3178
  satelliteCorrelation?: Record<string, any> | undefined;
2713
3179
  historicalMatches?: any[] | undefined;
3180
+ cropConflict?: {
3181
+ conflict: boolean;
3182
+ reasoning?: string | undefined;
3183
+ expectedCrop?: string | null | undefined;
3184
+ photoCrop?: string | null | undefined;
3185
+ } | undefined;
3186
+ contextSignalsUsed?: string[] | undefined;
2714
3187
  } | null;
2715
3188
  urgencyScore: number | null;
2716
3189
  similarCasesCount: number | null;
2717
3190
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
2718
3191
  actionTakenAt: Date | null;
2719
3192
  actionNotes: string | null;
3193
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
3194
+ correctedDiagnosisType: string | null;
3195
+ feedbackAt: Date | null;
2720
3196
  generatedAlertId: string | null;
2721
3197
  relatedTaskId: string | null;
2722
3198
  analysisProvider: string | null;
@@ -2751,6 +3227,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2751
3227
  details: string;
2752
3228
  timing: string;
2753
3229
  confidence?: number | undefined;
3230
+ applicationMethod?: string | undefined;
2754
3231
  severity?: "critical" | "low" | "medium" | "high" | undefined;
2755
3232
  materials?: {
2756
3233
  name: string;
@@ -2760,8 +3237,10 @@ export declare const observationListResponseSchema: z.ZodObject<{
2760
3237
  totalCost?: number | undefined;
2761
3238
  costPerUnit?: number | undefined;
2762
3239
  availability?: string | undefined;
3240
+ inStock?: boolean | undefined;
3241
+ stockQuantity?: number | undefined;
3242
+ applicationMethod?: string | undefined;
2763
3243
  }[] | undefined;
2764
- applicationMethod?: string | undefined;
2765
3244
  expectedOutcome?: string | undefined;
2766
3245
  preventiveMeasures?: string[] | undefined;
2767
3246
  estimatedTime?: string | undefined;
@@ -2794,31 +3273,41 @@ export declare const observationListResponseSchema: z.ZodObject<{
2794
3273
  analysisDetails: {
2795
3274
  plantIdentification?: {
2796
3275
  confidence: number;
2797
- provider: string;
2798
3276
  scientificName: string;
2799
3277
  commonNames: string[];
3278
+ provider?: string | undefined;
2800
3279
  } | undefined;
2801
3280
  primaryIssue?: {
2802
3281
  name: string;
2803
3282
  category: string;
2804
3283
  confidence: number;
2805
- provider: string;
2806
3284
  visualIndicators: string[];
3285
+ provider?: string | undefined;
2807
3286
  } | undefined;
2808
3287
  secondaryIssues?: {
2809
3288
  name: string;
2810
3289
  confidence: number;
2811
3290
  reasoning: string;
2812
3291
  }[] | undefined;
2813
- environmentalFactors?: Record<string, string> | undefined;
3292
+ environmentalFactors?: Record<string, string | number> | undefined;
2814
3293
  satelliteCorrelation?: Record<string, any> | undefined;
2815
3294
  historicalMatches?: any[] | undefined;
3295
+ cropConflict?: {
3296
+ conflict: boolean;
3297
+ reasoning?: string | undefined;
3298
+ expectedCrop?: string | null | undefined;
3299
+ photoCrop?: string | null | undefined;
3300
+ } | undefined;
3301
+ contextSignalsUsed?: string[] | undefined;
2816
3302
  } | null;
2817
3303
  urgencyScore: number | null;
2818
3304
  similarCasesCount: number | null;
2819
3305
  actionStatus: "pending" | "completed" | "in_progress" | "dismissed";
2820
3306
  actionTakenAt: Date | null;
2821
3307
  actionNotes: string | null;
3308
+ diagnosisFeedback: "confirmed" | "incorrect" | null;
3309
+ correctedDiagnosisType: string | null;
3310
+ feedbackAt: Date | null;
2822
3311
  generatedAlertId: string | null;
2823
3312
  relatedTaskId: string | null;
2824
3313
  analysisProvider: string | null;
@@ -2886,9 +3375,11 @@ export declare const observationStatsQuerySchema: z.ZodObject<{
2886
3375
  export type ObservationAttributes = z.infer<typeof observationAttributesSchema>;
2887
3376
  export type CreateObservationAttributes = z.infer<typeof createObservationAttributesSchema>;
2888
3377
  export type UpdateObservationActionAttributes = z.infer<typeof updateObservationActionAttributesSchema>;
3378
+ export type UpdateObservationFeedbackAttributes = z.infer<typeof updateObservationFeedbackAttributesSchema>;
2889
3379
  export type ObservationResource = z.infer<typeof observationResourceSchema>;
2890
3380
  export type CreateObservationInput = z.infer<typeof createObservationInputSchema>;
2891
3381
  export type UpdateObservationActionInput = z.infer<typeof updateObservationActionInputSchema>;
3382
+ export type UpdateObservationFeedbackInput = z.infer<typeof updateObservationFeedbackInputSchema>;
2892
3383
  export type ObservationResponse = z.infer<typeof observationResponseSchema>;
2893
3384
  export type ObservationListResponse = z.infer<typeof observationListResponseSchema>;
2894
3385
  export type ObservationListQuery = z.infer<typeof observationListQuerySchema>;