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