@deepintel-ltd/farmpro-contracts 1.0.1 → 1.0.3

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