@deepintel-ltd/farmpro-contracts 1.36.7 → 1.36.9

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.
@@ -0,0 +1,938 @@
1
+ import { z } from 'zod';
2
+ export declare const pillarSchema: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
3
+ export declare const pillarSourceSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ org: z.ZodString;
6
+ title: z.ZodString;
7
+ url: z.ZodOptional<z.ZodString>;
8
+ grade: z.ZodEnum<["A", "B", "C"]>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string;
11
+ title: string;
12
+ org: string;
13
+ grade: "A" | "B" | "C";
14
+ url?: string | undefined;
15
+ }, {
16
+ id: string;
17
+ title: string;
18
+ org: string;
19
+ grade: "A" | "B" | "C";
20
+ url?: string | undefined;
21
+ }>;
22
+ export declare const responseStepSchema: z.ZodObject<{
23
+ tier: z.ZodEnum<["prevent", "cultural", "biological", "chemical"]>;
24
+ text: z.ZodString;
25
+ productClass: z.ZodOptional<z.ZodEnum<["fungicide", "insecticide", "miticide", "biopesticide", "herbicide"]>>;
26
+ activeIngredient: z.ZodOptional<z.ZodString>;
27
+ resistanceGroup: z.ZodOptional<z.ZodObject<{
28
+ system: z.ZodEnum<["IRAC", "FRAC", "HRAC"]>;
29
+ code: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ code: string;
32
+ system: "IRAC" | "FRAC" | "HRAC";
33
+ }, {
34
+ code: string;
35
+ system: "IRAC" | "FRAC" | "HRAC";
36
+ }>>;
37
+ grade: z.ZodEnum<["A", "B", "C"]>;
38
+ sourceIds: z.ZodArray<z.ZodString, "many">;
39
+ }, "strip", z.ZodTypeAny, {
40
+ text: string;
41
+ tier: "prevent" | "cultural" | "biological" | "chemical";
42
+ grade: "A" | "B" | "C";
43
+ sourceIds: string[];
44
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
45
+ activeIngredient?: string | undefined;
46
+ resistanceGroup?: {
47
+ code: string;
48
+ system: "IRAC" | "FRAC" | "HRAC";
49
+ } | undefined;
50
+ }, {
51
+ text: string;
52
+ tier: "prevent" | "cultural" | "biological" | "chemical";
53
+ grade: "A" | "B" | "C";
54
+ sourceIds: string[];
55
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
56
+ activeIngredient?: string | undefined;
57
+ resistanceGroup?: {
58
+ code: string;
59
+ system: "IRAC" | "FRAC" | "HRAC";
60
+ } | undefined;
61
+ }>;
62
+ export declare const thresholdSchema: z.ZodObject<{
63
+ metric: z.ZodString;
64
+ text: z.ZodString;
65
+ value: z.ZodOptional<z.ZodNumber>;
66
+ unit: z.ZodOptional<z.ZodString>;
67
+ grade: z.ZodEnum<["A", "B", "C"]>;
68
+ sourceIds: z.ZodArray<z.ZodString, "many">;
69
+ }, "strip", z.ZodTypeAny, {
70
+ metric: string;
71
+ text: string;
72
+ grade: "A" | "B" | "C";
73
+ sourceIds: string[];
74
+ value?: number | undefined;
75
+ unit?: string | undefined;
76
+ }, {
77
+ metric: string;
78
+ text: string;
79
+ grade: "A" | "B" | "C";
80
+ sourceIds: string[];
81
+ value?: number | undefined;
82
+ unit?: string | undefined;
83
+ }>;
84
+ export declare const threatSchema: z.ZodObject<{
85
+ id: z.ZodString;
86
+ name: z.ZodString;
87
+ kind: z.ZodEnum<["insect", "mite", "fungal", "bacterial", "viral", "physiological", "water", "weed", "canopy"]>;
88
+ localNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
89
+ symptoms: z.ZodArray<z.ZodString, "many">;
90
+ confusedWith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
91
+ weatherTriggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["wet", "humid", "hot", "dry", "windy", "warm"]>, "many">>;
92
+ vectorOf: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
93
+ scoutHow: z.ZodString;
94
+ thresholds: z.ZodArray<z.ZodObject<{
95
+ metric: z.ZodString;
96
+ text: z.ZodString;
97
+ value: z.ZodOptional<z.ZodNumber>;
98
+ unit: z.ZodOptional<z.ZodString>;
99
+ grade: z.ZodEnum<["A", "B", "C"]>;
100
+ sourceIds: z.ZodArray<z.ZodString, "many">;
101
+ }, "strip", z.ZodTypeAny, {
102
+ metric: string;
103
+ text: string;
104
+ grade: "A" | "B" | "C";
105
+ sourceIds: string[];
106
+ value?: number | undefined;
107
+ unit?: string | undefined;
108
+ }, {
109
+ metric: string;
110
+ text: string;
111
+ grade: "A" | "B" | "C";
112
+ sourceIds: string[];
113
+ value?: number | undefined;
114
+ unit?: string | undefined;
115
+ }>, "many">;
116
+ responses: z.ZodArray<z.ZodObject<{
117
+ tier: z.ZodEnum<["prevent", "cultural", "biological", "chemical"]>;
118
+ text: z.ZodString;
119
+ productClass: z.ZodOptional<z.ZodEnum<["fungicide", "insecticide", "miticide", "biopesticide", "herbicide"]>>;
120
+ activeIngredient: z.ZodOptional<z.ZodString>;
121
+ resistanceGroup: z.ZodOptional<z.ZodObject<{
122
+ system: z.ZodEnum<["IRAC", "FRAC", "HRAC"]>;
123
+ code: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ code: string;
126
+ system: "IRAC" | "FRAC" | "HRAC";
127
+ }, {
128
+ code: string;
129
+ system: "IRAC" | "FRAC" | "HRAC";
130
+ }>>;
131
+ grade: z.ZodEnum<["A", "B", "C"]>;
132
+ sourceIds: z.ZodArray<z.ZodString, "many">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ text: string;
135
+ tier: "prevent" | "cultural" | "biological" | "chemical";
136
+ grade: "A" | "B" | "C";
137
+ sourceIds: string[];
138
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
139
+ activeIngredient?: string | undefined;
140
+ resistanceGroup?: {
141
+ code: string;
142
+ system: "IRAC" | "FRAC" | "HRAC";
143
+ } | undefined;
144
+ }, {
145
+ text: string;
146
+ tier: "prevent" | "cultural" | "biological" | "chemical";
147
+ grade: "A" | "B" | "C";
148
+ sourceIds: string[];
149
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
150
+ activeIngredient?: string | undefined;
151
+ resistanceGroup?: {
152
+ code: string;
153
+ system: "IRAC" | "FRAC" | "HRAC";
154
+ } | undefined;
155
+ }>, "many">;
156
+ }, "strip", z.ZodTypeAny, {
157
+ id: string;
158
+ name: string;
159
+ responses: {
160
+ text: string;
161
+ tier: "prevent" | "cultural" | "biological" | "chemical";
162
+ grade: "A" | "B" | "C";
163
+ sourceIds: string[];
164
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
165
+ activeIngredient?: string | undefined;
166
+ resistanceGroup?: {
167
+ code: string;
168
+ system: "IRAC" | "FRAC" | "HRAC";
169
+ } | undefined;
170
+ }[];
171
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
172
+ symptoms: string[];
173
+ scoutHow: string;
174
+ thresholds: {
175
+ metric: string;
176
+ text: string;
177
+ grade: "A" | "B" | "C";
178
+ sourceIds: string[];
179
+ value?: number | undefined;
180
+ unit?: string | undefined;
181
+ }[];
182
+ localNames?: string[] | undefined;
183
+ confusedWith?: string[] | undefined;
184
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
185
+ vectorOf?: string[] | undefined;
186
+ }, {
187
+ id: string;
188
+ name: string;
189
+ responses: {
190
+ text: string;
191
+ tier: "prevent" | "cultural" | "biological" | "chemical";
192
+ grade: "A" | "B" | "C";
193
+ sourceIds: string[];
194
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
195
+ activeIngredient?: string | undefined;
196
+ resistanceGroup?: {
197
+ code: string;
198
+ system: "IRAC" | "FRAC" | "HRAC";
199
+ } | undefined;
200
+ }[];
201
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
202
+ symptoms: string[];
203
+ scoutHow: string;
204
+ thresholds: {
205
+ metric: string;
206
+ text: string;
207
+ grade: "A" | "B" | "C";
208
+ sourceIds: string[];
209
+ value?: number | undefined;
210
+ unit?: string | undefined;
211
+ }[];
212
+ localNames?: string[] | undefined;
213
+ confusedWith?: string[] | undefined;
214
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
215
+ vectorOf?: string[] | undefined;
216
+ }>;
217
+ export declare const scoutProtocolSchema: z.ZodObject<{
218
+ perWeek: z.ZodNumber;
219
+ perWeekWet: z.ZodNumber;
220
+ samplePlants: z.ZodNumber;
221
+ pattern: z.ZodEnum<["W", "Z"]>;
222
+ grade: z.ZodEnum<["A", "B", "C"]>;
223
+ sourceIds: z.ZodArray<z.ZodString, "many">;
224
+ }, "strip", z.ZodTypeAny, {
225
+ grade: "A" | "B" | "C";
226
+ sourceIds: string[];
227
+ perWeek: number;
228
+ perWeekWet: number;
229
+ samplePlants: number;
230
+ pattern: "W" | "Z";
231
+ }, {
232
+ grade: "A" | "B" | "C";
233
+ sourceIds: string[];
234
+ perWeek: number;
235
+ perWeekWet: number;
236
+ samplePlants: number;
237
+ pattern: "W" | "Z";
238
+ }>;
239
+ export declare const pillarStageSchema: z.ZodObject<{
240
+ stageId: z.ZodString;
241
+ summary: z.ZodString;
242
+ /** The stage's short jobs: what, how often, by when. The card leads with these. */
243
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
244
+ id: z.ZodString;
245
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
246
+ headline: z.ZodString;
247
+ detail: z.ZodOptional<z.ZodString>;
248
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
249
+ when: z.ZodOptional<z.ZodString>;
250
+ dayStart: z.ZodOptional<z.ZodNumber>;
251
+ dayEnd: z.ZodOptional<z.ZodNumber>;
252
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
253
+ id: z.ZodString;
254
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
255
+ headline: z.ZodString;
256
+ detail: z.ZodOptional<z.ZodString>;
257
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
258
+ when: z.ZodOptional<z.ZodString>;
259
+ dayStart: z.ZodOptional<z.ZodNumber>;
260
+ dayEnd: z.ZodOptional<z.ZodNumber>;
261
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
262
+ id: z.ZodString;
263
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
264
+ headline: z.ZodString;
265
+ detail: z.ZodOptional<z.ZodString>;
266
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
267
+ when: z.ZodOptional<z.ZodString>;
268
+ dayStart: z.ZodOptional<z.ZodNumber>;
269
+ dayEnd: z.ZodOptional<z.ZodNumber>;
270
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
271
+ /** FAO-56 crop coefficient for the stage; crop water use is ET0 x Kc. Water plans only. */
272
+ kc: z.ZodOptional<z.ZodNumber>;
273
+ prevent: z.ZodArray<z.ZodString, "many">;
274
+ scout: z.ZodOptional<z.ZodObject<{
275
+ perWeek: z.ZodNumber;
276
+ perWeekWet: z.ZodNumber;
277
+ samplePlants: z.ZodNumber;
278
+ pattern: z.ZodEnum<["W", "Z"]>;
279
+ grade: z.ZodEnum<["A", "B", "C"]>;
280
+ sourceIds: z.ZodArray<z.ZodString, "many">;
281
+ }, "strip", z.ZodTypeAny, {
282
+ grade: "A" | "B" | "C";
283
+ sourceIds: string[];
284
+ perWeek: number;
285
+ perWeekWet: number;
286
+ samplePlants: number;
287
+ pattern: "W" | "Z";
288
+ }, {
289
+ grade: "A" | "B" | "C";
290
+ sourceIds: string[];
291
+ perWeek: number;
292
+ perWeekWet: number;
293
+ samplePlants: number;
294
+ pattern: "W" | "Z";
295
+ }>>;
296
+ watch: z.ZodArray<z.ZodString, "many">;
297
+ }, "strip", z.ZodTypeAny, {
298
+ summary: string;
299
+ watch: string[];
300
+ prevent: string[];
301
+ stageId: string;
302
+ actions?: z.objectOutputType<{
303
+ id: z.ZodString;
304
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
305
+ headline: z.ZodString;
306
+ detail: z.ZodOptional<z.ZodString>;
307
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
308
+ when: z.ZodOptional<z.ZodString>;
309
+ dayStart: z.ZodOptional<z.ZodNumber>;
310
+ dayEnd: z.ZodOptional<z.ZodNumber>;
311
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
312
+ scout?: {
313
+ grade: "A" | "B" | "C";
314
+ sourceIds: string[];
315
+ perWeek: number;
316
+ perWeekWet: number;
317
+ samplePlants: number;
318
+ pattern: "W" | "Z";
319
+ } | undefined;
320
+ kc?: number | undefined;
321
+ }, {
322
+ summary: string;
323
+ watch: string[];
324
+ prevent: string[];
325
+ stageId: string;
326
+ actions?: z.objectInputType<{
327
+ id: z.ZodString;
328
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
329
+ headline: z.ZodString;
330
+ detail: z.ZodOptional<z.ZodString>;
331
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
332
+ when: z.ZodOptional<z.ZodString>;
333
+ dayStart: z.ZodOptional<z.ZodNumber>;
334
+ dayEnd: z.ZodOptional<z.ZodNumber>;
335
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
336
+ scout?: {
337
+ grade: "A" | "B" | "C";
338
+ sourceIds: string[];
339
+ perWeek: number;
340
+ perWeekWet: number;
341
+ samplePlants: number;
342
+ pattern: "W" | "Z";
343
+ } | undefined;
344
+ kc?: number | undefined;
345
+ }>;
346
+ /** The plan's own header, without every stage: the client already has the crop-care card for the calendar. */
347
+ export declare const resolvedPillarSchema: z.ZodObject<{
348
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
349
+ origin: z.ZodEnum<["file", "generic"]>;
350
+ planId: z.ZodString;
351
+ oneLineRule: z.ZodString;
352
+ guidelineLabel: z.ZodString;
353
+ sources: z.ZodArray<z.ZodObject<{
354
+ id: z.ZodString;
355
+ org: z.ZodString;
356
+ title: z.ZodString;
357
+ url: z.ZodOptional<z.ZodString>;
358
+ grade: z.ZodEnum<["A", "B", "C"]>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ id: string;
361
+ title: string;
362
+ org: string;
363
+ grade: "A" | "B" | "C";
364
+ url?: string | undefined;
365
+ }, {
366
+ id: string;
367
+ title: string;
368
+ org: string;
369
+ grade: "A" | "B" | "C";
370
+ url?: string | undefined;
371
+ }>, "many">;
372
+ phase: z.ZodEnum<["nursery", "field"]>;
373
+ day: z.ZodNullable<z.ZodNumber>;
374
+ stageId: z.ZodString;
375
+ stage: z.ZodNullable<z.ZodObject<{
376
+ stageId: z.ZodString;
377
+ summary: z.ZodString;
378
+ /** The stage's short jobs: what, how often, by when. The card leads with these. */
379
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
380
+ id: z.ZodString;
381
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
382
+ headline: z.ZodString;
383
+ detail: z.ZodOptional<z.ZodString>;
384
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
385
+ when: z.ZodOptional<z.ZodString>;
386
+ dayStart: z.ZodOptional<z.ZodNumber>;
387
+ dayEnd: z.ZodOptional<z.ZodNumber>;
388
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
389
+ id: z.ZodString;
390
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
391
+ headline: z.ZodString;
392
+ detail: z.ZodOptional<z.ZodString>;
393
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
394
+ when: z.ZodOptional<z.ZodString>;
395
+ dayStart: z.ZodOptional<z.ZodNumber>;
396
+ dayEnd: z.ZodOptional<z.ZodNumber>;
397
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
398
+ id: z.ZodString;
399
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
400
+ headline: z.ZodString;
401
+ detail: z.ZodOptional<z.ZodString>;
402
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
403
+ when: z.ZodOptional<z.ZodString>;
404
+ dayStart: z.ZodOptional<z.ZodNumber>;
405
+ dayEnd: z.ZodOptional<z.ZodNumber>;
406
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
407
+ /** FAO-56 crop coefficient for the stage; crop water use is ET0 x Kc. Water plans only. */
408
+ kc: z.ZodOptional<z.ZodNumber>;
409
+ prevent: z.ZodArray<z.ZodString, "many">;
410
+ scout: z.ZodOptional<z.ZodObject<{
411
+ perWeek: z.ZodNumber;
412
+ perWeekWet: z.ZodNumber;
413
+ samplePlants: z.ZodNumber;
414
+ pattern: z.ZodEnum<["W", "Z"]>;
415
+ grade: z.ZodEnum<["A", "B", "C"]>;
416
+ sourceIds: z.ZodArray<z.ZodString, "many">;
417
+ }, "strip", z.ZodTypeAny, {
418
+ grade: "A" | "B" | "C";
419
+ sourceIds: string[];
420
+ perWeek: number;
421
+ perWeekWet: number;
422
+ samplePlants: number;
423
+ pattern: "W" | "Z";
424
+ }, {
425
+ grade: "A" | "B" | "C";
426
+ sourceIds: string[];
427
+ perWeek: number;
428
+ perWeekWet: number;
429
+ samplePlants: number;
430
+ pattern: "W" | "Z";
431
+ }>>;
432
+ watch: z.ZodArray<z.ZodString, "many">;
433
+ }, "strip", z.ZodTypeAny, {
434
+ summary: string;
435
+ watch: string[];
436
+ prevent: string[];
437
+ stageId: string;
438
+ actions?: z.objectOutputType<{
439
+ id: z.ZodString;
440
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
441
+ headline: z.ZodString;
442
+ detail: z.ZodOptional<z.ZodString>;
443
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
444
+ when: z.ZodOptional<z.ZodString>;
445
+ dayStart: z.ZodOptional<z.ZodNumber>;
446
+ dayEnd: z.ZodOptional<z.ZodNumber>;
447
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
448
+ scout?: {
449
+ grade: "A" | "B" | "C";
450
+ sourceIds: string[];
451
+ perWeek: number;
452
+ perWeekWet: number;
453
+ samplePlants: number;
454
+ pattern: "W" | "Z";
455
+ } | undefined;
456
+ kc?: number | undefined;
457
+ }, {
458
+ summary: string;
459
+ watch: string[];
460
+ prevent: string[];
461
+ stageId: string;
462
+ actions?: z.objectInputType<{
463
+ id: z.ZodString;
464
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
465
+ headline: z.ZodString;
466
+ detail: z.ZodOptional<z.ZodString>;
467
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
468
+ when: z.ZodOptional<z.ZodString>;
469
+ dayStart: z.ZodOptional<z.ZodNumber>;
470
+ dayEnd: z.ZodOptional<z.ZodNumber>;
471
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
472
+ scout?: {
473
+ grade: "A" | "B" | "C";
474
+ sourceIds: string[];
475
+ perWeek: number;
476
+ perWeekWet: number;
477
+ samplePlants: number;
478
+ pattern: "W" | "Z";
479
+ } | undefined;
480
+ kc?: number | undefined;
481
+ }>>;
482
+ stageFallback: z.ZodBoolean;
483
+ /** Threats for this stage, most important first. */
484
+ watch: z.ZodArray<z.ZodObject<{
485
+ id: z.ZodString;
486
+ name: z.ZodString;
487
+ kind: z.ZodEnum<["insect", "mite", "fungal", "bacterial", "viral", "physiological", "water", "weed", "canopy"]>;
488
+ localNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
489
+ symptoms: z.ZodArray<z.ZodString, "many">;
490
+ confusedWith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
491
+ weatherTriggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["wet", "humid", "hot", "dry", "windy", "warm"]>, "many">>;
492
+ vectorOf: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
493
+ scoutHow: z.ZodString;
494
+ thresholds: z.ZodArray<z.ZodObject<{
495
+ metric: z.ZodString;
496
+ text: z.ZodString;
497
+ value: z.ZodOptional<z.ZodNumber>;
498
+ unit: z.ZodOptional<z.ZodString>;
499
+ grade: z.ZodEnum<["A", "B", "C"]>;
500
+ sourceIds: z.ZodArray<z.ZodString, "many">;
501
+ }, "strip", z.ZodTypeAny, {
502
+ metric: string;
503
+ text: string;
504
+ grade: "A" | "B" | "C";
505
+ sourceIds: string[];
506
+ value?: number | undefined;
507
+ unit?: string | undefined;
508
+ }, {
509
+ metric: string;
510
+ text: string;
511
+ grade: "A" | "B" | "C";
512
+ sourceIds: string[];
513
+ value?: number | undefined;
514
+ unit?: string | undefined;
515
+ }>, "many">;
516
+ responses: z.ZodArray<z.ZodObject<{
517
+ tier: z.ZodEnum<["prevent", "cultural", "biological", "chemical"]>;
518
+ text: z.ZodString;
519
+ productClass: z.ZodOptional<z.ZodEnum<["fungicide", "insecticide", "miticide", "biopesticide", "herbicide"]>>;
520
+ activeIngredient: z.ZodOptional<z.ZodString>;
521
+ resistanceGroup: z.ZodOptional<z.ZodObject<{
522
+ system: z.ZodEnum<["IRAC", "FRAC", "HRAC"]>;
523
+ code: z.ZodString;
524
+ }, "strip", z.ZodTypeAny, {
525
+ code: string;
526
+ system: "IRAC" | "FRAC" | "HRAC";
527
+ }, {
528
+ code: string;
529
+ system: "IRAC" | "FRAC" | "HRAC";
530
+ }>>;
531
+ grade: z.ZodEnum<["A", "B", "C"]>;
532
+ sourceIds: z.ZodArray<z.ZodString, "many">;
533
+ }, "strip", z.ZodTypeAny, {
534
+ text: string;
535
+ tier: "prevent" | "cultural" | "biological" | "chemical";
536
+ grade: "A" | "B" | "C";
537
+ sourceIds: string[];
538
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
539
+ activeIngredient?: string | undefined;
540
+ resistanceGroup?: {
541
+ code: string;
542
+ system: "IRAC" | "FRAC" | "HRAC";
543
+ } | undefined;
544
+ }, {
545
+ text: string;
546
+ tier: "prevent" | "cultural" | "biological" | "chemical";
547
+ grade: "A" | "B" | "C";
548
+ sourceIds: string[];
549
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
550
+ activeIngredient?: string | undefined;
551
+ resistanceGroup?: {
552
+ code: string;
553
+ system: "IRAC" | "FRAC" | "HRAC";
554
+ } | undefined;
555
+ }>, "many">;
556
+ }, "strip", z.ZodTypeAny, {
557
+ id: string;
558
+ name: string;
559
+ responses: {
560
+ text: string;
561
+ tier: "prevent" | "cultural" | "biological" | "chemical";
562
+ grade: "A" | "B" | "C";
563
+ sourceIds: string[];
564
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
565
+ activeIngredient?: string | undefined;
566
+ resistanceGroup?: {
567
+ code: string;
568
+ system: "IRAC" | "FRAC" | "HRAC";
569
+ } | undefined;
570
+ }[];
571
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
572
+ symptoms: string[];
573
+ scoutHow: string;
574
+ thresholds: {
575
+ metric: string;
576
+ text: string;
577
+ grade: "A" | "B" | "C";
578
+ sourceIds: string[];
579
+ value?: number | undefined;
580
+ unit?: string | undefined;
581
+ }[];
582
+ localNames?: string[] | undefined;
583
+ confusedWith?: string[] | undefined;
584
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
585
+ vectorOf?: string[] | undefined;
586
+ }, {
587
+ id: string;
588
+ name: string;
589
+ responses: {
590
+ text: string;
591
+ tier: "prevent" | "cultural" | "biological" | "chemical";
592
+ grade: "A" | "B" | "C";
593
+ sourceIds: string[];
594
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
595
+ activeIngredient?: string | undefined;
596
+ resistanceGroup?: {
597
+ code: string;
598
+ system: "IRAC" | "FRAC" | "HRAC";
599
+ } | undefined;
600
+ }[];
601
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
602
+ symptoms: string[];
603
+ scoutHow: string;
604
+ thresholds: {
605
+ metric: string;
606
+ text: string;
607
+ grade: "A" | "B" | "C";
608
+ sourceIds: string[];
609
+ value?: number | undefined;
610
+ unit?: string | undefined;
611
+ }[];
612
+ localNames?: string[] | undefined;
613
+ confusedWith?: string[] | undefined;
614
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
615
+ vectorOf?: string[] | undefined;
616
+ }>, "many">;
617
+ needsDate: z.ZodBoolean;
618
+ }, "strip", z.ZodTypeAny, {
619
+ sources: {
620
+ id: string;
621
+ title: string;
622
+ org: string;
623
+ grade: "A" | "B" | "C";
624
+ url?: string | undefined;
625
+ }[];
626
+ stage: {
627
+ summary: string;
628
+ watch: string[];
629
+ prevent: string[];
630
+ stageId: string;
631
+ actions?: z.objectOutputType<{
632
+ id: z.ZodString;
633
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
634
+ headline: z.ZodString;
635
+ detail: z.ZodOptional<z.ZodString>;
636
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
637
+ when: z.ZodOptional<z.ZodString>;
638
+ dayStart: z.ZodOptional<z.ZodNumber>;
639
+ dayEnd: z.ZodOptional<z.ZodNumber>;
640
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
641
+ scout?: {
642
+ grade: "A" | "B" | "C";
643
+ sourceIds: string[];
644
+ perWeek: number;
645
+ perWeekWet: number;
646
+ samplePlants: number;
647
+ pattern: "W" | "Z";
648
+ } | undefined;
649
+ kc?: number | undefined;
650
+ } | null;
651
+ day: number | null;
652
+ phase: "field" | "nursery";
653
+ oneLineRule: string;
654
+ watch: {
655
+ id: string;
656
+ name: string;
657
+ responses: {
658
+ text: string;
659
+ tier: "prevent" | "cultural" | "biological" | "chemical";
660
+ grade: "A" | "B" | "C";
661
+ sourceIds: string[];
662
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
663
+ activeIngredient?: string | undefined;
664
+ resistanceGroup?: {
665
+ code: string;
666
+ system: "IRAC" | "FRAC" | "HRAC";
667
+ } | undefined;
668
+ }[];
669
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
670
+ symptoms: string[];
671
+ scoutHow: string;
672
+ thresholds: {
673
+ metric: string;
674
+ text: string;
675
+ grade: "A" | "B" | "C";
676
+ sourceIds: string[];
677
+ value?: number | undefined;
678
+ unit?: string | undefined;
679
+ }[];
680
+ localNames?: string[] | undefined;
681
+ confusedWith?: string[] | undefined;
682
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
683
+ vectorOf?: string[] | undefined;
684
+ }[];
685
+ origin: "file" | "generic";
686
+ needsDate: boolean;
687
+ stageId: string;
688
+ pillar: "water" | "ipm" | "weeds" | "pruning";
689
+ planId: string;
690
+ guidelineLabel: string;
691
+ stageFallback: boolean;
692
+ }, {
693
+ sources: {
694
+ id: string;
695
+ title: string;
696
+ org: string;
697
+ grade: "A" | "B" | "C";
698
+ url?: string | undefined;
699
+ }[];
700
+ stage: {
701
+ summary: string;
702
+ watch: string[];
703
+ prevent: string[];
704
+ stageId: string;
705
+ actions?: z.objectInputType<{
706
+ id: z.ZodString;
707
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
708
+ headline: z.ZodString;
709
+ detail: z.ZodOptional<z.ZodString>;
710
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
711
+ when: z.ZodOptional<z.ZodString>;
712
+ dayStart: z.ZodOptional<z.ZodNumber>;
713
+ dayEnd: z.ZodOptional<z.ZodNumber>;
714
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
715
+ scout?: {
716
+ grade: "A" | "B" | "C";
717
+ sourceIds: string[];
718
+ perWeek: number;
719
+ perWeekWet: number;
720
+ samplePlants: number;
721
+ pattern: "W" | "Z";
722
+ } | undefined;
723
+ kc?: number | undefined;
724
+ } | null;
725
+ day: number | null;
726
+ phase: "field" | "nursery";
727
+ oneLineRule: string;
728
+ watch: {
729
+ id: string;
730
+ name: string;
731
+ responses: {
732
+ text: string;
733
+ tier: "prevent" | "cultural" | "biological" | "chemical";
734
+ grade: "A" | "B" | "C";
735
+ sourceIds: string[];
736
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
737
+ activeIngredient?: string | undefined;
738
+ resistanceGroup?: {
739
+ code: string;
740
+ system: "IRAC" | "FRAC" | "HRAC";
741
+ } | undefined;
742
+ }[];
743
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
744
+ symptoms: string[];
745
+ scoutHow: string;
746
+ thresholds: {
747
+ metric: string;
748
+ text: string;
749
+ grade: "A" | "B" | "C";
750
+ sourceIds: string[];
751
+ value?: number | undefined;
752
+ unit?: string | undefined;
753
+ }[];
754
+ localNames?: string[] | undefined;
755
+ confusedWith?: string[] | undefined;
756
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
757
+ vectorOf?: string[] | undefined;
758
+ }[];
759
+ origin: "file" | "generic";
760
+ needsDate: boolean;
761
+ stageId: string;
762
+ pillar: "water" | "ipm" | "weeds" | "pruning";
763
+ planId: string;
764
+ guidelineLabel: string;
765
+ stageFallback: boolean;
766
+ }>;
767
+ export type ResolvedPillarContract = z.infer<typeof resolvedPillarSchema>;
768
+ export declare const pillarAdjustmentSchema: z.ZodObject<{
769
+ id: z.ZodString;
770
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
771
+ severity: z.ZodEnum<["info", "watch", "act"]>;
772
+ title: z.ZodString;
773
+ detail: z.ZodString;
774
+ source: z.ZodString;
775
+ }, "strip", z.ZodTypeAny, {
776
+ id: string;
777
+ title: string;
778
+ detail: string;
779
+ source: string;
780
+ severity: "info" | "watch" | "act";
781
+ pillar: "water" | "ipm" | "weeds" | "pruning";
782
+ }, {
783
+ id: string;
784
+ title: string;
785
+ detail: string;
786
+ source: string;
787
+ severity: "info" | "watch" | "act";
788
+ pillar: "water" | "ipm" | "weeds" | "pruning";
789
+ }>;
790
+ export declare const pillarAdjustmentsResponseSchema: z.ZodObject<{
791
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
792
+ crop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
+ stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
794
+ adjustments: z.ZodArray<z.ZodObject<{
795
+ id: z.ZodString;
796
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
797
+ severity: z.ZodEnum<["info", "watch", "act"]>;
798
+ title: z.ZodString;
799
+ detail: z.ZodString;
800
+ source: z.ZodString;
801
+ }, "strip", z.ZodTypeAny, {
802
+ id: string;
803
+ title: string;
804
+ detail: string;
805
+ source: string;
806
+ severity: "info" | "watch" | "act";
807
+ pillar: "water" | "ipm" | "weeds" | "pruning";
808
+ }, {
809
+ id: string;
810
+ title: string;
811
+ detail: string;
812
+ source: string;
813
+ severity: "info" | "watch" | "act";
814
+ pillar: "water" | "ipm" | "weeds" | "pruning";
815
+ }>, "many">;
816
+ weatherAvailable: z.ZodBoolean;
817
+ generatedAt: z.ZodString;
818
+ }, "strip", z.ZodTypeAny, {
819
+ generatedAt: string;
820
+ adjustments: {
821
+ id: string;
822
+ title: string;
823
+ detail: string;
824
+ source: string;
825
+ severity: "info" | "watch" | "act";
826
+ pillar: "water" | "ipm" | "weeds" | "pruning";
827
+ }[];
828
+ weatherAvailable: boolean;
829
+ pillar: "water" | "ipm" | "weeds" | "pruning";
830
+ crop?: string | null | undefined;
831
+ stage?: string | null | undefined;
832
+ }, {
833
+ generatedAt: string;
834
+ adjustments: {
835
+ id: string;
836
+ title: string;
837
+ detail: string;
838
+ source: string;
839
+ severity: "info" | "watch" | "act";
840
+ pillar: "water" | "ipm" | "weeds" | "pruning";
841
+ }[];
842
+ weatherAvailable: boolean;
843
+ pillar: "water" | "ipm" | "weeds" | "pruning";
844
+ crop?: string | null | undefined;
845
+ stage?: string | null | undefined;
846
+ }>;
847
+ export type PillarAdjustmentContract = z.infer<typeof pillarAdjustmentSchema>;
848
+ export type PillarAdjustmentsResponse = z.infer<typeof pillarAdjustmentsResponseSchema>;
849
+ export type Pillar = z.infer<typeof pillarSchema>;
850
+ export type ThreatContract = z.infer<typeof threatSchema>;
851
+ export type ThresholdContract = z.infer<typeof thresholdSchema>;
852
+ export type ResponseStepContract = z.infer<typeof responseStepSchema>;
853
+ export type ScoutProtocolContract = z.infer<typeof scoutProtocolSchema>;
854
+ export type PillarStageContract = z.infer<typeof pillarStageSchema>;
855
+ export type PillarSourceContract = z.infer<typeof pillarSourceSchema>;
856
+ /** What a harvest on a given day must wait for. */
857
+ export declare const harvestHoldResponseSchema: z.ZodObject<{
858
+ date: z.ZodString;
859
+ /** A recorded waiting period has not ended by `date`. */
860
+ hold: z.ZodBoolean;
861
+ /** A recent spray never recorded its waiting period. */
862
+ unknown: z.ZodBoolean;
863
+ safeHarvestDate: z.ZodNullable<z.ZodString>;
864
+ daysRemaining: z.ZodNullable<z.ZodNumber>;
865
+ message: z.ZodNullable<z.ZodString>;
866
+ treatments: z.ZodArray<z.ZodObject<{
867
+ productName: z.ZodString;
868
+ activeIngredient: z.ZodOptional<z.ZodString>;
869
+ appliedOn: z.ZodString;
870
+ phiDays: z.ZodNumber;
871
+ safeHarvestDate: z.ZodString;
872
+ daysRemaining: z.ZodNumber;
873
+ }, "strip", z.ZodTypeAny, {
874
+ productName: string;
875
+ appliedOn: string;
876
+ phiDays: number;
877
+ safeHarvestDate: string;
878
+ daysRemaining: number;
879
+ activeIngredient?: string | undefined;
880
+ }, {
881
+ productName: string;
882
+ appliedOn: string;
883
+ phiDays: number;
884
+ safeHarvestDate: string;
885
+ daysRemaining: number;
886
+ activeIngredient?: string | undefined;
887
+ }>, "many">;
888
+ unknownTreatments: z.ZodArray<z.ZodObject<{
889
+ productName: z.ZodString;
890
+ appliedOn: z.ZodString;
891
+ }, "strip", z.ZodTypeAny, {
892
+ productName: string;
893
+ appliedOn: string;
894
+ }, {
895
+ productName: string;
896
+ appliedOn: string;
897
+ }>, "many">;
898
+ }, "strip", z.ZodTypeAny, {
899
+ message: string | null;
900
+ date: string;
901
+ unknown: boolean;
902
+ safeHarvestDate: string | null;
903
+ daysRemaining: number | null;
904
+ hold: boolean;
905
+ treatments: {
906
+ productName: string;
907
+ appliedOn: string;
908
+ phiDays: number;
909
+ safeHarvestDate: string;
910
+ daysRemaining: number;
911
+ activeIngredient?: string | undefined;
912
+ }[];
913
+ unknownTreatments: {
914
+ productName: string;
915
+ appliedOn: string;
916
+ }[];
917
+ }, {
918
+ message: string | null;
919
+ date: string;
920
+ unknown: boolean;
921
+ safeHarvestDate: string | null;
922
+ daysRemaining: number | null;
923
+ hold: boolean;
924
+ treatments: {
925
+ productName: string;
926
+ appliedOn: string;
927
+ phiDays: number;
928
+ safeHarvestDate: string;
929
+ daysRemaining: number;
930
+ activeIngredient?: string | undefined;
931
+ }[];
932
+ unknownTreatments: {
933
+ productName: string;
934
+ appliedOn: string;
935
+ }[];
936
+ }>;
937
+ export type HarvestHoldResponse = z.infer<typeof harvestHoldResponseSchema>;
938
+ //# sourceMappingURL=care-pillar.schemas.d.ts.map