@deepintel-ltd/farmpro-contracts 1.30.1 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/routes/auth.routes.d.ts +753 -0
  5. package/dist/routes/auth.routes.d.ts.map +1 -1
  6. package/dist/routes/auth.routes.js +25 -1
  7. package/dist/routes/field-monitoring.routes.d.ts +3 -0
  8. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  9. package/dist/routes/finance.routes.d.ts +4 -0
  10. package/dist/routes/finance.routes.d.ts.map +1 -1
  11. package/dist/routes/finance.routes.js +5 -0
  12. package/dist/routes/index.d.ts +3 -0
  13. package/dist/routes/index.d.ts.map +1 -1
  14. package/dist/routes/index.js +2 -0
  15. package/dist/routes/integrations.routes.d.ts +4500 -0
  16. package/dist/routes/integrations.routes.d.ts.map +1 -0
  17. package/dist/routes/integrations.routes.js +189 -0
  18. package/dist/routes/invoices.routes.d.ts +210 -0
  19. package/dist/routes/invoices.routes.d.ts.map +1 -1
  20. package/dist/routes/market-intelligence.routes.d.ts +670 -0
  21. package/dist/routes/market-intelligence.routes.d.ts.map +1 -1
  22. package/dist/routes/market-intelligence.routes.js +52 -0
  23. package/dist/routes/poultry.routes.d.ts +14 -14
  24. package/dist/routes/subscriptions.routes.d.ts +369 -0
  25. package/dist/routes/subscriptions.routes.d.ts.map +1 -1
  26. package/dist/routes/subscriptions.routes.js +22 -1
  27. package/dist/routes/trade-cash-events.routes.d.ts +121 -31
  28. package/dist/routes/trade-cash-events.routes.d.ts.map +1 -1
  29. package/dist/routes/users.routes.d.ts +280 -0
  30. package/dist/routes/users.routes.d.ts.map +1 -1
  31. package/dist/routes/users.routes.js +14 -0
  32. package/dist/schemas/auth.schemas.d.ts +75 -0
  33. package/dist/schemas/auth.schemas.d.ts.map +1 -1
  34. package/dist/schemas/auth.schemas.js +21 -0
  35. package/dist/schemas/farm-enterprises.schemas.d.ts +1 -1
  36. package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
  37. package/dist/schemas/farm-enterprises.schemas.js +1 -1
  38. package/dist/schemas/field-monitoring.schemas.d.ts +4 -0
  39. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  40. package/dist/schemas/field-monitoring.schemas.js +2 -0
  41. package/dist/schemas/integrations.schemas.d.ts +717 -0
  42. package/dist/schemas/integrations.schemas.d.ts.map +1 -0
  43. package/dist/schemas/integrations.schemas.js +149 -0
  44. package/dist/schemas/invoices.schemas.d.ts +132 -0
  45. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  46. package/dist/schemas/invoices.schemas.js +6 -0
  47. package/dist/schemas/locale.schemas.d.ts +2 -2
  48. package/dist/schemas/subscriptions.schemas.d.ts +56 -0
  49. package/dist/schemas/subscriptions.schemas.d.ts.map +1 -1
  50. package/dist/schemas/subscriptions.schemas.js +12 -0
  51. package/dist/schemas/trade-cash-events.schemas.d.ts +101 -31
  52. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
  53. package/dist/schemas/trade-cash-events.schemas.js +13 -0
  54. package/package.json +1 -1
@@ -0,0 +1,4500 @@
1
+ import { z } from 'zod';
2
+ /** Third-party integrations (docs/THIRD_PARTY_INTEGRATIONS_PLAN.md). */
3
+ export declare const integrationsRouter: {
4
+ listIntegrations: {
5
+ summary: "Platform admin: integration configuration and today’s metered calls";
6
+ method: "GET";
7
+ path: "/admin/integrations";
8
+ responses: {
9
+ 200: z.ZodObject<{
10
+ data: z.ZodArray<z.ZodObject<{
11
+ key: z.ZodString;
12
+ name: z.ZodString;
13
+ category: z.ZodString;
14
+ configured: z.ZodBoolean;
15
+ enabled: z.ZodBoolean;
16
+ worksWithoutKeys: z.ZodOptional<z.ZodBoolean>;
17
+ missingEnv: z.ZodArray<z.ZodString, "many">;
18
+ callsToday: z.ZodNumber;
19
+ licence: z.ZodString;
20
+ workspaces: z.ZodArray<z.ZodString, "many">;
21
+ }, "strip", z.ZodTypeAny, {
22
+ name: string;
23
+ workspaces: string[];
24
+ category: string;
25
+ enabled: boolean;
26
+ licence: string;
27
+ key: string;
28
+ configured: boolean;
29
+ missingEnv: string[];
30
+ callsToday: number;
31
+ worksWithoutKeys?: boolean | undefined;
32
+ }, {
33
+ name: string;
34
+ workspaces: string[];
35
+ category: string;
36
+ enabled: boolean;
37
+ licence: string;
38
+ key: string;
39
+ configured: boolean;
40
+ missingEnv: string[];
41
+ callsToday: number;
42
+ worksWithoutKeys?: boolean | undefined;
43
+ }>, "many">;
44
+ }, "strip", z.ZodTypeAny, {
45
+ data: {
46
+ name: string;
47
+ workspaces: string[];
48
+ category: string;
49
+ enabled: boolean;
50
+ licence: string;
51
+ key: string;
52
+ configured: boolean;
53
+ missingEnv: string[];
54
+ callsToday: number;
55
+ worksWithoutKeys?: boolean | undefined;
56
+ }[];
57
+ }, {
58
+ data: {
59
+ name: string;
60
+ workspaces: string[];
61
+ category: string;
62
+ enabled: boolean;
63
+ licence: string;
64
+ key: string;
65
+ configured: boolean;
66
+ missingEnv: string[];
67
+ callsToday: number;
68
+ worksWithoutKeys?: boolean | undefined;
69
+ }[];
70
+ }>;
71
+ 401: z.ZodObject<{
72
+ errors: z.ZodArray<z.ZodObject<{
73
+ id: z.ZodOptional<z.ZodString>;
74
+ links: z.ZodOptional<z.ZodObject<{
75
+ about: z.ZodOptional<z.ZodString>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ about?: string | undefined;
78
+ }, {
79
+ about?: string | undefined;
80
+ }>>;
81
+ status: z.ZodOptional<z.ZodString>;
82
+ code: z.ZodOptional<z.ZodString>;
83
+ title: z.ZodOptional<z.ZodString>;
84
+ detail: z.ZodOptional<z.ZodString>;
85
+ source: z.ZodOptional<z.ZodObject<{
86
+ pointer: z.ZodOptional<z.ZodString>;
87
+ parameter: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ pointer?: string | undefined;
90
+ parameter?: string | undefined;
91
+ }, {
92
+ pointer?: string | undefined;
93
+ parameter?: string | undefined;
94
+ }>>;
95
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ status?: string | undefined;
98
+ code?: string | undefined;
99
+ id?: string | undefined;
100
+ links?: {
101
+ about?: string | undefined;
102
+ } | undefined;
103
+ meta?: Record<string, unknown> | undefined;
104
+ title?: string | undefined;
105
+ detail?: string | undefined;
106
+ source?: {
107
+ pointer?: string | undefined;
108
+ parameter?: string | undefined;
109
+ } | undefined;
110
+ }, {
111
+ status?: string | undefined;
112
+ code?: string | undefined;
113
+ id?: string | undefined;
114
+ links?: {
115
+ about?: string | undefined;
116
+ } | undefined;
117
+ meta?: Record<string, unknown> | undefined;
118
+ title?: string | undefined;
119
+ detail?: string | undefined;
120
+ source?: {
121
+ pointer?: string | undefined;
122
+ parameter?: string | undefined;
123
+ } | undefined;
124
+ }>, "many">;
125
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ errors: {
128
+ status?: string | undefined;
129
+ code?: string | undefined;
130
+ id?: string | undefined;
131
+ links?: {
132
+ about?: string | undefined;
133
+ } | undefined;
134
+ meta?: Record<string, unknown> | undefined;
135
+ title?: string | undefined;
136
+ detail?: string | undefined;
137
+ source?: {
138
+ pointer?: string | undefined;
139
+ parameter?: string | undefined;
140
+ } | undefined;
141
+ }[];
142
+ meta?: Record<string, unknown> | undefined;
143
+ }, {
144
+ errors: {
145
+ status?: string | undefined;
146
+ code?: string | undefined;
147
+ id?: string | undefined;
148
+ links?: {
149
+ about?: string | undefined;
150
+ } | undefined;
151
+ meta?: Record<string, unknown> | undefined;
152
+ title?: string | undefined;
153
+ detail?: string | undefined;
154
+ source?: {
155
+ pointer?: string | undefined;
156
+ parameter?: string | undefined;
157
+ } | undefined;
158
+ }[];
159
+ meta?: Record<string, unknown> | undefined;
160
+ }>;
161
+ 403: z.ZodObject<{
162
+ errors: z.ZodArray<z.ZodObject<{
163
+ id: z.ZodOptional<z.ZodString>;
164
+ links: z.ZodOptional<z.ZodObject<{
165
+ about: z.ZodOptional<z.ZodString>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ about?: string | undefined;
168
+ }, {
169
+ about?: string | undefined;
170
+ }>>;
171
+ status: z.ZodOptional<z.ZodString>;
172
+ code: z.ZodOptional<z.ZodString>;
173
+ title: z.ZodOptional<z.ZodString>;
174
+ detail: z.ZodOptional<z.ZodString>;
175
+ source: z.ZodOptional<z.ZodObject<{
176
+ pointer: z.ZodOptional<z.ZodString>;
177
+ parameter: z.ZodOptional<z.ZodString>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ pointer?: string | undefined;
180
+ parameter?: string | undefined;
181
+ }, {
182
+ pointer?: string | undefined;
183
+ parameter?: string | undefined;
184
+ }>>;
185
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ status?: string | undefined;
188
+ code?: string | undefined;
189
+ id?: string | undefined;
190
+ links?: {
191
+ about?: string | undefined;
192
+ } | undefined;
193
+ meta?: Record<string, unknown> | undefined;
194
+ title?: string | undefined;
195
+ detail?: string | undefined;
196
+ source?: {
197
+ pointer?: string | undefined;
198
+ parameter?: string | undefined;
199
+ } | undefined;
200
+ }, {
201
+ status?: string | undefined;
202
+ code?: string | undefined;
203
+ id?: string | undefined;
204
+ links?: {
205
+ about?: string | undefined;
206
+ } | undefined;
207
+ meta?: Record<string, unknown> | undefined;
208
+ title?: string | undefined;
209
+ detail?: string | undefined;
210
+ source?: {
211
+ pointer?: string | undefined;
212
+ parameter?: string | undefined;
213
+ } | undefined;
214
+ }>, "many">;
215
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ errors: {
218
+ status?: string | undefined;
219
+ code?: string | undefined;
220
+ id?: string | undefined;
221
+ links?: {
222
+ about?: string | undefined;
223
+ } | undefined;
224
+ meta?: Record<string, unknown> | undefined;
225
+ title?: string | undefined;
226
+ detail?: string | undefined;
227
+ source?: {
228
+ pointer?: string | undefined;
229
+ parameter?: string | undefined;
230
+ } | undefined;
231
+ }[];
232
+ meta?: Record<string, unknown> | undefined;
233
+ }, {
234
+ errors: {
235
+ status?: string | undefined;
236
+ code?: string | undefined;
237
+ id?: string | undefined;
238
+ links?: {
239
+ about?: string | undefined;
240
+ } | undefined;
241
+ meta?: Record<string, unknown> | undefined;
242
+ title?: string | undefined;
243
+ detail?: string | undefined;
244
+ source?: {
245
+ pointer?: string | undefined;
246
+ parameter?: string | undefined;
247
+ } | undefined;
248
+ }[];
249
+ meta?: Record<string, unknown> | undefined;
250
+ }>;
251
+ };
252
+ };
253
+ ingestPriceFeeds: {
254
+ summary: "Platform admin: pull World Bank RTFP and WFP price feeds now";
255
+ method: "POST";
256
+ body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
257
+ path: "/admin/integrations/price-feeds/ingest";
258
+ responses: {
259
+ 200: z.ZodObject<{
260
+ data: z.ZodArray<z.ZodObject<{
261
+ source: z.ZodString;
262
+ rows: z.ZodNumber;
263
+ error: z.ZodOptional<z.ZodString>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ source: string;
266
+ rows: number;
267
+ error?: string | undefined;
268
+ }, {
269
+ source: string;
270
+ rows: number;
271
+ error?: string | undefined;
272
+ }>, "many">;
273
+ }, "strip", z.ZodTypeAny, {
274
+ data: {
275
+ source: string;
276
+ rows: number;
277
+ error?: string | undefined;
278
+ }[];
279
+ }, {
280
+ data: {
281
+ source: string;
282
+ rows: number;
283
+ error?: string | undefined;
284
+ }[];
285
+ }>;
286
+ 401: z.ZodObject<{
287
+ errors: z.ZodArray<z.ZodObject<{
288
+ id: z.ZodOptional<z.ZodString>;
289
+ links: z.ZodOptional<z.ZodObject<{
290
+ about: z.ZodOptional<z.ZodString>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ about?: string | undefined;
293
+ }, {
294
+ about?: string | undefined;
295
+ }>>;
296
+ status: z.ZodOptional<z.ZodString>;
297
+ code: z.ZodOptional<z.ZodString>;
298
+ title: z.ZodOptional<z.ZodString>;
299
+ detail: z.ZodOptional<z.ZodString>;
300
+ source: z.ZodOptional<z.ZodObject<{
301
+ pointer: z.ZodOptional<z.ZodString>;
302
+ parameter: z.ZodOptional<z.ZodString>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ pointer?: string | undefined;
305
+ parameter?: string | undefined;
306
+ }, {
307
+ pointer?: string | undefined;
308
+ parameter?: string | undefined;
309
+ }>>;
310
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ status?: string | undefined;
313
+ code?: string | undefined;
314
+ id?: string | undefined;
315
+ links?: {
316
+ about?: string | undefined;
317
+ } | undefined;
318
+ meta?: Record<string, unknown> | undefined;
319
+ title?: string | undefined;
320
+ detail?: string | undefined;
321
+ source?: {
322
+ pointer?: string | undefined;
323
+ parameter?: string | undefined;
324
+ } | undefined;
325
+ }, {
326
+ status?: string | undefined;
327
+ code?: string | undefined;
328
+ id?: string | undefined;
329
+ links?: {
330
+ about?: string | undefined;
331
+ } | undefined;
332
+ meta?: Record<string, unknown> | undefined;
333
+ title?: string | undefined;
334
+ detail?: string | undefined;
335
+ source?: {
336
+ pointer?: string | undefined;
337
+ parameter?: string | undefined;
338
+ } | undefined;
339
+ }>, "many">;
340
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ errors: {
343
+ status?: string | undefined;
344
+ code?: string | undefined;
345
+ id?: string | undefined;
346
+ links?: {
347
+ about?: string | undefined;
348
+ } | undefined;
349
+ meta?: Record<string, unknown> | undefined;
350
+ title?: string | undefined;
351
+ detail?: string | undefined;
352
+ source?: {
353
+ pointer?: string | undefined;
354
+ parameter?: string | undefined;
355
+ } | undefined;
356
+ }[];
357
+ meta?: Record<string, unknown> | undefined;
358
+ }, {
359
+ errors: {
360
+ status?: string | undefined;
361
+ code?: string | undefined;
362
+ id?: string | undefined;
363
+ links?: {
364
+ about?: string | undefined;
365
+ } | undefined;
366
+ meta?: Record<string, unknown> | undefined;
367
+ title?: string | undefined;
368
+ detail?: string | undefined;
369
+ source?: {
370
+ pointer?: string | undefined;
371
+ parameter?: string | undefined;
372
+ } | undefined;
373
+ }[];
374
+ meta?: Record<string, unknown> | undefined;
375
+ }>;
376
+ 403: z.ZodObject<{
377
+ errors: z.ZodArray<z.ZodObject<{
378
+ id: z.ZodOptional<z.ZodString>;
379
+ links: z.ZodOptional<z.ZodObject<{
380
+ about: z.ZodOptional<z.ZodString>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ about?: string | undefined;
383
+ }, {
384
+ about?: string | undefined;
385
+ }>>;
386
+ status: z.ZodOptional<z.ZodString>;
387
+ code: z.ZodOptional<z.ZodString>;
388
+ title: z.ZodOptional<z.ZodString>;
389
+ detail: z.ZodOptional<z.ZodString>;
390
+ source: z.ZodOptional<z.ZodObject<{
391
+ pointer: z.ZodOptional<z.ZodString>;
392
+ parameter: z.ZodOptional<z.ZodString>;
393
+ }, "strip", z.ZodTypeAny, {
394
+ pointer?: string | undefined;
395
+ parameter?: string | undefined;
396
+ }, {
397
+ pointer?: string | undefined;
398
+ parameter?: string | undefined;
399
+ }>>;
400
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ status?: string | undefined;
403
+ code?: string | undefined;
404
+ id?: string | undefined;
405
+ links?: {
406
+ about?: string | undefined;
407
+ } | undefined;
408
+ meta?: Record<string, unknown> | undefined;
409
+ title?: string | undefined;
410
+ detail?: string | undefined;
411
+ source?: {
412
+ pointer?: string | undefined;
413
+ parameter?: string | undefined;
414
+ } | undefined;
415
+ }, {
416
+ status?: string | undefined;
417
+ code?: string | undefined;
418
+ id?: string | undefined;
419
+ links?: {
420
+ about?: string | undefined;
421
+ } | undefined;
422
+ meta?: Record<string, unknown> | undefined;
423
+ title?: string | undefined;
424
+ detail?: string | undefined;
425
+ source?: {
426
+ pointer?: string | undefined;
427
+ parameter?: string | undefined;
428
+ } | undefined;
429
+ }>, "many">;
430
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
431
+ }, "strip", z.ZodTypeAny, {
432
+ errors: {
433
+ status?: string | undefined;
434
+ code?: string | undefined;
435
+ id?: string | undefined;
436
+ links?: {
437
+ about?: string | undefined;
438
+ } | undefined;
439
+ meta?: Record<string, unknown> | undefined;
440
+ title?: string | undefined;
441
+ detail?: string | undefined;
442
+ source?: {
443
+ pointer?: string | undefined;
444
+ parameter?: string | undefined;
445
+ } | undefined;
446
+ }[];
447
+ meta?: Record<string, unknown> | undefined;
448
+ }, {
449
+ errors: {
450
+ status?: string | undefined;
451
+ code?: string | undefined;
452
+ id?: string | undefined;
453
+ links?: {
454
+ about?: string | undefined;
455
+ } | undefined;
456
+ meta?: Record<string, unknown> | undefined;
457
+ title?: string | undefined;
458
+ detail?: string | undefined;
459
+ source?: {
460
+ pointer?: string | undefined;
461
+ parameter?: string | undefined;
462
+ } | undefined;
463
+ }[];
464
+ meta?: Record<string, unknown> | undefined;
465
+ }>;
466
+ };
467
+ };
468
+ importProductRegistry: {
469
+ summary: "Platform admin: load the registered agrochemical / veterinary product list (CSV)";
470
+ method: "POST";
471
+ body: z.ZodObject<{
472
+ csv: z.ZodString;
473
+ }, "strip", z.ZodTypeAny, {
474
+ csv: string;
475
+ }, {
476
+ csv: string;
477
+ }>;
478
+ path: "/admin/integrations/product-registry/import";
479
+ responses: {
480
+ 200: z.ZodObject<{
481
+ data: z.ZodObject<{
482
+ upserted: z.ZodNumber;
483
+ skipped: z.ZodArray<z.ZodObject<{
484
+ row: z.ZodNumber;
485
+ reason: z.ZodString;
486
+ }, "strip", z.ZodTypeAny, {
487
+ reason: string;
488
+ row: number;
489
+ }, {
490
+ reason: string;
491
+ row: number;
492
+ }>, "many">;
493
+ }, "strip", z.ZodTypeAny, {
494
+ skipped: {
495
+ reason: string;
496
+ row: number;
497
+ }[];
498
+ upserted: number;
499
+ }, {
500
+ skipped: {
501
+ reason: string;
502
+ row: number;
503
+ }[];
504
+ upserted: number;
505
+ }>;
506
+ }, "strip", z.ZodTypeAny, {
507
+ data: {
508
+ skipped: {
509
+ reason: string;
510
+ row: number;
511
+ }[];
512
+ upserted: number;
513
+ };
514
+ }, {
515
+ data: {
516
+ skipped: {
517
+ reason: string;
518
+ row: number;
519
+ }[];
520
+ upserted: number;
521
+ };
522
+ }>;
523
+ 400: z.ZodObject<{
524
+ errors: z.ZodArray<z.ZodObject<{
525
+ id: z.ZodOptional<z.ZodString>;
526
+ links: z.ZodOptional<z.ZodObject<{
527
+ about: z.ZodOptional<z.ZodString>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ about?: string | undefined;
530
+ }, {
531
+ about?: string | undefined;
532
+ }>>;
533
+ status: z.ZodOptional<z.ZodString>;
534
+ code: z.ZodOptional<z.ZodString>;
535
+ title: z.ZodOptional<z.ZodString>;
536
+ detail: z.ZodOptional<z.ZodString>;
537
+ source: z.ZodOptional<z.ZodObject<{
538
+ pointer: z.ZodOptional<z.ZodString>;
539
+ parameter: z.ZodOptional<z.ZodString>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ pointer?: string | undefined;
542
+ parameter?: string | undefined;
543
+ }, {
544
+ pointer?: string | undefined;
545
+ parameter?: string | undefined;
546
+ }>>;
547
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ status?: string | undefined;
550
+ code?: string | undefined;
551
+ id?: string | undefined;
552
+ links?: {
553
+ about?: string | undefined;
554
+ } | undefined;
555
+ meta?: Record<string, unknown> | undefined;
556
+ title?: string | undefined;
557
+ detail?: string | undefined;
558
+ source?: {
559
+ pointer?: string | undefined;
560
+ parameter?: string | undefined;
561
+ } | undefined;
562
+ }, {
563
+ status?: string | undefined;
564
+ code?: string | undefined;
565
+ id?: string | undefined;
566
+ links?: {
567
+ about?: string | undefined;
568
+ } | undefined;
569
+ meta?: Record<string, unknown> | undefined;
570
+ title?: string | undefined;
571
+ detail?: string | undefined;
572
+ source?: {
573
+ pointer?: string | undefined;
574
+ parameter?: string | undefined;
575
+ } | undefined;
576
+ }>, "many">;
577
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ errors: {
580
+ status?: string | undefined;
581
+ code?: string | undefined;
582
+ id?: string | undefined;
583
+ links?: {
584
+ about?: string | undefined;
585
+ } | undefined;
586
+ meta?: Record<string, unknown> | undefined;
587
+ title?: string | undefined;
588
+ detail?: string | undefined;
589
+ source?: {
590
+ pointer?: string | undefined;
591
+ parameter?: string | undefined;
592
+ } | undefined;
593
+ }[];
594
+ meta?: Record<string, unknown> | undefined;
595
+ }, {
596
+ errors: {
597
+ status?: string | undefined;
598
+ code?: string | undefined;
599
+ id?: string | undefined;
600
+ links?: {
601
+ about?: string | undefined;
602
+ } | undefined;
603
+ meta?: Record<string, unknown> | undefined;
604
+ title?: string | undefined;
605
+ detail?: string | undefined;
606
+ source?: {
607
+ pointer?: string | undefined;
608
+ parameter?: string | undefined;
609
+ } | undefined;
610
+ }[];
611
+ meta?: Record<string, unknown> | undefined;
612
+ }>;
613
+ 401: z.ZodObject<{
614
+ errors: z.ZodArray<z.ZodObject<{
615
+ id: z.ZodOptional<z.ZodString>;
616
+ links: z.ZodOptional<z.ZodObject<{
617
+ about: z.ZodOptional<z.ZodString>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ about?: string | undefined;
620
+ }, {
621
+ about?: string | undefined;
622
+ }>>;
623
+ status: z.ZodOptional<z.ZodString>;
624
+ code: z.ZodOptional<z.ZodString>;
625
+ title: z.ZodOptional<z.ZodString>;
626
+ detail: z.ZodOptional<z.ZodString>;
627
+ source: z.ZodOptional<z.ZodObject<{
628
+ pointer: z.ZodOptional<z.ZodString>;
629
+ parameter: z.ZodOptional<z.ZodString>;
630
+ }, "strip", z.ZodTypeAny, {
631
+ pointer?: string | undefined;
632
+ parameter?: string | undefined;
633
+ }, {
634
+ pointer?: string | undefined;
635
+ parameter?: string | undefined;
636
+ }>>;
637
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ status?: string | undefined;
640
+ code?: string | undefined;
641
+ id?: string | undefined;
642
+ links?: {
643
+ about?: string | undefined;
644
+ } | undefined;
645
+ meta?: Record<string, unknown> | undefined;
646
+ title?: string | undefined;
647
+ detail?: string | undefined;
648
+ source?: {
649
+ pointer?: string | undefined;
650
+ parameter?: string | undefined;
651
+ } | undefined;
652
+ }, {
653
+ status?: string | undefined;
654
+ code?: string | undefined;
655
+ id?: string | undefined;
656
+ links?: {
657
+ about?: string | undefined;
658
+ } | undefined;
659
+ meta?: Record<string, unknown> | undefined;
660
+ title?: string | undefined;
661
+ detail?: string | undefined;
662
+ source?: {
663
+ pointer?: string | undefined;
664
+ parameter?: string | undefined;
665
+ } | undefined;
666
+ }>, "many">;
667
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ errors: {
670
+ status?: string | undefined;
671
+ code?: string | undefined;
672
+ id?: string | undefined;
673
+ links?: {
674
+ about?: string | undefined;
675
+ } | undefined;
676
+ meta?: Record<string, unknown> | undefined;
677
+ title?: string | undefined;
678
+ detail?: string | undefined;
679
+ source?: {
680
+ pointer?: string | undefined;
681
+ parameter?: string | undefined;
682
+ } | undefined;
683
+ }[];
684
+ meta?: Record<string, unknown> | undefined;
685
+ }, {
686
+ errors: {
687
+ status?: string | undefined;
688
+ code?: string | undefined;
689
+ id?: string | undefined;
690
+ links?: {
691
+ about?: string | undefined;
692
+ } | undefined;
693
+ meta?: Record<string, unknown> | undefined;
694
+ title?: string | undefined;
695
+ detail?: string | undefined;
696
+ source?: {
697
+ pointer?: string | undefined;
698
+ parameter?: string | undefined;
699
+ } | undefined;
700
+ }[];
701
+ meta?: Record<string, unknown> | undefined;
702
+ }>;
703
+ 403: z.ZodObject<{
704
+ errors: z.ZodArray<z.ZodObject<{
705
+ id: z.ZodOptional<z.ZodString>;
706
+ links: z.ZodOptional<z.ZodObject<{
707
+ about: z.ZodOptional<z.ZodString>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ about?: string | undefined;
710
+ }, {
711
+ about?: string | undefined;
712
+ }>>;
713
+ status: z.ZodOptional<z.ZodString>;
714
+ code: z.ZodOptional<z.ZodString>;
715
+ title: z.ZodOptional<z.ZodString>;
716
+ detail: z.ZodOptional<z.ZodString>;
717
+ source: z.ZodOptional<z.ZodObject<{
718
+ pointer: z.ZodOptional<z.ZodString>;
719
+ parameter: z.ZodOptional<z.ZodString>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ pointer?: string | undefined;
722
+ parameter?: string | undefined;
723
+ }, {
724
+ pointer?: string | undefined;
725
+ parameter?: string | undefined;
726
+ }>>;
727
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ status?: string | undefined;
730
+ code?: string | undefined;
731
+ id?: string | undefined;
732
+ links?: {
733
+ about?: string | undefined;
734
+ } | undefined;
735
+ meta?: Record<string, unknown> | undefined;
736
+ title?: string | undefined;
737
+ detail?: string | undefined;
738
+ source?: {
739
+ pointer?: string | undefined;
740
+ parameter?: string | undefined;
741
+ } | undefined;
742
+ }, {
743
+ status?: string | undefined;
744
+ code?: string | undefined;
745
+ id?: string | undefined;
746
+ links?: {
747
+ about?: string | undefined;
748
+ } | undefined;
749
+ meta?: Record<string, unknown> | undefined;
750
+ title?: string | undefined;
751
+ detail?: string | undefined;
752
+ source?: {
753
+ pointer?: string | undefined;
754
+ parameter?: string | undefined;
755
+ } | undefined;
756
+ }>, "many">;
757
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ errors: {
760
+ status?: string | undefined;
761
+ code?: string | undefined;
762
+ id?: string | undefined;
763
+ links?: {
764
+ about?: string | undefined;
765
+ } | undefined;
766
+ meta?: Record<string, unknown> | undefined;
767
+ title?: string | undefined;
768
+ detail?: string | undefined;
769
+ source?: {
770
+ pointer?: string | undefined;
771
+ parameter?: string | undefined;
772
+ } | undefined;
773
+ }[];
774
+ meta?: Record<string, unknown> | undefined;
775
+ }, {
776
+ errors: {
777
+ status?: string | undefined;
778
+ code?: string | undefined;
779
+ id?: string | undefined;
780
+ links?: {
781
+ about?: string | undefined;
782
+ } | undefined;
783
+ meta?: Record<string, unknown> | undefined;
784
+ title?: string | undefined;
785
+ detail?: string | undefined;
786
+ source?: {
787
+ pointer?: string | undefined;
788
+ parameter?: string | undefined;
789
+ } | undefined;
790
+ }[];
791
+ meta?: Record<string, unknown> | undefined;
792
+ }>;
793
+ };
794
+ };
795
+ createOutbreak: {
796
+ summary: "Platform admin: record an outbreak event (WAHIS / state vet report) and alert nearby farms";
797
+ method: "POST";
798
+ body: z.ZodObject<{
799
+ externalId: z.ZodString;
800
+ source: z.ZodOptional<z.ZodString>;
801
+ disease: z.ZodString;
802
+ species: z.ZodArray<z.ZodEnum<["poultry", "cattle", "goat", "sheep", "pig", "fish", "crops"]>, "many">;
803
+ country: z.ZodOptional<z.ZodString>;
804
+ admin1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
805
+ admin2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
+ latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
807
+ longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
808
+ status: z.ZodOptional<z.ZodEnum<["suspected", "confirmed", "resolved"]>>;
809
+ reportedAt: z.ZodString;
810
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
811
+ cases: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
812
+ deaths: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
813
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
814
+ sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ disease: string;
817
+ externalId: string;
818
+ species: ("crops" | "poultry" | "cattle" | "goat" | "sheep" | "pig" | "fish")[];
819
+ reportedAt: string;
820
+ status?: "resolved" | "confirmed" | "suspected" | undefined;
821
+ source?: string | undefined;
822
+ summary?: string | null | undefined;
823
+ startedAt?: string | null | undefined;
824
+ latitude?: number | null | undefined;
825
+ longitude?: number | null | undefined;
826
+ country?: string | undefined;
827
+ admin1?: string | null | undefined;
828
+ admin2?: string | null | undefined;
829
+ cases?: number | null | undefined;
830
+ deaths?: number | null | undefined;
831
+ sourceUrl?: string | null | undefined;
832
+ }, {
833
+ disease: string;
834
+ externalId: string;
835
+ species: ("crops" | "poultry" | "cattle" | "goat" | "sheep" | "pig" | "fish")[];
836
+ reportedAt: string;
837
+ status?: "resolved" | "confirmed" | "suspected" | undefined;
838
+ source?: string | undefined;
839
+ summary?: string | null | undefined;
840
+ startedAt?: string | null | undefined;
841
+ latitude?: number | null | undefined;
842
+ longitude?: number | null | undefined;
843
+ country?: string | undefined;
844
+ admin1?: string | null | undefined;
845
+ admin2?: string | null | undefined;
846
+ cases?: number | null | undefined;
847
+ deaths?: number | null | undefined;
848
+ sourceUrl?: string | null | undefined;
849
+ }>;
850
+ path: "/admin/integrations/outbreaks";
851
+ responses: {
852
+ 200: z.ZodObject<{
853
+ data: z.ZodObject<{
854
+ created: z.ZodBoolean;
855
+ farmsAlerted: z.ZodNumber;
856
+ }, "strip", z.ZodTypeAny, {
857
+ created: boolean;
858
+ farmsAlerted: number;
859
+ }, {
860
+ created: boolean;
861
+ farmsAlerted: number;
862
+ }>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ data: {
865
+ created: boolean;
866
+ farmsAlerted: number;
867
+ };
868
+ }, {
869
+ data: {
870
+ created: boolean;
871
+ farmsAlerted: number;
872
+ };
873
+ }>;
874
+ 400: z.ZodObject<{
875
+ errors: z.ZodArray<z.ZodObject<{
876
+ id: z.ZodOptional<z.ZodString>;
877
+ links: z.ZodOptional<z.ZodObject<{
878
+ about: z.ZodOptional<z.ZodString>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ about?: string | undefined;
881
+ }, {
882
+ about?: string | undefined;
883
+ }>>;
884
+ status: z.ZodOptional<z.ZodString>;
885
+ code: z.ZodOptional<z.ZodString>;
886
+ title: z.ZodOptional<z.ZodString>;
887
+ detail: z.ZodOptional<z.ZodString>;
888
+ source: z.ZodOptional<z.ZodObject<{
889
+ pointer: z.ZodOptional<z.ZodString>;
890
+ parameter: z.ZodOptional<z.ZodString>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ pointer?: string | undefined;
893
+ parameter?: string | undefined;
894
+ }, {
895
+ pointer?: string | undefined;
896
+ parameter?: string | undefined;
897
+ }>>;
898
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
899
+ }, "strip", z.ZodTypeAny, {
900
+ status?: string | undefined;
901
+ code?: string | undefined;
902
+ id?: string | undefined;
903
+ links?: {
904
+ about?: string | undefined;
905
+ } | undefined;
906
+ meta?: Record<string, unknown> | undefined;
907
+ title?: string | undefined;
908
+ detail?: string | undefined;
909
+ source?: {
910
+ pointer?: string | undefined;
911
+ parameter?: string | undefined;
912
+ } | undefined;
913
+ }, {
914
+ status?: string | undefined;
915
+ code?: string | undefined;
916
+ id?: string | undefined;
917
+ links?: {
918
+ about?: string | undefined;
919
+ } | undefined;
920
+ meta?: Record<string, unknown> | undefined;
921
+ title?: string | undefined;
922
+ detail?: string | undefined;
923
+ source?: {
924
+ pointer?: string | undefined;
925
+ parameter?: string | undefined;
926
+ } | undefined;
927
+ }>, "many">;
928
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ errors: {
931
+ status?: string | undefined;
932
+ code?: string | undefined;
933
+ id?: string | undefined;
934
+ links?: {
935
+ about?: string | undefined;
936
+ } | undefined;
937
+ meta?: Record<string, unknown> | undefined;
938
+ title?: string | undefined;
939
+ detail?: string | undefined;
940
+ source?: {
941
+ pointer?: string | undefined;
942
+ parameter?: string | undefined;
943
+ } | undefined;
944
+ }[];
945
+ meta?: Record<string, unknown> | undefined;
946
+ }, {
947
+ errors: {
948
+ status?: string | undefined;
949
+ code?: string | undefined;
950
+ id?: string | undefined;
951
+ links?: {
952
+ about?: string | undefined;
953
+ } | undefined;
954
+ meta?: Record<string, unknown> | undefined;
955
+ title?: string | undefined;
956
+ detail?: string | undefined;
957
+ source?: {
958
+ pointer?: string | undefined;
959
+ parameter?: string | undefined;
960
+ } | undefined;
961
+ }[];
962
+ meta?: Record<string, unknown> | undefined;
963
+ }>;
964
+ 401: z.ZodObject<{
965
+ errors: z.ZodArray<z.ZodObject<{
966
+ id: z.ZodOptional<z.ZodString>;
967
+ links: z.ZodOptional<z.ZodObject<{
968
+ about: z.ZodOptional<z.ZodString>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ about?: string | undefined;
971
+ }, {
972
+ about?: string | undefined;
973
+ }>>;
974
+ status: z.ZodOptional<z.ZodString>;
975
+ code: z.ZodOptional<z.ZodString>;
976
+ title: z.ZodOptional<z.ZodString>;
977
+ detail: z.ZodOptional<z.ZodString>;
978
+ source: z.ZodOptional<z.ZodObject<{
979
+ pointer: z.ZodOptional<z.ZodString>;
980
+ parameter: z.ZodOptional<z.ZodString>;
981
+ }, "strip", z.ZodTypeAny, {
982
+ pointer?: string | undefined;
983
+ parameter?: string | undefined;
984
+ }, {
985
+ pointer?: string | undefined;
986
+ parameter?: string | undefined;
987
+ }>>;
988
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ status?: string | undefined;
991
+ code?: string | undefined;
992
+ id?: string | undefined;
993
+ links?: {
994
+ about?: string | undefined;
995
+ } | undefined;
996
+ meta?: Record<string, unknown> | undefined;
997
+ title?: string | undefined;
998
+ detail?: string | undefined;
999
+ source?: {
1000
+ pointer?: string | undefined;
1001
+ parameter?: string | undefined;
1002
+ } | undefined;
1003
+ }, {
1004
+ status?: string | undefined;
1005
+ code?: string | undefined;
1006
+ id?: string | undefined;
1007
+ links?: {
1008
+ about?: string | undefined;
1009
+ } | undefined;
1010
+ meta?: Record<string, unknown> | undefined;
1011
+ title?: string | undefined;
1012
+ detail?: string | undefined;
1013
+ source?: {
1014
+ pointer?: string | undefined;
1015
+ parameter?: string | undefined;
1016
+ } | undefined;
1017
+ }>, "many">;
1018
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ errors: {
1021
+ status?: string | undefined;
1022
+ code?: string | undefined;
1023
+ id?: string | undefined;
1024
+ links?: {
1025
+ about?: string | undefined;
1026
+ } | undefined;
1027
+ meta?: Record<string, unknown> | undefined;
1028
+ title?: string | undefined;
1029
+ detail?: string | undefined;
1030
+ source?: {
1031
+ pointer?: string | undefined;
1032
+ parameter?: string | undefined;
1033
+ } | undefined;
1034
+ }[];
1035
+ meta?: Record<string, unknown> | undefined;
1036
+ }, {
1037
+ errors: {
1038
+ status?: string | undefined;
1039
+ code?: string | undefined;
1040
+ id?: string | undefined;
1041
+ links?: {
1042
+ about?: string | undefined;
1043
+ } | undefined;
1044
+ meta?: Record<string, unknown> | undefined;
1045
+ title?: string | undefined;
1046
+ detail?: string | undefined;
1047
+ source?: {
1048
+ pointer?: string | undefined;
1049
+ parameter?: string | undefined;
1050
+ } | undefined;
1051
+ }[];
1052
+ meta?: Record<string, unknown> | undefined;
1053
+ }>;
1054
+ 403: z.ZodObject<{
1055
+ errors: z.ZodArray<z.ZodObject<{
1056
+ id: z.ZodOptional<z.ZodString>;
1057
+ links: z.ZodOptional<z.ZodObject<{
1058
+ about: z.ZodOptional<z.ZodString>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ about?: string | undefined;
1061
+ }, {
1062
+ about?: string | undefined;
1063
+ }>>;
1064
+ status: z.ZodOptional<z.ZodString>;
1065
+ code: z.ZodOptional<z.ZodString>;
1066
+ title: z.ZodOptional<z.ZodString>;
1067
+ detail: z.ZodOptional<z.ZodString>;
1068
+ source: z.ZodOptional<z.ZodObject<{
1069
+ pointer: z.ZodOptional<z.ZodString>;
1070
+ parameter: z.ZodOptional<z.ZodString>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ pointer?: string | undefined;
1073
+ parameter?: string | undefined;
1074
+ }, {
1075
+ pointer?: string | undefined;
1076
+ parameter?: string | undefined;
1077
+ }>>;
1078
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ status?: string | undefined;
1081
+ code?: string | undefined;
1082
+ id?: string | undefined;
1083
+ links?: {
1084
+ about?: string | undefined;
1085
+ } | undefined;
1086
+ meta?: Record<string, unknown> | undefined;
1087
+ title?: string | undefined;
1088
+ detail?: string | undefined;
1089
+ source?: {
1090
+ pointer?: string | undefined;
1091
+ parameter?: string | undefined;
1092
+ } | undefined;
1093
+ }, {
1094
+ status?: string | undefined;
1095
+ code?: string | undefined;
1096
+ id?: string | undefined;
1097
+ links?: {
1098
+ about?: string | undefined;
1099
+ } | undefined;
1100
+ meta?: Record<string, unknown> | undefined;
1101
+ title?: string | undefined;
1102
+ detail?: string | undefined;
1103
+ source?: {
1104
+ pointer?: string | undefined;
1105
+ parameter?: string | undefined;
1106
+ } | undefined;
1107
+ }>, "many">;
1108
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ errors: {
1111
+ status?: string | undefined;
1112
+ code?: string | undefined;
1113
+ id?: string | undefined;
1114
+ links?: {
1115
+ about?: string | undefined;
1116
+ } | undefined;
1117
+ meta?: Record<string, unknown> | undefined;
1118
+ title?: string | undefined;
1119
+ detail?: string | undefined;
1120
+ source?: {
1121
+ pointer?: string | undefined;
1122
+ parameter?: string | undefined;
1123
+ } | undefined;
1124
+ }[];
1125
+ meta?: Record<string, unknown> | undefined;
1126
+ }, {
1127
+ errors: {
1128
+ status?: string | undefined;
1129
+ code?: string | undefined;
1130
+ id?: string | undefined;
1131
+ links?: {
1132
+ about?: string | undefined;
1133
+ } | undefined;
1134
+ meta?: Record<string, unknown> | undefined;
1135
+ title?: string | undefined;
1136
+ detail?: string | undefined;
1137
+ source?: {
1138
+ pointer?: string | undefined;
1139
+ parameter?: string | undefined;
1140
+ } | undefined;
1141
+ }[];
1142
+ meta?: Record<string, unknown> | undefined;
1143
+ }>;
1144
+ };
1145
+ };
1146
+ listFarmOutbreaks: {
1147
+ pathParams: z.ZodObject<{
1148
+ farmId: z.ZodString;
1149
+ }, "strip", z.ZodTypeAny, {
1150
+ farmId: string;
1151
+ }, {
1152
+ farmId: string;
1153
+ }>;
1154
+ summary: "Active disease / pest outbreaks in the farm’s state or within 100 km (last 60 days)";
1155
+ method: "GET";
1156
+ path: "/farms/:farmId/outbreaks";
1157
+ responses: {
1158
+ 200: z.ZodObject<{
1159
+ data: z.ZodArray<z.ZodObject<{
1160
+ id: z.ZodString;
1161
+ source: z.ZodString;
1162
+ disease: z.ZodString;
1163
+ diseaseKey: z.ZodString;
1164
+ species: z.ZodArray<z.ZodString, "many">;
1165
+ admin1: z.ZodNullable<z.ZodString>;
1166
+ admin2: z.ZodNullable<z.ZodString>;
1167
+ status: z.ZodString;
1168
+ notifiable: z.ZodBoolean;
1169
+ reportedAt: z.ZodString;
1170
+ cases: z.ZodNullable<z.ZodNumber>;
1171
+ deaths: z.ZodNullable<z.ZodNumber>;
1172
+ summary: z.ZodNullable<z.ZodString>;
1173
+ sourceUrl: z.ZodNullable<z.ZodString>;
1174
+ guidance: z.ZodArray<z.ZodString, "many">;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ status: string;
1177
+ id: string;
1178
+ source: string;
1179
+ summary: string | null;
1180
+ disease: string;
1181
+ species: string[];
1182
+ admin1: string | null;
1183
+ admin2: string | null;
1184
+ reportedAt: string;
1185
+ cases: number | null;
1186
+ deaths: number | null;
1187
+ sourceUrl: string | null;
1188
+ diseaseKey: string;
1189
+ notifiable: boolean;
1190
+ guidance: string[];
1191
+ }, {
1192
+ status: string;
1193
+ id: string;
1194
+ source: string;
1195
+ summary: string | null;
1196
+ disease: string;
1197
+ species: string[];
1198
+ admin1: string | null;
1199
+ admin2: string | null;
1200
+ reportedAt: string;
1201
+ cases: number | null;
1202
+ deaths: number | null;
1203
+ sourceUrl: string | null;
1204
+ diseaseKey: string;
1205
+ notifiable: boolean;
1206
+ guidance: string[];
1207
+ }>, "many">;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ data: {
1210
+ status: string;
1211
+ id: string;
1212
+ source: string;
1213
+ summary: string | null;
1214
+ disease: string;
1215
+ species: string[];
1216
+ admin1: string | null;
1217
+ admin2: string | null;
1218
+ reportedAt: string;
1219
+ cases: number | null;
1220
+ deaths: number | null;
1221
+ sourceUrl: string | null;
1222
+ diseaseKey: string;
1223
+ notifiable: boolean;
1224
+ guidance: string[];
1225
+ }[];
1226
+ }, {
1227
+ data: {
1228
+ status: string;
1229
+ id: string;
1230
+ source: string;
1231
+ summary: string | null;
1232
+ disease: string;
1233
+ species: string[];
1234
+ admin1: string | null;
1235
+ admin2: string | null;
1236
+ reportedAt: string;
1237
+ cases: number | null;
1238
+ deaths: number | null;
1239
+ sourceUrl: string | null;
1240
+ diseaseKey: string;
1241
+ notifiable: boolean;
1242
+ guidance: string[];
1243
+ }[];
1244
+ }>;
1245
+ 401: z.ZodObject<{
1246
+ errors: z.ZodArray<z.ZodObject<{
1247
+ id: z.ZodOptional<z.ZodString>;
1248
+ links: z.ZodOptional<z.ZodObject<{
1249
+ about: z.ZodOptional<z.ZodString>;
1250
+ }, "strip", z.ZodTypeAny, {
1251
+ about?: string | undefined;
1252
+ }, {
1253
+ about?: string | undefined;
1254
+ }>>;
1255
+ status: z.ZodOptional<z.ZodString>;
1256
+ code: z.ZodOptional<z.ZodString>;
1257
+ title: z.ZodOptional<z.ZodString>;
1258
+ detail: z.ZodOptional<z.ZodString>;
1259
+ source: z.ZodOptional<z.ZodObject<{
1260
+ pointer: z.ZodOptional<z.ZodString>;
1261
+ parameter: z.ZodOptional<z.ZodString>;
1262
+ }, "strip", z.ZodTypeAny, {
1263
+ pointer?: string | undefined;
1264
+ parameter?: string | undefined;
1265
+ }, {
1266
+ pointer?: string | undefined;
1267
+ parameter?: string | undefined;
1268
+ }>>;
1269
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1270
+ }, "strip", z.ZodTypeAny, {
1271
+ status?: string | undefined;
1272
+ code?: string | undefined;
1273
+ id?: string | undefined;
1274
+ links?: {
1275
+ about?: string | undefined;
1276
+ } | undefined;
1277
+ meta?: Record<string, unknown> | undefined;
1278
+ title?: string | undefined;
1279
+ detail?: string | undefined;
1280
+ source?: {
1281
+ pointer?: string | undefined;
1282
+ parameter?: string | undefined;
1283
+ } | undefined;
1284
+ }, {
1285
+ status?: string | undefined;
1286
+ code?: string | undefined;
1287
+ id?: string | undefined;
1288
+ links?: {
1289
+ about?: string | undefined;
1290
+ } | undefined;
1291
+ meta?: Record<string, unknown> | undefined;
1292
+ title?: string | undefined;
1293
+ detail?: string | undefined;
1294
+ source?: {
1295
+ pointer?: string | undefined;
1296
+ parameter?: string | undefined;
1297
+ } | undefined;
1298
+ }>, "many">;
1299
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ errors: {
1302
+ status?: string | undefined;
1303
+ code?: string | undefined;
1304
+ id?: string | undefined;
1305
+ links?: {
1306
+ about?: string | undefined;
1307
+ } | undefined;
1308
+ meta?: Record<string, unknown> | undefined;
1309
+ title?: string | undefined;
1310
+ detail?: string | undefined;
1311
+ source?: {
1312
+ pointer?: string | undefined;
1313
+ parameter?: string | undefined;
1314
+ } | undefined;
1315
+ }[];
1316
+ meta?: Record<string, unknown> | undefined;
1317
+ }, {
1318
+ errors: {
1319
+ status?: string | undefined;
1320
+ code?: string | undefined;
1321
+ id?: string | undefined;
1322
+ links?: {
1323
+ about?: string | undefined;
1324
+ } | undefined;
1325
+ meta?: Record<string, unknown> | undefined;
1326
+ title?: string | undefined;
1327
+ detail?: string | undefined;
1328
+ source?: {
1329
+ pointer?: string | undefined;
1330
+ parameter?: string | undefined;
1331
+ } | undefined;
1332
+ }[];
1333
+ meta?: Record<string, unknown> | undefined;
1334
+ }>;
1335
+ 403: z.ZodObject<{
1336
+ errors: z.ZodArray<z.ZodObject<{
1337
+ id: z.ZodOptional<z.ZodString>;
1338
+ links: z.ZodOptional<z.ZodObject<{
1339
+ about: z.ZodOptional<z.ZodString>;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ about?: string | undefined;
1342
+ }, {
1343
+ about?: string | undefined;
1344
+ }>>;
1345
+ status: z.ZodOptional<z.ZodString>;
1346
+ code: z.ZodOptional<z.ZodString>;
1347
+ title: z.ZodOptional<z.ZodString>;
1348
+ detail: z.ZodOptional<z.ZodString>;
1349
+ source: z.ZodOptional<z.ZodObject<{
1350
+ pointer: z.ZodOptional<z.ZodString>;
1351
+ parameter: z.ZodOptional<z.ZodString>;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ pointer?: string | undefined;
1354
+ parameter?: string | undefined;
1355
+ }, {
1356
+ pointer?: string | undefined;
1357
+ parameter?: string | undefined;
1358
+ }>>;
1359
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ status?: string | undefined;
1362
+ code?: string | undefined;
1363
+ id?: string | undefined;
1364
+ links?: {
1365
+ about?: string | undefined;
1366
+ } | undefined;
1367
+ meta?: Record<string, unknown> | undefined;
1368
+ title?: string | undefined;
1369
+ detail?: string | undefined;
1370
+ source?: {
1371
+ pointer?: string | undefined;
1372
+ parameter?: string | undefined;
1373
+ } | undefined;
1374
+ }, {
1375
+ status?: string | undefined;
1376
+ code?: string | undefined;
1377
+ id?: string | undefined;
1378
+ links?: {
1379
+ about?: string | undefined;
1380
+ } | undefined;
1381
+ meta?: Record<string, unknown> | undefined;
1382
+ title?: string | undefined;
1383
+ detail?: string | undefined;
1384
+ source?: {
1385
+ pointer?: string | undefined;
1386
+ parameter?: string | undefined;
1387
+ } | undefined;
1388
+ }>, "many">;
1389
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ errors: {
1392
+ status?: string | undefined;
1393
+ code?: string | undefined;
1394
+ id?: string | undefined;
1395
+ links?: {
1396
+ about?: string | undefined;
1397
+ } | undefined;
1398
+ meta?: Record<string, unknown> | undefined;
1399
+ title?: string | undefined;
1400
+ detail?: string | undefined;
1401
+ source?: {
1402
+ pointer?: string | undefined;
1403
+ parameter?: string | undefined;
1404
+ } | undefined;
1405
+ }[];
1406
+ meta?: Record<string, unknown> | undefined;
1407
+ }, {
1408
+ errors: {
1409
+ status?: string | undefined;
1410
+ code?: string | undefined;
1411
+ id?: string | undefined;
1412
+ links?: {
1413
+ about?: string | undefined;
1414
+ } | undefined;
1415
+ meta?: Record<string, unknown> | undefined;
1416
+ title?: string | undefined;
1417
+ detail?: string | undefined;
1418
+ source?: {
1419
+ pointer?: string | undefined;
1420
+ parameter?: string | undefined;
1421
+ } | undefined;
1422
+ }[];
1423
+ meta?: Record<string, unknown> | undefined;
1424
+ }>;
1425
+ };
1426
+ };
1427
+ transcribeVoice: {
1428
+ pathParams: z.ZodObject<{
1429
+ farmId: z.ZodString;
1430
+ }, "strip", z.ZodTypeAny, {
1431
+ farmId: string;
1432
+ }, {
1433
+ farmId: string;
1434
+ }>;
1435
+ summary: "Voice note → text (Yoruba, Hausa, Igbo, English, Pidgin). Audio is not stored.";
1436
+ method: "POST";
1437
+ contentType: "multipart/form-data";
1438
+ body: z.ZodObject<{
1439
+ audio: z.ZodOptional<z.ZodUnknown>;
1440
+ language: z.ZodOptional<z.ZodEnum<["en", "yo", "ha", "ig", "pcm"]>>;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ language?: "en" | "yo" | "ha" | "ig" | "pcm" | undefined;
1443
+ audio?: unknown;
1444
+ }, {
1445
+ language?: "en" | "yo" | "ha" | "ig" | "pcm" | undefined;
1446
+ audio?: unknown;
1447
+ }>;
1448
+ path: "/farms/:farmId/voice/transcribe";
1449
+ responses: {
1450
+ 200: z.ZodObject<{
1451
+ data: z.ZodObject<{
1452
+ text: z.ZodString;
1453
+ language: z.ZodNullable<z.ZodEnum<["en", "yo", "ha", "ig", "pcm"]>>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ language: "en" | "yo" | "ha" | "ig" | "pcm" | null;
1456
+ text: string;
1457
+ }, {
1458
+ language: "en" | "yo" | "ha" | "ig" | "pcm" | null;
1459
+ text: string;
1460
+ }>;
1461
+ provenance: z.ZodObject<{
1462
+ provider: z.ZodString;
1463
+ retrievedAt: z.ZodString;
1464
+ licence: z.ZodString;
1465
+ confidence: z.ZodNumber;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ confidence: number;
1468
+ provider: string;
1469
+ retrievedAt: string;
1470
+ licence: string;
1471
+ }, {
1472
+ confidence: number;
1473
+ provider: string;
1474
+ retrievedAt: string;
1475
+ licence: string;
1476
+ }>;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ data: {
1479
+ language: "en" | "yo" | "ha" | "ig" | "pcm" | null;
1480
+ text: string;
1481
+ };
1482
+ provenance: {
1483
+ confidence: number;
1484
+ provider: string;
1485
+ retrievedAt: string;
1486
+ licence: string;
1487
+ };
1488
+ }, {
1489
+ data: {
1490
+ language: "en" | "yo" | "ha" | "ig" | "pcm" | null;
1491
+ text: string;
1492
+ };
1493
+ provenance: {
1494
+ confidence: number;
1495
+ provider: string;
1496
+ retrievedAt: string;
1497
+ licence: string;
1498
+ };
1499
+ }>;
1500
+ 400: z.ZodObject<{
1501
+ errors: z.ZodArray<z.ZodObject<{
1502
+ id: z.ZodOptional<z.ZodString>;
1503
+ links: z.ZodOptional<z.ZodObject<{
1504
+ about: z.ZodOptional<z.ZodString>;
1505
+ }, "strip", z.ZodTypeAny, {
1506
+ about?: string | undefined;
1507
+ }, {
1508
+ about?: string | undefined;
1509
+ }>>;
1510
+ status: z.ZodOptional<z.ZodString>;
1511
+ code: z.ZodOptional<z.ZodString>;
1512
+ title: z.ZodOptional<z.ZodString>;
1513
+ detail: z.ZodOptional<z.ZodString>;
1514
+ source: z.ZodOptional<z.ZodObject<{
1515
+ pointer: z.ZodOptional<z.ZodString>;
1516
+ parameter: z.ZodOptional<z.ZodString>;
1517
+ }, "strip", z.ZodTypeAny, {
1518
+ pointer?: string | undefined;
1519
+ parameter?: string | undefined;
1520
+ }, {
1521
+ pointer?: string | undefined;
1522
+ parameter?: string | undefined;
1523
+ }>>;
1524
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1525
+ }, "strip", z.ZodTypeAny, {
1526
+ status?: string | undefined;
1527
+ code?: string | undefined;
1528
+ id?: string | undefined;
1529
+ links?: {
1530
+ about?: string | undefined;
1531
+ } | undefined;
1532
+ meta?: Record<string, unknown> | undefined;
1533
+ title?: string | undefined;
1534
+ detail?: string | undefined;
1535
+ source?: {
1536
+ pointer?: string | undefined;
1537
+ parameter?: string | undefined;
1538
+ } | undefined;
1539
+ }, {
1540
+ status?: string | undefined;
1541
+ code?: string | undefined;
1542
+ id?: string | undefined;
1543
+ links?: {
1544
+ about?: string | undefined;
1545
+ } | undefined;
1546
+ meta?: Record<string, unknown> | undefined;
1547
+ title?: string | undefined;
1548
+ detail?: string | undefined;
1549
+ source?: {
1550
+ pointer?: string | undefined;
1551
+ parameter?: string | undefined;
1552
+ } | undefined;
1553
+ }>, "many">;
1554
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ errors: {
1557
+ status?: string | undefined;
1558
+ code?: string | undefined;
1559
+ id?: string | undefined;
1560
+ links?: {
1561
+ about?: string | undefined;
1562
+ } | undefined;
1563
+ meta?: Record<string, unknown> | undefined;
1564
+ title?: string | undefined;
1565
+ detail?: string | undefined;
1566
+ source?: {
1567
+ pointer?: string | undefined;
1568
+ parameter?: string | undefined;
1569
+ } | undefined;
1570
+ }[];
1571
+ meta?: Record<string, unknown> | undefined;
1572
+ }, {
1573
+ errors: {
1574
+ status?: string | undefined;
1575
+ code?: string | undefined;
1576
+ id?: string | undefined;
1577
+ links?: {
1578
+ about?: string | undefined;
1579
+ } | undefined;
1580
+ meta?: Record<string, unknown> | undefined;
1581
+ title?: string | undefined;
1582
+ detail?: string | undefined;
1583
+ source?: {
1584
+ pointer?: string | undefined;
1585
+ parameter?: string | undefined;
1586
+ } | undefined;
1587
+ }[];
1588
+ meta?: Record<string, unknown> | undefined;
1589
+ }>;
1590
+ 401: z.ZodObject<{
1591
+ errors: z.ZodArray<z.ZodObject<{
1592
+ id: z.ZodOptional<z.ZodString>;
1593
+ links: z.ZodOptional<z.ZodObject<{
1594
+ about: z.ZodOptional<z.ZodString>;
1595
+ }, "strip", z.ZodTypeAny, {
1596
+ about?: string | undefined;
1597
+ }, {
1598
+ about?: string | undefined;
1599
+ }>>;
1600
+ status: z.ZodOptional<z.ZodString>;
1601
+ code: z.ZodOptional<z.ZodString>;
1602
+ title: z.ZodOptional<z.ZodString>;
1603
+ detail: z.ZodOptional<z.ZodString>;
1604
+ source: z.ZodOptional<z.ZodObject<{
1605
+ pointer: z.ZodOptional<z.ZodString>;
1606
+ parameter: z.ZodOptional<z.ZodString>;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ pointer?: string | undefined;
1609
+ parameter?: string | undefined;
1610
+ }, {
1611
+ pointer?: string | undefined;
1612
+ parameter?: string | undefined;
1613
+ }>>;
1614
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ status?: string | undefined;
1617
+ code?: string | undefined;
1618
+ id?: string | undefined;
1619
+ links?: {
1620
+ about?: string | undefined;
1621
+ } | undefined;
1622
+ meta?: Record<string, unknown> | undefined;
1623
+ title?: string | undefined;
1624
+ detail?: string | undefined;
1625
+ source?: {
1626
+ pointer?: string | undefined;
1627
+ parameter?: string | undefined;
1628
+ } | undefined;
1629
+ }, {
1630
+ status?: string | undefined;
1631
+ code?: string | undefined;
1632
+ id?: string | undefined;
1633
+ links?: {
1634
+ about?: string | undefined;
1635
+ } | undefined;
1636
+ meta?: Record<string, unknown> | undefined;
1637
+ title?: string | undefined;
1638
+ detail?: string | undefined;
1639
+ source?: {
1640
+ pointer?: string | undefined;
1641
+ parameter?: string | undefined;
1642
+ } | undefined;
1643
+ }>, "many">;
1644
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1645
+ }, "strip", z.ZodTypeAny, {
1646
+ errors: {
1647
+ status?: string | undefined;
1648
+ code?: string | undefined;
1649
+ id?: string | undefined;
1650
+ links?: {
1651
+ about?: string | undefined;
1652
+ } | undefined;
1653
+ meta?: Record<string, unknown> | undefined;
1654
+ title?: string | undefined;
1655
+ detail?: string | undefined;
1656
+ source?: {
1657
+ pointer?: string | undefined;
1658
+ parameter?: string | undefined;
1659
+ } | undefined;
1660
+ }[];
1661
+ meta?: Record<string, unknown> | undefined;
1662
+ }, {
1663
+ errors: {
1664
+ status?: string | undefined;
1665
+ code?: string | undefined;
1666
+ id?: string | undefined;
1667
+ links?: {
1668
+ about?: string | undefined;
1669
+ } | undefined;
1670
+ meta?: Record<string, unknown> | undefined;
1671
+ title?: string | undefined;
1672
+ detail?: string | undefined;
1673
+ source?: {
1674
+ pointer?: string | undefined;
1675
+ parameter?: string | undefined;
1676
+ } | undefined;
1677
+ }[];
1678
+ meta?: Record<string, unknown> | undefined;
1679
+ }>;
1680
+ 403: z.ZodObject<{
1681
+ errors: z.ZodArray<z.ZodObject<{
1682
+ id: z.ZodOptional<z.ZodString>;
1683
+ links: z.ZodOptional<z.ZodObject<{
1684
+ about: z.ZodOptional<z.ZodString>;
1685
+ }, "strip", z.ZodTypeAny, {
1686
+ about?: string | undefined;
1687
+ }, {
1688
+ about?: string | undefined;
1689
+ }>>;
1690
+ status: z.ZodOptional<z.ZodString>;
1691
+ code: z.ZodOptional<z.ZodString>;
1692
+ title: z.ZodOptional<z.ZodString>;
1693
+ detail: z.ZodOptional<z.ZodString>;
1694
+ source: z.ZodOptional<z.ZodObject<{
1695
+ pointer: z.ZodOptional<z.ZodString>;
1696
+ parameter: z.ZodOptional<z.ZodString>;
1697
+ }, "strip", z.ZodTypeAny, {
1698
+ pointer?: string | undefined;
1699
+ parameter?: string | undefined;
1700
+ }, {
1701
+ pointer?: string | undefined;
1702
+ parameter?: string | undefined;
1703
+ }>>;
1704
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1705
+ }, "strip", z.ZodTypeAny, {
1706
+ status?: string | undefined;
1707
+ code?: string | undefined;
1708
+ id?: string | undefined;
1709
+ links?: {
1710
+ about?: string | undefined;
1711
+ } | undefined;
1712
+ meta?: Record<string, unknown> | undefined;
1713
+ title?: string | undefined;
1714
+ detail?: string | undefined;
1715
+ source?: {
1716
+ pointer?: string | undefined;
1717
+ parameter?: string | undefined;
1718
+ } | undefined;
1719
+ }, {
1720
+ status?: string | undefined;
1721
+ code?: string | undefined;
1722
+ id?: string | undefined;
1723
+ links?: {
1724
+ about?: string | undefined;
1725
+ } | undefined;
1726
+ meta?: Record<string, unknown> | undefined;
1727
+ title?: string | undefined;
1728
+ detail?: string | undefined;
1729
+ source?: {
1730
+ pointer?: string | undefined;
1731
+ parameter?: string | undefined;
1732
+ } | undefined;
1733
+ }>, "many">;
1734
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1735
+ }, "strip", z.ZodTypeAny, {
1736
+ errors: {
1737
+ status?: string | undefined;
1738
+ code?: string | undefined;
1739
+ id?: string | undefined;
1740
+ links?: {
1741
+ about?: string | undefined;
1742
+ } | undefined;
1743
+ meta?: Record<string, unknown> | undefined;
1744
+ title?: string | undefined;
1745
+ detail?: string | undefined;
1746
+ source?: {
1747
+ pointer?: string | undefined;
1748
+ parameter?: string | undefined;
1749
+ } | undefined;
1750
+ }[];
1751
+ meta?: Record<string, unknown> | undefined;
1752
+ }, {
1753
+ errors: {
1754
+ status?: string | undefined;
1755
+ code?: string | undefined;
1756
+ id?: string | undefined;
1757
+ links?: {
1758
+ about?: string | undefined;
1759
+ } | undefined;
1760
+ meta?: Record<string, unknown> | undefined;
1761
+ title?: string | undefined;
1762
+ detail?: string | undefined;
1763
+ source?: {
1764
+ pointer?: string | undefined;
1765
+ parameter?: string | undefined;
1766
+ } | undefined;
1767
+ }[];
1768
+ meta?: Record<string, unknown> | undefined;
1769
+ }>;
1770
+ 503: z.ZodObject<{
1771
+ errors: z.ZodArray<z.ZodObject<{
1772
+ id: z.ZodOptional<z.ZodString>;
1773
+ links: z.ZodOptional<z.ZodObject<{
1774
+ about: z.ZodOptional<z.ZodString>;
1775
+ }, "strip", z.ZodTypeAny, {
1776
+ about?: string | undefined;
1777
+ }, {
1778
+ about?: string | undefined;
1779
+ }>>;
1780
+ status: z.ZodOptional<z.ZodString>;
1781
+ code: z.ZodOptional<z.ZodString>;
1782
+ title: z.ZodOptional<z.ZodString>;
1783
+ detail: z.ZodOptional<z.ZodString>;
1784
+ source: z.ZodOptional<z.ZodObject<{
1785
+ pointer: z.ZodOptional<z.ZodString>;
1786
+ parameter: z.ZodOptional<z.ZodString>;
1787
+ }, "strip", z.ZodTypeAny, {
1788
+ pointer?: string | undefined;
1789
+ parameter?: string | undefined;
1790
+ }, {
1791
+ pointer?: string | undefined;
1792
+ parameter?: string | undefined;
1793
+ }>>;
1794
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1795
+ }, "strip", z.ZodTypeAny, {
1796
+ status?: string | undefined;
1797
+ code?: string | undefined;
1798
+ id?: string | undefined;
1799
+ links?: {
1800
+ about?: string | undefined;
1801
+ } | undefined;
1802
+ meta?: Record<string, unknown> | undefined;
1803
+ title?: string | undefined;
1804
+ detail?: string | undefined;
1805
+ source?: {
1806
+ pointer?: string | undefined;
1807
+ parameter?: string | undefined;
1808
+ } | undefined;
1809
+ }, {
1810
+ status?: string | undefined;
1811
+ code?: string | undefined;
1812
+ id?: string | undefined;
1813
+ links?: {
1814
+ about?: string | undefined;
1815
+ } | undefined;
1816
+ meta?: Record<string, unknown> | undefined;
1817
+ title?: string | undefined;
1818
+ detail?: string | undefined;
1819
+ source?: {
1820
+ pointer?: string | undefined;
1821
+ parameter?: string | undefined;
1822
+ } | undefined;
1823
+ }>, "many">;
1824
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1825
+ }, "strip", z.ZodTypeAny, {
1826
+ errors: {
1827
+ status?: string | undefined;
1828
+ code?: string | undefined;
1829
+ id?: string | undefined;
1830
+ links?: {
1831
+ about?: string | undefined;
1832
+ } | undefined;
1833
+ meta?: Record<string, unknown> | undefined;
1834
+ title?: string | undefined;
1835
+ detail?: string | undefined;
1836
+ source?: {
1837
+ pointer?: string | undefined;
1838
+ parameter?: string | undefined;
1839
+ } | undefined;
1840
+ }[];
1841
+ meta?: Record<string, unknown> | undefined;
1842
+ }, {
1843
+ errors: {
1844
+ status?: string | undefined;
1845
+ code?: string | undefined;
1846
+ id?: string | undefined;
1847
+ links?: {
1848
+ about?: string | undefined;
1849
+ } | undefined;
1850
+ meta?: Record<string, unknown> | undefined;
1851
+ title?: string | undefined;
1852
+ detail?: string | undefined;
1853
+ source?: {
1854
+ pointer?: string | undefined;
1855
+ parameter?: string | undefined;
1856
+ } | undefined;
1857
+ }[];
1858
+ meta?: Record<string, unknown> | undefined;
1859
+ }>;
1860
+ };
1861
+ };
1862
+ speak: {
1863
+ pathParams: z.ZodObject<{
1864
+ farmId: z.ZodString;
1865
+ }, "strip", z.ZodTypeAny, {
1866
+ farmId: string;
1867
+ }, {
1868
+ farmId: string;
1869
+ }>;
1870
+ summary: "Read an answer aloud (Spitch TTS, mp3 as base64)";
1871
+ method: "POST";
1872
+ body: z.ZodObject<{
1873
+ text: z.ZodString;
1874
+ language: z.ZodEnum<["en", "yo", "ha", "ig", "pcm"]>;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ language: "en" | "yo" | "ha" | "ig" | "pcm";
1877
+ text: string;
1878
+ }, {
1879
+ language: "en" | "yo" | "ha" | "ig" | "pcm";
1880
+ text: string;
1881
+ }>;
1882
+ path: "/farms/:farmId/voice/speak";
1883
+ responses: {
1884
+ 200: z.ZodObject<{
1885
+ data: z.ZodObject<{
1886
+ audioBase64: z.ZodString;
1887
+ contentType: z.ZodString;
1888
+ }, "strip", z.ZodTypeAny, {
1889
+ contentType: string;
1890
+ audioBase64: string;
1891
+ }, {
1892
+ contentType: string;
1893
+ audioBase64: string;
1894
+ }>;
1895
+ }, "strip", z.ZodTypeAny, {
1896
+ data: {
1897
+ contentType: string;
1898
+ audioBase64: string;
1899
+ };
1900
+ }, {
1901
+ data: {
1902
+ contentType: string;
1903
+ audioBase64: string;
1904
+ };
1905
+ }>;
1906
+ 401: z.ZodObject<{
1907
+ errors: z.ZodArray<z.ZodObject<{
1908
+ id: z.ZodOptional<z.ZodString>;
1909
+ links: z.ZodOptional<z.ZodObject<{
1910
+ about: z.ZodOptional<z.ZodString>;
1911
+ }, "strip", z.ZodTypeAny, {
1912
+ about?: string | undefined;
1913
+ }, {
1914
+ about?: string | undefined;
1915
+ }>>;
1916
+ status: z.ZodOptional<z.ZodString>;
1917
+ code: z.ZodOptional<z.ZodString>;
1918
+ title: z.ZodOptional<z.ZodString>;
1919
+ detail: z.ZodOptional<z.ZodString>;
1920
+ source: z.ZodOptional<z.ZodObject<{
1921
+ pointer: z.ZodOptional<z.ZodString>;
1922
+ parameter: z.ZodOptional<z.ZodString>;
1923
+ }, "strip", z.ZodTypeAny, {
1924
+ pointer?: string | undefined;
1925
+ parameter?: string | undefined;
1926
+ }, {
1927
+ pointer?: string | undefined;
1928
+ parameter?: string | undefined;
1929
+ }>>;
1930
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1931
+ }, "strip", z.ZodTypeAny, {
1932
+ status?: string | undefined;
1933
+ code?: string | undefined;
1934
+ id?: string | undefined;
1935
+ links?: {
1936
+ about?: string | undefined;
1937
+ } | undefined;
1938
+ meta?: Record<string, unknown> | undefined;
1939
+ title?: string | undefined;
1940
+ detail?: string | undefined;
1941
+ source?: {
1942
+ pointer?: string | undefined;
1943
+ parameter?: string | undefined;
1944
+ } | undefined;
1945
+ }, {
1946
+ status?: string | undefined;
1947
+ code?: string | undefined;
1948
+ id?: string | undefined;
1949
+ links?: {
1950
+ about?: string | undefined;
1951
+ } | undefined;
1952
+ meta?: Record<string, unknown> | undefined;
1953
+ title?: string | undefined;
1954
+ detail?: string | undefined;
1955
+ source?: {
1956
+ pointer?: string | undefined;
1957
+ parameter?: string | undefined;
1958
+ } | undefined;
1959
+ }>, "many">;
1960
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1961
+ }, "strip", z.ZodTypeAny, {
1962
+ errors: {
1963
+ status?: string | undefined;
1964
+ code?: string | undefined;
1965
+ id?: string | undefined;
1966
+ links?: {
1967
+ about?: string | undefined;
1968
+ } | undefined;
1969
+ meta?: Record<string, unknown> | undefined;
1970
+ title?: string | undefined;
1971
+ detail?: string | undefined;
1972
+ source?: {
1973
+ pointer?: string | undefined;
1974
+ parameter?: string | undefined;
1975
+ } | undefined;
1976
+ }[];
1977
+ meta?: Record<string, unknown> | undefined;
1978
+ }, {
1979
+ errors: {
1980
+ status?: string | undefined;
1981
+ code?: string | undefined;
1982
+ id?: string | undefined;
1983
+ links?: {
1984
+ about?: string | undefined;
1985
+ } | undefined;
1986
+ meta?: Record<string, unknown> | undefined;
1987
+ title?: string | undefined;
1988
+ detail?: string | undefined;
1989
+ source?: {
1990
+ pointer?: string | undefined;
1991
+ parameter?: string | undefined;
1992
+ } | undefined;
1993
+ }[];
1994
+ meta?: Record<string, unknown> | undefined;
1995
+ }>;
1996
+ 403: z.ZodObject<{
1997
+ errors: z.ZodArray<z.ZodObject<{
1998
+ id: z.ZodOptional<z.ZodString>;
1999
+ links: z.ZodOptional<z.ZodObject<{
2000
+ about: z.ZodOptional<z.ZodString>;
2001
+ }, "strip", z.ZodTypeAny, {
2002
+ about?: string | undefined;
2003
+ }, {
2004
+ about?: string | undefined;
2005
+ }>>;
2006
+ status: z.ZodOptional<z.ZodString>;
2007
+ code: z.ZodOptional<z.ZodString>;
2008
+ title: z.ZodOptional<z.ZodString>;
2009
+ detail: z.ZodOptional<z.ZodString>;
2010
+ source: z.ZodOptional<z.ZodObject<{
2011
+ pointer: z.ZodOptional<z.ZodString>;
2012
+ parameter: z.ZodOptional<z.ZodString>;
2013
+ }, "strip", z.ZodTypeAny, {
2014
+ pointer?: string | undefined;
2015
+ parameter?: string | undefined;
2016
+ }, {
2017
+ pointer?: string | undefined;
2018
+ parameter?: string | undefined;
2019
+ }>>;
2020
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ status?: string | undefined;
2023
+ code?: string | undefined;
2024
+ id?: string | undefined;
2025
+ links?: {
2026
+ about?: string | undefined;
2027
+ } | undefined;
2028
+ meta?: Record<string, unknown> | undefined;
2029
+ title?: string | undefined;
2030
+ detail?: string | undefined;
2031
+ source?: {
2032
+ pointer?: string | undefined;
2033
+ parameter?: string | undefined;
2034
+ } | undefined;
2035
+ }, {
2036
+ status?: string | undefined;
2037
+ code?: string | undefined;
2038
+ id?: string | undefined;
2039
+ links?: {
2040
+ about?: string | undefined;
2041
+ } | undefined;
2042
+ meta?: Record<string, unknown> | undefined;
2043
+ title?: string | undefined;
2044
+ detail?: string | undefined;
2045
+ source?: {
2046
+ pointer?: string | undefined;
2047
+ parameter?: string | undefined;
2048
+ } | undefined;
2049
+ }>, "many">;
2050
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ errors: {
2053
+ status?: string | undefined;
2054
+ code?: string | undefined;
2055
+ id?: string | undefined;
2056
+ links?: {
2057
+ about?: string | undefined;
2058
+ } | undefined;
2059
+ meta?: Record<string, unknown> | undefined;
2060
+ title?: string | undefined;
2061
+ detail?: string | undefined;
2062
+ source?: {
2063
+ pointer?: string | undefined;
2064
+ parameter?: string | undefined;
2065
+ } | undefined;
2066
+ }[];
2067
+ meta?: Record<string, unknown> | undefined;
2068
+ }, {
2069
+ errors: {
2070
+ status?: string | undefined;
2071
+ code?: string | undefined;
2072
+ id?: string | undefined;
2073
+ links?: {
2074
+ about?: string | undefined;
2075
+ } | undefined;
2076
+ meta?: Record<string, unknown> | undefined;
2077
+ title?: string | undefined;
2078
+ detail?: string | undefined;
2079
+ source?: {
2080
+ pointer?: string | undefined;
2081
+ parameter?: string | undefined;
2082
+ } | undefined;
2083
+ }[];
2084
+ meta?: Record<string, unknown> | undefined;
2085
+ }>;
2086
+ 503: z.ZodObject<{
2087
+ errors: z.ZodArray<z.ZodObject<{
2088
+ id: z.ZodOptional<z.ZodString>;
2089
+ links: z.ZodOptional<z.ZodObject<{
2090
+ about: z.ZodOptional<z.ZodString>;
2091
+ }, "strip", z.ZodTypeAny, {
2092
+ about?: string | undefined;
2093
+ }, {
2094
+ about?: string | undefined;
2095
+ }>>;
2096
+ status: z.ZodOptional<z.ZodString>;
2097
+ code: z.ZodOptional<z.ZodString>;
2098
+ title: z.ZodOptional<z.ZodString>;
2099
+ detail: z.ZodOptional<z.ZodString>;
2100
+ source: z.ZodOptional<z.ZodObject<{
2101
+ pointer: z.ZodOptional<z.ZodString>;
2102
+ parameter: z.ZodOptional<z.ZodString>;
2103
+ }, "strip", z.ZodTypeAny, {
2104
+ pointer?: string | undefined;
2105
+ parameter?: string | undefined;
2106
+ }, {
2107
+ pointer?: string | undefined;
2108
+ parameter?: string | undefined;
2109
+ }>>;
2110
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2111
+ }, "strip", z.ZodTypeAny, {
2112
+ status?: string | undefined;
2113
+ code?: string | undefined;
2114
+ id?: string | undefined;
2115
+ links?: {
2116
+ about?: string | undefined;
2117
+ } | undefined;
2118
+ meta?: Record<string, unknown> | undefined;
2119
+ title?: string | undefined;
2120
+ detail?: string | undefined;
2121
+ source?: {
2122
+ pointer?: string | undefined;
2123
+ parameter?: string | undefined;
2124
+ } | undefined;
2125
+ }, {
2126
+ status?: string | undefined;
2127
+ code?: string | undefined;
2128
+ id?: string | undefined;
2129
+ links?: {
2130
+ about?: string | undefined;
2131
+ } | undefined;
2132
+ meta?: Record<string, unknown> | undefined;
2133
+ title?: string | undefined;
2134
+ detail?: string | undefined;
2135
+ source?: {
2136
+ pointer?: string | undefined;
2137
+ parameter?: string | undefined;
2138
+ } | undefined;
2139
+ }>, "many">;
2140
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ errors: {
2143
+ status?: string | undefined;
2144
+ code?: string | undefined;
2145
+ id?: string | undefined;
2146
+ links?: {
2147
+ about?: string | undefined;
2148
+ } | undefined;
2149
+ meta?: Record<string, unknown> | undefined;
2150
+ title?: string | undefined;
2151
+ detail?: string | undefined;
2152
+ source?: {
2153
+ pointer?: string | undefined;
2154
+ parameter?: string | undefined;
2155
+ } | undefined;
2156
+ }[];
2157
+ meta?: Record<string, unknown> | undefined;
2158
+ }, {
2159
+ errors: {
2160
+ status?: string | undefined;
2161
+ code?: string | undefined;
2162
+ id?: string | undefined;
2163
+ links?: {
2164
+ about?: string | undefined;
2165
+ } | undefined;
2166
+ meta?: Record<string, unknown> | undefined;
2167
+ title?: string | undefined;
2168
+ detail?: string | undefined;
2169
+ source?: {
2170
+ pointer?: string | undefined;
2171
+ parameter?: string | undefined;
2172
+ } | undefined;
2173
+ }[];
2174
+ meta?: Record<string, unknown> | undefined;
2175
+ }>;
2176
+ };
2177
+ };
2178
+ linkBank: {
2179
+ pathParams: z.ZodObject<{
2180
+ farmId: z.ZodString;
2181
+ }, "strip", z.ZodTypeAny, {
2182
+ farmId: string;
2183
+ }, {
2184
+ farmId: string;
2185
+ }>;
2186
+ summary: "Exchange a Mono Connect code and start importing statement lines";
2187
+ method: "POST";
2188
+ body: z.ZodObject<{
2189
+ code: z.ZodString;
2190
+ }, "strip", z.ZodTypeAny, {
2191
+ code: string;
2192
+ }, {
2193
+ code: string;
2194
+ }>;
2195
+ path: "/farms/:farmId/bank-feed/link";
2196
+ responses: {
2197
+ 200: z.ZodObject<{
2198
+ data: z.ZodObject<{
2199
+ bankAccountId: z.ZodString;
2200
+ institution: z.ZodString;
2201
+ }, "strip", z.ZodTypeAny, {
2202
+ bankAccountId: string;
2203
+ institution: string;
2204
+ }, {
2205
+ bankAccountId: string;
2206
+ institution: string;
2207
+ }>;
2208
+ }, "strip", z.ZodTypeAny, {
2209
+ data: {
2210
+ bankAccountId: string;
2211
+ institution: string;
2212
+ };
2213
+ }, {
2214
+ data: {
2215
+ bankAccountId: string;
2216
+ institution: string;
2217
+ };
2218
+ }>;
2219
+ 400: z.ZodObject<{
2220
+ errors: z.ZodArray<z.ZodObject<{
2221
+ id: z.ZodOptional<z.ZodString>;
2222
+ links: z.ZodOptional<z.ZodObject<{
2223
+ about: z.ZodOptional<z.ZodString>;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ about?: string | undefined;
2226
+ }, {
2227
+ about?: string | undefined;
2228
+ }>>;
2229
+ status: z.ZodOptional<z.ZodString>;
2230
+ code: z.ZodOptional<z.ZodString>;
2231
+ title: z.ZodOptional<z.ZodString>;
2232
+ detail: z.ZodOptional<z.ZodString>;
2233
+ source: z.ZodOptional<z.ZodObject<{
2234
+ pointer: z.ZodOptional<z.ZodString>;
2235
+ parameter: z.ZodOptional<z.ZodString>;
2236
+ }, "strip", z.ZodTypeAny, {
2237
+ pointer?: string | undefined;
2238
+ parameter?: string | undefined;
2239
+ }, {
2240
+ pointer?: string | undefined;
2241
+ parameter?: string | undefined;
2242
+ }>>;
2243
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2244
+ }, "strip", z.ZodTypeAny, {
2245
+ status?: string | undefined;
2246
+ code?: string | undefined;
2247
+ id?: string | undefined;
2248
+ links?: {
2249
+ about?: string | undefined;
2250
+ } | undefined;
2251
+ meta?: Record<string, unknown> | undefined;
2252
+ title?: string | undefined;
2253
+ detail?: string | undefined;
2254
+ source?: {
2255
+ pointer?: string | undefined;
2256
+ parameter?: string | undefined;
2257
+ } | undefined;
2258
+ }, {
2259
+ status?: string | undefined;
2260
+ code?: string | undefined;
2261
+ id?: string | undefined;
2262
+ links?: {
2263
+ about?: string | undefined;
2264
+ } | undefined;
2265
+ meta?: Record<string, unknown> | undefined;
2266
+ title?: string | undefined;
2267
+ detail?: string | undefined;
2268
+ source?: {
2269
+ pointer?: string | undefined;
2270
+ parameter?: string | undefined;
2271
+ } | undefined;
2272
+ }>, "many">;
2273
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2274
+ }, "strip", z.ZodTypeAny, {
2275
+ errors: {
2276
+ status?: string | undefined;
2277
+ code?: string | undefined;
2278
+ id?: string | undefined;
2279
+ links?: {
2280
+ about?: string | undefined;
2281
+ } | undefined;
2282
+ meta?: Record<string, unknown> | undefined;
2283
+ title?: string | undefined;
2284
+ detail?: string | undefined;
2285
+ source?: {
2286
+ pointer?: string | undefined;
2287
+ parameter?: string | undefined;
2288
+ } | undefined;
2289
+ }[];
2290
+ meta?: Record<string, unknown> | undefined;
2291
+ }, {
2292
+ errors: {
2293
+ status?: string | undefined;
2294
+ code?: string | undefined;
2295
+ id?: string | undefined;
2296
+ links?: {
2297
+ about?: string | undefined;
2298
+ } | undefined;
2299
+ meta?: Record<string, unknown> | undefined;
2300
+ title?: string | undefined;
2301
+ detail?: string | undefined;
2302
+ source?: {
2303
+ pointer?: string | undefined;
2304
+ parameter?: string | undefined;
2305
+ } | undefined;
2306
+ }[];
2307
+ meta?: Record<string, unknown> | undefined;
2308
+ }>;
2309
+ 401: z.ZodObject<{
2310
+ errors: z.ZodArray<z.ZodObject<{
2311
+ id: z.ZodOptional<z.ZodString>;
2312
+ links: z.ZodOptional<z.ZodObject<{
2313
+ about: z.ZodOptional<z.ZodString>;
2314
+ }, "strip", z.ZodTypeAny, {
2315
+ about?: string | undefined;
2316
+ }, {
2317
+ about?: string | undefined;
2318
+ }>>;
2319
+ status: z.ZodOptional<z.ZodString>;
2320
+ code: z.ZodOptional<z.ZodString>;
2321
+ title: z.ZodOptional<z.ZodString>;
2322
+ detail: z.ZodOptional<z.ZodString>;
2323
+ source: z.ZodOptional<z.ZodObject<{
2324
+ pointer: z.ZodOptional<z.ZodString>;
2325
+ parameter: z.ZodOptional<z.ZodString>;
2326
+ }, "strip", z.ZodTypeAny, {
2327
+ pointer?: string | undefined;
2328
+ parameter?: string | undefined;
2329
+ }, {
2330
+ pointer?: string | undefined;
2331
+ parameter?: string | undefined;
2332
+ }>>;
2333
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2334
+ }, "strip", z.ZodTypeAny, {
2335
+ status?: string | undefined;
2336
+ code?: string | undefined;
2337
+ id?: string | undefined;
2338
+ links?: {
2339
+ about?: string | undefined;
2340
+ } | undefined;
2341
+ meta?: Record<string, unknown> | undefined;
2342
+ title?: string | undefined;
2343
+ detail?: string | undefined;
2344
+ source?: {
2345
+ pointer?: string | undefined;
2346
+ parameter?: string | undefined;
2347
+ } | undefined;
2348
+ }, {
2349
+ status?: string | undefined;
2350
+ code?: string | undefined;
2351
+ id?: string | undefined;
2352
+ links?: {
2353
+ about?: string | undefined;
2354
+ } | undefined;
2355
+ meta?: Record<string, unknown> | undefined;
2356
+ title?: string | undefined;
2357
+ detail?: string | undefined;
2358
+ source?: {
2359
+ pointer?: string | undefined;
2360
+ parameter?: string | undefined;
2361
+ } | undefined;
2362
+ }>, "many">;
2363
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ errors: {
2366
+ status?: string | undefined;
2367
+ code?: string | undefined;
2368
+ id?: string | undefined;
2369
+ links?: {
2370
+ about?: string | undefined;
2371
+ } | undefined;
2372
+ meta?: Record<string, unknown> | undefined;
2373
+ title?: string | undefined;
2374
+ detail?: string | undefined;
2375
+ source?: {
2376
+ pointer?: string | undefined;
2377
+ parameter?: string | undefined;
2378
+ } | undefined;
2379
+ }[];
2380
+ meta?: Record<string, unknown> | undefined;
2381
+ }, {
2382
+ errors: {
2383
+ status?: string | undefined;
2384
+ code?: string | undefined;
2385
+ id?: string | undefined;
2386
+ links?: {
2387
+ about?: string | undefined;
2388
+ } | undefined;
2389
+ meta?: Record<string, unknown> | undefined;
2390
+ title?: string | undefined;
2391
+ detail?: string | undefined;
2392
+ source?: {
2393
+ pointer?: string | undefined;
2394
+ parameter?: string | undefined;
2395
+ } | undefined;
2396
+ }[];
2397
+ meta?: Record<string, unknown> | undefined;
2398
+ }>;
2399
+ 403: z.ZodObject<{
2400
+ errors: z.ZodArray<z.ZodObject<{
2401
+ id: z.ZodOptional<z.ZodString>;
2402
+ links: z.ZodOptional<z.ZodObject<{
2403
+ about: z.ZodOptional<z.ZodString>;
2404
+ }, "strip", z.ZodTypeAny, {
2405
+ about?: string | undefined;
2406
+ }, {
2407
+ about?: string | undefined;
2408
+ }>>;
2409
+ status: z.ZodOptional<z.ZodString>;
2410
+ code: z.ZodOptional<z.ZodString>;
2411
+ title: z.ZodOptional<z.ZodString>;
2412
+ detail: z.ZodOptional<z.ZodString>;
2413
+ source: z.ZodOptional<z.ZodObject<{
2414
+ pointer: z.ZodOptional<z.ZodString>;
2415
+ parameter: z.ZodOptional<z.ZodString>;
2416
+ }, "strip", z.ZodTypeAny, {
2417
+ pointer?: string | undefined;
2418
+ parameter?: string | undefined;
2419
+ }, {
2420
+ pointer?: string | undefined;
2421
+ parameter?: string | undefined;
2422
+ }>>;
2423
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2424
+ }, "strip", z.ZodTypeAny, {
2425
+ status?: string | undefined;
2426
+ code?: string | undefined;
2427
+ id?: string | undefined;
2428
+ links?: {
2429
+ about?: string | undefined;
2430
+ } | undefined;
2431
+ meta?: Record<string, unknown> | undefined;
2432
+ title?: string | undefined;
2433
+ detail?: string | undefined;
2434
+ source?: {
2435
+ pointer?: string | undefined;
2436
+ parameter?: string | undefined;
2437
+ } | undefined;
2438
+ }, {
2439
+ status?: string | undefined;
2440
+ code?: string | undefined;
2441
+ id?: string | undefined;
2442
+ links?: {
2443
+ about?: string | undefined;
2444
+ } | undefined;
2445
+ meta?: Record<string, unknown> | undefined;
2446
+ title?: string | undefined;
2447
+ detail?: string | undefined;
2448
+ source?: {
2449
+ pointer?: string | undefined;
2450
+ parameter?: string | undefined;
2451
+ } | undefined;
2452
+ }>, "many">;
2453
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2454
+ }, "strip", z.ZodTypeAny, {
2455
+ errors: {
2456
+ status?: string | undefined;
2457
+ code?: string | undefined;
2458
+ id?: string | undefined;
2459
+ links?: {
2460
+ about?: string | undefined;
2461
+ } | undefined;
2462
+ meta?: Record<string, unknown> | undefined;
2463
+ title?: string | undefined;
2464
+ detail?: string | undefined;
2465
+ source?: {
2466
+ pointer?: string | undefined;
2467
+ parameter?: string | undefined;
2468
+ } | undefined;
2469
+ }[];
2470
+ meta?: Record<string, unknown> | undefined;
2471
+ }, {
2472
+ errors: {
2473
+ status?: string | undefined;
2474
+ code?: string | undefined;
2475
+ id?: string | undefined;
2476
+ links?: {
2477
+ about?: string | undefined;
2478
+ } | undefined;
2479
+ meta?: Record<string, unknown> | undefined;
2480
+ title?: string | undefined;
2481
+ detail?: string | undefined;
2482
+ source?: {
2483
+ pointer?: string | undefined;
2484
+ parameter?: string | undefined;
2485
+ } | undefined;
2486
+ }[];
2487
+ meta?: Record<string, unknown> | undefined;
2488
+ }>;
2489
+ 503: z.ZodObject<{
2490
+ errors: z.ZodArray<z.ZodObject<{
2491
+ id: z.ZodOptional<z.ZodString>;
2492
+ links: z.ZodOptional<z.ZodObject<{
2493
+ about: z.ZodOptional<z.ZodString>;
2494
+ }, "strip", z.ZodTypeAny, {
2495
+ about?: string | undefined;
2496
+ }, {
2497
+ about?: string | undefined;
2498
+ }>>;
2499
+ status: z.ZodOptional<z.ZodString>;
2500
+ code: z.ZodOptional<z.ZodString>;
2501
+ title: z.ZodOptional<z.ZodString>;
2502
+ detail: z.ZodOptional<z.ZodString>;
2503
+ source: z.ZodOptional<z.ZodObject<{
2504
+ pointer: z.ZodOptional<z.ZodString>;
2505
+ parameter: z.ZodOptional<z.ZodString>;
2506
+ }, "strip", z.ZodTypeAny, {
2507
+ pointer?: string | undefined;
2508
+ parameter?: string | undefined;
2509
+ }, {
2510
+ pointer?: string | undefined;
2511
+ parameter?: string | undefined;
2512
+ }>>;
2513
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2514
+ }, "strip", z.ZodTypeAny, {
2515
+ status?: string | undefined;
2516
+ code?: string | undefined;
2517
+ id?: string | undefined;
2518
+ links?: {
2519
+ about?: string | undefined;
2520
+ } | undefined;
2521
+ meta?: Record<string, unknown> | undefined;
2522
+ title?: string | undefined;
2523
+ detail?: string | undefined;
2524
+ source?: {
2525
+ pointer?: string | undefined;
2526
+ parameter?: string | undefined;
2527
+ } | undefined;
2528
+ }, {
2529
+ status?: string | undefined;
2530
+ code?: string | undefined;
2531
+ id?: string | undefined;
2532
+ links?: {
2533
+ about?: string | undefined;
2534
+ } | undefined;
2535
+ meta?: Record<string, unknown> | undefined;
2536
+ title?: string | undefined;
2537
+ detail?: string | undefined;
2538
+ source?: {
2539
+ pointer?: string | undefined;
2540
+ parameter?: string | undefined;
2541
+ } | undefined;
2542
+ }>, "many">;
2543
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2544
+ }, "strip", z.ZodTypeAny, {
2545
+ errors: {
2546
+ status?: string | undefined;
2547
+ code?: string | undefined;
2548
+ id?: string | undefined;
2549
+ links?: {
2550
+ about?: string | undefined;
2551
+ } | undefined;
2552
+ meta?: Record<string, unknown> | undefined;
2553
+ title?: string | undefined;
2554
+ detail?: string | undefined;
2555
+ source?: {
2556
+ pointer?: string | undefined;
2557
+ parameter?: string | undefined;
2558
+ } | undefined;
2559
+ }[];
2560
+ meta?: Record<string, unknown> | undefined;
2561
+ }, {
2562
+ errors: {
2563
+ status?: string | undefined;
2564
+ code?: string | undefined;
2565
+ id?: string | undefined;
2566
+ links?: {
2567
+ about?: string | undefined;
2568
+ } | undefined;
2569
+ meta?: Record<string, unknown> | undefined;
2570
+ title?: string | undefined;
2571
+ detail?: string | undefined;
2572
+ source?: {
2573
+ pointer?: string | undefined;
2574
+ parameter?: string | undefined;
2575
+ } | undefined;
2576
+ }[];
2577
+ meta?: Record<string, unknown> | undefined;
2578
+ }>;
2579
+ };
2580
+ };
2581
+ startBankLink: {
2582
+ pathParams: z.ZodObject<{
2583
+ farmId: z.ZodString;
2584
+ }, "strip", z.ZodTypeAny, {
2585
+ farmId: string;
2586
+ }, {
2587
+ farmId: string;
2588
+ }>;
2589
+ summary: "Start a hosted Mono bank link (records consent); linking finishes via webhook";
2590
+ method: "POST";
2591
+ body: z.ZodObject<{
2592
+ consent: z.ZodLiteral<true>;
2593
+ redirectUrl: z.ZodOptional<z.ZodString>;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ consent: true;
2596
+ redirectUrl?: string | undefined;
2597
+ }, {
2598
+ consent: true;
2599
+ redirectUrl?: string | undefined;
2600
+ }>;
2601
+ path: "/farms/:farmId/bank-feed/link/start";
2602
+ responses: {
2603
+ 200: z.ZodObject<{
2604
+ data: z.ZodObject<{
2605
+ monoUrl: z.ZodString;
2606
+ }, "strip", z.ZodTypeAny, {
2607
+ monoUrl: string;
2608
+ }, {
2609
+ monoUrl: string;
2610
+ }>;
2611
+ }, "strip", z.ZodTypeAny, {
2612
+ data: {
2613
+ monoUrl: string;
2614
+ };
2615
+ }, {
2616
+ data: {
2617
+ monoUrl: string;
2618
+ };
2619
+ }>;
2620
+ 400: z.ZodObject<{
2621
+ errors: z.ZodArray<z.ZodObject<{
2622
+ id: z.ZodOptional<z.ZodString>;
2623
+ links: z.ZodOptional<z.ZodObject<{
2624
+ about: z.ZodOptional<z.ZodString>;
2625
+ }, "strip", z.ZodTypeAny, {
2626
+ about?: string | undefined;
2627
+ }, {
2628
+ about?: string | undefined;
2629
+ }>>;
2630
+ status: z.ZodOptional<z.ZodString>;
2631
+ code: z.ZodOptional<z.ZodString>;
2632
+ title: z.ZodOptional<z.ZodString>;
2633
+ detail: z.ZodOptional<z.ZodString>;
2634
+ source: z.ZodOptional<z.ZodObject<{
2635
+ pointer: z.ZodOptional<z.ZodString>;
2636
+ parameter: z.ZodOptional<z.ZodString>;
2637
+ }, "strip", z.ZodTypeAny, {
2638
+ pointer?: string | undefined;
2639
+ parameter?: string | undefined;
2640
+ }, {
2641
+ pointer?: string | undefined;
2642
+ parameter?: string | undefined;
2643
+ }>>;
2644
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2645
+ }, "strip", z.ZodTypeAny, {
2646
+ status?: string | undefined;
2647
+ code?: string | undefined;
2648
+ id?: string | undefined;
2649
+ links?: {
2650
+ about?: string | undefined;
2651
+ } | undefined;
2652
+ meta?: Record<string, unknown> | undefined;
2653
+ title?: string | undefined;
2654
+ detail?: string | undefined;
2655
+ source?: {
2656
+ pointer?: string | undefined;
2657
+ parameter?: string | undefined;
2658
+ } | undefined;
2659
+ }, {
2660
+ status?: string | undefined;
2661
+ code?: string | undefined;
2662
+ id?: string | undefined;
2663
+ links?: {
2664
+ about?: string | undefined;
2665
+ } | undefined;
2666
+ meta?: Record<string, unknown> | undefined;
2667
+ title?: string | undefined;
2668
+ detail?: string | undefined;
2669
+ source?: {
2670
+ pointer?: string | undefined;
2671
+ parameter?: string | undefined;
2672
+ } | undefined;
2673
+ }>, "many">;
2674
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2675
+ }, "strip", z.ZodTypeAny, {
2676
+ errors: {
2677
+ status?: string | undefined;
2678
+ code?: string | undefined;
2679
+ id?: string | undefined;
2680
+ links?: {
2681
+ about?: string | undefined;
2682
+ } | undefined;
2683
+ meta?: Record<string, unknown> | undefined;
2684
+ title?: string | undefined;
2685
+ detail?: string | undefined;
2686
+ source?: {
2687
+ pointer?: string | undefined;
2688
+ parameter?: string | undefined;
2689
+ } | undefined;
2690
+ }[];
2691
+ meta?: Record<string, unknown> | undefined;
2692
+ }, {
2693
+ errors: {
2694
+ status?: string | undefined;
2695
+ code?: string | undefined;
2696
+ id?: string | undefined;
2697
+ links?: {
2698
+ about?: string | undefined;
2699
+ } | undefined;
2700
+ meta?: Record<string, unknown> | undefined;
2701
+ title?: string | undefined;
2702
+ detail?: string | undefined;
2703
+ source?: {
2704
+ pointer?: string | undefined;
2705
+ parameter?: string | undefined;
2706
+ } | undefined;
2707
+ }[];
2708
+ meta?: Record<string, unknown> | undefined;
2709
+ }>;
2710
+ 401: z.ZodObject<{
2711
+ errors: z.ZodArray<z.ZodObject<{
2712
+ id: z.ZodOptional<z.ZodString>;
2713
+ links: z.ZodOptional<z.ZodObject<{
2714
+ about: z.ZodOptional<z.ZodString>;
2715
+ }, "strip", z.ZodTypeAny, {
2716
+ about?: string | undefined;
2717
+ }, {
2718
+ about?: string | undefined;
2719
+ }>>;
2720
+ status: z.ZodOptional<z.ZodString>;
2721
+ code: z.ZodOptional<z.ZodString>;
2722
+ title: z.ZodOptional<z.ZodString>;
2723
+ detail: z.ZodOptional<z.ZodString>;
2724
+ source: z.ZodOptional<z.ZodObject<{
2725
+ pointer: z.ZodOptional<z.ZodString>;
2726
+ parameter: z.ZodOptional<z.ZodString>;
2727
+ }, "strip", z.ZodTypeAny, {
2728
+ pointer?: string | undefined;
2729
+ parameter?: string | undefined;
2730
+ }, {
2731
+ pointer?: string | undefined;
2732
+ parameter?: string | undefined;
2733
+ }>>;
2734
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2735
+ }, "strip", z.ZodTypeAny, {
2736
+ status?: string | undefined;
2737
+ code?: string | undefined;
2738
+ id?: string | undefined;
2739
+ links?: {
2740
+ about?: string | undefined;
2741
+ } | undefined;
2742
+ meta?: Record<string, unknown> | undefined;
2743
+ title?: string | undefined;
2744
+ detail?: string | undefined;
2745
+ source?: {
2746
+ pointer?: string | undefined;
2747
+ parameter?: string | undefined;
2748
+ } | undefined;
2749
+ }, {
2750
+ status?: string | undefined;
2751
+ code?: string | undefined;
2752
+ id?: string | undefined;
2753
+ links?: {
2754
+ about?: string | undefined;
2755
+ } | undefined;
2756
+ meta?: Record<string, unknown> | undefined;
2757
+ title?: string | undefined;
2758
+ detail?: string | undefined;
2759
+ source?: {
2760
+ pointer?: string | undefined;
2761
+ parameter?: string | undefined;
2762
+ } | undefined;
2763
+ }>, "many">;
2764
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2765
+ }, "strip", z.ZodTypeAny, {
2766
+ errors: {
2767
+ status?: string | undefined;
2768
+ code?: string | undefined;
2769
+ id?: string | undefined;
2770
+ links?: {
2771
+ about?: string | undefined;
2772
+ } | undefined;
2773
+ meta?: Record<string, unknown> | undefined;
2774
+ title?: string | undefined;
2775
+ detail?: string | undefined;
2776
+ source?: {
2777
+ pointer?: string | undefined;
2778
+ parameter?: string | undefined;
2779
+ } | undefined;
2780
+ }[];
2781
+ meta?: Record<string, unknown> | undefined;
2782
+ }, {
2783
+ errors: {
2784
+ status?: string | undefined;
2785
+ code?: string | undefined;
2786
+ id?: string | undefined;
2787
+ links?: {
2788
+ about?: string | undefined;
2789
+ } | undefined;
2790
+ meta?: Record<string, unknown> | undefined;
2791
+ title?: string | undefined;
2792
+ detail?: string | undefined;
2793
+ source?: {
2794
+ pointer?: string | undefined;
2795
+ parameter?: string | undefined;
2796
+ } | undefined;
2797
+ }[];
2798
+ meta?: Record<string, unknown> | undefined;
2799
+ }>;
2800
+ 403: z.ZodObject<{
2801
+ errors: z.ZodArray<z.ZodObject<{
2802
+ id: z.ZodOptional<z.ZodString>;
2803
+ links: z.ZodOptional<z.ZodObject<{
2804
+ about: z.ZodOptional<z.ZodString>;
2805
+ }, "strip", z.ZodTypeAny, {
2806
+ about?: string | undefined;
2807
+ }, {
2808
+ about?: string | undefined;
2809
+ }>>;
2810
+ status: z.ZodOptional<z.ZodString>;
2811
+ code: z.ZodOptional<z.ZodString>;
2812
+ title: z.ZodOptional<z.ZodString>;
2813
+ detail: z.ZodOptional<z.ZodString>;
2814
+ source: z.ZodOptional<z.ZodObject<{
2815
+ pointer: z.ZodOptional<z.ZodString>;
2816
+ parameter: z.ZodOptional<z.ZodString>;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ pointer?: string | undefined;
2819
+ parameter?: string | undefined;
2820
+ }, {
2821
+ pointer?: string | undefined;
2822
+ parameter?: string | undefined;
2823
+ }>>;
2824
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2825
+ }, "strip", z.ZodTypeAny, {
2826
+ status?: string | undefined;
2827
+ code?: string | undefined;
2828
+ id?: string | undefined;
2829
+ links?: {
2830
+ about?: string | undefined;
2831
+ } | undefined;
2832
+ meta?: Record<string, unknown> | undefined;
2833
+ title?: string | undefined;
2834
+ detail?: string | undefined;
2835
+ source?: {
2836
+ pointer?: string | undefined;
2837
+ parameter?: string | undefined;
2838
+ } | undefined;
2839
+ }, {
2840
+ status?: string | undefined;
2841
+ code?: string | undefined;
2842
+ id?: string | undefined;
2843
+ links?: {
2844
+ about?: string | undefined;
2845
+ } | undefined;
2846
+ meta?: Record<string, unknown> | undefined;
2847
+ title?: string | undefined;
2848
+ detail?: string | undefined;
2849
+ source?: {
2850
+ pointer?: string | undefined;
2851
+ parameter?: string | undefined;
2852
+ } | undefined;
2853
+ }>, "many">;
2854
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2855
+ }, "strip", z.ZodTypeAny, {
2856
+ errors: {
2857
+ status?: string | undefined;
2858
+ code?: string | undefined;
2859
+ id?: string | undefined;
2860
+ links?: {
2861
+ about?: string | undefined;
2862
+ } | undefined;
2863
+ meta?: Record<string, unknown> | undefined;
2864
+ title?: string | undefined;
2865
+ detail?: string | undefined;
2866
+ source?: {
2867
+ pointer?: string | undefined;
2868
+ parameter?: string | undefined;
2869
+ } | undefined;
2870
+ }[];
2871
+ meta?: Record<string, unknown> | undefined;
2872
+ }, {
2873
+ errors: {
2874
+ status?: string | undefined;
2875
+ code?: string | undefined;
2876
+ id?: string | undefined;
2877
+ links?: {
2878
+ about?: string | undefined;
2879
+ } | undefined;
2880
+ meta?: Record<string, unknown> | undefined;
2881
+ title?: string | undefined;
2882
+ detail?: string | undefined;
2883
+ source?: {
2884
+ pointer?: string | undefined;
2885
+ parameter?: string | undefined;
2886
+ } | undefined;
2887
+ }[];
2888
+ meta?: Record<string, unknown> | undefined;
2889
+ }>;
2890
+ 503: z.ZodObject<{
2891
+ errors: z.ZodArray<z.ZodObject<{
2892
+ id: z.ZodOptional<z.ZodString>;
2893
+ links: z.ZodOptional<z.ZodObject<{
2894
+ about: z.ZodOptional<z.ZodString>;
2895
+ }, "strip", z.ZodTypeAny, {
2896
+ about?: string | undefined;
2897
+ }, {
2898
+ about?: string | undefined;
2899
+ }>>;
2900
+ status: z.ZodOptional<z.ZodString>;
2901
+ code: z.ZodOptional<z.ZodString>;
2902
+ title: z.ZodOptional<z.ZodString>;
2903
+ detail: z.ZodOptional<z.ZodString>;
2904
+ source: z.ZodOptional<z.ZodObject<{
2905
+ pointer: z.ZodOptional<z.ZodString>;
2906
+ parameter: z.ZodOptional<z.ZodString>;
2907
+ }, "strip", z.ZodTypeAny, {
2908
+ pointer?: string | undefined;
2909
+ parameter?: string | undefined;
2910
+ }, {
2911
+ pointer?: string | undefined;
2912
+ parameter?: string | undefined;
2913
+ }>>;
2914
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2915
+ }, "strip", z.ZodTypeAny, {
2916
+ status?: string | undefined;
2917
+ code?: string | undefined;
2918
+ id?: string | undefined;
2919
+ links?: {
2920
+ about?: string | undefined;
2921
+ } | undefined;
2922
+ meta?: Record<string, unknown> | undefined;
2923
+ title?: string | undefined;
2924
+ detail?: string | undefined;
2925
+ source?: {
2926
+ pointer?: string | undefined;
2927
+ parameter?: string | undefined;
2928
+ } | undefined;
2929
+ }, {
2930
+ status?: string | undefined;
2931
+ code?: string | undefined;
2932
+ id?: string | undefined;
2933
+ links?: {
2934
+ about?: string | undefined;
2935
+ } | undefined;
2936
+ meta?: Record<string, unknown> | undefined;
2937
+ title?: string | undefined;
2938
+ detail?: string | undefined;
2939
+ source?: {
2940
+ pointer?: string | undefined;
2941
+ parameter?: string | undefined;
2942
+ } | undefined;
2943
+ }>, "many">;
2944
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2945
+ }, "strip", z.ZodTypeAny, {
2946
+ errors: {
2947
+ status?: string | undefined;
2948
+ code?: string | undefined;
2949
+ id?: string | undefined;
2950
+ links?: {
2951
+ about?: string | undefined;
2952
+ } | undefined;
2953
+ meta?: Record<string, unknown> | undefined;
2954
+ title?: string | undefined;
2955
+ detail?: string | undefined;
2956
+ source?: {
2957
+ pointer?: string | undefined;
2958
+ parameter?: string | undefined;
2959
+ } | undefined;
2960
+ }[];
2961
+ meta?: Record<string, unknown> | undefined;
2962
+ }, {
2963
+ errors: {
2964
+ status?: string | undefined;
2965
+ code?: string | undefined;
2966
+ id?: string | undefined;
2967
+ links?: {
2968
+ about?: string | undefined;
2969
+ } | undefined;
2970
+ meta?: Record<string, unknown> | undefined;
2971
+ title?: string | undefined;
2972
+ detail?: string | undefined;
2973
+ source?: {
2974
+ pointer?: string | undefined;
2975
+ parameter?: string | undefined;
2976
+ } | undefined;
2977
+ }[];
2978
+ meta?: Record<string, unknown> | undefined;
2979
+ }>;
2980
+ };
2981
+ };
2982
+ listBankLines: {
2983
+ pathParams: z.ZodObject<{
2984
+ farmId: z.ZodString;
2985
+ }, "strip", z.ZodTypeAny, {
2986
+ farmId: string;
2987
+ }, {
2988
+ farmId: string;
2989
+ }>;
2990
+ summary: "Unreviewed Mono bank lines waiting for accept/ignore";
2991
+ method: "GET";
2992
+ path: "/farms/:farmId/bank-feed/pending";
2993
+ responses: {
2994
+ 200: z.ZodObject<{
2995
+ data: z.ZodArray<z.ZodObject<{
2996
+ id: z.ZodString;
2997
+ transactionDate: z.ZodString;
2998
+ description: z.ZodString;
2999
+ amount: z.ZodNumber;
3000
+ suggestedWorkspace: z.ZodNullable<z.ZodString>;
3001
+ suggestedCategory: z.ZodNullable<z.ZodString>;
3002
+ suggestionConfidence: z.ZodNullable<z.ZodNumber>;
3003
+ suggestionReason: z.ZodNullable<z.ZodString>;
3004
+ reviewStatus: z.ZodString;
3005
+ }, "strip", z.ZodTypeAny, {
3006
+ id: string;
3007
+ description: string;
3008
+ amount: number;
3009
+ suggestedCategory: string | null;
3010
+ transactionDate: string;
3011
+ suggestedWorkspace: string | null;
3012
+ suggestionConfidence: number | null;
3013
+ suggestionReason: string | null;
3014
+ reviewStatus: string;
3015
+ }, {
3016
+ id: string;
3017
+ description: string;
3018
+ amount: number;
3019
+ suggestedCategory: string | null;
3020
+ transactionDate: string;
3021
+ suggestedWorkspace: string | null;
3022
+ suggestionConfidence: number | null;
3023
+ suggestionReason: string | null;
3024
+ reviewStatus: string;
3025
+ }>, "many">;
3026
+ }, "strip", z.ZodTypeAny, {
3027
+ data: {
3028
+ id: string;
3029
+ description: string;
3030
+ amount: number;
3031
+ suggestedCategory: string | null;
3032
+ transactionDate: string;
3033
+ suggestedWorkspace: string | null;
3034
+ suggestionConfidence: number | null;
3035
+ suggestionReason: string | null;
3036
+ reviewStatus: string;
3037
+ }[];
3038
+ }, {
3039
+ data: {
3040
+ id: string;
3041
+ description: string;
3042
+ amount: number;
3043
+ suggestedCategory: string | null;
3044
+ transactionDate: string;
3045
+ suggestedWorkspace: string | null;
3046
+ suggestionConfidence: number | null;
3047
+ suggestionReason: string | null;
3048
+ reviewStatus: string;
3049
+ }[];
3050
+ }>;
3051
+ 401: z.ZodObject<{
3052
+ errors: z.ZodArray<z.ZodObject<{
3053
+ id: z.ZodOptional<z.ZodString>;
3054
+ links: z.ZodOptional<z.ZodObject<{
3055
+ about: z.ZodOptional<z.ZodString>;
3056
+ }, "strip", z.ZodTypeAny, {
3057
+ about?: string | undefined;
3058
+ }, {
3059
+ about?: string | undefined;
3060
+ }>>;
3061
+ status: z.ZodOptional<z.ZodString>;
3062
+ code: z.ZodOptional<z.ZodString>;
3063
+ title: z.ZodOptional<z.ZodString>;
3064
+ detail: z.ZodOptional<z.ZodString>;
3065
+ source: z.ZodOptional<z.ZodObject<{
3066
+ pointer: z.ZodOptional<z.ZodString>;
3067
+ parameter: z.ZodOptional<z.ZodString>;
3068
+ }, "strip", z.ZodTypeAny, {
3069
+ pointer?: string | undefined;
3070
+ parameter?: string | undefined;
3071
+ }, {
3072
+ pointer?: string | undefined;
3073
+ parameter?: string | undefined;
3074
+ }>>;
3075
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3076
+ }, "strip", z.ZodTypeAny, {
3077
+ status?: string | undefined;
3078
+ code?: string | undefined;
3079
+ id?: string | undefined;
3080
+ links?: {
3081
+ about?: string | undefined;
3082
+ } | undefined;
3083
+ meta?: Record<string, unknown> | undefined;
3084
+ title?: string | undefined;
3085
+ detail?: string | undefined;
3086
+ source?: {
3087
+ pointer?: string | undefined;
3088
+ parameter?: string | undefined;
3089
+ } | undefined;
3090
+ }, {
3091
+ status?: string | undefined;
3092
+ code?: string | undefined;
3093
+ id?: string | undefined;
3094
+ links?: {
3095
+ about?: string | undefined;
3096
+ } | undefined;
3097
+ meta?: Record<string, unknown> | undefined;
3098
+ title?: string | undefined;
3099
+ detail?: string | undefined;
3100
+ source?: {
3101
+ pointer?: string | undefined;
3102
+ parameter?: string | undefined;
3103
+ } | undefined;
3104
+ }>, "many">;
3105
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3106
+ }, "strip", z.ZodTypeAny, {
3107
+ errors: {
3108
+ status?: string | undefined;
3109
+ code?: string | undefined;
3110
+ id?: string | undefined;
3111
+ links?: {
3112
+ about?: string | undefined;
3113
+ } | undefined;
3114
+ meta?: Record<string, unknown> | undefined;
3115
+ title?: string | undefined;
3116
+ detail?: string | undefined;
3117
+ source?: {
3118
+ pointer?: string | undefined;
3119
+ parameter?: string | undefined;
3120
+ } | undefined;
3121
+ }[];
3122
+ meta?: Record<string, unknown> | undefined;
3123
+ }, {
3124
+ errors: {
3125
+ status?: string | undefined;
3126
+ code?: string | undefined;
3127
+ id?: string | undefined;
3128
+ links?: {
3129
+ about?: string | undefined;
3130
+ } | undefined;
3131
+ meta?: Record<string, unknown> | undefined;
3132
+ title?: string | undefined;
3133
+ detail?: string | undefined;
3134
+ source?: {
3135
+ pointer?: string | undefined;
3136
+ parameter?: string | undefined;
3137
+ } | undefined;
3138
+ }[];
3139
+ meta?: Record<string, unknown> | undefined;
3140
+ }>;
3141
+ 403: z.ZodObject<{
3142
+ errors: z.ZodArray<z.ZodObject<{
3143
+ id: z.ZodOptional<z.ZodString>;
3144
+ links: z.ZodOptional<z.ZodObject<{
3145
+ about: z.ZodOptional<z.ZodString>;
3146
+ }, "strip", z.ZodTypeAny, {
3147
+ about?: string | undefined;
3148
+ }, {
3149
+ about?: string | undefined;
3150
+ }>>;
3151
+ status: z.ZodOptional<z.ZodString>;
3152
+ code: z.ZodOptional<z.ZodString>;
3153
+ title: z.ZodOptional<z.ZodString>;
3154
+ detail: z.ZodOptional<z.ZodString>;
3155
+ source: z.ZodOptional<z.ZodObject<{
3156
+ pointer: z.ZodOptional<z.ZodString>;
3157
+ parameter: z.ZodOptional<z.ZodString>;
3158
+ }, "strip", z.ZodTypeAny, {
3159
+ pointer?: string | undefined;
3160
+ parameter?: string | undefined;
3161
+ }, {
3162
+ pointer?: string | undefined;
3163
+ parameter?: string | undefined;
3164
+ }>>;
3165
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3166
+ }, "strip", z.ZodTypeAny, {
3167
+ status?: string | undefined;
3168
+ code?: string | undefined;
3169
+ id?: string | undefined;
3170
+ links?: {
3171
+ about?: string | undefined;
3172
+ } | undefined;
3173
+ meta?: Record<string, unknown> | undefined;
3174
+ title?: string | undefined;
3175
+ detail?: string | undefined;
3176
+ source?: {
3177
+ pointer?: string | undefined;
3178
+ parameter?: string | undefined;
3179
+ } | undefined;
3180
+ }, {
3181
+ status?: string | undefined;
3182
+ code?: string | undefined;
3183
+ id?: string | undefined;
3184
+ links?: {
3185
+ about?: string | undefined;
3186
+ } | undefined;
3187
+ meta?: Record<string, unknown> | undefined;
3188
+ title?: string | undefined;
3189
+ detail?: string | undefined;
3190
+ source?: {
3191
+ pointer?: string | undefined;
3192
+ parameter?: string | undefined;
3193
+ } | undefined;
3194
+ }>, "many">;
3195
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ errors: {
3198
+ status?: string | undefined;
3199
+ code?: string | undefined;
3200
+ id?: string | undefined;
3201
+ links?: {
3202
+ about?: string | undefined;
3203
+ } | undefined;
3204
+ meta?: Record<string, unknown> | undefined;
3205
+ title?: string | undefined;
3206
+ detail?: string | undefined;
3207
+ source?: {
3208
+ pointer?: string | undefined;
3209
+ parameter?: string | undefined;
3210
+ } | undefined;
3211
+ }[];
3212
+ meta?: Record<string, unknown> | undefined;
3213
+ }, {
3214
+ errors: {
3215
+ status?: string | undefined;
3216
+ code?: string | undefined;
3217
+ id?: string | undefined;
3218
+ links?: {
3219
+ about?: string | undefined;
3220
+ } | undefined;
3221
+ meta?: Record<string, unknown> | undefined;
3222
+ title?: string | undefined;
3223
+ detail?: string | undefined;
3224
+ source?: {
3225
+ pointer?: string | undefined;
3226
+ parameter?: string | undefined;
3227
+ } | undefined;
3228
+ }[];
3229
+ meta?: Record<string, unknown> | undefined;
3230
+ }>;
3231
+ };
3232
+ };
3233
+ acceptBankLine: {
3234
+ pathParams: z.ZodObject<{
3235
+ farmId: z.ZodString;
3236
+ lineId: z.ZodString;
3237
+ }, "strip", z.ZodTypeAny, {
3238
+ farmId: string;
3239
+ lineId: string;
3240
+ }, {
3241
+ farmId: string;
3242
+ lineId: string;
3243
+ }>;
3244
+ summary: "Accept a suggested categorisation and create the expense or revenue";
3245
+ method: "POST";
3246
+ body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
3247
+ path: "/farms/:farmId/bank-feed/lines/:lineId/accept";
3248
+ responses: {
3249
+ 200: z.ZodObject<{
3250
+ data: z.ZodObject<{
3251
+ id: z.ZodString;
3252
+ transactionDate: z.ZodString;
3253
+ description: z.ZodString;
3254
+ amount: z.ZodNumber;
3255
+ suggestedWorkspace: z.ZodNullable<z.ZodString>;
3256
+ suggestedCategory: z.ZodNullable<z.ZodString>;
3257
+ suggestionConfidence: z.ZodNullable<z.ZodNumber>;
3258
+ suggestionReason: z.ZodNullable<z.ZodString>;
3259
+ reviewStatus: z.ZodString;
3260
+ }, "strip", z.ZodTypeAny, {
3261
+ id: string;
3262
+ description: string;
3263
+ amount: number;
3264
+ suggestedCategory: string | null;
3265
+ transactionDate: string;
3266
+ suggestedWorkspace: string | null;
3267
+ suggestionConfidence: number | null;
3268
+ suggestionReason: string | null;
3269
+ reviewStatus: string;
3270
+ }, {
3271
+ id: string;
3272
+ description: string;
3273
+ amount: number;
3274
+ suggestedCategory: string | null;
3275
+ transactionDate: string;
3276
+ suggestedWorkspace: string | null;
3277
+ suggestionConfidence: number | null;
3278
+ suggestionReason: string | null;
3279
+ reviewStatus: string;
3280
+ }>;
3281
+ }, "strip", z.ZodTypeAny, {
3282
+ data: {
3283
+ id: string;
3284
+ description: string;
3285
+ amount: number;
3286
+ suggestedCategory: string | null;
3287
+ transactionDate: string;
3288
+ suggestedWorkspace: string | null;
3289
+ suggestionConfidence: number | null;
3290
+ suggestionReason: string | null;
3291
+ reviewStatus: string;
3292
+ };
3293
+ }, {
3294
+ data: {
3295
+ id: string;
3296
+ description: string;
3297
+ amount: number;
3298
+ suggestedCategory: string | null;
3299
+ transactionDate: string;
3300
+ suggestedWorkspace: string | null;
3301
+ suggestionConfidence: number | null;
3302
+ suggestionReason: string | null;
3303
+ reviewStatus: string;
3304
+ };
3305
+ }>;
3306
+ 401: z.ZodObject<{
3307
+ errors: z.ZodArray<z.ZodObject<{
3308
+ id: z.ZodOptional<z.ZodString>;
3309
+ links: z.ZodOptional<z.ZodObject<{
3310
+ about: z.ZodOptional<z.ZodString>;
3311
+ }, "strip", z.ZodTypeAny, {
3312
+ about?: string | undefined;
3313
+ }, {
3314
+ about?: string | undefined;
3315
+ }>>;
3316
+ status: z.ZodOptional<z.ZodString>;
3317
+ code: z.ZodOptional<z.ZodString>;
3318
+ title: z.ZodOptional<z.ZodString>;
3319
+ detail: z.ZodOptional<z.ZodString>;
3320
+ source: z.ZodOptional<z.ZodObject<{
3321
+ pointer: z.ZodOptional<z.ZodString>;
3322
+ parameter: z.ZodOptional<z.ZodString>;
3323
+ }, "strip", z.ZodTypeAny, {
3324
+ pointer?: string | undefined;
3325
+ parameter?: string | undefined;
3326
+ }, {
3327
+ pointer?: string | undefined;
3328
+ parameter?: string | undefined;
3329
+ }>>;
3330
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3331
+ }, "strip", z.ZodTypeAny, {
3332
+ status?: string | undefined;
3333
+ code?: string | undefined;
3334
+ id?: string | undefined;
3335
+ links?: {
3336
+ about?: string | undefined;
3337
+ } | undefined;
3338
+ meta?: Record<string, unknown> | undefined;
3339
+ title?: string | undefined;
3340
+ detail?: string | undefined;
3341
+ source?: {
3342
+ pointer?: string | undefined;
3343
+ parameter?: string | undefined;
3344
+ } | undefined;
3345
+ }, {
3346
+ status?: string | undefined;
3347
+ code?: string | undefined;
3348
+ id?: string | undefined;
3349
+ links?: {
3350
+ about?: string | undefined;
3351
+ } | undefined;
3352
+ meta?: Record<string, unknown> | undefined;
3353
+ title?: string | undefined;
3354
+ detail?: string | undefined;
3355
+ source?: {
3356
+ pointer?: string | undefined;
3357
+ parameter?: string | undefined;
3358
+ } | undefined;
3359
+ }>, "many">;
3360
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3361
+ }, "strip", z.ZodTypeAny, {
3362
+ errors: {
3363
+ status?: string | undefined;
3364
+ code?: string | undefined;
3365
+ id?: string | undefined;
3366
+ links?: {
3367
+ about?: string | undefined;
3368
+ } | undefined;
3369
+ meta?: Record<string, unknown> | undefined;
3370
+ title?: string | undefined;
3371
+ detail?: string | undefined;
3372
+ source?: {
3373
+ pointer?: string | undefined;
3374
+ parameter?: string | undefined;
3375
+ } | undefined;
3376
+ }[];
3377
+ meta?: Record<string, unknown> | undefined;
3378
+ }, {
3379
+ errors: {
3380
+ status?: string | undefined;
3381
+ code?: string | undefined;
3382
+ id?: string | undefined;
3383
+ links?: {
3384
+ about?: string | undefined;
3385
+ } | undefined;
3386
+ meta?: Record<string, unknown> | undefined;
3387
+ title?: string | undefined;
3388
+ detail?: string | undefined;
3389
+ source?: {
3390
+ pointer?: string | undefined;
3391
+ parameter?: string | undefined;
3392
+ } | undefined;
3393
+ }[];
3394
+ meta?: Record<string, unknown> | undefined;
3395
+ }>;
3396
+ 404: z.ZodObject<{
3397
+ errors: z.ZodArray<z.ZodObject<{
3398
+ id: z.ZodOptional<z.ZodString>;
3399
+ links: z.ZodOptional<z.ZodObject<{
3400
+ about: z.ZodOptional<z.ZodString>;
3401
+ }, "strip", z.ZodTypeAny, {
3402
+ about?: string | undefined;
3403
+ }, {
3404
+ about?: string | undefined;
3405
+ }>>;
3406
+ status: z.ZodOptional<z.ZodString>;
3407
+ code: z.ZodOptional<z.ZodString>;
3408
+ title: z.ZodOptional<z.ZodString>;
3409
+ detail: z.ZodOptional<z.ZodString>;
3410
+ source: z.ZodOptional<z.ZodObject<{
3411
+ pointer: z.ZodOptional<z.ZodString>;
3412
+ parameter: z.ZodOptional<z.ZodString>;
3413
+ }, "strip", z.ZodTypeAny, {
3414
+ pointer?: string | undefined;
3415
+ parameter?: string | undefined;
3416
+ }, {
3417
+ pointer?: string | undefined;
3418
+ parameter?: string | undefined;
3419
+ }>>;
3420
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3421
+ }, "strip", z.ZodTypeAny, {
3422
+ status?: string | undefined;
3423
+ code?: string | undefined;
3424
+ id?: string | undefined;
3425
+ links?: {
3426
+ about?: string | undefined;
3427
+ } | undefined;
3428
+ meta?: Record<string, unknown> | undefined;
3429
+ title?: string | undefined;
3430
+ detail?: string | undefined;
3431
+ source?: {
3432
+ pointer?: string | undefined;
3433
+ parameter?: string | undefined;
3434
+ } | undefined;
3435
+ }, {
3436
+ status?: string | undefined;
3437
+ code?: string | undefined;
3438
+ id?: string | undefined;
3439
+ links?: {
3440
+ about?: string | undefined;
3441
+ } | undefined;
3442
+ meta?: Record<string, unknown> | undefined;
3443
+ title?: string | undefined;
3444
+ detail?: string | undefined;
3445
+ source?: {
3446
+ pointer?: string | undefined;
3447
+ parameter?: string | undefined;
3448
+ } | undefined;
3449
+ }>, "many">;
3450
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3451
+ }, "strip", z.ZodTypeAny, {
3452
+ errors: {
3453
+ status?: string | undefined;
3454
+ code?: string | undefined;
3455
+ id?: string | undefined;
3456
+ links?: {
3457
+ about?: string | undefined;
3458
+ } | undefined;
3459
+ meta?: Record<string, unknown> | undefined;
3460
+ title?: string | undefined;
3461
+ detail?: string | undefined;
3462
+ source?: {
3463
+ pointer?: string | undefined;
3464
+ parameter?: string | undefined;
3465
+ } | undefined;
3466
+ }[];
3467
+ meta?: Record<string, unknown> | undefined;
3468
+ }, {
3469
+ errors: {
3470
+ status?: string | undefined;
3471
+ code?: string | undefined;
3472
+ id?: string | undefined;
3473
+ links?: {
3474
+ about?: string | undefined;
3475
+ } | undefined;
3476
+ meta?: Record<string, unknown> | undefined;
3477
+ title?: string | undefined;
3478
+ detail?: string | undefined;
3479
+ source?: {
3480
+ pointer?: string | undefined;
3481
+ parameter?: string | undefined;
3482
+ } | undefined;
3483
+ }[];
3484
+ meta?: Record<string, unknown> | undefined;
3485
+ }>;
3486
+ };
3487
+ };
3488
+ ignoreBankLine: {
3489
+ pathParams: z.ZodObject<{
3490
+ farmId: z.ZodString;
3491
+ lineId: z.ZodString;
3492
+ }, "strip", z.ZodTypeAny, {
3493
+ farmId: string;
3494
+ lineId: string;
3495
+ }, {
3496
+ farmId: string;
3497
+ lineId: string;
3498
+ }>;
3499
+ summary: "Ignore a bank line";
3500
+ method: "POST";
3501
+ body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
3502
+ path: "/farms/:farmId/bank-feed/lines/:lineId/ignore";
3503
+ responses: {
3504
+ 200: z.ZodObject<{
3505
+ data: z.ZodObject<{
3506
+ id: z.ZodString;
3507
+ transactionDate: z.ZodString;
3508
+ description: z.ZodString;
3509
+ amount: z.ZodNumber;
3510
+ suggestedWorkspace: z.ZodNullable<z.ZodString>;
3511
+ suggestedCategory: z.ZodNullable<z.ZodString>;
3512
+ suggestionConfidence: z.ZodNullable<z.ZodNumber>;
3513
+ suggestionReason: z.ZodNullable<z.ZodString>;
3514
+ reviewStatus: z.ZodString;
3515
+ }, "strip", z.ZodTypeAny, {
3516
+ id: string;
3517
+ description: string;
3518
+ amount: number;
3519
+ suggestedCategory: string | null;
3520
+ transactionDate: string;
3521
+ suggestedWorkspace: string | null;
3522
+ suggestionConfidence: number | null;
3523
+ suggestionReason: string | null;
3524
+ reviewStatus: string;
3525
+ }, {
3526
+ id: string;
3527
+ description: string;
3528
+ amount: number;
3529
+ suggestedCategory: string | null;
3530
+ transactionDate: string;
3531
+ suggestedWorkspace: string | null;
3532
+ suggestionConfidence: number | null;
3533
+ suggestionReason: string | null;
3534
+ reviewStatus: string;
3535
+ }>;
3536
+ }, "strip", z.ZodTypeAny, {
3537
+ data: {
3538
+ id: string;
3539
+ description: string;
3540
+ amount: number;
3541
+ suggestedCategory: string | null;
3542
+ transactionDate: string;
3543
+ suggestedWorkspace: string | null;
3544
+ suggestionConfidence: number | null;
3545
+ suggestionReason: string | null;
3546
+ reviewStatus: string;
3547
+ };
3548
+ }, {
3549
+ data: {
3550
+ id: string;
3551
+ description: string;
3552
+ amount: number;
3553
+ suggestedCategory: string | null;
3554
+ transactionDate: string;
3555
+ suggestedWorkspace: string | null;
3556
+ suggestionConfidence: number | null;
3557
+ suggestionReason: string | null;
3558
+ reviewStatus: string;
3559
+ };
3560
+ }>;
3561
+ 401: z.ZodObject<{
3562
+ errors: z.ZodArray<z.ZodObject<{
3563
+ id: z.ZodOptional<z.ZodString>;
3564
+ links: z.ZodOptional<z.ZodObject<{
3565
+ about: z.ZodOptional<z.ZodString>;
3566
+ }, "strip", z.ZodTypeAny, {
3567
+ about?: string | undefined;
3568
+ }, {
3569
+ about?: string | undefined;
3570
+ }>>;
3571
+ status: z.ZodOptional<z.ZodString>;
3572
+ code: z.ZodOptional<z.ZodString>;
3573
+ title: z.ZodOptional<z.ZodString>;
3574
+ detail: z.ZodOptional<z.ZodString>;
3575
+ source: z.ZodOptional<z.ZodObject<{
3576
+ pointer: z.ZodOptional<z.ZodString>;
3577
+ parameter: z.ZodOptional<z.ZodString>;
3578
+ }, "strip", z.ZodTypeAny, {
3579
+ pointer?: string | undefined;
3580
+ parameter?: string | undefined;
3581
+ }, {
3582
+ pointer?: string | undefined;
3583
+ parameter?: string | undefined;
3584
+ }>>;
3585
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3586
+ }, "strip", z.ZodTypeAny, {
3587
+ status?: string | undefined;
3588
+ code?: string | undefined;
3589
+ id?: string | undefined;
3590
+ links?: {
3591
+ about?: string | undefined;
3592
+ } | undefined;
3593
+ meta?: Record<string, unknown> | undefined;
3594
+ title?: string | undefined;
3595
+ detail?: string | undefined;
3596
+ source?: {
3597
+ pointer?: string | undefined;
3598
+ parameter?: string | undefined;
3599
+ } | undefined;
3600
+ }, {
3601
+ status?: string | undefined;
3602
+ code?: string | undefined;
3603
+ id?: string | undefined;
3604
+ links?: {
3605
+ about?: string | undefined;
3606
+ } | undefined;
3607
+ meta?: Record<string, unknown> | undefined;
3608
+ title?: string | undefined;
3609
+ detail?: string | undefined;
3610
+ source?: {
3611
+ pointer?: string | undefined;
3612
+ parameter?: string | undefined;
3613
+ } | undefined;
3614
+ }>, "many">;
3615
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3616
+ }, "strip", z.ZodTypeAny, {
3617
+ errors: {
3618
+ status?: string | undefined;
3619
+ code?: string | undefined;
3620
+ id?: string | undefined;
3621
+ links?: {
3622
+ about?: string | undefined;
3623
+ } | undefined;
3624
+ meta?: Record<string, unknown> | undefined;
3625
+ title?: string | undefined;
3626
+ detail?: string | undefined;
3627
+ source?: {
3628
+ pointer?: string | undefined;
3629
+ parameter?: string | undefined;
3630
+ } | undefined;
3631
+ }[];
3632
+ meta?: Record<string, unknown> | undefined;
3633
+ }, {
3634
+ errors: {
3635
+ status?: string | undefined;
3636
+ code?: string | undefined;
3637
+ id?: string | undefined;
3638
+ links?: {
3639
+ about?: string | undefined;
3640
+ } | undefined;
3641
+ meta?: Record<string, unknown> | undefined;
3642
+ title?: string | undefined;
3643
+ detail?: string | undefined;
3644
+ source?: {
3645
+ pointer?: string | undefined;
3646
+ parameter?: string | undefined;
3647
+ } | undefined;
3648
+ }[];
3649
+ meta?: Record<string, unknown> | undefined;
3650
+ }>;
3651
+ 404: z.ZodObject<{
3652
+ errors: z.ZodArray<z.ZodObject<{
3653
+ id: z.ZodOptional<z.ZodString>;
3654
+ links: z.ZodOptional<z.ZodObject<{
3655
+ about: z.ZodOptional<z.ZodString>;
3656
+ }, "strip", z.ZodTypeAny, {
3657
+ about?: string | undefined;
3658
+ }, {
3659
+ about?: string | undefined;
3660
+ }>>;
3661
+ status: z.ZodOptional<z.ZodString>;
3662
+ code: z.ZodOptional<z.ZodString>;
3663
+ title: z.ZodOptional<z.ZodString>;
3664
+ detail: z.ZodOptional<z.ZodString>;
3665
+ source: z.ZodOptional<z.ZodObject<{
3666
+ pointer: z.ZodOptional<z.ZodString>;
3667
+ parameter: z.ZodOptional<z.ZodString>;
3668
+ }, "strip", z.ZodTypeAny, {
3669
+ pointer?: string | undefined;
3670
+ parameter?: string | undefined;
3671
+ }, {
3672
+ pointer?: string | undefined;
3673
+ parameter?: string | undefined;
3674
+ }>>;
3675
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3676
+ }, "strip", z.ZodTypeAny, {
3677
+ status?: string | undefined;
3678
+ code?: string | undefined;
3679
+ id?: string | undefined;
3680
+ links?: {
3681
+ about?: string | undefined;
3682
+ } | undefined;
3683
+ meta?: Record<string, unknown> | undefined;
3684
+ title?: string | undefined;
3685
+ detail?: string | undefined;
3686
+ source?: {
3687
+ pointer?: string | undefined;
3688
+ parameter?: string | undefined;
3689
+ } | undefined;
3690
+ }, {
3691
+ status?: string | undefined;
3692
+ code?: string | undefined;
3693
+ id?: string | undefined;
3694
+ links?: {
3695
+ about?: string | undefined;
3696
+ } | undefined;
3697
+ meta?: Record<string, unknown> | undefined;
3698
+ title?: string | undefined;
3699
+ detail?: string | undefined;
3700
+ source?: {
3701
+ pointer?: string | undefined;
3702
+ parameter?: string | undefined;
3703
+ } | undefined;
3704
+ }>, "many">;
3705
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3706
+ }, "strip", z.ZodTypeAny, {
3707
+ errors: {
3708
+ status?: string | undefined;
3709
+ code?: string | undefined;
3710
+ id?: string | undefined;
3711
+ links?: {
3712
+ about?: string | undefined;
3713
+ } | undefined;
3714
+ meta?: Record<string, unknown> | undefined;
3715
+ title?: string | undefined;
3716
+ detail?: string | undefined;
3717
+ source?: {
3718
+ pointer?: string | undefined;
3719
+ parameter?: string | undefined;
3720
+ } | undefined;
3721
+ }[];
3722
+ meta?: Record<string, unknown> | undefined;
3723
+ }, {
3724
+ errors: {
3725
+ status?: string | undefined;
3726
+ code?: string | undefined;
3727
+ id?: string | undefined;
3728
+ links?: {
3729
+ about?: string | undefined;
3730
+ } | undefined;
3731
+ meta?: Record<string, unknown> | undefined;
3732
+ title?: string | undefined;
3733
+ detail?: string | undefined;
3734
+ source?: {
3735
+ pointer?: string | undefined;
3736
+ parameter?: string | undefined;
3737
+ } | undefined;
3738
+ }[];
3739
+ meta?: Record<string, unknown> | undefined;
3740
+ }>;
3741
+ };
3742
+ };
3743
+ cropCondition: {
3744
+ pathParams: z.ZodObject<{
3745
+ farmId: z.ZodString;
3746
+ fieldId: z.ZodString;
3747
+ }, "strip", z.ZodTypeAny, {
3748
+ farmId: string;
3749
+ fieldId: string;
3750
+ }, {
3751
+ farmId: string;
3752
+ fieldId: string;
3753
+ }>;
3754
+ summary: "NDVI if last clear pass ≤ 20 days, otherwise Sentinel-1 SAR";
3755
+ method: "GET";
3756
+ path: "/farms/:farmId/fields/:fieldId/crop-condition";
3757
+ responses: {
3758
+ 200: z.ZodObject<{
3759
+ data: z.ZodObject<{
3760
+ fieldId: z.ZodString;
3761
+ mode: z.ZodEnum<["ndvi", "sar"]>;
3762
+ capturedAt: z.ZodString;
3763
+ ndvi: z.ZodOptional<z.ZodNumber>;
3764
+ vv: z.ZodOptional<z.ZodNumber>;
3765
+ vh: z.ZodOptional<z.ZodNumber>;
3766
+ ratio: z.ZodOptional<z.ZodNumber>;
3767
+ previousRatio: z.ZodOptional<z.ZodNumber>;
3768
+ ratioChangePercent: z.ZodOptional<z.ZodNumber>;
3769
+ note: z.ZodString;
3770
+ }, "strip", z.ZodTypeAny, {
3771
+ fieldId: string;
3772
+ note: string;
3773
+ capturedAt: string;
3774
+ mode: "ndvi" | "sar";
3775
+ ndvi?: number | undefined;
3776
+ vv?: number | undefined;
3777
+ vh?: number | undefined;
3778
+ ratio?: number | undefined;
3779
+ previousRatio?: number | undefined;
3780
+ ratioChangePercent?: number | undefined;
3781
+ }, {
3782
+ fieldId: string;
3783
+ note: string;
3784
+ capturedAt: string;
3785
+ mode: "ndvi" | "sar";
3786
+ ndvi?: number | undefined;
3787
+ vv?: number | undefined;
3788
+ vh?: number | undefined;
3789
+ ratio?: number | undefined;
3790
+ previousRatio?: number | undefined;
3791
+ ratioChangePercent?: number | undefined;
3792
+ }>;
3793
+ provenance: z.ZodObject<{
3794
+ provider: z.ZodString;
3795
+ retrievedAt: z.ZodString;
3796
+ licence: z.ZodString;
3797
+ confidence: z.ZodNumber;
3798
+ }, "strip", z.ZodTypeAny, {
3799
+ confidence: number;
3800
+ provider: string;
3801
+ retrievedAt: string;
3802
+ licence: string;
3803
+ }, {
3804
+ confidence: number;
3805
+ provider: string;
3806
+ retrievedAt: string;
3807
+ licence: string;
3808
+ }>;
3809
+ }, "strip", z.ZodTypeAny, {
3810
+ data: {
3811
+ fieldId: string;
3812
+ note: string;
3813
+ capturedAt: string;
3814
+ mode: "ndvi" | "sar";
3815
+ ndvi?: number | undefined;
3816
+ vv?: number | undefined;
3817
+ vh?: number | undefined;
3818
+ ratio?: number | undefined;
3819
+ previousRatio?: number | undefined;
3820
+ ratioChangePercent?: number | undefined;
3821
+ };
3822
+ provenance: {
3823
+ confidence: number;
3824
+ provider: string;
3825
+ retrievedAt: string;
3826
+ licence: string;
3827
+ };
3828
+ }, {
3829
+ data: {
3830
+ fieldId: string;
3831
+ note: string;
3832
+ capturedAt: string;
3833
+ mode: "ndvi" | "sar";
3834
+ ndvi?: number | undefined;
3835
+ vv?: number | undefined;
3836
+ vh?: number | undefined;
3837
+ ratio?: number | undefined;
3838
+ previousRatio?: number | undefined;
3839
+ ratioChangePercent?: number | undefined;
3840
+ };
3841
+ provenance: {
3842
+ confidence: number;
3843
+ provider: string;
3844
+ retrievedAt: string;
3845
+ licence: string;
3846
+ };
3847
+ }>;
3848
+ 401: z.ZodObject<{
3849
+ errors: z.ZodArray<z.ZodObject<{
3850
+ id: z.ZodOptional<z.ZodString>;
3851
+ links: z.ZodOptional<z.ZodObject<{
3852
+ about: z.ZodOptional<z.ZodString>;
3853
+ }, "strip", z.ZodTypeAny, {
3854
+ about?: string | undefined;
3855
+ }, {
3856
+ about?: string | undefined;
3857
+ }>>;
3858
+ status: z.ZodOptional<z.ZodString>;
3859
+ code: z.ZodOptional<z.ZodString>;
3860
+ title: z.ZodOptional<z.ZodString>;
3861
+ detail: z.ZodOptional<z.ZodString>;
3862
+ source: z.ZodOptional<z.ZodObject<{
3863
+ pointer: z.ZodOptional<z.ZodString>;
3864
+ parameter: z.ZodOptional<z.ZodString>;
3865
+ }, "strip", z.ZodTypeAny, {
3866
+ pointer?: string | undefined;
3867
+ parameter?: string | undefined;
3868
+ }, {
3869
+ pointer?: string | undefined;
3870
+ parameter?: string | undefined;
3871
+ }>>;
3872
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3873
+ }, "strip", z.ZodTypeAny, {
3874
+ status?: string | undefined;
3875
+ code?: string | undefined;
3876
+ id?: string | undefined;
3877
+ links?: {
3878
+ about?: string | undefined;
3879
+ } | undefined;
3880
+ meta?: Record<string, unknown> | undefined;
3881
+ title?: string | undefined;
3882
+ detail?: string | undefined;
3883
+ source?: {
3884
+ pointer?: string | undefined;
3885
+ parameter?: string | undefined;
3886
+ } | undefined;
3887
+ }, {
3888
+ status?: string | undefined;
3889
+ code?: string | undefined;
3890
+ id?: string | undefined;
3891
+ links?: {
3892
+ about?: string | undefined;
3893
+ } | undefined;
3894
+ meta?: Record<string, unknown> | undefined;
3895
+ title?: string | undefined;
3896
+ detail?: string | undefined;
3897
+ source?: {
3898
+ pointer?: string | undefined;
3899
+ parameter?: string | undefined;
3900
+ } | undefined;
3901
+ }>, "many">;
3902
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3903
+ }, "strip", z.ZodTypeAny, {
3904
+ errors: {
3905
+ status?: string | undefined;
3906
+ code?: string | undefined;
3907
+ id?: string | undefined;
3908
+ links?: {
3909
+ about?: string | undefined;
3910
+ } | undefined;
3911
+ meta?: Record<string, unknown> | undefined;
3912
+ title?: string | undefined;
3913
+ detail?: string | undefined;
3914
+ source?: {
3915
+ pointer?: string | undefined;
3916
+ parameter?: string | undefined;
3917
+ } | undefined;
3918
+ }[];
3919
+ meta?: Record<string, unknown> | undefined;
3920
+ }, {
3921
+ errors: {
3922
+ status?: string | undefined;
3923
+ code?: string | undefined;
3924
+ id?: string | undefined;
3925
+ links?: {
3926
+ about?: string | undefined;
3927
+ } | undefined;
3928
+ meta?: Record<string, unknown> | undefined;
3929
+ title?: string | undefined;
3930
+ detail?: string | undefined;
3931
+ source?: {
3932
+ pointer?: string | undefined;
3933
+ parameter?: string | undefined;
3934
+ } | undefined;
3935
+ }[];
3936
+ meta?: Record<string, unknown> | undefined;
3937
+ }>;
3938
+ 403: z.ZodObject<{
3939
+ errors: z.ZodArray<z.ZodObject<{
3940
+ id: z.ZodOptional<z.ZodString>;
3941
+ links: z.ZodOptional<z.ZodObject<{
3942
+ about: z.ZodOptional<z.ZodString>;
3943
+ }, "strip", z.ZodTypeAny, {
3944
+ about?: string | undefined;
3945
+ }, {
3946
+ about?: string | undefined;
3947
+ }>>;
3948
+ status: z.ZodOptional<z.ZodString>;
3949
+ code: z.ZodOptional<z.ZodString>;
3950
+ title: z.ZodOptional<z.ZodString>;
3951
+ detail: z.ZodOptional<z.ZodString>;
3952
+ source: z.ZodOptional<z.ZodObject<{
3953
+ pointer: z.ZodOptional<z.ZodString>;
3954
+ parameter: z.ZodOptional<z.ZodString>;
3955
+ }, "strip", z.ZodTypeAny, {
3956
+ pointer?: string | undefined;
3957
+ parameter?: string | undefined;
3958
+ }, {
3959
+ pointer?: string | undefined;
3960
+ parameter?: string | undefined;
3961
+ }>>;
3962
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3963
+ }, "strip", z.ZodTypeAny, {
3964
+ status?: string | undefined;
3965
+ code?: string | undefined;
3966
+ id?: string | undefined;
3967
+ links?: {
3968
+ about?: string | undefined;
3969
+ } | undefined;
3970
+ meta?: Record<string, unknown> | undefined;
3971
+ title?: string | undefined;
3972
+ detail?: string | undefined;
3973
+ source?: {
3974
+ pointer?: string | undefined;
3975
+ parameter?: string | undefined;
3976
+ } | undefined;
3977
+ }, {
3978
+ status?: string | undefined;
3979
+ code?: string | undefined;
3980
+ id?: string | undefined;
3981
+ links?: {
3982
+ about?: string | undefined;
3983
+ } | undefined;
3984
+ meta?: Record<string, unknown> | undefined;
3985
+ title?: string | undefined;
3986
+ detail?: string | undefined;
3987
+ source?: {
3988
+ pointer?: string | undefined;
3989
+ parameter?: string | undefined;
3990
+ } | undefined;
3991
+ }>, "many">;
3992
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3993
+ }, "strip", z.ZodTypeAny, {
3994
+ errors: {
3995
+ status?: string | undefined;
3996
+ code?: string | undefined;
3997
+ id?: string | undefined;
3998
+ links?: {
3999
+ about?: string | undefined;
4000
+ } | undefined;
4001
+ meta?: Record<string, unknown> | undefined;
4002
+ title?: string | undefined;
4003
+ detail?: string | undefined;
4004
+ source?: {
4005
+ pointer?: string | undefined;
4006
+ parameter?: string | undefined;
4007
+ } | undefined;
4008
+ }[];
4009
+ meta?: Record<string, unknown> | undefined;
4010
+ }, {
4011
+ errors: {
4012
+ status?: string | undefined;
4013
+ code?: string | undefined;
4014
+ id?: string | undefined;
4015
+ links?: {
4016
+ about?: string | undefined;
4017
+ } | undefined;
4018
+ meta?: Record<string, unknown> | undefined;
4019
+ title?: string | undefined;
4020
+ detail?: string | undefined;
4021
+ source?: {
4022
+ pointer?: string | undefined;
4023
+ parameter?: string | undefined;
4024
+ } | undefined;
4025
+ }[];
4026
+ meta?: Record<string, unknown> | undefined;
4027
+ }>;
4028
+ };
4029
+ };
4030
+ submitEInvoice: {
4031
+ pathParams: z.ZodObject<{
4032
+ organizationId: z.ZodString;
4033
+ invoiceId: z.ZodString;
4034
+ }, "strip", z.ZodTypeAny, {
4035
+ organizationId: string;
4036
+ invoiceId: string;
4037
+ }, {
4038
+ organizationId: string;
4039
+ invoiceId: string;
4040
+ }>;
4041
+ summary: "Submit the invoice to FIRS MBS (sandbox unless EINVOICE_PROVIDER=si_http)";
4042
+ method: "POST";
4043
+ body: z.ZodOptional<z.ZodObject<{
4044
+ invoiceId: z.ZodOptional<z.ZodString>;
4045
+ }, "strip", z.ZodTypeAny, {
4046
+ invoiceId?: string | undefined;
4047
+ }, {
4048
+ invoiceId?: string | undefined;
4049
+ }>>;
4050
+ path: "/organizations/:organizationId/invoices/:invoiceId/e-invoice";
4051
+ responses: {
4052
+ 200: z.ZodObject<{
4053
+ data: z.ZodObject<{
4054
+ irn: z.ZodString;
4055
+ qr: z.ZodString;
4056
+ status: z.ZodString;
4057
+ }, "strip", z.ZodTypeAny, {
4058
+ status: string;
4059
+ irn: string;
4060
+ qr: string;
4061
+ }, {
4062
+ status: string;
4063
+ irn: string;
4064
+ qr: string;
4065
+ }>;
4066
+ }, "strip", z.ZodTypeAny, {
4067
+ data: {
4068
+ status: string;
4069
+ irn: string;
4070
+ qr: string;
4071
+ };
4072
+ }, {
4073
+ data: {
4074
+ status: string;
4075
+ irn: string;
4076
+ qr: string;
4077
+ };
4078
+ }>;
4079
+ 401: z.ZodObject<{
4080
+ errors: z.ZodArray<z.ZodObject<{
4081
+ id: z.ZodOptional<z.ZodString>;
4082
+ links: z.ZodOptional<z.ZodObject<{
4083
+ about: z.ZodOptional<z.ZodString>;
4084
+ }, "strip", z.ZodTypeAny, {
4085
+ about?: string | undefined;
4086
+ }, {
4087
+ about?: string | undefined;
4088
+ }>>;
4089
+ status: z.ZodOptional<z.ZodString>;
4090
+ code: z.ZodOptional<z.ZodString>;
4091
+ title: z.ZodOptional<z.ZodString>;
4092
+ detail: z.ZodOptional<z.ZodString>;
4093
+ source: z.ZodOptional<z.ZodObject<{
4094
+ pointer: z.ZodOptional<z.ZodString>;
4095
+ parameter: z.ZodOptional<z.ZodString>;
4096
+ }, "strip", z.ZodTypeAny, {
4097
+ pointer?: string | undefined;
4098
+ parameter?: string | undefined;
4099
+ }, {
4100
+ pointer?: string | undefined;
4101
+ parameter?: string | undefined;
4102
+ }>>;
4103
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4104
+ }, "strip", z.ZodTypeAny, {
4105
+ status?: string | undefined;
4106
+ code?: string | undefined;
4107
+ id?: string | undefined;
4108
+ links?: {
4109
+ about?: string | undefined;
4110
+ } | undefined;
4111
+ meta?: Record<string, unknown> | undefined;
4112
+ title?: string | undefined;
4113
+ detail?: string | undefined;
4114
+ source?: {
4115
+ pointer?: string | undefined;
4116
+ parameter?: string | undefined;
4117
+ } | undefined;
4118
+ }, {
4119
+ status?: string | undefined;
4120
+ code?: string | undefined;
4121
+ id?: string | undefined;
4122
+ links?: {
4123
+ about?: string | undefined;
4124
+ } | undefined;
4125
+ meta?: Record<string, unknown> | undefined;
4126
+ title?: string | undefined;
4127
+ detail?: string | undefined;
4128
+ source?: {
4129
+ pointer?: string | undefined;
4130
+ parameter?: string | undefined;
4131
+ } | undefined;
4132
+ }>, "many">;
4133
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4134
+ }, "strip", z.ZodTypeAny, {
4135
+ errors: {
4136
+ status?: string | undefined;
4137
+ code?: string | undefined;
4138
+ id?: string | undefined;
4139
+ links?: {
4140
+ about?: string | undefined;
4141
+ } | undefined;
4142
+ meta?: Record<string, unknown> | undefined;
4143
+ title?: string | undefined;
4144
+ detail?: string | undefined;
4145
+ source?: {
4146
+ pointer?: string | undefined;
4147
+ parameter?: string | undefined;
4148
+ } | undefined;
4149
+ }[];
4150
+ meta?: Record<string, unknown> | undefined;
4151
+ }, {
4152
+ errors: {
4153
+ status?: string | undefined;
4154
+ code?: string | undefined;
4155
+ id?: string | undefined;
4156
+ links?: {
4157
+ about?: string | undefined;
4158
+ } | undefined;
4159
+ meta?: Record<string, unknown> | undefined;
4160
+ title?: string | undefined;
4161
+ detail?: string | undefined;
4162
+ source?: {
4163
+ pointer?: string | undefined;
4164
+ parameter?: string | undefined;
4165
+ } | undefined;
4166
+ }[];
4167
+ meta?: Record<string, unknown> | undefined;
4168
+ }>;
4169
+ 503: z.ZodObject<{
4170
+ errors: z.ZodArray<z.ZodObject<{
4171
+ id: z.ZodOptional<z.ZodString>;
4172
+ links: z.ZodOptional<z.ZodObject<{
4173
+ about: z.ZodOptional<z.ZodString>;
4174
+ }, "strip", z.ZodTypeAny, {
4175
+ about?: string | undefined;
4176
+ }, {
4177
+ about?: string | undefined;
4178
+ }>>;
4179
+ status: z.ZodOptional<z.ZodString>;
4180
+ code: z.ZodOptional<z.ZodString>;
4181
+ title: z.ZodOptional<z.ZodString>;
4182
+ detail: z.ZodOptional<z.ZodString>;
4183
+ source: z.ZodOptional<z.ZodObject<{
4184
+ pointer: z.ZodOptional<z.ZodString>;
4185
+ parameter: z.ZodOptional<z.ZodString>;
4186
+ }, "strip", z.ZodTypeAny, {
4187
+ pointer?: string | undefined;
4188
+ parameter?: string | undefined;
4189
+ }, {
4190
+ pointer?: string | undefined;
4191
+ parameter?: string | undefined;
4192
+ }>>;
4193
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4194
+ }, "strip", z.ZodTypeAny, {
4195
+ status?: string | undefined;
4196
+ code?: string | undefined;
4197
+ id?: string | undefined;
4198
+ links?: {
4199
+ about?: string | undefined;
4200
+ } | undefined;
4201
+ meta?: Record<string, unknown> | undefined;
4202
+ title?: string | undefined;
4203
+ detail?: string | undefined;
4204
+ source?: {
4205
+ pointer?: string | undefined;
4206
+ parameter?: string | undefined;
4207
+ } | undefined;
4208
+ }, {
4209
+ status?: string | undefined;
4210
+ code?: string | undefined;
4211
+ id?: string | undefined;
4212
+ links?: {
4213
+ about?: string | undefined;
4214
+ } | undefined;
4215
+ meta?: Record<string, unknown> | undefined;
4216
+ title?: string | undefined;
4217
+ detail?: string | undefined;
4218
+ source?: {
4219
+ pointer?: string | undefined;
4220
+ parameter?: string | undefined;
4221
+ } | undefined;
4222
+ }>, "many">;
4223
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4224
+ }, "strip", z.ZodTypeAny, {
4225
+ errors: {
4226
+ status?: string | undefined;
4227
+ code?: string | undefined;
4228
+ id?: string | undefined;
4229
+ links?: {
4230
+ about?: string | undefined;
4231
+ } | undefined;
4232
+ meta?: Record<string, unknown> | undefined;
4233
+ title?: string | undefined;
4234
+ detail?: string | undefined;
4235
+ source?: {
4236
+ pointer?: string | undefined;
4237
+ parameter?: string | undefined;
4238
+ } | undefined;
4239
+ }[];
4240
+ meta?: Record<string, unknown> | undefined;
4241
+ }, {
4242
+ errors: {
4243
+ status?: string | undefined;
4244
+ code?: string | undefined;
4245
+ id?: string | undefined;
4246
+ links?: {
4247
+ about?: string | undefined;
4248
+ } | undefined;
4249
+ meta?: Record<string, unknown> | undefined;
4250
+ title?: string | undefined;
4251
+ detail?: string | undefined;
4252
+ source?: {
4253
+ pointer?: string | undefined;
4254
+ parameter?: string | undefined;
4255
+ } | undefined;
4256
+ }[];
4257
+ meta?: Record<string, unknown> | undefined;
4258
+ }>;
4259
+ };
4260
+ };
4261
+ importNimetCalendar: {
4262
+ summary: "Platform admin: load NiMet onset/cessation rows (CSV)";
4263
+ method: "POST";
4264
+ body: z.ZodObject<{
4265
+ csv: z.ZodString;
4266
+ }, "strip", z.ZodTypeAny, {
4267
+ csv: string;
4268
+ }, {
4269
+ csv: string;
4270
+ }>;
4271
+ path: "/admin/integrations/nimet/import";
4272
+ responses: {
4273
+ 200: z.ZodObject<{
4274
+ data: z.ZodObject<{
4275
+ upserted: z.ZodNumber;
4276
+ skipped: z.ZodArray<z.ZodObject<{
4277
+ row: z.ZodNumber;
4278
+ reason: z.ZodString;
4279
+ }, "strip", z.ZodTypeAny, {
4280
+ reason: string;
4281
+ row: number;
4282
+ }, {
4283
+ reason: string;
4284
+ row: number;
4285
+ }>, "many">;
4286
+ }, "strip", z.ZodTypeAny, {
4287
+ skipped: {
4288
+ reason: string;
4289
+ row: number;
4290
+ }[];
4291
+ upserted: number;
4292
+ }, {
4293
+ skipped: {
4294
+ reason: string;
4295
+ row: number;
4296
+ }[];
4297
+ upserted: number;
4298
+ }>;
4299
+ }, "strip", z.ZodTypeAny, {
4300
+ data: {
4301
+ skipped: {
4302
+ reason: string;
4303
+ row: number;
4304
+ }[];
4305
+ upserted: number;
4306
+ };
4307
+ }, {
4308
+ data: {
4309
+ skipped: {
4310
+ reason: string;
4311
+ row: number;
4312
+ }[];
4313
+ upserted: number;
4314
+ };
4315
+ }>;
4316
+ 401: z.ZodObject<{
4317
+ errors: z.ZodArray<z.ZodObject<{
4318
+ id: z.ZodOptional<z.ZodString>;
4319
+ links: z.ZodOptional<z.ZodObject<{
4320
+ about: z.ZodOptional<z.ZodString>;
4321
+ }, "strip", z.ZodTypeAny, {
4322
+ about?: string | undefined;
4323
+ }, {
4324
+ about?: string | undefined;
4325
+ }>>;
4326
+ status: z.ZodOptional<z.ZodString>;
4327
+ code: z.ZodOptional<z.ZodString>;
4328
+ title: z.ZodOptional<z.ZodString>;
4329
+ detail: z.ZodOptional<z.ZodString>;
4330
+ source: z.ZodOptional<z.ZodObject<{
4331
+ pointer: z.ZodOptional<z.ZodString>;
4332
+ parameter: z.ZodOptional<z.ZodString>;
4333
+ }, "strip", z.ZodTypeAny, {
4334
+ pointer?: string | undefined;
4335
+ parameter?: string | undefined;
4336
+ }, {
4337
+ pointer?: string | undefined;
4338
+ parameter?: string | undefined;
4339
+ }>>;
4340
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4341
+ }, "strip", z.ZodTypeAny, {
4342
+ status?: string | undefined;
4343
+ code?: string | undefined;
4344
+ id?: string | undefined;
4345
+ links?: {
4346
+ about?: string | undefined;
4347
+ } | undefined;
4348
+ meta?: Record<string, unknown> | undefined;
4349
+ title?: string | undefined;
4350
+ detail?: string | undefined;
4351
+ source?: {
4352
+ pointer?: string | undefined;
4353
+ parameter?: string | undefined;
4354
+ } | undefined;
4355
+ }, {
4356
+ status?: string | undefined;
4357
+ code?: string | undefined;
4358
+ id?: string | undefined;
4359
+ links?: {
4360
+ about?: string | undefined;
4361
+ } | undefined;
4362
+ meta?: Record<string, unknown> | undefined;
4363
+ title?: string | undefined;
4364
+ detail?: string | undefined;
4365
+ source?: {
4366
+ pointer?: string | undefined;
4367
+ parameter?: string | undefined;
4368
+ } | undefined;
4369
+ }>, "many">;
4370
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4371
+ }, "strip", z.ZodTypeAny, {
4372
+ errors: {
4373
+ status?: string | undefined;
4374
+ code?: string | undefined;
4375
+ id?: string | undefined;
4376
+ links?: {
4377
+ about?: string | undefined;
4378
+ } | undefined;
4379
+ meta?: Record<string, unknown> | undefined;
4380
+ title?: string | undefined;
4381
+ detail?: string | undefined;
4382
+ source?: {
4383
+ pointer?: string | undefined;
4384
+ parameter?: string | undefined;
4385
+ } | undefined;
4386
+ }[];
4387
+ meta?: Record<string, unknown> | undefined;
4388
+ }, {
4389
+ errors: {
4390
+ status?: string | undefined;
4391
+ code?: string | undefined;
4392
+ id?: string | undefined;
4393
+ links?: {
4394
+ about?: string | undefined;
4395
+ } | undefined;
4396
+ meta?: Record<string, unknown> | undefined;
4397
+ title?: string | undefined;
4398
+ detail?: string | undefined;
4399
+ source?: {
4400
+ pointer?: string | undefined;
4401
+ parameter?: string | undefined;
4402
+ } | undefined;
4403
+ }[];
4404
+ meta?: Record<string, unknown> | undefined;
4405
+ }>;
4406
+ 403: z.ZodObject<{
4407
+ errors: z.ZodArray<z.ZodObject<{
4408
+ id: z.ZodOptional<z.ZodString>;
4409
+ links: z.ZodOptional<z.ZodObject<{
4410
+ about: z.ZodOptional<z.ZodString>;
4411
+ }, "strip", z.ZodTypeAny, {
4412
+ about?: string | undefined;
4413
+ }, {
4414
+ about?: string | undefined;
4415
+ }>>;
4416
+ status: z.ZodOptional<z.ZodString>;
4417
+ code: z.ZodOptional<z.ZodString>;
4418
+ title: z.ZodOptional<z.ZodString>;
4419
+ detail: z.ZodOptional<z.ZodString>;
4420
+ source: z.ZodOptional<z.ZodObject<{
4421
+ pointer: z.ZodOptional<z.ZodString>;
4422
+ parameter: z.ZodOptional<z.ZodString>;
4423
+ }, "strip", z.ZodTypeAny, {
4424
+ pointer?: string | undefined;
4425
+ parameter?: string | undefined;
4426
+ }, {
4427
+ pointer?: string | undefined;
4428
+ parameter?: string | undefined;
4429
+ }>>;
4430
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4431
+ }, "strip", z.ZodTypeAny, {
4432
+ status?: string | undefined;
4433
+ code?: string | undefined;
4434
+ id?: string | undefined;
4435
+ links?: {
4436
+ about?: string | undefined;
4437
+ } | undefined;
4438
+ meta?: Record<string, unknown> | undefined;
4439
+ title?: string | undefined;
4440
+ detail?: string | undefined;
4441
+ source?: {
4442
+ pointer?: string | undefined;
4443
+ parameter?: string | undefined;
4444
+ } | undefined;
4445
+ }, {
4446
+ status?: string | undefined;
4447
+ code?: string | undefined;
4448
+ id?: string | undefined;
4449
+ links?: {
4450
+ about?: string | undefined;
4451
+ } | undefined;
4452
+ meta?: Record<string, unknown> | undefined;
4453
+ title?: string | undefined;
4454
+ detail?: string | undefined;
4455
+ source?: {
4456
+ pointer?: string | undefined;
4457
+ parameter?: string | undefined;
4458
+ } | undefined;
4459
+ }>, "many">;
4460
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4461
+ }, "strip", z.ZodTypeAny, {
4462
+ errors: {
4463
+ status?: string | undefined;
4464
+ code?: string | undefined;
4465
+ id?: string | undefined;
4466
+ links?: {
4467
+ about?: string | undefined;
4468
+ } | undefined;
4469
+ meta?: Record<string, unknown> | undefined;
4470
+ title?: string | undefined;
4471
+ detail?: string | undefined;
4472
+ source?: {
4473
+ pointer?: string | undefined;
4474
+ parameter?: string | undefined;
4475
+ } | undefined;
4476
+ }[];
4477
+ meta?: Record<string, unknown> | undefined;
4478
+ }, {
4479
+ errors: {
4480
+ status?: string | undefined;
4481
+ code?: string | undefined;
4482
+ id?: string | undefined;
4483
+ links?: {
4484
+ about?: string | undefined;
4485
+ } | undefined;
4486
+ meta?: Record<string, unknown> | undefined;
4487
+ title?: string | undefined;
4488
+ detail?: string | undefined;
4489
+ source?: {
4490
+ pointer?: string | undefined;
4491
+ parameter?: string | undefined;
4492
+ } | undefined;
4493
+ }[];
4494
+ meta?: Record<string, unknown> | undefined;
4495
+ }>;
4496
+ };
4497
+ };
4498
+ };
4499
+ export type IntegrationsRouter = typeof integrationsRouter;
4500
+ //# sourceMappingURL=integrations.routes.d.ts.map